@cnc-tools/storm 0.16.0 → 0.18.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 (290) hide show
  1. package/dist/bin/storm.js +54 -40
  2. package/dist/build-info.js +1 -1
  3. package/dist/chunks/{chunk-VL7WFTVQ.js → chunk-24UYAK4R.js} +465 -365
  4. package/dist/chunks/{chunk-DC2CDHNK.js → chunk-2JMWUKH3.js} +2074 -473
  5. package/dist/chunks/{chunk-FOZWA52V.js → chunk-3VXZONGE.js} +481 -376
  6. package/dist/chunks/{chunk-ZG3WQ4UF.js → chunk-55O4FCN4.js} +1 -1
  7. package/dist/chunks/{chunk-CN4EFA5J.js → chunk-72ZFEMAW.js} +1 -1
  8. package/dist/chunks/chunk-AS37D43E.js +2173 -0
  9. package/dist/chunks/chunk-CQAY6GLP.js +1260 -0
  10. package/dist/chunks/chunk-DZLU7BYK.js +340 -0
  11. package/dist/chunks/{chunk-R7XVBZOY.js → chunk-EEENLQHE.js} +59 -11
  12. package/dist/chunks/{chunk-TJNFVNKR.js → chunk-EI3XDCEI.js} +1 -1
  13. package/dist/chunks/{chunk-HVNK3I45.js → chunk-FDUY3BNF.js} +1 -1
  14. package/dist/chunks/{chunk-FCQUJDA4.js → chunk-GUCCYCIO.js} +4 -189
  15. package/dist/chunks/{chunk-OIY3DMF2.js → chunk-HBI4LEMH.js} +3 -3
  16. package/dist/chunks/{chunk-2MAD5NKK.js → chunk-K4MDQPLW.js} +1 -18
  17. package/dist/chunks/chunk-KK7PAWIZ.js +198 -0
  18. package/dist/chunks/{chunk-G3PHMXH5.js → chunk-KQ5FXRUD.js} +18 -1
  19. package/dist/chunks/{chunk-5VXBKPW6.js → chunk-LKXHGGGX.js} +1 -1
  20. package/dist/chunks/{chunk-P357TZAY.js → chunk-LOGHIUUB.js} +21 -18
  21. package/dist/chunks/{chunk-CK2GZEPK.js → chunk-OEPFINFT.js} +2 -2
  22. package/dist/chunks/{chunk-DWEAHX4T.js → chunk-OI4AP6Z7.js} +5 -5
  23. package/dist/chunks/{chunk-V4IKA3WI.js → chunk-PMBQWVTW.js} +26 -19
  24. package/dist/chunks/chunk-SZMYIIG2.js +88 -0
  25. package/dist/chunks/{chunk-5CCP36QQ.js → chunk-TXCOFC7N.js} +1 -1
  26. package/dist/chunks/{chunk-VUPZH7J2.js → chunk-UXD3TVWM.js} +1 -1
  27. package/dist/chunks/{chunk-3L52KNQA.js → chunk-WNW2QXQK.js} +8 -8
  28. package/dist/chunks/{chunk-AWBSONHB.js → chunk-XBDRVFEV.js} +55 -16
  29. package/dist/chunks/{live-app-WECQOQ4C.js → live-app-UY7BEDUN.js} +17 -13
  30. package/dist/cli.d.ts +28 -0
  31. package/dist/cli.js +64 -0
  32. package/dist/commands/exec/across-sandboxes-outcomes.d.ts +2 -2
  33. package/dist/commands/exec/across-sandboxes-outcomes.js +3 -3
  34. package/dist/commands/exec/before-run.d.ts +123 -0
  35. package/dist/commands/exec/before-run.js +105 -0
  36. package/dist/commands/exec/command.d.ts +67 -14
  37. package/dist/commands/exec/command.js +31 -95
  38. package/dist/commands/exec/driver-plan.d.ts +9 -4
  39. package/dist/commands/exec/driver-plan.js +8 -8
  40. package/dist/commands/exec/exec-words.js +1 -1
  41. package/dist/commands/exec/execute-run.d.ts +39 -0
  42. package/dist/commands/exec/execute-run.js +325 -0
  43. package/dist/commands/exec/live-view.d.ts +3 -3
  44. package/dist/commands/exec/live-view.js +16 -15
  45. package/dist/commands/exec/metadata.js +1 -1
  46. package/dist/commands/exec/mint-failed.d.ts +38 -0
  47. package/dist/commands/exec/mint-failed.js +27 -4
  48. package/dist/commands/exec/outcomes.d.ts +104 -22
  49. package/dist/commands/exec/outcomes.js +73 -26
  50. package/dist/commands/exec/plan-run.d.ts +58 -150
  51. package/dist/commands/exec/plan-run.js +239 -90
  52. package/dist/commands/exec/progress.d.ts +10 -6
  53. package/dist/commands/exec/progress.js +38 -25
  54. package/dist/commands/exec/run-bin.d.ts +11 -11
  55. package/dist/commands/exec/run-bin.js +9 -9
  56. package/dist/commands/exec/run-flags.d.ts +69 -0
  57. package/dist/commands/exec/run-flags.js +58 -0
  58. package/dist/commands/exec/run-metadata.js +4 -4
  59. package/dist/commands/exec/run-summary.d.ts +58 -0
  60. package/dist/commands/exec/run-summary.js +205 -0
  61. package/dist/commands/exec/runner-refusals.d.ts +82 -0
  62. package/dist/commands/exec/runner-refusals.js +71 -0
  63. package/dist/commands/exec/sandbox-progress.js +3 -0
  64. package/dist/commands/exec/stopped-outcome.d.ts +12 -0
  65. package/dist/commands/exec/stopped-outcome.js +77 -0
  66. package/dist/commands/exec/view.d.ts +20 -11
  67. package/dist/commands/exec/view.js +103 -47
  68. package/dist/commands/runs/facts.d.ts +8 -4
  69. package/dist/commands/runs/facts.js +19 -10
  70. package/dist/commands/runs/list/command.d.ts +16 -8
  71. package/dist/commands/runs/list/command.js +10 -10
  72. package/dist/commands/runs/list/outcomes.d.ts +8 -4
  73. package/dist/commands/runs/logs/command.js +10 -10
  74. package/dist/commands/runs/show/command.d.ts +16 -8
  75. package/dist/commands/runs/show/command.js +31 -29
  76. package/dist/commands/runs/show/metadata.js +1 -1
  77. package/dist/commands/runs/show/outcomes.d.ts +8 -4
  78. package/dist/commands/runs/show/outcomes.js +8 -6
  79. package/dist/commands/snapshots/access.d.ts +111 -0
  80. package/dist/commands/snapshots/access.js +96 -0
  81. package/dist/commands/snapshots/build/command.d.ts +376 -101
  82. package/dist/commands/snapshots/build/command.js +447 -149
  83. package/dist/commands/snapshots/build/metadata.d.ts +10 -0
  84. package/dist/commands/snapshots/build/metadata.js +31 -11
  85. package/dist/commands/snapshots/build/outcomes.d.ts +242 -47
  86. package/dist/commands/snapshots/build/outcomes.js +200 -36
  87. package/dist/commands/snapshots/list/command.d.ts +368 -27
  88. package/dist/commands/snapshots/list/command.js +298 -68
  89. package/dist/commands/snapshots/list/metadata.d.ts +16 -0
  90. package/dist/commands/snapshots/list/metadata.js +29 -6
  91. package/dist/commands/snapshots/list/outcomes.d.ts +247 -15
  92. package/dist/commands/snapshots/list/outcomes.js +223 -52
  93. package/dist/commands/snapshots/metadata.js +1 -1
  94. package/dist/commands/snapshots/prune/command.d.ts +430 -0
  95. package/dist/commands/snapshots/prune/command.js +161 -0
  96. package/dist/commands/snapshots/prune/metadata.d.ts +28 -0
  97. package/dist/commands/snapshots/prune/metadata.js +39 -0
  98. package/dist/commands/snapshots/prune/outcomes.d.ts +208 -0
  99. package/dist/commands/snapshots/prune/outcomes.js +78 -0
  100. package/dist/commands/suites/list/command.js +17 -17
  101. package/dist/commands/suites/list/outcomes.js +2 -2
  102. package/dist/commands/test/command.d.ts +67 -14
  103. package/dist/commands/test/command.js +49 -252
  104. package/dist/commands/test/outcomes.d.ts +33 -7
  105. package/dist/config/check-runner.d.ts +3 -3
  106. package/dist/config/check-runner.js +8 -7
  107. package/dist/config/credential-resolver.d.ts +50 -5
  108. package/dist/config/credential-resolver.js +51 -19
  109. package/dist/config/credential-settle.d.ts +6 -2
  110. package/dist/config/credential-settle.js +11 -5
  111. package/dist/config/index.d.ts +2 -2
  112. package/dist/config/index.js +1 -1
  113. package/dist/config/runner.d.ts +5 -5
  114. package/dist/config/runner.js +1 -1
  115. package/dist/config/schema.d.ts +2 -2
  116. package/dist/config/schema.js +1 -1
  117. package/dist/config-file/define.d.ts +1 -1
  118. package/dist/config-file/define.js +1 -1
  119. package/dist/config-file/runner.d.ts +5 -5
  120. package/dist/config-file/toolchain.d.ts +14 -4
  121. package/dist/config-file/toolchain.js +43 -7
  122. package/dist/context.d.ts +10 -6
  123. package/dist/context.js +8 -6
  124. package/dist/core/across-sandboxes.d.ts +7 -6
  125. package/dist/core/across-sandboxes.js +123 -152
  126. package/dist/core/coordinator.d.ts +166 -0
  127. package/dist/core/coordinator.js +233 -0
  128. package/dist/core/events.d.ts +2 -2
  129. package/dist/core/index.d.ts +4 -2
  130. package/dist/core/index.js +1 -1
  131. package/dist/core/outcomes.d.ts +148 -0
  132. package/dist/core/{sandbox-end.js → outcomes.js} +28 -4
  133. package/dist/core/resources.d.ts +31 -53
  134. package/dist/core/resources.js +32 -70
  135. package/dist/core/run-state.d.ts +7 -1
  136. package/dist/core/run-state.js +2 -0
  137. package/dist/core/run.d.ts +32 -236
  138. package/dist/core/run.js +107 -267
  139. package/dist/core/state-directory.d.ts +1 -1
  140. package/dist/core/state-directory.js +2 -2
  141. package/dist/credential/gateways.d.ts +15 -1
  142. package/dist/credential/index.d.ts +4 -3
  143. package/dist/credential/index.js +3 -2
  144. package/dist/credential/live/vercel-cli-gateway.d.ts +1 -1
  145. package/dist/credential/live/vercel-cli-gateway.js +1 -1
  146. package/dist/credential/live/vercel-oidc-token-gateway.d.ts +11 -0
  147. package/dist/credential/live/vercel-oidc-token-gateway.js +16 -0
  148. package/dist/credential/source.d.ts +73 -6
  149. package/dist/credential/source.js +55 -2
  150. package/dist/extension-commands.d.ts +1 -1
  151. package/dist/extension-commands.js +2 -2
  152. package/dist/extensions/testserver/commands/pool/create/command.d.ts +35 -2
  153. package/dist/extensions/testserver/commands/pool/create/command.js +7 -7
  154. package/dist/extensions/testserver/commands/pool/create/metadata.js +5 -5
  155. package/dist/extensions/testserver/commands/pool/create/outcomes.d.ts +17 -1
  156. package/dist/extensions/testserver/commands/pool/list/command.js +4 -4
  157. package/dist/extensions/testserver/credential-facts.d.ts +6 -2
  158. package/dist/extensions/testserver/credential-facts.js +29 -11
  159. package/dist/extensions/testserver/lifecycle.js +7 -1
  160. package/dist/extensions/testserver/limit.d.ts +3 -0
  161. package/dist/extensions/testserver/limit.js +3 -0
  162. package/dist/extensions/testserver/provision.d.ts +8 -1
  163. package/dist/extensions/testserver/provision.js +8 -3
  164. package/dist/extensions/testserver/refusals.d.ts +6 -1
  165. package/dist/extensions/testserver/refusals.js +16 -1
  166. package/dist/extensions/testserver/resource.d.ts +1 -1
  167. package/dist/extensions/testserver/resource.js +1 -1
  168. package/dist/extensions/testserver/result.d.ts +1 -1
  169. package/dist/extensions/testserver/result.js +9 -4
  170. package/dist/planning/driver-file-lists.d.ts +0 -15
  171. package/dist/planning/driver-file-lists.js +2 -21
  172. package/dist/planning/plan-only.d.ts +3 -14
  173. package/dist/planning/plan-only.js +11 -20
  174. package/dist/planning/run-kind-flags.js +2 -2
  175. package/dist/planning/run-plan.d.ts +45 -12
  176. package/dist/planning/run-plan.js +4 -3
  177. package/dist/planning/suites.d.ts +1 -1
  178. package/dist/planning/suites.js +2 -2
  179. package/dist/planning/test-plan.d.ts +9 -0
  180. package/dist/planning/test-plan.js +9 -0
  181. package/dist/run-directory/recording.js +3 -3
  182. package/dist/run-directory/run-record.d.ts +26 -11
  183. package/dist/run-directory/run-record.js +16 -13
  184. package/dist/runner/base.js +1 -1
  185. package/dist/runner/build-snapshots.d.ts +60 -29
  186. package/dist/runner/build-snapshots.js +136 -29
  187. package/dist/runner/context.d.ts +15 -7
  188. package/dist/runner/context.js +19 -6
  189. package/dist/runner/events.d.ts +16 -10
  190. package/dist/runner/gateways.d.ts +122 -23
  191. package/dist/runner/gateways.js +1 -1
  192. package/dist/runner/gh.d.ts +42 -0
  193. package/dist/runner/gh.js +58 -0
  194. package/dist/runner/index.d.ts +13 -8
  195. package/dist/runner/index.js +12 -6
  196. package/dist/runner/live/checkout-gateway.js +7 -0
  197. package/dist/runner/live/gh-output.d.ts +17 -0
  198. package/dist/runner/live/gh-output.js +37 -0
  199. package/dist/runner/live/gh-token-gateway.d.ts +13 -0
  200. package/dist/runner/live/gh-token-gateway.js +51 -0
  201. package/dist/runner/live/sandbox-errors.d.ts +2 -0
  202. package/dist/runner/live/sandbox-errors.js +4 -0
  203. package/dist/runner/live/sandbox-gateway.js +140 -4
  204. package/dist/runner/live/snapshot-index-gateway.d.ts +12 -0
  205. package/dist/runner/live/{snapshot-cache-gateway.js → snapshot-index-gateway.js} +11 -11
  206. package/dist/runner/live/snapshot-records.js +12 -12
  207. package/dist/runner/local-snapshot-index.d.ts +205 -0
  208. package/dist/runner/local-snapshot-index.js +210 -0
  209. package/dist/runner/network-policy.d.ts +6 -6
  210. package/dist/runner/network-policy.js +7 -7
  211. package/dist/runner/policy-writes.d.ts +1 -1
  212. package/dist/runner/policy-writes.js +1 -1
  213. package/dist/runner/prepare.d.ts +14 -14
  214. package/dist/runner/prepare.js +20 -11
  215. package/dist/runner/ready.d.ts +19 -11
  216. package/dist/runner/ready.js +104 -33
  217. package/dist/runner/sandboxed-command.d.ts +3 -3
  218. package/dist/runner/sandboxed-command.js +3 -3
  219. package/dist/runner/scope.d.ts +15 -8
  220. package/dist/runner/scope.js +16 -5
  221. package/dist/runner/secrets.d.ts +41 -18
  222. package/dist/runner/secrets.js +226 -30
  223. package/dist/runner/session.d.ts +8 -8
  224. package/dist/runner/session.js +6 -3
  225. package/dist/runner/shared-snapshot-entry.d.ts +92 -0
  226. package/dist/runner/shared-snapshot-entry.js +168 -0
  227. package/dist/runner/shared-snapshot-list.d.ts +81 -0
  228. package/dist/runner/shared-snapshot-list.js +155 -0
  229. package/dist/runner/shared-snapshot-lookup.d.ts +51 -0
  230. package/dist/runner/shared-snapshot-lookup.js +118 -0
  231. package/dist/runner/shared-snapshot-prune.d.ts +58 -0
  232. package/dist/runner/shared-snapshot-prune.js +133 -0
  233. package/dist/runner/snapshot-build.d.ts +42 -14
  234. package/dist/runner/snapshot-build.js +79 -47
  235. package/dist/runner/snapshot-choice.js +2 -1
  236. package/dist/runner/snapshot-inspect.d.ts +39 -40
  237. package/dist/runner/snapshot-inspect.js +52 -35
  238. package/dist/runner/snapshot-key.d.ts +32 -17
  239. package/dist/runner/snapshot-key.js +43 -18
  240. package/dist/runner/snapshot-source.d.ts +31 -0
  241. package/dist/runner/snapshot-source.js +122 -0
  242. package/dist/runner/steps.d.ts +1 -1
  243. package/dist/runner/steps.js +1 -1
  244. package/dist/runner/{recipe-check.d.ts → vercel-sandbox-check.d.ts} +4 -2
  245. package/dist/runner/{recipe-check.js → vercel-sandbox-check.js} +7 -2
  246. package/dist/runner/{recipe.d.ts → vercel-sandbox-options.d.ts} +59 -28
  247. package/dist/runner/{recipe.js → vercel-sandbox-options.js} +128 -84
  248. package/dist/runner/vercel-sandbox-secrets.d.ts +116 -0
  249. package/dist/runner/{recipe-secrets.js → vercel-sandbox-secrets.js} +159 -26
  250. package/dist/sdk/extension/credential-diagnosis.d.ts +3 -1
  251. package/dist/sdk/extension/credential-diagnosis.js +25 -5
  252. package/dist/sdk/extension/credential-source.d.ts +20 -3
  253. package/dist/sdk/extension/credential-source.js +4 -4
  254. package/dist/sdk/extension/index.d.ts +3 -2
  255. package/dist/sdk/extension/index.js +2 -1
  256. package/dist/sdk/extension/resource-definition.d.ts +1 -1
  257. package/dist/sdk/extension/secret-source.d.ts +1 -1
  258. package/dist/sdk/extension/secret-source.js +1 -1
  259. package/dist/sdk/extension/vercel-oidc-facts.d.ts +20 -0
  260. package/dist/sdk/extension/vercel-oidc-facts.js +20 -0
  261. package/dist/shared/cleanup.d.ts +3 -3
  262. package/dist/shared/cleanup.js +15 -5
  263. package/dist/shared/snapshot-text.d.ts +4 -4
  264. package/dist/shared/snapshot-text.js +11 -11
  265. package/dist/time/duration.js +1 -1
  266. package/package.json +5 -3
  267. package/skills/overview.md +4 -4
  268. package/skills/plan-runs.md +1 -1
  269. package/skills/read-run-output.md +6 -6
  270. package/dist/application.d.ts +0 -21
  271. package/dist/application.js +0 -30
  272. package/dist/chunks/chunk-7EENF73W.js +0 -782
  273. package/dist/chunks/chunk-Z5PBVG3Y.js +0 -2599
  274. package/dist/commands/exec/across-sandboxes-run.d.ts +0 -180
  275. package/dist/commands/exec/across-sandboxes-run.js +0 -339
  276. package/dist/commands/exec/plan-only.d.ts +0 -10
  277. package/dist/commands/exec/plan-only.js +0 -45
  278. package/dist/commands/exec/run-command.d.ts +0 -475
  279. package/dist/commands/exec/run-command.js +0 -603
  280. package/dist/commands/exec/run-planned.d.ts +0 -20
  281. package/dist/commands/exec/run-planned.js +0 -22
  282. package/dist/commands/exec/sandbox-view.d.ts +0 -19
  283. package/dist/commands/exec/sandbox-view.js +0 -72
  284. package/dist/commands/test/plan.d.ts +0 -92
  285. package/dist/commands/test/plan.js +0 -125
  286. package/dist/core/sandbox-end.d.ts +0 -64
  287. package/dist/runner/live/snapshot-cache-gateway.d.ts +0 -12
  288. package/dist/runner/recipe-secrets.d.ts +0 -67
  289. package/dist/runner/snapshot-cache.d.ts +0 -148
  290. package/dist/runner/snapshot-cache.js +0 -126
