@cnc-tools/storm 0.12.0 → 0.14.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 (188) hide show
  1. package/dist/application.js +5 -1
  2. package/dist/bin/storm.js +6 -2
  3. package/dist/build-info.js +1 -1
  4. package/dist/chunks/{chunk-FK4RLDEK.js → chunk-27P2QSIM.js} +1 -1
  5. package/dist/chunks/{chunk-ODQHQJLE.js → chunk-5ED3IDUJ.js} +749 -1121
  6. package/dist/chunks/{chunk-FSP3SJ35.js → chunk-5TMHYH7G.js} +16 -46
  7. package/dist/chunks/{chunk-Y3BUNNRG.js → chunk-BFLYGMG3.js} +12 -7
  8. package/dist/chunks/{chunk-LQKNI3EG.js → chunk-BRUIATTR.js} +6 -6
  9. package/dist/chunks/{chunk-RYRJNHL7.js → chunk-HOKDKP5A.js} +3 -9
  10. package/dist/chunks/{chunk-SXW6XN4R.js → chunk-IVRRGGCD.js} +60 -20
  11. package/dist/chunks/{chunk-TMQQYHUX.js → chunk-QBR5VHJ7.js} +1 -1
  12. package/dist/chunks/{chunk-YT5OROR7.js → chunk-RA4L2ACU.js} +12 -2
  13. package/dist/chunks/{chunk-TEEZL3GA.js → chunk-RKONDLPS.js} +17 -71
  14. package/dist/chunks/{chunk-IYM44FUX.js → chunk-UC6DULWY.js} +2 -2
  15. package/dist/chunks/{chunk-4XT5RC5T.js → chunk-XPCUINWS.js} +6 -42
  16. package/dist/chunks/{chunk-U7M3ZB3Z.js → chunk-YBPTMJUM.js} +123 -180
  17. package/dist/chunks/{chunk-ISGQJIQM.js → chunk-Z5OXOZD3.js} +125 -83
  18. package/dist/chunks/{chunk-7D6LC5JY.js → chunk-ZH5R7W4A.js} +7 -39
  19. package/dist/chunks/{live-app-AZ5N5HBD.js → live-app-FBVWUUMT.js} +7 -7
  20. package/dist/commands/exec/command.d.ts +4 -90
  21. package/dist/commands/exec/command.js +15 -41
  22. package/dist/commands/exec/define-run-command.d.ts +19 -100
  23. package/dist/commands/exec/define-run-command.js +48 -15
  24. package/dist/commands/exec/driver-plan.d.ts +24 -16
  25. package/dist/commands/exec/driver-plan.js +34 -15
  26. package/dist/commands/exec/driver-refusals.js +7 -6
  27. package/dist/commands/exec/exec-words.d.ts +1 -1
  28. package/dist/commands/exec/exec-words.js +8 -2
  29. package/dist/commands/exec/final-results.d.ts +39 -0
  30. package/dist/commands/exec/final-results.js +29 -0
  31. package/dist/commands/exec/live-view.js +18 -22
  32. package/dist/commands/exec/metadata.js +1 -1
  33. package/dist/commands/exec/outcomes.d.ts +15 -109
  34. package/dist/commands/exec/outcomes.js +25 -39
  35. package/dist/commands/exec/plan-run.d.ts +11 -3
  36. package/dist/commands/exec/plan-run.js +3 -2
  37. package/dist/commands/exec/progress.d.ts +3 -19
  38. package/dist/commands/exec/progress.js +16 -60
  39. package/dist/commands/exec/run-command.d.ts +5 -24
  40. package/dist/commands/exec/run-command.js +32 -84
  41. package/dist/commands/exec/run-metadata.d.ts +0 -6
  42. package/dist/commands/exec/run-metadata.js +2 -8
  43. package/dist/commands/exec/snapshot-text.d.ts +7 -16
  44. package/dist/commands/exec/snapshot-text.js +9 -49
  45. package/dist/commands/exec/test-plan.d.ts +2 -1
  46. package/dist/commands/exec/test-plan.js +13 -4
  47. package/dist/commands/exec/tests-summary.d.ts +2 -2
  48. package/dist/commands/exec/view.js +2 -12
  49. package/dist/commands/exec/worker-chart.d.ts +1 -1
  50. package/dist/commands/playwright/command.d.ts +12 -97
  51. package/dist/commands/playwright/command.js +14 -14
  52. package/dist/commands/playwright/metadata.js +2 -2
  53. package/dist/commands/runs/facts.d.ts +1 -37
  54. package/dist/commands/runs/facts.js +4 -36
  55. package/dist/commands/runs/list/command.d.ts +0 -72
  56. package/dist/commands/runs/list/command.js +6 -6
  57. package/dist/commands/runs/list/outcomes.d.ts +0 -36
  58. package/dist/commands/runs/logs/command.js +6 -6
  59. package/dist/commands/runs/show/command.d.ts +2 -74
  60. package/dist/commands/runs/show/command.js +16 -43
  61. package/dist/commands/runs/show/metadata.js +1 -1
  62. package/dist/commands/runs/show/outcomes.d.ts +1 -37
  63. package/dist/commands/runs/show/outcomes.js +8 -42
  64. package/dist/commands/snapshots/build/command.d.ts +14 -411
  65. package/dist/commands/snapshots/build/command.js +59 -234
  66. package/dist/commands/snapshots/build/metadata.js +10 -7
  67. package/dist/commands/snapshots/build/outcomes.d.ts +11 -241
  68. package/dist/commands/snapshots/build/outcomes.js +29 -196
  69. package/dist/commands/snapshots/list/command.d.ts +2 -36
  70. package/dist/commands/snapshots/list/command.js +20 -56
  71. package/dist/commands/snapshots/list/metadata.js +1 -1
  72. package/dist/commands/snapshots/list/outcomes.d.ts +2 -37
  73. package/dist/commands/snapshots/list/outcomes.js +13 -53
  74. package/dist/commands/vitest/command.d.ts +14 -98
  75. package/dist/commands/vitest/command.js +14 -14
  76. package/dist/commands/vitest/metadata.js +2 -2
  77. package/dist/config/resolve.d.ts +1 -1
  78. package/dist/config/resolve.js +2 -1
  79. package/dist/config/schema.d.ts +8 -0
  80. package/dist/config/schema.js +5 -4
  81. package/dist/core/events.d.ts +5 -6
  82. package/dist/core/run-state.d.ts +7 -29
  83. package/dist/core/run-state.js +3 -26
  84. package/dist/core/run.d.ts +6 -14
  85. package/dist/core/run.js +17 -28
  86. package/dist/extensions/playwright/driver.js +17 -10
  87. package/dist/extensions/testserver/commands/pool/create/command.js +4 -4
  88. package/dist/extensions/testserver/commands/pool/list/command.js +2 -2
  89. package/dist/extensions/testserver/definition.d.ts +1 -1
  90. package/dist/extensions/testserver/extension.d.ts +1 -1
  91. package/dist/extensions/testserver/options/rules.d.ts +3 -3
  92. package/dist/extensions/testserver/options/rules.js +5 -5
  93. package/dist/extensions/testserver/resource.d.ts +1 -1
  94. package/dist/extensions/testserver/vercel-cli/index.d.ts +1 -0
  95. package/dist/extensions/testserver/vercel-cli/index.js +1 -0
  96. package/dist/extensions/testserver/vercel-cli/report.js +5 -2
  97. package/dist/extensions/testserver/vercel-cli/session-id.d.ts +8 -0
  98. package/dist/extensions/testserver/vercel-cli/session-id.js +16 -0
  99. package/dist/extensions/testserver/vitest/config.d.ts +2 -2
  100. package/dist/extensions/testserver/vitest/config.js +2 -2
  101. package/dist/extensions/testserver/vitest/container-scope.d.ts +25 -16
  102. package/dist/extensions/testserver/vitest/container-scope.js +32 -13
  103. package/dist/extensions/testserver/vitest/diagnostics.d.ts +5 -4
  104. package/dist/extensions/testserver/vitest/diagnostics.js +15 -8
  105. package/dist/extensions/testserver/vitest/fixtures.d.ts +10 -1
  106. package/dist/extensions/testserver/vitest/fixtures.js +36 -10
  107. package/dist/extensions/testserver/vitest/types.d.ts +9 -0
  108. package/dist/extensions/vitest/driver.js +28 -14
  109. package/dist/extensions/vitest/plan/gateways.d.ts +28 -5
  110. package/dist/extensions/vitest/plan/gateways.js +2 -2
  111. package/dist/extensions/vitest/plan/list-output.d.ts +5 -0
  112. package/dist/extensions/vitest/plan/list-output.js +23 -9
  113. package/dist/extensions/vitest/plan/live/list-gateway.d.ts +3 -2
  114. package/dist/extensions/vitest/plan/live/list-gateway.js +77 -64
  115. package/dist/extensions/vitest/plan/plan-over.d.ts +19 -7
  116. package/dist/extensions/vitest/plan/plan-over.js +18 -7
  117. package/dist/extensions/vitest/plan/plan.d.ts +14 -5
  118. package/dist/extensions/vitest/plan/plan.js +23 -9
  119. package/dist/extensions.d.ts +2 -2
  120. package/dist/run-directory/index.d.ts +1 -1
  121. package/dist/run-directory/index.js +0 -1
  122. package/dist/run-directory/plan.d.ts +3 -2
  123. package/dist/run-directory/plan.js +6 -3
  124. package/dist/run-directory/recording.js +2 -2
  125. package/dist/run-directory/run-record.d.ts +18 -135
  126. package/dist/run-directory/run-record.js +8 -68
  127. package/dist/runner/build-snapshots.d.ts +50 -114
  128. package/dist/runner/build-snapshots.js +70 -159
  129. package/dist/runner/events.d.ts +4 -88
  130. package/dist/runner/gateways.d.ts +5 -23
  131. package/dist/runner/index.d.ts +5 -6
  132. package/dist/runner/index.js +1 -1
  133. package/dist/runner/live/snapshot-records.js +7 -18
  134. package/dist/runner/prepare.d.ts +11 -22
  135. package/dist/runner/prepare.js +6 -17
  136. package/dist/runner/ready.d.ts +16 -45
  137. package/dist/runner/ready.js +34 -59
  138. package/dist/runner/recipe.d.ts +5 -45
  139. package/dist/runner/recipe.js +0 -41
  140. package/dist/runner/sandboxed-command.d.ts +5 -3
  141. package/dist/runner/sandboxed-command.js +10 -4
  142. package/dist/runner/scope.d.ts +8 -25
  143. package/dist/runner/scope.js +4 -8
  144. package/dist/runner/session.d.ts +18 -65
  145. package/dist/runner/session.js +15 -83
  146. package/dist/runner/snapshot-build.d.ts +2 -2
  147. package/dist/runner/snapshot-cache.d.ts +22 -74
  148. package/dist/runner/snapshot-cache.js +15 -107
  149. package/dist/runner/snapshot-inspect.d.ts +9 -13
  150. package/dist/runner/snapshot-inspect.js +48 -57
  151. package/dist/runner/snapshot-key.d.ts +9 -14
  152. package/dist/runner/snapshot-key.js +15 -22
  153. package/dist/sdk/extension/driver.d.ts +32 -6
  154. package/dist/sdk/extension/driver.js +12 -2
  155. package/dist/sdk/extension/index.d.ts +1 -1
  156. package/dist/sdk/extension/index.js +2 -1
  157. package/dist/sdk/extension/resource-definition.d.ts +6 -5
  158. package/dist/vendor/testserver-sdk/container/api-request.d.ts +2 -3
  159. package/dist/vendor/testserver-sdk/container/api-request.js +2 -3
  160. package/dist/vendor/testserver-sdk/container/container.d.ts +12 -2
  161. package/dist/vendor/testserver-sdk/container/container.js +10 -7
  162. package/dist/vendor/testserver-sdk/container/recorder.d.ts +29 -7
  163. package/dist/vendor/testserver-sdk/container/recorder.js +26 -14
  164. package/dist/vendor/testserver-sdk/index.d.ts +1 -1
  165. package/dist/vendor/testserver-sdk/index.js +1 -1
  166. package/dist/vendor/testserver-sdk/proxy/exchange.d.ts +24 -5
  167. package/dist/vendor/testserver-sdk/proxy/exchange.js +43 -25
  168. package/dist/vendor/testserver-sdk/proxy/faulted-exchange.js +15 -10
  169. package/dist/vendor/testserver-sdk/proxy/faults.d.ts +6 -5
  170. package/dist/vendor/testserver-sdk/proxy/proxy.d.ts +10 -1
  171. package/dist/vendor/testserver-sdk/proxy/proxy.js +5 -3
  172. package/dist/vendor/testserver-sdk/proxy/records.d.ts +17 -17
  173. package/dist/vendor/testserver-sdk/proxy/records.js +18 -17
  174. package/dist/vendor/testserver-sdk/records/body.d.ts +7 -9
  175. package/dist/vendor/testserver-sdk/records/body.js +10 -15
  176. package/dist/vendor/testserver-sdk/records/headers.d.ts +79 -0
  177. package/dist/vendor/testserver-sdk/records/headers.js +162 -0
  178. package/dist/vendor/testserver-sdk/records/index.d.ts +2 -1
  179. package/dist/vendor/testserver-sdk/records/index.js +4 -2
  180. package/dist/vendor/testserver-sdk/records/records.d.ts +19 -10
  181. package/package.json +5 -4
  182. package/skills/overview.md +5 -5
  183. package/skills/read-run-output.md +8 -9
  184. package/dist/runner/snapshot-save.d.ts +0 -70
  185. package/dist/runner/snapshot-save.js +0 -160
  186. package/dist/runner/snapshot-start.d.ts +0 -25
  187. package/dist/runner/snapshot-start.js +0 -16
  188. package/skills/testserver-builds.md +0 -82
