@elizaos/cli 1.1.5 → 1.1.6
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/dist/index.js +28 -19
- package/dist/templates/plugin-starter/package.json +2 -2
- package/dist/templates/project-starter/package.json +4 -4
- package/dist/templates/project-tee-starter/package.json +3 -3
- package/package.json +5 -5
- package/templates/plugin-starter/package.json +2 -2
- package/templates/project-starter/package.json +4 -4
- package/templates/project-tee-starter/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -4567,12 +4567,21 @@ async function stopAgent(runtime, server) {
|
|
|
4567
4567
|
}
|
|
4568
4568
|
|
|
4569
4569
|
// src/commands/start/actions/server-start.ts
|
|
4570
|
+
import path22 from "path";
|
|
4571
|
+
import { fileURLToPath as fileURLToPath4 } from "url";
|
|
4570
4572
|
async function startAgents(options) {
|
|
4571
4573
|
const postgresUrl = await configureDatabaseSettings(options.configure);
|
|
4572
4574
|
if (postgresUrl) process.env.POSTGRES_URL = postgresUrl;
|
|
4573
4575
|
const pgliteDataDir = postgresUrl ? void 0 : await resolvePgliteDir();
|
|
4576
|
+
const __filename = fileURLToPath4(import.meta.url);
|
|
4577
|
+
const __dirname = path22.dirname(__filename);
|
|
4578
|
+
const cliDistPath = path22.resolve(__dirname, "../../../");
|
|
4574
4579
|
const server = new AgentServer();
|
|
4575
|
-
await server.initialize({
|
|
4580
|
+
await server.initialize({
|
|
4581
|
+
dataDir: pgliteDataDir,
|
|
4582
|
+
postgresUrl: postgresUrl || void 0,
|
|
4583
|
+
clientPath: cliDistPath
|
|
4584
|
+
});
|
|
4576
4585
|
server.startAgent = (character) => startAgent(character, server);
|
|
4577
4586
|
server.stopAgent = (runtime) => stopAgent(runtime, server);
|
|
4578
4587
|
server.loadCharacterTryPath = loadCharacterTryPath;
|
|
@@ -4610,7 +4619,7 @@ async function startAgents(options) {
|
|
|
4610
4619
|
|
|
4611
4620
|
// src/commands/start/index.ts
|
|
4612
4621
|
import * as fs10 from "fs";
|
|
4613
|
-
import * as
|
|
4622
|
+
import * as path23 from "path";
|
|
4614
4623
|
var start = new Command7().name("start").description("Start the Eliza agent server").option("-c, --configure", "Reconfigure services and AI models").option("-p, --port <port>", "Port to listen on", validatePort).option("--character <paths...>", "Character file(s) to use").hook("preAction", async () => {
|
|
4615
4624
|
await displayBanner();
|
|
4616
4625
|
}).action(async (options) => {
|
|
@@ -4620,7 +4629,7 @@ var start = new Command7().name("start").description("Start the Eliza agent serv
|
|
|
4620
4629
|
let projectAgents = [];
|
|
4621
4630
|
if (options.character && options.character.length > 0) {
|
|
4622
4631
|
for (const charPath of options.character) {
|
|
4623
|
-
const resolvedPath =
|
|
4632
|
+
const resolvedPath = path23.resolve(charPath);
|
|
4624
4633
|
if (!fs10.existsSync(resolvedPath)) {
|
|
4625
4634
|
logger19.error(`Character file not found: ${resolvedPath}`);
|
|
4626
4635
|
throw new Error(`Character file not found: ${resolvedPath}`);
|
|
@@ -4747,9 +4756,9 @@ import { logger as logger24 } from "@elizaos/core";
|
|
|
4747
4756
|
// src/commands/test/utils/project-utils.ts
|
|
4748
4757
|
import { logger as logger20 } from "@elizaos/core";
|
|
4749
4758
|
import * as fs11 from "fs";
|
|
4750
|
-
import
|
|
4759
|
+
import path24 from "path";
|
|
4751
4760
|
function getProjectType(testPath) {
|
|
4752
|
-
const targetPath = testPath ?
|
|
4761
|
+
const targetPath = testPath ? path24.resolve(process.cwd(), testPath) : process.cwd();
|
|
4753
4762
|
return detectDirectoryType(targetPath);
|
|
4754
4763
|
}
|
|
4755
4764
|
function processFilterName(name) {
|
|
@@ -4768,11 +4777,11 @@ async function installPluginDependencies(projectInfo) {
|
|
|
4768
4777
|
}
|
|
4769
4778
|
const project = await loadProject(process.cwd());
|
|
4770
4779
|
if (project.isPlugin && project.pluginModule?.dependencies && project.pluginModule.dependencies.length > 0) {
|
|
4771
|
-
const pluginsDir =
|
|
4780
|
+
const pluginsDir = path24.join(process.cwd(), ".eliza", "plugins");
|
|
4772
4781
|
if (!fs11.existsSync(pluginsDir)) {
|
|
4773
4782
|
await fs11.promises.mkdir(pluginsDir, { recursive: true });
|
|
4774
4783
|
}
|
|
4775
|
-
const packageJsonPath =
|
|
4784
|
+
const packageJsonPath = path24.join(pluginsDir, "package.json");
|
|
4776
4785
|
if (!fs11.existsSync(packageJsonPath)) {
|
|
4777
4786
|
const packageJsonContent = {
|
|
4778
4787
|
name: "test-plugin-dependencies",
|
|
@@ -4785,7 +4794,7 @@ async function installPluginDependencies(projectInfo) {
|
|
|
4785
4794
|
const { installPlugin: installPlugin2 } = await import("./utils-QBGEZZ4I.js");
|
|
4786
4795
|
for (const dependency of project.pluginModule.dependencies) {
|
|
4787
4796
|
await installPlugin2(dependency, pluginsDir);
|
|
4788
|
-
const dependencyPath =
|
|
4797
|
+
const dependencyPath = path24.join(pluginsDir, "node_modules", dependency);
|
|
4789
4798
|
if (fs11.existsSync(dependencyPath)) {
|
|
4790
4799
|
try {
|
|
4791
4800
|
await runBunCommand(["install"], dependencyPath);
|
|
@@ -4802,15 +4811,15 @@ async function installPluginDependencies(projectInfo) {
|
|
|
4802
4811
|
// src/commands/test/actions/component-tests.ts
|
|
4803
4812
|
import { logger as logger22 } from "@elizaos/core";
|
|
4804
4813
|
import { spawn as spawn3 } from "child_process";
|
|
4805
|
-
import
|
|
4814
|
+
import path26 from "path";
|
|
4806
4815
|
|
|
4807
4816
|
// src/utils/testing/tsc-validator.ts
|
|
4808
4817
|
import { logger as logger21 } from "@elizaos/core";
|
|
4809
4818
|
import { execa as execa9 } from "execa";
|
|
4810
|
-
import
|
|
4819
|
+
import path25 from "path";
|
|
4811
4820
|
import { existsSync as existsSync16 } from "fs";
|
|
4812
4821
|
async function runTypeCheck(projectPath, strict = true) {
|
|
4813
|
-
const tsconfigPath =
|
|
4822
|
+
const tsconfigPath = path25.join(projectPath, "tsconfig.json");
|
|
4814
4823
|
if (!existsSync16(tsconfigPath)) {
|
|
4815
4824
|
return {
|
|
4816
4825
|
success: false,
|
|
@@ -4879,7 +4888,7 @@ async function runComponentTests(testPath, options, projectInfo) {
|
|
|
4879
4888
|
}
|
|
4880
4889
|
const monorepoRoot = UserEnvironment.getInstance().findMonorepoRoot(process.cwd());
|
|
4881
4890
|
const baseDir = monorepoRoot ?? process.cwd();
|
|
4882
|
-
const targetPath = testPath ?
|
|
4891
|
+
const targetPath = testPath ? path26.resolve(baseDir, testPath) : process.cwd();
|
|
4883
4892
|
logger22.info(`Executing: bun ${args.join(" ")} in ${targetPath}`);
|
|
4884
4893
|
const child = spawn3("bun", args, {
|
|
4885
4894
|
stdio: "inherit",
|
|
@@ -4909,7 +4918,7 @@ import { AgentServer as AgentServer2, jsonToCharacter as jsonToCharacter2, loadC
|
|
|
4909
4918
|
import { logger as logger23 } from "@elizaos/core";
|
|
4910
4919
|
import * as dotenv2 from "dotenv";
|
|
4911
4920
|
import * as fs12 from "fs";
|
|
4912
|
-
import
|
|
4921
|
+
import path27 from "path";
|
|
4913
4922
|
async function runE2eTests(testPath, options, projectInfo) {
|
|
4914
4923
|
if (!options.skipBuild) {
|
|
4915
4924
|
try {
|
|
@@ -4927,10 +4936,10 @@ async function runE2eTests(testPath, options, projectInfo) {
|
|
|
4927
4936
|
try {
|
|
4928
4937
|
const runtimes = [];
|
|
4929
4938
|
const projectAgents = [];
|
|
4930
|
-
const elizaDir =
|
|
4931
|
-
const packageName =
|
|
4939
|
+
const elizaDir = path27.join(process.cwd(), ".eliza");
|
|
4940
|
+
const packageName = path27.basename(process.cwd());
|
|
4932
4941
|
const timestamp = Date.now();
|
|
4933
|
-
const uniqueDbDir =
|
|
4942
|
+
const uniqueDbDir = path27.join(process.cwd(), ".elizadb-test", `${packageName}-${timestamp}`);
|
|
4934
4943
|
const elizaDbDir = uniqueDbDir;
|
|
4935
4944
|
const envInfo = await UserEnvironment.getInstanceInfo();
|
|
4936
4945
|
const envFilePath = envInfo.paths.envFilePath;
|
|
@@ -4983,7 +4992,7 @@ async function runE2eTests(testPath, options, projectInfo) {
|
|
|
4983
4992
|
logger23.info("Attempting to load project or plugin...");
|
|
4984
4993
|
const monorepoRoot = UserEnvironment.getInstance().findMonorepoRoot(process.cwd());
|
|
4985
4994
|
const baseDir = monorepoRoot ?? process.cwd();
|
|
4986
|
-
const targetPath = testPath ?
|
|
4995
|
+
const targetPath = testPath ? path27.resolve(baseDir, testPath) : process.cwd();
|
|
4987
4996
|
project = await loadProject(targetPath);
|
|
4988
4997
|
if (!project || !project.agents || project.agents.length === 0) {
|
|
4989
4998
|
throw new Error("No agents found in project configuration");
|
|
@@ -5131,7 +5140,7 @@ async function runE2eTests(testPath, options, projectInfo) {
|
|
|
5131
5140
|
fs12.rmSync(elizaDbDir, { recursive: true, force: true });
|
|
5132
5141
|
console.info(`Successfully cleaned up test database directory`);
|
|
5133
5142
|
}
|
|
5134
|
-
const testDir =
|
|
5143
|
+
const testDir = path27.dirname(elizaDbDir);
|
|
5135
5144
|
if (fs12.existsSync(testDir) && fs12.readdirSync(testDir).length === 0) {
|
|
5136
5145
|
fs12.rmSync(testDir, { recursive: true, force: true });
|
|
5137
5146
|
}
|
|
@@ -5197,7 +5206,7 @@ import * as net from "net";
|
|
|
5197
5206
|
// src/commands/test/utils/plugin-utils.ts
|
|
5198
5207
|
import { logger as logger25 } from "@elizaos/core";
|
|
5199
5208
|
import * as fs13 from "fs";
|
|
5200
|
-
import
|
|
5209
|
+
import path28 from "path";
|
|
5201
5210
|
|
|
5202
5211
|
// src/commands/test/index.ts
|
|
5203
5212
|
var test = new Command10().name("test").description("Run tests for the current project or a specified plugin").argument("[path]", "Optional path to the project or plugin to test").addOption(
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"tsup.config.ts"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@elizaos/core": "1.1.
|
|
43
|
+
"@elizaos/core": "1.1.6",
|
|
44
44
|
"@tanstack/react-query": "^5.80.7",
|
|
45
45
|
"clsx": "^2.1.1",
|
|
46
46
|
"tailwind-merge": "^3.3.1",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"zod": "3.24.2"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@elizaos/cli": "1.1.
|
|
52
|
+
"@elizaos/cli": "1.1.6",
|
|
53
53
|
"@tailwindcss/vite": "^4.1.10",
|
|
54
54
|
"@vitejs/plugin-react-swc": "^3.10.2",
|
|
55
55
|
"dotenv": "16.4.5",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@elizaos/cli": "1.1.
|
|
32
|
-
"@elizaos/core": "1.1.
|
|
33
|
-
"@elizaos/plugin-bootstrap": "1.1.
|
|
34
|
-
"@elizaos/plugin-sql": "1.1.
|
|
31
|
+
"@elizaos/cli": "1.1.6",
|
|
32
|
+
"@elizaos/core": "1.1.6",
|
|
33
|
+
"@elizaos/plugin-bootstrap": "1.1.6",
|
|
34
|
+
"@elizaos/plugin-sql": "1.1.6",
|
|
35
35
|
"@tanstack/react-query": "^5.29.0",
|
|
36
36
|
"clsx": "^2.1.1",
|
|
37
37
|
"react": "^18.3.1",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"GUIDE.md"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@elizaos/cli": "1.1.
|
|
37
|
-
"@elizaos/core": "1.1.
|
|
36
|
+
"@elizaos/cli": "1.1.6",
|
|
37
|
+
"@elizaos/core": "1.1.6",
|
|
38
38
|
"@elizaos/plugin-redpill": "1.0.3",
|
|
39
|
-
"@elizaos/plugin-sql": "1.1.
|
|
39
|
+
"@elizaos/plugin-sql": "1.1.6",
|
|
40
40
|
"@phala/dstack-sdk": "0.1.11",
|
|
41
41
|
"@solana/web3.js": "1.98.2",
|
|
42
42
|
"viem": "2.30.1",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"description": "elizaOS CLI - Manage your AI agents and plugins",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -69,14 +69,14 @@
|
|
|
69
69
|
"typescript": "5.8.3",
|
|
70
70
|
"vite": "^6.3.5"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "1ef5379a22a2007dd0ddee7ed06243263c82c225",
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@anthropic-ai/claude-code": "^1.0.35",
|
|
75
75
|
"@anthropic-ai/sdk": "^0.54.0",
|
|
76
76
|
"@clack/prompts": "^0.11.0",
|
|
77
|
-
"@elizaos/core": "1.1.
|
|
78
|
-
"@elizaos/plugin-sql": "1.1.
|
|
79
|
-
"@elizaos/server": "1.1.
|
|
77
|
+
"@elizaos/core": "1.1.6",
|
|
78
|
+
"@elizaos/plugin-sql": "1.1.6",
|
|
79
|
+
"@elizaos/server": "1.1.6",
|
|
80
80
|
"bun": "^1.2.17",
|
|
81
81
|
"chalk": "^5.3.0",
|
|
82
82
|
"chokidar": "^4.0.3",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"tsup.config.ts"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@elizaos/core": "1.1.
|
|
43
|
+
"@elizaos/core": "1.1.6",
|
|
44
44
|
"@tanstack/react-query": "^5.80.7",
|
|
45
45
|
"clsx": "^2.1.1",
|
|
46
46
|
"tailwind-merge": "^3.3.1",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"zod": "3.24.2"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@elizaos/cli": "1.1.
|
|
52
|
+
"@elizaos/cli": "1.1.6",
|
|
53
53
|
"@tailwindcss/vite": "^4.1.10",
|
|
54
54
|
"@vitejs/plugin-react-swc": "^3.10.2",
|
|
55
55
|
"dotenv": "16.4.5",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@elizaos/cli": "1.1.
|
|
32
|
-
"@elizaos/core": "1.1.
|
|
33
|
-
"@elizaos/plugin-bootstrap": "1.1.
|
|
34
|
-
"@elizaos/plugin-sql": "1.1.
|
|
31
|
+
"@elizaos/cli": "1.1.6",
|
|
32
|
+
"@elizaos/core": "1.1.6",
|
|
33
|
+
"@elizaos/plugin-bootstrap": "1.1.6",
|
|
34
|
+
"@elizaos/plugin-sql": "1.1.6",
|
|
35
35
|
"@tanstack/react-query": "^5.29.0",
|
|
36
36
|
"clsx": "^2.1.1",
|
|
37
37
|
"react": "^18.3.1",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"GUIDE.md"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@elizaos/cli": "1.1.
|
|
37
|
-
"@elizaos/core": "1.1.
|
|
36
|
+
"@elizaos/cli": "1.1.6",
|
|
37
|
+
"@elizaos/core": "1.1.6",
|
|
38
38
|
"@elizaos/plugin-redpill": "1.0.3",
|
|
39
|
-
"@elizaos/plugin-sql": "1.1.
|
|
39
|
+
"@elizaos/plugin-sql": "1.1.6",
|
|
40
40
|
"@phala/dstack-sdk": "0.1.11",
|
|
41
41
|
"@solana/web3.js": "1.98.2",
|
|
42
42
|
"viem": "2.30.1",
|