@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,23 +0,0 @@
|
|
|
1
|
-
export interface TimingEntry {
|
|
2
|
-
avgDurationMs: number;
|
|
3
|
-
durationMs: number;
|
|
4
|
-
lastDurationMs: number;
|
|
5
|
-
lastStatus: string | null;
|
|
6
|
-
maxDurationMs: number;
|
|
7
|
-
minDurationMs: number;
|
|
8
|
-
runs: number;
|
|
9
|
-
updatedAt: string | null;
|
|
10
|
-
}
|
|
11
|
-
export type TimingFileMap = Readonly<Record<string, TimingEntry | undefined>>;
|
|
12
|
-
export interface Timings {
|
|
13
|
-
files: TimingFileMap;
|
|
14
|
-
version: 2;
|
|
15
|
-
}
|
|
16
|
-
export interface TimingUpdate {
|
|
17
|
-
readonly durationMs: number;
|
|
18
|
-
readonly key: string;
|
|
19
|
-
readonly status?: string | null;
|
|
20
|
-
}
|
|
21
|
-
export declare function createEmptyTimings(): Timings;
|
|
22
|
-
export declare function normalizeTimings(parsed: unknown): Timings;
|
|
23
|
-
export declare function applyTimingUpdates(timings: Timings, updates: readonly TimingUpdate[], updatedAt?: string): Timings;
|
package/dist/file.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { EngineId } from "./domain/identifiers.js";
|
|
2
|
-
import type { RuntimeIsolationPolicy } from "./domain/runtime-isolation-contract.js";
|
|
3
|
-
export interface TestkitFileMetadata {
|
|
4
|
-
engine: EngineId;
|
|
5
|
-
locks?: string[];
|
|
6
|
-
runtimeIsolation?: RuntimeIsolationPolicy;
|
|
7
|
-
skip?: string | {
|
|
8
|
-
reason: string;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export declare function defineFile(metadata: TestkitFileMetadata): TestkitFileMetadata;
|
package/dist/index.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export type ErrorMetadataPrimitive = string | number | boolean | null;
|
|
2
|
-
export type ErrorMetadataValue = ErrorMetadataPrimitive | ErrorMetadataObject | ErrorMetadataValue[];
|
|
3
|
-
export interface ErrorMetadataObject {
|
|
4
|
-
[key: string]: ErrorMetadataValue;
|
|
5
|
-
}
|
|
6
|
-
export interface SerializedErrorOperation {
|
|
7
|
-
id?: string;
|
|
8
|
-
source: string;
|
|
9
|
-
name: string;
|
|
10
|
-
kind: string;
|
|
11
|
-
summary?: string;
|
|
12
|
-
scope: ErrorMetadataObject;
|
|
13
|
-
status?: string;
|
|
14
|
-
error?: string;
|
|
15
|
-
}
|
|
16
|
-
export interface SerializedError {
|
|
17
|
-
name: string;
|
|
18
|
-
message: string;
|
|
19
|
-
code?: string;
|
|
20
|
-
exitCode?: number;
|
|
21
|
-
status?: number;
|
|
22
|
-
phase?: string;
|
|
23
|
-
operation?: SerializedErrorOperation;
|
|
24
|
-
diagnostics?: ErrorMetadataObject;
|
|
25
|
-
stack?: string;
|
|
26
|
-
}
|
|
27
|
-
export interface SerializeErrorOptions {
|
|
28
|
-
includeStack?: boolean;
|
|
29
|
-
}
|
|
30
|
-
export declare function attachErrorOperation<ErrorValue>(error: ErrorValue, operation: unknown): ErrorValue;
|
|
31
|
-
export declare function attachErrorDiagnostics<ErrorValue>(error: ErrorValue, diagnostics: unknown): ErrorValue;
|
|
32
|
-
export declare function getErrorOperation(error: unknown): SerializedErrorOperation | null;
|
|
33
|
-
export declare function getErrorDiagnostics(error: unknown): ErrorMetadataObject;
|
|
34
|
-
export declare function errorMessage(error: unknown): string;
|
|
35
|
-
export declare function formatError(error: unknown): string;
|
|
36
|
-
export declare function sanitizeErrorMessage(message: string): string;
|
|
37
|
-
export declare function errorDetail(error: unknown): string;
|
|
38
|
-
export declare function serializeError(error: unknown, { includeStack }?: Readonly<SerializeErrorOptions>): SerializedError;
|
|
39
|
-
export declare function toError(value: unknown): Error;
|
|
40
|
-
export declare function hasErrorCode(error: unknown, code: string): boolean;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type UnknownRecord = Record<string, unknown>;
|
|
2
|
-
export declare function isUnknownRecord(value: unknown): value is UnknownRecord;
|
|
3
|
-
export declare function asUnknownRecord(value: unknown): UnknownRecord | null;
|
|
4
|
-
/** A non-empty string, or null for an empty string and every other value. */
|
|
5
|
-
export declare function optionalString(value: unknown): string | null;
|
|
6
|
-
export declare function displayString(value: unknown, fallback: string): string;
|
|
7
|
-
export declare function isUnknownArray(value: unknown): value is unknown[];
|
|
8
|
-
/** Objects and functions: the values Reflect.get accepts as a target. */
|
|
9
|
-
export declare function isPropertyContainer(value: unknown): value is object;
|
|
10
|
-
export declare function readDynamicProperty(value: unknown, key: string): unknown;
|
|
11
|
-
export declare function isNullableString(value: unknown): value is string | null;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/** Call-through observation of work performed by Testkit, independent of time. */
|
|
2
|
-
export type WorkObserver = (metric: string, amount: number) => void;
|
|
3
|
-
export declare function isWorkObserved(): boolean;
|
|
4
|
-
export declare function recordWork(metric: string, amount?: number): void;
|
|
5
|
-
/** Install an observer for this process and restore the previous observer. */
|
|
6
|
-
export declare function observeWork(next: WorkObserver): () => void;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type OutputLineHandler = (line: string) => void;
|
|
2
|
-
export interface CaptureOutputOptions {
|
|
3
|
-
livePrefix?: string | null;
|
|
4
|
-
liveWriter?: OutputLineHandler | null;
|
|
5
|
-
onLine?: OutputLineHandler | null;
|
|
6
|
-
}
|
|
7
|
-
export declare function captureOutput(stream: NodeJS.ReadableStream | null | undefined, options?: Readonly<CaptureOutputOptions>): Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function resolvePosixCommandShell(env: Readonly<NodeJS.ProcessEnv>, ambientEnv?: Readonly<NodeJS.ProcessEnv>): string;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare const MANAGED_PROCESS_ENVIRONMENT_OVERLAY_STATE_SYMBOL = "elench.testkit.engine-process.environment-overlay.v1";
|
|
2
|
-
export interface ManagedProcessEnvironmentOverlayOptions {
|
|
3
|
-
readonly environment: Readonly<Record<string, string>>;
|
|
4
|
-
readonly label: string;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Adds file-backed consumer values to `process.env` without adding them to the
|
|
8
|
-
* physical environment block inherited by native processes.
|
|
9
|
-
*
|
|
10
|
-
* Managed values behave like immutable, non-enumerable own properties. A Node
|
|
11
|
-
* child that inherits the adapter-owned bootstrap controls can therefore
|
|
12
|
-
* rehydrate the same values without transporting them through its OS spawn
|
|
13
|
-
* environment.
|
|
14
|
-
*/
|
|
15
|
-
export declare function installManagedProcessEnvironmentOverlay(options: Readonly<ManagedProcessEnvironmentOverlayOptions>): NodeJS.ProcessEnv;
|
|
16
|
-
/** Returns the exact shared installer as a self-contained ESM source fragment. */
|
|
17
|
-
export declare function managedProcessEnvironmentOverlayInstallerSource(): string;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export declare const ENGINE_PROCESS_RESERVED_ENVIRONMENT_KEYS: readonly ["APPDATA", "ComSpec", "HOME", "LANG", "LC_ALL", "LOCALAPPDATA", "PATH", "PATHEXT", "SystemRoot", "TEMP", "TMP", "TMPDIR", "USERPROFILE", "XDG_CACHE_HOME", "XDG_CONFIG_HOME", "XDG_DATA_HOME"];
|
|
2
|
-
export interface InvocationProcessEnvironment {
|
|
3
|
-
readonly environment: Readonly<Record<string, string>>;
|
|
4
|
-
readonly homeDirectory: string;
|
|
5
|
-
readonly temporaryDirectory: string;
|
|
6
|
-
}
|
|
7
|
-
export interface NativeInvocationProcessEnvironmentOptions {
|
|
8
|
-
readonly ambientEnvironment?: Readonly<NodeJS.ProcessEnv>;
|
|
9
|
-
readonly nativeTemporaryRootDirectory?: string;
|
|
10
|
-
readonly platform?: NodeJS.Platform;
|
|
11
|
-
}
|
|
12
|
-
export declare function nativeTemporaryRoot(ambientEnvironment?: Readonly<NodeJS.ProcessEnv>, platform?: NodeJS.Platform): string;
|
|
13
|
-
/**
|
|
14
|
-
* Creates the operating-system directories owned by one engine invocation.
|
|
15
|
-
*
|
|
16
|
-
* Engine processes must not inherit the orchestrator user's home, temporary,
|
|
17
|
-
* cache, configuration, or executable search paths. Apart from locale, only
|
|
18
|
-
* the two Windows variables required to launch native processes are copied
|
|
19
|
-
* from the host.
|
|
20
|
-
*/
|
|
21
|
-
export declare function createInvocationProcessEnvironment(invocationDirectory: string, ambientEnvironment?: Readonly<NodeJS.ProcessEnv>, platform?: NodeJS.Platform): Promise<InvocationProcessEnvironment>;
|
|
22
|
-
/**
|
|
23
|
-
* Creates an invocation environment whose native-process temporary directory
|
|
24
|
-
* has a short, operating-system-owned path.
|
|
25
|
-
*
|
|
26
|
-
* Chromium and other native tools create Unix-domain sockets below their
|
|
27
|
-
* temporary directory. A correctly isolated workspace can still be too deeply
|
|
28
|
-
* nested for those operating-system path limits, so the directory is a fresh
|
|
29
|
-
* 0700 allocation rather than a shared alias or inherited host path. The
|
|
30
|
-
* caller owns removing `temporaryDirectory` after the managed process scope
|
|
31
|
-
* has terminated.
|
|
32
|
-
*/
|
|
33
|
-
export declare function createNativeInvocationProcessEnvironment(invocationDirectory: string, options?: Readonly<NativeInvocationProcessEnvironmentOptions>): Promise<InvocationProcessEnvironment>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Containment guards for configured relative paths. Callers hand over a
|
|
3
|
-
* user-authored path plus the product directory that must contain it; these
|
|
4
|
-
* helpers reject absolute paths, parent-directory escapes, NUL bytes, and
|
|
5
|
-
* filesystem links that resolve outside that directory.
|
|
6
|
-
*/
|
|
7
|
-
export declare function normalizeContainedRelativePath(value: string, label: string): string;
|
|
8
|
-
export declare function resolveContainedPath(productDir: string, maybeRelative: string | null | undefined, label: string): string;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface DirectoryStatus {
|
|
2
|
-
exists: boolean;
|
|
3
|
-
fileCount: number;
|
|
4
|
-
path: string;
|
|
5
|
-
sizeBytes: number;
|
|
6
|
-
}
|
|
7
|
-
export interface StatusFile {
|
|
8
|
-
mtimeMs: number;
|
|
9
|
-
path: string;
|
|
10
|
-
size: number;
|
|
11
|
-
}
|
|
12
|
-
export declare function collectDirectorySummary(dir: string): DirectoryStatus;
|
|
13
|
-
export declare function listFiles(dir: string): StatusFile[];
|
|
14
|
-
export declare function pruneEmptyDir(dir: string): void;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export interface FileSnapshotIdentity {
|
|
2
|
-
readonly ctimeNs: bigint;
|
|
3
|
-
readonly dev: bigint;
|
|
4
|
-
readonly ino: bigint;
|
|
5
|
-
readonly mtimeNs: bigint;
|
|
6
|
-
readonly size: bigint;
|
|
7
|
-
}
|
|
8
|
-
export interface ReadOnlyOpenFlagConstants {
|
|
9
|
-
readonly O_NOFOLLOW?: number;
|
|
10
|
-
readonly O_RDONLY: number;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Returns the strongest read-only, no-follow open flags available on the host.
|
|
14
|
-
* Windows does not expose O_NOFOLLOW, so callers must combine its read-only
|
|
15
|
-
* open with the path/handle identity fencing in this module.
|
|
16
|
-
*/
|
|
17
|
-
export declare function readOnlyNoFollowOpenFlags(platform: NodeJS.Platform, constants: Readonly<ReadOnlyOpenFlagConstants>): number;
|
|
18
|
-
/**
|
|
19
|
-
* Compares snapshots produced through one filesystem observation channel, such
|
|
20
|
-
* as two path stats or two stats from the same open handle.
|
|
21
|
-
*/
|
|
22
|
-
export declare function sameFileSnapshot(left: Readonly<FileSnapshotIdentity>, right: Readonly<FileSnapshotIdentity>): boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Compares a path lstat snapshot with a snapshot from its opened handle.
|
|
25
|
-
*
|
|
26
|
-
* Windows path and handle stats are separate observation channels. Node/libuv
|
|
27
|
-
* can report dev=0 for a path lstat while fstat reports the real nonzero volume
|
|
28
|
-
* identifier for the same NTFS file, and their timestamp representations can
|
|
29
|
-
* differ even when both observations name the same file. Device, inode, and
|
|
30
|
-
* size therefore form the Windows cross-channel identity fence. Callers must
|
|
31
|
-
* still compare complete snapshots before and after within each individual
|
|
32
|
-
* channel so timestamp or size mutations remain fail-closed.
|
|
33
|
-
*/
|
|
34
|
-
export declare function samePathAndHandleFileSnapshot(pathIdentity: Readonly<FileSnapshotIdentity>, handleIdentity: Readonly<FileSnapshotIdentity>, platform: NodeJS.Platform): boolean;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare function readProperty(value: object, key: PropertyKey): unknown;
|
|
2
|
-
export declare function serializeJson(value: unknown, label: string): string;
|
|
3
|
-
export declare function errorMessage(error: unknown): string;
|
|
4
|
-
export interface AtomicWriteOptions {
|
|
5
|
-
attempts?: number;
|
|
6
|
-
baseDelayMs?: number;
|
|
7
|
-
maxDelayMs?: number;
|
|
8
|
-
}
|
|
9
|
-
export declare function writeJsonFileAtomicWithRetry(filePath: string, value: unknown, options?: AtomicWriteOptions): void;
|
|
10
|
-
export declare function writeTextFileAtomicWithRetry(filePath: string, text: string, options?: AtomicWriteOptions): void;
|
|
11
|
-
export declare function isRetryableAtomicReplaceError(error: unknown): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function resolveProductDir(cwd: string, explicitDir?: string | null): string;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface MakeTempDirOptions {
|
|
2
|
-
parentDir?: string | null;
|
|
3
|
-
}
|
|
4
|
-
export interface RemoveTempDirOptions {
|
|
5
|
-
maxRetries?: number | null;
|
|
6
|
-
retryDelay?: number | null;
|
|
7
|
-
}
|
|
8
|
-
export declare function defaultTempDirParent(): string;
|
|
9
|
-
export declare function makeTempDir(prefix: string, options?: Readonly<MakeTempDirOptions>): string;
|
|
10
|
-
export declare function makeTempDirAsync(prefix: string, options?: Readonly<MakeTempDirOptions>): Promise<string>;
|
|
11
|
-
export declare function removeTempDir(dir?: string | null, options?: Readonly<RemoveTempDirOptions>): void;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
export declare const SUPPORTED_PLATFORMS: readonly ["darwin", "linux", "win32"];
|
|
2
|
-
export declare const SUPPORTED_ARCHITECTURES: readonly ["arm64", "x64"];
|
|
3
|
-
export type SupportedPlatform = (typeof SUPPORTED_PLATFORMS)[number];
|
|
4
|
-
export type SupportedArchitecture = (typeof SUPPORTED_ARCHITECTURES)[number];
|
|
5
|
-
export type LinuxLibc = "glibc" | "musl";
|
|
6
|
-
export interface PlatformTarget {
|
|
7
|
-
readonly arch: SupportedArchitecture;
|
|
8
|
-
readonly platform: SupportedPlatform;
|
|
9
|
-
}
|
|
10
|
-
export declare const SUPPORTED_PLATFORM_TARGETS: readonly (Readonly<{
|
|
11
|
-
arch: "arm64";
|
|
12
|
-
platform: "darwin";
|
|
13
|
-
}> | Readonly<{
|
|
14
|
-
arch: "x64";
|
|
15
|
-
platform: "darwin";
|
|
16
|
-
}> | Readonly<{
|
|
17
|
-
arch: "arm64";
|
|
18
|
-
platform: "linux";
|
|
19
|
-
}> | Readonly<{
|
|
20
|
-
arch: "x64";
|
|
21
|
-
platform: "linux";
|
|
22
|
-
}> | Readonly<{
|
|
23
|
-
arch: "x64";
|
|
24
|
-
platform: "win32";
|
|
25
|
-
}>)[];
|
|
26
|
-
export declare class UnsupportedPlatformTargetError extends Error {
|
|
27
|
-
readonly arch: string;
|
|
28
|
-
readonly code = "TESTKIT_PLATFORM_TARGET_UNSUPPORTED";
|
|
29
|
-
readonly platform: string;
|
|
30
|
-
constructor(platform: string, arch: string, label?: string);
|
|
31
|
-
}
|
|
32
|
-
export declare function platformTargetKey(target: Readonly<PlatformTarget>): string;
|
|
33
|
-
export declare function currentPlatformTarget(platform?: NodeJS.Platform, arch?: string): PlatformTarget;
|
|
34
|
-
export declare function currentLinuxLibc(): LinuxLibc | null;
|
|
35
|
-
export declare function assertSupportedPlatformTarget(target: Readonly<PlatformTarget>, label?: string): void;
|
|
36
|
-
export declare function isSupportedPlatform(value: string): value is SupportedPlatform;
|
|
37
|
-
export declare function isSupportedArchitecture(value: string): value is SupportedArchitecture;
|
|
38
|
-
export interface CommandResolutionOptions {
|
|
39
|
-
env?: Readonly<NodeJS.ProcessEnv>;
|
|
40
|
-
extraWindowsDirs?: readonly string[];
|
|
41
|
-
platform?: NodeJS.Platform;
|
|
42
|
-
}
|
|
43
|
-
export interface PreparedSpawnCommand {
|
|
44
|
-
args: string[];
|
|
45
|
-
command: string;
|
|
46
|
-
windowsVerbatimArguments: boolean;
|
|
47
|
-
}
|
|
48
|
-
export declare function isWindows(platform?: NodeJS.Platform): boolean;
|
|
49
|
-
export declare function commandName(name: unknown, platform?: NodeJS.Platform): string;
|
|
50
|
-
export declare function executableName(name: unknown, platform?: NodeJS.Platform): string;
|
|
51
|
-
export declare function resolveCommandForSpawn(name: unknown, options?: Readonly<CommandResolutionOptions>): string;
|
|
52
|
-
export declare function prepareCommandForSpawn(name: unknown, args?: unknown, options?: Readonly<CommandResolutionOptions>): PreparedSpawnCommand;
|
|
53
|
-
export declare function packageBinPath(cwd: null | string | undefined, name: unknown, platform?: NodeJS.Platform): string;
|
|
54
|
-
export declare function shellQuote(value: unknown, platform?: NodeJS.Platform): string;
|
|
55
|
-
export declare function joinPathList(entries: readonly unknown[], platform?: NodeJS.Platform): string;
|
|
56
|
-
export declare function dockerHostAddress<T>(host: T, platform?: NodeJS.Platform): T | "host.docker.internal";
|
|
57
|
-
export declare function shouldUseDockerHostNetwork(platform?: NodeJS.Platform): boolean;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ManagedProcessResult } from "./process.js";
|
|
2
|
-
import { type ManagedHostProcessRequest } from "./host-process.js";
|
|
3
|
-
export declare function runManagedHostCommand(request: Readonly<ManagedHostProcessRequest>): Promise<ManagedProcessResult>;
|
|
4
|
-
export declare function requireManagedHostCommandSuccess(displayLabel: string, result: Readonly<ManagedProcessResult>): ManagedProcessResult;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const DARWIN_PS_EXECUTABLE = "/bin/ps";
|
|
2
|
-
export declare const HOST_POSIX_INSPECTION_ENVIRONMENT: Readonly<Record<string, string>>;
|
|
3
|
-
export interface WindowsHostPowerShellCommand {
|
|
4
|
-
readonly environment: Readonly<Record<string, string>>;
|
|
5
|
-
readonly executable: string;
|
|
6
|
-
readonly systemRoot: string;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Returns the host-owned Windows bootstrap captured when this module loaded.
|
|
10
|
-
* Consumer request environments and later ambient PATH mutation cannot replace
|
|
11
|
-
* the executable used for authoritative process inspection.
|
|
12
|
-
*/
|
|
13
|
-
export declare function requireWindowsHostPowerShellCommand(): WindowsHostPowerShellCommand;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type ManagedProcessRequest, type ManagedProcessResult, type SupervisedProcessHandle, type SupervisedProcessLiveHandle, type SupervisedProcessOutputMode } from "./process.js";
|
|
2
|
-
export interface ManagedHostProcessRequest extends Omit<ManagedProcessRequest, "env" | "signal"> {
|
|
3
|
-
readonly env?: Readonly<NodeJS.ProcessEnv>;
|
|
4
|
-
readonly signal?: AbortSignal;
|
|
5
|
-
}
|
|
6
|
-
export interface SupervisedHostProcessRequest extends ManagedHostProcessRequest {
|
|
7
|
-
readonly outputMode: SupervisedProcessOutputMode;
|
|
8
|
-
readonly recoveryIdentity?: "capture";
|
|
9
|
-
}
|
|
10
|
-
export interface SupervisedHostProcessWithoutRecoveryRequest extends Omit<SupervisedHostProcessRequest, "recoveryIdentity"> {
|
|
11
|
-
readonly recoveryIdentity: "none";
|
|
12
|
-
}
|
|
13
|
-
export declare function runManagedHostProcess(request: Readonly<ManagedHostProcessRequest>): Promise<ManagedProcessResult>;
|
|
14
|
-
export declare function startManagedHostProcess(request: Readonly<SupervisedHostProcessWithoutRecoveryRequest>): SupervisedProcessLiveHandle;
|
|
15
|
-
export declare function startManagedHostProcess(request: Readonly<SupervisedHostProcessRequest>): SupervisedProcessHandle;
|
|
16
|
-
export declare function managedHostProcessInfrastructureError(displayLabel: string, result: Readonly<ManagedProcessResult>): Error | null;
|
|
17
|
-
export declare function normalizeManagedHostEnvironment(environment?: Readonly<NodeJS.ProcessEnv>, platform?: NodeJS.Platform): Record<string, string>;
|
|
18
|
-
export declare function resolveManagedHostExecutable(executable: string, cwd: string, environment: Readonly<Record<string, string>>, platform?: NodeJS.Platform): string;
|
|
19
|
-
export declare function resolveManagedHostExecutableIfAvailable(executable: string, cwd: string, environment: Readonly<Record<string, string>>, platform?: NodeJS.Platform): string | null;
|
package/dist/process/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { runManagedProcess, ProcessExitedBeforeReadyError, startSupervisedProcess, terminateAttributedProcessLineage, terminateOwnedPosixProcessGroup, type AttributedProcessLineageTerminationRequest, type ManagedProcessCancellationSignal, type ManagedProcessRequest, type ManagedProcessResult, type OwnedPosixProcessGroupTerminationRequest, type SupervisedProcessHandle, type SupervisedProcessLiveHandle, type SupervisedProcessWithoutRecoveryRequest, type SupervisedProcessOutputMode, type SupervisedProcessRecoveryIdentity, type SupervisedProcessReady, type SupervisedProcessRequest, } from "./process.js";
|
|
2
|
-
export { managedHostProcessInfrastructureError, normalizeManagedHostEnvironment, resolveManagedHostExecutable, resolveManagedHostExecutableIfAvailable, runManagedHostProcess, startManagedHostProcess, type ManagedHostProcessRequest, type SupervisedHostProcessRequest, type SupervisedHostProcessWithoutRecoveryRequest, } from "./host-process.js";
|
|
3
|
-
export { requireManagedHostCommandSuccess, runManagedHostCommand } from "./host-command.js";
|
|
4
|
-
export { resolvePosixCommandShell } from "./command-shell.js";
|
|
5
|
-
export { captureOutput, type CaptureOutputOptions, type OutputLineHandler } from "./capture-output.js";
|
|
6
|
-
export { captureProcessCreationIdentity, observeProcessCreationIdentity, processCreationIdentityMatches, type ProcessCreationIdentityObservation, type ProcessCreationIdentityObservationOptions, } from "./process-identity.js";
|
|
7
|
-
export { createInvocationProcessEnvironment, createNativeInvocationProcessEnvironment, ENGINE_PROCESS_RESERVED_ENVIRONMENT_KEYS, type InvocationProcessEnvironment, type NativeInvocationProcessEnvironmentOptions, } from "./environment.js";
|
|
8
|
-
export { installManagedProcessEnvironmentOverlay, managedProcessEnvironmentOverlayInstallerSource, MANAGED_PROCESS_ENVIRONMENT_OVERLAY_STATE_SYMBOL, type ManagedProcessEnvironmentOverlayOptions, } from "./environment-overlay.js";
|
|
9
|
-
export { DEFAULT_SHUTDOWN_TIMEOUT_MS } from "./shutdown.js";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type ProcessLockOptions } from "./locks.js";
|
|
2
|
-
declare const PRODUCT_LIFECYCLE_FENCE_BRAND: unique symbol;
|
|
3
|
-
export interface ProductLifecycleFence {
|
|
4
|
-
readonly [PRODUCT_LIFECYCLE_FENCE_BRAND]: true;
|
|
5
|
-
readonly productDir: string;
|
|
6
|
-
}
|
|
7
|
-
export declare function resolveProductLifecycleLockPath(productDir: string): string;
|
|
8
|
-
export declare function withProductLifecycleFence<Result>(productDir: string, operation: (fence: ProductLifecycleFence) => Result | PromiseLike<Result>, options?: Readonly<Pick<ProcessLockOptions, "signal">>): Promise<Result>;
|
|
9
|
-
export declare function requireProductLifecycleFenceProductDir(fence: Readonly<ProductLifecycleFence>): string;
|
|
10
|
-
export {};
|
package/dist/process/locks.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
interface ProcessLockIdentityObservation {
|
|
2
|
-
readonly checkedAtMs: number;
|
|
3
|
-
readonly ownerKey: string;
|
|
4
|
-
}
|
|
5
|
-
export type ProcessLockIdentityObservations = Map<string, ProcessLockIdentityObservation>;
|
|
6
|
-
export interface ProcessLockOptions {
|
|
7
|
-
/**
|
|
8
|
-
* Allows reclaiming an aged owner from another hostname only when the lock
|
|
9
|
-
* path itself is guaranteed to be private to this host.
|
|
10
|
-
*/
|
|
11
|
-
readonly hostScope?: "current-host" | "shared";
|
|
12
|
-
readonly identityObservations?: ProcessLockIdentityObservations;
|
|
13
|
-
readonly retryIntervalMs?: number;
|
|
14
|
-
readonly signal?: AbortSignal;
|
|
15
|
-
/** Null, and the default, means wait until ownership changes or aborts. */
|
|
16
|
-
readonly timeoutMs?: number | null;
|
|
17
|
-
}
|
|
18
|
-
export type ProcessLockAttempt<Result> = {
|
|
19
|
-
readonly acquired: false;
|
|
20
|
-
} | {
|
|
21
|
-
readonly acquired: true;
|
|
22
|
-
readonly value: Result;
|
|
23
|
-
};
|
|
24
|
-
type ProcessLockProbe = "active" | "absent";
|
|
25
|
-
export declare function withProcessLock<Result>(lockPath: string, operation: () => Result | PromiseLike<Result>, options?: Readonly<ProcessLockOptions>): Promise<Result>;
|
|
26
|
-
export declare function tryWithProcessLock<Result>(lockPath: string, operation: () => Result | PromiseLike<Result>, options?: Readonly<Omit<ProcessLockOptions, "timeoutMs">>): Promise<ProcessLockAttempt<Result>>;
|
|
27
|
-
export declare function probeProcessLock(lockPath: string, options?: Readonly<ProcessLockOptions>): ProcessLockProbe;
|
|
28
|
-
export {};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import type { Readable, Writable } from "node:stream";
|
|
2
|
-
export interface ManagedProcessCancellationSignal {
|
|
3
|
-
readonly aborted: boolean;
|
|
4
|
-
addEventListener(type: "abort", listener: () => void, options?: Readonly<{
|
|
5
|
-
once?: boolean;
|
|
6
|
-
}>): void;
|
|
7
|
-
removeEventListener(type: "abort", listener: () => void): void;
|
|
8
|
-
}
|
|
9
|
-
export interface ManagedProcessRequest {
|
|
10
|
-
readonly args: readonly string[];
|
|
11
|
-
readonly cwd: string;
|
|
12
|
-
readonly displayLabel: string;
|
|
13
|
-
readonly env: Readonly<Record<string, string>>;
|
|
14
|
-
readonly executable: string;
|
|
15
|
-
readonly signal: ManagedProcessCancellationSignal;
|
|
16
|
-
readonly timeoutMs: number;
|
|
17
|
-
readonly windowsVerbatimArguments?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export type SupervisedProcessOutputMode = "bounded-capture" | "caller-drained";
|
|
20
|
-
export interface SupervisedProcessRequest extends Omit<ManagedProcessRequest, "timeoutMs"> {
|
|
21
|
-
readonly recoveryIdentity?: "capture";
|
|
22
|
-
readonly shutdownTimeoutMs?: number;
|
|
23
|
-
readonly outputMode: SupervisedProcessOutputMode;
|
|
24
|
-
readonly timeoutMs: number | null;
|
|
25
|
-
}
|
|
26
|
-
/** Live supervision without publishing an identity for later recovery. */
|
|
27
|
-
export interface SupervisedProcessWithoutRecoveryRequest extends Omit<SupervisedProcessRequest, "recoveryIdentity"> {
|
|
28
|
-
readonly recoveryIdentity: "none";
|
|
29
|
-
}
|
|
30
|
-
export interface ManagedProcessResult {
|
|
31
|
-
readonly cancelled: boolean;
|
|
32
|
-
readonly error: Error | null;
|
|
33
|
-
readonly exitCode: number | null;
|
|
34
|
-
readonly exitSignal: NodeJS.Signals | null;
|
|
35
|
-
readonly outputLimitExceeded: boolean;
|
|
36
|
-
readonly stderr: string;
|
|
37
|
-
readonly stdout: string;
|
|
38
|
-
/** An observed cleanup failure. Null does not prove that every descendant exited. */
|
|
39
|
-
readonly terminationError: Error | null;
|
|
40
|
-
readonly timedOut: boolean;
|
|
41
|
-
}
|
|
42
|
-
export interface SupervisedProcessReady {
|
|
43
|
-
readonly pid: number;
|
|
44
|
-
readonly recovery: SupervisedProcessRecoveryIdentity;
|
|
45
|
-
}
|
|
46
|
-
export interface SupervisedProcessRecoveryIdentity {
|
|
47
|
-
readonly creationIdentity: string;
|
|
48
|
-
readonly processGroupId: number | null;
|
|
49
|
-
}
|
|
50
|
-
/** A live child handle plus the identity needed for later best-effort recovery. */
|
|
51
|
-
export interface SupervisedProcessHandle extends SupervisedProcessLiveHandle {
|
|
52
|
-
readonly ready: Promise<SupervisedProcessReady>;
|
|
53
|
-
}
|
|
54
|
-
/** Controls the child through its live handle, without persisted recovery metadata. */
|
|
55
|
-
export interface SupervisedProcessLiveHandle {
|
|
56
|
-
readonly completion: Promise<ManagedProcessResult>;
|
|
57
|
-
readonly stderr: Readable;
|
|
58
|
-
readonly stdin: Writable;
|
|
59
|
-
readonly stdout: Readable;
|
|
60
|
-
readonly pid: number;
|
|
61
|
-
readonly shutdownTimeoutMs: number;
|
|
62
|
-
readonly shutdownDeadlineAt: number | null;
|
|
63
|
-
onShutdownStarted(listener: (deadlineAt: number) => void): () => void;
|
|
64
|
-
stop(deadlineAt?: number): Promise<ManagedProcessResult>;
|
|
65
|
-
}
|
|
66
|
-
export interface AttributedProcessLineageTerminationRequest {
|
|
67
|
-
readonly displayLabel: string;
|
|
68
|
-
readonly expectedCreationIdentity?: string;
|
|
69
|
-
readonly pid: number;
|
|
70
|
-
readonly signal: NodeJS.Signals;
|
|
71
|
-
}
|
|
72
|
-
export interface OwnedPosixProcessGroupTerminationRequest {
|
|
73
|
-
readonly displayLabel: string;
|
|
74
|
-
readonly graceMs: number;
|
|
75
|
-
readonly leaderCreationIdentity: string;
|
|
76
|
-
readonly leaderPid: number;
|
|
77
|
-
readonly processGroupId: number;
|
|
78
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface ProcessGroupCleanupOptions {
|
|
2
|
-
readonly forceWaitMs?: number;
|
|
3
|
-
readonly initialSignalSent?: boolean;
|
|
4
|
-
readonly graceMs?: number;
|
|
5
|
-
readonly remainingMs?: () => number;
|
|
6
|
-
readonly groupExists?: (processGroupId: number) => boolean;
|
|
7
|
-
readonly platform?: NodeJS.Platform;
|
|
8
|
-
readonly sendSignal?: (processGroupId: number, signal: NodeJS.Signals) => void;
|
|
9
|
-
readonly sleep?: (ms: number) => Promise<void>;
|
|
10
|
-
}
|
|
11
|
-
export declare function cleanupExitedProcessGroup(pid: number, options?: Readonly<ProcessGroupCleanupOptions>): Promise<Error | null>;
|
|
12
|
-
export declare function processGroupExists(pid: number): boolean;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
interface BoundedProcessIdentityQuery {
|
|
2
|
-
readonly args: readonly string[];
|
|
3
|
-
readonly environment: Readonly<Record<string, string>>;
|
|
4
|
-
readonly executable: string;
|
|
5
|
-
readonly timeoutMs: number;
|
|
6
|
-
readonly windowsHide: boolean;
|
|
7
|
-
}
|
|
8
|
-
export type ProcessCreationIdentityObservation = "different" | "matches" | "unknown";
|
|
9
|
-
export interface ProcessCreationIdentityObservationOptions {
|
|
10
|
-
captureIdentity?(pid: number): string | null;
|
|
11
|
-
inspectLiveness?(pid: number): "absent" | "alive" | "unknown";
|
|
12
|
-
}
|
|
13
|
-
export declare function captureProcessCreationIdentity(pid: unknown): string | null;
|
|
14
|
-
export declare function processCreationIdentityMatches(pid: unknown, expectedIdentity: unknown): boolean;
|
|
15
|
-
export declare function observeProcessCreationIdentity(pid: unknown, expectedIdentity: unknown, options?: Readonly<ProcessCreationIdentityObservationOptions>): ProcessCreationIdentityObservation;
|
|
16
|
-
export declare function parseWindowsProcessCreationIdentity(identity: string): string | null;
|
|
17
|
-
export declare function parseLinuxProcessCreationIdentity(pid: number, stat: string): string;
|
|
18
|
-
/**
|
|
19
|
-
* Parses the C-locale `ps -o pid=,lstart=` representation used by both the
|
|
20
|
-
* single-process identity boundary and the bounded Darwin process-table
|
|
21
|
-
* snapshot. Whitespace is canonicalized so the two producers cannot drift.
|
|
22
|
-
*/
|
|
23
|
-
export declare function parseDarwinProcessCreationIdentity(pid: number, output: string): string;
|
|
24
|
-
export declare function windowsProcessCreationIdentityScript(pid: number): string;
|
|
25
|
-
export declare function runBoundedProcessIdentityQuery(query: Readonly<BoundedProcessIdentityQuery>): string;
|
|
26
|
-
export declare function inspectProcessLiveness(pid: number): "absent" | "alive" | "unknown";
|
|
27
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Maximum combined stdout and stderr bytes retained by supervised process
|
|
3
|
-
* capture. Process supervision owns this resource limit independently of any
|
|
4
|
-
* engine request or result protocol.
|
|
5
|
-
*/
|
|
6
|
-
export declare const MAX_SUPERVISED_PROCESS_CAPTURE_BYTES: number;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type ManagedProcessRequest, type ManagedProcessResult, type SupervisedProcessHandle, type SupervisedProcessLiveHandle, type SupervisedProcessWithoutRecoveryRequest, type SupervisedProcessRequest } from "./process-contracts.js";
|
|
2
|
-
export { type AttributedProcessLineageTerminationRequest, type ManagedProcessCancellationSignal, type ManagedProcessRequest, type ManagedProcessResult, type OwnedPosixProcessGroupTerminationRequest, type SupervisedProcessHandle, type SupervisedProcessLiveHandle, type SupervisedProcessWithoutRecoveryRequest, type SupervisedProcessOutputMode, type SupervisedProcessRecoveryIdentity, type SupervisedProcessReady, type SupervisedProcessRequest, } from "./process-contracts.js";
|
|
3
|
-
export { terminateAttributedProcessLineage, terminateOwnedPosixProcessGroup } from "./recovery.js";
|
|
4
|
-
export { cleanupExitedProcessGroup } from "./process-group.js";
|
|
5
|
-
export declare function runManagedProcess(request: Readonly<ManagedProcessRequest>): Promise<ManagedProcessResult>;
|
|
6
|
-
export declare class ProcessExitedBeforeReadyError extends Error {
|
|
7
|
-
readonly exitCode: number | null;
|
|
8
|
-
readonly exitSignal: NodeJS.Signals | null;
|
|
9
|
-
constructor(exitCode: number | null, exitSignal: NodeJS.Signals | null);
|
|
10
|
-
}
|
|
11
|
-
export declare function startSupervisedProcess(request: Readonly<SupervisedProcessWithoutRecoveryRequest>): SupervisedProcessLiveHandle;
|
|
12
|
-
export declare function startSupervisedProcess(request: Readonly<SupervisedProcessRequest>): SupervisedProcessHandle;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { RuntimeSocket } from "./runtime-socket.js";
|
|
2
|
-
export interface ReadyProcess {
|
|
3
|
-
completion: PromiseLike<ReadyProcessCompletion>;
|
|
4
|
-
}
|
|
5
|
-
export interface ReadyProcessCompletion {
|
|
6
|
-
error?: Error | null;
|
|
7
|
-
exitCode: null | number;
|
|
8
|
-
exitSignal?: NodeJS.Signals | null;
|
|
9
|
-
terminationError?: Error | null;
|
|
10
|
-
}
|
|
11
|
-
export interface WaitForReadyOptions {
|
|
12
|
-
name: string;
|
|
13
|
-
process: ReadyProcess;
|
|
14
|
-
signal?: AbortSignal | null;
|
|
15
|
-
timeoutMs: number;
|
|
16
|
-
url: string;
|
|
17
|
-
}
|
|
18
|
-
export declare const DEFAULT_READY_TIMEOUT_MS = 120000;
|
|
19
|
-
export declare function waitForReady({ name, url, timeoutMs, process, signal, }: Readonly<WaitForReadyOptions>): Promise<void>;
|
|
20
|
-
export declare class ServiceReadinessTimeoutError extends Error {
|
|
21
|
-
constructor(message: string);
|
|
22
|
-
}
|
|
23
|
-
export declare class ServiceExitedBeforeReadyError extends Error {
|
|
24
|
-
readonly outcome: string;
|
|
25
|
-
constructor(message: string, outcome: string, options?: ErrorOptions);
|
|
26
|
-
}
|
|
27
|
-
export declare function serviceCompletionError(name: string, result: Readonly<ReadyProcessCompletion>, phase?: "before becoming ready" | "unexpectedly"): Error;
|
|
28
|
-
export interface EndpointReadinessSuccessfulAttempt {
|
|
29
|
-
durationMs: number;
|
|
30
|
-
error?: undefined;
|
|
31
|
-
host: string;
|
|
32
|
-
ok: true;
|
|
33
|
-
port: number;
|
|
34
|
-
}
|
|
35
|
-
export interface EndpointReadinessFailedAttempt {
|
|
36
|
-
durationMs: number;
|
|
37
|
-
error: string;
|
|
38
|
-
host: string;
|
|
39
|
-
ok: false;
|
|
40
|
-
port: number;
|
|
41
|
-
}
|
|
42
|
-
export type EndpointReadinessAttempt = EndpointReadinessFailedAttempt | EndpointReadinessSuccessfulAttempt;
|
|
43
|
-
export declare function connectEndpoint(endpoint: Readonly<RuntimeSocket>, timeoutMs: number, signal?: AbortSignal): Promise<EndpointReadinessAttempt>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { AttributedProcessLineageTerminationRequest, OwnedPosixProcessGroupTerminationRequest } from "./process-contracts.js";
|
|
2
|
-
export declare function terminateAttributedProcessLineage(request: Readonly<AttributedProcessLineageTerminationRequest>): Promise<void>;
|
|
3
|
-
export declare function terminateOwnedPosixProcessGroup(request: Readonly<OwnedPosixProcessGroupTerminationRequest>): Promise<void>;
|