@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.
Files changed (174) hide show
  1. package/dist/build-info.js +1 -1
  2. package/dist/commands/exec/cleanup.d.ts +3 -3
  3. package/dist/commands/exec/cleanup.js +1 -1
  4. package/dist/commands/exec/command.d.ts +797 -1
  5. package/dist/commands/exec/command.js +1 -1
  6. package/dist/commands/exec/live-view.js +32 -15
  7. package/dist/commands/exec/metadata.d.ts +5 -2
  8. package/dist/commands/exec/metadata.js +4 -0
  9. package/dist/commands/exec/mint-failed.d.ts +28 -0
  10. package/dist/commands/exec/outcomes.d.ts +526 -0
  11. package/dist/commands/exec/outcomes.js +9 -0
  12. package/dist/commands/exec/progress.d.ts +14 -2
  13. package/dist/commands/exec/progress.js +57 -14
  14. package/dist/commands/exec/run-command.d.ts +10 -4
  15. package/dist/commands/exec/run-command.js +41 -8
  16. package/dist/commands/exec/run-metadata.d.ts +6 -3
  17. package/dist/commands/exec/run-metadata.js +6 -3
  18. package/dist/commands/exec/run-record.d.ts +83 -4
  19. package/dist/commands/exec/run-record.js +49 -1
  20. package/dist/commands/exec/tests-summary.d.ts +1 -1
  21. package/dist/commands/exec/tests-summary.js +1 -1
  22. package/dist/commands/exec/view.js +36 -4
  23. package/dist/commands/runs/facts.d.ts +25 -0
  24. package/dist/commands/runs/facts.js +36 -3
  25. package/dist/commands/runs/list/command.d.ts +154 -1
  26. package/dist/commands/runs/list/command.js +1 -1
  27. package/dist/commands/runs/list/outcomes.d.ts +41 -0
  28. package/dist/commands/runs/logs/command.d.ts +263 -1
  29. package/dist/commands/runs/logs/command.js +1 -1
  30. package/dist/commands/runs/logs/outcomes.d.ts +105 -0
  31. package/dist/commands/runs/show/command.d.ts +354 -1
  32. package/dist/commands/runs/show/command.js +1 -1
  33. package/dist/commands/runs/show/metadata.js +1 -1
  34. package/dist/commands/runs/show/outcomes.d.ts +96 -0
  35. package/dist/commands/runs/show/outcomes.js +30 -1
  36. package/dist/commands/vitest/command.d.ts +912 -1
  37. package/dist/commands/vitest/command.js +1 -1
  38. package/dist/commands/vitest/metadata.d.ts +5 -2
  39. package/dist/commands/vitest/metadata.js +4 -0
  40. package/dist/commands/vitest/outcomes.d.ts +320 -0
  41. package/dist/config/errors.d.ts +73 -0
  42. package/dist/config/schema.d.ts +1 -1
  43. package/dist/config-file/define.d.ts +4 -3
  44. package/dist/config-file/define.js +1 -1
  45. package/dist/config-file/toolchain.js +1 -1
  46. package/dist/core/command-slots.d.ts +8 -2
  47. package/dist/core/command-slots.js +6 -2
  48. package/dist/core/events.d.ts +9 -7
  49. package/dist/core/index.d.ts +1 -1
  50. package/dist/core/run-state.d.ts +30 -6
  51. package/dist/core/run-state.js +19 -4
  52. package/dist/core/run.d.ts +17 -4
  53. package/dist/core/run.js +61 -25
  54. package/dist/credential/index.d.ts +1 -0
  55. package/dist/credential/index.js +1 -0
  56. package/dist/credential/settle.d.ts +20 -0
  57. package/dist/credential/target.d.ts +6 -0
  58. package/dist/credential/target.js +7 -0
  59. package/dist/resources/github/command.d.ts +54 -2
  60. package/dist/resources/github/config.js +1 -1
  61. package/dist/resources/github/index.js +1 -1
  62. package/dist/resources/github/resource.js +2 -2
  63. package/dist/resources/testserver/command.d.ts +208 -10
  64. package/dist/resources/testserver/command.js +7 -0
  65. package/dist/resources/testserver/commands/create/command.d.ts +808 -1
  66. package/dist/resources/testserver/commands/create/command.js +64 -23
  67. package/dist/resources/testserver/commands/create/metadata.js +6 -2
  68. package/dist/resources/testserver/commands/create/outcomes.d.ts +347 -0
  69. package/dist/resources/testserver/commands/create/outcomes.js +14 -1
  70. package/dist/resources/testserver/commands/list/command.d.ts +84 -1
  71. package/dist/resources/testserver/commands/list/command.js +1 -1
  72. package/dist/resources/testserver/commands/list/outcomes.d.ts +16 -0
  73. package/dist/resources/testserver/config.js +14 -4
  74. package/dist/resources/testserver/events.d.ts +9 -0
  75. package/dist/resources/testserver/index.js +8 -7
  76. package/dist/resources/testserver/lane.js +1 -0
  77. package/dist/resources/testserver/live/gateways.d.ts +2 -0
  78. package/dist/resources/testserver/live/gateways.js +16 -3
  79. package/dist/resources/testserver/pool/channels.d.ts +5 -2
  80. package/dist/resources/testserver/pool/channels.js +1 -1
  81. package/dist/resources/testserver/pool/create.d.ts +6 -2
  82. package/dist/resources/testserver/pool/create.js +6 -5
  83. package/dist/resources/testserver/pool/index.d.ts +1 -0
  84. package/dist/resources/testserver/pool/index.js +1 -0
  85. package/dist/resources/testserver/pool/pull-request.d.ts +89 -0
  86. package/dist/resources/testserver/pool/pull-request.js +85 -0
  87. package/dist/resources/testserver/pr-build-facts.d.ts +130 -0
  88. package/dist/resources/testserver/pr-build-facts.js +261 -0
  89. package/dist/resources/testserver/presentation.d.ts +2 -2
  90. package/dist/resources/testserver/presentation.js +12 -3
  91. package/dist/resources/testserver/provider.d.ts +16 -6
  92. package/dist/resources/testserver/provider.js +46 -15
  93. package/dist/resources/testserver/pull-request/gateways.d.ts +117 -0
  94. package/dist/resources/testserver/pull-request/gateways.js +5 -0
  95. package/dist/resources/testserver/pull-request/index.d.ts +5 -0
  96. package/dist/resources/testserver/pull-request/index.js +6 -0
  97. package/dist/resources/testserver/pull-request/live/github-rest.d.ts +28 -0
  98. package/dist/resources/testserver/pull-request/live/github-rest.js +114 -0
  99. package/dist/resources/testserver/pull-request/live/github-token-gateway.d.ts +12 -0
  100. package/dist/resources/testserver/pull-request/live/github-token-gateway.js +39 -0
  101. package/dist/resources/testserver/pull-request/live/pull-request-gateway.d.ts +10 -0
  102. package/dist/resources/testserver/pull-request/live/pull-request-gateway.js +27 -0
  103. package/dist/resources/testserver/pull-request/live/testserver-workflow-gateway.d.ts +21 -0
  104. package/dist/resources/testserver/pull-request/live/testserver-workflow-gateway.js +64 -0
  105. package/dist/resources/testserver/ran.d.ts +5 -0
  106. package/dist/resources/testserver/ran.js +19 -3
  107. package/dist/resources/testserver/resource.d.ts +5 -1
  108. package/dist/resources/testserver/resource.js +2 -2
  109. package/dist/resources/testserver/sandbox/build-reference.d.ts +38 -0
  110. package/dist/resources/testserver/sandbox/build-reference.js +79 -0
  111. package/dist/resources/testserver/sandbox/index.d.ts +1 -0
  112. package/dist/resources/testserver/sandbox/index.js +1 -0
  113. package/dist/resources.d.ts +265 -15
  114. package/dist/runner/events.d.ts +64 -1
  115. package/dist/runner/gateways.d.ts +17 -6
  116. package/dist/runner/index.d.ts +5 -4
  117. package/dist/runner/index.js +4 -3
  118. package/dist/runner/live/snapshot-records.js +18 -4
  119. package/dist/runner/prepare.d.ts +23 -4
  120. package/dist/runner/prepare.js +13 -3
  121. package/dist/runner/ready.d.ts +7 -3
  122. package/dist/runner/ready.js +11 -5
  123. package/dist/runner/scope.d.ts +17 -1
  124. package/dist/runner/scope.js +4 -0
  125. package/dist/runner/snapshot-build.d.ts +3 -1
  126. package/dist/runner/snapshot-build.js +12 -2
  127. package/dist/runner/snapshot-cache.d.ts +46 -8
  128. package/dist/runner/snapshot-cache.js +60 -11
  129. package/dist/runner/snapshot-key.d.ts +12 -1
  130. package/dist/runner/snapshot-key.js +17 -1
  131. package/dist/runner/snapshot-save.d.ts +53 -0
  132. package/dist/runner/snapshot-save.js +148 -0
  133. package/dist/sdk/index.js +2 -2
  134. package/dist/story/align.d.ts +1 -1
  135. package/dist/story/align.js +1 -1
  136. package/dist/story/command-line.d.ts +34 -0
  137. package/dist/story/command-line.js +100 -0
  138. package/dist/story/definition.d.ts +22 -15
  139. package/dist/story/definition.js +2 -2
  140. package/dist/story/errors.js +1 -1
  141. package/dist/story/gateways.d.ts +45 -25
  142. package/dist/story/gateways.js +2 -2
  143. package/dist/story/host.d.ts +11 -8
  144. package/dist/story/host.js +37 -37
  145. package/dist/story/index.d.ts +2 -1
  146. package/dist/story/index.js +6 -5
  147. package/dist/story/json.d.ts +1 -1
  148. package/dist/story/json.js +2 -2
  149. package/dist/story/live/recording-gateway.d.ts +2 -0
  150. package/dist/story/live/{artifact-gateway.js → recording-gateway.js} +33 -12
  151. package/dist/story/mode.d.ts +2 -2
  152. package/dist/story/mode.js +1 -1
  153. package/dist/story/orphans.d.ts +23 -5
  154. package/dist/story/orphans.js +44 -8
  155. package/dist/story/recording.d.ts +62 -0
  156. package/dist/story/{artifact.js → recording.js} +31 -27
  157. package/dist/story/report.d.ts +21 -9
  158. package/dist/story/report.js +37 -25
  159. package/dist/story/settle.d.ts +23 -21
  160. package/dist/story/settle.js +17 -16
  161. package/dist/story/{run.d.ts → start.d.ts} +18 -17
  162. package/dist/story/{run.js → start.js} +66 -43
  163. package/dist/vercel-cli/context.js +1 -1
  164. package/dist/vercel-cli/index.js +1 -1
  165. package/dist/vitest/config.js +2 -2
  166. package/dist/vitest/fixtures.d.ts +1 -1
  167. package/dist/vitest/fixtures.js +1 -1
  168. package/dist/vitest/index.js +3 -3
  169. package/dist/vitest/plan.js +1 -1
  170. package/package.json +3 -3
  171. package/skills/overview.md +2 -0
  172. package/skills/testserver-builds.md +80 -0
  173. package/dist/story/artifact.d.ts +0 -60
  174. package/dist/story/live/artifact-gateway.d.ts +0 -2
