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