@cnc-tools/storm 0.11.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/storm.js +7 -12
- package/dist/build-info.js +1 -1
- package/dist/chunks/chunk-2NZXL6OH.js +62 -0
- package/dist/chunks/{chunk-3ZZVZPMG.js → chunk-43MWZLJR.js} +1 -1
- package/dist/chunks/{chunk-NPPJ57W7.js → chunk-5UMJNVKT.js} +498 -215
- package/dist/chunks/{chunk-KR7WIYLG.js → chunk-6EQKA7LI.js} +200 -985
- package/dist/chunks/{chunk-4EU4AH7E.js → chunk-AX4EQZUS.js} +186 -144
- package/dist/chunks/{chunk-ETCZ6WP7.js → chunk-BW2ADH7U.js} +1 -1
- package/dist/chunks/chunk-DOFB2ACU.js +49 -0
- package/dist/chunks/chunk-EGNP3S6C.js +161 -0
- package/dist/chunks/chunk-GQIL3AHY.js +20 -0
- package/dist/chunks/{chunk-ICB4BZJX.js → chunk-GSC6SRTW.js} +7 -2
- package/dist/chunks/{chunk-OJOKQRM6.js → chunk-IYM44FUX.js} +30 -26
- package/dist/chunks/{chunk-GRMD7G4J.js → chunk-LQKNI3EG.js} +6 -5
- package/dist/chunks/chunk-N7E6DAUE.js +40 -0
- package/dist/chunks/chunk-NMVODY3P.js +19 -0
- package/dist/chunks/{chunk-TRFEAYNC.js → chunk-Q4TKRILH.js} +261 -354
- package/dist/chunks/{chunk-VZZTHCBW.js → chunk-RTILVSYQ.js} +5 -18
- package/dist/chunks/{chunk-L4ZPMSKQ.js → chunk-T6AZIDZD.js} +43 -363
- package/dist/chunks/chunk-X4WBJIOF.js +308 -0
- package/dist/chunks/chunk-YGS5VRQT.js +794 -0
- package/dist/chunks/{chunk-4PRAB24Y.js → chunk-YM6TZV4L.js} +394 -396
- package/dist/chunks/{chunk-AMTYHUYB.js → chunk-YT5OROR7.js} +22 -8
- package/dist/chunks/{chunk-O4BUT7BE.js → chunk-ZDJLKF2G.js} +1625 -1583
- package/dist/chunks/{live-app-LOGYUBKB.js → live-app-QFHS54SX.js} +25 -46
- package/dist/command-tree.d.ts +4 -1
- package/dist/command-tree.js +4 -1
- package/dist/commands/exec/cleanup.js +4 -4
- package/dist/commands/exec/command.d.ts +6 -55
- package/dist/commands/exec/command.js +51 -46
- package/dist/commands/exec/define-run-command.d.ts +664 -0
- package/dist/commands/exec/define-run-command.js +58 -0
- package/dist/commands/exec/driver-plan.d.ts +30 -0
- package/dist/commands/exec/driver-plan.js +44 -0
- package/dist/commands/exec/driver-refusals.d.ts +89 -0
- package/dist/commands/exec/driver-refusals.js +65 -0
- package/dist/commands/exec/exec-words.d.ts +5 -0
- package/dist/commands/exec/exec-words.js +31 -0
- package/dist/commands/exec/live-view.js +68 -42
- package/dist/commands/exec/mint-failed.js +4 -4
- package/dist/commands/exec/outcomes.d.ts +6 -48
- package/dist/commands/exec/outcomes.js +10 -12
- package/dist/commands/exec/plan-run.js +3 -3
- package/dist/commands/exec/progress.d.ts +21 -17
- package/dist/commands/exec/progress.js +59 -78
- package/dist/commands/exec/resource-flags.d.ts +10 -3
- package/dist/commands/exec/resource-flags.js +25 -14
- package/dist/commands/exec/resource-refusals.d.ts +1 -1
- package/dist/commands/exec/resource-refusals.js +9 -9
- package/dist/commands/exec/run-bin.d.ts +35 -0
- package/dist/commands/exec/run-bin.js +32 -0
- package/dist/commands/exec/run-command.d.ts +64 -23
- package/dist/commands/exec/run-command.js +35 -94
- package/dist/commands/exec/run-metadata.d.ts +25 -19
- package/dist/commands/exec/run-metadata.js +34 -18
- package/dist/commands/exec/snapshot-text.d.ts +31 -0
- package/dist/commands/exec/snapshot-text.js +72 -0
- package/dist/commands/exec/test-plan.d.ts +2 -2
- package/dist/commands/exec/test-plan.js +11 -8
- package/dist/commands/exec/tests-summary.d.ts +21 -12
- package/dist/commands/exec/tests-summary.js +67 -39
- package/dist/commands/exec/text.d.ts +5 -0
- package/dist/commands/exec/text.js +7 -0
- package/dist/commands/exec/view.js +12 -13
- package/dist/commands/exec/waterfall.js +4 -4
- package/dist/commands/exec/worker-chart.d.ts +19 -11
- package/dist/commands/exec/worker-chart.js +66 -36
- package/dist/commands/playwright/command.d.ts +658 -0
- package/dist/commands/playwright/command.js +31 -0
- package/dist/commands/playwright/metadata.js +8 -0
- package/dist/commands/runs/facts.d.ts +5 -28
- package/dist/commands/runs/facts.js +11 -33
- package/dist/commands/runs/list/command.d.ts +4 -50
- package/dist/commands/runs/list/command.js +15 -11
- package/dist/commands/runs/list/outcomes.d.ts +2 -25
- package/dist/commands/runs/logs/command.js +13 -9
- package/dist/commands/runs/logs/outcomes.js +1 -1
- package/dist/commands/runs/show/command.d.ts +6 -50
- package/dist/commands/runs/show/command.js +37 -47
- package/dist/commands/runs/show/metadata.js +1 -1
- package/dist/commands/runs/show/outcomes.d.ts +3 -25
- package/dist/commands/runs/show/outcomes.js +18 -31
- package/dist/commands/snapshots/build/command.d.ts +501 -0
- package/dist/commands/snapshots/build/command.js +336 -0
- package/dist/commands/snapshots/build/metadata.d.ts +28 -0
- package/dist/commands/snapshots/build/metadata.js +37 -0
- package/dist/commands/snapshots/build/outcomes.d.ts +254 -0
- package/dist/commands/snapshots/build/outcomes.js +155 -0
- package/dist/commands/snapshots/list/command.d.ts +238 -0
- package/dist/commands/snapshots/list/command.js +269 -0
- package/dist/commands/snapshots/list/metadata.d.ts +16 -0
- package/dist/commands/snapshots/list/metadata.js +24 -0
- package/dist/commands/snapshots/list/outcomes.d.ts +148 -0
- package/dist/commands/snapshots/list/outcomes.js +217 -0
- package/dist/commands/snapshots/metadata.d.ts +3 -0
- package/dist/commands/snapshots/metadata.js +7 -0
- package/dist/commands/vitest/command.d.ts +185 -304
- package/dist/commands/vitest/command.js +23 -181
- package/dist/commands/vitest/metadata.js +1 -1
- package/dist/config-file/define.d.ts +1 -1
- package/dist/context.d.ts +32 -30
- package/dist/context.js +13 -17
- package/dist/core/before-run.d.ts +5 -5
- package/dist/core/before-run.js +8 -8
- package/dist/core/definition-lookup.d.ts +5 -5
- package/dist/core/definition-lookup.js +13 -12
- package/dist/core/drivers-of.d.ts +23 -0
- package/dist/core/drivers-of.js +13 -0
- package/dist/core/events.d.ts +6 -9
- package/dist/core/gateways.d.ts +32 -24
- package/dist/core/index.d.ts +7 -5
- package/dist/core/index.js +9 -6
- package/dist/core/launcher-context.d.ts +11 -0
- package/dist/core/launcher-context.js +31 -0
- package/dist/core/live/package-bin-gateway.d.ts +6 -0
- package/dist/core/live/package-bin-gateway.js +24 -0
- package/dist/core/package-bin.d.ts +7 -0
- package/dist/core/package-bin.js +30 -0
- package/dist/core/presentations.d.ts +1 -1
- package/dist/core/presentations.js +6 -5
- package/dist/core/{resource-registry.d.ts → resource-definition-set.d.ts} +15 -14
- package/dist/core/resource-definition-set.js +31 -0
- package/dist/core/resource-reports.d.ts +1 -1
- package/dist/core/resource-reports.js +16 -15
- package/dist/core/resource.d.ts +4 -4
- package/dist/core/resources.d.ts +6 -6
- package/dist/core/resources.js +11 -11
- package/dist/core/run-state.d.ts +20 -31
- package/dist/core/run-state.js +34 -25
- package/dist/core/run.d.ts +30 -32
- package/dist/core/run.js +33 -39
- package/dist/core/setup-phases.d.ts +14 -0
- package/dist/core/setup-phases.js +24 -0
- package/dist/core/state-directory.d.ts +2 -2
- package/dist/core/state-directory.js +3 -3
- package/dist/core/timeline.d.ts +4 -2
- package/dist/core/timeline.js +11 -5
- package/dist/extension-commands.js +6 -10
- package/dist/extensions/github/{world.d.ts → context.d.ts} +1 -1
- package/dist/extensions/github/context.js +3 -0
- package/dist/extensions/github/definition.d.ts +1 -1
- package/dist/extensions/github/definition.js +3 -3
- package/dist/extensions/github/extension.d.ts +1 -1
- package/dist/extensions/github/index.d.ts +2 -2
- package/dist/extensions/github/index.js +4 -4
- package/dist/extensions/github/lifecycle.d.ts +3 -3
- package/dist/extensions/github/lifecycle.js +14 -14
- package/dist/extensions/github/live/context.d.ts +6 -0
- package/dist/extensions/github/live/context.js +16 -0
- package/dist/extensions/github/resource.d.ts +1 -1
- package/dist/extensions/playwright/driver.d.ts +8 -0
- package/dist/extensions/playwright/driver.js +60 -0
- package/dist/extensions/playwright/extension.d.ts +2 -0
- package/dist/extensions/playwright/extension.js +12 -0
- package/dist/extensions/playwright/plan/gateways.d.ts +62 -0
- package/dist/extensions/playwright/plan/gateways.js +4 -0
- package/dist/extensions/playwright/plan/list-output.d.ts +26 -0
- package/dist/extensions/playwright/plan/list-output.js +101 -0
- package/dist/extensions/playwright/plan/live/list-gateway.d.ts +15 -0
- package/dist/extensions/playwright/plan/live/list-gateway.js +100 -0
- package/dist/extensions/playwright/plan/plan.d.ts +44 -0
- package/dist/extensions/playwright/plan/plan.js +53 -0
- package/dist/extensions/testserver/command-tree.d.ts +1 -1
- package/dist/extensions/testserver/command-tree.js +2 -2
- package/dist/extensions/testserver/commands/app.d.ts +7 -7
- package/dist/extensions/testserver/commands/pool/create/command.d.ts +5 -5
- package/dist/extensions/testserver/commands/pool/create/command.js +12 -13
- package/dist/extensions/testserver/commands/pool/list/command.js +5 -6
- package/dist/extensions/testserver/{world.d.ts → context.d.ts} +1 -1
- package/dist/extensions/testserver/context.js +4 -0
- package/dist/extensions/testserver/definition.d.ts +2 -2
- package/dist/extensions/testserver/definition.js +8 -7
- package/dist/extensions/testserver/events.d.ts +1 -1
- package/dist/extensions/testserver/extension.d.ts +4 -3
- package/dist/extensions/testserver/extension.js +33 -20
- package/dist/extensions/testserver/index.d.ts +2 -2
- package/dist/extensions/testserver/index.js +2 -2
- package/dist/extensions/testserver/lifecycle.d.ts +6 -5
- package/dist/extensions/testserver/lifecycle.js +9 -8
- package/dist/extensions/testserver/live/context.d.ts +8 -0
- package/dist/extensions/testserver/live/{world.js → context.js} +6 -7
- package/dist/extensions/testserver/options/rules.d.ts +3 -3
- package/dist/extensions/testserver/options/rules.js +5 -4
- package/dist/extensions/testserver/options/sandboxes.d.ts +3 -2
- package/dist/extensions/testserver/options/sandboxes.js +3 -2
- package/dist/extensions/testserver/playwright/index.d.ts +33 -0
- package/dist/extensions/testserver/playwright/index.js +43 -0
- package/dist/extensions/testserver/presentation.d.ts +4 -4
- package/dist/extensions/testserver/presentation.js +7 -7
- package/dist/extensions/testserver/progress.d.ts +3 -3
- package/dist/extensions/testserver/progress.js +3 -3
- package/dist/extensions/testserver/provision.d.ts +2 -2
- package/dist/extensions/testserver/provision.js +10 -10
- package/dist/extensions/testserver/resource.d.ts +2 -2
- package/dist/extensions/testserver/result.d.ts +2 -2
- package/dist/extensions/testserver/result.js +1 -1
- package/dist/extensions/testserver/run/connection.d.ts +1 -1
- package/dist/extensions/testserver/run/connection.js +3 -3
- package/dist/extensions/testserver/run/sandbox.d.ts +31 -0
- package/dist/extensions/testserver/run/sandbox.js +58 -0
- package/dist/extensions/testserver/run-sandbox.d.ts +2 -2
- package/dist/extensions/testserver/run-sandbox.js +3 -3
- package/dist/extensions/testserver/vercel-cli/arguments.d.ts +2 -2
- package/dist/extensions/testserver/vercel-cli/arguments.js +6 -6
- package/dist/extensions/testserver/vercel-cli/auth-config.d.ts +7 -7
- package/dist/extensions/testserver/vercel-cli/auth-config.js +4 -4
- package/dist/extensions/testserver/vercel-cli/clock.js +1 -1
- package/dist/extensions/testserver/vercel-cli/config-files.js +1 -1
- package/dist/extensions/testserver/vercel-cli/context.d.ts +1 -1
- package/dist/extensions/testserver/vercel-cli/context.js +2 -2
- package/dist/extensions/testserver/vercel-cli/entry.d.ts +1 -1
- package/dist/extensions/testserver/vercel-cli/entry.js +1 -1
- package/dist/extensions/testserver/vercel-cli/environment.d.ts +5 -5
- package/dist/extensions/testserver/vercel-cli/environment.js +6 -6
- package/dist/extensions/testserver/vercel-cli/gateways.d.ts +1 -1
- package/dist/extensions/testserver/vercel-cli/gateways.js +3 -3
- package/dist/extensions/testserver/vercel-cli/index.d.ts +1 -1
- package/dist/extensions/testserver/vercel-cli/index.js +8 -9
- package/dist/extensions/testserver/vercel-cli/invocation.d.ts +13 -12
- package/dist/extensions/testserver/vercel-cli/invocation.js +1 -1
- package/dist/extensions/testserver/vercel-cli/{driver.d.ts → invoker.d.ts} +18 -17
- package/dist/extensions/testserver/vercel-cli/{driver.js → invoker.js} +8 -8
- package/dist/extensions/testserver/vercel-cli/live/config-files.d.ts +2 -2
- package/dist/extensions/testserver/vercel-cli/live/config-files.js +2 -2
- package/dist/extensions/testserver/vercel-cli/live/process-gateway.js +1 -1
- package/dist/extensions/testserver/vercel-cli/report.js +2 -2
- package/dist/extensions/testserver/vercel-cli/verbose.js +1 -1
- package/dist/extensions/testserver/vitest/config.d.ts +3 -3
- package/dist/extensions/testserver/vitest/config.js +5 -13
- package/dist/extensions/testserver/vitest/container-scope.d.ts +11 -11
- package/dist/extensions/testserver/vitest/container-scope.js +9 -9
- package/dist/extensions/testserver/vitest/container-start.d.ts +6 -6
- package/dist/extensions/testserver/vitest/container-start.js +14 -11
- package/dist/extensions/testserver/vitest/diagnostics.d.ts +1 -1
- package/dist/extensions/testserver/vitest/fixtures.d.ts +11 -11
- package/dist/extensions/testserver/vitest/fixtures.js +14 -23
- package/dist/extensions/testserver/vitest/index.d.ts +1 -1
- package/dist/extensions/testserver/vitest/index.js +4 -4
- package/dist/extensions/testserver/vitest/types.d.ts +16 -18
- package/dist/extensions/testserver/vitest/types.js +2 -2
- package/dist/extensions/testserver/vitest/worker-sandbox.d.ts +8 -0
- package/dist/extensions/testserver/vitest/worker-sandbox.js +17 -0
- package/dist/extensions/vitest/driver.d.ts +8 -0
- package/dist/extensions/vitest/driver.js +62 -0
- package/dist/extensions/vitest/extension.d.ts +2 -0
- package/dist/extensions/vitest/extension.js +8 -0
- package/dist/{vitest → extensions/vitest/plan}/gateways.d.ts +1 -26
- package/dist/extensions/vitest/plan/gateways.js +3 -0
- package/dist/{vitest → extensions/vitest/plan}/live/list-gateway.d.ts +1 -2
- package/dist/{vitest → extensions/vitest/plan}/live/list-gateway.js +1 -20
- package/dist/extensions/vitest/plan/plan-over.d.ts +38 -0
- package/dist/extensions/vitest/plan/plan-over.js +31 -0
- package/dist/extensions/vitest/plan/plan.d.ts +24 -0
- package/dist/{vitest → extensions/vitest/plan}/plan.js +11 -26
- package/dist/extensions.d.ts +40 -18
- package/dist/extensions.js +49 -22
- package/dist/forward-sigterm.js +1 -1
- package/dist/launcher-resolvers/index.d.ts +1 -1
- package/dist/launcher-resolvers/local-services.d.ts +9 -44
- package/dist/launcher-resolvers/local-services.js +4 -5
- package/dist/live-app.js +7 -6
- package/dist/local-services.d.ts +7 -15
- package/dist/local-services.js +8 -29
- package/dist/playwright/index.d.ts +1 -0
- package/dist/playwright/index.js +4 -0
- package/dist/playwright/reporter.d.ts +96 -0
- package/dist/playwright/reporter.js +162 -0
- package/dist/playwright/worker-index.d.ts +7 -0
- package/dist/playwright/worker-index.js +20 -0
- package/dist/run-directory/index.d.ts +1 -1
- package/dist/run-directory/index.js +2 -3
- package/dist/run-directory/plan.d.ts +3 -3
- package/dist/run-directory/plan.js +5 -5
- package/dist/run-directory/reader.js +2 -2
- package/dist/run-directory/recording.d.ts +8 -5
- package/dist/run-directory/recording.js +6 -6
- package/dist/run-directory/run-collector.d.ts +5 -5
- package/dist/run-directory/run-collector.js +5 -5
- package/dist/run-directory/run-record.d.ts +17 -90
- package/dist/run-directory/run-record.js +15 -55
- package/dist/run-directory/timeline-facts.d.ts +2 -1
- package/dist/run-directory/timeline-facts.js +4 -2
- package/dist/runner/build-snapshots.d.ts +115 -0
- package/dist/runner/build-snapshots.js +146 -0
- package/dist/runner/context.js +2 -1
- package/dist/runner/events.d.ts +24 -69
- package/dist/runner/gateways.d.ts +20 -18
- package/dist/runner/index.d.ts +8 -7
- package/dist/runner/index.js +5 -3
- package/dist/runner/live/checkout-gateway.js +15 -7
- package/dist/runner/live/snapshot-records.js +7 -17
- package/dist/runner/prepare.d.ts +17 -50
- package/dist/runner/prepare.js +21 -25
- package/dist/runner/ready.d.ts +15 -11
- package/dist/runner/ready.js +32 -40
- package/dist/runner/recipe.d.ts +4 -18
- package/dist/runner/recipe.js +1 -13
- package/dist/runner/scope.d.ts +8 -32
- package/dist/runner/scope.js +4 -12
- package/dist/runner/secrets.d.ts +6 -0
- package/dist/runner/secrets.js +10 -0
- package/dist/runner/session.d.ts +19 -38
- package/dist/runner/session.js +16 -55
- package/dist/runner/snapshot-build.d.ts +21 -11
- package/dist/runner/snapshot-build.js +11 -16
- package/dist/runner/snapshot-cache.d.ts +98 -72
- package/dist/runner/snapshot-cache.js +69 -118
- package/dist/runner/snapshot-inspect.d.ts +85 -0
- package/dist/runner/snapshot-inspect.js +164 -0
- package/dist/runner/snapshot-key.d.ts +13 -15
- package/dist/runner/snapshot-key.js +15 -22
- package/dist/sdk/extension/commands.d.ts +35 -17
- package/dist/sdk/extension/commands.js +13 -11
- package/dist/sdk/extension/driver.d.ts +143 -0
- package/dist/sdk/extension/driver.js +28 -0
- package/dist/sdk/extension/index.d.ts +2 -1
- package/dist/sdk/extension/index.js +15 -9
- package/dist/sdk/extension/{launcher-supplies.d.ts → launcher-context.d.ts} +3 -3
- package/dist/sdk/extension/launcher-context.js +5 -0
- package/dist/sdk/extension/lifecycle.d.ts +6 -5
- package/dist/sdk/extension/lifecycle.js +2 -2
- package/dist/sdk/extension/resource-definition.d.ts +13 -13
- package/dist/sdk/extension/resource-definition.js +2 -2
- package/dist/sdk/extension/resource.d.ts +13 -13
- package/dist/sdk/extension/resource.js +11 -11
- package/dist/sdk/extension/time.js +2 -2
- package/dist/sdk/index.d.ts +2 -0
- package/dist/sdk/index.js +3 -1
- package/dist/sdk/run/launcher.d.ts +1 -1
- package/dist/sdk/run/launcher.js +4 -3
- package/dist/sdk/run/payload.js +1 -1
- package/dist/sdk/run/test-events.d.ts +24 -18
- package/dist/sdk/run/test-events.js +5 -4
- package/dist/sdk/run/test-result-writer.d.ts +77 -0
- package/dist/sdk/run/test-result-writer.js +143 -0
- package/dist/sdk/run/worker-test-event-writer.d.ts +13 -0
- package/dist/sdk/run/worker-test-event-writer.js +31 -0
- package/dist/vendor/testserver-sdk/container/container.d.ts +1 -6
- package/dist/vendor/testserver-sdk/container/container.js +1 -5
- package/dist/vendor/testserver-sdk/factories/build.d.ts +12 -40
- package/dist/vendor/testserver-sdk/factories/build.js +15 -66
- package/dist/vendor/testserver-sdk/factories/gateways.d.ts +1 -2
- package/dist/vendor/testserver-sdk/factories/index.d.ts +1 -3
- package/dist/vendor/testserver-sdk/factories/index.js +3 -5
- package/dist/vendor/testserver-sdk/index.d.ts +1 -2
- package/dist/vendor/testserver-sdk/index.js +5 -6
- package/dist/vendor/testserver-sdk/records/body.d.ts +1 -1
- package/dist/vendor/testserver-sdk/records/body.js +1 -1
- package/dist/vitest/index.d.ts +2 -1
- package/dist/vitest/index.js +6 -4
- package/dist/vitest/test-events.d.ts +6 -16
- package/dist/vitest/test-events.js +15 -40
- package/dist/vitest/test-results.d.ts +9 -31
- package/dist/vitest/test-results.js +34 -105
- package/dist/vitest/worker-index.d.ts +6 -0
- package/dist/vitest/worker-index.js +17 -0
- package/package.json +23 -9
- package/skills/overview.md +6 -8
- package/skills/read-run-output.md +21 -7
- package/dist/chunks/chunk-FVMQKYTT.js +0 -10
- package/dist/chunks/chunk-SLNKW4ZM.js +0 -40
- package/dist/chunks/chunk-WNIQA5J6.js +0 -19
- package/dist/chunks/chunk-WSIF7SR6.js +0 -10
- package/dist/commands/vitest/outcomes.d.ts +0 -379
- package/dist/commands/vitest/outcomes.js +0 -70
- package/dist/core/launcher-supplies.d.ts +0 -11
- package/dist/core/launcher-supplies.js +0 -28
- package/dist/core/live/terminal-command-gateway.d.ts +0 -8
- package/dist/core/live/terminal-command-gateway.js +0 -49
- package/dist/core/resource-registry.js +0 -30
- package/dist/extensions/github/live/world.d.ts +0 -6
- package/dist/extensions/github/live/world.js +0 -16
- package/dist/extensions/github/world.js +0 -3
- package/dist/extensions/story/command-tree.d.ts +0 -6
- package/dist/extensions/story/command-tree.js +0 -21
- package/dist/extensions/story/commands/app.d.ts +0 -23
- package/dist/extensions/story/commands/app.js +0 -5
- package/dist/extensions/story/commands/run/command.d.ts +0 -211
- package/dist/extensions/story/commands/run/command.js +0 -259
- package/dist/extensions/story/commands/run/metadata.js +0 -8
- package/dist/extensions/story/commands/run/outcomes.d.ts +0 -101
- package/dist/extensions/story/commands/run/outcomes.js +0 -73
- package/dist/extensions/story/commands/tree.d.ts +0 -2
- package/dist/extensions/story/commands/tree.js +0 -6
- package/dist/extensions/story/extension.d.ts +0 -2
- package/dist/extensions/story/extension.js +0 -8
- package/dist/extensions/testserver/live/world.d.ts +0 -8
- package/dist/extensions/testserver/vitest/sandbox.d.ts +0 -25
- package/dist/extensions/testserver/vitest/sandbox.js +0 -43
- package/dist/extensions/testserver/world.js +0 -4
- package/dist/runner/snapshot-save.d.ts +0 -56
- package/dist/runner/snapshot-save.js +0 -151
- package/dist/sdk/extension/launcher-supplies.js +0 -3
- package/dist/story/align.d.ts +0 -37
- package/dist/story/align.js +0 -39
- package/dist/story/command-line.d.ts +0 -24
- package/dist/story/command-line.js +0 -88
- package/dist/story/definition.d.ts +0 -59
- package/dist/story/definition.js +0 -9
- package/dist/story/diff.d.ts +0 -9
- package/dist/story/diff.js +0 -97
- package/dist/story/errors.d.ts +0 -14
- package/dist/story/errors.js +0 -21
- package/dist/story/gateways.d.ts +0 -94
- package/dist/story/gateways.js +0 -3
- package/dist/story/host.d.ts +0 -30
- package/dist/story/host.js +0 -97
- package/dist/story/index.d.ts +0 -8
- package/dist/story/index.js +0 -11
- package/dist/story/json.d.ts +0 -16
- package/dist/story/json.js +0 -59
- package/dist/story/launch.d.ts +0 -70
- package/dist/story/launch.js +0 -77
- package/dist/story/live/recording-gateway.d.ts +0 -2
- package/dist/story/live/recording-gateway.js +0 -103
- package/dist/story/orphans.d.ts +0 -35
- package/dist/story/orphans.js +0 -51
- package/dist/story/recording.d.ts +0 -62
- package/dist/story/recording.js +0 -97
- package/dist/story/report.d.ts +0 -42
- package/dist/story/report.js +0 -129
- package/dist/story/sequence.d.ts +0 -30
- package/dist/story/sequence.js +0 -74
- package/dist/story/settle.d.ts +0 -96
- package/dist/story/settle.js +0 -71
- package/dist/story/start.d.ts +0 -50
- package/dist/story/start.js +0 -183
- package/dist/vendor/testserver-sdk/factories/definition.d.ts +0 -39
- package/dist/vendor/testserver-sdk/factories/definition.js +0 -16
- package/dist/vendor/testserver-sdk/factories/definitions.d.ts +0 -169
- package/dist/vendor/testserver-sdk/factories/definitions.js +0 -245
- package/dist/vendor/testserver-sdk/seed/index.d.ts +0 -1
- package/dist/vendor/testserver-sdk/seed/index.js +0 -3
- package/dist/vendor/testserver-sdk/seed/seed.d.ts +0 -221
- package/dist/vendor/testserver-sdk/seed/seed.js +0 -171
- package/dist/vitest/find-vitest.d.ts +0 -7
- package/dist/vitest/find-vitest.js +0 -28
- package/dist/vitest/gateways.js +0 -4
- package/dist/vitest/plan.d.ts +0 -51
- /package/dist/{extensions/story/commands/run → commands/playwright}/metadata.d.ts +0 -0
- /package/dist/{vitest → extensions/vitest/plan}/list-output.d.ts +0 -0
- /package/dist/{vitest → extensions/vitest/plan}/list-output.js +0 -0
|
@@ -0,0 +1,664 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { Driver } from "../../sdk/extension/index.ts";
|
|
3
|
+
/**
|
|
4
|
+
* The run command of `driver`, which its `command.ts` default-exports. It takes the flags every run takes, then the
|
|
5
|
+
* driver's arguments, and runs the driver's command in a run (`runCommand`).
|
|
6
|
+
*
|
|
7
|
+
* It takes any arguments (`args`), which go to the driver's program unchanged, in order, those after `--` among
|
|
8
|
+
* them, which Clinkr reads into the same field. Its part of planning the run finds the program and counts its tests
|
|
9
|
+
* before anything is minted, acquired or started (`planDriverCommand`); the count is the run's test plan, which sizes
|
|
10
|
+
* any resource option whose default is a function of it, and which its `ran` carries as `plan`. Beside every run's
|
|
11
|
+
* errors it ends with the driver's two refusals, `no_matching_tests` and `driver_plan_failed`, in the driver's words
|
|
12
|
+
* (`driverRefusals`).
|
|
13
|
+
*/
|
|
14
|
+
export declare function defineRunCommand(driver: Driver): import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
15
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
16
|
+
project: z.ZodOptional<z.ZodString>;
|
|
17
|
+
credential: z.ZodOptional<z.ZodEnum<{
|
|
18
|
+
"github-actions": "github-actions";
|
|
19
|
+
mint: "mint";
|
|
20
|
+
}>>;
|
|
21
|
+
unsandboxed: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
+
showOutput: z.ZodDefault<z.ZodBoolean>;
|
|
23
|
+
keepSandbox: z.ZodOptional<z.ZodString>;
|
|
24
|
+
verbose: z.ZodDefault<z.ZodBoolean>;
|
|
25
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
26
|
+
}, z.core.$strip>, import("@vercel/clinkr").Outcomes<{
|
|
27
|
+
ran: z.ZodObject<{
|
|
28
|
+
version: z.ZodString;
|
|
29
|
+
commit: z.ZodNullable<z.ZodString>;
|
|
30
|
+
configFile: z.ZodNullable<z.ZodString>;
|
|
31
|
+
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>>;
|
|
32
|
+
cleanup: z.ZodType<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts>>;
|
|
33
|
+
command: z.ZodObject<{
|
|
34
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
35
|
+
signal: z.ZodNullable<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
runner: z.ZodNullable<z.ZodObject<{
|
|
38
|
+
snapshotId: z.ZodString;
|
|
39
|
+
base: z.ZodString;
|
|
40
|
+
builtBehind: z.ZodNumber;
|
|
41
|
+
uploadBytes: z.ZodNumber;
|
|
42
|
+
built: z.ZodBoolean;
|
|
43
|
+
vcpus: z.ZodNumber;
|
|
44
|
+
region: z.ZodString;
|
|
45
|
+
runtime: z.ZodString;
|
|
46
|
+
buildMs: z.ZodNumber;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
timeline: z.ZodObject<{
|
|
49
|
+
startedAt: z.ZodString;
|
|
50
|
+
totalMs: z.ZodNumber;
|
|
51
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
52
|
+
name: z.ZodString;
|
|
53
|
+
resource: z.ZodNullable<z.ZodString>;
|
|
54
|
+
label: z.ZodString;
|
|
55
|
+
startMs: z.ZodNumber;
|
|
56
|
+
endMs: z.ZodNumber;
|
|
57
|
+
outcome: z.ZodEnum<{
|
|
58
|
+
done: "done";
|
|
59
|
+
failed: "failed";
|
|
60
|
+
stopped: "stopped";
|
|
61
|
+
unfinished: "unfinished";
|
|
62
|
+
}>;
|
|
63
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
64
|
+
name: z.ZodString;
|
|
65
|
+
startMs: z.ZodNumber;
|
|
66
|
+
endMs: z.ZodNumber;
|
|
67
|
+
outcome: z.ZodEnum<{
|
|
68
|
+
done: "done";
|
|
69
|
+
failed: "failed";
|
|
70
|
+
stopped: "stopped";
|
|
71
|
+
unfinished: "unfinished";
|
|
72
|
+
}>;
|
|
73
|
+
bytes: z.ZodOptional<z.ZodNumber>;
|
|
74
|
+
}, z.core.$strip>>;
|
|
75
|
+
idleMs: z.ZodNumber;
|
|
76
|
+
snapshot: z.ZodOptional<z.ZodEnum<{
|
|
77
|
+
built: "built";
|
|
78
|
+
reused: "reused";
|
|
79
|
+
}>>;
|
|
80
|
+
sandboxes: z.ZodOptional<z.ZodObject<{
|
|
81
|
+
reused: z.ZodNumber;
|
|
82
|
+
created: z.ZodNumber;
|
|
83
|
+
}, z.core.$strip>>;
|
|
84
|
+
}, z.core.$strip>>;
|
|
85
|
+
criticalPath: z.ZodArray<z.ZodObject<{
|
|
86
|
+
name: z.ZodString;
|
|
87
|
+
resource: z.ZodNullable<z.ZodString>;
|
|
88
|
+
}, z.core.$strip>>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
91
|
+
plan: z.ZodObject<{
|
|
92
|
+
tests: z.ZodNumber;
|
|
93
|
+
files: z.ZodNumber;
|
|
94
|
+
options: z.ZodArray<z.ZodObject<{
|
|
95
|
+
path: z.ZodString;
|
|
96
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
97
|
+
from: z.ZodEnum<{
|
|
98
|
+
default: "default";
|
|
99
|
+
file: "file";
|
|
100
|
+
flag: "flag";
|
|
101
|
+
}>;
|
|
102
|
+
}, z.core.$strip>>;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
}, {
|
|
106
|
+
ran: unknown;
|
|
107
|
+
}, {
|
|
108
|
+
credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
|
|
109
|
+
flags: string[];
|
|
110
|
+
configFile: string | null;
|
|
111
|
+
}]>;
|
|
112
|
+
driverPlanFailed: import("@vercel/clinkr").SharedError<"driver_plan_failed", [data: {
|
|
113
|
+
driver: string;
|
|
114
|
+
kind: "exited" | "start-failed" | "timed-out" | "unreadable-output";
|
|
115
|
+
message: string;
|
|
116
|
+
args: string[];
|
|
117
|
+
cwd: string;
|
|
118
|
+
}]>;
|
|
119
|
+
invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
|
|
120
|
+
file: string;
|
|
121
|
+
problems: {
|
|
122
|
+
key: string | null;
|
|
123
|
+
location: {
|
|
124
|
+
line: number;
|
|
125
|
+
column: number | null;
|
|
126
|
+
} | null;
|
|
127
|
+
problem: string;
|
|
128
|
+
}[];
|
|
129
|
+
}]>;
|
|
130
|
+
invalidResourceOptions: import("@vercel/clinkr").SharedError<"invalid_resource_options", [data: {
|
|
131
|
+
configFile: string | null;
|
|
132
|
+
problems: {
|
|
133
|
+
key: string;
|
|
134
|
+
problem: string;
|
|
135
|
+
values: {
|
|
136
|
+
key: string;
|
|
137
|
+
value: string;
|
|
138
|
+
source: "default" | "file" | "flag";
|
|
139
|
+
}[];
|
|
140
|
+
}[];
|
|
141
|
+
}]>;
|
|
142
|
+
mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
|
|
143
|
+
team: string;
|
|
144
|
+
project: string;
|
|
145
|
+
cause: string;
|
|
146
|
+
fix: string;
|
|
147
|
+
runner: boolean;
|
|
148
|
+
cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
149
|
+
}]>;
|
|
150
|
+
missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
|
|
151
|
+
configFile: string | null;
|
|
152
|
+
}]>;
|
|
153
|
+
missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
|
|
154
|
+
missing: ("project" | "scope")[];
|
|
155
|
+
}]>;
|
|
156
|
+
noBaseRef: import("@vercel/clinkr").SharedError<"no_base_ref", [data: {
|
|
157
|
+
refs: {
|
|
158
|
+
ref: string;
|
|
159
|
+
reason: "missing" | "unrelated";
|
|
160
|
+
}[];
|
|
161
|
+
}]>;
|
|
162
|
+
noMatchingTests: import("@vercel/clinkr").SharedError<"no_matching_tests", [data: {
|
|
163
|
+
driver: string;
|
|
164
|
+
args: string[];
|
|
165
|
+
cwd: string;
|
|
166
|
+
}]>;
|
|
167
|
+
resourceRefused: import("@vercel/clinkr").SharedError<"resource_refused", [data: {
|
|
168
|
+
resource: string;
|
|
169
|
+
refusal: string;
|
|
170
|
+
data: Record<string, unknown>;
|
|
171
|
+
cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
172
|
+
}, refusal: import("../../sdk/extension/lifecycle.ts").RefusalContent]>;
|
|
173
|
+
resourceRefusedBeforeRun: import("@vercel/clinkr").SharedError<"resource_refused_before_run", [data: {
|
|
174
|
+
resource: string;
|
|
175
|
+
refusal: string;
|
|
176
|
+
data: Record<string, unknown>;
|
|
177
|
+
configFile: string | null;
|
|
178
|
+
}, refusal: import("../../sdk/extension/lifecycle.ts").RefusalContent]>;
|
|
179
|
+
runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
|
|
180
|
+
failure: {
|
|
181
|
+
kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
|
|
182
|
+
label: string;
|
|
183
|
+
exitCode: number | null;
|
|
184
|
+
tail: string[];
|
|
185
|
+
} | {
|
|
186
|
+
kind: "sandbox-api-failed";
|
|
187
|
+
operation: string;
|
|
188
|
+
status: number | null;
|
|
189
|
+
message: string;
|
|
190
|
+
} | {
|
|
191
|
+
kind: "checkout-failed";
|
|
192
|
+
message: string;
|
|
193
|
+
command: string | null;
|
|
194
|
+
} | {
|
|
195
|
+
kind: "credential-claims-missing";
|
|
196
|
+
team: string;
|
|
197
|
+
project: string;
|
|
198
|
+
};
|
|
199
|
+
cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
200
|
+
}]>;
|
|
201
|
+
runnerSecretsInvalid: import("@vercel/clinkr").SharedError<"runner_secrets_invalid", [data: {
|
|
202
|
+
variables: {
|
|
203
|
+
name: string;
|
|
204
|
+
problem: "missing" | "multiline" | "short";
|
|
205
|
+
}[];
|
|
206
|
+
minLength: number;
|
|
207
|
+
configFile: string | null;
|
|
208
|
+
}]>;
|
|
209
|
+
snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
|
|
210
|
+
snapshotId: string;
|
|
211
|
+
base: string;
|
|
212
|
+
removal: {
|
|
213
|
+
path: string;
|
|
214
|
+
message: string;
|
|
215
|
+
} | null;
|
|
216
|
+
cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
217
|
+
}]>;
|
|
218
|
+
spawnFailed: import("@vercel/clinkr").SharedError<"spawn_failed", [data: {
|
|
219
|
+
executable: string;
|
|
220
|
+
message: string;
|
|
221
|
+
cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
222
|
+
}]>;
|
|
223
|
+
submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
|
|
224
|
+
paths: string[];
|
|
225
|
+
}]>;
|
|
226
|
+
}, {
|
|
227
|
+
readonly credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
|
|
228
|
+
flags: string[];
|
|
229
|
+
configFile: string | null;
|
|
230
|
+
}]>;
|
|
231
|
+
readonly driverPlanFailed: import("@vercel/clinkr").SharedError<"driver_plan_failed", [data: {
|
|
232
|
+
driver: string;
|
|
233
|
+
kind: "exited" | "start-failed" | "timed-out" | "unreadable-output";
|
|
234
|
+
message: string;
|
|
235
|
+
args: string[];
|
|
236
|
+
cwd: string;
|
|
237
|
+
}]>;
|
|
238
|
+
readonly invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
|
|
239
|
+
file: string;
|
|
240
|
+
problems: {
|
|
241
|
+
key: string | null;
|
|
242
|
+
location: {
|
|
243
|
+
line: number;
|
|
244
|
+
column: number | null;
|
|
245
|
+
} | null;
|
|
246
|
+
problem: string;
|
|
247
|
+
}[];
|
|
248
|
+
}]>;
|
|
249
|
+
readonly invalidResourceOptions: import("@vercel/clinkr").SharedError<"invalid_resource_options", [data: {
|
|
250
|
+
configFile: string | null;
|
|
251
|
+
problems: {
|
|
252
|
+
key: string;
|
|
253
|
+
problem: string;
|
|
254
|
+
values: {
|
|
255
|
+
key: string;
|
|
256
|
+
value: string;
|
|
257
|
+
source: "default" | "file" | "flag";
|
|
258
|
+
}[];
|
|
259
|
+
}[];
|
|
260
|
+
}]>;
|
|
261
|
+
readonly mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
|
|
262
|
+
team: string;
|
|
263
|
+
project: string;
|
|
264
|
+
cause: string;
|
|
265
|
+
fix: string;
|
|
266
|
+
runner: boolean;
|
|
267
|
+
cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
268
|
+
}]>;
|
|
269
|
+
readonly missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
|
|
270
|
+
configFile: string | null;
|
|
271
|
+
}]>;
|
|
272
|
+
readonly missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
|
|
273
|
+
missing: ("project" | "scope")[];
|
|
274
|
+
}]>;
|
|
275
|
+
readonly noBaseRef: import("@vercel/clinkr").SharedError<"no_base_ref", [data: {
|
|
276
|
+
refs: {
|
|
277
|
+
ref: string;
|
|
278
|
+
reason: "missing" | "unrelated";
|
|
279
|
+
}[];
|
|
280
|
+
}]>;
|
|
281
|
+
readonly noMatchingTests: import("@vercel/clinkr").SharedError<"no_matching_tests", [data: {
|
|
282
|
+
driver: string;
|
|
283
|
+
args: string[];
|
|
284
|
+
cwd: string;
|
|
285
|
+
}]>;
|
|
286
|
+
readonly resourceRefused: import("@vercel/clinkr").SharedError<"resource_refused", [data: {
|
|
287
|
+
resource: string;
|
|
288
|
+
refusal: string;
|
|
289
|
+
data: Record<string, unknown>;
|
|
290
|
+
cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
291
|
+
}, refusal: import("../../sdk/extension/lifecycle.ts").RefusalContent]>;
|
|
292
|
+
readonly resourceRefusedBeforeRun: import("@vercel/clinkr").SharedError<"resource_refused_before_run", [data: {
|
|
293
|
+
resource: string;
|
|
294
|
+
refusal: string;
|
|
295
|
+
data: Record<string, unknown>;
|
|
296
|
+
configFile: string | null;
|
|
297
|
+
}, refusal: import("../../sdk/extension/lifecycle.ts").RefusalContent]>;
|
|
298
|
+
readonly runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
|
|
299
|
+
failure: {
|
|
300
|
+
kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
|
|
301
|
+
label: string;
|
|
302
|
+
exitCode: number | null;
|
|
303
|
+
tail: string[];
|
|
304
|
+
} | {
|
|
305
|
+
kind: "sandbox-api-failed";
|
|
306
|
+
operation: string;
|
|
307
|
+
status: number | null;
|
|
308
|
+
message: string;
|
|
309
|
+
} | {
|
|
310
|
+
kind: "checkout-failed";
|
|
311
|
+
message: string;
|
|
312
|
+
command: string | null;
|
|
313
|
+
} | {
|
|
314
|
+
kind: "credential-claims-missing";
|
|
315
|
+
team: string;
|
|
316
|
+
project: string;
|
|
317
|
+
};
|
|
318
|
+
cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
319
|
+
}]>;
|
|
320
|
+
readonly runnerSecretsInvalid: import("@vercel/clinkr").SharedError<"runner_secrets_invalid", [data: {
|
|
321
|
+
variables: {
|
|
322
|
+
name: string;
|
|
323
|
+
problem: "missing" | "multiline" | "short";
|
|
324
|
+
}[];
|
|
325
|
+
minLength: number;
|
|
326
|
+
configFile: string | null;
|
|
327
|
+
}]>;
|
|
328
|
+
readonly snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
|
|
329
|
+
snapshotId: string;
|
|
330
|
+
base: string;
|
|
331
|
+
removal: {
|
|
332
|
+
path: string;
|
|
333
|
+
message: string;
|
|
334
|
+
} | null;
|
|
335
|
+
cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
336
|
+
}]>;
|
|
337
|
+
readonly spawnFailed: import("@vercel/clinkr").SharedError<"spawn_failed", [data: {
|
|
338
|
+
executable: string;
|
|
339
|
+
message: string;
|
|
340
|
+
cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
341
|
+
}]>;
|
|
342
|
+
readonly submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
|
|
343
|
+
paths: string[];
|
|
344
|
+
}]>;
|
|
345
|
+
}>, import("@vercel/clinkr").OutcomeOf<import("@vercel/clinkr").Outcomes<{
|
|
346
|
+
ran: z.ZodObject<{
|
|
347
|
+
version: z.ZodString;
|
|
348
|
+
commit: z.ZodNullable<z.ZodString>;
|
|
349
|
+
configFile: z.ZodNullable<z.ZodString>;
|
|
350
|
+
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>>;
|
|
351
|
+
cleanup: z.ZodType<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts>>;
|
|
352
|
+
command: z.ZodObject<{
|
|
353
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
354
|
+
signal: z.ZodNullable<z.ZodString>;
|
|
355
|
+
}, z.core.$strip>;
|
|
356
|
+
runner: z.ZodNullable<z.ZodObject<{
|
|
357
|
+
snapshotId: z.ZodString;
|
|
358
|
+
base: z.ZodString;
|
|
359
|
+
builtBehind: z.ZodNumber;
|
|
360
|
+
uploadBytes: z.ZodNumber;
|
|
361
|
+
built: z.ZodBoolean;
|
|
362
|
+
vcpus: z.ZodNumber;
|
|
363
|
+
region: z.ZodString;
|
|
364
|
+
runtime: z.ZodString;
|
|
365
|
+
buildMs: z.ZodNumber;
|
|
366
|
+
}, z.core.$strip>>;
|
|
367
|
+
timeline: z.ZodObject<{
|
|
368
|
+
startedAt: z.ZodString;
|
|
369
|
+
totalMs: z.ZodNumber;
|
|
370
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
371
|
+
name: z.ZodString;
|
|
372
|
+
resource: z.ZodNullable<z.ZodString>;
|
|
373
|
+
label: z.ZodString;
|
|
374
|
+
startMs: z.ZodNumber;
|
|
375
|
+
endMs: z.ZodNumber;
|
|
376
|
+
outcome: z.ZodEnum<{
|
|
377
|
+
done: "done";
|
|
378
|
+
failed: "failed";
|
|
379
|
+
stopped: "stopped";
|
|
380
|
+
unfinished: "unfinished";
|
|
381
|
+
}>;
|
|
382
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
383
|
+
name: z.ZodString;
|
|
384
|
+
startMs: z.ZodNumber;
|
|
385
|
+
endMs: z.ZodNumber;
|
|
386
|
+
outcome: z.ZodEnum<{
|
|
387
|
+
done: "done";
|
|
388
|
+
failed: "failed";
|
|
389
|
+
stopped: "stopped";
|
|
390
|
+
unfinished: "unfinished";
|
|
391
|
+
}>;
|
|
392
|
+
bytes: z.ZodOptional<z.ZodNumber>;
|
|
393
|
+
}, z.core.$strip>>;
|
|
394
|
+
idleMs: z.ZodNumber;
|
|
395
|
+
snapshot: z.ZodOptional<z.ZodEnum<{
|
|
396
|
+
built: "built";
|
|
397
|
+
reused: "reused";
|
|
398
|
+
}>>;
|
|
399
|
+
sandboxes: z.ZodOptional<z.ZodObject<{
|
|
400
|
+
reused: z.ZodNumber;
|
|
401
|
+
created: z.ZodNumber;
|
|
402
|
+
}, z.core.$strip>>;
|
|
403
|
+
}, z.core.$strip>>;
|
|
404
|
+
criticalPath: z.ZodArray<z.ZodObject<{
|
|
405
|
+
name: z.ZodString;
|
|
406
|
+
resource: z.ZodNullable<z.ZodString>;
|
|
407
|
+
}, z.core.$strip>>;
|
|
408
|
+
}, z.core.$strip>;
|
|
409
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
410
|
+
plan: z.ZodObject<{
|
|
411
|
+
tests: z.ZodNumber;
|
|
412
|
+
files: z.ZodNumber;
|
|
413
|
+
options: z.ZodArray<z.ZodObject<{
|
|
414
|
+
path: z.ZodString;
|
|
415
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
416
|
+
from: z.ZodEnum<{
|
|
417
|
+
default: "default";
|
|
418
|
+
file: "file";
|
|
419
|
+
flag: "flag";
|
|
420
|
+
}>;
|
|
421
|
+
}, z.core.$strip>>;
|
|
422
|
+
}, z.core.$strip>;
|
|
423
|
+
}, z.core.$strip>;
|
|
424
|
+
}, {
|
|
425
|
+
ran: unknown;
|
|
426
|
+
}, {
|
|
427
|
+
credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
|
|
428
|
+
flags: string[];
|
|
429
|
+
configFile: string | null;
|
|
430
|
+
}]>;
|
|
431
|
+
driverPlanFailed: import("@vercel/clinkr").SharedError<"driver_plan_failed", [data: {
|
|
432
|
+
driver: string;
|
|
433
|
+
kind: "exited" | "start-failed" | "timed-out" | "unreadable-output";
|
|
434
|
+
message: string;
|
|
435
|
+
args: string[];
|
|
436
|
+
cwd: string;
|
|
437
|
+
}]>;
|
|
438
|
+
invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
|
|
439
|
+
file: string;
|
|
440
|
+
problems: {
|
|
441
|
+
key: string | null;
|
|
442
|
+
location: {
|
|
443
|
+
line: number;
|
|
444
|
+
column: number | null;
|
|
445
|
+
} | null;
|
|
446
|
+
problem: string;
|
|
447
|
+
}[];
|
|
448
|
+
}]>;
|
|
449
|
+
invalidResourceOptions: import("@vercel/clinkr").SharedError<"invalid_resource_options", [data: {
|
|
450
|
+
configFile: string | null;
|
|
451
|
+
problems: {
|
|
452
|
+
key: string;
|
|
453
|
+
problem: string;
|
|
454
|
+
values: {
|
|
455
|
+
key: string;
|
|
456
|
+
value: string;
|
|
457
|
+
source: "default" | "file" | "flag";
|
|
458
|
+
}[];
|
|
459
|
+
}[];
|
|
460
|
+
}]>;
|
|
461
|
+
mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
|
|
462
|
+
team: string;
|
|
463
|
+
project: string;
|
|
464
|
+
cause: string;
|
|
465
|
+
fix: string;
|
|
466
|
+
runner: boolean;
|
|
467
|
+
cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
468
|
+
}]>;
|
|
469
|
+
missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
|
|
470
|
+
configFile: string | null;
|
|
471
|
+
}]>;
|
|
472
|
+
missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
|
|
473
|
+
missing: ("project" | "scope")[];
|
|
474
|
+
}]>;
|
|
475
|
+
noBaseRef: import("@vercel/clinkr").SharedError<"no_base_ref", [data: {
|
|
476
|
+
refs: {
|
|
477
|
+
ref: string;
|
|
478
|
+
reason: "missing" | "unrelated";
|
|
479
|
+
}[];
|
|
480
|
+
}]>;
|
|
481
|
+
noMatchingTests: import("@vercel/clinkr").SharedError<"no_matching_tests", [data: {
|
|
482
|
+
driver: string;
|
|
483
|
+
args: string[];
|
|
484
|
+
cwd: string;
|
|
485
|
+
}]>;
|
|
486
|
+
resourceRefused: import("@vercel/clinkr").SharedError<"resource_refused", [data: {
|
|
487
|
+
resource: string;
|
|
488
|
+
refusal: string;
|
|
489
|
+
data: Record<string, unknown>;
|
|
490
|
+
cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
491
|
+
}, refusal: import("../../sdk/extension/lifecycle.ts").RefusalContent]>;
|
|
492
|
+
resourceRefusedBeforeRun: import("@vercel/clinkr").SharedError<"resource_refused_before_run", [data: {
|
|
493
|
+
resource: string;
|
|
494
|
+
refusal: string;
|
|
495
|
+
data: Record<string, unknown>;
|
|
496
|
+
configFile: string | null;
|
|
497
|
+
}, refusal: import("../../sdk/extension/lifecycle.ts").RefusalContent]>;
|
|
498
|
+
runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
|
|
499
|
+
failure: {
|
|
500
|
+
kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
|
|
501
|
+
label: string;
|
|
502
|
+
exitCode: number | null;
|
|
503
|
+
tail: string[];
|
|
504
|
+
} | {
|
|
505
|
+
kind: "sandbox-api-failed";
|
|
506
|
+
operation: string;
|
|
507
|
+
status: number | null;
|
|
508
|
+
message: string;
|
|
509
|
+
} | {
|
|
510
|
+
kind: "checkout-failed";
|
|
511
|
+
message: string;
|
|
512
|
+
command: string | null;
|
|
513
|
+
} | {
|
|
514
|
+
kind: "credential-claims-missing";
|
|
515
|
+
team: string;
|
|
516
|
+
project: string;
|
|
517
|
+
};
|
|
518
|
+
cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
519
|
+
}]>;
|
|
520
|
+
runnerSecretsInvalid: import("@vercel/clinkr").SharedError<"runner_secrets_invalid", [data: {
|
|
521
|
+
variables: {
|
|
522
|
+
name: string;
|
|
523
|
+
problem: "missing" | "multiline" | "short";
|
|
524
|
+
}[];
|
|
525
|
+
minLength: number;
|
|
526
|
+
configFile: string | null;
|
|
527
|
+
}]>;
|
|
528
|
+
snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
|
|
529
|
+
snapshotId: string;
|
|
530
|
+
base: string;
|
|
531
|
+
removal: {
|
|
532
|
+
path: string;
|
|
533
|
+
message: string;
|
|
534
|
+
} | null;
|
|
535
|
+
cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
536
|
+
}]>;
|
|
537
|
+
spawnFailed: import("@vercel/clinkr").SharedError<"spawn_failed", [data: {
|
|
538
|
+
executable: string;
|
|
539
|
+
message: string;
|
|
540
|
+
cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
541
|
+
}]>;
|
|
542
|
+
submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
|
|
543
|
+
paths: string[];
|
|
544
|
+
}]>;
|
|
545
|
+
}, {
|
|
546
|
+
readonly credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
|
|
547
|
+
flags: string[];
|
|
548
|
+
configFile: string | null;
|
|
549
|
+
}]>;
|
|
550
|
+
readonly driverPlanFailed: import("@vercel/clinkr").SharedError<"driver_plan_failed", [data: {
|
|
551
|
+
driver: string;
|
|
552
|
+
kind: "exited" | "start-failed" | "timed-out" | "unreadable-output";
|
|
553
|
+
message: string;
|
|
554
|
+
args: string[];
|
|
555
|
+
cwd: string;
|
|
556
|
+
}]>;
|
|
557
|
+
readonly invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
|
|
558
|
+
file: string;
|
|
559
|
+
problems: {
|
|
560
|
+
key: string | null;
|
|
561
|
+
location: {
|
|
562
|
+
line: number;
|
|
563
|
+
column: number | null;
|
|
564
|
+
} | null;
|
|
565
|
+
problem: string;
|
|
566
|
+
}[];
|
|
567
|
+
}]>;
|
|
568
|
+
readonly invalidResourceOptions: import("@vercel/clinkr").SharedError<"invalid_resource_options", [data: {
|
|
569
|
+
configFile: string | null;
|
|
570
|
+
problems: {
|
|
571
|
+
key: string;
|
|
572
|
+
problem: string;
|
|
573
|
+
values: {
|
|
574
|
+
key: string;
|
|
575
|
+
value: string;
|
|
576
|
+
source: "default" | "file" | "flag";
|
|
577
|
+
}[];
|
|
578
|
+
}[];
|
|
579
|
+
}]>;
|
|
580
|
+
readonly mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
|
|
581
|
+
team: string;
|
|
582
|
+
project: string;
|
|
583
|
+
cause: string;
|
|
584
|
+
fix: string;
|
|
585
|
+
runner: boolean;
|
|
586
|
+
cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
587
|
+
}]>;
|
|
588
|
+
readonly missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
|
|
589
|
+
configFile: string | null;
|
|
590
|
+
}]>;
|
|
591
|
+
readonly missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
|
|
592
|
+
missing: ("project" | "scope")[];
|
|
593
|
+
}]>;
|
|
594
|
+
readonly noBaseRef: import("@vercel/clinkr").SharedError<"no_base_ref", [data: {
|
|
595
|
+
refs: {
|
|
596
|
+
ref: string;
|
|
597
|
+
reason: "missing" | "unrelated";
|
|
598
|
+
}[];
|
|
599
|
+
}]>;
|
|
600
|
+
readonly noMatchingTests: import("@vercel/clinkr").SharedError<"no_matching_tests", [data: {
|
|
601
|
+
driver: string;
|
|
602
|
+
args: string[];
|
|
603
|
+
cwd: string;
|
|
604
|
+
}]>;
|
|
605
|
+
readonly resourceRefused: import("@vercel/clinkr").SharedError<"resource_refused", [data: {
|
|
606
|
+
resource: string;
|
|
607
|
+
refusal: string;
|
|
608
|
+
data: Record<string, unknown>;
|
|
609
|
+
cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
610
|
+
}, refusal: import("../../sdk/extension/lifecycle.ts").RefusalContent]>;
|
|
611
|
+
readonly resourceRefusedBeforeRun: import("@vercel/clinkr").SharedError<"resource_refused_before_run", [data: {
|
|
612
|
+
resource: string;
|
|
613
|
+
refusal: string;
|
|
614
|
+
data: Record<string, unknown>;
|
|
615
|
+
configFile: string | null;
|
|
616
|
+
}, refusal: import("../../sdk/extension/lifecycle.ts").RefusalContent]>;
|
|
617
|
+
readonly runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
|
|
618
|
+
failure: {
|
|
619
|
+
kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
|
|
620
|
+
label: string;
|
|
621
|
+
exitCode: number | null;
|
|
622
|
+
tail: string[];
|
|
623
|
+
} | {
|
|
624
|
+
kind: "sandbox-api-failed";
|
|
625
|
+
operation: string;
|
|
626
|
+
status: number | null;
|
|
627
|
+
message: string;
|
|
628
|
+
} | {
|
|
629
|
+
kind: "checkout-failed";
|
|
630
|
+
message: string;
|
|
631
|
+
command: string | null;
|
|
632
|
+
} | {
|
|
633
|
+
kind: "credential-claims-missing";
|
|
634
|
+
team: string;
|
|
635
|
+
project: string;
|
|
636
|
+
};
|
|
637
|
+
cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
638
|
+
}]>;
|
|
639
|
+
readonly runnerSecretsInvalid: import("@vercel/clinkr").SharedError<"runner_secrets_invalid", [data: {
|
|
640
|
+
variables: {
|
|
641
|
+
name: string;
|
|
642
|
+
problem: "missing" | "multiline" | "short";
|
|
643
|
+
}[];
|
|
644
|
+
minLength: number;
|
|
645
|
+
configFile: string | null;
|
|
646
|
+
}]>;
|
|
647
|
+
readonly snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
|
|
648
|
+
snapshotId: string;
|
|
649
|
+
base: string;
|
|
650
|
+
removal: {
|
|
651
|
+
path: string;
|
|
652
|
+
message: string;
|
|
653
|
+
} | null;
|
|
654
|
+
cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
655
|
+
}]>;
|
|
656
|
+
readonly spawnFailed: import("@vercel/clinkr").SharedError<"spawn_failed", [data: {
|
|
657
|
+
executable: string;
|
|
658
|
+
message: string;
|
|
659
|
+
cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
660
|
+
}]>;
|
|
661
|
+
readonly submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
|
|
662
|
+
paths: string[];
|
|
663
|
+
}]>;
|
|
664
|
+
}>>, import("../../context.ts").StormApp, false>;
|