@@ -51,46 +51,10 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
51
51
  id: z.ZodString;
52
52
  base: z.ZodString;
53
53
  built: z.ZodBoolean;
54
- branch: z.ZodNullable<z.ZodString>;
55
- head: z.ZodNullable<z.ZodString>;
56
- kind: z.ZodNullable<z.ZodEnum<{
57
- base: "base";
58
- dev: "dev";
59
- }>>;
60
- builtAt: z.ZodNullable<z.ZodString>;
61
54
  builtBehind: z.ZodNullable<z.ZodNumber>;
62
55
  url: z.ZodString;
63
56
  }, z.core.$strip>>;
64
57
  uploadBytes: z.ZodNullable<z.ZodNumber>;
65
- noSaveReason: z.ZodNullable<z.ZodEnum<{
66
- "already-saved": "already-saved";
67
- ci: "ci";
68
- "command-failed": "command-failed";
69
- "keep-sandbox": "keep-sandbox";
70
- "no-save-flag": "no-save-flag";
71
- "not-trusted": "not-trusted";
72
- recipe: "recipe";
73
- }>>;
74
- save: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
75
- kind: z.ZodLiteral<"saved">;
76
- snapshotId: z.ZodString;
77
- base: z.ZodString;
78
- branch: z.ZodNullable<z.ZodString>;
79
- head: z.ZodString;
80
- ms: z.ZodNumber;
81
- sizeBytes: z.ZodNumber;
82
- entryWritten: z.ZodBoolean;
83
- url: z.ZodString;
84
- }, z.core.$strip>, z.ZodObject<{
85
- kind: z.ZodLiteral<"failed">;
86
- step: z.ZodEnum<{
87
- "save-snapshot": "save-snapshot";
88
- scrub: "scrub";
89
- }>;
90
- message: z.ZodString;
91
- }, z.core.$strip>, z.ZodObject<{
92
- kind: z.ZodLiteral<"stopped">;
93
- }, z.core.$strip>], "kind">>;
94
58
  }, z.core.$strip>], "kind">>;
