@cnc-tools/storm 0.6.0 → 0.8.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/build-info.js +1 -1
- package/dist/commands/exec/cleanup.d.ts +3 -3
- package/dist/commands/exec/cleanup.js +1 -1
- package/dist/commands/exec/command.d.ts +797 -1
- package/dist/commands/exec/command.js +1 -1
- package/dist/commands/exec/live-view.js +32 -15
- package/dist/commands/exec/metadata.d.ts +5 -2
- package/dist/commands/exec/metadata.js +4 -0
- package/dist/commands/exec/mint-failed.d.ts +28 -0
- package/dist/commands/exec/outcomes.d.ts +526 -0
- package/dist/commands/exec/outcomes.js +9 -0
- package/dist/commands/exec/progress.d.ts +14 -2
- package/dist/commands/exec/progress.js +57 -14
- package/dist/commands/exec/run-command.d.ts +10 -4
- package/dist/commands/exec/run-command.js +41 -8
- package/dist/commands/exec/run-metadata.d.ts +6 -3
- package/dist/commands/exec/run-metadata.js +6 -3
- package/dist/commands/exec/run-record.d.ts +83 -4
- package/dist/commands/exec/run-record.js +49 -1
- package/dist/commands/exec/tests-summary.d.ts +1 -1
- package/dist/commands/exec/tests-summary.js +1 -1
- package/dist/commands/exec/view.js +36 -4
- package/dist/commands/runs/facts.d.ts +25 -0
- package/dist/commands/runs/facts.js +36 -3
- package/dist/commands/runs/list/command.d.ts +154 -1
- package/dist/commands/runs/list/command.js +1 -1
- package/dist/commands/runs/list/outcomes.d.ts +41 -0
- package/dist/commands/runs/logs/command.d.ts +263 -1
- package/dist/commands/runs/logs/command.js +1 -1
- package/dist/commands/runs/logs/outcomes.d.ts +105 -0
- package/dist/commands/runs/show/command.d.ts +354 -1
- package/dist/commands/runs/show/command.js +1 -1
- package/dist/commands/runs/show/metadata.js +1 -1
- package/dist/commands/runs/show/outcomes.d.ts +96 -0
- package/dist/commands/runs/show/outcomes.js +30 -1
- package/dist/commands/vitest/command.d.ts +912 -1
- package/dist/commands/vitest/command.js +1 -1
- package/dist/commands/vitest/metadata.d.ts +5 -2
- package/dist/commands/vitest/metadata.js +4 -0
- package/dist/commands/vitest/outcomes.d.ts +320 -0
- package/dist/config/errors.d.ts +73 -0
- package/dist/config/schema.d.ts +1 -1
- package/dist/config-file/define.d.ts +4 -3
- package/dist/config-file/define.js +1 -1
- package/dist/config-file/toolchain.js +1 -1
- package/dist/core/command-slots.d.ts +8 -2
- package/dist/core/command-slots.js +6 -2
- package/dist/core/events.d.ts +9 -7
- package/dist/core/index.d.ts +1 -1
- package/dist/core/run-state.d.ts +30 -6
- package/dist/core/run-state.js +19 -4
- package/dist/core/run.d.ts +17 -4
- package/dist/core/run.js +61 -25
- package/dist/credential/index.d.ts +1 -0
- package/dist/credential/index.js +1 -0
- package/dist/credential/settle.d.ts +20 -0
- package/dist/credential/target.d.ts +6 -0
- package/dist/credential/target.js +7 -0
- package/dist/resources/github/command.d.ts +54 -2
- package/dist/resources/github/config.js +1 -1
- package/dist/resources/github/index.js +1 -1
- package/dist/resources/github/resource.js +2 -2
- package/dist/resources/testserver/command.d.ts +208 -10
- package/dist/resources/testserver/command.js +7 -0
- package/dist/resources/testserver/commands/create/command.d.ts +808 -1
- package/dist/resources/testserver/commands/create/command.js +64 -23
- package/dist/resources/testserver/commands/create/metadata.js +6 -2
- package/dist/resources/testserver/commands/create/outcomes.d.ts +347 -0
- package/dist/resources/testserver/commands/create/outcomes.js +14 -1
- package/dist/resources/testserver/commands/list/command.d.ts +84 -1
- package/dist/resources/testserver/commands/list/command.js +1 -1
- package/dist/resources/testserver/commands/list/outcomes.d.ts +16 -0
- package/dist/resources/testserver/config.js +14 -4
- package/dist/resources/testserver/events.d.ts +9 -0
- package/dist/resources/testserver/index.js +8 -7
- package/dist/resources/testserver/lane.js +1 -0
- package/dist/resources/testserver/live/gateways.d.ts +2 -0
- package/dist/resources/testserver/live/gateways.js +16 -3
- package/dist/resources/testserver/pool/channels.d.ts +5 -2
- package/dist/resources/testserver/pool/channels.js +1 -1
- package/dist/resources/testserver/pool/create.d.ts +6 -2
- package/dist/resources/testserver/pool/create.js +6 -5
- package/dist/resources/testserver/pool/index.d.ts +1 -0
- package/dist/resources/testserver/pool/index.js +1 -0
- package/dist/resources/testserver/pool/pull-request.d.ts +89 -0
- package/dist/resources/testserver/pool/pull-request.js +85 -0
- package/dist/resources/testserver/pr-build-facts.d.ts +130 -0
- package/dist/resources/testserver/pr-build-facts.js +261 -0
- package/dist/resources/testserver/presentation.d.ts +2 -2
- package/dist/resources/testserver/presentation.js +12 -3
- package/dist/resources/testserver/provider.d.ts +16 -6
- package/dist/resources/testserver/provider.js +46 -15
- package/dist/resources/testserver/pull-request/gateways.d.ts +117 -0
- package/dist/resources/testserver/pull-request/gateways.js +5 -0
- package/dist/resources/testserver/pull-request/index.d.ts +5 -0
- package/dist/resources/testserver/pull-request/index.js +6 -0
- package/dist/resources/testserver/pull-request/live/github-rest.d.ts +28 -0
- package/dist/resources/testserver/pull-request/live/github-rest.js +114 -0
- package/dist/resources/testserver/pull-request/live/github-token-gateway.d.ts +12 -0
- package/dist/resources/testserver/pull-request/live/github-token-gateway.js +39 -0
- package/dist/resources/testserver/pull-request/live/pull-request-gateway.d.ts +10 -0
- package/dist/resources/testserver/pull-request/live/pull-request-gateway.js +27 -0
- package/dist/resources/testserver/pull-request/live/testserver-workflow-gateway.d.ts +21 -0
- package/dist/resources/testserver/pull-request/live/testserver-workflow-gateway.js +64 -0
- package/dist/resources/testserver/ran.d.ts +5 -0
- package/dist/resources/testserver/ran.js +19 -3
- package/dist/resources/testserver/resource.d.ts +5 -1
- package/dist/resources/testserver/resource.js +2 -2
- package/dist/resources/testserver/sandbox/build-reference.d.ts +38 -0
- package/dist/resources/testserver/sandbox/build-reference.js +79 -0
- package/dist/resources/testserver/sandbox/index.d.ts +1 -0
- package/dist/resources/testserver/sandbox/index.js +1 -0
- package/dist/resources.d.ts +265 -15
- package/dist/runner/events.d.ts +64 -1
- package/dist/runner/gateways.d.ts +17 -6
- package/dist/runner/index.d.ts +5 -4
- package/dist/runner/index.js +4 -3
- package/dist/runner/live/snapshot-records.js +18 -4
- package/dist/runner/prepare.d.ts +23 -4
- package/dist/runner/prepare.js +13 -3
- package/dist/runner/ready.d.ts +7 -3
- package/dist/runner/ready.js +11 -5
- package/dist/runner/scope.d.ts +17 -1
- package/dist/runner/scope.js +4 -0
- package/dist/runner/snapshot-build.d.ts +3 -1
- package/dist/runner/snapshot-build.js +12 -2
- package/dist/runner/snapshot-cache.d.ts +46 -8
- package/dist/runner/snapshot-cache.js +60 -11
- package/dist/runner/snapshot-key.d.ts +12 -1
- package/dist/runner/snapshot-key.js +17 -1
- package/dist/runner/snapshot-save.d.ts +53 -0
- package/dist/runner/snapshot-save.js +148 -0
- package/dist/sdk/index.js +2 -2
- package/dist/story/align.d.ts +1 -1
- package/dist/story/align.js +1 -1
- package/dist/story/command-line.d.ts +34 -0
- package/dist/story/command-line.js +100 -0
- package/dist/story/definition.d.ts +22 -15
- package/dist/story/definition.js +2 -2
- package/dist/story/errors.js +1 -1
- package/dist/story/gateways.d.ts +45 -25
- package/dist/story/gateways.js +2 -2
- package/dist/story/host.d.ts +11 -8
- package/dist/story/host.js +37 -37
- package/dist/story/index.d.ts +2 -1
- package/dist/story/index.js +6 -5
- package/dist/story/json.d.ts +1 -1
- package/dist/story/json.js +2 -2
- package/dist/story/live/recording-gateway.d.ts +2 -0
- package/dist/story/live/{artifact-gateway.js → recording-gateway.js} +33 -12
- package/dist/story/mode.d.ts +2 -2
- package/dist/story/mode.js +1 -1
- package/dist/story/orphans.d.ts +23 -5
- package/dist/story/orphans.js +44 -8
- package/dist/story/recording.d.ts +62 -0
- package/dist/story/{artifact.js → recording.js} +31 -27
- package/dist/story/report.d.ts +21 -9
- package/dist/story/report.js +37 -25
- package/dist/story/settle.d.ts +23 -21
- package/dist/story/settle.js +17 -16
- package/dist/story/{run.d.ts → start.d.ts} +18 -17
- package/dist/story/{run.js → start.js} +66 -43
- package/dist/vercel-cli/context.js +1 -1
- package/dist/vercel-cli/index.js +1 -1
- package/dist/vitest/config.js +2 -2
- package/dist/vitest/fixtures.d.ts +1 -1
- package/dist/vitest/fixtures.js +1 -1
- package/dist/vitest/index.js +3 -3
- package/dist/vitest/plan.js +1 -1
- package/package.json +3 -3
- package/skills/overview.md +2 -0
- package/skills/testserver-builds.md +80 -0
- package/dist/story/artifact.d.ts +0 -60
- package/dist/story/live/artifact-gateway.d.ts +0 -2
|
@@ -22,6 +22,7 @@ export declare function command(cmd: CommandBuilder<StormApp>): import("@vercel/
|
|
|
22
22
|
}>>;
|
|
23
23
|
local: z.ZodDefault<z.ZodBoolean>;
|
|
24
24
|
rebuildSnapshot: z.ZodDefault<z.ZodBoolean>;
|
|
25
|
+
saveSnapshot: z.ZodDefault<z.ZodBoolean>;
|
|
25
26
|
showOutput: z.ZodDefault<z.ZodBoolean>;
|
|
26
27
|
keepSandbox: z.ZodOptional<z.ZodString>;
|
|
27
28
|
verbose: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -40,10 +41,625 @@ export declare function command(cmd: CommandBuilder<StormApp>): import("@vercel/
|
|
|
40
41
|
runner: z.ZodNullable<z.ZodObject<{
|
|
41
42
|
snapshotId: z.ZodString;
|
|
42
43
|
base: z.ZodString;
|
|
44
|
+
snapshotBranch: z.ZodNullable<z.ZodString>;
|
|
45
|
+
snapshotHead: z.ZodNullable<z.ZodString>;
|
|
43
46
|
built: z.ZodBoolean;
|
|
44
47
|
vcpus: z.ZodNumber;
|
|
45
48
|
region: z.ZodString;
|
|
46
49
|
runtime: z.ZodString;
|
|
50
|
+
buildMs: z.ZodNumber;
|
|
51
|
+
save: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
52
|
+
kind: z.ZodLiteral<"saved">;
|
|
53
|
+
snapshotId: z.ZodString;
|
|
54
|
+
base: z.ZodString;
|
|
55
|
+
branch: z.ZodString;
|
|
56
|
+
head: z.ZodString;
|
|
57
|
+
ms: z.ZodNumber;
|
|
58
|
+
sizeBytes: z.ZodNumber;
|
|
59
|
+
entryWritten: z.ZodBoolean;
|
|
60
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
+
kind: z.ZodLiteral<"skipped">;
|
|
62
|
+
reason: z.ZodLiteral<"detached-head">;
|
|
63
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
64
|
+
kind: z.ZodLiteral<"failed">;
|
|
65
|
+
step: z.ZodEnum<{
|
|
66
|
+
"save-snapshot": "save-snapshot";
|
|
67
|
+
scrub: "scrub";
|
|
68
|
+
}>;
|
|
69
|
+
message: z.ZodString;
|
|
70
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
71
|
+
kind: z.ZodLiteral<"stopped">;
|
|
72
|
+
}, z.core.$strip>], "kind">>;
|
|
73
|
+
}, z.core.$strip>>;
|
|
74
|
+
timeline: z.ZodObject<{
|
|
75
|
+
startedAt: z.ZodString;
|
|
76
|
+
totalMs: z.ZodNumber;
|
|
77
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
78
|
+
name: z.ZodEnum<{
|
|
79
|
+
cleanup: "cleanup";
|
|
80
|
+
mint: "mint";
|
|
81
|
+
runner: "runner";
|
|
82
|
+
tests: "tests";
|
|
83
|
+
testserver: "testserver";
|
|
84
|
+
}>;
|
|
85
|
+
startMs: z.ZodNumber;
|
|
86
|
+
endMs: z.ZodNumber;
|
|
87
|
+
outcome: z.ZodEnum<{
|
|
88
|
+
done: "done";
|
|
89
|
+
failed: "failed";
|
|
90
|
+
stopped: "stopped";
|
|
91
|
+
unfinished: "unfinished";
|
|
92
|
+
}>;
|
|
93
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
94
|
+
name: z.ZodEnum<{
|
|
95
|
+
[x: string]: string;
|
|
96
|
+
}>;
|
|
97
|
+
startMs: z.ZodNumber;
|
|
98
|
+
endMs: z.ZodNumber;
|
|
99
|
+
outcome: z.ZodEnum<{
|
|
100
|
+
done: "done";
|
|
101
|
+
failed: "failed";
|
|
102
|
+
stopped: "stopped";
|
|
103
|
+
unfinished: "unfinished";
|
|
104
|
+
}>;
|
|
105
|
+
}, z.core.$strip>>;
|
|
106
|
+
idleMs: z.ZodNumber;
|
|
107
|
+
snapshot: z.ZodOptional<z.ZodEnum<{
|
|
108
|
+
built: "built";
|
|
109
|
+
reused: "reused";
|
|
110
|
+
}>>;
|
|
111
|
+
sandboxes: z.ZodOptional<z.ZodObject<{
|
|
112
|
+
reused: z.ZodNumber;
|
|
113
|
+
created: z.ZodNumber;
|
|
114
|
+
}, z.core.$strip>>;
|
|
115
|
+
}, z.core.$strip>>;
|
|
116
|
+
criticalPath: z.ZodArray<z.ZodEnum<{
|
|
117
|
+
cleanup: "cleanup";
|
|
118
|
+
mint: "mint";
|
|
119
|
+
runner: "runner";
|
|
120
|
+
tests: "tests";
|
|
121
|
+
testserver: "testserver";
|
|
122
|
+
}>>;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
125
|
+
plan: z.ZodObject<{
|
|
126
|
+
tests: z.ZodNumber;
|
|
127
|
+
files: z.ZodNumber;
|
|
128
|
+
sandboxes: z.ZodNullable<z.ZodNumber>;
|
|
129
|
+
sandboxesFrom: z.ZodNullable<z.ZodEnum<{
|
|
130
|
+
auto: "auto";
|
|
131
|
+
file: "file";
|
|
132
|
+
flag: "flag";
|
|
133
|
+
}>>;
|
|
134
|
+
}, z.core.$strip>;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
}, {
|
|
137
|
+
ran: unknown;
|
|
138
|
+
}, {
|
|
139
|
+
noMatchingTests: z.ZodObject<{
|
|
140
|
+
args: z.ZodArray<z.ZodString>;
|
|
141
|
+
cwd: z.ZodString;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
vitestListFailed: z.ZodObject<{
|
|
144
|
+
args: z.ZodArray<z.ZodString>;
|
|
145
|
+
cwd: z.ZodString;
|
|
146
|
+
kind: z.ZodEnum<{
|
|
147
|
+
exited: "exited";
|
|
148
|
+
"start-failed": "start-failed";
|
|
149
|
+
"timed-out": "timed-out";
|
|
150
|
+
"unreadable-output": "unreadable-output";
|
|
151
|
+
}>;
|
|
152
|
+
message: z.ZodString;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
credentialRejected: import("@vercel/clinkr").SharedError<"credential_rejected", [{
|
|
155
|
+
origin: {
|
|
156
|
+
source: "mint";
|
|
157
|
+
team: string;
|
|
158
|
+
project: string;
|
|
159
|
+
} | {
|
|
160
|
+
source: "github-actions";
|
|
161
|
+
claims: {
|
|
162
|
+
aud: string;
|
|
163
|
+
repository: string;
|
|
164
|
+
} | null;
|
|
165
|
+
};
|
|
166
|
+
fix: string;
|
|
167
|
+
status: number;
|
|
168
|
+
vercelId: string | null;
|
|
169
|
+
ttlMinutes: number;
|
|
170
|
+
failedCreates: {
|
|
171
|
+
kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
|
|
172
|
+
detail: string | null;
|
|
173
|
+
}[];
|
|
174
|
+
unpooled: {
|
|
175
|
+
testserverUrl: string;
|
|
176
|
+
path: string;
|
|
177
|
+
message: string;
|
|
178
|
+
}[];
|
|
179
|
+
sandboxMayExist: boolean;
|
|
180
|
+
} & {
|
|
181
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
182
|
+
}]>;
|
|
183
|
+
credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
|
|
184
|
+
flags: string[];
|
|
185
|
+
configFile: string | null;
|
|
186
|
+
}]>;
|
|
187
|
+
githubFixtureRepoUnavailable: import("@vercel/clinkr").SharedError<"github_fixture_repo_unavailable", [{
|
|
188
|
+
repo: string;
|
|
189
|
+
status: number | null;
|
|
190
|
+
message: string;
|
|
191
|
+
} & {
|
|
192
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
193
|
+
}]>;
|
|
194
|
+
githubTokenMissing: import("@vercel/clinkr").SharedError<"github_token_missing", [data: {
|
|
195
|
+
tokenEnv: string;
|
|
196
|
+
repo: string;
|
|
197
|
+
configFile: string | null;
|
|
198
|
+
requiredBy: "config" | "set";
|
|
199
|
+
}]>;
|
|
200
|
+
invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
|
|
201
|
+
file: string;
|
|
202
|
+
problems: {
|
|
203
|
+
key: string | null;
|
|
204
|
+
location: {
|
|
205
|
+
line: number;
|
|
206
|
+
column: number | null;
|
|
207
|
+
} | null;
|
|
208
|
+
problem: string;
|
|
209
|
+
}[];
|
|
210
|
+
}]>;
|
|
211
|
+
invalidResourceOptions: import("@vercel/clinkr").SharedError<"invalid_resource_options", [data: {
|
|
212
|
+
configFile: string | null;
|
|
213
|
+
problems: {
|
|
214
|
+
key: string;
|
|
215
|
+
problem: string;
|
|
216
|
+
values: {
|
|
217
|
+
key: string;
|
|
218
|
+
value: string;
|
|
219
|
+
source: "default" | "file" | "flag";
|
|
220
|
+
}[];
|
|
221
|
+
}[];
|
|
222
|
+
}]>;
|
|
223
|
+
mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
|
|
224
|
+
team: string;
|
|
225
|
+
project: string;
|
|
226
|
+
cause: string;
|
|
227
|
+
fix: string;
|
|
228
|
+
runner: boolean;
|
|
229
|
+
cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
230
|
+
}]>;
|
|
231
|
+
missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
|
|
232
|
+
configFile: string | null;
|
|
233
|
+
}]>;
|
|
234
|
+
missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
|
|
235
|
+
missing: ("project" | "scope")[];
|
|
236
|
+
}]>;
|
|
237
|
+
noBaseRef: import("@vercel/clinkr").SharedError<"no_base_ref", [data: {
|
|
238
|
+
refs: {
|
|
239
|
+
ref: string;
|
|
240
|
+
reason: "missing" | "unrelated";
|
|
241
|
+
}[];
|
|
242
|
+
}]>;
|
|
243
|
+
noSandboxes: import("@vercel/clinkr").SharedError<"no_sandboxes", [{
|
|
244
|
+
requested: number;
|
|
245
|
+
ttlMinutes: number;
|
|
246
|
+
failedCreates: {
|
|
247
|
+
kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
|
|
248
|
+
detail: string | null;
|
|
249
|
+
}[];
|
|
250
|
+
sandboxMayExist: boolean;
|
|
251
|
+
} & {
|
|
252
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
253
|
+
}]>;
|
|
254
|
+
noUsableSandboxes: import("@vercel/clinkr").SharedError<"no_usable_sandboxes", [{
|
|
255
|
+
requested: number;
|
|
256
|
+
build: string;
|
|
257
|
+
} & {
|
|
258
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
259
|
+
}]>;
|
|
260
|
+
poolUnavailable: import("@vercel/clinkr").SharedError<"pool_unavailable", [data: {
|
|
261
|
+
path: string;
|
|
262
|
+
message: string;
|
|
263
|
+
}]>;
|
|
264
|
+
poolUnreadable: import("@vercel/clinkr").SharedError<"pool_unreadable", [{
|
|
265
|
+
path: string;
|
|
266
|
+
message: string;
|
|
267
|
+
} & {
|
|
268
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
269
|
+
}]>;
|
|
270
|
+
prBuildExpired: import("@vercel/clinkr").SharedError<"pr_build_expired", [{
|
|
271
|
+
pr: number;
|
|
272
|
+
headSha: string;
|
|
273
|
+
build: string;
|
|
274
|
+
expiresAt: string;
|
|
275
|
+
} & {
|
|
276
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
277
|
+
}]>;
|
|
278
|
+
prBuildNotReady: import("@vercel/clinkr").SharedError<"pr_build_not_ready", [{
|
|
279
|
+
pr: number;
|
|
280
|
+
headSha: string;
|
|
281
|
+
newest: {
|
|
282
|
+
build: string;
|
|
283
|
+
headSha: string;
|
|
284
|
+
createdAt: string;
|
|
285
|
+
} | null;
|
|
286
|
+
} & {
|
|
287
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
288
|
+
}]>;
|
|
289
|
+
prBuildsUnlisted: import("@vercel/clinkr").SharedError<"pr_builds_unlisted", [{
|
|
290
|
+
pr: number;
|
|
291
|
+
failure: {
|
|
292
|
+
kind: "connect-failed" | "http-error" | "malformed" | "not-found" | "rejected" | "timeout";
|
|
293
|
+
status: number | null;
|
|
294
|
+
detail: string;
|
|
295
|
+
};
|
|
296
|
+
} & {
|
|
297
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
298
|
+
}]>;
|
|
299
|
+
pullRequestUnreadable: import("@vercel/clinkr").SharedError<"pull_request_unreadable", [{
|
|
300
|
+
pr: number;
|
|
301
|
+
repo: string;
|
|
302
|
+
kind: "connect-failed" | "http-error" | "malformed" | "no-token" | "not-found" | "rejected" | "timeout";
|
|
303
|
+
status: number | null;
|
|
304
|
+
message: string | null;
|
|
305
|
+
tokenOrigin: "GH_TOKEN" | "GITHUB_TOKEN" | "gh auth token" | null;
|
|
306
|
+
} & {
|
|
307
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
308
|
+
}]>;
|
|
309
|
+
runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
|
|
310
|
+
failure: {
|
|
311
|
+
kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
|
|
312
|
+
label: string;
|
|
313
|
+
exitCode: number | null;
|
|
314
|
+
tail: string[];
|
|
315
|
+
} | {
|
|
316
|
+
kind: "sandbox-api-failed";
|
|
317
|
+
operation: string;
|
|
318
|
+
status: number | null;
|
|
319
|
+
message: string;
|
|
320
|
+
} | {
|
|
321
|
+
kind: "checkout-failed";
|
|
322
|
+
message: string;
|
|
323
|
+
command: string | null;
|
|
324
|
+
} | {
|
|
325
|
+
kind: "credential-claims-missing";
|
|
326
|
+
team: string;
|
|
327
|
+
project: string;
|
|
328
|
+
};
|
|
329
|
+
cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
330
|
+
}]>;
|
|
331
|
+
snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
|
|
332
|
+
snapshotId: string;
|
|
333
|
+
base: string;
|
|
334
|
+
removal: {
|
|
335
|
+
path: string;
|
|
336
|
+
message: string;
|
|
337
|
+
} | null;
|
|
338
|
+
cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
339
|
+
}]>;
|
|
340
|
+
spawnFailed: import("@vercel/clinkr").SharedError<"spawn_failed", [data: {
|
|
341
|
+
executable: string;
|
|
342
|
+
message: string;
|
|
343
|
+
cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
344
|
+
}]>;
|
|
345
|
+
submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
|
|
346
|
+
paths: string[];
|
|
347
|
+
}]>;
|
|
348
|
+
tokenRequestFailed: import("@vercel/clinkr").SharedError<"token_request_failed", [{
|
|
349
|
+
cause: "request-failed" | "variables-missing";
|
|
350
|
+
missing: ("ACTIONS_ID_TOKEN_REQUEST_TOKEN" | "ACTIONS_ID_TOKEN_REQUEST_URL")[] | null;
|
|
351
|
+
status: number | null;
|
|
352
|
+
said: string | null;
|
|
353
|
+
detail: string;
|
|
354
|
+
fix: string;
|
|
355
|
+
ttlMinutes: number;
|
|
356
|
+
failedCreates: {
|
|
357
|
+
kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
|
|
358
|
+
detail: string | null;
|
|
359
|
+
}[];
|
|
360
|
+
sandboxMayExist: boolean;
|
|
361
|
+
} & {
|
|
362
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
363
|
+
}]>;
|
|
364
|
+
}, {
|
|
365
|
+
readonly noMatchingTests: {
|
|
366
|
+
readonly exitCode: 1;
|
|
367
|
+
readonly description: "vitest list found no test for the arguments given to vitest run, so nothing was minted, leased or started.";
|
|
368
|
+
readonly schema: z.ZodObject<{
|
|
369
|
+
args: z.ZodArray<z.ZodString>;
|
|
370
|
+
cwd: z.ZodString;
|
|
371
|
+
}, z.core.$strip>;
|
|
372
|
+
readonly render: ({ args, cwd }: {
|
|
373
|
+
args: string[];
|
|
374
|
+
cwd: string;
|
|
375
|
+
}) => {
|
|
376
|
+
message: string;
|
|
377
|
+
next: {
|
|
378
|
+
type: "text";
|
|
379
|
+
text: string;
|
|
380
|
+
}[];
|
|
381
|
+
};
|
|
382
|
+
};
|
|
383
|
+
readonly vitestListFailed: {
|
|
384
|
+
readonly exitCode: 1;
|
|
385
|
+
readonly description: "storm couldn't count the tests before the run: vitest wasn't found or failed to start, didn't finish within 60s, exited other than 0, or printed something other than a list of tests. Nothing was minted, leased or started.";
|
|
386
|
+
readonly schema: z.ZodObject<{
|
|
387
|
+
args: z.ZodArray<z.ZodString>;
|
|
388
|
+
cwd: z.ZodString;
|
|
389
|
+
kind: z.ZodEnum<{
|
|
390
|
+
exited: "exited";
|
|
391
|
+
"start-failed": "start-failed";
|
|
392
|
+
"timed-out": "timed-out";
|
|
393
|
+
"unreadable-output": "unreadable-output";
|
|
394
|
+
}>;
|
|
395
|
+
message: z.ZodString;
|
|
396
|
+
}, z.core.$strip>;
|
|
397
|
+
readonly render: ({ kind, message, cwd }: {
|
|
398
|
+
args: string[];
|
|
399
|
+
cwd: string;
|
|
400
|
+
kind: "exited" | "start-failed" | "timed-out" | "unreadable-output";
|
|
401
|
+
message: string;
|
|
402
|
+
}) => {
|
|
403
|
+
message: string;
|
|
404
|
+
next: {
|
|
405
|
+
type: "text";
|
|
406
|
+
text: "Check that the package's vitest prints its list with --json, then retry." | "Check why vitest list doesn't finish, such as a global setup that waits, then retry." | "Fix what vitest list reports, then retry. vitest list takes the arguments vitest run does, but refuses some run-only options." | "Install vitest in the package, or run the command with storm exec, which counts nothing.";
|
|
407
|
+
}[];
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
readonly credentialRejected: import("@vercel/clinkr").SharedError<"credential_rejected", [{
|
|
411
|
+
origin: {
|
|
412
|
+
source: "mint";
|
|
413
|
+
team: string;
|
|
414
|
+
project: string;
|
|
415
|
+
} | {
|
|
416
|
+
source: "github-actions";
|
|
417
|
+
claims: {
|
|
418
|
+
aud: string;
|
|
419
|
+
repository: string;
|
|
420
|
+
} | null;
|
|
421
|
+
};
|
|
422
|
+
fix: string;
|
|
423
|
+
status: number;
|
|
424
|
+
vercelId: string | null;
|
|
425
|
+
ttlMinutes: number;
|
|
426
|
+
failedCreates: {
|
|
427
|
+
kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
|
|
428
|
+
detail: string | null;
|
|
429
|
+
}[];
|
|
430
|
+
unpooled: {
|
|
431
|
+
testserverUrl: string;
|
|
432
|
+
path: string;
|
|
433
|
+
message: string;
|
|
434
|
+
}[];
|
|
435
|
+
sandboxMayExist: boolean;
|
|
436
|
+
} & {
|
|
437
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
438
|
+
}]>;
|
|
439
|
+
readonly credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
|
|
440
|
+
flags: string[];
|
|
441
|
+
configFile: string | null;
|
|
442
|
+
}]>;
|
|
443
|
+
readonly githubFixtureRepoUnavailable: import("@vercel/clinkr").SharedError<"github_fixture_repo_unavailable", [{
|
|
444
|
+
repo: string;
|
|
445
|
+
status: number | null;
|
|
446
|
+
message: string;
|
|
447
|
+
} & {
|
|
448
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
449
|
+
}]>;
|
|
450
|
+
readonly githubTokenMissing: import("@vercel/clinkr").SharedError<"github_token_missing", [data: {
|
|
451
|
+
tokenEnv: string;
|
|
452
|
+
repo: string;
|
|
453
|
+
configFile: string | null;
|
|
454
|
+
requiredBy: "config" | "set";
|
|
455
|
+
}]>;
|
|
456
|
+
readonly invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
|
|
457
|
+
file: string;
|
|
458
|
+
problems: {
|
|
459
|
+
key: string | null;
|
|
460
|
+
location: {
|
|
461
|
+
line: number;
|
|
462
|
+
column: number | null;
|
|
463
|
+
} | null;
|
|
464
|
+
problem: string;
|
|
465
|
+
}[];
|
|
466
|
+
}]>;
|
|
467
|
+
readonly invalidResourceOptions: import("@vercel/clinkr").SharedError<"invalid_resource_options", [data: {
|
|
468
|
+
configFile: string | null;
|
|
469
|
+
problems: {
|
|
470
|
+
key: string;
|
|
471
|
+
problem: string;
|
|
472
|
+
values: {
|
|
473
|
+
key: string;
|
|
474
|
+
value: string;
|
|
475
|
+
source: "default" | "file" | "flag";
|
|
476
|
+
}[];
|
|
477
|
+
}[];
|
|
478
|
+
}]>;
|
|
479
|
+
readonly mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
|
|
480
|
+
team: string;
|
|
481
|
+
project: string;
|
|
482
|
+
cause: string;
|
|
483
|
+
fix: string;
|
|
484
|
+
runner: boolean;
|
|
485
|
+
cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
486
|
+
}]>;
|
|
487
|
+
readonly missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
|
|
488
|
+
configFile: string | null;
|
|
489
|
+
}]>;
|
|
490
|
+
readonly missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
|
|
491
|
+
missing: ("project" | "scope")[];
|
|
492
|
+
}]>;
|
|
493
|
+
readonly noBaseRef: import("@vercel/clinkr").SharedError<"no_base_ref", [data: {
|
|
494
|
+
refs: {
|
|
495
|
+
ref: string;
|
|
496
|
+
reason: "missing" | "unrelated";
|
|
497
|
+
}[];
|
|
498
|
+
}]>;
|
|
499
|
+
readonly noSandboxes: import("@vercel/clinkr").SharedError<"no_sandboxes", [{
|
|
500
|
+
requested: number;
|
|
501
|
+
ttlMinutes: number;
|
|
502
|
+
failedCreates: {
|
|
503
|
+
kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
|
|
504
|
+
detail: string | null;
|
|
505
|
+
}[];
|
|
506
|
+
sandboxMayExist: boolean;
|
|
507
|
+
} & {
|
|
508
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
509
|
+
}]>;
|
|
510
|
+
readonly noUsableSandboxes: import("@vercel/clinkr").SharedError<"no_usable_sandboxes", [{
|
|
511
|
+
requested: number;
|
|
512
|
+
build: string;
|
|
513
|
+
} & {
|
|
514
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
515
|
+
}]>;
|
|
516
|
+
readonly poolUnavailable: import("@vercel/clinkr").SharedError<"pool_unavailable", [data: {
|
|
517
|
+
path: string;
|
|
518
|
+
message: string;
|
|
519
|
+
}]>;
|
|
520
|
+
readonly poolUnreadable: import("@vercel/clinkr").SharedError<"pool_unreadable", [{
|
|
521
|
+
path: string;
|
|
522
|
+
message: string;
|
|
523
|
+
} & {
|
|
524
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
525
|
+
}]>;
|
|
526
|
+
readonly prBuildExpired: import("@vercel/clinkr").SharedError<"pr_build_expired", [{
|
|
527
|
+
pr: number;
|
|
528
|
+
headSha: string;
|
|
529
|
+
build: string;
|
|
530
|
+
expiresAt: string;
|
|
531
|
+
} & {
|
|
532
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
533
|
+
}]>;
|
|
534
|
+
readonly prBuildNotReady: import("@vercel/clinkr").SharedError<"pr_build_not_ready", [{
|
|
535
|
+
pr: number;
|
|
536
|
+
headSha: string;
|
|
537
|
+
newest: {
|
|
538
|
+
build: string;
|
|
539
|
+
headSha: string;
|
|
540
|
+
createdAt: string;
|
|
541
|
+
} | null;
|
|
542
|
+
} & {
|
|
543
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
544
|
+
}]>;
|
|
545
|
+
readonly prBuildsUnlisted: import("@vercel/clinkr").SharedError<"pr_builds_unlisted", [{
|
|
546
|
+
pr: number;
|
|
547
|
+
failure: {
|
|
548
|
+
kind: "connect-failed" | "http-error" | "malformed" | "not-found" | "rejected" | "timeout";
|
|
549
|
+
status: number | null;
|
|
550
|
+
detail: string;
|
|
551
|
+
};
|
|
552
|
+
} & {
|
|
553
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
554
|
+
}]>;
|
|
555
|
+
readonly pullRequestUnreadable: import("@vercel/clinkr").SharedError<"pull_request_unreadable", [{
|
|
556
|
+
pr: number;
|
|
557
|
+
repo: string;
|
|
558
|
+
kind: "connect-failed" | "http-error" | "malformed" | "no-token" | "not-found" | "rejected" | "timeout";
|
|
559
|
+
status: number | null;
|
|
560
|
+
message: string | null;
|
|
561
|
+
tokenOrigin: "GH_TOKEN" | "GITHUB_TOKEN" | "gh auth token" | null;
|
|
562
|
+
} & {
|
|
563
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
564
|
+
}]>;
|
|
565
|
+
readonly runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
|
|
566
|
+
failure: {
|
|
567
|
+
kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
|
|
568
|
+
label: string;
|
|
569
|
+
exitCode: number | null;
|
|
570
|
+
tail: string[];
|
|
571
|
+
} | {
|
|
572
|
+
kind: "sandbox-api-failed";
|
|
573
|
+
operation: string;
|
|
574
|
+
status: number | null;
|
|
575
|
+
message: string;
|
|
576
|
+
} | {
|
|
577
|
+
kind: "checkout-failed";
|
|
578
|
+
message: string;
|
|
579
|
+
command: string | null;
|
|
580
|
+
} | {
|
|
581
|
+
kind: "credential-claims-missing";
|
|
582
|
+
team: string;
|
|
583
|
+
project: string;
|
|
584
|
+
};
|
|
585
|
+
cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
586
|
+
}]>;
|
|
587
|
+
readonly snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
|
|
588
|
+
snapshotId: string;
|
|
589
|
+
base: string;
|
|
590
|
+
removal: {
|
|
591
|
+
path: string;
|
|
592
|
+
message: string;
|
|
593
|
+
} | null;
|
|
594
|
+
cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
595
|
+
}]>;
|
|
596
|
+
readonly spawnFailed: import("@vercel/clinkr").SharedError<"spawn_failed", [data: {
|
|
597
|
+
executable: string;
|
|
598
|
+
message: string;
|
|
599
|
+
cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
600
|
+
}]>;
|
|
601
|
+
readonly submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
|
|
602
|
+
paths: string[];
|
|
603
|
+
}]>;
|
|
604
|
+
readonly tokenRequestFailed: import("@vercel/clinkr").SharedError<"token_request_failed", [{
|
|
605
|
+
cause: "request-failed" | "variables-missing";
|
|
606
|
+
missing: ("ACTIONS_ID_TOKEN_REQUEST_TOKEN" | "ACTIONS_ID_TOKEN_REQUEST_URL")[] | null;
|
|
607
|
+
status: number | null;
|
|
608
|
+
said: string | null;
|
|
609
|
+
detail: string;
|
|
610
|
+
fix: string;
|
|
611
|
+
ttlMinutes: number;
|
|
612
|
+
failedCreates: {
|
|
613
|
+
kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
|
|
614
|
+
detail: string | null;
|
|
615
|
+
}[];
|
|
616
|
+
sandboxMayExist: boolean;
|
|
617
|
+
} & {
|
|
618
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
619
|
+
}]>;
|
|
620
|
+
}>, import("@vercel/clinkr").OutcomeOf<import("@vercel/clinkr").Outcomes<{
|
|
621
|
+
ran: z.ZodObject<{
|
|
622
|
+
version: z.ZodString;
|
|
623
|
+
commit: z.ZodNullable<z.ZodString>;
|
|
624
|
+
configFile: z.ZodNullable<z.ZodString>;
|
|
625
|
+
resources: z.ZodType<import("../../core/resource.ts").ResourceRanFacts<import("../../resources.ts").Resources>, import("../../core/resource.ts").ResourceRanFacts<import("../../resources.ts").Resources>, z.core.$ZodTypeInternals<import("../../core/resource.ts").ResourceRanFacts<import("../../resources.ts").Resources>, import("../../core/resource.ts").ResourceRanFacts<import("../../resources.ts").Resources>>>;
|
|
626
|
+
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>>;
|
|
627
|
+
command: z.ZodObject<{
|
|
628
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
629
|
+
signal: z.ZodNullable<z.ZodString>;
|
|
630
|
+
}, z.core.$strip>;
|
|
631
|
+
runner: z.ZodNullable<z.ZodObject<{
|
|
632
|
+
snapshotId: z.ZodString;
|
|
633
|
+
base: z.ZodString;
|
|
634
|
+
snapshotBranch: z.ZodNullable<z.ZodString>;
|
|
635
|
+
snapshotHead: z.ZodNullable<z.ZodString>;
|
|
636
|
+
built: z.ZodBoolean;
|
|
637
|
+
vcpus: z.ZodNumber;
|
|
638
|
+
region: z.ZodString;
|
|
639
|
+
runtime: z.ZodString;
|
|
640
|
+
buildMs: z.ZodNumber;
|
|
641
|
+
save: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
642
|
+
kind: z.ZodLiteral<"saved">;
|
|
643
|
+
snapshotId: z.ZodString;
|
|
644
|
+
base: z.ZodString;
|
|
645
|
+
branch: z.ZodString;
|
|
646
|
+
head: z.ZodString;
|
|
647
|
+
ms: z.ZodNumber;
|
|
648
|
+
sizeBytes: z.ZodNumber;
|
|
649
|
+
entryWritten: z.ZodBoolean;
|
|
650
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
651
|
+
kind: z.ZodLiteral<"skipped">;
|
|
652
|
+
reason: z.ZodLiteral<"detached-head">;
|
|
653
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
654
|
+
kind: z.ZodLiteral<"failed">;
|
|
655
|
+
step: z.ZodEnum<{
|
|
656
|
+
"save-snapshot": "save-snapshot";
|
|
657
|
+
scrub: "scrub";
|
|
658
|
+
}>;
|
|
659
|
+
message: z.ZodString;
|
|
660
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
661
|
+
kind: z.ZodLiteral<"stopped">;
|
|
662
|
+
}, z.core.$strip>], "kind">>;
|
|
47
663
|
}, z.core.$strip>>;
|
|
48
664
|
timeline: z.ZodObject<{
|
|
49
665
|
startedAt: z.ZodString;
|
|
@@ -241,6 +857,45 @@ export declare function command(cmd: CommandBuilder<StormApp>): import("@vercel/
|
|
|
241
857
|
} & {
|
|
242
858
|
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
243
859
|
}]>;
|
|
860
|
+
prBuildExpired: import("@vercel/clinkr").SharedError<"pr_build_expired", [{
|
|
861
|
+
pr: number;
|
|
862
|
+
headSha: string;
|
|
863
|
+
build: string;
|
|
864
|
+
expiresAt: string;
|
|
865
|
+
} & {
|
|
866
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
867
|
+
}]>;
|
|
868
|
+
prBuildNotReady: import("@vercel/clinkr").SharedError<"pr_build_not_ready", [{
|
|
869
|
+
pr: number;
|
|
870
|
+
headSha: string;
|
|
871
|
+
newest: {
|
|
872
|
+
build: string;
|
|
873
|
+
headSha: string;
|
|
874
|
+
createdAt: string;
|
|
875
|
+
} | null;
|
|
876
|
+
} & {
|
|
877
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
878
|
+
}]>;
|
|
879
|
+
prBuildsUnlisted: import("@vercel/clinkr").SharedError<"pr_builds_unlisted", [{
|
|
880
|
+
pr: number;
|
|
881
|
+
failure: {
|
|
882
|
+
kind: "connect-failed" | "http-error" | "malformed" | "not-found" | "rejected" | "timeout";
|
|
883
|
+
status: number | null;
|
|
884
|
+
detail: string;
|
|
885
|
+
};
|
|
886
|
+
} & {
|
|
887
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
888
|
+
}]>;
|
|
889
|
+
pullRequestUnreadable: import("@vercel/clinkr").SharedError<"pull_request_unreadable", [{
|
|
890
|
+
pr: number;
|
|
891
|
+
repo: string;
|
|
892
|
+
kind: "connect-failed" | "http-error" | "malformed" | "no-token" | "not-found" | "rejected" | "timeout";
|
|
893
|
+
status: number | null;
|
|
894
|
+
message: string | null;
|
|
895
|
+
tokenOrigin: "GH_TOKEN" | "GITHUB_TOKEN" | "gh auth token" | null;
|
|
896
|
+
} & {
|
|
897
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
898
|
+
}]>;
|
|
244
899
|
runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
|
|
245
900
|
failure: {
|
|
246
901
|
kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
|
|
@@ -296,4 +951,260 @@ export declare function command(cmd: CommandBuilder<StormApp>): import("@vercel/
|
|
|
296
951
|
} & {
|
|
297
952
|
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
298
953
|
}]>;
|
|
299
|
-
}
|
|
954
|
+
}, {
|
|
955
|
+
readonly noMatchingTests: {
|
|
956
|
+
readonly exitCode: 1;
|
|
957
|
+
readonly description: "vitest list found no test for the arguments given to vitest run, so nothing was minted, leased or started.";
|
|
958
|
+
readonly schema: z.ZodObject<{
|
|
959
|
+
args: z.ZodArray<z.ZodString>;
|
|
960
|
+
cwd: z.ZodString;
|
|
961
|
+
}, z.core.$strip>;
|
|
962
|
+
readonly render: ({ args, cwd }: {
|
|
963
|
+
args: string[];
|
|
964
|
+
cwd: string;
|
|
965
|
+
}) => {
|
|
966
|
+
message: string;
|
|
967
|
+
next: {
|
|
968
|
+
type: "text";
|
|
969
|
+
text: string;
|
|
970
|
+
}[];
|
|
971
|
+
};
|
|
972
|
+
};
|
|
973
|
+
readonly vitestListFailed: {
|
|
974
|
+
readonly exitCode: 1;
|
|
975
|
+
readonly description: "storm couldn't count the tests before the run: vitest wasn't found or failed to start, didn't finish within 60s, exited other than 0, or printed something other than a list of tests. Nothing was minted, leased or started.";
|
|
976
|
+
readonly schema: z.ZodObject<{
|
|
977
|
+
args: z.ZodArray<z.ZodString>;
|
|
978
|
+
cwd: z.ZodString;
|
|
979
|
+
kind: z.ZodEnum<{
|
|
980
|
+
exited: "exited";
|
|
981
|
+
"start-failed": "start-failed";
|
|
982
|
+
"timed-out": "timed-out";
|
|
983
|
+
"unreadable-output": "unreadable-output";
|
|
984
|
+
}>;
|
|
985
|
+
message: z.ZodString;
|
|
986
|
+
}, z.core.$strip>;
|
|
987
|
+
readonly render: ({ kind, message, cwd }: {
|
|
988
|
+
args: string[];
|
|
989
|
+
cwd: string;
|
|
990
|
+
kind: "exited" | "start-failed" | "timed-out" | "unreadable-output";
|
|
991
|
+
message: string;
|
|
992
|
+
}) => {
|
|
993
|
+
message: string;
|
|
994
|
+
next: {
|
|
995
|
+
type: "text";
|
|
996
|
+
text: "Check that the package's vitest prints its list with --json, then retry." | "Check why vitest list doesn't finish, such as a global setup that waits, then retry." | "Fix what vitest list reports, then retry. vitest list takes the arguments vitest run does, but refuses some run-only options." | "Install vitest in the package, or run the command with storm exec, which counts nothing.";
|
|
997
|
+
}[];
|
|
998
|
+
};
|
|
999
|
+
};
|
|
1000
|
+
readonly credentialRejected: import("@vercel/clinkr").SharedError<"credential_rejected", [{
|
|
1001
|
+
origin: {
|
|
1002
|
+
source: "mint";
|
|
1003
|
+
team: string;
|
|
1004
|
+
project: string;
|
|
1005
|
+
} | {
|
|
1006
|
+
source: "github-actions";
|
|
1007
|
+
claims: {
|
|
1008
|
+
aud: string;
|
|
1009
|
+
repository: string;
|
|
1010
|
+
} | null;
|
|
1011
|
+
};
|
|
1012
|
+
fix: string;
|
|
1013
|
+
status: number;
|
|
1014
|
+
vercelId: string | null;
|
|
1015
|
+
ttlMinutes: number;
|
|
1016
|
+
failedCreates: {
|
|
1017
|
+
kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
|
|
1018
|
+
detail: string | null;
|
|
1019
|
+
}[];
|
|
1020
|
+
unpooled: {
|
|
1021
|
+
testserverUrl: string;
|
|
1022
|
+
path: string;
|
|
1023
|
+
message: string;
|
|
1024
|
+
}[];
|
|
1025
|
+
sandboxMayExist: boolean;
|
|
1026
|
+
} & {
|
|
1027
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
1028
|
+
}]>;
|
|
1029
|
+
readonly credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
|
|
1030
|
+
flags: string[];
|
|
1031
|
+
configFile: string | null;
|
|
1032
|
+
}]>;
|
|
1033
|
+
readonly githubFixtureRepoUnavailable: import("@vercel/clinkr").SharedError<"github_fixture_repo_unavailable", [{
|
|
1034
|
+
repo: string;
|
|
1035
|
+
status: number | null;
|
|
1036
|
+
message: string;
|
|
1037
|
+
} & {
|
|
1038
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
1039
|
+
}]>;
|
|
1040
|
+
readonly githubTokenMissing: import("@vercel/clinkr").SharedError<"github_token_missing", [data: {
|
|
1041
|
+
tokenEnv: string;
|
|
1042
|
+
repo: string;
|
|
1043
|
+
configFile: string | null;
|
|
1044
|
+
requiredBy: "config" | "set";
|
|
1045
|
+
}]>;
|
|
1046
|
+
readonly invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
|
|
1047
|
+
file: string;
|
|
1048
|
+
problems: {
|
|
1049
|
+
key: string | null;
|
|
1050
|
+
location: {
|
|
1051
|
+
line: number;
|
|
1052
|
+
column: number | null;
|
|
1053
|
+
} | null;
|
|
1054
|
+
problem: string;
|
|
1055
|
+
}[];
|
|
1056
|
+
}]>;
|
|
1057
|
+
readonly invalidResourceOptions: import("@vercel/clinkr").SharedError<"invalid_resource_options", [data: {
|
|
1058
|
+
configFile: string | null;
|
|
1059
|
+
problems: {
|
|
1060
|
+
key: string;
|
|
1061
|
+
problem: string;
|
|
1062
|
+
values: {
|
|
1063
|
+
key: string;
|
|
1064
|
+
value: string;
|
|
1065
|
+
source: "default" | "file" | "flag";
|
|
1066
|
+
}[];
|
|
1067
|
+
}[];
|
|
1068
|
+
}]>;
|
|
1069
|
+
readonly mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
|
|
1070
|
+
team: string;
|
|
1071
|
+
project: string;
|
|
1072
|
+
cause: string;
|
|
1073
|
+
fix: string;
|
|
1074
|
+
runner: boolean;
|
|
1075
|
+
cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
1076
|
+
}]>;
|
|
1077
|
+
readonly missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
|
|
1078
|
+
configFile: string | null;
|
|
1079
|
+
}]>;
|
|
1080
|
+
readonly missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
|
|
1081
|
+
missing: ("project" | "scope")[];
|
|
1082
|
+
}]>;
|
|
1083
|
+
readonly noBaseRef: import("@vercel/clinkr").SharedError<"no_base_ref", [data: {
|
|
1084
|
+
refs: {
|
|
1085
|
+
ref: string;
|
|
1086
|
+
reason: "missing" | "unrelated";
|
|
1087
|
+
}[];
|
|
1088
|
+
}]>;
|
|
1089
|
+
readonly noSandboxes: import("@vercel/clinkr").SharedError<"no_sandboxes", [{
|
|
1090
|
+
requested: number;
|
|
1091
|
+
ttlMinutes: number;
|
|
1092
|
+
failedCreates: {
|
|
1093
|
+
kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
|
|
1094
|
+
detail: string | null;
|
|
1095
|
+
}[];
|
|
1096
|
+
sandboxMayExist: boolean;
|
|
1097
|
+
} & {
|
|
1098
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
1099
|
+
}]>;
|
|
1100
|
+
readonly noUsableSandboxes: import("@vercel/clinkr").SharedError<"no_usable_sandboxes", [{
|
|
1101
|
+
requested: number;
|
|
1102
|
+
build: string;
|
|
1103
|
+
} & {
|
|
1104
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
1105
|
+
}]>;
|
|
1106
|
+
readonly poolUnavailable: import("@vercel/clinkr").SharedError<"pool_unavailable", [data: {
|
|
1107
|
+
path: string;
|
|
1108
|
+
message: string;
|
|
1109
|
+
}]>;
|
|
1110
|
+
readonly poolUnreadable: import("@vercel/clinkr").SharedError<"pool_unreadable", [{
|
|
1111
|
+
path: string;
|
|
1112
|
+
message: string;
|
|
1113
|
+
} & {
|
|
1114
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
1115
|
+
}]>;
|
|
1116
|
+
readonly prBuildExpired: import("@vercel/clinkr").SharedError<"pr_build_expired", [{
|
|
1117
|
+
pr: number;
|
|
1118
|
+
headSha: string;
|
|
1119
|
+
build: string;
|
|
1120
|
+
expiresAt: string;
|
|
1121
|
+
} & {
|
|
1122
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
1123
|
+
}]>;
|
|
1124
|
+
readonly prBuildNotReady: import("@vercel/clinkr").SharedError<"pr_build_not_ready", [{
|
|
1125
|
+
pr: number;
|
|
1126
|
+
headSha: string;
|
|
1127
|
+
newest: {
|
|
1128
|
+
build: string;
|
|
1129
|
+
headSha: string;
|
|
1130
|
+
createdAt: string;
|
|
1131
|
+
} | null;
|
|
1132
|
+
} & {
|
|
1133
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
1134
|
+
}]>;
|
|
1135
|
+
readonly prBuildsUnlisted: import("@vercel/clinkr").SharedError<"pr_builds_unlisted", [{
|
|
1136
|
+
pr: number;
|
|
1137
|
+
failure: {
|
|
1138
|
+
kind: "connect-failed" | "http-error" | "malformed" | "not-found" | "rejected" | "timeout";
|
|
1139
|
+
status: number | null;
|
|
1140
|
+
detail: string;
|
|
1141
|
+
};
|
|
1142
|
+
} & {
|
|
1143
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
1144
|
+
}]>;
|
|
1145
|
+
readonly pullRequestUnreadable: import("@vercel/clinkr").SharedError<"pull_request_unreadable", [{
|
|
1146
|
+
pr: number;
|
|
1147
|
+
repo: string;
|
|
1148
|
+
kind: "connect-failed" | "http-error" | "malformed" | "no-token" | "not-found" | "rejected" | "timeout";
|
|
1149
|
+
status: number | null;
|
|
1150
|
+
message: string | null;
|
|
1151
|
+
tokenOrigin: "GH_TOKEN" | "GITHUB_TOKEN" | "gh auth token" | null;
|
|
1152
|
+
} & {
|
|
1153
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
1154
|
+
}]>;
|
|
1155
|
+
readonly runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
|
|
1156
|
+
failure: {
|
|
1157
|
+
kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
|
|
1158
|
+
label: string;
|
|
1159
|
+
exitCode: number | null;
|
|
1160
|
+
tail: string[];
|
|
1161
|
+
} | {
|
|
1162
|
+
kind: "sandbox-api-failed";
|
|
1163
|
+
operation: string;
|
|
1164
|
+
status: number | null;
|
|
1165
|
+
message: string;
|
|
1166
|
+
} | {
|
|
1167
|
+
kind: "checkout-failed";
|
|
1168
|
+
message: string;
|
|
1169
|
+
command: string | null;
|
|
1170
|
+
} | {
|
|
1171
|
+
kind: "credential-claims-missing";
|
|
1172
|
+
team: string;
|
|
1173
|
+
project: string;
|
|
1174
|
+
};
|
|
1175
|
+
cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
1176
|
+
}]>;
|
|
1177
|
+
readonly snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
|
|
1178
|
+
snapshotId: string;
|
|
1179
|
+
base: string;
|
|
1180
|
+
removal: {
|
|
1181
|
+
path: string;
|
|
1182
|
+
message: string;
|
|
1183
|
+
} | null;
|
|
1184
|
+
cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
1185
|
+
}]>;
|
|
1186
|
+
readonly spawnFailed: import("@vercel/clinkr").SharedError<"spawn_failed", [data: {
|
|
1187
|
+
executable: string;
|
|
1188
|
+
message: string;
|
|
1189
|
+
cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
1190
|
+
}]>;
|
|
1191
|
+
readonly submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
|
|
1192
|
+
paths: string[];
|
|
1193
|
+
}]>;
|
|
1194
|
+
readonly tokenRequestFailed: import("@vercel/clinkr").SharedError<"token_request_failed", [{
|
|
1195
|
+
cause: "request-failed" | "variables-missing";
|
|
1196
|
+
missing: ("ACTIONS_ID_TOKEN_REQUEST_TOKEN" | "ACTIONS_ID_TOKEN_REQUEST_URL")[] | null;
|
|
1197
|
+
status: number | null;
|
|
1198
|
+
said: string | null;
|
|
1199
|
+
detail: string;
|
|
1200
|
+
fix: string;
|
|
1201
|
+
ttlMinutes: number;
|
|
1202
|
+
failedCreates: {
|
|
1203
|
+
kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
|
|
1204
|
+
detail: string | null;
|
|
1205
|
+
}[];
|
|
1206
|
+
sandboxMayExist: boolean;
|
|
1207
|
+
} & {
|
|
1208
|
+
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
1209
|
+
}]>;
|
|
1210
|
+
}>>, StormApp, false>;
|