@@ -1,15 +1,13 @@
1
1
  import {
2
- DEFINITION_SET,
3
- EXTENSIONS,
4
- RESOURCES
5
- } from "./chunk-DWEAHX4T.js";
2
+ DEFINITION_SET
3
+ } from "./chunk-OI4AP6Z7.js";
6
4
  import {
7
5
  median,
8
6
  seconds,
9
7
  shortFile,
10
8
  truncate,
11
9
  visibleLength
12
- } from "./chunk-G3PHMXH5.js";
10
+ } from "./chunk-KQ5FXRUD.js";
13
11
  import {
14
12
  PALETTE,
15
13
  paintSwatch
@@ -19,177 +17,7 @@ import {
19
17
  sameRow,
20
18
  setupPhaseKey,
21
19
  setupPhaseWords
22
- } from "./chunk-FOZWA52V.js";
23
- import {
24
- defaultResourceKey,
25
- optionKeyPath
26
- } from "./chunk-AWBSONHB.js";
27
-
28
- // src/planning/file-lists.ts
29
- function byCodeUnits(a, b) {
30
- return a < b ? -1 : a > b ? 1 : 0;
31
- }
32
- function dealFileLists(files, count) {
33
- const sorted = [...new Set(files)].toSorted(byCodeUnits);
34
- const lists = Array.from({ length: Math.min(count, sorted.length) }, () => []);
35
- sorted.forEach((file, index) => lists[index % lists.length]?.push(file));
36
- return lists;
37
- }
38
- function comparedPath(path) {
39
- let normal = path.replaceAll("\\", "/").replace(/\/{2,}/g, "/");
40
- while (normal.startsWith("./")) normal = normal.slice(2);
41
- return normal;
42
- }
43
- function fileListMismatches(sandboxes) {
44
- return sandboxes.flatMap(({ sandbox, files, exitCode, reported, whole }) => {
45
- if (files === null || exitCode === null || !whole) return [];
46
- const listed = new Set(files.map(comparedPath));
47
- const seen = new Set(reported.map(comparedPath));
48
- const missing = [...listed].filter((file) => !seen.has(file)).toSorted(byCodeUnits);
49
- const extra = [...seen].filter((file) => !listed.has(file)).toSorted(byCodeUnits);
50
- return missing.length === 0 && extra.length === 0 ? [] : [{ sandbox, missing, extra }];
51
- });
52
- }
53
- var NAMED_PATHS = 3;
54
- function pathsText(paths) {
55
- const named = paths.slice(0, NAMED_PATHS).join(", ");
56
- return paths.length > NAMED_PATHS ? `${named}, and ${paths.length - NAMED_PATHS} more` : named;
57
- }
58
- function fileListMismatchText({ sandbox, missing, extra }, options = {}) {
59
- const files = (n) => `${n} test ${n === 1 ? "file" : "files"}`;
60
- const parts = [
61
- ...missing.length === 0 ? [] : [`reported nothing for ${files(missing.length)} of its file list: ${pathsText(missing)}`],
62
- ...extra.length === 0 ? [] : [`reported ${files(extra.length)} not in its file list: ${pathsText(extra)}`]
63
- ];
64
- const hint = extra.length > 0 && options.extraHint !== void 0 ? ` ${options.extraHint}` : "";
65
- return `Runner sandbox ${sandbox} ${parts.join("; it ")}.${hint}`;
66
- }
67
-
68
- // src/planning/resource-flags.ts
69
- import { z } from "zod";
70
- function flagField(prefix, option) {
71
- return `${prefix}${option.charAt(0).toUpperCase()}${option.slice(1)}`;
72
- }
73
- function flagSpelling(field) {
74
- return `--${field.replace(/([A-Z]+)([A-Z][a-z])/g, "$1-$2").replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase()}`;
75
- }
76
- var RESOURCE_FLAGS = RESOURCES.flatMap((definition) => {
77
- const options = definition.options;
78
- return Object.entries(options).flatMap(([option, rule]) => {
79
- const help = rule.flag;
80
- if (help === void 0) return [];
81
- const field = flagField(definition.flagPrefix, option);
82
- return [
83
- {
84
- definition: definition.name,
85
- resource: defaultResourceKey(definition),
86
- option,
87
- field,
88
- flag: flagSpelling(field),
89
- rule,
90
- help
91
- }
92
- ];
93
- });
94
- });
95
- var RESOURCE_FLAG_HELP = Object.fromEntries(
96
- RESOURCE_FLAGS.map(({ field, help }) => [field, help])
97
- );
98
- var RESOURCE_USAGE_FLAGS = RESOURCE_FLAGS.map(({ flag, help, rule }) => {
99
- if (help.valueLabel !== void 0) return `[${flag} <${help.valueLabel}>]`;
100
- return rule.default === true ? `[${flag}=false]` : `[${flag}]`;
101
- }).join(" ");
102
- function resourceRunExamples() {
103
- return EXTENSIONS.flatMap(({ examples }) => examples?.exec ?? []);
104
- }
105
- function baseType(schema, field) {
106
- let input = schema;
107
- while (input instanceof z.ZodPipe) input = input.in;
108
- if (input instanceof z.ZodNumber) return z.number();
109
- if (input instanceof z.ZodString) return z.string();
110
- if (input instanceof z.ZodBoolean) return z.boolean();
111
- if (input instanceof z.ZodEnum) return input;
112
- throw new Error(`The run flag ${field}'s option schema has no number, string, boolean or enum base`);
113
- }
114
- function resourceFlagFields(taken) {
115
- const fields = {};
116
- for (const { field, rule } of RESOURCE_FLAGS) {
117
- if (Object.hasOwn(fields, field) || taken.includes(field))
118
- throw new Error(`Two run flags share the request field ${field}`);
119
- fields[field] = baseType(rule.schema, field).optional();
120
- }
121
- return fields;
122
- }
123
- function readResourceFlags(request) {
124
- const values = {};
125
- const problems = [];
126
- for (const { definition, option, field, flag, rule } of RESOURCE_FLAGS) {
127
- const value = request[field];
128
- if (value === void 0) continue;
129
- const checked = rule.schema.safeParse(value);
130
- if (checked.success) values[definition] = { ...values[definition], [option]: checked.data };
131
- else problems.push(...checked.error.issues.map(({ message }) => ({ field, message: `${flag} ${message}.` })));
132
- }
133
- if (problems.length > 0) return { ok: false, problems };
134
- return { ok: true, values };
135
- }
136
- function resourceFlagProblems(request) {
137
- const read = readResourceFlags(request);
138
- return read.ok ? [] : read.problems;
139
- }
140
- function resourceFlagValues(request) {
141
- const read = readResourceFlags(request);
142
- if (!read.ok) throw new Error(`The flags should have been refused: ${read.problems.map((p) => p.message).join(" ")}`);
143
- return read.values;
144
- }
145
-
146
- // src/planning/test-plan.ts
147
- function recordedPlan(testPlan, options) {
148
- return testPlan.kind === "counted" ? {
149
- ...testPlan.tests === void 0 ? {} : { tests: testPlan.tests },
150
- files: testPlan.files,
151
- options: options.map((option) => ({ ...option }))
152
- } : void 0;
153
- }
154
- function testPlanLine(plan) {
155
- return `Running ${testPlanText(plan)}`;
156
- }
157
- function testPlanText(plan) {
158
- const sandboxes = plan.sandboxes === void 0 ? void 0 : sandboxCountText(plan.sandboxes);
159
- const leftOut = plan.sandboxes?.leftOut ?? 0;
160
- const count = plan.files === void 0 ? void 0 : leftOut > 0 ? `${plan.files - leftOut} of ${plan.files} test files` : plan.sandboxes !== void 0 && plan.tests === void 0 ? `${plan.files} test ${plan.files === 1 ? "file" : "files"}` : countText({ tests: plan.tests, files: plan.files });
161
- const head = count === void 0 ? sandboxes : sandboxes === void 0 ? count : `${count} in ${sandboxes}`;
162
- return [...head === void 0 ? [] : [head], ...plan.options.map(planOptionText)].join("; ");
163
- }
164
- function sandboxCountText({ count, from, max, requested, default: given }) {
165
- const sandboxes = `${count} ${count === 1 ? "runner sandbox" : "runner sandboxes"}`;
166
- if (from === "default" && given !== void 0 && given > max)
167
- return `${sandboxes} (${SANDBOX_COUNT_FROM.default} ${given}, lowered to the max ${max}${requested === void 0 ? "" : ", then to the number of test files"})`;
168
- const source = requested === void 0 ? SANDBOX_COUNT_FROM[from] : `${SANDBOX_COUNT_FROM[from]} ${requested}, lowered to the number of test files`;
169
- return `${sandboxes} (${source}, max ${max})`;
170
- }
171
- var SANDBOX_COUNT_FROM = {
172
- flag: "--sandboxes",
173
- "file-lists": "--file-lists",
174
- default: "runner.sandboxes.default"
175
- };
176
- function countText({ tests, files }) {
177
- const inFiles = `in ${files} ${files === 1 ? "file" : "files"}`;
178
- return tests === void 0 ? `tests ${inFiles}` : `${tests} ${tests === 1 ? "test" : "tests"} ${inFiles}`;
179
- }
180
- function planOptionText({ path, value, from }) {
181
- return `${path} ${String(value)} (${fromText(path, from)})`;
182
- }
183
- function fromText(path, from) {
184
- switch (from) {
185
- case "flag":
186
- return RESOURCE_FLAGS.find(({ resource, option }) => optionKeyPath(resource, option) === path)?.flag ?? "a flag";
187
- case "file":
188
- return "config file";
189
- case "default":
190
- return "default";
191
- }
192
- }
20
+ } from "./chunk-3VXZONGE.js";
193
21
 