95
59
  git: z.ZodNullable<z.ZodObject<{
96
60
  branch: z.ZodNullable<z.ZodString>;
@@ -180,46 +144,10 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
180
144
  id: z.ZodString;
181
145
  base: z.ZodString;
182
146
  built: z.ZodBoolean;
183
- branch: z.ZodNullable<z.ZodString>;
184
- head: z.ZodNullable<z.ZodString>;
185
- kind: z.ZodNullable<z.ZodEnum<{
186
- base: "base";
187
- dev: "dev";
188
- }>>;
189
- builtAt: z.ZodNullable<z.ZodString>;
190
147
  builtBehind: z.ZodNullable<z.ZodNumber>;
191
148
  url: z.ZodString;
192
149
  }, z.core.$strip>>;
193
150
  uploadBytes: z.ZodNullable<z.ZodNumber>;
194
- noSaveReason: z.ZodNullable<z.ZodEnum<{
195
- "already-saved": "already-saved";
196
- ci: "ci";
197
- "command-failed": "command-failed";
198
- "keep-sandbox": "keep-sandbox";
199
- "no-save-flag": "no-save-flag";
200
- "not-trusted": "not-trusted";
201
- recipe: "recipe";
202
- }>>;
203
- save: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
204
- kind: z.ZodLiteral<"saved">;
205
- snapshotId: z.ZodString;
206
- base: z.ZodString;
207
- branch: z.ZodNullable<z.ZodString>;
208
- head: z.ZodString;
209
- ms: z.ZodNumber;
210
- sizeBytes: z.ZodNumber;
211
- entryWritten: z.ZodBoolean;
212
- url: z.ZodString;
213
- }, z.core.$strip>, z.ZodObject<{
214
- kind: z.ZodLiteral<"failed">;
215
- step: z.ZodEnum<{
216
- "save-snapshot": "save-snapshot";
217
- scrub: "scrub";
218
- }>;
219
- message: z.ZodString;
220
- }, z.core.$strip>, z.ZodObject<{
221
- kind: z.ZodLiteral<"stopped">;
222
- }, z.core.$strip>], "kind">>;
223
151
  }, z.core.$strip>], "kind">>;