@@ -20,6 +20,7 @@ export declare function command(cmd: CommandBuilder<StormApp>): import("@vercel/
20
20
  }>>;
21
21
  local: z.ZodDefault<z.ZodBoolean>;
22
22
  rebuildSnapshot: z.ZodDefault<z.ZodBoolean>;
23
+ saveSnapshot: z.ZodDefault<z.ZodBoolean>;
23
24
  showOutput: z.ZodDefault<z.ZodBoolean>;
24
25
  keepSandbox: z.ZodOptional<z.ZodString>;
25
26
  verbose: z.ZodDefault<z.ZodBoolean>;
@@ -38,10 +39,555 @@ export declare function command(cmd: CommandBuilder<StormApp>): import("@vercel/
38
39
  runner: z.ZodNullable<z.ZodObject<{
39
40
  snapshotId: z.ZodString;
40
41
  base: z.ZodString;
42
+ snapshotBranch: z.ZodNullable<z.ZodString>;
43
+ snapshotHead: z.ZodNullable<z.ZodString>;
41
44
  built: z.ZodBoolean;
42
45
  vcpus: z.ZodNumber;
43
46
  region: z.ZodString;
44
47
  runtime: z.ZodString;
48
+ buildMs: z.ZodNumber;
49
+ save: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
50
+ kind: z.ZodLiteral<"saved">;
51
+ snapshotId: z.ZodString;
52
+ base: z.ZodString;
53
+ branch: z.ZodString;
54
+ head: z.ZodString;
55
+ ms: z.ZodNumber;
56
+ sizeBytes: z.ZodNumber;
57
+ entryWritten: z.ZodBoolean;
58
+ }, z.core.$strip>, z.ZodObject<{
59
+ kind: z.ZodLiteral<"skipped">;
60
+ reason: z.ZodLiteral<"detached-head">;
61
+ }, z.core.$strip>, z.ZodObject<{
62
+ kind: z.ZodLiteral<"failed">;
63
+ step: z.ZodEnum<{
64
+ "save-snapshot": "save-snapshot";
65
+ scrub: "scrub";
66
+ }>;
67
+ message: z.ZodString;
68
+ }, z.core.$strip>, z.ZodObject<{
69
+ kind: z.ZodLiteral<"stopped">;
70
+ }, z.core.$strip>], "kind">>;
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
+ }, {
125
+ ran: unknown;
126
+ }, {
127
+ credentialRejected: import("@vercel/clinkr").SharedError<"credential_rejected", [{
128
+ origin: {
129
+ source: "mint";
130
+ team: string;
131
+ project: string;
132
+ } | {
133
+ source: "github-actions";
134
+ claims: {
135
+ aud: string;
136
+ repository: string;
137
+ } | null;
138
+ };
139
+ fix: string;
140
+ status: number;
141
+ vercelId: string | null;
142
+ ttlMinutes: number;
143
+ failedCreates: {
144
+ kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
145
+ detail: string | null;
146
+ }[];
147
+ unpooled: {
148
+ testserverUrl: string;
149
+ path: string;
150
+ message: string;
151
+ }[];
152
+ sandboxMayExist: boolean;
153
+ } & {
154
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
155
+ }]>;
156
+ credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
157
+ flags: string[];
158
+ configFile: string | null;
159
+ }]>;
160
+ githubFixtureRepoUnavailable: import("@vercel/clinkr").SharedError<"github_fixture_repo_unavailable", [{
161
+ repo: string;
162
+ status: number | null;
163
+ message: string;
164
+ } & {
165
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
166
+ }]>;
167
+ githubTokenMissing: import("@vercel/clinkr").SharedError<"github_token_missing", [data: {
168
+ tokenEnv: string;
169
+ repo: string;
170
+ configFile: string | null;
171
+ requiredBy: "config" | "set";
172
+ }]>;
173
+ invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
174
+ file: string;
175
+ problems: {
176
+ key: string | null;
177
+ location: {
178
+ line: number;
179
+ column: number | null;
180
+ } | null;
181
+ problem: string;
182
+ }[];
183
+ }]>;
184
+ invalidResourceOptions: import("@vercel/clinkr").SharedError<"invalid_resource_options", [data: {
185
+ configFile: string | null;
186
+ problems: {
187
+ key: string;
188
+ problem: string;
189
+ values: {
190
+ key: string;
191
+ value: string;
192
+ source: "default" | "file" | "flag";
193
+ }[];
194
+ }[];
195
+ }]>;
196
+ mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
197
+ team: string;
198
+ project: string;
199
+ cause: string;
200
+ fix: string;
201
+ runner: boolean;
202
+ cleanup: import("./cleanup.ts").StormCleanupFacts;
203
+ }]>;
204
+ missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
205
+ configFile: string | null;
206
+ }]>;
207
+ missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
208
+ missing: ("project" | "scope")[];
209
+ }]>;
210
+ noBaseRef: import("@vercel/clinkr").SharedError<"no_base_ref", [data: {
211
+ refs: {
212
+ ref: string;
213
+ reason: "missing" | "unrelated";
214
+ }[];
215
+ }]>;
216
+ noSandboxes: import("@vercel/clinkr").SharedError<"no_sandboxes", [{
217
+ requested: number;
218
+ ttlMinutes: number;
219
+ failedCreates: {
220
+ kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
221
+ detail: string | null;
222
+ }[];
223
+ sandboxMayExist: boolean;
224
+ } & {
225
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
226
+ }]>;
227
+ noUsableSandboxes: import("@vercel/clinkr").SharedError<"no_usable_sandboxes", [{
228
+ requested: number;
229
+ build: string;
230
+ } & {
231
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
232
+ }]>;
233
+ poolUnavailable: import("@vercel/clinkr").SharedError<"pool_unavailable", [data: {
234
+ path: string;
235
+ message: string;
236
+ }]>;
237
+ poolUnreadable: import("@vercel/clinkr").SharedError<"pool_unreadable", [{
238
+ path: string;
239
+ message: string;
240
+ } & {
241
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
242
+ }]>;
243
+ prBuildExpired: import("@vercel/clinkr").SharedError<"pr_build_expired", [{
244
+ pr: number;
245
+ headSha: string;
246
+ build: string;
247
+ expiresAt: string;
248
+ } & {
249
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
250
+ }]>;
251
+ prBuildNotReady: import("@vercel/clinkr").SharedError<"pr_build_not_ready", [{
252
+ pr: number;
253
+ headSha: string;
254
+ newest: {
255
+ build: string;
256
+ headSha: string;
257
+ createdAt: string;
258
+ } | null;
259
+ } & {
260
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
261
+ }]>;
262
+ prBuildsUnlisted: import("@vercel/clinkr").SharedError<"pr_builds_unlisted", [{
263
+ pr: number;
264
+ failure: {
265
+ kind: "connect-failed" | "http-error" | "malformed" | "not-found" | "rejected" | "timeout";
266
+ status: number | null;
267
+ detail: string;
268
+ };
269
+ } & {
270
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
271
+ }]>;
272
+ pullRequestUnreadable: import("@vercel/clinkr").SharedError<"pull_request_unreadable", [{
273
+ pr: number;
274
+ repo: string;
275
+ kind: "connect-failed" | "http-error" | "malformed" | "no-token" | "not-found" | "rejected" | "timeout";
276
+ status: number | null;
277
+ message: string | null;
278
+ tokenOrigin: "GH_TOKEN" | "GITHUB_TOKEN" | "gh auth token" | null;
279
+ } & {
280
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
281
+ }]>;
282
+ runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
283
+ failure: {
284
+ kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
285
+ label: string;
286
+ exitCode: number | null;
287
+ tail: string[];
288
+ } | {
289
+ kind: "sandbox-api-failed";
290
+ operation: string;
291
+ status: number | null;
292
+ message: string;
293
+ } | {
294
+ kind: "checkout-failed";
295
+ message: string;
296
+ command: string | null;
297
+ } | {
298
+ kind: "credential-claims-missing";
299
+ team: string;
300
+ project: string;
301
+ };
302
+ cleanup: import("./cleanup.ts").StormCleanupFacts;
303
+ }]>;
304
+ snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
305
+ snapshotId: string;
306
+ base: string;
307
+ removal: {
308
+ path: string;
309
+ message: string;
310
+ } | null;
311
+ cleanup: import("./cleanup.ts").StormCleanupFacts;
312
+ }]>;
313
+ spawnFailed: import("@vercel/clinkr").SharedError<"spawn_failed", [data: {
314
+ executable: string;
315
+ message: string;
316
+ cleanup: import("./cleanup.ts").StormCleanupFacts;
317
+ }]>;
318
+ submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
319
+ paths: string[];
320
+ }]>;
321
+ tokenRequestFailed: import("@vercel/clinkr").SharedError<"token_request_failed", [{
322
+ cause: "request-failed" | "variables-missing";
323
+ missing: ("ACTIONS_ID_TOKEN_REQUEST_TOKEN" | "ACTIONS_ID_TOKEN_REQUEST_URL")[] | null;
324
+ status: number | null;
325
+ said: string | null;
326
+ detail: string;
327
+ fix: string;
328
+ ttlMinutes: number;
329
+ failedCreates: {
330
+ kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
331
+ detail: string | null;
332
+ }[];
333
+ sandboxMayExist: boolean;
334
+ } & {
335
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
336
+ }]>;
337
+ }, {
338
+ credentialRejected: import("@vercel/clinkr").SharedError<"credential_rejected", [{
339
+ origin: {
340
+ source: "mint";
341
+ team: string;
342
+ project: string;
343
+ } | {
344
+ source: "github-actions";
345
+ claims: {
346
+ aud: string;
347
+ repository: string;
348
+ } | null;
349
+ };
350
+ fix: string;
351
+ status: number;
352
+ vercelId: string | null;
353
+ ttlMinutes: number;
354
+ failedCreates: {
355
+ kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
356
+ detail: string | null;
357
+ }[];
358
+ unpooled: {
359
+ testserverUrl: string;
360
+ path: string;
361
+ message: string;
362
+ }[];
363
+ sandboxMayExist: boolean;
364
+ } & {
365
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
366
+ }]>;
367
+ credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
368
+ flags: string[];
369
+ configFile: string | null;
370
+ }]>;
371
+ githubFixtureRepoUnavailable: import("@vercel/clinkr").SharedError<"github_fixture_repo_unavailable", [{
372
+ repo: string;
373
+ status: number | null;
374
+ message: string;
375
+ } & {
376
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
377
+ }]>;
378
+ githubTokenMissing: import("@vercel/clinkr").SharedError<"github_token_missing", [data: {
379
+ tokenEnv: string;
380
+ repo: string;
381
+ configFile: string | null;
382
+ requiredBy: "config" | "set";
383
+ }]>;
384
+ invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
385
+ file: string;
386
+ problems: {
387
+ key: string | null;
388
+ location: {
389
+ line: number;
390
+ column: number | null;
391
+ } | null;
392
+ problem: string;
393
+ }[];
394
+ }]>;
395
+ invalidResourceOptions: import("@vercel/clinkr").SharedError<"invalid_resource_options", [data: {
396
+ configFile: string | null;
397
+ problems: {
398
+ key: string;
399
+ problem: string;
400
+ values: {
401
+ key: string;
402
+ value: string;
403
+ source: "default" | "file" | "flag";
404
+ }[];
405
+ }[];
406
+ }]>;
407
+ mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
408
+ team: string;
409
+ project: string;
410
+ cause: string;
411
+ fix: string;
412
+ runner: boolean;
413
+ cleanup: import("./cleanup.ts").StormCleanupFacts;
414
+ }]>;
415
+ missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
416
+ configFile: string | null;
417
+ }]>;
418
+ missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
419
+ missing: ("project" | "scope")[];
420
+ }]>;
421
+ noBaseRef: import("@vercel/clinkr").SharedError<"no_base_ref", [data: {
422
+ refs: {
423
+ ref: string;
424
+ reason: "missing" | "unrelated";
425
+ }[];
426
+ }]>;
427
+ noSandboxes: import("@vercel/clinkr").SharedError<"no_sandboxes", [{
428
+ requested: number;
429
+ ttlMinutes: number;
430
+ failedCreates: {
431
+ kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
432
+ detail: string | null;
433
+ }[];
434
+ sandboxMayExist: boolean;
435
+ } & {
436
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
437
+ }]>;
438
+ noUsableSandboxes: import("@vercel/clinkr").SharedError<"no_usable_sandboxes", [{
439
+ requested: number;
440
+ build: string;
441
+ } & {
442
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
443
+ }]>;
444
+ poolUnavailable: import("@vercel/clinkr").SharedError<"pool_unavailable", [data: {
445
+ path: string;
446
+ message: string;
447
+ }]>;
448
+ poolUnreadable: import("@vercel/clinkr").SharedError<"pool_unreadable", [{
449
+ path: string;
450
+ message: string;
451
+ } & {
452
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
453
+ }]>;
454
+ prBuildExpired: import("@vercel/clinkr").SharedError<"pr_build_expired", [{
455
+ pr: number;
456
+ headSha: string;
457
+ build: string;
458
+ expiresAt: string;
459
+ } & {
460
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
461
+ }]>;
462
+ prBuildNotReady: import("@vercel/clinkr").SharedError<"pr_build_not_ready", [{
463
+ pr: number;
464
+ headSha: string;
465
+ newest: {
466
+ build: string;
467
+ headSha: string;
468
+ createdAt: string;
469
+ } | null;
470
+ } & {
471
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
472
+ }]>;
473
+ prBuildsUnlisted: import("@vercel/clinkr").SharedError<"pr_builds_unlisted", [{
474
+ pr: number;
475
+ failure: {
476
+ kind: "connect-failed" | "http-error" | "malformed" | "not-found" | "rejected" | "timeout";
477
+ status: number | null;
478
+ detail: string;
479
+ };
480
+ } & {
481
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
482
+ }]>;
483
+ pullRequestUnreadable: import("@vercel/clinkr").SharedError<"pull_request_unreadable", [{
484
+ pr: number;
485
+ repo: string;
486
+ kind: "connect-failed" | "http-error" | "malformed" | "no-token" | "not-found" | "rejected" | "timeout";
487
+ status: number | null;
488
+ message: string | null;
489
+ tokenOrigin: "GH_TOKEN" | "GITHUB_TOKEN" | "gh auth token" | null;
490
+ } & {
491
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
492
+ }]>;
493
+ runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
494
+ failure: {
495
+ kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
496
+ label: string;
497
+ exitCode: number | null;
498
+ tail: string[];
499
+ } | {
500
+ kind: "sandbox-api-failed";
501
+ operation: string;
502
+ status: number | null;
503
+ message: string;
504
+ } | {
505
+ kind: "checkout-failed";
506
+ message: string;
507
+ command: string | null;
508
+ } | {
509
+ kind: "credential-claims-missing";
510
+ team: string;
511
+ project: string;
512
+ };
513
+ cleanup: import("./cleanup.ts").StormCleanupFacts;
514
+ }]>;
515
+ snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
516
+ snapshotId: string;
517
+ base: string;
518
+ removal: {
519
+ path: string;
520
+ message: string;
521
+ } | null;
522
+ cleanup: import("./cleanup.ts").StormCleanupFacts;
523
+ }]>;
524
+ spawnFailed: import("@vercel/clinkr").SharedError<"spawn_failed", [data: {
525
+ executable: string;
526
+ message: string;
527
+ cleanup: import("./cleanup.ts").StormCleanupFacts;
528
+ }]>;
529
+ submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
530
+ paths: string[];
531
+ }]>;
532
+ tokenRequestFailed: import("@vercel/clinkr").SharedError<"token_request_failed", [{
533
+ cause: "request-failed" | "variables-missing";
534
+ missing: ("ACTIONS_ID_TOKEN_REQUEST_TOKEN" | "ACTIONS_ID_TOKEN_REQUEST_URL")[] | null;
535
+ status: number | null;
536
+ said: string | null;
537
+ detail: string;
538
+ fix: string;
539
+ ttlMinutes: number;
540
+ failedCreates: {
541
+ kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
542
+ detail: string | null;
543
+ }[];
544
+ sandboxMayExist: boolean;
545
+ } & {
546
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
547
+ }]>;
548
+ }>, import("@vercel/clinkr").OutcomeOf<import("@vercel/clinkr").Outcomes<{
549
+ ran: z.ZodObject<{
550
+ version: z.ZodString;
551
+ commit: z.ZodNullable<z.ZodString>;
552
+ configFile: z.ZodNullable<z.ZodString>;
553
+ 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>>>;
554
+ cleanup: z.ZodType<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts>>;
555
+ command: z.ZodObject<{
556
+ exitCode: z.ZodNullable<z.ZodNumber>;
557
+ signal: z.ZodNullable<z.ZodString>;
558
+ }, z.core.$strip>;
559
+ runner: z.ZodNullable<z.ZodObject<{
560
+ snapshotId: z.ZodString;
561
+ base: z.ZodString;
562
+ snapshotBranch: z.ZodNullable<z.ZodString>;
563
+ snapshotHead: z.ZodNullable<z.ZodString>;
564
+ built: z.ZodBoolean;
565
+ vcpus: z.ZodNumber;
566
+ region: z.ZodString;
567
+ runtime: z.ZodString;
568
+ buildMs: z.ZodNumber;
569
+ save: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
570
+ kind: z.ZodLiteral<"saved">;
571
+ snapshotId: z.ZodString;
572
+ base: z.ZodString;
573
+ branch: z.ZodString;
574
+ head: z.ZodString;
575
+ ms: z.ZodNumber;
576
+ sizeBytes: z.ZodNumber;
577
+ entryWritten: z.ZodBoolean;
578
+ }, z.core.$strip>, z.ZodObject<{
579
+ kind: z.ZodLiteral<"skipped">;
580
+ reason: z.ZodLiteral<"detached-head">;
581
+ }, z.core.$strip>, z.ZodObject<{
582
+ kind: z.ZodLiteral<"failed">;
583
+ step: z.ZodEnum<{
584
+ "save-snapshot": "save-snapshot";
585
+ scrub: "scrub";
586
+ }>;
587
+ message: z.ZodString;
588
+ }, z.core.$strip>, z.ZodObject<{
589
+ kind: z.ZodLiteral<"stopped">;
590
+ }, z.core.$strip>], "kind">>;
45
591
  }, z.core.$strip>>;
