@cnc-tools/storm 0.14.2 → 0.16.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 (414) hide show
  1. package/dist/application.js +3 -1
  2. package/dist/bin/storm.js +9 -7
  3. package/dist/build-info.js +1 -1
  4. package/dist/chunks/chunk-2MAD5NKK.js +108 -0
  5. package/dist/chunks/{chunk-HDL4WKIB.js → chunk-3L52KNQA.js} +2 -2
  6. package/dist/chunks/{chunk-GSC6SRTW.js → chunk-5CCP36QQ.js} +1 -1
  7. package/dist/chunks/{chunk-43MWZLJR.js → chunk-5VXBKPW6.js} +1 -1
  8. package/dist/chunks/chunk-7EENF73W.js +782 -0
  9. package/dist/chunks/{chunk-RA4L2ACU.js → chunk-AWBSONHB.js} +88 -34
  10. package/dist/chunks/chunk-CK2GZEPK.js +40 -0
  11. package/dist/chunks/{chunk-BRUIATTR.js → chunk-CN4EFA5J.js} +59 -12
  12. package/dist/chunks/{chunk-I7AN3DIJ.js → chunk-DC2CDHNK.js} +1928 -738
  13. package/dist/chunks/{chunk-UUBZTGLV.js → chunk-DWEAHX4T.js} +140 -130
  14. package/dist/chunks/{chunk-T6AZIDZD.js → chunk-F6N34UWB.js} +12 -244
  15. package/dist/chunks/chunk-FCQUJDA4.js +963 -0
  16. package/dist/chunks/{chunk-VH2POPW5.js → chunk-FOZWA52V.js} +635 -79
  17. package/dist/chunks/{chunk-XZCDA5PE.js → chunk-G3PHMXH5.js} +7 -2
  18. package/dist/chunks/{chunk-3HBPNQ4Y.js → chunk-HVNK3I45.js} +2 -2
  19. package/dist/chunks/chunk-OIY3DMF2.js +74 -0
  20. package/dist/chunks/{chunk-GJOEPJJL.js → chunk-P357TZAY.js} +446 -52
  21. package/dist/chunks/{chunk-UC6DULWY.js → chunk-R7XVBZOY.js} +130 -39
  22. package/dist/chunks/chunk-TJNFVNKR.js +246 -0
  23. package/dist/chunks/{chunk-RUPD4TLT.js → chunk-V4IKA3WI.js} +198 -63
  24. package/dist/chunks/{chunk-BW2ADH7U.js → chunk-VUPZH7J2.js} +1 -1
  25. package/dist/chunks/{chunk-LUOHJ3LB.js → chunk-Z5PBVG3Y.js} +1131 -468
  26. package/dist/chunks/{chunk-GQIL3AHY.js → chunk-ZG3WQ4UF.js} +1 -1
  27. package/dist/chunks/{live-app-SZGEILCQ.js → live-app-WECQOQ4C.js} +28 -23
  28. package/dist/command-tree.d.ts +2 -2
  29. package/dist/command-tree.js +2 -2
  30. package/dist/commands/exec/across-sandboxes-outcomes.d.ts +364 -0
  31. package/dist/commands/exec/across-sandboxes-outcomes.js +230 -0
  32. package/dist/commands/exec/across-sandboxes-run.d.ts +180 -0
  33. package/dist/commands/exec/across-sandboxes-run.js +339 -0
  34. package/dist/commands/exec/command.d.ts +583 -75
  35. package/dist/commands/exec/command.js +165 -32
  36. package/dist/commands/exec/driver-plan.d.ts +8 -2
  37. package/dist/commands/exec/driver-plan.js +13 -3
  38. package/dist/commands/exec/exec-words.d.ts +17 -3
  39. package/dist/commands/exec/exec-words.js +27 -16
  40. package/dist/commands/exec/live-view.d.ts +3 -4
  41. package/dist/commands/exec/live-view.js +37 -28
  42. package/dist/commands/exec/metadata.js +2 -2
  43. package/dist/commands/exec/mint-failed.d.ts +4 -4
  44. package/dist/commands/exec/mint-failed.js +6 -6
  45. package/dist/commands/exec/outcomes.d.ts +533 -73
  46. package/dist/commands/exec/outcomes.js +203 -67
  47. package/dist/commands/exec/plan-only.d.ts +10 -0
  48. package/dist/commands/exec/plan-only.js +45 -0
  49. package/dist/commands/exec/plan-run.d.ts +54 -35
  50. package/dist/commands/exec/plan-run.js +81 -38
  51. package/dist/commands/exec/planned-outcome.d.ts +15 -0
  52. package/dist/commands/exec/planned-outcome.js +42 -0
  53. package/dist/commands/exec/progress.d.ts +2 -2
  54. package/dist/commands/exec/progress.js +35 -18
  55. package/dist/commands/exec/resource-refusals.d.ts +2 -2
  56. package/dist/commands/exec/resource-refusals.js +3 -3
  57. package/dist/commands/exec/run-bin.d.ts +1 -1
  58. package/dist/commands/exec/run-bin.js +2 -2
  59. package/dist/commands/exec/run-command.d.ts +344 -63
  60. package/dist/commands/exec/run-command.js +312 -263
  61. package/dist/commands/exec/run-metadata.d.ts +42 -8
  62. package/dist/commands/exec/run-metadata.js +40 -21
  63. package/dist/commands/exec/run-planned.d.ts +20 -0
  64. package/dist/commands/exec/run-planned.js +22 -0
  65. package/dist/commands/exec/sandbox-lines.d.ts +42 -0
  66. package/dist/commands/exec/sandbox-lines.js +59 -0
  67. package/dist/commands/exec/sandbox-progress.d.ts +30 -0
  68. package/dist/commands/exec/sandbox-progress.js +232 -0
  69. package/dist/commands/exec/sandbox-view.d.ts +19 -0
  70. package/dist/commands/exec/sandbox-view.js +72 -0
  71. package/dist/commands/exec/view.d.ts +3 -2
  72. package/dist/commands/exec/view.js +10 -6
  73. package/dist/commands/runs/facts.d.ts +53 -10
  74. package/dist/commands/runs/facts.js +60 -32
  75. package/dist/commands/runs/list/command.d.ts +82 -4
  76. package/dist/commands/runs/list/command.js +11 -10
  77. package/dist/commands/runs/list/metadata.js +1 -1
  78. package/dist/commands/runs/list/outcomes.d.ts +41 -2
  79. package/dist/commands/runs/logs/command.d.ts +109 -10
  80. package/dist/commands/runs/logs/command.js +139 -24
  81. package/dist/commands/runs/logs/metadata.d.ts +4 -0
  82. package/dist/commands/runs/logs/metadata.js +14 -7
  83. package/dist/commands/runs/logs/outcomes.d.ts +52 -3
  84. package/dist/commands/runs/logs/outcomes.js +110 -6
  85. package/dist/commands/runs/past-run.d.ts +91 -11
  86. package/dist/commands/runs/past-run.js +149 -9
  87. package/dist/commands/runs/show/command.d.ts +574 -12
  88. package/dist/commands/runs/show/command.js +634 -119
  89. package/dist/commands/runs/show/metadata.d.ts +17 -0
  90. package/dist/commands/runs/show/metadata.js +48 -7
  91. package/dist/commands/runs/show/outcomes.d.ts +279 -6
  92. package/dist/commands/runs/show/outcomes.js +484 -96
  93. package/dist/commands/snapshots/build/command.d.ts +109 -18
  94. package/dist/commands/snapshots/build/command.js +72 -36
  95. package/dist/commands/snapshots/build/metadata.d.ts +4 -0
  96. package/dist/commands/snapshots/build/metadata.js +5 -1
  97. package/dist/commands/snapshots/build/outcomes.d.ts +53 -8
  98. package/dist/commands/snapshots/build/outcomes.js +26 -3
  99. package/dist/commands/snapshots/list/command.d.ts +72 -7
  100. package/dist/commands/snapshots/list/command.js +57 -24
  101. package/dist/commands/snapshots/list/metadata.d.ts +4 -0
  102. package/dist/commands/snapshots/list/metadata.js +5 -1
  103. package/dist/commands/snapshots/list/outcomes.d.ts +31 -0
  104. package/dist/commands/snapshots/list/outcomes.js +25 -2
  105. package/dist/commands/suites/list/command.d.ts +129 -0
  106. package/dist/commands/suites/list/command.js +163 -0
  107. package/dist/commands/suites/list/metadata.d.ts +11 -0
  108. package/dist/commands/suites/list/metadata.js +15 -0
  109. package/dist/commands/suites/list/outcomes.d.ts +91 -0
  110. package/dist/commands/suites/list/outcomes.js +122 -0
  111. package/dist/commands/suites/metadata.js +8 -0
  112. package/dist/commands/test/command.d.ts +1395 -0
  113. package/dist/commands/test/command.js +581 -0
  114. package/dist/commands/test/metadata.js +8 -0
  115. package/dist/commands/test/outcomes.d.ts +768 -0
  116. package/dist/commands/test/outcomes.js +140 -0
  117. package/dist/commands/test/plan.d.ts +92 -0
  118. package/dist/commands/test/plan.js +125 -0
  119. package/dist/commands/test/test-words.d.ts +12 -0
  120. package/dist/commands/test/test-words.js +42 -0
  121. package/dist/config/check-resources.d.ts +14 -0
  122. package/dist/config/check-resources.js +98 -0
  123. package/dist/config/check-runner.d.ts +15 -0
  124. package/dist/config/check-runner.js +79 -0
  125. package/dist/config/check-suites.d.ts +14 -0
  126. package/dist/config/check-suites.js +100 -0
  127. package/dist/config/gateways.d.ts +31 -3
  128. package/dist/config/index.d.ts +8 -6
  129. package/dist/config/index.js +5 -4
  130. package/dist/config/live/config-gateway.js +5 -2
  131. package/dist/config/live/file-lists-file-gateway.d.ts +4 -0
  132. package/dist/config/live/file-lists-file-gateway.js +27 -0
  133. package/dist/config/load.d.ts +32 -14
  134. package/dist/config/load.js +162 -116
  135. package/dist/config/resolve.d.ts +3 -2
  136. package/dist/config/resolve.js +6 -3
  137. package/dist/config/resolver.d.ts +20 -6
  138. package/dist/config/resolver.js +11 -8
  139. package/dist/config/runner.d.ts +23 -0
  140. package/dist/config/runner.js +4 -0
  141. package/dist/config/schema.d.ts +39 -19
  142. package/dist/config/schema.js +50 -10
  143. package/dist/config/settings-file.d.ts +9 -3
  144. package/dist/config/settings-file.js +41 -4
  145. package/dist/config/suite.d.ts +39 -0
  146. package/dist/config/suite.js +5 -0
  147. package/dist/config/typed-options.d.ts +1 -6
  148. package/dist/config/typed-options.js +2 -10
  149. package/dist/config-file/define.d.ts +45 -24
  150. package/dist/config-file/define.js +9 -8
  151. package/dist/config-file/runner.d.ts +11 -0
  152. package/dist/config-file/runner.js +9 -0
  153. package/dist/config-file/toolchain.d.ts +13 -7
  154. package/dist/config-file/toolchain.js +51 -35
  155. package/dist/context.d.ts +12 -8
  156. package/dist/context.js +9 -3
  157. package/dist/core/across-sandboxes.d.ts +43 -0
  158. package/dist/core/across-sandboxes.js +319 -0
  159. package/dist/core/before-run.d.ts +5 -3
  160. package/dist/core/before-run.js +12 -1
  161. package/dist/core/events.d.ts +62 -6
  162. package/dist/core/events.js +14 -0
  163. package/dist/core/index.d.ts +4 -2
  164. package/dist/core/index.js +3 -1
  165. package/dist/core/payload.d.ts +2 -1
  166. package/dist/core/payload.js +2 -1
  167. package/dist/core/presentations.js +1 -1
  168. package/dist/core/resource.d.ts +1 -1
  169. package/dist/core/resources.d.ts +56 -6
  170. package/dist/core/resources.js +81 -5
  171. package/dist/core/run-state.js +9 -0
  172. package/dist/core/run.d.ts +77 -15
  173. package/dist/core/run.js +150 -86
  174. package/dist/core/sandbox-end.d.ts +64 -0
  175. package/dist/core/sandbox-end.js +128 -0
  176. package/dist/core/timeline.d.ts +4 -4
  177. package/dist/core/timeline.js +3 -3
  178. package/dist/credential/live/vercel-cli-gateway.d.ts +7 -0
  179. package/dist/credential/live/vercel-cli-gateway.js +14 -1
  180. package/dist/extensions/github/context.d.ts +1 -1
  181. package/dist/extensions/github/definition.d.ts +11 -9
  182. package/dist/extensions/github/definition.js +8 -6
  183. package/dist/extensions/github/extension.d.ts +3 -3
  184. package/dist/extensions/github/fixture-repo.d.ts +21 -2
  185. package/dist/extensions/github/fixture-repo.js +31 -2
  186. package/dist/extensions/github/index.d.ts +2 -2
  187. package/dist/extensions/github/index.js +2 -2
  188. package/dist/extensions/github/lifecycle.d.ts +16 -6
  189. package/dist/extensions/github/lifecycle.js +42 -25
  190. package/dist/extensions/github/options.d.ts +17 -11
  191. package/dist/extensions/github/options.js +14 -13
  192. package/dist/extensions/github/refusals.d.ts +23 -6
  193. package/dist/extensions/github/refusals.js +34 -12
  194. package/dist/extensions/github/resource.d.ts +21 -12
  195. package/dist/extensions/github/resource.js +16 -8
  196. package/dist/extensions/github/run/payload.d.ts +6 -6
  197. package/dist/extensions/github/run/payload.js +3 -5
  198. package/dist/extensions/github/split.d.ts +10 -0
  199. package/dist/extensions/github/split.js +12 -0
  200. package/dist/extensions/playwright/driver.js +6 -26
  201. package/dist/extensions/playwright/extension.js +1 -1
  202. package/dist/extensions/testserver/commands/pool/create/command.js +8 -8
  203. package/dist/extensions/testserver/commands/pool/list/command.js +4 -4
  204. package/dist/extensions/testserver/definition.d.ts +4 -4
  205. package/dist/extensions/testserver/definition.js +41 -31
  206. package/dist/extensions/testserver/extension.d.ts +4 -5
  207. package/dist/extensions/testserver/extension.js +14 -41
  208. package/dist/extensions/testserver/index.d.ts +1 -1
  209. package/dist/extensions/testserver/index.js +1 -1
  210. package/dist/extensions/testserver/lifecycle.d.ts +10 -2
  211. package/dist/extensions/testserver/lifecycle.js +29 -6
  212. package/dist/extensions/testserver/options/rules.d.ts +5 -5
  213. package/dist/extensions/testserver/options/rules.js +10 -8
  214. package/dist/extensions/testserver/options/sandboxes.d.ts +4 -2
  215. package/dist/extensions/testserver/options/sandboxes.js +8 -3
  216. package/dist/extensions/testserver/pool/gateways.d.ts +29 -4
  217. package/dist/extensions/testserver/pool/index.d.ts +2 -2
  218. package/dist/extensions/testserver/pool/index.js +1 -1
  219. package/dist/extensions/testserver/pool/lease.d.ts +10 -0
  220. package/dist/extensions/testserver/pool/lease.js +21 -0
  221. package/dist/extensions/testserver/pool/live/pool-store-gateway.js +38 -3
  222. package/dist/extensions/testserver/refusals.d.ts +12 -0
  223. package/dist/extensions/testserver/refusals.js +18 -0
  224. package/dist/extensions/testserver/release.d.ts +16 -0
  225. package/dist/extensions/testserver/release.js +56 -4
  226. package/dist/extensions/testserver/resource.d.ts +6 -6
  227. package/dist/extensions/testserver/resource.js +3 -3
  228. package/dist/extensions/testserver/split.d.ts +9 -0
  229. package/dist/extensions/testserver/split.js +22 -0
  230. package/dist/extensions/testserver/vitest/fixtures.d.ts +5 -5
  231. package/dist/extensions/testserver/vitest/fixtures.js +9 -38
  232. package/dist/extensions/vitest/driver.d.ts +7 -0
  233. package/dist/extensions/vitest/driver.js +33 -37
  234. package/dist/extensions/vitest/extension.js +1 -1
  235. package/dist/extensions/vitest/plan/plan-over.d.ts +8 -1
  236. package/dist/extensions/vitest/plan/plan-over.js +16 -2
  237. package/dist/extensions.d.ts +17 -16
  238. package/dist/extensions.js +5 -4
  239. package/dist/forward-sigterm.js +1 -1
  240. package/dist/launcher-resolvers/local-services.d.ts +1 -1
  241. package/dist/live-app.js +4 -3
  242. package/dist/local-services.js +1 -1
  243. package/dist/planning/driver-file-lists.d.ts +61 -0
  244. package/dist/planning/driver-file-lists.js +66 -0
  245. package/dist/{commands/exec → planning}/driver-refusals.d.ts +11 -10
  246. package/dist/{commands/exec → planning}/driver-refusals.js +18 -14
  247. package/dist/planning/file-lists-file.d.ts +58 -0
  248. package/dist/planning/file-lists-file.js +105 -0
  249. package/dist/planning/file-lists.d.ts +28 -0
  250. package/dist/planning/file-lists.js +52 -0
  251. package/dist/{commands/exec → planning}/final-results.d.ts +1 -1
  252. package/dist/{commands/exec → planning}/final-results.js +6 -6
  253. package/dist/planning/plan-only.d.ts +84 -0
  254. package/dist/planning/plan-only.js +86 -0
  255. package/dist/{commands/exec → planning}/redaction.d.ts +2 -2
  256. package/dist/{commands/exec → planning}/redaction.js +5 -4
  257. package/dist/{commands/exec → planning}/resource-flags.d.ts +5 -12
  258. package/dist/{commands/exec → planning}/resource-flags.js +6 -16
  259. package/dist/planning/run-kind-flags.d.ts +20 -0
  260. package/dist/planning/run-kind-flags.js +48 -0
  261. package/dist/planning/run-plan.d.ts +29 -0
  262. package/dist/planning/run-plan.js +4 -0
  263. package/dist/planning/sandbox-placeholders.d.ts +22 -0
  264. package/dist/planning/sandbox-placeholders.js +60 -0
  265. package/dist/planning/suite-not-found.d.ts +37 -0
  266. package/dist/planning/suite-not-found.js +36 -0
  267. package/dist/planning/suites.d.ts +43 -0
  268. package/dist/planning/suites.js +89 -0
  269. package/dist/{commands/exec → planning}/test-plan.d.ts +8 -3
  270. package/dist/{commands/exec → planning}/test-plan.js +32 -5
  271. package/dist/playwright/reporter.d.ts +20 -8
  272. package/dist/playwright/reporter.js +195 -15
  273. package/dist/presentation.d.ts +10 -6
  274. package/dist/presentation.js +13 -15
  275. package/dist/run-directory/gateways.d.ts +60 -4
  276. package/dist/run-directory/index.d.ts +4 -4
  277. package/dist/run-directory/index.js +2 -1
  278. package/dist/run-directory/live/run-directory-gateway.js +92 -16
  279. package/dist/run-directory/plan.d.ts +35 -2
  280. package/dist/run-directory/plan.js +44 -7
  281. package/dist/run-directory/reader.d.ts +26 -5
  282. package/dist/run-directory/reader.js +24 -1
  283. package/dist/run-directory/recording.d.ts +75 -49
  284. package/dist/run-directory/recording.js +214 -28
  285. package/dist/run-directory/run-directory.d.ts +22 -1
  286. package/dist/run-directory/run-directory.js +24 -0
  287. package/dist/run-directory/run-record.d.ts +144 -21
  288. package/dist/run-directory/run-record.js +118 -19
  289. package/dist/run-directory/timeline-facts.js +4 -4
  290. package/dist/runner/base.d.ts +0 -6
  291. package/dist/runner/base.js +0 -15
  292. package/dist/runner/build-snapshots.d.ts +7 -7
  293. package/dist/runner/build-snapshots.js +19 -24
  294. package/dist/runner/events.d.ts +29 -8
  295. package/dist/runner/gateways.d.ts +54 -6
  296. package/dist/runner/index.d.ts +6 -4
  297. package/dist/runner/index.js +3 -2
  298. package/dist/runner/live/sandbox-gateway.js +173 -31
  299. package/dist/runner/network-policy.d.ts +55 -0
  300. package/dist/runner/network-policy.js +46 -0
  301. package/dist/runner/policy-writes.d.ts +40 -0
  302. package/dist/runner/policy-writes.js +124 -0
  303. package/dist/runner/prepare.d.ts +16 -16
  304. package/dist/runner/prepare.js +11 -12
  305. package/dist/runner/ready.d.ts +39 -10
  306. package/dist/runner/ready.js +59 -47
  307. package/dist/runner/recipe-check.d.ts +6 -0
  308. package/dist/runner/recipe-check.js +29 -0
  309. package/dist/runner/recipe-secrets.d.ts +67 -0
  310. package/dist/runner/recipe-secrets.js +230 -0
  311. package/dist/runner/recipe.d.ts +151 -63
  312. package/dist/runner/recipe.js +277 -200
  313. package/dist/runner/sandboxed-command.d.ts +22 -8
  314. package/dist/runner/sandboxed-command.js +33 -10
  315. package/dist/runner/scope.d.ts +107 -21
  316. package/dist/runner/scope.js +274 -54
  317. package/dist/runner/secrets.d.ts +42 -31
  318. package/dist/runner/secrets.js +62 -40
  319. package/dist/runner/session.d.ts +59 -26
  320. package/dist/runner/session.js +82 -41
  321. package/dist/runner/snapshot-build.d.ts +8 -5
  322. package/dist/runner/snapshot-build.js +56 -29
  323. package/dist/runner/snapshot-choice.d.ts +37 -0
  324. package/dist/runner/snapshot-choice.js +38 -0
  325. package/dist/runner/snapshot-inspect.d.ts +4 -4
  326. package/dist/runner/snapshot-inspect.js +7 -7
  327. package/dist/runner/snapshot-key.d.ts +27 -17
  328. package/dist/runner/snapshot-key.js +51 -26
  329. package/dist/runner/steps.d.ts +13 -5
  330. package/dist/runner/steps.js +34 -4
  331. package/dist/runner/time-limit.d.ts +10 -0
  332. package/dist/runner/time-limit.js +43 -0
  333. package/dist/sdk/extension/commands.d.ts +1 -7
  334. package/dist/sdk/extension/driver.d.ts +39 -46
  335. package/dist/sdk/extension/driver.js +6 -6
  336. package/dist/sdk/extension/index.d.ts +3 -3
  337. package/dist/sdk/extension/index.js +3 -4
  338. package/dist/sdk/extension/lifecycle.d.ts +52 -9
  339. package/dist/sdk/extension/lifecycle.js +1 -1
  340. package/dist/sdk/extension/resource-definition.d.ts +16 -12
  341. package/dist/sdk/extension/resource-definition.js +10 -4
  342. package/dist/sdk/extension/resource-factory.js +3 -4
  343. package/dist/sdk/extension/resource.d.ts +2 -2
  344. package/dist/sdk/extension/secret-source.d.ts +58 -0
  345. package/dist/sdk/extension/secret-source.js +78 -0
  346. package/dist/sdk/index.d.ts +2 -2
  347. package/dist/sdk/index.js +1 -1
  348. package/dist/sdk/run/launcher.d.ts +1 -1
  349. package/dist/sdk/run/launcher.js +1 -1
  350. package/dist/sdk/run/payload.d.ts +16 -1
  351. package/dist/sdk/run/payload.js +17 -2
  352. package/dist/sdk/run/present.d.ts +3 -3
  353. package/dist/sdk/run/present.js +1 -3
  354. package/dist/sdk/run/redact.js +2 -2
  355. package/dist/sdk/run/test-events.d.ts +23 -6
  356. package/dist/sdk/run/test-events.js +6 -4
  357. package/dist/sdk/run/test-result-writer.d.ts +8 -3
  358. package/dist/sdk/run/test-result-writer.js +22 -2
  359. package/dist/{commands/exec → shared}/cleanup.d.ts +3 -3
  360. package/dist/{commands/exec → shared}/cleanup.js +11 -6
  361. package/dist/shared/job-summary.d.ts +19 -0
  362. package/dist/{commands/exec → shared}/job-summary.js +17 -0
  363. package/dist/shared/sandbox-table.d.ts +48 -0
  364. package/dist/shared/sandbox-table.js +109 -0
  365. package/dist/{commands/exec → shared}/snapshot-text.d.ts +1 -1
  366. package/dist/{commands/exec → shared}/tests-summary.d.ts +22 -6
  367. package/dist/{commands/exec → shared}/tests-summary.js +74 -31
  368. package/dist/{commands/exec → shared}/text.d.ts +7 -2
  369. package/dist/{commands/exec → shared}/text.js +9 -1
  370. package/dist/{commands/exec → shared}/waterfall.d.ts +8 -6
  371. package/dist/{commands/exec → shared}/waterfall.js +71 -24
  372. package/dist/shared/worker-chart.d.ts +172 -0
  373. package/dist/shared/worker-chart.js +623 -0
  374. package/dist/vitest/config.d.ts +35 -11
  375. package/dist/vitest/config.js +47 -14
  376. package/dist/vitest/index.d.ts +1 -1
  377. package/dist/vitest/index.js +3 -3
  378. package/dist/vitest/sequencer.d.ts +23 -0
  379. package/dist/vitest/sequencer.js +73 -0
  380. package/dist/vitest/setup.d.ts +1 -0
  381. package/dist/vitest/setup.js +34 -0
  382. package/dist/vitest/test-events.d.ts +32 -6
  383. package/dist/vitest/test-events.js +25 -5
  384. package/dist/vitest/test-results.d.ts +8 -3
  385. package/dist/vitest/test-results.js +6 -0
  386. package/package.json +7 -2
  387. package/skills/overview.md +23 -17
  388. package/skills/plan-runs.md +67 -0
  389. package/skills/read-run-output.md +51 -19
  390. package/dist/chunks/chunk-E3QU74NX.js +0 -49
  391. package/dist/chunks/chunk-HP54VHGY.js +0 -201
  392. package/dist/chunks/chunk-NMVODY3P.js +0 -19
  393. package/dist/chunks/chunk-TVMEKVOW.js +0 -607
  394. package/dist/commands/exec/define-run-command.d.ts +0 -671
  395. package/dist/commands/exec/define-run-command.js +0 -91
  396. package/dist/commands/exec/job-summary.d.ts +0 -10
  397. package/dist/commands/exec/worker-chart.d.ts +0 -87
  398. package/dist/commands/exec/worker-chart.js +0 -343
  399. package/dist/commands/playwright/command.d.ts +0 -661
  400. package/dist/commands/playwright/command.js +0 -31
  401. package/dist/commands/playwright/metadata.js +0 -8
  402. package/dist/commands/vitest/command.d.ts +0 -662
  403. package/dist/commands/vitest/command.js +0 -31
  404. package/dist/commands/vitest/metadata.js +0 -8
  405. package/dist/config/recipe-run.d.ts +0 -26
  406. package/dist/config/recipe-run.js +0 -27
  407. package/dist/sdk/extension/ci.d.ts +0 -2
  408. package/dist/sdk/extension/ci.js +0 -6
  409. package/dist/chunks/{chunk-YM6TZV4L.js → chunk-VL7WFTVQ.js} +52 -52
  410. package/dist/commands/{playwright → suites}/metadata.d.ts +1 -1
  411. package/dist/commands/{vitest → test}/metadata.d.ts +1 -1
  412. /package/dist/{commands → shared}/dashboard.d.ts +0 -0
  413. /package/dist/{commands → shared}/dashboard.js +0 -0
  414. /package/dist/{commands/exec → shared}/snapshot-text.js +0 -0
