@openrig/cli 0.7.18 → 0.7.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -6
- package/daemon/assets/claude-hook-bridge.cjs +146 -0
- package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/README.md +1 -1
- package/daemon/assets/plugins/openrig-core/hooks/claude.json +14 -14
- package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +43 -22
- package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus.cjs +1 -0
- package/daemon/assets/plugins/openrig-core/skills/mission-slice-sop/SKILL.md +1 -1
- package/daemon/assets/plugins/openrig-core/skills/refocusing/scripts/trace-to-root.py +70 -2
- package/daemon/assets/skills/rigs/SKILL.md +40 -19
- 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 +16 -7
- package/daemon/context-packs/reference/getting-started.md +9 -4
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +56 -26
- package/daemon/context-packs/reference/whats-new.md +82 -11
- package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
- package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
- package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
- package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
- package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
- package/daemon/context-packs/skills/mission-slice-sop/SKILL.md +1 -1
- package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-user/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 +70 -2
- package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
- package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
- package/daemon/context-packs/world-example/manifest.yaml +1 -1
- package/daemon/context-packs/world-public/manifest.yaml +1 -1
- package/daemon/dist/adapters/claude-code-adapter.d.ts +9 -0
- package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +41 -4
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts +2 -0
- package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume.js +3 -1
- package/daemon/dist/adapters/claude-resume.js.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts +5 -0
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js +45 -10
- package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/kernel-authority.d.ts +7 -0
- package/daemon/dist/adapters/kernel-authority.d.ts.map +1 -1
- package/daemon/dist/adapters/kernel-authority.js +24 -1
- package/daemon/dist/adapters/kernel-authority.js.map +1 -1
- package/daemon/dist/adapters/pi-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-resume.js +5 -7
- package/daemon/dist/adapters/pi-resume.js.map +1 -1
- package/daemon/dist/adapters/pi-runner-protocol.d.ts +5 -1
- package/daemon/dist/adapters/pi-runner-protocol.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner.d.ts +34 -0
- package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner.js +359 -26
- package/daemon/dist/adapters/pi-runner.js.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts +7 -1
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.js +29 -19
- package/daemon/dist/adapters/pi-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +54 -34
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +183 -57
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/build-info.js +3 -3
- package/daemon/dist/db/all-migrations.d.ts.map +1 -1
- package/daemon/dist/db/all-migrations.js +6 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrations/171_seat_hook_bridge.d.ts +5 -0
- package/daemon/dist/db/migrations/171_seat_hook_bridge.d.ts.map +1 -0
- package/daemon/dist/db/migrations/171_seat_hook_bridge.js +25 -0
- package/daemon/dist/db/migrations/171_seat_hook_bridge.js.map +1 -0
- package/daemon/dist/db/migrations/174_session_launched_cwd.d.ts +6 -0
- package/daemon/dist/db/migrations/174_session_launched_cwd.d.ts.map +1 -0
- package/daemon/dist/db/migrations/174_session_launched_cwd.js +8 -0
- package/daemon/dist/db/migrations/174_session_launched_cwd.js.map +1 -0
- package/daemon/dist/db/migrations/175_core_app_access.d.ts +3 -0
- package/daemon/dist/db/migrations/175_core_app_access.d.ts.map +1 -0
- package/daemon/dist/db/migrations/175_core_app_access.js +26 -0
- package/daemon/dist/db/migrations/175_core_app_access.js.map +1 -0
- package/daemon/dist/domain/activity-grants.d.ts.map +1 -1
- package/daemon/dist/domain/activity-grants.js +6 -4
- package/daemon/dist/domain/activity-grants.js.map +1 -1
- package/daemon/dist/domain/agent-activity-store.d.ts +23 -0
- package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
- package/daemon/dist/domain/agent-activity-store.js +62 -5
- package/daemon/dist/domain/agent-activity-store.js.map +1 -1
- package/daemon/dist/domain/claude-activity-hooks.d.ts +4 -2
- package/daemon/dist/domain/claude-activity-hooks.d.ts.map +1 -1
- package/daemon/dist/domain/claude-activity-hooks.js +5 -3
- package/daemon/dist/domain/claude-activity-hooks.js.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts +64 -3
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.js +203 -6
- package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts +3 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.js +22 -3
- package/daemon/dist/domain/compaction-restore-notice.js.map +1 -1
- package/daemon/dist/domain/configured-account.d.ts +3 -0
- package/daemon/dist/domain/configured-account.d.ts.map +1 -0
- package/daemon/dist/domain/configured-account.js +10 -0
- package/daemon/dist/domain/configured-account.js.map +1 -0
- package/daemon/dist/domain/core-app-access.d.ts +51 -0
- package/daemon/dist/domain/core-app-access.d.ts.map +1 -0
- package/daemon/dist/domain/core-app-access.js +107 -0
- package/daemon/dist/domain/core-app-access.js.map +1 -0
- package/daemon/dist/domain/core-app-job.d.ts +411 -0
- package/daemon/dist/domain/core-app-job.d.ts.map +1 -0
- package/daemon/dist/domain/core-app-job.js +537 -0
- package/daemon/dist/domain/core-app-job.js.map +1 -0
- package/daemon/dist/domain/current-park-arm.d.ts +4 -0
- package/daemon/dist/domain/current-park-arm.d.ts.map +1 -0
- package/daemon/dist/domain/current-park-arm.js +14 -0
- package/daemon/dist/domain/current-park-arm.js.map +1 -0
- package/daemon/dist/domain/cwd-resolution.d.ts +12 -0
- package/daemon/dist/domain/cwd-resolution.d.ts.map +1 -1
- package/daemon/dist/domain/cwd-resolution.js +21 -1
- package/daemon/dist/domain/cwd-resolution.js.map +1 -1
- package/daemon/dist/domain/execution-view.d.ts.map +1 -1
- package/daemon/dist/domain/execution-view.js +9 -3
- package/daemon/dist/domain/execution-view.js.map +1 -1
- package/daemon/dist/domain/gateway/participants.d.ts +2 -0
- package/daemon/dist/domain/gateway/participants.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/participants.js +5 -1
- package/daemon/dist/domain/gateway/participants.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.d.ts +1 -0
- package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.js +37 -17
- package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/settled-asks.js +1 -1
- package/daemon/dist/domain/gateway/slack/settled-asks.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +1 -0
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.js +2 -0
- package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts +4 -0
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js +26 -2
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
- package/daemon/dist/domain/hook-bridge.d.ts +345 -0
- package/daemon/dist/domain/hook-bridge.d.ts.map +1 -0
- package/daemon/dist/domain/hook-bridge.js +547 -0
- package/daemon/dist/domain/hook-bridge.js.map +1 -0
- package/daemon/dist/domain/hosted-wake.d.ts +9 -0
- package/daemon/dist/domain/hosted-wake.d.ts.map +1 -1
- package/daemon/dist/domain/hosted-wake.js +45 -6
- package/daemon/dist/domain/hosted-wake.js.map +1 -1
- package/daemon/dist/domain/human-ask-attention.d.ts +10 -0
- package/daemon/dist/domain/human-ask-attention.d.ts.map +1 -0
- package/daemon/dist/domain/human-ask-attention.js +22 -0
- package/daemon/dist/domain/human-ask-attention.js.map +1 -0
- package/daemon/dist/domain/mission-control/mission-control-action-log.d.ts +4 -0
- package/daemon/dist/domain/mission-control/mission-control-action-log.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-action-log.js +8 -1
- package/daemon/dist/domain/mission-control/mission-control-action-log.js.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts +10 -0
- package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js +64 -12
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
- package/daemon/dist/domain/native-continuation-notice.d.ts +16 -0
- package/daemon/dist/domain/native-continuation-notice.d.ts.map +1 -0
- package/daemon/dist/domain/native-continuation-notice.js +79 -0
- package/daemon/dist/domain/native-continuation-notice.js.map +1 -0
- package/daemon/dist/domain/native-process-lineage.d.ts +16 -0
- package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
- package/daemon/dist/domain/native-process-lineage.js +48 -3
- package/daemon/dist/domain/native-process-lineage.js.map +1 -1
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +27 -6
- package/daemon/dist/domain/node-inventory.js.map +1 -1
- package/daemon/dist/domain/node-launcher.d.ts +6 -0
- package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/node-launcher.js +16 -2
- package/daemon/dist/domain/node-launcher.js.map +1 -1
- package/daemon/dist/domain/outbox-handler.d.ts +21 -3
- package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
- package/daemon/dist/domain/outbox-handler.js +88 -8
- package/daemon/dist/domain/outbox-handler.js.map +1 -1
- package/daemon/dist/domain/park-wake-text.d.ts +18 -0
- package/daemon/dist/domain/park-wake-text.d.ts.map +1 -1
- package/daemon/dist/domain/park-wake-text.js +44 -0
- package/daemon/dist/domain/park-wake-text.js.map +1 -1
- package/daemon/dist/domain/policies/idle-gate-qitem.d.ts +3 -0
- package/daemon/dist/domain/policies/idle-gate-qitem.d.ts.map +1 -1
- package/daemon/dist/domain/policies/idle-gate-qitem.js +15 -0
- package/daemon/dist/domain/policies/idle-gate-qitem.js.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts +6 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js +28 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
- package/daemon/dist/domain/process-limits.d.ts +21 -11
- package/daemon/dist/domain/process-limits.d.ts.map +1 -1
- package/daemon/dist/domain/process-limits.js +74 -20
- package/daemon/dist/domain/process-limits.js.map +1 -1
- package/daemon/dist/domain/process-table.d.ts +15 -0
- package/daemon/dist/domain/process-table.d.ts.map +1 -1
- package/daemon/dist/domain/process-table.js +39 -0
- package/daemon/dist/domain/process-table.js.map +1 -1
- package/daemon/dist/domain/queue-erasure.d.ts.map +1 -1
- package/daemon/dist/domain/queue-erasure.js +3 -0
- package/daemon/dist/domain/queue-erasure.js.map +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +60 -7
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +178 -36
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts +2 -0
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +29 -0
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
- package/daemon/dist/domain/queue-waiting.js +28 -3
- package/daemon/dist/domain/queue-waiting.js.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.d.ts +12 -0
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +115 -14
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/queue-wake-repository.d.ts +8 -0
- package/daemon/dist/domain/queue-wake-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-repository.js +48 -8
- package/daemon/dist/domain/queue-wake-repository.js.map +1 -1
- package/daemon/dist/domain/reconciler.d.ts +18 -2
- package/daemon/dist/domain/reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/reconciler.js +40 -0
- package/daemon/dist/domain/reconciler.js.map +1 -1
- package/daemon/dist/domain/restore-attempt-receipt.d.ts.map +1 -1
- package/daemon/dist/domain/restore-attempt-receipt.js +3 -2
- package/daemon/dist/domain/restore-attempt-receipt.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +5 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +73 -8
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/restore-topology.d.ts +7 -1
- package/daemon/dist/domain/restore-topology.d.ts.map +1 -1
- package/daemon/dist/domain/restore-topology.js +21 -0
- package/daemon/dist/domain/restore-topology.js.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.d.ts +2 -3
- package/daemon/dist/domain/resume-metadata-refresher.d.ts.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.js +6 -25
- package/daemon/dist/domain/resume-metadata-refresher.js.map +1 -1
- package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
- package/daemon/dist/domain/rig-repository.js +7 -6
- package/daemon/dist/domain/rig-repository.js.map +1 -1
- package/daemon/dist/domain/rig-teardown.d.ts +16 -3
- package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
- package/daemon/dist/domain/rig-teardown.js +73 -9
- package/daemon/dist/domain/rig-teardown.js.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.js +2 -2
- package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts +5 -0
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +17 -7
- package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/daemon/dist/domain/rosters.d.ts +11 -0
- package/daemon/dist/domain/rosters.d.ts.map +1 -1
- package/daemon/dist/domain/rosters.js +21 -2
- package/daemon/dist/domain/rosters.js.map +1 -1
- package/daemon/dist/domain/runner-channel.d.ts +35 -3
- package/daemon/dist/domain/runner-channel.d.ts.map +1 -1
- package/daemon/dist/domain/runner-channel.js +177 -8
- package/daemon/dist/domain/runner-channel.js.map +1 -1
- package/daemon/dist/domain/runner-permissions.d.ts +26 -3
- package/daemon/dist/domain/runner-permissions.d.ts.map +1 -1
- package/daemon/dist/domain/runner-permissions.js +160 -39
- package/daemon/dist/domain/runner-permissions.js.map +1 -1
- package/daemon/dist/domain/scope/mission-parent.d.ts +19 -0
- package/daemon/dist/domain/scope/mission-parent.d.ts.map +1 -0
- package/daemon/dist/domain/scope/mission-parent.js +134 -0
- package/daemon/dist/domain/scope/mission-parent.js.map +1 -0
- package/daemon/dist/domain/scope/scope-audit.d.ts.map +1 -1
- package/daemon/dist/domain/scope/scope-audit.js +8 -0
- package/daemon/dist/domain/scope/scope-audit.js.map +1 -1
- package/daemon/dist/domain/scope/types.d.ts +3 -1
- package/daemon/dist/domain/scope/types.d.ts.map +1 -1
- package/daemon/dist/domain/scope/types.js +5 -1
- package/daemon/dist/domain/scope/types.js.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.d.ts +14 -2
- package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.js +53 -14
- package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
- package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-handover-service.js +9 -4
- package/daemon/dist/domain/seat-handover-service.js.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.d.ts +4 -3
- package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.js +40 -5
- package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +14 -6
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +104 -22
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.js +4 -1
- package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.js +2 -0
- package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
- package/daemon/dist/domain/seat-skill-apply.d.ts +1 -1
- package/daemon/dist/domain/seat-skill-apply.d.ts.map +1 -1
- package/daemon/dist/domain/seat-skill-apply.js +3 -2
- package/daemon/dist/domain/seat-skill-apply.js.map +1 -1
- package/daemon/dist/domain/session-registry.d.ts +5 -1
- package/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.js +12 -1
- package/daemon/dist/domain/session-registry.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +40 -1
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +211 -10
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/shared-history-selection.d.ts.map +1 -1
- package/daemon/dist/domain/shared-history-selection.js +9 -5
- package/daemon/dist/domain/shared-history-selection.js.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.d.ts +1 -1
- package/daemon/dist/domain/slices/slice-indexer.d.ts.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.js +4 -0
- package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts +1 -0
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +6 -4
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.js +10 -4
- package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts +35 -1
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.js +231 -33
- package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-sessions.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-sessions.js +2 -1
- package/daemon/dist/domain/terminal/herdr-sessions.js.map +1 -1
- package/daemon/dist/domain/terminal/rig-viewer-records.d.ts +59 -0
- package/daemon/dist/domain/terminal/rig-viewer-records.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/rig-viewer-records.js +210 -0
- package/daemon/dist/domain/terminal/rig-viewer-records.js.map +1 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts +2 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.d.ts +99 -4
- package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.js +556 -36
- package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
- package/daemon/dist/domain/terminal/tile-layout.js +1 -1
- package/daemon/dist/domain/terminal/tile-layout.js.map +1 -1
- package/daemon/dist/domain/terminal/tmux-viewer-guard.d.ts +25 -0
- package/daemon/dist/domain/terminal/tmux-viewer-guard.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/tmux-viewer-guard.js +70 -0
- package/daemon/dist/domain/terminal/tmux-viewer-guard.js.map +1 -0
- package/daemon/dist/domain/transcript-grep-worker.d.ts +2 -0
- package/daemon/dist/domain/transcript-grep-worker.d.ts.map +1 -0
- package/daemon/dist/domain/transcript-grep-worker.js +108 -0
- package/daemon/dist/domain/transcript-grep-worker.js.map +1 -0
- package/daemon/dist/domain/transcript-grep.d.ts +26 -0
- package/daemon/dist/domain/transcript-grep.d.ts.map +1 -0
- package/daemon/dist/domain/transcript-grep.js +90 -0
- package/daemon/dist/domain/transcript-grep.js.map +1 -0
- package/daemon/dist/domain/transcript-store.d.ts +8 -2
- package/daemon/dist/domain/transcript-store.d.ts.map +1 -1
- package/daemon/dist/domain/transcript-store.js +10 -60
- package/daemon/dist/domain/transcript-store.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +69 -2
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/watchdog-delivery-receipts.d.ts +4 -0
- package/daemon/dist/domain/watchdog-delivery-receipts.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-delivery-receipts.js +35 -2
- package/daemon/dist/domain/watchdog-delivery-receipts.js.map +1 -1
- package/daemon/dist/domain/watchdog-delivery.d.ts +44 -0
- package/daemon/dist/domain/watchdog-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-delivery.js +60 -2
- package/daemon/dist/domain/watchdog-delivery.js.map +1 -1
- package/daemon/dist/domain/watchdog-history-log.d.ts +12 -0
- package/daemon/dist/domain/watchdog-history-log.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-history-log.js +19 -1
- package/daemon/dist/domain/watchdog-history-log.js.map +1 -1
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts +32 -0
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-jobs-repository.js +78 -0
- package/daemon/dist/domain/watchdog-jobs-repository.js.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.d.ts +17 -3
- package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.js +19 -5
- package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
- package/daemon/dist/domain/workflow-projector.js +1 -1
- package/daemon/dist/domain/workflow-projector.js.map +1 -1
- package/daemon/dist/domain/workflow-runtime.d.ts +12 -0
- package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-runtime.js +64 -7
- package/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/daemon/dist/domain/workflow-step-trail-log.d.ts +2 -2
- package/daemon/dist/domain/workflow-step-trail-log.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-step-trail-log.js.map +1 -1
- package/daemon/dist/domain/workflow-types.d.ts +3 -1
- package/daemon/dist/domain/workflow-types.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-types.js.map +1 -1
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +5 -1
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/lib/pane-envelope.d.ts +3 -0
- package/daemon/dist/lib/pane-envelope.d.ts.map +1 -1
- package/daemon/dist/lib/pane-envelope.js +3 -1
- package/daemon/dist/lib/pane-envelope.js.map +1 -1
- package/daemon/dist/mission-parent-surface.d.ts +2 -0
- package/daemon/dist/mission-parent-surface.d.ts.map +1 -0
- package/daemon/dist/mission-parent-surface.js +2 -0
- package/daemon/dist/mission-parent-surface.js.map +1 -0
- package/daemon/dist/routes/activity.d.ts +18 -1
- package/daemon/dist/routes/activity.d.ts.map +1 -1
- package/daemon/dist/routes/activity.js +47 -9
- package/daemon/dist/routes/activity.js.map +1 -1
- package/daemon/dist/routes/attention.d.ts.map +1 -1
- package/daemon/dist/routes/attention.js +194 -177
- package/daemon/dist/routes/attention.js.map +1 -1
- package/daemon/dist/routes/core-app.d.ts +10 -0
- package/daemon/dist/routes/core-app.d.ts.map +1 -0
- package/daemon/dist/routes/core-app.js +175 -0
- package/daemon/dist/routes/core-app.js.map +1 -0
- package/daemon/dist/routes/hook-bridge.d.ts +3 -0
- package/daemon/dist/routes/hook-bridge.d.ts.map +1 -0
- package/daemon/dist/routes/hook-bridge.js +158 -0
- package/daemon/dist/routes/hook-bridge.js.map +1 -0
- package/daemon/dist/routes/missions.d.ts.map +1 -1
- package/daemon/dist/routes/missions.js +14 -2
- package/daemon/dist/routes/missions.js.map +1 -1
- package/daemon/dist/routes/queue.d.ts +1 -1
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +8 -5
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/rigspec.js +1 -1
- package/daemon/dist/routes/rigspec.js.map +1 -1
- package/daemon/dist/routes/scope-audit.d.ts.map +1 -1
- package/daemon/dist/routes/scope-audit.js +7 -1
- package/daemon/dist/routes/scope-audit.js.map +1 -1
- package/daemon/dist/routes/seat.d.ts.map +1 -1
- package/daemon/dist/routes/seat.js +30 -4
- package/daemon/dist/routes/seat.js.map +1 -1
- package/daemon/dist/routes/slices.d.ts.map +1 -1
- package/daemon/dist/routes/slices.js +21 -2
- package/daemon/dist/routes/slices.js.map +1 -1
- package/daemon/dist/routes/startup.js +2 -1
- package/daemon/dist/routes/startup.js.map +1 -1
- package/daemon/dist/routes/terminal.d.ts.map +1 -1
- package/daemon/dist/routes/terminal.js +47 -6
- package/daemon/dist/routes/terminal.js.map +1 -1
- package/daemon/dist/routes/transcripts.d.ts.map +1 -1
- package/daemon/dist/routes/transcripts.js +16 -1
- package/daemon/dist/routes/transcripts.js.map +1 -1
- package/daemon/dist/routes/watchdog.d.ts.map +1 -1
- package/daemon/dist/routes/watchdog.js +3 -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 +5 -0
- package/daemon/dist/routes/workflow.js.map +1 -1
- package/daemon/dist/server.d.ts +2 -0
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +11 -0
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +90 -33
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/dist/terminal-viewer-guard-surface.d.ts +2 -0
- package/daemon/dist/terminal-viewer-guard-surface.d.ts.map +1 -0
- package/daemon/dist/terminal-viewer-guard-surface.js +2 -0
- package/daemon/dist/terminal-viewer-guard-surface.js.map +1 -0
- package/daemon/docs/reference/agent-startup-guide.md +4 -1
- package/daemon/docs/reference/claude-status-line.md +3 -2
- package/daemon/docs/reference/community-harness-examples/cursor/openrig-cursor-launch +6 -0
- package/daemon/docs/reference/community-harness-examples/dsh/README.md +1 -1
- package/daemon/docs/reference/community-harness-examples/dsh/openrig-dsh-runner.mjs +186 -30
- package/daemon/docs/reference/community-harness-examples/hermes/openrig-hermes-launch +6 -0
- package/daemon/docs/reference/community-harness-examples/openclaw/openrig-openclaw-launch +6 -0
- package/daemon/docs/reference/community-harness-examples/openshell/README.md +2 -0
- package/daemon/docs/reference/community-harness-examples/pi-tui/openrig-pi-tui-launch +6 -0
- package/daemon/docs/reference/community-harness-presets.md +6 -5
- package/daemon/docs/reference/core-app.md +212 -0
- package/daemon/docs/reference/daemon-http-clients.md +6 -0
- package/daemon/docs/reference/getting-started.md +9 -4
- package/daemon/docs/reference/harness-runner-contract.md +50 -4
- package/daemon/docs/reference/hosted-members.md +21 -1
- package/daemon/docs/reference/quickstart.md +4 -3
- package/daemon/docs/reference/rig-spec.md +56 -26
- package/daemon/docs/reference/rosters.md +8 -0
- package/daemon/docs/reference/sdlc-conventions.md +42 -5
- package/daemon/docs/reference/seat-delivery.md +87 -6
- package/daemon/docs/reference/terminal-sessions.md +99 -1
- package/daemon/docs/reference/whats-new.md +82 -11
- package/daemon/specs/rigs/launch/factory/guidance/lead-first-move.md +4 -3
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +13 -3
- package/daemon/specs/rigs/launch/starter/guidance/lead-first-move.md +4 -3
- package/dist/ask-wake.d.ts.map +1 -1
- package/dist/ask-wake.js +8 -1
- package/dist/ask-wake.js.map +1 -1
- package/dist/build-info.js +3 -3
- package/dist/commands/archive.js +1 -1
- package/dist/commands/archive.js.map +1 -1
- package/dist/commands/daemon.d.ts.map +1 -1
- package/dist/commands/daemon.js +7 -0
- package/dist/commands/daemon.js.map +1 -1
- package/dist/commands/down.d.ts.map +1 -1
- package/dist/commands/down.js +5 -0
- package/dist/commands/down.js.map +1 -1
- package/dist/commands/ps.d.ts +2 -1
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +9 -4
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue.js +4 -4
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/roster.d.ts +5 -0
- package/dist/commands/roster.d.ts.map +1 -1
- package/dist/commands/scope.d.ts.map +1 -1
- package/dist/commands/scope.js +346 -9
- package/dist/commands/scope.js.map +1 -1
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +90 -8
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/send.d.ts +2 -0
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +3 -1
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/terminal.d.ts +56 -0
- package/dist/commands/terminal.d.ts.map +1 -1
- package/dist/commands/terminal.js +194 -4
- package/dist/commands/terminal.js.map +1 -1
- package/dist/commands/transcript.js +1 -1
- package/dist/commands/transcript.js.map +1 -1
- package/dist/commands/unarchive.js +1 -1
- package/dist/commands/unarchive.js.map +1 -1
- package/dist/commands/workflow-follow.d.ts +3 -1
- package/dist/commands/workflow-follow.d.ts.map +1 -1
- package/dist/commands/workflow-follow.js +25 -6
- package/dist/commands/workflow-follow.js.map +1 -1
- package/dist/commands/workflow-render.d.ts.map +1 -1
- package/dist/commands/workflow-render.js +5 -1
- package/dist/commands/workflow-render.js.map +1 -1
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +14 -4
- package/dist/commands/workflow.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +11 -0
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/lib/scope/mission-composition.d.ts +1 -0
- package/dist/lib/scope/mission-composition.d.ts.map +1 -1
- package/dist/lib/scope/mission-composition.js +14 -0
- package/dist/lib/scope/mission-composition.js.map +1 -1
- package/dist/lib/scope/scope-audit.d.ts.map +1 -1
- package/dist/lib/scope/scope-audit.js +8 -0
- package/dist/lib/scope/scope-audit.js.map +1 -1
- package/dist/lib/scope/scope-fs.d.ts +10 -0
- package/dist/lib/scope/scope-fs.d.ts.map +1 -1
- package/dist/lib/scope/scope-fs.js +60 -0
- package/dist/lib/scope/scope-fs.js.map +1 -1
- package/dist/lib/scope/types.d.ts +3 -1
- package/dist/lib/scope/types.d.ts.map +1 -1
- package/dist/lib/scope/types.js +5 -1
- package/dist/lib/scope/types.js.map +1 -1
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +18 -8
- package/dist/mcp-server.js.map +1 -1
- package/dist/restore-packet/packet-writer.d.ts.map +1 -1
- package/dist/restore-packet/packet-writer.js +8 -5
- package/dist/restore-packet/packet-writer.js.map +1 -1
- package/dist/terminal-window.d.ts +2 -1
- package/dist/terminal-window.d.ts.map +1 -1
- package/dist/terminal-window.js +567 -41
- package/dist/terminal-window.js.map +1 -1
- package/package.json +1 -1
- package/tui/dist/daemon-client.d.ts +4 -0
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js.map +1 -1
- package/tui/dist/execution/execution-model.d.ts.map +1 -1
- package/tui/dist/execution/execution-model.js +22 -5
- package/tui/dist/execution/execution-model.js.map +1 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +6 -3
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/navigator.d.ts +1 -1
- package/tui/dist/navigator.d.ts.map +1 -1
- package/tui/dist/navigator.js +4 -2
- package/tui/dist/navigator.js.map +1 -1
- package/tui/dist/pulse/render-pulse.d.ts.map +1 -1
- package/tui/dist/pulse/render-pulse.js +7 -14
- package/tui/dist/pulse/render-pulse.js.map +1 -1
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +29 -21
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/stylize.d.ts.map +1 -1
- package/tui/dist/stylize.js +3 -3
- package/tui/dist/stylize.js.map +1 -1
- package/tui/dist/terminals/terminal-model.d.ts +1 -0
- package/tui/dist/terminals/terminal-model.d.ts.map +1 -1
- package/tui/dist/terminals/terminal-model.js +4 -2
- package/tui/dist/terminals/terminal-model.js.map +1 -1
- package/tui/dist/types.d.ts +1 -0
- package/tui/dist/types.d.ts.map +1 -1
- package/tui/dist/visual-layout.d.ts +3 -0
- package/tui/dist/visual-layout.d.ts.map +1 -1
- package/tui/dist/visual-layout.js +17 -0
- package/tui/dist/visual-layout.js.map +1 -1
- package/ui/dist/assets/{index-1O1f3A7K.js → index-B-sMy02c.js} +107 -107
- package/ui/dist/assets/{index-BX8TUZ0E.css → index-DiN7RwWg.css} +1 -1
- package/ui/dist/index.html +2 -2
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { createHash, randomUUID } from "node:crypto";
|
|
2
|
+
import { mkdirSync, readdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
const ENDPOINT_FILE_RE = /^[0-9a-f]{64}\.json$/;
|
|
5
|
+
export class CorruptRigViewerLedgerError extends Error {
|
|
6
|
+
filePath;
|
|
7
|
+
code = "corrupt_ledger";
|
|
8
|
+
constructor(filePath, reason) {
|
|
9
|
+
super(`Rig-viewer ledger file '${filePath}' is corrupt: ${reason}`);
|
|
10
|
+
this.filePath = filePath;
|
|
11
|
+
this.name = "CorruptRigViewerLedgerError";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export function sameIdSet(actual, expected) {
|
|
15
|
+
if (actual.length !== expected.length)
|
|
16
|
+
return false;
|
|
17
|
+
const actualSet = new Set(actual);
|
|
18
|
+
const expectedSet = new Set(expected);
|
|
19
|
+
if (actualSet.size !== expected.length || expectedSet.size !== expected.length)
|
|
20
|
+
return false;
|
|
21
|
+
for (const id of expectedSet)
|
|
22
|
+
if (!actualSet.has(id))
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function rigViewerRecordKey(record) {
|
|
27
|
+
if (record.tabLabels && record.tabLabels.length > 0) {
|
|
28
|
+
const labelDigest = createHash("sha256").update(JSON.stringify(record.tabLabels)).digest("hex").slice(0, 12);
|
|
29
|
+
return `herdr:${record.workspaceId}:${labelDigest}`;
|
|
30
|
+
}
|
|
31
|
+
return `herdr:${record.workspaceId}`;
|
|
32
|
+
}
|
|
33
|
+
export function tmuxEndpointKey(serverArgs) {
|
|
34
|
+
return `tmux:${JSON.stringify([...serverArgs])}`;
|
|
35
|
+
}
|
|
36
|
+
function isStringArray(v) {
|
|
37
|
+
return Array.isArray(v) && v.every(item => typeof item === "string" && item.length > 0);
|
|
38
|
+
}
|
|
39
|
+
function isValidRigViewerRecord(raw) {
|
|
40
|
+
if (!raw || typeof raw !== "object" || Array.isArray(raw))
|
|
41
|
+
return false;
|
|
42
|
+
const r = raw;
|
|
43
|
+
if (typeof r["endpoint"] !== "string" || !r["endpoint"])
|
|
44
|
+
return false;
|
|
45
|
+
if (typeof r["view"] !== "string" || !r["view"].startsWith("rig:"))
|
|
46
|
+
return false;
|
|
47
|
+
if (typeof r["createdAt"] !== "string" || !r["createdAt"])
|
|
48
|
+
return false;
|
|
49
|
+
if (r["phase"] !== "created" && r["phase"] !== "closing")
|
|
50
|
+
return false;
|
|
51
|
+
if (r["kind"] === "herdr") {
|
|
52
|
+
if (typeof r["workspaceId"] !== "string" || !r["workspaceId"])
|
|
53
|
+
return false;
|
|
54
|
+
if (!isStringArray(r["tabIds"]) || r["tabIds"].length === 0)
|
|
55
|
+
return false;
|
|
56
|
+
if (!isStringArray(r["paneIds"]) || r["paneIds"].length === 0)
|
|
57
|
+
return false;
|
|
58
|
+
if (typeof r["planId"] !== "string")
|
|
59
|
+
return false;
|
|
60
|
+
if (r["tabLabels"] !== undefined && (!Array.isArray(r["tabLabels"]) || !r["tabLabels"].every(item => typeof item === "string")))
|
|
61
|
+
return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
return false;
|
|
65
|
+
}
|
|
66
|
+
function parseJournalFile(rawText, file) {
|
|
67
|
+
let parsed;
|
|
68
|
+
try {
|
|
69
|
+
parsed = JSON.parse(rawText);
|
|
70
|
+
}
|
|
71
|
+
catch (err) {
|
|
72
|
+
throw new CorruptRigViewerLedgerError(file, err instanceof Error ? err.message : "invalid JSON");
|
|
73
|
+
}
|
|
74
|
+
if (!parsed || typeof parsed !== "object" || parsed.version !== 1 || !parsed.entries || typeof parsed.entries !== "object" || Array.isArray(parsed.entries)) {
|
|
75
|
+
throw new CorruptRigViewerLedgerError(file, "expected version 1 object with entries map");
|
|
76
|
+
}
|
|
77
|
+
const entries = {};
|
|
78
|
+
for (const [key, entry] of Object.entries(parsed.entries)) {
|
|
79
|
+
// Historical tmux files remain on disk but grant no new close authority.
|
|
80
|
+
if (entry?.kind === "tmux")
|
|
81
|
+
continue;
|
|
82
|
+
if (!isValidRigViewerRecord(entry)) {
|
|
83
|
+
throw new CorruptRigViewerLedgerError(file, `invalid record for key '${key}'`);
|
|
84
|
+
}
|
|
85
|
+
entries[key] = entry;
|
|
86
|
+
}
|
|
87
|
+
return { version: 1, entries };
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Per-endpoint ownership ledger for OpenRig-created rig viewers (`rig:<name>`).
|
|
91
|
+
* Serialized per endpoint file; uses in-memory storage when no directory is passed (unit tests).
|
|
92
|
+
*/
|
|
93
|
+
export class RigViewerLedger {
|
|
94
|
+
dir;
|
|
95
|
+
queues = new Map();
|
|
96
|
+
memory = new Map();
|
|
97
|
+
constructor(dir) {
|
|
98
|
+
this.dir = dir;
|
|
99
|
+
}
|
|
100
|
+
filePath(endpoint) {
|
|
101
|
+
const hash = createHash("sha256").update(endpoint).digest("hex");
|
|
102
|
+
return path.join(this.dir, `${hash}.json`);
|
|
103
|
+
}
|
|
104
|
+
readJournal(endpoint) {
|
|
105
|
+
if (!this.dir) {
|
|
106
|
+
return this.memory.get(endpoint) ?? { version: 1, entries: {} };
|
|
107
|
+
}
|
|
108
|
+
const file = this.filePath(endpoint);
|
|
109
|
+
try {
|
|
110
|
+
return parseJournalFile(readFileSync(file, "utf8"), file);
|
|
111
|
+
}
|
|
112
|
+
catch (err) {
|
|
113
|
+
if (err?.code === "ENOENT") {
|
|
114
|
+
return { version: 1, entries: {} };
|
|
115
|
+
}
|
|
116
|
+
throw err;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
writeJournal(endpoint, journal) {
|
|
120
|
+
if (!this.dir) {
|
|
121
|
+
this.memory.set(endpoint, { version: 1, entries: { ...journal.entries } });
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
mkdirSync(this.dir, { recursive: true, mode: 0o700 });
|
|
125
|
+
const file = this.filePath(endpoint);
|
|
126
|
+
const tmp = `${file}.${randomUUID()}.tmp`;
|
|
127
|
+
writeFileSync(tmp, JSON.stringify(journal) + "\n", { mode: 0o600 });
|
|
128
|
+
renameSync(tmp, file);
|
|
129
|
+
}
|
|
130
|
+
setPhaseUnlocked(endpoint, key, phase) {
|
|
131
|
+
const journal = this.readJournal(endpoint);
|
|
132
|
+
const existing = journal.entries[key];
|
|
133
|
+
if (!existing)
|
|
134
|
+
return false;
|
|
135
|
+
journal.entries[key] = { ...existing, phase };
|
|
136
|
+
this.writeJournal(endpoint, journal);
|
|
137
|
+
return true;
|
|
138
|
+
}
|
|
139
|
+
removeUnlocked(endpoint, key) {
|
|
140
|
+
const journal = this.readJournal(endpoint);
|
|
141
|
+
if (!(key in journal.entries))
|
|
142
|
+
return false;
|
|
143
|
+
delete journal.entries[key];
|
|
144
|
+
this.writeJournal(endpoint, journal);
|
|
145
|
+
return true;
|
|
146
|
+
}
|
|
147
|
+
runExclusive(endpoint, fn) {
|
|
148
|
+
const prev = this.queues.get(endpoint) ?? Promise.resolve();
|
|
149
|
+
const tx = {
|
|
150
|
+
setPhase: (key, phase) => this.setPhaseUnlocked(endpoint, key, phase),
|
|
151
|
+
remove: (key) => this.removeUnlocked(endpoint, key),
|
|
152
|
+
};
|
|
153
|
+
const next = prev.catch(() => { }).then(() => fn(tx));
|
|
154
|
+
this.queues.set(endpoint, next);
|
|
155
|
+
return next;
|
|
156
|
+
}
|
|
157
|
+
upsert(record) {
|
|
158
|
+
if (record.kind !== "herdr")
|
|
159
|
+
return Promise.reject(new Error("Tmux ownership belongs in session options."));
|
|
160
|
+
if (!record.view.startsWith("rig:"))
|
|
161
|
+
return Promise.resolve();
|
|
162
|
+
return this.runExclusive(record.endpoint, () => {
|
|
163
|
+
const journal = this.readJournal(record.endpoint);
|
|
164
|
+
const key = rigViewerRecordKey(record);
|
|
165
|
+
journal.entries[key] = record;
|
|
166
|
+
this.writeJournal(record.endpoint, journal);
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
setPhase(endpoint, key, phase) {
|
|
170
|
+
return this.runExclusive(endpoint, (tx) => tx.setPhase(key, phase));
|
|
171
|
+
}
|
|
172
|
+
remove(endpoint, key) {
|
|
173
|
+
return this.runExclusive(endpoint, (tx) => tx.remove(key));
|
|
174
|
+
}
|
|
175
|
+
listForEndpoint(endpoint) {
|
|
176
|
+
return this.runExclusive(endpoint, () => {
|
|
177
|
+
const journal = this.readJournal(endpoint);
|
|
178
|
+
return Object.entries(journal.entries).map(([key, record]) => ({ key, record }));
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
async listAll() {
|
|
182
|
+
if (!this.dir) {
|
|
183
|
+
const out = [];
|
|
184
|
+
for (const [endpoint, journal] of this.memory) {
|
|
185
|
+
for (const [key, record] of Object.entries(journal.entries))
|
|
186
|
+
out.push({ endpoint, key, record });
|
|
187
|
+
}
|
|
188
|
+
return out;
|
|
189
|
+
}
|
|
190
|
+
let files;
|
|
191
|
+
try {
|
|
192
|
+
files = readdirSync(this.dir).filter(name => ENDPOINT_FILE_RE.test(name)).sort();
|
|
193
|
+
}
|
|
194
|
+
catch (err) {
|
|
195
|
+
if (err?.code === "ENOENT")
|
|
196
|
+
return [];
|
|
197
|
+
throw err;
|
|
198
|
+
}
|
|
199
|
+
const out = [];
|
|
200
|
+
for (const file of files) {
|
|
201
|
+
const full = path.join(this.dir, file);
|
|
202
|
+
const parsed = parseJournalFile(readFileSync(full, "utf8"), full);
|
|
203
|
+
for (const [key, record] of Object.entries(parsed.entries)) {
|
|
204
|
+
out.push({ endpoint: record.endpoint, key, record });
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
return out;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
//# sourceMappingURL=rig-viewer-records.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rig-viewer-records.js","sourceRoot":"","sources":["../../../src/domain/terminal/rig-viewer-records.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC1F,OAAO,IAAI,MAAM,WAAW,CAAC;AAwB7B,MAAM,gBAAgB,GAAG,sBAAsB,CAAC;AAEhD,MAAM,OAAO,2BAA4B,SAAQ,KAAK;IAE/B;IADZ,IAAI,GAAG,gBAAyB,CAAC;IAC1C,YAAqB,QAAgB,EAAE,MAAc;QACnD,KAAK,CAAC,2BAA2B,QAAQ,iBAAiB,MAAM,EAAE,CAAC,CAAC;QADjD,aAAQ,GAAR,QAAQ,CAAQ;QAEnC,IAAI,CAAC,IAAI,GAAG,6BAA6B,CAAC;IAC5C,CAAC;CACF;AAED,MAAM,UAAU,SAAS,CAAC,MAAyB,EAAE,QAA2B;IAC9E,IAAI,MAAM,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IACpD,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC;IAClC,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC;IACtC,IAAI,SAAS,CAAC,IAAI,KAAK,QAAQ,CAAC,MAAM,IAAI,WAAW,CAAC,IAAI,KAAK,QAAQ,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IAC7F,KAAK,MAAM,EAAE,IAAI,WAAW;QAAE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;YAAE,OAAO,KAAK,CAAC;IACnE,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,UAAU,kB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C,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QACnF,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IAAK,GAA6B,EAAE,IAAI,KAAK,QAAQ;gBAAE,OAAO,EAAE,CAAC;YACjE,MAAM,GAAG,CAAC;QACZ,CAAC;QACD,MAAM,GAAG,GAAsE,EAAE,CAAC;QAClF,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;YACvC,MAAM,MAAM,GAAG,gBAAgB,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC;YAClE,KAAK,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;gBAC3D,GAAG,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,CAAC;YACvD,CAAC;QACH,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;CACF"}
|
|
@@ -52,6 +52,8 @@ export interface ViewDescriptor {
|
|
|
52
52
|
}
|
|
53
53
|
export interface ComposedView {
|
|
54
54
|
id: string;
|
|
55
|
+
/** Human rig name for display; identity and reuse remain bound to id. */
|
|
56
|
+
rigName?: string;
|
|
55
57
|
/** Explicit daemon server for local viewer creation as well as its attached seats. */
|
|
56
58
|
localTmuxServer?: readonly string[];
|
|
57
59
|
task?: TaskMembership;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminal-provider.d.ts","sourceRoot":"","sources":["../../../src/domain/terminal/terminal-provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,mB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AAO,CAAC,OAAO,CAAC,EAAE,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;CAC3K"}
|
|
@@ -8,7 +8,7 @@ import { buildGridRoot } from "./herdr-adapter.js";
|
|
|
8
8
|
import type { TmuxServerSelection } from "../tmux-server-selection.js";
|
|
9
9
|
import type { LiveSeatRow, SavedView, TerminalViewsStore } from "./terminal-views-store.js";
|
|
10
10
|
import type { HostEntry } from "../hosts/hosts-registry-reader.js";
|
|
11
|
-
import type { OpenViewResult, ComposedView, ProviderLiveness, ProviderStatus, TerminalProvider, ViewDescriptor } from "./terminal-provider.js";
|
|
11
|
+
import type { AbsentSeat, DegradedSeat, OpenViewResult, ComposedView, ProviderLiveness, ProviderStatus, TerminalProvider, ViewDescriptor } from "./terminal-provider.js";
|
|
12
12
|
/** The provider name set (herdr = proof-gated primary; cmux = best-effort; rex = by name or from a Rex caller;
|
|
13
13
|
* herdr-app = Rig-layout views in a herdr-app client, by name only). */
|
|
14
14
|
export type TerminalProviderName = "herdr" | "cmux" | "rex" | "herdr-app";
|
|
@@ -28,6 +28,8 @@ export interface OpenViewRequest {
|
|
|
28
28
|
reuseLive?: boolean;
|
|
29
29
|
/** The herdr-app client (its app home) for provider herdr-app. */
|
|
30
30
|
herdrApp?: HerdrAppTarget;
|
|
31
|
+
/** True only when previewing a rig for bulk `--all` open (partitions stopped/unbound/remote). */
|
|
32
|
+
bulk?: boolean;
|
|
31
33
|
}
|
|
32
34
|
export interface HerdrAppTarget {
|
|
33
35
|
appHome?: string;
|
|
@@ -38,7 +40,10 @@ export interface TerminalPreview {
|
|
|
38
40
|
tmux?: TmuxServerSelection;
|
|
39
41
|
view: string;
|
|
40
42
|
planId: string;
|
|
43
|
+
rigViewer?: boolean;
|
|
41
44
|
composed: ComposedView;
|
|
45
|
+
/** Seats skipped in bulk rig preview (e.g. non-local host). */
|
|
46
|
+
skipped?: SkippedSeat[];
|
|
42
47
|
/** The same pure grid roots consumed by the Herder adapter. */
|
|
43
48
|
grids: ReturnType<typeof buildGridRoot>[];
|
|
44
49
|
status: ProviderStatus;
|
|
@@ -59,6 +64,11 @@ export interface ListViewsResult {
|
|
|
59
64
|
saved: SavedView[];
|
|
60
65
|
/** Rig names openable as per-rig derived views (live from the inventory). */
|
|
61
66
|
rigs: string[];
|
|
67
|
+
/** Stable local identities. Names remain above for existing clients. */
|
|
68
|
+
rigIdentities: Array<{
|
|
69
|
+
id: string;
|
|
70
|
+
name: string;
|
|
71
|
+
}>;
|
|
62
72
|
catalog?: Array<{
|
|
63
73
|
view: string;
|
|
64
74
|
name: string;
|
|
@@ -84,6 +94,63 @@ export interface TerminalStatusResult {
|
|
|
84
94
|
error?: string;
|
|
85
95
|
code?: string;
|
|
86
96
|
}
|
|
97
|
+
export interface OpenAllRequest {
|
|
98
|
+
provider?: string;
|
|
99
|
+
session?: string;
|
|
100
|
+
viewportColumns?: number;
|
|
101
|
+
reuseLive?: boolean;
|
|
102
|
+
herdrApp?: HerdrAppTarget;
|
|
103
|
+
}
|
|
104
|
+
export interface SkippedSeat {
|
|
105
|
+
seat: string;
|
|
106
|
+
reason: string;
|
|
107
|
+
}
|
|
108
|
+
export interface OpenAllRigResult {
|
|
109
|
+
rig: string;
|
|
110
|
+
rigId?: string;
|
|
111
|
+
view: string;
|
|
112
|
+
outcome: "opened" | "reused" | "absent" | "skipped" | "failed";
|
|
113
|
+
opened: string[];
|
|
114
|
+
absent: AbsentSeat[];
|
|
115
|
+
degraded: DegradedSeat[];
|
|
116
|
+
skipped: SkippedSeat[];
|
|
117
|
+
workspaceId?: string;
|
|
118
|
+
code?: string;
|
|
119
|
+
error?: string;
|
|
120
|
+
notes?: string[];
|
|
121
|
+
cleanup?: "closed" | "already_gone" | "unknown";
|
|
122
|
+
}
|
|
123
|
+
export interface OpenAllResult {
|
|
124
|
+
ok: boolean;
|
|
125
|
+
provider: string;
|
|
126
|
+
session?: string;
|
|
127
|
+
rigs: OpenAllRigResult[];
|
|
128
|
+
code?: string;
|
|
129
|
+
error?: string;
|
|
130
|
+
notes?: string[];
|
|
131
|
+
}
|
|
132
|
+
export interface CloseAllRequest {
|
|
133
|
+
provider?: string;
|
|
134
|
+
session?: string;
|
|
135
|
+
}
|
|
136
|
+
export interface CloseAllViewerResult {
|
|
137
|
+
view: string;
|
|
138
|
+
provider: "herdr" | "tmux";
|
|
139
|
+
target: string;
|
|
140
|
+
outcome: "closed" | "already_gone" | "kept" | "failed";
|
|
141
|
+
reason?: string;
|
|
142
|
+
code?: string;
|
|
143
|
+
}
|
|
144
|
+
export interface CloseAllResult {
|
|
145
|
+
ok: boolean;
|
|
146
|
+
viewers: CloseAllViewerResult[];
|
|
147
|
+
code?: string;
|
|
148
|
+
error?: string;
|
|
149
|
+
notes?: string[];
|
|
150
|
+
}
|
|
151
|
+
export type BulkSeatRow = LiveSeatRow & {
|
|
152
|
+
host?: string | null;
|
|
153
|
+
};
|
|
87
154
|
export interface TerminalServiceDeps {
|
|
88
155
|
eventBus?: Pick<EventBus, "subscribe">;
|
|
89
156
|
followingStatePath?: string;
|
|
@@ -100,10 +167,10 @@ export interface TerminalServiceDeps {
|
|
|
100
167
|
}) | null;
|
|
101
168
|
/** The saved-views store (read paths only from this service). */
|
|
102
169
|
viewsStore: Pick<TerminalViewsStore, "get" | "list">;
|
|
103
|
-
/**
|
|
104
|
-
listRigSeats(
|
|
170
|
+
/** Resolve an exact rig ID first, then a legacy name; null means unknown. */
|
|
171
|
+
listRigSeats(rigIdOrName: string): Promise<BulkSeatRow[] | null> | BulkSeatRow[] | null;
|
|
105
172
|
/** One request-local inventory fold for the derived catalog entries. */
|
|
106
|
-
listRigSeatsBatch?(rigNames: string[]): Promise<Map<string,
|
|
173
|
+
listRigSeatsBatch?(rigNames: string[]): Promise<Map<string, BulkSeatRow[]>> | Map<string, BulkSeatRow[]>;
|
|
107
174
|
/** Live seats of a pod within a rig (by rig name-or-id + pod namespace); null when the rig/pod is unknown. */
|
|
108
175
|
listPodSeats(rigArg: string, podNamespace: string): Promise<LiveSeatRow[] | null> | LiveSeatRow[] | null;
|
|
109
176
|
/** Exact local queue episode; unavailable owners must remain in task.members. */
|
|
@@ -114,6 +181,13 @@ export interface TerminalServiceDeps {
|
|
|
114
181
|
invalidateScopeView?(): void;
|
|
115
182
|
/** Known rig names (for the `views` listing). */
|
|
116
183
|
listRigNames(): Promise<string[]> | string[];
|
|
184
|
+
listRigs?(): Promise<Array<{
|
|
185
|
+
id: string;
|
|
186
|
+
name: string;
|
|
187
|
+
}>> | Array<{
|
|
188
|
+
id: string;
|
|
189
|
+
name: string;
|
|
190
|
+
}>;
|
|
117
191
|
/** Read-only host resolution for the composer (registry unavailable → null for every id). */
|
|
118
192
|
resolveHost(id: string): HostEntry | null;
|
|
119
193
|
/** Local liveness refine — has-session for a local tmux session; remote members are not probed here. */
|
|
@@ -123,6 +197,12 @@ export interface TerminalServiceDeps {
|
|
|
123
197
|
* absolute path is used; anything else, or no resolver, keeps the bare `tmux` token.
|
|
124
198
|
*/
|
|
125
199
|
resolveLocalTmux?(): Promise<string | null> | string | null;
|
|
200
|
+
/** Directory storing `<sha256(endpoint)>.json` rig-viewer ownership ledgers. Omit for isolated memory in tests. */
|
|
201
|
+
rigViewersDir?: string;
|
|
202
|
+
/** Injectable tmux command runner on the daemon's tmux server (used for close --all and tests). */
|
|
203
|
+
tmuxExec?(args: string[]): Promise<string>;
|
|
204
|
+
/** Injectable daemon tmux server args (default: `daemonTmuxServerArgs()`). */
|
|
205
|
+
tmuxServerArgs?(): readonly string[];
|
|
126
206
|
}
|
|
127
207
|
/** The default kernel view's space name in a terminal multiplexer such as Herdr. */
|
|
128
208
|
export declare const KERNEL_SPACE_LABEL = "openrig kernel";
|
|
@@ -130,6 +210,7 @@ export declare class TerminalService {
|
|
|
130
210
|
private readonly deps;
|
|
131
211
|
private localTmux?;
|
|
132
212
|
private following?;
|
|
213
|
+
private readonly rigViewers;
|
|
133
214
|
private unsubscribeScope?;
|
|
134
215
|
constructor(deps: TerminalServiceDeps);
|
|
135
216
|
stop(): Promise<void>;
|
|
@@ -146,10 +227,23 @@ export declare class TerminalService {
|
|
|
146
227
|
private providerNameFor;
|
|
147
228
|
/** Open a view in the chosen provider. Always returns the one shared result shape. */
|
|
148
229
|
openView(req: OpenViewRequest): Promise<OpenViewResult>;
|
|
230
|
+
private openTrackedHerdr;
|
|
231
|
+
private composeRigBulk;
|
|
149
232
|
private resolveComposed;
|
|
233
|
+
private resolveComposedWithMeta;
|
|
150
234
|
private planId;
|
|
151
235
|
/** Passive: inventory, local has-session and provider probe only. Never openView. */
|
|
152
236
|
previewView(req: OpenViewRequest): Promise<TerminalPreview | OpenViewResult>;
|
|
237
|
+
private getTmuxServerArgs;
|
|
238
|
+
private runDaemonTmux;
|
|
239
|
+
private rigIdentities;
|
|
240
|
+
private resolveRigIdentity;
|
|
241
|
+
openAll(req: OpenAllRequest): Promise<OpenAllResult>;
|
|
242
|
+
private openSingleRigBulk;
|
|
243
|
+
closeAll(req: CloseAllRequest): Promise<CloseAllResult>;
|
|
244
|
+
private resolveHerdrAdapterStatus;
|
|
245
|
+
private closeHerdrEndpoint;
|
|
246
|
+
private closeTmuxEndpoint;
|
|
153
247
|
private viewerPane;
|
|
154
248
|
private viewerMappings;
|
|
155
249
|
/** Explicit owner operation: membership never grants input authority. The
|
|
@@ -163,6 +257,7 @@ export declare class TerminalService {
|
|
|
163
257
|
closeView(req: {
|
|
164
258
|
provider?: string;
|
|
165
259
|
view: string;
|
|
260
|
+
session?: string;
|
|
166
261
|
herdrApp?: HerdrAppTarget;
|
|
167
262
|
}): Promise<OpenViewResult>;
|
|
168
263
|
/** List saved views + the rig names openable as derived views. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminal-service.d.ts","sourceRoot":"","sources":["../../../src/domain/terminal/terminal-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"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