@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
@@ -47,6 +47,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
47
47
  }, z.core.$strip>, z.ZodObject<{
48
48
  kind: z.ZodLiteral<"all">;
49
49
  why: z.ZodEnum<{
50
+ "config-file-conflict": "config-file-conflict";
50
51
  flag: "flag";
51
52
  "no-config-file": "no-config-file";
52
53
  }>;
@@ -121,6 +122,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
121
122
  }, z.core.$strip>, z.ZodObject<{
122
123
  kind: z.ZodLiteral<"all">;
123
124
  why: z.ZodEnum<{
125
+ "config-file-conflict": "config-file-conflict";
124
126
  flag: "flag";
125
127
  "no-config-file": "no-config-file";
126
128
  }>;
@@ -132,7 +134,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
132
134
  configFile: string;
133
135
  } | {
134
136
  kind: "all";
135
- why: "flag" | "no-config-file";
137
+ why: "config-file-conflict" | "flag" | "no-config-file";
136
138
  };
137
139
  }) => {
138
140
  message: string;
@@ -251,6 +253,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
251
253
  }, z.core.$strip>, z.ZodObject<{
252
254
  kind: z.ZodLiteral<"all">;
253
255
  why: z.ZodEnum<{
256
+ "config-file-conflict": "config-file-conflict";
254
257
  flag: "flag";
255
258
  "no-config-file": "no-config-file";
256
259
  }>;
@@ -325,6 +328,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
325
328
  }, z.core.$strip>, z.ZodObject<{
326
329
  kind: z.ZodLiteral<"all">;
327
330
  why: z.ZodEnum<{
331
+ "config-file-conflict": "config-file-conflict";
328
332
  flag: "flag";
329
333
  "no-config-file": "no-config-file";
330
334
  }>;
@@ -336,7 +340,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
336
340
  configFile: string;
337
341
  } | {
338
342
  kind: "all";
339
- why: "flag" | "no-config-file";
343
+ why: "config-file-conflict" | "flag" | "no-config-file";
340
344
  };
341
345
  }) => {
342
346
  message: string;
@@ -8,29 +8,29 @@ import {
8
8
  sandboxIndexesText,
9
9
  scopeFacts,
10
10
  scopeSchema
11
- } from "../../../chunks/chunk-KC4KDJ5K.js";
11
+ } from "../../../chunks/chunk-DADEYJDW.js";
12
12
  import {
13
13
  renderOutcome
14
- } from "../../../chunks/chunk-TJNFVNKR.js";
15
- import "../../../chunks/chunk-QUHY6FGN.js";
14
+ } from "../../../chunks/chunk-LKTZ5OXS.js";
15
+ import "../../../chunks/chunk-CKGZA25H.js";
16
+ import "../../../chunks/chunk-GRT3UIBV.js";
16
17
  import {
17
18
  pastRuns
18
- } from "../../../chunks/chunk-SZEURWRS.js";
19
- import "../../../chunks/chunk-OX7X4B2L.js";
19
+ } from "../../../chunks/chunk-4O5C2XGJ.js";
20
20
  import {
21
21
  stripAnsi
22
22
  } from "../../../chunks/chunk-F6N34UWB.js";
23
- import "../../../chunks/chunk-YV7GE6EV.js";
23
+ import "../../../chunks/chunk-YEPFSLQR.js";
24
24
  import {
25
25
  findConfigFile
26
- } from "../../../chunks/chunk-L36GBUBB.js";
27
- import "../../../chunks/chunk-AWBSONHB.js";
26
+ } from "../../../chunks/chunk-RNAS7JHE.js";
27
+ import "../../../chunks/chunk-XBDRVFEV.js";
28
28
  import {
29
29
  stormCommands
30
- } from "../../../chunks/chunk-5VXBKPW6.js";
30
+ } from "../../../chunks/chunk-WV3DP6NR.js";
31
31
  import {
32
32
  defineOutcomes
33
- } from "../../../chunks/chunk-VL7WFTVQ.js";
33
+ } from "../../../chunks/chunk-4WAMTUWZ.js";
34
34
 
35
35
  // src/commands/runs/logs/command.ts
36
36
  import { z as z2 } from "zod";