@@ -6,7 +6,7 @@ export declare const ranSchema: z.ZodObject<{
6
6
  commit: z.ZodNullable<z.ZodString>;
7
7
  configFile: z.ZodNullable<z.ZodString>;
8
8
  resources: z.ZodType<import("../../core/resource-reports.ts").InstanceFacts, import("../../core/resource-reports.ts").InstanceFacts, z.core.$ZodTypeInternals<import("../../core/resource-reports.ts").InstanceFacts, import("../../core/resource-reports.ts").InstanceFacts>>;
9
- cleanup: z.ZodType<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts>>;
9
+ cleanup: z.ZodType<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts>>;
10
10
  command: z.ZodObject<{
11
11
  exitCode: z.ZodNullable<z.ZodNumber>;
12
12
  signal: z.ZodNullable<z.ZodString>;
@@ -65,15 +65,17 @@ export declare const ranSchema: z.ZodObject<{
65
65
  }, z.core.$strip>>;
66
66
  }, z.core.$strip>;
67
67
  runId: z.ZodNullable<z.ZodString>;
68
- noFinalTestResults: z.ZodBoolean;
69
68
  }, z.core.$strip>;
70
69
  /** What a `ran` outcome is, for its description. */
71
- export declare const RAN_DESCRIPTION = "The command ran and ended. storm exits with its code, or 128 + n when signal n ended it, whatever this result's exit code. A run whose command exited 0 but saved no final test result warns no_final_test_results.";
70
+ export declare const RAN_DESCRIPTION = "The command ran and ended. storm exits with its code, or 128 + n when signal n ended it, whatever this result's exit code.";
72
71
  /**
73
- * How a `ran` outcome renders: its warnings, and the runner sandbox the run kept running, if any; with
74
- * `noFinalTestResults`, the `no_final_test_results` warning and `hints.addReporter` as its next steps.
72
+ * How a `ran` outcome renders: its warnings, and the runner sandbox the run kept running, if any; when `noFinal` says
73
+ * the run saved no final test result, the `no_final_test_results` warning and `hints.addReporter` as its next steps.
75
74
  */
