@cnc-tools/storm 0.0.0-stage → 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 +123 -4
- package/skills/overview.md +32 -0
- package/skills/read-run-output.md +65 -0
- package/README.md +0 -3
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type ResourceSettlement } from "../../core/index.ts";
|
|
3
|
+
import type { FixtureRepoCleanup } from "./fixture-repo.ts";
|
|
4
|
+
import type { GitHubFixtureRepoKind } from "./provider.ts";
|
|
5
|
+
/** The errors the GitHub fixture repository resource's settle refuses a run with, before the run starts. */
|
|
6
|
+
export declare const githubFixtureRepoSettleErrors: import("@vercel/clinkr").SharedErrors<{
|
|
7
|
+
githubTokenMissing: z.ZodObject<{
|
|
8
|
+
tokenEnv: z.ZodString;
|
|
9
|
+
repo: z.ZodString;
|
|
10
|
+
configFile: z.ZodNullable<z.ZodString>;
|
|
11
|
+
requiredBy: z.ZodEnum<{
|
|
12
|
+
config: "config";
|
|
13
|
+
set: "set";
|
|
14
|
+
}>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
}>;
|
|
17
|
+
/** What deleting the branches under a canceled run's prefix did, for a person; nothing when it held no repository. */
|
|
18
|
+
export declare function fixtureRepoCanceledLines(cleanup: FixtureRepoCleanup | undefined): string[];
|
|
19
|
+
/**
|
|
20
|
+
* The definition of the error a run the GitHub fixture repository refused, while the run acquired it, ends with; the
|
|
21
|
+
* host defines it with the run's cleanup beside its data.
|
|
22
|
+
*/
|
|
23
|
+
export declare const githubFixtureRepoRefusalErrors: {
|
|
24
|
+
readonly githubFixtureRepoUnavailable: import("@vercel/clinkr").DataErrorDefinition<z.ZodObject<{
|
|
25
|
+
repo: z.ZodString;
|
|
26
|
+
status: z.ZodNullable<z.ZodNumber>;
|
|
27
|
+
message: z.ZodString;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* The GitHub fixture repository resource's command half, `resources.githubFixtureRepo`, with its errors: its settle's,
|
|
32
|
+
* and its refusal error's definition. Its prepare never refuses, and it never takes the run's credential.
|
|
33
|
+
*/
|
|
34
|
+
export declare const githubFixtureRepoCommand: {
|
|
35
|
+
errors: import("@vercel/clinkr").SharedErrors<{
|
|
36
|
+
githubTokenMissing: z.ZodObject<{
|
|
37
|
+
tokenEnv: z.ZodString;
|
|
38
|
+
repo: z.ZodString;
|
|
39
|
+
configFile: z.ZodNullable<z.ZodString>;
|
|
40
|
+
requiredBy: z.ZodEnum<{
|
|
41
|
+
config: "config";
|
|
42
|
+
set: "set";
|
|
43
|
+
}>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
}>;
|
|
46
|
+
refusalErrors: {
|
|
47
|
+
readonly githubFixtureRepoUnavailable: import("@vercel/clinkr").DataErrorDefinition<z.ZodObject<{
|
|
48
|
+
repo: z.ZodString;
|
|
49
|
+
status: z.ZodNullable<z.ZodNumber>;
|
|
50
|
+
message: z.ZodString;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
};
|
|
53
|
+
settle: ({ options, env, configFile }: import("../../core/command-provider.ts").ResourceSettleInput<GitHubFixtureRepoKind>) => {
|
|
54
|
+
readonly ok: false;
|
|
55
|
+
readonly refusal: import("@vercel/clinkr").CommandError<"github_token_missing">;
|
|
56
|
+
} | ({
|
|
57
|
+
readonly ok: true;
|
|
58
|
+
} & ResourceSettlement<GitHubFixtureRepoKind>);
|
|
59
|
+
takesCredential: (_options: import("./config.ts").GitHubFixtureRepoSettings) => false;
|
|
60
|
+
refusalFacts: ({ repo, failure }: {
|
|
61
|
+
readonly kind: "github-fixture-repo-unavailable";
|
|
62
|
+
readonly repo: string;
|
|
63
|
+
readonly failure: import("./gateways.ts").GitHubFixtureRepoFailure;
|
|
64
|
+
}) => {
|
|
65
|
+
key: "githubFixtureRepoUnavailable";
|
|
66
|
+
data: {
|
|
67
|
+
repo: string;
|
|
68
|
+
status: number | null;
|
|
69
|
+
message: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
unpreparedError: undefined;
|
|
73
|
+
canceledLines: (_facts: undefined, released: FixtureRepoCleanup | undefined) => string[];
|
|
74
|
+
};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
// The GitHub fixture repository resource's command half: its settle, which reads the token from the host variable
|
|
2
|
+
// `tokenEnv` names, with the error that refuses a run without it; the error a run its token couldn't open the
|
|
3
|
+
// repository for ends with; and what a canceled run says of its cleanup. Every outcome that reports the run's cleanup
|
|
4
|
+
// carries `cleanup.resources.githubFixtureRepo` once the run held the repository (`cleanup.ts`); the host adds it.
|
|
5
|
+
//
|
|
6
|
+
// An unset or empty token variable refuses the run (`github_token_missing`, exit 2), unless the resource is
|
|
7
|
+
// `optional`, when the run goes on without it and says so. The run hides the token, as `<token>`, in its progress,
|
|
8
|
+
// its run directory, its job summary, its outcome, and its command's output, in either kind of run. A local command
|
|
9
|
+
// stages its test events in its run directory unredacted; the run writes them to `tests.jsonl` with the token hidden,
|
|
10
|
+
// and closing the run directory removes the staged ones, however the run ended.
|
|
11
|
+
import { defineErrors, refused } from "@vercel/clinkr";
|
|
12
|
+
import { z } from "zod";
|
|
13
|
+
import { optionKeyPath } from "../../config/index.js";
|
|
14
|
+
import { defineRefusals } from "../../core/index.js";
|
|
15
|
+
import { fixtureRepoCleanupFailureText, githubFixtureRepoCleanupReport } from "./cleanup.js";
|
|
16
|
+
/** The key path of the option that makes the resource optional. */
|
|
17
|
+
const OPTIONAL_KEY_PATH = optionKeyPath("githubFixtureRepo", "optional");
|
|
18
|
+
/** The errors the GitHub fixture repository resource's settle refuses a run with, before the run starts. */
|
|
19
|
+
export const githubFixtureRepoSettleErrors = defineErrors({
|
|
20
|
+
githubTokenMissing: {
|
|
21
|
+
exitCode: 2,
|
|
22
|
+
description: "The run holds resources.githubFixtureRepo, required (optional is false: in the file, by --set resources.githubFixtureRepo.optional=false, or by default), and the host environment variable its tokenEnv names is unset or empty, so the run didn't start.",
|
|
23
|
+
schema: z.object({
|
|
24
|
+
/** The variable that should hold the token, such as CNC_GITHUB_FIXTURE_TOKEN. */
|
|
25
|
+
tokenEnv: z.string(),
|
|
26
|
+
/** The repository the token is for, as owner/name. */
|
|
27
|
+
repo: z.string(),
|
|
28
|
+
/** The config file that applied; null when none did. */
|
|
29
|
+
configFile: z.string().nullable(),
|
|
30
|
+
/**
|
|
31
|
+
* What made the resource required: `set`, --set resources.githubFixtureRepo.optional=false; `config`, the file's
|
|
32
|
+
* githubFixtureRepo({ … }) without optional: true, or the default.
|
|
33
|
+
*/
|
|
34
|
+
requiredBy: z.enum(["config", "set"]),
|
|
35
|
+
}),
|
|
36
|
+
render: ({ tokenEnv, repo, requiredBy }) => ({
|
|
37
|
+
message: `${tokenEnv} is not set: resources.githubFixtureRepo needs a token for ${repo} from it. The run didn't start.`,
|
|
38
|
+
next: [
|
|
39
|
+
{
|
|
40
|
+
type: "text",
|
|
41
|
+
text: requiredBy === "set"
|
|
42
|
+
? `Set ${tokenEnv} to a token limited to ${repo}: --set ${OPTIONAL_KEY_PATH}=false makes the repository required for this run.`
|
|
43
|
+
: `Set ${tokenEnv} to a token limited to ${repo}, or let runs go on without the repository with githubFixtureRepo({ …, optional: true }) or --set ${OPTIONAL_KEY_PATH}=true.`,
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
}),
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
/** What deleting the branches under a canceled run's prefix did, for a person; nothing when it held no repository. */
|
|
50
|
+
export function fixtureRepoCanceledLines(cleanup) {
|
|
51
|
+
if (cleanup === undefined)
|
|
52
|
+
return [];
|
|
53
|
+
const facts = githubFixtureRepoCleanupReport.facts(cleanup);
|
|
54
|
+
if (facts.failures.length === 0)
|
|
55
|
+
return [`Every branch under ${facts.runPrefix}/ in ${facts.repo} is deleted.`];
|
|
56
|
+
return facts.failures.map((failure) => fixtureRepoCleanupFailureText(facts, failure));
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* The definition of the error a run the GitHub fixture repository refused, while the run acquired it, ends with; the
|
|
60
|
+
* host defines it with the run's cleanup beside its data.
|
|
61
|
+
*/
|
|
62
|
+
export const githubFixtureRepoRefusalErrors = defineRefusals({
|
|
63
|
+
githubFixtureRepoUnavailable: {
|
|
64
|
+
exitCode: 1,
|
|
65
|
+
description: "The token from resources.githubFixtureRepo's tokenEnv couldn't read the repository (GET repos/{repo} failed), so the command didn't run.",
|
|
66
|
+
schema: z.object({
|
|
67
|
+
/** The repository, as owner/name. */
|
|
68
|
+
repo: z.string(),
|
|
69
|
+
/** The HTTP status GitHub answered with; null when it never answered. */
|
|
70
|
+
status: z.number().nullable(),
|
|
71
|
+
/** What GitHub or the connection said. */
|
|
72
|
+
message: z.string(),
|
|
73
|
+
}),
|
|
74
|
+
render: ({ repo, status, message }) => ({
|
|
75
|
+
message: `Couldn't read the GitHub fixture repository ${repo}: ${status === null ? message : `HTTP ${status}: ${message}`}. The command didn't run.`,
|
|
76
|
+
next: [
|
|
77
|
+
{
|
|
78
|
+
type: "text",
|
|
79
|
+
text: `Check that the token in resources.githubFixtureRepo's tokenEnv can read ${repo}, then retry.`,
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
}),
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
/**
|
|
86
|
+
* The GitHub fixture repository resource's command half, `resources.githubFixtureRepo`, with its errors: its settle's,
|
|
87
|
+
* and its refusal error's definition. Its prepare never refuses, and it never takes the run's credential.
|
|
88
|
+
*/
|
|
89
|
+
export const githubFixtureRepoCommand = {
|
|
90
|
+
errors: githubFixtureRepoSettleErrors,
|
|
91
|
+
refusalErrors: githubFixtureRepoRefusalErrors,
|
|
92
|
+
settle: ({ options, env, configFile }) => {
|
|
93
|
+
const { repo, tokenEnv, optional } = options;
|
|
94
|
+
const token = env[tokenEnv] ?? "";
|
|
95
|
+
if (token !== "")
|
|
96
|
+
return settled({ kind: "open", repo, token }, [token]);
|
|
97
|
+
if (optional.value)
|
|
98
|
+
return settled({ kind: "omitted", repo, tokenEnv }, []);
|
|
99
|
+
return refused(githubFixtureRepoSettleErrors.githubTokenMissing({
|
|
100
|
+
tokenEnv,
|
|
101
|
+
repo,
|
|
102
|
+
configFile,
|
|
103
|
+
requiredBy: optional.source === "flag" ? "set" : "config",
|
|
104
|
+
}));
|
|
105
|
+
},
|
|
106
|
+
takesCredential: (_options) => false,
|
|
107
|
+
refusalFacts: ({ repo, failure }) => ({
|
|
108
|
+
key: "githubFixtureRepoUnavailable",
|
|
109
|
+
data: { repo, status: failure.status, message: failure.message },
|
|
110
|
+
}),
|
|
111
|
+
unpreparedError: undefined,
|
|
112
|
+
canceledLines: (_facts, released) => fixtureRepoCanceledLines(released),
|
|
113
|
+
};
|
|
114
|
+
/** A settled GitHub fixture repository: its request and its secrets. */
|
|
115
|
+
function settled(request, secrets) {
|
|
116
|
+
return { ok: true, secrets, request };
|
|
117
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ResourceConfig, type Setting } from "../../config/index.ts";
|
|
2
|
+
import type { GitHubFixtureRepoOptions } from "./resource.ts";
|
|
3
|
+
/**
|
|
4
|
+
* A held GitHub fixture repository resource's resolved options: the repository, the host variable its token is in,
|
|
5
|
+
* and whether the run goes on without it when that variable is unset, with where that came from.
|
|
6
|
+
*/
|
|
7
|
+
export interface GitHubFixtureRepoSettings {
|
|
8
|
+
readonly repo: string;
|
|
9
|
+
readonly tokenEnv: string;
|
|
10
|
+
readonly optional: Setting<boolean>;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The GitHub fixture repository resource's config. `repo` and `tokenEnv` are required, from the file or a `--set`;
|
|
14
|
+
* `optional` is `false` by default. Its options have no checks across them.
|
|
15
|
+
*/
|
|
16
|
+
export declare const githubFixtureRepoConfig: ResourceConfig<"githubFixtureRepo", GitHubFixtureRepoOptions, GitHubFixtureRepoSettings, keyof GitHubFixtureRepoOptions>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// The GitHub fixture repository resource's config: its section `resources.githubFixtureRepo` in `storm.config.ts`
|
|
2
|
+
// and the rule of each option. `config` loads, reads `--set` and merges against it; the command half (`command.ts`)
|
|
3
|
+
// settles the resolved options into the run's request.
|
|
4
|
+
import { checkBoolean, describeValue, readBooleanText, readTextAsIs, wrongValue, } from "../../config/index.js";
|
|
5
|
+
/** A repository as `owner/name`. */
|
|
6
|
+
const REPO_NAME = /^[\w.-]+\/[\w.-]+$/;
|
|
7
|
+
/** An environment variable's name. */
|
|
8
|
+
const ENV_NAME = /^[A-Za-z_][A-Za-z0-9_]*$/;
|
|
9
|
+
function repoName(value) {
|
|
10
|
+
return typeof value === "string" && REPO_NAME.test(value)
|
|
11
|
+
? { ok: true, value }
|
|
12
|
+
: wrongValue(`must be a repository as owner/name, not ${describeValue(value)}`);
|
|
13
|
+
}
|
|
14
|
+
function envName(value) {
|
|
15
|
+
return typeof value === "string" && ENV_NAME.test(value)
|
|
16
|
+
? { ok: true, value }
|
|
17
|
+
: wrongValue(`must be an environment variable's name, not ${describeValue(value)}`);
|
|
18
|
+
}
|
|
19
|
+
/** The tag a value `githubFixtureRepo()` made carries. */
|
|
20
|
+
const KIND = "githubFixtureRepo";
|
|
21
|
+
/**
|
|
22
|
+
* The GitHub fixture repository resource's config. `repo` and `tokenEnv` are required, from the file or a `--set`;
|
|
23
|
+
* `optional` is `false` by default. Its options have no checks across them.
|
|
24
|
+
*/
|
|
25
|
+
export const githubFixtureRepoConfig = {
|
|
26
|
+
name: "githubFixtureRepo",
|
|
27
|
+
factory: { kind: KIND, call: "githubFixtureRepo({ … })", subpath: "@cnc-tools/storm/github" },
|
|
28
|
+
options: {
|
|
29
|
+
repo: { check: repoName, readText: readTextAsIs, required: true },
|
|
30
|
+
tokenEnv: { check: envName, readText: readTextAsIs, required: true },
|
|
31
|
+
optional: { check: checkBoolean, readText: readBooleanText, default: false },
|
|
32
|
+
},
|
|
33
|
+
resolve: ({ repo, tokenEnv, optional }) => ({
|
|
34
|
+
ok: true,
|
|
35
|
+
value: { repo: repo.value, tokenEnv: tokenEnv.value, optional },
|
|
36
|
+
}),
|
|
37
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { FixtureRepoCleanupFailure } from "./fixture-repo.ts";
|
|
2
|
+
/**
|
|
3
|
+
* What a run's GitHub fixture repository did.
|
|
4
|
+
*
|
|
5
|
+
* - `omitted`: the run's optional GitHub fixture repository resource found its token variable `tokenEnv` unset, so
|
|
6
|
+
* the run goes on without `repo`.
|
|
7
|
+
* - `opened`: the run's token reads GitHub fixture repository `repo`, and the command may write branches under
|
|
8
|
+
* `runPrefix`.
|
|
9
|
+
* - `cleaned`: once the command stopped, the run deleted `deleted` branches under `runPrefix`; `failures` names each
|
|
10
|
+
* branch it couldn't delete, or, with `branch` null, a list it couldn't read.
|
|
11
|
+
*/
|
|
12
|
+
export type GitHubFixtureRepoEvent = {
|
|
13
|
+
readonly kind: "omitted";
|
|
14
|
+
readonly repo: string;
|
|
15
|
+
readonly tokenEnv: string;
|
|
16
|
+
} | {
|
|
17
|
+
readonly kind: "opened";
|
|
18
|
+
readonly repo: string;
|
|
19
|
+
readonly runPrefix: string;
|
|
20
|
+
} | {
|
|
21
|
+
readonly kind: "cleaned";
|
|
22
|
+
readonly repo: string;
|
|
23
|
+
readonly runPrefix: string;
|
|
24
|
+
readonly deleted: number;
|
|
25
|
+
readonly failures: readonly FixtureRepoCleanupFailure[];
|
|
26
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { GitHubFixtureRepoFailure, GitHubFixtureRepoGateway } from "./gateways.ts";
|
|
2
|
+
/** What every run prefix starts with. */
|
|
3
|
+
export declare const FIXTURE_RUN_PREFIX_ROOT = "run/";
|
|
4
|
+
/** A run prefix: `run/`, a UTC timestamp to the second, a dash and a suffix of lowercase letters and digits. */
|
|
5
|
+
export declare const FIXTURE_RUN_PREFIX_PATTERN: RegExp;
|
|
6
|
+
/**
|
|
7
|
+
* The run prefix for a run started at `startedAt`: `run/20261101T211309Z-<suffix>`. The timestamp lets a sweep find
|
|
8
|
+
* the branches a run killed before its cleanup left behind.
|
|
9
|
+
*/
|
|
10
|
+
export declare function fixtureRunPrefix(startedAt: Date, suffix: string): string;
|
|
11
|
+
/** The fixture repository a run asks for: `owner/name` as the config file gives it, and the token for it. */
|
|
12
|
+
export interface FixtureRepoRequest {
|
|
13
|
+
readonly repo: string;
|
|
14
|
+
readonly token: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A GitHub fixture repository a run holds: the repository as configured, its canonical name and clone URL, the token,
|
|
18
|
+
* and the run prefix, every branch under which the run deletes once its command has stopped.
|
|
19
|
+
*/
|
|
20
|
+
export interface HeldFixtureRepo {
|
|
21
|
+
readonly repo: string;
|
|
22
|
+
readonly nameWithOwner: string;
|
|
23
|
+
readonly url: string;
|
|
24
|
+
readonly token: string;
|
|
25
|
+
readonly runPrefix: string;
|
|
26
|
+
}
|
|
27
|
+
/** How opening the fixture repository went: held, or the token couldn't read it. */
|
|
28
|
+
export type OpenFixtureRepoOutcome = {
|
|
29
|
+
readonly kind: "opened";
|
|
30
|
+
readonly held: HeldFixtureRepo;
|
|
31
|
+
} | {
|
|
32
|
+
readonly kind: "unavailable";
|
|
33
|
+
readonly repo: string;
|
|
34
|
+
readonly failure: GitHubFixtureRepoFailure;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Checks, with one `GET repos/{repo}`, that `request.token` can read `request.repo`, and picks the run prefix from
|
|
38
|
+
* `startedAt` and `suffix`. It writes nothing.
|
|
39
|
+
*/
|
|
40
|
+
export declare function openFixtureRepo(context: {
|
|
41
|
+
readonly githubFixtureRepos: GitHubFixtureRepoGateway;
|
|
42
|
+
}, request: FixtureRepoRequest, prefix: {
|
|
43
|
+
readonly startedAt: Date;
|
|
44
|
+
readonly suffix: string;
|
|
45
|
+
}): Promise<OpenFixtureRepoOutcome>;
|
|
46
|
+
/**
|
|
47
|
+
* A branch the cleanup couldn't delete, or, with `branch` null, the list of branches under the run prefix it couldn't
|
|
48
|
+
* read.
|
|
49
|
+
*/
|
|
50
|
+
export interface FixtureRepoCleanupFailure {
|
|
51
|
+
readonly branch: string | null;
|
|
52
|
+
readonly message: string;
|
|
53
|
+
}
|
|
54
|
+
/** What cleaning up a held fixture repository did: the branches it deleted, and what it couldn't do. */
|
|
55
|
+
export interface FixtureRepoCleanup {
|
|
56
|
+
readonly repo: string;
|
|
57
|
+
readonly runPrefix: string;
|
|
58
|
+
readonly deleted: readonly string[];
|
|
59
|
+
readonly failures: readonly FixtureRepoCleanupFailure[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Deletes every branch under `held`'s run prefix (`<runPrefix>/…`), one at a time. A failed delete is noted and the
|
|
63
|
+
* rest go on; a failed list deletes nothing.
|
|
64
|
+
*/
|
|
65
|
+
export declare function cleanupFixtureRepo(context: {
|
|
66
|
+
readonly githubFixtureRepos: GitHubFixtureRepoGateway;
|
|
67
|
+
}, held: HeldFixtureRepo): Promise<FixtureRepoCleanup>;
|
|
68
|
+
/** A failure as a person reads it: `HTTP 403: Resource not accessible`, or what the connection said. */
|
|
69
|
+
export declare function failureText(failure: GitHubFixtureRepoFailure): string;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// What a run does with its GitHub fixture repository: check the token can read it and pick the run's prefix before the
|
|
2
|
+
// command starts, and delete every branch under that prefix once the command has stopped.
|
|
3
|
+
/** What every run prefix starts with. */
|
|
4
|
+
export const FIXTURE_RUN_PREFIX_ROOT = "run/";
|
|
5
|
+
/** A run prefix: `run/`, a UTC timestamp to the second, a dash and a suffix of lowercase letters and digits. */
|
|
6
|
+
export const FIXTURE_RUN_PREFIX_PATTERN = /^run\/\d{8}T\d{6}Z-[0-9a-z]+$/;
|
|
7
|
+
/**
|
|
8
|
+
* The run prefix for a run started at `startedAt`: `run/20261101T211309Z-<suffix>`. The timestamp lets a sweep find
|
|
9
|
+
* the branches a run killed before its cleanup left behind.
|
|
10
|
+
*/
|
|
11
|
+
export function fixtureRunPrefix(startedAt, suffix) {
|
|
12
|
+
const stamp = startedAt
|
|
13
|
+
.toISOString()
|
|
14
|
+
.replace(/[-:]/g, "")
|
|
15
|
+
.replace(/\.\d+Z$/, "Z");
|
|
16
|
+
return `${FIXTURE_RUN_PREFIX_ROOT}${stamp}-${suffix}`;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Checks, with one `GET repos/{repo}`, that `request.token` can read `request.repo`, and picks the run prefix from
|
|
20
|
+
* `startedAt` and `suffix`. It writes nothing.
|
|
21
|
+
*/
|
|
22
|
+
export async function openFixtureRepo(context, request, prefix) {
|
|
23
|
+
const read = await context.githubFixtureRepos.readRepo(request);
|
|
24
|
+
if (!read.ok)
|
|
25
|
+
return { kind: "unavailable", repo: request.repo, failure: read.failure };
|
|
26
|
+
return {
|
|
27
|
+
kind: "opened",
|
|
28
|
+
held: {
|
|
29
|
+
repo: request.repo,
|
|
30
|
+
nameWithOwner: read.repo.nameWithOwner,
|
|
31
|
+
url: read.repo.cloneUrl,
|
|
32
|
+
token: request.token,
|
|
33
|
+
runPrefix: fixtureRunPrefix(prefix.startedAt, prefix.suffix),
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Deletes every branch under `held`'s run prefix (`<runPrefix>/…`), one at a time. A failed delete is noted and the
|
|
39
|
+
* rest go on; a failed list deletes nothing.
|
|
40
|
+
*/
|
|
41
|
+
export async function cleanupFixtureRepo(context, held) {
|
|
42
|
+
const { repo, token, runPrefix } = held;
|
|
43
|
+
const listed = await context.githubFixtureRepos.listBranches({ repo, token, prefix: `${runPrefix}/` });
|
|
44
|
+
if (!listed.ok)
|
|
45
|
+
return { repo, runPrefix, deleted: [], failures: [{ branch: null, message: failureText(listed.failure) }] };
|
|
46
|
+
const deleted = [];
|
|
47
|
+
const failures = [];
|
|
48
|
+
for (const branch of listed.branches) {
|
|
49
|
+
const removed = await context.githubFixtureRepos.deleteBranch({ repo, token, branch });
|
|
50
|
+
if (removed.ok)
|
|
51
|
+
deleted.push(branch);
|
|
52
|
+
else
|
|
53
|
+
failures.push({ branch, message: failureText(removed.failure) });
|
|
54
|
+
}
|
|
55
|
+
return { repo, runPrefix, deleted, failures };
|
|
56
|
+
}
|
|
57
|
+
/** A failure as a person reads it: `HTTP 403: Resource not accessible`, or what the connection said. */
|
|
58
|
+
export function failureText(failure) {
|
|
59
|
+
return failure.status === null ? failure.message : `HTTP ${failure.status}: ${failure.message}`;
|
|
60
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Why a GitHub REST call failed: the HTTP status when GitHub answered (null when it never did), and what GitHub or the
|
|
3
|
+
* connection said. The message never holds the token.
|
|
4
|
+
*/
|
|
5
|
+
export interface GitHubFixtureRepoFailure {
|
|
6
|
+
readonly status: number | null;
|
|
7
|
+
readonly message: string;
|
|
8
|
+
}
|
|
9
|
+
/** A GitHub fixture repository as GitHub names it: `owner/name` and the HTTPS URL to clone it from. */
|
|
10
|
+
export interface GitHubFixtureRepoFacts {
|
|
11
|
+
readonly nameWithOwner: string;
|
|
12
|
+
readonly cloneUrl: string;
|
|
13
|
+
}
|
|
14
|
+
/** Reading a repository: what GitHub says it is, or why the token couldn't read it. */
|
|
15
|
+
export type ReadFixtureRepoResult = {
|
|
16
|
+
readonly ok: true;
|
|
17
|
+
readonly repo: GitHubFixtureRepoFacts;
|
|
18
|
+
} | {
|
|
19
|
+
readonly ok: false;
|
|
20
|
+
readonly failure: GitHubFixtureRepoFailure;
|
|
21
|
+
};
|
|
22
|
+
/** Listing branches: their names, or why the list failed. */
|
|
23
|
+
export type ListFixtureBranchesResult = {
|
|
24
|
+
readonly ok: true;
|
|
25
|
+
readonly branches: readonly string[];
|
|
26
|
+
} | {
|
|
27
|
+
readonly ok: false;
|
|
28
|
+
readonly failure: GitHubFixtureRepoFailure;
|
|
29
|
+
};
|
|
30
|
+
/** Deleting a branch: done, or why it failed. */
|
|
31
|
+
export type DeleteFixtureBranchResult = {
|
|
32
|
+
readonly ok: true;
|
|
33
|
+
} | {
|
|
34
|
+
readonly ok: false;
|
|
35
|
+
readonly failure: GitHubFixtureRepoFailure;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* The GitHub REST calls the GitHub fixture repository resource makes, each with the run's token for `repo`
|
|
39
|
+
* (`owner/name`). No method rejects.
|
|
40
|
+
*/
|
|
41
|
+
export interface GitHubFixtureRepoGateway {
|
|
42
|
+
/** `GET repos/{repo}`: whether the token can read `repo`, and its canonical name and clone URL. */
|
|
43
|
+
readRepo(request: {
|
|
44
|
+
readonly repo: string;
|
|
45
|
+
readonly token: string;
|
|
46
|
+
}): Promise<ReadFixtureRepoResult>;
|
|
47
|
+
/**
|
|
48
|
+
* `GET repos/{repo}/git/matching-refs/heads/{prefix}`: every branch whose name starts with `prefix`, such as
|
|
49
|
+
* `run/20261101T211309Z-1a2b3c4d/`.
|
|
50
|
+
*/
|
|
51
|
+
listBranches(request: {
|
|
52
|
+
readonly repo: string;
|
|
53
|
+
readonly token: string;
|
|
54
|
+
readonly prefix: string;
|
|
55
|
+
}): Promise<ListFixtureBranchesResult>;
|
|
56
|
+
/** `DELETE repos/{repo}/git/refs/heads/{branch}`. */
|
|
57
|
+
deleteBranch(request: {
|
|
58
|
+
readonly repo: string;
|
|
59
|
+
readonly token: string;
|
|
60
|
+
readonly branch: string;
|
|
61
|
+
}): Promise<DeleteFixtureBranchResult>;
|
|
62
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { type FixtureRepoCleanupFacts, fixtureRepoCleanupFailureText, githubFixtureRepoCleanupReport, } from "./cleanup.ts";
|
|
2
|
+
export { fixtureRepoCanceledLines, githubFixtureRepoCommand, githubFixtureRepoRefusalErrors, githubFixtureRepoSettleErrors, } from "./command.ts";
|
|
3
|
+
export { githubFixtureRepoConfig, type GitHubFixtureRepoSettings } from "./config.ts";
|
|
4
|
+
export type { GitHubFixtureRepoEvent } from "./events.ts";
|
|
5
|
+
export { cleanupFixtureRepo, failureText, FIXTURE_RUN_PREFIX_PATTERN, FIXTURE_RUN_PREFIX_ROOT, type FixtureRepoCleanup, type FixtureRepoCleanupFailure, type FixtureRepoRequest, fixtureRunPrefix, type HeldFixtureRepo, type OpenFixtureRepoOutcome, openFixtureRepo, } from "./fixture-repo.ts";
|
|
6
|
+
export type { DeleteFixtureBranchResult, GitHubFixtureRepoFacts, GitHubFixtureRepoFailure, GitHubFixtureRepoGateway, ListFixtureBranchesResult, ReadFixtureRepoResult, } from "./gateways.ts";
|
|
7
|
+
export { liveGitHubFixtureRepoGateway, type LiveGitHubFixtureRepoOptions } from "./live/fixture-repo-gateway.ts";
|
|
8
|
+
export { GITHUB_API_ORIGIN, liveGitHubFixtureRepoGateways } from "./live/gateways.ts";
|
|
9
|
+
export { type GitHubFixtureRepoKind, type GitHubFixtureRepoRequest, githubFixtureRepoRunProvider } from "./provider.ts";
|
|
10
|
+
export { fixtureRepoNotices, githubFixtureRepoPresentation } from "./presentation.ts";
|
|
11
|
+
export { githubFixtureRepoProvider } from "./resource-provider.ts";
|
|
12
|
+
export { githubFixtureRepo, type GitHubFixtureRepoOptions, type GitHubFixtureRepoResource } from "./resource.ts";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// The GitHub fixture repository resource's folder: the repository the run opens before its command and cleans up after
|
|
2
|
+
// it, its kind and run half, its resource config, its command half with its settle, its cleanup report, its gateway
|
|
3
|
+
// and live gateways, and the `@cnc-tools/storm/github` config helper (`resource.ts`). Its provider value
|
|
4
|
+
// (`resource-provider.ts`) carries them to the registry (`src/resources.ts`), the one place outside this folder that
|
|
5
|
+
// takes it; `src/config-file/` imports its types through this file. The rest of what it exports is for tests.
|
|
6
|
+
export { fixtureRepoCleanupFailureText, githubFixtureRepoCleanupReport, } from "./cleanup.js";
|
|
7
|
+
export { fixtureRepoCanceledLines, githubFixtureRepoCommand, githubFixtureRepoRefusalErrors, githubFixtureRepoSettleErrors, } from "./command.js";
|
|
8
|
+
export { githubFixtureRepoConfig } from "./config.js";
|
|
9
|
+
export { cleanupFixtureRepo, failureText, FIXTURE_RUN_PREFIX_PATTERN, FIXTURE_RUN_PREFIX_ROOT, fixtureRunPrefix, openFixtureRepo, } from "./fixture-repo.js";
|
|
10
|
+
export { liveGitHubFixtureRepoGateway } from "./live/fixture-repo-gateway.js";
|
|
11
|
+
export { GITHUB_API_ORIGIN, liveGitHubFixtureRepoGateways } from "./live/gateways.js";
|
|
12
|
+
export { githubFixtureRepoRunProvider } from "./provider.js";
|
|
13
|
+
export { fixtureRepoNotices, githubFixtureRepoPresentation } from "./presentation.js";
|
|
14
|
+
export { githubFixtureRepoProvider } from "./resource-provider.js";
|
|
15
|
+
export { githubFixtureRepo } from "./resource.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { GitHubFixtureRepoGateway } from "../gateways.ts";
|
|
2
|
+
export interface LiveGitHubFixtureRepoOptions {
|
|
3
|
+
/** GitHub's REST API origin, `https://api.github.com`. */
|
|
4
|
+
readonly origin: string;
|
|
5
|
+
/** How long one call, its body included, may take. */
|
|
6
|
+
readonly timeoutMs: number;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* GitHub's REST API over `fetch`, with the token as a bearer token, a timeout on each call and no other dependency. A
|
|
10
|
+
* failure says what GitHub said (its `message`) or what the connection did, with the token replaced by `<token>`.
|
|
11
|
+
*/
|
|
12
|
+
export declare function liveGitHubFixtureRepoGateway(options: LiveGitHubFixtureRepoOptions): GitHubFixtureRepoGateway;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
const repoSchema = z.object({ full_name: z.string().min(1), clone_url: z.string().min(1) });
|
|
3
|
+
const refsSchema = z.array(z.object({ ref: z.string() }));
|
|
4
|
+
const errorSchema = z.object({ message: z.string() });
|
|
5
|
+
/**
|
|
6
|
+
* GitHub's REST API over `fetch`, with the token as a bearer token, a timeout on each call and no other dependency. A
|
|
7
|
+
* failure says what GitHub said (its `message`) or what the connection did, with the token replaced by `<token>`.
|
|
8
|
+
*/
|
|
9
|
+
export function liveGitHubFixtureRepoGateway(options) {
|
|
10
|
+
return {
|
|
11
|
+
readRepo: async ({ repo, token }) => {
|
|
12
|
+
const answered = await call(options, token, "GET", `repos/${repoPath(repo)}`);
|
|
13
|
+
if (!answered.ok)
|
|
14
|
+
return answered;
|
|
15
|
+
const parsed = repoSchema.safeParse(answered.body);
|
|
16
|
+
if (!parsed.success)
|
|
17
|
+
return { ok: false, failure: { status: answered.status, message: "unexpected answer" } };
|
|
18
|
+
return { ok: true, repo: { nameWithOwner: parsed.data.full_name, cloneUrl: parsed.data.clone_url } };
|
|
19
|
+
},
|
|
20
|
+
listBranches: async ({ repo, token, prefix }) => {
|
|
21
|
+
// One request, no pagination. GitHub's REST docs for "List matching references"
|
|
22
|
+
// (GET /repos/{owner}/{repo}/git/matching-refs/{ref}, fetched 2026-11-02) list only `owner`, `repo` and `ref`
|
|
23
|
+
// as parameters: no `per_page` or `page`. A live call on 2026-11-02
|
|
24
|
+
// (`gh api -i repos/cli/cli/git/matching-refs/tags/v2`) returned all 161 matching refs with no `Link` header,
|
|
25
|
+
// and `?per_page=5` changed neither.
|
|
26
|
+
const answered = await call(options, token, "GET", `repos/${repoPath(repo)}/git/matching-refs/heads/${refPath(prefix)}`);
|
|
27
|
+
if (!answered.ok)
|
|
28
|
+
return answered;
|
|
29
|
+
const parsed = refsSchema.safeParse(answered.body);
|
|
30
|
+
if (!parsed.success)
|
|
31
|
+
return { ok: false, failure: { status: answered.status, message: "unexpected answer" } };
|
|
32
|
+
const branches = parsed.data
|
|
33
|
+
.map(({ ref }) => ref)
|
|
34
|
+
.filter((ref) => ref.startsWith("refs/heads/"))
|
|
35
|
+
.map((ref) => ref.slice("refs/heads/".length))
|
|
36
|
+
.filter((branch) => branch.startsWith(prefix));
|
|
37
|
+
return { ok: true, branches };
|
|
38
|
+
},
|
|
39
|
+
deleteBranch: async ({ repo, token, branch }) => {
|
|
40
|
+
const answered = await call(options, token, "DELETE", `repos/${repoPath(repo)}/git/refs/heads/${refPath(branch)}`);
|
|
41
|
+
return answered.ok ? { ok: true } : answered;
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/** `owner/name` with each part encoded. */
|
|
46
|
+
function repoPath(repo) {
|
|
47
|
+
return repo.split("/").map(encodeURIComponent).join("/");
|
|
48
|
+
}
|
|
49
|
+
/** A branch name or prefix with each `/`-separated part encoded; a trailing `/` stays. */
|
|
50
|
+
function refPath(ref) {
|
|
51
|
+
return ref.split("/").map(encodeURIComponent).join("/");
|
|
52
|
+
}
|
|
53
|
+
/** One REST call: a 2xx answer's JSON body (null when empty), or the failure. */
|
|
54
|
+
async function call(options, token, method, path) {
|
|
55
|
+
const signal = AbortSignal.timeout(options.timeoutMs);
|
|
56
|
+
const hide = (text) => (token === "" ? text : text.replaceAll(token, "<token>"));
|
|
57
|
+
try {
|
|
58
|
+
const response = await fetch(`${options.origin}/${path}`, {
|
|
59
|
+
method,
|
|
60
|
+
headers: {
|
|
61
|
+
accept: "application/vnd.github+json",
|
|
62
|
+
authorization: `Bearer ${token}`,
|
|
63
|
+
"x-github-api-version": "2022-11-28",
|
|
64
|
+
"user-agent": "storm",
|
|
65
|
+
},
|
|
66
|
+
redirect: "manual",
|
|
67
|
+
signal,
|
|
68
|
+
});
|
|
69
|
+
const text = await response.text();
|
|
70
|
+
if (response.status < 200 || response.status >= 300) {
|
|
71
|
+
let message = `HTTP ${response.status}`;
|
|
72
|
+
try {
|
|
73
|
+
const parsed = errorSchema.safeParse(JSON.parse(text));
|
|
74
|
+
if (parsed.success)
|
|
75
|
+
message = parsed.data.message;
|
|
76
|
+
}
|
|
77
|
+
catch {
|
|
78
|
+
// Not JSON: the status says enough.
|
|
79
|
+
}
|
|
80
|
+
return { ok: false, failure: { status: response.status, message: hide(message) } };
|
|
81
|
+
}
|
|
82
|
+
return { ok: true, status: response.status, body: text === "" ? null : JSON.parse(text) };
|
|
83
|
+
}
|
|
84
|
+
catch (error) {
|
|
85
|
+
const message = signal.aborted
|
|
86
|
+
? `no answer within ${options.timeoutMs / 1000}s`
|
|
87
|
+
: error instanceof Error
|
|
88
|
+
? error.message
|
|
89
|
+
: String(error);
|
|
90
|
+
return { ok: false, failure: { status: null, message: hide(message) } };
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ResourceHost } from "../../../core/index.ts";
|
|
2
|
+
import type { GitHubFixtureRepoKind } from "../provider.ts";
|
|
3
|
+
/** GitHub's REST API origin, which the GitHub fixture repository resource calls. */
|
|
4
|
+
export declare const GITHUB_API_ORIGIN = "https://api.github.com";
|
|
5
|
+
/** The GitHub fixture repository's gateways, live; they need nothing from the host. */
|
|
6
|
+
export declare function liveGitHubFixtureRepoGateways(_host: ResourceHost): GitHubFixtureRepoKind["gateways"];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// The GitHub fixture repository resource's live gateways: GitHub's REST API at `api.github.com`, with a 10-second
|
|
2
|
+
// timeout per call, and 8 random hex digits for a run prefix's suffix.
|
|
3
|
+
import { randomBytes } from "node:crypto";
|
|
4
|
+
import { liveGitHubFixtureRepoGateway } from "./fixture-repo-gateway.js";
|
|
5
|
+
/** GitHub's REST API origin, which the GitHub fixture repository resource calls. */
|
|
6
|
+
export const GITHUB_API_ORIGIN = "https://api.github.com";
|
|
7
|
+
/** The GitHub fixture repository's gateways, live; they need nothing from the host. */
|
|
8
|
+
export function liveGitHubFixtureRepoGateways(_host) {
|
|
9
|
+
return {
|
|
10
|
+
githubFixtureRepos: liveGitHubFixtureRepoGateway({ origin: GITHUB_API_ORIGIN, timeoutMs: 10_000 }),
|
|
11
|
+
randomSuffix: () => randomBytes(4).toString("hex"),
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ResourceNotice, ResourcePresentation } from "../../core/index.ts";
|
|
2
|
+
import type { GitHubFixtureRepoEvent } from "./events.ts";
|
|
3
|
+
import type { GitHubFixtureRepoKind } from "./provider.ts";
|
|
4
|
+
/**
|
|
5
|
+
* What a run says of its GitHub fixture repository: when it is omitted or opened, and once the run cleaned it up,
|
|
6
|
+
* what it deleted, then each thing it couldn't.
|
|
7
|
+
*/
|
|
8
|
+
export declare function fixtureRepoNotices(event: GitHubFixtureRepoEvent): ResourceNotice[];
|
|
9
|
+
/**
|
|
10
|
+
* How the GitHub fixture repository shows: the same lines in plain progress and in the live view, and releasing it as
|
|
11
|
+
* deleting the branches under the run prefix.
|
|
12
|
+
*/
|
|
13
|
+
export declare const githubFixtureRepoPresentation: ResourcePresentation<GitHubFixtureRepoKind>;
|