@openrig/cli 0.7.21 → 0.7.23
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/README.md +7 -7
- package/daemon/assets/onboarding/01-world-and-purpose.md +2 -1
- package/daemon/assets/onboarding/02-self-and-competent-action.md +6 -0
- package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/hooks/claude.json +22 -0
- package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +23 -0
- package/daemon/assets/plugins/openrig-core/hooks/scripts/compaction-restore-bridge.cjs +82 -9
- package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/precompact-hook.mjs +138 -20
- package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/restore-from-jsonl.mjs +110 -35
- package/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md +1 -1
- package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +7 -5
- package/daemon/assets/plugins/openrig-core/skills/refocusing/scripts/trace-to-root.py +32 -6
- package/daemon/assets/skills/rigs/SKILL.md +27 -6
- package/daemon/context-packs/help/help.md +12 -0
- package/daemon/context-packs/help/manifest.yaml +1 -1
- package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
- package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +27 -7
- package/daemon/context-packs/reference/acp-agents.md +2 -1
- package/daemon/context-packs/reference/getting-started.md +129 -13
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +210 -7
- package/daemon/context-packs/reference/tmux-servers.md +46 -2
- package/daemon/context-packs/reference/whats-new.md +167 -5
- package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
- package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
- package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
- package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/claude-compaction-restore/scripts/precompact-hook.mjs +138 -20
- package/daemon/context-packs/skills/claude-compaction-restore/scripts/restore-from-jsonl.mjs +110 -35
- package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/messaging-the-human/SKILL.md +1 -1
- package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +3 -3
- package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
- package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
- package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-user/SKILL.md +7 -5
- package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
- package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
- package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
- package/daemon/context-packs/skills/refocusing/scripts/trace-to-root.py +32 -6
- package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
- package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
- package/daemon/context-packs/world-example/manifest.yaml +1 -1
- package/daemon/context-packs/world-public/manifest.yaml +1 -1
- package/daemon/dist/adapters/claude-code-adapter.d.ts +14 -1
- package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +98 -23
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts +3 -1
- package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume.js +35 -11
- package/daemon/dist/adapters/claude-resume.js.map +1 -1
- package/daemon/dist/adapters/claude-settings-transport.d.ts +10 -0
- package/daemon/dist/adapters/claude-settings-transport.d.ts.map +1 -0
- package/daemon/dist/adapters/claude-settings-transport.js +95 -0
- package/daemon/dist/adapters/claude-settings-transport.js.map +1 -0
- package/daemon/dist/adapters/codex-activity-relay.d.ts +6 -0
- package/daemon/dist/adapters/codex-activity-relay.d.ts.map +1 -0
- package/daemon/dist/adapters/codex-activity-relay.js +29 -0
- package/daemon/dist/adapters/codex-activity-relay.js.map +1 -0
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts +2 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js +30 -17
- package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.js +19 -4
- package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/pi-recovery-rpc.d.ts +17 -0
- package/daemon/dist/adapters/pi-recovery-rpc.d.ts.map +1 -0
- package/daemon/dist/adapters/pi-recovery-rpc.js +94 -0
- package/daemon/dist/adapters/pi-recovery-rpc.js.map +1 -0
- package/daemon/dist/adapters/pi-runner-protocol.d.ts +6 -0
- package/daemon/dist/adapters/pi-runner-protocol.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner-protocol.js.map +1 -1
- package/daemon/dist/adapters/pi-runner.d.ts +77 -0
- package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner.js +644 -43
- package/daemon/dist/adapters/pi-runner.js.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts +6 -0
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.js +11 -0
- package/daemon/dist/adapters/pi-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/pi-runtime-recovery.d.ts +10 -0
- package/daemon/dist/adapters/pi-runtime-recovery.d.ts.map +1 -0
- package/daemon/dist/adapters/pi-runtime-recovery.js +82 -0
- package/daemon/dist/adapters/pi-runtime-recovery.js.map +1 -0
- package/daemon/dist/adapters/replace-file.d.ts +5 -2
- package/daemon/dist/adapters/replace-file.d.ts.map +1 -1
- package/daemon/dist/adapters/replace-file.js +6 -3
- package/daemon/dist/adapters/replace-file.js.map +1 -1
- package/daemon/dist/adapters/seat-slice.d.ts +19 -0
- package/daemon/dist/adapters/seat-slice.d.ts.map +1 -0
- package/daemon/dist/adapters/seat-slice.js +29 -0
- package/daemon/dist/adapters/seat-slice.js.map +1 -0
- package/daemon/dist/adapters/shell-quote.d.ts +1 -0
- package/daemon/dist/adapters/shell-quote.d.ts.map +1 -1
- package/daemon/dist/adapters/shell-quote.js +6 -0
- package/daemon/dist/adapters/shell-quote.js.map +1 -1
- package/daemon/dist/adapters/tmux-exec.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-exec.js +4 -2
- package/daemon/dist/adapters/tmux-exec.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +78 -13
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +361 -82
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/build-info.js +3 -3
- package/daemon/dist/daemon-shutdown.d.ts +8 -0
- package/daemon/dist/daemon-shutdown.d.ts.map +1 -1
- package/daemon/dist/daemon-shutdown.js +18 -2
- package/daemon/dist/daemon-shutdown.js.map +1 -1
- package/daemon/dist/db/all-migrations.d.ts.map +1 -1
- package/daemon/dist/db/all-migrations.js +24 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrate.d.ts +15 -1
- package/daemon/dist/db/migrate.d.ts.map +1 -1
- package/daemon/dist/db/migrate.js +41 -6
- package/daemon/dist/db/migrate.js.map +1 -1
- package/daemon/dist/db/migrations/179_remote_control_observations.d.ts +10 -0
- package/daemon/dist/db/migrations/179_remote_control_observations.d.ts.map +1 -0
- package/daemon/dist/db/migrations/179_remote_control_observations.js +20 -0
- package/daemon/dist/db/migrations/179_remote_control_observations.js.map +1 -0
- package/daemon/dist/db/migrations/180_session_stop_attempt.d.ts +5 -0
- package/daemon/dist/db/migrations/180_session_stop_attempt.d.ts.map +1 -0
- package/daemon/dist/db/migrations/180_session_stop_attempt.js +7 -0
- package/daemon/dist/db/migrations/180_session_stop_attempt.js.map +1 -0
- package/daemon/dist/db/migrations/181_node_keep_alive.d.ts +8 -0
- package/daemon/dist/db/migrations/181_node_keep_alive.d.ts.map +1 -0
- package/daemon/dist/db/migrations/181_node_keep_alive.js +26 -0
- package/daemon/dist/db/migrations/181_node_keep_alive.js.map +1 -0
- package/daemon/dist/db/migrations/182_queue_items_blocked_on_index.d.ts +7 -0
- package/daemon/dist/db/migrations/182_queue_items_blocked_on_index.d.ts.map +1 -0
- package/daemon/dist/db/migrations/182_queue_items_blocked_on_index.js +11 -0
- package/daemon/dist/db/migrations/182_queue_items_blocked_on_index.js.map +1 -0
- package/daemon/dist/db/migrations/183_queue_items_scan_indexes.d.ts +8 -0
- package/daemon/dist/db/migrations/183_queue_items_scan_indexes.d.ts.map +1 -0
- package/daemon/dist/db/migrations/183_queue_items_scan_indexes.js +13 -0
- package/daemon/dist/db/migrations/183_queue_items_scan_indexes.js.map +1 -0
- package/daemon/dist/db/migrations/184_network_requests.d.ts +11 -0
- package/daemon/dist/db/migrations/184_network_requests.d.ts.map +1 -0
- package/daemon/dist/db/migrations/184_network_requests.js +32 -0
- package/daemon/dist/db/migrations/184_network_requests.js.map +1 -0
- package/daemon/dist/db/migrations/185_seat_cold_starts.d.ts +9 -0
- package/daemon/dist/db/migrations/185_seat_cold_starts.d.ts.map +1 -0
- package/daemon/dist/db/migrations/185_seat_cold_starts.js +19 -0
- package/daemon/dist/db/migrations/185_seat_cold_starts.js.map +1 -0
- package/daemon/dist/db/migrations/186_queue_relayed_answers.d.ts +3 -0
- package/daemon/dist/db/migrations/186_queue_relayed_answers.d.ts.map +1 -0
- package/daemon/dist/db/migrations/186_queue_relayed_answers.js +5 -0
- package/daemon/dist/db/migrations/186_queue_relayed_answers.js.map +1 -0
- package/daemon/dist/db/migrations/189_rig_seat_slice.d.ts +5 -0
- package/daemon/dist/db/migrations/189_rig_seat_slice.d.ts.map +1 -0
- package/daemon/dist/db/migrations/189_rig_seat_slice.js +7 -0
- package/daemon/dist/db/migrations/189_rig_seat_slice.js.map +1 -0
- package/daemon/dist/db/migrations/190_queue_transfer_staging.d.ts +3 -0
- package/daemon/dist/db/migrations/190_queue_transfer_staging.d.ts.map +1 -0
- package/daemon/dist/db/migrations/190_queue_transfer_staging.js +20 -0
- package/daemon/dist/db/migrations/190_queue_transfer_staging.js.map +1 -0
- package/daemon/dist/db/migrations/191_network_binding_providers.d.ts +3 -0
- package/daemon/dist/db/migrations/191_network_binding_providers.d.ts.map +1 -0
- package/daemon/dist/db/migrations/191_network_binding_providers.js +27 -0
- package/daemon/dist/db/migrations/191_network_binding_providers.js.map +1 -0
- package/daemon/dist/db/migrations/194_workflow_run_title.d.ts +4 -0
- package/daemon/dist/db/migrations/194_workflow_run_title.d.ts.map +1 -0
- package/daemon/dist/db/migrations/194_workflow_run_title.js +6 -0
- package/daemon/dist/db/migrations/194_workflow_run_title.js.map +1 -0
- package/daemon/dist/domain/activity-taxonomy.d.ts +14 -0
- package/daemon/dist/domain/activity-taxonomy.d.ts.map +1 -1
- package/daemon/dist/domain/activity-taxonomy.js.map +1 -1
- package/daemon/dist/domain/agent-activity-store.d.ts +61 -0
- package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
- package/daemon/dist/domain/agent-activity-store.js +261 -48
- package/daemon/dist/domain/agent-activity-store.js.map +1 -1
- package/daemon/dist/domain/agent-manifest.d.ts.map +1 -1
- package/daemon/dist/domain/agent-manifest.js +6 -0
- package/daemon/dist/domain/agent-manifest.js.map +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.js +14 -3
- package/daemon/dist/domain/bootstrap-orchestrator.js.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts +58 -2
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.js +142 -9
- package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
- package/daemon/dist/domain/claude-continuation-launch.d.ts +3 -2
- package/daemon/dist/domain/claude-continuation-launch.d.ts.map +1 -1
- package/daemon/dist/domain/claude-continuation-launch.js +12 -11
- package/daemon/dist/domain/claude-continuation-launch.js.map +1 -1
- package/daemon/dist/domain/codex-thread-id.d.ts +20 -2
- package/daemon/dist/domain/codex-thread-id.d.ts.map +1 -1
- package/daemon/dist/domain/codex-thread-id.js +69 -4
- package/daemon/dist/domain/codex-thread-id.js.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts +14 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.js +174 -19
- package/daemon/dist/domain/compaction-restore-notice.js.map +1 -1
- package/daemon/dist/domain/context-packs/seat-recap-store.d.ts.map +1 -1
- package/daemon/dist/domain/context-packs/seat-recap-store.js +20 -3
- package/daemon/dist/domain/context-packs/seat-recap-store.js.map +1 -1
- package/daemon/dist/domain/continuity-policy-materializer.d.ts.map +1 -1
- package/daemon/dist/domain/continuity-policy-materializer.js +11 -3
- package/daemon/dist/domain/continuity-policy-materializer.js.map +1 -1
- package/daemon/dist/domain/core-app-job.d.ts +4 -4
- package/daemon/dist/domain/core-app-job.d.ts.map +1 -1
- package/daemon/dist/domain/core-app-job.js +4 -59
- package/daemon/dist/domain/core-app-job.js.map +1 -1
- package/daemon/dist/domain/current-work.d.ts +12 -0
- package/daemon/dist/domain/current-work.d.ts.map +1 -1
- package/daemon/dist/domain/current-work.js +4 -0
- package/daemon/dist/domain/current-work.js.map +1 -1
- package/daemon/dist/domain/escalation-owner.d.ts +3 -0
- package/daemon/dist/domain/escalation-owner.d.ts.map +1 -1
- package/daemon/dist/domain/escalation-owner.js +9 -3
- package/daemon/dist/domain/escalation-owner.js.map +1 -1
- package/daemon/dist/domain/execution-candidate-reader.d.ts +3 -0
- package/daemon/dist/domain/execution-candidate-reader.d.ts.map +1 -1
- package/daemon/dist/domain/execution-candidate-reader.js +8 -2
- package/daemon/dist/domain/execution-candidate-reader.js.map +1 -1
- package/daemon/dist/domain/existing-rig-restore.d.ts +2 -0
- package/daemon/dist/domain/existing-rig-restore.d.ts.map +1 -1
- package/daemon/dist/domain/existing-rig-restore.js +11 -1
- package/daemon/dist/domain/existing-rig-restore.js.map +1 -1
- package/daemon/dist/domain/expected-conversation.js +2 -2
- package/daemon/dist/domain/expected-conversation.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.d.ts +3 -1
- package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.js +56 -11
- package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.d.ts +1 -4
- package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.js +17 -5
- package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/notice-content-dedup.d.ts +23 -0
- package/daemon/dist/domain/gateway/slack/notice-content-dedup.d.ts.map +1 -0
- package/daemon/dist/domain/gateway/slack/notice-content-dedup.js +87 -0
- package/daemon/dist/domain/gateway/slack/notice-content-dedup.js.map +1 -0
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts +7 -1
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.js +1 -0
- package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/settled-asks.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/settled-asks.js +17 -3
- package/daemon/dist/domain/gateway/slack/settled-asks.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +0 -17
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.js +10 -40
- package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts +3 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js +21 -7
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
- package/daemon/dist/domain/harness-not-started-notice.d.ts +5 -2
- package/daemon/dist/domain/harness-not-started-notice.d.ts.map +1 -1
- package/daemon/dist/domain/harness-not-started-notice.js +46 -15
- package/daemon/dist/domain/harness-not-started-notice.js.map +1 -1
- package/daemon/dist/domain/health-passive-ceremony.d.ts.map +1 -1
- package/daemon/dist/domain/health-passive-ceremony.js +3 -2
- package/daemon/dist/domain/health-passive-ceremony.js.map +1 -1
- package/daemon/dist/domain/hosts/read-through.d.ts +1 -1
- package/daemon/dist/domain/hosts/read-through.d.ts.map +1 -1
- package/daemon/dist/domain/hosts/read-through.js +3 -2
- package/daemon/dist/domain/hosts/read-through.js.map +1 -1
- package/daemon/dist/domain/hosts/remote-daemon-http.d.ts +2 -0
- package/daemon/dist/domain/hosts/remote-daemon-http.d.ts.map +1 -1
- package/daemon/dist/domain/hosts/remote-daemon-http.js +1 -1
- package/daemon/dist/domain/hosts/remote-daemon-http.js.map +1 -1
- package/daemon/dist/domain/hot-potato-enforcer.d.ts +3 -3
- package/daemon/dist/domain/hot-potato-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/hot-potato-enforcer.js +2 -2
- package/daemon/dist/domain/hot-potato-enforcer.js.map +1 -1
- package/daemon/dist/domain/human-questions.d.ts +1 -1
- package/daemon/dist/domain/human-questions.d.ts.map +1 -1
- package/daemon/dist/domain/human-questions.js +2 -0
- package/daemon/dist/domain/human-questions.js.map +1 -1
- package/daemon/dist/domain/input-read-diagnostic.js +1 -1
- package/daemon/dist/domain/input-read-diagnostic.js.map +1 -1
- package/daemon/dist/domain/install-planner.d.ts +8 -0
- package/daemon/dist/domain/install-planner.d.ts.map +1 -1
- package/daemon/dist/domain/install-planner.js +26 -6
- package/daemon/dist/domain/install-planner.js.map +1 -1
- package/daemon/dist/domain/keep-alive-supervisor.d.ts +178 -0
- package/daemon/dist/domain/keep-alive-supervisor.d.ts.map +1 -0
- package/daemon/dist/domain/keep-alive-supervisor.js +523 -0
- package/daemon/dist/domain/keep-alive-supervisor.js.map +1 -0
- package/daemon/dist/domain/mission-control/mission-control-fleet-cli-capability.d.ts +6 -0
- package/daemon/dist/domain/mission-control/mission-control-fleet-cli-capability.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-fleet-cli-capability.js +39 -9
- package/daemon/dist/domain/mission-control/mission-control-fleet-cli-capability.js.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js +29 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
- package/daemon/dist/domain/model-divergence/current-generation-record.d.ts +4 -1
- package/daemon/dist/domain/model-divergence/current-generation-record.d.ts.map +1 -1
- package/daemon/dist/domain/model-divergence/current-generation-record.js +18 -2
- package/daemon/dist/domain/model-divergence/current-generation-record.js.map +1 -1
- package/daemon/dist/domain/mutation-trace.d.ts +28 -0
- package/daemon/dist/domain/mutation-trace.d.ts.map +1 -0
- package/daemon/dist/domain/mutation-trace.js +38 -0
- package/daemon/dist/domain/mutation-trace.js.map +1 -0
- package/daemon/dist/domain/native-resume-probe.d.ts +13 -3
- package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +54 -17
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/network/hub-client.d.ts +30 -1
- package/daemon/dist/domain/network/hub-client.d.ts.map +1 -1
- package/daemon/dist/domain/network/hub-client.js +62 -9
- package/daemon/dist/domain/network/hub-client.js.map +1 -1
- package/daemon/dist/domain/network/network-bindings.d.ts +52 -2
- package/daemon/dist/domain/network/network-bindings.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-bindings.js +217 -23
- package/daemon/dist/domain/network/network-bindings.js.map +1 -1
- package/daemon/dist/domain/network/network-connector.d.ts +9 -1
- package/daemon/dist/domain/network/network-connector.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-connector.js +95 -7
- package/daemon/dist/domain/network/network-connector.js.map +1 -1
- package/daemon/dist/domain/network/network-installations.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-installations.js +22 -7
- package/daemon/dist/domain/network/network-installations.js.map +1 -1
- package/daemon/dist/domain/network/network-provider-removal.d.ts +9 -0
- package/daemon/dist/domain/network/network-provider-removal.d.ts.map +1 -0
- package/daemon/dist/domain/network/network-provider-removal.js +75 -0
- package/daemon/dist/domain/network/network-provider-removal.js.map +1 -0
- package/daemon/dist/domain/network/network-requests.d.ts +59 -0
- package/daemon/dist/domain/network/network-requests.d.ts.map +1 -0
- package/daemon/dist/domain/network/network-requests.js +476 -0
- package/daemon/dist/domain/network/network-requests.js.map +1 -0
- package/daemon/dist/domain/node-inventory.d.ts +26 -0
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +93 -9
- package/daemon/dist/domain/node-inventory.js.map +1 -1
- package/daemon/dist/domain/occupant-invalidator.d.ts +1 -1
- package/daemon/dist/domain/occupant-invalidator.d.ts.map +1 -1
- package/daemon/dist/domain/occupant-invalidator.js +1 -1
- package/daemon/dist/domain/occupant-invalidator.js.map +1 -1
- package/daemon/dist/domain/outbox-handler.d.ts +11 -0
- package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
- package/daemon/dist/domain/outbox-handler.js +20 -0
- package/daemon/dist/domain/outbox-handler.js.map +1 -1
- package/daemon/dist/domain/package-install-service.d.ts +1 -0
- package/daemon/dist/domain/package-install-service.d.ts.map +1 -1
- package/daemon/dist/domain/package-install-service.js +1 -0
- package/daemon/dist/domain/package-install-service.js.map +1 -1
- package/daemon/dist/domain/parked-owner-escalation.d.ts +16 -0
- package/daemon/dist/domain/parked-owner-escalation.d.ts.map +1 -0
- package/daemon/dist/domain/parked-owner-escalation.js +53 -0
- package/daemon/dist/domain/parked-owner-escalation.js.map +1 -0
- package/daemon/dist/domain/parked-query.d.ts +6 -0
- package/daemon/dist/domain/parked-query.d.ts.map +1 -1
- package/daemon/dist/domain/parked-query.js +20 -7
- package/daemon/dist/domain/parked-query.js.map +1 -1
- package/daemon/dist/domain/permission-stop-observation.d.ts +8 -1
- package/daemon/dist/domain/permission-stop-observation.d.ts.map +1 -1
- package/daemon/dist/domain/permission-stop-observation.js +19 -2
- package/daemon/dist/domain/permission-stop-observation.js.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts +13 -0
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js +24 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
- package/daemon/dist/domain/policies/seat-pool.d.ts +15 -1
- package/daemon/dist/domain/policies/seat-pool.d.ts.map +1 -1
- package/daemon/dist/domain/policies/seat-pool.js +31 -8
- package/daemon/dist/domain/policies/seat-pool.js.map +1 -1
- package/daemon/dist/domain/process-census.d.ts +5 -1
- package/daemon/dist/domain/process-census.d.ts.map +1 -1
- package/daemon/dist/domain/process-census.js +20 -11
- package/daemon/dist/domain/process-census.js.map +1 -1
- package/daemon/dist/domain/profile-resolver.d.ts +7 -1
- package/daemon/dist/domain/profile-resolver.d.ts.map +1 -1
- package/daemon/dist/domain/profile-resolver.js +7 -0
- package/daemon/dist/domain/profile-resolver.js.map +1 -1
- package/daemon/dist/domain/progress/progress-indexer.d.ts.map +1 -1
- package/daemon/dist/domain/progress/progress-indexer.js +11 -0
- package/daemon/dist/domain/progress/progress-indexer.js.map +1 -1
- package/daemon/dist/domain/project-lifecycle-compiler.d.ts.map +1 -1
- package/daemon/dist/domain/project-lifecycle-compiler.js +4 -1
- package/daemon/dist/domain/project-lifecycle-compiler.js.map +1 -1
- package/daemon/dist/domain/proof/judgments.d.ts +10 -0
- package/daemon/dist/domain/proof/judgments.d.ts.map +1 -1
- package/daemon/dist/domain/proof/judgments.js +31 -11
- package/daemon/dist/domain/proof/judgments.js.map +1 -1
- package/daemon/dist/domain/proof/source-watch.js +4 -4
- package/daemon/dist/domain/proof/source-watch.js.map +1 -1
- package/daemon/dist/domain/provider/claude-interruption.d.ts +6 -0
- package/daemon/dist/domain/provider/claude-interruption.d.ts.map +1 -1
- package/daemon/dist/domain/provider/claude-interruption.js +18 -0
- package/daemon/dist/domain/provider/claude-interruption.js.map +1 -1
- package/daemon/dist/domain/provider/codex-limit-banner.d.ts +17 -1
- package/daemon/dist/domain/provider/codex-limit-banner.d.ts.map +1 -1
- package/daemon/dist/domain/provider/codex-limit-banner.js +38 -5
- package/daemon/dist/domain/provider/codex-limit-banner.js.map +1 -1
- package/daemon/dist/domain/ps-projection.d.ts +17 -1
- package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
- package/daemon/dist/domain/ps-projection.js +41 -6
- package/daemon/dist/domain/ps-projection.js.map +1 -1
- package/daemon/dist/domain/queue-erasure.d.ts +3 -0
- package/daemon/dist/domain/queue-erasure.d.ts.map +1 -1
- package/daemon/dist/domain/queue-erasure.js +2 -2
- package/daemon/dist/domain/queue-erasure.js.map +1 -1
- package/daemon/dist/domain/queue-owner.d.ts +5 -0
- package/daemon/dist/domain/queue-owner.d.ts.map +1 -1
- package/daemon/dist/domain/queue-owner.js +16 -8
- package/daemon/dist/domain/queue-owner.js.map +1 -1
- package/daemon/dist/domain/queue-read-wait.d.ts +12 -0
- package/daemon/dist/domain/queue-read-wait.d.ts.map +1 -0
- package/daemon/dist/domain/queue-read-wait.js +43 -0
- package/daemon/dist/domain/queue-read-wait.js.map +1 -0
- package/daemon/dist/domain/queue-recorded-graph.d.ts +32 -0
- package/daemon/dist/domain/queue-recorded-graph.d.ts.map +1 -0
- package/daemon/dist/domain/queue-recorded-graph.js +84 -0
- package/daemon/dist/domain/queue-recorded-graph.js.map +1 -0
- package/daemon/dist/domain/queue-repository.d.ts +143 -8
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +689 -59
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-retention.d.ts +1 -1
- package/daemon/dist/domain/queue-retention.d.ts.map +1 -1
- package/daemon/dist/domain/queue-retention.js +4 -0
- package/daemon/dist/domain/queue-retention.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts +10 -4
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +169 -21
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/queue-transfer-export.d.ts +75 -0
- package/daemon/dist/domain/queue-transfer-export.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-export.js +156 -0
- package/daemon/dist/domain/queue-transfer-export.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-format.d.ts +15 -0
- package/daemon/dist/domain/queue-transfer-format.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-format.js +32 -0
- package/daemon/dist/domain/queue-transfer-format.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-parse.d.ts +40 -0
- package/daemon/dist/domain/queue-transfer-parse.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-parse.js +131 -0
- package/daemon/dist/domain/queue-transfer-parse.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-review.d.ts +22 -0
- package/daemon/dist/domain/queue-transfer-review.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-review.js +81 -0
- package/daemon/dist/domain/queue-transfer-review.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-staging.d.ts +79 -0
- package/daemon/dist/domain/queue-transfer-staging.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-staging.js +67 -0
- package/daemon/dist/domain/queue-transfer-staging.js.map +1 -0
- package/daemon/dist/domain/queue-transition-log.js +3 -3
- package/daemon/dist/domain/queue-wake-ladder.d.ts +20 -3
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +299 -41
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/reconciler.d.ts +27 -2
- package/daemon/dist/domain/reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/reconciler.js +184 -16
- package/daemon/dist/domain/reconciler.js.map +1 -1
- package/daemon/dist/domain/refusal-trace.d.ts +15 -0
- package/daemon/dist/domain/refusal-trace.d.ts.map +1 -0
- package/daemon/dist/domain/refusal-trace.js +23 -0
- package/daemon/dist/domain/refusal-trace.js.map +1 -0
- package/daemon/dist/domain/relayed-answers.d.ts +80 -0
- package/daemon/dist/domain/relayed-answers.d.ts.map +1 -0
- package/daemon/dist/domain/relayed-answers.js +8 -0
- package/daemon/dist/domain/relayed-answers.js.map +1 -0
- package/daemon/dist/domain/remote-control-observations.d.ts +50 -0
- package/daemon/dist/domain/remote-control-observations.d.ts.map +1 -0
- package/daemon/dist/domain/remote-control-observations.js +72 -0
- package/daemon/dist/domain/remote-control-observations.js.map +1 -0
- package/daemon/dist/domain/restore-attempt-receipt.d.ts.map +1 -1
- package/daemon/dist/domain/restore-attempt-receipt.js +8 -2
- package/daemon/dist/domain/restore-attempt-receipt.js.map +1 -1
- package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
- package/daemon/dist/domain/restore-check-service.js +3 -2
- package/daemon/dist/domain/restore-check-service.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +70 -14
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +429 -107
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/return-route.d.ts +9 -2
- package/daemon/dist/domain/return-route.d.ts.map +1 -1
- package/daemon/dist/domain/return-route.js +22 -1
- package/daemon/dist/domain/return-route.js.map +1 -1
- package/daemon/dist/domain/rig-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/rig-lifecycle-service.js +4 -1
- package/daemon/dist/domain/rig-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/rig-repository.d.ts +38 -3
- package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
- package/daemon/dist/domain/rig-repository.js +95 -3
- package/daemon/dist/domain/rig-repository.js.map +1 -1
- package/daemon/dist/domain/rig-teardown.d.ts +22 -7
- package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
- package/daemon/dist/domain/rig-teardown.js +108 -24
- package/daemon/dist/domain/rig-teardown.js.map +1 -1
- package/daemon/dist/domain/rigspec-codec.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-codec.js +12 -0
- package/daemon/dist/domain/rigspec-codec.js.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.d.ts +14 -0
- package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.js +56 -14
- package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts +32 -3
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +135 -29
- package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/daemon/dist/domain/rigspec-preflight.d.ts +4 -1
- package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-preflight.js +9 -1
- package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
- package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-schema.js +30 -4
- package/daemon/dist/domain/rigspec-schema.js.map +1 -1
- package/daemon/dist/domain/rosters.d.ts +1 -0
- package/daemon/dist/domain/rosters.d.ts.map +1 -1
- package/daemon/dist/domain/rosters.js +5 -4
- package/daemon/dist/domain/rosters.js.map +1 -1
- package/daemon/dist/domain/runtime-adapter.d.ts +2 -0
- package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-recovery.d.ts +41 -0
- package/daemon/dist/domain/runtime-recovery.d.ts.map +1 -0
- package/daemon/dist/domain/runtime-recovery.js +2 -0
- package/daemon/dist/domain/runtime-recovery.js.map +1 -0
- package/daemon/dist/domain/seat-activity-service.d.ts +37 -1
- package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-activity-service.js +160 -7
- package/daemon/dist/domain/seat-activity-service.js.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.d.ts +7 -0
- package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.js +149 -65
- package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-cold-start.d.ts +150 -0
- package/daemon/dist/domain/seat-cold-start.d.ts.map +1 -0
- package/daemon/dist/domain/seat-cold-start.js +371 -0
- package/daemon/dist/domain/seat-cold-start.js.map +1 -0
- package/daemon/dist/domain/seat-delivery-guard.d.ts +11 -2
- package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.js +34 -6
- package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.d.ts +43 -0
- package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.js +109 -23
- package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-identity-store.d.ts +5 -3
- package/daemon/dist/domain/seat-identity-store.d.ts.map +1 -1
- package/daemon/dist/domain/seat-identity-store.js +7 -3
- package/daemon/dist/domain/seat-identity-store.js.map +1 -1
- package/daemon/dist/domain/seat-launch-environment.d.ts +2 -0
- package/daemon/dist/domain/seat-launch-environment.d.ts.map +1 -1
- package/daemon/dist/domain/seat-launch-environment.js +9 -1
- package/daemon/dist/domain/seat-launch-environment.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +17 -0
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +180 -23
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/seat-pool-executor.d.ts +116 -0
- package/daemon/dist/domain/seat-pool-executor.d.ts.map +1 -0
- package/daemon/dist/domain/seat-pool-executor.js +565 -0
- package/daemon/dist/domain/seat-pool-executor.js.map +1 -0
- package/daemon/dist/domain/seat-pool-registration.d.ts +93 -0
- package/daemon/dist/domain/seat-pool-registration.d.ts.map +1 -0
- package/daemon/dist/domain/seat-pool-registration.js +149 -0
- package/daemon/dist/domain/seat-pool-registration.js.map +1 -0
- package/daemon/dist/domain/seat-pool-slots.d.ts +42 -0
- package/daemon/dist/domain/seat-pool-slots.d.ts.map +1 -1
- package/daemon/dist/domain/seat-pool-slots.js +51 -0
- package/daemon/dist/domain/seat-pool-slots.js.map +1 -1
- package/daemon/dist/domain/seat-pool-spec.d.ts +10 -0
- package/daemon/dist/domain/seat-pool-spec.d.ts.map +1 -1
- package/daemon/dist/domain/seat-pool-spec.js +22 -2
- package/daemon/dist/domain/seat-pool-spec.js.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.d.ts +17 -0
- package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.js +57 -4
- package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-home-record.d.ts +8 -0
- package/daemon/dist/domain/seat-runtime-home-record.d.ts.map +1 -1
- package/daemon/dist/domain/seat-runtime-home-record.js +1 -1
- package/daemon/dist/domain/seat-runtime-home-record.js.map +1 -1
- package/daemon/dist/domain/session-registry.d.ts +25 -3
- package/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.js +47 -6
- package/daemon/dist/domain/session-registry.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +28 -1
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +80 -33
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.d.ts +59 -0
- package/daemon/dist/domain/slices/slice-indexer.d.ts.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.js +288 -63
- package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
- package/daemon/dist/domain/slow-op-recorder.d.ts +3 -1
- package/daemon/dist/domain/slow-op-recorder.d.ts.map +1 -1
- package/daemon/dist/domain/slow-op-recorder.js +7 -1
- package/daemon/dist/domain/slow-op-recorder.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +75 -23
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/startup-proof.d.ts +6 -0
- package/daemon/dist/domain/startup-proof.d.ts.map +1 -1
- package/daemon/dist/domain/startup-proof.js +11 -0
- package/daemon/dist/domain/startup-proof.js.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.d.ts +2 -0
- package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.js +31 -3
- package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
- package/daemon/dist/domain/stream-intake.d.ts +10 -1
- package/daemon/dist/domain/stream-intake.d.ts.map +1 -1
- package/daemon/dist/domain/stream-intake.js +27 -0
- package/daemon/dist/domain/stream-intake.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts +7 -0
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.js +5 -3
- package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-follow-view.d.ts +13 -0
- package/daemon/dist/domain/terminal/herdr-follow-view.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-follow-view.js +126 -3
- package/daemon/dist/domain/terminal/herdr-follow-view.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-viewer.d.ts +10 -0
- package/daemon/dist/domain/terminal/herdr-viewer.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-viewer.js +38 -12
- package/daemon/dist/domain/terminal/herdr-viewer.js.map +1 -1
- package/daemon/dist/domain/terminal/scope-task-terminal-view.d.ts +2 -1
- package/daemon/dist/domain/terminal/scope-task-terminal-view.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/scope-task-terminal-view.js +80 -38
- package/daemon/dist/domain/terminal/scope-task-terminal-view.js.map +1 -1
- package/daemon/dist/domain/terminal/terminal-provider.d.ts +2 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.d.ts +3 -0
- package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.js +30 -26
- package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
- package/daemon/dist/domain/terminal/tile-attach.d.ts +22 -0
- package/daemon/dist/domain/terminal/tile-attach.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/tile-attach.js +71 -0
- package/daemon/dist/domain/terminal/tile-attach.js.map +1 -1
- package/daemon/dist/domain/terminal/view-composer.d.ts +2 -0
- package/daemon/dist/domain/terminal/view-composer.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/view-composer.js +4 -2
- package/daemon/dist/domain/terminal/view-composer.js.map +1 -1
- package/daemon/dist/domain/terminal-server-reachability.d.ts +14 -7
- package/daemon/dist/domain/terminal-server-reachability.d.ts.map +1 -1
- package/daemon/dist/domain/terminal-server-reachability.js +29 -11
- package/daemon/dist/domain/terminal-server-reachability.js.map +1 -1
- package/daemon/dist/domain/terminal-server-seats.d.ts +1 -1
- package/daemon/dist/domain/terminal-server-seats.d.ts.map +1 -1
- package/daemon/dist/domain/terminal-server-seats.js +4 -1
- package/daemon/dist/domain/terminal-server-seats.js.map +1 -1
- package/daemon/dist/domain/topology/remote-up-leaf.d.ts.map +1 -1
- package/daemon/dist/domain/topology/remote-up-leaf.js +41 -2
- package/daemon/dist/domain/topology/remote-up-leaf.js.map +1 -1
- package/daemon/dist/domain/topology-trace.d.ts +40 -0
- package/daemon/dist/domain/topology-trace.d.ts.map +1 -0
- package/daemon/dist/domain/topology-trace.js +106 -0
- package/daemon/dist/domain/topology-trace.js.map +1 -0
- package/daemon/dist/domain/transcript-store.d.ts.map +1 -1
- package/daemon/dist/domain/transcript-store.js +12 -1
- package/daemon/dist/domain/transcript-store.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +111 -14
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js +3 -2
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.js +6 -2
- package/daemon/dist/domain/user-settings/settings-browser.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts +1 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.js +26 -0
- package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts +11 -3
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-jobs-repository.js +23 -1
- package/daemon/dist/domain/watchdog-jobs-repository.js.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.d.ts +35 -1
- package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.js +99 -23
- package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
- package/daemon/dist/domain/workflow-instance-store.d.ts +2 -0
- package/daemon/dist/domain/workflow-instance-store.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-instance-store.js +11 -2
- package/daemon/dist/domain/workflow-instance-store.js.map +1 -1
- package/daemon/dist/domain/workflow-projector.d.ts +3 -1
- package/daemon/dist/domain/workflow-projector.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-projector.js +58 -10
- package/daemon/dist/domain/workflow-projector.js.map +1 -1
- package/daemon/dist/domain/workflow-run-title.d.ts +4 -0
- package/daemon/dist/domain/workflow-run-title.d.ts.map +1 -0
- package/daemon/dist/domain/workflow-run-title.js +5 -0
- package/daemon/dist/domain/workflow-run-title.js.map +1 -0
- package/daemon/dist/domain/workflow-runtime.d.ts +4 -0
- package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-runtime.js +45 -14
- package/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/daemon/dist/domain/workflow-spec-cache.d.ts +2 -2
- package/daemon/dist/domain/workflow-spec-cache.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-spec-cache.js +20 -1
- package/daemon/dist/domain/workflow-spec-cache.js.map +1 -1
- package/daemon/dist/domain/workflow-types.d.ts +15 -0
- package/daemon/dist/domain/workflow-types.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-types.js +4 -0
- package/daemon/dist/domain/workflow-types.js.map +1 -1
- package/daemon/dist/domain/workspace/project-catalog.d.ts +7 -0
- package/daemon/dist/domain/workspace/project-catalog.d.ts.map +1 -1
- package/daemon/dist/domain/workspace/project-catalog.js +20 -3
- package/daemon/dist/domain/workspace/project-catalog.js.map +1 -1
- package/daemon/dist/domain/workspace/project-read.d.ts +12 -0
- package/daemon/dist/domain/workspace/project-read.d.ts.map +1 -1
- package/daemon/dist/domain/workspace/project-read.js +37 -5
- package/daemon/dist/domain/workspace/project-read.js.map +1 -1
- package/daemon/dist/index.d.ts +2 -2
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +40 -4
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/queue-transfer-export-surface.d.ts +33 -0
- package/daemon/dist/queue-transfer-export-surface.d.ts.map +1 -0
- package/daemon/dist/queue-transfer-export-surface.js +13 -0
- package/daemon/dist/queue-transfer-export-surface.js.map +1 -0
- package/daemon/dist/queue-transfer-staging-surface.d.ts +86 -0
- package/daemon/dist/queue-transfer-staging-surface.d.ts.map +1 -0
- package/daemon/dist/queue-transfer-staging-surface.js +91 -0
- package/daemon/dist/queue-transfer-staging-surface.js.map +1 -0
- package/daemon/dist/routes/activity.d.ts +9 -1
- package/daemon/dist/routes/activity.d.ts.map +1 -1
- package/daemon/dist/routes/activity.js +79 -3
- package/daemon/dist/routes/activity.js.map +1 -1
- package/daemon/dist/routes/compaction.d.ts.map +1 -1
- package/daemon/dist/routes/compaction.js +7 -2
- package/daemon/dist/routes/compaction.js.map +1 -1
- package/daemon/dist/routes/context-packs.d.ts.map +1 -1
- package/daemon/dist/routes/context-packs.js +23 -1
- package/daemon/dist/routes/context-packs.js.map +1 -1
- package/daemon/dist/routes/events.js +7 -4
- package/daemon/dist/routes/events.js.map +1 -1
- package/daemon/dist/routes/missions.js +4 -4
- package/daemon/dist/routes/missions.js.map +1 -1
- package/daemon/dist/routes/network.d.ts +2 -0
- package/daemon/dist/routes/network.d.ts.map +1 -1
- package/daemon/dist/routes/network.js +62 -1
- package/daemon/dist/routes/network.js.map +1 -1
- package/daemon/dist/routes/packages.js +2 -0
- package/daemon/dist/routes/packages.js.map +1 -1
- package/daemon/dist/routes/ps.js +13 -2
- package/daemon/dist/routes/ps.js.map +1 -1
- package/daemon/dist/routes/queue.d.ts +22 -1
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +250 -69
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/require-sender-identity.d.ts.map +1 -1
- package/daemon/dist/routes/require-sender-identity.js +6 -3
- package/daemon/dist/routes/require-sender-identity.js.map +1 -1
- package/daemon/dist/routes/rigs.js +2 -0
- package/daemon/dist/routes/rigs.js.map +1 -1
- package/daemon/dist/routes/seat.d.ts.map +1 -1
- package/daemon/dist/routes/seat.js +12 -5
- package/daemon/dist/routes/seat.js.map +1 -1
- package/daemon/dist/routes/sessions.d.ts.map +1 -1
- package/daemon/dist/routes/sessions.js +16 -2
- package/daemon/dist/routes/sessions.js.map +1 -1
- package/daemon/dist/routes/slices.d.ts.map +1 -1
- package/daemon/dist/routes/slices.js +16 -7
- package/daemon/dist/routes/slices.js.map +1 -1
- package/daemon/dist/routes/startup.d.ts.map +1 -1
- package/daemon/dist/routes/startup.js +49 -4
- package/daemon/dist/routes/startup.js.map +1 -1
- package/daemon/dist/routes/stream.d.ts.map +1 -1
- package/daemon/dist/routes/stream.js +9 -0
- package/daemon/dist/routes/stream.js.map +1 -1
- package/daemon/dist/routes/terminal-ws.js +28 -2
- package/daemon/dist/routes/terminal-ws.js.map +1 -1
- package/daemon/dist/routes/terminal.d.ts.map +1 -1
- package/daemon/dist/routes/terminal.js +3 -2
- package/daemon/dist/routes/terminal.js.map +1 -1
- package/daemon/dist/routes/transport.d.ts.map +1 -1
- package/daemon/dist/routes/transport.js +14 -2
- package/daemon/dist/routes/transport.js.map +1 -1
- package/daemon/dist/routes/up.js +2 -0
- package/daemon/dist/routes/up.js.map +1 -1
- package/daemon/dist/routes/watchdog.d.ts +1 -1
- package/daemon/dist/routes/watchdog.d.ts.map +1 -1
- package/daemon/dist/routes/watchdog.js +7 -2
- package/daemon/dist/routes/watchdog.js.map +1 -1
- package/daemon/dist/routes/workflow.d.ts.map +1 -1
- package/daemon/dist/routes/workflow.js +9 -3
- package/daemon/dist/routes/workflow.js.map +1 -1
- package/daemon/dist/server.d.ts +7 -0
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +8 -0
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts +3 -0
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +226 -17
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/dist/terminal/TerminalSessionBroker.d.ts +10 -0
- package/daemon/dist/terminal/TerminalSessionBroker.d.ts.map +1 -1
- package/daemon/dist/terminal/TerminalSessionBroker.js +63 -4
- package/daemon/dist/terminal/TerminalSessionBroker.js.map +1 -1
- package/daemon/dist/tmux-server-start.d.ts +18 -0
- package/daemon/dist/tmux-server-start.d.ts.map +1 -1
- package/daemon/dist/tmux-server-start.js +29 -0
- package/daemon/dist/tmux-server-start.js.map +1 -1
- package/daemon/dist/topology-trace-surface.d.ts +2 -0
- package/daemon/dist/topology-trace-surface.d.ts.map +1 -0
- package/daemon/dist/topology-trace-surface.js +2 -0
- package/daemon/dist/topology-trace-surface.js.map +1 -0
- package/daemon/docs/reference/acp-agents.md +2 -1
- package/daemon/docs/reference/agent-spec.md +3 -1
- package/daemon/docs/reference/agent-startup-guide.md +3 -1
- package/daemon/docs/reference/agent-state-taxonomy.md +39 -1
- package/daemon/docs/reference/author-contracts.md +4 -0
- package/daemon/docs/reference/checked-seat-stop.md +11 -1
- package/daemon/docs/reference/claude-status-line.md +7 -0
- package/daemon/docs/reference/community-harness-examples/agy/agy-plain.yaml +28 -0
- package/daemon/docs/reference/community-harness-examples/agy/agy.yaml +27 -0
- package/daemon/docs/reference/community-harness-examples/agy/openrig-agy-launch +81 -0
- package/daemon/docs/reference/community-harness-examples/agy/openrig-agy-runner.mjs +667 -0
- package/daemon/docs/reference/community-harness-presets.md +78 -0
- package/daemon/docs/reference/daemon-http-clients.md +133 -20
- package/daemon/docs/reference/gateway-participants.md +6 -0
- package/daemon/docs/reference/getting-started.md +129 -13
- package/daemon/docs/reference/harness-runner-contract.md +7 -5
- package/daemon/docs/reference/help.md +12 -0
- package/daemon/docs/reference/hosted-members.md +163 -2
- package/daemon/docs/reference/inventory-request-diagnostics.md +22 -0
- package/daemon/docs/reference/network-connector.md +112 -4
- package/daemon/docs/reference/project-workspace.md +19 -2
- package/daemon/docs/reference/queue-erasure.md +1 -1
- package/daemon/docs/reference/queue-transfer-export.md +38 -0
- package/daemon/docs/reference/queue-transfer-staging.md +39 -0
- package/daemon/docs/reference/quickstart.md +4 -4
- package/daemon/docs/reference/refocus-channel.md +5 -2
- package/daemon/docs/reference/rig-bundle.md +1 -1
- package/daemon/docs/reference/rig-spec.md +210 -7
- package/daemon/docs/reference/rosters.md +18 -3
- package/daemon/docs/reference/sdlc-conventions.md +6 -2
- package/daemon/docs/reference/seat-delivery.md +41 -7
- package/daemon/docs/reference/seat-pools.md +116 -0
- package/daemon/docs/reference/terminal-sessions.md +57 -11
- package/daemon/docs/reference/tmux-servers.md +46 -2
- package/daemon/docs/reference/whats-new.md +167 -5
- package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +1 -1
- package/dist/build-info.js +3 -3
- package/dist/bundle-behaviour.d.ts +1 -1
- package/dist/client.d.ts +2 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +3 -2
- package/dist/client.js.map +1 -1
- package/dist/commands/broadcast.d.ts.map +1 -1
- package/dist/commands/broadcast.js +89 -8
- package/dist/commands/broadcast.js.map +1 -1
- package/dist/commands/bundle.js +1 -1
- package/dist/commands/bundle.js.map +1 -1
- package/dist/commands/chatroom.d.ts +3 -0
- package/dist/commands/chatroom.d.ts.map +1 -1
- package/dist/commands/chatroom.js +9 -2
- package/dist/commands/chatroom.js.map +1 -1
- package/dist/commands/config-init-workspace.d.ts +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +4 -2
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/daemon.d.ts.map +1 -1
- package/dist/commands/daemon.js +24 -19
- package/dist/commands/daemon.js.map +1 -1
- package/dist/commands/exec.d.ts.map +1 -1
- package/dist/commands/exec.js +22 -13
- package/dist/commands/exec.js.map +1 -1
- package/dist/commands/export.d.ts.map +1 -1
- package/dist/commands/export.js +5 -1
- package/dist/commands/export.js.map +1 -1
- package/dist/commands/gateway.d.ts +4 -0
- package/dist/commands/gateway.d.ts.map +1 -1
- package/dist/commands/gateway.js +37 -0
- package/dist/commands/gateway.js.map +1 -1
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/mcp.js +4 -2
- package/dist/commands/mcp.js.map +1 -1
- package/dist/commands/network.d.ts.map +1 -1
- package/dist/commands/network.js +54 -1
- package/dist/commands/network.js.map +1 -1
- package/dist/commands/package.d.ts.map +1 -1
- package/dist/commands/package.js +10 -0
- package/dist/commands/package.js.map +1 -1
- package/dist/commands/parked.d.ts.map +1 -1
- package/dist/commands/parked.js +12 -6
- package/dist/commands/parked.js.map +1 -1
- package/dist/commands/project-jev.d.ts +1 -1
- package/dist/commands/project-worker.d.ts +3 -3
- package/dist/commands/provider.d.ts.map +1 -1
- package/dist/commands/provider.js +3 -2
- package/dist/commands/provider.js.map +1 -1
- package/dist/commands/ps.d.ts +12 -1
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +43 -10
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue-export.d.ts +3 -0
- package/dist/commands/queue-export.d.ts.map +1 -0
- package/dist/commands/queue-export.js +67 -0
- package/dist/commands/queue-export.js.map +1 -0
- package/dist/commands/queue-import.d.ts +4 -0
- package/dist/commands/queue-import.d.ts.map +1 -0
- package/dist/commands/queue-import.js +47 -0
- package/dist/commands/queue-import.js.map +1 -0
- package/dist/commands/queue.d.ts +1 -1
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +56 -1
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/restore.d.ts.map +1 -1
- package/dist/commands/restore.js +51 -8
- package/dist/commands/restore.js.map +1 -1
- package/dist/commands/roster.d.ts +1 -1
- package/dist/commands/roster.js +1 -1
- package/dist/commands/roster.js.map +1 -1
- package/dist/commands/scope.d.ts.map +1 -1
- package/dist/commands/scope.js +30 -18
- package/dist/commands/scope.js.map +1 -1
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +26 -2
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +24 -8
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/slack.d.ts +1 -1
- package/dist/commands/snapshot.d.ts.map +1 -1
- package/dist/commands/snapshot.js +29 -10
- package/dist/commands/snapshot.js.map +1 -1
- package/dist/commands/start.d.ts +14 -0
- package/dist/commands/start.d.ts.map +1 -1
- package/dist/commands/start.js +203 -110
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/stream-outcome.d.ts +96 -32
- package/dist/commands/stream-outcome.d.ts.map +1 -1
- package/dist/commands/stream-outcome.js +25 -2
- package/dist/commands/stream-outcome.js.map +1 -1
- package/dist/commands/up.d.ts +2 -4
- package/dist/commands/up.d.ts.map +1 -1
- package/dist/commands/up.js +35 -3
- package/dist/commands/up.js.map +1 -1
- package/dist/commands/watchdog.js +2 -2
- package/dist/commands/watchdog.js.map +1 -1
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +8 -1
- package/dist/commands/workflow.js.map +1 -1
- package/dist/config-store.d.ts +3 -1
- package/dist/config-store.d.ts.map +1 -1
- package/dist/config-store.js +27 -1
- package/dist/config-store.js.map +1 -1
- package/dist/cross-host-executor.d.ts +3 -0
- package/dist/cross-host-executor.d.ts.map +1 -1
- package/dist/cross-host-executor.js +5 -0
- package/dist/cross-host-executor.js.map +1 -1
- package/dist/daemon-auto-start.d.ts.map +1 -1
- package/dist/daemon-auto-start.js +1 -0
- package/dist/daemon-auto-start.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts +9 -3
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +109 -37
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/daemon-start-lock.d.ts +38 -3
- package/dist/daemon-start-lock.d.ts.map +1 -1
- package/dist/daemon-start-lock.js +201 -48
- package/dist/daemon-start-lock.js.map +1 -1
- package/dist/daemon-transport.d.ts +10 -0
- package/dist/daemon-transport.d.ts.map +1 -0
- package/dist/daemon-transport.js +89 -0
- package/dist/daemon-transport.js.map +1 -0
- package/dist/decisions/stream-consumer.d.ts +2 -2
- package/dist/lib/bundle-source.d.ts.map +1 -1
- package/dist/lib/bundle-source.js +2 -1
- package/dist/lib/bundle-source.js.map +1 -1
- package/dist/lib/codex-auth.d.ts +1 -1
- package/dist/lib/context-git.d.ts.map +1 -1
- package/dist/lib/context-git.js +8 -3
- package/dist/lib/context-git.js.map +1 -1
- package/dist/lib/scope/progress-edit.d.ts.map +1 -1
- package/dist/lib/scope/progress-edit.js +10 -0
- package/dist/lib/scope/progress-edit.js.map +1 -1
- package/dist/lib/scope/scope-fs.d.ts.map +1 -1
- package/dist/lib/scope/scope-fs.js +13 -10
- package/dist/lib/scope/scope-fs.js.map +1 -1
- package/dist/lib/topology-trace.d.ts +3 -34
- package/dist/lib/topology-trace.d.ts.map +1 -1
- package/dist/lib/topology-trace.js +3 -97
- package/dist/lib/topology-trace.js.map +1 -1
- package/dist/lib/work-install.d.ts +1 -1
- package/dist/local-db.d.ts +2 -0
- package/dist/local-db.d.ts.map +1 -1
- package/dist/local-db.js +14 -11
- package/dist/local-db.js.map +1 -1
- package/dist/long-request-fetch.d.ts +2 -1
- package/dist/long-request-fetch.d.ts.map +1 -1
- package/dist/long-request-fetch.js +39 -35
- package/dist/long-request-fetch.js.map +1 -1
- package/dist/mcp-caller-resolver.d.ts +36 -0
- package/dist/mcp-caller-resolver.d.ts.map +1 -0
- package/dist/mcp-caller-resolver.js +82 -0
- package/dist/mcp-caller-resolver.js.map +1 -0
- package/dist/mcp-http.d.ts +48 -5
- package/dist/mcp-http.d.ts.map +1 -1
- package/dist/mcp-http.js +303 -61
- package/dist/mcp-http.js.map +1 -1
- package/dist/mcp-server.d.ts +31 -3
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +191 -58
- package/dist/mcp-server.js.map +1 -1
- package/dist/mcp-surface.d.ts +8 -0
- package/dist/mcp-surface.d.ts.map +1 -0
- package/dist/mcp-surface.js +5 -0
- package/dist/mcp-surface.js.map +1 -0
- package/dist/node-support.d.ts.map +1 -1
- package/dist/node-support.js +10 -0
- package/dist/node-support.js.map +1 -1
- package/dist/release-surface/extract-surface.d.ts.map +1 -1
- package/dist/release-surface/extract-surface.js +14 -2
- package/dist/release-surface/extract-surface.js.map +1 -1
- package/dist/remote-host-ops.d.ts +3 -0
- package/dist/remote-host-ops.d.ts.map +1 -1
- package/dist/remote-host-ops.js +15 -1
- package/dist/remote-host-ops.js.map +1 -1
- package/dist/snapshot-rig-handle.d.ts +12 -0
- package/dist/snapshot-rig-handle.d.ts.map +1 -0
- package/dist/snapshot-rig-handle.js +39 -0
- package/dist/snapshot-rig-handle.js.map +1 -0
- package/mcp.d.ts +1 -0
- package/mcp.js +1 -0
- package/package.json +8 -5
- package/scripts/check-abi.mjs +15 -0
- package/tui/dist/attention/attention-model.d.ts +1 -1
- package/tui/dist/attention/attention-model.d.ts.map +1 -1
- package/tui/dist/attention/attention-model.js +8 -4
- package/tui/dist/attention/attention-model.js.map +1 -1
- package/tui/dist/attention/source-continuity.d.ts +1 -1
- package/tui/dist/crash-cart/start-daemon.d.ts +20 -0
- package/tui/dist/crash-cart/start-daemon.d.ts.map +1 -1
- package/tui/dist/crash-cart/start-daemon.js +56 -0
- package/tui/dist/crash-cart/start-daemon.js.map +1 -1
- package/tui/dist/execution/execution-model.d.ts +2 -0
- package/tui/dist/execution/execution-model.d.ts.map +1 -1
- package/tui/dist/execution/execution-model.js +27 -5
- package/tui/dist/execution/execution-model.js.map +1 -1
- package/tui/dist/execution/workflow-model.d.ts.map +1 -1
- package/tui/dist/execution/workflow-model.js +2 -1
- package/tui/dist/execution/workflow-model.js.map +1 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +4 -2
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/main.js +26 -9
- package/tui/dist/main.js.map +1 -1
- package/tui/dist/print-for-copy.d.ts +7 -1
- package/tui/dist/print-for-copy.d.ts.map +1 -1
- package/tui/dist/print-for-copy.js +10 -3
- package/tui/dist/print-for-copy.js.map +1 -1
- package/tui/dist/render.d.ts +2 -0
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +75 -19
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/socket-copy.d.ts +6 -0
- package/tui/dist/socket-copy.d.ts.map +1 -0
- package/tui/dist/socket-copy.js +13 -0
- package/tui/dist/socket-copy.js.map +1 -0
- package/tui/dist/terminal-safe-text.d.ts +39 -0
- package/tui/dist/terminal-safe-text.d.ts.map +1 -0
- package/tui/dist/terminal-safe-text.js +44 -0
- package/tui/dist/terminal-safe-text.js.map +1 -0
- package/tui/dist/topology/host-label.js +5 -5
- package/tui/dist/topology/host-label.js.map +1 -1
- package/tui/dist/types.d.ts +3 -3
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
// Only node builtins and local runner helpers are imported so the compiled
|
|
19
19
|
// entry stays runnable as `node <dist>/adapters/pi-runner.js` with no daemon deps.
|
|
20
20
|
import fs from "node:fs";
|
|
21
|
+
import { randomUUID } from "node:crypto";
|
|
22
|
+
import { startPiRecoveryServer } from "./pi-recovery-rpc.js";
|
|
21
23
|
import nodePath from "node:path";
|
|
22
24
|
import readline from "node:readline";
|
|
23
25
|
import { PassThrough, Writable } from "node:stream";
|
|
@@ -757,6 +759,19 @@ const COMPACT_ID = "pi-runner-compact:";
|
|
|
757
759
|
const CATCH_UP_ID = "pi-runner-catch-up";
|
|
758
760
|
const CURSOR_REFRESH_ID = "pi-runner-cursor-refresh";
|
|
759
761
|
const NEGOTIATE_ID = "omp-runner-negotiate";
|
|
762
|
+
const MAX_PENDING_CURSOR_REFRESHES = 16;
|
|
763
|
+
/** #1275: completed turns a pending unanchored full read blocks new full reads before being treated as lost. */
|
|
764
|
+
export const MAX_UNANCHORED_REFRESH_HOLD_TURNS = 3;
|
|
765
|
+
const UNKNOWN_SINCE_CODE = "unknown_since";
|
|
766
|
+
const UNKNOWN_ENTRIES_CURSOR_RE = /^unknown entries cursor\b/i;
|
|
767
|
+
const ENTRY_NOT_FOUND_RE = /^entry not found\b/i;
|
|
768
|
+
const OVERSIZED_RESTORE_ERROR_RE = /\bexceeded the transport limit\b|\breassembly limit\b/i;
|
|
769
|
+
const OVERSIZED_REASSEMBLY_DROP_RE = /\babove the \d+-byte reassembly limit$/;
|
|
770
|
+
function isUnknownCursorError(detail, code) {
|
|
771
|
+
return code === UNKNOWN_SINCE_CODE
|
|
772
|
+
|| UNKNOWN_ENTRIES_CURSOR_RE.test(detail)
|
|
773
|
+
|| ENTRY_NOT_FOUND_RE.test(detail);
|
|
774
|
+
}
|
|
760
775
|
/** RPC commands that carry operator input. Their failure means the seat
|
|
761
776
|
* cannot do the requested work; other command failures are not attention. */
|
|
762
777
|
const INPUT_COMMANDS = { prompt: true, steer: true, follow_up: true };
|
|
@@ -826,6 +841,80 @@ testHooks) {
|
|
|
826
841
|
await handle?.close().catch(() => { });
|
|
827
842
|
}
|
|
828
843
|
}
|
|
844
|
+
const SESSION_TAIL_CHUNK_BYTES = 64 * 1024;
|
|
845
|
+
/** #1275: largest trailing entry read locally to seed or recover a history cursor; larger lines return null. */
|
|
846
|
+
export const SESSION_TAIL_READ_LIMIT_BYTES = 8 * 1024 * 1024;
|
|
847
|
+
/**
|
|
848
|
+
* #1275: read the `id` of the last complete non-header entry in a local Pi or OMP JSONL session file without
|
|
849
|
+
* reading earlier history. Opens non-blocking and checks `isFile()` so a FIFO or device cannot stall the runner;
|
|
850
|
+
* requires a trailing newline and an unchanged file size across the read so a torn or concurrent write answers null.
|
|
851
|
+
*/
|
|
852
|
+
export function readSessionTailEntryId(path, limitBytes = SESSION_TAIL_READ_LIMIT_BYTES,
|
|
853
|
+
/** Test seam only: called after fstat and after reading the tail bytes, to mutate the file at those points. */
|
|
854
|
+
testHooks) {
|
|
855
|
+
let fd;
|
|
856
|
+
try {
|
|
857
|
+
fd = fs.openSync(path, fs.constants.O_RDONLY | fs.constants.O_NONBLOCK);
|
|
858
|
+
const stat = fs.fstatSync(fd);
|
|
859
|
+
if (!stat.isFile() || stat.size <= 0 || limitBytes <= 0)
|
|
860
|
+
return null;
|
|
861
|
+
const size = stat.size;
|
|
862
|
+
testHooks?.afterStat?.();
|
|
863
|
+
const floor = Math.max(0, size - limitBytes);
|
|
864
|
+
const parts = [];
|
|
865
|
+
let cursor = size;
|
|
866
|
+
let foundLineStart = false;
|
|
867
|
+
while (cursor > floor) {
|
|
868
|
+
const readStart = Math.max(floor, cursor - SESSION_TAIL_CHUNK_BYTES);
|
|
869
|
+
const length = cursor - readStart;
|
|
870
|
+
const chunk = Buffer.allocUnsafe(length);
|
|
871
|
+
let offset = 0;
|
|
872
|
+
while (offset < length) {
|
|
873
|
+
const bytesRead = fs.readSync(fd, chunk, offset, length - offset, readStart + offset);
|
|
874
|
+
if (bytesRead === 0)
|
|
875
|
+
return null;
|
|
876
|
+
offset += bytesRead;
|
|
877
|
+
}
|
|
878
|
+
if (cursor === size && chunk[length - 1] !== 0x0a)
|
|
879
|
+
return null;
|
|
880
|
+
const searchEnd = cursor === size ? length - 1 : length;
|
|
881
|
+
const newline = chunk.subarray(0, searchEnd).lastIndexOf(0x0a);
|
|
882
|
+
if (newline >= 0) {
|
|
883
|
+
parts.push(chunk.subarray(newline + 1, searchEnd));
|
|
884
|
+
foundLineStart = true;
|
|
885
|
+
break;
|
|
886
|
+
}
|
|
887
|
+
parts.push(chunk.subarray(0, searchEnd));
|
|
888
|
+
cursor = readStart;
|
|
889
|
+
}
|
|
890
|
+
if (!foundLineStart && floor > 0)
|
|
891
|
+
return null;
|
|
892
|
+
testHooks?.afterRead?.();
|
|
893
|
+
if (fs.fstatSync(fd).size !== size)
|
|
894
|
+
return null;
|
|
895
|
+
const lineBytes = parts.length === 1 ? parts[0] : Buffer.concat(parts.reverse());
|
|
896
|
+
if (lineBytes.byteLength === 0)
|
|
897
|
+
return null;
|
|
898
|
+
const entry = JSON.parse(new TextDecoder("utf-8", { fatal: true }).decode(lineBytes));
|
|
899
|
+
if (entry === null || typeof entry !== "object" || Array.isArray(entry))
|
|
900
|
+
return null;
|
|
901
|
+
const { type, id } = entry;
|
|
902
|
+
if (type === "session" || typeof id !== "string" || !id)
|
|
903
|
+
return null;
|
|
904
|
+
return id;
|
|
905
|
+
}
|
|
906
|
+
catch {
|
|
907
|
+
return null;
|
|
908
|
+
}
|
|
909
|
+
finally {
|
|
910
|
+
if (fd !== undefined) {
|
|
911
|
+
try {
|
|
912
|
+
fs.closeSync(fd);
|
|
913
|
+
}
|
|
914
|
+
catch { /* best-effort */ }
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
}
|
|
829
918
|
export class RunnerCore {
|
|
830
919
|
io;
|
|
831
920
|
identity;
|
|
@@ -888,6 +977,25 @@ export class RunnerCore {
|
|
|
888
977
|
/** Whether the last activity posted is that attention. Later activity in
|
|
889
978
|
* the same turn (a tool call after a denied approval) replaces it. */
|
|
890
979
|
attentionIsLatest = false;
|
|
980
|
+
/** WHICH SOURCE raised the current attention — an assistant failure, a
|
|
981
|
+
* refused input, or a get_state finding — because the subtype alone can't
|
|
982
|
+
* tell them apart (a refused steer and an untyped provider error both ask
|
|
983
|
+
* for runtime_error). A `willRetry` release or a retry-start clear may
|
|
984
|
+
* release only assistant-owned attention; input- and state-owned attention
|
|
985
|
+
* outrank it and pin the owner when raises are deduplicated. */
|
|
986
|
+
attentionOwner = null;
|
|
987
|
+
/** True between this run's agent_end and the next agent_start/turn_start:
|
|
988
|
+
* Pi 0.87.1 emits the exhausted-retry summary AFTER agent_end, so the
|
|
989
|
+
* correlation must survive the run boundary on forks. */
|
|
990
|
+
runEnded = false;
|
|
991
|
+
/** Set at a fork's auto_retry_start and consumed by the NEXT agent_start:
|
|
992
|
+
* the retry's opening is exactly one run-opening, so a later new user run
|
|
993
|
+
* is never mistaken for it (forks that omit agent_settled included). */
|
|
994
|
+
retryOpeningPending = false;
|
|
995
|
+
/** True while the CURRENT run opened as an automatic retry's opening: the
|
|
996
|
+
* opening-block reset must not clear the retry's own correlation — only a
|
|
997
|
+
* genuinely new user run does. */
|
|
998
|
+
runOpenedAsRetry = false;
|
|
891
999
|
// Native OMP retry summaries have no message/status. Correlate only within
|
|
892
1000
|
// the announced attempt, using the latest typed assistant failure's exact
|
|
893
1001
|
// diagnostic as an identity check, never as a transient-error classifier.
|
|
@@ -913,6 +1021,28 @@ export class RunnerCore {
|
|
|
913
1021
|
/** #1275: OMP protocol v2. The limit offered while negotiating, then the decoder once OMP accepts. */
|
|
914
1022
|
v2Limit = null;
|
|
915
1023
|
frameDecoder = null;
|
|
1024
|
+
/** #1275: true while the startup catch-up get_entries request is still awaiting a reply. */
|
|
1025
|
+
catchUpPending = false;
|
|
1026
|
+
/** #1275: true when an unattributed oversized v2 drop happened while startup catch-up was in flight. */
|
|
1027
|
+
catchUpSuspectedOversizedDrop = false;
|
|
1028
|
+
/** #1275: report startup restore replay loss at most once per launch. */
|
|
1029
|
+
catchUpReplayLossReported = false;
|
|
1030
|
+
/** #1275: cursor sequence at which the startup catch-up request was dispatched. */
|
|
1031
|
+
catchUpSentSeq = 0;
|
|
1032
|
+
/** #1275: true when the saved cursor was refused as unknown so refresh re-anchors instead of repeating it. */
|
|
1033
|
+
unheldSavedCursor = false;
|
|
1034
|
+
/** #1275: true after an unanchored full get_entries failed for size so later turns do not repeat it. */
|
|
1035
|
+
unanchoredFullReadOversized = false;
|
|
1036
|
+
/** #1275: monotonic ordering for concurrent turn-end refreshes and live event cursor updates. */
|
|
1037
|
+
cursorSeq = 0;
|
|
1038
|
+
liveCursorSeq = 0;
|
|
1039
|
+
lastCursorAdvanceSeq = 0;
|
|
1040
|
+
refreshSequence = 0;
|
|
1041
|
+
lastSettledRefreshSeq = 0;
|
|
1042
|
+
completedTurns = 0;
|
|
1043
|
+
pendingRefreshes = new Map();
|
|
1044
|
+
oversizedSinceIds = new Set();
|
|
1045
|
+
rejectedSinceIds = new Set();
|
|
916
1046
|
constructor(io, identity, opts = {}) {
|
|
917
1047
|
this.io = io;
|
|
918
1048
|
this.identity = identity;
|
|
@@ -965,6 +1095,55 @@ export class RunnerCore {
|
|
|
965
1095
|
if (command)
|
|
966
1096
|
this.personPrompt(command.type === "follow_up" ? { type: "prompt", message: command.message, streamingBehavior: "steer" } : command);
|
|
967
1097
|
}
|
|
1098
|
+
recoveryRequests = new Map();
|
|
1099
|
+
/** A new get_state response and a new daemon acknowledgement, never cached readiness. No prompt is submitted. */
|
|
1100
|
+
verifyRecovery(sessionFile) {
|
|
1101
|
+
if (!this.ready || this.attention)
|
|
1102
|
+
return Promise.resolve({ ok: false, code: "runner_rpc_unavailable", detail: "The runner is not ready or still reports attention." });
|
|
1103
|
+
if (this.sessionFile !== sessionFile)
|
|
1104
|
+
return Promise.resolve({ ok: false, code: "runner_session_mismatch", detail: "The runner's session file differs from the recorded resume token." });
|
|
1105
|
+
if (this.recoveryRequests.size > 0)
|
|
1106
|
+
return Promise.resolve({ ok: false, code: "runner_rpc_unavailable", detail: "A recovery probe is already in progress; retry after it completes." });
|
|
1107
|
+
const id = `recovery-${randomUUID()}`;
|
|
1108
|
+
return new Promise((resolve) => {
|
|
1109
|
+
const timer = setTimeout(() => finish({ ok: false, code: "runner_rpc_unavailable", detail: "The RPC child or daemon did not answer the recovery probe in time." }), 4_000);
|
|
1110
|
+
const finish = (reply) => {
|
|
1111
|
+
if (!this.recoveryRequests.delete(id))
|
|
1112
|
+
return;
|
|
1113
|
+
clearTimeout(timer);
|
|
1114
|
+
resolve(reply);
|
|
1115
|
+
};
|
|
1116
|
+
this.recoveryRequests.set(id, { sessionFile, finish });
|
|
1117
|
+
try {
|
|
1118
|
+
this.io.sendRpc({ type: "get_state", id });
|
|
1119
|
+
}
|
|
1120
|
+
catch {
|
|
1121
|
+
finish({ ok: false, code: "runner_rpc_unavailable", detail: "The RPC child could not be reached." });
|
|
1122
|
+
}
|
|
1123
|
+
});
|
|
1124
|
+
}
|
|
1125
|
+
async finishRecovery(record, request) {
|
|
1126
|
+
if (record.success !== true || record.command !== "get_state") {
|
|
1127
|
+
request.finish({ ok: false, code: "runner_rpc_unavailable", detail: "The RPC child did not return a successful get_state response." });
|
|
1128
|
+
return;
|
|
1129
|
+
}
|
|
1130
|
+
const data = record.data;
|
|
1131
|
+
if (data?.sessionFile !== request.sessionFile || typeof data?.sessionId !== "string" || !data.sessionId) {
|
|
1132
|
+
request.finish({ ok: false, code: "runner_session_mismatch", detail: "The live RPC response does not identify the recorded session file." });
|
|
1133
|
+
return;
|
|
1134
|
+
}
|
|
1135
|
+
const ack = await Promise.resolve(this.io.postActivity({
|
|
1136
|
+
eventFamily: "session_identity", sessionName: this.identity.sessionName, nodeId: this.identity.nodeId ?? null,
|
|
1137
|
+
...(this.identity.runId ? { runId: this.identity.runId } : {}),
|
|
1138
|
+
runtime: this.runtime, generation: this.identity.generation ?? null, hookEvent: "SessionStart",
|
|
1139
|
+
sessionFile: data.sessionFile, sessionId: data.sessionId, occurredAt: this.io.now(),
|
|
1140
|
+
})).catch(() => null);
|
|
1141
|
+
if (!this.ready || this.attention || this.sessionFile !== request.sessionFile || ack?.tokenPersisted !== true) {
|
|
1142
|
+
request.finish({ ok: false, code: "runner_identity_unconfirmed", detail: "The daemon did not confirm this runner's current session identity." });
|
|
1143
|
+
return;
|
|
1144
|
+
}
|
|
1145
|
+
request.finish({ ok: true, sessionFile: request.sessionFile, sessionId: data.sessionId });
|
|
1146
|
+
}
|
|
968
1147
|
/** Kick off identity capture. Called once pi's RPC stream is up; for OMP, with its `ready` frame. */
|
|
969
1148
|
start(ready) {
|
|
970
1149
|
// K4: the first credential observation, before Pi can make any request of this runner's.
|
|
@@ -986,10 +1165,18 @@ export class RunnerCore {
|
|
|
986
1165
|
this.io.sendRpc({ type: "negotiate_protocol", protocolVersion: 2, id: NEGOTIATE_ID });
|
|
987
1166
|
}
|
|
988
1167
|
this.io.sendRpc({ type: "get_state", id: GET_STATE_ID });
|
|
1168
|
+
this.unheldSavedCursor = false;
|
|
1169
|
+
this.unanchoredFullReadOversized = false;
|
|
1170
|
+
this.catchUpSuspectedOversizedDrop = false;
|
|
1171
|
+
this.catchUpReplayLossReported = false;
|
|
1172
|
+
this.oversizedSinceIds.clear();
|
|
1173
|
+
this.rejectedSinceIds.clear();
|
|
989
1174
|
if (this.opts.catchUpSince) {
|
|
990
1175
|
// Durable catch-up cursor (FR-5): replay session entries the previous
|
|
991
1176
|
// runner instance had not yet projected. Mirror-only; activity states
|
|
992
1177
|
// are live-only signals.
|
|
1178
|
+
this.catchUpPending = true;
|
|
1179
|
+
this.catchUpSentSeq = ++this.cursorSeq;
|
|
993
1180
|
this.io.sendRpc({ type: "get_entries", since: this.opts.catchUpSince, id: CATCH_UP_ID });
|
|
994
1181
|
}
|
|
995
1182
|
this.refreshPaneStatus();
|
|
@@ -1045,8 +1232,34 @@ export class RunnerCore {
|
|
|
1045
1232
|
}
|
|
1046
1233
|
/** A frame that can't be reassembled is lost, and said so. If it was a get_entries reply, the cursor stays where it was. */
|
|
1047
1234
|
reportDroppedFrame(reason) {
|
|
1048
|
-
if (reason)
|
|
1049
|
-
|
|
1235
|
+
if (!reason)
|
|
1236
|
+
return;
|
|
1237
|
+
const catchUpWasPending = this.catchUpPending;
|
|
1238
|
+
const oversizedDrop = OVERSIZED_REASSEMBLY_DROP_RE.test(reason);
|
|
1239
|
+
if (oversizedDrop) {
|
|
1240
|
+
if (this.catchUpPending && this.opts.catchUpSince) {
|
|
1241
|
+
this.catchUpPending = false;
|
|
1242
|
+
this.catchUpSuspectedOversizedDrop = true;
|
|
1243
|
+
}
|
|
1244
|
+
for (const pending of this.pendingRefreshes.values()) {
|
|
1245
|
+
if (pending.seq <= this.lastSettledRefreshSeq)
|
|
1246
|
+
continue;
|
|
1247
|
+
pending.suspectedOversizedDrop = true;
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
else {
|
|
1251
|
+
for (const pending of this.pendingRefreshes.values()) {
|
|
1252
|
+
if (pending.seq <= this.lastSettledRefreshSeq)
|
|
1253
|
+
continue;
|
|
1254
|
+
if (pending.requestSince === undefined)
|
|
1255
|
+
pending.mayHaveBeenDropped = true;
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
this.diag(`[omp-runner] ERROR rpc frame: ${reason}; the chunked frame was dropped`);
|
|
1259
|
+
if (oversizedDrop && catchUpWasPending && !this.catchUpReplayLossReported) {
|
|
1260
|
+
this.catchUpReplayLossReported = true;
|
|
1261
|
+
this.diag("[omp-runner] Startup restore replay was in flight when an oversized chunked frame was dropped; missed restore history may have been lost, and later cursor refreshes will not replay it.");
|
|
1262
|
+
}
|
|
1050
1263
|
}
|
|
1051
1264
|
get runtime() { return this.opts.runtime ?? "pi"; }
|
|
1052
1265
|
async acceptRunnerRequest(frame) {
|
|
@@ -1366,11 +1579,18 @@ export class RunnerCore {
|
|
|
1366
1579
|
this.nativeTurn.accepted.push(String(this.turn));
|
|
1367
1580
|
this.reportNativeTurn("opened");
|
|
1368
1581
|
}
|
|
1582
|
+
// A newly accepted prompt is a new user run: any retry correlation (and
|
|
1583
|
+
// its pending opening mark) ended with the previous run.
|
|
1584
|
+
this.retryAttempt = null;
|
|
1585
|
+
this.retryFailure = null;
|
|
1586
|
+
this.retryOpeningPending = false;
|
|
1369
1587
|
this.io.postActivity(this.activityPayload("UserPromptSubmit", "accepted", { turnId: String(this.turn) }));
|
|
1370
1588
|
}
|
|
1371
1589
|
/** Child process exit — honest, loud, durable. */
|
|
1372
1590
|
handlePiExit(code) {
|
|
1373
1591
|
this.ready = false;
|
|
1592
|
+
for (const request of this.recoveryRequests.values())
|
|
1593
|
+
request.finish({ ok: false, code: "runner_rpc_unavailable", detail: "The RPC child exited during recovery verification." });
|
|
1374
1594
|
this.paneExited = true;
|
|
1375
1595
|
if (this.cancellation)
|
|
1376
1596
|
this.finishNativeCancellation(this.cancellation.submitted ? "requested" : "not-this-turn", "native_process_exited");
|
|
@@ -1383,6 +1603,11 @@ export class RunnerCore {
|
|
|
1383
1603
|
this.refreshPaneStatus();
|
|
1384
1604
|
}
|
|
1385
1605
|
handleResponse(record) {
|
|
1606
|
+
const recovery = typeof record.id === "string" ? this.recoveryRequests.get(record.id) : undefined;
|
|
1607
|
+
if (recovery) {
|
|
1608
|
+
void this.finishRecovery(record, recovery).catch(() => recovery.finish({ ok: false, code: "runner_identity_unconfirmed", detail: "Session identity could not be confirmed." }));
|
|
1609
|
+
return;
|
|
1610
|
+
}
|
|
1386
1611
|
const cancellation = this.cancellation;
|
|
1387
1612
|
if (cancellation && !cancellation.submitted && record.id === `openrig-cancel-preflight-${cancellation.entry.frame.requestId}`) {
|
|
1388
1613
|
if (cancellation.ended)
|
|
@@ -1527,6 +1752,7 @@ export class RunnerCore {
|
|
|
1527
1752
|
}
|
|
1528
1753
|
if (record.success === false || record.error != null) {
|
|
1529
1754
|
const detail = typeof record.error === "string" ? record.error : "request failed";
|
|
1755
|
+
const code = typeof record.code === "string" ? record.code : undefined;
|
|
1530
1756
|
const message = detail + (this.runtime === "pi" ? piCredentialHint(detail) : "");
|
|
1531
1757
|
const compactId = this.runtime === "pi" && typeof record.id === "string" && record.id.startsWith(COMPACT_ID)
|
|
1532
1758
|
? record.id : null;
|
|
@@ -1564,18 +1790,73 @@ export class RunnerCore {
|
|
|
1564
1790
|
this.io.stopChild?.();
|
|
1565
1791
|
return;
|
|
1566
1792
|
}
|
|
1567
|
-
if (record.id === CATCH_UP_ID
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1793
|
+
if (record.id === CATCH_UP_ID) {
|
|
1794
|
+
this.catchUpPending = false;
|
|
1795
|
+
this.catchUpSuspectedOversizedDrop = false;
|
|
1796
|
+
const oversized = OVERSIZED_RESTORE_ERROR_RE.test(detail);
|
|
1797
|
+
const unknown = isUnknownCursorError(detail, code);
|
|
1798
|
+
if (oversized) {
|
|
1799
|
+
this.recordOversizedSince(this.opts.catchUpSince);
|
|
1800
|
+
}
|
|
1801
|
+
else if (unknown) {
|
|
1802
|
+
this.recordRejectedSince(this.opts.catchUpSince);
|
|
1803
|
+
if (this.lastEntryId === this.opts.catchUpSince)
|
|
1804
|
+
this.unheldSavedCursor = true;
|
|
1805
|
+
}
|
|
1806
|
+
if (this.runtime === "pi") {
|
|
1807
|
+
// A refused catch-up (a saved cursor this session's history doesn't hold, such as an older runner's UI-event
|
|
1808
|
+
// id) is history sync, not the seat's resume: say so, and take a confirmed cursor from the history's tail.
|
|
1809
|
+
if (!oversized && this.lastEntryId === this.opts.catchUpSince)
|
|
1810
|
+
this.unheldSavedCursor = true;
|
|
1811
|
+
this.diag(`[pi-runner] History catch-up didn't run (${message}). That's history sync, separate from the seat's resume; reading the history cursor again.`);
|
|
1812
|
+
this.requestCursorRefresh(true);
|
|
1813
|
+
return;
|
|
1814
|
+
}
|
|
1815
|
+
this.diag(`[${this.runtime}-runner] ERROR rpc: ${message}`);
|
|
1816
|
+
if (!this.catchUpReplayLossReported) {
|
|
1817
|
+
this.catchUpReplayLossReported = true;
|
|
1818
|
+
this.diag(`[${this.runtime}-runner] Startup restore replay was lost; later cursor refreshes will advance without replaying missed history.`);
|
|
1819
|
+
}
|
|
1820
|
+
if (unknown && this.unheldSavedCursor) {
|
|
1821
|
+
this.requestCursorRefresh(true);
|
|
1822
|
+
}
|
|
1572
1823
|
return;
|
|
1573
1824
|
}
|
|
1825
|
+
if (this.isCursorRefreshId(record.id)) {
|
|
1826
|
+
const failed = this.pendingRefreshes.get(record.id);
|
|
1827
|
+
if (failed) {
|
|
1828
|
+
this.pendingRefreshes.delete(record.id);
|
|
1829
|
+
if (OVERSIZED_RESTORE_ERROR_RE.test(detail)) {
|
|
1830
|
+
if (failed.requestSince !== undefined) {
|
|
1831
|
+
this.recordOversizedSince(failed.requestSince);
|
|
1832
|
+
}
|
|
1833
|
+
else {
|
|
1834
|
+
this.unanchoredFullReadOversized = true;
|
|
1835
|
+
}
|
|
1836
|
+
}
|
|
1837
|
+
if (failed.seq >= this.lastSettledRefreshSeq) {
|
|
1838
|
+
this.lastSettledRefreshSeq = failed.seq;
|
|
1839
|
+
if (failed.requestSince !== undefined && isUnknownCursorError(detail, code)) {
|
|
1840
|
+
this.recordRejectedSince(failed.requestSince);
|
|
1841
|
+
if (failed.requestSince === this.lastEntryId)
|
|
1842
|
+
this.unheldSavedCursor = true;
|
|
1843
|
+
this.diag(`[${this.runtime}-runner] ERROR rpc: ${message}`);
|
|
1844
|
+
if (!failed.isRecovery)
|
|
1845
|
+
this.requestCursorRefresh(true);
|
|
1846
|
+
return;
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
}
|
|
1850
|
+
}
|
|
1574
1851
|
this.diag(`[${this.runtime}-runner] ERROR rpc: ${message}`);
|
|
1575
1852
|
// Only a rejected input means the seat cannot do the requested work.
|
|
1576
1853
|
// A mistimed /abort (or any control command) leaves the seat idle.
|
|
1577
|
-
|
|
1578
|
-
|
|
1854
|
+
// Built-in Pi keeps its own handling; OMP and `protocol: pi-rpc`
|
|
1855
|
+
// community harnesses must raise attention here because a refused
|
|
1856
|
+
// prompt/steer/follow_up is the seat being unable to work at all —
|
|
1857
|
+
// e.g. a missing or invalid credential.
|
|
1858
|
+
if (this.runtime !== "pi" && typeof record.command === "string" && Object.hasOwn(INPUT_COMMANDS, record.command)) {
|
|
1859
|
+
this.raiseAttention("runtime_error", "input");
|
|
1579
1860
|
}
|
|
1580
1861
|
return;
|
|
1581
1862
|
}
|
|
@@ -1601,7 +1882,7 @@ export class RunnerCore {
|
|
|
1601
1882
|
this.diag(`[${this.runtime}-runner] ERROR rpc get_state returned no session file; cannot provide a resume token`);
|
|
1602
1883
|
this.paneError = true;
|
|
1603
1884
|
this.refreshPaneStatus();
|
|
1604
|
-
this.raiseAttention("runtime_error");
|
|
1885
|
+
this.raiseAttention("runtime_error", "state");
|
|
1605
1886
|
return;
|
|
1606
1887
|
}
|
|
1607
1888
|
this.writeSidecar({});
|
|
@@ -1611,7 +1892,7 @@ export class RunnerCore {
|
|
|
1611
1892
|
this.io.mirrorLine(`[${this.runtime}-runner] ERROR resume: get_state reports ${this.sessionFile}, not the requested ${this.opts.requestedSessionFile}; its identity isn't reported`);
|
|
1612
1893
|
this.paneError = true;
|
|
1613
1894
|
this.refreshPaneStatus();
|
|
1614
|
-
this.raiseAttention("runtime_error");
|
|
1895
|
+
this.raiseAttention("runtime_error", "state");
|
|
1615
1896
|
return;
|
|
1616
1897
|
}
|
|
1617
1898
|
if (!wasReady) {
|
|
@@ -1627,21 +1908,222 @@ export class RunnerCore {
|
|
|
1627
1908
|
this.postSessionIdentity();
|
|
1628
1909
|
return;
|
|
1629
1910
|
}
|
|
1630
|
-
if (record.id
|
|
1631
|
-
const
|
|
1632
|
-
|
|
1911
|
+
if (this.isCursorRefreshId(record.id) || record.id === CATCH_UP_ID) {
|
|
1912
|
+
const isCatchUp = record.id === CATCH_UP_ID;
|
|
1913
|
+
let meta;
|
|
1914
|
+
if (isCatchUp) {
|
|
1915
|
+
this.catchUpPending = false;
|
|
1916
|
+
this.catchUpSuspectedOversizedDrop = false;
|
|
1917
|
+
}
|
|
1918
|
+
else {
|
|
1919
|
+
meta = this.pendingRefreshes.get(record.id);
|
|
1920
|
+
if (this.refreshSequence > 0 && !meta)
|
|
1921
|
+
return;
|
|
1922
|
+
if (meta)
|
|
1923
|
+
this.pendingRefreshes.delete(record.id);
|
|
1924
|
+
}
|
|
1925
|
+
const rawData = record.data !== null && typeof record.data === "object" && !Array.isArray(record.data)
|
|
1926
|
+
? record.data
|
|
1927
|
+
: undefined;
|
|
1928
|
+
const rawEntries = Array.isArray(rawData?.entries) ? rawData.entries : (Array.isArray(record.entries) ? record.entries : null);
|
|
1929
|
+
if (rawEntries === null) {
|
|
1930
|
+
if (meta && meta.seq >= this.lastSettledRefreshSeq)
|
|
1931
|
+
this.lastSettledRefreshSeq = meta.seq;
|
|
1932
|
+
return;
|
|
1933
|
+
}
|
|
1934
|
+
const entries = rawEntries;
|
|
1633
1935
|
const last = entries.at(-1);
|
|
1634
|
-
const lastId = last !== null && typeof last === "object" &&
|
|
1936
|
+
const lastId = last !== null && typeof last === "object" && !Array.isArray(last)
|
|
1937
|
+
&& typeof last.id === "string" && last.id.length > 0
|
|
1635
1938
|
? last.id
|
|
1636
1939
|
: undefined;
|
|
1637
|
-
if (lastId) {
|
|
1638
|
-
|
|
1639
|
-
|
|
1940
|
+
if (entries.length > 0 && lastId === undefined) {
|
|
1941
|
+
if (meta && meta.seq >= this.lastSettledRefreshSeq)
|
|
1942
|
+
this.lastSettledRefreshSeq = meta.seq;
|
|
1943
|
+
this.reportUsageFacts(entries);
|
|
1944
|
+
return;
|
|
1945
|
+
}
|
|
1946
|
+
if (!isCatchUp && meta !== undefined && meta.seq < this.lastSettledRefreshSeq) {
|
|
1947
|
+
this.reportUsageFacts(entries);
|
|
1948
|
+
return;
|
|
1949
|
+
}
|
|
1950
|
+
if (meta)
|
|
1951
|
+
this.lastSettledRefreshSeq = meta.seq;
|
|
1952
|
+
if (isCatchUp) {
|
|
1953
|
+
if (this.opts.catchUpSince) {
|
|
1954
|
+
this.oversizedSinceIds.delete(this.opts.catchUpSince);
|
|
1955
|
+
this.rejectedSinceIds.delete(this.opts.catchUpSince);
|
|
1956
|
+
}
|
|
1957
|
+
if (this.lastEntryId === this.opts.catchUpSince)
|
|
1958
|
+
this.unheldSavedCursor = false;
|
|
1959
|
+
const canAdvance = lastId !== undefined && lastId !== this.lastEntryId
|
|
1960
|
+
&& (this.lastCursorAdvanceSeq <= this.catchUpSentSeq
|
|
1961
|
+
|| (this.lastEntryId !== undefined && this.entriesContainId(entries, this.lastEntryId)));
|
|
1962
|
+
if (canAdvance) {
|
|
1963
|
+
this.lastEntryId = lastId;
|
|
1964
|
+
this.unheldSavedCursor = false;
|
|
1965
|
+
this.rejectedSinceIds.delete(lastId);
|
|
1966
|
+
this.lastCursorAdvanceSeq = ++this.cursorSeq;
|
|
1967
|
+
this.writeSidecar({});
|
|
1968
|
+
}
|
|
1969
|
+
}
|
|
1970
|
+
else {
|
|
1971
|
+
if (meta?.requestSince !== undefined) {
|
|
1972
|
+
this.oversizedSinceIds.delete(meta.requestSince);
|
|
1973
|
+
this.rejectedSinceIds.delete(meta.requestSince);
|
|
1974
|
+
}
|
|
1975
|
+
else if (meta !== undefined) {
|
|
1976
|
+
this.unanchoredFullReadOversized = false;
|
|
1977
|
+
}
|
|
1978
|
+
const confirmedId = entries.length === 0
|
|
1979
|
+
? (record.success === true ? meta?.anchorId : undefined)
|
|
1980
|
+
: lastId;
|
|
1981
|
+
if (confirmedId !== undefined) {
|
|
1982
|
+
const canAdvance = meta === undefined
|
|
1983
|
+
|| meta.sentSeq >= this.liveCursorSeq
|
|
1984
|
+
|| (lastId !== undefined && this.lastEntryId !== undefined && this.entriesContainId(entries, this.lastEntryId));
|
|
1985
|
+
if (canAdvance) {
|
|
1986
|
+
this.unheldSavedCursor = false;
|
|
1987
|
+
this.rejectedSinceIds.delete(confirmedId);
|
|
1988
|
+
if (this.lastEntryId !== confirmedId) {
|
|
1989
|
+
this.lastEntryId = confirmedId;
|
|
1990
|
+
this.lastCursorAdvanceSeq = ++this.cursorSeq;
|
|
1991
|
+
this.writeSidecar({});
|
|
1992
|
+
}
|
|
1993
|
+
}
|
|
1994
|
+
}
|
|
1640
1995
|
}
|
|
1641
1996
|
this.reportUsageFacts(entries);
|
|
1642
1997
|
return;
|
|
1643
1998
|
}
|
|
1644
1999
|
}
|
|
2000
|
+
isCursorRefreshId(id) {
|
|
2001
|
+
return id === CURSOR_REFRESH_ID || (typeof id === "string" && id.startsWith(`${CURSOR_REFRESH_ID}:`));
|
|
2002
|
+
}
|
|
2003
|
+
/** Matches main reportUsageFacts predicate: Pi --usage-facts seats keep full get_entries refreshes for retry. */
|
|
2004
|
+
isPiUsageFactsActive() {
|
|
2005
|
+
return Boolean(this.opts.usageFacts) && this.runtime === "pi" && Boolean(this.io.postUsageFacts);
|
|
2006
|
+
}
|
|
2007
|
+
readableSessionFile() {
|
|
2008
|
+
return !this.resumedElsewhere() ? this.sessionFile : undefined;
|
|
2009
|
+
}
|
|
2010
|
+
entriesContainId(entries, targetId) {
|
|
2011
|
+
for (const entry of entries) {
|
|
2012
|
+
if (entry !== null && typeof entry === "object" && !Array.isArray(entry) && entry.id === targetId) {
|
|
2013
|
+
return true;
|
|
2014
|
+
}
|
|
2015
|
+
}
|
|
2016
|
+
return false;
|
|
2017
|
+
}
|
|
2018
|
+
dispatchCursorRefresh(since, anchorId, isRecovery = false) {
|
|
2019
|
+
const seq = ++this.refreshSequence;
|
|
2020
|
+
const sentSeq = ++this.cursorSeq;
|
|
2021
|
+
const id = seq === 1 ? CURSOR_REFRESH_ID : `${CURSOR_REFRESH_ID}:${seq}`;
|
|
2022
|
+
if (this.pendingRefreshes.size >= MAX_PENDING_CURSOR_REFRESHES) {
|
|
2023
|
+
const oldestKey = this.pendingRefreshes.keys().next().value;
|
|
2024
|
+
if (oldestKey !== undefined) {
|
|
2025
|
+
const evicted = this.pendingRefreshes.get(oldestKey);
|
|
2026
|
+
this.pendingRefreshes.delete(oldestKey);
|
|
2027
|
+
if (evicted?.suspectedOversizedDrop) {
|
|
2028
|
+
if (evicted.requestSince !== undefined)
|
|
2029
|
+
this.recordOversizedSince(evicted.requestSince);
|
|
2030
|
+
else
|
|
2031
|
+
this.unanchoredFullReadOversized = true;
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
}
|
|
2035
|
+
this.pendingRefreshes.set(id, {
|
|
2036
|
+
id,
|
|
2037
|
+
seq,
|
|
2038
|
+
sentSeq,
|
|
2039
|
+
dispatchedTurn: this.completedTurns,
|
|
2040
|
+
requestSince: since,
|
|
2041
|
+
...(anchorId ? { anchorId } : {}),
|
|
2042
|
+
...(isRecovery ? { isRecovery: true } : {}),
|
|
2043
|
+
});
|
|
2044
|
+
this.io.sendRpc(since ? { type: "get_entries", since, id } : { type: "get_entries", id });
|
|
2045
|
+
}
|
|
2046
|
+
recordOversizedSince(since) {
|
|
2047
|
+
if (!since || this.oversizedSinceIds.has(since))
|
|
2048
|
+
return;
|
|
2049
|
+
if (this.oversizedSinceIds.size >= MAX_PENDING_CURSOR_REFRESHES) {
|
|
2050
|
+
const oldest = this.oversizedSinceIds.keys().next().value;
|
|
2051
|
+
if (oldest !== undefined)
|
|
2052
|
+
this.oversizedSinceIds.delete(oldest);
|
|
2053
|
+
}
|
|
2054
|
+
this.oversizedSinceIds.add(since);
|
|
2055
|
+
}
|
|
2056
|
+
recordRejectedSince(since) {
|
|
2057
|
+
if (!since || this.rejectedSinceIds.has(since))
|
|
2058
|
+
return;
|
|
2059
|
+
if (this.rejectedSinceIds.size >= MAX_PENDING_CURSOR_REFRESHES) {
|
|
2060
|
+
const oldest = this.rejectedSinceIds.keys().next().value;
|
|
2061
|
+
if (oldest !== undefined)
|
|
2062
|
+
this.rejectedSinceIds.delete(oldest);
|
|
2063
|
+
}
|
|
2064
|
+
this.rejectedSinceIds.add(since);
|
|
2065
|
+
}
|
|
2066
|
+
isSinceBlockedOversized(since) {
|
|
2067
|
+
if (this.oversizedSinceIds.has(since))
|
|
2068
|
+
return true;
|
|
2069
|
+
if (this.catchUpSuspectedOversizedDrop && this.opts.catchUpSince === since)
|
|
2070
|
+
return true;
|
|
2071
|
+
for (const pending of this.pendingRefreshes.values()) {
|
|
2072
|
+
if (pending.suspectedOversizedDrop && pending.requestSince === since)
|
|
2073
|
+
return true;
|
|
2074
|
+
}
|
|
2075
|
+
return false;
|
|
2076
|
+
}
|
|
2077
|
+
isUnanchoredBlockedOversized() {
|
|
2078
|
+
if (this.unanchoredFullReadOversized)
|
|
2079
|
+
return true;
|
|
2080
|
+
for (const pending of this.pendingRefreshes.values()) {
|
|
2081
|
+
if (pending.suspectedOversizedDrop && pending.requestSince === undefined)
|
|
2082
|
+
return true;
|
|
2083
|
+
}
|
|
2084
|
+
return false;
|
|
2085
|
+
}
|
|
2086
|
+
hasInFlightUnanchoredRefresh() {
|
|
2087
|
+
for (const pending of this.pendingRefreshes.values()) {
|
|
2088
|
+
if (pending.requestSince === undefined
|
|
2089
|
+
&& pending.seq > this.lastSettledRefreshSeq
|
|
2090
|
+
&& !pending.suspectedOversizedDrop
|
|
2091
|
+
&& !pending.mayHaveBeenDropped
|
|
2092
|
+
&& this.completedTurns - pending.dispatchedTurn < MAX_UNANCHORED_REFRESH_HOLD_TURNS) {
|
|
2093
|
+
return true;
|
|
2094
|
+
}
|
|
2095
|
+
}
|
|
2096
|
+
return false;
|
|
2097
|
+
}
|
|
2098
|
+
/** #1275: refresh the cursor boundedly using `since` from the saved position or local session tail,
|
|
2099
|
+
* keeping full reads for active Pi --usage-facts seats. */
|
|
2100
|
+
requestCursorRefresh(isRecovery = false, allowUnanchoredFullRead = true) {
|
|
2101
|
+
if (this.isPiUsageFactsActive()) {
|
|
2102
|
+
this.dispatchCursorRefresh(undefined, undefined, isRecovery);
|
|
2103
|
+
return;
|
|
2104
|
+
}
|
|
2105
|
+
let skippedOversizedSince = false;
|
|
2106
|
+
if (!this.unheldSavedCursor && this.lastEntryId !== undefined && !this.rejectedSinceIds.has(this.lastEntryId)) {
|
|
2107
|
+
if (!this.isSinceBlockedOversized(this.lastEntryId)) {
|
|
2108
|
+
this.dispatchCursorRefresh(this.lastEntryId, undefined, isRecovery);
|
|
2109
|
+
return;
|
|
2110
|
+
}
|
|
2111
|
+
skippedOversizedSince = true;
|
|
2112
|
+
}
|
|
2113
|
+
const sessionFile = this.readableSessionFile();
|
|
2114
|
+
const tailId = sessionFile ? this.io.readLastEntryId?.(sessionFile) ?? null : null;
|
|
2115
|
+
if (tailId && !(this.unheldSavedCursor && tailId === this.lastEntryId) && !this.rejectedSinceIds.has(tailId)) {
|
|
2116
|
+
if (!this.isSinceBlockedOversized(tailId)) {
|
|
2117
|
+
this.dispatchCursorRefresh(tailId, tailId, isRecovery);
|
|
2118
|
+
return;
|
|
2119
|
+
}
|
|
2120
|
+
skippedOversizedSince = true;
|
|
2121
|
+
}
|
|
2122
|
+
if (!allowUnanchoredFullRead || skippedOversizedSince || this.isUnanchoredBlockedOversized() || this.hasInFlightUnanchoredRefresh()) {
|
|
2123
|
+
return;
|
|
2124
|
+
}
|
|
2125
|
+
this.dispatchCursorRefresh(undefined, undefined, isRecovery);
|
|
2126
|
+
}
|
|
1645
2127
|
/** OPR.0.7.0.2: report usage from the persisted entries a get_entries response returned (catch-up after a
|
|
1646
2128
|
* restart, or the refresh after each agent_end). Pi only, and only with --usage-facts. Never live updates. */
|
|
1647
2129
|
/** K4: what an observation shows Pi may hold for the rest of the process (an extension, a credential-bearing
|
|
@@ -1718,14 +2200,23 @@ export class RunnerCore {
|
|
|
1718
2200
|
}
|
|
1719
2201
|
}, () => { });
|
|
1720
2202
|
}
|
|
1721
|
-
raiseAttention(subtype) {
|
|
2203
|
+
raiseAttention(subtype, owner) {
|
|
1722
2204
|
// Persistent failures and denied approvals outrank transient failures.
|
|
1723
2205
|
// Only emit when attention changes or intervening activity replaced it.
|
|
1724
2206
|
const next = this.attention === "runtime_error" ? this.attention
|
|
1725
2207
|
: this.attention === "permission_prompt" && subtype === "transient_turn_error" ? this.attention : subtype;
|
|
1726
|
-
|
|
2208
|
+
// The owner records the source even when the post is deduplicated: an
|
|
2209
|
+
// input or state raise PINS the owner (a later assistant error of the
|
|
2210
|
+
// same subtype must not make it releasable), and an assistant raise
|
|
2211
|
+
// updates the owner only when an assistant failure is what is held.
|
|
2212
|
+
const ownerNext = this.attentionOwner !== null && this.attentionOwner !== "assistant" && owner === "assistant"
|
|
2213
|
+
? this.attentionOwner : owner;
|
|
2214
|
+
if (this.attention === next && this.attentionIsLatest) {
|
|
2215
|
+
this.attentionOwner = ownerNext;
|
|
1727
2216
|
return;
|
|
2217
|
+
}
|
|
1728
2218
|
this.attention = next;
|
|
2219
|
+
this.attentionOwner = ownerNext;
|
|
1729
2220
|
this.attentionIsLatest = true;
|
|
1730
2221
|
this.io.postActivity(this.activityPayload("Notification", next === "transient_turn_error" ? "runtime_error" : next));
|
|
1731
2222
|
this.refreshPaneStatus();
|
|
@@ -1771,6 +2262,7 @@ export class RunnerCore {
|
|
|
1771
2262
|
}
|
|
1772
2263
|
clearAttention() {
|
|
1773
2264
|
this.attention = null;
|
|
2265
|
+
this.attentionOwner = null;
|
|
1774
2266
|
this.attentionIsLatest = false;
|
|
1775
2267
|
this.refreshPaneStatus();
|
|
1776
2268
|
}
|
|
@@ -1896,7 +2388,7 @@ export class RunnerCore {
|
|
|
1896
2388
|
this.diag(this.runtime !== "omp"
|
|
1897
2389
|
? `[${this.runtime}-runner] Extension ${method}: ${detail}; cancelled because the managed RPC pane cannot answer it. Operator action required: review the cancelled request and re-send an instruction the extension can complete without a dialog.`
|
|
1898
2390
|
: "[omp-runner] Approval/input requested; cancelled because the managed RPC pane cannot answer it. Operator action required: review the denied action and re-send a safe instruction, or change the seat permission policy explicitly.");
|
|
1899
|
-
this.raiseAttention("permission_prompt");
|
|
2391
|
+
this.raiseAttention("permission_prompt", "input");
|
|
1900
2392
|
}
|
|
1901
2393
|
return;
|
|
1902
2394
|
}
|
|
@@ -1909,16 +2401,33 @@ export class RunnerCore {
|
|
|
1909
2401
|
this.refreshPaneStatus();
|
|
1910
2402
|
}
|
|
1911
2403
|
}
|
|
1912
|
-
// Durable cursor
|
|
1913
|
-
//
|
|
1914
|
-
|
|
2404
|
+
// Durable cursor (#2117, #2870, #1275): explicit entryId string takes precedence (empty string
|
|
2405
|
+
// leaves cursor put, as on main); on OMP without entryId, non-empty event.id advances it
|
|
2406
|
+
// (Pi requires explicit entryId only).
|
|
2407
|
+
const entryId = typeof event.entryId === "string"
|
|
2408
|
+
? event.entryId
|
|
1915
2409
|
: (this.runtime === "omp" && typeof event.id === "string" ? event.id : undefined);
|
|
1916
2410
|
if (entryId) {
|
|
1917
2411
|
this.lastEntryId = entryId;
|
|
2412
|
+
this.unheldSavedCursor = false;
|
|
2413
|
+
this.rejectedSinceIds.delete(entryId);
|
|
2414
|
+
this.liveCursorSeq = ++this.cursorSeq;
|
|
2415
|
+
this.lastCursorAdvanceSeq = this.liveCursorSeq;
|
|
1918
2416
|
this.writeSidecar({});
|
|
1919
2417
|
}
|
|
1920
2418
|
if (event.type === "agent_start") {
|
|
1921
|
-
|
|
2419
|
+
// An automatic retry's opening is not a new user run (Pi 0.87.1:
|
|
2420
|
+
// auto_retry_start, the backoff, then agent.continue() emits
|
|
2421
|
+
// agent_start + turn_start). Input- and state-owned attention survives
|
|
2422
|
+
// it — the retry correlation marks the opening; assistant-owned
|
|
2423
|
+
// attention yields to the new run, and a genuinely new run clears
|
|
2424
|
+
// everything, as every omp run still does.
|
|
2425
|
+
const retryOpening = this.retryOpeningPending;
|
|
2426
|
+
this.retryOpeningPending = false;
|
|
2427
|
+
this.runOpenedAsRetry = retryOpening;
|
|
2428
|
+
if (!(retryOpening && this.attentionOwner !== null && this.attentionOwner !== "assistant"))
|
|
2429
|
+
this.clearAttention();
|
|
2430
|
+
this.runEnded = false;
|
|
1922
2431
|
this.io.clearStatus?.();
|
|
1923
2432
|
this.paneError = false;
|
|
1924
2433
|
this.paneRetrying = false;
|
|
@@ -1946,7 +2455,7 @@ export class RunnerCore {
|
|
|
1946
2455
|
}
|
|
1947
2456
|
this.refreshPaneStatus();
|
|
1948
2457
|
}
|
|
1949
|
-
if (this.runtime
|
|
2458
|
+
if (this.runtime !== "pi") {
|
|
1950
2459
|
if (event.type === "agent_start" || event.type === "turn_start"
|
|
1951
2460
|
|| (event.type === "message_start" && message?.role === "assistant")
|
|
1952
2461
|
|| ((event.type === "message_end" || event.type === "turn_end")
|
|
@@ -1955,13 +2464,21 @@ export class RunnerCore {
|
|
|
1955
2464
|
if (event.type === "auto_retry_start") {
|
|
1956
2465
|
this.retryAttempt = Number.isInteger(event.attempt) && event.attempt > 0 ? event.attempt : null;
|
|
1957
2466
|
this.retryFailure = null;
|
|
2467
|
+
if (this.runtime !== "omp" && this.runtime !== "pi")
|
|
2468
|
+
this.retryOpeningPending = true;
|
|
1958
2469
|
}
|
|
1959
2470
|
// A successful automatic retry supersedes the failed attempt.
|
|
1960
|
-
|
|
2471
|
+
// OMP keeps its existing clear. A fork's retry start releases only what
|
|
2472
|
+
// this run's assistant failure raised — a refused input's or a get_state
|
|
2473
|
+
// attention stays held through the backoff.
|
|
2474
|
+
if (event.type === "auto_retry_start" && (this.attention === "runtime_error" || this.attention === "transient_turn_error")
|
|
2475
|
+
&& (this.runtime === "omp" || this.attentionOwner === "assistant"))
|
|
1961
2476
|
this.clearAttention();
|
|
1962
2477
|
// Some paths omit agent_start; turn_start still opens a new turn.
|
|
1963
|
-
if (event.type === "turn_start")
|
|
2478
|
+
if (event.type === "turn_start") {
|
|
1964
2479
|
this.assistantErrorShown = false;
|
|
2480
|
+
this.runEnded = false;
|
|
2481
|
+
}
|
|
1965
2482
|
}
|
|
1966
2483
|
const wake = this.managedWake;
|
|
1967
2484
|
if (wake && wake.disposition === undefined && ["agent_start", "message_end", "agent_end"].includes(String(event.type)))
|
|
@@ -2010,6 +2527,21 @@ export class RunnerCore {
|
|
|
2010
2527
|
}
|
|
2011
2528
|
}
|
|
2012
2529
|
this.pendingNativeInputs.clear();
|
|
2530
|
+
// A newly accepted prompt is a new user run: any retry correlation (and
|
|
2531
|
+
// its pending opening mark) ended with the previous run. The automatic
|
|
2532
|
+
// retry's OWN opening also counts as an opening (streaming false→true
|
|
2533
|
+
// after agent_end) — there the correlation must SURVIVE, or a failure
|
|
2534
|
+
// inside the retry raises persistent and the terminal summary can no
|
|
2535
|
+
// longer match. The mark is CONSUMED here: exactly one opening — the
|
|
2536
|
+
// retry's — is exempt, so a later run that opens without an agent_start
|
|
2537
|
+
// (turn_start only) still resets the correlation.
|
|
2538
|
+
const retryOwnOpening = this.runOpenedAsRetry;
|
|
2539
|
+
this.runOpenedAsRetry = false;
|
|
2540
|
+
if (!retryOwnOpening) {
|
|
2541
|
+
this.retryAttempt = null;
|
|
2542
|
+
this.retryFailure = null;
|
|
2543
|
+
this.retryOpeningPending = false;
|
|
2544
|
+
}
|
|
2013
2545
|
this.io.postActivity(this.activityPayload("UserPromptSubmit", "accepted", { turnId: String(this.turn) }));
|
|
2014
2546
|
}
|
|
2015
2547
|
// OMP writes its JSONL lazily; re-announce identity after each turn until
|
|
@@ -2035,9 +2567,21 @@ export class RunnerCore {
|
|
|
2035
2567
|
// QA RED fold: live events do not reliably carry
|
|
2036
2568
|
// session-entry ids, so the durable cursor starved (lastEntryId stayed
|
|
2037
2569
|
// null in real runs). Refresh it from the source of truth after every
|
|
2038
|
-
// completed turn
|
|
2039
|
-
|
|
2040
|
-
this.
|
|
2570
|
+
// completed turn using a bounded read (#1275).
|
|
2571
|
+
const completedTurn = this.runtime !== "omp" || event.isTerminal !== false;
|
|
2572
|
+
this.requestCursorRefresh(false, completedTurn);
|
|
2573
|
+
if (completedTurn)
|
|
2574
|
+
this.completedTurns += 1;
|
|
2575
|
+
// A provider failure the harness says it will retry (Pi >=0.75.4 types
|
|
2576
|
+
// `willRetry` at agent_end) must not hold the seat through the backoff.
|
|
2577
|
+
// Release only the attention this run's assistant error raised; a
|
|
2578
|
+
// refused input or get_state attention is not this run's to clear.
|
|
2579
|
+
this.runEnded = true;
|
|
2580
|
+
if (event.willRetry === true
|
|
2581
|
+
&& this.attention !== null
|
|
2582
|
+
&& this.attentionOwner === "assistant" && this.attentionIsLatest) {
|
|
2583
|
+
this.clearAttention();
|
|
2584
|
+
}
|
|
2041
2585
|
}
|
|
2042
2586
|
if (mapped.mirrorAppend)
|
|
2043
2587
|
this.io.mirrorAppend(mapped.mirrorAppend);
|
|
@@ -2056,25 +2600,55 @@ export class RunnerCore {
|
|
|
2056
2600
|
this.paneError = true;
|
|
2057
2601
|
this.refreshPaneStatus();
|
|
2058
2602
|
// Only typed, explicitly transient HTTP failures may release the send
|
|
2059
|
-
// guard at agent_end
|
|
2060
|
-
//
|
|
2603
|
+
// guard at agent_end on status alone (OMP types the status). A fork's
|
|
2604
|
+
// untyped provider failure releases through `willRetry` at agent_end and
|
|
2605
|
+
// the harness's own retry summary instead. Unknown/auth/configuration
|
|
2606
|
+
// failures stay attention; diagnostic prose never decides retry safety.
|
|
2061
2607
|
const status = message?.errorStatus;
|
|
2062
2608
|
const transient = (event.type === "message_end" || event.type === "turn_end")
|
|
2063
2609
|
&& message?.role === "assistant" && message.stopReason === "error"
|
|
2064
2610
|
&& typeof status === "number" && [408, 429, 500, 502, 503, 504, 529].includes(status);
|
|
2065
|
-
|
|
2611
|
+
// Built-in Pi leaves assistant failures as pane output; OMP and `protocol:
|
|
2612
|
+
// pi-rpc` community harnesses make them attention. The typed-transient
|
|
2613
|
+
// release needs a harness that types `errorStatus` (OMP does); an untyped
|
|
2614
|
+
// fork provider error releases instead through `willRetry` at agent_end
|
|
2615
|
+
// and a matched retry summary, while a final unretried failure stays held.
|
|
2616
|
+
if (this.runtime !== "pi") {
|
|
2066
2617
|
const retrySummary = event.type === "auto_retry_end" && event.success === false
|
|
2067
2618
|
&& this.retryAttempt !== null && event.attempt === this.retryAttempt
|
|
2068
2619
|
&& this.retryFailure !== null && event.finalError === this.retryFailure
|
|
2069
2620
|
&& event.message === undefined && event.error === undefined;
|
|
2070
2621
|
if (event.type !== "auto_retry_end") {
|
|
2071
|
-
|
|
2622
|
+
// OMP records a retryable diagnostic only when the status is typed
|
|
2623
|
+
// transient; a pi-rpc fork never types `errorStatus` (Pi 0.87.1), so
|
|
2624
|
+
// its in-flight retry records the prose instead — never as a
|
|
2625
|
+
// classifier, only to match the harness's own retry summary.
|
|
2626
|
+
const retryable = this.runtime === "omp" ? transient : true;
|
|
2627
|
+
this.retryFailure = retryable && this.retryAttempt !== null && typeof message?.errorMessage === "string"
|
|
2072
2628
|
&& message.errorMessage.length > 0 ? message.errorMessage : null;
|
|
2073
2629
|
}
|
|
2074
2630
|
else if (!retrySummary) {
|
|
2075
2631
|
this.retryFailure = null;
|
|
2076
2632
|
}
|
|
2077
|
-
|
|
2633
|
+
// A pi-rpc fork's failure while the harness has a retry in flight is
|
|
2634
|
+
// transient-class too (it never types errorStatus); a final unretried
|
|
2635
|
+
// failure stays runtime_error. OMP keeps its typed-status rule.
|
|
2636
|
+
const assistantFailure = (event.type === "message_end" || event.type === "turn_end")
|
|
2637
|
+
&& message?.role === "assistant" && message.stopReason === "error";
|
|
2638
|
+
const forkRetried = this.runtime !== "omp" && this.retryAttempt !== null;
|
|
2639
|
+
const kind = transient || retrySummary || (assistantFailure && forkRetried)
|
|
2640
|
+
? "transient_turn_error" : "runtime_error";
|
|
2641
|
+
// Pi 0.87.1 emits the terminal summary AFTER agent_end (willRetry:
|
|
2642
|
+
// false). By then the failure was already released at agent_end as
|
|
2643
|
+
// transient, and the correlation survives the run boundary on forks —
|
|
2644
|
+
// so a MATCHED summary after the run ended settles instead of raising
|
|
2645
|
+
// a fresh persistent error. A genuine unmatched failure still raises.
|
|
2646
|
+
if (retrySummary && this.runEnded && this.runtime !== "omp" && this.runtime !== "pi") {
|
|
2647
|
+
this.retryAttempt = null;
|
|
2648
|
+
this.retryFailure = null;
|
|
2649
|
+
return;
|
|
2650
|
+
}
|
|
2651
|
+
this.raiseAttention(kind, "assistant");
|
|
2078
2652
|
}
|
|
2079
2653
|
}
|
|
2080
2654
|
if (this.runtime === "omp" && (event.type === "auto_retry_end" && event.success === true
|
|
@@ -2082,6 +2656,14 @@ export class RunnerCore {
|
|
|
2082
2656
|
this.retryAttempt = null;
|
|
2083
2657
|
this.retryFailure = null;
|
|
2084
2658
|
}
|
|
2659
|
+
// A fork's retry correlation survives agent_end (the summary follows it);
|
|
2660
|
+
// agent_settled and a new run are where it genuinely ends.
|
|
2661
|
+
if (this.runtime !== "pi" && this.runtime !== "omp" && event.type === "agent_settled") {
|
|
2662
|
+
this.retryAttempt = null;
|
|
2663
|
+
this.retryFailure = null;
|
|
2664
|
+
this.retryOpeningPending = false;
|
|
2665
|
+
this.runOpenedAsRetry = false;
|
|
2666
|
+
}
|
|
2085
2667
|
if (!mapped.activity)
|
|
2086
2668
|
return;
|
|
2087
2669
|
if (event.type === "agent_end" && this.attention === "transient_turn_error")
|
|
@@ -2092,7 +2674,7 @@ export class RunnerCore {
|
|
|
2092
2674
|
// The turn ended, but the operator still has to act. Drop the Stop; if
|
|
2093
2675
|
// later activity replaced the attention, restore it as the final state.
|
|
2094
2676
|
if (!this.attentionIsLatest)
|
|
2095
|
-
this.raiseAttention(this.attention);
|
|
2677
|
+
this.raiseAttention(this.attention, this.attentionOwner ?? "assistant");
|
|
2096
2678
|
}
|
|
2097
2679
|
else {
|
|
2098
2680
|
this.attentionIsLatest = false;
|
|
@@ -2742,10 +3324,11 @@ export async function main(argv = process.argv.slice(2)) {
|
|
|
2742
3324
|
body: JSON.stringify(payload),
|
|
2743
3325
|
signal: controller.signal,
|
|
2744
3326
|
})
|
|
2745
|
-
.then(async (response) => response.ok
|
|
3327
|
+
.then(async (response) => response.ok ? await response.json() : null)
|
|
2746
3328
|
.catch(() => null)
|
|
2747
3329
|
.finally(() => clearTimeout(timeout));
|
|
2748
3330
|
});
|
|
3331
|
+
let recoveryPort;
|
|
2749
3332
|
const nativePosts = new AbortController(), nativeStream = new AbortController();
|
|
2750
3333
|
child.once("exit", () => { nativeStream.abort(); setTimeout(() => nativePosts.abort(), 2000).unref(); });
|
|
2751
3334
|
child.once("error", () => { nativeStream.abort(); nativePosts.abort(); });
|
|
@@ -2782,14 +3365,12 @@ export async function main(argv = process.argv.slice(2)) {
|
|
|
2782
3365
|
if (!endpoint || typeof fetch !== "function")
|
|
2783
3366
|
return;
|
|
2784
3367
|
const result = postInOrder(payload).catch(() => null);
|
|
2785
|
-
//
|
|
2786
|
-
|
|
2787
|
-
if (runtime === "omp" || runId)
|
|
2788
|
-
return result;
|
|
3368
|
+
// Recovery also needs a fresh acknowledgement for legacy Pi launches.
|
|
3369
|
+
return result;
|
|
2789
3370
|
},
|
|
2790
3371
|
writeSidecar: (state) => {
|
|
2791
3372
|
try {
|
|
2792
|
-
writePiRunnerSidecar(paths.runnerStatePath, state);
|
|
3373
|
+
writePiRunnerSidecar(paths.runnerStatePath, { ...state, ...(recoveryPort && child.pid ? { recovery: { port: recoveryPort, pid: process.pid, childPid: child.pid } } : {}) });
|
|
2793
3374
|
}
|
|
2794
3375
|
catch { /* best-effort; adapter falls back to pane markers */ }
|
|
2795
3376
|
},
|
|
@@ -2836,6 +3417,7 @@ export async function main(argv = process.argv.slice(2)) {
|
|
|
2836
3417
|
}
|
|
2837
3418
|
},
|
|
2838
3419
|
readSessionEntryIds: (path) => readPiSessionEntryIds(path),
|
|
3420
|
+
readLastEntryId: (path) => readSessionTailEntryId(path),
|
|
2839
3421
|
};
|
|
2840
3422
|
const core = new RunnerCore(io, {
|
|
2841
3423
|
sessionName: args.sessionName, nodeId: process.env.OPENRIG_NODE_ID, launchId: args.launchId,
|
|
@@ -2846,6 +3428,25 @@ export async function main(argv = process.argv.slice(2)) {
|
|
|
2846
3428
|
requestedSessionFile: args.sessionFile, model: args.model, thinking: args.thinking });
|
|
2847
3429
|
if (endpoint && runId)
|
|
2848
3430
|
void connectPiRunnerChannel(core, endpoint, runId, nativeStream.signal);
|
|
3431
|
+
// A loopback endpoint for a bounded, read-only RPC proof. Failure leaves ordinary launch usable;
|
|
3432
|
+
// recovery then reports that this runner cannot provide the proof.
|
|
3433
|
+
if (runtime === "pi" || runtime === "omp") {
|
|
3434
|
+
void startPiRecoveryServer(args.launchId, (sessionFile) => core.verifyRecovery(sessionFile)).then((server) => {
|
|
3435
|
+
if (!child.pid || child.exitCode !== null || child.signalCode !== null) {
|
|
3436
|
+
server.close();
|
|
3437
|
+
return;
|
|
3438
|
+
}
|
|
3439
|
+
recoveryPort = server.port;
|
|
3440
|
+
child.once("exit", () => server.close());
|
|
3441
|
+
child.once("error", () => server.close());
|
|
3442
|
+
try {
|
|
3443
|
+
const state = parsePiRunnerState(fs.readFileSync(paths.runnerStatePath, "utf8"));
|
|
3444
|
+
if (state?.launchId === args.launchId)
|
|
3445
|
+
io.writeSidecar(state);
|
|
3446
|
+
}
|
|
3447
|
+
catch { /* the next sidecar write publishes it */ }
|
|
3448
|
+
}).catch(() => { });
|
|
3449
|
+
}
|
|
2849
3450
|
let transportUp = runtime !== "omp";
|
|
2850
3451
|
readline.createInterface({ input: child.stdout }).on("line", (line) => {
|
|
2851
3452
|
if (runtime === "omp" && !core.isReady()) {
|