@cnc-tools/storm 0.11.0 → 0.13.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 (442) hide show
  1. package/dist/bin/storm.js +7 -12
  2. package/dist/build-info.js +1 -1
  3. package/dist/chunks/chunk-2NZXL6OH.js +62 -0
  4. package/dist/chunks/{chunk-3ZZVZPMG.js → chunk-43MWZLJR.js} +1 -1
  5. package/dist/chunks/{chunk-NPPJ57W7.js → chunk-5UMJNVKT.js} +498 -215
  6. package/dist/chunks/{chunk-KR7WIYLG.js → chunk-6EQKA7LI.js} +200 -985
  7. package/dist/chunks/{chunk-4EU4AH7E.js → chunk-AX4EQZUS.js} +186 -144
  8. package/dist/chunks/{chunk-ETCZ6WP7.js → chunk-BW2ADH7U.js} +1 -1
  9. package/dist/chunks/chunk-DOFB2ACU.js +49 -0
  10. package/dist/chunks/chunk-EGNP3S6C.js +161 -0
  11. package/dist/chunks/chunk-GQIL3AHY.js +20 -0
  12. package/dist/chunks/{chunk-ICB4BZJX.js → chunk-GSC6SRTW.js} +7 -2
  13. package/dist/chunks/{chunk-OJOKQRM6.js → chunk-IYM44FUX.js} +30 -26
  14. package/dist/chunks/{chunk-GRMD7G4J.js → chunk-LQKNI3EG.js} +6 -5
  15. package/dist/chunks/chunk-N7E6DAUE.js +40 -0
  16. package/dist/chunks/chunk-NMVODY3P.js +19 -0
  17. package/dist/chunks/{chunk-TRFEAYNC.js → chunk-Q4TKRILH.js} +261 -354
  18. package/dist/chunks/{chunk-VZZTHCBW.js → chunk-RTILVSYQ.js} +5 -18
  19. package/dist/chunks/{chunk-L4ZPMSKQ.js → chunk-T6AZIDZD.js} +43 -363
  20. package/dist/chunks/chunk-X4WBJIOF.js +308 -0
  21. package/dist/chunks/chunk-YGS5VRQT.js +794 -0
  22. package/dist/chunks/{chunk-4PRAB24Y.js → chunk-YM6TZV4L.js} +394 -396
  23. package/dist/chunks/{chunk-AMTYHUYB.js → chunk-YT5OROR7.js} +22 -8
  24. package/dist/chunks/{chunk-O4BUT7BE.js → chunk-ZDJLKF2G.js} +1625 -1583
  25. package/dist/chunks/{live-app-LOGYUBKB.js → live-app-QFHS54SX.js} +25 -46
  26. package/dist/command-tree.d.ts +4 -1
  27. package/dist/command-tree.js +4 -1
  28. package/dist/commands/exec/cleanup.js +4 -4
  29. package/dist/commands/exec/command.d.ts +6 -55
  30. package/dist/commands/exec/command.js +51 -46
  31. package/dist/commands/exec/define-run-command.d.ts +664 -0
  32. package/dist/commands/exec/define-run-command.js +58 -0
  33. package/dist/commands/exec/driver-plan.d.ts +30 -0
  34. package/dist/commands/exec/driver-plan.js +44 -0
  35. package/dist/commands/exec/driver-refusals.d.ts +89 -0
  36. package/dist/commands/exec/driver-refusals.js +65 -0
  37. package/dist/commands/exec/exec-words.d.ts +5 -0
  38. package/dist/commands/exec/exec-words.js +31 -0
  39. package/dist/commands/exec/live-view.js +68 -42
  40. package/dist/commands/exec/mint-failed.js +4 -4
  41. package/dist/commands/exec/outcomes.d.ts +6 -48
  42. package/dist/commands/exec/outcomes.js +10 -12
  43. package/dist/commands/exec/plan-run.js +3 -3
  44. package/dist/commands/exec/progress.d.ts +21 -17
  45. package/dist/commands/exec/progress.js +59 -78
  46. package/dist/commands/exec/resource-flags.d.ts +10 -3
  47. package/dist/commands/exec/resource-flags.js +25 -14
  48. package/dist/commands/exec/resource-refusals.d.ts +1 -1
  49. package/dist/commands/exec/resource-refusals.js +9 -9
  50. package/dist/commands/exec/run-bin.d.ts +35 -0
  51. package/dist/commands/exec/run-bin.js +32 -0
  52. package/dist/commands/exec/run-command.d.ts +64 -23
  53. package/dist/commands/exec/run-command.js +35 -94
  54. package/dist/commands/exec/run-metadata.d.ts +25 -19
  55. package/dist/commands/exec/run-metadata.js +34 -18
  56. package/dist/commands/exec/snapshot-text.d.ts +31 -0
  57. package/dist/commands/exec/snapshot-text.js +72 -0
  58. package/dist/commands/exec/test-plan.d.ts +2 -2
  59. package/dist/commands/exec/test-plan.js +11 -8
  60. package/dist/commands/exec/tests-summary.d.ts +21 -12
  61. package/dist/commands/exec/tests-summary.js +67 -39
  62. package/dist/commands/exec/text.d.ts +5 -0
  63. package/dist/commands/exec/text.js +7 -0
  64. package/dist/commands/exec/view.js +12 -13
  65. package/dist/commands/exec/waterfall.js +4 -4
  66. package/dist/commands/exec/worker-chart.d.ts +19 -11
  67. package/dist/commands/exec/worker-chart.js +66 -36
  68. package/dist/commands/playwright/command.d.ts +658 -0
  69. package/dist/commands/playwright/command.js +31 -0
  70. package/dist/commands/playwright/metadata.js +8 -0
  71. package/dist/commands/runs/facts.d.ts +5 -28
  72. package/dist/commands/runs/facts.js +11 -33
  73. package/dist/commands/runs/list/command.d.ts +4 -50
  74. package/dist/commands/runs/list/command.js +15 -11
  75. package/dist/commands/runs/list/outcomes.d.ts +2 -25
  76. package/dist/commands/runs/logs/command.js +13 -9
  77. package/dist/commands/runs/logs/outcomes.js +1 -1
  78. package/dist/commands/runs/show/command.d.ts +6 -50
  79. package/dist/commands/runs/show/command.js +37 -47
  80. package/dist/commands/runs/show/metadata.js +1 -1
  81. package/dist/commands/runs/show/outcomes.d.ts +3 -25
  82. package/dist/commands/runs/show/outcomes.js +18 -31
  83. package/dist/commands/snapshots/build/command.d.ts +501 -0
  84. package/dist/commands/snapshots/build/command.js +336 -0
  85. package/dist/commands/snapshots/build/metadata.d.ts +28 -0
  86. package/dist/commands/snapshots/build/metadata.js +37 -0
  87. package/dist/commands/snapshots/build/outcomes.d.ts +254 -0
  88. package/dist/commands/snapshots/build/outcomes.js +155 -0
  89. package/dist/commands/snapshots/list/command.d.ts +238 -0
  90. package/dist/commands/snapshots/list/command.js +269 -0
  91. package/dist/commands/snapshots/list/metadata.d.ts +16 -0
  92. package/dist/commands/snapshots/list/metadata.js +24 -0
  93. package/dist/commands/snapshots/list/outcomes.d.ts +148 -0
  94. package/dist/commands/snapshots/list/outcomes.js +217 -0
  95. package/dist/commands/snapshots/metadata.d.ts +3 -0
  96. package/dist/commands/snapshots/metadata.js +7 -0
  97. package/dist/commands/vitest/command.d.ts +185 -304
  98. package/dist/commands/vitest/command.js +23 -181
  99. package/dist/commands/vitest/metadata.js +1 -1
  100. package/dist/config-file/define.d.ts +1 -1
  101. package/dist/context.d.ts +32 -30
  102. package/dist/context.js +13 -17
  103. package/dist/core/before-run.d.ts +5 -5
  104. package/dist/core/before-run.js +8 -8
  105. package/dist/core/definition-lookup.d.ts +5 -5
  106. package/dist/core/definition-lookup.js +13 -12
  107. package/dist/core/drivers-of.d.ts +23 -0
  108. package/dist/core/drivers-of.js +13 -0
  109. package/dist/core/events.d.ts +6 -9
  110. package/dist/core/gateways.d.ts +32 -24
  111. package/dist/core/index.d.ts +7 -5
  112. package/dist/core/index.js +9 -6
  113. package/dist/core/launcher-context.d.ts +11 -0
  114. package/dist/core/launcher-context.js +31 -0
  115. package/dist/core/live/package-bin-gateway.d.ts +6 -0
  116. package/dist/core/live/package-bin-gateway.js +24 -0
  117. package/dist/core/package-bin.d.ts +7 -0
  118. package/dist/core/package-bin.js +30 -0
  119. package/dist/core/presentations.d.ts +1 -1
  120. package/dist/core/presentations.js +6 -5
  121. package/dist/core/{resource-registry.d.ts → resource-definition-set.d.ts} +15 -14
  122. package/dist/core/resource-definition-set.js +31 -0
  123. package/dist/core/resource-reports.d.ts +1 -1
  124. package/dist/core/resource-reports.js +16 -15
  125. package/dist/core/resource.d.ts +4 -4
  126. package/dist/core/resources.d.ts +6 -6
  127. package/dist/core/resources.js +11 -11
  128. package/dist/core/run-state.d.ts +20 -31
  129. package/dist/core/run-state.js +34 -25
  130. package/dist/core/run.d.ts +30 -32
  131. package/dist/core/run.js +33 -39
  132. package/dist/core/setup-phases.d.ts +14 -0
  133. package/dist/core/setup-phases.js +24 -0
  134. package/dist/core/state-directory.d.ts +2 -2
  135. package/dist/core/state-directory.js +3 -3
  136. package/dist/core/timeline.d.ts +4 -2
  137. package/dist/core/timeline.js +11 -5
  138. package/dist/extension-commands.js +6 -10
  139. package/dist/extensions/github/{world.d.ts → context.d.ts} +1 -1
  140. package/dist/extensions/github/context.js +3 -0
  141. package/dist/extensions/github/definition.d.ts +1 -1
  142. package/dist/extensions/github/definition.js +3 -3
  143. package/dist/extensions/github/extension.d.ts +1 -1
  144. package/dist/extensions/github/index.d.ts +2 -2
  145. package/dist/extensions/github/index.js +4 -4
  146. package/dist/extensions/github/lifecycle.d.ts +3 -3
  147. package/dist/extensions/github/lifecycle.js +14 -14
  148. package/dist/extensions/github/live/context.d.ts +6 -0
  149. package/dist/extensions/github/live/context.js +16 -0
  150. package/dist/extensions/github/resource.d.ts +1 -1
  151. package/dist/extensions/playwright/driver.d.ts +8 -0
  152. package/dist/extensions/playwright/driver.js +60 -0
  153. package/dist/extensions/playwright/extension.d.ts +2 -0
  154. package/dist/extensions/playwright/extension.js +12 -0
  155. package/dist/extensions/playwright/plan/gateways.d.ts +62 -0
  156. package/dist/extensions/playwright/plan/gateways.js +4 -0
  157. package/dist/extensions/playwright/plan/list-output.d.ts +26 -0
  158. package/dist/extensions/playwright/plan/list-output.js +101 -0
  159. package/dist/extensions/playwright/plan/live/list-gateway.d.ts +15 -0
  160. package/dist/extensions/playwright/plan/live/list-gateway.js +100 -0
  161. package/dist/extensions/playwright/plan/plan.d.ts +44 -0
  162. package/dist/extensions/playwright/plan/plan.js +53 -0
  163. package/dist/extensions/testserver/command-tree.d.ts +1 -1
  164. package/dist/extensions/testserver/command-tree.js +2 -2
  165. package/dist/extensions/testserver/commands/app.d.ts +7 -7
  166. package/dist/extensions/testserver/commands/pool/create/command.d.ts +5 -5
  167. package/dist/extensions/testserver/commands/pool/create/command.js +12 -13
  168. package/dist/extensions/testserver/commands/pool/list/command.js +5 -6
  169. package/dist/extensions/testserver/{world.d.ts → context.d.ts} +1 -1
  170. package/dist/extensions/testserver/context.js +4 -0
  171. package/dist/extensions/testserver/definition.d.ts +2 -2
  172. package/dist/extensions/testserver/definition.js +8 -7
  173. package/dist/extensions/testserver/events.d.ts +1 -1
  174. package/dist/extensions/testserver/extension.d.ts +4 -3
  175. package/dist/extensions/testserver/extension.js +33 -20
  176. package/dist/extensions/testserver/index.d.ts +2 -2
  177. package/dist/extensions/testserver/index.js +2 -2
  178. package/dist/extensions/testserver/lifecycle.d.ts +6 -5
  179. package/dist/extensions/testserver/lifecycle.js +9 -8
  180. package/dist/extensions/testserver/live/context.d.ts +8 -0
  181. package/dist/extensions/testserver/live/{world.js → context.js} +6 -7
  182. package/dist/extensions/testserver/options/rules.d.ts +3 -3
  183. package/dist/extensions/testserver/options/rules.js +5 -4
  184. package/dist/extensions/testserver/options/sandboxes.d.ts +3 -2
  185. package/dist/extensions/testserver/options/sandboxes.js +3 -2
  186. package/dist/extensions/testserver/playwright/index.d.ts +33 -0
  187. package/dist/extensions/testserver/playwright/index.js +43 -0
  188. package/dist/extensions/testserver/presentation.d.ts +4 -4
  189. package/dist/extensions/testserver/presentation.js +7 -7
  190. package/dist/extensions/testserver/progress.d.ts +3 -3
  191. package/dist/extensions/testserver/progress.js +3 -3
  192. package/dist/extensions/testserver/provision.d.ts +2 -2
  193. package/dist/extensions/testserver/provision.js +10 -10
  194. package/dist/extensions/testserver/resource.d.ts +2 -2
  195. package/dist/extensions/testserver/result.d.ts +2 -2
  196. package/dist/extensions/testserver/result.js +1 -1
  197. package/dist/extensions/testserver/run/connection.d.ts +1 -1
  198. package/dist/extensions/testserver/run/connection.js +3 -3
  199. package/dist/extensions/testserver/run/sandbox.d.ts +31 -0
  200. package/dist/extensions/testserver/run/sandbox.js +58 -0
  201. package/dist/extensions/testserver/run-sandbox.d.ts +2 -2
  202. package/dist/extensions/testserver/run-sandbox.js +3 -3
  203. package/dist/extensions/testserver/vercel-cli/arguments.d.ts +2 -2
  204. package/dist/extensions/testserver/vercel-cli/arguments.js +6 -6
  205. package/dist/extensions/testserver/vercel-cli/auth-config.d.ts +7 -7
  206. package/dist/extensions/testserver/vercel-cli/auth-config.js +4 -4
  207. package/dist/extensions/testserver/vercel-cli/clock.js +1 -1
  208. package/dist/extensions/testserver/vercel-cli/config-files.js +1 -1
  209. package/dist/extensions/testserver/vercel-cli/context.d.ts +1 -1
  210. package/dist/extensions/testserver/vercel-cli/context.js +2 -2
  211. package/dist/extensions/testserver/vercel-cli/entry.d.ts +1 -1
  212. package/dist/extensions/testserver/vercel-cli/entry.js +1 -1
  213. package/dist/extensions/testserver/vercel-cli/environment.d.ts +5 -5
  214. package/dist/extensions/testserver/vercel-cli/environment.js +6 -6
  215. package/dist/extensions/testserver/vercel-cli/gateways.d.ts +1 -1
  216. package/dist/extensions/testserver/vercel-cli/gateways.js +3 -3
  217. package/dist/extensions/testserver/vercel-cli/index.d.ts +1 -1
  218. package/dist/extensions/testserver/vercel-cli/index.js +8 -9
  219. package/dist/extensions/testserver/vercel-cli/invocation.d.ts +13 -12
  220. package/dist/extensions/testserver/vercel-cli/invocation.js +1 -1
  221. package/dist/extensions/testserver/vercel-cli/{driver.d.ts → invoker.d.ts} +18 -17
  222. package/dist/extensions/testserver/vercel-cli/{driver.js → invoker.js} +8 -8
  223. package/dist/extensions/testserver/vercel-cli/live/config-files.d.ts +2 -2
  224. package/dist/extensions/testserver/vercel-cli/live/config-files.js +2 -2
  225. package/dist/extensions/testserver/vercel-cli/live/process-gateway.js +1 -1
  226. package/dist/extensions/testserver/vercel-cli/report.js +2 -2
  227. package/dist/extensions/testserver/vercel-cli/verbose.js +1 -1
  228. package/dist/extensions/testserver/vitest/config.d.ts +3 -3
  229. package/dist/extensions/testserver/vitest/config.js +5 -13
  230. package/dist/extensions/testserver/vitest/container-scope.d.ts +11 -11
  231. package/dist/extensions/testserver/vitest/container-scope.js +9 -9
  232. package/dist/extensions/testserver/vitest/container-start.d.ts +6 -6
  233. package/dist/extensions/testserver/vitest/container-start.js +14 -11
  234. package/dist/extensions/testserver/vitest/diagnostics.d.ts +1 -1
  235. package/dist/extensions/testserver/vitest/fixtures.d.ts +11 -11
  236. package/dist/extensions/testserver/vitest/fixtures.js +14 -23
  237. package/dist/extensions/testserver/vitest/index.d.ts +1 -1
  238. package/dist/extensions/testserver/vitest/index.js +4 -4
  239. package/dist/extensions/testserver/vitest/types.d.ts +16 -18
  240. package/dist/extensions/testserver/vitest/types.js +2 -2
  241. package/dist/extensions/testserver/vitest/worker-sandbox.d.ts +8 -0
  242. package/dist/extensions/testserver/vitest/worker-sandbox.js +17 -0
  243. package/dist/extensions/vitest/driver.d.ts +8 -0
  244. package/dist/extensions/vitest/driver.js +62 -0
  245. package/dist/extensions/vitest/extension.d.ts +2 -0
  246. package/dist/extensions/vitest/extension.js +8 -0
  247. package/dist/{vitest → extensions/vitest/plan}/gateways.d.ts +1 -26
  248. package/dist/extensions/vitest/plan/gateways.js +3 -0
  249. package/dist/{vitest → extensions/vitest/plan}/live/list-gateway.d.ts +1 -2
  250. package/dist/{vitest → extensions/vitest/plan}/live/list-gateway.js +1 -20
  251. package/dist/extensions/vitest/plan/plan-over.d.ts +38 -0
  252. package/dist/extensions/vitest/plan/plan-over.js +31 -0
  253. package/dist/extensions/vitest/plan/plan.d.ts +24 -0
  254. package/dist/{vitest → extensions/vitest/plan}/plan.js +11 -26
  255. package/dist/extensions.d.ts +40 -18
  256. package/dist/extensions.js +49 -22
  257. package/dist/forward-sigterm.js +1 -1
  258. package/dist/launcher-resolvers/index.d.ts +1 -1
  259. package/dist/launcher-resolvers/local-services.d.ts +9 -44
  260. package/dist/launcher-resolvers/local-services.js +4 -5
  261. package/dist/live-app.js +7 -6
  262. package/dist/local-services.d.ts +7 -15
  263. package/dist/local-services.js +8 -29
  264. package/dist/playwright/index.d.ts +1 -0
  265. package/dist/playwright/index.js +4 -0
  266. package/dist/playwright/reporter.d.ts +96 -0
  267. package/dist/playwright/reporter.js +162 -0
  268. package/dist/playwright/worker-index.d.ts +7 -0
  269. package/dist/playwright/worker-index.js +20 -0
  270. package/dist/run-directory/index.d.ts +1 -1
  271. package/dist/run-directory/index.js +2 -3
  272. package/dist/run-directory/plan.d.ts +3 -3
  273. package/dist/run-directory/plan.js +5 -5
  274. package/dist/run-directory/reader.js +2 -2
  275. package/dist/run-directory/recording.d.ts +8 -5
  276. package/dist/run-directory/recording.js +6 -6
  277. package/dist/run-directory/run-collector.d.ts +5 -5
  278. package/dist/run-directory/run-collector.js +5 -5
  279. package/dist/run-directory/run-record.d.ts +17 -90
  280. package/dist/run-directory/run-record.js +15 -55
  281. package/dist/run-directory/timeline-facts.d.ts +2 -1
  282. package/dist/run-directory/timeline-facts.js +4 -2
  283. package/dist/runner/build-snapshots.d.ts +115 -0
  284. package/dist/runner/build-snapshots.js +146 -0
  285. package/dist/runner/context.js +2 -1
  286. package/dist/runner/events.d.ts +24 -69
  287. package/dist/runner/gateways.d.ts +20 -18
  288. package/dist/runner/index.d.ts +8 -7
  289. package/dist/runner/index.js +5 -3
  290. package/dist/runner/live/checkout-gateway.js +15 -7
  291. package/dist/runner/live/snapshot-records.js +7 -17
  292. package/dist/runner/prepare.d.ts +17 -50
  293. package/dist/runner/prepare.js +21 -25
  294. package/dist/runner/ready.d.ts +15 -11
  295. package/dist/runner/ready.js +32 -40
  296. package/dist/runner/recipe.d.ts +4 -18
  297. package/dist/runner/recipe.js +1 -13
  298. package/dist/runner/scope.d.ts +8 -32
  299. package/dist/runner/scope.js +4 -12
  300. package/dist/runner/secrets.d.ts +6 -0
  301. package/dist/runner/secrets.js +10 -0
  302. package/dist/runner/session.d.ts +19 -38
  303. package/dist/runner/session.js +16 -55
  304. package/dist/runner/snapshot-build.d.ts +21 -11
  305. package/dist/runner/snapshot-build.js +11 -16
  306. package/dist/runner/snapshot-cache.d.ts +98 -72
  307. package/dist/runner/snapshot-cache.js +69 -118
  308. package/dist/runner/snapshot-inspect.d.ts +85 -0
  309. package/dist/runner/snapshot-inspect.js +164 -0
  310. package/dist/runner/snapshot-key.d.ts +13 -15
  311. package/dist/runner/snapshot-key.js +15 -22
  312. package/dist/sdk/extension/commands.d.ts +35 -17
  313. package/dist/sdk/extension/commands.js +13 -11
  314. package/dist/sdk/extension/driver.d.ts +143 -0
  315. package/dist/sdk/extension/driver.js +28 -0
  316. package/dist/sdk/extension/index.d.ts +2 -1
  317. package/dist/sdk/extension/index.js +15 -9
  318. package/dist/sdk/extension/{launcher-supplies.d.ts → launcher-context.d.ts} +3 -3
  319. package/dist/sdk/extension/launcher-context.js +5 -0
  320. package/dist/sdk/extension/lifecycle.d.ts +6 -5
  321. package/dist/sdk/extension/lifecycle.js +2 -2
  322. package/dist/sdk/extension/resource-definition.d.ts +13 -13
  323. package/dist/sdk/extension/resource-definition.js +2 -2
  324. package/dist/sdk/extension/resource.d.ts +13 -13
  325. package/dist/sdk/extension/resource.js +11 -11
  326. package/dist/sdk/extension/time.js +2 -2
  327. package/dist/sdk/index.d.ts +2 -0
  328. package/dist/sdk/index.js +3 -1
  329. package/dist/sdk/run/launcher.d.ts +1 -1
  330. package/dist/sdk/run/launcher.js +4 -3
  331. package/dist/sdk/run/payload.js +1 -1
  332. package/dist/sdk/run/test-events.d.ts +24 -18
  333. package/dist/sdk/run/test-events.js +5 -4
  334. package/dist/sdk/run/test-result-writer.d.ts +77 -0
  335. package/dist/sdk/run/test-result-writer.js +143 -0
  336. package/dist/sdk/run/worker-test-event-writer.d.ts +13 -0
  337. package/dist/sdk/run/worker-test-event-writer.js +31 -0
  338. package/dist/vendor/testserver-sdk/container/container.d.ts +1 -6
  339. package/dist/vendor/testserver-sdk/container/container.js +1 -5
  340. package/dist/vendor/testserver-sdk/factories/build.d.ts +12 -40
  341. package/dist/vendor/testserver-sdk/factories/build.js +15 -66
  342. package/dist/vendor/testserver-sdk/factories/gateways.d.ts +1 -2
  343. package/dist/vendor/testserver-sdk/factories/index.d.ts +1 -3
  344. package/dist/vendor/testserver-sdk/factories/index.js +3 -5
  345. package/dist/vendor/testserver-sdk/index.d.ts +1 -2
  346. package/dist/vendor/testserver-sdk/index.js +5 -6
  347. package/dist/vendor/testserver-sdk/records/body.d.ts +1 -1
  348. package/dist/vendor/testserver-sdk/records/body.js +1 -1
  349. package/dist/vitest/index.d.ts +2 -1
  350. package/dist/vitest/index.js +6 -4
  351. package/dist/vitest/test-events.d.ts +6 -16
  352. package/dist/vitest/test-events.js +15 -40
  353. package/dist/vitest/test-results.d.ts +9 -31
  354. package/dist/vitest/test-results.js +34 -105
  355. package/dist/vitest/worker-index.d.ts +6 -0
  356. package/dist/vitest/worker-index.js +17 -0
  357. package/package.json +23 -9
  358. package/skills/overview.md +6 -8
  359. package/skills/read-run-output.md +21 -7
  360. package/dist/chunks/chunk-FVMQKYTT.js +0 -10
  361. package/dist/chunks/chunk-SLNKW4ZM.js +0 -40
  362. package/dist/chunks/chunk-WNIQA5J6.js +0 -19
  363. package/dist/chunks/chunk-WSIF7SR6.js +0 -10
  364. package/dist/commands/vitest/outcomes.d.ts +0 -379
  365. package/dist/commands/vitest/outcomes.js +0 -70
  366. package/dist/core/launcher-supplies.d.ts +0 -11
  367. package/dist/core/launcher-supplies.js +0 -28
  368. package/dist/core/live/terminal-command-gateway.d.ts +0 -8
  369. package/dist/core/live/terminal-command-gateway.js +0 -49
  370. package/dist/core/resource-registry.js +0 -30
  371. package/dist/extensions/github/live/world.d.ts +0 -6
  372. package/dist/extensions/github/live/world.js +0 -16
  373. package/dist/extensions/github/world.js +0 -3
  374. package/dist/extensions/story/command-tree.d.ts +0 -6
  375. package/dist/extensions/story/command-tree.js +0 -21
  376. package/dist/extensions/story/commands/app.d.ts +0 -23
  377. package/dist/extensions/story/commands/app.js +0 -5
  378. package/dist/extensions/story/commands/run/command.d.ts +0 -211
  379. package/dist/extensions/story/commands/run/command.js +0 -259
  380. package/dist/extensions/story/commands/run/metadata.js +0 -8
  381. package/dist/extensions/story/commands/run/outcomes.d.ts +0 -101
  382. package/dist/extensions/story/commands/run/outcomes.js +0 -73
  383. package/dist/extensions/story/commands/tree.d.ts +0 -2
  384. package/dist/extensions/story/commands/tree.js +0 -6
  385. package/dist/extensions/story/extension.d.ts +0 -2
  386. package/dist/extensions/story/extension.js +0 -8
  387. package/dist/extensions/testserver/live/world.d.ts +0 -8
  388. package/dist/extensions/testserver/vitest/sandbox.d.ts +0 -25
  389. package/dist/extensions/testserver/vitest/sandbox.js +0 -43
  390. package/dist/extensions/testserver/world.js +0 -4
  391. package/dist/runner/snapshot-save.d.ts +0 -56
  392. package/dist/runner/snapshot-save.js +0 -151
  393. package/dist/sdk/extension/launcher-supplies.js +0 -3
  394. package/dist/story/align.d.ts +0 -37
  395. package/dist/story/align.js +0 -39
  396. package/dist/story/command-line.d.ts +0 -24
  397. package/dist/story/command-line.js +0 -88
  398. package/dist/story/definition.d.ts +0 -59
  399. package/dist/story/definition.js +0 -9
  400. package/dist/story/diff.d.ts +0 -9
  401. package/dist/story/diff.js +0 -97
  402. package/dist/story/errors.d.ts +0 -14
  403. package/dist/story/errors.js +0 -21
  404. package/dist/story/gateways.d.ts +0 -94
  405. package/dist/story/gateways.js +0 -3
  406. package/dist/story/host.d.ts +0 -30
  407. package/dist/story/host.js +0 -97
  408. package/dist/story/index.d.ts +0 -8
  409. package/dist/story/index.js +0 -11
  410. package/dist/story/json.d.ts +0 -16
  411. package/dist/story/json.js +0 -59
  412. package/dist/story/launch.d.ts +0 -70
  413. package/dist/story/launch.js +0 -77
  414. package/dist/story/live/recording-gateway.d.ts +0 -2
  415. package/dist/story/live/recording-gateway.js +0 -103
  416. package/dist/story/orphans.d.ts +0 -35
  417. package/dist/story/orphans.js +0 -51
  418. package/dist/story/recording.d.ts +0 -62
  419. package/dist/story/recording.js +0 -97
  420. package/dist/story/report.d.ts +0 -42
  421. package/dist/story/report.js +0 -129
  422. package/dist/story/sequence.d.ts +0 -30
  423. package/dist/story/sequence.js +0 -74
  424. package/dist/story/settle.d.ts +0 -96
  425. package/dist/story/settle.js +0 -71
  426. package/dist/story/start.d.ts +0 -50
  427. package/dist/story/start.js +0 -183
  428. package/dist/vendor/testserver-sdk/factories/definition.d.ts +0 -39
  429. package/dist/vendor/testserver-sdk/factories/definition.js +0 -16
  430. package/dist/vendor/testserver-sdk/factories/definitions.d.ts +0 -169
  431. package/dist/vendor/testserver-sdk/factories/definitions.js +0 -245
  432. package/dist/vendor/testserver-sdk/seed/index.d.ts +0 -1
  433. package/dist/vendor/testserver-sdk/seed/index.js +0 -3
  434. package/dist/vendor/testserver-sdk/seed/seed.d.ts +0 -221
  435. package/dist/vendor/testserver-sdk/seed/seed.js +0 -171
  436. package/dist/vitest/find-vitest.d.ts +0 -7
  437. package/dist/vitest/find-vitest.js +0 -28
  438. package/dist/vitest/gateways.js +0 -4
  439. package/dist/vitest/plan.d.ts +0 -51
  440. /package/dist/{extensions/story/commands/run → commands/playwright}/metadata.d.ts +0 -0
  441. /package/dist/{vitest → extensions/vitest/plan}/list-output.d.ts +0 -0
  442. /package/dist/{vitest → extensions/vitest/plan}/list-output.js +0 -0