194
22
  // src/shared/tests-summary.ts
195
23
  var SLOWEST_FILES = 3;
@@ -937,19 +765,6 @@ function breakdownText(row) {
937
765
  }
938
766
 
939
767
  export {
940
- dealFileLists,
941
- comparedPath,
942
- fileListMismatches,
943
- fileListMismatchText,
944
- RESOURCE_FLAG_HELP,
945
- RESOURCE_USAGE_FLAGS,
946
- resourceRunExamples,
947
- resourceFlagFields,
948
- resourceFlagProblems,
949
- resourceFlagValues,
950
- recordedPlan,
951
- testPlanLine,
952
- testPlanText,
953
768
  testsSummaryLines,
954
769
  testsChart,
955
770
  workerLaneNotes,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  redactor
3
- } from "./chunk-HVNK3I45.js";
3
+ } from "./chunk-FDUY3BNF.js";
4
4
  import {
5
5
  declaredSecretValues,
6
6
  effectiveConfig
7
- } from "./chunk-DC2CDHNK.js";
7
+ } from "./chunk-2JMWUKH3.js";
8
8
 
9
9
  // src/planning/suites.ts
10
10
  function resolveProjectTests(file, driverByName) {
@@ -51,7 +51,7 @@ function formatCommandLine(command) {
51
51
  }
52
52
  function targetRedactor(target, env) {
53
53
  const runner = target.settingsFile.values?.settings.runner;
54
- return redactor(declaredSecretValues(runner?.kind === "vercel-sandbox" ? runner.recipe : void 0, env));
54
+ return redactor(declaredSecretValues(runner?.kind === "vercel-sandbox" ? runner.options : void 0, env));
55
55
  }
56
56
  function preRunLine(target, extraCliArgs, redact) {
57
57
  const label = target.name === null ? "tests" : `suite ${target.name}`;
@@ -2,21 +2,7 @@ import {
2
2
  isoSecondsText,
3
3
  paint,
4
4
  seconds
5
- } from "./chunk-G3PHMXH5.js";
6
-
7
- // src/shared/dashboard.ts
8
- function projectPage({ team, project }) {
9
- return `https://vercel.com/${encodeURIComponent(team)}/${encodeURIComponent(project)}`;
10
- }
11
- function sandboxPage(where, name) {
12
- return `${projectPage(where)}/sandboxes/${encodeURIComponent(name)}`;
13
- }
14
- function sandboxConnectPage(where, name) {
15
- return `${sandboxPage(where, name)}/connect`;
16
- }
17
- function snapshotPage(where, id) {
18
- return `${projectPage(where)}/sandboxes/snapshots/${encodeURIComponent(id)}`;
19
- }
5
+ } from "./chunk-KQ5FXRUD.js";
20
6
 
21
7
  // src/shared/sandbox-table.ts
22
8
  var SANDBOX_TABLE_HEADER = [
@@ -92,9 +78,6 @@ function sandboxTableLines(records, style = paint(false)) {
92
78
  }
93
79
 
94
80
  export {
95
- sandboxPage,
96
- sandboxConnectPage,
97
- snapshotPage,
98
81
  SANDBOX_TABLE_HEADER,
99
82
  testTotalsText,
100
83
  sandboxStateText,
@@ -0,0 +1,198 @@
1
+ import {
2
+ EXTENSIONS,
3
+ RESOURCES
4
+ } from "./chunk-OI4AP6Z7.js";
5
+ import {
6
+ defaultResourceKey,
7
+ optionKeyPath
8
+ } from "./chunk-XBDRVFEV.js";
9
+
10
+ // src/planning/file-lists.ts
11
+ function byCodeUnits(a, b) {
12
+ return a < b ? -1 : a > b ? 1 : 0;
13
+ }
14
+ function dealFileLists(files, count) {
15
+ const sorted = [...new Set(files)].toSorted(byCodeUnits);
16
+ const lists = Array.from({ length: Math.min(count, sorted.length) }, () => []);
17
+ sorted.forEach((file, index) => lists[index % lists.length]?.push(file));
18
+ return lists;
19
+ }
20
+ function comparedPath(path) {
21
+ let normal = path.replaceAll("\\", "/").replace(/\/{2,}/g, "/");
22
+ while (normal.startsWith("./")) normal = normal.slice(2);
23
+ return normal;
24
+ }
25
+ function fileListMismatches(sandboxes) {
26
+ return sandboxes.flatMap(({ sandbox, files, exitCode, reported, whole }) => {
27
+ if (files === null || exitCode === null || !whole) return [];
28
+ const listed = new Set(files.map(comparedPath));
29
+ const seen = new Set(reported.map(comparedPath));
30
+ const missing = [...listed].filter((file) => !seen.has(file)).toSorted(byCodeUnits);
31
+ const extra = [...seen].filter((file) => !listed.has(file)).toSorted(byCodeUnits);
32
+ return missing.length === 0 && extra.length === 0 ? [] : [{ sandbox, missing, extra }];
33
+ });
34
+ }
35
+ var NAMED_PATHS = 3;
36
+ function pathsText(paths) {
37
+ const named = paths.slice(0, NAMED_PATHS).join(", ");
38
+ return paths.length > NAMED_PATHS ? `${named}, and ${paths.length - NAMED_PATHS} more` : named;
39
+ }
40
+ function fileListMismatchText({ sandbox, missing, extra }, options = {}) {
41
+ const files = (n) => `${n} test ${n === 1 ? "file" : "files"}`;
42
+ const parts = [
43
+ ...missing.length === 0 ? [] : [`reported nothing for ${files(missing.length)} of its file list: ${pathsText(missing)}`],
44
+ ...extra.length === 0 ? [] : [`reported ${files(extra.length)} not in its file list: ${pathsText(extra)}`]
45
+ ];
46
+ const hint = extra.length > 0 && options.extraHint !== void 0 ? ` ${options.extraHint}` : "";
47
+ return `Runner sandbox ${sandbox} ${parts.join("; it ")}.${hint}`;
48
+ }
49
+
50
+ // src/planning/resource-flags.ts
51
+ import { z } from "zod";
52
+ function flagField(prefix, option) {
53
+ return `${prefix}${option.charAt(0).toUpperCase()}${option.slice(1)}`;
54
+ }
55
+ function flagSpelling(field) {
56
+ return `--${field.replace(/([A-Z]+)([A-Z][a-z])/g, "$1-$2").replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase()}`;
57
+ }
58
+ var RESOURCE_FLAGS = RESOURCES.flatMap((definition) => {
59
+ const options = definition.options;
60
+ return Object.entries(options).flatMap(([option, rule]) => {
61
+ const help = rule.flag;
62
+ if (help === void 0) return [];
63
+ const field = flagField(definition.flagPrefix, option);
64
+ return [
65
+ {
66
+ definition: definition.name,
67
+ resource: defaultResourceKey(definition),
68
+ option,
69
+ field,
70
+ flag: flagSpelling(field),
71
+ rule,
72
+ help
73
+ }
74
+ ];
75
+ });
76
+ });
77
+ var RESOURCE_FLAG_HELP = Object.fromEntries(
78
+ RESOURCE_FLAGS.map(({ field, help }) => [field, help])
79
+ );
80
+ var RESOURCE_USAGE_FLAGS = RESOURCE_FLAGS.map(({ flag, help, rule }) => {
81
+ if (help.valueLabel !== void 0) return `[${flag} <${help.valueLabel}>]`;
82
+ return rule.default === true ? `[${flag}=false]` : `[${flag}]`;
83
+ }).join(" ");
84
+ function resourceRunExamples() {
85
+ return EXTENSIONS.flatMap(({ examples }) => examples?.exec ?? []);
86
+ }
87
+ function baseType(schema, field) {
88
+ let input = schema;
89
+ while (input instanceof z.ZodPipe) input = input.in;
90
+ if (input instanceof z.ZodNumber) return z.number();
91
+ if (input instanceof z.ZodString) return z.string();
92
+ if (input instanceof z.ZodBoolean) return z.boolean();
93
+ if (input instanceof z.ZodEnum) return input;
94
+ throw new Error(`The run flag ${field}'s option schema has no number, string, boolean or enum base`);
95
+ }
96
+ function resourceFlagFields(taken) {
97
+ const fields = {};
98
+ for (const { field, rule } of RESOURCE_FLAGS) {
99
+ if (Object.hasOwn(fields, field) || taken.includes(field))
100
+ throw new Error(`Two run flags share the request field ${field}`);
101
+ fields[field] = baseType(rule.schema, field).optional();
102
+ }
103
+ return fields;
104
+ }
105
+ function readResourceFlags(request) {
106
+ const values = {};
107
+ const problems = [];
108
+ for (const { definition, option, field, flag, rule } of RESOURCE_FLAGS) {
109
+ const value = request[field];
110
+ if (value === void 0) continue;
111
+ const checked = rule.schema.safeParse(value);
112
+ if (checked.success) values[definition] = { ...values[definition], [option]: checked.data };
113
+ else problems.push(...checked.error.issues.map(({ message }) => ({ field, message: `${flag} ${message}.` })));
114
+ }
115
+ if (problems.length > 0) return { ok: false, problems };
116
+ return { ok: true, values };
117
+ }
118
+ function resourceFlagProblems(request) {
119
+ const read = readResourceFlags(request);
120
+ return read.ok ? [] : read.problems;
121
+ }
122
+ function resourceFlagValues(request) {
123
+ const read = readResourceFlags(request);
124
+ if (!read.ok) throw new Error(`The flags should have been refused: ${read.problems.map((p) => p.message).join(" ")}`);
125
+ return read.values;
126
+ }
127
+
128
+ // src/planning/test-plan.ts
129
+ function recordedPlan(testPlan, options) {
130
+ return testPlan.kind === "counted" ? {
131
+ ...testPlan.tests === void 0 ? {} : { tests: testPlan.tests },
132
+ files: testPlan.files,
133
+ options: options.map((option) => ({ ...option }))
134
+ } : void 0;
135
+ }
136
+ function plannedTestPlan(plan) {
137
+ const base = recordedPlan(plan.testPlan, plan.planOptions);
138
+ if (plan.sandboxes === void 0) return base;
139
+ return {
140
+ ...base ?? { options: [] },
141
+ sandboxes: { ...plan.sandboxes.count }
142
+ };
143
+ }
144
+ function testPlanLine(plan) {
145
+ return `Running ${testPlanText(plan)}`;
146
+ }
147
+ function testPlanText(plan) {
148
+ const sandboxes = plan.sandboxes === void 0 ? void 0 : sandboxCountText(plan.sandboxes);
149
+ const leftOut = plan.sandboxes?.leftOut ?? 0;
150
+ const count = plan.files === void 0 ? void 0 : leftOut > 0 ? `${plan.files - leftOut} of ${plan.files} test files` : plan.sandboxes !== void 0 && plan.tests === void 0 ? `${plan.files} test ${plan.files === 1 ? "file" : "files"}` : countText({ tests: plan.tests, files: plan.files });
151
+ const head = count === void 0 ? sandboxes : sandboxes === void 0 ? count : `${count} in ${sandboxes}`;
152
+ return [...head === void 0 ? [] : [head], ...plan.options.map(planOptionText)].join("; ");
153
+ }
154
+ function sandboxCountText({ count, from, max, requested, default: given }) {
155
+ const sandboxes = `${count} ${count === 1 ? "runner sandbox" : "runner sandboxes"}`;
156
+ if (from === "default" && given !== void 0 && given > max)
157
+ return `${sandboxes} (${SANDBOX_COUNT_FROM.default} ${given}, lowered to the max ${max}${requested === void 0 ? "" : ", then to the number of test files"})`;
158
+ const source = requested === void 0 ? SANDBOX_COUNT_FROM[from] : `${SANDBOX_COUNT_FROM[from]} ${requested}, lowered to the number of test files`;
159
+ return `${sandboxes} (${source}, max ${max})`;
160
+ }
161
+ var SANDBOX_COUNT_FROM = {
162
+ flag: "--sandboxes",
163
+ "file-lists": "--file-lists",
164
+ default: "runner.sandboxes.default"
165
+ };
166
+ function countText({ tests, files }) {
167
+ const inFiles = `in ${files} ${files === 1 ? "file" : "files"}`;
168
+ return tests === void 0 ? `tests ${inFiles}` : `${tests} ${tests === 1 ? "test" : "tests"} ${inFiles}`;
169
+ }
170
+ function planOptionText({ path, value, from }) {
171
+ return `${path} ${String(value)} (${fromText(path, from)})`;
172
+ }
173
+ function fromText(path, from) {
174
+ switch (from) {
175
+ case "flag":
176
+ return RESOURCE_FLAGS.find(({ resource, option }) => optionKeyPath(resource, option) === path)?.flag ?? "a flag";
177
+ case "file":
178
+ return "config file";
179
+ case "default":
180
+ return "default";
181
+ }
182
+ }
183
+
184
+ export {
185
+ RESOURCE_FLAG_HELP,
186
+ RESOURCE_USAGE_FLAGS,
187
+ resourceRunExamples,
188
+ resourceFlagFields,
189
+ resourceFlagProblems,
190
+ resourceFlagValues,
191
+ plannedTestPlan,
192
+ testPlanLine,
193
+ testPlanText,
194
+ dealFileLists,
195
+ comparedPath,
196
+ fileListMismatches,
197
+ fileListMismatchText
198
+ };
@@ -1,7 +1,21 @@
1
1
  import {
2
2
  secondsOf,
3
3
  secondsText
4
- } from "./chunk-FOZWA52V.js";
4
+ } from "./chunk-3VXZONGE.js";
5
+
6
+ // src/shared/dashboard.ts
7
+ function projectPage({ team, project }) {
8
+ return `https://vercel.com/${encodeURIComponent(team)}/${encodeURIComponent(project)}`;
9
+ }
10
+ function sandboxPage(where, name) {
11
+ return `${projectPage(where)}/sandboxes/${encodeURIComponent(name)}`;
12
+ }
13
+ function sandboxConnectPage(where, name) {
14
+ return `${sandboxPage(where, name)}/connect`;
15
+ }
16
+ function snapshotPage(where, id) {
17
+ return `${projectPage(where)}/sandboxes/snapshots/${encodeURIComponent(id)}`;
18
+ }
5
19
 
6
20
  // src/shared/text.ts
7
21
  function seconds(ms) {
@@ -69,6 +83,9 @@ function spread(left, right, width) {
69
83
  }
70
84
 
71
85
  export {
86
+ sandboxPage,
87
+ sandboxConnectPage,
88
+ snapshotPage,
72
89
  seconds,
73
90
  keepTimeText,
74
91
  releaseText,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  commandTree
3
- } from "./chunk-VL7WFTVQ.js";
3
+ } from "./chunk-24UYAK4R.js";
4
4
 
5
5
  // src/command-tree.ts
6
6
  var stormCommands = commandTree({ id: "storm" });
@@ -5,11 +5,11 @@ import {
5
5
  commandExitStatus,
6
6
  observeAll,
7
7
  sandboxEndFacts
8
- } from "./chunk-FOZWA52V.js";
8
+ } from "./chunk-3VXZONGE.js";
9
9
  import {
10
10
  parseTestEvent,
11
11
  testEventLine
12
- } from "./chunk-DC2CDHNK.js";
12
+ } from "./chunk-2JMWUKH3.js";
13
13
 
