@cnc-tools/storm 0.15.0 → 0.17.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 (305) hide show
  1. package/dist/application.d.ts +22 -13
  2. package/dist/application.js +21 -10
  3. package/dist/bin/run.d.ts +18 -0
  4. package/dist/bin/run.js +31 -0
  5. package/dist/bin/storm.js +42 -26
  6. package/dist/build-info.js +1 -1
  7. package/dist/chunks/{chunk-5CCP36QQ.js → chunk-2RNDPDTJ.js} +2 -2
  8. package/dist/chunks/chunk-2VP4GRJM.js +1219 -0
  9. package/dist/chunks/{chunk-SZEURWRS.js → chunk-4O5C2XGJ.js} +18 -15
  10. package/dist/chunks/{chunk-VL7WFTVQ.js → chunk-4WAMTUWZ.js} +419 -340
  11. package/dist/chunks/{chunk-QVS7HRU7.js → chunk-6UHIJXZG.js} +3 -3
  12. package/dist/chunks/{chunk-CN4EFA5J.js → chunk-72ZFEMAW.js} +1 -1
  13. package/dist/chunks/{chunk-4U4DZ7VG.js → chunk-7DZE67QM.js} +2 -2
  14. package/dist/chunks/{chunk-VUPZH7J2.js → chunk-BCBKYOHW.js} +1 -1
  15. package/dist/chunks/{chunk-QUHY6FGN.js → chunk-CKGZA25H.js} +1 -18
  16. package/dist/chunks/{chunk-ZG3WQ4UF.js → chunk-D27KILIA.js} +1 -1
  17. package/dist/chunks/{chunk-KC4KDJ5K.js → chunk-DADEYJDW.js} +174 -153
  18. package/dist/chunks/{chunk-R7XVBZOY.js → chunk-EEENLQHE.js} +59 -11
  19. package/dist/chunks/chunk-F4MOYHRY.js +198 -0
  20. package/dist/chunks/{chunk-CXAT7ZKP.js → chunk-FNBB6V4R.js} +1 -1
  21. package/dist/chunks/{chunk-OX7X4B2L.js → chunk-GRT3UIBV.js} +18 -1
  22. package/dist/chunks/chunk-HP3CURSZ.js +88 -0
  23. package/dist/chunks/{chunk-PN5ULTTH.js → chunk-HWIQ2S7K.js} +5 -5
  24. package/dist/chunks/chunk-JN3YY6ZH.js +2166 -0
  25. package/dist/chunks/{chunk-TJNFVNKR.js → chunk-LKTZ5OXS.js} +1 -1
  26. package/dist/chunks/{chunk-XEVHP5ZW.js → chunk-M7EKRGVD.js} +8 -8
  27. package/dist/chunks/chunk-MR77L2GK.js +340 -0
  28. package/dist/chunks/{chunk-L36GBUBB.js → chunk-RNAS7JHE.js} +1755 -522
  29. package/dist/chunks/{chunk-5GBMR4HM.js → chunk-RWIXDDCK.js} +4 -192
  30. package/dist/chunks/{chunk-5VXBKPW6.js → chunk-WV3DP6NR.js} +1 -1
  31. package/dist/chunks/{chunk-AWBSONHB.js → chunk-XBDRVFEV.js} +55 -16
  32. package/dist/chunks/{chunk-YV7GE6EV.js → chunk-YEPFSLQR.js} +480 -375
  33. package/dist/chunks/{live-app-PI3BAN6Y.js → live-app-R76JQXZL.js} +15 -13
  34. package/dist/commands/exec/across-sandboxes-outcomes.d.ts +1 -1
  35. package/dist/commands/exec/across-sandboxes-outcomes.js +4 -3
  36. package/dist/commands/exec/before-run.d.ts +123 -0
  37. package/dist/commands/exec/before-run.js +105 -0
  38. package/dist/commands/exec/command.d.ts +39 -4
  39. package/dist/commands/exec/command.js +31 -95
  40. package/dist/commands/exec/driver-plan.d.ts +9 -4
  41. package/dist/commands/exec/driver-plan.js +8 -8
  42. package/dist/commands/exec/exec-words.js +1 -1
  43. package/dist/commands/exec/execute-run.d.ts +39 -0
  44. package/dist/commands/exec/execute-run.js +325 -0
  45. package/dist/commands/exec/live-view.d.ts +3 -3
  46. package/dist/commands/exec/live-view.js +16 -15
  47. package/dist/commands/exec/metadata.js +1 -1
  48. package/dist/commands/exec/mint-failed.d.ts +38 -0
  49. package/dist/commands/exec/mint-failed.js +27 -4
  50. package/dist/commands/exec/outcomes.d.ts +38 -9
  51. package/dist/commands/exec/outcomes.js +32 -25
  52. package/dist/commands/exec/plan-run.d.ts +58 -150
  53. package/dist/commands/exec/plan-run.js +232 -88
  54. package/dist/commands/exec/planned-outcome.js +8 -1
  55. package/dist/commands/exec/progress.d.ts +10 -6
  56. package/dist/commands/exec/progress.js +38 -25
  57. package/dist/commands/exec/run-bin.d.ts +11 -11
  58. package/dist/commands/exec/run-bin.js +9 -9
  59. package/dist/commands/exec/run-flags.d.ts +69 -0
  60. package/dist/commands/exec/run-flags.js +58 -0
  61. package/dist/commands/exec/run-metadata.js +5 -5
  62. package/dist/commands/exec/run-summary.d.ts +58 -0
  63. package/dist/commands/exec/run-summary.js +205 -0
  64. package/dist/commands/exec/runner-refusals.d.ts +82 -0
  65. package/dist/commands/exec/runner-refusals.js +71 -0
  66. package/dist/commands/exec/sandbox-progress.js +3 -0
  67. package/dist/commands/exec/stopped-outcome.d.ts +12 -0
  68. package/dist/commands/exec/stopped-outcome.js +77 -0
  69. package/dist/commands/exec/view.d.ts +20 -11
  70. package/dist/commands/exec/view.js +103 -47
  71. package/dist/commands/runs/facts.d.ts +9 -4
  72. package/dist/commands/runs/facts.js +28 -11
  73. package/dist/commands/runs/list/command.d.ts +16 -6
  74. package/dist/commands/runs/list/command.js +10 -10
  75. package/dist/commands/runs/list/outcomes.d.ts +8 -3
  76. package/dist/commands/runs/logs/command.d.ts +6 -2
  77. package/dist/commands/runs/logs/command.js +10 -10
  78. package/dist/commands/runs/logs/outcomes.d.ts +3 -1
  79. package/dist/commands/runs/past-run.d.ts +14 -5
  80. package/dist/commands/runs/past-run.js +16 -5
  81. package/dist/commands/runs/show/command.d.ts +20 -8
  82. package/dist/commands/runs/show/command.js +30 -28
  83. package/dist/commands/runs/show/outcomes.d.ts +10 -4
  84. package/dist/commands/runs/show/outcomes.js +7 -5
  85. package/dist/commands/snapshots/access.d.ts +111 -0
  86. package/dist/commands/snapshots/access.js +96 -0
  87. package/dist/commands/snapshots/build/command.d.ts +360 -93
  88. package/dist/commands/snapshots/build/command.js +446 -150
  89. package/dist/commands/snapshots/build/metadata.d.ts +10 -0
  90. package/dist/commands/snapshots/build/metadata.js +31 -11
  91. package/dist/commands/snapshots/build/outcomes.d.ts +234 -43
  92. package/dist/commands/snapshots/build/outcomes.js +200 -36
  93. package/dist/commands/snapshots/list/command.d.ts +368 -27
  94. package/dist/commands/snapshots/list/command.js +296 -66
  95. package/dist/commands/snapshots/list/metadata.d.ts +16 -0
  96. package/dist/commands/snapshots/list/metadata.js +29 -6
  97. package/dist/commands/snapshots/list/outcomes.d.ts +245 -13
  98. package/dist/commands/snapshots/list/outcomes.js +221 -50
  99. package/dist/commands/snapshots/metadata.js +1 -1
  100. package/dist/commands/snapshots/prune/command.d.ts +430 -0
  101. package/dist/commands/snapshots/prune/command.js +161 -0
  102. package/dist/commands/snapshots/prune/metadata.d.ts +28 -0
  103. package/dist/commands/snapshots/prune/metadata.js +39 -0
  104. package/dist/commands/snapshots/prune/outcomes.d.ts +208 -0
  105. package/dist/commands/snapshots/prune/outcomes.js +78 -0
  106. package/dist/commands/suites/list/command.js +19 -18
  107. package/dist/commands/suites/list/outcomes.js +4 -4
  108. package/dist/commands/test/command.d.ts +39 -4
  109. package/dist/commands/test/command.js +50 -255
  110. package/dist/commands/test/metadata.js +1 -1
  111. package/dist/commands/test/outcomes.d.ts +19 -2
  112. package/dist/commands/test/outcomes.js +2 -2
  113. package/dist/config/check-runner.d.ts +5 -3
  114. package/dist/config/check-runner.js +33 -7
  115. package/dist/config/check-suites.js +1 -0
  116. package/dist/config/credential-resolver.d.ts +50 -5
  117. package/dist/config/credential-resolver.js +51 -19
  118. package/dist/config/credential-settle.d.ts +6 -2
  119. package/dist/config/credential-settle.js +11 -5
  120. package/dist/config/gateways.d.ts +7 -3
  121. package/dist/config/index.d.ts +4 -5
  122. package/dist/config/index.js +3 -4
  123. package/dist/config/live/config-gateway.js +5 -2
  124. package/dist/config/load.d.ts +21 -4
  125. package/dist/config/load.js +129 -15
  126. package/dist/config/runner.d.ts +7 -8
  127. package/dist/config/runner.js +1 -1
  128. package/dist/config/schema.d.ts +17 -5
  129. package/dist/config/schema.js +11 -3
  130. package/dist/config/typed-options.d.ts +1 -6
  131. package/dist/config/typed-options.js +2 -10
  132. package/dist/config-file/define.d.ts +1 -11
  133. package/dist/config-file/define.js +3 -3
  134. package/dist/config-file/runner.d.ts +5 -6
  135. package/dist/config-file/toolchain.d.ts +13 -7
  136. package/dist/config-file/toolchain.js +53 -37
  137. package/dist/context.d.ts +8 -6
  138. package/dist/context.js +7 -6
  139. package/dist/core/across-sandboxes.d.ts +7 -6
  140. package/dist/core/across-sandboxes.js +123 -152
  141. package/dist/core/coordinator.d.ts +166 -0
  142. package/dist/core/coordinator.js +233 -0
  143. package/dist/core/events.d.ts +2 -2
  144. package/dist/core/index.d.ts +4 -2
  145. package/dist/core/index.js +1 -1
  146. package/dist/core/outcomes.d.ts +148 -0
  147. package/dist/core/{sandbox-end.js → outcomes.js} +28 -4
  148. package/dist/core/resources.d.ts +31 -53
  149. package/dist/core/resources.js +32 -70
  150. package/dist/core/run-state.d.ts +7 -1
  151. package/dist/core/run-state.js +2 -0
  152. package/dist/core/run.d.ts +32 -236
  153. package/dist/core/run.js +106 -266
  154. package/dist/core/state-directory.d.ts +1 -1
  155. package/dist/core/state-directory.js +2 -2
  156. package/dist/credential/gateways.d.ts +15 -1
  157. package/dist/credential/index.d.ts +4 -3
  158. package/dist/credential/index.js +3 -2
  159. package/dist/credential/live/vercel-cli-gateway.d.ts +1 -1
  160. package/dist/credential/live/vercel-cli-gateway.js +1 -1
  161. package/dist/credential/live/vercel-oidc-token-gateway.d.ts +11 -0
  162. package/dist/credential/live/vercel-oidc-token-gateway.js +16 -0
  163. package/dist/credential/source.d.ts +73 -6
  164. package/dist/credential/source.js +55 -2
  165. package/dist/extension-commands.d.ts +6 -1
  166. package/dist/extension-commands.js +15 -1
  167. package/dist/extensions/github/resource.d.ts +1 -1
  168. package/dist/extensions/github/resource.js +1 -1
  169. package/dist/extensions/testserver/commands/pool/create/command.d.ts +35 -2
  170. package/dist/extensions/testserver/commands/pool/create/command.js +7 -7
  171. package/dist/extensions/testserver/commands/pool/create/metadata.js +5 -5
  172. package/dist/extensions/testserver/commands/pool/create/outcomes.d.ts +17 -1
  173. package/dist/extensions/testserver/commands/pool/list/command.js +4 -4
  174. package/dist/extensions/testserver/credential-facts.d.ts +6 -2
  175. package/dist/extensions/testserver/credential-facts.js +29 -11
  176. package/dist/extensions/testserver/lifecycle.js +7 -1
  177. package/dist/extensions/testserver/limit.d.ts +3 -0
  178. package/dist/extensions/testserver/limit.js +3 -0
  179. package/dist/extensions/testserver/provision.d.ts +8 -1
  180. package/dist/extensions/testserver/provision.js +8 -3
  181. package/dist/extensions/testserver/refusals.d.ts +6 -1
  182. package/dist/extensions/testserver/refusals.js +16 -1
  183. package/dist/extensions/testserver/resource.d.ts +2 -2
  184. package/dist/extensions/testserver/resource.js +2 -2
  185. package/dist/extensions/testserver/result.d.ts +1 -1
  186. package/dist/extensions/testserver/result.js +9 -4
  187. package/dist/planning/driver-file-lists.d.ts +0 -15
  188. package/dist/planning/driver-file-lists.js +2 -21
  189. package/dist/planning/plan-only.d.ts +7 -15
  190. package/dist/planning/plan-only.js +16 -22
  191. package/dist/planning/run-kind-flags.js +2 -2
  192. package/dist/planning/run-plan.d.ts +45 -13
  193. package/dist/planning/run-plan.js +4 -3
  194. package/dist/planning/suites.d.ts +1 -1
  195. package/dist/planning/suites.js +2 -2
  196. package/dist/planning/test-plan.d.ts +9 -0
  197. package/dist/planning/test-plan.js +10 -2
  198. package/dist/run-directory/recording.js +2 -2
  199. package/dist/run-directory/run-record.d.ts +21 -6
  200. package/dist/run-directory/run-record.js +12 -9
  201. package/dist/runner/base.d.ts +0 -6
  202. package/dist/runner/base.js +1 -16
  203. package/dist/runner/build-snapshots.d.ts +55 -29
  204. package/dist/runner/build-snapshots.js +135 -35
  205. package/dist/runner/context.d.ts +15 -7
  206. package/dist/runner/context.js +19 -6
  207. package/dist/runner/events.d.ts +16 -10
  208. package/dist/runner/gateways.d.ts +92 -21
  209. package/dist/runner/gateways.js +1 -1
  210. package/dist/runner/index.d.ts +11 -7
  211. package/dist/runner/index.js +9 -4
  212. package/dist/runner/live/sandbox-errors.d.ts +2 -0
  213. package/dist/runner/live/sandbox-errors.js +4 -0
  214. package/dist/runner/live/sandbox-gateway.js +141 -3
  215. package/dist/runner/live/snapshot-index-gateway.d.ts +12 -0
  216. package/dist/runner/live/{snapshot-cache-gateway.js → snapshot-index-gateway.js} +11 -11
  217. package/dist/runner/live/snapshot-records.js +6 -7
  218. package/dist/runner/local-snapshot-index.d.ts +199 -0
  219. package/dist/runner/local-snapshot-index.js +211 -0
  220. package/dist/runner/network-policy.d.ts +6 -6
  221. package/dist/runner/network-policy.js +7 -7
  222. package/dist/runner/policy-writes.d.ts +1 -1
  223. package/dist/runner/policy-writes.js +1 -1
  224. package/dist/runner/prepare.d.ts +25 -24
  225. package/dist/runner/prepare.js +28 -20
  226. package/dist/runner/ready.d.ts +18 -10
  227. package/dist/runner/ready.js +104 -33
  228. package/dist/runner/sandboxed-command.d.ts +3 -3
  229. package/dist/runner/sandboxed-command.js +3 -3
  230. package/dist/runner/scope.d.ts +10 -6
  231. package/dist/runner/scope.js +10 -3
  232. package/dist/runner/secrets.d.ts +13 -13
  233. package/dist/runner/secrets.js +18 -15
  234. package/dist/runner/session.d.ts +8 -8
  235. package/dist/runner/session.js +3 -3
  236. package/dist/runner/shared-snapshot-entry.d.ts +92 -0
  237. package/dist/runner/shared-snapshot-entry.js +168 -0
  238. package/dist/runner/shared-snapshot-list.d.ts +81 -0
  239. package/dist/runner/shared-snapshot-list.js +155 -0
  240. package/dist/runner/shared-snapshot-lookup.d.ts +51 -0
  241. package/dist/runner/shared-snapshot-lookup.js +118 -0
  242. package/dist/runner/shared-snapshot-prune.d.ts +58 -0
  243. package/dist/runner/shared-snapshot-prune.js +133 -0
  244. package/dist/runner/snapshot-build.d.ts +42 -14
  245. package/dist/runner/snapshot-build.js +38 -28
  246. package/dist/runner/snapshot-choice.js +1 -1
  247. package/dist/runner/snapshot-inspect.d.ts +39 -40
  248. package/dist/runner/snapshot-inspect.js +58 -38
  249. package/dist/runner/snapshot-key.d.ts +30 -21
  250. package/dist/runner/snapshot-key.js +49 -29
  251. package/dist/runner/steps.d.ts +1 -1
  252. package/dist/runner/steps.js +1 -1
  253. package/dist/runner/{recipe-check.d.ts → vercel-sandbox-check.d.ts} +2 -2
  254. package/dist/runner/{recipe-check.js → vercel-sandbox-check.js} +3 -2
  255. package/dist/runner/{recipe.d.ts → vercel-sandbox-options.d.ts} +82 -82
  256. package/dist/runner/vercel-sandbox-options.js +510 -0
  257. package/dist/runner/{recipe-secrets.d.ts → vercel-sandbox-secrets.d.ts} +6 -6
  258. package/dist/runner/{recipe-secrets.js → vercel-sandbox-secrets.js} +20 -20
  259. package/dist/sdk/extension/commands.d.ts +8 -3
  260. package/dist/sdk/extension/commands.js +3 -1
  261. package/dist/sdk/extension/credential-diagnosis.d.ts +3 -1
  262. package/dist/sdk/extension/credential-diagnosis.js +25 -5
  263. package/dist/sdk/extension/credential-source.d.ts +20 -3
  264. package/dist/sdk/extension/credential-source.js +4 -4
  265. package/dist/sdk/extension/index.d.ts +3 -2
  266. package/dist/sdk/extension/index.js +2 -1
  267. package/dist/sdk/extension/resource-definition.d.ts +4 -3
  268. package/dist/sdk/extension/resource-definition.js +3 -2
  269. package/dist/sdk/extension/resource-factory.js +3 -4
  270. package/dist/sdk/extension/secret-source.d.ts +1 -1
  271. package/dist/sdk/extension/secret-source.js +1 -1
  272. package/dist/sdk/extension/vercel-oidc-facts.d.ts +20 -0
  273. package/dist/sdk/extension/vercel-oidc-facts.js +20 -0
  274. package/dist/sdk/run/present.d.ts +3 -3
  275. package/dist/sdk/run/present.js +1 -3
  276. package/dist/shared/cleanup.d.ts +3 -3
  277. package/dist/shared/cleanup.js +15 -5
  278. package/dist/shared/snapshot-text.d.ts +4 -4
  279. package/dist/shared/snapshot-text.js +11 -11
  280. package/dist/time/duration.js +1 -1
  281. package/package.json +3 -2
  282. package/skills/overview.md +6 -4
  283. package/skills/plan-runs.md +2 -2
  284. package/skills/read-run-output.md +6 -6
  285. package/dist/chunks/chunk-E4PJNZVG.js +0 -783
  286. package/dist/chunks/chunk-RAQEXKL6.js +0 -2591
  287. package/dist/commands/exec/across-sandboxes-run.d.ts +0 -180
  288. package/dist/commands/exec/across-sandboxes-run.js +0 -339
  289. package/dist/commands/exec/plan-only.d.ts +0 -10
  290. package/dist/commands/exec/plan-only.js +0 -46
  291. package/dist/commands/exec/run-command.d.ts +0 -476
  292. package/dist/commands/exec/run-command.js +0 -604
  293. package/dist/commands/exec/run-planned.d.ts +0 -20
  294. package/dist/commands/exec/run-planned.js +0 -22
  295. package/dist/commands/exec/sandbox-view.d.ts +0 -19
  296. package/dist/commands/exec/sandbox-view.js +0 -72
  297. package/dist/commands/test/plan.d.ts +0 -92
  298. package/dist/commands/test/plan.js +0 -128
  299. package/dist/config/recipe-run.d.ts +0 -33
  300. package/dist/config/recipe-run.js +0 -28
  301. package/dist/core/sandbox-end.d.ts +0 -64
  302. package/dist/runner/live/snapshot-cache-gateway.d.ts +0 -12
  303. package/dist/runner/recipe.js +0 -425
  304. package/dist/runner/snapshot-cache.d.ts +0 -148
  305. package/dist/runner/snapshot-cache.js +0 -126