76
- export declare function ranRenderer(hints: Pick<DriverHints, "addReporter">): (ran: z.output<typeof ranSchema>) => import("@vercel/clinkr").Rendered<{
75
+ export declare function renderRan(ran: z.output<typeof ranSchema>, noFinal?: {
76
+ readonly noFinalTestResults: boolean;
77
+ readonly hints: Pick<DriverHints, "addReporter">;
78
+ }): import("@vercel/clinkr").Rendered<{
77
79
  message?: string;
78
80
  warnings?: import("../../sdk/extension/reports.ts").Warning<string>[];
79
81
  next?: {
@@ -83,14 +85,46 @@ export declare function ranRenderer(hints: Pick<DriverHints, "addReporter">): (r
83
85
  }>;
84
86
  /** The errors only a run ends with, beside the config's, the credential's, the resources' and the mint's. */
85
87
  export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
88
+ conflictingOptions: z.ZodObject<{
89
+ conflicts: z.ZodArray<z.ZodObject<{
90
+ flag: z.ZodString;
91
+ message: z.ZodString;
92
+ }, z.core.$strip>>;
93
+ runner: z.ZodEnum<{
94
+ "launch-machine": "launch-machine";
95
+ "vercel-sandbox": "vercel-sandbox";
96
+ }>;
97
+ suite: z.ZodNullable<z.ZodString>;
98
+ configFile: z.ZodNullable<z.ZodString>;
99
+ }, z.core.$strip>;
86
100
  credentialUnused: z.ZodObject<{
87
101
  flags: z.ZodArray<z.ZodString>;
88
102
  configFile: z.ZodNullable<z.ZodString>;
89
103
  }, z.core.$strip>;
104
+ resourceNeedsRunnerSandbox: z.ZodObject<{
105
+ resources: z.ZodArray<z.ZodString>;
106
+ configFile: z.ZodNullable<z.ZodString>;
107
+ }, z.core.$strip>;
90
108
  missingRunner: z.ZodObject<{
91
109
  configFile: z.ZodNullable<z.ZodString>;
92
110
  }, z.core.$strip>;
93
- runnerSecretsInvalid: z.ZodObject<{
111
+ credentialsInvalid: z.ZodObject<{
112
+ variables: z.ZodArray<z.ZodObject<{
113
+ name: z.ZodString;
114
+ problem: z.ZodEnum<{
115
+ missing: "missing";
116
+ multiline: "multiline";
117
+ short: "short";
118
+ }>;
119
+ }, z.core.$strip>>;
120
+ minLength: z.ZodNumber;
121
+ configFile: z.ZodNullable<z.ZodString>;
122
+ }, z.core.$strip>;
123
+ keepSandboxUnsafeSecretEnvVars: z.ZodObject<{
124
+ variables: z.ZodArray<z.ZodString>;
125
+ configFile: z.ZodNullable<z.ZodString>;
126
+ }, z.core.$strip>;
127
+ unsafeSecretEnvVarsInvalid: z.ZodObject<{
94
128
  variables: z.ZodArray<z.ZodObject<{
95
129
  name: z.ZodString;
96
130
  problem: z.ZodEnum<{
@@ -121,7 +155,7 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
121
155
  path: z.ZodString;
122
156
  message: z.ZodString;
123
157
  }, z.core.$strip>>;
124
- cleanup: z.ZodType<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts>>;
158
+ cleanup: z.ZodType<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts>>;
125
159
  }, z.core.$strip>;
126
160
  runnerFailed: z.ZodObject<{
127
161
  failure: z.ZodUnion<readonly [z.ZodObject<{
@@ -147,15 +181,65 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
147
181
  kind: z.ZodLiteral<"credential-claims-missing">;
148
182
  team: z.ZodString;
149
183
  project: z.ZodString;
184
+ }, z.core.$strip>, z.ZodObject<{
185
+ kind: z.ZodLiteral<"network-policy-failed">;
186
+ operation: z.ZodEnum<{
187
+ inject: "inject";
188
+ remove: "remove";
189
+ }>;
190
+ around: z.ZodEnum<{
191
+ command: "command";
192
+ "run-steps": "run-steps";
193
+ "snapshot-save": "snapshot-save";
194
+ "snapshot-steps": "snapshot-steps";
195
+ }>;
196
+ reason: z.ZodEnum<{
197
+ api: "api";
198
+ "timed-out": "timed-out";
199
+ }>;
200
+ status: z.ZodNullable<z.ZodNumber>;
201
+ message: z.ZodString;
150
202
  }, z.core.$strip>]>;
151
- cleanup: z.ZodType<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts>>;
203
+ cleanup: z.ZodType<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts>>;
152
204
  }, z.core.$strip>;
153
205
  spawnFailed: z.ZodObject<{
154
206
  executable: z.ZodString;
155
207
  message: z.ZodString;
156
- cleanup: z.ZodType<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts>>;
208
+ cleanup: z.ZodType<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts>>;
157
209
  }, z.core.$strip>;
158
210
  }, {
211
+ readonly conflictingOptions: {
212
+ readonly exitCode: 2;
213
+ readonly description: "A run flag doesn't fit the effective runner: --show-output and --keep-sandbox fit the Vercel Sandbox runner, and --credential github-actions fits the launch machine runner.";
214
+ readonly schema: z.ZodObject<{
215
+ conflicts: z.ZodArray<z.ZodObject<{
216
+ flag: z.ZodString;
217
+ message: z.ZodString;
218
+ }, z.core.$strip>>;
219
+ runner: z.ZodEnum<{
220
+ "launch-machine": "launch-machine";
221
+ "vercel-sandbox": "vercel-sandbox";
222
+ }>;
223
+ suite: z.ZodNullable<z.ZodString>;
224
+ configFile: z.ZodNullable<z.ZodString>;
225
+ }, z.core.$strip>;
226
+ readonly render: ({ conflicts, runner, suite }: {
227
+ conflicts: {
228
+ flag: string;
229
+ message: string;
230
+ }[];
231
+ runner: "launch-machine" | "vercel-sandbox";
232
+ suite: string | null;
233
+ configFile: string | null;
234
+ }) => {
235
+ message: string;
236
+ rows: ([string, string[]] | [string, "launch-machine" | "vercel-sandbox"] | readonly ["Suite", string])[];
237
+ next: {
238
+ type: "text";
239
+ text: string;
240
+ }[];
241
+ };
242
+ };
159
243
  readonly credentialUnused: {
160
244
  readonly exitCode: 2;
161
245
  readonly description: "--credential was given to a run with no resource that takes a credential.";
@@ -174,9 +258,27 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
174
258
  }[];
175
259
  };
176
260
  };
261
+ readonly resourceNeedsRunnerSandbox: {
262
+ readonly exitCode: 2;
263
+ readonly description: "A run on the launch machine uses a resource that needs a runner sandbox, such as one that gives the command a sandbox credential the runner sandbox's firewall adds, so the run didn't start: it minted, acquired, and started nothing.";
264
+ readonly schema: z.ZodObject<{
265
+ resources: z.ZodArray<z.ZodString>;
266
+ configFile: z.ZodNullable<z.ZodString>;
267
+ }, z.core.$strip>;
268
+ readonly render: ({ resources }: {
269
+ resources: string[];
270
+ configFile: string | null;
271
+ }) => {
272
+ message: string;
273
+ next: {
274
+ type: "text";
275
+ text: string;
276
+ }[];
277
+ };
278
+ };
177
279
  readonly missingRunner: {
178
280
  readonly exitCode: 2;
179
- readonly description: "A sandboxed run (no --unsandboxed) needs a runner recipe, and no storm.config.ts gives a runner key.";
281
+ readonly description: "No runner is declared: neither storm.config.ts (nor the selected suite) declares runner with vercelSandbox({ … }) or launchMachine(), and --runner launch-machine wasn't passed.";
180
282
  readonly schema: z.ZodObject<{
181
283
  configFile: z.ZodNullable<z.ZodString>;
182
284
  }, z.core.$strip>;
@@ -190,9 +292,58 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
190
292
  }[];
191
293
  };
192
294
  };
193
- readonly runnerSecretsInvalid: {
295
+ readonly credentialsInvalid: {
296
+ readonly exitCode: 2;
297
+ readonly description: "With the Vercel Sandbox runner, launcher environment variables named by the runner recipe's credentials key (source: { kind: \"env\", name }) can't be used, so the run didn't start: it minted, acquired, and created nothing. Each variable has one problem, the first of: missing, unset or empty; multiline, its value holds a carriage return or a line feed, which line-by-line output would split past storm's redaction; short, its value holds fewer than 8 characters, and storm shows each value as <token> wherever it appears in what it prints and writes, so a value that short would hide ordinary output.";
298
+ readonly schema: z.ZodObject<{
299
+ variables: z.ZodArray<z.ZodObject<{
300
+ name: z.ZodString;
301
+ problem: z.ZodEnum<{
302
+ missing: "missing";
303
+ multiline: "multiline";
304
+ short: "short";
305
+ }>;
306
+ }, z.core.$strip>>;
307
+ minLength: z.ZodNumber;
308
+ configFile: z.ZodNullable<z.ZodString>;
309
+ }, z.core.$strip>;
310
+ readonly render: ({ variables, minLength, configFile }: {
311
+ variables: {
312
+ name: string;
313
+ problem: "missing" | "multiline" | "short";
314
+ }[];
315
+ minLength: number;
316
+ configFile: string | null;
317
+ }) => {
318
+ message: string;
319
+ rows: [string, string[]][];
320
+ next: {
321
+ type: "text";
322
+ text: string;
323
+ }[];
324
+ };
325
+ };
326
+ readonly keepSandboxUnsafeSecretEnvVars: {
194
327
  readonly exitCode: 2;
195
- readonly description: "In a sandboxed run, launcher environment variables the runner recipe's secrets key names can't be used, so the run didn't start: it minted, acquired and created nothing. Each variable has one problem, the first of: missing, unset or empty; multiline, its value holds a carriage return or a line feed, which line-by-line output would split past storm's redaction; short, its value holds fewer than 8 characters, and storm shows each value as <token> wherever it appears in what it prints and writes, so a value that short would hide ordinary output.";
328
+ readonly description: "With the Vercel Sandbox runner, --keep-sandbox asked to keep the runner sandbox for a recipe whose unsafeSecretEnvVars passes secrets into the command's environment, so the run didn't start: it minted, acquired, and created nothing. Anyone who can update the Vercel project can connect to a kept runner sandbox and read what the command wrote.";
329
+ readonly schema: z.ZodObject<{
330
+ variables: z.ZodArray<z.ZodString>;
331
+ configFile: z.ZodNullable<z.ZodString>;
332
+ }, z.core.$strip>;
333
+ readonly render: ({ variables, configFile }: {
334
+ variables: string[];
335
+ configFile: string | null;
336
+ }) => {
337
+ message: string;
338
+ next: {
339
+ type: "text";
340
+ text: string;
341
+ }[];
342
+ };
343
+ };
344
+ readonly unsafeSecretEnvVarsInvalid: {
345
+ readonly exitCode: 2;
346
+ readonly description: "With the Vercel Sandbox runner, launcher environment variables named by the runner recipe's unsafeSecretEnvVars key (source: { kind: \"env\", name }) can't be used, so the run didn't start: it minted, acquired, and created nothing. Each variable has one problem, the first of: missing, unset or empty; multiline, its value holds a carriage return or a line feed, which line-by-line output would split past storm's redaction; short, its value holds fewer than 8 characters, and storm shows each value as <token> wherever it appears in what it prints and writes, so a value that short would hide ordinary output.";
196
347
  readonly schema: z.ZodObject<{
197
348
  variables: z.ZodArray<z.ZodObject<{
198
349
  name: z.ZodString;
@@ -223,7 +374,7 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
223
374
  };
224
375
  readonly noBaseRef: {
225
376
  readonly exitCode: 1;
226
- readonly description: "In a sandboxed run, none of the runner recipe's baseRefs exists locally and shares history with HEAD, so there is no base. storm never fetches.";
377
+ readonly description: "With the Vercel Sandbox runner, none of the runner recipe's baseRefs exists locally and shares history with HEAD, so there is no base. storm never fetches.";
227
378
  readonly schema: z.ZodObject<{
228
379
  refs: z.ZodArray<z.ZodObject<{
229
380
  ref: z.ZodString;
@@ -249,7 +400,7 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
249
400
  };
250
401
  readonly submodulesRefused: {
251
402
  readonly exitCode: 1;
252
- readonly description: "In a sandboxed run, the checkout has Git submodules, which neither the upload nor the base's files carry.";
403
+ readonly description: "With the Vercel Sandbox runner, the checkout has Git submodules, which neither the upload nor the base's files carry.";
253
404
  readonly schema: z.ZodObject<{
254
405
  paths: z.ZodArray<z.ZodString>;
255
406
  }, z.core.$strip>;
@@ -265,7 +416,7 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
265
416
  };
266
417
  readonly snapshotGone: {
267
418
  readonly exitCode: 1;
268
- readonly description: "In a sandboxed run, the cached runner snapshot the run picked was gone (the Sandbox API answered 410), so its cache entry was removed and the command didn't run. The next run picks another runner snapshot or builds one.";
419
+ readonly description: "With the Vercel Sandbox runner, the cached runner snapshot the run picked was gone (the Sandbox API answered 410), so its cache entry was removed and the command didn't run. The next run picks another runner snapshot or builds one.";
269
420
  readonly schema: z.ZodObject<{
270
421
  snapshotId: z.ZodString;
271
422
  base: z.ZodString;
@@ -273,7 +424,7 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
273
424
  path: z.ZodString;
274
425
  message: z.ZodString;
275
426
  }, z.core.$strip>>;
276
- cleanup: z.ZodType<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts>>;
427
+ cleanup: z.ZodType<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts>>;
277
428
  }, z.core.$strip>;
278
429
  readonly render: ({ snapshotId, removal, cleanup }: {
279
430
  snapshotId: string;
@@ -282,7 +433,7 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
282
433
  path: string;
283
434
  message: string;
284
435
  } | null;
285
- cleanup: import("./cleanup.ts").StormCleanupFacts;
436
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
286
437
  }) => {
287
438
  message: string;
288
439
  rows?: readonly import("@vercel/clinkr").Row[];
@@ -294,7 +445,7 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
294
445
  };
295
446
  readonly runnerFailed: {
296
447
  readonly exitCode: 1;
297
- readonly description: "In a sandboxed run, the runner couldn't run the command: a snapshot build step, applying the changes, the install or the build failed (with the step's last 40 output lines), a Vercel Sandbox call failed, git or tar failed on this machine, or the credential names no team and project ids.";
448
+ readonly description: "With the Vercel Sandbox runner, the runner couldn't run the command: a snapshot build step, applying the changes, the install, or the build failed (with the step's last 40 output lines), a Vercel Sandbox call failed, a network policy write that puts the recipe steps' credentials in place or removes them failed, git or tar failed on this machine, or the credential names no team and project ids.";
298
449
  readonly schema: z.ZodObject<{
299
450
  failure: z.ZodUnion<readonly [z.ZodObject<{
300
451
  kind: z.ZodEnum<{
@@ -319,8 +470,26 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
319
470
  kind: z.ZodLiteral<"credential-claims-missing">;
320
471
  team: z.ZodString;
321
472
  project: z.ZodString;
473
+ }, z.core.$strip>, z.ZodObject<{
474
+ kind: z.ZodLiteral<"network-policy-failed">;
475
+ operation: z.ZodEnum<{
476
+ inject: "inject";
477
+ remove: "remove";
478
+ }>;
479
+ around: z.ZodEnum<{
480
+ command: "command";
481
+ "run-steps": "run-steps";
482
+ "snapshot-save": "snapshot-save";
483
+ "snapshot-steps": "snapshot-steps";
484
+ }>;
485
+ reason: z.ZodEnum<{
486
+ api: "api";
487
+ "timed-out": "timed-out";
488
+ }>;
489
+ status: z.ZodNullable<z.ZodNumber>;
490
+ message: z.ZodString;
322
491
  }, z.core.$strip>]>;
323
- cleanup: z.ZodType<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts>>;
492
+ cleanup: z.ZodType<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts>>;
324
493
  }, z.core.$strip>;
325
494
  readonly render: ({ failure, cleanup }: {
326
495
  failure: {
@@ -341,8 +510,15 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
341
510
  kind: "credential-claims-missing";
342
511
  team: string;
343
512
  project: string;
513
+ } | {
514
+ kind: "network-policy-failed";
515
+ operation: "inject" | "remove";
516
+ around: "command" | "run-steps" | "snapshot-save" | "snapshot-steps";
517
+ reason: "api" | "timed-out";
518
+ status: number | null;
519
+ message: string;
344
520
  };
345
- cleanup: import("./cleanup.ts").StormCleanupFacts;
521
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
346
522
  }) => {
347
523
  message: string;
348
524
  rows?: import("@vercel/clinkr").Row[];
@@ -358,12 +534,12 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
358
534
  readonly schema: z.ZodObject<{
359
535
  executable: z.ZodString;
360
536
  message: z.ZodString;
361
- cleanup: z.ZodType<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts>>;
537
+ cleanup: z.ZodType<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts>>;
362
538
  }, z.core.$strip>;
363
539
  readonly render: ({ executable, message, cleanup }: {
364
540
  executable: string;
365
541
  message: string;
366
- cleanup: import("./cleanup.ts").StormCleanupFacts;
542
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
367
543
  }) => {
368
544
  message: string;
369
545
  rows?: readonly import("@vercel/clinkr").Row[];
@@ -376,10 +552,27 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
376
552
  }>;
377
553
  /** Every error a run ends with, in order: the config's, the credential's, a resource's refusal, the mint's, the run's. */
378
554
  export declare const RUN_ERRORS: {
555
+ conflictingOptions: import("@vercel/clinkr").SharedError<"conflicting_options", [data: {
556
+ conflicts: {
557
+ flag: string;
558
+ message: string;
559
+ }[];
560
+ runner: "launch-machine" | "vercel-sandbox";
561
+ suite: string | null;
562
+ configFile: string | null;
563
+ }]>;
379
564
  credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
380
565
  flags: string[];
381
566
  configFile: string | null;
382
567
  }]>;
568
+ credentialsInvalid: import("@vercel/clinkr").SharedError<"credentials_invalid", [data: {
569
+ variables: {
570
+ name: string;
571
+ problem: "missing" | "multiline" | "short";
572
+ }[];
573
+ minLength: number;
574
+ configFile: string | null;
575
+ }]>;
383
576
  invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
384
577
  file: string;
385
578
  problems: {
@@ -403,13 +596,17 @@ export declare const RUN_ERRORS: {
403
596
  }[];
404
597
  }[];
405
598
  }]>;
599
+ keepSandboxUnsafeSecretEnvVars: import("@vercel/clinkr").SharedError<"keep_sandbox_unsafe_secret_env_vars", [data: {
600
+ variables: string[];
601
+ configFile: string | null;
602
+ }]>;
406
603
  mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
407
604
  team: string;
408
605
  project: string;
409
606
  cause: string;
410
607
  fix: string;
411
608
  runner: boolean;
412
- cleanup: import("./cleanup.ts").StormCleanupFacts;
609
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
413
610
  }]>;
414
611
  missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
415
612
  configFile: string | null;
@@ -423,11 +620,15 @@ export declare const RUN_ERRORS: {
423
620
  reason: "missing" | "unrelated";
424
621
  }[];
425
622
  }]>;
623
+ resourceNeedsRunnerSandbox: import("@vercel/clinkr").SharedError<"resource_needs_runner_sandbox", [data: {
624
+ resources: string[];
625
+ configFile: string | null;
626
+ }]>;
426
627
  resourceRefused: import("@vercel/clinkr").SharedError<"resource_refused", [data: {
427
628
  resource: string;
428
629
  refusal: string;
429
630
  data: Record<string, unknown>;
430
- cleanup: import("./cleanup.ts").StormCleanupFacts;
631
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
431
632
  }, refusal: import("../../sdk/extension/lifecycle.ts").RefusalContent]>;
432
633
  resourceRefusedBeforeRun: import("@vercel/clinkr").SharedError<"resource_refused_before_run", [data: {
433
634
  resource: string;
@@ -454,16 +655,15 @@ export declare const RUN_ERRORS: {
454
655
  kind: "credential-claims-missing";
455
656
  team: string;
456
657
  project: string;
658
+ } | {
659
+ kind: "network-policy-failed";
660
+ operation: "inject" | "remove";
661
+ around: "command" | "run-steps" | "snapshot-save" | "snapshot-steps";
662
+ reason: "api" | "timed-out";
663
+ status: number | null;
664
+ message: string;
457
665
  };
458
- cleanup: import("./cleanup.ts").StormCleanupFacts;
459
- }]>;
460
- runnerSecretsInvalid: import("@vercel/clinkr").SharedError<"runner_secrets_invalid", [data: {
461
- variables: {
462
- name: string;
463
- problem: "missing" | "multiline" | "short";
464
- }[];
465
- minLength: number;
466
- configFile: string | null;
666
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
467
667
  }]>;
468
668
  snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
469
669
  snapshotId: string;
@@ -472,16 +672,24 @@ export declare const RUN_ERRORS: {
472
672
  path: string;
473
673
  message: string;
474
674
  } | null;
475
- cleanup: import("./cleanup.ts").StormCleanupFacts;
675
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
476
676
  }]>;
