@cnc-tools/storm 0.12.0 → 0.14.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/application.js +5 -1
- package/dist/bin/storm.js +6 -2
- package/dist/build-info.js +1 -1
- package/dist/chunks/{chunk-FK4RLDEK.js → chunk-27P2QSIM.js} +1 -1
- package/dist/chunks/{chunk-ODQHQJLE.js → chunk-5ED3IDUJ.js} +749 -1121
- package/dist/chunks/{chunk-FSP3SJ35.js → chunk-5TMHYH7G.js} +16 -46
- package/dist/chunks/{chunk-Y3BUNNRG.js → chunk-BFLYGMG3.js} +12 -7
- package/dist/chunks/{chunk-LQKNI3EG.js → chunk-BRUIATTR.js} +6 -6
- package/dist/chunks/{chunk-RYRJNHL7.js → chunk-HOKDKP5A.js} +3 -9
- package/dist/chunks/{chunk-SXW6XN4R.js → chunk-IVRRGGCD.js} +60 -20
- package/dist/chunks/{chunk-TMQQYHUX.js → chunk-QBR5VHJ7.js} +1 -1
- package/dist/chunks/{chunk-YT5OROR7.js → chunk-RA4L2ACU.js} +12 -2
- package/dist/chunks/{chunk-TEEZL3GA.js → chunk-RKONDLPS.js} +17 -71
- package/dist/chunks/{chunk-IYM44FUX.js → chunk-UC6DULWY.js} +2 -2
- package/dist/chunks/{chunk-4XT5RC5T.js → chunk-XPCUINWS.js} +6 -42
- package/dist/chunks/{chunk-U7M3ZB3Z.js → chunk-YBPTMJUM.js} +123 -180
- package/dist/chunks/{chunk-ISGQJIQM.js → chunk-Z5OXOZD3.js} +125 -83
- package/dist/chunks/{chunk-7D6LC5JY.js → chunk-ZH5R7W4A.js} +7 -39
- package/dist/chunks/{live-app-AZ5N5HBD.js → live-app-FBVWUUMT.js} +7 -7
- package/dist/commands/exec/command.d.ts +4 -90
- package/dist/commands/exec/command.js +15 -41
- package/dist/commands/exec/define-run-command.d.ts +19 -100
- package/dist/commands/exec/define-run-command.js +48 -15
- package/dist/commands/exec/driver-plan.d.ts +24 -16
- package/dist/commands/exec/driver-plan.js +34 -15
- package/dist/commands/exec/driver-refusals.js +7 -6
- package/dist/commands/exec/exec-words.d.ts +1 -1
- package/dist/commands/exec/exec-words.js +8 -2
- package/dist/commands/exec/final-results.d.ts +39 -0
- package/dist/commands/exec/final-results.js +29 -0
- package/dist/commands/exec/live-view.js +18 -22
- package/dist/commands/exec/metadata.js +1 -1
- package/dist/commands/exec/outcomes.d.ts +15 -109
- package/dist/commands/exec/outcomes.js +25 -39
- package/dist/commands/exec/plan-run.d.ts +11 -3
- package/dist/commands/exec/plan-run.js +3 -2
- 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 +5 -24
- package/dist/commands/exec/run-command.js +32 -84
- 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/test-plan.d.ts +2 -1
- package/dist/commands/exec/test-plan.js +13 -4
- package/dist/commands/exec/tests-summary.d.ts +2 -2
- package/dist/commands/exec/view.js +2 -12
- package/dist/commands/exec/worker-chart.d.ts +1 -1
- package/dist/commands/playwright/command.d.ts +12 -97
- package/dist/commands/playwright/command.js +14 -14
- package/dist/commands/playwright/metadata.js +2 -2
- 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 +6 -6
- package/dist/commands/runs/list/outcomes.d.ts +0 -36
- package/dist/commands/runs/logs/command.js +6 -6
- package/dist/commands/runs/show/command.d.ts +2 -74
- package/dist/commands/runs/show/command.js +16 -43
- package/dist/commands/runs/show/metadata.js +1 -1
- package/dist/commands/runs/show/outcomes.d.ts +1 -37
- 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 +59 -234
- 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 +20 -56
- 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 +14 -98
- package/dist/commands/vitest/command.js +14 -14
- package/dist/commands/vitest/metadata.js +2 -2
- package/dist/config/resolve.d.ts +1 -1
- package/dist/config/resolve.js +2 -1
- package/dist/config/schema.d.ts +8 -0
- package/dist/config/schema.js +5 -4
- 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/playwright/driver.js +17 -10
- package/dist/extensions/testserver/commands/pool/create/command.js +4 -4
- package/dist/extensions/testserver/commands/pool/list/command.js +2 -2
- package/dist/extensions/testserver/definition.d.ts +1 -1
- package/dist/extensions/testserver/extension.d.ts +1 -1
- package/dist/extensions/testserver/options/rules.d.ts +3 -3
- package/dist/extensions/testserver/options/rules.js +5 -5
- package/dist/extensions/testserver/resource.d.ts +1 -1
- package/dist/extensions/testserver/vercel-cli/index.d.ts +1 -0
- package/dist/extensions/testserver/vercel-cli/index.js +1 -0
- package/dist/extensions/testserver/vercel-cli/report.js +5 -2
- package/dist/extensions/testserver/vercel-cli/session-id.d.ts +8 -0
- package/dist/extensions/testserver/vercel-cli/session-id.js +16 -0
- package/dist/extensions/testserver/vitest/config.d.ts +2 -2
- package/dist/extensions/testserver/vitest/config.js +2 -2
- package/dist/extensions/testserver/vitest/container-scope.d.ts +25 -16
- package/dist/extensions/testserver/vitest/container-scope.js +32 -13
- package/dist/extensions/testserver/vitest/diagnostics.d.ts +5 -4
- package/dist/extensions/testserver/vitest/diagnostics.js +15 -8
- package/dist/extensions/testserver/vitest/fixtures.d.ts +10 -1
- package/dist/extensions/testserver/vitest/fixtures.js +36 -10
- package/dist/extensions/testserver/vitest/types.d.ts +9 -0
- package/dist/extensions/vitest/driver.js +28 -14
- package/dist/extensions/vitest/plan/gateways.d.ts +28 -5
- package/dist/extensions/vitest/plan/gateways.js +2 -2
- package/dist/extensions/vitest/plan/list-output.d.ts +5 -0
- package/dist/extensions/vitest/plan/list-output.js +23 -9
- package/dist/extensions/vitest/plan/live/list-gateway.d.ts +3 -2
- package/dist/extensions/vitest/plan/live/list-gateway.js +77 -64
- package/dist/extensions/vitest/plan/plan-over.d.ts +19 -7
- package/dist/extensions/vitest/plan/plan-over.js +18 -7
- package/dist/extensions/vitest/plan/plan.d.ts +14 -5
- package/dist/extensions/vitest/plan/plan.js +23 -9
- package/dist/extensions.d.ts +2 -2
- package/dist/run-directory/index.d.ts +1 -1
- package/dist/run-directory/index.js +0 -1
- package/dist/run-directory/plan.d.ts +3 -2
- package/dist/run-directory/plan.js +6 -3
- package/dist/run-directory/recording.js +2 -2
- package/dist/run-directory/run-record.d.ts +18 -135
- 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 +5 -45
- package/dist/runner/recipe.js +0 -41
- package/dist/runner/sandboxed-command.d.ts +5 -3
- package/dist/runner/sandboxed-command.js +10 -4
- 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/dist/sdk/extension/driver.d.ts +32 -6
- package/dist/sdk/extension/driver.js +12 -2
- package/dist/sdk/extension/index.d.ts +1 -1
- package/dist/sdk/extension/index.js +2 -1
- package/dist/sdk/extension/resource-definition.d.ts +6 -5
- package/dist/vendor/testserver-sdk/container/api-request.d.ts +2 -3
- package/dist/vendor/testserver-sdk/container/api-request.js +2 -3
- package/dist/vendor/testserver-sdk/container/container.d.ts +12 -2
- package/dist/vendor/testserver-sdk/container/container.js +10 -7
- package/dist/vendor/testserver-sdk/container/recorder.d.ts +29 -7
- package/dist/vendor/testserver-sdk/container/recorder.js +26 -14
- package/dist/vendor/testserver-sdk/index.d.ts +1 -1
- package/dist/vendor/testserver-sdk/index.js +1 -1
- package/dist/vendor/testserver-sdk/proxy/exchange.d.ts +24 -5
- package/dist/vendor/testserver-sdk/proxy/exchange.js +43 -25
- package/dist/vendor/testserver-sdk/proxy/faulted-exchange.js +15 -10
- package/dist/vendor/testserver-sdk/proxy/faults.d.ts +6 -5
- package/dist/vendor/testserver-sdk/proxy/proxy.d.ts +10 -1
- package/dist/vendor/testserver-sdk/proxy/proxy.js +5 -3
- package/dist/vendor/testserver-sdk/proxy/records.d.ts +17 -17
- package/dist/vendor/testserver-sdk/proxy/records.js +18 -17
- package/dist/vendor/testserver-sdk/records/body.d.ts +7 -9
- package/dist/vendor/testserver-sdk/records/body.js +10 -15
- package/dist/vendor/testserver-sdk/records/headers.d.ts +79 -0
- package/dist/vendor/testserver-sdk/records/headers.js +162 -0
- package/dist/vendor/testserver-sdk/records/index.d.ts +2 -1
- package/dist/vendor/testserver-sdk/records/index.js +4 -2
- package/dist/vendor/testserver-sdk/records/records.d.ts +19 -10
- package/package.json +5 -4
- package/skills/overview.md +5 -5
- 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
- package/skills/testserver-builds.md +0 -82
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { RUN_CLEANUP } from "../../exec/cleanup.ts";
|
|
3
3
|
/**
|
|
4
|
-
* Builds
|
|
4
|
+
* Builds a base snapshot the runner snapshot cache lacks, with no run: at the merge-base, or at the commit `--base`
|
|
5
|
+
* names. The runner module checks the build on
|
|
5
6
|
* this machine (`prepareSnapshotBuild`), then builds it in its own sandbox scope (`buildSnapshots`), which stops and
|
|
6
7
|
* deletes every sandbox however it ends. This file loads the config file and the runner recipe, mints the credential
|
|
7
8
|
* through the credential launcher resolver, reads the runner secrets, shows the runner's events as a run's plain
|
|
@@ -23,57 +24,15 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
23
24
|
head: z.ZodString;
|
|
24
25
|
base: z.ZodString;
|
|
25
26
|
baseRef: z.ZodString;
|
|
26
|
-
noDevSnapshotReason: z.ZodNullable<z.ZodEnum<{
|
|
27
|
-
"base-only": "base-only";
|
|
28
|
-
"not-trusted": "not-trusted";
|
|
29
|
-
"reuse-off": "reuse-off";
|
|
30
|
-
}>>;
|
|
31
27
|
uncommitted: z.ZodNullable<z.ZodBoolean>;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
snapshotId: z.ZodString;
|
|
35
|
-
kind: z.ZodEnum<{
|
|
36
|
-
base: "base";
|
|
37
|
-
dev: "dev";
|
|
38
|
-
}>;
|
|
39
|
-
base: z.ZodString;
|
|
40
|
-
builtAt: z.ZodString;
|
|
41
|
-
branch: z.ZodNullable<z.ZodString>;
|
|
42
|
-
expiresAt: z.ZodString;
|
|
43
|
-
cached: z.ZodBoolean;
|
|
44
|
-
}, z.core.$strip>>;
|
|
45
|
-
startedFrom: z.ZodNullable<z.ZodObject<{
|
|
46
|
-
snapshotId: z.ZodString;
|
|
47
|
-
kind: z.ZodEnum<{
|
|
48
|
-
base: "base";
|
|
49
|
-
dev: "dev";
|
|
50
|
-
}>;
|
|
51
|
-
base: z.ZodString;
|
|
52
|
-
builtAt: z.ZodString;
|
|
53
|
-
branch: z.ZodNullable<z.ZodString>;
|
|
54
|
-
expiresAt: z.ZodString;
|
|
55
|
-
}, z.core.$strip>>;
|
|
56
|
-
devSnapshot: z.ZodNullable<z.ZodObject<{
|
|
28
|
+
atMergeBase: z.ZodNullable<z.ZodBoolean>;
|
|
29
|
+
snapshot: z.ZodObject<{
|
|
57
30
|
snapshotId: z.ZodString;
|
|
58
|
-
kind: z.ZodEnum<{
|
|
59
|
-
base: "base";
|
|
60
|
-
dev: "dev";
|
|
61
|
-
}>;
|
|
62
31
|
base: z.ZodString;
|
|
63
|
-
builtAt: z.ZodString;
|
|
64
|
-
branch: z.ZodNullable<z.ZodString>;
|
|
65
32
|
expiresAt: z.ZodString;
|
|
66
|
-
ms: z.ZodNumber;
|
|
67
|
-
sizeBytes: z.ZodNumber;
|
|
68
|
-
}, z.core.$strip>>;
|
|
69
|
-
dropped: z.ZodObject<{
|
|
70
|
-
snapshotIds: z.ZodArray<z.ZodString>;
|
|
71
|
-
failures: z.ZodArray<z.ZodString>;
|
|
72
33
|
}, z.core.$strip>;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
recipe: "recipe";
|
|
76
|
-
}>>;
|
|
34
|
+
ms: z.ZodNumber;
|
|
35
|
+
sizeBytes: z.ZodNumber;
|
|
77
36
|
cleanup: z.ZodType<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts>>;
|
|
78
37
|
}, z.core.$strip>;
|
|
79
38
|
upToDate: z.ZodObject<{
|
|
@@ -84,22 +43,11 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
84
43
|
head: z.ZodString;
|
|
85
44
|
base: z.ZodString;
|
|
86
45
|
baseRef: z.ZodString;
|
|
87
|
-
noDevSnapshotReason: z.ZodNullable<z.ZodEnum<{
|
|
88
|
-
"base-only": "base-only";
|
|
89
|
-
"not-trusted": "not-trusted";
|
|
90
|
-
"reuse-off": "reuse-off";
|
|
91
|
-
}>>;
|
|
92
46
|
uncommitted: z.ZodNullable<z.ZodBoolean>;
|
|
93
|
-
|
|
47
|
+
atMergeBase: z.ZodNullable<z.ZodBoolean>;
|
|
94
48
|
snapshot: z.ZodObject<{
|
|
95
49
|
snapshotId: z.ZodString;
|
|
96
|
-
kind: z.ZodEnum<{
|
|
97
|
-
base: "base";
|
|
98
|
-
dev: "dev";
|
|
99
|
-
}>;
|
|
100
50
|
base: z.ZodString;
|
|
101
|
-
builtAt: z.ZodString;
|
|
102
|
-
branch: z.ZodNullable<z.ZodString>;
|
|
103
51
|
expiresAt: z.ZodString;
|
|
104
52
|
}, z.core.$strip>;
|
|
105
53
|
}, z.core.$strip>;
|
|
@@ -177,69 +125,17 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
177
125
|
};
|
|
178
126
|
cleanup: import("../../exec/cleanup.ts").StormCleanupFacts;
|
|
179
127
|
}]>;
|
|
180
|
-
snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
|
|
181
|
-
snapshotId: string;
|
|
182
|
-
base: string;
|
|
183
|
-
removal: {
|
|
184
|
-
path: string;
|
|
185
|
-
message: string;
|
|
186
|
-
} | null;
|
|
187
|
-
cleanup: import("../../exec/cleanup.ts").StormCleanupFacts;
|
|
188
|
-
}]>;
|
|
189
128
|
refNotFound: z.ZodObject<{
|
|
190
129
|
ref: z.ZodString;
|
|
191
130
|
}, z.core.$strip>;
|
|
192
|
-
devSnapshotNotSaved: z.ZodObject<{
|
|
193
|
-
step: z.ZodEnum<{
|
|
194
|
-
"save-snapshot": "save-snapshot";
|
|
195
|
-
scrub: "scrub";
|
|
196
|
-
}>;
|
|
197
|
-
message: z.ZodString;
|
|
198
|
-
baseSnapshot: z.ZodNullable<z.ZodObject<{
|
|
199
|
-
snapshotId: z.ZodString;
|
|
200
|
-
kind: z.ZodEnum<{
|
|
201
|
-
base: "base";
|
|
202
|
-
dev: "dev";
|
|
203
|
-
}>;
|
|
204
|
-
base: z.ZodString;
|
|
205
|
-
builtAt: z.ZodString;
|
|
206
|
-
branch: z.ZodNullable<z.ZodString>;
|
|
207
|
-
expiresAt: z.ZodString;
|
|
208
|
-
cached: z.ZodBoolean;
|
|
209
|
-
}, z.core.$strip>>;
|
|
210
|
-
cleanup: z.ZodType<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts>>;
|
|
211
|
-
}, z.core.$strip>;
|
|
212
131
|
snapshotNotCached: z.ZodObject<{
|
|
213
132
|
snapshot: z.ZodObject<{
|
|
214
133
|
snapshotId: z.ZodString;
|
|
215
|
-
kind: z.ZodEnum<{
|
|
216
|
-
base: "base";
|
|
217
|
-
dev: "dev";
|
|
218
|
-
}>;
|
|
219
134
|
base: z.ZodString;
|
|
220
|
-
builtAt: z.ZodString;
|
|
221
|
-
branch: z.ZodNullable<z.ZodString>;
|
|
222
135
|
expiresAt: z.ZodString;
|
|
223
136
|
}, z.core.$strip>;
|
|
224
137
|
path: z.ZodString;
|
|
225
138
|
message: z.ZodString;
|
|
226
|
-
baseSnapshot: z.ZodNullable<z.ZodObject<{
|
|
227
|
-
snapshotId: z.ZodString;
|
|
228
|
-
kind: z.ZodEnum<{
|
|
229
|
-
base: "base";
|
|
230
|
-
dev: "dev";
|
|
231
|
-
}>;
|
|
232
|
-
base: z.ZodString;
|
|
233
|
-
builtAt: z.ZodString;
|
|
234
|
-
branch: z.ZodNullable<z.ZodString>;
|
|
235
|
-
expiresAt: z.ZodString;
|
|
236
|
-
cached: z.ZodBoolean;
|
|
237
|
-
}, z.core.$strip>>;
|
|
238
|
-
full: z.ZodBoolean;
|
|
239
|
-
dropped: z.ZodNullable<z.ZodObject<{
|
|
240
|
-
snapshotIds: z.ZodArray<z.ZodString>;
|
|
241
|
-
failures: z.ZodArray<z.ZodString>;
|
|
242
|
-
}, z.core.$strip>>;
|
|
243
139
|
cleanup: z.ZodType<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts>>;
|
|
244
140
|
}, z.core.$strip>;
|
|
245
141
|
}, {
|
|
@@ -313,15 +209,6 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
313
209
|
};
|
|
314
210
|
cleanup: import("../../exec/cleanup.ts").StormCleanupFacts;
|
|
315
211
|
}]>;
|
|
316
|
-
readonly snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
|
|
317
|
-
snapshotId: string;
|
|
318
|
-
base: string;
|
|
319
|
-
removal: {
|
|
320
|
-
path: string;
|
|
321
|
-
message: string;
|
|
322
|
-
} | null;
|
|
323
|
-
cleanup: import("../../exec/cleanup.ts").StormCleanupFacts;
|
|
324
|
-
}]>;
|
|
325
212
|
readonly refNotFound: {
|
|
326
213
|
readonly exitCode: 1;
|
|
327
214
|
readonly description: "--base names no commit in this clone: storm resolves it from local refs only, and never fetches.";
|
|
@@ -338,112 +225,27 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
338
225
|
}[];
|
|
339
226
|
};
|
|
340
227
|
};
|
|
341
|
-
readonly devSnapshotNotSaved: {
|
|
342
|
-
readonly exitCode: 1;
|
|
343
|
-
readonly description: "It readied a runner sandbox for this checkout but couldn't save it as a dev snapshot: the scrub or the save failed. baseSnapshot names the base snapshot it built first, if any, and whether the cache holds it.";
|
|
344
|
-
readonly schema: z.ZodObject<{
|
|
345
|
-
step: z.ZodEnum<{
|
|
346
|
-
"save-snapshot": "save-snapshot";
|
|
347
|
-
scrub: "scrub";
|
|
348
|
-
}>;
|
|
349
|
-
message: z.ZodString;
|
|
350
|
-
baseSnapshot: z.ZodNullable<z.ZodObject<{
|
|
351
|
-
snapshotId: z.ZodString;
|
|
352
|
-
kind: z.ZodEnum<{
|
|
353
|
-
base: "base";
|
|
354
|
-
dev: "dev";
|
|
355
|
-
}>;
|
|
356
|
-
base: z.ZodString;
|
|
357
|
-
builtAt: z.ZodString;
|
|
358
|
-
branch: z.ZodNullable<z.ZodString>;
|
|
359
|
-
expiresAt: z.ZodString;
|
|
360
|
-
cached: z.ZodBoolean;
|
|
361
|
-
}, z.core.$strip>>;
|
|
362
|
-
cleanup: z.ZodType<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts>>;
|
|
363
|
-
}, z.core.$strip>;
|
|
364
|
-
readonly render: ({ step, message, baseSnapshot, cleanup, }: {
|
|
365
|
-
readonly step: string;
|
|
366
|
-
readonly message: string;
|
|
367
|
-
readonly baseSnapshot: {
|
|
368
|
-
snapshotId: string;
|
|
369
|
-
kind: "base" | "dev";
|
|
370
|
-
base: string;
|
|
371
|
-
builtAt: string;
|
|
372
|
-
branch: string | null;
|
|
373
|
-
expiresAt: string;
|
|
374
|
-
cached: boolean;
|
|
375
|
-
} | null;
|
|
376
|
-
readonly cleanup: z.output<typeof RUN_CLEANUP.schema>;
|
|
377
|
-
}) => {
|
|
378
|
-
message: string;
|
|
379
|
-
rows?: import("@vercel/clinkr").Row[];
|
|
380
|
-
next: {
|
|
381
|
-
type: "text";
|
|
382
|
-
text: string;
|
|
383
|
-
}[];
|
|
384
|
-
};
|
|
385
|
-
};
|
|
386
228
|
readonly snapshotNotCached: {
|
|
387
229
|
readonly exitCode: 1;
|
|
388
|
-
readonly description: "It
|
|
230
|
+
readonly description: "It built and saved the base snapshot, but couldn't write its cache entry, so no run finds it.";
|
|
389
231
|
readonly schema: z.ZodObject<{
|
|
390
232
|
snapshot: z.ZodObject<{
|
|
391
233
|
snapshotId: z.ZodString;
|
|
392
|
-
kind: z.ZodEnum<{
|
|
393
|
-
base: "base";
|
|
394
|
-
dev: "dev";
|
|
395
|
-
}>;
|
|
396
234
|
base: z.ZodString;
|
|
397
|
-
builtAt: z.ZodString;
|
|
398
|
-
branch: z.ZodNullable<z.ZodString>;
|
|
399
235
|
expiresAt: z.ZodString;
|
|
400
236
|
}, z.core.$strip>;
|
|
401
237
|
path: z.ZodString;
|
|
402
238
|
message: z.ZodString;
|
|
403
|
-
baseSnapshot: z.ZodNullable<z.ZodObject<{
|
|
404
|
-
snapshotId: z.ZodString;
|
|
405
|
-
kind: z.ZodEnum<{
|
|
406
|
-
base: "base";
|
|
407
|
-
dev: "dev";
|
|
408
|
-
}>;
|
|
409
|
-
base: z.ZodString;
|
|
410
|
-
builtAt: z.ZodString;
|
|
411
|
-
branch: z.ZodNullable<z.ZodString>;
|
|
412
|
-
expiresAt: z.ZodString;
|
|
413
|
-
cached: z.ZodBoolean;
|
|
414
|
-
}, z.core.$strip>>;
|
|
415
|
-
full: z.ZodBoolean;
|
|
416
|
-
dropped: z.ZodNullable<z.ZodObject<{
|
|
417
|
-
snapshotIds: z.ZodArray<z.ZodString>;
|
|
418
|
-
failures: z.ZodArray<z.ZodString>;
|
|
419
|
-
}, z.core.$strip>>;
|
|
420
239
|
cleanup: z.ZodType<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts>>;
|
|
421
240
|
}, z.core.$strip>;
|
|
422
241
|
readonly render: (facts: {
|
|
423
242
|
readonly snapshot: {
|
|
424
243
|
snapshotId: string;
|
|
425
|
-
kind: "base" | "dev";
|
|
426
244
|
base: string;
|
|
427
|
-
builtAt: string;
|
|
428
|
-
branch: string | null;
|
|
429
245
|
expiresAt: string;
|
|
430
246
|
};
|
|
431
247
|
readonly path: string;
|
|
432
248
|
readonly message: string;
|
|
433
|
-
readonly baseSnapshot: {
|
|
434
|
-
snapshotId: string;
|
|
435
|
-
kind: "base" | "dev";
|
|
436
|
-
base: string;
|
|
437
|
-
builtAt: string;
|
|
438
|
-
branch: string | null;
|
|
439
|
-
expiresAt: string;
|
|
440
|
-
cached: boolean;
|
|
441
|
-
} | null;
|
|
442
|
-
readonly full: boolean;
|
|
443
|
-
readonly dropped: z.output<z.ZodObject<{
|
|
444
|
-
snapshotIds: z.ZodArray<z.ZodString>;
|
|
445
|
-
failures: z.ZodArray<z.ZodString>;
|
|
446
|
-
}, z.core.$strip>> | null;
|
|
447
249
|
readonly cleanup: z.output<typeof RUN_CLEANUP.schema>;
|
|
448
250
|
}) => {
|
|
449
251
|
message: string;
|
|
@@ -463,57 +265,15 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
463
265
|
head: z.ZodString;
|
|
464
266
|
base: z.ZodString;
|
|
465
267
|
baseRef: z.ZodString;
|
|
466
|
-
noDevSnapshotReason: z.ZodNullable<z.ZodEnum<{
|
|
467
|
-
"base-only": "base-only";
|
|
468
|
-
"not-trusted": "not-trusted";
|
|
469
|
-
"reuse-off": "reuse-off";
|
|
470
|
-
}>>;
|
|
471
268
|
uncommitted: z.ZodNullable<z.ZodBoolean>;
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
snapshotId: z.ZodString;
|
|
475
|
-
kind: z.ZodEnum<{
|
|
476
|
-
base: "base";
|
|
477
|
-
dev: "dev";
|
|
478
|
-
}>;
|
|
479
|
-
base: z.ZodString;
|
|
480
|
-
builtAt: z.ZodString;
|
|
481
|
-
branch: z.ZodNullable<z.ZodString>;
|
|
482
|
-
expiresAt: z.ZodString;
|
|
483
|
-
cached: z.ZodBoolean;
|
|
484
|
-
}, z.core.$strip>>;
|
|
485
|
-
startedFrom: z.ZodNullable<z.ZodObject<{
|
|
486
|
-
snapshotId: z.ZodString;
|
|
487
|
-
kind: z.ZodEnum<{
|
|
488
|
-
base: "base";
|
|
489
|
-
dev: "dev";
|
|
490
|
-
}>;
|
|
491
|
-
base: z.ZodString;
|
|
492
|
-
builtAt: z.ZodString;
|
|
493
|
-
branch: z.ZodNullable<z.ZodString>;
|
|
494
|
-
expiresAt: z.ZodString;
|
|
495
|
-
}, z.core.$strip>>;
|
|
496
|
-
devSnapshot: z.ZodNullable<z.ZodObject<{
|
|
269
|
+
atMergeBase: z.ZodNullable<z.ZodBoolean>;
|
|
270
|
+
snapshot: z.ZodObject<{
|
|
497
271
|
snapshotId: z.ZodString;
|
|
498
|
-
kind: z.ZodEnum<{
|
|
499
|
-
base: "base";
|
|
500
|
-
dev: "dev";
|
|
501
|
-
}>;
|
|
502
272
|
base: z.ZodString;
|
|
503
|
-
builtAt: z.ZodString;
|
|
504
|
-
branch: z.ZodNullable<z.ZodString>;
|
|
505
273
|
expiresAt: z.ZodString;
|
|
506
|
-
ms: z.ZodNumber;
|
|
507
|
-
sizeBytes: z.ZodNumber;
|
|
508
|
-
}, z.core.$strip>>;
|
|
509
|
-
dropped: z.ZodObject<{
|
|
510
|
-
snapshotIds: z.ZodArray<z.ZodString>;
|
|
511
|
-
failures: z.ZodArray<z.ZodString>;
|
|
512
274
|
}, z.core.$strip>;
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
recipe: "recipe";
|
|
516
|
-
}>>;
|
|
275
|
+
ms: z.ZodNumber;
|
|
276
|
+
sizeBytes: z.ZodNumber;
|
|
517
277
|
cleanup: z.ZodType<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts>>;
|
|
518
278
|
}, z.core.$strip>;
|
|
519
279
|
upToDate: z.ZodObject<{
|
|
@@ -524,22 +284,11 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
524
284
|
head: z.ZodString;
|
|
525
285
|
base: z.ZodString;
|
|
526
286
|
baseRef: z.ZodString;
|
|
527
|
-
noDevSnapshotReason: z.ZodNullable<z.ZodEnum<{
|
|
528
|
-
"base-only": "base-only";
|
|
529
|
-
"not-trusted": "not-trusted";
|
|
530
|
-
"reuse-off": "reuse-off";
|
|
531
|
-
}>>;
|
|
532
287
|
uncommitted: z.ZodNullable<z.ZodBoolean>;
|
|
533
|
-
|
|
288
|
+
atMergeBase: z.ZodNullable<z.ZodBoolean>;
|
|
534
289
|
snapshot: z.ZodObject<{
|
|
535
290
|
snapshotId: z.ZodString;
|
|
536
|
-
kind: z.ZodEnum<{
|
|
537
|
-
base: "base";
|
|
538
|
-
dev: "dev";
|
|
539
|
-
}>;
|
|
540
291
|
base: z.ZodString;
|
|
541
|
-
builtAt: z.ZodString;
|
|
542
|
-
branch: z.ZodNullable<z.ZodString>;
|
|
543
292
|
expiresAt: z.ZodString;
|
|
544
293
|
}, z.core.$strip>;
|
|
545
294
|
}, z.core.$strip>;
|
|
@@ -617,69 +366,17 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
617
366
|
};
|
|
618
367
|
cleanup: import("../../exec/cleanup.ts").StormCleanupFacts;
|
|
619
368
|
}]>;
|
|
620
|
-
snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
|
|
621
|
-
snapshotId: string;
|
|
622
|
-
base: string;
|
|
623
|
-
removal: {
|
|
624
|
-
path: string;
|
|
625
|
-
message: string;
|
|
626
|
-
} | null;
|
|
627
|
-
cleanup: import("../../exec/cleanup.ts").StormCleanupFacts;
|
|
628
|
-
}]>;
|
|
629
369
|
refNotFound: z.ZodObject<{
|
|
630
370
|
ref: z.ZodString;
|
|
631
371
|
}, z.core.$strip>;
|
|
632
|
-
devSnapshotNotSaved: z.ZodObject<{
|
|
633
|
-
step: z.ZodEnum<{
|
|
634
|
-
"save-snapshot": "save-snapshot";
|
|
635
|
-
scrub: "scrub";
|
|
636
|
-
}>;
|
|
637
|
-
message: z.ZodString;
|
|
638
|
-
baseSnapshot: z.ZodNullable<z.ZodObject<{
|
|
639
|
-
snapshotId: z.ZodString;
|
|
640
|
-
kind: z.ZodEnum<{
|
|
641
|
-
base: "base";
|
|
642
|
-
dev: "dev";
|
|
643
|
-
}>;
|
|
644
|
-
base: z.ZodString;
|
|
645
|
-
builtAt: z.ZodString;
|
|
646
|
-
branch: z.ZodNullable<z.ZodString>;
|
|
647
|
-
expiresAt: z.ZodString;
|
|
648
|
-
cached: z.ZodBoolean;
|
|
649
|
-
}, z.core.$strip>>;
|
|
650
|
-
cleanup: z.ZodType<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts>>;
|
|
651
|
-
}, z.core.$strip>;
|
|
652
372
|
snapshotNotCached: z.ZodObject<{
|
|
653
373
|
snapshot: z.ZodObject<{
|
|
654
374
|
snapshotId: z.ZodString;
|
|
655
|
-
kind: z.ZodEnum<{
|
|
656
|
-
base: "base";
|
|
657
|
-
dev: "dev";
|
|
658
|
-
}>;
|
|
659
375
|
base: z.ZodString;
|
|
660
|
-
builtAt: z.ZodString;
|
|
661
|
-
branch: z.ZodNullable<z.ZodString>;
|
|
662
376
|
expiresAt: z.ZodString;
|
|
663
377
|
}, z.core.$strip>;
|
|
664
378
|
path: z.ZodString;
|
|
665
379
|
message: z.ZodString;
|
|
666
|
-
baseSnapshot: z.ZodNullable<z.ZodObject<{
|
|
667
|
-
snapshotId: z.ZodString;
|
|
668
|
-
kind: z.ZodEnum<{
|
|
669
|
-
base: "base";
|
|
670
|
-
dev: "dev";
|
|
671
|
-
}>;
|
|
672
|
-
base: z.ZodString;
|
|
673
|
-
builtAt: z.ZodString;
|
|
674
|
-
branch: z.ZodNullable<z.ZodString>;
|
|
675
|
-
expiresAt: z.ZodString;
|
|
676
|
-
cached: z.ZodBoolean;
|
|
677
|
-
}, z.core.$strip>>;
|
|
678
|
-
full: z.ZodBoolean;
|
|
679
|
-
dropped: z.ZodNullable<z.ZodObject<{
|
|
680
|
-
snapshotIds: z.ZodArray<z.ZodString>;
|
|
681
|
-
failures: z.ZodArray<z.ZodString>;
|
|
682
|
-
}, z.core.$strip>>;
|
|
683
380
|
cleanup: z.ZodType<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts>>;
|
|
684
381
|
}, z.core.$strip>;
|
|
685
382
|
}, {
|
|
@@ -753,15 +450,6 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
753
450
|
};
|
|
754
451
|
cleanup: import("../../exec/cleanup.ts").StormCleanupFacts;
|
|
755
452
|
}]>;
|
|
756
|
-
readonly snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
|
|
757
|
-
snapshotId: string;
|
|
758
|
-
base: string;
|
|
759
|
-
removal: {
|
|
760
|
-
path: string;
|
|
761
|
-
message: string;
|
|
762
|
-
} | null;
|
|
763
|
-
cleanup: import("../../exec/cleanup.ts").StormCleanupFacts;
|
|
764
|
-
}]>;
|
|
765
453
|
readonly refNotFound: {
|
|
766
454
|
readonly exitCode: 1;
|
|
767
455
|
readonly description: "--base names no commit in this clone: storm resolves it from local refs only, and never fetches.";
|
|
@@ -778,112 +466,27 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
778
466
|
}[];
|
|
779
467
|
};
|
|
780
468
|
};
|
|
781
|
-
readonly devSnapshotNotSaved: {
|
|
782
|
-
readonly exitCode: 1;
|
|
783
|
-
readonly description: "It readied a runner sandbox for this checkout but couldn't save it as a dev snapshot: the scrub or the save failed. baseSnapshot names the base snapshot it built first, if any, and whether the cache holds it.";
|
|
784
|
-
readonly schema: z.ZodObject<{
|
|
785
|
-
step: z.ZodEnum<{
|
|
786
|
-
"save-snapshot": "save-snapshot";
|
|
787
|
-
scrub: "scrub";
|
|
788
|
-
}>;
|
|
789
|
-
message: z.ZodString;
|
|
790
|
-
baseSnapshot: z.ZodNullable<z.ZodObject<{
|
|
791
|
-
snapshotId: z.ZodString;
|
|
792
|
-
kind: z.ZodEnum<{
|
|
793
|
-
base: "base";
|
|
794
|
-
dev: "dev";
|
|
795
|
-
}>;
|
|
796
|
-
base: z.ZodString;
|
|
797
|
-
builtAt: z.ZodString;
|
|
798
|
-
branch: z.ZodNullable<z.ZodString>;
|
|
799
|
-
expiresAt: z.ZodString;
|
|
800
|
-
cached: z.ZodBoolean;
|
|
801
|
-
}, z.core.$strip>>;
|
|
802
|
-
cleanup: z.ZodType<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts>>;
|
|
803
|
-
}, z.core.$strip>;
|
|
804
|
-
readonly render: ({ step, message, baseSnapshot, cleanup, }: {
|
|
805
|
-
readonly step: string;
|
|
806
|
-
readonly message: string;
|
|
807
|
-
readonly baseSnapshot: {
|
|
808
|
-
snapshotId: string;
|
|
809
|
-
kind: "base" | "dev";
|
|
810
|
-
base: string;
|
|
811
|
-
builtAt: string;
|
|
812
|
-
branch: string | null;
|
|
813
|
-
expiresAt: string;
|
|
814
|
-
cached: boolean;
|
|
815
|
-
} | null;
|
|
816
|
-
readonly cleanup: z.output<typeof RUN_CLEANUP.schema>;
|
|
817
|
-
}) => {
|
|
818
|
-
message: string;
|
|
819
|
-
rows?: import("@vercel/clinkr").Row[];
|
|
820
|
-
next: {
|
|
821
|
-
type: "text";
|
|
822
|
-
text: string;
|
|
823
|
-
}[];
|
|
824
|
-
};
|
|
825
|
-
};
|
|
826
469
|
readonly snapshotNotCached: {
|
|
827
470
|
readonly exitCode: 1;
|
|
828
|
-
readonly description: "It
|
|
471
|
+
readonly description: "It built and saved the base snapshot, but couldn't write its cache entry, so no run finds it.";
|
|
829
472
|
readonly schema: z.ZodObject<{
|
|
830
473
|
snapshot: z.ZodObject<{
|
|
831
474
|
snapshotId: z.ZodString;
|
|
832
|
-
kind: z.ZodEnum<{
|
|
833
|
-
base: "base";
|
|
834
|
-
dev: "dev";
|
|
835
|
-
}>;
|
|
836
475
|
base: z.ZodString;
|
|
837
|
-
builtAt: z.ZodString;
|
|
838
|
-
branch: z.ZodNullable<z.ZodString>;
|
|
839
476
|
expiresAt: z.ZodString;
|
|
840
477
|
}, z.core.$strip>;
|
|
841
478
|
path: z.ZodString;
|
|
842
479
|
message: z.ZodString;
|
|
843
|
-
baseSnapshot: z.ZodNullable<z.ZodObject<{
|
|
844
|
-
snapshotId: z.ZodString;
|
|
845
|
-
kind: z.ZodEnum<{
|
|
846
|
-
base: "base";
|
|
847
|
-
dev: "dev";
|
|
848
|
-
}>;
|
|
849
|
-
base: z.ZodString;
|
|
850
|
-
builtAt: z.ZodString;
|
|
851
|
-
branch: z.ZodNullable<z.ZodString>;
|
|
852
|
-
expiresAt: z.ZodString;
|
|
853
|
-
cached: z.ZodBoolean;
|
|
854
|
-
}, z.core.$strip>>;
|
|
855
|
-
full: z.ZodBoolean;
|
|
856
|
-
dropped: z.ZodNullable<z.ZodObject<{
|
|
857
|
-
snapshotIds: z.ZodArray<z.ZodString>;
|
|
858
|
-
failures: z.ZodArray<z.ZodString>;
|
|
859
|
-
}, z.core.$strip>>;
|
|
860
480
|
cleanup: z.ZodType<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts>>;
|
|
861
481
|
}, z.core.$strip>;
|
|
862
482
|
readonly render: (facts: {
|
|
863
483
|
readonly snapshot: {
|
|
864
484
|
snapshotId: string;
|
|
865
|
-
kind: "base" | "dev";
|
|
866
485
|
base: string;
|
|
867
|
-
builtAt: string;
|
|
868
|
-
branch: string | null;
|
|
869
486
|
expiresAt: string;
|
|
870
487
|
};
|
|
871
488
|
readonly path: string;
|
|
872
489
|
readonly message: string;
|
|
873
|
-
readonly baseSnapshot: {
|
|
874
|
-
snapshotId: string;
|
|
875
|
-
kind: "base" | "dev";
|
|
876
|
-
base: string;
|
|
877
|
-
builtAt: string;
|
|
878
|
-
branch: string | null;
|
|
879
|
-
expiresAt: string;
|
|
880
|
-
cached: boolean;
|
|
881
|
-
} | null;
|
|
882
|
-
readonly full: boolean;
|
|
883
|
-
readonly dropped: z.output<z.ZodObject<{
|
|
884
|
-
snapshotIds: z.ZodArray<z.ZodString>;
|
|
885
|
-
failures: z.ZodArray<z.ZodString>;
|
|
886
|
-
}, z.core.$strip>> | null;
|
|
887
490
|
readonly cleanup: z.output<typeof RUN_CLEANUP.schema>;
|
|
888
491
|
}) => {
|
|
889
492
|
message: string;
|