@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.
@@ -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-6SICSJM2.js");
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
- cache = /* @__PURE__ */ new Map();
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.cache.has(moduleName)) {
4390
+ if (this.asyncCache.has(moduleName)) {
4381
4391
  logger20.debug(`Using cached module: ${moduleName}`);
4382
- return this.cache.get(moduleName);
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.cache.set(moduleName, module);
4399
- logger20.success(
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.cache.has(moduleName)) {
4434
+ if (this.syncCache.has(moduleName)) {
4425
4435
  logger20.debug(`Using cached module: ${moduleName}`);
4426
- return this.cache.get(moduleName);
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.cache.set(moduleName, module);
4443
- logger20.success(
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.cache.clear();
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-BLRB6AXA.js";
12
+ } from "./chunk-TVVBQLSH.js";
13
13
  import {
14
14
  displayBanner,
15
15
  handleError
16
- } from "./chunk-TX2IPIRH.js";
16
+ } from "./chunk-3LVXQ7VC.js";
17
17
 
18
18
  // src/commands/create/index.ts
19
19
  import { Command } from "commander";
@@ -15,7 +15,7 @@ import {
15
15
  promptAndStorePostgresUrl,
16
16
  runTasks,
17
17
  setupPgLite
18
- } from "./chunk-TX2IPIRH.js";
18
+ } from "./chunk-3LVXQ7VC.js";
19
19
 
20
20
  // src/characters/eliza.ts
21
21
  var baseCharacter = {
@@ -5,7 +5,7 @@ import {
5
5
  setAgentConfig,
6
6
  startAgent,
7
7
  stopAgent
8
- } from "../../../chunk-TX2IPIRH.js";
8
+ } from "../../../chunk-3LVXQ7VC.js";
9
9
  import "../../../chunk-FDEDLANP.js";
10
10
  import "../../../chunk-4O6EZU37.js";
11
11
  import "../../../chunk-D3Q2UZLZ.js";
@@ -2,7 +2,7 @@ import {
2
2
  agent,
3
3
  getAgents,
4
4
  resolveAgentId
5
- } from "../../chunk-TX2IPIRH.js";
5
+ } from "../../chunk-3LVXQ7VC.js";
6
6
  import "../../chunk-FDEDLANP.js";
7
7
  import {
8
8
  getAgentRuntimeUrl,
@@ -8,8 +8,8 @@ import {
8
8
  setupAIModelConfig,
9
9
  setupEmbeddingModelConfig,
10
10
  setupProjectEnvironment
11
- } from "../../../chunk-BLRB6AXA.js";
12
- import "../../../chunk-TX2IPIRH.js";
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-XIKLSITV.js";
4
- import "../../chunk-BLRB6AXA.js";
5
- import "../../chunk-TX2IPIRH.js";
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-XIKLSITV.js";
4
+ } from "./chunk-NS5R6Z74.js";
5
5
  import {
6
6
  getElizaCharacter
7
- } from "./chunk-BLRB6AXA.js";
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-TX2IPIRH.js";
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 = process2.execPath;
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 = process2.argv[1];
299
+ scriptPath = process.argv[1];
300
300
  }
301
301
  const env2 = setupEnvironment();
302
- const process2 = Bun.spawn([nodeExecutable, scriptPath, "start", ...args], {
302
+ const childProcess = Bun.spawn([nodeExecutable, scriptPath, "start", ...args], {
303
303
  stdio: ["inherit", "inherit", "inherit"],
304
304
  env: env2,
305
- cwd: process2.cwd()
305
+ cwd: process.cwd()
306
306
  });
307
- serverState.process = process2;
307
+ serverState.process = childProcess;
308
308
  serverState.isRunning = true;
309
- process2.exited.then((exitCode) => {
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-HHN2DEEB.js");
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);
@@ -24,7 +24,7 @@ import {
24
24
  setEnvVar,
25
25
  setGitHubToken,
26
26
  validateDataDir
27
- } from "./chunk-TX2IPIRH.js";
27
+ } from "./chunk-3LVXQ7VC.js";
28
28
  import "./chunk-FDEDLANP.js";
29
29
  import "./chunk-4O6EZU37.js";
30
30
  import "./chunk-D3Q2UZLZ.js";
@@ -40,7 +40,7 @@
40
40
  "tsup.config.ts"
41
41
  ],
42
42
  "dependencies": {
43
- "@elizaos/core": "1.2.11-beta.7",
43
+ "@elizaos/core": "1.2.11-beta.8",
44
44
  "zod": "^3.24.4"
45
45
  },
46
46
  "devDependencies": {
@@ -40,7 +40,7 @@
40
40
  "tsup.config.ts"
41
41
  ],
42
42
  "dependencies": {
43
- "@elizaos/core": "1.2.11-beta.7",
43
+ "@elizaos/core": "1.2.11-beta.8",
44
44
  "@tanstack/react-query": "^5.80.7",
45
45
  "clsx": "^2.1.1",
46
46
  "tailwind-merge": "^3.3.1",
@@ -28,10 +28,10 @@
28
28
  "dist"
29
29
  ],
30
30
  "dependencies": {
31
- "@elizaos/cli": "1.2.11-beta.7",
32
- "@elizaos/core": "1.2.11-beta.7",
33
- "@elizaos/plugin-bootstrap": "1.2.11-beta.7",
34
- "@elizaos/plugin-sql": "1.2.11-beta.7",
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.7",
37
- "@elizaos/core": "1.2.11-beta.7",
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.7",
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",
@@ -116,7 +116,7 @@ import {
116
116
  updateFile,
117
117
  validateGitHubToken,
118
118
  writeEnvFile
119
- } from "./chunk-TX2IPIRH.js";
119
+ } from "./chunk-3LVXQ7VC.js";
120
120
  import {
121
121
  runBunCommand
122
122
  } from "./chunk-FDEDLANP.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elizaos/cli",
3
- "version": "1.2.11-beta.8",
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": "80cf25ece84b0af50bf5b4d360d431ac0b6cfa86",
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.8",
78
- "@elizaos/plugin-sql": "1.2.11-beta.8",
79
- "@elizaos/server": "1.2.11-beta.8",
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",
@@ -40,7 +40,7 @@
40
40
  "tsup.config.ts"
41
41
  ],
42
42
  "dependencies": {
43
- "@elizaos/core": "1.2.11-beta.7",
43
+ "@elizaos/core": "1.2.11-beta.8",
44
44
  "zod": "^3.24.4"
45
45
  },
46
46
  "devDependencies": {
@@ -40,7 +40,7 @@
40
40
  "tsup.config.ts"
41
41
  ],
42
42
  "dependencies": {
43
- "@elizaos/core": "1.2.11-beta.7",
43
+ "@elizaos/core": "1.2.11-beta.8",
44
44
  "@tanstack/react-query": "^5.80.7",
45
45
  "clsx": "^2.1.1",
46
46
  "tailwind-merge": "^3.3.1",
@@ -28,10 +28,10 @@
28
28
  "dist"
29
29
  ],
30
30
  "dependencies": {
31
- "@elizaos/cli": "1.2.11-beta.7",
32
- "@elizaos/core": "1.2.11-beta.7",
33
- "@elizaos/plugin-bootstrap": "1.2.11-beta.7",
34
- "@elizaos/plugin-sql": "1.2.11-beta.7",
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.7",
37
- "@elizaos/core": "1.2.11-beta.7",
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.7",
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",