@runa-ai/runa-cli 0.5.36 → 0.5.38
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/commands/inject-test-attrs/manifest-generator.d.ts.map +1 -1
- package/dist/commands/test/commands/test-layer.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 +1 -1
- package/dist/index.js +19 -5
- 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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest-generator.d.ts","sourceRoot":"","sources":["../../../src/commands/inject-test-attrs/manifest-generator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAkEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"manifest-generator.d.ts","sourceRoot":"","sources":["../../../src/commands/inject-test-attrs/manifest-generator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAkEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAqY3D;;;;;;;GAOG;AACH,wBAAsB,qBAAqB,CACzC,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,OAAO,EAChB,cAAc,GAAE,OAAe,GAC9B,OAAO,CAAC;IACT,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,sBAAsB,EAAE,qBAAqB,EAAE,CAAC;CACjD,CAAC,CAyHD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-layer.d.ts","sourceRoot":"","sources":["../../../../src/commands/test/commands/test-layer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"test-layer.d.ts","sourceRoot":"","sources":["../../../../src/commands/test/commands/test-layer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA6KpC,eAAO,MAAM,iBAAiB,SAAwB,CAAC;AACvD,eAAO,MAAM,iBAAiB,SAAwB,CAAC;AACvD,eAAO,MAAM,iBAAiB,SAAwB,CAAC;AACvD,eAAO,MAAM,iBAAiB,SAAwB,CAAC;AACvD,eAAO,MAAM,iBAAiB,SAAwB,CAAC;AAmDvD,eAAO,MAAM,gBAAgB,SAI5B,CAAC"}
|
|
@@ -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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H,wBAAgB,YAAY,CAAC,OAAO,GAAE,mBAAwB,GAAG,kBAAkB,CAwFlF"}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
* Sync strategy: Keep this in sync with packages/runa-templates/package.json version.
|
|
22
22
|
*/
|
|
23
|
-
export declare const COMPATIBLE_TEMPLATES_VERSION = "0.5.
|
|
23
|
+
export declare const COMPATIBLE_TEMPLATES_VERSION = "0.5.38";
|
|
24
24
|
/**
|
|
25
25
|
* Templates package name on GitHub Packages.
|
|
26
26
|
* Published to npm.pkg.github.com (requires NODE_AUTH_TOKEN).
|
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.38";
|
|
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.5.
|
|
29389
|
+
var COMPATIBLE_TEMPLATES_VERSION = "0.5.38";
|
|
29383
29390
|
var TEMPLATES_PACKAGE_NAME = "@r06-dev/runa-templates";
|
|
29384
29391
|
var GITHUB_PACKAGES_REGISTRY = "https://npm.pkg.github.com";
|
|
29385
29392
|
|
|
@@ -30503,7 +30510,10 @@ async function analyzeHonoRoutes(repoRoot, verbose, resolveSchemas = false) {
|
|
|
30503
30510
|
sourceFile: route.fileName,
|
|
30504
30511
|
resourceName: route.resourceName,
|
|
30505
30512
|
hasParams: route.hasParams,
|
|
30506
|
-
params: route.params
|
|
30513
|
+
params: route.params,
|
|
30514
|
+
// v8+: Include export info for correct import generation
|
|
30515
|
+
exportType: route.exportType,
|
|
30516
|
+
exportName: route.exportName
|
|
30507
30517
|
};
|
|
30508
30518
|
if (resolveSchemas && "inputSchema" in route && route.inputSchema) {
|
|
30509
30519
|
contract.inputSchema = route.inputSchema;
|
|
@@ -34125,6 +34135,7 @@ async function runSingleLayer(params) {
|
|
|
34125
34135
|
filter: params.options.filter,
|
|
34126
34136
|
reviewSnapshots: params.options.reviewSnapshots,
|
|
34127
34137
|
forceRegenerate: params.options.force,
|
|
34138
|
+
skipGeneration: params.options.skipGeneration,
|
|
34128
34139
|
invokedAs: `runa test:layer${params.layer}`
|
|
34129
34140
|
});
|
|
34130
34141
|
emitJsonSuccess(params.cmd, TestRunOutputSchema, output3);
|
|
@@ -34186,6 +34197,9 @@ function createLayerCommand(layer) {
|
|
|
34186
34197
|
).action(async (options) => {
|
|
34187
34198
|
await runSingleLayer({ cmd, layer, options });
|
|
34188
34199
|
});
|
|
34200
|
+
if (layer === 3) {
|
|
34201
|
+
cmd.option("--skip-generation", "Skip auto-generation of API tests (run manual tests only)");
|
|
34202
|
+
}
|
|
34189
34203
|
if (layer >= 4) {
|
|
34190
34204
|
cmd.option("--generate", "Generate tests from XState before running (Layer 4)").option("--advanced", "Generate advanced tests (requires --generate)").option("--auto", "Zero-config auto-generation (implementation-driven)").option("--update-snapshots", "Update visual baselines (Layer 4)").option("--filter <pattern>", 'Filter tests by pattern (e.g., "checkout-*")').option("--review-snapshots", "Interactive review of changed visual snapshots (Layer 4)").option("--force", "Force regenerate all tests, bypassing cache");
|
|
34191
34205
|
}
|