@elizaos/cli 1.5.4 → 1.5.5-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/commands/create/types.d.ts +2 -2
  2. package/dist/commands/scenario/src/MockEngine.d.ts +5 -5
  3. package/dist/commands/scenario/src/schema.d.ts +66 -66
  4. package/dist/index.js +9211 -9312
  5. package/dist/index.js.map +8 -7
  6. package/dist/scripts/generate-version.d.ts +7 -0
  7. package/dist/scripts/generate-version.d.ts.map +1 -0
  8. package/dist/templates/plugin-quick-starter/package.json +2 -2
  9. package/dist/templates/plugin-starter/package.json +2 -2
  10. package/dist/templates/project-starter/.dockerignore +183 -0
  11. package/dist/templates/project-starter/.env.example +4 -1
  12. package/dist/templates/project-starter/Dockerfile +61 -0
  13. package/dist/templates/project-starter/docker-compose.yaml +72 -0
  14. package/dist/templates/project-starter/package.json +4 -4
  15. package/dist/templates/project-tee-starter/.env.example +3 -0
  16. package/dist/templates/project-tee-starter/README.md +1 -1
  17. package/dist/templates/project-tee-starter/docker-compose.yaml +32 -13
  18. package/dist/templates/project-tee-starter/package.json +4 -4
  19. package/dist/utils/copy-template.d.ts.map +1 -1
  20. package/dist/utils/display-banner.d.ts.map +1 -1
  21. package/dist/utils/user-environment.d.ts.map +1 -1
  22. package/dist/version.d.ts +19 -0
  23. package/dist/version.d.ts.map +1 -0
  24. package/dist/version.js +22 -0
  25. package/package.json +10 -11
  26. package/templates/plugin-quick-starter/package.json +2 -2
  27. package/templates/plugin-starter/package.json +2 -2
  28. package/templates/project-starter/.dockerignore +183 -0
  29. package/templates/project-starter/.env.example +4 -1
  30. package/templates/project-starter/Dockerfile +61 -0
  31. package/templates/project-starter/docker-compose.yaml +72 -0
  32. package/templates/project-starter/package.json +4 -4
  33. package/templates/project-tee-starter/.env.example +3 -0
  34. package/templates/project-tee-starter/README.md +1 -1
  35. package/templates/project-tee-starter/docker-compose.yaml +32 -13
  36. package/templates/project-tee-starter/package.json +4 -4