224
152
  git: z.ZodNullable<z.ZodObject<{
225
153
  branch: z.ZodNullable<z.ZodString>;
@@ -17,7 +17,7 @@ import {
17
17
  tookText,
18
18
  totalsText,
19
19
  totalsTone
20
- } from "../../../chunks/chunk-7D6LC5JY.js";
20
+ } from "../../../chunks/chunk-ZH5R7W4A.js";
21
21
  import {
22
22
  muted,
23
23
  path,
@@ -27,13 +27,13 @@ import {
27
27
  import "../../../chunks/chunk-NMVODY3P.js";
28
28
  import {
29
29
  pastRuns
30
- } from "../../../chunks/chunk-TEEZL3GA.js";
31
- import "../../../chunks/chunk-TMQQYHUX.js";
32
- import "../../../chunks/chunk-FSP3SJ35.js";
30
+ } from "../../../chunks/chunk-RKONDLPS.js";
31
+ import "../../../chunks/chunk-QBR5VHJ7.js";
32
+ import "../../../chunks/chunk-5TMHYH7G.js";
33
33
  import {
34
34
  findConfigFile
35
- } from "../../../chunks/chunk-ODQHQJLE.js";
36
- import "../../../chunks/chunk-YT5OROR7.js";
35
+ } from "../../../chunks/chunk-5ED3IDUJ.js";
36
+ import "../../../chunks/chunk-RA4L2ACU.js";
37
37
  import {
38
38
  stormCommands
39
39
  } from "../../../chunks/chunk-43MWZLJR.js";
@@ -41,46 +41,10 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
41
41
  id: z.ZodString;
42
42
  base: z.ZodString;
43
43
  built: z.ZodBoolean;
44
- branch: z.ZodNullable<z.ZodString>;
45
- head: z.ZodNullable<z.ZodString>;
46
- kind: z.ZodNullable<z.ZodEnum<{
47
- base: "base";
48
- dev: "dev";
49
- }>>;
50
- builtAt: z.ZodNullable<z.ZodString>;
51
44
  builtBehind: z.ZodNullable<z.ZodNumber>;
52
45
  url: z.ZodString;
