@openrig/cli 0.5.2 → 0.5.3
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/daemon/assets/plugins/openrig-core/hooks/claude.json +36 -0
- package/daemon/assets/plugins/openrig-core/hooks/codex.json +27 -0
- package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus.cjs +132 -0
- package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/SKILL.md +35 -3
- package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/precompact-hook.mjs +8 -95
- package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/restore-from-jsonl.mjs +63 -20
- package/daemon/assets/plugins/openrig-core/skills/forming-an-openrig-mental-model/SKILL.md +6 -2
- package/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md +28 -2
- package/daemon/assets/plugins/openrig-core/skills/mission-slice-sop/SKILL.md +42 -52
- package/daemon/assets/plugins/openrig-core/skills/openrig-skills/SKILL.md +23 -1
- package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +7 -2
- package/daemon/assets/plugins/openrig-core/skills/orienting-to-an-inherited-seat/CHANGELOG.md +64 -0
- package/daemon/assets/plugins/openrig-core/skills/orienting-to-an-inherited-seat/SKILL.md +235 -0
- package/daemon/assets/plugins/openrig-core/skills/queue-handoff/SKILL.md +31 -1
- package/daemon/assets/plugins/openrig-core/skills/retiring-and-inheriting-a-seat/CHANGELOG.md +48 -0
- package/daemon/assets/plugins/openrig-core/skills/retiring-and-inheriting-a-seat/SKILL.md +211 -0
- package/daemon/assets/plugins/openrig-core/skills/seat-continuity-and-handover/SKILL.md +8 -0
- package/daemon/assets/plugins/openrig-core/skills/software-for-agents/SKILL.md +28 -1
- package/daemon/context-packs/skills/core/agent-starters/SKILL.md +132 -0
- package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +9 -0
- package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/SKILL.md +112 -0
- package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +9 -0
- package/daemon/context-packs/skills/core/attention-queue/SKILL.md +264 -0
- package/daemon/context-packs/skills/core/attention-queue/manifest.yaml +9 -0
- package/daemon/context-packs/skills/core/cross-host-rig-commands/SKILL.md +195 -0
- package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +9 -0
- package/daemon/context-packs/skills/core/human-in-the-loop/SKILL.md +104 -0
- package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +9 -0
- package/daemon/context-packs/skills/core/openrig-architect/SKILL.md +378 -0
- package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +9 -0
- package/daemon/context-packs/skills/core/openrig-cmux/SKILL.md +81 -0
- package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +9 -0
- package/daemon/context-packs/skills/core/openrig-herdr/SKILL.md +153 -0
- package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +9 -0
- package/daemon/context-packs/skills/core/openrig-upgrade/SKILL.md +460 -0
- package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +9 -0
- package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/SKILL.md +101 -0
- package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +9 -0
- package/daemon/context-packs/skills/core/rig-lifecycle/SKILL.md +127 -0
- package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +9 -0
- package/daemon/context-packs/skills/core/session-source-fork/SKILL.md +160 -0
- package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +9 -0
- package/daemon/context-packs/skills/core/specification-system/SKILL.md +103 -0
- package/daemon/context-packs/skills/core/specification-system/manifest.yaml +9 -0
- package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/SKILL.md +118 -0
- package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +9 -0
- package/daemon/context-packs/skills/core/watchdog/SKILL.md +126 -0
- package/daemon/context-packs/skills/core/watchdog/manifest.yaml +9 -0
- package/daemon/context-packs/skills/pm/backlog-capture/SKILL.md +43 -0
- package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +9 -0
- package/daemon/context-packs/skills/pm/context-builder/SKILL.md +87 -0
- package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +9 -0
- package/daemon/context-packs/skills/pm/exec-summary/SKILL.md +84 -0
- package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +9 -0
- package/daemon/context-packs/skills/pm/office-hours/SKILL.md +129 -0
- package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +9 -0
- package/daemon/context-packs/skills/pm/plan-review/SKILL.md +98 -0
- package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +9 -0
- package/daemon/context-packs/skills/pm/requirements-writer/SKILL.md +113 -0
- package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +9 -0
- package/daemon/context-packs/skills/pm/ui-mockup/SKILL.md +76 -0
- package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +9 -0
- package/daemon/context-packs/skills/pods/development-team/SKILL.md +156 -0
- package/daemon/context-packs/skills/pods/development-team/manifest.yaml +9 -0
- package/daemon/context-packs/skills/pods/orchestration-team/SKILL.md +307 -0
- package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +9 -0
- package/daemon/context-packs/skills/pods/oversight-team/SKILL.md +106 -0
- package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +9 -0
- package/daemon/context-packs/skills/pods/review-team/SKILL.md +213 -0
- package/daemon/context-packs/skills/pods/review-team/manifest.yaml +9 -0
- package/daemon/context-packs/skills/process/agent-browser/LOCAL-INSIGHTS.md +189 -0
- package/daemon/context-packs/skills/process/agent-browser/OPENRIG.md +40 -0
- package/daemon/context-packs/skills/process/agent-browser/SKILL.md +427 -0
- package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +13 -0
- package/daemon/context-packs/skills/process/brainstorming/OPENRIG.md +48 -0
- package/daemon/context-packs/skills/process/brainstorming/SKILL.md +107 -0
- package/daemon/context-packs/skills/process/brainstorming/manifest.yaml +11 -0
- package/daemon/context-packs/skills/process/context-engineering/SKILL.md +479 -0
- package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +9 -0
- package/daemon/context-packs/skills/process/dogfood/SKILL.md +225 -0
- package/daemon/context-packs/skills/process/dogfood/manifest.yaml +13 -0
- package/daemon/context-packs/skills/process/dogfood/references/issue-taxonomy.md +109 -0
- package/daemon/context-packs/skills/process/dogfood/templates/dogfood-report-template.md +53 -0
- package/daemon/context-packs/skills/process/executing-plans/OPENRIG.md +56 -0
- package/daemon/context-packs/skills/process/executing-plans/SKILL.md +94 -0
- package/daemon/context-packs/skills/process/executing-plans/manifest.yaml +11 -0
- package/daemon/context-packs/skills/process/frontend-design/LICENSE.txt +177 -0
- package/daemon/context-packs/skills/process/frontend-design/SKILL.md +50 -0
- package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +11 -0
- package/daemon/context-packs/skills/process/systematic-debugging/SKILL.md +301 -0
- package/daemon/context-packs/skills/process/systematic-debugging/condition-based-waiting-example.ts +158 -0
- package/daemon/context-packs/skills/process/systematic-debugging/condition-based-waiting.md +115 -0
- package/daemon/context-packs/skills/process/systematic-debugging/defense-in-depth.md +122 -0
- package/daemon/context-packs/skills/process/systematic-debugging/find-polluter.sh +63 -0
- package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +19 -0
- package/daemon/context-packs/skills/process/systematic-debugging/root-cause-tracing.md +169 -0
- package/daemon/context-packs/skills/process/test-driven-development/SKILL.md +385 -0
- package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +11 -0
- package/daemon/context-packs/skills/process/test-driven-development/testing-anti-patterns.md +299 -0
- package/daemon/context-packs/skills/process/using-superpowers/OPENRIG.md +48 -0
- package/daemon/context-packs/skills/process/using-superpowers/SKILL.md +106 -0
- package/daemon/context-packs/skills/process/using-superpowers/manifest.yaml +11 -0
- package/daemon/context-packs/skills/process/verification-before-completion/SKILL.md +155 -0
- package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +9 -0
- package/daemon/context-packs/skills/process/writing-plans/OPENRIG.md +52 -0
- package/daemon/context-packs/skills/process/writing-plans/SKILL.md +126 -0
- package/daemon/context-packs/skills/process/writing-plans/manifest.yaml +11 -0
- package/daemon/context-packs/world/install/01-world-from-primitives.md +97 -0
- package/daemon/context-packs/world/install/02-permission-self-sleep.md +141 -0
- package/daemon/context-packs/world/install/03-what-this-is-for.md +86 -0
- package/daemon/context-packs/world/install/04-ontology.md +790 -0
- package/daemon/context-packs/world/install/05-harness-power-use.md +355 -0
- package/daemon/context-packs/world/install/06-a-competent-turn.md +225 -0
- package/daemon/context-packs/world/install/manifest.yaml +125 -0
- package/daemon/context-packs/world/install/reference-material.md +125 -0
- package/daemon/context-packs/world/install/what-you-can-do.md +416 -0
- package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +7 -4
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/claude-resume.js +2 -2
- package/daemon/dist/adapters/claude-resume.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +10 -2
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +27 -7
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/adapters/yolo-mode.d.ts +18 -0
- package/daemon/dist/adapters/yolo-mode.d.ts.map +1 -1
- package/daemon/dist/adapters/yolo-mode.js +21 -0
- package/daemon/dist/adapters/yolo-mode.js.map +1 -1
- package/daemon/dist/build-info.js +3 -3
- package/daemon/dist/domain/codex-thread-id.d.ts +95 -0
- package/daemon/dist/domain/codex-thread-id.d.ts.map +1 -1
- package/daemon/dist/domain/codex-thread-id.js +171 -2
- package/daemon/dist/domain/codex-thread-id.js.map +1 -1
- package/daemon/dist/domain/context-packs/context-pack-types.d.ts +48 -0
- package/daemon/dist/domain/context-packs/context-pack-types.d.ts.map +1 -1
- package/daemon/dist/domain/context-packs/context-pack-types.js +8 -0
- package/daemon/dist/domain/context-packs/context-pack-types.js.map +1 -1
- package/daemon/dist/domain/context-packs/manifest-parser.d.ts.map +1 -1
- package/daemon/dist/domain/context-packs/manifest-parser.js +234 -2
- package/daemon/dist/domain/context-packs/manifest-parser.js.map +1 -1
- package/daemon/dist/domain/context-packs/probe-eval-bridge.d.ts +34 -0
- package/daemon/dist/domain/context-packs/probe-eval-bridge.d.ts.map +1 -0
- package/daemon/dist/domain/context-packs/probe-eval-bridge.js +38 -0
- package/daemon/dist/domain/context-packs/probe-eval-bridge.js.map +1 -0
- package/daemon/dist/domain/context-packs/profile-composer.d.ts +49 -0
- package/daemon/dist/domain/context-packs/profile-composer.d.ts.map +1 -0
- package/daemon/dist/domain/context-packs/profile-composer.js +125 -0
- package/daemon/dist/domain/context-packs/profile-composer.js.map +1 -0
- package/daemon/dist/domain/context-packs/profile-source-resolver.d.ts +53 -0
- package/daemon/dist/domain/context-packs/profile-source-resolver.d.ts.map +1 -0
- package/daemon/dist/domain/context-packs/profile-source-resolver.js +129 -0
- package/daemon/dist/domain/context-packs/profile-source-resolver.js.map +1 -0
- package/daemon/dist/domain/context-packs/seat-recap-store.d.ts +48 -0
- package/daemon/dist/domain/context-packs/seat-recap-store.d.ts.map +1 -0
- package/daemon/dist/domain/context-packs/seat-recap-store.js +123 -0
- package/daemon/dist/domain/context-packs/seat-recap-store.js.map +1 -0
- package/daemon/dist/domain/markdown-address.d.ts +56 -0
- package/daemon/dist/domain/markdown-address.d.ts.map +1 -0
- package/daemon/dist/domain/markdown-address.js +188 -0
- package/daemon/dist/domain/markdown-address.js.map +1 -0
- package/daemon/dist/domain/model-divergence/current-generation-record.d.ts +8 -2
- package/daemon/dist/domain/model-divergence/current-generation-record.d.ts.map +1 -1
- package/daemon/dist/domain/model-divergence/current-generation-record.js +1 -1
- package/daemon/dist/domain/model-divergence/current-generation-record.js.map +1 -1
- package/daemon/dist/domain/model-divergence/model-divergence-monitor.d.ts +33 -21
- package/daemon/dist/domain/model-divergence/model-divergence-monitor.d.ts.map +1 -1
- package/daemon/dist/domain/model-divergence/model-divergence-monitor.js +64 -55
- package/daemon/dist/domain/model-divergence/model-divergence-monitor.js.map +1 -1
- package/daemon/dist/domain/periodic-snapshot-scheduler.d.ts +4 -0
- package/daemon/dist/domain/periodic-snapshot-scheduler.d.ts.map +1 -1
- package/daemon/dist/domain/periodic-snapshot-scheduler.js +5 -1
- package/daemon/dist/domain/periodic-snapshot-scheduler.js.map +1 -1
- package/daemon/dist/domain/permission-drift-observer.d.ts.map +1 -1
- package/daemon/dist/domain/permission-drift-observer.js +6 -1
- package/daemon/dist/domain/permission-drift-observer.js.map +1 -1
- package/daemon/dist/domain/process-census.d.ts +25 -0
- package/daemon/dist/domain/process-census.d.ts.map +1 -0
- package/daemon/dist/domain/process-census.js +47 -0
- package/daemon/dist/domain/process-census.js.map +1 -0
- package/daemon/dist/domain/resume-metadata-refresher.d.ts +31 -2
- package/daemon/dist/domain/resume-metadata-refresher.d.ts.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.js +64 -29
- package/daemon/dist/domain/resume-metadata-refresher.js.map +1 -1
- package/daemon/dist/domain/review/compose.d.ts +5 -26
- package/daemon/dist/domain/review/compose.d.ts.map +1 -1
- package/daemon/dist/domain/review/compose.js +31 -57
- package/daemon/dist/domain/review/compose.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts +4 -0
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +39 -0
- package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-schema.js +19 -3
- package/daemon/dist/domain/rigspec-schema.js.map +1 -1
- package/daemon/dist/domain/scope/logical-checkbox.d.ts +26 -0
- package/daemon/dist/domain/scope/logical-checkbox.d.ts.map +1 -0
- package/daemon/dist/domain/scope/logical-checkbox.js +65 -0
- package/daemon/dist/domain/scope/logical-checkbox.js.map +1 -0
- package/daemon/dist/domain/scope/plan-lock-artifacts.d.ts +1 -1
- package/daemon/dist/domain/scope/plan-lock-artifacts.d.ts.map +1 -1
- package/daemon/dist/domain/scope/plan-lock-artifacts.js +2 -2
- package/daemon/dist/domain/scope/plan-lock-artifacts.js.map +1 -1
- package/daemon/dist/domain/scope/scaffold-placeholder.d.ts +22 -0
- package/daemon/dist/domain/scope/scaffold-placeholder.d.ts.map +1 -1
- package/daemon/dist/domain/scope/scaffold-placeholder.js +24 -0
- package/daemon/dist/domain/scope/scaffold-placeholder.js.map +1 -1
- package/daemon/dist/domain/seat-activity-service.d.ts +1 -0
- package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-activity-service.js +39 -23
- package/daemon/dist/domain/seat-activity-service.js.map +1 -1
- package/daemon/dist/domain/seat-handover-service.d.ts +22 -0
- package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-handover-service.js +32 -2
- package/daemon/dist/domain/seat-handover-service.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +8 -0
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +116 -0
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/shell-classifier.d.ts +23 -0
- package/daemon/dist/domain/shell-classifier.d.ts.map +1 -0
- package/daemon/dist/domain/shell-classifier.js +36 -0
- package/daemon/dist/domain/shell-classifier.js.map +1 -0
- package/daemon/dist/domain/slices/slice-detail-projector.d.ts.map +1 -1
- package/daemon/dist/domain/slices/slice-detail-projector.js +10 -1
- package/daemon/dist/domain/slices/slice-detail-projector.js.map +1 -1
- package/daemon/dist/domain/spec-validation-advisory.d.ts +17 -0
- package/daemon/dist/domain/spec-validation-advisory.d.ts.map +1 -0
- package/daemon/dist/domain/spec-validation-advisory.js +38 -0
- package/daemon/dist/domain/spec-validation-advisory.js.map +1 -0
- package/daemon/dist/domain/successor-session-launcher.d.ts +7 -0
- package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.js +38 -1
- package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
- package/daemon/dist/domain/topology-defaults-installer.d.ts +47 -0
- package/daemon/dist/domain/topology-defaults-installer.d.ts.map +1 -0
- package/daemon/dist/domain/topology-defaults-installer.js +92 -0
- package/daemon/dist/domain/topology-defaults-installer.js.map +1 -0
- package/daemon/dist/domain/transcript-rotation.d.ts +4 -0
- package/daemon/dist/domain/transcript-rotation.d.ts.map +1 -1
- package/daemon/dist/domain/transcript-rotation.js +61 -3
- package/daemon/dist/domain/transcript-rotation.js.map +1 -1
- package/daemon/dist/domain/transcript-store.d.ts.map +1 -1
- package/daemon/dist/domain/transcript-store.js +9 -2
- package/daemon/dist/domain/transcript-store.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +3 -0
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts +10 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.js +39 -0
- package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
- package/daemon/dist/routes/context-packs.d.ts.map +1 -1
- package/daemon/dist/routes/context-packs.js +205 -0
- package/daemon/dist/routes/context-packs.js.map +1 -1
- package/daemon/dist/routes/seat.d.ts.map +1 -1
- package/daemon/dist/routes/seat.js +11 -0
- package/daemon/dist/routes/seat.js.map +1 -1
- package/daemon/dist/routes/sessions.js +55 -0
- package/daemon/dist/routes/sessions.js.map +1 -1
- package/daemon/dist/routes/transport.d.ts.map +1 -1
- package/daemon/dist/routes/transport.js +12 -3
- package/daemon/dist/routes/transport.js.map +1 -1
- package/daemon/dist/seat-recap-store-surface.d.ts +2 -0
- package/daemon/dist/seat-recap-store-surface.d.ts.map +1 -0
- package/daemon/dist/seat-recap-store-surface.js +6 -0
- package/daemon/dist/seat-recap-store-surface.js.map +1 -0
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +37 -6
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/docs/reference/chain-file-convention.md +115 -0
- package/daemon/docs/reference/legacy-topology-migration.md +53 -0
- package/daemon/docs/reference/refocus-channel.md +80 -0
- package/daemon/docs/reference/sdlc-conventions.md +24 -0
- package/daemon/specs/agents/shared/skills/core/attention-queue/SKILL.md +1 -1
- package/daemon/specs/agents/shared/skills/core/human-in-the-loop/SKILL.md +1 -1
- package/daemon/specs/agents/shared/skills/core/session-source-fork/SKILL.md +1 -1
- package/daemon/specs/agents/shared/skills/core/watchdog/SKILL.md +4 -4
- package/daemon/specs/agents/shared/skills/pods/development-team/SKILL.md +8 -0
- package/daemon/specs/agents/shared/skills/pods/orchestration-team/SKILL.md +72 -31
- package/daemon/specs/agents/shared/skills/pods/oversight-team/SKILL.md +106 -0
- package/daemon/specs/agents/shared/skills/process/context-engineering/SKILL.md +479 -0
- package/daemon/specs/agents/shared/skills/process/test-driven-development/SKILL.md +9 -0
- package/daemon/specs/rigs/launch/demo/project-example/README.md +25 -0
- package/daemon/specs/rigs/launch/demo/project-example/missions/improve-onboarding/SPEC.md +19 -0
- package/daemon/specs/rigs/launch/demo/project-example/missions/improve-onboarding/slices/01-shorten-first-run/PROGRESS.md +6 -0
- package/daemon/specs/rigs/launch/demo/project-example/missions/improve-onboarding/slices/01-shorten-first-run/PROOF.md +7 -0
- package/daemon/specs/rigs/launch/demo/project-example/missions/improve-onboarding/slices/01-shorten-first-run/SPEC.md +31 -0
- package/daemon/specs/rigs/preview/product-team/topology/instance/CRAFT.md +24 -0
- package/daemon/specs/rigs/preview/product-team/topology/rig/CRAFT.md +21 -0
- package/daemon/specs/rigs/preview/product-team/topology/rig/ORCHESTRATION-CRAFT.md +50 -0
- package/daemon/specs/rigs/preview/product-team/topology/seats/dev1-qa/CRAFT.md +13 -0
- package/daemon/specs/rigs/preview/product-team/topology/seats/orch1-lead/CRAFT.md +17 -0
- package/daemon/specs/rigs/preview/product-team/topology/seats/rev1-r1/CRAFT.md +17 -0
- package/daemon/specs/rigs/preview/product-team/topology/seats/rev1-r2/CRAFT.md +15 -0
- package/dist/build-info.js +3 -3
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +8 -0
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +353 -48
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/proof.d.ts.map +1 -1
- package/dist/commands/proof.js +70 -12
- package/dist/commands/proof.js.map +1 -1
- package/dist/commands/rig.d.ts.map +1 -1
- package/dist/commands/rig.js +5 -0
- package/dist/commands/rig.js.map +1 -1
- package/dist/commands/transcript.d.ts.map +1 -1
- package/dist/commands/transcript.js +25 -1
- package/dist/commands/transcript.js.map +1 -1
- package/dist/commands/walk.d.ts.map +1 -1
- package/dist/commands/walk.js +279 -26
- package/dist/commands/walk.js.map +1 -1
- package/dist/config-store.d.ts +15 -1
- package/dist/config-store.d.ts.map +1 -1
- package/dist/config-store.js +35 -1
- package/dist/config-store.js.map +1 -1
- package/dist/lib/scope/logical-checkbox.d.ts +26 -0
- package/dist/lib/scope/logical-checkbox.d.ts.map +1 -0
- package/dist/lib/scope/logical-checkbox.js +65 -0
- package/dist/lib/scope/logical-checkbox.js.map +1 -0
- package/dist/lib/scope/scaffold-placeholder.d.ts +22 -0
- package/dist/lib/scope/scaffold-placeholder.d.ts.map +1 -1
- package/dist/lib/scope/scaffold-placeholder.js +24 -0
- package/dist/lib/scope/scaffold-placeholder.js.map +1 -1
- package/dist/lib/topology-trace.d.ts +36 -0
- package/dist/lib/topology-trace.d.ts.map +1 -0
- package/dist/lib/topology-trace.js +91 -0
- package/dist/lib/topology-trace.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/adapters/claude-code-adapter.js +7 -4
- package/node_modules/@openrig/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/adapters/claude-resume.js +2 -2
- package/node_modules/@openrig/daemon/dist/adapters/claude-resume.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/adapters/tmux.d.ts +10 -2
- package/node_modules/@openrig/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/adapters/tmux.js +27 -7
- package/node_modules/@openrig/daemon/dist/adapters/tmux.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/adapters/yolo-mode.d.ts +18 -0
- package/node_modules/@openrig/daemon/dist/adapters/yolo-mode.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/adapters/yolo-mode.js +21 -0
- package/node_modules/@openrig/daemon/dist/adapters/yolo-mode.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/build-info.js +3 -3
- package/node_modules/@openrig/daemon/dist/domain/codex-thread-id.d.ts +95 -0
- package/node_modules/@openrig/daemon/dist/domain/codex-thread-id.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/codex-thread-id.js +171 -2
- package/node_modules/@openrig/daemon/dist/domain/codex-thread-id.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/context-packs/context-pack-types.d.ts +48 -0
- package/node_modules/@openrig/daemon/dist/domain/context-packs/context-pack-types.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/context-packs/context-pack-types.js +8 -0
- package/node_modules/@openrig/daemon/dist/domain/context-packs/context-pack-types.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/context-packs/manifest-parser.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/context-packs/manifest-parser.js +234 -2
- package/node_modules/@openrig/daemon/dist/domain/context-packs/manifest-parser.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/context-packs/probe-eval-bridge.d.ts +34 -0
- package/node_modules/@openrig/daemon/dist/domain/context-packs/probe-eval-bridge.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/context-packs/probe-eval-bridge.js +38 -0
- package/node_modules/@openrig/daemon/dist/domain/context-packs/probe-eval-bridge.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-composer.d.ts +49 -0
- package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-composer.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-composer.js +125 -0
- package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-composer.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-source-resolver.d.ts +53 -0
- package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-source-resolver.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-source-resolver.js +129 -0
- package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-source-resolver.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/context-packs/seat-recap-store.d.ts +48 -0
- package/node_modules/@openrig/daemon/dist/domain/context-packs/seat-recap-store.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/context-packs/seat-recap-store.js +123 -0
- package/node_modules/@openrig/daemon/dist/domain/context-packs/seat-recap-store.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/markdown-address.d.ts +56 -0
- package/node_modules/@openrig/daemon/dist/domain/markdown-address.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/markdown-address.js +188 -0
- package/node_modules/@openrig/daemon/dist/domain/markdown-address.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/model-divergence/current-generation-record.d.ts +8 -2
- package/node_modules/@openrig/daemon/dist/domain/model-divergence/current-generation-record.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/model-divergence/current-generation-record.js +1 -1
- package/node_modules/@openrig/daemon/dist/domain/model-divergence/current-generation-record.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/model-divergence/model-divergence-monitor.d.ts +33 -21
- package/node_modules/@openrig/daemon/dist/domain/model-divergence/model-divergence-monitor.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/model-divergence/model-divergence-monitor.js +64 -55
- package/node_modules/@openrig/daemon/dist/domain/model-divergence/model-divergence-monitor.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/periodic-snapshot-scheduler.d.ts +4 -0
- package/node_modules/@openrig/daemon/dist/domain/periodic-snapshot-scheduler.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/periodic-snapshot-scheduler.js +5 -1
- package/node_modules/@openrig/daemon/dist/domain/periodic-snapshot-scheduler.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/permission-drift-observer.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/permission-drift-observer.js +6 -1
- package/node_modules/@openrig/daemon/dist/domain/permission-drift-observer.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/process-census.d.ts +25 -0
- package/node_modules/@openrig/daemon/dist/domain/process-census.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/process-census.js +47 -0
- package/node_modules/@openrig/daemon/dist/domain/process-census.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/resume-metadata-refresher.d.ts +31 -2
- package/node_modules/@openrig/daemon/dist/domain/resume-metadata-refresher.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/resume-metadata-refresher.js +64 -29
- package/node_modules/@openrig/daemon/dist/domain/resume-metadata-refresher.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/review/compose.d.ts +5 -26
- package/node_modules/@openrig/daemon/dist/domain/review/compose.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/review/compose.js +31 -57
- package/node_modules/@openrig/daemon/dist/domain/review/compose.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/rigspec-instantiator.d.ts +4 -0
- package/node_modules/@openrig/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/rigspec-instantiator.js +39 -0
- package/node_modules/@openrig/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/rigspec-schema.js +19 -3
- package/node_modules/@openrig/daemon/dist/domain/rigspec-schema.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/scope/logical-checkbox.d.ts +26 -0
- package/node_modules/@openrig/daemon/dist/domain/scope/logical-checkbox.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/scope/logical-checkbox.js +65 -0
- package/node_modules/@openrig/daemon/dist/domain/scope/logical-checkbox.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/scope/plan-lock-artifacts.d.ts +1 -1
- package/node_modules/@openrig/daemon/dist/domain/scope/plan-lock-artifacts.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/scope/plan-lock-artifacts.js +2 -2
- package/node_modules/@openrig/daemon/dist/domain/scope/plan-lock-artifacts.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/scope/scaffold-placeholder.d.ts +22 -0
- package/node_modules/@openrig/daemon/dist/domain/scope/scaffold-placeholder.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/scope/scaffold-placeholder.js +24 -0
- package/node_modules/@openrig/daemon/dist/domain/scope/scaffold-placeholder.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/seat-activity-service.d.ts +1 -0
- package/node_modules/@openrig/daemon/dist/domain/seat-activity-service.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/seat-activity-service.js +39 -23
- package/node_modules/@openrig/daemon/dist/domain/seat-activity-service.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/seat-handover-service.d.ts +22 -0
- package/node_modules/@openrig/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/seat-handover-service.js +32 -2
- package/node_modules/@openrig/daemon/dist/domain/seat-handover-service.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/session-transport.d.ts +8 -0
- package/node_modules/@openrig/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/session-transport.js +116 -0
- package/node_modules/@openrig/daemon/dist/domain/session-transport.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/shell-classifier.d.ts +23 -0
- package/node_modules/@openrig/daemon/dist/domain/shell-classifier.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/shell-classifier.js +36 -0
- package/node_modules/@openrig/daemon/dist/domain/shell-classifier.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/slices/slice-detail-projector.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/slices/slice-detail-projector.js +10 -1
- package/node_modules/@openrig/daemon/dist/domain/slices/slice-detail-projector.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/spec-validation-advisory.d.ts +17 -0
- package/node_modules/@openrig/daemon/dist/domain/spec-validation-advisory.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/spec-validation-advisory.js +38 -0
- package/node_modules/@openrig/daemon/dist/domain/spec-validation-advisory.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/successor-session-launcher.d.ts +7 -0
- package/node_modules/@openrig/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/successor-session-launcher.js +38 -1
- package/node_modules/@openrig/daemon/dist/domain/successor-session-launcher.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/topology-defaults-installer.d.ts +47 -0
- package/node_modules/@openrig/daemon/dist/domain/topology-defaults-installer.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/topology-defaults-installer.js +92 -0
- package/node_modules/@openrig/daemon/dist/domain/topology-defaults-installer.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/transcript-rotation.d.ts +4 -0
- package/node_modules/@openrig/daemon/dist/domain/transcript-rotation.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/transcript-rotation.js +61 -3
- package/node_modules/@openrig/daemon/dist/domain/transcript-rotation.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/transcript-store.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/transcript-store.js +9 -2
- package/node_modules/@openrig/daemon/dist/domain/transcript-store.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/types.d.ts +3 -0
- package/node_modules/@openrig/daemon/dist/domain/types.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/user-settings/settings-store.d.ts +10 -1
- package/node_modules/@openrig/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/user-settings/settings-store.js +39 -0
- package/node_modules/@openrig/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/context-packs.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/context-packs.js +205 -0
- package/node_modules/@openrig/daemon/dist/routes/context-packs.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/seat.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/seat.js +11 -0
- package/node_modules/@openrig/daemon/dist/routes/seat.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/sessions.js +55 -0
- package/node_modules/@openrig/daemon/dist/routes/sessions.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/transport.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/transport.js +12 -3
- package/node_modules/@openrig/daemon/dist/routes/transport.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/seat-recap-store-surface.d.ts +2 -0
- package/node_modules/@openrig/daemon/dist/seat-recap-store-surface.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/seat-recap-store-surface.js +6 -0
- package/node_modules/@openrig/daemon/dist/seat-recap-store-surface.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/startup.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/startup.js +37 -6
- package/node_modules/@openrig/daemon/dist/startup.js.map +1 -1
- package/node_modules/@openrig/daemon/package.json +6 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
2
2
|
import { shellQuote } from "./shell-quote.js";
|
|
3
|
-
import { claudePostureFlag } from "./yolo-mode.js";
|
|
3
|
+
import { claudePostureFlag, claudeClassicRendererEnvPrefix } from "./yolo-mode.js";
|
|
4
4
|
import { assessNativeResumeProbe } from "../domain/native-resume-probe.js";
|
|
5
5
|
import { observeClaudePermission } from "../domain/permission-drift.js";
|
|
6
6
|
const CLAUDE_TYPES = new Set(["claude_name", "claude_id"]);
|
|
@@ -36,7 +36,7 @@ export class ClaudeResumeAdapter {
|
|
|
36
36
|
const modelArg = model ? ` --model ${shellQuote(model)}` : "";
|
|
37
37
|
const permissionMode = claudePostureFlag(process.env, resolvedPosture);
|
|
38
38
|
const appliedLaunch = observeClaudePermission(permissionMode);
|
|
39
|
-
const cmd =
|
|
39
|
+
const cmd = `${claudeClassicRendererEnvPrefix(process.env)}claude ${permissionMode}${modelArg} --resume ${shellQuote(resumeToken)}`;
|
|
40
40
|
const textResult = await this.tmux.sendText(tmuxSessionName, cmd);
|
|
41
41
|
if (!textResult.ok) {
|
|
42
42
|
// sendText failed — nothing in the buffer, no cleanup needed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-resume.js","sourceRoot":"","sources":["../../src/adapters/claude-resume.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAA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AAO;YACL,EAAE,EAAE,KAAK;YACT,IAAI,EAAE,eAAe;YACrB,OAAO,EAAE,qEAAqE;SAC/E,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -104,8 +104,12 @@ export declare class TmuxAdapter {
|
|
|
104
104
|
*
|
|
105
105
|
* Optional `cwd`/`env` inject the successor's start-directory + OpenRig identity env onto the reused
|
|
106
106
|
* pane via respawn-pane's `-c`/`-e` flags (tmux ≥3.0), the SAME mechanism createSession uses. Any flags
|
|
107
|
-
* precede the command, which always stays LAST.
|
|
108
|
-
*
|
|
107
|
+
* precede the command, which always stays LAST.
|
|
108
|
+
*
|
|
109
|
+
* ⚠ KI-14: omitting `command` re-runs the pane's CREATION (or last-respawn) command — which is the
|
|
110
|
+
* default shell ONLY for panes createSession made. Adopted/hand-recovered panes can carry a full
|
|
111
|
+
* harness invocation there (`codex … resume <old-token>`), so an undefined respawn silently boots the
|
|
112
|
+
* OLD context. Callers that need a blank pane must pass an explicit shell (see getDefaultShell). */
|
|
109
113
|
respawnPane(paneTarget: string, command?: string, opts?: {
|
|
110
114
|
cwd?: string;
|
|
111
115
|
env?: Record<string, string>;
|
|
@@ -124,6 +128,10 @@ export declare class TmuxAdapter {
|
|
|
124
128
|
signalPaneProcess(paneId: string, signal: "TERM" | "KILL"): Promise<TmuxResult>;
|
|
125
129
|
/** Get the PID of the foreground process in a pane. Returns null if unavailable. */
|
|
126
130
|
getPanePid(paneId: string): Promise<number | null>;
|
|
131
|
+
/** KI-14: the server's `default-shell` option — what a createSession pane runs when no command is
|
|
132
|
+
* given. Used to make a respawn EXPLICIT about the blank shell instead of inheriting whatever
|
|
133
|
+
* command the pane was created with. Returns null if unavailable (caller falls back). */
|
|
134
|
+
getDefaultShell(): Promise<string | null>;
|
|
127
135
|
/** Get the current foreground command in a pane. Returns null if unavailable. */
|
|
128
136
|
getPaneCommand(paneId: string): Promise<string | null>;
|
|
129
137
|
/** OPR.0.4.3.28 Part C — presence-only check for a session-env variable.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tmux.d.ts","sourceRoot":"","sources":["../../src/adapters/tmux.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,MAAM,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxD,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpC,+EAA+E;IAC/E,OAAO,IAAI,MAAM,CAAC;IAClB,uFAAuF;IACvF,UAAU,IAAI,MAAM,CAAC;CACtB;
|
|
1
|
+
{"version":3,"file":"tmux.d.ts","sourceRoot":"","sources":["../../src/adapters/tmux.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,MAAM,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxD,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpC,+EAA+E;IAC/E,OAAO,IAAI,MAAM,CAAC;IAClB,uFAAuF;IACvF,UAAU,IAAI,MAAM,CAAC;CACtB;AAwBD,MAAM,MAAM,UAAU,GAClB;IAAE,EAAE,EAAE,IAAI,CAAA;CAAE,GACZ;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAEjD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;I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;;;;;OAoBG;IACG,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAelE;;;;;;;OAOG;IACG,WAAW,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;IAU1C;;;;;OAKG;IACG,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;CASxE"}
|
|
@@ -13,12 +13,15 @@ function defaultTmuxFileOps() {
|
|
|
13
13
|
/**
|
|
14
14
|
* Payloads at or below this byte size go through the inline `send-keys -l`
|
|
15
15
|
* path. Larger payloads are written to a temp file and delivered via a tmux
|
|
16
|
-
* paste-buffer
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
16
|
+
* paste-buffer. TWO ceilings bound the inline path, and the binding one is
|
|
17
|
+
* tmux's own: tmux rejects long command lines with "command too long" at a
|
|
18
|
+
* measured ceiling of ~9.4KB — far below the OS per-arg limit (Linux
|
|
19
|
+
* MAX_ARG_STRLEN ~128KB) the prior 100KB threshold was sized against. A
|
|
20
|
+
* 19.8KB world-install piece failed live on exactly that gap (Test-A
|
|
21
|
+
* preflight repair, 2026-08-24). 8KB keeps normal command/control text
|
|
22
|
+
* inline and routes everything above through the proven buffer path.
|
|
20
23
|
*/
|
|
21
|
-
const LARGE_PAYLOAD_THRESHOLD_BYTES =
|
|
24
|
+
const LARGE_PAYLOAD_THRESHOLD_BYTES = 8 * 1024;
|
|
22
25
|
const SESSION_FORMAT = "#{session_name}\t#{session_windows}\t#{session_created}\t#{session_attached}";
|
|
23
26
|
const WINDOW_FORMAT = "#{window_index}\t#{window_name}\t#{window_panes}\t#{window_active}";
|
|
24
27
|
const PANE_FORMAT = "#{pane_id}\t#{pane_index}\t#{pane_current_path}\t#{pane_width}\t#{pane_height}\t#{pane_active}";
|
|
@@ -339,8 +342,12 @@ export class TmuxAdapter {
|
|
|
339
342
|
*
|
|
340
343
|
* Optional `cwd`/`env` inject the successor's start-directory + OpenRig identity env onto the reused
|
|
341
344
|
* pane via respawn-pane's `-c`/`-e` flags (tmux ≥3.0), the SAME mechanism createSession uses. Any flags
|
|
342
|
-
* precede the command, which always stays LAST.
|
|
343
|
-
*
|
|
345
|
+
* precede the command, which always stays LAST.
|
|
346
|
+
*
|
|
347
|
+
* ⚠ KI-14: omitting `command` re-runs the pane's CREATION (or last-respawn) command — which is the
|
|
348
|
+
* default shell ONLY for panes createSession made. Adopted/hand-recovered panes can carry a full
|
|
349
|
+
* harness invocation there (`codex … resume <old-token>`), so an undefined respawn silently boots the
|
|
350
|
+
* OLD context. Callers that need a blank pane must pass an explicit shell (see getDefaultShell). */
|
|
344
351
|
async respawnPane(paneTarget, command, opts) {
|
|
345
352
|
const cwdFlag = opts?.cwd != null ? ` -c ${shellQuote(opts.cwd)}` : "";
|
|
346
353
|
const envFlags = opts?.env
|
|
@@ -409,6 +416,19 @@ export class TmuxAdapter {
|
|
|
409
416
|
return null;
|
|
410
417
|
}
|
|
411
418
|
}
|
|
419
|
+
/** KI-14: the server's `default-shell` option — what a createSession pane runs when no command is
|
|
420
|
+
* given. Used to make a respawn EXPLICIT about the blank shell instead of inheriting whatever
|
|
421
|
+
* command the pane was created with. Returns null if unavailable (caller falls back). */
|
|
422
|
+
async getDefaultShell() {
|
|
423
|
+
try {
|
|
424
|
+
const output = await this.exec(`tmux show-options -gv default-shell`);
|
|
425
|
+
const trimmed = output.trim();
|
|
426
|
+
return trimmed || null;
|
|
427
|
+
}
|
|
428
|
+
catch {
|
|
429
|
+
return null;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
412
432
|
/** Get the current foreground command in a pane. Returns null if unavailable. */
|
|
413
433
|
async getPaneCommand(paneId) {
|
|
414
434
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tmux.js","sourceRoot":"","sources":["../../src/adapters/tmux.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,WAAW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AE,MAAc;QAC/C,MAAM,GAAG,GAAG,yBAAyB,UAAU,CAAC,MAAM,CAAC,OAAO,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;QACnF,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACrB,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC;QACtB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,kBAAkB,CAAC,GAAG,CAAC,CAAC;QACjC,CAAC;IACH,CAAC;CACF"}
|
|
@@ -20,4 +20,22 @@ export declare function codexPostureArg(profileArg: string, env?: NodeJS.Process
|
|
|
20
20
|
/** Pi RESOURCE TRUST (Pi's --approve/--no-approve govern resource trust, NOT a permission policy):
|
|
21
21
|
* YOLO forces `approve`; otherwise the configured posture (default `no-approve`). */
|
|
22
22
|
export declare function piTrust(configured: "approve" | "no-approve" | undefined, env?: NodeJS.ProcessEnv, resolvedPosture?: ResolvedLaunchPosture): "approve" | "no-approve";
|
|
23
|
+
/**
|
|
24
|
+
* OPR.0.5.3.1 — Claude classic-renderer launch env prefix.
|
|
25
|
+
*
|
|
26
|
+
* Claude Code's fullscreen renderer draws to the terminal ALTERNATE screen, which
|
|
27
|
+
* emits no scrollback — so tmux capture-pane stores nothing and `rig transcript`
|
|
28
|
+
* goes thin. Launching with CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN=1 forces the
|
|
29
|
+
* classic renderer and restores native scrollback (and same-pane handover
|
|
30
|
+
* scroll-preservation). Applied on EVERY managed Claude launch path (fresh /
|
|
31
|
+
* resume / fork / restore) so behaviour is uniform, never path-dependent —
|
|
32
|
+
* mirroring the claudePostureFlag pattern.
|
|
33
|
+
*
|
|
34
|
+
* Default ON. Config override: set OPENRIG_CLAUDE_DISABLE_ALTERNATE_SCREEN=0 (or
|
|
35
|
+
* "false") to opt back into the fullscreen renderer (knowingly forgoing scrollback).
|
|
36
|
+
*
|
|
37
|
+
* Returns a command PREFIX ("VAR=1 ", trailing space) to prepend to the `claude`
|
|
38
|
+
* launch command, or "" when disabled (then the command is byte-identical to pre-OPR.0.5.3.1).
|
|
39
|
+
*/
|
|
40
|
+
export declare function claudeClassicRendererEnvPrefix(env?: NodeJS.ProcessEnv): string;
|
|
23
41
|
//# sourceMappingURL=yolo-mode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yolo-mode.d.ts","sourceRoot":"","sources":["../../src/adapters/yolo-mode.ts"],"names":[],"mappings":"AAcA;;;;wEAIwE;AACxE,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,aAAa,CAAC;AAE5D,wBAAgB,WAAW,CACzB,GAAG,GAAE,MAAM,CAAC,UAAwB,EACpC,eAAe,CAAC,EAAE,qBAAqB,GACtC,OAAO,CAIT;AAOD;2EAC2E;AAC3E,wBAAgB,iBAAiB,CAC/B,GAAG,GAAE,MAAM,CAAC,UAAwB,EACpC,eAAe,CAAC,EAAE,qBAAqB,GACtC,MAAM,CAER;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,UAAU,EAAE,MAAM,EAClB,GAAG,GAAE,MAAM,CAAC,UAAwB,EACpC,eAAe,CAAC,EAAE,qBAAqB,GACtC,MAAM,CAGR;AAED;sFACsF;AACtF,wBAAgB,OAAO,CACrB,UAAU,EAAE,SAAS,GAAG,YAAY,GAAG,SAAS,EAChD,GAAG,GAAE,MAAM,CAAC,UAAwB,EACpC,eAAe,CAAC,EAAE,qBAAqB,GACtC,SAAS,GAAG,YAAY,CAI1B"}
|
|
1
|
+
{"version":3,"file":"yolo-mode.d.ts","sourceRoot":"","sources":["../../src/adapters/yolo-mode.ts"],"names":[],"mappings":"AAcA;;;;wEAIwE;AACxE,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,aAAa,CAAC;AAE5D,wBAAgB,WAAW,CACzB,GAAG,GAAE,MAAM,CAAC,UAAwB,EACpC,eAAe,CAAC,EAAE,qBAAqB,GACtC,OAAO,CAIT;AAOD;2EAC2E;AAC3E,wBAAgB,iBAAiB,CAC/B,GAAG,GAAE,MAAM,CAAC,UAAwB,EACpC,eAAe,CAAC,EAAE,qBAAqB,GACtC,MAAM,CAER;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,UAAU,EAAE,MAAM,EAClB,GAAG,GAAE,MAAM,CAAC,UAAwB,EACpC,eAAe,CAAC,EAAE,qBAAqB,GACtC,MAAM,CAGR;AAED;sFACsF;AACtF,wBAAgB,OAAO,CACrB,UAAU,EAAE,SAAS,GAAG,YAAY,GAAG,SAAS,EAChD,GAAG,GAAE,MAAM,CAAC,UAAwB,EACpC,eAAe,CAAC,EAAE,qBAAqB,GACtC,SAAS,GAAG,YAAY,CAI1B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,8BAA8B,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,MAAM,CAG3F"}
|
|
@@ -46,4 +46,25 @@ export function piTrust(configured, env = process.env, resolvedPosture) {
|
|
|
46
46
|
// full_bypass policy forces full resource trust exactly as global YOLO does.
|
|
47
47
|
return yoloEnabled(env, resolvedPosture) ? "approve" : configured ?? "no-approve";
|
|
48
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* OPR.0.5.3.1 — Claude classic-renderer launch env prefix.
|
|
51
|
+
*
|
|
52
|
+
* Claude Code's fullscreen renderer draws to the terminal ALTERNATE screen, which
|
|
53
|
+
* emits no scrollback — so tmux capture-pane stores nothing and `rig transcript`
|
|
54
|
+
* goes thin. Launching with CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN=1 forces the
|
|
55
|
+
* classic renderer and restores native scrollback (and same-pane handover
|
|
56
|
+
* scroll-preservation). Applied on EVERY managed Claude launch path (fresh /
|
|
57
|
+
* resume / fork / restore) so behaviour is uniform, never path-dependent —
|
|
58
|
+
* mirroring the claudePostureFlag pattern.
|
|
59
|
+
*
|
|
60
|
+
* Default ON. Config override: set OPENRIG_CLAUDE_DISABLE_ALTERNATE_SCREEN=0 (or
|
|
61
|
+
* "false") to opt back into the fullscreen renderer (knowingly forgoing scrollback).
|
|
62
|
+
*
|
|
63
|
+
* Returns a command PREFIX ("VAR=1 ", trailing space) to prepend to the `claude`
|
|
64
|
+
* launch command, or "" when disabled (then the command is byte-identical to pre-OPR.0.5.3.1).
|
|
65
|
+
*/
|
|
66
|
+
export function claudeClassicRendererEnvPrefix(env = process.env) {
|
|
67
|
+
const v = env.OPENRIG_CLAUDE_DISABLE_ALTERNATE_SCREEN;
|
|
68
|
+
return v === "0" || v === "false" ? "" : "CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN=1 ";
|
|
69
|
+
}
|
|
49
70
|
//# sourceMappingURL=yolo-mode.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yolo-mode.js","sourceRoot":"","sources":["../../src/adapters/yolo-mode.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,EAAE;AACF,mGAAmG;AACnG,kGAAkG;AAClG,8EAA8E;AAC9E,kEAAkE;AAClE,6FAA6F;AAC7F,uEAAuE;AACvE,0EAA0E;AAC1E,qFAAqF;AACrF,oGAAoG;AACpG,8FAA8F;AAC9F,wGAAwG;AASxG,MAAM,UAAU,WAAW,CACzB,MAAyB,OAAO,CAAC,GAAG,EACpC,eAAuC;IAEvC,IAAI,eAAe;QAAE,OAAO,eAAe,KAAK,aAAa,CAAC;IAC9D,MAAM,CAAC,GAAG,GAAG,CAAC,YAAY,CAAC;IAC3B,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,MAAM,CAAC;AACnC,CAAC;AAED,gGAAgG;AAChG,gGAAgG;AAChG,iGAAiG;AACjG,wEAAwE;AAExE;2EAC2E;AAC3E,MAAM,UAAU,iBAAiB,CAC/B,MAAyB,OAAO,CAAC,GAAG,EACpC,eAAuC;IAEvC,OAAO,WAAW,CAAC,GAAG,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,gCAAgC,CAAC,CA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WAAW,CAAC,GAAG,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,gCAAgC,CAAC,CAAC,CAAC,+BAA+B,CAAC;AAChH,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,eAAe,CAC7B,UAAkB,EAClB,MAAyB,OAAO,CAAC,GAAG,EACpC,eAAuC;IAEvC,IAAI,WAAW,CAAC,GAAG,EAAE,eAAe,CAAC;QAAE,OAAO,wBAAwB,CAAC;IACvE,OAAO,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,qBAAqB,CAAC;AACzD,CAAC;AAED;sFACsF;AACtF,MAAM,UAAU,OAAO,CACrB,UAAgD,EAChD,MAAyB,OAAO,CAAC,GAAG,EACpC,eAAuC;IAEvC,sFAAsF;IACtF,6EAA6E;IAC7E,OAAO,WAAW,CAAC,GAAG,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,IAAI,YAAY,CAAC;AACpF,CAAC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,8BAA8B,CAAC,MAAyB,OAAO,CAAC,GAAG;IACjF,MAAM,CAAC,GAAG,GAAG,CAAC,uCAAuC,CAAC;IACtD,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,yCAAyC,CAAC;AACrF,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// GENERATED by scripts/build-package.sh — the packaged build-identity stamp.
|
|
2
2
|
export const BUILD_INFO = {
|
|
3
|
-
semver: "0.5.
|
|
4
|
-
commit: "
|
|
3
|
+
semver: "0.5.3",
|
|
4
|
+
commit: "e6add8b86b4bd008b8d46ec31a16fb09aff3b8f2",
|
|
5
5
|
dirty: false,
|
|
6
|
-
builtAt: "2026-08-
|
|
6
|
+
builtAt: "2026-08-26T02:55:45Z",
|
|
7
7
|
};
|
|
8
8
|
export function stampFields(info = BUILD_INFO) {
|
|
9
9
|
if (!info.commit) return {};
|
|
@@ -4,4 +4,99 @@
|
|
|
4
4
|
export type ResolveHomeDirByPid = (pid: number) => Promise<string | undefined> | string | undefined;
|
|
5
5
|
export declare function defaultResolveHomeDirByPid(pid: number): Promise<string | undefined>;
|
|
6
6
|
export declare function readCodexThreadIdFromCandidateHomes(pid: number, candidateHomes: Array<string | undefined>, exists?: (path: string) => boolean): string | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* OPR.0.5.3.10 (addendum) — thread-id resolution WITHOUT the per-call PID-home
|
|
9
|
+
* subprocess. The measured amplifier: 298 `codex_thread_id.resolve_home` spans
|
|
10
|
+
* in the last 500 slow spans (mean 8.24s, max 36.72s) — a `ps eww` per pid,
|
|
11
|
+
* per attempt, per tick, when nearly every codex seat's logs live under the
|
|
12
|
+
* DEFAULT home.
|
|
13
|
+
*
|
|
14
|
+
* Order of costs:
|
|
15
|
+
* 1. DEFAULT home first — a pure file/sqlite read, ZERO subprocess. Hit = done.
|
|
16
|
+
* 2. Bounded PID-keyed cache of previously RESOLVED non-default homes — a
|
|
17
|
+
* pid's HOME does not change for the life of the process. Hit = file read.
|
|
18
|
+
* 3. Only then the subprocess resolver — and its SUCCESS is cached (bounded,
|
|
19
|
+
* FIFO eviction). A FAILED resolution is never cached: the next call may
|
|
20
|
+
* retry (a dying `ps` under load must not poison the pid).
|
|
21
|
+
*/
|
|
22
|
+
export declare class CodexThreadIdResolver {
|
|
23
|
+
private readonly opts;
|
|
24
|
+
/** Bounded (pid,identity)→home cache of SUCCESSFUL resolutions — INCLUDING
|
|
25
|
+
* the default home (a stable default-home pid with no thread log must not
|
|
26
|
+
* re-run `ps eww` every poll). KEYED BY IDENTITY (r2 round-3): a reused
|
|
27
|
+
* pid carries a different startedAt, so it structurally MISSES the retired
|
|
28
|
+
* occupant's entry — no read-time mismatch check to get wrong, and a late
|
|
29
|
+
* stale-probe completion writes only its own key, never clobbering the
|
|
30
|
+
* newer occupant's.
|
|
31
|
+
*
|
|
32
|
+
* SETTLED entries never time-expire (e91d7a94 — the expiry-herd fix): a
|
|
33
|
+
* probe that STARTED strictly after the identity's lstart second closed
|
|
34
|
+
* observed the FINAL occupant of this (pid, lstart) key — same-pid
|
|
35
|
+
* same-second reuse is impossible once the second passes, and a live
|
|
36
|
+
* process's HOME cannot change — so the answer is valid for the key's
|
|
37
|
+
* lifetime and is removed only by identity mismatch (a new key) or FIFO
|
|
38
|
+
* size eviction. Probe START time is the predicate, NOT completion time
|
|
39
|
+
* (orch-lead 22:39Z): a probe started inside the second can observe the
|
|
40
|
+
* retired occupant and complete after it. UNSETTLED entries — probe
|
|
41
|
+
* started inside the ambiguous second, unparseable identity, or
|
|
42
|
+
* identity-less callers — expire after homeTtlMs (r2-B1/W-5.3-1): the
|
|
43
|
+
* TTL is their staleness bound and the finite recovery path for the
|
|
44
|
+
* same-second collision. */
|
|
45
|
+
private readonly homeByKey;
|
|
46
|
+
/** In-flight home resolution, keyed by pid+IDENTITY (r2 round-3): a known
|
|
47
|
+
* identity must never join a probe belonging to a different or
|
|
48
|
+
* identity-less occupant — under the measured 8-36s probes a pid can be
|
|
49
|
+
* reused MID-PROBE, and pid-only coalescing handed the new occupant the
|
|
50
|
+
* retired occupant's answer before the completed-cache check could run.
|
|
51
|
+
* Same (pid, identity) still coalesces onto ONE subprocess; a failure
|
|
52
|
+
* rejects all waiters of that key and caches nothing. */
|
|
53
|
+
private readonly inFlightByKey;
|
|
54
|
+
constructor(opts?: {
|
|
55
|
+
defaultHome?: string;
|
|
56
|
+
resolveHomeDirByPid?: ResolveHomeDirByPid;
|
|
57
|
+
readFromLogs?: (pid: number, homeDir: string) => string | undefined;
|
|
58
|
+
/** Bounded cache size; oldest-inserted evicts first. Default 256. */
|
|
59
|
+
maxCachedPids?: number;
|
|
60
|
+
/** Freshness bound for UNSETTLED cache entries — identity-less
|
|
61
|
+
* callers, unparseable identities, and probes that started inside
|
|
62
|
+
* the identity's ambiguous lstart second. Past it the pid re-probes;
|
|
63
|
+
* this is the finite recovery path for the same-second collision
|
|
64
|
+
* (W-5.3-1). Settled entries never consult it. Default 60s.
|
|
65
|
+
* (The former identityHomeTtlMs tier is gone — e91d7a94: ANY
|
|
66
|
+
* periodic expiry of settled entries synchronizes an unnecessary
|
|
67
|
+
* probe herd, measured live as resolve_home +20 in 1.5s.) */
|
|
68
|
+
homeTtlMs?: number;
|
|
69
|
+
/** Injectable clock (tests). */
|
|
70
|
+
now?: () => number;
|
|
71
|
+
});
|
|
72
|
+
/**
|
|
73
|
+
* Resolve a codex thread id for `pid`. IDENTITY IS REQUIRED (S10 follow-on, r1 owed item 3): the
|
|
74
|
+
* identity's start time gates every log read, so a retired occupant's rows never resolve for a
|
|
75
|
+
* reused pid. The ungated read — the pre-round-4 class S10 eliminated, safe today only by
|
|
76
|
+
* call-graph discipline — is reachable ONLY via resolveUngatedLegacy, so a NEW identity-less
|
|
77
|
+
* call site is a COMPILE error (the review-visible pin; see the codex-thread-id test).
|
|
78
|
+
*/
|
|
79
|
+
resolve(pid: number, identity: string): Promise<string | undefined>;
|
|
80
|
+
/**
|
|
81
|
+
* EXPLICIT ungated escape hatch — reads WITHOUT the identity start-time gate (a reused pid can
|
|
82
|
+
* match a retired occupant's rows). Use ONLY for genuinely identity-less callers (tests, adoption
|
|
83
|
+
* paths that carry no census identity). Every new identity-less read must NAME this method; do
|
|
84
|
+
* not re-open resolve() to an optional identity. By construction its cache entries can never be
|
|
85
|
+
* SETTLED: it delegates with identity=undefined, so minTs is undefined, the settled predicate is
|
|
86
|
+
* false, and every entry it writes stays bounded by homeTtlMs (60s) — see the settled-permanence
|
|
87
|
+
* rule (e91d7a94) on the cache above.
|
|
88
|
+
*/
|
|
89
|
+
resolveUngatedLegacy(pid: number): Promise<string | undefined>;
|
|
90
|
+
private resolveInternal;
|
|
91
|
+
private cacheHome;
|
|
92
|
+
}
|
|
93
|
+
/** Parse `ps lstart` ("Sun Aug 23 19:30:00 2026", local time) to epoch
|
|
94
|
+
* SECONDS. The reader gates STRICTLY (`ts > startTs`, r2 round-6): lstart
|
|
95
|
+
* carries no subsecond component, so ownership of a row INSIDE the start
|
|
96
|
+
* second is undecidable — retired A can log at ts == B.startTs in the same
|
|
97
|
+
* second B reuses the pid. The ambiguous second fails CLOSED (honest
|
|
98
|
+
* INDETERMINATE; a genuinely-current same-second row resolves one poll
|
|
99
|
+
* later), rows after it resolve. Unparseable → undefined (the caller falls
|
|
100
|
+
* back to the ungated read rather than inventing a gate). */
|
|
101
|
+
export declare function lstartToMinTs(identity: string | undefined): number | undefined;
|
|
7
102
|
//# sourceMappingURL=codex-thread-id.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex-thread-id.d.ts","sourceRoot":"","sources":["../../src/domain/codex-thread-id.ts"],"names":[],"mappings":"AAUA;;oGAEoG;AACpG,MAAM,MAAM,mBAAmB,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,GAAG,MAAM,GAAG,SAAS,CAAC;AAEpG,wBAAsB,0BAA0B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAczF;AAED,wBAAgB,mCAAmC,CACjD,GAAG,EAAE,MAAM,EACX,cAAc,EAAE,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,EACzC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,GACjC,MAAM,GAAG,SAAS,CAMpB"}
|
|
1
|
+
{"version":3,"file":"codex-thread-id.d.ts","sourceRoot":"","sources":["../../src/domain/codex-thread-id.ts"],"names":[],"mappings":"AAUA;;oGAEoG;AACpG,MAAM,MAAM,mBAAmB,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,GAAG,MAAM,GAAG,SAAS,CAAC;AAEpG,wBAAsB,0BAA0B,CAAC,GAAG,EAAE,MAAM,GAAG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@@ -31,6 +31,150 @@ export function readCodexThreadIdFromCandidateHomes(pid, candidateHomes, exists)
|
|
|
31
31
|
}
|
|
32
32
|
return undefined;
|
|
33
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* OPR.0.5.3.10 (addendum) — thread-id resolution WITHOUT the per-call PID-home
|
|
36
|
+
* subprocess. The measured amplifier: 298 `codex_thread_id.resolve_home` spans
|
|
37
|
+
* in the last 500 slow spans (mean 8.24s, max 36.72s) — a `ps eww` per pid,
|
|
38
|
+
* per attempt, per tick, when nearly every codex seat's logs live under the
|
|
39
|
+
* DEFAULT home.
|
|
40
|
+
*
|
|
41
|
+
* Order of costs:
|
|
42
|
+
* 1. DEFAULT home first — a pure file/sqlite read, ZERO subprocess. Hit = done.
|
|
43
|
+
* 2. Bounded PID-keyed cache of previously RESOLVED non-default homes — a
|
|
44
|
+
* pid's HOME does not change for the life of the process. Hit = file read.
|
|
45
|
+
* 3. Only then the subprocess resolver — and its SUCCESS is cached (bounded,
|
|
46
|
+
* FIFO eviction). A FAILED resolution is never cached: the next call may
|
|
47
|
+
* retry (a dying `ps` under load must not poison the pid).
|
|
48
|
+
*/
|
|
49
|
+
export class CodexThreadIdResolver {
|
|
50
|
+
opts;
|
|
51
|
+
/** Bounded (pid,identity)→home cache of SUCCESSFUL resolutions — INCLUDING
|
|
52
|
+
* the default home (a stable default-home pid with no thread log must not
|
|
53
|
+
* re-run `ps eww` every poll). KEYED BY IDENTITY (r2 round-3): a reused
|
|
54
|
+
* pid carries a different startedAt, so it structurally MISSES the retired
|
|
55
|
+
* occupant's entry — no read-time mismatch check to get wrong, and a late
|
|
56
|
+
* stale-probe completion writes only its own key, never clobbering the
|
|
57
|
+
* newer occupant's.
|
|
58
|
+
*
|
|
59
|
+
* SETTLED entries never time-expire (e91d7a94 — the expiry-herd fix): a
|
|
60
|
+
* probe that STARTED strictly after the identity's lstart second closed
|
|
61
|
+
* observed the FINAL occupant of this (pid, lstart) key — same-pid
|
|
62
|
+
* same-second reuse is impossible once the second passes, and a live
|
|
63
|
+
* process's HOME cannot change — so the answer is valid for the key's
|
|
64
|
+
* lifetime and is removed only by identity mismatch (a new key) or FIFO
|
|
65
|
+
* size eviction. Probe START time is the predicate, NOT completion time
|
|
66
|
+
* (orch-lead 22:39Z): a probe started inside the second can observe the
|
|
67
|
+
* retired occupant and complete after it. UNSETTLED entries — probe
|
|
68
|
+
* started inside the ambiguous second, unparseable identity, or
|
|
69
|
+
* identity-less callers — expire after homeTtlMs (r2-B1/W-5.3-1): the
|
|
70
|
+
* TTL is their staleness bound and the finite recovery path for the
|
|
71
|
+
* same-second collision. */
|
|
72
|
+
homeByKey = new Map();
|
|
73
|
+
/** In-flight home resolution, keyed by pid+IDENTITY (r2 round-3): a known
|
|
74
|
+
* identity must never join a probe belonging to a different or
|
|
75
|
+
* identity-less occupant — under the measured 8-36s probes a pid can be
|
|
76
|
+
* reused MID-PROBE, and pid-only coalescing handed the new occupant the
|
|
77
|
+
* retired occupant's answer before the completed-cache check could run.
|
|
78
|
+
* Same (pid, identity) still coalesces onto ONE subprocess; a failure
|
|
79
|
+
* rejects all waiters of that key and caches nothing. */
|
|
80
|
+
inFlightByKey = new Map();
|
|
81
|
+
constructor(opts = {}) {
|
|
82
|
+
this.opts = opts;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Resolve a codex thread id for `pid`. IDENTITY IS REQUIRED (S10 follow-on, r1 owed item 3): the
|
|
86
|
+
* identity's start time gates every log read, so a retired occupant's rows never resolve for a
|
|
87
|
+
* reused pid. The ungated read — the pre-round-4 class S10 eliminated, safe today only by
|
|
88
|
+
* call-graph discipline — is reachable ONLY via resolveUngatedLegacy, so a NEW identity-less
|
|
89
|
+
* call site is a COMPILE error (the review-visible pin; see the codex-thread-id test).
|
|
90
|
+
*/
|
|
91
|
+
async resolve(pid, identity) {
|
|
92
|
+
return this.resolveInternal(pid, identity);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* EXPLICIT ungated escape hatch — reads WITHOUT the identity start-time gate (a reused pid can
|
|
96
|
+
* match a retired occupant's rows). Use ONLY for genuinely identity-less callers (tests, adoption
|
|
97
|
+
* paths that carry no census identity). Every new identity-less read must NAME this method; do
|
|
98
|
+
* not re-open resolve() to an optional identity. By construction its cache entries can never be
|
|
99
|
+
* SETTLED: it delegates with identity=undefined, so minTs is undefined, the settled predicate is
|
|
100
|
+
* false, and every entry it writes stays bounded by homeTtlMs (60s) — see the settled-permanence
|
|
101
|
+
* rule (e91d7a94) on the cache above.
|
|
102
|
+
*/
|
|
103
|
+
async resolveUngatedLegacy(pid) {
|
|
104
|
+
return this.resolveInternal(pid, undefined);
|
|
105
|
+
}
|
|
106
|
+
async resolveInternal(pid, identity) {
|
|
107
|
+
// r2 round-4: the identity's start time gates EVERY log read — a retired
|
|
108
|
+
// occupant's rows predate the current occupant's start and never match.
|
|
109
|
+
const minTs = lstartToMinTs(identity);
|
|
110
|
+
const readFromLogs = this.opts.readFromLogs
|
|
111
|
+
?? ((p, home) => readCodexThreadIdFromLogs(p, home, undefined, minTs));
|
|
112
|
+
const defaultHome = this.opts.defaultHome ?? safeUserHomeDir() ?? os.homedir();
|
|
113
|
+
const now = this.opts.now ?? Date.now;
|
|
114
|
+
const ttl = this.opts.homeTtlMs ?? 60_000;
|
|
115
|
+
// 1. Default home: no subprocess.
|
|
116
|
+
const fromDefault = readFromLogs(pid, defaultHome);
|
|
117
|
+
if (fromDefault)
|
|
118
|
+
return fromDefault;
|
|
119
|
+
// 2. FRESH cached home for this (pid, identity): no subprocess. A reused
|
|
120
|
+
// pid carries a new identity and structurally MISSES here (r1's
|
|
121
|
+
// remedy); identity-less callers get their own TTL-bounded slot. A
|
|
122
|
+
// cached DEFAULT means the subprocess already answered "default" once
|
|
123
|
+
// — step 1 covered it.
|
|
124
|
+
const key = `${pid}|${identity ?? ""}`;
|
|
125
|
+
const cached = this.homeByKey.get(key);
|
|
126
|
+
if (cached) {
|
|
127
|
+
if (cached.settled || now() - cached.at <= ttl) {
|
|
128
|
+
return cached.home === defaultHome ? undefined : readFromLogs(pid, cached.home);
|
|
129
|
+
}
|
|
130
|
+
this.homeByKey.delete(key);
|
|
131
|
+
}
|
|
132
|
+
// 3. Subprocess resolution, coalesced by the SAME (pid, identity) key:
|
|
133
|
+
// only callers holding the same identity share a probe (r2 round-3 —
|
|
134
|
+
// under the measured 8-36s probes a pid can be reused MID-PROBE, and
|
|
135
|
+
// pid-only coalescing handed the new occupant the retired occupant's
|
|
136
|
+
// answer). A completion writes only its own key, so a late stale
|
|
137
|
+
// probe never clobbers the newer occupant's entry.
|
|
138
|
+
const inFlight = this.inFlightByKey.get(key);
|
|
139
|
+
const homePromise = inFlight ?? (() => {
|
|
140
|
+
const resolver = this.opts.resolveHomeDirByPid ?? defaultResolveHomeDirByPid;
|
|
141
|
+
// Settledness is decided by the probe's START time (orch-lead 22:39Z):
|
|
142
|
+
// only a probe started strictly AFTER the identity's lstart second
|
|
143
|
+
// closed is guaranteed to observe the final occupant of this key. A
|
|
144
|
+
// deferred probe that started inside the second may describe the
|
|
145
|
+
// retired occupant even if it completes later, so its entry keeps the
|
|
146
|
+
// short TTL. Coalesced waiters inherit the ORIGINAL probe's verdict.
|
|
147
|
+
const settled = minTs !== undefined && now() >= (minTs + 1) * 1000;
|
|
148
|
+
const p = Promise.resolve(resolver(pid)).then((home) => {
|
|
149
|
+
this.inFlightByKey.delete(key);
|
|
150
|
+
if (home)
|
|
151
|
+
this.cacheHome(key, home, settled);
|
|
152
|
+
return home;
|
|
153
|
+
}, (err) => {
|
|
154
|
+
// Honest failure: nothing cached, next call retries.
|
|
155
|
+
this.inFlightByKey.delete(key);
|
|
156
|
+
throw err;
|
|
157
|
+
});
|
|
158
|
+
this.inFlightByKey.set(key, p);
|
|
159
|
+
return p;
|
|
160
|
+
})();
|
|
161
|
+
const home = await homePromise;
|
|
162
|
+
if (!home || home === defaultHome)
|
|
163
|
+
return undefined;
|
|
164
|
+
return readFromLogs(pid, home);
|
|
165
|
+
}
|
|
166
|
+
cacheHome(key, home, settled) {
|
|
167
|
+
const max = this.opts.maxCachedPids ?? 256;
|
|
168
|
+
if (!this.homeByKey.has(key) && this.homeByKey.size >= max) {
|
|
169
|
+
const oldest = this.homeByKey.keys().next().value;
|
|
170
|
+
if (oldest !== undefined)
|
|
171
|
+
this.homeByKey.delete(oldest);
|
|
172
|
+
}
|
|
173
|
+
this.homeByKey.set(key, { home, at: (this.opts.now ?? Date.now)(), settled });
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
const _resolveRequiresIdentityPin = true;
|
|
177
|
+
void _resolveRequiresIdentityPin;
|
|
34
178
|
function uniqueHomes(candidateHomes) {
|
|
35
179
|
const homes = candidateHomes.filter((home) => Boolean(home));
|
|
36
180
|
const userHome = safeUserHomeDir();
|
|
@@ -46,7 +190,12 @@ function safeUserHomeDir() {
|
|
|
46
190
|
return undefined;
|
|
47
191
|
}
|
|
48
192
|
}
|
|
49
|
-
function readCodexThreadIdFromLogs(pid, homeDir, exists) {
|
|
193
|
+
function readCodexThreadIdFromLogs(pid, homeDir, exists, minTs) {
|
|
194
|
+
// OPR.0.5.3.10 r2 round-4 — the logs key is pid:<pid>:<opaque-uuid>, so a
|
|
195
|
+
// pid-only read can return a RETIRED occupant's row to a reused pid. When
|
|
196
|
+
// the caller knows the current occupant's start time (minTs, epoch
|
|
197
|
+
// seconds), only rows written strictly AFTER its start second are provably that occupant's. Identity-less
|
|
198
|
+
// callers keep the legacy unbounded read.
|
|
50
199
|
for (const dbPath of resolveCodexLogDbPaths(homeDir, exists)) {
|
|
51
200
|
try {
|
|
52
201
|
const db = new Database(dbPath, { readonly: true });
|
|
@@ -55,8 +204,9 @@ function readCodexThreadIdFromLogs(pid, homeDir, exists) {
|
|
|
55
204
|
FROM logs
|
|
56
205
|
WHERE process_uuid LIKE ?
|
|
57
206
|
AND thread_id IS NOT NULL
|
|
207
|
+
AND ts > ?
|
|
58
208
|
ORDER BY ts DESC, ts_nanos DESC, id DESC
|
|
59
|
-
LIMIT 1`).get(`pid:${pid}
|
|
209
|
+
LIMIT 1`).get(`pid:${pid}:%`, minTs ?? 0);
|
|
60
210
|
if (row?.thread_id) {
|
|
61
211
|
return row.thread_id;
|
|
62
212
|
}
|
|
@@ -71,6 +221,25 @@ function readCodexThreadIdFromLogs(pid, homeDir, exists) {
|
|
|
71
221
|
}
|
|
72
222
|
return undefined;
|
|
73
223
|
}
|
|
224
|
+
/** Parse `ps lstart` ("Sun Aug 23 19:30:00 2026", local time) to epoch
|
|
225
|
+
* SECONDS. The reader gates STRICTLY (`ts > startTs`, r2 round-6): lstart
|
|
226
|
+
* carries no subsecond component, so ownership of a row INSIDE the start
|
|
227
|
+
* second is undecidable — retired A can log at ts == B.startTs in the same
|
|
228
|
+
* second B reuses the pid. The ambiguous second fails CLOSED (honest
|
|
229
|
+
* INDETERMINATE; a genuinely-current same-second row resolves one poll
|
|
230
|
+
* later), rows after it resolve. Unparseable → undefined (the caller falls
|
|
231
|
+
* back to the ungated read rather than inventing a gate). */
|
|
232
|
+
export function lstartToMinTs(identity) {
|
|
233
|
+
if (!identity)
|
|
234
|
+
return undefined;
|
|
235
|
+
const m = identity.match(/^\w{3}\s+(\w{3})\s+(\d+)\s+(\d{2}:\d{2}:\d{2})\s+(\d{4})$/);
|
|
236
|
+
if (!m)
|
|
237
|
+
return undefined;
|
|
238
|
+
const parsed = Date.parse(`${m[1]} ${m[2]}, ${m[4]} ${m[3]}`);
|
|
239
|
+
if (Number.isNaN(parsed))
|
|
240
|
+
return undefined;
|
|
241
|
+
return Math.floor(parsed / 1000);
|
|
242
|
+
}
|
|
74
243
|
function resolveCodexLogDbPaths(homeDir, exists) {
|
|
75
244
|
const codexDir = nodePath.join(homeDir, ".codex");
|
|
76
245
|
const discovered = [];
|