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