@elizaos/cli 1.0.13 → 1.0.14

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 (37) hide show
  1. package/README.md +54 -89
  2. package/dist/assets/{index-D7iwnDvJ.js → index-BHRtDt-w.js} +2474 -2303
  3. package/dist/assets/{index-D7iwnDvJ.js.map → index-BHRtDt-w.js.map} +1 -1
  4. package/dist/assets/{index-Hst_nvMK.css → index-DzLbKTxV.css} +1 -1
  5. package/dist/assets/index-DzLbKTxV.css.br +0 -0
  6. package/dist/assets/{index-ojKLjt7K.js → index-WVhZEObe.js} +2 -2
  7. package/dist/assets/index-WVhZEObe.js.br +0 -0
  8. package/dist/assets/{index-ojKLjt7K.js.map → index-WVhZEObe.js.map} +1 -1
  9. package/dist/{chunk-RTJ2B547.js → chunk-23FI2G4U.js} +2 -2
  10. package/dist/{chunk-ELCESP3O.js → chunk-E2PKE6N5.js} +7 -14
  11. package/dist/{chunk-WP6OGNZE.js → chunk-IYFVOAOM.js} +238 -578
  12. package/dist/commands/agent/actions/index.d.ts +2 -2
  13. package/dist/commands/agent/actions/index.js +1 -1
  14. package/dist/commands/agent/index.js +1 -1
  15. package/dist/commands/create/actions/index.js +2 -2
  16. package/dist/commands/create/index.js +3 -3
  17. package/dist/index.html +2 -2
  18. package/dist/index.js +531 -608
  19. package/dist/{registry-MJQMACYE.js → registry-3YA2T6KV.js} +1 -1
  20. package/dist/templates/plugin-starter/src/index.ts +2 -2
  21. package/dist/templates/project-starter/package.json +2 -0
  22. package/dist/templates/project-starter/src/character.ts +2 -0
  23. package/dist/templates/project-starter/src/index.ts +2 -2
  24. package/dist/templates/project-starter/src/plugin.ts +1 -1
  25. package/dist/templates/project-starter/tsconfig.json +2 -2
  26. package/dist/templates/project-tee-starter/src/index.ts +2 -2
  27. package/dist/{utils-JWYJVLQ4.js → utils-QKNGJZLP.js} +3 -1
  28. package/package.json +5 -5
  29. package/templates/plugin-starter/src/index.ts +2 -2
  30. package/templates/project-starter/package.json +2 -0
  31. package/templates/project-starter/src/character.ts +2 -0
  32. package/templates/project-starter/src/index.ts +2 -2
  33. package/templates/project-starter/src/plugin.ts +1 -1
  34. package/templates/project-starter/tsconfig.json +2 -2
  35. package/templates/project-tee-starter/src/index.ts +2 -2
  36. package/dist/assets/index-Hst_nvMK.css.br +0 -0
  37. package/dist/assets/index-ojKLjt7K.js.br +0 -0
package/README.md CHANGED
@@ -139,51 +139,22 @@ Clone ElizaOS monorepo from a specific branch (defaults to develop).
139
139
 
140
140
  #### `elizaos plugins <subcommand>`
141
141
 
142
- Manage ElizaOS plugins through character configurations.
143
-
144
- **Important:** ElizaOS uses a character-centric plugin architecture. Plugins are specified in character files, not installed at the project level. This allows each character to have its own set of capabilities.
142
+ Manage an ElizaOS plugin.
145
143
 
146
144
  - **Subcommands:**
147
- - `list` (alias: `l`): List available plugins in the registry
148
- - `add <plugin>` (alias: `install`): Add a plugin to character file(s)
145
+ - `list` (alias: `l`): List available plugins (shows v1.x plugins by default)
146
+ - `add <plugin>` (alias: `install`): Add a plugin to the project
149
147
  - Arguments: `<plugin>` (plugin name)
150
- - Options: `-c, --character <paths...>` (required), `-n, --no-env-prompt`
148
+ - Options: `-n, --no-env-prompt`, `-b, --branch <branchName>`, `-T, --tag <tagname>`
151
149
  - `update` (alias: `refresh`): Fetch the latest plugin registry and update local cache
152
- - `installed-plugins`: List plugins found in character files
153
- - Options: `-c, --character <paths...>` (required)
154
- - `remove <plugin>` (alias: `delete`): Remove a plugin from character file(s)
150
+ - `installed-plugins`: List plugins found in the project dependencies
151
+ - `remove <plugin>` (alias: `delete`): Remove a plugin from the project
155
152
  - Arguments: `<plugin>` (plugin name)
156
- - Options: `-c, --character <paths...>` (required)
157
153
  - `upgrade <path>`: Upgrade a plugin from v0.x to v1.x using AI
