Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added plugin-twilio this can send message using sms or whatsapp #1822

Closed
wants to merge 24 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
1cb3af7
added plugin-twilio this can send message using sms or whatsapp
juanc07 Jan 4, 2025
f068a62
remove hello action in index.ts
juanc07 Jan 4, 2025
e34e5ae
added plugin-twilio to agent
juanc07 Jan 4, 2025
026c821
added check gated the plugin-twilio in agent runtime only add it when…
juanc07 Jan 5, 2025
7be0584
Merge branch 'develop' into feature/plugin-twilio
odilitime Jan 5, 2025
d2ce806
update repo from develop and fix conflict
juanc07 Jan 5, 2025
7370922
added core from main
juanc07 Jan 5, 2025
4ca602c
added prune before installing in integrationTests.yaml file
juanc07 Jan 5, 2025
4a35293
modify the package.json of elizaos/core added require ./dist/index.js…
juanc07 Jan 5, 2025
d8dec47
use node version 20 for integration test yaml
juanc07 Jan 5, 2025
ee05362
use node version 23.5.0 for integration test yaml
juanc07 Jan 5, 2025
535c755
modify exports package.json of core and plugin-node
juanc07 Jan 5, 2025
7da65a8
added pnpm build command before post install in plugin node
juanc07 Jan 5, 2025
9d7d15f
use plugin-node from main
juanc07 Jan 5, 2025
04f1e3c
test remove post install js call
juanc07 Jan 5, 2025
350a2ec
increase version of plugin-node
juanc07 Jan 5, 2025
b220182
change node version integrationTest.yaml to 23.3.0
juanc07 Jan 5, 2025
8a2be86
do some cleaning and rebuild
juanc07 Jan 5, 2025
15895d2
pmpm-lock changes
juanc07 Jan 5, 2025
74b6562
added todo in code
juanc07 Jan 5, 2025
9583616
applied fix from develop branch
juanc07 Jan 5, 2025
52ff515
get changes from develop and fix conflict
juanc07 Jan 6, 2025
30a250a
fixed pnpm-lock file
juanc07 Jan 6, 2025
aebb861
merged branch with develop branch
juanc07 Jan 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 31 additions & 26 deletions .github/workflows/integrationTests.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
name: Integration Tests

on:
push:
branches:
- "*"
pull_request_target:
branches:
- "*"
push:
branches:
- "*"
pull_request_target:
branches:
- "*"

jobs:
integration-tests:
runs-on: ubuntu-latest
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
steps:
- uses: actions/checkout@v4
integration-tests:
runs-on: ubuntu-latest
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
Expand All @@ -24,21 +26,24 @@ jobs:
node-version: "23.3.0"
cache: "pnpm"

- name: Clean up
run: pnpm clean
- name: Clean up previous builds and caches
run: |
pnpm store prune
pnpm clean
rm -rf node_modules .pnpm-store packages/*/node_modules # Removes all node_modules directories

- name: Install dependencies
run: pnpm install -r --no-frozen-lockfile
- name: Install dependencies
run: pnpm install -r --no-frozen-lockfile

- name: Build packages
run: pnpm build
- name: Build packages
run: pnpm build

- name: Check for API key
run: |
if [ -z "$OPENAI_API_KEY" ]; then
echo "Error: OPENAI_API_KEY is not set."
exit 1
fi
- name: Check for API key
run: |
if [ -z "$OPENAI_API_KEY" ]; then
echo "Error: OPENAI_API_KEY is not set."
exit 1
fi

- name: Run integration tests
run: pnpm run integrationTests
- name: Run integration tests
run: pnpm run integrationTests
1 change: 1 addition & 0 deletions agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"@elizaos/plugin-fuel": "workspace:*",
"@elizaos/plugin-avalanche": "workspace:*",
"@elizaos/plugin-web-search": "workspace:*",
"@elizaos/plugin-twilio": "workspace:*",
"@elizaos/plugin-genlayer": "workspace:*",
"@elizaos/plugin-open-weather": "workspace:*",
"readline": "1.3.0",
Expand Down
6 changes: 6 additions & 0 deletions agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,12 @@ export async function createAgent(
// character.plugins are handled when clients are added
plugins: [
bootstrapPlugin,
getSecret(character, "TWILIO_ACCOUNT_SID") &&
getSecret(character, "TWILIO_AUTH_TOKEN") &&
getSecret(character, "TWILIO_PHONE_NUMBER") &&
getSecret(character, "TWILIO_WHATSAPP_PHONE_NUMBER")
? twilioPlugin
: null,
getSecret(character, "CONFLUX_CORE_PRIVATE_KEY")
? confluxPlugin
: null,
Expand Down
Loading
Loading