@@ -1,6 +1,6 @@
1
1
  // src/commands/runs/show/metadata.ts
2
2
  var metadata = {
3
- description: "Show a past run from its run directory: its command, a storm vitest run's test plan, config file, working directory, the branch and commit it started from, start, how long it took and how it ended; where its command ran, on this machine or in a runner sandbox, with the sandbox's name, region, vCPUs, runtime and page in the Vercel dashboard, until when the run kept it running, with its Connect page while it runs, its control plane team and project, the run's base and the runner snapshot it started from, with a branch snapshot's branch and commit, and its page, and the branch snapshot the run saved, with its page, or why it saved none; what each resource it acquired reported of itself; the run logs it has, each with the storm runs logs command that prints it; its waterfall; and each test's final result, in color on a terminal that takes it. With --failed or --test, only the selected tests, how many of all they are, and each one's errors and test output, the last 8 MiB of what it printed, failure reports included. Without an id, the newest finished run of the storm.config.ts found from the working directory, or of every config with --all; pass the id `storm vitest` or `storm exec` printed when another run may have finished since. A run's test results are saved once it finishes. Changes nothing.",
3
+ description: "Show a past run from its run directory: its command, a storm vitest or storm playwright run's test plan, config file, working directory, the branch and commit it started from, start, how long it took and how it ended; where its command ran, on this machine or in a runner sandbox, with the sandbox's name, region, vCPUs, runtime and page in the Vercel dashboard, until when the run kept it running, with its Connect page while it runs, its control plane team and project, the run's base and the runner snapshot it started from, with where it was built and its page; what each resource it acquired reported of itself; the run logs it has, each with the storm runs logs command that prints it; its waterfall; and each test's final result, in color on a terminal that takes it. With --failed or --test, only the selected tests, how many of all they are, and each one's errors and test output, the last 8 MiB of what it printed, failure reports included. Without an id, the newest finished run of the storm.config.ts found from the working directory, or of every config with --all; pass the id `storm vitest` or `storm exec` printed when another run may have finished since. A run's test results are saved once it finishes. Changes nothing.",
4
4
  summary: "Show a past run and its tests.",
5
5
  help: {
6
6
  usages: ["[<id>] [--failed] [--test <TEXT>] [--all]"],
@@ -28,33 +28,10 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
28
28
  id: z.ZodString;
29
29
  base: z.ZodString;
30
30
  built: z.ZodBoolean;
31
- branch: z.ZodNullable<z.ZodString>;
32
- head: z.ZodNullable<z.ZodString>;
31
+ builtBehind: z.ZodNullable<z.ZodNumber>;
33
32
  url: z.ZodString;
34
33
  }, z.core.$strip>>;
35
- save: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
36
- kind: z.ZodLiteral<"saved">;
37
- snapshotId: z.ZodString;
38
- base: z.ZodString;
39
- branch: z.ZodString;
40
- head: z.ZodString;
41
- ms: z.ZodNumber;
42
- sizeBytes: z.ZodNumber;
43
- entryWritten: z.ZodBoolean;
44
- url: z.ZodString;
45
- }, z.core.$strip>, z.ZodObject<{
46
- kind: z.ZodLiteral<"skipped">;
47
- reason: z.ZodLiteral<"detached-head">;
48
- }, z.core.$strip>, z.ZodObject<{
49
- kind: z.ZodLiteral<"failed">;
50
- step: z.ZodEnum<{
51
- "save-snapshot": "save-snapshot";
52
- scrub: "scrub";
53
- }>;
54
- message: z.ZodString;
55
- }, z.core.$strip>, z.ZodObject<{
56
- kind: z.ZodLiteral<"stopped">;
57
- }, z.core.$strip>], "kind">>;
34
+ uploadBytes: z.ZodNullable<z.ZodNumber>;
58
35
  }, z.core.$strip>], "kind">>;
