@openrig/cli 0.7.17 → 0.7.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -6
- package/daemon/assets/claude-hook-bridge.cjs +146 -0
- package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/README.md +1 -1
- package/daemon/assets/plugins/openrig-core/hooks/claude.json +14 -14
- package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +43 -22
- package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus.cjs +6 -0
- package/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md +23 -0
- package/daemon/assets/plugins/openrig-core/skills/mission-slice-sop/SKILL.md +1 -1
- package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +11 -0
- package/daemon/assets/plugins/openrig-core/skills/refocusing/scripts/trace-to-root.py +95 -7
- package/daemon/assets/skills/rigs/SKILL.md +68 -33
- package/daemon/assets/skills/rigs/references/installing-for-someone.md +2 -2
- package/daemon/context-packs/help/manifest.yaml +1 -1
- package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
- package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +57 -14
- package/daemon/context-packs/reference/getting-started.md +9 -4
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +197 -1
- package/daemon/context-packs/reference/whats-new.md +187 -15
- package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
- package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
- package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
- package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/messaging-the-human/SKILL.md +23 -0
- package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
- package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
- package/daemon/context-packs/skills/mission-slice-sop/SKILL.md +1 -1
- package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-user/SKILL.md +11 -0
- package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
- package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
- package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
- package/daemon/context-packs/skills/refocusing/scripts/trace-to-root.py +95 -7
- package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
- package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
- package/daemon/context-packs/world-example/manifest.yaml +1 -1
- package/daemon/context-packs/world-public/manifest.yaml +1 -1
- package/daemon/dist/adapters/claude-code-adapter.d.ts +9 -0
- package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +57 -9
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts +4 -1
- package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume.js +15 -5
- package/daemon/dist/adapters/claude-resume.js.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts +5 -0
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js +45 -10
- package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/kernel-authority.d.ts +8 -1
- package/daemon/dist/adapters/kernel-authority.d.ts.map +1 -1
- package/daemon/dist/adapters/kernel-authority.js +45 -10
- package/daemon/dist/adapters/kernel-authority.js.map +1 -1
- package/daemon/dist/adapters/pi-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-resume.js +5 -7
- package/daemon/dist/adapters/pi-resume.js.map +1 -1
- package/daemon/dist/adapters/pi-runner-protocol.d.ts +47 -0
- package/daemon/dist/adapters/pi-runner-protocol.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner-protocol.js.map +1 -1
- package/daemon/dist/adapters/pi-runner.d.ts +84 -1
- package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner.js +799 -16
- package/daemon/dist/adapters/pi-runner.js.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts +7 -1
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.js +29 -19
- package/daemon/dist/adapters/pi-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/tmux-credential-env.d.ts +4 -0
- package/daemon/dist/adapters/tmux-credential-env.d.ts.map +1 -0
- package/daemon/dist/adapters/tmux-credential-env.js +14 -0
- package/daemon/dist/adapters/tmux-credential-env.js.map +1 -0
- package/daemon/dist/adapters/tmux-exec.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-exec.js +4 -3
- package/daemon/dist/adapters/tmux-exec.js.map +1 -1
- package/daemon/dist/adapters/tmux-server.d.ts +2 -2
- package/daemon/dist/adapters/tmux-server.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-server.js +12 -4
- package/daemon/dist/adapters/tmux-server.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +242 -14
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +966 -34
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/attention-surface.d.ts +4 -1
- package/daemon/dist/attention-surface.d.ts.map +1 -1
- package/daemon/dist/attention-surface.js.map +1 -1
- package/daemon/dist/build-info.js +3 -3
- package/daemon/dist/db/all-migrations.d.ts.map +1 -1
- package/daemon/dist/db/all-migrations.js +14 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrations/171_claude_auto_mode.d.ts +4 -0
- package/daemon/dist/db/migrations/171_claude_auto_mode.d.ts.map +1 -0
- package/daemon/dist/db/migrations/171_claude_auto_mode.js +9 -0
- package/daemon/dist/db/migrations/171_claude_auto_mode.js.map +1 -0
- package/daemon/dist/db/migrations/171_node_input_route.d.ts +4 -0
- package/daemon/dist/db/migrations/171_node_input_route.d.ts.map +1 -0
- package/daemon/dist/db/migrations/171_node_input_route.js +6 -0
- package/daemon/dist/db/migrations/171_node_input_route.js.map +1 -0
- package/daemon/dist/db/migrations/171_seat_hook_bridge.d.ts +5 -0
- package/daemon/dist/db/migrations/171_seat_hook_bridge.d.ts.map +1 -0
- package/daemon/dist/db/migrations/171_seat_hook_bridge.js +25 -0
- package/daemon/dist/db/migrations/171_seat_hook_bridge.js.map +1 -0
- package/daemon/dist/db/migrations/172_queue_return_route.d.ts +3 -0
- package/daemon/dist/db/migrations/172_queue_return_route.d.ts.map +1 -0
- package/daemon/dist/db/migrations/172_queue_return_route.js +13 -0
- package/daemon/dist/db/migrations/172_queue_return_route.js.map +1 -0
- package/daemon/dist/db/migrations/173_node_process_limits.d.ts +4 -0
- package/daemon/dist/db/migrations/173_node_process_limits.d.ts.map +1 -0
- package/daemon/dist/db/migrations/173_node_process_limits.js +6 -0
- package/daemon/dist/db/migrations/173_node_process_limits.js.map +1 -0
- package/daemon/dist/db/migrations/174_session_launched_cwd.d.ts +6 -0
- package/daemon/dist/db/migrations/174_session_launched_cwd.d.ts.map +1 -0
- package/daemon/dist/db/migrations/174_session_launched_cwd.js +8 -0
- package/daemon/dist/db/migrations/174_session_launched_cwd.js.map +1 -0
- package/daemon/dist/db/migrations/175_core_app_access.d.ts +3 -0
- package/daemon/dist/db/migrations/175_core_app_access.d.ts.map +1 -0
- package/daemon/dist/db/migrations/175_core_app_access.js +26 -0
- package/daemon/dist/db/migrations/175_core_app_access.js.map +1 -0
- package/daemon/dist/domain/activity-grants.d.ts.map +1 -1
- package/daemon/dist/domain/activity-grants.js +8 -4
- package/daemon/dist/domain/activity-grants.js.map +1 -1
- package/daemon/dist/domain/agent-activity-store.d.ts +59 -1
- package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
- package/daemon/dist/domain/agent-activity-store.js +250 -4
- package/daemon/dist/domain/agent-activity-store.js.map +1 -1
- package/daemon/dist/domain/agent-images/resume-token-discovery.d.ts +10 -0
- package/daemon/dist/domain/agent-images/resume-token-discovery.d.ts.map +1 -1
- package/daemon/dist/domain/agent-images/resume-token-discovery.js +21 -0
- package/daemon/dist/domain/agent-images/resume-token-discovery.js.map +1 -1
- package/daemon/dist/domain/applied-launch-observation-store.d.ts +5 -0
- package/daemon/dist/domain/applied-launch-observation-store.d.ts.map +1 -1
- package/daemon/dist/domain/applied-launch-observation-store.js +57 -21
- package/daemon/dist/domain/applied-launch-observation-store.js.map +1 -1
- package/daemon/dist/domain/builtin-startup-files.d.ts +26 -12
- package/daemon/dist/domain/builtin-startup-files.d.ts.map +1 -1
- package/daemon/dist/domain/builtin-startup-files.js +73 -34
- package/daemon/dist/domain/builtin-startup-files.js.map +1 -1
- package/daemon/dist/domain/claude-activity-hooks.d.ts +4 -2
- package/daemon/dist/domain/claude-activity-hooks.d.ts.map +1 -1
- package/daemon/dist/domain/claude-activity-hooks.js +5 -3
- package/daemon/dist/domain/claude-activity-hooks.js.map +1 -1
- package/daemon/dist/domain/claude-auto-mode.d.ts +64 -0
- package/daemon/dist/domain/claude-auto-mode.d.ts.map +1 -0
- package/daemon/dist/domain/claude-auto-mode.js +114 -0
- package/daemon/dist/domain/claude-auto-mode.js.map +1 -0
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts +66 -3
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.js +214 -10
- package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
- package/daemon/dist/domain/claude-continuation-launch.d.ts +5 -1
- package/daemon/dist/domain/claude-continuation-launch.d.ts.map +1 -1
- package/daemon/dist/domain/claude-continuation-launch.js +51 -2
- package/daemon/dist/domain/claude-continuation-launch.js.map +1 -1
- package/daemon/dist/domain/claude-core-plugin-env.d.ts +7 -3
- package/daemon/dist/domain/claude-core-plugin-env.d.ts.map +1 -1
- package/daemon/dist/domain/claude-core-plugin-env.js +11 -8
- package/daemon/dist/domain/claude-core-plugin-env.js.map +1 -1
- package/daemon/dist/domain/codex-daemon-support.d.ts.map +1 -1
- package/daemon/dist/domain/codex-daemon-support.js +6 -1
- package/daemon/dist/domain/codex-daemon-support.js.map +1 -1
- package/daemon/dist/domain/community-harness-launch-result.d.ts +2 -0
- package/daemon/dist/domain/community-harness-launch-result.d.ts.map +1 -1
- package/daemon/dist/domain/community-harness-launch-result.js +5 -1
- package/daemon/dist/domain/community-harness-launch-result.js.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts +3 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.js +22 -3
- package/daemon/dist/domain/compaction-restore-notice.js.map +1 -1
- package/daemon/dist/domain/configured-account.d.ts +3 -0
- package/daemon/dist/domain/configured-account.d.ts.map +1 -0
- package/daemon/dist/domain/configured-account.js +10 -0
- package/daemon/dist/domain/configured-account.js.map +1 -0
- package/daemon/dist/domain/connection-contract.d.ts +91 -0
- package/daemon/dist/domain/connection-contract.d.ts.map +1 -1
- package/daemon/dist/domain/connection-contract.js +73 -0
- package/daemon/dist/domain/connection-contract.js.map +1 -1
- package/daemon/dist/domain/context-usage-store.d.ts +5 -0
- package/daemon/dist/domain/context-usage-store.d.ts.map +1 -1
- package/daemon/dist/domain/context-usage-store.js +37 -2
- package/daemon/dist/domain/context-usage-store.js.map +1 -1
- package/daemon/dist/domain/core-app-access.d.ts +51 -0
- package/daemon/dist/domain/core-app-access.d.ts.map +1 -0
- package/daemon/dist/domain/core-app-access.js +107 -0
- package/daemon/dist/domain/core-app-access.js.map +1 -0
- package/daemon/dist/domain/core-app-job.d.ts +411 -0
- package/daemon/dist/domain/core-app-job.d.ts.map +1 -0
- package/daemon/dist/domain/core-app-job.js +537 -0
- package/daemon/dist/domain/core-app-job.js.map +1 -0
- package/daemon/dist/domain/current-park-arm.d.ts +4 -0
- package/daemon/dist/domain/current-park-arm.d.ts.map +1 -0
- package/daemon/dist/domain/current-park-arm.js +14 -0
- package/daemon/dist/domain/current-park-arm.js.map +1 -0
- package/daemon/dist/domain/current-work.d.ts +6 -1
- package/daemon/dist/domain/current-work.d.ts.map +1 -1
- package/daemon/dist/domain/current-work.js +41 -8
- package/daemon/dist/domain/current-work.js.map +1 -1
- package/daemon/dist/domain/cwd-resolution.d.ts +14 -0
- package/daemon/dist/domain/cwd-resolution.d.ts.map +1 -1
- package/daemon/dist/domain/cwd-resolution.js +28 -3
- package/daemon/dist/domain/cwd-resolution.js.map +1 -1
- package/daemon/dist/domain/draft-aware-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/draft-aware-delivery.js +5 -1
- package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
- package/daemon/dist/domain/errors.d.ts +4 -0
- package/daemon/dist/domain/errors.d.ts.map +1 -1
- package/daemon/dist/domain/errors.js +7 -0
- package/daemon/dist/domain/errors.js.map +1 -1
- package/daemon/dist/domain/execution-view.d.ts.map +1 -1
- package/daemon/dist/domain/execution-view.js +17 -4
- package/daemon/dist/domain/execution-view.js.map +1 -1
- package/daemon/dist/domain/existing-rig-restore.d.ts +2 -0
- package/daemon/dist/domain/existing-rig-restore.d.ts.map +1 -1
- package/daemon/dist/domain/existing-rig-restore.js +1 -0
- package/daemon/dist/domain/existing-rig-restore.js.map +1 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.js +107 -3
- package/daemon/dist/domain/gateway/operator-delivery-engine.js.map +1 -1
- package/daemon/dist/domain/gateway/participants.d.ts +2 -0
- package/daemon/dist/domain/gateway/participants.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/participants.js +5 -1
- package/daemon/dist/domain/gateway/participants.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/capabilities.d.ts +9 -1
- package/daemon/dist/domain/gateway/slack/capabilities.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/capabilities.js +6 -1
- package/daemon/dist/domain/gateway/slack/capabilities.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound-admission.js +1 -1
- package/daemon/dist/domain/gateway/slack/inbound-admission.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.d.ts +4 -0
- package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.js +15 -1
- package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/manifest.d.ts +5 -1
- package/daemon/dist/domain/gateway/slack/manifest.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/manifest.js +12 -3
- package/daemon/dist/domain/gateway/slack/manifest.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.d.ts +2 -0
- package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.js +41 -18
- package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts +2 -0
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.js +1 -0
- package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/settled-asks.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/settled-asks.js +6 -5
- package/daemon/dist/domain/gateway/slack/settled-asks.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-api.d.ts +1 -0
- package/daemon/dist/domain/gateway/slack/slack-api.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-api.js +7 -2
- package/daemon/dist/domain/gateway/slack/slack-api.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +1 -0
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.js +2 -0
- package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts +4 -0
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js +26 -2
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
- package/daemon/dist/domain/harness-not-started-notice.d.ts +36 -0
- package/daemon/dist/domain/harness-not-started-notice.d.ts.map +1 -0
- package/daemon/dist/domain/harness-not-started-notice.js +81 -0
- package/daemon/dist/domain/harness-not-started-notice.js.map +1 -0
- package/daemon/dist/domain/hook-bridge.d.ts +345 -0
- package/daemon/dist/domain/hook-bridge.d.ts.map +1 -0
- package/daemon/dist/domain/hook-bridge.js +547 -0
- package/daemon/dist/domain/hook-bridge.js.map +1 -0
- package/daemon/dist/domain/hosted-wake.d.ts +9 -0
- package/daemon/dist/domain/hosted-wake.d.ts.map +1 -1
- package/daemon/dist/domain/hosted-wake.js +45 -6
- package/daemon/dist/domain/hosted-wake.js.map +1 -1
- package/daemon/dist/domain/hot-potato-enforcer.d.ts +1 -1
- package/daemon/dist/domain/human-ask-attention.d.ts +10 -0
- package/daemon/dist/domain/human-ask-attention.d.ts.map +1 -0
- package/daemon/dist/domain/human-ask-attention.js +22 -0
- package/daemon/dist/domain/human-ask-attention.js.map +1 -0
- package/daemon/dist/domain/input-read-diagnostic.js +1 -1
- package/daemon/dist/domain/input-read-diagnostic.js.map +1 -1
- package/daemon/dist/domain/instance-initialization.d.ts +2 -0
- package/daemon/dist/domain/instance-initialization.d.ts.map +1 -1
- package/daemon/dist/domain/instance-initialization.js +2 -1
- package/daemon/dist/domain/instance-initialization.js.map +1 -1
- package/daemon/dist/domain/member-connection.d.ts +14 -0
- package/daemon/dist/domain/member-connection.d.ts.map +1 -0
- package/daemon/dist/domain/member-connection.js +34 -0
- package/daemon/dist/domain/member-connection.js.map +1 -0
- package/daemon/dist/domain/mission-control/mission-control-action-log.d.ts +4 -0
- package/daemon/dist/domain/mission-control/mission-control-action-log.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-action-log.js +8 -1
- package/daemon/dist/domain/mission-control/mission-control-action-log.js.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts +10 -0
- package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js +64 -12
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
- package/daemon/dist/domain/model-divergence/current-model-reader.d.ts +3 -1
- package/daemon/dist/domain/model-divergence/current-model-reader.d.ts.map +1 -1
- package/daemon/dist/domain/model-divergence/current-model-reader.js +32 -7
- package/daemon/dist/domain/model-divergence/current-model-reader.js.map +1 -1
- package/daemon/dist/domain/native-continuation-notice.d.ts +16 -0
- package/daemon/dist/domain/native-continuation-notice.d.ts.map +1 -0
- package/daemon/dist/domain/native-continuation-notice.js +79 -0
- package/daemon/dist/domain/native-continuation-notice.js.map +1 -0
- package/daemon/dist/domain/native-permission-store.d.ts +6 -2
- package/daemon/dist/domain/native-permission-store.d.ts.map +1 -1
- package/daemon/dist/domain/native-permission-store.js +12 -5
- package/daemon/dist/domain/native-permission-store.js.map +1 -1
- package/daemon/dist/domain/native-process-lineage.d.ts +16 -0
- package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
- package/daemon/dist/domain/native-process-lineage.js +48 -3
- package/daemon/dist/domain/native-process-lineage.js.map +1 -1
- package/daemon/dist/domain/native-resume-probe.d.ts +5 -0
- package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +94 -10
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/network/network-connector.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-connector.js +11 -2
- package/daemon/dist/domain/network/network-connector.js.map +1 -1
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +55 -6
- package/daemon/dist/domain/node-inventory.js.map +1 -1
- package/daemon/dist/domain/node-launcher.d.ts +14 -0
- package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/node-launcher.js +35 -6
- package/daemon/dist/domain/node-launcher.js.map +1 -1
- package/daemon/dist/domain/outbox-handler.d.ts +69 -1
- package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
- package/daemon/dist/domain/outbox-handler.js +337 -3
- package/daemon/dist/domain/outbox-handler.js.map +1 -1
- package/daemon/dist/domain/park-wake-text.d.ts +18 -0
- package/daemon/dist/domain/park-wake-text.d.ts.map +1 -1
- package/daemon/dist/domain/park-wake-text.js +44 -0
- package/daemon/dist/domain/park-wake-text.js.map +1 -1
- package/daemon/dist/domain/parked-query.d.ts.map +1 -1
- package/daemon/dist/domain/parked-query.js +3 -1
- package/daemon/dist/domain/parked-query.js.map +1 -1
- package/daemon/dist/domain/permission-account.d.ts +28 -1
- package/daemon/dist/domain/permission-account.d.ts.map +1 -1
- package/daemon/dist/domain/permission-account.js +55 -11
- package/daemon/dist/domain/permission-account.js.map +1 -1
- package/daemon/dist/domain/permission-drift.d.ts +2 -0
- package/daemon/dist/domain/permission-drift.d.ts.map +1 -1
- package/daemon/dist/domain/permission-drift.js.map +1 -1
- package/daemon/dist/domain/pi-compaction-request-store.d.ts +16 -0
- package/daemon/dist/domain/pi-compaction-request-store.d.ts.map +1 -0
- package/daemon/dist/domain/pi-compaction-request-store.js +40 -0
- package/daemon/dist/domain/pi-compaction-request-store.js.map +1 -0
- package/daemon/dist/domain/pi-compaction-service.d.ts +82 -0
- package/daemon/dist/domain/pi-compaction-service.d.ts.map +1 -0
- package/daemon/dist/domain/pi-compaction-service.js +229 -0
- package/daemon/dist/domain/pi-compaction-service.js.map +1 -0
- package/daemon/dist/domain/policies/idle-gate-qitem.d.ts +3 -0
- package/daemon/dist/domain/policies/idle-gate-qitem.d.ts.map +1 -1
- package/daemon/dist/domain/policies/idle-gate-qitem.js +15 -0
- package/daemon/dist/domain/policies/idle-gate-qitem.js.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts +6 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js +28 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
- package/daemon/dist/domain/process-limits.d.ts +47 -0
- package/daemon/dist/domain/process-limits.d.ts.map +1 -0
- package/daemon/dist/domain/process-limits.js +123 -0
- package/daemon/dist/domain/process-limits.js.map +1 -0
- package/daemon/dist/domain/process-table.d.ts +24 -0
- package/daemon/dist/domain/process-table.d.ts.map +1 -1
- package/daemon/dist/domain/process-table.js +60 -4
- package/daemon/dist/domain/process-table.js.map +1 -1
- package/daemon/dist/domain/proof/judgments.d.ts +7 -0
- package/daemon/dist/domain/proof/judgments.d.ts.map +1 -1
- package/daemon/dist/domain/proof/judgments.js +27 -1
- package/daemon/dist/domain/proof/judgments.js.map +1 -1
- package/daemon/dist/domain/ps-projection.d.ts +2 -1
- package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
- package/daemon/dist/domain/ps-projection.js +6 -1
- package/daemon/dist/domain/ps-projection.js.map +1 -1
- package/daemon/dist/domain/queue-erasure.d.ts +11 -6
- package/daemon/dist/domain/queue-erasure.d.ts.map +1 -1
- package/daemon/dist/domain/queue-erasure.js +47 -21
- package/daemon/dist/domain/queue-erasure.js.map +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +122 -21
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +448 -101
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts +5 -0
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +74 -13
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/queue-transition-log.d.ts +5 -3
- package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
- package/daemon/dist/domain/queue-transition-log.js +9 -6
- package/daemon/dist/domain/queue-transition-log.js.map +1 -1
- package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
- package/daemon/dist/domain/queue-waiting.js +28 -3
- package/daemon/dist/domain/queue-waiting.js.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.d.ts +20 -0
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +264 -25
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/queue-wake-repository.d.ts +10 -1
- package/daemon/dist/domain/queue-wake-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-repository.js +79 -12
- package/daemon/dist/domain/queue-wake-repository.js.map +1 -1
- package/daemon/dist/domain/reconciler.d.ts +18 -2
- package/daemon/dist/domain/reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/reconciler.js +40 -0
- package/daemon/dist/domain/reconciler.js.map +1 -1
- package/daemon/dist/domain/restore-attempt-receipt.d.ts.map +1 -1
- package/daemon/dist/domain/restore-attempt-receipt.js +3 -2
- package/daemon/dist/domain/restore-attempt-receipt.js.map +1 -1
- package/daemon/dist/domain/restore-check-service.d.ts +10 -0
- package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
- package/daemon/dist/domain/restore-check-service.js +76 -3
- package/daemon/dist/domain/restore-check-service.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +65 -3
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +311 -55
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/restore-plan-preview.d.ts +28 -1
- package/daemon/dist/domain/restore-plan-preview.d.ts.map +1 -1
- package/daemon/dist/domain/restore-plan-preview.js +17 -5
- package/daemon/dist/domain/restore-plan-preview.js.map +1 -1
- package/daemon/dist/domain/restore-preconditions.d.ts +24 -0
- package/daemon/dist/domain/restore-preconditions.d.ts.map +1 -1
- package/daemon/dist/domain/restore-preconditions.js +61 -1
- package/daemon/dist/domain/restore-preconditions.js.map +1 -1
- package/daemon/dist/domain/restore-topology.d.ts +7 -1
- package/daemon/dist/domain/restore-topology.d.ts.map +1 -1
- package/daemon/dist/domain/restore-topology.js +21 -0
- package/daemon/dist/domain/restore-topology.js.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.d.ts +2 -3
- package/daemon/dist/domain/resume-metadata-refresher.d.ts.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.js +6 -25
- package/daemon/dist/domain/resume-metadata-refresher.js.map +1 -1
- package/daemon/dist/domain/resume-token-validation.d.ts +3 -1
- package/daemon/dist/domain/resume-token-validation.d.ts.map +1 -1
- package/daemon/dist/domain/resume-token-validation.js +6 -3
- package/daemon/dist/domain/resume-token-validation.js.map +1 -1
- package/daemon/dist/domain/return-route.d.ts +73 -0
- package/daemon/dist/domain/return-route.d.ts.map +1 -0
- package/daemon/dist/domain/return-route.js +124 -0
- package/daemon/dist/domain/return-route.js.map +1 -0
- package/daemon/dist/domain/rig-expansion-service.js +1 -1
- package/daemon/dist/domain/rig-expansion-service.js.map +1 -1
- package/daemon/dist/domain/rig-repository.d.ts +12 -0
- package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
- package/daemon/dist/domain/rig-repository.js +74 -0
- package/daemon/dist/domain/rig-repository.js.map +1 -1
- package/daemon/dist/domain/rig-teardown.d.ts +20 -5
- package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
- package/daemon/dist/domain/rig-teardown.js +105 -22
- package/daemon/dist/domain/rig-teardown.js.map +1 -1
- package/daemon/dist/domain/rigspec-codec.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-codec.js +9 -0
- package/daemon/dist/domain/rigspec-codec.js.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.d.ts +6 -0
- package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.js +30 -0
- package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts +27 -2
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +95 -26
- package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-schema.js +44 -1
- package/daemon/dist/domain/rigspec-schema.js.map +1 -1
- package/daemon/dist/domain/rosters.d.ts +23 -0
- package/daemon/dist/domain/rosters.d.ts.map +1 -1
- package/daemon/dist/domain/rosters.js +37 -5
- package/daemon/dist/domain/rosters.js.map +1 -1
- package/daemon/dist/domain/runner-channel.d.ts +65 -0
- package/daemon/dist/domain/runner-channel.d.ts.map +1 -0
- package/daemon/dist/domain/runner-channel.js +348 -0
- package/daemon/dist/domain/runner-channel.js.map +1 -0
- package/daemon/dist/domain/runner-grant-launch.js +2 -2
- package/daemon/dist/domain/runner-permissions.d.ts +26 -3
- package/daemon/dist/domain/runner-permissions.d.ts.map +1 -1
- package/daemon/dist/domain/runner-permissions.js +160 -39
- package/daemon/dist/domain/runner-permissions.js.map +1 -1
- package/daemon/dist/domain/runtime-adapter.d.ts +2 -0
- package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-adapter.js.map +1 -1
- package/daemon/dist/domain/runtime-switch-materials.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-switch-materials.js +4 -3
- package/daemon/dist/domain/runtime-switch-materials.js.map +1 -1
- package/daemon/dist/domain/scope/mission-parent.d.ts +19 -0
- package/daemon/dist/domain/scope/mission-parent.d.ts.map +1 -0
- package/daemon/dist/domain/scope/mission-parent.js +134 -0
- package/daemon/dist/domain/scope/mission-parent.js.map +1 -0
- package/daemon/dist/domain/scope/scope-audit.d.ts.map +1 -1
- package/daemon/dist/domain/scope/scope-audit.js +63 -3
- package/daemon/dist/domain/scope/scope-audit.js.map +1 -1
- package/daemon/dist/domain/scope/types.d.ts +3 -1
- package/daemon/dist/domain/scope/types.d.ts.map +1 -1
- package/daemon/dist/domain/scope/types.js +5 -1
- package/daemon/dist/domain/scope/types.js.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.d.ts +6 -4
- package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.js +17 -10
- package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.d.ts +14 -2
- package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.js +55 -15
- package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
- package/daemon/dist/domain/seat-handover-service.d.ts +27 -4
- package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-handover-service.js +210 -65
- package/daemon/dist/domain/seat-handover-service.js.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.d.ts +12 -4
- package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.js +92 -17
- package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +31 -6
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +172 -24
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.d.ts +9 -2
- package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.js +38 -3
- package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts +4 -0
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.js +11 -3
- package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
- package/daemon/dist/domain/seat-skill-apply.d.ts +1 -1
- package/daemon/dist/domain/seat-skill-apply.d.ts.map +1 -1
- package/daemon/dist/domain/seat-skill-apply.js +3 -2
- package/daemon/dist/domain/seat-skill-apply.js.map +1 -1
- package/daemon/dist/domain/seat-status-service.d.ts +4 -0
- package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-status-service.js +31 -6
- package/daemon/dist/domain/seat-status-service.js.map +1 -1
- package/daemon/dist/domain/session-registry.d.ts +5 -1
- package/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.js +12 -1
- package/daemon/dist/domain/session-registry.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +56 -4
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +344 -18
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/shared-conversation.d.ts +58 -0
- package/daemon/dist/domain/shared-conversation.d.ts.map +1 -0
- package/daemon/dist/domain/shared-conversation.js +98 -0
- package/daemon/dist/domain/shared-conversation.js.map +1 -0
- package/daemon/dist/domain/shared-history-selection.d.ts.map +1 -1
- package/daemon/dist/domain/shared-history-selection.js +9 -5
- package/daemon/dist/domain/shared-history-selection.js.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.d.ts +1 -1
- package/daemon/dist/domain/slices/slice-indexer.d.ts.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.js +4 -0
- package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts +1 -0
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +6 -4
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/startup-phase-timing.d.ts +19 -0
- package/daemon/dist/domain/startup-phase-timing.d.ts.map +1 -0
- package/daemon/dist/domain/startup-phase-timing.js +23 -0
- package/daemon/dist/domain/startup-phase-timing.js.map +1 -0
- package/daemon/dist/domain/successor-session-launcher.d.ts +9 -0
- package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.js +33 -10
- package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
- package/daemon/dist/domain/team-operations.d.ts +6 -6
- package/daemon/dist/domain/team-operations.d.ts.map +1 -1
- package/daemon/dist/domain/team-operations.js +2 -4
- package/daemon/dist/domain/team-operations.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts +35 -1
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.js +231 -33
- package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-app-provider.d.ts +6 -0
- package/daemon/dist/domain/terminal/herdr-app-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-app-provider.js +23 -1
- package/daemon/dist/domain/terminal/herdr-app-provider.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-sessions.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-sessions.js +2 -1
- package/daemon/dist/domain/terminal/herdr-sessions.js.map +1 -1
- package/daemon/dist/domain/terminal/rig-viewer-records.d.ts +59 -0
- package/daemon/dist/domain/terminal/rig-viewer-records.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/rig-viewer-records.js +210 -0
- package/daemon/dist/domain/terminal/rig-viewer-records.js.map +1 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts +2 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.d.ts +99 -4
- package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.js +556 -36
- package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
- package/daemon/dist/domain/terminal/tile-layout.js +1 -1
- package/daemon/dist/domain/terminal/tile-layout.js.map +1 -1
- package/daemon/dist/domain/terminal/tmux-viewer-guard.d.ts +25 -0
- package/daemon/dist/domain/terminal/tmux-viewer-guard.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/tmux-viewer-guard.js +70 -0
- package/daemon/dist/domain/terminal/tmux-viewer-guard.js.map +1 -0
- package/daemon/dist/domain/terminal-policy.js +1 -1
- package/daemon/dist/domain/terminal-policy.js.map +1 -1
- package/daemon/dist/domain/transcript-grep-worker.d.ts +2 -0
- package/daemon/dist/domain/transcript-grep-worker.d.ts.map +1 -0
- package/daemon/dist/domain/transcript-grep-worker.js +108 -0
- package/daemon/dist/domain/transcript-grep-worker.js.map +1 -0
- package/daemon/dist/domain/transcript-grep.d.ts +26 -0
- package/daemon/dist/domain/transcript-grep.d.ts.map +1 -0
- package/daemon/dist/domain/transcript-grep.js +90 -0
- package/daemon/dist/domain/transcript-grep.js.map +1 -0
- package/daemon/dist/domain/transcript-store.d.ts +8 -2
- package/daemon/dist/domain/transcript-store.d.ts.map +1 -1
- package/daemon/dist/domain/transcript-store.js +10 -60
- package/daemon/dist/domain/transcript-store.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +149 -5
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/watchdog-delivery-receipts.d.ts +4 -0
- package/daemon/dist/domain/watchdog-delivery-receipts.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-delivery-receipts.js +35 -2
- package/daemon/dist/domain/watchdog-delivery-receipts.js.map +1 -1
- package/daemon/dist/domain/watchdog-delivery.d.ts +45 -1
- package/daemon/dist/domain/watchdog-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-delivery.js +66 -5
- package/daemon/dist/domain/watchdog-delivery.js.map +1 -1
- package/daemon/dist/domain/watchdog-history-log.d.ts +12 -0
- package/daemon/dist/domain/watchdog-history-log.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-history-log.js +19 -1
- package/daemon/dist/domain/watchdog-history-log.js.map +1 -1
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts +32 -0
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-jobs-repository.js +79 -0
- package/daemon/dist/domain/watchdog-jobs-repository.js.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.d.ts +22 -3
- package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.js +33 -9
- package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
- package/daemon/dist/domain/workflow-projector.js +1 -1
- package/daemon/dist/domain/workflow-projector.js.map +1 -1
- package/daemon/dist/domain/workflow-runtime.d.ts +13 -1
- package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-runtime.js +68 -9
- package/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/daemon/dist/domain/workflow-step-trail-log.d.ts +2 -2
- package/daemon/dist/domain/workflow-step-trail-log.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-step-trail-log.js.map +1 -1
- package/daemon/dist/domain/workflow-types.d.ts +3 -1
- package/daemon/dist/domain/workflow-types.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-types.js.map +1 -1
- package/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts +7 -1
- package/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts.map +1 -1
- package/daemon/dist/domain/workspace/default-workspace-scaffold.js +35 -7
- package/daemon/dist/domain/workspace/default-workspace-scaffold.js.map +1 -1
- package/daemon/dist/gateway-slack-surface.d.ts +2 -2
- package/daemon/dist/gateway-slack-surface.d.ts.map +1 -1
- package/daemon/dist/gateway-slack-surface.js +1 -1
- package/daemon/dist/gateway-slack-surface.js.map +1 -1
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +17 -2
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/lib/pane-envelope.d.ts +3 -0
- package/daemon/dist/lib/pane-envelope.d.ts.map +1 -1
- package/daemon/dist/lib/pane-envelope.js +3 -1
- package/daemon/dist/lib/pane-envelope.js.map +1 -1
- package/daemon/dist/mission-parent-surface.d.ts +2 -0
- package/daemon/dist/mission-parent-surface.d.ts.map +1 -0
- package/daemon/dist/mission-parent-surface.js +2 -0
- package/daemon/dist/mission-parent-surface.js.map +1 -0
- package/daemon/dist/routes/activity.d.ts +18 -1
- package/daemon/dist/routes/activity.d.ts.map +1 -1
- package/daemon/dist/routes/activity.js +150 -9
- package/daemon/dist/routes/activity.js.map +1 -1
- package/daemon/dist/routes/agent-images.d.ts.map +1 -1
- package/daemon/dist/routes/agent-images.js +6 -1
- package/daemon/dist/routes/agent-images.js.map +1 -1
- package/daemon/dist/routes/attention.d.ts.map +1 -1
- package/daemon/dist/routes/attention.js +194 -176
- package/daemon/dist/routes/attention.js.map +1 -1
- package/daemon/dist/routes/compaction.d.ts.map +1 -1
- package/daemon/dist/routes/compaction.js +46 -7
- package/daemon/dist/routes/compaction.js.map +1 -1
- package/daemon/dist/routes/core-app.d.ts +10 -0
- package/daemon/dist/routes/core-app.d.ts.map +1 -0
- package/daemon/dist/routes/core-app.js +175 -0
- package/daemon/dist/routes/core-app.js.map +1 -0
- package/daemon/dist/routes/hook-bridge.d.ts +3 -0
- package/daemon/dist/routes/hook-bridge.d.ts.map +1 -0
- package/daemon/dist/routes/hook-bridge.js +158 -0
- package/daemon/dist/routes/hook-bridge.js.map +1 -0
- package/daemon/dist/routes/missions.d.ts.map +1 -1
- package/daemon/dist/routes/missions.js +14 -2
- package/daemon/dist/routes/missions.js.map +1 -1
- package/daemon/dist/routes/queue.d.ts +4 -1
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +239 -38
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/require-sender-identity.d.ts +4 -3
- package/daemon/dist/routes/require-sender-identity.d.ts.map +1 -1
- package/daemon/dist/routes/require-sender-identity.js.map +1 -1
- package/daemon/dist/routes/restore-check.d.ts.map +1 -1
- package/daemon/dist/routes/restore-check.js +1 -0
- package/daemon/dist/routes/restore-check.js.map +1 -1
- package/daemon/dist/routes/rigspec.d.ts.map +1 -1
- package/daemon/dist/routes/rigspec.js +24 -4
- package/daemon/dist/routes/rigspec.js.map +1 -1
- package/daemon/dist/routes/scope-audit.d.ts.map +1 -1
- package/daemon/dist/routes/scope-audit.js +7 -1
- package/daemon/dist/routes/scope-audit.js.map +1 -1
- package/daemon/dist/routes/seat.d.ts.map +1 -1
- package/daemon/dist/routes/seat.js +133 -6
- package/daemon/dist/routes/seat.js.map +1 -1
- package/daemon/dist/routes/sessions.js +14 -3
- package/daemon/dist/routes/sessions.js.map +1 -1
- package/daemon/dist/routes/slices.d.ts.map +1 -1
- package/daemon/dist/routes/slices.js +21 -2
- package/daemon/dist/routes/slices.js.map +1 -1
- package/daemon/dist/routes/startup.js +9 -2
- package/daemon/dist/routes/startup.js.map +1 -1
- package/daemon/dist/routes/terminal.d.ts.map +1 -1
- package/daemon/dist/routes/terminal.js +47 -6
- package/daemon/dist/routes/terminal.js.map +1 -1
- package/daemon/dist/routes/transcripts.d.ts.map +1 -1
- package/daemon/dist/routes/transcripts.js +16 -1
- package/daemon/dist/routes/transcripts.js.map +1 -1
- package/daemon/dist/routes/up.d.ts.map +1 -1
- package/daemon/dist/routes/up.js +14 -4
- package/daemon/dist/routes/up.js.map +1 -1
- package/daemon/dist/routes/watchdog.d.ts.map +1 -1
- package/daemon/dist/routes/watchdog.js +21 -3
- package/daemon/dist/routes/watchdog.js.map +1 -1
- package/daemon/dist/routes/workflow.d.ts.map +1 -1
- package/daemon/dist/routes/workflow.js +5 -0
- package/daemon/dist/routes/workflow.js.map +1 -1
- package/daemon/dist/server.d.ts +5 -0
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +22 -0
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +140 -48
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/dist/terminal-viewer-guard-surface.d.ts +2 -0
- package/daemon/dist/terminal-viewer-guard-surface.d.ts.map +1 -0
- package/daemon/dist/terminal-viewer-guard-surface.js +2 -0
- package/daemon/dist/terminal-viewer-guard-surface.js.map +1 -0
- package/daemon/docs/reference/agent-startup-guide.md +5 -1
- package/daemon/docs/reference/claude-status-line.md +3 -2
- package/daemon/docs/reference/community-harness-examples/cursor/openrig-cursor-launch +6 -0
- package/daemon/docs/reference/community-harness-examples/dsh/README.md +8 -0
- package/daemon/docs/reference/community-harness-examples/dsh/openrig-dsh-runner.mjs +310 -20
- package/daemon/docs/reference/community-harness-examples/hermes/openrig-hermes-launch +6 -0
- package/daemon/docs/reference/community-harness-examples/openclaw/openrig-openclaw-launch +6 -0
- package/daemon/docs/reference/community-harness-examples/openshell/README.md +2 -0
- package/daemon/docs/reference/community-harness-examples/pi-tui/openrig-pi-tui-launch +6 -0
- package/daemon/docs/reference/community-harness-presets.md +7 -4
- package/daemon/docs/reference/core-app.md +212 -0
- package/daemon/docs/reference/daemon-http-clients.md +67 -12
- package/daemon/docs/reference/getting-started.md +9 -4
- package/daemon/docs/reference/harness-runner-contract.md +140 -4
- package/daemon/docs/reference/herdr-app.md +6 -0
- package/daemon/docs/reference/hosted-members.md +21 -1
- package/daemon/docs/reference/quickstart.md +4 -3
- package/daemon/docs/reference/rig-spec.md +197 -1
- package/daemon/docs/reference/rosters.md +17 -0
- package/daemon/docs/reference/sdlc-conventions.md +47 -6
- package/daemon/docs/reference/seat-delivery.md +87 -6
- package/daemon/docs/reference/slack-app-setup.md +39 -21
- package/daemon/docs/reference/terminal-sessions.md +99 -1
- package/daemon/docs/reference/whats-new.md +187 -15
- package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +23 -0
- package/daemon/specs/rigs/launch/factory/guidance/lead-first-move.md +27 -5
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +32 -8
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/startup/context.md +1 -1
- package/daemon/specs/rigs/launch/kernel/culture/CULTURE.md +12 -0
- package/daemon/specs/rigs/launch/starter/guidance/lead-first-move.md +27 -5
- package/dist/acp/connector.js +1 -1
- package/dist/acp/connector.js.map +1 -1
- package/dist/ask-wake.d.ts.map +1 -1
- package/dist/ask-wake.js +8 -1
- package/dist/ask-wake.js.map +1 -1
- package/dist/build-info.js +3 -3
- package/dist/cli-error.d.ts.map +1 -1
- package/dist/cli-error.js +7 -1
- package/dist/cli-error.js.map +1 -1
- package/dist/client.d.ts +2 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +3 -2
- package/dist/client.js.map +1 -1
- package/dist/commands/archive.js +1 -1
- package/dist/commands/archive.js.map +1 -1
- package/dist/commands/ask.d.ts.map +1 -1
- package/dist/commands/ask.js +92 -11
- package/dist/commands/ask.js.map +1 -1
- package/dist/commands/broadcast.js +9 -5
- package/dist/commands/broadcast.js.map +1 -1
- package/dist/commands/compact.d.ts +3 -4
- package/dist/commands/compact.d.ts.map +1 -1
- package/dist/commands/compact.js +76 -16
- package/dist/commands/compact.js.map +1 -1
- package/dist/commands/config-init-workspace.d.ts.map +1 -1
- package/dist/commands/config-init-workspace.js +3 -0
- package/dist/commands/config-init-workspace.js.map +1 -1
- package/dist/commands/daemon.d.ts.map +1 -1
- package/dist/commands/daemon.js +7 -0
- package/dist/commands/daemon.js.map +1 -1
- package/dist/commands/down.d.ts.map +1 -1
- package/dist/commands/down.js +8 -1
- package/dist/commands/down.js.map +1 -1
- package/dist/commands/export.d.ts.map +1 -1
- package/dist/commands/export.js +2 -1
- package/dist/commands/export.js.map +1 -1
- package/dist/commands/fork.d.ts.map +1 -1
- package/dist/commands/fork.js +2 -0
- package/dist/commands/fork.js.map +1 -1
- package/dist/commands/launch.d.ts.map +1 -1
- package/dist/commands/launch.js +11 -3
- package/dist/commands/launch.js.map +1 -1
- package/dist/commands/ps.d.ts +30 -1
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +85 -6
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +309 -21
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/rig.d.ts +2 -0
- package/dist/commands/rig.d.ts.map +1 -1
- package/dist/commands/rig.js +36 -2
- package/dist/commands/rig.js.map +1 -1
- package/dist/commands/roster.d.ts +8 -0
- package/dist/commands/roster.d.ts.map +1 -1
- package/dist/commands/scope.d.ts.map +1 -1
- package/dist/commands/scope.js +346 -9
- package/dist/commands/scope.js.map +1 -1
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +213 -12
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/send.d.ts +2 -0
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +50 -7
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/setup.js +2 -2
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/slack.d.ts +2 -1
- package/dist/commands/slack.d.ts.map +1 -1
- package/dist/commands/slack.js +38 -2
- package/dist/commands/slack.js.map +1 -1
- package/dist/commands/terminal.d.ts +56 -0
- package/dist/commands/terminal.d.ts.map +1 -1
- package/dist/commands/terminal.js +199 -9
- package/dist/commands/terminal.js.map +1 -1
- package/dist/commands/transcript.js +1 -1
- package/dist/commands/transcript.js.map +1 -1
- package/dist/commands/unarchive.js +1 -1
- package/dist/commands/unarchive.js.map +1 -1
- package/dist/commands/up.d.ts.map +1 -1
- package/dist/commands/up.js +3 -0
- package/dist/commands/up.js.map +1 -1
- package/dist/commands/workflow-follow.d.ts +3 -1
- package/dist/commands/workflow-follow.d.ts.map +1 -1
- package/dist/commands/workflow-follow.js +25 -6
- package/dist/commands/workflow-follow.js.map +1 -1
- package/dist/commands/workflow-render.d.ts.map +1 -1
- package/dist/commands/workflow-render.js +5 -1
- package/dist/commands/workflow-render.js.map +1 -1
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +18 -4
- package/dist/commands/workflow.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +12 -0
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/lib/model-observation.d.ts.map +1 -1
- package/dist/lib/model-observation.js +9 -3
- package/dist/lib/model-observation.js.map +1 -1
- package/dist/lib/scope/mission-composition.d.ts +1 -0
- package/dist/lib/scope/mission-composition.d.ts.map +1 -1
- package/dist/lib/scope/mission-composition.js +14 -0
- package/dist/lib/scope/mission-composition.js.map +1 -1
- package/dist/lib/scope/scope-audit.d.ts.map +1 -1
- package/dist/lib/scope/scope-audit.js +63 -3
- package/dist/lib/scope/scope-audit.js.map +1 -1
- package/dist/lib/scope/scope-fs.d.ts +10 -0
- package/dist/lib/scope/scope-fs.d.ts.map +1 -1
- package/dist/lib/scope/scope-fs.js +60 -0
- package/dist/lib/scope/scope-fs.js.map +1 -1
- package/dist/lib/scope/types.d.ts +3 -1
- package/dist/lib/scope/types.d.ts.map +1 -1
- package/dist/lib/scope/types.js +5 -1
- package/dist/lib/scope/types.js.map +1 -1
- package/dist/local-db.d.ts +5 -0
- package/dist/local-db.d.ts.map +1 -0
- package/dist/local-db.js +23 -0
- package/dist/local-db.js.map +1 -0
- package/dist/local-origin.d.ts.map +1 -1
- package/dist/local-origin.js +2 -17
- package/dist/local-origin.js.map +1 -1
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +138 -24
- package/dist/mcp-server.js.map +1 -1
- package/dist/restore-packet/packet-writer.d.ts.map +1 -1
- package/dist/restore-packet/packet-writer.js +8 -5
- package/dist/restore-packet/packet-writer.js.map +1 -1
- package/dist/sender-identity.d.ts +18 -6
- package/dist/sender-identity.d.ts.map +1 -1
- package/dist/sender-identity.js +67 -7
- package/dist/sender-identity.js.map +1 -1
- package/dist/terminal-window-rex.d.ts +1 -1
- package/dist/terminal-window-rex.d.ts.map +1 -1
- package/dist/terminal-window-rex.js +3 -2
- package/dist/terminal-window-rex.js.map +1 -1
- package/dist/terminal-window.d.ts +2 -1
- package/dist/terminal-window.d.ts.map +1 -1
- package/dist/terminal-window.js +570 -44
- package/dist/terminal-window.js.map +1 -1
- package/package.json +1 -1
- package/tui/dist/daemon-client.d.ts +4 -0
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js +2 -1
- package/tui/dist/daemon-client.js.map +1 -1
- package/tui/dist/execution/execution-model.d.ts.map +1 -1
- package/tui/dist/execution/execution-model.js +22 -5
- package/tui/dist/execution/execution-model.js.map +1 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +6 -3
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/navigator.d.ts +1 -1
- package/tui/dist/navigator.d.ts.map +1 -1
- package/tui/dist/navigator.js +4 -2
- package/tui/dist/navigator.js.map +1 -1
- package/tui/dist/pulse/render-pulse.d.ts.map +1 -1
- package/tui/dist/pulse/render-pulse.js +7 -14
- package/tui/dist/pulse/render-pulse.js.map +1 -1
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +29 -21
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/stylize.d.ts.map +1 -1
- package/tui/dist/stylize.js +3 -3
- package/tui/dist/stylize.js.map +1 -1
- package/tui/dist/terminals/terminal-model.d.ts +1 -0
- package/tui/dist/terminals/terminal-model.d.ts.map +1 -1
- package/tui/dist/terminals/terminal-model.js +4 -2
- package/tui/dist/terminals/terminal-model.js.map +1 -1
- package/tui/dist/types.d.ts +1 -0
- package/tui/dist/types.d.ts.map +1 -1
- package/tui/dist/visual-layout.d.ts +3 -0
- package/tui/dist/visual-layout.d.ts.map +1 -1
- package/tui/dist/visual-layout.js +17 -0
- package/tui/dist/visual-layout.js.map +1 -1
- package/ui/dist/assets/{index-BvUEh33d.js → index-B-sMy02c.js} +116 -116
- package/ui/dist/assets/{index-BX8TUZ0E.css → index-DiN7RwWg.css} +1 -1
- package/ui/dist/index.html +2 -2
|
@@ -476,6 +476,7 @@ running seat only through the action in the last column.
|
|
|
476
476
|
| Working directory | `rig seat set-cwd`, shown by `rig seat status` as **Working directory for future launches** | The directory it started in | `rig seat launch --fresh --stop` (a blank conversation) or `rig handover --source rebuild` (durable context); [details](#change-an-existing-seats-working-directory) |
|
|
477
477
|
| Runtime home (`CLAUDE_CONFIG_DIR`, `CODEX_HOME`) of an existing seat | `rig seat record-runtime-home`, shown by `rig seat runtime-home` | The home it started with; whether a running process uses the recorded one isn't checked | Its next resume, restore or launch; [details](#record-where-an-existing-seats-conversation-lives) |
|
|
478
478
|
| Launch wrapper (`launch_wrapper`) | Member `launch_wrapper` in `rig.yaml` (`pi`, `codex` and `claude-code` only; `launch_wrapper: []` clears, omitting retains on existing-seat apply; surfaced as `launchWrapper` in `rig ps --nodes --json` when set; no live `rig seat` edit verb) | The literal wrapper argv that prefixes the resolved Codex entry or Claude executable (preserving TTY stdio) or the resolved Pi child executable inside OpenRig's host runner (preserving RPC pipes and runner lifecycle) when that session launched; a configured prefix is not proof of isolation, tooling, memory or governance | Supported spec create/recreate/apply flow, then the seat's next managed launch, resume, restore or handover (fails closed when wrapper support is unavailable; never falls back to bare child launch; [details](rig-spec.md#launch-wrapper-runtime-pi-and-codex)) |
|
|
479
|
+
| Process limits (`process_limits`) | Member `process_limits: { tasks_max: N, memory_max: <size> }` in `rig.yaml` (Linux/systemd hosts only; opt-in per seat and per key, no default; `{}` clears, omitting retains on existing-seat apply) | The task limit (`TasksMax=N`) and the memory limit (`MemoryMax=<bytes>`) it asked for, of the systemd user scope the seat's own pane starts in, outside the terminal server's scope; other seats, the daemon and the terminal server stay outside it | The seat's next fresh launch, relaunch, restore, resume, handover or runtime switch; a running seat is never moved. A fresh launch the host can't cap is not started and says why; a restore, resume, handover, runtime switch or restart in place goes ahead without the limit, with a warning ([details](rig-spec.md#process-limits-linuxsystemd)) |
|
|
479
480
|
| Startup files and skills | The spec's startup files, skills and actions | What its conversation read when it started; editing a file afterwards doesn't reach it | A fresh launch or a handover delivers them again; for the running seat, send or walk the change (`rig walk <seat> --through <files>`) |
|
|
480
481
|
| Guidance blocks (`CLAUDE.md`, `AGENTS.md`) | The seat's startup selection, which OpenRig merges into its guidance file as managed blocks at each start and restore | `rig seat status` **Guidance**: when OpenRig wrote each of its blocks, before or after the session's recorded startup finish (for a claimed session, when OpenRig recorded it). That's chronology, not what the agent has: the harness reads the file earlier in startup, Claude Code reloads it after `/compact` or `/clear`, Codex reads it at session start, and the agent can read it, or be sent it, at any time. OpenRig doesn't record what an agent read | Claude: its next compaction, `/clear` or restart. Codex: its next start. Without either, [tell it](#new-guidance-for-a-running-seat) |
|
|
481
482
|
| Tools (MCP servers, plugins) | Selected fragments, merged into the harness's own config (`.mcp.json` for Claude, `config.toml` for Codex) | Unknown to OpenRig: registered isn't active, Claude asks before it uses a new server, and no OpenRig command reports which tools a running harness loaded | Check in the harness itself (Claude Code's `/mcp`); a running session may need a restart to pick up newly written config ([runtime config disclosure](#runtime-config-disclosure)) |
|
|
@@ -922,13 +923,16 @@ relative to that directory.
|
|
|
922
923
|
| `.claude/agents/`, `.claude/plugins/<id>/`, `.claude/extensions/<id>/`; `.agents/<id>.yaml`, `.codex/plugins/<id>/`, `.agents/extensions/<id>/` | When the seat's projection includes subagents, plugins or runtime resources (Claude, then Codex). | Leaves them in place. |
|
|
923
924
|
| `.claude/skills/<id>/`, `.agents/skills/<id>/` | Only for a seat without seat storage. New Claude and Codex seats keep their skills under `$OPENRIG_HOME/state/seats/`, outside the project. | Leaves them in place. |
|
|
924
925
|
| The managed compaction preparation folder described in [Claude compaction preparation directory](#claude-compaction-preparation-directory), with its `.gitignore` of `*` and each attempt's `RESTORE-MAP.md` | Managed Claude compaction, unless a preparation root is configured elsewhere. | Leaves it in place. |
|
|
925
|
-
| `.rigged-checkpoint
|
|
926
|
+
| `.rigged-checkpoint-<session>-<digest>.md`, named for the seat: its session name made safe for a file name, then the first 8 hex characters of the SHA-256 of the exact name | A restore that didn't resume a seat's native conversation (by choice or not) and had a checkpoint to hand it. Seats restored into one folder each get their own file. | Leaves it in place. |
|
|
926
927
|
|
|
927
928
|
`rig down` leaves a file alone while another seat still uses it: a running seat of the same rig, or any seat of
|
|
928
929
|
another rig that isn't archived. That is decided file by file. A guidance file is kept while another seat's
|
|
929
930
|
guidance targets the same file. The Claude settings and collector are kept while another Claude seat works in that
|
|
930
931
|
directory. So another rig's Codex seat keeps `AGENTS.md` without keeping `CLAUDE.md` or the Claude settings. It
|
|
931
932
|
removes `.openrig/` and `.claude/` only when they are empty.
|
|
933
|
+
For the Claude settings and collector, a seat's directories are its saved folder and each folder a launch of it ran
|
|
934
|
+
in, such as the folder of a `rig up <rig> --existing --cwd <dir>` restore. For a seat last started before OpenRig
|
|
935
|
+
recorded where a launch runs, `rig down` cleans its saved folder and names the seat.
|
|
932
936
|
`rig down --delete` does nothing more to project files. OpenRig doesn't edit your project's own `.gitignore`.
|
|
933
937
|
|
|
934
938
|
## Patterns and Anti-Patterns
|
|
@@ -33,8 +33,9 @@ printf '%s' "$input" | my-statusline
|
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
Take the collector path and both directory arguments from the existing generated
|
|
36
|
-
`statusLine.command` in that seat's `.claude/settings.local.json
|
|
37
|
-
|
|
36
|
+
`statusLine.command` in that seat's `.claude/settings.local.json`, leaving out
|
|
37
|
+
its leading `exec`: it only lets the generated single command replace its shell,
|
|
38
|
+
and a wrapper doesn't need it. The instance home is the selected `OPENRIG_HOME`. Keep paths quoted, including paths with
|
|
38
39
|
spaces. Each command needs the same status line JSON on stdin: simply running
|
|
39
40
|
the collector and renderer in sequence against a single stdin lets the first
|
|
40
41
|
consume the input.
|
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
# (2026.10.22).
|
|
9
9
|
set -eu
|
|
10
10
|
|
|
11
|
+
# Managed run authority belongs to the parent runner, never this native TUI or its probes.
|
|
12
|
+
# Keep legacy hook-only environments unchanged.
|
|
13
|
+
if [ "${OPENRIG_RUN_ID+x}" = x ]; then
|
|
14
|
+
unset OPENRIG_RUN_ID OPENRIG_ACTIVITY_HOOK_TOKEN
|
|
15
|
+
fi
|
|
16
|
+
|
|
11
17
|
producer="openrig-cursor-launch 2"
|
|
12
18
|
cursor="${OPENRIG_CURSOR_AGENT:-cursor-agent}"
|
|
13
19
|
|
|
@@ -36,6 +36,14 @@ The runner's own defaults for dsh:
|
|
|
36
36
|
- **Its version:** the launch record names dsh's version from `dsh --version`. If that fails or takes over 5 seconds, it
|
|
37
37
|
names the version dsh's ACP handshake reports, marked as such: dsh 0.2.1-rc.2 reports 0.0.1 there.
|
|
38
38
|
|
|
39
|
+
## Optional native input and dedicated wake
|
|
40
|
+
|
|
41
|
+
This copy also implements the optional version-1 [run-bound channel](../../harness-runner-contract.md#optional-run-bound-native-input-and-wake-version-1). Choose the seat's native route explicitly; `runner: true` alone does not change its typed default. The private launch grant stays in this process and is removed from the dsh child environment.
|
|
42
|
+
|
|
43
|
+
Native input uses this runner's existing ACP prompt queue. A native wake gets a dedicated prompt and returns only its actual assistant message chunks after its own terminal ACP response. Later inputs wait behind it; multiple wakes are independent prompts. HTTP receipt retries and SSE reconnects reuse the live process map and do not reissue a prompt. Caller timeout does not cancel native work. Structured native text bypasses the person's slash/Ctrl-C parser, while `/abort` and Ctrl-C typed by a person remain available. Named managed cancellation targets only the exact outstanding prompt after Core permission withdrawal. Person controls remain available; an abort before prompt write interrupts it locally. Retried turn reports do not hold ordinary input. See the contract for requested versus confirmed results and body-free recovery evidence.
|
|
44
|
+
|
|
45
|
+
The new channel path is tested with the actual runner process and an offline ACP backend. Earlier native permission/cancel testing of older runner copies does not qualify these new wake semantics or make native a default. See the contract for custody/uncertainty, erased receipts and the separate native-program proof limits.
|
|
46
|
+
|
|
39
47
|
## Permissions
|
|
40
48
|
|
|
41
49
|
The runner submits each request to OpenRig, which asks one person:
|
|
@@ -28,7 +28,7 @@ const POST_TIMEOUT_MS = 2_000;
|
|
|
28
28
|
const WAIT_SECONDS = 25;
|
|
29
29
|
const READ_TRIES = 3; // reads in a row that get no answer before the runner permits
|
|
30
30
|
// Refusals that say the request certainly isn't the seat's current occupant's live one: cancel it, and hold nothing.
|
|
31
|
-
const NOT_LIVE = ["stale_generation", "activity_grant_wrong_seat", "activity_grant_stale"];
|
|
31
|
+
const NOT_LIVE = ["stale_generation", "activity_grant_wrong_seat", "activity_grant_stale", "turn_withdrawn", "runner_turn_unbound"];
|
|
32
32
|
// A read's states that end the request, answered cancelled (an `answered` that reaches there names an option dsh didn't
|
|
33
33
|
// offer). Any other state, like an unlisted status, permits.
|
|
34
34
|
const ENDED = ["refused", "withdrawn", "stale", "answered"];
|
|
@@ -97,12 +97,15 @@ function escapeLength(rest) {
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
/** JSON-RPC 2.0 with the agent, one message per line on its stdio. */
|
|
100
|
-
class AgentPeer {
|
|
100
|
+
export class AgentPeer {
|
|
101
101
|
#child;
|
|
102
102
|
#next = 1;
|
|
103
103
|
#waiting = new Map();
|
|
104
104
|
#requests = new Map();
|
|
105
105
|
#notifications = new Map();
|
|
106
|
+
#prompt = null;
|
|
107
|
+
#promptEpoch = 0;
|
|
108
|
+
#cancellationFence = null;
|
|
106
109
|
|
|
107
110
|
constructor(child, onNoise) {
|
|
108
111
|
this.#child = child;
|
|
@@ -114,6 +117,7 @@ class AgentPeer {
|
|
|
114
117
|
const waiter = this.#waiting.get(message.id);
|
|
115
118
|
if (!waiter) return;
|
|
116
119
|
this.#waiting.delete(message.id);
|
|
120
|
+
if (this.#prompt?.requestId === message.id) this.#prompt = null;
|
|
117
121
|
if (message.error) waiter.reject(Object.assign(new Error(message.error.message ?? "error"), { code: message.error.code }));
|
|
118
122
|
else waiter.resolve(message.result);
|
|
119
123
|
return;
|
|
@@ -121,15 +125,60 @@ class AgentPeer {
|
|
|
121
125
|
if (message.id === undefined) { this.#notifications.get(message.method)?.(message.params ?? {}); return; }
|
|
122
126
|
const handler = this.#requests.get(message.method);
|
|
123
127
|
if (!handler) { this.#write({ id: message.id, error: { code: -32601, message: `Method not found: ${message.method}` } }); return; }
|
|
128
|
+
const epoch = this.#prompt?.nativeTurnId;
|
|
124
129
|
Promise.resolve().then(() => handler(message.params ?? {}, message.id)).then(
|
|
125
|
-
(result) => this.#write({ id: message.id, result
|
|
130
|
+
(result) => this.#write({ id: message.id, result: message.method === "session/request_permission"
|
|
131
|
+
&& (!epoch || this.#prompt?.nativeTurnId !== epoch || this.#cancellationFence === epoch) ? CANCELLED : result }),
|
|
126
132
|
(error) => this.#write({ id: message.id, error: { code: error.code ?? -32603, message: error.message } }));
|
|
127
133
|
});
|
|
128
134
|
}
|
|
129
135
|
|
|
130
|
-
request(method, params) {
|
|
136
|
+
request(method, params, onPrompt) {
|
|
137
|
+
if (method === "session/prompt" && (this.#prompt || this.#cancellationFence)) throw new Error("Native prompt ownership is fenced");
|
|
131
138
|
const id = this.#next++;
|
|
132
|
-
|
|
139
|
+
if (method === "session/prompt") this.#prompt = { nativeTurnId: `dsh-prompt-${++this.#promptEpoch}`, requestId: id, sessionId: params.sessionId, submitted: false };
|
|
140
|
+
return new Promise((resolve, reject) => {
|
|
141
|
+
this.#waiting.set(id, { resolve, reject });
|
|
142
|
+
const write = () => {
|
|
143
|
+
if (method === "session/prompt" && this.#prompt?.requestId !== id) return;
|
|
144
|
+
if (this.#prompt?.requestId === id) this.#prompt.submitted = true;
|
|
145
|
+
this.#write({ id, method, params });
|
|
146
|
+
};
|
|
147
|
+
if (!onPrompt) { write(); return; }
|
|
148
|
+
const scope = this.promptScope();
|
|
149
|
+
Promise.resolve().then(() => {
|
|
150
|
+
if (method === "session/prompt" && this.#prompt?.requestId !== id) return;
|
|
151
|
+
return onPrompt(scope);
|
|
152
|
+
}).then(write, error => {
|
|
153
|
+
this.#waiting.delete(id); if (this.#prompt?.requestId === id) this.#prompt = null; reject(error);
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
cancelUnsubmittedPrompt() {
|
|
159
|
+
if (!this.#prompt || this.#prompt.submitted) return false;
|
|
160
|
+
const id = this.#prompt.requestId;
|
|
161
|
+
this.#prompt = null;
|
|
162
|
+
const waiter = this.#waiting.get(id); this.#waiting.delete(id);
|
|
163
|
+
waiter?.resolve({ stopReason: "interrupted" });
|
|
164
|
+
return true;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
promptScope() { return this.#prompt ? { ...this.#prompt } : null; }
|
|
168
|
+
isCancellationFenced() { return this.#cancellationFence !== null; }
|
|
169
|
+
prepareCancellation(nativeTurnId) {
|
|
170
|
+
if (!this.#prompt?.submitted || this.#prompt.nativeTurnId !== nativeTurnId) return false;
|
|
171
|
+
this.#cancellationFence = nativeTurnId; return true;
|
|
172
|
+
}
|
|
173
|
+
// Release only once this exact prompt is no longer outstanding.
|
|
174
|
+
recheckCancellation(nativeTurnId) {
|
|
175
|
+
if (this.#cancellationFence !== nativeTurnId) return false;
|
|
176
|
+
if (this.#prompt?.nativeTurnId === nativeTurnId) return true;
|
|
177
|
+
this.#cancellationFence = null; return false;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
abandonCancellationPreparation(nativeTurnId) {
|
|
181
|
+
if (this.#cancellationFence === nativeTurnId) this.#cancellationFence = null;
|
|
133
182
|
}
|
|
134
183
|
|
|
135
184
|
notify(method, params) { this.#write({ method, params }); }
|
|
@@ -139,6 +188,7 @@ class AgentPeer {
|
|
|
139
188
|
failAll(reason) {
|
|
140
189
|
for (const waiter of this.#waiting.values()) waiter.reject(new Error(reason));
|
|
141
190
|
this.#waiting.clear();
|
|
191
|
+
this.#prompt = null;
|
|
142
192
|
}
|
|
143
193
|
|
|
144
194
|
#write(message) {
|
|
@@ -163,6 +213,17 @@ function openrigEndpoint() {
|
|
|
163
213
|
return base && token ? { base: base.replace(/\/+$/, ""), token } : null;
|
|
164
214
|
}
|
|
165
215
|
|
|
216
|
+
function runnerFrameBound(buffer) {
|
|
217
|
+
const overhead = 64 * 1024;
|
|
218
|
+
const fallback = { limit: 6 * 1024 * 1024 + overhead };
|
|
219
|
+
if (!buffer.startsWith(": runner-frame-chars=") || !buffer.includes("\n")) return fallback;
|
|
220
|
+
const header = /^: runner-frame-chars=([0-9]+)\n/.exec(buffer);
|
|
221
|
+
const chars = header ? Number(header[1]) : NaN;
|
|
222
|
+
if (!Number.isSafeInteger(chars) || chars < 1 || chars > Number.MAX_SAFE_INTEGER - overhead)
|
|
223
|
+
throw new Error("Invalid channel frame size");
|
|
224
|
+
return { limit: chars + overhead, chars };
|
|
225
|
+
}
|
|
226
|
+
|
|
166
227
|
async function callOpenRig(method, path, body, timeoutMs) {
|
|
167
228
|
const endpoint = openrigEndpoint();
|
|
168
229
|
if (!endpoint) return { status: 0, body: null };
|
|
@@ -274,8 +335,188 @@ async function main() {
|
|
|
274
335
|
child.stdin.on("error", () => {});
|
|
275
336
|
const peer = new AgentPeer(child, (line) => say(`[dsh] ${line}`));
|
|
276
337
|
const state = { sessionId: null, turn: 0, running: false, cancelRequestedAt: null, holding: false, refused: false, queue: [], asks: new Set(), lastActive: 0, asking: 0, waiting: 0, resolvedAsk: null };
|
|
338
|
+
const managed = new Map();
|
|
339
|
+
const channelStop = new AbortController();
|
|
340
|
+
let activeManaged = null;
|
|
341
|
+
let managedQuarantined = false;
|
|
342
|
+
const permanentRunRefusal = (status, code) => [401, 403, 404, 409, 410].includes(status)
|
|
343
|
+
&& !["runner_hello_required", "runner_grant_pending", "runner_grant_unverified"].includes(code)
|
|
344
|
+
&& ([401, 403].includes(status) || ["runner_grant_required", "runner_grant_revoked", "runner_grant_stale"].includes(code));
|
|
345
|
+
let cancellation = null;
|
|
346
|
+
const quarantineManagedChannel = () => {
|
|
347
|
+
managedQuarantined = true;
|
|
348
|
+
if (cancellation && !cancellation.submitted) {
|
|
349
|
+
rejectCancel(cancellation, "runner_reporting_authority_lost");
|
|
350
|
+
}
|
|
351
|
+
};
|
|
352
|
+
let nativeTurnSequence = 0;
|
|
353
|
+
let nativeTurnPosts = Promise.resolve();
|
|
354
|
+
const reportTurn = (scope, status, acceptedTurnId) => {
|
|
355
|
+
if (!scope || !env.OPENRIG_RUN_ID || !env.OPENRIG_ACTIVITY_HOOK_TOKEN?.startsWith("oag_")) return Promise.resolve();
|
|
356
|
+
const body = { type: "turn", runId: env.OPENRIG_RUN_ID, sequence: ++nativeTurnSequence,
|
|
357
|
+
nativeTurnId: scope.nativeTurnId, state: status, acceptedTurnIds: [acceptedTurnId] };
|
|
358
|
+
nativeTurnPosts = nativeTurnPosts.then(() => channelPost(body));
|
|
359
|
+
return nativeTurnPosts;
|
|
360
|
+
};
|
|
361
|
+
const channelPost = async (body) => {
|
|
362
|
+
while (!channelStop.signal.aborted) {
|
|
363
|
+
const result = await callOpenRig("POST", "/api/activity/runner-channel", body, POST_TIMEOUT_MS);
|
|
364
|
+
if (result.status >= 200 && result.status < 300) return true;
|
|
365
|
+
if ([401, 403, 404, 409, 410].includes(result.status) && !["runner_hello_required", "runner_grant_pending", "runner_grant_unverified"].includes(result.body?.code)) {
|
|
366
|
+
if (permanentRunRefusal(result.status, result.body?.code)) quarantineManagedChannel();
|
|
367
|
+
return false;
|
|
368
|
+
}
|
|
369
|
+
await sleep(250);
|
|
370
|
+
}
|
|
371
|
+
return false;
|
|
372
|
+
};
|
|
373
|
+
const report = (entry, type, result) => {
|
|
374
|
+
const f = entry.frame;
|
|
375
|
+
if (result) entry.result = result;
|
|
376
|
+
entry.reports = entry.reports.then(async () => {
|
|
377
|
+
await entry.acceptance;
|
|
378
|
+
if (entry.state === "unavailable") return;
|
|
379
|
+
return channelPost({ type, runId: f.runId, requestId: f.requestId, sequence: f.sequence,
|
|
380
|
+
...(entry.nativeTurnId ? { nativeTurnId: entry.nativeTurnId, acceptedTurnId: entry.acceptedTurnId } : {}), ...(result ? { result } : {}) });
|
|
381
|
+
});
|
|
382
|
+
};
|
|
383
|
+
const submitted = (entry) => {
|
|
384
|
+
if (!entry || entry.submitted) return;
|
|
385
|
+
entry.submitted = true; report(entry, "submitted");
|
|
386
|
+
};
|
|
387
|
+
const finishCancel = (outcome, detail) => {
|
|
388
|
+
const operation = cancellation; if (!operation) return;
|
|
389
|
+
operation.entry.state = "terminal";
|
|
390
|
+
report(operation.entry, "result", { kind: "cancel", outcome, confirmed: outcome === "cancelled", ...(detail ? { detail } : {}) });
|
|
391
|
+
peer.recheckCancellation(operation.target.nativeTurnId);
|
|
392
|
+
cancellation = null;
|
|
393
|
+
pump();
|
|
394
|
+
};
|
|
395
|
+
const rejectCancel = (operation, reason) => {
|
|
396
|
+
if (operation.submitted) return;
|
|
397
|
+
if (cancellation === operation) {
|
|
398
|
+
peer.abandonCancellationPreparation(operation.target.nativeTurnId); cancellation = null;
|
|
399
|
+
}
|
|
400
|
+
operation.entry.state = "terminal";
|
|
401
|
+
report(operation.entry, "rejected", { kind: "cancel", reason, applied: false });
|
|
402
|
+
say(`[openrig-dsh] cancellation ${operation.entry.frame.requestId} was not applied (${reason}); withdrawn approvals stay withdrawn. Person input remains available.`);
|
|
403
|
+
pump();
|
|
404
|
+
};
|
|
405
|
+
const performCancel = async (operation) => {
|
|
406
|
+
const f = operation.entry.frame;
|
|
407
|
+
while (cancellation === operation && !agentExited) {
|
|
408
|
+
const response = await callOpenRig("POST", "/api/activity/runner-channel", { type: "cancel-prepare", runId: f.runId,
|
|
409
|
+
requestId: f.requestId, sequence: f.sequence }, POST_TIMEOUT_MS);
|
|
410
|
+
if (cancellation !== operation) return;
|
|
411
|
+
if (permanentRunRefusal(response.status, response.body?.code)) { quarantineManagedChannel(); return; }
|
|
412
|
+
if (peer.promptScope()?.nativeTurnId !== operation.target.nativeTurnId || response.body?.withdrawal?.notThisTurn) { finishCancel("not-this-turn"); return; }
|
|
413
|
+
if (response.status !== 200 || !response.body?.withdrawal) { rejectCancel(operation, "preparation_failed"); return; }
|
|
414
|
+
if (response.body.withdrawal.confirmed === true) break;
|
|
415
|
+
await sleep(250);
|
|
416
|
+
}
|
|
417
|
+
if (cancellation !== operation) return;
|
|
418
|
+
if (agentExited) { rejectCancel(operation, "runner_exited_before_write"); return; }
|
|
419
|
+
for (const ask of state.asks) ask.end("turn_cancelled");
|
|
420
|
+
// Every permission callback observes peer's fence; wait for in-flight submits and callback resolution.
|
|
421
|
+
while (state.asking > 0 && !agentExited && cancellation === operation) await sleep(25);
|
|
422
|
+
if (cancellation !== operation) return;
|
|
423
|
+
if (agentExited) { rejectCancel(operation, "runner_exited_before_write"); return; }
|
|
424
|
+
if (!peer.recheckCancellation(operation.target.nativeTurnId)) { finishCancel("not-this-turn"); return; }
|
|
425
|
+
if (agentExited || cancellation !== operation) return;
|
|
426
|
+
operation.submitted = true;
|
|
427
|
+
state.cancelRequestedAt = new Date().toISOString();
|
|
428
|
+
peer.notify("session/cancel", { sessionId: state.sessionId });
|
|
429
|
+
report(operation.entry, "submitted", { kind: "cancel", outcome: "requested", confirmed: false, operationAccepted: false });
|
|
430
|
+
say(`[openrig-dsh] cancellation ${f.requestId} for ${operation.target.nativeTurnId} is requested, not confirmed. Inspect rig seat status ${env.OPENRIG_SESSION_NAME} --json. The named invocation ending releases later input; person /abort remains available. Explicit manual choice: rig seat stop ${env.OPENRIG_SESSION_NAME} --reason <reason>.`);
|
|
431
|
+
};
|
|
432
|
+
const acceptFrame = async (raw) => {
|
|
433
|
+
if (agentExited || stopping || raw.version !== 1 || raw.runId !== env.OPENRIG_RUN_ID || !["input", "wake", "cancel"].includes(raw.kind)
|
|
434
|
+
|| !Number.isSafeInteger(raw.sequence) || raw.sequence < 1 || typeof raw.requestId !== "string"
|
|
435
|
+
|| (raw.kind === "cancel" ? !raw.payload?.target || raw.payload.target.runId !== raw.runId || typeof raw.payload.target.nativeTurnId !== "string"
|
|
436
|
+
: typeof (raw.kind === "wake" ? raw.payload?.question : raw.payload?.text) !== "string")) return;
|
|
437
|
+
const frame = { version: 1, runId: raw.runId, requestId: raw.requestId, sequence: raw.sequence, kind: raw.kind,
|
|
438
|
+
payload: raw.kind === "cancel" ? { target: { ...raw.payload.target } } : raw.kind === "wake" ? { question: raw.payload.question } : { text: raw.payload.text } };
|
|
439
|
+
if ([...managed.values()].some(entry => entry.frame.sequence === frame.sequence && entry.frame.requestId !== frame.requestId)) throw new Error("Conflicting native sequence");
|
|
440
|
+
const old = managed.get(frame.requestId);
|
|
441
|
+
if (old) { if (JSON.stringify(old.frame) !== JSON.stringify(frame)) throw new Error("Conflicting native request"); await old.acceptance; return; }
|
|
442
|
+
const entry = { frame, state: "accepting", reports: Promise.resolve(), answer: [] };
|
|
443
|
+
managed.set(frame.requestId, entry);
|
|
444
|
+
const target = frame.kind === "cancel" ? frame.payload.target : null;
|
|
445
|
+
const prepared = target && !cancellation && peer.prepareCancellation(target.nativeTurnId);
|
|
446
|
+
const operation = prepared ? { entry, target, submitted: false } : null;
|
|
447
|
+
if (operation) cancellation = operation;
|
|
448
|
+
entry.acceptance = (async () => {
|
|
449
|
+
if (!await channelPost({ type: "ack", runId: frame.runId, requestId: frame.requestId, sequence: frame.sequence, state: "accepted" })) {
|
|
450
|
+
entry.state = "unavailable";
|
|
451
|
+
if (operation && cancellation === operation && !operation.submitted) {
|
|
452
|
+
peer.abandonCancellationPreparation(operation.target.nativeTurnId); cancellation = null;
|
|
453
|
+
}
|
|
454
|
+
pump(); return;
|
|
455
|
+
}
|
|
456
|
+
if (operation && cancellation !== operation) return;
|
|
457
|
+
entry.state = "queued";
|
|
458
|
+
if (target) {
|
|
459
|
+
if (!prepared) {
|
|
460
|
+
if (cancellation) rejectCancel({ entry, target, submitted: false }, "cancellation_in_progress");
|
|
461
|
+
else if (peer.promptScope()?.nativeTurnId === target.nativeTurnId) rejectCancel({ entry, target, submitted: false }, "native_turn_ownership_unknown");
|
|
462
|
+
else { entry.state = "terminal"; report(entry, "result", { kind: "cancel", outcome: "not-this-turn", confirmed: false }); }
|
|
463
|
+
}
|
|
464
|
+
else void performCancel(operation).catch(() => {
|
|
465
|
+
if (cancellation === operation && !operation.submitted) rejectCancel(operation, "preparation_failed");
|
|
466
|
+
});
|
|
467
|
+
return;
|
|
468
|
+
}
|
|
469
|
+
const before = state.queue.findIndex(other => typeof other !== "string" && other.frame.sequence > frame.sequence);
|
|
470
|
+
if (before < 0) state.queue.push(entry); else state.queue.splice(before, 0, entry);
|
|
471
|
+
pump();
|
|
472
|
+
})();
|
|
473
|
+
await entry.acceptance;
|
|
474
|
+
};
|
|
475
|
+
const connectChannel = async () => {
|
|
476
|
+
let retained = false, cursor = 0;
|
|
477
|
+
const endpoint = openrigEndpoint();
|
|
478
|
+
if (!endpoint?.token.startsWith("oag_") || !env.OPENRIG_RUN_ID || !env.OPENRIG_ACTIVITY_HOOK_TOKEN) return;
|
|
479
|
+
while (!channelStop.signal.aborted) {
|
|
480
|
+
try {
|
|
481
|
+
const hello = await callOpenRig("POST", "/api/activity/runner-channel", { type: "hello", version: 1, runId: env.OPENRIG_RUN_ID, retained,
|
|
482
|
+
capabilities: { input: !managedQuarantined, wake: !managedQuarantined, cancel: !managedQuarantined } }, POST_TIMEOUT_MS);
|
|
483
|
+
if (permanentRunRefusal(hello.status, hello.body?.code)) { quarantineManagedChannel(); return; }
|
|
484
|
+
if (hello.status !== 200) throw new Error("Channel handshake unavailable");
|
|
485
|
+
retained = true;
|
|
486
|
+
const response = await fetch(`${endpoint.base}/api/activity/runner-channel`, { signal: channelStop.signal,
|
|
487
|
+
headers: { authorization: `Bearer ${endpoint.token}`, "Last-Event-ID": String(cursor) } });
|
|
488
|
+
if (!response.ok) {
|
|
489
|
+
const failure = await response.json().catch(() => null);
|
|
490
|
+
if (permanentRunRefusal(response.status, failure?.code)) { quarantineManagedChannel(); return; }
|
|
491
|
+
throw new Error("Channel unavailable");
|
|
492
|
+
}
|
|
493
|
+
if (!response.body) throw new Error("Channel unavailable");
|
|
494
|
+
const reader = response.body.pipeThrough(new TextDecoderStream()).getReader(); let buffer = "";
|
|
495
|
+
try {
|
|
496
|
+
for (;;) {
|
|
497
|
+
const part = await reader.read(); if (part.done) break;
|
|
498
|
+
buffer += part.value.replace(/\r/g, "");
|
|
499
|
+
let end;
|
|
500
|
+
while ((end = buffer.indexOf("\n\n")) >= 0) {
|
|
501
|
+
const bound = runnerFrameBound(buffer);
|
|
502
|
+
if (end > bound.limit) throw new Error("Channel frame too large");
|
|
503
|
+
const block = buffer.slice(0, end); buffer = buffer.slice(end + 2);
|
|
504
|
+
const data = block.split("\n").filter(line => line.startsWith("data: ")).map(line => line.slice(6)).join("\n");
|
|
505
|
+
if (bound.chars !== undefined && data.length !== bound.chars) throw new Error("Channel frame size mismatch");
|
|
506
|
+
if (!data) continue;
|
|
507
|
+
const frame = JSON.parse(data); if (frame.runId !== env.OPENRIG_RUN_ID || !Number.isSafeInteger(frame.sequence) || frame.sequence < 1) throw new Error("Invalid channel frame");
|
|
508
|
+
cursor = Math.max(cursor, frame.sequence); void acceptFrame(frame).catch(() => {});
|
|
509
|
+
}
|
|
510
|
+
if (buffer.length > runnerFrameBound(buffer).limit) throw new Error("Channel frame too large");
|
|
511
|
+
}
|
|
512
|
+
} finally { await reader.cancel().catch(() => {}); }
|
|
513
|
+
} catch { /* Reconnect with this process's retained map; never replay native operations. */ }
|
|
514
|
+
if (!channelStop.signal.aborted) await sleep(250);
|
|
515
|
+
}
|
|
516
|
+
};
|
|
277
517
|
const inflight = new Set();
|
|
278
518
|
const track = (promise) => { inflight.add(promise); promise.finally(() => inflight.delete(promise)); return promise; };
|
|
519
|
+
let activeTurn = Promise.resolve();
|
|
279
520
|
let agentExited = false;
|
|
280
521
|
let stopping = false;
|
|
281
522
|
let heartbeat;
|
|
@@ -295,7 +536,11 @@ async function main() {
|
|
|
295
536
|
clearInterval(heartbeat);
|
|
296
537
|
clearInterval(workBeat);
|
|
297
538
|
restoreTty();
|
|
298
|
-
await Promise.race([
|
|
539
|
+
await Promise.race([(async () => {
|
|
540
|
+
await activeTurn;
|
|
541
|
+
await Promise.allSettled([...inflight, activity.flushed(), nativeTurnPosts, ...[...managed.values()].map(entry => entry.reports)]);
|
|
542
|
+
})(), sleep(2_000)]);
|
|
543
|
+
channelStop.abort();
|
|
299
544
|
process.exit(code);
|
|
300
545
|
};
|
|
301
546
|
const fatal = async (message, code) => {
|
|
@@ -307,12 +552,13 @@ async function main() {
|
|
|
307
552
|
}
|
|
308
553
|
await finish(code);
|
|
309
554
|
};
|
|
310
|
-
const postIdle = (subtype) => activity.post("Stop", subtype, { livenessSeconds: LIVENESS_SECONDS });
|
|
555
|
+
const postIdle = (subtype, turnId) => activity.post("Stop", subtype, { livenessSeconds: LIVENESS_SECONDS, ...(turnId ? { turnId } : {}) });
|
|
311
556
|
const withdraw = (askId, reason) => track(callOpenRig("POST", `/api/activity/permission-requests/${encodeURIComponent(askId)}/withdraw`, { reason }, POST_TIMEOUT_MS));
|
|
312
557
|
|
|
313
558
|
child.once("error", (error) => { agentExited = true; void fatal(`dsh couldn't be started (${error.message}); is it on PATH?`, 1); });
|
|
314
559
|
child.on("exit", (code, signal) => {
|
|
315
560
|
agentExited = true;
|
|
561
|
+
if (cancellation && !cancellation.submitted) rejectCancel(cancellation, "runner_exited_before_write");
|
|
316
562
|
peer.failAll("dsh exited");
|
|
317
563
|
if (stopping) return;
|
|
318
564
|
for (const ask of state.asks) ask.end("exited");
|
|
@@ -324,9 +570,13 @@ async function main() {
|
|
|
324
570
|
peer.onNotification("session/update", (params) => {
|
|
325
571
|
if (params.sessionId !== state.sessionId || !params.update) return;
|
|
326
572
|
const update = params.update;
|
|
573
|
+
if (activeManaged) submitted(activeManaged);
|
|
327
574
|
const reporting = working();
|
|
328
575
|
if (update.sessionUpdate === "agent_message_chunk") {
|
|
329
|
-
if (update.content?.type === "text")
|
|
576
|
+
if (update.content?.type === "text") {
|
|
577
|
+
process.stdout.write(update.content.text);
|
|
578
|
+
if (activeManaged?.frame.kind === "wake") activeManaged.answer.push(update.content.text);
|
|
579
|
+
}
|
|
330
580
|
if (reporting && Date.now() - state.lastActive >= ACTIVE_EVERY_MS) { state.lastActive = Date.now(); activity.post("active", "agent_message"); }
|
|
331
581
|
} else if (update.sessionUpdate === "tool_call") {
|
|
332
582
|
say(`\n[tool] ${update.title ?? "tool"} (${update.kind ?? "other"})`);
|
|
@@ -348,14 +598,16 @@ async function main() {
|
|
|
348
598
|
// request OpenRig says isn't the current occupant's, or that a person said no to with no reject option, is cancelled.
|
|
349
599
|
const askOwner = async (requestId, toolCall, options) => {
|
|
350
600
|
const turn = state.turn;
|
|
351
|
-
const live = () => state.running && state.turn === turn && !state.cancelRequestedAt && !agentExited;
|
|
601
|
+
const live = () => state.running && state.turn === turn && !state.cancelRequestedAt && !peer.isCancellationFenced() && !agentExited;
|
|
352
602
|
const submitted = await callOpenRig("POST", "/api/activity/permission-requests", {
|
|
353
603
|
sessionName: env.OPENRIG_SESSION_NAME, nodeId: env.OPENRIG_NODE_ID, generation: env.OPENRIG_OCCUPANT_GENERATION,
|
|
354
|
-
nativeRef: state.sessionId, turnId: String(turn),
|
|
604
|
+
nativeRef: state.sessionId, turnId: String(turn),
|
|
605
|
+
...(env.OPENRIG_ACTIVITY_HOOK_TOKEN?.startsWith("oag_") && env.OPENRIG_RUN_ID && peer.promptScope() ? { runId: env.OPENRIG_RUN_ID, nativeTurnId: peer.promptScope().nativeTurnId } : {}), requestId: String(requestId), toolCall,
|
|
355
606
|
options: options.map((option) => ({ optionId: option.optionId, name: option.name ?? option.optionId, kind: option.kind })),
|
|
356
607
|
occurredAt: new Date().toISOString(),
|
|
357
608
|
}, 10_000);
|
|
358
609
|
const askId = submitted.body?.ok ? submitted.body.askId : undefined;
|
|
610
|
+
if (submitted.body?.correlation === "unverified") say("[permission] accepted without verified native-turn correlation; claimed turn tags are denial-only hints.");
|
|
359
611
|
if (!live()) {
|
|
360
612
|
if (askId) withdraw(askId, state.cancelRequestedAt ? "turn_cancelled" : agentExited ? "exited" : "turn_ended");
|
|
361
613
|
return CANCELLED;
|
|
@@ -452,7 +704,7 @@ async function main() {
|
|
|
452
704
|
const toolCall = { title: String(params.toolCall?.title ?? "a tool call"), kind: String(params.toolCall?.kind ?? "other") };
|
|
453
705
|
const options = Array.isArray(params.options) ? params.options : [];
|
|
454
706
|
say(`\n[permission] dsh asks: ${toolCall.title} (${toolCall.kind}); options ${options.map((option) => option.optionId).join(", ")}`);
|
|
455
|
-
if (!state.running || state.cancelRequestedAt) return CANCELLED;
|
|
707
|
+
if (!state.running || state.cancelRequestedAt || peer.isCancellationFenced()) return CANCELLED;
|
|
456
708
|
state.asking += 1; // no beat while a permission request is open: it may be waiting on a person
|
|
457
709
|
return askOwner(requestId, toolCall, options).finally(() => { state.asking -= 1; setImmediate(settle); });
|
|
458
710
|
});
|
|
@@ -468,15 +720,23 @@ async function main() {
|
|
|
468
720
|
|
|
469
721
|
const abort = () => {
|
|
470
722
|
if (!state.running) { say("[openrig-dsh] no turn is running"); return; }
|
|
471
|
-
if (
|
|
723
|
+
if (cancellation && !cancellation.submitted) rejectCancel(cancellation, "person_input_after_preparation");
|
|
724
|
+
const suppressed = peer.cancelUnsubmittedPrompt();
|
|
725
|
+
if (suppressed && activeManaged && !activeManaged.submitted) {
|
|
726
|
+
activeManaged.rejected = true; report(activeManaged, "rejected", { kind: activeManaged.frame.kind, reason: "person_abort_before_write", applied: false });
|
|
727
|
+
}
|
|
472
728
|
state.cancelRequestedAt = new Date().toISOString();
|
|
473
|
-
peer.notify("session/cancel", { sessionId: state.sessionId });
|
|
474
|
-
say(
|
|
729
|
+
if (peer.promptScope()?.submitted) peer.notify("session/cancel", { sessionId: state.sessionId });
|
|
730
|
+
say(suppressed ? "[openrig-dsh] prompt interrupted before native write; no native cancel was sent"
|
|
731
|
+
: `[openrig-dsh] cancel requested at ${state.cancelRequestedAt}; the turn ends when dsh says so`);
|
|
475
732
|
if (!state.refused) state.holding = false; // the seat's own refusal holds until the next accepted prompt
|
|
476
733
|
for (const ask of state.asks) ask.end("turn_cancelled");
|
|
477
734
|
};
|
|
478
735
|
|
|
479
|
-
const runTurn = async (
|
|
736
|
+
const runTurn = async (input) => {
|
|
737
|
+
const entry = typeof input === "string" ? null : input;
|
|
738
|
+
const text = entry ? (entry.frame.kind === "wake" ? entry.frame.payload.question : entry.frame.payload.text) : input;
|
|
739
|
+
activeManaged = entry;
|
|
480
740
|
state.running = true;
|
|
481
741
|
state.turn += 1;
|
|
482
742
|
state.holding = false;
|
|
@@ -486,33 +746,62 @@ async function main() {
|
|
|
486
746
|
state.cancelRequestedAt = null;
|
|
487
747
|
state.lastActive = 0;
|
|
488
748
|
const turnId = String(state.turn);
|
|
749
|
+
if (entry) entry.state = "writing";
|
|
750
|
+
let nativeScope;
|
|
489
751
|
say(`\nyou ▸ ${firstLine(text)}`);
|
|
490
752
|
activity.post("UserPromptSubmit", "accepted", { turnId });
|
|
491
753
|
let stopReason;
|
|
492
754
|
try {
|
|
493
|
-
const result = await peer.request("session/prompt", { sessionId: state.sessionId, prompt: [{ type: "text", text }] }
|
|
755
|
+
const result = await peer.request("session/prompt", { sessionId: state.sessionId, prompt: [{ type: "text", text }] }, async scope => {
|
|
756
|
+
nativeScope = scope;
|
|
757
|
+
if (entry) { entry.nativeTurnId = scope.nativeTurnId; entry.acceptedTurnId = turnId; }
|
|
758
|
+
void reportTurn(scope, "opened", turnId);
|
|
759
|
+
});
|
|
760
|
+
if (entry && !entry.rejected) submitted(entry);
|
|
494
761
|
stopReason = String(result?.stopReason ?? "unreported");
|
|
495
762
|
} catch (error) {
|
|
496
|
-
if (
|
|
763
|
+
if (entry && !entry.submitted && [-32600, -32601, -32602].includes(error.code)) {
|
|
764
|
+
entry.rejected = true; report(entry, "rejected", { kind: entry.frame.kind, reason: "native_prompt_rejected" });
|
|
765
|
+
}
|
|
766
|
+
if (agentExited && !entry && !cancellation) return;
|
|
497
767
|
say(`\n[openrig-dsh] the turn failed: ${error.message}`);
|
|
498
768
|
activity.post("Notification", "runtime_error", { turnId });
|
|
499
769
|
stopReason = "error";
|
|
500
770
|
}
|
|
771
|
+
void reportTurn(nativeScope, "closed", turnId);
|
|
772
|
+
if (cancellation?.target.nativeTurnId === nativeScope?.nativeTurnId)
|
|
773
|
+
finishCancel(cancellation.submitted ? stopReason === "cancelled" ? "cancelled" : "requested" : "not-this-turn", stopReason === "cancelled" ? undefined : "native_end_without_cancellation_proof");
|
|
774
|
+
if (nativeScope) peer.recheckCancellation(nativeScope.nativeTurnId);
|
|
775
|
+
if (entry && !entry.rejected) {
|
|
776
|
+
const completion = !entry.submitted ? "unknown" : stopReason === "cancelled" ? "interrupted"
|
|
777
|
+
: stopReason === "end_turn" && (entry.frame.kind !== "wake" || entry.answer.some(text => text.length > 0)) ? "completed"
|
|
778
|
+
: stopReason === "error" ? "failed" : "unknown";
|
|
779
|
+
report(entry, "result", { kind: entry.frame.kind, nativeTurnId: entry.nativeTurnId, completion,
|
|
780
|
+
...(entry.frame.kind === "wake" ? { answer: completion === "completed" ? entry.answer.join("") : null } : { accepted: entry.submitted === true }),
|
|
781
|
+
...(!entry.submitted ? { submissionUnknown: true } : {}) });
|
|
782
|
+
}
|
|
783
|
+
if (entry) entry.state = "terminal";
|
|
784
|
+
activeManaged = null;
|
|
501
785
|
state.running = false;
|
|
502
786
|
for (const ask of state.asks) ask.end("turn_ended");
|
|
503
787
|
say(`\n── turn end (${stopReason}) ──`);
|
|
504
788
|
if (state.holding) say("[openrig-dsh] a permission request was refused, so the seat reads needs input until the next prompt");
|
|
505
|
-
else postIdle(stopReason);
|
|
789
|
+
else postIdle(stopReason, turnId);
|
|
506
790
|
pump();
|
|
507
791
|
};
|
|
508
792
|
|
|
509
793
|
const pump = () => {
|
|
510
|
-
if (state.running || agentExited || state.queue.length === 0) return;
|
|
511
|
-
|
|
794
|
+
if (state.running || peer.isCancellationFenced() || agentExited || state.queue.length === 0) return;
|
|
795
|
+
const index = managedQuarantined ? state.queue.findIndex(input => typeof input === "string") : 0;
|
|
796
|
+
if (index < 0) return;
|
|
797
|
+
const next = state.queue[index];
|
|
798
|
+
if (typeof next !== "string" && [...managed.values()].some(prior => prior.state === "accepting" && prior.frame.sequence < next.frame.sequence)) return;
|
|
799
|
+
activeTurn = runTurn(state.queue.splice(index, 1)[0]);
|
|
512
800
|
};
|
|
513
801
|
|
|
514
802
|
const submit = (text) => {
|
|
515
803
|
if (agentExited) return;
|
|
804
|
+
if (cancellation && !cancellation.submitted) rejectCancel(cancellation, "person_input_after_preparation");
|
|
516
805
|
state.queue.push(text);
|
|
517
806
|
if (state.running) say(`[queued: ${state.queue.length}] this goes to dsh after the current turn`);
|
|
518
807
|
pump();
|
|
@@ -576,6 +865,7 @@ async function main() {
|
|
|
576
865
|
say(`[openrig-dsh] DSH_HOME ${home} · DSH_PERMISSION_MODE ${agentEnv.DSH_PERMISSION_MODE}`);
|
|
577
866
|
say("[openrig-dsh] each submitted message is one prompt; /abort or Ctrl-C cancels the running turn");
|
|
578
867
|
|
|
868
|
+
void connectChannel();
|
|
579
869
|
heartbeat = setInterval(() => { if (!state.running && !state.holding && !agentExited) postIdle("idle_heartbeat"); }, BEAT_MS);
|
|
580
870
|
// While a turn runs and nothing waits on a person: the turn is still outstanding and dsh is alive. Not progress.
|
|
581
871
|
workBeat = setInterval(() => {
|
|
@@ -9,6 +9,12 @@
|
|
|
9
9
|
# that differs, so such flags fail even on a new name. Other arguments go only to a new session, never to a resume.
|
|
10
10
|
set -eu
|
|
11
11
|
|
|
12
|
+
# Managed run authority belongs to the parent runner, never this native TUI or its probes.
|
|
13
|
+
# Keep legacy hook-only environments unchanged.
|
|
14
|
+
if [ "${OPENRIG_RUN_ID+x}" = x ]; then
|
|
15
|
+
unset OPENRIG_RUN_ID OPENRIG_ACTIVITY_HOOK_TOKEN
|
|
16
|
+
fi
|
|
17
|
+
|
|
12
18
|
hermes="${OPENRIG_HERMES:-hermes}"
|
|
13
19
|
|
|
14
20
|
# Each seat gets its own Hermes home, so seats don't share sessions or a gateway, and a seat's stop concerns only its own.
|
|
@@ -5,6 +5,12 @@
|
|
|
5
5
|
# Resume checks that exact key at its owner; an unavailable lookup is not a missing conversation.
|
|
6
6
|
set -eu
|
|
7
7
|
|
|
8
|
+
# Managed run authority belongs to the parent runner, never this native TUI or its probes.
|
|
9
|
+
# Keep legacy hook-only environments unchanged.
|
|
10
|
+
if [ "${OPENRIG_RUN_ID+x}" = x ]; then
|
|
11
|
+
unset OPENRIG_RUN_ID OPENRIG_ACTIVITY_HOOK_TOKEN
|
|
12
|
+
fi
|
|
13
|
+
|
|
8
14
|
openclaw="${OPENRIG_OPENCLAW:-openclaw}"
|
|
9
15
|
mode=local
|
|
10
16
|
if [ "${1:-}" = --gateway ]; then mode=gateway; shift; fi
|
|
@@ -3,3 +3,5 @@
|
|
|
3
3
|
Run `rig environment setup --help` to install the maintained OpenShell 0.1.6 / Claude Code reference from the packaged daemon assets. Its README, image recipe, endpoint-specific policy, example RigSpec/AgentSpecs and versioned driver schema are installed together. Setup prepares files and an ordinary scoped work grant; it does not create compute or launch a provider.
|
|
4
4
|
|
|
5
5
|
This first cut supports explicit owned create or exact attached binding, required destination projection and verified JSON artifact return through authenticated MCP work tools. Explicit owned lifecycle operations retain separate observed receipts. Exact same-host recreate/restore requires verified private history and the selected checkpoint; attached native, storage and compute are preserved. A native process receipt is not a successful model-work claim. Existing unbound host runtimes retain their launch/projection paths.
|
|
6
|
+
|
|
7
|
+
Contained operation/resource/native identity and the existing guest activity/work grants remain separate from the hosted runner channel. The current hosted run binding requires a managed session and concrete pane/PID; a viewer pane is not that authority for the guest execution. Owned and attached OpenShell bindings therefore advertise no new native input/wake/cancel channel, and no synthetic host session or guest-authority model is created to imply support. Existing attachment, guest activity, provider configuration and lifecycle semantics remain unchanged. See [runtime coverage](../../harness-runner-contract.md#runtime-coverage-and-qualification).
|
|
@@ -9,6 +9,12 @@
|
|
|
9
9
|
# an id can open another session whose id starts the same way, so neither is used to resume.
|
|
10
10
|
set -eu
|
|
11
11
|
|
|
12
|
+
# Managed run authority belongs to the parent runner, never this native TUI or its probes.
|
|
13
|
+
# Keep legacy hook-only environments unchanged.
|
|
14
|
+
if [ "${OPENRIG_RUN_ID+x}" = x ]; then
|
|
15
|
+
unset OPENRIG_RUN_ID OPENRIG_ACTIVITY_HOOK_TOKEN
|
|
16
|
+
fi
|
|
17
|
+
|
|
12
18
|
pi="${OPENRIG_PI:-pi}"
|
|
13
19
|
state="${OPENRIG_HOME:-$HOME/.openrig}/state/pi-tui/${OPENRIG_NODE_ID:-${OPENRIG_SESSION_NAME:-default}}"
|
|
14
20
|
sessions="$state/sessions"
|