@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,585 @@
|
|
|
1
|
+
import type { ArtifactRef, Digest, FindingSeverity, OverlayLimits, ResourceActivationPhase, ResourceActivationRule, ReworkPolicy, RunResult, StepHandoffSelect, StepHandoffSelector, StepHandoffSource, StructuredFinding, Subject, TaskContract } from '@loopwright/core';
|
|
2
|
+
import type { AdapterPolicyV2, AdapterPolicy, RuntimeIdentity } from '@loopwright/agent-pi';
|
|
3
|
+
import type { ControllerDiagnostic } from './errors.js';
|
|
4
|
+
import type { ControllerIncident } from './finalize.js';
|
|
5
|
+
import type { Json, Scalar } from './schema.js';
|
|
6
|
+
export type { FindingSeverity, OverlayLimits, ResourceActivationPhase, ResourceActivationRule, ReworkPolicy, StepHandoffSelect, StepHandoffSelector, StepHandoffSource, StructuredFinding, };
|
|
7
|
+
export declare const CONTROLLER_API_VERSION: "loopwright.dev/v1alpha1";
|
|
8
|
+
export declare const CONTROLLER_LIMITS: Readonly<{
|
|
9
|
+
maxCompiledDagSteps: 16;
|
|
10
|
+
maxCompiledRoles: 16;
|
|
11
|
+
maxStepContextFiles: 64;
|
|
12
|
+
handoffJsonCollectionLimit: 4096;
|
|
13
|
+
verifierSignalJsonBytes: 65536;
|
|
14
|
+
reworkPromptMaxBytes: 65536;
|
|
15
|
+
}>;
|
|
16
|
+
export type Implementation = 'pi.agent.v1' | 'pi.compact.v1' | 'scope.v1' | 'json-artifact.v1' | 'json-keys-guard.v1' | 'line-section-guard.v1' | 'no-change.v1' | 'gate.v1' | 'benchmark-gate.v1';
|
|
17
|
+
export type RoleAdapterKind = 'pi' | 'delegated';
|
|
18
|
+
export type ControllerPolicyProfile = 'local' | 'github';
|
|
19
|
+
export interface PersistedHostPolicy {
|
|
20
|
+
readonly policyProfile: ControllerPolicyProfile;
|
|
21
|
+
readonly allowWorkflowWrites: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface RawCandidateFile {
|
|
24
|
+
readonly name: string;
|
|
25
|
+
readonly bytes: Uint8Array;
|
|
26
|
+
readonly mode?: '100644' | '100755' | undefined;
|
|
27
|
+
}
|
|
28
|
+
export interface CasCandidateFile {
|
|
29
|
+
readonly name: string;
|
|
30
|
+
readonly byteLength: number;
|
|
31
|
+
readonly digest: Digest;
|
|
32
|
+
readonly blobPath: string;
|
|
33
|
+
readonly mode?: '100644' | '100755' | undefined;
|
|
34
|
+
}
|
|
35
|
+
export type CandidateFileEntry = RawCandidateFile | CasCandidateFile;
|
|
36
|
+
export type StepVerdictDisposition = 'pass' | 'rework' | 'fail' | 'human';
|
|
37
|
+
export interface StepVerdict {
|
|
38
|
+
readonly verdict: StepVerdictDisposition;
|
|
39
|
+
readonly summary: string;
|
|
40
|
+
readonly findings: readonly StructuredFinding[];
|
|
41
|
+
}
|
|
42
|
+
export interface RecordedStepVerdict {
|
|
43
|
+
readonly attemptId: string | null;
|
|
44
|
+
readonly stepId: string;
|
|
45
|
+
readonly roleId: string | null;
|
|
46
|
+
readonly reworkEpoch: number;
|
|
47
|
+
readonly generation: number;
|
|
48
|
+
readonly raw: ArtifactRef;
|
|
49
|
+
readonly verdict: StepVerdict;
|
|
50
|
+
}
|
|
51
|
+
export interface StoredStepVerdict {
|
|
52
|
+
readonly attemptId: string | null;
|
|
53
|
+
readonly stepId: string;
|
|
54
|
+
readonly roleId: string | null;
|
|
55
|
+
readonly reworkEpoch: number;
|
|
56
|
+
readonly generation: number;
|
|
57
|
+
readonly raw: ArtifactRef;
|
|
58
|
+
readonly verdict: StepVerdictDisposition;
|
|
59
|
+
readonly summaryPreview: string;
|
|
60
|
+
readonly findingCount: number;
|
|
61
|
+
}
|
|
62
|
+
export interface StepReworkContext {
|
|
63
|
+
readonly epoch: number;
|
|
64
|
+
readonly count: number;
|
|
65
|
+
readonly maxReworks: number;
|
|
66
|
+
readonly fromStepId: string;
|
|
67
|
+
readonly summary: string;
|
|
68
|
+
readonly findings: readonly StructuredFinding[];
|
|
69
|
+
}
|
|
70
|
+
export interface StepMcpServerMetadata {
|
|
71
|
+
readonly id: string;
|
|
72
|
+
readonly transport: 'stdio' | 'http';
|
|
73
|
+
readonly toolNames: readonly string[];
|
|
74
|
+
}
|
|
75
|
+
export type AdvisoryDecisionSource = 'jev' | 'deterministic_fallback' | 'deterministic_heuristic' | 'user_override';
|
|
76
|
+
export type AdvisoryDecisionZone = 'high' | 'medium' | 'low';
|
|
77
|
+
export type AdvisoryCapabilityTier = 'fast' | 'balanced' | 'strongest';
|
|
78
|
+
export interface CapabilityRoutingDecisionInput {
|
|
79
|
+
readonly runId: string;
|
|
80
|
+
readonly stepId: string;
|
|
81
|
+
readonly roleId: string;
|
|
82
|
+
readonly taskKind: string;
|
|
83
|
+
readonly estimatedFilesCount: number;
|
|
84
|
+
readonly hasFailingTests: boolean;
|
|
85
|
+
readonly requiresArchitectureChange: boolean;
|
|
86
|
+
readonly candidateSkills: readonly string[];
|
|
87
|
+
readonly pinnedModel: {
|
|
88
|
+
readonly provider: string;
|
|
89
|
+
readonly model: string;
|
|
90
|
+
readonly thinking: string;
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
export interface CapabilityRoutingDecisionOutput {
|
|
94
|
+
readonly tier: AdvisoryCapabilityTier;
|
|
95
|
+
readonly skills?: readonly string[];
|
|
96
|
+
readonly source: AdvisoryDecisionSource;
|
|
97
|
+
readonly zone?: AdvisoryDecisionZone | null;
|
|
98
|
+
}
|
|
99
|
+
export type CycleAlignmentRoute = 'continue' | 'revise' | 'needs_review' | 'blocked';
|
|
100
|
+
export interface CycleAlignmentDecisionInput {
|
|
101
|
+
readonly runId: string;
|
|
102
|
+
readonly trigger: 'implementation_repair' | 'rework';
|
|
103
|
+
readonly targetStepId: string;
|
|
104
|
+
readonly contractHash: Digest;
|
|
105
|
+
readonly baseRevision: string;
|
|
106
|
+
readonly candidateDigest: Digest;
|
|
107
|
+
readonly reworkEpoch: number;
|
|
108
|
+
readonly remainingAttempts: number;
|
|
109
|
+
readonly contextUtilization: number;
|
|
110
|
+
readonly failedVerificationLoops: number;
|
|
111
|
+
}
|
|
112
|
+
export interface CycleAlignmentDecisionOutput {
|
|
113
|
+
readonly route: CycleAlignmentRoute;
|
|
114
|
+
readonly precheckPassed: boolean;
|
|
115
|
+
readonly source: AdvisoryDecisionSource;
|
|
116
|
+
readonly zone?: AdvisoryDecisionZone | null;
|
|
117
|
+
}
|
|
118
|
+
export interface SoftCompactionDecisionInput {
|
|
119
|
+
readonly runId: string;
|
|
120
|
+
readonly stepId: string;
|
|
121
|
+
readonly roleId: string;
|
|
122
|
+
readonly contextUtilization: number;
|
|
123
|
+
readonly failedVerificationLoops: number;
|
|
124
|
+
}
|
|
125
|
+
export interface SoftCompactionDecisionOutput {
|
|
126
|
+
readonly advisoryDecision: 'compact' | 'defer' | null;
|
|
127
|
+
readonly hardTriggerActive?: boolean;
|
|
128
|
+
readonly hardTriggerVetoRefused?: boolean;
|
|
129
|
+
readonly source: AdvisoryDecisionSource;
|
|
130
|
+
readonly zone?: AdvisoryDecisionZone | null;
|
|
131
|
+
}
|
|
132
|
+
export type CandidateDiffTriageSeverity = 'blocking' | 'important' | 'nit';
|
|
133
|
+
export interface CandidateDiffSummary {
|
|
134
|
+
readonly changedFiles: readonly string[];
|
|
135
|
+
readonly addedLines: number;
|
|
136
|
+
readonly deletedLines: number;
|
|
137
|
+
readonly touchedPackages: readonly string[];
|
|
138
|
+
readonly redactedHunkSummaries: readonly string[];
|
|
139
|
+
}
|
|
140
|
+
export interface CandidateDiffTriageEscalation {
|
|
141
|
+
readonly ruleId: string;
|
|
142
|
+
readonly severity: CandidateDiffTriageSeverity;
|
|
143
|
+
readonly source: AdvisoryDecisionSource;
|
|
144
|
+
readonly zone?: AdvisoryDecisionZone | null;
|
|
145
|
+
readonly advisoryOnly: true;
|
|
146
|
+
}
|
|
147
|
+
export interface CandidateDiffTriageInput {
|
|
148
|
+
readonly runId: string;
|
|
149
|
+
readonly stepId: string;
|
|
150
|
+
readonly attemptId: string;
|
|
151
|
+
readonly candidateDigest: Digest;
|
|
152
|
+
readonly summary: CandidateDiffSummary;
|
|
153
|
+
}
|
|
154
|
+
export interface CandidateDiffTriageOutput {
|
|
155
|
+
readonly escalated: readonly CandidateDiffTriageEscalation[];
|
|
156
|
+
readonly verificationCertified: false;
|
|
157
|
+
readonly source: AdvisoryDecisionSource;
|
|
158
|
+
readonly zone?: AdvisoryDecisionZone | null;
|
|
159
|
+
}
|
|
160
|
+
/** Zero-dependency advisory decision port matching the four non-authoritative intents in `@loopwright/decisions`. */
|
|
161
|
+
export interface AdvisoryDecisionPort {
|
|
162
|
+
readonly routeCapabilityTier?: (input: CapabilityRoutingDecisionInput) => Promise<CapabilityRoutingDecisionOutput | null>;
|
|
163
|
+
readonly evaluateCycleAlignment?: (input: CycleAlignmentDecisionInput) => Promise<CycleAlignmentDecisionOutput | null>;
|
|
164
|
+
readonly adviseSoftCompaction?: (input: SoftCompactionDecisionInput) => Promise<SoftCompactionDecisionOutput | null>;
|
|
165
|
+
readonly triageCandidateDiff?: (input: CandidateDiffTriageInput) => Promise<CandidateDiffTriageOutput | null>;
|
|
166
|
+
}
|
|
167
|
+
export type CycleExecution = {
|
|
168
|
+
readonly kind: 'result';
|
|
169
|
+
readonly version: 1;
|
|
170
|
+
readonly runId: string;
|
|
171
|
+
readonly result: RunResult;
|
|
172
|
+
readonly observations: ArtifactRef | null;
|
|
173
|
+
readonly secondary: readonly ControllerDiagnostic['code'][];
|
|
174
|
+
readonly findings?: readonly StructuredFinding[];
|
|
175
|
+
readonly stepVerdicts?: readonly RecordedStepVerdict[];
|
|
176
|
+
} | {
|
|
177
|
+
readonly kind: 'incident';
|
|
178
|
+
readonly version: 1;
|
|
179
|
+
readonly incident: ControllerIncident;
|
|
180
|
+
};
|
|
181
|
+
export interface DelegatedSelection {
|
|
182
|
+
readonly provider: string;
|
|
183
|
+
readonly model: string;
|
|
184
|
+
readonly thinking: string;
|
|
185
|
+
readonly api?: AdapterPolicy['selection']['api'];
|
|
186
|
+
readonly customProvider?: AdapterPolicy['selection']['customProvider'];
|
|
187
|
+
}
|
|
188
|
+
export interface RoleSelectionOverride {
|
|
189
|
+
readonly provider: string;
|
|
190
|
+
readonly model: string;
|
|
191
|
+
readonly thinking?: string;
|
|
192
|
+
}
|
|
193
|
+
export interface RoleModelOverride extends RoleSelectionOverride {
|
|
194
|
+
readonly roleId: string;
|
|
195
|
+
}
|
|
196
|
+
export interface Handler {
|
|
197
|
+
readonly id: string;
|
|
198
|
+
readonly version: 1;
|
|
199
|
+
readonly digest: Digest;
|
|
200
|
+
readonly kind: 'agent' | 'check';
|
|
201
|
+
readonly implementation: Implementation;
|
|
202
|
+
readonly parameters: Readonly<Record<string, Json>>;
|
|
203
|
+
readonly capabilities: readonly string[];
|
|
204
|
+
}
|
|
205
|
+
export interface RoleProfile {
|
|
206
|
+
readonly id: string;
|
|
207
|
+
readonly adapter?: RoleAdapterKind;
|
|
208
|
+
readonly selection: AdapterPolicy['selection'] | DelegatedSelection;
|
|
209
|
+
readonly tools: readonly string[];
|
|
210
|
+
readonly context: AdapterPolicy['context'];
|
|
211
|
+
readonly runtimeRef: string | null;
|
|
212
|
+
readonly providerCredentialRef: string | null;
|
|
213
|
+
readonly mcp: AdapterPolicyV2['mcp'] | null;
|
|
214
|
+
readonly limits?: Partial<AdapterPolicy['limits']> | undefined;
|
|
215
|
+
}
|
|
216
|
+
export interface RegistryResource {
|
|
217
|
+
readonly id: string;
|
|
218
|
+
readonly kind: 'instruction' | 'skill' | 'document';
|
|
219
|
+
readonly path: string;
|
|
220
|
+
readonly digest: Digest;
|
|
221
|
+
}
|
|
222
|
+
export interface RuntimeProfile {
|
|
223
|
+
readonly id: string;
|
|
224
|
+
readonly identity: RuntimeIdentity;
|
|
225
|
+
readonly dockerExecutable: string;
|
|
226
|
+
readonly dockerSocket: string;
|
|
227
|
+
}
|
|
228
|
+
export interface CredentialBinding {
|
|
229
|
+
readonly id: string;
|
|
230
|
+
readonly consumer: 'provider' | 'mcp' | 'gate' | 'publisher';
|
|
231
|
+
readonly destinationRef: string;
|
|
232
|
+
readonly environmentNames: readonly string[];
|
|
233
|
+
readonly template: string;
|
|
234
|
+
}
|
|
235
|
+
export interface EnvironmentBinding {
|
|
236
|
+
readonly name: string;
|
|
237
|
+
readonly classification: 'nonsecret' | 'credential';
|
|
238
|
+
readonly paths: readonly string[];
|
|
239
|
+
}
|
|
240
|
+
export interface GateEndpoint {
|
|
241
|
+
readonly id: string;
|
|
242
|
+
readonly url: string;
|
|
243
|
+
readonly signingCredentialRef: string;
|
|
244
|
+
readonly authCredentialRef: string | null;
|
|
245
|
+
readonly timeoutMs: number;
|
|
246
|
+
readonly maxPollMs: number;
|
|
247
|
+
readonly pollInitialMs: number;
|
|
248
|
+
readonly pollMaxMs: number;
|
|
249
|
+
readonly jitter: number;
|
|
250
|
+
}
|
|
251
|
+
export interface PublicationEndpoint {
|
|
252
|
+
readonly id: string;
|
|
253
|
+
readonly url: string;
|
|
254
|
+
readonly signingCredentialRef: string;
|
|
255
|
+
readonly authCredentialRef: string | null;
|
|
256
|
+
readonly timeoutMs: number;
|
|
257
|
+
}
|
|
258
|
+
export type PublicationConfig = {
|
|
259
|
+
readonly mode: 'disabled';
|
|
260
|
+
} | {
|
|
261
|
+
readonly mode: 'pull_request';
|
|
262
|
+
readonly endpointRef: string;
|
|
263
|
+
readonly targetBranch: string;
|
|
264
|
+
readonly headBranchPrefix: string;
|
|
265
|
+
readonly titleTemplate: string;
|
|
266
|
+
};
|
|
267
|
+
export interface TrustedRegistry {
|
|
268
|
+
readonly apiVersion: typeof CONTROLLER_API_VERSION;
|
|
269
|
+
readonly kind: 'TrustedRegistry';
|
|
270
|
+
readonly metadata: {
|
|
271
|
+
readonly name: string;
|
|
272
|
+
};
|
|
273
|
+
readonly spec: {
|
|
274
|
+
readonly version: 1;
|
|
275
|
+
readonly resourceVersion: string;
|
|
276
|
+
readonly handlers: readonly Handler[];
|
|
277
|
+
readonly roleProfiles: readonly RoleProfile[];
|
|
278
|
+
readonly resources: readonly RegistryResource[];
|
|
279
|
+
readonly runtimeProfiles: readonly RuntimeProfile[];
|
|
280
|
+
readonly credentialBindings: readonly CredentialBinding[];
|
|
281
|
+
readonly environmentBindings: readonly EnvironmentBinding[];
|
|
282
|
+
readonly gateEndpoints: readonly GateEndpoint[];
|
|
283
|
+
readonly publicationEndpoints: readonly PublicationEndpoint[];
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
export interface Controls {
|
|
287
|
+
readonly drainReserveMs: number;
|
|
288
|
+
readonly maxAttempts: number;
|
|
289
|
+
readonly repeatFailureLimit: 2;
|
|
290
|
+
readonly submission: {
|
|
291
|
+
readonly mode: 'artifact_or_assistant';
|
|
292
|
+
readonly path: string | null;
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
export interface ControllerConfiguration {
|
|
296
|
+
readonly apiVersion: typeof CONTROLLER_API_VERSION;
|
|
297
|
+
readonly kind: 'ControllerConfig';
|
|
298
|
+
readonly spec: {
|
|
299
|
+
readonly task: TaskContract;
|
|
300
|
+
readonly registry: {
|
|
301
|
+
readonly name: string;
|
|
302
|
+
readonly digest: Digest;
|
|
303
|
+
};
|
|
304
|
+
readonly profiles: {
|
|
305
|
+
readonly roles: readonly {
|
|
306
|
+
readonly roleId: string;
|
|
307
|
+
readonly profileRef: string;
|
|
308
|
+
readonly selection?: RoleSelectionOverride;
|
|
309
|
+
}[];
|
|
310
|
+
readonly steps: readonly {
|
|
311
|
+
readonly stepId: string;
|
|
312
|
+
readonly handlerRef: string;
|
|
313
|
+
}[];
|
|
314
|
+
};
|
|
315
|
+
/** Original approved templates, never their expansions. */
|
|
316
|
+
readonly credentials: readonly {
|
|
317
|
+
readonly ref: string;
|
|
318
|
+
readonly template: string;
|
|
319
|
+
}[];
|
|
320
|
+
readonly controls: Controls;
|
|
321
|
+
readonly publication: PublicationConfig;
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
export interface LoadConfigurationInput {
|
|
325
|
+
readonly configPath: string;
|
|
326
|
+
readonly registryPath: string;
|
|
327
|
+
readonly registrySha256: string;
|
|
328
|
+
/** Additional repository/candidate/task-writable roots, beyond cwd and the configuration directory. */
|
|
329
|
+
readonly untrustedRoots: readonly string[];
|
|
330
|
+
readonly roleModelOverrides?: readonly RoleModelOverride[];
|
|
331
|
+
}
|
|
332
|
+
/** Only loader-owned instances are accepted by compile/run. This view contains no resolved credential. */
|
|
333
|
+
export interface LoadedConfiguration {
|
|
334
|
+
readonly version: 1;
|
|
335
|
+
readonly configuration: ControllerConfiguration;
|
|
336
|
+
readonly registry: TrustedRegistry;
|
|
337
|
+
readonly sourceDigest: Digest;
|
|
338
|
+
readonly registryDigest: Digest;
|
|
339
|
+
}
|
|
340
|
+
export interface CheckpointCapacity {
|
|
341
|
+
readonly A: number;
|
|
342
|
+
readonly N: number;
|
|
343
|
+
readonly I: number;
|
|
344
|
+
readonly C: number;
|
|
345
|
+
readonly V: number;
|
|
346
|
+
readonly J: number;
|
|
347
|
+
readonly D: number;
|
|
348
|
+
readonly publication: boolean;
|
|
349
|
+
readonly additionalRefs: 4;
|
|
350
|
+
readonly requiredRefs: 6;
|
|
351
|
+
readonly checkpointBytes: 40960;
|
|
352
|
+
}
|
|
353
|
+
export interface VerifierSlot {
|
|
354
|
+
readonly id: string;
|
|
355
|
+
readonly checkId: string;
|
|
356
|
+
readonly implicit: 'scope' | 'no_change' | null;
|
|
357
|
+
readonly handler: Handler;
|
|
358
|
+
}
|
|
359
|
+
export interface PlannedRole {
|
|
360
|
+
readonly roleId: string;
|
|
361
|
+
readonly adapter: RoleAdapterKind;
|
|
362
|
+
readonly profileRef: string;
|
|
363
|
+
readonly providerCredentialRef: string | null;
|
|
364
|
+
readonly runtime: RuntimeProfile;
|
|
365
|
+
readonly policy: AdapterPolicyV2;
|
|
366
|
+
}
|
|
367
|
+
export interface PlannedNode {
|
|
368
|
+
readonly id: string;
|
|
369
|
+
readonly kind: 'agent' | 'check';
|
|
370
|
+
readonly dependsOn: readonly string[];
|
|
371
|
+
readonly roleId: string | null;
|
|
372
|
+
readonly handler: Handler;
|
|
373
|
+
readonly onRework?: ReworkPolicy;
|
|
374
|
+
readonly handoffs?: readonly StepHandoffSelector[];
|
|
375
|
+
}
|
|
376
|
+
export type HandoffOmittedReason = 'source_missing' | 'heading_missing' | 'pointer_missing';
|
|
377
|
+
export interface HandoffProvenance {
|
|
378
|
+
readonly id: string;
|
|
379
|
+
readonly fromStep: string;
|
|
380
|
+
readonly fromAttemptId: string | null;
|
|
381
|
+
readonly reworkEpoch: number;
|
|
382
|
+
readonly source: StepHandoffSource;
|
|
383
|
+
readonly select: StepHandoffSelect;
|
|
384
|
+
readonly status: 'extracted' | 'omitted';
|
|
385
|
+
readonly sourceSha256: string | null;
|
|
386
|
+
readonly extractSha256: string | null;
|
|
387
|
+
readonly byteLength: number;
|
|
388
|
+
readonly truncated: boolean;
|
|
389
|
+
readonly omittedReason?: HandoffOmittedReason;
|
|
390
|
+
}
|
|
391
|
+
export interface AttemptHandoffExtract extends HandoffProvenance {
|
|
392
|
+
readonly artifact: ArtifactRef | null;
|
|
393
|
+
}
|
|
394
|
+
export interface NodeCandidateSnapshot {
|
|
395
|
+
readonly attemptId: string;
|
|
396
|
+
readonly reworkEpoch: number;
|
|
397
|
+
readonly manifest: ArtifactRef;
|
|
398
|
+
readonly digest: Digest;
|
|
399
|
+
readonly workspace: ArtifactRef;
|
|
400
|
+
}
|
|
401
|
+
export interface CompiledPlan {
|
|
402
|
+
readonly version: 1;
|
|
403
|
+
readonly runId: null;
|
|
404
|
+
readonly lock: null;
|
|
405
|
+
readonly admission: 'not_performed';
|
|
406
|
+
readonly effectfulReadiness: 'not_checked';
|
|
407
|
+
readonly sourceDocumentDigest: Digest;
|
|
408
|
+
readonly taskByteDigest: Digest;
|
|
409
|
+
readonly registryDigest: Digest;
|
|
410
|
+
readonly planDigest: Digest;
|
|
411
|
+
readonly task: TaskContract;
|
|
412
|
+
readonly orderedDAG: readonly PlannedNode[];
|
|
413
|
+
readonly scope: TaskContract['spec']['scope'];
|
|
414
|
+
readonly budgets: TaskContract['spec']['budgets'];
|
|
415
|
+
readonly controls: Controls;
|
|
416
|
+
readonly roles: readonly PlannedRole[];
|
|
417
|
+
readonly resources: readonly {
|
|
418
|
+
readonly id: string;
|
|
419
|
+
readonly kind: RegistryResource['kind'];
|
|
420
|
+
readonly ref: ArtifactRef;
|
|
421
|
+
}[];
|
|
422
|
+
readonly credentialReferences: readonly {
|
|
423
|
+
readonly ref: string;
|
|
424
|
+
readonly consumer: CredentialBinding['consumer'];
|
|
425
|
+
readonly destinationRef: string;
|
|
426
|
+
}[];
|
|
427
|
+
readonly publication: PublicationConfig;
|
|
428
|
+
readonly verifierSlots: readonly VerifierSlot[];
|
|
429
|
+
readonly capacity: CheckpointCapacity;
|
|
430
|
+
readonly noChangeEligibility: {
|
|
431
|
+
readonly available: boolean;
|
|
432
|
+
readonly checkId: string | null;
|
|
433
|
+
readonly reason: 'original_required_no_change_check_missing' | null;
|
|
434
|
+
};
|
|
435
|
+
readonly verificationLimits: {
|
|
436
|
+
readonly headerBytes: 16384;
|
|
437
|
+
readonly packetBytes: 1048576;
|
|
438
|
+
readonly jsonFileBytes: 1032184;
|
|
439
|
+
readonly jsonHeaderEligibility: 'complete_manifests_and_max_framing_must_fit';
|
|
440
|
+
};
|
|
441
|
+
readonly capabilities: readonly {
|
|
442
|
+
readonly component: string;
|
|
443
|
+
readonly disposition: 'supported';
|
|
444
|
+
readonly readiness: 'not_checked';
|
|
445
|
+
}[];
|
|
446
|
+
readonly evidenceNeeds: readonly {
|
|
447
|
+
readonly checkId: string;
|
|
448
|
+
readonly levels: readonly string[];
|
|
449
|
+
}[];
|
|
450
|
+
}
|
|
451
|
+
export interface JsonExpectations {
|
|
452
|
+
readonly checkId: string;
|
|
453
|
+
readonly path: string;
|
|
454
|
+
readonly required: readonly string[];
|
|
455
|
+
readonly equals: Readonly<Record<string, Scalar>>;
|
|
456
|
+
}
|
|
457
|
+
export type ProgressKind = 'bootstrap' | 'role_pre' | 'role_post' | 'verifier_pre' | 'verifier_post' | 'publication_pre' | 'publication_post' | 'terminal_intent' | 'terminal_result' | 'terminal_observations' | 'reconcile_result';
|
|
458
|
+
export interface Watermarks {
|
|
459
|
+
readonly requests: number;
|
|
460
|
+
readonly operations: number;
|
|
461
|
+
}
|
|
462
|
+
export interface ControllerAttempt {
|
|
463
|
+
readonly ordinal: number;
|
|
464
|
+
readonly id: string;
|
|
465
|
+
readonly nodeId: string;
|
|
466
|
+
readonly nativeStepId: string;
|
|
467
|
+
readonly sessionId: string;
|
|
468
|
+
readonly purpose: 'task' | 'reviewer' | 'compaction';
|
|
469
|
+
readonly repair: 'none' | 'format' | 'implementation';
|
|
470
|
+
readonly command: ArtifactRef;
|
|
471
|
+
readonly before: Watermarks;
|
|
472
|
+
readonly finished: null | {
|
|
473
|
+
readonly after: Watermarks;
|
|
474
|
+
readonly outcome: ArtifactRef;
|
|
475
|
+
readonly nativeCheckpointId: string | null;
|
|
476
|
+
};
|
|
477
|
+
readonly reworkEpoch?: number;
|
|
478
|
+
readonly activatedResourceIds?: readonly string[];
|
|
479
|
+
readonly handoffExtracts?: readonly AttemptHandoffExtract[];
|
|
480
|
+
}
|
|
481
|
+
export interface VerifierRefusalRow {
|
|
482
|
+
readonly slot: string;
|
|
483
|
+
readonly generation: number;
|
|
484
|
+
readonly prospectiveOperationId: string;
|
|
485
|
+
readonly producerNonce: string;
|
|
486
|
+
readonly subject: Subject;
|
|
487
|
+
readonly record: ArtifactRef;
|
|
488
|
+
}
|
|
489
|
+
export interface ControllerProgress {
|
|
490
|
+
readonly version: 2;
|
|
491
|
+
readonly runId: string;
|
|
492
|
+
readonly lockHash: Digest;
|
|
493
|
+
readonly sequence: number;
|
|
494
|
+
readonly previous: ArtifactRef | null;
|
|
495
|
+
readonly stage: {
|
|
496
|
+
readonly kind: ProgressKind;
|
|
497
|
+
readonly phase: string;
|
|
498
|
+
readonly capacity: CheckpointCapacity;
|
|
499
|
+
readonly consumed: readonly string[];
|
|
500
|
+
readonly watermarks: Watermarks;
|
|
501
|
+
};
|
|
502
|
+
readonly nodes: readonly {
|
|
503
|
+
readonly id: string;
|
|
504
|
+
readonly state: 'pending' | 'running' | 'completed' | 'failed' | 'blocked' | 'not_run';
|
|
505
|
+
}[];
|
|
506
|
+
readonly attempts: readonly ControllerAttempt[];
|
|
507
|
+
readonly nativeCheckpoints: readonly {
|
|
508
|
+
readonly attemptId: string;
|
|
509
|
+
readonly checkpointId: string;
|
|
510
|
+
readonly outcome: ArtifactRef;
|
|
511
|
+
}[];
|
|
512
|
+
readonly submission: ArtifactRef | null;
|
|
513
|
+
readonly publication: {
|
|
514
|
+
readonly status: 'idle' | 'pending' | 'confirmed' | 'failed' | 'unresolved';
|
|
515
|
+
readonly operationId: string | null;
|
|
516
|
+
readonly receipt: ArtifactRef | null;
|
|
517
|
+
};
|
|
518
|
+
readonly candidate: {
|
|
519
|
+
readonly manifest: ArtifactRef;
|
|
520
|
+
readonly digest: Digest;
|
|
521
|
+
readonly generation: number;
|
|
522
|
+
readonly workspace: ArtifactRef;
|
|
523
|
+
readonly privateSession: ArtifactRef | null;
|
|
524
|
+
};
|
|
525
|
+
readonly failures: readonly {
|
|
526
|
+
readonly signature: Digest;
|
|
527
|
+
readonly count: number;
|
|
528
|
+
readonly generation: number;
|
|
529
|
+
readonly evidence: ArtifactRef | null;
|
|
530
|
+
}[];
|
|
531
|
+
readonly verifierReceipts: readonly {
|
|
532
|
+
readonly slot: string;
|
|
533
|
+
readonly generation: number;
|
|
534
|
+
readonly operationId: string;
|
|
535
|
+
readonly producerNonce: string;
|
|
536
|
+
readonly output: ArtifactRef | null;
|
|
537
|
+
readonly receipt: ArtifactRef | null;
|
|
538
|
+
readonly reworkEpoch?: number;
|
|
539
|
+
}[];
|
|
540
|
+
readonly verifierRefusals: readonly VerifierRefusalRow[];
|
|
541
|
+
readonly eventSequence: number;
|
|
542
|
+
readonly terminalIntent: null | {
|
|
543
|
+
readonly primary: string;
|
|
544
|
+
readonly result: ArtifactRef | null;
|
|
545
|
+
readonly observations: ArtifactRef | null;
|
|
546
|
+
};
|
|
547
|
+
readonly reworkEpoch?: number;
|
|
548
|
+
readonly reworkCounts?: Readonly<Record<string, number>>;
|
|
549
|
+
readonly nodeSubmissions?: Readonly<Record<string, ArtifactRef>>;
|
|
550
|
+
readonly nodeCandidates?: Readonly<Record<string, NodeCandidateSnapshot>>;
|
|
551
|
+
readonly stepVerdicts?: readonly StoredStepVerdict[];
|
|
552
|
+
}
|
|
553
|
+
export interface ReceiptIndex {
|
|
554
|
+
readonly version: 1;
|
|
555
|
+
readonly runId: string;
|
|
556
|
+
readonly entries: readonly {
|
|
557
|
+
readonly id: string;
|
|
558
|
+
readonly kind: 'plan' | 'source' | 'role' | 'verifier-output' | 'verifier-receipt' | 'preflight-refusal' | 'publication-receipt' | 'result' | 'observations';
|
|
559
|
+
readonly ref: ArtifactRef;
|
|
560
|
+
}[];
|
|
561
|
+
}
|
|
562
|
+
export interface StepYield {
|
|
563
|
+
readonly kind: 'step';
|
|
564
|
+
readonly status: 'awaiting_role';
|
|
565
|
+
readonly runId: string;
|
|
566
|
+
readonly attemptId: string;
|
|
567
|
+
readonly stepId: string;
|
|
568
|
+
readonly roleId: string;
|
|
569
|
+
readonly purpose: 'task' | 'reviewer';
|
|
570
|
+
readonly repair: 'none' | 'format' | 'implementation';
|
|
571
|
+
readonly selection: DelegatedSelection;
|
|
572
|
+
readonly allowedTools: readonly string[];
|
|
573
|
+
readonly allowedMcpServers: readonly string[];
|
|
574
|
+
readonly mcpServers: readonly StepMcpServerMetadata[];
|
|
575
|
+
readonly scope: TaskContract['spec']['scope'];
|
|
576
|
+
readonly allowWorkflowWrites: boolean;
|
|
577
|
+
readonly candidateDir: string;
|
|
578
|
+
readonly contextFiles: readonly string[];
|
|
579
|
+
readonly prompt: string;
|
|
580
|
+
readonly reworkEpoch: number;
|
|
581
|
+
readonly rework: StepReworkContext | null;
|
|
582
|
+
readonly submissionMode: 'artifact_or_assistant';
|
|
583
|
+
readonly submissionPath: string | null;
|
|
584
|
+
readonly leaseToken: string;
|
|
585
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const CONTROLLER_API_VERSION = 'loopwright.dev/v1alpha1';
|
|
2
|
+
export const CONTROLLER_LIMITS = Object.freeze({
|
|
3
|
+
maxCompiledDagSteps: 16,
|
|
4
|
+
maxCompiledRoles: 16,
|
|
5
|
+
maxStepContextFiles: 64,
|
|
6
|
+
handoffJsonCollectionLimit: 4_096,
|
|
7
|
+
verifierSignalJsonBytes: 65_536,
|
|
8
|
+
reworkPromptMaxBytes: 65_536,
|
|
9
|
+
});
|