@cnc-tools/storm 0.11.0 → 0.12.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/dist/bin/storm.js +7 -12
- package/dist/build-info.js +1 -1
- package/dist/chunks/{chunk-3ZZVZPMG.js → chunk-43MWZLJR.js} +1 -1
- package/dist/chunks/chunk-4XT5RC5T.js +98 -0
- package/dist/chunks/chunk-7D6LC5JY.js +340 -0
- package/dist/chunks/{chunk-ETCZ6WP7.js → chunk-BW2ADH7U.js} +1 -1
- package/dist/chunks/chunk-FK4RLDEK.js +40 -0
- package/dist/chunks/{chunk-KR7WIYLG.js → chunk-FSP3SJ35.js} +209 -964
- package/dist/chunks/chunk-GQIL3AHY.js +20 -0
- package/dist/chunks/{chunk-ICB4BZJX.js → chunk-GSC6SRTW.js} +7 -2
- package/dist/chunks/{chunk-NPPJ57W7.js → chunk-ISGQJIQM.js} +498 -215
- package/dist/chunks/{chunk-OJOKQRM6.js → chunk-IYM44FUX.js} +30 -26
- package/dist/chunks/{chunk-GRMD7G4J.js → chunk-LQKNI3EG.js} +6 -5
- package/dist/chunks/chunk-NMVODY3P.js +19 -0
- package/dist/chunks/{chunk-O4BUT7BE.js → chunk-ODQHQJLE.js} +3063 -2646
- package/dist/chunks/chunk-RYRJNHL7.js +55 -0
- package/dist/chunks/chunk-SXW6XN4R.js +161 -0
- package/dist/chunks/{chunk-L4ZPMSKQ.js → chunk-T6AZIDZD.js} +43 -363
- package/dist/chunks/chunk-TEEZL3GA.js +851 -0
- package/dist/chunks/{chunk-VZZTHCBW.js → chunk-TMQQYHUX.js} +5 -18
- package/dist/chunks/{chunk-TRFEAYNC.js → chunk-U7M3ZB3Z.js} +345 -304
- package/dist/chunks/{chunk-4EU4AH7E.js → chunk-Y3BUNNRG.js} +186 -144
- package/dist/chunks/{chunk-4PRAB24Y.js → chunk-YM6TZV4L.js} +394 -396
- package/dist/chunks/{chunk-AMTYHUYB.js → chunk-YT5OROR7.js} +22 -8
- package/dist/chunks/{live-app-LOGYUBKB.js → live-app-AZ5N5HBD.js} +25 -46
- package/dist/command-tree.d.ts +4 -1
- package/dist/command-tree.js +4 -1
- package/dist/commands/exec/cleanup.js +4 -4
- package/dist/commands/exec/command.d.ts +54 -15
- package/dist/commands/exec/command.js +51 -46
- package/dist/commands/exec/define-run-command.d.ts +752 -0
- package/dist/commands/exec/define-run-command.js +58 -0
- package/dist/commands/exec/driver-plan.d.ts +30 -0
- package/dist/commands/exec/driver-plan.js +44 -0
- package/dist/commands/exec/driver-refusals.d.ts +89 -0
- package/dist/commands/exec/driver-refusals.js +65 -0
- package/dist/commands/exec/exec-words.d.ts +5 -0
- package/dist/commands/exec/exec-words.js +31 -0
- package/dist/commands/exec/live-view.js +58 -28
- package/dist/commands/exec/mint-failed.js +4 -4
- package/dist/commands/exec/outcomes.d.ts +70 -8
- package/dist/commands/exec/outcomes.js +37 -8
- package/dist/commands/exec/plan-run.js +3 -3
- package/dist/commands/exec/progress.d.ts +35 -15
- package/dist/commands/exec/progress.js +82 -57
- package/dist/commands/exec/resource-flags.d.ts +10 -3
- package/dist/commands/exec/resource-flags.js +25 -14
- package/dist/commands/exec/resource-refusals.d.ts +1 -1
- package/dist/commands/exec/resource-refusals.js +9 -9
- package/dist/commands/exec/run-bin.d.ts +35 -0
- package/dist/commands/exec/run-bin.js +32 -0
- package/dist/commands/exec/run-command.d.ts +84 -24
- package/dist/commands/exec/run-command.js +84 -69
- package/dist/commands/exec/run-metadata.d.ts +29 -17
- package/dist/commands/exec/run-metadata.js +38 -16
- package/dist/commands/exec/snapshot-text.d.ts +40 -0
- package/dist/commands/exec/snapshot-text.js +112 -0
- package/dist/commands/exec/test-plan.d.ts +2 -2
- package/dist/commands/exec/test-plan.js +11 -8
- package/dist/commands/exec/tests-summary.d.ts +21 -12
- package/dist/commands/exec/tests-summary.js +67 -39
- package/dist/commands/exec/text.d.ts +5 -0
- package/dist/commands/exec/text.js +7 -0
- package/dist/commands/exec/view.js +22 -13
- package/dist/commands/exec/waterfall.js +4 -4
- package/dist/commands/exec/worker-chart.d.ts +19 -11
- package/dist/commands/exec/worker-chart.js +66 -36
- package/dist/commands/playwright/command.d.ts +746 -0
- package/dist/commands/playwright/command.js +31 -0
- package/dist/commands/playwright/metadata.js +8 -0
- package/dist/commands/runs/facts.d.ts +21 -8
- package/dist/commands/runs/facts.js +19 -9
- package/dist/commands/runs/list/command.d.ts +34 -8
- package/dist/commands/runs/list/command.js +15 -11
- package/dist/commands/runs/list/outcomes.d.ts +17 -4
- package/dist/commands/runs/logs/command.js +13 -9
- package/dist/commands/runs/logs/outcomes.js +1 -1
- package/dist/commands/runs/show/command.d.ts +36 -8
- package/dist/commands/runs/show/command.js +48 -31
- package/dist/commands/runs/show/metadata.js +1 -1
- package/dist/commands/runs/show/outcomes.d.ts +18 -4
- package/dist/commands/runs/show/outcomes.js +35 -14
- package/dist/commands/snapshots/build/command.d.ts +898 -0
- package/dist/commands/snapshots/build/command.js +511 -0
- package/dist/commands/snapshots/build/metadata.d.ts +28 -0
- package/dist/commands/snapshots/build/metadata.js +34 -0
- package/dist/commands/snapshots/build/outcomes.d.ts +484 -0
- package/dist/commands/snapshots/build/outcomes.js +322 -0
- package/dist/commands/snapshots/list/command.d.ts +272 -0
- package/dist/commands/snapshots/list/command.js +305 -0
- package/dist/commands/snapshots/list/metadata.d.ts +16 -0
- package/dist/commands/snapshots/list/metadata.js +24 -0
- package/dist/commands/snapshots/list/outcomes.d.ts +183 -0
- package/dist/commands/snapshots/list/outcomes.js +257 -0
- package/dist/commands/snapshots/metadata.d.ts +3 -0
- package/dist/commands/snapshots/metadata.js +7 -0
- package/dist/commands/vitest/command.d.ts +267 -298
- package/dist/commands/vitest/command.js +23 -181
- package/dist/commands/vitest/metadata.js +1 -1
- package/dist/config-file/define.d.ts +1 -1
- package/dist/context.d.ts +32 -30
- package/dist/context.js +13 -17
- package/dist/core/before-run.d.ts +5 -5
- package/dist/core/before-run.js +8 -8
- package/dist/core/definition-lookup.d.ts +5 -5
- package/dist/core/definition-lookup.js +13 -12
- package/dist/core/drivers-of.d.ts +23 -0
- package/dist/core/drivers-of.js +13 -0
- package/dist/core/events.d.ts +2 -4
- package/dist/core/gateways.d.ts +32 -24
- package/dist/core/index.d.ts +7 -5
- package/dist/core/index.js +9 -6
- package/dist/core/launcher-context.d.ts +11 -0
- package/dist/core/launcher-context.js +31 -0
- package/dist/core/live/package-bin-gateway.d.ts +6 -0
- package/dist/core/live/package-bin-gateway.js +24 -0
- package/dist/core/package-bin.d.ts +7 -0
- package/dist/core/package-bin.js +30 -0
- package/dist/core/presentations.d.ts +1 -1
- package/dist/core/presentations.js +6 -5
- package/dist/core/{resource-registry.d.ts → resource-definition-set.d.ts} +15 -14
- package/dist/core/resource-definition-set.js +31 -0
- package/dist/core/resource-reports.d.ts +1 -1
- package/dist/core/resource-reports.js +16 -15
- package/dist/core/resource.d.ts +4 -4
- package/dist/core/resources.d.ts +6 -6
- package/dist/core/resources.js +11 -11
- package/dist/core/run-state.d.ts +27 -16
- package/dist/core/run-state.js +50 -18
- package/dist/core/run.d.ts +33 -27
- package/dist/core/run.js +24 -19
- package/dist/core/setup-phases.d.ts +14 -0
- package/dist/core/setup-phases.js +24 -0
- package/dist/core/state-directory.d.ts +2 -2
- package/dist/core/state-directory.js +3 -3
- package/dist/core/timeline.d.ts +4 -2
- package/dist/core/timeline.js +11 -5
- package/dist/extension-commands.js +6 -10
- package/dist/extensions/github/{world.d.ts → context.d.ts} +1 -1
- package/dist/extensions/github/context.js +3 -0
- package/dist/extensions/github/definition.d.ts +1 -1
- package/dist/extensions/github/definition.js +3 -3
- package/dist/extensions/github/extension.d.ts +1 -1
- package/dist/extensions/github/index.d.ts +2 -2
- package/dist/extensions/github/index.js +4 -4
- package/dist/extensions/github/lifecycle.d.ts +3 -3
- package/dist/extensions/github/lifecycle.js +14 -14
- package/dist/extensions/github/live/context.d.ts +6 -0
- package/dist/extensions/github/live/context.js +16 -0
- package/dist/extensions/github/resource.d.ts +1 -1
- package/dist/extensions/playwright/driver.d.ts +8 -0
- package/dist/extensions/playwright/driver.js +60 -0
- package/dist/extensions/playwright/extension.d.ts +2 -0
- package/dist/extensions/playwright/extension.js +12 -0
- package/dist/extensions/playwright/plan/gateways.d.ts +62 -0
- package/dist/extensions/playwright/plan/gateways.js +4 -0
- package/dist/extensions/playwright/plan/list-output.d.ts +26 -0
- package/dist/extensions/playwright/plan/list-output.js +101 -0
- package/dist/extensions/playwright/plan/live/list-gateway.d.ts +15 -0
- package/dist/extensions/playwright/plan/live/list-gateway.js +100 -0
- package/dist/extensions/playwright/plan/plan.d.ts +44 -0
- package/dist/extensions/playwright/plan/plan.js +53 -0
- package/dist/extensions/testserver/command-tree.d.ts +1 -1
- package/dist/extensions/testserver/command-tree.js +2 -2
- package/dist/extensions/testserver/commands/app.d.ts +7 -7
- package/dist/extensions/testserver/commands/pool/create/command.d.ts +5 -5
- package/dist/extensions/testserver/commands/pool/create/command.js +12 -13
- package/dist/extensions/testserver/commands/pool/list/command.js +5 -6
- package/dist/extensions/testserver/{world.d.ts → context.d.ts} +1 -1
- package/dist/extensions/testserver/context.js +4 -0
- package/dist/extensions/testserver/definition.d.ts +2 -2
- package/dist/extensions/testserver/definition.js +8 -7
- package/dist/extensions/testserver/events.d.ts +1 -1
- package/dist/extensions/testserver/extension.d.ts +4 -3
- package/dist/extensions/testserver/extension.js +33 -20
- package/dist/extensions/testserver/index.d.ts +2 -2
- package/dist/extensions/testserver/index.js +2 -2
- package/dist/extensions/testserver/lifecycle.d.ts +6 -5
- package/dist/extensions/testserver/lifecycle.js +9 -8
- package/dist/extensions/testserver/live/context.d.ts +8 -0
- package/dist/extensions/testserver/live/{world.js → context.js} +6 -7
- package/dist/extensions/testserver/options/rules.d.ts +3 -3
- package/dist/extensions/testserver/options/rules.js +5 -4
- package/dist/extensions/testserver/options/sandboxes.d.ts +3 -2
- package/dist/extensions/testserver/options/sandboxes.js +3 -2
- package/dist/extensions/testserver/playwright/index.d.ts +33 -0
- package/dist/extensions/testserver/playwright/index.js +43 -0
- package/dist/extensions/testserver/presentation.d.ts +4 -4
- package/dist/extensions/testserver/presentation.js +7 -7
- package/dist/extensions/testserver/progress.d.ts +3 -3
- package/dist/extensions/testserver/progress.js +3 -3
- package/dist/extensions/testserver/provision.d.ts +2 -2
- package/dist/extensions/testserver/provision.js +10 -10
- package/dist/extensions/testserver/resource.d.ts +2 -2
- package/dist/extensions/testserver/result.d.ts +2 -2
- package/dist/extensions/testserver/result.js +1 -1
- package/dist/extensions/testserver/run/connection.d.ts +1 -1
- package/dist/extensions/testserver/run/connection.js +3 -3
- package/dist/extensions/testserver/run/sandbox.d.ts +31 -0
- package/dist/extensions/testserver/run/sandbox.js +58 -0
- package/dist/extensions/testserver/run-sandbox.d.ts +2 -2
- package/dist/extensions/testserver/run-sandbox.js +3 -3
- package/dist/extensions/testserver/vercel-cli/arguments.d.ts +2 -2
- package/dist/extensions/testserver/vercel-cli/arguments.js +6 -6
- package/dist/extensions/testserver/vercel-cli/auth-config.d.ts +7 -7
- package/dist/extensions/testserver/vercel-cli/auth-config.js +4 -4
- package/dist/extensions/testserver/vercel-cli/clock.js +1 -1
- package/dist/extensions/testserver/vercel-cli/config-files.js +1 -1
- package/dist/extensions/testserver/vercel-cli/context.d.ts +1 -1
- package/dist/extensions/testserver/vercel-cli/context.js +2 -2
- package/dist/extensions/testserver/vercel-cli/entry.d.ts +1 -1
- package/dist/extensions/testserver/vercel-cli/entry.js +1 -1
- package/dist/extensions/testserver/vercel-cli/environment.d.ts +5 -5
- package/dist/extensions/testserver/vercel-cli/environment.js +6 -6
- package/dist/extensions/testserver/vercel-cli/gateways.d.ts +1 -1
- package/dist/extensions/testserver/vercel-cli/gateways.js +3 -3
- package/dist/extensions/testserver/vercel-cli/index.d.ts +1 -1
- package/dist/extensions/testserver/vercel-cli/index.js +8 -9
- package/dist/extensions/testserver/vercel-cli/invocation.d.ts +13 -12
- package/dist/extensions/testserver/vercel-cli/invocation.js +1 -1
- package/dist/extensions/testserver/vercel-cli/{driver.d.ts → invoker.d.ts} +18 -17
- package/dist/extensions/testserver/vercel-cli/{driver.js → invoker.js} +8 -8
- package/dist/extensions/testserver/vercel-cli/live/config-files.d.ts +2 -2
- package/dist/extensions/testserver/vercel-cli/live/config-files.js +2 -2
- package/dist/extensions/testserver/vercel-cli/live/process-gateway.js +1 -1
- package/dist/extensions/testserver/vercel-cli/report.js +2 -2
- package/dist/extensions/testserver/vercel-cli/verbose.js +1 -1
- package/dist/extensions/testserver/vitest/config.d.ts +3 -3
- package/dist/extensions/testserver/vitest/config.js +5 -13
- package/dist/extensions/testserver/vitest/container-scope.d.ts +11 -11
- package/dist/extensions/testserver/vitest/container-scope.js +9 -9
- package/dist/extensions/testserver/vitest/container-start.d.ts +6 -6
- package/dist/extensions/testserver/vitest/container-start.js +14 -11
- package/dist/extensions/testserver/vitest/diagnostics.d.ts +1 -1
- package/dist/extensions/testserver/vitest/fixtures.d.ts +11 -11
- package/dist/extensions/testserver/vitest/fixtures.js +14 -23
- package/dist/extensions/testserver/vitest/index.d.ts +1 -1
- package/dist/extensions/testserver/vitest/index.js +4 -4
- package/dist/extensions/testserver/vitest/types.d.ts +16 -18
- package/dist/extensions/testserver/vitest/types.js +2 -2
- package/dist/extensions/testserver/vitest/worker-sandbox.d.ts +8 -0
- package/dist/extensions/testserver/vitest/worker-sandbox.js +17 -0
- package/dist/extensions/vitest/driver.d.ts +8 -0
- package/dist/extensions/vitest/driver.js +62 -0
- package/dist/extensions/vitest/extension.d.ts +2 -0
- package/dist/extensions/vitest/extension.js +8 -0
- package/dist/{vitest → extensions/vitest/plan}/gateways.d.ts +1 -26
- package/dist/extensions/vitest/plan/gateways.js +3 -0
- package/dist/{vitest → extensions/vitest/plan}/live/list-gateway.d.ts +1 -2
- package/dist/{vitest → extensions/vitest/plan}/live/list-gateway.js +1 -20
- package/dist/extensions/vitest/plan/plan-over.d.ts +38 -0
- package/dist/extensions/vitest/plan/plan-over.js +31 -0
- package/dist/extensions/vitest/plan/plan.d.ts +24 -0
- package/dist/{vitest → extensions/vitest/plan}/plan.js +11 -26
- package/dist/extensions.d.ts +40 -18
- package/dist/extensions.js +49 -22
- package/dist/forward-sigterm.js +1 -1
- package/dist/launcher-resolvers/index.d.ts +1 -1
- package/dist/launcher-resolvers/local-services.d.ts +9 -44
- package/dist/launcher-resolvers/local-services.js +4 -5
- package/dist/live-app.js +7 -6
- package/dist/local-services.d.ts +7 -15
- package/dist/local-services.js +8 -29
- package/dist/playwright/index.d.ts +1 -0
- package/dist/playwright/index.js +4 -0
- package/dist/playwright/reporter.d.ts +96 -0
- package/dist/playwright/reporter.js +162 -0
- package/dist/playwright/worker-index.d.ts +7 -0
- package/dist/playwright/worker-index.js +20 -0
- package/dist/run-directory/index.d.ts +1 -1
- package/dist/run-directory/index.js +3 -3
- package/dist/run-directory/plan.d.ts +3 -3
- package/dist/run-directory/plan.js +5 -5
- package/dist/run-directory/reader.js +2 -2
- package/dist/run-directory/recording.d.ts +8 -5
- package/dist/run-directory/recording.js +5 -5
- package/dist/run-directory/run-collector.d.ts +5 -5
- package/dist/run-directory/run-collector.js +5 -5
- package/dist/run-directory/run-record.d.ts +69 -24
- package/dist/run-directory/run-record.js +39 -19
- package/dist/run-directory/timeline-facts.d.ts +2 -1
- package/dist/run-directory/timeline-facts.js +4 -2
- package/dist/runner/build-snapshots.d.ts +179 -0
- package/dist/runner/build-snapshots.js +235 -0
- package/dist/runner/context.js +2 -1
- package/dist/runner/events.d.ts +71 -32
- package/dist/runner/gateways.d.ts +30 -10
- package/dist/runner/index.d.ts +8 -6
- package/dist/runner/index.js +5 -3
- package/dist/runner/live/checkout-gateway.js +15 -7
- package/dist/runner/live/snapshot-records.js +8 -7
- package/dist/runner/prepare.d.ts +24 -46
- package/dist/runner/prepare.js +27 -20
- package/dist/runner/ready.d.ts +43 -10
- package/dist/runner/ready.js +51 -34
- package/dist/runner/recipe.d.ts +42 -12
- package/dist/runner/recipe.js +36 -7
- package/dist/runner/scope.d.ts +5 -12
- package/dist/runner/scope.js +0 -4
- package/dist/runner/secrets.d.ts +6 -0
- package/dist/runner/secrets.js +10 -0
- package/dist/runner/session.d.ts +46 -18
- package/dist/runner/session.js +58 -29
- package/dist/runner/snapshot-build.d.ts +21 -11
- package/dist/runner/snapshot-build.js +11 -16
- package/dist/runner/snapshot-cache.d.ts +140 -62
- package/dist/runner/snapshot-cache.js +145 -102
- package/dist/runner/snapshot-inspect.d.ts +89 -0
- package/dist/runner/snapshot-inspect.js +173 -0
- package/dist/runner/snapshot-key.d.ts +5 -2
- package/dist/runner/snapshot-key.js +1 -1
- package/dist/runner/snapshot-save.d.ts +34 -20
- package/dist/runner/snapshot-save.js +46 -37
- package/dist/runner/snapshot-start.d.ts +25 -0
- package/dist/runner/snapshot-start.js +16 -0
- package/dist/sdk/extension/commands.d.ts +35 -17
- package/dist/sdk/extension/commands.js +13 -11
- package/dist/sdk/extension/driver.d.ts +143 -0
- package/dist/sdk/extension/driver.js +28 -0
- package/dist/sdk/extension/index.d.ts +2 -1
- package/dist/sdk/extension/index.js +15 -9
- package/dist/sdk/extension/{launcher-supplies.d.ts → launcher-context.d.ts} +3 -3
- package/dist/sdk/extension/launcher-context.js +5 -0
- package/dist/sdk/extension/lifecycle.d.ts +6 -5
- package/dist/sdk/extension/lifecycle.js +2 -2
- package/dist/sdk/extension/resource-definition.d.ts +13 -13
- package/dist/sdk/extension/resource-definition.js +2 -2
- package/dist/sdk/extension/resource.d.ts +13 -13
- package/dist/sdk/extension/resource.js +11 -11
- package/dist/sdk/extension/time.js +2 -2
- package/dist/sdk/index.d.ts +2 -0
- package/dist/sdk/index.js +3 -1
- package/dist/sdk/run/launcher.d.ts +1 -1
- package/dist/sdk/run/launcher.js +4 -3
- package/dist/sdk/run/payload.js +1 -1
- package/dist/sdk/run/test-events.d.ts +24 -18
- package/dist/sdk/run/test-events.js +5 -4
- package/dist/sdk/run/test-result-writer.d.ts +77 -0
- package/dist/sdk/run/test-result-writer.js +143 -0
- package/dist/sdk/run/worker-test-event-writer.d.ts +13 -0
- package/dist/sdk/run/worker-test-event-writer.js +31 -0
- package/dist/vendor/testserver-sdk/container/container.d.ts +1 -6
- package/dist/vendor/testserver-sdk/container/container.js +1 -5
- package/dist/vendor/testserver-sdk/factories/build.d.ts +12 -40
- package/dist/vendor/testserver-sdk/factories/build.js +15 -66
- package/dist/vendor/testserver-sdk/factories/gateways.d.ts +1 -2
- package/dist/vendor/testserver-sdk/factories/index.d.ts +1 -3
- package/dist/vendor/testserver-sdk/factories/index.js +3 -5
- package/dist/vendor/testserver-sdk/index.d.ts +1 -2
- package/dist/vendor/testserver-sdk/index.js +5 -6
- package/dist/vendor/testserver-sdk/records/body.d.ts +1 -1
- package/dist/vendor/testserver-sdk/records/body.js +1 -1
- package/dist/vitest/index.d.ts +2 -1
- package/dist/vitest/index.js +6 -4
- package/dist/vitest/test-events.d.ts +6 -16
- package/dist/vitest/test-events.js +15 -40
- package/dist/vitest/test-results.d.ts +9 -31
- package/dist/vitest/test-results.js +34 -105
- package/dist/vitest/worker-index.d.ts +6 -0
- package/dist/vitest/worker-index.js +17 -0
- package/package.json +23 -9
- package/skills/overview.md +6 -8
- package/skills/read-run-output.md +22 -7
- package/dist/chunks/chunk-FVMQKYTT.js +0 -10
- package/dist/chunks/chunk-SLNKW4ZM.js +0 -40
- package/dist/chunks/chunk-WNIQA5J6.js +0 -19
- package/dist/chunks/chunk-WSIF7SR6.js +0 -10
- package/dist/commands/vitest/outcomes.d.ts +0 -379
- package/dist/commands/vitest/outcomes.js +0 -70
- package/dist/core/launcher-supplies.d.ts +0 -11
- package/dist/core/launcher-supplies.js +0 -28
- package/dist/core/live/terminal-command-gateway.d.ts +0 -8
- package/dist/core/live/terminal-command-gateway.js +0 -49
- package/dist/core/resource-registry.js +0 -30
- package/dist/extensions/github/live/world.d.ts +0 -6
- package/dist/extensions/github/live/world.js +0 -16
- package/dist/extensions/github/world.js +0 -3
- package/dist/extensions/story/command-tree.d.ts +0 -6
- package/dist/extensions/story/command-tree.js +0 -21
- package/dist/extensions/story/commands/app.d.ts +0 -23
- package/dist/extensions/story/commands/app.js +0 -5
- package/dist/extensions/story/commands/run/command.d.ts +0 -211
- package/dist/extensions/story/commands/run/command.js +0 -259
- package/dist/extensions/story/commands/run/metadata.js +0 -8
- package/dist/extensions/story/commands/run/outcomes.d.ts +0 -101
- package/dist/extensions/story/commands/run/outcomes.js +0 -73
- package/dist/extensions/story/commands/tree.d.ts +0 -2
- package/dist/extensions/story/commands/tree.js +0 -6
- package/dist/extensions/story/extension.d.ts +0 -2
- package/dist/extensions/story/extension.js +0 -8
- package/dist/extensions/testserver/live/world.d.ts +0 -8
- package/dist/extensions/testserver/vitest/sandbox.d.ts +0 -25
- package/dist/extensions/testserver/vitest/sandbox.js +0 -43
- package/dist/extensions/testserver/world.js +0 -4
- package/dist/sdk/extension/launcher-supplies.js +0 -3
- package/dist/story/align.d.ts +0 -37
- package/dist/story/align.js +0 -39
- package/dist/story/command-line.d.ts +0 -24
- package/dist/story/command-line.js +0 -88
- package/dist/story/definition.d.ts +0 -59
- package/dist/story/definition.js +0 -9
- package/dist/story/diff.d.ts +0 -9
- package/dist/story/diff.js +0 -97
- package/dist/story/errors.d.ts +0 -14
- package/dist/story/errors.js +0 -21
- package/dist/story/gateways.d.ts +0 -94
- package/dist/story/gateways.js +0 -3
- package/dist/story/host.d.ts +0 -30
- package/dist/story/host.js +0 -97
- package/dist/story/index.d.ts +0 -8
- package/dist/story/index.js +0 -11
- package/dist/story/json.d.ts +0 -16
- package/dist/story/json.js +0 -59
- package/dist/story/launch.d.ts +0 -70
- package/dist/story/launch.js +0 -77
- package/dist/story/live/recording-gateway.d.ts +0 -2
- package/dist/story/live/recording-gateway.js +0 -103
- package/dist/story/orphans.d.ts +0 -35
- package/dist/story/orphans.js +0 -51
- package/dist/story/recording.d.ts +0 -62
- package/dist/story/recording.js +0 -97
- package/dist/story/report.d.ts +0 -42
- package/dist/story/report.js +0 -129
- package/dist/story/sequence.d.ts +0 -30
- package/dist/story/sequence.js +0 -74
- package/dist/story/settle.d.ts +0 -96
- package/dist/story/settle.js +0 -71
- package/dist/story/start.d.ts +0 -50
- package/dist/story/start.js +0 -183
- package/dist/vendor/testserver-sdk/factories/definition.d.ts +0 -39
- package/dist/vendor/testserver-sdk/factories/definition.js +0 -16
- package/dist/vendor/testserver-sdk/factories/definitions.d.ts +0 -169
- package/dist/vendor/testserver-sdk/factories/definitions.js +0 -245
- package/dist/vendor/testserver-sdk/seed/index.d.ts +0 -1
- package/dist/vendor/testserver-sdk/seed/index.js +0 -3
- package/dist/vendor/testserver-sdk/seed/seed.d.ts +0 -221
- package/dist/vendor/testserver-sdk/seed/seed.js +0 -171
- package/dist/vitest/find-vitest.d.ts +0 -7
- package/dist/vitest/find-vitest.js +0 -28
- package/dist/vitest/gateways.js +0 -4
- package/dist/vitest/plan.d.ts +0 -51
- /package/dist/{extensions/story/commands/run → commands/playwright}/metadata.d.ts +0 -0
- /package/dist/{vitest → extensions/vitest/plan}/list-output.d.ts +0 -0
- /package/dist/{vitest → extensions/vitest/plan}/list-output.js +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// The Testserver sandboxes a run leased or created, as its sandbox list, its facts and its command's
|
|
2
|
-
// connection name them.
|
|
1
|
+
// The Testserver sandboxes a run leased or created, as its Testserver sandbox list, its facts and its command's
|
|
2
|
+
// Testserver connection name them.
|
|
3
3
|
/** The Testserver connection the command gets for `sandboxes`: each Testserver sandbox's Testserver URL, once. */
|
|
4
4
|
export function testserverConnectionOf(sandboxes) {
|
|
5
5
|
return { sandboxes: [...new Set(sandboxes.map((sandbox) => sandbox.testserverUrl))].map((url) => ({ url })) };
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
|
-
* The launcher environment variables the Testserver pool hides from
|
|
8
|
+
* The launcher environment variables the Testserver pool hides from the command (`hiddenVariables`), so a stale
|
|
9
9
|
* value can't point the command at other Testserver sandboxes than the run payload names.
|
|
10
10
|
*/
|
|
11
11
|
export const STALE_TESTSERVER_VARIABLES = ["TESTSERVER_BASES", "TESTSERVER_BASE"];
|
|
@@ -2,8 +2,8 @@ import type { Redactor } from "./redaction.ts";
|
|
|
2
2
|
/**
|
|
3
3
|
* An invocation's `vercel` arguments: `args`, then the hidden `--api` flag pointing the CLI at the proxy, `--token`
|
|
4
4
|
* when a token is given, `--global-config`, and `--scope` when one is given. Throws a `TypeError` when `args` already
|
|
5
|
-
* passes a flag the
|
|
6
|
-
*
|
|
5
|
+
* passes a flag the invoker adds, `--token` included when no token is given, or a scope flag along with `scope`: the
|
|
6
|
+
* invoker never sends a flag twice, and owns how an invocation authenticates.
|
|
7
7
|
*/
|
|
8
8
|
export declare function vercelArguments(options: {
|
|
9
9
|
readonly args: readonly string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { REDACTED } from "../../../vendor/testserver-sdk/index.js";
|
|
2
|
-
/** Flags the
|
|
3
|
-
const
|
|
2
|
+
/** Flags the invoker adds to every invocation, so a call's arguments may not. */
|
|
3
|
+
const INVOKER_FLAGS = ["--api", "--token", "-t", "--global-config", "-Q"];
|
|
4
4
|
/** Flags that name the scope, which a call's arguments may not pass along with its `scope` option. */
|
|
5
5
|
const SCOPE_FLAGS = ["--scope", "-S", "--team"];
|
|
6
6
|
/** Flags whose next argument is a token. */
|
|
@@ -8,14 +8,14 @@ const TOKEN_FLAGS = new Set(["--token", "-t"]);
|
|
|
8
8
|
/**
|
|
9
9
|
* An invocation's `vercel` arguments: `args`, then the hidden `--api` flag pointing the CLI at the proxy, `--token`
|
|
10
10
|
* when a token is given, `--global-config`, and `--scope` when one is given. Throws a `TypeError` when `args` already
|
|
11
|
-
* passes a flag the
|
|
12
|
-
*
|
|
11
|
+
* passes a flag the invoker adds, `--token` included when no token is given, or a scope flag along with `scope`: the
|
|
12
|
+
* invoker never sends a flag twice, and owns how an invocation authenticates.
|
|
13
13
|
*/
|
|
14
14
|
export function vercelArguments(options) {
|
|
15
15
|
const given = flagsIn(options.args);
|
|
16
|
-
const owned =
|
|
16
|
+
const owned = INVOKER_FLAGS.filter((flag) => given.has(flag));
|
|
17
17
|
if (owned.length > 0) {
|
|
18
|
-
throw new TypeError(`vercel-cli: the
|
|
18
|
+
throw new TypeError(`vercel-cli: the invoker passes ${owned.join(", ")} itself; leave it out of the arguments`);
|
|
19
19
|
}
|
|
20
20
|
if (options.scope !== undefined) {
|
|
21
21
|
const scoped = SCOPE_FLAGS.filter((flag) => given.has(flag));
|
|
@@ -4,10 +4,10 @@ export declare const VERCEL_AUTH_MODES: readonly ["flag", "saved", "none"];
|
|
|
4
4
|
/**
|
|
5
5
|
* How an invocation authenticates:
|
|
6
6
|
*
|
|
7
|
-
* - `"flag"`: `--token <secret>`. The
|
|
8
|
-
* - `"saved"`: no `--token`. The
|
|
7
|
+
* - `"flag"`: `--token <secret>`. The invoker never touches `auth.json`.
|
|
8
|
+
* - `"saved"`: no `--token`. The invoker saves the token in `auth.json` first, so `vercel` reads it as it reads a
|
|
9
9
|
* `vercel login`: a saved login.
|
|
10
|
-
* - `"none"`: no `--token`, and none of the login keys (`LOGIN_KEYS`) in `auth.json`: a logged-out
|
|
10
|
+
* - `"none"`: no `--token`, and none of the login keys (`LOGIN_KEYS`) in `auth.json`: a logged-out invocation.
|
|
11
11
|
*/
|
|
12
12
|
export type VercelAuth = (typeof VERCEL_AUTH_MODES)[number];
|
|
13
13
|
/** How one invocation authenticates, resolved from its call: its mode, with the token it runs as unless logged out. */
|
|
@@ -20,18 +20,18 @@ export type Authentication = {
|
|
|
20
20
|
} | {
|
|
21
21
|
readonly mode: "none";
|
|
22
22
|
};
|
|
23
|
-
/** A saved login or a logged-out
|
|
23
|
+
/** A saved login or a logged-out invocation: an `Authentication` that needs `auth.json` to hold its token, or none. */
|
|
24
24
|
export type AuthFileAuthentication = Extract<Authentication, {
|
|
25
25
|
readonly mode: "saved" | "none";
|
|
26
26
|
}>;
|
|
27
27
|
/**
|
|
28
28
|
* Whether `a` and `b` need different `auth.json` contents, so they can't run at once: both are a saved login or a
|
|
29
|
-
* logged-out
|
|
29
|
+
* logged-out invocation, and one needs a token the other doesn't, or another token. `"flag"` needs nothing of the file.
|
|
30
30
|
*/
|
|
31
31
|
export declare function authFileConflict(a: Authentication, b: Authentication): boolean;
|
|
32
32
|
/**
|
|
33
|
-
* The `auth.json` keys a logged-out
|
|
34
|
-
* `expiresAt` belongs to them.
|
|
33
|
+
* The `auth.json` keys a logged-out invocation removes. `vercel` treats a `refreshToken` as a login as much as a
|
|
34
|
+
* `token`, and `expiresAt` belongs to them.
|
|
35
35
|
*/
|
|
36
36
|
export declare const LOGIN_KEYS: readonly ["token", "refreshToken", "expiresAt"];
|
|
37
37
|
/** Whether `config` already holds what `authentication` needs: its token, or none of the login keys. */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
// The ways an invocation authenticates, which decide what the
|
|
1
|
+
// The ways an invocation authenticates, which decide what the invoker leaves in the CLI's `auth.json`
|
|
2
2
|
// (`AUTH_CONFIG_FILE`, `config-files.ts`), as plain data.
|
|
3
3
|
/** The ways an invocation authenticates. */
|
|
4
4
|
export const VERCEL_AUTH_MODES = ["flag", "saved", "none"];
|
|
5
5
|
/**
|
|
6
6
|
* Whether `a` and `b` need different `auth.json` contents, so they can't run at once: both are a saved login or a
|
|
7
|
-
* logged-out
|
|
7
|
+
* logged-out invocation, and one needs a token the other doesn't, or another token. `"flag"` needs nothing of the file.
|
|
8
8
|
*/
|
|
9
9
|
export function authFileConflict(a, b) {
|
|
10
10
|
if (a.mode === "flag" || b.mode === "flag")
|
|
@@ -14,8 +14,8 @@ export function authFileConflict(a, b) {
|
|
|
14
14
|
return a.token !== b.token;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
* The `auth.json` keys a logged-out
|
|
18
|
-
* `expiresAt` belongs to them.
|
|
17
|
+
* The `auth.json` keys a logged-out invocation removes. `vercel` treats a `refreshToken` as a login as much as a
|
|
18
|
+
* `token`, and `expiresAt` belongs to them.
|
|
19
19
|
*/
|
|
20
20
|
export const LOGIN_KEYS = ["token", "refreshToken", "expiresAt"];
|
|
21
21
|
/** Whether `config` already holds what `authentication` needs: its token, or none of the login keys. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Time as a DI seam, not a gateway: the
|
|
1
|
+
// Time as a DI seam, not a gateway: the invoker times invocations and kills them on a timeout. Only
|
|
2
2
|
// `systemVercelCliClock` touches real time; tests pass one driven by hand.
|
|
3
3
|
/** The system clock: `performance.now()` and `setTimeout`. */
|
|
4
4
|
export const systemVercelCliClock = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// The `vercel` CLI's JSON object files in a test's global-config directory, `config.json` and `auth.json`, as plain
|
|
2
2
|
// data. The file I/O is `live/config-files.ts` for tests, and the process gateway's `readAuthFile` and
|
|
3
|
-
// `writeAuthFile` for the
|
|
3
|
+
// `writeAuthFile` for the invoker.
|
|
4
4
|
import { VercelCliError } from "./errors.js";
|
|
5
5
|
/** The file in a global-config directory that holds the CLI's settings, such as `currentTeam`. */
|
|
6
6
|
export const GLOBAL_CONFIG_FILE = "config.json";
|
|
@@ -7,6 +7,6 @@ export interface VercelCliContext {
|
|
|
7
7
|
/** The live Context: real processes and the system clock. */
|
|
8
8
|
export declare function liveVercelCliContext(): VercelCliContext;
|
|
9
9
|
export { systemVercelCliClock, type VercelCliClock } from "./clock.ts";
|
|
10
|
-
export { createVercelCli } from "./
|
|
10
|
+
export { createVercelCli } from "./invoker.ts";
|
|
11
11
|
export type { AuthFileReadResult, AuthFileWriteResult, InvocationRequest, OutputStream, PrepareResult, ProcessExit, ProcessSignal, StartError, StartResult, VercelCliProcessGateway, VercelProcess, } from "./gateways.ts";
|
|
12
12
|
export { liveVercelCliProcessGateway } from "./live/process-gateway.ts";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// The Vercel CLI
|
|
1
|
+
// The Vercel CLI invoker's gateway seams: its Context (the process gateway and clock, which travel together), the
|
|
2
2
|
// live Context, and `createVercelCli`, which takes a Context. Tests build the same shape over the fake and a clock
|
|
3
3
|
// driven by hand. Not part of `@vercel/storm/testserver/vercel-cli`'s published surface.
|
|
4
4
|
import { systemVercelCliClock } from "./clock.js";
|
|
@@ -8,5 +8,5 @@ export function liveVercelCliContext() {
|
|
|
8
8
|
return { processes: liveVercelCliProcessGateway(), clock: systemVercelCliClock };
|
|
9
9
|
}
|
|
10
10
|
export { systemVercelCliClock } from "./clock.js";
|
|
11
|
-
export { createVercelCli } from "./
|
|
11
|
+
export { createVercelCli } from "./invoker.js";
|
|
12
12
|
export { liveVercelCliProcessGateway } from "./live/process-gateway.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VercelCli, type VercelCliOptions } from "./
|
|
1
|
+
import { type VercelCli, type VercelCliOptions } from "./invoker.ts";
|
|
2
2
|
/**
|
|
3
3
|
* A `VercelCli` for one test, running `vercel` as real processes with `PATH`, `SystemRoot` and `TEMP` from
|
|
4
4
|
* `process.env` unless `hostEnv` says otherwise. It creates `<home>/global-config` and `<home>/work` first. Without an
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { liveVercelCliContext } from "./context.js";
|
|
2
|
-
import { createVercelCli } from "./
|
|
2
|
+
import { createVercelCli } from "./invoker.js";
|
|
3
3
|
import { defaultInvocationListener } from "./verbose.js";
|
|
4
4
|
/**
|
|
5
5
|
* A `VercelCli` for one test, running `vercel` as real processes with `PATH`, `SystemRoot` and `TEMP` from
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const TERMINAL_COLUMNS = 400;
|
|
7
7
|
/**
|
|
8
|
-
* The variables a call's `env` may not set, because the
|
|
8
|
+
* The variables a call's `env` may not set, because the invoker does. `PATH` is passed on but settable. No test may
|
|
9
9
|
* turn the keyring back on, so `VERCEL_TEST_KEYRING_UNAVAILABLE` is reserved with the other fixed variables.
|
|
10
10
|
* `CLI_WIDTH` and `COLUMNS` are a terminal's width, which a call sets with `columns`. `VERCEL_TOKEN` is never set, but
|
|
11
|
-
* the
|
|
12
|
-
* saved login or a logged-out
|
|
11
|
+
* the invoker owns how an invocation authenticates: `vercel` reads it when there's no `--token`, so it would undo a
|
|
12
|
+
* saved login or a logged-out invocation.
|
|
13
13
|
*/
|
|
14
14
|
export declare const RESERVED_VARIABLES: ReadonlySet<string>;
|
|
15
15
|
/**
|
|
@@ -17,9 +17,9 @@ export declare const RESERVED_VARIABLES: ReadonlySet<string>;
|
|
|
17
17
|
* variables (`NO_COLOR`, `NO_UPDATE_NOTIFIER`, `VERCEL_TELEMETRY_DISABLED`, `VERCEL_TEST_KEYRING_UNAVAILABLE`),
|
|
18
18
|
* `FORCE_TTY=1`, no `CI`, and `CLI_WIDTH` and `COLUMNS` set to `columns` (default `TERMINAL_COLUMNS`) for an
|
|
19
19
|
* invocation at a terminal, or else `CI=1` and no width, as a script or CI has, and the call's `extra`, whose `PATH`
|
|
20
|
-
* replaces the host's. Throws a `TypeError` when `extra` sets any other variable the
|
|
20
|
+
* replaces the host's. Throws a `TypeError` when `extra` sets any other variable the invoker sets, or `VERCEL_TOKEN`.
|
|
21
21
|
*
|
|
22
|
-
* The width matters because the
|
|
22
|
+
* The width matters because the invoker pipes a terminal's output and has no pseudo-terminal. `vercel`'s prompts are
|
|
23
23
|
* `@inquirer/*`, which wrap their text at `cli-width`'s answer, and with no TTY to ask, `cli-width` reads only
|
|
24
24
|
* `CLI_WIDTH`, else 80. `COLUMNS` is for any other library that asks.
|
|
25
25
|
*/
|
|
@@ -21,11 +21,11 @@ const SETTABLE = "PATH";
|
|
|
21
21
|
*/
|
|
22
22
|
export const TERMINAL_COLUMNS = 400;
|
|
23
23
|
/**
|
|
24
|
-
* The variables a call's `env` may not set, because the
|
|
24
|
+
* The variables a call's `env` may not set, because the invoker does. `PATH` is passed on but settable. No test may
|
|
25
25
|
* turn the keyring back on, so `VERCEL_TEST_KEYRING_UNAVAILABLE` is reserved with the other fixed variables.
|
|
26
26
|
* `CLI_WIDTH` and `COLUMNS` are a terminal's width, which a call sets with `columns`. `VERCEL_TOKEN` is never set, but
|
|
27
|
-
* the
|
|
28
|
-
* saved login or a logged-out
|
|
27
|
+
* the invoker owns how an invocation authenticates: `vercel` reads it when there's no `--token`, so it would undo a
|
|
28
|
+
* saved login or a logged-out invocation.
|
|
29
29
|
*/
|
|
30
30
|
export const RESERVED_VARIABLES = new Set([
|
|
31
31
|
...Object.keys(FIXED),
|
|
@@ -42,9 +42,9 @@ export const RESERVED_VARIABLES = new Set([
|
|
|
42
42
|
* variables (`NO_COLOR`, `NO_UPDATE_NOTIFIER`, `VERCEL_TELEMETRY_DISABLED`, `VERCEL_TEST_KEYRING_UNAVAILABLE`),
|
|
43
43
|
* `FORCE_TTY=1`, no `CI`, and `CLI_WIDTH` and `COLUMNS` set to `columns` (default `TERMINAL_COLUMNS`) for an
|
|
44
44
|
* invocation at a terminal, or else `CI=1` and no width, as a script or CI has, and the call's `extra`, whose `PATH`
|
|
45
|
-
* replaces the host's. Throws a `TypeError` when `extra` sets any other variable the
|
|
45
|
+
* replaces the host's. Throws a `TypeError` when `extra` sets any other variable the invoker sets, or `VERCEL_TOKEN`.
|
|
46
46
|
*
|
|
47
|
-
* The width matters because the
|
|
47
|
+
* The width matters because the invoker pipes a terminal's output and has no pseudo-terminal. `vercel`'s prompts are
|
|
48
48
|
* `@inquirer/*`, which wrap their text at `cli-width`'s answer, and with no TTY to ask, `cli-width` reads only
|
|
49
49
|
* `CLI_WIDTH`, else 80. `COLUMNS` is for any other library that asks.
|
|
50
50
|
*/
|
|
@@ -52,7 +52,7 @@ export function invocationEnvironment(options) {
|
|
|
52
52
|
const extra = options.extra ?? {};
|
|
53
53
|
const reserved = Object.keys(extra).filter((name) => RESERVED_VARIABLES.has(name));
|
|
54
54
|
if (reserved.length > 0) {
|
|
55
|
-
throw new TypeError(`vercel-cli: env may not set ${reserved.join(", ")}, which the
|
|
55
|
+
throw new TypeError(`vercel-cli: env may not set ${reserved.join(", ")}, which the invoker owns`);
|
|
56
56
|
}
|
|
57
57
|
const env = {};
|
|
58
58
|
for (const name of PASSED_ON) {
|
|
@@ -23,7 +23,7 @@ export interface ProcessExit {
|
|
|
23
23
|
readonly signal: string | null;
|
|
24
24
|
readonly outputComplete: boolean;
|
|
25
25
|
}
|
|
26
|
-
/** A graceful signal the
|
|
26
|
+
/** A graceful signal the invoker sends the process itself. */
|
|
27
27
|
export type ProcessSignal = "SIGINT" | "SIGTERM";
|
|
28
28
|
/** A started `vercel` process. */
|
|
29
29
|
export interface VercelProcess {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// The Vercel CLI
|
|
2
|
-
//
|
|
3
|
-
// `test/fakes/extensions/testserver/vercel-cli/process-gateway.ts`.
|
|
1
|
+
// The Vercel CLI invoker's gateway: starting `vercel` processes, preparing the directories a test's invocations share,
|
|
2
|
+
// and reading and writing the `auth.json` a saved login or a logged-out invocation needs. The live gateway is
|
|
3
|
+
// `live/process-gateway.ts`; the fake is `test/fakes/extensions/testserver/vercel-cli/process-gateway.ts`.
|
|
4
4
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type { VercelAuth } from "./auth-config.ts";
|
|
2
2
|
export type { AuthConfig, GlobalConfig } from "./config-files.ts";
|
|
3
|
-
export { type InteractBlock, type InteractiveInvocation, type TerminalInvocation, type VercelCallOptions, type VercelCli, type VercelCliOptions, type VercelIdentity, VERCEL_TIMEOUT_MS, type VercelRunOptions, type VercelStdin, } from "./
|
|
3
|
+
export { type InteractBlock, type InteractiveInvocation, type TerminalInvocation, type VercelCallOptions, type VercelCli, type VercelCliOptions, type VercelIdentity, VERCEL_TIMEOUT_MS, type VercelRunOptions, type VercelStdin, } from "./invoker.ts";
|
|
4
4
|
export { vercelCli } from "./entry.ts";
|
|
5
5
|
export { TERMINAL_COLUMNS } from "./environment.ts";
|
|
6
6
|
export { VercelCliError } from "./errors.ts";
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
// storm's Vercel CLI
|
|
2
|
-
// against a test's proxy, as a default identity or the token a call names, with `--token`, a saved login or logged
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
// otherwise only on Node builtins and `zod`; nothing outside the Testserver extension imports it, and
|
|
6
|
-
// `.oxlintrc.json` checks the boundary. Its gateway seams (the process
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
export { VERCEL_TIMEOUT_MS, } from "./driver.js";
|
|
1
|
+
// storm's Vercel CLI invoker, exported as `@vercel/storm/testserver/vercel-cli`: runs the production `vercel` CLI
|
|
2
|
+
// against a test's proxy, as a default identity or the token a call names, with `--token`, a saved login or logged out,
|
|
3
|
+
// in directories the test's invocations share, and reports each invocation with tokens redacted. It builds on the run
|
|
4
|
+
// API (`src/sdk/index.ts`) and the Testserver SDK, imports neither the Testserver Vitest fixtures nor vitest, and
|
|
5
|
+
// depends otherwise only on Node builtins and `zod`; nothing outside the Testserver extension imports it, and
|
|
6
|
+
// `.oxlintrc.json` checks the boundary. Its gateway seams (the process gateway, live gateway, clock, Context and
|
|
7
|
+
// `createVercelCli`) are in `./context.ts`, outside this published surface.
|
|
8
|
+
export { VERCEL_TIMEOUT_MS, } from "./invoker.js";
|
|
10
9
|
export { vercelCli } from "./entry.js";
|
|
11
10
|
export { TERMINAL_COLUMNS } from "./environment.js";
|
|
12
11
|
export { VercelCliError } from "./errors.js";
|
|
@@ -23,15 +23,16 @@ export type VercelStopSignal = (typeof STOP_SIGNALS)[number];
|
|
|
23
23
|
/**
|
|
24
24
|
* How an invocation ended:
|
|
25
25
|
*
|
|
26
|
-
* - `exited`: `vercel` exited on its own, with `exitCode`, or a signal the
|
|
26
|
+
* - `exited`: `vercel` exited on its own, with `exitCode`, or a signal the invoker didn't send ended it.
|
|
27
27
|
* - `stopped`: the test's `stop()` sent `stopSignal`, and it then ended with `exitCode` or `signal`.
|
|
28
|
-
* `killAttemptedAfterGrace` says the
|
|
28
|
+
* `killAttemptedAfterGrace` says the invoker attempted SIGKILL after `STOP_GRACE_MS` while still awaiting
|
|
29
29
|
* completion. It does not confirm delivery: the child may have exited while its output pipes remain open.
|
|
30
|
-
* - `timed-out`, `aborted`, `closed`, `abandoned`: the
|
|
30
|
+
* - `timed-out`, `aborted`, `closed`, `abandoned`: the invoker killed it after `timeoutMs`, when the test's signal
|
|
31
31
|
* aborted, when `close()` was called, or when its `interact` block threw while it still ran, and it then ended
|
|
32
32
|
* with `exitCode` or `signal`.
|
|
33
33
|
* - `not-started`: it never started: `missing` when its executable wasn't found (or its `cwd` doesn't exist),
|
|
34
|
-
* `auth-config` when the
|
|
34
|
+
* `auth-config` when the invoker couldn't read or write the `auth.json` its saved login or logged-out invocation
|
|
35
|
+
* needs.
|
|
35
36
|
*/
|
|
36
37
|
export type InvocationEnd = {
|
|
37
38
|
readonly kind: "exited";
|
|
@@ -65,7 +66,7 @@ export type InvocationEnd = {
|
|
|
65
66
|
readonly reason: NotStartedReason;
|
|
66
67
|
readonly message: string;
|
|
67
68
|
};
|
|
68
|
-
/** Why an invocation never started: the process gateway's start failure, or `auth.json` the
|
|
69
|
+
/** Why an invocation never started: the process gateway's start failure, or `auth.json` the invoker couldn't settle. */
|
|
69
70
|
export type NotStartedReason = StartError["code"] | "auth-config";
|
|
70
71
|
/**
|
|
71
72
|
* What an invocation's stdin was: `ignored` (`/dev/null`, a script's), `terminal` (piped for `press` and `type`,
|
|
@@ -82,7 +83,7 @@ export type VercelInvocationStdin = {
|
|
|
82
83
|
} | {
|
|
83
84
|
readonly kind: "open";
|
|
84
85
|
};
|
|
85
|
-
/** One `vercel` process the
|
|
86
|
+
/** One `vercel` process the invoker started, as a test's report shows it. Every token reads `<token>`. */
|
|
86
87
|
export interface VercelInvocation {
|
|
87
88
|
/** 1 for a test's first invocation, and so on. */
|
|
88
89
|
readonly number: number;
|
|
@@ -100,7 +101,7 @@ export interface VercelInvocation {
|
|
|
100
101
|
/** How it ended; absent while it runs. */
|
|
101
102
|
readonly end?: InvocationEnd;
|
|
102
103
|
/**
|
|
103
|
-
* Whether every byte of stdout and stderr reached the
|
|
104
|
+
* Whether every byte of stdout and stderr reached the invoker. False only when a hard kill's bounded drain ran out
|
|
104
105
|
* because a descendant still held an output pipe.
|
|
105
106
|
*/
|
|
106
107
|
readonly outputComplete: boolean;
|
|
@@ -130,13 +131,13 @@ export interface VercelResult {
|
|
|
130
131
|
readonly exitCode: number | null;
|
|
131
132
|
/** The signal that ended it, such as `SIGKILL`; `null` when it exited. */
|
|
132
133
|
readonly signal: string | null;
|
|
133
|
-
/** Whether the
|
|
134
|
+
/** Whether the invoker killed it after its timeout. */
|
|
134
135
|
readonly timedOut: boolean;
|
|
135
|
-
/** Whether the
|
|
136
|
+
/** Whether the invoker killed it because the test's signal aborted. */
|
|
136
137
|
readonly aborted: boolean;
|
|
137
138
|
/** Whether the test's `stop()` signalled it. */
|
|
138
139
|
readonly stopped: boolean;
|
|
139
|
-
/** Whether every byte of stdout and stderr reached the
|
|
140
|
+
/** Whether every byte of stdout and stderr reached the invoker; false after a hard kill's drain ran out. */
|
|
140
141
|
readonly outputComplete: boolean;
|
|
141
142
|
/**
|
|
142
143
|
* Its stdout with the same ANSI stripping `waitFor` uses: escape sequences removed, a spinner's `\r` frames kept.
|
|
@@ -157,7 +158,7 @@ export interface VercelResult {
|
|
|
157
158
|
*/
|
|
158
159
|
readonly requests: readonly ProxyRequestRecord[];
|
|
159
160
|
}
|
|
160
|
-
/** What an invocation needs from the
|
|
161
|
+
/** What an invocation needs from the invoker that started it. */
|
|
161
162
|
export interface InvocationDeps {
|
|
162
163
|
readonly clock: VercelCliClock;
|
|
163
164
|
readonly redactor: Redactor;
|
|
@@ -165,7 +166,7 @@ export interface InvocationDeps {
|
|
|
165
166
|
readonly requests: readonly ProxyRequestRecord[];
|
|
166
167
|
};
|
|
167
168
|
}
|
|
168
|
-
/** Why the
|
|
169
|
+
/** Why the invoker hard-terminates an invocation's process tree. */
|
|
169
170
|
type KillReason = "timeout" | "abort" | "close" | "abandon";
|
|
170
171
|
export declare class Invocation {
|
|
171
172
|
#private;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// One invocation: a `vercel` process the
|
|
1
|
+
// One invocation: a `vercel` process the invoker started, with its output, how it ended, the proxy's records added
|
|
2
2
|
// while it ran, and, for an interactive invocation, the cursor `waitFor` searches from.
|
|
3
3
|
import { isOpenRecord } from "../../../vendor/testserver-sdk/index.js";
|
|
4
4
|
import { AnsiStripper } from "./ansi.js";
|
|
@@ -4,17 +4,17 @@ import { type VercelAuth } from "./auth-config.ts";
|
|
|
4
4
|
import type { VercelCliContext } from "./context.ts";
|
|
5
5
|
import { type VercelInvocation, type VercelResult, type VercelStopSignal } from "./invocation.ts";
|
|
6
6
|
import { type VercelKey } from "./keys.ts";
|
|
7
|
-
/** How long an invocation may run before the
|
|
7
|
+
/** How long an invocation may run before the invoker kills it, unless the invoker or the call says otherwise. */
|
|
8
8
|
export declare const VERCEL_TIMEOUT_MS = 45000;
|
|
9
9
|
export interface VercelCliOptions {
|
|
10
10
|
/**
|
|
11
|
-
* A directory the test created for itself, and removes after it. It is each invocation's `HOME`; the
|
|
11
|
+
* A directory the test created for itself, and removes after it. It is each invocation's `HOME`; the invoker
|
|
12
12
|
* makes `<home>/global-config` and `<home>/work` in it.
|
|
13
13
|
*/
|
|
14
14
|
readonly home: string;
|
|
15
15
|
/**
|
|
16
16
|
* The test's proxy: invocations send to its `url`, and results hold the records added to `requests`. Its
|
|
17
|
-
* `redact`, when given, redacts everything the
|
|
17
|
+
* `redact`, when given, redacts everything the invoker returns or prints after the invoker's own tokens, so a token
|
|
18
18
|
* the proxy's container has seen reads `<token>` too. A `ContainerProxy` has one.
|
|
19
19
|
*/
|
|
20
20
|
readonly proxy: {
|
|
@@ -45,8 +45,8 @@ export interface VercelCliOptions {
|
|
|
45
45
|
readonly onInvocationEnd?: (invocation: VercelInvocation) => void;
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
|
-
* Who `vercel` acts as by default: a token and the team it runs in
|
|
49
|
-
*
|
|
48
|
+
* Who `vercel` acts as by default: a token and the team it runs in, any `{ token, team }` with those fields, such as
|
|
49
|
+
* a token and a team a test built through Testserver's factories.
|
|
50
50
|
*/
|
|
51
51
|
export interface VercelIdentity {
|
|
52
52
|
/** The token `--token` sends: a seeded token. */
|
|
@@ -62,7 +62,7 @@ export interface VercelIdentity {
|
|
|
62
62
|
export interface VercelCallOptions {
|
|
63
63
|
/**
|
|
64
64
|
* The token it runs as, in place of the default identity's: a seeded token, or a raw bearer secret. Under
|
|
65
|
-
* `auth: "saved"`, the token the
|
|
65
|
+
* `auth: "saved"`, the token the invoker saves; under `auth: "none"`, a usage error.
|
|
66
66
|
*/
|
|
67
67
|
readonly as?: {
|
|
68
68
|
readonly secretString: string;
|
|
@@ -71,12 +71,12 @@ export interface VercelCallOptions {
|
|
|
71
71
|
* How it authenticates, in place of the default `actAs` set, else `"flag"`:
|
|
72
72
|
*
|
|
73
73
|
* - `"flag"`: `--token <secret>`, with the token `as` or the default identity names.
|
|
74
|
-
* - `"saved"`: no `--token`. The
|
|
74
|
+
* - `"saved"`: no `--token`. The invoker first saves that token as `token` in `<globalConfigDir>/auth.json`,
|
|
75
75
|
* keeping the file's other keys, so `vercel` reads it as it reads a `vercel login`.
|
|
76
|
-
* - `"none"`: no `--token`, and the
|
|
76
|
+
* - `"none"`: no `--token`, and the invoker removes `token`, `refreshToken` and `expiresAt` from `auth.json`, keeping
|
|
77
77
|
* its other keys: a logged-out `vercel`. It needs no default identity.
|
|
78
78
|
*
|
|
79
|
-
* The
|
|
79
|
+
* The invoker writes `auth.json` only when it differs from what the call needs in those keys. Under `"saved"` and
|
|
80
80
|
* `"none"`, only the call's own `scope` sends `--scope`: `vercel` picks the team as after a login, the saved
|
|
81
81
|
* `currentTeam` or else the user's default team. Starting a call whose `auth.json` differs from what an invocation
|
|
82
82
|
* still running needs (another token, or none) is a usage error.
|
|
@@ -93,14 +93,14 @@ export interface VercelCallOptions {
|
|
|
93
93
|
readonly cwd?: string;
|
|
94
94
|
/**
|
|
95
95
|
* Variables added to its environment. `PATH` replaces the one from `hostEnv`; setting any other variable the
|
|
96
|
-
*
|
|
96
|
+
* invoker sets (`HOME`, `SystemRoot`, `TEMP`, `FORCE_TTY`, `CI`, `CLI_WIDTH`, `COLUMNS`, `NO_COLOR`,
|
|
97
97
|
* `NO_UPDATE_NOTIFIER`, `VERCEL_TELEMETRY_DISABLED`, `VERCEL_TEST_KEYRING_UNAVAILABLE`), or `VERCEL_TOKEN`, which
|
|
98
98
|
* would undo `auth`, is a usage error. A bare `command.file`,
|
|
99
99
|
* such as the default `vercel`, is looked up on this `PATH`, so a `PATH` without `vercel` needs an absolute
|
|
100
100
|
* `command`.
|
|
101
101
|
*/
|
|
102
102
|
readonly env?: Readonly<Record<string, string>>;
|
|
103
|
-
/** How long it may run before it's killed; default the
|
|
103
|
+
/** How long it may run before it's killed; default the invoker's `timeoutMs`. */
|
|
104
104
|
readonly timeoutMs?: number;
|
|
105
105
|
}
|
|
106
106
|
/**
|
|
@@ -176,8 +176,8 @@ export interface VercelCli {
|
|
|
176
176
|
/**
|
|
177
177
|
* Sets who `vercel` acts as by default: `token.secretString` for `--token` and `team.slug` for `--scope` (none for
|
|
178
178
|
* `team: null`), and `auth`, how a call authenticates unless it says otherwise (default `"flag"`). Calling it again
|
|
179
|
-
* replaces the default, `auth` included. The token reads `<token>` in everything the
|
|
180
|
-
* call's `as`, `scope` or `auth` overrides it; the default scope steps aside when a call's arguments name
|
|
179
|
+
* replaces the default, `auth` included. The token reads `<token>` in everything the invoker returns or prints from
|
|
180
|
+
* now on. A call's `as`, `scope` or `auth` overrides it; the default scope steps aside when a call's arguments name
|
|
181
181
|
* `--scope`, `-S` or `--team`, and under `"saved"` and `"none"`.
|
|
182
182
|
*/
|
|
183
183
|
actAs(identity: VercelIdentity, options?: {
|
|
@@ -187,15 +187,16 @@ export interface VercelCli {
|
|
|
187
187
|
* Runs `vercel` with `args`, and resolves however it ends: its `stdout` and `stderr` with ANSI codes removed, as
|
|
188
188
|
* `waitFor` removes them, and `rawStdout` and `rawStderr` as they arrived. At a terminal, stdin closes at once:
|
|
189
189
|
* nobody types. Rejects with a `VercelCliError` only when it can't start, and with a `TypeError` for arguments or
|
|
190
|
-
* options the
|
|
190
|
+
* options the invoker refuses, or when there is no token to act as.
|
|
191
191
|
*/
|
|
192
192
|
run(args: readonly string[], options?: VercelRunOptions): Promise<VercelResult>;
|
|
193
193
|
/**
|
|
194
194
|
* Runs `vercel` with `args` and hands the running invocation to `block`, which waits for its output, answers its
|
|
195
195
|
* prompts at a terminal (`terminal: true`), or stops it. Once `block` returns, closes stdin at a terminal (an open
|
|
196
|
-
* `stdin` stays open), waits for `vercel` to end, and resolves with its result, as `run` does: a command that runs
|
|
197
|
-
* `vercel dev`, needs `stop()` in the block, or it runs until its timeout. When `block`
|
|
198
|
-
* still runs (it ends `abandoned`) and rejects with what `block` threw. Rejects as `run`
|
|
196
|
+
* `stdin` stays open), waits for `vercel` to end, and resolves with its result, as `run` does: a command that runs
|
|
197
|
+
* until stopped, such as `vercel dev`, needs `stop()` in the block, or it runs until its timeout. When `block`
|
|
198
|
+
* throws, kills `vercel` if it still runs (it ends `abandoned`) and rejects with what `block` threw. Rejects as `run`
|
|
199
|
+
* does otherwise.
|
|
199
200
|
*/
|
|
200
201
|
interact(args: readonly string[], block: InteractBlock<InteractiveInvocation>): Promise<VercelResult>;
|
|
201
202
|
interact(args: readonly string[], options: VercelRunOptions & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// The Vercel CLI
|
|
1
|
+
// The Vercel CLI invoker: runs the production `vercel` CLI against one test's proxy, as the default identity
|
|
2
2
|
// `actAs` sets or the token a call names, with `--token`, a saved login or logged out, in directories the test's
|
|
3
3
|
// invocations share. `createVercelCli` takes its Context; `vercelCli` (`entry.ts`), the published entry, passes the
|
|
4
4
|
// live one.
|
|
@@ -12,9 +12,9 @@ import { Invocation, STOP_SIGNALS, WAIT_FOR_TIMEOUT_MS, } from "./invocation.js"
|
|
|
12
12
|
import { KEY_SEQUENCES } from "./keys.js";
|
|
13
13
|
import { Redactor } from "./redaction.js";
|
|
14
14
|
import { describeEnd, describeInvocation, describeInvocations } from "./report.js";
|
|
15
|
-
/** How long an invocation may run before the
|
|
15
|
+
/** How long an invocation may run before the invoker kills it, unless the invoker or the call says otherwise. */
|
|
16
16
|
export const VERCEL_TIMEOUT_MS = 45_000;
|
|
17
|
-
/** The `vercel` the
|
|
17
|
+
/** The `vercel` the invoker runs when `command` isn't given: `vercel` on `PATH`. */
|
|
18
18
|
const DEFAULT_COMMAND = { file: "vercel", args: [] };
|
|
19
19
|
/** A `VercelCli` over `context`. It prepares `<home>/global-config` and `<home>/work` first. */
|
|
20
20
|
export async function createVercelCli(options, context) {
|
|
@@ -36,8 +36,8 @@ export async function createVercelCli(options, context) {
|
|
|
36
36
|
let identity;
|
|
37
37
|
let defaultAuth = "flag";
|
|
38
38
|
/**
|
|
39
|
-
* The last `auth.json` settlement, which the next one waits for: compatible saved logins and logged-out
|
|
40
|
-
* start at once, and each reads, then may write, the one file, so they settle it one at a time.
|
|
39
|
+
* The last `auth.json` settlement, which the next one waits for: compatible saved logins and logged-out invocations
|
|
40
|
+
* may start at once, and each reads, then may write, the one file, so they settle it one at a time.
|
|
41
41
|
*/
|
|
42
42
|
let authFileSettling = Promise.resolve();
|
|
43
43
|
const settleAuthFileInTurn = (authentication) => {
|
|
@@ -47,10 +47,10 @@ export async function createVercelCli(options, context) {
|
|
|
47
47
|
};
|
|
48
48
|
/**
|
|
49
49
|
* Starts an invocation. Everything before the process starts runs synchronously, as the call is made: it resolves
|
|
50
|
-
* the call's identity and how it authenticates, refuses what the
|
|
50
|
+
* the call's identity and how it authenticates, refuses what the invoker owns and an `auth.json` another running
|
|
51
51
|
* invocation needs otherwise with a `TypeError`, and registers the invocation, so a later `actAs` doesn't change it
|
|
52
52
|
* and `close()` kills it even while it is starting. Then it settles `auth.json` for a saved login or a logged-out
|
|
53
|
-
*
|
|
53
|
+
* invocation, after any settlement already under way, and starts the process.
|
|
54
54
|
*/
|
|
55
55
|
const launch = async (args, call, how) => {
|
|
56
56
|
const { interactive, stdin } = how;
|
|
@@ -251,7 +251,7 @@ export async function createVercelCli(options, context) {
|
|
|
251
251
|
}
|
|
252
252
|
/** A `TypeError` for starting `wanted` while `other`, still running, needs `auth.json` to hold something else. */
|
|
253
253
|
function authFileConflictError(wanted, other) {
|
|
254
|
-
const run = wanted.mode === "none" ? 'a logged-out
|
|
254
|
+
const run = wanted.mode === "none" ? 'a logged-out invocation (auth "none")' : 'a saved login (auth "saved")';
|
|
255
255
|
const needs = wanted.mode === "none" ? "without a token" : "to hold its token";
|
|
256
256
|
const otherNeeds = other.authentication.mode === "none" ? "without one" : "to hold another token";
|
|
257
257
|
return new TypeError(`vercel-cli: ${run} needs ${AUTH_CONFIG_FILE} ${needs}, but invocation ${other.number}, still running, needs it ${otherNeeds}; let it end first`);
|
|
@@ -16,8 +16,8 @@ export declare function writeGlobalConfig(globalConfigDir: string, config: Globa
|
|
|
16
16
|
export declare function readAuthConfig(globalConfigDir: string): Promise<AuthConfig | undefined>;
|
|
17
17
|
/**
|
|
18
18
|
* Writes `config` as the CLI's `auth.json` in `globalConfigDir`, creating the directory if needed, at once
|
|
19
|
-
* (`replaceConfigFile`), so a running `vercel` never reads part of it. Under a saved login the
|
|
20
|
-
* `token` before each invocation, and under a logged-out
|
|
19
|
+
* (`replaceConfigFile`), so a running `vercel` never reads part of it. Under a saved login the invoker replaces its
|
|
20
|
+
* `token` before each invocation, and under a logged-out invocation removes it; every other key is the test's.
|
|
21
21
|
*/
|
|
22
22
|
export declare function writeAuthConfig(globalConfigDir: string, config: AuthConfig): Promise<void>;
|
|
23
23
|
/**
|
|
@@ -25,8 +25,8 @@ export function readAuthConfig(globalConfigDir) {
|
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Writes `config` as the CLI's `auth.json` in `globalConfigDir`, creating the directory if needed, at once
|
|
28
|
-
* (`replaceConfigFile`), so a running `vercel` never reads part of it. Under a saved login the
|
|
29
|
-
* `token` before each invocation, and under a logged-out
|
|
28
|
+
* (`replaceConfigFile`), so a running `vercel` never reads part of it. Under a saved login the invoker replaces its
|
|
29
|
+
* `token` before each invocation, and under a logged-out invocation removes it; every other key is the test's.
|
|
30
30
|
*/
|
|
31
31
|
export function writeAuthConfig(globalConfigDir, config) {
|
|
32
32
|
return writeConfigFile(globalConfigDir, AUTH_CONFIG_FILE, config);
|
|
@@ -93,7 +93,7 @@ function startProcess(request) {
|
|
|
93
93
|
stopDraining();
|
|
94
94
|
}, TERMINATE_DRAIN_MS);
|
|
95
95
|
};
|
|
96
|
-
// A write racing the process's exit fails with EPIPE; the
|
|
96
|
+
// A write racing the process's exit fails with EPIPE; the invoker learns of the exit from `exited`.
|
|
97
97
|
child.stdin?.on("error", () => {
|
|
98
98
|
stdinOpen = false;
|
|
99
99
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// The Vercel CLI
|
|
1
|
+
// The Vercel CLI invoker's failure report: pure functions over invocation records, so a test's fixture can print
|
|
2
2
|
// them and unit tests can check them.
|
|
3
3
|
import { isOpenRecord } from "../../../vendor/testserver-sdk/index.js";
|
|
4
4
|
import { STOP_GRACE_MS } from "./invocation.js";
|
|
@@ -25,7 +25,7 @@ export function describeInvocation(invocation) {
|
|
|
25
25
|
` ${describeEnd(invocation.end, invocation.durationMs)}`,
|
|
26
26
|
...(invocation.outputComplete
|
|
27
27
|
? []
|
|
28
|
-
: [" output incomplete: a descendant kept stdout or stderr open after the
|
|
28
|
+
: [" output incomplete: a descendant kept stdout or stderr open after the invoker killed vercel"]),
|
|
29
29
|
` ${describeRequests(invocation.requests)}`,
|
|
30
30
|
];
|
|
31
31
|
if (invocation.overlapped.length > 0) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// The
|
|
1
|
+
// The invoker's default `onInvocationEnd` in a verbose run: pure over the environment and a printer, so `entry.ts`
|
|
2
2
|
// passes `process.env` and stderr, and unit tests pass their own.
|
|
3
3
|
import { readRunPayload, RUN_PAYLOAD_VARIABLE, RunPayloadError } from "../../../sdk/index.js";
|
|
4
4
|
import { describeInvocation } from "./report.js";
|