53
46
  }, z.core.$strip>>;
54
47
  uploadBytes: z.ZodNullable<z.ZodNumber>;
55
- noSaveReason: z.ZodNullable<z.ZodEnum<{
56
- "already-saved": "already-saved";
57
- ci: "ci";
58
- "command-failed": "command-failed";
59
- "keep-sandbox": "keep-sandbox";
60
- "no-save-flag": "no-save-flag";
61
- "not-trusted": "not-trusted";
62
- recipe: "recipe";
63
- }>>;
64
- save: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
65
- kind: z.ZodLiteral<"saved">;
66
- snapshotId: z.ZodString;
67
- base: z.ZodString;
68
- branch: z.ZodNullable<z.ZodString>;
69
- head: z.ZodString;
70
- ms: z.ZodNumber;
71
- sizeBytes: z.ZodNumber;
72
- entryWritten: z.ZodBoolean;
73
- url: z.ZodString;
74
- }, z.core.$strip>, z.ZodObject<{
75
- kind: z.ZodLiteral<"failed">;
76
- step: z.ZodEnum<{
77
- "save-snapshot": "save-snapshot";
78
- scrub: "scrub";
79
- }>;
80
- message: z.ZodString;
81
- }, z.core.$strip>, z.ZodObject<{
82
- kind: z.ZodLiteral<"stopped">;
83
- }, z.core.$strip>], "kind">>;
84
48
  }, z.core.$strip>], "kind">>;
85
49
  git: z.ZodNullable<z.ZodObject<{
86
50
  branch: z.ZodNullable<z.ZodString>;
@@ -7,20 +7,20 @@ import {
7
7
  runsUnreadable,
8
8
  scopeFacts,
9
9
  scopeSchema
10
- } from "../../../chunks/chunk-7D6LC5JY.js";
10
+ } from "../../../chunks/chunk-ZH5R7W4A.js";
11
11
  import {
12
12
  renderOutcome
13
13
  } from "../../../chunks/chunk-T6AZIDZD.js";
14
14
  import "../../../chunks/chunk-NMVODY3P.js";
15
15
  import {
16
16
  pastRuns
17
- } from "../../../chunks/chunk-TEEZL3GA.js";
18
- import "../../../chunks/chunk-TMQQYHUX.js";
19
- import "../../../chunks/chunk-FSP3SJ35.js";
17
+ } from "../../../chunks/chunk-RKONDLPS.js";
18
+ import "../../../chunks/chunk-QBR5VHJ7.js";
19
+ import "../../../chunks/chunk-5TMHYH7G.js";
20
20
  import {
21
21
  findConfigFile
22
- } from "../../../chunks/chunk-ODQHQJLE.js";
23
- import "../../../chunks/chunk-YT5OROR7.js";
22
+ } from "../../../chunks/chunk-5ED3IDUJ.js";
23
+ import "../../../chunks/chunk-RA4L2ACU.js";
24
24
  import {
25
25
  stormCommands
26
26
  } from "../../../chunks/chunk-43MWZLJR.js";
@@ -38,46 +38,10 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
38
38
  id: z.ZodString;
39
39
  base: z.ZodString;
40
40
  built: z.ZodBoolean;
41
- branch: z.ZodNullable<z.ZodString>;
42
- head: z.ZodNullable<z.ZodString>;
43
- kind: z.ZodNullable<z.ZodEnum<{
44
- base: "base";
45
- dev: "dev";
46
- }>>;
47
- builtAt: z.ZodNullable<z.ZodString>;
48
41
  builtBehind: z.ZodNullable<z.ZodNumber>;
49
42
  url: z.ZodString;
50
43
  }, z.core.$strip>>;
51
44
  uploadBytes: z.ZodNullable<z.ZodNumber>;
52
- noSaveReason: z.ZodNullable<z.ZodEnum<{
53
- "already-saved": "already-saved";
54
- ci: "ci";
55
- "command-failed": "command-failed";
56
- "keep-sandbox": "keep-sandbox";
57
- "no-save-flag": "no-save-flag";
58
- "not-trusted": "not-trusted";
59
- recipe: "recipe";
60
- }>>;
61
- save: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
62
- kind: z.ZodLiteral<"saved">;
63
- snapshotId: z.ZodString;
64
- base: z.ZodString;
65
- branch: z.ZodNullable<z.ZodString>;
66
- head: z.ZodString;
67
- ms: z.ZodNumber;
68
- sizeBytes: z.ZodNumber;
69
- entryWritten: z.ZodBoolean;
70
- url: z.ZodString;
71
- }, z.core.$strip>, z.ZodObject<{
72
- kind: z.ZodLiteral<"failed">;
73
- step: z.ZodEnum<{
74
- "save-snapshot": "save-snapshot";
75
- scrub: "scrub";
76
- }>;
77
- message: z.ZodString;
78
- }, z.core.$strip>, z.ZodObject<{
79
- kind: z.ZodLiteral<"stopped">;
80
- }, z.core.$strip>], "kind">>;
81
45
  }, z.core.$strip>], "kind">>;
