@gpustack/loopwright 0.0.0-stage → 0.0.2
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 +2083 -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 +1646 -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 +2605 -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 +7313 -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 +3021 -0
- package/package-lock.json +3021 -0
- package/package.json +52 -4
|
@@ -0,0 +1,1274 @@
|
|
|
1
|
+
import type { Digest, HardwareTargetSpec, MetricBoundsRule, MetricComparativeRule, MetricThresholdRule, OverlayLimits, ResourceActivationPhase, ResourceActivationRule, ReworkPolicy, StepHandoffSelect, StepHandoffSelector, StepHandoffSource, TaskContract } from '@loopwright/core';
|
|
2
|
+
import type { ClockBasis, ClockSample } from '@loopwright/state';
|
|
3
|
+
import type { PiCustomModelCompat, PiCustomProviderConfig, PiModelCost, PiModelSelection, PiSamplingParams, PiThinkingLevel, PiWireApi } from '@loopwright/agent-pi';
|
|
4
|
+
import type { openPiHostSessionAdapterV2 } from '@loopwright/agent-pi/host-session';
|
|
5
|
+
import type { ControllerConfiguration, RunEvalReport, TrustedRegistry } from '@loopwright/controller';
|
|
6
|
+
import type { ParsedPiModelsJson } from './models-config.js';
|
|
7
|
+
export type { ClockBasis, ClockSample, HardwareTargetSpec, MetricBoundsRule, MetricComparativeRule, MetricThresholdRule, PiCustomModelCompat, PiCustomProviderConfig, PiModelCost, PiModelSelection, PiSamplingParams, PiThinkingLevel, PiWireApi, ResourceActivationPhase, ResourceActivationRule, RunEvalReport, StepHandoffSelect, StepHandoffSelector, StepHandoffSource, };
|
|
8
|
+
/** Closed set of matchable failure codes for @loopwright/taskpack (and drop-in superset for @loopwright/github-app). */
|
|
9
|
+
export declare const TASKPACK_ERROR_CODES: readonly ["TASKPACK_MANIFEST_INVALID", "TASKPACK_UNTRUSTED_INTERPOLATION", "TASKPACK_SCOPE_VIOLATION", "TASKPACK_HOST_BINDING_INVALID", "TASKPACK_TRIGGER_UNSUPPORTED", "PROVIDER_OAUTH_UNSUPPORTED", "WEBHOOK_SIGNATURE_INVALID", "WEBHOOK_PAYLOAD_TOO_LARGE", "WEBHOOK_DELIVERY_CONFLICT", "WEBHOOK_DELIVERY_INVALID", "WEBHOOK_ACTOR_UNAUTHORIZED", "WEBHOOK_GUIDANCE_INVALID", "TENANT_IDENTITY_INVALID", "TENANT_BOUNDARY_VIOLATION", "QUEUE_CAPACITY_EXCEEDED", "QUEUE_LEASE_FENCED", "QUEUE_STATE_INVALID", "TENANT_INSTALLATION_REVOKED", "TOKEN_BROKER_CONFIG_INVALID", "TOKEN_SCOPE_VIOLATION", "TOKEN_SECRET_LEAK_DETECTED", "TOKEN_TTL_EXCEEDED", "HOST_PROFILE_UNQUALIFIED", "HOST_CLOCK_UNTRUSTED", "STORAGE_PROFILE_INSUFFICIENT", "MCP_OAUTH_UNSUPPORTED", "MCP_AUTHENTICATION_REQUIRED", "SANDBOX_POLICY_INVALID", "SANDBOX_BACKEND_UNAVAILABLE", "SANDBOX_CAPABILITY_INSUFFICIENT", "SANDBOX_EXECUTION_FAILED", "GITHUB_APP_CONFIG_INVALID", "ACTION_INPUT_INVALID", "SERVICE_FAULT"];
|
|
10
|
+
export type TaskpackErrorCode = typeof TASKPACK_ERROR_CODES[number];
|
|
11
|
+
export interface TaskpackErrorOptions {
|
|
12
|
+
readonly reason?: string | undefined;
|
|
13
|
+
readonly cause?: unknown;
|
|
14
|
+
}
|
|
15
|
+
/** Explicit, matchable failure carrying the offending manifest or request path (and optional machine reason) when known. */
|
|
16
|
+
export declare class TaskpackError extends Error {
|
|
17
|
+
readonly code: TaskpackErrorCode;
|
|
18
|
+
readonly path: string | null;
|
|
19
|
+
readonly reason: string | null;
|
|
20
|
+
constructor(code: TaskpackErrorCode, message: string, path?: string | null, options?: TaskpackErrorOptions);
|
|
21
|
+
}
|
|
22
|
+
/** Explicit execution policy profile scoping GitHub-specific rules to GitHub entrypoints. */
|
|
23
|
+
export type PolicyProfile = 'local' | 'github';
|
|
24
|
+
export declare const TASKPACK_MANIFEST_API_VERSION: "loopwright.dev/v1alpha1";
|
|
25
|
+
export declare const TASKPACK_MANIFEST_BYTES = 65536;
|
|
26
|
+
/** Built-in mandatory protected root paths under `'local'` profile (controlRoot and manifest assets are added dynamically). */
|
|
27
|
+
export declare const LOCAL_PROTECTED_AUTOMATION_PATHS: readonly string[];
|
|
28
|
+
/** Built-in mandatory protected root paths under `'github'` profile (`.github/workflows/**` requires dual-key `allowWorkflowWrites`). */
|
|
29
|
+
export declare const GITHUB_PROTECTED_AUTOMATION_PATHS: readonly string[];
|
|
30
|
+
/** Default built-in mandatory protected root paths for generic `@loopwright/taskpack` (`'local'` profile). */
|
|
31
|
+
export declare const PROTECTED_AUTOMATION_PATHS: readonly string[];
|
|
32
|
+
export type TaskpackExecutionMode = 'strict' | 'privileged';
|
|
33
|
+
export interface TaskpackExecutionCapabilitiesDeclaration {
|
|
34
|
+
readonly allowHostEnv?: boolean | undefined;
|
|
35
|
+
readonly allowHostPath?: boolean | undefined;
|
|
36
|
+
readonly mountReadOnlyGit?: boolean | undefined;
|
|
37
|
+
readonly allowCheckNetwork?: boolean | undefined;
|
|
38
|
+
readonly allowWorkflowWrites?: boolean | undefined;
|
|
39
|
+
readonly allowAgentNetwork?: boolean | undefined;
|
|
40
|
+
}
|
|
41
|
+
export interface ResolvedTaskpackExecutionCapabilities {
|
|
42
|
+
readonly allowHostEnv: boolean;
|
|
43
|
+
readonly allowHostPath: boolean;
|
|
44
|
+
readonly mountReadOnlyGit: boolean;
|
|
45
|
+
readonly allowCheckNetwork: boolean;
|
|
46
|
+
readonly allowWorkflowWrites: boolean;
|
|
47
|
+
readonly allowAgentNetwork: boolean;
|
|
48
|
+
}
|
|
49
|
+
export interface TaskpackExecutionDigestsDeclaration {
|
|
50
|
+
readonly pinDigests: boolean;
|
|
51
|
+
readonly lockfile?: string | undefined;
|
|
52
|
+
}
|
|
53
|
+
export interface TaskpackExecutionDeclaration {
|
|
54
|
+
readonly mode: TaskpackExecutionMode;
|
|
55
|
+
readonly capabilities: ResolvedTaskpackExecutionCapabilities;
|
|
56
|
+
readonly digests: TaskpackExecutionDigestsDeclaration;
|
|
57
|
+
}
|
|
58
|
+
/** Operator-controlled host flags required to authorize manifest-declared privileged capabilities and profile rules. */
|
|
59
|
+
export interface ExecutionHostPolicy {
|
|
60
|
+
readonly policyProfile?: PolicyProfile | undefined;
|
|
61
|
+
readonly allowPrivileged?: boolean | undefined;
|
|
62
|
+
readonly allowWorkflowWrites?: boolean | undefined;
|
|
63
|
+
readonly allowedHostMounts?: readonly string[] | undefined;
|
|
64
|
+
}
|
|
65
|
+
/** Strict host policy for multi-tenant GitHub App control planes: refuses all self-granted privileged capabilities. */
|
|
66
|
+
export declare const MULTI_TENANT_HOST_POLICY: ExecutionHostPolicy;
|
|
67
|
+
export interface TaskpackPreflightDeclaration {
|
|
68
|
+
readonly script: string;
|
|
69
|
+
readonly timeoutSeconds?: number | undefined;
|
|
70
|
+
readonly env?: readonly string[] | undefined;
|
|
71
|
+
}
|
|
72
|
+
export type TaskpackUpstreamGroupPolicy = 'lockstep' | 'independent';
|
|
73
|
+
export interface TaskpackUpstreamGroupDeclaration {
|
|
74
|
+
readonly id: string;
|
|
75
|
+
readonly members: readonly string[];
|
|
76
|
+
readonly policy: TaskpackUpstreamGroupPolicy;
|
|
77
|
+
}
|
|
78
|
+
export type TaskpackStepKind = 'agent' | 'check' | 'compact';
|
|
79
|
+
export declare const MAX_TASKPACK_STEPS = 16;
|
|
80
|
+
export declare const MAX_STEP_REWORKS = 8;
|
|
81
|
+
export interface TaskpackStepDeclaration {
|
|
82
|
+
readonly id: string;
|
|
83
|
+
readonly kind: TaskpackStepKind;
|
|
84
|
+
readonly role?: string | undefined;
|
|
85
|
+
readonly check?: string | undefined;
|
|
86
|
+
readonly dependsOn: readonly string[];
|
|
87
|
+
readonly onRework?: ReworkPolicy | undefined;
|
|
88
|
+
readonly handoffs?: readonly StepHandoffSelector[] | undefined;
|
|
89
|
+
}
|
|
90
|
+
export interface TaskpackConditionalResourceEntry {
|
|
91
|
+
readonly path: string;
|
|
92
|
+
readonly when?: ResourceActivationRule | undefined;
|
|
93
|
+
}
|
|
94
|
+
export type TaskpackResourceEntry = string | TaskpackConditionalResourceEntry;
|
|
95
|
+
export interface TaskpackProposalDeclaration {
|
|
96
|
+
readonly path: string;
|
|
97
|
+
readonly requiredFields: readonly string[];
|
|
98
|
+
readonly schemaVersion: number;
|
|
99
|
+
}
|
|
100
|
+
export interface TaskpackSubmissionDeclaration {
|
|
101
|
+
readonly path: string;
|
|
102
|
+
readonly required: boolean;
|
|
103
|
+
}
|
|
104
|
+
export interface TaskpackTargetDeclaration {
|
|
105
|
+
readonly matrix?: readonly TargetMatrixCell[] | null | undefined;
|
|
106
|
+
}
|
|
107
|
+
export interface TaskpackDigestTarget {
|
|
108
|
+
readonly path: string;
|
|
109
|
+
readonly kind: 'file' | 'directory';
|
|
110
|
+
}
|
|
111
|
+
export interface TaskpackDigestLockfileEntry {
|
|
112
|
+
readonly path: string;
|
|
113
|
+
readonly kind: 'file' | 'directory';
|
|
114
|
+
readonly sha256: string;
|
|
115
|
+
}
|
|
116
|
+
export interface TaskpackDigestLockfile {
|
|
117
|
+
readonly version: 1;
|
|
118
|
+
readonly taskpack: string;
|
|
119
|
+
readonly entries: readonly TaskpackDigestLockfileEntry[];
|
|
120
|
+
}
|
|
121
|
+
export interface TaskpackDigestDrift {
|
|
122
|
+
readonly path: string;
|
|
123
|
+
readonly kind: 'file' | 'directory';
|
|
124
|
+
readonly status: 'drifted' | 'missing' | 'extra';
|
|
125
|
+
readonly expectedSha256: string | null;
|
|
126
|
+
readonly actualSha256: string | null;
|
|
127
|
+
}
|
|
128
|
+
export type TaskpackDigestVerificationResult = {
|
|
129
|
+
readonly ok: true;
|
|
130
|
+
readonly lockfilePath: string;
|
|
131
|
+
readonly computed: TaskpackDigestLockfile;
|
|
132
|
+
readonly expected: TaskpackDigestLockfile;
|
|
133
|
+
} | {
|
|
134
|
+
readonly ok: false;
|
|
135
|
+
readonly lockfilePath: string;
|
|
136
|
+
readonly reason: string;
|
|
137
|
+
readonly drifts: readonly TaskpackDigestDrift[];
|
|
138
|
+
readonly computed: TaskpackDigestLockfile | null;
|
|
139
|
+
readonly expected: TaskpackDigestLockfile | null;
|
|
140
|
+
};
|
|
141
|
+
export type TaskpackUpstreamKind = 'github-release' | 'git-tag' | 'git-commit' | 'http-json' | 'custom-table';
|
|
142
|
+
export type TaskpackCommentCommand = 'retry' | 'revise' | 'status';
|
|
143
|
+
export declare const TASKPACK_COMMENT_COMMANDS: readonly TaskpackCommentCommand[];
|
|
144
|
+
export declare const DEFAULT_COMMENT_PREFIXES: readonly string[];
|
|
145
|
+
export type TaskpackOutputFormat = 'json' | 'github-step-summary' | 'markdown' | 'text';
|
|
146
|
+
export declare const TASKPACK_OUTPUT_FORMATS: readonly TaskpackOutputFormat[];
|
|
147
|
+
export interface TaskpackOutputDeclaration {
|
|
148
|
+
readonly formats: readonly TaskpackOutputFormat[];
|
|
149
|
+
}
|
|
150
|
+
export interface TaskpackStdioMcpServerDeclaration {
|
|
151
|
+
readonly id: string;
|
|
152
|
+
readonly transport: 'stdio';
|
|
153
|
+
readonly command: string;
|
|
154
|
+
readonly args?: readonly string[] | undefined;
|
|
155
|
+
readonly env?: Readonly<Record<string, string>> | undefined;
|
|
156
|
+
readonly envFrom?: Readonly<Record<string, string>> | undefined;
|
|
157
|
+
readonly timeoutSeconds?: number | undefined;
|
|
158
|
+
readonly includeTools?: readonly string[] | undefined;
|
|
159
|
+
readonly readOnly?: boolean | undefined;
|
|
160
|
+
readonly required?: boolean | undefined;
|
|
161
|
+
}
|
|
162
|
+
export interface TaskpackHttpMcpServerDeclaration {
|
|
163
|
+
readonly id: string;
|
|
164
|
+
readonly transport: 'http';
|
|
165
|
+
readonly url: string;
|
|
166
|
+
readonly headers?: Readonly<Record<string, string>> | undefined;
|
|
167
|
+
readonly headersFrom?: Readonly<Record<string, string>> | undefined;
|
|
168
|
+
readonly bearerTokenEnv?: string | undefined;
|
|
169
|
+
readonly timeoutSeconds?: number | undefined;
|
|
170
|
+
readonly includeTools?: readonly string[] | undefined;
|
|
171
|
+
readonly readOnly?: boolean | undefined;
|
|
172
|
+
readonly required?: boolean | undefined;
|
|
173
|
+
}
|
|
174
|
+
export type TaskpackMcpServerDeclaration = TaskpackStdioMcpServerDeclaration | TaskpackHttpMcpServerDeclaration;
|
|
175
|
+
export interface TaskpackMcpDeclaration {
|
|
176
|
+
readonly servers: readonly TaskpackMcpServerDeclaration[];
|
|
177
|
+
}
|
|
178
|
+
export interface TaskpackLimitsDeclaration {
|
|
179
|
+
readonly wallTimeSeconds?: number | undefined;
|
|
180
|
+
readonly totalTokens?: number | undefined;
|
|
181
|
+
readonly contextWindow?: number | undefined;
|
|
182
|
+
readonly maxOutputTokens?: number | undefined;
|
|
183
|
+
readonly maxModelCalls?: number | undefined;
|
|
184
|
+
readonly maxTurns?: number | undefined;
|
|
185
|
+
readonly maxRepairTurns?: number | undefined;
|
|
186
|
+
readonly maxAttempts?: number | undefined;
|
|
187
|
+
readonly maxFormatRepairs?: number | undefined;
|
|
188
|
+
readonly maxImplementationRepairs?: number | undefined;
|
|
189
|
+
readonly maxTransportRetries?: number | undefined;
|
|
190
|
+
readonly toolTimeoutSeconds?: number | undefined;
|
|
191
|
+
readonly commandTimeoutSeconds?: number | undefined;
|
|
192
|
+
readonly responseBytes?: number | undefined;
|
|
193
|
+
readonly toolResultBytes?: number | undefined;
|
|
194
|
+
readonly toolArgsBytes?: number | undefined;
|
|
195
|
+
readonly promptBytes?: number | undefined;
|
|
196
|
+
readonly maxRequestBytes?: number | undefined;
|
|
197
|
+
readonly workingWindowBytes?: number | undefined;
|
|
198
|
+
readonly fileBytes?: number | undefined;
|
|
199
|
+
readonly sessionBytes?: number | undefined;
|
|
200
|
+
readonly candidateEntries?: number | undefined;
|
|
201
|
+
readonly overlay?: OverlayLimits | undefined;
|
|
202
|
+
}
|
|
203
|
+
export interface EffectiveTaskpackLimits {
|
|
204
|
+
readonly budgets: TaskContract['spec']['budgets'];
|
|
205
|
+
readonly maxAttempts?: number | undefined;
|
|
206
|
+
readonly commandTimeoutSeconds?: number | undefined;
|
|
207
|
+
readonly workingWindowCeiling?: number | undefined;
|
|
208
|
+
readonly maxRequestBytes?: number | undefined;
|
|
209
|
+
readonly maxOutputTokens?: number | undefined;
|
|
210
|
+
readonly roleLimits?: {
|
|
211
|
+
readonly promptBytes?: number;
|
|
212
|
+
readonly responseBytes?: number;
|
|
213
|
+
readonly toolArgsBytes?: number;
|
|
214
|
+
readonly toolResultBytes?: number;
|
|
215
|
+
readonly sessionBytes?: number;
|
|
216
|
+
readonly artifactBytes?: number;
|
|
217
|
+
readonly candidateEntries?: number;
|
|
218
|
+
readonly fileBytes?: number;
|
|
219
|
+
readonly toolWallMs?: number;
|
|
220
|
+
readonly requests?: number;
|
|
221
|
+
readonly operations?: number;
|
|
222
|
+
} | undefined;
|
|
223
|
+
}
|
|
224
|
+
export interface TaskpackUpstreamDescriptor {
|
|
225
|
+
readonly id: string;
|
|
226
|
+
readonly kind: TaskpackUpstreamKind;
|
|
227
|
+
readonly source: string;
|
|
228
|
+
readonly watchedPaths: readonly string[];
|
|
229
|
+
readonly allowPrerelease?: boolean | undefined;
|
|
230
|
+
readonly versionPath?: string | undefined;
|
|
231
|
+
readonly monotonicSemver?: boolean | undefined;
|
|
232
|
+
}
|
|
233
|
+
export type CommandMountMode = 'ro' | 'rw';
|
|
234
|
+
export interface TaskpackCommandMountDeclaration {
|
|
235
|
+
readonly source: string;
|
|
236
|
+
readonly target?: string | undefined;
|
|
237
|
+
readonly mode?: CommandMountMode | undefined;
|
|
238
|
+
}
|
|
239
|
+
export interface ResolvedCommandMount {
|
|
240
|
+
readonly source: string;
|
|
241
|
+
readonly target: string;
|
|
242
|
+
readonly mode: CommandMountMode;
|
|
243
|
+
}
|
|
244
|
+
export type TaskpackCheckParameterValue = string | number | boolean | null | readonly string[] | readonly TaskpackCommandMountDeclaration[] | Readonly<Record<string, string>>;
|
|
245
|
+
export type LegacyTaskpackCheckImplementation = 'json-artifact.v1' | 'scope.v1' | 'no-change.v1' | 'command.v1';
|
|
246
|
+
export type TaskpackV2CheckImplementation = LegacyTaskpackCheckImplementation | 'json-keys-guard.v1' | 'line-section-guard.v1';
|
|
247
|
+
export interface TaskpackCheckDeclaration {
|
|
248
|
+
readonly id: string;
|
|
249
|
+
readonly implementation: LegacyTaskpackCheckImplementation;
|
|
250
|
+
readonly parameters?: Readonly<Record<string, TaskpackCheckParameterValue>> | undefined;
|
|
251
|
+
}
|
|
252
|
+
export interface TaskpackV2CheckDeclaration {
|
|
253
|
+
readonly id: string;
|
|
254
|
+
readonly implementation: TaskpackV2CheckImplementation;
|
|
255
|
+
readonly parameters?: Readonly<Record<string, TaskpackCheckParameterValue>> | undefined;
|
|
256
|
+
}
|
|
257
|
+
export type TaskpackExternalGateImplementation = 'gate.v1' | 'benchmark-gate.v1';
|
|
258
|
+
export interface TaskpackExternalGateDeclaration {
|
|
259
|
+
readonly id: string;
|
|
260
|
+
readonly implementation?: TaskpackExternalGateImplementation | undefined;
|
|
261
|
+
readonly gateId: string;
|
|
262
|
+
readonly endpointId: string;
|
|
263
|
+
readonly required: boolean;
|
|
264
|
+
readonly signingCredentialRef?: string | undefined;
|
|
265
|
+
readonly authCredentialRef?: string | undefined;
|
|
266
|
+
readonly url?: string | undefined;
|
|
267
|
+
readonly targetCellId?: string | undefined;
|
|
268
|
+
readonly heldOutWorkloadId?: string | undefined;
|
|
269
|
+
readonly maxPreemptions?: number | undefined;
|
|
270
|
+
readonly allowSyntheticHardwareProbe?: boolean | undefined;
|
|
271
|
+
readonly metricThresholds?: readonly MetricThresholdRule[] | undefined;
|
|
272
|
+
}
|
|
273
|
+
export type TaskpackRolePurpose = 'task' | 'review';
|
|
274
|
+
export type TaskpackToolName = 'read' | 'write' | 'edit' | 'bash' | 'delete';
|
|
275
|
+
export declare const TASKPACK_TOOL_NAMES: readonly TaskpackToolName[];
|
|
276
|
+
export declare const MAX_TASKPACK_ROLES = 16;
|
|
277
|
+
export interface TaskpackRoleDeclaration {
|
|
278
|
+
readonly id: string;
|
|
279
|
+
readonly purpose?: TaskpackRolePurpose | undefined;
|
|
280
|
+
readonly provider: string;
|
|
281
|
+
readonly model: string;
|
|
282
|
+
readonly thinking?: string | undefined;
|
|
283
|
+
readonly tools?: readonly TaskpackToolName[] | undefined;
|
|
284
|
+
readonly dependsOn?: readonly string[] | undefined;
|
|
285
|
+
readonly instructions?: readonly TaskpackResourceEntry[] | undefined;
|
|
286
|
+
readonly skills?: readonly TaskpackResourceEntry[] | undefined;
|
|
287
|
+
readonly prompt?: string | undefined;
|
|
288
|
+
readonly mcpServers?: readonly string[] | undefined;
|
|
289
|
+
readonly models?: readonly string[] | undefined;
|
|
290
|
+
readonly handoffs?: readonly StepHandoffSelector[] | undefined;
|
|
291
|
+
}
|
|
292
|
+
export type TaskpackMemoryApplyMode = 'separate-pull-request' | 'inline-with-candidate' | 'local-only' | 'disabled';
|
|
293
|
+
export type TaskpackMemoryNoBudgetMode = 'deterministic-observations-only' | 'skip';
|
|
294
|
+
export interface TaskpackMemoryDeclaration {
|
|
295
|
+
readonly directory: string;
|
|
296
|
+
readonly apply: TaskpackMemoryApplyMode;
|
|
297
|
+
readonly onNoModelBudget: TaskpackMemoryNoBudgetMode;
|
|
298
|
+
readonly ttlDays?: number | undefined;
|
|
299
|
+
readonly maxEntries?: number | undefined;
|
|
300
|
+
readonly maxPromptEntries?: number | undefined;
|
|
301
|
+
readonly checkCodeFingerprint?: boolean | undefined;
|
|
302
|
+
readonly checkUpstreamVersions?: boolean | undefined;
|
|
303
|
+
readonly publishOnFailure?: boolean | undefined;
|
|
304
|
+
readonly skipCi?: boolean | undefined;
|
|
305
|
+
}
|
|
306
|
+
export interface TaskpackPullRequestPublicationDeclaration {
|
|
307
|
+
readonly mode: 'pull_request';
|
|
308
|
+
readonly targetBranch: string;
|
|
309
|
+
readonly headBranchPrefix: string;
|
|
310
|
+
readonly titleTemplate: string;
|
|
311
|
+
readonly bodyTemplate?: string | undefined;
|
|
312
|
+
}
|
|
313
|
+
export interface TaskpackDisabledPublicationDeclaration {
|
|
314
|
+
readonly mode: 'disabled';
|
|
315
|
+
readonly targetBranch?: string | undefined;
|
|
316
|
+
readonly headBranchPrefix?: string | undefined;
|
|
317
|
+
readonly titleTemplate?: string | undefined;
|
|
318
|
+
readonly bodyTemplate?: string | undefined;
|
|
319
|
+
}
|
|
320
|
+
export type TaskpackPublicationDeclaration = TaskpackPullRequestPublicationDeclaration | TaskpackDisabledPublicationDeclaration;
|
|
321
|
+
export interface TaskpackTriggersDeclaration {
|
|
322
|
+
readonly schedule: boolean;
|
|
323
|
+
readonly workflowDispatch: boolean;
|
|
324
|
+
readonly releasePublished: boolean;
|
|
325
|
+
readonly commentCommands: readonly TaskpackCommentCommand[];
|
|
326
|
+
readonly commentPrefixes: readonly string[];
|
|
327
|
+
}
|
|
328
|
+
export interface TaskpackManifestSpecBase<TCheck> {
|
|
329
|
+
readonly goal: {
|
|
330
|
+
readonly candidate: string;
|
|
331
|
+
readonly noChange: string;
|
|
332
|
+
};
|
|
333
|
+
readonly scope: {
|
|
334
|
+
readonly writable: readonly string[];
|
|
335
|
+
readonly protected: readonly string[];
|
|
336
|
+
};
|
|
337
|
+
readonly instructions?: readonly TaskpackResourceEntry[] | undefined;
|
|
338
|
+
readonly skills?: readonly TaskpackResourceEntry[] | undefined;
|
|
339
|
+
readonly execution?: TaskpackExecutionDeclaration | undefined;
|
|
340
|
+
readonly preflight?: TaskpackPreflightDeclaration | undefined;
|
|
341
|
+
readonly vars?: Readonly<Record<string, string>> | undefined;
|
|
342
|
+
readonly target?: TaskpackTargetDeclaration | undefined;
|
|
343
|
+
readonly upstreams: readonly TaskpackUpstreamDescriptor[];
|
|
344
|
+
readonly upstreamGroups?: readonly TaskpackUpstreamGroupDeclaration[] | undefined;
|
|
345
|
+
readonly submission?: TaskpackSubmissionDeclaration | undefined;
|
|
346
|
+
readonly verification: {
|
|
347
|
+
readonly localChecks: readonly TCheck[];
|
|
348
|
+
readonly externalGates: readonly TaskpackExternalGateDeclaration[];
|
|
349
|
+
};
|
|
350
|
+
readonly publication: TaskpackPublicationDeclaration;
|
|
351
|
+
readonly memory: TaskpackMemoryDeclaration;
|
|
352
|
+
readonly triggers: TaskpackTriggersDeclaration;
|
|
353
|
+
readonly baselineAlignment?: BaselineAlignmentConfig | undefined;
|
|
354
|
+
readonly sandbox?: TaskpackSandboxDeclaration | undefined;
|
|
355
|
+
readonly decisions?: TaskpackDecisionsDeclaration | undefined;
|
|
356
|
+
readonly models?: readonly TaskpackModelDeclaration[] | undefined;
|
|
357
|
+
readonly mcp?: TaskpackMcpDeclaration | undefined;
|
|
358
|
+
readonly limits?: TaskpackLimitsDeclaration | undefined;
|
|
359
|
+
readonly roles?: readonly TaskpackRoleDeclaration[] | undefined;
|
|
360
|
+
readonly steps?: readonly TaskpackStepDeclaration[] | undefined;
|
|
361
|
+
readonly output?: TaskpackOutputDeclaration | undefined;
|
|
362
|
+
}
|
|
363
|
+
/** Taskpack 2.0 manifest with optional `spec.proposal` and built-in structural guard checks. */
|
|
364
|
+
export interface TaskpackV2Manifest {
|
|
365
|
+
readonly apiVersion: typeof TASKPACK_MANIFEST_API_VERSION;
|
|
366
|
+
readonly kind: 'Taskpack';
|
|
367
|
+
readonly metadata: {
|
|
368
|
+
readonly name: string;
|
|
369
|
+
};
|
|
370
|
+
readonly controlRoot?: string | undefined;
|
|
371
|
+
readonly manifestPath?: string | undefined;
|
|
372
|
+
readonly spec: TaskpackManifestSpecBase<TaskpackV2CheckDeclaration> & {
|
|
373
|
+
readonly proposal?: TaskpackProposalDeclaration | undefined;
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* Legacy manifest view narrowing `spec.proposal` to required for callers of `validateTaskpackManifest`.
|
|
378
|
+
*/
|
|
379
|
+
export interface TaskpackManifestWithProposal {
|
|
380
|
+
readonly apiVersion: typeof TASKPACK_MANIFEST_API_VERSION;
|
|
381
|
+
readonly kind: 'Taskpack';
|
|
382
|
+
readonly metadata: {
|
|
383
|
+
readonly name: string;
|
|
384
|
+
};
|
|
385
|
+
readonly controlRoot?: string | undefined;
|
|
386
|
+
readonly manifestPath?: string | undefined;
|
|
387
|
+
readonly spec: TaskpackManifestSpecBase<TaskpackV2CheckDeclaration> & {
|
|
388
|
+
readonly proposal: TaskpackProposalDeclaration;
|
|
389
|
+
};
|
|
390
|
+
}
|
|
391
|
+
/** Canonical Taskpack 2.0 manifest type across `@loopwright/taskpack`. */
|
|
392
|
+
export type TaskpackManifest = TaskpackV2Manifest;
|
|
393
|
+
export declare const MAX_TASKPACK_MODEL_CANDIDATES = 8;
|
|
394
|
+
export declare const MAX_EXPANDED_MODEL_CANDIDATES = 16;
|
|
395
|
+
export interface TaskpackModelDeclaration {
|
|
396
|
+
readonly provider: string;
|
|
397
|
+
readonly id: string;
|
|
398
|
+
readonly thinking?: PiThinkingLevel | undefined;
|
|
399
|
+
readonly api?: PiWireApi | undefined;
|
|
400
|
+
readonly apiKeyEnv?: string | undefined;
|
|
401
|
+
readonly baseUrl?: string | undefined;
|
|
402
|
+
readonly authHeader?: boolean | undefined;
|
|
403
|
+
readonly headers?: Readonly<Record<string, string>> | undefined;
|
|
404
|
+
readonly contextWindow?: number | undefined;
|
|
405
|
+
readonly maxTokens?: number | undefined;
|
|
406
|
+
readonly reasoning?: boolean | undefined;
|
|
407
|
+
readonly thinkingLevelMap?: Readonly<Record<string, string | null>> | undefined;
|
|
408
|
+
readonly samplingParams?: PiSamplingParams | undefined;
|
|
409
|
+
readonly samplingParamsByThinkingLevel?: Readonly<Record<string, PiSamplingParams>> | undefined;
|
|
410
|
+
readonly compat?: PiCustomModelCompat | undefined;
|
|
411
|
+
readonly cost?: PiModelCost | undefined;
|
|
412
|
+
}
|
|
413
|
+
export type TaskpackDecisionProviderKind = 'typesafe-jev' | 'openai-decisions' | 'startlux-decision' | 'microsoft-decision' | 'perplexity-decider' | 'cloudflare-clef' | 'liquid-d1';
|
|
414
|
+
export type TaskpackDecisionDisclosurePolicy = 'disabled' | 'repo-approved-redacted-evidence' | 'public-metadata-only';
|
|
415
|
+
export type TaskpackDecisionTriageSeverity = 'blocking' | 'important' | 'nit';
|
|
416
|
+
export type TaskpackDecisionTriageRuleKind = 'noul' | 'score';
|
|
417
|
+
export interface TaskpackDecisionTriageRule {
|
|
418
|
+
readonly id: string;
|
|
419
|
+
readonly description: string;
|
|
420
|
+
readonly severity: TaskpackDecisionTriageSeverity;
|
|
421
|
+
readonly kind: TaskpackDecisionTriageRuleKind;
|
|
422
|
+
readonly threshold?: number | undefined;
|
|
423
|
+
}
|
|
424
|
+
export interface TaskpackDecisionsDeclaration {
|
|
425
|
+
readonly enabled: boolean;
|
|
426
|
+
readonly provider?: TaskpackDecisionProviderKind | undefined;
|
|
427
|
+
readonly disclosurePolicy?: TaskpackDecisionDisclosurePolicy | undefined;
|
|
428
|
+
readonly minConfidence?: number | undefined;
|
|
429
|
+
readonly confirmThreshold?: number | undefined;
|
|
430
|
+
readonly hardDeadlineMs?: number | undefined;
|
|
431
|
+
readonly maxAttempts?: 1 | 2 | undefined;
|
|
432
|
+
readonly allowImages?: boolean | undefined;
|
|
433
|
+
readonly triageRules?: readonly TaskpackDecisionTriageRule[] | undefined;
|
|
434
|
+
}
|
|
435
|
+
export type SandboxBackendId = 'macos-seatbelt' | 'linux-bwrap' | 'linux-landlock' | 'docker' | 'direct-dedicated';
|
|
436
|
+
export type SandboxNetworkMode = 'none' | 'loopback-only' | 'allow-outbound';
|
|
437
|
+
export type SandboxCapability = 'filesystemReadContainment' | 'filesystemWriteContainment' | 'protectedPathReadOnlyMask' | 'networkIsolation' | 'processTreeCleanup' | 'syscallFiltering';
|
|
438
|
+
export interface TaskpackSandboxDeclaration {
|
|
439
|
+
readonly preferredBackends?: readonly SandboxBackendId[] | undefined;
|
|
440
|
+
readonly networkMode?: SandboxNetworkMode | undefined;
|
|
441
|
+
readonly requiredCapabilities?: readonly SandboxCapability[] | undefined;
|
|
442
|
+
readonly deniedReadPaths?: readonly string[] | undefined;
|
|
443
|
+
}
|
|
444
|
+
export interface SandboxReadOnlyBindMount {
|
|
445
|
+
readonly sourcePath: string;
|
|
446
|
+
readonly targetPath: string;
|
|
447
|
+
}
|
|
448
|
+
export interface SandboxPolicyInput {
|
|
449
|
+
readonly workspaceRoot: string;
|
|
450
|
+
readonly writablePaths: readonly string[];
|
|
451
|
+
readonly protectedPaths?: readonly string[] | undefined;
|
|
452
|
+
readonly controlRoot?: string | undefined;
|
|
453
|
+
readonly proposalPath?: string | undefined;
|
|
454
|
+
readonly policyProfile?: PolicyProfile | undefined;
|
|
455
|
+
readonly protectGitHubDir?: boolean | undefined;
|
|
456
|
+
readonly allowWorkflowWrites?: boolean | undefined;
|
|
457
|
+
readonly strictExactFiles?: boolean | undefined;
|
|
458
|
+
readonly deniedReadPaths?: readonly string[] | undefined;
|
|
459
|
+
readonly allowedReadOnlyPaths?: readonly string[] | undefined;
|
|
460
|
+
readonly readOnlyBindMounts?: readonly SandboxReadOnlyBindMount[] | undefined;
|
|
461
|
+
readonly scratchDirectory?: string | undefined;
|
|
462
|
+
readonly networkMode?: SandboxNetworkMode | undefined;
|
|
463
|
+
readonly requiredCapabilities?: readonly SandboxCapability[] | undefined;
|
|
464
|
+
readonly preferredBackends?: readonly SandboxBackendId[] | undefined;
|
|
465
|
+
readonly allowDedicatedDirectOverride?: boolean | undefined;
|
|
466
|
+
}
|
|
467
|
+
export interface SandboxHostEnvironment {
|
|
468
|
+
readonly platform: 'darwin' | 'linux' | string;
|
|
469
|
+
readonly arch: 'arm64' | 'x64' | string;
|
|
470
|
+
readonly homeDirectory?: string | undefined;
|
|
471
|
+
readonly seatbeltExecutable?: string | undefined;
|
|
472
|
+
readonly bwrapExecutable?: string | undefined;
|
|
473
|
+
readonly pythonExecutable?: string | undefined;
|
|
474
|
+
readonly dockerExecutable?: string | undefined;
|
|
475
|
+
readonly dockerSocket?: string | undefined;
|
|
476
|
+
readonly probeExecutables?: boolean | undefined;
|
|
477
|
+
}
|
|
478
|
+
export interface NegotiatedSandboxBackend {
|
|
479
|
+
readonly backendId: SandboxBackendId;
|
|
480
|
+
readonly executablePath: string | null;
|
|
481
|
+
readonly capabilities: readonly SandboxCapability[];
|
|
482
|
+
readonly networkMode: SandboxNetworkMode;
|
|
483
|
+
readonly profileDigest: Digest;
|
|
484
|
+
}
|
|
485
|
+
export interface CompiledMacosSeatbeltProfile {
|
|
486
|
+
readonly backendId: 'macos-seatbelt';
|
|
487
|
+
readonly executablePath: string;
|
|
488
|
+
readonly profileText: string;
|
|
489
|
+
readonly profileDigest: Digest;
|
|
490
|
+
readonly canonicalWorkspaceRoot: string;
|
|
491
|
+
readonly canonicalWritablePaths: readonly string[];
|
|
492
|
+
readonly canonicalProtectedPaths: readonly string[];
|
|
493
|
+
readonly canonicalDeniedReadPaths: readonly string[];
|
|
494
|
+
readonly networkMode: SandboxNetworkMode;
|
|
495
|
+
}
|
|
496
|
+
export interface CompiledLinuxBwrapCommand {
|
|
497
|
+
readonly backendId: 'linux-bwrap';
|
|
498
|
+
readonly executablePath: string;
|
|
499
|
+
readonly args: readonly string[];
|
|
500
|
+
readonly seccompProfileJson: string;
|
|
501
|
+
readonly seccompDigest: Digest;
|
|
502
|
+
readonly profileDigest: Digest;
|
|
503
|
+
readonly canonicalWorkspaceRoot: string;
|
|
504
|
+
readonly canonicalWritablePaths: readonly string[];
|
|
505
|
+
readonly canonicalProtectedPaths: readonly string[];
|
|
506
|
+
readonly canonicalDeniedReadPaths: readonly string[];
|
|
507
|
+
readonly canonicalReadOnlyBindMounts: readonly SandboxReadOnlyBindMount[];
|
|
508
|
+
readonly networkMode: SandboxNetworkMode;
|
|
509
|
+
}
|
|
510
|
+
export interface SandboxedCommandInput {
|
|
511
|
+
readonly policy: SandboxPolicyInput;
|
|
512
|
+
readonly host?: SandboxHostEnvironment | undefined;
|
|
513
|
+
readonly command: string;
|
|
514
|
+
readonly args?: readonly string[] | undefined;
|
|
515
|
+
readonly cwd?: string | undefined;
|
|
516
|
+
readonly env?: Readonly<Record<string, string>> | undefined;
|
|
517
|
+
readonly stdin?: string | undefined;
|
|
518
|
+
readonly timeoutMs?: number | undefined;
|
|
519
|
+
readonly maxOutputBytes?: number | undefined;
|
|
520
|
+
readonly secretsToScrub?: readonly string[] | undefined;
|
|
521
|
+
}
|
|
522
|
+
export interface SandboxedCommandResult {
|
|
523
|
+
readonly backendId: SandboxBackendId;
|
|
524
|
+
readonly profileDigest: Digest;
|
|
525
|
+
readonly exitCode: number | null;
|
|
526
|
+
readonly signal: NodeJS.Signals | null;
|
|
527
|
+
readonly stdout: string;
|
|
528
|
+
readonly stderr: string;
|
|
529
|
+
readonly timedOut: boolean;
|
|
530
|
+
readonly durationMs: number;
|
|
531
|
+
}
|
|
532
|
+
export interface TargetMatrixCell {
|
|
533
|
+
readonly id: string;
|
|
534
|
+
readonly platform: string;
|
|
535
|
+
readonly variant: string;
|
|
536
|
+
readonly hardware?: HardwareTargetSpec | undefined;
|
|
537
|
+
}
|
|
538
|
+
export interface HostRoleSelection {
|
|
539
|
+
readonly provider?: string | undefined;
|
|
540
|
+
readonly model?: string | undefined;
|
|
541
|
+
readonly thinking?: PiThinkingLevel | undefined;
|
|
542
|
+
readonly api?: PiWireApi | undefined;
|
|
543
|
+
readonly baseUrl?: string | undefined;
|
|
544
|
+
readonly customProvider?: PiCustomProviderConfig | undefined;
|
|
545
|
+
}
|
|
546
|
+
export interface HostRuntimeOptions {
|
|
547
|
+
readonly dockerExecutable?: string | undefined;
|
|
548
|
+
readonly dockerSocket?: string | undefined;
|
|
549
|
+
readonly imageDigest?: string | undefined;
|
|
550
|
+
/** The frozen runtime profile supports only the linux/arm64 container platform. */
|
|
551
|
+
readonly profile?: 'linux/arm64' | undefined;
|
|
552
|
+
}
|
|
553
|
+
export interface HostGateEndpointPlan {
|
|
554
|
+
readonly id: string;
|
|
555
|
+
readonly url: string;
|
|
556
|
+
readonly signingCredentialRef: string;
|
|
557
|
+
readonly authCredentialRef?: string | null | undefined;
|
|
558
|
+
/** Trusted host endpoint classification; `'benchmark-gate.v1'` reserves endpoint and credentials regardless of manifest declarations. */
|
|
559
|
+
readonly implementation?: TaskpackExternalGateImplementation | undefined;
|
|
560
|
+
readonly timeoutMs?: number | undefined;
|
|
561
|
+
readonly maxPollMs?: number | undefined;
|
|
562
|
+
readonly pollInitialMs?: number | undefined;
|
|
563
|
+
readonly pollMaxMs?: number | undefined;
|
|
564
|
+
readonly jitter?: number | undefined;
|
|
565
|
+
}
|
|
566
|
+
export interface HostPublicationEndpointPlan {
|
|
567
|
+
readonly id: string;
|
|
568
|
+
readonly url: string;
|
|
569
|
+
readonly signingCredentialRef: string;
|
|
570
|
+
readonly authCredentialRef?: string | null | undefined;
|
|
571
|
+
readonly timeoutMs?: number | undefined;
|
|
572
|
+
}
|
|
573
|
+
/** Environment variable names the host injects credentials through; templates stay `${NAME}`. */
|
|
574
|
+
export interface HostCredentialEnvMap {
|
|
575
|
+
readonly provider?: string | undefined;
|
|
576
|
+
readonly gate?: string | undefined;
|
|
577
|
+
readonly gateAuth?: string | undefined;
|
|
578
|
+
readonly localCommandGate?: string | undefined;
|
|
579
|
+
readonly publication?: string | undefined;
|
|
580
|
+
readonly publicationAuth?: string | undefined;
|
|
581
|
+
/** Per-provider env mappings isolated from gate credential IDs and fixed slot names. */
|
|
582
|
+
readonly byProvider?: Readonly<Record<string, string | undefined>> | undefined;
|
|
583
|
+
/** Per-gate-credential-ID env mappings isolated from provider names and fixed slot names (such as `publication`). */
|
|
584
|
+
readonly byCredentialRef?: Readonly<Record<string, string | undefined>> | undefined;
|
|
585
|
+
}
|
|
586
|
+
export declare const LOCAL_COMMAND_GATE_ENDPOINT_ID: "loopwright-local-command";
|
|
587
|
+
export declare const DEFAULT_LOCAL_COMMAND_GATE_ENV: "LOOPWRIGHT_LOCAL_GATE_SECRET";
|
|
588
|
+
export declare const CANONICAL_TASKPACK_STEP_GATE_URL: "http://127.0.0.1:65535/loopwright-local-command";
|
|
589
|
+
export interface CompiledInstructionResource {
|
|
590
|
+
readonly id: string;
|
|
591
|
+
readonly kind: 'instruction' | 'skill' | 'document';
|
|
592
|
+
readonly path: string;
|
|
593
|
+
readonly bytes: Buffer;
|
|
594
|
+
readonly digest: Digest;
|
|
595
|
+
readonly mode?: number | undefined;
|
|
596
|
+
readonly when?: ResourceActivationRule | undefined;
|
|
597
|
+
}
|
|
598
|
+
export interface CompiledLocalCommandGate {
|
|
599
|
+
readonly checkId: string;
|
|
600
|
+
readonly gateId: string;
|
|
601
|
+
readonly endpointRef: typeof LOCAL_COMMAND_GATE_ENDPOINT_ID;
|
|
602
|
+
readonly script: string;
|
|
603
|
+
readonly scriptSha256: string;
|
|
604
|
+
readonly scriptDir?: string | undefined;
|
|
605
|
+
readonly scriptDirSha256?: string | undefined;
|
|
606
|
+
readonly args?: readonly string[] | undefined;
|
|
607
|
+
readonly timeoutSeconds: number;
|
|
608
|
+
readonly allowReadOnlyGitHubToken: boolean;
|
|
609
|
+
readonly env: readonly string[];
|
|
610
|
+
readonly envMap?: Readonly<Record<string, string>> | undefined;
|
|
611
|
+
readonly toolchainPaths?: readonly string[] | undefined;
|
|
612
|
+
readonly preserveRepoDirName?: boolean | undefined;
|
|
613
|
+
readonly mountReadOnlyGit?: boolean | undefined;
|
|
614
|
+
readonly allowHostEnv?: boolean | undefined;
|
|
615
|
+
readonly allowHostPath?: boolean | undefined;
|
|
616
|
+
readonly allowCheckNetwork?: boolean | undefined;
|
|
617
|
+
readonly networkMode?: SandboxNetworkMode | undefined;
|
|
618
|
+
readonly allowPrivileged?: boolean | undefined;
|
|
619
|
+
readonly mounts?: readonly ResolvedCommandMount[] | undefined;
|
|
620
|
+
readonly baselineConflictGuardOnly?: boolean | undefined;
|
|
621
|
+
}
|
|
622
|
+
export interface HostTaskpackBindings {
|
|
623
|
+
readonly mode: 'candidate' | 'no-change';
|
|
624
|
+
readonly checkOnlyNoChange?: boolean | undefined;
|
|
625
|
+
readonly hostPolicy?: ExecutionHostPolicy | undefined;
|
|
626
|
+
readonly executionMode?: 'pi' | 'delegated' | undefined;
|
|
627
|
+
readonly repository: string;
|
|
628
|
+
readonly repositoryRoot?: string | undefined;
|
|
629
|
+
readonly taskpackPath?: string | undefined;
|
|
630
|
+
readonly baseRevision: string;
|
|
631
|
+
readonly sourceRevision: string;
|
|
632
|
+
readonly baselineAlignment?: BaselineAlignmentOverride | undefined;
|
|
633
|
+
readonly baselineAlignmentResult?: BaselineAlignmentResult | undefined;
|
|
634
|
+
readonly baselineConflictResource?: BaselineConflictContextResource | undefined;
|
|
635
|
+
readonly enableBaselineConflictGate?: boolean | undefined;
|
|
636
|
+
readonly targetMatrix?: readonly TargetMatrixCell[] | null | undefined;
|
|
637
|
+
readonly roleSelection?: HostRoleSelection | undefined;
|
|
638
|
+
readonly candidateIndex?: number | undefined;
|
|
639
|
+
readonly allowManifestCustomBaseUrl?: boolean | undefined;
|
|
640
|
+
readonly modelsJsonPath?: string | undefined;
|
|
641
|
+
/** Pre-loaded models.json snapshot so readiness probes and compilation use an identical immutable view. */
|
|
642
|
+
readonly modelsConfig?: ParsedPiModelsJson | undefined;
|
|
643
|
+
readonly runtimeOptions?: HostRuntimeOptions | undefined;
|
|
644
|
+
readonly budgets: TaskContract['spec']['budgets'];
|
|
645
|
+
readonly limits?: TaskpackLimitsDeclaration | undefined;
|
|
646
|
+
readonly envLimits?: TaskpackLimitsDeclaration | undefined;
|
|
647
|
+
readonly externalMcpTools?: readonly string[] | undefined;
|
|
648
|
+
readonly externalMcpToolSchemas?: readonly {
|
|
649
|
+
readonly name: string;
|
|
650
|
+
readonly description: string;
|
|
651
|
+
readonly inputSchema: Readonly<Record<string, unknown>>;
|
|
652
|
+
}[] | undefined;
|
|
653
|
+
readonly maxAttempts?: number | undefined;
|
|
654
|
+
readonly gateEndpoints?: readonly HostGateEndpointPlan[] | undefined;
|
|
655
|
+
readonly publicationEndpoint?: HostPublicationEndpointPlan | null | undefined;
|
|
656
|
+
readonly credentialEnvMap?: HostCredentialEnvMap | undefined;
|
|
657
|
+
readonly sourceTokenEnvNames?: readonly string[] | undefined;
|
|
658
|
+
readonly resourceVersion?: string | undefined;
|
|
659
|
+
readonly authorPrompt?: string | undefined;
|
|
660
|
+
readonly upstreamRecords?: readonly TaskpackUpstreamRecord[] | undefined;
|
|
661
|
+
readonly preflightPromptResources?: readonly {
|
|
662
|
+
readonly id: string;
|
|
663
|
+
readonly kind: 'instruction' | 'skill' | 'document';
|
|
664
|
+
readonly path: string;
|
|
665
|
+
readonly bytes: Buffer;
|
|
666
|
+
readonly sha256: string;
|
|
667
|
+
}[] | undefined;
|
|
668
|
+
readonly preflightWorkspaceResources?: readonly {
|
|
669
|
+
readonly id: string;
|
|
670
|
+
readonly kind: 'instruction' | 'skill' | 'document';
|
|
671
|
+
readonly relativePath: string;
|
|
672
|
+
readonly stagedPath: string;
|
|
673
|
+
readonly checkStagedPath: string | null;
|
|
674
|
+
readonly sha256: string;
|
|
675
|
+
readonly byteLength: number;
|
|
676
|
+
readonly exposeToChecks: boolean;
|
|
677
|
+
}[] | undefined;
|
|
678
|
+
readonly nowMs?: number | undefined;
|
|
679
|
+
readonly scrubber?: {
|
|
680
|
+
scrub(text: string): string;
|
|
681
|
+
} | undefined;
|
|
682
|
+
readonly onMemoryWarning?: ((message: string) => void) | undefined;
|
|
683
|
+
}
|
|
684
|
+
export interface CompiledActiveMemorySummary {
|
|
685
|
+
readonly activeEntryCount: number;
|
|
686
|
+
readonly excludedEntryCount: number;
|
|
687
|
+
readonly snapshotDigest: Digest;
|
|
688
|
+
readonly resourcePath: string | null;
|
|
689
|
+
}
|
|
690
|
+
export interface CompiledTaskpack {
|
|
691
|
+
readonly registry: TrustedRegistry;
|
|
692
|
+
readonly config: ControllerConfiguration;
|
|
693
|
+
readonly registrySha256: string;
|
|
694
|
+
readonly registryBytes: Buffer;
|
|
695
|
+
readonly instructionResources?: readonly CompiledInstructionResource[] | undefined;
|
|
696
|
+
readonly localCommandGates?: readonly CompiledLocalCommandGate[] | undefined;
|
|
697
|
+
readonly activeMemory?: CompiledActiveMemorySummary | undefined;
|
|
698
|
+
readonly digests?: Readonly<Record<string, string>> | undefined;
|
|
699
|
+
readonly roleMcpServers?: Readonly<Record<string, readonly string[]>> | undefined;
|
|
700
|
+
readonly allowWorkflowWrites?: boolean | undefined;
|
|
701
|
+
readonly policyProfile?: PolicyProfile | undefined;
|
|
702
|
+
readonly baselineAlignment?: ResolvedBaselineAlignmentConfig | undefined;
|
|
703
|
+
readonly extractedConflictPaths?: readonly string[] | undefined;
|
|
704
|
+
readonly watchedPaths?: readonly string[] | undefined;
|
|
705
|
+
readonly circuitBreakerLimits?: {
|
|
706
|
+
readonly maxTurns?: number | undefined;
|
|
707
|
+
readonly maxRepairTurns?: number | undefined;
|
|
708
|
+
} | undefined;
|
|
709
|
+
}
|
|
710
|
+
export declare const REPOSITORY_FULL_NAME_PATTERN: RegExp;
|
|
711
|
+
export declare const AUTHORIZED_ASSOCIATIONS: readonly string[];
|
|
712
|
+
export interface TenantIdentity {
|
|
713
|
+
readonly installationId: number;
|
|
714
|
+
readonly repositoryId: number;
|
|
715
|
+
readonly repositoryFullName: string;
|
|
716
|
+
readonly taskpackId: string;
|
|
717
|
+
}
|
|
718
|
+
export interface ParsedCommentCommand {
|
|
719
|
+
readonly command: TaskpackCommentCommand;
|
|
720
|
+
readonly guidance: string;
|
|
721
|
+
}
|
|
722
|
+
export type UpstreamAcquisitionStatus = 'available' | 'up_to_date' | 'held_back' | 'failed' | 'blocked';
|
|
723
|
+
export interface TaskpackUpstreamRecord {
|
|
724
|
+
readonly upstreamId: string;
|
|
725
|
+
readonly status: UpstreamAcquisitionStatus;
|
|
726
|
+
readonly version?: string | undefined;
|
|
727
|
+
readonly recentVersions?: readonly string[] | undefined;
|
|
728
|
+
readonly reason?: string | undefined;
|
|
729
|
+
}
|
|
730
|
+
export interface TaskpackReviseCommand {
|
|
731
|
+
readonly commandId: number;
|
|
732
|
+
readonly headSha: string;
|
|
733
|
+
readonly commandDigest: string;
|
|
734
|
+
}
|
|
735
|
+
export interface TaskpackRunDiagnostic {
|
|
736
|
+
readonly url: string;
|
|
737
|
+
readonly repository: string;
|
|
738
|
+
readonly runId: string;
|
|
739
|
+
readonly jobId: string | null;
|
|
740
|
+
readonly jobLogText: string;
|
|
741
|
+
readonly truncated: boolean;
|
|
742
|
+
}
|
|
743
|
+
export type TaskpackIntakeInput = {
|
|
744
|
+
readonly mode: 'discover';
|
|
745
|
+
readonly tenant: TenantIdentity;
|
|
746
|
+
readonly baseRevision: string;
|
|
747
|
+
readonly records: readonly TaskpackUpstreamRecord[];
|
|
748
|
+
readonly force?: boolean | undefined;
|
|
749
|
+
readonly managedPrMatchesDiscoveredState?: boolean | undefined;
|
|
750
|
+
readonly targetMatrix?: readonly TargetMatrixCell[] | null | undefined;
|
|
751
|
+
} | {
|
|
752
|
+
readonly mode: 'revise';
|
|
753
|
+
readonly tenant: TenantIdentity;
|
|
754
|
+
readonly command: TaskpackReviseCommand;
|
|
755
|
+
readonly actorLogin: string;
|
|
756
|
+
readonly authorAssociation: string;
|
|
757
|
+
readonly operatorAllowlist?: readonly string[] | undefined;
|
|
758
|
+
readonly guidance: string;
|
|
759
|
+
} | {
|
|
760
|
+
readonly mode: 'run-url';
|
|
761
|
+
readonly tenant: TenantIdentity;
|
|
762
|
+
readonly identityRepository: string;
|
|
763
|
+
readonly url: string;
|
|
764
|
+
readonly jobLogText: string;
|
|
765
|
+
} | {
|
|
766
|
+
readonly mode: 'status';
|
|
767
|
+
readonly tenant: TenantIdentity;
|
|
768
|
+
};
|
|
769
|
+
export type TaskpackIntakeOutcome = {
|
|
770
|
+
readonly kind: 'discover';
|
|
771
|
+
readonly disposition: 'ready';
|
|
772
|
+
readonly baseRevision: string;
|
|
773
|
+
readonly updates: readonly TaskpackUpstreamRecord[];
|
|
774
|
+
readonly targetMatrix: readonly TargetMatrixCell[] | null;
|
|
775
|
+
} | {
|
|
776
|
+
readonly kind: 'discover';
|
|
777
|
+
readonly disposition: 'no_change';
|
|
778
|
+
readonly reason: string;
|
|
779
|
+
} | {
|
|
780
|
+
readonly kind: 'discover';
|
|
781
|
+
readonly disposition: 'blocked';
|
|
782
|
+
readonly reason: 'upstream_unavailable';
|
|
783
|
+
readonly failures: readonly {
|
|
784
|
+
readonly upstreamId: string;
|
|
785
|
+
readonly error: string;
|
|
786
|
+
}[];
|
|
787
|
+
} | {
|
|
788
|
+
readonly kind: 'revise';
|
|
789
|
+
readonly disposition: 'ready';
|
|
790
|
+
readonly command: TaskpackReviseCommand;
|
|
791
|
+
} | {
|
|
792
|
+
readonly kind: 'revise';
|
|
793
|
+
readonly disposition: 'blocked';
|
|
794
|
+
readonly reason: 'unauthorized_actor' | 'invalid_guidance';
|
|
795
|
+
readonly detail: string;
|
|
796
|
+
} | {
|
|
797
|
+
readonly kind: 'run-url';
|
|
798
|
+
readonly disposition: 'ready';
|
|
799
|
+
readonly diagnostic: TaskpackRunDiagnostic;
|
|
800
|
+
} | {
|
|
801
|
+
readonly kind: 'run-url';
|
|
802
|
+
readonly disposition: 'blocked';
|
|
803
|
+
readonly reason: 'invalid_run_url' | 'unknown_repository_url';
|
|
804
|
+
readonly detail: string;
|
|
805
|
+
} | {
|
|
806
|
+
readonly kind: 'status';
|
|
807
|
+
readonly disposition: 'ready';
|
|
808
|
+
readonly summary: string;
|
|
809
|
+
};
|
|
810
|
+
export type DeploymentStorageProfile = 'actions-basic' | 'durable';
|
|
811
|
+
export interface DeploymentHostProfileInput {
|
|
812
|
+
readonly platform: string;
|
|
813
|
+
readonly arch: string;
|
|
814
|
+
readonly nodeVersion: string;
|
|
815
|
+
readonly filesystemType: string;
|
|
816
|
+
readonly storageProfile: DeploymentStorageProfile;
|
|
817
|
+
readonly clockBasis: ClockBasis;
|
|
818
|
+
readonly previousClockSample: ClockSample;
|
|
819
|
+
readonly currentClockSample: ClockSample;
|
|
820
|
+
readonly hasVerifiedCheckpointLedger: boolean;
|
|
821
|
+
readonly autoResumeOnHostLossRequested: boolean;
|
|
822
|
+
readonly probeDirectory?: string | undefined;
|
|
823
|
+
}
|
|
824
|
+
export type HostQualification = {
|
|
825
|
+
readonly ok: true;
|
|
826
|
+
} | {
|
|
827
|
+
readonly ok: false;
|
|
828
|
+
readonly code: 'HOST_PROFILE_UNQUALIFIED' | 'HOST_CLOCK_UNTRUSTED' | 'STORAGE_PROFILE_INSUFFICIENT';
|
|
829
|
+
readonly reason: string;
|
|
830
|
+
readonly recommendedRunStatus?: 'reconcile_required' | undefined;
|
|
831
|
+
};
|
|
832
|
+
export interface McpServerAuthDeclaration {
|
|
833
|
+
readonly serverId: string;
|
|
834
|
+
readonly auth?: {
|
|
835
|
+
readonly type: string;
|
|
836
|
+
} | null | undefined;
|
|
837
|
+
}
|
|
838
|
+
export interface McpTransportChallenge {
|
|
839
|
+
readonly status: number;
|
|
840
|
+
readonly wwwAuthenticate?: string | null | undefined;
|
|
841
|
+
}
|
|
842
|
+
export interface McpAuthConfigurationInput {
|
|
843
|
+
readonly servers: readonly McpServerAuthDeclaration[];
|
|
844
|
+
readonly transportChallenge?: McpTransportChallenge | null | undefined;
|
|
845
|
+
}
|
|
846
|
+
export type McpAuthValidation = {
|
|
847
|
+
readonly ok: true;
|
|
848
|
+
} | {
|
|
849
|
+
readonly ok: false;
|
|
850
|
+
readonly code: 'MCP_OAUTH_UNSUPPORTED' | 'MCP_AUTHENTICATION_REQUIRED';
|
|
851
|
+
readonly reason: string;
|
|
852
|
+
};
|
|
853
|
+
export interface ResolvedModelCandidate {
|
|
854
|
+
readonly index: number;
|
|
855
|
+
readonly manifestIndex: number;
|
|
856
|
+
readonly selection: PiModelSelection;
|
|
857
|
+
readonly apiKeyEnv?: string | undefined;
|
|
858
|
+
readonly providerEnvName: string;
|
|
859
|
+
readonly sourceTokenEnvName?: string | undefined;
|
|
860
|
+
readonly token?: string | undefined;
|
|
861
|
+
readonly usesActiveTokenEnv: boolean;
|
|
862
|
+
}
|
|
863
|
+
export interface ModelCandidateProbeAttempt {
|
|
864
|
+
readonly index: number;
|
|
865
|
+
readonly provider: string;
|
|
866
|
+
readonly model: string;
|
|
867
|
+
readonly api: PiWireApi;
|
|
868
|
+
readonly ok: boolean;
|
|
869
|
+
readonly status: number | null;
|
|
870
|
+
readonly reason: string;
|
|
871
|
+
}
|
|
872
|
+
export interface ModelCandidateSelectionResult {
|
|
873
|
+
readonly selected: ResolvedModelCandidate;
|
|
874
|
+
readonly index: number;
|
|
875
|
+
readonly probed: boolean;
|
|
876
|
+
readonly attempts: readonly ModelCandidateProbeAttempt[];
|
|
877
|
+
}
|
|
878
|
+
export interface GitCommitIdentity {
|
|
879
|
+
readonly name: string;
|
|
880
|
+
readonly email: string;
|
|
881
|
+
}
|
|
882
|
+
export interface ActionDelegateOutcome {
|
|
883
|
+
readonly ok: boolean;
|
|
884
|
+
readonly detail: string;
|
|
885
|
+
readonly retryableProviderFailure?: boolean | undefined;
|
|
886
|
+
}
|
|
887
|
+
export interface ActionEntrypointInput {
|
|
888
|
+
readonly repositoryRoot: string;
|
|
889
|
+
readonly taskpackPath?: string | undefined;
|
|
890
|
+
readonly repositoryFullName: string;
|
|
891
|
+
readonly baseRevision: string;
|
|
892
|
+
readonly sourceRevision?: string | undefined;
|
|
893
|
+
readonly baselineAlignment?: BaselineAlignmentOverride | undefined;
|
|
894
|
+
readonly mode: 'candidate' | 'no-change' | 'auto';
|
|
895
|
+
readonly allowPrivilegedExecution?: boolean | undefined;
|
|
896
|
+
readonly allowWorkflowWrites?: boolean | undefined;
|
|
897
|
+
readonly allowHostMounts?: string | readonly string[] | undefined;
|
|
898
|
+
readonly hostPolicy?: ExecutionHostPolicy | undefined;
|
|
899
|
+
readonly eventName: string;
|
|
900
|
+
readonly eventPayload?: unknown | undefined;
|
|
901
|
+
readonly runRoot: string;
|
|
902
|
+
readonly runId: string;
|
|
903
|
+
readonly storageProfile?: DeploymentStorageProfile | undefined;
|
|
904
|
+
readonly filesystemType?: string | undefined;
|
|
905
|
+
readonly provider?: string | undefined;
|
|
906
|
+
readonly model?: string | undefined;
|
|
907
|
+
readonly thinking?: PiThinkingLevel | undefined;
|
|
908
|
+
readonly api?: PiWireApi | undefined;
|
|
909
|
+
readonly baseUrl?: string | undefined;
|
|
910
|
+
readonly providerTokenEnv?: string | undefined;
|
|
911
|
+
readonly modelsJsonPath?: string | undefined;
|
|
912
|
+
readonly allowManifestCustomBaseUrl?: boolean | undefined;
|
|
913
|
+
readonly gitAuthorName?: string | undefined;
|
|
914
|
+
readonly gitAuthorEmail?: string | undefined;
|
|
915
|
+
readonly upstreamRecords?: readonly TaskpackUpstreamRecord[] | undefined;
|
|
916
|
+
readonly targetMatrix?: readonly TargetMatrixCell[] | null | undefined;
|
|
917
|
+
readonly budgets?: TaskContract['spec']['budgets'] | undefined;
|
|
918
|
+
readonly limits?: TaskpackLimitsDeclaration | undefined;
|
|
919
|
+
readonly gateEndpoints?: readonly HostGateEndpointPlan[] | undefined;
|
|
920
|
+
readonly publicationEndpoint?: HostPublicationEndpointPlan | null | undefined;
|
|
921
|
+
readonly credentialEnvMap?: HostCredentialEnvMap | undefined;
|
|
922
|
+
readonly resourceVersion?: string | undefined;
|
|
923
|
+
readonly authorPrompt?: string | undefined;
|
|
924
|
+
readonly operatorAllowlist?: readonly string[] | undefined;
|
|
925
|
+
readonly commentPrefixes?: readonly string[] | undefined;
|
|
926
|
+
readonly mcpServers?: readonly McpServerAuthDeclaration[] | undefined;
|
|
927
|
+
readonly mcpServerConfigs?: readonly TaskpackMcpServerDeclaration[] | undefined;
|
|
928
|
+
readonly mcpTransportChallenge?: McpTransportChallenge | null | undefined;
|
|
929
|
+
readonly clockBasis?: ClockBasis | undefined;
|
|
930
|
+
readonly previousClockSample?: ClockSample | undefined;
|
|
931
|
+
readonly currentClockSample?: ClockSample | undefined;
|
|
932
|
+
readonly probeDirectory?: string | undefined;
|
|
933
|
+
readonly env?: NodeJS.ProcessEnv | undefined;
|
|
934
|
+
readonly probeFetch?: typeof globalThis.fetch | undefined;
|
|
935
|
+
readonly probeTimeoutMs?: number | undefined;
|
|
936
|
+
readonly dryRun?: boolean | undefined;
|
|
937
|
+
readonly force?: boolean | undefined;
|
|
938
|
+
readonly delegate?: (compiled: WrittenCompiledTaskpack) => Promise<ActionDelegateOutcome>;
|
|
939
|
+
readonly openHostSessionAdapter?: typeof openPiHostSessionAdapterV2 | undefined;
|
|
940
|
+
}
|
|
941
|
+
export interface WrittenCompiledTaskpack extends CompiledTaskpack {
|
|
942
|
+
readonly configBytes: Buffer;
|
|
943
|
+
readonly trustedDirectory: string;
|
|
944
|
+
readonly registryPath: string;
|
|
945
|
+
readonly configPath: string;
|
|
946
|
+
}
|
|
947
|
+
export type TurnkeyMemoryOutcomeStatus = 'published' | 'updated' | 'local_only' | 'no_entries' | 'skipped' | 'refused' | 'reconcile_required' | 'failed';
|
|
948
|
+
export interface TurnkeyMemorySummary {
|
|
949
|
+
readonly status: TurnkeyMemoryOutcomeStatus;
|
|
950
|
+
readonly directory: string;
|
|
951
|
+
readonly proposalId: string | null;
|
|
952
|
+
readonly entryCount: number;
|
|
953
|
+
readonly rebased: boolean;
|
|
954
|
+
readonly branchName: string | null;
|
|
955
|
+
readonly pullRequestUrl: string | null;
|
|
956
|
+
readonly pullRequestNumber: number | null;
|
|
957
|
+
readonly reason: string | null;
|
|
958
|
+
}
|
|
959
|
+
export type ActionEntrypointResult = {
|
|
960
|
+
readonly kind: 'refused';
|
|
961
|
+
readonly code: 'HOST_PROFILE_UNQUALIFIED' | 'HOST_CLOCK_UNTRUSTED' | 'STORAGE_PROFILE_INSUFFICIENT' | 'MCP_OAUTH_UNSUPPORTED' | 'MCP_AUTHENTICATION_REQUIRED' | 'PROVIDER_OAUTH_UNSUPPORTED' | 'TASKPACK_HOST_BINDING_INVALID' | 'TASKPACK_SCOPE_VIOLATION' | 'TASKPACK_TRIGGER_UNSUPPORTED';
|
|
962
|
+
readonly reason: string;
|
|
963
|
+
readonly recommendedRunStatus?: 'reconcile_required' | undefined;
|
|
964
|
+
} | {
|
|
965
|
+
readonly kind: 'no_change';
|
|
966
|
+
readonly reason: string;
|
|
967
|
+
readonly taskpack?: WrittenCompiledTaskpack | undefined;
|
|
968
|
+
readonly delegateOutcome?: {
|
|
969
|
+
readonly ok: boolean;
|
|
970
|
+
readonly detail: string;
|
|
971
|
+
} | null | undefined;
|
|
972
|
+
} | {
|
|
973
|
+
readonly kind: 'blocked';
|
|
974
|
+
readonly reason: string;
|
|
975
|
+
readonly detail?: string;
|
|
976
|
+
} | {
|
|
977
|
+
readonly kind: 'compiled';
|
|
978
|
+
readonly manifest: TaskpackManifest;
|
|
979
|
+
readonly intake: TaskpackIntakeOutcome;
|
|
980
|
+
readonly taskpack: WrittenCompiledTaskpack;
|
|
981
|
+
readonly delegateOutcome: {
|
|
982
|
+
readonly ok: boolean;
|
|
983
|
+
readonly detail: string;
|
|
984
|
+
} | null;
|
|
985
|
+
readonly memory?: TurnkeyMemorySummary | undefined;
|
|
986
|
+
};
|
|
987
|
+
export declare const DEFAULT_TASKPACK_SUITE_PATH: ".loopwright/suite.yaml";
|
|
988
|
+
export declare const TASKPACK_SUITE_MANIFEST_BYTES = 65536;
|
|
989
|
+
export declare const MAX_SUITE_DOMAINS = 32;
|
|
990
|
+
export declare const MAX_SUITE_STAGES = 16;
|
|
991
|
+
export declare const MAX_SUITE_STAGE_READINESS_PROBES = 16;
|
|
992
|
+
export declare const MAX_SUITE_STAGE_VERSION_BLOB_BYTES = 1048576;
|
|
993
|
+
export declare const SUITE_STAGE_READINESS_PROBE_KINDS: readonly ["github-release", "http-json", "git-tag", "git-commit"];
|
|
994
|
+
export type SuiteStageReadinessProbeKind = typeof SUITE_STAGE_READINESS_PROBE_KINDS[number];
|
|
995
|
+
export interface SuiteVersionFromSelector {
|
|
996
|
+
readonly domain: string;
|
|
997
|
+
readonly path: string;
|
|
998
|
+
readonly jsonPointer?: string | undefined;
|
|
999
|
+
}
|
|
1000
|
+
export interface SuiteStageReadinessProbe {
|
|
1001
|
+
readonly id?: string | undefined;
|
|
1002
|
+
readonly kind: SuiteStageReadinessProbeKind;
|
|
1003
|
+
readonly source: string;
|
|
1004
|
+
readonly versionFrom?: SuiteVersionFromSelector | undefined;
|
|
1005
|
+
readonly expectedVersion?: string | undefined;
|
|
1006
|
+
readonly ref?: string | undefined;
|
|
1007
|
+
readonly tagPrefix?: string | undefined;
|
|
1008
|
+
readonly jsonPointer?: string | undefined;
|
|
1009
|
+
readonly versionPath?: string | undefined;
|
|
1010
|
+
readonly allowPrerelease?: boolean | undefined;
|
|
1011
|
+
}
|
|
1012
|
+
export interface TaskpackSuiteStageDeclaration {
|
|
1013
|
+
readonly id: string;
|
|
1014
|
+
readonly dependsOn: readonly string[];
|
|
1015
|
+
readonly readiness: readonly SuiteStageReadinessProbe[];
|
|
1016
|
+
}
|
|
1017
|
+
export type TaskpackSuiteDomainMatrix = readonly TargetMatrixCell[] | Readonly<Record<string, string | number | boolean>>;
|
|
1018
|
+
export interface TaskpackSuiteDomainDeclaration {
|
|
1019
|
+
readonly id: string;
|
|
1020
|
+
readonly taskpack: string;
|
|
1021
|
+
readonly enabled: boolean;
|
|
1022
|
+
readonly schedules?: readonly string[] | undefined;
|
|
1023
|
+
readonly stage?: string | undefined;
|
|
1024
|
+
readonly matrix?: TaskpackSuiteDomainMatrix | undefined;
|
|
1025
|
+
}
|
|
1026
|
+
export interface TaskpackSuiteManifest {
|
|
1027
|
+
readonly apiVersion: typeof TASKPACK_MANIFEST_API_VERSION;
|
|
1028
|
+
readonly kind: 'TaskpackSuite';
|
|
1029
|
+
readonly metadata: {
|
|
1030
|
+
readonly name: string;
|
|
1031
|
+
};
|
|
1032
|
+
readonly suitePath?: string | undefined;
|
|
1033
|
+
readonly controlRoot?: string | undefined;
|
|
1034
|
+
readonly spec: {
|
|
1035
|
+
readonly domains: readonly TaskpackSuiteDomainDeclaration[];
|
|
1036
|
+
readonly stages: readonly TaskpackSuiteStageDeclaration[];
|
|
1037
|
+
};
|
|
1038
|
+
}
|
|
1039
|
+
export interface LoadedTaskpackSuiteDomain {
|
|
1040
|
+
readonly id: string;
|
|
1041
|
+
readonly taskpackPath: string;
|
|
1042
|
+
readonly taskpackName: string;
|
|
1043
|
+
readonly controlRoot: string;
|
|
1044
|
+
readonly manifestSha256: string;
|
|
1045
|
+
readonly enabled: boolean;
|
|
1046
|
+
readonly schedules?: readonly string[] | undefined;
|
|
1047
|
+
readonly stage?: string | undefined;
|
|
1048
|
+
readonly matrix?: TaskpackSuiteDomainMatrix | undefined;
|
|
1049
|
+
readonly manifest: TaskpackManifest;
|
|
1050
|
+
readonly protectedPaths: readonly string[];
|
|
1051
|
+
}
|
|
1052
|
+
export interface LoadedTaskpackSuite {
|
|
1053
|
+
readonly manifest: TaskpackSuiteManifest;
|
|
1054
|
+
readonly suitePath: string;
|
|
1055
|
+
readonly controlRoot: string;
|
|
1056
|
+
readonly suiteSha256: string;
|
|
1057
|
+
readonly suiteProtectedPaths: readonly string[];
|
|
1058
|
+
readonly stageOrder: readonly string[];
|
|
1059
|
+
readonly domains: readonly LoadedTaskpackSuiteDomain[];
|
|
1060
|
+
}
|
|
1061
|
+
export type SuiteDisposition = 'eligible' | 'deferred' | 'blocked' | 'ignored';
|
|
1062
|
+
export interface SuiteStageProbeEvaluation {
|
|
1063
|
+
readonly stageId: string;
|
|
1064
|
+
readonly probeIndex: number;
|
|
1065
|
+
readonly probeId?: string | undefined;
|
|
1066
|
+
readonly kind: SuiteStageReadinessProbeKind;
|
|
1067
|
+
readonly source: string;
|
|
1068
|
+
readonly disposition: 'eligible' | 'deferred' | 'blocked';
|
|
1069
|
+
readonly expectedVersion?: string | undefined;
|
|
1070
|
+
readonly observedVersion?: string | undefined;
|
|
1071
|
+
readonly reason: string;
|
|
1072
|
+
readonly detail?: string | undefined;
|
|
1073
|
+
}
|
|
1074
|
+
export interface SuiteMatrixCell {
|
|
1075
|
+
readonly domainId: string;
|
|
1076
|
+
readonly taskpackPath: string;
|
|
1077
|
+
readonly taskpackName: string;
|
|
1078
|
+
readonly manifestSha256: string;
|
|
1079
|
+
readonly controlRoot: string;
|
|
1080
|
+
readonly baseRevision: string;
|
|
1081
|
+
readonly headSha?: string | undefined;
|
|
1082
|
+
readonly stage?: string | undefined;
|
|
1083
|
+
readonly matrix?: TaskpackSuiteDomainMatrix | undefined;
|
|
1084
|
+
readonly protectedPaths: readonly string[];
|
|
1085
|
+
}
|
|
1086
|
+
export interface SuiteDomainResolution extends SuiteMatrixCell {
|
|
1087
|
+
readonly disposition: 'eligible' | 'deferred' | 'blocked';
|
|
1088
|
+
readonly reason: string;
|
|
1089
|
+
readonly detail?: string | undefined;
|
|
1090
|
+
readonly code?: TaskpackErrorCode | undefined;
|
|
1091
|
+
readonly probes?: readonly SuiteStageProbeEvaluation[] | undefined;
|
|
1092
|
+
}
|
|
1093
|
+
export interface ParsedSuiteCommentCommand {
|
|
1094
|
+
readonly prefix: string;
|
|
1095
|
+
readonly domainId?: string | undefined;
|
|
1096
|
+
readonly command: TaskpackCommentCommand;
|
|
1097
|
+
readonly guidance: string;
|
|
1098
|
+
}
|
|
1099
|
+
export interface SuiteResolutionResult {
|
|
1100
|
+
readonly suiteName: string;
|
|
1101
|
+
readonly suitePath: string;
|
|
1102
|
+
readonly suiteSha256: string;
|
|
1103
|
+
readonly eventName: string;
|
|
1104
|
+
readonly baseRevision: string;
|
|
1105
|
+
readonly disposition: SuiteDisposition;
|
|
1106
|
+
readonly reason: string;
|
|
1107
|
+
readonly detail?: string | undefined;
|
|
1108
|
+
readonly code?: TaskpackErrorCode | undefined;
|
|
1109
|
+
readonly validDomainIds: readonly string[];
|
|
1110
|
+
readonly suiteProtectedPaths: readonly string[];
|
|
1111
|
+
readonly comment?: ParsedSuiteCommentCommand | undefined;
|
|
1112
|
+
readonly cells: readonly SuiteDomainResolution[];
|
|
1113
|
+
readonly eligibleCells: readonly SuiteMatrixCell[];
|
|
1114
|
+
readonly matrix: {
|
|
1115
|
+
readonly include: readonly SuiteMatrixCell[];
|
|
1116
|
+
};
|
|
1117
|
+
}
|
|
1118
|
+
export declare const BASELINE_ALIGNMENT_POLICIES: readonly ["off", "fail-fast", "extract-context"];
|
|
1119
|
+
export type BaselineAlignmentPolicy = typeof BASELINE_ALIGNMENT_POLICIES[number];
|
|
1120
|
+
export declare const DEFAULT_BASELINE_ALIGNMENT_POLICY: BaselineAlignmentPolicy;
|
|
1121
|
+
export declare const DEFAULT_BASELINE_MAX_CONFLICT_FILES = 16;
|
|
1122
|
+
export declare const MIN_BASELINE_MAX_CONFLICT_FILES = 1;
|
|
1123
|
+
export declare const MAX_BASELINE_MAX_CONFLICT_FILES = 64;
|
|
1124
|
+
export declare const DEFAULT_BASELINE_MAX_CONFLICT_BYTES = 65536;
|
|
1125
|
+
export declare const MIN_BASELINE_MAX_CONFLICT_BYTES = 1024;
|
|
1126
|
+
export declare const MAX_BASELINE_MAX_CONFLICT_BYTES = 262144;
|
|
1127
|
+
export declare const BASELINE_CONFLICT_REASON: "baseline_merge_conflict";
|
|
1128
|
+
export declare const BASELINE_CONFLICT_RESOURCE_ID: "baseline-conflict-context";
|
|
1129
|
+
export declare const BASELINE_CONFLICT_RESOURCE_PATH: ".loopwright-baseline/conflicts.json";
|
|
1130
|
+
export interface BaselineAlignmentConfig {
|
|
1131
|
+
readonly policy: BaselineAlignmentPolicy;
|
|
1132
|
+
readonly maxConflictFiles?: number | undefined;
|
|
1133
|
+
readonly maxConflictBytes?: number | undefined;
|
|
1134
|
+
}
|
|
1135
|
+
export interface ResolvedBaselineAlignmentConfig {
|
|
1136
|
+
readonly policy: BaselineAlignmentPolicy;
|
|
1137
|
+
readonly maxConflictFiles: number;
|
|
1138
|
+
readonly maxConflictBytes: number;
|
|
1139
|
+
}
|
|
1140
|
+
export type BaselineAlignmentOverride = BaselineAlignmentPolicy | BaselineAlignmentConfig;
|
|
1141
|
+
export interface BaselineConflictHunk {
|
|
1142
|
+
readonly index: number;
|
|
1143
|
+
readonly startLine: number;
|
|
1144
|
+
readonly endLine: number;
|
|
1145
|
+
readonly block: string;
|
|
1146
|
+
}
|
|
1147
|
+
export type BaselineConflictKind = 'content' | 'add_add' | 'modify_delete' | 'delete_modify';
|
|
1148
|
+
export interface ExtractedBaselineConflictFile {
|
|
1149
|
+
readonly path: string;
|
|
1150
|
+
readonly conflictKind: BaselineConflictKind;
|
|
1151
|
+
readonly baseSha256: string | null;
|
|
1152
|
+
readonly targetSha256: string | null;
|
|
1153
|
+
readonly sourceSha256: string | null;
|
|
1154
|
+
readonly byteLength: number;
|
|
1155
|
+
readonly hunks: readonly BaselineConflictHunk[];
|
|
1156
|
+
}
|
|
1157
|
+
export interface BaselineConflictContextDocument {
|
|
1158
|
+
readonly version: 1;
|
|
1159
|
+
readonly baseRevision: string;
|
|
1160
|
+
readonly sourceRevision: string;
|
|
1161
|
+
readonly mergeBase: string | null;
|
|
1162
|
+
readonly conflictCount: number;
|
|
1163
|
+
readonly totalHunkBytes: number;
|
|
1164
|
+
readonly conflicts: readonly ExtractedBaselineConflictFile[];
|
|
1165
|
+
}
|
|
1166
|
+
export interface BaselineConflictContextResource {
|
|
1167
|
+
readonly id: typeof BASELINE_CONFLICT_RESOURCE_ID;
|
|
1168
|
+
readonly kind: 'document';
|
|
1169
|
+
readonly path: string;
|
|
1170
|
+
readonly bytes: Buffer;
|
|
1171
|
+
readonly sha256: string;
|
|
1172
|
+
readonly byteLength: number;
|
|
1173
|
+
readonly document: BaselineConflictContextDocument;
|
|
1174
|
+
readonly extractedPaths: readonly string[];
|
|
1175
|
+
}
|
|
1176
|
+
export type BaselineAlignmentResult = {
|
|
1177
|
+
readonly disposition: 'clean';
|
|
1178
|
+
readonly status: 'same_revision' | 'merged_clean';
|
|
1179
|
+
readonly policy: ResolvedBaselineAlignmentConfig;
|
|
1180
|
+
readonly baseRevision: string;
|
|
1181
|
+
readonly sourceRevision: string;
|
|
1182
|
+
readonly mergeBase: string | null;
|
|
1183
|
+
readonly mergedTreeOid: string | null;
|
|
1184
|
+
readonly carryRemovals: readonly string[];
|
|
1185
|
+
readonly carryUpdates: readonly CarryDeltaEntry[];
|
|
1186
|
+
readonly conflictPaths: readonly string[];
|
|
1187
|
+
readonly conflicts: readonly ExtractedBaselineConflictFile[];
|
|
1188
|
+
readonly conflictResource: null;
|
|
1189
|
+
} | {
|
|
1190
|
+
readonly disposition: 'extracted';
|
|
1191
|
+
readonly status: 'conflicts_extracted';
|
|
1192
|
+
readonly policy: ResolvedBaselineAlignmentConfig;
|
|
1193
|
+
readonly baseRevision: string;
|
|
1194
|
+
readonly sourceRevision: string;
|
|
1195
|
+
readonly mergeBase: string | null;
|
|
1196
|
+
readonly mergedTreeOid: string | null;
|
|
1197
|
+
readonly carryRemovals: readonly string[];
|
|
1198
|
+
readonly carryUpdates: readonly CarryDeltaEntry[];
|
|
1199
|
+
readonly conflictPaths: readonly string[];
|
|
1200
|
+
readonly conflicts: readonly ExtractedBaselineConflictFile[];
|
|
1201
|
+
readonly conflictResource: BaselineConflictContextResource;
|
|
1202
|
+
} | {
|
|
1203
|
+
readonly disposition: 'unmerged_off';
|
|
1204
|
+
readonly status: 'conflicts_unmerged';
|
|
1205
|
+
readonly policy: ResolvedBaselineAlignmentConfig;
|
|
1206
|
+
readonly baseRevision: string;
|
|
1207
|
+
readonly sourceRevision: string;
|
|
1208
|
+
readonly mergeBase: string | null;
|
|
1209
|
+
readonly mergedTreeOid: string | null;
|
|
1210
|
+
readonly carryRemovals: readonly string[];
|
|
1211
|
+
readonly carryUpdates: readonly CarryDeltaEntry[];
|
|
1212
|
+
readonly conflictPaths: readonly string[];
|
|
1213
|
+
readonly conflicts: readonly ExtractedBaselineConflictFile[];
|
|
1214
|
+
readonly conflictResource: null;
|
|
1215
|
+
} | {
|
|
1216
|
+
readonly disposition: 'blocked';
|
|
1217
|
+
readonly status: 'blocked';
|
|
1218
|
+
readonly reason: typeof BASELINE_CONFLICT_REASON;
|
|
1219
|
+
readonly detail: string;
|
|
1220
|
+
readonly policy: ResolvedBaselineAlignmentConfig;
|
|
1221
|
+
readonly baseRevision: string;
|
|
1222
|
+
readonly sourceRevision: string;
|
|
1223
|
+
readonly mergeBase: string | null;
|
|
1224
|
+
readonly mergedTreeOid: null;
|
|
1225
|
+
readonly carryRemovals: readonly string[];
|
|
1226
|
+
readonly carryUpdates: readonly CarryDeltaEntry[];
|
|
1227
|
+
readonly conflictPaths: readonly string[];
|
|
1228
|
+
readonly conflicts: readonly ExtractedBaselineConflictFile[];
|
|
1229
|
+
readonly conflictResource: null;
|
|
1230
|
+
};
|
|
1231
|
+
/** Scope view accepted by candidate write checks — either a compiled `TaskContract` or compiled scope pattern arrays. */
|
|
1232
|
+
export interface CandidateScopeSnapshot {
|
|
1233
|
+
readonly contract?: TaskContract | undefined;
|
|
1234
|
+
readonly writablePaths?: readonly string[] | undefined;
|
|
1235
|
+
readonly protectedPaths: readonly string[];
|
|
1236
|
+
}
|
|
1237
|
+
export interface GitTreeEntry {
|
|
1238
|
+
readonly mode: string;
|
|
1239
|
+
readonly type: string;
|
|
1240
|
+
readonly oid: string;
|
|
1241
|
+
}
|
|
1242
|
+
export interface CarryDeltaEntry {
|
|
1243
|
+
readonly path: string;
|
|
1244
|
+
readonly mode: '100644' | '100755';
|
|
1245
|
+
readonly oid: string;
|
|
1246
|
+
readonly byteLength?: number | undefined;
|
|
1247
|
+
readonly sha256?: string | undefined;
|
|
1248
|
+
readonly bytes?: Uint8Array | undefined;
|
|
1249
|
+
}
|
|
1250
|
+
export type InspectedCandidateFile = {
|
|
1251
|
+
readonly kind: 'cas';
|
|
1252
|
+
readonly name: string;
|
|
1253
|
+
readonly mode: '100644' | '100755';
|
|
1254
|
+
readonly sha256: string;
|
|
1255
|
+
readonly byteLength: number;
|
|
1256
|
+
readonly uri: string;
|
|
1257
|
+
readonly canonicalBlobPath: string;
|
|
1258
|
+
} | {
|
|
1259
|
+
readonly kind: 'inline';
|
|
1260
|
+
readonly name: string;
|
|
1261
|
+
readonly mode?: '100644' | '100755' | undefined;
|
|
1262
|
+
readonly bytes: Buffer;
|
|
1263
|
+
};
|
|
1264
|
+
export interface InspectedCandidateSnapshot {
|
|
1265
|
+
readonly lock: Record<string, unknown>;
|
|
1266
|
+
readonly contract: import('@loopwright/core').TaskContract;
|
|
1267
|
+
readonly protectedPaths: readonly string[];
|
|
1268
|
+
readonly baseRevision: string;
|
|
1269
|
+
readonly sourceRevision: string;
|
|
1270
|
+
readonly manifest: import('@loopwright/core').ArtifactManifest;
|
|
1271
|
+
readonly files: readonly InspectedCandidateFile[];
|
|
1272
|
+
}
|
|
1273
|
+
/** Re-exported utility type so consumers can name a digest without importing core directly. */
|
|
1274
|
+
export type { Digest };
|