@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,272 @@
|
|
|
1
|
+
import type { CommandBuilder } from "@vercel/clinkr";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import type { StormApp } from "../../context.ts";
|
|
4
|
+
/**
|
|
5
|
+
* `storm exec`: runs any command, the argument list after `--`, as it is, in a run (`runCommand`). It counts no
|
|
6
|
+
* tests and sizes nothing: `storm vitest` does both for vitest.
|
|
7
|
+
*/
|
|
8
|
+
export declare function command(cmd: CommandBuilder<StormApp>): import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
9
|
+
set: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
10
|
+
testserverSandboxes: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
testserverBuild: z.ZodOptional<z.ZodString>;
|
|
12
|
+
testserverMinTimeLeft: z.ZodOptional<z.ZodString>;
|
|
13
|
+
testserverTtl: z.ZodOptional<z.ZodString>;
|
|
14
|
+
testserverNoCreate: z.ZodOptional<z.ZodBoolean>;
|
|
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
|
+
local: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
+
rebuildSnapshot: z.ZodDefault<z.ZodBoolean>;
|
|
23
|
+
showOutput: z.ZodDefault<z.ZodBoolean>;
|
|
24
|
+
keepSandbox: z.ZodOptional<z.ZodString>;
|
|
25
|
+
verbose: z.ZodDefault<z.ZodBoolean>;
|
|
26
|
+
command: z.ZodArray<z.ZodString>;
|
|
27
|
+
}, z.core.$strip>, import("@vercel/clinkr").Outcomes<{
|
|
28
|
+
ran: z.ZodObject<{
|
|
29
|
+
version: z.ZodString;
|
|
30
|
+
commit: z.ZodNullable<z.ZodString>;
|
|
31
|
+
configFile: z.ZodNullable<z.ZodString>;
|
|
32
|
+
resources: z.ZodType<import("../../core/resource.ts").ResourceRanFacts<import("../../resources.ts").Resources>, import("../../core/resource.ts").ResourceRanFacts<import("../../resources.ts").Resources>, z.core.$ZodTypeInternals<import("../../core/resource.ts").ResourceRanFacts<import("../../resources.ts").Resources>, import("../../core/resource.ts").ResourceRanFacts<import("../../resources.ts").Resources>>>;
|
|
33
|
+
cleanup: z.ZodType<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("./cleanup.ts").StormCleanupFacts, import("./cleanup.ts").StormCleanupFacts>>;
|
|
34
|
+
command: z.ZodObject<{
|
|
35
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
36
|
+
signal: z.ZodNullable<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
runner: z.ZodNullable<z.ZodObject<{
|
|
39
|
+
snapshotId: z.ZodString;
|
|
40
|
+
base: z.ZodString;
|
|
41
|
+
built: z.ZodBoolean;
|
|
42
|
+
vcpus: z.ZodNumber;
|
|
43
|
+
region: z.ZodString;
|
|
44
|
+
runtime: z.ZodString;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
timeline: z.ZodObject<{
|
|
47
|
+
startedAt: z.ZodString;
|
|
48
|
+
totalMs: z.ZodNumber;
|
|
49
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
50
|
+
name: z.ZodEnum<{
|
|
51
|
+
cleanup: "cleanup";
|
|
52
|
+
mint: "mint";
|
|
53
|
+
runner: "runner";
|
|
54
|
+
tests: "tests";
|
|
55
|
+
testserver: "testserver";
|
|
56
|
+
}>;
|
|
57
|
+
startMs: z.ZodNumber;
|
|
58
|
+
endMs: z.ZodNumber;
|
|
59
|
+
outcome: z.ZodEnum<{
|
|
60
|
+
done: "done";
|
|
61
|
+
failed: "failed";
|
|
62
|
+
stopped: "stopped";
|
|
63
|
+
unfinished: "unfinished";
|
|
64
|
+
}>;
|
|
65
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
66
|
+
name: z.ZodEnum<{
|
|
67
|
+
[x: string]: string;
|
|
68
|
+
}>;
|
|
69
|
+
startMs: z.ZodNumber;
|
|
70
|
+
endMs: z.ZodNumber;
|
|
71
|
+
outcome: z.ZodEnum<{
|
|
72
|
+
done: "done";
|
|
73
|
+
failed: "failed";
|
|
74
|
+
stopped: "stopped";
|
|
75
|
+
unfinished: "unfinished";
|
|
76
|
+
}>;
|
|
77
|
+
}, z.core.$strip>>;
|
|
78
|
+
idleMs: z.ZodNumber;
|
|
79
|
+
snapshot: z.ZodOptional<z.ZodEnum<{
|
|
80
|
+
built: "built";
|
|
81
|
+
reused: "reused";
|
|
82
|
+
}>>;
|
|
83
|
+
sandboxes: z.ZodOptional<z.ZodObject<{
|
|
84
|
+
reused: z.ZodNumber;
|
|
85
|
+
created: z.ZodNumber;
|
|
86
|
+
}, z.core.$strip>>;
|
|
87
|
+
}, z.core.$strip>>;
|
|
88
|
+
criticalPath: z.ZodArray<z.ZodEnum<{
|
|
89
|
+
cleanup: "cleanup";
|
|
90
|
+
mint: "mint";
|
|
91
|
+
runner: "runner";
|
|
92
|
+
tests: "tests";
|
|
93
|
+
testserver: "testserver";
|
|
94
|
+
}>>;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
}, {
|
|
99
|
+
ran: unknown;
|
|
100
|
+
}, {
|
|
101
|
+
credentialRejected: import("@vercel/clinkr").SharedError<"credential_rejected", [{
|
|
102
|
+
origin: {
|
|
103
|
+
source: "mint";
|
|
104
|
+
team: string;
|
|
105
|
+
project: string;
|
|
106
|
+
} | {
|
|
107
|
+
source: "github-actions";
|
|
108
|
+
claims: {
|
|
109
|
+
aud: string;
|
|
110
|
+
repository: string;
|
|
111
|
+
} | null;
|
|
112
|
+
};
|
|
113
|
+
fix: string;
|
|
114
|
+
status: number;
|
|
115
|
+
vercelId: string | null;
|
|
116
|
+
ttlMinutes: number;
|
|
117
|
+
failedCreates: {
|
|
118
|
+
kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
|
|
119
|
+
detail: string | null;
|
|
120
|
+
}[];
|
|
121
|
+
unpooled: {
|
|
122
|
+
testserverUrl: string;
|
|
123
|
+
path: string;
|
|
124
|
+
message: string;
|
|
125
|
+
}[];
|
|
126
|
+
sandboxMayExist: boolean;
|
|
127
|
+
} & {
|
|
128
|
+
readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
129
|
+
}]>;
|
|
130
|
+
credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
|
|
131
|
+
flags: string[];
|
|
132
|
+
configFile: string | null;
|
|
133
|
+
}]>;
|
|
134
|
+
githubFixtureRepoUnavailable: import("@vercel/clinkr").SharedError<"github_fixture_repo_unavailable", [{
|
|
135
|
+
repo: string;
|
|
136
|
+
status: number | null;
|
|
137
|
+
message: string;
|
|
138
|
+
} & {
|
|
139
|
+
readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
140
|
+
}]>;
|
|
141
|
+
githubTokenMissing: import("@vercel/clinkr").SharedError<"github_token_missing", [data: {
|
|
142
|
+
tokenEnv: string;
|
|
143
|
+
repo: string;
|
|
144
|
+
configFile: string | null;
|
|
145
|
+
requiredBy: "config" | "set";
|
|
146
|
+
}]>;
|
|
147
|
+
invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
|
|
148
|
+
file: string;
|
|
149
|
+
problems: {
|
|
150
|
+
key: string | null;
|
|
151
|
+
location: {
|
|
152
|
+
line: number;
|
|
153
|
+
column: number | null;
|
|
154
|
+
} | null;
|
|
155
|
+
problem: string;
|
|
156
|
+
}[];
|
|
157
|
+
}]>;
|
|
158
|
+
invalidResourceOptions: import("@vercel/clinkr").SharedError<"invalid_resource_options", [data: {
|
|
159
|
+
configFile: string | null;
|
|
160
|
+
problems: {
|
|
161
|
+
key: string;
|
|
162
|
+
problem: string;
|
|
163
|
+
values: {
|
|
164
|
+
key: string;
|
|
165
|
+
value: string;
|
|
166
|
+
source: "default" | "file" | "flag";
|
|
167
|
+
}[];
|
|
168
|
+
}[];
|
|
169
|
+
}]>;
|
|
170
|
+
mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
|
|
171
|
+
team: string;
|
|
172
|
+
project: string;
|
|
173
|
+
cause: string;
|
|
174
|
+
fix: string;
|
|
175
|
+
runner: boolean;
|
|
176
|
+
cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
177
|
+
}]>;
|
|
178
|
+
missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
|
|
179
|
+
configFile: string | null;
|
|
180
|
+
}]>;
|
|
181
|
+
missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
|
|
182
|
+
missing: ("project" | "scope")[];
|
|
183
|
+
}]>;
|
|
184
|
+
noBaseRef: import("@vercel/clinkr").SharedError<"no_base_ref", [data: {
|
|
185
|
+
refs: {
|
|
186
|
+
ref: string;
|
|
187
|
+
reason: "missing" | "unrelated";
|
|
188
|
+
}[];
|
|
189
|
+
}]>;
|
|
190
|
+
noSandboxes: import("@vercel/clinkr").SharedError<"no_sandboxes", [{
|
|
191
|
+
requested: number;
|
|
192
|
+
ttlMinutes: number;
|
|
193
|
+
failedCreates: {
|
|
194
|
+
kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
|
|
195
|
+
detail: string | null;
|
|
196
|
+
}[];
|
|
197
|
+
sandboxMayExist: boolean;
|
|
198
|
+
} & {
|
|
199
|
+
readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
200
|
+
}]>;
|
|
201
|
+
noUsableSandboxes: import("@vercel/clinkr").SharedError<"no_usable_sandboxes", [{
|
|
202
|
+
requested: number;
|
|
203
|
+
build: string;
|
|
204
|
+
} & {
|
|
205
|
+
readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
206
|
+
}]>;
|
|
207
|
+
poolUnavailable: import("@vercel/clinkr").SharedError<"pool_unavailable", [data: {
|
|
208
|
+
path: string;
|
|
209
|
+
message: string;
|
|
210
|
+
}]>;
|
|
211
|
+
poolUnreadable: import("@vercel/clinkr").SharedError<"pool_unreadable", [{
|
|
212
|
+
path: string;
|
|
213
|
+
message: string;
|
|
214
|
+
} & {
|
|
215
|
+
readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
216
|
+
}]>;
|
|
217
|
+
runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
|
|
218
|
+
failure: {
|
|
219
|
+
kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
|
|
220
|
+
label: string;
|
|
221
|
+
exitCode: number | null;
|
|
222
|
+
tail: string[];
|
|
223
|
+
} | {
|
|
224
|
+
kind: "sandbox-api-failed";
|
|
225
|
+
operation: string;
|
|
226
|
+
status: number | null;
|
|
227
|
+
message: string;
|
|
228
|
+
} | {
|
|
229
|
+
kind: "checkout-failed";
|
|
230
|
+
message: string;
|
|
231
|
+
command: string | null;
|
|
232
|
+
} | {
|
|
233
|
+
kind: "credential-claims-missing";
|
|
234
|
+
team: string;
|
|
235
|
+
project: string;
|
|
236
|
+
};
|
|
237
|
+
cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
238
|
+
}]>;
|
|
239
|
+
snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
|
|
240
|
+
snapshotId: string;
|
|
241
|
+
base: string;
|
|
242
|
+
removal: {
|
|
243
|
+
path: string;
|
|
244
|
+
message: string;
|
|
245
|
+
} | null;
|
|
246
|
+
cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
247
|
+
}]>;
|
|
248
|
+
spawnFailed: import("@vercel/clinkr").SharedError<"spawn_failed", [data: {
|
|
249
|
+
executable: string;
|
|
250
|
+
message: string;
|
|
251
|
+
cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
252
|
+
}]>;
|
|
253
|
+
submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
|
|
254
|
+
paths: string[];
|
|
255
|
+
}]>;
|
|
256
|
+
tokenRequestFailed: import("@vercel/clinkr").SharedError<"token_request_failed", [{
|
|
257
|
+
cause: "request-failed" | "variables-missing";
|
|
258
|
+
missing: ("ACTIONS_ID_TOKEN_REQUEST_TOKEN" | "ACTIONS_ID_TOKEN_REQUEST_URL")[] | null;
|
|
259
|
+
status: number | null;
|
|
260
|
+
said: string | null;
|
|
261
|
+
detail: string;
|
|
262
|
+
fix: string;
|
|
263
|
+
ttlMinutes: number;
|
|
264
|
+
failedCreates: {
|
|
265
|
+
kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
|
|
266
|
+
detail: string | null;
|
|
267
|
+
}[];
|
|
268
|
+
sandboxMayExist: boolean;
|
|
269
|
+
} & {
|
|
270
|
+
readonly cleanup: import("./cleanup.ts").StormCleanupFacts;
|
|
271
|
+
}]>;
|
|
272
|
+
}>, StormApp, false>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { outcomes } from "./outcomes.js";
|
|
3
|
+
import { RUN_CLI_OPTIONS, RUN_REQUEST_FIELDS, runCommand, runProblems } from "./run-command.js";
|
|
4
|
+
/**
|
|
5
|
+
* `storm exec`: runs any command, the argument list after `--`, as it is, in a run (`runCommand`). It counts no
|
|
6
|
+
* tests and sizes nothing: `storm vitest` does both for vitest.
|
|
7
|
+
*/
|
|
8
|
+
export function command(cmd) {
|
|
9
|
+
return cmd.define({
|
|
10
|
+
requestSchema: z.object({
|
|
11
|
+
...RUN_REQUEST_FIELDS,
|
|
12
|
+
command: z.array(z.string()).min(1, { message: "Give the command to run after --" }),
|
|
13
|
+
}),
|
|
14
|
+
cli: { options: RUN_CLI_OPTIONS, positionals: ["command"] },
|
|
15
|
+
outcomes,
|
|
16
|
+
validate: runProblems,
|
|
17
|
+
handler: async (context, request) => await runCommand(context, request, {
|
|
18
|
+
name: "exec",
|
|
19
|
+
prepare: async (settled) => ({ ok: true, argv: request.command, settled, plan: undefined }),
|
|
20
|
+
ran: (facts) => outcomes.ran(facts),
|
|
21
|
+
}),
|
|
22
|
+
});
|
|
23
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StormTimeline } from "../../resources.ts";
|
|
2
|
+
/**
|
|
3
|
+
* The job summary's Markdown for `timeline`, headed with the invoking command, `storm <command>`; `details` are
|
|
4
|
+
* lines after the critical path, such as the tests'.
|
|
5
|
+
*/
|
|
6
|
+
export declare function jobSummaryMarkdown(timeline: StormTimeline, extras: {
|
|
7
|
+
readonly command: string;
|
|
8
|
+
readonly logs: string | undefined;
|
|
9
|
+
readonly details?: readonly string[];
|
|
10
|
+
}): string;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// The Markdown summary a run appends to a GitHub Actions job summary: its waterfall as a table, the critical path,
|
|
2
|
+
// and where its run directory is, so a CI run that uploads it as an artifact can find it.
|
|
3
|
+
import { seconds } from "./text.js";
|
|
4
|
+
import { criticalPathStep, laneLabel } from "./waterfall.js";
|
|
5
|
+
/**
|
|
6
|
+
* The job summary's Markdown for `timeline`, headed with the invoking command, `storm <command>`; `details` are
|
|
7
|
+
* lines after the critical path, such as the tests'.
|
|
8
|
+
*/
|
|
9
|
+
export function jobSummaryMarkdown(timeline, extras) {
|
|
10
|
+
const lines = [`### storm ${extras.command}`, ""];
|
|
11
|
+
if (timeline.rows.length > 0) {
|
|
12
|
+
lines.push("| Lane | Start | Duration | Idle | Steps |", "| --- | ---: | ---: | ---: | --- |");
|
|
13
|
+
for (const row of timeline.rows)
|
|
14
|
+
lines.push(tableRow(row));
|
|
15
|
+
lines.push("");
|
|
16
|
+
}
|
|
17
|
+
if (timeline.criticalPath.length > 0) {
|
|
18
|
+
const path = timeline.criticalPath.map((name) => criticalPathStep(name, timeline));
|
|
19
|
+
lines.push(`Critical path: ${path.join(" → ")}`, "");
|
|
20
|
+
}
|
|
21
|
+
for (const detail of extras.details ?? [])
|
|
22
|
+
lines.push(`${detail.trim()} `);
|
|
23
|
+
if ((extras.details ?? []).length > 0)
|
|
24
|
+
lines.push("");
|
|
25
|
+
if (extras.logs !== undefined)
|
|
26
|
+
lines.push(`Run directory: \`${extras.logs}\``, "");
|
|
27
|
+
return lines.join("\n");
|
|
28
|
+
}
|
|
29
|
+
function tableRow(row) {
|
|
30
|
+
const outcome = row.outcome === "done" ? "" : ` (${row.outcome})`;
|
|
31
|
+
const steps = row.steps.map((step) => `${step.name} ${seconds(step.endMs - step.startMs)}`).join(" · ");
|
|
32
|
+
const idle = row.idleMs > 0 ? seconds(row.idleMs) : "";
|
|
33
|
+
return `| ${laneLabel(row.name)}${outcome} | +${seconds(row.startMs)} | ${seconds(row.endMs - row.startMs)} | ${idle} | ${steps} |`;
|
|
34
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type StormRunState } from "../../resources.ts";
|
|
2
|
+
import { type Paint } from "./text.ts";
|
|
3
|
+
/**
|
|
4
|
+
* A run's phases, in order. In a runner run the resources' lanes and the runner run at once, as `lanes`; locally
|
|
5
|
+
* the resources' lanes run alone, as `resources`.
|
|
6
|
+
*/
|
|
7
|
+
export type LivePhase = "credential" | "lanes" | "resources" | "tests" | "cleanup";
|
|
8
|
+
/** The phase that runs now; undefined before the first. */
|
|
9
|
+
export declare function activePhase(state: StormRunState): LivePhase | undefined;
|
|
10
|
+
/** The run's first line: storm's version and, in a runner run, the base. Like a final form, it isn't cut. */
|
|
11
|
+
export declare function headerLine(state: StormRunState, paint: Paint): string;
|
|
12
|
+
/**
|
|
13
|
+
* Phase `phase`'s live block at `now`, `width` columns wide. Its height stays the same while the phase runs; only
|
|
14
|
+
* the tests block grows, once, when its first test event arrives.
|
|
15
|
+
*/
|
|
16
|
+
export declare function phaseFrame(state: StormRunState, phase: LivePhase, now: number, width: number, paint: Paint): string[];
|
|
17
|
+
/**
|
|
18
|
+
* Phase `phase`'s final form, laid out in `width` columns: what stays above once the next phase starts. Nothing in
|
|
19
|
+
* it is cut, since a Testserver sandbox's log viewer URL or a step's time is no use in part; a line too long for
|
|
20
|
+
* the width wraps.
|
|
21
|
+
*/
|
|
22
|
+
export declare function phaseRecord(state: StormRunState, phase: LivePhase, width: number, paint: Paint): string[];
|