@openrig/cli 0.7.21 → 0.7.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/daemon/assets/onboarding/01-world-and-purpose.md +2 -1
- package/daemon/assets/onboarding/02-self-and-competent-action.md +6 -0
- package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/hooks/claude.json +22 -0
- package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +23 -0
- package/daemon/assets/plugins/openrig-core/hooks/scripts/compaction-restore-bridge.cjs +82 -9
- package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/precompact-hook.mjs +138 -20
- package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/restore-from-jsonl.mjs +110 -35
- package/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md +1 -1
- package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +7 -5
- package/daemon/assets/plugins/openrig-core/skills/refocusing/scripts/trace-to-root.py +32 -6
- package/daemon/assets/skills/rigs/SKILL.md +27 -6
- package/daemon/context-packs/help/help.md +12 -0
- package/daemon/context-packs/help/manifest.yaml +1 -1
- package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
- package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +27 -7
- package/daemon/context-packs/reference/acp-agents.md +2 -1
- package/daemon/context-packs/reference/getting-started.md +129 -13
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +210 -7
- package/daemon/context-packs/reference/tmux-servers.md +46 -2
- package/daemon/context-packs/reference/whats-new.md +167 -5
- package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
- package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
- package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
- package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/claude-compaction-restore/scripts/precompact-hook.mjs +138 -20
- package/daemon/context-packs/skills/claude-compaction-restore/scripts/restore-from-jsonl.mjs +110 -35
- package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/messaging-the-human/SKILL.md +1 -1
- package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +3 -3
- package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
- package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
- package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-user/SKILL.md +7 -5
- package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
- package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
- package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
- package/daemon/context-packs/skills/refocusing/scripts/trace-to-root.py +32 -6
- package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
- package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
- package/daemon/context-packs/world-example/manifest.yaml +1 -1
- package/daemon/context-packs/world-public/manifest.yaml +1 -1
- package/daemon/dist/adapters/claude-code-adapter.d.ts +14 -1
- package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +98 -23
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts +3 -1
- package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume.js +35 -11
- package/daemon/dist/adapters/claude-resume.js.map +1 -1
- package/daemon/dist/adapters/claude-settings-transport.d.ts +10 -0
- package/daemon/dist/adapters/claude-settings-transport.d.ts.map +1 -0
- package/daemon/dist/adapters/claude-settings-transport.js +95 -0
- package/daemon/dist/adapters/claude-settings-transport.js.map +1 -0
- package/daemon/dist/adapters/codex-activity-relay.d.ts +6 -0
- package/daemon/dist/adapters/codex-activity-relay.d.ts.map +1 -0
- package/daemon/dist/adapters/codex-activity-relay.js +29 -0
- package/daemon/dist/adapters/codex-activity-relay.js.map +1 -0
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts +2 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js +30 -17
- package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.js +19 -4
- package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/pi-recovery-rpc.d.ts +17 -0
- package/daemon/dist/adapters/pi-recovery-rpc.d.ts.map +1 -0
- package/daemon/dist/adapters/pi-recovery-rpc.js +94 -0
- package/daemon/dist/adapters/pi-recovery-rpc.js.map +1 -0
- package/daemon/dist/adapters/pi-runner-protocol.d.ts +6 -0
- package/daemon/dist/adapters/pi-runner-protocol.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner-protocol.js.map +1 -1
- package/daemon/dist/adapters/pi-runner.d.ts +77 -0
- package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner.js +644 -43
- package/daemon/dist/adapters/pi-runner.js.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts +6 -0
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.js +11 -0
- package/daemon/dist/adapters/pi-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/pi-runtime-recovery.d.ts +10 -0
- package/daemon/dist/adapters/pi-runtime-recovery.d.ts.map +1 -0
- package/daemon/dist/adapters/pi-runtime-recovery.js +82 -0
- package/daemon/dist/adapters/pi-runtime-recovery.js.map +1 -0
- package/daemon/dist/adapters/replace-file.d.ts +5 -2
- package/daemon/dist/adapters/replace-file.d.ts.map +1 -1
- package/daemon/dist/adapters/replace-file.js +6 -3
- package/daemon/dist/adapters/replace-file.js.map +1 -1
- package/daemon/dist/adapters/seat-slice.d.ts +19 -0
- package/daemon/dist/adapters/seat-slice.d.ts.map +1 -0
- package/daemon/dist/adapters/seat-slice.js +29 -0
- package/daemon/dist/adapters/seat-slice.js.map +1 -0
- package/daemon/dist/adapters/shell-quote.d.ts +1 -0
- package/daemon/dist/adapters/shell-quote.d.ts.map +1 -1
- package/daemon/dist/adapters/shell-quote.js +6 -0
- package/daemon/dist/adapters/shell-quote.js.map +1 -1
- package/daemon/dist/adapters/tmux-exec.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-exec.js +4 -2
- package/daemon/dist/adapters/tmux-exec.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +78 -13
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +361 -82
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/build-info.js +3 -3
- package/daemon/dist/daemon-shutdown.d.ts +8 -0
- package/daemon/dist/daemon-shutdown.d.ts.map +1 -1
- package/daemon/dist/daemon-shutdown.js +18 -2
- package/daemon/dist/daemon-shutdown.js.map +1 -1
- package/daemon/dist/db/all-migrations.d.ts.map +1 -1
- package/daemon/dist/db/all-migrations.js +24 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrate.d.ts +15 -1
- package/daemon/dist/db/migrate.d.ts.map +1 -1
- package/daemon/dist/db/migrate.js +41 -6
- package/daemon/dist/db/migrate.js.map +1 -1
- package/daemon/dist/db/migrations/179_remote_control_observations.d.ts +10 -0
- package/daemon/dist/db/migrations/179_remote_control_observations.d.ts.map +1 -0
- package/daemon/dist/db/migrations/179_remote_control_observations.js +20 -0
- package/daemon/dist/db/migrations/179_remote_control_observations.js.map +1 -0
- package/daemon/dist/db/migrations/180_session_stop_attempt.d.ts +5 -0
- package/daemon/dist/db/migrations/180_session_stop_attempt.d.ts.map +1 -0
- package/daemon/dist/db/migrations/180_session_stop_attempt.js +7 -0
- package/daemon/dist/db/migrations/180_session_stop_attempt.js.map +1 -0
- package/daemon/dist/db/migrations/181_node_keep_alive.d.ts +8 -0
- package/daemon/dist/db/migrations/181_node_keep_alive.d.ts.map +1 -0
- package/daemon/dist/db/migrations/181_node_keep_alive.js +26 -0
- package/daemon/dist/db/migrations/181_node_keep_alive.js.map +1 -0
- package/daemon/dist/db/migrations/182_queue_items_blocked_on_index.d.ts +7 -0
- package/daemon/dist/db/migrations/182_queue_items_blocked_on_index.d.ts.map +1 -0
- package/daemon/dist/db/migrations/182_queue_items_blocked_on_index.js +11 -0
- package/daemon/dist/db/migrations/182_queue_items_blocked_on_index.js.map +1 -0
- package/daemon/dist/db/migrations/183_queue_items_scan_indexes.d.ts +8 -0
- package/daemon/dist/db/migrations/183_queue_items_scan_indexes.d.ts.map +1 -0
- package/daemon/dist/db/migrations/183_queue_items_scan_indexes.js +13 -0
- package/daemon/dist/db/migrations/183_queue_items_scan_indexes.js.map +1 -0
- package/daemon/dist/db/migrations/184_network_requests.d.ts +11 -0
- package/daemon/dist/db/migrations/184_network_requests.d.ts.map +1 -0
- package/daemon/dist/db/migrations/184_network_requests.js +32 -0
- package/daemon/dist/db/migrations/184_network_requests.js.map +1 -0
- package/daemon/dist/db/migrations/185_seat_cold_starts.d.ts +9 -0
- package/daemon/dist/db/migrations/185_seat_cold_starts.d.ts.map +1 -0
- package/daemon/dist/db/migrations/185_seat_cold_starts.js +19 -0
- package/daemon/dist/db/migrations/185_seat_cold_starts.js.map +1 -0
- package/daemon/dist/db/migrations/186_queue_relayed_answers.d.ts +3 -0
- package/daemon/dist/db/migrations/186_queue_relayed_answers.d.ts.map +1 -0
- package/daemon/dist/db/migrations/186_queue_relayed_answers.js +5 -0
- package/daemon/dist/db/migrations/186_queue_relayed_answers.js.map +1 -0
- package/daemon/dist/db/migrations/189_rig_seat_slice.d.ts +5 -0
- package/daemon/dist/db/migrations/189_rig_seat_slice.d.ts.map +1 -0
- package/daemon/dist/db/migrations/189_rig_seat_slice.js +7 -0
- package/daemon/dist/db/migrations/189_rig_seat_slice.js.map +1 -0
- package/daemon/dist/db/migrations/190_queue_transfer_staging.d.ts +3 -0
- package/daemon/dist/db/migrations/190_queue_transfer_staging.d.ts.map +1 -0
- package/daemon/dist/db/migrations/190_queue_transfer_staging.js +20 -0
- package/daemon/dist/db/migrations/190_queue_transfer_staging.js.map +1 -0
- package/daemon/dist/db/migrations/191_network_binding_providers.d.ts +3 -0
- package/daemon/dist/db/migrations/191_network_binding_providers.d.ts.map +1 -0
- package/daemon/dist/db/migrations/191_network_binding_providers.js +27 -0
- package/daemon/dist/db/migrations/191_network_binding_providers.js.map +1 -0
- package/daemon/dist/db/migrations/194_workflow_run_title.d.ts +4 -0
- package/daemon/dist/db/migrations/194_workflow_run_title.d.ts.map +1 -0
- package/daemon/dist/db/migrations/194_workflow_run_title.js +6 -0
- package/daemon/dist/db/migrations/194_workflow_run_title.js.map +1 -0
- package/daemon/dist/domain/activity-taxonomy.d.ts +14 -0
- package/daemon/dist/domain/activity-taxonomy.d.ts.map +1 -1
- package/daemon/dist/domain/activity-taxonomy.js.map +1 -1
- package/daemon/dist/domain/agent-activity-store.d.ts +61 -0
- package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
- package/daemon/dist/domain/agent-activity-store.js +261 -48
- package/daemon/dist/domain/agent-activity-store.js.map +1 -1
- package/daemon/dist/domain/agent-manifest.d.ts.map +1 -1
- package/daemon/dist/domain/agent-manifest.js +6 -0
- package/daemon/dist/domain/agent-manifest.js.map +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.js +14 -3
- package/daemon/dist/domain/bootstrap-orchestrator.js.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts +58 -2
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.js +142 -9
- package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
- package/daemon/dist/domain/claude-continuation-launch.d.ts +3 -2
- package/daemon/dist/domain/claude-continuation-launch.d.ts.map +1 -1
- package/daemon/dist/domain/claude-continuation-launch.js +12 -11
- package/daemon/dist/domain/claude-continuation-launch.js.map +1 -1
- package/daemon/dist/domain/codex-thread-id.d.ts +20 -2
- package/daemon/dist/domain/codex-thread-id.d.ts.map +1 -1
- package/daemon/dist/domain/codex-thread-id.js +69 -4
- package/daemon/dist/domain/codex-thread-id.js.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts +14 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.js +174 -19
- package/daemon/dist/domain/compaction-restore-notice.js.map +1 -1
- package/daemon/dist/domain/context-packs/seat-recap-store.d.ts.map +1 -1
- package/daemon/dist/domain/context-packs/seat-recap-store.js +20 -3
- package/daemon/dist/domain/context-packs/seat-recap-store.js.map +1 -1
- package/daemon/dist/domain/continuity-policy-materializer.d.ts.map +1 -1
- package/daemon/dist/domain/continuity-policy-materializer.js +11 -3
- package/daemon/dist/domain/continuity-policy-materializer.js.map +1 -1
- package/daemon/dist/domain/core-app-job.d.ts +4 -4
- package/daemon/dist/domain/core-app-job.d.ts.map +1 -1
- package/daemon/dist/domain/core-app-job.js +4 -59
- package/daemon/dist/domain/core-app-job.js.map +1 -1
- package/daemon/dist/domain/current-work.d.ts +12 -0
- package/daemon/dist/domain/current-work.d.ts.map +1 -1
- package/daemon/dist/domain/current-work.js +4 -0
- package/daemon/dist/domain/current-work.js.map +1 -1
- package/daemon/dist/domain/escalation-owner.d.ts +3 -0
- package/daemon/dist/domain/escalation-owner.d.ts.map +1 -1
- package/daemon/dist/domain/escalation-owner.js +9 -3
- package/daemon/dist/domain/escalation-owner.js.map +1 -1
- package/daemon/dist/domain/execution-candidate-reader.d.ts +3 -0
- package/daemon/dist/domain/execution-candidate-reader.d.ts.map +1 -1
- package/daemon/dist/domain/execution-candidate-reader.js +8 -2
- package/daemon/dist/domain/execution-candidate-reader.js.map +1 -1
- package/daemon/dist/domain/existing-rig-restore.d.ts +2 -0
- package/daemon/dist/domain/existing-rig-restore.d.ts.map +1 -1
- package/daemon/dist/domain/existing-rig-restore.js +11 -1
- package/daemon/dist/domain/existing-rig-restore.js.map +1 -1
- package/daemon/dist/domain/expected-conversation.js +2 -2
- package/daemon/dist/domain/expected-conversation.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.d.ts +3 -1
- package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.js +56 -11
- package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.d.ts +1 -4
- package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.js +17 -5
- package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/notice-content-dedup.d.ts +23 -0
- package/daemon/dist/domain/gateway/slack/notice-content-dedup.d.ts.map +1 -0
- package/daemon/dist/domain/gateway/slack/notice-content-dedup.js +87 -0
- package/daemon/dist/domain/gateway/slack/notice-content-dedup.js.map +1 -0
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts +7 -1
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.js +1 -0
- package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/settled-asks.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/settled-asks.js +17 -3
- package/daemon/dist/domain/gateway/slack/settled-asks.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +0 -17
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.js +10 -40
- package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts +3 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js +21 -7
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
- package/daemon/dist/domain/harness-not-started-notice.d.ts +5 -2
- package/daemon/dist/domain/harness-not-started-notice.d.ts.map +1 -1
- package/daemon/dist/domain/harness-not-started-notice.js +46 -15
- package/daemon/dist/domain/harness-not-started-notice.js.map +1 -1
- package/daemon/dist/domain/health-passive-ceremony.d.ts.map +1 -1
- package/daemon/dist/domain/health-passive-ceremony.js +3 -2
- package/daemon/dist/domain/health-passive-ceremony.js.map +1 -1
- package/daemon/dist/domain/hosts/read-through.d.ts +1 -1
- package/daemon/dist/domain/hosts/read-through.d.ts.map +1 -1
- package/daemon/dist/domain/hosts/read-through.js +3 -2
- package/daemon/dist/domain/hosts/read-through.js.map +1 -1
- package/daemon/dist/domain/hosts/remote-daemon-http.d.ts +2 -0
- package/daemon/dist/domain/hosts/remote-daemon-http.d.ts.map +1 -1
- package/daemon/dist/domain/hosts/remote-daemon-http.js +1 -1
- package/daemon/dist/domain/hosts/remote-daemon-http.js.map +1 -1
- package/daemon/dist/domain/hot-potato-enforcer.d.ts +3 -3
- package/daemon/dist/domain/hot-potato-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/hot-potato-enforcer.js +2 -2
- package/daemon/dist/domain/hot-potato-enforcer.js.map +1 -1
- package/daemon/dist/domain/human-questions.d.ts +1 -1
- package/daemon/dist/domain/human-questions.d.ts.map +1 -1
- package/daemon/dist/domain/human-questions.js +2 -0
- package/daemon/dist/domain/human-questions.js.map +1 -1
- package/daemon/dist/domain/input-read-diagnostic.js +1 -1
- package/daemon/dist/domain/input-read-diagnostic.js.map +1 -1
- package/daemon/dist/domain/install-planner.d.ts +8 -0
- package/daemon/dist/domain/install-planner.d.ts.map +1 -1
- package/daemon/dist/domain/install-planner.js +26 -6
- package/daemon/dist/domain/install-planner.js.map +1 -1
- package/daemon/dist/domain/keep-alive-supervisor.d.ts +178 -0
- package/daemon/dist/domain/keep-alive-supervisor.d.ts.map +1 -0
- package/daemon/dist/domain/keep-alive-supervisor.js +523 -0
- package/daemon/dist/domain/keep-alive-supervisor.js.map +1 -0
- package/daemon/dist/domain/mission-control/mission-control-fleet-cli-capability.d.ts +6 -0
- package/daemon/dist/domain/mission-control/mission-control-fleet-cli-capability.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-fleet-cli-capability.js +39 -9
- package/daemon/dist/domain/mission-control/mission-control-fleet-cli-capability.js.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js +29 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
- package/daemon/dist/domain/model-divergence/current-generation-record.d.ts +4 -1
- package/daemon/dist/domain/model-divergence/current-generation-record.d.ts.map +1 -1
- package/daemon/dist/domain/model-divergence/current-generation-record.js +18 -2
- package/daemon/dist/domain/model-divergence/current-generation-record.js.map +1 -1
- package/daemon/dist/domain/mutation-trace.d.ts +28 -0
- package/daemon/dist/domain/mutation-trace.d.ts.map +1 -0
- package/daemon/dist/domain/mutation-trace.js +38 -0
- package/daemon/dist/domain/mutation-trace.js.map +1 -0
- package/daemon/dist/domain/native-resume-probe.d.ts +13 -3
- package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +54 -17
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/network/hub-client.d.ts +30 -1
- package/daemon/dist/domain/network/hub-client.d.ts.map +1 -1
- package/daemon/dist/domain/network/hub-client.js +62 -9
- package/daemon/dist/domain/network/hub-client.js.map +1 -1
- package/daemon/dist/domain/network/network-bindings.d.ts +52 -2
- package/daemon/dist/domain/network/network-bindings.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-bindings.js +217 -23
- package/daemon/dist/domain/network/network-bindings.js.map +1 -1
- package/daemon/dist/domain/network/network-connector.d.ts +9 -1
- package/daemon/dist/domain/network/network-connector.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-connector.js +95 -7
- package/daemon/dist/domain/network/network-connector.js.map +1 -1
- package/daemon/dist/domain/network/network-installations.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-installations.js +22 -7
- package/daemon/dist/domain/network/network-installations.js.map +1 -1
- package/daemon/dist/domain/network/network-provider-removal.d.ts +9 -0
- package/daemon/dist/domain/network/network-provider-removal.d.ts.map +1 -0
- package/daemon/dist/domain/network/network-provider-removal.js +75 -0
- package/daemon/dist/domain/network/network-provider-removal.js.map +1 -0
- package/daemon/dist/domain/network/network-requests.d.ts +59 -0
- package/daemon/dist/domain/network/network-requests.d.ts.map +1 -0
- package/daemon/dist/domain/network/network-requests.js +476 -0
- package/daemon/dist/domain/network/network-requests.js.map +1 -0
- package/daemon/dist/domain/node-inventory.d.ts +26 -0
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +93 -9
- package/daemon/dist/domain/node-inventory.js.map +1 -1
- package/daemon/dist/domain/occupant-invalidator.d.ts +1 -1
- package/daemon/dist/domain/occupant-invalidator.d.ts.map +1 -1
- package/daemon/dist/domain/occupant-invalidator.js +1 -1
- package/daemon/dist/domain/occupant-invalidator.js.map +1 -1
- package/daemon/dist/domain/outbox-handler.d.ts +11 -0
- package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
- package/daemon/dist/domain/outbox-handler.js +20 -0
- package/daemon/dist/domain/outbox-handler.js.map +1 -1
- package/daemon/dist/domain/package-install-service.d.ts +1 -0
- package/daemon/dist/domain/package-install-service.d.ts.map +1 -1
- package/daemon/dist/domain/package-install-service.js +1 -0
- package/daemon/dist/domain/package-install-service.js.map +1 -1
- package/daemon/dist/domain/parked-owner-escalation.d.ts +16 -0
- package/daemon/dist/domain/parked-owner-escalation.d.ts.map +1 -0
- package/daemon/dist/domain/parked-owner-escalation.js +53 -0
- package/daemon/dist/domain/parked-owner-escalation.js.map +1 -0
- package/daemon/dist/domain/parked-query.d.ts +6 -0
- package/daemon/dist/domain/parked-query.d.ts.map +1 -1
- package/daemon/dist/domain/parked-query.js +20 -7
- package/daemon/dist/domain/parked-query.js.map +1 -1
- package/daemon/dist/domain/permission-stop-observation.d.ts +8 -1
- package/daemon/dist/domain/permission-stop-observation.d.ts.map +1 -1
- package/daemon/dist/domain/permission-stop-observation.js +19 -2
- package/daemon/dist/domain/permission-stop-observation.js.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts +13 -0
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js +24 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
- package/daemon/dist/domain/policies/seat-pool.d.ts +15 -1
- package/daemon/dist/domain/policies/seat-pool.d.ts.map +1 -1
- package/daemon/dist/domain/policies/seat-pool.js +31 -8
- package/daemon/dist/domain/policies/seat-pool.js.map +1 -1
- package/daemon/dist/domain/process-census.d.ts +5 -1
- package/daemon/dist/domain/process-census.d.ts.map +1 -1
- package/daemon/dist/domain/process-census.js +20 -11
- package/daemon/dist/domain/process-census.js.map +1 -1
- package/daemon/dist/domain/profile-resolver.d.ts +7 -1
- package/daemon/dist/domain/profile-resolver.d.ts.map +1 -1
- package/daemon/dist/domain/profile-resolver.js +7 -0
- package/daemon/dist/domain/profile-resolver.js.map +1 -1
- package/daemon/dist/domain/progress/progress-indexer.d.ts.map +1 -1
- package/daemon/dist/domain/progress/progress-indexer.js +11 -0
- package/daemon/dist/domain/progress/progress-indexer.js.map +1 -1
- package/daemon/dist/domain/project-lifecycle-compiler.d.ts.map +1 -1
- package/daemon/dist/domain/project-lifecycle-compiler.js +4 -1
- package/daemon/dist/domain/project-lifecycle-compiler.js.map +1 -1
- package/daemon/dist/domain/proof/judgments.d.ts +10 -0
- package/daemon/dist/domain/proof/judgments.d.ts.map +1 -1
- package/daemon/dist/domain/proof/judgments.js +31 -11
- package/daemon/dist/domain/proof/judgments.js.map +1 -1
- package/daemon/dist/domain/proof/source-watch.js +4 -4
- package/daemon/dist/domain/proof/source-watch.js.map +1 -1
- package/daemon/dist/domain/provider/claude-interruption.d.ts +6 -0
- package/daemon/dist/domain/provider/claude-interruption.d.ts.map +1 -1
- package/daemon/dist/domain/provider/claude-interruption.js +18 -0
- package/daemon/dist/domain/provider/claude-interruption.js.map +1 -1
- package/daemon/dist/domain/provider/codex-limit-banner.d.ts +17 -1
- package/daemon/dist/domain/provider/codex-limit-banner.d.ts.map +1 -1
- package/daemon/dist/domain/provider/codex-limit-banner.js +38 -5
- package/daemon/dist/domain/provider/codex-limit-banner.js.map +1 -1
- package/daemon/dist/domain/ps-projection.d.ts +17 -1
- package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
- package/daemon/dist/domain/ps-projection.js +41 -6
- package/daemon/dist/domain/ps-projection.js.map +1 -1
- package/daemon/dist/domain/queue-erasure.d.ts +3 -0
- package/daemon/dist/domain/queue-erasure.d.ts.map +1 -1
- package/daemon/dist/domain/queue-erasure.js +2 -2
- package/daemon/dist/domain/queue-erasure.js.map +1 -1
- package/daemon/dist/domain/queue-owner.d.ts +5 -0
- package/daemon/dist/domain/queue-owner.d.ts.map +1 -1
- package/daemon/dist/domain/queue-owner.js +16 -8
- package/daemon/dist/domain/queue-owner.js.map +1 -1
- package/daemon/dist/domain/queue-read-wait.d.ts +12 -0
- package/daemon/dist/domain/queue-read-wait.d.ts.map +1 -0
- package/daemon/dist/domain/queue-read-wait.js +43 -0
- package/daemon/dist/domain/queue-read-wait.js.map +1 -0
- package/daemon/dist/domain/queue-recorded-graph.d.ts +32 -0
- package/daemon/dist/domain/queue-recorded-graph.d.ts.map +1 -0
- package/daemon/dist/domain/queue-recorded-graph.js +84 -0
- package/daemon/dist/domain/queue-recorded-graph.js.map +1 -0
- package/daemon/dist/domain/queue-repository.d.ts +143 -8
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +689 -59
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-retention.d.ts +1 -1
- package/daemon/dist/domain/queue-retention.d.ts.map +1 -1
- package/daemon/dist/domain/queue-retention.js +4 -0
- package/daemon/dist/domain/queue-retention.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts +10 -4
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +169 -21
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/queue-transfer-export.d.ts +75 -0
- package/daemon/dist/domain/queue-transfer-export.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-export.js +156 -0
- package/daemon/dist/domain/queue-transfer-export.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-format.d.ts +15 -0
- package/daemon/dist/domain/queue-transfer-format.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-format.js +32 -0
- package/daemon/dist/domain/queue-transfer-format.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-parse.d.ts +40 -0
- package/daemon/dist/domain/queue-transfer-parse.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-parse.js +131 -0
- package/daemon/dist/domain/queue-transfer-parse.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-review.d.ts +22 -0
- package/daemon/dist/domain/queue-transfer-review.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-review.js +81 -0
- package/daemon/dist/domain/queue-transfer-review.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-staging.d.ts +79 -0
- package/daemon/dist/domain/queue-transfer-staging.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-staging.js +67 -0
- package/daemon/dist/domain/queue-transfer-staging.js.map +1 -0
- package/daemon/dist/domain/queue-transition-log.js +3 -3
- package/daemon/dist/domain/queue-wake-ladder.d.ts +20 -3
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +299 -41
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/reconciler.d.ts +27 -2
- package/daemon/dist/domain/reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/reconciler.js +184 -16
- package/daemon/dist/domain/reconciler.js.map +1 -1
- package/daemon/dist/domain/refusal-trace.d.ts +15 -0
- package/daemon/dist/domain/refusal-trace.d.ts.map +1 -0
- package/daemon/dist/domain/refusal-trace.js +23 -0
- package/daemon/dist/domain/refusal-trace.js.map +1 -0
- package/daemon/dist/domain/relayed-answers.d.ts +80 -0
- package/daemon/dist/domain/relayed-answers.d.ts.map +1 -0
- package/daemon/dist/domain/relayed-answers.js +8 -0
- package/daemon/dist/domain/relayed-answers.js.map +1 -0
- package/daemon/dist/domain/remote-control-observations.d.ts +50 -0
- package/daemon/dist/domain/remote-control-observations.d.ts.map +1 -0
- package/daemon/dist/domain/remote-control-observations.js +72 -0
- package/daemon/dist/domain/remote-control-observations.js.map +1 -0
- package/daemon/dist/domain/restore-attempt-receipt.d.ts.map +1 -1
- package/daemon/dist/domain/restore-attempt-receipt.js +8 -2
- package/daemon/dist/domain/restore-attempt-receipt.js.map +1 -1
- package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
- package/daemon/dist/domain/restore-check-service.js +3 -2
- package/daemon/dist/domain/restore-check-service.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +70 -14
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +429 -107
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/return-route.d.ts +9 -2
- package/daemon/dist/domain/return-route.d.ts.map +1 -1
- package/daemon/dist/domain/return-route.js +22 -1
- package/daemon/dist/domain/return-route.js.map +1 -1
- package/daemon/dist/domain/rig-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/rig-lifecycle-service.js +4 -1
- package/daemon/dist/domain/rig-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/rig-repository.d.ts +38 -3
- package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
- package/daemon/dist/domain/rig-repository.js +95 -3
- package/daemon/dist/domain/rig-repository.js.map +1 -1
- package/daemon/dist/domain/rig-teardown.d.ts +22 -7
- package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
- package/daemon/dist/domain/rig-teardown.js +108 -24
- package/daemon/dist/domain/rig-teardown.js.map +1 -1
- package/daemon/dist/domain/rigspec-codec.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-codec.js +12 -0
- package/daemon/dist/domain/rigspec-codec.js.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.d.ts +14 -0
- package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.js +56 -14
- package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts +32 -3
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +135 -29
- package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/daemon/dist/domain/rigspec-preflight.d.ts +4 -1
- package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-preflight.js +9 -1
- package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
- package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-schema.js +30 -4
- package/daemon/dist/domain/rigspec-schema.js.map +1 -1
- package/daemon/dist/domain/rosters.d.ts +1 -0
- package/daemon/dist/domain/rosters.d.ts.map +1 -1
- package/daemon/dist/domain/rosters.js +5 -4
- package/daemon/dist/domain/rosters.js.map +1 -1
- package/daemon/dist/domain/runtime-adapter.d.ts +2 -0
- package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-recovery.d.ts +41 -0
- package/daemon/dist/domain/runtime-recovery.d.ts.map +1 -0
- package/daemon/dist/domain/runtime-recovery.js +2 -0
- package/daemon/dist/domain/runtime-recovery.js.map +1 -0
- package/daemon/dist/domain/seat-activity-service.d.ts +37 -1
- package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-activity-service.js +160 -7
- package/daemon/dist/domain/seat-activity-service.js.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.d.ts +7 -0
- package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.js +149 -65
- package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-cold-start.d.ts +150 -0
- package/daemon/dist/domain/seat-cold-start.d.ts.map +1 -0
- package/daemon/dist/domain/seat-cold-start.js +371 -0
- package/daemon/dist/domain/seat-cold-start.js.map +1 -0
- package/daemon/dist/domain/seat-delivery-guard.d.ts +11 -2
- package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.js +34 -6
- package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.d.ts +43 -0
- package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.js +109 -23
- package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-identity-store.d.ts +5 -3
- package/daemon/dist/domain/seat-identity-store.d.ts.map +1 -1
- package/daemon/dist/domain/seat-identity-store.js +7 -3
- package/daemon/dist/domain/seat-identity-store.js.map +1 -1
- package/daemon/dist/domain/seat-launch-environment.d.ts +2 -0
- package/daemon/dist/domain/seat-launch-environment.d.ts.map +1 -1
- package/daemon/dist/domain/seat-launch-environment.js +9 -1
- package/daemon/dist/domain/seat-launch-environment.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +17 -0
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +180 -23
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/seat-pool-executor.d.ts +116 -0
- package/daemon/dist/domain/seat-pool-executor.d.ts.map +1 -0
- package/daemon/dist/domain/seat-pool-executor.js +565 -0
- package/daemon/dist/domain/seat-pool-executor.js.map +1 -0
- package/daemon/dist/domain/seat-pool-registration.d.ts +93 -0
- package/daemon/dist/domain/seat-pool-registration.d.ts.map +1 -0
- package/daemon/dist/domain/seat-pool-registration.js +149 -0
- package/daemon/dist/domain/seat-pool-registration.js.map +1 -0
- package/daemon/dist/domain/seat-pool-slots.d.ts +42 -0
- package/daemon/dist/domain/seat-pool-slots.d.ts.map +1 -1
- package/daemon/dist/domain/seat-pool-slots.js +51 -0
- package/daemon/dist/domain/seat-pool-slots.js.map +1 -1
- package/daemon/dist/domain/seat-pool-spec.d.ts +10 -0
- package/daemon/dist/domain/seat-pool-spec.d.ts.map +1 -1
- package/daemon/dist/domain/seat-pool-spec.js +22 -2
- package/daemon/dist/domain/seat-pool-spec.js.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.d.ts +17 -0
- package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.js +57 -4
- package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-home-record.d.ts +8 -0
- package/daemon/dist/domain/seat-runtime-home-record.d.ts.map +1 -1
- package/daemon/dist/domain/seat-runtime-home-record.js +1 -1
- package/daemon/dist/domain/seat-runtime-home-record.js.map +1 -1
- package/daemon/dist/domain/session-registry.d.ts +25 -3
- package/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.js +47 -6
- package/daemon/dist/domain/session-registry.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +28 -1
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +80 -33
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.d.ts +59 -0
- package/daemon/dist/domain/slices/slice-indexer.d.ts.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.js +288 -63
- package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
- package/daemon/dist/domain/slow-op-recorder.d.ts +3 -1
- package/daemon/dist/domain/slow-op-recorder.d.ts.map +1 -1
- package/daemon/dist/domain/slow-op-recorder.js +7 -1
- package/daemon/dist/domain/slow-op-recorder.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +75 -23
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/startup-proof.d.ts +6 -0
- package/daemon/dist/domain/startup-proof.d.ts.map +1 -1
- package/daemon/dist/domain/startup-proof.js +11 -0
- package/daemon/dist/domain/startup-proof.js.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.d.ts +2 -0
- package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.js +31 -3
- package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
- package/daemon/dist/domain/stream-intake.d.ts +10 -1
- package/daemon/dist/domain/stream-intake.d.ts.map +1 -1
- package/daemon/dist/domain/stream-intake.js +27 -0
- package/daemon/dist/domain/stream-intake.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts +7 -0
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.js +5 -3
- package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-follow-view.d.ts +13 -0
- package/daemon/dist/domain/terminal/herdr-follow-view.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-follow-view.js +126 -3
- package/daemon/dist/domain/terminal/herdr-follow-view.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-viewer.d.ts +10 -0
- package/daemon/dist/domain/terminal/herdr-viewer.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-viewer.js +38 -12
- package/daemon/dist/domain/terminal/herdr-viewer.js.map +1 -1
- package/daemon/dist/domain/terminal/scope-task-terminal-view.d.ts +2 -1
- package/daemon/dist/domain/terminal/scope-task-terminal-view.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/scope-task-terminal-view.js +80 -38
- package/daemon/dist/domain/terminal/scope-task-terminal-view.js.map +1 -1
- package/daemon/dist/domain/terminal/terminal-provider.d.ts +2 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.d.ts +3 -0
- package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.js +30 -26
- package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
- package/daemon/dist/domain/terminal/tile-attach.d.ts +22 -0
- package/daemon/dist/domain/terminal/tile-attach.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/tile-attach.js +71 -0
- package/daemon/dist/domain/terminal/tile-attach.js.map +1 -1
- package/daemon/dist/domain/terminal/view-composer.d.ts +2 -0
- package/daemon/dist/domain/terminal/view-composer.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/view-composer.js +4 -2
- package/daemon/dist/domain/terminal/view-composer.js.map +1 -1
- package/daemon/dist/domain/terminal-server-reachability.d.ts +14 -7
- package/daemon/dist/domain/terminal-server-reachability.d.ts.map +1 -1
- package/daemon/dist/domain/terminal-server-reachability.js +29 -11
- package/daemon/dist/domain/terminal-server-reachability.js.map +1 -1
- package/daemon/dist/domain/terminal-server-seats.d.ts +1 -1
- package/daemon/dist/domain/terminal-server-seats.d.ts.map +1 -1
- package/daemon/dist/domain/terminal-server-seats.js +4 -1
- package/daemon/dist/domain/terminal-server-seats.js.map +1 -1
- package/daemon/dist/domain/topology/remote-up-leaf.d.ts.map +1 -1
- package/daemon/dist/domain/topology/remote-up-leaf.js +41 -2
- package/daemon/dist/domain/topology/remote-up-leaf.js.map +1 -1
- package/daemon/dist/domain/topology-trace.d.ts +40 -0
- package/daemon/dist/domain/topology-trace.d.ts.map +1 -0
- package/daemon/dist/domain/topology-trace.js +106 -0
- package/daemon/dist/domain/topology-trace.js.map +1 -0
- package/daemon/dist/domain/transcript-store.d.ts.map +1 -1
- package/daemon/dist/domain/transcript-store.js +12 -1
- package/daemon/dist/domain/transcript-store.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +111 -14
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js +3 -2
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.js +6 -2
- package/daemon/dist/domain/user-settings/settings-browser.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts +1 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.js +26 -0
- package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts +11 -3
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-jobs-repository.js +23 -1
- package/daemon/dist/domain/watchdog-jobs-repository.js.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.d.ts +35 -1
- package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.js +99 -23
- package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
- package/daemon/dist/domain/workflow-instance-store.d.ts +2 -0
- package/daemon/dist/domain/workflow-instance-store.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-instance-store.js +11 -2
- package/daemon/dist/domain/workflow-instance-store.js.map +1 -1
- package/daemon/dist/domain/workflow-projector.d.ts +3 -1
- package/daemon/dist/domain/workflow-projector.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-projector.js +58 -10
- package/daemon/dist/domain/workflow-projector.js.map +1 -1
- package/daemon/dist/domain/workflow-run-title.d.ts +4 -0
- package/daemon/dist/domain/workflow-run-title.d.ts.map +1 -0
- package/daemon/dist/domain/workflow-run-title.js +5 -0
- package/daemon/dist/domain/workflow-run-title.js.map +1 -0
- package/daemon/dist/domain/workflow-runtime.d.ts +4 -0
- package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-runtime.js +45 -14
- package/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/daemon/dist/domain/workflow-spec-cache.d.ts +2 -2
- package/daemon/dist/domain/workflow-spec-cache.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-spec-cache.js +20 -1
- package/daemon/dist/domain/workflow-spec-cache.js.map +1 -1
- package/daemon/dist/domain/workflow-types.d.ts +15 -0
- package/daemon/dist/domain/workflow-types.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-types.js +4 -0
- package/daemon/dist/domain/workflow-types.js.map +1 -1
- package/daemon/dist/domain/workspace/project-catalog.d.ts +7 -0
- package/daemon/dist/domain/workspace/project-catalog.d.ts.map +1 -1
- package/daemon/dist/domain/workspace/project-catalog.js +20 -3
- package/daemon/dist/domain/workspace/project-catalog.js.map +1 -1
- package/daemon/dist/domain/workspace/project-read.d.ts +12 -0
- package/daemon/dist/domain/workspace/project-read.d.ts.map +1 -1
- package/daemon/dist/domain/workspace/project-read.js +37 -5
- package/daemon/dist/domain/workspace/project-read.js.map +1 -1
- package/daemon/dist/index.d.ts +2 -2
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +40 -4
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/queue-transfer-export-surface.d.ts +33 -0
- package/daemon/dist/queue-transfer-export-surface.d.ts.map +1 -0
- package/daemon/dist/queue-transfer-export-surface.js +13 -0
- package/daemon/dist/queue-transfer-export-surface.js.map +1 -0
- package/daemon/dist/queue-transfer-staging-surface.d.ts +86 -0
- package/daemon/dist/queue-transfer-staging-surface.d.ts.map +1 -0
- package/daemon/dist/queue-transfer-staging-surface.js +91 -0
- package/daemon/dist/queue-transfer-staging-surface.js.map +1 -0
- package/daemon/dist/routes/activity.d.ts +9 -1
- package/daemon/dist/routes/activity.d.ts.map +1 -1
- package/daemon/dist/routes/activity.js +79 -3
- package/daemon/dist/routes/activity.js.map +1 -1
- package/daemon/dist/routes/compaction.d.ts.map +1 -1
- package/daemon/dist/routes/compaction.js +7 -2
- package/daemon/dist/routes/compaction.js.map +1 -1
- package/daemon/dist/routes/context-packs.d.ts.map +1 -1
- package/daemon/dist/routes/context-packs.js +23 -1
- package/daemon/dist/routes/context-packs.js.map +1 -1
- package/daemon/dist/routes/events.js +7 -4
- package/daemon/dist/routes/events.js.map +1 -1
- package/daemon/dist/routes/missions.js +4 -4
- package/daemon/dist/routes/missions.js.map +1 -1
- package/daemon/dist/routes/network.d.ts +2 -0
- package/daemon/dist/routes/network.d.ts.map +1 -1
- package/daemon/dist/routes/network.js +62 -1
- package/daemon/dist/routes/network.js.map +1 -1
- package/daemon/dist/routes/packages.js +2 -0
- package/daemon/dist/routes/packages.js.map +1 -1
- package/daemon/dist/routes/ps.js +13 -2
- package/daemon/dist/routes/ps.js.map +1 -1
- package/daemon/dist/routes/queue.d.ts +22 -1
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +250 -69
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/require-sender-identity.d.ts.map +1 -1
- package/daemon/dist/routes/require-sender-identity.js +6 -3
- package/daemon/dist/routes/require-sender-identity.js.map +1 -1
- package/daemon/dist/routes/rigs.js +2 -0
- package/daemon/dist/routes/rigs.js.map +1 -1
- package/daemon/dist/routes/seat.d.ts.map +1 -1
- package/daemon/dist/routes/seat.js +12 -5
- package/daemon/dist/routes/seat.js.map +1 -1
- package/daemon/dist/routes/sessions.d.ts.map +1 -1
- package/daemon/dist/routes/sessions.js +16 -2
- package/daemon/dist/routes/sessions.js.map +1 -1
- package/daemon/dist/routes/slices.d.ts.map +1 -1
- package/daemon/dist/routes/slices.js +16 -7
- package/daemon/dist/routes/slices.js.map +1 -1
- package/daemon/dist/routes/startup.d.ts.map +1 -1
- package/daemon/dist/routes/startup.js +49 -4
- package/daemon/dist/routes/startup.js.map +1 -1
- package/daemon/dist/routes/stream.d.ts.map +1 -1
- package/daemon/dist/routes/stream.js +9 -0
- package/daemon/dist/routes/stream.js.map +1 -1
- package/daemon/dist/routes/terminal-ws.js +28 -2
- package/daemon/dist/routes/terminal-ws.js.map +1 -1
- package/daemon/dist/routes/terminal.d.ts.map +1 -1
- package/daemon/dist/routes/terminal.js +3 -2
- package/daemon/dist/routes/terminal.js.map +1 -1
- package/daemon/dist/routes/transport.d.ts.map +1 -1
- package/daemon/dist/routes/transport.js +14 -2
- package/daemon/dist/routes/transport.js.map +1 -1
- package/daemon/dist/routes/up.js +2 -0
- package/daemon/dist/routes/up.js.map +1 -1
- package/daemon/dist/routes/watchdog.d.ts +1 -1
- package/daemon/dist/routes/watchdog.d.ts.map +1 -1
- package/daemon/dist/routes/watchdog.js +7 -2
- package/daemon/dist/routes/watchdog.js.map +1 -1
- package/daemon/dist/routes/workflow.d.ts.map +1 -1
- package/daemon/dist/routes/workflow.js +9 -3
- package/daemon/dist/routes/workflow.js.map +1 -1
- package/daemon/dist/server.d.ts +7 -0
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +8 -0
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts +3 -0
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +226 -17
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/dist/terminal/TerminalSessionBroker.d.ts +10 -0
- package/daemon/dist/terminal/TerminalSessionBroker.d.ts.map +1 -1
- package/daemon/dist/terminal/TerminalSessionBroker.js +63 -4
- package/daemon/dist/terminal/TerminalSessionBroker.js.map +1 -1
- package/daemon/dist/tmux-server-start.d.ts +18 -0
- package/daemon/dist/tmux-server-start.d.ts.map +1 -1
- package/daemon/dist/tmux-server-start.js +29 -0
- package/daemon/dist/tmux-server-start.js.map +1 -1
- package/daemon/dist/topology-trace-surface.d.ts +2 -0
- package/daemon/dist/topology-trace-surface.d.ts.map +1 -0
- package/daemon/dist/topology-trace-surface.js +2 -0
- package/daemon/dist/topology-trace-surface.js.map +1 -0
- package/daemon/docs/reference/acp-agents.md +2 -1
- package/daemon/docs/reference/agent-spec.md +3 -1
- package/daemon/docs/reference/agent-startup-guide.md +3 -1
- package/daemon/docs/reference/agent-state-taxonomy.md +39 -1
- package/daemon/docs/reference/author-contracts.md +4 -0
- package/daemon/docs/reference/checked-seat-stop.md +11 -1
- package/daemon/docs/reference/claude-status-line.md +7 -0
- package/daemon/docs/reference/community-harness-examples/agy/agy-plain.yaml +28 -0
- package/daemon/docs/reference/community-harness-examples/agy/agy.yaml +27 -0
- package/daemon/docs/reference/community-harness-examples/agy/openrig-agy-launch +81 -0
- package/daemon/docs/reference/community-harness-examples/agy/openrig-agy-runner.mjs +667 -0
- package/daemon/docs/reference/community-harness-presets.md +78 -0
- package/daemon/docs/reference/daemon-http-clients.md +133 -20
- package/daemon/docs/reference/gateway-participants.md +6 -0
- package/daemon/docs/reference/getting-started.md +129 -13
- package/daemon/docs/reference/harness-runner-contract.md +7 -5
- package/daemon/docs/reference/help.md +12 -0
- package/daemon/docs/reference/hosted-members.md +163 -2
- package/daemon/docs/reference/inventory-request-diagnostics.md +22 -0
- package/daemon/docs/reference/network-connector.md +112 -4
- package/daemon/docs/reference/project-workspace.md +19 -2
- package/daemon/docs/reference/queue-erasure.md +1 -1
- package/daemon/docs/reference/queue-transfer-export.md +38 -0
- package/daemon/docs/reference/queue-transfer-staging.md +39 -0
- package/daemon/docs/reference/quickstart.md +4 -4
- package/daemon/docs/reference/refocus-channel.md +5 -2
- package/daemon/docs/reference/rig-bundle.md +1 -1
- package/daemon/docs/reference/rig-spec.md +210 -7
- package/daemon/docs/reference/rosters.md +18 -3
- package/daemon/docs/reference/sdlc-conventions.md +6 -2
- package/daemon/docs/reference/seat-delivery.md +41 -7
- package/daemon/docs/reference/seat-pools.md +116 -0
- package/daemon/docs/reference/terminal-sessions.md +57 -11
- package/daemon/docs/reference/tmux-servers.md +46 -2
- package/daemon/docs/reference/whats-new.md +167 -5
- package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +1 -1
- package/dist/build-info.js +3 -3
- package/dist/bundle-behaviour.d.ts +1 -1
- package/dist/client.d.ts +2 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +3 -2
- package/dist/client.js.map +1 -1
- package/dist/commands/broadcast.d.ts.map +1 -1
- package/dist/commands/broadcast.js +89 -8
- package/dist/commands/broadcast.js.map +1 -1
- package/dist/commands/bundle.js +1 -1
- package/dist/commands/bundle.js.map +1 -1
- package/dist/commands/chatroom.d.ts +3 -0
- package/dist/commands/chatroom.d.ts.map +1 -1
- package/dist/commands/chatroom.js +9 -2
- package/dist/commands/chatroom.js.map +1 -1
- package/dist/commands/config-init-workspace.d.ts +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +4 -2
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/daemon.d.ts.map +1 -1
- package/dist/commands/daemon.js +24 -19
- package/dist/commands/daemon.js.map +1 -1
- package/dist/commands/exec.d.ts.map +1 -1
- package/dist/commands/exec.js +22 -13
- package/dist/commands/exec.js.map +1 -1
- package/dist/commands/export.d.ts.map +1 -1
- package/dist/commands/export.js +5 -1
- package/dist/commands/export.js.map +1 -1
- package/dist/commands/gateway.d.ts +4 -0
- package/dist/commands/gateway.d.ts.map +1 -1
- package/dist/commands/gateway.js +37 -0
- package/dist/commands/gateway.js.map +1 -1
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/mcp.js +4 -2
- package/dist/commands/mcp.js.map +1 -1
- package/dist/commands/network.d.ts.map +1 -1
- package/dist/commands/network.js +54 -1
- package/dist/commands/network.js.map +1 -1
- package/dist/commands/package.d.ts.map +1 -1
- package/dist/commands/package.js +10 -0
- package/dist/commands/package.js.map +1 -1
- package/dist/commands/parked.d.ts.map +1 -1
- package/dist/commands/parked.js +12 -6
- package/dist/commands/parked.js.map +1 -1
- package/dist/commands/project-jev.d.ts +1 -1
- package/dist/commands/project-worker.d.ts +3 -3
- package/dist/commands/provider.d.ts.map +1 -1
- package/dist/commands/provider.js +3 -2
- package/dist/commands/provider.js.map +1 -1
- package/dist/commands/ps.d.ts +12 -1
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +43 -10
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue-export.d.ts +3 -0
- package/dist/commands/queue-export.d.ts.map +1 -0
- package/dist/commands/queue-export.js +67 -0
- package/dist/commands/queue-export.js.map +1 -0
- package/dist/commands/queue-import.d.ts +4 -0
- package/dist/commands/queue-import.d.ts.map +1 -0
- package/dist/commands/queue-import.js +47 -0
- package/dist/commands/queue-import.js.map +1 -0
- package/dist/commands/queue.d.ts +1 -1
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +56 -1
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/restore.d.ts.map +1 -1
- package/dist/commands/restore.js +51 -8
- package/dist/commands/restore.js.map +1 -1
- package/dist/commands/roster.d.ts +1 -1
- package/dist/commands/roster.js +1 -1
- package/dist/commands/roster.js.map +1 -1
- package/dist/commands/scope.d.ts.map +1 -1
- package/dist/commands/scope.js +30 -18
- package/dist/commands/scope.js.map +1 -1
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +26 -2
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +24 -8
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/slack.d.ts +1 -1
- package/dist/commands/snapshot.d.ts.map +1 -1
- package/dist/commands/snapshot.js +29 -10
- package/dist/commands/snapshot.js.map +1 -1
- package/dist/commands/start.d.ts +14 -0
- package/dist/commands/start.d.ts.map +1 -1
- package/dist/commands/start.js +203 -110
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/stream-outcome.d.ts +96 -32
- package/dist/commands/stream-outcome.d.ts.map +1 -1
- package/dist/commands/stream-outcome.js +25 -2
- package/dist/commands/stream-outcome.js.map +1 -1
- package/dist/commands/up.d.ts +2 -4
- package/dist/commands/up.d.ts.map +1 -1
- package/dist/commands/up.js +35 -3
- package/dist/commands/up.js.map +1 -1
- package/dist/commands/watchdog.js +2 -2
- package/dist/commands/watchdog.js.map +1 -1
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +8 -1
- package/dist/commands/workflow.js.map +1 -1
- package/dist/config-store.d.ts +3 -1
- package/dist/config-store.d.ts.map +1 -1
- package/dist/config-store.js +27 -1
- package/dist/config-store.js.map +1 -1
- package/dist/cross-host-executor.d.ts +3 -0
- package/dist/cross-host-executor.d.ts.map +1 -1
- package/dist/cross-host-executor.js +5 -0
- package/dist/cross-host-executor.js.map +1 -1
- package/dist/daemon-auto-start.d.ts.map +1 -1
- package/dist/daemon-auto-start.js +1 -0
- package/dist/daemon-auto-start.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts +9 -3
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +109 -37
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/daemon-start-lock.d.ts +38 -3
- package/dist/daemon-start-lock.d.ts.map +1 -1
- package/dist/daemon-start-lock.js +201 -48
- package/dist/daemon-start-lock.js.map +1 -1
- package/dist/daemon-transport.d.ts +10 -0
- package/dist/daemon-transport.d.ts.map +1 -0
- package/dist/daemon-transport.js +89 -0
- package/dist/daemon-transport.js.map +1 -0
- package/dist/decisions/stream-consumer.d.ts +2 -2
- package/dist/lib/bundle-source.d.ts.map +1 -1
- package/dist/lib/bundle-source.js +2 -1
- package/dist/lib/bundle-source.js.map +1 -1
- package/dist/lib/codex-auth.d.ts +1 -1
- package/dist/lib/context-git.d.ts.map +1 -1
- package/dist/lib/context-git.js +8 -3
- package/dist/lib/context-git.js.map +1 -1
- package/dist/lib/scope/progress-edit.d.ts.map +1 -1
- package/dist/lib/scope/progress-edit.js +10 -0
- package/dist/lib/scope/progress-edit.js.map +1 -1
- package/dist/lib/scope/scope-fs.d.ts.map +1 -1
- package/dist/lib/scope/scope-fs.js +13 -10
- package/dist/lib/scope/scope-fs.js.map +1 -1
- package/dist/lib/topology-trace.d.ts +3 -34
- package/dist/lib/topology-trace.d.ts.map +1 -1
- package/dist/lib/topology-trace.js +3 -97
- package/dist/lib/topology-trace.js.map +1 -1
- package/dist/lib/work-install.d.ts +1 -1
- package/dist/local-db.d.ts +2 -0
- package/dist/local-db.d.ts.map +1 -1
- package/dist/local-db.js +14 -11
- package/dist/local-db.js.map +1 -1
- package/dist/long-request-fetch.d.ts +2 -1
- package/dist/long-request-fetch.d.ts.map +1 -1
- package/dist/long-request-fetch.js +39 -35
- package/dist/long-request-fetch.js.map +1 -1
- package/dist/mcp-caller-resolver.d.ts +36 -0
- package/dist/mcp-caller-resolver.d.ts.map +1 -0
- package/dist/mcp-caller-resolver.js +82 -0
- package/dist/mcp-caller-resolver.js.map +1 -0
- package/dist/mcp-http.d.ts +48 -5
- package/dist/mcp-http.d.ts.map +1 -1
- package/dist/mcp-http.js +303 -61
- package/dist/mcp-http.js.map +1 -1
- package/dist/mcp-server.d.ts +31 -3
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +191 -58
- package/dist/mcp-server.js.map +1 -1
- package/dist/mcp-surface.d.ts +8 -0
- package/dist/mcp-surface.d.ts.map +1 -0
- package/dist/mcp-surface.js +5 -0
- package/dist/mcp-surface.js.map +1 -0
- package/dist/node-support.d.ts.map +1 -1
- package/dist/node-support.js +10 -0
- package/dist/node-support.js.map +1 -1
- package/dist/release-surface/extract-surface.d.ts.map +1 -1
- package/dist/release-surface/extract-surface.js +14 -2
- package/dist/release-surface/extract-surface.js.map +1 -1
- package/dist/remote-host-ops.d.ts +3 -0
- package/dist/remote-host-ops.d.ts.map +1 -1
- package/dist/remote-host-ops.js +15 -1
- package/dist/remote-host-ops.js.map +1 -1
- package/dist/snapshot-rig-handle.d.ts +12 -0
- package/dist/snapshot-rig-handle.d.ts.map +1 -0
- package/dist/snapshot-rig-handle.js +39 -0
- package/dist/snapshot-rig-handle.js.map +1 -0
- package/mcp.d.ts +1 -0
- package/mcp.js +1 -0
- package/package.json +8 -5
- package/scripts/check-abi.mjs +15 -0
- package/tui/dist/attention/attention-model.d.ts +1 -1
- package/tui/dist/attention/attention-model.d.ts.map +1 -1
- package/tui/dist/attention/attention-model.js +8 -4
- package/tui/dist/attention/attention-model.js.map +1 -1
- package/tui/dist/attention/source-continuity.d.ts +1 -1
- package/tui/dist/crash-cart/start-daemon.d.ts +20 -0
- package/tui/dist/crash-cart/start-daemon.d.ts.map +1 -1
- package/tui/dist/crash-cart/start-daemon.js +56 -0
- package/tui/dist/crash-cart/start-daemon.js.map +1 -1
- package/tui/dist/execution/execution-model.d.ts +2 -0
- package/tui/dist/execution/execution-model.d.ts.map +1 -1
- package/tui/dist/execution/execution-model.js +27 -5
- package/tui/dist/execution/execution-model.js.map +1 -1
- package/tui/dist/execution/workflow-model.d.ts.map +1 -1
- package/tui/dist/execution/workflow-model.js +2 -1
- package/tui/dist/execution/workflow-model.js.map +1 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +4 -2
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/main.js +26 -9
- package/tui/dist/main.js.map +1 -1
- package/tui/dist/print-for-copy.d.ts +7 -1
- package/tui/dist/print-for-copy.d.ts.map +1 -1
- package/tui/dist/print-for-copy.js +10 -3
- package/tui/dist/print-for-copy.js.map +1 -1
- package/tui/dist/render.d.ts +2 -0
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +75 -19
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/socket-copy.d.ts +6 -0
- package/tui/dist/socket-copy.d.ts.map +1 -0
- package/tui/dist/socket-copy.js +13 -0
- package/tui/dist/socket-copy.js.map +1 -0
- package/tui/dist/terminal-safe-text.d.ts +39 -0
- package/tui/dist/terminal-safe-text.d.ts.map +1 -0
- package/tui/dist/terminal-safe-text.js +44 -0
- package/tui/dist/terminal-safe-text.js.map +1 -0
- package/tui/dist/topology/host-label.js +5 -5
- package/tui/dist/topology/host-label.js.map +1 -1
- package/tui/dist/types.d.ts +3 -3
|
@@ -9,7 +9,8 @@ import { parentSessionEnvKeys, removeParentSessionEnv } from "../domain/parent-s
|
|
|
9
9
|
import { isTmuxCredentialEnvKey } from "./tmux-credential-env.js";
|
|
10
10
|
import { addSeatRuntimeDir, seatRuntimeDir } from "../domain/seat-runtime-dir.js";
|
|
11
11
|
import { tmuxOnDaemonServer } from "./tmux-server.js";
|
|
12
|
-
import { TMUX_SERVER_LIMIT_PREFIX } from "../tmux-server-start.js";
|
|
12
|
+
import { TMUX_SERVER_LIMIT_PREFIX, TMUX_SERVER_NO_SESSION_BUS, TMUX_SERVER_SESSION_BUS } from "../tmux-server-start.js";
|
|
13
|
+
import { SEAT_SCOPE_SLICE, rigSeatSlice } from "./seat-slice.js";
|
|
13
14
|
/** tmux 3.4 escapes these dollar forms in command output even for show-options -v.
|
|
14
15
|
* Remove only its added escape; preserve an intentionally preceding backslash. */
|
|
15
16
|
export function decodeTmux34Option(value, serverVersion) {
|
|
@@ -46,6 +47,14 @@ const SEAT_SCOPE_START_CHECKS = 120;
|
|
|
46
47
|
export function probeShowsNoServer(probe) {
|
|
47
48
|
return probe.state === "transport_unavailable" && /^no server running on /.test(tmuxDiagnosticStart(probe.cause ?? ""));
|
|
48
49
|
}
|
|
50
|
+
/** Only a reported missing server permits starting an empty one (a reboot's /tmp cleanup removes the socket); other
|
|
51
|
+
* unreadable/permission results do not. Shared by `rig down` and the keep_alive reconcile (#2940). */
|
|
52
|
+
export function isMissingTmuxServer(probe) {
|
|
53
|
+
if (probe.state !== "transport_unavailable" || /permission denied|operation not permitted|EACCES|EPERM/i.test(probe.cause))
|
|
54
|
+
return false;
|
|
55
|
+
return /no server running/i.test(probe.cause)
|
|
56
|
+
|| /(?:error connecting to|tmux-\d+)[^\n]*(?:No such file or directory|Connection refused)/i.test(probe.cause);
|
|
57
|
+
}
|
|
49
58
|
/** The first line of tmux's own diagnostic for a lost server, for a log line or a status field. */
|
|
50
59
|
function serverDiagnostic(error) {
|
|
51
60
|
const reported = tmuxReportedError(error);
|
|
@@ -170,6 +179,27 @@ function isReadOnlyClientRefusal(result) {
|
|
|
170
179
|
function isSubmitKey(key) {
|
|
171
180
|
return key === "Enter" || key === "C-m";
|
|
172
181
|
}
|
|
182
|
+
/**
|
|
183
|
+
* A key argument escaped so tmux treats it as one argument, not as a command boundary.
|
|
184
|
+
*
|
|
185
|
+
* tmux ends its command at an argument ending in `;` unless the character immediately before that `;`
|
|
186
|
+
* is a backslash, in which case it drops the `;` and turns that one backslash into a `;`
|
|
187
|
+
* (`cmd_parse_from_arguments` in tmux's `cmd-parse.y`; see `commandsOf` in tmux-control.ts, pinned
|
|
188
|
+
* against real tmux in test/tmux-control-native.test.ts). It checks one character, not a run of them:
|
|
189
|
+
* there is no parity rule and no notion of an already escaped argument.
|
|
190
|
+
*
|
|
191
|
+
* So every trailing `;` gets exactly one backslash in front of it, unconditionally, and each key then
|
|
192
|
+
* arrives byte for byte: `x;` is sent as `x\;` and arrives as `x;`, and `x\;` is sent as `x\\;` and
|
|
193
|
+
* arrives as `x\;`. Quoting protects the SHELL, not tmux: `send-keys -t X 'x;'` still reaches tmux as
|
|
194
|
+
* two commands.
|
|
195
|
+
*
|
|
196
|
+
* This narrows nothing: a caller may still send any key argument it sent before, and the argument
|
|
197
|
+
* arrives at the pane as the same bytes. Both transports receive the escaped form, so the spawned
|
|
198
|
+
* client and the control client read the same argv.
|
|
199
|
+
*/
|
|
200
|
+
export function escapeTmuxCommandSeparator(key) {
|
|
201
|
+
return key.endsWith(";") ? `${key.slice(0, -1)}\\;` : key;
|
|
202
|
+
}
|
|
173
203
|
/** The launch warning when the parent-session identity cleanup could not finish (#771). */
|
|
174
204
|
function parentSessionEnvWarning(target, err) {
|
|
175
205
|
const reason = err instanceof Error ? err.message : String(err);
|
|
@@ -349,13 +379,18 @@ export function noticeLine(notice) {
|
|
|
349
379
|
return `process_limits requested, not applied: ${problemText(notice)}; the seat went on without the limit, and the ` +
|
|
350
380
|
"request stays stored (a fresh launch applies it)";
|
|
351
381
|
}
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
*
|
|
355
|
-
export
|
|
382
|
+
export { SEAT_SCOPE_SLICE };
|
|
383
|
+
/** #80: the warning of a launch whose rig groups its seats but whose scope could not go beneath the rig's slice. The
|
|
384
|
+
* launch took today's path instead (with any limit it has), so nothing was refused or dropped. */
|
|
385
|
+
export function groupingNotAppliedLine(reason) {
|
|
386
|
+
return `seat_slice requested, grouping not applied: ${reason}; the seat started on its ungrouped launch path ` +
|
|
387
|
+
"(its next launch tries the rig's slice again)";
|
|
388
|
+
}
|
|
356
389
|
/** Why a seat with a limit can't start with the inherited tmux environment, with the way out. */
|
|
357
390
|
const INHERIT_TMUX_ENVIRONMENT_REASON = "terminal.inherit_tmux_environment is on: a seat with a limit needs the scoped " +
|
|
358
391
|
"launch environment (set terminal.inherit_tmux_environment to false)";
|
|
392
|
+
/** #80: why a grouped launch started again on its ungrouped path. */
|
|
393
|
+
const GROUPED_START_FAILED = "the seat's scope beneath the rig's slice did not start: its pane's command exited before entering it";
|
|
359
394
|
/** How long a launch skips asking again after a failed check (it reads as `unverified`, with the observation's age). */
|
|
360
395
|
const SEAT_SCOPE_RETRY_MS = 60_000;
|
|
361
396
|
/** systemd-run reaches the user manager through the runtime directory, not the seat's session bus (which the launch
|
|
@@ -372,8 +407,8 @@ export function restoreEnvArgv(values) {
|
|
|
372
407
|
}
|
|
373
408
|
/** The systemd-run options of a seat scope, up to (not including) the `--` before the command. `systemdRun` is the
|
|
374
409
|
* absolute path the check resolved, so the check and the launch run the same binary whatever PATH the seat has. */
|
|
375
|
-
function seatScopeArgv(opts, unit, description, limits, systemdRun) {
|
|
376
|
-
return [systemdRun, "--user", "--scope", "--quiet", "--collect", "--slice",
|
|
410
|
+
function seatScopeArgv(opts, unit, description, limits, systemdRun, slice = SEAT_SCOPE_SLICE) {
|
|
411
|
+
return [systemdRun, "--user", "--scope", "--quiet", "--collect", "--slice", slice, "--unit", unit,
|
|
377
412
|
"--description", description,
|
|
378
413
|
// As for the server's scope: the command's arguments must reach /bin/sh exactly as written (254+).
|
|
379
414
|
...(opts.literal ? ["--expand-environment=no"] : []),
|
|
@@ -518,6 +553,9 @@ export class TmuxAdapter {
|
|
|
518
553
|
* for a node: that seat launches exactly as before. It may throw for a malformed stored value: that seat's launch
|
|
519
554
|
* reads it as `invalid`, and no other seat is affected. */
|
|
520
555
|
seatProcessLimits;
|
|
556
|
+
/** #80: the name of the rig whose slice a seat's new scopes go beneath (rig spec `seat_slice: rig`), read at each
|
|
557
|
+
* launch; undefined for a seat whose rig doesn't group its seats, which then launches exactly as before. */
|
|
558
|
+
seatSliceRig;
|
|
521
559
|
/** Whether a seat runs in an environment guest (its harness is a local viewer of a guest's agent): a scope on this
|
|
522
560
|
* host would hold only the viewer, so a limit can't be applied (#3253). `session` is the seat's session name, for a
|
|
523
561
|
* placement not yet claimed by its node (before the seat's first launch). */
|
|
@@ -685,6 +723,55 @@ export class TmuxAdapter {
|
|
|
685
723
|
}
|
|
686
724
|
return null;
|
|
687
725
|
}
|
|
726
|
+
/** #80: the rig slice a seat's new scope goes beneath, or why its rig's grouping can't be used; undefined when the
|
|
727
|
+
* seat's rig doesn't group its seats (it then launches exactly as before). */
|
|
728
|
+
seatGrouping(nodeId) {
|
|
729
|
+
if (!nodeId || !this.seatSliceRig)
|
|
730
|
+
return undefined;
|
|
731
|
+
let rig;
|
|
732
|
+
try {
|
|
733
|
+
rig = this.seatSliceRig(nodeId);
|
|
734
|
+
}
|
|
735
|
+
catch (error) {
|
|
736
|
+
return { notApplied: `the rig's seat_slice could not be read (${error.message})` };
|
|
737
|
+
}
|
|
738
|
+
if (rig === undefined)
|
|
739
|
+
return undefined;
|
|
740
|
+
const slice = rigSeatSlice(rig);
|
|
741
|
+
return slice.kind === "slice" ? { slice: slice.name } : { notApplied: slice.reason };
|
|
742
|
+
}
|
|
743
|
+
/** #80: one launch's grouping: the rig slice its scope tries first (undefined when the seat's rig doesn't group, or once
|
|
744
|
+
* grouping is not applied), and how that launch reports grouping not applied (a warning, and the slice is dropped). A
|
|
745
|
+
* retry after a grouped start failed (`notices.groupingFailed`) reports it and takes the ungrouped path. */
|
|
746
|
+
launchGrouping(nodeId, notices, warnings) {
|
|
747
|
+
const grouping = {
|
|
748
|
+
slice: undefined,
|
|
749
|
+
notApplied: (reason) => {
|
|
750
|
+
const line = groupingNotAppliedLine(reason);
|
|
751
|
+
warnings.push(line);
|
|
752
|
+
console.warn(`[seat launch] ${line}`);
|
|
753
|
+
grouping.slice = undefined;
|
|
754
|
+
},
|
|
755
|
+
};
|
|
756
|
+
const found = notices?.groupingFailed ? { notApplied: notices.groupingFailed } : this.seatGrouping(nodeId);
|
|
757
|
+
if (found && "slice" in found)
|
|
758
|
+
grouping.slice = found.slice;
|
|
759
|
+
else if (found)
|
|
760
|
+
grouping.notApplied(found.notApplied);
|
|
761
|
+
return grouping;
|
|
762
|
+
}
|
|
763
|
+
/** A limited seat's scope: beneath the rig's slice when its rig groups its seats and that scope can be made, else the
|
|
764
|
+
* ungrouped scope, checked exactly as without grouping (#80: grouping adds no refusal and keeps every limit). */
|
|
765
|
+
async seatScopeGrouped(limits, seatEnv, policy, grouping) {
|
|
766
|
+
if (grouping.slice) {
|
|
767
|
+
const outcome = await this.seatScope(limits, seatEnv, policy, grouping.slice);
|
|
768
|
+
if (outcome.ok)
|
|
769
|
+
return { ...outcome, grouped: true };
|
|
770
|
+
grouping.notApplied(outcome.problem.reason);
|
|
771
|
+
}
|
|
772
|
+
const outcome = await this.seatScope(limits, seatEnv, policy);
|
|
773
|
+
return outcome.ok ? { ...outcome, grouped: false } : outcome;
|
|
774
|
+
}
|
|
688
775
|
/** systemd-run, systemctl and timeout, resolved once from the daemon's PATH, or why they can't be. */
|
|
689
776
|
seatScopeTools() {
|
|
690
777
|
const systemdRun = this.resolveExecutable("systemd-run");
|
|
@@ -704,11 +791,13 @@ export class TmuxAdapter {
|
|
|
704
791
|
* the tmux server stays where it is, and only this seat's processes are under the limits (#3253). systemd-run
|
|
705
792
|
* registers itself in the new scope and then execs the command, so the pane's process is the seat's. Or why it
|
|
706
793
|
* can't, classified: never a silent start without the limit. */
|
|
707
|
-
async seatScope(limits, seatEnv, policy) {
|
|
794
|
+
async seatScope(limits, seatEnv, policy, slice = SEAT_SCOPE_SLICE) {
|
|
708
795
|
const requested = { ...limits };
|
|
709
796
|
const fail = (problem) => ({ ok: false, problem: { ...problem, requested } });
|
|
797
|
+
// The status of a seat's limit (readSeatProcessLimits) reads only what the ungrouped scope showed: a rig slice that
|
|
798
|
+
// can't be used (#80) falls back to that scope and says nothing of the limit.
|
|
710
799
|
const positive = (problem) => {
|
|
711
|
-
if (problem.kind === "unsupported")
|
|
800
|
+
if (problem.kind === "unsupported" && slice === SEAT_SCOPE_SLICE)
|
|
712
801
|
this.seatScopeLastPositive = { at: Date.now(), problem, probed: limits };
|
|
713
802
|
return fail(problem);
|
|
714
803
|
};
|
|
@@ -721,7 +810,7 @@ export class TmuxAdapter {
|
|
|
721
810
|
const runtimeDir = this.scopeRuntimeDir();
|
|
722
811
|
// A systemd-run that changed since (another PATH, an upgrade) is proven again, and so is each pair of limits: a
|
|
723
812
|
// memory limit is never taken as proven by a scope that had only the task limit.
|
|
724
|
-
const provenKey = `${tools.systemdRun}\0${limits.tasksMax ?? "-"}\0${limits.memoryMax ?? "-"}`;
|
|
813
|
+
const provenKey = `${tools.systemdRun}\0${limits.tasksMax ?? "-"}\0${limits.memoryMax ?? "-"}\0${slice}`;
|
|
725
814
|
const probeKey = `probe:${provenKey}`;
|
|
726
815
|
for (const key of ["bus", probeKey]) {
|
|
727
816
|
const failed = this.seatScopeFailedAt.get(key);
|
|
@@ -747,7 +836,7 @@ export class TmuxAdapter {
|
|
|
747
836
|
this.seatScopeFailedAt.delete("bus");
|
|
748
837
|
let opts = this.seatScopeProven.get(provenKey);
|
|
749
838
|
if (!opts) {
|
|
750
|
-
const proven = await this.proveSeatScope(runtimeDir, limits, tools);
|
|
839
|
+
const proven = await this.proveSeatScope(runtimeDir, limits, tools, slice);
|
|
751
840
|
if (!proven.ok)
|
|
752
841
|
return remember(probeKey, proven.problem);
|
|
753
842
|
opts = proven.opts;
|
|
@@ -759,16 +848,20 @@ export class TmuxAdapter {
|
|
|
759
848
|
// Unit names take ASCII letters, digits and ":-_.\\"; an "@" would read as a template instance.
|
|
760
849
|
const unit = `openrig-seat-${name.replace(/[^A-Za-z0-9_.-]/g, "_").slice(0, 120)}-${randomUUID().slice(0, 8)}`;
|
|
761
850
|
return { ok: true, prefix: [...seatScopeBusEnv(runtimeDir),
|
|
762
|
-
...seatScopeArgv(opts, unit, `OpenRig seat ${name}`, limits, tools.systemdRun), "--"] };
|
|
851
|
+
...seatScopeArgv(opts, unit, `OpenRig seat ${name}`, limits, tools.systemdRun, slice), "--"] };
|
|
763
852
|
}
|
|
764
853
|
/** One throwaway scope with the seat's own options, whose command prints the pids.max of its own cgroup (and, with
|
|
765
854
|
* memory_max, its memory.max: one line per limit): the limits count as supported only when each one requested is the
|
|
766
855
|
* requested value. Options this systemd lacks are dropped from its stderr, as for the server's scope. A pids.max or
|
|
767
856
|
* memory.max that is another value (e.g. "max": TasksMax or MemoryMax= accepted but the controller not delegated) is a
|
|
768
857
|
* positive inability; an empty result or an error not recognized is unverified. */
|
|
769
|
-
async proveSeatScope(runtimeDir, limits, tools) {
|
|
858
|
+
async proveSeatScope(runtimeDir, limits, tools, slice = SEAT_SCOPE_SLICE) {
|
|
770
859
|
const opts = { literal: true, oomPolicy: true };
|
|
771
860
|
const tasksMax = limits.tasksMax;
|
|
861
|
+
// #80: a scope with no limit (a grouped seat without process_limits) proves only its placement: its own cgroup path.
|
|
862
|
+
const unlimited = tasksMax === undefined && limits.memoryMax === undefined;
|
|
863
|
+
const readOwnCgroup = 'p=; while IFS= read -r l; do case $l in 0::*) p=${l#0::};; esac; done < /proc/self/cgroup; ' +
|
|
864
|
+
'if [ -z "$p" ]; then printf "nocgroup2\\n"; else printf "%s\\n" "$p"; fi';
|
|
772
865
|
// Shell builtins only: no fork inside the scope, so even TasksMax=1 can be proven (the probe is the scope's one task).
|
|
773
866
|
const readOwnPidsMax = 'p=; while IFS= read -r l; do case $l in 0::*) p=${l#0::};; esac; done < /proc/self/cgroup; ' +
|
|
774
867
|
'if [ -z "$p" ]; then printf "nocgroup2\\n"; elif [ ! -e "/sys/fs/cgroup$p/pids.max" ]; then printf "nopids\\n"; ' +
|
|
@@ -785,10 +878,11 @@ export class TmuxAdapter {
|
|
|
785
878
|
'fi';
|
|
786
879
|
for (;;) {
|
|
787
880
|
let out;
|
|
881
|
+
const probeUnit = `openrig-seat-probe-${randomUUID().slice(0, 8)}`;
|
|
788
882
|
try {
|
|
789
883
|
out = await this.exec(posixJoinArgv([...seatScopeBusEnv(runtimeDir), tools.timeout, "10",
|
|
790
|
-
...seatScopeArgv(opts,
|
|
791
|
-
"--", "/bin/sh", "-c", limits.memoryMax === undefined ? readOwnPidsMax : readOwnLimits]));
|
|
884
|
+
...seatScopeArgv(opts, probeUnit, "OpenRig seat scope probe", limits, tools.systemdRun, slice),
|
|
885
|
+
"--", "/bin/sh", "-c", unlimited ? readOwnCgroup : limits.memoryMax === undefined ? readOwnPidsMax : readOwnLimits]));
|
|
792
886
|
}
|
|
793
887
|
catch (error) {
|
|
794
888
|
const stderr = execStderrText(error);
|
|
@@ -813,6 +907,17 @@ export class TmuxAdapter {
|
|
|
813
907
|
return { ok: false, problem: classifyScopeFailure(error, "a throwaway seat scope") };
|
|
814
908
|
}
|
|
815
909
|
const got = out.trim();
|
|
910
|
+
if (unlimited) {
|
|
911
|
+
if (got === "nocgroup2")
|
|
912
|
+
return { ok: false, problem: { kind: "unsupported", reason: NO_CGROUP2 } };
|
|
913
|
+
// systemd nests a dashed slice under its parent: the scope is <...>/openrigseats.slice/<slice>/<unit>.scope.
|
|
914
|
+
const placed = `/${SEAT_SCOPE_SLICE}/${slice}/${probeUnit}.scope`;
|
|
915
|
+
if (got.endsWith(placed))
|
|
916
|
+
return { ok: true, opts };
|
|
917
|
+
return { ok: false, problem: { kind: got ? "unsupported" : "unverified",
|
|
918
|
+
reason: got ? `a throwaway seat scope ran in "${got.slice(0, 160)}", not beneath ${slice}`
|
|
919
|
+
: "a throwaway seat scope read no cgroup path" } };
|
|
920
|
+
}
|
|
816
921
|
if (limits.memoryMax !== undefined) {
|
|
817
922
|
const problem = scopeProbeProblem(got, limits);
|
|
818
923
|
return problem ? { ok: false, problem } : { ok: true, opts };
|
|
@@ -1012,26 +1117,51 @@ export class TmuxAdapter {
|
|
|
1012
1117
|
warnings.push(noticeLine(notice));
|
|
1013
1118
|
limited = false;
|
|
1014
1119
|
};
|
|
1120
|
+
// #80: a seat whose rig groups its seats tries a scope beneath the rig's slice first. Where that can't be made, it
|
|
1121
|
+
// takes today's path (the ungrouped scope of a seat with a limit, the plain launch of one without), with a warning:
|
|
1122
|
+
// grouping never refuses a launch, skips a limit check or drops a limit.
|
|
1123
|
+
const grouping = this.launchGrouping(seatEnv.OPENRIG_NODE_ID, notices, warnings);
|
|
1124
|
+
const groupingNotApplied = grouping.notApplied;
|
|
1125
|
+
const recoverWithoutScope = (problem) => {
|
|
1126
|
+
notApplied(problem);
|
|
1127
|
+
if (grouping.slice)
|
|
1128
|
+
groupingNotApplied("the seat's limit could not be applied, so the recovery goes on without a scope");
|
|
1129
|
+
};
|
|
1130
|
+
let grouped = false;
|
|
1015
1131
|
if (lookup) {
|
|
1016
1132
|
if ("invalid" in lookup)
|
|
1017
|
-
|
|
1133
|
+
recoverWithoutScope({ kind: "invalid", reason: lookup.invalid });
|
|
1018
1134
|
else if (notices?.failedStart)
|
|
1019
|
-
|
|
1135
|
+
recoverWithoutScope({ ...notices.failedStart, requested: { ...lookup.limits } });
|
|
1020
1136
|
else {
|
|
1021
|
-
const outcome = await this.
|
|
1137
|
+
const outcome = await this.seatScopeGrouped(lookup.limits, seatEnv, policy, grouping);
|
|
1022
1138
|
if (outcome.ok) {
|
|
1023
1139
|
seatScope = outcome.prefix;
|
|
1024
1140
|
limited = true;
|
|
1141
|
+
grouped = outcome.grouped;
|
|
1025
1142
|
}
|
|
1026
1143
|
else
|
|
1027
1144
|
notApplied(outcome.problem);
|
|
1028
1145
|
}
|
|
1029
1146
|
}
|
|
1147
|
+
else if (grouping.slice) {
|
|
1148
|
+
// A seat without a limit gets a scope with none, beneath the rig's slice.
|
|
1149
|
+
const outcome = await this.seatScope({}, seatEnv, policy, grouping.slice);
|
|
1150
|
+
if (outcome.ok) {
|
|
1151
|
+
seatScope = outcome.prefix;
|
|
1152
|
+
grouped = true;
|
|
1153
|
+
}
|
|
1154
|
+
else
|
|
1155
|
+
groupingNotApplied(outcome.problem.reason);
|
|
1156
|
+
}
|
|
1157
|
+
const groupedSlice = grouped ? grouping.slice : undefined;
|
|
1030
1158
|
if (!policy || !seatEnv.OPENRIG_NODE_ID)
|
|
1031
1159
|
return null;
|
|
1032
1160
|
if (!(policy instanceof Error) && policy.inheritTmuxEnvironment) {
|
|
1033
1161
|
if (limited)
|
|
1034
1162
|
notApplied({ kind: "setup", reason: INHERIT_TMUX_ENVIRONMENT_REASON, requested: { ...lookup.limits } });
|
|
1163
|
+
else if (grouped)
|
|
1164
|
+
groupingNotApplied(INHERIT_TMUX_ENVIRONMENT_REASON);
|
|
1035
1165
|
return null;
|
|
1036
1166
|
}
|
|
1037
1167
|
try {
|
|
@@ -1085,19 +1215,26 @@ export class TmuxAdapter {
|
|
|
1085
1215
|
DBUS_SESSION_BUS_ADDRESS: selected.DBUS_SESSION_BUS_ADDRESS, XDG_RUNTIME_DIR: selected.XDG_RUNTIME_DIR
|
|
1086
1216
|
})] : [];
|
|
1087
1217
|
if (notices) {
|
|
1088
|
-
notices.capped = seatScope.length > 0;
|
|
1218
|
+
notices.capped = limited && seatScope.length > 0;
|
|
1089
1219
|
if (marker) {
|
|
1090
1220
|
notices.marker = marker;
|
|
1091
|
-
notices.
|
|
1221
|
+
notices.replacement = { command, shell };
|
|
1092
1222
|
}
|
|
1223
|
+
if (limited && marker)
|
|
1224
|
+
notices.requested = { ...lookup.limits };
|
|
1225
|
+
if (groupedSlice)
|
|
1226
|
+
notices.groupedSlice = groupedSlice;
|
|
1093
1227
|
}
|
|
1094
1228
|
return ["/bin/sh", "-c", reset, "sh", file, ...seatScope, ...restore, shell, ...(command ? ["-c", command] : ["-l"])];
|
|
1095
1229
|
}
|
|
1096
1230
|
catch (error) {
|
|
1231
|
+
const reason = `the scoped launch environment failed: ${error.message}`;
|
|
1097
1232
|
if (limited) {
|
|
1098
|
-
notApplied({ kind: "unverified", reason
|
|
1233
|
+
notApplied({ kind: "unverified", reason,
|
|
1099
1234
|
requested: { ...lookup.limits } });
|
|
1100
1235
|
}
|
|
1236
|
+
if (grouped)
|
|
1237
|
+
groupingNotApplied(reason);
|
|
1101
1238
|
// Keep the working launch, with a diagnostic; this option is not a new admission gate.
|
|
1102
1239
|
const warning = "Scoped tmux environment unavailable; retaining the previous environment for this launch.";
|
|
1103
1240
|
warnings.push(warning);
|
|
@@ -1105,28 +1242,49 @@ export class TmuxAdapter {
|
|
|
1105
1242
|
return null;
|
|
1106
1243
|
}
|
|
1107
1244
|
}
|
|
1108
|
-
/** A bare-pane respawn that keeps the seat's limit (a restart in place whose process reads back under it, #3253)
|
|
1109
|
-
*
|
|
1110
|
-
* the pane would
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1245
|
+
/** A bare-pane respawn that keeps the seat's limit (a restart in place whose process reads back under it, #3253), and
|
|
1246
|
+
* (#80) puts the seat beneath its rig's slice when the rig groups its seats, with or without a limit: the command runs
|
|
1247
|
+
* as the pane's default shell would run it, inside a new seat scope, with the bus and runtime directory the pane would
|
|
1248
|
+
* get from tmux. Recovery only: where the scope can't be made, the respawn goes on without it (or ungrouped), with a
|
|
1249
|
+
* warning. `keepLimit` false: only the grouping (the seat's limit is not kept by this respawn). */
|
|
1250
|
+
async keptScopeCommand(nodeId, pane, command, warnings, notices, keepLimit = true) {
|
|
1251
|
+
const lookup = keepLimit ? this.seatLimitsLookup(nodeId) : undefined;
|
|
1252
|
+
const grouping = this.launchGrouping(nodeId, notices, warnings);
|
|
1253
|
+
if (!lookup && !grouping.slice)
|
|
1114
1254
|
return null;
|
|
1115
1255
|
const notApplied = (problem) => {
|
|
1116
1256
|
const notice = notAppliedNotice(problem);
|
|
1117
1257
|
notices.processLimits = notice;
|
|
1118
1258
|
notices.capped = false;
|
|
1119
1259
|
warnings.push(noticeLine(notice));
|
|
1260
|
+
if (grouping.slice)
|
|
1261
|
+
grouping.notApplied("the seat's limit was not kept, so the respawn goes on without a scope");
|
|
1120
1262
|
return null;
|
|
1121
1263
|
};
|
|
1122
|
-
if ("invalid" in lookup)
|
|
1264
|
+
if (lookup && "invalid" in lookup)
|
|
1123
1265
|
return notApplied({ kind: "invalid", reason: lookup.invalid });
|
|
1124
|
-
const requested = { ...lookup.limits };
|
|
1125
|
-
if (notices.failedStart)
|
|
1266
|
+
const requested = lookup ? { ...lookup.limits } : undefined;
|
|
1267
|
+
if (requested && notices.failedStart)
|
|
1126
1268
|
return notApplied({ ...notices.failedStart, requested });
|
|
1127
|
-
const
|
|
1128
|
-
|
|
1129
|
-
|
|
1269
|
+
const policy = this.readLaunchPolicy();
|
|
1270
|
+
let prefix;
|
|
1271
|
+
let grouped;
|
|
1272
|
+
if (lookup) {
|
|
1273
|
+
const outcome = await this.seatScopeGrouped(lookup.limits, { OPENRIG_NODE_ID: nodeId }, policy, grouping);
|
|
1274
|
+
if (!outcome.ok)
|
|
1275
|
+
return notApplied(outcome.problem);
|
|
1276
|
+
prefix = outcome.prefix;
|
|
1277
|
+
grouped = outcome.grouped;
|
|
1278
|
+
}
|
|
1279
|
+
else {
|
|
1280
|
+
const outcome = await this.seatScope({}, { OPENRIG_NODE_ID: nodeId }, policy, grouping.slice);
|
|
1281
|
+
if (!outcome.ok) {
|
|
1282
|
+
grouping.notApplied(outcome.problem.reason);
|
|
1283
|
+
return null;
|
|
1284
|
+
}
|
|
1285
|
+
prefix = outcome.prefix;
|
|
1286
|
+
grouped = true;
|
|
1287
|
+
}
|
|
1130
1288
|
try {
|
|
1131
1289
|
if (!command)
|
|
1132
1290
|
throw new Error("a kept scope needs the respawn's command");
|
|
@@ -1138,13 +1296,20 @@ export class TmuxAdapter {
|
|
|
1138
1296
|
XDG_RUNTIME_DIR: await this.paneStartEnv(pane, "XDG_RUNTIME_DIR"),
|
|
1139
1297
|
});
|
|
1140
1298
|
const marker = await this.scopeMarker();
|
|
1141
|
-
notices.capped =
|
|
1299
|
+
notices.capped = requested !== undefined;
|
|
1142
1300
|
notices.marker = marker;
|
|
1143
|
-
|
|
1144
|
-
|
|
1301
|
+
if (requested)
|
|
1302
|
+
notices.requested = requested;
|
|
1303
|
+
if (grouped && grouping.slice)
|
|
1304
|
+
notices.groupedSlice = grouping.slice;
|
|
1305
|
+
return [...prefix, ...scopeMarkArgv(marker), ...restore, shell, "-c", command];
|
|
1145
1306
|
}
|
|
1146
1307
|
catch (error) {
|
|
1147
|
-
|
|
1308
|
+
const reason = `the kept scope's launch could not be prepared: ${error.message}`;
|
|
1309
|
+
if (requested)
|
|
1310
|
+
return notApplied({ kind: "unverified", reason, requested });
|
|
1311
|
+
grouping.notApplied(reason);
|
|
1312
|
+
return null;
|
|
1148
1313
|
}
|
|
1149
1314
|
}
|
|
1150
1315
|
/** The value a new process in this pane's session gets for `key` from tmux: the session's own (undefined when it is
|
|
@@ -1178,6 +1343,10 @@ export class TmuxAdapter {
|
|
|
1178
1343
|
await this.fileOps.unlink(notices.marker).catch(() => { });
|
|
1179
1344
|
if (start === "started")
|
|
1180
1345
|
return null;
|
|
1346
|
+
// #80: a scope beneath the rig's slice that systemd-run could not make after the check passed: the launch starts
|
|
1347
|
+
// again in the ungrouped scope, with its limit, checked as without grouping; never refused for the grouping.
|
|
1348
|
+
if (start === "failed_before_command" && notices.groupedSlice)
|
|
1349
|
+
return { retryUngrouped: GROUPED_START_FAILED };
|
|
1181
1350
|
const requested = notices.requested ? { requested: { ...notices.requested } } : {};
|
|
1182
1351
|
const failedBefore = "the seat's scope did not start: its pane's command exited before entering it";
|
|
1183
1352
|
if (mode !== "recovery") {
|
|
@@ -1207,13 +1376,42 @@ export class TmuxAdapter {
|
|
|
1207
1376
|
warnings.push(noticeLine(notice));
|
|
1208
1377
|
return null;
|
|
1209
1378
|
}
|
|
1379
|
+
/** #80: after a launch of a seat without a limit made its pane in a scope beneath the rig's slice: the reason to start
|
|
1380
|
+
* it again on the plain path when systemd-run failed before the seat's command started; else null (the launch
|
|
1381
|
+
* stands, with a warning when where it runs can't be told; nothing is run again). Never a refusal. */
|
|
1382
|
+
async groupedStartOutcome(pane, notices, warnings) {
|
|
1383
|
+
const start = pane ? await this.seatScopeStart(pane, notices.marker) : "unknown";
|
|
1384
|
+
if (!pane && notices.marker)
|
|
1385
|
+
await this.fileOps.unlink(notices.marker).catch(() => { });
|
|
1386
|
+
if (start === "started" || start === "ran_and_ended")
|
|
1387
|
+
return null;
|
|
1388
|
+
if (start === "failed_before_command")
|
|
1389
|
+
return GROUPED_START_FAILED;
|
|
1390
|
+
const line = "seat_slice requested; whether the seat runs beneath the rig's slice is unknown (" +
|
|
1391
|
+
(start === "ran_unconfirmed" ? "its command started, but its process was not seen in the scope in time"
|
|
1392
|
+
: "the scope's start was not confirmed in time") + "); the seat was not started again";
|
|
1393
|
+
warnings.push(line);
|
|
1394
|
+
console.warn(`[seat launch] ${line}`);
|
|
1395
|
+
return null;
|
|
1396
|
+
}
|
|
1210
1397
|
/** #3315: told what each classified probe of this adapter's server showed (reachable, or the no-server/socket
|
|
1211
1398
|
* diagnostic). The daemon records only changes (terminal-server-reachability.ts); an observer error never changes
|
|
1212
1399
|
* the probe's own result. */
|
|
1213
1400
|
serverObserver;
|
|
1214
|
-
|
|
1401
|
+
/** #3315: the epoch of this adapter's server record, read when a classified probe starts and handed back with its
|
|
1402
|
+
* observation, so a probe that finishes after a newer loss or return can't overwrite it. */
|
|
1403
|
+
serverEpoch;
|
|
1404
|
+
readServerEpoch() {
|
|
1215
1405
|
try {
|
|
1216
|
-
this.
|
|
1406
|
+
return this.serverEpoch?.();
|
|
1407
|
+
}
|
|
1408
|
+
catch {
|
|
1409
|
+
return undefined;
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
noteServer(observation, startedIn) {
|
|
1413
|
+
try {
|
|
1414
|
+
this.serverObserver?.(observation, startedIn);
|
|
1217
1415
|
}
|
|
1218
1416
|
catch { /* reporting only */ }
|
|
1219
1417
|
}
|
|
@@ -1396,6 +1594,12 @@ export class TmuxAdapter {
|
|
|
1396
1594
|
serverArgs;
|
|
1397
1595
|
/** #2710: the "no scope tried" reason is logged once per adapter, not at every server start. */
|
|
1398
1596
|
scopeSkipLogged = false;
|
|
1597
|
+
/** #3253: a server start in progress, so concurrent callers wait for it, the global environment's bus included. */
|
|
1598
|
+
serverStarting;
|
|
1599
|
+
/** #3253: the server may still hold the unusable bus in its global environment (this adapter's start ran past its
|
|
1600
|
+
* wait or failed to give the bus back, or an earlier daemon process stopped before giving it back): the next
|
|
1601
|
+
* startServer that finds it up gives it back first. True at first on Linux, so a restarted daemon checks once. */
|
|
1602
|
+
sessionBusRestorePending = process.platform === "linux";
|
|
1399
1603
|
/** Prefix one adapter-owned tmux invocation, including its chained commands.
|
|
1400
1604
|
* The daemon's explicit server wins over an inherited TMUX or wrapper socket. */
|
|
1401
1605
|
onServer(command) {
|
|
@@ -1422,9 +1626,15 @@ export class TmuxAdapter {
|
|
|
1422
1626
|
*/
|
|
1423
1627
|
async runEnvironmentCommand(argv, legacy, startServer = false) {
|
|
1424
1628
|
const body = (legacy ?? posixJoinArgv(argv)).slice("tmux ".length) + "\n";
|
|
1629
|
+
// #3253: on Linux, a launch that may start the server waits for a start under way, which gives the panes the session
|
|
1630
|
+
// bus back before it settles: a pane made before that would keep the unusable address for its whole life. Checked
|
|
1631
|
+
// once the private config is written, right before the client runs, so a start another caller began meanwhile counts.
|
|
1632
|
+
const waitForStart = startServer && process.platform === "linux";
|
|
1425
1633
|
const source = async (startFirst) => {
|
|
1426
1634
|
const file = this.fileOps.tmpName();
|
|
1427
1635
|
await this.fileOps.writeFile(file, body, { mode: 0o600, flag: "wx" });
|
|
1636
|
+
if (waitForStart && this.serverStarting)
|
|
1637
|
+
await this.serverStarting;
|
|
1428
1638
|
try {
|
|
1429
1639
|
const output = await this.run(["tmux", ...(startFirst ? ["start-server", ";"] : []), "source-file", file]);
|
|
1430
1640
|
await this.fileOps.unlink(file).catch(() => { });
|
|
@@ -1437,10 +1647,15 @@ export class TmuxAdapter {
|
|
|
1437
1647
|
throw error;
|
|
1438
1648
|
}
|
|
1439
1649
|
};
|
|
1440
|
-
if (!startServer ||
|
|
1650
|
+
if (!startServer || process.platform !== "linux")
|
|
1441
1651
|
return source(startServer);
|
|
1442
|
-
// #2710: `start-server` would start a missing server
|
|
1443
|
-
//
|
|
1652
|
+
// #2710, #3253: on Linux, `start-server` would start a missing server outside a user scope and with the daemon's
|
|
1653
|
+
// session bus in its own process. Try on the running server first; only when there is none, start it as startServer
|
|
1654
|
+
// does (in the user scope where one can be made, without a session bus) and run the command as before. While the bus
|
|
1655
|
+
// may still be owed (this daemon's first launch, as after a restart, or a give-back that failed), startServer runs
|
|
1656
|
+
// first, once, so the server's global environment is checked before this pane takes it.
|
|
1657
|
+
if (this.sessionBusRestorePending)
|
|
1658
|
+
await this.startServer();
|
|
1444
1659
|
try {
|
|
1445
1660
|
return await source(false);
|
|
1446
1661
|
}
|
|
@@ -1457,6 +1672,10 @@ export class TmuxAdapter {
|
|
|
1457
1672
|
}
|
|
1458
1673
|
/** Start an empty native terminal server, without inventing a seat/session. */
|
|
1459
1674
|
async startServer() {
|
|
1675
|
+
this.serverStarting ??= this.startServerOnce().finally(() => { this.serverStarting = undefined; });
|
|
1676
|
+
return this.serverStarting;
|
|
1677
|
+
}
|
|
1678
|
+
async startServerOnce() {
|
|
1460
1679
|
const probeName = `openrig-startup-${randomUUID()}`;
|
|
1461
1680
|
const serverUp = async () => (await this.probeSession(probeName)).state !== "transport_unavailable";
|
|
1462
1681
|
const awaitServer = async () => {
|
|
@@ -1469,12 +1688,13 @@ export class TmuxAdapter {
|
|
|
1469
1688
|
};
|
|
1470
1689
|
try {
|
|
1471
1690
|
if (await serverUp())
|
|
1472
|
-
return { ok: true };
|
|
1691
|
+
return this.sessionBusRestorePending ? await this.restoreSessionBusForPanes() : { ok: true };
|
|
1473
1692
|
// #2710: on Linux, the server (and with it every seat) goes into a transient systemd --user scope of its own,
|
|
1474
1693
|
// so stopping or restarting the daemon's unit no longer takes the seats with it. Any failure keeps the start below.
|
|
1694
|
+
this.sessionBusRestorePending = process.platform === "linux";
|
|
1475
1695
|
if (await this.startServerInUserScope()) {
|
|
1476
1696
|
if (await awaitServer())
|
|
1477
|
-
return
|
|
1697
|
+
return await this.restoreSessionBusForPanes();
|
|
1478
1698
|
console.warn("[tmux] The systemd user scope was made but the seat terminal server did not answer in time; starting it in the daemon's cgroup as before.");
|
|
1479
1699
|
}
|
|
1480
1700
|
// tmux -D keeps an empty server alive. Stays on the shell-string path
|
|
@@ -1484,13 +1704,40 @@ export class TmuxAdapter {
|
|
|
1484
1704
|
// concurrent starts; the readback below, not shell exit, proves availability.
|
|
1485
1705
|
await this.exec(this.onServer("tmux -D </dev/null >/dev/null 2>&1 &"));
|
|
1486
1706
|
if (await awaitServer())
|
|
1487
|
-
return
|
|
1707
|
+
return await this.restoreSessionBusForPanes();
|
|
1488
1708
|
return { ok: false, code: "tmux_unavailable", message: "The terminal server did not become available. Check tmux and its socket permissions." };
|
|
1489
1709
|
}
|
|
1490
1710
|
catch (error) {
|
|
1491
1711
|
return { ok: false, code: "tmux_unavailable", message: `Terminal server unavailable: ${error.message}` };
|
|
1492
1712
|
}
|
|
1493
1713
|
}
|
|
1714
|
+
/** #3253: the server this start made has no session bus in its own process (TMUX_SERVER_NO_SESSION_BUS), and tmux
|
|
1715
|
+
* copied that value into its global environment, which panes inherit. This gives the global environment the daemon's
|
|
1716
|
+
* value back (or unsets it, as before the start), so a pane keeps the real session bus. Only while the global still
|
|
1717
|
+
* holds OpenRig's own unusable address (TMUX_SERVER_SESSION_BUS), which only OpenRig's own starts set: a server
|
|
1718
|
+
* another program started, or a value set since, is left as it is. The read and the write are two commands: a
|
|
1719
|
+
* server-side check (`if-shell -F '#{==:#{DBUS_SESSION_BUS_ADDRESS},…}'`) reads the target
|
|
1720
|
+
* session's environment before the global one, so on a server that already has a session with its own address (a
|
|
1721
|
+
* retry) it would compare that one and leave the global as it is. The value goes in argv,
|
|
1722
|
+
* unlike the seat environment (runEnvironmentCommand): a bus address is not a credential, and it was in the global
|
|
1723
|
+
* environment before #3253 too. A failure is a warning, never a failed start, and the next startServer tries again.
|
|
1724
|
+
* Panes and jobs the person's tmux configuration makes while the server starts (before this runs) keep no bus. */
|
|
1725
|
+
async restoreSessionBusForPanes() {
|
|
1726
|
+
if (process.platform !== "linux")
|
|
1727
|
+
return { ok: true };
|
|
1728
|
+
const key = "DBUS_SESSION_BUS_ADDRESS";
|
|
1729
|
+
const real = process.env[key];
|
|
1730
|
+
try {
|
|
1731
|
+
if ((await this.globalEnvironment())[key] === TMUX_SERVER_SESSION_BUS) {
|
|
1732
|
+
await this.run(real === undefined ? ["tmux", "set-environment", "-gu", key] : ["tmux", "set-environment", "-g", key, real]);
|
|
1733
|
+
}
|
|
1734
|
+
this.sessionBusRestorePending = false;
|
|
1735
|
+
}
|
|
1736
|
+
catch (error) {
|
|
1737
|
+
console.warn(`[tmux] Could not give the new terminal server's panes the session bus back: ${error.message}`);
|
|
1738
|
+
}
|
|
1739
|
+
return { ok: true };
|
|
1740
|
+
}
|
|
1494
1741
|
/** Linux only: run `tmux -D` as the command of a transient `systemd-run --user --scope`. systemd-run exits once the
|
|
1495
1742
|
* scope holds the backgrounded server, so its exit status says whether the scope was made. True when it was; false,
|
|
1496
1743
|
* with a log line giving the reason, when the start must fall back to the daemon's own cgroup. A start where no scope
|
|
@@ -1509,7 +1756,9 @@ export class TmuxAdapter {
|
|
|
1509
1756
|
this.scopeSkipLogged = true;
|
|
1510
1757
|
return fallback(unavailable);
|
|
1511
1758
|
}
|
|
1512
|
-
|
|
1759
|
+
// #3253: systemd-run itself needs the session bus (it reaches the manager through it or the runtime directory);
|
|
1760
|
+
// only the server inside the scope goes without.
|
|
1761
|
+
const server = TMUX_SERVER_LIMIT_PREFIX + TMUX_SERVER_NO_SESSION_BUS + posixJoinArgv(["tmux", ...this.serverArgs, "-D"]);
|
|
1513
1762
|
// systemd-run 254+ expands ${VAR} in the command's arguments (by default from 258, also for --scope): the
|
|
1514
1763
|
// socket path must reach /bin/sh exactly as given, so expansion is turned off where the option exists.
|
|
1515
1764
|
const scoped = (oomPolicy, literal) => posixJoinArgv(["systemd-run", "--user", "--scope",
|
|
@@ -1550,16 +1799,13 @@ export class TmuxAdapter {
|
|
|
1550
1799
|
}
|
|
1551
1800
|
}
|
|
1552
1801
|
}
|
|
1553
|
-
/** Before a command that would start a missing server itself (new-session), start it the way startServer does
|
|
1554
|
-
*
|
|
1802
|
+
/** Before a command that would start a missing server itself (new-session), start it the way startServer does, so that
|
|
1803
|
+
* first start also lands in the systemd user scope where one can be made (#2710) and its server process gets no
|
|
1804
|
+
* session bus (#3253). Linux only, with or without a user scope; elsewhere the caller's start stays. */
|
|
1555
1805
|
async startServerBeforeImplicitStart() {
|
|
1556
|
-
if (
|
|
1806
|
+
if (process.platform === "linux")
|
|
1557
1807
|
await this.startServer();
|
|
1558
1808
|
}
|
|
1559
|
-
/** Where startServer may put the server in a systemd user scope (#2710). */
|
|
1560
|
-
userScopePossible() {
|
|
1561
|
-
return this.userScopeUnavailable() === null;
|
|
1562
|
-
}
|
|
1563
1809
|
/** Why no systemd user scope is tried, or null. Only the environment is read. The scope is for a daemon that is itself
|
|
1564
1810
|
* a service of the systemd user manager (the manager sets MANAGERPID for its services; a process started by hand
|
|
1565
1811
|
* from a shell that inherited it, under such a service, also counts, which is harmless): restarting that unit no longer
|
|
@@ -1576,9 +1822,10 @@ export class TmuxAdapter {
|
|
|
1576
1822
|
return null;
|
|
1577
1823
|
}
|
|
1578
1824
|
async listSessions() {
|
|
1825
|
+
const startedIn = this.readServerEpoch();
|
|
1579
1826
|
try {
|
|
1580
1827
|
const output = await this.run(["tmux", "list-sessions", "-F", SESSION_FORMAT], `tmux list-sessions -F "${SESSION_FORMAT}"`);
|
|
1581
|
-
this.noteServer({ reachable: true });
|
|
1828
|
+
this.noteServer({ reachable: true }, startedIn);
|
|
1582
1829
|
return parseLines(output, parseSessionLine);
|
|
1583
1830
|
}
|
|
1584
1831
|
catch (err) {
|
|
@@ -1586,7 +1833,7 @@ export class TmuxAdapter {
|
|
|
1586
1833
|
// "Command failed:" line and stdout never decide it. Unknown and permission errors still throw the original.
|
|
1587
1834
|
const error = tmuxReportedError(err);
|
|
1588
1835
|
if (isNoServerError(error) || isTmuxTransportAbsentError(error)) {
|
|
1589
|
-
this.noteServer({ reachable: false, cause: serverDiagnostic(error) });
|
|
1836
|
+
this.noteServer({ reachable: false, cause: serverDiagnostic(error) }, startedIn);
|
|
1590
1837
|
return [];
|
|
1591
1838
|
}
|
|
1592
1839
|
throw err;
|
|
@@ -1644,23 +1891,24 @@ export class TmuxAdapter {
|
|
|
1644
1891
|
* fail closed rather than treating a probe failure as an answer.
|
|
1645
1892
|
*/
|
|
1646
1893
|
async probeSession(name) {
|
|
1894
|
+
const startedIn = this.readServerEpoch();
|
|
1647
1895
|
try {
|
|
1648
1896
|
// Use `tmux has-session` directly for reliable existence check — avoids
|
|
1649
1897
|
// parsing format-string output from `list-sessions` which can fail when
|
|
1650
1898
|
// tab delimiters are malformed across tmux versions.
|
|
1651
1899
|
const target = `=${name}`; // canonical session name, never a prefix lookup
|
|
1652
1900
|
await this.run(["tmux", "has-session", "-t", target], `tmux has-session -t ${shellQuote(target)}`);
|
|
1653
|
-
this.noteServer({ reachable: true });
|
|
1901
|
+
this.noteServer({ reachable: true }, startedIn);
|
|
1654
1902
|
return { state: "present" }; // exit 0 = session exists
|
|
1655
1903
|
}
|
|
1656
1904
|
catch (err) {
|
|
1657
1905
|
const error = tmuxReportedError(err);
|
|
1658
1906
|
if (isSessionAbsenceError(error)) {
|
|
1659
|
-
this.noteServer({ reachable: true }); // the server answered: the session is what is missing
|
|
1907
|
+
this.noteServer({ reachable: true }, startedIn); // the server answered: the session is what is missing
|
|
1660
1908
|
return { state: "absent" };
|
|
1661
1909
|
}
|
|
1662
1910
|
if (isNoServerError(error) || isTmuxTransportAbsentError(error)) {
|
|
1663
|
-
this.noteServer({ reachable: false, cause: serverDiagnostic(error) });
|
|
1911
|
+
this.noteServer({ reachable: false, cause: serverDiagnostic(error) }, startedIn);
|
|
1664
1912
|
return { state: "transport_unavailable", cause: error.message };
|
|
1665
1913
|
}
|
|
1666
1914
|
throw err;
|
|
@@ -1800,7 +2048,8 @@ export class TmuxAdapter {
|
|
|
1800
2048
|
legacyParts.push("-e", tmuxConfigQuote(`${k}=${v}`));
|
|
1801
2049
|
const warnings = [];
|
|
1802
2050
|
let scopedCommand;
|
|
1803
|
-
const notices = launchOpts?.failedStart ? { failedStart: launchOpts.failedStart } : {}
|
|
2051
|
+
const notices = { ...(launchOpts?.failedStart ? { failedStart: launchOpts.failedStart } : {}),
|
|
2052
|
+
...(launchOpts?.groupingFailed ? { groupingFailed: launchOpts.groupingFailed } : {}) };
|
|
1804
2053
|
try {
|
|
1805
2054
|
scopedCommand = await this.scopedLaunchCommand(seatEnv, undefined, warnings, launchOpts?.processLimitsMode, notices);
|
|
1806
2055
|
}
|
|
@@ -1859,18 +2108,37 @@ export class TmuxAdapter {
|
|
|
1859
2108
|
// never stops for the limit: when systemd-run fails after the check passed, the pane's command exits before
|
|
1860
2109
|
// entering the scope, and the seat starts again without the limit, with the warning (in the same pane when tmux
|
|
1861
2110
|
// kept it, else in a new session of the same name); when the start can't be told, nothing is run again.
|
|
2111
|
+
const startAgain = async (more) => {
|
|
2112
|
+
const kept = await this.probeSession(name).catch(() => ({ state: "unknown" }));
|
|
2113
|
+
if (kept.state !== "present")
|
|
2114
|
+
return this.createSessionUnchecked(name, cwd, env, more);
|
|
2115
|
+
const replacement = notices.replacement;
|
|
2116
|
+
const retried = await this.respawnPaneUnchecked(created, replacement?.command, {
|
|
2117
|
+
...(cwd != null ? { cwd } : {}), env: seatEnv, ...more,
|
|
2118
|
+
...(replacement ? { retryLoginShell: replacement.shell } : {}),
|
|
2119
|
+
});
|
|
2120
|
+
if (!retried.ok && retried.processLimits) {
|
|
2121
|
+
return processLimitsNotAppliedResult(new SeatProcessLimitsNotApplied(retried.processLimits), await this.removeRefusedSession(name, made));
|
|
2122
|
+
}
|
|
2123
|
+
return retried;
|
|
2124
|
+
};
|
|
2125
|
+
const pane = /^%\d+$/.test(created) ? created : null;
|
|
1862
2126
|
if (notices.capped) {
|
|
1863
|
-
const outcome = await this.scopeStartOutcome(
|
|
2127
|
+
const outcome = await this.scopeStartOutcome(pane, launchOpts?.processLimitsMode, notices, warnings);
|
|
1864
2128
|
if (outcome && "refuse" in outcome) {
|
|
1865
2129
|
return processLimitsNotAppliedResult(new SeatProcessLimitsNotApplied(outcome.refuse), await this.removeRefusedSession(name, made));
|
|
1866
2130
|
}
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
2131
|
+
// #80: the same launch mode, so the ungrouped scope is checked exactly as without grouping.
|
|
2132
|
+
if (outcome && "retryUngrouped" in outcome) {
|
|
2133
|
+
return startAgain({ ...(launchOpts?.processLimitsMode ? { processLimitsMode: launchOpts.processLimitsMode } : {}), groupingFailed: outcome.retryUngrouped });
|
|
2134
|
+
}
|
|
2135
|
+
if (outcome)
|
|
2136
|
+
return startAgain({ processLimitsMode: "recovery", failedStart: outcome.retryUncapped });
|
|
2137
|
+
}
|
|
2138
|
+
else if (notices.groupedSlice) {
|
|
2139
|
+
const groupingFailed = await this.groupedStartOutcome(pane, notices, warnings);
|
|
2140
|
+
if (groupingFailed) {
|
|
2141
|
+
return startAgain({ ...(launchOpts?.processLimitsMode ? { processLimitsMode: launchOpts.processLimitsMode } : {}), groupingFailed });
|
|
1874
2142
|
}
|
|
1875
2143
|
}
|
|
1876
2144
|
// A tmux server started from a Claude Code session or Herdr pane hands
|
|
@@ -2124,8 +2392,11 @@ export class TmuxAdapter {
|
|
|
2124
2392
|
}, false, "keys");
|
|
2125
2393
|
}
|
|
2126
2394
|
async sendKeysUnchecked(target, keys) {
|
|
2395
|
+
// Escaped here, at the one place a key argument becomes a tmux argument, so both transports read
|
|
2396
|
+
// the same argv and neither can be the one that splits a key into two commands.
|
|
2397
|
+
const sent = keys.map(escapeTmuxCommandSeparator);
|
|
2127
2398
|
try {
|
|
2128
|
-
await this.run(["tmux", "send-keys", "-t", target, ...
|
|
2399
|
+
await this.run(["tmux", "send-keys", "-t", target, ...sent], `tmux send-keys -t ${shellQuote(target)} ${sent.map(shellQuote).join(" ")}`);
|
|
2129
2400
|
return { ok: true };
|
|
2130
2401
|
}
|
|
2131
2402
|
catch (err) {
|
|
@@ -2255,11 +2526,13 @@ export class TmuxAdapter {
|
|
|
2255
2526
|
return kill();
|
|
2256
2527
|
return this.deliveryGuard.input(this.freshManaged.get(name)?.nodeId ?? name, kill);
|
|
2257
2528
|
}, true);
|
|
2258
|
-
|
|
2529
|
+
// #2940: a failure always says how far the stop got, so "no effect" can be proven without a checked stop.
|
|
2530
|
+
return beforeEffect || !result.ok ? { ...result, stopPhase } : result;
|
|
2259
2531
|
}
|
|
2260
2532
|
if (beforeEffect)
|
|
2261
2533
|
return { ok: false, code: "guard_unavailable", message: "Checked stop requires the delivery guard.", stopPhase };
|
|
2262
|
-
|
|
2534
|
+
const result = await this.killSessionUnchecked(name, undefined, phase => { stopPhase = phase; });
|
|
2535
|
+
return result.ok ? result : { ...result, stopPhase };
|
|
2263
2536
|
}
|
|
2264
2537
|
/** The session a seat's stop would end is the seat's own: every session OpenRig creates for a seat carries its node's
|
|
2265
2538
|
* OPENRIG_NODE_ID. One without it (adopted, bound or discovered from outside), or with another seat's, is left
|
|
@@ -2368,10 +2641,13 @@ export class TmuxAdapter {
|
|
|
2368
2641
|
argv.push("-e", `${k}=${v}`);
|
|
2369
2642
|
const warnings = [];
|
|
2370
2643
|
let scopedCommand;
|
|
2371
|
-
const notices = opts?.failedStart ? { failedStart: opts.failedStart } : {}
|
|
2644
|
+
const notices = { ...(opts?.failedStart ? { failedStart: opts.failedStart } : {}),
|
|
2645
|
+
...(opts?.groupingFailed ? { groupingFailed: opts.groupingFailed } : {}) };
|
|
2646
|
+
// A bare respawn (no seat environment) keeps a limit with `keepLimitOf`, and joins the rig's slice with either.
|
|
2647
|
+
const bareSeat = opts?.env ? undefined : opts?.keepLimitOf ?? opts?.groupSeatOf;
|
|
2372
2648
|
try {
|
|
2373
|
-
scopedCommand =
|
|
2374
|
-
? await this.keptScopeCommand(
|
|
2649
|
+
scopedCommand = bareSeat
|
|
2650
|
+
? await this.keptScopeCommand(bareSeat, exact, command, warnings, notices, Boolean(opts?.keepLimitOf))
|
|
2375
2651
|
: await this.scopedLaunchCommand(opts?.env ?? {}, command, warnings, opts?.processLimitsMode, notices);
|
|
2376
2652
|
}
|
|
2377
2653
|
catch (error) {
|
|
@@ -2379,11 +2655,10 @@ export class TmuxAdapter {
|
|
|
2379
2655
|
return processLimitsNotAppliedResult(error);
|
|
2380
2656
|
throw error;
|
|
2381
2657
|
}
|
|
2382
|
-
//
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
argv.push(command);
|
|
2658
|
+
// A configured command remains one argument for tmux's shell. An explicit login shell on retry
|
|
2659
|
+
// replaces the failed wrapper even when the scoped launch environment could not be prepared.
|
|
2660
|
+
const launchArgv = scopedCommand ?? (command ? [command] : opts?.retryLoginShell ? [opts.retryLoginShell, "-l"] : []);
|
|
2661
|
+
argv.push(...launchArgv);
|
|
2387
2662
|
const quote = opts?.env && Object.keys(opts.env).length ? tmuxConfigQuote : shellQuote;
|
|
2388
2663
|
const legacyRespawn = ["tmux", "respawn-pane", "-t", quote(exact)];
|
|
2389
2664
|
if (opts?.cwd != null)
|
|
@@ -2391,10 +2666,7 @@ export class TmuxAdapter {
|
|
|
2391
2666
|
if (opts?.env)
|
|
2392
2667
|
for (const [k, v] of Object.entries(opts.env))
|
|
2393
2668
|
legacyRespawn.push("-e", quote(`${k}=${v}`));
|
|
2394
|
-
|
|
2395
|
-
legacyRespawn.push(...scopedCommand.map(quote));
|
|
2396
|
-
else if (command != null && command.length > 0)
|
|
2397
|
-
legacyRespawn.push(quote(command));
|
|
2669
|
+
legacyRespawn.push(...launchArgv.map(quote));
|
|
2398
2670
|
// The successor starts from the session environment: exclude inherited
|
|
2399
2671
|
// parent-session identity there first (sessions made before this existed).
|
|
2400
2672
|
// A failure here is a warning; the respawn goes ahead as it did before.
|
|
@@ -2418,9 +2690,16 @@ export class TmuxAdapter {
|
|
|
2418
2690
|
const outcome = await this.scopeStartOutcome(exact, opts?.keepLimitOf ? "recovery" : opts?.processLimitsMode, notices, warnings);
|
|
2419
2691
|
if (outcome && "refuse" in outcome)
|
|
2420
2692
|
return processLimitsNotAppliedResult(new SeatProcessLimitsNotApplied(outcome.refuse));
|
|
2693
|
+
if (outcome && "retryUngrouped" in outcome)
|
|
2694
|
+
return this.respawnPaneUnchecked(paneTarget, command, { ...opts, groupingFailed: outcome.retryUngrouped });
|
|
2421
2695
|
if (outcome)
|
|
2422
2696
|
return this.respawnPaneUnchecked(paneTarget, command, { ...opts, failedStart: outcome.retryUncapped });
|
|
2423
2697
|
}
|
|
2698
|
+
else if (notices.groupedSlice) {
|
|
2699
|
+
const groupingFailed = await this.groupedStartOutcome(exact, notices, warnings);
|
|
2700
|
+
if (groupingFailed)
|
|
2701
|
+
return this.respawnPaneUnchecked(paneTarget, command, { ...opts, groupingFailed });
|
|
2702
|
+
}
|
|
2424
2703
|
return this.launched(warnings, notices);
|
|
2425
2704
|
}
|
|
2426
2705
|
catch (err) {
|