@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.
- package/README.md +54 -89
- package/dist/assets/{index-D7iwnDvJ.js → index-BHRtDt-w.js} +2474 -2303
- package/dist/assets/{index-D7iwnDvJ.js.map → index-BHRtDt-w.js.map} +1 -1
- package/dist/assets/{index-Hst_nvMK.css → index-DzLbKTxV.css} +1 -1
- package/dist/assets/index-DzLbKTxV.css.br +0 -0
- package/dist/assets/{index-ojKLjt7K.js → index-WVhZEObe.js} +2 -2
- package/dist/assets/index-WVhZEObe.js.br +0 -0
- package/dist/assets/{index-ojKLjt7K.js.map → index-WVhZEObe.js.map} +1 -1
- package/dist/{chunk-RTJ2B547.js → chunk-23FI2G4U.js} +2 -2
- package/dist/{chunk-ELCESP3O.js → chunk-E2PKE6N5.js} +7 -14
- package/dist/{chunk-WP6OGNZE.js → chunk-IYFVOAOM.js} +238 -578
- 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.js +2 -2
- package/dist/commands/create/index.js +3 -3
- package/dist/index.html +2 -2
- package/dist/index.js +531 -608
- package/dist/{registry-MJQMACYE.js → registry-3YA2T6KV.js} +1 -1
- package/dist/templates/plugin-starter/src/index.ts +2 -2
- package/dist/templates/project-starter/package.json +2 -0
- package/dist/templates/project-starter/src/character.ts +2 -0
- package/dist/templates/project-starter/src/index.ts +2 -2
- package/dist/templates/project-starter/src/plugin.ts +1 -1
- package/dist/templates/project-starter/tsconfig.json +2 -2
- package/dist/templates/project-tee-starter/src/index.ts +2 -2
- package/dist/{utils-JWYJVLQ4.js → utils-QKNGJZLP.js} +3 -1
- package/package.json +5 -5
- package/templates/plugin-starter/src/index.ts +2 -2
- package/templates/project-starter/package.json +2 -0
- package/templates/project-starter/src/character.ts +2 -0
- package/templates/project-starter/src/index.ts +2 -2
- package/templates/project-starter/src/plugin.ts +1 -1
- package/templates/project-starter/tsconfig.json +2 -2
- package/templates/project-tee-starter/src/index.ts +2 -2
- package/dist/assets/index-Hst_nvMK.css.br +0 -0
- 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
|
|
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
|
|
148
|
-
- `add <plugin>` (alias: `install`): Add a plugin to
|
|
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: `-
|
|
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
|
|
153
|
-
|
|
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
|
-
- `-
|
|
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
|
|
177
|
+
- `start` (alias: `s`): Start an agent
|
|
207
178
|
- Options:
|
|
208
|
-
- `-
|
|
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
|
|
184
|
+
- `stop` (alias: `st`): Stop an agent
|
|
212
185
|
- Options:
|
|
213
|
-
- `-
|
|
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
|
|
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
|
-
- `-
|
|
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
|
-
- `
|
|
195
|
+
- `set`: Update agent configuration
|
|
230
196
|
- Options:
|
|
231
|
-
- `-
|
|
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
|
-
**
|
|
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
|
-
#
|
|
689
|
-
elizaos
|
|
642
|
+
# Run tests during development
|
|
643
|
+
elizaos test
|
|
644
|
+
# Or with the CLI directly:
|
|
645
|
+
elizaos test
|
|
690
646
|
|
|
691
|
-
#
|
|
692
|
-
elizaos
|
|
647
|
+
# Test specific components
|
|
648
|
+
elizaos test component
|
|
693
649
|
|
|
694
|
-
#
|
|
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
|
|
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
|
-
|
|
712
|
+
The main character definition is in src/index.ts:
|
|
757
713
|
|
|
758
|
-
```
|
|
759
|
-
{
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
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
|
|
735
|
+
4. **Add plugins to your project**:
|
|
771
736
|
|
|
772
737
|
```bash
|
|
773
|
-
elizaos plugins add @elizaos/plugin-openai
|
|
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
|
|
744
|
+
elizaos dev
|
|
780
745
|
```
|
|
781
746
|
|
|
782
747
|
6. **Build and start your project**:
|
|
783
748
|
|
|
784
749
|
```bash
|
|
785
|
-
elizaos start
|
|
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
|
|
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
|
|
779
|
+
elizaos start
|
|
815
780
|
```
|
|
816
781
|
|
|
817
782
|
## Contributing
|