@@ -31,6 +31,7 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
31
31
  }, z.core.$strip>, z.ZodObject<{
32
32
  kind: z.ZodLiteral<"all">;
33
33
  why: z.ZodEnum<{
34
+ "config-file-conflict": "config-file-conflict";
34
35
  flag: "flag";
35
36
  "no-config-file": "no-config-file";
36
37
  }>;
@@ -105,6 +106,7 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
105
106
  }, z.core.$strip>, z.ZodObject<{
106
107
  kind: z.ZodLiteral<"all">;
107
108
  why: z.ZodEnum<{
109
+ "config-file-conflict": "config-file-conflict";
108
110
  flag: "flag";
109
111
  "no-config-file": "no-config-file";
110
112
  }>;
@@ -116,7 +118,7 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
116
118
  configFile: string;
117
119
  } | {
118
120
  kind: "all";
119
- why: "flag" | "no-config-file";
121
+ why: "config-file-conflict" | "flag" | "no-config-file";
120
122
  };
121
123
  }) => {
122
124
  message: string;
@@ -1,18 +1,27 @@
1
+ import type { ConfigFileLookup } from "../../config/index.ts";
1
2
  import type { ListedRun, PastTestEvent, SandboxState } from "../../run-directory/index.ts";
2
3
  import type { TestEvent, TestResultEvent } from "../../sdk/run/launcher.ts";
3
4
  /**
4
- * Which runs a command sees: those of the config file `storm.config.ts` the working directory finds, or every run,
5
- * by `--all` or because no config file was found.
5
+ * Which runs a command sees: those of the config file the working directory finds, or every run, by `--all`, because
6
+ * no config file was found, or because the nearest directory holding one holds more than one.
6
7
  */
7
8
  export type RunScope = {
8
9
  readonly kind: "config";
9
10
  readonly configFile: string;
10
11
  } | {
11
12
  readonly kind: "all";
12
- readonly why: "flag" | "no-config-file";
13
+ readonly why: AllRunsWhy;
13
14
  };
14
- /** The scope for `--all` and the config file found from the working directory, if any. */
15
- export declare function runScope(all: boolean, configFile: string | undefined): RunScope;
15
+ /**
16
+ * Why a scope holds every run: `flag` for `--all`; `no-config-file` when no config file was found from the working
17
+ * directory; `config-file-conflict` when the nearest directory holding one holds both storm.config.ts and
18
+ * storm.config.mts.
19
+ */
20
+ export declare const ALL_RUNS_WHY: readonly ["flag", "no-config-file", "config-file-conflict"];
21
+ /** One of `ALL_RUNS_WHY`. */
22
+ export type AllRunsWhy = (typeof ALL_RUNS_WHY)[number];
23
+ /** The scope for `--all` and what looking for the config file from the working directory found. */
24
+ export declare function runScope(all: boolean, found: ConfigFileLookup): RunScope;
16
25
  /**
17
26
  * The runs in `scope`, newest first, as `listed` holds them. A run of another config file, or whose `run.json` can't be
18
27
  * read, such as one an older storm wrote, is only in the `all` scope.
@@ -1,13 +1,24 @@
1
1
  // Which past runs a `storm runs` command sees, and which of a run's tests it selects. Pure: the commands hand it what
2
2
  // the run directory module's reader read (`pastRuns`, `run-directory/`).
3
3
  import { stripAnsi } from "@vercel/clinkr/vcli-kit/ansi";
4
- /** The scope for `--all` and the config file found from the working directory, if any. */
5
- export function runScope(all, configFile) {
4
+ /**
5
+ * Why a scope holds every run: `flag` for `--all`; `no-config-file` when no config file was found from the working
6
+ * directory; `config-file-conflict` when the nearest directory holding one holds both storm.config.ts and
7
+ * storm.config.mts.
8
+ */
9
+ export const ALL_RUNS_WHY = ["flag", "no-config-file", "config-file-conflict"];
10
+ /** The scope for `--all` and what looking for the config file from the working directory found. */
11
+ export function runScope(all, found) {
6
12
  if (all)
7
13
  return { kind: "all", why: "flag" };
8
- if (configFile === undefined)
9
- return { kind: "all", why: "no-config-file" };
10
- return { kind: "config", configFile };
14
+ switch (found.kind) {
15
+ case "none":
16
+ return { kind: "all", why: "no-config-file" };
17
+ case "conflict":
18
+ return { kind: "all", why: "config-file-conflict" };
19
+ case "found":
20
+ return { kind: "config", configFile: found.path };
21
+ }
11
22
  }
12
23
  /**
13
24
  * The runs in `scope`, newest first, as `listed` holds them. A run of another config file, or whose `run.json` can't be
@@ -37,8 +37,8 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
37
37
  kind: z.ZodLiteral<"launch-machine">;
38
38
  }, z.core.$strip>, z.ZodObject<{
39
39
  kind: z.ZodLiteral<"vercel-sandbox">;
40
- team: z.ZodString;
41
- project: z.ZodString;
40
+ team: z.ZodNullable<z.ZodString>;
41
+ project: z.ZodNullable<z.ZodString>;
42
42
  region: z.ZodString;
43
43
  runtime: z.ZodString;
44
44
  vcpus: z.ZodNumber;
@@ -53,7 +53,11 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
53
53
  base: z.ZodString;
54
54
  built: z.ZodBoolean;
55
55
  builtBehind: z.ZodNullable<z.ZodNumber>;
56
- url: z.ZodString;
56
+ source: z.ZodNullable<z.ZodEnum<{
57
+ local: "local";
58
+ shared: "shared";
59
+ }>>;
60
+ url: z.ZodNullable<z.ZodString>;
57
61
  }, z.core.$strip>>;
58
62
  uploadBytes: z.ZodNullable<z.ZodNumber>;
59
63
  }, z.core.$strip>], "kind">>;
@@ -421,6 +425,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
421
425
  }, z.core.$strip>, z.ZodObject<{
422
426
  kind: z.ZodLiteral<"all">;
423
427
  why: z.ZodEnum<{
428
+ "config-file-conflict": "config-file-conflict";
424
429
  flag: "flag";
425
430
  "no-config-file": "no-config-file";
426
431
  }>;
@@ -511,6 +516,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
511
516
  }, z.core.$strip>, z.ZodObject<{
512
517
  kind: z.ZodLiteral<"all">;
513
518
  why: z.ZodEnum<{
519
+ "config-file-conflict": "config-file-conflict";
514
520
  flag: "flag";
515
521
  "no-config-file": "no-config-file";
516
522
  }>;
@@ -522,7 +528,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
522
528
  configFile: string;
523
529
  } | {
524
530
  kind: "all";
525
- why: "flag" | "no-config-file";
531
+ why: "config-file-conflict" | "flag" | "no-config-file";
526
532
  };
527
533
  }) => {
528
534
  message: string;
@@ -552,8 +558,8 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
552
558
  kind: z.ZodLiteral<"launch-machine">;
553
559
  }, z.core.$strip>, z.ZodObject<{
554
560
  kind: z.ZodLiteral<"vercel-sandbox">;
555
- team: z.ZodString;
556
- project: z.ZodString;
561
+ team: z.ZodNullable<z.ZodString>;
562
+ project: z.ZodNullable<z.ZodString>;
557
563
  region: z.ZodString;
558
564
  runtime: z.ZodString;
559
565
  vcpus: z.ZodNumber;
@@ -568,7 +574,11 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
568
574
  base: z.ZodString;
569
575
  built: z.ZodBoolean;
570
576
  builtBehind: z.ZodNullable<z.ZodNumber>;
571
- url: z.ZodString;
577
+ source: z.ZodNullable<z.ZodEnum<{
578
+ local: "local";
579
+ shared: "shared";
580
+ }>>;
581
+ url: z.ZodNullable<z.ZodString>;
572
582
  }, z.core.$strip>>;
573
583
  uploadBytes: z.ZodNullable<z.ZodNumber>;
574
584
  }, z.core.$strip>], "kind">>;
@@ -936,6 +946,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
936
946
  }, z.core.$strip>, z.ZodObject<{
937
947
  kind: z.ZodLiteral<"all">;
938
948
  why: z.ZodEnum<{
949
+ "config-file-conflict": "config-file-conflict";
939
950
  flag: "flag";
940
951
  "no-config-file": "no-config-file";
941
952
  }>;
@@ -1026,6 +1037,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
1026
1037
  }, z.core.$strip>, z.ZodObject<{
1027
1038
  kind: z.ZodLiteral<"all">;
1028
1039
  why: z.ZodEnum<{
1040
+ "config-file-conflict": "config-file-conflict";
1029
1041
  flag: "flag";
1030
1042
  "no-config-file": "no-config-file";
1031
1043
  }>;
@@ -1037,7 +1049,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
1037
1049
  configFile: string;
1038
1050
  } | {
1039
1051
  kind: "all";
1040
- why: "flag" | "no-config-file";
1052
+ why: "config-file-conflict" | "flag" | "no-config-file";
1041
1053
  };
1042
1054
  }) => {
1043
1055
  message: string;
@@ -1,22 +1,24 @@
1
1
  import {
2
- fileListMismatchText,
3
- fileListMismatches,
4
- testPlanText,
5
2
  waterfallLines,
6
3
  workerLaneNotes,
7
4
  workerLanes,
8
5
  workerLanesFromRecords,
9
6
  workerParallelism,
10
7
  workerSetupMs
11
- } from "../../../chunks/chunk-5GBMR4HM.js";
12
- import "../../../chunks/chunk-PN5ULTTH.js";
13
- import "../../../chunks/chunk-R7XVBZOY.js";
14
- import "../../../chunks/chunk-CN4EFA5J.js";
8
+ } from "../../../chunks/chunk-RWIXDDCK.js";
15
9
  import {
16
10
  builtAtText
17
- } from "../../../chunks/chunk-XEVHP5ZW.js";
18
- import "../../../chunks/chunk-ZG3WQ4UF.js";
19
- import "../../../chunks/chunk-5CCP36QQ.js";
11
+ } from "../../../chunks/chunk-M7EKRGVD.js";
12
+ import {
13
+ fileListMismatchText,
14
+ fileListMismatches,
15
+ testPlanText
16
+ } from "../../../chunks/chunk-F4MOYHRY.js";
17
+ import "../../../chunks/chunk-HWIQ2S7K.js";
18
+ import "../../../chunks/chunk-EEENLQHE.js";
19
+ import "../../../chunks/chunk-72ZFEMAW.js";
20
+ import "../../../chunks/chunk-D27KILIA.js";
21
+ import "../../../chunks/chunk-2RNDPDTJ.js";
20
22
  import {
21
23
  LOG_STEPS,
22
24
  commandText,
@@ -48,30 +50,30 @@ import {
48
50
  totalAttemptMs,
49
51
  totalsText,
50
52
  totalsTone
51
- } from "../../../chunks/chunk-KC4KDJ5K.js";
53
+ } from "../../../chunks/chunk-DADEYJDW.js";
52
54
  import {
53
55
  capsFor
54
- } from "../../../chunks/chunk-TJNFVNKR.js";
56
+ } from "../../../chunks/chunk-LKTZ5OXS.js";
55
57
  import {
56
58
  SANDBOX_TABLE_HEADER,
57
59
  sandboxCauseText,
58
- sandboxPage,
59
60
  sandboxStateText,
60
61
  sandboxTableRows,
61
62
  sandboxesPassedText,
62
63
  sandboxesText,
63
64
  startedSandboxesText
64
- } from "../../../chunks/chunk-QUHY6FGN.js";
65
+ } from "../../../chunks/chunk-CKGZA25H.js";
66
+ import {
67
+ sandboxPage,
68
+ seconds,
69
+ short
70
+ } from "../../../chunks/chunk-GRT3UIBV.js";
65
71
  import {
66
72
  pastRuns,
67
73
  planSchema,
68
74
  sandboxRecordSchema,
69
75
  timelineSchema
70
- } from "../../../chunks/chunk-SZEURWRS.js";
71
- import {
72
- seconds,
73
- short
74
- } from "../../../chunks/chunk-OX7X4B2L.js";
76
+ } from "../../../chunks/chunk-4O5C2XGJ.js";
75
77
  import {
76
78
  bold,
77
79
  paint,
@@ -79,17 +81,17 @@ import {
79
81
  } from "../../../chunks/chunk-F6N34UWB.js";
80
82
  import {
81
83
  megabytesText
82
- } from "../../../chunks/chunk-YV7GE6EV.js";
84
+ } from "../../../chunks/chunk-YEPFSLQR.js";
83
85
  import {
84
86
  findConfigFile
85
- } from "../../../chunks/chunk-L36GBUBB.js";
86
- import "../../../chunks/chunk-AWBSONHB.js";
87
+ } from "../../../chunks/chunk-RNAS7JHE.js";
88
+ import "../../../chunks/chunk-XBDRVFEV.js";
87
89
  import {
88
90
  stormCommands
89
- } from "../../../chunks/chunk-5VXBKPW6.js";
91
+ } from "../../../chunks/chunk-WV3DP6NR.js";
90
92
  import {
91
93
  defineOutcomes
92
- } from "../../../chunks/chunk-VL7WFTVQ.js";
94
+ } from "../../../chunks/chunk-4WAMTUWZ.js";
93
95
 
94
96
  // src/commands/runs/show/command.ts
95
97
  import { z as z2 } from "zod";
@@ -540,15 +542,15 @@ function whereRows(shown) {
540
542
  ["Ran in", sandbox],
541
543
  ...where.sandboxUrl === null ? [] : [["Runner sandbox page", where.sandboxUrl]],
542
544
  ...keptRows(shown),
543
- ["Vercel project", `${where.team}/${where.project}`],
545
+ ...where.team === null || where.project === null ? [] : [["Vercel project", `${where.team}/${where.project}`]],
544
546
  ["Merge-base", `${short(where.base)}, of HEAD and ${where.baseRef}`],
545
547
  ...snapshot === null ? [] : [
546
548
  [
547
549
  "Snapshot",
548
550
  [
549
- `${snapshot.id} of ${short(snapshot.base)}, ${snapshot.built ? "built" : "reused"}`,
551
+ `${snapshot.id} of ${short(snapshot.base)}, ${snapshot.built ? "built" : snapshot.source === "shared" ? "reused from the shared snapshot index" : "reused"}`,
550
552
  ...snapshotCommitLines(snapshot, where.base),
551
- ` ${snapshot.url}`
553
+ ...snapshot.url === null ? [] : [` ${snapshot.url}`]
552
554
  ]
553
555
  ]
554
556
  ],
@@ -640,7 +642,7 @@ function sandboxSection(shown, sandbox, p) {
640
642
  ["Command", commandText({ argv: sandbox.argv })],
641
643
  [
642
644
  "Runner sandbox",
643
- sandbox.name === null ? { text: "none started", tone: "muted" } : where?.kind === "vercel-sandbox" ? [sandbox.name, ` ${sandboxPage(where, sandbox.name)}`] : sandbox.name
645
+ sandbox.name === null ? { text: "none started", tone: "muted" } : where?.kind === "vercel-sandbox" && where.team !== null && where.project !== null ? [sandbox.name, ` ${sandboxPage({ team: where.team, project: where.project }, sandbox.name)}`] : sandbox.name
644
646
  ],
645
647
  [
646
648
  "Logs",
@@ -12,8 +12,8 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
12
12
  kind: z.ZodLiteral<"launch-machine">;
13
13
  }, z.core.$strip>, z.ZodObject<{
14
14
  kind: z.ZodLiteral<"vercel-sandbox">;
15
- team: z.ZodString;
16
- project: z.ZodString;
15
+ team: z.ZodNullable<z.ZodString>;
16
+ project: z.ZodNullable<z.ZodString>;
17
17
  region: z.ZodString;
18
18
  runtime: z.ZodString;
19
19
  vcpus: z.ZodNumber;
@@ -28,7 +28,11 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
28
28
  base: z.ZodString;
29
29
  built: z.ZodBoolean;
30
30
  builtBehind: z.ZodNullable<z.ZodNumber>;
31
- url: z.ZodString;
31
+ source: z.ZodNullable<z.ZodEnum<{
32
+ local: "local";
33
+ shared: "shared";
34
+ }>>;
35
+ url: z.ZodNullable<z.ZodString>;
32
36
  }, z.core.$strip>>;
33
37
  uploadBytes: z.ZodNullable<z.ZodNumber>;
34
38
  }, z.core.$strip>], "kind">>;
@@ -396,6 +400,7 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
396
400
  }, z.core.$strip>, z.ZodObject<{
397
401
  kind: z.ZodLiteral<"all">;
398
402
  why: z.ZodEnum<{
403
+ "config-file-conflict": "config-file-conflict";
399
404
  flag: "flag";
400
405
  "no-config-file": "no-config-file";
401
406
  }>;
@@ -486,6 +491,7 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
486
491
  }, z.core.$strip>, z.ZodObject<{
487
492
  kind: z.ZodLiteral<"all">;
488
493
  why: z.ZodEnum<{
494
+ "config-file-conflict": "config-file-conflict";
489
495
  flag: "flag";
490
496
  "no-config-file": "no-config-file";
491
497
  }>;
@@ -497,7 +503,7 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
497
503
  configFile: string;
498
504
  } | {
499
505
  kind: "all";
500
- why: "flag" | "no-config-file";
506
+ why: "config-file-conflict" | "flag" | "no-config-file";
501
507
  };
502
508
  }) => {
503
509
  message: string;
@@ -508,7 +508,9 @@ function whereRows(shown) {
508
508
  ["Ran in", sandbox],
509
509
  ...(where.sandboxUrl === null ? [] : [["Runner sandbox page", where.sandboxUrl]]),
510
510
  ...keptRows(shown),
511
- ["Vercel project", `${where.team}/${where.project}`],
511
+ ...(where.team === null || where.project === null
512
+ ? []
513
+ : [["Vercel project", `${where.team}/${where.project}`]]),
512
514
  ["Merge-base", `${short(where.base)}, of HEAD and ${where.baseRef}`],
513
515
  ...(snapshot === null
514
516
  ? []
@@ -516,9 +518,9 @@ function whereRows(shown) {
516
518
  [
517
519
  "Snapshot",
518
520
  [
519
- `${snapshot.id} of ${short(snapshot.base)}, ${snapshot.built ? "built" : "reused"}`,
521
+ `${snapshot.id} of ${short(snapshot.base)}, ${snapshot.built ? "built" : snapshot.source === "shared" ? "reused from the shared snapshot index" : "reused"}`,
520
522
  ...snapshotCommitLines(snapshot, where.base),
521
- ` ${snapshot.url}`,
523
+ ...(snapshot.url === null ? [] : [` ${snapshot.url}`]),
522
524
  ],
523
525
  ],
524
526
  ]),
@@ -648,8 +650,8 @@ function sandboxSection(shown, sandbox, p) {
648
650
  "Runner sandbox",
649
651
  sandbox.name === null
650
652
  ? { text: "none started", tone: "muted" }
651
- : where?.kind === "vercel-sandbox"
652
- ? [sandbox.name, ` ${sandboxPage(where, sandbox.name)}`]
653
+ : where?.kind === "vercel-sandbox" && where.team !== null && where.project !== null
654
+ ? [sandbox.name, ` ${sandboxPage({ team: where.team, project: where.project }, sandbox.name)}`]
653
655
  : sandbox.name,
654
656
  ],
655
657
  [
@@ -0,0 +1,111 @@
1
+ import { z } from "zod";
2
+ import type { StormApp } from "../../context.ts";
3
+ import { type credentialErrors, type CredentialSourceError, type CredentialTarget } from "../../config/index.ts";
4
+ import type { MintTarget } from "../../credential/index.ts";
5
+ import type { SandboxAccess } from "../../runner/index.ts";
6
+ import { runErrors } from "../exec/outcomes.ts";
7
+ /** Which credential source a `storm snapshots` command accepts (`mint` or `vercel-oidc`). */
8
+ export type SnapshotCredentialKind = "mint" | "vercel-oidc";
9
+ /**
10
+ * The request fields every `storm snapshots` command takes for its credential: `--credential`, `--scope`, and
11
+ * `--project`. Each command's help says what the team and project are for there, so the help stays in its metadata.
12
+ */
13
+ export declare const SNAPSHOT_ACCESS_FIELDS: {
14
+ credential: z.ZodDefault<z.ZodEnum<{
15
+ mint: "mint";
16
+ "vercel-oidc": "vercel-oidc";
17
+ }>>;
18
+ scope: z.ZodOptional<z.ZodString>;
19
+ project: z.ZodOptional<z.ZodString>;
20
+ };
21
+ /** The CLI options of those fields: `-p` for `--project`. */
22
+ export declare const SNAPSHOT_ACCESS_CLI: {
23
+ options: {
24
+ project: {
25
+ short: string;
26
+ };
27
+ };
28
+ };
29
+ /** The Vercel project a `storm snapshots` result or error names. */
30
+ export declare const PROJECT_FIELDS: {
31
+ /** The canonical team and project IDs from the credential. */
32
+ teamId: z.ZodString;
33
+ projectId: z.ZodString;
34
+ /** The display team and project slugs from flags or `storm.config.ts`, or null when unset. */
35
+ team: z.ZodNullable<z.ZodString>;
36
+ project: z.ZodNullable<z.ZodString>;
37
+ };
38
+ /** The Vercel project a `storm snapshots` result or error names, as `PROJECT_FIELDS` holds it. */
39
+ export interface ProjectFacts {
40
+ readonly teamId: string;
41
+ readonly projectId: string;
42
+ readonly team: string | null;
43
+ readonly project: string | null;
44
+ }
45
+ /** The Sandbox access and canonical/display Vercel project fields obtained for a `storm snapshots` command. */
46
+ export interface SnapshotSandboxAccess {
47
+ readonly access: SandboxAccess;
48
+ /** The target team and project slugs from flags or `storm.config.ts`, or null when either is unset. */
49
+ readonly target: MintTarget | null;
50
+ /** The canonical team and project IDs from the credential. */
51
+ readonly teamId: string;
52
+ readonly projectId: string;
53
+ /** The display team slug from flags or `storm.config.ts`, or null when unset. */
54
+ readonly team: string | null;
55
+ /** The display project slug from flags or `storm.config.ts`, or null when unset. */
56
+ readonly project: string | null;
57
+ }
58
+ /** Human display label for a Vercel project: `team/project` slugs when known, else `teamId/projectId`. */
59
+ export declare function projectDisplayText(owner: ProjectFacts): string;
60
+ /**
61
+ * The `shared_list_failed` error of a `storm snapshots` command that lists the shared snapshot index: the Vercel
62
+ * Sandbox API failed on the listing. `description` says what the command did not do, `consequence` follows the
63
+ * project in its message (such as ", so nothing was deleted"), and `next` says what to do.
64
+ */
65
+ export declare function sharedListFailedError(words: {
66
+ readonly description: string;
67
+ readonly consequence: string;
68
+ readonly next: string;
69
+ }): {
70
+ exitCode: 1;
71
+ description: string;
72
+ schema: z.ZodObject<{
73
+ teamId: z.ZodString;
74
+ projectId: z.ZodString;
75
+ team: z.ZodNullable<z.ZodString>;
76
+ project: z.ZodNullable<z.ZodString>;
77
+ message: z.ZodString;
78
+ }, z.core.$strip>;
79
+ render: (facts: ProjectFacts & {
80
+ readonly message: string;
81
+ }) => {
82
+ message: string;
83
+ next: {
84
+ type: "text";
85
+ text: string;
86
+ }[];
87
+ };
88
+ };
89
+ /** Why obtaining Sandbox access for a `storm snapshots` command failed. */
90
+ export type SnapshotAccessRefusal = CredentialSourceError | ReturnType<typeof runErrors.runnerFailed>;
91
+ /** A settled credential source for a `storm snapshots` command, ready to obtain `SandboxAccess` on demand. */
92
+ export interface SettledSnapshotAccess {
93
+ readonly target: MintTarget | null;
94
+ obtain(): Promise<({
95
+ readonly ok: true;
96
+ } & SnapshotSandboxAccess) | {
97
+ readonly ok: false;
98
+ readonly refusal: SnapshotAccessRefusal;
99
+ }>;
100
+ }
101
+ /**
102
+ * Settles `--credential`, `--scope`, and `--project` for a `storm snapshots` command without minting or reading a
103
+ * token yet. Refuses with `missing_target` when `credential` is `mint` and either `scope` or `project` is unset.
104
+ */
105
+ export declare function settleSnapshotAccess(app: Pick<StormApp, "credentials">, credential: SnapshotCredentialKind, settings: CredentialTarget, progress: ((line: string) => Promise<void>) | undefined): {
106
+ readonly ok: true;
107
+ readonly settled: SettledSnapshotAccess;
108
+ } | {
109
+ readonly ok: false;
110
+ readonly refusal: ReturnType<typeof credentialErrors.missingTarget>;
111
+ };