@cnc-tools/storm 0.10.0 → 0.12.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 (461) hide show
  1. package/dist/bin/storm.js +12 -9
  2. package/dist/build-info.js +1 -1
  3. package/dist/chunks/{chunk-YF3ICDBY.js → chunk-43MWZLJR.js} +1 -1
  4. package/dist/chunks/chunk-4XT5RC5T.js +98 -0
  5. package/dist/chunks/chunk-7D6LC5JY.js +340 -0
  6. package/dist/chunks/{chunk-WF4KJ7YG.js → chunk-BW2ADH7U.js} +1 -1
  7. package/dist/chunks/chunk-FK4RLDEK.js +40 -0
  8. package/dist/chunks/chunk-FSP3SJ35.js +1429 -0
  9. package/dist/chunks/{chunk-J6ZNYUDV.js → chunk-GQIL3AHY.js} +2 -3
  10. package/dist/chunks/chunk-GSC6SRTW.js +27 -0
  11. package/dist/chunks/chunk-ISGQJIQM.js +852 -0
  12. package/dist/chunks/chunk-IYM44FUX.js +1461 -0
  13. package/dist/chunks/{chunk-XHJGHJBW.js → chunk-LQKNI3EG.js} +38 -279
  14. package/dist/chunks/chunk-NMVODY3P.js +19 -0
  15. package/dist/chunks/{chunk-VJQLMGOH.js → chunk-ODQHQJLE.js} +2761 -3699
  16. package/dist/chunks/chunk-RYRJNHL7.js +55 -0
  17. package/dist/chunks/chunk-SXW6XN4R.js +161 -0
  18. package/dist/chunks/{chunk-OVXD7GES.js → chunk-T6AZIDZD.js} +43 -396
  19. package/dist/chunks/chunk-TEEZL3GA.js +851 -0
  20. package/dist/chunks/chunk-TMQQYHUX.js +80 -0
  21. package/dist/chunks/{chunk-AKKNF3WZ.js → chunk-U7M3ZB3Z.js} +565 -595
  22. package/dist/chunks/{chunk-JQ2HK4RN.js → chunk-Y3BUNNRG.js} +234 -57
  23. package/dist/chunks/{chunk-ZJ2USLAT.js → chunk-YM6TZV4L.js} +394 -416
  24. package/dist/chunks/chunk-YT5OROR7.js +271 -0
  25. package/dist/chunks/{live-app-RIJM3QFD.js → live-app-AZ5N5HBD.js} +36 -12
  26. package/dist/command-tree.d.ts +4 -1
  27. package/dist/command-tree.js +4 -1
  28. package/dist/commands/exec/cleanup.d.ts +3 -3
  29. package/dist/commands/exec/cleanup.js +6 -2
  30. package/dist/commands/exec/command.d.ts +56 -17
  31. package/dist/commands/exec/command.js +51 -39
  32. package/dist/commands/exec/define-run-command.d.ts +752 -0
  33. package/dist/commands/exec/define-run-command.js +58 -0
  34. package/dist/commands/exec/driver-plan.d.ts +30 -0
  35. package/dist/commands/exec/driver-plan.js +44 -0
  36. package/dist/commands/exec/driver-refusals.d.ts +89 -0
  37. package/dist/commands/exec/driver-refusals.js +65 -0
  38. package/dist/commands/exec/exec-words.d.ts +5 -0
  39. package/dist/commands/exec/exec-words.js +31 -0
  40. package/dist/commands/exec/job-summary.d.ts +1 -1
  41. package/dist/commands/exec/job-summary.js +1 -1
  42. package/dist/commands/exec/live-view.js +58 -28
  43. package/dist/commands/exec/mint-failed.js +5 -5
  44. package/dist/commands/exec/outcomes.d.ts +72 -10
  45. package/dist/commands/exec/outcomes.js +38 -10
  46. package/dist/commands/exec/plan-run.d.ts +3 -5
  47. package/dist/commands/exec/plan-run.js +3 -3
  48. package/dist/commands/exec/progress.d.ts +35 -15
  49. package/dist/commands/exec/progress.js +82 -57
  50. package/dist/commands/exec/resource-flags.d.ts +10 -3
  51. package/dist/commands/exec/resource-flags.js +25 -14
  52. package/dist/commands/exec/resource-refusals.d.ts +2 -2
  53. package/dist/commands/exec/resource-refusals.js +10 -10
  54. package/dist/commands/exec/run-bin.d.ts +35 -0
  55. package/dist/commands/exec/run-bin.js +32 -0
  56. package/dist/commands/exec/run-command.d.ts +85 -20
  57. package/dist/commands/exec/run-command.js +142 -238
  58. package/dist/commands/exec/run-metadata.d.ts +29 -17
  59. package/dist/commands/exec/run-metadata.js +38 -16
  60. package/dist/commands/exec/snapshot-text.d.ts +40 -0
  61. package/dist/commands/exec/snapshot-text.js +112 -0
  62. package/dist/commands/exec/test-plan.d.ts +3 -37
  63. package/dist/commands/exec/test-plan.js +11 -28
  64. package/dist/commands/exec/tests-summary.d.ts +21 -12
  65. package/dist/commands/exec/tests-summary.js +67 -39
  66. package/dist/commands/exec/text.d.ts +5 -0
  67. package/dist/commands/exec/text.js +7 -0
  68. package/dist/commands/exec/view.js +22 -13
  69. package/dist/commands/exec/waterfall.d.ts +3 -1
  70. package/dist/commands/exec/waterfall.js +20 -3
  71. package/dist/commands/exec/worker-chart.d.ts +19 -11
  72. package/dist/commands/exec/worker-chart.js +66 -36
  73. package/dist/commands/playwright/command.d.ts +746 -0
  74. package/dist/commands/playwright/command.js +31 -0
  75. package/dist/commands/playwright/metadata.d.ts +4 -0
  76. package/dist/commands/playwright/metadata.js +8 -0
  77. package/dist/commands/runs/facts.d.ts +22 -8
  78. package/dist/commands/runs/facts.js +19 -9
  79. package/dist/commands/runs/list/command.d.ts +34 -8
  80. package/dist/commands/runs/list/command.js +18 -13
  81. package/dist/commands/runs/list/outcomes.d.ts +17 -4
  82. package/dist/commands/runs/logs/command.js +20 -14
  83. package/dist/commands/runs/logs/outcomes.js +1 -1
  84. package/dist/commands/runs/past-run.d.ts +3 -27
  85. package/dist/commands/runs/past-run.js +3 -37
  86. package/dist/commands/runs/show/command.d.ts +36 -8
  87. package/dist/commands/runs/show/command.js +53 -33
  88. package/dist/commands/runs/show/metadata.js +1 -1
  89. package/dist/commands/runs/show/outcomes.d.ts +18 -4
  90. package/dist/commands/runs/show/outcomes.js +37 -16
  91. package/dist/commands/snapshots/build/command.d.ts +898 -0
  92. package/dist/commands/snapshots/build/command.js +511 -0
  93. package/dist/commands/snapshots/build/metadata.d.ts +28 -0
  94. package/dist/commands/snapshots/build/metadata.js +34 -0
  95. package/dist/commands/snapshots/build/outcomes.d.ts +484 -0
  96. package/dist/commands/snapshots/build/outcomes.js +322 -0
  97. package/dist/commands/snapshots/list/command.d.ts +272 -0
  98. package/dist/commands/snapshots/list/command.js +305 -0
  99. package/dist/commands/snapshots/list/metadata.d.ts +16 -0
  100. package/dist/commands/snapshots/list/metadata.js +24 -0
  101. package/dist/commands/snapshots/list/outcomes.d.ts +183 -0
  102. package/dist/commands/snapshots/list/outcomes.js +257 -0
  103. package/dist/commands/snapshots/metadata.d.ts +3 -0
  104. package/dist/commands/snapshots/metadata.js +7 -0
  105. package/dist/commands/vitest/command.d.ts +267 -298
  106. package/dist/commands/vitest/command.js +23 -174
  107. package/dist/commands/vitest/metadata.js +1 -1
  108. package/dist/config/credential-resolver.d.ts +6 -3
  109. package/dist/config/credential-resolver.js +6 -5
  110. package/dist/config-file/define.d.ts +1 -1
  111. package/dist/context.d.ts +44 -24
  112. package/dist/context.js +20 -13
  113. package/dist/core/before-run.d.ts +7 -6
  114. package/dist/core/before-run.js +9 -9
  115. package/dist/core/definition-lookup.d.ts +22 -0
  116. package/dist/core/definition-lookup.js +35 -0
  117. package/dist/core/drivers-of.d.ts +23 -0
  118. package/dist/core/drivers-of.js +13 -0
  119. package/dist/core/events.d.ts +6 -22
  120. package/dist/core/gateways.d.ts +38 -170
  121. package/dist/core/index.d.ts +13 -12
  122. package/dist/core/index.js +12 -11
  123. package/dist/core/launcher-context.d.ts +11 -0
  124. package/dist/core/launcher-context.js +31 -0
  125. package/dist/core/live/package-bin-gateway.d.ts +6 -0
  126. package/dist/core/live/package-bin-gateway.js +24 -0
  127. package/dist/core/package-bin.d.ts +7 -0
  128. package/dist/core/package-bin.js +30 -0
  129. package/dist/core/presentations.d.ts +5 -4
  130. package/dist/core/presentations.js +9 -9
  131. package/dist/core/resource-definition-set.d.ts +39 -0
  132. package/dist/core/resource-definition-set.js +31 -0
  133. package/dist/core/resource-reports.d.ts +38 -5
  134. package/dist/core/resource-reports.js +47 -17
  135. package/dist/core/resource.d.ts +4 -4
  136. package/dist/core/resources.d.ts +8 -7
  137. package/dist/core/resources.js +11 -13
  138. package/dist/core/run-state.d.ts +27 -16
  139. package/dist/core/run-state.js +50 -18
  140. package/dist/core/run.d.ts +42 -54
  141. package/dist/core/run.js +72 -122
  142. package/dist/core/setup-phases.d.ts +14 -0
  143. package/dist/core/setup-phases.js +24 -0
  144. package/dist/core/state-directory.d.ts +2 -2
  145. package/dist/core/state-directory.js +3 -3
  146. package/dist/core/timeline.d.ts +4 -2
  147. package/dist/core/timeline.js +11 -4
  148. package/dist/credential/events.d.ts +20 -0
  149. package/dist/credential/events.js +4 -0
  150. package/dist/credential/index.d.ts +2 -1
  151. package/dist/credential/index.js +6 -5
  152. package/dist/credential/source.d.ts +38 -26
  153. package/dist/credential/source.js +25 -34
  154. package/dist/extension-commands.d.ts +12 -6
  155. package/dist/extension-commands.js +16 -13
  156. package/dist/extensions/github/{world.d.ts → context.d.ts} +1 -1
  157. package/dist/extensions/github/context.js +3 -0
  158. package/dist/extensions/github/definition.d.ts +1 -1
  159. package/dist/extensions/github/definition.js +3 -3
  160. package/dist/extensions/github/extension.d.ts +1 -1
  161. package/dist/extensions/github/index.d.ts +2 -2
  162. package/dist/extensions/github/index.js +4 -4
  163. package/dist/extensions/github/lifecycle.d.ts +3 -3
  164. package/dist/extensions/github/lifecycle.js +14 -14
  165. package/dist/extensions/github/live/context.d.ts +6 -0
  166. package/dist/extensions/github/live/context.js +16 -0
  167. package/dist/extensions/github/resource.d.ts +1 -1
  168. package/dist/extensions/playwright/driver.d.ts +8 -0
  169. package/dist/extensions/playwright/driver.js +60 -0
  170. package/dist/extensions/playwright/extension.d.ts +2 -0
  171. package/dist/extensions/playwright/extension.js +12 -0
  172. package/dist/extensions/playwright/plan/gateways.d.ts +62 -0
  173. package/dist/extensions/playwright/plan/gateways.js +4 -0
  174. package/dist/extensions/playwright/plan/list-output.d.ts +26 -0
  175. package/dist/extensions/playwright/plan/list-output.js +101 -0
  176. package/dist/extensions/playwright/plan/live/list-gateway.d.ts +15 -0
  177. package/dist/extensions/playwright/plan/live/list-gateway.js +100 -0
  178. package/dist/extensions/playwright/plan/plan.d.ts +44 -0
  179. package/dist/extensions/playwright/plan/plan.js +53 -0
  180. package/dist/extensions/testserver/command-tree.d.ts +2 -2
  181. package/dist/extensions/testserver/command-tree.js +2 -3
  182. package/dist/extensions/testserver/commands/app.d.ts +7 -7
  183. package/dist/extensions/testserver/commands/pool/create/command.d.ts +5 -5
  184. package/dist/extensions/testserver/commands/pool/create/command.js +17 -12
  185. package/dist/extensions/testserver/commands/pool/list/command.js +8 -5
  186. package/dist/extensions/testserver/{world.d.ts → context.d.ts} +1 -1
  187. package/dist/extensions/testserver/context.js +4 -0
  188. package/dist/extensions/testserver/definition.d.ts +2 -2
  189. package/dist/extensions/testserver/definition.js +8 -7
  190. package/dist/extensions/testserver/events.d.ts +1 -1
  191. package/dist/extensions/testserver/extension.d.ts +4 -3
  192. package/dist/extensions/testserver/extension.js +33 -20
  193. package/dist/extensions/testserver/index.d.ts +2 -2
  194. package/dist/extensions/testserver/index.js +2 -2
  195. package/dist/extensions/testserver/lifecycle.d.ts +6 -5
  196. package/dist/extensions/testserver/lifecycle.js +9 -8
  197. package/dist/extensions/testserver/live/context.d.ts +8 -0
  198. package/dist/extensions/testserver/live/{world.js → context.js} +6 -7
  199. package/dist/extensions/testserver/options/rules.d.ts +3 -3
  200. package/dist/extensions/testserver/options/rules.js +5 -4
  201. package/dist/extensions/testserver/options/sandboxes.d.ts +3 -2
  202. package/dist/extensions/testserver/options/sandboxes.js +3 -2
  203. package/dist/extensions/testserver/playwright/index.d.ts +33 -0
  204. package/dist/extensions/testserver/playwright/index.js +43 -0
  205. package/dist/extensions/testserver/presentation.d.ts +4 -4
  206. package/dist/extensions/testserver/presentation.js +7 -7
  207. package/dist/extensions/testserver/progress.d.ts +3 -3
  208. package/dist/extensions/testserver/progress.js +3 -3
  209. package/dist/extensions/testserver/provision.d.ts +2 -2
  210. package/dist/extensions/testserver/provision.js +10 -10
  211. package/dist/extensions/testserver/resource.d.ts +2 -2
  212. package/dist/extensions/testserver/result.d.ts +2 -2
  213. package/dist/extensions/testserver/result.js +1 -1
  214. package/dist/extensions/testserver/run/connection.d.ts +1 -1
  215. package/dist/extensions/testserver/run/connection.js +3 -3
  216. package/dist/extensions/testserver/run/sandbox.d.ts +31 -0
  217. package/dist/extensions/testserver/run/sandbox.js +58 -0
  218. package/dist/extensions/testserver/run-sandbox.d.ts +2 -2
  219. package/dist/extensions/testserver/run-sandbox.js +3 -3
  220. package/dist/extensions/testserver/vercel-cli/arguments.d.ts +2 -2
  221. package/dist/extensions/testserver/vercel-cli/arguments.js +6 -6
  222. package/dist/extensions/testserver/vercel-cli/auth-config.d.ts +7 -7
  223. package/dist/extensions/testserver/vercel-cli/auth-config.js +4 -4
  224. package/dist/extensions/testserver/vercel-cli/clock.js +1 -1
  225. package/dist/extensions/testserver/vercel-cli/config-files.js +1 -1
  226. package/dist/extensions/testserver/vercel-cli/context.d.ts +1 -1
  227. package/dist/extensions/testserver/vercel-cli/context.js +2 -2
  228. package/dist/extensions/testserver/vercel-cli/entry.d.ts +1 -1
  229. package/dist/extensions/testserver/vercel-cli/entry.js +1 -1
  230. package/dist/extensions/testserver/vercel-cli/environment.d.ts +5 -5
  231. package/dist/extensions/testserver/vercel-cli/environment.js +6 -6
  232. package/dist/extensions/testserver/vercel-cli/gateways.d.ts +1 -1
  233. package/dist/extensions/testserver/vercel-cli/gateways.js +3 -3
  234. package/dist/extensions/testserver/vercel-cli/index.d.ts +1 -1
  235. package/dist/extensions/testserver/vercel-cli/index.js +8 -9
  236. package/dist/extensions/testserver/vercel-cli/invocation.d.ts +13 -12
  237. package/dist/extensions/testserver/vercel-cli/invocation.js +1 -1
  238. package/dist/extensions/testserver/vercel-cli/{driver.d.ts → invoker.d.ts} +18 -17
  239. package/dist/extensions/testserver/vercel-cli/{driver.js → invoker.js} +8 -8
  240. package/dist/extensions/testserver/vercel-cli/live/config-files.d.ts +2 -2
  241. package/dist/extensions/testserver/vercel-cli/live/config-files.js +2 -2
  242. package/dist/extensions/testserver/vercel-cli/live/process-gateway.js +1 -1
  243. package/dist/extensions/testserver/vercel-cli/report.js +2 -2
  244. package/dist/extensions/testserver/vercel-cli/verbose.js +1 -1
  245. package/dist/extensions/testserver/vitest/config.d.ts +8 -6
  246. package/dist/extensions/testserver/vitest/config.js +10 -16
  247. package/dist/extensions/testserver/vitest/container-scope.d.ts +11 -11
  248. package/dist/extensions/testserver/vitest/container-scope.js +9 -9
  249. package/dist/extensions/testserver/vitest/container-start.d.ts +6 -6
  250. package/dist/extensions/testserver/vitest/container-start.js +14 -11
  251. package/dist/extensions/testserver/vitest/diagnostics.d.ts +1 -1
  252. package/dist/extensions/testserver/vitest/fixtures.d.ts +12 -10
  253. package/dist/extensions/testserver/vitest/fixtures.js +44 -22
  254. package/dist/extensions/testserver/vitest/index.d.ts +1 -1
  255. package/dist/extensions/testserver/vitest/index.js +4 -4
  256. package/dist/extensions/testserver/vitest/types.d.ts +16 -18
  257. package/dist/extensions/testserver/vitest/types.js +2 -2
  258. package/dist/extensions/testserver/vitest/worker-sandbox.d.ts +8 -0
  259. package/dist/extensions/testserver/vitest/worker-sandbox.js +17 -0
  260. package/dist/extensions/vitest/driver.d.ts +8 -0
  261. package/dist/extensions/vitest/driver.js +62 -0
  262. package/dist/extensions/vitest/extension.d.ts +2 -0
  263. package/dist/extensions/vitest/extension.js +8 -0
  264. package/dist/{vitest → extensions/vitest/plan}/gateways.d.ts +1 -26
  265. package/dist/extensions/vitest/plan/gateways.js +3 -0
  266. package/dist/{vitest → extensions/vitest/plan}/live/list-gateway.d.ts +1 -2
  267. package/dist/{vitest → extensions/vitest/plan}/live/list-gateway.js +1 -20
  268. package/dist/extensions/vitest/plan/plan-over.d.ts +38 -0
  269. package/dist/extensions/vitest/plan/plan-over.js +31 -0
  270. package/dist/extensions/vitest/plan/plan.d.ts +24 -0
  271. package/dist/{vitest → extensions/vitest/plan}/plan.js +11 -26
  272. package/dist/extensions.d.ts +43 -30
  273. package/dist/extensions.js +50 -35
  274. package/dist/forward-sigterm.d.ts +8 -0
  275. package/dist/forward-sigterm.js +18 -0
  276. package/dist/launcher-resolvers/index.d.ts +1 -0
  277. package/dist/launcher-resolvers/index.js +2 -1
  278. package/dist/launcher-resolvers/local-services.d.ts +22 -0
  279. package/dist/launcher-resolvers/local-services.js +6 -0
  280. package/dist/live-app.js +9 -7
  281. package/dist/local-services.d.ts +11 -0
  282. package/dist/local-services.js +16 -0
  283. package/dist/playwright/index.d.ts +1 -0
  284. package/dist/playwright/index.js +4 -0
  285. package/dist/playwright/reporter.d.ts +96 -0
  286. package/dist/playwright/reporter.js +162 -0
  287. package/dist/playwright/worker-index.d.ts +7 -0
  288. package/dist/playwright/worker-index.js +20 -0
  289. package/dist/run-directory/gateways.d.ts +167 -0
  290. package/dist/run-directory/gateways.js +2 -0
  291. package/dist/run-directory/index.d.ts +8 -0
  292. package/dist/run-directory/index.js +13 -0
  293. package/dist/run-directory/plan.d.ts +35 -0
  294. package/dist/run-directory/plan.js +24 -0
  295. package/dist/run-directory/reader.d.ts +70 -0
  296. package/dist/run-directory/reader.js +51 -0
  297. package/dist/run-directory/recording.d.ts +95 -0
  298. package/dist/run-directory/recording.js +85 -0
  299. package/dist/{commands/exec → run-directory}/run-collector.d.ts +9 -8
  300. package/dist/{commands/exec → run-directory}/run-collector.js +8 -10
  301. package/dist/{core → run-directory}/run-directory.d.ts +3 -3
  302. package/dist/{core → run-directory}/run-directory.js +2 -2
  303. package/dist/{commands/exec → run-directory}/run-record.d.ts +94 -27
  304. package/dist/run-directory/run-record.js +229 -0
  305. package/dist/{commands/exec → run-directory}/timeline-facts.d.ts +5 -8
  306. package/dist/{commands/exec → run-directory}/timeline-facts.js +11 -25
  307. package/dist/runner/build-snapshots.d.ts +179 -0
  308. package/dist/runner/build-snapshots.js +235 -0
  309. package/dist/runner/context.js +2 -1
  310. package/dist/runner/events.d.ts +73 -33
  311. package/dist/runner/gateways.d.ts +30 -10
  312. package/dist/runner/index.d.ts +15 -17
  313. package/dist/runner/index.js +12 -14
  314. package/dist/runner/live/checkout-gateway.js +15 -7
  315. package/dist/runner/live/snapshot-records.js +8 -7
  316. package/dist/runner/prepare.d.ts +26 -26
  317. package/dist/runner/prepare.js +27 -14
  318. package/dist/runner/ready.d.ts +43 -10
  319. package/dist/runner/ready.js +51 -34
  320. package/dist/runner/recipe.d.ts +48 -4
  321. package/dist/runner/recipe.js +42 -1
  322. package/dist/runner/scope.d.ts +13 -13
  323. package/dist/runner/scope.js +9 -11
  324. package/dist/runner/secrets.d.ts +6 -0
  325. package/dist/runner/secrets.js +10 -0
  326. package/dist/runner/session.d.ts +128 -0
  327. package/dist/runner/session.js +138 -0
  328. package/dist/runner/snapshot-build.d.ts +21 -11
  329. package/dist/runner/snapshot-build.js +11 -16
  330. package/dist/runner/snapshot-cache.d.ts +140 -62
  331. package/dist/runner/snapshot-cache.js +145 -102
  332. package/dist/runner/snapshot-inspect.d.ts +89 -0
  333. package/dist/runner/snapshot-inspect.js +173 -0
  334. package/dist/runner/snapshot-key.d.ts +5 -2
  335. package/dist/runner/snapshot-key.js +1 -1
  336. package/dist/runner/snapshot-save.d.ts +35 -20
  337. package/dist/runner/snapshot-save.js +47 -37
  338. package/dist/runner/snapshot-start.d.ts +25 -0
  339. package/dist/runner/snapshot-start.js +16 -0
  340. package/dist/sdk/extension/ci.d.ts +2 -0
  341. package/dist/sdk/extension/ci.js +6 -0
  342. package/dist/sdk/extension/commands.d.ts +44 -28
  343. package/dist/sdk/extension/commands.js +15 -13
  344. package/dist/sdk/extension/driver.d.ts +143 -0
  345. package/dist/sdk/extension/driver.js +28 -0
  346. package/dist/sdk/extension/index.d.ts +3 -1
  347. package/dist/sdk/extension/index.js +16 -9
  348. package/dist/sdk/extension/{launcher-supplies.d.ts → launcher-context.d.ts} +3 -3
  349. package/dist/sdk/extension/launcher-context.js +5 -0
  350. package/dist/sdk/extension/lifecycle.d.ts +10 -8
  351. package/dist/sdk/extension/lifecycle.js +2 -2
  352. package/dist/sdk/extension/progress.js +2 -2
  353. package/dist/sdk/extension/resource-definition.d.ts +13 -13
  354. package/dist/sdk/extension/resource-definition.js +2 -2
  355. package/dist/sdk/extension/resource.d.ts +13 -13
  356. package/dist/sdk/extension/resource.js +11 -11
  357. package/dist/sdk/extension/time.js +2 -2
  358. package/dist/sdk/index.d.ts +2 -0
  359. package/dist/sdk/index.js +3 -1
  360. package/dist/sdk/run/launcher.d.ts +1 -1
  361. package/dist/sdk/run/launcher.js +4 -3
  362. package/dist/sdk/run/payload.js +1 -1
  363. package/dist/sdk/run/test-events.d.ts +24 -18
  364. package/dist/sdk/run/test-events.js +5 -4
  365. package/dist/sdk/run/test-result-writer.d.ts +77 -0
  366. package/dist/sdk/run/test-result-writer.js +143 -0
  367. package/dist/sdk/run/worker-test-event-writer.d.ts +13 -0
  368. package/dist/sdk/run/worker-test-event-writer.js +31 -0
  369. package/dist/vendor/testserver-sdk/container/container.d.ts +12 -12
  370. package/dist/vendor/testserver-sdk/container/container.js +39 -21
  371. package/dist/vendor/testserver-sdk/factories/build.d.ts +12 -40
  372. package/dist/vendor/testserver-sdk/factories/build.js +15 -66
  373. package/dist/vendor/testserver-sdk/factories/gateways.d.ts +1 -2
  374. package/dist/vendor/testserver-sdk/factories/index.d.ts +1 -3
  375. package/dist/vendor/testserver-sdk/factories/index.js +3 -5
  376. package/dist/vendor/testserver-sdk/index.d.ts +1 -2
  377. package/dist/vendor/testserver-sdk/index.js +5 -6
  378. package/dist/vendor/testserver-sdk/records/body.d.ts +1 -1
  379. package/dist/vendor/testserver-sdk/records/body.js +1 -1
  380. package/dist/vendor/testserver-sdk/testserver/failure.d.ts +4 -3
  381. package/dist/vendor/testserver-sdk/testserver/failure.js +4 -3
  382. package/dist/vitest/index.d.ts +2 -1
  383. package/dist/vitest/index.js +6 -4
  384. package/dist/vitest/test-events.d.ts +6 -16
  385. package/dist/vitest/test-events.js +15 -40
  386. package/dist/vitest/test-results.d.ts +9 -31
  387. package/dist/vitest/test-results.js +34 -105
  388. package/dist/vitest/worker-index.d.ts +6 -0
  389. package/dist/vitest/worker-index.js +17 -0
  390. package/package.json +23 -9
  391. package/skills/overview.md +6 -5
  392. package/skills/read-run-output.md +22 -7
  393. package/dist/chunks/chunk-AGWW3HDT.js +0 -2559
  394. package/dist/chunks/chunk-H2VCSNVU.js +0 -351
  395. package/dist/commands/exec/run-record.js +0 -135
  396. package/dist/commands/vitest/outcomes.d.ts +0 -379
  397. package/dist/commands/vitest/outcomes.js +0 -70
  398. package/dist/core/launcher-supplies.d.ts +0 -11
  399. package/dist/core/launcher-supplies.js +0 -28
  400. package/dist/core/mint.d.ts +0 -10
  401. package/dist/core/mint.js +0 -14
  402. package/dist/core/resource-registry.d.ts +0 -54
  403. package/dist/core/resource-registry.js +0 -57
  404. package/dist/extensions/github/live/world.d.ts +0 -6
  405. package/dist/extensions/github/live/world.js +0 -16
  406. package/dist/extensions/github/world.js +0 -3
  407. package/dist/extensions/testserver/live/world.d.ts +0 -8
  408. package/dist/extensions/testserver/vitest/sandbox.d.ts +0 -25
  409. package/dist/extensions/testserver/vitest/sandbox.js +0 -43
  410. package/dist/extensions/testserver/world.js +0 -4
  411. package/dist/sdk/extension/launcher-supplies.js +0 -3
  412. package/dist/story/align.d.ts +0 -37
  413. package/dist/story/align.js +0 -39
  414. package/dist/story/command-line.d.ts +0 -34
  415. package/dist/story/command-line.js +0 -100
  416. package/dist/story/definition.d.ts +0 -59
  417. package/dist/story/definition.js +0 -9
  418. package/dist/story/diff.d.ts +0 -9
  419. package/dist/story/diff.js +0 -97
  420. package/dist/story/errors.d.ts +0 -14
  421. package/dist/story/errors.js +0 -21
  422. package/dist/story/gateways.d.ts +0 -94
  423. package/dist/story/gateways.js +0 -3
  424. package/dist/story/host.d.ts +0 -30
  425. package/dist/story/host.js +0 -97
  426. package/dist/story/index.d.ts +0 -8
  427. package/dist/story/index.js +0 -10
  428. package/dist/story/json.d.ts +0 -16
  429. package/dist/story/json.js +0 -59
  430. package/dist/story/live/recording-gateway.d.ts +0 -2
  431. package/dist/story/live/recording-gateway.js +0 -103
  432. package/dist/story/mode.d.ts +0 -17
  433. package/dist/story/mode.js +0 -21
  434. package/dist/story/orphans.d.ts +0 -35
  435. package/dist/story/orphans.js +0 -51
  436. package/dist/story/recording.d.ts +0 -62
  437. package/dist/story/recording.js +0 -97
  438. package/dist/story/report.d.ts +0 -42
  439. package/dist/story/report.js +0 -130
  440. package/dist/story/sequence.d.ts +0 -30
  441. package/dist/story/sequence.js +0 -74
  442. package/dist/story/settle.d.ts +0 -96
  443. package/dist/story/settle.js +0 -71
  444. package/dist/story/start.d.ts +0 -50
  445. package/dist/story/start.js +0 -183
  446. package/dist/vendor/testserver-sdk/factories/definition.d.ts +0 -39
  447. package/dist/vendor/testserver-sdk/factories/definition.js +0 -16
  448. package/dist/vendor/testserver-sdk/factories/definitions.d.ts +0 -169
  449. package/dist/vendor/testserver-sdk/factories/definitions.js +0 -245
  450. package/dist/vendor/testserver-sdk/seed/index.d.ts +0 -1
  451. package/dist/vendor/testserver-sdk/seed/index.js +0 -3
  452. package/dist/vendor/testserver-sdk/seed/seed.d.ts +0 -221
  453. package/dist/vendor/testserver-sdk/seed/seed.js +0 -171
  454. package/dist/vitest/find-vitest.d.ts +0 -7
  455. package/dist/vitest/find-vitest.js +0 -28
  456. package/dist/vitest/gateways.js +0 -4
  457. package/dist/vitest/plan.d.ts +0 -51
  458. /package/dist/{vitest → extensions/vitest/plan}/list-output.d.ts +0 -0
  459. /package/dist/{vitest → extensions/vitest/plan}/list-output.js +0 -0
  460. /package/dist/{core → run-directory}/live/run-directory-gateway.d.ts +0 -0
  461. /package/dist/{core → run-directory}/live/run-directory-gateway.js +0 -0
