codex-orchestrator 0.1.51 → 2.0.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/CHANGELOG.md +21 -0
- package/README.md +45 -389
- package/dist/src/index.d.ts +16 -46
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +8 -24
- package/dist/src/index.js.map +1 -1
- package/dist/src/v2/acceptance-proof.d.ts +111 -0
- package/dist/src/v2/acceptance-proof.d.ts.map +1 -0
- package/dist/src/v2/acceptance-proof.js +427 -0
- package/dist/src/v2/acceptance-proof.js.map +1 -0
- package/dist/src/v2/adapters/command.d.ts.map +1 -0
- package/dist/src/v2/adapters/command.js.map +1 -0
- package/dist/src/v2/adapters/durable-atomic-file.d.ts.map +1 -0
- package/dist/src/v2/adapters/durable-atomic-file.js.map +1 -0
- package/dist/src/v2/adapters/gh-cli.d.ts.map +1 -0
- package/dist/src/v2/adapters/gh-cli.js.map +1 -0
- package/dist/src/v2/adapters/gh-issue-adapter.d.ts.map +1 -0
- package/dist/src/v2/adapters/gh-issue-adapter.js.map +1 -0
- package/dist/src/v2/adapters/gh-pull-request-adapter.d.ts.map +1 -0
- package/dist/src/v2/adapters/gh-pull-request-adapter.js.map +1 -0
- package/dist/src/v2/adapters/issues.d.ts.map +1 -0
- package/dist/src/v2/adapters/issues.js.map +1 -0
- package/dist/src/v2/adapters/mission-coordinator-lock.d.ts.map +1 -0
- package/dist/src/v2/adapters/mission-coordinator-lock.js.map +1 -0
- package/dist/src/v2/adapters/path-policy.d.ts.map +1 -0
- package/dist/src/v2/adapters/path-policy.js.map +1 -0
- package/dist/src/v2/adapters/pull-requests.d.ts.map +1 -0
- package/dist/src/v2/adapters/pull-requests.js.map +1 -0
- package/dist/src/v2/adapters/target-activity-fence.d.ts.map +1 -0
- package/dist/src/{runner → v2/adapters}/target-activity-fence.js +1 -1
- package/dist/src/v2/adapters/target-activity-fence.js.map +1 -0
- package/dist/src/{git → v2/adapters}/worktree.d.ts +1 -1
- package/dist/src/v2/adapters/worktree.d.ts.map +1 -0
- package/dist/src/{git → v2/adapters}/worktree.js +2 -2
- package/dist/src/v2/adapters/worktree.js.map +1 -0
- package/dist/src/v2/atomic-store.d.ts +36 -0
- package/dist/src/v2/atomic-store.d.ts.map +1 -0
- package/dist/src/v2/atomic-store.js +328 -0
- package/dist/src/v2/atomic-store.js.map +1 -0
- package/dist/src/v2/candidate-cli.d.ts +22 -0
- package/dist/src/v2/candidate-cli.d.ts.map +1 -0
- package/dist/src/v2/candidate-cli.js +161 -0
- package/dist/src/v2/candidate-cli.js.map +1 -0
- package/dist/src/v2/checked-change.d.ts +49 -0
- package/dist/src/v2/checked-change.d.ts.map +1 -0
- package/dist/src/v2/checked-change.js +139 -0
- package/dist/src/v2/checked-change.js.map +1 -0
- package/dist/src/v2/cli-contract.d.ts +8 -0
- package/dist/src/v2/cli-contract.d.ts.map +1 -0
- package/dist/src/v2/cli-contract.js +32 -0
- package/dist/src/v2/cli-contract.js.map +1 -0
- package/dist/src/v2/codex-process.d.ts +71 -0
- package/dist/src/v2/codex-process.d.ts.map +1 -0
- package/dist/src/v2/codex-process.js +404 -0
- package/dist/src/v2/codex-process.js.map +1 -0
- package/dist/src/v2/config.d.ts +45 -0
- package/dist/src/v2/config.d.ts.map +1 -0
- package/dist/src/v2/config.js +139 -0
- package/dist/src/v2/config.js.map +1 -0
- package/dist/src/v2/containment.d.ts +55 -0
- package/dist/src/v2/containment.d.ts.map +1 -0
- package/dist/src/v2/containment.js +370 -0
- package/dist/src/v2/containment.js.map +1 -0
- package/dist/src/v2/implementation-report.d.ts +18 -0
- package/dist/src/v2/implementation-report.d.ts.map +1 -0
- package/dist/src/v2/implementation-report.js +147 -0
- package/dist/src/v2/implementation-report.js.map +1 -0
- package/dist/src/v2/legacy-cutover.d.ts +52 -0
- package/dist/src/v2/legacy-cutover.d.ts.map +1 -0
- package/dist/src/v2/legacy-cutover.js +87 -0
- package/dist/src/v2/legacy-cutover.js.map +1 -0
- package/dist/src/v2/mobile-lease.d.ts +97 -0
- package/dist/src/v2/mobile-lease.d.ts.map +1 -0
- package/dist/src/v2/mobile-lease.js +253 -0
- package/dist/src/v2/mobile-lease.js.map +1 -0
- package/dist/src/v2/proof-report.d.ts +118 -0
- package/dist/src/v2/proof-report.d.ts.map +1 -0
- package/dist/src/v2/proof-report.js +703 -0
- package/dist/src/v2/proof-report.js.map +1 -0
- package/dist/src/v2/proof-store.d.ts +42 -0
- package/dist/src/v2/proof-store.d.ts.map +1 -0
- package/dist/src/v2/proof-store.js +180 -0
- package/dist/src/v2/proof-store.js.map +1 -0
- package/dist/src/v2/report-envelope.d.ts +4 -0
- package/dist/src/v2/report-envelope.d.ts.map +1 -0
- package/dist/src/v2/report-envelope.js +46 -0
- package/dist/src/v2/report-envelope.js.map +1 -0
- package/dist/src/v2/run-issue.d.ts +213 -0
- package/dist/src/v2/run-issue.d.ts.map +1 -0
- package/dist/src/v2/run-issue.js +906 -0
- package/dist/src/v2/run-issue.js.map +1 -0
- package/dist/src/v2/run-store.d.ts +136 -0
- package/dist/src/v2/run-store.d.ts.map +1 -0
- package/dist/src/v2/run-store.js +346 -0
- package/dist/src/v2/run-store.js.map +1 -0
- package/dist/src/v2/runtime-assets.d.ts +31 -0
- package/dist/src/v2/runtime-assets.d.ts.map +1 -0
- package/dist/src/v2/runtime-assets.js +473 -0
- package/dist/src/v2/runtime-assets.js.map +1 -0
- package/dist/src/v2/runtime.d.ts +137 -0
- package/dist/src/v2/runtime.d.ts.map +1 -0
- package/dist/src/v2/runtime.js +847 -0
- package/dist/src/v2/runtime.js.map +1 -0
- package/dist/src/v2/setup-cli.d.ts +5 -0
- package/dist/src/v2/setup-cli.d.ts.map +1 -0
- package/dist/src/v2/setup-cli.js +83 -0
- package/dist/src/v2/setup-cli.js.map +1 -0
- package/dist/src/v2/setup-runtime.d.ts +6 -0
- package/dist/src/v2/setup-runtime.d.ts.map +1 -0
- package/dist/src/v2/setup-runtime.js +213 -0
- package/dist/src/v2/setup-runtime.js.map +1 -0
- package/dist/src/v2/setup-store.d.ts +19 -0
- package/dist/src/v2/setup-store.d.ts.map +1 -0
- package/dist/src/v2/setup-store.js +208 -0
- package/dist/src/v2/setup-store.js.map +1 -0
- package/dist/src/v2/setup.d.ts +147 -0
- package/dist/src/v2/setup.d.ts.map +1 -0
- package/dist/src/v2/setup.js +529 -0
- package/dist/src/v2/setup.js.map +1 -0
- package/docs/deep-dive.md +54 -803
- package/internal-skills/acceptance-proof/SKILL.md +14 -0
- package/internal-skills/acceptance-proof/references/android.md +14 -0
- package/internal-skills/acceptance-proof/references/browser.md +13 -0
- package/internal-skills/acceptance-proof/references/ios.md +14 -0
- package/internal-skills/acceptance-proof/tools/android-lease.mjs +280 -0
- package/internal-skills/acceptance-proof/tools/ios-lease.mjs +288 -0
- package/internal-skills/agent-auto/SKILL.md +14 -0
- package/package.json +11 -18
- package/bridge-runtime.json +0 -2719
- package/dist/src/bridge-runtime.d.ts +0 -17
- package/dist/src/bridge-runtime.d.ts.map +0 -1
- package/dist/src/bridge-runtime.js +0 -170
- package/dist/src/bridge-runtime.js.map +0 -1
- package/dist/src/cli.d.ts +0 -3
- package/dist/src/cli.d.ts.map +0 -1
- package/dist/src/cli.js +0 -569
- package/dist/src/cli.js.map +0 -1
- package/dist/src/codex/command-adapter.d.ts +0 -47
- package/dist/src/codex/command-adapter.d.ts.map +0 -1
- package/dist/src/codex/command-adapter.js +0 -169
- package/dist/src/codex/command-adapter.js.map +0 -1
- package/dist/src/codex/mobile-device-guard.d.ts +0 -7
- package/dist/src/codex/mobile-device-guard.d.ts.map +0 -1
- package/dist/src/codex/mobile-device-guard.js +0 -63
- package/dist/src/codex/mobile-device-guard.js.map +0 -1
- package/dist/src/config/constants.d.ts +0 -6
- package/dist/src/config/constants.d.ts.map +0 -1
- package/dist/src/config/constants.js +0 -19
- package/dist/src/config/constants.js.map +0 -1
- package/dist/src/config/schema.d.ts +0 -234
- package/dist/src/config/schema.d.ts.map +0 -1
- package/dist/src/config/schema.js +0 -673
- package/dist/src/config/schema.js.map +0 -1
- package/dist/src/fs/durable-atomic-file.d.ts.map +0 -1
- package/dist/src/fs/durable-atomic-file.js.map +0 -1
- package/dist/src/git/base-branch.d.ts +0 -26
- package/dist/src/git/base-branch.d.ts.map +0 -1
- package/dist/src/git/base-branch.js +0 -45
- package/dist/src/git/base-branch.js.map +0 -1
- package/dist/src/git/worktree.d.ts.map +0 -1
- package/dist/src/git/worktree.js.map +0 -1
- package/dist/src/github/gh-cli.d.ts.map +0 -1
- package/dist/src/github/gh-cli.js.map +0 -1
- package/dist/src/github/gh-issue-adapter.d.ts.map +0 -1
- package/dist/src/github/gh-issue-adapter.js.map +0 -1
- package/dist/src/github/gh-pull-request-adapter.d.ts.map +0 -1
- package/dist/src/github/gh-pull-request-adapter.js.map +0 -1
- package/dist/src/github/issues.d.ts.map +0 -1
- package/dist/src/github/issues.js.map +0 -1
- package/dist/src/github/pull-requests.d.ts.map +0 -1
- package/dist/src/github/pull-requests.js.map +0 -1
- package/dist/src/package-info.d.ts +0 -6
- package/dist/src/package-info.d.ts.map +0 -1
- package/dist/src/package-info.js +0 -13
- package/dist/src/package-info.js.map +0 -1
- package/dist/src/path-policy.d.ts.map +0 -1
- package/dist/src/path-policy.js.map +0 -1
- package/dist/src/process/command.d.ts.map +0 -1
- package/dist/src/process/command.js.map +0 -1
- package/dist/src/review-handoff.d.ts +0 -3
- package/dist/src/review-handoff.d.ts.map +0 -1
- package/dist/src/review-handoff.js +0 -8
- package/dist/src/review-handoff.js.map +0 -1
- package/dist/src/runner/acceptance-proof-loop.d.ts +0 -97
- package/dist/src/runner/acceptance-proof-loop.d.ts.map +0 -1
- package/dist/src/runner/acceptance-proof-loop.js +0 -404
- package/dist/src/runner/acceptance-proof-loop.js.map +0 -1
- package/dist/src/runner/acceptance-proof-runner.d.ts +0 -24
- package/dist/src/runner/acceptance-proof-runner.d.ts.map +0 -1
- package/dist/src/runner/acceptance-proof-runner.js +0 -121
- package/dist/src/runner/acceptance-proof-runner.js.map +0 -1
- package/dist/src/runner/acceptance-proof.d.ts +0 -189
- package/dist/src/runner/acceptance-proof.d.ts.map +0 -1
- package/dist/src/runner/acceptance-proof.js +0 -594
- package/dist/src/runner/acceptance-proof.js.map +0 -1
- package/dist/src/runner/agent-attempt.d.ts +0 -105
- package/dist/src/runner/agent-attempt.d.ts.map +0 -1
- package/dist/src/runner/agent-attempt.js +0 -245
- package/dist/src/runner/agent-attempt.js.map +0 -1
- package/dist/src/runner/android-visual-proof-command.d.ts +0 -26
- package/dist/src/runner/android-visual-proof-command.d.ts.map +0 -1
- package/dist/src/runner/android-visual-proof-command.js +0 -592
- package/dist/src/runner/android-visual-proof-command.js.map +0 -1
- package/dist/src/runner/auto-visual-proof-command.d.ts +0 -15
- package/dist/src/runner/auto-visual-proof-command.d.ts.map +0 -1
- package/dist/src/runner/auto-visual-proof-command.js +0 -64
- package/dist/src/runner/auto-visual-proof-command.js.map +0 -1
- package/dist/src/runner/browser-proof-contract.d.ts +0 -134
- package/dist/src/runner/browser-proof-contract.d.ts.map +0 -1
- package/dist/src/runner/browser-proof-contract.js +0 -400
- package/dist/src/runner/browser-proof-contract.js.map +0 -1
- package/dist/src/runner/browser-visual-proof-command.d.ts +0 -101
- package/dist/src/runner/browser-visual-proof-command.d.ts.map +0 -1
- package/dist/src/runner/browser-visual-proof-command.js +0 -532
- package/dist/src/runner/browser-visual-proof-command.js.map +0 -1
- package/dist/src/runner/command-utils.d.ts +0 -15
- package/dist/src/runner/command-utils.d.ts.map +0 -1
- package/dist/src/runner/command-utils.js +0 -228
- package/dist/src/runner/command-utils.js.map +0 -1
- package/dist/src/runner/completion-report.d.ts +0 -121
- package/dist/src/runner/completion-report.d.ts.map +0 -1
- package/dist/src/runner/completion-report.js +0 -381
- package/dist/src/runner/completion-report.js.map +0 -1
- package/dist/src/runner/context-snapshot.d.ts +0 -33
- package/dist/src/runner/context-snapshot.d.ts.map +0 -1
- package/dist/src/runner/context-snapshot.js +0 -99
- package/dist/src/runner/context-snapshot.js.map +0 -1
- package/dist/src/runner/daemon-command.d.ts +0 -30
- package/dist/src/runner/daemon-command.d.ts.map +0 -1
- package/dist/src/runner/daemon-command.js +0 -262
- package/dist/src/runner/daemon-command.js.map +0 -1
- package/dist/src/runner/doctor-command.d.ts +0 -41
- package/dist/src/runner/doctor-command.d.ts.map +0 -1
- package/dist/src/runner/doctor-command.js +0 -177
- package/dist/src/runner/doctor-command.js.map +0 -1
- package/dist/src/runner/durable-run-summary.d.ts +0 -80
- package/dist/src/runner/durable-run-summary.d.ts.map +0 -1
- package/dist/src/runner/durable-run-summary.js +0 -200
- package/dist/src/runner/durable-run-summary.js.map +0 -1
- package/dist/src/runner/flutter-sdk-discovery.d.ts +0 -5
- package/dist/src/runner/flutter-sdk-discovery.d.ts.map +0 -1
- package/dist/src/runner/flutter-sdk-discovery.js +0 -103
- package/dist/src/runner/flutter-sdk-discovery.js.map +0 -1
- package/dist/src/runner/fresh-context-review.d.ts +0 -22
- package/dist/src/runner/fresh-context-review.d.ts.map +0 -1
- package/dist/src/runner/fresh-context-review.js +0 -177
- package/dist/src/runner/fresh-context-review.js.map +0 -1
- package/dist/src/runner/handoff-evidence.d.ts +0 -141
- package/dist/src/runner/handoff-evidence.d.ts.map +0 -1
- package/dist/src/runner/handoff-evidence.js +0 -543
- package/dist/src/runner/handoff-evidence.js.map +0 -1
- package/dist/src/runner/hygiene-cleanup.d.ts +0 -15
- package/dist/src/runner/hygiene-cleanup.d.ts.map +0 -1
- package/dist/src/runner/hygiene-cleanup.js +0 -25
- package/dist/src/runner/hygiene-cleanup.js.map +0 -1
- package/dist/src/runner/ios-visual-proof-command.d.ts +0 -25
- package/dist/src/runner/ios-visual-proof-command.d.ts.map +0 -1
- package/dist/src/runner/ios-visual-proof-command.js +0 -353
- package/dist/src/runner/ios-visual-proof-command.js.map +0 -1
- package/dist/src/runner/issue-state-machine.d.ts +0 -39
- package/dist/src/runner/issue-state-machine.d.ts.map +0 -1
- package/dist/src/runner/issue-state-machine.js +0 -124
- package/dist/src/runner/issue-state-machine.js.map +0 -1
- package/dist/src/runner/issue-tree.d.ts +0 -65
- package/dist/src/runner/issue-tree.d.ts.map +0 -1
- package/dist/src/runner/issue-tree.js +0 -474
- package/dist/src/runner/issue-tree.js.map +0 -1
- package/dist/src/runner/lifecycle-events.d.ts +0 -44
- package/dist/src/runner/lifecycle-events.d.ts.map +0 -1
- package/dist/src/runner/lifecycle-events.js +0 -108
- package/dist/src/runner/lifecycle-events.js.map +0 -1
- package/dist/src/runner/local-execution-session.d.ts +0 -112
- package/dist/src/runner/local-execution-session.d.ts.map +0 -1
- package/dist/src/runner/local-execution-session.js +0 -1064
- package/dist/src/runner/local-execution-session.js.map +0 -1
- package/dist/src/runner/local-state.d.ts +0 -44
- package/dist/src/runner/local-state.d.ts.map +0 -1
- package/dist/src/runner/local-state.js +0 -150
- package/dist/src/runner/local-state.js.map +0 -1
- package/dist/src/runner/mission-activation.d.ts +0 -29
- package/dist/src/runner/mission-activation.d.ts.map +0 -1
- package/dist/src/runner/mission-activation.js +0 -54
- package/dist/src/runner/mission-activation.js.map +0 -1
- package/dist/src/runner/mission-agent-broker.d.ts +0 -53
- package/dist/src/runner/mission-agent-broker.d.ts.map +0 -1
- package/dist/src/runner/mission-agent-broker.js +0 -182
- package/dist/src/runner/mission-agent-broker.js.map +0 -1
- package/dist/src/runner/mission-cancellation.d.ts +0 -77
- package/dist/src/runner/mission-cancellation.d.ts.map +0 -1
- package/dist/src/runner/mission-cancellation.js +0 -180
- package/dist/src/runner/mission-cancellation.js.map +0 -1
- package/dist/src/runner/mission-canonical-path.d.ts +0 -34
- package/dist/src/runner/mission-canonical-path.d.ts.map +0 -1
- package/dist/src/runner/mission-canonical-path.js +0 -121
- package/dist/src/runner/mission-canonical-path.js.map +0 -1
- package/dist/src/runner/mission-capability-kernel.d.ts +0 -34
- package/dist/src/runner/mission-capability-kernel.d.ts.map +0 -1
- package/dist/src/runner/mission-capability-kernel.js +0 -158
- package/dist/src/runner/mission-capability-kernel.js.map +0 -1
- package/dist/src/runner/mission-check-policy.d.ts +0 -17
- package/dist/src/runner/mission-check-policy.d.ts.map +0 -1
- package/dist/src/runner/mission-check-policy.js +0 -31
- package/dist/src/runner/mission-check-policy.js.map +0 -1
- package/dist/src/runner/mission-coordinator-lock.d.ts.map +0 -1
- package/dist/src/runner/mission-coordinator-lock.js.map +0 -1
- package/dist/src/runner/mission-deployment.d.ts +0 -21
- package/dist/src/runner/mission-deployment.d.ts.map +0 -1
- package/dist/src/runner/mission-deployment.js +0 -108
- package/dist/src/runner/mission-deployment.js.map +0 -1
- package/dist/src/runner/mission-evaluation.d.ts +0 -61
- package/dist/src/runner/mission-evaluation.d.ts.map +0 -1
- package/dist/src/runner/mission-evaluation.js +0 -183
- package/dist/src/runner/mission-evaluation.js.map +0 -1
- package/dist/src/runner/mission-executor-probe.d.ts +0 -10
- package/dist/src/runner/mission-executor-probe.d.ts.map +0 -1
- package/dist/src/runner/mission-executor-probe.js +0 -180
- package/dist/src/runner/mission-executor-probe.js.map +0 -1
- package/dist/src/runner/mission-git-contracts.d.ts +0 -75
- package/dist/src/runner/mission-git-contracts.d.ts.map +0 -1
- package/dist/src/runner/mission-git-contracts.js +0 -201
- package/dist/src/runner/mission-git-contracts.js.map +0 -1
- package/dist/src/runner/mission-git-runtime-owner-ref.d.ts +0 -13
- package/dist/src/runner/mission-git-runtime-owner-ref.d.ts.map +0 -1
- package/dist/src/runner/mission-git-runtime-owner-ref.js +0 -111
- package/dist/src/runner/mission-git-runtime-owner-ref.js.map +0 -1
- package/dist/src/runner/mission-git-transaction.d.ts +0 -97
- package/dist/src/runner/mission-git-transaction.d.ts.map +0 -1
- package/dist/src/runner/mission-git-transaction.js +0 -1009
- package/dist/src/runner/mission-git-transaction.js.map +0 -1
- package/dist/src/runner/mission-identifiers.d.ts +0 -31
- package/dist/src/runner/mission-identifiers.d.ts.map +0 -1
- package/dist/src/runner/mission-identifiers.js +0 -75
- package/dist/src/runner/mission-identifiers.js.map +0 -1
- package/dist/src/runner/mission-input-snapshot.d.ts +0 -21
- package/dist/src/runner/mission-input-snapshot.d.ts.map +0 -1
- package/dist/src/runner/mission-input-snapshot.js +0 -63
- package/dist/src/runner/mission-input-snapshot.js.map +0 -1
- package/dist/src/runner/mission-ownership.d.ts +0 -38
- package/dist/src/runner/mission-ownership.d.ts.map +0 -1
- package/dist/src/runner/mission-ownership.js +0 -88
- package/dist/src/runner/mission-ownership.js.map +0 -1
- package/dist/src/runner/mission-patch-audit.d.ts +0 -21
- package/dist/src/runner/mission-patch-audit.d.ts.map +0 -1
- package/dist/src/runner/mission-patch-audit.js +0 -186
- package/dist/src/runner/mission-patch-audit.js.map +0 -1
- package/dist/src/runner/mission-path-language.d.ts +0 -6
- package/dist/src/runner/mission-path-language.d.ts.map +0 -1
- package/dist/src/runner/mission-path-language.js +0 -106
- package/dist/src/runner/mission-path-language.js.map +0 -1
- package/dist/src/runner/mission-permit-authority.d.ts +0 -26
- package/dist/src/runner/mission-permit-authority.d.ts.map +0 -1
- package/dist/src/runner/mission-permit-authority.js +0 -145
- package/dist/src/runner/mission-permit-authority.js.map +0 -1
- package/dist/src/runner/mission-plan-parent-coordinator.d.ts +0 -87
- package/dist/src/runner/mission-plan-parent-coordinator.d.ts.map +0 -1
- package/dist/src/runner/mission-plan-parent-coordinator.js +0 -441
- package/dist/src/runner/mission-plan-parent-coordinator.js.map +0 -1
- package/dist/src/runner/mission-plan-parent.d.ts +0 -156
- package/dist/src/runner/mission-plan-parent.d.ts.map +0 -1
- package/dist/src/runner/mission-plan-parent.js +0 -589
- package/dist/src/runner/mission-plan-parent.js.map +0 -1
- package/dist/src/runner/mission-process-executor.d.ts +0 -25
- package/dist/src/runner/mission-process-executor.d.ts.map +0 -1
- package/dist/src/runner/mission-process-executor.js +0 -182
- package/dist/src/runner/mission-process-executor.js.map +0 -1
- package/dist/src/runner/mission-publication-git.d.ts +0 -21
- package/dist/src/runner/mission-publication-git.d.ts.map +0 -1
- package/dist/src/runner/mission-publication-git.js +0 -61
- package/dist/src/runner/mission-publication-git.js.map +0 -1
- package/dist/src/runner/mission-publication.d.ts +0 -192
- package/dist/src/runner/mission-publication.d.ts.map +0 -1
- package/dist/src/runner/mission-publication.js +0 -1001
- package/dist/src/runner/mission-publication.js.map +0 -1
- package/dist/src/runner/mission-quarantine-patch-executor.d.ts +0 -29
- package/dist/src/runner/mission-quarantine-patch-executor.d.ts.map +0 -1
- package/dist/src/runner/mission-quarantine-patch-executor.js +0 -121
- package/dist/src/runner/mission-quarantine-patch-executor.js.map +0 -1
- package/dist/src/runner/mission-repository-executor.d.ts +0 -54
- package/dist/src/runner/mission-repository-executor.d.ts.map +0 -1
- package/dist/src/runner/mission-repository-executor.js +0 -192
- package/dist/src/runner/mission-repository-executor.js.map +0 -1
- package/dist/src/runner/mission-repository-observer.d.ts +0 -8
- package/dist/src/runner/mission-repository-observer.d.ts.map +0 -1
- package/dist/src/runner/mission-repository-observer.js +0 -24
- package/dist/src/runner/mission-repository-observer.js.map +0 -1
- package/dist/src/runner/mission-reservations.d.ts +0 -15
- package/dist/src/runner/mission-reservations.d.ts.map +0 -1
- package/dist/src/runner/mission-reservations.js +0 -116
- package/dist/src/runner/mission-reservations.js.map +0 -1
- package/dist/src/runner/mission-resolution-loop.d.ts +0 -172
- package/dist/src/runner/mission-resolution-loop.d.ts.map +0 -1
- package/dist/src/runner/mission-resolution-loop.js +0 -318
- package/dist/src/runner/mission-resolution-loop.js.map +0 -1
- package/dist/src/runner/mission-runtime-owner.d.ts +0 -36
- package/dist/src/runner/mission-runtime-owner.d.ts.map +0 -1
- package/dist/src/runner/mission-runtime-owner.js +0 -174
- package/dist/src/runner/mission-runtime-owner.js.map +0 -1
- package/dist/src/runner/mission-safe-executor.d.ts +0 -96
- package/dist/src/runner/mission-safe-executor.d.ts.map +0 -1
- package/dist/src/runner/mission-safe-executor.js +0 -288
- package/dist/src/runner/mission-safe-executor.js.map +0 -1
- package/dist/src/runner/mission-sandbox.d.ts +0 -16
- package/dist/src/runner/mission-sandbox.d.ts.map +0 -1
- package/dist/src/runner/mission-sandbox.js +0 -91
- package/dist/src/runner/mission-sandbox.js.map +0 -1
- package/dist/src/runner/mission-scheduler.d.ts +0 -57
- package/dist/src/runner/mission-scheduler.d.ts.map +0 -1
- package/dist/src/runner/mission-scheduler.js +0 -205
- package/dist/src/runner/mission-scheduler.js.map +0 -1
- package/dist/src/runner/mission-scope-expansion.d.ts +0 -47
- package/dist/src/runner/mission-scope-expansion.d.ts.map +0 -1
- package/dist/src/runner/mission-scope-expansion.js +0 -147
- package/dist/src/runner/mission-scope-expansion.js.map +0 -1
- package/dist/src/runner/mission-state-machine.d.ts +0 -118
- package/dist/src/runner/mission-state-machine.d.ts.map +0 -1
- package/dist/src/runner/mission-state-machine.js +0 -316
- package/dist/src/runner/mission-state-machine.js.map +0 -1
- package/dist/src/runner/mission-state-store.d.ts +0 -70
- package/dist/src/runner/mission-state-store.d.ts.map +0 -1
- package/dist/src/runner/mission-state-store.js +0 -916
- package/dist/src/runner/mission-state-store.js.map +0 -1
- package/dist/src/runner/mobile-device-lease.d.ts +0 -11
- package/dist/src/runner/mobile-device-lease.d.ts.map +0 -1
- package/dist/src/runner/mobile-device-lease.js +0 -121
- package/dist/src/runner/mobile-device-lease.js.map +0 -1
- package/dist/src/runner/mobile-visual-proof-command.d.ts +0 -17
- package/dist/src/runner/mobile-visual-proof-command.d.ts.map +0 -1
- package/dist/src/runner/mobile-visual-proof-command.js +0 -168
- package/dist/src/runner/mobile-visual-proof-command.js.map +0 -1
- package/dist/src/runner/plan-auto-command.d.ts +0 -35
- package/dist/src/runner/plan-auto-command.d.ts.map +0 -1
- package/dist/src/runner/plan-auto-command.js +0 -918
- package/dist/src/runner/plan-auto-command.js.map +0 -1
- package/dist/src/runner/plan-auto-recovery.d.ts +0 -83
- package/dist/src/runner/plan-auto-recovery.d.ts.map +0 -1
- package/dist/src/runner/plan-auto-recovery.js +0 -303
- package/dist/src/runner/plan-auto-recovery.js.map +0 -1
- package/dist/src/runner/prompt.d.ts +0 -68
- package/dist/src/runner/prompt.d.ts.map +0 -1
- package/dist/src/runner/prompt.js +0 -202
- package/dist/src/runner/prompt.js.map +0 -1
- package/dist/src/runner/proof-routing.d.ts +0 -73
- package/dist/src/runner/proof-routing.d.ts.map +0 -1
- package/dist/src/runner/proof-routing.js +0 -182
- package/dist/src/runner/proof-routing.js.map +0 -1
- package/dist/src/runner/proof-strategy.d.ts +0 -21
- package/dist/src/runner/proof-strategy.d.ts.map +0 -1
- package/dist/src/runner/proof-strategy.js +0 -26
- package/dist/src/runner/proof-strategy.js.map +0 -1
- package/dist/src/runner/recovery.d.ts +0 -25
- package/dist/src/runner/recovery.d.ts.map +0 -1
- package/dist/src/runner/recovery.js +0 -89
- package/dist/src/runner/recovery.js.map +0 -1
- package/dist/src/runner/review-gate-policy.d.ts +0 -13
- package/dist/src/runner/review-gate-policy.d.ts.map +0 -1
- package/dist/src/runner/review-gate-policy.js +0 -241
- package/dist/src/runner/review-gate-policy.js.map +0 -1
- package/dist/src/runner/review-gates.d.ts +0 -28
- package/dist/src/runner/review-gates.d.ts.map +0 -1
- package/dist/src/runner/review-gates.js +0 -328
- package/dist/src/runner/review-gates.js.map +0 -1
- package/dist/src/runner/rework-policy.d.ts +0 -48
- package/dist/src/runner/rework-policy.d.ts.map +0 -1
- package/dist/src/runner/rework-policy.js +0 -150
- package/dist/src/runner/rework-policy.js.map +0 -1
- package/dist/src/runner/run-log.d.ts +0 -18
- package/dist/src/runner/run-log.d.ts.map +0 -1
- package/dist/src/runner/run-log.js +0 -53
- package/dist/src/runner/run-log.js.map +0 -1
- package/dist/src/runner/runner-handoff-decision.d.ts +0 -48
- package/dist/src/runner/runner-handoff-decision.d.ts.map +0 -1
- package/dist/src/runner/runner-handoff-decision.js +0 -93
- package/dist/src/runner/runner-handoff-decision.js.map +0 -1
- package/dist/src/runner/safety.d.ts +0 -14
- package/dist/src/runner/safety.d.ts.map +0 -1
- package/dist/src/runner/safety.js +0 -31
- package/dist/src/runner/safety.js.map +0 -1
- package/dist/src/runner/scope-isolation-policy.d.ts +0 -17
- package/dist/src/runner/scope-isolation-policy.d.ts.map +0 -1
- package/dist/src/runner/scope-isolation-policy.js +0 -82
- package/dist/src/runner/scope-isolation-policy.js.map +0 -1
- package/dist/src/runner/scoped-auto-command.d.ts +0 -90
- package/dist/src/runner/scoped-auto-command.d.ts.map +0 -1
- package/dist/src/runner/scoped-auto-command.js +0 -561
- package/dist/src/runner/scoped-auto-command.js.map +0 -1
- package/dist/src/runner/scoped-recovery.d.ts +0 -78
- package/dist/src/runner/scoped-recovery.d.ts.map +0 -1
- package/dist/src/runner/scoped-recovery.js +0 -601
- package/dist/src/runner/scoped-recovery.js.map +0 -1
- package/dist/src/runner/session-home.d.ts +0 -8
- package/dist/src/runner/session-home.d.ts.map +0 -1
- package/dist/src/runner/session-home.js +0 -18
- package/dist/src/runner/session-home.js.map +0 -1
- package/dist/src/runner/status-command.d.ts +0 -38
- package/dist/src/runner/status-command.d.ts.map +0 -1
- package/dist/src/runner/status-command.js +0 -97
- package/dist/src/runner/status-command.js.map +0 -1
- package/dist/src/runner/target-activity-fence.d.ts.map +0 -1
- package/dist/src/runner/target-activity-fence.js.map +0 -1
- package/dist/src/runner/terminal-outcome.d.ts +0 -58
- package/dist/src/runner/terminal-outcome.d.ts.map +0 -1
- package/dist/src/runner/terminal-outcome.js +0 -73
- package/dist/src/runner/terminal-outcome.js.map +0 -1
- package/dist/src/runner/visual-proof-runner.d.ts +0 -27
- package/dist/src/runner/visual-proof-runner.d.ts.map +0 -1
- package/dist/src/runner/visual-proof-runner.js +0 -379
- package/dist/src/runner/visual-proof-runner.js.map +0 -1
- package/dist/src/runner/worktree-cleanup.d.ts +0 -27
- package/dist/src/runner/worktree-cleanup.d.ts.map +0 -1
- package/dist/src/runner/worktree-cleanup.js +0 -63
- package/dist/src/runner/worktree-cleanup.js.map +0 -1
- package/dist/src/setup/codex-command-resolver.d.ts +0 -10
- package/dist/src/setup/codex-command-resolver.d.ts.map +0 -1
- package/dist/src/setup/codex-command-resolver.js +0 -91
- package/dist/src/setup/codex-command-resolver.js.map +0 -1
- package/dist/src/setup/github-label-adapter.d.ts +0 -13
- package/dist/src/setup/github-label-adapter.d.ts.map +0 -1
- package/dist/src/setup/github-label-adapter.js +0 -28
- package/dist/src/setup/github-label-adapter.js.map +0 -1
- package/dist/src/setup/labels.d.ts +0 -27
- package/dist/src/setup/labels.d.ts.map +0 -1
- package/dist/src/setup/labels.js +0 -42
- package/dist/src/setup/labels.js.map +0 -1
- package/dist/src/setup/project-config.d.ts +0 -24
- package/dist/src/setup/project-config.d.ts.map +0 -1
- package/dist/src/setup/project-config.js +0 -678
- package/dist/src/setup/project-config.js.map +0 -1
- package/dist/src/setup/prompt-sync.d.ts +0 -14
- package/dist/src/setup/prompt-sync.d.ts.map +0 -1
- package/dist/src/setup/prompt-sync.js +0 -228
- package/dist/src/setup/prompt-sync.js.map +0 -1
- package/dist/src/setup/setup-command.d.ts +0 -29
- package/dist/src/setup/setup-command.d.ts.map +0 -1
- package/dist/src/setup/setup-command.js +0 -304
- package/dist/src/setup/setup-command.js.map +0 -1
- package/dist/src/setup/skill-runtime-v2-preparation.d.ts +0 -56
- package/dist/src/setup/skill-runtime-v2-preparation.d.ts.map +0 -1
- package/dist/src/setup/skill-runtime-v2-preparation.js +0 -304
- package/dist/src/setup/skill-runtime-v2-preparation.js.map +0 -1
- package/dist/src/setup/workflows.d.ts +0 -10
- package/dist/src/setup/workflows.d.ts.map +0 -1
- package/dist/src/setup/workflows.js +0 -41
- package/dist/src/setup/workflows.js.map +0 -1
- package/prompts/setup-skill.md +0 -12
- package/prompts/workflows/acceptance-proof.md +0 -29
- package/prompts/workflows/breakdown-review.md +0 -48
- package/prompts/workflows/issue-breakdown.md +0 -155
- package/prompts/workflows/issue-tree-orchestration.md +0 -163
- package/prompts/workflows/prd.md +0 -80
- package/prompts/workflows/scoped-implementation.md +0 -129
- package/prompts/workflows/triage.md +0 -149
- /package/dist/src/{process → v2/adapters}/command.d.ts +0 -0
- /package/dist/src/{process → v2/adapters}/command.js +0 -0
- /package/dist/src/{fs → v2/adapters}/durable-atomic-file.d.ts +0 -0
- /package/dist/src/{fs → v2/adapters}/durable-atomic-file.js +0 -0
- /package/dist/src/{github → v2/adapters}/gh-cli.d.ts +0 -0
- /package/dist/src/{github → v2/adapters}/gh-cli.js +0 -0
- /package/dist/src/{github → v2/adapters}/gh-issue-adapter.d.ts +0 -0
- /package/dist/src/{github → v2/adapters}/gh-issue-adapter.js +0 -0
- /package/dist/src/{github → v2/adapters}/gh-pull-request-adapter.d.ts +0 -0
- /package/dist/src/{github → v2/adapters}/gh-pull-request-adapter.js +0 -0
- /package/dist/src/{github → v2/adapters}/issues.d.ts +0 -0
- /package/dist/src/{github → v2/adapters}/issues.js +0 -0
- /package/dist/src/{runner → v2/adapters}/mission-coordinator-lock.d.ts +0 -0
- /package/dist/src/{runner → v2/adapters}/mission-coordinator-lock.js +0 -0
- /package/dist/src/{path-policy.d.ts → v2/adapters/path-policy.d.ts} +0 -0
- /package/dist/src/{path-policy.js → v2/adapters/path-policy.js} +0 -0
- /package/dist/src/{github → v2/adapters}/pull-requests.d.ts +0 -0
- /package/dist/src/{github → v2/adapters}/pull-requests.js +0 -0
- /package/dist/src/{runner → v2/adapters}/target-activity-fence.d.ts +0 -0
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import type { CodexCommandRunInput, CodexCommandRunResult } from '../codex/command-adapter.js';
|
|
2
|
-
import type { CodexPhase, CodexOrchestratorConfig } from '../config/schema.js';
|
|
3
|
-
import type { ResolvedBaseBranch } from '../git/base-branch.js';
|
|
4
|
-
import type { GitWorktreeManager } from '../git/worktree.js';
|
|
5
|
-
import type { GitHubIssue } from '../github/issues.js';
|
|
6
|
-
import type { ShellCommandExecutor } from '../process/command.js';
|
|
7
|
-
import type { ReworkAttemptEvidence } from './durable-run-summary.js';
|
|
8
|
-
import type { RunnerMode } from './issue-state-machine.js';
|
|
9
|
-
import { type ImplementationPublishabilityInput, type ImplementationPublishabilityResult, type LocalExecutionPhaseExecutor } from './local-execution-session.js';
|
|
10
|
-
import { RunnerLifecycleEventStore } from './lifecycle-events.js';
|
|
11
|
-
import { type RunnerProcessMetadata } from './local-state.js';
|
|
12
|
-
export interface AgentAttemptPromptInput {
|
|
13
|
-
attempt: number;
|
|
14
|
-
attemptNow: Date;
|
|
15
|
-
sessionId: string;
|
|
16
|
-
promptPath: string;
|
|
17
|
-
reportPath: string;
|
|
18
|
-
logPath: string;
|
|
19
|
-
rework?: AgentAttemptRework;
|
|
20
|
-
}
|
|
21
|
-
export interface AgentAttemptRework {
|
|
22
|
-
attempt: number;
|
|
23
|
-
blockedReasons: string[];
|
|
24
|
-
disableOptionalFigmaMcp?: boolean;
|
|
25
|
-
}
|
|
26
|
-
export interface AgentAttemptLoopInput {
|
|
27
|
-
targetRoot: string;
|
|
28
|
-
config: CodexOrchestratorConfig;
|
|
29
|
-
issue: GitHubIssue;
|
|
30
|
-
issueNumber: number;
|
|
31
|
-
parentIssueNumber?: number;
|
|
32
|
-
mode: Extract<RunnerMode, 'scoped-issue' | 'tree-child'>;
|
|
33
|
-
phase: Extract<CodexPhase, 'scoped-issue' | 'tree-child'>;
|
|
34
|
-
branchName: string;
|
|
35
|
-
worktreePath: string;
|
|
36
|
-
baseBranch: string;
|
|
37
|
-
base?: ResolvedBaseBranch | {
|
|
38
|
-
branch: string;
|
|
39
|
-
sha?: string;
|
|
40
|
-
};
|
|
41
|
-
createdAt: Date;
|
|
42
|
-
firstAttempt?: number;
|
|
43
|
-
initialRework?: AgentAttemptRework;
|
|
44
|
-
buildSessionId: (input: {
|
|
45
|
-
attempt: number;
|
|
46
|
-
attemptNow: Date;
|
|
47
|
-
}) => string;
|
|
48
|
-
buildPrompt: (input: AgentAttemptPromptInput) => string;
|
|
49
|
-
buildSnapshotDecision: (input: {
|
|
50
|
-
rework?: AgentAttemptRework;
|
|
51
|
-
}) => string;
|
|
52
|
-
startedSummary: (input: {
|
|
53
|
-
rework?: AgentAttemptRework;
|
|
54
|
-
}) => string;
|
|
55
|
-
reworkScheduledSummary: (input: {
|
|
56
|
-
nextAttempt: number;
|
|
57
|
-
}) => string;
|
|
58
|
-
reworkEventPhase?: CodexPhase;
|
|
59
|
-
missingPublishabilityMessage?: string;
|
|
60
|
-
codexAdapter: {
|
|
61
|
-
run(input: CodexCommandRunInput): Promise<CodexCommandRunResult>;
|
|
62
|
-
};
|
|
63
|
-
codexTimeoutMs?: number;
|
|
64
|
-
git: Pick<GitWorktreeManager, 'getHead'> & ImplementationPublishabilityInput['git'];
|
|
65
|
-
shellExecutor: ShellCommandExecutor;
|
|
66
|
-
commitMessage: string;
|
|
67
|
-
events: RunnerLifecycleEventStore;
|
|
68
|
-
localPhases?: string[];
|
|
69
|
-
localPhaseExecutor?: LocalExecutionPhaseExecutor;
|
|
70
|
-
acceptanceProof?: Omit<NonNullable<ImplementationPublishabilityInput['acceptanceProof']>, 'sessionId' | 'branchName' | 'onAttemptEvent'>;
|
|
71
|
-
onAcceptanceProofAttemptEvent?: (input: {
|
|
72
|
-
sessionId: string;
|
|
73
|
-
event: AcceptanceProofAttemptEvent;
|
|
74
|
-
}) => Promise<void>;
|
|
75
|
-
runMetadata?: (input: {
|
|
76
|
-
attempt: number;
|
|
77
|
-
attemptNow: Date;
|
|
78
|
-
sessionId: string;
|
|
79
|
-
promptPath: string;
|
|
80
|
-
reportPath: string;
|
|
81
|
-
logPath: string;
|
|
82
|
-
snapshotPath: string;
|
|
83
|
-
}) => Partial<RunnerProcessMetadata>;
|
|
84
|
-
publishabilityEvent?: (input: {
|
|
85
|
-
publishability: ImplementationPublishabilityResult;
|
|
86
|
-
}) => {
|
|
87
|
-
phase: CodexPhase;
|
|
88
|
-
status: 'completed' | 'blocked';
|
|
89
|
-
summary: string;
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
type AcceptanceProofAttemptEvent = Parameters<NonNullable<NonNullable<ImplementationPublishabilityInput['acceptanceProof']>['onAttemptEvent']>>[0];
|
|
93
|
-
export interface AgentAttemptLoopResult {
|
|
94
|
-
publishability: ImplementationPublishabilityResult;
|
|
95
|
-
sessionId: string;
|
|
96
|
-
promptPath: string;
|
|
97
|
-
reportPath: string;
|
|
98
|
-
logPath: string;
|
|
99
|
-
snapshotPath: string;
|
|
100
|
-
reworkAttempts: ReworkAttemptEvidence[];
|
|
101
|
-
lastAttemptStartedAt: Date;
|
|
102
|
-
}
|
|
103
|
-
export declare function runAgentAttemptLoop(input: AgentAttemptLoopInput): Promise<AgentAttemptLoopResult>;
|
|
104
|
-
export {};
|
|
105
|
-
//# sourceMappingURL=agent-attempt.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-attempt.d.ts","sourceRoot":"","sources":["../../../src/runner/agent-attempt.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC/F,OAAO,KAAK,EAAE,UAAU,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAGlE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAEL,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EACvC,KAAK,2BAA2B,EACjC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,yBAAyB,EAA0B,MAAM,uBAA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AAC,SAAS,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,qBAAqB,CAAC,CAAC;IACjM,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,cAAc,EAAE,kCAAkC,CAAA;KAAE,KAAK;QACvF,KAAK,EAAE,UAAU,CAAC;QAClB,MAAM,EAAE,WAAW,GAAG,SAAS,CAAC;QAChC,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH;AAED,KAAK,2BAA2B,GAC9B,UAAU,CAAC,WAAW,CAAC,WAAW,CAAC,iCAAiC,CAAC,iBAAiB,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAElH,MAAM,WAAW,sBAAsB;IACrC,cAAc,EAAE,kCAAkC,CAAC;IACnD,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,qBAAqB,EAAE,CAAC;IACxC,oBAAoB,EAAE,IAAI,CAAC;CAC5B;AAED,wBAAsB,mBAAmB,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAiOvG"}
|
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
import { mkdir } from 'node:fs/promises';
|
|
2
|
-
import { dirname } from 'node:path';
|
|
3
|
-
import { writeContextSnapshot } from './context-snapshot.js';
|
|
4
|
-
import { runImplementationPublishabilityCheck, } from './local-execution-session.js';
|
|
5
|
-
import { RunnerStateStore } from './local-state.js';
|
|
6
|
-
import { sessionPromptPath, sessionReportPath, writeDurablePrompt } from './prompt.js';
|
|
7
|
-
import { decideImplementationRework } from './rework-policy.js';
|
|
8
|
-
import { sessionLogPath } from './run-log.js';
|
|
9
|
-
import { cleanupSessionCodexHome, sessionCodexHomePath } from './session-home.js';
|
|
10
|
-
export async function runAgentAttemptLoop(input) {
|
|
11
|
-
const store = new RunnerStateStore(input.targetRoot, input.config);
|
|
12
|
-
const maxReworkAttempts = Math.max(input.config.loopPolicy.rework.maxAttempts, input.config.reviewGates.acceptanceProof.maxIterations - 1);
|
|
13
|
-
const reworkAttempts = [];
|
|
14
|
-
const reworkEventPhase = input.reworkEventPhase ?? input.phase;
|
|
15
|
-
let rework = input.initialRework;
|
|
16
|
-
let publishability;
|
|
17
|
-
let sessionId = '';
|
|
18
|
-
let promptPath = '';
|
|
19
|
-
let reportPath = '';
|
|
20
|
-
let logPath = '';
|
|
21
|
-
let snapshotPath = '';
|
|
22
|
-
let lastAttemptStartedAt = input.createdAt;
|
|
23
|
-
for (let attempt = input.firstAttempt ?? 0; attempt <= maxReworkAttempts; attempt++) {
|
|
24
|
-
const attemptNow = new Date(input.createdAt.getTime() + attempt);
|
|
25
|
-
lastAttemptStartedAt = attemptNow;
|
|
26
|
-
sessionId = input.buildSessionId({ attempt, attemptNow });
|
|
27
|
-
promptPath = sessionPromptPath({ targetRoot: input.targetRoot, config: input.config, issueNumber: input.issueNumber, sessionId });
|
|
28
|
-
reportPath = sessionReportPath({ targetRoot: input.targetRoot, config: input.config, issueNumber: input.issueNumber, sessionId });
|
|
29
|
-
logPath = sessionLogPath({ targetRoot: input.targetRoot, config: input.config, issueNumber: input.issueNumber, sessionId });
|
|
30
|
-
const isolatedHomePath = sessionCodexHomePath({ targetRoot: input.targetRoot, sessionId });
|
|
31
|
-
await mkdir(dirname(reportPath), { recursive: true });
|
|
32
|
-
await mkdir(isolatedHomePath, { recursive: true });
|
|
33
|
-
const promptText = input.buildPrompt({
|
|
34
|
-
attempt,
|
|
35
|
-
attemptNow,
|
|
36
|
-
sessionId,
|
|
37
|
-
promptPath,
|
|
38
|
-
reportPath,
|
|
39
|
-
logPath,
|
|
40
|
-
rework,
|
|
41
|
-
});
|
|
42
|
-
await writeDurablePrompt({
|
|
43
|
-
targetRoot: input.targetRoot,
|
|
44
|
-
config: input.config,
|
|
45
|
-
issueNumber: input.issueNumber,
|
|
46
|
-
sessionId,
|
|
47
|
-
promptText,
|
|
48
|
-
});
|
|
49
|
-
const snapshot = await writeContextSnapshot({
|
|
50
|
-
targetRoot: input.targetRoot,
|
|
51
|
-
config: input.config,
|
|
52
|
-
issue: input.issue,
|
|
53
|
-
mode: input.mode,
|
|
54
|
-
phase: input.phase,
|
|
55
|
-
decision: input.buildSnapshotDecision({ rework }),
|
|
56
|
-
sessionId,
|
|
57
|
-
worktreePath: input.worktreePath,
|
|
58
|
-
promptPath,
|
|
59
|
-
reportPath,
|
|
60
|
-
logPath,
|
|
61
|
-
branchName: input.branchName,
|
|
62
|
-
baseBranch: input.baseBranch,
|
|
63
|
-
base: input.base,
|
|
64
|
-
parentIssueNumber: input.parentIssueNumber,
|
|
65
|
-
blockedBy: input.parentIssueNumber ? [] : undefined,
|
|
66
|
-
createdAt: attemptNow,
|
|
67
|
-
});
|
|
68
|
-
snapshotPath = snapshot.path;
|
|
69
|
-
await store.upsertRun({
|
|
70
|
-
issueNumber: input.issueNumber,
|
|
71
|
-
mode: input.mode,
|
|
72
|
-
workspacePath: input.worktreePath,
|
|
73
|
-
sessionId,
|
|
74
|
-
branchName: input.branchName,
|
|
75
|
-
promptPath,
|
|
76
|
-
reportPath,
|
|
77
|
-
logPath,
|
|
78
|
-
retryCount: attempt,
|
|
79
|
-
createdAt: input.createdAt.toISOString(),
|
|
80
|
-
updatedAt: attemptNow.toISOString(),
|
|
81
|
-
attemptStartedAt: attemptNow.toISOString(),
|
|
82
|
-
snapshotPath,
|
|
83
|
-
...(input.parentIssueNumber ? { parentIssueNumber: input.parentIssueNumber } : {}),
|
|
84
|
-
...input.runMetadata?.({ attempt, attemptNow, sessionId, promptPath, reportPath, logPath, snapshotPath }),
|
|
85
|
-
});
|
|
86
|
-
await safeAppendEvent(input.events, {
|
|
87
|
-
timestamp: attemptNow,
|
|
88
|
-
issueNumber: input.issueNumber,
|
|
89
|
-
parentIssueNumber: input.parentIssueNumber,
|
|
90
|
-
mode: input.mode,
|
|
91
|
-
sessionId,
|
|
92
|
-
phase: input.phase,
|
|
93
|
-
status: 'started',
|
|
94
|
-
summary: input.startedSummary({ rework }),
|
|
95
|
-
artifacts: sessionArtifacts(promptPath, reportPath, logPath, snapshotPath),
|
|
96
|
-
});
|
|
97
|
-
const beforeHead = await input.git.getHead(input.worktreePath);
|
|
98
|
-
let codexResult;
|
|
99
|
-
try {
|
|
100
|
-
codexResult = await input.codexAdapter.run({
|
|
101
|
-
targetRoot: input.targetRoot,
|
|
102
|
-
config: input.config,
|
|
103
|
-
worktreePath: input.worktreePath,
|
|
104
|
-
promptPath,
|
|
105
|
-
promptText,
|
|
106
|
-
reportPath,
|
|
107
|
-
isolatedHomePath,
|
|
108
|
-
issueNumber: input.issueNumber,
|
|
109
|
-
sessionId,
|
|
110
|
-
branchName: input.branchName,
|
|
111
|
-
phase: input.phase,
|
|
112
|
-
timeoutMs: input.codexTimeoutMs,
|
|
113
|
-
logPath,
|
|
114
|
-
disableOptionalFigmaMcp: rework?.disableOptionalFigmaMcp,
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
finally {
|
|
118
|
-
await cleanupSessionCodexHome(isolatedHomePath);
|
|
119
|
-
}
|
|
120
|
-
const afterHead = await input.git.getHead(input.worktreePath);
|
|
121
|
-
publishability = await runImplementationPublishabilityCheck({
|
|
122
|
-
config: input.config,
|
|
123
|
-
issue: input.issue,
|
|
124
|
-
targetRoot: input.targetRoot,
|
|
125
|
-
worktreePath: input.worktreePath,
|
|
126
|
-
reportPath,
|
|
127
|
-
beforeHead,
|
|
128
|
-
afterHead,
|
|
129
|
-
codexResult,
|
|
130
|
-
git: input.git,
|
|
131
|
-
shellExecutor: input.shellExecutor,
|
|
132
|
-
commitMessage: input.commitMessage,
|
|
133
|
-
localPhases: input.localPhases,
|
|
134
|
-
localPhaseExecutor: input.localPhaseExecutor,
|
|
135
|
-
reportRepair: {
|
|
136
|
-
targetRoot: input.targetRoot,
|
|
137
|
-
sessionId,
|
|
138
|
-
branchName: input.branchName,
|
|
139
|
-
workflowPromptText: promptText,
|
|
140
|
-
codexAdapter: input.codexAdapter,
|
|
141
|
-
},
|
|
142
|
-
acceptanceProof: input.acceptanceProof
|
|
143
|
-
? {
|
|
144
|
-
...input.acceptanceProof,
|
|
145
|
-
sessionId,
|
|
146
|
-
branchName: input.branchName,
|
|
147
|
-
onAttemptEvent: input.onAcceptanceProofAttemptEvent
|
|
148
|
-
? (event) => input.onAcceptanceProofAttemptEvent({ sessionId, event })
|
|
149
|
-
: undefined,
|
|
150
|
-
}
|
|
151
|
-
: undefined,
|
|
152
|
-
});
|
|
153
|
-
const publishabilityEvent = input.publishabilityEvent?.({ publishability });
|
|
154
|
-
if (publishabilityEvent) {
|
|
155
|
-
await safeAppendEvent(input.events, {
|
|
156
|
-
issueNumber: input.issueNumber,
|
|
157
|
-
parentIssueNumber: input.parentIssueNumber,
|
|
158
|
-
mode: input.mode,
|
|
159
|
-
sessionId,
|
|
160
|
-
phase: publishabilityEvent.phase,
|
|
161
|
-
status: publishabilityEvent.status,
|
|
162
|
-
summary: publishabilityEvent.summary,
|
|
163
|
-
artifacts: sessionArtifacts(promptPath, reportPath, logPath, snapshotPath),
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
if (publishability.status === 'blocked') {
|
|
167
|
-
const reworkDecision = decideImplementationRework({
|
|
168
|
-
reasons: publishability.reasons,
|
|
169
|
-
blockers: publishability.blockers,
|
|
170
|
-
config: input.config,
|
|
171
|
-
attempt,
|
|
172
|
-
});
|
|
173
|
-
reworkAttempts.push({
|
|
174
|
-
attempt,
|
|
175
|
-
maxAttempts: 'maxAttempts' in reworkDecision ? reworkDecision.maxAttempts : undefined,
|
|
176
|
-
decisionKind: reworkDecision.kind,
|
|
177
|
-
reasons: publishability.reasons,
|
|
178
|
-
blockerKeys: 'blockerKeys' in reworkDecision ? reworkDecision.blockerKeys : undefined,
|
|
179
|
-
repairAttempts: publishability.repairAttempts,
|
|
180
|
-
promptPath,
|
|
181
|
-
reportPath,
|
|
182
|
-
logPath,
|
|
183
|
-
snapshotPath,
|
|
184
|
-
});
|
|
185
|
-
if (reworkDecision.kind === 'retry') {
|
|
186
|
-
rework = reworkDecision.rework;
|
|
187
|
-
await safeAppendEvent(input.events, {
|
|
188
|
-
timestamp: attemptNow,
|
|
189
|
-
issueNumber: input.issueNumber,
|
|
190
|
-
parentIssueNumber: input.parentIssueNumber,
|
|
191
|
-
mode: input.mode,
|
|
192
|
-
sessionId,
|
|
193
|
-
phase: reworkEventPhase,
|
|
194
|
-
status: 'needs-rework',
|
|
195
|
-
summary: input.reworkScheduledSummary({ nextAttempt: reworkDecision.nextAttempt }),
|
|
196
|
-
artifacts: sessionArtifacts(promptPath, reportPath, logPath, snapshotPath),
|
|
197
|
-
});
|
|
198
|
-
continue;
|
|
199
|
-
}
|
|
200
|
-
await safeAppendEvent(input.events, {
|
|
201
|
-
timestamp: attemptNow,
|
|
202
|
-
issueNumber: input.issueNumber,
|
|
203
|
-
parentIssueNumber: input.parentIssueNumber,
|
|
204
|
-
mode: input.mode,
|
|
205
|
-
sessionId,
|
|
206
|
-
phase: reworkEventPhase,
|
|
207
|
-
status: 'blocked',
|
|
208
|
-
summary: `Runner rework decision: ${reworkDecision.kind}.`,
|
|
209
|
-
artifacts: sessionArtifacts(promptPath, reportPath, logPath, snapshotPath),
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
break;
|
|
213
|
-
}
|
|
214
|
-
if (!publishability) {
|
|
215
|
-
throw new Error(input.missingPublishabilityMessage ?? 'Runner internal error: missing agent attempt publishability result');
|
|
216
|
-
}
|
|
217
|
-
return {
|
|
218
|
-
publishability,
|
|
219
|
-
sessionId,
|
|
220
|
-
promptPath,
|
|
221
|
-
reportPath,
|
|
222
|
-
logPath,
|
|
223
|
-
snapshotPath,
|
|
224
|
-
reworkAttempts,
|
|
225
|
-
lastAttemptStartedAt,
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
function sessionArtifacts(promptPath, reportPath, logPath, snapshotPath) {
|
|
229
|
-
const artifacts = [
|
|
230
|
-
snapshotPath ? { kind: 'snapshot', path: snapshotPath, description: 'Context snapshot' } : undefined,
|
|
231
|
-
promptPath ? { kind: 'prompt', path: promptPath, description: 'Session prompt path' } : undefined,
|
|
232
|
-
reportPath ? { kind: 'report', path: reportPath, description: 'Session report path' } : undefined,
|
|
233
|
-
logPath ? { kind: 'log', path: logPath, description: 'Session log path' } : undefined,
|
|
234
|
-
];
|
|
235
|
-
return artifacts.filter((artifact) => Boolean(artifact));
|
|
236
|
-
}
|
|
237
|
-
async function safeAppendEvent(store, input) {
|
|
238
|
-
try {
|
|
239
|
-
await store.append(input);
|
|
240
|
-
}
|
|
241
|
-
catch {
|
|
242
|
-
// Lifecycle evidence must not create a new publication blocker after runner gates pass.
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
//# sourceMappingURL=agent-attempt.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-attempt.js","sourceRoot":"","sources":["../../../src/runner/agent-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAG7D,OAAO,EACL,oCAAoC,GAIrC,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,gBAAgB,EAA8B,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACvF,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;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EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC,CAAC,CAAC,SAAS;QACjG,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC,CAAC,CAAC,SAAS;QACjG,OAAO,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS;KACtF,CAAC;IACF,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAiC,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;AAC1F,CAAC;AAED,KAAK,UAAU,eAAe,CAC5B,KAAgC,EAChC,KAAyD;IAEzD,IAAI,CAAC;QACH,MAAM,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;IAAC,MAAM,CAAC;QACP,wFAAwF;IAC1F,CAAC;AACH,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
type AndroidProofProjectType = 'auto' | 'flutter' | 'android';
|
|
2
|
-
export interface AndroidVisualProofCommandInput {
|
|
3
|
-
issueNumber: number;
|
|
4
|
-
worktreePath?: string;
|
|
5
|
-
artifactDir?: string;
|
|
6
|
-
env?: NodeJS.ProcessEnv;
|
|
7
|
-
platform?: NodeJS.Platform;
|
|
8
|
-
projectType?: AndroidProofProjectType;
|
|
9
|
-
launchConfigName?: string;
|
|
10
|
-
flutterTarget?: string;
|
|
11
|
-
flutterFlavor?: string;
|
|
12
|
-
androidPackage?: string;
|
|
13
|
-
gradleInstallTask?: string;
|
|
14
|
-
launchSettleMs?: number;
|
|
15
|
-
}
|
|
16
|
-
export declare function runAndroidVisualProofCommand(input: AndroidVisualProofCommandInput): Promise<void>;
|
|
17
|
-
export declare function parseAndroidVisualProofArgs(args: string[], env?: NodeJS.ProcessEnv): {
|
|
18
|
-
ok: true;
|
|
19
|
-
value: AndroidVisualProofCommandInput;
|
|
20
|
-
} | {
|
|
21
|
-
ok: false;
|
|
22
|
-
error: string;
|
|
23
|
-
};
|
|
24
|
-
export declare function androidSdkDefaultRoots(env: NodeJS.ProcessEnv, platform: NodeJS.Platform): string[];
|
|
25
|
-
export {};
|
|
26
|
-
//# sourceMappingURL=android-visual-proof-command.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"android-visual-proof-command.d.ts","sourceRoot":"","sources":["../../../src/runner/android-visual-proof-command.ts"],"names":[],"mappings":"AASA,KAAK,uBAAuB,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;AAG9D,MAAM,WAAW,8BAA8B;IAC7C,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC;IAC3B,WAAW,CAAC,EAAE,uBAAuB,CAAC;IACtC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AA4BD,wBAAsB,4BAA4B,CAAC,KAAK,EAAE,8BAA8B,GAAG,OAAO,CAAC,IAAI,CAAC,CAwEvG;AAED,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,MAAM,EAAE,EACd,GAAG,GAAE,MAAM,CAAC,UAAwB,GACnC;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,8BAA8B,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAsGpF;AAED,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,CAAC,UAAU,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,GAAG,MAAM,EAAE,CAalG"}
|