@runa-ai/runa-cli 0.5.35 → 0.5.36

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.
@@ -11,9 +11,16 @@
11
11
  */
12
12
  /**
13
13
  * Compatible templates version.
14
- * This should be updated when templates have breaking changes.
14
+ *
15
+ * IMPORTANT: This MUST be updated when releasing a new version.
16
+ * This value determines which @r06-dev/runa-templates version is fetched.
17
+ *
18
+ * If this is outdated, users will get old templates with mismatched SDK versions,
19
+ * causing "package not found" errors during `pnpm install`.
20
+ *
21
+ * Sync strategy: Keep this in sync with packages/runa-templates/package.json version.
15
22
  */
16
- export declare const COMPATIBLE_TEMPLATES_VERSION = "0.1.0";
23
+ export declare const COMPATIBLE_TEMPLATES_VERSION = "0.5.36";
17
24
  /**
18
25
  * Templates package name on GitHub Packages.
19
26
  * Published to npm.pkg.github.com (requires NODE_AUTH_TOKEN).
@@ -1 +1 @@
1
- {"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../src/constants/versions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH;;;GAGG;AACH,eAAO,MAAM,4BAA4B,UAAU,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,sBAAsB,4BAA4B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,wBAAwB,+BAA+B,CAAC"}
1
+ {"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../src/constants/versions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,4BAA4B,WAAW,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,sBAAsB,4BAA4B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,wBAAwB,+BAA+B,CAAC"}
package/dist/index.js CHANGED
@@ -925,7 +925,7 @@ var CLI_VERSION, HAS_ADMIN_COMMAND;
925
925
  var init_version = __esm({
926
926
  "src/version.ts"() {
927
927
  init_esm_shims();
928
- CLI_VERSION = "0.5.35";
928
+ CLI_VERSION = "0.5.36";
929
929
  HAS_ADMIN_COMMAND = false;
930
930
  }
931
931
  });
@@ -29379,7 +29379,7 @@ init_esm_shims();
29379
29379
 
29380
29380
  // src/constants/versions.ts
29381
29381
  init_esm_shims();
29382
- var COMPATIBLE_TEMPLATES_VERSION = "0.1.0";
29382
+ var COMPATIBLE_TEMPLATES_VERSION = "0.5.36";
29383
29383
  var TEMPLATES_PACKAGE_NAME = "@r06-dev/runa-templates";
29384
29384
  var GITHUB_PACKAGES_REGISTRY = "https://npm.pkg.github.com";
29385
29385
 
@@ -29518,15 +29518,28 @@ async function installTemplates(tempDir, authToken, verbose) {
29518
29518
  }
29519
29519
  if (message.includes("404")) {
29520
29520
  throw new CLIError("Templates package not found.", "TEMPLATES_NOT_FOUND", [
29521
- `Package: ${TEMPLATES_PACKAGE_NAME}`,
29522
- "Ensure the package is published to GitHub Packages.",
29523
- "Contact your administrator if the issue persists."
29521
+ `Package: ${TEMPLATES_PACKAGE_NAME}@${COMPATIBLE_TEMPLATES_VERSION}`,
29522
+ "",
29523
+ "Possible causes:",
29524
+ " 1. This version is not published yet",
29525
+ " 2. The package registry is unavailable",
29526
+ "",
29527
+ "Workarounds:",
29528
+ " - Try a specific version: runa init --templates-version 0.5.30",
29529
+ " - Check available versions: npm view @r06-dev/runa-templates versions"
29524
29530
  ]);
29525
29531
  }
29532
+ const errorDetail = message.length > 200 ? message.slice(0, 200) + "..." : message;
29526
29533
  throw new CLIError("Failed to install templates.", "TEMPLATES_INSTALL_FAILED", [
29527
- "Check your network connection",
29528
- "Ensure pnpm is installed: npm install -g pnpm",
29529
- "Try running with --verbose for more details"
29534
+ `Error: ${errorDetail}`,
29535
+ "",
29536
+ "Troubleshooting:",
29537
+ " 1. Check your network connection",
29538
+ " 2. Verify GitHub authentication: gh auth status",
29539
+ " 3. Run with DEBUG=true for verbose output",
29540
+ " 4. Clear cache and retry: runa init --fresh",
29541
+ "",
29542
+ `Requested version: ${COMPATIBLE_TEMPLATES_VERSION}`
29530
29543
  ]);
29531
29544
  }
29532
29545
  }
@@ -1 +1 @@
1
- {"version":3,"file":"template-fetcher.d.ts","sourceRoot":"","sources":["../../src/utils/template-fetcher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAkEH,MAAM,WAAW,qBAAqB;IACpC,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,0BAA0B;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC,8CAA8C;IAC9C,YAAY,EAAE,MAAM,CAAC;IACrB,+BAA+B;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,+CAA+C;IAC/C,MAAM,EAAE,OAAO,CAAC;CACjB;AA+RD;;;;;;;;GAQG;AACH,wBAAsB,cAAc,CAClC,OAAO,GAAE,qBAA0B,GAClC,OAAO,CAAC,oBAAoB,CAAC,CAgF/B;AAmGD;;GAEG;AACH,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAKzD"}
1
+ {"version":3,"file":"template-fetcher.d.ts","sourceRoot":"","sources":["../../src/utils/template-fetcher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAkEH,MAAM,WAAW,qBAAqB;IACpC,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,0BAA0B;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC,8CAA8C;IAC9C,YAAY,EAAE,MAAM,CAAC;IACrB,+BAA+B;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,+CAA+C;IAC/C,MAAM,EAAE,OAAO,CAAC;CACjB;AA6SD;;;;;;;;GAQG;AACH,wBAAsB,cAAc,CAClC,OAAO,GAAE,qBAA0B,GAClC,OAAO,CAAC,oBAAoB,CAAC,CAgF/B;AAmGD;;GAEG;AACH,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAKzD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runa-ai/runa-cli",
3
- "version": "0.5.35",
3
+ "version": "0.5.36",
4
4
  "private": false,
5
5
  "description": "AI-powered DevOps CLI",
6
6
  "type": "module",