looply-cli 0.0.0-stage → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +137 -3
- package/dist/.src-hash +1 -0
- package/dist/acceptance-observe.d.ts +108 -0
- package/dist/acceptance-observe.d.ts.map +1 -0
- package/dist/acceptance-observe.js +152 -0
- package/dist/acceptance-observe.js.map +1 -0
- package/dist/agent-cmd.d.ts +131 -0
- package/dist/agent-cmd.d.ts.map +1 -0
- package/dist/agent-cmd.js +154 -0
- package/dist/agent-cmd.js.map +1 -0
- package/dist/agent-contained.d.ts +114 -0
- package/dist/agent-contained.d.ts.map +1 -0
- package/dist/agent-contained.js +292 -0
- package/dist/agent-contained.js.map +1 -0
- package/dist/agent-driver.d.ts +130 -0
- package/dist/agent-driver.d.ts.map +1 -0
- package/dist/agent-driver.js +170 -0
- package/dist/agent-driver.js.map +1 -0
- package/dist/agent-envelope.d.ts +94 -0
- package/dist/agent-envelope.d.ts.map +1 -0
- package/dist/agent-envelope.js +214 -0
- package/dist/agent-envelope.js.map +1 -0
- package/dist/agent-exec.d.ts +182 -0
- package/dist/agent-exec.d.ts.map +1 -0
- package/dist/agent-exec.js +125 -0
- package/dist/agent-exec.js.map +1 -0
- package/dist/agent-runtime.d.ts +23 -0
- package/dist/agent-runtime.d.ts.map +1 -0
- package/dist/agent-runtime.js +143 -0
- package/dist/agent-runtime.js.map +1 -0
- package/dist/approval-gate-read.d.ts +66 -0
- package/dist/approval-gate-read.d.ts.map +1 -0
- package/dist/approval-gate-read.js +138 -0
- package/dist/approval-gate-read.js.map +1 -0
- package/dist/approval-resolution.d.ts +87 -0
- package/dist/approval-resolution.d.ts.map +1 -0
- package/dist/approval-resolution.js +100 -0
- package/dist/approval-resolution.js.map +1 -0
- package/dist/approval-resumes.d.ts +102 -0
- package/dist/approval-resumes.d.ts.map +1 -0
- package/dist/approval-resumes.js +167 -0
- package/dist/approval-resumes.js.map +1 -0
- package/dist/ask-brain.d.ts +167 -0
- package/dist/ask-brain.d.ts.map +1 -0
- package/dist/ask-brain.js +355 -0
- package/dist/ask-brain.js.map +1 -0
- package/dist/autonomy-authority.d.ts +80 -0
- package/dist/autonomy-authority.d.ts.map +1 -0
- package/dist/autonomy-authority.js +82 -0
- package/dist/autonomy-authority.js.map +1 -0
- package/dist/autonomy-controller.d.ts +321 -0
- package/dist/autonomy-controller.d.ts.map +1 -0
- package/dist/autonomy-controller.js +517 -0
- package/dist/autonomy-controller.js.map +1 -0
- package/dist/autonomy-store.d.ts +327 -0
- package/dist/autonomy-store.d.ts.map +1 -0
- package/dist/autonomy-store.js +581 -0
- package/dist/autonomy-store.js.map +1 -0
- package/dist/autonomy-tick.d.ts +257 -0
- package/dist/autonomy-tick.d.ts.map +1 -0
- package/dist/autonomy-tick.js +616 -0
- package/dist/autonomy-tick.js.map +1 -0
- package/dist/bin.d.ts +3 -0
- package/dist/bin.d.ts.map +1 -0
- package/dist/bin.js +2727 -0
- package/dist/bin.js.map +1 -0
- package/dist/brain-advice.d.ts +21 -0
- package/dist/brain-advice.d.ts.map +1 -0
- package/dist/brain-advice.js +51 -0
- package/dist/brain-advice.js.map +1 -0
- package/dist/candidate-replay-runtime.d.ts +125 -0
- package/dist/candidate-replay-runtime.d.ts.map +1 -0
- package/dist/candidate-replay-runtime.js +188 -0
- package/dist/candidate-replay-runtime.js.map +1 -0
- package/dist/checkout-carry.d.ts +76 -0
- package/dist/checkout-carry.d.ts.map +1 -0
- package/dist/checkout-carry.js +125 -0
- package/dist/checkout-carry.js.map +1 -0
- package/dist/citation-readers.d.ts +26 -0
- package/dist/citation-readers.d.ts.map +1 -0
- package/dist/citation-readers.js +102 -0
- package/dist/citation-readers.js.map +1 -0
- package/dist/command-receipts.d.ts +79 -0
- package/dist/command-receipts.d.ts.map +1 -0
- package/dist/command-receipts.js +143 -0
- package/dist/command-receipts.js.map +1 -0
- package/dist/command-runner.d.ts +32 -0
- package/dist/command-runner.d.ts.map +1 -0
- package/dist/command-runner.js +108 -0
- package/dist/command-runner.js.map +1 -0
- package/dist/compatible-sets.d.ts +67 -0
- package/dist/compatible-sets.d.ts.map +1 -0
- package/dist/compatible-sets.js +81 -0
- package/dist/compatible-sets.js.map +1 -0
- package/dist/compile-check.d.ts +31 -0
- package/dist/compile-check.d.ts.map +1 -0
- package/dist/compile-check.js +34 -0
- package/dist/compile-check.js.map +1 -0
- package/dist/compile-store.d.ts +16 -0
- package/dist/compile-store.d.ts.map +1 -0
- package/dist/compile-store.js +21 -0
- package/dist/compile-store.js.map +1 -0
- package/dist/completion.d.ts +106 -0
- package/dist/completion.d.ts.map +1 -0
- package/dist/completion.js +131 -0
- package/dist/completion.js.map +1 -0
- package/dist/config.d.ts +549 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +763 -0
- package/dist/config.js.map +1 -0
- package/dist/control-file.d.ts +142 -0
- package/dist/control-file.d.ts.map +1 -0
- package/dist/control-file.js +144 -0
- package/dist/control-file.js.map +1 -0
- package/dist/coordinator-state.d.ts +131 -0
- package/dist/coordinator-state.d.ts.map +1 -0
- package/dist/coordinator-state.js +380 -0
- package/dist/coordinator-state.js.map +1 -0
- package/dist/coordinator.d.ts +95 -0
- package/dist/coordinator.d.ts.map +1 -0
- package/dist/coordinator.js +97 -0
- package/dist/coordinator.js.map +1 -0
- package/dist/cursor-store.d.ts +53 -0
- package/dist/cursor-store.d.ts.map +1 -0
- package/dist/cursor-store.js +98 -0
- package/dist/cursor-store.js.map +1 -0
- package/dist/daemon-cmd.d.ts +239 -0
- package/dist/daemon-cmd.d.ts.map +1 -0
- package/dist/daemon-cmd.js +1751 -0
- package/dist/daemon-cmd.js.map +1 -0
- package/dist/daemon-lock.d.ts +140 -0
- package/dist/daemon-lock.d.ts.map +1 -0
- package/dist/daemon-lock.js +352 -0
- package/dist/daemon-lock.js.map +1 -0
- package/dist/daemon-recovery.d.ts +78 -0
- package/dist/daemon-recovery.d.ts.map +1 -0
- package/dist/daemon-recovery.js +161 -0
- package/dist/daemon-recovery.js.map +1 -0
- package/dist/daemon.d.ts +368 -0
- package/dist/daemon.d.ts.map +1 -0
- package/dist/daemon.js +601 -0
- package/dist/daemon.js.map +1 -0
- package/dist/declared-response-shape.d.ts +93 -0
- package/dist/declared-response-shape.d.ts.map +1 -0
- package/dist/declared-response-shape.js +200 -0
- package/dist/declared-response-shape.js.map +1 -0
- package/dist/declared-surfaces.d.ts +16 -0
- package/dist/declared-surfaces.d.ts.map +1 -0
- package/dist/declared-surfaces.js +19 -0
- package/dist/declared-surfaces.js.map +1 -0
- package/dist/depends-review.d.ts +113 -0
- package/dist/depends-review.d.ts.map +1 -0
- package/dist/depends-review.js +110 -0
- package/dist/depends-review.js.map +1 -0
- package/dist/doctor.d.ts +91 -0
- package/dist/doctor.d.ts.map +1 -0
- package/dist/doctor.js +71 -0
- package/dist/doctor.js.map +1 -0
- package/dist/edge-approval.d.ts +105 -0
- package/dist/edge-approval.d.ts.map +1 -0
- package/dist/edge-approval.js +100 -0
- package/dist/edge-approval.js.map +1 -0
- package/dist/evidence-cache.d.ts +45 -0
- package/dist/evidence-cache.d.ts.map +1 -0
- package/dist/evidence-cache.js +90 -0
- package/dist/evidence-cache.js.map +1 -0
- package/dist/evidence-cmd.d.ts +133 -0
- package/dist/evidence-cmd.d.ts.map +1 -0
- package/dist/evidence-cmd.js +347 -0
- package/dist/evidence-cmd.js.map +1 -0
- package/dist/evidence-facts.d.ts +40 -0
- package/dist/evidence-facts.d.ts.map +1 -0
- package/dist/evidence-facts.js +114 -0
- package/dist/evidence-facts.js.map +1 -0
- package/dist/exclusive-lock.d.ts +52 -0
- package/dist/exclusive-lock.d.ts.map +1 -0
- package/dist/exclusive-lock.js +150 -0
- package/dist/exclusive-lock.js.map +1 -0
- package/dist/exec-domains.d.ts +140 -0
- package/dist/exec-domains.d.ts.map +1 -0
- package/dist/exec-domains.js +287 -0
- package/dist/exec-domains.js.map +1 -0
- package/dist/exemption-store.d.ts +197 -0
- package/dist/exemption-store.d.ts.map +1 -0
- package/dist/exemption-store.js +266 -0
- package/dist/exemption-store.js.map +1 -0
- package/dist/explicit-start-gate.d.ts +96 -0
- package/dist/explicit-start-gate.d.ts.map +1 -0
- package/dist/explicit-start-gate.js +103 -0
- package/dist/explicit-start-gate.js.map +1 -0
- package/dist/fs-trouble.d.ts +70 -0
- package/dist/fs-trouble.d.ts.map +1 -0
- package/dist/fs-trouble.js +98 -0
- package/dist/fs-trouble.js.map +1 -0
- package/dist/gate.d.ts +278 -0
- package/dist/gate.d.ts.map +1 -0
- package/dist/gate.js +278 -0
- package/dist/gate.js.map +1 -0
- package/dist/git-driver.d.ts +519 -0
- package/dist/git-driver.d.ts.map +1 -0
- package/dist/git-driver.js +900 -0
- package/dist/git-driver.js.map +1 -0
- package/dist/git-push-executor.d.ts +41 -0
- package/dist/git-push-executor.d.ts.map +1 -0
- package/dist/git-push-executor.js +142 -0
- package/dist/git-push-executor.js.map +1 -0
- package/dist/glob.d.ts +26 -0
- package/dist/glob.d.ts.map +1 -0
- package/dist/glob.js +93 -0
- package/dist/glob.js.map +1 -0
- package/dist/goal-adaptive.d.ts +295 -0
- package/dist/goal-adaptive.d.ts.map +1 -0
- package/dist/goal-adaptive.js +393 -0
- package/dist/goal-adaptive.js.map +1 -0
- package/dist/goal-compile.d.ts +342 -0
- package/dist/goal-compile.d.ts.map +1 -0
- package/dist/goal-compile.js +444 -0
- package/dist/goal-compile.js.map +1 -0
- package/dist/goal-depends-executor.d.ts +55 -0
- package/dist/goal-depends-executor.d.ts.map +1 -0
- package/dist/goal-depends-executor.js +202 -0
- package/dist/goal-depends-executor.js.map +1 -0
- package/dist/goal-execution-evidence.d.ts +135 -0
- package/dist/goal-execution-evidence.d.ts.map +1 -0
- package/dist/goal-execution-evidence.js +159 -0
- package/dist/goal-execution-evidence.js.map +1 -0
- package/dist/goal-gap.d.ts +140 -0
- package/dist/goal-gap.d.ts.map +1 -0
- package/dist/goal-gap.js +197 -0
- package/dist/goal-gap.js.map +1 -0
- package/dist/goal-met-target.d.ts +98 -0
- package/dist/goal-met-target.d.ts.map +1 -0
- package/dist/goal-met-target.js +92 -0
- package/dist/goal-met-target.js.map +1 -0
- package/dist/goal-ownership.d.ts +416 -0
- package/dist/goal-ownership.d.ts.map +1 -0
- package/dist/goal-ownership.js +576 -0
- package/dist/goal-ownership.js.map +1 -0
- package/dist/goal-runs.d.ts +82 -0
- package/dist/goal-runs.d.ts.map +1 -0
- package/dist/goal-runs.js +120 -0
- package/dist/goal-runs.js.map +1 -0
- package/dist/goal-store.d.ts +146 -0
- package/dist/goal-store.d.ts.map +1 -0
- package/dist/goal-store.js +294 -0
- package/dist/goal-store.js.map +1 -0
- package/dist/goal-view.d.ts +156 -0
- package/dist/goal-view.d.ts.map +1 -0
- package/dist/goal-view.js +499 -0
- package/dist/goal-view.js.map +1 -0
- package/dist/governed-approvals.d.ts +152 -0
- package/dist/governed-approvals.d.ts.map +1 -0
- package/dist/governed-approvals.js +246 -0
- package/dist/governed-approvals.js.map +1 -0
- package/dist/governed-broker.d.ts +169 -0
- package/dist/governed-broker.d.ts.map +1 -0
- package/dist/governed-broker.js +196 -0
- package/dist/governed-broker.js.map +1 -0
- package/dist/governed-run.d.ts +220 -0
- package/dist/governed-run.d.ts.map +1 -0
- package/dist/governed-run.js +406 -0
- package/dist/governed-run.js.map +1 -0
- package/dist/grant-reconcile.d.ts +63 -0
- package/dist/grant-reconcile.d.ts.map +1 -0
- package/dist/grant-reconcile.js +121 -0
- package/dist/grant-reconcile.js.map +1 -0
- package/dist/index-for-head.d.ts +56 -0
- package/dist/index-for-head.d.ts.map +1 -0
- package/dist/index-for-head.js +103 -0
- package/dist/index-for-head.js.map +1 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +55 -0
- package/dist/index.js.map +1 -0
- package/dist/init-detect.d.ts +39 -0
- package/dist/init-detect.d.ts.map +1 -0
- package/dist/init-detect.js +188 -0
- package/dist/init-detect.js.map +1 -0
- package/dist/integration-deps.d.ts +62 -0
- package/dist/integration-deps.d.ts.map +1 -0
- package/dist/integration-deps.js +251 -0
- package/dist/integration-deps.js.map +1 -0
- package/dist/integration-runtime.d.ts +458 -0
- package/dist/integration-runtime.d.ts.map +1 -0
- package/dist/integration-runtime.js +681 -0
- package/dist/integration-runtime.js.map +1 -0
- package/dist/integration.d.ts +45 -0
- package/dist/integration.d.ts.map +1 -0
- package/dist/integration.js +87 -0
- package/dist/integration.js.map +1 -0
- package/dist/integrator.d.ts +84 -0
- package/dist/integrator.d.ts.map +1 -0
- package/dist/integrator.js +193 -0
- package/dist/integrator.js.map +1 -0
- package/dist/lane-claims.d.ts +174 -0
- package/dist/lane-claims.d.ts.map +1 -0
- package/dist/lane-claims.js +218 -0
- package/dist/lane-claims.js.map +1 -0
- package/dist/lane-coverage.d.ts +87 -0
- package/dist/lane-coverage.d.ts.map +1 -0
- package/dist/lane-coverage.js +129 -0
- package/dist/lane-coverage.js.map +1 -0
- package/dist/ledger-replay.d.ts +115 -0
- package/dist/ledger-replay.d.ts.map +1 -0
- package/dist/ledger-replay.js +155 -0
- package/dist/ledger-replay.js.map +1 -0
- package/dist/ledger-store.d.ts +68 -0
- package/dist/ledger-store.d.ts.map +1 -0
- package/dist/ledger-store.js +111 -0
- package/dist/ledger-store.js.map +1 -0
- package/dist/loop-safety-observer.d.ts +132 -0
- package/dist/loop-safety-observer.d.ts.map +1 -0
- package/dist/loop-safety-observer.js +76 -0
- package/dist/loop-safety-observer.js.map +1 -0
- package/dist/loop-safety-store.d.ts +339 -0
- package/dist/loop-safety-store.d.ts.map +1 -0
- package/dist/loop-safety-store.js +800 -0
- package/dist/loop-safety-store.js.map +1 -0
- package/dist/machine-store.d.ts +54 -0
- package/dist/machine-store.d.ts.map +1 -0
- package/dist/machine-store.js +149 -0
- package/dist/machine-store.js.map +1 -0
- package/dist/mcp-main.d.ts +2 -0
- package/dist/mcp-main.d.ts.map +1 -0
- package/dist/mcp-main.js +116 -0
- package/dist/mcp-main.js.map +1 -0
- package/dist/mcp-server.d.ts +72 -0
- package/dist/mcp-server.d.ts.map +1 -0
- package/dist/mcp-server.js +259 -0
- package/dist/mcp-server.js.map +1 -0
- package/dist/model-routing.d.ts +75 -0
- package/dist/model-routing.d.ts.map +1 -0
- package/dist/model-routing.js +108 -0
- package/dist/model-routing.js.map +1 -0
- package/dist/model-transport.d.ts +188 -0
- package/dist/model-transport.d.ts.map +1 -0
- package/dist/model-transport.js +625 -0
- package/dist/model-transport.js.map +1 -0
- package/dist/notify-cadence.d.ts +55 -0
- package/dist/notify-cadence.d.ts.map +1 -0
- package/dist/notify-cadence.js +68 -0
- package/dist/notify-cadence.js.map +1 -0
- package/dist/notify-channel.d.ts +69 -0
- package/dist/notify-channel.d.ts.map +1 -0
- package/dist/notify-channel.js +151 -0
- package/dist/notify-channel.js.map +1 -0
- package/dist/notify.d.ts +71 -0
- package/dist/notify.d.ts.map +1 -0
- package/dist/notify.js +125 -0
- package/dist/notify.js.map +1 -0
- package/dist/observation-inventory.d.ts +65 -0
- package/dist/observation-inventory.d.ts.map +1 -0
- package/dist/observation-inventory.js +139 -0
- package/dist/observation-inventory.js.map +1 -0
- package/dist/owned-children.d.ts +45 -0
- package/dist/owned-children.d.ts.map +1 -0
- package/dist/owned-children.js +64 -0
- package/dist/owned-children.js.map +1 -0
- package/dist/packet-for-goal.d.ts +19 -0
- package/dist/packet-for-goal.d.ts.map +1 -0
- package/dist/packet-for-goal.js +32 -0
- package/dist/packet-for-goal.js.map +1 -0
- package/dist/pair-cmd.d.ts +85 -0
- package/dist/pair-cmd.d.ts.map +1 -0
- package/dist/pair-cmd.js +205 -0
- package/dist/pair-cmd.js.map +1 -0
- package/dist/partial-asker.d.ts +96 -0
- package/dist/partial-asker.d.ts.map +1 -0
- package/dist/partial-asker.js +117 -0
- package/dist/partial-asker.js.map +1 -0
- package/dist/pdf-text-lines.d.ts +17 -0
- package/dist/pdf-text-lines.d.ts.map +1 -0
- package/dist/pdf-text-lines.js +70 -0
- package/dist/pdf-text-lines.js.map +1 -0
- package/dist/pdf-text-worker.d.ts +2 -0
- package/dist/pdf-text-worker.d.ts.map +1 -0
- package/dist/pdf-text-worker.js +81 -0
- package/dist/pdf-text-worker.js.map +1 -0
- package/dist/pdf-text.d.ts +56 -0
- package/dist/pdf-text.d.ts.map +1 -0
- package/dist/pdf-text.js +64 -0
- package/dist/pdf-text.js.map +1 -0
- package/dist/pending-action.d.ts +154 -0
- package/dist/pending-action.d.ts.map +1 -0
- package/dist/pending-action.js +148 -0
- package/dist/pending-action.js.map +1 -0
- package/dist/preemptor.d.ts +40 -0
- package/dist/preemptor.d.ts.map +1 -0
- package/dist/preemptor.js +49 -0
- package/dist/preemptor.js.map +1 -0
- package/dist/programme-mode.d.ts +29 -0
- package/dist/programme-mode.d.ts.map +1 -0
- package/dist/programme-mode.js +50 -0
- package/dist/programme-mode.js.map +1 -0
- package/dist/progress-view.d.ts +14 -0
- package/dist/progress-view.d.ts.map +1 -0
- package/dist/progress-view.js +114 -0
- package/dist/progress-view.js.map +1 -0
- package/dist/project-graph-builder.d.ts +81 -0
- package/dist/project-graph-builder.d.ts.map +1 -0
- package/dist/project-graph-builder.js +246 -0
- package/dist/project-graph-builder.js.map +1 -0
- package/dist/project-graph-runtime.d.ts +86 -0
- package/dist/project-graph-runtime.d.ts.map +1 -0
- package/dist/project-graph-runtime.js +112 -0
- package/dist/project-graph-runtime.js.map +1 -0
- package/dist/project-index-builder.d.ts +96 -0
- package/dist/project-index-builder.d.ts.map +1 -0
- package/dist/project-index-builder.js +298 -0
- package/dist/project-index-builder.js.map +1 -0
- package/dist/project-index-facts.d.ts +51 -0
- package/dist/project-index-facts.d.ts.map +1 -0
- package/dist/project-index-facts.js +117 -0
- package/dist/project-index-facts.js.map +1 -0
- package/dist/project-index-store.d.ts +97 -0
- package/dist/project-index-store.d.ts.map +1 -0
- package/dist/project-index-store.js +140 -0
- package/dist/project-index-store.js.map +1 -0
- package/dist/project-memory-store.d.ts +127 -0
- package/dist/project-memory-store.d.ts.map +1 -0
- package/dist/project-memory-store.js +302 -0
- package/dist/project-memory-store.js.map +1 -0
- package/dist/proposal-store.d.ts +14 -0
- package/dist/proposal-store.d.ts.map +1 -0
- package/dist/proposal-store.js +19 -0
- package/dist/proposal-store.js.map +1 -0
- package/dist/prover.d.ts +80 -0
- package/dist/prover.d.ts.map +1 -0
- package/dist/prover.js +137 -0
- package/dist/prover.js.map +1 -0
- package/dist/provider-identity-store.d.ts +34 -0
- package/dist/provider-identity-store.d.ts.map +1 -0
- package/dist/provider-identity-store.js +72 -0
- package/dist/provider-identity-store.js.map +1 -0
- package/dist/provider-identity.d.ts +104 -0
- package/dist/provider-identity.d.ts.map +1 -0
- package/dist/provider-identity.js +167 -0
- package/dist/provider-identity.js.map +1 -0
- package/dist/provider-limit.d.ts +79 -0
- package/dist/provider-limit.d.ts.map +1 -0
- package/dist/provider-limit.js +148 -0
- package/dist/provider-limit.js.map +1 -0
- package/dist/provider-preflight.d.ts +171 -0
- package/dist/provider-preflight.d.ts.map +1 -0
- package/dist/provider-preflight.js +395 -0
- package/dist/provider-preflight.js.map +1 -0
- package/dist/provider-state.d.ts +120 -0
- package/dist/provider-state.d.ts.map +1 -0
- package/dist/provider-state.js +182 -0
- package/dist/provider-state.js.map +1 -0
- package/dist/providers.d.ts +132 -0
- package/dist/providers.d.ts.map +1 -0
- package/dist/providers.js +161 -0
- package/dist/providers.js.map +1 -0
- package/dist/publication-recorder.d.ts +117 -0
- package/dist/publication-recorder.d.ts.map +1 -0
- package/dist/publication-recorder.js +124 -0
- package/dist/publication-recorder.js.map +1 -0
- package/dist/pursuit-delivery.d.ts +24 -0
- package/dist/pursuit-delivery.d.ts.map +1 -0
- package/dist/pursuit-delivery.js +38 -0
- package/dist/pursuit-delivery.js.map +1 -0
- package/dist/queue-store.d.ts +132 -0
- package/dist/queue-store.d.ts.map +1 -0
- package/dist/queue-store.js +185 -0
- package/dist/queue-store.js.map +1 -0
- package/dist/queue-summary.d.ts +14 -0
- package/dist/queue-summary.d.ts.map +1 -0
- package/dist/queue-summary.js +82 -0
- package/dist/queue-summary.js.map +1 -0
- package/dist/queue-view.d.ts +20 -0
- package/dist/queue-view.d.ts.map +1 -0
- package/dist/queue-view.js +163 -0
- package/dist/queue-view.js.map +1 -0
- package/dist/queue-write-lease.d.ts +106 -0
- package/dist/queue-write-lease.d.ts.map +1 -0
- package/dist/queue-write-lease.js +282 -0
- package/dist/queue-write-lease.js.map +1 -0
- package/dist/rails-home.d.ts +162 -0
- package/dist/rails-home.d.ts.map +1 -0
- package/dist/rails-home.js +452 -0
- package/dist/rails-home.js.map +1 -0
- package/dist/rails-migrations.d.ts +75 -0
- package/dist/rails-migrations.d.ts.map +1 -0
- package/dist/rails-migrations.js +199 -0
- package/dist/rails-migrations.js.map +1 -0
- package/dist/rails-stores.d.ts +49 -0
- package/dist/rails-stores.d.ts.map +1 -0
- package/dist/rails-stores.js +100 -0
- package/dist/rails-stores.js.map +1 -0
- package/dist/reaper.d.ts +69 -0
- package/dist/reaper.d.ts.map +1 -0
- package/dist/reaper.js +152 -0
- package/dist/reaper.js.map +1 -0
- package/dist/record-store.d.ts +36 -0
- package/dist/record-store.d.ts.map +1 -0
- package/dist/record-store.js +78 -0
- package/dist/record-store.js.map +1 -0
- package/dist/recovery-io.d.ts +50 -0
- package/dist/recovery-io.d.ts.map +1 -0
- package/dist/recovery-io.js +122 -0
- package/dist/recovery-io.js.map +1 -0
- package/dist/recovery.d.ts +146 -0
- package/dist/recovery.d.ts.map +1 -0
- package/dist/recovery.js +110 -0
- package/dist/recovery.js.map +1 -0
- package/dist/redraw.d.ts +34 -0
- package/dist/redraw.d.ts.map +1 -0
- package/dist/redraw.js +62 -0
- package/dist/redraw.js.map +1 -0
- package/dist/rejected-evidence.d.ts +255 -0
- package/dist/rejected-evidence.d.ts.map +1 -0
- package/dist/rejected-evidence.js +324 -0
- package/dist/rejected-evidence.js.map +1 -0
- package/dist/report-cmd.d.ts +32 -0
- package/dist/report-cmd.d.ts.map +1 -0
- package/dist/report-cmd.js +201 -0
- package/dist/report-cmd.js.map +1 -0
- package/dist/repos-cmd.d.ts +80 -0
- package/dist/repos-cmd.d.ts.map +1 -0
- package/dist/repos-cmd.js +240 -0
- package/dist/repos-cmd.js.map +1 -0
- package/dist/request-body-shape.d.ts +93 -0
- package/dist/request-body-shape.d.ts.map +1 -0
- package/dist/request-body-shape.js +407 -0
- package/dist/request-body-shape.js.map +1 -0
- package/dist/requirement-claims.d.ts +89 -0
- package/dist/requirement-claims.d.ts.map +1 -0
- package/dist/requirement-claims.js +92 -0
- package/dist/requirement-claims.js.map +1 -0
- package/dist/retention-apply-runtime.d.ts +105 -0
- package/dist/retention-apply-runtime.d.ts.map +1 -0
- package/dist/retention-apply-runtime.js +269 -0
- package/dist/retention-apply-runtime.js.map +1 -0
- package/dist/reverify.d.ts +41 -0
- package/dist/reverify.d.ts.map +1 -0
- package/dist/reverify.js +69 -0
- package/dist/reverify.js.map +1 -0
- package/dist/round-records.d.ts +65 -0
- package/dist/round-records.d.ts.map +1 -0
- package/dist/round-records.js +61 -0
- package/dist/round-records.js.map +1 -0
- package/dist/round-runner.d.ts +924 -0
- package/dist/round-runner.d.ts.map +1 -0
- package/dist/round-runner.js +1693 -0
- package/dist/round-runner.js.map +1 -0
- package/dist/run-approval.d.ts +180 -0
- package/dist/run-approval.d.ts.map +1 -0
- package/dist/run-approval.js +199 -0
- package/dist/run-approval.js.map +1 -0
- package/dist/run-cmd.d.ts +359 -0
- package/dist/run-cmd.d.ts.map +1 -0
- package/dist/run-cmd.js +4418 -0
- package/dist/run-cmd.js.map +1 -0
- package/dist/run-delivery.d.ts +71 -0
- package/dist/run-delivery.d.ts.map +1 -0
- package/dist/run-delivery.js +104 -0
- package/dist/run-delivery.js.map +1 -0
- package/dist/run-ended.d.ts +75 -0
- package/dist/run-ended.d.ts.map +1 -0
- package/dist/run-ended.js +27 -0
- package/dist/run-ended.js.map +1 -0
- package/dist/run-ending-locator.d.ts +125 -0
- package/dist/run-ending-locator.d.ts.map +1 -0
- package/dist/run-ending-locator.js +133 -0
- package/dist/run-ending-locator.js.map +1 -0
- package/dist/run-launcher.d.ts +459 -0
- package/dist/run-launcher.d.ts.map +1 -0
- package/dist/run-launcher.js +652 -0
- package/dist/run-launcher.js.map +1 -0
- package/dist/run-lease.d.ts +208 -0
- package/dist/run-lease.d.ts.map +1 -0
- package/dist/run-lease.js +301 -0
- package/dist/run-lease.js.map +1 -0
- package/dist/run-refusal-marks.d.ts +189 -0
- package/dist/run-refusal-marks.d.ts.map +1 -0
- package/dist/run-refusal-marks.js +249 -0
- package/dist/run-refusal-marks.js.map +1 -0
- package/dist/run-start-marks.d.ts +153 -0
- package/dist/run-start-marks.d.ts.map +1 -0
- package/dist/run-start-marks.js +269 -0
- package/dist/run-start-marks.js.map +1 -0
- package/dist/scan-cmd.d.ts +14 -0
- package/dist/scan-cmd.d.ts.map +1 -0
- package/dist/scan-cmd.js +270 -0
- package/dist/scan-cmd.js.map +1 -0
- package/dist/scan-events.d.ts +50 -0
- package/dist/scan-events.d.ts.map +1 -0
- package/dist/scan-events.js +91 -0
- package/dist/scan-events.js.map +1 -0
- package/dist/scan.d.ts +191 -0
- package/dist/scan.d.ts.map +1 -0
- package/dist/scan.js +417 -0
- package/dist/scan.js.map +1 -0
- package/dist/scope-rule.d.ts +148 -0
- package/dist/scope-rule.d.ts.map +1 -0
- package/dist/scope-rule.js +121 -0
- package/dist/scope-rule.js.map +1 -0
- package/dist/self-repo-id.d.ts +18 -0
- package/dist/self-repo-id.d.ts.map +1 -0
- package/dist/self-repo-id.js +70 -0
- package/dist/self-repo-id.js.map +1 -0
- package/dist/serve-cmd.d.ts +115 -0
- package/dist/serve-cmd.d.ts.map +1 -0
- package/dist/serve-cmd.js +505 -0
- package/dist/serve-cmd.js.map +1 -0
- package/dist/serve.d.ts +167 -0
- package/dist/serve.d.ts.map +1 -0
- package/dist/serve.js +336 -0
- package/dist/serve.js.map +1 -0
- package/dist/server-client.d.ts +766 -0
- package/dist/server-client.d.ts.map +1 -0
- package/dist/server-client.js +475 -0
- package/dist/server-client.js.map +1 -0
- package/dist/session-adapter-runtime.d.ts +195 -0
- package/dist/session-adapter-runtime.d.ts.map +1 -0
- package/dist/session-adapter-runtime.js +373 -0
- package/dist/session-adapter-runtime.js.map +1 -0
- package/dist/session-checkpoint-runtime.d.ts +62 -0
- package/dist/session-checkpoint-runtime.d.ts.map +1 -0
- package/dist/session-checkpoint-runtime.js +268 -0
- package/dist/session-checkpoint-runtime.js.map +1 -0
- package/dist/session-control-transport.d.ts +106 -0
- package/dist/session-control-transport.d.ts.map +1 -0
- package/dist/session-control-transport.js +232 -0
- package/dist/session-control-transport.js.map +1 -0
- package/dist/session-observation-store.d.ts +98 -0
- package/dist/session-observation-store.d.ts.map +1 -0
- package/dist/session-observation-store.js +155 -0
- package/dist/session-observation-store.js.map +1 -0
- package/dist/session-observe-runtime.d.ts +123 -0
- package/dist/session-observe-runtime.d.ts.map +1 -0
- package/dist/session-observe-runtime.js +317 -0
- package/dist/session-observe-runtime.js.map +1 -0
- package/dist/session-store.d.ts +98 -0
- package/dist/session-store.d.ts.map +1 -0
- package/dist/session-store.js +116 -0
- package/dist/session-store.js.map +1 -0
- package/dist/sessions-cmd.d.ts +202 -0
- package/dist/sessions-cmd.d.ts.map +1 -0
- package/dist/sessions-cmd.js +609 -0
- package/dist/sessions-cmd.js.map +1 -0
- package/dist/settings-overlay.d.ts +53 -0
- package/dist/settings-overlay.d.ts.map +1 -0
- package/dist/settings-overlay.js +175 -0
- package/dist/settings-overlay.js.map +1 -0
- package/dist/setup-prompt.d.ts +34 -0
- package/dist/setup-prompt.d.ts.map +1 -0
- package/dist/setup-prompt.js +92 -0
- package/dist/setup-prompt.js.map +1 -0
- package/dist/setup.d.ts +103 -0
- package/dist/setup.d.ts.map +1 -0
- package/dist/setup.js +283 -0
- package/dist/setup.js.map +1 -0
- package/dist/shared-grants.d.ts +164 -0
- package/dist/shared-grants.d.ts.map +1 -0
- package/dist/shared-grants.js +242 -0
- package/dist/shared-grants.js.map +1 -0
- package/dist/signals.d.ts +55 -0
- package/dist/signals.d.ts.map +1 -0
- package/dist/signals.js +85 -0
- package/dist/signals.js.map +1 -0
- package/dist/source-cmd.d.ts +201 -0
- package/dist/source-cmd.d.ts.map +1 -0
- package/dist/source-cmd.js +684 -0
- package/dist/source-cmd.js.map +1 -0
- package/dist/source-verdict.d.ts +99 -0
- package/dist/source-verdict.d.ts.map +1 -0
- package/dist/source-verdict.js +182 -0
- package/dist/source-verdict.js.map +1 -0
- package/dist/spend-ledger.d.ts +350 -0
- package/dist/spend-ledger.d.ts.map +1 -0
- package/dist/spend-ledger.js +546 -0
- package/dist/spend-ledger.js.map +1 -0
- package/dist/stale-run-sweep.d.ts +79 -0
- package/dist/stale-run-sweep.d.ts.map +1 -0
- package/dist/stale-run-sweep.js +116 -0
- package/dist/stale-run-sweep.js.map +1 -0
- package/dist/start-attempts.d.ts +385 -0
- package/dist/start-attempts.d.ts.map +1 -0
- package/dist/start-attempts.js +613 -0
- package/dist/start-attempts.js.map +1 -0
- package/dist/status-cmd.d.ts +28 -0
- package/dist/status-cmd.d.ts.map +1 -0
- package/dist/status-cmd.js +116 -0
- package/dist/status-cmd.js.map +1 -0
- package/dist/stop-follow-up.d.ts +107 -0
- package/dist/stop-follow-up.d.ts.map +1 -0
- package/dist/stop-follow-up.js +172 -0
- package/dist/stop-follow-up.js.map +1 -0
- package/dist/surface-lease.d.ts +118 -0
- package/dist/surface-lease.d.ts.map +1 -0
- package/dist/surface-lease.js +485 -0
- package/dist/surface-lease.js.map +1 -0
- package/dist/sync.d.ts +54 -0
- package/dist/sync.d.ts.map +1 -0
- package/dist/sync.js +93 -0
- package/dist/sync.js.map +1 -0
- package/dist/syncing-ledger.d.ts +45 -0
- package/dist/syncing-ledger.d.ts.map +1 -0
- package/dist/syncing-ledger.js +53 -0
- package/dist/syncing-ledger.js.map +1 -0
- package/dist/temp-fixtures.d.ts +68 -0
- package/dist/temp-fixtures.d.ts.map +1 -0
- package/dist/temp-fixtures.js +38 -0
- package/dist/temp-fixtures.js.map +1 -0
- package/dist/token-window.d.ts +84 -0
- package/dist/token-window.d.ts.map +1 -0
- package/dist/token-window.js +143 -0
- package/dist/token-window.js.map +1 -0
- package/dist/tool-bridge.d.ts +177 -0
- package/dist/tool-bridge.d.ts.map +1 -0
- package/dist/tool-bridge.js +329 -0
- package/dist/tool-bridge.js.map +1 -0
- package/dist/tool-call-record.d.ts +197 -0
- package/dist/tool-call-record.d.ts.map +1 -0
- package/dist/tool-call-record.js +276 -0
- package/dist/tool-call-record.js.map +1 -0
- package/dist/tool-protocol.d.ts +135 -0
- package/dist/tool-protocol.d.ts.map +1 -0
- package/dist/tool-protocol.js +104 -0
- package/dist/tool-protocol.js.map +1 -0
- package/dist/tool-worker.d.ts +3 -0
- package/dist/tool-worker.d.ts.map +1 -0
- package/dist/tool-worker.js +478 -0
- package/dist/tool-worker.js.map +1 -0
- package/dist/toolchain-mirror.d.ts +86 -0
- package/dist/toolchain-mirror.d.ts.map +1 -0
- package/dist/toolchain-mirror.js +307 -0
- package/dist/toolchain-mirror.js.map +1 -0
- package/dist/trusted-git.d.ts +243 -0
- package/dist/trusted-git.d.ts.map +1 -0
- package/dist/trusted-git.js +920 -0
- package/dist/trusted-git.js.map +1 -0
- package/dist/ui.d.ts +76 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +118 -0
- package/dist/ui.js.map +1 -0
- package/dist/untrusted-exec.d.ts +275 -0
- package/dist/untrusted-exec.d.ts.map +1 -0
- package/dist/untrusted-exec.js +479 -0
- package/dist/untrusted-exec.js.map +1 -0
- package/dist/untrusted-gate.d.ts +73 -0
- package/dist/untrusted-gate.d.ts.map +1 -0
- package/dist/untrusted-gate.js +226 -0
- package/dist/untrusted-gate.js.map +1 -0
- package/dist/uploader.d.ts +153 -0
- package/dist/uploader.d.ts.map +1 -0
- package/dist/uploader.js +204 -0
- package/dist/uploader.js.map +1 -0
- package/dist/verifier.d.ts +66 -0
- package/dist/verifier.d.ts.map +1 -0
- package/dist/verifier.js +170 -0
- package/dist/verifier.js.map +1 -0
- package/dist/verify-apply.d.ts +26 -0
- package/dist/verify-apply.d.ts.map +1 -0
- package/dist/verify-apply.js +36 -0
- package/dist/verify-apply.js.map +1 -0
- package/dist/verify-cmd.d.ts +44 -0
- package/dist/verify-cmd.d.ts.map +1 -0
- package/dist/verify-cmd.js +125 -0
- package/dist/verify-cmd.js.map +1 -0
- package/dist/verify-pass.d.ts +73 -0
- package/dist/verify-pass.d.ts.map +1 -0
- package/dist/verify-pass.js +103 -0
- package/dist/verify-pass.js.map +1 -0
- package/dist/welcome.d.ts +43 -0
- package/dist/welcome.d.ts.map +1 -0
- package/dist/welcome.js +116 -0
- package/dist/welcome.js.map +1 -0
- package/dist/workspace-provisioner.d.ts +65 -0
- package/dist/workspace-provisioner.d.ts.map +1 -0
- package/dist/workspace-provisioner.js +66 -0
- package/dist/workspace-provisioner.js.map +1 -0
- package/dist/workspace-quarantine.d.ts +64 -0
- package/dist/workspace-quarantine.d.ts.map +1 -0
- package/dist/workspace-quarantine.js +156 -0
- package/dist/workspace-quarantine.js.map +1 -0
- package/dist/workspace-residue-sweep.d.ts +113 -0
- package/dist/workspace-residue-sweep.d.ts.map +1 -0
- package/dist/workspace-residue-sweep.js +158 -0
- package/dist/workspace-residue-sweep.js.map +1 -0
- package/dist/workspace.d.ts +639 -0
- package/dist/workspace.d.ts.map +1 -0
- package/dist/workspace.js +2026 -0
- package/dist/workspace.js.map +1 -0
- package/package.json +52 -4
- package/win/CredProbe.cs +64 -0
- package/win/FakeClaude.cs +56 -0
- package/win/HandleProbe.cs +116 -0
- package/win/TokenProbe.cs +53 -0
- package/win/appcontainer.ps1 +500 -0
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
import type { RunDelivery } from './run-refusal-marks';
|
|
2
|
+
import { type RunRefusalCode, type Item, type ItemCrossRepoContext } from '@looply/core';
|
|
3
|
+
import { type LooplyConfig } from './config';
|
|
4
|
+
import { type AnyEventInput } from './ledger-store';
|
|
5
|
+
import { type RepairContext, type RunSummary } from './round-runner';
|
|
6
|
+
import type { AnsweredQuestionView, PartialQuestionBody } from '@looply/core';
|
|
7
|
+
import { type ApprovalResolutionContext } from './approval-resolution';
|
|
8
|
+
import { type GovernedActionResultContext } from './governed-run';
|
|
9
|
+
/**
|
|
10
|
+
* The composition root for `looply run`.
|
|
11
|
+
*
|
|
12
|
+
* Everything below this line was already built and unit-tested in isolation;
|
|
13
|
+
* none of it could be reached from the command line, which meant the product
|
|
14
|
+
* was a library. This file is the wiring, and it is deliberately the only place
|
|
15
|
+
* that knows both how to spawn a coding agent and where the state directory
|
|
16
|
+
* lives.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* The protected calls a test may make fail, to exercise teardown for real.
|
|
20
|
+
*
|
|
21
|
+
* 🔴 THE `holding()` GUARD HAD A SOURCE PIN AND ONE RUNTIME TEST. A pin shows
|
|
22
|
+
* the guard is written; it cannot show the hold is given back. Five of the six
|
|
23
|
+
* protected sites had no way to be made to fail without modifying production
|
|
24
|
+
* code, so five of the six were unproven — including the last one, which is the
|
|
25
|
+
* only place a run holds SURFACES and an OPEN BUDGET RESERVATION at once.
|
|
26
|
+
*
|
|
27
|
+
* ⚠️ NOT REACHABLE FROM ARGV, CONFIG, OR THE ENVIRONMENT. This is a programmatic
|
|
28
|
+
* option on `RunOptions`, in the same way every other seam in this file is
|
|
29
|
+
* injected; `bin.ts` never sets it, so no flag, no project setting and no worker
|
|
30
|
+
* can ask for it. Production always calls the real dependency.
|
|
31
|
+
*
|
|
32
|
+
* ⚠️ AND IT INJECTS ONLY THE FAILURE. `holding()`, `releaseHold`, the
|
|
33
|
+
* settlement and the whole cleanup path are the real ones — mocking any of them
|
|
34
|
+
* would be mocking the thing under test.
|
|
35
|
+
*/
|
|
36
|
+
export type RunFaultSite = 'startMarks.load' | 'queue.open' | 'adoptGoalItems' | 'applyRecovery' | 'acquireSurfaces' | 'exemptionStore.open';
|
|
37
|
+
export interface RunOptions {
|
|
38
|
+
cwd: string;
|
|
39
|
+
config: LooplyConfig;
|
|
40
|
+
/**
|
|
41
|
+
* What other repositories have published, for items that declare a need on one.
|
|
42
|
+
*
|
|
43
|
+
* 🔴 INJECTED RATHER THAN BUILT HERE. Answering it means reading every
|
|
44
|
+
* declared repository's current revision with git and the accepted set out of
|
|
45
|
+
* the compatible-set store — knowledge the composition root already holds for
|
|
46
|
+
* the project-level check, and that this file has managed without. Building a
|
|
47
|
+
* second copy of it here is how the two come to disagree about what is
|
|
48
|
+
* published.
|
|
49
|
+
*
|
|
50
|
+
* Absent for every manual run of a project that declares no repositories.
|
|
51
|
+
*/
|
|
52
|
+
crossRepo?: () => Promise<ItemCrossRepoContext | undefined>;
|
|
53
|
+
/** Test-only: make one protected call throw. See `RunFaultSite`. */
|
|
54
|
+
faultAt?: RunFaultSite;
|
|
55
|
+
/** Overrides `run.min_hours` for one run without editing the config. */
|
|
56
|
+
hours?: number;
|
|
57
|
+
/** Prints the plan and exits without spawning an agent. */
|
|
58
|
+
dryRun?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* The server command that asked for this run, when one did.
|
|
61
|
+
*
|
|
62
|
+
* Recorded in the lease so a redelivered `start-run` can be recognised as the
|
|
63
|
+
* one already being carried out rather than as a second request.
|
|
64
|
+
*/
|
|
65
|
+
commandId?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Whether this run was begun by the machine rather than by a person.
|
|
68
|
+
*
|
|
69
|
+
* Carried as a plain flag rather than an origin object: the only thing the
|
|
70
|
+
* run process needs to know about who asked is whether beginning it counts
|
|
71
|
+
* as a person saying go. Everything else about the controller — which grant,
|
|
72
|
+
* which ordinal, which attempt — is the daemon's business and never crosses
|
|
73
|
+
* into the run.
|
|
74
|
+
*/
|
|
75
|
+
autonomous?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* The goal this run is for, and the version the SERVER stamped when the
|
|
78
|
+
* phone tapped Start.
|
|
79
|
+
*
|
|
80
|
+
* Both or neither. The version is not decoration: it is what proves the
|
|
81
|
+
* mirrored goal on this machine is the very one the person was looking at,
|
|
82
|
+
* which is what lets the whole happy path stay offline.
|
|
83
|
+
*/
|
|
84
|
+
goalId?: string;
|
|
85
|
+
goalVersion?: number;
|
|
86
|
+
/**
|
|
87
|
+
* A PERSON AT A TERMINAL SPENDING THIS INCIDENT'S ONE RETRY.
|
|
88
|
+
*
|
|
89
|
+
* 🔴 THE WEDGE THIS EXISTS TO OPEN, MEASURED. A hold has no expiry and no
|
|
90
|
+
* `clear()`, deliberately. The only thing that discharges one is
|
|
91
|
+
* `LoopSafetyStore.override`, and until now the only caller was the daemon's
|
|
92
|
+
* `start-run` — a command a PAIRED PHONE sends. So a person who ran
|
|
93
|
+
* `looply run --goal-id G --goal-version 1` and hit a `repeated_failure` hold
|
|
94
|
+
* was told "Start it again to try once more", and starting it again hit the
|
|
95
|
+
* same fence, for ever, with no flag anywhere that would help.
|
|
96
|
+
*
|
|
97
|
+
* ⚠️ ONE RETRY, NOT "SAFETY OFF", and it is the SAME exclusive create the
|
|
98
|
+
* daemon spends. Typing this twice does not buy two attempts: the second
|
|
99
|
+
* finds the marker and is refused. The incident is marked spent rather than
|
|
100
|
+
* deleted and the observation history is untouched, so if this attempt also
|
|
101
|
+
* achieves nothing the detectors see the whole history and raise a NEW hold.
|
|
102
|
+
* There is deliberately no flag anywhere that turns the brake off.
|
|
103
|
+
*/
|
|
104
|
+
tryOnceMore?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Work to hand to the goal before the run begins. May be absent and may be
|
|
107
|
+
* empty, and both mean the same thing: start this goal on what it already
|
|
108
|
+
* owns.
|
|
109
|
+
*/
|
|
110
|
+
itemIds?: string[];
|
|
111
|
+
/**
|
|
112
|
+
* The answer this run is picking up, when a person started again after one.
|
|
113
|
+
*
|
|
114
|
+
* AN ID, AND THE RUN GOES AND READS IT. What was refused, and in what words,
|
|
115
|
+
* comes from the server — the same place the person saw it — so what a model
|
|
116
|
+
* is told and what a person was shown cannot drift. Nothing about the
|
|
117
|
+
* decision travels on the command line.
|
|
118
|
+
*
|
|
119
|
+
* Present only on a goal-bound run, because the resolution is checked against
|
|
120
|
+
* the pursuit this run is actually for.
|
|
121
|
+
*/
|
|
122
|
+
resumedFromApprovalId?: string;
|
|
123
|
+
/**
|
|
124
|
+
* The exact approval this Start was accepted to carry out.
|
|
125
|
+
*
|
|
126
|
+
* TRANSPORT, NEVER AUTHORITY. It is checked against a durable reservation
|
|
127
|
+
* naming this run's Start before anything is claimed; see `governed-run`.
|
|
128
|
+
*/
|
|
129
|
+
governedApprovalId?: string;
|
|
130
|
+
log: (line: string) => void;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* A run that will not start, and that retrying cannot fix.
|
|
134
|
+
*
|
|
135
|
+
* Separate from every other failure because the daemon treats the two
|
|
136
|
+
* differently: an ordinary failure leaves the start-run queued to be offered
|
|
137
|
+
* again, and a command offered again every three seconds for an hour is noise
|
|
138
|
+
* rather than resilience. Carried out of the process as an exit code, since
|
|
139
|
+
* that is the only channel a detached child has.
|
|
140
|
+
*/
|
|
141
|
+
export declare class RunRefused extends Error {
|
|
142
|
+
readonly code: RunRefusalCode;
|
|
143
|
+
/**
|
|
144
|
+
* The run's branch, when the refusal came from a run that had one (M5-2).
|
|
145
|
+
* Carried so the mark can name whose branch the lane must publish before a
|
|
146
|
+
* met goal's grant closes; absent on every refusal made before a branch
|
|
147
|
+
* exists, and on every site that has nothing to say about one.
|
|
148
|
+
*/
|
|
149
|
+
readonly branch?: string | undefined;
|
|
150
|
+
/**
|
|
151
|
+
* What key 2 confirmed, on a `goal_satisfied` refusal only (L4b): the
|
|
152
|
+
* delivering run, the commit, and each required step's outcome. Carried to
|
|
153
|
+
* the mark so the daemon can settle the pursuit with facts, not a sentence.
|
|
154
|
+
*/
|
|
155
|
+
readonly delivery?: RunDelivery | undefined;
|
|
156
|
+
/**
|
|
157
|
+
* The same refusal, for a machine.
|
|
158
|
+
*
|
|
159
|
+
* Carried BESIDE the message, never derived from it. 6A3 gave a refusal a
|
|
160
|
+
* sentence a person reads; a second machine deciding whether to spend
|
|
161
|
+
* anything more needs to tell "the goal is met" from "a person has to decide
|
|
162
|
+
* something", and those two sentences deliberately share their opening words.
|
|
163
|
+
*
|
|
164
|
+
* Every site that throws names its own code, because the code that took the
|
|
165
|
+
* branch is the only thing that knows which branch it took.
|
|
166
|
+
*/
|
|
167
|
+
constructor(message: string, code?: RunRefusalCode,
|
|
168
|
+
/**
|
|
169
|
+
* The run's branch, when the refusal came from a run that had one (M5-2).
|
|
170
|
+
* Carried so the mark can name whose branch the lane must publish before a
|
|
171
|
+
* met goal's grant closes; absent on every refusal made before a branch
|
|
172
|
+
* exists, and on every site that has nothing to say about one.
|
|
173
|
+
*/
|
|
174
|
+
branch?: string | undefined,
|
|
175
|
+
/**
|
|
176
|
+
* What key 2 confirmed, on a `goal_satisfied` refusal only (L4b): the
|
|
177
|
+
* delivering run, the commit, and each required step's outcome. Carried to
|
|
178
|
+
* the mark so the daemon can settle the pursuit with facts, not a sentence.
|
|
179
|
+
*/
|
|
180
|
+
delivery?: RunDelivery | undefined);
|
|
181
|
+
}
|
|
182
|
+
/** What `looply run` exits with when it refuses for good. */
|
|
183
|
+
export declare const EXIT_REFUSED = 3;
|
|
184
|
+
/**
|
|
185
|
+
* THE ENDING OF A RUN THAT REGISTERED AND NEVER STARTED, WITH ITS REASON (M6-16).
|
|
186
|
+
*
|
|
187
|
+
* `releaseHold` below writes a bare `run.ended` for a run that took its slot
|
|
188
|
+
* and never reached its first round — a compile that produced nothing, a plan
|
|
189
|
+
* that came back empty, a refusal to start. M6-12 made the runner say why it
|
|
190
|
+
* halts; these endings never reach the runner, and until M6-16 their reason
|
|
191
|
+
* lived only in this process's log, which nobody reads: found live in M6-15,
|
|
192
|
+
* two machine Starts on a goal with nothing pickable each spent a minute
|
|
193
|
+
* compiling, ended `aborted` at zero rounds, and the server's feed showed the
|
|
194
|
+
* ending alone. The reason now travels the way the runner's does — one
|
|
195
|
+
* `alert { code: 'run-halted' }` immediately before the ending, on the same
|
|
196
|
+
* sink, so the phone reads "why" beside "ended" whichever half of the run
|
|
197
|
+
* wrote it. No reason recorded → no alert, never an invented sentence. Both
|
|
198
|
+
* writes are best-effort, each named in the log when it fails, and neither
|
|
199
|
+
* stops the hold being given back.
|
|
200
|
+
*/
|
|
201
|
+
export declare function writeEndingBeforeFirstRound(sink: {
|
|
202
|
+
append(input: AnyEventInput): Promise<unknown>;
|
|
203
|
+
}, facts: {
|
|
204
|
+
runId: string;
|
|
205
|
+
projectId: string;
|
|
206
|
+
startedAtMs: number;
|
|
207
|
+
because: string | null;
|
|
208
|
+
now?: () => number;
|
|
209
|
+
}, log: (line: string) => void): Promise<void>;
|
|
210
|
+
/**
|
|
211
|
+
* The exit code for "somebody else is already executing this exact attempt".
|
|
212
|
+
*
|
|
213
|
+
* Distinct from {@link EXIT_REFUSED} on purpose, and the distinction is
|
|
214
|
+
* load-bearing. Exit 3 means the RUN decided something about the goal, and a
|
|
215
|
+
* controller may end a person's grant on it. This means nothing about the goal
|
|
216
|
+
* at all — another process got to the same attempt first — and a controller
|
|
217
|
+
* that read the two as one answer would report a goal finished because two
|
|
218
|
+
* daemons happened to tick at the same moment.
|
|
219
|
+
*/
|
|
220
|
+
export declare const EXIT_ATTEMPT_CLAIMED = 4;
|
|
221
|
+
/** How much of a failing step's output the repair prompt carries inline. */
|
|
222
|
+
export declare const REPAIR_PROMPT_OUTPUT_MAX_CHARS: number;
|
|
223
|
+
/** How much of the previous patch the repair prompt carries inline, when it was not restored. */
|
|
224
|
+
export declare const REPAIR_PROMPT_PATCH_MAX_CHARS: number;
|
|
225
|
+
/**
|
|
226
|
+
* The previous attempt, as prose the worker can act on.
|
|
227
|
+
*
|
|
228
|
+
* Three things a repair needs and the one-line `lastFailure` never carried:
|
|
229
|
+
* WHAT refused the candidate and what it printed, WHAT the candidate changed,
|
|
230
|
+
* and WHETHER that change is in the tree now. The last is stated either way —
|
|
231
|
+
* "restored, these files" or "not restored, because …, you start from the
|
|
232
|
+
* base" — so the worker is never handed an unexplained clean tree.
|
|
233
|
+
*
|
|
234
|
+
* Bounded again here, tighter than the evidence on disk: the full logs live in
|
|
235
|
+
* the evidence directory, and a prompt is not the place for 256K of jest.
|
|
236
|
+
*/
|
|
237
|
+
export declare function describeRepair(repair: RepairContext): string;
|
|
238
|
+
export declare function buildImplementerPrompt(item: Item, attempt: number, cfg: LooplyConfig,
|
|
239
|
+
/**
|
|
240
|
+
* What a person refused, when this run is a resume after one.
|
|
241
|
+
*
|
|
242
|
+
* Rendered as labelled prose rather than as data, and that is a safety
|
|
243
|
+
* decision rather than a stylistic one: the transcript is scanned for a
|
|
244
|
+
* structured request for authority, and the scan takes the FIRST one it
|
|
245
|
+
* finds. A prompt that illustrated the shape of such a request would be a
|
|
246
|
+
* decoy that an echoing model files for real.
|
|
247
|
+
*/
|
|
248
|
+
resolution?: ApprovalResolutionContext,
|
|
249
|
+
/**
|
|
250
|
+
* What a person approved that has already been DONE, when this run did it.
|
|
251
|
+
*
|
|
252
|
+
* Prose for the same reason, and the reason bites harder here: this block
|
|
253
|
+
* describes a consequential act that SUCCEEDED, and a model that read it as
|
|
254
|
+
* a template and echoed the shape back would be asking for that act again.
|
|
255
|
+
*/
|
|
256
|
+
governed?: GovernedActionResultContext,
|
|
257
|
+
/**
|
|
258
|
+
* What this project has already established, as labelled prose.
|
|
259
|
+
*
|
|
260
|
+
* Prose for the same reason the two blocks above are, and the reasoning is
|
|
261
|
+
* Phase 7's: a declaration of authority is a SHAPE on a structured channel,
|
|
262
|
+
* never a phrase, so nothing written here can become a request. What it must
|
|
263
|
+
* not do is show a TEMPLATE of that shape, which an echoing model could fill
|
|
264
|
+
* in for real — so memory is rendered as bulleted claims, never as data.
|
|
265
|
+
*
|
|
266
|
+
* Already sectioned and budgeted by `assembleMemoryContext`; this builder
|
|
267
|
+
* neither ranks nor trims, because one that re-decided what fits would be a
|
|
268
|
+
* second place the budget lives.
|
|
269
|
+
*/
|
|
270
|
+
memory?: string | null,
|
|
271
|
+
/**
|
|
272
|
+
* What the committed repository establishes about this work, from the graph.
|
|
273
|
+
*
|
|
274
|
+
* 🔴 A SEPARATE PARAMETER FROM `memory`, AND SEPARATE ALL THE WAY TO THE
|
|
275
|
+
* PROMPT. Concatenating them here would put "the repository says these files
|
|
276
|
+
* import you" under the same heading as "a person decided you must not
|
|
277
|
+
* force-push" — two different authorities, and the whole of Phase 13 is that
|
|
278
|
+
* a reader can always tell which one is speaking.
|
|
279
|
+
*/
|
|
280
|
+
structure?: string | null,
|
|
281
|
+
/**
|
|
282
|
+
* What the previous attempt did and what refused it, when this run saw it.
|
|
283
|
+
*
|
|
284
|
+
* 🔴 THE RETRY USED TO GET ONE LINE AND A CLEAN TREE. "gate red: step
|
|
285
|
+
* typecheck failed" was the whole briefing, and the work from the round
|
|
286
|
+
* before had been reset away without a word about it. A worker cannot
|
|
287
|
+
* repair what it has not been shown; it starts over. This renders the
|
|
288
|
+
* retained evidence — the failing step's output, the manifest, the patch or
|
|
289
|
+
* the fact that it was restored into the tree — as labelled prose.
|
|
290
|
+
*
|
|
291
|
+
* Prose, and never a template, for the same reason every block above is:
|
|
292
|
+
* the step output and the patch are fenced as text the model is to READ,
|
|
293
|
+
* and nothing here shows the shape of a structured request for authority.
|
|
294
|
+
*/
|
|
295
|
+
repair?: RepairContext,
|
|
296
|
+
/**
|
|
297
|
+
* WHAT THE PERSON ACTUALLY ASKED FOR, WHICH NEVER GOT THIS FAR.
|
|
298
|
+
*
|
|
299
|
+
* 🔴 THE IMPLEMENTER WAS HANDED AN ITEM TITLE. A person types a goal of up to
|
|
300
|
+
* two thousand characters; the brain compiles it into items; and this builder
|
|
301
|
+
* emitted `item.title` and nothing else — so everything they wrote about what
|
|
302
|
+
* they want, why, and what would count as done stopped at the compile step.
|
|
303
|
+
* The capability audit's E-01, and the distance between it and what the
|
|
304
|
+
* product promises is the whole reason M8 exists: eleven cycles of M6 made
|
|
305
|
+
* the AUTHORITY to pursue a goal safe, while the thing being pursued was not
|
|
306
|
+
* being carried to the model doing the work.
|
|
307
|
+
*
|
|
308
|
+
* ⚠️ IT WAS ALWAYS ONE PROPERTY AWAY. The call site reads
|
|
309
|
+
* `binding.goal.id` off a `Goal` whose `text` is, in core's words, "the
|
|
310
|
+
* user's own wording, preserved verbatim". Nothing had to be carried here;
|
|
311
|
+
* the id was taken and the text was left behind.
|
|
312
|
+
*
|
|
313
|
+
* ⚠️ PROSE, AND NEVER A TEMPLATE, for the reason every block above says it:
|
|
314
|
+
* a declaration of authority is a SHAPE on a structured channel, never a
|
|
315
|
+
* phrase, and a prompt that showed that shape would be a decoy an echoing
|
|
316
|
+
* model could fill in for real. A goal is exactly where a person might write
|
|
317
|
+
* a sentence that READS like an instruction — "and then push it" — so the
|
|
318
|
+
* block introduces the text as something THEY wrote, and carries no
|
|
319
|
+
* structured shape at all.
|
|
320
|
+
*
|
|
321
|
+
* ⚠️ NOT TRIMMED HERE. The server caps a goal at `MAX_GOAL_TEXT` where it is
|
|
322
|
+
* created, and a goal reaches this machine only through the server. A second
|
|
323
|
+
* trim here would be a second place the budget lives — the same reason
|
|
324
|
+
* `memory` is neither ranked nor trimmed by this function.
|
|
325
|
+
*/
|
|
326
|
+
goal?: string | null): string;
|
|
327
|
+
/**
|
|
328
|
+
* A way to re-read the goal mirror from the server, if this machine has one.
|
|
329
|
+
*
|
|
330
|
+
* Deliberately not `attachSync`: that starts a sync daemon with a flush loop
|
|
331
|
+
* and a poll cadence, and it happens much further down, once the lease is
|
|
332
|
+
* held. All that is needed here is a single GET before anything is taken.
|
|
333
|
+
*
|
|
334
|
+
* Returns null when this machine is not paired, or is paired but has never
|
|
335
|
+
* registered this directory — both are ordinary states, and neither is a
|
|
336
|
+
* failure. A machine in either can still start a goal whose version its mirror
|
|
337
|
+
* already matches; it simply cannot be told about a newer one.
|
|
338
|
+
*/
|
|
339
|
+
/**
|
|
340
|
+
* The two question calls a run may make, and no others.
|
|
341
|
+
*
|
|
342
|
+
* ⚠️ DEFINED HERE rather than imported as the client's own types, for the
|
|
343
|
+
* reason every other capability in this file is: the narrowing IS the design,
|
|
344
|
+
* and a shape that admitted a third call would make it a comment.
|
|
345
|
+
*/
|
|
346
|
+
export interface PartialQuestionCapability {
|
|
347
|
+
ask(body: PartialQuestionBody & {
|
|
348
|
+
projectId: string;
|
|
349
|
+
}): Promise<{
|
|
350
|
+
id: string;
|
|
351
|
+
}>;
|
|
352
|
+
read(projectId: string, questionId: string): Promise<AnsweredQuestionView | null>;
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Assemble and run. Returns the summary the caller prints; every transition is
|
|
356
|
+
* already on disk in the ledger by the time this resolves.
|
|
357
|
+
*/
|
|
358
|
+
export declare function runLoop(opts: RunOptions): Promise<RunSummary>;
|
|
359
|
+
//# sourceMappingURL=run-cmd.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-cmd.d.ts","sourceRoot":"","sources":["../src/run-cmd.ts"],"names":[],"mappings":"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"}
|