@@ -0,0 +1,183 @@
1
+ # Dependencies
2
+ node_modules
3
+ npm-debug.log*
4
+ yarn-debug.log*
5
+ yarn-error.log*
6
+ bun.lockb
7
+
8
+ # Runtime data
9
+ pids
10
+ *.pid
11
+ *.seed
12
+ *.pid.lock
13
+
14
+ # Coverage directory used by tools like istanbul
15
+ coverage
16
+ *.lcov
17
+
18
+ # nyc test coverage
19
+ .nyc_output
20
+
21
+ # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
22
+ .grunt
23
+
24
+ # Bower dependency directory (https://bower.io/)
25
+ bower_components
26
+
27
+ # node-waf configuration
28
+ .lock-wscript
29
+
30
+ # Compiled binary addons (https://nodejs.org/api/addons.html)
31
+ build/Release
32
+
33
+ # Dependency directories
34
+ jspm_packages/
35
+
36
+ # Snowpack dependency directory (https://snowpack.dev/)
37
+ web_modules/
38
+
39
+ # TypeScript cache
40
+ *.tsbuildinfo
41
+
42
+ # Optional npm cache directory
43
+ .npm
44
+
45
+ # Optional eslint cache
46
+ .eslintcache
47
+
48
+ # Optional stylelint cache
49
+ .stylelintcache
50
+
51
+ # Microbundle cache
52
+ .rpt2_cache/
53
+ .rts2_cache_cjs/
54
+ .rts2_cache_es/
55
+ .rts2_cache_umd/
56
+
57
+ # Optional REPL history
58
+ .node_repl_history
59
+
60
+ # Output of 'npm pack'
61
+ *.tgz
62
+
63
+ # Yarn Integrity file
64
+ .yarn-integrity
65
+
66
+ # dotenv environment variables file
67
+ .env
68
+ .env.development.local
69
+ .env.test.local
70
+ .env.production.local
71
+ .env.local
72
+
73
+ # parcel-bundler cache (https://parceljs.org/)
74
+ .cache
75
+ .parcel-cache
76
+
77
+ # Next.js build output
78
+ .next
79
+
80
+ # Nuxt.js build / generate output
81
+ .nuxt
82
+ dist
83
+
84
+ # Gatsby files
85
+ .cache/
86
+ public
87
+
88
+ # Storybook build outputs
89
+ .out
90
+ .storybook-out
91
+ storybook-static
92
+
93
+ # Rollup.js default build output
94
+ dist/
95
+
96
+ # Uncomment the public line in if your project uses Gatsby and not Next.js
97
+ # public
98
+
99
+ # vuepress build output
100
+ .vuepress/dist
101
+
102
+ # vuepress v2.x temp and cache directory
103
+ .temp
104
+ .cache
105
+
106
+ # Docusaurus cache and generated files
107
+ .docusaurus
108
+
109
+ # Serverless directories
110
+ .serverless/
111
+
112
+ # FuseBox cache
113
+ .fusebox/
114
+
115
+ # DynamoDB Local files
116
+ .dynamodb/
117
+
118
+ # TernJS port file
119
+ .tern-port
120
+
121
+ # Stores VSCode versions used for testing VSCode extensions
122
+ .vscode-test
123
+
124
+ # yarn v2
125
+ .yarn/cache
126
+ .yarn/unplugged
127
+ .yarn/build-state.yml
128
+ .yarn/install-state.gz
129
+ .pnp.*
130
+
131
+ # Logs
132
+ logs
133
+ *.log
134
+
135
+ # IDE files
136
+ .vscode/
137
+ .idea/
138
+ *.swp
139
+ *.swo
140
+ *~
141
+
142
+ # OS generated files
143
+ .DS_Store
144
+ .DS_Store?
145
+ ._*
146
+ .Spotlight-V100
147
+ .Trashes
148
+ ehthumbs.db
149
+ Thumbs.db
150
+
151
+ # Git
152
+ .git
153
+ .gitignore
154
+
155
+ # Docker
156
+ Dockerfile
157
+ .dockerignore
158
+ docker-compose*.yml
159
+
160
+ # Documentation
161
+ README.md
162
+ docs/
163
+ *.md
164
+
165
+ # Tests
166
+ tests/
167
+ test/
168
+ *.test.js
169
+ *.test.ts
170
+ *.spec.js
171
+ *.spec.ts
172
+
173
+ # Build tools configuration
174
+ vite.config.ts
175
+ tailwind.config.js
176
+ postcss.config.js
177
+ .nixpacks.toml
178
+ nixpacks.toml
179
+
180
+ # Sample and development files
181
+ sample-env
182
+ .env.example
183
+ .env.sample
@@ -150,4 +150,7 @@ DEVREL_IMPORT_KNOWLEDGE=true
150
150
 
151
151
  # Investment Manager
152
152
  INVESTMENT_MANAGER_DISCORD_APPLICATION_ID=