59
36
  git: z.ZodNullable<z.ZodObject<{
60
37
  branch: z.ZodNullable<z.ZodString>;
@@ -128,6 +105,7 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
128
105
  stopped: "stopped";
129
106
  unfinished: "unfinished";
130
107
  }>;
108
+ bytes: z.ZodOptional<z.ZodNumber>;
131
109
  }, z.core.$strip>>;
132
110
  idleMs: z.ZodNumber;
133
111
  snapshot: z.ZodOptional<z.ZodEnum<{
@@ -4,6 +4,8 @@ import { defineOutcomes } from "@vercel/clinkr";
4
4
  import { z } from "zod";
5
5
  import { planSchema, timelineSchema } from "../../../run-directory/index.js";
6
6
  import { testPlanText } from "../../exec/test-plan.js";
7
+ import { megabytesText } from "../../../core/index.js";
8
+ import { builtAtText } from "../../exec/snapshot-text.js";
7
9
  import { short } from "../../exec/text.js";
8
10
  import { waterfallLines } from "../../exec/waterfall.js";
9
11
  import { commandText, exitText, exitTone, gitText, keptText, LOG_STEPS, runFactsSchema, runNotFound, runsUnreadable, scopeSchema, startedText, tookText, totalsText, totalsTone, } from "../facts.js";
@@ -31,7 +33,7 @@ const testSchema = z.object({
31
33
  output: z.object({ text: z.string(), droppedChars: z.number() }).nullable(),
32
34
  });
33
35
  const shownSchema = runFactsSchema.extend({
34
- /** A `storm vitest` run's test plan, as its `ran` result carried it; null for a run that counted no tests, such as `storm exec`'s, or when unknown. */
36
+ /** A `storm vitest` or `storm playwright` run's test plan, as its `ran` result carried it; null for a run that counted no tests, such as `storm exec`'s, or when unknown. */
35
37
  plan: planSchema.nullable(),
36
38
  /** Whether the run finished, so its test results were saved. */
37
39
  finished: z.boolean(),
@@ -205,9 +207,10 @@ function lineText(line, p) {
205
207
  return line.replace(URL_PATTERN, (url) => p.tone("accent", url));
206
208
  }
207
209
  /**
208
- * Where the run's command ran: on this machine, or in a runner sandbox, with its page in the Vercel dashboard, until
209
- * when the run kept it running, the control plane project it ran in, the run's base and the runner snapshot it started
210
- * from, which the run's changes went on top of, with its page. None when unknown.
210
+ * Where the command ran: on this machine, or in a runner sandbox, with its page in the Vercel dashboard, until
211
+ * when the run kept it running, the control plane project it ran in, the run's merge-base and the runner snapshot it
212
+ * started from, which the run's changes went on top of, with where it was built and its page, and the upload's size.
213
+ * None when unknown.
211
214
  */
212
215
  function whereRows(shown) {
213
216
  const { where, ended } = shown;
@@ -227,45 +230,29 @@ function whereRows(shown) {
227
230
  ...(where.sandboxUrl === null ? [] : [["Sandbox page", where.sandboxUrl]]),
228
231
  ...keptRows(shown),
229
232
  ["Vercel project", `${where.team}/${where.project}`],
230
- ["Base", `${short(where.base)}, HEAD's merge-base with ${where.baseRef}`],
233
+ ["Merge-base", `${short(where.base)}, of HEAD and ${where.baseRef}`],
231
234
  ...(snapshot === null
232
235
  ? []
233
236
  : [
234
237
  [
235
238
  "Snapshot",
236
239
  [
237
- `${snapshot.id} of ${short(snapshot.base)}, ${snapshot.built ? "built" : "reused"}${snapshot.branch === null || snapshot.head === null ? "" : `, branch ${snapshot.branch} at ${short(snapshot.head)}`}`,
240
+ `${snapshot.id} of ${short(snapshot.base)}, ${snapshot.built ? "built" : "reused"}`,
241
+ ...snapshotCommitLines(snapshot, where.base),
238
242
  ` ${snapshot.url}`,
239
243
  ],
240
244
  ],
241
245
  ]),
242
- ...saveRows(where.save),
246
+ ...(where.uploadBytes === null ? [] : [["Upload", megabytesText(where.uploadBytes)]]),
243
247
  ];
244
248
  }
245
- /** Each step of a branch snapshot's save, as a person names it. */
246
- const SAVE_STEPS = { scrub: "scrub", "save-snapshot": "save" };
247
- /** The row for the branch snapshot the run saved the runner sandbox as, or why it didn't; none without the flag. */
248
- function saveRows(save) {
249
- if (save === null)
250
- return [];
251
- switch (save.kind) {
252
- case "saved":
253
- return [
254
- [
255
- "Saved",
256
- [
257
- `${save.snapshotId} of ${short(save.base)}, branch ${save.branch} at ${short(save.head)}${save.entryWritten ? "" : ", not in the cache"}`,
258
- ` ${save.url}`,
259
- ],
260
- ],
261
- ];
262
- case "skipped":
263
- return [["Saved", { text: "nothing: HEAD was detached", tone: "muted" }]];
264
- case "failed":
265
- return [["Saved", { text: `nothing: the ${SAVE_STEPS[save.step]} failed: ${save.message}`, tone: "muted" }]];
266
- case "stopped":
267
- return [["Saved", { text: "nothing: the run stopped", tone: "muted" }]];
268
- }
249
+ /**
250
+ * The line that says where a runner snapshot was built, in commits. Whether it was built at the merge-base is compared
251
+ * with the record's own merge-base.
252
+ */
253
+ function snapshotCommitLines(snapshot, mergeBase) {
254
+ const { base, builtBehind } = snapshot;
255
+ return [` ${builtAtText({ base, builtBehind, mergeBase })}`];
269
256
  }
270
257
  /**
271
258
  * The row for the runner sandbox the run kept running, if it did: until when, in success while it still runs, with its
@@ -0,0 +1,501 @@
1
+ import { z } from "zod";
2
+ import { RUN_CLEANUP } from "../../exec/cleanup.ts";
3
+ /**
4
+ * Builds a base snapshot the runner snapshot cache lacks, with no run: at the merge-base, or at the commit `--base`
5
+ * names. The runner module checks the build on
6
+ * this machine (`prepareSnapshotBuild`), then builds it in its own sandbox scope (`buildSnapshots`), which stops and
7
+ * deletes every sandbox however it ends. This file loads the config file and the runner recipe, mints the credential
8
+ * through the credential launcher resolver, reads the runner secrets, shows the runner's events as a run's plain
9
+ * progress lines, and words the outcome. It refuses as a run does, in a run's order: `invalid_config`, then
10
+ * `missing_runner`, `missing_target` and `runner_secrets_invalid`, then the local checks' refusals and `ref_not_found`,
11
+ * all before it mints. Every refusal and line shows the runner secrets' values as `<token>`.
12
+ */
13
+ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
14
+ full: z.ZodDefault<z.ZodBoolean>;
15
+ base: z.ZodOptional<z.ZodString>;
16
+ scope: z.ZodOptional<z.ZodString>;
17
+ project: z.ZodOptional<z.ZodString>;
18
+ }, z.core.$strip>, import("@vercel/clinkr").Outcomes<{
19
+ built: z.ZodObject<{
20
+ configFile: z.ZodNullable<z.ZodString>;
21
+ recipe: z.ZodString;
22
+ team: z.ZodString;
23
+ project: z.ZodString;
24
+ head: z.ZodString;
25
+ base: z.ZodString;
26
+ baseRef: z.ZodString;
27
+ uncommitted: z.ZodNullable<z.ZodBoolean>;
28
+ atMergeBase: z.ZodNullable<z.ZodBoolean>;
29
+ snapshot: z.ZodObject<{
30
+ snapshotId: z.ZodString;
31
+ base: z.ZodString;
32
+ expiresAt: z.ZodString;
33
+ }, z.core.$strip>;
34
+ ms: z.ZodNumber;
35
+ sizeBytes: z.ZodNumber;
36
+ cleanup: z.ZodType<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts>>;
37
+ }, z.core.$strip>;
38
+ upToDate: z.ZodObject<{
39
+ configFile: z.ZodNullable<z.ZodString>;
40
+ recipe: z.ZodString;
41
+ team: z.ZodString;
42
+ project: z.ZodString;
43
+ head: z.ZodString;
44
+ base: z.ZodString;
45
+ baseRef: z.ZodString;
46
+ uncommitted: z.ZodNullable<z.ZodBoolean>;
47
+ atMergeBase: z.ZodNullable<z.ZodBoolean>;
48
+ snapshot: z.ZodObject<{
49
+ snapshotId: z.ZodString;
50
+ base: z.ZodString;
51
+ expiresAt: z.ZodString;
52
+ }, z.core.$strip>;
53
+ }, z.core.$strip>;
54
+ }, {
55
+ built: unknown;
56
+ upToDate: unknown;
57
+ }, {
58
+ invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
59
+ file: string;
60
+ problems: {
61
+ key: string | null;
62
+ location: {
63
+ line: number;
64
+ column: number | null;
65
+ } | null;
66
+ problem: string;
67
+ }[];
68
+ }]>;
69
+ missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
70
+ configFile: string | null;
71
+ }]>;
72
+ missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
73
+ missing: ("project" | "scope")[];
74
+ }]>;
75
+ runnerSecretsInvalid: import("@vercel/clinkr").SharedError<"runner_secrets_invalid", [data: {
76
+ variables: {
77
+ name: string;
78
+ problem: "missing" | "multiline" | "short";
79
+ }[];
80
+ minLength: number;
81
+ configFile: string | null;
82
+ }]>;
83
+ noBaseRef: import("@vercel/clinkr").SharedError<"no_base_ref", [data: {
84
+ refs: {
85
+ ref: string;
86
+ reason: "missing" | "unrelated";
87
+ }[];
88
+ }]>;
89
+ submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
90
+ paths: string[];
91
+ }]>;
92
+ mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
93
+ team: string;
94
+ project: string;
95
+ cause: string;
96
+ fix: string;
97
+ }]>;
98
+ tokenRequestFailed: import("@vercel/clinkr").SharedError<"token_request_failed", [data: {
99
+ cause: "request-failed" | "variables-missing";
100
+ missing: ("ACTIONS_ID_TOKEN_REQUEST_TOKEN" | "ACTIONS_ID_TOKEN_REQUEST_URL")[] | null;
101
+ status: number | null;
102
+ said: string | null;
103
+ detail: string;
104
+ fix: string;
105
+ }]>;
106
+ runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
107
+ failure: {
108
+ kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
109
+ label: string;
110
+ exitCode: number | null;
111
+ tail: string[];
112
+ } | {
113
+ kind: "sandbox-api-failed";
114
+ operation: string;
115
+ status: number | null;
116
+ message: string;
117
+ } | {
118
+ kind: "checkout-failed";
119
+ message: string;
120
+ command: string | null;
121
+ } | {
122
+ kind: "credential-claims-missing";
123
+ team: string;
124
+ project: string;
125
+ };
126
+ cleanup: import("../../exec/cleanup.ts").StormCleanupFacts;
127
+ }]>;
128
+ refNotFound: z.ZodObject<{
129
+ ref: z.ZodString;
130
+ }, z.core.$strip>;
131
+ snapshotNotCached: z.ZodObject<{
132
+ snapshot: z.ZodObject<{
133
+ snapshotId: z.ZodString;
134
+ base: z.ZodString;
135
+ expiresAt: z.ZodString;
136
+ }, z.core.$strip>;
137
+ path: z.ZodString;
138
+ message: z.ZodString;
139
+ cleanup: z.ZodType<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts>>;
140
+ }, z.core.$strip>;
141
+ }, {
142
+ readonly invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
143
+ file: string;
144
+ problems: {
145
+ key: string | null;
146
+ location: {
147
+ line: number;
148
+ column: number | null;
149
+ } | null;
150
+ problem: string;
151
+ }[];
152
+ }]>;
153
+ readonly missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
154
+ configFile: string | null;
155
+ }]>;
156
+ readonly missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
157
+ missing: ("project" | "scope")[];
158
+ }]>;
159
+ readonly runnerSecretsInvalid: import("@vercel/clinkr").SharedError<"runner_secrets_invalid", [data: {
160
+ variables: {
161
+ name: string;
162
+ problem: "missing" | "multiline" | "short";
163
+ }[];
164
+ minLength: number;
165
+ configFile: string | null;
166
+ }]>;
167
+ readonly noBaseRef: import("@vercel/clinkr").SharedError<"no_base_ref", [data: {
168
+ refs: {
169
+ ref: string;
170
+ reason: "missing" | "unrelated";
171
+ }[];
172
+ }]>;
173
+ readonly submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
174
+ paths: string[];
175
+ }]>;
176
+ readonly mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
177
+ team: string;
178
+ project: string;
179
+ cause: string;
180
+ fix: string;
181
+ }]>;
182
+ readonly tokenRequestFailed: import("@vercel/clinkr").SharedError<"token_request_failed", [data: {
183
+ cause: "request-failed" | "variables-missing";
184
+ missing: ("ACTIONS_ID_TOKEN_REQUEST_TOKEN" | "ACTIONS_ID_TOKEN_REQUEST_URL")[] | null;
185
+ status: number | null;
186
+ said: string | null;
187
+ detail: string;
188
+ fix: string;
189
+ }]>;
190
+ readonly runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
191
+ failure: {
192
+ kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
193
+ label: string;
194
+ exitCode: number | null;
195
+ tail: string[];
196
+ } | {
197
+ kind: "sandbox-api-failed";
198
+ operation: string;
199
+ status: number | null;
200
+ message: string;
201
+ } | {
202
+ kind: "checkout-failed";
203
+ message: string;
204
+ command: string | null;
205
+ } | {
206
+ kind: "credential-claims-missing";
207
+ team: string;
208
+ project: string;
209
+ };
210
+ cleanup: import("../../exec/cleanup.ts").StormCleanupFacts;
211
+ }]>;
212
+ readonly refNotFound: {
213
+ readonly exitCode: 1;
214
+ readonly description: "--base names no commit in this clone: storm resolves it from local refs only, and never fetches.";
215
+ readonly schema: z.ZodObject<{
216
+ ref: z.ZodString;
217
+ }, z.core.$strip>;
218
+ readonly render: ({ ref }: {
219
+ readonly ref: string;
220
+ }) => {
221
+ message: string;
222
+ next: {
223
+ type: "text";
224
+ text: string;
225
+ }[];
226
+ };
227
+ };
228
+ readonly snapshotNotCached: {
229
+ readonly exitCode: 1;
230
+ readonly description: "It built and saved the base snapshot, but couldn't write its cache entry, so no run finds it.";
231
+ readonly schema: z.ZodObject<{
232
+ snapshot: z.ZodObject<{
233
+ snapshotId: z.ZodString;
234
+ base: z.ZodString;
235
+ expiresAt: z.ZodString;
236
+ }, z.core.$strip>;
237
+ path: z.ZodString;
238
+ message: z.ZodString;
239
+ cleanup: z.ZodType<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts>>;
240
+ }, z.core.$strip>;
241
+ readonly render: (facts: {
242
+ readonly snapshot: {
243
+ snapshotId: string;
244
+ base: string;
245
+ expiresAt: string;
246
+ };
247
+ readonly path: string;
248
+ readonly message: string;
249
+ readonly cleanup: z.output<typeof RUN_CLEANUP.schema>;
250
+ }) => {
251
+ message: string;
252
+ rows: import("@vercel/clinkr").Row[];
253
+ next: {
254
+ type: "text";
255
+ text: string;
256
+ }[];
257
+ };
258
+ };
259
+ }>, import("@vercel/clinkr").OutcomeOf<import("@vercel/clinkr").Outcomes<{
260
+ built: z.ZodObject<{
261
+ configFile: z.ZodNullable<z.ZodString>;
262
+ recipe: z.ZodString;
263
+ team: z.ZodString;
264
+ project: z.ZodString;
265
+ head: z.ZodString;
266
+ base: z.ZodString;
267
+ baseRef: z.ZodString;
268
+ uncommitted: z.ZodNullable<z.ZodBoolean>;
269
+ atMergeBase: z.ZodNullable<z.ZodBoolean>;
270
+ snapshot: z.ZodObject<{
271
+ snapshotId: z.ZodString;
272
+ base: z.ZodString;
273
+ expiresAt: z.ZodString;
274
+ }, z.core.$strip>;
275
+ ms: z.ZodNumber;
276
+ sizeBytes: z.ZodNumber;
277
+ cleanup: z.ZodType<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts>>;
278
+ }, z.core.$strip>;
279
+ upToDate: z.ZodObject<{
280
+ configFile: z.ZodNullable<z.ZodString>;
281
+ recipe: z.ZodString;
282
+ team: z.ZodString;
283
+ project: z.ZodString;
284
+ head: z.ZodString;
285
+ base: z.ZodString;
286
+ baseRef: z.ZodString;
287
+ uncommitted: z.ZodNullable<z.ZodBoolean>;
288
+ atMergeBase: z.ZodNullable<z.ZodBoolean>;
289
+ snapshot: z.ZodObject<{
290
+ snapshotId: z.ZodString;
291
+ base: z.ZodString;
292
+ expiresAt: z.ZodString;
293
+ }, z.core.$strip>;
294
+ }, z.core.$strip>;
295
+ }, {
296
+ built: unknown;
297
+ upToDate: unknown;
298
+ }, {
299
+ invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
300
+ file: string;
301
+ problems: {
302
+ key: string | null;
303
+ location: {
304
+ line: number;
305
+ column: number | null;
306
+ } | null;
307
+ problem: string;
308
+ }[];
309
+ }]>;
310
+ missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
311
+ configFile: string | null;
312
+ }]>;
313
+ missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
314
+ missing: ("project" | "scope")[];
315
+ }]>;
316
+ runnerSecretsInvalid: import("@vercel/clinkr").SharedError<"runner_secrets_invalid", [data: {
317
+ variables: {
318
+ name: string;
319
+ problem: "missing" | "multiline" | "short";
320
+ }[];
321
+ minLength: number;
322
+ configFile: string | null;
323
+ }]>;
324
+ noBaseRef: import("@vercel/clinkr").SharedError<"no_base_ref", [data: {
325
+ refs: {
326
+ ref: string;
327
+ reason: "missing" | "unrelated";
328
+ }[];
329
+ }]>;
330
+ submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
331
+ paths: string[];
332
+ }]>;
333
+ mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
334
+ team: string;
335
+ project: string;
336
+ cause: string;
337
+ fix: string;
338
+ }]>;
339
+ tokenRequestFailed: import("@vercel/clinkr").SharedError<"token_request_failed", [data: {
340
+ cause: "request-failed" | "variables-missing";
341
+ missing: ("ACTIONS_ID_TOKEN_REQUEST_TOKEN" | "ACTIONS_ID_TOKEN_REQUEST_URL")[] | null;
342
+ status: number | null;
343
+ said: string | null;
344
+ detail: string;
345
+ fix: string;
346
+ }]>;
347
+ runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
348
+ failure: {
349
+ kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
350
+ label: string;
351
+ exitCode: number | null;
352
+ tail: string[];
353
+ } | {
354
+ kind: "sandbox-api-failed";
355
+ operation: string;
356
+ status: number | null;
357
+ message: string;
358
+ } | {
359
+ kind: "checkout-failed";
360
+ message: string;
361
+ command: string | null;
362
+ } | {
363
+ kind: "credential-claims-missing";
364
+ team: string;
365
+ project: string;
366
+ };
367
+ cleanup: import("../../exec/cleanup.ts").StormCleanupFacts;
368
+ }]>;
369
+ refNotFound: z.ZodObject<{
370
+ ref: z.ZodString;
371
+ }, z.core.$strip>;
372
+ snapshotNotCached: z.ZodObject<{
373
+ snapshot: z.ZodObject<{
374
+ snapshotId: z.ZodString;
375
+ base: z.ZodString;
376
+ expiresAt: z.ZodString;
377
+ }, z.core.$strip>;
378
+ path: z.ZodString;
379
+ message: z.ZodString;
380
+ cleanup: z.ZodType<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts>>;
381
+ }, z.core.$strip>;
382
+ }, {
383
+ readonly invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
384
+ file: string;
385
+ problems: {
386
+ key: string | null;
387
+ location: {
388
+ line: number;
389
+ column: number | null;
390
+ } | null;
391
+ problem: string;
392
+ }[];
393
+ }]>;
394
+ readonly missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
395
+ configFile: string | null;
396
+ }]>;
397
+ readonly missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
398
+ missing: ("project" | "scope")[];
399
+ }]>;
400
+ readonly runnerSecretsInvalid: import("@vercel/clinkr").SharedError<"runner_secrets_invalid", [data: {
401
+ variables: {
402
+ name: string;
403
+ problem: "missing" | "multiline" | "short";
404
+ }[];
405
+ minLength: number;
406
+ configFile: string | null;
407
+ }]>;
408
+ readonly noBaseRef: import("@vercel/clinkr").SharedError<"no_base_ref", [data: {
409
+ refs: {
410
+ ref: string;
411
+ reason: "missing" | "unrelated";
412
+ }[];
413
+ }]>;
414
+ readonly submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
415
+ paths: string[];
416
+ }]>;
417
+ readonly mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
418
+ team: string;
419
+ project: string;
420
+ cause: string;
421
+ fix: string;
422
+ }]>;
423
+ readonly tokenRequestFailed: import("@vercel/clinkr").SharedError<"token_request_failed", [data: {
424
+ cause: "request-failed" | "variables-missing";
425
+ missing: ("ACTIONS_ID_TOKEN_REQUEST_TOKEN" | "ACTIONS_ID_TOKEN_REQUEST_URL")[] | null;
426
+ status: number | null;
427
+ said: string | null;
428
+ detail: string;
429
+ fix: string;
430
+ }]>;
431
+ readonly runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
432
+ failure: {
433
+ kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
434
+ label: string;
435
+ exitCode: number | null;
436
+ tail: string[];
437
+ } | {
438
+ kind: "sandbox-api-failed";
439
+ operation: string;
440
+ status: number | null;
441
+ message: string;
442
+ } | {
443
+ kind: "checkout-failed";
444
+ message: string;
445
+ command: string | null;
446
+ } | {
447
+ kind: "credential-claims-missing";
448
+ team: string;
449
+ project: string;
450
+ };
451
+ cleanup: import("../../exec/cleanup.ts").StormCleanupFacts;
452
+ }]>;
453
+ readonly refNotFound: {
454
+ readonly exitCode: 1;
455
+ readonly description: "--base names no commit in this clone: storm resolves it from local refs only, and never fetches.";
456
+ readonly schema: z.ZodObject<{
457
+ ref: z.ZodString;
458
+ }, z.core.$strip>;
459
+ readonly render: ({ ref }: {
460
+ readonly ref: string;
461
+ }) => {
462
+ message: string;
463
+ next: {
464
+ type: "text";
465
+ text: string;
466
+ }[];
467
+ };
468
+ };
469
+ readonly snapshotNotCached: {
470
+ readonly exitCode: 1;
471
+ readonly description: "It built and saved the base snapshot, but couldn't write its cache entry, so no run finds it.";
472
+ readonly schema: z.ZodObject<{
473
+ snapshot: z.ZodObject<{
474
+ snapshotId: z.ZodString;
475
+ base: z.ZodString;
476
+ expiresAt: z.ZodString;
477
+ }, z.core.$strip>;
478
+ path: z.ZodString;
479
+ message: z.ZodString;
480
+ cleanup: z.ZodType<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../exec/cleanup.ts").StormCleanupFacts, import("../../exec/cleanup.ts").StormCleanupFacts>>;
481
+ }, z.core.$strip>;
482
+ readonly render: (facts: {
483
+ readonly snapshot: {
484
+ snapshotId: string;
485
+ base: string;
486
+ expiresAt: string;
487
+ };
488
+ readonly path: string;
489
+ readonly message: string;
490
+ readonly cleanup: z.output<typeof RUN_CLEANUP.schema>;
491
+ }) => {
492
+ message: string;
493
+ rows: import("@vercel/clinkr").Row[];
494
+ next: {
495
+ type: "text";
496
+ text: string;
497
+ }[];
498
+ };
499
+ };
500
+ }>>, import("../../../context.ts").StormApp, false>;
501
+ export default _default;