@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
@@ -1,8 +1,8 @@
1
1
  import { z } from "zod";
2
- import type { InspectedSnapshot } from "../../../runner/index.ts";
2
+ import type { InspectedSnapshot, SharedSnapshotSelection } from "../../../runner/index.ts";
3
3
  declare const snapshotSchema: z.ZodObject<{
4
4
  snapshotId: z.ZodString;
5
- recipe: z.ZodString;
5
+ runner: z.ZodString;
6
6
  region: z.ZodString;
7
7
  runtime: z.ZodString;
8
8
  teamId: z.ZodString;
@@ -19,11 +19,77 @@ declare const snapshotSchema: z.ZodObject<{
19
19
  "expires-soon": "expires-soon";
20
20
  "other-base": "other-base";
21
21
  "other-owner": "other-owner";
22
- "other-recipe": "other-recipe";
22
+ "other-runner": "other-runner";
23
23
  "steps-changed": "steps-changed";
24
24
  }>>;
25
25
  }, z.core.$strip>;
26
26
  type SnapshotFacts = z.output<typeof snapshotSchema>;
27
+ /** One entry of the shared snapshot index, as `--shared` lists it. */
28
+ declare const sharedEntrySchema: z.ZodObject<{
29
+ sandboxName: z.ZodString;
30
+ base: z.ZodString;
31
+ status: z.ZodEnum<{
32
+ building: "building";
33
+ expired: "expired";
34
+ "expires-soon": "expires-soon";
35
+ failed: "failed";
36
+ missing: "missing";
37
+ "no-snapshot": "no-snapshot";
38
+ ready: "ready";
39
+ "unknown-expiry": "unknown-expiry";
40
+ }>;
41
+ sandboxStatus: z.ZodString;
42
+ snapshotId: z.ZodNullable<z.ZodString>;
43
+ snapshotStatus: z.ZodNullable<z.ZodString>;
44
+ createdAt: z.ZodString;
45
+ expiresAt: z.ZodNullable<z.ZodString>;
46
+ expired: z.ZodBoolean;
47
+ picked: z.ZodBoolean;
48
+ builtBehind: z.ZodNullable<z.ZodNumber>;
49
+ }, z.core.$strip>;
50
+ type SharedEntryFacts = z.output<typeof sharedEntrySchema>;
51
+ /** What `--shared` found in the shared snapshot index, or why it listed nothing. */
52
+ declare const sharedSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
53
+ teamId: z.ZodString;
54
+ projectId: z.ZodString;
55
+ team: z.ZodNullable<z.ZodString>;
56
+ project: z.ZodNullable<z.ZodString>;
57
+ kind: z.ZodLiteral<"listed">;
58
+ bucket: z.ZodString;
59
+ entries: z.ZodArray<z.ZodObject<{
60
+ sandboxName: z.ZodString;
61
+ base: z.ZodString;
62
+ status: z.ZodEnum<{
63
+ building: "building";
64
+ expired: "expired";
65
+ "expires-soon": "expires-soon";
66
+ failed: "failed";
67
+ missing: "missing";
68
+ "no-snapshot": "no-snapshot";
69
+ ready: "ready";
70
+ "unknown-expiry": "unknown-expiry";
71
+ }>;
72
+ sandboxStatus: z.ZodString;
73
+ snapshotId: z.ZodNullable<z.ZodString>;
74
+ snapshotStatus: z.ZodNullable<z.ZodString>;
75
+ createdAt: z.ZodString;
76
+ expiresAt: z.ZodNullable<z.ZodString>;
77
+ expired: z.ZodBoolean;
78
+ picked: z.ZodBoolean;
79
+ builtBehind: z.ZodNullable<z.ZodNumber>;
80
+ }, z.core.$strip>>;
81
+ }, z.core.$strip>, z.ZodObject<{
82
+ kind: z.ZodLiteral<"not-listed">;
83
+ why: z.ZodEnum<{
84
+ "no-base": "no-base";
85
+ "no-checkout": "no-checkout";
86
+ "no-runner": "no-runner";
87
+ }>;
88
+ }, z.core.$strip>], "kind">;
89
+ /** What `--shared` found, as the result reports it. */
90
+ export type SharedFacts = z.output<typeof sharedSchema>;
91
+ /** One shared snapshot index entry, with what the pick across both indexes says of it, as the result reports it. */
92
+ export declare function sharedEntryFacts(selection: SharedSnapshotSelection): SharedEntryFacts;
27
93
  /** One inspected snapshot as the result reports it. */