46
592
  timeline: z.ZodObject<{
47
593
  startedAt: z.ZodString;
@@ -214,6 +760,256 @@ export declare function command(cmd: CommandBuilder<StormApp>): import("@vercel/
214
760
  } & {
215
761
  readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
216
762
  }]>;
763
+ prBuildExpired: import("@vercel/clinkr").SharedError<"pr_build_expired", [{
764
+ pr: number;
765
+ headSha: string;
766
+ build: string;
767
+ expiresAt: string;
768
+ } & {
769
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
770
+ }]>;
771
+ prBuildNotReady: import("@vercel/clinkr").SharedError<"pr_build_not_ready", [{
772
+ pr: number;
773
+ headSha: string;
774
+ newest: {
775
+ build: string;
776
+ headSha: string;
777
+ createdAt: string;
778
+ } | null;
779
+ } & {
780
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
781
+ }]>;
782
+ prBuildsUnlisted: import("@vercel/clinkr").SharedError<"pr_builds_unlisted", [{
783
+ pr: number;
784
+ failure: {
785
+ kind: "connect-failed" | "http-error" | "malformed" | "not-found" | "rejected" | "timeout";
786
+ status: number | null;
787
+ detail: string;
788
+ };
789
+ } & {
790
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
791
+ }]>;
792
+ pullRequestUnreadable: import("@vercel/clinkr").SharedError<"pull_request_unreadable", [{
793
+ pr: number;
794
+ repo: string;
795
+ kind: "connect-failed" | "http-error" | "malformed" | "no-token" | "not-found" | "rejected" | "timeout";
796
+ status: number | null;
797
+ message: string | null;
798
+ tokenOrigin: "GH_TOKEN" | "GITHUB_TOKEN" | "gh auth token" | null;
799
+ } & {
800
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
801
+ }]>;
802
+ runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
803
+ failure: {
804
+ kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
805
+ label: string;
806
+ exitCode: number | null;
807
+ tail: string[];
808
+ } | {
809
+ kind: "sandbox-api-failed";
810
+ operation: string;
811
+ status: number | null;
812
+ message: string;
813
+ } | {
814
+ kind: "checkout-failed";
815
+ message: string;
816
+ command: string | null;
817
+ } | {
818
+ kind: "credential-claims-missing";
819
+ team: string;
820
+ project: string;
821
+ };
822
+ cleanup: import("./cleanup.ts").StormCleanupFacts;
823
+ }]>;
824
+ snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
825
+ snapshotId: string;
826
+ base: string;
827
+ removal: {
828
+ path: string;
829
+ message: string;
830
+ } | null;
831
+ cleanup: import("./cleanup.ts").StormCleanupFacts;
832
+ }]>;
833
+ spawnFailed: import("@vercel/clinkr").SharedError<"spawn_failed", [data: {
834
+ executable: string;
835
+ message: string;
836
+ cleanup: import("./cleanup.ts").StormCleanupFacts;
837
+ }]>;
838
+ submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
839
+ paths: string[];
840
+ }]>;
841
+ tokenRequestFailed: import("@vercel/clinkr").SharedError<"token_request_failed", [{
842
+ cause: "request-failed" | "variables-missing";
843
+ missing: ("ACTIONS_ID_TOKEN_REQUEST_TOKEN" | "ACTIONS_ID_TOKEN_REQUEST_URL")[] | null;
844
+ status: number | null;
845
+ said: string | null;
846
+ detail: string;
847
+ fix: string;
848
+ ttlMinutes: number;
849
+ failedCreates: {
850
+ kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
851
+ detail: string | null;
852
+ }[];
853
+ sandboxMayExist: boolean;
854
+ } & {
855
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
856
+ }]>;
857
+ }, {
858
+ credentialRejected: import("@vercel/clinkr").SharedError<"credential_rejected", [{
859
+ origin: {
860
+ source: "mint";
861
+ team: string;
862
+ project: string;
863
+ } | {
864
+ source: "github-actions";
865
+ claims: {
866
+ aud: string;
867
+ repository: string;
868
+ } | null;
869
+ };
870
+ fix: string;
871
+ status: number;
872
+ vercelId: string | null;
873
+ ttlMinutes: number;
874
+ failedCreates: {
875
+ kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
876
+ detail: string | null;
877
+ }[];
878
+ unpooled: {
879
+ testserverUrl: string;
880
+ path: string;
881
+ message: string;
882
+ }[];
883
+ sandboxMayExist: boolean;
884
+ } & {
885
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
886
+ }]>;
887
+ credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
888
+ flags: string[];
889
+ configFile: string | null;
890
+ }]>;
891
+ githubFixtureRepoUnavailable: import("@vercel/clinkr").SharedError<"github_fixture_repo_unavailable", [{
892
+ repo: string;
893
+ status: number | null;
894
+ message: string;
895
+ } & {
896
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
897
+ }]>;
898
+ githubTokenMissing: import("@vercel/clinkr").SharedError<"github_token_missing", [data: {
899
+ tokenEnv: string;
900
+ repo: string;
901
+ configFile: string | null;
902
+ requiredBy: "config" | "set";
903
+ }]>;
904
+ invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
905
+ file: string;
906
+ problems: {
907
+ key: string | null;
908
+ location: {
909
+ line: number;
910
+ column: number | null;
911
+ } | null;
912
+ problem: string;
913
+ }[];
914
+ }]>;
915
+ invalidResourceOptions: import("@vercel/clinkr").SharedError<"invalid_resource_options", [data: {
916
+ configFile: string | null;
917
+ problems: {
918
+ key: string;
919
+ problem: string;
920
+ values: {
921
+ key: string;
922
+ value: string;
923
+ source: "default" | "file" | "flag";
924
+ }[];
925
+ }[];
926
+ }]>;
927
+ mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
928
+ team: string;
929
+ project: string;
930
+ cause: string;
931
+ fix: string;
932
+ runner: boolean;
933
+ cleanup: import("./cleanup.ts").StormCleanupFacts;
934
+ }]>;
935
+ missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
936
+ configFile: string | null;
937
+ }]>;
938
+ missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
939
+ missing: ("project" | "scope")[];
940
+ }]>;
941
+ noBaseRef: import("@vercel/clinkr").SharedError<"no_base_ref", [data: {
942
+ refs: {
943
+ ref: string;
944
+ reason: "missing" | "unrelated";
945
+ }[];
946
+ }]>;
947
+ noSandboxes: import("@vercel/clinkr").SharedError<"no_sandboxes", [{
948
+ requested: number;
949
+ ttlMinutes: number;
950
+ failedCreates: {
951
+ kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
952
+ detail: string | null;
953
+ }[];
954
+ sandboxMayExist: boolean;
955
+ } & {
956
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
957
+ }]>;
958
+ noUsableSandboxes: import("@vercel/clinkr").SharedError<"no_usable_sandboxes", [{
959
+ requested: number;
960
+ build: string;
961
+ } & {
962
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
963
+ }]>;
964
+ poolUnavailable: import("@vercel/clinkr").SharedError<"pool_unavailable", [data: {
965
+ path: string;
966
+ message: string;
967
+ }]>;
968
+ poolUnreadable: import("@vercel/clinkr").SharedError<"pool_unreadable", [{
969
+ path: string;
970
+ message: string;
971
+ } & {
972
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
973
+ }]>;
974
+ prBuildExpired: import("@vercel/clinkr").SharedError<"pr_build_expired", [{
975
+ pr: number;
976
+ headSha: string;
977
+ build: string;
978
+ expiresAt: string;
979
+ } & {
980
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
981
+ }]>;
982
+ prBuildNotReady: import("@vercel/clinkr").SharedError<"pr_build_not_ready", [{
983
+ pr: number;
984
+ headSha: string;
985
+ newest: {
986
+ build: string;
987
+ headSha: string;
988
+ createdAt: string;
989
+ } | null;
990
+ } & {
991
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
992
+ }]>;
993
+ prBuildsUnlisted: import("@vercel/clinkr").SharedError<"pr_builds_unlisted", [{
994
+ pr: number;
995
+ failure: {
996
+ kind: "connect-failed" | "http-error" | "malformed" | "not-found" | "rejected" | "timeout";
997
+ status: number | null;
998
+ detail: string;
999
+ };
1000
+ } & {
1001
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
1002
+ }]>;
1003
+ pullRequestUnreadable: import("@vercel/clinkr").SharedError<"pull_request_unreadable", [{
1004
+ pr: number;
1005
+ repo: string;
1006
+ kind: "connect-failed" | "http-error" | "malformed" | "no-token" | "not-found" | "rejected" | "timeout";
1007
+ status: number | null;
1008
+ message: string | null;
1009
+ tokenOrigin: "GH_TOKEN" | "GITHUB_TOKEN" | "gh auth token" | null;
1010
+ } & {
1011
+ readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
1012
+ }]>;
217
1013
  runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
218
1014
  failure: {
219
1015
  kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
@@ -269,4 +1065,4 @@ export declare function command(cmd: CommandBuilder<StormApp>): import("@vercel/
269
1065
  } & {
270
1066
  readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
271
1067
  }]>;
272
- }>, StormApp, false>;
1068
+ }>>, StormApp, false>;