82
46
  git: z.ZodNullable<z.ZodObject<{
83
47
  branch: z.ZodNullable<z.ZodString>;
@@ -102,7 +66,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
102
66
  resourceRows: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>], null>>;
103
67
  }, z.core.$strip>>;
104
68
  plan: z.ZodNullable<z.ZodObject<{
105
- tests: z.ZodNumber;
69
+ tests: z.ZodOptional<z.ZodNumber>;
106
70
  files: z.ZodNumber;
107
71
  options: z.ZodArray<z.ZodObject<{
108
72
  path: z.ZodString;
@@ -317,46 +281,10 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
317
281
  id: z.ZodString;
318
282
  base: z.ZodString;
319
283
  built: z.ZodBoolean;
320
- branch: z.ZodNullable<z.ZodString>;
321
- head: z.ZodNullable<z.ZodString>;
322
- kind: z.ZodNullable<z.ZodEnum<{
323
- base: "base";
324
- dev: "dev";
325
- }>>;
326
- builtAt: z.ZodNullable<z.ZodString>;
327
284
  builtBehind: z.ZodNullable<z.ZodNumber>;
328
285
  url: z.ZodString;
329
286
  }, z.core.$strip>>;
330
287
  uploadBytes: z.ZodNullable<z.ZodNumber>;
331
- noSaveReason: z.ZodNullable<z.ZodEnum<{
332
- "already-saved": "already-saved";
333
- ci: "ci";
334
- "command-failed": "command-failed";
335
- "keep-sandbox": "keep-sandbox";
336
- "no-save-flag": "no-save-flag";
337
- "not-trusted": "not-trusted";
338
- recipe: "recipe";
339
- }>>;
340
- save: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
341
- kind: z.ZodLiteral<"saved">;
342
- snapshotId: z.ZodString;
343
- base: z.ZodString;
344
- branch: z.ZodNullable<z.ZodString>;
345
- head: z.ZodString;
346
- ms: z.ZodNumber;
347
- sizeBytes: z.ZodNumber;
348
- entryWritten: z.ZodBoolean;
349
- url: z.ZodString;
350
- }, z.core.$strip>, z.ZodObject<{
351
- kind: z.ZodLiteral<"failed">;
352
- step: z.ZodEnum<{
353
- "save-snapshot": "save-snapshot";
354
- scrub: "scrub";
355
- }>;
356
- message: z.ZodString;
357
- }, z.core.$strip>, z.ZodObject<{
358
- kind: z.ZodLiteral<"stopped">;
359
- }, z.core.$strip>], "kind">>;
360
288
  }, z.core.$strip>], "kind">>;
361
289
  git: z.ZodNullable<z.ZodObject<{
362
290
  branch: z.ZodNullable<z.ZodString>;
@@ -381,7 +309,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
381
309
  resourceRows: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>], null>>;
382
310
  }, z.core.$strip>>;
383
311
  plan: z.ZodNullable<z.ZodObject<{
384
- tests: z.ZodNumber;
312
+ tests: z.ZodOptional<z.ZodNumber>;
385
313
  files: z.ZodNumber;
386
314
  options: z.ZodArray<z.ZodObject<{
387
315
  path: z.ZodString;
@@ -20,7 +20,7 @@ import {
20
20
  tookText,
21
21
  totalsText,
22
22
  totalsTone
23
- } from "../../../chunks/chunk-7D6LC5JY.js";
23
+ } from "../../../chunks/chunk-ZH5R7W4A.js";
24
24
  import {
25
25
  bold,
26
26
  capsFor,
@@ -29,30 +29,29 @@ import {
29
29
  import {
30
30
  testPlanText,
31
31
  waterfallLines
32
- } from "../../../chunks/chunk-Y3BUNNRG.js";
32
+ } from "../../../chunks/chunk-BFLYGMG3.js";
33
33
  import {
34
- builtAtText,
35
- noSaveText
36
- } from "../../../chunks/chunk-4XT5RC5T.js";
37
- import "../../../chunks/chunk-ISGQJIQM.js";
38
- import "../../../chunks/chunk-IYM44FUX.js";
39
- import "../../../chunks/chunk-LQKNI3EG.js";
34
+ builtAtText
35
+ } from "../../../chunks/chunk-XPCUINWS.js";
36
+ import "../../../chunks/chunk-Z5OXOZD3.js";
37
+ import "../../../chunks/chunk-UC6DULWY.js";
38
+ import "../../../chunks/chunk-BRUIATTR.js";
40
39
  import "../../../chunks/chunk-NMVODY3P.js";
41
40
  import {
42
41
  pastRuns,
43
42
  planSchema,
44
43
  timelineSchema
45
- } from "../../../chunks/chunk-TEEZL3GA.js";
44
+ } from "../../../chunks/chunk-RKONDLPS.js";
46
45
  import {
47
46
  short
48
- } from "../../../chunks/chunk-TMQQYHUX.js";
47
+ } from "../../../chunks/chunk-QBR5VHJ7.js";
49
48
  import {
50
49
  megabytesText
51
- } from "../../../chunks/chunk-FSP3SJ35.js";
50
+ } from "../../../chunks/chunk-5TMHYH7G.js";
52
51
  import {
53
52
  findConfigFile
54
- } from "../../../chunks/chunk-ODQHQJLE.js";
55
- import "../../../chunks/chunk-YT5OROR7.js";
53
+ } from "../../../chunks/chunk-5ED3IDUJ.js";
54
+ import "../../../chunks/chunk-RA4L2ACU.js";
56
55
  import "../../../chunks/chunk-GQIL3AHY.js";