28
94
  export declare function snapshotFacts(snapshot: InspectedSnapshot): SnapshotFacts;
29
95
  /**
@@ -37,14 +103,14 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
37
103
  directory: z.ZodString;
38
104
  configFile: z.ZodNullable<z.ZodString>;
39
105
  picking: z.ZodDiscriminatedUnion<[z.ZodObject<{
40
- kind: z.ZodLiteral<"recipe">;
41
- recipe: z.ZodString;
106
+ kind: z.ZodLiteral<"runner">;
107
+ runner: z.ZodString;
42
108
  }, z.core.$strip>, z.ZodObject<{
43
109
  kind: z.ZodLiteral<"none">;
44
110
  why: z.ZodEnum<{
45
111
  "no-base": "no-base";
46
112
  "no-checkout": "no-checkout";
47
- "no-recipe": "no-recipe";
113
+ "no-runner": "no-runner";
48
114
  }>;
49
115
  }, z.core.$strip>], "kind">;
50
116
  all: z.ZodBoolean;
@@ -52,9 +118,9 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
52
118
  mergeBase: z.ZodNullable<z.ZodString>;
53
119
  mergeBaseRef: z.ZodNullable<z.ZodString>;
54
120
  readAt: z.ZodString;
55
- snapshots: z.ZodArray<z.ZodObject<{
121
+ local: z.ZodArray<z.ZodObject<{
56
122
  snapshotId: z.ZodString;
57
- recipe: z.ZodString;
123
+ runner: z.ZodString;
58
124
  region: z.ZodString;
59
125
  runtime: z.ZodString;
60
126
  teamId: z.ZodString;
@@ -71,7 +137,7 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
71
137
  "expires-soon": "expires-soon";
72
138
  "other-base": "other-base";
73
139
  "other-owner": "other-owner";
74
- "other-recipe": "other-recipe";
140
+ "other-runner": "other-runner";
75
141
  "steps-changed": "steps-changed";
76
142
  }>>;
77
143
  }, z.core.$strip>>;
@@ -79,6 +145,43 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
79
145
  file: z.ZodString;
80
146
  reason: z.ZodString;
81
147
  }, z.core.$strip>>;
148
+ shared: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
149
+ teamId: z.ZodString;
150
+ projectId: z.ZodString;
151
+ team: z.ZodNullable<z.ZodString>;
152
+ project: z.ZodNullable<z.ZodString>;
153
+ kind: z.ZodLiteral<"listed">;
154
+ bucket: z.ZodString;
155
+ entries: z.ZodArray<z.ZodObject<{
156
+ sandboxName: z.ZodString;
157
+ base: z.ZodString;
158
+ status: z.ZodEnum<{
159
+ building: "building";
160
+ expired: "expired";
161
+ "expires-soon": "expires-soon";
162
+ failed: "failed";
163
+ missing: "missing";
164
+ "no-snapshot": "no-snapshot";
165
+ ready: "ready";
166
+ "unknown-expiry": "unknown-expiry";
167
+ }>;
168
+ sandboxStatus: z.ZodString;
169
+ snapshotId: z.ZodNullable<z.ZodString>;
170
+ snapshotStatus: z.ZodNullable<z.ZodString>;
171
+ createdAt: z.ZodString;
172
+ expiresAt: z.ZodNullable<z.ZodString>;
173
+ expired: z.ZodBoolean;
174
+ picked: z.ZodBoolean;
175
+ builtBehind: z.ZodNullable<z.ZodNumber>;
176
+ }, z.core.$strip>>;
177
+ }, z.core.$strip>, z.ZodObject<{
178
+ kind: z.ZodLiteral<"not-listed">;
179
+ why: z.ZodEnum<{
180
+ "no-base": "no-base";
181
+ "no-checkout": "no-checkout";
182
+ "no-runner": "no-runner";
183
+ }>;
184
+ }, z.core.$strip>], "kind">>;
82
185
  }, z.core.$strip>;
83
186
  }, {
84
187
  listed: unknown;
@@ -94,22 +197,80 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
94
197
  problem: string;
95
198
  }[];
96
199
  }]>;
200
+ missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
201
+ missing: ("project" | "scope")[];
202
+ }]>;
203
+ runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
204
+ failure: {
205
+ kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
206
+ label: string;
207
+ exitCode: number | null;
208
+ tail: string[];
209
+ } | {
210
+ kind: "sandbox-api-failed";
211
+ operation: string;
212
+ status: number | null;
213
+ message: string;
214
+ } | {
215
+ kind: "checkout-failed";
216
+ message: string;
217
+ command: string | null;
218
+ } | {
219
+ kind: "credential-claims-missing";
220
+ team: string;
221
+ project: string;
222
+ } | {
223
+ kind: "network-policy-failed";
224
+ operation: "inject" | "remove";
225
+ around: "command" | "run-steps" | "snapshot-save" | "snapshot-steps";
226
+ reason: "api" | "timed-out";
227
+ status: number | null;
228
+ message: string;
229
+ };
230
+ cleanup: import("../../../shared/cleanup.ts").StormCleanupFacts;
231
+ }]>;
232
+ sharedListFailed: z.ZodObject<{
233
+ teamId: z.ZodString;
234
+ projectId: z.ZodString;
235
+ team: z.ZodNullable<z.ZodString>;
236
+ project: z.ZodNullable<z.ZodString>;
237
+ message: z.ZodString;
238
+ }, z.core.$strip>;
97
239
  launchMachineHasNoSnapshot: z.ZodObject<{
98
240
  suite: z.ZodNullable<z.ZodString>;
99
241
  configFile: z.ZodNullable<z.ZodString>;
100
242
  }, z.core.$strip>;
101
- snapshotCacheUnreadable: z.ZodObject<{
243
+ localIndexUnreadable: z.ZodObject<{
102
244
  path: z.ZodString;
103
245
  message: z.ZodString;
104
246
  }, z.core.$strip>;
105
247
  checkoutFailed: z.ZodObject<{
106
248
  message: z.ZodString;
107
249
  }, z.core.$strip>;
250
+ mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
251
+ team: string;
252
+ project: string;
253
+ cause: string;
254
+ fix: string;
255
+ }]>;
108
256
  suiteNotFound: import("@vercel/clinkr").SharedError<"suite_not_found", [data: {
109
257
  suite: string;
110
258
  suites: string[];
111
259
  configFile: string | null;
112
260
  }]>;
261
+ tokenRequestFailed: import("@vercel/clinkr").SharedError<"token_request_failed", [data: {
262
+ cause: "request-failed" | "variables-missing";
263
+ missing: ("ACTIONS_ID_TOKEN_REQUEST_TOKEN" | "ACTIONS_ID_TOKEN_REQUEST_URL")[] | null;
264
+ status: number | null;
265
+ said: string | null;
266
+ detail: string;
267
+ fix: string;
268
+ }]>;
269
+ vercelOidcTokenFailed: import("@vercel/clinkr").SharedError<"vercel_oidc_token_failed", [data: {
270
+ cause: "invalid-token" | "missing-token";
271
+ detail: string;
272
+ fix: string;
273
+ }]>;
113
274
  }, {
114
275
  readonly invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
115
276
  file: string;
@@ -122,6 +283,58 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
122
283
  problem: string;
123
284
  }[];
124
285
  }]>;
286
+ readonly missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
287
+ missing: ("project" | "scope")[];
288
+ }]>;
289
+ readonly runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
290
+ failure: {
291
+ kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
292
+ label: string;
293
+ exitCode: number | null;
294
+ tail: string[];
295
+ } | {
296
+ kind: "sandbox-api-failed";
297
+ operation: string;
298
+ status: number | null;
299
+ message: string;
300
+ } | {
301
+ kind: "checkout-failed";
302
+ message: string;
303
+ command: string | null;
304
+ } | {
305
+ kind: "credential-claims-missing";
306
+ team: string;
307
+ project: string;
308
+ } | {
309
+ kind: "network-policy-failed";
310
+ operation: "inject" | "remove";
311
+ around: "command" | "run-steps" | "snapshot-save" | "snapshot-steps";
312
+ reason: "api" | "timed-out";
313
+ status: number | null;
314
+ message: string;
315
+ };
316
+ cleanup: import("../../../shared/cleanup.ts").StormCleanupFacts;
317
+ }]>;
318
+ readonly sharedListFailed: {
319
+ exitCode: 1;
320
+ description: string;
321
+ schema: z.ZodObject<{
322
+ teamId: z.ZodString;
323
+ projectId: z.ZodString;
324
+ team: z.ZodNullable<z.ZodString>;
325
+ project: z.ZodNullable<z.ZodString>;
326
+ message: z.ZodString;
327
+ }, z.core.$strip>;
328
+ render: (facts: import("../access.ts").ProjectFacts & {
329
+ readonly message: string;
330
+ }) => {
331
+ message: string;
332
+ next: {
333
+ type: "text";
334
+ text: string;
335
+ }[];
336
+ };
337
+ };
125
338
  readonly launchMachineHasNoSnapshot: {
126
339
  readonly exitCode: 2;
127
340
  readonly description: "The effective runner is the launch machine, which has no runner snapshot.";
@@ -139,9 +352,9 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
139
352
  }[];
140
353
  };
141
354
  };
142
- readonly snapshotCacheUnreadable: {
355
+ readonly localIndexUnreadable: {
143
356
  readonly exitCode: 1;
144
- readonly description: "storm couldn't read the runner snapshot cache's directory.";
357
+ readonly description: "storm couldn't read the local snapshot index directory.";
145
358
  readonly schema: z.ZodObject<{
146
359
  path: z.ZodString;
147
360
  message: z.ZodString;
@@ -156,7 +369,7 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
156
369
  };
157
370
  readonly checkoutFailed: {
158
371
  readonly exitCode: 1;
159
- readonly description: "git failed while storm checked the checkout or a cached snapshot's base, as a run here would refuse.";
372
+ readonly description: "git failed while storm checked the checkout or an indexed snapshot's base, as a run here would refuse.";
160
373
  readonly schema: z.ZodObject<{
161
374
  message: z.ZodString;
162
375
  }, z.core.$strip>;
@@ -170,10 +383,29 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
170
383
  }[];
171
384
  };
172
385
  };
386
+ readonly mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
387
+ team: string;
388
+ project: string;
389
+ cause: string;
390
+ fix: string;
391
+ }]>;
173
392
  readonly suiteNotFound: import("@vercel/clinkr").SharedError<"suite_not_found", [data: {
174
393
  suite: string;
175
394
  suites: string[];
176
395
  configFile: string | null;
177
396
  }]>;
397
+ readonly tokenRequestFailed: import("@vercel/clinkr").SharedError<"token_request_failed", [data: {
398
+ cause: "request-failed" | "variables-missing";
399
+ missing: ("ACTIONS_ID_TOKEN_REQUEST_TOKEN" | "ACTIONS_ID_TOKEN_REQUEST_URL")[] | null;
400
+ status: number | null;
401
+ said: string | null;
402
+ detail: string;
403
+ fix: string;
404
+ }]>;
405
+ readonly vercelOidcTokenFailed: import("@vercel/clinkr").SharedError<"vercel_oidc_token_failed", [data: {
406
+ cause: "invalid-token" | "missing-token";
407
+ detail: string;
408
+ fix: string;
409
+ }]>;
178
410
  }>;
179
411
  export {};