158
154
  - Arguments: `<path>` (GitHub URL or local path)
159
155
  - Options: `--api-key <key>`, `--skip-tests`, `--skip-validation`
160
156
  - See [Plugin Upgrade Documentation](./docs/PLUGIN_UPGRADE.md) for details
161
157
 
162
- **Character File Example:**
163
-
164
- ```json
165
- {
166
- "name": "MyAssistant",
167
- "plugins": ["@elizaos/plugin-openai", "@elizaos/plugin-discord", "./path/to/local/plugin"],
168
- "settings": {
169
- // Character-specific settings
170
- }
171
- }
172
- ```
173
-
174
- **Plugin Management Examples:**
175
-
176
- ```bash
177
- # Add a plugin to a character
178
- elizaos plugins add openai --character assistant.json
179
-
180
- # Remove a plugin from multiple characters
181
- elizaos plugins remove discord --character bot1.json bot2.json
182
-
183
- # List plugins in character files
184
- elizaos plugins installed-plugins --character assistant.json
185
- ```
186
-
187
158
  ### Agent Management
188
159
 
189
160
  #### `elizaos agent <subcommand>`
@@ -198,51 +169,38 @@ Manage ElizaOS agents.
198
169
  - `-p, --port <port>`: Port to listen on
199
170
  - `get` (alias: `g`): Get agent details
200
171
  - Options:
201
- - `-c, --character <paths...>`: Character name(s), file path(s), or URL(s) (supports multiple)
172
+ - `-n, --name <name>`: Agent id, name, or index number from list
202
173
  - `-j, --json`: Display JSON output in terminal
203
174
  - `-o, --output <file>`: Save agent data to file
204
175
  - `-r, --remote-url <url>`: URL of the remote agent runtime
205
176
  - `-p, --port <port>`: Port to listen on
206
- - `start` (alias: `s`): Start agent(s)
177
+ - `start` (alias: `s`): Start an agent
207
178
  - Options:
208
- - `-c, --character <paths...>`: Character name(s), file path(s), or URL(s) (supports multiple)
179
+ - `-n, --name <name>`: Name of an existing agent to start
180
+ - `--path <path>`: Local path to character JSON file
181
+ - `--remote-character <url>`: URL to remote character JSON file
209
182
  - `-r, --remote-url <url>`: URL of the remote agent runtime
210
183
  - `-p, --port <port>`: Port to listen on
211
- - `stop` (alias: `st`): Stop agent(s)
184
+ - `stop` (alias: `st`): Stop an agent
212
185
  - Options:
213
- - `-c, --character <paths...>`: Character name(s), file path(s), or URL(s) (supports multiple)
186
+ - `-n, --name <name>`: Agent id, name, or index number from list
214
187
  - `--all`: Stop all running ElizaOS agents locally
215
188
  - `-r, --remote-url <url>`: URL of the remote agent runtime
216
189
  - `-p, --port <port>`: Port to listen on
217
- - `remove` (alias: `rm`): Remove agent(s)
218
- - Options:
219
- - `-c, --character <paths...>`: Character name(s), file path(s), or URL(s) (supports multiple)
220
- - `-r, --remote-url <url>`: URL of the remote agent runtime
221
- - `-p, --port <port>`: Port to listen on
222
- - `set`: Update agent configuration (single agent only)
190
+ - `remove` (alias: `rm`): Remove an agent
223
191
  - Options:
224
- - `-c, --character <path>`: Character name, file path, or URL (single character only)
225
- - `--config <json>`: Agent configuration as JSON string
226
- - `--file <path>`: Path to agent configuration JSON file
192
+ - `-n, --name <name>`: Agent id, name, or index number from list
227
193
  - `-r, --remote-url <url>`: URL of the remote agent runtime
228
194
  - `-p, --port <port>`: Port to listen on
229
- - `clear-memories`: Clear agent memories
195
+ - `set`: Update agent configuration
230
196
  - Options:
231
- - `-c, --character <paths...>`: Character name(s), file path(s), or URL(s) (supports multiple)
197
+ - `-n, --name <name>`: Agent id, name, or index number from list
198
+ - `-c, --config <json>`: Agent configuration as JSON string
199
+ - `-f, --file <path>`: Path to agent configuration JSON file
232
200
  - `-r, --remote-url <url>`: URL of the remote agent runtime
233
201
  - `-p, --port <port>`: Port to listen on
234
202
 
