@elizaos/cli 1.0.12 → 1.0.13
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.
- package/README.md +89 -54
- package/dist/assets/{index-CtxA4ev_.js → index-D7iwnDvJ.js} +28832 -26151
- package/dist/assets/{index-CtxA4ev_.js.map → index-D7iwnDvJ.js.map} +1 -1
- package/dist/assets/index-Hst_nvMK.css +1 -0
- package/dist/assets/index-Hst_nvMK.css.br +0 -0
- package/dist/assets/{index-xhCgCbS4.js → index-ojKLjt7K.js} +2 -2
- package/dist/assets/index-ojKLjt7K.js.br +0 -0
- package/dist/assets/{index-xhCgCbS4.js.map → index-ojKLjt7K.js.map} +1 -1
- package/dist/{chunk-PYMK3ECE.js → chunk-ELCESP3O.js} +199 -6
- package/dist/{chunk-YDVNTQX3.js → chunk-RTJ2B547.js} +27 -4
- package/dist/{chunk-Y76S7TNK.js → chunk-WP6OGNZE.js} +625 -138
- package/dist/commands/agent/actions/index.d.ts +2 -2
- package/dist/commands/agent/actions/index.js +1 -1
- package/dist/commands/agent/index.js +1 -1
- package/dist/commands/create/actions/index.d.ts +8 -4
- package/dist/commands/create/actions/index.js +4 -2
- package/dist/commands/create/index.js +3 -3
- package/dist/index.html +2 -2
- package/dist/index.js +563 -328
- package/dist/{registry-7PBDJL64.js → registry-MJQMACYE.js} +1 -1
- package/dist/templates/plugin-starter/src/index.ts +2 -272
- package/dist/templates/plugin-starter/src/plugin.ts +274 -0
- package/dist/templates/project-starter/package.json +0 -2
- package/dist/templates/project-starter/src/character.ts +134 -0
- package/dist/templates/project-starter/src/index.ts +3 -133
- package/dist/templates/project-starter/tsconfig.json +2 -2
- package/dist/templates/project-tee-starter/src/index.ts +2 -15
- package/dist/{utils-WRGBZBAJ.js → utils-JWYJVLQ4.js} +7 -1
- package/package.json +6 -7
- package/templates/plugin-starter/src/index.ts +2 -272
- package/templates/plugin-starter/src/plugin.ts +274 -0
- package/templates/project-starter/package.json +0 -2
- package/templates/project-starter/src/character.ts +134 -0
- package/templates/project-starter/src/index.ts +3 -133
- package/templates/project-starter/tsconfig.json +2 -2
- package/templates/project-tee-starter/src/index.ts +2 -15
- package/dist/assets/index-Df1AFSuJ.css +0 -1
- package/dist/assets/index-Df1AFSuJ.css.br +0 -0
- package/dist/assets/index-xhCgCbS4.js.br +0 -0
package/README.md
CHANGED
|
@@ -139,22 +139,51 @@ Clone ElizaOS monorepo from a specific branch (defaults to develop).
|
|
|
139
139
|
|
|
140
140
|
#### `elizaos plugins <subcommand>`
|
|
141
141
|
|
|
142
|
-
Manage
|
|
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.
|
|
143
145
|
|
|
144
146
|
- **Subcommands:**
|
|
145
|
-
- `list` (alias: `l`): List available plugins
|
|
146
|
-
- `add <plugin>` (alias: `install`): Add a plugin to
|
|
147
|
+
- `list` (alias: `l`): List available plugins in the registry
|
|
148
|
+
- `add <plugin>` (alias: `install`): Add a plugin to character file(s)
|
|
147
149
|
- Arguments: `<plugin>` (plugin name)
|
|
148
|
-
- Options: `-
|
|
150
|
+
- Options: `-c, --character <paths...>` (required), `-n, --no-env-prompt`
|
|
149
151
|
- `update` (alias: `refresh`): Fetch the latest plugin registry and update local cache
|
|
150
|
-
- `installed-plugins`: List plugins found in
|
|
151
|
-
|
|
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)
|
|
152
155
|
- Arguments: `<plugin>` (plugin name)
|
|
156
|
+
- Options: `-c, --character <paths...>` (required)
|
|
153
157
|
- `upgrade <path>`: Upgrade a plugin from v0.x to v1.x using AI
|
|
154
158
|
- Arguments: `<path>` (GitHub URL or local path)
|
|
155
159
|
- Options: `--api-key <key>`, `--skip-tests`, `--skip-validation`
|
|
156
160
|
- See [Plugin Upgrade Documentation](./docs/PLUGIN_UPGRADE.md) for details
|
|
157
161
|
|
|
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
|
+
|
|
158
187
|
### Agent Management
|
|
159
188
|
|
|
160
189
|
#### `elizaos agent <subcommand>`
|
|
@@ -169,38 +198,51 @@ Manage ElizaOS agents.
|
|
|
169
198
|
- `-p, --port <port>`: Port to listen on
|
|
170
199
|
- `get` (alias: `g`): Get agent details
|
|
171
200
|
- Options:
|
|
172
|
-
- `-
|
|
201
|
+
- `-c, --character <paths...>`: Character name(s), file path(s), or URL(s) (supports multiple)
|
|
173
202
|
- `-j, --json`: Display JSON output in terminal
|
|
174
203
|
- `-o, --output <file>`: Save agent data to file
|
|
175
204
|
- `-r, --remote-url <url>`: URL of the remote agent runtime
|
|
176
205
|
- `-p, --port <port>`: Port to listen on
|
|
177
|
-
- `start` (alias: `s`): Start
|
|
206
|
+
- `start` (alias: `s`): Start agent(s)
|
|
178
207
|
- Options:
|
|
179
|
-
- `-
|
|
180
|
-
- `--path <path>`: Local path to character JSON file
|
|
181
|
-
- `--remote-character <url>`: URL to remote character JSON file
|
|
208
|
+
- `-c, --character <paths...>`: Character name(s), file path(s), or URL(s) (supports multiple)
|
|
182
209
|
- `-r, --remote-url <url>`: URL of the remote agent runtime
|
|
183
210
|
- `-p, --port <port>`: Port to listen on
|
|
184
|
-
- `stop` (alias: `st`): Stop
|
|
211
|
+
- `stop` (alias: `st`): Stop agent(s)
|
|
185
212
|
- Options:
|
|
186
|
-
- `-
|
|
213
|
+
- `-c, --character <paths...>`: Character name(s), file path(s), or URL(s) (supports multiple)
|
|
187
214
|
- `--all`: Stop all running ElizaOS agents locally
|
|
188
215
|
- `-r, --remote-url <url>`: URL of the remote agent runtime
|
|
189
216
|
- `-p, --port <port>`: Port to listen on
|
|
190
|
-
- `remove` (alias: `rm`): Remove
|
|
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)
|
|
191
223
|
- Options:
|
|
192
|
-
- `-
|
|
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
|
|
193
227
|
- `-r, --remote-url <url>`: URL of the remote agent runtime
|
|
194
228
|
- `-p, --port <port>`: Port to listen on
|
|
195
|
-
- `
|
|
229
|
+
- `clear-memories`: Clear agent memories
|
|
196
230
|
- Options:
|
|
197
|
-
- `-
|
|
198
|
-
- `-c, --config <json>`: Agent configuration as JSON string
|
|
199
|
-
- `-f, --file <path>`: Path to agent configuration JSON file
|
|
231
|
+
- `-c, --character <paths...>`: Character name(s), file path(s), or URL(s) (supports multiple)
|
|
200
232
|
- `-r, --remote-url <url>`: URL of the remote agent runtime
|
|
201
233
|
- `-p, --port <port>`: Port to listen on
|
|
202
234
|
|
|
203
|
-
**
|
|
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.
|
|
204
246
|
|
|
205
247
|
### Publishing
|
|
206
248
|
|
|
@@ -274,6 +316,10 @@ If any character files fail to load, ElizaOS will:
|
|
|
274
316
|
- Continue starting with any successfully loaded characters
|
|
275
317
|
- Fall back to the default Eliza character if no characters loaded successfully
|
|
276
318
|
|
|
319
|
+
**Plugin Loading:**
|
|
320
|
+
|
|
321
|
+
Plugins are loaded from each character's `plugins` array. The runtime automatically installs any missing plugins when starting.
|
|
322
|
+
|
|
277
323
|
### Testing
|
|
278
324
|
|
|
279
325
|
#### `elizaos test`
|
|
@@ -639,16 +685,14 @@ Plugins extend the functionality of ElizaOS agents by providing additional capab
|
|
|
639
685
|
5. **Test your plugin**:
|
|
640
686
|
|
|
641
687
|
```bash
|
|
642
|
-
#
|
|
643
|
-
elizaos test
|
|
644
|
-
# Or with the CLI directly:
|
|
645
|
-
elizaos test
|
|
688
|
+
# Add to a character file for testing
|
|
689
|
+
elizaos plugins add ./plugin-my-plugin --character test-character.json
|
|
646
690
|
|
|
647
|
-
#
|
|
648
|
-
elizaos test
|
|
691
|
+
# Run development mode
|
|
692
|
+
elizaos dev --character test-character.json
|
|
649
693
|
|
|
650
|
-
#
|
|
651
|
-
elizaos test
|
|
694
|
+
# Run tests
|
|
695
|
+
elizaos test
|
|
652
696
|
```
|
|
653
697
|
|
|
654
698
|
6. **Publish your plugin**:
|
|
@@ -671,7 +715,7 @@ Plugins extend the functionality of ElizaOS agents by providing additional capab
|
|
|
671
715
|
|
|
672
716
|
```bash
|
|
673
717
|
# Make changes to your plugin
|
|
674
|
-
elizaos dev # Test locally
|
|
718
|
+
elizaos dev --character test-character.json # Test locally
|
|
675
719
|
|
|
676
720
|
# Test your changes
|
|
677
721
|
elizaos test
|
|
@@ -709,45 +753,36 @@ Projects contain agent configurations and code for building agent-based applicat
|
|
|
709
753
|
|
|
710
754
|
3. **Configure your agent**:
|
|
711
755
|
|
|
712
|
-
|
|
756
|
+
Create or edit a character file (e.g., character.json):
|
|
713
757
|
|
|
714
|
-
```
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
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: [
|
|
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": [
|
|
730
765
|
// Example conversations
|
|
731
|
-
]
|
|
732
|
-
}
|
|
766
|
+
]
|
|
767
|
+
}
|
|
733
768
|
```
|
|
734
769
|
|
|
735
|
-
4. **Add plugins to your
|
|
770
|
+
4. **Add plugins to your character**:
|
|
736
771
|
|
|
737
772
|
```bash
|
|
738
|
-
elizaos plugins add @elizaos/plugin-openai
|
|
773
|
+
elizaos plugins add @elizaos/plugin-openai --character character.json
|
|
739
774
|
```
|
|
740
775
|
|
|
741
776
|
5. **Run your project in development mode**:
|
|
742
777
|
|
|
743
778
|
```bash
|
|
744
|
-
elizaos dev
|
|
779
|
+
elizaos dev --character character.json
|
|
745
780
|
```
|
|
746
781
|
|
|
747
782
|
6. **Build and start your project**:
|
|
748
783
|
|
|
749
784
|
```bash
|
|
750
|
-
elizaos start
|
|
785
|
+
elizaos start --character character.json
|
|
751
786
|
```
|
|
752
787
|
|
|
753
788
|
7. **Test your project**:
|
|
@@ -770,13 +805,13 @@ Projects contain agent configurations and code for building agent-based applicat
|
|
|
770
805
|
|
|
771
806
|
```bash
|
|
772
807
|
# Make changes to your project
|
|
773
|
-
elizaos dev # Development mode with hot-reload
|
|
808
|
+
elizaos dev --character character.json # Development mode with hot-reload
|
|
774
809
|
|
|
775
810
|
# Test your changes
|
|
776
811
|
elizaos test
|
|
777
812
|
|
|
778
813
|
# Build and start in production mode
|
|
779
|
-
elizaos start
|
|
814
|
+
elizaos start --character character.json
|
|
780
815
|
```
|
|
781
816
|
|
|
782
817
|
## Contributing
|