153
- INVESTMENT_MANAGER_DISCORD_API_TOKEN=
153
+ INVESTMENT_MANAGER_DISCORD_API_TOKEN=
154
+
155
+ # Docker Configuration (required if using Docker)
156
+ DOCKER_IMAGE=
@@ -0,0 +1,61 @@
1
+ FROM node:23.3.0-slim
2
+
3
+ # Install essential dependencies for the build process
4
+ RUN apt-get update && \
5
+ apt-get install -y --no-install-recommends \
6
+ build-essential \
7
+ curl \
8
+ ffmpeg \
9
+ g++ \
10
+ git \
11
+ make \
12
+ python3 \
13
+ unzip && \
14
+ apt-get clean && \
15
+ rm -rf /var/lib/apt/lists/*
16
+
17
+
18
+
19
+ # Install bun globally with npm
20
+ RUN npm install -g bun
21
+
22
+ # Add bun global bin to PATH for root and node users
23
+ ENV PATH="/root/.bun/bin:/home/node/.bun/bin:$PATH"
24
+
25
+ # Create a wrapper script for elizaos that uses the local installation
26
+ RUN echo '#!/bin/bash\nexec /app/node_modules/.bin/elizaos "$@"' > /usr/local/bin/elizaos && \
27
+ chmod +x /usr/local/bin/elizaos
28
+
29
+ # Set working directory
30
+ WORKDIR /app
31
+
32
+ # Copy package files first for better caching
33
+ COPY package.json bun.lock* ./
34
+
35
+ # Install dependencies
36
+ RUN bun install
37
+
38
+ # Copy the rest of the application
39
+ COPY . .
40
+
41
+ # Build the application
42
+ RUN bun run build
43
+
44
+ # Change ownership of the app directory to node user
45
+ RUN chown -R node:node /app
46
+
47
+ # Create node user's bun directory
48
+ RUN mkdir -p /home/node/.bun && chown -R node:node /home/node/.bun
49
+
50
+ # Switch to non-root user
51
+ USER node
52
+
53
+
54
+ # Environment variables should be provided at runtime (e.g., via docker-compose.yaml)
55
+
56
+ # Expose port (adjust if needed based on your application)
57
+ EXPOSE 3000
58
+
59
+
60
+ # Start the application
61
+ CMD ["elizaos", "start"]
@@ -0,0 +1,72 @@
1
+ version: '3.8'
2
+ services:
3
+ postgres:
4
+ image: ankane/pgvector:latest
5
+ environment:
6
+ - POSTGRES_PASSWORD=postgres
7
+ - POSTGRES_USER=postgres
8
+ - POSTGRES_DB=eliza
9
+ - PGDATA=/var/lib/postgresql/data/pgdata
10
+ volumes:
11
+ - postgres-data:/var/lib/postgresql/data:rw
12
+ ports:
13
+ - '5432:5432'
14
+ healthcheck:
15
+ test: ['CMD-SHELL', 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}']
16
+ interval: 5s
17
+ timeout: 5s
18
+ retries: 5
19
+ restart: always
20
+ networks:
21
+ - eliza-network
22
+ elizaos:
23
+ image: ${DOCKER_IMAGE}
24
+ container_name: elizaos
25
+ environment:
26
+ # Core AI providers (at least one required)
27
+ - OPENAI_API_KEY=${OPENAI_API_KEY:-}
28
+ - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
29
+
30
+ # Database (required for production)
31
+ - POSTGRES_URL=${POSTGRES_URL}
32
+
33
+ # Server configuration
34
+ - SERVER_PORT=${SERVER_PORT:-3000}
35
+ - ELIZA_UI_ENABLE=${ELIZA_UI_ENABLE:-true}
36
+ - NODE_ENV=${NODE_ENV:-production}
37
+ - LOG_LEVEL=${LOG_LEVEL:-info}
38
+
39
+ # Optional: Add these based on your plugins
40
+ # Discord
41
+ - DISCORD_APPLICATION_ID=${DISCORD_APPLICATION_ID:-}
42
+ - DISCORD_API_TOKEN=${DISCORD_API_TOKEN:-}
43
+
44
+ # Solana
45
+ - SOLANA_PRIVATE_KEY=${SOLANA_PRIVATE_KEY:-}
46
+ - SOLANA_PUBLIC_KEY=${SOLANA_PUBLIC_KEY:-}
47
+ - BIRDEYE_API_KEY=${BIRDEYE_API_KEY:-}
48
+
49
+ # EVM
50
+ - EVM_CHAINS=${EVM_CHAINS:-}
51
+
52
+ # Voice/Audio
53
+ - ELEVENLABS_API_KEY=${ELEVENLABS_API_KEY:-}
54
+ - ELEVENLABS_VOICE_ID=${ELEVENLABS_VOICE_ID:-}
55
+
56
+ # Other AI providers
57
+ - REDPILL_API_KEY=${REDPILL_API_KEY:-}
58
+ ports:
59
+ - '3000:3000'
60
+ - '50000-50100:50000-50100/udp'
61
+ depends_on:
62
+ postgres:
63
+ condition: service_healthy
64
+ restart: always
65
+ networks:
66
+ - eliza-network
67
+
68
+ networks:
69
+ eliza-network:
70
+ driver: bridge
71
+ volumes:
72
+ postgres-data:
@@ -28,10 +28,10 @@
28
28
  "dist"
29
29
  ],
30
30
  "dependencies": {
31
- "@elizaos/cli": "1.5.4",
32
- "@elizaos/core": "1.5.4",
33
- "@elizaos/plugin-bootstrap": "1.5.4",
34
- "@elizaos/plugin-sql": "1.5.4",
31
+ "@elizaos/cli": "1.5.5-alpha.1",
32
+ "@elizaos/core": "1.5.5-alpha.1",
33
+ "@elizaos/plugin-bootstrap": "1.5.5-alpha.1",
34
+ "@elizaos/plugin-sql": "1.5.5-alpha.1",
35
35
  "@tanstack/react-query": "^5.29.0",
36
36
  "clsx": "^2.1.1",
37
37
  "react": "^18.3.1",
@@ -53,3 +53,6 @@ STUDIOLM_EMBEDDING_MODEL=
53
53
  TEE_MODE=PRODUCTION
54
54
  WALLET_SECRET_SALT=secret_salty
55
55
  TEE_VENDOR=phala
56
+
57
+ # Docker Configuration (required if using Docker)
58
+ DOCKER_IMAGE=
@@ -215,7 +215,7 @@ elizaos tee phala cvms upgrade -c docker-compose.yaml
215
215
  ## 📚 Documentation
216
216
 
217
217
  - [Deployment Guide](./GUIDE.md) - Detailed setup instructions
218
- - [TEE Plugin Docs](../plugin-tee/README.md) - TEE capabilities
218
+ - [TEE Plugin Implementation](./src/plugin.ts) - TEE capabilities
219
219
  - [ElizaOS Docs](https://elizaos.github.io/eliza/) - Framework documentation
220
220
  - [Phala Cloud Docs](https://docs.phala.network) - Phala Cloud documentation
221
221
 
@@ -10,7 +10,7 @@ services:
10
10
  volumes:
11
11
  - postgres-data:/var/lib/postgresql/data:rw
12
12
  ports:
13
- - '127.0.0.1:5432:5432'
13
+ - '5432:5432'
14
14
  healthcheck:
15
15
  test: ['CMD-SHELL', 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}']
16
16
  interval: 5s
@@ -26,22 +26,41 @@ services:
26
26
  - /var/run/tappd.sock:/var/run/tappd.sock
27
27
  - /var/run/dstack.sock:/var/run/dstack.sock
28
28
  environment:
29
- - OPENAI_API_KEY=${OPENAI_API_KEY}
30
- - SERVER_PORT=${SERVER_PORT}
29
+ # Core AI providers (at least one required)
30
+ - OPENAI_API_KEY=${OPENAI_API_KEY:-}
31
+ - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
32
+
33
+ # Database (required for production)
31
34
  - POSTGRES_URL=${POSTGRES_URL}
32
- - EVM_CHAINS=${EVM_CHAINS}
33
- - BIRDEYE_API_KEY=${BIRDEYE_API_KEY}
34
- - DISCORD_APPLICATION_ID=${DISCORD_APPLICATION_ID}
35
- - DISCORD_API_TOKEN=${DISCORD_API_TOKEN}
36
- - TEE_MODE=${TEE_MODE:-PRODUCTION}
37
- - TEE_VENDOR=${TEE_VENDOR:-phala}
38
- - WALLET_SECRET_SALT=${WALLET_SECRET_SALT}
39
- - REDPILL_API_KEY=${REDPILL_API_KEY}
40
- - ELEVENLABS_API_KEY=${ELEVENLABS_API_KEY}
41
- - ELEVENLABS_VOICE_ID=${ELEVENLABS_VOICE_ID}
35
+
36
+ # Server configuration
37
+ - SERVER_PORT=${SERVER_PORT:-3000}
42
38
  - ELIZA_UI_ENABLE=${ELIZA_UI_ENABLE:-true}
43
39
  - NODE_ENV=${NODE_ENV:-production}
44
40
  - LOG_LEVEL=${LOG_LEVEL:-info}
41
+
42
+ # TEE Configuration (required for TEE projects)
43
+ - TEE_MODE=${TEE_MODE:-PRODUCTION}
44
+ - TEE_VENDOR=${TEE_VENDOR:-phala}
45
+ - WALLET_SECRET_SALT=${WALLET_SECRET_SALT}
46
+
47
+ # Optional: Add these based on your plugins
48
+ # Discord
49
+ - DISCORD_APPLICATION_ID=${DISCORD_APPLICATION_ID:-}
50
+ - DISCORD_API_TOKEN=${DISCORD_API_TOKEN:-}
51
+
52
+ # Solana
53
+ - BIRDEYE_API_KEY=${BIRDEYE_API_KEY:-}
54
+
55
+ # EVM
56
+ - EVM_CHAINS=${EVM_CHAINS:-}
57
+
58
+ # Voice/Audio
59
+ - ELEVENLABS_API_KEY=${ELEVENLABS_API_KEY:-}
60
+ - ELEVENLABS_VOICE_ID=${ELEVENLABS_VOICE_ID:-}
61
+
62
+ # Other AI providers
63
+ - REDPILL_API_KEY=${REDPILL_API_KEY:-}
45
64
  ports:
46
65
  - '3000:3000'
47
66
  - '50000-50100:50000-50100/udp'
@@ -33,11 +33,11 @@
33
33
  "GUIDE.md"
34
34
  ],
35
35
  "dependencies": {
36
- "@elizaos/cli": "1.5.4",
37
- "@elizaos/core": "1.5.4",
38
- "@elizaos/plugin-bootstrap": "1.5.4",
36
+ "@elizaos/cli": "1.5.5-alpha.1",
37
+ "@elizaos/core": "1.5.5-alpha.1",
38
+ "@elizaos/plugin-bootstrap": "1.5.5-alpha.1",
39
39
  "@elizaos/plugin-redpill": "1.2.1",
40
- "@elizaos/plugin-sql": "1.5.4",
40
+ "@elizaos/plugin-sql": "1.5.5-alpha.1",
41
41
  "@phala/dstack-sdk": "0.1.11",
42
42
  "@solana/web3.js": "1.98.2",
43
43
  "@tanstack/react-query": "^5.29.0",