@@ -0,0 +1,12 @@
1
+ import type { RunOutcome } from "../../core/index.ts";
2
+ /** Every outcome of a run that stopped before its command finished. */
3
+ export type StoppedRunOutcome = Exclude<RunOutcome, {
4
+ readonly kind: "ran";
5
+ } | {
6
+ readonly kind: "sandboxes_ran";
7
+ }>;
8
+ /** Maps a stopped run outcome to its Clinkr error outcome, including cleanup and cancellation facts. */
9
+ export declare function mapStoppedOutcome(outcome: StoppedRunOutcome, canceledOptions?: {
10
+ readonly commandLine?: string;
11
+ readonly keptLines?: readonly string[];
12
+ }): import("@vercel/clinkr").ClinkrError<"canceled"> | import("@vercel/clinkr").CommandError<"mint_failed"> | import("@vercel/clinkr").CommandError<"resource_refused"> | import("@vercel/clinkr").CommandError<"runner_failed"> | import("@vercel/clinkr").CommandError<"snapshot_gone"> | import("@vercel/clinkr").CommandError<"spawn_failed"> | import("@vercel/clinkr").CommandError<"vercel_oidc_token_failed">;
@@ -0,0 +1,77 @@
1
+ // Mapping stopped core run outcomes (`RunOutcome` minus `ran` and `sandboxes_ran`) to Clinkr error and cancellation
2
+ // outcomes, including cleanup facts and kept/unstopped runner sandbox notices.
3
+ import { describeMintFailure, vercelOidcTokenFailureFacts } from "../../credential/index.js";
4
+ import { DEFINITION_SET } from "../../extensions.js";
5
+ import { keptText, notDeletedText, notKeptText, notStoppedText, RUN_CLEANUP, } from "../../shared/cleanup.js";
6
+ import { mintFailedErrors } from "./mint-failed.js";
7
+ import { outcomes, runErrors } from "./outcomes.js";
8
+ import { resourceRefused } from "./resource-refusals.js";
9
+ import { runnerFailureFacts } from "./runner-refusals.js";
10
+ /** Maps a stopped run outcome to its Clinkr error outcome, including cleanup and cancellation facts. */
11
+ export function mapStoppedOutcome(outcome, canceledOptions) {
12
+ switch (outcome.kind) {
13
+ case "resource_refused":
14
+ return resourceRefused(outcome, RUN_CLEANUP.facts(outcome));
15
+ case "mint_failed":
16
+ return mintFailedErrors.mintFailed({
17
+ ...outcome.target,
18
+ ...describeMintFailure(outcome.failure, outcome.target),
19
+ runner: outcome.runner,
20
+ cleanup: RUN_CLEANUP.facts(outcome),
21
+ });
22
+ case "vercel_oidc_token_failed":
23
+ return mintFailedErrors.vercelOidcTokenFailed({
24
+ ...vercelOidcTokenFailureFacts(outcome.failure),
25
+ runner: outcome.runner,
26
+ cleanup: RUN_CLEANUP.facts(outcome),
27
+ });
28
+ case "spawn_failed":
29
+ return runErrors.spawnFailed({
30
+ executable: outcome.executable,
31
+ message: outcome.message,
32
+ cleanup: RUN_CLEANUP.facts({ runnerCleanup: null, resourceCleanup: outcome.resourceCleanup }),
33
+ });
34
+ case "canceled":
35
+ return outcomes.canceled({ changed: canceledChanges(outcome, canceledOptions) });
36
+ case "runner_failed":
37
+ return runErrors.runnerFailed({
38
+ failure: runnerFailureFacts(outcome.failure),
39
+ cleanup: RUN_CLEANUP.facts(outcome),
40
+ });
41
+ case "snapshot_gone":
42
+ return runErrors.snapshotGone({
43
+ snapshotId: outcome.entry.snapshotId,
44
+ base: outcome.entry.base,
45
+ removal: outcome.removal === undefined ? null : { ...outcome.removal },
46
+ cleanup: RUN_CLEANUP.facts(outcome),
47
+ });
48
+ }
49
+ }
50
+ function canceledChanges(outcome, options = {}) {
51
+ const { commandStopped } = outcome;
52
+ const lines = [
53
+ options.commandLine ??
54
+ (commandStopped === true ? "The command was stopped in the runner sandbox." : "The command didn't run."),
55
+ ];
56
+ const cleanup = RUN_CLEANUP.facts(outcome).runner;
57
+ if (cleanup !== null)
58
+ lines.push(...runnerCleanupLines(cleanup, options.keptLines));
59
+ else if (options.keptLines !== undefined)
60
+ lines.push(...options.keptLines);
61
+ lines.push(...DEFINITION_SET.reports.canceledLines(outcome.resourceCleanup));
62
+ return lines.join("\n");
63
+ }
64
+ function runnerCleanupLines({ kept, notKept, notStopped, notDeleted }, keptLines) {
65
+ const problems = [
66
+ ...(notKept === null ? [] : [notKeptText(notKept)]),
67
+ ...notStopped.map(notStoppedText),
68
+ ...notDeleted.map(notDeletedText),
69
+ ];
70
+ const allKept = [...(kept === null ? [] : [keptText(kept)]), ...(keptLines ?? [])];
71
+ if (allKept.length === 0)
72
+ return problems.length === 0 ? ["Every sandbox the runner started is stopped and deleted."] : problems;
73
+ return [
74
+ ...allKept,
75
+ ...(problems.length === 0 ? ["Every other sandbox the runner started is stopped and deleted."] : problems),
76
+ ];
77
+ }
@@ -1,8 +1,11 @@
1
1
  import type { ColorDepth } from "@vercel/clinkr";
