@gfdelarue/testkit 0.4.5 → 0.6.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 +724 -495
- package/bin/testkit-windows-owner-arm64.exe +0 -0
- package/bin/testkit-windows-owner-x64.exe +0 -0
- package/dist/app/bugs/ci-report.js +2 -2
- package/dist/app/bugs/ci-summary.js +3 -3
- package/dist/app/bugs/draft.js +3 -3
- 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 +1 -1
- 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/campaigns/index.js +2 -2
- 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 -1
- 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 -1
- 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 -1
- package/dist/app/environments/task-databases.js +2 -0
- 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/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/reports/prepare.js +1 -1
- package/dist/app/run/caller-redaction.js +1 -0
- 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 -1
- 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/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/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/worker-loop.js +1 -1
- package/dist/app/status/model.js +1 -1
- package/dist/app/status/runs.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/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/guard/unsafe-entrypoint.js +1 -1
- 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/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/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/database-fixture-discovery.js +1 -0
- package/dist/config/authoring/http-methods.js +1 -1
- package/dist/config/authoring/index.js +1 -1
- package/dist/config/loader/config-loader.js +1 -1
- package/dist/config/loader/decode-discovery.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/file-metadata.js +1 -1
- package/dist/config/loader/groups.js +2 -1
- 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/admin.js +2 -2
- package/dist/database/bindings.js +1 -0
- package/dist/database/cleanup.js +1 -1
- package/dist/database/configured-steps.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/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/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/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-types.js +1 -1
- package/dist/engines/adapters/evidence-files.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.js +1 -1
- package/dist/engines/api/index.js +1 -1
- package/dist/engines/api/runtime-artifact.js +1 -1
- package/dist/engines/catalog.js +1 -1
- package/dist/engines/contracts/environment-values.js +1 -0
- 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.js +1 -1
- package/dist/engines/managed-module-resolution.js +8 -4
- 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 +17 -195
- 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/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 +3 -3
- 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/managed-test.js +1 -0
- package/dist/engines/playwright/runtime/runtime-input.js +29 -10
- package/dist/engines/runtime-input-file.js +1 -1
- package/dist/environment/lifecycle-controller.js +1 -1
- package/dist/environment/lifecycle.js +1 -1
- 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 -3
- package/dist/environment/template.js +1 -1
- package/dist/evidence/artifact-config.js +1 -1
- package/dist/evidence/artifacts.js +2 -2
- package/dist/evidence/bundles.js +1 -1
- package/dist/evidence/environment-record.js +1 -1
- package/dist/evidence/index.js +1 -1
- package/dist/evidence/maintenance.js +1 -0
- 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/known-keys.js +1 -0
- 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/host/platform.js +1 -1
- package/dist/process/host-process.js +1 -1
- package/dist/process/index.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.js +32 -32
- package/dist/process/readiness.js +1 -1
- package/dist/process/ready-deadline.js +1 -0
- package/dist/process/runs/ownership.js +1 -1
- package/dist/process/runs/stop.js +1 -1
- package/dist/process/service-processes.js +1 -1
- package/dist/process/windows-cli-owner.js +3 -3
- package/dist/process/windows-native.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/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/toolchains/index.js +3 -3
- 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 +422 -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 +46 -0
- package/dist/types/index.d.ts +21 -0
- package/dist/types/node-vitest-data.d.ts +191 -0
- package/dist/types/playwright.d.ts +130 -0
- package/dist/types/tooling-vitest.d.ts +13 -0
- package/dist/types/workspace.d.ts +633 -0
- package/docs/bug-records.md +35 -40
- package/docs/engines.md +259 -0
- package/docs/release-notes.md +2116 -0
- package/docs/test-types.md +37 -85
- package/package.json +22 -32
- package/testkit-config-schema.md +391 -260
- 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 -49
- 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/environments/config-driven.d.ts +0 -5
- package/dist/app/environments/routing.d.ts +0 -6
- package/dist/app/environments/supplied.d.ts +0 -3
- 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 -66
- package/dist/app/lint/policy.d.ts +0 -21
- package/dist/app/lint/rules/data.d.ts +0 -3
- package/dist/app/lint/rules/data.js +0 -1
- 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 -34
- package/dist/app/package-inspection.d.ts +0 -20
- package/dist/app/reports/files.d.ts +0 -13
- package/dist/app/reports/prepare.d.ts +0 -20
- package/dist/app/reports/publish.d.ts +0 -21
- 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 -65
- package/dist/app/run/engine-failure-stack.d.ts +0 -1
- package/dist/app/run/engine-orchestration.d.ts +0 -30
- package/dist/app/run/environment.d.ts +0 -33
- package/dist/app/run/failure-details.d.ts +0 -37
- package/dist/app/run/live-run.d.ts +0 -29
- package/dist/app/run/operation-progress.d.ts +0 -13
- package/dist/app/run/orchestrator.d.ts +0 -75
- package/dist/app/run/planning-types.d.ts +0 -68
- package/dist/app/run/planning.d.ts +0 -14
- 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 -56
- 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/locks.d.ts +0 -6
- package/dist/app/run/scheduler/observations.d.ts +0 -20
- package/dist/app/run/selection.d.ts +0 -9
- 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/task-leases.d.ts +0 -15
- package/dist/app/run/worker-loop.d.ts +0 -66
- 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 -13
- 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 -156
- 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/report/prepare.d.ts +0 -12
- package/dist/cli/commands/report/publish.d.ts +0 -13
- 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 -26
- 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 -372
- package/dist/config/authoring/preset-env.d.ts +0 -19
- package/dist/config/authoring/runtime.d.ts +0 -64
- package/dist/config/authoring/runtime.js +0 -1
- 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 -7
- 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 -53
- package/dist/config/loader/env.d.ts +0 -4
- package/dist/config/loader/execution-model.d.ts +0 -15
- package/dist/config/loader/file-metadata.d.ts +0 -19
- package/dist/config/loader/groups.d.ts +0 -33
- package/dist/config/loader/index.d.ts +0 -10
- package/dist/config/loader/load.d.ts +0 -89
- 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 -16
- 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 -15
- package/dist/config/loader/values.d.ts +0 -3
- 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 -8
- 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 -21
- 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 -25
- 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 -2
- 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 -41
- 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 -21
- 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 -23
- 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 -8
- 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/contract/index.js +0 -1
- package/dist/engines/node-vitest/runtime/data/http.d.ts +0 -4
- package/dist/engines/node-vitest/runtime/data/http.js +0 -1
- 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/runner.js +0 -1
- package/dist/engines/node-vitest/runtime/data/scenario.d.ts +0 -11
- package/dist/engines/node-vitest/runtime/data/types.d.ts +0 -384
- 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 -9
- 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 -60
- package/dist/environment/lifecycle.d.ts +0 -32
- package/dist/environment/maintenance.d.ts +0 -68
- package/dist/environment/planning-types.d.ts +0 -33
- package/dist/environment/ports.d.ts +0 -10
- package/dist/environment/ready-environment.d.ts +0 -16
- package/dist/environment/run-environment.d.ts +0 -39
- package/dist/environment/run-stopping.d.ts +0 -13
- package/dist/environment/runtime-contexts.d.ts +0 -37
- package/dist/environment/runtime-manager.d.ts +0 -87
- 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 -12
- package/dist/environment/services.d.ts +0 -56
- package/dist/environment/state.d.ts +0 -15
- package/dist/environment/status-runtime.d.ts +0 -53
- package/dist/environment/template.d.ts +0 -164
- package/dist/evidence/artifact-config.d.ts +0 -14
- package/dist/evidence/artifact-validation.d.ts +0 -4
- 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/environment-record.d.ts +0 -22
- 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 -21
- 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 -349
- 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 -25
- 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 -40
- package/dist/kernel/redaction.d.ts +0 -2
- package/dist/kernel/unknown-values.d.ts +0 -11
- 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 -11
- package/dist/process/files/paths.d.ts +0 -3
- 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 -10
- 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 -43
- 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/stoppable-settlement.d.ts +0 -26
- package/dist/process/url-redaction.d.ts +0 -1
- package/dist/process/windows-cli-owner.d.ts +0 -2
- package/dist/process/windows-native.d.ts +0 -12
- 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 -13
- 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/publish-directory.d.ts +0 -20
- 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 -34
- 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 -82
- 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 -682
- /package/dist/engines/{k6/runtime/runtime-globals.js → api/profiles.js} +0 -0
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
import type { HttpMethods, RawHttpMethods, BodyMethods } from "../../../config/authoring/http-methods.js";
|
|
2
|
-
import type { HttpRequestParams, RuntimeHeaders, RuntimeHttpClient, RuntimeMethod, RuntimeResponse, RuntimeResponseBody } from "../../../config/authoring/http-execution-contract.js";
|
|
3
|
-
import type { RuntimeFixtureManifestEntry } from "../../contracts/fixture-manifest.js";
|
|
4
|
-
export type { HttpRequestParams, RuntimeCookie, RuntimeEnv, RuntimeHeaderValue, RuntimeHeaders, RuntimeHttpClient, RuntimeHttpTrace, RuntimeHttpTraceResponse, RuntimeMethod, RuntimeOptions, RuntimeResponse, RuntimeResponseBody, RuntimeResponseBodyFor, RuntimeResponseType, } from "../../../config/authoring/http-execution-contract.js";
|
|
5
|
-
export type { RuntimeFixtureManifestEntry } from "../../contracts/fixture-manifest.js";
|
|
6
|
-
export type RuntimeTypeName = "array" | "bigint" | "boolean" | "function" | "null" | "number" | "object" | "string" | "symbol" | "undefined";
|
|
7
|
-
export interface RuntimeArtifactOptions {
|
|
8
|
-
contentType?: string;
|
|
9
|
-
kind?: string;
|
|
10
|
-
summary?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface RuntimeBinaryFixture {
|
|
13
|
-
__testkitFixture: true;
|
|
14
|
-
contentType: string;
|
|
15
|
-
data: ArrayBuffer;
|
|
16
|
-
filename: string;
|
|
17
|
-
path: string;
|
|
18
|
-
sha256: string;
|
|
19
|
-
sizeBytes: number;
|
|
20
|
-
}
|
|
21
|
-
export interface WaitForOptions {
|
|
22
|
-
description?: string;
|
|
23
|
-
intervalSeconds?: number;
|
|
24
|
-
}
|
|
25
|
-
export interface TestkitRuntimeContext {
|
|
26
|
-
active: boolean;
|
|
27
|
-
leaseId: string | null;
|
|
28
|
-
namespace: string;
|
|
29
|
-
rawEnv: Record<string, string | undefined>;
|
|
30
|
-
runtimeId: string | null;
|
|
31
|
-
}
|
|
32
|
-
export interface RuntimeDb {
|
|
33
|
-
exec(sql: string): unknown;
|
|
34
|
-
query<T = Record<string, unknown>>(sql: string): T[];
|
|
35
|
-
}
|
|
36
|
-
export interface RuntimeDalContext {
|
|
37
|
-
db: RuntimeDb;
|
|
38
|
-
truncate(...tables: string[]): void;
|
|
39
|
-
}
|
|
40
|
-
export interface RuntimeFixtureLocation {
|
|
41
|
-
column: number;
|
|
42
|
-
line: number;
|
|
43
|
-
path: string;
|
|
44
|
-
}
|
|
45
|
-
export interface RuntimeFixtureReference {
|
|
46
|
-
key: string;
|
|
47
|
-
kind: string;
|
|
48
|
-
}
|
|
49
|
-
export interface RuntimeFixtureRecord {
|
|
50
|
-
dependencies: RuntimeFixtureReference[];
|
|
51
|
-
key: string;
|
|
52
|
-
kind: string;
|
|
53
|
-
location?: RuntimeFixtureLocation;
|
|
54
|
-
order: number;
|
|
55
|
-
reuseCount: number;
|
|
56
|
-
signature: unknown;
|
|
57
|
-
}
|
|
58
|
-
export interface RuntimeFixtureStringOptions {
|
|
59
|
-
fallback?: string;
|
|
60
|
-
maxLength?: number;
|
|
61
|
-
prefix?: string;
|
|
62
|
-
suffixLength?: number;
|
|
63
|
-
}
|
|
64
|
-
export interface RuntimeFixtureEmailOptions {
|
|
65
|
-
domain?: string;
|
|
66
|
-
fallback?: string;
|
|
67
|
-
suffixLength?: number;
|
|
68
|
-
}
|
|
69
|
-
export interface RuntimeFixtureSlugOptions {
|
|
70
|
-
fallback?: string;
|
|
71
|
-
maxLength?: number;
|
|
72
|
-
}
|
|
73
|
-
export interface RuntimeFixtureValueHelpers {
|
|
74
|
-
email(label: string, options?: RuntimeFixtureEmailOptions): string;
|
|
75
|
-
slug(label: string, options?: RuntimeFixtureSlugOptions): string;
|
|
76
|
-
string(label: string, options?: RuntimeFixtureStringOptions): string;
|
|
77
|
-
token(label: string, options?: RuntimeFixtureStringOptions): string;
|
|
78
|
-
uuid(label: string): string;
|
|
79
|
-
}
|
|
80
|
-
export interface RuntimeFixtureScope {
|
|
81
|
-
email(label: string, options?: RuntimeFixtureEmailOptions): string;
|
|
82
|
-
id(label: string): string;
|
|
83
|
-
namespace: string;
|
|
84
|
-
records(): RuntimeFixtureRecord[];
|
|
85
|
-
seed<TResult>(kind: string, key: string, signature: unknown, create: () => TResult): TResult;
|
|
86
|
-
slug(label: string, options?: RuntimeFixtureSlugOptions): string;
|
|
87
|
-
string(label: string, options?: RuntimeFixtureStringOptions): string;
|
|
88
|
-
token(label: string, options?: RuntimeFixtureStringOptions): string;
|
|
89
|
-
uuid(label: string): string;
|
|
90
|
-
values: RuntimeFixtureValueHelpers;
|
|
91
|
-
}
|
|
92
|
-
export interface DalFixtureDefinitionContext {
|
|
93
|
-
dal: RuntimeDalContext;
|
|
94
|
-
db: RuntimeDb;
|
|
95
|
-
fixtureScope: RuntimeFixtureScope;
|
|
96
|
-
seed: RuntimeFixtureScope["seed"];
|
|
97
|
-
values: RuntimeFixtureValueHelpers;
|
|
98
|
-
}
|
|
99
|
-
export interface DalFixtureDefinition<TFixtures extends object = Record<string, unknown>> {
|
|
100
|
-
create(context: DalFixtureDefinitionContext): TFixtures;
|
|
101
|
-
}
|
|
102
|
-
export interface RuntimeActorRecord<TSession = Record<string, unknown>> {
|
|
103
|
-
actorIndex: number;
|
|
104
|
-
actorName: string;
|
|
105
|
-
email?: string;
|
|
106
|
-
name?: string;
|
|
107
|
-
organizationKey?: string;
|
|
108
|
-
organizationName?: string;
|
|
109
|
-
session: TSession | null;
|
|
110
|
-
}
|
|
111
|
-
export type RuntimeActor<TSession extends object = Record<string, unknown>> = RuntimeActorRecord<TSession> & TSession;
|
|
112
|
-
export interface AuthSessionBundle<TSession extends object = Record<string, unknown>> {
|
|
113
|
-
actors: Record<string, RuntimeActor<TSession> | undefined>;
|
|
114
|
-
primaryActor: string | null;
|
|
115
|
-
}
|
|
116
|
-
export interface HttpHeaderBuildContext<TSession extends object = Record<string, unknown>> {
|
|
117
|
-
actor: RuntimeActor<TSession> | null;
|
|
118
|
-
actorName: string | null;
|
|
119
|
-
sessionBundle: AuthSessionBundle<TSession> | null;
|
|
120
|
-
}
|
|
121
|
-
export interface HttpClientConfig<TSession extends object = Record<string, unknown>> {
|
|
122
|
-
baseUrl: string;
|
|
123
|
-
defaultActor?: string | null;
|
|
124
|
-
defaultHeaders?: RuntimeHeaders;
|
|
125
|
-
getHeaders?: (context: HttpHeaderBuildContext<TSession>) => RuntimeHeaders | undefined;
|
|
126
|
-
getRawHeaders?: (context: HttpHeaderBuildContext<TSession>) => RuntimeHeaders | undefined;
|
|
127
|
-
sessionBundle?: AuthSessionBundle<TSession> | null;
|
|
128
|
-
}
|
|
129
|
-
export interface MultipartFileInput {
|
|
130
|
-
contentType?: string;
|
|
131
|
-
data?: string | ArrayBuffer;
|
|
132
|
-
field: string;
|
|
133
|
-
file?: RuntimeBinaryFixture;
|
|
134
|
-
fixture?: string | RuntimeBinaryFixture;
|
|
135
|
-
filename?: string;
|
|
136
|
-
}
|
|
137
|
-
export interface MultipartPayload {
|
|
138
|
-
fields?: Record<string, string>;
|
|
139
|
-
files?: MultipartFileInput[];
|
|
140
|
-
}
|
|
141
|
-
export type MultipartRequestClient<TBody extends RuntimeResponseBody = string> = BodyMethods<MultipartPayload, RuntimeResponse<TBody>, [
|
|
142
|
-
extraHeaders?: RuntimeHeaders
|
|
143
|
-
]>;
|
|
144
|
-
export interface RawRequestClient<TBody extends RuntimeResponseBody = string> extends HttpMethods<RuntimeResponse<TBody>, [
|
|
145
|
-
extraHeaders?: RuntimeHeaders,
|
|
146
|
-
options?: HttpRequestParams
|
|
147
|
-
]> {
|
|
148
|
-
(method: RuntimeMethod, path: string, body?: unknown, extraHeaders?: RuntimeHeaders, options?: HttpRequestParams): RuntimeResponse<TBody>;
|
|
149
|
-
as(actorName: string): RawRequestClient<TBody>;
|
|
150
|
-
headers: (extraHeaders?: RuntimeHeaders) => RuntimeHeaders;
|
|
151
|
-
multipart: MultipartRequestClient<TBody>;
|
|
152
|
-
request: (method: RuntimeMethod, path: string, body?: unknown, extraHeaders?: RuntimeHeaders, options?: HttpRequestParams) => RuntimeResponse<TBody>;
|
|
153
|
-
}
|
|
154
|
-
export interface ActorRequestClient<TBody extends RuntimeResponseBody = string> extends HttpMethods<RuntimeResponse<TBody>, [extraHeaders?: RuntimeHeaders]>, RawHttpMethods<RuntimeResponse<TBody>, [extraHeaders?: RuntimeHeaders, options?: HttpRequestParams]> {
|
|
155
|
-
headers: (extraHeaders?: RuntimeHeaders) => RuntimeHeaders;
|
|
156
|
-
multipart: MultipartRequestClient<TBody>;
|
|
157
|
-
raw(method: RuntimeMethod, path: string, body?: unknown, extraHeaders?: RuntimeHeaders, options?: HttpRequestParams): RuntimeResponse<TBody>;
|
|
158
|
-
rawHeaders(extraHeaders?: RuntimeHeaders): RuntimeHeaders;
|
|
159
|
-
rawMultipart: MultipartRequestClient<TBody>;
|
|
160
|
-
rawReq: RawRequestClient<TBody>;
|
|
161
|
-
request: (method: RuntimeMethod, path: string, body?: unknown, extraHeaders?: RuntimeHeaders) => RuntimeResponse<TBody>;
|
|
162
|
-
}
|
|
163
|
-
export interface HttpClient<TSetup = unknown, TBody extends RuntimeResponseBody = string> extends HttpMethods<RuntimeResponse<TBody>, [extraHeaders?: RuntimeHeaders]>, RawHttpMethods<RuntimeResponse<TBody>, [extraHeaders?: RuntimeHeaders, options?: HttpRequestParams]> {
|
|
164
|
-
(method: RuntimeMethod, path: string, setupData?: TSetup | null, body?: unknown, extraHeaders?: RuntimeHeaders): RuntimeResponse<TBody>;
|
|
165
|
-
as(actorName: string): ActorRequestClient<TBody>;
|
|
166
|
-
headers: (extraHeaders?: RuntimeHeaders) => RuntimeHeaders;
|
|
167
|
-
multipart: MultipartRequestClient<TBody>;
|
|
168
|
-
raw: RawRequestClient<TBody>;
|
|
169
|
-
rawHttp: RuntimeHttpClient;
|
|
170
|
-
rawHeaders(actorName?: string | null, extraHeaders?: RuntimeHeaders): RuntimeHeaders;
|
|
171
|
-
rawMultipart: MultipartRequestClient<TBody>;
|
|
172
|
-
request: (method: RuntimeMethod, path: string, body?: unknown, extraHeaders?: RuntimeHeaders) => RuntimeResponse<TBody>;
|
|
173
|
-
}
|
|
174
|
-
export type RuntimePredicate<T> = (value: T) => boolean;
|
|
175
|
-
export type RuntimeActualValue = bigint | boolean | null | number | object | string | symbol;
|
|
176
|
-
export type RuntimeActualResolver<T> = ((value: T) => unknown) | RuntimeActualValue;
|
|
177
|
-
export type RuntimeConditionActualResolver = (() => unknown) | RuntimeActualValue;
|
|
178
|
-
export interface RuntimeAssertionOptions<T> {
|
|
179
|
-
actual?: RuntimeActualResolver<T>;
|
|
180
|
-
describeFailure?: ((value: T) => string) | string;
|
|
181
|
-
expected?: unknown;
|
|
182
|
-
kind?: string;
|
|
183
|
-
}
|
|
184
|
-
export interface RuntimeConditionAssertionOptions {
|
|
185
|
-
actual?: RuntimeConditionActualResolver;
|
|
186
|
-
describeFailure?: (() => string) | string;
|
|
187
|
-
expected?: unknown;
|
|
188
|
-
kind?: string;
|
|
189
|
-
}
|
|
190
|
-
export interface RuntimeFailureLocation {
|
|
191
|
-
column: number;
|
|
192
|
-
line: number;
|
|
193
|
-
path: string;
|
|
194
|
-
}
|
|
195
|
-
export interface RuntimeFailureDetail {
|
|
196
|
-
actual?: unknown;
|
|
197
|
-
checkName?: string;
|
|
198
|
-
count: number;
|
|
199
|
-
expected?: unknown;
|
|
200
|
-
groupPath?: string[];
|
|
201
|
-
key: string;
|
|
202
|
-
kind: string;
|
|
203
|
-
labelled?: boolean;
|
|
204
|
-
location?: Record<string, unknown>;
|
|
205
|
-
message?: string;
|
|
206
|
-
phase?: string;
|
|
207
|
-
request?: Record<string, unknown>;
|
|
208
|
-
response?: Record<string, unknown>;
|
|
209
|
-
stack?: string;
|
|
210
|
-
title: string;
|
|
211
|
-
traceId?: string;
|
|
212
|
-
}
|
|
213
|
-
export interface RuntimeFailureDetailInput {
|
|
214
|
-
actual?: unknown;
|
|
215
|
-
checkName?: string;
|
|
216
|
-
count?: number;
|
|
217
|
-
expected?: unknown;
|
|
218
|
-
key: string;
|
|
219
|
-
kind: string;
|
|
220
|
-
labelled?: boolean;
|
|
221
|
-
location?: object | null;
|
|
222
|
-
message?: string;
|
|
223
|
-
phase?: string;
|
|
224
|
-
request?: object | null;
|
|
225
|
-
response?: object | null;
|
|
226
|
-
stack?: string;
|
|
227
|
-
title: string;
|
|
228
|
-
traceId?: string;
|
|
229
|
-
}
|
|
230
|
-
export interface RuntimeFixtureEntry extends RuntimeFixtureManifestEntry {
|
|
231
|
-
data: ArrayBuffer;
|
|
232
|
-
}
|
|
233
|
-
export interface RuntimeFixtureManifest {
|
|
234
|
-
entries: RuntimeFixtureManifestEntry[];
|
|
235
|
-
}
|
|
236
|
-
export interface SafeJsonSuccess<T> {
|
|
237
|
-
ok: true;
|
|
238
|
-
value: T;
|
|
239
|
-
}
|
|
240
|
-
export interface SafeJsonFailure {
|
|
241
|
-
error: string;
|
|
242
|
-
ok: false;
|
|
243
|
-
}
|
|
244
|
-
export type SafeJsonResult<T> = SafeJsonSuccess<T> | SafeJsonFailure;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Declaration producer for the native xk6-sql PostgreSQL driver module.
|
|
3
|
-
* Consumer typechecks map the native module specifier to the generated
|
|
4
|
-
* declaration; k6 itself supplies the runtime symbol.
|
|
5
|
-
*/
|
|
6
|
-
declare const postgresDriver: symbol;
|
|
7
|
-
export default postgresDriver;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=Symbol.for("elench.testkit.k6.xk6-sql-driver-postgres");export default e;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare function normalizeExistingFileRecord(value: Readonly<Record<string, string>>, label: string): Readonly<Record<string, string>>;
|
|
2
|
-
export declare function normalizeAbsoluteFiles(values: readonly string[], label: string, mustExist: boolean): readonly string[];
|
|
3
|
-
export declare function normalizeDirectories(values: readonly string[], label: string): readonly string[];
|
|
4
|
-
export declare function normalizeStrings(values: readonly string[]): readonly string[];
|
|
5
|
-
export declare function requireDirectTargetsWithinRoots(direct: Readonly<Record<string, string>>, roots: readonly string[]): void;
|
|
6
|
-
export declare function requireExistingFile(value: string, label: string): string;
|
|
7
|
-
export declare function readRecord(file: string): Record<string, unknown>;
|
|
8
|
-
export declare function isErrorCode(error: unknown, code: string): boolean;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export interface ManagedNodeModuleResolutionPolicy {
|
|
2
|
-
readonly consumerRoots: readonly string[];
|
|
3
|
-
readonly direct: Readonly<Record<string, string>>;
|
|
4
|
-
readonly directBridgeRoots: readonly string[];
|
|
5
|
-
readonly engineLabel: string;
|
|
6
|
-
readonly forbiddenConsumerPackagePrefixes: readonly string[];
|
|
7
|
-
readonly packageAnchors: Readonly<Record<string, string>>;
|
|
8
|
-
readonly reservedPackageNames: readonly string[];
|
|
9
|
-
readonly stateSymbol: string;
|
|
10
|
-
readonly trustedImporterFiles: readonly string[];
|
|
11
|
-
readonly trustedInternalEntrypoints: readonly string[];
|
|
12
|
-
readonly verifiedParentlessPackageFiles: Readonly<Record<string, readonly string[]>>;
|
|
13
|
-
readonly verifiedProcessEntrypoints: readonly string[];
|
|
14
|
-
}
|
|
15
|
-
type RuntimeExportTargets = Readonly<Record<"default" | "import" | "require", string | null>>;
|
|
16
|
-
export interface InspectedManagedNodeModuleResolutionPolicy extends Omit<ManagedNodeModuleResolutionPolicy, "packageAnchors" | "verifiedParentlessPackageFiles"> {
|
|
17
|
-
readonly dependencyRoots: readonly string[];
|
|
18
|
-
readonly managedImporterRoots: readonly string[];
|
|
19
|
-
readonly packageExports: Readonly<Record<string, RuntimeExportTargets>>;
|
|
20
|
-
readonly packageRoots: Readonly<Record<string, string>>;
|
|
21
|
-
readonly trustedInternalRoots: readonly string[];
|
|
22
|
-
readonly verifiedParentlessPackageFiles: readonly string[];
|
|
23
|
-
}
|
|
24
|
-
export declare function inspectManagedNodeModuleResolutionPolicy(policy: Readonly<ManagedNodeModuleResolutionPolicy>): InspectedManagedNodeModuleResolutionPolicy;
|
|
25
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type ManagedNodeModuleResolutionPolicy } from "./managed-module-resolution-policy.js";
|
|
2
|
-
export type { ManagedNodeModuleResolutionPolicy } from "./managed-module-resolution-policy.js";
|
|
3
|
-
export type ManagedNodeModuleResolution = ReturnType<typeof createManagedNodeModuleResolution>;
|
|
4
|
-
/**
|
|
5
|
-
* Inspects one managed installation and produces every resolution view
|
|
6
|
-
* from that single decision: Node hooks, Vite aliases, and trusted roots.
|
|
7
|
-
*/
|
|
8
|
-
export declare function createManagedNodeModuleResolution(policy: Readonly<ManagedNodeModuleResolutionPolicy>): Readonly<{
|
|
9
|
-
aliases: Readonly<Record<string, string>>;
|
|
10
|
-
bootstrapSource: string;
|
|
11
|
-
dependencyRoots: readonly string[];
|
|
12
|
-
}>;
|
|
13
|
-
export declare function managedNodeModuleResolutionBootstrapSource(policy: Readonly<ManagedNodeModuleResolutionPolicy>): string;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { type EngineExecutionRequest, type EngineExecutionResult } from "./api/index.js";
|
|
2
|
-
import { type EngineId } from "../domain/identifiers.js";
|
|
3
|
-
import type { InternalEngineInstallationCatalog, InternalEngineRegistration } from "./installation-catalog.js";
|
|
4
|
-
export type EngineManagerExecutionRequest = EngineExecutionRequest;
|
|
5
|
-
export interface EngineManagerOptions {
|
|
6
|
-
readonly catalog: InternalEngineInstallationCatalog;
|
|
7
|
-
readonly productRoot: string;
|
|
8
|
-
}
|
|
9
|
-
export interface ResolvedEngineExecutionSession<Id extends EngineId = EngineId> {
|
|
10
|
-
readonly engineId: Id;
|
|
11
|
-
execute(request: Readonly<EngineExecutionRequest<Id>>): Promise<EngineExecutionResult>;
|
|
12
|
-
}
|
|
13
|
-
export declare class EngineExecutorLoadError extends Error {
|
|
14
|
-
readonly code = "TESTKIT_ENGINE_EXECUTOR_LOAD_FAILED";
|
|
15
|
-
readonly engineId: EngineId;
|
|
16
|
-
constructor(engineId: EngineId, options: ErrorOptions);
|
|
17
|
-
}
|
|
18
|
-
export declare class EngineManager {
|
|
19
|
-
private readonly catalog;
|
|
20
|
-
private readonly productRoot;
|
|
21
|
-
private readonly installations;
|
|
22
|
-
constructor(options: Readonly<EngineManagerOptions>);
|
|
23
|
-
resolve<Id extends EngineId>(engineId: Id): InternalEngineRegistration<Id>;
|
|
24
|
-
withEngine<Id extends EngineId, Result>(engineId: Id, signal: AbortSignal, operation: (session: ResolvedEngineExecutionSession<Id>) => Result | PromiseLike<Result>): Promise<Result>;
|
|
25
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { type ProcessClassification } from "../../adapters/execution.js";
|
|
2
|
-
import { type EngineExecutionRequest, type EngineExecutionResult, type EngineFailureEvidence, type EngineInvocationScope } from "../../api/index.js";
|
|
3
|
-
import { type ManagedProcessResult } from "../../../process/index.js";
|
|
4
|
-
import { type NodeVitestInstallation } from "../../installations/node-vitest.js";
|
|
5
|
-
import { type CollectedNodeVitestEvidence } from "./evidence.js";
|
|
6
|
-
import { writeOwnedNodeVitestRuntimeInput, type NodeVitestRuntimeInputDocument } from "../runtime/runtime-input.js";
|
|
7
|
-
import { writeNodeVitestWorkspace } from "./workspace.js";
|
|
8
|
-
export interface NodeVitestExecutorDependencies {
|
|
9
|
-
removeOwnedDirectory(directory: string): Promise<void>;
|
|
10
|
-
writeWorkspace(request: Parameters<typeof writeNodeVitestWorkspace>[0]): ReturnType<typeof writeNodeVitestWorkspace>;
|
|
11
|
-
writeRuntimeInput(taskDirectory: string, document: NodeVitestRuntimeInputDocument): ReturnType<typeof writeOwnedNodeVitestRuntimeInput>;
|
|
12
|
-
}
|
|
13
|
-
export declare const nodeVitestExecutorDependencies: NodeVitestExecutorDependencies;
|
|
14
|
-
export declare function executeNodeVitestEngine(request: Readonly<EngineExecutionRequest<"node-vitest">>, installation: Readonly<NodeVitestInstallation>, scope: EngineInvocationScope, dependencies?: NodeVitestExecutorDependencies): Promise<EngineExecutionResult>;
|
|
15
|
-
export declare function classifyNodeVitestProcessResult(result: ManagedProcessResult, collected: CollectedNodeVitestEvidence, timeoutMs: number, deadlineExceeded: boolean): ProcessClassification;
|
|
16
|
-
export declare function nodeVitestEvidenceCollectionFailure(result: ManagedProcessResult, error: unknown): EngineFailureEvidence;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare const managedTypeScriptFile: string;
|
|
2
|
-
export interface ConsumerTypeScriptPathsPlugin {
|
|
3
|
-
readonly enforce: "pre";
|
|
4
|
-
readonly name: string;
|
|
5
|
-
resolveId(specifier: string, importer: string | undefined): string | null;
|
|
6
|
-
}
|
|
7
|
-
export interface NodeVitestConsumerResolutionPolicy {
|
|
8
|
-
readonly aliases: Readonly<Record<string, string>>;
|
|
9
|
-
readonly dependencyRoots: readonly string[];
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Resolves only paths declared by the explicitly supplied consumer tsconfig.
|
|
13
|
-
* The engine never searches for a project configuration on its own.
|
|
14
|
-
*/
|
|
15
|
-
export declare function createConsumerTypeScriptPathsPlugin(tsconfigFile: string, policy: Readonly<NodeVitestConsumerResolutionPolicy>): ConsumerTypeScriptPathsPlugin | null;
|
|
16
|
-
export declare function assertNodeVitestConsumerResolution(specifier: string, resolvedId: string, importer: string | undefined, policy: Readonly<NodeVitestConsumerResolutionPolicy>): string;
|
|
17
|
-
export declare function isNodeVitestManagedDependencyImporter(value: string | undefined, roots: readonly string[]): boolean;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{isPathWithin as y}from"../../../process/files/paths.js";import u from"node:fs";import{createRequire as h}from"node:module";import i from"node:path";import{fileURLToPath as l}from"node:url";import{NODE_VITEST_PACKAGE_REQUIREMENTS as N}from"../../installations/package-requirements.js";export const managedTypeScriptFile=l(import.meta.resolve("typescript"));const k=/^@gfdelarue\/testkit(?:\/|$)/u;export function createConsumerTypeScriptPathsPlugin(t,e){const r=h(import.meta.url)(managedTypeScriptFile),n=S(t,r),o=Object.keys(n.paths??{});return o.length===0?null:{enforce:"pre",name:"testkit-node-vitest-consumer-typescript-paths",resolveId(a,s){if(s===void 0||isNodeVitestManagedDependencyImporter(s,e.dependencyRoots)||k.test(a)||!o.some(g=>w(a,g)))return null;const c=x(s);if(c===null)return null;const f=r.resolveModuleName(a,c,n,r.sys).resolvedModule?.resolvedFileName;return f===void 0?null:assertNodeVitestConsumerResolution(a,f,s,e)}}}export function assertNodeVitestConsumerResolution(t,e,r,n){if(isNodeVitestManagedDependencyImporter(r,n.dependencyRoots))return e;const o=d(e);if(o===null)return e;const a=v(o);if(a===null)return e;if(a.privatePackage)throw new Error(`Node/Vitest consumers may not resolve ${JSON.stringify(t)} into private Vitest package ${a.packageName}`);const s=n.aliases[t];if(Object.hasOwn(n.aliases,t)&&m(o,s)||Object.values(n.aliases).some(c=>m(o,c)))return e;throw new Error(`Node/Vitest consumers may not resolve ${JSON.stringify(t)} into managed direct package ${a.packageName}; import an exact public ${JSON.stringify(a.packageName)} export instead`)}function v(t){const e=[t];try{const r=u.realpathSync(t);r!==t&&e.push(r)}catch{}for(const r of e){let n=i.dirname(r);for(;;){const o=i.join(n,"package.json");if(u.existsSync(o)){const s=E(o);if(s!==null){if(s.startsWith("@vitest/"))return{packageName:s,privatePackage:!0};if(N.some(({packageName:c})=>c===s))return{packageName:s,privatePackage:!1}}}const a=i.dirname(n);if(a===n)break;n=a}}return null}function E(t){let e;try{e=JSON.parse(u.readFileSync(t,"utf8"))}catch(n){throw new Error(`Cannot inspect package boundary at ${t}`,{cause:n})}if(typeof e!="object"||e===null||Array.isArray(e))return null;const r=Reflect.get(e,"name");return typeof r=="string"?r:null}export function isNodeVitestManagedDependencyImporter(t,e){if(t===void 0)return!1;const r=d(t);return r===null?!1:e.some(n=>y(n,r))}function d(t){const e=t.split(/[?#]/u,1)[0];if(e.startsWith("\0"))return null;if(e.startsWith("file:"))return l(e);const r=e.startsWith("/@fs/")?e.slice(4):e;return i.isAbsolute(r)?i.resolve(r):null}function m(t,e){try{return u.realpathSync(t)===u.realpathSync(e)}catch{return i.resolve(t)===i.resolve(e)}}function S(t,e){const r=i.resolve(t).replaceAll(i.sep,"/"),n=i.posix.dirname(r),o=e.readConfigFile(r,c=>e.sys.readFile(c));if(o.error!==void 0)throw new Error(p(r,[o.error],e));const a=e.parseJsonConfigFileContent(o.config,e.sys,n,{},r),s=a.errors.filter(c=>c.category===e.DiagnosticCategory.Error&&c.code!==18003);if(s.length>0)throw new Error(p(r,s,e));return a.options}function p(t,e,r){const n=r.formatDiagnostics(e,{getCanonicalFileName:o=>o,getCurrentDirectory:()=>i.posix.dirname(t),getNewLine:()=>`
|
|
2
|
-
`});return`Cannot load explicit consumer TypeScript paths from ${t}:
|
|
3
|
-
${n}`.trim()}function w(t,e){const r=e.indexOf("*");if(r===-1)return t===e;const n=e.slice(0,r),o=e.slice(r+1);return t.startsWith(n)&&t.endsWith(o)}function x(t){const e=t.split(/[?#]/u,1)[0];return e.startsWith("file:")?l(e):i.isAbsolute(e)?e:null}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { EngineEvidence, EngineJsonObject } from "../../api/index.js";
|
|
2
|
-
import { type EvidenceFileAccess } from "../../adapters/evidence-files.js";
|
|
3
|
-
import { type NativeReportIdentity } from "../../adapters/native-report.js";
|
|
4
|
-
type NodeVitestProfileId = "node-vitest-contract" | "node-vitest-data";
|
|
5
|
-
export declare const NODE_VITEST_DATA_ARTIFACT_MAX_BYTES: number;
|
|
6
|
-
export declare const NODE_VITEST_DATA_EVIDENCE_MAX_BYTES: number;
|
|
7
|
-
export interface NodeVitestEvidenceRequest {
|
|
8
|
-
readonly identity: NativeReportIdentity;
|
|
9
|
-
readonly artifactDirectory: string;
|
|
10
|
-
readonly dataManifestFile: string;
|
|
11
|
-
readonly profileId: NodeVitestProfileId;
|
|
12
|
-
readonly reportFile: string;
|
|
13
|
-
readonly rootDirectory: string;
|
|
14
|
-
readonly stderr: string;
|
|
15
|
-
readonly stdout: string;
|
|
16
|
-
}
|
|
17
|
-
export interface CollectedNodeVitestEvidence {
|
|
18
|
-
readonly dataEvidenceError: Error | null;
|
|
19
|
-
readonly evidence: EngineEvidence;
|
|
20
|
-
readonly reportError: Error | null;
|
|
21
|
-
readonly reportFailureMessage: string | null;
|
|
22
|
-
readonly reportSummary: NodeVitestReportSummary | null;
|
|
23
|
-
}
|
|
24
|
-
export interface NodeVitestReportSummary extends EngineJsonObject {
|
|
25
|
-
readonly numFailedTests: number;
|
|
26
|
-
readonly numPassedTests: number;
|
|
27
|
-
readonly numPendingTests: number;
|
|
28
|
-
readonly numTodoTests: number;
|
|
29
|
-
readonly numTotalTests: number;
|
|
30
|
-
readonly success: boolean;
|
|
31
|
-
}
|
|
32
|
-
export declare function collectNodeVitestEvidence(request: Readonly<NodeVitestEvidenceRequest>, fileAccess?: EvidenceFileAccess): Promise<CollectedNodeVitestEvidence>;
|
|
33
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { executeNodeVitestEngine } from "./adapter.js";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Reporter } from "vitest/reporters";
|
|
2
|
-
import { type NativeReportOptions } from "../../adapters/native-report.js";
|
|
3
|
-
export default class TestkitVitestReporter implements Reporter {
|
|
4
|
-
private readonly options;
|
|
5
|
-
constructor(options: NativeReportOptions);
|
|
6
|
-
onTestRunEnd(modules: Parameters<NonNullable<Reporter["onTestRunEnd"]>>[0], unhandledErrors: Parameters<NonNullable<Reporter["onTestRunEnd"]>>[1]): Promise<void>;
|
|
7
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type ManagedNodeModuleResolution } from "../../managed-module-resolution.js";
|
|
2
|
-
import type { NodeVitestAuthoringEntrypoints, NodeVitestInstallation } from "../../installations/node-vitest.js";
|
|
3
|
-
export interface NodeVitestResolutionEntrypoints extends NodeVitestAuthoringEntrypoints {
|
|
4
|
-
readonly cli: string;
|
|
5
|
-
readonly packages: NodeVitestInstallation["packages"];
|
|
6
|
-
}
|
|
7
|
-
export interface NodeVitestResolutionBoundary {
|
|
8
|
-
readonly consumerRoots: readonly string[];
|
|
9
|
-
readonly trustedImporterFiles: readonly string[];
|
|
10
|
-
readonly trustedInternalEntrypoints: readonly string[];
|
|
11
|
-
}
|
|
12
|
-
export declare function resolveNodeVitestManagedRuntimeResolution(entrypoints: Readonly<NodeVitestResolutionEntrypoints>, boundary: Readonly<NodeVitestResolutionBoundary>): ManagedNodeModuleResolution;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import c from"node:path";import{createManagedNodeModuleResolution as d}from"../../managed-module-resolution.js";import{NODE_VITEST_PACKAGE_REQUIREMENTS as i,NODE_VITEST_PRIVATE_PACKAGE_PREFIXES as g}from"../../installations/package-requirements.js";export function resolveNodeVitestManagedRuntimeResolution(t,a){const o=i.filter(e=>e.authoringResolution==="exact-entrypoint"),n=Object.fromEntries(i.filter(e=>e.authoringResolution==="package-exports").map(e=>[e.packageName,t.packages[e.packageName].entrypoint])),r=o.map(e=>t.packages[e.packageName].root),s=d({consumerRoots:a.consumerRoots,direct:{"@gfdelarue/testkit":t.root,"@gfdelarue/testkit/config":t.config,"@gfdelarue/testkit/node-vitest/contract":t.contract,"@gfdelarue/testkit/node-vitest/data":t.data,"@gfdelarue/testkit/package.json":t.rootPackageJson,...Object.fromEntries(o.map(e=>[e.packageName,t.packages[e.packageName].entrypoint]))},directBridgeRoots:[c.dirname(t.root),...r],engineLabel:"Node/Vitest",forbiddenConsumerPackagePrefixes:g,packageAnchors:n,reservedPackageNames:["@gfdelarue/testkit",...o.map(e=>e.packageName)],stateSymbol:"@gfdelarue/testkit/node-vitest/resolution-hooks/v1",trustedImporterFiles:a.trustedImporterFiles,trustedInternalEntrypoints:a.trustedInternalEntrypoints,verifiedParentlessPackageFiles:{vitest:["dist/workers/forks.js","suppress-warnings.cjs"]},verifiedProcessEntrypoints:[t.cli]});return Object.freeze({...s,dependencyRoots:Object.freeze([...new Set([...s.dependencyRoots,c.dirname(t.root),...r])])})}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type InstallNodeVitestRuntimeInputRequest } from "../runtime/runtime-input.js";
|
|
2
|
-
import { type NodeVitestResolutionEntrypoints } from "./resolution.js";
|
|
3
|
-
import { type NativeReportOptions } from "../../adapters/native-report.js";
|
|
4
|
-
export interface WriteNodeVitestWorkspaceRequest {
|
|
5
|
-
readonly report: NativeReportOptions;
|
|
6
|
-
readonly configFile: string | null;
|
|
7
|
-
readonly entrypoints: NodeVitestResolutionEntrypoints;
|
|
8
|
-
readonly inputBootstrapFile: string;
|
|
9
|
-
readonly resolutionBootstrapFile: string;
|
|
10
|
-
readonly rootDirectory: string;
|
|
11
|
-
readonly runtimeInput: InstallNodeVitestRuntimeInputRequest;
|
|
12
|
-
readonly setupFile: string;
|
|
13
|
-
readonly sourceFile: string;
|
|
14
|
-
readonly timeoutMs: number;
|
|
15
|
-
readonly tsconfigFile: string | null;
|
|
16
|
-
readonly vitestConfigFile: string;
|
|
17
|
-
}
|
|
18
|
-
export declare function writeNodeVitestWorkspace(request: Readonly<WriteNodeVitestWorkspaceRequest>): Promise<void>;
|
|
19
|
-
export declare function toVitestIncludePattern(file: string): string;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { type HttpMethods } from "../../../../config/authoring/http-methods.js";
|
|
2
|
-
import { expect } from "vitest";
|
|
3
|
-
export { expect };
|
|
4
|
-
type UnknownRecord = Record<string, unknown>;
|
|
5
|
-
export interface ContractScenarioOptions {
|
|
6
|
-
timeout?: number;
|
|
7
|
-
timeoutMs?: number;
|
|
8
|
-
}
|
|
9
|
-
export interface ContractHttpRequestOptions extends UnknownRecord {
|
|
10
|
-
contentTypeJson?: boolean;
|
|
11
|
-
signal?: AbortSignal;
|
|
12
|
-
}
|
|
13
|
-
export interface ContractHttpResponse {
|
|
14
|
-
body: string;
|
|
15
|
-
headers: Record<string, string>;
|
|
16
|
-
json(): unknown;
|
|
17
|
-
method: string;
|
|
18
|
-
path: string;
|
|
19
|
-
status: number;
|
|
20
|
-
url: string;
|
|
21
|
-
}
|
|
22
|
-
export interface ContractHttpClientOptions {
|
|
23
|
-
baseUrl?: string;
|
|
24
|
-
defaultHeaders?: Record<string, string>;
|
|
25
|
-
}
|
|
26
|
-
export interface ContractHttpClient extends HttpMethods<Promise<ContractHttpResponse>, [
|
|
27
|
-
headers?: Record<string, string>,
|
|
28
|
-
options?: ContractHttpRequestOptions
|
|
29
|
-
]> {
|
|
30
|
-
baseUrl: string;
|
|
31
|
-
request(method: string, path: string, body?: unknown, headers?: Record<string, string>, options?: ContractHttpRequestOptions): Promise<ContractHttpResponse>;
|
|
32
|
-
}
|
|
33
|
-
export interface ContractFixture {
|
|
34
|
-
buffer(): Buffer;
|
|
35
|
-
contentType: string;
|
|
36
|
-
filename: string;
|
|
37
|
-
json(): unknown;
|
|
38
|
-
path: string;
|
|
39
|
-
sha256: string;
|
|
40
|
-
sizeBytes: number;
|
|
41
|
-
text(encoding?: BufferEncoding): string;
|
|
42
|
-
}
|
|
43
|
-
export interface ContractRuntimeContext extends UnknownRecord {
|
|
44
|
-
baseUrl?: string | null;
|
|
45
|
-
engineId?: "node-vitest";
|
|
46
|
-
readonly env: Readonly<Record<string, string>>;
|
|
47
|
-
profileId?: "node-vitest-contract";
|
|
48
|
-
serviceName?: string;
|
|
49
|
-
task?: {
|
|
50
|
-
file?: string;
|
|
51
|
-
id?: number | string;
|
|
52
|
-
suiteName?: string;
|
|
53
|
-
testType: "contract";
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
export interface ContractScenarioContext extends ContractRuntimeContext {
|
|
57
|
-
fixture(name: string): ContractFixture;
|
|
58
|
-
http(options?: ContractHttpClientOptions): ContractHttpClient;
|
|
59
|
-
}
|
|
60
|
-
type ContractScenarioRun = (context: ContractScenarioContext) => unknown;
|
|
61
|
-
export declare function contractScenario(name: string, run: ContractScenarioRun): void;
|
|
62
|
-
export declare function contractScenario(name: string, options: ContractScenarioOptions, run: ContractScenarioRun): void;
|
|
63
|
-
export declare function readContractContext(): ContractRuntimeContext;
|
|
64
|
-
export declare function createHttpClient(options?: Readonly<ContractHttpClientOptions>): ContractHttpClient;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{createHttpMethods as x}from"../../../../config/authoring/http-methods.js";import b from"node:fs";import{parseRuntimeFixtureManifestEntries as g,resolveRuntimeFixtureEntry as N}from"../../../contracts/fixture-manifest.js";import{readNodeVitestRuntimeInput as d}from"../runtime-input.js";import{expect as T,test as C}from"vitest";import{isUnknownRecord as s}from"../../../../kernel/unknown-values.js";export{T as expect};const w=Object.freeze({}),E=Object.freeze({env:w});export function contractScenario(t,e,n){const{options:r,run:i}=M(e,n);C(t,async()=>{await i(O())},r.timeoutMs||r.timeout)}export function readContractContext(){const t=d();if(t===null)return E;if(t.profileId!=="node-vitest-contract")throw new Error("Node/Vitest contract API requires node-vitest-contract runtime input");const e={...t.context,env:t.environment,...Object.hasOwn(t,"setupData")?{setupData:t.setupData}:{}};if(!A(e))throw new Error("Node/Vitest contract runtime context is invalid");return Object.freeze(e)}export function createHttpClient(t={}){const e=(t.baseUrl||readContractContext().baseUrl||"").replace(/\/+$/u,"");if(!e)throw new Error("createHttpClient(...) requires baseUrl or the managed Node/Vitest contract context baseUrl");const n=t.defaultHeaders||{"Content-Type":"application/json"};async function r(i,c,y,h={},a={}){const u=i.toUpperCase()||"GET",f=j(y,{contentTypeJson:a.contentTypeJson!==!1}),o=await fetch(`${e}${l(c)}`,{method:u,headers:{...f.body==null?{}:n,...h},body:f.body,signal:a.signal}),p=await o.text();return{body:p,headers:R(o.headers),json(){return JSON.parse(p)},method:u,path:l(c),status:o.status,url:o.url}}return{baseUrl:e,...x(r,void 0),request:r}}function O(){const t=readContractContext();return Object.freeze({...t,fixture(e){return S(e)},http(e={}){return createHttpClient(e)}})}function S(t){const e=U(t),n=b.readFileSync(e.absolutePath);return{buffer(){return Buffer.from(n)},contentType:e.contentType,filename:e.filename,json(){return JSON.parse(n.toString("utf8"))},path:e.path,sha256:e.sha256,sizeBytes:e.sizeBytes,text(r="utf8"){return n.toString(r)}}}function U(t){const e=q(t,"fixture name"),n=z();return N(n.entries,e)}function z(){const t=d();return t===null?{entries:[]}:{entries:g(t.fixtures,"Node/Vitest contract fixture manifest")}}function j(t,e){if(t==null)return{body:void 0};if(typeof t=="string")return{body:t};if(t instanceof Uint8Array){const n=new Uint8Array(t.byteLength);return n.set(t),{body:n}}if(e.contentTypeJson)return{body:JSON.stringify(t)};throw new TypeError("Non-JSON contract request bodies must be strings or Uint8Array values")}function l(t){const e=t||"/";return e.startsWith("/")?e:`/${e}`}function R(t){const e={};for(const[n,r]of t.entries())e[n.toLowerCase()]=r;return e}function M(t,e){if(typeof t=="function")return{options:{},run:t};if(typeof e!="function")throw new Error("contractScenario(name, options?, run) requires a callback");return{options:t,run:e}}function q(t,e){const n=typeof t=="string"?t.trim():"";if(!n)throw new Error(`${e} is required`);return n}function A(t){return!s(t)||t.engineId!=="node-vitest"||t.profileId!=="node-vitest-contract"||!k(t.env)||"runner"in t||t.baseUrl!==void 0&&t.baseUrl!==null&&typeof t.baseUrl!="string"||t.serviceName!==void 0&&typeof t.serviceName!="string"?!1:I(t.task)}function I(t){return s(t)?!("type"in t)&&t.testType==="contract"&&m(t.file)&&J(t.id)&&m(t.suiteName):!1}function m(t){return t===void 0||typeof t=="string"}function J(t){return t===void 0||typeof t=="string"||typeof t=="number"}function k(t){return s(t)&&Object.values(t).every(e=>typeof e=="string")}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { DataHttpClient, DataHttpClientOptions, DataHttpProfileOptions, DataRuntimeContext } from "./types.js";
|
|
2
|
-
export declare function createHttpClient(options?: DataHttpClientOptions): DataHttpClient;
|
|
3
|
-
export declare function readDataContext(): DataRuntimeContext;
|
|
4
|
-
export declare function createDataHttpClient(options?: DataHttpProfileOptions): Promise<DataHttpClient>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{stringFromUnknown as _}from"./primitives.js";import{createHttpMethods as b}from"../../../../config/authoring/http-methods.js";import{resolveHttpProfile as F}from"../../../../config/authoring/runtime.js";import{readNodeVitestRuntimeInput as G}from"../runtime-input.js";import{isUnknownRecord as l}from"../../../../kernel/unknown-values.js";export function createHttpClient(e={}){const t=(e.baseUrl??readDataContext().baseUrl??"").replace(/\/+$/u,"");if(!t)throw new Error("createHttpClient(...) requires baseUrl or the managed Node/Vitest data context baseUrl");const n=e.recorder||e.trace||null,o=e.defaultHeaders||{"Content-Type":"application/json"},r=e.sessionBundle||null,i=e.defaultActor||r?.primaryActor||null,c=typeof e.getHeaders=="function"?e.getHeaders:null,s=typeof e.getRawHeaders=="function"?e.getRawHeaders:c;async function u(a,f,w,d,E,k={},g={}){O(r,a);const A=w.trim()===""?"GET":w.toUpperCase(),D=`${t}${x(d)}`,H=v(E,{contentTypeJson:g.contentTypeJson!==!1}),$={actor:a&&r?r.actors[a]??null:null,actorName:a,sessionBundle:r},S={...H.body==null?{}:o,...m(f?s:c,$),...k},L=Date.now(),h=await fetch(D,{method:A,headers:S,body:H.body,signal:g.signal}),T=await h.text(),P=Date.now()-L,M=C(h.headers),J={body:T,cookies:V(h.headers),durationMs:P,headers:M,json(){return JSON.parse(T)},method:A,path:x(d),status:h.status,url:D};return n&&n.recordHttpRequest({bodyBytes:ie(H.body),durationMs:P,method:A,path:x(d),requestHeaders:S,responseBytes:Buffer.byteLength(T),status:h.status}),J}const p=y(null,!0),R=b(p,void 0),U=Object.assign(p,{as:B,get:R.get,post:R.post}),N=y(i,!1);return{...b(N,void 0),baseUrl:t,headers(a={}){return{...m(c,{actorName:i,actor:j(r,i),sessionBundle:r}),...a}},rawHeaders(a={}){return{...m(s,{actorName:i,actor:j(r,i),sessionBundle:r}),...a}},raw:U,rawReq:U,request:N,as:I};function y(a,f){return(w,d,E,k,g)=>u(a,f,w,d,E,k,g)}function I(a){O(r,a);const f=y(a,!1),w=B(a);return{...b(f,void 0),headers(d={}){return{...m(c,{actorName:a,actor:r?r.actors[a]??null:null,sessionBundle:r}),...d}},rawHeaders(d={}){return{...m(s,{actorName:a,actor:r?r.actors[a]??null:null,sessionBundle:r}),...d}},raw:w,rawReq:w,request:f}}function B(a){const f=y(a,!0);return Object.assign(f,b(f,void 0))}}export function readDataContext(){const e=G();if(e===null)return ne;if(e.profileId!=="node-vitest-data")throw new Error("Node/Vitest data API requires node-vitest-data runtime input");return te({...e.context,env:e.environment,...Object.hasOwn(e,"setupData")?{setupData:e.setupData}:{}})}export async function createDataHttpClient(e={}){if(!e.profile)return createHttpClient(e);const t=F(e.profile);if(!t)throw new Error(`Data HTTP profile "${e.profile}" is unavailable because no repo config is registered`);const n=Y(t,e),o=X(n),r=await W(n.auth,o,e.profile),i=createHttpClient({...e,baseUrl:o.BASE,...r?.primaryActor?{defaultActor:r.primaryActor}:{},getHeaders(s){return{...n.auth?.headers?.(r,{actor:s.actorName,env:o})??{},...q(n.headers,r,o,s.actorName)}},getRawHeaders(s){return q(n.rawHeaders,r,o,s.actorName)},...r?{sessionBundle:r}:{}}),c=Q(r,i);return{...i,actor:c.actor,actors:c.actors,env:o}}function K(e){return e??null}function Y(e,t){return{...e,...t,auth:t.auth??K(e.auth),headers:t.headers??e.headers,rawHeaders:t.rawHeaders??e.rawHeaders,env:t.env??e.env}}async function W(e,t,n){const o={env:t,http:Z(),json:oe};let r=null;if(typeof e?.setupAsync=="function"?r=await e.setupAsync(o):typeof e?.setup=="function"&&(r=e.setup(o)),r==null)return null;if(!fe(r))throw new Error(`Data HTTP profile "${n??""}" auth setup must return a session bundle with actors and primaryActor`);return r}function q(e,t,n,o){return typeof e!="function"?{}:e(t,{actor:o,env:n})??{}}function X(e){const n={BASE:readDataContext().baseUrl||process.env.BASE_URL},o={...e.env||n,rawEnv:process.env};if(!o.BASE)throw new Error("Data HTTP profile requires BASE_URL or the managed Node/Vitest data context baseUrl");return{...o,BASE:o.BASE,rawEnv:process.env}}function Q(e,t){const n=Object.keys(e?.actors??{}),o=n.map(s=>{const u=e?.actors[s]??null,p=t.as(s);return{email:u?.email||null,headers:p.headers(),index:u?.actorIndex??0,key:s,name:u?.name||null,organizationKey:u?.organizationKey||null,organizationName:u?.organizationName||null,rawHeaders:p.rawHeaders(),rawReq:p.rawReq,req:p,session:u?.session||null}}),r=new Map(o.map(s=>[s.key,s])),i=e?.primaryActor||null,c=i&&r.get(i)||null;return{actor:c,actors:{names:n,primary:c,get(s){const u=r.get(s);if(!u)throw new Error(`Unknown testkit actor "${s}"`);return u},has(s){return r.has(s)},list(){return o.slice()}}}}function Z(){async function e(t,n,o,r={}){const i=se(r),c=await fetch(n,{method:t,headers:i,body:t==="GET"?void 0:ae(o)});return{body:await c.text(),cookies:V(c.headers),headers:C(c.headers),status:c.status}}return{del(t,n,o){return e("DELETE",t,n,o)},get(t,n){return e("GET",t,null,n)},patch(t,n,o){return e("PATCH",t,n,o)},post(t,n,o){return e("POST",t,n,o)},put(t,n,o){return e("PUT",t,n,o)}}}function m(e,t){return typeof e!="function"?{}:e(t)}function O(e,t){if(!(!t||!e)&&!Object.hasOwn(e.actors,t))throw new Error(`Unknown testkit actor "${t}"`)}function x(e){const t=e||"/";return t.startsWith("/")?t:`/${t}`}function v(e,t={}){return e==null?{body:void 0}:typeof e=="string"?{body:e}:e instanceof Uint8Array?{body:Uint8Array.from(e)}:e instanceof URLSearchParams||e instanceof FormData||e instanceof Blob?{body:e}:t.contentTypeJson===!1?{body:z(e)}:{body:JSON.stringify(e)}}function C(e){const t={};for(const[n,o]of e.entries())t[n]=o;return t}function V(e){const t=typeof e.getSetCookie=="function"?e.getSetCookie():ee(e.get("set-cookie")),n={};for(const o of t){const[r]=o.split(";"),i=r.indexOf("=");if(i<=0)continue;const c=r.slice(0,i).trim(),s=r.slice(i+1).trim();n[c]=[{value:s}]}return n}function ee(e){return e?e.split(/,(?=\s*[^;,]+=)/u).map(t=>t.trim()).filter(Boolean):[]}function te(e){if(!l(e))throw new Error("Node/Vitest data context must be an object");if(e.engineId!=="node-vitest")throw new Error('Node/Vitest data context.engineId must be "node-vitest"');if(e.profileId!=="node-vitest-data")throw new Error('Node/Vitest data context.profileId must be "node-vitest-data"');if(!de(e.env))throw new Error("Node/Vitest data context.env must be a string environment record");if("runner"in e)throw new Error("Node/Vitest data context.runner is not supported");const t={...e,env:e.env};if(e.baseUrl!==void 0&&e.baseUrl!==null&&typeof e.baseUrl!="string")throw new Error("Node/Vitest data context.baseUrl must be a string");if(e.serviceName!==void 0&&typeof e.serviceName!="string")throw new Error("Node/Vitest data context.serviceName must be a string");if(!l(e.task))throw new Error("Node/Vitest data context.task must be an object");{const n=e.task.id;if(n!==void 0&&typeof n!="string"&&typeof n!="number")throw new Error("Node/Vitest data context.task.id is invalid");for(const o of["file","suiteName"])if(e.task[o]!==void 0&&typeof e.task[o]!="string")throw new Error(`Node/Vitest data context.task.${o} must be a string`);if(e.task.testType!=="data")throw new Error('Node/Vitest data context.task.testType must be "data"');if("type"in e.task)throw new Error("Node/Vitest data context.task.type is not supported");t.task={...typeof e.task.file=="string"?{file:e.task.file}:{},...n===void 0?{}:{id:n},...typeof e.task.suiteName=="string"?{suiteName:e.task.suiteName}:{},testType:e.task.testType}}return t.engineId=e.engineId,t.profileId=e.profileId,Object.freeze(t)}const re=Object.freeze({}),ne=Object.freeze({env:re});function oe(e){if(!l(e)||typeof e.body!="string")throw new Error("Data HTTP profile response body must be a string");return JSON.parse(e.body)}function se(e){if(e==null)return{};if(!l(e))throw new Error("Data HTTP profile request options must be an object");return e.headers===void 0?{}:ce(e.headers,"Data HTTP profile request headers")}function ae(e){if(e!=null)return z(e)}function ie(e){return e===void 0?0:typeof e=="string"?Buffer.byteLength(e):e instanceof Blob?e.size:e instanceof URLSearchParams?Buffer.byteLength(e.toString()):e instanceof ArrayBuffer||ArrayBuffer.isView(e)?e.byteLength:0}function j(e,t){return t&&e?.actors?e.actors[t]??null:null}function z(e){return typeof e=="string"||e instanceof Blob||e instanceof FormData||e instanceof URLSearchParams||e instanceof ArrayBuffer?e:ArrayBuffer.isView(e)?Uint8Array.from(new Uint8Array(e.buffer,e.byteOffset,e.byteLength)):_(e)}function ce(e,t){if(!l(e))throw new Error(`${t} must be an object`);const n={};for(const[o,r]of Object.entries(e))n[o]=ue(r,`${t}.${o}`);return n}function ue(e,t){if(typeof e!="string"||e.length===0)throw new Error(`${t} must be a non-empty string`);return e}function fe(e){return l(e)&&l(e.actors)&&(e.primaryActor===null||typeof e.primaryActor=="string")}function de(e){return l(e)&&Object.values(e).every(t=>typeof t=="string")}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type RepoConfig } from "../../../../config/authoring/runtime.js";
|
|
2
|
-
/** @internal Used only by the managed Node/Vitest setup module. */
|
|
3
|
-
export declare function __testkitRegisterNodeVitestRepositoryConfiguration(configuration: RepoConfig | null | undefined): void;
|
|
4
|
-
export { expect } from "vitest";
|
|
5
|
-
export { createHttpClient, readDataContext } from "./http.js";
|
|
6
|
-
export { renderDataFlowMarkdown } from "./report.js";
|
|
7
|
-
export { dataScenario, measureJsonBytes, stableHash } from "./scenario.js";
|
|
8
|
-
export type { DataActorHttpClient, DataActorRawRequest, DataActorSession, DataBudgetOptions, DataEvidenceDetails, DataExternalCallDetails, DataFixture, DataFlowReport, DataHttpActor, DataHttpActors, DataHttpClient, DataHttpClientOptions, DataHttpHeaderBuilder, DataHttpHeaderContext, DataHttpProfileAuth, DataHttpProfileOptions, DataHttpRecorder, DataHttpRequestOptions, DataHttpRequestRecord, DataHttpResponse, DataMetricBudget, DataMetricOptions, DataRootRawRequest, DataRuntimeContext, DataScenarioContext, DataScenarioOptions, DataScenarioReport, DataSequenceBudget, DataSequenceOptions, DataSessionBundle, } from "./types.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function stringFromUnknown(value: unknown): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{TestRunner as a}from"vitest";import{isDataScenarioCase as o}from"./scenario.js";export default class s extends a{onCollected(t){for(const r of t)for(const e of r.tasks)if(!o(e))throw new Error(`Data suites must register every case with dataScenario: ${e.name}`)}}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { DataFlowState, DataScenarioContext, DataScenarioOptions } from "./types.js";
|
|
2
|
-
declare global {
|
|
3
|
-
var __TESTKIT_DATA_FLOW_STATE__: DataFlowState | undefined;
|
|
4
|
-
}
|
|
5
|
-
export declare function isDataScenarioCase(task: object): boolean;
|
|
6
|
-
export declare function dataScenario(name: string, run: (context: DataScenarioContext) => unknown): void;
|
|
7
|
-
export declare function dataScenario(name: string, options: DataScenarioOptions, run: (context: DataScenarioContext) => unknown): void;
|
|
8
|
-
export declare function measureJsonBytes(value: unknown): number;
|
|
9
|
-
export declare function stableHash(value: unknown): string;
|
|
10
|
-
export declare function dataFlowState(): DataFlowState;
|
|
11
|
-
export declare function finalizeDataFlowState(): DataFlowState;
|