@@ -1,235 +1,8 @@
1
- // src/sdk/extension/resource-definition.ts
2
- var NOT_COUNTED = Object.freeze({ testPlan: Object.freeze({ kind: "not-counted" }) });
3
- function defaultResourceKey(definition) {
4
- return definition.name;
5
- }
6
- function optionKeyPath(key, option) {
7
- return ["resources", key, option].join(".");
8
- }
9
- function resourceCall(name) {
10
- return `${name}({ \u2026 })`;
11
- }
12
-
13
- // src/sdk/extension/credential.ts
14
- import { inspect } from "node:util";
15
- var RENDERED = "[credential]";
16
- var Credential = class {
17
- #token;
18
- #claims;
19
- constructor(token) {
20
- this.#token = token;
21
- }
22
- /**
23
- * The token itself, for the request header of the service a resource calls with it and the runner's live Sandbox
24
- * gateway (which hands it to `@vercel/sandbox`) only.
25
- */
26
- reveal() {
27
- return this.#token;
28
- }
29
- /**
30
- * The team and project the token was minted for, from its `owner_id` and `project_id` JWT claims, decoded once.
31
- * `undefined` when the token isn't a JWT or lacks either claim. The token itself never leaves the credential.
32
- */
33
- vercelProject() {
34
- const { owner_id: teamId, project_id: projectId } = this.#decoded() ?? {};
35
- if (!isFilled(teamId) || !isFilled(projectId)) return void 0;
36
- return { teamId, projectId };
37
- }
38
- /**
39
- * The `aud` and `repository` claims of a GitHub Actions OIDC token, which a service's trust rules match on.
40
- * `undefined` when the token isn't a JWT or lacks either claim as a non-empty string. The token itself never
41
- * leaves the credential.
42
- */
43
- githubActionsClaims() {
44
- const { aud, repository } = this.#decoded() ?? {};
45
- if (!isFilled(aud) || !isFilled(repository)) return void 0;
46
- return { aud, repository };
47
- }
48
- /** The token's JWT claims, decoded once; `undefined` when it isn't a JWT with an object payload. */
49
- #decoded() {
50
- if (this.#claims === void 0) this.#claims = decodeClaims(this.#token) ?? null;
51
- return this.#claims ?? void 0;
52
- }
53
- toString() {
54
- return RENDERED;
55
- }
56
- toJSON() {
57
- return RENDERED;
58
- }
59
- [inspect.custom]() {
60
- return RENDERED;
61
- }
62
- };
63
- function decodeClaims(token) {
64
- const parts = token.split(".");
65
- const payload = parts[1];
66
- if (parts.length !== 3 || payload === void 0 || payload === "") return void 0;
67
- let claims;
68
- try {
69
- claims = JSON.parse(Buffer.from(payload, "base64url").toString("utf8"));
70
- } catch {
71
- return void 0;
72
- }
73
- if (typeof claims !== "object" || claims === null || Array.isArray(claims)) return void 0;
74
- return claims;
75
- }
76
- function isFilled(value) {
77
- return typeof value === "string" && value !== "";
78
- }
79
-
80
- // src/sdk/extension/credential-diagnosis.ts
81
- function describeMintFailure(failure, target) {
82
- const loginStep = `\`vercel login\` with an account on the \`${target.team}\` team`;
83
- const networkFix = "Check your network connection and any VPN or proxy, then retry.";
84
- switch (failure.kind) {
85
- case "vercel-not-found":
86
- return {
87
- cause: "`vercel` is not on PATH",
88
- fix: `Install it with \`npm i -g vercel@latest\`, run ${loginStep}, then retry.`
89
- };
90
- case "timeout":
91
- return {
92
- cause: failure.step.command === "project token" ? `\`vercel project token\` timed out after ${failure.seconds}s` : `${whoamiCheck(failure.step.mintSaid)} timed out after ${failure.seconds}s`,
93
- fix: networkFix
94
- };
95
- case "unreachable":
96
- return {
97
- cause: failure.step.command === "project token" ? `\`vercel project token\` couldn't reach Vercel: ${failure.said}` : `${whoamiCheck(failure.step.mintSaid)} couldn't reach Vercel: ${failure.said}`,
98
- fix: networkFix
99
- };
100
- case "outdated-cli":
101
- return {
102
- cause: `\`vercel\` on PATH is older than 53.3.0, the first with \`project token --format=json\`: ${failure.said}`,
103
- fix: "Upgrade it with `npm i -g vercel@latest`, then retry."
104
- };
105
- case "project-not-found":
106
- return {
107
- cause: `\`vercel\` found no project \`${target.project}\` on team \`${target.team}\`: ${failure.said}`,
108
- fix: `Check the project name in \`--project\` or \`storm.config.ts\` (\`project\`) for team \`${target.team}\`, then retry.`
109
- };
110
- case "unrecognized":
111
- return {
112
- cause: `\`vercel project token\` failed: ${failure.said}`,
113
- fix: "Retry. If it fails the same way again, act on what `vercel` said."
114
- };
115
- case "login-lapsed":
116
- return {
117
- cause: `the saved \`vercel login\` is missing, expired or invalid (\`vercel whoami\`: ${failure.whoamiSaid}). \`vercel project token\` said: ${failure.said}`,
118
- fix: `Run ${loginStep}, then retry.`
119
- };
120
- case "no-team-access": {
121
- const user = failure.user ?? "the logged-in account";
122
- const works = failure.user === void 0 ? "`vercel whoami` works" : `\`vercel whoami\` works, as ${failure.user}`;
123
- return {
124
- cause: `${failure.said} (${works})`,
125
- fix: `Check the team name in \`--scope\` or \`storm.config.ts\` (\`scope\`). Then ask an owner of the \`${target.team}\` team to add ${user}; if ${user} is already a member, run \`vercel login\` again, then retry.`
126
- };
127
- }
128
- }
129
- }
130
- function whoamiCheck(mintSaid) {
131
- return `\`vercel project token\` failed: ${mintSaid}. \`vercel whoami\`, run to check the login,`;
132
- }
133
- function describeTokenRequestFailure(failure) {
134
- if (failure.kind === "variables-missing")
135
- return {
136
- cause: `${variablesText(failure.missing)} ${failure.missing.length === 1 ? "isn't" : "aren't"} set; GitHub Actions sets them only in a job with \`id-token: write\``,
137
- fix: "Add `permissions: id-token: write` to the job, then rerun it."
138
- };
139
- const { last, attempts } = failure;
140
- const tries = attempts === 1 ? "" : ` (${attempts} attempts)`;
141
- const fix = "Rerun the job. If the request fails again, act on what GitHub answered.";
142
- switch (last.kind) {
143
- case "unreachable":
144
- return { cause: `the token request couldn't reach GitHub${tries}: ${last.said}`, fix };
145
- case "timeout":
146
- return { cause: `GitHub didn't answer the token request within ${last.seconds}s${tries}`, fix };
147
- case "http-error":
148
- return { cause: `GitHub answered the token request with HTTP ${last.status}${tries}: ${last.said}`, fix };
149
- case "bad-response":
150
- return { cause: `GitHub's answer to the token request held no token: ${last.said}`, fix };
151
- }
152
- }
153
- function describeCredentialFailure(failure) {
154
- return failure.source === "mint" ? describeMintFailure(failure.failure, failure.target) : describeTokenRequestFailure(failure.failure);
155
- }
156
- function variablesText(missing) {
157
- return missing.map((name) => `\`${name}\``).join(" and ");
158
- }
159
-
160
- // src/sdk/extension/token-request-facts.ts
161
- import { z } from "zod";
162
- var tokenRequestFailureShape = {
163
- /** Why it failed: the job's variables are missing, or the request failed. */
164
- cause: z.enum(["variables-missing", "request-failed"]),
165
- /** The variables that aren't set, under variables-missing; null otherwise. */
166
- missing: z.array(z.enum(["ACTIONS_ID_TOKEN_REQUEST_URL", "ACTIONS_ID_TOKEN_REQUEST_TOKEN"])).nullable(),
167
- /** The HTTP status GitHub answered the last attempt with; null when it answered none, or 2xx without a token. */
168
- status: z.number().nullable(),
169
- /** What GitHub or the connection said to the last attempt, at most 200 characters; null when nothing. */
170
- said: z.string().nullable(),
171
- /** The cause, for a person. */
172
- detail: z.string(),
173
- /** The one fix. */
174
- fix: z.string()
175
- };
176
- function tokenRequestFailureFacts(failure) {
177
- const { cause: detail, fix } = describeTokenRequestFailure(failure);
178
- if (failure.kind === "variables-missing")
179
- return { cause: failure.kind, missing: [...failure.missing], status: null, said: null, detail, fix };
180
- const { last } = failure;
181
- return {
182
- cause: failure.kind,
183
- missing: null,
184
- status: last.kind === "http-error" ? last.status : null,
185
- said: "said" in last ? last.said : null,
186
- detail,
187
- fix
188
- };
189
- }
190
-
191
- // src/sdk/extension/resource.ts
192
- function defineResource(spec) {
193
- const { name, flagPrefix, options, check: check2, payload, world, lifecycle, progress } = spec;
194
- if (payload.name !== name) throw new Error(`The resource ${name}'s payload contract is ${payload.name}'s`);
195
- const definition = {
196
- name,
197
- flagPrefix,
198
- options,
199
- check: check2 ?? (() => []),
200
- payload,
201
- world,
202
- lifecycle,
203
- ...progress === void 0 ? {} : { progress }
204
- };
205
- return definition;
206
- }
207
-
208
- // src/sdk/extension/resource-factory.ts
209
- function resourceFactory(definition) {
210
- const make = (given = {}) => ({
211
- name: definition.name,
212
- options: { ...given }
213
- });
214
- return Object.assign(make, { definition });
215
- }
216
-
217
- // src/sdk/extension/rules.ts
218
- import { z as z2 } from "zod";
219
- function describeValue(value) {
220
- if (typeof value === "string") return JSON.stringify(value);
221
- if (typeof value === "number" || typeof value === "boolean") return String(value);
222
- if (value === null) return "null";
223
- if (value === void 0) return "undefined";
224
- if (typeof value === "function") return "a function";
225
- if (Array.isArray(value)) return "an array";
226
- return typeof value === "object" ? "an object" : `a ${typeof value}`;
227
- }
228
- function mustBe(rule) {
229
- return { error: (issue) => `must be ${rule}, not ${describeValue(issue.input)}` };
230
- }
231
- var nonEmptyString = z2.string(mustBe("a non-empty string")).min(1, mustBe("a non-empty string"));
232
- var booleanOption = z2.boolean(mustBe("true or false"));
1
+ import {
2
+ booleanOption,
3
+ mustBe,
4
+ nonEmptyString
5
+ } from "./chunk-YT5OROR7.js";
233
6
 