14
14
  // src/run-directory/reader.ts
15
15
  import { z as z4 } from "zod";
@@ -147,16 +147,18 @@ var snapshotSchema = z2.object({
147
147
  id: z2.string(),
148
148
  base: z2.string(),
149
149
  built: z2.boolean(),
150
- builtBehind: z2.number().nullable()
150
+ builtBehind: z2.number().nullable(),
151
+ /** Where a reused snapshot came from (`local` or `shared`); null when built, or absent in older records. */
152
+ source: z2.enum(["local", "shared"]).nullable().exactOptional()
151
153
  });
152
154
  var whereSchema = z2.discriminatedUnion("kind", [
153
155
  z2.object({ kind: z2.literal("launch-machine") }),
154
156
  z2.object({
155
157
  kind: z2.literal("vercel-sandbox"),
156
- team: z2.string(),
157
- project: z2.string(),
158
+ team: z2.string().nullable(),
159
+ project: z2.string().nullable(),
158
160
  region: z2.string(),
159
- runtime: z2.string(),
161
+ image: z2.string(),
160
162
  vcpus: z2.number().int().positive(),
161
163
  base: z2.string(),
162
164
  baseRef: z2.string(),
@@ -204,7 +206,7 @@ var sandboxRecordSchema = z2.object({
204
206
  });
205
207
  var SANDBOX_TAIL_LINES = 20;
206
208
  var runRecordSchema = z2.object({
207
- version: z2.literal(5),
209
+ version: z2.literal(6),
208
210
  startedAt: z2.string(),
209
211
  cwd: z2.string(),
210
212
  configFile: z2.string().nullable(),
@@ -267,15 +269,15 @@ function runEnd(outcome, ran, tests, reports, wallMs) {
267
269
  function commandMs(ran) {
268
270
  return ran?.outcome === void 0 || ran.outcome === "stopped" || ran.endedAt === void 0 ? null : ran.endedAt - ran.startedAt;
269
271
  }
270
- function startedWhere(run) {
271
- if (run.runner === void 0) return { kind: "launch-machine" };
272
- const { prepared, target } = run.runner;
272
+ function startedWhere(runner) {
273
+ if (runner.kind === "launch-machine") return { kind: "launch-machine" };
274
+ const { prepared, target } = runner.session;
273
275
  return {
274
276
  kind: "vercel-sandbox",
275
- team: target.team,
276
- project: target.project,
277
- region: prepared.recipe.region,
278
- runtime: prepared.recipe.runtime,
277
+ team: target?.team ?? null,
278
+ project: target?.project ?? null,
279
+ region: prepared.options.region,
280
+ image: prepared.options.image,
279
281
  vcpus: prepared.vcpus,
280
282
  base: prepared.base,
281
283
  baseRef: prepared.baseRef,
@@ -295,7 +297,8 @@ function endedWhere(where, runner) {
295
297
  id: snapshot.id,
296
298
  base: snapshot.base,
297
299
  built: snapshot.kind === "built",
298
- builtBehind: snapshot.builtBehind
300
+ builtBehind: snapshot.builtBehind,
301
+ source: snapshot.kind === "reused" ? snapshot.source : null
299
302
  },
300
303
  keptUntil: runner?.kept?.stopsAt ?? null,
301
304
  uploadBytes: runner?.uploadBytes ?? null
@@ -943,7 +946,7 @@ function summaryEvent(event) {
943
946
  async function openRecording(gateway, start, extra) {
944
947
  const startedAt = start.clock.now();
945
948
  const record = start.redact({
946
- version: 5,
949
+ version: 6,
947
950
  startedAt: startedAt.toISOString(),
948
951
  cwd: start.cwd,
949
952
  configFile: start.configFile,
@@ -970,7 +973,7 @@ async function openRecording(gateway, start, extra) {
970
973
  async function recordRun(gateway, start) {
971
974
  const { definitionSet } = start;
972
975
  const { record, directory, opened, wallMs, abandon } = await openRecording(gateway, start, {
973
- where: startedWhere(start.run)
976
+ where: startedWhere(start.run.runner)
974
977
  });
975
978
  const collector = runCollector(definitionSet, directory);
976
979
  return {
@@ -1012,7 +1015,7 @@ async function recordRun(gateway, start) {
1012
1015
  async function recordAcrossSandboxes(gateway, start) {
1013
1016
  const { definitionSet, redact } = start;
1014
1017
  const { startedAt, record, directory, opened, wallMs, abandon } = await openRecording(gateway, start, {
1015
- where: startedWhere({ runner: start.runner }),
1018
+ where: startedWhere({ kind: "vercel-sandbox", session: start.runner }),
1016
1019
  sandboxes: start.sandboxes.map(
1017
1020
  (sandbox, index) => pendingSandboxRecord({ sandbox: index, argv: sandbox.argv, files: sandbox.files })
1018
1021
  )
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  CONFIG_FILE_NAME
3
- } from "./chunk-DC2CDHNK.js";
3
+ } from "./chunk-2JMWUKH3.js";
4
4
  import {
5
5
  defineErrors
6
- } from "./chunk-VL7WFTVQ.js";
6
+ } from "./chunk-24UYAK4R.js";
7
7
 
8
8
  // src/planning/suite-not-found.ts
9
9
  import { z } from "zod";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  testserverPoolDefinition
3
- } from "./chunk-R7XVBZOY.js";
3
+ } from "./chunk-EEENLQHE.js";
4
4
  import {
5
5
  testserverExtensionCommands
6
- } from "./chunk-ZG3WQ4UF.js";
6
+ } from "./chunk-55O4FCN4.js";
7
7
  import {
8
8
  defineExtension
9
- } from "./chunk-5CCP36QQ.js";
9
+ } from "./chunk-TXCOFC7N.js";
10
10
  import {
11
11
  driverContexts,
12
12
  driversOf,
13
13
  resourceDefinitionSet,
14
14
  resourcesOf
15
- } from "./chunk-FOZWA52V.js";
15
+ } from "./chunk-3VXZONGE.js";
16
16
  import {
17
17
  SECRET_MIN_LENGTH,
18
18
  argsText,
@@ -25,7 +25,7 @@ import {
25
25
  readSecretSourceValue,
26
26
  resourceFactory,
27
27
  secretSourceSchema
28
- } from "./chunk-AWBSONHB.js";
28
+ } from "./chunk-XBDRVFEV.js";
29
29
 
30
30
  // src/extensions/github/release.ts
31
31
  function fixtureRepoCleanupFailureText(cleanup, failure) {