@elizaos/cli 1.2.11-beta.8 → 1.2.11-beta.9
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/{chunk-TX2IPIRH.js → chunk-3LVXQ7VC.js} +22 -11
- package/dist/{chunk-XIKLSITV.js → chunk-NS5R6Z74.js} +2 -2
- package/dist/{chunk-BLRB6AXA.js → chunk-TVVBQLSH.js} +1 -1
- 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.js +10 -10
- package/dist/{registry-6SICSJM2.js → registry-NSUZGLOY.js} +1 -1
- package/dist/templates/plugin-quick-starter/package.json +1 -1
- package/dist/templates/plugin-starter/package.json +1 -1
- package/dist/templates/project-starter/package.json +4 -4
- package/dist/templates/project-tee-starter/package.json +3 -3
- package/dist/{utils-HHN2DEEB.js → utils-TV5USNZM.js} +1 -1
- package/package.json +5 -5
- package/templates/plugin-quick-starter/package.json +1 -1
- package/templates/plugin-starter/package.json +1 -1
- package/templates/project-starter/package.json +4 -4
- package/templates/project-tee-starter/package.json +3 -3
|
@@ -2761,7 +2761,7 @@ async function getGitHubCredentials() {
|
|
|
2761
2761
|
}
|
|
2762
2762
|
logger10.warn("Invalid GitHub token found in environment variables");
|
|
2763
2763
|
}
|
|
2764
|
-
const { getGitHubToken: getGitHubToken2 } = await import("./registry-
|
|
2764
|
+
const { getGitHubToken: getGitHubToken2 } = await import("./registry-NSUZGLOY.js");
|
|
2765
2765
|
const token = await getGitHubToken2() || void 0;
|
|
2766
2766
|
if (token) {
|
|
2767
2767
|
const isValid2 = await validateGitHubToken(token);
|
|
@@ -4276,6 +4276,7 @@ function isTestOrCiEnvironment() {
|
|
|
4276
4276
|
process.env.ELIZA_TEST_MODE === "1",
|
|
4277
4277
|
process.env.ELIZA_CLI_TEST_MODE === "true",
|
|
4278
4278
|
process.env.ELIZA_SKIP_LOCAL_CLI_DELEGATION === "true",
|
|
4279
|
+
process.env.ELIZA_DISABLE_LOCAL_CLI_DELEGATION === "true",
|
|
4279
4280
|
process.env.BUN_TEST === "true",
|
|
4280
4281
|
process.env.VITEST === "true",
|
|
4281
4282
|
process.env.JEST_WORKER_ID !== void 0,
|
|
@@ -4321,6 +4322,14 @@ async function tryDelegateToLocalCli() {
|
|
|
4321
4322
|
logger19.debug("No local CLI found, using global installation");
|
|
4322
4323
|
return false;
|
|
4323
4324
|
}
|
|
4325
|
+
if (process.env._ELIZA_CLI_DELEGATION_DEPTH) {
|
|
4326
|
+
const depth = parseInt(process.env._ELIZA_CLI_DELEGATION_DEPTH, 10);
|
|
4327
|
+
if (depth > 0) {
|
|
4328
|
+
logger19.debug("Delegation depth exceeded, preventing infinite loop");
|
|
4329
|
+
return false;
|
|
4330
|
+
}
|
|
4331
|
+
}
|
|
4332
|
+
process.env._ELIZA_CLI_DELEGATION_DEPTH = "1";
|
|
4324
4333
|
await delegateToLocalCli(localCliPath);
|
|
4325
4334
|
return true;
|
|
4326
4335
|
} catch (error) {
|
|
@@ -4349,7 +4358,8 @@ import path19 from "path";
|
|
|
4349
4358
|
import { existsSync as existsSync16 } from "fs";
|
|
4350
4359
|
var ModuleLoader = class {
|
|
4351
4360
|
require;
|
|
4352
|
-
|
|
4361
|
+
asyncCache = /* @__PURE__ */ new Map();
|
|
4362
|
+
syncCache = /* @__PURE__ */ new Map();
|
|
4353
4363
|
projectPath;
|
|
4354
4364
|
constructor(projectPath) {
|
|
4355
4365
|
this.projectPath = projectPath || this.detectProjectPath();
|
|
@@ -4377,9 +4387,9 @@ var ModuleLoader = class {
|
|
|
4377
4387
|
* @throws Error if the module cannot be found in the project
|
|
4378
4388
|
*/
|
|
4379
4389
|
async load(moduleName) {
|
|
4380
|
-
if (this.
|
|
4390
|
+
if (this.asyncCache.has(moduleName)) {
|
|
4381
4391
|
logger20.debug(`Using cached module: ${moduleName}`);
|
|
4382
|
-
return this.
|
|
4392
|
+
return this.asyncCache.get(moduleName);
|
|
4383
4393
|
}
|
|
4384
4394
|
try {
|
|
4385
4395
|
const localModulePath = path19.join(this.projectPath, "node_modules", moduleName);
|
|
@@ -4395,8 +4405,8 @@ var ModuleLoader = class {
|
|
|
4395
4405
|
logger20.warn(`Expected local module but resolved to global: ${modulePath}`);
|
|
4396
4406
|
}
|
|
4397
4407
|
const module = await import(pathToFileURL(modulePath).href);
|
|
4398
|
-
this.
|
|
4399
|
-
logger20.
|
|
4408
|
+
this.asyncCache.set(moduleName, module);
|
|
4409
|
+
logger20.info(
|
|
4400
4410
|
`Loaded ${moduleName} from ${isLocalModule ? "local" : "global"} installation`
|
|
4401
4411
|
);
|
|
4402
4412
|
return module;
|
|
@@ -4421,9 +4431,9 @@ Original error: ${errorMessage}`
|
|
|
4421
4431
|
* @throws Error if the module cannot be found in the project
|
|
4422
4432
|
*/
|
|
4423
4433
|
loadSync(moduleName) {
|
|
4424
|
-
if (this.
|
|
4434
|
+
if (this.syncCache.has(moduleName)) {
|
|
4425
4435
|
logger20.debug(`Using cached module: ${moduleName}`);
|
|
4426
|
-
return this.
|
|
4436
|
+
return this.syncCache.get(moduleName);
|
|
4427
4437
|
}
|
|
4428
4438
|
try {
|
|
4429
4439
|
const localModulePath = path19.join(this.projectPath, "node_modules", moduleName);
|
|
@@ -4439,8 +4449,8 @@ Original error: ${errorMessage}`
|
|
|
4439
4449
|
logger20.warn(`Expected local module but resolved to global: ${modulePath}`);
|
|
4440
4450
|
}
|
|
4441
4451
|
const module = this.require(modulePath);
|
|
4442
|
-
this.
|
|
4443
|
-
logger20.
|
|
4452
|
+
this.syncCache.set(moduleName, module);
|
|
4453
|
+
logger20.info(
|
|
4444
4454
|
`Loaded ${moduleName} from ${isLocalModule ? "local" : "global"} installation`
|
|
4445
4455
|
);
|
|
4446
4456
|
return module;
|
|
@@ -4482,7 +4492,8 @@ Original error: ${errorMessage}`
|
|
|
4482
4492
|
* Clear the module cache. Useful for testing or hot reloading scenarios.
|
|
4483
4493
|
*/
|
|
4484
4494
|
clearCache() {
|
|
4485
|
-
this.
|
|
4495
|
+
this.asyncCache.clear();
|
|
4496
|
+
this.syncCache.clear();
|
|
4486
4497
|
}
|
|
4487
4498
|
/**
|
|
4488
4499
|
* Get the resolved path for a module without loading it.
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
selectEmbeddingModel,
|
|
10
10
|
validateCreateOptions,
|
|
11
11
|
validateProjectName
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TVVBQLSH.js";
|
|
13
13
|
import {
|
|
14
14
|
displayBanner,
|
|
15
15
|
handleError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3LVXQ7VC.js";
|
|
17
17
|
|
|
18
18
|
// src/commands/create/index.ts
|
|
19
19
|
import { Command } from "commander";
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
setupAIModelConfig,
|
|
9
9
|
setupEmbeddingModelConfig,
|
|
10
10
|
setupProjectEnvironment
|
|
11
|
-
} from "../../../chunk-
|
|
12
|
-
import "../../../chunk-
|
|
11
|
+
} from "../../../chunk-TVVBQLSH.js";
|
|
12
|
+
import "../../../chunk-3LVXQ7VC.js";
|
|
13
13
|
import "../../../chunk-FDEDLANP.js";
|
|
14
14
|
import "../../../chunk-4O6EZU37.js";
|
|
15
15
|
import "../../../chunk-D3Q2UZLZ.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-NS5R6Z74.js";
|
|
4
|
+
import "../../chunk-TVVBQLSH.js";
|
|
5
|
+
import "../../chunk-3LVXQ7VC.js";
|
|
6
6
|
import "../../chunk-FDEDLANP.js";
|
|
7
7
|
import "../../chunk-4O6EZU37.js";
|
|
8
8
|
import "../../chunk-D3Q2UZLZ.js";
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
import {
|
|
3
3
|
create
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NS5R6Z74.js";
|
|
5
5
|
import {
|
|
6
6
|
getElizaCharacter
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TVVBQLSH.js";
|
|
8
8
|
import {
|
|
9
9
|
TestRunner,
|
|
10
10
|
UserEnvironment,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
testPublishToNpm,
|
|
44
44
|
tryDelegateToLocalCli,
|
|
45
45
|
validateDataDir
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-3LVXQ7VC.js";
|
|
47
47
|
import {
|
|
48
48
|
configureEmojis,
|
|
49
49
|
emoji,
|
|
@@ -289,24 +289,24 @@ function setupEnvironment() {
|
|
|
289
289
|
async function startServerProcess(args = []) {
|
|
290
290
|
await stopServerProcess();
|
|
291
291
|
console.info("Starting server...");
|
|
292
|
-
const nodeExecutable =
|
|
292
|
+
const nodeExecutable = process.execPath;
|
|
293
293
|
const localCliPath = await getLocalCliPath();
|
|
294
294
|
let scriptPath;
|
|
295
295
|
if (localCliPath) {
|
|
296
296
|
console.info("Using local @elizaos/cli installation");
|
|
297
297
|
scriptPath = localCliPath;
|
|
298
298
|
} else {
|
|
299
|
-
scriptPath =
|
|
299
|
+
scriptPath = process.argv[1];
|
|
300
300
|
}
|
|
301
301
|
const env2 = setupEnvironment();
|
|
302
|
-
const
|
|
302
|
+
const childProcess = Bun.spawn([nodeExecutable, scriptPath, "start", ...args], {
|
|
303
303
|
stdio: ["inherit", "inherit", "inherit"],
|
|
304
304
|
env: env2,
|
|
305
|
-
cwd:
|
|
305
|
+
cwd: process.cwd()
|
|
306
306
|
});
|
|
307
|
-
serverState.process =
|
|
307
|
+
serverState.process = childProcess;
|
|
308
308
|
serverState.isRunning = true;
|
|
309
|
-
|
|
309
|
+
childProcess.exited.then((exitCode) => {
|
|
310
310
|
if (exitCode !== 0) {
|
|
311
311
|
console.warn(`Server process exited with code ${exitCode}`);
|
|
312
312
|
} else {
|
|
@@ -4981,7 +4981,7 @@ async function installPluginDependencies(projectInfo) {
|
|
|
4981
4981
|
};
|
|
4982
4982
|
await fs11.promises.writeFile(packageJsonPath, JSON.stringify(packageJsonContent, null, 2));
|
|
4983
4983
|
}
|
|
4984
|
-
const { installPlugin: installPlugin2 } = await import("./utils-
|
|
4984
|
+
const { installPlugin: installPlugin2 } = await import("./utils-TV5USNZM.js");
|
|
4985
4985
|
for (const dependency of project.pluginModule.dependencies) {
|
|
4986
4986
|
await installPlugin2(dependency, pluginsDir);
|
|
4987
4987
|
const dependencyPath = path25.join(pluginsDir, "node_modules", dependency);
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@elizaos/cli": "1.2.11-beta.
|
|
32
|
-
"@elizaos/core": "1.2.11-beta.
|
|
33
|
-
"@elizaos/plugin-bootstrap": "1.2.11-beta.
|
|
34
|
-
"@elizaos/plugin-sql": "1.2.11-beta.
|
|
31
|
+
"@elizaos/cli": "1.2.11-beta.8",
|
|
32
|
+
"@elizaos/core": "1.2.11-beta.8",
|
|
33
|
+
"@elizaos/plugin-bootstrap": "1.2.11-beta.8",
|
|
34
|
+
"@elizaos/plugin-sql": "1.2.11-beta.8",
|
|
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.2.11-beta.
|
|
37
|
-
"@elizaos/core": "1.2.11-beta.
|
|
36
|
+
"@elizaos/cli": "1.2.11-beta.8",
|
|
37
|
+
"@elizaos/core": "1.2.11-beta.8",
|
|
38
38
|
"@elizaos/plugin-redpill": "1.0.3",
|
|
39
|
-
"@elizaos/plugin-sql": "1.2.11-beta.
|
|
39
|
+
"@elizaos/plugin-sql": "1.2.11-beta.8",
|
|
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.2.11-beta.
|
|
3
|
+
"version": "1.2.11-beta.9",
|
|
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": "b2fd132ee191a206b6202503b9742ae4c6d28b6c",
|
|
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.2.11-beta.
|
|
78
|
-
"@elizaos/plugin-sql": "1.2.11-beta.
|
|
79
|
-
"@elizaos/server": "1.2.11-beta.
|
|
77
|
+
"@elizaos/core": "1.2.11-beta.9",
|
|
78
|
+
"@elizaos/plugin-sql": "1.2.11-beta.9",
|
|
79
|
+
"@elizaos/server": "1.2.11-beta.9",
|
|
80
80
|
"bun": "^1.2.17",
|
|
81
81
|
"chalk": "^5.3.0",
|
|
82
82
|
"chokidar": "^4.0.3",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@elizaos/cli": "1.2.11-beta.
|
|
32
|
-
"@elizaos/core": "1.2.11-beta.
|
|
33
|
-
"@elizaos/plugin-bootstrap": "1.2.11-beta.
|
|
34
|
-
"@elizaos/plugin-sql": "1.2.11-beta.
|
|
31
|
+
"@elizaos/cli": "1.2.11-beta.8",
|
|
32
|
+
"@elizaos/core": "1.2.11-beta.8",
|
|
33
|
+
"@elizaos/plugin-bootstrap": "1.2.11-beta.8",
|
|
34
|
+
"@elizaos/plugin-sql": "1.2.11-beta.8",
|
|
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.2.11-beta.
|
|
37
|
-
"@elizaos/core": "1.2.11-beta.
|
|
36
|
+
"@elizaos/cli": "1.2.11-beta.8",
|
|
37
|
+
"@elizaos/core": "1.2.11-beta.8",
|
|
38
38
|
"@elizaos/plugin-redpill": "1.0.3",
|
|
39
|
-
"@elizaos/plugin-sql": "1.2.11-beta.
|
|
39
|
+
"@elizaos/plugin-sql": "1.2.11-beta.8",
|
|
40
40
|
"@phala/dstack-sdk": "0.1.11",
|
|
41
41
|
"@solana/web3.js": "1.98.2",
|
|
42
42
|
"viem": "2.30.1",
|