@gpustack/loopwright 0.0.0-stage → 0.0.3
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/LICENSE +191 -0
- package/README.md +356 -2
- package/bin/loopwright.js +3 -0
- package/node_modules/@loopwright/agent-pi/dist/adapter-v2.d.ts +9 -0
- package/node_modules/@loopwright/agent-pi/dist/adapter-v2.js +122 -0
- package/node_modules/@loopwright/agent-pi/dist/adapter.d.ts +30 -0
- package/node_modules/@loopwright/agent-pi/dist/adapter.js +340 -0
- package/node_modules/@loopwright/agent-pi/dist/admission.d.ts +25 -0
- package/node_modules/@loopwright/agent-pi/dist/admission.js +65 -0
- package/node_modules/@loopwright/agent-pi/dist/artifacts.d.ts +15 -0
- package/node_modules/@loopwright/agent-pi/dist/artifacts.js +76 -0
- package/node_modules/@loopwright/agent-pi/dist/boundary.d.ts +18 -0
- package/node_modules/@loopwright/agent-pi/dist/boundary.js +113 -0
- package/node_modules/@loopwright/agent-pi/dist/broker-channel.d.ts +4 -0
- package/node_modules/@loopwright/agent-pi/dist/broker-channel.js +121 -0
- package/node_modules/@loopwright/agent-pi/dist/candidate.d.ts +96 -0
- package/node_modules/@loopwright/agent-pi/dist/candidate.js +1712 -0
- package/node_modules/@loopwright/agent-pi/dist/capture.d.ts +39 -0
- package/node_modules/@loopwright/agent-pi/dist/capture.js +146 -0
- package/node_modules/@loopwright/agent-pi/dist/cas.d.ts +51 -0
- package/node_modules/@loopwright/agent-pi/dist/cas.js +836 -0
- package/node_modules/@loopwright/agent-pi/dist/catalog-api.d.ts +3 -0
- package/node_modules/@loopwright/agent-pi/dist/catalog-api.js +2 -0
- package/node_modules/@loopwright/agent-pi/dist/catalog.d.ts +39 -0
- package/node_modules/@loopwright/agent-pi/dist/catalog.js +280 -0
- package/node_modules/@loopwright/agent-pi/dist/circuit-breaker-limits.d.ts +9 -0
- package/node_modules/@loopwright/agent-pi/dist/circuit-breaker-limits.js +12 -0
- package/node_modules/@loopwright/agent-pi/dist/containers.d.ts +29 -0
- package/node_modules/@loopwright/agent-pi/dist/containers.js +160 -0
- package/node_modules/@loopwright/agent-pi/dist/context.d.ts +56 -0
- package/node_modules/@loopwright/agent-pi/dist/context.js +351 -0
- package/node_modules/@loopwright/agent-pi/dist/daemon.d.ts +8 -0
- package/node_modules/@loopwright/agent-pi/dist/daemon.js +52 -0
- package/node_modules/@loopwright/agent-pi/dist/deadline.d.ts +6 -0
- package/node_modules/@loopwright/agent-pi/dist/deadline.js +18 -0
- package/node_modules/@loopwright/agent-pi/dist/decode-capture.d.ts +39 -0
- package/node_modules/@loopwright/agent-pi/dist/decode-capture.js +287 -0
- package/node_modules/@loopwright/agent-pi/dist/descriptor.d.ts +12 -0
- package/node_modules/@loopwright/agent-pi/dist/descriptor.js +17 -0
- package/node_modules/@loopwright/agent-pi/dist/docker-absence.d.ts +2 -0
- package/node_modules/@loopwright/agent-pi/dist/docker-absence.js +9 -0
- package/node_modules/@loopwright/agent-pi/dist/errors.d.ts +7 -0
- package/node_modules/@loopwright/agent-pi/dist/errors.js +19 -0
- package/node_modules/@loopwright/agent-pi/dist/event-sequence.d.ts +6 -0
- package/node_modules/@loopwright/agent-pi/dist/event-sequence.js +64 -0
- package/node_modules/@loopwright/agent-pi/dist/events.d.ts +19 -0
- package/node_modules/@loopwright/agent-pi/dist/events.js +132 -0
- package/node_modules/@loopwright/agent-pi/dist/execution-guard.d.ts +9 -0
- package/node_modules/@loopwright/agent-pi/dist/execution-guard.js +25 -0
- package/node_modules/@loopwright/agent-pi/dist/execution-lease.d.ts +24 -0
- package/node_modules/@loopwright/agent-pi/dist/execution-lease.js +316 -0
- package/node_modules/@loopwright/agent-pi/dist/execution.d.ts +32 -0
- package/node_modules/@loopwright/agent-pi/dist/execution.js +476 -0
- package/node_modules/@loopwright/agent-pi/dist/external-mcp.d.ts +87 -0
- package/node_modules/@loopwright/agent-pi/dist/external-mcp.js +526 -0
- package/node_modules/@loopwright/agent-pi/dist/factory-bootstrap.d.ts +15 -0
- package/node_modules/@loopwright/agent-pi/dist/factory-bootstrap.js +74 -0
- package/node_modules/@loopwright/agent-pi/dist/host-session.d.ts +51 -0
- package/node_modules/@loopwright/agent-pi/dist/host-session.js +2094 -0
- package/node_modules/@loopwright/agent-pi/dist/http-mcp.d.ts +32 -0
- package/node_modules/@loopwright/agent-pi/dist/http-mcp.js +353 -0
- package/node_modules/@loopwright/agent-pi/dist/index.d.ts +7 -0
- package/node_modules/@loopwright/agent-pi/dist/index.js +4 -0
- package/node_modules/@loopwright/agent-pi/dist/lifecycle.d.ts +13 -0
- package/node_modules/@loopwright/agent-pi/dist/lifecycle.js +11 -0
- package/node_modules/@loopwright/agent-pi/dist/mcp-process.d.ts +35 -0
- package/node_modules/@loopwright/agent-pi/dist/mcp-process.js +92 -0
- package/node_modules/@loopwright/agent-pi/dist/mcp-transport.d.ts +25 -0
- package/node_modules/@loopwright/agent-pi/dist/mcp-transport.js +63 -0
- package/node_modules/@loopwright/agent-pi/dist/mcp.d.ts +23 -0
- package/node_modules/@loopwright/agent-pi/dist/mcp.js +212 -0
- package/node_modules/@loopwright/agent-pi/dist/operation.d.ts +5 -0
- package/node_modules/@loopwright/agent-pi/dist/operation.js +28 -0
- package/node_modules/@loopwright/agent-pi/dist/policy-v2.d.ts +10 -0
- package/node_modules/@loopwright/agent-pi/dist/policy-v2.js +64 -0
- package/node_modules/@loopwright/agent-pi/dist/policy.d.ts +13 -0
- package/node_modules/@loopwright/agent-pi/dist/policy.js +260 -0
- package/node_modules/@loopwright/agent-pi/dist/preflight.d.ts +60 -0
- package/node_modules/@loopwright/agent-pi/dist/preflight.js +700 -0
- package/node_modules/@loopwright/agent-pi/dist/progress-summary.d.ts +1 -0
- package/node_modules/@loopwright/agent-pi/dist/progress-summary.js +119 -0
- package/node_modules/@loopwright/agent-pi/dist/protocol.d.ts +17 -0
- package/node_modules/@loopwright/agent-pi/dist/protocol.js +131 -0
- package/node_modules/@loopwright/agent-pi/dist/provider.d.ts +62 -0
- package/node_modules/@loopwright/agent-pi/dist/provider.js +217 -0
- package/node_modules/@loopwright/agent-pi/dist/receipt.d.ts +3 -0
- package/node_modules/@loopwright/agent-pi/dist/receipt.js +64 -0
- package/node_modules/@loopwright/agent-pi/dist/recovery.d.ts +6 -0
- package/node_modules/@loopwright/agent-pi/dist/recovery.js +188 -0
- package/node_modules/@loopwright/agent-pi/dist/resources.d.ts +13 -0
- package/node_modules/@loopwright/agent-pi/dist/resources.js +81 -0
- package/node_modules/@loopwright/agent-pi/dist/response.d.ts +20 -0
- package/node_modules/@loopwright/agent-pi/dist/response.js +259 -0
- package/node_modules/@loopwright/agent-pi/dist/runtime-profile.d.ts +6 -0
- package/node_modules/@loopwright/agent-pi/dist/runtime-profile.js +37 -0
- package/node_modules/@loopwright/agent-pi/dist/sdk-worker.d.ts +14 -0
- package/node_modules/@loopwright/agent-pi/dist/sdk-worker.js +633 -0
- package/node_modules/@loopwright/agent-pi/dist/sender.d.ts +46 -0
- package/node_modules/@loopwright/agent-pi/dist/sender.js +553 -0
- package/node_modules/@loopwright/agent-pi/dist/session-host.d.ts +21 -0
- package/node_modules/@loopwright/agent-pi/dist/session-host.js +315 -0
- package/node_modules/@loopwright/agent-pi/dist/snapshot-transfer.d.ts +14 -0
- package/node_modules/@loopwright/agent-pi/dist/snapshot-transfer.js +102 -0
- package/node_modules/@loopwright/agent-pi/dist/snapshot.d.ts +19 -0
- package/node_modules/@loopwright/agent-pi/dist/snapshot.js +121 -0
- package/node_modules/@loopwright/agent-pi/dist/tool-process.d.ts +32 -0
- package/node_modules/@loopwright/agent-pi/dist/tool-process.js +85 -0
- package/node_modules/@loopwright/agent-pi/dist/tool-worker.d.ts +2 -0
- package/node_modules/@loopwright/agent-pi/dist/tool-worker.js +105 -0
- package/node_modules/@loopwright/agent-pi/dist/tools.d.ts +36 -0
- package/node_modules/@loopwright/agent-pi/dist/tools.js +128 -0
- package/node_modules/@loopwright/agent-pi/dist/types-v2.d.ts +71 -0
- package/node_modules/@loopwright/agent-pi/dist/types-v2.js +1 -0
- package/node_modules/@loopwright/agent-pi/dist/types.d.ts +314 -0
- package/node_modules/@loopwright/agent-pi/dist/types.js +1 -0
- package/node_modules/@loopwright/agent-pi/dist/usage.d.ts +18 -0
- package/node_modules/@loopwright/agent-pi/dist/usage.js +314 -0
- package/node_modules/@loopwright/agent-pi/dist/workspace-mcp.d.ts +27 -0
- package/node_modules/@loopwright/agent-pi/dist/workspace-mcp.js +142 -0
- package/node_modules/@loopwright/agent-pi/package.json +24 -0
- package/node_modules/@loopwright/agent-pi/runtime/Dockerfile +8 -0
- package/node_modules/@loopwright/agent-pi/runtime/seccomp.json +1 -0
- package/node_modules/@loopwright/cli/dist/arguments.d.ts +19 -0
- package/node_modules/@loopwright/cli/dist/arguments.js +358 -0
- package/node_modules/@loopwright/cli/dist/closure.d.ts +93 -0
- package/node_modules/@loopwright/cli/dist/closure.js +230 -0
- package/node_modules/@loopwright/cli/dist/draft.d.ts +9 -0
- package/node_modules/@loopwright/cli/dist/draft.js +106 -0
- package/node_modules/@loopwright/cli/dist/failure-matrix.d.ts +9 -0
- package/node_modules/@loopwright/cli/dist/failure-matrix.js +701 -0
- package/node_modules/@loopwright/cli/dist/index.d.ts +6 -0
- package/node_modules/@loopwright/cli/dist/index.js +5 -0
- package/node_modules/@loopwright/cli/dist/main.d.ts +22 -0
- package/node_modules/@loopwright/cli/dist/main.js +1855 -0
- package/node_modules/@loopwright/cli/package.json +16 -0
- package/node_modules/@loopwright/controller/dist/acceptance.d.ts +43 -0
- package/node_modules/@loopwright/controller/dist/acceptance.js +446 -0
- package/node_modules/@loopwright/controller/dist/benchmark-gate.d.ts +273 -0
- package/node_modules/@loopwright/controller/dist/benchmark-gate.js +3147 -0
- package/node_modules/@loopwright/controller/dist/budget-observations.d.ts +25 -0
- package/node_modules/@loopwright/controller/dist/budget-observations.js +139 -0
- package/node_modules/@loopwright/controller/dist/bundle.d.ts +26 -0
- package/node_modules/@loopwright/controller/dist/bundle.js +64 -0
- package/node_modules/@loopwright/controller/dist/capture.d.ts +89 -0
- package/node_modules/@loopwright/controller/dist/capture.js +587 -0
- package/node_modules/@loopwright/controller/dist/compile.d.ts +3 -0
- package/node_modules/@loopwright/controller/dist/compile.js +402 -0
- package/node_modules/@loopwright/controller/dist/config.d.ts +22 -0
- package/node_modules/@loopwright/controller/dist/config.js +255 -0
- package/node_modules/@loopwright/controller/dist/controller.d.ts +177 -0
- package/node_modules/@loopwright/controller/dist/controller.js +2135 -0
- package/node_modules/@loopwright/controller/dist/credentials.d.ts +29 -0
- package/node_modules/@loopwright/controller/dist/credentials.js +189 -0
- package/node_modules/@loopwright/controller/dist/deadlines.d.ts +18 -0
- package/node_modules/@loopwright/controller/dist/deadlines.js +71 -0
- package/node_modules/@loopwright/controller/dist/errors.d.ts +27 -0
- package/node_modules/@loopwright/controller/dist/errors.js +41 -0
- package/node_modules/@loopwright/controller/dist/events.d.ts +52 -0
- package/node_modules/@loopwright/controller/dist/events.js +228 -0
- package/node_modules/@loopwright/controller/dist/files.d.ts +51 -0
- package/node_modules/@loopwright/controller/dist/files.js +386 -0
- package/node_modules/@loopwright/controller/dist/finalize.d.ts +25 -0
- package/node_modules/@loopwright/controller/dist/finalize.js +32 -0
- package/node_modules/@loopwright/controller/dist/gate.d.ts +84 -0
- package/node_modules/@loopwright/controller/dist/gate.js +640 -0
- package/node_modules/@loopwright/controller/dist/git-objects.d.ts +11 -0
- package/node_modules/@loopwright/controller/dist/git-objects.js +59 -0
- package/node_modules/@loopwright/controller/dist/git-reader.d.ts +17 -0
- package/node_modules/@loopwright/controller/dist/git-reader.js +40 -0
- package/node_modules/@loopwright/controller/dist/handlers.d.ts +6 -0
- package/node_modules/@loopwright/controller/dist/handlers.js +45 -0
- package/node_modules/@loopwright/controller/dist/handoff.d.ts +71 -0
- package/node_modules/@loopwright/controller/dist/handoff.js +554 -0
- package/node_modules/@loopwright/controller/dist/index.d.ts +41 -0
- package/node_modules/@loopwright/controller/dist/index.js +21 -0
- package/node_modules/@loopwright/controller/dist/inspect.d.ts +30 -0
- package/node_modules/@loopwright/controller/dist/inspect.js +372 -0
- package/node_modules/@loopwright/controller/dist/interpolation.d.ts +9 -0
- package/node_modules/@loopwright/controller/dist/interpolation.js +79 -0
- package/node_modules/@loopwright/controller/dist/ownership.d.ts +41 -0
- package/node_modules/@loopwright/controller/dist/ownership.js +666 -0
- package/node_modules/@loopwright/controller/dist/parser.d.ts +5 -0
- package/node_modules/@loopwright/controller/dist/parser.js +200 -0
- package/node_modules/@loopwright/controller/dist/progress.d.ts +41 -0
- package/node_modules/@loopwright/controller/dist/progress.js +904 -0
- package/node_modules/@loopwright/controller/dist/publication.d.ts +60 -0
- package/node_modules/@loopwright/controller/dist/publication.js +329 -0
- package/node_modules/@loopwright/controller/dist/reconcile.d.ts +26 -0
- package/node_modules/@loopwright/controller/dist/reconcile.js +1378 -0
- package/node_modules/@loopwright/controller/dist/recovery.d.ts +10 -0
- package/node_modules/@loopwright/controller/dist/recovery.js +315 -0
- package/node_modules/@loopwright/controller/dist/refusal-record.d.ts +43 -0
- package/node_modules/@loopwright/controller/dist/refusal-record.js +150 -0
- package/node_modules/@loopwright/controller/dist/registry.d.ts +6 -0
- package/node_modules/@loopwright/controller/dist/registry.js +374 -0
- package/node_modules/@loopwright/controller/dist/repair.d.ts +31 -0
- package/node_modules/@loopwright/controller/dist/repair.js +102 -0
- package/node_modules/@loopwright/controller/dist/report.d.ts +64 -0
- package/node_modules/@loopwright/controller/dist/report.js +596 -0
- package/node_modules/@loopwright/controller/dist/retained.d.ts +284 -0
- package/node_modules/@loopwright/controller/dist/retained.js +193 -0
- package/node_modules/@loopwright/controller/dist/rules.d.ts +31 -0
- package/node_modules/@loopwright/controller/dist/rules.js +110 -0
- package/node_modules/@loopwright/controller/dist/run-eval.d.ts +115 -0
- package/node_modules/@loopwright/controller/dist/run-eval.js +959 -0
- package/node_modules/@loopwright/controller/dist/scheduler.d.ts +10 -0
- package/node_modules/@loopwright/controller/dist/scheduler.js +41 -0
- package/node_modules/@loopwright/controller/dist/schema.d.ts +17 -0
- package/node_modules/@loopwright/controller/dist/schema.js +78 -0
- package/node_modules/@loopwright/controller/dist/source.d.ts +69 -0
- package/node_modules/@loopwright/controller/dist/source.js +872 -0
- package/node_modules/@loopwright/controller/dist/step.d.ts +38 -0
- package/node_modules/@loopwright/controller/dist/step.js +1776 -0
- package/node_modules/@loopwright/controller/dist/storage.d.ts +90 -0
- package/node_modules/@loopwright/controller/dist/storage.js +1345 -0
- package/node_modules/@loopwright/controller/dist/submission.d.ts +51 -0
- package/node_modules/@loopwright/controller/dist/submission.js +292 -0
- package/node_modules/@loopwright/controller/dist/types.d.ts +585 -0
- package/node_modules/@loopwright/controller/dist/types.js +9 -0
- package/node_modules/@loopwright/controller/dist/verification.d.ts +124 -0
- package/node_modules/@loopwright/controller/dist/verification.js +1308 -0
- package/node_modules/@loopwright/controller/dist/verifier-protocol.d.ts +105 -0
- package/node_modules/@loopwright/controller/dist/verifier-protocol.js +1312 -0
- package/node_modules/@loopwright/controller/dist/verifier-worker.d.ts +1 -0
- package/node_modules/@loopwright/controller/dist/verifier-worker.js +33 -0
- package/node_modules/@loopwright/controller/package.json +12 -0
- package/node_modules/@loopwright/core/dist/acceptance.d.ts +108 -0
- package/node_modules/@loopwright/core/dist/acceptance.js +327 -0
- package/node_modules/@loopwright/core/dist/artifacts.d.ts +63 -0
- package/node_modules/@loopwright/core/dist/artifacts.js +356 -0
- package/node_modules/@loopwright/core/dist/boundary.d.ts +21 -0
- package/node_modules/@loopwright/core/dist/boundary.js +484 -0
- package/node_modules/@loopwright/core/dist/contracts.d.ts +287 -0
- package/node_modules/@loopwright/core/dist/contracts.js +694 -0
- package/node_modules/@loopwright/core/dist/diagnostics.d.ts +21 -0
- package/node_modules/@loopwright/core/dist/diagnostics.js +51 -0
- package/node_modules/@loopwright/core/dist/evidence.d.ts +92 -0
- package/node_modules/@loopwright/core/dist/evidence.js +85 -0
- package/node_modules/@loopwright/core/dist/graph.d.ts +8 -0
- package/node_modules/@loopwright/core/dist/graph.js +44 -0
- package/node_modules/@loopwright/core/dist/identity.d.ts +162 -0
- package/node_modules/@loopwright/core/dist/identity.js +80 -0
- package/node_modules/@loopwright/core/dist/index.d.ts +30 -0
- package/node_modules/@loopwright/core/dist/index.js +39 -0
- package/node_modules/@loopwright/core/dist/limits.d.ts +99 -0
- package/node_modules/@loopwright/core/dist/limits.js +59 -0
- package/node_modules/@loopwright/core/dist/results.d.ts +161 -0
- package/node_modules/@loopwright/core/dist/results.js +98 -0
- package/node_modules/@loopwright/core/dist/scope.d.ts +13 -0
- package/node_modules/@loopwright/core/dist/scope.js +154 -0
- package/node_modules/@loopwright/core/dist/scrubber.d.ts +13 -0
- package/node_modules/@loopwright/core/dist/scrubber.js +63 -0
- package/node_modules/@loopwright/core/dist/usage.d.ts +68 -0
- package/node_modules/@loopwright/core/dist/usage.js +56 -0
- package/node_modules/@loopwright/core/package.json +12 -0
- package/node_modules/@loopwright/decisions/dist/benchmark.d.ts +23 -0
- package/node_modules/@loopwright/decisions/dist/benchmark.js +337 -0
- package/node_modules/@loopwright/decisions/dist/client.d.ts +74 -0
- package/node_modules/@loopwright/decisions/dist/client.js +292 -0
- package/node_modules/@loopwright/decisions/dist/index.d.ts +15 -0
- package/node_modules/@loopwright/decisions/dist/index.js +8 -0
- package/node_modules/@loopwright/decisions/dist/nodes.d.ts +63 -0
- package/node_modules/@loopwright/decisions/dist/nodes.js +282 -0
- package/node_modules/@loopwright/decisions/dist/primitives.d.ts +36 -0
- package/node_modules/@loopwright/decisions/dist/primitives.js +300 -0
- package/node_modules/@loopwright/decisions/dist/redaction.d.ts +23 -0
- package/node_modules/@loopwright/decisions/dist/redaction.js +146 -0
- package/node_modules/@loopwright/decisions/dist/router.d.ts +55 -0
- package/node_modules/@loopwright/decisions/dist/router.js +248 -0
- package/node_modules/@loopwright/decisions/dist/schema.d.ts +25 -0
- package/node_modules/@loopwright/decisions/dist/schema.js +536 -0
- package/node_modules/@loopwright/decisions/dist/types.d.ts +394 -0
- package/node_modules/@loopwright/decisions/dist/types.js +80 -0
- package/node_modules/@loopwright/decisions/package.json +12 -0
- package/node_modules/@loopwright/github-app/dist/action.d.ts +90 -0
- package/node_modules/@loopwright/github-app/dist/action.js +2429 -0
- package/node_modules/@loopwright/github-app/dist/config.d.ts +23 -0
- package/node_modules/@loopwright/github-app/dist/config.js +297 -0
- package/node_modules/@loopwright/github-app/dist/digests.d.ts +1 -0
- package/node_modules/@loopwright/github-app/dist/digests.js +1 -0
- package/node_modules/@loopwright/github-app/dist/index.d.ts +14 -0
- package/node_modules/@loopwright/github-app/dist/index.js +13 -0
- package/node_modules/@loopwright/github-app/dist/models-config.d.ts +1 -0
- package/node_modules/@loopwright/github-app/dist/models-config.js +1 -0
- package/node_modules/@loopwright/github-app/dist/output-format.d.ts +1 -0
- package/node_modules/@loopwright/github-app/dist/output-format.js +1 -0
- package/node_modules/@loopwright/github-app/dist/preflight.d.ts +1 -0
- package/node_modules/@loopwright/github-app/dist/preflight.js +1 -0
- package/node_modules/@loopwright/github-app/dist/publisher.d.ts +58 -0
- package/node_modules/@loopwright/github-app/dist/publisher.js +1368 -0
- package/node_modules/@loopwright/github-app/dist/qualification.d.ts +1 -0
- package/node_modules/@loopwright/github-app/dist/qualification.js +1 -0
- package/node_modules/@loopwright/github-app/dist/sandbox.d.ts +1 -0
- package/node_modules/@loopwright/github-app/dist/sandbox.js +1 -0
- package/node_modules/@loopwright/github-app/dist/schema.d.ts +1 -0
- package/node_modules/@loopwright/github-app/dist/schema.js +1 -0
- package/node_modules/@loopwright/github-app/dist/service.d.ts +52 -0
- package/node_modules/@loopwright/github-app/dist/service.js +1658 -0
- package/node_modules/@loopwright/github-app/dist/suite-pr-lookup.d.ts +90 -0
- package/node_modules/@loopwright/github-app/dist/suite-pr-lookup.js +392 -0
- package/node_modules/@loopwright/github-app/dist/taskpack.d.ts +1 -0
- package/node_modules/@loopwright/github-app/dist/taskpack.js +1 -0
- package/node_modules/@loopwright/github-app/dist/tenant-queue.d.ts +44 -0
- package/node_modules/@loopwright/github-app/dist/tenant-queue.js +423 -0
- package/node_modules/@loopwright/github-app/dist/token-broker.d.ts +50 -0
- package/node_modules/@loopwright/github-app/dist/token-broker.js +262 -0
- package/node_modules/@loopwright/github-app/dist/turnkey-memory.d.ts +35 -0
- package/node_modules/@loopwright/github-app/dist/turnkey-memory.js +1654 -0
- package/node_modules/@loopwright/github-app/dist/turnkey.d.ts +16 -0
- package/node_modules/@loopwright/github-app/dist/turnkey.js +34 -0
- package/node_modules/@loopwright/github-app/dist/types.d.ts +220 -0
- package/node_modules/@loopwright/github-app/dist/types.js +14 -0
- package/node_modules/@loopwright/github-app/dist/upstreams.d.ts +13 -0
- package/node_modules/@loopwright/github-app/dist/upstreams.js +65 -0
- package/node_modules/@loopwright/github-app/dist/webhook.d.ts +34 -0
- package/node_modules/@loopwright/github-app/dist/webhook.js +241 -0
- package/node_modules/@loopwright/github-app/dist/yaml.d.ts +1 -0
- package/node_modules/@loopwright/github-app/dist/yaml.js +1 -0
- package/node_modules/@loopwright/github-app/package.json +12 -0
- package/node_modules/@loopwright/hardware-runner/dist/config.d.ts +48 -0
- package/node_modules/@loopwright/hardware-runner/dist/config.js +719 -0
- package/node_modules/@loopwright/hardware-runner/dist/evaluator.d.ts +230 -0
- package/node_modules/@loopwright/hardware-runner/dist/evaluator.js +3178 -0
- package/node_modules/@loopwright/hardware-runner/dist/index.d.ts +13 -0
- package/node_modules/@loopwright/hardware-runner/dist/index.js +9 -0
- package/node_modules/@loopwright/hardware-runner/dist/provenance.d.ts +128 -0
- package/node_modules/@loopwright/hardware-runner/dist/provenance.js +1500 -0
- package/node_modules/@loopwright/hardware-runner/dist/queue.d.ts +81 -0
- package/node_modules/@loopwright/hardware-runner/dist/queue.js +1081 -0
- package/node_modules/@loopwright/hardware-runner/dist/relay-server.d.ts +13 -0
- package/node_modules/@loopwright/hardware-runner/dist/relay-server.js +2997 -0
- package/node_modules/@loopwright/hardware-runner/dist/types.d.ts +239 -0
- package/node_modules/@loopwright/hardware-runner/dist/types.js +12 -0
- package/node_modules/@loopwright/hardware-runner/dist/worker.d.ts +49 -0
- package/node_modules/@loopwright/hardware-runner/dist/worker.js +1648 -0
- package/node_modules/@loopwright/hardware-runner/package.json +12 -0
- package/node_modules/@loopwright/memory/dist/cas.d.ts +21 -0
- package/node_modules/@loopwright/memory/dist/cas.js +510 -0
- package/node_modules/@loopwright/memory/dist/compaction.d.ts +18 -0
- package/node_modules/@loopwright/memory/dist/compaction.js +110 -0
- package/node_modules/@loopwright/memory/dist/finalizer.d.ts +23 -0
- package/node_modules/@loopwright/memory/dist/finalizer.js +538 -0
- package/node_modules/@loopwright/memory/dist/index.d.ts +9 -0
- package/node_modules/@loopwright/memory/dist/index.js +8 -0
- package/node_modules/@loopwright/memory/dist/schema.d.ts +36 -0
- package/node_modules/@loopwright/memory/dist/schema.js +510 -0
- package/node_modules/@loopwright/memory/dist/selector.d.ts +7 -0
- package/node_modules/@loopwright/memory/dist/selector.js +157 -0
- package/node_modules/@loopwright/memory/dist/store.d.ts +51 -0
- package/node_modules/@loopwright/memory/dist/store.js +554 -0
- package/node_modules/@loopwright/memory/dist/types.d.ts +442 -0
- package/node_modules/@loopwright/memory/dist/types.js +8 -0
- package/node_modules/@loopwright/memory/dist/verifier.d.ts +5 -0
- package/node_modules/@loopwright/memory/dist/verifier.js +328 -0
- package/node_modules/@loopwright/memory/package.json +12 -0
- package/node_modules/@loopwright/state/dist/admission.d.ts +321 -0
- package/node_modules/@loopwright/state/dist/admission.js +199 -0
- package/node_modules/@loopwright/state/dist/boundary.d.ts +53 -0
- package/node_modules/@loopwright/state/dist/boundary.js +194 -0
- package/node_modules/@loopwright/state/dist/checkpoint.d.ts +16 -0
- package/node_modules/@loopwright/state/dist/checkpoint.js +84 -0
- package/node_modules/@loopwright/state/dist/clock.d.ts +8 -0
- package/node_modules/@loopwright/state/dist/clock.js +27 -0
- package/node_modules/@loopwright/state/dist/connection.d.ts +55 -0
- package/node_modules/@loopwright/state/dist/connection.js +391 -0
- package/node_modules/@loopwright/state/dist/errors.d.ts +13 -0
- package/node_modules/@loopwright/state/dist/errors.js +34 -0
- package/node_modules/@loopwright/state/dist/index.d.ts +3 -0
- package/node_modules/@loopwright/state/dist/index.js +1 -0
- package/node_modules/@loopwright/state/dist/journal.d.ts +119 -0
- package/node_modules/@loopwright/state/dist/journal.js +72 -0
- package/node_modules/@loopwright/state/dist/model.d.ts +40 -0
- package/node_modules/@loopwright/state/dist/model.js +58 -0
- package/node_modules/@loopwright/state/dist/ownership.d.ts +14 -0
- package/node_modules/@loopwright/state/dist/ownership.js +45 -0
- package/node_modules/@loopwright/state/dist/pages.d.ts +11 -0
- package/node_modules/@loopwright/state/dist/pages.js +41 -0
- package/node_modules/@loopwright/state/dist/receipts.d.ts +33 -0
- package/node_modules/@loopwright/state/dist/receipts.js +97 -0
- package/node_modules/@loopwright/state/dist/schema.d.ts +28 -0
- package/node_modules/@loopwright/state/dist/schema.js +41 -0
- package/node_modules/@loopwright/state/dist/settlement.d.ts +10 -0
- package/node_modules/@loopwright/state/dist/settlement.js +129 -0
- package/node_modules/@loopwright/state/dist/store.d.ts +52 -0
- package/node_modules/@loopwright/state/dist/store.js +100 -0
- package/node_modules/@loopwright/state/dist/types.d.ts +315 -0
- package/node_modules/@loopwright/state/dist/types.js +1 -0
- package/node_modules/@loopwright/state/package.json +12 -0
- package/node_modules/@loopwright/taskpack/dist/baseline-align.d.ts +195 -0
- package/node_modules/@loopwright/taskpack/dist/baseline-align.js +1847 -0
- package/node_modules/@loopwright/taskpack/dist/digests.d.ts +61 -0
- package/node_modules/@loopwright/taskpack/dist/digests.js +715 -0
- package/node_modules/@loopwright/taskpack/dist/index.d.ts +18 -0
- package/node_modules/@loopwright/taskpack/dist/index.js +17 -0
- package/node_modules/@loopwright/taskpack/dist/models-config.d.ts +112 -0
- package/node_modules/@loopwright/taskpack/dist/models-config.js +1026 -0
- package/node_modules/@loopwright/taskpack/dist/output-format.d.ts +28 -0
- package/node_modules/@loopwright/taskpack/dist/output-format.js +157 -0
- package/node_modules/@loopwright/taskpack/dist/preflight.d.ts +130 -0
- package/node_modules/@loopwright/taskpack/dist/preflight.js +1497 -0
- package/node_modules/@loopwright/taskpack/dist/qualification.d.ts +23 -0
- package/node_modules/@loopwright/taskpack/dist/qualification.js +120 -0
- package/node_modules/@loopwright/taskpack/dist/sandbox.d.ts +121 -0
- package/node_modules/@loopwright/taskpack/dist/sandbox.js +2642 -0
- package/node_modules/@loopwright/taskpack/dist/schema.d.ts +197 -0
- package/node_modules/@loopwright/taskpack/dist/schema.js +4189 -0
- package/node_modules/@loopwright/taskpack/dist/scrubber.d.ts +47 -0
- package/node_modules/@loopwright/taskpack/dist/scrubber.js +283 -0
- package/node_modules/@loopwright/taskpack/dist/suite.d.ts +124 -0
- package/node_modules/@loopwright/taskpack/dist/suite.js +3256 -0
- package/node_modules/@loopwright/taskpack/dist/taskpack.d.ts +154 -0
- package/node_modules/@loopwright/taskpack/dist/taskpack.js +3634 -0
- package/node_modules/@loopwright/taskpack/dist/turnkey-memory.d.ts +122 -0
- package/node_modules/@loopwright/taskpack/dist/turnkey-memory.js +483 -0
- package/node_modules/@loopwright/taskpack/dist/turnkey.d.ts +437 -0
- package/node_modules/@loopwright/taskpack/dist/turnkey.js +7335 -0
- package/node_modules/@loopwright/taskpack/dist/types.d.ts +1274 -0
- package/node_modules/@loopwright/taskpack/dist/types.js +99 -0
- package/node_modules/@loopwright/taskpack/dist/upstreams.d.ts +261 -0
- package/node_modules/@loopwright/taskpack/dist/upstreams.js +2242 -0
- package/node_modules/@loopwright/taskpack/dist/yaml.d.ts +18 -0
- package/node_modules/@loopwright/taskpack/dist/yaml.js +167 -0
- package/node_modules/@loopwright/taskpack/package.json +12 -0
- package/node_modules/@loopwright/taskpack-runner/dist/compile-taskpack.d.ts +137 -0
- package/node_modules/@loopwright/taskpack-runner/dist/compile-taskpack.js +474 -0
- package/node_modules/@loopwright/taskpack-runner/dist/corpus.d.ts +8 -0
- package/node_modules/@loopwright/taskpack-runner/dist/corpus.js +129 -0
- package/node_modules/@loopwright/taskpack-runner/dist/index.d.ts +13 -0
- package/node_modules/@loopwright/taskpack-runner/dist/index.js +7 -0
- package/node_modules/@loopwright/taskpack-runner/dist/intake.d.ts +149 -0
- package/node_modules/@loopwright/taskpack-runner/dist/intake.js +135 -0
- package/node_modules/@loopwright/taskpack-runner/dist/parity.d.ts +130 -0
- package/node_modules/@loopwright/taskpack-runner/dist/parity.js +927 -0
- package/node_modules/@loopwright/taskpack-runner/dist/python-bridge.d.ts +68 -0
- package/node_modules/@loopwright/taskpack-runner/dist/python-bridge.js +517 -0
- package/node_modules/@loopwright/taskpack-runner/dist/service.d.ts +149 -0
- package/node_modules/@loopwright/taskpack-runner/dist/service.js +1796 -0
- package/node_modules/@loopwright/taskpack-runner/dist/types.d.ts +29 -0
- package/node_modules/@loopwright/taskpack-runner/dist/types.js +11 -0
- package/node_modules/@loopwright/taskpack-runner/package.json +12 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/README.md +77 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/docs/support-records.md +57 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/docs/supported-runners.md +98 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/manifest.json +205 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/pack/expand_matrix.sh +273 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/pack/matrix.yaml +280 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/pack/resolve_dockerfile.sh +24 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/pyproject.toml +46 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/runtime_runner/runner.py.json +5270 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tests/auto_sync/fixtures/discovery/legacy-support.md +86 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tests/auto_sync/fixtures/github/service.py +401 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tests/auto_sync/fixtures/proposals/analysis.json +95 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tests/auto_sync/fixtures/proposals/ready.json +109 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tests/auto_sync/test_assemble.py +263 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tests/auto_sync/test_check_draft.py +333 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tests/auto_sync/test_checks.py +1099 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tests/auto_sync/test_discovery.py +817 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tests/auto_sync/test_proposal.py +658 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tests/auto_sync/test_publish.py +987 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tests/auto_sync/test_summary.py +107 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tools/auto_sync/agent.py +610 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tools/auto_sync/assemble.py +84 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tools/auto_sync/check_draft.py +94 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tools/auto_sync/checks.py +1002 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tools/auto_sync/discovery.py +789 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tools/auto_sync/model.py +557 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tools/auto_sync/progress.py +174 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tools/auto_sync/prompts/analysis.md +40 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tools/auto_sync/prompts/proposal.md +65 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tools/auto_sync/prompts/repair.md +17 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tools/auto_sync/proposal.py +903 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tools/auto_sync/publish.py +997 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tools/auto_sync/summary.py +131 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tools/auto_sync/tool-versions.json +133 -0
- package/node_modules/package-lock.json +3025 -0
- package/package-lock.json +3025 -0
- package/package.json +52 -4
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ClockBasis, ClockSample, DeploymentHostProfileInput, HostQualification, McpAuthConfigurationInput, McpAuthValidation } from './types.js';
|
|
2
|
+
/** Qualified deployment host allowlist and unqualified filesystem denylist. */
|
|
3
|
+
export declare const QUALIFIED_PLATFORM_ARCH: readonly (readonly [string, string])[];
|
|
4
|
+
export declare const UNQUALIFIED_FILESYSTEMS: readonly string[];
|
|
5
|
+
export declare const QUALIFIED_NODE_VERSION_PATTERN: RegExp;
|
|
6
|
+
/**
|
|
7
|
+
* Local mirror of the `@loopwright/state` `clockValid` contract (monotonic non-decrease plus adjacent and
|
|
8
|
+
* cumulative drift within 1000ms); that helper is not exported from `@loopwright/state` and this package must
|
|
9
|
+
* not change its public exports.
|
|
10
|
+
*/
|
|
11
|
+
export declare function clockValid(basis: ClockBasis, last: ClockSample, now: ClockSample): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Fail-closed deployment host qualification: platform/arch allowlist, qualified Node runtime, non-network
|
|
14
|
+
* filesystem, clock continuity within the 1000ms drift budget, a bounded exclusive storage probe, and
|
|
15
|
+
* storage-profile rules that never silently reset budgets after host loss.
|
|
16
|
+
*/
|
|
17
|
+
export declare function qualifyDeploymentHostProfile(input: DeploymentHostProfileInput): Promise<HostQualification>;
|
|
18
|
+
/**
|
|
19
|
+
* Fail-closed interactive MCP authentication refusal: OAuth or browser-bound declarations and runtime
|
|
20
|
+
* `WWW-Authenticate` challenges are refused with no browser launches, no loopback listeners, and no
|
|
21
|
+
* anonymous fallback. This function performs no I/O.
|
|
22
|
+
*/
|
|
23
|
+
export declare function validateMcpAuthConfiguration(input: McpAuthConfigurationInput): McpAuthValidation;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { constants } from 'node:fs';
|
|
2
|
+
import { open, rename, rm } from 'node:fs/promises';
|
|
3
|
+
import { join } from 'node:path';
|
|
4
|
+
import { randomBytes } from 'node:crypto';
|
|
5
|
+
/** Qualified deployment host allowlist and unqualified filesystem denylist. */
|
|
6
|
+
export const QUALIFIED_PLATFORM_ARCH = Object.freeze([
|
|
7
|
+
['darwin', 'arm64'], ['linux', 'arm64'], ['linux', 'x64'],
|
|
8
|
+
]);
|
|
9
|
+
export const UNQUALIFIED_FILESYSTEMS = Object.freeze([
|
|
10
|
+
'nfs', 'smb', 'cifs', 'fuse', 'sshfs', 'webdav', 'tmpfs-ephemeral-unverified',
|
|
11
|
+
]);
|
|
12
|
+
export const QUALIFIED_NODE_VERSION_PATTERN = /^v?26\./;
|
|
13
|
+
const MCP_OAUTH_AUTH_TYPES = new Set(['oauth', 'oauth2', 'browser', 'device_code', 'interactive']);
|
|
14
|
+
const DRIFT_LIMIT_MS = 1000n;
|
|
15
|
+
/**
|
|
16
|
+
* Local mirror of the `@loopwright/state` `clockValid` contract (monotonic non-decrease plus adjacent and
|
|
17
|
+
* cumulative drift within 1000ms); that helper is not exported from `@loopwright/state` and this package must
|
|
18
|
+
* not change its public exports.
|
|
19
|
+
*/
|
|
20
|
+
export function clockValid(basis, last, now) {
|
|
21
|
+
const mono = (sample) => typeof sample.monotonicMs === 'string' && /^[0-9]{1,20}$/.test(sample.monotonicMs) ? BigInt(sample.monotonicMs) : null;
|
|
22
|
+
const monoNow = mono(now), monoLast = mono(last), monoBase = mono(basis.created);
|
|
23
|
+
if (monoNow === null || monoLast === null || monoBase === null)
|
|
24
|
+
return false;
|
|
25
|
+
if (monoNow < monoLast || now.wallMs < last.wallMs)
|
|
26
|
+
return false;
|
|
27
|
+
const adjacent = BigInt(now.wallMs - last.wallMs) - (monoNow - monoLast);
|
|
28
|
+
const cumulative = BigInt(now.wallMs - basis.created.wallMs) - (monoNow - monoBase);
|
|
29
|
+
return adjacent >= -DRIFT_LIMIT_MS && adjacent <= DRIFT_LIMIT_MS && cumulative >= -DRIFT_LIMIT_MS && cumulative <= DRIFT_LIMIT_MS;
|
|
30
|
+
}
|
|
31
|
+
function unqualified(reason) {
|
|
32
|
+
return { ok: false, code: 'HOST_PROFILE_UNQUALIFIED', reason };
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Bounded `O_CREAT | O_EXCL | O_NOFOLLOW` lockfile probe: create, write, fsync, atomic rename, then remove.
|
|
36
|
+
* Any failure (including an existing probe path) refuses the host; no probe residue remains on return.
|
|
37
|
+
*/
|
|
38
|
+
async function runStorageProbe(probeDirectory) {
|
|
39
|
+
const unique = `${process.pid}-${randomBytes(6).toString('hex')}`;
|
|
40
|
+
const staging = join(probeDirectory, `.loopwright-probe-${unique}.tmp`);
|
|
41
|
+
const final = join(probeDirectory, `.loopwright-probe-${unique}.lock`);
|
|
42
|
+
let handle = null;
|
|
43
|
+
try {
|
|
44
|
+
handle = await open(staging, constants.O_WRONLY | constants.O_CREAT | constants.O_EXCL | ('O_NOFOLLOW' in constants ? constants.O_NOFOLLOW : 0), 0o600);
|
|
45
|
+
await handle.writeFile('probe');
|
|
46
|
+
await handle.sync();
|
|
47
|
+
await handle.close();
|
|
48
|
+
handle = null;
|
|
49
|
+
await rename(staging, final);
|
|
50
|
+
}
|
|
51
|
+
catch (error) {
|
|
52
|
+
return unqualified(`probe directory failed the exclusive lockfile probe: ${error instanceof Error ? error.message.slice(0, 120) : 'unknown error'}`);
|
|
53
|
+
}
|
|
54
|
+
finally {
|
|
55
|
+
if (handle !== null)
|
|
56
|
+
await handle.close().catch(() => undefined);
|
|
57
|
+
await rm(staging, { force: true }).catch(() => undefined);
|
|
58
|
+
await rm(final, { force: true }).catch(() => undefined);
|
|
59
|
+
}
|
|
60
|
+
return { ok: true };
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Fail-closed deployment host qualification: platform/arch allowlist, qualified Node runtime, non-network
|
|
64
|
+
* filesystem, clock continuity within the 1000ms drift budget, a bounded exclusive storage probe, and
|
|
65
|
+
* storage-profile rules that never silently reset budgets after host loss.
|
|
66
|
+
*/
|
|
67
|
+
export async function qualifyDeploymentHostProfile(input) {
|
|
68
|
+
const platformMatch = QUALIFIED_PLATFORM_ARCH.some(([platform, arch]) => platform === input.platform && arch === input.arch);
|
|
69
|
+
if (!platformMatch)
|
|
70
|
+
return unqualified(`(platform, arch) = (${input.platform}, ${input.arch}) is not a qualified deployment target`);
|
|
71
|
+
if (typeof input.nodeVersion !== 'string' || !QUALIFIED_NODE_VERSION_PATTERN.test(input.nodeVersion)) {
|
|
72
|
+
return unqualified(`nodeVersion ${String(input.nodeVersion)} does not match the qualified 26.x runtime`);
|
|
73
|
+
}
|
|
74
|
+
if (UNQUALIFIED_FILESYSTEMS.includes(input.filesystemType)) {
|
|
75
|
+
return unqualified(`filesystemType ${input.filesystemType} is not a qualified local POSIX filesystem`);
|
|
76
|
+
}
|
|
77
|
+
if (!clockValid(input.clockBasis, input.previousClockSample, input.currentClockSample)) {
|
|
78
|
+
return { ok: false, code: 'HOST_CLOCK_UNTRUSTED', reason: 'clock samples moved backward or drifted beyond the 1000ms budget' };
|
|
79
|
+
}
|
|
80
|
+
const storageProfile = input.storageProfile;
|
|
81
|
+
if (storageProfile === 'actions-basic' && input.autoResumeOnHostLossRequested) {
|
|
82
|
+
return {
|
|
83
|
+
ok: false, code: 'STORAGE_PROFILE_INSUFFICIENT',
|
|
84
|
+
reason: 'an actions-basic runner must never silently restart a cycle with a fresh full budget after host loss',
|
|
85
|
+
recommendedRunStatus: 'reconcile_required',
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
if (input.autoResumeOnHostLossRequested && !input.hasVerifiedCheckpointLedger) {
|
|
89
|
+
return {
|
|
90
|
+
ok: false, code: 'STORAGE_PROFILE_INSUFFICIENT',
|
|
91
|
+
reason: 'resuming after an interrupted run requires a verified checkpoint ledger',
|
|
92
|
+
recommendedRunStatus: 'reconcile_required',
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
if (input.probeDirectory !== undefined) {
|
|
96
|
+
return runStorageProbe(input.probeDirectory);
|
|
97
|
+
}
|
|
98
|
+
return { ok: true };
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Fail-closed interactive MCP authentication refusal: OAuth or browser-bound declarations and runtime
|
|
102
|
+
* `WWW-Authenticate` challenges are refused with no browser launches, no loopback listeners, and no
|
|
103
|
+
* anonymous fallback. This function performs no I/O.
|
|
104
|
+
*/
|
|
105
|
+
export function validateMcpAuthConfiguration(input) {
|
|
106
|
+
for (const server of input.servers) {
|
|
107
|
+
const type = server.auth?.type;
|
|
108
|
+
if (typeof type === 'string' && MCP_OAUTH_AUTH_TYPES.has(type)) {
|
|
109
|
+
return { ok: false, code: 'MCP_OAUTH_UNSUPPORTED', reason: `MCP server ${server.serverId} declares ${type} authentication, which the control plane never performs` };
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
const challenge = input.transportChallenge;
|
|
113
|
+
if (challenge !== undefined && challenge !== null && (challenge.status === 401 || challenge.status === 403)) {
|
|
114
|
+
const header = challenge.wwwAuthenticate ?? '';
|
|
115
|
+
if (/Bearer|OAuth|authorization_uri/i.test(header)) {
|
|
116
|
+
return { ok: false, code: 'MCP_AUTHENTICATION_REQUIRED', reason: `MCP transport answered ${challenge.status} with an interactive authentication challenge` };
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
return { ok: true };
|
|
120
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { type CompiledLinuxBwrapCommand, type CompiledMacosSeatbeltProfile, type Digest, type ExecutionHostPolicy, type NegotiatedSandboxBackend, type PolicyProfile, type SandboxBackendId, type SandboxCapability, type SandboxHostEnvironment, type SandboxedCommandInput, type SandboxedCommandResult, type SandboxNetworkMode, type SandboxPolicyInput, type SandboxReadOnlyBindMount, type TaskpackManifest } from './types.js';
|
|
2
|
+
export declare const TRUSTED_SEATBELT_PATHS: readonly string[];
|
|
3
|
+
export declare const TRUSTED_BWRAP_PATHS: readonly string[];
|
|
4
|
+
export declare const TRUSTED_PYTHON_PATHS: readonly string[];
|
|
5
|
+
export declare const TRUSTED_DOCKER_PATHS: readonly string[];
|
|
6
|
+
export declare const DEFAULT_DENIED_HOME_SUBPATHS: readonly string[];
|
|
7
|
+
/** Neutral built-in workspace subpaths protected under `'local'` mode (active controlRoot and manifest paths are added dynamically). */
|
|
8
|
+
export declare const ALWAYS_PROTECTED_WORKSPACE_SUBPATHS: readonly string[];
|
|
9
|
+
/** Built-in workspace subpaths protected under `'github'` mode (`.github/workflows/**` unlocked only via dual-key `allowWorkflowWrites`). */
|
|
10
|
+
export declare const GITHUB_PROTECTED_WORKSPACE_SUBPATHS: readonly string[];
|
|
11
|
+
export declare const DEFAULT_REQUIRED_SANDBOX_CAPABILITIES: readonly SandboxCapability[];
|
|
12
|
+
export declare const SANDBOX_CAPABILITIES_BY_BACKEND: Readonly<Record<SandboxBackendId, readonly SandboxCapability[]>>;
|
|
13
|
+
export declare const SECCOMP_BLOCKED_SYSCALLS: readonly string[];
|
|
14
|
+
export declare const MAX_LINUX_BWRAP_ARGS = 8500;
|
|
15
|
+
export interface ControlRootSiblingSet {
|
|
16
|
+
readonly prioritySiblings: readonly string[];
|
|
17
|
+
readonly regularSiblings: readonly string[];
|
|
18
|
+
}
|
|
19
|
+
export interface CollectGitHubSiblingPathsOptions {
|
|
20
|
+
readonly repositoryRoot?: string | undefined;
|
|
21
|
+
readonly gitRevisions?: readonly string[] | undefined;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Enumerate existing sibling entries along the `controlRoot -> dirname(proposalPath)` spine
|
|
25
|
+
* so carved-out control-root proposals preserve protected-sibling semantics.
|
|
26
|
+
*/
|
|
27
|
+
export declare function collectControlRootSiblingPaths(options: {
|
|
28
|
+
readonly repositoryRoot?: string | undefined;
|
|
29
|
+
readonly controlRoot: string;
|
|
30
|
+
readonly proposalPath: string;
|
|
31
|
+
readonly gitRevisions?: readonly string[] | undefined;
|
|
32
|
+
}): ControlRootSiblingSet;
|
|
33
|
+
/**
|
|
34
|
+
* Enumerate existing non-`workflows` sibling entries under `<repositoryRoot>/.github`
|
|
35
|
+
* so `'github'` mode with `allowWorkflowWrites: true` keeps `.github/CODEOWNERS`,
|
|
36
|
+
* templates, and custom actions protected while unlocking `.github/workflows/**`.
|
|
37
|
+
*/
|
|
38
|
+
export declare function collectGitHubSiblingPaths(options?: CollectGitHubSiblingPathsOptions): readonly string[];
|
|
39
|
+
interface ProtectedGlobPrefix {
|
|
40
|
+
readonly raw: string;
|
|
41
|
+
readonly staticPrefixDir: string;
|
|
42
|
+
}
|
|
43
|
+
interface NormalizedSandboxPaths {
|
|
44
|
+
readonly canonicalWorkspaceRoot: string;
|
|
45
|
+
readonly canonicalScratchDirectory: string | null;
|
|
46
|
+
readonly canonicalWritablePaths: readonly string[];
|
|
47
|
+
readonly canonicalExactWritableFiles: ReadonlySet<string>;
|
|
48
|
+
readonly seatbeltExactFileRegexes: readonly string[];
|
|
49
|
+
readonly seatbeltProtectedGlobRegexes: readonly string[];
|
|
50
|
+
readonly protectedGlobPrefixes: readonly ProtectedGlobPrefix[];
|
|
51
|
+
readonly canonicalProtectedPaths: readonly string[];
|
|
52
|
+
readonly canonicalDeniedReadPaths: readonly string[];
|
|
53
|
+
readonly canonicalAllowedReadOnlyPaths: readonly string[];
|
|
54
|
+
readonly canonicalReadOnlyBindMounts: readonly SandboxReadOnlyBindMount[];
|
|
55
|
+
readonly networkMode: SandboxNetworkMode;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Compile a canonical, deterministic macOS Seatbelt (`sandbox-exec`) SBPL profile.
|
|
59
|
+
* Last-match-wins precedence ensures protected paths inside writable directories stay read-only.
|
|
60
|
+
*/
|
|
61
|
+
export declare function compileMacosSeatbeltProfile(policy: SandboxPolicyInput, host?: SandboxHostEnvironment): CompiledMacosSeatbeltProfile;
|
|
62
|
+
export interface SeccompFilterOptions {
|
|
63
|
+
readonly blockIpSockets?: boolean | undefined;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Compile the deterministic classic BPF `struct sock_filter` binary (`bwrap --seccomp <fd>`)
|
|
67
|
+
* enforcing `SECCOMP_BLOCKED_SYSCALLS` (and optional non-`AF_UNIX` `SYS_socket` blocking)
|
|
68
|
+
* on `x64` (`AUDIT_ARCH_X86_64`) and `arm64` (`AUDIT_ARCH_AARCH64`).
|
|
69
|
+
*/
|
|
70
|
+
export declare function compileLinuxSeccompBpfBinary(arch: string, options?: SeccompFilterOptions): Buffer;
|
|
71
|
+
/**
|
|
72
|
+
* Compute the canonical Linux seccomp BPF syscall filter profile for sandboxed tool execution.
|
|
73
|
+
*/
|
|
74
|
+
export declare function computeSandboxSeccompProfile(options?: SeccompFilterOptions): {
|
|
75
|
+
readonly json: string;
|
|
76
|
+
readonly digest: Digest;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Compile deterministic Linux Bubblewrap (`bwrap`) command-line arguments and seccomp descriptor.
|
|
80
|
+
*/
|
|
81
|
+
export declare function compileLinuxBwrapCommand(policy: SandboxPolicyInput, host?: SandboxHostEnvironment, options?: {
|
|
82
|
+
readonly cwd?: string | undefined;
|
|
83
|
+
readonly env?: Readonly<Record<string, string>> | undefined;
|
|
84
|
+
readonly provisionExactFiles?: boolean | undefined;
|
|
85
|
+
readonly inheritSpawnEnv?: boolean | undefined;
|
|
86
|
+
}): CompiledLinuxBwrapCommand;
|
|
87
|
+
export declare const LANDLOCK_HOST_PROBE_SCRIPT: string;
|
|
88
|
+
/**
|
|
89
|
+
* Fail-closed sandbox backend negotiation. Never silently downgrades to unsandboxed execution.
|
|
90
|
+
*/
|
|
91
|
+
export declare function negotiateSandboxBackend(policy: SandboxPolicyInput, host?: SandboxHostEnvironment): NegotiatedSandboxBackend;
|
|
92
|
+
export declare const LANDLOCK_BOOTSTRAP_SCRIPT = "import ctypes, errno, json, os, signal, stat, sys\n\nlibc = ctypes.CDLL(None, use_errno=True)\nlibc.prctl.restype = ctypes.c_int\nPR_SET_PDEATHSIG = 1\nPR_SET_SECCOMP = 22\nPR_SET_NO_NEW_PRIVS = 38\nSECCOMP_MODE_FILTER = 2\nSYS_landlock_create_ruleset = 444\nSYS_landlock_add_rule = 445\nSYS_landlock_restrict_self = 446\nLANDLOCK_CREATE_RULESET_VERSION = 1 << 0\nLANDLOCK_RULE_PATH_BENEATH = 1\n\nclass RulesetAttr(ctypes.Structure):\n _fields_ = [(\"handled_access_fs\", ctypes.c_uint64), (\"handled_access_net\", ctypes.c_uint64)]\n\nclass PathBeneathAttr(ctypes.Structure):\n _pack_ = 1\n _fields_ = [(\"allowed_access\", ctypes.c_uint64), (\"parent_fd\", ctypes.c_int32)]\n\nclass SockFilter(ctypes.Structure):\n _fields_ = [\n (\"code\", ctypes.c_uint16),\n (\"jt\", ctypes.c_uint8),\n (\"jf\", ctypes.c_uint8),\n (\"k\", ctypes.c_uint32),\n ]\n\nclass SockFprog(ctypes.Structure):\n _fields_ = [\n (\"len\", ctypes.c_uint16),\n (\"filter\", ctypes.POINTER(SockFilter)),\n ]\n\ncfg = json.loads(sys.argv[1])\ncmd = sys.argv[2]\nargs = sys.argv[3:]\n\nlibc.prctl(PR_SET_PDEATHSIG, signal.SIGKILL, 0, 0, 0)\nif libc.prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0) != 0:\n sys.exit(126)\n\nabi = libc.syscall(SYS_landlock_create_ruleset, None, 0, LANDLOCK_CREATE_RULESET_VERSION)\nif abi < 3:\n sys.exit(126)\n\nFS_EXECUTE = 1 << 0\nFS_WRITE_FILE = 1 << 1\nFS_READ_FILE = 1 << 2\nFS_READ_DIR = 1 << 3\nFS_REMOVE_DIR = 1 << 4\nFS_REMOVE_FILE = 1 << 5\nFS_MAKE_CHAR = 1 << 6\nFS_MAKE_DIR = 1 << 7\nFS_MAKE_REG = 1 << 8\nFS_MAKE_SOCK = 1 << 9\nFS_MAKE_FIFO = 1 << 10\nFS_MAKE_BLOCK = 1 << 11\nFS_MAKE_SYM = 1 << 12\nFS_REFER = 1 << 13 if abi >= 2 else 0\nFS_TRUNCATE = 1 << 14 if abi >= 3 else 0\n\nREAD_ACCESS = FS_EXECUTE | FS_READ_FILE | FS_READ_DIR\nWRITE_FILE_ACCESS = FS_WRITE_FILE | FS_TRUNCATE\nWRITE_DIR_ACCESS = (\n FS_WRITE_FILE | FS_REMOVE_DIR | FS_REMOVE_FILE | FS_MAKE_CHAR |\n FS_MAKE_DIR | FS_MAKE_REG | FS_MAKE_SOCK | FS_MAKE_FIFO |\n FS_MAKE_BLOCK | FS_MAKE_SYM | FS_REFER | FS_TRUNCATE\n)\nHANDLED_FS = READ_ACCESS | WRITE_DIR_ACCESS\nHANDLED_NET = ((1 << 0) | (1 << 1)) if (abi >= 4 and cfg.get(\"networkMode\") == \"none\") else 0\n\nattr = RulesetAttr(HANDLED_FS, HANDLED_NET)\nruleset_fd = libc.syscall(SYS_landlock_create_ruleset, ctypes.byref(attr), ctypes.sizeof(attr), 0)\nif ruleset_fd < 0:\n sys.exit(126)\n\nO_PATH = getattr(os, \"O_PATH\", 0o10000000)\nO_NOFOLLOW = getattr(os, \"O_NOFOLLOW\", 0o400000)\nO_DIRECTORY = getattr(os, \"O_DIRECTORY\", 0o200000)\n\ndef open_nofollow_abs(abs_path, leaf_flags, fail_on_symlink_ancestor=False):\n if not isinstance(abs_path, str) or not abs_path.startswith(\"/\"):\n if fail_on_symlink_ancestor:\n sys.exit(126)\n raise OSError(errno.EINVAL, \"invalid path\")\n if abs_path == \"/\":\n return os.open(\"/\", leaf_flags | O_NOFOLLOW | os.O_CLOEXEC)\n parts = [p for p in abs_path.split(\"/\") if p]\n cur_fd = os.open(\"/\", os.O_RDONLY | O_NOFOLLOW | O_DIRECTORY | os.O_CLOEXEC)\n try:\n for part in parts[:-1]:\n try:\n nxt_fd = os.open(part, os.O_RDONLY | O_NOFOLLOW | O_DIRECTORY | os.O_CLOEXEC, dir_fd=cur_fd)\n except OSError as exc:\n if fail_on_symlink_ancestor and exc.errno != errno.ENOENT:\n sys.exit(126)\n raise\n os.close(cur_fd)\n cur_fd = nxt_fd\n try:\n return os.open(parts[-1], leaf_flags | O_NOFOLLOW | os.O_CLOEXEC, dir_fd=cur_fd)\n except OSError as exc:\n if fail_on_symlink_ancestor and exc.errno != errno.ENOENT:\n sys.exit(126)\n raise\n finally:\n os.close(cur_fd)\n\ndef add_fd_rule(fd, is_dir, access):\n actual = access if is_dir else (access & (FS_EXECUTE | FS_READ_FILE | WRITE_FILE_ACCESS))\n if actual == 0:\n return True\n rule = PathBeneathAttr(actual, fd)\n return libc.syscall(SYS_landlock_add_rule, ruleset_fd, LANDLOCK_RULE_PATH_BENEATH, ctypes.byref(rule), 0) == 0\n\ndef add_path_rule(path, access, dir_fd=None):\n try:\n if dir_fd is not None:\n fd = os.open(path, O_PATH | O_NOFOLLOW | os.O_CLOEXEC, dir_fd=dir_fd)\n else:\n fd = open_nofollow_abs(path, O_PATH, False)\n except OSError:\n return\n try:\n st = os.fstat(fd)\n if stat.S_ISLNK(st.st_mode):\n return\n add_fd_rule(fd, stat.S_ISDIR(st.st_mode), access)\n finally:\n os.close(fd)\n\ndef is_same_or_child(candidate, parent):\n if parent == \"/\":\n return True\n return candidate == parent or candidate.startswith(parent + \"/\")\n\ndef grant_tree(current, excluded_set, access, parent_dir_fd=None, rel_name=None):\n if current in excluded_set:\n return\n target = rel_name if parent_dir_fd is not None else current\n needs_split = any(ex != current and is_same_or_child(ex, current) for ex in excluded_set)\n if not needs_split:\n add_path_rule(target, access, dir_fd=parent_dir_fd)\n return\n try:\n if parent_dir_fd is not None:\n dir_fd = os.open(target, os.O_RDONLY | O_NOFOLLOW | O_DIRECTORY | os.O_CLOEXEC, dir_fd=parent_dir_fd)\n else:\n dir_fd = open_nofollow_abs(current, os.O_RDONLY | O_DIRECTORY, False)\n except OSError as exc:\n if exc.errno == errno.ENOTDIR:\n add_path_rule(target, access, dir_fd=parent_dir_fd)\n return\n try:\n st = os.fstat(dir_fd)\n if not stat.S_ISDIR(st.st_mode):\n return\n entries = sorted(os.listdir(dir_fd))\n for name in entries:\n if name in (\".\", \"..\"):\n continue\n child = \"/\" + name if current == \"/\" else current + \"/\" + name\n grant_tree(child, excluded_set, access, parent_dir_fd=dir_fd, rel_name=name)\n finally:\n os.close(dir_fd)\n\nraw_denied_reads = set(cfg.get(\"deniedReadPaths\", []))\ndenied_reads = {p for p in raw_denied_reads if os.path.lexists(p)}\nprotected_writes = set(cfg.get(\"protectedPaths\", [])) | raw_denied_reads\nwritable_paths = cfg.get(\"writablePaths\", [])\nexact_writable_files = set(cfg.get(\"exactWritableFiles\", []))\npositive_read_roots = cfg.get(\"positiveReadRoots\")\nallowed_ro_paths = cfg.get(\"allowedReadOnlyPaths\", [])\n\nif isinstance(positive_read_roots, list):\n ro_excluded = denied_reads - set(allowed_ro_paths)\n for root_path in positive_read_roots:\n grant_tree(root_path, ro_excluded, READ_ACCESS)\n for ro_path in allowed_ro_paths:\n grant_tree(ro_path, ro_excluded, READ_ACCESS)\nelse:\n grant_tree(\"/\", denied_reads, READ_ACCESS)\n for ro_path in allowed_ro_paths:\n add_path_rule(ro_path, READ_ACCESS)\nfor dev in (\"/dev/null\", \"/dev/zero\"):\n add_path_rule(dev, READ_ACCESS | WRITE_FILE_ACCESS)\nfor wp in writable_paths:\n if any(is_same_or_child(ex, wp) for ex in protected_writes):\n sys.exit(126)\n if wp in exact_writable_files:\n try:\n wp_fd = open_nofollow_abs(wp, O_PATH, True)\n except OSError:\n sys.exit(126)\n try:\n wp_st = os.fstat(wp_fd)\n if stat.S_ISLNK(wp_st.st_mode) or not stat.S_ISREG(wp_st.st_mode) or wp_st.st_nlink != 1:\n sys.exit(126)\n if not add_fd_rule(wp_fd, False, READ_ACCESS | WRITE_FILE_ACCESS):\n sys.exit(126)\n finally:\n os.close(wp_fd)\n else:\n try:\n wp_fd = open_nofollow_abs(wp, O_PATH, True)\n except OSError as exc:\n if exc.errno == errno.ENOENT:\n continue\n sys.exit(126)\n try:\n wp_st = os.fstat(wp_fd)\n if stat.S_ISLNK(wp_st.st_mode):\n sys.exit(126)\n if stat.S_ISDIR(wp_st.st_mode):\n if not add_fd_rule(wp_fd, True, READ_ACCESS | WRITE_DIR_ACCESS):\n sys.exit(126)\n elif stat.S_ISREG(wp_st.st_mode) and wp_st.st_nlink == 1:\n if not add_fd_rule(wp_fd, False, READ_ACCESS | WRITE_FILE_ACCESS):\n sys.exit(126)\n else:\n sys.exit(126)\n finally:\n os.close(wp_fd)\n\nif libc.syscall(SYS_landlock_restrict_self, ruleset_fd, 0) != 0:\n os.close(ruleset_fd)\n sys.exit(126)\nos.close(ruleset_fd)\n\nmachine = os.uname().machine\nif machine in (\"x86_64\", \"amd64\"):\n audit_arch = 0xc000003e\n blocked_nrs = [90, 91, 92, 93, 94, 260, 268, 425, 426, 427, 452]\n all_socket_nrs = [41, 42, 43, 49, 50, 53, 288]\n sys_socket = 41\n block_x32 = True\nelif machine in (\"aarch64\", \"arm64\"):\n audit_arch = 0xc00000b7\n blocked_nrs = [52, 53, 54, 55, 425, 426, 427, 452]\n all_socket_nrs = [198, 199, 200, 201, 202, 203, 242]\n sys_socket = 198\n block_x32 = False\nelse:\n sys.exit(126)\nblock_all_sockets = cfg.get(\"blockAllSockets\") is True\nif block_all_sockets:\n blocked_nrs = blocked_nrs + all_socket_nrs\nblock_ip = (not block_all_sockets) and (cfg.get(\"blockIpSockets\") is True)\nextra_sock = 3 if block_ip else 0\nn_blocked = len(blocked_nrs)\nraw_insns = [\n (0x20, 0, 0, 4),\n (0x15, 1, 0, audit_arch),\n (0x06, 0, 0, 0x00050001),\n (0x20, 0, 0, 0),\n]\nif block_x32:\n raw_insns.append((0x35, n_blocked + extra_sock + 1, 0, 0x40000000))\nfor idx_nr, nr in enumerate(blocked_nrs):\n raw_insns.append((0x15, (n_blocked - idx_nr) + extra_sock, 0, nr))\nif block_ip:\n raw_insns.extend([\n (0x15, 0, 2, sys_socket),\n (0x20, 0, 0, 16),\n (0x15, 0, 1, 1),\n ])\nraw_insns.append((0x06, 0, 0, 0x7fff0000))\nraw_insns.append((0x06, 0, 0, 0x00050001))\ninsns = (SockFilter * len(raw_insns))(*(SockFilter(*ins) for ins in raw_insns))\nprog = SockFprog(len(raw_insns), insns)\nif libc.prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, ctypes.byref(prog), 0, 0) != 0:\n sys.exit(126)\ncwd = cfg.get(\"cwd\")\nif cwd:\n os.chdir(cwd)\nenv = cfg.get(\"env\")\nif env is not None:\n os.environ.clear()\n os.environ.update(env)\nos.execvp(cmd, [cmd] + args)\n";
|
|
93
|
+
export interface ProvisionedAbsentProtectedPlaceholders {
|
|
94
|
+
readonly placeholderPaths: readonly string[];
|
|
95
|
+
cleanup(): void;
|
|
96
|
+
}
|
|
97
|
+
export declare function provisionAbsentProtectedPlaceholders(normalized: Pick<NormalizedSandboxPaths, 'canonicalWorkspaceRoot' | 'canonicalWritablePaths' | 'canonicalExactWritableFiles' | 'canonicalProtectedPaths'> & {
|
|
98
|
+
readonly canonicalDeniedReadPaths?: readonly string[] | undefined;
|
|
99
|
+
}): ProvisionedAbsentProtectedPlaceholders;
|
|
100
|
+
/**
|
|
101
|
+
* Execute a command inside the negotiated OS sandbox with sanitized environment, bounded streams,
|
|
102
|
+
* timeout enforcement, process-group cleanup, and secret scrubbing.
|
|
103
|
+
*/
|
|
104
|
+
export declare function executeSandboxedCommand(input: SandboxedCommandInput): Promise<SandboxedCommandResult>;
|
|
105
|
+
export interface ResolveTaskpackSandboxOptions {
|
|
106
|
+
readonly workspaceRoot: string;
|
|
107
|
+
readonly scratchDirectory?: string | undefined;
|
|
108
|
+
readonly controlRoot?: string | undefined;
|
|
109
|
+
readonly relativeTaskpackPath?: string | undefined;
|
|
110
|
+
readonly policyProfile?: PolicyProfile | undefined;
|
|
111
|
+
readonly env?: NodeJS.ProcessEnv | undefined;
|
|
112
|
+
readonly hostPolicy?: ExecutionHostPolicy | undefined;
|
|
113
|
+
readonly allowedReadOnlyPaths?: readonly string[] | undefined;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Resolve the effective sandbox policy for a declarative Taskpack manifest.
|
|
117
|
+
* Under GitHub Actions (`GITHUB_ACTIONS === 'true'`), omitted `spec.sandbox`
|
|
118
|
+
* defaults to `direct-dedicated` because GitHub-hosted runners already isolate the job.
|
|
119
|
+
*/
|
|
120
|
+
export declare function resolveEffectiveTaskpackSandboxPolicy(manifest: TaskpackManifest, options: ResolveTaskpackSandboxOptions): SandboxPolicyInput;
|
|
121
|
+
export {};
|