@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
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  defineExtensionCommands,
3
3
  testserverCommands
4
- } from "./chunk-GSC6SRTW.js";
4
+ } from "./chunk-5CCP36QQ.js";
5
5
 
6
6
  // src/extensions/testserver/command-tree.ts
7
7
  var testserverExtensionCommands = defineExtensionCommands({
@@ -1,15 +1,18 @@
1
1
  import {
2
+ DRIVER_NAMES,
2
3
  RESOURCES,
3
4
  liveDriverContexts,
4
5
  liveResourceContexts
5
- } from "./chunk-UUBZTGLV.js";
6
- import "./chunk-UC6DULWY.js";
7
- import "./chunk-BRUIATTR.js";
6
+ } from "./chunk-DWEAHX4T.js";
7
+ import "./chunk-R7XVBZOY.js";
8
+ import "./chunk-CN4EFA5J.js";
9
+ import "./chunk-ZG3WQ4UF.js";
10
+ import "./chunk-5CCP36QQ.js";
8
11
  import {
9
12
  RUNS_SUBPATH,
10
13
  liveRunDirectoryGateway,
11
14
  unavailableRunDirectoryGateway
12
- } from "./chunk-GJOEPJJL.js";
15
+ } from "./chunk-P357TZAY.js";
13
16
  import {
14
17
  liveCommandGateway,
15
18
  liveJobSummaryGateway,
@@ -17,7 +20,7 @@ import {
17
20
  liveProgressTerminal,
18
21
  resolveStateDirectory,
19
22
  stateDirectoryPattern
20
- } from "./chunk-VH2POPW5.js";
23
+ } from "./chunk-FOZWA52V.js";
21
24
  import {
22
25
  RUNNER_SNAPSHOTS_SUBPATH,
23
26
  configResolver,
@@ -25,6 +28,7 @@ import {
25
28
  liveCheckoutGateway,
26
29
  liveConfigGateway,
27
30
  liveCredentialGateway,
31
+ liveFileListsFileGateway,
28
32
  liveGitHubActionsTokenGateway,
29
33
  liveRunnerSandboxGateway,
30
34
  liveRunnerSnapshotCacheGateway,
@@ -33,11 +37,11 @@ import {
33
37
  systemClock,
34
38
  systemTimer,
35
39
  unavailableRunnerSnapshotCacheGateway
36
- } from "./chunk-I7AN3DIJ.js";
37
- import "./chunk-RA4L2ACU.js";
38
- import "./chunk-GQIL3AHY.js";
39
- import "./chunk-GSC6SRTW.js";
40
- import "./chunk-YM6TZV4L.js";
40
+ } from "./chunk-DC2CDHNK.js";
41
+ import "./chunk-AWBSONHB.js";
42
+ import {
43
+ resolveColorDepth
44
+ } from "./chunk-VL7WFTVQ.js";
41
45
 
42
46
  // src/local-services.ts
43
47
  import { parse } from "node:path";
@@ -53,7 +57,12 @@ function packageBinService(context) {
53
57
  // src/context.ts
54
58
  function launcherResolvers(app) {
55
59
  return {
56
- config: configResolver({ gateway: app.context.config, cwd: app.cwd, definitions: app.resourceDefinitions }),
60
+ config: configResolver({
61
+ gateway: app.context.config,
62
+ cwd: app.cwd,
63
+ definitions: app.resourceDefinitions,
64
+ drivers: app.driverNames
65
+ }),
57
66
  credentials: credentialResolver(app.context)
58
67
  };
59
68
  }
@@ -68,6 +77,7 @@ function liveContext(options) {
68
77
  githubActionsTokens: liveGitHubActionsTokenGateway({ env: options.env, timeoutMs: 1e4 }),
69
78
  commands: liveCommandGateway(),
70
79
  config: liveConfigGateway(),
80
+ fileListsFiles: liveFileListsFileGateway(),
71
81
  checkout: liveCheckoutGateway(),
72
82
  runnerSnapshots: snapshots.ok ? liveRunnerSnapshotCacheGateway({ directory: snapshots.directory }) : unavailableRunnerSnapshotCacheGateway(stateDirectoryPattern(RUNNER_SNAPSHOTS_SUBPATH), snapshots.reason),
73
83
  runnerSandboxes: liveRunnerSandboxGateway(),
@@ -85,19 +95,13 @@ function liveContext(options) {
85
95
  }
86
96
 
87
97
  // src/presentation.ts
88
- function resolvePresentation(host) {
98
+ function resolvePresentation(host, options = {}) {
89
99
  const { env, stderr } = host;
90
- const color = resolveColor(env, stderr.rich);
100
+ const colorDepth = options.noColor === true ? "none" : resolveColorDepth({ tty: stderr.isTTY, env });
91
101
  const columns = stderr.columns;
92
102
  if (stderr.rich && !host.ci && host.agent === void 0 && env["VERCEL_ACCESSIBLE"] !== "1")
93
- return { kind: "live", color, columns };
94
- return { kind: "plain", github: env["GITHUB_ACTIONS"] === "true", color, columns };
95
- }
96
- function resolveColor(env, rich) {
97
- if (env["NO_COLOR"] !== void 0) return false;
98
- const forced = env["FORCE_COLOR"];
99
- if (forced !== void 0 && forced !== "") return forced !== "0" && forced !== "false";
100
- return rich;
103
+ return { kind: "live", colorDepth, columns };
104
+ return { kind: "plain", github: env["GITHUB_ACTIONS"] === "true", colorDepth, columns };
101
105
  }
102
106
 
103
107
  // src/live-app.ts
@@ -111,14 +115,15 @@ function liveStormApp(host, build, exit, options = {}) {
111
115
  resourceContexts: liveResourceContexts(host.env),
112
116
  driverContexts: liveDriverContexts(),
113
117
  resourceDefinitions: RESOURCES,
114
- ...launcherResolvers({ context, cwd: host.cwd, resourceDefinitions: RESOURCES }),
118
+ driverNames: DRIVER_NAMES,
119
+ ...launcherResolvers({ context, cwd: host.cwd, resourceDefinitions: RESOURCES, driverNames: DRIVER_NAMES }),
115
120
  ...localServices({ context }),
116
121
  env: host.env,
117
122
  cwd: host.cwd,
118
123
  version: build.version,
119
124
  commit: build.commit,
120
125
  user: localUserName(),
121
- presentation: resolvePresentation(host),
126
+ presentation: resolvePresentation(host, options),
122
127
  exit
123
128
  };
124
129
  }
@@ -1,6 +1,6 @@
1
1
  import type { StormApp } from "./context.ts";
2
2
  /**
3
- * storm's own command tree: each `command.ts` under `commands/` defines its command with it, a run command through
4
- * `defineRunCommand` (`commands/exec/define-run-command.ts`). Each extension's commands are in a tree of its own.
3
+ * storm's own command tree: each `command.ts` under `commands/` defines its command with it. Each extension's commands
4
+ * are in a tree of its own.
5
5
  */
6
6
  export declare const stormCommands: import("@vercel/clinkr").CommandTree<StormApp>;
@@ -1,6 +1,6 @@
1
1
  import { commandTree } from "@vercel/clinkr";
2
2
  /**
3
- * storm's own command tree: each `command.ts` under `commands/` defines its command with it, a run command through
4
- * `defineRunCommand` (`commands/exec/define-run-command.ts`). Each extension's commands are in a tree of its own.
3
+ * storm's own command tree: each `command.ts` under `commands/` defines its command with it. Each extension's commands
4
+ * are in a tree of its own.
5
5
  */
6
6
  export const stormCommands = commandTree({ id: "storm" });
@@ -0,0 +1,364 @@
1
+ import { z } from "zod";
2
+ import type { DriverHints } from "../../sdk/extension/index.ts";
3
+ /**
4
+ * What a `sandboxes_ran` outcome says of a run whose runner sandboxes ran and ended. No field carries the credential.
5
+ */
6
+ export declare const sandboxesRanSchema: z.ZodObject<{
7
+ version: z.ZodString;
8
+ commit: z.ZodNullable<z.ZodString>;
9
+ configFile: z.ZodNullable<z.ZodString>;
10
+ runId: z.ZodNullable<z.ZodString>;
11
+ runDirectory: z.ZodNullable<z.ZodString>;
12
+ sandboxes: z.ZodArray<z.ZodObject<{
13
+ sandbox: z.ZodNumber;
14
+ argv: z.ZodReadonly<z.ZodArray<z.ZodString>>;
15
+ files: z.ZodNullable<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
16
+ state: z.ZodEnum<{
17
+ canceled: "canceled";
18
+ failed: "failed";
19
+ "not-started": "not-started";
20
+ passed: "passed";
21
+ pending: "pending";
22
+ }>;
23
+ failedStage: z.ZodNullable<z.ZodEnum<{
24
+ apply: "apply";
25
+ build: "build";
26
+ checkout: "checkout";
27
+ command: "command";
28
+ install: "install";
29
+ mint: "mint";
30
+ resource: "resource";
31
+ snapshot: "snapshot";
32
+ start: "start";
33
+ storm: "storm";
34
+ upload: "upload";
35
+ }>>;
36
+ exitCode: z.ZodNullable<z.ZodNumber>;
37
+ cause: z.ZodNullable<z.ZodString>;
38
+ name: z.ZodNullable<z.ZodString>;
39
+ keptUntil: z.ZodNullable<z.ZodString>;
40
+ preparedMs: z.ZodNullable<z.ZodNumber>;
41
+ commandMs: z.ZodNullable<z.ZodNumber>;
42
+ tests: z.ZodNullable<z.ZodObject<{
43
+ passed: z.ZodNumber;
44
+ failed: z.ZodNumber;
45
+ skipped: z.ZodNumber;
46
+ }, z.core.$strip>>;
47
+ tail: z.ZodReadonly<z.ZodArray<z.ZodString>>;
48
+ }, z.core.$strip>>;
49
+ states: z.ZodObject<{
50
+ passed: z.ZodNumber;
51
+ failed: z.ZodNumber;
52
+ "not-started": z.ZodNumber;
53
+ canceled: z.ZodNumber;
54
+ }, z.core.$strip>;
55
+ tests: z.ZodNullable<z.ZodObject<{
56
+ passed: z.ZodNumber;
57
+ failed: z.ZodNumber;
58
+ skipped: z.ZodNumber;
59
+ }, z.core.$strip>>;
60
+ plan: z.ZodObject<{
61
+ tests: z.ZodOptional<z.ZodNumber>;
62
+ files: z.ZodOptional<z.ZodNumber>;
63
+ options: z.ZodArray<z.ZodObject<{
64
+ path: z.ZodString;
65
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
66
+ from: z.ZodEnum<{
67
+ default: "default";
68
+ file: "file";
69
+ flag: "flag";
70
+ }>;
71
+ }, z.core.$strip>>;
72
+ sandboxes: z.ZodOptional<z.ZodObject<{
73
+ count: z.ZodNumber;
74
+ from: z.ZodEnum<{
75
+ default: "default";
76
+ "file-lists": "file-lists";
77
+ flag: "flag";
78
+ }>;
79
+ max: z.ZodNumber;
80
+ default: z.ZodOptional<z.ZodNumber>;
81
+ requested: z.ZodOptional<z.ZodNumber>;
82
+ leftOut: z.ZodOptional<z.ZodNumber>;
83
+ }, z.core.$strip>>;
84
+ }, z.core.$strip>;
85
+ 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>>;
86
+ wallMs: z.ZodNumber;
87
+ runner: z.ZodObject<{
88
+ snapshotId: z.ZodString;
89
+ base: z.ZodString;
90
+ builtBehind: z.ZodNullable<z.ZodNumber>;
91
+ built: z.ZodBoolean;
92
+ vcpus: z.ZodNumber;
93
+ region: z.ZodString;
94
+ runtime: z.ZodString;
95
+ uploadBytes: z.ZodNullable<z.ZodNumber>;
96
+ }, z.core.$strip>;
97
+ 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>>;
98
+ kept: z.ZodArray<z.ZodObject<{
99
+ sandbox: z.ZodNumber;
100
+ name: z.ZodString;
101
+ stopsAt: z.ZodString;
102
+ url: z.ZodString;
103
+ }, z.core.$strip>>;
104
+ notKept: z.ZodArray<z.ZodObject<{
105
+ sandbox: z.ZodNumber;
106
+ name: z.ZodString;
107
+ message: z.ZodString;
108
+ }, z.core.$strip>>;
109
+ fileListMismatches: z.ZodArray<z.ZodObject<{
110
+ sandbox: z.ZodNumber;
111
+ missing: z.ZodArray<z.ZodString>;
112
+ extra: z.ZodArray<z.ZodString>;
113
+ }, z.core.$strip>>;
114
+ }, z.core.$strip>;
115
+ export declare const SANDBOXES_RAN_DESCRIPTION = "Every runner sandbox of a run across runner sandboxes ended. storm exits 0 when every runner sandbox passed, else 1, whatever this result's exit code. A runner sandbox with a file list whose command ended, and which reported nothing for a test file of its list or reported a test file not in its list, warns file_list_mismatch; the exit status is the same.";
116
+ /**
117
+ * How a `sandboxes_ran` outcome renders: its warnings and kept sandboxes; when `options.noFinal` says the run saved no
118
+ * final test result, the `no_final_test_results` warning and `hints.addReporter` as its next steps; and the driver's
119
+ * extra hint on each `file_list_mismatch` warning.
120
+ */
121
+ export declare function renderSandboxesRan(ran: z.output<typeof sandboxesRanSchema>, options?: {
122
+ readonly noFinal?: {
123
+ readonly noFinalTestResults: boolean;
124
+ readonly hints: Pick<DriverHints, "addReporter">;
125
+ };
126
+ readonly extraMismatchHint?: string | undefined;
127
+ }): import("@vercel/clinkr").Rendered<{
128
+ message?: string;
129
+ warnings?: import("../../sdk/extension/reports.ts").Warning<string>[];
130
+ next?: {
131
+ readonly type: "text";
132
+ readonly text: string;
133
+ }[];
134
+ }>;
135
+ /** The refusals of a run across runner sandboxes before it mints. */
136
+ export declare const sandboxesErrors: import("@vercel/clinkr").SharedErrors<{
137
+ missingSandboxesMax: z.ZodObject<{
138
+ flag: z.ZodEnum<{
139
+ "--file-lists": "--file-lists";
140
+ "--sandboxes": "--sandboxes";
141
+ }>;
142
+ key: z.ZodString;
143
+ configFile: z.ZodNullable<z.ZodString>;
144
+ }, z.core.$strip>;
145
+ sandboxesOverMax: z.ZodObject<{
146
+ flag: z.ZodEnum<{
147
+ "--file-lists": "--file-lists";
148
+ "--sandboxes": "--sandboxes";
149
+ }>;
150
+ sandboxes: z.ZodNumber;
151
+ key: z.ZodString;
152
+ max: z.ZodNumber;
153
+ configFile: z.ZodNullable<z.ZodString>;
154
+ }, z.core.$strip>;
155
+ }, {
156
+ readonly missingSandboxesMax: {
157
+ readonly exitCode: 2;
158
+ readonly description: "--sandboxes or --file-lists was given, and storm.config.ts has no runner.sandboxes key, which sets the most runner sandboxes a run can have. A repository opts in to runs across runner sandboxes. Nothing was minted, acquired, or started.";
159
+ readonly schema: z.ZodObject<{
160
+ flag: z.ZodEnum<{
161
+ "--file-lists": "--file-lists";
162
+ "--sandboxes": "--sandboxes";
163
+ }>;
164
+ key: z.ZodString;
165
+ configFile: z.ZodNullable<z.ZodString>;
166
+ }, z.core.$strip>;
167
+ readonly render: ({ flag, configFile }: {
168
+ flag: "--file-lists" | "--sandboxes";
169
+ key: string;
170
+ configFile: string | null;
171
+ }) => {
172
+ message: string;
173
+ next: {
174
+ type: "text";
175
+ text: string;
176
+ }[];
177
+ };
178
+ };
179
+ readonly sandboxesOverMax: {
180
+ readonly exitCode: 2;
181
+ readonly description: "--sandboxes asked for more runner sandboxes than runner.sandboxes.max in storm.config.ts allows, or the file --file-lists names holds more lists than that. Nothing was minted, acquired, or started.";
182
+ readonly schema: z.ZodObject<{
183
+ flag: z.ZodEnum<{
184
+ "--file-lists": "--file-lists";
185
+ "--sandboxes": "--sandboxes";
186
+ }>;
187
+ sandboxes: z.ZodNumber;
188
+ key: z.ZodString;
189
+ max: z.ZodNumber;
190
+ configFile: z.ZodNullable<z.ZodString>;
191
+ }, z.core.$strip>;
192
+ readonly render: ({ flag, sandboxes, key, max }: {
193
+ flag: "--file-lists" | "--sandboxes";
194
+ sandboxes: number;
195
+ key: string;
196
+ max: number;
197
+ configFile: string | null;
198
+ }) => {
199
+ message: string;
200
+ next: {
201
+ type: "text";
202
+ text: string;
203
+ }[];
204
+ };
205
+ };
206
+ }>;
207
+ export declare const sandboxesDefaultErrors: import("@vercel/clinkr").SharedErrors<{
208
+ sandboxesDefaultRefused: z.ZodObject<{
209
+ key: z.ZodString;
210
+ sandboxes: z.ZodNumber;
211
+ field: z.ZodEnum<{
212
+ args: "args";
213
+ showOutput: "showOutput";
214
+ }>;
215
+ problem: z.ZodString;
216
+ configFile: z.ZodNullable<z.ZodString>;
217
+ }, z.core.$strip>;
218
+ }, {
219
+ readonly sandboxesDefaultRefused: {
220
+ readonly exitCode: 2;
221
+ readonly description: "runner.sandboxes.default in storm.config.ts makes this a run across runner sandboxes, and the run was given something a run across runner sandboxes can't take: --show-output or an argument its driver refuses in a run across runner sandboxes. Nothing was minted, acquired, or started.";
222
+ readonly schema: z.ZodObject<{
223
+ key: z.ZodString;
224
+ sandboxes: z.ZodNumber;
225
+ field: z.ZodEnum<{
226
+ args: "args";
227
+ showOutput: "showOutput";
228
+ }>;
229
+ problem: z.ZodString;
230
+ configFile: z.ZodNullable<z.ZodString>;
231
+ }, z.core.$strip>;
232
+ readonly render: ({ key, sandboxes, problem }: {
233
+ key: string;
234
+ sandboxes: number;
235
+ field: "args" | "showOutput";
236
+ problem: string;
237
+ configFile: string | null;
238
+ }) => {
239
+ message: string;
240
+ next: {
241
+ type: "text";
242
+ text: string;
243
+ }[];
244
+ };
245
+ };
246
+ }>;
247
+ export declare const fileListErrors: import("@vercel/clinkr").SharedErrors<{
248
+ fileListsUnreadable: z.ZodObject<{
249
+ path: z.ZodString;
250
+ problem: z.ZodEnum<{
251
+ "not-json": "not-json";
252
+ "not-lists": "not-lists";
253
+ unreadable: "unreadable";
254
+ }>;
255
+ message: z.ZodString;
256
+ }, z.core.$strip>;
257
+ invalidFileLists: z.ZodObject<{
258
+ path: z.ZodString;
259
+ problems: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
260
+ kind: z.ZodLiteral<"empty-list">;
261
+ sandbox: z.ZodNumber;
262
+ }, z.core.$strip>, z.ZodObject<{
263
+ kind: z.ZodLiteral<"in-two-lists">;
264
+ file: z.ZodString;
265
+ sandboxes: z.ZodArray<z.ZodNumber>;
266
+ }, z.core.$strip>, z.ZodObject<{
267
+ kind: z.ZodLiteral<"count-mismatch">;
268
+ lists: z.ZodNumber;
269
+ sandboxes: z.ZodNumber;
270
+ }, z.core.$strip>], "kind">>;
271
+ }, z.core.$strip>;
272
+ fileListsUnlisted: z.ZodObject<{
273
+ path: z.ZodString;
274
+ files: z.ZodArray<z.ZodString>;
275
+ listed: z.ZodNumber;
276
+ }, z.core.$strip>;
277
+ }, {
278
+ readonly fileListsUnreadable: {
279
+ readonly exitCode: 2;
280
+ readonly description: "The file --file-lists names can't be read, its text isn't JSON, or its JSON isn't an array with one array of test file paths for each runner sandbox, at least one. Nothing was minted, acquired, or started.";
281
+ readonly schema: z.ZodObject<{
282
+ path: z.ZodString;
283
+ problem: z.ZodEnum<{
284
+ "not-json": "not-json";
285
+ "not-lists": "not-lists";
286
+ unreadable: "unreadable";
287
+ }>;
288
+ message: z.ZodString;
289
+ }, z.core.$strip>;
290
+ readonly render: ({ path, problem, message }: {
291
+ path: string;
292
+ problem: "not-json" | "not-lists" | "unreadable";
293
+ message: string;
294
+ }) => {
295
+ message: string;
296
+ next: {
297
+ type: "text";
298
+ text: string;
299
+ }[];
300
+ };
301
+ };
302
+ readonly invalidFileLists: {
303
+ readonly exitCode: 2;
304
+ readonly description: "The lists in the file --file-lists names can't be a run's file lists: a list holds no test file, a test file is in two lists or two times in one, or the number of lists differs from --sandboxes. Nothing was minted, acquired, or started.";
305
+ readonly schema: z.ZodObject<{
306
+ path: z.ZodString;
307
+ problems: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
308
+ kind: z.ZodLiteral<"empty-list">;
309
+ sandbox: z.ZodNumber;
310
+ }, z.core.$strip>, z.ZodObject<{
311
+ kind: z.ZodLiteral<"in-two-lists">;
312
+ file: z.ZodString;
313
+ sandboxes: z.ZodArray<z.ZodNumber>;
314
+ }, z.core.$strip>, z.ZodObject<{
315
+ kind: z.ZodLiteral<"count-mismatch">;
316
+ lists: z.ZodNumber;
317
+ sandboxes: z.ZodNumber;
318
+ }, z.core.$strip>], "kind">>;
319
+ }, z.core.$strip>;
320
+ readonly render: ({ path, problems }: {
321
+ path: string;
322
+ problems: ({
323
+ kind: "empty-list";
324
+ sandbox: number;
325
+ } | {
326
+ kind: "in-two-lists";
327
+ file: string;
328
+ sandboxes: number[];
329
+ } | {
330
+ kind: "count-mismatch";
331
+ lists: number;
332
+ sandboxes: number;
333
+ })[];
334
+ }) => {
335
+ message: string;
336
+ rows: [string, string[]][];
337
+ next: {
338
+ type: "text";
339
+ text: string;
340
+ }[];
341
+ };
342
+ };
343
+ readonly fileListsUnlisted: {
344
+ readonly exitCode: 2;
345
+ readonly description: "A list in the file --file-lists names holds a path that the run's own listing of its test files doesn't have. Nothing was minted, acquired, or started.";
346
+ readonly schema: z.ZodObject<{
347
+ path: z.ZodString;
348
+ files: z.ZodArray<z.ZodString>;
349
+ listed: z.ZodNumber;
350
+ }, z.core.$strip>;
351
+ readonly render: ({ path, files, listed }: {
352
+ path: string;
353
+ files: string[];
354
+ listed: number;
355
+ }) => {
356
+ message: string;
357
+ rows: [string, string[]][];
358
+ next: {
359
+ type: "text";
360
+ text: string;
361
+ }[];
362
+ };
363
+ };
364
+ }>;