234
7
  // src/extensions/testserver/options/channels.ts
235
8
  var BUILD_CHANNELS = ["stable", "latest_main"];
@@ -344,31 +117,32 @@ function minTimeLeftMinutes(options) {
344
117
  }
345
118
 
346
119
  // src/extensions/testserver/options/rules.ts
347
- import { z as z3 } from "zod";
120
+ import { z } from "zod";
348
121
  var SANDBOX_COUNT = `a whole number from ${MIN_SANDBOXES} to ${MAX_SANDBOXES}`;
349
- var sandboxCount = z3.number(mustBe(SANDBOX_COUNT)).int(mustBe(SANDBOX_COUNT)).min(MIN_SANDBOXES, mustBe(SANDBOX_COUNT)).max(MAX_SANDBOXES, mustBe(SANDBOX_COUNT));
122
+ var sandboxCount = z.number(mustBe(SANDBOX_COUNT)).int(mustBe(SANDBOX_COUNT)).min(MIN_SANDBOXES, mustBe(SANDBOX_COUNT)).max(MAX_SANDBOXES, mustBe(SANDBOX_COUNT));
350
123
  var build = nonEmptyString.transform((value, context) => {
351
124
  const parsed = parseBuildReference(value);
352
125
  if (parsed.ok) return buildReferenceText(parsed.reference);
353
126
  context.issues.push({ code: "custom", message: parsed.problem, input: value });
354
- return z3.NEVER;
127
+ return z.NEVER;
355
128
  });
