@elizaos/cli 1.5.9-alpha.17 → 1.5.9-alpha.18

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 CHANGED
@@ -4688,7 +4688,7 @@ __export(exports_version, {
4688
4688
  BUILD_TIME: () => BUILD_TIME,
4689
4689
  BUILD_ENV: () => BUILD_ENV
4690
4690
  });
4691
- var CLI_VERSION = "1.5.9-alpha.17", CLI_NAME = "@elizaos/cli", CLI_DESCRIPTION = "elizaOS CLI - Manage your AI agents and plugins", BUILD_TIME = "2025-09-17T04:09:33.993Z", BUILD_ENV = "production", version_default;
4691
+ var CLI_VERSION = "1.5.9-alpha.18", CLI_NAME = "@elizaos/cli", CLI_DESCRIPTION = "elizaOS CLI - Manage your AI agents and plugins", BUILD_TIME = "2025-09-17T04:27:24.320Z", BUILD_ENV = "production", version_default;
4692
4692
  var init_version = __esm(() => {
4693
4693
  version_default = {
4694
4694
  version: CLI_VERSION,
@@ -14771,12 +14771,22 @@ function buildGitHubSpecifier(githubSpec, versionOrTag) {
14771
14771
  }
14772
14772
  async function executeInstallationWithFallback(packageName, versionOrTag = "", directory = process.cwd(), githubFallback) {
14773
14773
  const result = await executeInstallation(packageName, versionOrTag, directory);
14774
- if (result.success || !githubFallback) {
14774
+ if (result.success) {
14775
+ return result;
14776
+ }
14777
+ if (versionOrTag && ["alpha", "beta"].includes(versionOrTag)) {
14778
+ const retryNoTag = await executeInstallation(packageName, "", directory);
14779
+ if (retryNoTag.success) {
14780
+ return retryNoTag;
14781
+ }
14782
+ }
14783
+ if (!githubFallback) {
14775
14784
  return result;
14776
14785
  }
14777
14786
  logger18.debug(`npm installation failed, attempting GitHub fallback: ${githubFallback}`);
14778
14787
  await removeFromBunLock(packageName, directory);
14779
- const githubSpecifier = `github:${githubFallback}${versionOrTag ? `#${versionOrTag}` : ""}`;
14788
+ const ref = versionOrTag && !["alpha", "beta"].includes(versionOrTag) ? versionOrTag : "";
14789
+ const githubSpecifier = `github:${githubFallback}${ref ? `#${ref}` : ""}`;
14780
14790
  return await executeInstallation(githubSpecifier, "", directory);
14781
14791
  }
14782
14792
  var init_package_manager = __esm(() => {
@@ -299333,5 +299343,5 @@ main2().catch((error2) => {
299333
299343
  process.exit(1);
299334
299344
  });
299335
299345
 
299336
- //# debugId=FFBEF36009F76F4464756E2164756E21
299346
+ //# debugId=936AB48921A9C2FC64756E2164756E21
299337
299347
  //# sourceMappingURL=index.js.map