@openrig/cli 0.7.23 → 0.7.24
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/claude-hook-bridge.cjs +575 -6
- package/daemon/assets/claude-hook-bridge.d.cts +5 -0
- package/daemon/assets/claude-permission-policies.cjs +4 -3
- package/daemon/assets/guidance/openrig-context-entry.md +1 -0
- package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +4 -3
- package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +3 -2
- package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/README.md +64 -9
- package/daemon/assets/plugins/openrig/hooks/claude.json +39 -0
- package/daemon/assets/plugins/openrig/hooks/codex.json +27 -0
- package/daemon/assets/plugins/openrig/hooks/scripts/claude-hook-bridge.cjs +715 -0
- package/daemon/assets/plugins/openrig/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/scripts/run-rig.cjs +30 -0
- package/daemon/assets/plugins/openrig/skills/working-with-an-openrig-team/SKILL.md +71 -9
- package/daemon/assets/plugins/openrig-codex/.agents/plugins/marketplace.json +15 -0
- package/daemon/assets/plugins/openrig-codex/.codex-plugin/plugin.json +42 -0
- package/daemon/assets/plugins/openrig-codex/LICENSE +200 -0
- package/daemon/assets/plugins/openrig-codex/assets/logo.svg +1 -0
- package/daemon/assets/plugins/openrig-codex/hooks/codex.json +27 -0
- package/daemon/assets/plugins/openrig-codex/hooks/scripts/claude-hook-bridge.cjs +715 -0
- package/daemon/assets/plugins/openrig-codex/skills/working-with-an-openrig-team/SKILL.md +175 -0
- package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/README.md +10 -2
- package/daemon/assets/plugins/openrig-core/hooks/claude.json +9 -0
- package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +37 -0
- package/daemon/assets/plugins/openrig-core/hooks/scripts/compaction-restore-bridge.cjs +3 -1
- package/daemon/assets/plugins/openrig-core/hooks/scripts/permission-answer.cjs +270 -0
- package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus.cjs +24 -6
- package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/precompact-hook.mjs +7 -8
- package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/restore-from-jsonl.mjs +45 -5
- package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +4 -2
- package/daemon/assets/plugins/openrig-core/skills/refocusing/scripts/trace-to-root.py +163 -23
- package/daemon/assets/skills/rigs/SKILL.md +122 -21
- 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 +113 -12
- package/daemon/context-packs/reference/acp-agents.md +9 -2
- package/daemon/context-packs/reference/getting-started.md +31 -7
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +8 -0
- package/daemon/context-packs/reference/tmux-servers.md +16 -0
- package/daemon/context-packs/reference/whats-new.md +106 -12
- package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
- package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
- package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
- package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/claude-compaction-restore/scripts/precompact-hook.mjs +7 -8
- package/daemon/context-packs/skills/claude-compaction-restore/scripts/restore-from-jsonl.mjs +45 -5
- package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/working-with-an-openrig-team/SKILL.md +71 -9
- 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 +4 -2
- 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 +163 -23
- 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 +10 -1
- package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +231 -33
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/claude-resume-launch.d.ts +3 -0
- package/daemon/dist/adapters/claude-resume-launch.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume-launch.js +5 -0
- package/daemon/dist/adapters/claude-resume-launch.js.map +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume.js +59 -21
- package/daemon/dist/adapters/claude-resume.js.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts +22 -0
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.js +53 -16
- package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/pi-community-runtime-adapter.d.ts +9 -0
- package/daemon/dist/adapters/pi-community-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-community-runtime-adapter.js +6 -0
- package/daemon/dist/adapters/pi-community-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts +3 -0
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.js +9 -3
- package/daemon/dist/adapters/pi-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +52 -9
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +102 -19
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/build-info.js +3 -3
- package/daemon/dist/conversation-key-surface.d.ts +2 -0
- package/daemon/dist/conversation-key-surface.d.ts.map +1 -0
- package/daemon/dist/conversation-key-surface.js +5 -0
- package/daemon/dist/conversation-key-surface.js.map +1 -0
- package/daemon/dist/daemon-shutdown.d.ts +3 -0
- package/daemon/dist/daemon-shutdown.d.ts.map +1 -1
- package/daemon/dist/daemon-shutdown.js +5 -0
- 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 +8 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrations/179_community_harness_runtime_switches.d.ts +14 -0
- package/daemon/dist/db/migrations/179_community_harness_runtime_switches.d.ts.map +1 -0
- package/daemon/dist/db/migrations/179_community_harness_runtime_switches.js +54 -0
- package/daemon/dist/db/migrations/179_community_harness_runtime_switches.js.map +1 -0
- package/daemon/dist/db/migrations/195_workflow_start_operations.d.ts +4 -0
- package/daemon/dist/db/migrations/195_workflow_start_operations.d.ts.map +1 -0
- package/daemon/dist/db/migrations/195_workflow_start_operations.js +13 -0
- package/daemon/dist/db/migrations/195_workflow_start_operations.js.map +1 -0
- package/daemon/dist/db/migrations/196_queue_item_evidence_ref_roots.d.ts +5 -0
- package/daemon/dist/db/migrations/196_queue_item_evidence_ref_roots.d.ts.map +1 -0
- package/daemon/dist/db/migrations/196_queue_item_evidence_ref_roots.js +7 -0
- package/daemon/dist/db/migrations/196_queue_item_evidence_ref_roots.js.map +1 -0
- package/daemon/dist/db/migrations/199_queue_items_native_permission_index.d.ts +9 -0
- package/daemon/dist/db/migrations/199_queue_items_native_permission_index.d.ts.map +1 -0
- package/daemon/dist/db/migrations/199_queue_items_native_permission_index.js +14 -0
- package/daemon/dist/db/migrations/199_queue_items_native_permission_index.js.map +1 -0
- package/daemon/dist/domain/agent-manifest.d.ts.map +1 -1
- package/daemon/dist/domain/agent-manifest.js +8 -0
- package/daemon/dist/domain/agent-manifest.js.map +1 -1
- package/daemon/dist/domain/background-process-evidence.d.ts +23 -0
- package/daemon/dist/domain/background-process-evidence.d.ts.map +1 -0
- package/daemon/dist/domain/background-process-evidence.js +81 -0
- package/daemon/dist/domain/background-process-evidence.js.map +1 -0
- package/daemon/dist/domain/chat-repository.d.ts +1 -1
- package/daemon/dist/domain/chat-repository.d.ts.map +1 -1
- package/daemon/dist/domain/chat-repository.js +2 -2
- package/daemon/dist/domain/chat-repository.js.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts +16 -6
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.js +13 -8
- package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
- package/daemon/dist/domain/codex-member-permissions.d.ts +35 -0
- package/daemon/dist/domain/codex-member-permissions.d.ts.map +1 -1
- package/daemon/dist/domain/codex-member-permissions.js +106 -1
- package/daemon/dist/domain/codex-member-permissions.js.map +1 -1
- package/daemon/dist/domain/community-harness-presets.d.ts +9 -0
- package/daemon/dist/domain/community-harness-presets.d.ts.map +1 -1
- package/daemon/dist/domain/community-harness-presets.js +25 -1
- package/daemon/dist/domain/community-harness-presets.js.map +1 -1
- package/daemon/dist/domain/current-work.d.ts +31 -4
- package/daemon/dist/domain/current-work.d.ts.map +1 -1
- package/daemon/dist/domain/current-work.js +48 -3
- package/daemon/dist/domain/current-work.js.map +1 -1
- package/daemon/dist/domain/feed/attention-aggregator.d.ts +5 -5
- package/daemon/dist/domain/feed/attention-aggregator.d.ts.map +1 -1
- package/daemon/dist/domain/feed/attention-aggregator.js +10 -4
- package/daemon/dist/domain/feed/attention-aggregator.js.map +1 -1
- package/daemon/dist/domain/files/path-safety.d.ts +7 -0
- package/daemon/dist/domain/files/path-safety.d.ts.map +1 -1
- package/daemon/dist/domain/files/path-safety.js +23 -0
- package/daemon/dist/domain/files/path-safety.js.map +1 -1
- package/daemon/dist/domain/frontmatter.d.ts.map +1 -1
- package/daemon/dist/domain/frontmatter.js +4 -2
- package/daemon/dist/domain/frontmatter.js.map +1 -1
- package/daemon/dist/domain/gateway/destination-resolver.d.ts +3 -0
- package/daemon/dist/domain/gateway/destination-resolver.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/destination-resolver.js +9 -0
- package/daemon/dist/domain/gateway/destination-resolver.js.map +1 -1
- package/daemon/dist/domain/gateway/human-quiet-windows.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/human-quiet-windows.js +2 -1
- package/daemon/dist/domain/gateway/human-quiet-windows.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.d.ts +6 -1
- package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.js +4 -1
- package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.d.ts +3 -0
- package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.js +3 -2
- package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/outbound-driver.d.ts +4 -0
- package/daemon/dist/domain/gateway/slack/outbound-driver.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/outbound-driver.js +1 -0
- package/daemon/dist/domain/gateway/slack/outbound-driver.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts +2 -0
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.js +1 -0
- package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +10 -2
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.js +60 -6
- package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts +3 -13
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js +70 -22
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
- package/daemon/dist/domain/health-detectors.d.ts +4 -0
- package/daemon/dist/domain/health-detectors.d.ts.map +1 -1
- package/daemon/dist/domain/health-detectors.js +4 -1
- package/daemon/dist/domain/health-detectors.js.map +1 -1
- package/daemon/dist/domain/health-diagnosis.d.ts.map +1 -1
- package/daemon/dist/domain/health-diagnosis.js +14 -9
- package/daemon/dist/domain/health-diagnosis.js.map +1 -1
- package/daemon/dist/domain/health-passive-ceremony.d.ts +2 -0
- package/daemon/dist/domain/health-passive-ceremony.d.ts.map +1 -1
- package/daemon/dist/domain/health-passive-ceremony.js +71 -13
- package/daemon/dist/domain/health-passive-ceremony.js.map +1 -1
- package/daemon/dist/domain/history-query.d.ts +1 -1
- package/daemon/dist/domain/history-query.d.ts.map +1 -1
- package/daemon/dist/domain/history-query.js +1 -2
- package/daemon/dist/domain/history-query.js.map +1 -1
- package/daemon/dist/domain/hosts/read-through.d.ts.map +1 -1
- package/daemon/dist/domain/hosts/read-through.js +6 -0
- package/daemon/dist/domain/hosts/read-through.js.map +1 -1
- package/daemon/dist/domain/managed-restore-read-access.d.ts +18 -0
- package/daemon/dist/domain/managed-restore-read-access.d.ts.map +1 -1
- package/daemon/dist/domain/managed-restore-read-access.js +41 -1
- package/daemon/dist/domain/managed-restore-read-access.js.map +1 -1
- package/daemon/dist/domain/mission-control/audit-browse.d.ts +1 -1
- package/daemon/dist/domain/mission-control/audit-browse.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/audit-browse.js +3 -6
- package/daemon/dist/domain/mission-control/audit-browse.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 +21 -4
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
- package/daemon/dist/domain/native-resume-probe.d.ts +22 -0
- package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +30 -0
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/network/network-requests.d.ts +3 -2
- package/daemon/dist/domain/network/network-requests.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-requests.js +34 -8
- package/daemon/dist/domain/network/network-requests.js.map +1 -1
- package/daemon/dist/domain/node-launcher.d.ts +2 -2
- package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/node-launcher.js +9 -7
- package/daemon/dist/domain/node-launcher.js.map +1 -1
- package/daemon/dist/domain/pane-cutover.d.ts +36 -9
- package/daemon/dist/domain/pane-cutover.d.ts.map +1 -1
- package/daemon/dist/domain/pane-cutover.js +82 -13
- package/daemon/dist/domain/pane-cutover.js.map +1 -1
- package/daemon/dist/domain/projection-planner.d.ts +17 -3
- package/daemon/dist/domain/projection-planner.d.ts.map +1 -1
- package/daemon/dist/domain/projection-planner.js +9 -1
- package/daemon/dist/domain/projection-planner.js.map +1 -1
- package/daemon/dist/domain/queue-destination-check.d.ts +8 -0
- package/daemon/dist/domain/queue-destination-check.d.ts.map +1 -1
- package/daemon/dist/domain/queue-destination-check.js +17 -4
- package/daemon/dist/domain/queue-destination-check.js.map +1 -1
- package/daemon/dist/domain/queue-erasure.js +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +20 -1
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +93 -14
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts +23 -3
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +618 -13
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/queue-transfer-export.d.ts +1 -1
- package/daemon/dist/domain/queue-transfer-export.d.ts.map +1 -1
- package/daemon/dist/domain/queue-transfer-export.js +3 -1
- package/daemon/dist/domain/queue-transfer-export.js.map +1 -1
- package/daemon/dist/domain/queue-transition-log.d.ts +6 -0
- package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
- package/daemon/dist/domain/queue-transition-log.js +1 -1
- package/daemon/dist/domain/queue-transition-log.js.map +1 -1
- package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
- package/daemon/dist/domain/queue-waiting.js +7 -0
- package/daemon/dist/domain/queue-waiting.js.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +20 -4
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/rehydrate-eligibility.d.ts +8 -0
- package/daemon/dist/domain/rehydrate-eligibility.d.ts.map +1 -1
- package/daemon/dist/domain/rehydrate-eligibility.js +61 -9
- package/daemon/dist/domain/rehydrate-eligibility.js.map +1 -1
- package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
- package/daemon/dist/domain/restore-check-service.js +5 -2
- package/daemon/dist/domain/restore-check-service.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +3 -0
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +42 -0
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/return-route.d.ts +13 -2
- package/daemon/dist/domain/return-route.d.ts.map +1 -1
- package/daemon/dist/domain/return-route.js +30 -1
- package/daemon/dist/domain/return-route.js.map +1 -1
- package/daemon/dist/domain/rig-lifecycle-service.d.ts +1 -0
- package/daemon/dist/domain/rig-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/rig-lifecycle-service.js +23 -2
- package/daemon/dist/domain/rig-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/rig-mode/operating-posture.d.ts.map +1 -1
- package/daemon/dist/domain/rig-mode/operating-posture.js +23 -4
- package/daemon/dist/domain/rig-mode/operating-posture.js.map +1 -1
- package/daemon/dist/domain/rig-teardown.d.ts +30 -2
- package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
- package/daemon/dist/domain/rig-teardown.js +76 -8
- package/daemon/dist/domain/rig-teardown.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts +11 -9
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +100 -43
- package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-preflight.js +26 -3
- package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
- package/daemon/dist/domain/roster-ready-notice.d.ts +11 -0
- package/daemon/dist/domain/roster-ready-notice.d.ts.map +1 -0
- package/daemon/dist/domain/roster-ready-notice.js +35 -0
- package/daemon/dist/domain/roster-ready-notice.js.map +1 -0
- package/daemon/dist/domain/runner-permissions.d.ts +140 -5
- package/daemon/dist/domain/runner-permissions.d.ts.map +1 -1
- package/daemon/dist/domain/runner-permissions.js +593 -16
- package/daemon/dist/domain/runner-permissions.js.map +1 -1
- package/daemon/dist/domain/runtime-adapter.d.ts +3 -1
- package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-exit.d.ts +79 -0
- package/daemon/dist/domain/runtime-exit.d.ts.map +1 -0
- package/daemon/dist/domain/runtime-exit.js +301 -0
- package/daemon/dist/domain/runtime-exit.js.map +1 -0
- package/daemon/dist/domain/runtime-switch-materials.d.ts +4 -1
- package/daemon/dist/domain/runtime-switch-materials.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-switch-materials.js +66 -13
- package/daemon/dist/domain/runtime-switch-materials.js.map +1 -1
- package/daemon/dist/domain/scope/attestation-lineage.generated.js +2 -2
- package/daemon/dist/domain/scope/attestation-lineage.generated.js.map +1 -1
- package/daemon/dist/domain/scope/logical-checkbox.d.ts.map +1 -1
- package/daemon/dist/domain/scope/logical-checkbox.js +18 -0
- package/daemon/dist/domain/scope/logical-checkbox.js.map +1 -1
- package/daemon/dist/domain/scope/scaffold-placeholder.js +2 -2
- package/daemon/dist/domain/scope/scaffold-placeholder.js.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.js +5 -2
- package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-handover-service.d.ts +5 -2
- package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-handover-service.js +30 -6
- package/daemon/dist/domain/seat-handover-service.js.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.d.ts +18 -0
- package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.js +155 -6
- package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-launch-environment.d.ts +6 -0
- package/daemon/dist/domain/seat-launch-environment.d.ts.map +1 -1
- package/daemon/dist/domain/seat-launch-environment.js +28 -4
- package/daemon/dist/domain/seat-launch-environment.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +37 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +44 -8
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/seat-pool-executor.d.ts +61 -3
- package/daemon/dist/domain/seat-pool-executor.d.ts.map +1 -1
- package/daemon/dist/domain/seat-pool-executor.js +735 -59
- package/daemon/dist/domain/seat-pool-executor.js.map +1 -1
- package/daemon/dist/domain/seat-pool-slots.d.ts +24 -0
- package/daemon/dist/domain/seat-pool-slots.d.ts.map +1 -1
- package/daemon/dist/domain/seat-pool-slots.js +50 -0
- package/daemon/dist/domain/seat-pool-slots.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts +2 -1
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.js +68 -20
- package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +9 -2
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/skill-catalog.d.ts.map +1 -1
- package/daemon/dist/domain/skill-catalog.js +24 -10
- package/daemon/dist/domain/skill-catalog.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts +5 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +43 -7
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.d.ts +1 -0
- package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.js +5 -0
- package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
- package/daemon/dist/domain/stream-reader-actions.d.ts +23 -0
- package/daemon/dist/domain/stream-reader-actions.d.ts.map +1 -1
- package/daemon/dist/domain/stream-reader-actions.js +43 -0
- package/daemon/dist/domain/stream-reader-actions.js.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.d.ts +24 -3
- package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.js +54 -23
- package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
- package/daemon/dist/domain/terminal/earlier-tile-attach-0723.d.ts +2 -0
- package/daemon/dist/domain/terminal/earlier-tile-attach-0723.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/earlier-tile-attach-0723.js +48 -0
- package/daemon/dist/domain/terminal/earlier-tile-attach-0723.js.map +1 -0
- package/daemon/dist/domain/terminal/rex-agent-status.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/rex-agent-status.js +5 -2
- package/daemon/dist/domain/terminal/rex-agent-status.js.map +1 -1
- package/daemon/dist/domain/terminal/tile-attach.d.ts +11 -5
- package/daemon/dist/domain/terminal/tile-attach.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/tile-attach.js +32 -12
- package/daemon/dist/domain/terminal/tile-attach.js.map +1 -1
- package/daemon/dist/domain/transcript-redaction.d.ts +10 -8
- package/daemon/dist/domain/transcript-redaction.d.ts.map +1 -1
- package/daemon/dist/domain/transcript-redaction.js +51 -22
- package/daemon/dist/domain/transcript-redaction.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +7 -1
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js +3 -0
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/whoami-service.d.ts +11 -0
- package/daemon/dist/domain/whoami-service.d.ts.map +1 -1
- package/daemon/dist/domain/whoami-service.js +13 -0
- package/daemon/dist/domain/whoami-service.js.map +1 -1
- package/daemon/dist/domain/workflow-reconciliation.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-reconciliation.js +9 -0
- package/daemon/dist/domain/workflow-reconciliation.js.map +1 -1
- package/daemon/dist/domain/workflow-runtime.d.ts +2 -0
- package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-runtime.js +45 -2
- package/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/daemon/dist/routes/activity.d.ts.map +1 -1
- package/daemon/dist/routes/activity.js +59 -2
- 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 +26 -9
- package/daemon/dist/routes/compaction.js.map +1 -1
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +64 -25
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/require-sender-identity.d.ts +15 -0
- package/daemon/dist/routes/require-sender-identity.d.ts.map +1 -1
- package/daemon/dist/routes/require-sender-identity.js +51 -5
- package/daemon/dist/routes/require-sender-identity.js.map +1 -1
- package/daemon/dist/routes/seat.js +6 -0
- package/daemon/dist/routes/seat.js.map +1 -1
- package/daemon/dist/routes/stream.d.ts.map +1 -1
- package/daemon/dist/routes/stream.js +28 -1
- package/daemon/dist/routes/stream.js.map +1 -1
- package/daemon/dist/routes/workflow.d.ts.map +1 -1
- package/daemon/dist/routes/workflow.js +48 -41
- package/daemon/dist/routes/workflow.js.map +1 -1
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +17 -1
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +34 -6
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/dist/transcript-redaction-surface.d.ts +2 -0
- package/daemon/dist/transcript-redaction-surface.d.ts.map +1 -0
- package/daemon/dist/transcript-redaction-surface.js +2 -0
- package/daemon/dist/transcript-redaction-surface.js.map +1 -0
- package/daemon/docs/reference/acp-agents.md +9 -2
- package/daemon/docs/reference/agent-spec.md +22 -1
- package/daemon/docs/reference/agent-startup-guide.md +10 -0
- package/daemon/docs/reference/community-harness-examples/cursor/cursor.yaml +3 -1
- package/daemon/docs/reference/community-harness-presets.md +27 -2
- package/daemon/docs/reference/daemon-http-clients.md +57 -0
- package/daemon/docs/reference/developing.md +3 -2
- package/daemon/docs/reference/getting-started.md +31 -7
- package/daemon/docs/reference/harness-runner-contract.md +72 -0
- package/daemon/docs/reference/hosted-members.md +21 -2
- package/daemon/docs/reference/network-connector.md +32 -3
- package/daemon/docs/reference/quickstart.md +4 -4
- package/daemon/docs/reference/refocus-channel.md +48 -0
- package/daemon/docs/reference/rig-bundle.md +11 -1
- package/daemon/docs/reference/rig-spec.md +8 -0
- package/daemon/docs/reference/seat-node-targeting.md +10 -0
- package/daemon/docs/reference/seat-pools.md +76 -10
- package/daemon/docs/reference/slack-app-setup.md +15 -0
- package/daemon/docs/reference/terminal-sessions.md +71 -3
- package/daemon/docs/reference/tmux-servers.md +16 -0
- package/daemon/docs/reference/whats-new.md +106 -12
- package/daemon/specs/agents/shared/skills/core/working-with-an-openrig-team/SKILL.md +71 -9
- package/daemon/specs/rigs/launch/factory/guidance/lead-first-move.md +4 -1
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +2 -1
- package/daemon/specs/rigs/launch/starter/guidance/lead-first-move.md +4 -1
- package/dist/bin-wrapper.d.ts.map +1 -1
- package/dist/bin-wrapper.js +24 -5
- package/dist/bin-wrapper.js.map +1 -1
- package/dist/build-info.js +3 -3
- package/dist/client.d.ts +4 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +7 -1
- package/dist/client.js.map +1 -1
- package/dist/commands/add.js +1 -1
- package/dist/commands/add.js.map +1 -1
- package/dist/commands/agent.js +1 -1
- package/dist/commands/agent.js.map +1 -1
- package/dist/commands/bundle.d.ts.map +1 -1
- package/dist/commands/bundle.js +18 -4
- package/dist/commands/bundle.js.map +1 -1
- package/dist/commands/create.d.ts.map +1 -1
- package/dist/commands/create.js +6 -2
- package/dist/commands/create.js.map +1 -1
- package/dist/commands/down.d.ts.map +1 -1
- package/dist/commands/down.js +12 -1
- package/dist/commands/down.js.map +1 -1
- package/dist/commands/expand.js +1 -1
- package/dist/commands/expand.js.map +1 -1
- package/dist/commands/fork.js +1 -1
- package/dist/commands/fork.js.map +1 -1
- package/dist/commands/grow.d.ts.map +1 -1
- package/dist/commands/grow.js +9 -4
- package/dist/commands/grow.js.map +1 -1
- package/dist/commands/import.js +1 -1
- package/dist/commands/import.js.map +1 -1
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/mcp.js +57 -22
- package/dist/commands/mcp.js.map +1 -1
- package/dist/commands/network.d.ts +2 -3
- package/dist/commands/network.d.ts.map +1 -1
- package/dist/commands/network.js +54 -9
- package/dist/commands/network.js.map +1 -1
- package/dist/commands/ps.d.ts +1 -0
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +22 -19
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue.d.ts +2 -0
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +29 -6
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/reconcile-session.js +1 -1
- package/dist/commands/reconcile-session.js.map +1 -1
- package/dist/commands/restore.js +1 -1
- package/dist/commands/restore.js.map +1 -1
- package/dist/commands/rig.js +2 -2
- package/dist/commands/rig.js.map +1 -1
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +55 -16
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/skill.js +1 -1
- package/dist/commands/skill.js.map +1 -1
- package/dist/commands/start.d.ts.map +1 -1
- package/dist/commands/start.js +3 -2
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/terminal.d.ts.map +1 -1
- package/dist/commands/terminal.js +20 -4
- package/dist/commands/terminal.js.map +1 -1
- package/dist/commands/up.d.ts.map +1 -1
- package/dist/commands/up.js +2 -1
- package/dist/commands/up.js.map +1 -1
- package/dist/commands/whoami.d.ts.map +1 -1
- package/dist/commands/whoami.js +6 -0
- package/dist/commands/whoami.js.map +1 -1
- package/dist/commands/workflow-follow.d.ts.map +1 -1
- package/dist/commands/workflow-follow.js +37 -34
- package/dist/commands/workflow-follow.js.map +1 -1
- package/dist/commands/workflow-render.d.ts +1 -1
- package/dist/commands/workflow-render.d.ts.map +1 -1
- package/dist/commands/workflow-render.js +2 -7
- package/dist/commands/workflow-render.js.map +1 -1
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +22 -2
- package/dist/commands/workflow.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts +24 -0
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +45 -8
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/lib/bundle-source.d.ts +4 -0
- package/dist/lib/bundle-source.d.ts.map +1 -1
- package/dist/lib/bundle-source.js +14 -2
- package/dist/lib/bundle-source.js.map +1 -1
- package/dist/lib/context-git.js +2 -2
- package/dist/lib/context-git.js.map +1 -1
- package/dist/lib/frontmatter.d.ts.map +1 -1
- package/dist/lib/frontmatter.js +4 -2
- package/dist/lib/frontmatter.js.map +1 -1
- package/dist/lib/scope/attestation-lineage.js +2 -2
- package/dist/lib/scope/attestation-lineage.js.map +1 -1
- package/dist/lib/scope/logical-checkbox.d.ts.map +1 -1
- package/dist/lib/scope/logical-checkbox.js +18 -0
- package/dist/lib/scope/logical-checkbox.js.map +1 -1
- package/dist/lib/scope/progress-edit.js +1 -1
- package/dist/lib/scope/progress-edit.js.map +1 -1
- package/dist/lib/scope/scaffold-placeholder.js +2 -2
- package/dist/lib/scope/scaffold-placeholder.js.map +1 -1
- package/dist/lib/terminal-cell.d.ts +5 -0
- package/dist/lib/terminal-cell.d.ts.map +1 -0
- package/dist/lib/terminal-cell.js +22 -0
- package/dist/lib/terminal-cell.js.map +1 -0
- package/dist/mcp-http.d.ts +1 -1
- package/dist/mcp-http.d.ts.map +1 -1
- package/dist/mcp-http.js +6 -3
- package/dist/mcp-http.js.map +1 -1
- package/dist/mcp-server.d.ts +5 -1
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +111 -13
- package/dist/mcp-server.js.map +1 -1
- package/dist/release-surface/extract-surface.d.ts.map +1 -1
- package/dist/release-surface/extract-surface.js +38 -20
- package/dist/release-surface/extract-surface.js.map +1 -1
- package/dist/release-surface/generate.d.ts.map +1 -1
- package/dist/release-surface/generate.js +3 -0
- package/dist/release-surface/generate.js.map +1 -1
- package/dist/release-surface/surface-diff.d.ts +1 -0
- package/dist/release-surface/surface-diff.d.ts.map +1 -1
- package/dist/release-surface/surface-diff.js +19 -18
- package/dist/release-surface/surface-diff.js.map +1 -1
- package/dist/restore-packet/redaction.d.ts +4 -26
- package/dist/restore-packet/redaction.d.ts.map +1 -1
- package/dist/restore-packet/redaction.js +19 -63
- package/dist/restore-packet/redaction.js.map +1 -1
- package/dist/terminal-orca.d.ts +7 -0
- package/dist/terminal-orca.d.ts.map +1 -0
- package/dist/terminal-orca.js +239 -0
- package/dist/terminal-orca.js.map +1 -0
- package/package.json +1 -1
- package/tui/dist/connected-assistants.d.ts +1 -1
- package/tui/dist/connected-assistants.d.ts.map +1 -1
- package/tui/dist/connected-assistants.js +3 -1
- package/tui/dist/connected-assistants.js.map +1 -1
- package/tui/dist/daemon-client.d.ts +4 -0
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js +12 -8
- package/tui/dist/daemon-client.js.map +1 -1
- package/tui/dist/health/health-model.d.ts.map +1 -1
- package/tui/dist/health/health-model.js +2 -0
- package/tui/dist/health/health-model.js.map +1 -1
- package/tui/dist/hydrate.d.ts +3 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +40 -25
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/live.d.ts +5 -1
- package/tui/dist/live.d.ts.map +1 -1
- package/tui/dist/live.js +20 -2
- package/tui/dist/live.js.map +1 -1
- package/tui/dist/main.js +5 -2
- package/tui/dist/main.js.map +1 -1
- package/tui/dist/pulse/pulse-model.d.ts.map +1 -1
- package/tui/dist/pulse/pulse-model.js +3 -2
- package/tui/dist/pulse/pulse-model.js.map +1 -1
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +6 -5
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/types.d.ts +10 -4
- package/tui/dist/types.d.ts.map +1 -1
- package/ui/dist/assets/index-Chh-NS8Z.css +32 -0
- package/ui/dist/assets/index-DG_7XFcL.js +628 -0
- package/ui/dist/index.html +2 -2
- package/ui/dist/assets/index-B-sMy02c.js +0 -623
- package/ui/dist/assets/index-DiN7RwWg.css +0 -32
|
@@ -29,7 +29,7 @@ export type ArgvExecFn = (argv: string[]) => Promise<string>;
|
|
|
29
29
|
/**
|
|
30
30
|
* Injectable file/buffer operations for terminal payloads and launch environments.
|
|
31
31
|
* Split out so tests can observe temp-file writes and unique-name generation
|
|
32
|
-
* without touching the real filesystem; production wires node fs +
|
|
32
|
+
* without touching the real filesystem; production wires node fs + tmuxStagingDir().
|
|
33
33
|
*/
|
|
34
34
|
export interface TmuxFileOps {
|
|
35
35
|
writeFile(path: string, content: string, options?: {
|
|
@@ -45,6 +45,10 @@ export interface TmuxFileOps {
|
|
|
45
45
|
/** Whether `path` names a launch script sendShellCommand staged (an absolute path with the name
|
|
46
46
|
* defaultTmuxFileOps gives it). The script removes itself first, so this is a name check only. */
|
|
47
47
|
export declare function isStagedSendScriptPath(path: string): boolean;
|
|
48
|
+
/** Where the files tmux and a pane's shell later read or run (launch scripts, environment files, buffers) are staged:
|
|
49
|
+
* `run/tmux-staging` in the OpenRig home, created with mode 0700 when a file is written. A relative home is resolved
|
|
50
|
+
* against the daemon's cwd, as `run/seat-bin` is, because tmux and the pane's shell read the path from their own cwd. */
|
|
51
|
+
export declare function tmuxStagingDir(): string;
|
|
48
52
|
export declare function defaultTmuxFileOps(): TmuxFileOps;
|
|
49
53
|
export type TmuxResult = {
|
|
50
54
|
ok: true;
|
|
@@ -269,6 +273,16 @@ export interface SeatLaunchPolicy {
|
|
|
269
273
|
/** The runtime directory a seat gets when it has none of its own (seat-runtime-dir.ts); none on macOS. */
|
|
270
274
|
runtimeDir?: string;
|
|
271
275
|
}
|
|
276
|
+
/** #3901: the terminal a pane is in: its session (name and immutable id) and the tmux server holding it (pid and start
|
|
277
|
+
* time). Names and ids repeat on a replaced server; the server's pid and start time don't. */
|
|
278
|
+
export type PaneTerminal = {
|
|
279
|
+
sessionName: string;
|
|
280
|
+
sessionId: string;
|
|
281
|
+
server: {
|
|
282
|
+
pid: string;
|
|
283
|
+
start: string;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
272
286
|
/** The cgroup v2 path of a process, from the `0::` line of /proc/<pid>/cgroup; null on cgroup v1 or no such line. */
|
|
273
287
|
export declare function cgroupV2Path(procCgroup: string): string | null;
|
|
274
288
|
export declare class TmuxAdapter {
|
|
@@ -583,7 +597,7 @@ export declare class TmuxAdapter {
|
|
|
583
597
|
*/
|
|
584
598
|
sendText(target: string, text: string, beforeInput?: () => void, options?: {
|
|
585
599
|
bracketed?: boolean;
|
|
586
|
-
beforePaste?: () => Promise<void>;
|
|
600
|
+
beforePaste?: (pane: string) => Promise<void>;
|
|
587
601
|
}): Promise<TmuxResult>;
|
|
588
602
|
private sendTextUnchecked;
|
|
589
603
|
/**
|
|
@@ -595,10 +609,23 @@ export declare class TmuxAdapter {
|
|
|
595
609
|
* A shell that never consumes the invocation leaves the file for diagnosis.
|
|
596
610
|
*/
|
|
597
611
|
sendShellCommand(target: string, command: string, beforeInput?: () => void, options?: TmuxShellCommandOptions): Promise<TmuxResult>;
|
|
612
|
+
/** The script sendShellCommand last staged a launch in, per target, with the line it typed to run it, kept after its
|
|
613
|
+
* shell reads it until the next launch sent to that target replaces it (or goes inline and removes it). */
|
|
614
|
+
private readonly stagedLaunches;
|
|
615
|
+
/** Whether the shell in `target` has yet to read the launch sendShellCommand last staged there. The script removes
|
|
616
|
+
* itself as its first step, so while it is still there the shell hasn't started the launch: a new pane's shell can
|
|
617
|
+
* still be running its startup files, and its pane reads as an idle shell meanwhile. False when nothing was staged
|
|
618
|
+
* for the target, or the script is gone or can't be read. */
|
|
619
|
+
stagedLaunchUnread(target: string): boolean;
|
|
620
|
+
/** The exact line sendShellCommand typed into `target` to run the launch it last staged there: `( . '<script>' )`,
|
|
621
|
+
* `/bin/sh '<script>'` or the fish form. It names the script, unique to that launch, so it marks the line the pane's
|
|
622
|
+
* shell read: output below the last place it shows came after the launch. Undefined when the last launch sent there
|
|
623
|
+
* went inline (nothing staged), or none was sent. */
|
|
624
|
+
stagedLaunchTypedLine(target: string): string | undefined;
|
|
598
625
|
/** Stage or send a launch while leaving a consumed script's cleanup to the receiving shell. */
|
|
599
626
|
private sendShellCommandUnchecked;
|
|
600
627
|
sendKeys(target: string, keys: string[], beforeInput?: () => void, options?: {
|
|
601
|
-
beforeKeys?: () => Promise<void>;
|
|
628
|
+
beforeKeys?: (pane: string) => Promise<void>;
|
|
602
629
|
}): Promise<TmuxResult>;
|
|
603
630
|
private sendKeysUnchecked;
|
|
604
631
|
setWindowOption(target: string, option: string, value: string): Promise<TmuxResult>;
|
|
@@ -627,6 +654,13 @@ export declare class TmuxAdapter {
|
|
|
627
654
|
* A checked caller's validation may be asynchronous (a fresh process observation); it's awaited right before each
|
|
628
655
|
* effect, after this method's own reads, and the guard's synchronous check runs after it. */
|
|
629
656
|
killSession(name: string, beforeEffect?: () => void | Promise<void>): Promise<TmuxResult>;
|
|
657
|
+
/** The terminal a pane is in, in one read: its session's name and immutable id, and the tmux server holding it (pid and
|
|
658
|
+
* start time). A failed read throws; an unparseable one is null. */
|
|
659
|
+
private readPaneTerminal;
|
|
660
|
+
/** #3901: the terminal `pane` is in now (killSession's own identity read), or null when it can't be read. A caller holds
|
|
661
|
+
* later effects on that pane to it: a replaced tmux server reuses session names and pane ids for other terminals, but
|
|
662
|
+
* not its pid and start time. */
|
|
663
|
+
paneTerminal(pane: string): Promise<PaneTerminal | null>;
|
|
630
664
|
/** The session a seat's stop would end is the seat's own: every session OpenRig creates for a seat carries its node's
|
|
631
665
|
* OPENRIG_NODE_ID. One without it (adopted, bound or discovered from outside), or with another seat's, is left
|
|
632
666
|
* running and named; nothing is detached or killed. */
|
|
@@ -682,17 +716,26 @@ export declare class TmuxAdapter {
|
|
|
682
716
|
all: string;
|
|
683
717
|
} | null>;
|
|
684
718
|
/** Signal one process by pid. signalPaneProcess signals the pane's root, which in a shell-backed pane is
|
|
685
|
-
* the shell, not the runtime running under it. Unix `kill`, like signalPaneProcess. */
|
|
686
|
-
signalPid(pid: number, signal: "TERM" | "KILL"): Promise<TmuxResult>;
|
|
719
|
+
* the shell, not the runtime running under it; signalPaneRuntime reaches the runtime. Unix `kill`, like signalPaneProcess. */
|
|
720
|
+
signalPid(pid: number, signal: "TERM" | "HUP" | "KILL"): Promise<TmuxResult>;
|
|
687
721
|
/** Seat-handover cutover: is the pane's process dead (the retiree exited; the pane held by
|
|
688
722
|
* remain-on-exit)? A known-missing pane also proves physical cutover; unknown probe errors stay false. */
|
|
689
723
|
isPaneDead(paneId: string): Promise<boolean>;
|
|
690
|
-
/** Seat-handover cutover: signal the pane's
|
|
691
|
-
*
|
|
692
|
-
*
|
|
724
|
+
/** Seat-handover cutover: signal the pane's ROOT process (`#{pane_pid}`): the retiree only when it is the pane's own
|
|
725
|
+
* process; in a shell-backed pane it is the shell (#3901: signalPaneRuntime reaches the agent under it). `TERM` and
|
|
726
|
+
* `KILL` for the pane-level stop, `HUP` to end a shell left at its prompt once its agent has exited. Resolves the pane
|
|
727
|
+
* pid then `kill`s it; an unresolvable pid is a structured, non-throwing failure. `paneChanged` (#3901), when given,
|
|
728
|
+
* is awaited after the pid read and before the `kill`: true refuses the signal (guard_target_changed), for a pane the
|
|
729
|
+
* caller positively saw in another session or on another server than it first read it in. A caller that can't tell
|
|
730
|
+
* answers false, and the signal goes with this method's own checks.
|
|
693
731
|
* Stays on the shell-string path deliberately: this is a Unix `kill`,
|
|
694
732
|
* not a multiplexer command (Windows needs taskkill — named follow-up). */
|
|
695
|
-
signalPaneProcess(paneId: string, signal: "TERM" | "KILL"): Promise<TmuxResult>;
|
|
733
|
+
signalPaneProcess(paneId: string, signal: "TERM" | "HUP" | "KILL", paneChanged?: (pane: string) => Promise<boolean>): Promise<TmuxResult>;
|
|
734
|
+
/** #3901: signal one process in a seat's pane (its agent, which in a shell-backed pane runs under the shell), through
|
|
735
|
+
* the same guard as signalPaneProcess. The target resolves to the seat's own pane; `stillThatProcess` then re-reads,
|
|
736
|
+
* for that pane, that the pid is still the process the caller observed (a reused pid, or another occupant, is refused);
|
|
737
|
+
* the guard's synchronous check runs last, right before the `kill`. */
|
|
738
|
+
signalPaneRuntime(paneTarget: string, pid: number, signal: "TERM" | "KILL", stillThatProcess: (pane: string) => Promise<boolean>): Promise<TmuxResult>;
|
|
696
739
|
private signalPaneProcessUnchecked;
|
|
697
740
|
/** Get the PID of the foreground process in a pane. Returns null if unavailable. */
|
|
698
741
|
getPanePid(paneId: string): Promise<number | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tmux.d.ts","sourceRoot":"","sources":["../../src/adapters/tmux.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAsB,KAAK,iBAAiB,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C,GAAG,CAAC,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,GAAG,IAAI,CAAC;IAsBnH,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAiBlE;;;;;;;OAOG;IACG,WAAW,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;IAW1C;;wCAEoC;IAC9B,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,IAAI,CAAC;IAgB3G;;;;;OAKG;IACG,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;CAUxE"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DeliveryGuardError } from "../domain/seat-delivery-guard.js";
|
|
2
|
-
import { writeFile as fsWriteFile, unlink as fsUnlink, readFile as fsReadFile } from "node:fs/promises";
|
|
2
|
+
import { writeFile as fsWriteFile, unlink as fsUnlink, readFile as fsReadFile, mkdir as fsMkdir } from "node:fs/promises";
|
|
3
3
|
import { accessSync, statSync, constants as fsConstants } from "node:fs";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { join as pathJoin, isAbsolute as pathIsAbsolute, dirname as pathDirname, resolve as pathResolve } from "node:path";
|
|
5
|
+
import { getDefaultOpenRigPath } from "../openrig-compat.js";
|
|
6
6
|
import { randomUUID } from "node:crypto";
|
|
7
7
|
import { inspectComposerInput } from "../domain/session-transport.js";
|
|
8
8
|
import { parentSessionEnvKeys, removeParentSessionEnv } from "../domain/parent-session-env.js";
|
|
@@ -28,11 +28,21 @@ const SEND_SCRIPT_NAME = new RegExp(`^${SEND_SCRIPT_PREFIX}\\d+-[0-9a-f]{8}-[0-9
|
|
|
28
28
|
export function isStagedSendScriptPath(path) {
|
|
29
29
|
return path.startsWith("/") && SEND_SCRIPT_NAME.test(path.split("/").pop() ?? "");
|
|
30
30
|
}
|
|
31
|
+
/** Where the files tmux and a pane's shell later read or run (launch scripts, environment files, buffers) are staged:
|
|
32
|
+
* `run/tmux-staging` in the OpenRig home, created with mode 0700 when a file is written. A relative home is resolved
|
|
33
|
+
* against the daemon's cwd, as `run/seat-bin` is, because tmux and the pane's shell read the path from their own cwd. */
|
|
34
|
+
export function tmuxStagingDir() {
|
|
35
|
+
return pathResolve(getDefaultOpenRigPath(pathJoin("run", "tmux-staging")));
|
|
36
|
+
}
|
|
31
37
|
export function defaultTmuxFileOps() {
|
|
32
38
|
return {
|
|
33
|
-
|
|
39
|
+
// The folder is made where the file is written, inside each caller's error handling.
|
|
40
|
+
writeFile: async (p, content, options) => {
|
|
41
|
+
await fsMkdir(pathDirname(p), { recursive: true, mode: 0o700 });
|
|
42
|
+
await fsWriteFile(p, content, { encoding: "utf8", ...options });
|
|
43
|
+
},
|
|
34
44
|
unlink: (p) => fsUnlink(p),
|
|
35
|
-
tmpName: () => pathJoin(
|
|
45
|
+
tmpName: () => pathJoin(tmuxStagingDir(), `${SEND_SCRIPT_PREFIX}${process.pid}-${randomUUID()}${SEND_SCRIPT_SUFFIX}`),
|
|
36
46
|
bufferName: () => `openrig_${process.pid}_${randomUUID().replace(/-/g, "")}`,
|
|
37
47
|
};
|
|
38
48
|
}
|
|
@@ -2224,8 +2234,9 @@ export class TmuxAdapter {
|
|
|
2224
2234
|
// checks pass; they then aren't run a second time.
|
|
2225
2235
|
beforePaste: async () => {
|
|
2226
2236
|
// This send's own checks can wait (a conversation lookup, an input capture), so they run first, and the
|
|
2227
|
-
// guard's checks run last (#3076). A check that refuses leaves a leftover's record for the next delivery.
|
|
2228
|
-
|
|
2237
|
+
// guard's checks run last (#3076). A check that refuses leaves a leftover's record for the next delivery. It is
|
|
2238
|
+
// told the pane the text goes to (#3901).
|
|
2239
|
+
await options?.beforePaste?.(pane);
|
|
2229
2240
|
const checks = async () => { beforeWrite(); beforeInput?.(); };
|
|
2230
2241
|
// The synchronous checks run again just before the key: the guard's re-read awaits after `checks`.
|
|
2231
2242
|
const enter = async () => { beforeWrite(); beforeInput?.(); return (await this.sendKeysUnchecked(pane, ["Enter"])).ok; };
|
|
@@ -2294,6 +2305,32 @@ export class TmuxAdapter {
|
|
|
2294
2305
|
// Each nested write still validates the lease and targets its observed pane.
|
|
2295
2306
|
return this.guardedInput(target, () => this.sendShellCommandUnchecked(target, command, beforeInput, options));
|
|
2296
2307
|
}
|
|
2308
|
+
/** The script sendShellCommand last staged a launch in, per target, with the line it typed to run it, kept after its
|
|
2309
|
+
* shell reads it until the next launch sent to that target replaces it (or goes inline and removes it). */
|
|
2310
|
+
stagedLaunches = new Map();
|
|
2311
|
+
/** Whether the shell in `target` has yet to read the launch sendShellCommand last staged there. The script removes
|
|
2312
|
+
* itself as its first step, so while it is still there the shell hasn't started the launch: a new pane's shell can
|
|
2313
|
+
* still be running its startup files, and its pane reads as an idle shell meanwhile. False when nothing was staged
|
|
2314
|
+
* for the target, or the script is gone or can't be read. */
|
|
2315
|
+
stagedLaunchUnread(target) {
|
|
2316
|
+
const staged = this.stagedLaunches.get(target);
|
|
2317
|
+
if (!staged || staged.read)
|
|
2318
|
+
return false;
|
|
2319
|
+
try {
|
|
2320
|
+
if (statSync(staged.path).isFile())
|
|
2321
|
+
return true;
|
|
2322
|
+
}
|
|
2323
|
+
catch { /* gone (the shell read it), or unreadable: no evidence */ }
|
|
2324
|
+
staged.read = true;
|
|
2325
|
+
return false;
|
|
2326
|
+
}
|
|
2327
|
+
/** The exact line sendShellCommand typed into `target` to run the launch it last staged there: `( . '<script>' )`,
|
|
2328
|
+
* `/bin/sh '<script>'` or the fish form. It names the script, unique to that launch, so it marks the line the pane's
|
|
2329
|
+
* shell read: output below the last place it shows came after the launch. Undefined when the last launch sent there
|
|
2330
|
+
* went inline (nothing staged), or none was sent. */
|
|
2331
|
+
stagedLaunchTypedLine(target) {
|
|
2332
|
+
return this.stagedLaunches.get(target)?.typed;
|
|
2333
|
+
}
|
|
2297
2334
|
/** Stage or send a launch while leaving a consumed script's cleanup to the receiving shell. */
|
|
2298
2335
|
async sendShellCommandUnchecked(target, command, beforeInput, options) {
|
|
2299
2336
|
const commandBytes = Buffer.byteLength(command, "utf8");
|
|
@@ -2350,6 +2387,10 @@ export class TmuxAdapter {
|
|
|
2350
2387
|
}
|
|
2351
2388
|
// The receiver now owns removal. Unlinking here races shell startup.
|
|
2352
2389
|
created = false;
|
|
2390
|
+
if (path)
|
|
2391
|
+
this.stagedLaunches.set(target, { path, typed: invocation, read: false });
|
|
2392
|
+
else
|
|
2393
|
+
this.stagedLaunches.delete(target);
|
|
2353
2394
|
return { ok: true };
|
|
2354
2395
|
}
|
|
2355
2396
|
catch (err) {
|
|
@@ -2370,9 +2411,10 @@ export class TmuxAdapter {
|
|
|
2370
2411
|
const submit = keys.some(isSubmitKey);
|
|
2371
2412
|
const check = async () => {
|
|
2372
2413
|
// The caller's checks can wait (a conversation lookup), so they run first and the guard's input read runs
|
|
2373
|
-
// last, as in sendText (#3076): input typed while they wait is seen, and a key is not sent onto it.
|
|
2414
|
+
// last, as in sendText (#3076): input typed while they wait is seen, and a key is not sent onto it. They are told
|
|
2415
|
+
// the pane the keys go to (#3901).
|
|
2374
2416
|
if (options?.beforeKeys)
|
|
2375
|
-
await options.beforeKeys();
|
|
2417
|
+
await options.beforeKeys(pane);
|
|
2376
2418
|
if (this.deliveryGuard?.needsInputCheck(identity))
|
|
2377
2419
|
await this.deliveryGuard.beforeInput(identity, submit);
|
|
2378
2420
|
};
|
|
@@ -2503,11 +2545,11 @@ export class TmuxAdapter {
|
|
|
2503
2545
|
if (this.deliveryGuard) {
|
|
2504
2546
|
const result = await this.guardedInput(name, async (pane, beforeWrite, nodeId) => {
|
|
2505
2547
|
// The session id and its server (pid and start time) in one read, so the effects below can be held to both.
|
|
2506
|
-
const
|
|
2507
|
-
|
|
2508
|
-
if (!/^\$\d+$/.test(sessionId) || !/^\d+$/.test(pid) || !/^\d+$/.test(start)) {
|
|
2548
|
+
const terminal = await this.readPaneTerminal(pane);
|
|
2549
|
+
if (!terminal) {
|
|
2509
2550
|
return { ok: false, code: "guard_target_unknown", message: "Cannot establish immutable session identity; no session killed." };
|
|
2510
2551
|
}
|
|
2552
|
+
const { sessionId, server: { pid, start } } = terminal;
|
|
2511
2553
|
if (nodeId) {
|
|
2512
2554
|
const unproven = await this.unprovenSeatSession(name, sessionId, nodeId);
|
|
2513
2555
|
if (unproven)
|
|
@@ -2534,6 +2576,27 @@ export class TmuxAdapter {
|
|
|
2534
2576
|
const result = await this.killSessionUnchecked(name, undefined, phase => { stopPhase = phase; });
|
|
2535
2577
|
return result.ok ? result : { ...result, stopPhase };
|
|
2536
2578
|
}
|
|
2579
|
+
/** The terminal a pane is in, in one read: its session's name and immutable id, and the tmux server holding it (pid and
|
|
2580
|
+
* start time). A failed read throws; an unparseable one is null. */
|
|
2581
|
+
async readPaneTerminal(pane) {
|
|
2582
|
+
const format = "#{session_id}|#{pid}|#{start_time}|#{session_name}";
|
|
2583
|
+
const stdout = await this.run(["tmux", "display-message", "-p", "-t", pane, format], `tmux display-message -p -t ${shellQuote(pane)} '${format}'`);
|
|
2584
|
+
const [sessionId = "", pid = "", start = "", ...name] = stdout.replace(/\r?\n$/, "").split("|");
|
|
2585
|
+
if (!/^\$\d+$/.test(sessionId) || !/^\d+$/.test(pid) || !/^\d+$/.test(start))
|
|
2586
|
+
return null;
|
|
2587
|
+
return { sessionId, sessionName: name.join("|"), server: { pid, start } };
|
|
2588
|
+
}
|
|
2589
|
+
/** #3901: the terminal `pane` is in now (killSession's own identity read), or null when it can't be read. A caller holds
|
|
2590
|
+
* later effects on that pane to it: a replaced tmux server reuses session names and pane ids for other terminals, but
|
|
2591
|
+
* not its pid and start time. */
|
|
2592
|
+
async paneTerminal(pane) {
|
|
2593
|
+
try {
|
|
2594
|
+
return await this.readPaneTerminal(exactTarget(pane, "pane"));
|
|
2595
|
+
}
|
|
2596
|
+
catch {
|
|
2597
|
+
return null;
|
|
2598
|
+
}
|
|
2599
|
+
}
|
|
2537
2600
|
/** The session a seat's stop would end is the seat's own: every session OpenRig creates for a seat carries its node's
|
|
2538
2601
|
* OPENRIG_NODE_ID. One without it (adopted, bound or discovered from outside), or with another seat's, is left
|
|
2539
2602
|
* running and named; nothing is detached or killed. */
|
|
@@ -2797,7 +2860,7 @@ export class TmuxAdapter {
|
|
|
2797
2860
|
return { history, all: lines.slice(second + 1).join("\n") };
|
|
2798
2861
|
}
|
|
2799
2862
|
/** Signal one process by pid. signalPaneProcess signals the pane's root, which in a shell-backed pane is
|
|
2800
|
-
* the shell, not the runtime running under it. Unix `kill`, like signalPaneProcess. */
|
|
2863
|
+
* the shell, not the runtime running under it; signalPaneRuntime reaches the runtime. Unix `kill`, like signalPaneProcess. */
|
|
2801
2864
|
async signalPid(pid, signal) {
|
|
2802
2865
|
if (!Number.isInteger(pid) || pid <= 1)
|
|
2803
2866
|
return { ok: false, code: "invalid_pid", message: `Refusing to signal pid ${pid}.` };
|
|
@@ -2821,19 +2884,39 @@ export class TmuxAdapter {
|
|
|
2821
2884
|
return isNoServerError(error) || isPaneAbsenceError(error);
|
|
2822
2885
|
}
|
|
2823
2886
|
}
|
|
2824
|
-
/** Seat-handover cutover: signal the pane's
|
|
2825
|
-
*
|
|
2826
|
-
*
|
|
2887
|
+
/** Seat-handover cutover: signal the pane's ROOT process (`#{pane_pid}`): the retiree only when it is the pane's own
|
|
2888
|
+
* process; in a shell-backed pane it is the shell (#3901: signalPaneRuntime reaches the agent under it). `TERM` and
|
|
2889
|
+
* `KILL` for the pane-level stop, `HUP` to end a shell left at its prompt once its agent has exited. Resolves the pane
|
|
2890
|
+
* pid then `kill`s it; an unresolvable pid is a structured, non-throwing failure. `paneChanged` (#3901), when given,
|
|
2891
|
+
* is awaited after the pid read and before the `kill`: true refuses the signal (guard_target_changed), for a pane the
|
|
2892
|
+
* caller positively saw in another session or on another server than it first read it in. A caller that can't tell
|
|
2893
|
+
* answers false, and the signal goes with this method's own checks.
|
|
2827
2894
|
* Stays on the shell-string path deliberately: this is a Unix `kill`,
|
|
2828
2895
|
* not a multiplexer command (Windows needs taskkill — named follow-up). */
|
|
2829
|
-
async signalPaneProcess(paneId, signal) {
|
|
2830
|
-
return this.guardedInput(paneId, (pane, beforeWrite) => this.signalPaneProcessUnchecked(pane, signal, beforeWrite));
|
|
2896
|
+
async signalPaneProcess(paneId, signal, paneChanged) {
|
|
2897
|
+
return this.guardedInput(paneId, (pane, beforeWrite) => this.signalPaneProcessUnchecked(pane, signal, beforeWrite, paneChanged));
|
|
2898
|
+
}
|
|
2899
|
+
/** #3901: signal one process in a seat's pane (its agent, which in a shell-backed pane runs under the shell), through
|
|
2900
|
+
* the same guard as signalPaneProcess. The target resolves to the seat's own pane; `stillThatProcess` then re-reads,
|
|
2901
|
+
* for that pane, that the pid is still the process the caller observed (a reused pid, or another occupant, is refused);
|
|
2902
|
+
* the guard's synchronous check runs last, right before the `kill`. */
|
|
2903
|
+
async signalPaneRuntime(paneTarget, pid, signal, stillThatProcess) {
|
|
2904
|
+
return this.guardedInput(paneTarget, async (pane, beforeWrite) => {
|
|
2905
|
+
if (!await stillThatProcess(pane)) {
|
|
2906
|
+
return { ok: false, code: "process_changed", message: `pid ${pid} is no longer the agent observed in pane ${pane}; nothing was signalled.` };
|
|
2907
|
+
}
|
|
2908
|
+
beforeWrite();
|
|
2909
|
+
return this.signalPid(pid, signal);
|
|
2910
|
+
});
|
|
2831
2911
|
}
|
|
2832
|
-
async signalPaneProcessUnchecked(paneId, signal, beforeWrite) {
|
|
2912
|
+
async signalPaneProcessUnchecked(paneId, signal, beforeWrite, paneChanged) {
|
|
2833
2913
|
const pid = await this.getPanePid(paneId);
|
|
2834
2914
|
if (pid == null) {
|
|
2835
2915
|
return { ok: false, code: "pane_pid_unavailable", message: `Could not resolve the pane pid for "${paneId}".` };
|
|
2836
2916
|
}
|
|
2917
|
+
if (paneChanged && await paneChanged(paneId)) {
|
|
2918
|
+
return { ok: false, code: "guard_target_changed", message: `Pane "${paneId}" is no longer in the tmux session and server it was first read in; nothing was signalled.` };
|
|
2919
|
+
}
|
|
2837
2920
|
try {
|
|
2838
2921
|
beforeWrite();
|
|
2839
2922
|
await this.exec(`kill -${signal} ${pid}`);
|