356
129
  var DURATION = "a whole number of minutes or hours, such as 30m or 2h";
357
- var duration = z3.string(mustBe(DURATION)).refine((value) => parseDuration(value) !== void 0, mustBe(DURATION));
130
+ var duration = z.string(mustBe(DURATION)).refine((value) => parseDuration(value) !== void 0, mustBe(DURATION));
358
131
  var TTL = "a whole number of minutes or hours from 10m to 5h";
359
- var ttl = z3.string(mustBe(TTL)).refine((value) => parseTtl(value) !== void 0, mustBe(TTL));
132
+ var ttl = z.string(mustBe(TTL)).refine((value) => parseTtl(value) !== void 0, mustBe(TTL));
360
133
  var testserverPoolRules = {
361
134
  /**
362
- * How many Testserver sandboxes a run gets: 1 to 32; by default 1, or with `storm vitest` one per 4 test files
363
- * `vitest list` counted, at most 8.
135
+ * How many Testserver sandboxes a run gets: 1 to 32; by default 1, or with `storm vitest` or `storm playwright` one
136
+ * per 4 test files it counted, at most 8.
364
137
  */
365
138
  sandboxes: {
366
139
  schema: sandboxCount,
367
- // `storm vitest` sizes the run from its tests; a run that counts none, such as `storm exec`'s, asks for one.
140
+ // `storm vitest` and `storm playwright` size the run from its tests; a run that counts none, such as
141
+ // `storm exec`'s, asks for one.
368
142
  default: ({ testPlan }) => testPlan.kind === "counted" ? sandboxesForTests(testPlan.files) : MIN_SANDBOXES,
369
143
  flag: {
370
144
  valueLabel: "N",
371
- description: "How many Testserver sandboxes the command gets, 1 to 32, overriding resources.testserverPool.sandboxes in storm.config.ts; default 1, or with storm vitest one per 4 test files vitest list counted, at most 8. Gives the run the Testserver pool."
145
+ description: "How many Testserver sandboxes the command gets, 1 to 32, overriding resources.testserverPool.sandboxes in storm.config.ts; default 1, or with storm vitest or storm playwright one per 4 test files it counted, at most 8. Gives the run the Testserver pool."
372
146
  }
373
147
  },
374
148
  /**
@@ -473,13 +247,13 @@ function createFailureText(facts) {
473
247
  }
474
248
 
475
249
  // src/extensions/testserver/sandbox/live/builds-response.ts
476
- import { z as z4 } from "zod";
477
- var wireBuildSchema = z4.object({
478
- bundleName: z4.string().min(1),
479
- commitSha: z4.string().optional(),
480
- createdAt: z4.string().optional()
250
+ import { z as z2 } from "zod";
251
+ var wireBuildSchema = z2.object({
252
+ bundleName: z2.string().min(1),
253
+ commitSha: z2.string().optional(),
254
+ createdAt: z2.string().optional()
481
255
  });
482
- var buildsSchema = z4.object({ stable: wireBuildSchema.nullable(), main: z4.array(wireBuildSchema) });
256
+ var buildsSchema = z2.object({ stable: wireBuildSchema.nullable(), main: z2.array(wireBuildSchema) });
483
257
  function parseBuilds(json) {
484
258
  const parsed = buildsSchema.safeParse(json);
485
259
  if (!parsed.success) {
@@ -1049,27 +823,27 @@ import { hostname as osHostname } from "node:os";
1049
823
  import { basename, dirname, join } from "node:path";
1050
824
 
1051
825
  // src/extensions/testserver/pool/live/pool-records.ts
1052
- import { z as z5 } from "zod";
1053
- var isoTime = z5.string().refine((value) => !Number.isNaN(Date.parse(value)), { message: "not a time" });
1054
- var entrySchema = z5.object({
1055
- version: z5.literal(1),
1056
- testserverUrl: z5.string().min(1),
1057
- logViewerUrl: z5.string().min(1),
826
+ import { z as z3 } from "zod";
827
+ var isoTime = z3.string().refine((value) => !Number.isNaN(Date.parse(value)), { message: "not a time" });
828
+ var entrySchema = z3.object({
829
+ version: z3.literal(1),
830
+ testserverUrl: z3.string().min(1),
831
+ logViewerUrl: z3.string().min(1),
1058
832
  createdAt: isoTime,
1059
- ttlMinutes: z5.number().int().positive(),
1060
- requestedBuild: z5.string().min(1),
1061
- resolvedBuild: z5.string().min(1),
1062
- headSha: z5.string().regex(/^[0-9a-f]{40}$/).optional()
833
+ ttlMinutes: z3.number().int().positive(),
834
+ requestedBuild: z3.string().min(1),
835
+ resolvedBuild: z3.string().min(1),
836
+ headSha: z3.string().regex(/^[0-9a-f]{40}$/).optional()
1063
837
  });
1064
- var leaseSchema = z5.object({
1065
- version: z5.literal(1),
1066
- pid: z5.number().int().positive(),
1067
- hostname: z5.string(),
838
+ var leaseSchema = z3.object({
839
+ version: z3.literal(1),
840
+ pid: z3.number().int().positive(),
841
+ hostname: z3.string(),
1068
842
  startedAt: isoTime
1069
843
  });
1070
- var channelsSchema = z5.object({
1071
- version: z5.literal(1),
1072
- channels: z5.record(z5.string(), z5.object({ build: z5.string().min(1), learnedAt: isoTime }))
844
+ var channelsSchema = z3.object({
845
+ version: z3.literal(1),
846
+ channels: z3.record(z3.string(), z3.object({ build: z3.string().min(1), learnedAt: isoTime }))
1073
847
  });
1074
848
  function parseEntry(text) {
1075
849
  const parsed = parseVersioned(text, entrySchema);
@@ -1464,21 +1238,6 @@ function failureAt(path, error) {
1464
1238
  }
1465
1239
 
1466
1240
  export {
1467
- Credential,
1468
- describeMintFailure,
1469
- describeCredentialFailure,
1470
- tokenRequestFailureShape,
1471
- tokenRequestFailureFacts,
1472
- defineResource,
1473
- NOT_COUNTED,
1474
- defaultResourceKey,
1475
- optionKeyPath,
1476
- resourceCall,
1477
- resourceFactory,
1478
- describeValue,
1479
- mustBe,
1480
- nonEmptyString,
1481
- booleanOption,
1482
1241
  TESTSERVER_REPO,
1483
1242
  parseBuildReference,
1484
1243
  shortSha,
@@ -0,0 +1,19 @@
1
+ // src/commands/dashboard.ts
2
+ function projectPage({ team, project }) {
3
+ return `https://vercel.com/${encodeURIComponent(team)}/${encodeURIComponent(project)}`;
4
+ }
5
+ function sandboxPage(where, name) {
6
+ return `${projectPage(where)}/sandboxes/${encodeURIComponent(name)}`;
7
+ }
8
+ function sandboxConnectPage(where, name) {
9
+ return `${sandboxPage(where, name)}/connect`;
10
+ }
11
+ function snapshotPage(where, id) {
12
+ return `${projectPage(where)}/sandboxes/snapshots/${encodeURIComponent(id)}`;
13
+ }
14
+
15
+ export {
16
+ sandboxPage,
17
+ sandboxConnectPage,
18
+ snapshotPage
19
+ };