@cnc-tools/storm 0.5.0 → 0.6.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.
Files changed (113) hide show
  1. package/dist/build-info.js +1 -1
  2. package/dist/combine-errors.js +2 -2
  3. package/dist/commands/dashboard.js +1 -1
  4. package/dist/commands/{run → exec}/cleanup.d.ts +1 -1
  5. package/dist/commands/{run → exec}/cleanup.js +1 -1
  6. package/dist/commands/{run/outcomes.d.ts → exec/command.d.ts} +77 -112
  7. package/dist/commands/exec/command.js +23 -0
  8. package/dist/commands/{run → exec}/job-summary.d.ts +5 -1
  9. package/dist/commands/{run → exec}/job-summary.js +5 -2
  10. package/dist/commands/exec/metadata.d.ts +66 -0
  11. package/dist/commands/exec/metadata.js +55 -0
  12. package/dist/commands/{run → exec}/mint-failed.js +4 -4
  13. package/dist/commands/exec/outcomes.d.ts +614 -0
  14. package/dist/commands/exec/outcomes.js +338 -0
  15. package/dist/commands/exec/run-command.d.ts +221 -0
  16. package/dist/commands/exec/run-command.js +663 -0
  17. package/dist/commands/exec/run-metadata.d.ts +56 -0
  18. package/dist/commands/exec/run-metadata.js +58 -0
  19. package/dist/commands/{run → exec}/run-record.d.ts +27 -1
  20. package/dist/commands/{run → exec}/run-record.js +8 -0
  21. package/dist/commands/exec/testserver-flags.d.ts +48 -0
  22. package/dist/commands/exec/testserver-flags.js +80 -0
  23. package/dist/commands/runs/facts.js +2 -2
  24. package/dist/commands/runs/logs/metadata.js +1 -1
  25. package/dist/commands/runs/logs/outcomes.js +4 -1
  26. package/dist/commands/runs/past-run.d.ts +2 -2
  27. package/dist/commands/runs/past-run.js +2 -2
  28. package/dist/commands/runs/show/metadata.js +2 -2
  29. package/dist/commands/runs/show/outcomes.js +7 -4
  30. package/dist/commands/vitest/command.d.ts +299 -0
  31. package/dist/commands/vitest/command.js +138 -0
  32. package/dist/commands/vitest/metadata.d.ts +66 -0
  33. package/dist/commands/vitest/metadata.js +35 -0
  34. package/dist/commands/vitest/outcomes.d.ts +273 -0
  35. package/dist/commands/vitest/outcomes.js +77 -0
  36. package/dist/config/index.d.ts +2 -1
  37. package/dist/config/index.js +1 -0
  38. package/dist/config/resolve.d.ts +3 -3
  39. package/dist/config/resolve.js +3 -3
  40. package/dist/config/resource-config.d.ts +2 -2
  41. package/dist/config/schema.d.ts +1 -1
  42. package/dist/config/set.d.ts +15 -4
  43. package/dist/config/set.js +28 -12
  44. package/dist/config-file/define.d.ts +8 -6
  45. package/dist/context.d.ts +6 -3
  46. package/dist/context.js +4 -2
  47. package/dist/core/command-provider.d.ts +1 -1
  48. package/dist/core/presentation.js +1 -1
  49. package/dist/core/presentations.js +1 -1
  50. package/dist/resources/testserver/command.d.ts +1 -1
  51. package/dist/resources/testserver/command.js +1 -1
  52. package/dist/resources/testserver/config.d.ts +1 -1
  53. package/dist/resources/testserver/config.js +3 -2
  54. package/dist/resources/testserver/credential-facts.js +1 -1
  55. package/dist/resources/testserver/resource.d.ts +2 -2
  56. package/dist/resources/testserver/sandbox/create.d.ts +2 -2
  57. package/dist/resources/testserver/sandbox/create.js +2 -2
  58. package/dist/resources.d.ts +9 -6
  59. package/dist/resources.js +3 -3
  60. package/dist/sdk/index.js +1 -1
  61. package/dist/sdk/payload/payload.d.ts +2 -2
  62. package/dist/sdk/payload/payload.js +2 -2
  63. package/dist/vercel-cli/driver.d.ts +1 -1
  64. package/dist/vercel-cli/entry.d.ts +1 -1
  65. package/dist/vercel-cli/entry.js +1 -1
  66. package/dist/vercel-cli/verbose.d.ts +2 -2
  67. package/dist/vercel-cli/verbose.js +2 -2
  68. package/dist/vitest/config.d.ts +5 -5
  69. package/dist/vitest/config.js +5 -5
  70. package/dist/vitest/find-vitest.d.ts +7 -0
  71. package/dist/vitest/find-vitest.js +28 -0
  72. package/dist/vitest/fixtures.d.ts +2 -2
  73. package/dist/vitest/fixtures.js +3 -3
  74. package/dist/vitest/gateways.d.ts +37 -6
  75. package/dist/vitest/gateways.js +3 -2
  76. package/dist/vitest/live/list-gateway.d.ts +7 -3
  77. package/dist/vitest/live/list-gateway.js +55 -8
  78. package/dist/vitest/plan.d.ts +41 -8
  79. package/dist/vitest/plan.js +47 -16
  80. package/dist/vitest/sandbox.d.ts +1 -1
  81. package/dist/vitest/sandbox.js +1 -1
  82. package/dist/vitest/test-events.d.ts +2 -2
  83. package/dist/vitest/test-events.js +3 -3
  84. package/dist/vitest/test-results.d.ts +1 -1
  85. package/dist/vitest/test-results.js +1 -1
  86. package/dist/vitest/types.d.ts +1 -1
  87. package/package.json +2 -2
  88. package/skills/overview.md +5 -4
  89. package/skills/read-run-output.md +1 -1
  90. package/dist/commands/run/command.d.ts +0 -327
  91. package/dist/commands/run/command.js +0 -620
  92. package/dist/commands/run/metadata.d.ts +0 -47
  93. package/dist/commands/run/metadata.js +0 -83
  94. package/dist/commands/run/outcomes.js +0 -332
  95. /package/dist/commands/{run → exec}/live-view.d.ts +0 -0
  96. /package/dist/commands/{run → exec}/live-view.js +0 -0
  97. /package/dist/commands/{run → exec}/mint-failed.d.ts +0 -0
  98. /package/dist/commands/{run → exec}/progress.d.ts +0 -0
  99. /package/dist/commands/{run → exec}/progress.js +0 -0
  100. /package/dist/commands/{run → exec}/redaction.d.ts +0 -0
  101. /package/dist/commands/{run → exec}/redaction.js +0 -0
  102. /package/dist/commands/{run → exec}/run-collector.d.ts +0 -0
  103. /package/dist/commands/{run → exec}/run-collector.js +0 -0
  104. /package/dist/commands/{run → exec}/tests-summary.d.ts +0 -0
  105. /package/dist/commands/{run → exec}/tests-summary.js +0 -0
  106. /package/dist/commands/{run → exec}/text.d.ts +0 -0
  107. /package/dist/commands/{run → exec}/text.js +0 -0
  108. /package/dist/commands/{run → exec}/view.d.ts +0 -0
  109. /package/dist/commands/{run → exec}/view.js +0 -0
  110. /package/dist/commands/{run → exec}/waterfall.d.ts +0 -0
  111. /package/dist/commands/{run → exec}/waterfall.js +0 -0
  112. /package/dist/commands/{run → exec}/worker-chart.d.ts +0 -0
  113. /package/dist/commands/{run → exec}/worker-chart.js +0 -0
