@runa-ai/runa-cli 0.5.35 → 0.5.37
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/commands/ci/machine/machine.d.ts.map +1 -1
- package/dist/config/env-files.d.ts +1 -0
- package/dist/config/env-files.d.ts.map +1 -1
- package/dist/constants/versions.d.ts +9 -2
- package/dist/constants/versions.d.ts.map +1 -1
- package/dist/index.js +30 -10
- package/dist/utils/template-fetcher.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"machine.d.ts","sourceRoot":"","sources":["../../../../src/commands/ci/machine/machine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAEH,OAAO,EAAU,KAAK,YAAY,EAAS,MAAM,QAAQ,CAAC;AA8C1D,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAqB,MAAM,YAAY,CAAC;AAgBxE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"machine.d.ts","sourceRoot":"","sources":["../../../../src/commands/ci/machine/machine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAEH,OAAO,EAAU,KAAK,YAAY,EAAS,MAAM,QAAQ,CAAC;AA8C1D,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAqB,MAAM,YAAY,CAAC;AAgBxE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgtCpB,CAAC;AAMH,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC;AACzC,MAAM,MAAM,UAAU,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,CAAC;AAMxD;;GAEG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,UAAU,GAAG,MAAM,CAYzD;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,UAAU,GAAG,OAAO,CAExD;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAE5D;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,UAAU,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAE3D"}
|
|
@@ -57,6 +57,7 @@ type EnvFilesLoadResult = {
|
|
|
57
57
|
* - process.env (explicitly provided by caller)
|
|
58
58
|
* - `.env.<NODE_ENV>.local`
|
|
59
59
|
* - `.env.local` (skipped when NODE_ENV is `test` to match Next.js)
|
|
60
|
+
* - `.env.personal` (individual developer tokens: Figma, GitHub PAT, etc.)
|
|
60
61
|
* - `.vercel/.env.<vercelEnv>.local` (Vercel CLI output)
|
|
61
62
|
* - `.env.<NODE_ENV>`
|
|
62
63
|
* - `.env`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-files.d.ts","sourceRoot":"","sources":["../../src/config/env-files.ts"],"names":[],"mappings":"AAAA;;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AeG;AACH,wBAAgB,YAAY,CAAC,OAAO,GAAE,mBAAwB,GAAG,kBAAkB,CAwFlF"}
|
|
@@ -11,9 +11,16 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* Compatible templates version.
|
|
14
|
-
*
|
|
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.
|
|
23
|
+
export declare const COMPATIBLE_TEMPLATES_VERSION = "0.5.37";
|
|
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
|
|
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.
|
|
928
|
+
CLI_VERSION = "0.5.37";
|
|
929
929
|
HAS_ADMIN_COMMAND = false;
|
|
930
930
|
}
|
|
931
931
|
});
|
|
@@ -8571,6 +8571,7 @@ function buildBaseEnvFilePaths(params) {
|
|
|
8571
8571
|
baseFiles.push(`.vercel/.env.${params.vercelEnv}.local`);
|
|
8572
8572
|
const includeDotEnvLocal = params.nodeEnv !== "test";
|
|
8573
8573
|
if (includeDotEnvLocal) baseFiles.push(".env.local");
|
|
8574
|
+
baseFiles.push(".env.personal");
|
|
8574
8575
|
baseFiles.push(`.env.${params.nodeEnv}.local`);
|
|
8575
8576
|
return baseFiles;
|
|
8576
8577
|
}
|
|
@@ -15312,6 +15313,8 @@ ${generateProgressCommentBody(progressInput)}`;
|
|
|
15312
15313
|
NEXT_PUBLIC_SUPABASE_URL: getSupabaseUrlWithFallback(context),
|
|
15313
15314
|
NEXT_PUBLIC_SUPABASE_ANON_KEY: getSupabaseAnonKeyWithFallback(context),
|
|
15314
15315
|
// CRITICAL: Required for middleware to bypass auth in E2E tests
|
|
15316
|
+
// E2E_TEST is server-only (proxy.ts), NEXT_PUBLIC_E2E_TEST is for build-time (xstate-test-plugin)
|
|
15317
|
+
E2E_TEST: "true",
|
|
15315
15318
|
NEXT_PUBLIC_E2E_TEST: "true"
|
|
15316
15319
|
}
|
|
15317
15320
|
}),
|
|
@@ -15582,16 +15585,20 @@ ${generateCommentBody(commentInput)}`;
|
|
|
15582
15585
|
src: "runLayers",
|
|
15583
15586
|
input: ({ context }) => {
|
|
15584
15587
|
console.log("[DEBUG] e2ePhase.e2eTests: Running Layer 4");
|
|
15588
|
+
const e2eBaseUrl = `http://localhost:${context.app?.port ?? 3e3}`;
|
|
15585
15589
|
return {
|
|
15586
15590
|
repoRoot: assertRepoRoot(context),
|
|
15587
15591
|
tmpDir: assertTmpDir(context),
|
|
15588
15592
|
layers: [E2E_LAYER],
|
|
15589
|
-
baseUrl:
|
|
15593
|
+
baseUrl: e2eBaseUrl,
|
|
15590
15594
|
env: {
|
|
15591
15595
|
...process.env,
|
|
15592
15596
|
DATABASE_URL: getDatabaseUrlForRuntime(context),
|
|
15593
15597
|
NEXT_PUBLIC_SUPABASE_URL: getSupabaseUrlWithFallback(context),
|
|
15594
|
-
NEXT_PUBLIC_SUPABASE_ANON_KEY: getSupabaseAnonKeyWithFallback(context)
|
|
15598
|
+
NEXT_PUBLIC_SUPABASE_ANON_KEY: getSupabaseAnonKeyWithFallback(context),
|
|
15599
|
+
// CRITICAL: Set BASE_URL for Playwright config and test fixtures
|
|
15600
|
+
// This ensures cookies are set on the same domain Playwright uses
|
|
15601
|
+
BASE_URL: e2eBaseUrl
|
|
15595
15602
|
},
|
|
15596
15603
|
failFast: false
|
|
15597
15604
|
// Don't fail-fast for E2E (warning-only)
|
|
@@ -29379,7 +29386,7 @@ init_esm_shims();
|
|
|
29379
29386
|
|
|
29380
29387
|
// src/constants/versions.ts
|
|
29381
29388
|
init_esm_shims();
|
|
29382
|
-
var COMPATIBLE_TEMPLATES_VERSION = "0.
|
|
29389
|
+
var COMPATIBLE_TEMPLATES_VERSION = "0.5.37";
|
|
29383
29390
|
var TEMPLATES_PACKAGE_NAME = "@r06-dev/runa-templates";
|
|
29384
29391
|
var GITHUB_PACKAGES_REGISTRY = "https://npm.pkg.github.com";
|
|
29385
29392
|
|
|
@@ -29518,15 +29525,28 @@ async function installTemplates(tempDir, authToken, verbose) {
|
|
|
29518
29525
|
}
|
|
29519
29526
|
if (message.includes("404")) {
|
|
29520
29527
|
throw new CLIError("Templates package not found.", "TEMPLATES_NOT_FOUND", [
|
|
29521
|
-
`Package: ${TEMPLATES_PACKAGE_NAME}`,
|
|
29522
|
-
"
|
|
29523
|
-
"
|
|
29528
|
+
`Package: ${TEMPLATES_PACKAGE_NAME}@${COMPATIBLE_TEMPLATES_VERSION}`,
|
|
29529
|
+
"",
|
|
29530
|
+
"Possible causes:",
|
|
29531
|
+
" 1. This version is not published yet",
|
|
29532
|
+
" 2. The package registry is unavailable",
|
|
29533
|
+
"",
|
|
29534
|
+
"Workarounds:",
|
|
29535
|
+
" - Try a specific version: runa init --templates-version 0.5.30",
|
|
29536
|
+
" - Check available versions: npm view @r06-dev/runa-templates versions"
|
|
29524
29537
|
]);
|
|
29525
29538
|
}
|
|
29539
|
+
const errorDetail = message.length > 200 ? message.slice(0, 200) + "..." : message;
|
|
29526
29540
|
throw new CLIError("Failed to install templates.", "TEMPLATES_INSTALL_FAILED", [
|
|
29527
|
-
|
|
29528
|
-
"
|
|
29529
|
-
"
|
|
29541
|
+
`Error: ${errorDetail}`,
|
|
29542
|
+
"",
|
|
29543
|
+
"Troubleshooting:",
|
|
29544
|
+
" 1. Check your network connection",
|
|
29545
|
+
" 2. Verify GitHub authentication: gh auth status",
|
|
29546
|
+
" 3. Run with DEBUG=true for verbose output",
|
|
29547
|
+
" 4. Clear cache and retry: runa init --fresh",
|
|
29548
|
+
"",
|
|
29549
|
+
`Requested version: ${COMPATIBLE_TEMPLATES_VERSION}`
|
|
29530
29550
|
]);
|
|
29531
29551
|
}
|
|
29532
29552
|
}
|
|
@@ -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;
|
|
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"}
|