looply-cli 0.0.0-stage → 0.2.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 +2719 -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/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 +54 -6
- 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,342 @@
|
|
|
1
|
+
import { type Evidence, type Item, type TaskPacket } from '@looply/core';
|
|
2
|
+
import type { AgentInvoke } from './agent-exec';
|
|
3
|
+
/**
|
|
4
|
+
* Turning a written intention into work the loop can actually pick up.
|
|
5
|
+
*
|
|
6
|
+
* This is `scan` narrowed to one goal. Scan asks "what is wrong with this
|
|
7
|
+
* repository"; this asks "what would have to be true for THIS outcome to be
|
|
8
|
+
* reached", and both answer with the same thing — candidate items, born
|
|
9
|
+
* `draft`, for the existing verify pass to confirm or throw away.
|
|
10
|
+
*
|
|
11
|
+
* WHAT THIS IS NOT. It does not execute anything, create a branch, touch a
|
|
12
|
+
* file, or decide that a goal has been met. It produces candidates and stops.
|
|
13
|
+
* The agent it calls has the same filesystem authority as every other agent in
|
|
14
|
+
* this repository — which is to say, all of it; there is no read-only agent
|
|
15
|
+
* path here and describing this one as read-only would be a lie. The guarantee
|
|
16
|
+
* that a compilation cannot change the repository is not sandboxing: it is that
|
|
17
|
+
* nothing downstream of this file applies a diff, and that everything it
|
|
18
|
+
* returns is a plain data shape that has to survive the verifier before a round
|
|
19
|
+
* will look at it.
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* How many steps one compilation may produce.
|
|
23
|
+
*
|
|
24
|
+
* Not a taste judgement — arithmetic, and the whole of it is asserted in
|
|
25
|
+
* `goal-compile.spec.ts` against the real constants:
|
|
26
|
+
*
|
|
27
|
+
* the command redelivery window is ONE HOUR from issue, and a start-run that
|
|
28
|
+
* is not acked inside it is marked expired and never offered again. The ack
|
|
29
|
+
* waits for `run.started`. Everything before `run.started` therefore spends
|
|
30
|
+
* that window: this compilation (bounded by COMPILE_TIMEOUT_MS), and then the
|
|
31
|
+
* verify pass, which is SEQUENTIAL at up to VERIFIER_TIMEOUT_MS per draft.
|
|
32
|
+
*
|
|
33
|
+
* 60m window − 10m compile − (6 × 5m verify) = 20m spare, a third of it
|
|
34
|
+
*
|
|
35
|
+
* Producing more than the verify pass can reach inside that window would not
|
|
36
|
+
* make more work happen; it would make the excess sit as drafts nobody has
|
|
37
|
+
* looked at while the command that asked for them expires.
|
|
38
|
+
*/
|
|
39
|
+
export declare const COMPILE_MAX_STEPS = 6;
|
|
40
|
+
/** One reasoning call over a repository. Generous, and bounded. */
|
|
41
|
+
export declare const COMPILE_TIMEOUT_MS: number;
|
|
42
|
+
/**
|
|
43
|
+
* WHY THIS DOES NOT USE `capByShape`, though scan does.
|
|
44
|
+
*
|
|
45
|
+
* `itemShape` matches a fixed vocabulary — add/remove/fix/wire/cover against
|
|
46
|
+
* test/onError/toast/route — drawn from what scanning actually produces. A
|
|
47
|
+
* compiled plan is written in the goal's language, not that one, so its titles
|
|
48
|
+
* fall through to the same `other:other` bucket regardless of content: "hash
|
|
49
|
+
* passwords with argon2", "expire a session token" and "lock an account after
|
|
50
|
+
* five failed sign-ins" are one shape by that measure. Applying the cap would
|
|
51
|
+
* silently truncate EVERY plan to `maxSameShape` steps for reasons unrelated to
|
|
52
|
+
* repetition, which is worse than not applying it — the flagship exercise
|
|
53
|
+
* caught it doing exactly that.
|
|
54
|
+
*
|
|
55
|
+
* What remains against a model that repeats itself: exact repeats collapse,
|
|
56
|
+
* because two steps that say the same thing derive the same id and therefore
|
|
57
|
+
* the same item; and COMPILE_MAX_STEPS bounds the whole plan whatever it says.
|
|
58
|
+
* Near-clones with different nouns are not caught, and that is a known gap
|
|
59
|
+
* rather than a solved problem.
|
|
60
|
+
*/
|
|
61
|
+
/** A step of a plan, after it has survived narrowing. */
|
|
62
|
+
export interface PlanStep {
|
|
63
|
+
title: string;
|
|
64
|
+
tag: string;
|
|
65
|
+
evidence: Evidence[];
|
|
66
|
+
/**
|
|
67
|
+
* WHAT THIS STEP CLAIMS TO SERVE — the model's item→requirement mapping.
|
|
68
|
+
*
|
|
69
|
+
* ⚠️ `unknown` ON PURPOSE, and the same convention the server's
|
|
70
|
+
* `SetItemRequirementsInput.serves` already uses: `servedRequirementTrouble`
|
|
71
|
+
* (requirement-receipt.ts) is the ONLY thing that says this is a claim. A
|
|
72
|
+
* parser that pre-filtered it to well-formed links would become a second
|
|
73
|
+
* authority on what a claim is, and the two would drift.
|
|
74
|
+
*
|
|
75
|
+
* ⚠️ A MALFORMED `serves` NEVER REFUSES THE STEP. The step is the work; the
|
|
76
|
+
* claim is provenance about the work. Losing a real plan step because a model
|
|
77
|
+
* mis-shaped an optional field would be the expensive half of the trade.
|
|
78
|
+
*/
|
|
79
|
+
serves?: unknown;
|
|
80
|
+
}
|
|
81
|
+
export type PlanExtract =
|
|
82
|
+
/**
|
|
83
|
+
* `malformed` counts steps that were PRESENT and unreadable, as distinct from
|
|
84
|
+
* a plan that legitimately proposed none.
|
|
85
|
+
*
|
|
86
|
+
* Without it the two are the same answer — `ok: true` with no steps — and the
|
|
87
|
+
* caller cannot tell "the compiler read the goal and had nothing to add" from
|
|
88
|
+
* "the compiler answered in a shape nobody could parse". They deserve
|
|
89
|
+
* opposite treatment: the first is a real plan and spends its revision, the
|
|
90
|
+
* second is a failure and must not.
|
|
91
|
+
*/
|
|
92
|
+
{
|
|
93
|
+
ok: true;
|
|
94
|
+
steps: PlanStep[];
|
|
95
|
+
malformed: number;
|
|
96
|
+
} | {
|
|
97
|
+
ok: false;
|
|
98
|
+
steps: [];
|
|
99
|
+
reason: string;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* The stable identity of a step within one goal version.
|
|
103
|
+
*
|
|
104
|
+
* The title, normalised. Two steps that say the same thing ARE the same step,
|
|
105
|
+
* and a plan that lists one twice should collapse rather than produce two
|
|
106
|
+
* items — which this makes automatic, because they derive the same id.
|
|
107
|
+
*
|
|
108
|
+
* NOT the array position: reordering a plan does not change what its steps
|
|
109
|
+
* are, and position-keyed ids would make a reordered identical plan into a
|
|
110
|
+
* second, duplicate one. The model does not get to choose the id either — it
|
|
111
|
+
* chooses words, and the id is a hash of them.
|
|
112
|
+
*
|
|
113
|
+
* A consequence worth stating plainly: the id is deterministic given the PLAN,
|
|
114
|
+
* not given the goal. Re-running the agent may word a step differently and so
|
|
115
|
+
* produce a different id. That is why compilation is skipped entirely when the
|
|
116
|
+
* goal already owns work, rather than relying on the id alone to deduplicate
|
|
117
|
+
* across two separate reasoning calls.
|
|
118
|
+
*/
|
|
119
|
+
export declare function stepKey(title: string): string;
|
|
120
|
+
/**
|
|
121
|
+
* The id a compiled step will have.
|
|
122
|
+
*
|
|
123
|
+
* Derived, so materialising the same plan twice writes the same rows and the
|
|
124
|
+
* second write is a no-op rather than a twin. The goal AND its version are in
|
|
125
|
+
* the seed: a goal whose wording changed is a different intention, and its
|
|
126
|
+
* steps must not silently reuse the previous version's items.
|
|
127
|
+
*/
|
|
128
|
+
export declare function compiledItemId(goalId: string, goalVersion: number, key: string): string;
|
|
129
|
+
/**
|
|
130
|
+
* The id a compiled step will have, in a plan that is not the first one.
|
|
131
|
+
*
|
|
132
|
+
* A SEPARATE NAMESPACE, and that is the whole point. `seedOf` is
|
|
133
|
+
* `JSON.stringify` over the entire parts array, so adding a fifth element to
|
|
134
|
+
* the tuple above would change every id it has ever produced — re-identifying
|
|
135
|
+
* revision 1 for every goal already in flight, and breaking the convergence
|
|
136
|
+
* that makes a crash between compiling and materialising cost nothing. Revision
|
|
137
|
+
* 1 therefore keeps the four-part seed exactly, byte for byte, for ever.
|
|
138
|
+
*
|
|
139
|
+
* Revisions after the first get their own domain tag. Two consequences, both
|
|
140
|
+
* wanted: a step worded identically in revision 1 and revision 2 is two rows,
|
|
141
|
+
* so the second attempt starts with its own state and its own attempts rather
|
|
142
|
+
* than silently reusing a `closed` row nothing can pick; and a retry of
|
|
143
|
+
* revision 2 converges on the same ids as revision 2, so a crash mid-write
|
|
144
|
+
* lands what is missing and nothing else.
|
|
145
|
+
*/
|
|
146
|
+
export declare function compiledItemRevisionId(goalId: string, goalVersion: number, revision: number, key: string): string;
|
|
147
|
+
/**
|
|
148
|
+
* The id of the row that records a revision happened at all.
|
|
149
|
+
*
|
|
150
|
+
* Its own domain tag, so it can never collide with a step: a plan is free to
|
|
151
|
+
* contain a step worded like anything, including the marker's own title.
|
|
152
|
+
*/
|
|
153
|
+
export declare function planMarkerId(goalId: string, goalVersion: number, revision: number): string;
|
|
154
|
+
/**
|
|
155
|
+
* A durable receipt that revision R was materialised, whatever it contained.
|
|
156
|
+
*
|
|
157
|
+
* WHY THIS EXISTS. The current revision is read back as the highest one among
|
|
158
|
+
* the goal's own compiled rows, and that is the only home for it that fails
|
|
159
|
+
* closed: if a stale writer clobbers queue.json, the revision number and the
|
|
160
|
+
* plan it counts vanish in the same rename, so the next Start sees the earlier
|
|
161
|
+
* revision and re-materialises THAT one rather than skipping ahead. Budget and
|
|
162
|
+
* work are lost together or not at all.
|
|
163
|
+
*
|
|
164
|
+
* But a plan can legitimately contain no steps — the compiler answers "none"
|
|
165
|
+
* when it thinks the goal is met, and a timed-out compilation produces nothing
|
|
166
|
+
* either. Without a row, such a revision would leave no trace, the budget would
|
|
167
|
+
* never be spent, and the same empty attempt could be made for ever. This is
|
|
168
|
+
* that row.
|
|
169
|
+
*
|
|
170
|
+
* It is born `closed`, which is doing three jobs at once: `releaseOnAbandon`
|
|
171
|
+
* keeps a closed row rather than un-owning it, so the receipt survives an
|
|
172
|
+
* abandonment that frees everything else; nothing picks it, because `isPickable`
|
|
173
|
+
* rejects it; and nothing verifies it, because the verify pass only looks at
|
|
174
|
+
* drafts. It can never be `done`, so it can never make `workLeft` say a goal
|
|
175
|
+
* finished when nothing did.
|
|
176
|
+
*/
|
|
177
|
+
export declare function planMarker(ctx: {
|
|
178
|
+
goalId: string;
|
|
179
|
+
goalVersion: number;
|
|
180
|
+
revision: number;
|
|
181
|
+
projectId: string;
|
|
182
|
+
orderKey: string;
|
|
183
|
+
}): Omit<Item, 'version'>;
|
|
184
|
+
/**
|
|
185
|
+
* Whether this row IS the receipt for its own goal, version and revision.
|
|
186
|
+
*
|
|
187
|
+
* THE ONE PREDICATE, because asking it by eye has now gone wrong twice.
|
|
188
|
+
*
|
|
189
|
+
* Both times the test was `tag === 'goal'`, and both times it looked like a
|
|
190
|
+
* marker signature and was not: `'goal'` is what `normalizeStep` gives any plan
|
|
191
|
+
* step whose tag the model omitted, which it documents as legitimate. The first
|
|
192
|
+
* occurrence made KEY 2 skip genuinely delivered work and put completion out of
|
|
193
|
+
* reach; the second hid a step that had FAILED from the evaluator, which then
|
|
194
|
+
* said the goal was met. A value cannot distinguish these rows. Only the
|
|
195
|
+
* derived id can.
|
|
196
|
+
*
|
|
197
|
+
* Deliberately state-blind. `goal-ownership` has a sibling that also requires
|
|
198
|
+
* `state === 'closed'`, which is right where it lives — it guards the rule that
|
|
199
|
+
* rows are born `draft` — and wrong for callers asking "is this row work?",
|
|
200
|
+
* where a receipt in an unexpected state is more suspect, not less.
|
|
201
|
+
*/
|
|
202
|
+
export declare function isPlanMarker(item: Pick<Item, 'id' | 'goalId' | 'compiledForGoalVersion' | 'compiledForPlanRevision'>): boolean;
|
|
203
|
+
/**
|
|
204
|
+
* The id for either, chosen by the revision alone.
|
|
205
|
+
*
|
|
206
|
+
* Callers never pick the namespace themselves — the revision is the only input,
|
|
207
|
+
* and it is assigned by the machine. A model cannot reach this.
|
|
208
|
+
*/
|
|
209
|
+
export declare function planItemId(goalId: string, goalVersion: number, revision: number, key: string): string;
|
|
210
|
+
/**
|
|
211
|
+
* Pull the plan out of what the agent said.
|
|
212
|
+
*
|
|
213
|
+
* Scans from the END, like `extractFindings`, and for the same hard-won
|
|
214
|
+
* reason: an agent often echoes the example object from its own prompt before
|
|
215
|
+
* producing the real one, and taking the first match reads the example back as
|
|
216
|
+
* data. Tries the whole transcript as one document first, because a
|
|
217
|
+
* pretty-printed answer spans many lines.
|
|
218
|
+
*
|
|
219
|
+
* Anything malformed is DROPPED rather than thrown on. A plan is a proposal;
|
|
220
|
+
* the parts of it that arrive unreadable are simply not proposals.
|
|
221
|
+
*/
|
|
222
|
+
export declare function extractPlan(transcript: string): PlanExtract;
|
|
223
|
+
/**
|
|
224
|
+
* One step, narrowed — or `null` when what arrived is not one.
|
|
225
|
+
*
|
|
226
|
+
* A title is required and everything else is optional, which is the one place
|
|
227
|
+
* this deliberately differs from `normalizeFinding`. A scan finding with no
|
|
228
|
+
* evidence is a guess about code that already exists, and scanning drops it. A
|
|
229
|
+
* plan step is work that does not exist yet: "add a spec for the empty-name
|
|
230
|
+
* case" cites nothing because the spec is the thing being asked for. Evidence
|
|
231
|
+
* is accepted and passed on where the model can give it — it makes the verify
|
|
232
|
+
* pass cheaper and likelier to confirm — but requiring it would refuse most of
|
|
233
|
+
* what a compiler legitimately produces.
|
|
234
|
+
*/
|
|
235
|
+
export declare function normalizeStep(v: unknown): PlanStep | null;
|
|
236
|
+
/** What a compilation asks for, and what it is allowed to know. */
|
|
237
|
+
export interface CompileGoalInput {
|
|
238
|
+
goalId: string;
|
|
239
|
+
goalVersion: number;
|
|
240
|
+
/** The user's own wording. Never rewritten, never summarised. */
|
|
241
|
+
goalText: string;
|
|
242
|
+
projectId: string;
|
|
243
|
+
/** Names the plan may cite. Kept short; the agent can read the repo itself. */
|
|
244
|
+
projectName: string;
|
|
245
|
+
/**
|
|
246
|
+
* What this project has already established, as labelled prose.
|
|
247
|
+
*
|
|
248
|
+
* The audit that opened Phase 11 found this function received NOTHING from
|
|
249
|
+
* past runs — five fields, none of them history — so a plan was recompiled
|
|
250
|
+
* from the goal text every time and could propose an approach that had
|
|
251
|
+
* already failed three times. This is that gap.
|
|
252
|
+
*
|
|
253
|
+
* Optional because a project with no memory yet must plan exactly as it did
|
|
254
|
+
* before, and absent means absent rather than "we looked and found nothing".
|
|
255
|
+
*/
|
|
256
|
+
readonly memory?: string | null;
|
|
257
|
+
/**
|
|
258
|
+
* The task packet (M2-3): the requirements a person linked this goal to,
|
|
259
|
+
* quoted verbatim as data with their standing, the other constraints of those
|
|
260
|
+
* documents, the tree the standing was measured at, and the links that could
|
|
261
|
+
* not be read. Absent or empty renders exactly the prompt of before.
|
|
262
|
+
*/
|
|
263
|
+
readonly packet?: TaskPacket;
|
|
264
|
+
/**
|
|
265
|
+
* The CHECKS a claim may cite — this project's gate step names, which ARE
|
|
266
|
+
* its frozen acceptance map (`ServedRequirement.provenBy`).
|
|
267
|
+
*
|
|
268
|
+
* 🔴 THE PLAN COULD NEVER CLAIM A REQUIREMENT, BECAUSE NOBODY ASKED IT TO.
|
|
269
|
+
* `PlanStep.serves` is parsed and carried, `produceClaims` validates it, and
|
|
270
|
+
* the lane builds receipts from it — but the prompt's answer shape was
|
|
271
|
+
* `{"title","tag","evidence"}` and never named `serves`, and a valid
|
|
272
|
+
* serving REQUIRES a `provenBy` naming a gate step the prompt never listed.
|
|
273
|
+
* MEASURED, LIVE, 2026-09-24 (LIVE-2): two compiles, four steps each, zero
|
|
274
|
+
* claims, `servings: []` recorded twice — and the coverage gate can only
|
|
275
|
+
* ever withhold what no item claims.
|
|
276
|
+
*
|
|
277
|
+
* ⚠️ ASKED ONLY WITH A PACKET AND AT LEAST ONE CHECK. A claim names a linked
|
|
278
|
+
* requirement and a check; with either list empty there is nothing a valid
|
|
279
|
+
* claim could say, and the prompt is exactly the prompt of before.
|
|
280
|
+
*/
|
|
281
|
+
readonly checks?: readonly string[];
|
|
282
|
+
}
|
|
283
|
+
/** Why there was no plan: the transport gave up, the transport failed, or the answer could not be read as a plan. */
|
|
284
|
+
export type CompileFailure = 'timed-out' | 'failed' | 'unreadable';
|
|
285
|
+
export type CompileOutcome =
|
|
286
|
+
/** `requestDigest`: sha256 of the prompt as asked — the compile record's provenance (M3-2). The prompt itself is not kept. */
|
|
287
|
+
{
|
|
288
|
+
ok: true;
|
|
289
|
+
steps: PlanStep[];
|
|
290
|
+
dropped: number;
|
|
291
|
+
malformed: number;
|
|
292
|
+
transcript: string;
|
|
293
|
+
requestDigest: string;
|
|
294
|
+
} | {
|
|
295
|
+
ok: false;
|
|
296
|
+
reason: string;
|
|
297
|
+
failure: CompileFailure;
|
|
298
|
+
transcript: string;
|
|
299
|
+
requestDigest: string;
|
|
300
|
+
};
|
|
301
|
+
export interface CompileDeps {
|
|
302
|
+
invoke: AgentInvoke;
|
|
303
|
+
timeoutMs?: number;
|
|
304
|
+
maxSteps?: number;
|
|
305
|
+
}
|
|
306
|
+
export declare function buildCompilePrompt(input: CompileGoalInput, maxSteps?: number): string;
|
|
307
|
+
/**
|
|
308
|
+
* Compile one goal into candidate steps.
|
|
309
|
+
*
|
|
310
|
+
* ONE agent call. Not one per step, not a loop that refines — a plan that needs
|
|
311
|
+
* several calls to settle is a plan whose cost nobody can predict, and this runs
|
|
312
|
+
* inside the window a start-run has to be acknowledged in.
|
|
313
|
+
*/
|
|
314
|
+
export declare function compileGoal(input: CompileGoalInput, deps: CompileDeps): Promise<CompileOutcome>;
|
|
315
|
+
/**
|
|
316
|
+
* Turn a compiled plan into items ready to be written.
|
|
317
|
+
*
|
|
318
|
+
* Every one is born owned by the goal that produced it. That is forced rather
|
|
319
|
+
* than chosen: selection is symmetric, so an unowned compiled item would be
|
|
320
|
+
* invisible to the very run that compiled it AND visible to an unbound run that
|
|
321
|
+
* knows nothing about the goal. Both are wrong.
|
|
322
|
+
*
|
|
323
|
+
* Every one is born `draft`, like everything else in this system. A compiled
|
|
324
|
+
* step is a claim that some work is worth doing; the verify pass is what turns
|
|
325
|
+
* a claim into something a round may pick.
|
|
326
|
+
*/
|
|
327
|
+
export declare function planToItems(steps: readonly PlanStep[], ctx: {
|
|
328
|
+
goalId: string;
|
|
329
|
+
goalVersion: number;
|
|
330
|
+
projectId: string;
|
|
331
|
+
orderKeyAt: (i: number) => string;
|
|
332
|
+
/**
|
|
333
|
+
* Which plan this is for that version. Absent is the first one, which is
|
|
334
|
+
* what every pre-6C caller means and what keeps their ids unchanged.
|
|
335
|
+
*
|
|
336
|
+
* ASSIGNED BY THE MACHINE. The compiler is told which revision it is
|
|
337
|
+
* producing; it does not get to choose, and no part of the model's answer
|
|
338
|
+
* reaches this number.
|
|
339
|
+
*/
|
|
340
|
+
planRevision?: number;
|
|
341
|
+
}): Omit<Item, 'version'>[];
|
|
342
|
+
//# sourceMappingURL=goal-compile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"goal-compile.d.ts","sourceRoot":"","sources":["../src/goal-compile.ts"],"names":[],"mappings":"AACA,OAAO,EAA2E,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAClJ,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,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