477
677
  spawnFailed: import("@vercel/clinkr").SharedError<"spawn_failed", [data: {
478
678
  executable: string;
479
679
  message: string;
480
- cleanup: import("./cleanup.ts").StormCleanupFacts;
680
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
481
681
  }]>;
482
682
  submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
483
683
  paths: string[];
484
684
  }]>;
685
+ unsafeSecretEnvVarsInvalid: import("@vercel/clinkr").SharedError<"unsafe_secret_env_vars_invalid", [data: {
686
+ variables: {
687
+ name: string;
688
+ problem: "missing" | "multiline" | "short";
689
+ }[];
690
+ minLength: number;
691
+ configFile: string | null;
692
+ }]>;
485
693
  };
486
694
  /** How `exec` ends. No outcome carries the credential. */
487
695
  export declare const outcomes: import("@vercel/clinkr").Outcomes<{
@@ -490,7 +698,7 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
490
698
  commit: z.ZodNullable<z.ZodString>;
491
699
  configFile: z.ZodNullable<z.ZodString>;
492
700
  resources: z.ZodType<import("../../core/resource-reports.ts").InstanceFacts, import("../../core/resource-reports.ts").InstanceFacts, z.core.$ZodTypeInternals<import("../../core/resource-reports.ts").InstanceFacts, import("../../core/resource-reports.ts").InstanceFacts>>;
493
- cleanup: z.ZodType<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts>>;
701
+ cleanup: z.ZodType<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts>>;
494
702
  command: z.ZodObject<{
495
703
  exitCode: z.ZodNullable<z.ZodNumber>;
496
704
  signal: z.ZodNullable<z.ZodString>;
@@ -549,15 +757,196 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
549
757
  }, z.core.$strip>>;
550
758
  }, z.core.$strip>;
