@cnc-tools/storm 0.12.0 → 0.13.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 +1 -1
- package/dist/build-info.js +1 -1
- package/dist/chunks/{chunk-4XT5RC5T.js → chunk-2NZXL6OH.js} +6 -42
- package/dist/chunks/{chunk-ISGQJIQM.js → chunk-5UMJNVKT.js} +1 -1
- package/dist/chunks/{chunk-FSP3SJ35.js → chunk-6EQKA7LI.js} +16 -46
- package/dist/chunks/{chunk-Y3BUNNRG.js → chunk-AX4EQZUS.js} +4 -4
- package/dist/chunks/{chunk-RYRJNHL7.js → chunk-DOFB2ACU.js} +3 -9
- package/dist/chunks/{chunk-SXW6XN4R.js → chunk-EGNP3S6C.js} +3 -3
- package/dist/chunks/{chunk-FK4RLDEK.js → chunk-N7E6DAUE.js} +1 -1
- package/dist/chunks/{chunk-U7M3ZB3Z.js → chunk-Q4TKRILH.js} +33 -167
- package/dist/chunks/{chunk-TMQQYHUX.js → chunk-RTILVSYQ.js} +1 -1
- package/dist/chunks/{chunk-7D6LC5JY.js → chunk-X4WBJIOF.js} +7 -39
- package/dist/chunks/{chunk-TEEZL3GA.js → chunk-YGS5VRQT.js} +11 -68
- package/dist/chunks/{chunk-ODQHQJLE.js → chunk-ZDJLKF2G.js} +742 -1117
- package/dist/chunks/{live-app-AZ5N5HBD.js → live-app-QFHS54SX.js} +4 -4
- package/dist/commands/exec/command.d.ts +2 -90
- package/dist/commands/exec/command.js +10 -10
- package/dist/commands/exec/define-run-command.d.ts +2 -90
- package/dist/commands/exec/live-view.js +18 -22
- package/dist/commands/exec/outcomes.d.ts +2 -106
- package/dist/commands/exec/outcomes.js +4 -35
- package/dist/commands/exec/progress.d.ts +3 -19
- package/dist/commands/exec/progress.js +16 -60
- package/dist/commands/exec/run-command.d.ts +4 -23
- package/dist/commands/exec/run-command.js +5 -79
- package/dist/commands/exec/run-metadata.d.ts +0 -6
- package/dist/commands/exec/run-metadata.js +2 -8
- package/dist/commands/exec/snapshot-text.d.ts +7 -16
- package/dist/commands/exec/snapshot-text.js +9 -49
- package/dist/commands/exec/view.js +2 -12
- package/dist/commands/playwright/command.d.ts +2 -90
- package/dist/commands/playwright/command.js +11 -11
- package/dist/commands/runs/facts.d.ts +1 -37
- package/dist/commands/runs/facts.js +4 -36
- package/dist/commands/runs/list/command.d.ts +0 -72
- package/dist/commands/runs/list/command.js +5 -5
- package/dist/commands/runs/list/outcomes.d.ts +0 -36
- package/dist/commands/runs/logs/command.js +5 -5
- package/dist/commands/runs/show/command.d.ts +0 -72
- package/dist/commands/runs/show/command.js +13 -40
- package/dist/commands/runs/show/metadata.js +1 -1
- package/dist/commands/runs/show/outcomes.d.ts +0 -36
- package/dist/commands/runs/show/outcomes.js +8 -42
- package/dist/commands/snapshots/build/command.d.ts +14 -411
- package/dist/commands/snapshots/build/command.js +56 -231
- package/dist/commands/snapshots/build/metadata.js +10 -7
- package/dist/commands/snapshots/build/outcomes.d.ts +11 -241
- package/dist/commands/snapshots/build/outcomes.js +29 -196
- package/dist/commands/snapshots/list/command.d.ts +2 -36
- package/dist/commands/snapshots/list/command.js +17 -53
- package/dist/commands/snapshots/list/metadata.js +1 -1
- package/dist/commands/snapshots/list/outcomes.d.ts +2 -37
- package/dist/commands/snapshots/list/outcomes.js +13 -53
- package/dist/commands/vitest/command.d.ts +2 -90
- package/dist/commands/vitest/command.js +11 -11
- package/dist/core/events.d.ts +5 -6
- package/dist/core/run-state.d.ts +7 -29
- package/dist/core/run-state.js +3 -26
- package/dist/core/run.d.ts +6 -14
- package/dist/core/run.js +17 -28
- package/dist/extensions/testserver/commands/pool/create/command.js +1 -1
- package/dist/run-directory/index.d.ts +1 -1
- package/dist/run-directory/index.js +0 -1
- package/dist/run-directory/recording.js +2 -2
- package/dist/run-directory/run-record.d.ts +14 -132
- package/dist/run-directory/run-record.js +8 -68
- package/dist/runner/build-snapshots.d.ts +50 -114
- package/dist/runner/build-snapshots.js +70 -159
- package/dist/runner/events.d.ts +4 -88
- package/dist/runner/gateways.d.ts +5 -23
- package/dist/runner/index.d.ts +5 -6
- package/dist/runner/index.js +1 -1
- package/dist/runner/live/snapshot-records.js +7 -18
- package/dist/runner/prepare.d.ts +11 -22
- package/dist/runner/prepare.js +6 -17
- package/dist/runner/ready.d.ts +16 -45
- package/dist/runner/ready.js +34 -59
- package/dist/runner/recipe.d.ts +0 -44
- package/dist/runner/recipe.js +0 -41
- package/dist/runner/scope.d.ts +8 -25
- package/dist/runner/scope.js +4 -8
- package/dist/runner/session.d.ts +18 -65
- package/dist/runner/session.js +15 -83
- package/dist/runner/snapshot-build.d.ts +2 -2
- package/dist/runner/snapshot-cache.d.ts +22 -74
- package/dist/runner/snapshot-cache.js +15 -107
- package/dist/runner/snapshot-inspect.d.ts +9 -13
- package/dist/runner/snapshot-inspect.js +48 -57
- package/dist/runner/snapshot-key.d.ts +9 -14
- package/dist/runner/snapshot-key.js +15 -22
- package/package.json +1 -1
- package/skills/read-run-output.md +8 -9
- package/dist/runner/snapshot-save.d.ts +0 -70
- package/dist/runner/snapshot-save.js +0 -160
- package/dist/runner/snapshot-start.d.ts +0 -25
- package/dist/runner/snapshot-start.js +0 -16
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
RESOURCES,
|
|
3
3
|
liveDriverContexts,
|
|
4
4
|
liveResourceContexts
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5UMJNVKT.js";
|
|
6
6
|
import "./chunk-IYM44FUX.js";
|
|
7
7
|
import "./chunk-LQKNI3EG.js";
|
|
8
8
|
import {
|
|
9
9
|
RUNS_SUBPATH,
|
|
10
10
|
liveRunDirectoryGateway,
|
|
11
11
|
unavailableRunDirectoryGateway
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YGS5VRQT.js";
|
|
13
13
|
import {
|
|
14
14
|
liveCommandGateway,
|
|
15
15
|
liveJobSummaryGateway,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
liveProgressTerminal,
|
|
18
18
|
resolveStateDirectory,
|
|
19
19
|
stateDirectoryPattern
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-6EQKA7LI.js";
|
|
21
21
|
import {
|
|
22
22
|
RUNNER_SNAPSHOTS_SUBPATH,
|
|
23
23
|
configResolver,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
systemClock,
|
|
34
34
|
systemTimer,
|
|
35
35
|
unavailableRunnerSnapshotCacheGateway
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-ZDJLKF2G.js";
|
|
37
37
|
import "./chunk-YT5OROR7.js";
|
|
38
38
|
import "./chunk-GQIL3AHY.js";
|
|
39
39
|
import "./chunk-GSC6SRTW.js";
|
|
@@ -7,8 +7,6 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
7
7
|
mint: "mint";
|
|
8
8
|
}>>;
|
|
9
9
|
unsandboxed: z.ZodDefault<z.ZodBoolean>;
|
|
10
|
-
saveDevSnapshot: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
-
noReuseDevSnapshot: z.ZodDefault<z.ZodBoolean>;
|
|
12
10
|
showOutput: z.ZodDefault<z.ZodBoolean>;
|
|
13
11
|
keepSandbox: z.ZodOptional<z.ZodString>;
|
|
14
12
|
verbose: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -27,48 +25,13 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
27
25
|
runner: z.ZodNullable<z.ZodObject<{
|
|
28
26
|
snapshotId: z.ZodString;
|
|
29
27
|
base: z.ZodString;
|
|
30
|
-
|
|
31
|
-
snapshotHead: z.ZodNullable<z.ZodString>;
|
|
32
|
-
snapshotKind: z.ZodEnum<{
|
|
33
|
-
base: "base";
|
|
34
|
-
dev: "dev";
|
|
35
|
-
}>;
|
|
36
|
-
snapshotBuiltAt: z.ZodString;
|
|
37
|
-
builtBehind: z.ZodNullable<z.ZodNumber>;
|
|
28
|
+
builtBehind: z.ZodNumber;
|
|
38
29
|
uploadBytes: z.ZodNumber;
|
|
39
30
|
built: z.ZodBoolean;
|
|
40
31
|
vcpus: z.ZodNumber;
|
|
41
32
|
region: z.ZodString;
|
|
42
33
|
runtime: z.ZodString;
|
|
43
34
|
buildMs: z.ZodNumber;
|
|
44
|
-
save: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
45
|
-
kind: z.ZodLiteral<"saved">;
|
|
46
|
-
snapshotId: z.ZodString;
|
|
47
|
-
base: z.ZodString;
|
|
48
|
-
branch: z.ZodNullable<z.ZodString>;
|
|
49
|
-
head: z.ZodString;
|
|
50
|
-
ms: z.ZodNumber;
|
|
51
|
-
sizeBytes: z.ZodNumber;
|
|
52
|
-
entryWritten: z.ZodBoolean;
|
|
53
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
-
kind: z.ZodLiteral<"failed">;
|
|
55
|
-
step: z.ZodEnum<{
|
|
56
|
-
"save-snapshot": "save-snapshot";
|
|
57
|
-
scrub: "scrub";
|
|
58
|
-
}>;
|
|
59
|
-
message: z.ZodString;
|
|
60
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
-
kind: z.ZodLiteral<"stopped">;
|
|
62
|
-
}, z.core.$strip>], "kind">>;
|
|
63
|
-
noSaveReason: z.ZodNullable<z.ZodEnum<{
|
|
64
|
-
"already-saved": "already-saved";
|
|
65
|
-
ci: "ci";
|
|
66
|
-
"command-failed": "command-failed";
|
|
67
|
-
"keep-sandbox": "keep-sandbox";
|
|
68
|
-
"no-save-flag": "no-save-flag";
|
|
69
|
-
"not-trusted": "not-trusted";
|
|
70
|
-
recipe: "recipe";
|
|
71
|
-
}>>;
|
|
72
35
|
}, z.core.$strip>>;
|
|
73
36
|
timeline: z.ZodObject<{
|
|
74
37
|
startedAt: z.ZodString;
|
|
@@ -121,10 +84,6 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
121
84
|
flags: string[];
|
|
122
85
|
configFile: string | null;
|
|
123
86
|
}]>;
|
|
124
|
-
devSnapshotsNotTrusted: import("@vercel/clinkr").SharedError<"dev_snapshots_not_trusted", [data: {
|
|
125
|
-
flag: string;
|
|
126
|
-
configFile: string | null;
|
|
127
|
-
}]>;
|
|
128
87
|
invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
|
|
129
88
|
file: string;
|
|
130
89
|
problems: {
|
|
@@ -232,10 +191,6 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
232
191
|
flags: string[];
|
|
233
192
|
configFile: string | null;
|
|
234
193
|
}]>;
|
|
235
|
-
devSnapshotsNotTrusted: import("@vercel/clinkr").SharedError<"dev_snapshots_not_trusted", [data: {
|
|
236
|
-
flag: string;
|
|
237
|
-
configFile: string | null;
|
|
238
|
-
}]>;
|
|
239
194
|
invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
|
|
240
195
|
file: string;
|
|
241
196
|
problems: {
|
|
@@ -352,48 +307,13 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
352
307
|
runner: z.ZodNullable<z.ZodObject<{
|
|
353
308
|
snapshotId: z.ZodString;
|
|
354
309
|
base: z.ZodString;
|
|
355
|
-
|
|
356
|
-
snapshotHead: z.ZodNullable<z.ZodString>;
|
|
357
|
-
snapshotKind: z.ZodEnum<{
|
|
358
|
-
base: "base";
|
|
359
|
-
dev: "dev";
|
|
360
|
-
}>;
|
|
361
|
-
snapshotBuiltAt: z.ZodString;
|
|
362
|
-
builtBehind: z.ZodNullable<z.ZodNumber>;
|
|
310
|
+
builtBehind: z.ZodNumber;
|
|
363
311
|
uploadBytes: z.ZodNumber;
|
|
364
312
|
built: z.ZodBoolean;
|
|
365
313
|
vcpus: z.ZodNumber;
|
|
366
314
|
region: z.ZodString;
|
|
367
315
|
runtime: z.ZodString;
|
|
368
316
|
buildMs: z.ZodNumber;
|
|
369
|
-
save: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
370
|
-
kind: z.ZodLiteral<"saved">;
|
|
371
|
-
snapshotId: z.ZodString;
|
|
372
|
-
base: z.ZodString;
|
|
373
|
-
branch: z.ZodNullable<z.ZodString>;
|
|
374
|
-
head: z.ZodString;
|
|
375
|
-
ms: z.ZodNumber;
|
|
376
|
-
sizeBytes: z.ZodNumber;
|
|
377
|
-
entryWritten: z.ZodBoolean;
|
|
378
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
379
|
-
kind: z.ZodLiteral<"failed">;
|
|
380
|
-
step: z.ZodEnum<{
|
|
381
|
-
"save-snapshot": "save-snapshot";
|
|
382
|
-
scrub: "scrub";
|
|
383
|
-
}>;
|
|
384
|
-
message: z.ZodString;
|
|
385
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
386
|
-
kind: z.ZodLiteral<"stopped">;
|
|
387
|
-
}, z.core.$strip>], "kind">>;
|
|
388
|
-
noSaveReason: z.ZodNullable<z.ZodEnum<{
|
|
389
|
-
"already-saved": "already-saved";
|
|
390
|
-
ci: "ci";
|
|
391
|
-
"command-failed": "command-failed";
|
|
392
|
-
"keep-sandbox": "keep-sandbox";
|
|
393
|
-
"no-save-flag": "no-save-flag";
|
|
394
|
-
"not-trusted": "not-trusted";
|
|
395
|
-
recipe: "recipe";
|
|
396
|
-
}>>;
|
|
397
317
|
}, z.core.$strip>>;
|
|
398
318
|
timeline: z.ZodObject<{
|
|
399
319
|
startedAt: z.ZodString;
|
|
@@ -446,10 +366,6 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
446
366
|
flags: string[];
|
|
447
367
|
configFile: string | null;
|
|
448
368
|
}]>;
|
|
449
|
-
devSnapshotsNotTrusted: import("@vercel/clinkr").SharedError<"dev_snapshots_not_trusted", [data: {
|
|
450
|
-
flag: string;
|
|
451
|
-
configFile: string | null;
|
|
452
|
-
}]>;
|
|
453
369
|
invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
|
|
454
370
|
file: string;
|
|
455
371
|
problems: {
|
|
@@ -557,10 +473,6 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
557
473
|
flags: string[];
|
|
558
474
|
configFile: string | null;
|
|
559
475
|
}]>;
|
|
560
|
-
devSnapshotsNotTrusted: import("@vercel/clinkr").SharedError<"dev_snapshots_not_trusted", [data: {
|
|
561
|
-
flag: string;
|
|
562
|
-
configFile: string | null;
|
|
563
|
-
}]>;
|
|
564
476
|
invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
|
|
565
477
|
file: string;
|
|
566
478
|
problems: {
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runHelp
|
|
3
|
-
} from "../../chunks/chunk-
|
|
3
|
+
} from "../../chunks/chunk-DOFB2ACU.js";
|
|
4
4
|
import {
|
|
5
5
|
RUN_CLI_OPTIONS,
|
|
6
6
|
RUN_REQUEST_FIELDS,
|
|
7
7
|
outcomes,
|
|
8
8
|
runCommand,
|
|
9
9
|
runProblems
|
|
10
|
-
} from "../../chunks/chunk-
|
|
10
|
+
} from "../../chunks/chunk-Q4TKRILH.js";
|
|
11
11
|
import "../../chunks/chunk-I5GZLOLQ.js";
|
|
12
|
-
import "../../chunks/chunk-
|
|
13
|
-
import "../../chunks/chunk-
|
|
14
|
-
import "../../chunks/chunk-
|
|
15
|
-
import "../../chunks/chunk-
|
|
12
|
+
import "../../chunks/chunk-N7E6DAUE.js";
|
|
13
|
+
import "../../chunks/chunk-AX4EQZUS.js";
|
|
14
|
+
import "../../chunks/chunk-2NZXL6OH.js";
|
|
15
|
+
import "../../chunks/chunk-5UMJNVKT.js";
|
|
16
16
|
import "../../chunks/chunk-IYM44FUX.js";
|
|
17
17
|
import "../../chunks/chunk-LQKNI3EG.js";
|
|
18
18
|
import "../../chunks/chunk-NMVODY3P.js";
|
|
19
|
-
import "../../chunks/chunk-
|
|
20
|
-
import "../../chunks/chunk-
|
|
21
|
-
import "../../chunks/chunk-
|
|
22
|
-
import "../../chunks/chunk-
|
|
19
|
+
import "../../chunks/chunk-YGS5VRQT.js";
|
|
20
|
+
import "../../chunks/chunk-RTILVSYQ.js";
|
|
21
|
+
import "../../chunks/chunk-6EQKA7LI.js";
|
|
22
|
+
import "../../chunks/chunk-ZDJLKF2G.js";
|
|
23
23
|
import {
|
|
24
24
|
NOT_COUNTED
|
|
25
25
|
} from "../../chunks/chunk-YT5OROR7.js";
|
|
@@ -19,8 +19,6 @@ export declare function defineRunCommand(driver: Driver): import("@vercel/clinkr
|
|
|
19
19
|
mint: "mint";
|
|
20
20
|
}>>;
|
|
21
21
|
unsandboxed: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
-
saveDevSnapshot: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
-
noReuseDevSnapshot: z.ZodDefault<z.ZodBoolean>;
|
|
24
22
|
showOutput: z.ZodDefault<z.ZodBoolean>;
|
|
25
23
|
keepSandbox: z.ZodOptional<z.ZodString>;
|
|
26
24
|
verbose: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -39,48 +37,13 @@ export declare function defineRunCommand(driver: Driver): import("@vercel/clinkr
|
|
|
39
37
|
runner: z.ZodNullable<z.ZodObject<{
|
|
40
38
|
snapshotId: z.ZodString;
|
|
41
39
|
base: z.ZodString;
|
|
42
|
-
|
|
43
|
-
snapshotHead: z.ZodNullable<z.ZodString>;
|
|
44
|
-
snapshotKind: z.ZodEnum<{
|
|
45
|
-
base: "base";
|
|
46
|
-
dev: "dev";
|
|
47
|
-
}>;
|
|
48
|
-
snapshotBuiltAt: z.ZodString;
|
|
49
|
-
builtBehind: z.ZodNullable<z.ZodNumber>;
|
|
40
|
+
builtBehind: z.ZodNumber;
|
|
50
41
|
uploadBytes: z.ZodNumber;
|
|
51
42
|
built: z.ZodBoolean;
|
|
52
43
|
vcpus: z.ZodNumber;
|
|
53
44
|
region: z.ZodString;
|
|
54
45
|
runtime: z.ZodString;
|
|
55
46
|
buildMs: z.ZodNumber;
|
|
56
|
-
save: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
57
|
-
kind: z.ZodLiteral<"saved">;
|
|
58
|
-
snapshotId: z.ZodString;
|
|
59
|
-
base: z.ZodString;
|
|
60
|
-
branch: z.ZodNullable<z.ZodString>;
|
|
61
|
-
head: z.ZodString;
|
|
62
|
-
ms: z.ZodNumber;
|
|
63
|
-
sizeBytes: z.ZodNumber;
|
|
64
|
-
entryWritten: z.ZodBoolean;
|
|
65
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
66
|
-
kind: z.ZodLiteral<"failed">;
|
|
67
|
-
step: z.ZodEnum<{
|
|
68
|
-
"save-snapshot": "save-snapshot";
|
|
69
|
-
scrub: "scrub";
|
|
70
|
-
}>;
|
|
71
|
-
message: z.ZodString;
|
|
72
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
73
|
-
kind: z.ZodLiteral<"stopped">;
|
|
74
|
-
}, z.core.$strip>], "kind">>;
|
|
75
|
-
noSaveReason: z.ZodNullable<z.ZodEnum<{
|
|
76
|
-
"already-saved": "already-saved";
|
|
77
|
-
ci: "ci";
|
|
78
|
-
"command-failed": "command-failed";
|
|
79
|
-
"keep-sandbox": "keep-sandbox";
|
|
80
|
-
"no-save-flag": "no-save-flag";
|
|
81
|
-
"not-trusted": "not-trusted";
|
|
82
|
-
recipe: "recipe";
|
|
83
|
-
}>>;
|
|
84
47
|
}, z.core.$strip>>;
|
|
85
48
|
timeline: z.ZodObject<{
|
|
86
49
|
startedAt: z.ZodString;
|
|
@@ -146,10 +109,6 @@ export declare function defineRunCommand(driver: Driver): import("@vercel/clinkr
|
|
|
146
109
|
flags: string[];
|
|
147
110
|
configFile: string | null;
|
|
148
111
|
}]>;
|
|
149
|
-
devSnapshotsNotTrusted: import("@vercel/clinkr").SharedError<"dev_snapshots_not_trusted", [data: {
|
|
150
|
-
flag: string;
|
|
151
|
-
configFile: string | null;
|
|
152
|
-
}]>;
|
|
153
112
|
driverPlanFailed: import("@vercel/clinkr").SharedError<"driver_plan_failed", [data: {
|
|
154
113
|
driver: string;
|
|
155
114
|
kind: "exited" | "start-failed" | "timed-out" | "unreadable-output";
|
|
@@ -269,10 +228,6 @@ export declare function defineRunCommand(driver: Driver): import("@vercel/clinkr
|
|
|
269
228
|
flags: string[];
|
|
270
229
|
configFile: string | null;
|
|
271
230
|
}]>;
|
|
272
|
-
readonly devSnapshotsNotTrusted: import("@vercel/clinkr").SharedError<"dev_snapshots_not_trusted", [data: {
|
|
273
|
-
flag: string;
|
|
274
|
-
configFile: string | null;
|
|
275
|
-
}]>;
|
|
276
231
|
readonly driverPlanFailed: import("@vercel/clinkr").SharedError<"driver_plan_failed", [data: {
|
|
277
232
|
driver: string;
|
|
278
233
|
kind: "exited" | "start-failed" | "timed-out" | "unreadable-output";
|
|
@@ -401,48 +356,13 @@ export declare function defineRunCommand(driver: Driver): import("@vercel/clinkr
|
|
|
401
356
|
runner: z.ZodNullable<z.ZodObject<{
|
|
402
357
|
snapshotId: z.ZodString;
|
|
403
358
|
base: z.ZodString;
|
|
404
|
-
|
|
405
|
-
snapshotHead: z.ZodNullable<z.ZodString>;
|
|
406
|
-
snapshotKind: z.ZodEnum<{
|
|
407
|
-
base: "base";
|
|
408
|
-
dev: "dev";
|
|
409
|
-
}>;
|
|
410
|
-
snapshotBuiltAt: z.ZodString;
|
|
411
|
-
builtBehind: z.ZodNullable<z.ZodNumber>;
|
|
359
|
+
builtBehind: z.ZodNumber;
|
|
412
360
|
uploadBytes: z.ZodNumber;
|
|
413
361
|
built: z.ZodBoolean;
|
|
414
362
|
vcpus: z.ZodNumber;
|
|
415
363
|
region: z.ZodString;
|
|
416
364
|
runtime: z.ZodString;
|
|
417
365
|
buildMs: z.ZodNumber;
|
|
418
|
-
save: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
419
|
-
kind: z.ZodLiteral<"saved">;
|
|
420
|
-
snapshotId: z.ZodString;
|
|
421
|
-
base: z.ZodString;
|
|
422
|
-
branch: z.ZodNullable<z.ZodString>;
|
|
423
|
-
head: z.ZodString;
|
|
424
|
-
ms: z.ZodNumber;
|
|
425
|
-
sizeBytes: z.ZodNumber;
|
|
426
|
-
entryWritten: z.ZodBoolean;
|
|
427
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
428
|
-
kind: z.ZodLiteral<"failed">;
|
|
429
|
-
step: z.ZodEnum<{
|
|
430
|
-
"save-snapshot": "save-snapshot";
|
|
431
|
-
scrub: "scrub";
|
|
432
|
-
}>;
|
|
433
|
-
message: z.ZodString;
|
|
434
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
435
|
-
kind: z.ZodLiteral<"stopped">;
|
|
436
|
-
}, z.core.$strip>], "kind">>;
|
|
437
|
-
noSaveReason: z.ZodNullable<z.ZodEnum<{
|
|
438
|
-
"already-saved": "already-saved";
|
|
439
|
-
ci: "ci";
|
|
440
|
-
"command-failed": "command-failed";
|
|
441
|
-
"keep-sandbox": "keep-sandbox";
|
|
442
|
-
"no-save-flag": "no-save-flag";
|
|
443
|
-
"not-trusted": "not-trusted";
|
|
444
|
-
recipe: "recipe";
|
|
445
|
-
}>>;
|
|
446
366
|
}, z.core.$strip>>;
|
|
447
367
|
timeline: z.ZodObject<{
|
|
448
368
|
startedAt: z.ZodString;
|
|
@@ -508,10 +428,6 @@ export declare function defineRunCommand(driver: Driver): import("@vercel/clinkr
|
|
|
508
428
|
flags: string[];
|
|
509
429
|
configFile: string | null;
|
|
510
430
|
}]>;
|
|
511
|
-
devSnapshotsNotTrusted: import("@vercel/clinkr").SharedError<"dev_snapshots_not_trusted", [data: {
|
|
512
|
-
flag: string;
|
|
513
|
-
configFile: string | null;
|
|
514
|
-
}]>;
|
|
515
431
|
driverPlanFailed: import("@vercel/clinkr").SharedError<"driver_plan_failed", [data: {
|
|
516
432
|
driver: string;
|
|
517
433
|
kind: "exited" | "start-failed" | "timed-out" | "unreadable-output";
|
|
@@ -631,10 +547,6 @@ export declare function defineRunCommand(driver: Driver): import("@vercel/clinkr
|
|
|
631
547
|
flags: string[];
|
|
632
548
|
configFile: string | null;
|
|
633
549
|
}]>;
|
|
634
|
-
readonly devSnapshotsNotTrusted: import("@vercel/clinkr").SharedError<"dev_snapshots_not_trusted", [data: {
|
|
635
|
-
flag: string;
|
|
636
|
-
configFile: string | null;
|
|
637
|
-
}]>;
|
|
638
550
|
readonly driverPlanFailed: import("@vercel/clinkr").SharedError<"driver_plan_failed", [data: {
|
|
639
551
|
driver: string;
|
|
640
552
|
kind: "exited" | "start-failed" | "timed-out" | "unreadable-output";
|
|
@@ -8,7 +8,7 @@ import { cleanupProblems, megabytesText, setupPhaseKey, setupPhaseWords, } from
|
|
|
8
8
|
import { mintTargetText } from "../../credential/index.js";
|
|
9
9
|
import { DEFINITION_SET } from "../../extensions.js";
|
|
10
10
|
import { versionText } from "../../version.js";
|
|
11
|
-
import { commandEnd,
|
|
11
|
+
import { commandEnd, LANE_WIDTH } from "./progress.js";
|
|
12
12
|
import { builtAtText } from "./snapshot-text.js";
|
|
13
13
|
import { isoSecondsText, keepTimeText, releaseText, seconds, short, shortFile, spread, truncate, visibleLength, withArticle, } from "./text.js";
|
|
14
14
|
/** Spinner frames, one each tick. */
|
|
@@ -195,7 +195,9 @@ function lanesRecord(state, view) {
|
|
|
195
195
|
...(runner.sandbox === undefined
|
|
196
196
|
? []
|
|
197
197
|
: [`${runner.sandbox.name} · ${runner.sandbox.region} · ${runner.sandbox.vcpus} vCPU`]),
|
|
198
|
-
...(snapshot === undefined || snapshot.status === "pending"
|
|
198
|
+
...(snapshot === undefined || snapshot.status === "pending"
|
|
199
|
+
? []
|
|
200
|
+
: [snapshotText(snapshot, runner, state.base?.sha)]),
|
|
199
201
|
...(runner.status === "failed" || runner.status === "stopped" ? [runner.status] : []),
|
|
200
202
|
];
|
|
201
203
|
lines.push(view.row(`${laneHead(runnerGlyph(runner, view), "runner")}${parts.join(" · ")}`, elapsed(view, runner.startedAt, runner.endedAt)));
|
|
@@ -209,14 +211,17 @@ function lanesRecord(state, view) {
|
|
|
209
211
|
function runnerGlyph(runner, view) {
|
|
210
212
|
return view.glyph(runner.steps.some(({ status }) => status === "failed") ? "failed" : runner.status);
|
|
211
213
|
}
|
|
212
|
-
/**
|
|
213
|
-
|
|
214
|
+
/**
|
|
215
|
+
* What the runner did with its runner snapshot, for the runner's final form: whether a reused one was built at the
|
|
216
|
+
* run's merge-base (`mergeBase`) is compared with the merge-base the run said.
|
|
217
|
+
*/
|
|
218
|
+
function snapshotText(step, runner, mergeBase) {
|
|
214
219
|
// A snapshot the run built says so; one it reused says where it was built, in commits a person knows.
|
|
215
220
|
if (runner.snapshot?.kind === "built")
|
|
216
221
|
return "snapshot built";
|
|
217
222
|
if (runner.snapshot?.kind === "reused") {
|
|
218
|
-
const {
|
|
219
|
-
return `snapshot ${builtAtText({
|
|
223
|
+
const { base, builtBehind } = runner.snapshot;
|
|
224
|
+
return `snapshot ${builtAtText({ base, builtBehind, mergeBase })}`;
|
|
220
225
|
}
|
|
221
226
|
return `snapshot build ${step.status === "running" ? "stopped" : step.status}`;
|
|
222
227
|
}
|
|
@@ -394,40 +399,31 @@ function waitingText(waiting) {
|
|
|
394
399
|
}
|
|
395
400
|
/**
|
|
396
401
|
* The cleanup row: what it does while it runs, what it did in its final form, with the runner sandbox it kept
|
|
397
|
-
* running, if it kept one
|
|
402
|
+
* running, if it kept one.
|
|
398
403
|
*/
|
|
399
404
|
function cleanupLine(cleanup, runner, view, record) {
|
|
400
405
|
const done = record || cleanup.status !== "running";
|
|
401
406
|
const release = releaseText(cleanup.resources, done);
|
|
402
|
-
const {
|
|
407
|
+
const { keepMs } = cleanup;
|
|
403
408
|
const text = !done && cleanup.waiting
|
|
404
409
|
? `${WAITING_FOR_SNAPSHOT}…`
|
|
405
|
-
:
|
|
410
|
+
: keepMs === null
|
|
406
411
|
? (release ?? "nothing to release")
|
|
407
|
-
: `${runnerSandboxText(
|
|
412
|
+
: `${runnerSandboxText(keepMs, runner, done)}${release === undefined ? "" : `, ${release}`}`;
|
|
408
413
|
const leftBehind = cleanupProblems(cleanup);
|
|
409
414
|
const ending = done ? (leftBehind === 0 ? "" : `: ${leftBehind} left behind`) : "…";
|
|
410
415
|
return view.row(` ${view.glyph(cleanup.status)} cleanup ${text}${!done && cleanup.waiting ? "" : ending}`, elapsed(view, cleanup.startedAt, cleanup.endedAt));
|
|
411
416
|
}
|
|
412
417
|
/**
|
|
413
418
|
* What cleanup does with the runner sandbox, as the cleanup row says: kept it running, keeps it running while cleanup
|
|
414
|
-
* runs
|
|
419
|
+
* runs, or else stops and deletes it.
|
|
415
420
|
*/
|
|
416
|
-
function runnerSandboxText(
|
|
421
|
+
function runnerSandboxText(keepMs, runner, done) {
|
|
417
422
|
const kept = runner?.kept;
|
|
418
423
|
if (kept !== undefined)
|
|
419
424
|
return `kept the runner sandbox until ${isoSecondsText(kept.stopsAt)}`;
|
|
420
425
|
const removed = `${done ? "stopped and deleted" : "stopping and deleting"} the runner sandbox`;
|
|
421
|
-
|
|
422
|
-
case "keep":
|
|
423
|
-
return !done && sandbox.ms > 0 ? `keeping the runner sandbox running ${keepTimeText(sandbox.ms)}` : removed;
|
|
424
|
-
case "save": {
|
|
425
|
-
const save = runner?.save;
|
|
426
|
-
if (save?.kind === "saved")
|
|
427
|
-
return `saved dev snapshot ${save.id} of ${headText(save.branch)}`;
|
|
428
|
-
return !done && save?.kind !== "not-saved" ? `saving a dev snapshot of ${headText(sandbox.branch)}` : removed;
|
|
429
|
-
}
|
|
430
|
-
}
|
|
426
|
+
return !done && keepMs > 0 ? `keeping the runner sandbox running ${keepTimeText(keepMs)}` : removed;
|
|
431
427
|
}
|
|
432
428
|
function statusGlyph(status, now, paint) {
|
|
433
429
|
switch (status) {
|
|
@@ -13,48 +13,13 @@ export declare const ranSchema: z.ZodObject<{
|
|
|
13
13
|
runner: z.ZodNullable<z.ZodObject<{
|
|
14
14
|
snapshotId: z.ZodString;
|
|
15
15
|
base: z.ZodString;
|
|
16
|
-
|
|
17
|
-
snapshotHead: z.ZodNullable<z.ZodString>;
|
|
18
|
-
snapshotKind: z.ZodEnum<{
|
|
19
|
-
base: "base";
|
|
20
|
-
dev: "dev";
|
|
21
|
-
}>;
|
|
22
|
-
snapshotBuiltAt: z.ZodString;
|
|
23
|
-
builtBehind: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
builtBehind: z.ZodNumber;
|
|
24
17
|
uploadBytes: z.ZodNumber;
|
|
25
18
|
built: z.ZodBoolean;
|
|
26
19
|
vcpus: z.ZodNumber;
|
|
27
20
|
region: z.ZodString;
|
|
28
21
|
runtime: z.ZodString;
|
|
29
22
|
buildMs: z.ZodNumber;
|
|
30
|
-
save: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31
|
-
kind: z.ZodLiteral<"saved">;
|
|
32
|
-
snapshotId: z.ZodString;
|
|
33
|
-
base: z.ZodString;
|
|
34
|
-
branch: z.ZodNullable<z.ZodString>;
|
|
35
|
-
head: z.ZodString;
|
|
36
|
-
ms: z.ZodNumber;
|
|
37
|
-
sizeBytes: z.ZodNumber;
|
|
38
|
-
entryWritten: z.ZodBoolean;
|
|
39
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
-
kind: z.ZodLiteral<"failed">;
|
|
41
|
-
step: z.ZodEnum<{
|
|
42
|
-
"save-snapshot": "save-snapshot";
|
|
43
|
-
scrub: "scrub";
|
|
44
|
-
}>;
|
|
45
|
-
message: z.ZodString;
|
|
46
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
-
kind: z.ZodLiteral<"stopped">;
|
|
48
|
-
}, z.core.$strip>], "kind">>;
|
|
49
|
-
noSaveReason: z.ZodNullable<z.ZodEnum<{
|
|
50
|
-
"already-saved": "already-saved";
|
|
51
|
-
ci: "ci";
|
|
52
|
-
"command-failed": "command-failed";
|
|
53
|
-
"keep-sandbox": "keep-sandbox";
|
|
54
|
-
"no-save-flag": "no-save-flag";
|
|
55
|
-
"not-trusted": "not-trusted";
|
|
56
|
-
recipe: "recipe";
|
|
57
|
-
}>>;
|
|
58
23
|
}, z.core.$strip>>;
|
|
59
24
|
timeline: z.ZodObject<{
|
|
60
25
|
startedAt: z.ZodString;
|
|
@@ -113,10 +78,6 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
|
|
|
113
78
|
flags: z.ZodArray<z.ZodString>;
|
|
114
79
|
configFile: z.ZodNullable<z.ZodString>;
|
|
115
80
|
}, z.core.$strip>;
|
|
116
|
-
devSnapshotsNotTrusted: z.ZodObject<{
|
|
117
|
-
flag: z.ZodString;
|
|
118
|
-
configFile: z.ZodNullable<z.ZodString>;
|
|
119
|
-
}, z.core.$strip>;
|
|
120
81
|
missingRunner: z.ZodObject<{
|
|
121
82
|
configFile: z.ZodNullable<z.ZodString>;
|
|
122
83
|
}, z.core.$strip>;
|
|
@@ -204,24 +165,6 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
|
|
|
204
165
|
}[];
|
|
205
166
|
};
|
|
206
167
|
};
|
|
207
|
-
readonly devSnapshotsNotTrusted: {
|
|
208
|
-
readonly exitCode: 2;
|
|
209
|
-
readonly description: "--save-dev-snapshot was given to a sandboxed run whose runner recipe's install or build step names a runner secret, and the recipe doesn't set trustDevSnapshots: true. A dev snapshot holds what a command wrote, and those steps run on top of it in later runs with their secrets, so only the recipe grants that trust. Nothing was minted, acquired or created.";
|
|
210
|
-
readonly schema: z.ZodObject<{
|
|
211
|
-
flag: z.ZodString;
|
|
212
|
-
configFile: z.ZodNullable<z.ZodString>;
|
|
213
|
-
}, z.core.$strip>;
|
|
214
|
-
readonly render: ({ flag, configFile }: {
|
|
215
|
-
flag: string;
|
|
216
|
-
configFile: string | null;
|
|
217
|
-
}) => {
|
|
218
|
-
message: string;
|
|
219
|
-
next: {
|
|
220
|
-
type: "text";
|
|
221
|
-
text: string;
|
|
222
|
-
}[];
|
|
223
|
-
};
|
|
224
|
-
};
|
|
225
168
|
readonly missingRunner: {
|
|
226
169
|
readonly exitCode: 2;
|
|
227
170
|
readonly description: "A sandboxed run (no --unsandboxed) needs a runner recipe, and no storm.config.ts gives a runner key.";
|
|
@@ -428,10 +371,6 @@ export declare const RUN_ERRORS: {
|
|
|
428
371
|
flags: string[];
|
|
429
372
|
configFile: string | null;
|
|
430
373
|
}]>;
|
|
431
|
-
devSnapshotsNotTrusted: import("@vercel/clinkr").SharedError<"dev_snapshots_not_trusted", [data: {
|
|
432
|
-
flag: string;
|
|
433
|
-
configFile: string | null;
|
|
434
|
-
}]>;
|
|
435
374
|
invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
|
|
436
375
|
file: string;
|
|
437
376
|
problems: {
|
|
@@ -550,48 +489,13 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
550
489
|
runner: z.ZodNullable<z.ZodObject<{
|
|
551
490
|
snapshotId: z.ZodString;
|
|
552
491
|
base: z.ZodString;
|
|
553
|
-
|
|
554
|
-
snapshotHead: z.ZodNullable<z.ZodString>;
|
|
555
|
-
snapshotKind: z.ZodEnum<{
|
|
556
|
-
base: "base";
|
|
557
|
-
dev: "dev";
|
|
558
|
-
}>;
|
|
559
|
-
snapshotBuiltAt: z.ZodString;
|
|
560
|
-
builtBehind: z.ZodNullable<z.ZodNumber>;
|
|
492
|
+
builtBehind: z.ZodNumber;
|
|
561
493
|
uploadBytes: z.ZodNumber;
|
|
562
494
|
built: z.ZodBoolean;
|
|
563
495
|
vcpus: z.ZodNumber;
|
|
564
496
|
region: z.ZodString;
|
|
565
497
|
runtime: z.ZodString;
|
|
566
498
|
buildMs: z.ZodNumber;
|
|
567
|
-
save: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
568
|
-
kind: z.ZodLiteral<"saved">;
|
|
569
|
-
snapshotId: z.ZodString;
|
|
570
|
-
base: z.ZodString;
|
|
571
|
-
branch: z.ZodNullable<z.ZodString>;
|
|
572
|
-
head: z.ZodString;
|
|
573
|
-
ms: z.ZodNumber;
|
|
574
|
-
sizeBytes: z.ZodNumber;
|
|
575
|
-
entryWritten: z.ZodBoolean;
|
|
576
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
577
|
-
kind: z.ZodLiteral<"failed">;
|
|
578
|
-
step: z.ZodEnum<{
|
|
579
|
-
"save-snapshot": "save-snapshot";
|
|
580
|
-
scrub: "scrub";
|
|
581
|
-
}>;
|
|
582
|
-
message: z.ZodString;
|
|
583
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
584
|
-
kind: z.ZodLiteral<"stopped">;
|
|
585
|
-
}, z.core.$strip>], "kind">>;
|
|
586
|
-
noSaveReason: z.ZodNullable<z.ZodEnum<{
|
|
587
|
-
"already-saved": "already-saved";
|
|
588
|
-
ci: "ci";
|
|
589
|
-
"command-failed": "command-failed";
|
|
590
|
-
"keep-sandbox": "keep-sandbox";
|
|
591
|
-
"no-save-flag": "no-save-flag";
|
|
592
|
-
"not-trusted": "not-trusted";
|
|
593
|
-
recipe: "recipe";
|
|
594
|
-
}>>;
|
|
595
499
|
}, z.core.$strip>>;
|
|
596
500
|
timeline: z.ZodObject<{
|
|
597
501
|
startedAt: z.ZodString;
|
|
@@ -644,10 +548,6 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
644
548
|
flags: string[];
|
|
645
549
|
configFile: string | null;
|
|
646
550
|
}]>;
|
|
647
|
-
devSnapshotsNotTrusted: import("@vercel/clinkr").SharedError<"dev_snapshots_not_trusted", [data: {
|
|
648
|
-
flag: string;
|
|
649
|
-
configFile: string | null;
|
|
650
|
-
}]>;
|
|
651
551
|
invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
|
|
652
552
|
file: string;
|
|
653
553
|
problems: {
|
|
@@ -755,10 +655,6 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
755
655
|
flags: string[];
|
|
756
656
|
configFile: string | null;
|
|
757
657
|
}]>;
|
|
758
|
-
devSnapshotsNotTrusted: import("@vercel/clinkr").SharedError<"dev_snapshots_not_trusted", [data: {
|
|
759
|
-
flag: string;
|
|
760
|
-
configFile: string | null;
|
|
761
|
-
}]>;
|
|
762
658
|
invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
|
|
763
659
|
file: string;
|
|
764
660
|
problems: {
|