235
- **Character Specification:**
236
-
237
- - **Multiple formats supported**: Space-separated, comma-separated, or mixed
238
- - **Auto-extension**: `.json` extension added automatically if missing
239
- - **Path resolution**: Supports local files, URLs, and character names
240
- - **Examples**:
241
- - `elizaos agent start -c bobby,billy` (comma-separated)
242
- - `elizaos agent start -c bobby billy` (space-separated)
243
- - `elizaos agent get -c ./characters/bobby.json https://example.com/billy.json`
244
-
245
- **Note:** All agent commands support interactive mode when run without required parameters. Most commands support multiple characters except `set` which only accepts a single character.
203
+ **Note:** All agent commands support interactive mode when run without key parameters.
246
204
 
247
205
  ### Publishing
248
206
 
@@ -316,10 +274,6 @@ If any character files fail to load, ElizaOS will:
316
274
  - Continue starting with any successfully loaded characters
317
275
  - Fall back to the default Eliza character if no characters loaded successfully
318
276
 
319
- **Plugin Loading:**
320
-
321
- Plugins are loaded from each character's `plugins` array. The runtime automatically installs any missing plugins when starting.
322
-
323
277
  ### Testing
324
278
 
325
279
  #### `elizaos test`
@@ -685,14 +639,16 @@ Plugins extend the functionality of ElizaOS agents by providing additional capab
685
639
  5. **Test your plugin**:
686
640
 
687
641
  ```bash
688
- # Add to a character file for testing
689
- elizaos plugins add ./plugin-my-plugin --character test-character.json
642
+ # Run tests during development
643
+ elizaos test
644
+ # Or with the CLI directly:
645
+ elizaos test
690
646
 
691
- # Run development mode
692
- elizaos dev --character test-character.json
647
+ # Test specific components
648
+ elizaos test component
693
649
 
694
- # Run tests
695
- elizaos test
650
+ # Test end-to-end functionality
651
+ elizaos test e2e
696
652
  ```
697
653
 
698
654
  6. **Publish your plugin**:
@@ -715,7 +671,7 @@ Plugins extend the functionality of ElizaOS agents by providing additional capab
715
671
 
716
672
  ```bash
717
673
  # Make changes to your plugin
718
- elizaos dev --character test-character.json # Test locally
674
+ elizaos dev # Test locally
719
675
 
720
676
  # Test your changes
721
677
  elizaos test
@@ -753,36 +709,45 @@ Projects contain agent configurations and code for building agent-based applicat
753
709
 
754
710
  3. **Configure your agent**:
755
711
 
756
- Create or edit a character file (e.g., character.json):
712
+ The main character definition is in src/index.ts:
757
713
 
758
- ```json
759
- {
760
- "name": "My Assistant",
761
- "plugins": ["@elizaos/plugin-openai", "./path/to/local/plugin"],
762
- "system": "You are a helpful assistant...",
763
- "bio": ["Helpful and knowledgeable", "Communicates clearly and concisely"],
764
- "messageExamples": [
714
+ ```typescript
715
+ import { type Character } from '@elizaos/core';
716
+
717
+ export const character: Character = {
718
+ name: 'My Assistant',
719
+ plugins: [
720
+ '@elizaos/plugin-openai',
721
+ // Add other plugins here
722
+ ],
723
+ system: 'You are a helpful assistant...',
724
+ bio: [
725
+ 'Helpful and knowledgeable',
726
+ 'Communicates clearly and concisely',
727
+ // Other character traits
728
+ ],
729
+ messageExamples: [
765
730
  // Example conversations
766
- ]
767
- }
731
+ ],
732
+ };
768
733
  ```
769
734
 
770
- 4. **Add plugins to your character**:
735
+ 4. **Add plugins to your project**:
771
736
 
772
737
  ```bash
773
- elizaos plugins add @elizaos/plugin-openai --character character.json
738
+ elizaos plugins add @elizaos/plugin-openai
774
739
  ```
775
740
 
776
741
  5. **Run your project in development mode**:
777
742
 
778
743
  ```bash
779
- elizaos dev --character character.json
744
+ elizaos dev
780
745
  ```
781
746
 
782
747
  6. **Build and start your project**:
783
748
 
784
749
  ```bash
785
- elizaos start --character character.json
750
+ elizaos start
786
751
  ```
787
752
 
788
753
  7. **Test your project**:
@@ -805,13 +770,13 @@ Projects contain agent configurations and code for building agent-based applicat
805
770
 
806
771
  ```bash
807
772
  # Make changes to your project
808
- elizaos dev --character character.json # Development mode with hot-reload
773
+ elizaos dev # Development mode with hot-reload
809
774
 
810
775
  # Test your changes
811
776
  elizaos test
812
777
 
813
778
  # Build and start in production mode
814
- elizaos start --character character.json
779
+ elizaos start
815
780
  ```
816
781
 
817
782
  ## Contributing