551
759
  runId: z.ZodNullable<z.ZodString>;
552
- noFinalTestResults: z.ZodBoolean;
760
+ }, z.core.$strip>;
761
+ sandboxesRan: z.ZodObject<{
762
+ version: z.ZodString;
763
+ commit: z.ZodNullable<z.ZodString>;
764
+ configFile: z.ZodNullable<z.ZodString>;
765
+ runId: z.ZodNullable<z.ZodString>;
766
+ runDirectory: z.ZodNullable<z.ZodString>;
767
+ sandboxes: z.ZodArray<z.ZodObject<{
768
+ sandbox: z.ZodNumber;
769
+ argv: z.ZodReadonly<z.ZodArray<z.ZodString>>;
770
+ files: z.ZodNullable<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
771
+ state: z.ZodEnum<{
772
+ canceled: "canceled";
773
+ failed: "failed";
774
+ "not-started": "not-started";
775
+ passed: "passed";
776
+ pending: "pending";
777
+ }>;
778
+ failedStage: z.ZodNullable<z.ZodEnum<{
779
+ apply: "apply";
780
+ build: "build";
781
+ checkout: "checkout";
782
+ command: "command";
783
+ install: "install";
784
+ mint: "mint";
785
+ resource: "resource";
786
+ snapshot: "snapshot";
787
+ start: "start";
788
+ storm: "storm";
789
+ upload: "upload";
790
+ }>>;
791
+ exitCode: z.ZodNullable<z.ZodNumber>;
792
+ cause: z.ZodNullable<z.ZodString>;
793
+ name: z.ZodNullable<z.ZodString>;
794
+ keptUntil: z.ZodNullable<z.ZodString>;
795
+ preparedMs: z.ZodNullable<z.ZodNumber>;
796
+ commandMs: z.ZodNullable<z.ZodNumber>;
797
+ tests: z.ZodNullable<z.ZodObject<{
798
+ passed: z.ZodNumber;
799
+ failed: z.ZodNumber;
800
+ skipped: z.ZodNumber;
801
+ }, z.core.$strip>>;
802
+ tail: z.ZodReadonly<z.ZodArray<z.ZodString>>;
803
+ }, z.core.$strip>>;
804
+ states: z.ZodObject<{
805
+ passed: z.ZodNumber;
806
+ failed: z.ZodNumber;
807
+ "not-started": z.ZodNumber;
808
+ canceled: z.ZodNumber;
809
+ }, z.core.$strip>;
810
+ tests: z.ZodNullable<z.ZodObject<{
811
+ passed: z.ZodNumber;
812
+ failed: z.ZodNumber;
813
+ skipped: z.ZodNumber;
814
+ }, z.core.$strip>>;
815
+ plan: z.ZodObject<{
816
+ tests: z.ZodOptional<z.ZodNumber>;
817
+ files: z.ZodOptional<z.ZodNumber>;
818
+ options: z.ZodArray<z.ZodObject<{
819
+ path: z.ZodString;
820
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
821
+ from: z.ZodEnum<{
822
+ default: "default";
823
+ file: "file";
824
+ flag: "flag";
825
+ }>;
826
+ }, z.core.$strip>>;
827
+ sandboxes: z.ZodOptional<z.ZodObject<{
828
+ count: z.ZodNumber;
829
+ from: z.ZodEnum<{
830
+ default: "default";
831
+ "file-lists": "file-lists";
832
+ flag: "flag";
833
+ }>;
834
+ max: z.ZodNumber;
835
+ default: z.ZodOptional<z.ZodNumber>;
836
+ requested: z.ZodOptional<z.ZodNumber>;
837
+ leftOut: z.ZodOptional<z.ZodNumber>;
838
+ }, z.core.$strip>>;
839
+ }, z.core.$strip>;
840
+ resources: z.ZodType<import("../../core/resource-reports.ts").InstanceFacts, import("../../core/resource-reports.ts").InstanceFacts, z.core.$ZodTypeInternals<import("../../core/resource-reports.ts").InstanceFacts, import("../../core/resource-reports.ts").InstanceFacts>>;
841
+ wallMs: z.ZodNumber;
842
+ runner: z.ZodObject<{
843
+ snapshotId: z.ZodString;
844
+ base: z.ZodString;
845
+ builtBehind: z.ZodNullable<z.ZodNumber>;
846
+ built: z.ZodBoolean;
847
+ vcpus: z.ZodNumber;
848
+ region: z.ZodString;
849
+ runtime: z.ZodString;
850
+ uploadBytes: z.ZodNullable<z.ZodNumber>;
851
+ }, z.core.$strip>;
852
+ cleanup: z.ZodType<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts>>;
853
+ kept: z.ZodArray<z.ZodObject<{
854
+ sandbox: z.ZodNumber;
855
+ name: z.ZodString;
856
+ stopsAt: z.ZodString;
857
+ url: z.ZodString;
858
+ }, z.core.$strip>>;
859
+ notKept: z.ZodArray<z.ZodObject<{
860
+ sandbox: z.ZodNumber;
861
+ name: z.ZodString;
862
+ message: z.ZodString;
863
+ }, z.core.$strip>>;
864
+ fileListMismatches: z.ZodArray<z.ZodObject<{
865
+ sandbox: z.ZodNumber;
866
+ missing: z.ZodArray<z.ZodString>;
867
+ extra: z.ZodArray<z.ZodString>;
868
+ }, z.core.$strip>>;
869
+ }, z.core.$strip>;
870
+ planned: z.ZodObject<{
871
+ version: z.ZodString;
872
+ commit: z.ZodNullable<z.ZodString>;
873
+ configFile: z.ZodNullable<z.ZodString>;
874
+ argv: z.ZodArray<z.ZodString>;
875
+ plan: z.ZodNullable<z.ZodObject<{
876
+ tests: z.ZodOptional<z.ZodNumber>;
877
+ files: z.ZodOptional<z.ZodNumber>;
878
+ options: z.ZodArray<z.ZodObject<{
879
+ path: z.ZodString;
880
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
881
+ from: z.ZodEnum<{
882
+ default: "default";
883
+ file: "file";
884
+ flag: "flag";
885
+ }>;
886
+ }, z.core.$strip>>;
887
+ sandboxes: z.ZodOptional<z.ZodObject<{
888
+ count: z.ZodNumber;
889
+ from: z.ZodEnum<{
890
+ default: "default";
891
+ "file-lists": "file-lists";
892
+ flag: "flag";
893
+ }>;
894
+ max: z.ZodNumber;
895
+ default: z.ZodOptional<z.ZodNumber>;
896
+ requested: z.ZodOptional<z.ZodNumber>;
897
+ leftOut: z.ZodOptional<z.ZodNumber>;
898
+ }, z.core.$strip>>;
899
+ }, z.core.$strip>>;
900
+ testFiles: z.ZodNullable<z.ZodArray<z.ZodString>>;
901
+ runnerSandboxes: z.ZodNullable<z.ZodObject<{
902
+ max: z.ZodNumber;
903
+ default: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
904
+ filesPerSandbox: z.ZodNumber;
905
+ max: z.ZodOptional<z.ZodNumber>;
906
+ }, z.core.$strip>]>>;
907
+ }, z.core.$strip>>;
908
+ sandboxes: z.ZodNullable<z.ZodArray<z.ZodObject<{
909
+ sandbox: z.ZodNumber;
910
+ argv: z.ZodArray<z.ZodString>;
911
+ files: z.ZodNullable<z.ZodArray<z.ZodString>>;
912
+ }, z.core.$strip>>>;
913
+ options: z.ZodArray<z.ZodObject<{
914
+ path: z.ZodString;
915
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
916
+ from: z.ZodEnum<{
917
+ default: "default";
918
+ file: "file";
919
+ flag: "flag";
920
+ }>;
921
+ }, z.core.$strip>>;
922
+ vcpus: z.ZodNullable<z.ZodNumber>;
553
923
  }, z.core.$strip>;