2
- import type { Presentation } from "../../presentation.ts";
3
2
  import { type ProgressTerminal, type RunObserver } from "../../core/index.ts";
3
+ import type { Presentation } from "../../presentation.ts";
4
4
  import type { RunnerTerminal } from "../../runner/index.ts";
5
- import type { Clock } from "../../time/index.ts";
5
+ import type { Clock, Timer } from "../../time/index.ts";
6
+ import type { SandboxProgress } from "./sandbox-progress.ts";
7
+ /** How long the plain multi-sandbox view waits before asking again for progress lines that came due. */
8
+ export declare const PROGRESS_TICK_MS = 1000;
6
9
  /** A run's view: what hears its events, where the command's output goes, and how the summary prints. */
7
10
  export interface RunView {
8
11
  readonly observer: RunObserver;
@@ -10,16 +13,22 @@ export interface RunView {
10
13
  readonly runnerTerminal: RunnerTerminal;
11
14
  /** The width the summary is laid out in. */
12
15
  readonly width: number;
13
- /** The color depth stderr supports for the summary waterfall; `"none"` when color is off or under `--json`. */
16
+ /** The color depth stderr supports for the summary; `"none"` when color is off or under `--json`. */
14
17
  readonly colorDepth: ColorDepth;
15
- /** Ends any live region, then prints `summary`'s lines; under `--json`, prints nothing. */
16
- finish(summary: readonly string[]): Promise<void>;
18
+ /** Ends any live region or tick loop, then prints `summary`'s lines; under `--json`, prints nothing. */
19
+ finish(summary?: readonly string[]): Promise<void>;
17
20
  }
21
+ /** Whether the view renders a single run or a run across runner sandboxes. */
22
+ export type RunViewMode = {
23
+ readonly kind: "single";
24
+ readonly showOutput: boolean;
25
+ readonly verbose: boolean;
26
+ } | {
27
+ readonly kind: "sandboxes";
28
+ readonly progress: SandboxProgress;
29
+ };
18
30
  /**
19
- * The view for `presentation`. Without `progress`, as under `--json`, it shows nothing. A plain view writes its
20
- * lines through `progress`; a live view draws on `context.progressTerminal`, where the command's output also goes,
21
- * above the live region, and with `showOutput` each step's output too. `verbose` tells each resource's presentation,
22
- * which may then add lines of its own, and adds each step's output to a live view.
31
+ * The view for `presentation` and `mode`. Without `progress`, as under `--json`, it shows nothing.
23
32
  */
24
33
  export declare function runView(options: {
25
34
  readonly presentation: Presentation;
@@ -28,7 +37,7 @@ export declare function runView(options: {
28
37
  readonly progressTerminal: ProgressTerminal;
29
38
  readonly runnerTerminal: RunnerTerminal;
30
39
  readonly clock: Clock;
40
+ readonly timer?: Timer;
31
41
  };
32
- readonly showOutput: boolean;
33
- readonly verbose: boolean;
42
+ readonly mode: RunViewMode;
34
43
  }): RunView;
@@ -1,22 +1,21 @@
1
- // How a run shows as it goes and once it is done, by presentation: nothing under `--json`, plain lines, or a live view
2
- // on a terminal. Each view also says where the command's output goes, wherever the command runs, so the live region is
3
- // the one writer on the terminal.
1
+ // Unified run view for single runs and runs across runner sandboxes, by presentation: nothing under `--json`, plain
2
+ // lines (with optional 1-second tick loop for multi-sandbox progress), or a live view on a terminal. All write loops
3
+ // share `droppingWriter` so EIO errors drop subsequent lines without aborting cleanup.
4
4
  import { EMPTY_RUN_STATE, } from "../../core/index.js";
5
5
  import { DEFINITION_SET } from "../../extensions.js";
6
- import { activePhase, headerLine, phaseFrame, phaseRecord } from "./live-view.js";
7
- import { snapshotBuildTexts, cacheWriteFailureText, lineProgress, preparedNoteTexts, progressLine, resourceWarningText, skippedText, } from "./progress.js";
8
6
  import { paint } from "../../shared/text.js";
7
+ import { activePhase, headerLine, phaseFrame, phaseRecord } from "./live-view.js";
8
+ import { droppingWriter, lineProgress, localIndexWriteFailureText, preparedNoteTexts, progressLine, resourceWarningText, sharedSnapshotLookupFailedText, skippedText, snapshotBuildTexts, } from "./progress.js";
9
+ /** How long the plain multi-sandbox view waits before asking again for progress lines that came due. */
10
+ export const PROGRESS_TICK_MS = 1_000;
9
11
  /** The plain summary's width when stderr reports none: 80 columns. */
10
12
  const PLAIN_WIDTH = 80;
11
13
  /**
12
- * The view for `presentation`. Without `progress`, as under `--json`, it shows nothing. A plain view writes its
13
- * lines through `progress`; a live view draws on `context.progressTerminal`, where the command's output also goes,
14
- * above the live region, and with `showOutput` each step's output too. `verbose` tells each resource's presentation,
15
- * which may then add lines of its own, and adds each step's output to a live view.
14
+ * The view for `presentation` and `mode`. Without `progress`, as under `--json`, it shows nothing.
16
15
  */
17
16
  export function runView(options) {
18
- const { presentation, progress, context } = options;
19
- if (progress === undefined)
17
+ const { presentation, progress, context, mode } = options;
18
+ if (progress === undefined) {
20
19
  return {
21
20
  observer: { observe: async () => { } },
22
21
  runnerTerminal: context.runnerTerminal,
@@ -24,52 +23,115 @@ export function runView(options) {
24
23
  colorDepth: "none",
25
24
  finish: async () => { },
26
25
  };
26
+ }
27
+ const plainWidth = Math.min(Math.max(presentation.columns ?? PLAIN_WIDTH, 60), 120);
28
+ if (mode.kind === "sandboxes") {
29
+ const writer = droppingWriter(progress);
30
+ const writeLines = async (lines) => {
31
+ for (const line of lines)
32
+ await writer(line);
33
+ };
34
+ if (presentation.kind === "live") {
35
+ return sandboxesLiveView(context, presentation.colorDepth, plainWidth, mode.progress, writeLines);
36
+ }
37
+ return sandboxesPlainView(context, presentation.colorDepth, plainWidth, mode.progress, writeLines);
38
+ }
27
39
  if (presentation.kind === "plain") {
28
40
  const writer = droppingWriter(progress);
29
41
  return {
30
- observer: lineProgress(writer, { github: presentation.github, verbose: options.verbose }),
42
+ observer: lineProgress(writer, { github: presentation.github, verbose: mode.verbose }),
31
43
  runnerTerminal: context.runnerTerminal,
32
- width: Math.min(Math.max(presentation.columns ?? PLAIN_WIDTH, 60), 120),
44
+ width: plainWidth,
33
45
  colorDepth: presentation.colorDepth,
34
- finish: async (summary) => {
46
+ finish: async (summary = []) => {
35
47
  for (const line of summary)
36
48
  await writer(line);
37
49
  },
38
50
  };
39
51
  }
40
- return liveView(context, presentation.colorDepth, {
41
- showOutput: options.showOutput || options.verbose,
42
- verbose: options.verbose,
52
+ return singleLiveView(context, presentation.colorDepth, {
53
+ showOutput: mode.showOutput || mode.verbose,
54
+ verbose: mode.verbose,
43
55
  });
44
56
  }
45
- /** `write`, until a write fails: then it drops every later line and still resolves. */
46
- function droppingWriter(write) {
47
- let failed = false;
48
- return async (line) => {
49
- if (failed)
50
- return;
51
- try {
52
- await write(line);
53
- }
54
- catch {
55
- failed = true;
56
- }
57
+ function sandboxesLiveView(context, colorDepth, width, status, writeSummary) {
58
+ const terminal = context.progressTerminal;
59
+ const style = paint(colorDepth !== "none");
60
+ let shown = false;
61
+ let finished = false;
62
+ return {
63
+ observer: {
64
+ observe: async (timed) => {
65
+ if (finished)
66
+ return;
67
+ const lines = status.lines(timed);
68
+ if (lines.length > 0)
69
+ terminal.print("stderr", lines.map((line) => `${line}\n`).join(""));
70
+ if (!shown && timed.event.kind === "sandboxes-started") {
71
+ shown = true;
72
+ terminal.show(() => (finished ? [] : status.rows(context.clock.now().getTime(), style)));
73
+ }
74
+ },
75
+ },
76
+ runnerTerminal: context.runnerTerminal,
77
+ width,
78
+ colorDepth,
79
+ finish: async (summary = []) => {
80
+ if (finished)
81
+ return;
82
+ finished = true;
83
+ if (shown)
84
+ terminal.settle();
85
+ await writeSummary(summary);
86
+ },
87
+ };
88
+ }
89
+ function sandboxesPlainView(context, colorDepth, width, status, writeLines) {
90
+ const abort = new AbortController();
91
+ if (context.timer !== undefined) {
92
+ const { timer, clock } = context;
93
+ const tick = async () => {
94
+ for (;;) {
95
+ await timer.sleep(PROGRESS_TICK_MS, abort.signal);
96
+ if (abort.signal.aborted)
97
+ return;
98
+ await writeLines(status.tick(clock.now().getTime()));
99
+ }
100
+ };
101
+ void tick();
102
+ }
103
+ let finished = false;
104
+ return {
105
+ observer: {
106
+ observe: async (timed) => {
107
+ if (finished)
108
+ return;
109
+ await writeLines(status.lines(timed));
110
+ },
111
+ },
112
+ runnerTerminal: context.runnerTerminal,
113
+ width,
114
+ colorDepth,
115
+ finish: async (summary = []) => {
116
+ if (finished)
117
+ return;
118
+ finished = true;
119
+ abort.abort();
120
+ await writeLines(summary);
121
+ },
57
122
  };
58
123
  }
59
124
  /**
60
- * The live view: the run's phases in order. The phase that runs shows in the live region, drawn from the state the
61
- * run's events build; once the next starts, it is printed above in its final form, so the terminal reads in time order.
62
- * The command's output, wherever the command runs, prints above the region as it arrives. What a phase can't hold, such
63
- * as a cache note or a resource's notice, is printed above as it happens, as a plain line.
125
+ * The live view for a single run: its phases in order. The active phase shows in the live region, drawn from `RunState`;
126
+ * once the next starts, it is printed above in its final form so the terminal reads in time order.
64
127
  */
65
- function liveView(context, colorDepth, options) {
128
+ function singleLiveView(context, colorDepth, options) {
66
129
  const { showOutput } = options;
67
130
  const colors = paint(colorDepth !== "none");
68
131
  const terminal = context.progressTerminal;
69
132
  let state = EMPTY_RUN_STATE;
70
133
  let phase;
71
134
  let headerPrinted = false;
72
- /** Whether the region shows. */
73
135
  let live = false;
74
136
  let finished = false;
75
137
  // One column short of the width: the live region keeps the last column free, so no row touches the edge.
@@ -114,12 +176,11 @@ function liveView(context, colorDepth, options) {
114
176
  writeStdout: (text) => terminal.print("stdout", text),
115
177
  writeStderr: (text) => terminal.print("stderr", text),
116
178
  },
117
- // The terminal may have been resized by the time the summary prints.
118
179
  get width() {
119
180
  return terminal.columns();
120
181
  },
121
182
  colorDepth,
122
- finish: async (summary) => {
183
+ finish: async (summary = []) => {
123
184
  if (finished)
124
185
  return;
125
186
  finished = true;
@@ -129,8 +190,8 @@ function liveView(context, colorDepth, options) {
129
190
  };
130
191
  }
131
192
  /**
132
- * The notices for `timed`: what the live view's phases can't hold, such as a cache note or a resource's notice, as
133
- * plain lines with their time since `origin` and their lane. `verbose` tells the resources' presentations.
193
+ * The notices for `timed`: what the live view's phases can't hold, such as a local snapshot index note or a resource's
194
+ * notice, as plain lines with their time since `origin` and their lane.
134
195
  */
135
196
  function noticeLines(timed, origin, verbose) {
136
197
  const line = (lane, text) => progressLine(timed.at.getTime() - origin, lane, text);
@@ -142,14 +203,12 @@ function noticeLines(timed, origin, verbose) {
142
203
  return runnerNoticeLines(event.event, line);
143
204
  case "resource":
144
205
  return DEFINITION_SET.presentations.notices(event, { verbose }).map(({ lane, text }) => line(lane, text));
145
- // A line a resource instance reported prints as it is, in its lane, and a warning marked as one.
146
206
  case "resource-notice":
147
207
  return [line(event.lane, event.text)];
148
208
  case "resource-warning":
149
209
  return [line(event.lane, resourceWarningText(event))];
150
210
  case "resource-skipped":
151
211
  return [line("run", skippedText(event))];
152
- // The live view draws what an acquired resource holds from its lane's state.
153
212
  case "resource-acquired":
154
213
  case "started":
155
214
  case "requesting-token":
@@ -171,19 +230,16 @@ function noticeLines(timed, origin, verbose) {
171
230
  return [];
172
231
  }
173
232
  }
174
- /**
175
- * The runner's notices: why the cached snapshots didn't fit a run that builds one, and a cache entry not written.
176
- */
177
233
  function runnerNoticeLines(event, line) {
178
234
  switch (event.kind) {
179
235
  case "snapshot-entry-not-written":
180
- return [line("runner", cacheWriteFailureText(event.failure))];
181
- // The runner row shows the build; its reasons, when a cached snapshot didn't fit, are lines of their own.
236
+ return [line("runner", localIndexWriteFailureText(event.failure))];
237
+ case "shared-snapshot-lookup-failed":
238
+ return [line("runner", sharedSnapshotLookupFailedText(event.message))];
182
239
  case "snapshot-build-started":
183
240
  return event.why.kind === "no-snapshot" && event.why.rejected.length > 0
184
241
  ? snapshotBuildTexts(event).map((text) => line("runner", text))
185
242
  : [];
186
- // The live view's phases show the rest.
187
243
  case "snapshot-reused":
188
244
  case "runner-sandbox-starting":
189
245
  case "sandbox-started":
@@ -2,7 +2,7 @@ import { type StyledCell } from "@vercel/clinkr/vcli-kit";
2
2
  import type { Intent } from "@vercel/clinkr/vcli-kit/theme";
3
3
  import { z } from "zod";
4
4
  import { type ListedRun } from "../../run-directory/index.ts";
5
- import type { RunScope } from "./past-run.ts";
5
+ import { type RunScope } from "./past-run.ts";
6
6
  /**
7
7
  * The run logs `runs logs` prints and `runs show` names: the command log (`command`), then each step's, in the order a
8
8
  * person looks for them.
@@ -15,6 +15,7 @@ export declare const scopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
15
15
  }, z.core.$strip>, z.ZodObject<{
16
16
  kind: z.ZodLiteral<"all">;
17
17
  why: z.ZodEnum<{
18
+ "config-file-conflict": "config-file-conflict";
18
19
  flag: "flag";
19
20
  "no-config-file": "no-config-file";
20
21
  }>;
@@ -32,8 +33,8 @@ export declare const runFactsSchema: z.ZodObject<{
32
33
  kind: z.ZodLiteral<"launch-machine">;
33
34
  }, z.core.$strip>, z.ZodObject<{
34
35
  kind: z.ZodLiteral<"vercel-sandbox">;
35
- team: z.ZodString;
36
- project: z.ZodString;
36
+ team: z.ZodNullable<z.ZodString>;
37
+ project: z.ZodNullable<z.ZodString>;
37
38
  region: z.ZodString;
38
39
  runtime: z.ZodString;
39
40
  vcpus: z.ZodNumber;
@@ -48,7 +49,11 @@ export declare const runFactsSchema: z.ZodObject<{
48
49
  base: z.ZodString;
49
50
  built: z.ZodBoolean;
50
51
  builtBehind: z.ZodNullable<z.ZodNumber>;
51
- url: z.ZodString;
52
+ source: z.ZodNullable<z.ZodEnum<{
53
+ local: "local";
54
+ shared: "shared";
55
+ }>>;
56
+ url: z.ZodNullable<z.ZodString>;
52
57
  }, z.core.$strip>>;
53
58
  uploadBytes: z.ZodNullable<z.ZodNumber>;
54
59
  }, z.core.$strip>], "kind">>;
@@ -6,6 +6,7 @@ import { sandboxRecordSchema } from "../../run-directory/index.js";
6
6
  import { sandboxPage, snapshotPage } from "../../shared/dashboard.js";
7
7
  import { testTotalsText } from "../../shared/sandbox-table.js";
8
8
  import { isoSecondsText, seconds, short } from "../../shared/text.js";
9
+ import { ALL_RUNS_WHY } from "./past-run.js";
9
10
  /**
10
11
  * The run logs `runs logs` prints and `runs show` names: the command log (`command`), then each step's, in the order a
11
12
  * person looks for them.
@@ -22,8 +23,8 @@ export const scopeSchema = z.discriminatedUnion("kind", [
22
23
  z.object({
23
24
  /** Every run. */
24
25
  kind: z.literal("all"),
25
- /** `flag` for `--all`; `no-config-file` when no storm.config.ts was found from the working directory. */
26
- why: z.enum(["flag", "no-config-file"]),
26
+ /** Why every run: one of `ALL_RUNS_WHY`. */
27
+ why: z.enum(ALL_RUNS_WHY),
27
28
  }),
28
29
  ]);
29
30
  /** A run's facts, from its run directory and `run.json`; each fact is null when unknown. */
@@ -48,10 +49,10 @@ export const runFactsSchema = z.object({
48
49
  z.object({ kind: z.literal("launch-machine") }),
49
50
  z.object({
50
51
  kind: z.literal("vercel-sandbox"),
51
- /** The control plane team the runner sandbox ran in. */
52
- team: z.string(),
53
- /** The control plane project the runner sandbox ran in. */
54
- project: z.string(),
52
+ /** The control plane team the runner sandbox ran in; null when unknown (for example, --credential vercel-oidc without --scope). */
53
+ team: z.string().nullable(),
54
+ /** The control plane project the runner sandbox ran in; null when unknown (for example, --credential vercel-oidc without --project). */
55
+ project: z.string().nullable(),
55
56
  /** The runner sandbox's region, such as iad1. */
56
57
  region: z.string(),
57
58
  /** The runner sandbox's runtime, such as node24. */
@@ -70,7 +71,7 @@ export const runFactsSchema = z.object({
70
71
  keptUntil: z.string().nullable(),
71
72
  /** How many whole minutes are left until keptUntil, as of reading the run, 0 once it has passed; null when keptUntil is. */
72
73
  keptMinutesLeft: z.number().nullable(),
73
- /** The runner snapshot it started from: its id, the base it is of, which the run's changes went on top of, whether this run built it or reused it, and its page in the Vercel dashboard. Null until known. */
74
+ /** The runner snapshot it started from: its id, the base it is of, which the run's changes went on top of, whether this run built it or reused it, where a reused snapshot came from (`local` or `shared`), and its page in the Vercel dashboard. Null until known. */
74
75
  snapshot: z
75
76
  .object({
76
77
  id: z.string(),
@@ -78,7 +79,9 @@ export const runFactsSchema = z.object({
78
79
  built: z.boolean(),
79
80
  /** How many commits the run's HEAD had that its base, the commit it was built at, lacks; null when the run state had no count. */
80
81
  builtBehind: z.number().nullable(),
81
- url: z.string(),
82
+ /** Where a reused snapshot came from (`local` or `shared`); null when this run built it or when unknown. */
83
+ source: z.enum(["local", "shared"]).nullable(),
84
+ url: z.string().nullable(),
82
85
  })
83
86
  .nullable(),
84
87
  /** How many bytes of changes the run uploaded to the runner sandbox; null when the run stopped before the upload. */
@@ -163,11 +166,18 @@ function whereFacts(where, now) {
163
166
  if (where.kind === "launch-machine")
164
167
  return { kind: "launch-machine" };
165
168
  const { sandbox, snapshot, keptUntil } = where;
169
+ const project = where.team !== null && where.project !== null ? { team: where.team, project: where.project } : null;
166
170
  return {
167
171
  ...where,
168
172
  keptMinutesLeft: keptUntil === null ? null : Math.max(0, Math.floor((Date.parse(keptUntil) - now.getTime()) / 60_000)),
169
- sandboxUrl: sandbox === null ? null : sandboxPage(where, sandbox),
170
- snapshot: snapshot === null ? null : { ...snapshot, url: snapshotPage(where, snapshot.id) },
173
+ sandboxUrl: sandbox === null || project === null ? null : sandboxPage(project, sandbox),
174
+ snapshot: snapshot === null
175
+ ? null
176
+ : {
177
+ ...snapshot,
178
+ source: snapshot.source ?? null,
179
+ url: project === null ? null : snapshotPage(project, snapshot.id),
180
+ },
171
181
  };
172
182
  }
173
183
  /** `scope` as the result reports it. */
@@ -178,7 +188,14 @@ export function scopeFacts(scope) {
178
188
  export function scopeText(scope) {
179
189
  if (scope.kind === "config")
180
190
  return scope.configFile;
181
- return scope.why === "flag" ? "every config (--all)" : "every config (no storm.config.ts found)";
191
+ switch (scope.why) {
192
+ case "flag":
193
+ return "every config (--all)";
194
+ case "no-config-file":
195
+ return "every config (no config file found)";
196
+ case "config-file-conflict":
197
+ return "every config (storm.config.ts and storm.config.mts in one directory)";
198
+ }
182
199
  }
183
200
  /** The error every `runs` command returns when the run directories can't be read. */
184
201
  export const runsUnreadable = {
@@ -18,6 +18,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
18
18
  }, z.core.$strip>, z.ZodObject<{
19
19
  kind: z.ZodLiteral<"all">;
20
20
  why: z.ZodEnum<{
21
+ "config-file-conflict": "config-file-conflict";
21
22
  flag: "flag";
22
23
  "no-config-file": "no-config-file";
23
24
  }>;
@@ -36,8 +37,8 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
36
37
  kind: z.ZodLiteral<"launch-machine">;
37
38
  }, z.core.$strip>, z.ZodObject<{
38
39
  kind: z.ZodLiteral<"vercel-sandbox">;
39
- team: z.ZodString;
40
- project: z.ZodString;
40
+ team: z.ZodNullable<z.ZodString>;
41
+ project: z.ZodNullable<z.ZodString>;
41
42
  region: z.ZodString;
42
43
  runtime: z.ZodString;
43
44
  vcpus: z.ZodNumber;
@@ -52,7 +53,11 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
52
53
  base: z.ZodString;
53
54
  built: z.ZodBoolean;
54
55
  builtBehind: z.ZodNullable<z.ZodNumber>;
55
- url: z.ZodString;
56
+ source: z.ZodNullable<z.ZodEnum<{
57
+ local: "local";
58
+ shared: "shared";
59
+ }>>;
60
+ url: z.ZodNullable<z.ZodString>;
56
61
  }, z.core.$strip>>;
57
62
  uploadBytes: z.ZodNullable<z.ZodNumber>;
58
63
  }, z.core.$strip>], "kind">>;
@@ -149,6 +154,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
149
154
  }, z.core.$strip>, z.ZodObject<{
150
155
  kind: z.ZodLiteral<"all">;
151
156
  why: z.ZodEnum<{
157
+ "config-file-conflict": "config-file-conflict";
152
158
  flag: "flag";
153
159
  "no-config-file": "no-config-file";
154
160
  }>;
@@ -167,8 +173,8 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
167
173
  kind: z.ZodLiteral<"launch-machine">;
168
174
  }, z.core.$strip>, z.ZodObject<{
169
175
  kind: z.ZodLiteral<"vercel-sandbox">;
170
- team: z.ZodString;
171
- project: z.ZodString;
176
+ team: z.ZodNullable<z.ZodString>;
177
+ project: z.ZodNullable<z.ZodString>;
172
178
  region: z.ZodString;
173
179
  runtime: z.ZodString;
174
180
  vcpus: z.ZodNumber;
@@ -183,7 +189,11 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
183
189
  base: z.ZodString;
184
190
  built: z.ZodBoolean;
185
191
  builtBehind: z.ZodNullable<z.ZodNumber>;
186
- url: z.ZodString;
192
+ source: z.ZodNullable<z.ZodEnum<{
193
+ local: "local";
194
+ shared: "shared";
195
+ }>>;
196
+ url: z.ZodNullable<z.ZodString>;
187
197
  }, z.core.$strip>>;
188
198
  uploadBytes: z.ZodNullable<z.ZodNumber>;
189
199
  }, z.core.$strip>], "kind">>;
@@ -17,30 +17,30 @@ import {
17
17
  tookText,
18
18
  totalsText,
19
19
  totalsTone
20
- } from "../../../chunks/chunk-KC4KDJ5K.js";
20
+ } from "../../../chunks/chunk-DADEYJDW.js";
21
21
  import {
22
22
  muted,
23
23
  path,
24
24
  renderOutcome,
25
25
  status
26
- } from "../../../chunks/chunk-TJNFVNKR.js";
27
- import "../../../chunks/chunk-QUHY6FGN.js";
26
+ } from "../../../chunks/chunk-LKTZ5OXS.js";
27
+ import "../../../chunks/chunk-CKGZA25H.js";
28
+ import "../../../chunks/chunk-GRT3UIBV.js";
28
29
  import {
29
30
  pastRuns
30
- } from "../../../chunks/chunk-SZEURWRS.js";
31
- import "../../../chunks/chunk-OX7X4B2L.js";
31
+ } from "../../../chunks/chunk-4O5C2XGJ.js";
32
32
  import "../../../chunks/chunk-F6N34UWB.js";
33
- import "../../../chunks/chunk-YV7GE6EV.js";
33
+ import "../../../chunks/chunk-YEPFSLQR.js";
34
34
  import {
35
35
  findConfigFile
36
- } from "../../../chunks/chunk-L36GBUBB.js";
37
- import "../../../chunks/chunk-AWBSONHB.js";
36
+ } from "../../../chunks/chunk-RNAS7JHE.js";
37
+ import "../../../chunks/chunk-XBDRVFEV.js";
38
38
  import {
39
39
  stormCommands
40
- } from "../../../chunks/chunk-5VXBKPW6.js";
40
+ } from "../../../chunks/chunk-WV3DP6NR.js";
41
41
  import {
42
42
  defineOutcomes
43
- } from "../../../chunks/chunk-VL7WFTVQ.js";
43
+ } from "../../../chunks/chunk-4WAMTUWZ.js";
44
44
 
45
45
  // src/commands/runs/list/command.ts
46
46
  import { z as z2 } from "zod";
@@ -8,6 +8,7 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
8
8
  }, z.core.$strip>, z.ZodObject<{
9
9
  kind: z.ZodLiteral<"all">;
10
10
  why: z.ZodEnum<{
11
+ "config-file-conflict": "config-file-conflict";
11
12
  flag: "flag";
12
13
  "no-config-file": "no-config-file";
13
14
  }>;
@@ -26,8 +27,8 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
26
27
  kind: z.ZodLiteral<"launch-machine">;
27
28
  }, z.core.$strip>, z.ZodObject<{
28
29
  kind: z.ZodLiteral<"vercel-sandbox">;
29
- team: z.ZodString;
30
- project: z.ZodString;
30
+ team: z.ZodNullable<z.ZodString>;
31
+ project: z.ZodNullable<z.ZodString>;
31
32
  region: z.ZodString;
32
33
  runtime: z.ZodString;
33
34
  vcpus: z.ZodNumber;
@@ -42,7 +43,11 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
42
43
  base: z.ZodString;
43
44
  built: z.ZodBoolean;
44
45
  builtBehind: z.ZodNullable<z.ZodNumber>;
45
- url: z.ZodString;
46
+ source: z.ZodNullable<z.ZodEnum<{
47
+ local: "local";
48
+ shared: "shared";
49
+ }>>;
50
+ url: z.ZodNullable<z.ZodString>;
46
51
  }, z.core.$strip>>;
47
52
  uploadBytes: z.ZodNullable<z.ZodNumber>;
48
53
  }, z.core.$strip>], "kind">>;