@elizaos/cli 1.0.6 → 1.0.7
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 +12 -11
- package/dist/assets/{index-TLtd8ntA.js → index-BMJNV7A7.js} +2564 -1976
- package/dist/assets/{index-TLtd8ntA.js.map → index-BMJNV7A7.js.map} +1 -1
- package/dist/assets/index-DyA-lndn.css +1 -0
- package/dist/assets/index-DyA-lndn.css.br +0 -0
- package/dist/assets/{index-BlgsVC9v.js → index-zeG6Jws8.js} +2 -2
- package/dist/assets/index-zeG6Jws8.js.br +0 -0
- package/dist/assets/{index-BlgsVC9v.js.map → index-zeG6Jws8.js.map} +1 -1
- package/dist/chunk-2RXF3FKA.js +17 -0
- package/dist/chunk-3EAACNH2.js +478 -0
- package/dist/{chunk-YMKISDXM.js → chunk-4OL6NNBI.js} +34 -17
- package/dist/{chunk-MAGJ4VCL.js → chunk-CEMRVVKO.js} +8 -7
- package/dist/{chunk-O64SGQGU.js → chunk-IYVGVCIB.js} +270 -162
- package/dist/{chunk-LXYNBPDV.js → chunk-JOHBW4FN.js} +15 -9
- package/dist/{chunk-VWWF4TGX.js → chunk-JROMRXES.js} +39 -12
- package/dist/{chunk-4QRJ6FQC.js → chunk-SCN6ZP4J.js} +35 -15
- package/dist/{chunk-L64NPCT6.js → chunk-V2MPQGYW.js} +77 -68
- package/dist/{chunk-PHLX32YJ.js → chunk-WIPEH5RX.js} +39 -30
- package/dist/{chunk-RGI5263U.js → chunk-YMXO6XZ5.js} +902 -718
- package/dist/commands/agent.js +1 -1
- package/dist/commands/create.d.ts +1 -8
- package/dist/commands/create.js +2 -2
- package/dist/commands/dev.js +3 -2
- package/dist/commands/env.js +2 -2
- package/dist/commands/monorepo.d.ts +5 -0
- package/dist/commands/{setup-monorepo.js → monorepo.js} +4 -4
- package/dist/commands/plugins.js +2 -2
- package/dist/commands/publish.js +3 -3
- package/dist/commands/start.js +4 -3
- package/dist/commands/test.js +5 -4
- package/dist/commands/update.js +2 -2
- package/dist/index.html +2 -2
- package/dist/index.js +14 -13
- package/dist/{registry-A4UYBEET.js → registry-AV3SDTPW.js} +1 -1
- package/package.json +5 -5
- package/templates/plugin-starter/README.md +26 -9
- package/templates/plugin-starter/package.json +5 -1
- package/templates/plugin-starter/tsconfig.build.json +1 -3
- package/templates/plugin-starter/tsconfig.json +1 -2
- package/templates/plugin-starter/tsup.config.ts +1 -1
- package/templates/project-starter/README.md +15 -16
- package/templates/project-starter/package.json +5 -5
- package/templates/project-tee-starter/package.json +4 -4
- package/dist/assets/index-BlgsVC9v.js.br +0 -0
- package/dist/assets/index-fZleA996.css +0 -1
- package/dist/assets/index-fZleA996.css.br +0 -0
- package/dist/chunk-CR5NR6A6.js +0 -458
- package/dist/commands/setup-monorepo.d.ts +0 -5
package/dist/commands/agent.js
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Initialize a new project, plugin, or
|
|
5
|
-
*
|
|
6
|
-
* @param {Object} opts - Options for initialization.
|
|
7
|
-
* @param {string} opts.dir - Installation directory.
|
|
8
|
-
* @param {boolean} opts.yes - Skip confirmation.
|
|
9
|
-
* @param {string} opts.type - Type to create (project, plugin, or agent).
|
|
10
|
-
*
|
|
11
|
-
* @returns {Promise<void>} Promise that resolves once the initialization process is complete.
|
|
4
|
+
* Initialize a new project, plugin, agent, or TEE project.
|
|
12
5
|
*/
|
|
13
6
|
declare const create: Command;
|
|
14
7
|
|
package/dist/commands/create.js
CHANGED
|
@@ -4,9 +4,9 @@ const require = createRequire(import.meta.url);
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
create
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-3EAACNH2.js";
|
|
8
8
|
import "../chunk-335PGADS.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-YMXO6XZ5.js";
|
|
10
10
|
import "../chunk-GYTAJJOD.js";
|
|
11
11
|
import "../chunk-5J7S2CSH.js";
|
|
12
12
|
import "../chunk-LRSU7IN6.js";
|
package/dist/commands/dev.js
CHANGED
|
@@ -4,8 +4,9 @@ const require = createRequire(import.meta.url);
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
dev
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-4OL6NNBI.js";
|
|
8
|
+
import "../chunk-2RXF3FKA.js";
|
|
9
|
+
import "../chunk-YMXO6XZ5.js";
|
|
9
10
|
import "../chunk-GYTAJJOD.js";
|
|
10
11
|
import "../chunk-5J7S2CSH.js";
|
|
11
12
|
import "../chunk-LRSU7IN6.js";
|
package/dist/commands/env.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
env,
|
|
7
7
|
getGlobalEnvPath,
|
|
8
8
|
parseEnvFile
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-WIPEH5RX.js";
|
|
10
|
+
import "../chunk-YMXO6XZ5.js";
|
|
11
11
|
import "../chunk-GYTAJJOD.js";
|
|
12
12
|
import "../chunk-5J7S2CSH.js";
|
|
13
13
|
import "../chunk-LRSU7IN6.js";
|
|
@@ -3,9 +3,9 @@ import { createRequire } from 'module';
|
|
|
3
3
|
const require = createRequire(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
monorepo
|
|
7
|
+
} from "../chunk-CEMRVVKO.js";
|
|
8
|
+
import "../chunk-YMXO6XZ5.js";
|
|
9
9
|
import "../chunk-GYTAJJOD.js";
|
|
10
10
|
import "../chunk-5J7S2CSH.js";
|
|
11
11
|
import "../chunk-LRSU7IN6.js";
|
|
@@ -13,5 +13,5 @@ import "../chunk-7HDCC22V.js";
|
|
|
13
13
|
import "../chunk-KB3JDWUI.js";
|
|
14
14
|
import "../chunk-567UPUC7.js";
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
monorepo
|
|
17
17
|
};
|
package/dist/commands/plugins.js
CHANGED
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
normalizePluginNameForDisplay,
|
|
9
9
|
plugins,
|
|
10
10
|
pluginsCommand
|
|
11
|
-
} from "../chunk-
|
|
12
|
-
import "../chunk-
|
|
11
|
+
} from "../chunk-JOHBW4FN.js";
|
|
12
|
+
import "../chunk-YMXO6XZ5.js";
|
|
13
13
|
import "../chunk-GYTAJJOD.js";
|
|
14
14
|
import "../chunk-5J7S2CSH.js";
|
|
15
15
|
import "../chunk-LRSU7IN6.js";
|
package/dist/commands/publish.js
CHANGED
|
@@ -4,9 +4,9 @@ const require = createRequire(import.meta.url);
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
publish
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-V2MPQGYW.js";
|
|
8
|
+
import "../chunk-SCN6ZP4J.js";
|
|
9
|
+
import "../chunk-YMXO6XZ5.js";
|
|
10
10
|
import "../chunk-GYTAJJOD.js";
|
|
11
11
|
import "../chunk-5J7S2CSH.js";
|
|
12
12
|
import "../chunk-LRSU7IN6.js";
|
package/dist/commands/start.js
CHANGED
|
@@ -6,12 +6,13 @@ import {
|
|
|
6
6
|
promptForProjectPlugins,
|
|
7
7
|
start,
|
|
8
8
|
startAgent
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-IYVGVCIB.js";
|
|
10
10
|
import "../chunk-NHI4RJD2.js";
|
|
11
11
|
import "../chunk-TUAYJIF2.js";
|
|
12
12
|
import "../chunk-335PGADS.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-2RXF3FKA.js";
|
|
14
|
+
import "../chunk-WIPEH5RX.js";
|
|
15
|
+
import "../chunk-YMXO6XZ5.js";
|
|
15
16
|
import "../chunk-GYTAJJOD.js";
|
|
16
17
|
import "../chunk-5J7S2CSH.js";
|
|
17
18
|
import "../chunk-LRSU7IN6.js";
|
package/dist/commands/test.js
CHANGED
|
@@ -5,13 +5,14 @@ const require = createRequire(import.meta.url);
|
|
|
5
5
|
import {
|
|
6
6
|
registerCommand,
|
|
7
7
|
test
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-JROMRXES.js";
|
|
9
|
+
import "../chunk-IYVGVCIB.js";
|
|
10
10
|
import "../chunk-NHI4RJD2.js";
|
|
11
11
|
import "../chunk-TUAYJIF2.js";
|
|
12
12
|
import "../chunk-335PGADS.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-2RXF3FKA.js";
|
|
14
|
+
import "../chunk-WIPEH5RX.js";
|
|
15
|
+
import "../chunk-YMXO6XZ5.js";
|
|
15
16
|
import "../chunk-GYTAJJOD.js";
|
|
16
17
|
import "../chunk-5J7S2CSH.js";
|
|
17
18
|
import "../chunk-LRSU7IN6.js";
|
package/dist/commands/update.js
CHANGED
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
fetchLatestVersion,
|
|
8
8
|
performCliUpdate,
|
|
9
9
|
update
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-SCN6ZP4J.js";
|
|
11
|
+
import "../chunk-YMXO6XZ5.js";
|
|
12
12
|
import "../chunk-GYTAJJOD.js";
|
|
13
13
|
import "../chunk-5J7S2CSH.js";
|
|
14
14
|
import "../chunk-LRSU7IN6.js";
|
package/dist/index.html
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
|
7
7
|
<title>ElizaOS - Client</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-BMJNV7A7.js"></script>
|
|
9
9
|
<link rel="modulepreload" crossorigin href="/assets/vendor-BiCY-iVm.js">
|
|
10
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
10
|
+
<link rel="stylesheet" crossorigin href="/assets/index-DyA-lndn.css">
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|
|
13
13
|
<div id="root"></div>
|
package/dist/index.js
CHANGED
|
@@ -8,40 +8,41 @@ import {
|
|
|
8
8
|
} from "./chunk-APFJCFC6.js";
|
|
9
9
|
import {
|
|
10
10
|
test
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JROMRXES.js";
|
|
12
12
|
import {
|
|
13
13
|
start
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-IYVGVCIB.js";
|
|
15
15
|
import "./chunk-NHI4RJD2.js";
|
|
16
16
|
import "./chunk-TUAYJIF2.js";
|
|
17
17
|
import {
|
|
18
18
|
create
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-3EAACNH2.js";
|
|
20
20
|
import "./chunk-335PGADS.js";
|
|
21
21
|
import {
|
|
22
22
|
dev
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-4OL6NNBI.js";
|
|
24
|
+
import "./chunk-2RXF3FKA.js";
|
|
24
25
|
import {
|
|
25
26
|
env
|
|
26
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-WIPEH5RX.js";
|
|
28
|
+
import {
|
|
29
|
+
monorepo
|
|
30
|
+
} from "./chunk-CEMRVVKO.js";
|
|
27
31
|
import {
|
|
28
32
|
plugins
|
|
29
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-JOHBW4FN.js";
|
|
30
34
|
import {
|
|
31
35
|
publish
|
|
32
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-V2MPQGYW.js";
|
|
33
37
|
import {
|
|
34
38
|
update
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import {
|
|
37
|
-
setupMonorepo
|
|
38
|
-
} from "./chunk-MAGJ4VCL.js";
|
|
39
|
+
} from "./chunk-SCN6ZP4J.js";
|
|
39
40
|
import {
|
|
40
41
|
agent,
|
|
41
42
|
checkAndShowUpdateNotification,
|
|
42
43
|
displayBanner,
|
|
43
44
|
getVersion
|
|
44
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-YMXO6XZ5.js";
|
|
45
46
|
import "./chunk-GYTAJJOD.js";
|
|
46
47
|
import {
|
|
47
48
|
Command
|
|
@@ -104,7 +105,7 @@ async function main() {
|
|
|
104
105
|
logger.error(`Failed to stop processes: ${error.message}`);
|
|
105
106
|
}
|
|
106
107
|
});
|
|
107
|
-
program.addCommand(create).addCommand(
|
|
108
|
+
program.addCommand(create).addCommand(monorepo).addCommand(plugins).addCommand(agent).addCommand(teeCommand).addCommand(start).addCommand(update).addCommand(test).addCommand(env).addCommand(dev).addCommand(publish).addCommand(stopCommand);
|
|
108
109
|
if (process.argv.length === 2) {
|
|
109
110
|
await displayBanner(false);
|
|
110
111
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "elizaOS CLI - Manage your AI agents and plugins",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"format:check": "prettier --check ./src",
|
|
40
40
|
"clean": "rm -rf dist .turbo node_modules .turbo-tsconfig.json tsconfig.tsbuildinfo",
|
|
41
41
|
"test": "vitest run",
|
|
42
|
-
"test:cli": "bun
|
|
42
|
+
"test:cli": "bun test tests/commands/"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@anthropic-ai/sdk": "^0.40.0",
|
|
@@ -78,13 +78,13 @@
|
|
|
78
78
|
"vitest": "3.1.4",
|
|
79
79
|
"yoctocolors": "^2.1.1"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "f856bb24b382729f14796f7b3368a7d3c2fea119",
|
|
82
82
|
"dependencies": {
|
|
83
83
|
"@electric-sql/pglite": "^0.3.2",
|
|
84
|
-
"@elizaos/core": "1.0.
|
|
84
|
+
"@elizaos/core": "1.0.7",
|
|
85
85
|
"@elizaos/plugin-local-ai": "latest",
|
|
86
86
|
"@elizaos/plugin-openai": "latest",
|
|
87
|
-
"@elizaos/plugin-sql": "1.0.
|
|
87
|
+
"@elizaos/plugin-sql": "1.0.7",
|
|
88
88
|
"@noble/curves": "^1.6.0",
|
|
89
89
|
"@sindresorhus/merge-streams": "^4.0.0",
|
|
90
90
|
"@types/express": "^5.0.2",
|
|
@@ -2,17 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
This is an ElizaOS plugin built with the official plugin starter template.
|
|
4
4
|
|
|
5
|
+
## Getting Started
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# Create a new plugin (automatically adds "plugin-" prefix)
|
|
9
|
+
elizaos create -t plugin solana
|
|
10
|
+
# This creates: plugin-solana
|
|
11
|
+
# Dependencies are automatically installed and built
|
|
12
|
+
|
|
13
|
+
# Navigate to the plugin directory
|
|
14
|
+
cd plugin-solana
|
|
15
|
+
|
|
16
|
+
# Start development immediately
|
|
17
|
+
elizaos dev
|
|
18
|
+
```
|
|
19
|
+
|
|
5
20
|
## Development
|
|
6
21
|
|
|
7
22
|
```bash
|
|
8
|
-
# Start development with hot-reloading
|
|
9
|
-
|
|
23
|
+
# Start development with hot-reloading (recommended)
|
|
24
|
+
elizaos dev
|
|
10
25
|
|
|
11
|
-
#
|
|
12
|
-
|
|
26
|
+
# OR start without hot-reloading
|
|
27
|
+
elizaos start
|
|
28
|
+
# Note: When using 'start', you need to rebuild after changes:
|
|
29
|
+
# bun run build
|
|
13
30
|
|
|
14
31
|
# Test the plugin
|
|
15
|
-
|
|
32
|
+
elizaos test
|
|
16
33
|
```
|
|
17
34
|
|
|
18
35
|
## Testing
|
|
@@ -25,15 +42,15 @@ ElizaOS provides a comprehensive testing structure for plugins:
|
|
|
25
42
|
|
|
26
43
|
- **Unit Tests**: Test individual functions/classes in isolation
|
|
27
44
|
- **Integration Tests**: Test how components work together
|
|
28
|
-
- Run with: `
|
|
45
|
+
- Run with: `elizaos test component`
|
|
29
46
|
|
|
30
47
|
- **End-to-End Tests** (`e2e/` directory):
|
|
31
48
|
|
|
32
49
|
- Test the plugin within a full ElizaOS runtime
|
|
33
|
-
- Run with: `
|
|
50
|
+
- Run with: `elizaos test e2e`
|
|
34
51
|
|
|
35
52
|
- **Running All Tests**:
|
|
36
|
-
- `
|
|
53
|
+
- `elizaos test` runs both component and e2e tests
|
|
37
54
|
|
|
38
55
|
### Writing Tests
|
|
39
56
|
|
|
@@ -125,7 +142,7 @@ This command will:
|
|
|
125
142
|
|
|
126
143
|
```bash
|
|
127
144
|
# Edit your plugin code
|
|
128
|
-
|
|
145
|
+
elizaos dev # Test locally with hot-reload
|
|
129
146
|
```
|
|
130
147
|
|
|
131
148
|
2. **Test Your Changes**
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"extends": "./tsconfig.json",
|
|
3
3
|
"compilerOptions": {
|
|
4
|
-
"rootDir": "./src",
|
|
5
4
|
"outDir": "./dist",
|
|
6
5
|
"sourceMap": true,
|
|
7
6
|
"inlineSources": true,
|
|
8
|
-
"declaration": true
|
|
9
|
-
"emitDeclarationOnly": true
|
|
7
|
+
"declaration": true
|
|
10
8
|
},
|
|
11
9
|
"include": ["src/**/*.ts"],
|
|
12
10
|
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts"]
|
|
@@ -9,9 +9,8 @@
|
|
|
9
9
|
"esModuleInterop": true,
|
|
10
10
|
"skipLibCheck": true,
|
|
11
11
|
"forceConsistentCasingInFileNames": false,
|
|
12
|
-
"allowImportingTsExtensions":
|
|
12
|
+
"allowImportingTsExtensions": false,
|
|
13
13
|
"declaration": true,
|
|
14
|
-
"emitDeclarationOnly": true,
|
|
15
14
|
"resolveJsonModule": true,
|
|
16
15
|
"noImplicitAny": false,
|
|
17
16
|
"allowJs": true,
|
|
@@ -7,7 +7,7 @@ export default defineConfig({
|
|
|
7
7
|
sourcemap: true,
|
|
8
8
|
clean: true,
|
|
9
9
|
format: ['esm'], // Ensure you're targeting CommonJS
|
|
10
|
-
dts:
|
|
10
|
+
dts: true, // require DTS so we get d.ts in the dist folder on npm
|
|
11
11
|
external: [
|
|
12
12
|
'dotenv', // Externalize dotenv to prevent bundling
|
|
13
13
|
'fs', // Externalize fs to use Node.js built-in module
|
|
@@ -14,30 +14,30 @@ This is the starter template for ElizaOS projects.
|
|
|
14
14
|
## Getting Started
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
#
|
|
18
|
-
|
|
17
|
+
# Create a new project
|
|
18
|
+
elizaos create -t project my-project
|
|
19
|
+
# Dependencies are automatically installed and built
|
|
19
20
|
|
|
20
21
|
# Navigate to the project directory
|
|
21
22
|
cd my-project
|
|
22
23
|
|
|
23
|
-
#
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
# Start development server
|
|
27
|
-
npm run dev
|
|
24
|
+
# Start development immediately
|
|
25
|
+
elizaos dev
|
|
28
26
|
```
|
|
29
27
|
|
|
30
28
|
## Development
|
|
31
29
|
|
|
32
30
|
```bash
|
|
33
|
-
# Start development
|
|
34
|
-
|
|
31
|
+
# Start development with hot-reloading (recommended)
|
|
32
|
+
elizaos dev
|
|
35
33
|
|
|
36
|
-
#
|
|
37
|
-
|
|
34
|
+
# OR start without hot-reloading
|
|
35
|
+
elizaos start
|
|
36
|
+
# Note: When using 'start', you need to rebuild after changes:
|
|
37
|
+
# bun run build
|
|
38
38
|
|
|
39
39
|
# Test the project
|
|
40
|
-
|
|
40
|
+
elizaos test
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
## Testing
|
|
@@ -50,15 +50,15 @@ ElizaOS provides a comprehensive testing structure for projects:
|
|
|
50
50
|
|
|
51
51
|
- **Unit Tests**: Test individual functions and components in isolation
|
|
52
52
|
- **Integration Tests**: Test how components work together
|
|
53
|
-
- Run with: `
|
|
53
|
+
- Run with: `elizaos test component`
|
|
54
54
|
|
|
55
55
|
- **End-to-End Tests** (`e2e/` directory):
|
|
56
56
|
|
|
57
57
|
- Test the project within a full ElizaOS runtime
|
|
58
|
-
- Run with: `
|
|
58
|
+
- Run with: `elizaos test e2e`
|
|
59
59
|
|
|
60
60
|
- **Running All Tests**:
|
|
61
|
-
- `
|
|
61
|
+
- `elizaos test` runs both component and e2e tests
|
|
62
62
|
|
|
63
63
|
### Writing Tests
|
|
64
64
|
|
|
@@ -107,4 +107,3 @@ Customize your project by modifying:
|
|
|
107
107
|
|
|
108
108
|
- `src/index.ts` - Main entry point
|
|
109
109
|
- `src/character.ts` - Character definition
|
|
110
|
-
- `src/plugin.ts` - Plugin configuration
|
|
@@ -28,17 +28,17 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@elizaos/cli": "1.0.
|
|
32
|
-
"@elizaos/core": "1.0.
|
|
33
|
-
"@elizaos/plugin-sql": "1.0.
|
|
34
|
-
"@elizaos/plugin-bootstrap": "1.0.
|
|
31
|
+
"@elizaos/cli": "1.0.6",
|
|
32
|
+
"@elizaos/core": "1.0.6",
|
|
33
|
+
"@elizaos/plugin-sql": "1.0.6",
|
|
34
|
+
"@elizaos/plugin-bootstrap": "1.0.6",
|
|
35
35
|
"zod": "3.24.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"tsup": "8.4.0",
|
|
39
39
|
"prettier": "3.5.3",
|
|
40
40
|
"vitest": "3.1.4",
|
|
41
|
-
"@vitest/coverage-v8": "
|
|
41
|
+
"@vitest/coverage-v8": "3.1.4"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"start": "elizaos start",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"GUIDE.md"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@elizaos/cli": "1.0.
|
|
37
|
-
"@elizaos/core": "1.0.
|
|
38
|
-
"@elizaos/plugin-sql": "1.0.
|
|
36
|
+
"@elizaos/cli": "1.0.6",
|
|
37
|
+
"@elizaos/core": "1.0.6",
|
|
38
|
+
"@elizaos/plugin-sql": "1.0.6",
|
|
39
39
|
"@phala/dstack-sdk": "0.1.11",
|
|
40
40
|
"@solana/web3.js": "1.98.2",
|
|
41
41
|
"viem": "2.30.1",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"tsup": "8.4.0",
|
|
46
46
|
"prettier": "3.5.3",
|
|
47
47
|
"vitest": "3.1.4",
|
|
48
|
-
"@vitest/coverage-v8": "
|
|
48
|
+
"@vitest/coverage-v8": "3.1.4"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"start": "elizaos start",
|
|
Binary file
|