@cnc-tools/storm 0.0.0 → 0.6.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/bin/node-version.js +24 -0
- package/bin/storm.js +16 -0
- package/dist/application.d.ts +13 -0
- package/dist/application.js +23 -0
- package/dist/bin/storm.d.ts +1 -0
- package/dist/bin/storm.js +45 -0
- package/dist/build-info.js +3 -0
- package/dist/closed-terminal.d.ts +7 -0
- package/dist/closed-terminal.js +18 -0
- package/dist/combine-errors.d.ts +11 -0
- package/dist/combine-errors.js +19 -0
- package/dist/commands/dashboard.d.ts +11 -0
- package/dist/commands/dashboard.js +18 -0
- package/dist/commands/exec/cleanup.d.ts +135 -0
- package/dist/commands/exec/cleanup.js +171 -0
- package/dist/commands/exec/command.d.ts +272 -0
- package/dist/commands/exec/command.js +23 -0
- package/dist/commands/exec/job-summary.d.ts +10 -0
- package/dist/commands/exec/job-summary.js +34 -0
- package/dist/commands/exec/live-view.d.ts +22 -0
- package/dist/commands/exec/live-view.js +395 -0
- package/dist/commands/exec/metadata.d.ts +66 -0
- package/dist/commands/exec/metadata.js +55 -0
- package/dist/commands/exec/mint-failed.d.ts +11 -0
- package/dist/commands/exec/mint-failed.js +33 -0
- package/dist/commands/exec/outcomes.d.ts +614 -0
- package/dist/commands/exec/outcomes.js +338 -0
- package/dist/commands/exec/progress.d.ts +44 -0
- package/dist/commands/exec/progress.js +277 -0
- package/dist/commands/exec/redaction.d.ts +15 -0
- package/dist/commands/exec/redaction.js +40 -0
- package/dist/commands/exec/run-collector.d.ts +30 -0
- package/dist/commands/exec/run-collector.js +73 -0
- package/dist/commands/exec/run-command.d.ts +221 -0
- package/dist/commands/exec/run-command.js +663 -0
- package/dist/commands/exec/run-metadata.d.ts +56 -0
- package/dist/commands/exec/run-metadata.js +58 -0
- package/dist/commands/exec/run-record.d.ts +170 -0
- package/dist/commands/exec/run-record.js +104 -0
- package/dist/commands/exec/tests-summary.d.ts +34 -0
- package/dist/commands/exec/tests-summary.js +141 -0
- package/dist/commands/exec/testserver-flags.d.ts +48 -0
- package/dist/commands/exec/testserver-flags.js +80 -0
- package/dist/commands/exec/text.d.ts +22 -0
- package/dist/commands/exec/text.js +74 -0
- package/dist/commands/exec/view.d.ts +35 -0
- package/dist/commands/exec/view.js +163 -0
- package/dist/commands/exec/waterfall.d.ts +25 -0
- package/dist/commands/exec/waterfall.js +108 -0
- package/dist/commands/exec/worker-chart.d.ts +79 -0
- package/dist/commands/exec/worker-chart.js +313 -0
- package/dist/commands/runs/facts.d.ts +150 -0
- package/dist/commands/runs/facts.js +292 -0
- package/dist/commands/runs/list/command.d.ts +86 -0
- package/dist/commands/runs/list/command.js +36 -0
- package/dist/commands/runs/list/metadata.d.ts +22 -0
- package/dist/commands/runs/list/metadata.js +19 -0
- package/dist/commands/runs/list/outcomes.d.ts +74 -0
- package/dist/commands/runs/list/outcomes.js +89 -0
- package/dist/commands/runs/logs/command.d.ts +72 -0
- package/dist/commands/runs/logs/command.js +51 -0
- package/dist/commands/runs/logs/metadata.d.ts +22 -0
- package/dist/commands/runs/logs/metadata.js +22 -0
- package/dist/commands/runs/logs/outcomes.d.ts +55 -0
- package/dist/commands/runs/logs/outcomes.js +80 -0
- package/dist/commands/runs/metadata.d.ts +3 -0
- package/dist/commands/runs/metadata.js +3 -0
- package/dist/commands/runs/past-run.d.ts +72 -0
- package/dist/commands/runs/past-run.js +99 -0
- package/dist/commands/runs/show/command.d.ts +176 -0
- package/dist/commands/runs/show/command.js +76 -0
- package/dist/commands/runs/show/metadata.d.ts +25 -0
- package/dist/commands/runs/show/metadata.js +22 -0
- package/dist/commands/runs/show/outcomes.d.ts +164 -0
- package/dist/commands/runs/show/outcomes.js +320 -0
- package/dist/commands/vitest/command.d.ts +299 -0
- package/dist/commands/vitest/command.js +138 -0
- package/dist/commands/vitest/metadata.d.ts +66 -0
- package/dist/commands/vitest/metadata.js +35 -0
- package/dist/commands/vitest/outcomes.d.ts +273 -0
- package/dist/commands/vitest/outcomes.js +77 -0
- package/dist/config/by-name.d.ts +24 -0
- package/dist/config/by-name.js +26 -0
- package/dist/config/errors.d.ts +58 -0
- package/dist/config/errors.js +101 -0
- package/dist/config/gateways.d.ts +32 -0
- package/dist/config/gateways.js +1 -0
- package/dist/config/index.d.ts +10 -0
- package/dist/config/index.js +13 -0
- package/dist/config/live/config-gateway.d.ts +6 -0
- package/dist/config/live/config-gateway.js +71 -0
- package/dist/config/load.d.ts +54 -0
- package/dist/config/load.js +175 -0
- package/dist/config/resolve.d.ts +49 -0
- package/dist/config/resolve.js +94 -0
- package/dist/config/resource-config.d.ts +132 -0
- package/dist/config/resource-config.js +19 -0
- package/dist/config/schema.d.ts +64 -0
- package/dist/config/schema.js +57 -0
- package/dist/config/set.d.ts +27 -0
- package/dist/config/set.js +71 -0
- package/dist/config/settings-file.d.ts +41 -0
- package/dist/config/settings-file.js +72 -0
- package/dist/config-file/define.d.ts +39 -0
- package/dist/config-file/define.js +9 -0
- package/dist/config-file/toolchain.d.ts +9 -0
- package/dist/config-file/toolchain.js +41 -0
- package/dist/context.d.ts +89 -0
- package/dist/context.js +45 -0
- package/dist/core/command-provider.d.ts +126 -0
- package/dist/core/command-provider.js +13 -0
- package/dist/core/command-slots.d.ts +67 -0
- package/dist/core/command-slots.js +136 -0
- package/dist/core/events.d.ts +128 -0
- package/dist/core/events.js +15 -0
- package/dist/core/gateways.d.ts +249 -0
- package/dist/core/gateways.js +1 -0
- package/dist/core/index.d.ts +20 -0
- package/dist/core/index.js +18 -0
- package/dist/core/keyed.d.ts +12 -0
- package/dist/core/keyed.js +24 -0
- package/dist/core/lane.d.ts +46 -0
- package/dist/core/lane.js +5 -0
- package/dist/core/limit.d.ts +9 -0
- package/dist/core/limit.js +29 -0
- package/dist/core/live/command-gateway.d.ts +11 -0
- package/dist/core/live/command-gateway.js +83 -0
- package/dist/core/live/job-summary-gateway.d.ts +5 -0
- package/dist/core/live/job-summary-gateway.js +20 -0
- package/dist/core/live/progress-terminal.d.ts +20 -0
- package/dist/core/live/progress-terminal.js +173 -0
- package/dist/core/live/run-directory-gateway.d.ts +24 -0
- package/dist/core/live/run-directory-gateway.js +437 -0
- package/dist/core/mint.d.ts +10 -0
- package/dist/core/mint.js +14 -0
- package/dist/core/payload.d.ts +26 -0
- package/dist/core/payload.js +33 -0
- package/dist/core/presentation.d.ts +87 -0
- package/dist/core/presentation.js +5 -0
- package/dist/core/presentations.d.ts +56 -0
- package/dist/core/presentations.js +66 -0
- package/dist/core/provider.d.ts +69 -0
- package/dist/core/provider.js +5 -0
- package/dist/core/resource.d.ts +262 -0
- package/dist/core/resource.js +6 -0
- package/dist/core/resources.d.ts +131 -0
- package/dist/core/resources.js +254 -0
- package/dist/core/run-directory.d.ts +69 -0
- package/dist/core/run-directory.js +94 -0
- package/dist/core/run-state.d.ts +152 -0
- package/dist/core/run-state.js +313 -0
- package/dist/core/run.d.ts +187 -0
- package/dist/core/run.js +321 -0
- package/dist/core/state-directory.d.ts +19 -0
- package/dist/core/state-directory.js +29 -0
- package/dist/core/timeline.d.ts +63 -0
- package/dist/core/timeline.js +97 -0
- package/dist/core/timing.d.ts +22 -0
- package/dist/core/timing.js +26 -0
- package/dist/credential/credential.d.ts +46 -0
- package/dist/credential/credential.js +80 -0
- package/dist/credential/diagnosis.d.ts +18 -0
- package/dist/credential/diagnosis.js +99 -0
- package/dist/credential/gateways.d.ts +109 -0
- package/dist/credential/gateways.js +1 -0
- package/dist/credential/index.d.ts +7 -0
- package/dist/credential/index.js +7 -0
- package/dist/credential/live/github-actions-token-gateway.d.ts +15 -0
- package/dist/credential/live/github-actions-token-gateway.js +43 -0
- package/dist/credential/live/github-actions-token-response.d.ts +19 -0
- package/dist/credential/live/github-actions-token-response.js +49 -0
- package/dist/credential/live/vercel-cli-gateway.d.ts +9 -0
- package/dist/credential/live/vercel-cli-gateway.js +64 -0
- package/dist/credential/live/vercel-output.d.ts +60 -0
- package/dist/credential/live/vercel-output.js +122 -0
- package/dist/credential/live/vercel-process.d.ts +14 -0
- package/dist/credential/live/vercel-process.js +3 -0
- package/dist/credential/settle.d.ts +31 -0
- package/dist/credential/settle.js +49 -0
- package/dist/credential/source.d.ts +110 -0
- package/dist/credential/source.js +114 -0
- package/dist/help-logo.d.ts +11 -0
- package/dist/help-logo.js +56 -0
- package/dist/presentation.d.ts +26 -0
- package/dist/presentation.js +21 -0
- package/dist/resources/github/cleanup.d.ts +23 -0
- package/dist/resources/github/cleanup.js +39 -0
- package/dist/resources/github/command.d.ts +74 -0
- package/dist/resources/github/command.js +117 -0
- package/dist/resources/github/config.d.ts +16 -0
- package/dist/resources/github/config.js +37 -0
- package/dist/resources/github/events.d.ts +26 -0
- package/dist/resources/github/events.js +2 -0
- package/dist/resources/github/fixture-repo.d.ts +69 -0
- package/dist/resources/github/fixture-repo.js +60 -0
- package/dist/resources/github/gateways.d.ts +62 -0
- package/dist/resources/github/gateways.js +1 -0
- package/dist/resources/github/index.d.ts +12 -0
- package/dist/resources/github/index.js +15 -0
- package/dist/resources/github/live/fixture-repo-gateway.d.ts +12 -0
- package/dist/resources/github/live/fixture-repo-gateway.js +92 -0
- package/dist/resources/github/live/gateways.d.ts +6 -0
- package/dist/resources/github/live/gateways.js +13 -0
- package/dist/resources/github/presentation.d.ts +13 -0
- package/dist/resources/github/presentation.js +43 -0
- package/dist/resources/github/provider.d.ts +66 -0
- package/dist/resources/github/provider.js +58 -0
- package/dist/resources/github/resource-provider.d.ts +6 -0
- package/dist/resources/github/resource-provider.js +20 -0
- package/dist/resources/github/resource.d.ts +33 -0
- package/dist/resources/github/resource.js +12 -0
- package/dist/resources/testserver/cleanup.d.ts +14 -0
- package/dist/resources/testserver/cleanup.js +22 -0
- package/dist/resources/testserver/command.d.ts +322 -0
- package/dist/resources/testserver/command.js +245 -0
- package/dist/resources/testserver/commands/app.d.ts +18 -0
- package/dist/resources/testserver/commands/app.js +3 -0
- package/dist/resources/testserver/commands/create/command.d.ts +136 -0
- package/dist/resources/testserver/commands/create/command.js +158 -0
- package/dist/resources/testserver/commands/create/metadata.d.ts +31 -0
- package/dist/resources/testserver/commands/create/metadata.js +45 -0
- package/dist/resources/testserver/commands/create/outcomes.d.ts +111 -0
- package/dist/resources/testserver/commands/create/outcomes.js +172 -0
- package/dist/resources/testserver/commands/list/command.d.ts +60 -0
- package/dist/resources/testserver/commands/list/command.js +56 -0
- package/dist/resources/testserver/commands/list/metadata.d.ts +9 -0
- package/dist/resources/testserver/commands/list/metadata.js +9 -0
- package/dist/resources/testserver/commands/list/outcomes.d.ts +54 -0
- package/dist/resources/testserver/commands/list/outcomes.js +152 -0
- package/dist/resources/testserver/config.d.ts +18 -0
- package/dist/resources/testserver/config.js +78 -0
- package/dist/resources/testserver/credential-facts.d.ts +80 -0
- package/dist/resources/testserver/credential-facts.js +83 -0
- package/dist/resources/testserver/events.d.ts +59 -0
- package/dist/resources/testserver/events.js +4 -0
- package/dist/resources/testserver/index.d.ts +16 -0
- package/dist/resources/testserver/index.js +24 -0
- package/dist/resources/testserver/lane.d.ts +28 -0
- package/dist/resources/testserver/lane.js +139 -0
- package/dist/resources/testserver/live/gateways.d.ts +6 -0
- package/dist/resources/testserver/live/gateways.js +26 -0
- package/dist/resources/testserver/options.d.ts +5 -0
- package/dist/resources/testserver/options.js +5 -0
- package/dist/resources/testserver/pool/channels.d.ts +80 -0
- package/dist/resources/testserver/pool/channels.js +48 -0
- package/dist/resources/testserver/pool/create.d.ts +48 -0
- package/dist/resources/testserver/pool/create.js +45 -0
- package/dist/resources/testserver/pool/directory.d.ts +4 -0
- package/dist/resources/testserver/pool/directory.js +5 -0
- package/dist/resources/testserver/pool/gateways.d.ts +190 -0
- package/dist/resources/testserver/pool/gateways.js +1 -0
- package/dist/resources/testserver/pool/host.d.ts +8 -0
- package/dist/resources/testserver/pool/host.js +21 -0
- package/dist/resources/testserver/pool/index.d.ts +9 -0
- package/dist/resources/testserver/pool/index.js +10 -0
- package/dist/resources/testserver/pool/inspect.d.ts +53 -0
- package/dist/resources/testserver/pool/inspect.js +45 -0
- package/dist/resources/testserver/pool/lease.d.ts +84 -0
- package/dist/resources/testserver/pool/lease.js +125 -0
- package/dist/resources/testserver/pool/live/pool-records.d.ts +17 -0
- package/dist/resources/testserver/pool/live/pool-records.js +70 -0
- package/dist/resources/testserver/pool/live/pool-store-gateway.d.ts +12 -0
- package/dist/resources/testserver/pool/live/pool-store-gateway.js +435 -0
- package/dist/resources/testserver/pool/staleness.d.ts +16 -0
- package/dist/resources/testserver/pool/staleness.js +27 -0
- package/dist/resources/testserver/presentation.d.ts +9 -0
- package/dist/resources/testserver/presentation.js +217 -0
- package/dist/resources/testserver/provider.d.ts +177 -0
- package/dist/resources/testserver/provider.js +254 -0
- package/dist/resources/testserver/ran.d.ts +87 -0
- package/dist/resources/testserver/ran.js +140 -0
- package/dist/resources/testserver/resource-provider.d.ts +12 -0
- package/dist/resources/testserver/resource-provider.js +38 -0
- package/dist/resources/testserver/resource.d.ts +32 -0
- package/dist/resources/testserver/resource.js +10 -0
- package/dist/resources/testserver/run-sandbox.d.ts +13 -0
- package/dist/resources/testserver/run-sandbox.js +6 -0
- package/dist/resources/testserver/sandbox/channels.d.ts +12 -0
- package/dist/resources/testserver/sandbox/channels.js +21 -0
- package/dist/resources/testserver/sandbox/create-failure.d.ts +35 -0
- package/dist/resources/testserver/sandbox/create-failure.js +65 -0
- package/dist/resources/testserver/sandbox/create.d.ts +29 -0
- package/dist/resources/testserver/sandbox/create.js +37 -0
- package/dist/resources/testserver/sandbox/gateways.d.ts +150 -0
- package/dist/resources/testserver/sandbox/gateways.js +1 -0
- package/dist/resources/testserver/sandbox/index.d.ts +6 -0
- package/dist/resources/testserver/sandbox/index.js +7 -0
- package/dist/resources/testserver/sandbox/live/builds-response.d.ts +9 -0
- package/dist/resources/testserver/sandbox/live/builds-response.js +27 -0
- package/dist/resources/testserver/sandbox/live/control-plane-gateway.d.ts +17 -0
- package/dist/resources/testserver/sandbox/live/control-plane-gateway.js +133 -0
- package/dist/resources/testserver/sandbox/live/create-response.d.ts +35 -0
- package/dist/resources/testserver/sandbox/live/create-response.js +78 -0
- package/dist/resources/testserver/sandbox/live/fetch-failure.d.ts +24 -0
- package/dist/resources/testserver/sandbox/live/fetch-failure.js +45 -0
- package/dist/resources/testserver/sandbox/live/health-check-gateway.d.ts +11 -0
- package/dist/resources/testserver/sandbox/live/health-check-gateway.js +36 -0
- package/dist/resources/testserver/sandbox/live/sse.d.ts +12 -0
- package/dist/resources/testserver/sandbox/live/sse.js +32 -0
- package/dist/resources.d.ts +455 -0
- package/dist/resources.js +88 -0
- package/dist/runner/base.d.ts +40 -0
- package/dist/runner/base.js +52 -0
- package/dist/runner/context.d.ts +13 -0
- package/dist/runner/context.js +9 -0
- package/dist/runner/events.d.ts +179 -0
- package/dist/runner/events.js +16 -0
- package/dist/runner/gateways.d.ts +351 -0
- package/dist/runner/gateways.js +3 -0
- package/dist/runner/index.d.ts +19 -0
- package/dist/runner/index.js +18 -0
- package/dist/runner/live/checkout-gateway.d.ts +3 -0
- package/dist/runner/live/checkout-gateway.js +206 -0
- package/dist/runner/live/git-output.d.ts +14 -0
- package/dist/runner/live/git-output.js +32 -0
- package/dist/runner/live/sandbox-errors.d.ts +7 -0
- package/dist/runner/live/sandbox-errors.js +21 -0
- package/dist/runner/live/sandbox-gateway.d.ts +7 -0
- package/dist/runner/live/sandbox-gateway.js +427 -0
- package/dist/runner/live/snapshot-cache-gateway.d.ts +12 -0
- package/dist/runner/live/snapshot-cache-gateway.js +104 -0
- package/dist/runner/live/snapshot-records.d.ts +11 -0
- package/dist/runner/live/snapshot-records.js +57 -0
- package/dist/runner/live/terminal.d.ts +16 -0
- package/dist/runner/live/terminal.js +37 -0
- package/dist/runner/live/user.d.ts +2 -0
- package/dist/runner/live/user.js +11 -0
- package/dist/runner/output.d.ts +23 -0
- package/dist/runner/output.js +58 -0
- package/dist/runner/prepare.d.ts +67 -0
- package/dist/runner/prepare.js +59 -0
- package/dist/runner/ready.d.ts +68 -0
- package/dist/runner/ready.js +159 -0
- package/dist/runner/recipe.d.ts +126 -0
- package/dist/runner/recipe.js +302 -0
- package/dist/runner/remote-command.d.ts +77 -0
- package/dist/runner/remote-command.js +127 -0
- package/dist/runner/scope.d.ts +58 -0
- package/dist/runner/scope.js +117 -0
- package/dist/runner/snapshot-build.d.ts +33 -0
- package/dist/runner/snapshot-build.js +112 -0
- package/dist/runner/snapshot-cache.d.ts +84 -0
- package/dist/runner/snapshot-cache.js +126 -0
- package/dist/runner/snapshot-key.d.ts +52 -0
- package/dist/runner/snapshot-key.js +91 -0
- package/dist/runner/steps.d.ts +41 -0
- package/dist/runner/steps.js +49 -0
- package/dist/sdk/container/api-request.d.ts +32 -0
- package/dist/sdk/container/api-request.js +46 -0
- package/dist/sdk/container/container.d.ts +144 -0
- package/dist/sdk/container/container.js +346 -0
- package/dist/sdk/container/feature-flags.d.ts +37 -0
- package/dist/sdk/container/feature-flags.js +118 -0
- package/dist/sdk/container/gateways.d.ts +108 -0
- package/dist/sdk/container/gateways.js +1 -0
- package/dist/sdk/container/index.d.ts +5 -0
- package/dist/sdk/container/index.js +5 -0
- package/dist/sdk/container/live/container-gateway.d.ts +17 -0
- package/dist/sdk/container/live/container-gateway.js +114 -0
- package/dist/sdk/factories/build.d.ts +66 -0
- package/dist/sdk/factories/build.js +98 -0
- package/dist/sdk/factories/definition.d.ts +28 -0
- package/dist/sdk/factories/definition.js +16 -0
- package/dist/sdk/factories/definitions.d.ts +166 -0
- package/dist/sdk/factories/definitions.js +235 -0
- package/dist/sdk/factories/gateways.d.ts +25 -0
- package/dist/sdk/factories/gateways.js +1 -0
- package/dist/sdk/factories/index.d.ts +5 -0
- package/dist/sdk/factories/index.js +5 -0
- package/dist/sdk/factories/live/factory-gateway.d.ts +10 -0
- package/dist/sdk/factories/live/factory-gateway.js +29 -0
- package/dist/sdk/index.d.ts +7 -0
- package/dist/sdk/index.js +15 -0
- package/dist/sdk/payload/index.d.ts +2 -0
- package/dist/sdk/payload/index.js +4 -0
- package/dist/sdk/payload/payload.d.ts +47 -0
- package/dist/sdk/payload/payload.js +74 -0
- package/dist/sdk/payload/test-events.d.ts +102 -0
- package/dist/sdk/payload/test-events.js +59 -0
- package/dist/sdk/proxy/exchange.d.ts +58 -0
- package/dist/sdk/proxy/exchange.js +173 -0
- package/dist/sdk/proxy/faulted-exchange.d.ts +10 -0
- package/dist/sdk/proxy/faulted-exchange.js +106 -0
- package/dist/sdk/proxy/faults.d.ts +133 -0
- package/dist/sdk/proxy/faults.js +147 -0
- package/dist/sdk/proxy/index.d.ts +3 -0
- package/dist/sdk/proxy/index.js +3 -0
- package/dist/sdk/proxy/proxy.d.ts +93 -0
- package/dist/sdk/proxy/proxy.js +99 -0
- package/dist/sdk/proxy/records.d.ts +56 -0
- package/dist/sdk/proxy/records.js +56 -0
- package/dist/sdk/records/body.d.ts +89 -0
- package/dist/sdk/records/body.js +236 -0
- package/dist/sdk/records/index.d.ts +2 -0
- package/dist/sdk/records/index.js +4 -0
- package/dist/sdk/records/records.d.ts +49 -0
- package/dist/sdk/records/records.js +16 -0
- package/dist/sdk/seed/index.d.ts +1 -0
- package/dist/sdk/seed/index.js +3 -0
- package/dist/sdk/seed/seed.d.ts +221 -0
- package/dist/sdk/seed/seed.js +171 -0
- package/dist/sdk/testserver/clock.d.ts +8 -0
- package/dist/sdk/testserver/clock.js +10 -0
- package/dist/sdk/testserver/failure.d.ts +73 -0
- package/dist/sdk/testserver/failure.js +61 -0
- package/dist/sdk/testserver/index.d.ts +5 -0
- package/dist/sdk/testserver/index.js +8 -0
- package/dist/sdk/testserver/live/connect-failure.d.ts +7 -0
- package/dist/sdk/testserver/live/connect-failure.js +30 -0
- package/dist/sdk/testserver/live/request.d.ts +69 -0
- package/dist/sdk/testserver/live/request.js +89 -0
- package/dist/sdk/testserver/service-ids.d.ts +19 -0
- package/dist/sdk/testserver/service-ids.js +77 -0
- package/dist/sdk/testserver/test-id.d.ts +15 -0
- package/dist/sdk/testserver/test-id.js +28 -0
- package/dist/story/align.d.ts +37 -0
- package/dist/story/align.js +39 -0
- package/dist/story/artifact.d.ts +60 -0
- package/dist/story/artifact.js +93 -0
- package/dist/story/definition.d.ts +52 -0
- package/dist/story/definition.js +9 -0
- package/dist/story/diff.d.ts +9 -0
- package/dist/story/diff.js +97 -0
- package/dist/story/errors.d.ts +14 -0
- package/dist/story/errors.js +21 -0
- package/dist/story/gateways.d.ts +74 -0
- package/dist/story/gateways.js +3 -0
- package/dist/story/host.d.ts +27 -0
- package/dist/story/host.js +97 -0
- package/dist/story/index.d.ts +7 -0
- package/dist/story/index.js +9 -0
- package/dist/story/json.d.ts +16 -0
- package/dist/story/json.js +59 -0
- package/dist/story/live/artifact-gateway.d.ts +2 -0
- package/dist/story/live/artifact-gateway.js +82 -0
- package/dist/story/mode.d.ts +17 -0
- package/dist/story/mode.js +21 -0
- package/dist/story/orphans.d.ts +17 -0
- package/dist/story/orphans.js +15 -0
- package/dist/story/report.d.ts +30 -0
- package/dist/story/report.js +118 -0
- package/dist/story/run.d.ts +49 -0
- package/dist/story/run.js +160 -0
- package/dist/story/sequence.d.ts +30 -0
- package/dist/story/sequence.js +74 -0
- package/dist/story/settle.d.ts +94 -0
- package/dist/story/settle.js +70 -0
- package/dist/time/duration.d.ts +19 -0
- package/dist/time/duration.js +37 -0
- package/dist/time/index.d.ts +2 -0
- package/dist/time/index.js +4 -0
- package/dist/time/time.d.ts +15 -0
- package/dist/time/time.js +23 -0
- package/dist/vercel-cli/ansi.d.ts +13 -0
- package/dist/vercel-cli/ansi.js +32 -0
- package/dist/vercel-cli/arguments.d.ts +25 -0
- package/dist/vercel-cli/arguments.js +78 -0
- package/dist/vercel-cli/auth-config.d.ts +43 -0
- package/dist/vercel-cli/auth-config.js +36 -0
- package/dist/vercel-cli/clock.d.ts +9 -0
- package/dist/vercel-cli/clock.js +10 -0
- package/dist/vercel-cli/config-files.d.ts +24 -0
- package/dist/vercel-cli/config-files.js +40 -0
- package/dist/vercel-cli/context.d.ts +12 -0
- package/dist/vercel-cli/context.js +12 -0
- package/dist/vercel-cli/driver.d.ts +218 -0
- package/dist/vercel-cli/driver.js +364 -0
- package/dist/vercel-cli/entry.d.ts +8 -0
- package/dist/vercel-cli/entry.js +13 -0
- package/dist/vercel-cli/environment.d.ts +33 -0
- package/dist/vercel-cli/environment.js +72 -0
- package/dist/vercel-cli/errors.d.ts +8 -0
- package/dist/vercel-cli/errors.js +8 -0
- package/dist/vercel-cli/gateways.d.ts +103 -0
- package/dist/vercel-cli/gateways.js +4 -0
- package/dist/vercel-cli/index.d.ts +10 -0
- package/dist/vercel-cli/index.js +15 -0
- package/dist/vercel-cli/invocation.d.ts +234 -0
- package/dist/vercel-cli/invocation.js +397 -0
- package/dist/vercel-cli/keys.d.ts +14 -0
- package/dist/vercel-cli/keys.js +12 -0
- package/dist/vercel-cli/live/config-files.d.ts +28 -0
- package/dist/vercel-cli/live/config-files.js +66 -0
- package/dist/vercel-cli/live/process-gateway.d.ts +14 -0
- package/dist/vercel-cli/live/process-gateway.js +178 -0
- package/dist/vercel-cli/redaction.d.ts +13 -0
- package/dist/vercel-cli/redaction.js +22 -0
- package/dist/vercel-cli/report.d.ts +22 -0
- package/dist/vercel-cli/report.js +110 -0
- package/dist/vercel-cli/verbose.d.ts +7 -0
- package/dist/vercel-cli/verbose.js +24 -0
- package/dist/version.d.ts +20 -0
- package/dist/version.js +57 -0
- package/dist/vitest/config.d.ts +51 -0
- package/dist/vitest/config.js +61 -0
- package/dist/vitest/container-scope.d.ts +108 -0
- package/dist/vitest/container-scope.js +234 -0
- package/dist/vitest/diagnostics.d.ts +146 -0
- package/dist/vitest/diagnostics.js +306 -0
- package/dist/vitest/find-vitest.d.ts +7 -0
- package/dist/vitest/find-vitest.js +28 -0
- package/dist/vitest/fixtures.d.ts +64 -0
- package/dist/vitest/fixtures.js +172 -0
- package/dist/vitest/gateways.d.ts +78 -0
- package/dist/vitest/gateways.js +4 -0
- package/dist/vitest/index.d.ts +3 -0
- package/dist/vitest/index.js +9 -0
- package/dist/vitest/list-output.d.ts +3 -0
- package/dist/vitest/list-output.js +19 -0
- package/dist/vitest/live/list-gateway.d.ts +11 -0
- package/dist/vitest/live/list-gateway.js +107 -0
- package/dist/vitest/ownership.d.ts +29 -0
- package/dist/vitest/ownership.js +68 -0
- package/dist/vitest/plan.d.ts +66 -0
- package/dist/vitest/plan.js +104 -0
- package/dist/vitest/sandbox.d.ts +16 -0
- package/dist/vitest/sandbox.js +35 -0
- package/dist/vitest/test-events.d.ts +41 -0
- package/dist/vitest/test-events.js +92 -0
- package/dist/vitest/test-results.d.ts +84 -0
- package/dist/vitest/test-results.js +160 -0
- package/dist/vitest/types.d.ts +68 -0
- package/dist/vitest/types.js +4 -0
- package/package.json +119 -3
- package/skills/overview.md +33 -0
- package/skills/read-run-output.md +65 -0
- package/README.md +0 -3
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The code of a `fetch` failure that happened before connecting: a `TypeError` whose `cause.code` is in the
|
|
3
|
+
* set above. `undefined` for any other error, which may have come after the server got the request.
|
|
4
|
+
*/
|
|
5
|
+
export declare function connectFailureCode(error: unknown): string | undefined;
|
|
6
|
+
/**
|
|
7
|
+
* What a rejected `fetch` means: `connect-failed` when it failed before connecting, `timeout` when `signal`
|
|
8
|
+
* (the request's timeout) aborted it, and `dropped`, with the error's message, otherwise.
|
|
9
|
+
*
|
|
10
|
+
* Use it only where the `fetch` call itself rejected. Once the response has arrived, the request reached the
|
|
11
|
+
* server, and a later failure must never read as `connect-failed`, the one failure a create retries.
|
|
12
|
+
*/
|
|
13
|
+
export declare function fetchFailure(error: unknown, signal: AbortSignal, seconds: number): {
|
|
14
|
+
readonly kind: "connect-failed";
|
|
15
|
+
readonly code: string;
|
|
16
|
+
} | {
|
|
17
|
+
readonly kind: "timeout";
|
|
18
|
+
readonly seconds: number;
|
|
19
|
+
} | {
|
|
20
|
+
readonly kind: "dropped";
|
|
21
|
+
readonly message: string;
|
|
22
|
+
};
|
|
23
|
+
/** An error's message, with its cause's message appended when it has one. */
|
|
24
|
+
export declare function errorMessage(error: unknown): string;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The undici `cause.code` values of a `fetch` that never established a connection, so the request never
|
|
3
|
+
* reached the server. The set is vercel-internal's (`create-testserver.mjs`).
|
|
4
|
+
*/
|
|
5
|
+
const CONNECT_FAILURE_CODES = new Set([
|
|
6
|
+
"ENOTFOUND",
|
|
7
|
+
"EAI_AGAIN",
|
|
8
|
+
"ECONNREFUSED",
|
|
9
|
+
"ENETUNREACH",
|
|
10
|
+
"EHOSTUNREACH",
|
|
11
|
+
"UND_ERR_CONNECT_TIMEOUT",
|
|
12
|
+
]);
|
|
13
|
+
/**
|
|
14
|
+
* The code of a `fetch` failure that happened before connecting: a `TypeError` whose `cause.code` is in the
|
|
15
|
+
* set above. `undefined` for any other error, which may have come after the server got the request.
|
|
16
|
+
*/
|
|
17
|
+
export function connectFailureCode(error) {
|
|
18
|
+
if (!(error instanceof TypeError))
|
|
19
|
+
return undefined;
|
|
20
|
+
const cause = error.cause;
|
|
21
|
+
const code = typeof cause === "object" && cause !== null ? cause.code : undefined;
|
|
22
|
+
return typeof code === "string" && CONNECT_FAILURE_CODES.has(code) ? code : undefined;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* What a rejected `fetch` means: `connect-failed` when it failed before connecting, `timeout` when `signal`
|
|
26
|
+
* (the request's timeout) aborted it, and `dropped`, with the error's message, otherwise.
|
|
27
|
+
*
|
|
28
|
+
* Use it only where the `fetch` call itself rejected. Once the response has arrived, the request reached the
|
|
29
|
+
* server, and a later failure must never read as `connect-failed`, the one failure a create retries.
|
|
30
|
+
*/
|
|
31
|
+
export function fetchFailure(error, signal, seconds) {
|
|
32
|
+
const code = connectFailureCode(error);
|
|
33
|
+
if (code !== undefined)
|
|
34
|
+
return { kind: "connect-failed", code };
|
|
35
|
+
if (signal.aborted)
|
|
36
|
+
return { kind: "timeout", seconds };
|
|
37
|
+
return { kind: "dropped", message: errorMessage(error) };
|
|
38
|
+
}
|
|
39
|
+
/** An error's message, with its cause's message appended when it has one. */
|
|
40
|
+
export function errorMessage(error) {
|
|
41
|
+
if (!(error instanceof Error))
|
|
42
|
+
return String(error);
|
|
43
|
+
const cause = error.cause;
|
|
44
|
+
return cause instanceof Error && cause.message !== "" ? `${error.message}: ${cause.message}` : error.message;
|
|
45
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { HealthCheckGateway } from "../gateways.ts";
|
|
2
|
+
export interface LiveHealthCheckOptions {
|
|
3
|
+
/** How long one health check, response headers included, may take. */
|
|
4
|
+
readonly timeoutMs: number;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Health checks over `fetch`: `GET <Testserver URL>` with no credential, following no redirect, with a timeout.
|
|
8
|
+
* Only the status counts; the body is discarded. vercel-internal follows redirects and accepts any ok
|
|
9
|
+
* response; storm counts a redirect as a failed health check.
|
|
10
|
+
*/
|
|
11
|
+
export declare function liveHealthCheckGateway(options: LiveHealthCheckOptions): HealthCheckGateway;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { fetchFailure } from "./fetch-failure.js";
|
|
2
|
+
/** The statuses a Testserver sandbox past its TTL answers with. */
|
|
3
|
+
const EXPIRED_STATUSES = new Set([410, 502]);
|
|
4
|
+
/**
|
|
5
|
+
* Health checks over `fetch`: `GET <Testserver URL>` with no credential, following no redirect, with a timeout.
|
|
6
|
+
* Only the status counts; the body is discarded. vercel-internal follows redirects and accepts any ok
|
|
7
|
+
* response; storm counts a redirect as a failed health check.
|
|
8
|
+
*/
|
|
9
|
+
export function liveHealthCheckGateway(options) {
|
|
10
|
+
return { check: (request) => check(options, request.testserverUrl) };
|
|
11
|
+
}
|
|
12
|
+
async function check(options, testserverUrl) {
|
|
13
|
+
const signal = AbortSignal.timeout(options.timeoutMs);
|
|
14
|
+
let response;
|
|
15
|
+
try {
|
|
16
|
+
response = await fetch(testserverUrl, { redirect: "manual", signal });
|
|
17
|
+
}
|
|
18
|
+
catch (error) {
|
|
19
|
+
const failure = fetchFailure(error, signal, options.timeoutMs / 1000);
|
|
20
|
+
switch (failure.kind) {
|
|
21
|
+
case "connect-failed":
|
|
22
|
+
return { kind: "failed", detail: failure.code };
|
|
23
|
+
case "timeout":
|
|
24
|
+
return { kind: "failed", detail: `no answer within ${failure.seconds}s` };
|
|
25
|
+
case "dropped":
|
|
26
|
+
return { kind: "failed", detail: failure.message };
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
await response.body?.cancel().catch(() => { });
|
|
30
|
+
const { status } = response;
|
|
31
|
+
if (status >= 200 && status < 300)
|
|
32
|
+
return { kind: "answers", status };
|
|
33
|
+
if (EXPIRED_STATUSES.has(status))
|
|
34
|
+
return { kind: "expired", status };
|
|
35
|
+
return { kind: "failed", detail: `HTTP ${status}` };
|
|
36
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reads the `data:` payloads of a server-sent event stream, chunk by chunk. A line may end in LF or CRLF,
|
|
3
|
+
* and a chunk may end anywhere, mid-line or between the CR and the LF. Every other line (`event:`, `id:`,
|
|
4
|
+
* comments, blank lines) is skipped, and so is a `data:` line with an empty payload. Payloads are trimmed.
|
|
5
|
+
*/
|
|
6
|
+
export declare class SseDataReader {
|
|
7
|
+
#private;
|
|
8
|
+
/** The payloads of the lines `chunk` completes. */
|
|
9
|
+
push(chunk: string): string[];
|
|
10
|
+
/** The payload of a final line with no line ending, once the stream has ended. */
|
|
11
|
+
end(): string[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reads the `data:` payloads of a server-sent event stream, chunk by chunk. A line may end in LF or CRLF,
|
|
3
|
+
* and a chunk may end anywhere, mid-line or between the CR and the LF. Every other line (`event:`, `id:`,
|
|
4
|
+
* comments, blank lines) is skipped, and so is a `data:` line with an empty payload. Payloads are trimmed.
|
|
5
|
+
*/
|
|
6
|
+
export class SseDataReader {
|
|
7
|
+
#buffer = "";
|
|
8
|
+
/** The payloads of the lines `chunk` completes. */
|
|
9
|
+
push(chunk) {
|
|
10
|
+
this.#buffer += chunk;
|
|
11
|
+
const lines = this.#buffer.split(/\r?\n/);
|
|
12
|
+
this.#buffer = lines.pop() ?? "";
|
|
13
|
+
return payloads(lines);
|
|
14
|
+
}
|
|
15
|
+
/** The payload of a final line with no line ending, once the stream has ended. */
|
|
16
|
+
end() {
|
|
17
|
+
const rest = this.#buffer;
|
|
18
|
+
this.#buffer = "";
|
|
19
|
+
return payloads([rest.endsWith("\r") ? rest.slice(0, -1) : rest]);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function payloads(lines) {
|
|
23
|
+
const found = [];
|
|
24
|
+
for (const line of lines) {
|
|
25
|
+
if (!line.startsWith("data:"))
|
|
26
|
+
continue;
|
|
27
|
+
const payload = line.slice("data:".length).trim();
|
|
28
|
+
if (payload !== "")
|
|
29
|
+
found.push(payload);
|
|
30
|
+
}
|
|
31
|
+
return found;
|
|
32
|
+
}
|
|
@@ -0,0 +1,455 @@
|
|
|
1
|
+
import { type StormCleanupFacts } from "./commands/exec/cleanup.ts";
|
|
2
|
+
import type { CommandMount } from "@vercel/clinkr";
|
|
3
|
+
import type { AnyResourceConfig, GivenResources, OptionsResolution, ResolvedResources } from "./config/index.ts";
|
|
4
|
+
import type { StormContext } from "./context.ts";
|
|
5
|
+
import { type KindAt, type KindsOf, type LocalRunRequest, type RemoteRunRequest, type ResourceCleanup, type ResourceFailures, type ResourceHoldings, type ResourceRanFacts, type ResourceHost, type ResourceRefusal, type RunEvent, type RunLane, type RunObserver, type RunOutcome, type RunProviders, type RunRequest, type RunState, type TimedRunEvent, type Timeline, type TimelineRow, type TimelineRowName } from "./core/index.ts";
|
|
6
|
+
/**
|
|
7
|
+
* Every resource's provider, in the one order everything about the resources follows: the order a run prepares and
|
|
8
|
+
* starts acquiring them, their refusals rank in, the run payload's `resources`, the waterfall's resource rows, the
|
|
9
|
+
* resource configs (the order `--set` lists its key paths in and a config file's problems name the resources in), the
|
|
10
|
+
* cleanup rows and warnings, and the errors `--json-schema` lists. A run releases them in reverse. Adding a resource
|
|
11
|
+
* adds its provider here and its factory's type to `StormResources` (`config-file/define.ts`).
|
|
12
|
+
*/
|
|
13
|
+
export declare const PROVIDERS: readonly [import("./core/provider.ts").Provider<"githubFixtureRepo", import("./resources/github/provider.ts").GitHubFixtureRepoKind, {
|
|
14
|
+
errors: import("@vercel/clinkr").SharedErrors<{
|
|
15
|
+
githubTokenMissing: import("zod").ZodObject<{
|
|
16
|
+
tokenEnv: import("zod").ZodString;
|
|
17
|
+
repo: import("zod").ZodString;
|
|
18
|
+
configFile: import("zod").ZodNullable<import("zod").ZodString>;
|
|
19
|
+
requiredBy: import("zod").ZodEnum<{
|
|
20
|
+
config: "config";
|
|
21
|
+
set: "set";
|
|
22
|
+
}>;
|
|
23
|
+
}, import("zod/v4/core").$strip>;
|
|
24
|
+
}>;
|
|
25
|
+
refusalErrors: {
|
|
26
|
+
readonly githubFixtureRepoUnavailable: import("@vercel/clinkr").DataErrorDefinition<import("zod").ZodObject<{
|
|
27
|
+
repo: import("zod").ZodString;
|
|
28
|
+
status: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
29
|
+
message: import("zod").ZodString;
|
|
30
|
+
}, import("zod/v4/core").$strip>>;
|
|
31
|
+
};
|
|
32
|
+
settle: ({ options, env, configFile }: import("./core/command-provider.ts").ResourceSettleInput<import("./resources/github/provider.ts").GitHubFixtureRepoKind>) => {
|
|
33
|
+
readonly ok: false;
|
|
34
|
+
readonly refusal: import("@vercel/clinkr").CommandError<"github_token_missing">;
|
|
35
|
+
} | ({
|
|
36
|
+
readonly ok: true;
|
|
37
|
+
} & import("./core/command-provider.ts").ResourceSettlement<import("./resources/github/provider.ts").GitHubFixtureRepoKind>);
|
|
38
|
+
takesCredential: (_options: import("./resources/github/config.ts").GitHubFixtureRepoSettings) => false;
|
|
39
|
+
refusalFacts: ({ repo, failure }: {
|
|
40
|
+
readonly kind: "github-fixture-repo-unavailable";
|
|
41
|
+
readonly repo: string;
|
|
42
|
+
readonly failure: import("./resources/github/gateways.ts").GitHubFixtureRepoFailure;
|
|
43
|
+
}) => {
|
|
44
|
+
key: "githubFixtureRepoUnavailable";
|
|
45
|
+
data: {
|
|
46
|
+
repo: string;
|
|
47
|
+
status: number | null;
|
|
48
|
+
message: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
unpreparedError: undefined;
|
|
52
|
+
canceledLines: (_facts: undefined, released: import("./resources/github/fixture-repo.ts").FixtureRepoCleanup | undefined) => string[];
|
|
53
|
+
}, import("./config/resource-config.ts").ResourceConfig<"githubFixtureRepo", import("./resources/github/resource.ts").GitHubFixtureRepoOptions, import("./resources/github/config.ts").GitHubFixtureRepoSettings, keyof import("./resources/github/resource.ts").GitHubFixtureRepoOptions>, unknown>, import("./core/provider.ts").Provider<"testserverPool", import("./resources/testserver/provider.ts").TestserverPoolKind, {
|
|
54
|
+
errors: import("@vercel/clinkr").SharedErrors<{
|
|
55
|
+
poolUnavailable: import("zod").ZodObject<{
|
|
56
|
+
path: import("zod").ZodString;
|
|
57
|
+
message: import("zod").ZodString;
|
|
58
|
+
}, import("zod/v4/core").$strip>;
|
|
59
|
+
}>;
|
|
60
|
+
refusalErrors: {
|
|
61
|
+
readonly poolUnreadable: import("@vercel/clinkr").DataErrorDefinition<import("zod").ZodObject<{
|
|
62
|
+
path: import("zod").ZodString;
|
|
63
|
+
message: import("zod").ZodString;
|
|
64
|
+
}, import("zod/v4/core").$strip>>;
|
|
65
|
+
readonly tokenRequestFailed: import("@vercel/clinkr").DataErrorDefinition<import("zod").ZodObject<{
|
|
66
|
+
cause: import("zod").ZodEnum<{
|
|
67
|
+
"request-failed": "request-failed";
|
|
68
|
+
"variables-missing": "variables-missing";
|
|
69
|
+
}>;
|
|
70
|
+
missing: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
71
|
+
ACTIONS_ID_TOKEN_REQUEST_TOKEN: "ACTIONS_ID_TOKEN_REQUEST_TOKEN";
|
|
72
|
+
ACTIONS_ID_TOKEN_REQUEST_URL: "ACTIONS_ID_TOKEN_REQUEST_URL";
|
|
73
|
+
}>>>;
|
|
74
|
+
status: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
75
|
+
said: import("zod").ZodNullable<import("zod").ZodString>;
|
|
76
|
+
detail: import("zod").ZodString;
|
|
77
|
+
fix: import("zod").ZodString;
|
|
78
|
+
ttlMinutes: import("zod").ZodNumber;
|
|
79
|
+
failedCreates: import("zod").ZodArray<import("zod").ZodObject<{
|
|
80
|
+
kind: import("zod").ZodEnum<{
|
|
81
|
+
"connect-failed": "connect-failed";
|
|
82
|
+
dropped: "dropped";
|
|
83
|
+
"http-error": "http-error";
|
|
84
|
+
malformed: "malformed";
|
|
85
|
+
"stream-ended": "stream-ended";
|
|
86
|
+
"stream-error": "stream-error";
|
|
87
|
+
timeout: "timeout";
|
|
88
|
+
}>;
|
|
89
|
+
detail: import("zod").ZodNullable<import("zod").ZodString>;
|
|
90
|
+
}, import("zod/v4/core").$strip>>;
|
|
91
|
+
sandboxMayExist: import("zod").ZodBoolean;
|
|
92
|
+
}, import("zod/v4/core").$strip>>;
|
|
93
|
+
readonly credentialRejected: import("@vercel/clinkr").DataErrorDefinition<import("zod").ZodObject<{
|
|
94
|
+
origin: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
95
|
+
source: import("zod").ZodLiteral<"mint">;
|
|
96
|
+
team: import("zod").ZodString;
|
|
97
|
+
project: import("zod").ZodString;
|
|
98
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
99
|
+
source: import("zod").ZodLiteral<"github-actions">;
|
|
100
|
+
claims: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
101
|
+
aud: import("zod").ZodString;
|
|
102
|
+
repository: import("zod").ZodString;
|
|
103
|
+
}, import("zod/v4/core").$strip>>;
|
|
104
|
+
}, import("zod/v4/core").$strip>], "source">;
|
|
105
|
+
fix: import("zod").ZodString;
|
|
106
|
+
status: import("zod").ZodNumber;
|
|
107
|
+
vercelId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
108
|
+
ttlMinutes: import("zod").ZodNumber;
|
|
109
|
+
failedCreates: import("zod").ZodArray<import("zod").ZodObject<{
|
|
110
|
+
kind: import("zod").ZodEnum<{
|
|
111
|
+
"connect-failed": "connect-failed";
|
|
112
|
+
dropped: "dropped";
|
|
113
|
+
"http-error": "http-error";
|
|
114
|
+
malformed: "malformed";
|
|
115
|
+
"stream-ended": "stream-ended";
|
|
116
|
+
"stream-error": "stream-error";
|
|
117
|
+
timeout: "timeout";
|
|
118
|
+
}>;
|
|
119
|
+
detail: import("zod").ZodNullable<import("zod").ZodString>;
|
|
120
|
+
}, import("zod/v4/core").$strip>>;
|
|
121
|
+
unpooled: import("zod").ZodArray<import("zod").ZodObject<{
|
|
122
|
+
testserverUrl: import("zod").ZodString;
|
|
123
|
+
path: import("zod").ZodString;
|
|
124
|
+
message: import("zod").ZodString;
|
|
125
|
+
}, import("zod/v4/core").$strip>>;
|
|
126
|
+
sandboxMayExist: import("zod").ZodBoolean;
|
|
127
|
+
}, import("zod/v4/core").$strip>>;
|
|
128
|
+
readonly noSandboxes: import("@vercel/clinkr").DataErrorDefinition<import("zod").ZodObject<{
|
|
129
|
+
requested: import("zod").ZodNumber;
|
|
130
|
+
ttlMinutes: import("zod").ZodNumber;
|
|
131
|
+
failedCreates: import("zod").ZodArray<import("zod").ZodObject<{
|
|
132
|
+
kind: import("zod").ZodEnum<{
|
|
133
|
+
"connect-failed": "connect-failed";
|
|
134
|
+
dropped: "dropped";
|
|
135
|
+
"http-error": "http-error";
|
|
136
|
+
malformed: "malformed";
|
|
137
|
+
"stream-ended": "stream-ended";
|
|
138
|
+
"stream-error": "stream-error";
|
|
139
|
+
timeout: "timeout";
|
|
140
|
+
}>;
|
|
141
|
+
detail: import("zod").ZodNullable<import("zod").ZodString>;
|
|
142
|
+
}, import("zod/v4/core").$strip>>;
|
|
143
|
+
sandboxMayExist: import("zod").ZodBoolean;
|
|
144
|
+
}, import("zod/v4/core").$strip>>;
|
|
145
|
+
readonly noUsableSandboxes: import("@vercel/clinkr").DataErrorDefinition<import("zod").ZodObject<{
|
|
146
|
+
requested: import("zod").ZodNumber;
|
|
147
|
+
build: import("zod").ZodString;
|
|
148
|
+
}, import("zod/v4/core").$strip>>;
|
|
149
|
+
};
|
|
150
|
+
settle: ({ options }: import("./core/command-provider.ts").ResourceSettleInput<import("./resources/testserver/provider.ts").TestserverPoolKind>) => {
|
|
151
|
+
ok: true;
|
|
152
|
+
secrets: never[];
|
|
153
|
+
request: import("./resources/testserver/provider.ts").TestserverPoolRequest;
|
|
154
|
+
};
|
|
155
|
+
takesCredential: (options: import("./resources/testserver/provider.ts").TestserverPoolRequest) => boolean;
|
|
156
|
+
unpreparedError: ({ failure }: {
|
|
157
|
+
readonly kind: "pool-unavailable";
|
|
158
|
+
readonly failure: import("./resources/testserver/pool/gateways.ts").PoolStoreFailure;
|
|
159
|
+
}) => import("@vercel/clinkr").CommandError<"pool_unavailable">;
|
|
160
|
+
refusalFacts: (refusal: import("./resources/testserver/provider.ts").TestserverRefusal) => {
|
|
161
|
+
key: "poolUnreadable";
|
|
162
|
+
data: {
|
|
163
|
+
path: string;
|
|
164
|
+
message: string;
|
|
165
|
+
ttlMinutes?: never;
|
|
166
|
+
failedCreates?: never;
|
|
167
|
+
sandboxMayExist?: never;
|
|
168
|
+
requested?: never;
|
|
169
|
+
build?: never;
|
|
170
|
+
};
|
|
171
|
+
} | {
|
|
172
|
+
key: "tokenRequestFailed";
|
|
173
|
+
data: {
|
|
174
|
+
cause: "variables-missing";
|
|
175
|
+
missing: import("./credential/gateways.ts").TokenRequestVariable[];
|
|
176
|
+
status: null;
|
|
177
|
+
said: null;
|
|
178
|
+
detail: string;
|
|
179
|
+
fix: string;
|
|
180
|
+
ttlMinutes: number;
|
|
181
|
+
failedCreates: {
|
|
182
|
+
kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
|
|
183
|
+
detail: string | null;
|
|
184
|
+
}[];
|
|
185
|
+
sandboxMayExist: boolean;
|
|
186
|
+
requested?: never;
|
|
187
|
+
build?: never;
|
|
188
|
+
} | {
|
|
189
|
+
cause: "request-failed";
|
|
190
|
+
missing: null;
|
|
191
|
+
status: number | null;
|
|
192
|
+
said: string | null;
|
|
193
|
+
detail: string;
|
|
194
|
+
fix: string;
|
|
195
|
+
ttlMinutes: number;
|
|
196
|
+
failedCreates: {
|
|
197
|
+
kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
|
|
198
|
+
detail: string | null;
|
|
199
|
+
}[];
|
|
200
|
+
sandboxMayExist: boolean;
|
|
201
|
+
requested?: never;
|
|
202
|
+
build?: never;
|
|
203
|
+
};
|
|
204
|
+
} | {
|
|
205
|
+
key: "credentialRejected";
|
|
206
|
+
data: {
|
|
207
|
+
origin: {
|
|
208
|
+
source: "mint";
|
|
209
|
+
team: string;
|
|
210
|
+
project: string;
|
|
211
|
+
} | {
|
|
212
|
+
source: "github-actions";
|
|
213
|
+
claims: {
|
|
214
|
+
aud: string;
|
|
215
|
+
repository: string;
|
|
216
|
+
} | null;
|
|
217
|
+
};
|
|
218
|
+
fix: string;
|
|
219
|
+
ttlMinutes: number;
|
|
220
|
+
status: number;
|
|
221
|
+
vercelId: string | null;
|
|
222
|
+
failedCreates: {
|
|
223
|
+
kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
|
|
224
|
+
detail: string | null;
|
|
225
|
+
}[];
|
|
226
|
+
unpooled: {
|
|
227
|
+
path: string;
|
|
228
|
+
message: string;
|
|
229
|
+
testserverUrl: string;
|
|
230
|
+
}[];
|
|
231
|
+
sandboxMayExist: boolean;
|
|
232
|
+
requested?: never;
|
|
233
|
+
build?: never;
|
|
234
|
+
};
|
|
235
|
+
} | {
|
|
236
|
+
key: "noSandboxes";
|
|
237
|
+
data: {
|
|
238
|
+
requested: number;
|
|
239
|
+
ttlMinutes: number;
|
|
240
|
+
failedCreates: {
|
|
241
|
+
kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
|
|
242
|
+
detail: string | null;
|
|
243
|
+
}[];
|
|
244
|
+
sandboxMayExist: boolean;
|
|
245
|
+
build?: never;
|
|
246
|
+
};
|
|
247
|
+
} | {
|
|
248
|
+
key: "noUsableSandboxes";
|
|
249
|
+
data: {
|
|
250
|
+
ttlMinutes?: never;
|
|
251
|
+
failedCreates?: never;
|
|
252
|
+
sandboxMayExist?: never;
|
|
253
|
+
requested: number;
|
|
254
|
+
build: string;
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
canceledLines: typeof import("./resources/testserver/command.ts").testserverPoolCanceledLines;
|
|
258
|
+
}, import("./config/resource-config.ts").ResourceConfig<"testserverPool", import("./resources/testserver/resource.ts").TestserverPoolOptions, import("./resources/testserver/provider.ts").TestserverPoolRequest, keyof import("./resources/testserver/resource.ts").TestserverPoolOptions>, import("./resources/testserver/commands/app.ts").TestserverCommandApp>];
|
|
259
|
+
/** Each resource's kind, by name, derived from the provider list. */
|
|
260
|
+
export type Resources = KindsOf<typeof PROVIDERS>;
|
|
261
|
+
/**
|
|
262
|
+
* The run halves, checked against the app's context: a provider whose kind doesn't line up, or whose gateways
|
|
263
|
+
* `StormContext` lacks, fails here.
|
|
264
|
+
*/
|
|
265
|
+
export declare const RESOURCES: RunProviders<Resources, StormContext>;
|
|
266
|
+
/**
|
|
267
|
+
* The resource lanes, in the order the waterfall shows their rows, after the mint's and before the runner's. Each
|
|
268
|
+
* applies its resource's own events to its lane state (`applyStormRunEvent`).
|
|
269
|
+
*/
|
|
270
|
+
export declare const RESOURCE_LANES: import("./core/lane.ts").ResourceLane<"testserverPool", import("./resources/testserver/provider.ts").TestserverPoolKind>[];
|
|
271
|
+
/**
|
|
272
|
+
* A resource config that fits the registry: its name is a resource's, and it resolves to that resource's kind's
|
|
273
|
+
* options, which its command half settles.
|
|
274
|
+
*/
|
|
275
|
+
export type FittingResourceConfig<K> = {
|
|
276
|
+
readonly [N in keyof K & string]: AnyResourceConfig & {
|
|
277
|
+
readonly name: N;
|
|
278
|
+
resolve(settings: never): OptionsResolution<KindAt<K, N>["options"], string>;
|
|
279
|
+
};
|
|
280
|
+
}[keyof K & string];
|
|
281
|
+
/** The resource configs, in provider order. */
|
|
282
|
+
export declare const RESOURCE_CONFIGS: (import("./config/resource-config.ts").ResourceConfig<"githubFixtureRepo", import("./resources/github/resource.ts").GitHubFixtureRepoOptions, import("./resources/github/config.ts").GitHubFixtureRepoSettings, keyof import("./resources/github/resource.ts").GitHubFixtureRepoOptions> | import("./config/resource-config.ts").ResourceConfig<"testserverPool", import("./resources/testserver/resource.ts").TestserverPoolOptions, import("./resources/testserver/provider.ts").TestserverPoolRequest, keyof import("./resources/testserver/resource.ts").TestserverPoolOptions>)[];
|
|
283
|
+
/** Each held resource's resolved options, by name; a resource the run doesn't hold is absent. */
|
|
284
|
+
export type StormResourceOptions = ResolvedResources<typeof RESOURCE_CONFIGS>;
|
|
285
|
+
/**
|
|
286
|
+
* The resource options the command line gave, by resource, then by option: each from a `--set`, or from a run's own
|
|
287
|
+
* flag for the option (`exec`'s and `vitest`'s).
|
|
288
|
+
*/
|
|
289
|
+
export type StormSetValues = GivenResources<typeof RESOURCE_CONFIGS>;
|
|
290
|
+
/** Every resource's reports: its cleanup and what a ran outcome says of it, and what the host does for it. */
|
|
291
|
+
export declare const RESOURCE_REPORTS: import("./core/command-slots.ts").ResourceReports<Resources>;
|
|
292
|
+
/** How every resource shows in a run's progress: its own events' lines, and its lane's rows and label. */
|
|
293
|
+
export declare const RESOURCE_PRESENTATIONS: import("./core/presentations.ts").ResourcePresentations<Resources>;
|
|
294
|
+
/** The run's cleanup, as every outcome after the run starts acquiring reports it: the runner's and each resource's. */
|
|
295
|
+
export declare const RUN_CLEANUP: import("./commands/exec/cleanup.ts").RunCleanup;
|
|
296
|
+
/**
|
|
297
|
+
* Every error a resource's command half defines, which `exec` and `vitest` list: the errors that end a run before it
|
|
298
|
+
* holds anything, in provider order, then the refusal errors, in provider order, each carrying the run's cleanup.
|
|
299
|
+
*/
|
|
300
|
+
export declare const RESOURCE_ERRORS: import("./commands/exec/cleanup.ts").WithCleanup<{
|
|
301
|
+
readonly githubFixtureRepoUnavailable: import("@vercel/clinkr").DataErrorDefinition<import("zod").ZodObject<{
|
|
302
|
+
repo: import("zod").ZodString;
|
|
303
|
+
status: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
304
|
+
message: import("zod").ZodString;
|
|
305
|
+
}, import("zod/v4/core").$strip>>;
|
|
306
|
+
} & {
|
|
307
|
+
readonly poolUnreadable: import("@vercel/clinkr").DataErrorDefinition<import("zod").ZodObject<{
|
|
308
|
+
path: import("zod").ZodString;
|
|
309
|
+
message: import("zod").ZodString;
|
|
310
|
+
}, import("zod/v4/core").$strip>>;
|
|
311
|
+
readonly tokenRequestFailed: import("@vercel/clinkr").DataErrorDefinition<import("zod").ZodObject<{
|
|
312
|
+
cause: import("zod").ZodEnum<{
|
|
313
|
+
"request-failed": "request-failed";
|
|
314
|
+
"variables-missing": "variables-missing";
|
|
315
|
+
}>;
|
|
316
|
+
missing: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
317
|
+
ACTIONS_ID_TOKEN_REQUEST_TOKEN: "ACTIONS_ID_TOKEN_REQUEST_TOKEN";
|
|
318
|
+
ACTIONS_ID_TOKEN_REQUEST_URL: "ACTIONS_ID_TOKEN_REQUEST_URL";
|
|
319
|
+
}>>>;
|
|
320
|
+
status: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
321
|
+
said: import("zod").ZodNullable<import("zod").ZodString>;
|
|
322
|
+
detail: import("zod").ZodString;
|
|
323
|
+
fix: import("zod").ZodString;
|
|
324
|
+
ttlMinutes: import("zod").ZodNumber;
|
|
325
|
+
failedCreates: import("zod").ZodArray<import("zod").ZodObject<{
|
|
326
|
+
kind: import("zod").ZodEnum<{
|
|
327
|
+
"connect-failed": "connect-failed";
|
|
328
|
+
dropped: "dropped";
|
|
329
|
+
"http-error": "http-error";
|
|
330
|
+
malformed: "malformed";
|
|
331
|
+
"stream-ended": "stream-ended";
|
|
332
|
+
"stream-error": "stream-error";
|
|
333
|
+
timeout: "timeout";
|
|
334
|
+
}>;
|
|
335
|
+
detail: import("zod").ZodNullable<import("zod").ZodString>;
|
|
336
|
+
}, import("zod/v4/core").$strip>>;
|
|
337
|
+
sandboxMayExist: import("zod").ZodBoolean;
|
|
338
|
+
}, import("zod/v4/core").$strip>>;
|
|
339
|
+
readonly credentialRejected: import("@vercel/clinkr").DataErrorDefinition<import("zod").ZodObject<{
|
|
340
|
+
origin: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
341
|
+
source: import("zod").ZodLiteral<"mint">;
|
|
342
|
+
team: import("zod").ZodString;
|
|
343
|
+
project: import("zod").ZodString;
|
|
344
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
345
|
+
source: import("zod").ZodLiteral<"github-actions">;
|
|
346
|
+
claims: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
347
|
+
aud: import("zod").ZodString;
|
|
348
|
+
repository: import("zod").ZodString;
|
|
349
|
+
}, import("zod/v4/core").$strip>>;
|
|
350
|
+
}, import("zod/v4/core").$strip>], "source">;
|
|
351
|
+
fix: import("zod").ZodString;
|
|
352
|
+
status: import("zod").ZodNumber;
|
|
353
|
+
vercelId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
354
|
+
ttlMinutes: import("zod").ZodNumber;
|
|
355
|
+
failedCreates: import("zod").ZodArray<import("zod").ZodObject<{
|
|
356
|
+
kind: import("zod").ZodEnum<{
|
|
357
|
+
"connect-failed": "connect-failed";
|
|
358
|
+
dropped: "dropped";
|
|
359
|
+
"http-error": "http-error";
|
|
360
|
+
malformed: "malformed";
|
|
361
|
+
"stream-ended": "stream-ended";
|
|
362
|
+
"stream-error": "stream-error";
|
|
363
|
+
timeout: "timeout";
|
|
364
|
+
}>;
|
|
365
|
+
detail: import("zod").ZodNullable<import("zod").ZodString>;
|
|
366
|
+
}, import("zod/v4/core").$strip>>;
|
|
367
|
+
unpooled: import("zod").ZodArray<import("zod").ZodObject<{
|
|
368
|
+
testserverUrl: import("zod").ZodString;
|
|
369
|
+
path: import("zod").ZodString;
|
|
370
|
+
message: import("zod").ZodString;
|
|
371
|
+
}, import("zod/v4/core").$strip>>;
|
|
372
|
+
sandboxMayExist: import("zod").ZodBoolean;
|
|
373
|
+
}, import("zod/v4/core").$strip>>;
|
|
374
|
+
readonly noSandboxes: import("@vercel/clinkr").DataErrorDefinition<import("zod").ZodObject<{
|
|
375
|
+
requested: import("zod").ZodNumber;
|
|
376
|
+
ttlMinutes: import("zod").ZodNumber;
|
|
377
|
+
failedCreates: import("zod").ZodArray<import("zod").ZodObject<{
|
|
378
|
+
kind: import("zod").ZodEnum<{
|
|
379
|
+
"connect-failed": "connect-failed";
|
|
380
|
+
dropped: "dropped";
|
|
381
|
+
"http-error": "http-error";
|
|
382
|
+
malformed: "malformed";
|
|
383
|
+
"stream-ended": "stream-ended";
|
|
384
|
+
"stream-error": "stream-error";
|
|
385
|
+
timeout: "timeout";
|
|
386
|
+
}>;
|
|
387
|
+
detail: import("zod").ZodNullable<import("zod").ZodString>;
|
|
388
|
+
}, import("zod/v4/core").$strip>>;
|
|
389
|
+
sandboxMayExist: import("zod").ZodBoolean;
|
|
390
|
+
}, import("zod/v4/core").$strip>>;
|
|
391
|
+
readonly noUsableSandboxes: import("@vercel/clinkr").DataErrorDefinition<import("zod").ZodObject<{
|
|
392
|
+
requested: import("zod").ZodNumber;
|
|
393
|
+
build: import("zod").ZodString;
|
|
394
|
+
}, import("zod/v4/core").$strip>>;
|
|
395
|
+
}> & import("@vercel/clinkr").SharedErrors<{
|
|
396
|
+
githubTokenMissing: import("zod").ZodObject<{
|
|
397
|
+
tokenEnv: import("zod").ZodString;
|
|
398
|
+
repo: import("zod").ZodString;
|
|
399
|
+
configFile: import("zod").ZodNullable<import("zod").ZodString>;
|
|
400
|
+
requiredBy: import("zod").ZodEnum<{
|
|
401
|
+
config: "config";
|
|
402
|
+
set: "set";
|
|
403
|
+
}>;
|
|
404
|
+
}, import("zod/v4/core").$strip>;
|
|
405
|
+
}> & import("@vercel/clinkr").SharedErrors<{
|
|
406
|
+
poolUnavailable: import("zod").ZodObject<{
|
|
407
|
+
path: import("zod").ZodString;
|
|
408
|
+
message: import("zod").ZodString;
|
|
409
|
+
}, import("zod/v4/core").$strip>;
|
|
410
|
+
}>;
|
|
411
|
+
/**
|
|
412
|
+
* Every resource's command half, bound to its name: what `exec` and `vitest` settle and report through, and
|
|
413
|
+
* `refusedError`, the error a run a resource refused ends with: the refusal error its facts name, built with the run's
|
|
414
|
+
* cleanup.
|
|
415
|
+
*/
|
|
416
|
+
export declare const RESOURCE_COMMANDS: {
|
|
417
|
+
settle(options: import("./core/resource.ts").ResourceOptions<Resources>, env: Readonly<Record<string, string | undefined>>, configFile: string | null): import("@vercel/clinkr").Refusable<import("./core/command-slots.ts").ResourcesSettlement<Resources>, import("@vercel/clinkr").CommandError<"credential_rejected" | "github_fixture_repo_unavailable" | "github_token_missing" | "no_sandboxes" | "no_usable_sandboxes" | "pool_unavailable" | "pool_unreadable" | "token_request_failed">>;
|
|
418
|
+
takesCredential(options: import("./core/resource.ts").ResourceOptions<Resources>): boolean;
|
|
419
|
+
refusalFacts(outcome: ResourceRefusal<Resources>): import("./core/command-provider.ts").RefusalFact;
|
|
420
|
+
unpreparedError(outcome: import("./core/resource.ts").ResourceUnprepared<Resources>): import("@vercel/clinkr").CommandError<"credential_rejected" | "github_fixture_repo_unavailable" | "github_token_missing" | "no_sandboxes" | "no_usable_sandboxes" | "pool_unavailable" | "pool_unreadable" | "token_request_failed">;
|
|
421
|
+
canceledLines(resources: import("./core/resource.ts").ResourceCanceledFacts<Resources>, cleanup: ResourceCleanup<Resources>): readonly string[];
|
|
422
|
+
refusedError: (outcome: ResourceRefusal<Resources>, cleanup: StormCleanupFacts) => import("@vercel/clinkr").CommandError<"credential_rejected" | "github_fixture_repo_unavailable" | "no_sandboxes" | "no_usable_sandboxes" | "pool_unreadable" | "token_request_failed">;
|
|
423
|
+
};
|
|
424
|
+
/** Every resource's command tree's mount, which `application.ts` mounts beside the host's own commands. */
|
|
425
|
+
export declare const RESOURCE_MOUNTS: readonly CommandMount[];
|
|
426
|
+
/** One record with every member of a union of records. */
|
|
427
|
+
type Intersection<U> = (U extends unknown ? (part: U) => void : never) extends (all: infer I) => void ? I : never;
|
|
428
|
+
/** Every resource's gateways, as one context: what `StormContext` holds beside the core's. */
|
|
429
|
+
export type StormResourceGateways = Intersection<KindAt<Resources, keyof Resources>["gateways"]>;
|
|
430
|
+
/** Every resource's live gateways, built from `host`, as one context. */
|
|
431
|
+
export declare function liveResourceGateways(host: ResourceHost): StormResourceGateways;
|
|
432
|
+
export type StormRunEvent = RunEvent<Resources>;
|
|
433
|
+
export type StormTimedRunEvent = TimedRunEvent<Resources>;
|
|
434
|
+
export type StormRunObserver = RunObserver<Resources>;
|
|
435
|
+
export type StormRunLane = RunLane<Resources>;
|
|
436
|
+
export type StormRunRequest = RunRequest<Resources>;
|
|
437
|
+
export type StormLocalRunRequest = LocalRunRequest<Resources>;
|
|
438
|
+
export type StormRemoteRunRequest = RemoteRunRequest<Resources>;
|
|
439
|
+
export type StormRunOutcome = RunOutcome<Resources>;
|
|
440
|
+
export type StormResourceCleanup = ResourceCleanup<Resources>;
|
|
441
|
+
export type StormResourceFailures = ResourceFailures<Resources>;
|
|
442
|
+
export type StormResourceHoldings = ResourceHoldings<Resources>;
|
|
443
|
+
export type StormResourceRanFacts = ResourceRanFacts<Resources>;
|
|
444
|
+
export type StormRunState = RunState<Resources>;
|
|
445
|
+
export type StormTimeline = Timeline<Resources>;
|
|
446
|
+
export type StormTimelineRow = TimelineRow<Resources>;
|
|
447
|
+
export type StormTimelineRowName = TimelineRowName<Resources>;
|
|
448
|
+
/**
|
|
449
|
+
* The run's state after `timed`, through the registry's resource lanes. A run's final state is
|
|
450
|
+
* `events.reduce(applyStormRunEvent, EMPTY_RUN_STATE)`.
|
|
451
|
+
*/
|
|
452
|
+
export declare function applyStormRunEvent(state: StormRunState, timed: StormTimedRunEvent): StormRunState;
|
|
453
|
+
/** A run's waterfall, from its final state, with each resource lane's row. */
|
|
454
|
+
export declare function stormTimeline(state: StormRunState): StormTimeline;
|
|
455
|
+
export {};
|