@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
|
@@ -2,6 +2,7 @@ import { defineErrors, defineOutcomes, renderOutcome } from "@vercel/clinkr";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { DEFINITION_SET } from "../../extensions.js";
|
|
4
4
|
import { CONFIG_FILE_NAMES_TEXT, configErrors, credentialErrors } from "../../config/index.js";
|
|
5
|
+
import { CREDENTIAL_PROBLEM_KINDS } from "../../runner/index.js";
|
|
5
6
|
import { keptText, RUN_CLEANUP, runnerCleanupWarnings } from "../../shared/cleanup.js";
|
|
6
7
|
import { noFinalResultsContent } from "../../planning/final-results.js";
|
|
7
8
|
import { plannedSchema } from "../../planning/plan-only.js";
|
|
@@ -57,7 +58,22 @@ function listed(names) {
|
|
|
57
58
|
return names.join("");
|
|
58
59
|
return `${names.slice(0, -1).join(", ")} and ${names.at(-1) ?? ""}`;
|
|
59
60
|
}
|
|
60
|
-
/** Renders `credentialsInvalid
|
|
61
|
+
/** Renders `credentialsInvalid`, naming each unusable credential source's detail and deduplicated next steps. */
|
|
62
|
+
function renderInvalidCredentials(problems, configFile) {
|
|
63
|
+
const hints = [...new Set(problems.map(({ hint }) => hint))];
|
|
64
|
+
return {
|
|
65
|
+
message: `runner.credentials${configFile === null ? "" : ` in ${configFile}`} names ${problems.length === 1 ? "a credential" : "credentials"} storm can't use. The run didn't start.`,
|
|
66
|
+
rows: [["Credentials", problems.map(({ detail }) => detail)]],
|
|
67
|
+
next: [
|
|
68
|
+
{ type: "text", text: hints.join(" ") },
|
|
69
|
+
{
|
|
70
|
+
type: "text",
|
|
71
|
+
text: "Or run on the launch machine with runner: launchMachine() (or --runner launch-machine for storm exec), which reads none of these credentials.",
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
/** Renders `unsafeSecretEnvVarsInvalid`, naming the runner options key and row label. */
|
|
61
77
|
function renderInvalidSecretVariables(key, rowLabel, variables, minLength, configFile) {
|
|
62
78
|
const named = (problem) => variables.filter((variable) => variable.problem === problem).map(({ name }) => name);
|
|
63
79
|
const [missing, multiline, short] = [named("missing"), named("multiline"), named("short")];
|
|
@@ -198,7 +214,7 @@ export const ranSchema = z.object({
|
|
|
198
214
|
built: z.boolean(),
|
|
199
215
|
vcpus: z.number(),
|
|
200
216
|
region: z.string(),
|
|
201
|
-
|
|
217
|
+
image: z.string(),
|
|
202
218
|
/** How long the build step took, in milliseconds. */
|
|
203
219
|
buildMs: z.number(),
|
|
204
220
|
})
|
|
@@ -336,16 +352,21 @@ export const runErrors = defineErrors({
|
|
|
336
352
|
},
|
|
337
353
|
credentialsInvalid: {
|
|
338
354
|
exitCode: 2,
|
|
339
|
-
description: "With the Vercel Sandbox runner,
|
|
355
|
+
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.",
|
|
340
356
|
schema: z.object({
|
|
341
|
-
/** Each
|
|
342
|
-
|
|
357
|
+
/** Each credential source storm can't use and why, in the order the runner options first name it. */
|
|
358
|
+
problems: z.array(z.object({
|
|
359
|
+
name: z.string(),
|
|
360
|
+
problem: z.enum(CREDENTIAL_PROBLEM_KINDS),
|
|
361
|
+
detail: z.string(),
|
|
362
|
+
hint: z.string(),
|
|
363
|
+
})),
|
|
343
364
|
/** The fewest characters a credential's value may have. */
|
|
344
365
|
minLength: z.number(),
|
|
345
366
|
/** The config file that gave the Vercel Sandbox runner options. */
|
|
346
367
|
configFile: z.string().nullable(),
|
|
347
368
|
}),
|
|
348
|
-
render: ({
|
|
369
|
+
render: ({ problems, configFile }) => renderInvalidCredentials(problems, configFile),
|
|
349
370
|
},
|
|
350
371
|
keepSandboxUnsafeSecretEnvVars: {
|
|
351
372
|
exitCode: 2,
|
|
@@ -370,6 +391,25 @@ export const runErrors = defineErrors({
|
|
|
370
391
|
],
|
|
371
392
|
}),
|
|
372
393
|
},
|
|
394
|
+
keepSandboxManagedCredentials: {
|
|
395
|
+
exitCode: 2,
|
|
396
|
+
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.",
|
|
397
|
+
schema: z.object({
|
|
398
|
+
/** The Vercel-managed credential providers the runner declares, in the runner options' order. */
|
|
399
|
+
providers: z.array(z.string()),
|
|
400
|
+
/** The config file that gave the Vercel Sandbox runner options. */
|
|
401
|
+
configFile: z.string().nullable(),
|
|
402
|
+
}),
|
|
403
|
+
render: ({ providers, configFile }) => ({
|
|
404
|
+
message: `Can't keep the runner sandbox when runner.managedCredentials${configFile === null ? "" : ` in ${configFile}`} is set (${listed(providers)}). Vercel Sandbox rejects deny-all on a sandbox with managed credentials, so storm cannot fence a kept runner sandbox. The run didn't start.`,
|
|
405
|
+
next: [
|
|
406
|
+
{
|
|
407
|
+
type: "text",
|
|
408
|
+
text: "Drop --keep-sandbox, or pass --keep-sandbox 0, so the runner sandbox stops and deletes.",
|
|
409
|
+
},
|
|
410
|
+
],
|
|
411
|
+
}),
|
|
412
|
+
},
|
|
373
413
|
unsafeSecretEnvVarsInvalid: {
|
|
374
414
|
exitCode: 2,
|
|
375
415
|
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.",
|
|
@@ -26,7 +26,7 @@ export type PlanTarget = ExecPlanTarget | DriverPlanTarget;
|
|
|
26
26
|
type SandboxesMaxRefusal = ReturnType<typeof sandboxesErrors.missingSandboxesMax> | ReturnType<typeof sandboxesErrors.sandboxesOverMax>;
|
|
27
27
|
type FileListRefusal = ReturnType<typeof fileListErrors.fileListsUnreadable> | ReturnType<typeof fileListErrors.invalidFileLists> | ReturnType<typeof fileListErrors.fileListsUnlisted>;
|
|
28
28
|
type SandboxesDefaultRefusal = ReturnType<typeof sandboxesDefaultErrors.sandboxesDefaultRefused>;
|
|
29
|
-
type BasePlanRefusal = ReturnType<typeof runErrors.missingRunner> | ReturnType<typeof runErrors.conflictingOptions> | ReturnType<typeof runErrors.credentialsInvalid> | ReturnType<typeof runErrors.keepSandboxUnsafeSecretEnvVars> | ReturnType<typeof runErrors.unsafeSecretEnvVarsInvalid> | Extract<ReturnType<typeof settleCredential>, {
|
|
29
|
+
type BasePlanRefusal = ReturnType<typeof runErrors.missingRunner> | ReturnType<typeof runErrors.conflictingOptions> | ReturnType<typeof runErrors.credentialsInvalid> | ReturnType<typeof runErrors.keepSandboxUnsafeSecretEnvVars> | ReturnType<typeof runErrors.keepSandboxManagedCredentials> | ReturnType<typeof runErrors.unsafeSecretEnvVarsInvalid> | Extract<ReturnType<typeof settleCredential>, {
|
|
30
30
|
readonly ok: false;
|
|
31
31
|
}>["refusal"] | Extract<ReturnType<typeof settleRunResources>, {
|
|
32
32
|
readonly ok: false;
|
|
@@ -98,10 +98,10 @@ export async function planRun(app, request, target, signal) {
|
|
|
98
98
|
throw new Error("planRun: --credential github-actions should have been refused for vercel-sandbox");
|
|
99
99
|
const targetConfig = givenTarget(settings.scope, settings.project);
|
|
100
100
|
const { options } = runner;
|
|
101
|
-
const credentials = readCredentials(options, app.env);
|
|
101
|
+
const credentials = await readCredentials(options, app.env, app.context);
|
|
102
102
|
if (!credentials.ok)
|
|
103
103
|
return refused(runErrors.credentialsInvalid({
|
|
104
|
-
|
|
104
|
+
problems: credentials.problems.map(({ name, problem, detail, hint }) => ({ name, problem, detail, hint })),
|
|
105
105
|
minLength: SECRET_MIN_LENGTH,
|
|
106
106
|
configFile,
|
|
107
107
|
}));
|
|
@@ -111,6 +111,11 @@ export async function planRun(app, request, target, signal) {
|
|
|
111
111
|
variables: options.unsafeSecretEnvVars.map(({ name }) => name),
|
|
112
112
|
configFile,
|
|
113
113
|
}));
|
|
114
|
+
if (options.managedCredentials.length > 0 && keepFlagMinutes > 0)
|
|
115
|
+
return refused(runErrors.keepSandboxManagedCredentials({
|
|
116
|
+
providers: [...options.managedCredentials],
|
|
117
|
+
configFile,
|
|
118
|
+
}));
|
|
114
119
|
const unsafeSecretEnvVars = readUnsafeSecretEnvVars(options, app.env);
|
|
115
120
|
if (!unsafeSecretEnvVars.ok)
|
|
116
121
|
return refused(runErrors.unsafeSecretEnvVarsInvalid({
|
|
@@ -126,7 +131,7 @@ export async function planRun(app, request, target, signal) {
|
|
|
126
131
|
target: targetConfig,
|
|
127
132
|
credentials: credentials.credentials,
|
|
128
133
|
unsafeSecretEnvVars: unsafeSecretEnvVars.values,
|
|
129
|
-
secrets: [...credentials.
|
|
134
|
+
secrets: [...credentials.secrets, ...Object.values(unsafeSecretEnvVars.values)],
|
|
130
135
|
};
|
|
131
136
|
}
|
|
132
137
|
// A required option nothing gives is missing whatever the count says, so it refuses before the count. The merged
|
|
@@ -18,7 +18,7 @@ const ownRunFields = (verbose) => ({
|
|
|
18
18
|
},
|
|
19
19
|
keepSandbox: {
|
|
20
20
|
valueLabel: "DURATION",
|
|
21
|
-
description: "Keep the runner sandbox running this long once the run ends, however it ends, so you can connect to it from its page in the Vercel dashboard: 0, which stops and deletes it with the run's other sandboxes, or a whole number of minutes or hours up to 5h (30m, 2h). A run keeps its runner sandbox only when this flag or keepSandbox in vercelSandbox({ … }) asks; by default it stops and deletes it, after a failure too. A kept runner sandbox holds the checkout, the installed packages, and everything the command wrote, including its test output; storm removes nothing from it, and it holds no credential, the runner's or a resource's, since storm revokes every sandbox credential before it keeps the sandbox. Anyone who can update the Vercel project can connect to it. Refused when vercelSandbox({ … }) sets unsafeSecretEnvVars
|
|
21
|
+
description: "Keep the runner sandbox running this long once the run ends, however it ends, so you can connect to it from its page in the Vercel dashboard: 0, which stops and deletes it with the run's other sandboxes, or a whole number of minutes or hours up to 5h (30m, 2h). A run keeps its runner sandbox only when this flag or keepSandbox in vercelSandbox({ … }) asks; by default it stops and deletes it, after a failure too. A kept runner sandbox holds the checkout, the installed packages, and everything the command wrote, including its test output; storm removes nothing from it, and it holds no credential, the runner's or a resource's, since storm revokes every sandbox credential before it keeps the sandbox. Anyone who can update the Vercel project can connect to it. Refused when vercelSandbox({ … }) sets unsafeSecretEnvVars (because a run that passes secrets into the runner sandbox's environment never keeps its runner sandbox) or managedCredentials (because Vercel Sandbox rejects deny-all on a sandbox with managed credentials, so storm cannot fence it). storm gives the kept runner sandbox no network access before it releases the run's resources: once the run releases its resources, another run can take them. Before it keeps the sandbox, the run ends every process it started there. The run asks Vercel Sandbox to extend the runner sandbox's timeout when it would stop sooner; it never shortens it, so the sandbox may run past the keep time until its own timeout. The run says until when it runs, and storm runs show and runs list say so too. Default: keepSandbox in vercelSandbox({ … }), else 0; a run across runner sandboxes keeps each runner sandbox only with --keep-sandbox and ignores keepSandbox in vercelSandbox({ … }). Fits the Vercel Sandbox runner only.",
|
|
22
22
|
},
|
|
23
23
|
showOutput: {
|
|
24
24
|
description: "With the Vercel Sandbox runner on a terminal, print the runner's step output (a snapshot build, the install, the build) above the live view instead of keeping only each step's last line there. Plain output always prints it. Either way, the run directory keeps it whole. Fits the Vercel Sandbox runner only. No config key.",
|
|
@@ -143,7 +143,7 @@ export function sandboxesRanFacts(app, run) {
|
|
|
143
143
|
built: outcome.snapshot.built,
|
|
144
144
|
vcpus: runner.prepared.vcpus,
|
|
145
145
|
region: entry.region,
|
|
146
|
-
|
|
146
|
+
image: entry.image,
|
|
147
147
|
uploadBytes: recorded.uploadBytes,
|
|
148
148
|
},
|
|
149
149
|
cleanup: RUN_CLEANUP.facts(outcome),
|
|
@@ -36,7 +36,7 @@ export declare const runFactsSchema: z.ZodObject<{
|
|
|
36
36
|
team: z.ZodNullable<z.ZodString>;
|
|
37
37
|
project: z.ZodNullable<z.ZodString>;
|
|
38
38
|
region: z.ZodString;
|
|
39
|
-
|
|
39
|
+
image: z.ZodString;
|
|
40
40
|
vcpus: z.ZodNumber;
|
|
41
41
|
base: z.ZodString;
|
|
42
42
|
baseRef: z.ZodString;
|
|
@@ -55,8 +55,8 @@ export const runFactsSchema = z.object({
|
|
|
55
55
|
project: z.string().nullable(),
|
|
56
56
|
/** The runner sandbox's region, such as iad1. */
|
|
57
57
|
region: z.string(),
|
|
58
|
-
/** The runner sandbox's
|
|
59
|
-
|
|
58
|
+
/** The runner sandbox's image, such as vercel/sandbox/node:al-24. */
|
|
59
|
+
image: z.string(),
|
|
60
60
|
/** The runner sandbox's vCPUs. */
|
|
61
61
|
vcpus: z.number(),
|
|
62
62
|
/** The run's base: HEAD's merge-base with baseRef, a full SHA. */
|
|
@@ -40,7 +40,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
40
40
|
team: z.ZodNullable<z.ZodString>;
|
|
41
41
|
project: z.ZodNullable<z.ZodString>;
|
|
42
42
|
region: z.ZodString;
|
|
43
|
-
|
|
43
|
+
image: z.ZodString;
|
|
44
44
|
vcpus: z.ZodNumber;
|
|
45
45
|
base: z.ZodString;
|
|
46
46
|
baseRef: z.ZodString;
|
|
@@ -176,7 +176,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
176
176
|
team: z.ZodNullable<z.ZodString>;
|
|
177
177
|
project: z.ZodNullable<z.ZodString>;
|
|
178
178
|
region: z.ZodString;
|
|
179
|
-
|
|
179
|
+
image: z.ZodString;
|
|
180
180
|
vcpus: z.ZodNumber;
|
|
181
181
|
base: z.ZodString;
|
|
182
182
|
baseRef: z.ZodString;
|
|
@@ -17,30 +17,30 @@ import {
|
|
|
17
17
|
tookText,
|
|
18
18
|
totalsText,
|
|
19
19
|
totalsTone
|
|
20
|
-
} from "../../../chunks/chunk-
|
|
20
|
+
} from "../../../chunks/chunk-PMBQWVTW.js";
|
|
21
21
|
import {
|
|
22
22
|
muted,
|
|
23
23
|
path,
|
|
24
24
|
renderOutcome,
|
|
25
25
|
status
|
|
26
|
-
} from "../../../chunks/chunk-
|
|
27
|
-
import "../../../chunks/chunk-
|
|
28
|
-
import "../../../chunks/chunk-
|
|
26
|
+
} from "../../../chunks/chunk-EI3XDCEI.js";
|
|
27
|
+
import "../../../chunks/chunk-K4MDQPLW.js";
|
|
28
|
+
import "../../../chunks/chunk-KQ5FXRUD.js";
|
|
29
29
|
import {
|
|
30
30
|
pastRuns
|
|
31
|
-
} from "../../../chunks/chunk-
|
|
31
|
+
} from "../../../chunks/chunk-LOGHIUUB.js";
|
|
32
32
|
import "../../../chunks/chunk-F6N34UWB.js";
|
|
33
|
-
import "../../../chunks/chunk-
|
|
33
|
+
import "../../../chunks/chunk-3VXZONGE.js";
|
|
34
34
|
import {
|
|
35
35
|
findConfigFile
|
|
36
|
-
} from "../../../chunks/chunk-
|
|
36
|
+
} from "../../../chunks/chunk-2JMWUKH3.js";
|
|
37
37
|
import "../../../chunks/chunk-XBDRVFEV.js";
|
|
38
38
|
import {
|
|
39
39
|
stormCommands
|
|
40
|
-
} from "../../../chunks/chunk-
|
|
40
|
+
} from "../../../chunks/chunk-LKXHGGGX.js";
|
|
41
41
|
import {
|
|
42
42
|
defineOutcomes
|
|
43
|
-
} from "../../../chunks/chunk-
|
|
43
|
+
} from "../../../chunks/chunk-24UYAK4R.js";
|
|
44
44
|
|
|
45
45
|
// src/commands/runs/list/command.ts
|
|
46
46
|
import { z as z2 } from "zod";
|
|
@@ -30,7 +30,7 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
30
30
|
team: z.ZodNullable<z.ZodString>;
|
|
31
31
|
project: z.ZodNullable<z.ZodString>;
|
|
32
32
|
region: z.ZodString;
|
|
33
|
-
|
|
33
|
+
image: z.ZodString;
|
|
34
34
|
vcpus: z.ZodNumber;
|
|
35
35
|
base: z.ZodString;
|
|
36
36
|
baseRef: z.ZodString;
|
|
@@ -8,29 +8,29 @@ import {
|
|
|
8
8
|
sandboxIndexesText,
|
|
9
9
|
scopeFacts,
|
|
10
10
|
scopeSchema
|
|
11
|
-
} from "../../../chunks/chunk-
|
|
11
|
+
} from "../../../chunks/chunk-PMBQWVTW.js";
|
|
12
12
|
import {
|
|
13
13
|
renderOutcome
|
|
14
|
-
} from "../../../chunks/chunk-
|
|
15
|
-
import "../../../chunks/chunk-
|
|
16
|
-
import "../../../chunks/chunk-
|
|
14
|
+
} from "../../../chunks/chunk-EI3XDCEI.js";
|
|
15
|
+
import "../../../chunks/chunk-K4MDQPLW.js";
|
|
16
|
+
import "../../../chunks/chunk-KQ5FXRUD.js";
|
|
17
17
|
import {
|
|
18
18
|
pastRuns
|
|
19
|
-
} from "../../../chunks/chunk-
|
|
19
|
+
} from "../../../chunks/chunk-LOGHIUUB.js";
|
|
20
20
|
import {
|
|
21
21
|
stripAnsi
|
|
22
22
|
} from "../../../chunks/chunk-F6N34UWB.js";
|
|
23
|
-
import "../../../chunks/chunk-
|
|
23
|
+
import "../../../chunks/chunk-3VXZONGE.js";
|
|
24
24
|
import {
|
|
25
25
|
findConfigFile
|
|
26
|
-
} from "../../../chunks/chunk-
|
|
26
|
+
} from "../../../chunks/chunk-2JMWUKH3.js";
|
|
27
27
|
import "../../../chunks/chunk-XBDRVFEV.js";
|
|
28
28
|
import {
|
|
29
29
|
stormCommands
|
|
30
|
-
} from "../../../chunks/chunk-
|
|
30
|
+
} from "../../../chunks/chunk-LKXHGGGX.js";
|
|
31
31
|
import {
|
|
32
32
|
defineOutcomes
|
|
33
|
-
} from "../../../chunks/chunk-
|
|
33
|
+
} from "../../../chunks/chunk-24UYAK4R.js";
|
|
34
34
|
|
|
35
35
|
// src/commands/runs/logs/command.ts
|
|
36
36
|
import { z as z2 } from "zod";
|
|
@@ -40,7 +40,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
40
40
|
team: z.ZodNullable<z.ZodString>;
|
|
41
41
|
project: z.ZodNullable<z.ZodString>;
|
|
42
42
|
region: z.ZodString;
|
|
43
|
-
|
|
43
|
+
image: z.ZodString;
|
|
44
44
|
vcpus: z.ZodNumber;
|
|
45
45
|
base: z.ZodString;
|
|
46
46
|
baseRef: z.ZodString;
|
|
@@ -561,7 +561,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
561
561
|
team: z.ZodNullable<z.ZodString>;
|
|
562
562
|
project: z.ZodNullable<z.ZodString>;
|
|
563
563
|
region: z.ZodString;
|
|
564
|
-
|
|
564
|
+
image: z.ZodString;
|
|
565
565
|
vcpus: z.ZodNumber;
|
|
566
566
|
base: z.ZodString;
|
|
567
567
|
baseRef: z.ZodString;
|
|
@@ -5,20 +5,20 @@ import {
|
|
|
5
5
|
workerLanesFromRecords,
|
|
6
6
|
workerParallelism,
|
|
7
7
|
workerSetupMs
|
|
8
|
-
} from "../../../chunks/chunk-
|
|
8
|
+
} from "../../../chunks/chunk-GUCCYCIO.js";
|
|
9
9
|
import {
|
|
10
10
|
builtAtText
|
|
11
|
-
} from "../../../chunks/chunk-
|
|
11
|
+
} from "../../../chunks/chunk-WNW2QXQK.js";
|
|
12
12
|
import {
|
|
13
13
|
fileListMismatchText,
|
|
14
14
|
fileListMismatches,
|
|
15
15
|
testPlanText
|
|
16
|
-
} from "../../../chunks/chunk-
|
|
17
|
-
import "../../../chunks/chunk-
|
|
16
|
+
} from "../../../chunks/chunk-KK7PAWIZ.js";
|
|
17
|
+
import "../../../chunks/chunk-OI4AP6Z7.js";
|
|
18
18
|
import "../../../chunks/chunk-EEENLQHE.js";
|
|
19
19
|
import "../../../chunks/chunk-72ZFEMAW.js";
|
|
20
|
-
import "../../../chunks/chunk-
|
|
21
|
-
import "../../../chunks/chunk-
|
|
20
|
+
import "../../../chunks/chunk-55O4FCN4.js";
|
|
21
|
+
import "../../../chunks/chunk-TXCOFC7N.js";
|
|
22
22
|
import {
|
|
23
23
|
LOG_STEPS,
|
|
24
24
|
commandText,
|
|
@@ -50,10 +50,10 @@ import {
|
|
|
50
50
|
totalAttemptMs,
|
|
51
51
|
totalsText,
|
|
52
52
|
totalsTone
|
|
53
|
-
} from "../../../chunks/chunk-
|
|
53
|
+
} from "../../../chunks/chunk-PMBQWVTW.js";
|
|
54
54
|
import {
|
|
55
55
|
capsFor
|
|
56
|
-
} from "../../../chunks/chunk-
|
|
56
|
+
} from "../../../chunks/chunk-EI3XDCEI.js";
|
|
57
57
|
import {
|
|
58
58
|
SANDBOX_TABLE_HEADER,
|
|
59
59
|
sandboxCauseText,
|
|
@@ -62,18 +62,18 @@ import {
|
|
|
62
62
|
sandboxesPassedText,
|
|
63
63
|
sandboxesText,
|
|
64
64
|
startedSandboxesText
|
|
65
|
-
} from "../../../chunks/chunk-
|
|
65
|
+
} from "../../../chunks/chunk-K4MDQPLW.js";
|
|
66
66
|
import {
|
|
67
67
|
sandboxPage,
|
|
68
68
|
seconds,
|
|
69
69
|
short
|
|
70
|
-
} from "../../../chunks/chunk-
|
|
70
|
+
} from "../../../chunks/chunk-KQ5FXRUD.js";
|
|
71
71
|
import {
|
|
72
72
|
pastRuns,
|
|
73
73
|
planSchema,
|
|
74
74
|
sandboxRecordSchema,
|
|
75
75
|
timelineSchema
|
|
76
|
-
} from "../../../chunks/chunk-
|
|
76
|
+
} from "../../../chunks/chunk-LOGHIUUB.js";
|
|
77
77
|
import {
|
|
78
78
|
bold,
|
|
79
79
|
paint,
|
|
@@ -81,17 +81,17 @@ import {
|
|
|
81
81
|
} from "../../../chunks/chunk-F6N34UWB.js";
|
|
82
82
|
import {
|
|
83
83
|
megabytesText
|
|
84
|
-
} from "../../../chunks/chunk-
|
|
84
|
+
} from "../../../chunks/chunk-3VXZONGE.js";
|
|
85
85
|
import {
|
|
86
86
|
findConfigFile
|
|
87
|
-
} from "../../../chunks/chunk-
|
|
87
|
+
} from "../../../chunks/chunk-2JMWUKH3.js";
|
|
88
88
|
import "../../../chunks/chunk-XBDRVFEV.js";
|
|
89
89
|
import {
|
|
90
90
|
stormCommands
|
|
91
|
-
} from "../../../chunks/chunk-
|
|
91
|
+
} from "../../../chunks/chunk-LKXHGGGX.js";
|
|
92
92
|
import {
|
|
93
93
|
defineOutcomes
|
|
94
|
-
} from "../../../chunks/chunk-
|
|
94
|
+
} from "../../../chunks/chunk-24UYAK4R.js";
|
|
95
95
|
|
|
96
96
|
// src/commands/runs/show/command.ts
|
|
97
97
|
import { z as z2 } from "zod";
|
|
@@ -535,7 +535,7 @@ function whereRows(shown) {
|
|
|
535
535
|
const { where, ended } = shown;
|
|
536
536
|
if (where === null) return [];
|
|
537
537
|
if (where.kind === "launch-machine") return [["Ran on", "this machine"]];
|
|
538
|
-
const shape = `${where.region}, ${where.vcpus} vCPUs, ${where.
|
|
538
|
+
const shape = `${where.region}, ${where.vcpus} vCPUs, ${where.image}`;
|
|
539
539
|
const sandbox = shown.sandboxes !== null ? `${startedSandboxesText(shown.sandboxes, ended !== null)} (${shape})` : where.sandbox !== null ? `runner sandbox ${where.sandbox} (${shape})` : ended === null ? `runner sandbox (${shape})` : `runner sandbox, none started (${shape})`;
|
|
540
540
|
const { snapshot } = where;
|
|
541
541
|
return [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/commands/runs/show/metadata.ts
|
|
2
2
|
var metadata = {
|
|
3
|
-
description: "Show a past run from its run directory: its command, a storm test run's test plan, config file, working directory, the branch and commit it started from, start, how long it took, and how it ended; where its command ran, on this machine or in a runner sandbox, with the sandbox's name, region, vCPUs,
|
|
3
|
+
description: "Show a past run from its run directory: its command, a storm test run's test plan, config file, working directory, the branch and commit it started from, start, how long it took, and how it ended; where its command ran, on this machine or in a runner sandbox, with the sandbox's name, region, vCPUs, image, and page in the Vercel dashboard, until when the run kept it running, with its Connect page while it runs, its control plane team and project, the run's base and the runner snapshot it started from, with where it was built and its page; what each resource it acquired reported of itself; the run logs it has, each with the storm runs logs command that prints it; its waterfall, with a concurrency sparkline under command whenever worker events exist (or every worker row sorted by finish time descending with --workers); and each test's final result and duration, in color on a terminal that takes it. With --failed, --test, or --worker, only the selected tests, how many of all they are, and each one's errors and test output, the last 8 MiB of what it printed, failure reports included. With --slowest, sort the test table by duration descending. For a run across runner sandboxes, how many of its runner sandboxes passed, a table with one row for each runner sandbox (its state, exit code, preparation time, command time, tests, and name), one waterfall for each runner sandbox, and each test's runner sandbox; each runner sandbox's workers under its waterfall, with its own worker indexes from w0; --sandbox limits the tests and the waterfall to one runner sandbox, and --worker needs it, and --failed adds a section for each runner sandbox that did not pass, with its cause, its command, the paths of its logs, and the last lines of its command log. With --json, each test file with its runner sandbox, its time, and how its tests ended (files), for every run. Without an id, the newest finished run of the storm.config.ts found from the working directory, or of every config with --all; pass the id `storm test` or `storm exec` printed when another run may have finished since. A run's test results are saved once it finishes. Changes nothing.",
|
|
4
4
|
summary: "Show a past run and its tests.",
|
|
5
5
|
help: {
|
|
6
6
|
usages: [
|
|
@@ -15,7 +15,7 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
15
15
|
team: z.ZodNullable<z.ZodString>;
|
|
16
16
|
project: z.ZodNullable<z.ZodString>;
|
|
17
17
|
region: z.ZodString;
|
|
18
|
-
|
|
18
|
+
image: z.ZodString;
|
|
19
19
|
vcpus: z.ZodNumber;
|
|
20
20
|
base: z.ZodString;
|
|
21
21
|
baseRef: z.ZodString;
|
|
@@ -495,7 +495,7 @@ function whereRows(shown) {
|
|
|
495
495
|
return [];
|
|
496
496
|
if (where.kind === "launch-machine")
|
|
497
497
|
return [["Ran on", "this machine"]];
|
|
498
|
-
const shape = `${where.region}, ${where.vcpus} vCPUs, ${where.
|
|
498
|
+
const shape = `${where.region}, ${where.vcpus} vCPUs, ${where.image}`;
|
|
499
499
|
const sandbox = shown.sandboxes !== null
|
|
500
500
|
? `${startedSandboxesText(shown.sandboxes, ended !== null)} (${shape})`
|
|
501
501
|
: where.sandbox !== null
|
|
@@ -101,7 +101,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
101
101
|
ancestorOfMergeBase: z.ZodNullable<z.ZodBoolean>;
|
|
102
102
|
runner: z.ZodString;
|
|
103
103
|
region: z.ZodString;
|
|
104
|
-
|
|
104
|
+
image: z.ZodString;
|
|
105
105
|
topLevel: z.ZodBoolean;
|
|
106
106
|
suites: z.ZodArray<z.ZodString>;
|
|
107
107
|
result: z.ZodLiteral<"built">;
|
|
@@ -122,7 +122,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
122
122
|
ancestorOfMergeBase: z.ZodNullable<z.ZodBoolean>;
|
|
123
123
|
runner: z.ZodString;
|
|
124
124
|
region: z.ZodString;
|
|
125
|
-
|
|
125
|
+
image: z.ZodString;
|
|
126
126
|
topLevel: z.ZodBoolean;
|
|
127
127
|
suites: z.ZodArray<z.ZodString>;
|
|
128
128
|
result: z.ZodLiteral<"up_to_date">;
|
|
@@ -140,7 +140,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
140
140
|
ancestorOfMergeBase: z.ZodNullable<z.ZodBoolean>;
|
|
141
141
|
runner: z.ZodString;
|
|
142
142
|
region: z.ZodString;
|
|
143
|
-
|
|
143
|
+
image: z.ZodString;
|
|
144
144
|
topLevel: z.ZodBoolean;
|
|
145
145
|
suites: z.ZodArray<z.ZodString>;
|
|
146
146
|
result: z.ZodLiteral<"already_building">;
|
|
@@ -183,9 +183,11 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
183
183
|
missing: ("project" | "scope")[];
|
|
184
184
|
}]>;
|
|
185
185
|
credentialsInvalid: import("@vercel/clinkr").SharedError<"credentials_invalid", [data: {
|
|
186
|
-
|
|
186
|
+
problems: {
|
|
187
187
|
name: string;
|
|
188
|
-
problem: "missing" | "multiline" | "short";
|
|
188
|
+
problem: "gh-failed" | "gh-not-authenticated" | "gh-not-installed" | "gh-preframed" | "gh-timed-out" | "missing" | "multiline" | "short";
|
|
189
|
+
detail: string;
|
|
190
|
+
hint: string;
|
|
189
191
|
}[];
|
|
190
192
|
minLength: number;
|
|
191
193
|
configFile: string | null;
|
|
@@ -324,9 +326,11 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
324
326
|
missing: ("project" | "scope")[];
|
|
325
327
|
}]>;
|
|
326
328
|
readonly credentialsInvalid: import("@vercel/clinkr").SharedError<"credentials_invalid", [data: {
|
|
327
|
-
|
|
329
|
+
problems: {
|
|
328
330
|
name: string;
|
|
329
|
-
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;
|
|
330
334
|
}[];
|
|
331
335
|
minLength: number;
|
|
332
336
|
configFile: string | null;
|
|
@@ -516,7 +520,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
516
520
|
ancestorOfMergeBase: z.ZodNullable<z.ZodBoolean>;
|
|
517
521
|
runner: z.ZodString;
|
|
518
522
|
region: z.ZodString;
|
|
519
|
-
|
|
523
|
+
image: z.ZodString;
|
|
520
524
|
topLevel: z.ZodBoolean;
|
|
521
525
|
suites: z.ZodArray<z.ZodString>;
|
|
522
526
|
result: z.ZodLiteral<"built">;
|
|
@@ -537,7 +541,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
537
541
|
ancestorOfMergeBase: z.ZodNullable<z.ZodBoolean>;
|
|
538
542
|
runner: z.ZodString;
|
|
539
543
|
region: z.ZodString;
|
|
540
|
-
|
|
544
|
+
image: z.ZodString;
|
|
541
545
|
topLevel: z.ZodBoolean;
|
|
542
546
|
suites: z.ZodArray<z.ZodString>;
|
|
543
547
|
result: z.ZodLiteral<"up_to_date">;
|
|
@@ -555,7 +559,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
555
559
|
ancestorOfMergeBase: z.ZodNullable<z.ZodBoolean>;
|
|
556
560
|
runner: z.ZodString;
|
|
557
561
|
region: z.ZodString;
|
|
558
|
-
|
|
562
|
+
image: z.ZodString;
|
|
559
563
|
topLevel: z.ZodBoolean;
|
|
560
564
|
suites: z.ZodArray<z.ZodString>;
|
|
561
565
|
result: z.ZodLiteral<"already_building">;
|
|
@@ -598,9 +602,11 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
598
602
|
missing: ("project" | "scope")[];
|
|
599
603
|
}]>;
|
|
600
604
|
credentialsInvalid: import("@vercel/clinkr").SharedError<"credentials_invalid", [data: {
|
|
601
|
-
|
|
605
|
+
problems: {
|
|
602
606
|
name: string;
|
|
603
|
-
problem: "missing" | "multiline" | "short";
|
|
607
|
+
problem: "gh-failed" | "gh-not-authenticated" | "gh-not-installed" | "gh-preframed" | "gh-timed-out" | "missing" | "multiline" | "short";
|
|
608
|
+
detail: string;
|
|
609
|
+
hint: string;
|
|
604
610
|
}[];
|
|
605
611
|
minLength: number;
|
|
606
612
|
configFile: string | null;
|
|
@@ -739,9 +745,11 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
739
745
|
missing: ("project" | "scope")[];
|
|
740
746
|
}]>;
|
|
741
747
|
readonly credentialsInvalid: import("@vercel/clinkr").SharedError<"credentials_invalid", [data: {
|
|
742
|
-
|
|
748
|
+
problems: {
|
|
743
749
|
name: string;
|
|
744
|
-
problem: "missing" | "multiline" | "short";
|
|
750
|
+
problem: "gh-failed" | "gh-not-authenticated" | "gh-not-installed" | "gh-preframed" | "gh-timed-out" | "missing" | "multiline" | "short";
|
|
751
|
+
detail: string;
|
|
752
|
+
hint: string;
|
|
745
753
|
}[];
|
|
746
754
|
minLength: number;
|
|
747
755
|
configFile: string | null;
|