@cnc-tools/storm 0.10.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 +12 -9
- package/dist/build-info.js +1 -1
- package/dist/chunks/{chunk-YF3ICDBY.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-WF4KJ7YG.js → chunk-BW2ADH7U.js} +1 -1
- package/dist/chunks/chunk-FK4RLDEK.js +40 -0
- package/dist/chunks/chunk-FSP3SJ35.js +1429 -0
- package/dist/chunks/{chunk-J6ZNYUDV.js → chunk-GQIL3AHY.js} +2 -3
- package/dist/chunks/chunk-GSC6SRTW.js +27 -0
- package/dist/chunks/chunk-ISGQJIQM.js +852 -0
- package/dist/chunks/chunk-IYM44FUX.js +1461 -0
- package/dist/chunks/{chunk-XHJGHJBW.js → chunk-LQKNI3EG.js} +38 -279
- package/dist/chunks/chunk-NMVODY3P.js +19 -0
- package/dist/chunks/{chunk-VJQLMGOH.js → chunk-ODQHQJLE.js} +2761 -3699
- package/dist/chunks/chunk-RYRJNHL7.js +55 -0
- package/dist/chunks/chunk-SXW6XN4R.js +161 -0
- package/dist/chunks/{chunk-OVXD7GES.js → chunk-T6AZIDZD.js} +43 -396
- package/dist/chunks/chunk-TEEZL3GA.js +851 -0
- package/dist/chunks/chunk-TMQQYHUX.js +80 -0
- package/dist/chunks/{chunk-AKKNF3WZ.js → chunk-U7M3ZB3Z.js} +565 -595
- package/dist/chunks/{chunk-JQ2HK4RN.js → chunk-Y3BUNNRG.js} +234 -57
- package/dist/chunks/{chunk-ZJ2USLAT.js → chunk-YM6TZV4L.js} +394 -416
- package/dist/chunks/chunk-YT5OROR7.js +271 -0
- package/dist/chunks/{live-app-RIJM3QFD.js → live-app-AZ5N5HBD.js} +36 -12
- package/dist/command-tree.d.ts +4 -1
- package/dist/command-tree.js +4 -1
- package/dist/commands/exec/cleanup.d.ts +3 -3
- package/dist/commands/exec/cleanup.js +6 -2
- package/dist/commands/exec/command.d.ts +56 -17
- package/dist/commands/exec/command.js +51 -39
- 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/job-summary.d.ts +1 -1
- package/dist/commands/exec/job-summary.js +1 -1
- package/dist/commands/exec/live-view.js +58 -28
- package/dist/commands/exec/mint-failed.js +5 -5
- package/dist/commands/exec/outcomes.d.ts +72 -10
- package/dist/commands/exec/outcomes.js +38 -10
- package/dist/commands/exec/plan-run.d.ts +3 -5
- 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 +2 -2
- package/dist/commands/exec/resource-refusals.js +10 -10
- 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 +85 -20
- package/dist/commands/exec/run-command.js +142 -238
- 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 +3 -37
- package/dist/commands/exec/test-plan.js +11 -28
- 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.d.ts +3 -1
- package/dist/commands/exec/waterfall.js +20 -3
- 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.d.ts +4 -0
- package/dist/commands/playwright/metadata.js +8 -0
- package/dist/commands/runs/facts.d.ts +22 -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 +18 -13
- package/dist/commands/runs/list/outcomes.d.ts +17 -4
- package/dist/commands/runs/logs/command.js +20 -14
- package/dist/commands/runs/logs/outcomes.js +1 -1
- package/dist/commands/runs/past-run.d.ts +3 -27
- package/dist/commands/runs/past-run.js +3 -37
- package/dist/commands/runs/show/command.d.ts +36 -8
- package/dist/commands/runs/show/command.js +53 -33
- 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 +37 -16
- 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 -174
- package/dist/commands/vitest/metadata.js +1 -1
- package/dist/config/credential-resolver.d.ts +6 -3
- package/dist/config/credential-resolver.js +6 -5
- package/dist/config-file/define.d.ts +1 -1
- package/dist/context.d.ts +44 -24
- package/dist/context.js +20 -13
- package/dist/core/before-run.d.ts +7 -6
- package/dist/core/before-run.js +9 -9
- package/dist/core/definition-lookup.d.ts +22 -0
- package/dist/core/definition-lookup.js +35 -0
- package/dist/core/drivers-of.d.ts +23 -0
- package/dist/core/drivers-of.js +13 -0
- package/dist/core/events.d.ts +6 -22
- package/dist/core/gateways.d.ts +38 -170
- package/dist/core/index.d.ts +13 -12
- package/dist/core/index.js +12 -11
- 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 +5 -4
- package/dist/core/presentations.js +9 -9
- package/dist/core/resource-definition-set.d.ts +39 -0
- package/dist/core/resource-definition-set.js +31 -0
- package/dist/core/resource-reports.d.ts +38 -5
- package/dist/core/resource-reports.js +47 -17
- package/dist/core/resource.d.ts +4 -4
- package/dist/core/resources.d.ts +8 -7
- package/dist/core/resources.js +11 -13
- package/dist/core/run-state.d.ts +27 -16
- package/dist/core/run-state.js +50 -18
- package/dist/core/run.d.ts +42 -54
- package/dist/core/run.js +72 -122
- 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 -4
- package/dist/credential/events.d.ts +20 -0
- package/dist/credential/events.js +4 -0
- package/dist/credential/index.d.ts +2 -1
- package/dist/credential/index.js +6 -5
- package/dist/credential/source.d.ts +38 -26
- package/dist/credential/source.js +25 -34
- package/dist/extension-commands.d.ts +12 -6
- package/dist/extension-commands.js +16 -13
- 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 +2 -2
- package/dist/extensions/testserver/command-tree.js +2 -3
- 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 +17 -12
- package/dist/extensions/testserver/commands/pool/list/command.js +8 -5
- 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 +8 -6
- package/dist/extensions/testserver/vitest/config.js +10 -16
- 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 +12 -10
- package/dist/extensions/testserver/vitest/fixtures.js +44 -22
- 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 +43 -30
- package/dist/extensions.js +50 -35
- package/dist/forward-sigterm.d.ts +8 -0
- package/dist/forward-sigterm.js +18 -0
- package/dist/launcher-resolvers/index.d.ts +1 -0
- package/dist/launcher-resolvers/index.js +2 -1
- package/dist/launcher-resolvers/local-services.d.ts +22 -0
- package/dist/launcher-resolvers/local-services.js +6 -0
- package/dist/live-app.js +9 -7
- package/dist/local-services.d.ts +11 -0
- package/dist/local-services.js +16 -0
- 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/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 +95 -0
- package/dist/run-directory/recording.js +85 -0
- package/dist/{commands/exec → run-directory}/run-collector.d.ts +9 -8
- package/dist/{commands/exec → run-directory}/run-collector.js +8 -10
- package/dist/{core → run-directory}/run-directory.d.ts +3 -3
- package/dist/{core → run-directory}/run-directory.js +2 -2
- package/dist/{commands/exec → run-directory}/run-record.d.ts +94 -27
- package/dist/run-directory/run-record.js +229 -0
- package/dist/{commands/exec → run-directory}/timeline-facts.d.ts +5 -8
- package/dist/{commands/exec → run-directory}/timeline-facts.js +11 -25
- 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 +73 -33
- package/dist/runner/gateways.d.ts +30 -10
- package/dist/runner/index.d.ts +15 -17
- package/dist/runner/index.js +12 -14
- package/dist/runner/live/checkout-gateway.js +15 -7
- package/dist/runner/live/snapshot-records.js +8 -7
- package/dist/runner/prepare.d.ts +26 -26
- package/dist/runner/prepare.js +27 -14
- package/dist/runner/ready.d.ts +43 -10
- package/dist/runner/ready.js +51 -34
- package/dist/runner/recipe.d.ts +48 -4
- package/dist/runner/recipe.js +42 -1
- package/dist/runner/scope.d.ts +13 -13
- package/dist/runner/scope.js +9 -11
- package/dist/runner/secrets.d.ts +6 -0
- package/dist/runner/secrets.js +10 -0
- package/dist/runner/session.d.ts +128 -0
- package/dist/runner/session.js +138 -0
- 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 +35 -20
- package/dist/runner/snapshot-save.js +47 -37
- package/dist/runner/snapshot-start.d.ts +25 -0
- package/dist/runner/snapshot-start.js +16 -0
- package/dist/sdk/extension/ci.d.ts +2 -0
- package/dist/sdk/extension/ci.js +6 -0
- package/dist/sdk/extension/commands.d.ts +44 -28
- package/dist/sdk/extension/commands.js +15 -13
- package/dist/sdk/extension/driver.d.ts +143 -0
- package/dist/sdk/extension/driver.js +28 -0
- package/dist/sdk/extension/index.d.ts +3 -1
- package/dist/sdk/extension/index.js +16 -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 +10 -8
- package/dist/sdk/extension/lifecycle.js +2 -2
- package/dist/sdk/extension/progress.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 +12 -12
- package/dist/vendor/testserver-sdk/container/container.js +39 -21
- 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/vendor/testserver-sdk/testserver/failure.d.ts +4 -3
- package/dist/vendor/testserver-sdk/testserver/failure.js +4 -3
- 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 -5
- package/skills/read-run-output.md +22 -7
- package/dist/chunks/chunk-AGWW3HDT.js +0 -2559
- package/dist/chunks/chunk-H2VCSNVU.js +0 -351
- package/dist/commands/exec/run-record.js +0 -135
- 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/mint.d.ts +0 -10
- package/dist/core/mint.js +0 -14
- package/dist/core/resource-registry.d.ts +0 -54
- package/dist/core/resource-registry.js +0 -57
- 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/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 -34
- package/dist/story/command-line.js +0 -100
- 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 -10
- package/dist/story/json.d.ts +0 -16
- package/dist/story/json.js +0 -59
- package/dist/story/live/recording-gateway.d.ts +0 -2
- package/dist/story/live/recording-gateway.js +0 -103
- package/dist/story/mode.d.ts +0 -17
- package/dist/story/mode.js +0 -21
- 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 -130
- 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/{vitest → extensions/vitest/plan}/list-output.d.ts +0 -0
- /package/dist/{vitest → extensions/vitest/plan}/list-output.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/extensions.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { Driver } from "./sdk/extension/index.ts";
|
|
2
2
|
/**
|
|
3
|
-
* Every extension, in order. Adding an extension adds it here; its resources join `RESOURCES` in this order
|
|
3
|
+
* Every extension, in order. Adding an extension adds it here; its resources join `RESOURCES` in this order, and its
|
|
4
|
+
* drivers `DRIVERS`. An extension may bring no resource, as the Vitest and
|
|
5
|
+
* Playwright extensions bring only a driver each.
|
|
4
6
|
*/
|
|
5
7
|
export declare const EXTENSIONS: readonly [import("./sdk/extension/commands.ts").Extension<"github", readonly [import("./sdk/extension/resource-definition.ts").ResourceDefinition<"githubFixtureRepo", {
|
|
6
8
|
readonly repo: {
|
|
@@ -18,13 +20,13 @@ export declare const EXTENSIONS: readonly [import("./sdk/extension/commands.ts")
|
|
|
18
20
|
readonly description: "Whether the run goes on without the GitHub fixture repository when the launcher environment variable its tokenEnv names is unset, overriding resources.githubFixtureRepo.optional in storm.config.ts; default false. --github-optional=false makes the repository required for this run, so a run without its token is refused with github_token_missing before anything starts. Gives the run the GitHub fixture repository resource, whose repo and tokenEnv only storm.config.ts gives.";
|
|
19
21
|
};
|
|
20
22
|
};
|
|
21
|
-
}, import("./extensions/github/index.ts").GitHubFixtureRepoPayload, import("./extensions/github/
|
|
23
|
+
}, import("./extensions/github/index.ts").GitHubFixtureRepoPayload, import("./extensions/github/context.ts").GitHubFixtureRepoContext>], unknown, readonly []>, import("./sdk/extension/commands.ts").Extension<"testserver", readonly [import("./sdk/extension/resource-definition.ts").ResourceDefinition<"testserverPool", {
|
|
22
24
|
readonly sandboxes: {
|
|
23
25
|
readonly schema: import("zod").ZodNumber;
|
|
24
26
|
readonly default: ({ testPlan }: import("./sdk/extension/resource-definition.ts").PlannedRun) => number;
|
|
25
27
|
readonly flag: {
|
|
26
28
|
readonly valueLabel: "N";
|
|
27
|
-
readonly description: "How many Testserver sandboxes the command gets, 1 to 32, overriding resources.testserverPool.sandboxes in storm.config.ts; default 1, or with storm vitest one per 4 test files
|
|
29
|
+
readonly description: "How many Testserver sandboxes the command gets, 1 to 32, overriding resources.testserverPool.sandboxes in storm.config.ts; default 1, or with storm vitest or storm playwright one per 4 test files it counted, at most 8. Gives the run the Testserver pool.";
|
|
28
30
|
};
|
|
29
31
|
};
|
|
30
32
|
readonly build: {
|
|
@@ -58,14 +60,14 @@ export declare const EXTENSIONS: readonly [import("./sdk/extension/commands.ts")
|
|
|
58
60
|
readonly description: "Whether the run may create Testserver sandboxes, overriding resources.testserverPool.create in storm.config.ts; default true. --testserver-create=false runs only on Testserver sandboxes already in the pool, never minting for Testserver or creating: it needs no --scope or --project with --unsandboxed, and takes no --testserver-ttl. --testserver-create turns creating on over the file's create: false. Gives the run the Testserver pool.";
|
|
59
61
|
};
|
|
60
62
|
};
|
|
61
|
-
}, import("./extensions/testserver/run/connection.ts").TestserverConnection, import("./extensions/testserver/
|
|
63
|
+
}, import("./extensions/testserver/run/connection.ts").TestserverConnection, import("./extensions/testserver/context.ts").TestserverPoolContext>], import("./extensions/testserver/commands/app.ts").TestserverLauncherApp, readonly []>, import("./sdk/extension/commands.ts").Extension<"vitest", readonly [], unknown, readonly [Driver<"vitest", import("./extensions/vitest/driver.ts").VitestDriverContext>]>, import("./sdk/extension/commands.ts").Extension<"playwright", readonly [], unknown, readonly [Driver<"playwright", import("./extensions/playwright/driver.ts").PlaywrightDriverContext>]>];
|
|
62
64
|
/**
|
|
63
65
|
* Every extension's resources, each extension's in turn, in the one order everything about the resources follows:
|
|
64
66
|
* the order a run calls their `beforeRun` and their `acquireForRun`, their refusals rank in, the run payload's
|
|
65
67
|
* `resources`, the waterfall's resource rows, the order a config file's problems name the resources in, and the cleanup
|
|
66
|
-
* warnings. A run calls their `releaseAfterRun` in reverse. What a run
|
|
67
|
-
*
|
|
68
|
-
*
|
|
68
|
+
* warnings. A run calls their `releaseAfterRun` in reverse. What a config file's `resources` and the run flags are
|
|
69
|
+
* checked by, each resource with its own types. Adding a resource definition adds its `defineResource` to its
|
|
70
|
+
* extension's `resources`.
|
|
69
71
|
*/
|
|
70
72
|
export declare const RESOURCES: readonly [import("./sdk/extension/resource-definition.ts").ResourceDefinition<"githubFixtureRepo", {
|
|
71
73
|
readonly repo: {
|
|
@@ -83,13 +85,13 @@ export declare const RESOURCES: readonly [import("./sdk/extension/resource-defin
|
|
|
83
85
|
readonly description: "Whether the run goes on without the GitHub fixture repository when the launcher environment variable its tokenEnv names is unset, overriding resources.githubFixtureRepo.optional in storm.config.ts; default false. --github-optional=false makes the repository required for this run, so a run without its token is refused with github_token_missing before anything starts. Gives the run the GitHub fixture repository resource, whose repo and tokenEnv only storm.config.ts gives.";
|
|
84
86
|
};
|
|
85
87
|
};
|
|
86
|
-
}, import("./extensions/github/index.ts").GitHubFixtureRepoPayload, import("./extensions/github/
|
|
88
|
+
}, import("./extensions/github/index.ts").GitHubFixtureRepoPayload, import("./extensions/github/context.ts").GitHubFixtureRepoContext>, import("./sdk/extension/resource-definition.ts").ResourceDefinition<"testserverPool", {
|
|
87
89
|
readonly sandboxes: {
|
|
88
90
|
readonly schema: import("zod").ZodNumber;
|
|
89
91
|
readonly default: ({ testPlan }: import("./sdk/extension/resource-definition.ts").PlannedRun) => number;
|
|
90
92
|
readonly flag: {
|
|
91
93
|
readonly valueLabel: "N";
|
|
92
|
-
readonly description: "How many Testserver sandboxes the command gets, 1 to 32, overriding resources.testserverPool.sandboxes in storm.config.ts; default 1, or with storm vitest one per 4 test files
|
|
94
|
+
readonly description: "How many Testserver sandboxes the command gets, 1 to 32, overriding resources.testserverPool.sandboxes in storm.config.ts; default 1, or with storm vitest or storm playwright one per 4 test files it counted, at most 8. Gives the run the Testserver pool.";
|
|
93
95
|
};
|
|
94
96
|
};
|
|
95
97
|
readonly build: {
|
|
@@ -123,31 +125,42 @@ export declare const RESOURCES: readonly [import("./sdk/extension/resource-defin
|
|
|
123
125
|
readonly description: "Whether the run may create Testserver sandboxes, overriding resources.testserverPool.create in storm.config.ts; default true. --testserver-create=false runs only on Testserver sandboxes already in the pool, never minting for Testserver or creating: it needs no --scope or --project with --unsandboxed, and takes no --testserver-ttl. --testserver-create turns creating on over the file's create: false. Gives the run the Testserver pool.";
|
|
124
126
|
};
|
|
125
127
|
};
|
|
126
|
-
}, import("./extensions/testserver/run/connection.ts").TestserverConnection, import("./extensions/testserver/
|
|
127
|
-
/** Every resource's reports: its cleanup and what a ran outcome says of it, and what the launcher does for it. */
|
|
128
|
-
export declare const RESOURCE_REPORTS: import("./core/resource-reports.ts").ResourceReports;
|
|
129
|
-
/** How every resource shows in a run's progress: its own events' lines, and its lane's rows and label. */
|
|
130
|
-
export declare const RESOURCE_PRESENTATIONS: import("./core/presentations.ts").ResourcePresentations;
|
|
131
|
-
/** The run's cleanup, as every outcome after the run starts acquiring reports it: the runner's and each resource's. */
|
|
132
|
-
export declare const RUN_CLEANUP: import("./commands/exec/cleanup.ts").RunCleanup;
|
|
133
|
-
/** Every resource's lifecycle, over its world from `worlds`, by its name: what a run calls before it starts. */
|
|
134
|
-
export declare function resourceLifecycles(worlds: StormWorlds): ResourceLifecycles;
|
|
128
|
+
}, import("./extensions/testserver/run/connection.ts").TestserverConnection, import("./extensions/testserver/context.ts").TestserverPoolContext>];
|
|
135
129
|
/**
|
|
136
|
-
*
|
|
137
|
-
*
|
|
130
|
+
* The definition set of `RESOURCES`, in their order: what a run, its views and its reports take. It holds every
|
|
131
|
+
* resource's reports and presentations, the run's state and waterfall through the resources' progress, their
|
|
132
|
+
* lifecycles over given Contexts, and their Contexts built from a launcher environment.
|
|
138
133
|
*/
|
|
139
|
-
export
|
|
140
|
-
|
|
134
|
+
export declare const DEFINITION_SET: import("./core/resource-definition-set.ts").ResourceDefinitionSet;
|
|
135
|
+
/**
|
|
136
|
+
* Each definition's Context, by its name: what the launcher hands each lifecycle, for every resource instance of the
|
|
137
|
+
* definition, and what an extension's mount reads its own. Each resource keeps its Context's type.
|
|
138
|
+
*/
|
|
139
|
+
export type StormResourceContextMap = {
|
|
140
|
+
readonly [R in (typeof RESOURCES)[number] as R["name"]]: ReturnType<R["context"]>;
|
|
141
141
|
};
|
|
142
142
|
/**
|
|
143
|
-
* Every definition's live
|
|
143
|
+
* Every definition's live Context, by its name, each built from what the launcher gives it over `env`, with its own
|
|
144
144
|
* state directory.
|
|
145
145
|
*/
|
|
146
|
-
export declare function
|
|
146
|
+
export declare function liveResourceContexts(env: Readonly<Record<string, string | undefined>>): StormResourceContextMap;
|
|
147
|
+
/**
|
|
148
|
+
* Every extension's drivers, each extension's in turn, each with its own types. Adding a driver adds its
|
|
149
|
+
* `defineDriver` to its extension's `drivers`. The launcher keeps a thin `commands/<name>/` directory for each, whose
|
|
150
|
+
* `command.ts` is the driver's run command (`defineRunCommand`). `storm exec` has no driver, so none is here for it.
|
|
151
|
+
*/
|
|
152
|
+
export declare const DRIVERS: readonly [Driver<"vitest", import("./extensions/vitest/driver.ts").VitestDriverContext>, Driver<"playwright", import("./extensions/playwright/driver.ts").PlaywrightDriverContext>];
|
|
147
153
|
/**
|
|
148
|
-
* The
|
|
149
|
-
* `
|
|
154
|
+
* The registry's driver named `name`, for the run command of that name. Throws when no extension brings one: a
|
|
155
|
+
* `commands/<name>/` directory whose driver left the registry is a bug in the launcher's tree.
|
|
150
156
|
*/
|
|
151
|
-
export declare function
|
|
152
|
-
/**
|
|
153
|
-
|
|
157
|
+
export declare function driverNamed(name: string): Driver;
|
|
158
|
+
/**
|
|
159
|
+
* Each driver's Context, by its name: what the launcher hands that driver's plan step. Each driver keeps its Context's
|
|
160
|
+
* type.
|
|
161
|
+
*/
|
|
162
|
+
export type StormDriverContextMap = {
|
|
163
|
+
readonly [D in (typeof DRIVERS)[number] as D["name"]]: ReturnType<D["context"]>;
|
|
164
|
+
};
|
|
165
|
+
/** Every driver's live Context, by its name, each built by its own `context`. */
|
|
166
|
+
export declare function liveDriverContexts(): StormDriverContextMap;
|
package/dist/extensions.js
CHANGED
|
@@ -1,53 +1,68 @@
|
|
|
1
|
-
// The registry, in the composition layer: the one file that takes every extension value. It lists the
|
|
2
|
-
// order (`EXTENSIONS`), takes their resources in that order (`RESOURCES`), each as its `defineResource`
|
|
3
|
-
//
|
|
4
|
-
// the
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
// The extension registry, in the composition layer: the one file that takes every extension value. It lists the
|
|
2
|
+
// extensions in order (`EXTENSIONS`), takes their resources in that order (`RESOURCES`), each as its `defineResource`
|
|
3
|
+
// returned it, and builds from that list the resource definition set (`DEFINITION_SET`, the core's
|
|
4
|
+
// `resourceDefinitionSet`): the resource reports and presentations, the run's state and waterfall, the lifecycles and
|
|
5
|
+
// the Contexts. It types each definition's Context (`StormResourceContextMap`) and builds the live Contexts
|
|
6
|
+
// (`liveResourceContexts`). Beside the resources it takes the extensions' drivers (`DRIVERS`), each as its
|
|
7
|
+
// `defineDriver` returned it, gives a run command its driver by name (`driverNamed`), types each driver's Context
|
|
8
|
+
// (`StormDriverContextMap`) and builds the live ones (`liveDriverContexts`). It imports no command: the commands import
|
|
9
|
+
// it. The extensions' command trees, which help needs without the rest, are in `src/extension-commands.ts`. An
|
|
10
|
+
// extension folder, a driver extension's among them, which brings only a driver, is reached only through its
|
|
11
|
+
// extension value, and only this file takes one (`src/extension-commands.ts` takes only each extension's
|
|
12
|
+
// `command-tree.ts`); `.oxlintrc.json` enforces it.
|
|
13
|
+
import { driversOf, driverContexts, resourceDefinitionSet, resourcesOf } from "./core/index.js";
|
|
10
14
|
import { githubExtension } from "./extensions/github/index.js";
|
|
15
|
+
import { playwrightExtension } from "./extensions/playwright/extension.js";
|
|
11
16
|
import { testserverExtension } from "./extensions/testserver/index.js";
|
|
17
|
+
import { vitestExtension } from "./extensions/vitest/extension.js";
|
|
12
18
|
/**
|
|
13
|
-
* Every extension, in order. Adding an extension adds it here; its resources join `RESOURCES` in this order
|
|
19
|
+
* Every extension, in order. Adding an extension adds it here; its resources join `RESOURCES` in this order, and its
|
|
20
|
+
* drivers `DRIVERS`. An extension may bring no resource, as the Vitest and
|
|
21
|
+
* Playwright extensions bring only a driver each.
|
|
14
22
|
*/
|
|
15
|
-
export const EXTENSIONS = [githubExtension, testserverExtension];
|
|
23
|
+
export const EXTENSIONS = [githubExtension, testserverExtension, vitestExtension, playwrightExtension];
|
|
16
24
|
/**
|
|
17
25
|
* Every extension's resources, each extension's in turn, in the one order everything about the resources follows:
|
|
18
26
|
* the order a run calls their `beforeRun` and their `acquireForRun`, their refusals rank in, the run payload's
|
|
19
27
|
* `resources`, the waterfall's resource rows, the order a config file's problems name the resources in, and the cleanup
|
|
20
|
-
* warnings. A run calls their `releaseAfterRun` in reverse. What a run
|
|
21
|
-
*
|
|
22
|
-
*
|
|
28
|
+
* warnings. A run calls their `releaseAfterRun` in reverse. What a config file's `resources` and the run flags are
|
|
29
|
+
* checked by, each resource with its own types. Adding a resource definition adds its `defineResource` to its
|
|
30
|
+
* extension's `resources`.
|
|
23
31
|
*/
|
|
24
32
|
export const RESOURCES = resourcesOf(EXTENSIONS);
|
|
25
|
-
/** Every resource's reports: its cleanup and what a ran outcome says of it, and what the launcher does for it. */
|
|
26
|
-
export const RESOURCE_REPORTS = resourceReports(RESOURCES);
|
|
27
|
-
/** How every resource shows in a run's progress: its own events' lines, and its lane's rows and label. */
|
|
28
|
-
export const RESOURCE_PRESENTATIONS = resourcePresentations(RESOURCES);
|
|
29
|
-
/** The run's cleanup, as every outcome after the run starts acquiring reports it: the runner's and each resource's. */
|
|
30
|
-
export const RUN_CLEANUP = runCleanupOf(RESOURCE_REPORTS);
|
|
31
|
-
/** Every resource's lifecycle, over its world from `worlds`, by its name: what a run calls before it starts. */
|
|
32
|
-
export function resourceLifecycles(worlds) {
|
|
33
|
-
return bindLifecycles(RESOURCES, worlds);
|
|
34
|
-
}
|
|
35
33
|
/**
|
|
36
|
-
*
|
|
34
|
+
* The definition set of `RESOURCES`, in their order: what a run, its views and its reports take. It holds every
|
|
35
|
+
* resource's reports and presentations, the run's state and waterfall through the resources' progress, their
|
|
36
|
+
* lifecycles over given Contexts, and their Contexts built from a launcher environment.
|
|
37
|
+
*/
|
|
38
|
+
export const DEFINITION_SET = resourceDefinitionSet(RESOURCES);
|
|
39
|
+
/**
|
|
40
|
+
* Every definition's live Context, by its name, each built from what the launcher gives it over `env`, with its own
|
|
37
41
|
* state directory.
|
|
38
42
|
*/
|
|
39
|
-
export function
|
|
40
|
-
//
|
|
41
|
-
|
|
43
|
+
export function liveResourceContexts(env) {
|
|
44
|
+
// The definition set builds one Context per resource of `RESOURCES`, under its definition's name, from its own
|
|
45
|
+
// `context`.
|
|
46
|
+
return DEFINITION_SET.contexts(env);
|
|
42
47
|
}
|
|
43
48
|
/**
|
|
44
|
-
*
|
|
45
|
-
* `
|
|
49
|
+
* Every extension's drivers, each extension's in turn, each with its own types. Adding a driver adds its
|
|
50
|
+
* `defineDriver` to its extension's `drivers`. The launcher keeps a thin `commands/<name>/` directory for each, whose
|
|
51
|
+
* `command.ts` is the driver's run command (`defineRunCommand`). `storm exec` has no driver, so none is here for it.
|
|
52
|
+
*/
|
|
53
|
+
export const DRIVERS = driversOf(EXTENSIONS);
|
|
54
|
+
/**
|
|
55
|
+
* The registry's driver named `name`, for the run command of that name. Throws when no extension brings one: a
|
|
56
|
+
* `commands/<name>/` directory whose driver left the registry is a bug in the launcher's tree.
|
|
46
57
|
*/
|
|
47
|
-
export function
|
|
48
|
-
|
|
58
|
+
export function driverNamed(name) {
|
|
59
|
+
const drivers = DRIVERS;
|
|
60
|
+
const driver = drivers.find((each) => each.name === name);
|
|
61
|
+
if (driver === undefined)
|
|
62
|
+
throw new Error(`No extension in src/extensions.ts brings a driver named ${name}`);
|
|
63
|
+
return driver;
|
|
49
64
|
}
|
|
50
|
-
/**
|
|
51
|
-
export function
|
|
52
|
-
return
|
|
65
|
+
/** Every driver's live Context, by its name, each built by its own `context`. */
|
|
66
|
+
export function liveDriverContexts() {
|
|
67
|
+
return driverContexts(DRIVERS);
|
|
53
68
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** The command's `terminate` signal, and how to stop following the command's own signal once the command ended. */
|
|
2
|
+
export interface ForwardedSigterm {
|
|
3
|
+
/** Aborts once `signal` has aborted with a SIGTERM: what a command gateway sends the command SIGTERM on. */
|
|
4
|
+
readonly terminate: AbortSignal;
|
|
5
|
+
readonly release: () => void;
|
|
6
|
+
}
|
|
7
|
+
/** Follows `signal`, Clinkr's command signal, and aborts `terminate` only for a SIGTERM, even one before the call. */
|
|
8
|
+
export declare function forwardSigterm(signal: AbortSignal): ForwardedSigterm;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Which of the signals that stop a command storm passes on to a command it runs on this machine: only SIGTERM. Ctrl+C
|
|
2
|
+
// and a closed terminal reach the command directly, through its process group, so passing them on would signal it
|
|
3
|
+
// twice. `exec`'s, `vitest`'s and `playwright`'s run use it.
|
|
4
|
+
import { NodeSignalCancellation } from "@vercel/clinkr/node";
|
|
5
|
+
/** Follows `signal`, Clinkr's command signal, and aborts `terminate` only for a SIGTERM, even one before the call. */
|
|
6
|
+
export function forwardSigterm(signal) {
|
|
7
|
+
const terminate = new AbortController();
|
|
8
|
+
const forward = () => {
|
|
9
|
+
const reason = signal.reason;
|
|
10
|
+
if (reason instanceof NodeSignalCancellation && reason.signal === "SIGTERM")
|
|
11
|
+
terminate.abort(reason);
|
|
12
|
+
};
|
|
13
|
+
if (signal.aborted)
|
|
14
|
+
forward();
|
|
15
|
+
else
|
|
16
|
+
signal.addEventListener("abort", forward, { once: true });
|
|
17
|
+
return { terminate: terminate.signal, release: () => signal.removeEventListener("abort", forward) };
|
|
18
|
+
}
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
export { type CommandCredentialSource, configErrors, type ConfigLoadError, type ConfigResolver, credentialErrors, type CredentialReport, type CredentialResolver, type CredentialSourceError, credentialSourceErrors, type CredentialTarget, type LoadedResourceSettings, type TargetSettings, } from "../config/index.ts";
|
|
2
|
+
export type { PackageBinSearch, PackageBinService } from "./local-services.ts";
|
|
@@ -3,5 +3,6 @@
|
|
|
3
3
|
// (`CredentialResolver`, `credentialErrors` and `credentialSourceErrors`), re-exported from `config`. It is the
|
|
4
4
|
// launcher's, not the SDK's: it loads `config`, and through it the runner and Clinkr, which a resource's code, through
|
|
5
5
|
// the extension API's run-time entry, never loads. Only an extension's command files import it (`.oxlintrc.json`). A
|
|
6
|
-
// command that uses a resolver spreads its error maps into its outcomes and returns a resolver's refusal as it is.
|
|
6
|
+
// command that uses a resolver spreads its error maps into its outcomes and returns a resolver's refusal as it is. It
|
|
7
|
+
// also declares the local services' types (`local-services.ts`), which reach this machine and refuse nothing.
|
|
7
8
|
export { configErrors, credentialErrors, credentialSourceErrors, } from "../config/index.js";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where the package binary service found a binary: the absolute path of the nearest `node_modules/.bin/<name>`; or,
|
|
3
|
+
* when no directory has one, every directory it looked in, nearest first.
|
|
4
|
+
*/
|
|
5
|
+
export type PackageBinSearch = {
|
|
6
|
+
readonly ok: true;
|
|
7
|
+
readonly path: string;
|
|
8
|
+
} | {
|
|
9
|
+
readonly ok: false;
|
|
10
|
+
readonly searched: readonly string[];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Finds the binary a package's scripts would run, such as `vitest` or `playwright`, as `storm vitest` finds `vitest`
|
|
14
|
+
* for a run on this machine.
|
|
15
|
+
*/
|
|
16
|
+
export interface PackageBinService {
|
|
17
|
+
/**
|
|
18
|
+
* The nearest `node_modules/.bin/<name>` from `from`, an absolute directory, and each directory above it, up to the
|
|
19
|
+
* root of the Git repository `from` is in, or the filesystem's root outside one.
|
|
20
|
+
*/
|
|
21
|
+
find(name: string, from: string): Promise<PackageBinSearch>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// The local services' types (`GLOSSARY.md`, **Local service**): what the launcher gives every command to reach this
|
|
2
|
+
// machine, the package binary service (`PackageBinService`), which finds a package's binary, such as `vitest`. The
|
|
3
|
+
// composition layer builds it (`src/local-services.ts`). It refuses nothing: it answers what it found, and the command
|
|
4
|
+
// words it. This file imports nothing, so the module stays left of `core`: `PackageBinSearch` declares the shape of
|
|
5
|
+
// the core's `FindPackageBinResult` itself.
|
|
6
|
+
export {};
|
package/dist/live-app.js
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
// The app storm's executable hands every command: the live
|
|
2
|
-
// from Clinkr's Node host. Only `bin/storm.ts` loads this module, inside its `app`
|
|
3
|
-
// when a command runs; so help, listings, `--version`, and invocation errors never
|
|
4
|
-
// runner, or the SDK.
|
|
5
|
-
import { launcherResolvers, liveContext } from "./context.js";
|
|
1
|
+
// The app storm's executable hands every command: the live `StormContext`, each resource's and each driver's live
|
|
2
|
+
// Context, and what a run needs from Clinkr's Node host. Only `bin/storm.ts` loads this module, inside its `app`
|
|
3
|
+
// factory, which Clinkr calls only when a command runs; so help, listings, `--version`, and invocation errors never
|
|
4
|
+
// load the extension registry, the runner, or the SDK.
|
|
5
|
+
import { launcherResolvers, liveContext, localServices } from "./context.js";
|
|
6
6
|
import { resolvePresentation } from "./presentation.js";
|
|
7
|
-
import {
|
|
7
|
+
import { liveDriverContexts, liveResourceContexts, RESOURCES } from "./extensions.js";
|
|
8
8
|
import { localUserName } from "./runner/index.js";
|
|
9
9
|
/** The live app over the resolved host, whose commands record their status in `exit`, which the executable reads. */
|
|
10
10
|
export function liveStormApp(host, build, exit) {
|
|
11
11
|
const context = liveContext({ env: host.env });
|
|
12
12
|
return {
|
|
13
13
|
context,
|
|
14
|
-
|
|
14
|
+
resourceContexts: liveResourceContexts(host.env),
|
|
15
|
+
driverContexts: liveDriverContexts(),
|
|
15
16
|
resourceDefinitions: RESOURCES,
|
|
16
17
|
...launcherResolvers({ context, cwd: host.cwd, resourceDefinitions: RESOURCES }),
|
|
18
|
+
...localServices({ context }),
|
|
17
19
|
env: host.env,
|
|
18
20
|
cwd: host.cwd,
|
|
19
21
|
version: build.version,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CheckoutGateway } from "./runner/index.ts";
|
|
2
|
+
import type { PackageBinGateway } from "./core/index.ts";
|
|
3
|
+
import type { PackageBinService } from "./launcher-resolvers/index.ts";
|
|
4
|
+
/**
|
|
5
|
+
* The package binary service over `checkout`, which says the repository's root, and `packageBins`, which looks for the
|
|
6
|
+
* binary in each directory from `from` up to that root, or up to the filesystem's root outside a repository.
|
|
7
|
+
*/
|
|
8
|
+
export declare function packageBinService(context: {
|
|
9
|
+
readonly checkout: CheckoutGateway;
|
|
10
|
+
readonly packageBins: PackageBinGateway;
|
|
11
|
+
}): PackageBinService;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// The local services, which reach this machine: the package binary service, which finds a package's binary on this
|
|
2
|
+
// machine, as `storm vitest` finds `vitest` for a run on this machine. `localServices` (`context.ts`) builds it over
|
|
3
|
+
// the app's context; its types are in `launcher-resolvers/local-services.ts`.
|
|
4
|
+
import { parse } from "node:path";
|
|
5
|
+
/**
|
|
6
|
+
* The package binary service over `checkout`, which says the repository's root, and `packageBins`, which looks for the
|
|
7
|
+
* binary in each directory from `from` up to that root, or up to the filesystem's root outside a repository.
|
|
8
|
+
*/
|
|
9
|
+
export function packageBinService(context) {
|
|
10
|
+
return {
|
|
11
|
+
find: async (name, from) => {
|
|
12
|
+
const root = await context.checkout.repositoryRoot({ cwd: from });
|
|
13
|
+
return await context.packageBins.find({ name, from, root: root.ok ? root.value : parse(from).root });
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { workerIndex } from "./worker-index.ts";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// storm's Playwright library's entry for an extension's support library for Playwright, not a published export: a
|
|
2
|
+
// worker's worker index (`workerIndex`). It loads no Playwright and not the reporter, which a config lists by its own
|
|
3
|
+
// export (`reporter.ts`). The launcher imports nothing here.
|
|
4
|
+
export { workerIndex } from "./worker-index.js";
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/** The parts of Playwright's `FullConfig` the reporter reads. */
|
|
2
|
+
export interface ReportedConfig {
|
|
3
|
+
/** The directory test files' paths are reported relative to: the config's `testDir`, or the config file's own. */
|
|
4
|
+
readonly rootDir: string;
|
|
5
|
+
}
|
|
6
|
+
/** The parts of Playwright's root `Suite` the reporter reads. */
|
|
7
|
+
export interface ReportedSuite {
|
|
8
|
+
allTests(): readonly ReportedTestCase[];
|
|
9
|
+
}
|
|
10
|
+
/** The parts of one of Playwright's `TestError`s the reporter reads. */
|
|
11
|
+
export interface ReportedTestError {
|
|
12
|
+
readonly message?: string | undefined;
|
|
13
|
+
readonly stack?: string | undefined;
|
|
14
|
+
/** What a test threw when it was no `Error`. */
|
|
15
|
+
readonly value?: string | undefined;
|
|
16
|
+
}
|
|
17
|
+
/** The parts of Playwright's `TestResult`, one attempt at a test, the reporter reads. */
|
|
18
|
+
export interface ReportedAttempt {
|
|
19
|
+
/** How the attempt ended: `passed`, `failed`, `timedOut`, `skipped` or `interrupted`. */
|
|
20
|
+
readonly status: string;
|
|
21
|
+
readonly errors: readonly ReportedTestError[];
|
|
22
|
+
}
|
|
23
|
+
/** The parts of Playwright's `TestCase` the reporter reads. */
|
|
24
|
+
export interface ReportedTestCase {
|
|
25
|
+
/** Playwright's id for the test in one Playwright project, unique within a run. */
|
|
26
|
+
readonly id: string;
|
|
27
|
+
readonly location: {
|
|
28
|
+
readonly file: string;
|
|
29
|
+
};
|
|
30
|
+
/** How many times Playwright retries the test when it fails. */
|
|
31
|
+
readonly retries: number;
|
|
32
|
+
/** Every attempt at the test so far, in order. */
|
|
33
|
+
readonly results: readonly ReportedAttempt[];
|
|
34
|
+
/** The root's empty title, the Playwright project's name, the file, each `describe` title and the test's own. */
|
|
35
|
+
titlePath(): readonly string[];
|
|
36
|
+
/** `expected`, `unexpected`, `flaky` or `skipped`, over every attempt so far. */
|
|
37
|
+
outcome(): string;
|
|
38
|
+
}
|
|
39
|
+
export interface StormReporterOptions {
|
|
40
|
+
/** Where to read `STORM_RUN`. Defaults to `process.env`. */
|
|
41
|
+
readonly env?: Readonly<Record<string, string | undefined>>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* A Playwright reporter for a project's config under a storm run: it appends each test's final result, retries
|
|
45
|
+
* settled, to the run payload's `testEvents` file, which the run counts the tests from. It prints nothing, so list it
|
|
46
|
+
* beside the reporter a person reads:
|
|
47
|
+
*
|
|
48
|
+
* ```ts
|
|
49
|
+
* reporter: [["line"], ["@vercel/storm/playwright/reporter"]],
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* A `--reporter` given to Playwright on the command line replaces both. Outside a storm run, or when the run payload
|
|
53
|
+
* names no test events file, it reports nothing, and once an append fails it drops every later result: it never fails
|
|
54
|
+
* a test.
|
|
55
|
+
*/
|
|
56
|
+
export default class StormReporter {
|
|
57
|
+
#private;
|
|
58
|
+
constructor(options?: StormReporterOptions);
|
|
59
|
+
/** Playwright adds its own terminal reporter when none of a config's reporters prints. */
|
|
60
|
+
printsToStdio(): boolean;
|
|
61
|
+
onBegin(config: ReportedConfig, suite: ReportedSuite): void;
|
|
62
|
+
onStdOut(chunk: string | Uint8Array, test?: ReportedTestCase | void): void;
|
|
63
|
+
onStdErr(chunk: string | Uint8Array, test?: ReportedTestCase | void): void;
|
|
64
|
+
onTestEnd(test: ReportedTestCase, result: ReportedAttempt): void;
|
|
65
|
+
onEnd(): void;
|
|
66
|
+
}
|
|
67
|
+
/** What the reporter does with each thing Playwright tells it. */
|
|
68
|
+
export interface PlaywrightResultReporter {
|
|
69
|
+
onBegin(config: ReportedConfig, suite: ReportedSuite): void;
|
|
70
|
+
/** A console write, stdout or stderr, and the test that was running when it was made, if any. */
|
|
71
|
+
onOutput(chunk: string | Uint8Array, test: ReportedTestCase | undefined): void;
|
|
72
|
+
onTestEnd(test: ReportedTestCase, result: ReportedAttempt): void;
|
|
73
|
+
onEnd(): void;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* The reporter: once for each test, by Playwright's id for it, writes its final result with the SDK's test result
|
|
77
|
+
* writer (`testResultWriter`).
|
|
78
|
+
*
|
|
79
|
+
* - When: once an attempt ends after which Playwright can't run the test again (`onTestEnd`): an interrupted attempt,
|
|
80
|
+
* or any attempt of a test with no retry left. Playwright runs a passed or skipped test again when it retries the
|
|
81
|
+
* serial group the test is in, and its reporter API doesn't say which tests are in one, so an attempt with a retry
|
|
82
|
+
* left isn't final, whatever its status. When the run ends (`onEnd`), every test not yet reported is: one Playwright
|
|
83
|
+
* never ran, as after `--max-failures` or an interrupt, reads as skipped, and any other with its outcome so far, a
|
|
84
|
+
* failure whose retry never came as failed.
|
|
85
|
+
* - State: Playwright's outcome over every attempt. `expected` is a pass, a test marked `test.fail()` that failed
|
|
86
|
+
* among them; `flaky`, a pass after a failed attempt, is a pass with `flaky`; `unexpected` is a failure; `skipped` is
|
|
87
|
+
* a skip. `retryCount` is the attempts after the first.
|
|
88
|
+
* - Name: `[<Playwright project>] <describe titles> > <title>`, without the brackets when the project has no name.
|
|
89
|
+
* - File: the test file's path relative to the config's `rootDir`.
|
|
90
|
+
* - Errors: a failed test's last attempt's, or a flaky pass's failed attempts', each without the terminal colors
|
|
91
|
+
* Playwright writes into them, the error class its message starts with as its name and the rest as its message. The
|
|
92
|
+
* writer keeps the first of them and cuts each to size.
|
|
93
|
+
* - Test output: each chunk Playwright hands `onStdOut` and `onStdErr` for the test, in arrival order, every attempt's.
|
|
94
|
+
* A chunk no test was running for belongs to none and is dropped.
|
|
95
|
+
*/
|
|
96
|
+
export declare function playwrightResultReporter(env: Readonly<Record<string, string | undefined>>, append?: (path: string, text: string) => void, now?: () => number): PlaywrightResultReporter;
|