@elizaos/cli 1.0.18 → 1.0.19

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.html CHANGED
@@ -1,11 +1,20 @@
1
1
  <!doctype html>
2
2
  <html lang="en" class="dark">
3
3
  <head>
4
+ <script type="module">
5
+ // CommonJS shims for browser compatibility
6
+ if (typeof window !== 'undefined') {
7
+ window.global = window.global || window;
8
+ window.exports = window.exports || {};
9
+ window.module = window.module || { exports: {} };
10
+ }
11
+ </script>
12
+
4
13
  <meta charset="UTF-8" />
5
14
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
15
  <link rel="icon" type="image/x-icon" href="/favicon.ico" />
7
16
  <title>ElizaOS - Client</title>
8
- <script type="module" crossorigin src="/assets/index-BtIQw5Dh.js"></script>
17
+ <script type="module" crossorigin src="/assets/index-ZEZhrfaX.js"></script>
9
18
  <link rel="modulepreload" crossorigin href="/assets/vendor-Dp9Dttv5.js">
10
19
  <link rel="stylesheet" crossorigin href="/assets/index-BXWgVSUO.css">
11
20
  </head>
package/dist/index.js CHANGED
@@ -20,7 +20,6 @@ import {
20
20
  detectDirectoryType,
21
21
  detectPluginContext,
22
22
  displayBanner,
23
- executeInstallation,
24
23
  fetchPluginRegistry,
25
24
  findNextAvailablePort,
26
25
  getCliInstallTag,
@@ -3444,9 +3443,18 @@ async function performCliUpdate(options = {}) {
3444
3443
  }
3445
3444
  }
3446
3445
  }
3447
- await executeInstallation("@elizaos/cli", latestVersion, process.cwd());
3448
- console.log(`CLI updated successfully to version ${latestVersion} [\u2713]`);
3449
- return true;
3446
+ try {
3447
+ await execa5("bun", ["add", "-g", `@elizaos/cli@${latestVersion}`], { stdio: "inherit" });
3448
+ console.log(`CLI updated successfully to version ${latestVersion} [\u2713]`);
3449
+ return true;
3450
+ } catch (bunError) {
3451
+ console.error("Bun installation not found. Please install bun first:");
3452
+ console.error(" curl -fsSL https://bun.sh/install | bash");
3453
+ console.error(" # or");
3454
+ console.error(" npm install -g bun");
3455
+ logger11.debug("Bun error:", bunError instanceof Error ? bunError.message : String(bunError));
3456
+ return false;
3457
+ }
3450
3458
  } catch (error) {
3451
3459
  console.error(`CLI update failed: ${error instanceof Error ? error.message : String(error)}`);
3452
3460
  return false;
@@ -3595,8 +3603,11 @@ var update = new Command4().name("update").description("Update ElizaOS CLI and p
3595
3603
  }
3596
3604
  }).action(async (options) => {
3597
3605
  try {
3606
+ const cwd = process.cwd();
3607
+ const directoryInfo = detectDirectoryType(cwd);
3608
+ const isInProject = directoryInfo && isValidForUpdates(directoryInfo);
3598
3609
  const updateCli = options.cli || !options.cli && !options.packages;
3599
- const updatePackages = options.packages || !options.cli && !options.packages;
3610
+ const updatePackages = options.packages || !options.cli && !options.packages && isInProject;
3600
3611
  if (updateCli) {
3601
3612
  const isNpx = await isRunningViaNpx();
3602
3613
  const isBunx = await isRunningViaBunx();
@@ -3616,8 +3627,6 @@ var update = new Command4().name("update").description("Update ElizaOS CLI and p
3616
3627
  }
3617
3628
  }
3618
3629
  if (updatePackages) {
3619
- const cwd = process.cwd();
3620
- const directoryInfo = detectDirectoryType(cwd);
3621
3630
  if (!directoryInfo) {
3622
3631
  console.error("Cannot update packages in this directory.");
3623
3632
  console.info("This directory is not accessible or does not exist.");
@@ -3625,7 +3634,7 @@ var update = new Command4().name("update").description("Update ElizaOS CLI and p
3625
3634
  return;
3626
3635
  }
3627
3636
  logger13.debug(`Detected ${directoryInfo.type}`);
3628
- if (!isValidForUpdates(directoryInfo)) {
3637
+ if (!isInProject) {
3629
3638
  handleInvalidDirectory(directoryInfo);
3630
3639
  return;
3631
3640
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elizaos/cli",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
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": "b7aa117402296a05d5ad56eae15656be03cbf83c",
72
+ "gitHead": "3464099b23e8f7900fc1bf5b95c5c348aedceaea",
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.0.18",
78
- "@elizaos/plugin-sql": "1.0.18",
79
- "@elizaos/server": "1.0.18",
77
+ "@elizaos/core": "1.0.19",
78
+ "@elizaos/plugin-sql": "1.0.19",
79
+ "@elizaos/server": "1.0.19",
80
80
  "bun": "^1.2.17",
81
81
  "chalk": "^5.3.0",
82
82
  "chokidar": "^4.0.3",
Binary file
Binary file