@cnc-tools/storm 0.17.0 → 0.18.0
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/bin/storm.js +37 -39
- package/dist/build-info.js +1 -1
- package/dist/chunks/{chunk-4WAMTUWZ.js → chunk-24UYAK4R.js} +88 -67
- package/dist/chunks/{chunk-RNAS7JHE.js → chunk-2JMWUKH3.js} +710 -102
- package/dist/chunks/{chunk-YEPFSLQR.js → chunk-3VXZONGE.js} +2 -2
- package/dist/chunks/{chunk-D27KILIA.js → chunk-55O4FCN4.js} +1 -1
- package/dist/chunks/{chunk-JN3YY6ZH.js → chunk-AS37D43E.js} +27 -20
- package/dist/chunks/{chunk-2VP4GRJM.js → chunk-CQAY6GLP.js} +54 -13
- package/dist/chunks/{chunk-MR77L2GK.js → chunk-DZLU7BYK.js} +5 -5
- package/dist/chunks/{chunk-LKTZ5OXS.js → chunk-EI3XDCEI.js} +1 -1
- package/dist/chunks/{chunk-FNBB6V4R.js → chunk-FDUY3BNF.js} +1 -1
- package/dist/chunks/{chunk-RWIXDDCK.js → chunk-GUCCYCIO.js} +3 -3
- package/dist/chunks/{chunk-6UHIJXZG.js → chunk-HBI4LEMH.js} +2 -2
- package/dist/chunks/{chunk-CKGZA25H.js → chunk-K4MDQPLW.js} +1 -1
- package/dist/chunks/{chunk-F4MOYHRY.js → chunk-KK7PAWIZ.js} +1 -1
- package/dist/chunks/{chunk-GRT3UIBV.js → chunk-KQ5FXRUD.js} +1 -1
- package/dist/chunks/{chunk-WV3DP6NR.js → chunk-LKXHGGGX.js} +1 -1
- package/dist/chunks/{chunk-4O5C2XGJ.js → chunk-LOGHIUUB.js} +6 -6
- package/dist/chunks/{chunk-7DZE67QM.js → chunk-OEPFINFT.js} +2 -2
- package/dist/chunks/{chunk-HWIQ2S7K.js → chunk-OI4AP6Z7.js} +3 -3
- package/dist/chunks/{chunk-DADEYJDW.js → chunk-PMBQWVTW.js} +6 -6
- package/dist/chunks/{chunk-HP3CURSZ.js → chunk-SZMYIIG2.js} +2 -2
- package/dist/chunks/{chunk-2RNDPDTJ.js → chunk-TXCOFC7N.js} +2 -2
- package/dist/chunks/{chunk-BCBKYOHW.js → chunk-UXD3TVWM.js} +1 -1
- package/dist/chunks/{chunk-M7EKRGVD.js → chunk-WNW2QXQK.js} +1 -1
- package/dist/chunks/{live-app-R76JQXZL.js → live-app-UY7BEDUN.js} +9 -7
- package/dist/cli.d.ts +28 -0
- package/dist/cli.js +64 -0
- package/dist/commands/exec/across-sandboxes-outcomes.d.ts +1 -1
- package/dist/commands/exec/across-sandboxes-outcomes.js +1 -1
- package/dist/commands/exec/before-run.d.ts +1 -1
- package/dist/commands/exec/command.d.ts +36 -12
- package/dist/commands/exec/command.js +18 -18
- package/dist/commands/exec/execute-run.js +1 -1
- package/dist/commands/exec/outcomes.d.ts +71 -15
- package/dist/commands/exec/outcomes.js +46 -6
- package/dist/commands/exec/plan-run.d.ts +1 -1
- package/dist/commands/exec/plan-run.js +8 -3
- package/dist/commands/exec/run-metadata.js +1 -1
- package/dist/commands/exec/run-summary.js +1 -1
- package/dist/commands/runs/facts.d.ts +1 -1
- package/dist/commands/runs/facts.js +2 -2
- package/dist/commands/runs/list/command.d.ts +2 -2
- package/dist/commands/runs/list/command.js +9 -9
- package/dist/commands/runs/list/outcomes.d.ts +1 -1
- package/dist/commands/runs/logs/command.js +9 -9
- package/dist/commands/runs/show/command.d.ts +2 -2
- package/dist/commands/runs/show/command.js +16 -16
- package/dist/commands/runs/show/metadata.js +1 -1
- package/dist/commands/runs/show/outcomes.d.ts +1 -1
- package/dist/commands/runs/show/outcomes.js +1 -1
- package/dist/commands/snapshots/build/command.d.ts +22 -14
- package/dist/commands/snapshots/build/command.js +32 -30
- package/dist/commands/snapshots/build/metadata.js +1 -1
- package/dist/commands/snapshots/build/outcomes.d.ts +14 -10
- package/dist/commands/snapshots/build/outcomes.js +1 -1
- package/dist/commands/snapshots/list/command.d.ts +2 -2
- package/dist/commands/snapshots/list/command.js +19 -19
- package/dist/commands/snapshots/list/outcomes.d.ts +2 -2
- package/dist/commands/snapshots/list/outcomes.js +3 -3
- package/dist/commands/snapshots/prune/command.js +14 -14
- package/dist/commands/suites/list/command.js +10 -10
- package/dist/commands/test/command.d.ts +36 -12
- package/dist/commands/test/command.js +20 -20
- package/dist/commands/test/outcomes.d.ts +18 -6
- package/dist/config-file/define.d.ts +1 -1
- package/dist/config-file/toolchain.d.ts +13 -3
- package/dist/config-file/toolchain.js +41 -5
- package/dist/context.d.ts +3 -1
- package/dist/context.js +2 -1
- package/dist/core/outcomes.d.ts +1 -1
- package/dist/core/run.js +1 -1
- package/dist/extension-commands.d.ts +2 -7
- package/dist/extension-commands.js +3 -17
- package/dist/extensions/testserver/commands/pool/create/command.js +3 -3
- package/dist/extensions/testserver/commands/pool/list/command.js +2 -2
- package/dist/run-directory/recording.js +1 -1
- package/dist/run-directory/run-record.d.ts +5 -5
- package/dist/run-directory/run-record.js +5 -5
- package/dist/runner/build-snapshots.d.ts +5 -0
- package/dist/runner/build-snapshots.js +11 -5
- package/dist/runner/gateways.d.ts +37 -4
- package/dist/runner/gh.d.ts +42 -0
- package/dist/runner/gh.js +58 -0
- package/dist/runner/index.d.ts +5 -4
- package/dist/runner/index.js +3 -2
- package/dist/runner/live/checkout-gateway.js +7 -0
- package/dist/runner/live/gh-output.d.ts +17 -0
- package/dist/runner/live/gh-output.js +37 -0
- package/dist/runner/live/gh-token-gateway.d.ts +13 -0
- package/dist/runner/live/gh-token-gateway.js +51 -0
- package/dist/runner/live/sandbox-gateway.js +12 -2
- package/dist/runner/live/snapshot-records.js +10 -9
- package/dist/runner/local-snapshot-index.d.ts +11 -5
- package/dist/runner/local-snapshot-index.js +13 -14
- package/dist/runner/ready.d.ts +1 -1
- package/dist/runner/ready.js +1 -1
- package/dist/runner/scope.d.ts +5 -2
- package/dist/runner/scope.js +6 -2
- package/dist/runner/secrets.d.ts +37 -14
- package/dist/runner/secrets.js +218 -25
- package/dist/runner/session.js +3 -0
- package/dist/runner/shared-snapshot-entry.d.ts +3 -3
- package/dist/runner/shared-snapshot-entry.js +4 -4
- package/dist/runner/shared-snapshot-list.d.ts +1 -1
- package/dist/runner/shared-snapshot-list.js +1 -1
- package/dist/runner/shared-snapshot-lookup.d.ts +1 -1
- package/dist/runner/shared-snapshot-lookup.js +1 -1
- package/dist/runner/snapshot-build.js +54 -25
- package/dist/runner/snapshot-choice.js +1 -0
- package/dist/runner/snapshot-inspect.js +2 -5
- package/dist/runner/snapshot-key.d.ts +21 -7
- package/dist/runner/snapshot-key.js +31 -7
- package/dist/runner/snapshot-source.d.ts +31 -0
- package/dist/runner/snapshot-source.js +122 -0
- package/dist/runner/vercel-sandbox-check.d.ts +2 -0
- package/dist/runner/vercel-sandbox-check.js +6 -2
- package/dist/runner/vercel-sandbox-options.d.ts +36 -6
- package/dist/runner/vercel-sandbox-options.js +62 -19
- package/dist/runner/vercel-sandbox-secrets.d.ts +55 -6
- package/dist/runner/vercel-sandbox-secrets.js +142 -9
- package/dist/sdk/extension/commands.d.ts +3 -8
- package/dist/sdk/extension/commands.js +1 -3
- package/package.json +4 -3
- package/skills/overview.md +1 -1
- package/dist/application.d.ts +0 -30
- package/dist/application.js +0 -41
- package/dist/bin/run.d.ts +0 -18
- package/dist/bin/run.js +0 -31
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
RESOURCES,
|
|
4
4
|
liveDriverContexts,
|
|
5
5
|
liveResourceContexts
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OI4AP6Z7.js";
|
|
7
7
|
import "./chunk-EEENLQHE.js";
|
|
8
8
|
import "./chunk-72ZFEMAW.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-55O4FCN4.js";
|
|
10
|
+
import "./chunk-TXCOFC7N.js";
|
|
11
11
|
import {
|
|
12
12
|
RUNS_SUBPATH,
|
|
13
13
|
liveRunDirectoryGateway,
|
|
14
14
|
unavailableRunDirectoryGateway
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LOGHIUUB.js";
|
|
16
16
|
import {
|
|
17
17
|
liveCommandGateway,
|
|
18
18
|
liveJobSummaryGateway,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
liveProgressTerminal,
|
|
21
21
|
resolveStateDirectory,
|
|
22
22
|
stateDirectoryPattern
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-3VXZONGE.js";
|
|
24
24
|
import {
|
|
25
25
|
RUNNER_SNAPSHOTS_SUBPATH,
|
|
26
26
|
configResolver,
|
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
liveConfigGateway,
|
|
30
30
|
liveCredentialGateway,
|
|
31
31
|
liveFileListsFileGateway,
|
|
32
|
+
liveGhTokenGateway,
|
|
32
33
|
liveGitHubActionsTokenGateway,
|
|
33
34
|
liveRunnerSandboxGateway,
|
|
34
35
|
liveRunnerSnapshotIndexGateway,
|
|
@@ -38,11 +39,11 @@ import {
|
|
|
38
39
|
systemClock,
|
|
39
40
|
systemTimer,
|
|
40
41
|
unavailableRunnerSnapshotIndexGateway
|
|
41
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-2JMWUKH3.js";
|
|
42
43
|
import "./chunk-XBDRVFEV.js";
|
|
43
44
|
import {
|
|
44
45
|
resolveColorDepth
|
|
45
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-24UYAK4R.js";
|
|
46
47
|
|
|
47
48
|
// src/local-services.ts
|
|
48
49
|
import { parse } from "node:path";
|
|
@@ -81,6 +82,7 @@ function liveContext(options) {
|
|
|
81
82
|
config: liveConfigGateway(),
|
|
82
83
|
fileListsFiles: liveFileListsFileGateway(),
|
|
83
84
|
checkout: liveCheckoutGateway(),
|
|
85
|
+
ghTokens: liveGhTokenGateway({ env: options.env }),
|
|
84
86
|
runnerSnapshots: snapshots.ok ? liveRunnerSnapshotIndexGateway({ directory: snapshots.directory }) : unavailableRunnerSnapshotIndexGateway(stateDirectoryPattern(RUNNER_SNAPSHOTS_SUBPATH), snapshots.reason),
|
|
85
87
|
runnerSandboxes: liveRunnerSandboxGateway(),
|
|
86
88
|
runnerTerminal: liveRunnerTerminal({
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type ApplicationSources, type ClinkrApplication } from "@vercel/clinkr";
|
|
2
|
+
import type { StormApp } from "./context.ts";
|
|
3
|
+
/** Inputs for running the `storm` CLI from either `src/bin/storm.ts` or a compiled binary. */
|
|
4
|
+
export interface StormRunOptions {
|
|
5
|
+
readonly argv: readonly string[];
|
|
6
|
+
readonly sources: ApplicationSources<StormApp>;
|
|
7
|
+
readonly version: string;
|
|
8
|
+
readonly commit: string | null | (() => Promise<string | null>);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Resolves storm's command tree, extension mounts, and skills directory from `root`, storm's code root (`src/` from
|
|
12
|
+
* source, `dist/` built). The caller passes `root`, since a bundled build moves this module's code to another file,
|
|
13
|
+
* where `import.meta.dirname` names another directory.
|
|
14
|
+
*/
|
|
15
|
+
export declare function sources(root: string): ApplicationSources<StormApp>;
|
|
16
|
+
/**
|
|
17
|
+
* Builds the `storm` Clinkr application from directory- or manifest-backed `ApplicationSources`.
|
|
18
|
+
*/
|
|
19
|
+
export declare function application(cliSources: ApplicationSources<StormApp>, options?: {
|
|
20
|
+
readonly accessible?: boolean;
|
|
21
|
+
}): Promise<ClinkrApplication<StormApp>>;
|
|
22
|
+
/** Whether the global `--no-color` flag appears before a bare `--` in `argv`, matching Clinkr's global flag parse. */
|
|
23
|
+
export declare function hasNoColorFlag(argv: readonly string[]): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Runs the `storm` CLI under Clinkr's `runNodeCli`, lazily loading `live-app.ts` only when a command runs, then
|
|
26
|
+
* returns the status a command recorded past Clinkr's (the command's exit code), or else Clinkr's.
|
|
27
|
+
*/
|
|
28
|
+
export declare function run(options: StormRunOptions): Promise<number>;
|
package/dist/cli.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { join } from "node:path";
|
|
2
|
+
import { createApplication } from "@vercel/clinkr";
|
|
3
|
+
import { runNodeCli } from "@vercel/clinkr/node";
|
|
4
|
+
import { stormCommands } from "./command-tree.js";
|
|
5
|
+
import { extensionMounts } from "./extension-commands.js";
|
|
6
|
+
import { stormHelpLogo } from "./help-logo.js";
|
|
7
|
+
const DESCRIPTION = [
|
|
8
|
+
"Run a project's tests in a test environment that storm sets up.",
|
|
9
|
+
"",
|
|
10
|
+
"Start with storm test, using the driver and suites declared in storm.config.ts, or storm exec to run any command.",
|
|
11
|
+
"",
|
|
12
|
+
"Docs: https://storm.playground-vercel.tools/",
|
|
13
|
+
].join("\n");
|
|
14
|
+
/**
|
|
15
|
+
* Resolves storm's command tree, extension mounts, and skills directory from `root`, storm's code root (`src/` from
|
|
16
|
+
* source, `dist/` built). The caller passes `root`, since a bundled build moves this module's code to another file,
|
|
17
|
+
* where `import.meta.dirname` names another directory.
|
|
18
|
+
*/
|
|
19
|
+
export function sources(root) {
|
|
20
|
+
return {
|
|
21
|
+
commands: stormCommands.directory(join(root, "commands")),
|
|
22
|
+
mounts: extensionMounts(root),
|
|
23
|
+
skills: join(root, "../skills"),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Builds the `storm` Clinkr application from directory- or manifest-backed `ApplicationSources`.
|
|
28
|
+
*/
|
|
29
|
+
export function application(cliSources, options) {
|
|
30
|
+
const accessible = options?.accessible ?? false;
|
|
31
|
+
return createApplication("storm", {
|
|
32
|
+
...cliSources,
|
|
33
|
+
description: DESCRIPTION,
|
|
34
|
+
helpLogo: (terminal) => stormHelpLogo(terminal, { accessible }),
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/** Whether the global `--no-color` flag appears before a bare `--` in `argv`, matching Clinkr's global flag parse. */
|
|
38
|
+
export function hasNoColorFlag(argv) {
|
|
39
|
+
for (const token of argv) {
|
|
40
|
+
if (token === "--")
|
|
41
|
+
return false;
|
|
42
|
+
if (token === "--no-color")
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Runs the `storm` CLI under Clinkr's `runNodeCli`, lazily loading `live-app.ts` only when a command runs, then
|
|
49
|
+
* returns the status a command recorded past Clinkr's (the command's exit code), or else Clinkr's.
|
|
50
|
+
*/
|
|
51
|
+
export async function run(options) {
|
|
52
|
+
const exit = { status: undefined };
|
|
53
|
+
const accessible = process.env["VERCEL_ACCESSIBLE"] === "1";
|
|
54
|
+
const noColor = hasNoColorFlag(options.argv);
|
|
55
|
+
const status = await runNodeCli(await application(options.sources, { accessible }), {
|
|
56
|
+
argv: options.argv,
|
|
57
|
+
app: async (host) => {
|
|
58
|
+
const commitPromise = typeof options.commit === "function" ? options.commit() : Promise.resolve(options.commit);
|
|
59
|
+
const [{ liveStormApp }, resolvedCommit] = await Promise.all([import("./live-app.js"), commitPromise]);
|
|
60
|
+
return liveStormApp(host, { version: options.version, commit: resolvedCommit }, exit, { noColor });
|
|
61
|
+
},
|
|
62
|
+
});
|
|
63
|
+
return exit.status ?? status;
|
|
64
|
+
}
|
|
@@ -91,7 +91,7 @@ export declare const sandboxesRanSchema: z.ZodObject<{
|
|
|
91
91
|
built: z.ZodBoolean;
|
|
92
92
|
vcpus: z.ZodNumber;
|
|
93
93
|
region: z.ZodString;
|
|
94
|
-
|
|
94
|
+
image: z.ZodString;
|
|
95
95
|
uploadBytes: z.ZodNullable<z.ZodNumber>;
|
|
96
96
|
}, z.core.$strip>;
|
|
97
97
|
cleanup: z.ZodType<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts>>;
|
|
@@ -71,9 +71,9 @@ export declare function prepareRunnerForRun(app: StormApp, runner: VercelSandbox
|
|
|
71
71
|
readonly sandboxes: number;
|
|
72
72
|
readonly secrets: readonly string[];
|
|
73
73
|
}): Promise<{
|
|
74
|
+
refusal?: never;
|
|
74
75
|
readonly ok: true;
|
|
75
76
|
readonly prepared: import("../../runner/prepare.ts").PreparedRunner;
|
|
76
|
-
readonly refusal?: never;
|
|
77
77
|
} | {
|
|
78
78
|
readonly prepared?: never;
|
|
79
79
|
readonly ok: false;
|
|
@@ -35,7 +35,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
35
35
|
built: z.ZodBoolean;
|
|
36
36
|
vcpus: z.ZodNumber;
|
|
37
37
|
region: z.ZodString;
|
|
38
|
-
|
|
38
|
+
image: z.ZodString;
|
|
39
39
|
buildMs: z.ZodNumber;
|
|
40
40
|
}, z.core.$strip>>;
|
|
41
41
|
timeline: z.ZodObject<{
|
|
@@ -170,7 +170,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
170
170
|
built: z.ZodBoolean;
|
|
171
171
|
vcpus: z.ZodNumber;
|
|
172
172
|
region: z.ZodString;
|
|
173
|
-
|
|
173
|
+
image: z.ZodString;
|
|
174
174
|
uploadBytes: z.ZodNullable<z.ZodNumber>;
|
|
175
175
|
}, z.core.$strip>;
|
|
176
176
|
cleanup: z.ZodType<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts>>;
|
|
@@ -264,9 +264,11 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
264
264
|
configFile: string | null;
|
|
265
265
|
}]>;
|
|
266
266
|
credentialsInvalid: import("@vercel/clinkr").SharedError<"credentials_invalid", [data: {
|
|
267
|
-
|
|
267
|
+
problems: {
|
|
268
268
|
name: string;
|
|
269
|
-
problem: "missing" | "multiline" | "short";
|
|
269
|
+
problem: "gh-failed" | "gh-not-authenticated" | "gh-not-installed" | "gh-preframed" | "gh-timed-out" | "missing" | "multiline" | "short";
|
|
270
|
+
detail: string;
|
|
271
|
+
hint: string;
|
|
270
272
|
}[];
|
|
271
273
|
minLength: number;
|
|
272
274
|
configFile: string | null;
|
|
@@ -294,6 +296,10 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
294
296
|
}[];
|
|
295
297
|
}[];
|
|
296
298
|
}]>;
|
|
299
|
+
keepSandboxManagedCredentials: import("@vercel/clinkr").SharedError<"keep_sandbox_managed_credentials", [data: {
|
|
300
|
+
providers: string[];
|
|
301
|
+
configFile: string | null;
|
|
302
|
+
}]>;
|
|
297
303
|
keepSandboxUnsafeSecretEnvVars: import("@vercel/clinkr").SharedError<"keep_sandbox_unsafe_secret_env_vars", [data: {
|
|
298
304
|
variables: string[];
|
|
299
305
|
configFile: string | null;
|
|
@@ -422,9 +428,11 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
422
428
|
configFile: string | null;
|
|
423
429
|
}]>;
|
|
424
430
|
readonly credentialsInvalid: import("@vercel/clinkr").SharedError<"credentials_invalid", [data: {
|
|
425
|
-
|
|
431
|
+
problems: {
|
|
426
432
|
name: string;
|
|
427
|
-
problem: "missing" | "multiline" | "short";
|
|
433
|
+
problem: "gh-failed" | "gh-not-authenticated" | "gh-not-installed" | "gh-preframed" | "gh-timed-out" | "missing" | "multiline" | "short";
|
|
434
|
+
detail: string;
|
|
435
|
+
hint: string;
|
|
428
436
|
}[];
|
|
429
437
|
minLength: number;
|
|
430
438
|
configFile: string | null;
|
|
@@ -452,6 +460,10 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
452
460
|
}[];
|
|
453
461
|
}[];
|
|
454
462
|
}]>;
|
|
463
|
+
readonly keepSandboxManagedCredentials: import("@vercel/clinkr").SharedError<"keep_sandbox_managed_credentials", [data: {
|
|
464
|
+
providers: string[];
|
|
465
|
+
configFile: string | null;
|
|
466
|
+
}]>;
|
|
455
467
|
readonly keepSandboxUnsafeSecretEnvVars: import("@vercel/clinkr").SharedError<"keep_sandbox_unsafe_secret_env_vars", [data: {
|
|
456
468
|
variables: string[];
|
|
457
469
|
configFile: string | null;
|
|
@@ -584,7 +596,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
584
596
|
built: z.ZodBoolean;
|
|
585
597
|
vcpus: z.ZodNumber;
|
|
586
598
|
region: z.ZodString;
|
|
587
|
-
|
|
599
|
+
image: z.ZodString;
|
|
588
600
|
buildMs: z.ZodNumber;
|
|
589
601
|
}, z.core.$strip>>;
|
|
590
602
|
timeline: z.ZodObject<{
|
|
@@ -719,7 +731,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
719
731
|
built: z.ZodBoolean;
|
|
720
732
|
vcpus: z.ZodNumber;
|
|
721
733
|
region: z.ZodString;
|
|
722
|
-
|
|
734
|
+
image: z.ZodString;
|
|
723
735
|
uploadBytes: z.ZodNullable<z.ZodNumber>;
|
|
724
736
|
}, z.core.$strip>;
|
|
725
737
|
cleanup: z.ZodType<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts>>;
|
|
@@ -813,9 +825,11 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
813
825
|
configFile: string | null;
|
|
814
826
|
}]>;
|
|
815
827
|
credentialsInvalid: import("@vercel/clinkr").SharedError<"credentials_invalid", [data: {
|
|
816
|
-
|
|
828
|
+
problems: {
|
|
817
829
|
name: string;
|
|
818
|
-
problem: "missing" | "multiline" | "short";
|
|
830
|
+
problem: "gh-failed" | "gh-not-authenticated" | "gh-not-installed" | "gh-preframed" | "gh-timed-out" | "missing" | "multiline" | "short";
|
|
831
|
+
detail: string;
|
|
832
|
+
hint: string;
|
|
819
833
|
}[];
|
|
820
834
|
minLength: number;
|
|
821
835
|
configFile: string | null;
|
|
@@ -843,6 +857,10 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
843
857
|
}[];
|
|
844
858
|
}[];
|
|
845
859
|
}]>;
|
|
860
|
+
keepSandboxManagedCredentials: import("@vercel/clinkr").SharedError<"keep_sandbox_managed_credentials", [data: {
|
|
861
|
+
providers: string[];
|
|
862
|
+
configFile: string | null;
|
|
863
|
+
}]>;
|
|
846
864
|
keepSandboxUnsafeSecretEnvVars: import("@vercel/clinkr").SharedError<"keep_sandbox_unsafe_secret_env_vars", [data: {
|
|
847
865
|
variables: string[];
|
|
848
866
|
configFile: string | null;
|
|
@@ -971,9 +989,11 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
971
989
|
configFile: string | null;
|
|
972
990
|
}]>;
|
|
973
991
|
readonly credentialsInvalid: import("@vercel/clinkr").SharedError<"credentials_invalid", [data: {
|
|
974
|
-
|
|
992
|
+
problems: {
|
|
975
993
|
name: string;
|
|
976
|
-
problem: "missing" | "multiline" | "short";
|
|
994
|
+
problem: "gh-failed" | "gh-not-authenticated" | "gh-not-installed" | "gh-preframed" | "gh-timed-out" | "missing" | "multiline" | "short";
|
|
995
|
+
detail: string;
|
|
996
|
+
hint: string;
|
|
977
997
|
}[];
|
|
978
998
|
minLength: number;
|
|
979
999
|
configFile: string | null;
|
|
@@ -1001,6 +1021,10 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
1001
1021
|
}[];
|
|
1002
1022
|
}[];
|
|
1003
1023
|
}]>;
|
|
1024
|
+
readonly keepSandboxManagedCredentials: import("@vercel/clinkr").SharedError<"keep_sandbox_managed_credentials", [data: {
|
|
1025
|
+
providers: string[];
|
|
1026
|
+
configFile: string | null;
|
|
1027
|
+
}]>;
|
|
1004
1028
|
readonly keepSandboxUnsafeSecretEnvVars: import("@vercel/clinkr").SharedError<"keep_sandbox_unsafe_secret_env_vars", [data: {
|
|
1005
1029
|
variables: string[];
|
|
1006
1030
|
configFile: string | null;
|
|
@@ -7,35 +7,35 @@ import {
|
|
|
7
7
|
runFlagProblems,
|
|
8
8
|
runHelp,
|
|
9
9
|
sandboxesFlagProblems
|
|
10
|
-
} from "../../chunks/chunk-
|
|
11
|
-
import "../../chunks/chunk-
|
|
12
|
-
import "../../chunks/chunk-
|
|
10
|
+
} from "../../chunks/chunk-AS37D43E.js";
|
|
11
|
+
import "../../chunks/chunk-GUCCYCIO.js";
|
|
12
|
+
import "../../chunks/chunk-DZLU7BYK.js";
|
|
13
13
|
import "../../chunks/chunk-I5GZLOLQ.js";
|
|
14
14
|
import {
|
|
15
15
|
outcomes
|
|
16
|
-
} from "../../chunks/chunk-
|
|
17
|
-
import "../../chunks/chunk-
|
|
18
|
-
import "../../chunks/chunk-
|
|
19
|
-
import "../../chunks/chunk-
|
|
20
|
-
import "../../chunks/chunk-
|
|
16
|
+
} from "../../chunks/chunk-CQAY6GLP.js";
|
|
17
|
+
import "../../chunks/chunk-FDUY3BNF.js";
|
|
18
|
+
import "../../chunks/chunk-WNW2QXQK.js";
|
|
19
|
+
import "../../chunks/chunk-KK7PAWIZ.js";
|
|
20
|
+
import "../../chunks/chunk-OI4AP6Z7.js";
|
|
21
21
|
import "../../chunks/chunk-EEENLQHE.js";
|
|
22
22
|
import "../../chunks/chunk-72ZFEMAW.js";
|
|
23
|
-
import "../../chunks/chunk-
|
|
24
|
-
import "../../chunks/chunk-
|
|
25
|
-
import "../../chunks/chunk-
|
|
26
|
-
import "../../chunks/chunk-
|
|
27
|
-
import "../../chunks/chunk-
|
|
28
|
-
import "../../chunks/chunk-
|
|
23
|
+
import "../../chunks/chunk-UXD3TVWM.js";
|
|
24
|
+
import "../../chunks/chunk-55O4FCN4.js";
|
|
25
|
+
import "../../chunks/chunk-TXCOFC7N.js";
|
|
26
|
+
import "../../chunks/chunk-K4MDQPLW.js";
|
|
27
|
+
import "../../chunks/chunk-KQ5FXRUD.js";
|
|
28
|
+
import "../../chunks/chunk-LOGHIUUB.js";
|
|
29
29
|
import "../../chunks/chunk-F6N34UWB.js";
|
|
30
|
-
import "../../chunks/chunk-
|
|
30
|
+
import "../../chunks/chunk-3VXZONGE.js";
|
|
31
31
|
import {
|
|
32
32
|
effectiveConfig
|
|
33
|
-
} from "../../chunks/chunk-
|
|
33
|
+
} from "../../chunks/chunk-2JMWUKH3.js";
|
|
34
34
|
import "../../chunks/chunk-XBDRVFEV.js";
|
|
35
35
|
import {
|
|
36
36
|
stormCommands
|
|
37
|
-
} from "../../chunks/chunk-
|
|
38
|
-
import "../../chunks/chunk-
|
|
37
|
+
} from "../../chunks/chunk-LKXHGGGX.js";
|
|
38
|
+
import "../../chunks/chunk-24UYAK4R.js";
|
|
39
39
|
|
|
40
40
|
// src/commands/exec/command.ts
|
|
41
41
|
import { z } from "zod";
|
|
@@ -169,7 +169,7 @@ async function runSingle(context, request, spec, planned, lifecycles) {
|
|
|
169
169
|
built: outcome.runner.built,
|
|
170
170
|
vcpus: outcome.runner.vcpus,
|
|
171
171
|
region: outcome.runner.region,
|
|
172
|
-
|
|
172
|
+
image: outcome.runner.image,
|
|
173
173
|
buildMs: outcome.runner.buildMs,
|
|
174
174
|
},
|
|
175
175
|
timeline: ran,
|
|
@@ -19,7 +19,7 @@ export declare const ranSchema: z.ZodObject<{
|
|
|
19
19
|
built: z.ZodBoolean;
|
|
20
20
|
vcpus: z.ZodNumber;
|
|
21
21
|
region: z.ZodString;
|
|
22
|
-
|
|
22
|
+
image: z.ZodString;
|
|
23
23
|
buildMs: z.ZodNumber;
|
|
24
24
|
}, z.core.$strip>>;
|
|
25
25
|
timeline: z.ZodObject<{
|
|
@@ -109,13 +109,20 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
|
|
|
109
109
|
configFile: z.ZodNullable<z.ZodString>;
|
|
110
110
|
}, z.core.$strip>;
|
|
111
111
|
credentialsInvalid: z.ZodObject<{
|
|
112
|
-
|
|
112
|
+
problems: z.ZodArray<z.ZodObject<{
|
|
113
113
|
name: z.ZodString;
|
|
114
114
|
problem: z.ZodEnum<{
|
|
115
|
+
"gh-failed": "gh-failed";
|
|
116
|
+
"gh-not-authenticated": "gh-not-authenticated";
|
|
117
|
+
"gh-not-installed": "gh-not-installed";
|
|
118
|
+
"gh-preframed": "gh-preframed";
|
|
119
|
+
"gh-timed-out": "gh-timed-out";
|
|
115
120
|
missing: "missing";
|
|
116
121
|
multiline: "multiline";
|
|
117
122
|
short: "short";
|
|
118
123
|
}>;
|
|
124
|
+
detail: z.ZodString;
|
|
125
|
+
hint: z.ZodString;
|
|
119
126
|
}, z.core.$strip>>;
|
|
120
127
|
minLength: z.ZodNumber;
|
|
121
128
|
configFile: z.ZodNullable<z.ZodString>;
|
|
@@ -124,6 +131,10 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
|
|
|
124
131
|
variables: z.ZodArray<z.ZodString>;
|
|
125
132
|
configFile: z.ZodNullable<z.ZodString>;
|
|
126
133
|
}, z.core.$strip>;
|
|
134
|
+
keepSandboxManagedCredentials: z.ZodObject<{
|
|
135
|
+
providers: z.ZodArray<z.ZodString>;
|
|
136
|
+
configFile: z.ZodNullable<z.ZodString>;
|
|
137
|
+
}, z.core.$strip>;
|
|
127
138
|
unsafeSecretEnvVarsInvalid: z.ZodObject<{
|
|
128
139
|
variables: z.ZodArray<z.ZodObject<{
|
|
129
140
|
name: z.ZodString;
|
|
@@ -294,23 +305,32 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
|
|
|
294
305
|
};
|
|
295
306
|
readonly credentialsInvalid: {
|
|
296
307
|
readonly exitCode: 2;
|
|
297
|
-
readonly description: "With the Vercel Sandbox runner,
|
|
308
|
+
readonly description: "With the Vercel Sandbox runner, one or more sandbox credentials declared by credentials in vercelSandbox({ … }) can't be read or used on this machine, so the run didn't start: it minted, acquired, and created nothing. Each problem names the credential source, a machine-readable problem code, a human-readable detail, and an actionable next step without revealing any secret value or file contents.";
|
|
298
309
|
readonly schema: z.ZodObject<{
|
|
299
|
-
|
|
310
|
+
problems: z.ZodArray<z.ZodObject<{
|
|
300
311
|
name: z.ZodString;
|
|
301
312
|
problem: z.ZodEnum<{
|
|
313
|
+
"gh-failed": "gh-failed";
|
|
314
|
+
"gh-not-authenticated": "gh-not-authenticated";
|
|
315
|
+
"gh-not-installed": "gh-not-installed";
|
|
316
|
+
"gh-preframed": "gh-preframed";
|
|
317
|
+
"gh-timed-out": "gh-timed-out";
|
|
302
318
|
missing: "missing";
|
|
303
319
|
multiline: "multiline";
|
|
304
320
|
short: "short";
|
|
305
321
|
}>;
|
|
322
|
+
detail: z.ZodString;
|
|
323
|
+
hint: z.ZodString;
|
|
306
324
|
}, z.core.$strip>>;
|
|
307
325
|
minLength: z.ZodNumber;
|
|
308
326
|
configFile: z.ZodNullable<z.ZodString>;
|
|
309
327
|
}, z.core.$strip>;
|
|
310
|
-
readonly render: ({
|
|
311
|
-
|
|
328
|
+
readonly render: ({ problems, configFile }: {
|
|
329
|
+
problems: {
|
|
312
330
|
name: string;
|
|
313
|
-
problem: "missing" | "multiline" | "short";
|
|
331
|
+
problem: "gh-failed" | "gh-not-authenticated" | "gh-not-installed" | "gh-preframed" | "gh-timed-out" | "missing" | "multiline" | "short";
|
|
332
|
+
detail: string;
|
|
333
|
+
hint: string;
|
|
314
334
|
}[];
|
|
315
335
|
minLength: number;
|
|
316
336
|
configFile: string | null;
|
|
@@ -341,6 +361,24 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
|
|
|
341
361
|
}[];
|
|
342
362
|
};
|
|
343
363
|
};
|
|
364
|
+
readonly keepSandboxManagedCredentials: {
|
|
365
|
+
readonly exitCode: 2;
|
|
366
|
+
readonly description: "With the Vercel Sandbox runner, --keep-sandbox asked to keep the runner sandbox for a runner whose managedCredentials asks Vercel Sandbox to inject managed credentials, so the run didn't start: it minted, acquired, and created nothing. Vercel Sandbox rejects deny-all on a sandbox with managed credentials, so storm cannot fence it before keeping it running.";
|
|
367
|
+
readonly schema: z.ZodObject<{
|
|
368
|
+
providers: z.ZodArray<z.ZodString>;
|
|
369
|
+
configFile: z.ZodNullable<z.ZodString>;
|
|
370
|
+
}, z.core.$strip>;
|
|
371
|
+
readonly render: ({ providers, configFile }: {
|
|
372
|
+
providers: string[];
|
|
373
|
+
configFile: string | null;
|
|
374
|
+
}) => {
|
|
375
|
+
message: string;
|
|
376
|
+
next: {
|
|
377
|
+
type: "text";
|
|
378
|
+
text: string;
|
|
379
|
+
}[];
|
|
380
|
+
};
|
|
381
|
+
};
|
|
344
382
|
readonly unsafeSecretEnvVarsInvalid: {
|
|
345
383
|
readonly exitCode: 2;
|
|
346
384
|
readonly description: "With the Vercel Sandbox runner, launcher environment variables named by unsafeSecretEnvVars in vercelSandbox({ … }) (source: { kind: \"env\", name }) can't be used, so the run didn't start: it minted, acquired, and created nothing. Each variable has one problem, the first of: missing, unset or empty; multiline, its value holds a carriage return or a line feed, which line-by-line output would split past storm's redaction; short, its value holds fewer than 8 characters, and storm shows each value as <token> wherever it appears in what it prints and writes, so a value that short would hide ordinary output.";
|
|
@@ -566,9 +604,11 @@ export declare const RUN_ERRORS: {
|
|
|
566
604
|
configFile: string | null;
|
|
567
605
|
}]>;
|
|
568
606
|
credentialsInvalid: import("@vercel/clinkr").SharedError<"credentials_invalid", [data: {
|
|
569
|
-
|
|
607
|
+
problems: {
|
|
570
608
|
name: string;
|
|
571
|
-
problem: "missing" | "multiline" | "short";
|
|
609
|
+
problem: "gh-failed" | "gh-not-authenticated" | "gh-not-installed" | "gh-preframed" | "gh-timed-out" | "missing" | "multiline" | "short";
|
|
610
|
+
detail: string;
|
|
611
|
+
hint: string;
|
|
572
612
|
}[];
|
|
573
613
|
minLength: number;
|
|
574
614
|
configFile: string | null;
|
|
@@ -596,6 +636,10 @@ export declare const RUN_ERRORS: {
|
|
|
596
636
|
}[];
|
|
597
637
|
}[];
|
|
598
638
|
}]>;
|
|
639
|
+
keepSandboxManagedCredentials: import("@vercel/clinkr").SharedError<"keep_sandbox_managed_credentials", [data: {
|
|
640
|
+
providers: string[];
|
|
641
|
+
configFile: string | null;
|
|
642
|
+
}]>;
|
|
599
643
|
keepSandboxUnsafeSecretEnvVars: import("@vercel/clinkr").SharedError<"keep_sandbox_unsafe_secret_env_vars", [data: {
|
|
600
644
|
variables: string[];
|
|
601
645
|
configFile: string | null;
|
|
@@ -718,7 +762,7 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
718
762
|
built: z.ZodBoolean;
|
|
719
763
|
vcpus: z.ZodNumber;
|
|
720
764
|
region: z.ZodString;
|
|
721
|
-
|
|
765
|
+
image: z.ZodString;
|
|
722
766
|
buildMs: z.ZodNumber;
|
|
723
767
|
}, z.core.$strip>>;
|
|
724
768
|
timeline: z.ZodObject<{
|
|
@@ -853,7 +897,7 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
853
897
|
built: z.ZodBoolean;
|
|
854
898
|
vcpus: z.ZodNumber;
|
|
855
899
|
region: z.ZodString;
|
|
856
|
-
|
|
900
|
+
image: z.ZodString;
|
|
857
901
|
uploadBytes: z.ZodNullable<z.ZodNumber>;
|
|
858
902
|
}, z.core.$strip>;
|
|
859
903
|
cleanup: z.ZodType<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts>>;
|
|
@@ -947,9 +991,11 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
947
991
|
configFile: string | null;
|
|
948
992
|
}]>;
|
|
949
993
|
credentialsInvalid: import("@vercel/clinkr").SharedError<"credentials_invalid", [data: {
|
|
950
|
-
|
|
994
|
+
problems: {
|
|
951
995
|
name: string;
|
|
952
|
-
problem: "missing" | "multiline" | "short";
|
|
996
|
+
problem: "gh-failed" | "gh-not-authenticated" | "gh-not-installed" | "gh-preframed" | "gh-timed-out" | "missing" | "multiline" | "short";
|
|
997
|
+
detail: string;
|
|
998
|
+
hint: string;
|
|
953
999
|
}[];
|
|
954
1000
|
minLength: number;
|
|
955
1001
|
configFile: string | null;
|
|
@@ -977,6 +1023,10 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
977
1023
|
}[];
|
|
978
1024
|
}[];
|
|
979
1025
|
}]>;
|
|
1026
|
+
keepSandboxManagedCredentials: import("@vercel/clinkr").SharedError<"keep_sandbox_managed_credentials", [data: {
|
|
1027
|
+
providers: string[];
|
|
1028
|
+
configFile: string | null;
|
|
1029
|
+
}]>;
|
|
980
1030
|
keepSandboxUnsafeSecretEnvVars: import("@vercel/clinkr").SharedError<"keep_sandbox_unsafe_secret_env_vars", [data: {
|
|
981
1031
|
variables: string[];
|
|
982
1032
|
configFile: string | null;
|
|
@@ -1105,9 +1155,11 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
1105
1155
|
configFile: string | null;
|
|
1106
1156
|
}]>;
|
|
1107
1157
|
readonly credentialsInvalid: import("@vercel/clinkr").SharedError<"credentials_invalid", [data: {
|
|
1108
|
-
|
|
1158
|
+
problems: {
|
|
1109
1159
|
name: string;
|
|
1110
|
-
problem: "missing" | "multiline" | "short";
|
|
1160
|
+
problem: "gh-failed" | "gh-not-authenticated" | "gh-not-installed" | "gh-preframed" | "gh-timed-out" | "missing" | "multiline" | "short";
|
|
1161
|
+
detail: string;
|
|
1162
|
+
hint: string;
|
|
1111
1163
|
}[];
|
|
1112
1164
|
minLength: number;
|
|
1113
1165
|
configFile: string | null;
|
|
@@ -1135,6 +1187,10 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
1135
1187
|
}[];
|
|
1136
1188
|
}[];
|
|
1137
1189
|
}]>;
|
|
1190
|
+
readonly keepSandboxManagedCredentials: import("@vercel/clinkr").SharedError<"keep_sandbox_managed_credentials", [data: {
|
|
1191
|
+
providers: string[];
|
|
1192
|
+
configFile: string | null;
|
|
1193
|
+
}]>;
|
|
1138
1194
|
readonly keepSandboxUnsafeSecretEnvVars: import("@vercel/clinkr").SharedError<"keep_sandbox_unsafe_secret_env_vars", [data: {
|
|
1139
1195
|
variables: string[];
|
|
1140
1196
|
configFile: string | null;
|