57
56
  import "../../../chunks/chunk-GSC6SRTW.js";
58
57
  import {
@@ -258,44 +257,18 @@ function whereRows(shown) {
258
257
  [
259
258
  "Snapshot",
260
259
  [
261
- `${snapshot.id} of ${short(snapshot.base)}, ${snapshot.built ? "built" : "reused"}${snapshot.head === null ? "" : `, ${headText(snapshot.branch)} at ${short(snapshot.head)}`}`,
260
+ `${snapshot.id} of ${short(snapshot.base)}, ${snapshot.built ? "built" : "reused"}`,
262
261
  ...snapshotCommitLines(snapshot, where.base),
263
262
  ` ${snapshot.url}`
264
263
  ]
265
264
  ]
266
265
  ],
267
- ...where.uploadBytes === null ? [] : [["Upload", megabytesText(where.uploadBytes)]],
268
- ...saveRows(where.save, where.noSaveReason)
266
+ ...where.uploadBytes === null ? [] : [["Upload", megabytesText(where.uploadBytes)]]
269
267
  ];
270
268
  }
271
269
  function snapshotCommitLines(snapshot, mergeBase) {
272
- const { kind, builtAt, builtBehind } = snapshot;
273
- if (kind === null || builtAt === null) return [];
274
- return [` ${kind} snapshot, ${builtAtText({ builtAt, builtBehind, atMergeBase: builtAt === mergeBase })}`];
275
- }
276
- function headText(branch) {
277
- return branch === null ? "a detached HEAD" : `branch ${branch}`;
278
- }
279
- var SAVE_STEPS = { scrub: "scrub", "save-snapshot": "save" };
280
- function saveRows(save, noSaveReason) {
281
- if (save === null)
282
- return noSaveReason === null ? [] : [["Saved", { text: `nothing: ${noSaveText(noSaveReason)}`, tone: "muted" }]];
283
- switch (save.kind) {
284
- case "saved":
285
- return [
286
- [
287
- "Saved",
288
- [
289
- `${save.snapshotId} of ${short(save.base)}, ${headText(save.branch)} at ${short(save.head)}${save.entryWritten ? "" : ", not in the cache"}`,
290
- ` ${save.url}`
291
- ]
292
- ]
293
- ];
294
- case "failed":
295
- return [["Saved", { text: `nothing: the ${SAVE_STEPS[save.step]} failed: ${save.message}`, tone: "muted" }]];
296
- case "stopped":
297
- return [["Saved", { text: "nothing: the run stopped", tone: "muted" }]];
298
- }
270
+ const { base, builtBehind } = snapshot;
271
+ return [` ${builtAtText({ base, builtBehind, mergeBase })}`];
299
272
  }
300
273
  function keptRows(shown) {
301
274
  const kept = keptText(shown);
@@ -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 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 a dev snapshot's branch and commit, and its page, and the dev 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,46 +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>;
33
- kind: z.ZodNullable<z.ZodEnum<{
34
- base: "base";
35
- dev: "dev";
36
- }>>;
37
- builtAt: z.ZodNullable<z.ZodString>;
38
31
  builtBehind: z.ZodNullable<z.ZodNumber>;
39
32
  url: z.ZodString;
40
33
  }, z.core.$strip>>;
41
34
  uploadBytes: z.ZodNullable<z.ZodNumber>;
42
- noSaveReason: z.ZodNullable<z.ZodEnum<{
43
- "already-saved": "already-saved";
44
- ci: "ci";
45
- "command-failed": "command-failed";
46
- "keep-sandbox": "keep-sandbox";
47
- "no-save-flag": "no-save-flag";
48
- "not-trusted": "not-trusted";
49
- recipe: "recipe";
50
- }>>;
51
- save: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
52
- kind: z.ZodLiteral<"saved">;
53
- snapshotId: z.ZodString;
54
- base: z.ZodString;
55
- branch: z.ZodNullable<z.ZodString>;
56
- head: z.ZodString;
57
- ms: z.ZodNumber;
58
- sizeBytes: z.ZodNumber;
59
- entryWritten: z.ZodBoolean;
60
- url: z.ZodString;
61
- }, z.core.$strip>, z.ZodObject<{
62
- kind: z.ZodLiteral<"failed">;
63
- step: z.ZodEnum<{
64
- "save-snapshot": "save-snapshot";
65
- scrub: "scrub";
66
- }>;
67
- message: z.ZodString;
68
- }, z.core.$strip>, z.ZodObject<{
69
- kind: z.ZodLiteral<"stopped">;
70
- }, z.core.$strip>], "kind">>;
71
35
  }, z.core.$strip>], "kind">>;
