@cnc-tools/storm 0.9.1 → 0.11.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/storm.js +11 -2
- package/dist/application.d.ts +5 -5
- package/dist/application.js +11 -9
- package/dist/bin/storm.js +32 -20
- package/dist/build-info.js +1 -1
- package/dist/chunks/chunk-3ZZVZPMG.js +10 -0
- package/dist/chunks/{chunk-WV6WQFC6.js → chunk-4EU4AH7E.js} +150 -26
- package/dist/chunks/chunk-4PRAB24Y.js +4400 -0
- package/dist/chunks/chunk-AMTYHUYB.js +257 -0
- package/dist/chunks/chunk-ETCZ6WP7.js +431 -0
- package/dist/chunks/chunk-FVMQKYTT.js +10 -0
- package/dist/chunks/chunk-GRMD7G4J.js +1267 -0
- package/dist/chunks/chunk-ICB4BZJX.js +22 -0
- package/dist/chunks/chunk-KR7WIYLG.js +2184 -0
- package/dist/chunks/chunk-L4ZPMSKQ.js +808 -0
- package/dist/chunks/chunk-NPPJ57W7.js +569 -0
- package/dist/chunks/chunk-O4BUT7BE.js +3361 -0
- package/dist/chunks/chunk-OJOKQRM6.js +1457 -0
- package/dist/chunks/chunk-SLNKW4ZM.js +40 -0
- package/dist/chunks/chunk-TRFEAYNC.js +1952 -0
- package/dist/chunks/chunk-VZZTHCBW.js +93 -0
- package/dist/chunks/chunk-WNIQA5J6.js +19 -0
- package/dist/chunks/chunk-WSIF7SR6.js +10 -0
- package/dist/chunks/{live-app-X3PW2W42.js → live-app-LOGYUBKB.js} +73 -20
- package/dist/command-tree.d.ts +3 -0
- package/dist/command-tree.js +3 -0
- package/dist/commands/dashboard.d.ts +1 -1
- package/dist/commands/dashboard.js +1 -1
- package/dist/commands/exec/cleanup.d.ts +28 -44
- package/dist/commands/exec/cleanup.js +25 -55
- package/dist/commands/exec/command.d.ts +73 -545
- package/dist/commands/exec/command.js +65 -25
- package/dist/commands/exec/job-summary.d.ts +2 -2
- package/dist/commands/exec/job-summary.js +3 -3
- package/dist/commands/exec/live-view.d.ts +9 -9
- package/dist/commands/exec/live-view.js +49 -42
- package/dist/commands/exec/metadata.d.ts +0 -65
- package/dist/commands/exec/metadata.js +2 -61
- package/dist/commands/exec/mint-failed.d.ts +1 -1
- package/dist/commands/exec/mint-failed.js +8 -8
- package/dist/commands/exec/outcomes.d.ts +63 -468
- package/dist/commands/exec/outcomes.js +47 -75
- package/dist/commands/exec/plan-run.d.ts +148 -0
- package/dist/commands/exec/plan-run.js +121 -0
- package/dist/commands/exec/progress.d.ts +26 -16
- package/dist/commands/exec/progress.js +63 -42
- package/dist/commands/exec/redaction.d.ts +3 -3
- package/dist/commands/exec/redaction.js +4 -4
- package/dist/commands/exec/resource-flags.d.ts +50 -0
- package/dist/commands/exec/resource-flags.js +125 -0
- package/dist/commands/exec/resource-refusals.d.ts +64 -0
- package/dist/commands/exec/resource-refusals.js +58 -0
- package/dist/commands/exec/run-command.d.ts +87 -167
- package/dist/commands/exec/run-command.js +296 -418
- package/dist/commands/exec/run-metadata.d.ts +20 -43
- package/dist/commands/exec/run-metadata.js +18 -37
- package/dist/commands/exec/test-plan.d.ts +11 -0
- package/dist/commands/exec/test-plan.js +39 -0
- package/dist/commands/exec/tests-summary.d.ts +5 -5
- package/dist/commands/exec/tests-summary.js +2 -2
- package/dist/commands/exec/text.d.ts +8 -2
- package/dist/commands/exec/text.js +8 -0
- package/dist/commands/exec/view.d.ts +5 -7
- package/dist/commands/exec/view.js +22 -14
- package/dist/commands/exec/waterfall.d.ts +4 -9
- package/dist/commands/exec/waterfall.js +22 -26
- package/dist/commands/exec/worker-chart.d.ts +1 -1
- package/dist/commands/ext/metadata.d.ts +4 -0
- package/dist/commands/ext/metadata.js +8 -0
- package/dist/commands/runs/facts.d.ts +11 -6
- package/dist/commands/runs/facts.js +27 -15
- package/dist/commands/runs/list/command.d.ts +15 -8
- package/dist/commands/runs/list/command.js +39 -32
- package/dist/commands/runs/list/metadata.d.ts +16 -14
- package/dist/commands/runs/list/metadata.js +17 -15
- package/dist/commands/runs/list/outcomes.d.ts +6 -2
- package/dist/commands/runs/logs/command.d.ts +3 -4
- package/dist/commands/runs/logs/command.js +46 -41
- package/dist/commands/runs/logs/metadata.d.ts +17 -15
- package/dist/commands/runs/logs/metadata.js +20 -18
- package/dist/commands/runs/past-run.d.ts +3 -33
- package/dist/commands/runs/past-run.js +3 -52
- package/dist/commands/runs/show/command.d.ts +57 -42
- package/dist/commands/runs/show/command.js +93 -82
- package/dist/commands/runs/show/metadata.d.ts +20 -18
- package/dist/commands/runs/show/metadata.js +20 -18
- package/dist/commands/runs/show/outcomes.d.ts +27 -19
- package/dist/commands/runs/show/outcomes.js +8 -6
- package/dist/commands/vitest/command.d.ts +95 -560
- package/dist/commands/vitest/command.js +84 -100
- package/dist/commands/vitest/metadata.d.ts +0 -65
- package/dist/commands/vitest/metadata.js +2 -41
- package/dist/commands/vitest/outcomes.d.ts +44 -274
- package/dist/commands/vitest/outcomes.js +7 -14
- package/dist/config/credential-resolver.d.ts +134 -0
- package/dist/config/credential-resolver.js +70 -0
- package/dist/{credential/settle.d.ts → config/credential-settle.d.ts} +1 -2
- package/dist/config/errors.d.ts +1 -1
- package/dist/config/errors.js +5 -5
- package/dist/config/index.d.ts +7 -6
- package/dist/config/index.js +13 -9
- package/dist/config/load.d.ts +16 -13
- package/dist/config/load.js +55 -40
- package/dist/config/recipe-run.d.ts +26 -0
- package/dist/config/recipe-run.js +27 -0
- package/dist/config/resolve.d.ts +103 -15
- package/dist/config/resolve.js +137 -47
- package/dist/config/resolver.d.ts +40 -0
- package/dist/config/resolver.js +31 -0
- package/dist/config/schema.d.ts +13 -17
- package/dist/config/schema.js +14 -35
- package/dist/config/settings-file.d.ts +28 -16
- package/dist/config/settings-file.js +39 -24
- package/dist/config/typed-options.d.ts +21 -0
- package/dist/config/typed-options.js +28 -0
- package/dist/config-file/define.d.ts +33 -31
- package/dist/config-file/define.js +14 -4
- package/dist/config-file/toolchain.d.ts +1 -1
- package/dist/context.d.ts +60 -29
- package/dist/context.js +32 -13
- package/dist/core/before-run.d.ts +38 -0
- package/dist/core/before-run.js +44 -0
- package/dist/core/definition-lookup.d.ts +22 -0
- package/dist/core/definition-lookup.js +34 -0
- package/dist/core/events.d.ts +59 -64
- package/dist/core/gateways.d.ts +23 -164
- package/dist/core/index.d.ts +14 -15
- package/dist/core/index.js +13 -11
- package/dist/core/launcher-supplies.d.ts +11 -0
- package/dist/core/launcher-supplies.js +28 -0
- package/dist/core/live/terminal-command-gateway.d.ts +8 -0
- package/dist/core/live/terminal-command-gateway.js +49 -0
- package/dist/core/payload.d.ts +13 -14
- package/dist/core/payload.js +9 -8
- package/dist/core/presentations.d.ts +38 -37
- package/dist/core/presentations.js +48 -56
- package/dist/core/reports.d.ts +5 -0
- package/dist/core/reports.js +13 -0
- package/dist/core/resource-registry.d.ts +38 -0
- package/dist/core/resource-registry.js +30 -0
- package/dist/core/resource-reports.d.ts +69 -0
- package/dist/core/resource-reports.js +67 -0
- package/dist/core/resource.d.ts +135 -243
- package/dist/core/resource.js +7 -5
- package/dist/core/resources-of.d.ts +16 -0
- package/dist/core/resources-of.js +8 -0
- package/dist/core/resources.d.ts +97 -84
- package/dist/core/resources.js +166 -165
- package/dist/core/run-state.d.ts +30 -42
- package/dist/core/run-state.js +56 -60
- package/dist/core/run.d.ts +83 -90
- package/dist/core/run.js +109 -155
- package/dist/core/state-directory.js +4 -3
- package/dist/core/timeline.d.ts +42 -24
- package/dist/core/timeline.js +46 -27
- package/dist/core/timing.d.ts +3 -3
- package/dist/core/timing.js +1 -1
- package/dist/credential/events.d.ts +20 -0
- package/dist/credential/events.js +4 -0
- package/dist/credential/gateways.d.ts +1 -80
- package/dist/credential/index.d.ts +4 -5
- package/dist/credential/index.js +8 -5
- package/dist/credential/live/github-actions-token-response.js +1 -1
- package/dist/credential/live/vercel-cli-gateway.d.ts +2 -1
- package/dist/credential/live/vercel-cli-gateway.js +1 -1
- package/dist/credential/live/vercel-output.d.ts +1 -1
- package/dist/credential/source.d.ts +44 -75
- package/dist/credential/source.js +33 -28
- package/dist/credential/target.d.ts +1 -1
- package/dist/extension-commands.d.ts +20 -0
- package/dist/extension-commands.js +27 -0
- package/dist/extensions/github/definition.d.ts +26 -0
- package/dist/extensions/github/definition.js +29 -0
- package/dist/extensions/github/extension.d.ts +18 -0
- package/dist/extensions/github/extension.js +6 -0
- package/dist/{resources → extensions}/github/fixture-repo.d.ts +11 -8
- package/dist/{resources → extensions}/github/fixture-repo.js +8 -4
- package/dist/extensions/github/index.d.ts +13 -0
- package/dist/extensions/github/index.js +17 -0
- package/dist/extensions/github/lifecycle.d.ts +30 -0
- package/dist/extensions/github/lifecycle.js +69 -0
- package/dist/extensions/github/live/world.d.ts +6 -0
- package/dist/extensions/github/live/world.js +16 -0
- package/dist/extensions/github/options.d.ts +36 -0
- package/dist/extensions/github/options.js +36 -0
- package/dist/extensions/github/refusals.d.ts +32 -0
- package/dist/extensions/github/refusals.js +43 -0
- package/dist/extensions/github/release.d.ts +17 -0
- package/dist/extensions/github/release.js +34 -0
- package/dist/extensions/github/resource.d.ts +36 -0
- package/dist/extensions/github/resource.js +21 -0
- package/dist/extensions/github/run/payload.d.ts +27 -0
- package/dist/extensions/github/run/payload.js +42 -0
- package/dist/extensions/github/world.d.ts +15 -0
- package/dist/extensions/github/world.js +3 -0
- package/dist/extensions/story/command-tree.d.ts +6 -0
- package/dist/extensions/story/command-tree.js +21 -0
- package/dist/extensions/story/commands/app.d.ts +23 -0
- package/dist/extensions/story/commands/app.js +5 -0
- package/dist/extensions/story/commands/run/command.d.ts +211 -0
- package/dist/extensions/story/commands/run/command.js +259 -0
- package/dist/extensions/story/commands/run/metadata.d.ts +4 -0
- package/dist/extensions/story/commands/run/metadata.js +8 -0
- package/dist/extensions/story/commands/run/outcomes.d.ts +101 -0
- package/dist/extensions/story/commands/run/outcomes.js +73 -0
- package/dist/extensions/story/commands/tree.d.ts +2 -0
- package/dist/extensions/story/commands/tree.js +6 -0
- package/dist/extensions/story/extension.d.ts +2 -0
- package/dist/extensions/story/extension.js +8 -0
- package/dist/extensions/testserver/canceled.d.ts +7 -0
- package/dist/extensions/testserver/canceled.js +27 -0
- package/dist/extensions/testserver/command-tree.d.ts +6 -0
- package/dist/extensions/testserver/command-tree.js +20 -0
- package/dist/extensions/testserver/commands/app.d.ts +22 -0
- package/dist/extensions/testserver/commands/app.js +5 -0
- package/dist/{resources/testserver/commands → extensions/testserver/commands/pool}/create/command.d.ts +277 -237
- package/dist/{resources/testserver/commands → extensions/testserver/commands/pool}/create/command.js +112 -141
- package/dist/extensions/testserver/commands/pool/create/metadata.d.ts +33 -0
- package/dist/extensions/testserver/commands/pool/create/metadata.js +55 -0
- package/dist/{resources/testserver/commands → extensions/testserver/commands/pool}/create/outcomes.d.ts +132 -112
- package/dist/{resources/testserver/commands → extensions/testserver/commands/pool}/create/outcomes.js +6 -24
- package/dist/{resources/testserver/commands → extensions/testserver/commands/pool}/list/command.d.ts +3 -4
- package/dist/{resources/testserver/commands → extensions/testserver/commands/pool}/list/command.js +34 -28
- package/dist/extensions/testserver/commands/pool/list/metadata.d.ts +11 -0
- package/dist/{resources/testserver/commands → extensions/testserver/commands/pool}/list/metadata.js +7 -5
- package/dist/{resources/testserver/commands → extensions/testserver/commands/pool}/list/outcomes.js +1 -1
- package/dist/extensions/testserver/commands/pool/metadata.d.ts +3 -0
- package/dist/extensions/testserver/commands/pool/metadata.js +7 -0
- package/dist/extensions/testserver/commands/tree.d.ts +2 -0
- package/dist/extensions/testserver/commands/tree.js +6 -0
- package/dist/{resources → extensions}/testserver/credential-facts.d.ts +6 -40
- package/dist/{resources → extensions}/testserver/credential-facts.js +13 -35
- package/dist/extensions/testserver/definition.d.ts +57 -0
- package/dist/extensions/testserver/definition.js +71 -0
- package/dist/{resources → extensions}/testserver/events.d.ts +5 -4
- package/dist/extensions/testserver/events.js +4 -0
- package/dist/extensions/testserver/extension.d.ts +46 -0
- package/dist/extensions/testserver/extension.js +68 -0
- package/dist/extensions/testserver/index.d.ts +20 -0
- package/dist/extensions/testserver/index.js +31 -0
- package/dist/extensions/testserver/lifecycle.d.ts +24 -0
- package/dist/extensions/testserver/lifecycle.js +116 -0
- package/dist/{core → extensions/testserver}/limit.js +1 -0
- package/dist/extensions/testserver/live/world.d.ts +8 -0
- package/dist/extensions/testserver/live/world.js +38 -0
- package/dist/{resources/testserver/sandbox → extensions/testserver/options}/channels.d.ts +1 -1
- package/dist/extensions/testserver/options/index.d.ts +5 -0
- package/dist/extensions/testserver/options/index.js +11 -0
- package/dist/extensions/testserver/options/rules.d.ts +69 -0
- package/dist/extensions/testserver/options/rules.js +92 -0
- package/dist/extensions/testserver/options/sandboxes.d.ts +29 -0
- package/dist/extensions/testserver/options/sandboxes.js +33 -0
- package/dist/extensions/testserver/options/ttl.d.ts +23 -0
- package/dist/extensions/testserver/options/ttl.js +42 -0
- package/dist/{resources → extensions}/testserver/pool/channels.d.ts +3 -3
- package/dist/{resources → extensions}/testserver/pool/channels.js +2 -2
- package/dist/{resources → extensions}/testserver/pool/create.d.ts +1 -2
- package/dist/{resources → extensions}/testserver/pool/create.js +2 -1
- package/dist/{resources → extensions}/testserver/pool/index.d.ts +0 -1
- package/dist/{resources → extensions}/testserver/pool/index.js +2 -3
- package/dist/{resources → extensions}/testserver/pool/inspect.d.ts +1 -1
- package/dist/{resources → extensions}/testserver/pool/lease.d.ts +1 -1
- package/dist/extensions/testserver/pool/live/pool-store-gateway.d.ts +12 -0
- package/dist/{resources → extensions}/testserver/pool/live/pool-store-gateway.js +4 -4
- package/dist/{resources → extensions}/testserver/pool/pull-request.d.ts +8 -5
- package/dist/{resources → extensions}/testserver/pool/pull-request.js +2 -2
- package/dist/extensions/testserver/pr-build-facts.d.ts +156 -0
- package/dist/extensions/testserver/pr-build-facts.js +309 -0
- package/dist/extensions/testserver/presentation.d.ts +11 -0
- package/dist/{resources → extensions}/testserver/presentation.js +35 -56
- package/dist/{resources/testserver/lane.d.ts → extensions/testserver/progress.d.ts} +10 -6
- package/dist/{resources/testserver/lane.js → extensions/testserver/progress.js} +21 -16
- package/dist/extensions/testserver/provision.d.ts +160 -0
- package/dist/{resources/testserver/provider.js → extensions/testserver/provision.js} +80 -108
- package/dist/{resources → extensions}/testserver/pull-request/gateways.d.ts +1 -1
- package/dist/extensions/testserver/pull-request/gateways.js +5 -0
- package/dist/{resources → extensions}/testserver/pull-request/index.js +2 -2
- package/dist/{resources → extensions}/testserver/pull-request/live/github-token-gateway.d.ts +4 -4
- package/dist/{resources → extensions}/testserver/pull-request/live/github-token-gateway.js +4 -4
- package/dist/extensions/testserver/refusals.d.ts +72 -0
- package/dist/extensions/testserver/refusals.js +117 -0
- package/dist/extensions/testserver/release.d.ts +14 -0
- package/dist/extensions/testserver/release.js +26 -0
- package/dist/extensions/testserver/resource.d.ts +57 -0
- package/dist/extensions/testserver/resource.js +19 -0
- package/dist/extensions/testserver/result.d.ts +55 -0
- package/dist/extensions/testserver/result.js +98 -0
- package/dist/extensions/testserver/run/connection.d.ts +21 -0
- package/dist/extensions/testserver/run/connection.js +39 -0
- package/dist/extensions/testserver/run-sandbox.d.ts +16 -0
- package/dist/extensions/testserver/run-sandbox.js +11 -0
- package/dist/{resources → extensions}/testserver/sandbox/create.d.ts +1 -11
- package/dist/{resources → extensions}/testserver/sandbox/create.js +0 -15
- package/dist/{resources → extensions}/testserver/sandbox/gateways.d.ts +1 -1
- package/dist/{resources → extensions}/testserver/sandbox/index.d.ts +1 -3
- package/dist/extensions/testserver/sandbox/index.js +6 -0
- package/dist/extensions/testserver/testserver-sdk.d.ts +1 -0
- package/dist/extensions/testserver/testserver-sdk.js +4 -0
- package/dist/{vercel-cli → extensions/testserver/vercel-cli}/arguments.js +1 -1
- package/dist/{vercel-cli → extensions/testserver/vercel-cli}/context.js +1 -1
- package/dist/{vercel-cli → extensions/testserver/vercel-cli}/driver.d.ts +1 -1
- package/dist/{vercel-cli → extensions/testserver/vercel-cli}/gateways.js +1 -1
- package/dist/{vercel-cli → extensions/testserver/vercel-cli}/index.js +4 -4
- package/dist/{vercel-cli → extensions/testserver/vercel-cli}/invocation.d.ts +1 -1
- package/dist/{vercel-cli → extensions/testserver/vercel-cli}/invocation.js +1 -1
- package/dist/{vercel-cli → extensions/testserver/vercel-cli}/redaction.js +1 -1
- package/dist/{vercel-cli → extensions/testserver/vercel-cli}/report.d.ts +1 -1
- package/dist/{vercel-cli → extensions/testserver/vercel-cli}/report.js +1 -1
- package/dist/{vercel-cli → extensions/testserver/vercel-cli}/verbose.js +1 -1
- package/dist/extensions/testserver/vitest/config.d.ts +30 -0
- package/dist/extensions/testserver/vitest/config.js +41 -0
- package/dist/{vitest → extensions/testserver/vitest}/container-scope.d.ts +25 -14
- package/dist/{vitest → extensions/testserver/vitest}/container-scope.js +55 -17
- package/dist/extensions/testserver/vitest/container-start.d.ts +19 -0
- package/dist/extensions/testserver/vitest/container-start.js +31 -0
- package/dist/{vitest → extensions/testserver/vitest}/diagnostics.d.ts +66 -29
- package/dist/{vitest → extensions/testserver/vitest}/diagnostics.js +146 -50
- package/dist/{vitest → extensions/testserver/vitest}/fixtures.d.ts +7 -5
- package/dist/{vitest → extensions/testserver/vitest}/fixtures.js +69 -26
- package/dist/extensions/testserver/vitest/index.d.ts +3 -0
- package/dist/extensions/testserver/vitest/index.js +10 -0
- package/dist/extensions/testserver/vitest/sandbox.d.ts +25 -0
- package/dist/extensions/testserver/vitest/sandbox.js +43 -0
- package/dist/{vitest → extensions/testserver/vitest}/types.d.ts +1 -1
- package/dist/extensions/testserver/world.d.ts +25 -0
- package/dist/extensions/testserver/world.js +4 -0
- package/dist/extensions.d.ts +144 -0
- package/dist/extensions.js +41 -0
- package/dist/forward-sigterm.d.ts +8 -0
- package/dist/forward-sigterm.js +18 -0
- package/dist/help-logo.js +5 -5
- package/dist/launch.js +46 -0
- package/dist/launcher-resolvers/index.d.ts +2 -0
- package/dist/launcher-resolvers/index.js +8 -0
- package/dist/launcher-resolvers/local-services.d.ts +57 -0
- package/dist/launcher-resolvers/local-services.js +7 -0
- package/dist/live-app.js +12 -7
- package/dist/local-services.d.ts +19 -0
- package/dist/local-services.js +37 -0
- package/dist/presentation.js +2 -2
- package/dist/run-directory/gateways.d.ts +167 -0
- package/dist/run-directory/gateways.js +2 -0
- package/dist/run-directory/index.d.ts +8 -0
- package/dist/run-directory/index.js +13 -0
- package/dist/run-directory/plan.d.ts +35 -0
- package/dist/run-directory/plan.js +24 -0
- package/dist/run-directory/reader.d.ts +70 -0
- package/dist/run-directory/reader.js +51 -0
- package/dist/run-directory/recording.d.ts +92 -0
- package/dist/run-directory/recording.js +85 -0
- package/dist/run-directory/run-collector.d.ts +36 -0
- package/dist/{commands/exec → run-directory}/run-collector.js +10 -12
- package/dist/{core → run-directory}/run-directory.d.ts +13 -14
- package/dist/{core → run-directory}/run-directory.js +11 -11
- package/dist/{commands/exec → run-directory}/run-record.d.ts +92 -61
- package/dist/run-directory/run-record.js +209 -0
- package/dist/run-directory/timeline-facts.d.ts +53 -0
- package/dist/run-directory/timeline-facts.js +76 -0
- package/dist/runner/base.js +1 -1
- package/dist/runner/context.js +1 -1
- package/dist/runner/events.d.ts +6 -5
- package/dist/runner/events.js +1 -1
- package/dist/runner/gateways.d.ts +11 -11
- package/dist/runner/gateways.js +1 -1
- package/dist/runner/index.d.ts +13 -17
- package/dist/runner/index.js +10 -14
- package/dist/runner/live/sandbox-gateway.js +4 -4
- package/dist/runner/live/terminal.d.ts +1 -1
- package/dist/runner/live/terminal.js +1 -1
- package/dist/runner/prepare.d.ts +40 -17
- package/dist/runner/prepare.js +17 -11
- package/dist/runner/ready.js +2 -2
- package/dist/runner/recipe.d.ts +38 -20
- package/dist/runner/recipe.js +31 -17
- package/dist/runner/{remote-command.d.ts → sandboxed-command.d.ts} +18 -19
- package/dist/runner/{remote-command.js → sandboxed-command.js} +21 -22
- package/dist/runner/scope.d.ts +21 -14
- package/dist/runner/scope.js +12 -10
- package/dist/runner/secrets.js +1 -1
- package/dist/runner/session.d.ts +100 -0
- package/dist/runner/session.js +109 -0
- package/dist/runner/snapshot-key.d.ts +1 -1
- package/dist/runner/snapshot-key.js +4 -4
- package/dist/runner/snapshot-save.d.ts +3 -2
- package/dist/runner/snapshot-save.js +8 -7
- package/dist/sdk/extension/ci.d.ts +2 -0
- package/dist/sdk/extension/ci.js +6 -0
- package/dist/sdk/extension/commands.d.ts +69 -0
- package/dist/sdk/extension/commands.js +31 -0
- package/dist/{credential/diagnosis.d.ts → sdk/extension/credential-diagnosis.d.ts} +1 -7
- package/dist/{credential/diagnosis.js → sdk/extension/credential-diagnosis.js} +2 -11
- package/dist/sdk/extension/credential-source.d.ts +132 -0
- package/dist/sdk/extension/credential-source.js +5 -0
- package/dist/{credential → sdk/extension}/credential.d.ts +8 -7
- package/dist/{credential → sdk/extension}/credential.js +9 -6
- package/dist/sdk/extension/index.d.ts +16 -0
- package/dist/sdk/extension/index.js +40 -0
- package/dist/sdk/extension/launcher-supplies.d.ts +24 -0
- package/dist/sdk/extension/launcher-supplies.js +3 -0
- package/dist/sdk/extension/lifecycle.d.ts +212 -0
- package/dist/sdk/extension/lifecycle.js +9 -0
- package/dist/sdk/extension/presentation.d.ts +31 -0
- package/dist/sdk/extension/presentation.js +7 -0
- package/dist/sdk/extension/progress.d.ts +75 -0
- package/dist/sdk/extension/progress.js +8 -0
- package/dist/sdk/extension/reports.d.ts +15 -0
- package/dist/sdk/extension/reports.js +5 -0
- package/dist/sdk/extension/resource-definition.d.ts +204 -0
- package/dist/sdk/extension/resource-definition.js +24 -0
- package/dist/sdk/extension/resource-factory.d.ts +10 -0
- package/dist/sdk/extension/resource-factory.js +15 -0
- package/dist/sdk/extension/resource.d.ts +60 -0
- package/dist/sdk/extension/resource.js +42 -0
- package/dist/sdk/extension/rules.d.ts +16 -0
- package/dist/sdk/extension/rules.js +30 -0
- package/dist/sdk/extension/span.d.ts +8 -0
- package/dist/sdk/extension/span.js +4 -0
- package/dist/sdk/extension/time.d.ts +11 -0
- package/dist/sdk/extension/time.js +4 -0
- package/dist/sdk/extension/token-request-facts.d.ts +39 -0
- package/dist/sdk/extension/token-request-facts.js +35 -0
- package/dist/sdk/index.d.ts +4 -7
- package/dist/sdk/index.js +7 -15
- package/dist/sdk/run/contract.d.ts +32 -0
- package/dist/sdk/run/contract.js +12 -0
- package/dist/sdk/run/launcher.d.ts +5 -0
- package/dist/sdk/run/launcher.js +6 -0
- package/dist/sdk/run/payload.d.ts +58 -0
- package/dist/sdk/run/payload.js +73 -0
- package/dist/sdk/run/present.d.ts +11 -0
- package/dist/sdk/run/present.js +4 -0
- package/dist/sdk/run/redact.d.ts +5 -0
- package/dist/sdk/run/redact.js +12 -0
- package/dist/story/align.d.ts +1 -1
- package/dist/story/align.js +1 -1
- package/dist/story/command-line.d.ts +6 -16
- package/dist/story/command-line.js +11 -23
- package/dist/story/errors.d.ts +1 -1
- package/dist/story/errors.js +1 -1
- package/dist/story/host.d.ts +1 -1
- package/dist/story/host.js +2 -2
- package/dist/story/index.d.ts +2 -2
- package/dist/story/index.js +4 -3
- package/dist/story/launch.d.ts +70 -0
- package/dist/story/launch.js +77 -0
- package/dist/story/report.d.ts +2 -2
- package/dist/story/report.js +3 -4
- package/dist/story/settle.d.ts +7 -7
- package/dist/story/settle.js +5 -5
- package/dist/story/start.d.ts +2 -2
- package/dist/time/duration.js +2 -2
- package/dist/time/index.js +2 -1
- package/dist/time/time.d.ts +2 -11
- package/dist/time/time.js +2 -2
- package/dist/{sdk → vendor/testserver-sdk}/container/api-request.d.ts +14 -2
- package/dist/vendor/testserver-sdk/container/api-request.js +68 -0
- package/dist/vendor/testserver-sdk/container/container.d.ts +199 -0
- package/dist/vendor/testserver-sdk/container/container.js +458 -0
- package/dist/vendor/testserver-sdk/container/external.d.ts +111 -0
- package/dist/vendor/testserver-sdk/container/external.js +76 -0
- package/dist/vendor/testserver-sdk/container/gateways.d.ts +156 -0
- package/dist/{sdk → vendor/testserver-sdk}/container/index.d.ts +2 -1
- package/dist/{sdk → vendor/testserver-sdk}/container/index.js +2 -1
- package/dist/vendor/testserver-sdk/container/live/container-gateway.d.ts +22 -0
- package/dist/vendor/testserver-sdk/container/live/container-gateway.js +165 -0
- package/dist/vendor/testserver-sdk/container/recorder.d.ts +69 -0
- package/dist/vendor/testserver-sdk/container/recorder.js +121 -0
- package/dist/{sdk → vendor/testserver-sdk}/factories/build.d.ts +33 -12
- package/dist/{sdk → vendor/testserver-sdk}/factories/build.js +36 -14
- package/dist/vendor/testserver-sdk/factories/definition.d.ts +39 -0
- package/dist/{sdk → vendor/testserver-sdk}/factories/definition.js +1 -1
- package/dist/{sdk → vendor/testserver-sdk}/factories/definitions.d.ts +7 -4
- package/dist/{sdk → vendor/testserver-sdk}/factories/definitions.js +10 -0
- package/dist/vendor/testserver-sdk/factories/gateways.d.ts +31 -0
- package/dist/vendor/testserver-sdk/factories/index.d.ts +4 -0
- package/dist/{sdk → vendor/testserver-sdk}/factories/index.js +3 -3
- package/dist/vendor/testserver-sdk/index.d.ts +6 -0
- package/dist/vendor/testserver-sdk/index.js +11 -0
- package/dist/{sdk → vendor/testserver-sdk}/proxy/exchange.d.ts +2 -1
- package/dist/{sdk → vendor/testserver-sdk}/proxy/exchange.js +8 -4
- package/dist/{sdk → vendor/testserver-sdk}/proxy/faulted-exchange.js +7 -2
- package/dist/{sdk → vendor/testserver-sdk}/proxy/faults.d.ts +2 -1
- package/dist/{sdk → vendor/testserver-sdk}/proxy/records.d.ts +10 -1
- package/dist/{sdk → vendor/testserver-sdk}/proxy/records.js +13 -0
- package/dist/{sdk → vendor/testserver-sdk}/records/index.d.ts +1 -1
- package/dist/{sdk → vendor/testserver-sdk}/records/records.d.ts +17 -1
- package/dist/vendor/testserver-sdk/testserver/external-ids.d.ts +38 -0
- package/dist/vendor/testserver-sdk/testserver/external-ids.js +46 -0
- package/dist/vendor/testserver-sdk/testserver/failure.d.ts +102 -0
- package/dist/vendor/testserver-sdk/testserver/failure.js +109 -0
- package/dist/vendor/testserver-sdk/testserver/index.d.ts +7 -0
- package/dist/vendor/testserver-sdk/testserver/index.js +11 -0
- package/dist/{sdk → vendor/testserver-sdk}/testserver/live/request.d.ts +8 -10
- package/dist/{sdk → vendor/testserver-sdk}/testserver/live/request.js +8 -6
- package/dist/vendor/testserver-sdk/testserver/routes.d.ts +60 -0
- package/dist/vendor/testserver-sdk/testserver/routes.js +84 -0
- package/dist/vendor/testserver-sdk/testserver/service-ids.d.ts +31 -0
- package/dist/{sdk → vendor/testserver-sdk}/testserver/service-ids.js +27 -4
- package/dist/vitest/config.d.ts +2 -28
- package/dist/vitest/config.js +6 -36
- package/dist/vitest/gateways.js +1 -1
- package/dist/vitest/index.d.ts +2 -3
- package/dist/vitest/index.js +5 -9
- package/dist/vitest/plan.d.ts +1 -16
- package/dist/vitest/plan.js +4 -36
- package/dist/vitest/test-events.d.ts +1 -18
- package/dist/vitest/test-events.js +2 -31
- package/package.json +52 -23
- package/skills/overview.md +12 -9
- package/skills/read-run-output.md +26 -3
- package/skills/testserver-builds.md +8 -8
- package/dist/chunks/chunk-5CQCRX2L.js +0 -5768
- package/dist/chunks/chunk-5U5Q6VZR.js +0 -556
- package/dist/chunks/chunk-7O6UN63H.js +0 -63
- package/dist/chunks/chunk-NX55IJ5S.js +0 -1842
- package/dist/chunks/chunk-OCZJE5XV.js +0 -910
- package/dist/chunks/chunk-RRQ2ZGSE.js +0 -1512
- package/dist/chunks/chunk-S5NAIZYS.js +0 -13
- package/dist/chunks/chunk-UHO5OCEX.js +0 -360
- package/dist/chunks/chunk-WBIHJM7D.js +0 -188
- package/dist/combine-errors.d.ts +0 -11
- package/dist/combine-errors.js +0 -19
- package/dist/commands/exec/run-collector.d.ts +0 -30
- package/dist/commands/exec/run-record.js +0 -152
- package/dist/commands/exec/testserver-flags.d.ts +0 -48
- package/dist/commands/exec/testserver-flags.js +0 -80
- package/dist/config/by-name.d.ts +0 -24
- package/dist/config/by-name.js +0 -26
- package/dist/config/resource-config.d.ts +0 -132
- package/dist/config/resource-config.js +0 -19
- package/dist/config/set.d.ts +0 -27
- package/dist/config/set.js +0 -71
- package/dist/core/command-provider.d.ts +0 -126
- package/dist/core/command-provider.js +0 -13
- package/dist/core/command-slots.d.ts +0 -73
- package/dist/core/command-slots.js +0 -140
- package/dist/core/keyed.d.ts +0 -12
- package/dist/core/keyed.js +0 -24
- package/dist/core/lane.d.ts +0 -46
- package/dist/core/lane.js +0 -5
- package/dist/core/mint.d.ts +0 -10
- package/dist/core/mint.js +0 -14
- package/dist/core/presentation.d.ts +0 -87
- package/dist/core/presentation.js +0 -5
- package/dist/core/provider.d.ts +0 -79
- package/dist/core/provider.js +0 -5
- package/dist/resource-commands.d.ts +0 -13
- package/dist/resource-commands.js +0 -22
- package/dist/resources/github/cleanup.d.ts +0 -23
- package/dist/resources/github/cleanup.js +0 -39
- package/dist/resources/github/command.d.ts +0 -126
- package/dist/resources/github/command.js +0 -117
- package/dist/resources/github/config.d.ts +0 -16
- package/dist/resources/github/config.js +0 -37
- package/dist/resources/github/events.d.ts +0 -26
- package/dist/resources/github/events.js +0 -2
- package/dist/resources/github/index.d.ts +0 -12
- package/dist/resources/github/index.js +0 -15
- package/dist/resources/github/live/gateways.d.ts +0 -6
- package/dist/resources/github/live/gateways.js +0 -13
- package/dist/resources/github/presentation.d.ts +0 -13
- package/dist/resources/github/presentation.js +0 -43
- package/dist/resources/github/provider.d.ts +0 -66
- package/dist/resources/github/provider.js +0 -58
- package/dist/resources/github/resource-provider.d.ts +0 -6
- package/dist/resources/github/resource-provider.js +0 -20
- package/dist/resources/github/resource.d.ts +0 -33
- package/dist/resources/github/resource.js +0 -12
- package/dist/resources/testserver/cleanup.d.ts +0 -14
- package/dist/resources/testserver/cleanup.js +0 -22
- package/dist/resources/testserver/command-tree.d.ts +0 -4
- package/dist/resources/testserver/command-tree.js +0 -12
- package/dist/resources/testserver/command.d.ts +0 -520
- package/dist/resources/testserver/command.js +0 -252
- package/dist/resources/testserver/commands/app.d.ts +0 -18
- package/dist/resources/testserver/commands/app.js +0 -3
- package/dist/resources/testserver/commands/create/metadata.d.ts +0 -31
- package/dist/resources/testserver/commands/create/metadata.js +0 -53
- package/dist/resources/testserver/commands/list/metadata.d.ts +0 -9
- package/dist/resources/testserver/config.d.ts +0 -18
- package/dist/resources/testserver/config.js +0 -88
- package/dist/resources/testserver/events.js +0 -4
- package/dist/resources/testserver/index.d.ts +0 -16
- package/dist/resources/testserver/index.js +0 -25
- package/dist/resources/testserver/live/gateways.d.ts +0 -8
- package/dist/resources/testserver/live/gateways.js +0 -39
- package/dist/resources/testserver/options.d.ts +0 -5
- package/dist/resources/testserver/options.js +0 -5
- package/dist/resources/testserver/pool/directory.d.ts +0 -4
- package/dist/resources/testserver/pool/directory.js +0 -5
- package/dist/resources/testserver/pool/live/pool-store-gateway.d.ts +0 -12
- package/dist/resources/testserver/pr-build-facts.d.ts +0 -130
- package/dist/resources/testserver/pr-build-facts.js +0 -261
- package/dist/resources/testserver/presentation.d.ts +0 -9
- package/dist/resources/testserver/provider.d.ts +0 -187
- package/dist/resources/testserver/pull-request/gateways.js +0 -5
- package/dist/resources/testserver/ran.d.ts +0 -92
- package/dist/resources/testserver/ran.js +0 -156
- package/dist/resources/testserver/resource-provider.d.ts +0 -12
- package/dist/resources/testserver/resource-provider.js +0 -32
- package/dist/resources/testserver/resource.d.ts +0 -36
- package/dist/resources/testserver/resource.js +0 -10
- package/dist/resources/testserver/run-sandbox.d.ts +0 -13
- package/dist/resources/testserver/run-sandbox.js +0 -6
- package/dist/resources/testserver/sandbox/index.js +0 -8
- package/dist/resources.d.ts +0 -702
- package/dist/resources.js +0 -83
- package/dist/sdk/container/api-request.js +0 -46
- package/dist/sdk/container/container.d.ts +0 -144
- package/dist/sdk/container/container.js +0 -346
- package/dist/sdk/container/gateways.d.ts +0 -108
- package/dist/sdk/container/live/container-gateway.d.ts +0 -17
- package/dist/sdk/container/live/container-gateway.js +0 -114
- package/dist/sdk/factories/definition.d.ts +0 -28
- package/dist/sdk/factories/gateways.d.ts +0 -25
- package/dist/sdk/factories/index.d.ts +0 -5
- package/dist/sdk/factories/live/factory-gateway.d.ts +0 -10
- package/dist/sdk/factories/live/factory-gateway.js +0 -29
- package/dist/sdk/host.d.ts +0 -2
- package/dist/sdk/host.js +0 -7
- package/dist/sdk/payload/index.d.ts +0 -2
- package/dist/sdk/payload/index.js +0 -4
- package/dist/sdk/payload/payload.d.ts +0 -47
- package/dist/sdk/payload/payload.js +0 -74
- package/dist/sdk/testserver/failure.d.ts +0 -73
- package/dist/sdk/testserver/failure.js +0 -61
- package/dist/sdk/testserver/index.d.ts +0 -5
- package/dist/sdk/testserver/index.js +0 -8
- package/dist/sdk/testserver/service-ids.d.ts +0 -19
- package/dist/story/mode.d.ts +0 -17
- package/dist/story/mode.js +0 -21
- package/dist/vitest/sandbox.d.ts +0 -22
- package/dist/vitest/sandbox.js +0 -41
- /package/dist/{credential/settle.js → config/credential-settle.js} +0 -0
- /package/dist/{resources → extensions}/github/gateways.d.ts +0 -0
- /package/dist/{resources → extensions}/github/gateways.js +0 -0
- /package/dist/{resources → extensions}/github/live/fixture-repo-gateway.d.ts +0 -0
- /package/dist/{resources → extensions}/github/live/fixture-repo-gateway.js +0 -0
- /package/dist/{resources/testserver/commands → extensions/testserver/commands/pool}/list/outcomes.d.ts +0 -0
- /package/dist/{core → extensions/testserver}/limit.d.ts +0 -0
- /package/dist/{resources/testserver/sandbox → extensions/testserver/options}/build-reference.d.ts +0 -0
- /package/dist/{resources/testserver/sandbox → extensions/testserver/options}/build-reference.js +0 -0
- /package/dist/{resources/testserver/sandbox → extensions/testserver/options}/channels.js +0 -0
- /package/dist/{resources → extensions}/testserver/pool/gateways.d.ts +0 -0
- /package/dist/{resources → extensions}/testserver/pool/gateways.js +0 -0
- /package/dist/{resources → extensions}/testserver/pool/host.d.ts +0 -0
- /package/dist/{resources → extensions}/testserver/pool/host.js +0 -0
- /package/dist/{resources → extensions}/testserver/pool/inspect.js +0 -0
- /package/dist/{resources → extensions}/testserver/pool/lease.js +0 -0
- /package/dist/{resources → extensions}/testserver/pool/live/pool-records.d.ts +0 -0
- /package/dist/{resources → extensions}/testserver/pool/live/pool-records.js +0 -0
- /package/dist/{resources → extensions}/testserver/pool/staleness.d.ts +0 -0
- /package/dist/{resources → extensions}/testserver/pool/staleness.js +0 -0
- /package/dist/{resources → extensions}/testserver/pull-request/index.d.ts +0 -0
- /package/dist/{resources → extensions}/testserver/pull-request/live/github-rest.d.ts +0 -0
- /package/dist/{resources → extensions}/testserver/pull-request/live/github-rest.js +0 -0
- /package/dist/{resources → extensions}/testserver/pull-request/live/pull-request-gateway.d.ts +0 -0
- /package/dist/{resources → extensions}/testserver/pull-request/live/pull-request-gateway.js +0 -0
- /package/dist/{resources → extensions}/testserver/pull-request/live/testserver-workflow-gateway.d.ts +0 -0
- /package/dist/{resources → extensions}/testserver/pull-request/live/testserver-workflow-gateway.js +0 -0
- /package/dist/{resources → extensions}/testserver/sandbox/create-failure.d.ts +0 -0
- /package/dist/{resources → extensions}/testserver/sandbox/create-failure.js +0 -0
- /package/dist/{resources → extensions}/testserver/sandbox/gateways.js +0 -0
- /package/dist/{resources → extensions}/testserver/sandbox/live/builds-response.d.ts +0 -0
- /package/dist/{resources → extensions}/testserver/sandbox/live/builds-response.js +0 -0
- /package/dist/{resources → extensions}/testserver/sandbox/live/control-plane-gateway.d.ts +0 -0
- /package/dist/{resources → extensions}/testserver/sandbox/live/control-plane-gateway.js +0 -0
- /package/dist/{resources → extensions}/testserver/sandbox/live/create-response.d.ts +0 -0
- /package/dist/{resources → extensions}/testserver/sandbox/live/create-response.js +0 -0
- /package/dist/{resources → extensions}/testserver/sandbox/live/fetch-failure.d.ts +0 -0
- /package/dist/{resources → extensions}/testserver/sandbox/live/fetch-failure.js +0 -0
- /package/dist/{resources → extensions}/testserver/sandbox/live/health-check-gateway.d.ts +0 -0
- /package/dist/{resources → extensions}/testserver/sandbox/live/health-check-gateway.js +0 -0
- /package/dist/{resources → extensions}/testserver/sandbox/live/sse.d.ts +0 -0
- /package/dist/{resources → extensions}/testserver/sandbox/live/sse.js +0 -0
- /package/dist/{vercel-cli → extensions/testserver/vercel-cli}/ansi.d.ts +0 -0
- /package/dist/{vercel-cli → extensions/testserver/vercel-cli}/ansi.js +0 -0
- /package/dist/{vercel-cli → extensions/testserver/vercel-cli}/arguments.d.ts +0 -0
- /package/dist/{vercel-cli → extensions/testserver/vercel-cli}/auth-config.d.ts +0 -0
- /package/dist/{vercel-cli → extensions/testserver/vercel-cli}/auth-config.js +0 -0
- /package/dist/{vercel-cli → extensions/testserver/vercel-cli}/clock.d.ts +0 -0
- /package/dist/{vercel-cli → extensions/testserver/vercel-cli}/clock.js +0 -0
- /package/dist/{vercel-cli → extensions/testserver/vercel-cli}/config-files.d.ts +0 -0
- /package/dist/{vercel-cli → extensions/testserver/vercel-cli}/config-files.js +0 -0
- /package/dist/{vercel-cli → extensions/testserver/vercel-cli}/context.d.ts +0 -0
- /package/dist/{vercel-cli → extensions/testserver/vercel-cli}/driver.js +0 -0
- /package/dist/{vercel-cli → extensions/testserver/vercel-cli}/entry.d.ts +0 -0
- /package/dist/{vercel-cli → extensions/testserver/vercel-cli}/entry.js +0 -0
- /package/dist/{vercel-cli → extensions/testserver/vercel-cli}/environment.d.ts +0 -0
- /package/dist/{vercel-cli → extensions/testserver/vercel-cli}/environment.js +0 -0
- /package/dist/{vercel-cli → extensions/testserver/vercel-cli}/errors.d.ts +0 -0
- /package/dist/{vercel-cli → extensions/testserver/vercel-cli}/errors.js +0 -0
- /package/dist/{vercel-cli → extensions/testserver/vercel-cli}/gateways.d.ts +0 -0
- /package/dist/{vercel-cli → extensions/testserver/vercel-cli}/index.d.ts +0 -0
- /package/dist/{vercel-cli → extensions/testserver/vercel-cli}/keys.d.ts +0 -0
- /package/dist/{vercel-cli → extensions/testserver/vercel-cli}/keys.js +0 -0
- /package/dist/{vercel-cli → extensions/testserver/vercel-cli}/live/config-files.d.ts +0 -0
- /package/dist/{vercel-cli → extensions/testserver/vercel-cli}/live/config-files.js +0 -0
- /package/dist/{vercel-cli → extensions/testserver/vercel-cli}/live/process-gateway.d.ts +0 -0
- /package/dist/{vercel-cli → extensions/testserver/vercel-cli}/live/process-gateway.js +0 -0
- /package/dist/{vercel-cli → extensions/testserver/vercel-cli}/redaction.d.ts +0 -0
- /package/dist/{vercel-cli → extensions/testserver/vercel-cli}/verbose.d.ts +0 -0
- /package/dist/{vitest → extensions/testserver/vitest}/types.js +0 -0
- /package/dist/{core → run-directory}/live/run-directory-gateway.d.ts +0 -0
- /package/dist/{core → run-directory}/live/run-directory-gateway.js +0 -0
- /package/dist/sdk/{payload → run}/test-events.d.ts +0 -0
- /package/dist/sdk/{payload → run}/test-events.js +0 -0
- /package/dist/{sdk → vendor/testserver-sdk}/container/feature-flags.d.ts +0 -0
- /package/dist/{sdk → vendor/testserver-sdk}/container/feature-flags.js +0 -0
- /package/dist/{sdk → vendor/testserver-sdk}/container/gateways.js +0 -0
- /package/dist/{sdk → vendor/testserver-sdk}/factories/gateways.js +0 -0
- /package/dist/{sdk → vendor/testserver-sdk}/proxy/faulted-exchange.d.ts +0 -0
- /package/dist/{sdk → vendor/testserver-sdk}/proxy/faults.js +0 -0
- /package/dist/{sdk → vendor/testserver-sdk}/proxy/index.d.ts +0 -0
- /package/dist/{sdk → vendor/testserver-sdk}/proxy/index.js +0 -0
- /package/dist/{sdk → vendor/testserver-sdk}/proxy/proxy.d.ts +0 -0
- /package/dist/{sdk → vendor/testserver-sdk}/proxy/proxy.js +0 -0
- /package/dist/{sdk → vendor/testserver-sdk}/records/body.d.ts +0 -0
- /package/dist/{sdk → vendor/testserver-sdk}/records/body.js +0 -0
- /package/dist/{sdk → vendor/testserver-sdk}/records/index.js +0 -0
- /package/dist/{sdk → vendor/testserver-sdk}/records/records.js +0 -0
- /package/dist/{sdk → vendor/testserver-sdk}/seed/index.d.ts +0 -0
- /package/dist/{sdk → vendor/testserver-sdk}/seed/index.js +0 -0
- /package/dist/{sdk → vendor/testserver-sdk}/seed/seed.d.ts +0 -0
- /package/dist/{sdk → vendor/testserver-sdk}/seed/seed.js +0 -0
- /package/dist/{sdk → vendor/testserver-sdk}/testserver/clock.d.ts +0 -0
- /package/dist/{sdk → vendor/testserver-sdk}/testserver/clock.js +0 -0
- /package/dist/{sdk → vendor/testserver-sdk}/testserver/live/connect-failure.d.ts +0 -0
- /package/dist/{sdk → vendor/testserver-sdk}/testserver/live/connect-failure.js +0 -0
- /package/dist/{sdk → vendor/testserver-sdk}/testserver/test-id.d.ts +0 -0
- /package/dist/{sdk → vendor/testserver-sdk}/testserver/test-id.js +0 -0
|
@@ -5,7 +5,7 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
5
5
|
version: z.ZodString;
|
|
6
6
|
commit: z.ZodNullable<z.ZodString>;
|
|
7
7
|
configFile: z.ZodNullable<z.ZodString>;
|
|
8
|
-
resources: z.ZodType<import("../../core/resource.ts").
|
|
8
|
+
resources: z.ZodType<import("../../core/resource-reports.ts").InstanceFacts, import("../../core/resource-reports.ts").InstanceFacts, z.core.$ZodTypeInternals<import("../../core/resource-reports.ts").InstanceFacts, import("../../core/resource-reports.ts").InstanceFacts>>;
|
|
9
9
|
cleanup: z.ZodType<import("../exec/cleanup.ts").StormCleanupFacts, import("../exec/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../exec/cleanup.ts").StormCleanupFacts, import("../exec/cleanup.ts").StormCleanupFacts>>;
|
|
10
10
|
command: z.ZodObject<{
|
|
11
11
|
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
@@ -48,13 +48,9 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
48
48
|
startedAt: z.ZodString;
|
|
49
49
|
totalMs: z.ZodNumber;
|
|
50
50
|
rows: z.ZodArray<z.ZodObject<{
|
|
51
|
-
name: z.
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
runner: "runner";
|
|
55
|
-
tests: "tests";
|
|
56
|
-
testserver: "testserver";
|
|
57
|
-
}>;
|
|
51
|
+
name: z.ZodString;
|
|
52
|
+
resource: z.ZodNullable<z.ZodString>;
|
|
53
|
+
label: z.ZodString;
|
|
58
54
|
startMs: z.ZodNumber;
|
|
59
55
|
endMs: z.ZodNumber;
|
|
60
56
|
outcome: z.ZodEnum<{
|
|
@@ -64,9 +60,7 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
64
60
|
unfinished: "unfinished";
|
|
65
61
|
}>;
|
|
66
62
|
steps: z.ZodArray<z.ZodObject<{
|
|
67
|
-
name: z.
|
|
68
|
-
[x: string]: string;
|
|
69
|
-
}>;
|
|
63
|
+
name: z.ZodString;
|
|
70
64
|
startMs: z.ZodNumber;
|
|
71
65
|
endMs: z.ZodNumber;
|
|
72
66
|
outcome: z.ZodEnum<{
|
|
@@ -86,24 +80,24 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
86
80
|
created: z.ZodNumber;
|
|
87
81
|
}, z.core.$strip>>;
|
|
88
82
|
}, z.core.$strip>>;
|
|
89
|
-
criticalPath: z.ZodArray<z.
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
tests: "tests";
|
|
94
|
-
testserver: "testserver";
|
|
95
|
-
}>>;
|
|
83
|
+
criticalPath: z.ZodArray<z.ZodObject<{
|
|
84
|
+
name: z.ZodString;
|
|
85
|
+
resource: z.ZodNullable<z.ZodString>;
|
|
86
|
+
}, z.core.$strip>>;
|
|
96
87
|
}, z.core.$strip>;
|
|
97
88
|
runId: z.ZodNullable<z.ZodString>;
|
|
98
89
|
plan: z.ZodObject<{
|
|
99
90
|
tests: z.ZodNumber;
|
|
100
91
|
files: z.ZodNumber;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
92
|
+
options: z.ZodArray<z.ZodObject<{
|
|
93
|
+
path: z.ZodString;
|
|
94
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
95
|
+
from: z.ZodEnum<{
|
|
96
|
+
default: "default";
|
|
97
|
+
file: "file";
|
|
98
|
+
flag: "flag";
|
|
99
|
+
}>;
|
|
100
|
+
}, z.core.$strip>>;
|
|
107
101
|
}, z.core.$strip>;
|
|
108
102
|
}, z.core.$strip>;
|
|
109
103
|
}, {
|
|
@@ -124,52 +118,10 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
124
118
|
}>;
|
|
125
119
|
message: z.ZodString;
|
|
126
120
|
}, z.core.$strip>;
|
|
127
|
-
credentialRejected: import("@vercel/clinkr").SharedError<"credential_rejected", [{
|
|
128
|
-
origin: {
|
|
129
|
-
source: "mint";
|
|
130
|
-
team: string;
|
|
131
|
-
project: string;
|
|
132
|
-
} | {
|
|
133
|
-
source: "github-actions";
|
|
134
|
-
claims: {
|
|
135
|
-
aud: string;
|
|
136
|
-
repository: string;
|
|
137
|
-
} | null;
|
|
138
|
-
};
|
|
139
|
-
fix: string;
|
|
140
|
-
status: number;
|
|
141
|
-
vercelId: string | null;
|
|
142
|
-
ttlMinutes: number;
|
|
143
|
-
failedCreates: {
|
|
144
|
-
kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
|
|
145
|
-
detail: string | null;
|
|
146
|
-
}[];
|
|
147
|
-
unpooled: {
|
|
148
|
-
testserverUrl: string;
|
|
149
|
-
path: string;
|
|
150
|
-
message: string;
|
|
151
|
-
}[];
|
|
152
|
-
sandboxMayExist: boolean;
|
|
153
|
-
} & {
|
|
154
|
-
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
155
|
-
}]>;
|
|
156
121
|
credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
|
|
157
122
|
flags: string[];
|
|
158
123
|
configFile: string | null;
|
|
159
124
|
}]>;
|
|
160
|
-
githubFixtureRepoUnavailable: import("@vercel/clinkr").SharedError<"github_fixture_repo_unavailable", [{
|
|
161
|
-
repo: string;
|
|
162
|
-
status: number | null;
|
|
163
|
-
message: string;
|
|
164
|
-
} & {
|
|
165
|
-
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
166
|
-
}]>;
|
|
167
|
-
githubTokenMissing: import("@vercel/clinkr").SharedError<"github_token_missing", [data: {
|
|
168
|
-
tokenEnv: string;
|
|
169
|
-
repo: string;
|
|
170
|
-
configFile: string | null;
|
|
171
|
-
requiredBy: "config" | "set";
|
|
172
|
-
}]>;
|
|
173
125
|
invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
|
|
174
126
|
file: string;
|
|
175
127
|
problems: {
|
|
@@ -213,72 +165,18 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
213
165
|
reason: "missing" | "unrelated";
|
|
214
166
|
}[];
|
|
215
167
|
}]>;
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
requested: number;
|
|
229
|
-
build: string;
|
|
230
|
-
} & {
|
|
231
|
-
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
232
|
-
}]>;
|
|
233
|
-
poolUnavailable: import("@vercel/clinkr").SharedError<"pool_unavailable", [data: {
|
|
234
|
-
path: string;
|
|
235
|
-
message: string;
|
|
236
|
-
}]>;
|
|
237
|
-
poolUnreadable: import("@vercel/clinkr").SharedError<"pool_unreadable", [{
|
|
238
|
-
path: string;
|
|
239
|
-
message: string;
|
|
240
|
-
} & {
|
|
241
|
-
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
242
|
-
}]>;
|
|
243
|
-
prBuildExpired: import("@vercel/clinkr").SharedError<"pr_build_expired", [{
|
|
244
|
-
pr: number;
|
|
245
|
-
headSha: string;
|
|
246
|
-
build: string;
|
|
247
|
-
expiresAt: string;
|
|
248
|
-
} & {
|
|
249
|
-
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
250
|
-
}]>;
|
|
251
|
-
prBuildNotReady: import("@vercel/clinkr").SharedError<"pr_build_not_ready", [{
|
|
252
|
-
pr: number;
|
|
253
|
-
headSha: string;
|
|
254
|
-
newest: {
|
|
255
|
-
build: string;
|
|
256
|
-
headSha: string;
|
|
257
|
-
createdAt: string;
|
|
258
|
-
} | null;
|
|
259
|
-
} & {
|
|
260
|
-
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
261
|
-
}]>;
|
|
262
|
-
prBuildsUnlisted: import("@vercel/clinkr").SharedError<"pr_builds_unlisted", [{
|
|
263
|
-
pr: number;
|
|
264
|
-
failure: {
|
|
265
|
-
kind: "connect-failed" | "http-error" | "malformed" | "not-found" | "rejected" | "timeout";
|
|
266
|
-
status: number | null;
|
|
267
|
-
detail: string;
|
|
268
|
-
};
|
|
269
|
-
} & {
|
|
270
|
-
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
271
|
-
}]>;
|
|
272
|
-
pullRequestUnreadable: import("@vercel/clinkr").SharedError<"pull_request_unreadable", [{
|
|
273
|
-
pr: number;
|
|
274
|
-
repo: string;
|
|
275
|
-
kind: "connect-failed" | "http-error" | "malformed" | "no-token" | "not-found" | "rejected" | "timeout";
|
|
276
|
-
status: number | null;
|
|
277
|
-
message: string | null;
|
|
278
|
-
tokenOrigin: "GH_TOKEN" | "GITHUB_TOKEN" | "gh auth token" | null;
|
|
279
|
-
} & {
|
|
280
|
-
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
281
|
-
}]>;
|
|
168
|
+
resourceRefused: import("@vercel/clinkr").SharedError<"resource_refused", [data: {
|
|
169
|
+
resource: string;
|
|
170
|
+
refusal: string;
|
|
171
|
+
data: Record<string, unknown>;
|
|
172
|
+
cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
173
|
+
}, refusal: import("../../sdk/extension/lifecycle.ts").RefusalContent]>;
|
|
174
|
+
resourceRefusedBeforeRun: import("@vercel/clinkr").SharedError<"resource_refused_before_run", [data: {
|
|
175
|
+
resource: string;
|
|
176
|
+
refusal: string;
|
|
177
|
+
data: Record<string, unknown>;
|
|
178
|
+
configFile: string | null;
|
|
179
|
+
}, refusal: import("../../sdk/extension/lifecycle.ts").RefusalContent]>;
|
|
282
180
|
runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
|
|
283
181
|
failure: {
|
|
284
182
|
kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
|
|
@@ -326,26 +224,10 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
326
224
|
submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
|
|
327
225
|
paths: string[];
|
|
328
226
|
}]>;
|
|
329
|
-
tokenRequestFailed: import("@vercel/clinkr").SharedError<"token_request_failed", [{
|
|
330
|
-
cause: "request-failed" | "variables-missing";
|
|
331
|
-
missing: ("ACTIONS_ID_TOKEN_REQUEST_TOKEN" | "ACTIONS_ID_TOKEN_REQUEST_URL")[] | null;
|
|
332
|
-
status: number | null;
|
|
333
|
-
said: string | null;
|
|
334
|
-
detail: string;
|
|
335
|
-
fix: string;
|
|
336
|
-
ttlMinutes: number;
|
|
337
|
-
failedCreates: {
|
|
338
|
-
kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
|
|
339
|
-
detail: string | null;
|
|
340
|
-
}[];
|
|
341
|
-
sandboxMayExist: boolean;
|
|
342
|
-
} & {
|
|
343
|
-
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
344
|
-
}]>;
|
|
345
227
|
}, {
|
|
346
228
|
readonly noMatchingTests: {
|
|
347
229
|
readonly exitCode: 1;
|
|
348
|
-
readonly description: "vitest list found no test for the arguments given to vitest run, so nothing was minted,
|
|
230
|
+
readonly description: "vitest list found no test for the arguments given to vitest run, so nothing was minted, acquired or started.";
|
|
349
231
|
readonly schema: z.ZodObject<{
|
|
350
232
|
args: z.ZodArray<z.ZodString>;
|
|
351
233
|
cwd: z.ZodString;
|
|
@@ -363,7 +245,7 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
363
245
|
};
|
|
364
246
|
readonly vitestListFailed: {
|
|
365
247
|
readonly exitCode: 1;
|
|
366
|
-
readonly description: "storm couldn't count the tests before the run: vitest wasn't found or failed to start, didn't finish within 60s, exited other than 0, or printed something other than a list of tests. Nothing was minted,
|
|
248
|
+
readonly description: "storm couldn't count the tests before the run: vitest wasn't found or failed to start, didn't finish within 60s, exited other than 0, or printed something other than a list of tests. Nothing was minted, acquired or started.";
|
|
367
249
|
readonly schema: z.ZodObject<{
|
|
368
250
|
args: z.ZodArray<z.ZodString>;
|
|
369
251
|
cwd: z.ZodString;
|
|
@@ -388,52 +270,10 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
388
270
|
}[];
|
|
389
271
|
};
|
|
390
272
|
};
|
|
391
|
-
readonly credentialRejected: import("@vercel/clinkr").SharedError<"credential_rejected", [{
|
|
392
|
-
origin: {
|
|
393
|
-
source: "mint";
|
|
394
|
-
team: string;
|
|
395
|
-
project: string;
|
|
396
|
-
} | {
|
|
397
|
-
source: "github-actions";
|
|
398
|
-
claims: {
|
|
399
|
-
aud: string;
|
|
400
|
-
repository: string;
|
|
401
|
-
} | null;
|
|
402
|
-
};
|
|
403
|
-
fix: string;
|
|
404
|
-
status: number;
|
|
405
|
-
vercelId: string | null;
|
|
406
|
-
ttlMinutes: number;
|
|
407
|
-
failedCreates: {
|
|
408
|
-
kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
|
|
409
|
-
detail: string | null;
|
|
410
|
-
}[];
|
|
411
|
-
unpooled: {
|
|
412
|
-
testserverUrl: string;
|
|
413
|
-
path: string;
|
|
414
|
-
message: string;
|
|
415
|
-
}[];
|
|
416
|
-
sandboxMayExist: boolean;
|
|
417
|
-
} & {
|
|
418
|
-
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
419
|
-
}]>;
|
|
420
273
|
readonly credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
|
|
421
274
|
flags: string[];
|
|
422
275
|
configFile: string | null;
|
|
423
276
|
}]>;
|
|
424
|
-
readonly githubFixtureRepoUnavailable: import("@vercel/clinkr").SharedError<"github_fixture_repo_unavailable", [{
|
|
425
|
-
repo: string;
|
|
426
|
-
status: number | null;
|
|
427
|
-
message: string;
|
|
428
|
-
} & {
|
|
429
|
-
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
430
|
-
}]>;
|
|
431
|
-
readonly githubTokenMissing: import("@vercel/clinkr").SharedError<"github_token_missing", [data: {
|
|
432
|
-
tokenEnv: string;
|
|
433
|
-
repo: string;
|
|
434
|
-
configFile: string | null;
|
|
435
|
-
requiredBy: "config" | "set";
|
|
436
|
-
}]>;
|
|
437
277
|
readonly invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
|
|
438
278
|
file: string;
|
|
439
279
|
problems: {
|
|
@@ -477,72 +317,18 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
477
317
|
reason: "missing" | "unrelated";
|
|
478
318
|
}[];
|
|
479
319
|
}]>;
|
|
480
|
-
readonly
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
requested: number;
|
|
493
|
-
build: string;
|
|
494
|
-
} & {
|
|
495
|
-
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
496
|
-
}]>;
|
|
497
|
-
readonly poolUnavailable: import("@vercel/clinkr").SharedError<"pool_unavailable", [data: {
|
|
498
|
-
path: string;
|
|
499
|
-
message: string;
|
|
500
|
-
}]>;
|
|
501
|
-
readonly poolUnreadable: import("@vercel/clinkr").SharedError<"pool_unreadable", [{
|
|
502
|
-
path: string;
|
|
503
|
-
message: string;
|
|
504
|
-
} & {
|
|
505
|
-
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
506
|
-
}]>;
|
|
507
|
-
readonly prBuildExpired: import("@vercel/clinkr").SharedError<"pr_build_expired", [{
|
|
508
|
-
pr: number;
|
|
509
|
-
headSha: string;
|
|
510
|
-
build: string;
|
|
511
|
-
expiresAt: string;
|
|
512
|
-
} & {
|
|
513
|
-
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
514
|
-
}]>;
|
|
515
|
-
readonly prBuildNotReady: import("@vercel/clinkr").SharedError<"pr_build_not_ready", [{
|
|
516
|
-
pr: number;
|
|
517
|
-
headSha: string;
|
|
518
|
-
newest: {
|
|
519
|
-
build: string;
|
|
520
|
-
headSha: string;
|
|
521
|
-
createdAt: string;
|
|
522
|
-
} | null;
|
|
523
|
-
} & {
|
|
524
|
-
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
525
|
-
}]>;
|
|
526
|
-
readonly prBuildsUnlisted: import("@vercel/clinkr").SharedError<"pr_builds_unlisted", [{
|
|
527
|
-
pr: number;
|
|
528
|
-
failure: {
|
|
529
|
-
kind: "connect-failed" | "http-error" | "malformed" | "not-found" | "rejected" | "timeout";
|
|
530
|
-
status: number | null;
|
|
531
|
-
detail: string;
|
|
532
|
-
};
|
|
533
|
-
} & {
|
|
534
|
-
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
535
|
-
}]>;
|
|
536
|
-
readonly pullRequestUnreadable: import("@vercel/clinkr").SharedError<"pull_request_unreadable", [{
|
|
537
|
-
pr: number;
|
|
538
|
-
repo: string;
|
|
539
|
-
kind: "connect-failed" | "http-error" | "malformed" | "no-token" | "not-found" | "rejected" | "timeout";
|
|
540
|
-
status: number | null;
|
|
541
|
-
message: string | null;
|
|
542
|
-
tokenOrigin: "GH_TOKEN" | "GITHUB_TOKEN" | "gh auth token" | null;
|
|
543
|
-
} & {
|
|
544
|
-
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
545
|
-
}]>;
|
|
320
|
+
readonly resourceRefused: import("@vercel/clinkr").SharedError<"resource_refused", [data: {
|
|
321
|
+
resource: string;
|
|
322
|
+
refusal: string;
|
|
323
|
+
data: Record<string, unknown>;
|
|
324
|
+
cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
325
|
+
}, refusal: import("../../sdk/extension/lifecycle.ts").RefusalContent]>;
|
|
326
|
+
readonly resourceRefusedBeforeRun: import("@vercel/clinkr").SharedError<"resource_refused_before_run", [data: {
|
|
327
|
+
resource: string;
|
|
328
|
+
refusal: string;
|
|
329
|
+
data: Record<string, unknown>;
|
|
330
|
+
configFile: string | null;
|
|
331
|
+
}, refusal: import("../../sdk/extension/lifecycle.ts").RefusalContent]>;
|
|
546
332
|
readonly runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
|
|
547
333
|
failure: {
|
|
548
334
|
kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
|
|
@@ -590,20 +376,4 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
590
376
|
readonly submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
|
|
591
377
|
paths: string[];
|
|
592
378
|
}]>;
|
|
593
|
-
readonly tokenRequestFailed: import("@vercel/clinkr").SharedError<"token_request_failed", [{
|
|
594
|
-
cause: "request-failed" | "variables-missing";
|
|
595
|
-
missing: ("ACTIONS_ID_TOKEN_REQUEST_TOKEN" | "ACTIONS_ID_TOKEN_REQUEST_URL")[] | null;
|
|
596
|
-
status: number | null;
|
|
597
|
-
said: string | null;
|
|
598
|
-
detail: string;
|
|
599
|
-
fix: string;
|
|
600
|
-
ttlMinutes: number;
|
|
601
|
-
failedCreates: {
|
|
602
|
-
kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
|
|
603
|
-
detail: string | null;
|
|
604
|
-
}[];
|
|
605
|
-
sandboxMayExist: boolean;
|
|
606
|
-
} & {
|
|
607
|
-
readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
|
|
608
|
-
}]>;
|
|
609
379
|
}>;
|
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
import { defineOutcomes } from "@vercel/clinkr";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { RAN_DESCRIPTION, RUN_ERRORS, ranSchema, renderRan } from "../exec/outcomes.js";
|
|
4
|
-
|
|
5
|
-
const planSchema = z.object({
|
|
6
|
-
/** How many tests `vitest list --json <args>` counted. */
|
|
7
|
-
tests: z.number(),
|
|
8
|
-
/** How many distinct test files they are in. */
|
|
9
|
-
files: z.number(),
|
|
10
|
-
/** How many Testserver sandboxes the run asked for; null without a Testserver side. */
|
|
11
|
-
sandboxes: z.number().nullable(),
|
|
12
|
-
/** Where that count came from: `--testserver-sandboxes` (`flag`), `resources.testserverPool.sandboxes` in storm.config.ts (`file`), or one per 4 test files, at most 8 (`auto`); null without a Testserver side. */
|
|
13
|
-
sandboxesFrom: z.enum(["flag", "file", "auto"]).nullable(),
|
|
14
|
-
});
|
|
4
|
+
import { planSchema } from "../../run-directory/index.js";
|
|
15
5
|
/** Where `vitest list` ran and what it was given, which both refusals report. */
|
|
16
6
|
const listedShape = {
|
|
17
7
|
/** The arguments given to `vitest run`, which `vitest list --json` was given too. */
|
|
@@ -24,7 +14,10 @@ export const outcomes = defineOutcomes({
|
|
|
24
14
|
results: {
|
|
25
15
|
ran: {
|
|
26
16
|
schema: ranSchema.extend({
|
|
27
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* The test plan: what `vitest list` counted before the run, and each resource option whose default is a
|
|
19
|
+
* function of it, with its value and where that came from.
|
|
20
|
+
*/
|
|
28
21
|
plan: planSchema,
|
|
29
22
|
}),
|
|
30
23
|
description: RAN_DESCRIPTION,
|
|
@@ -35,7 +28,7 @@ export const outcomes = defineOutcomes({
|
|
|
35
28
|
...RUN_ERRORS,
|
|
36
29
|
noMatchingTests: {
|
|
37
30
|
exitCode: 1,
|
|
38
|
-
description: "vitest list found no test for the arguments given to vitest run, so nothing was minted,
|
|
31
|
+
description: "vitest list found no test for the arguments given to vitest run, so nothing was minted, acquired or started.",
|
|
39
32
|
schema: z.object(listedShape),
|
|
40
33
|
render: ({ args, cwd }) => ({
|
|
41
34
|
message: `vitest list found no test for vitest run ${argsText(args)} in ${cwd}. The command didn't run.`,
|
|
@@ -49,7 +42,7 @@ export const outcomes = defineOutcomes({
|
|
|
49
42
|
},
|
|
50
43
|
vitestListFailed: {
|
|
51
44
|
exitCode: 1,
|
|
52
|
-
description: "storm couldn't count the tests before the run: vitest wasn't found or failed to start, didn't finish within 60s, exited other than 0, or printed something other than a list of tests. Nothing was minted,
|
|
45
|
+
description: "storm couldn't count the tests before the run: vitest wasn't found or failed to start, didn't finish within 60s, exited other than 0, or printed something other than a list of tests. Nothing was minted, acquired or started.",
|
|
53
46
|
schema: z.object({
|
|
54
47
|
/** How listing failed: vitest wasn't found or couldn't start (`start-failed`), didn't finish (`timed-out`), exited other than 0 (`exited`), or printed something other than a list of tests (`unreadable-output`). */
|
|
55
48
|
kind: z.enum(["start-failed", "timed-out", "exited", "unreadable-output"]),
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { type Refusable } from "@vercel/clinkr";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { type Credential, type CredentialContext, type CredentialFailure, type CredentialOrigin, type CredentialSourceChoice } from "../credential/index.ts";
|
|
4
|
+
import { type credentialErrors } from "./credential-settle.ts";
|
|
5
|
+
/**
|
|
6
|
+
* The errors a credential source's `obtain()` refuses with. A command that obtains a credential spreads them into its
|
|
7
|
+
* outcomes.
|
|
8
|
+
*/
|
|
9
|
+
export declare const credentialSourceErrors: import("@vercel/clinkr").SharedErrors<{
|
|
10
|
+
mintFailed: z.ZodObject<{
|
|
11
|
+
team: z.ZodString;
|
|
12
|
+
project: z.ZodString;
|
|
13
|
+
cause: z.ZodString;
|
|
14
|
+
fix: z.ZodString;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
tokenRequestFailed: z.ZodObject<{
|
|
17
|
+
cause: z.ZodEnum<{
|
|
18
|
+
"request-failed": "request-failed";
|
|
19
|
+
"variables-missing": "variables-missing";
|
|
20
|
+
}>;
|
|
21
|
+
missing: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
22
|
+
ACTIONS_ID_TOKEN_REQUEST_TOKEN: "ACTIONS_ID_TOKEN_REQUEST_TOKEN";
|
|
23
|
+
ACTIONS_ID_TOKEN_REQUEST_URL: "ACTIONS_ID_TOKEN_REQUEST_URL";
|
|
24
|
+
}>>>;
|
|
25
|
+
status: z.ZodNullable<z.ZodNumber>;
|
|
26
|
+
said: z.ZodNullable<z.ZodString>;
|
|
27
|
+
detail: z.ZodString;
|
|
28
|
+
fix: z.ZodString;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
}, {
|
|
31
|
+
readonly mintFailed: {
|
|
32
|
+
readonly exitCode: 1;
|
|
33
|
+
readonly description: "The vercel CLI couldn't mint a credential for the team and project.";
|
|
34
|
+
readonly schema: z.ZodObject<{
|
|
35
|
+
team: z.ZodString;
|
|
36
|
+
project: z.ZodString;
|
|
37
|
+
cause: z.ZodString;
|
|
38
|
+
fix: z.ZodString;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
readonly render: ({ cause, fix }: {
|
|
41
|
+
team: string;
|
|
42
|
+
project: string;
|
|
43
|
+
cause: string;
|
|
44
|
+
fix: string;
|
|
45
|
+
}) => {
|
|
46
|
+
message: string;
|
|
47
|
+
next: {
|
|
48
|
+
type: "text";
|
|
49
|
+
text: string;
|
|
50
|
+
}[];
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
readonly tokenRequestFailed: {
|
|
54
|
+
readonly exitCode: 1;
|
|
55
|
+
readonly description: "With --credential github-actions, the GitHub Actions OIDC token request failed.";
|
|
56
|
+
readonly schema: z.ZodObject<{
|
|
57
|
+
cause: z.ZodEnum<{
|
|
58
|
+
"request-failed": "request-failed";
|
|
59
|
+
"variables-missing": "variables-missing";
|
|
60
|
+
}>;
|
|
61
|
+
missing: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
62
|
+
ACTIONS_ID_TOKEN_REQUEST_TOKEN: "ACTIONS_ID_TOKEN_REQUEST_TOKEN";
|
|
63
|
+
ACTIONS_ID_TOKEN_REQUEST_URL: "ACTIONS_ID_TOKEN_REQUEST_URL";
|
|
64
|
+
}>>>;
|
|
65
|
+
status: z.ZodNullable<z.ZodNumber>;
|
|
66
|
+
said: z.ZodNullable<z.ZodString>;
|
|
67
|
+
detail: z.ZodString;
|
|
68
|
+
fix: z.ZodString;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
readonly render: ({ detail, fix }: {
|
|
71
|
+
cause: "request-failed" | "variables-missing";
|
|
72
|
+
missing: ("ACTIONS_ID_TOKEN_REQUEST_TOKEN" | "ACTIONS_ID_TOKEN_REQUEST_URL")[] | null;
|
|
73
|
+
status: number | null;
|
|
74
|
+
said: string | null;
|
|
75
|
+
detail: string;
|
|
76
|
+
fix: string;
|
|
77
|
+
}) => {
|
|
78
|
+
message: string;
|
|
79
|
+
next: {
|
|
80
|
+
type: "text";
|
|
81
|
+
text: string;
|
|
82
|
+
}[];
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
}>;
|
|
86
|
+
/** The error a credential source's `obtain()` refuses with. */
|
|
87
|
+
export type CredentialSourceError = ReturnType<typeof credentialSourceErrors.mintFailed> | ReturnType<typeof credentialSourceErrors.tokenRequestFailed>;
|
|
88
|
+
/** A credential source's failure as the error `obtain()` refuses with. */
|
|
89
|
+
export declare function credentialSourceError(failure: CredentialFailure): CredentialSourceError;
|
|
90
|
+
/** A credential source as a command gets it from the credential launcher resolver. */
|
|
91
|
+
export interface CommandCredentialSource {
|
|
92
|
+
/**
|
|
93
|
+
* A credential to use now, getting one first if the source holds none it would hand out, or the error to end the
|
|
94
|
+
* command with: `mint_failed` or `token_request_failed`.
|
|
95
|
+
*/
|
|
96
|
+
obtain(): Promise<Refusable<{
|
|
97
|
+
readonly credential: Credential;
|
|
98
|
+
}, CredentialSourceError>>;
|
|
99
|
+
/** Where a credential this source gave came from. */
|
|
100
|
+
origin(credential: Credential): CredentialOrigin;
|
|
101
|
+
}
|
|
102
|
+
/** A setting a command resolved, from a flag or the config file; only its value matters here. */
|
|
103
|
+
interface GivenSetting {
|
|
104
|
+
readonly value: string;
|
|
105
|
+
}
|
|
106
|
+
/** The control plane team and project a command resolved, each unset when nothing gave it. */
|
|
107
|
+
export interface CredentialTarget {
|
|
108
|
+
readonly scope: GivenSetting | undefined;
|
|
109
|
+
readonly project: GivenSetting | undefined;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* How a command shows a credential source's steps: one line before each mint or token request, from the source's
|
|
113
|
+
* `minting` and `requesting-token` events; its `minted` event shows nothing.
|
|
114
|
+
*/
|
|
115
|
+
export interface CredentialReport {
|
|
116
|
+
readonly progress?: ((line: string) => Promise<void>) | undefined;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* The credential launcher resolver. A command that uses it spreads `credentialErrors` and `credentialSourceErrors` into
|
|
120
|
+
* its outcomes.
|
|
121
|
+
*/
|
|
122
|
+
export interface CredentialResolver {
|
|
123
|
+
/**
|
|
124
|
+
* The credential source `choice` names. The mint needs the target's team and project, and refuses with
|
|
125
|
+
* `missing_target` without either; a GitHub Actions OIDC token request needs neither. It gets nothing until
|
|
126
|
+
* `obtain()`.
|
|
127
|
+
*/
|
|
128
|
+
source(choice: CredentialSourceChoice["source"], target: CredentialTarget, report?: CredentialReport): Refusable<{
|
|
129
|
+
readonly source: CommandCredentialSource;
|
|
130
|
+
}, ReturnType<typeof credentialErrors.missingTarget>>;
|
|
131
|
+
}
|
|
132
|
+
/** The credential launcher resolver over `gateways`. */
|
|
133
|
+
export declare function credentialResolver(gateways: CredentialContext): CredentialResolver;
|
|
134
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// The credential launcher resolver: how a command gets the credential source `--credential` names, and then a
|
|
2
|
+
// credential, without settling the choice or building the source itself, and the errors a source's `obtain()` refuses
|
|
3
|
+
// a command with: the mint failed (`mint_failed`), or the GitHub Actions OIDC token request did
|
|
4
|
+
// (`token_request_failed`). The launcher builds it once, over its credential gateways, clock and timer, and hands it to
|
|
5
|
+
// every command. It lives in `config`, beside the config launcher resolver, and not in `credential`, since it loads
|
|
6
|
+
// Clinkr and the `credential` module loads none.
|
|
7
|
+
import { defineErrors } from "@vercel/clinkr";
|
|
8
|
+
import { z } from "zod";
|
|
9
|
+
import { credentialSourceFor, describeMintFailure, mintTargetText, REQUESTING_TOKEN_LINE, tokenRequestFailureFacts, tokenRequestFailureShape, } from "../credential/index.js";
|
|
10
|
+
import { settleCredential } from "./credential-settle.js";
|
|
11
|
+
/**
|
|
12
|
+
* The errors a credential source's `obtain()` refuses with. A command that obtains a credential spreads them into its
|
|
13
|
+
* outcomes.
|
|
14
|
+
*/
|
|
15
|
+
export const credentialSourceErrors = defineErrors({
|
|
16
|
+
mintFailed: {
|
|
17
|
+
exitCode: 1,
|
|
18
|
+
description: "The vercel CLI couldn't mint a credential for the team and project.",
|
|
19
|
+
schema: z.object({ team: z.string(), project: z.string(), cause: z.string(), fix: z.string() }),
|
|
20
|
+
render: ({ cause, fix }) => ({
|
|
21
|
+
message: `Couldn't mint a credential: ${cause}.`,
|
|
22
|
+
next: [{ type: "text", text: fix }],
|
|
23
|
+
}),
|
|
24
|
+
},
|
|
25
|
+
tokenRequestFailed: {
|
|
26
|
+
exitCode: 1,
|
|
27
|
+
description: "With --credential github-actions, the GitHub Actions OIDC token request failed.",
|
|
28
|
+
schema: z.object(tokenRequestFailureShape),
|
|
29
|
+
render: ({ detail, fix }) => ({
|
|
30
|
+
message: `Couldn't request a GitHub Actions OIDC token: ${detail}.`,
|
|
31
|
+
next: [{ type: "text", text: fix }],
|
|
32
|
+
}),
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
/** A credential source's failure as the error `obtain()` refuses with. */
|
|
36
|
+
export function credentialSourceError(failure) {
|
|
37
|
+
return failure.source === "mint"
|
|
38
|
+
? credentialSourceErrors.mintFailed({ ...failure.target, ...describeMintFailure(failure.failure, failure.target) })
|
|
39
|
+
: credentialSourceErrors.tokenRequestFailed(tokenRequestFailureFacts(failure.failure));
|
|
40
|
+
}
|
|
41
|
+
/** The credential launcher resolver over `gateways`. */
|
|
42
|
+
export function credentialResolver(gateways) {
|
|
43
|
+
return {
|
|
44
|
+
source(choice, target, report = {}) {
|
|
45
|
+
const chosen = settleCredential(choice, target.scope, target.project);
|
|
46
|
+
if (!chosen.ok)
|
|
47
|
+
return chosen;
|
|
48
|
+
const { progress } = report;
|
|
49
|
+
// The source's events as the command's lines: one before the mint and one before each token request.
|
|
50
|
+
const source = credentialSourceFor(chosen.credential, gateways, {
|
|
51
|
+
emit: async (event) => {
|
|
52
|
+
if (event.kind === "minting")
|
|
53
|
+
await progress?.(`Minting a credential for ${mintTargetText(event.target)}…`);
|
|
54
|
+
else if (event.kind === "requesting-token")
|
|
55
|
+
await progress?.(REQUESTING_TOKEN_LINE);
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
return {
|
|
59
|
+
ok: true,
|
|
60
|
+
source: {
|
|
61
|
+
async obtain() {
|
|
62
|
+
const got = await source.obtain();
|
|
63
|
+
return got.ok ? got : { ok: false, refusal: credentialSourceError(got.failure) };
|
|
64
|
+
},
|
|
65
|
+
origin: (credential) => source.origin(credential),
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
}
|