554
924
  }, {
555
925
  ran: unknown;
926
+ sandboxesRan: unknown;
927
+ planned: unknown;
556
928
  }, {
929
+ conflictingOptions: import("@vercel/clinkr").SharedError<"conflicting_options", [data: {
930
+ conflicts: {
931
+ flag: string;
932
+ message: string;
933
+ }[];
934
+ runner: "launch-machine" | "vercel-sandbox";
935
+ suite: string | null;
936
+ configFile: string | null;
937
+ }]>;
557
938
  credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
558
939
  flags: string[];
559
940
  configFile: string | null;
560
941
  }]>;
942
+ credentialsInvalid: import("@vercel/clinkr").SharedError<"credentials_invalid", [data: {
943
+ variables: {
944
+ name: string;
945
+ problem: "missing" | "multiline" | "short";
946
+ }[];
947
+ minLength: number;
948
+ configFile: string | null;
949
+ }]>;
561
950
  invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
562
951
  file: string;
563
952
  problems: {
@@ -581,17 +970,26 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
581
970
  }[];
582
971
  }[];
583
972
  }]>;
973
+ keepSandboxUnsafeSecretEnvVars: import("@vercel/clinkr").SharedError<"keep_sandbox_unsafe_secret_env_vars", [data: {
974
+ variables: string[];
975
+ configFile: string | null;
976
+ }]>;
584
977
  mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