72
36
  git: z.ZodNullable<z.ZodObject<{
73
37
  branch: z.ZodNullable<z.ZodString>;
@@ -92,7 +56,7 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
92
56
  resourceRows: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>], null>>;
93
57
  }, z.core.$strip>>;
94
58
  plan: z.ZodNullable<z.ZodObject<{
95
- tests: z.ZodNumber;
59
+ tests: z.ZodOptional<z.ZodNumber>;
96
60
  files: z.ZodNumber;
97
61
  options: z.ZodArray<z.ZodObject<{
98
62
  path: z.ZodString;
@@ -5,7 +5,7 @@ import { z } from "zod";
5
5
  import { planSchema, timelineSchema } from "../../../run-directory/index.js";
6
6
  import { testPlanText } from "../../exec/test-plan.js";
7
7
  import { megabytesText } from "../../../core/index.js";
8
- import { builtAtText, noSaveText } from "../../exec/snapshot-text.js";
8
+ import { builtAtText } from "../../exec/snapshot-text.js";
9
9
  import { short } from "../../exec/text.js";
10
10
  import { waterfallLines } from "../../exec/waterfall.js";
11
11
  import { commandText, exitText, exitTone, gitText, keptText, LOG_STEPS, runFactsSchema, runNotFound, runsUnreadable, scopeSchema, startedText, tookText, totalsText, totalsTone, } from "../facts.js";
@@ -209,8 +209,8 @@ function lineText(line, p) {
209
209
  /**
210
210
  * Where the command ran: on this machine, or in a runner sandbox, with its page in the Vercel dashboard, until
211
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 its kind, where it was built and its page, the upload's
213
- * size, and the dev snapshot it saved or why it saved none. None when unknown.
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.
214
214
  */
215
215
  function whereRows(shown) {
216
216
  const { where, ended } = shown;
@@ -237,56 +237,22 @@ function whereRows(shown) {
237
237
  [
238
238
  "Snapshot",
239
239
  [
240
- `${snapshot.id} of ${short(snapshot.base)}, ${snapshot.built ? "built" : "reused"}${snapshot.head === null ? "" : `, ${headText(snapshot.branch)} at ${short(snapshot.head)}`}`,
240
+ `${snapshot.id} of ${short(snapshot.base)}, ${snapshot.built ? "built" : "reused"}`,
241
241
  ...snapshotCommitLines(snapshot, where.base),
242
242
  ` ${snapshot.url}`,
243
243
  ],
244
244
  ],
245
245
  ]),
246
246
  ...(where.uploadBytes === null ? [] : [["Upload", megabytesText(where.uploadBytes)]]),
247
- ...saveRows(where.save, where.noSaveReason),
248
247
  ];
249
248
  }
250
249
  /**
251
- * The line that says a runner snapshot's kind and where it was built, in commits; none for a record written before
252
- * storm recorded them. Whether it was built at the merge-base is compared from the record's own base, so an older
253
- * record's snapshot of an older base doesn't read as built at the merge-base.
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.
254
252
  */
255
253
  function snapshotCommitLines(snapshot, mergeBase) {
256
- const { kind, builtAt, builtBehind } = snapshot;
257
- if (kind === null || builtAt === null)
258
- return [];
259
- return [` ${kind} snapshot, ${builtAtText({ builtAt, builtBehind, atMergeBase: builtAt === mergeBase })}`];
260
- }
261
- /** The HEAD a dev snapshot was saved at, as a row names it: its branch, or that it was detached. */
262
- function headText(branch) {
263
- return branch === null ? "a detached HEAD" : `branch ${branch}`;
264
- }
265
- /** Each step of a dev snapshot's save, as a person names it. */
266
- const SAVE_STEPS = { scrub: "scrub", "save-snapshot": "save" };
267
- /**
268
- * The row for the dev snapshot the run saved the runner sandbox as, or why it didn't: a save that failed or stopped,
269
- * or `noSaveReason`, why a run whose command ended on its own started none. None when storm recorded neither.
270
- */
271
- function saveRows(save, noSaveReason) {
272
- if (save === null)
273
- return noSaveReason === null ? [] : [["Saved", { text: `nothing: ${noSaveText(noSaveReason)}`, tone: "muted" }]];
274
- switch (save.kind) {
275
- case "saved":
276
- return [
277
- [
278
- "Saved",
279
- [
280
- `${save.snapshotId} of ${short(save.base)}, ${headText(save.branch)} at ${short(save.head)}${save.entryWritten ? "" : ", not in the cache"}`,
281
- ` ${save.url}`,
282
- ],
283
- ],
284
- ];
285
- case "failed":
286
- return [["Saved", { text: `nothing: the ${SAVE_STEPS[save.step]} failed: ${save.message}`, tone: "muted" }]];
287
- case "stopped":
288
- return [["Saved", { text: "nothing: the run stopped", tone: "muted" }]];
289
- }
254
+ const { base, builtBehind } = snapshot;
255
+ return [` ${builtAtText({ base, builtBehind, mergeBase })}`];
290
256
  }
291
257
  /**
292
258
  * The row for the runner sandbox the run kept running, if it did: until when, in success while it still runs, with its