@cnc-tools/storm 0.0.0 → 0.5.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/run/cleanup.d.ts +135 -0
- package/dist/commands/run/cleanup.js +171 -0
- package/dist/commands/run/command.d.ts +327 -0
- package/dist/commands/run/command.js +620 -0
- package/dist/commands/run/job-summary.d.ts +6 -0
- package/dist/commands/run/job-summary.js +31 -0
- package/dist/commands/run/live-view.d.ts +22 -0
- package/dist/commands/run/live-view.js +395 -0
- package/dist/commands/run/metadata.d.ts +47 -0
- package/dist/commands/run/metadata.js +83 -0
- package/dist/commands/run/mint-failed.d.ts +11 -0
- package/dist/commands/run/mint-failed.js +33 -0
- package/dist/commands/run/outcomes.d.ts +307 -0
- package/dist/commands/run/outcomes.js +332 -0
- package/dist/commands/run/progress.d.ts +44 -0
- package/dist/commands/run/progress.js +277 -0
- package/dist/commands/run/redaction.d.ts +15 -0
- package/dist/commands/run/redaction.js +40 -0
- package/dist/commands/run/run-collector.d.ts +30 -0
- package/dist/commands/run/run-collector.js +73 -0
- package/dist/commands/run/run-record.d.ts +144 -0
- package/dist/commands/run/run-record.js +96 -0
- package/dist/commands/run/tests-summary.d.ts +34 -0
- package/dist/commands/run/tests-summary.js +141 -0
- package/dist/commands/run/text.d.ts +22 -0
- package/dist/commands/run/text.js +74 -0
- package/dist/commands/run/view.d.ts +35 -0
- package/dist/commands/run/view.js +163 -0
- package/dist/commands/run/waterfall.d.ts +25 -0
- package/dist/commands/run/waterfall.js +108 -0
- package/dist/commands/run/worker-chart.d.ts +79 -0
- package/dist/commands/run/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 +77 -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 +317 -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 +9 -0
- package/dist/config/index.js +12 -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 +16 -0
- package/dist/config/set.js +55 -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 +37 -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 +86 -0
- package/dist/context.js +43 -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 +77 -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 +452 -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/fixtures.d.ts +64 -0
- package/dist/vitest/fixtures.js +172 -0
- package/dist/vitest/gateways.d.ts +47 -0
- package/dist/vitest/gateways.js +3 -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 +7 -0
- package/dist/vitest/live/list-gateway.js +60 -0
- package/dist/vitest/ownership.d.ts +29 -0
- package/dist/vitest/ownership.js +68 -0
- package/dist/vitest/plan.d.ts +33 -0
- package/dist/vitest/plan.js +73 -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 +32 -0
- package/skills/read-run-output.md +65 -0
- package/README.md +0 -3
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
// The waterfall a run prints once it is done: a time axis, one bar for each lane, the worker chart under the tests
|
|
2
|
+
// lane, the critical path, and where the run directory is. It reads the same with or without color, at 80 columns.
|
|
3
|
+
import { RESOURCE_PRESENTATIONS, } from "../../resources.js";
|
|
4
|
+
import { paint as paintFor, seconds, visibleLength } from "./text.js";
|
|
5
|
+
import { workerLabelWidth, workerLaneLines, workerTailWidth } from "./worker-chart.js";
|
|
6
|
+
/**
|
|
7
|
+
* A lane as the waterfall and the job summary name it: the credential, each resource lane by its presentation's label,
|
|
8
|
+
* such as `testserver-setup`, the runner's setup, the tests and the cleanup.
|
|
9
|
+
*/
|
|
10
|
+
export function laneLabel(name) {
|
|
11
|
+
if (name === "mint")
|
|
12
|
+
return "credential";
|
|
13
|
+
if (name === "runner")
|
|
14
|
+
return "runner-setup";
|
|
15
|
+
return RESOURCE_PRESENTATIONS.lanes.find(({ lane }) => lane === name)?.label ?? name;
|
|
16
|
+
}
|
|
17
|
+
/** A critical path step: its lane's label, and for the runner what it did with its runner snapshot. */
|
|
18
|
+
export function criticalPathStep(name, timeline) {
|
|
19
|
+
const snapshot = timeline.rows.find((candidate) => candidate.name === name)?.snapshot;
|
|
20
|
+
return snapshot === undefined ? laneLabel(name) : `${laneLabel(name)} (snapshot ${snapshot})`;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The label column: a space, the widest lane label, such as `testserver-setup`, and a space; wider for a worker's
|
|
24
|
+
* label.
|
|
25
|
+
*/
|
|
26
|
+
const LABEL_WIDTH = Math.max(...[
|
|
27
|
+
"credential",
|
|
28
|
+
"runner-setup",
|
|
29
|
+
"tests",
|
|
30
|
+
"cleanup",
|
|
31
|
+
...RESOURCE_PRESENTATIONS.lanes.map(({ label }) => label),
|
|
32
|
+
].map((label) => label.length)) + 2;
|
|
33
|
+
/** Columns kept after the bars for the duration that follows the longest one; more for a worker's tail. */
|
|
34
|
+
const TAIL_WIDTH = 14;
|
|
35
|
+
/** Axis steps, in seconds, from which the smallest that leaves room for its labels is chosen. */
|
|
36
|
+
const AXIS_STEPS = [1, 2, 5, 10, 15, 20, 30, 60, 120, 300, 600, 900, 1800, 3600, 7200];
|
|
37
|
+
/** The waterfall's lines for `timeline`. */
|
|
38
|
+
export function waterfallLines(timeline, extras) {
|
|
39
|
+
const style = extras.paint ?? paintFor(false);
|
|
40
|
+
const width = Math.max(60, extras.width);
|
|
41
|
+
const workers = extras.workers ?? [];
|
|
42
|
+
const labelWidth = Math.max(LABEL_WIDTH, workers.length === 0 ? 0 : workerLabelWidth(workers, width));
|
|
43
|
+
const tailWidth = Math.max(TAIL_WIDTH, workers.length === 0 ? 0 : workerTailWidth(workers));
|
|
44
|
+
const barWidth = width - labelWidth - tailWidth;
|
|
45
|
+
const total = Math.max(timeline.totalMs, 1);
|
|
46
|
+
const column = (ms) => Math.round((ms / total) * barWidth);
|
|
47
|
+
const lines = [];
|
|
48
|
+
if (timeline.rows.length > 0) {
|
|
49
|
+
lines.push(style.faint(axis(total, labelWidth, barWidth, tailWidth, column)));
|
|
50
|
+
for (const row of timeline.rows) {
|
|
51
|
+
const critical = timeline.criticalPath.includes(row.name);
|
|
52
|
+
lines.push(...rowLines(row, { labelWidth, column, width, style }, critical));
|
|
53
|
+
if (row.name === "tests" && workers.length > 0)
|
|
54
|
+
lines.push(...workerLaneLines(workers, { labelWidth, column, width, paint: style }));
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
if (timeline.criticalPath.length > 0)
|
|
58
|
+
lines.push(` critical path: ${timeline.criticalPath.map((name) => criticalPathStep(name, timeline)).join(" → ")}`);
|
|
59
|
+
lines.push(...(extras.details ?? []));
|
|
60
|
+
if (extras.logs !== undefined)
|
|
61
|
+
lines.push(` logs ${extras.logs}`);
|
|
62
|
+
return lines;
|
|
63
|
+
}
|
|
64
|
+
/** The axis: a label at each step that leaves at least 10 columns between labels. */
|
|
65
|
+
function axis(total, labelWidth, barWidth, tailWidth, column) {
|
|
66
|
+
const stepSeconds = AXIS_STEPS.find((candidate) => (candidate * 1000 * barWidth) / total >= 10) ?? AXIS_STEPS.at(-1) ?? 1;
|
|
67
|
+
const cells = Array.from({ length: barWidth + tailWidth }, () => " ");
|
|
68
|
+
for (let at = 0; at * 1000 <= total; at += stepSeconds) {
|
|
69
|
+
const label = stepSeconds >= 60 ? `${at / 60}m` : `${at}s`;
|
|
70
|
+
const start = column(at * 1000);
|
|
71
|
+
if (start + label.length > cells.length)
|
|
72
|
+
break;
|
|
73
|
+
for (let index = 0; index < label.length; index += 1)
|
|
74
|
+
cells[start + index] = label[index] ?? " ";
|
|
75
|
+
}
|
|
76
|
+
return `${" ".repeat(labelWidth)}${cells.join("").trimEnd()}`;
|
|
77
|
+
}
|
|
78
|
+
/** A row's bar, its duration and what it is made of; the breakdown moves to its own line when it doesn't fit. */
|
|
79
|
+
function rowLines(row, layout, critical) {
|
|
80
|
+
const { labelWidth, column, width, style } = layout;
|
|
81
|
+
const start = column(row.startMs);
|
|
82
|
+
const end = Math.max(start, column(row.endMs));
|
|
83
|
+
const idleEnd = Math.max(end, column(row.endMs + row.idleMs));
|
|
84
|
+
const bar = "█".repeat(end - start);
|
|
85
|
+
const idle = "░".repeat(idleEnd - end);
|
|
86
|
+
const outcome = row.outcome === "done"
|
|
87
|
+
? ""
|
|
88
|
+
: ` ${row.outcome === "failed" ? style.failed(row.outcome) : style.stopped(row.outcome)}`;
|
|
89
|
+
const idleText = row.idleMs > 0 ? ` · idle ${seconds(row.idleMs)}` : "";
|
|
90
|
+
const head = `${` ${laneLabel(row.name)}`.padEnd(labelWidth)}${" ".repeat(start)}`;
|
|
91
|
+
const text = ` ${seconds(row.endMs - row.startMs)}${idleText}${outcome}`;
|
|
92
|
+
const line = `${head}${critical ? style.active(bar) : bar}${style.faint(idle)}▏${text}`;
|
|
93
|
+
const breakdown = breakdownText(row);
|
|
94
|
+
if (breakdown === "")
|
|
95
|
+
return [line];
|
|
96
|
+
const plainWidth = head.length + bar.length + idle.length + 1 + visibleLength(text);
|
|
97
|
+
if (plainWidth + 3 + breakdown.length <= width)
|
|
98
|
+
return [`${line} ${breakdown}`];
|
|
99
|
+
return [line, `${" ".repeat(labelWidth)}${breakdown}`];
|
|
100
|
+
}
|
|
101
|
+
/** What a row is made of: its steps' durations, and for a lane that counts them how many were reused and created. */
|
|
102
|
+
function breakdownText(row) {
|
|
103
|
+
const steps = row.steps.map((step) => `${step.name} ${seconds(step.endMs - step.startMs)}${step.outcome === "done" ? "" : ` ${step.outcome}`}`);
|
|
104
|
+
if (row.sandboxes === undefined)
|
|
105
|
+
return steps.join(" · ");
|
|
106
|
+
const counts = `${row.sandboxes.reused} reused, ${row.sandboxes.created} created`;
|
|
107
|
+
return [counts, ...(steps.length > 1 ? steps : [])].join(" · ");
|
|
108
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { TimelineSpan } from "../../core/index.ts";
|
|
2
|
+
import type { TestEvent } from "../../sdk/index.ts";
|
|
3
|
+
import { type Paint } from "./text.ts";
|
|
4
|
+
/** The most workers the chart draws; the rest, those that finished first, are counted on one line. */
|
|
5
|
+
export declare const MAX_WORKER_ROWS = 16;
|
|
6
|
+
/** A stretch of a worker's time, in milliseconds since the run started. */
|
|
7
|
+
interface Span {
|
|
8
|
+
readonly startMs: number;
|
|
9
|
+
readonly endMs: number;
|
|
10
|
+
}
|
|
11
|
+
interface FileRun extends Span {
|
|
12
|
+
readonly file: string;
|
|
13
|
+
/** The file as the chart names it: its file name, with as many directories as tell it from the chart's others. */
|
|
14
|
+
readonly name: string;
|
|
15
|
+
}
|
|
16
|
+
interface ContainerStart extends Span {
|
|
17
|
+
readonly ok: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* What a vitest worker did, by the run's clock: the files it ran, in order, the containers it started, and how many
|
|
21
|
+
* tests it started, each once however often it was retried.
|
|
22
|
+
*/
|
|
23
|
+
export interface WorkerLane extends Span {
|
|
24
|
+
readonly worker: number;
|
|
25
|
+
readonly files: readonly FileRun[];
|
|
26
|
+
readonly starts: readonly ContainerStart[];
|
|
27
|
+
readonly tests: number;
|
|
28
|
+
}
|
|
29
|
+
/** How a worker's clock maps to the run's, and the tests lane the workers' rows stay within. */
|
|
30
|
+
export interface WorkerClock {
|
|
31
|
+
/** When the run started, in milliseconds since the epoch by the run's clock. */
|
|
32
|
+
readonly runStartedAt: number;
|
|
33
|
+
/** What to add to a worker's clock to read the run's: 0 when they share a clock. */
|
|
34
|
+
readonly offsetMs: number;
|
|
35
|
+
/** The tests lane, in milliseconds since the run started. */
|
|
36
|
+
readonly tests: TimelineSpan;
|
|
37
|
+
}
|
|
38
|
+
/** The tests' part of the waterfall: the worker chart, and the lines after the critical path. */
|
|
39
|
+
export interface TestsChart {
|
|
40
|
+
readonly lanes: readonly WorkerLane[];
|
|
41
|
+
readonly notes: readonly string[];
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* The worker chart for `events` and the tests' lines that go with it: the totals, the container starts beside the
|
|
45
|
+
* `░` that marks them, and what the other glyphs mean; undefined when no worker started a file, so the summary
|
|
46
|
+
* stands alone. `unreadable` counts the lines in the test events file that held none; `incomplete` is why its final
|
|
47
|
+
* read failed, when it did.
|
|
48
|
+
*/
|
|
49
|
+
export declare function testsChart(events: readonly TestEvent[], unreadable: number, clock: WorkerClock, incomplete?: string): TestsChart | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Each worker's files and container starts, from its events, by the run's clock, by worker; a worker that started no
|
|
52
|
+
* file has none. A file without a `file-finished`, from a run that stopped, ends at its worker's last event. The
|
|
53
|
+
* workers' time is moved, keeping its shape, to lie within the tests lane, however far the clocks disagree, and cut
|
|
54
|
+
* to the lane where it is longer.
|
|
55
|
+
*/
|
|
56
|
+
export declare function workerLanes(events: readonly TestEvent[], clock: WorkerClock): WorkerLane[];
|
|
57
|
+
/**
|
|
58
|
+
* What to add to a worker's clock to read the run's, from when the run heard each worker test event (`arrivedAt`, by
|
|
59
|
+
* its clock) and when the worker reported it (`at`, by the worker's): the smallest difference, since an event arrives
|
|
60
|
+
* no sooner than it happened. 0 without one.
|
|
61
|
+
*/
|
|
62
|
+
export declare function workerClockOffset(heard: readonly {
|
|
63
|
+
readonly at: number;
|
|
64
|
+
readonly arrivedAt: number;
|
|
65
|
+
}[]): number;
|
|
66
|
+
/** The label column the worker chart needs at `width` columns: its widest label, cut to fit, and a space. */
|
|
67
|
+
export declare function workerLabelWidth(lanes: readonly WorkerLane[], width: number): number;
|
|
68
|
+
/** How the waterfall lays out the worker chart: its label column, where a time falls, its width and its paint. */
|
|
69
|
+
export interface WorkerLayout {
|
|
70
|
+
readonly labelWidth: number;
|
|
71
|
+
readonly column: (ms: number) => number;
|
|
72
|
+
readonly width: number;
|
|
73
|
+
readonly paint: Paint;
|
|
74
|
+
}
|
|
75
|
+
/** The worker chart's lines: a row for each worker shown, then how many more there are. */
|
|
76
|
+
export declare function workerLaneLines(lanes: readonly WorkerLane[], layout: WorkerLayout): string[];
|
|
77
|
+
/** The columns the worker chart needs after its longest bar: `▏` and the widest tail. */
|
|
78
|
+
export declare function workerTailWidth(lanes: readonly WorkerLane[]): number;
|
|
79
|
+
export {};
|
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
// The worker chart: the tests lane's breakdown in the waterfall, a row for each vitest worker under the `tests` row,
|
|
2
|
+
// on the waterfall's time axis. A row names the worker (`w1`) and its first test file, shows its files one after
|
|
3
|
+
// another and the container starts among them, and says how long it ran and how many tests it started. The row that ends last ran the file the run waited on. It reads
|
|
4
|
+
// the same with or without color, at 80 columns.
|
|
5
|
+
import { testsSummary } from "./tests-summary.js";
|
|
6
|
+
import { seconds, truncate, visibleLength } from "./text.js";
|
|
7
|
+
/** The most workers the chart draws; the rest, those that finished first, are counted on one line. */
|
|
8
|
+
export const MAX_WORKER_ROWS = 16;
|
|
9
|
+
/** The widest a worker's label gets, as a share of the width and at most, its file name cut to fit. */
|
|
10
|
+
const MAX_LABEL_SHARE = 0.3;
|
|
11
|
+
const MAX_LABEL_WIDTH = 32;
|
|
12
|
+
/** How far a worker's label is indented under the `tests` label. */
|
|
13
|
+
const INDENT = " ";
|
|
14
|
+
/**
|
|
15
|
+
* The worker chart for `events` and the tests' lines that go with it: the totals, the container starts beside the
|
|
16
|
+
* `░` that marks them, and what the other glyphs mean; undefined when no worker started a file, so the summary
|
|
17
|
+
* stands alone. `unreadable` counts the lines in the test events file that held none; `incomplete` is why its final
|
|
18
|
+
* read failed, when it did.
|
|
19
|
+
*/
|
|
20
|
+
export function testsChart(events, unreadable, clock, incomplete) {
|
|
21
|
+
const lanes = workerLanes(events, clock);
|
|
22
|
+
if (lanes.length === 0)
|
|
23
|
+
return undefined;
|
|
24
|
+
const summary = testsSummary(events, unreadable, incomplete);
|
|
25
|
+
const failed = lanes.reduce((sum, lane) => sum + lane.starts.filter((start) => !start.ok).length, 0);
|
|
26
|
+
const notes = [
|
|
27
|
+
summary.tests,
|
|
28
|
+
summary.containers === undefined ? undefined : ` ░ ${summary.containers}`,
|
|
29
|
+
failed === 0 ? undefined : ` × ${failed} container ${failed === 1 ? "start" : "starts"} failed`,
|
|
30
|
+
lanes.some((lane) => lane.files.length > 1) ? " █▓ a worker's files, in turn" : undefined,
|
|
31
|
+
summary.unreadable,
|
|
32
|
+
summary.incomplete,
|
|
33
|
+
].filter((line) => line !== undefined);
|
|
34
|
+
return { lanes, notes };
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Each worker's files and container starts, from its events, by the run's clock, by worker; a worker that started no
|
|
38
|
+
* file has none. A file without a `file-finished`, from a run that stopped, ends at its worker's last event. The
|
|
39
|
+
* workers' time is moved, keeping its shape, to lie within the tests lane, however far the clocks disagree, and cut
|
|
40
|
+
* to the lane where it is longer.
|
|
41
|
+
*/
|
|
42
|
+
export function workerLanes(events, clock) {
|
|
43
|
+
const reported = events.filter((event) => event.kind !== "test-result");
|
|
44
|
+
const lanes = lanesOf(reported, clock.runStartedAt - clock.offsetMs);
|
|
45
|
+
if (lanes.length === 0)
|
|
46
|
+
return [];
|
|
47
|
+
let first = Infinity;
|
|
48
|
+
let last = -Infinity;
|
|
49
|
+
for (const lane of lanes) {
|
|
50
|
+
first = Math.min(first, lane.startMs);
|
|
51
|
+
last = Math.max(last, lane.endMs);
|
|
52
|
+
}
|
|
53
|
+
const { startMs, endMs } = clock.tests;
|
|
54
|
+
const shift = first < startMs ? startMs - first : last > endMs ? Math.max(startMs - first, endMs - last) : 0;
|
|
55
|
+
const within = (ms) => Math.min(Math.max(ms + shift, startMs), endMs);
|
|
56
|
+
const moved = (span) => ({ ...span, startMs: within(span.startMs), endMs: within(span.endMs) });
|
|
57
|
+
const names = fileNames(lanes.flatMap((lane) => lane.files.map((run) => run.file)));
|
|
58
|
+
return lanes.map((lane) => ({
|
|
59
|
+
...moved(lane),
|
|
60
|
+
files: lane.files.map((run) => ({ ...moved(run), name: names.get(run.file) ?? run.file })),
|
|
61
|
+
starts: lane.starts.map(moved),
|
|
62
|
+
}));
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* How the chart names each of `files`: its file name, such as `teams.test.ts`, or with as many of its directories as
|
|
66
|
+
* tell it from another file of the same name, such as `env/teams.test.ts` beside `link/teams.test.ts`.
|
|
67
|
+
*/
|
|
68
|
+
function fileNames(files) {
|
|
69
|
+
const distinct = [...new Set(files)];
|
|
70
|
+
const parts = new Map(distinct.map((file) => [file, file.split("/").filter((part) => part !== "")]));
|
|
71
|
+
const names = new Map();
|
|
72
|
+
for (const file of distinct) {
|
|
73
|
+
const own = parts.get(file) ?? [file];
|
|
74
|
+
for (let depth = 1; depth <= own.length; depth += 1) {
|
|
75
|
+
const name = own.slice(-depth).join("/");
|
|
76
|
+
const shared = distinct.some((other) => other !== file && (parts.get(other) ?? []).slice(-depth).join("/") === name);
|
|
77
|
+
if (!shared || depth === own.length) {
|
|
78
|
+
names.set(file, name);
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return names;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* What to add to a worker's clock to read the run's, from when the run heard each worker test event (`arrivedAt`, by
|
|
87
|
+
* its clock) and when the worker reported it (`at`, by the worker's): the smallest difference, since an event arrives
|
|
88
|
+
* no sooner than it happened. 0 without one.
|
|
89
|
+
*/
|
|
90
|
+
export function workerClockOffset(heard) {
|
|
91
|
+
let offset = Infinity;
|
|
92
|
+
for (const { at, arrivedAt } of heard)
|
|
93
|
+
offset = Math.min(offset, arrivedAt - at);
|
|
94
|
+
return offset === Infinity ? 0 : offset;
|
|
95
|
+
}
|
|
96
|
+
/** The label column the worker chart needs at `width` columns: its widest label, cut to fit, and a space. */
|
|
97
|
+
export function workerLabelWidth(lanes, width) {
|
|
98
|
+
const digits = digitsOf(lanes);
|
|
99
|
+
const most = labelRoom(width);
|
|
100
|
+
let widest = 0;
|
|
101
|
+
for (const lane of shownLanes(lanes))
|
|
102
|
+
widest = Math.max(widest, labelText(lane, digits, most).length);
|
|
103
|
+
return widest + 1;
|
|
104
|
+
}
|
|
105
|
+
/** The most columns a worker's label takes at `width` columns. */
|
|
106
|
+
function labelRoom(width) {
|
|
107
|
+
return Math.min(MAX_LABEL_WIDTH, Math.floor(width * MAX_LABEL_SHARE));
|
|
108
|
+
}
|
|
109
|
+
/** The worker chart's lines: a row for each worker shown, then how many more there are. */
|
|
110
|
+
export function workerLaneLines(lanes, layout) {
|
|
111
|
+
const shown = shownLanes(lanes);
|
|
112
|
+
const digits = digitsOf(lanes);
|
|
113
|
+
let lastMs = -Infinity;
|
|
114
|
+
for (const lane of lanes)
|
|
115
|
+
lastMs = Math.max(lastMs, lane.endMs);
|
|
116
|
+
const lines = shown.flatMap((lane) => laneLines(lane, digits, layout, lane.endMs === lastMs));
|
|
117
|
+
const hidden = lanes.filter((lane) => !shown.includes(lane));
|
|
118
|
+
if (hidden.length > 0) {
|
|
119
|
+
let doneMs = -Infinity;
|
|
120
|
+
for (const lane of hidden)
|
|
121
|
+
doneMs = Math.max(doneMs, lane.endMs - lane.startMs);
|
|
122
|
+
lines.push(`${" ".repeat(layout.labelWidth)}+${hidden.length} more workers, each done within ${seconds(doneMs)}`);
|
|
123
|
+
}
|
|
124
|
+
return lines;
|
|
125
|
+
}
|
|
126
|
+
/** Each worker's files and container starts, with times in milliseconds after `origin` by the worker's clock. */
|
|
127
|
+
function lanesOf(events, origin) {
|
|
128
|
+
const byWorker = new Map();
|
|
129
|
+
for (const event of events) {
|
|
130
|
+
const own = byWorker.get(event.worker);
|
|
131
|
+
if (own === undefined)
|
|
132
|
+
byWorker.set(event.worker, [event]);
|
|
133
|
+
else
|
|
134
|
+
own.push(event);
|
|
135
|
+
}
|
|
136
|
+
const lanes = [];
|
|
137
|
+
for (const [worker, own] of [...byWorker].toSorted(([a], [b]) => a - b)) {
|
|
138
|
+
const files = [];
|
|
139
|
+
const starts = [];
|
|
140
|
+
const tests = new Set();
|
|
141
|
+
const openFiles = new Map();
|
|
142
|
+
const startingContainers = new Map();
|
|
143
|
+
let lastMs = -Infinity;
|
|
144
|
+
for (const event of own) {
|
|
145
|
+
const atMs = event.at - origin;
|
|
146
|
+
lastMs = Math.max(lastMs, atMs);
|
|
147
|
+
switch (event.kind) {
|
|
148
|
+
case "file-started":
|
|
149
|
+
openFiles.set(event.file, atMs);
|
|
150
|
+
break;
|
|
151
|
+
case "file-finished": {
|
|
152
|
+
const startMs = openFiles.get(event.file);
|
|
153
|
+
if (startMs !== undefined)
|
|
154
|
+
files.push({ file: event.file, startMs, endMs: atMs });
|
|
155
|
+
openFiles.delete(event.file);
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
case "container-starting":
|
|
159
|
+
startingContainers.set(event.file, atMs);
|
|
160
|
+
break;
|
|
161
|
+
case "container-started":
|
|
162
|
+
// The span covers the start and any warmup after it, which the event comes after.
|
|
163
|
+
starts.push({ startMs: atMs - event.ms - (event.warmupMs ?? 0), endMs: atMs, ok: event.ok });
|
|
164
|
+
startingContainers.delete(event.file);
|
|
165
|
+
break;
|
|
166
|
+
case "test-started":
|
|
167
|
+
tests.add(`${event.file}\u0000${event.test}`);
|
|
168
|
+
break;
|
|
169
|
+
case "test-attempt-finished":
|
|
170
|
+
break;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
for (const [file, startMs] of openFiles)
|
|
174
|
+
files.push({ file, startMs, endMs: lastMs });
|
|
175
|
+
for (const startMs of startingContainers.values())
|
|
176
|
+
starts.push({ startMs, endMs: lastMs, ok: true });
|
|
177
|
+
if (files.length === 0)
|
|
178
|
+
continue;
|
|
179
|
+
files.sort((a, b) => a.startMs - b.startMs);
|
|
180
|
+
let startMs = Infinity;
|
|
181
|
+
let endMs = -Infinity;
|
|
182
|
+
for (const run of files) {
|
|
183
|
+
startMs = Math.min(startMs, run.startMs);
|
|
184
|
+
endMs = Math.max(endMs, run.endMs);
|
|
185
|
+
}
|
|
186
|
+
lanes.push({
|
|
187
|
+
worker,
|
|
188
|
+
files: files.map((run) => ({ ...run, name: run.file })),
|
|
189
|
+
starts,
|
|
190
|
+
startMs,
|
|
191
|
+
endMs,
|
|
192
|
+
tests: tests.size,
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
return lanes;
|
|
196
|
+
}
|
|
197
|
+
/** The workers the chart draws: all of them, or past `MAX_WORKER_ROWS` those that finished last, by worker. */
|
|
198
|
+
function shownLanes(lanes) {
|
|
199
|
+
if (lanes.length <= MAX_WORKER_ROWS)
|
|
200
|
+
return lanes;
|
|
201
|
+
return [...lanes]
|
|
202
|
+
.toSorted((a, b) => b.endMs - a.endMs || a.worker - b.worker)
|
|
203
|
+
.slice(0, MAX_WORKER_ROWS)
|
|
204
|
+
.toSorted((a, b) => a.worker - b.worker);
|
|
205
|
+
}
|
|
206
|
+
function digitsOf(lanes) {
|
|
207
|
+
let worker = 1;
|
|
208
|
+
for (const lane of lanes)
|
|
209
|
+
worker = Math.max(worker, lane.worker);
|
|
210
|
+
return String(worker).length;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* A worker's label, at most `room` columns: indented, `w` and its number, its first file, and how many more files it
|
|
214
|
+
* ran.
|
|
215
|
+
*/
|
|
216
|
+
function labelText(lane, digits, room) {
|
|
217
|
+
const [first] = lane.files;
|
|
218
|
+
const more = lane.files.length > 1 ? ` +${lane.files.length - 1}` : "";
|
|
219
|
+
const head = `${INDENT}w${String(lane.worker).padEnd(digits)} `;
|
|
220
|
+
const name = first?.name ?? "";
|
|
221
|
+
return `${head}${shortened(name, Math.max(1, room - head.length - more.length))}${more}`;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* `name` in at most `room` columns: whole when it fits, else with the end of its stem cut to `…`, keeping its test
|
|
225
|
+
* file extension, such as `existi….test.ts`, and cut at the end when not even that fits.
|
|
226
|
+
*/
|
|
227
|
+
function shortened(name, room) {
|
|
228
|
+
if (name.length <= room)
|
|
229
|
+
return name;
|
|
230
|
+
const extension = /(\.(test|spec))?\.[cm]?[jt]sx?$/.exec(name)?.[0] ?? "";
|
|
231
|
+
const stemRoom = room - extension.length - 1;
|
|
232
|
+
if (extension === "" || stemRoom < 1)
|
|
233
|
+
return truncate(name, room);
|
|
234
|
+
return `${name.slice(0, stemRoom)}…${extension}`;
|
|
235
|
+
}
|
|
236
|
+
/** What follows a worker's bar: how long it ran, and how many tests it started; its label counts its files. */
|
|
237
|
+
function tailText(lane) {
|
|
238
|
+
const tests = lane.tests === 0 ? "" : ` · ${lane.tests} ${lane.tests === 1 ? "test" : "tests"}`;
|
|
239
|
+
return ` ${seconds(lane.endMs - lane.startMs)}${tests}`;
|
|
240
|
+
}
|
|
241
|
+
/** The columns the worker chart needs after its longest bar: `▏` and the widest tail. */
|
|
242
|
+
export function workerTailWidth(lanes) {
|
|
243
|
+
let widest = 0;
|
|
244
|
+
for (const lane of shownLanes(lanes))
|
|
245
|
+
widest = Math.max(widest, tailText(lane).length);
|
|
246
|
+
return widest + 1;
|
|
247
|
+
}
|
|
248
|
+
const GLYPH = { file: "█", "next-file": "▓", start: "░", "failed-start": "×" };
|
|
249
|
+
/**
|
|
250
|
+
* A worker's row: its bar, how long it ran from its first file's start to its last's finish, and, when it ran several,
|
|
251
|
+
* its files with their times when they fit on the row. The worker the run waited on lists its files on their own line
|
|
252
|
+
* when they don't; the others' labels count them.
|
|
253
|
+
*/
|
|
254
|
+
function laneLines(lane, digits, layout, waitedOn) {
|
|
255
|
+
const { labelWidth, column, width, paint } = layout;
|
|
256
|
+
const startColumn = column(lane.startMs);
|
|
257
|
+
const endColumn = Math.max(startColumn, column(lane.endMs));
|
|
258
|
+
const cells = Array.from({ length: endColumn }, () => undefined);
|
|
259
|
+
const fill = (span, cell, atLeastOne = false) => {
|
|
260
|
+
const from = Math.min(Math.max(column(span.startMs), startColumn), endColumn);
|
|
261
|
+
const to = Math.min(Math.max(column(span.endMs), atLeastOne ? from + 1 : from), endColumn);
|
|
262
|
+
for (let index = from; index < to; index += 1)
|
|
263
|
+
cells[index] = cell;
|
|
264
|
+
};
|
|
265
|
+
lane.files.forEach((run, index) => fill(run, index % 2 === 0 ? "file" : "next-file"));
|
|
266
|
+
for (const start of lane.starts)
|
|
267
|
+
fill(start, start.ok ? "start" : "failed-start", !start.ok);
|
|
268
|
+
const label = labelText(lane, digits, Math.min(labelWidth - 1, labelRoom(width))).padEnd(labelWidth);
|
|
269
|
+
const text = tailText(lane);
|
|
270
|
+
const line = `${label}${paintedBar(cells, paint, waitedOn)}▏${text}`;
|
|
271
|
+
if (lane.files.length < 2)
|
|
272
|
+
return [line];
|
|
273
|
+
const plainWidth = label.length + cells.length + 1 + text.length;
|
|
274
|
+
const names = lane.files.map((run) => `${run.name} ${seconds(run.endMs - run.startMs)}`);
|
|
275
|
+
const sameLine = names.join(" · ");
|
|
276
|
+
if (plainWidth + 3 + visibleLength(sameLine) <= width)
|
|
277
|
+
return [`${line} ${sameLine}`];
|
|
278
|
+
if (!waitedOn)
|
|
279
|
+
return [line];
|
|
280
|
+
return [line, `${" ".repeat(labelWidth)}${fittingNames(names, width - labelWidth)}`];
|
|
281
|
+
}
|
|
282
|
+
/** The bar's cells as text: files painted to stand out on the row the run waited on, container starts faint. */
|
|
283
|
+
function paintedBar(cells, paint, waitedOn) {
|
|
284
|
+
let text = "";
|
|
285
|
+
let index = 0;
|
|
286
|
+
while (index < cells.length) {
|
|
287
|
+
const cell = cells[index];
|
|
288
|
+
let end = index + 1;
|
|
289
|
+
while (end < cells.length && cells[end] === cell)
|
|
290
|
+
end += 1;
|
|
291
|
+
const run = cell === undefined ? " ".repeat(end - index) : GLYPH[cell].repeat(end - index);
|
|
292
|
+
if (cell === "start")
|
|
293
|
+
text += paint.faint(run);
|
|
294
|
+
else if (cell === "failed-start")
|
|
295
|
+
text += paint.failed(run);
|
|
296
|
+
else if (cell !== undefined && waitedOn)
|
|
297
|
+
text += paint.active(run);
|
|
298
|
+
else
|
|
299
|
+
text += run;
|
|
300
|
+
index = end;
|
|
301
|
+
}
|
|
302
|
+
return text;
|
|
303
|
+
}
|
|
304
|
+
/** As many of `names` as fit in `room` columns, joined by ` · `, ending in `+N more` when some don't. */
|
|
305
|
+
function fittingNames(names, room) {
|
|
306
|
+
for (let count = names.length; count > 0; count -= 1) {
|
|
307
|
+
const kept = [...names.slice(0, count), ...(count < names.length ? [`+${names.length - count} more`] : [])];
|
|
308
|
+
const text = kept.join(" · ");
|
|
309
|
+
if (visibleLength(text) <= room)
|
|
310
|
+
return text;
|
|
311
|
+
}
|
|
312
|
+
return `+${names.length} more`;
|
|
313
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { type StyledCell } from "@cnc-tools/cli-kit/clinkr";
|
|
2
|
+
import type { Intent } from "@cnc-tools/cli-kit/theme";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import type { ListedRun, RunScope } from "./past-run.ts";
|
|
5
|
+
/**
|
|
6
|
+
* The run logs `runs logs` prints and `runs show` names: the command log (`command`), then each step's, in the order a
|
|
7
|
+
* person looks for them.
|
|
8
|
+
*/
|
|
9
|
+
export declare const LOG_STEPS: readonly ["command", "install", "build", "apply", "snapshot"];
|
|
10
|
+
/** Which runs a command saw. */
|
|
11
|
+
export declare const scopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12
|
+
kind: z.ZodLiteral<"config">;
|
|
13
|
+
configFile: z.ZodString;
|
|
14
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
15
|
+
kind: z.ZodLiteral<"all">;
|
|
16
|
+
why: z.ZodEnum<{
|
|
17
|
+
flag: "flag";
|
|
18
|
+
"no-config-file": "no-config-file";
|
|
19
|
+
}>;
|
|
20
|
+
}, z.core.$strip>], "kind">;
|
|
21
|
+
/** A run's facts, from its run directory and `run.json`; each fact is null when unknown. */
|
|
22
|
+
export declare const runFactsSchema: z.ZodObject<{
|
|
23
|
+
id: z.ZodString;
|
|
24
|
+
path: z.ZodString;
|
|
25
|
+
active: z.ZodBoolean;
|
|
26
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
27
|
+
cwd: z.ZodNullable<z.ZodString>;
|
|
28
|
+
configFile: z.ZodNullable<z.ZodString>;
|
|
29
|
+
argv: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
30
|
+
where: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31
|
+
kind: z.ZodLiteral<"local">;
|
|
32
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
+
kind: z.ZodLiteral<"runner">;
|
|
34
|
+
team: z.ZodString;
|
|
35
|
+
project: z.ZodString;
|
|
36
|
+
region: z.ZodString;
|
|
37
|
+
runtime: z.ZodString;
|
|
38
|
+
vcpus: z.ZodNumber;
|
|
39
|
+
base: z.ZodString;
|
|
40
|
+
baseRef: z.ZodString;
|
|
41
|
+
sandbox: z.ZodNullable<z.ZodString>;
|
|
42
|
+
sandboxUrl: z.ZodNullable<z.ZodString>;
|
|
43
|
+
keptUntil: z.ZodNullable<z.ZodString>;
|
|
44
|
+
keptMinutesLeft: z.ZodNullable<z.ZodNumber>;
|
|
45
|
+
snapshot: z.ZodNullable<z.ZodObject<{
|
|
46
|
+
id: z.ZodString;
|
|
47
|
+
base: z.ZodString;
|
|
48
|
+
built: z.ZodBoolean;
|
|
49
|
+
url: z.ZodString;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
}, z.core.$strip>], "kind">>;
|
|
52
|
+
git: z.ZodNullable<z.ZodObject<{
|
|
53
|
+
branch: z.ZodNullable<z.ZodString>;
|
|
54
|
+
commit: z.ZodString;
|
|
55
|
+
dirty: z.ZodBoolean;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
ended: z.ZodNullable<z.ZodObject<{
|
|
58
|
+
outcome: z.ZodString;
|
|
59
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
60
|
+
signal: z.ZodNullable<z.ZodString>;
|
|
61
|
+
ms: z.ZodNullable<z.ZodNumber>;
|
|
62
|
+
tests: z.ZodNullable<z.ZodObject<{
|
|
63
|
+
passed: z.ZodNumber;
|
|
64
|
+
failed: z.ZodNumber;
|
|
65
|
+
skipped: z.ZodNumber;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
testsIncomplete: z.ZodNullable<z.ZodString>;
|
|
68
|
+
resources: z.ZodNullable<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>>>>;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
export type RunFacts = z.output<typeof runFactsSchema>;
|
|
72
|
+
/** `run`'s facts, as of `now`. */
|
|
73
|
+
export declare function runFacts(run: ListedRun, now: Date): RunFacts;
|
|
74
|
+
/** `scope` as the result reports it. */
|
|
75
|
+
export declare function scopeFacts(scope: RunScope): z.output<typeof scopeSchema>;
|
|
76
|
+
/** How a scope reads in a result's `Runs of` row. */
|
|
77
|
+
export declare function scopeText(scope: z.output<typeof scopeSchema>): string;
|
|
78
|
+
/** The error every `runs` command returns when the run directories can't be read. */
|
|
79
|
+
export declare const runsUnreadable: {
|
|
80
|
+
readonly exitCode: 1;
|
|
81
|
+
readonly description: "storm couldn't read the run directories.";
|
|
82
|
+
readonly schema: z.ZodObject<{
|
|
83
|
+
path: z.ZodString;
|
|
84
|
+
message: z.ZodString;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
readonly render: ({ path, message }: {
|
|
87
|
+
readonly path: string;
|
|
88
|
+
readonly message: string;
|
|
89
|
+
}) => {
|
|
90
|
+
message: string;
|
|
91
|
+
rows: (readonly ["Path", string])[];
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
/** The error `runs show` and `runs logs` return for a run id no run directory has. */
|
|
95
|
+
export declare const runNotFound: {
|
|
96
|
+
readonly exitCode: 1;
|
|
97
|
+
readonly description: "No run directory has the id given: it was never a run on this machine, or it was removed.";
|
|
98
|
+
readonly schema: z.ZodObject<{
|
|
99
|
+
id: z.ZodString;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
readonly render: ({ id }: {
|
|
102
|
+
readonly id: string;
|
|
103
|
+
}) => {
|
|
104
|
+
message: string;
|
|
105
|
+
next: {
|
|
106
|
+
type: "command";
|
|
107
|
+
argv: string[];
|
|
108
|
+
label: string;
|
|
109
|
+
}[];
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
/** How a run ended, as its exit cell reads: `running`, the status storm exited with, the outcome, or `-`. */
|
|
113
|
+
export declare function exitText(run: Pick<RunFacts, "active" | "ended">): string;
|
|
114
|
+
/**
|
|
115
|
+
* The color a run's exit cell takes for a person: success for status 0, error for another status or an outcome that
|
|
116
|
+
* failed, warn for `canceled`, accent while it runs; undefined when unknown.
|
|
117
|
+
*/
|
|
118
|
+
export declare function exitTone(run: Pick<RunFacts, "active" | "ended">): Intent | undefined;
|
|
119
|
+
/** How long a run's command took, or `-` when unknown. */
|
|
120
|
+
export declare function tookText(run: Pick<RunFacts, "ended">): string;
|
|
121
|
+
/** A run's tests' totals, such as `5 passed · 1 failed`, `no tests`, or `-` when unknown. */
|
|
122
|
+
export declare function totalsText(run: Pick<RunFacts, "ended">): string;
|
|
123
|
+
/**
|
|
124
|
+
* The color a run's tests cell takes for a person: error when a test failed, success when some passed and none failed;
|
|
125
|
+
* undefined otherwise, such as with no tests or only skipped ones.
|
|
126
|
+
*/
|
|
127
|
+
export declare function totalsTone(run: Pick<RunFacts, "ended">): Intent | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* The runner a run's command ran on, as its table cell reads: a runner run's sandbox name, linked to its page in the
|
|
130
|
+
* Vercel dashboard, with how long it has left while the run's kept runner sandbox still runs, such as `(23m left)`;
|
|
131
|
+
* otherwise, muted, `local` for this machine, `(starting)` before the run has named its sandbox, `(none started)` when
|
|
132
|
+
* it ended without one, or `-` when unknown.
|
|
133
|
+
*/
|
|
134
|
+
export declare function runnerCell(run: Pick<RunFacts, "where" | "ended">): StyledCell;
|
|
135
|
+
/**
|
|
136
|
+
* How long a run's kept runner sandbox runs, as a person reads it: `until 2026-11-03T21:32:00Z (23m left)`, or
|
|
137
|
+
* `until … (stopped by now)` once that has passed; undefined when the run kept none.
|
|
138
|
+
*/
|
|
139
|
+
export declare function keptText(run: Pick<RunFacts, "where">): string | undefined;
|
|
140
|
+
/** The branch a run started from, as its table cell reads: the branch, `detached`, or `-` when unknown. */
|
|
141
|
+
export declare function branchText(run: Pick<RunFacts, "git">): string;
|
|
142
|
+
/**
|
|
143
|
+
* The Git checkout a run started from, as a person reads it: `main at 3f2a9c1b7d4e`, `detached at …`, with
|
|
144
|
+
* `, plus uncommitted changes` when the working tree had any; or `-` when unknown.
|
|
145
|
+
*/
|
|
146
|
+
export declare function gitText(run: Pick<RunFacts, "git">): string;
|
|
147
|
+
/** When a run started, as an ISO time to the second, or `-` when unknown. */
|
|
148
|
+
export declare function startedText(run: Pick<RunFacts, "startedAt">): string;
|
|
149
|
+
/** A run's command line as a person reads it, each argument as is when it is plain, else single-quoted; or `-`. */
|
|
150
|
+
export declare function commandText(run: Pick<RunFacts, "argv">): string;
|