585
978
  team: string;
586
979
  project: string;
587
980
  cause: string;
588
981
  fix: string;
589
982
  runner: boolean;
590
- cleanup: import("./cleanup.ts").StormCleanupFacts;
983
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
591
984
  }]>;
592
985
  missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
593
986
  configFile: string | null;
594
987
  }]>;
988
+ missingSandboxesMax: import("@vercel/clinkr").SharedError<"missing_sandboxes_max", [data: {
989
+ flag: "--file-lists" | "--sandboxes";
990
+ key: string;
991
+ configFile: string | null;
992
+ }]>;
595
993
  missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
596
994
  missing: ("project" | "scope")[];
597
995
  }]>;
@@ -601,11 +999,15 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
601
999
  reason: "missing" | "unrelated";
602
1000
  }[];
603
1001
  }]>;
1002
+ resourceNeedsRunnerSandbox: import("@vercel/clinkr").SharedError<"resource_needs_runner_sandbox", [data: {
1003
+ resources: string[];
1004
+ configFile: string | null;
1005
+ }]>;
604
1006
  resourceRefused: import("@vercel/clinkr").SharedError<"resource_refused", [data: {
605
1007
  resource: string;
606
1008
  refusal: string;
607
1009
  data: Record<string, unknown>;
608
- cleanup: import("./cleanup.ts").StormCleanupFacts;
1010
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
609
1011
  }, refusal: import("../../sdk/extension/lifecycle.ts").RefusalContent]>;
