@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
@@ -0,0 +1,1395 @@
1
+ import { z } from "zod";
2
+ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
3
+ scope: z.ZodOptional<z.ZodString>;
4
+ project: z.ZodOptional<z.ZodString>;
5
+ credential: z.ZodOptional<z.ZodEnum<{
6
+ "github-actions": "github-actions";
7
+ mint: "mint";
8
+ }>>;
9
+ showOutput: z.ZodDefault<z.ZodBoolean>;
10
+ keepSandbox: z.ZodOptional<z.ZodString>;
11
+ verbose: z.ZodDefault<z.ZodBoolean>;
12
+ planOnly: z.ZodDefault<z.ZodBoolean>;
13
+ suite: z.ZodOptional<z.ZodString>;
14
+ countTests: z.ZodDefault<z.ZodBoolean>;
15
+ sandboxes: z.ZodOptional<z.ZodNumber>;
16
+ fileLists: z.ZodOptional<z.ZodString>;
17
+ args: z.ZodDefault<z.ZodArray<z.ZodString>>;
18
+ }, z.core.$strip>, import("@vercel/clinkr").Outcomes<{
19
+ ran: z.ZodObject<{
20
+ version: z.ZodString;
21
+ commit: z.ZodNullable<z.ZodString>;
22
+ configFile: z.ZodNullable<z.ZodString>;
23
+ 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>>;
24
+ 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>>;
25
+ command: z.ZodObject<{
26
+ exitCode: z.ZodNullable<z.ZodNumber>;
27
+ signal: z.ZodNullable<z.ZodString>;
28
+ }, z.core.$strip>;
29
+ runner: z.ZodNullable<z.ZodObject<{
30
+ snapshotId: z.ZodString;
31
+ base: z.ZodString;
32
+ builtBehind: z.ZodNumber;
33
+ uploadBytes: z.ZodNumber;
34
+ built: z.ZodBoolean;
35
+ vcpus: z.ZodNumber;
36
+ region: z.ZodString;
37
+ runtime: z.ZodString;
38
+ buildMs: z.ZodNumber;
39
+ }, z.core.$strip>>;
40
+ timeline: z.ZodObject<{
41
+ startedAt: z.ZodString;
42
+ totalMs: z.ZodNumber;
43
+ rows: z.ZodArray<z.ZodObject<{
44
+ name: z.ZodString;
45
+ resource: z.ZodNullable<z.ZodString>;
46
+ label: z.ZodString;
47
+ startMs: z.ZodNumber;
48
+ endMs: z.ZodNumber;
49
+ outcome: z.ZodEnum<{
50
+ done: "done";
51
+ failed: "failed";
52
+ stopped: "stopped";
53
+ unfinished: "unfinished";
54
+ }>;
55
+ steps: z.ZodArray<z.ZodObject<{
56
+ name: z.ZodString;
57
+ startMs: z.ZodNumber;
58
+ endMs: z.ZodNumber;
59
+ outcome: z.ZodEnum<{
60
+ done: "done";
61
+ failed: "failed";
62
+ stopped: "stopped";
63
+ unfinished: "unfinished";
64
+ }>;
65
+ bytes: z.ZodOptional<z.ZodNumber>;
66
+ }, z.core.$strip>>;
67
+ idleMs: z.ZodNumber;
68
+ snapshot: z.ZodOptional<z.ZodEnum<{
69
+ built: "built";
70
+ reused: "reused";
71
+ }>>;
72
+ sandboxes: z.ZodOptional<z.ZodObject<{
73
+ reused: z.ZodNumber;
74
+ created: z.ZodNumber;
75
+ }, z.core.$strip>>;
76
+ }, z.core.$strip>>;
77
+ criticalPath: z.ZodArray<z.ZodObject<{
78
+ name: z.ZodString;
79
+ resource: z.ZodNullable<z.ZodString>;
80
+ }, z.core.$strip>>;
81
+ }, z.core.$strip>;
82
+ runId: z.ZodNullable<z.ZodString>;
83
+ noFinalTestResults: z.ZodBoolean;
84
+ suite: z.ZodNullable<z.ZodString>;
85
+ driver: z.ZodString;
86
+ plan: z.ZodExactOptional<z.ZodObject<{
87
+ tests: z.ZodOptional<z.ZodNumber>;
88
+ files: z.ZodOptional<z.ZodNumber>;
89
+ options: z.ZodArray<z.ZodObject<{
90
+ path: z.ZodString;
91
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
92
+ from: z.ZodEnum<{
93
+ default: "default";
94
+ file: "file";
95
+ flag: "flag";
96
+ }>;
97
+ }, z.core.$strip>>;
98
+ sandboxes: z.ZodOptional<z.ZodObject<{
99
+ count: z.ZodNumber;
100
+ from: z.ZodEnum<{
101
+ default: "default";
102
+ "file-lists": "file-lists";
103
+ flag: "flag";
104
+ }>;
105
+ max: z.ZodNumber;
106
+ default: z.ZodOptional<z.ZodNumber>;
107
+ requested: z.ZodOptional<z.ZodNumber>;
108
+ leftOut: z.ZodOptional<z.ZodNumber>;
109
+ }, z.core.$strip>>;
110
+ }, z.core.$strip>>;
111
+ }, z.core.$strip>;
112
+ sandboxesRan: z.ZodObject<{
113
+ version: z.ZodString;
114
+ commit: z.ZodNullable<z.ZodString>;
115
+ configFile: z.ZodNullable<z.ZodString>;
116
+ runId: z.ZodNullable<z.ZodString>;
117
+ runDirectory: z.ZodNullable<z.ZodString>;
118
+ sandboxes: z.ZodArray<z.ZodObject<{
119
+ sandbox: z.ZodNumber;
120
+ argv: z.ZodReadonly<z.ZodArray<z.ZodString>>;
121
+ files: z.ZodNullable<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
122
+ state: z.ZodEnum<{
123
+ canceled: "canceled";
124
+ failed: "failed";
125
+ "not-started": "not-started";
126
+ passed: "passed";
127
+ pending: "pending";
128
+ }>;
129
+ failedStage: z.ZodNullable<z.ZodEnum<{
130
+ apply: "apply";
131
+ build: "build";
132
+ checkout: "checkout";
133
+ command: "command";
134
+ install: "install";
135
+ mint: "mint";
136
+ resource: "resource";
137
+ snapshot: "snapshot";
138
+ start: "start";
139
+ storm: "storm";
140
+ upload: "upload";
141
+ }>>;
142
+ exitCode: z.ZodNullable<z.ZodNumber>;
143
+ cause: z.ZodNullable<z.ZodString>;
144
+ name: z.ZodNullable<z.ZodString>;
145
+ keptUntil: z.ZodNullable<z.ZodString>;
146
+ preparedMs: z.ZodNullable<z.ZodNumber>;
147
+ commandMs: z.ZodNullable<z.ZodNumber>;
148
+ tests: z.ZodNullable<z.ZodObject<{
149
+ passed: z.ZodNumber;
150
+ failed: z.ZodNumber;
151
+ skipped: z.ZodNumber;
152
+ }, z.core.$strip>>;
153
+ tail: z.ZodReadonly<z.ZodArray<z.ZodString>>;
154
+ }, z.core.$strip>>;
155
+ states: z.ZodObject<{
156
+ passed: z.ZodNumber;
157
+ failed: z.ZodNumber;
158
+ "not-started": z.ZodNumber;
159
+ canceled: z.ZodNumber;
160
+ }, z.core.$strip>;
161
+ tests: z.ZodNullable<z.ZodObject<{
162
+ passed: z.ZodNumber;
163
+ failed: z.ZodNumber;
164
+ skipped: z.ZodNumber;
165
+ }, z.core.$strip>>;
166
+ plan: z.ZodObject<{
167
+ tests: z.ZodOptional<z.ZodNumber>;
168
+ files: z.ZodOptional<z.ZodNumber>;
169
+ options: z.ZodArray<z.ZodObject<{
170
+ path: z.ZodString;
171
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
172
+ from: z.ZodEnum<{
173
+ default: "default";
174
+ file: "file";
175
+ flag: "flag";
176
+ }>;
177
+ }, z.core.$strip>>;
178
+ sandboxes: z.ZodOptional<z.ZodObject<{
179
+ count: z.ZodNumber;
180
+ from: z.ZodEnum<{
181
+ default: "default";
182
+ "file-lists": "file-lists";
183
+ flag: "flag";
184
+ }>;
185
+ max: z.ZodNumber;
186
+ default: z.ZodOptional<z.ZodNumber>;
187
+ requested: z.ZodOptional<z.ZodNumber>;
188
+ leftOut: z.ZodOptional<z.ZodNumber>;
189
+ }, z.core.$strip>>;
190
+ }, z.core.$strip>;
191
+ 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>>;
192
+ wallMs: z.ZodNumber;
193
+ runner: z.ZodObject<{
194
+ snapshotId: z.ZodString;
195
+ base: z.ZodString;
196
+ builtBehind: z.ZodNullable<z.ZodNumber>;
197
+ built: z.ZodBoolean;
198
+ vcpus: z.ZodNumber;
199
+ region: z.ZodString;
200
+ runtime: z.ZodString;
201
+ uploadBytes: z.ZodNullable<z.ZodNumber>;
202
+ }, z.core.$strip>;
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>>;
204
+ kept: z.ZodArray<z.ZodObject<{
205
+ sandbox: z.ZodNumber;
206
+ name: z.ZodString;
207
+ stopsAt: z.ZodString;
208
+ url: z.ZodString;
209
+ }, z.core.$strip>>;
210
+ notKept: z.ZodArray<z.ZodObject<{
211
+ sandbox: z.ZodNumber;
212
+ name: z.ZodString;
213
+ message: z.ZodString;
214
+ }, z.core.$strip>>;
215
+ fileListMismatches: z.ZodArray<z.ZodObject<{
216
+ sandbox: z.ZodNumber;
217
+ missing: z.ZodArray<z.ZodString>;
218
+ extra: z.ZodArray<z.ZodString>;
219
+ }, z.core.$strip>>;
220
+ noFinalTestResults: z.ZodBoolean;
221
+ suite: z.ZodNullable<z.ZodString>;
222
+ driver: z.ZodString;
223
+ }, z.core.$strip>;
224
+ planned: z.ZodObject<{
225
+ version: z.ZodString;
226
+ commit: z.ZodNullable<z.ZodString>;
227
+ configFile: z.ZodNullable<z.ZodString>;
228
+ argv: z.ZodArray<z.ZodString>;
229
+ plan: z.ZodNullable<z.ZodObject<{
230
+ tests: z.ZodOptional<z.ZodNumber>;
231
+ files: z.ZodOptional<z.ZodNumber>;
232
+ options: z.ZodArray<z.ZodObject<{
233
+ path: z.ZodString;
234
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
235
+ from: z.ZodEnum<{
236
+ default: "default";
237
+ file: "file";
238
+ flag: "flag";
239
+ }>;
240
+ }, z.core.$strip>>;
241
+ sandboxes: z.ZodOptional<z.ZodObject<{
242
+ count: z.ZodNumber;
243
+ from: z.ZodEnum<{
244
+ default: "default";
245
+ "file-lists": "file-lists";
246
+ flag: "flag";
247
+ }>;
248
+ max: z.ZodNumber;
249
+ default: z.ZodOptional<z.ZodNumber>;
250
+ requested: z.ZodOptional<z.ZodNumber>;
251
+ leftOut: z.ZodOptional<z.ZodNumber>;
252
+ }, z.core.$strip>>;
253
+ }, z.core.$strip>>;
254
+ testFiles: z.ZodNullable<z.ZodArray<z.ZodString>>;
255
+ runnerSandboxes: z.ZodNullable<z.ZodObject<{
256
+ max: z.ZodNumber;
257
+ default: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
258
+ filesPerSandbox: z.ZodNumber;
259
+ max: z.ZodOptional<z.ZodNumber>;
260
+ }, z.core.$strip>]>>;
261
+ }, z.core.$strip>>;
262
+ sandboxes: z.ZodNullable<z.ZodArray<z.ZodObject<{
263
+ sandbox: z.ZodNumber;
264
+ argv: z.ZodArray<z.ZodString>;
265
+ files: z.ZodNullable<z.ZodArray<z.ZodString>>;
266
+ }, z.core.$strip>>>;
267
+ options: z.ZodArray<z.ZodObject<{
268
+ path: z.ZodString;
269
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
270
+ from: z.ZodEnum<{
271
+ default: "default";
272
+ file: "file";
273
+ flag: "flag";
274
+ }>;
275
+ }, z.core.$strip>>;
276
+ vcpus: z.ZodNullable<z.ZodNumber>;
277
+ }, z.core.$strip>;
278
+ }, {
279
+ ran: unknown;
280
+ sandboxesRan: unknown;
281
+ planned: unknown;
282
+ }, {
283
+ conflictingOptions: import("@vercel/clinkr").SharedError<"conflicting_options", [data: {
284
+ conflicts: {
285
+ flag: string;
286
+ message: string;
287
+ }[];
288
+ runner: "launch-machine" | "vercel-sandbox";
289
+ suite: string | null;
290
+ configFile: string | null;
291
+ }]>;
292
+ credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
293
+ flags: string[];
294
+ configFile: string | null;
295
+ }]>;
296
+ credentialsInvalid: import("@vercel/clinkr").SharedError<"credentials_invalid", [data: {
297
+ variables: {
298
+ name: string;
299
+ problem: "missing" | "multiline" | "short";
300
+ }[];
301
+ minLength: number;
302
+ configFile: string | null;
303
+ }]>;
304
+ driverPlanFailed: import("@vercel/clinkr").SharedError<"driver_plan_failed", [data: {
305
+ driver: string;
306
+ kind: "exited" | "start-failed" | "timed-out" | "unreadable-output";
307
+ message: string;
308
+ args: string[];
309
+ cwd: string;
310
+ }]>;
311
+ driverSandboxesRefused: import("@vercel/clinkr").SharedError<"driver_sandboxes_refused", [data: {
312
+ driver: string;
313
+ flag: "--file-lists" | "--sandboxes";
314
+ kind: "args" | "unsupported";
315
+ problem: string;
316
+ suite: string | null;
317
+ configFile: string | null;
318
+ }]>;
319
+ fileListsUnlisted: import("@vercel/clinkr").SharedError<"file_lists_unlisted", [data: {
320
+ path: string;
321
+ files: string[];
322
+ listed: number;
323
+ }]>;
324
+ fileListsUnreadable: import("@vercel/clinkr").SharedError<"file_lists_unreadable", [data: {
325
+ path: string;
326
+ problem: "not-json" | "not-lists" | "unreadable";
327
+ message: string;
328
+ }]>;
329
+ invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
330
+ file: string;
331
+ problems: {
332
+ key: string | null;
333
+ location: {
334
+ line: number;
335
+ column: number | null;
336
+ } | null;
337
+ problem: string;
338
+ }[];
339
+ }]>;
340
+ invalidFileLists: import("@vercel/clinkr").SharedError<"invalid_file_lists", [data: {
341
+ path: string;
342
+ problems: ({
343
+ kind: "empty-list";
344
+ sandbox: number;
345
+ } | {
346
+ kind: "in-two-lists";
347
+ file: string;
348
+ sandboxes: number[];
349
+ } | {
350
+ kind: "count-mismatch";
351
+ lists: number;
352
+ sandboxes: number;
353
+ })[];
354
+ }]>;
355
+ invalidResourceOptions: import("@vercel/clinkr").SharedError<"invalid_resource_options", [data: {
356
+ configFile: string | null;
357
+ problems: {
358
+ key: string;
359
+ problem: string;
360
+ values: {
361
+ key: string;
362
+ value: string;
363
+ source: "default" | "file" | "flag";
364
+ }[];
365
+ }[];
366
+ }]>;
367
+ keepSandboxUnsafeSecretEnvVars: import("@vercel/clinkr").SharedError<"keep_sandbox_unsafe_secret_env_vars", [data: {
368
+ variables: string[];
369
+ configFile: string | null;
370
+ }]>;
371
+ mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
372
+ team: string;
373
+ project: string;
374
+ cause: string;
375
+ fix: string;
376
+ runner: boolean;
377
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
378
+ }]>;
379
+ missingDriver: import("@vercel/clinkr").SharedError<"missing_driver", [data: {
380
+ suites: string[];
381
+ configFile: string | null;
382
+ }]>;
383
+ missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
384
+ configFile: string | null;
385
+ }]>;
386
+ missingSandboxesMax: import("@vercel/clinkr").SharedError<"missing_sandboxes_max", [data: {
387
+ flag: "--file-lists" | "--sandboxes";
388
+ key: string;
389
+ configFile: string | null;
390
+ }]>;
391
+ missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
392
+ missing: ("project" | "scope")[];
393
+ }]>;
394
+ noBaseRef: import("@vercel/clinkr").SharedError<"no_base_ref", [data: {
395
+ refs: {
396
+ ref: string;
397
+ reason: "missing" | "unrelated";
398
+ }[];
399
+ }]>;
400
+ noMatchingTests: import("@vercel/clinkr").SharedError<"no_matching_tests", [data: {
401
+ driver: string;
402
+ args: string[];
403
+ cwd: string;
404
+ }]>;
405
+ resourceNeedsRunnerSandbox: import("@vercel/clinkr").SharedError<"resource_needs_runner_sandbox", [data: {
406
+ resources: string[];
407
+ configFile: string | null;
408
+ }]>;
409
+ resourceRefused: import("@vercel/clinkr").SharedError<"resource_refused", [data: {
410
+ resource: string;
411
+ refusal: string;
412
+ data: Record<string, unknown>;
413
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
414
+ }, refusal: import("../../sdk/extension/lifecycle.ts").RefusalContent]>;
415
+ resourceRefusedBeforeRun: import("@vercel/clinkr").SharedError<"resource_refused_before_run", [data: {
416
+ resource: string;
417
+ refusal: string;
418
+ data: Record<string, unknown>;
419
+ configFile: string | null;
420
+ }, refusal: import("../../sdk/extension/lifecycle.ts").RefusalContent]>;
421
+ runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
422
+ failure: {
423
+ kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
424
+ label: string;
425
+ exitCode: number | null;
426
+ tail: string[];
427
+ } | {
428
+ kind: "sandbox-api-failed";
429
+ operation: string;
430
+ status: number | null;
431
+ message: string;
432
+ } | {
433
+ kind: "checkout-failed";
434
+ message: string;
435
+ command: string | null;
436
+ } | {
437
+ kind: "credential-claims-missing";
438
+ team: string;
439
+ project: string;
440
+ } | {
441
+ kind: "network-policy-failed";
442
+ operation: "inject" | "remove";
443
+ around: "command" | "run-steps" | "snapshot-save" | "snapshot-steps";
444
+ reason: "api" | "timed-out";
445
+ status: number | null;
446
+ message: string;
447
+ };
448
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
449
+ }]>;
450
+ sandboxesDefaultRefused: import("@vercel/clinkr").SharedError<"sandboxes_default_refused", [data: {
451
+ key: string;
452
+ sandboxes: number;
453
+ field: "args" | "showOutput";
454
+ problem: string;
455
+ configFile: string | null;
456
+ }]>;
457
+ sandboxesOverMax: import("@vercel/clinkr").SharedError<"sandboxes_over_max", [data: {
458
+ flag: "--file-lists" | "--sandboxes";
459
+ sandboxes: number;
460
+ key: string;
461
+ max: number;
462
+ configFile: string | null;
463
+ }]>;
464
+ snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
465
+ snapshotId: string;
466
+ base: string;
467
+ removal: {
468
+ path: string;
469
+ message: string;
470
+ } | null;
471
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
472
+ }]>;
473
+ spawnFailed: import("@vercel/clinkr").SharedError<"spawn_failed", [data: {
474
+ executable: string;
475
+ message: string;
476
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
477
+ }]>;
478
+ submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
479
+ paths: string[];
480
+ }]>;
481
+ suiteNotFound: import("@vercel/clinkr").SharedError<"suite_not_found", [data: {
482
+ suite: string;
483
+ suites: string[];
484
+ configFile: string | null;
485
+ }]>;
486
+ unsafeSecretEnvVarsInvalid: import("@vercel/clinkr").SharedError<"unsafe_secret_env_vars_invalid", [data: {
487
+ variables: {
488
+ name: string;
489
+ problem: "missing" | "multiline" | "short";
490
+ }[];
491
+ minLength: number;
492
+ configFile: string | null;
493
+ }]>;
494
+ }, {
495
+ readonly conflictingOptions: import("@vercel/clinkr").SharedError<"conflicting_options", [data: {
496
+ conflicts: {
497
+ flag: string;
498
+ message: string;
499
+ }[];
500
+ runner: "launch-machine" | "vercel-sandbox";
501
+ suite: string | null;
502
+ configFile: string | null;
503
+ }]>;
504
+ readonly credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
505
+ flags: string[];
506
+ configFile: string | null;
507
+ }]>;
508
+ readonly credentialsInvalid: import("@vercel/clinkr").SharedError<"credentials_invalid", [data: {
509
+ variables: {
510
+ name: string;
511
+ problem: "missing" | "multiline" | "short";
512
+ }[];
513
+ minLength: number;
514
+ configFile: string | null;
515
+ }]>;
516
+ readonly driverPlanFailed: import("@vercel/clinkr").SharedError<"driver_plan_failed", [data: {
517
+ driver: string;
518
+ kind: "exited" | "start-failed" | "timed-out" | "unreadable-output";
519
+ message: string;
520
+ args: string[];
521
+ cwd: string;
522
+ }]>;
523
+ readonly driverSandboxesRefused: import("@vercel/clinkr").SharedError<"driver_sandboxes_refused", [data: {
524
+ driver: string;
525
+ flag: "--file-lists" | "--sandboxes";
526
+ kind: "args" | "unsupported";
527
+ problem: string;
528
+ suite: string | null;
529
+ configFile: string | null;
530
+ }]>;
531
+ readonly fileListsUnlisted: import("@vercel/clinkr").SharedError<"file_lists_unlisted", [data: {
532
+ path: string;
533
+ files: string[];
534
+ listed: number;
535
+ }]>;
536
+ readonly fileListsUnreadable: import("@vercel/clinkr").SharedError<"file_lists_unreadable", [data: {
537
+ path: string;
538
+ problem: "not-json" | "not-lists" | "unreadable";
539
+ message: string;
540
+ }]>;
541
+ readonly invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
542
+ file: string;
543
+ problems: {
544
+ key: string | null;
545
+ location: {
546
+ line: number;
547
+ column: number | null;
548
+ } | null;
549
+ problem: string;
550
+ }[];
551
+ }]>;
552
+ readonly invalidFileLists: import("@vercel/clinkr").SharedError<"invalid_file_lists", [data: {
553
+ path: string;
554
+ problems: ({
555
+ kind: "empty-list";
556
+ sandbox: number;
557
+ } | {
558
+ kind: "in-two-lists";
559
+ file: string;
560
+ sandboxes: number[];
561
+ } | {
562
+ kind: "count-mismatch";
563
+ lists: number;
564
+ sandboxes: number;
565
+ })[];
566
+ }]>;
567
+ readonly invalidResourceOptions: import("@vercel/clinkr").SharedError<"invalid_resource_options", [data: {
568
+ configFile: string | null;
569
+ problems: {
570
+ key: string;
571
+ problem: string;
572
+ values: {
573
+ key: string;
574
+ value: string;
575
+ source: "default" | "file" | "flag";
576
+ }[];
577
+ }[];
578
+ }]>;
579
+ readonly keepSandboxUnsafeSecretEnvVars: import("@vercel/clinkr").SharedError<"keep_sandbox_unsafe_secret_env_vars", [data: {
580
+ variables: string[];
581
+ configFile: string | null;
582
+ }]>;
583
+ readonly mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
584
+ team: string;
585
+ project: string;
586
+ cause: string;
587
+ fix: string;
588
+ runner: boolean;
589
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
590
+ }]>;
591
+ readonly missingDriver: import("@vercel/clinkr").SharedError<"missing_driver", [data: {
592
+ suites: string[];
593
+ configFile: string | null;
594
+ }]>;
595
+ readonly missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
596
+ configFile: string | null;
597
+ }]>;
598
+ readonly missingSandboxesMax: import("@vercel/clinkr").SharedError<"missing_sandboxes_max", [data: {
599
+ flag: "--file-lists" | "--sandboxes";
600
+ key: string;
601
+ configFile: string | null;
602
+ }]>;
603
+ readonly missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
604
+ missing: ("project" | "scope")[];
605
+ }]>;
606
+ readonly noBaseRef: import("@vercel/clinkr").SharedError<"no_base_ref", [data: {
607
+ refs: {
608
+ ref: string;
609
+ reason: "missing" | "unrelated";
610
+ }[];
611
+ }]>;
612
+ readonly noMatchingTests: import("@vercel/clinkr").SharedError<"no_matching_tests", [data: {
613
+ driver: string;
614
+ args: string[];
615
+ cwd: string;
616
+ }]>;
617
+ readonly resourceNeedsRunnerSandbox: import("@vercel/clinkr").SharedError<"resource_needs_runner_sandbox", [data: {
618
+ resources: string[];
619
+ configFile: string | null;
620
+ }]>;
621
+ readonly resourceRefused: import("@vercel/clinkr").SharedError<"resource_refused", [data: {
622
+ resource: string;
623
+ refusal: string;
624
+ data: Record<string, unknown>;
625
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
626
+ }, refusal: import("../../sdk/extension/lifecycle.ts").RefusalContent]>;
627
+ readonly resourceRefusedBeforeRun: import("@vercel/clinkr").SharedError<"resource_refused_before_run", [data: {
628
+ resource: string;
629
+ refusal: string;
630
+ data: Record<string, unknown>;
631
+ configFile: string | null;
632
+ }, refusal: import("../../sdk/extension/lifecycle.ts").RefusalContent]>;
633
+ readonly runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
634
+ failure: {
635
+ kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
636
+ label: string;
637
+ exitCode: number | null;
638
+ tail: string[];
639
+ } | {
640
+ kind: "sandbox-api-failed";
641
+ operation: string;
642
+ status: number | null;
643
+ message: string;
644
+ } | {
645
+ kind: "checkout-failed";
646
+ message: string;
647
+ command: string | null;
648
+ } | {
649
+ kind: "credential-claims-missing";
650
+ team: string;
651
+ project: string;
652
+ } | {
653
+ kind: "network-policy-failed";
654
+ operation: "inject" | "remove";
655
+ around: "command" | "run-steps" | "snapshot-save" | "snapshot-steps";
656
+ reason: "api" | "timed-out";
657
+ status: number | null;
658
+ message: string;
659
+ };
660
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
661
+ }]>;
662
+ readonly sandboxesDefaultRefused: import("@vercel/clinkr").SharedError<"sandboxes_default_refused", [data: {
663
+ key: string;
664
+ sandboxes: number;
665
+ field: "args" | "showOutput";
666
+ problem: string;
667
+ configFile: string | null;
668
+ }]>;
669
+ readonly sandboxesOverMax: import("@vercel/clinkr").SharedError<"sandboxes_over_max", [data: {
670
+ flag: "--file-lists" | "--sandboxes";
671
+ sandboxes: number;
672
+ key: string;
673
+ max: number;
674
+ configFile: string | null;
675
+ }]>;
676
+ readonly snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
677
+ snapshotId: string;
678
+ base: string;
679
+ removal: {
680
+ path: string;
681
+ message: string;
682
+ } | null;
683
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
684
+ }]>;
685
+ readonly spawnFailed: import("@vercel/clinkr").SharedError<"spawn_failed", [data: {
686
+ executable: string;
687
+ message: string;
688
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
689
+ }]>;
690
+ readonly submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
691
+ paths: string[];
692
+ }]>;
693
+ readonly suiteNotFound: import("@vercel/clinkr").SharedError<"suite_not_found", [data: {
694
+ suite: string;
695
+ suites: string[];
696
+ configFile: string | null;
697
+ }]>;
698
+ readonly unsafeSecretEnvVarsInvalid: import("@vercel/clinkr").SharedError<"unsafe_secret_env_vars_invalid", [data: {
699
+ variables: {
700
+ name: string;
701
+ problem: "missing" | "multiline" | "short";
702
+ }[];
703
+ minLength: number;
704
+ configFile: string | null;
705
+ }]>;
706
+ }>, import("@vercel/clinkr").OutcomeOf<import("@vercel/clinkr").Outcomes<{
707
+ ran: z.ZodObject<{
708
+ version: z.ZodString;
709
+ commit: z.ZodNullable<z.ZodString>;
710
+ configFile: z.ZodNullable<z.ZodString>;
711
+ 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>>;
712
+ 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>>;
713
+ command: z.ZodObject<{
714
+ exitCode: z.ZodNullable<z.ZodNumber>;
715
+ signal: z.ZodNullable<z.ZodString>;
716
+ }, z.core.$strip>;
717
+ runner: z.ZodNullable<z.ZodObject<{
718
+ snapshotId: z.ZodString;
719
+ base: z.ZodString;
720
+ builtBehind: z.ZodNumber;
721
+ uploadBytes: z.ZodNumber;
722
+ built: z.ZodBoolean;
723
+ vcpus: z.ZodNumber;
724
+ region: z.ZodString;
725
+ runtime: z.ZodString;
726
+ buildMs: z.ZodNumber;
727
+ }, z.core.$strip>>;
728
+ timeline: z.ZodObject<{
729
+ startedAt: z.ZodString;
730
+ totalMs: z.ZodNumber;
731
+ rows: z.ZodArray<z.ZodObject<{
732
+ name: z.ZodString;
733
+ resource: z.ZodNullable<z.ZodString>;
734
+ label: z.ZodString;
735
+ startMs: z.ZodNumber;
736
+ endMs: z.ZodNumber;
737
+ outcome: z.ZodEnum<{
738
+ done: "done";
739
+ failed: "failed";
740
+ stopped: "stopped";
741
+ unfinished: "unfinished";
742
+ }>;
743
+ steps: z.ZodArray<z.ZodObject<{
744
+ name: z.ZodString;
745
+ startMs: z.ZodNumber;
746
+ endMs: z.ZodNumber;
747
+ outcome: z.ZodEnum<{
748
+ done: "done";
749
+ failed: "failed";
750
+ stopped: "stopped";
751
+ unfinished: "unfinished";
752
+ }>;
753
+ bytes: z.ZodOptional<z.ZodNumber>;
754
+ }, z.core.$strip>>;
755
+ idleMs: z.ZodNumber;
756
+ snapshot: z.ZodOptional<z.ZodEnum<{
757
+ built: "built";
758
+ reused: "reused";
759
+ }>>;
760
+ sandboxes: z.ZodOptional<z.ZodObject<{
761
+ reused: z.ZodNumber;
762
+ created: z.ZodNumber;
763
+ }, z.core.$strip>>;
764
+ }, z.core.$strip>>;
765
+ criticalPath: z.ZodArray<z.ZodObject<{
766
+ name: z.ZodString;
767
+ resource: z.ZodNullable<z.ZodString>;
768
+ }, z.core.$strip>>;
769
+ }, z.core.$strip>;
770
+ runId: z.ZodNullable<z.ZodString>;
771
+ noFinalTestResults: z.ZodBoolean;
772
+ suite: z.ZodNullable<z.ZodString>;
773
+ driver: z.ZodString;
774
+ plan: z.ZodExactOptional<z.ZodObject<{
775
+ tests: z.ZodOptional<z.ZodNumber>;
776
+ files: z.ZodOptional<z.ZodNumber>;
777
+ options: z.ZodArray<z.ZodObject<{
778
+ path: z.ZodString;
779
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
780
+ from: z.ZodEnum<{
781
+ default: "default";
782
+ file: "file";
783
+ flag: "flag";
784
+ }>;
785
+ }, z.core.$strip>>;
786
+ sandboxes: z.ZodOptional<z.ZodObject<{
787
+ count: z.ZodNumber;
788
+ from: z.ZodEnum<{
789
+ default: "default";
790
+ "file-lists": "file-lists";
791
+ flag: "flag";
792
+ }>;
793
+ max: z.ZodNumber;
794
+ default: z.ZodOptional<z.ZodNumber>;
795
+ requested: z.ZodOptional<z.ZodNumber>;
796
+ leftOut: z.ZodOptional<z.ZodNumber>;
797
+ }, z.core.$strip>>;
798
+ }, z.core.$strip>>;
799
+ }, z.core.$strip>;
800
+ sandboxesRan: z.ZodObject<{
801
+ version: z.ZodString;
802
+ commit: z.ZodNullable<z.ZodString>;
803
+ configFile: z.ZodNullable<z.ZodString>;
804
+ runId: z.ZodNullable<z.ZodString>;
805
+ runDirectory: z.ZodNullable<z.ZodString>;
806
+ sandboxes: z.ZodArray<z.ZodObject<{
807
+ sandbox: z.ZodNumber;
808
+ argv: z.ZodReadonly<z.ZodArray<z.ZodString>>;
809
+ files: z.ZodNullable<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
810
+ state: z.ZodEnum<{
811
+ canceled: "canceled";
812
+ failed: "failed";
813
+ "not-started": "not-started";
814
+ passed: "passed";
815
+ pending: "pending";
816
+ }>;
817
+ failedStage: z.ZodNullable<z.ZodEnum<{
818
+ apply: "apply";
819
+ build: "build";
820
+ checkout: "checkout";
821
+ command: "command";
822
+ install: "install";
823
+ mint: "mint";
824
+ resource: "resource";
825
+ snapshot: "snapshot";
826
+ start: "start";
827
+ storm: "storm";
828
+ upload: "upload";
829
+ }>>;
830
+ exitCode: z.ZodNullable<z.ZodNumber>;
831
+ cause: z.ZodNullable<z.ZodString>;
832
+ name: z.ZodNullable<z.ZodString>;
833
+ keptUntil: z.ZodNullable<z.ZodString>;
834
+ preparedMs: z.ZodNullable<z.ZodNumber>;
835
+ commandMs: z.ZodNullable<z.ZodNumber>;
836
+ tests: z.ZodNullable<z.ZodObject<{
837
+ passed: z.ZodNumber;
838
+ failed: z.ZodNumber;
839
+ skipped: z.ZodNumber;
840
+ }, z.core.$strip>>;
841
+ tail: z.ZodReadonly<z.ZodArray<z.ZodString>>;
842
+ }, z.core.$strip>>;
843
+ states: z.ZodObject<{
844
+ passed: z.ZodNumber;
845
+ failed: z.ZodNumber;
846
+ "not-started": z.ZodNumber;
847
+ canceled: z.ZodNumber;
848
+ }, z.core.$strip>;
849
+ tests: z.ZodNullable<z.ZodObject<{
850
+ passed: z.ZodNumber;
851
+ failed: z.ZodNumber;
852
+ skipped: z.ZodNumber;
853
+ }, z.core.$strip>>;
854
+ plan: z.ZodObject<{
855
+ tests: z.ZodOptional<z.ZodNumber>;
856
+ files: z.ZodOptional<z.ZodNumber>;
857
+ options: z.ZodArray<z.ZodObject<{
858
+ path: z.ZodString;
859
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
860
+ from: z.ZodEnum<{
861
+ default: "default";
862
+ file: "file";
863
+ flag: "flag";
864
+ }>;
865
+ }, z.core.$strip>>;
866
+ sandboxes: z.ZodOptional<z.ZodObject<{
867
+ count: z.ZodNumber;
868
+ from: z.ZodEnum<{
869
+ default: "default";
870
+ "file-lists": "file-lists";
871
+ flag: "flag";
872
+ }>;
873
+ max: z.ZodNumber;
874
+ default: z.ZodOptional<z.ZodNumber>;
875
+ requested: z.ZodOptional<z.ZodNumber>;
876
+ leftOut: z.ZodOptional<z.ZodNumber>;
877
+ }, z.core.$strip>>;
878
+ }, z.core.$strip>;
879
+ 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>>;
880
+ wallMs: z.ZodNumber;
881
+ runner: z.ZodObject<{
882
+ snapshotId: z.ZodString;
883
+ base: z.ZodString;
884
+ builtBehind: z.ZodNullable<z.ZodNumber>;
885
+ built: z.ZodBoolean;
886
+ vcpus: z.ZodNumber;
887
+ region: z.ZodString;
888
+ runtime: z.ZodString;
889
+ uploadBytes: z.ZodNullable<z.ZodNumber>;
890
+ }, z.core.$strip>;
891
+ 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>>;
892
+ kept: z.ZodArray<z.ZodObject<{
893
+ sandbox: z.ZodNumber;
894
+ name: z.ZodString;
895
+ stopsAt: z.ZodString;
896
+ url: z.ZodString;
897
+ }, z.core.$strip>>;
898
+ notKept: z.ZodArray<z.ZodObject<{
899
+ sandbox: z.ZodNumber;
900
+ name: z.ZodString;
901
+ message: z.ZodString;
902
+ }, z.core.$strip>>;
903
+ fileListMismatches: z.ZodArray<z.ZodObject<{
904
+ sandbox: z.ZodNumber;
905
+ missing: z.ZodArray<z.ZodString>;
906
+ extra: z.ZodArray<z.ZodString>;
907
+ }, z.core.$strip>>;
908
+ noFinalTestResults: z.ZodBoolean;
909
+ suite: z.ZodNullable<z.ZodString>;
910
+ driver: z.ZodString;
911
+ }, z.core.$strip>;
912
+ planned: z.ZodObject<{
913
+ version: z.ZodString;
914
+ commit: z.ZodNullable<z.ZodString>;
915
+ configFile: z.ZodNullable<z.ZodString>;
916
+ argv: z.ZodArray<z.ZodString>;
917
+ plan: z.ZodNullable<z.ZodObject<{
918
+ tests: z.ZodOptional<z.ZodNumber>;
919
+ files: z.ZodOptional<z.ZodNumber>;
920
+ options: z.ZodArray<z.ZodObject<{
921
+ path: z.ZodString;
922
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
923
+ from: z.ZodEnum<{
924
+ default: "default";
925
+ file: "file";
926
+ flag: "flag";
927
+ }>;
928
+ }, z.core.$strip>>;
929
+ sandboxes: z.ZodOptional<z.ZodObject<{
930
+ count: z.ZodNumber;
931
+ from: z.ZodEnum<{
932
+ default: "default";
933
+ "file-lists": "file-lists";
934
+ flag: "flag";
935
+ }>;
936
+ max: z.ZodNumber;
937
+ default: z.ZodOptional<z.ZodNumber>;
938
+ requested: z.ZodOptional<z.ZodNumber>;
939
+ leftOut: z.ZodOptional<z.ZodNumber>;
940
+ }, z.core.$strip>>;
941
+ }, z.core.$strip>>;
942
+ testFiles: z.ZodNullable<z.ZodArray<z.ZodString>>;
943
+ runnerSandboxes: z.ZodNullable<z.ZodObject<{
944
+ max: z.ZodNumber;
945
+ default: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
946
+ filesPerSandbox: z.ZodNumber;
947
+ max: z.ZodOptional<z.ZodNumber>;
948
+ }, z.core.$strip>]>>;
949
+ }, z.core.$strip>>;
950
+ sandboxes: z.ZodNullable<z.ZodArray<z.ZodObject<{
951
+ sandbox: z.ZodNumber;
952
+ argv: z.ZodArray<z.ZodString>;
953
+ files: z.ZodNullable<z.ZodArray<z.ZodString>>;
954
+ }, z.core.$strip>>>;
955
+ options: z.ZodArray<z.ZodObject<{
956
+ path: z.ZodString;
957
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
958
+ from: z.ZodEnum<{
959
+ default: "default";
960
+ file: "file";
961
+ flag: "flag";
962
+ }>;
963
+ }, z.core.$strip>>;
964
+ vcpus: z.ZodNullable<z.ZodNumber>;
965
+ }, z.core.$strip>;
966
+ }, {
967
+ ran: unknown;
968
+ sandboxesRan: unknown;
969
+ planned: unknown;
970
+ }, {
971
+ conflictingOptions: import("@vercel/clinkr").SharedError<"conflicting_options", [data: {
972
+ conflicts: {
973
+ flag: string;
974
+ message: string;
975
+ }[];
976
+ runner: "launch-machine" | "vercel-sandbox";
977
+ suite: string | null;
978
+ configFile: string | null;
979
+ }]>;
980
+ credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
981
+ flags: string[];
982
+ configFile: string | null;
983
+ }]>;
984
+ credentialsInvalid: import("@vercel/clinkr").SharedError<"credentials_invalid", [data: {
985
+ variables: {
986
+ name: string;
987
+ problem: "missing" | "multiline" | "short";
988
+ }[];
989
+ minLength: number;
990
+ configFile: string | null;
991
+ }]>;
992
+ driverPlanFailed: import("@vercel/clinkr").SharedError<"driver_plan_failed", [data: {
993
+ driver: string;
994
+ kind: "exited" | "start-failed" | "timed-out" | "unreadable-output";
995
+ message: string;
996
+ args: string[];
997
+ cwd: string;
998
+ }]>;
999
+ driverSandboxesRefused: import("@vercel/clinkr").SharedError<"driver_sandboxes_refused", [data: {
1000
+ driver: string;
1001
+ flag: "--file-lists" | "--sandboxes";
1002
+ kind: "args" | "unsupported";
1003
+ problem: string;
1004
+ suite: string | null;
1005
+ configFile: string | null;
1006
+ }]>;
1007
+ fileListsUnlisted: import("@vercel/clinkr").SharedError<"file_lists_unlisted", [data: {
1008
+ path: string;
1009
+ files: string[];
1010
+ listed: number;
1011
+ }]>;
1012
+ fileListsUnreadable: import("@vercel/clinkr").SharedError<"file_lists_unreadable", [data: {
1013
+ path: string;
1014
+ problem: "not-json" | "not-lists" | "unreadable";
1015
+ message: string;
1016
+ }]>;
1017
+ invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
1018
+ file: string;
1019
+ problems: {
1020
+ key: string | null;
1021
+ location: {
1022
+ line: number;
1023
+ column: number | null;
1024
+ } | null;
1025
+ problem: string;
1026
+ }[];
1027
+ }]>;
1028
+ invalidFileLists: import("@vercel/clinkr").SharedError<"invalid_file_lists", [data: {
1029
+ path: string;
1030
+ problems: ({
1031
+ kind: "empty-list";
1032
+ sandbox: number;
1033
+ } | {
1034
+ kind: "in-two-lists";
1035
+ file: string;
1036
+ sandboxes: number[];
1037
+ } | {
1038
+ kind: "count-mismatch";
1039
+ lists: number;
1040
+ sandboxes: number;
1041
+ })[];
1042
+ }]>;
1043
+ invalidResourceOptions: import("@vercel/clinkr").SharedError<"invalid_resource_options", [data: {
1044
+ configFile: string | null;
1045
+ problems: {
1046
+ key: string;
1047
+ problem: string;
1048
+ values: {
1049
+ key: string;
1050
+ value: string;
1051
+ source: "default" | "file" | "flag";
1052
+ }[];
1053
+ }[];
1054
+ }]>;
1055
+ keepSandboxUnsafeSecretEnvVars: import("@vercel/clinkr").SharedError<"keep_sandbox_unsafe_secret_env_vars", [data: {
1056
+ variables: string[];
1057
+ configFile: string | null;
1058
+ }]>;
1059
+ mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
1060
+ team: string;
1061
+ project: string;
1062
+ cause: string;
1063
+ fix: string;
1064
+ runner: boolean;
1065
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
1066
+ }]>;
1067
+ missingDriver: import("@vercel/clinkr").SharedError<"missing_driver", [data: {
1068
+ suites: string[];
1069
+ configFile: string | null;
1070
+ }]>;
1071
+ missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
1072
+ configFile: string | null;
1073
+ }]>;
1074
+ missingSandboxesMax: import("@vercel/clinkr").SharedError<"missing_sandboxes_max", [data: {
1075
+ flag: "--file-lists" | "--sandboxes";
1076
+ key: string;
1077
+ configFile: string | null;
1078
+ }]>;
1079
+ missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
1080
+ missing: ("project" | "scope")[];
1081
+ }]>;
1082
+ noBaseRef: import("@vercel/clinkr").SharedError<"no_base_ref", [data: {
1083
+ refs: {
1084
+ ref: string;
1085
+ reason: "missing" | "unrelated";
1086
+ }[];
1087
+ }]>;
1088
+ noMatchingTests: import("@vercel/clinkr").SharedError<"no_matching_tests", [data: {
1089
+ driver: string;
1090
+ args: string[];
1091
+ cwd: string;
1092
+ }]>;
1093
+ resourceNeedsRunnerSandbox: import("@vercel/clinkr").SharedError<"resource_needs_runner_sandbox", [data: {
1094
+ resources: string[];
1095
+ configFile: string | null;
1096
+ }]>;
1097
+ resourceRefused: import("@vercel/clinkr").SharedError<"resource_refused", [data: {
1098
+ resource: string;
1099
+ refusal: string;
1100
+ data: Record<string, unknown>;
1101
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
1102
+ }, refusal: import("../../sdk/extension/lifecycle.ts").RefusalContent]>;
1103
+ resourceRefusedBeforeRun: import("@vercel/clinkr").SharedError<"resource_refused_before_run", [data: {
1104
+ resource: string;
1105
+ refusal: string;
1106
+ data: Record<string, unknown>;
1107
+ configFile: string | null;
1108
+ }, refusal: import("../../sdk/extension/lifecycle.ts").RefusalContent]>;
1109
+ runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
1110
+ failure: {
1111
+ kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
1112
+ label: string;
1113
+ exitCode: number | null;
1114
+ tail: string[];
1115
+ } | {
1116
+ kind: "sandbox-api-failed";
1117
+ operation: string;
1118
+ status: number | null;
1119
+ message: string;
1120
+ } | {
1121
+ kind: "checkout-failed";
1122
+ message: string;
1123
+ command: string | null;
1124
+ } | {
1125
+ kind: "credential-claims-missing";
1126
+ team: string;
1127
+ project: string;
1128
+ } | {
1129
+ kind: "network-policy-failed";
1130
+ operation: "inject" | "remove";
1131
+ around: "command" | "run-steps" | "snapshot-save" | "snapshot-steps";
1132
+ reason: "api" | "timed-out";
1133
+ status: number | null;
1134
+ message: string;
1135
+ };
1136
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
1137
+ }]>;
1138
+ sandboxesDefaultRefused: import("@vercel/clinkr").SharedError<"sandboxes_default_refused", [data: {
1139
+ key: string;
1140
+ sandboxes: number;
1141
+ field: "args" | "showOutput";
1142
+ problem: string;
1143
+ configFile: string | null;
1144
+ }]>;
1145
+ sandboxesOverMax: import("@vercel/clinkr").SharedError<"sandboxes_over_max", [data: {
1146
+ flag: "--file-lists" | "--sandboxes";
1147
+ sandboxes: number;
1148
+ key: string;
1149
+ max: number;
1150
+ configFile: string | null;
1151
+ }]>;
1152
+ snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
1153
+ snapshotId: string;
1154
+ base: string;
1155
+ removal: {
1156
+ path: string;
1157
+ message: string;
1158
+ } | null;
1159
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
1160
+ }]>;
1161
+ spawnFailed: import("@vercel/clinkr").SharedError<"spawn_failed", [data: {
1162
+ executable: string;
1163
+ message: string;
1164
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
1165
+ }]>;
1166
+ submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
1167
+ paths: string[];
1168
+ }]>;
1169
+ suiteNotFound: import("@vercel/clinkr").SharedError<"suite_not_found", [data: {
1170
+ suite: string;
1171
+ suites: string[];
1172
+ configFile: string | null;
1173
+ }]>;
1174
+ unsafeSecretEnvVarsInvalid: import("@vercel/clinkr").SharedError<"unsafe_secret_env_vars_invalid", [data: {
1175
+ variables: {
1176
+ name: string;
1177
+ problem: "missing" | "multiline" | "short";
1178
+ }[];
1179
+ minLength: number;
1180
+ configFile: string | null;
1181
+ }]>;
1182
+ }, {
1183
+ readonly conflictingOptions: import("@vercel/clinkr").SharedError<"conflicting_options", [data: {
1184
+ conflicts: {
1185
+ flag: string;
1186
+ message: string;
1187
+ }[];
1188
+ runner: "launch-machine" | "vercel-sandbox";
1189
+ suite: string | null;
1190
+ configFile: string | null;
1191
+ }]>;
1192
+ readonly credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
1193
+ flags: string[];
1194
+ configFile: string | null;
1195
+ }]>;
1196
+ readonly credentialsInvalid: import("@vercel/clinkr").SharedError<"credentials_invalid", [data: {
1197
+ variables: {
1198
+ name: string;
1199
+ problem: "missing" | "multiline" | "short";
1200
+ }[];
1201
+ minLength: number;
1202
+ configFile: string | null;
1203
+ }]>;
1204
+ readonly driverPlanFailed: import("@vercel/clinkr").SharedError<"driver_plan_failed", [data: {
1205
+ driver: string;
1206
+ kind: "exited" | "start-failed" | "timed-out" | "unreadable-output";
1207
+ message: string;
1208
+ args: string[];
1209
+ cwd: string;
1210
+ }]>;
1211
+ readonly driverSandboxesRefused: import("@vercel/clinkr").SharedError<"driver_sandboxes_refused", [data: {
1212
+ driver: string;
1213
+ flag: "--file-lists" | "--sandboxes";
1214
+ kind: "args" | "unsupported";
1215
+ problem: string;
1216
+ suite: string | null;
1217
+ configFile: string | null;
1218
+ }]>;
1219
+ readonly fileListsUnlisted: import("@vercel/clinkr").SharedError<"file_lists_unlisted", [data: {
1220
+ path: string;
1221
+ files: string[];
1222
+ listed: number;
1223
+ }]>;
1224
+ readonly fileListsUnreadable: import("@vercel/clinkr").SharedError<"file_lists_unreadable", [data: {
1225
+ path: string;
1226
+ problem: "not-json" | "not-lists" | "unreadable";
1227
+ message: string;
1228
+ }]>;
1229
+ readonly invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
1230
+ file: string;
1231
+ problems: {
1232
+ key: string | null;
1233
+ location: {
1234
+ line: number;
1235
+ column: number | null;
1236
+ } | null;
1237
+ problem: string;
1238
+ }[];
1239
+ }]>;
1240
+ readonly invalidFileLists: import("@vercel/clinkr").SharedError<"invalid_file_lists", [data: {
1241
+ path: string;
1242
+ problems: ({
1243
+ kind: "empty-list";
1244
+ sandbox: number;
1245
+ } | {
1246
+ kind: "in-two-lists";
1247
+ file: string;
1248
+ sandboxes: number[];
1249
+ } | {
1250
+ kind: "count-mismatch";
1251
+ lists: number;
1252
+ sandboxes: number;
1253
+ })[];
1254
+ }]>;
1255
+ readonly invalidResourceOptions: import("@vercel/clinkr").SharedError<"invalid_resource_options", [data: {
1256
+ configFile: string | null;
1257
+ problems: {
1258
+ key: string;
1259
+ problem: string;
1260
+ values: {
1261
+ key: string;
1262
+ value: string;
1263
+ source: "default" | "file" | "flag";
1264
+ }[];
1265
+ }[];
1266
+ }]>;
1267
+ readonly keepSandboxUnsafeSecretEnvVars: import("@vercel/clinkr").SharedError<"keep_sandbox_unsafe_secret_env_vars", [data: {
1268
+ variables: string[];
1269
+ configFile: string | null;
1270
+ }]>;
1271
+ readonly mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
1272
+ team: string;
1273
+ project: string;
1274
+ cause: string;
1275
+ fix: string;
1276
+ runner: boolean;
1277
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
1278
+ }]>;
1279
+ readonly missingDriver: import("@vercel/clinkr").SharedError<"missing_driver", [data: {
1280
+ suites: string[];
1281
+ configFile: string | null;
1282
+ }]>;
1283
+ readonly missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
1284
+ configFile: string | null;
1285
+ }]>;
1286
+ readonly missingSandboxesMax: import("@vercel/clinkr").SharedError<"missing_sandboxes_max", [data: {
1287
+ flag: "--file-lists" | "--sandboxes";
1288
+ key: string;
1289
+ configFile: string | null;
1290
+ }]>;
1291
+ readonly missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
1292
+ missing: ("project" | "scope")[];
1293
+ }]>;
1294
+ readonly noBaseRef: import("@vercel/clinkr").SharedError<"no_base_ref", [data: {
1295
+ refs: {
1296
+ ref: string;
1297
+ reason: "missing" | "unrelated";
1298
+ }[];
1299
+ }]>;
1300
+ readonly noMatchingTests: import("@vercel/clinkr").SharedError<"no_matching_tests", [data: {
1301
+ driver: string;
1302
+ args: string[];
1303
+ cwd: string;
1304
+ }]>;
1305
+ readonly resourceNeedsRunnerSandbox: import("@vercel/clinkr").SharedError<"resource_needs_runner_sandbox", [data: {
1306
+ resources: string[];
1307
+ configFile: string | null;
1308
+ }]>;
1309
+ readonly resourceRefused: import("@vercel/clinkr").SharedError<"resource_refused", [data: {
1310
+ resource: string;
1311
+ refusal: string;
1312
+ data: Record<string, unknown>;
1313
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
1314
+ }, refusal: import("../../sdk/extension/lifecycle.ts").RefusalContent]>;
1315
+ readonly resourceRefusedBeforeRun: import("@vercel/clinkr").SharedError<"resource_refused_before_run", [data: {
1316
+ resource: string;
1317
+ refusal: string;
1318
+ data: Record<string, unknown>;
1319
+ configFile: string | null;
1320
+ }, refusal: import("../../sdk/extension/lifecycle.ts").RefusalContent]>;
1321
+ readonly runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
1322
+ failure: {
1323
+ kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
1324
+ label: string;
1325
+ exitCode: number | null;
1326
+ tail: string[];
1327
+ } | {
1328
+ kind: "sandbox-api-failed";
1329
+ operation: string;
1330
+ status: number | null;
1331
+ message: string;
1332
+ } | {
1333
+ kind: "checkout-failed";
1334
+ message: string;
1335
+ command: string | null;
1336
+ } | {
1337
+ kind: "credential-claims-missing";
1338
+ team: string;
1339
+ project: string;
1340
+ } | {
1341
+ kind: "network-policy-failed";
1342
+ operation: "inject" | "remove";
1343
+ around: "command" | "run-steps" | "snapshot-save" | "snapshot-steps";
1344
+ reason: "api" | "timed-out";
1345
+ status: number | null;
1346
+ message: string;
1347
+ };
1348
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
1349
+ }]>;
1350
+ readonly sandboxesDefaultRefused: import("@vercel/clinkr").SharedError<"sandboxes_default_refused", [data: {
1351
+ key: string;
1352
+ sandboxes: number;
1353
+ field: "args" | "showOutput";
1354
+ problem: string;
1355
+ configFile: string | null;
1356
+ }]>;
1357
+ readonly sandboxesOverMax: import("@vercel/clinkr").SharedError<"sandboxes_over_max", [data: {
1358
+ flag: "--file-lists" | "--sandboxes";
1359
+ sandboxes: number;
1360
+ key: string;
1361
+ max: number;
1362
+ configFile: string | null;
1363
+ }]>;
1364
+ readonly snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
1365
+ snapshotId: string;
1366
+ base: string;
1367
+ removal: {
1368
+ path: string;
1369
+ message: string;
1370
+ } | null;
1371
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
1372
+ }]>;
1373
+ readonly spawnFailed: import("@vercel/clinkr").SharedError<"spawn_failed", [data: {
1374
+ executable: string;
1375
+ message: string;
1376
+ cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
1377
+ }]>;
1378
+ readonly submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
1379
+ paths: string[];
1380
+ }]>;
1381
+ readonly suiteNotFound: import("@vercel/clinkr").SharedError<"suite_not_found", [data: {
1382
+ suite: string;
1383
+ suites: string[];
1384
+ configFile: string | null;
1385
+ }]>;
1386
+ readonly unsafeSecretEnvVarsInvalid: import("@vercel/clinkr").SharedError<"unsafe_secret_env_vars_invalid", [data: {
1387
+ variables: {
1388
+ name: string;
1389
+ problem: "missing" | "multiline" | "short";
1390
+ }[];
1391
+ minLength: number;
1392
+ configFile: string | null;
1393
+ }]>;
1394
+ }>>, import("../../context.ts").StormApp, false>;
1395
+ export default _default;