@gfdelarue/testkit 0.4.4 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +752 -462
- package/bin/testkit-windows-owner-arm64.exe +0 -0
- package/bin/testkit-windows-owner-x64.exe +0 -0
- package/dist/app/bugs/categories.js +1 -1
- package/dist/app/bugs/ci-report.js +2 -2
- package/dist/app/bugs/ci-summary.js +3 -3
- package/dist/app/bugs/draft.js +4 -4
- package/dist/app/bugs/facts.js +2 -2
- package/dist/app/bugs/file.js +1 -1
- package/dist/app/bugs/gate.js +1 -1
- package/dist/app/bugs/guide.js +3 -3
- package/dist/app/bugs/issue.js +4 -4
- package/dist/app/bugs/known-failures.js +1 -1
- package/dist/app/bugs/record.js +2 -2
- package/dist/app/bugs/run-reading.js +1 -1
- package/dist/app/bugs/supplied-reproduce.js +1 -0
- package/dist/app/campaigns/campaign.js +1 -1
- package/dist/app/cleanup/index.js +1 -1
- package/dist/app/db-schema/prepare.js +1 -1
- package/dist/app/destroy/index.js +1 -1
- package/dist/app/discover/index.js +2 -2
- package/dist/app/doctor/index.js +1 -1
- package/dist/app/environments/config-driven.js +1 -0
- package/dist/app/environments/environment-file.js +1 -0
- package/dist/app/environments/file-setup.js +1 -0
- package/dist/app/environments/routing.js +1 -0
- package/dist/app/environments/static-values.js +1 -0
- package/dist/app/environments/supplied-input.js +1 -0
- package/dist/app/environments/supplied.js +1 -0
- package/dist/app/environments/task-databases.js +2 -0
- package/dist/app/file-selection.js +1 -1
- package/dist/app/inspect/artifacts.js +1 -1
- package/dist/app/inspect/index.js +1 -1
- package/dist/app/lint/index.js +1 -1
- package/dist/app/lint/native.js +1 -1
- package/dist/app/lint/options.js +1 -1
- package/dist/app/lint/rules/data.js +1 -1
- package/dist/app/lint/rules/engine-imports.js +1 -1
- package/dist/app/lint/rules/syntax.js +1 -1
- package/dist/app/lint/rules/unit.js +1 -1
- package/dist/app/lint/shared.js +1 -1
- package/dist/app/package-inspection.js +1 -1
- package/dist/app/reports/files.js +1 -0
- package/dist/app/reports/prepare.js +2 -0
- package/dist/app/reports/publish.js +1 -0
- package/dist/app/run/caller-redaction.js +1 -0
- package/dist/app/run/engine-evidence-persistence.js +1 -1
- package/dist/app/run/engine-execution-failures.js +1 -1
- package/dist/app/run/engine-execution-reporting.js +1 -1
- package/dist/app/run/engine-execution.js +1 -1
- package/dist/app/run/engine-orchestration.js +1 -1
- package/dist/app/run/environment.js +1 -0
- package/dist/app/run/failure-details.js +1 -1
- package/dist/app/run/live-run.js +1 -1
- package/dist/app/run/orchestrator.js +1 -1
- package/dist/app/run/planning.js +1 -1
- package/dist/app/run/request.js +1 -1
- package/dist/app/run/results.js +1 -1
- package/dist/app/run/run-events.js +1 -1
- package/dist/app/run/run-finalization.js +1 -1
- package/dist/app/run/runtime-fixtures.js +1 -1
- package/dist/app/run/scheduler/estimates.js +1 -1
- package/dist/app/run/scheduler/identity.js +1 -1
- package/dist/app/run/scheduler/index.js +1 -1
- package/dist/app/run/scheduler/locks.js +1 -0
- package/dist/app/run/selection.js +1 -1
- package/dist/app/run/setup/runtime-node-setup-protocol.js +1 -1
- package/dist/app/run/setup/runtime-node-setup-worker.js +1 -1
- package/dist/app/run/setup/runtime-node-setup.js +2 -2
- package/dist/app/run/task-batches.js +1 -1
- package/dist/app/run/task-leases.js +1 -0
- package/dist/app/run/worker-loop.js +1 -1
- package/dist/app/status/runs.js +1 -1
- package/dist/app/tracker/index.js +1 -1
- package/dist/app/typecheck/index.js +4 -4
- package/dist/cli/command-catalog.js +1 -1
- package/dist/cli/command-flags.js +1 -1
- package/dist/cli/command-registry.js +1 -1
- package/dist/cli/commands/artifacts.js +2 -2
- package/dist/cli/commands/bug/file.js +2 -2
- package/dist/cli/commands/bug/record.js +2 -2
- package/dist/cli/commands/discover.js +1 -1
- package/dist/cli/commands/report/prepare.js +5 -0
- package/dist/cli/commands/report/publish.js +2 -0
- package/dist/cli/commands/run.js +2 -2
- package/dist/cli/commands/typecheck.js +1 -1
- package/dist/cli/commands/workspace.js +1 -1
- package/dist/cli/framework/errors.js +1 -1
- package/dist/cli/framework/execute.js +7 -6
- package/dist/cli/framework/parser.js +1 -1
- package/dist/cli/json-errors.js +1 -1
- package/dist/cli/operations/run/operation.js +2 -2
- package/dist/cli/renderers/bug/text.js +1 -1
- package/dist/cli/renderers/discover/report.js +1 -1
- package/dist/cli/renderers/doctor/text.js +1 -1
- package/dist/cli/renderers/run/events.js +2 -2
- package/dist/cli/renderers/run/formatting.js +1 -1
- package/dist/cli/renderers/run/status.js +1 -1
- package/dist/cli/renderers/run/text-reporter.js +24 -22
- package/dist/cli/terminal/colors.js +1 -1
- package/dist/cli/terminal/layout.js +2 -2
- package/dist/config/authoring/http-methods.js +1 -1
- package/dist/config/authoring/index.js +1 -1
- package/dist/config/authoring/preset-env.js +1 -1
- package/dist/config/loader/config-loader.js +1 -1
- package/dist/config/loader/database.js +1 -1
- package/dist/config/loader/decode-execution.js +1 -1
- package/dist/config/loader/dependencies.js +1 -1
- package/dist/config/loader/discover-tests.js +1 -1
- package/dist/config/loader/discovery-summary.js +1 -1
- package/dist/config/loader/discovery.js +2 -2
- package/dist/config/loader/env.js +1 -1
- package/dist/config/loader/execution-model.js +1 -1
- package/dist/config/loader/file-metadata.js +1 -1
- package/dist/config/loader/groups.js +1 -0
- package/dist/config/loader/index.js +1 -1
- package/dist/config/loader/load.js +1 -1
- package/dist/config/loader/managed-configs.js +1 -1
- package/dist/config/loader/owned-discovery.js +1 -0
- package/dist/config/loader/path-policy.js +1 -1
- package/dist/config/loader/runtime-isolation.js +1 -1
- package/dist/config/loader/runtime.js +1 -1
- package/dist/config/loader/skip-config.js +1 -1
- package/dist/config/loader/task-policy.js +1 -0
- package/dist/config/loader/test-selection.js +1 -1
- package/dist/config/loader/validation.js +1 -1
- package/dist/database/activity-gate.js +1 -1
- package/dist/database/admin.js +2 -2
- package/dist/database/bindings.js +1 -0
- package/dist/database/cleanup.js +1 -1
- package/dist/database/docker-metadata.js +3 -3
- package/dist/database/docker.js +3 -3
- package/dist/database/index.js +1 -1
- package/dist/database/lifecycle-cleanup.js +1 -1
- package/dist/database/local-postgres.js +1 -1
- package/dist/database/naming.js +1 -1
- package/dist/database/postgres/connection-check.js +1 -0
- package/dist/database/postgres/protocol.js +2 -0
- package/dist/database/schema-operations.js +1 -1
- package/dist/database/schema-source.js +3 -3
- package/dist/database/source-schema-env.js +1 -0
- package/dist/database/source-url.js +2 -2
- package/dist/database/state-files.js +1 -1
- package/dist/database/state.js +1 -1
- package/dist/database/steps.js +3 -3
- package/dist/domain/file-timeout.js +1 -1
- package/dist/domain/identifiers.js +1 -1
- package/dist/domain/operation-display.js +1 -1
- package/dist/domain/retired-test-types.js +1 -0
- package/dist/domain/runtime-isolation-contract.js +1 -1
- package/dist/domain/suite-selection.js +1 -1
- package/dist/domain/test-outcomes.js +1 -1
- package/dist/domain/test-types.js +1 -1
- package/dist/engines/adapters/evidence-files.js +1 -1
- package/dist/engines/adapters/evidence-identity.js +1 -1
- package/dist/engines/adapters/execution.js +1 -1
- package/dist/engines/adapters/json-bounds.js +2 -0
- package/dist/engines/adapters/native-report.js +1 -1
- package/dist/engines/api/execution-scope.js +1 -1
- package/dist/engines/api/execution.js +1 -1
- package/dist/engines/api/index.js +1 -1
- package/dist/engines/api/runtime-artifact.js +1 -1
- package/dist/engines/bundle-cache.js +1 -1
- package/dist/engines/catalog.js +1 -1
- package/dist/engines/contracts/environment-values.js +1 -0
- package/dist/engines/contracts/fixture-manifest.js +1 -1
- package/dist/engines/definitions.js +1 -1
- package/dist/engines/environment/handles.js +1 -0
- package/dist/engines/environment/index.js +1 -0
- package/dist/engines/factory.js +1 -1
- package/dist/engines/installations/node-vitest.js +1 -1
- package/dist/engines/installations/package-resolution.js +1 -1
- package/dist/engines/installations/playwright-resolution-child.js +1 -1
- package/dist/engines/installations/playwright.js +1 -1
- package/dist/engines/managed-module-resolution-policy-input.js +1 -1
- package/dist/engines/managed-module-resolution-policy.js +1 -1
- package/dist/engines/managed-module-resolution.js +2 -2
- package/dist/engines/manager.js +1 -1
- package/dist/engines/node-vitest/adapter/adapter.js +1 -1
- package/dist/engines/node-vitest/adapter/driver.js +2 -0
- package/dist/engines/node-vitest/adapter/evidence.js +2 -2
- package/dist/engines/node-vitest/adapter/failure-details.js +4 -2
- package/dist/engines/node-vitest/adapter/reporter.js +1 -1
- package/dist/engines/node-vitest/adapter/workspace.js +31 -192
- package/dist/engines/node-vitest/inventory/index.js +2 -0
- package/dist/engines/node-vitest/inventory/list-files.js +3 -0
- package/dist/engines/node-vitest/runtime/contract/index.js +1 -1
- package/dist/engines/node-vitest/runtime/data/http.js +1 -1
- package/dist/engines/node-vitest/runtime/data/index.js +1 -1
- package/dist/engines/node-vitest/runtime/data/report.js +5 -6
- package/dist/engines/node-vitest/runtime/data/scenario.js +2 -2
- package/dist/engines/node-vitest/runtime/runtime-input.js +1 -1
- package/dist/engines/node-vitest/selection.js +1 -0
- package/dist/engines/playwright/adapter/adapter.js +1 -1
- package/dist/engines/playwright/adapter/config.js +4 -4
- package/dist/engines/playwright/adapter/evidence-validation.js +1 -1
- package/dist/engines/playwright/adapter/evidence.js +1 -1
- package/dist/engines/playwright/adapter/reporter.js +1 -1
- package/dist/engines/playwright/runtime/config-file.js +1 -1
- package/dist/engines/playwright/runtime/config.js +1 -1
- package/dist/engines/playwright/runtime/runtime-input.js +43 -20
- package/dist/engines/runtime-input-file.js +1 -1
- package/dist/environment/lifecycle-artifacts.js +1 -1
- package/dist/environment/lifecycle-controller.js +1 -1
- package/dist/environment/lifecycle.js +1 -1
- package/dist/environment/ports.js +1 -0
- package/dist/environment/ready-environment.js +1 -1
- package/dist/environment/run-environment.js +1 -1
- package/dist/environment/run-stopping.js +1 -1
- package/dist/environment/runtime-contexts.js +1 -1
- package/dist/environment/runtime-manager.js +1 -1
- package/dist/environment/runtime-planning.js +1 -1
- package/dist/environment/runtime-preparation.js +1 -1
- package/dist/environment/services.js +3 -1
- package/dist/environment/state.js +1 -1
- package/dist/environment/template.js +1 -1
- package/dist/evidence/artifact-config.js +1 -1
- package/dist/evidence/artifact-validation.js +1 -1
- package/dist/evidence/artifacts.js +2 -2
- package/dist/evidence/bundles.js +1 -1
- package/dist/evidence/environment-record.js +1 -0
- package/dist/evidence/index.js +1 -1
- package/dist/evidence/logs.js +2 -2
- package/dist/evidence/operation-timings.js +1 -1
- package/dist/evidence/read-fields.js +1 -1
- package/dist/evidence/read-run.js +1 -1
- package/dist/evidence/reading.js +1 -1
- package/dist/evidence/redaction.js +4 -0
- package/dist/evidence/reporting.js +1 -1
- package/dist/evidence/run-model.js +1 -0
- package/dist/evidence/storage.js +2 -2
- package/dist/evidence/timing.js +1 -1
- package/dist/kernel/error-serialization.js +1 -1
- package/dist/kernel/redaction-targets.js +1 -0
- package/dist/kernel/redaction.js +4 -1
- package/dist/kernel/unknown-values.js +1 -1
- package/dist/process/environment.js +1 -1
- package/dist/process/execa-bundle.json +3 -3
- package/dist/process/files/json-file.js +1 -1
- package/dist/process/files/paths.js +1 -1
- package/dist/process/host/metadata.js +1 -1
- package/dist/process/host/platform.js +1 -1
- package/dist/process/host-process.js +1 -1
- package/dist/process/index.js +1 -1
- package/dist/process/lifecycle-fence.js +1 -1
- package/dist/process/locks.js +4 -4
- package/dist/process/port-listener.js +2 -0
- package/dist/process/process-group.js +1 -1
- package/dist/process/process-identity.js +1 -1
- package/dist/process/process.js +33 -33
- package/dist/process/readiness.js +1 -1
- package/dist/process/ready-deadline.js +1 -0
- package/dist/process/recovery.js +1 -1
- package/dist/process/runs/manifest.js +1 -1
- package/dist/process/runs/ownership.js +1 -1
- package/dist/process/runs/product-state.js +1 -1
- package/dist/process/runs/stop.js +1 -1
- package/dist/process/service-processes.js +1 -1
- package/dist/process/stoppable-settlement.js +1 -0
- package/dist/process/url-redaction.js +1 -0
- package/dist/process/windows-cli-owner.js +3 -3
- package/dist/process/windows-native.js +1 -1
- package/dist/repo/ci-environment.js +1 -1
- package/dist/repo/fingerprint-policy.js +1 -1
- package/dist/repo/managed-git.js +1 -1
- package/dist/repo/physical-tree.js +1 -1
- package/dist/repo/publish-directory.js +3 -0
- package/dist/repo/state.js +4 -4
- package/dist/steps/build-config.js +1 -1
- package/dist/steps/configured-step-testkit-modules.js +1 -1
- package/dist/steps/configured-steps.js +1 -1
- package/dist/steps/environment.js +1 -1
- package/dist/steps/index.js +1 -1
- package/dist/steps/run.js +2 -2
- package/dist/toolchains/archive.js +1 -1
- package/dist/toolchains/index.js +3 -3
- package/dist/toolchains/node-provisioning.js +2 -2
- package/dist/toolchains/semver.js +1 -1
- package/dist/toolchains/vitest/index.js +1 -1
- package/dist/tracker/redaction.js +1 -2
- package/dist/{config/runtime/build-assets.d.ts → types/config-build-assets.d.ts} +5 -3
- package/dist/{database/steps.d.ts → types/config-database-steps.d.ts} +7 -7
- package/dist/{config/runtime/next-runtime-tsconfig.d.ts → types/config-next-runtime-tsconfig.d.ts} +5 -3
- package/dist/types/config.d.ts +501 -0
- package/dist/types/drizzle.d.ts +13 -0
- package/dist/{config/runtime/env/index.d.ts → types/env.d.ts} +22 -20
- package/dist/types/environment.d.ts +40 -0
- package/dist/types/index.d.ts +21 -0
- package/dist/types/node-vitest-contract.d.ts +75 -0
- package/dist/types/node-vitest-data.d.ts +407 -0
- package/dist/types/playwright.d.ts +130 -0
- package/dist/types/tooling-vitest.d.ts +13 -0
- package/dist/types/workspace.d.ts +617 -0
- package/docs/bug-records.md +83 -81
- package/docs/engines.md +213 -0
- package/docs/test-types.md +35 -33
- package/package.json +22 -29
- package/testkit-config-schema.md +403 -171
- package/dist/app/bugs/areas.d.ts +0 -38
- package/dist/app/bugs/assessment.d.ts +0 -9
- package/dist/app/bugs/categories.d.ts +0 -41
- package/dist/app/bugs/ci-report.d.ts +0 -21
- package/dist/app/bugs/ci-summary.d.ts +0 -13
- package/dist/app/bugs/draft.d.ts +0 -70
- package/dist/app/bugs/facts.d.ts +0 -48
- package/dist/app/bugs/file.d.ts +0 -45
- package/dist/app/bugs/gate.d.ts +0 -22
- package/dist/app/bugs/guide.d.ts +0 -20
- package/dist/app/bugs/issue.d.ts +0 -18
- package/dist/app/bugs/known-failures.d.ts +0 -49
- package/dist/app/bugs/record.d.ts +0 -14
- package/dist/app/bugs/run-reading.d.ts +0 -51
- package/dist/app/bugs/store.d.ts +0 -34
- package/dist/app/campaigns/brief.d.ts +0 -7
- package/dist/app/campaigns/campaign.d.ts +0 -14
- package/dist/app/campaigns/index.d.ts +0 -38
- package/dist/app/campaigns/store.d.ts +0 -5
- package/dist/app/campaigns/summary.d.ts +0 -13
- package/dist/app/cleanup/index.d.ts +0 -52
- package/dist/app/db-schema/prepare.d.ts +0 -11
- package/dist/app/db-schema/refresh.d.ts +0 -17
- package/dist/app/db-schema/verify.d.ts +0 -11
- package/dist/app/destroy/index.d.ts +0 -16
- package/dist/app/discover/index.d.ts +0 -8
- package/dist/app/doctor/index.d.ts +0 -17
- package/dist/app/file-selection.d.ts +0 -1
- package/dist/app/inspect/artifacts.d.ts +0 -30
- package/dist/app/inspect/index.d.ts +0 -112
- package/dist/app/lint/index.d.ts +0 -28
- package/dist/app/lint/native.d.ts +0 -10
- package/dist/app/lint/options.d.ts +0 -67
- package/dist/app/lint/policy.d.ts +0 -21
- package/dist/app/lint/rules/data.d.ts +0 -3
- package/dist/app/lint/rules/engine-imports.d.ts +0 -3
- package/dist/app/lint/rules/syntax.d.ts +0 -4
- package/dist/app/lint/rules/unit.d.ts +0 -3
- package/dist/app/lint/shared.d.ts +0 -36
- package/dist/app/package-inspection.d.ts +0 -20
- package/dist/app/run/endpoint-readiness.d.ts +0 -43
- package/dist/app/run/endpoint-readiness.js +0 -1
- package/dist/app/run/engine-evidence-persistence.d.ts +0 -39
- package/dist/app/run/engine-execution-cleanup.d.ts +0 -8
- package/dist/app/run/engine-execution-cleanup.js +0 -1
- package/dist/app/run/engine-execution-failures.d.ts +0 -41
- package/dist/app/run/engine-execution-observer.d.ts +0 -21
- package/dist/app/run/engine-execution-reporting.d.ts +0 -17
- package/dist/app/run/engine-execution.d.ts +0 -63
- package/dist/app/run/engine-failure-stack.d.ts +0 -1
- package/dist/app/run/engine-orchestration.d.ts +0 -49
- package/dist/app/run/failure-details.d.ts +0 -37
- package/dist/app/run/live-run.d.ts +0 -27
- package/dist/app/run/operation-progress.d.ts +0 -13
- package/dist/app/run/orchestrator.d.ts +0 -68
- package/dist/app/run/planning-types.d.ts +0 -68
- package/dist/app/run/planning.d.ts +0 -15
- package/dist/app/run/playwright-configuration.d.ts +0 -2
- package/dist/app/run/playwright-configuration.js +0 -1
- package/dist/app/run/request.d.ts +0 -30
- package/dist/app/run/results.d.ts +0 -161
- package/dist/app/run/run-events.d.ts +0 -144
- package/dist/app/run/run-finalization.d.ts +0 -52
- package/dist/app/run/run-guards.d.ts +0 -3
- package/dist/app/run/runtime-failures.d.ts +0 -18
- package/dist/app/run/runtime-fixtures.d.ts +0 -2
- package/dist/app/run/runtime-task-types.d.ts +0 -20
- package/dist/app/run/scheduler/estimates.d.ts +0 -32
- package/dist/app/run/scheduler/identity.d.ts +0 -9
- package/dist/app/run/scheduler/index.d.ts +0 -124
- package/dist/app/run/scheduler/observations.d.ts +0 -20
- package/dist/app/run/selection.d.ts +0 -10
- package/dist/app/run/setup/runtime-node-setup-errors.d.ts +0 -13
- package/dist/app/run/setup/runtime-node-setup-protocol.d.ts +0 -85
- package/dist/app/run/setup/runtime-node-setup-worker.d.ts +0 -1
- package/dist/app/run/setup/runtime-node-setup.d.ts +0 -48
- package/dist/app/run/task-batches.d.ts +0 -23
- package/dist/app/run/worker-loop.d.ts +0 -57
- package/dist/app/setup/playwright.d.ts +0 -22
- package/dist/app/status/index.d.ts +0 -9
- package/dist/app/status/model.d.ts +0 -29
- package/dist/app/status/runs.d.ts +0 -99
- package/dist/app/stop/index.d.ts +0 -14
- package/dist/app/tracker/index.d.ts +0 -8
- package/dist/app/tracker/remote.d.ts +0 -13
- package/dist/app/tracker/token.d.ts +0 -7
- package/dist/app/typecheck/index.d.ts +0 -63
- package/dist/cli/command-catalog.d.ts +0 -137
- package/dist/cli/command-flags.d.ts +0 -19
- package/dist/cli/command-registry.d.ts +0 -3
- package/dist/cli/commands/artifacts.d.ts +0 -48
- package/dist/cli/commands/bug/file.d.ts +0 -16
- package/dist/cli/commands/bug/guide.d.ts +0 -5
- package/dist/cli/commands/bug/record.d.ts +0 -9
- package/dist/cli/commands/campaign/finish.d.ts +0 -10
- package/dist/cli/commands/campaign/start.d.ts +0 -7
- package/dist/cli/commands/campaign/status.d.ts +0 -13
- package/dist/cli/commands/ci/report.d.ts +0 -15
- package/dist/cli/commands/cleanup.d.ts +0 -13
- package/dist/cli/commands/db/schema/refresh.d.ts +0 -2
- package/dist/cli/commands/db/schema/verify.d.ts +0 -2
- package/dist/cli/commands/destroy.d.ts +0 -9
- package/dist/cli/commands/discover.d.ts +0 -2
- package/dist/cli/commands/doctor.d.ts +0 -2
- package/dist/cli/commands/guard/unsafe-entrypoint.d.ts +0 -2
- package/dist/cli/commands/lint.d.ts +0 -2
- package/dist/cli/commands/run/status.d.ts +0 -5
- package/dist/cli/commands/run/stop.d.ts +0 -7
- package/dist/cli/commands/run.d.ts +0 -9
- package/dist/cli/commands/setup/playwright.d.ts +0 -2
- package/dist/cli/commands/status.d.ts +0 -5
- package/dist/cli/commands/stop.d.ts +0 -12
- package/dist/cli/commands/typecheck.d.ts +0 -2
- package/dist/cli/commands/workspace.d.ts +0 -2
- package/dist/cli/entrypoint.d.ts +0 -1
- package/dist/cli/framework/command.d.ts +0 -21
- package/dist/cli/framework/definitions.d.ts +0 -100
- package/dist/cli/framework/errors.d.ts +0 -6
- package/dist/cli/framework/execute.d.ts +0 -14
- package/dist/cli/framework/help.d.ts +0 -11
- package/dist/cli/framework/index.d.ts +0 -3
- package/dist/cli/framework/parser.d.ts +0 -6
- package/dist/cli/index.d.ts +0 -4
- package/dist/cli/json-errors.d.ts +0 -3
- package/dist/cli/operations/db/schema/refresh/operation.d.ts +0 -7
- package/dist/cli/operations/db/schema/verify/operation.d.ts +0 -7
- package/dist/cli/operations/run/operation.d.ts +0 -24
- package/dist/cli/process-signal.d.ts +0 -1
- package/dist/cli/renderers/bug/text.d.ts +0 -8
- package/dist/cli/renderers/campaign/text.d.ts +0 -2
- package/dist/cli/renderers/ci/text.d.ts +0 -2
- package/dist/cli/renderers/cleanup/format.d.ts +0 -14
- package/dist/cli/renderers/db-schema/text.d.ts +0 -4
- package/dist/cli/renderers/destroy/text.d.ts +0 -4
- package/dist/cli/renderers/discover/report.d.ts +0 -7
- package/dist/cli/renderers/discover/text.d.ts +0 -3
- package/dist/cli/renderers/doctor/text.d.ts +0 -2
- package/dist/cli/renderers/lint/text.d.ts +0 -2
- package/dist/cli/renderers/run/events.d.ts +0 -8
- package/dist/cli/renderers/run/failure.d.ts +0 -8
- package/dist/cli/renderers/run/formatting.d.ts +0 -79
- package/dist/cli/renderers/run/status.d.ts +0 -6
- package/dist/cli/renderers/run/text-reporter.d.ts +0 -19
- package/dist/cli/renderers/status/text.d.ts +0 -2
- package/dist/cli/renderers/stop/text.d.ts +0 -7
- package/dist/cli/renderers/typecheck/text.d.ts +0 -2
- package/dist/cli/terminal/colors.d.ts +0 -10
- package/dist/cli/terminal/layout.d.ts +0 -11
- package/dist/cli/version-drift.d.ts +0 -25
- package/dist/config/authoring/build-config-contract.d.ts +0 -27
- package/dist/config/authoring/configured-step-contract.d.ts +0 -18
- package/dist/config/authoring/http-execution-contract.d.ts +0 -70
- package/dist/config/authoring/http-methods.d.ts +0 -18
- package/dist/config/authoring/index.d.ts +0 -381
- package/dist/config/authoring/preset-env.d.ts +0 -19
- package/dist/config/authoring/runtime.d.ts +0 -64
- package/dist/config/loader/bugs.d.ts +0 -15
- package/dist/config/loader/config-loader.d.ts +0 -9
- package/dist/config/loader/database-materialization.d.ts +0 -19
- package/dist/config/loader/database-roles.d.ts +0 -2
- package/dist/config/loader/database.d.ts +0 -55
- package/dist/config/loader/decode-discovery.d.ts +0 -5
- package/dist/config/loader/decode-execution.d.ts +0 -9
- package/dist/config/loader/dependencies.d.ts +0 -7
- package/dist/config/loader/discover-tests.d.ts +0 -111
- package/dist/config/loader/discovery-summary.d.ts +0 -29
- package/dist/config/loader/discovery.d.ts +0 -54
- package/dist/config/loader/env.d.ts +0 -4
- package/dist/config/loader/execution-model.d.ts +0 -16
- package/dist/config/loader/file-metadata.d.ts +0 -19
- package/dist/config/loader/index.d.ts +0 -10
- package/dist/config/loader/load.d.ts +0 -91
- package/dist/config/loader/managed-configs.d.ts +0 -23
- package/dist/config/loader/path-policy.d.ts +0 -9
- package/dist/config/loader/paths.d.ts +0 -5
- package/dist/config/loader/runtime-isolation.d.ts +0 -44
- package/dist/config/loader/runtime.d.ts +0 -25
- package/dist/config/loader/skip-config.d.ts +0 -44
- package/dist/config/loader/test-selection.d.ts +0 -15
- package/dist/config/loader/validation.d.ts +0 -16
- package/dist/config/loader/values.d.ts +0 -4
- package/dist/config/loader/values.js +0 -1
- package/dist/database/activity-gate.d.ts +0 -22
- package/dist/database/admin.d.ts +0 -31
- package/dist/database/cleanup.d.ts +0 -36
- package/dist/database/configured-steps.d.ts +0 -27
- package/dist/database/constants.d.ts +0 -11
- package/dist/database/docker-metadata.d.ts +0 -3
- package/dist/database/docker.d.ts +0 -65
- package/dist/database/drizzle/index.d.ts +0 -13
- package/dist/database/fingerprint.d.ts +0 -12
- package/dist/database/index.d.ts +0 -39
- package/dist/database/lifecycle-cleanup.d.ts +0 -7
- package/dist/database/local-postgres.d.ts +0 -71
- package/dist/database/naming.d.ts +0 -17
- package/dist/database/postgres/index.d.ts +0 -71
- package/dist/database/progress.d.ts +0 -6
- package/dist/database/roles.d.ts +0 -19
- package/dist/database/runtime-config.d.ts +0 -16
- package/dist/database/runtime-reservations.d.ts +0 -19
- package/dist/database/schema-operations.d.ts +0 -18
- package/dist/database/schema-source.d.ts +0 -96
- package/dist/database/source-refresh-lock.d.ts +0 -8
- package/dist/database/source-url.d.ts +0 -22
- package/dist/database/state-files.d.ts +0 -13
- package/dist/database/state.d.ts +0 -26
- package/dist/database/template-steps.d.ts +0 -39
- package/dist/domain/file-timeout.d.ts +0 -28
- package/dist/domain/identifiers.d.ts +0 -9
- package/dist/domain/operation-display.d.ts +0 -10
- package/dist/domain/operation-reason.d.ts +0 -5
- package/dist/domain/postgres-route.d.ts +0 -4
- package/dist/domain/runtime-identity.d.ts +0 -1
- package/dist/domain/runtime-isolation-contract.d.ts +0 -5
- package/dist/domain/service-name.d.ts +0 -2
- package/dist/domain/suite-selection.d.ts +0 -20
- package/dist/domain/test-outcomes.d.ts +0 -3
- package/dist/domain/test-types.d.ts +0 -16
- package/dist/engines/adapters/evidence-files.d.ts +0 -32
- package/dist/engines/adapters/evidence-identity.d.ts +0 -12
- package/dist/engines/adapters/execution.d.ts +0 -42
- package/dist/engines/adapters/native-report.d.ts +0 -25
- package/dist/engines/adapters/node-startup-cache.d.ts +0 -8
- package/dist/engines/adapters/workspace.d.ts +0 -4
- package/dist/engines/api/capabilities.d.ts +0 -31
- package/dist/engines/api/capabilities.js +0 -1
- package/dist/engines/api/evidence.d.ts +0 -38
- package/dist/engines/api/execution-observer.d.ts +0 -8
- package/dist/engines/api/execution-scope.d.ts +0 -17
- package/dist/engines/api/execution.d.ts +0 -101
- package/dist/engines/api/index.d.ts +0 -5
- package/dist/engines/api/k6-runtime-input.d.ts +0 -26
- package/dist/engines/api/k6-runtime-input.js +0 -1
- package/dist/engines/api/runtime-artifact.d.ts +0 -19
- package/dist/engines/bundle-cache.d.ts +0 -32
- package/dist/engines/catalog.d.ts +0 -27
- package/dist/engines/contracts/fixture-manifest.d.ts +0 -34
- package/dist/engines/contracts/json-bounds.d.ts +0 -36
- package/dist/engines/contracts/json-bounds.js +0 -2
- package/dist/engines/contracts/k6-repository-configuration.d.ts +0 -12
- package/dist/engines/contracts/k6-repository-configuration.js +0 -1
- package/dist/engines/contracts/test-context.d.ts +0 -15
- package/dist/engines/contracts/test-context.js +0 -1
- package/dist/engines/definitions.d.ts +0 -22
- package/dist/engines/factory.d.ts +0 -6
- package/dist/engines/generated-performance.d.ts +0 -1
- package/dist/engines/installation-catalog.d.ts +0 -27
- package/dist/engines/installation-catalog.js +0 -1
- package/dist/engines/installations/k6.d.ts +0 -98
- package/dist/engines/installations/k6.js +0 -1
- package/dist/engines/installations/node-vitest.d.ts +0 -33
- package/dist/engines/installations/package-requirements.d.ts +0 -28
- package/dist/engines/installations/package-resolution.d.ts +0 -51
- package/dist/engines/installations/playwright-resolution-child.d.ts +0 -1
- package/dist/engines/installations/playwright.d.ts +0 -75
- package/dist/engines/installations/types.d.ts +0 -10
- package/dist/engines/k6/adapter/bundle.d.ts +0 -25
- package/dist/engines/k6/adapter/bundle.js +0 -112
- package/dist/engines/k6/adapter/evidence.d.ts +0 -15
- package/dist/engines/k6/adapter/evidence.js +0 -4
- package/dist/engines/k6/adapter/executor.d.ts +0 -13
- package/dist/engines/k6/adapter/executor.js +0 -1
- package/dist/engines/k6/adapter/index.d.ts +0 -1
- package/dist/engines/k6/adapter/index.js +0 -1
- package/dist/engines/k6/adapter/input.d.ts +0 -21
- package/dist/engines/k6/adapter/input.js +0 -1
- package/dist/engines/k6/adapter/native-summary.d.ts +0 -11
- package/dist/engines/k6/adapter/native-summary.js +0 -1
- package/dist/engines/k6/adapter/repository-configuration.d.ts +0 -2
- package/dist/engines/k6/adapter/repository-configuration.js +0 -1
- package/dist/engines/k6/authoring-type-paths.d.ts +0 -3
- package/dist/engines/k6/authoring-type-paths.js +0 -1
- package/dist/engines/k6/runtime/ambient-types/bundle-manifest.json +0 -146
- package/dist/engines/k6/runtime/ambient-types/k6/LICENSE +0 -21
- package/dist/engines/k6/runtime/ambient-types/k6/browser/index.d.ts +0 -6332
- package/dist/engines/k6/runtime/ambient-types/k6/crypto/index.d.ts +0 -218
- package/dist/engines/k6/runtime/ambient-types/k6/data/index.d.ts +0 -16
- package/dist/engines/k6/runtime/ambient-types/k6/encoding/index.d.ts +0 -46
- package/dist/engines/k6/runtime/ambient-types/k6/execution/index.d.ts +0 -127
- package/dist/engines/k6/runtime/ambient-types/k6/experimental/csv/index.d.ts +0 -96
- package/dist/engines/k6/runtime/ambient-types/k6/experimental/fs/index.d.ts +0 -104
- package/dist/engines/k6/runtime/ambient-types/k6/experimental/redis/index.d.ts +0 -821
- package/dist/engines/k6/runtime/ambient-types/k6/experimental/streams/index.d.ts +0 -198
- package/dist/engines/k6/runtime/ambient-types/k6/global.d.ts +0 -83
- package/dist/engines/k6/runtime/ambient-types/k6/html/index.d.ts +0 -1325
- package/dist/engines/k6/runtime/ambient-types/k6/http/index.d.ts +0 -806
- package/dist/engines/k6/runtime/ambient-types/k6/index.d.ts +0 -126
- package/dist/engines/k6/runtime/ambient-types/k6/metrics/index.d.ts +0 -66
- package/dist/engines/k6/runtime/ambient-types/k6/net/grpc/index.d.ts +0 -247
- package/dist/engines/k6/runtime/ambient-types/k6/options/index.d.ts +0 -459
- package/dist/engines/k6/runtime/ambient-types/k6/package.json +0 -79
- package/dist/engines/k6/runtime/ambient-types/k6/secrets/index.d.ts +0 -36
- package/dist/engines/k6/runtime/ambient-types/k6/timers/index.d.ts +0 -47
- package/dist/engines/k6/runtime/ambient-types/k6/websockets/index.d.ts +0 -324
- package/dist/engines/k6/runtime/ambient-types/k6/ws/index.d.ts +0 -283
- package/dist/engines/k6/runtime/ambient-types/xk6-sql/LICENSE +0 -201
- package/dist/engines/k6/runtime/ambient-types/xk6-sql/index.d.ts +0 -397
- package/dist/engines/k6/runtime/ambient-types/xk6-sql/package.json +0 -15
- package/dist/engines/k6/runtime/artifacts.d.ts +0 -2
- package/dist/engines/k6/runtime/artifacts.js +0 -1
- package/dist/engines/k6/runtime/checks.d.ts +0 -17
- package/dist/engines/k6/runtime/checks.js +0 -1
- package/dist/engines/k6/runtime/dal-fixtures.d.ts +0 -24
- package/dist/engines/k6/runtime/dal-fixtures.js +0 -1
- package/dist/engines/k6/runtime/dal-suite.d.ts +0 -24
- package/dist/engines/k6/runtime/dal-suite.js +0 -1
- package/dist/engines/k6/runtime/dal.d.ts +0 -10
- package/dist/engines/k6/runtime/dal.js +0 -1
- package/dist/engines/k6/runtime/fixtures.d.ts +0 -3
- package/dist/engines/k6/runtime/fixtures.js +0 -1
- package/dist/engines/k6/runtime/http-assertions.d.ts +0 -19
- package/dist/engines/k6/runtime/http-assertions.js +0 -1
- package/dist/engines/k6/runtime/http-checks.d.ts +0 -19
- package/dist/engines/k6/runtime/http-checks.js +0 -1
- package/dist/engines/k6/runtime/http-suite-runtime.d.ts +0 -103
- package/dist/engines/k6/runtime/http-suite-runtime.js +0 -1
- package/dist/engines/k6/runtime/http.d.ts +0 -15
- package/dist/engines/k6/runtime/http.js +0 -1
- package/dist/engines/k6/runtime/index.d.ts +0 -11
- package/dist/engines/k6/runtime/index.js +0 -1
- package/dist/engines/k6/runtime/input.d.ts +0 -3
- package/dist/engines/k6/runtime/input.js +0 -1
- package/dist/engines/k6/runtime/k6-repository-configuration.d.ts +0 -9
- package/dist/engines/k6/runtime/k6-repository-configuration.js +0 -1
- package/dist/engines/k6/runtime/node-setup.d.ts +0 -13
- package/dist/engines/k6/runtime/node-setup.js +0 -1
- package/dist/engines/k6/runtime/runtime-globals.d.ts +0 -10
- package/dist/engines/k6/runtime/runtime.d.ts +0 -54
- package/dist/engines/k6/runtime/runtime.js +0 -1
- package/dist/engines/k6/runtime/shared/assertion-details.d.ts +0 -19
- package/dist/engines/k6/runtime/shared/assertion-details.js +0 -2
- package/dist/engines/k6/runtime/shared/db-normalization.d.ts +0 -19
- package/dist/engines/k6/runtime/shared/db-normalization.js +0 -1
- package/dist/engines/k6/runtime/shared/error-body.d.ts +0 -3
- package/dist/engines/k6/runtime/shared/error-body.js +0 -1
- package/dist/engines/k6/runtime/shared/file-data.d.ts +0 -1
- package/dist/engines/k6/runtime/shared/file-data.js +0 -1
- package/dist/engines/k6/runtime/shared/fixture-engine.d.ts +0 -8
- package/dist/engines/k6/runtime/shared/fixture-engine.js +0 -2
- package/dist/engines/k6/runtime/shared/http-check-plan.d.ts +0 -29
- package/dist/engines/k6/runtime/shared/http-check-plan.js +0 -1
- package/dist/engines/k6/runtime/shared/http-parsing.d.ts +0 -10
- package/dist/engines/k6/runtime/shared/http-parsing.js +0 -3
- package/dist/engines/k6/runtime/shared/ordering.d.ts +0 -2
- package/dist/engines/k6/runtime/shared/ordering.js +0 -1
- package/dist/engines/k6/runtime/shared/properties.d.ts +0 -1
- package/dist/engines/k6/runtime/shared/properties.js +0 -1
- package/dist/engines/k6/runtime/suite.d.ts +0 -4
- package/dist/engines/k6/runtime/suite.js +0 -1
- package/dist/engines/k6/runtime/types.d.ts +0 -244
- package/dist/engines/k6/runtime/types.js +0 -1
- package/dist/engines/k6/runtime/xk6-sql-driver-postgres.d.ts +0 -7
- package/dist/engines/k6/runtime/xk6-sql-driver-postgres.js +0 -1
- package/dist/engines/managed-module-resolution-policy-input.d.ts +0 -9
- package/dist/engines/managed-module-resolution-policy.d.ts +0 -25
- package/dist/engines/managed-module-resolution.d.ts +0 -13
- package/dist/engines/manager.d.ts +0 -25
- package/dist/engines/node-vitest/adapter/adapter.d.ts +0 -16
- package/dist/engines/node-vitest/adapter/consumer-typescript-paths.d.ts +0 -17
- package/dist/engines/node-vitest/adapter/consumer-typescript-paths.js +0 -3
- package/dist/engines/node-vitest/adapter/evidence.d.ts +0 -33
- package/dist/engines/node-vitest/adapter/failure-details.d.ts +0 -3
- package/dist/engines/node-vitest/adapter/index.d.ts +0 -1
- package/dist/engines/node-vitest/adapter/reporter.d.ts +0 -7
- package/dist/engines/node-vitest/adapter/resolution.d.ts +0 -12
- package/dist/engines/node-vitest/adapter/resolution.js +0 -1
- package/dist/engines/node-vitest/adapter/workspace.d.ts +0 -19
- package/dist/engines/node-vitest/runtime/contract/index.d.ts +0 -64
- package/dist/engines/node-vitest/runtime/data/http.d.ts +0 -4
- package/dist/engines/node-vitest/runtime/data/index.d.ts +0 -8
- package/dist/engines/node-vitest/runtime/data/primitives.d.ts +0 -1
- package/dist/engines/node-vitest/runtime/data/report.d.ts +0 -3
- package/dist/engines/node-vitest/runtime/data/runner.d.ts +0 -4
- package/dist/engines/node-vitest/runtime/data/scenario.d.ts +0 -12
- package/dist/engines/node-vitest/runtime/data/types.d.ts +0 -412
- package/dist/engines/node-vitest/runtime/runtime-input.d.ts +0 -64
- package/dist/engines/playwright/adapter/adapter.d.ts +0 -18
- package/dist/engines/playwright/adapter/attachments.d.ts +0 -26
- package/dist/engines/playwright/adapter/config.d.ts +0 -45
- package/dist/engines/playwright/adapter/evidence-validation.d.ts +0 -12
- package/dist/engines/playwright/adapter/evidence.d.ts +0 -32
- package/dist/engines/playwright/adapter/failure-details.d.ts +0 -2
- package/dist/engines/playwright/adapter/index.d.ts +0 -3
- package/dist/engines/playwright/adapter/reporter.d.ts +0 -12
- package/dist/engines/playwright/runtime/config-file.d.ts +0 -2
- package/dist/engines/playwright/runtime/config.d.ts +0 -24
- package/dist/engines/playwright/runtime/index.d.ts +0 -4
- package/dist/engines/playwright/runtime/runtime-input.d.ts +0 -36
- package/dist/engines/playwright/runtime/sandbox.d.ts +0 -84
- package/dist/engines/runtime-input-file.d.ts +0 -27
- package/dist/environment/lifecycle-artifacts.d.ts +0 -7
- package/dist/environment/lifecycle-controller.d.ts +0 -70
- package/dist/environment/lifecycle.d.ts +0 -29
- package/dist/environment/maintenance.d.ts +0 -68
- package/dist/environment/planning-types.d.ts +0 -35
- package/dist/environment/readiness.d.ts +0 -12
- package/dist/environment/readiness.js +0 -1
- package/dist/environment/ready-environment.d.ts +0 -19
- package/dist/environment/run-environment.d.ts +0 -38
- package/dist/environment/run-stopping.d.ts +0 -13
- package/dist/environment/runtime-contexts.d.ts +0 -33
- package/dist/environment/runtime-manager.d.ts +0 -95
- package/dist/environment/runtime-planning.d.ts +0 -16
- package/dist/environment/runtime-preparation.d.ts +0 -30
- package/dist/environment/runtime-service.d.ts +0 -18
- package/dist/environment/services.d.ts +0 -48
- package/dist/environment/state.d.ts +0 -18
- package/dist/environment/status-runtime.d.ts +0 -53
- package/dist/environment/template.d.ts +0 -180
- package/dist/evidence/artifact-config.d.ts +0 -14
- package/dist/evidence/artifact-validation.d.ts +0 -5
- package/dist/evidence/artifacts.d.ts +0 -75
- package/dist/evidence/bundles.d.ts +0 -27
- package/dist/evidence/ci-provenance.d.ts +0 -9
- package/dist/evidence/contracts.d.ts +0 -154
- package/dist/evidence/file-evidence.d.ts +0 -23
- package/dist/evidence/finalization.d.ts +0 -9
- package/dist/evidence/index.d.ts +0 -8
- package/dist/evidence/logs.d.ts +0 -31
- package/dist/evidence/operation-timings.d.ts +0 -60
- package/dist/evidence/read-bundle.d.ts +0 -4
- package/dist/evidence/read-fields.d.ts +0 -22
- package/dist/evidence/read-provenance.d.ts +0 -2
- package/dist/evidence/read-redaction.d.ts +0 -2
- package/dist/evidence/read-retention.d.ts +0 -2
- package/dist/evidence/read-run.d.ts +0 -2
- package/dist/evidence/reading.d.ts +0 -28
- package/dist/evidence/reporting-types.d.ts +0 -330
- package/dist/evidence/reporting.d.ts +0 -3
- package/dist/evidence/secure-file-copy.d.ts +0 -24
- package/dist/evidence/setup-progress.d.ts +0 -63
- package/dist/evidence/step-output.d.ts +0 -16
- package/dist/evidence/storage-inventory.d.ts +0 -27
- package/dist/evidence/storage.d.ts +0 -27
- package/dist/evidence/timing.d.ts +0 -23
- package/dist/file.d.ts +0 -11
- package/dist/index.d.ts +0 -4
- package/dist/kernel/error-serialization.d.ts +0 -38
- package/dist/kernel/redaction.d.ts +0 -2
- package/dist/kernel/unknown-values.d.ts +0 -6
- package/dist/kernel/work-metrics.d.ts +0 -6
- package/dist/process/capture-output.d.ts +0 -7
- package/dist/process/command-shell.d.ts +0 -1
- package/dist/process/environment-overlay.d.ts +0 -17
- package/dist/process/environment.d.ts +0 -33
- package/dist/process/files/contained-path.d.ts +0 -8
- package/dist/process/files/directory-status.d.ts +0 -14
- package/dist/process/files/dotenv.d.ts +0 -2
- package/dist/process/files/file-snapshot.d.ts +0 -34
- package/dist/process/files/json-file.d.ts +0 -12
- package/dist/process/files/paths.d.ts +0 -1
- package/dist/process/files/product-dir.d.ts +0 -1
- package/dist/process/files/temp-dir.d.ts +0 -11
- package/dist/process/host/metadata.d.ts +0 -6
- package/dist/process/host/platform.d.ts +0 -57
- package/dist/process/host-command.d.ts +0 -4
- package/dist/process/host-inspection-command.d.ts +0 -13
- package/dist/process/host-process.d.ts +0 -19
- package/dist/process/index.d.ts +0 -9
- package/dist/process/lifecycle-fence.d.ts +0 -11
- package/dist/process/locks.d.ts +0 -28
- package/dist/process/process-contracts.d.ts +0 -78
- package/dist/process/process-group.d.ts +0 -12
- package/dist/process/process-identity.d.ts +0 -27
- package/dist/process/process-limits.d.ts +0 -6
- package/dist/process/process.d.ts +0 -12
- package/dist/process/readiness.d.ts +0 -37
- package/dist/process/recovery.d.ts +0 -3
- package/dist/process/runs/inspection.d.ts +0 -5
- package/dist/process/runs/manifest.d.ts +0 -86
- package/dist/process/runs/ownership.d.ts +0 -11
- package/dist/process/runs/product-state.d.ts +0 -2
- package/dist/process/runs/schema.d.ts +0 -3
- package/dist/process/runs/stop.d.ts +0 -19
- package/dist/process/runtime-socket.d.ts +0 -4
- package/dist/process/service-processes.d.ts +0 -13
- package/dist/process/shutdown.d.ts +0 -10
- package/dist/process/windows-cli-owner.d.ts +0 -2
- package/dist/process/windows-native.d.ts +0 -6
- package/dist/process/windows-process-identity.d.ts +0 -4
- package/dist/repo/ci-environment.d.ts +0 -7
- package/dist/repo/fingerprint-policy.d.ts +0 -15
- package/dist/repo/git-path.d.ts +0 -2
- package/dist/repo/history.d.ts +0 -17
- package/dist/repo/managed-git.d.ts +0 -10
- package/dist/repo/metadata.d.ts +0 -3
- package/dist/repo/physical-tree.d.ts +0 -37
- package/dist/repo/remote.d.ts +0 -6
- package/dist/repo/state.d.ts +0 -26
- package/dist/repo/tree-listing.d.ts +0 -10
- package/dist/steps/build-config.d.ts +0 -35
- package/dist/steps/configured-step-testkit-modules.d.ts +0 -19
- package/dist/steps/configured-steps.d.ts +0 -51
- package/dist/steps/environment.d.ts +0 -84
- package/dist/steps/index.d.ts +0 -2
- package/dist/steps/module-runner.d.ts +0 -1
- package/dist/steps/run.d.ts +0 -36
- package/dist/toolchains/archive.d.ts +0 -53
- package/dist/toolchains/esbuild.d.ts +0 -9
- package/dist/toolchains/host-node-support.d.ts +0 -3
- package/dist/toolchains/index.d.ts +0 -114
- package/dist/toolchains/managed-node-releases.d.ts +0 -28
- package/dist/toolchains/node-cache.d.ts +0 -20
- package/dist/toolchains/node-integrity.d.ts +0 -18
- package/dist/toolchains/node-provisioning.d.ts +0 -29
- package/dist/toolchains/semver.d.ts +0 -13
- package/dist/toolchains/shared-operation.d.ts +0 -11
- package/dist/toolchains/timeouts.d.ts +0 -1
- package/dist/toolchains/vitest/index.d.ts +0 -13
- package/dist/tracker/gitea.d.ts +0 -14
- package/dist/tracker/github.d.ts +0 -14
- package/dist/tracker/http.d.ts +0 -33
- package/dist/tracker/index.d.ts +0 -4
- package/dist/tracker/redaction.d.ts +0 -4
- package/dist/tracker/requests.d.ts +0 -17
- package/dist/tracker/responses.d.ts +0 -24
- package/dist/tracker/types.d.ts +0 -51
- package/docs/engine-architecture.md +0 -654
- /package/dist/engines/{k6/runtime/runtime-globals.js → api/profiles.js} +0 -0
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export type BundleSourcemapStatus = "detected" | "none" | "not-detected-in-sample" | "present";
|
|
2
|
-
export interface BundleCacheStatus {
|
|
3
|
-
duplicatedSourceCount: number;
|
|
4
|
-
entryFileCount: number;
|
|
5
|
-
exists: boolean;
|
|
6
|
-
fileCount: number;
|
|
7
|
-
jsFileCount: number;
|
|
8
|
-
manifest: {
|
|
9
|
-
entryCount: number;
|
|
10
|
-
exists: boolean;
|
|
11
|
-
};
|
|
12
|
-
path: string;
|
|
13
|
-
serviceName: string;
|
|
14
|
-
sizeBytes: number;
|
|
15
|
-
sourcemapFileCount: null | number;
|
|
16
|
-
sourcemapStatus: BundleSourcemapStatus;
|
|
17
|
-
sourceFileCount: number;
|
|
18
|
-
unmanagedFileCount: number;
|
|
19
|
-
}
|
|
20
|
-
export interface BundleCleanupTarget {
|
|
21
|
-
path: string;
|
|
22
|
-
reason: "stale-bundle-version";
|
|
23
|
-
serviceName: string;
|
|
24
|
-
sourceFile: null | string;
|
|
25
|
-
}
|
|
26
|
-
export declare function collectBundleCacheStatus(productDir: string, serviceName?: string): BundleCacheStatus;
|
|
27
|
-
export declare function collectBundleCleanupTargets(productDir: string, { allConfigs, serviceName, }?: Readonly<{
|
|
28
|
-
allConfigs?: readonly {
|
|
29
|
-
readonly name: string;
|
|
30
|
-
}[];
|
|
31
|
-
serviceName?: null | string;
|
|
32
|
-
}>): BundleCleanupTarget[];
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { EngineJsonObject, RunnerProfileDescriptor } from "./api/index.js";
|
|
2
|
-
import { BUILT_IN_RUNNER_PROFILES } from "./definitions.js";
|
|
3
|
-
import type { EngineId, PublicTestType, RunnerProfileId } from "../domain/identifiers.js";
|
|
4
|
-
export { isEngineProfileIdentity, type EngineProfileIdentity } from "./definitions.js";
|
|
5
|
-
export interface EngineCatalog {
|
|
6
|
-
readonly profiles: readonly RunnerProfileDescriptor[];
|
|
7
|
-
profilesForTestType(testType: PublicTestType): readonly RunnerProfileDescriptor[];
|
|
8
|
-
resolve<Id extends EngineId>(testType: PublicTestType, engineId: Id): RunnerProfileDescriptor<Id>;
|
|
9
|
-
}
|
|
10
|
-
export declare const BUILT_IN_ENGINE_CATALOG: EngineCatalog;
|
|
11
|
-
export { BUILT_IN_RUNNER_PROFILES };
|
|
12
|
-
export declare function resolveEngineProfile<Id extends EngineId>(testType: PublicTestType, engineId: Id): RunnerProfileDescriptor<Id>;
|
|
13
|
-
type EngineAuthoringModule = "@gfdelarue/testkit/k6" | "@gfdelarue/testkit/node-vitest/data" | "@gfdelarue/testkit/node-vitest/contract" | "@gfdelarue/testkit/playwright";
|
|
14
|
-
export interface EngineAuthoringProfile {
|
|
15
|
-
readonly engineId: EngineId;
|
|
16
|
-
readonly profileId: RunnerProfileId;
|
|
17
|
-
}
|
|
18
|
-
export interface ManagedPublicPackageOwner {
|
|
19
|
-
engineId: "node-vitest" | "playwright";
|
|
20
|
-
name: string;
|
|
21
|
-
}
|
|
22
|
-
export type EngineConfigurations = Readonly<Partial<Record<EngineId, EngineJsonObject>>>;
|
|
23
|
-
export declare function buildEngineConfigurations(config: object, engineIds: ReadonlySet<EngineId>): Promise<EngineConfigurations | undefined>;
|
|
24
|
-
export declare function expectedEngineAuthoringModule(profileId: RunnerProfileId): EngineAuthoringModule;
|
|
25
|
-
export declare function invalidEngineAuthoringImport(filePath: string, metadata: Readonly<EngineAuthoringProfile>, specifier: string, expectedModule?: EngineAuthoringModule): Error;
|
|
26
|
-
export declare function requireMatchingHostImport(filePath: string, metadata: Readonly<EngineAuthoringProfile>, specifier: string): void;
|
|
27
|
-
export declare function managedPublicPackageOwner(specifier: string): ManagedPublicPackageOwner | null;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The fixture manifest that crosses every engine's runtime-input seam.
|
|
3
|
-
* The Node orchestrator builds one manifest per task
|
|
4
|
-
* (`buildRuntimeFixtureManifest`) and each guest — k6, node-vitest data,
|
|
5
|
-
* node-vitest contract — validates it with the same parser, so a manifest
|
|
6
|
-
* the host wrote can never be rejected by one guest and accepted by
|
|
7
|
-
* another.
|
|
8
|
-
*/
|
|
9
|
-
export interface RuntimeFixtureManifestEntry {
|
|
10
|
-
absolutePath: string;
|
|
11
|
-
aliases: string[];
|
|
12
|
-
contentType: string;
|
|
13
|
-
filename: string;
|
|
14
|
-
path: string;
|
|
15
|
-
root: string;
|
|
16
|
-
rootRelativePath: string;
|
|
17
|
-
sha256: string;
|
|
18
|
-
sizeBytes: number;
|
|
19
|
-
}
|
|
20
|
-
export interface RuntimeFixtureManifest {
|
|
21
|
-
entries: RuntimeFixtureManifestEntry[];
|
|
22
|
-
testFile: string;
|
|
23
|
-
version: 1;
|
|
24
|
-
}
|
|
25
|
-
export declare function resolveRuntimeFixtureEntry<T extends {
|
|
26
|
-
readonly aliases: readonly string[];
|
|
27
|
-
readonly path: string;
|
|
28
|
-
}>(entries: readonly T[], key: string): T;
|
|
29
|
-
/**
|
|
30
|
-
* Validates a manifest that arrived over a runtime-input seam and returns
|
|
31
|
-
* its entries. An empty object means "no fixtures were materialized" and
|
|
32
|
-
* yields no entries.
|
|
33
|
-
*/
|
|
34
|
-
export declare function parseRuntimeFixtureManifestEntries(value: unknown, label: string): RuntimeFixtureManifestEntry[];
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Structural bounds for JSON documents that cross a runtime-input seam.
|
|
3
|
-
* Every producer and consumer of a runtime-input document — the Node
|
|
4
|
-
* orchestrator writing it, and the k6 / node-vitest / playwright side
|
|
5
|
-
* reading it — enforces the same profile, so a document accepted on one
|
|
6
|
-
* side can never be rejected on the other.
|
|
7
|
-
*/
|
|
8
|
-
export interface JsonBoundsProfile {
|
|
9
|
-
readonly maxCollectionEntries: number;
|
|
10
|
-
readonly maxDepth: number;
|
|
11
|
-
readonly maxNodes: number;
|
|
12
|
-
readonly maxStringUnits: number;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* How a realm measures string size. Hosts measure UTF-8 bytes; the k6
|
|
16
|
-
* guest has no byte-length primitive and measures UTF-16 characters.
|
|
17
|
-
* Characters never exceed bytes, so the guest bound is the looser one
|
|
18
|
-
* and a host-accepted document always passes guest validation.
|
|
19
|
-
*/
|
|
20
|
-
export interface JsonStringMeasure {
|
|
21
|
-
readonly unitLabel: string;
|
|
22
|
-
readonly unitsOf: (text: string) => number;
|
|
23
|
-
}
|
|
24
|
-
export declare const RUNTIME_INPUT_JSON_BOUNDS: JsonBoundsProfile;
|
|
25
|
-
export declare const CHARACTER_JSON_STRING_MEASURE: JsonStringMeasure;
|
|
26
|
-
/**
|
|
27
|
-
* Rejects values that exceed the profile or are not plain JSON.
|
|
28
|
-
*
|
|
29
|
-
* Self-contained by design: the body references only its parameters and
|
|
30
|
-
* ECMAScript built-ins, so `Function.prototype.toString()` can embed it
|
|
31
|
-
* verbatim into generated bootstrap source (see
|
|
32
|
-
* `playwrightRuntimeInputBootstrapSource`). Do not add references to
|
|
33
|
-
* module-scope bindings.
|
|
34
|
-
*/
|
|
35
|
-
export declare function requireBoundedJsonValue(value: unknown, label: string, profile: JsonBoundsProfile, measure: JsonStringMeasure): void;
|
|
36
|
-
export declare function serializeBoundedJson(value: unknown, label: string, profile: JsonBoundsProfile, measure: JsonStringMeasure): string;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export const RUNTIME_INPUT_JSON_BOUNDS=Object.freeze({maxCollectionEntries:1e4,maxDepth:32,maxNodes:5e4,maxStringUnits:4194304}),CHARACTER_JSON_STRING_MEASURE=Object.freeze({unitLabel:"characters",unitsOf:r=>r.length});export function requireBoundedJsonValue(r,e,t,o){let i=0;const s=(n,a)=>{if(i+=1,i>t.maxNodes)throw new Error(`${e} exceeds the ${t.maxNodes.toString()} node limit`);if(a>t.maxDepth)throw new Error(`${e} exceeds the ${t.maxDepth.toString()} level depth limit`);if(typeof n=="string"){if(o.unitsOf(n)>t.maxStringUnits)throw new Error(`${e} contains a string larger than ${t.maxStringUnits.toString()} ${o.unitLabel}`);return}if(typeof n=="number"){if(!Number.isFinite(n))throw new Error(`${e} contains a non-finite number`);return}if(n===null||typeof n=="boolean")return;if(typeof n!="object")throw new Error(`${e} contains a non-JSON value`);const c=Array.isArray(n)?n:Object.values(n);if(c.length>t.maxCollectionEntries)throw new Error(`${e} contains a collection larger than ${t.maxCollectionEntries.toString()} entries`);for(const u of c)s(u,a+1)};s(r,0)}export function serializeBoundedJson(r,e,t,o){requireBoundedJsonValue(r,e,t,o);const i=JSON.stringify(r);if(typeof i!="string")throw new Error(`${e} is not JSON-serializable`);return`${i}
|
|
2
|
-
`}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type EngineJsonObject } from "../api/index.js";
|
|
2
|
-
export declare const K6_REPOSITORY_CONFIGURATION_VERSION: 1;
|
|
3
|
-
export interface K6RepositoryConfiguration {
|
|
4
|
-
readonly httpProfiles: Readonly<Record<string, K6RepositoryHttpProfile>>;
|
|
5
|
-
readonly kind: "testkit-k6-repository-configuration";
|
|
6
|
-
readonly version: typeof K6_REPOSITORY_CONFIGURATION_VERSION;
|
|
7
|
-
}
|
|
8
|
-
export type K6RepositoryHttpProfile = Readonly<{
|
|
9
|
-
kind: "json";
|
|
10
|
-
value: EngineJsonObject;
|
|
11
|
-
}>;
|
|
12
|
-
export declare function parseK6RepositoryConfiguration(value: unknown): K6RepositoryConfiguration | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{normalizeEngineJsonValue as u}from"../api/index.js";export const K6_REPOSITORY_CONFIGURATION_VERSION=1;export function parseK6RepositoryConfiguration(t){if(t===void 0)return null;const r=s(t,"k6 repository configuration");if(f(r,["httpProfiles","kind","version"],"k6 repository configuration"),r.kind!=="testkit-k6-repository-configuration")throw new Error('k6 repository configuration.kind must be "testkit-k6-repository-configuration"');if(r.version!==K6_REPOSITORY_CONFIGURATION_VERSION)throw new Error("k6 repository configuration.version must be 1");const o=s(r.httpProfiles,"k6 repository configuration.httpProfiles"),n=[];for(const[i,c]of Object.entries(o)){if(i.trim().length===0)throw new Error("k6 repository configuration.httpProfiles keys must be non-empty");n.push([i,p(c,`k6 repository configuration.httpProfiles.${i}`)])}const e=Object.fromEntries(n);return Object.freeze({httpProfiles:Object.freeze(e),kind:"testkit-k6-repository-configuration",version:K6_REPOSITORY_CONFIGURATION_VERSION})}function p(t,r){const o=s(t,r);if(o.kind==="json")return f(o,["kind","value"],r),Object.freeze({kind:"json",value:k(o.value,`${r}.value`)});throw new Error(`${r}.kind must be "json"`)}function k(t,r){const o=u(t,r);if(o===null||typeof o!="object"||Array.isArray(o))throw new Error(`${r} must be an object`);return o}function s(t,r){if(typeof t!="object"||t===null||Array.isArray(t))throw new Error(`${r} must be an object`);const o=Object.getPrototypeOf(t);if(o!==Object.prototype&&o!==null)throw new Error(`${r} must be a plain object`);return t}function f(t,r,o){const n=new Set(r);for(const e of Object.keys(t))if(!n.has(e))throw new Error(`${o} contains unknown field ${e}`);for(const e of r)if(!Object.hasOwn(t,e))throw new Error(`${o} is missing required field ${e}`)}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface TestNamespaceInput {
|
|
2
|
-
readonly leaseId?: unknown;
|
|
3
|
-
readonly runtimeId?: unknown;
|
|
4
|
-
}
|
|
5
|
-
export interface TestkitContext<Environment extends object = object> {
|
|
6
|
-
active: boolean;
|
|
7
|
-
leaseId: string | null;
|
|
8
|
-
namespace: string;
|
|
9
|
-
rawEnv: Environment;
|
|
10
|
-
runtimeId: string | null;
|
|
11
|
-
}
|
|
12
|
-
export declare function buildTestNamespace({ leaseId, runtimeId }?: TestNamespaceInput): string;
|
|
13
|
-
export declare function readTestkitContext(env?: undefined): TestkitContext<Record<string, never>>;
|
|
14
|
-
export declare function readTestkitContext<Environment extends object>(env: Environment): TestkitContext<Environment>;
|
|
15
|
-
export declare function readTestkitContext<Environment extends object>(env: Environment | undefined): TestkitContext<Environment | Record<string, never>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const r=String;function i(e){return r(e||"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}function t(e){return i(e)||null}function a(e,n){return Reflect.get(e,n)}export function buildTestNamespace({leaseId:e,runtimeId:n}={}){return t(e)||t(n)||"standalone"}export function readTestkitContext(e={}){const n=t(a(e,"TESTKIT_RUNTIME_ID")),o=t(a(e,"TESTKIT_LEASE_ID"));return{active:a(e,"TESTKIT_ACTIVE")==="1",runtimeId:n,leaseId:o,namespace:buildTestNamespace({leaseId:o,runtimeId:n}),rawEnv:e}}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { RunnerProfileDescriptor } from "./api/index.js";
|
|
2
|
-
import type { EngineId, PublicTestType, RunnerProfileId } from "../domain/identifiers.js";
|
|
3
|
-
import type { InternalEngineRegistrationById } from "./installation-catalog.js";
|
|
4
|
-
export type EndpointReadinessOwner = "adapter" | "orchestrator-http";
|
|
5
|
-
export interface BuiltInRunnerProfile<Id extends EngineId = EngineId> extends RunnerProfileDescriptor<Id> {
|
|
6
|
-
readonly endpointReadinessOwner: EndpointReadinessOwner;
|
|
7
|
-
}
|
|
8
|
-
type BuiltInDefinitions = {
|
|
9
|
-
readonly [Id in EngineId]: InternalEngineRegistrationById[Id] & {
|
|
10
|
-
readonly profiles: readonly BuiltInRunnerProfile<Id>[];
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export declare const BUILT_IN_ENGINE_DEFINITIONS: BuiltInDefinitions;
|
|
14
|
-
export declare const BUILT_IN_RUNNER_PROFILES: readonly BuiltInRunnerProfile[];
|
|
15
|
-
export interface EngineProfileIdentity {
|
|
16
|
-
readonly engineId: EngineId;
|
|
17
|
-
readonly profileId: RunnerProfileId;
|
|
18
|
-
readonly testType: PublicTestType;
|
|
19
|
-
}
|
|
20
|
-
/** Validate persisted identities without loading engine configuration builders. */
|
|
21
|
-
export declare function isEngineProfileIdentity(value: unknown): value is EngineProfileIdentity;
|
|
22
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type InternalEngineInstallationCatalog } from "./installation-catalog.js";
|
|
2
|
-
import { EngineManager } from "./manager.js";
|
|
3
|
-
export interface EngineManagerFactoryOptions {
|
|
4
|
-
readonly catalog?: InternalEngineInstallationCatalog;
|
|
5
|
-
}
|
|
6
|
-
export declare function createEngineManager(productDirectory: string, options?: Readonly<EngineManagerFactoryOptions>): EngineManager;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function ownedGeneratedScript(source: string, label: string): string;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { type EngineExecutionRequest, type EngineExecutionResult, type EngineInvocationScope } from "./api/index.js";
|
|
2
|
-
import { type EngineId } from "../domain/identifiers.js";
|
|
3
|
-
import type { K6Installation } from "./installations/k6.js";
|
|
4
|
-
import type { NodeVitestInstallation } from "./installations/node-vitest.js";
|
|
5
|
-
import type { PlaywrightInstallation } from "./installations/playwright.js";
|
|
6
|
-
import type { EngineResolutionContext } from "./installations/types.js";
|
|
7
|
-
export interface EngineInstallationById {
|
|
8
|
-
readonly k6: K6Installation;
|
|
9
|
-
readonly "node-vitest": NodeVitestInstallation;
|
|
10
|
-
readonly playwright: PlaywrightInstallation;
|
|
11
|
-
}
|
|
12
|
-
export type EngineInstallationFor<Id extends EngineId> = EngineInstallationById[Id];
|
|
13
|
-
export type EngineExecutorFor<Id extends EngineId> = (request: Readonly<EngineExecutionRequest<Id>>, installation: Readonly<EngineInstallationFor<Id>>, scope: EngineInvocationScope) => Promise<EngineExecutionResult>;
|
|
14
|
-
export interface InternalEngineRegistration<Id extends EngineId> {
|
|
15
|
-
readonly id: Id;
|
|
16
|
-
loadExecutor(): Promise<EngineExecutorFor<Id>>;
|
|
17
|
-
resolveInstallation(context: Readonly<EngineResolutionContext>): Promise<EngineInstallationFor<Id>>;
|
|
18
|
-
}
|
|
19
|
-
export type InternalEngineRegistrationById = {
|
|
20
|
-
readonly [Id in EngineId]: InternalEngineRegistration<Id>;
|
|
21
|
-
};
|
|
22
|
-
export interface InternalEngineInstallationCatalog {
|
|
23
|
-
readonly registrations: InternalEngineRegistrationById;
|
|
24
|
-
resolve<Id extends EngineId>(engineId: Id): InternalEngineRegistration<Id>;
|
|
25
|
-
}
|
|
26
|
-
export declare const BUILT_IN_ENGINE_INSTALLATION_CATALOG: InternalEngineInstallationCatalog;
|
|
27
|
-
export declare function createInternalEngineInstallationCatalog(registrations: Readonly<InternalEngineRegistrationById>): InternalEngineInstallationCatalog;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./api/index.js";import"../domain/identifiers.js";import{BUILT_IN_ENGINE_DEFINITIONS as o}from"./definitions.js";export const BUILT_IN_ENGINE_INSTALLATION_CATALOG=createInternalEngineInstallationCatalog(o);export function createInternalEngineInstallationCatalog(e){const t=Object.freeze({k6:Object.freeze(e.k6),"node-vitest":Object.freeze(e["node-vitest"]),playwright:Object.freeze(e.playwright)});return Object.freeze({registrations:t,resolve(r){return t[r]}})}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { type PlatformTarget } from "../../process/host/platform.js";
|
|
2
|
-
import { runManagedHostProcess } from "../../process/index.js";
|
|
3
|
-
import { RootPackageResolver, type ResolvedPackage } from "./package-resolution.js";
|
|
4
|
-
import type { EngineResolutionContext } from "./types.js";
|
|
5
|
-
export declare const EXPECTED_K6_VERSION = "1.7.1";
|
|
6
|
-
export declare const K6_VERSION_PROBE_TIMEOUT_MS = 30000;
|
|
7
|
-
export declare const K6_TARGET_PACKAGE_REQUIREMENTS: readonly [Readonly<{
|
|
8
|
-
executablePath: "bin/k6";
|
|
9
|
-
packageName: "@gfdelarue/testkit-engine-k6-darwin-arm64";
|
|
10
|
-
publicEntrypoint: "@gfdelarue/testkit-engine-k6-darwin-arm64/binary";
|
|
11
|
-
target: Readonly<{
|
|
12
|
-
arch: "arm64";
|
|
13
|
-
platform: "darwin";
|
|
14
|
-
}>;
|
|
15
|
-
}>, Readonly<{
|
|
16
|
-
executablePath: "bin/k6";
|
|
17
|
-
packageName: "@gfdelarue/testkit-engine-k6-darwin-x64";
|
|
18
|
-
publicEntrypoint: "@gfdelarue/testkit-engine-k6-darwin-x64/binary";
|
|
19
|
-
target: Readonly<{
|
|
20
|
-
arch: "x64";
|
|
21
|
-
platform: "darwin";
|
|
22
|
-
}>;
|
|
23
|
-
}>, Readonly<{
|
|
24
|
-
executablePath: "bin/k6";
|
|
25
|
-
packageName: "@gfdelarue/testkit-engine-k6-linux-arm64";
|
|
26
|
-
publicEntrypoint: "@gfdelarue/testkit-engine-k6-linux-arm64/binary";
|
|
27
|
-
target: Readonly<{
|
|
28
|
-
arch: "arm64";
|
|
29
|
-
platform: "linux";
|
|
30
|
-
}>;
|
|
31
|
-
}>, Readonly<{
|
|
32
|
-
executablePath: "bin/k6";
|
|
33
|
-
packageName: "@gfdelarue/testkit-engine-k6-linux-x64";
|
|
34
|
-
publicEntrypoint: "@gfdelarue/testkit-engine-k6-linux-x64/binary";
|
|
35
|
-
target: Readonly<{
|
|
36
|
-
arch: "x64";
|
|
37
|
-
platform: "linux";
|
|
38
|
-
}>;
|
|
39
|
-
}>, Readonly<{
|
|
40
|
-
executablePath: "bin/k6.exe";
|
|
41
|
-
packageName: "@gfdelarue/testkit-engine-k6-win32-x64";
|
|
42
|
-
publicEntrypoint: "@gfdelarue/testkit-engine-k6-win32-x64/binary";
|
|
43
|
-
target: Readonly<{
|
|
44
|
-
arch: "x64";
|
|
45
|
-
platform: "win32";
|
|
46
|
-
}>;
|
|
47
|
-
}>];
|
|
48
|
-
export type K6TargetPackageName = (typeof K6_TARGET_PACKAGE_REQUIREMENTS)[number]["packageName"];
|
|
49
|
-
export interface K6TargetPackageInstallation {
|
|
50
|
-
readonly name: K6TargetPackageName;
|
|
51
|
-
readonly root: string;
|
|
52
|
-
readonly target: PlatformTarget;
|
|
53
|
-
readonly version: string;
|
|
54
|
-
}
|
|
55
|
-
export interface K6Installation {
|
|
56
|
-
readonly authoringEntrypoints: {
|
|
57
|
-
readonly authoring: string;
|
|
58
|
-
readonly config: string;
|
|
59
|
-
readonly root: string;
|
|
60
|
-
readonly rootPackageJson: string;
|
|
61
|
-
};
|
|
62
|
-
readonly engineId: "k6";
|
|
63
|
-
readonly engineVersion: string;
|
|
64
|
-
readonly executable: string;
|
|
65
|
-
readonly target: PlatformTarget;
|
|
66
|
-
readonly targetPackage: K6TargetPackageInstallation;
|
|
67
|
-
}
|
|
68
|
-
type K6VersionProbeResult = Awaited<ReturnType<typeof runManagedHostProcess>>;
|
|
69
|
-
export declare class K6OptionalPackageMissingError extends Error {
|
|
70
|
-
readonly code = "TESTKIT_K6_OPTIONAL_PACKAGE_MISSING";
|
|
71
|
-
readonly packageName: K6TargetPackageName;
|
|
72
|
-
readonly target: PlatformTarget;
|
|
73
|
-
readonly version: string;
|
|
74
|
-
constructor(requirement: Readonly<K6TargetPackageRequirement>, version: string, options: ErrorOptions);
|
|
75
|
-
}
|
|
76
|
-
export declare class K6EngineVersionMismatchError extends Error {
|
|
77
|
-
readonly code = "TESTKIT_K6_ENGINE_VERSION_MISMATCH";
|
|
78
|
-
readonly expectedVersion: string;
|
|
79
|
-
readonly observedVersion: string;
|
|
80
|
-
readonly packageName: K6TargetPackageName;
|
|
81
|
-
readonly packageVersion: string;
|
|
82
|
-
constructor(selected: Readonly<ResolvedPackage>, requirement: Readonly<K6TargetPackageRequirement>, observedVersion: string);
|
|
83
|
-
}
|
|
84
|
-
export declare class K6VersionProbeError extends Error {
|
|
85
|
-
readonly code = "TESTKIT_K6_VERSION_PROBE_FAILED";
|
|
86
|
-
constructor(message: string, options?: ErrorOptions);
|
|
87
|
-
}
|
|
88
|
-
interface K6TargetPackageRequirement {
|
|
89
|
-
readonly executablePath: "bin/k6" | "bin/k6.exe";
|
|
90
|
-
readonly packageName: K6TargetPackageNameLiteral;
|
|
91
|
-
readonly publicEntrypoint: `${K6TargetPackageNameLiteral}/binary`;
|
|
92
|
-
readonly target: PlatformTarget;
|
|
93
|
-
}
|
|
94
|
-
type K6TargetPackageNameLiteral = "@gfdelarue/testkit-engine-k6-darwin-arm64" | "@gfdelarue/testkit-engine-k6-darwin-x64" | "@gfdelarue/testkit-engine-k6-linux-arm64" | "@gfdelarue/testkit-engine-k6-linux-x64" | "@gfdelarue/testkit-engine-k6-win32-x64";
|
|
95
|
-
export declare function resolveK6Installation(context: Readonly<EngineResolutionContext>): Promise<K6Installation>;
|
|
96
|
-
export declare function requireK6TargetPackageRequirement(target?: Readonly<PlatformTarget>): (typeof K6_TARGET_PACKAGE_REQUIREMENTS)[number];
|
|
97
|
-
export declare function requireK6VersionProbeResult(selected: Readonly<ResolvedPackage>, target: Readonly<PlatformTarget>, signal: AbortSignal, result: Readonly<K6VersionProbeResult>, resolver: RootPackageResolver): string;
|
|
98
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import p from"node:fs";import l from"node:path";import{currentPlatformTarget as h,platformTargetKey as b,UnsupportedPlatformTargetError as x}from"../../process/host/platform.js";import{isPathWithin as k}from"../../process/files/paths.js";import{managedHostProcessInfrastructureError as E,runManagedHostProcess as w}from"../../process/index.js";import{MissingDirectPackageError as y,RootPackageResolver as P}from"./package-resolution.js";export const EXPECTED_K6_VERSION="1.7.1",K6_VERSION_PROBE_TIMEOUT_MS=3e4,K6_TARGET_PACKAGE_REQUIREMENTS=Object.freeze([Object.freeze({executablePath:"bin/k6",packageName:"@gfdelarue/testkit-engine-k6-darwin-arm64",publicEntrypoint:"@gfdelarue/testkit-engine-k6-darwin-arm64/binary",target:Object.freeze({arch:"arm64",platform:"darwin"})}),Object.freeze({executablePath:"bin/k6",packageName:"@gfdelarue/testkit-engine-k6-darwin-x64",publicEntrypoint:"@gfdelarue/testkit-engine-k6-darwin-x64/binary",target:Object.freeze({arch:"x64",platform:"darwin"})}),Object.freeze({executablePath:"bin/k6",packageName:"@gfdelarue/testkit-engine-k6-linux-arm64",publicEntrypoint:"@gfdelarue/testkit-engine-k6-linux-arm64/binary",target:Object.freeze({arch:"arm64",platform:"linux"})}),Object.freeze({executablePath:"bin/k6",packageName:"@gfdelarue/testkit-engine-k6-linux-x64",publicEntrypoint:"@gfdelarue/testkit-engine-k6-linux-x64/binary",target:Object.freeze({arch:"x64",platform:"linux"})}),Object.freeze({executablePath:"bin/k6.exe",packageName:"@gfdelarue/testkit-engine-k6-win32-x64",publicEntrypoint:"@gfdelarue/testkit-engine-k6-win32-x64/binary",target:Object.freeze({arch:"x64",platform:"win32"})})]);export class K6OptionalPackageMissingError extends Error{code="TESTKIT_K6_OPTIONAL_PACKAGE_MISSING";packageName;target;version;constructor(t,a,r){const n=Object.freeze({...t.target});super(`Testkit k6 on ${n.platform}/${n.arch} requires optional package ${t.packageName}@${a}, but it is not installed. Run a clean npm install from the consumer lockfile without omitting optional dependencies. Testkit does not use PATH or a system k6 fallback.`,r),this.name="K6OptionalPackageMissingError",this.packageName=t.packageName,this.target=n,this.version=a}}export class K6EngineVersionMismatchError extends Error{code="TESTKIT_K6_ENGINE_VERSION_MISMATCH";expectedVersion;observedVersion;packageName;packageVersion;constructor(t,a,r){super(`Testkit requires k6 v${EXPECTED_K6_VERSION}, but ${a.packageName}@${t.version} reported k6 v${r} from its version probe. Install the ${a.packageName} version that ships k6 v${EXPECTED_K6_VERSION}.`),this.name="K6EngineVersionMismatchError",this.expectedVersion=EXPECTED_K6_VERSION,this.observedVersion=r,this.packageName=a.packageName,this.packageVersion=t.version}}export class K6VersionProbeError extends Error{code="TESTKIT_K6_VERSION_PROBE_FAILED";constructor(t,a){super(t,a),this.name="K6VersionProbeError"}}const v=/^k6(?:\.exe)? v((?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z.-]+)?)\s+\([^\r\n)]*\b(darwin|linux|windows)\/(amd64|arm64)\)(?:\s|$)/u;export async function resolveK6Installation(e){e.signal.throwIfAborted();const t=new P,a=requireK6TargetPackageRequirement();let r;try{r=t.resolveRequireFromRoot({dependencyGroup:"optionalDependencies",packageName:a.packageName,publicEntrypoint:a.publicEntrypoint})}catch(s){throw s instanceof y?new K6OptionalPackageMissingError(a,s.version,{cause:s}):s}const n=O(r,a,t),i=T(t),o=await $(r,n,a.target,e,t),c=Object.freeze({...a.target});return Object.freeze({authoringEntrypoints:i,engineId:"k6",engineVersion:o,executable:n,target:c,targetPackage:Object.freeze({name:a.packageName,root:r.root,target:c,version:r.version})})}function T(e){return Object.freeze({authoring:e.resolveRootPublicEntrypoint("@gfdelarue/testkit/k6"),config:e.resolveRootPublicEntrypoint("@gfdelarue/testkit/config"),root:e.resolveRootPublicEntrypoint("@gfdelarue/testkit"),rootPackageJson:e.packageJsonPath})}export function requireK6TargetPackageRequirement(e=h()){const t=b(e),a=K6_TARGET_PACKAGE_REQUIREMENTS.find(r=>b(r.target)===t);if(a===void 0)throw new x(e.platform,e.arch,"managed k6");return a}function O(e,t,a){try{const r=_(e.manifestPath);if(r.name!==t.packageName||r.version!==e.version)throw new TypeError(`manifest must remain exactly ${t.packageName}@${e.version}`);d(r.os,t.target.platform,"os"),d(r.cpu,t.target.arch,"cpu");const n=l.resolve(e.root,t.executablePath);if(!k(e.root,n))throw new TypeError(`expected executable ${t.executablePath} escapes its package root`);const i=p.lstatSync(n);if(!i.isFile()||i.isSymbolicLink())throw new TypeError(`expected executable ${t.executablePath} must be a regular non-symlink file`);const o=p.realpathSync(n);if(!k(e.root,o))throw new TypeError(`expected executable ${t.executablePath} resolves outside its package root`);if(o!==e.entrypoint)throw new TypeError(`public binary export must resolve exactly to ${t.executablePath}`);if(l.basename(o)!==l.basename(t.executablePath))throw new TypeError(`public binary export must use filename ${l.basename(t.executablePath)}`);if(t.target.platform!=="win32"&&(i.mode&73)===0)throw new TypeError(`expected executable ${t.executablePath} must have a POSIX executable permission bit`);return t.target.platform!=="win32"&&p.accessSync(o,p.constants.X_OK),o}catch(r){throw a.brokenInstallation(e,`its ${t.target.platform}/${t.target.arch} k6 binary contract is invalid: ${R(r)}`,r)}}async function $(e,t,a,r,n){let i;try{i=await w({args:["version"],cwd:r.productRoot,displayLabel:"Testkit k6 version probe",env:process.env,executable:t,signal:r.signal,timeoutMs:K6_VERSION_PROBE_TIMEOUT_MS})}catch(o){throw m(r.signal,o),n.brokenInstallation(e,"its mandatory k6 version probe could not run",o)}return requireK6VersionProbeResult(e,a,r.signal,i,n)}export function requireK6VersionProbeResult(e,t,a,r,n){const i=E("Testkit k6 version probe",r);m(a,S(r)?i:null);const o=K(r)??i??I(r);if(o!==null)throw n.brokenInstallation(e,"its mandatory k6 version probe failed",o);const c=r.stdout.trim().split(/\r?\n/u,1)[0]??"",s=v.exec(c);if(s===null)throw n.brokenInstallation(e,"its mandatory k6 version probe returned an invalid version",new K6VersionProbeError(`Expected bounded output beginning with "k6 v<version>"; received ${JSON.stringify(c)}`));const u=`${s[2]}/${s[3]}`,f=N(t);if(u!==f)throw n.brokenInstallation(e,`its mandatory k6 version probe reported incompatible target ${u}; expected ${f}`,new K6VersionProbeError(`k6 version target ${u} does not match ${f}`));const g=s[1];if(g!==EXPECTED_K6_VERSION)throw new K6EngineVersionMismatchError(e,requireK6TargetPackageRequirement(t),g);return g}function N(e){const t=e.platform==="win32"?"windows":e.platform,a=e.arch==="x64"?"amd64":e.arch;return`${t}/${a}`}function I(e){return e.exitCode!==0?new K6VersionProbeError(e.exitCode===null?`k6 version terminated by ${e.exitSignal??"an unknown signal"}`:`k6 version exited with code ${e.exitCode.toString()}`):null}function S(e){return e.terminationError!==null||e.error!==null||e.timedOut||e.outputLimitExceeded}function K(e){return e.error!==null&&e.terminationError===null&&!e.timedOut&&!e.cancelled&&!e.outputLimitExceeded?e.error:null}function m(e,t){if(e.aborted)throw t==null&&e.throwIfAborted(),t===e.reason?t:new AggregateError([e.reason,t],"k6 version probe was cancelled and process cleanup also failed",{cause:e.reason})}function d(e,t,a){if(!Array.isArray(e)||e.length!==1||e[0]!==t)throw new TypeError(`manifest ${a} must be exactly [${JSON.stringify(t)}]; received ${JSON.stringify(e)}`)}function _(e){const t=JSON.parse(p.readFileSync(e,"utf8"));if(typeof t!="object"||t===null||Array.isArray(t))throw new TypeError("package manifest must contain a JSON object");return t}function R(e){return e instanceof Error?e.message:String(e)}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export { NODE_VITEST_PACKAGE_REQUIREMENTS, NODE_VITEST_PRIVATE_PACKAGE_PREFIXES } from "./package-requirements.js";
|
|
2
|
-
import { RootPackageResolver, type ResolvedPackageEntrypoint } from "./package-resolution.js";
|
|
3
|
-
import type { DirectPackageInstallation, EngineResolutionContext } from "./types.js";
|
|
4
|
-
interface VitestPackageInstallation extends DirectPackageInstallation<"vitest"> {
|
|
5
|
-
readonly cli: string;
|
|
6
|
-
}
|
|
7
|
-
export interface NodeVitestAuthoringEntrypoints {
|
|
8
|
-
readonly config: string;
|
|
9
|
-
readonly contract: string;
|
|
10
|
-
readonly data: string;
|
|
11
|
-
readonly root: string;
|
|
12
|
-
readonly rootPackageJson: string;
|
|
13
|
-
}
|
|
14
|
-
export interface NodeVitestInstallation {
|
|
15
|
-
readonly authoringEntrypoints: NodeVitestAuthoringEntrypoints;
|
|
16
|
-
readonly engineId: "node-vitest";
|
|
17
|
-
readonly packages: {
|
|
18
|
-
readonly esbuild: DirectPackageInstallation<"esbuild">;
|
|
19
|
-
readonly typescript: DirectPackageInstallation<"typescript">;
|
|
20
|
-
readonly vite: DirectPackageInstallation<"vite">;
|
|
21
|
-
readonly vitest: VitestPackageInstallation;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
interface NodeVitestResolutionDependencies {
|
|
25
|
-
readonly packageResolver: RootPackageResolver;
|
|
26
|
-
}
|
|
27
|
-
export declare function resolveNodeVitestInstallation(context: Readonly<EngineResolutionContext>, dependencies?: Readonly<NodeVitestResolutionDependencies>): NodeVitestInstallation;
|
|
28
|
-
export declare function preflightNodeVitestInstallation(installation: Readonly<NodeVitestInstallation>, context: Readonly<{
|
|
29
|
-
signal: {
|
|
30
|
-
readonly aborted: boolean;
|
|
31
|
-
readonly reason?: unknown;
|
|
32
|
-
};
|
|
33
|
-
}>, importEntrypoint?: (selectedPackage: Readonly<ResolvedPackageEntrypoint>) => Promise<unknown>): Promise<void>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export declare const NODE_VITEST_PACKAGE_REQUIREMENTS: readonly [Readonly<{
|
|
2
|
-
authoringResolution: "package-exports";
|
|
3
|
-
packageName: "vitest";
|
|
4
|
-
publicEntrypoints: readonly ["vitest"];
|
|
5
|
-
}>, Readonly<{
|
|
6
|
-
authoringResolution: "package-exports";
|
|
7
|
-
packageName: "vite";
|
|
8
|
-
publicEntrypoints: readonly ["vite"];
|
|
9
|
-
}>, Readonly<{
|
|
10
|
-
authoringResolution: "exact-entrypoint";
|
|
11
|
-
packageName: "typescript";
|
|
12
|
-
publicEntrypoints: readonly ["typescript"];
|
|
13
|
-
}>, Readonly<{
|
|
14
|
-
authoringResolution: "exact-entrypoint";
|
|
15
|
-
packageName: "esbuild";
|
|
16
|
-
publicEntrypoints: readonly ["esbuild"];
|
|
17
|
-
}>];
|
|
18
|
-
export declare const NODE_VITEST_PRIVATE_PACKAGE_PREFIXES: readonly ["@vitest/"];
|
|
19
|
-
export declare const PLAYWRIGHT_PACKAGE_FAMILY_REQUIREMENTS: readonly [Readonly<{
|
|
20
|
-
packageName: "@playwright/test";
|
|
21
|
-
publicEntrypoints: readonly ["@playwright/test", "@playwright/test/cli"];
|
|
22
|
-
}>, Readonly<{
|
|
23
|
-
packageName: "playwright";
|
|
24
|
-
publicEntrypoints: readonly ["playwright"];
|
|
25
|
-
}>, Readonly<{
|
|
26
|
-
packageName: "playwright-core";
|
|
27
|
-
publicEntrypoints: readonly ["playwright-core"];
|
|
28
|
-
}>];
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
export declare const TESTKIT_PACKAGE_NAME = "@gfdelarue/testkit";
|
|
2
|
-
export type RootDependencyGroup = "dependencies" | "optionalDependencies";
|
|
3
|
-
export interface PackageResolutionRequest {
|
|
4
|
-
readonly dependencyGroup: RootDependencyGroup;
|
|
5
|
-
readonly packageName: string;
|
|
6
|
-
readonly publicEntrypoint: string;
|
|
7
|
-
}
|
|
8
|
-
export interface ResolvedPackage {
|
|
9
|
-
readonly entrypoint: string;
|
|
10
|
-
readonly manifestPath: string;
|
|
11
|
-
readonly name: string;
|
|
12
|
-
readonly root: string;
|
|
13
|
-
readonly version: string;
|
|
14
|
-
}
|
|
15
|
-
export type ResolvedPackageEntrypoint = Pick<ResolvedPackage, "entrypoint" | "name" | "version">;
|
|
16
|
-
export interface RootPackageResolverOptions {
|
|
17
|
-
readonly packageJsonPath?: string;
|
|
18
|
-
readonly resolveImportFromRoot?: (specifier: string) => string;
|
|
19
|
-
}
|
|
20
|
-
export declare class RootPackageDeclarationError extends Error {
|
|
21
|
-
readonly code = "TESTKIT_ROOT_PACKAGE_DECLARATION_INVALID";
|
|
22
|
-
constructor(message: string, options?: ErrorOptions);
|
|
23
|
-
}
|
|
24
|
-
export declare class MissingDirectPackageError extends Error {
|
|
25
|
-
readonly code = "TESTKIT_DIRECT_PACKAGE_MISSING";
|
|
26
|
-
readonly packageName: string;
|
|
27
|
-
readonly version: string;
|
|
28
|
-
constructor(packageName: string, version: string, publicEntrypoint: string, optionalDependency: boolean, options: ErrorOptions);
|
|
29
|
-
}
|
|
30
|
-
export declare class BrokenPackageInstallationError extends Error {
|
|
31
|
-
readonly code = "TESTKIT_PACKAGE_INSTALLATION_BROKEN";
|
|
32
|
-
readonly packageName: string;
|
|
33
|
-
readonly version: string;
|
|
34
|
-
constructor(packageName: string, version: string, problem: string, options?: ErrorOptions);
|
|
35
|
-
}
|
|
36
|
-
export declare class RootPackageResolver {
|
|
37
|
-
readonly packageJsonPath: string;
|
|
38
|
-
readonly packageRoot: string;
|
|
39
|
-
private readonly manifest;
|
|
40
|
-
private readonly requireFromRoot;
|
|
41
|
-
private readonly resolveRootImport;
|
|
42
|
-
constructor(options?: Readonly<RootPackageResolverOptions>);
|
|
43
|
-
resolveImportFromRoot(request: Readonly<PackageResolutionRequest>): ResolvedPackage;
|
|
44
|
-
resolveRequireFromRoot(request: Readonly<PackageResolutionRequest>): ResolvedPackage;
|
|
45
|
-
resolveRequireFromPackage(parent: Readonly<ResolvedPackage>, request: Readonly<PackageResolutionRequest>): ResolvedPackage;
|
|
46
|
-
resolveRequirePublicEntrypoint(selectedPackage: Readonly<ResolvedPackage>, publicEntrypoint: string): string;
|
|
47
|
-
resolveRootPublicEntrypoint(publicEntrypoint: string): string;
|
|
48
|
-
brokenInstallation(selectedPackage: Readonly<ResolvedPackage>, problem: string, cause: unknown): BrokenPackageInstallationError;
|
|
49
|
-
private declaredVersion;
|
|
50
|
-
}
|
|
51
|
-
export declare function importResolvedPackageEntrypoint(selectedPackage: Readonly<ResolvedPackageEntrypoint>): Promise<unknown>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
export { PLAYWRIGHT_PACKAGE_FAMILY_REQUIREMENTS } from "./package-requirements.js";
|
|
2
|
-
import { type ManagedProcessResult } from "../../process/index.js";
|
|
3
|
-
import { type LinuxLibc, type PlatformTarget } from "../../process/host/platform.js";
|
|
4
|
-
import { RootPackageResolver } from "./package-resolution.js";
|
|
5
|
-
import type { DirectPackageInstallation, EngineResolutionContext } from "./types.js";
|
|
6
|
-
export interface PlaywrightPackageFamily {
|
|
7
|
-
readonly cli: string;
|
|
8
|
-
readonly playwright: DirectPackageInstallation<"playwright">;
|
|
9
|
-
readonly playwrightCore: DirectPackageInstallation<"playwright-core">;
|
|
10
|
-
readonly playwrightTest: DirectPackageInstallation<"@playwright/test">;
|
|
11
|
-
}
|
|
12
|
-
export type PlaywrightRegistryMode = "configured-absolute" | "configured-relative" | "default" | "hermetic";
|
|
13
|
-
export interface PlaywrightRegistrySelection {
|
|
14
|
-
readonly canonicalValue: string;
|
|
15
|
-
readonly mode: PlaywrightRegistryMode;
|
|
16
|
-
}
|
|
17
|
-
export interface PlaywrightInstallation {
|
|
18
|
-
readonly authoringEntrypoints: {
|
|
19
|
-
readonly authoring: string;
|
|
20
|
-
readonly root: string;
|
|
21
|
-
readonly rootPackageJson: string;
|
|
22
|
-
};
|
|
23
|
-
readonly browserExecutable: string;
|
|
24
|
-
readonly engineId: "playwright";
|
|
25
|
-
readonly family: PlaywrightPackageFamily;
|
|
26
|
-
readonly registry: PlaywrightRegistrySelection;
|
|
27
|
-
}
|
|
28
|
-
export interface PlaywrightResolutionOptions {
|
|
29
|
-
readonly ambientEnvironment?: Readonly<NodeJS.ProcessEnv>;
|
|
30
|
-
readonly configuredRegistry?: string;
|
|
31
|
-
}
|
|
32
|
-
export interface PlaywrightHost {
|
|
33
|
-
readonly linuxLibc: LinuxLibc | null;
|
|
34
|
-
readonly target: PlatformTarget;
|
|
35
|
-
}
|
|
36
|
-
interface PlaywrightChildRequest {
|
|
37
|
-
readonly family: PlaywrightPackageFamily;
|
|
38
|
-
readonly registry: PlaywrightRegistrySelection;
|
|
39
|
-
}
|
|
40
|
-
interface PlaywrightChildSuccess extends PlaywrightChildRequest {
|
|
41
|
-
readonly browserExecutable: string;
|
|
42
|
-
readonly ok: true;
|
|
43
|
-
}
|
|
44
|
-
export declare class PlaywrightInstallationError extends Error {
|
|
45
|
-
readonly code = "TESTKIT_PLAYWRIGHT_INSTALLATION_INVALID";
|
|
46
|
-
constructor(problem: string, options?: ErrorOptions);
|
|
47
|
-
}
|
|
48
|
-
export declare class UnsupportedPlaywrightPlatformError extends Error {
|
|
49
|
-
readonly code = "TESTKIT_PLAYWRIGHT_PLATFORM_UNSUPPORTED";
|
|
50
|
-
constructor(target: Readonly<PlatformTarget>, linuxLibc: LinuxLibc | null);
|
|
51
|
-
}
|
|
52
|
-
export declare function resolvePlaywrightPackageFamily(resolver?: RootPackageResolver): PlaywrightPackageFamily;
|
|
53
|
-
export declare function resolvePlaywrightRegistry(options: {
|
|
54
|
-
readonly ambientEnvironment: Readonly<NodeJS.ProcessEnv>;
|
|
55
|
-
readonly configuredValue?: string;
|
|
56
|
-
readonly homeDirectory?: string;
|
|
57
|
-
readonly platform: PlatformTarget["platform"];
|
|
58
|
-
readonly productRoot: string;
|
|
59
|
-
}): PlaywrightRegistrySelection;
|
|
60
|
-
export declare function playwrightRegistryEnvironment(ambientEnvironment: Readonly<NodeJS.ProcessEnv>, registry: Readonly<PlaywrightRegistrySelection>): Readonly<Record<string, string>>;
|
|
61
|
-
export declare function resolvePlaywrightInstallation(context: Readonly<EngineResolutionContext>, options?: Readonly<PlaywrightResolutionOptions>): Promise<PlaywrightInstallation>;
|
|
62
|
-
export declare function throwIfPlaywrightProcessAborted(signal: AbortSignal, result: Readonly<ManagedProcessResult>, processFailure: Error | null): void;
|
|
63
|
-
type ParsedChildOutput = PlaywrightChildSuccess | Readonly<{
|
|
64
|
-
error: Readonly<{
|
|
65
|
-
code?: string;
|
|
66
|
-
message: string;
|
|
67
|
-
name: string;
|
|
68
|
-
}>;
|
|
69
|
-
ok: false;
|
|
70
|
-
}>;
|
|
71
|
-
export declare function requireBoundedPlaywrightChildOutput(stdout: string): void;
|
|
72
|
-
export declare function parsePlaywrightChildOutput(stdout: string): ParsedChildOutput;
|
|
73
|
-
export declare function requireMatchingPlaywrightChildRequest(output: Readonly<PlaywrightChildSuccess>, request: Readonly<PlaywrightChildRequest>): void;
|
|
74
|
-
export declare function requireBrowserExecutable(value: string, target: Readonly<PlatformTarget>): string;
|
|
75
|
-
export declare function requireSupportedPlaywrightHost(host: Readonly<PlaywrightHost>): void;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface EngineResolutionContext {
|
|
2
|
-
readonly productRoot: string;
|
|
3
|
-
readonly signal: AbortSignal;
|
|
4
|
-
}
|
|
5
|
-
export interface DirectPackageInstallation<Name extends string = string> {
|
|
6
|
-
readonly entrypoint: string;
|
|
7
|
-
readonly name: Name;
|
|
8
|
-
readonly root: string;
|
|
9
|
-
readonly version: string;
|
|
10
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { EngineCancellationSignal, EngineJsonObject } from "../../api/index.js";
|
|
2
|
-
import { type BuildFailure } from "esbuild";
|
|
3
|
-
export declare class K6ConsumerCompilationError extends Error {
|
|
4
|
-
constructor(error: BuildFailure);
|
|
5
|
-
}
|
|
6
|
-
export interface K6BundleRequest {
|
|
7
|
-
readonly configuration?: EngineJsonObject;
|
|
8
|
-
readonly entrypoints: Readonly<{
|
|
9
|
-
authoring: string;
|
|
10
|
-
config: string;
|
|
11
|
-
root: string;
|
|
12
|
-
rootPackageJson: string;
|
|
13
|
-
}>;
|
|
14
|
-
readonly nativeSummaryDirectory: string;
|
|
15
|
-
readonly outputFile: string;
|
|
16
|
-
readonly rootDirectory: string;
|
|
17
|
-
readonly signal: EngineCancellationSignal;
|
|
18
|
-
readonly sourceFile: string;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Builds a self-contained Sobek/k6 module. Testkit public imports resolve only
|
|
22
|
-
* to the selected root package entrypoints; native k6/xk6 modules remain
|
|
23
|
-
* external for Sobek to provide.
|
|
24
|
-
*/
|
|
25
|
-
export declare function bundleK6Suite({ configuration, entrypoints, outputFile, nativeSummaryDirectory, rootDirectory, signal, sourceFile, }: Readonly<K6BundleRequest>): Promise<void>;
|