610
1012
  resourceRefusedBeforeRun: import("@vercel/clinkr").SharedError<"resource_refused_before_run", [data: {
611
1013
  resource: string;
@@ -632,15 +1034,21 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
632
1034
  kind: "credential-claims-missing";
633
1035
  team: string;
634
1036
  project: string;
1037
+ } | {
1038
+ kind: "network-policy-failed";
1039
+ operation: "inject" | "remove";
1040
+ around: "command" | "run-steps" | "snapshot-save" | "snapshot-steps";
1041
+ reason: "api" | "timed-out";
1042
+ status: number | null;
1043
+ message: string;
635
1044
  };
636
- cleanup: import("./cleanup.ts").StormCleanupFacts;
1045
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
637
1046
  }]>;
638
- runnerSecretsInvalid: import("@vercel/clinkr").SharedError<"runner_secrets_invalid", [data: {
639
- variables: {
640
- name: string;
641
- problem: "missing" | "multiline" | "short";
642
- }[];
643
- minLength: number;
1047
+ sandboxesOverMax: import("@vercel/clinkr").SharedError<"sandboxes_over_max", [data: {
1048
+ flag: "--file-lists" | "--sandboxes";
1049
+ sandboxes: number;
1050
+ key: string;
1051
+ max: number;
644
1052
  configFile: string | null;
645
1053
  }]>;
646
1054
  snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
@@ -650,22 +1058,47 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
650
1058
  path: string;
651
1059
  message: string;
652
1060
  } | null;
653
- cleanup: import("./cleanup.ts").StormCleanupFacts;
1061
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
654
1062
  }]>;
655
1063
  spawnFailed: import("@vercel/clinkr").SharedError<"spawn_failed", [data: {
656
1064
  executable: string;
657
1065
  message: string;
658
- cleanup: import("./cleanup.ts").StormCleanupFacts;
1066
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
659
1067
  }]>;
660
1068
  submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
661
1069
  paths: string[];
662
1070
  }]>;
1071
+ unsafeSecretEnvVarsInvalid: import("@vercel/clinkr").SharedError<"unsafe_secret_env_vars_invalid", [data: {
1072
+ variables: {
1073
+ name: string;
1074
+ problem: "missing" | "multiline" | "short";
1075
+ }[];
1076
+ minLength: number;
1077
+ configFile: string | null;
1078
+ }]>;
663
1079
  }, {
664
- credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
1080
+ readonly conflictingOptions: import("@vercel/clinkr").SharedError<"conflicting_options", [data: {
1081
+ conflicts: {
1082
+ flag: string;
1083
+ message: string;
1084
+ }[];
1085
+ runner: "launch-machine" | "vercel-sandbox";
1086
+ suite: string | null;
1087
+ configFile: string | null;
1088
+ }]>;
1089
+ readonly credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
665
1090
  flags: string[];
666
1091
  configFile: string | null;
667
1092
  }]>;
668
- invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
1093
+ readonly credentialsInvalid: import("@vercel/clinkr").SharedError<"credentials_invalid", [data: {
1094
+ variables: {
1095
+ name: string;
1096
+ problem: "missing" | "multiline" | "short";
1097
+ }[];
1098
+ minLength: number;
1099
+ configFile: string | null;
1100
+ }]>;
1101
+ readonly invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
669
1102
  file: string;
670
1103
  problems: {
671
1104
  key: string | null;
@@ -676,7 +1109,7 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
676
1109
  problem: string;
677
1110
  }[];
678
1111
  }]>;
679
- invalidResourceOptions: import("@vercel/clinkr").SharedError<"invalid_resource_options", [data: {
1112
+ readonly invalidResourceOptions: import("@vercel/clinkr").SharedError<"invalid_resource_options", [data: {
680
1113
  configFile: string | null;
681
1114
  problems: {
682
1115
  key: string;
@@ -688,39 +1121,52 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
688
1121
  }[];
689
1122
  }[];
690
1123
  }]>;
691
- mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
1124
+ readonly keepSandboxUnsafeSecretEnvVars: import("@vercel/clinkr").SharedError<"keep_sandbox_unsafe_secret_env_vars", [data: {
1125
+ variables: string[];
1126
+ configFile: string | null;
1127
+ }]>;
1128
+ readonly mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
692
1129
  team: string;
693
1130
  project: string;
694
1131
  cause: string;
695
1132
  fix: string;
696
1133
  runner: boolean;
697
- cleanup: import("./cleanup.ts").StormCleanupFacts;
1134
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
698
1135
  }]>;
699
- missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
1136
+ readonly missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
700
1137
  configFile: string | null;
701
1138
  }]>;
702
- missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
1139
+ readonly missingSandboxesMax: import("@vercel/clinkr").SharedError<"missing_sandboxes_max", [data: {
1140
+ flag: "--file-lists" | "--sandboxes";
1141
+ key: string;
1142
+ configFile: string | null;
1143
+ }]>;
1144
+ readonly missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
703
1145
  missing: ("project" | "scope")[];
704
1146
  }]>;
705
- noBaseRef: import("@vercel/clinkr").SharedError<"no_base_ref", [data: {
1147
+ readonly noBaseRef: import("@vercel/clinkr").SharedError<"no_base_ref", [data: {
706
1148
  refs: {
707
1149
  ref: string;
708
1150
  reason: "missing" | "unrelated";
709
1151
  }[];
710
1152
  }]>;
711
- resourceRefused: import("@vercel/clinkr").SharedError<"resource_refused", [data: {
1153
+ readonly resourceNeedsRunnerSandbox: import("@vercel/clinkr").SharedError<"resource_needs_runner_sandbox", [data: {
1154
+ resources: string[];
1155
+ configFile: string | null;
1156
+ }]>;
1157
+ readonly resourceRefused: import("@vercel/clinkr").SharedError<"resource_refused", [data: {
712
1158
  resource: string;
713
1159
  refusal: string;
714
1160
  data: Record<string, unknown>;
715
- cleanup: import("./cleanup.ts").StormCleanupFacts;
1161
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
716
1162
  }, refusal: import("../../sdk/extension/lifecycle.ts").RefusalContent]>;
717
- resourceRefusedBeforeRun: import("@vercel/clinkr").SharedError<"resource_refused_before_run", [data: {
1163
+ readonly resourceRefusedBeforeRun: import("@vercel/clinkr").SharedError<"resource_refused_before_run", [data: {
718
1164
  resource: string;
719
1165
  refusal: string;
720
1166
  data: Record<string, unknown>;
721
1167
  configFile: string | null;
722
1168
  }, refusal: import("../../sdk/extension/lifecycle.ts").RefusalContent]>;
723
- runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
1169
+ readonly runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
724
1170
  failure: {
725
1171
  kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
726
1172
  label: string;
@@ -739,32 +1185,46 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
739
1185
  kind: "credential-claims-missing";
740
1186
  team: string;
741
1187
  project: string;
1188
+ } | {
1189
+ kind: "network-policy-failed";
1190
+ operation: "inject" | "remove";
1191
+ around: "command" | "run-steps" | "snapshot-save" | "snapshot-steps";
1192
+ reason: "api" | "timed-out";
1193
+ status: number | null;
1194
+ message: string;
742
1195
  };
743
- cleanup: import("./cleanup.ts").StormCleanupFacts;
1196
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
744
1197
  }]>;
745
- runnerSecretsInvalid: import("@vercel/clinkr").SharedError<"runner_secrets_invalid", [data: {
746
- variables: {
747
- name: string;
748
- problem: "missing" | "multiline" | "short";
749
- }[];
750
- minLength: number;
1198
+ readonly sandboxesOverMax: import("@vercel/clinkr").SharedError<"sandboxes_over_max", [data: {
1199
+ flag: "--file-lists" | "--sandboxes";
1200
+ sandboxes: number;
1201
+ key: string;
1202
+ max: number;
751
1203
  configFile: string | null;
752
1204
  }]>;
753
- snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
1205
+ readonly snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
754
1206
  snapshotId: string;
755
1207
  base: string;
756
1208
  removal: {
757
1209
  path: string;
758
1210
  message: string;
759
1211
  } | null;
760
- cleanup: import("./cleanup.ts").StormCleanupFacts;
1212
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
761
1213
  }]>;
762
- spawnFailed: import("@vercel/clinkr").SharedError<"spawn_failed", [data: {
1214
+ readonly spawnFailed: import("@vercel/clinkr").SharedError<"spawn_failed", [data: {
763
1215
  executable: string;
764
1216
  message: string;
765
- cleanup: import("./cleanup.ts").StormCleanupFacts;
1217
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
766
1218
  }]>;
767
- submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
1219
+ readonly submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
768
1220
  paths: string[];
769
1221
  }]>;
1222
+ readonly unsafeSecretEnvVarsInvalid: import("@vercel/clinkr").SharedError<"unsafe_secret_env_vars_invalid", [data: {
1223
+ variables: {
1224
+ name: string;
1225
+ problem: "missing" | "multiline" | "short";
1226
+ }[];
1227
+ minLength: number;
1228
+ configFile: string | null;
1229
+ }]>;
770
1230
  }>;