@@ -0,0 +1,614 @@
1
+ import { z } from "zod";
2
+ /** A run's waterfall (`Timeline`), times in milliseconds since the run started, as `timeline.json` holds it too. */
3
+ export declare const timelineSchema: z.ZodObject<{
4
+ startedAt: z.ZodString;
5
+ totalMs: z.ZodNumber;
6
+ rows: z.ZodArray<z.ZodObject<{
7
+ name: z.ZodEnum<{
8
+ cleanup: "cleanup";
9
+ mint: "mint";
10
+ runner: "runner";
11
+ tests: "tests";
12
+ testserver: "testserver";
13
+ }>;
14
+ startMs: z.ZodNumber;
15
+ endMs: z.ZodNumber;
16
+ outcome: z.ZodEnum<{
17
+ done: "done";
18
+ failed: "failed";
19
+ stopped: "stopped";
20
+ unfinished: "unfinished";
21
+ }>;
22
+ steps: z.ZodArray<z.ZodObject<{
23
+ name: z.ZodEnum<{
24
+ [x: string]: string;
25
+ }>;
26
+ startMs: z.ZodNumber;
27
+ endMs: z.ZodNumber;
28
+ outcome: z.ZodEnum<{
29
+ done: "done";
30
+ failed: "failed";
31
+ stopped: "stopped";
32
+ unfinished: "unfinished";
33
+ }>;
34
+ }, z.core.$strip>>;
35
+ idleMs: z.ZodNumber;
36
+ snapshot: z.ZodOptional<z.ZodEnum<{
37
+ built: "built";
38
+ reused: "reused";
39
+ }>>;
40
+ sandboxes: z.ZodOptional<z.ZodObject<{
41
+ reused: z.ZodNumber;
42
+ created: z.ZodNumber;
43
+ }, z.core.$strip>>;
44
+ }, z.core.$strip>>;
45
+ criticalPath: z.ZodArray<z.ZodEnum<{
46
+ cleanup: "cleanup";
47
+ mint: "mint";
48
+ runner: "runner";
49
+ tests: "tests";
50
+ testserver: "testserver";
51
+ }>>;
52
+ }, z.core.$strip>;
53
+ /** What a `ran` outcome says of a run whose command ran and ended. No field carries the credential. */
54
+ export declare const ranSchema: z.ZodObject<{
55
+ version: z.ZodString;
56
+ commit: z.ZodNullable<z.ZodString>;
57
+ configFile: z.ZodNullable<z.ZodString>;
58
+ 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>>>;
59
+ cleanup: z.ZodType<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts>>;
60
+ command: z.ZodObject<{
61
+ exitCode: z.ZodNullable<z.ZodNumber>;
62
+ signal: z.ZodNullable<z.ZodString>;
63
+ }, z.core.$strip>;
64
+ runner: z.ZodNullable<z.ZodObject<{
65
+ snapshotId: z.ZodString;
66
+ base: z.ZodString;
67
+ built: z.ZodBoolean;
68
+ vcpus: z.ZodNumber;
69
+ region: z.ZodString;
70
+ runtime: z.ZodString;
71
+ }, z.core.$strip>>;
72
+ timeline: z.ZodObject<{
73
+ startedAt: z.ZodString;
74
+ totalMs: z.ZodNumber;
75
+ rows: z.ZodArray<z.ZodObject<{
76
+ name: z.ZodEnum<{
77
+ cleanup: "cleanup";
78
+ mint: "mint";
79
+ runner: "runner";
80
+ tests: "tests";
81
+ testserver: "testserver";
82
+ }>;
83
+ startMs: z.ZodNumber;
84
+ endMs: z.ZodNumber;
85
+ outcome: z.ZodEnum<{
86
+ done: "done";
87
+ failed: "failed";
88
+ stopped: "stopped";
89
+ unfinished: "unfinished";
90
+ }>;
91
+ steps: z.ZodArray<z.ZodObject<{
92
+ name: z.ZodEnum<{
93
+ [x: string]: string;
94
+ }>;
95
+ startMs: z.ZodNumber;
96
+ endMs: z.ZodNumber;
97
+ outcome: z.ZodEnum<{
98
+ done: "done";
99
+ failed: "failed";
100
+ stopped: "stopped";
101
+ unfinished: "unfinished";
102
+ }>;
103
+ }, z.core.$strip>>;
104
+ idleMs: z.ZodNumber;
105
+ snapshot: z.ZodOptional<z.ZodEnum<{
106
+ built: "built";
107
+ reused: "reused";
108
+ }>>;
109
+ sandboxes: z.ZodOptional<z.ZodObject<{
110
+ reused: z.ZodNumber;
111
+ created: z.ZodNumber;
112
+ }, z.core.$strip>>;
113
+ }, z.core.$strip>>;
114
+ criticalPath: z.ZodArray<z.ZodEnum<{
115
+ cleanup: "cleanup";
116
+ mint: "mint";
117
+ runner: "runner";
118
+ tests: "tests";
119
+ testserver: "testserver";
120
+ }>>;
121
+ }, z.core.$strip>;
122
+ runId: z.ZodNullable<z.ZodString>;
123
+ }, z.core.$strip>;
124
+ /** What a `ran` outcome is, for its description. */
125
+ export declare const RAN_DESCRIPTION = "The command ran and ended. storm exits with its code, or 128 + n when signal n ended it, whatever this result's exit code.";
126
+ /** How a `ran` outcome renders: its warnings, and the runner sandbox the run kept running, if any. */
127
+ export declare function renderRan(ran: z.output<typeof ranSchema>): import("@vercel/clinkr").Rendered<{
128
+ message?: string;
129
+ warnings?: import("@vercel/clinkr").Warning[];
130
+ }>;
131
+ /** The errors only a run ends with, beside the config's, the credential's, the resources' and the mint's. */
132
+ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
133
+ credentialUnused: z.ZodObject<{
134
+ flags: z.ZodArray<z.ZodString>;
135
+ configFile: z.ZodNullable<z.ZodString>;
136
+ }, z.core.$strip>;
137
+ missingRunner: z.ZodObject<{
138
+ configFile: z.ZodNullable<z.ZodString>;
139
+ }, z.core.$strip>;
140
+ noBaseRef: z.ZodObject<{
141
+ refs: z.ZodArray<z.ZodObject<{
142
+ ref: z.ZodString;
143
+ reason: z.ZodEnum<{
144
+ missing: "missing";
145
+ unrelated: "unrelated";
146
+ }>;
147
+ }, z.core.$strip>>;
148
+ }, z.core.$strip>;
149
+ submodulesRefused: z.ZodObject<{
150
+ paths: z.ZodArray<z.ZodString>;
151
+ }, z.core.$strip>;
152
+ snapshotGone: z.ZodObject<{
153
+ snapshotId: z.ZodString;
154
+ base: z.ZodString;
155
+ removal: z.ZodNullable<z.ZodObject<{
156
+ path: z.ZodString;
157
+ message: z.ZodString;
158
+ }, z.core.$strip>>;
159
+ cleanup: z.ZodType<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts>>;
160
+ }, z.core.$strip>;
161
+ runnerFailed: z.ZodObject<{
162
+ failure: z.ZodUnion<readonly [z.ZodObject<{
163
+ kind: z.ZodEnum<{
164
+ "apply-failed": "apply-failed";
165
+ "build-failed": "build-failed";
166
+ "install-failed": "install-failed";
167
+ "snapshot-build-step-failed": "snapshot-build-step-failed";
168
+ }>;
169
+ label: z.ZodString;
170
+ exitCode: z.ZodNullable<z.ZodNumber>;
171
+ tail: z.ZodArray<z.ZodString>;
172
+ }, z.core.$strip>, z.ZodObject<{
173
+ kind: z.ZodLiteral<"sandbox-api-failed">;
174
+ operation: z.ZodString;
175
+ status: z.ZodNullable<z.ZodNumber>;
176
+ message: z.ZodString;
177
+ }, z.core.$strip>, z.ZodObject<{
178
+ kind: z.ZodLiteral<"checkout-failed">;
179
+ message: z.ZodString;
180
+ command: z.ZodNullable<z.ZodString>;
181
+ }, z.core.$strip>, z.ZodObject<{
182
+ kind: z.ZodLiteral<"credential-claims-missing">;
183
+ team: z.ZodString;
184
+ project: z.ZodString;
185
+ }, z.core.$strip>]>;
186
+ cleanup: z.ZodType<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts>>;
187
+ }, z.core.$strip>;
188
+ spawnFailed: z.ZodObject<{
189
+ executable: z.ZodString;
190
+ message: z.ZodString;
191
+ cleanup: z.ZodType<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts>>;
192
+ }, z.core.$strip>;
193
+ }>;
194
+ /** Every error a run ends with, in order: the config's, the credential's, each resource's, the mint's, the run's. */
195
+ export declare const RUN_ERRORS: {
196
+ credentialRejected: import("@vercel/clinkr").SharedError<"credential_rejected", [{
197
+ origin: {
198
+ source: "mint";
199
+ team: string;
200
+ project: string;
201
+ } | {
202
+ source: "github-actions";
203
+ claims: {
204
+ aud: string;
205
+ repository: string;
206
+ } | null;
207
+ };
208
+ fix: string;
209
+ status: number;
210
+ vercelId: string | null;
211
+ ttlMinutes: number;
212
+ failedCreates: {
213
+ kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
214
+ detail: string | null;
215
+ }[];
216
+ unpooled: {
217
+ testserverUrl: string;
218
+ path: string;
219
+ message: string;
220
+ }[];
221
+ sandboxMayExist: boolean;
222
+ } & {
223
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
224
+ }]>;
225
+ credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
226
+ flags: string[];
227
+ configFile: string | null;
228
+ }]>;
229
+ githubFixtureRepoUnavailable: import("@vercel/clinkr").SharedError<"github_fixture_repo_unavailable", [{
230
+ repo: string;
231
+ status: number | null;
232
+ message: string;
233
+ } & {
234
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
235
+ }]>;
236
+ githubTokenMissing: import("@vercel/clinkr").SharedError<"github_token_missing", [data: {
237
+ tokenEnv: string;
238
+ repo: string;
239
+ configFile: string | null;
240
+ requiredBy: "config" | "set";
241
+ }]>;
242
+ invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
243
+ file: string;
244
+ problems: {
245
+ key: string | null;
246
+ location: {
247
+ line: number;
248
+ column: number | null;
249
+ } | null;
250
+ problem: string;
251
+ }[];
252
+ }]>;
253
+ invalidResourceOptions: import("@vercel/clinkr").SharedError<"invalid_resource_options", [data: {
254
+ configFile: string | null;
255
+ problems: {
256
+ key: string;
257
+ problem: string;
258
+ values: {
259
+ key: string;
260
+ value: string;
261
+ source: "default" | "file" | "flag";
262
+ }[];
263
+ }[];
264
+ }]>;
265
+ mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
266
+ team: string;
267
+ project: string;
268
+ cause: string;
269
+ fix: string;
270
+ runner: boolean;
271
+ cleanup: import("./cleanup.ts").StormCleanupFacts;
272
+ }]>;
273
+ missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
274
+ configFile: string | null;
275
+ }]>;
276
+ missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
277
+ missing: ("project" | "scope")[];
278
+ }]>;
279
+ noBaseRef: import("@vercel/clinkr").SharedError<"no_base_ref", [data: {
280
+ refs: {
281
+ ref: string;
282
+ reason: "missing" | "unrelated";
283
+ }[];
284
+ }]>;
285
+ noSandboxes: import("@vercel/clinkr").SharedError<"no_sandboxes", [{
286
+ requested: number;
287
+ ttlMinutes: number;
288
+ failedCreates: {
289
+ kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
290
+ detail: string | null;
291
+ }[];
292
+ sandboxMayExist: boolean;
293
+ } & {
294
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
295
+ }]>;
296
+ noUsableSandboxes: import("@vercel/clinkr").SharedError<"no_usable_sandboxes", [{
297
+ requested: number;
298
+ build: string;
299
+ } & {
300
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
301
+ }]>;
302
+ poolUnavailable: import("@vercel/clinkr").SharedError<"pool_unavailable", [data: {
303
+ path: string;
304
+ message: string;
305
+ }]>;
306
+ poolUnreadable: import("@vercel/clinkr").SharedError<"pool_unreadable", [{
307
+ path: string;
308
+ message: string;
309
+ } & {
310
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
311
+ }]>;
312
+ runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
313
+ failure: {
314
+ kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
315
+ label: string;
316
+ exitCode: number | null;
317
+ tail: string[];
318
+ } | {
319
+ kind: "sandbox-api-failed";
320
+ operation: string;
321
+ status: number | null;
322
+ message: string;
323
+ } | {
324
+ kind: "checkout-failed";
325
+ message: string;
326
+ command: string | null;
327
+ } | {
328
+ kind: "credential-claims-missing";
329
+ team: string;
330
+ project: string;
331
+ };
332
+ cleanup: import("./cleanup.ts").StormCleanupFacts;
333
+ }]>;
334
+ snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
335
+ snapshotId: string;
336
+ base: string;
337
+ removal: {
338
+ path: string;
339
+ message: string;
340
+ } | null;
341
+ cleanup: import("./cleanup.ts").StormCleanupFacts;
342
+ }]>;
343
+ spawnFailed: import("@vercel/clinkr").SharedError<"spawn_failed", [data: {
344
+ executable: string;
345
+ message: string;
346
+ cleanup: import("./cleanup.ts").StormCleanupFacts;
347
+ }]>;
348
+ submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
349
+ paths: string[];
350
+ }]>;
351
+ tokenRequestFailed: import("@vercel/clinkr").SharedError<"token_request_failed", [{
352
+ cause: "request-failed" | "variables-missing";
353
+ missing: ("ACTIONS_ID_TOKEN_REQUEST_TOKEN" | "ACTIONS_ID_TOKEN_REQUEST_URL")[] | null;
354
+ status: number | null;
355
+ said: string | null;
356
+ detail: string;
357
+ fix: string;
358
+ ttlMinutes: number;
359
+ failedCreates: {
360
+ kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
361
+ detail: string | null;
362
+ }[];
363
+ sandboxMayExist: boolean;
364
+ } & {
365
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
366
+ }]>;
367
+ };
368
+ /** How `exec` ends. No outcome carries the credential. */
369
+ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
370
+ ran: z.ZodObject<{
371
+ version: z.ZodString;
372
+ commit: z.ZodNullable<z.ZodString>;
373
+ configFile: z.ZodNullable<z.ZodString>;
374
+ 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>>>;
375
+ cleanup: z.ZodType<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts>>;
376
+ command: z.ZodObject<{
377
+ exitCode: z.ZodNullable<z.ZodNumber>;
378
+ signal: z.ZodNullable<z.ZodString>;
379
+ }, z.core.$strip>;
380
+ runner: z.ZodNullable<z.ZodObject<{
381
+ snapshotId: z.ZodString;
382
+ base: z.ZodString;
383
+ built: z.ZodBoolean;
384
+ vcpus: z.ZodNumber;
385
+ region: z.ZodString;
386
+ runtime: z.ZodString;
387
+ }, z.core.$strip>>;
388
+ timeline: z.ZodObject<{
389
+ startedAt: z.ZodString;
390
+ totalMs: z.ZodNumber;
391
+ rows: z.ZodArray<z.ZodObject<{
392
+ name: z.ZodEnum<{
393
+ cleanup: "cleanup";
394
+ mint: "mint";
395
+ runner: "runner";
396
+ tests: "tests";
397
+ testserver: "testserver";
398
+ }>;
399
+ startMs: z.ZodNumber;
400
+ endMs: z.ZodNumber;
401
+ outcome: z.ZodEnum<{
402
+ done: "done";
403
+ failed: "failed";
404
+ stopped: "stopped";
405
+ unfinished: "unfinished";
406
+ }>;
407
+ steps: z.ZodArray<z.ZodObject<{
408
+ name: z.ZodEnum<{
409
+ [x: string]: string;
410
+ }>;
411
+ startMs: z.ZodNumber;
412
+ endMs: z.ZodNumber;
413
+ outcome: z.ZodEnum<{
414
+ done: "done";
415
+ failed: "failed";
416
+ stopped: "stopped";
417
+ unfinished: "unfinished";
418
+ }>;
419
+ }, z.core.$strip>>;
420
+ idleMs: z.ZodNumber;
421
+ snapshot: z.ZodOptional<z.ZodEnum<{
422
+ built: "built";
423
+ reused: "reused";
424
+ }>>;
425
+ sandboxes: z.ZodOptional<z.ZodObject<{
426
+ reused: z.ZodNumber;
427
+ created: z.ZodNumber;
428
+ }, z.core.$strip>>;
429
+ }, z.core.$strip>>;
430
+ criticalPath: z.ZodArray<z.ZodEnum<{
431
+ cleanup: "cleanup";
432
+ mint: "mint";
433
+ runner: "runner";
434
+ tests: "tests";
435
+ testserver: "testserver";
436
+ }>>;
437
+ }, z.core.$strip>;
438
+ runId: z.ZodNullable<z.ZodString>;
439
+ }, z.core.$strip>;
440
+ }, {
441
+ ran: unknown;
442
+ }, {
443
+ credentialRejected: import("@vercel/clinkr").SharedError<"credential_rejected", [{
444
+ origin: {
445
+ source: "mint";
446
+ team: string;
447
+ project: string;
448
+ } | {
449
+ source: "github-actions";
450
+ claims: {
451
+ aud: string;
452
+ repository: string;
453
+ } | null;
454
+ };
455
+ fix: string;
456
+ status: number;
457
+ vercelId: string | null;
458
+ ttlMinutes: number;
459
+ failedCreates: {
460
+ kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
461
+ detail: string | null;
462
+ }[];
463
+ unpooled: {
464
+ testserverUrl: string;
465
+ path: string;
466
+ message: string;
467
+ }[];
468
+ sandboxMayExist: boolean;
469
+ } & {
470
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
471
+ }]>;
472
+ credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
473
+ flags: string[];
474
+ configFile: string | null;
475
+ }]>;
476
+ githubFixtureRepoUnavailable: import("@vercel/clinkr").SharedError<"github_fixture_repo_unavailable", [{
477
+ repo: string;
478
+ status: number | null;
479
+ message: string;
480
+ } & {
481
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
482
+ }]>;
483
+ githubTokenMissing: import("@vercel/clinkr").SharedError<"github_token_missing", [data: {
484
+ tokenEnv: string;
485
+ repo: string;
486
+ configFile: string | null;
487
+ requiredBy: "config" | "set";
488
+ }]>;
489
+ invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
490
+ file: string;
491
+ problems: {
492
+ key: string | null;
493
+ location: {
494
+ line: number;
495
+ column: number | null;
496
+ } | null;
497
+ problem: string;
498
+ }[];
499
+ }]>;
500
+ invalidResourceOptions: import("@vercel/clinkr").SharedError<"invalid_resource_options", [data: {
501
+ configFile: string | null;
502
+ problems: {
503
+ key: string;
504
+ problem: string;
505
+ values: {
506
+ key: string;
507
+ value: string;
508
+ source: "default" | "file" | "flag";
509
+ }[];
510
+ }[];
511
+ }]>;
512
+ mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
513
+ team: string;
514
+ project: string;
515
+ cause: string;
516
+ fix: string;
517
+ runner: boolean;
518
+ cleanup: import("./cleanup.ts").StormCleanupFacts;
519
+ }]>;
520
+ missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
521
+ configFile: string | null;
522
+ }]>;
523
+ missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
524
+ missing: ("project" | "scope")[];
525
+ }]>;
526
+ noBaseRef: import("@vercel/clinkr").SharedError<"no_base_ref", [data: {
527
+ refs: {
528
+ ref: string;
529
+ reason: "missing" | "unrelated";
530
+ }[];
531
+ }]>;
532
+ noSandboxes: import("@vercel/clinkr").SharedError<"no_sandboxes", [{
533
+ requested: number;
534
+ ttlMinutes: number;
535
+ failedCreates: {
536
+ kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
537
+ detail: string | null;
538
+ }[];
539
+ sandboxMayExist: boolean;
540
+ } & {
541
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
542
+ }]>;
543
+ noUsableSandboxes: import("@vercel/clinkr").SharedError<"no_usable_sandboxes", [{
544
+ requested: number;
545
+ build: string;
546
+ } & {
547
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
548
+ }]>;
549
+ poolUnavailable: import("@vercel/clinkr").SharedError<"pool_unavailable", [data: {
550
+ path: string;
551
+ message: string;
552
+ }]>;
553
+ poolUnreadable: import("@vercel/clinkr").SharedError<"pool_unreadable", [{
554
+ path: string;
555
+ message: string;
556
+ } & {
557
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
558
+ }]>;
559
+ runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
560
+ failure: {
561
+ kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
562
+ label: string;
563
+ exitCode: number | null;
564
+ tail: string[];
565
+ } | {
566
+ kind: "sandbox-api-failed";
567
+ operation: string;
568
+ status: number | null;
569
+ message: string;
570
+ } | {
571
+ kind: "checkout-failed";
572
+ message: string;
573
+ command: string | null;
574
+ } | {
575
+ kind: "credential-claims-missing";
576
+ team: string;
577
+ project: string;
578
+ };
579
+ cleanup: import("./cleanup.ts").StormCleanupFacts;
580
+ }]>;
581
+ snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
582
+ snapshotId: string;
583
+ base: string;
584
+ removal: {
585
+ path: string;
586
+ message: string;
587
+ } | null;
588
+ cleanup: import("./cleanup.ts").StormCleanupFacts;
589
+ }]>;
590
+ spawnFailed: import("@vercel/clinkr").SharedError<"spawn_failed", [data: {
591
+ executable: string;
592
+ message: string;
593
+ cleanup: import("./cleanup.ts").StormCleanupFacts;
594
+ }]>;
595
+ submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
596
+ paths: string[];
597
+ }]>;
598
+ tokenRequestFailed: import("@vercel/clinkr").SharedError<"token_request_failed", [{
599
+ cause: "request-failed" | "variables-missing";
600
+ missing: ("ACTIONS_ID_TOKEN_REQUEST_TOKEN" | "ACTIONS_ID_TOKEN_REQUEST_URL")[] | null;
601
+ status: number | null;
602
+ said: string | null;
603
+ detail: string;
604
+ fix: string;
605
+ ttlMinutes: number;
606
+ failedCreates: {
607
+ kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
608
+ detail: string | null;
609
+ }[];
610
+ sandboxMayExist: boolean;
611
+ } & {
612
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
613
+ }]>;
614
+ }>;