@openrig/cli 0.7.22 → 0.7.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/daemon/assets/onboarding/01-world-and-purpose.md +2 -1
- package/daemon/assets/onboarding/02-self-and-competent-action.md +6 -0
- package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +13 -0
- package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/precompact-hook.mjs +4 -0
- package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/restore-from-jsonl.mjs +31 -5
- package/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md +1 -1
- package/daemon/assets/plugins/openrig-core/skills/refocusing/scripts/trace-to-root.py +32 -6
- package/daemon/assets/skills/rigs/SKILL.md +14 -5
- 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 +15 -6
- package/daemon/context-packs/reference/acp-agents.md +2 -1
- package/daemon/context-packs/reference/getting-started.md +119 -12
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +193 -3
- package/daemon/context-packs/reference/tmux-servers.md +27 -2
- package/daemon/context-packs/reference/whats-new.md +92 -12
- package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
- package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
- package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
- package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/claude-compaction-restore/scripts/precompact-hook.mjs +4 -0
- package/daemon/context-packs/skills/claude-compaction-restore/scripts/restore-from-jsonl.mjs +31 -5
- package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/messaging-the-human/SKILL.md +1 -1
- package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +3 -3
- package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
- package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
- package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
- package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
- package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
- package/daemon/context-packs/skills/refocusing/scripts/trace-to-root.py +32 -6
- package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
- package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
- package/daemon/context-packs/world-example/manifest.yaml +1 -1
- package/daemon/context-packs/world-public/manifest.yaml +1 -1
- package/daemon/dist/adapters/claude-code-adapter.d.ts +14 -1
- package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +86 -17
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume.js +8 -4
- package/daemon/dist/adapters/claude-resume.js.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.js +19 -4
- package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/seat-slice.d.ts +19 -0
- package/daemon/dist/adapters/seat-slice.d.ts.map +1 -0
- package/daemon/dist/adapters/seat-slice.js +29 -0
- package/daemon/dist/adapters/seat-slice.js.map +1 -0
- package/daemon/dist/adapters/shell-quote.d.ts +1 -0
- package/daemon/dist/adapters/shell-quote.d.ts.map +1 -1
- package/daemon/dist/adapters/shell-quote.js +6 -0
- package/daemon/dist/adapters/shell-quote.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +32 -8
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +253 -59
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/build-info.js +3 -3
- package/daemon/dist/daemon-shutdown.d.ts +5 -0
- package/daemon/dist/daemon-shutdown.d.ts.map +1 -1
- package/daemon/dist/daemon-shutdown.js +10 -2
- package/daemon/dist/daemon-shutdown.js.map +1 -1
- package/daemon/dist/db/all-migrations.d.ts.map +1 -1
- package/daemon/dist/db/all-migrations.js +24 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrate.d.ts +15 -1
- package/daemon/dist/db/migrate.d.ts.map +1 -1
- package/daemon/dist/db/migrate.js +41 -6
- package/daemon/dist/db/migrate.js.map +1 -1
- package/daemon/dist/db/migrations/179_remote_control_observations.d.ts +10 -0
- package/daemon/dist/db/migrations/179_remote_control_observations.d.ts.map +1 -0
- package/daemon/dist/db/migrations/179_remote_control_observations.js +20 -0
- package/daemon/dist/db/migrations/179_remote_control_observations.js.map +1 -0
- package/daemon/dist/db/migrations/180_session_stop_attempt.d.ts +5 -0
- package/daemon/dist/db/migrations/180_session_stop_attempt.d.ts.map +1 -0
- package/daemon/dist/db/migrations/180_session_stop_attempt.js +7 -0
- package/daemon/dist/db/migrations/180_session_stop_attempt.js.map +1 -0
- package/daemon/dist/db/migrations/181_node_keep_alive.d.ts +8 -0
- package/daemon/dist/db/migrations/181_node_keep_alive.d.ts.map +1 -0
- package/daemon/dist/db/migrations/181_node_keep_alive.js +26 -0
- package/daemon/dist/db/migrations/181_node_keep_alive.js.map +1 -0
- package/daemon/dist/db/migrations/182_queue_items_blocked_on_index.d.ts +7 -0
- package/daemon/dist/db/migrations/182_queue_items_blocked_on_index.d.ts.map +1 -0
- package/daemon/dist/db/migrations/182_queue_items_blocked_on_index.js +11 -0
- package/daemon/dist/db/migrations/182_queue_items_blocked_on_index.js.map +1 -0
- package/daemon/dist/db/migrations/183_queue_items_scan_indexes.d.ts +8 -0
- package/daemon/dist/db/migrations/183_queue_items_scan_indexes.d.ts.map +1 -0
- package/daemon/dist/db/migrations/183_queue_items_scan_indexes.js +13 -0
- package/daemon/dist/db/migrations/183_queue_items_scan_indexes.js.map +1 -0
- package/daemon/dist/db/migrations/184_network_requests.d.ts +11 -0
- package/daemon/dist/db/migrations/184_network_requests.d.ts.map +1 -0
- package/daemon/dist/db/migrations/184_network_requests.js +32 -0
- package/daemon/dist/db/migrations/184_network_requests.js.map +1 -0
- package/daemon/dist/db/migrations/185_seat_cold_starts.d.ts +9 -0
- package/daemon/dist/db/migrations/185_seat_cold_starts.d.ts.map +1 -0
- package/daemon/dist/db/migrations/185_seat_cold_starts.js +19 -0
- package/daemon/dist/db/migrations/185_seat_cold_starts.js.map +1 -0
- package/daemon/dist/db/migrations/186_queue_relayed_answers.d.ts +3 -0
- package/daemon/dist/db/migrations/186_queue_relayed_answers.d.ts.map +1 -0
- package/daemon/dist/db/migrations/186_queue_relayed_answers.js +5 -0
- package/daemon/dist/db/migrations/186_queue_relayed_answers.js.map +1 -0
- package/daemon/dist/db/migrations/189_rig_seat_slice.d.ts +5 -0
- package/daemon/dist/db/migrations/189_rig_seat_slice.d.ts.map +1 -0
- package/daemon/dist/db/migrations/189_rig_seat_slice.js +7 -0
- package/daemon/dist/db/migrations/189_rig_seat_slice.js.map +1 -0
- package/daemon/dist/db/migrations/190_queue_transfer_staging.d.ts +3 -0
- package/daemon/dist/db/migrations/190_queue_transfer_staging.d.ts.map +1 -0
- package/daemon/dist/db/migrations/190_queue_transfer_staging.js +20 -0
- package/daemon/dist/db/migrations/190_queue_transfer_staging.js.map +1 -0
- package/daemon/dist/db/migrations/191_network_binding_providers.d.ts +3 -0
- package/daemon/dist/db/migrations/191_network_binding_providers.d.ts.map +1 -0
- package/daemon/dist/db/migrations/191_network_binding_providers.js +27 -0
- package/daemon/dist/db/migrations/191_network_binding_providers.js.map +1 -0
- package/daemon/dist/db/migrations/194_workflow_run_title.d.ts +4 -0
- package/daemon/dist/db/migrations/194_workflow_run_title.d.ts.map +1 -0
- package/daemon/dist/db/migrations/194_workflow_run_title.js +6 -0
- package/daemon/dist/db/migrations/194_workflow_run_title.js.map +1 -0
- package/daemon/dist/domain/activity-taxonomy.d.ts +3 -0
- package/daemon/dist/domain/activity-taxonomy.d.ts.map +1 -1
- package/daemon/dist/domain/activity-taxonomy.js.map +1 -1
- package/daemon/dist/domain/agent-activity-store.d.ts +17 -0
- package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
- package/daemon/dist/domain/agent-activity-store.js +101 -45
- package/daemon/dist/domain/agent-activity-store.js.map +1 -1
- package/daemon/dist/domain/agent-manifest.d.ts.map +1 -1
- package/daemon/dist/domain/agent-manifest.js +6 -0
- package/daemon/dist/domain/agent-manifest.js.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts +30 -2
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.js +53 -12
- package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts +12 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.js +130 -2
- package/daemon/dist/domain/compaction-restore-notice.js.map +1 -1
- package/daemon/dist/domain/continuity-policy-materializer.d.ts.map +1 -1
- package/daemon/dist/domain/continuity-policy-materializer.js +11 -3
- package/daemon/dist/domain/continuity-policy-materializer.js.map +1 -1
- package/daemon/dist/domain/core-app-job.d.ts +4 -4
- package/daemon/dist/domain/core-app-job.d.ts.map +1 -1
- package/daemon/dist/domain/core-app-job.js +4 -59
- package/daemon/dist/domain/core-app-job.js.map +1 -1
- package/daemon/dist/domain/current-work.d.ts +12 -0
- package/daemon/dist/domain/current-work.d.ts.map +1 -1
- package/daemon/dist/domain/current-work.js +4 -0
- package/daemon/dist/domain/current-work.js.map +1 -1
- package/daemon/dist/domain/escalation-owner.d.ts +3 -0
- package/daemon/dist/domain/escalation-owner.d.ts.map +1 -1
- package/daemon/dist/domain/escalation-owner.js +9 -3
- package/daemon/dist/domain/escalation-owner.js.map +1 -1
- package/daemon/dist/domain/execution-candidate-reader.d.ts +3 -0
- package/daemon/dist/domain/execution-candidate-reader.d.ts.map +1 -1
- package/daemon/dist/domain/execution-candidate-reader.js +8 -2
- package/daemon/dist/domain/execution-candidate-reader.js.map +1 -1
- package/daemon/dist/domain/existing-rig-restore.d.ts +2 -0
- package/daemon/dist/domain/existing-rig-restore.d.ts.map +1 -1
- package/daemon/dist/domain/existing-rig-restore.js +11 -1
- package/daemon/dist/domain/existing-rig-restore.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.js +49 -8
- package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.d.ts +1 -4
- package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.js +17 -5
- package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts +7 -1
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.js +1 -0
- package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/settled-asks.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/settled-asks.js +15 -2
- package/daemon/dist/domain/gateway/slack/settled-asks.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +0 -17
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.js +10 -40
- package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
- package/daemon/dist/domain/harness-not-started-notice.d.ts +5 -2
- package/daemon/dist/domain/harness-not-started-notice.d.ts.map +1 -1
- package/daemon/dist/domain/harness-not-started-notice.js +46 -15
- package/daemon/dist/domain/harness-not-started-notice.js.map +1 -1
- package/daemon/dist/domain/hosts/read-through.d.ts +1 -1
- package/daemon/dist/domain/hosts/read-through.d.ts.map +1 -1
- package/daemon/dist/domain/hosts/read-through.js +3 -2
- package/daemon/dist/domain/hosts/read-through.js.map +1 -1
- package/daemon/dist/domain/hot-potato-enforcer.d.ts +3 -3
- package/daemon/dist/domain/hot-potato-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/hot-potato-enforcer.js +2 -2
- package/daemon/dist/domain/hot-potato-enforcer.js.map +1 -1
- package/daemon/dist/domain/human-questions.d.ts +1 -1
- package/daemon/dist/domain/human-questions.d.ts.map +1 -1
- package/daemon/dist/domain/human-questions.js +2 -0
- package/daemon/dist/domain/human-questions.js.map +1 -1
- package/daemon/dist/domain/input-read-diagnostic.js +1 -1
- package/daemon/dist/domain/input-read-diagnostic.js.map +1 -1
- package/daemon/dist/domain/keep-alive-supervisor.d.ts +178 -0
- package/daemon/dist/domain/keep-alive-supervisor.d.ts.map +1 -0
- package/daemon/dist/domain/keep-alive-supervisor.js +523 -0
- package/daemon/dist/domain/keep-alive-supervisor.js.map +1 -0
- package/daemon/dist/domain/mission-control/mission-control-fleet-cli-capability.d.ts +6 -0
- package/daemon/dist/domain/mission-control/mission-control-fleet-cli-capability.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-fleet-cli-capability.js +38 -9
- package/daemon/dist/domain/mission-control/mission-control-fleet-cli-capability.js.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js +29 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
- package/daemon/dist/domain/mutation-trace.d.ts +28 -0
- package/daemon/dist/domain/mutation-trace.d.ts.map +1 -0
- package/daemon/dist/domain/mutation-trace.js +38 -0
- package/daemon/dist/domain/mutation-trace.js.map +1 -0
- package/daemon/dist/domain/native-resume-probe.d.ts +13 -3
- package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +54 -17
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/network/hub-client.d.ts +30 -1
- package/daemon/dist/domain/network/hub-client.d.ts.map +1 -1
- package/daemon/dist/domain/network/hub-client.js +62 -9
- package/daemon/dist/domain/network/hub-client.js.map +1 -1
- package/daemon/dist/domain/network/network-bindings.d.ts +52 -2
- package/daemon/dist/domain/network/network-bindings.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-bindings.js +217 -23
- package/daemon/dist/domain/network/network-bindings.js.map +1 -1
- package/daemon/dist/domain/network/network-connector.d.ts +9 -1
- package/daemon/dist/domain/network/network-connector.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-connector.js +95 -7
- package/daemon/dist/domain/network/network-connector.js.map +1 -1
- package/daemon/dist/domain/network/network-installations.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-installations.js +22 -7
- package/daemon/dist/domain/network/network-installations.js.map +1 -1
- package/daemon/dist/domain/network/network-provider-removal.d.ts +9 -0
- package/daemon/dist/domain/network/network-provider-removal.d.ts.map +1 -0
- package/daemon/dist/domain/network/network-provider-removal.js +75 -0
- package/daemon/dist/domain/network/network-provider-removal.js.map +1 -0
- package/daemon/dist/domain/network/network-requests.d.ts +59 -0
- package/daemon/dist/domain/network/network-requests.d.ts.map +1 -0
- package/daemon/dist/domain/network/network-requests.js +476 -0
- package/daemon/dist/domain/network/network-requests.js.map +1 -0
- package/daemon/dist/domain/node-inventory.d.ts +26 -0
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +87 -7
- package/daemon/dist/domain/node-inventory.js.map +1 -1
- package/daemon/dist/domain/occupant-invalidator.d.ts +1 -1
- package/daemon/dist/domain/occupant-invalidator.d.ts.map +1 -1
- package/daemon/dist/domain/occupant-invalidator.js +1 -1
- package/daemon/dist/domain/occupant-invalidator.js.map +1 -1
- package/daemon/dist/domain/outbox-handler.d.ts +11 -0
- package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
- package/daemon/dist/domain/outbox-handler.js +20 -0
- package/daemon/dist/domain/outbox-handler.js.map +1 -1
- package/daemon/dist/domain/parked-query.d.ts +6 -0
- package/daemon/dist/domain/parked-query.d.ts.map +1 -1
- package/daemon/dist/domain/parked-query.js +14 -4
- package/daemon/dist/domain/parked-query.js.map +1 -1
- package/daemon/dist/domain/policies/seat-pool.d.ts +13 -0
- package/daemon/dist/domain/policies/seat-pool.d.ts.map +1 -1
- package/daemon/dist/domain/policies/seat-pool.js +18 -3
- package/daemon/dist/domain/policies/seat-pool.js.map +1 -1
- package/daemon/dist/domain/profile-resolver.d.ts +7 -1
- package/daemon/dist/domain/profile-resolver.d.ts.map +1 -1
- package/daemon/dist/domain/profile-resolver.js +7 -0
- package/daemon/dist/domain/profile-resolver.js.map +1 -1
- package/daemon/dist/domain/progress/progress-indexer.d.ts.map +1 -1
- package/daemon/dist/domain/progress/progress-indexer.js +11 -0
- package/daemon/dist/domain/progress/progress-indexer.js.map +1 -1
- package/daemon/dist/domain/project-lifecycle-compiler.d.ts.map +1 -1
- package/daemon/dist/domain/project-lifecycle-compiler.js +4 -1
- package/daemon/dist/domain/project-lifecycle-compiler.js.map +1 -1
- package/daemon/dist/domain/proof/judgments.d.ts +3 -0
- package/daemon/dist/domain/proof/judgments.d.ts.map +1 -1
- package/daemon/dist/domain/proof/judgments.js +13 -3
- package/daemon/dist/domain/proof/judgments.js.map +1 -1
- package/daemon/dist/domain/proof/source-watch.js +4 -4
- package/daemon/dist/domain/proof/source-watch.js.map +1 -1
- package/daemon/dist/domain/provider/claude-interruption.d.ts +6 -0
- package/daemon/dist/domain/provider/claude-interruption.d.ts.map +1 -1
- package/daemon/dist/domain/provider/claude-interruption.js +18 -0
- package/daemon/dist/domain/provider/claude-interruption.js.map +1 -1
- package/daemon/dist/domain/ps-projection.d.ts +8 -1
- package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
- package/daemon/dist/domain/ps-projection.js +11 -3
- package/daemon/dist/domain/ps-projection.js.map +1 -1
- package/daemon/dist/domain/queue-erasure.d.ts +3 -0
- package/daemon/dist/domain/queue-erasure.d.ts.map +1 -1
- package/daemon/dist/domain/queue-erasure.js +2 -2
- package/daemon/dist/domain/queue-erasure.js.map +1 -1
- package/daemon/dist/domain/queue-owner.d.ts +5 -0
- package/daemon/dist/domain/queue-owner.d.ts.map +1 -1
- package/daemon/dist/domain/queue-owner.js +16 -8
- package/daemon/dist/domain/queue-owner.js.map +1 -1
- package/daemon/dist/domain/queue-recorded-graph.d.ts +32 -0
- package/daemon/dist/domain/queue-recorded-graph.d.ts.map +1 -0
- package/daemon/dist/domain/queue-recorded-graph.js +84 -0
- package/daemon/dist/domain/queue-recorded-graph.js.map +1 -0
- package/daemon/dist/domain/queue-repository.d.ts +74 -4
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +398 -25
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-retention.d.ts +1 -1
- package/daemon/dist/domain/queue-retention.d.ts.map +1 -1
- package/daemon/dist/domain/queue-retention.js +4 -0
- package/daemon/dist/domain/queue-retention.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +43 -9
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/queue-transfer-export.d.ts +75 -0
- package/daemon/dist/domain/queue-transfer-export.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-export.js +156 -0
- package/daemon/dist/domain/queue-transfer-export.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-format.d.ts +15 -0
- package/daemon/dist/domain/queue-transfer-format.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-format.js +32 -0
- package/daemon/dist/domain/queue-transfer-format.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-parse.d.ts +40 -0
- package/daemon/dist/domain/queue-transfer-parse.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-parse.js +131 -0
- package/daemon/dist/domain/queue-transfer-parse.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-review.d.ts +22 -0
- package/daemon/dist/domain/queue-transfer-review.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-review.js +81 -0
- package/daemon/dist/domain/queue-transfer-review.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-staging.d.ts +79 -0
- package/daemon/dist/domain/queue-transfer-staging.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-staging.js +67 -0
- package/daemon/dist/domain/queue-transfer-staging.js.map +1 -0
- package/daemon/dist/domain/queue-wake-ladder.d.ts +4 -0
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +161 -20
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/reconciler.d.ts +27 -2
- package/daemon/dist/domain/reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/reconciler.js +184 -16
- package/daemon/dist/domain/reconciler.js.map +1 -1
- package/daemon/dist/domain/refusal-trace.d.ts +15 -0
- package/daemon/dist/domain/refusal-trace.d.ts.map +1 -0
- package/daemon/dist/domain/refusal-trace.js +23 -0
- package/daemon/dist/domain/refusal-trace.js.map +1 -0
- package/daemon/dist/domain/relayed-answers.d.ts +80 -0
- package/daemon/dist/domain/relayed-answers.d.ts.map +1 -0
- package/daemon/dist/domain/relayed-answers.js +8 -0
- package/daemon/dist/domain/relayed-answers.js.map +1 -0
- package/daemon/dist/domain/remote-control-observations.d.ts +50 -0
- package/daemon/dist/domain/remote-control-observations.d.ts.map +1 -0
- package/daemon/dist/domain/remote-control-observations.js +72 -0
- package/daemon/dist/domain/remote-control-observations.js.map +1 -0
- package/daemon/dist/domain/restore-attempt-receipt.d.ts.map +1 -1
- package/daemon/dist/domain/restore-attempt-receipt.js +8 -2
- package/daemon/dist/domain/restore-attempt-receipt.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +67 -6
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +345 -51
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/rig-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/rig-lifecycle-service.js +4 -1
- package/daemon/dist/domain/rig-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/rig-repository.d.ts +21 -3
- package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
- package/daemon/dist/domain/rig-repository.js +67 -2
- package/daemon/dist/domain/rig-repository.js.map +1 -1
- package/daemon/dist/domain/rig-teardown.d.ts +22 -7
- package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
- package/daemon/dist/domain/rig-teardown.js +108 -24
- package/daemon/dist/domain/rig-teardown.js.map +1 -1
- package/daemon/dist/domain/rigspec-codec.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-codec.js +12 -0
- package/daemon/dist/domain/rigspec-codec.js.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.d.ts +14 -0
- package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.js +56 -14
- package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts +32 -3
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +121 -23
- 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 +30 -4
- package/daemon/dist/domain/rigspec-schema.js.map +1 -1
- package/daemon/dist/domain/rosters.d.ts +1 -0
- package/daemon/dist/domain/rosters.d.ts.map +1 -1
- package/daemon/dist/domain/rosters.js +5 -4
- package/daemon/dist/domain/rosters.js.map +1 -1
- package/daemon/dist/domain/seat-activity-service.d.ts +4 -0
- package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-activity-service.js +24 -5
- package/daemon/dist/domain/seat-activity-service.js.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.d.ts +7 -0
- package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.js +149 -65
- package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-cold-start.d.ts +150 -0
- package/daemon/dist/domain/seat-cold-start.d.ts.map +1 -0
- package/daemon/dist/domain/seat-cold-start.js +371 -0
- package/daemon/dist/domain/seat-cold-start.js.map +1 -0
- package/daemon/dist/domain/seat-delivery-guard.d.ts +11 -2
- package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.js +34 -6
- package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.d.ts +13 -0
- package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.js +63 -23
- package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-identity-store.d.ts +5 -3
- package/daemon/dist/domain/seat-identity-store.d.ts.map +1 -1
- package/daemon/dist/domain/seat-identity-store.js +7 -3
- package/daemon/dist/domain/seat-identity-store.js.map +1 -1
- package/daemon/dist/domain/seat-launch-environment.d.ts +2 -0
- package/daemon/dist/domain/seat-launch-environment.d.ts.map +1 -1
- package/daemon/dist/domain/seat-launch-environment.js +9 -1
- package/daemon/dist/domain/seat-launch-environment.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +17 -0
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +176 -22
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/seat-pool-executor.d.ts +116 -0
- package/daemon/dist/domain/seat-pool-executor.d.ts.map +1 -0
- package/daemon/dist/domain/seat-pool-executor.js +565 -0
- package/daemon/dist/domain/seat-pool-executor.js.map +1 -0
- package/daemon/dist/domain/seat-pool-registration.d.ts +93 -0
- package/daemon/dist/domain/seat-pool-registration.d.ts.map +1 -0
- package/daemon/dist/domain/seat-pool-registration.js +149 -0
- package/daemon/dist/domain/seat-pool-registration.js.map +1 -0
- package/daemon/dist/domain/seat-pool-slots.d.ts +42 -0
- package/daemon/dist/domain/seat-pool-slots.d.ts.map +1 -1
- package/daemon/dist/domain/seat-pool-slots.js +51 -0
- package/daemon/dist/domain/seat-pool-slots.js.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.d.ts +15 -0
- package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.js +54 -2
- package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-home-record.d.ts +8 -0
- package/daemon/dist/domain/seat-runtime-home-record.d.ts.map +1 -1
- package/daemon/dist/domain/seat-runtime-home-record.js +1 -1
- package/daemon/dist/domain/seat-runtime-home-record.js.map +1 -1
- package/daemon/dist/domain/session-registry.d.ts +22 -3
- package/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.js +38 -6
- package/daemon/dist/domain/session-registry.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +18 -2
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +65 -38
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.d.ts +55 -0
- package/daemon/dist/domain/slices/slice-indexer.d.ts.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.js +259 -50
- package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +75 -23
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/startup-proof.d.ts +6 -0
- package/daemon/dist/domain/startup-proof.d.ts.map +1 -1
- package/daemon/dist/domain/startup-proof.js +11 -0
- package/daemon/dist/domain/startup-proof.js.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.d.ts +2 -0
- package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.js +31 -3
- package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts +2 -0
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.js +2 -0
- package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
- package/daemon/dist/domain/terminal/scope-task-terminal-view.d.ts +2 -1
- package/daemon/dist/domain/terminal/scope-task-terminal-view.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/scope-task-terminal-view.js +80 -38
- package/daemon/dist/domain/terminal/scope-task-terminal-view.js.map +1 -1
- package/daemon/dist/domain/terminal/terminal-provider.d.ts +2 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.d.ts +3 -0
- package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.js +30 -26
- package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
- package/daemon/dist/domain/terminal/tile-attach.d.ts +22 -0
- package/daemon/dist/domain/terminal/tile-attach.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/tile-attach.js +71 -0
- package/daemon/dist/domain/terminal/tile-attach.js.map +1 -1
- package/daemon/dist/domain/terminal/view-composer.d.ts +2 -0
- package/daemon/dist/domain/terminal/view-composer.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/view-composer.js +4 -2
- package/daemon/dist/domain/terminal/view-composer.js.map +1 -1
- package/daemon/dist/domain/topology-trace.d.ts +40 -0
- package/daemon/dist/domain/topology-trace.d.ts.map +1 -0
- package/daemon/dist/domain/topology-trace.js +106 -0
- package/daemon/dist/domain/topology-trace.js.map +1 -0
- package/daemon/dist/domain/transcript-store.d.ts.map +1 -1
- package/daemon/dist/domain/transcript-store.js +12 -1
- package/daemon/dist/domain/transcript-store.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +104 -8
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js +3 -2
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.js +2 -0
- package/daemon/dist/domain/user-settings/settings-browser.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts +1 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.js +13 -0
- package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts +5 -3
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-jobs-repository.js +6 -1
- package/daemon/dist/domain/watchdog-jobs-repository.js.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.d.ts +8 -1
- package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.js +6 -2
- package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
- package/daemon/dist/domain/workflow-instance-store.d.ts +2 -0
- package/daemon/dist/domain/workflow-instance-store.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-instance-store.js +11 -2
- package/daemon/dist/domain/workflow-instance-store.js.map +1 -1
- package/daemon/dist/domain/workflow-projector.d.ts +3 -1
- package/daemon/dist/domain/workflow-projector.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-projector.js +58 -10
- package/daemon/dist/domain/workflow-projector.js.map +1 -1
- package/daemon/dist/domain/workflow-run-title.d.ts +4 -0
- package/daemon/dist/domain/workflow-run-title.d.ts.map +1 -0
- package/daemon/dist/domain/workflow-run-title.js +5 -0
- package/daemon/dist/domain/workflow-run-title.js.map +1 -0
- package/daemon/dist/domain/workflow-runtime.d.ts +1 -0
- package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-runtime.js +3 -1
- package/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/daemon/dist/domain/workflow-spec-cache.d.ts +2 -2
- package/daemon/dist/domain/workflow-spec-cache.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-spec-cache.js +20 -1
- package/daemon/dist/domain/workflow-spec-cache.js.map +1 -1
- package/daemon/dist/domain/workflow-types.d.ts +15 -0
- package/daemon/dist/domain/workflow-types.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-types.js +4 -0
- package/daemon/dist/domain/workflow-types.js.map +1 -1
- package/daemon/dist/domain/workspace/project-read.d.ts +10 -0
- package/daemon/dist/domain/workspace/project-read.d.ts.map +1 -1
- package/daemon/dist/domain/workspace/project-read.js +34 -2
- package/daemon/dist/domain/workspace/project-read.js.map +1 -1
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +7 -1
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/queue-transfer-export-surface.d.ts +33 -0
- package/daemon/dist/queue-transfer-export-surface.d.ts.map +1 -0
- package/daemon/dist/queue-transfer-export-surface.js +13 -0
- package/daemon/dist/queue-transfer-export-surface.js.map +1 -0
- package/daemon/dist/queue-transfer-staging-surface.d.ts +86 -0
- package/daemon/dist/queue-transfer-staging-surface.d.ts.map +1 -0
- package/daemon/dist/queue-transfer-staging-surface.js +91 -0
- package/daemon/dist/queue-transfer-staging-surface.js.map +1 -0
- package/daemon/dist/routes/activity.d.ts.map +1 -1
- package/daemon/dist/routes/activity.js +46 -0
- package/daemon/dist/routes/activity.js.map +1 -1
- package/daemon/dist/routes/compaction.d.ts.map +1 -1
- package/daemon/dist/routes/compaction.js +7 -2
- package/daemon/dist/routes/compaction.js.map +1 -1
- package/daemon/dist/routes/context-packs.d.ts.map +1 -1
- package/daemon/dist/routes/context-packs.js +23 -1
- package/daemon/dist/routes/context-packs.js.map +1 -1
- package/daemon/dist/routes/events.js +7 -4
- package/daemon/dist/routes/events.js.map +1 -1
- package/daemon/dist/routes/network.d.ts +2 -0
- package/daemon/dist/routes/network.d.ts.map +1 -1
- package/daemon/dist/routes/network.js +62 -1
- package/daemon/dist/routes/network.js.map +1 -1
- package/daemon/dist/routes/ps.js +12 -1
- package/daemon/dist/routes/ps.js.map +1 -1
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +155 -52
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/require-sender-identity.d.ts.map +1 -1
- package/daemon/dist/routes/require-sender-identity.js +6 -3
- package/daemon/dist/routes/require-sender-identity.js.map +1 -1
- package/daemon/dist/routes/rigs.js +2 -0
- package/daemon/dist/routes/rigs.js.map +1 -1
- package/daemon/dist/routes/seat.d.ts.map +1 -1
- package/daemon/dist/routes/seat.js +12 -5
- package/daemon/dist/routes/seat.js.map +1 -1
- package/daemon/dist/routes/sessions.d.ts.map +1 -1
- package/daemon/dist/routes/sessions.js +14 -0
- package/daemon/dist/routes/sessions.js.map +1 -1
- package/daemon/dist/routes/slices.d.ts.map +1 -1
- package/daemon/dist/routes/slices.js +16 -7
- package/daemon/dist/routes/slices.js.map +1 -1
- package/daemon/dist/routes/startup.d.ts.map +1 -1
- package/daemon/dist/routes/startup.js +49 -4
- package/daemon/dist/routes/startup.js.map +1 -1
- package/daemon/dist/routes/terminal-ws.js +28 -2
- package/daemon/dist/routes/terminal-ws.js.map +1 -1
- package/daemon/dist/routes/terminal.d.ts.map +1 -1
- package/daemon/dist/routes/terminal.js +3 -2
- package/daemon/dist/routes/terminal.js.map +1 -1
- package/daemon/dist/routes/transport.d.ts.map +1 -1
- package/daemon/dist/routes/transport.js +14 -2
- package/daemon/dist/routes/transport.js.map +1 -1
- package/daemon/dist/routes/up.js +2 -0
- package/daemon/dist/routes/up.js.map +1 -1
- package/daemon/dist/routes/workflow.d.ts.map +1 -1
- package/daemon/dist/routes/workflow.js +9 -3
- package/daemon/dist/routes/workflow.js.map +1 -1
- package/daemon/dist/server.d.ts +7 -0
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +8 -0
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts +3 -0
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +133 -7
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/dist/terminal/TerminalSessionBroker.d.ts +10 -0
- package/daemon/dist/terminal/TerminalSessionBroker.d.ts.map +1 -1
- package/daemon/dist/terminal/TerminalSessionBroker.js +63 -4
- package/daemon/dist/terminal/TerminalSessionBroker.js.map +1 -1
- package/daemon/dist/topology-trace-surface.d.ts +2 -0
- package/daemon/dist/topology-trace-surface.d.ts.map +1 -0
- package/daemon/dist/topology-trace-surface.js +2 -0
- package/daemon/dist/topology-trace-surface.js.map +1 -0
- package/daemon/docs/reference/acp-agents.md +2 -1
- package/daemon/docs/reference/agent-spec.md +3 -1
- package/daemon/docs/reference/agent-startup-guide.md +3 -1
- package/daemon/docs/reference/agent-state-taxonomy.md +35 -1
- package/daemon/docs/reference/checked-seat-stop.md +11 -1
- package/daemon/docs/reference/claude-status-line.md +7 -0
- package/daemon/docs/reference/daemon-http-clients.md +120 -18
- package/daemon/docs/reference/gateway-participants.md +6 -0
- package/daemon/docs/reference/getting-started.md +119 -12
- package/daemon/docs/reference/hosted-members.md +114 -0
- package/daemon/docs/reference/inventory-request-diagnostics.md +22 -0
- package/daemon/docs/reference/network-connector.md +112 -4
- package/daemon/docs/reference/project-workspace.md +11 -2
- package/daemon/docs/reference/queue-erasure.md +1 -1
- package/daemon/docs/reference/queue-transfer-export.md +38 -0
- package/daemon/docs/reference/queue-transfer-staging.md +39 -0
- package/daemon/docs/reference/quickstart.md +4 -4
- package/daemon/docs/reference/refocus-channel.md +5 -2
- package/daemon/docs/reference/rig-spec.md +193 -3
- package/daemon/docs/reference/rosters.md +18 -3
- package/daemon/docs/reference/sdlc-conventions.md +1 -1
- package/daemon/docs/reference/seat-delivery.md +21 -4
- package/daemon/docs/reference/seat-pools.md +116 -0
- package/daemon/docs/reference/terminal-sessions.md +57 -11
- package/daemon/docs/reference/tmux-servers.md +27 -2
- package/daemon/docs/reference/whats-new.md +92 -12
- package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +1 -1
- package/dist/build-info.js +3 -3
- package/dist/client.d.ts +2 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/commands/broadcast.d.ts.map +1 -1
- package/dist/commands/broadcast.js +87 -8
- package/dist/commands/broadcast.js.map +1 -1
- package/dist/commands/chatroom.d.ts +3 -0
- package/dist/commands/chatroom.d.ts.map +1 -1
- package/dist/commands/chatroom.js +7 -1
- package/dist/commands/chatroom.js.map +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +2 -1
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/daemon.d.ts.map +1 -1
- package/dist/commands/daemon.js +18 -15
- package/dist/commands/daemon.js.map +1 -1
- package/dist/commands/exec.d.ts.map +1 -1
- package/dist/commands/exec.js +22 -13
- package/dist/commands/exec.js.map +1 -1
- package/dist/commands/export.d.ts.map +1 -1
- package/dist/commands/export.js +5 -1
- package/dist/commands/export.js.map +1 -1
- package/dist/commands/gateway.d.ts +4 -0
- package/dist/commands/gateway.d.ts.map +1 -1
- package/dist/commands/gateway.js +37 -0
- package/dist/commands/gateway.js.map +1 -1
- package/dist/commands/network.d.ts.map +1 -1
- package/dist/commands/network.js +54 -1
- package/dist/commands/network.js.map +1 -1
- package/dist/commands/parked.d.ts.map +1 -1
- package/dist/commands/parked.js +12 -6
- package/dist/commands/parked.js.map +1 -1
- package/dist/commands/provider.d.ts.map +1 -1
- package/dist/commands/provider.js +3 -2
- package/dist/commands/provider.js.map +1 -1
- package/dist/commands/ps.d.ts +12 -1
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +43 -10
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue-export.d.ts +3 -0
- package/dist/commands/queue-export.d.ts.map +1 -0
- package/dist/commands/queue-export.js +67 -0
- package/dist/commands/queue-export.js.map +1 -0
- package/dist/commands/queue-import.d.ts +4 -0
- package/dist/commands/queue-import.d.ts.map +1 -0
- package/dist/commands/queue-import.js +47 -0
- package/dist/commands/queue-import.js.map +1 -0
- package/dist/commands/queue.d.ts +1 -1
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +50 -1
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/roster.js +1 -1
- package/dist/commands/roster.js.map +1 -1
- package/dist/commands/scope.d.ts.map +1 -1
- package/dist/commands/scope.js +30 -18
- package/dist/commands/scope.js.map +1 -1
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +20 -2
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +15 -3
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/start.d.ts +14 -0
- package/dist/commands/start.d.ts.map +1 -1
- package/dist/commands/start.js +54 -5
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +4 -0
- package/dist/commands/workflow.js.map +1 -1
- package/dist/config-store.d.ts +2 -1
- package/dist/config-store.d.ts.map +1 -1
- package/dist/config-store.js +14 -1
- package/dist/config-store.js.map +1 -1
- package/dist/cross-host-executor.d.ts +3 -0
- package/dist/cross-host-executor.d.ts.map +1 -1
- package/dist/cross-host-executor.js +5 -0
- package/dist/cross-host-executor.js.map +1 -1
- package/dist/daemon-auto-start.d.ts.map +1 -1
- package/dist/daemon-auto-start.js +1 -0
- package/dist/daemon-auto-start.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts +6 -1
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +90 -30
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/daemon-start-lock.d.ts +38 -3
- package/dist/daemon-start-lock.d.ts.map +1 -1
- package/dist/daemon-start-lock.js +201 -48
- package/dist/daemon-start-lock.js.map +1 -1
- package/dist/lib/scope/progress-edit.d.ts.map +1 -1
- package/dist/lib/scope/progress-edit.js +10 -0
- package/dist/lib/scope/progress-edit.js.map +1 -1
- package/dist/lib/topology-trace.d.ts +3 -34
- package/dist/lib/topology-trace.d.ts.map +1 -1
- package/dist/lib/topology-trace.js +3 -97
- package/dist/lib/topology-trace.js.map +1 -1
- package/dist/local-db.d.ts +2 -0
- package/dist/local-db.d.ts.map +1 -1
- package/dist/local-db.js +14 -11
- package/dist/local-db.js.map +1 -1
- package/dist/mcp-caller-resolver.d.ts +36 -0
- package/dist/mcp-caller-resolver.d.ts.map +1 -0
- package/dist/mcp-caller-resolver.js +82 -0
- package/dist/mcp-caller-resolver.js.map +1 -0
- package/dist/mcp-http.d.ts +43 -2
- package/dist/mcp-http.d.ts.map +1 -1
- package/dist/mcp-http.js +223 -46
- package/dist/mcp-http.js.map +1 -1
- package/dist/mcp-server.d.ts +23 -0
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +108 -39
- package/dist/mcp-server.js.map +1 -1
- package/dist/mcp-surface.d.ts +3 -2
- package/dist/mcp-surface.d.ts.map +1 -1
- package/dist/node-support.d.ts.map +1 -1
- package/dist/node-support.js +10 -0
- package/dist/node-support.js.map +1 -1
- package/dist/remote-host-ops.d.ts +3 -0
- package/dist/remote-host-ops.d.ts.map +1 -1
- package/dist/remote-host-ops.js +15 -1
- package/dist/remote-host-ops.js.map +1 -1
- package/package.json +3 -3
- package/scripts/check-abi.mjs +15 -0
- package/tui/dist/attention/attention-model.d.ts.map +1 -1
- package/tui/dist/attention/attention-model.js +8 -4
- package/tui/dist/attention/attention-model.js.map +1 -1
- package/tui/dist/crash-cart/start-daemon.d.ts +20 -0
- package/tui/dist/crash-cart/start-daemon.d.ts.map +1 -1
- package/tui/dist/crash-cart/start-daemon.js +56 -0
- package/tui/dist/crash-cart/start-daemon.js.map +1 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +4 -2
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/main.js +24 -8
- package/tui/dist/main.js.map +1 -1
- package/tui/dist/render.d.ts +2 -0
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +41 -9
- package/tui/dist/render.js.map +1 -1
|
@@ -6,7 +6,7 @@ import { clearCodexMemberPermissions, readCodexMemberPermissions, validateCodexM
|
|
|
6
6
|
import { parseTerminalPolicy, TerminalPolicyRefusal, TerminalPolicyStore } from "./terminal-policy.js";
|
|
7
7
|
import { verifyPaneEmptyShell } from "./native-process-lineage.js";
|
|
8
8
|
import { storedPoolAdvisories } from "./seat-pool-spec.js";
|
|
9
|
-
import { problemText } from "../adapters/tmux.js";
|
|
9
|
+
import { probeShowsNoServer, problemText } from "../adapters/tmux.js";
|
|
10
10
|
import { shellQuote } from "../adapters/shell-quote.js";
|
|
11
11
|
import { EFFORT_SHAPE, piThinkingValue } from "../adapters/pi-runner-protocol.js";
|
|
12
12
|
import { deriveCanonicalFromEntry, getNodeInventory } from "./node-inventory.js";
|
|
@@ -16,7 +16,7 @@ import { resolveStartupProof } from "./startup-resolver.js";
|
|
|
16
16
|
import { reanchorBuiltinStartupFile, reanchorShippedProjectionEntry, withContextEntryFloor } from "./builtin-startup-files.js";
|
|
17
17
|
import { rebindAndVerifyPaneIdentity } from "./seat-attention-reconciler.js";
|
|
18
18
|
import { observeSolePane } from "./pane-binding-observation.js";
|
|
19
|
-
import { createHash } from "node:crypto";
|
|
19
|
+
import { createHash, randomUUID } from "node:crypto";
|
|
20
20
|
import { NativePermissionStore } from "./native-permission-store.js";
|
|
21
21
|
import { preferenceHoldsLifecycle } from "./seat-delivery-guard.js";
|
|
22
22
|
import { validateNativePermissionSelection, unresolvedClaudePermissionModes } from "./native-permission-selection.js";
|
|
@@ -114,6 +114,7 @@ export class SeatLifecycleService {
|
|
|
114
114
|
readProcessCensus;
|
|
115
115
|
nodeLauncher;
|
|
116
116
|
startupOrchestrator;
|
|
117
|
+
armContinuity;
|
|
117
118
|
runtimeAdapters;
|
|
118
119
|
occupantInvalidator;
|
|
119
120
|
activityOracle;
|
|
@@ -140,6 +141,7 @@ export class SeatLifecycleService {
|
|
|
140
141
|
this.readProcessCensus = deps.readProcessCensus ?? readProcessTableCensusNow;
|
|
141
142
|
this.nodeLauncher = deps.nodeLauncher ?? null;
|
|
142
143
|
this.startupOrchestrator = deps.startupOrchestrator ?? null;
|
|
144
|
+
this.armContinuity = deps.armContinuity ?? null;
|
|
143
145
|
this.runtimeAdapters = deps.runtimeAdapters ?? {};
|
|
144
146
|
this.occupantInvalidator = deps.occupantInvalidator ?? null;
|
|
145
147
|
this.activityOracle = deps.activityOracle ?? null;
|
|
@@ -1132,6 +1134,9 @@ export class SeatLifecycleService {
|
|
|
1132
1134
|
if ("code" in probed)
|
|
1133
1135
|
return probed;
|
|
1134
1136
|
if (probed.state === "absent") {
|
|
1137
|
+
if (this.holdsKeepAliveSeatDown(resolved.nodeId, session)) {
|
|
1138
|
+
return this.recordKeepAliveSeatDown(resolved, session, input.reason, input.operator);
|
|
1139
|
+
}
|
|
1135
1140
|
return {
|
|
1136
1141
|
ok: false,
|
|
1137
1142
|
code: "session_not_live",
|
|
@@ -1178,8 +1183,12 @@ export class SeatLifecycleService {
|
|
|
1178
1183
|
if (afterProbe)
|
|
1179
1184
|
return afterProbe;
|
|
1180
1185
|
guard.checkInput(resolved.nodeId);
|
|
1181
|
-
if (probed.state === "absent")
|
|
1186
|
+
if (probed.state === "absent") {
|
|
1187
|
+
if (this.holdsKeepAliveSeatDown(resolved.nodeId, session)) {
|
|
1188
|
+
return this.recordKeepAliveSeatDown(resolved, session, input.reason, input.operator, selection);
|
|
1189
|
+
}
|
|
1182
1190
|
return { ok: false, code: "session_not_live", message: `Session "${session.session_name}" is absent in tmux; there is nothing to stop.`, guidance: "A dead seat with stale records is returned to launchable with: rig seat clean" };
|
|
1191
|
+
}
|
|
1183
1192
|
return this.stopManagedTmuxSeat(resolved, session, input.reason, input.operator, true, { selection, guard });
|
|
1184
1193
|
});
|
|
1185
1194
|
}
|
|
@@ -1254,7 +1263,12 @@ export class SeatLifecycleService {
|
|
|
1254
1263
|
let persisted = null;
|
|
1255
1264
|
const tx = this.db.transaction(() => {
|
|
1256
1265
|
for (const row of nonTerminal) {
|
|
1257
|
-
|
|
1266
|
+
// #2940: each row was just proven gone, so a stop still pending on it (a daemon lost mid-stop) is confirmed;
|
|
1267
|
+
// left pending on an exited row, nothing would look at it again.
|
|
1268
|
+
if (this.stopStillRequested(row.id))
|
|
1269
|
+
this.sessionRegistry.markIntentionallyStopped(row.id);
|
|
1270
|
+
else
|
|
1271
|
+
this.sessionRegistry.updateStatus(row.id, "exited");
|
|
1258
1272
|
sessionsExited.push(row.session_name);
|
|
1259
1273
|
}
|
|
1260
1274
|
this.sessionRegistry.clearBinding(resolved.nodeId);
|
|
@@ -1610,7 +1624,8 @@ export class SeatLifecycleService {
|
|
|
1610
1624
|
// #3395: a fresh launch of an existing seat starts from its stored settings: a stored pool block that can't be used
|
|
1611
1625
|
// is reported once, from the node.
|
|
1612
1626
|
const viewWarnings = [...storedPoolAdvisories(node.logicalId, this.rigRepo.getNodePool(node.id))];
|
|
1613
|
-
|
|
1627
|
+
const canonicalSeen = {};
|
|
1628
|
+
let canonicalProbe = await this.probeLiveness(canonicalSessionName, "fresh launch refuses rather than overwrite a possibly-live canonical session", (probe) => { canonicalSeen.probe = probe; });
|
|
1614
1629
|
// `rig seat stop` persists an exited row after killing its managed session.
|
|
1615
1630
|
// When that was the last tmux session, tmux exits too, so the next classified
|
|
1616
1631
|
// probe sees unavailable transport instead of positive absence. Reopen an
|
|
@@ -1631,8 +1646,8 @@ export class SeatLifecycleService {
|
|
|
1631
1646
|
&& !hasCurrentBinding
|
|
1632
1647
|
&& this.nonTerminalSessions(node.id).length === 0;
|
|
1633
1648
|
// A host restart ends tmux with every seat in it, and the daemon's boot reconcile marks those managed sessions
|
|
1634
|
-
// detached while keeping their bindings. Nothing was stopped on purpose, so
|
|
1635
|
-
// absence:
|
|
1649
|
+
// detached while keeping their bindings. Nothing was stopped on purpose, so a missing socket file alone isn't
|
|
1650
|
+
// absence: a server may still run after losing it. Reopen an empty server for that row only on positive
|
|
1636
1651
|
// evidence that the seat's recorded process has ended (recordedProcessEnded: a census; hidden pids, evidence older
|
|
1637
1652
|
// than this session and evidence that changed while the census ran count as unknown); unknown keeps the refusal. Its binding stays for the stale-row clean
|
|
1638
1653
|
// below, which proves absence again on the reopened server. Limit: only the last recorded process is proven; a
|
|
@@ -1650,19 +1665,24 @@ export class SeatLifecycleService {
|
|
|
1650
1665
|
const detachedEnded = detachedUnstopped
|
|
1651
1666
|
&& await recordedProcessEnded(this.db, { ...session, createdAt: latest?.created_at }, readCensus);
|
|
1652
1667
|
const processes = () => table ?? readCensus().then((read) => read ? read.rows : null);
|
|
1668
|
+
// #3435 follow-up: tmux says "no server running on <socket>" when its socket file is there and nothing listens on
|
|
1669
|
+
// it, as after `tmux kill-server`, exit-empty or a killed server. No seat runs on that server, so a fresh launch
|
|
1670
|
+
// reopens it whatever the row's state, unless the seat's recorded process is known to still run. A missing socket
|
|
1671
|
+
// file ("error connecting to <socket> (No such file or directory)") keeps the checks above.
|
|
1672
|
+
const staleSocket = canonicalSeen.probe !== undefined && probeShowsNoServer(canonicalSeen.probe);
|
|
1653
1673
|
// Unclaim doesn't end the process. While the released (or detached) session's recorded process still runs, its
|
|
1654
1674
|
// server may only have lost its socket: a server started there would read the session absent and launch a second
|
|
1655
1675
|
// occupant beside it. So keep the refusal, as the reconciler keeps such a session (the same evidence).
|
|
1656
|
-
const stillRuns = table || (detachedUnstopped && !detachedEnded)
|
|
1676
|
+
const stillRuns = table || staleSocket || (detachedUnstopped && !detachedEnded)
|
|
1657
1677
|
? await recordedProcessStillRunning(this.db, session, processes) : null;
|
|
1658
1678
|
if (stillRuns) {
|
|
1659
1679
|
return {
|
|
1660
1680
|
...canonicalProbe,
|
|
1661
|
-
guidance: `This seat's ${released ? "released" : "detached"}
|
|
1681
|
+
guidance: `This seat's ${released ? "released " : detachedManaged ? "detached " : ""}session last ran as process ${stillRuns.pid}, which is still running, so it may be `
|
|
1662
1682
|
+ "on a tmux server this daemon can't reach. End that process, then launch again.",
|
|
1663
1683
|
};
|
|
1664
1684
|
}
|
|
1665
|
-
if (detachedUnstopped && !detachedEnded) {
|
|
1685
|
+
if (detachedUnstopped && !detachedEnded && !staleSocket) {
|
|
1666
1686
|
return {
|
|
1667
1687
|
...canonicalProbe,
|
|
1668
1688
|
guidance: "This seat's detached session has no proof its recorded process ended (no process evidence for it since "
|
|
@@ -1672,17 +1692,35 @@ export class SeatLifecycleService {
|
|
|
1672
1692
|
+ "terminal server once the seat is known to be gone, then launch again.",
|
|
1673
1693
|
};
|
|
1674
1694
|
}
|
|
1675
|
-
if (stoppedManagedOccupant || detachedEnded) {
|
|
1695
|
+
if (stoppedManagedOccupant || detachedEnded || staleSocket) {
|
|
1696
|
+
let failed;
|
|
1676
1697
|
try {
|
|
1677
1698
|
const restored = await this.tmuxAdapter.startServer();
|
|
1678
1699
|
if (restored.ok) {
|
|
1679
1700
|
canonicalProbe = await this.probeLiveness(canonicalSessionName, "fresh launch refuses rather than overwrite a possibly-live canonical session");
|
|
1680
1701
|
}
|
|
1702
|
+
else {
|
|
1703
|
+
failed = restored.message;
|
|
1704
|
+
}
|
|
1681
1705
|
}
|
|
1682
|
-
catch {
|
|
1706
|
+
catch (error) {
|
|
1683
1707
|
// Keep the original classified refusal when the transport cannot be
|
|
1684
1708
|
// restored; never translate a failed start into absence.
|
|
1709
|
+
failed = error instanceof Error ? error.message : String(error);
|
|
1685
1710
|
}
|
|
1711
|
+
if (failed !== undefined && "code" in canonicalProbe) {
|
|
1712
|
+
return { ...canonicalProbe, guidance: `Reopening the terminal server failed (${failed}), so nothing was launched. `
|
|
1713
|
+
+ "Check tmux and its socket, then launch again." };
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
else {
|
|
1717
|
+
const missingSocket = canonicalSeen.probe?.state === "transport_unavailable"
|
|
1718
|
+
&& /\(No such file or directory\)/.test(canonicalSeen.probe.cause);
|
|
1719
|
+
return { ...canonicalProbe, guidance: "A reopen of the terminal server wasn't tried: " + (missingSocket
|
|
1720
|
+
? "the socket file is missing, and a server may still run after losing it, while this seat's session wasn't "
|
|
1721
|
+
+ "stopped, released, or detached with its recorded process proven ended. Start the terminal server once the "
|
|
1722
|
+
+ "seat is known to be gone, then launch again."
|
|
1723
|
+
: "tmux's answer doesn't show that its server is gone.") };
|
|
1686
1724
|
}
|
|
1687
1725
|
}
|
|
1688
1726
|
if ("code" in canonicalProbe)
|
|
@@ -1912,6 +1950,18 @@ export class SeatLifecycleService {
|
|
|
1912
1950
|
tx();
|
|
1913
1951
|
if (persisted)
|
|
1914
1952
|
this.eventBus.notifySubscribers(persisted);
|
|
1953
|
+
// The new occupant is running: its continuity notice is armed the way a first start arms it (one job per seat address).
|
|
1954
|
+
let resultWarnings = warnings;
|
|
1955
|
+
if (this.armContinuity) {
|
|
1956
|
+
try {
|
|
1957
|
+
const problem = await this.armContinuity(seat.rigId, node.id);
|
|
1958
|
+
if (problem)
|
|
1959
|
+
resultWarnings = [...(warnings ?? []), problem];
|
|
1960
|
+
}
|
|
1961
|
+
catch (error) {
|
|
1962
|
+
resultWarnings = [...(warnings ?? []), `continuity policy was not armed for ${seat.logicalId}: ${error.message}`];
|
|
1963
|
+
}
|
|
1964
|
+
}
|
|
1915
1965
|
if (attentionRequired) {
|
|
1916
1966
|
return {
|
|
1917
1967
|
ok: false,
|
|
@@ -1923,7 +1973,7 @@ export class SeatLifecycleService {
|
|
|
1923
1973
|
sessionName: canonicalSessionName,
|
|
1924
1974
|
sessionId: launch.session.id,
|
|
1925
1975
|
generation,
|
|
1926
|
-
warnings,
|
|
1976
|
+
warnings: resultWarnings,
|
|
1927
1977
|
};
|
|
1928
1978
|
}
|
|
1929
1979
|
return {
|
|
@@ -1938,7 +1988,7 @@ export class SeatLifecycleService {
|
|
|
1938
1988
|
advisor: node.advisor ?? undefined,
|
|
1939
1989
|
startupPolicyHash: startup.hash,
|
|
1940
1990
|
supersededSessionIds,
|
|
1941
|
-
warnings,
|
|
1991
|
+
warnings: resultWarnings,
|
|
1942
1992
|
};
|
|
1943
1993
|
}
|
|
1944
1994
|
/**
|
|
@@ -2075,23 +2125,62 @@ export class SeatLifecycleService {
|
|
|
2075
2125
|
refuse(changed);
|
|
2076
2126
|
checked.guard.checkInput(resolved.nodeId);
|
|
2077
2127
|
});
|
|
2128
|
+
// #2940: a supported stop records its request durably before the first step that stops anything, after the target
|
|
2129
|
+
// was resolved under the lifecycle lease. A daemon lost after this point leaves a pending stop, which the startup
|
|
2130
|
+
// reconcile confirms once the session is gone; it is never read as a fall.
|
|
2131
|
+
let request = null;
|
|
2132
|
+
if (recordStopIntent) {
|
|
2133
|
+
const attemptId = randomUUID();
|
|
2134
|
+
const recorded = this.db.transaction(() => {
|
|
2135
|
+
const changed = checked?.selection();
|
|
2136
|
+
if (changed)
|
|
2137
|
+
return changed;
|
|
2138
|
+
return this.sessionRegistry.requestStop(session.id, attemptId);
|
|
2139
|
+
})();
|
|
2140
|
+
if (recorded && "code" in recorded)
|
|
2141
|
+
return recorded;
|
|
2142
|
+
if (recorded)
|
|
2143
|
+
request = { attemptId, prev: recorded };
|
|
2144
|
+
}
|
|
2145
|
+
// Only a failure proven to have had no effect (nothing was detached or killed) puts back this attempt's request. The
|
|
2146
|
+
// revert is refused when the row changed meanwhile (another stop recorded its own attempt, or confirmed one): that
|
|
2147
|
+
// request stays recorded, and the result says so.
|
|
2148
|
+
const undoRequest = () => !request || this.sessionRegistry.revertStopRequest(session.id, request.attemptId, request.prev);
|
|
2149
|
+
const keptNote = " The stop request stays recorded: the row changed meanwhile, so this attempt's request couldn't be put back.";
|
|
2078
2150
|
const kill = checked
|
|
2079
2151
|
? await this.tmuxAdapter.killSession(session.session_name, beforeEffect)
|
|
2080
2152
|
: await this.tmuxAdapter.killSession(session.session_name);
|
|
2081
|
-
|
|
2153
|
+
// #2940: a keep_alive seat whose session ended before the kill reached it is gone either way. Its stop is confirmed,
|
|
2154
|
+
// not undone, so keep-alive leaves it down as the person asked.
|
|
2155
|
+
const goneBeforeKill = !kill.ok && kill.code === "session_not_found" && recordStopIntent && request !== null
|
|
2156
|
+
&& this.holdsKeepAliveSeatDown(resolved.nodeId, session);
|
|
2157
|
+
if (checked && !kill.ok && !goneBeforeKill) {
|
|
2082
2158
|
const partialEffect = kill.stopPhase !== undefined && kill.stopPhase !== "none";
|
|
2083
2159
|
if (kill.code === "selection_changed" || kill.code === "guard_target_changed" || kill.code === "guard_target_unknown") {
|
|
2084
|
-
|
|
2160
|
+
const kept = !partialEffect && !undoRequest();
|
|
2161
|
+
return { ok: false, code: "selection_changed", message: `${kill.message}${kept ? keptNote : ""}`, partialEffect, stopPhase: kill.stopPhase };
|
|
2162
|
+
}
|
|
2163
|
+
if (!partialEffect && kill.code !== "session_not_found") {
|
|
2164
|
+
const kept = !undoRequest();
|
|
2165
|
+
return { ok: false, code: "tmux_probe_failed", message: `${kill.message}${kept ? keptNote : ""}` };
|
|
2085
2166
|
}
|
|
2086
|
-
|
|
2087
|
-
return { ok: false, code: "tmux_probe_failed", message: kill.message };
|
|
2088
|
-
return { ok: false, code: "stop_uncertain", message: `Checked stop did not complete: ${kill.message}`, partialEffect, stopPhase: kill.stopPhase };
|
|
2167
|
+
return { ok: false, code: "stop_uncertain", message: `Checked stop did not complete: ${kill.message}${request ? " The stop request stays recorded." : ""}`, partialEffect, stopPhase: kill.stopPhase };
|
|
2089
2168
|
}
|
|
2169
|
+
// The session ended on its own before this stop reached it: the stop had no effect, so its request goes back and
|
|
2170
|
+
// the exit stays an unexplained one.
|
|
2171
|
+
if (kill && !kill.ok && kill.code === "session_not_found" && !goneBeforeKill)
|
|
2172
|
+
undoRequest();
|
|
2090
2173
|
if (kill && !kill.ok && kill.code !== "session_not_found") {
|
|
2174
|
+
// A timeout or a partial effect is no proof that nothing stopped: the request stays and the result says so.
|
|
2175
|
+
const partialEffect = kill.stopPhase !== undefined && kill.stopPhase !== "none";
|
|
2176
|
+
const kept = !partialEffect && !undoRequest();
|
|
2091
2177
|
return {
|
|
2092
2178
|
ok: false,
|
|
2093
2179
|
code: "tmux_probe_failed",
|
|
2094
|
-
message: `tmux kill-session for "${session.session_name}" failed: ${kill.message ?? kill.code}
|
|
2180
|
+
message: `tmux kill-session for "${session.session_name}" failed: ${kill.message ?? kill.code}`
|
|
2181
|
+
+ (partialEffect && request ? ` It got as far as ${kill.stopPhase}; the stop request stays recorded.` : "")
|
|
2182
|
+
+ (kept ? keptNote : ""),
|
|
2183
|
+
...(partialEffect ? { partialEffect, stopPhase: kill.stopPhase } : {}),
|
|
2095
2184
|
};
|
|
2096
2185
|
}
|
|
2097
2186
|
let persisted = null;
|
|
@@ -2102,7 +2191,9 @@ export class SeatLifecycleService {
|
|
|
2102
2191
|
return changed;
|
|
2103
2192
|
checked.guard.checkInput(resolved.nodeId);
|
|
2104
2193
|
}
|
|
2105
|
-
if (recordStopIntent && kill?.ok)
|
|
2194
|
+
if ((recordStopIntent && (kill?.ok || goneBeforeKill))
|
|
2195
|
+
// #2940: a request the row still carries (an earlier stop's) is confirmed once tmux proves the session gone.
|
|
2196
|
+
|| ((kill?.ok || (kill && !kill.ok && kill.code === "session_not_found")) && this.stopStillRequested(session.id))) {
|
|
2106
2197
|
this.sessionRegistry.markIntentionallyStopped(session.id);
|
|
2107
2198
|
}
|
|
2108
2199
|
else {
|
|
@@ -2114,6 +2205,7 @@ export class SeatLifecycleService {
|
|
|
2114
2205
|
type: "session.stopped",
|
|
2115
2206
|
rigId: seat.rigId,
|
|
2116
2207
|
nodeId: seat.nodeId,
|
|
2208
|
+
sessionId: session.id,
|
|
2117
2209
|
sessionName: session.session_name,
|
|
2118
2210
|
reason: reason.trim(),
|
|
2119
2211
|
operator: operator ?? null,
|
|
@@ -2145,6 +2237,67 @@ export class SeatLifecycleService {
|
|
|
2145
2237
|
return { ok: true, seat, sessionName: session.session_name, sessionId: session.id,
|
|
2146
2238
|
...(communityHarnessOf(session.community_harness, this.db.prepare("SELECT runtime FROM nodes WHERE id=?").get(resolved.nodeId)?.runtime) ? { paneOnly: true } : {}) };
|
|
2147
2239
|
}
|
|
2240
|
+
/** #2940: whether the session row still carries a stop request. */
|
|
2241
|
+
stopStillRequested(sessionId) {
|
|
2242
|
+
return this.db.prepare("SELECT intentionally_stopped AS flag FROM sessions WHERE id = ?").get(sessionId)?.flag === 1;
|
|
2243
|
+
}
|
|
2244
|
+
/** #2940: a seat that declares keep_alive, whose latest session OpenRig launched (not claimed, not attached from
|
|
2245
|
+
* outside). When its session is already gone, a stop is recorded instead of refused: `rig seat stop` means stay down,
|
|
2246
|
+
* and without the record the supervisor would bring the seat back. Other seats keep the refusal. */
|
|
2247
|
+
holdsKeepAliveSeatDown(nodeId, session) {
|
|
2248
|
+
if (session.origin === "claimed")
|
|
2249
|
+
return false;
|
|
2250
|
+
const binding = this.sessionRegistry.getBindingForNode(nodeId);
|
|
2251
|
+
if (seatProcessOwner(resolveSeatKind(binding?.attachmentType)) === "external")
|
|
2252
|
+
return false;
|
|
2253
|
+
// Another session of the seat may still be live (an older one under an earlier name), or the binding points
|
|
2254
|
+
// elsewhere: that is not a seat that is simply down, so the refusal and its `rig seat clean` guidance stand.
|
|
2255
|
+
if (binding?.attachmentType === "tmux" && binding.tmuxSession && binding.tmuxSession !== session.session_name)
|
|
2256
|
+
return false;
|
|
2257
|
+
if (this.nonTerminalSessions(nodeId).some((row) => row.id !== session.id))
|
|
2258
|
+
return false;
|
|
2259
|
+
const hasColumn = this.db.prepare("PRAGMA table_info(nodes)").all().some((row) => row.name === "keep_alive");
|
|
2260
|
+
if (!hasColumn)
|
|
2261
|
+
return false;
|
|
2262
|
+
return this.db.prepare("SELECT keep_alive FROM nodes WHERE id = ?").get(nodeId)
|
|
2263
|
+
?.keep_alive === 1;
|
|
2264
|
+
}
|
|
2265
|
+
/** #2940: record the stop of a keep_alive seat whose session tmux already shows absent, under the lifecycle lease. The
|
|
2266
|
+
* stop is confirmed; a failed relaunch's superseded row keeps its status (restore reads it as occupant history). The
|
|
2267
|
+
* binding is cleared as on any confirmed stop. */
|
|
2268
|
+
recordKeepAliveSeatDown(resolved, session, reason, operator, selection) {
|
|
2269
|
+
const seat = this.describe(resolved);
|
|
2270
|
+
let persisted = null;
|
|
2271
|
+
const changed = this.db.transaction(() => {
|
|
2272
|
+
const stale = selection?.();
|
|
2273
|
+
if (stale)
|
|
2274
|
+
return stale;
|
|
2275
|
+
if (session.status === "superseded")
|
|
2276
|
+
this.sessionRegistry.recordStopIntent(session.id);
|
|
2277
|
+
else
|
|
2278
|
+
this.sessionRegistry.markIntentionallyStopped(session.id);
|
|
2279
|
+
this.sessionRegistry.clearBinding(resolved.nodeId);
|
|
2280
|
+
persisted = this.eventBus.persistWithinTransaction({
|
|
2281
|
+
type: "session.stopped",
|
|
2282
|
+
rigId: seat.rigId,
|
|
2283
|
+
nodeId: seat.nodeId,
|
|
2284
|
+
sessionName: session.session_name,
|
|
2285
|
+
reason: reason.trim(),
|
|
2286
|
+
operator: operator ?? null,
|
|
2287
|
+
});
|
|
2288
|
+
return null;
|
|
2289
|
+
})();
|
|
2290
|
+
if (changed)
|
|
2291
|
+
return changed;
|
|
2292
|
+
this.tmuxAdapter.deliveryGuard?.rebindLifecycle(resolved.nodeId);
|
|
2293
|
+
if (persisted)
|
|
2294
|
+
this.eventBus.notifySubscribers(persisted);
|
|
2295
|
+
return {
|
|
2296
|
+
ok: true, seat, sessionName: session.session_name, sessionId: session.id, alreadyDown: true,
|
|
2297
|
+
message: `Session "${session.session_name}" was already gone (checked: tmux has-session, POSITIVE absence evidence). `
|
|
2298
|
+
+ "The seat declares keep_alive, so the stop is recorded and the seat is now held down until it is started again.",
|
|
2299
|
+
};
|
|
2300
|
+
}
|
|
2148
2301
|
nonTerminalSessions(nodeId) {
|
|
2149
2302
|
return this.db.prepare("SELECT id, session_name, status, origin FROM sessions WHERE node_id = ? ORDER BY created_at, id").all(nodeId).filter((row) => !TERMINAL_SESSION_STATUSES.has(row.status));
|
|
2150
2303
|
}
|
|
@@ -2341,7 +2494,7 @@ export class SeatLifecycleService {
|
|
|
2341
2494
|
* destructive verb.
|
|
2342
2495
|
* unexpected probe throw → the same indeterminate refusal (fail closed).
|
|
2343
2496
|
*/
|
|
2344
|
-
async probeLiveness(sessionName, refusalConsequence) {
|
|
2497
|
+
async probeLiveness(sessionName, refusalConsequence, seen) {
|
|
2345
2498
|
let probe;
|
|
2346
2499
|
try {
|
|
2347
2500
|
probe = await this.tmuxAdapter.probeSession(sessionName);
|
|
@@ -2353,6 +2506,7 @@ export class SeatLifecycleService {
|
|
|
2353
2506
|
message: `tmux liveness probe for "${sessionName}" failed (${err instanceof Error ? err.message : String(err)}) — liveness is INDETERMINATE, so ${refusalConsequence}.`,
|
|
2354
2507
|
};
|
|
2355
2508
|
}
|
|
2509
|
+
seen?.(probe);
|
|
2356
2510
|
if (probe.state === "transport_unavailable") {
|
|
2357
2511
|
return {
|
|
2358
2512
|
ok: false,
|