@openrig/cli 0.7.17 → 0.7.19
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 -6
- package/daemon/assets/claude-hook-bridge.cjs +146 -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/README.md +1 -1
- package/daemon/assets/plugins/openrig-core/hooks/claude.json +14 -14
- package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +43 -22
- package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus.cjs +6 -0
- package/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md +23 -0
- package/daemon/assets/plugins/openrig-core/skills/mission-slice-sop/SKILL.md +1 -1
- package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +11 -0
- package/daemon/assets/plugins/openrig-core/skills/refocusing/scripts/trace-to-root.py +95 -7
- package/daemon/assets/skills/rigs/SKILL.md +68 -33
- package/daemon/assets/skills/rigs/references/installing-for-someone.md +2 -2
- 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 +57 -14
- package/daemon/context-packs/reference/getting-started.md +9 -4
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +197 -1
- package/daemon/context-packs/reference/whats-new.md +187 -15
- 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/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 +23 -0
- package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
- 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/SKILL.md +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 +11 -0
- 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 +95 -7
- 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 +9 -0
- package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +57 -9
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts +4 -1
- package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume.js +15 -5
- package/daemon/dist/adapters/claude-resume.js.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts +5 -0
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js +45 -10
- package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/kernel-authority.d.ts +8 -1
- package/daemon/dist/adapters/kernel-authority.d.ts.map +1 -1
- package/daemon/dist/adapters/kernel-authority.js +45 -10
- package/daemon/dist/adapters/kernel-authority.js.map +1 -1
- package/daemon/dist/adapters/pi-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-resume.js +5 -7
- package/daemon/dist/adapters/pi-resume.js.map +1 -1
- package/daemon/dist/adapters/pi-runner-protocol.d.ts +47 -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 +84 -1
- package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner.js +799 -16
- package/daemon/dist/adapters/pi-runner.js.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts +7 -1
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.js +29 -19
- package/daemon/dist/adapters/pi-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/tmux-credential-env.d.ts +4 -0
- package/daemon/dist/adapters/tmux-credential-env.d.ts.map +1 -0
- package/daemon/dist/adapters/tmux-credential-env.js +14 -0
- package/daemon/dist/adapters/tmux-credential-env.js.map +1 -0
- package/daemon/dist/adapters/tmux-exec.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-exec.js +4 -3
- package/daemon/dist/adapters/tmux-exec.js.map +1 -1
- package/daemon/dist/adapters/tmux-server.d.ts +2 -2
- package/daemon/dist/adapters/tmux-server.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-server.js +12 -4
- package/daemon/dist/adapters/tmux-server.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +242 -14
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +966 -34
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/attention-surface.d.ts +4 -1
- package/daemon/dist/attention-surface.d.ts.map +1 -1
- package/daemon/dist/attention-surface.js.map +1 -1
- package/daemon/dist/build-info.js +3 -3
- package/daemon/dist/db/all-migrations.d.ts.map +1 -1
- package/daemon/dist/db/all-migrations.js +14 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrations/171_claude_auto_mode.d.ts +4 -0
- package/daemon/dist/db/migrations/171_claude_auto_mode.d.ts.map +1 -0
- package/daemon/dist/db/migrations/171_claude_auto_mode.js +9 -0
- package/daemon/dist/db/migrations/171_claude_auto_mode.js.map +1 -0
- package/daemon/dist/db/migrations/171_node_input_route.d.ts +4 -0
- package/daemon/dist/db/migrations/171_node_input_route.d.ts.map +1 -0
- package/daemon/dist/db/migrations/171_node_input_route.js +6 -0
- package/daemon/dist/db/migrations/171_node_input_route.js.map +1 -0
- package/daemon/dist/db/migrations/171_seat_hook_bridge.d.ts +5 -0
- package/daemon/dist/db/migrations/171_seat_hook_bridge.d.ts.map +1 -0
- package/daemon/dist/db/migrations/171_seat_hook_bridge.js +25 -0
- package/daemon/dist/db/migrations/171_seat_hook_bridge.js.map +1 -0
- package/daemon/dist/db/migrations/172_queue_return_route.d.ts +3 -0
- package/daemon/dist/db/migrations/172_queue_return_route.d.ts.map +1 -0
- package/daemon/dist/db/migrations/172_queue_return_route.js +13 -0
- package/daemon/dist/db/migrations/172_queue_return_route.js.map +1 -0
- package/daemon/dist/db/migrations/173_node_process_limits.d.ts +4 -0
- package/daemon/dist/db/migrations/173_node_process_limits.d.ts.map +1 -0
- package/daemon/dist/db/migrations/173_node_process_limits.js +6 -0
- package/daemon/dist/db/migrations/173_node_process_limits.js.map +1 -0
- package/daemon/dist/db/migrations/174_session_launched_cwd.d.ts +6 -0
- package/daemon/dist/db/migrations/174_session_launched_cwd.d.ts.map +1 -0
- package/daemon/dist/db/migrations/174_session_launched_cwd.js +8 -0
- package/daemon/dist/db/migrations/174_session_launched_cwd.js.map +1 -0
- package/daemon/dist/db/migrations/175_core_app_access.d.ts +3 -0
- package/daemon/dist/db/migrations/175_core_app_access.d.ts.map +1 -0
- package/daemon/dist/db/migrations/175_core_app_access.js +26 -0
- package/daemon/dist/db/migrations/175_core_app_access.js.map +1 -0
- package/daemon/dist/domain/activity-grants.d.ts.map +1 -1
- package/daemon/dist/domain/activity-grants.js +8 -4
- package/daemon/dist/domain/activity-grants.js.map +1 -1
- package/daemon/dist/domain/agent-activity-store.d.ts +59 -1
- package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
- package/daemon/dist/domain/agent-activity-store.js +250 -4
- package/daemon/dist/domain/agent-activity-store.js.map +1 -1
- package/daemon/dist/domain/agent-images/resume-token-discovery.d.ts +10 -0
- package/daemon/dist/domain/agent-images/resume-token-discovery.d.ts.map +1 -1
- package/daemon/dist/domain/agent-images/resume-token-discovery.js +21 -0
- package/daemon/dist/domain/agent-images/resume-token-discovery.js.map +1 -1
- package/daemon/dist/domain/applied-launch-observation-store.d.ts +5 -0
- package/daemon/dist/domain/applied-launch-observation-store.d.ts.map +1 -1
- package/daemon/dist/domain/applied-launch-observation-store.js +57 -21
- package/daemon/dist/domain/applied-launch-observation-store.js.map +1 -1
- package/daemon/dist/domain/builtin-startup-files.d.ts +26 -12
- package/daemon/dist/domain/builtin-startup-files.d.ts.map +1 -1
- package/daemon/dist/domain/builtin-startup-files.js +73 -34
- package/daemon/dist/domain/builtin-startup-files.js.map +1 -1
- package/daemon/dist/domain/claude-activity-hooks.d.ts +4 -2
- package/daemon/dist/domain/claude-activity-hooks.d.ts.map +1 -1
- package/daemon/dist/domain/claude-activity-hooks.js +5 -3
- package/daemon/dist/domain/claude-activity-hooks.js.map +1 -1
- package/daemon/dist/domain/claude-auto-mode.d.ts +64 -0
- package/daemon/dist/domain/claude-auto-mode.d.ts.map +1 -0
- package/daemon/dist/domain/claude-auto-mode.js +114 -0
- package/daemon/dist/domain/claude-auto-mode.js.map +1 -0
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts +66 -3
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.js +214 -10
- package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
- package/daemon/dist/domain/claude-continuation-launch.d.ts +5 -1
- package/daemon/dist/domain/claude-continuation-launch.d.ts.map +1 -1
- package/daemon/dist/domain/claude-continuation-launch.js +51 -2
- package/daemon/dist/domain/claude-continuation-launch.js.map +1 -1
- package/daemon/dist/domain/claude-core-plugin-env.d.ts +7 -3
- package/daemon/dist/domain/claude-core-plugin-env.d.ts.map +1 -1
- package/daemon/dist/domain/claude-core-plugin-env.js +11 -8
- package/daemon/dist/domain/claude-core-plugin-env.js.map +1 -1
- package/daemon/dist/domain/codex-daemon-support.d.ts.map +1 -1
- package/daemon/dist/domain/codex-daemon-support.js +6 -1
- package/daemon/dist/domain/codex-daemon-support.js.map +1 -1
- package/daemon/dist/domain/community-harness-launch-result.d.ts +2 -0
- package/daemon/dist/domain/community-harness-launch-result.d.ts.map +1 -1
- package/daemon/dist/domain/community-harness-launch-result.js +5 -1
- package/daemon/dist/domain/community-harness-launch-result.js.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts +3 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.js +22 -3
- package/daemon/dist/domain/compaction-restore-notice.js.map +1 -1
- package/daemon/dist/domain/configured-account.d.ts +3 -0
- package/daemon/dist/domain/configured-account.d.ts.map +1 -0
- package/daemon/dist/domain/configured-account.js +10 -0
- package/daemon/dist/domain/configured-account.js.map +1 -0
- package/daemon/dist/domain/connection-contract.d.ts +91 -0
- package/daemon/dist/domain/connection-contract.d.ts.map +1 -1
- package/daemon/dist/domain/connection-contract.js +73 -0
- package/daemon/dist/domain/connection-contract.js.map +1 -1
- package/daemon/dist/domain/context-usage-store.d.ts +5 -0
- package/daemon/dist/domain/context-usage-store.d.ts.map +1 -1
- package/daemon/dist/domain/context-usage-store.js +37 -2
- package/daemon/dist/domain/context-usage-store.js.map +1 -1
- package/daemon/dist/domain/core-app-access.d.ts +51 -0
- package/daemon/dist/domain/core-app-access.d.ts.map +1 -0
- package/daemon/dist/domain/core-app-access.js +107 -0
- package/daemon/dist/domain/core-app-access.js.map +1 -0
- package/daemon/dist/domain/core-app-job.d.ts +411 -0
- package/daemon/dist/domain/core-app-job.d.ts.map +1 -0
- package/daemon/dist/domain/core-app-job.js +537 -0
- package/daemon/dist/domain/core-app-job.js.map +1 -0
- package/daemon/dist/domain/current-park-arm.d.ts +4 -0
- package/daemon/dist/domain/current-park-arm.d.ts.map +1 -0
- package/daemon/dist/domain/current-park-arm.js +14 -0
- package/daemon/dist/domain/current-park-arm.js.map +1 -0
- package/daemon/dist/domain/current-work.d.ts +6 -1
- package/daemon/dist/domain/current-work.d.ts.map +1 -1
- package/daemon/dist/domain/current-work.js +41 -8
- package/daemon/dist/domain/current-work.js.map +1 -1
- package/daemon/dist/domain/cwd-resolution.d.ts +14 -0
- package/daemon/dist/domain/cwd-resolution.d.ts.map +1 -1
- package/daemon/dist/domain/cwd-resolution.js +28 -3
- package/daemon/dist/domain/cwd-resolution.js.map +1 -1
- package/daemon/dist/domain/draft-aware-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/draft-aware-delivery.js +5 -1
- package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
- package/daemon/dist/domain/errors.d.ts +4 -0
- package/daemon/dist/domain/errors.d.ts.map +1 -1
- package/daemon/dist/domain/errors.js +7 -0
- package/daemon/dist/domain/errors.js.map +1 -1
- package/daemon/dist/domain/execution-view.d.ts.map +1 -1
- package/daemon/dist/domain/execution-view.js +17 -4
- package/daemon/dist/domain/execution-view.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 +1 -0
- package/daemon/dist/domain/existing-rig-restore.js.map +1 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.js +107 -3
- package/daemon/dist/domain/gateway/operator-delivery-engine.js.map +1 -1
- package/daemon/dist/domain/gateway/participants.d.ts +2 -0
- package/daemon/dist/domain/gateway/participants.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/participants.js +5 -1
- package/daemon/dist/domain/gateway/participants.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/capabilities.d.ts +9 -1
- package/daemon/dist/domain/gateway/slack/capabilities.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/capabilities.js +6 -1
- package/daemon/dist/domain/gateway/slack/capabilities.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound-admission.js +1 -1
- package/daemon/dist/domain/gateway/slack/inbound-admission.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.d.ts +4 -0
- package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.js +15 -1
- package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/manifest.d.ts +5 -1
- package/daemon/dist/domain/gateway/slack/manifest.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/manifest.js +12 -3
- package/daemon/dist/domain/gateway/slack/manifest.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.d.ts +2 -0
- package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.js +41 -18
- package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts +2 -0
- 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 +6 -5
- package/daemon/dist/domain/gateway/slack/settled-asks.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-api.d.ts +1 -0
- package/daemon/dist/domain/gateway/slack/slack-api.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-api.js +7 -2
- package/daemon/dist/domain/gateway/slack/slack-api.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +1 -0
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.js +2 -0
- package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts +4 -0
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js +26 -2
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
- package/daemon/dist/domain/harness-not-started-notice.d.ts +36 -0
- package/daemon/dist/domain/harness-not-started-notice.d.ts.map +1 -0
- package/daemon/dist/domain/harness-not-started-notice.js +81 -0
- package/daemon/dist/domain/harness-not-started-notice.js.map +1 -0
- package/daemon/dist/domain/hook-bridge.d.ts +345 -0
- package/daemon/dist/domain/hook-bridge.d.ts.map +1 -0
- package/daemon/dist/domain/hook-bridge.js +547 -0
- package/daemon/dist/domain/hook-bridge.js.map +1 -0
- package/daemon/dist/domain/hosted-wake.d.ts +9 -0
- package/daemon/dist/domain/hosted-wake.d.ts.map +1 -1
- package/daemon/dist/domain/hosted-wake.js +45 -6
- package/daemon/dist/domain/hosted-wake.js.map +1 -1
- package/daemon/dist/domain/hot-potato-enforcer.d.ts +1 -1
- package/daemon/dist/domain/human-ask-attention.d.ts +10 -0
- package/daemon/dist/domain/human-ask-attention.d.ts.map +1 -0
- package/daemon/dist/domain/human-ask-attention.js +22 -0
- package/daemon/dist/domain/human-ask-attention.js.map +1 -0
- 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/instance-initialization.d.ts +2 -0
- package/daemon/dist/domain/instance-initialization.d.ts.map +1 -1
- package/daemon/dist/domain/instance-initialization.js +2 -1
- package/daemon/dist/domain/instance-initialization.js.map +1 -1
- package/daemon/dist/domain/member-connection.d.ts +14 -0
- package/daemon/dist/domain/member-connection.d.ts.map +1 -0
- package/daemon/dist/domain/member-connection.js +34 -0
- package/daemon/dist/domain/member-connection.js.map +1 -0
- package/daemon/dist/domain/mission-control/mission-control-action-log.d.ts +4 -0
- package/daemon/dist/domain/mission-control/mission-control-action-log.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-action-log.js +8 -1
- package/daemon/dist/domain/mission-control/mission-control-action-log.js.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts +10 -0
- 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 +64 -12
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
- package/daemon/dist/domain/model-divergence/current-model-reader.d.ts +3 -1
- package/daemon/dist/domain/model-divergence/current-model-reader.d.ts.map +1 -1
- package/daemon/dist/domain/model-divergence/current-model-reader.js +32 -7
- package/daemon/dist/domain/model-divergence/current-model-reader.js.map +1 -1
- package/daemon/dist/domain/native-continuation-notice.d.ts +16 -0
- package/daemon/dist/domain/native-continuation-notice.d.ts.map +1 -0
- package/daemon/dist/domain/native-continuation-notice.js +79 -0
- package/daemon/dist/domain/native-continuation-notice.js.map +1 -0
- package/daemon/dist/domain/native-permission-store.d.ts +6 -2
- package/daemon/dist/domain/native-permission-store.d.ts.map +1 -1
- package/daemon/dist/domain/native-permission-store.js +12 -5
- package/daemon/dist/domain/native-permission-store.js.map +1 -1
- package/daemon/dist/domain/native-process-lineage.d.ts +16 -0
- package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
- package/daemon/dist/domain/native-process-lineage.js +48 -3
- package/daemon/dist/domain/native-process-lineage.js.map +1 -1
- package/daemon/dist/domain/native-resume-probe.d.ts +5 -0
- package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +94 -10
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/network/network-connector.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-connector.js +11 -2
- package/daemon/dist/domain/network/network-connector.js.map +1 -1
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +55 -6
- package/daemon/dist/domain/node-inventory.js.map +1 -1
- package/daemon/dist/domain/node-launcher.d.ts +14 -0
- package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/node-launcher.js +35 -6
- package/daemon/dist/domain/node-launcher.js.map +1 -1
- package/daemon/dist/domain/outbox-handler.d.ts +69 -1
- package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
- package/daemon/dist/domain/outbox-handler.js +337 -3
- package/daemon/dist/domain/outbox-handler.js.map +1 -1
- package/daemon/dist/domain/park-wake-text.d.ts +18 -0
- package/daemon/dist/domain/park-wake-text.d.ts.map +1 -1
- package/daemon/dist/domain/park-wake-text.js +44 -0
- package/daemon/dist/domain/park-wake-text.js.map +1 -1
- package/daemon/dist/domain/parked-query.d.ts.map +1 -1
- package/daemon/dist/domain/parked-query.js +3 -1
- package/daemon/dist/domain/parked-query.js.map +1 -1
- package/daemon/dist/domain/permission-account.d.ts +28 -1
- package/daemon/dist/domain/permission-account.d.ts.map +1 -1
- package/daemon/dist/domain/permission-account.js +55 -11
- package/daemon/dist/domain/permission-account.js.map +1 -1
- package/daemon/dist/domain/permission-drift.d.ts +2 -0
- package/daemon/dist/domain/permission-drift.d.ts.map +1 -1
- package/daemon/dist/domain/permission-drift.js.map +1 -1
- package/daemon/dist/domain/pi-compaction-request-store.d.ts +16 -0
- package/daemon/dist/domain/pi-compaction-request-store.d.ts.map +1 -0
- package/daemon/dist/domain/pi-compaction-request-store.js +40 -0
- package/daemon/dist/domain/pi-compaction-request-store.js.map +1 -0
- package/daemon/dist/domain/pi-compaction-service.d.ts +82 -0
- package/daemon/dist/domain/pi-compaction-service.d.ts.map +1 -0
- package/daemon/dist/domain/pi-compaction-service.js +229 -0
- package/daemon/dist/domain/pi-compaction-service.js.map +1 -0
- package/daemon/dist/domain/policies/idle-gate-qitem.d.ts +3 -0
- package/daemon/dist/domain/policies/idle-gate-qitem.d.ts.map +1 -1
- package/daemon/dist/domain/policies/idle-gate-qitem.js +15 -0
- package/daemon/dist/domain/policies/idle-gate-qitem.js.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts +6 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js +28 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
- package/daemon/dist/domain/process-limits.d.ts +47 -0
- package/daemon/dist/domain/process-limits.d.ts.map +1 -0
- package/daemon/dist/domain/process-limits.js +123 -0
- package/daemon/dist/domain/process-limits.js.map +1 -0
- package/daemon/dist/domain/process-table.d.ts +24 -0
- package/daemon/dist/domain/process-table.d.ts.map +1 -1
- package/daemon/dist/domain/process-table.js +60 -4
- package/daemon/dist/domain/process-table.js.map +1 -1
- package/daemon/dist/domain/proof/judgments.d.ts +7 -0
- package/daemon/dist/domain/proof/judgments.d.ts.map +1 -1
- package/daemon/dist/domain/proof/judgments.js +27 -1
- package/daemon/dist/domain/proof/judgments.js.map +1 -1
- package/daemon/dist/domain/ps-projection.d.ts +2 -1
- package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
- package/daemon/dist/domain/ps-projection.js +6 -1
- package/daemon/dist/domain/ps-projection.js.map +1 -1
- package/daemon/dist/domain/queue-erasure.d.ts +11 -6
- package/daemon/dist/domain/queue-erasure.d.ts.map +1 -1
- package/daemon/dist/domain/queue-erasure.js +47 -21
- package/daemon/dist/domain/queue-erasure.js.map +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +122 -21
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +448 -101
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts +5 -0
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +74 -13
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/queue-transition-log.d.ts +5 -3
- package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
- package/daemon/dist/domain/queue-transition-log.js +9 -6
- package/daemon/dist/domain/queue-transition-log.js.map +1 -1
- package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
- package/daemon/dist/domain/queue-waiting.js +28 -3
- package/daemon/dist/domain/queue-waiting.js.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.d.ts +20 -0
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +264 -25
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/queue-wake-repository.d.ts +10 -1
- package/daemon/dist/domain/queue-wake-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-repository.js +79 -12
- package/daemon/dist/domain/queue-wake-repository.js.map +1 -1
- package/daemon/dist/domain/reconciler.d.ts +18 -2
- package/daemon/dist/domain/reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/reconciler.js +40 -0
- package/daemon/dist/domain/reconciler.js.map +1 -1
- package/daemon/dist/domain/restore-attempt-receipt.d.ts.map +1 -1
- package/daemon/dist/domain/restore-attempt-receipt.js +3 -2
- package/daemon/dist/domain/restore-attempt-receipt.js.map +1 -1
- package/daemon/dist/domain/restore-check-service.d.ts +10 -0
- package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
- package/daemon/dist/domain/restore-check-service.js +76 -3
- package/daemon/dist/domain/restore-check-service.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +65 -3
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +311 -55
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/restore-plan-preview.d.ts +28 -1
- package/daemon/dist/domain/restore-plan-preview.d.ts.map +1 -1
- package/daemon/dist/domain/restore-plan-preview.js +17 -5
- package/daemon/dist/domain/restore-plan-preview.js.map +1 -1
- package/daemon/dist/domain/restore-preconditions.d.ts +24 -0
- package/daemon/dist/domain/restore-preconditions.d.ts.map +1 -1
- package/daemon/dist/domain/restore-preconditions.js +61 -1
- package/daemon/dist/domain/restore-preconditions.js.map +1 -1
- package/daemon/dist/domain/restore-topology.d.ts +7 -1
- package/daemon/dist/domain/restore-topology.d.ts.map +1 -1
- package/daemon/dist/domain/restore-topology.js +21 -0
- package/daemon/dist/domain/restore-topology.js.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.d.ts +2 -3
- package/daemon/dist/domain/resume-metadata-refresher.d.ts.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.js +6 -25
- package/daemon/dist/domain/resume-metadata-refresher.js.map +1 -1
- package/daemon/dist/domain/resume-token-validation.d.ts +3 -1
- package/daemon/dist/domain/resume-token-validation.d.ts.map +1 -1
- package/daemon/dist/domain/resume-token-validation.js +6 -3
- package/daemon/dist/domain/resume-token-validation.js.map +1 -1
- package/daemon/dist/domain/return-route.d.ts +73 -0
- package/daemon/dist/domain/return-route.d.ts.map +1 -0
- package/daemon/dist/domain/return-route.js +124 -0
- package/daemon/dist/domain/return-route.js.map +1 -0
- package/daemon/dist/domain/rig-expansion-service.js +1 -1
- package/daemon/dist/domain/rig-expansion-service.js.map +1 -1
- package/daemon/dist/domain/rig-repository.d.ts +12 -0
- package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
- package/daemon/dist/domain/rig-repository.js +74 -0
- package/daemon/dist/domain/rig-repository.js.map +1 -1
- package/daemon/dist/domain/rig-teardown.d.ts +20 -5
- package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
- package/daemon/dist/domain/rig-teardown.js +105 -22
- 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 +9 -0
- package/daemon/dist/domain/rigspec-codec.js.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.d.ts +6 -0
- package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.js +30 -0
- package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts +27 -2
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +95 -26
- package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-schema.js +44 -1
- package/daemon/dist/domain/rigspec-schema.js.map +1 -1
- package/daemon/dist/domain/rosters.d.ts +23 -0
- package/daemon/dist/domain/rosters.d.ts.map +1 -1
- package/daemon/dist/domain/rosters.js +37 -5
- package/daemon/dist/domain/rosters.js.map +1 -1
- package/daemon/dist/domain/runner-channel.d.ts +65 -0
- package/daemon/dist/domain/runner-channel.d.ts.map +1 -0
- package/daemon/dist/domain/runner-channel.js +348 -0
- package/daemon/dist/domain/runner-channel.js.map +1 -0
- package/daemon/dist/domain/runner-grant-launch.js +2 -2
- package/daemon/dist/domain/runner-permissions.d.ts +26 -3
- package/daemon/dist/domain/runner-permissions.d.ts.map +1 -1
- package/daemon/dist/domain/runner-permissions.js +160 -39
- package/daemon/dist/domain/runner-permissions.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-adapter.js.map +1 -1
- package/daemon/dist/domain/runtime-switch-materials.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-switch-materials.js +4 -3
- package/daemon/dist/domain/runtime-switch-materials.js.map +1 -1
- package/daemon/dist/domain/scope/mission-parent.d.ts +19 -0
- package/daemon/dist/domain/scope/mission-parent.d.ts.map +1 -0
- package/daemon/dist/domain/scope/mission-parent.js +134 -0
- package/daemon/dist/domain/scope/mission-parent.js.map +1 -0
- package/daemon/dist/domain/scope/scope-audit.d.ts.map +1 -1
- package/daemon/dist/domain/scope/scope-audit.js +63 -3
- package/daemon/dist/domain/scope/scope-audit.js.map +1 -1
- package/daemon/dist/domain/scope/types.d.ts +3 -1
- package/daemon/dist/domain/scope/types.d.ts.map +1 -1
- package/daemon/dist/domain/scope/types.js +5 -1
- package/daemon/dist/domain/scope/types.js.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.d.ts +6 -4
- package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.js +17 -10
- package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.d.ts +14 -2
- package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.js +55 -15
- package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
- package/daemon/dist/domain/seat-handover-service.d.ts +27 -4
- package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-handover-service.js +210 -65
- package/daemon/dist/domain/seat-handover-service.js.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.d.ts +12 -4
- package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.js +92 -17
- package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +31 -6
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +172 -24
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.d.ts +9 -2
- package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.js +38 -3
- package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts +4 -0
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.js +11 -3
- package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
- package/daemon/dist/domain/seat-skill-apply.d.ts +1 -1
- package/daemon/dist/domain/seat-skill-apply.d.ts.map +1 -1
- package/daemon/dist/domain/seat-skill-apply.js +3 -2
- package/daemon/dist/domain/seat-skill-apply.js.map +1 -1
- package/daemon/dist/domain/seat-status-service.d.ts +4 -0
- package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-status-service.js +31 -6
- package/daemon/dist/domain/seat-status-service.js.map +1 -1
- package/daemon/dist/domain/session-registry.d.ts +5 -1
- package/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.js +12 -1
- package/daemon/dist/domain/session-registry.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +56 -4
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +344 -18
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/shared-conversation.d.ts +58 -0
- package/daemon/dist/domain/shared-conversation.d.ts.map +1 -0
- package/daemon/dist/domain/shared-conversation.js +98 -0
- package/daemon/dist/domain/shared-conversation.js.map +1 -0
- package/daemon/dist/domain/shared-history-selection.d.ts.map +1 -1
- package/daemon/dist/domain/shared-history-selection.js +9 -5
- package/daemon/dist/domain/shared-history-selection.js.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.d.ts +1 -1
- package/daemon/dist/domain/slices/slice-indexer.d.ts.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.js +4 -0
- package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts +1 -0
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +6 -4
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/startup-phase-timing.d.ts +19 -0
- package/daemon/dist/domain/startup-phase-timing.d.ts.map +1 -0
- package/daemon/dist/domain/startup-phase-timing.js +23 -0
- package/daemon/dist/domain/startup-phase-timing.js.map +1 -0
- package/daemon/dist/domain/successor-session-launcher.d.ts +9 -0
- package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.js +33 -10
- package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
- package/daemon/dist/domain/team-operations.d.ts +6 -6
- package/daemon/dist/domain/team-operations.d.ts.map +1 -1
- package/daemon/dist/domain/team-operations.js +2 -4
- package/daemon/dist/domain/team-operations.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts +35 -1
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.js +231 -33
- package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-app-provider.d.ts +6 -0
- package/daemon/dist/domain/terminal/herdr-app-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-app-provider.js +23 -1
- package/daemon/dist/domain/terminal/herdr-app-provider.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-sessions.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-sessions.js +2 -1
- package/daemon/dist/domain/terminal/herdr-sessions.js.map +1 -1
- package/daemon/dist/domain/terminal/rig-viewer-records.d.ts +59 -0
- package/daemon/dist/domain/terminal/rig-viewer-records.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/rig-viewer-records.js +210 -0
- package/daemon/dist/domain/terminal/rig-viewer-records.js.map +1 -0
- 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 +99 -4
- package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.js +556 -36
- package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
- package/daemon/dist/domain/terminal/tile-layout.js +1 -1
- package/daemon/dist/domain/terminal/tile-layout.js.map +1 -1
- package/daemon/dist/domain/terminal/tmux-viewer-guard.d.ts +25 -0
- package/daemon/dist/domain/terminal/tmux-viewer-guard.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/tmux-viewer-guard.js +70 -0
- package/daemon/dist/domain/terminal/tmux-viewer-guard.js.map +1 -0
- package/daemon/dist/domain/terminal-policy.js +1 -1
- package/daemon/dist/domain/terminal-policy.js.map +1 -1
- package/daemon/dist/domain/transcript-grep-worker.d.ts +2 -0
- package/daemon/dist/domain/transcript-grep-worker.d.ts.map +1 -0
- package/daemon/dist/domain/transcript-grep-worker.js +108 -0
- package/daemon/dist/domain/transcript-grep-worker.js.map +1 -0
- package/daemon/dist/domain/transcript-grep.d.ts +26 -0
- package/daemon/dist/domain/transcript-grep.d.ts.map +1 -0
- package/daemon/dist/domain/transcript-grep.js +90 -0
- package/daemon/dist/domain/transcript-grep.js.map +1 -0
- package/daemon/dist/domain/transcript-store.d.ts +8 -2
- package/daemon/dist/domain/transcript-store.d.ts.map +1 -1
- package/daemon/dist/domain/transcript-store.js +10 -60
- package/daemon/dist/domain/transcript-store.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +149 -5
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/watchdog-delivery-receipts.d.ts +4 -0
- package/daemon/dist/domain/watchdog-delivery-receipts.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-delivery-receipts.js +35 -2
- package/daemon/dist/domain/watchdog-delivery-receipts.js.map +1 -1
- package/daemon/dist/domain/watchdog-delivery.d.ts +45 -1
- package/daemon/dist/domain/watchdog-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-delivery.js +66 -5
- package/daemon/dist/domain/watchdog-delivery.js.map +1 -1
- package/daemon/dist/domain/watchdog-history-log.d.ts +12 -0
- package/daemon/dist/domain/watchdog-history-log.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-history-log.js +19 -1
- package/daemon/dist/domain/watchdog-history-log.js.map +1 -1
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts +32 -0
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-jobs-repository.js +79 -0
- package/daemon/dist/domain/watchdog-jobs-repository.js.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.d.ts +22 -3
- package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.js +33 -9
- package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
- package/daemon/dist/domain/workflow-projector.js +1 -1
- package/daemon/dist/domain/workflow-projector.js.map +1 -1
- package/daemon/dist/domain/workflow-runtime.d.ts +13 -1
- package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-runtime.js +68 -9
- package/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/daemon/dist/domain/workflow-step-trail-log.d.ts +2 -2
- package/daemon/dist/domain/workflow-step-trail-log.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-step-trail-log.js.map +1 -1
- package/daemon/dist/domain/workflow-types.d.ts +3 -1
- package/daemon/dist/domain/workflow-types.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-types.js.map +1 -1
- package/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts +7 -1
- package/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts.map +1 -1
- package/daemon/dist/domain/workspace/default-workspace-scaffold.js +35 -7
- package/daemon/dist/domain/workspace/default-workspace-scaffold.js.map +1 -1
- package/daemon/dist/gateway-slack-surface.d.ts +2 -2
- package/daemon/dist/gateway-slack-surface.d.ts.map +1 -1
- package/daemon/dist/gateway-slack-surface.js +1 -1
- package/daemon/dist/gateway-slack-surface.js.map +1 -1
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +17 -2
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/lib/pane-envelope.d.ts +3 -0
- package/daemon/dist/lib/pane-envelope.d.ts.map +1 -1
- package/daemon/dist/lib/pane-envelope.js +3 -1
- package/daemon/dist/lib/pane-envelope.js.map +1 -1
- package/daemon/dist/mission-parent-surface.d.ts +2 -0
- package/daemon/dist/mission-parent-surface.d.ts.map +1 -0
- package/daemon/dist/mission-parent-surface.js +2 -0
- package/daemon/dist/mission-parent-surface.js.map +1 -0
- package/daemon/dist/routes/activity.d.ts +18 -1
- package/daemon/dist/routes/activity.d.ts.map +1 -1
- package/daemon/dist/routes/activity.js +150 -9
- package/daemon/dist/routes/activity.js.map +1 -1
- package/daemon/dist/routes/agent-images.d.ts.map +1 -1
- package/daemon/dist/routes/agent-images.js +6 -1
- package/daemon/dist/routes/agent-images.js.map +1 -1
- package/daemon/dist/routes/attention.d.ts.map +1 -1
- package/daemon/dist/routes/attention.js +194 -176
- package/daemon/dist/routes/attention.js.map +1 -1
- package/daemon/dist/routes/compaction.d.ts.map +1 -1
- package/daemon/dist/routes/compaction.js +46 -7
- package/daemon/dist/routes/compaction.js.map +1 -1
- package/daemon/dist/routes/core-app.d.ts +10 -0
- package/daemon/dist/routes/core-app.d.ts.map +1 -0
- package/daemon/dist/routes/core-app.js +175 -0
- package/daemon/dist/routes/core-app.js.map +1 -0
- package/daemon/dist/routes/hook-bridge.d.ts +3 -0
- package/daemon/dist/routes/hook-bridge.d.ts.map +1 -0
- package/daemon/dist/routes/hook-bridge.js +158 -0
- package/daemon/dist/routes/hook-bridge.js.map +1 -0
- package/daemon/dist/routes/missions.d.ts.map +1 -1
- package/daemon/dist/routes/missions.js +14 -2
- package/daemon/dist/routes/missions.js.map +1 -1
- package/daemon/dist/routes/queue.d.ts +4 -1
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +239 -38
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/require-sender-identity.d.ts +4 -3
- package/daemon/dist/routes/require-sender-identity.d.ts.map +1 -1
- package/daemon/dist/routes/require-sender-identity.js.map +1 -1
- package/daemon/dist/routes/restore-check.d.ts.map +1 -1
- package/daemon/dist/routes/restore-check.js +1 -0
- package/daemon/dist/routes/restore-check.js.map +1 -1
- package/daemon/dist/routes/rigspec.d.ts.map +1 -1
- package/daemon/dist/routes/rigspec.js +24 -4
- package/daemon/dist/routes/rigspec.js.map +1 -1
- package/daemon/dist/routes/scope-audit.d.ts.map +1 -1
- package/daemon/dist/routes/scope-audit.js +7 -1
- package/daemon/dist/routes/scope-audit.js.map +1 -1
- package/daemon/dist/routes/seat.d.ts.map +1 -1
- package/daemon/dist/routes/seat.js +133 -6
- package/daemon/dist/routes/seat.js.map +1 -1
- package/daemon/dist/routes/sessions.js +14 -3
- 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 +21 -2
- package/daemon/dist/routes/slices.js.map +1 -1
- package/daemon/dist/routes/startup.js +9 -2
- package/daemon/dist/routes/startup.js.map +1 -1
- package/daemon/dist/routes/terminal.d.ts.map +1 -1
- package/daemon/dist/routes/terminal.js +47 -6
- package/daemon/dist/routes/terminal.js.map +1 -1
- package/daemon/dist/routes/transcripts.d.ts.map +1 -1
- package/daemon/dist/routes/transcripts.js +16 -1
- package/daemon/dist/routes/transcripts.js.map +1 -1
- package/daemon/dist/routes/up.d.ts.map +1 -1
- package/daemon/dist/routes/up.js +14 -4
- package/daemon/dist/routes/up.js.map +1 -1
- package/daemon/dist/routes/watchdog.d.ts.map +1 -1
- package/daemon/dist/routes/watchdog.js +21 -3
- 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 +5 -0
- package/daemon/dist/routes/workflow.js.map +1 -1
- package/daemon/dist/server.d.ts +5 -0
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +22 -0
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +140 -48
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/dist/terminal-viewer-guard-surface.d.ts +2 -0
- package/daemon/dist/terminal-viewer-guard-surface.d.ts.map +1 -0
- package/daemon/dist/terminal-viewer-guard-surface.js +2 -0
- package/daemon/dist/terminal-viewer-guard-surface.js.map +1 -0
- package/daemon/docs/reference/agent-startup-guide.md +5 -1
- package/daemon/docs/reference/claude-status-line.md +3 -2
- package/daemon/docs/reference/community-harness-examples/cursor/openrig-cursor-launch +6 -0
- package/daemon/docs/reference/community-harness-examples/dsh/README.md +8 -0
- package/daemon/docs/reference/community-harness-examples/dsh/openrig-dsh-runner.mjs +310 -20
- package/daemon/docs/reference/community-harness-examples/hermes/openrig-hermes-launch +6 -0
- package/daemon/docs/reference/community-harness-examples/openclaw/openrig-openclaw-launch +6 -0
- package/daemon/docs/reference/community-harness-examples/openshell/README.md +2 -0
- package/daemon/docs/reference/community-harness-examples/pi-tui/openrig-pi-tui-launch +6 -0
- package/daemon/docs/reference/community-harness-presets.md +7 -4
- package/daemon/docs/reference/core-app.md +212 -0
- package/daemon/docs/reference/daemon-http-clients.md +67 -12
- package/daemon/docs/reference/getting-started.md +9 -4
- package/daemon/docs/reference/harness-runner-contract.md +140 -4
- package/daemon/docs/reference/herdr-app.md +6 -0
- package/daemon/docs/reference/hosted-members.md +21 -1
- package/daemon/docs/reference/quickstart.md +4 -3
- package/daemon/docs/reference/rig-spec.md +197 -1
- package/daemon/docs/reference/rosters.md +17 -0
- package/daemon/docs/reference/sdlc-conventions.md +47 -6
- package/daemon/docs/reference/seat-delivery.md +87 -6
- package/daemon/docs/reference/slack-app-setup.md +39 -21
- package/daemon/docs/reference/terminal-sessions.md +99 -1
- package/daemon/docs/reference/whats-new.md +187 -15
- package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +23 -0
- package/daemon/specs/rigs/launch/factory/guidance/lead-first-move.md +27 -5
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +32 -8
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/startup/context.md +1 -1
- package/daemon/specs/rigs/launch/kernel/culture/CULTURE.md +12 -0
- package/daemon/specs/rigs/launch/starter/guidance/lead-first-move.md +27 -5
- package/dist/acp/connector.js +1 -1
- package/dist/acp/connector.js.map +1 -1
- package/dist/ask-wake.d.ts.map +1 -1
- package/dist/ask-wake.js +8 -1
- package/dist/ask-wake.js.map +1 -1
- package/dist/build-info.js +3 -3
- package/dist/cli-error.d.ts.map +1 -1
- package/dist/cli-error.js +7 -1
- package/dist/cli-error.js.map +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/archive.js +1 -1
- package/dist/commands/archive.js.map +1 -1
- package/dist/commands/ask.d.ts.map +1 -1
- package/dist/commands/ask.js +92 -11
- package/dist/commands/ask.js.map +1 -1
- package/dist/commands/broadcast.js +9 -5
- package/dist/commands/broadcast.js.map +1 -1
- package/dist/commands/compact.d.ts +3 -4
- package/dist/commands/compact.d.ts.map +1 -1
- package/dist/commands/compact.js +76 -16
- package/dist/commands/compact.js.map +1 -1
- package/dist/commands/config-init-workspace.d.ts.map +1 -1
- package/dist/commands/config-init-workspace.js +3 -0
- package/dist/commands/config-init-workspace.js.map +1 -1
- package/dist/commands/daemon.d.ts.map +1 -1
- package/dist/commands/daemon.js +7 -0
- package/dist/commands/daemon.js.map +1 -1
- package/dist/commands/down.d.ts.map +1 -1
- package/dist/commands/down.js +8 -1
- package/dist/commands/down.js.map +1 -1
- package/dist/commands/export.d.ts.map +1 -1
- package/dist/commands/export.js +2 -1
- package/dist/commands/export.js.map +1 -1
- package/dist/commands/fork.d.ts.map +1 -1
- package/dist/commands/fork.js +2 -0
- package/dist/commands/fork.js.map +1 -1
- package/dist/commands/launch.d.ts.map +1 -1
- package/dist/commands/launch.js +11 -3
- package/dist/commands/launch.js.map +1 -1
- package/dist/commands/ps.d.ts +30 -1
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +85 -6
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +309 -21
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/rig.d.ts +2 -0
- package/dist/commands/rig.d.ts.map +1 -1
- package/dist/commands/rig.js +36 -2
- package/dist/commands/rig.js.map +1 -1
- package/dist/commands/roster.d.ts +8 -0
- package/dist/commands/roster.d.ts.map +1 -1
- package/dist/commands/scope.d.ts.map +1 -1
- package/dist/commands/scope.js +346 -9
- package/dist/commands/scope.js.map +1 -1
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +213 -12
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/send.d.ts +2 -0
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +50 -7
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/setup.js +2 -2
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/slack.d.ts +2 -1
- package/dist/commands/slack.d.ts.map +1 -1
- package/dist/commands/slack.js +38 -2
- package/dist/commands/slack.js.map +1 -1
- package/dist/commands/terminal.d.ts +56 -0
- package/dist/commands/terminal.d.ts.map +1 -1
- package/dist/commands/terminal.js +199 -9
- package/dist/commands/terminal.js.map +1 -1
- package/dist/commands/transcript.js +1 -1
- package/dist/commands/transcript.js.map +1 -1
- package/dist/commands/unarchive.js +1 -1
- package/dist/commands/unarchive.js.map +1 -1
- package/dist/commands/up.d.ts.map +1 -1
- package/dist/commands/up.js +3 -0
- package/dist/commands/up.js.map +1 -1
- package/dist/commands/workflow-follow.d.ts +3 -1
- package/dist/commands/workflow-follow.d.ts.map +1 -1
- package/dist/commands/workflow-follow.js +25 -6
- package/dist/commands/workflow-follow.js.map +1 -1
- package/dist/commands/workflow-render.d.ts.map +1 -1
- package/dist/commands/workflow-render.js +5 -1
- package/dist/commands/workflow-render.js.map +1 -1
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +18 -4
- package/dist/commands/workflow.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +12 -0
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/lib/model-observation.d.ts.map +1 -1
- package/dist/lib/model-observation.js +9 -3
- package/dist/lib/model-observation.js.map +1 -1
- package/dist/lib/scope/mission-composition.d.ts +1 -0
- package/dist/lib/scope/mission-composition.d.ts.map +1 -1
- package/dist/lib/scope/mission-composition.js +14 -0
- package/dist/lib/scope/mission-composition.js.map +1 -1
- package/dist/lib/scope/scope-audit.d.ts.map +1 -1
- package/dist/lib/scope/scope-audit.js +63 -3
- package/dist/lib/scope/scope-audit.js.map +1 -1
- package/dist/lib/scope/scope-fs.d.ts +10 -0
- package/dist/lib/scope/scope-fs.d.ts.map +1 -1
- package/dist/lib/scope/scope-fs.js +60 -0
- package/dist/lib/scope/scope-fs.js.map +1 -1
- package/dist/lib/scope/types.d.ts +3 -1
- package/dist/lib/scope/types.d.ts.map +1 -1
- package/dist/lib/scope/types.js +5 -1
- package/dist/lib/scope/types.js.map +1 -1
- package/dist/local-db.d.ts +5 -0
- package/dist/local-db.d.ts.map +1 -0
- package/dist/local-db.js +23 -0
- package/dist/local-db.js.map +1 -0
- package/dist/local-origin.d.ts.map +1 -1
- package/dist/local-origin.js +2 -17
- package/dist/local-origin.js.map +1 -1
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +138 -24
- package/dist/mcp-server.js.map +1 -1
- package/dist/restore-packet/packet-writer.d.ts.map +1 -1
- package/dist/restore-packet/packet-writer.js +8 -5
- package/dist/restore-packet/packet-writer.js.map +1 -1
- package/dist/sender-identity.d.ts +18 -6
- package/dist/sender-identity.d.ts.map +1 -1
- package/dist/sender-identity.js +67 -7
- package/dist/sender-identity.js.map +1 -1
- package/dist/terminal-window-rex.d.ts +1 -1
- package/dist/terminal-window-rex.d.ts.map +1 -1
- package/dist/terminal-window-rex.js +3 -2
- package/dist/terminal-window-rex.js.map +1 -1
- package/dist/terminal-window.d.ts +2 -1
- package/dist/terminal-window.d.ts.map +1 -1
- package/dist/terminal-window.js +570 -44
- package/dist/terminal-window.js.map +1 -1
- package/package.json +1 -1
- package/tui/dist/daemon-client.d.ts +4 -0
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js +2 -1
- package/tui/dist/daemon-client.js.map +1 -1
- package/tui/dist/execution/execution-model.d.ts.map +1 -1
- package/tui/dist/execution/execution-model.js +22 -5
- package/tui/dist/execution/execution-model.js.map +1 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +6 -3
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/navigator.d.ts +1 -1
- package/tui/dist/navigator.d.ts.map +1 -1
- package/tui/dist/navigator.js +4 -2
- package/tui/dist/navigator.js.map +1 -1
- package/tui/dist/pulse/render-pulse.d.ts.map +1 -1
- package/tui/dist/pulse/render-pulse.js +7 -14
- package/tui/dist/pulse/render-pulse.js.map +1 -1
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +29 -21
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/stylize.d.ts.map +1 -1
- package/tui/dist/stylize.js +3 -3
- package/tui/dist/stylize.js.map +1 -1
- package/tui/dist/terminals/terminal-model.d.ts +1 -0
- package/tui/dist/terminals/terminal-model.d.ts.map +1 -1
- package/tui/dist/terminals/terminal-model.js +4 -2
- package/tui/dist/terminals/terminal-model.js.map +1 -1
- package/tui/dist/types.d.ts +1 -0
- package/tui/dist/types.d.ts.map +1 -1
- package/tui/dist/visual-layout.d.ts +3 -0
- package/tui/dist/visual-layout.d.ts.map +1 -1
- package/tui/dist/visual-layout.js +17 -0
- package/tui/dist/visual-layout.js.map +1 -1
- package/ui/dist/assets/{index-BvUEh33d.js → index-B-sMy02c.js} +116 -116
- package/ui/dist/assets/{index-BX8TUZ0E.css → index-DiN7RwWg.css} +1 -1
- package/ui/dist/index.html +2 -2
|
@@ -64,12 +64,18 @@ export interface SeatHandoverMutationResult {
|
|
|
64
64
|
/** How the previous occupant's process ended: it exited on TERM, or was killed after the TERM window, before the
|
|
65
65
|
* successor started in its pane. A discovered successor leaves it alone. */
|
|
66
66
|
departingProcess: "ended-graceful" | "ended-forced" | "not-touched";
|
|
67
|
+
/** The startup context (restore or priming packet) was typed and submitted to the successor. That's "accepted": read
|
|
68
|
+
* `restorePacket` for whether its leaving the input box was seen. Kept for existing readers; new ones read the status. */
|
|
67
69
|
startupContextDelivered: boolean;
|
|
68
70
|
/** This handover's lineage record (its occupant tenure) exists. Its write is best-effort, so it's read back. */
|
|
69
71
|
provenanceRecordWritten: boolean;
|
|
70
72
|
};
|
|
73
|
+
/** The packet wasn't seen leaving the successor's input box. `unconfirmed`: its runtime's input box is read, but that
|
|
74
|
+
* reading was unclear; check the screen before sending it again. `accepted`: typed and submitted on a runtime whose
|
|
75
|
+
* input box isn't read (member-connection.v1, `continuity.restorePacketConfirmation`). Absent: no unconfirmed or
|
|
76
|
+
* accepted packet status was recorded; where a packet was sent, it was seen consumed. */
|
|
71
77
|
restorePacket?: {
|
|
72
|
-
status: "unconfirmed";
|
|
78
|
+
status: "unconfirmed" | "accepted";
|
|
73
79
|
reason: string;
|
|
74
80
|
};
|
|
75
81
|
/** OPR.0.5.5.5 — per-source execution outcome. fork: the resolved fork origin;
|
|
@@ -103,6 +109,8 @@ export interface SeatHandoverMutationResult {
|
|
|
103
109
|
startedWithoutRequired?: string[];
|
|
104
110
|
/** What the successor was told on taking the seat: its held messages, which are never replayed (#2431). */
|
|
105
111
|
warnings?: string[];
|
|
112
|
+
/** #3253: the handover went ahead without the seat's requested process limit (the request stays stored). */
|
|
113
|
+
processLimits?: import("../adapters/tmux.js").SeatProcessLimitsNotice;
|
|
106
114
|
/** #2985: this handover adopted the running successor of an earlier failed one (`--recover`). Nothing was typed into
|
|
107
115
|
* its pane; a context or priming packet the failed handover didn't deliver was not delivered either. */
|
|
108
116
|
recoveredFrom?: {
|
|
@@ -138,6 +146,8 @@ export type SeatHandoverResult = {
|
|
|
138
146
|
code: "tmux_probe_failed" | "handover_commit_failed" | "context_delivery_failed";
|
|
139
147
|
message: string;
|
|
140
148
|
guidance: string;
|
|
149
|
+
/** #3253: the successor went on without the seat's requested process limit before the failure. */
|
|
150
|
+
processLimits?: import("../adapters/tmux.js").SeatProcessLimitsNotice;
|
|
141
151
|
} | {
|
|
142
152
|
ok: false;
|
|
143
153
|
code: "successor_create_failed";
|
|
@@ -145,6 +155,8 @@ export type SeatHandoverResult = {
|
|
|
145
155
|
guidance: string;
|
|
146
156
|
replacementStarted?: true;
|
|
147
157
|
successorPane?: string;
|
|
158
|
+
/** #3253: the respawned pane went on without the seat's requested process limit before the failure. */
|
|
159
|
+
processLimits?: import("../adapters/tmux.js").SeatProcessLimitsNotice;
|
|
148
160
|
} | {
|
|
149
161
|
ok: false;
|
|
150
162
|
code: "no_handover_to_recover" | "handover_attempt_superseded" | "successor_identity_unproven" | "recover_runtime_unsupported";
|
|
@@ -311,9 +323,9 @@ export declare class SeatHandoverService {
|
|
|
311
323
|
* identity hooks read it), and the successor's reserved generation is unregistered. */
|
|
312
324
|
private attemptStillCurrent;
|
|
313
325
|
/** #2985: the pane's one foreground Claude is the attempt's launch: it names exactly the session id the daemon
|
|
314
|
-
* generated for it, the same process in two samples, in the seat session's
|
|
315
|
-
* `rig seat clear-attention` proves a resumed occupant). The expected id comes from the attempt,
|
|
316
|
-
* process. Reads only. */
|
|
326
|
+
* generated for it, the same process in two samples, in the only pane of the seat session's current window, with an
|
|
327
|
+
* unchanged PID (as `rig seat clear-attention` proves a resumed occupant). The expected id comes from the attempt,
|
|
328
|
+
* never from the process. Reads only. */
|
|
317
329
|
private proveAttemptSuccessor;
|
|
318
330
|
/** One sample of proveAttemptSuccessor; a not-provable answer carries the foreground it saw (pid and command of each
|
|
319
331
|
* process of the pane's foreground group), so two samples can be compared. */
|
|
@@ -328,6 +340,17 @@ export declare class SeatHandoverService {
|
|
|
328
340
|
* retiree's recorded one is no distinct fork; the seat's live context row, which by now may name the successor's own,
|
|
329
341
|
* is never read. A parent that can't be established is said, never taken as distinct. */
|
|
330
342
|
private recoveredConversation;
|
|
343
|
+
/** #3218 item 1: a fork successor still on the conversation its launch named is classified like one that moved: a
|
|
344
|
+
* fork parent that ran /resume on that conversation since (or the retiring occupant on it) makes it no distinct fork.
|
|
345
|
+
* That outcome is kept, and so is a disagreement of the parent's sources (item 2) or any other note, said in the
|
|
346
|
+
* launch's outcome; otherwise the launch's record stands as before. The same holds when the successor's session file is unread
|
|
347
|
+
* ("unread"): the launch's conversation is the one recorded, and the unconfirmed warning stays. */
|
|
348
|
+
private sharedLaunchConversation;
|
|
349
|
+
/** #3218 item 2: the fork parent's sources for the conversation it is on, kept apart: its telemetry and its resume token
|
|
350
|
+
* (its records), and the one its recorded pane's Claude holds now, read from Claude's session file of that process
|
|
351
|
+
* (read only, bracketed by a second equal observation of the same pane, as the resume refresher reads it). Null when the parent is not a
|
|
352
|
+
* Claude seat the daemon knows; `process` is null when its process can't be read. Nothing of the parent changes. */
|
|
353
|
+
private readForkParentNow;
|
|
331
354
|
/** The successor's own resume token from its launch: a fork's is never its parent's (the fork source) nor the retiring
|
|
332
355
|
* occupant's; either answer from the launch-time capture is treated as not captured. */
|
|
333
356
|
private successorLaunchToken;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seat-handover-service.d.ts","sourceRoot":"","sources":["../../src/domain/seat-handover-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA2B,yBAAyB,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAGlI,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAM3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAA4C,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACvG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,KAAK,E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IAS7B,OAAO,CAAC,MAAM;IAqRd,+GAA+G;IAC/G,OAAO,CAAC,kBAAkB;IAI1B,OAAO,CAAC,aAAa;CAqBtB;AAuBD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,iHAAiH;IACjH,KAAK,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjD,0FAA0F;IAC1F,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;8EAC0E;IAC1E,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;oEAEgE;IAChE,aAAa,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;IACzD,qFAAqF;IACrF,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,gHAAgH;IAChH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4HAA4H;IAC5H,YAAY,CAAC,EAAE,mBAAmB,EAAE,CAAC;CACtC,GAAG,MAAM,CAoDT"}
|
|
@@ -8,8 +8,9 @@ import { ulid } from "ulid";
|
|
|
8
8
|
import { SessionAddressConflict, savedSessionName } from "./session-registry.js";
|
|
9
9
|
import { shellQuote } from "../adapters/shell-quote.js";
|
|
10
10
|
import { SeatStatusService } from "./seat-status-service.js";
|
|
11
|
+
import { declaredCapabilities } from "./connection-contract.js";
|
|
11
12
|
import { SeatHandoverPlanner, parseHandoverSource, SEAT_HANDOVER_SOURCE_CAPABILITIES } from "./seat-handover-planner.js";
|
|
12
|
-
import { discoverResumeToken } from "./agent-images/resume-token-discovery.js";
|
|
13
|
+
import { discoverClaudeConversationRecords, discoverResumeToken } from "./agent-images/resume-token-discovery.js";
|
|
13
14
|
import { resolveRebuildArtifacts } from "./session-source-rebuild-resolver.js";
|
|
14
15
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
15
16
|
import { basename, dirname, isAbsolute, sep } from "node:path";
|
|
@@ -28,7 +29,7 @@ import { retireSeatCoreSkillCopiesForNode, seatSkillPluginDirForNode } from "./s
|
|
|
28
29
|
import { recordConversationPromptForNode, recordForkConversationPromptForNode, seatLaunchAdditionsForLaunch } from "./seat-launch-additions.js";
|
|
29
30
|
import { inspectStartupStagedText, startupNoInputLine, startupOwnCollapsedPaste, STARTUP_UNCONFIRMED_REASON } from "./startup-submission-evidence.js";
|
|
30
31
|
import { abandonOpenHandoverAttempt, closeHandoverAttempt, openHandoverAttempt, recordFailedHandoverAttempt } from "./seat-handover-attempts.js";
|
|
31
|
-
import { claudeCommandForkParent, explainNativeRejection, listNativeProcesses, nativeCandidateCount, observeClaudePaneProcess, unwitnessedClaudeRow, verifyClaudePaneProcess } from "./native-process-lineage.js";
|
|
32
|
+
import { claudeCommandForkParent, explainNativeRejection, listNativeProcesses, nativeCandidateCount, observeClaudePaneProcess, observeClaudePaneRuntime, unwitnessedClaudeRow, verifyClaudePaneProcess } from "./native-process-lineage.js";
|
|
32
33
|
import { readClaudePidSessionId } from "./resume-metadata-refresher.js";
|
|
33
34
|
import { claudeConfigRootFor } from "./seat-runtime-home.js";
|
|
34
35
|
import nodePath from "node:path";
|
|
@@ -36,7 +37,34 @@ import nodePath from "node:path";
|
|
|
36
37
|
const NO_RETRY = "do not retry the handover; it ends the running successor.";
|
|
37
38
|
/** #3044 delta review SD1: how long the recovery waits before a second sample confirms a not-provable foreground. */
|
|
38
39
|
const UNPROVABLE_CONFIRM_MS = 3_000;
|
|
39
|
-
/** #
|
|
40
|
+
/** #3218 item 2: which conversations a fork parent holds, from its sources, without picking one silently. Its process,
|
|
41
|
+
* when read, says the current one, and a record that names another is reported; a conversation any of its sources
|
|
42
|
+
* names is the parent's (a restore of the parent from its records may resume it), so a successor on it is no distinct
|
|
43
|
+
* fork. Unread, records that agree (or only one) stand as the fork resolved them (`resolved`); two records that
|
|
44
|
+
* disagree are both kept, and that is reported. Native ids are never written into the text. */
|
|
45
|
+
function forkParentSources(forkRef, now, resolved) {
|
|
46
|
+
if (now?.process) {
|
|
47
|
+
const current = now.process;
|
|
48
|
+
const named = [current, now.telemetry, now.resumeToken].filter((id) => !!id);
|
|
49
|
+
const stale = [
|
|
50
|
+
...(now.telemetry && now.telemetry !== current ? ["its telemetry names another conversation than its process"] : []),
|
|
51
|
+
...(now.resumeToken && now.resumeToken !== current ? ["its resume token names another conversation than its process"] : []),
|
|
52
|
+
];
|
|
53
|
+
return { holds: id => named.includes(id), disagreement: stale.length
|
|
54
|
+
? `The sources of its fork parent ${forkRef} disagree: ${stale.join(", and ")}; its process says the conversation it holds now, and a successor on any conversation its sources name is not taken as a distinct fork.` : null };
|
|
55
|
+
}
|
|
56
|
+
if (now?.telemetry && now.resumeToken && now.telemetry !== now.resumeToken) {
|
|
57
|
+
const records = [now.telemetry, now.resumeToken];
|
|
58
|
+
return { holds: id => records.includes(id), disagreement: `The sources of its fork parent ${forkRef} disagree: its telemetry and its resume token name different conversations, and its process could not be read, so neither was taken as the parent's current one; a successor on either is not taken as a distinct fork.` };
|
|
59
|
+
}
|
|
60
|
+
return { holds: id => resolved !== null && id === resolved, disagreement: null };
|
|
61
|
+
}
|
|
62
|
+
/** #3044 2nd review: the fork source is the seat itself when it resolves to the seat's session, or to a session row of
|
|
63
|
+
* the seat's own node (a saved spelling of its address). */
|
|
64
|
+
function isSelfFork(db, forkRef, attempt) {
|
|
65
|
+
const forkSession = savedSessionName(db, forkRef);
|
|
66
|
+
return forkSession === attempt.canonicalSession || db.prepare("SELECT node_id FROM sessions WHERE session_name = ? ORDER BY id DESC LIMIT 1").get(forkSession)?.node_id === attempt.nodeId;
|
|
67
|
+
}
|
|
40
68
|
const UNREAD_CURRENT_CONVERSATION = "The conversation the successor's process holds now couldn't be read (Claude's session file for it is missing, older than the process, or of another session), so the one its launch named is recorded as the seat's resume target; a /clear before the recovery would make it stale.";
|
|
41
69
|
/** #2985: the commit of a recovery found that another occupant took the seat since its checks (rolled back). */
|
|
42
70
|
class RecoveryAttemptSuperseded extends Error {
|
|
@@ -396,7 +424,7 @@ export class SeatHandoverService {
|
|
|
396
424
|
// spec (else the running topology drifts from the founder-designed one at every handover).
|
|
397
425
|
// A4-profile: likewise carry the codex config profile (adapter emits -p) — the restore path
|
|
398
426
|
// already threads it; handover must too, or a profile-pinned codex seat reverts at handover.
|
|
399
|
-
node: { id: node.id, runtime: node.runtime, cwd: node.cwd, ...(codexRebuildPermissions ? { codexRebuildPermissions } : {}), ...(seatAdditions.additions ? { launchAdditions: seatAdditions.additions } : {}), ...(launchWrapper?.length ? { launchWrapper } : {}), claudePermissions: permissionOverride.claudePermissions, claudeMcp, codexPermissions: permissionOverride.codexPermissions, kernelAuthority: permissionOverride.kernelAuthority, teamPermissionDefault: permissionOverride.teamPermissionDefault, nonInterruptive: this.rigRepo.getRigNonInterruptive(statusResult.status.rig_id), launchPosture: effectivePosture, ...(effectivePermissionMode ? { permissionMode: effectivePermissionMode } : {}), model: node.model, effort: readSeatEffort(this.db, node.id)?.effective ?? undefined, advisor: node.advisor ?? undefined, codexConfigProfile: node.codex_config_profile ?? undefined, seatEnv: withPluginDirs(this.rigRepo.getEffectiveSeatEnv(node.id), [corePluginDir, seatSkillDir, ...additionPluginDirs]), ...((corePluginDir || codexCorePluginDir) && node.cwd ? { seatProjectDir: node.cwd } : {}) },
|
|
427
|
+
node: { id: node.id, runtime: node.runtime, cwd: node.cwd, ...(codexRebuildPermissions ? { codexRebuildPermissions } : {}), ...(seatAdditions.additions ? { launchAdditions: seatAdditions.additions } : {}), ...(launchWrapper?.length ? { launchWrapper } : {}), claudePermissions: permissionOverride.claudePermissions, claudeAutoMode: permissionOverride.claudeAutoMode, claudeMcp, codexPermissions: permissionOverride.codexPermissions, kernelAuthority: permissionOverride.kernelAuthority, teamPermissionDefault: permissionOverride.teamPermissionDefault, nonInterruptive: this.rigRepo.getRigNonInterruptive(statusResult.status.rig_id), launchPosture: effectivePosture, ...(effectivePermissionMode ? { permissionMode: effectivePermissionMode } : {}), model: node.model, effort: readSeatEffort(this.db, node.id)?.effective ?? undefined, advisor: node.advisor ?? undefined, codexConfigProfile: node.codex_config_profile ?? undefined, seatEnv: withPluginDirs(this.rigRepo.getEffectiveSeatEnv(node.id), [corePluginDir, seatSkillDir, ...additionPluginDirs]), ...((corePluginDir || codexCorePluginDir) && node.cwd ? { seatProjectDir: node.cwd } : {}) },
|
|
400
428
|
departingSessionName: latestSession.session_name,
|
|
401
429
|
occupantGeneration,
|
|
402
430
|
// OPR.0.5.5.5: a fork-sourced successor launches as a NATIVE FORK of the
|
|
@@ -410,6 +438,8 @@ export class SeatHandoverService {
|
|
|
410
438
|
},
|
|
411
439
|
});
|
|
412
440
|
if (!launch.ok) {
|
|
441
|
+
// #3253: a respawn that went on without the seat's limit says so in the failure too.
|
|
442
|
+
const limitsFailure = launch.processLimits ? { processLimits: launch.processLimits } : {};
|
|
413
443
|
// #2985: the harness was launched into the respawned pane and only readiness failed. The previous occupant is
|
|
414
444
|
// already ended and the successor may come up (or already be working) there, but the handover never commits,
|
|
415
445
|
// so its generation is never registered. Retrying the handover would end it, so the guidance says what may be
|
|
@@ -436,9 +466,10 @@ export class SeatHandoverService {
|
|
|
436
466
|
message: `Handover failed at step "${launch.step}": ${launch.message}`,
|
|
437
467
|
replacementStarted: true,
|
|
438
468
|
...(launch.tmuxPane ? { successorPane: launch.tmuxPane } : {}),
|
|
439
|
-
|
|
469
|
+
...limitsFailure,
|
|
470
|
+
guidance: (recorded
|
|
440
471
|
? `${this.recoverLine(quoted)} ${unadoptedNote}`
|
|
441
|
-
: unadoptedNote,
|
|
472
|
+
: unadoptedNote),
|
|
442
473
|
};
|
|
443
474
|
}
|
|
444
475
|
return {
|
|
@@ -448,9 +479,10 @@ export class SeatHandoverService {
|
|
|
448
479
|
// The registry binding is unchanged (commit never ran). A resolve_pane failure leaves the live
|
|
449
480
|
// retiree wholly untouched; a failure after the in-place respawn leaves the seat re-wakeable from
|
|
450
481
|
// its provider session file (never destroyed). Inspect tmux/daemon logs and retry.
|
|
451
|
-
|
|
482
|
+
...limitsFailure,
|
|
483
|
+
guidance: (launch.code === "successor_preflight_failed"
|
|
452
484
|
? `The predecessor is still running and its binding is unchanged. ${launch.message}`
|
|
453
|
-
: "The seat's registry binding is unchanged. If the failure was after the in-place respawn, the seat is re-wakeable from its provider session file. Inspect tmux/daemon logs and retry.",
|
|
485
|
+
: "The seat's registry binding is unchanged. If the failure was after the in-place respawn, the seat is re-wakeable from its provider session file. Inspect tmux/daemon logs and retry."),
|
|
454
486
|
};
|
|
455
487
|
}
|
|
456
488
|
// 3. fresh: deliver the captured restore packet to the live successor BEFORE
|
|
@@ -502,6 +534,7 @@ export class SeatHandoverService {
|
|
|
502
534
|
ok: false,
|
|
503
535
|
code: "context_delivery_failed",
|
|
504
536
|
message: `Handover failed at step "deliver-restore-packet": ${delivered.message}`,
|
|
537
|
+
...(launch.processLimits ? { processLimits: launch.processLimits } : {}),
|
|
505
538
|
guidance: recorded
|
|
506
539
|
? `${this.recoverLine(shellQuote(latestSession.session_name))} The successor candidate was unwound and the seat's binding is unchanged. The successor is live in pane "${launch.tmuxPane}" without its restore packet; ${NO_RETRY}`
|
|
507
540
|
: "The successor candidate was unwound and the seat's binding is unchanged; the seat is re-wakeable from its provider session file. Retry after tmux delivery is healthy.",
|
|
@@ -511,6 +544,8 @@ export class SeatHandoverService {
|
|
|
511
544
|
restorePacket = { status: "unconfirmed", reason: delivered.reason };
|
|
512
545
|
}
|
|
513
546
|
else {
|
|
547
|
+
if (delivered.confirmation === "accepted")
|
|
548
|
+
restorePacket = { status: "accepted", reason: delivered.reason };
|
|
514
549
|
contextDelivered = true;
|
|
515
550
|
}
|
|
516
551
|
}
|
|
@@ -584,6 +619,7 @@ export class SeatHandoverService {
|
|
|
584
619
|
ok: false,
|
|
585
620
|
code: "context_delivery_failed",
|
|
586
621
|
message: `Handover failed at step "deliver-rebuild-priming": ${delivered.message}`,
|
|
622
|
+
...(launch.processLimits ? { processLimits: launch.processLimits } : {}),
|
|
587
623
|
guidance: recorded
|
|
588
624
|
? `${this.recoverLine(shellQuote(latestSession.session_name))} The discovery candidate was marked vanished and the seat's binding is unchanged; the seat is re-wakeable from its provider session file. The successor may still process the priming packet. Inspect the successor's screen and resolve its state before another attempt; ${NO_RETRY}`
|
|
589
625
|
: "The discovery candidate was marked vanished and the seat's binding is unchanged; the seat is re-wakeable from its provider session file. The successor may still process the priming packet. Inspect the successor's screen and resolve its state before another attempt; retry only after tmux delivery is healthy.",
|
|
@@ -593,6 +629,8 @@ export class SeatHandoverService {
|
|
|
593
629
|
restorePacket = { status: "unconfirmed", reason: delivered.reason };
|
|
594
630
|
}
|
|
595
631
|
else {
|
|
632
|
+
if (delivered.confirmation === "accepted")
|
|
633
|
+
restorePacket = { status: "accepted", reason: delivered.reason };
|
|
596
634
|
contextDelivered = true;
|
|
597
635
|
}
|
|
598
636
|
}
|
|
@@ -619,6 +657,7 @@ export class SeatHandoverService {
|
|
|
619
657
|
launchAdditionNotes,
|
|
620
658
|
startedWithoutRequired,
|
|
621
659
|
launchWarnings: [...coreCopyNotes, ...(launch.warnings ?? [])],
|
|
660
|
+
...(launch.processLimits ? { processLimits: launch.processLimits } : {}),
|
|
622
661
|
cleanup: () => this.successorLauncher.cleanup(launch.tmuxSession, launch.discoveredId, launch.activityGrantId),
|
|
623
662
|
// #2861 item 2: finalization can still fail once the successor is ready in the respawned pane.
|
|
624
663
|
recordFailure: (failureCode) => RECOVERABLE_FINALIZE_CODES.has(failureCode) && this.recordUnadoptedSuccessor({ node,
|
|
@@ -682,9 +721,16 @@ export class SeatHandoverService {
|
|
|
682
721
|
// Proven: the pane's process is the attempt's launch. It is committed through the same path as any handover, with
|
|
683
722
|
// the generation the failed handover reserved for it (and passed in its env).
|
|
684
723
|
const parsed = parseHandoverSource(attempt.sourceRaw);
|
|
685
|
-
// #
|
|
724
|
+
// #3218 item 2: the fork parent's current conversation, read from its own process, beside its records.
|
|
725
|
+
const parentRef = parsed.ok && parsed.source.mode === "fork" ? parsed.source.ref ?? null : null;
|
|
726
|
+
const parentNow = parentRef && (proof.currentToken || proof.onLaunchConversation || proof.currentUnread) && !isSelfFork(this.db, parentRef, attempt)
|
|
727
|
+
? await this.readForkParentNow(parentRef) : null;
|
|
728
|
+
// #3044 2nd review: the conversation the proven successor holds now is the resume target, whosever it also is. With
|
|
729
|
+
// its session file unread, the launch's conversation is recorded, so it is classified the same way (#3218 review).
|
|
686
730
|
const held = proof.currentToken
|
|
687
|
-
? this.recoveredConversation(proof.currentToken, parsed.ok ? parsed.source : null, attempt, node.runtime, proof.launchForkParent ?? null)
|
|
731
|
+
? this.recoveredConversation(proof.currentToken, parsed.ok ? parsed.source : null, attempt, node.runtime, proof.launchForkParent ?? null, parentNow)
|
|
732
|
+
: (proof.onLaunchConversation || proof.currentUnread) && parsed.ok && parsed.source.mode === "fork"
|
|
733
|
+
? this.sharedLaunchConversation(attempt, parsed.source, node.runtime, proof.launchForkParent ?? null, parentNow, proof.currentUnread ? "unread" : "on") : null;
|
|
688
734
|
const reportedSource = parsed.ok ? parsed.source : { mode: "fresh", ref: null, raw: attempt.sourceRaw, defaulted: false };
|
|
689
735
|
// The note is said once: in a fork's outcome (its limit), else as a warning. An unread current conversation is said
|
|
690
736
|
// too (#3044 review :1050): the launch's is recorded, not confirmed.
|
|
@@ -734,7 +780,8 @@ export class SeatHandoverService {
|
|
|
734
780
|
cleanup: revived ? async () => { this.discoveryRepo.markVanished([discovered.id]); } : null,
|
|
735
781
|
// A successor on an existing conversation (the retiring occupant's or its fork parent's) resumed it: neither a
|
|
736
782
|
// fresh, a rebuilt nor a distinct forked one.
|
|
737
|
-
recovered: { attempt, ...(held?.shared ? { continuity: "resumed" } : {})
|
|
783
|
+
recovered: { attempt, ...(held?.shared ? { continuity: "resumed" } : {}),
|
|
784
|
+
...(proof.currentUnread ? { conversationUnconfirmed: UNREAD_CURRENT_CONVERSATION } : {}) },
|
|
738
785
|
});
|
|
739
786
|
}
|
|
740
787
|
/** #2985: the attempt still replaces the seat's current occupant: no launch or handover took the seat since (an
|
|
@@ -754,9 +801,9 @@ export class SeatHandoverService {
|
|
|
754
801
|
&& latest.session_name === attempt.canonicalSession;
|
|
755
802
|
}
|
|
756
803
|
/** #2985: the pane's one foreground Claude is the attempt's launch: it names exactly the session id the daemon
|
|
757
|
-
* generated for it, the same process in two samples, in the seat session's
|
|
758
|
-
* `rig seat clear-attention` proves a resumed occupant). The expected id comes from the attempt,
|
|
759
|
-
* process. Reads only. */
|
|
804
|
+
* generated for it, the same process in two samples, in the only pane of the seat session's current window, with an
|
|
805
|
+
* unchanged PID (as `rig seat clear-attention` proves a resumed occupant). The expected id comes from the attempt,
|
|
806
|
+
* never from the process. Reads only. */
|
|
760
807
|
async proveAttemptSuccessor(attempt, cwd) {
|
|
761
808
|
const first = await this.proveAttemptSuccessorOnce(attempt, cwd);
|
|
762
809
|
if (first.ok || !first.unprovable)
|
|
@@ -779,11 +826,20 @@ export class SeatHandoverService {
|
|
|
779
826
|
const token = attempt.resumeToken?.trim();
|
|
780
827
|
if (!token)
|
|
781
828
|
return { ok: false, message: "The failed handover did not capture its successor's session id, so the pane's process can't be proven to be that successor." };
|
|
829
|
+
// The launch's own rule: the successor is the only pane of the session's current window (tmux list-panes without -s),
|
|
830
|
+
// the window a send to the session's name reaches and the readiness check reads. Other windows don't count.
|
|
782
831
|
const onlyPane = async () => {
|
|
783
|
-
|
|
784
|
-
const panes = await this.tmuxAdapter.listPanes(attempt.canonicalSession, true);
|
|
832
|
+
const panes = await this.tmuxAdapter.listPanes(attempt.canonicalSession);
|
|
785
833
|
return panes.length === 1 && panes[0]?.id === attempt.pane;
|
|
786
834
|
};
|
|
835
|
+
// Why not: a successor alone in a window that isn't the current one is still there, and selecting it is the person's.
|
|
836
|
+
const notOnlyPane = async () => {
|
|
837
|
+
const inSession = (await this.tmuxAdapter.listPanes(attempt.canonicalSession, true)).some((pane) => pane.id === attempt.pane);
|
|
838
|
+
const ownWindow = inSession ? await this.tmuxAdapter.listPanes(attempt.pane) : [];
|
|
839
|
+
return ownWindow.length === 1 && ownWindow[0]?.id === attempt.pane
|
|
840
|
+
? `Pane "${attempt.pane}" of ${attempt.canonicalSession} is alone in its window, but that window isn't the session's current window, where sends to the seat and the readiness check go. In tmux, select the successor's window, then run the recovery again.`
|
|
841
|
+
: `Pane "${attempt.pane}" is no longer the only pane of ${attempt.canonicalSession}'s current window, where the failed handover launched its successor.`;
|
|
842
|
+
};
|
|
787
843
|
// #3044 review S1: proven as the adapter's readiness proves the launch (claude-code-adapter assessManagedProbe): with
|
|
788
844
|
// its frozen executable and, for a #! wrapper that starts Claude without exec (#2341), as the script's child.
|
|
789
845
|
const selectedExecutable = attempt.executable ?? undefined;
|
|
@@ -792,9 +848,8 @@ export class SeatHandoverService {
|
|
|
792
848
|
?? (() => listNativeProcesses({ claudeLaunchPaths: scriptLaunch, frozenExecutable: selectedExecutable }));
|
|
793
849
|
const proofInput = { target: attempt.pane, tmux: this.tmuxAdapter, listProcesses: list, expectedToken: token, selectedExecutable, scriptLaunch };
|
|
794
850
|
try {
|
|
795
|
-
if (!await onlyPane())
|
|
796
|
-
return { ok: false, message:
|
|
797
|
-
}
|
|
851
|
+
if (!await onlyPane())
|
|
852
|
+
return { ok: false, message: await notOnlyPane() };
|
|
798
853
|
const native = await verifyClaudePaneProcess(proofInput);
|
|
799
854
|
if (!native) {
|
|
800
855
|
const panePid = await this.tmuxAdapter.getPanePid(attempt.pane);
|
|
@@ -827,14 +882,19 @@ export class SeatHandoverService {
|
|
|
827
882
|
// proven process says the current one (read only, as the resume refresher reads it), bracketed by a third equal
|
|
828
883
|
// observation of the same process.
|
|
829
884
|
const configDir = nodePath.resolve(cwd ?? process.cwd(), claudeConfigRootFor(this.db, attempt.nodeId));
|
|
830
|
-
const current = readClaudePidSessionId({ configDir, pid: native.process.pid, startedAt: native.process.startedAt
|
|
885
|
+
const current = readClaudePidSessionId({ configDir, pid: native.process.pid, startedAt: native.process.startedAt });
|
|
831
886
|
// #3044 review (:1050): a file that confirms the launch's conversation changes nothing; one that can't be read (missing,
|
|
832
|
-
// older than the process,
|
|
833
|
-
// record, said as unconfirmed, never a refusal.
|
|
887
|
+
// older than the process, or a Claude that writes none) leaves the launch's conversation as the
|
|
888
|
+
// record, said as unconfirmed, never a refusal. The fork parent its launch named comes from the proven argv either
|
|
889
|
+
// way: only the session file is unread (#3246 review).
|
|
890
|
+
const launched = claudeCommandForkParent(native.process.command ?? "");
|
|
891
|
+
const launchParent = launched ? { launchForkParent: launched } : {};
|
|
834
892
|
if (!current)
|
|
835
|
-
return { ok: true, currentUnread: true };
|
|
893
|
+
return { ok: true, currentUnread: true, ...launchParent };
|
|
894
|
+
// #3218 item 1: a successor still on its launch's conversation is classified too (a fork parent may have run
|
|
895
|
+
// /resume on it since).
|
|
836
896
|
if (current === token)
|
|
837
|
-
return { ok: true };
|
|
897
|
+
return { ok: true, onLaunchConversation: true, ...launchParent };
|
|
838
898
|
const again = await observeClaudePaneProcess(proofInput);
|
|
839
899
|
if (again?.fingerprint !== native.fingerprint) {
|
|
840
900
|
return { ok: false, message: `Pane "${attempt.pane}" of ${attempt.canonicalSession} changed while its successor's current conversation was being read.` };
|
|
@@ -857,17 +917,20 @@ export class SeatHandoverService {
|
|
|
857
917
|
* occupant as its parent: a successor on the conversation its launch forked from (launchForkParent) or on the
|
|
858
918
|
* retiree's recorded one is no distinct fork; the seat's live context row, which by now may name the successor's own,
|
|
859
919
|
* is never read. A parent that can't be established is said, never taken as distinct. */
|
|
860
|
-
recoveredConversation(current, source, attempt, runtime, launchForkParent) {
|
|
920
|
+
recoveredConversation(current, source, attempt, runtime, launchForkParent, parentNow = null, onLaunch = false) {
|
|
861
921
|
const retiree = this.db.prepare("SELECT resume_token FROM sessions WHERE id = ?").get(attempt.predecessorSessionId)?.resume_token?.trim() || null;
|
|
862
922
|
const forkRef = source?.mode === "fork" ? source.ref ?? attempt.canonicalSession : null;
|
|
863
|
-
const target =
|
|
923
|
+
const target = onLaunch === "on"
|
|
924
|
+
? "That conversation, the one its launch named and the process is still on, is recorded as the seat's resume target."
|
|
925
|
+
: onLaunch === "unread"
|
|
926
|
+
? "That conversation, the one its launch named, is recorded as the seat's resume target; the one the process holds now couldn't be read."
|
|
927
|
+
: "That conversation is recorded as the seat's resume target: the one the process is on now, not the one its launch named.";
|
|
864
928
|
const ofRetiree = current === retiree;
|
|
865
929
|
if (!forkRef) {
|
|
866
930
|
return ofRetiree ? { token: current, shared: "retiring_occupant", note: `The successor holds the retiring occupant's conversation. ${target}` } : { token: current };
|
|
867
931
|
}
|
|
868
932
|
// The ref as the fork resolved it (a derived seat address included, as discoverResumeToken reads it).
|
|
869
|
-
const
|
|
870
|
-
const selfFork = forkSession === attempt.canonicalSession || this.db.prepare("SELECT node_id FROM sessions WHERE session_name = ? ORDER BY id DESC LIMIT 1").get(forkSession)?.node_id === attempt.nodeId;
|
|
933
|
+
const selfFork = isSelfFork(this.db, forkRef, attempt);
|
|
871
934
|
// The parent the launch forked from, as the proven process's argv names it: never guessed from a seat's rows, which
|
|
872
935
|
// need not hold what the launch used (it reads the seat's context row first).
|
|
873
936
|
const notChecked = `The successor's conversation is recorded as the seat's resume target, but the conversation its fork of ${forkRef} started from could not be read from its process, so it was not checked that this conversation is distinct from the parent's.`;
|
|
@@ -880,24 +943,94 @@ export class SeatHandoverService {
|
|
|
880
943
|
return launchForkParent ? { token: current } : { token: current, forkRef, note: notChecked };
|
|
881
944
|
}
|
|
882
945
|
const fork = this.resolveForkSource(forkRef, runtime);
|
|
883
|
-
|
|
884
|
-
|
|
946
|
+
// #3218 item 2: the parent's current conversation from its process when it can be read; its records otherwise. A
|
|
947
|
+
// disagreement between its sources is said in the result, never settled by picking one silently.
|
|
948
|
+
const sources = fork.ok ? forkParentSources(forkRef, parentNow, fork.nativeId)
|
|
949
|
+
: parentNow?.process ? forkParentSources(forkRef, parentNow, null) : null;
|
|
950
|
+
const said = sources?.disagreement ? ` ${sources.disagreement}` : "";
|
|
951
|
+
// A result that says the disagreement is marked, so a caller that keeps only some outcomes keeps it too.
|
|
952
|
+
const mark = (held) => sources?.disagreement ? { ...held, sourcesDisagree: true } : held;
|
|
953
|
+
if (sources?.holds(current)) {
|
|
954
|
+
// A restore of the parent reads its resume token: only when that token names this conversation do both seats name
|
|
955
|
+
// it for a restore. The parent's process on it, or only its stale telemetry, is said as such (#3246 review).
|
|
956
|
+
const retiree = ofRetiree ? ", which is also the retiring occupant's" : "";
|
|
957
|
+
const note = parentNow?.resumeToken === current
|
|
958
|
+
? `No distinct fork was recovered: the successor holds the conversation of its fork parent ${forkRef}${retiree}. ${target} ${forkRef} keeps its own binding and its process, so both seats now name the same conversation: a restore of either resumes it, and restoring both opens it twice.`
|
|
959
|
+
: parentNow?.process === current
|
|
960
|
+
? `No distinct fork was recovered: the successor holds the conversation its fork parent ${forkRef} is on now${retiree}. ${target} ${forkRef} keeps its own binding and its process; ${parentNow.resumeToken ? "its resume token names another conversation" : `no resume token is recorded for ${forkRef}`}, so a restore of ${forkRef} would not resume this one.`
|
|
961
|
+
: parentNow?.telemetry === current && parentNow.process
|
|
962
|
+
? `No distinct fork was recovered: the successor holds a conversation its fork parent ${forkRef} was on, which only its telemetry still names (${forkRef} has moved on since)${retiree}. ${target}`
|
|
963
|
+
: parentNow?.telemetry === current && parentNow.resumeToken
|
|
964
|
+
// its process unread: only its records, which disagree, so it is not said to have moved on (#3246 review)
|
|
965
|
+
? `No distinct fork was recovered: the successor holds the conversation its fork parent ${forkRef}'s telemetry names, while its resume token names another conversation${retiree}. ${target}`
|
|
966
|
+
: parentNow?.telemetry === current
|
|
967
|
+
? `No distinct fork was recovered: the successor holds the conversation its fork parent ${forkRef}'s telemetry names${retiree}; the conversation ${forkRef} is on now could not be established (its process could not be read and it has no resume token). ${target}`
|
|
968
|
+
: `No distinct fork was recovered: the successor holds the conversation of its fork parent ${forkRef}${retiree}. ${target} ${forkRef} keeps its own binding and its process.`;
|
|
969
|
+
return mark({ token: current, shared: "fork_parent", forkRef, note: `${note}${said}` });
|
|
885
970
|
}
|
|
886
971
|
if (current === launchForkParent) {
|
|
887
|
-
return { token: current, shared: "fork_parent", forkRef, note: fork.ok
|
|
888
|
-
? `No distinct fork was recovered: the successor holds the conversation its fork parent ${forkRef} was on when the fork was launched (${forkRef} has moved on since). ${target}`
|
|
889
|
-
: `No distinct fork was recovered: the successor holds the conversation its fork parent ${forkRef} was on when the fork was launched; ${forkRef} could not be resolved again, so whether it is still on it was not checked. ${target}` };
|
|
972
|
+
return mark({ token: current, shared: "fork_parent", forkRef, note: fork.ok
|
|
973
|
+
? `No distinct fork was recovered: the successor holds the conversation its fork parent ${forkRef} was on when the fork was launched (${forkRef} has moved on since). ${target}${said}`
|
|
974
|
+
: `No distinct fork was recovered: the successor holds the conversation its fork parent ${forkRef} was on when the fork was launched; ${forkRef} could not be resolved again, so whether it is still on it was not checked. ${target}` });
|
|
890
975
|
}
|
|
891
976
|
if (ofRetiree) {
|
|
892
|
-
return { token: current, shared: "retiring_occupant", forkRef, note: fork.ok
|
|
893
|
-
? `No distinct fork was recovered: the successor holds the retiring occupant's conversation, not its fork parent ${forkRef}'s. ${target}`
|
|
894
|
-
: `No distinct fork was recovered: the successor holds the retiring occupant's conversation; its fork parent ${forkRef} could not be resolved again, so whether ${forkRef} is on it too was not checked. ${target}` };
|
|
977
|
+
return mark({ token: current, shared: "retiring_occupant", forkRef, note: fork.ok
|
|
978
|
+
? `No distinct fork was recovered: the successor holds the retiring occupant's conversation, not its fork parent ${forkRef}'s. ${target}${said}`
|
|
979
|
+
: `No distinct fork was recovered: the successor holds the retiring occupant's conversation; its fork parent ${forkRef} could not be resolved again, so whether ${forkRef} is on it too was not checked. ${target}` });
|
|
895
980
|
}
|
|
896
981
|
if (!fork.ok) {
|
|
897
982
|
return { token: current, forkRef, note: `The successor's conversation is recorded as the seat's resume target, but its fork parent ${forkRef} could not be resolved again, so it was not checked that this conversation is distinct from the parent's.` };
|
|
898
983
|
}
|
|
984
|
+
if (sources?.disagreement) {
|
|
985
|
+
return mark({ token: current, forkRef, note: launchForkParent ? sources.disagreement : `${notChecked}${said}` });
|
|
986
|
+
}
|
|
899
987
|
return launchForkParent ? { token: current } : { token: current, forkRef, note: notChecked };
|
|
900
988
|
}
|
|
989
|
+
/** #3218 item 1: a fork successor still on the conversation its launch named is classified like one that moved: a
|
|
990
|
+
* fork parent that ran /resume on that conversation since (or the retiring occupant on it) makes it no distinct fork.
|
|
991
|
+
* That outcome is kept, and so is a disagreement of the parent's sources (item 2) or any other note, said in the
|
|
992
|
+
* launch's outcome; otherwise the launch's record stands as before. The same holds when the successor's session file is unread
|
|
993
|
+
* ("unread"): the launch's conversation is the one recorded, and the unconfirmed warning stays. */
|
|
994
|
+
sharedLaunchConversation(attempt, source, runtime, launchForkParent, parentNow = null, onLaunch = "on") {
|
|
995
|
+
const token = attempt.resumeToken?.trim();
|
|
996
|
+
if (!token)
|
|
997
|
+
return null;
|
|
998
|
+
const held = this.recoveredConversation(token, source, attempt, runtime, launchForkParent, parentNow, onLaunch);
|
|
999
|
+
// a note alone (the parent could not be resolved again, the parent not checked) is kept too (#3246 review)
|
|
1000
|
+
return held.shared || held.sourcesDisagree || held.note ? held : null;
|
|
1001
|
+
}
|
|
1002
|
+
/** #3218 item 2: the fork parent's sources for the conversation it is on, kept apart: its telemetry and its resume token
|
|
1003
|
+
* (its records), and the one its recorded pane's Claude holds now, read from Claude's session file of that process
|
|
1004
|
+
* (read only, bracketed by a second equal observation of the same pane, as the resume refresher reads it). Null when the parent is not a
|
|
1005
|
+
* Claude seat the daemon knows; `process` is null when its process can't be read. Nothing of the parent changes. */
|
|
1006
|
+
async readForkParentNow(forkRef) {
|
|
1007
|
+
const records = discoverClaudeConversationRecords(this.db, forkRef);
|
|
1008
|
+
if (!records)
|
|
1009
|
+
return null;
|
|
1010
|
+
// Its recorded pane (the binding), in both looks: the session's active pane may be another (#3246 review). No
|
|
1011
|
+
// recorded pane: the process is unread, and the result says so through its records.
|
|
1012
|
+
const pane = this.db.prepare("SELECT tmux_pane FROM bindings WHERE node_id = ?").get(records.nodeId)?.tmux_pane?.trim() || null;
|
|
1013
|
+
let processNow = null;
|
|
1014
|
+
if (pane)
|
|
1015
|
+
try {
|
|
1016
|
+
const belongsToParent = async () => (await this.tmuxAdapter.listPanes(records.sessionName, true)).some(candidate => candidate.id === pane);
|
|
1017
|
+
if (!(await belongsToParent()))
|
|
1018
|
+
return { process: null, telemetry: records.telemetry, resumeToken: records.resumeToken };
|
|
1019
|
+
const input = { target: pane, tmux: this.tmuxAdapter, listProcesses: this.injectedListProcesses };
|
|
1020
|
+
const first = await observeClaudePaneRuntime(input);
|
|
1021
|
+
if (first) {
|
|
1022
|
+
const configDir = nodePath.resolve(records.nodeCwd ?? process.cwd(), claudeConfigRootFor(this.db, records.nodeId));
|
|
1023
|
+
const read = readClaudePidSessionId({ configDir, pid: first.process.pid, startedAt: first.process.startedAt });
|
|
1024
|
+
const again = read ? await observeClaudePaneRuntime(input) : null;
|
|
1025
|
+
if (read && again?.fingerprint === first.fingerprint && await belongsToParent())
|
|
1026
|
+
processNow = read;
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
catch {
|
|
1030
|
+
processNow = null;
|
|
1031
|
+
}
|
|
1032
|
+
return { process: processNow, telemetry: records.telemetry, resumeToken: records.resumeToken };
|
|
1033
|
+
}
|
|
901
1034
|
/** The successor's own resume token from its launch: a fork's is never its parent's (the fork source) nor the retiring
|
|
902
1035
|
* occupant's; either answer from the launch-time capture is treated as not captured. */
|
|
903
1036
|
successorLaunchToken(forkSource, resumeToken, resumeType, retireeSessionId) {
|
|
@@ -979,9 +1112,11 @@ export class SeatHandoverService {
|
|
|
979
1112
|
* runs BEFORE the commit releases the original binding.
|
|
980
1113
|
*/
|
|
981
1114
|
async finalizeWithDiscovered(input) {
|
|
982
|
-
const fail = async (
|
|
1115
|
+
const fail = async (refused) => {
|
|
983
1116
|
if (input.cleanup)
|
|
984
1117
|
await input.cleanup();
|
|
1118
|
+
// #3253: a successor that went on without the seat's limit says so, also when its finalization fails.
|
|
1119
|
+
const result = !refused.ok && input.processLimits ? { ...refused, processLimits: input.processLimits } : refused;
|
|
985
1120
|
if (!result.ok && input.recordFailure?.(result.code) && "guidance" in result) {
|
|
986
1121
|
// #3044 review S6: the refusal's own guidance (retry, or discovered-source advice) would end the running
|
|
987
1122
|
// successor; the message already says what refused, so the recovery leads.
|
|
@@ -1130,6 +1265,8 @@ export class SeatHandoverService {
|
|
|
1130
1265
|
// #2426: the successor's preparation is named on the result, as a launch names it.
|
|
1131
1266
|
if (input.launchWarnings?.length && "result" in committed)
|
|
1132
1267
|
committed.result.warnings = [...(committed.result.warnings ?? []), ...input.launchWarnings];
|
|
1268
|
+
if (input.processLimits && "result" in committed)
|
|
1269
|
+
committed.result.processLimits = input.processLimits;
|
|
1133
1270
|
return committed;
|
|
1134
1271
|
}
|
|
1135
1272
|
/**
|
|
@@ -1282,34 +1419,38 @@ export class SeatHandoverService {
|
|
|
1282
1419
|
return this.confirmPacketSubmission(successorSession, packet, info.runtime);
|
|
1283
1420
|
}
|
|
1284
1421
|
async confirmPacketSubmission(successorSession, packet, runtime) {
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1422
|
+
// Only a runtime declared to support it has its input box read, and the only reader is Claude Code's; anywhere else
|
|
1423
|
+
// the packet was typed and submitted, and that's all that's known.
|
|
1424
|
+
if (declaredCapabilities("typed", runtime).continuity.restorePacketConfirmation !== "supported" || runtime !== "claude-code") {
|
|
1425
|
+
return { ok: true, confirmation: "accepted",
|
|
1426
|
+
reason: `${runtime ?? "this runtime"}'s input box isn't read, so the packet was typed and submitted but not seen consumed` };
|
|
1427
|
+
}
|
|
1428
|
+
// Claude Code, the runtime declared to support it: its composer is read until the packet leaves it.
|
|
1429
|
+
const afterSubmit = await this.waitForClaudeRestorePacketComposer(successorSession, packet);
|
|
1430
|
+
if (afterSubmit.state === "clear")
|
|
1431
|
+
return { ok: true, confirmation: "confirmed" };
|
|
1432
|
+
if (afterSubmit.state === "unverified")
|
|
1433
|
+
return { ok: true, confirmation: "unconfirmed", reason: afterSubmit.reason === "unobservable"
|
|
1434
|
+
? STARTUP_UNCONFIRMED_REASON.unobservable : STARTUP_UNCONFIRMED_REASON.unclear };
|
|
1435
|
+
// Retry only when full-text captures show this exact packet still in Claude's composer.
|
|
1436
|
+
await this.sleep(200);
|
|
1437
|
+
const beforeRetry = await this.readClaudeRestorePacketComposer(successorSession, packet);
|
|
1438
|
+
if (beforeRetry.state === "clear")
|
|
1439
|
+
return { ok: true, confirmation: "confirmed" };
|
|
1440
|
+
if (beforeRetry.state === "unverified")
|
|
1441
|
+
return { ok: true, confirmation: "unconfirmed", reason: beforeRetry.reason === "unobservable"
|
|
1442
|
+
? STARTUP_UNCONFIRMED_REASON.unobservable : STARTUP_UNCONFIRMED_REASON.unclear };
|
|
1443
|
+
const retry = await this.tmuxAdapter.sendKeys(successorSession, ["Enter"]);
|
|
1444
|
+
if (!retry.ok) {
|
|
1445
|
+
return { ok: false, message: retry.message ?? "retry submit failed" };
|
|
1446
|
+
}
|
|
1447
|
+
const afterRetry = await this.waitForClaudeRestorePacketComposer(successorSession, packet);
|
|
1448
|
+
if (afterRetry.state === "clear")
|
|
1449
|
+
return { ok: true, confirmation: "confirmed" };
|
|
1450
|
+
if (afterRetry.state === "unverified")
|
|
1451
|
+
return { ok: true, confirmation: "unconfirmed", reason: afterRetry.reason === "unobservable"
|
|
1452
|
+
? STARTUP_UNCONFIRMED_REASON.unobservable : STARTUP_UNCONFIRMED_REASON.unclear };
|
|
1453
|
+
return { ok: false, kind: "staged", message: STARTUP_UNCONFIRMED_REASON.staged };
|
|
1313
1454
|
}
|
|
1314
1455
|
async waitForClaudeRestorePacketComposer(session, packet) {
|
|
1315
1456
|
let consecutiveStaged = 0;
|
|
@@ -1458,6 +1599,8 @@ export class SeatHandoverService {
|
|
|
1458
1599
|
// Keep the handover tenure/ready registration; only discovered successors are adopted.
|
|
1459
1600
|
if (input.reportedSource.mode !== "discovered") {
|
|
1460
1601
|
this.db.prepare("UPDATE sessions SET origin = 'launched' WHERE id = ?").run(newSession.id);
|
|
1602
|
+
// It was launched in the seat's saved folder (the successor launch's node.cwd).
|
|
1603
|
+
this.sessionRegistry.recordLaunchedCwd(newSession.id, input.node.cwd);
|
|
1461
1604
|
}
|
|
1462
1605
|
// The receipt's lineage record: that mint is best-effort (a failure is logged and swallowed), so read it back.
|
|
1463
1606
|
const tenure = this.readOccupantTenure(input.node.id);
|
|
@@ -1537,6 +1680,8 @@ export class SeatHandoverService {
|
|
|
1537
1680
|
// #2456: the seat list reads this while the successor's session is the seat's current one.
|
|
1538
1681
|
...(input.startedWithoutRequired?.length ? { startedWithoutRequired: input.startedWithoutRequired, successorSessionId: newSession.id } : {}),
|
|
1539
1682
|
...(input.recovered ? { recoveredFrom: this.recoveredFrom(input.recovered.attempt) } : {}),
|
|
1683
|
+
// #3218 item 6: the seat's history says when the recorded conversation was not confirmed (its session file unread).
|
|
1684
|
+
...(input.recovered?.conversationUnconfirmed ? { conversationUnconfirmed: input.recovered.conversationUnconfirmed } : {}),
|
|
1540
1685
|
});
|
|
1541
1686
|
// A later handover took the seat: a successor an earlier failed one left is no longer adoptable.
|
|
1542
1687
|
if (!input.recovered)
|