@openrig/cli 0.7.22 → 0.7.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/daemon/assets/claude-hook-bridge.cjs +575 -6
- package/daemon/assets/claude-hook-bridge.d.cts +5 -0
- package/daemon/assets/claude-permission-policies.cjs +4 -3
- package/daemon/assets/guidance/openrig-context-entry.md +1 -0
- package/daemon/assets/onboarding/01-world-and-purpose.md +2 -1
- package/daemon/assets/onboarding/02-self-and-competent-action.md +6 -0
- package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +4 -3
- package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +3 -2
- package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/README.md +64 -9
- package/daemon/assets/plugins/openrig/hooks/claude.json +39 -0
- package/daemon/assets/plugins/openrig/hooks/codex.json +27 -0
- package/daemon/assets/plugins/openrig/hooks/scripts/claude-hook-bridge.cjs +715 -0
- package/daemon/assets/plugins/openrig/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/scripts/run-rig.cjs +30 -0
- package/daemon/assets/plugins/openrig/skills/working-with-an-openrig-team/SKILL.md +71 -9
- package/daemon/assets/plugins/openrig-codex/.agents/plugins/marketplace.json +15 -0
- package/daemon/assets/plugins/openrig-codex/.codex-plugin/plugin.json +42 -0
- package/daemon/assets/plugins/openrig-codex/LICENSE +200 -0
- package/daemon/assets/plugins/openrig-codex/assets/logo.svg +1 -0
- package/daemon/assets/plugins/openrig-codex/hooks/codex.json +27 -0
- package/daemon/assets/plugins/openrig-codex/hooks/scripts/claude-hook-bridge.cjs +715 -0
- package/daemon/assets/plugins/openrig-codex/skills/working-with-an-openrig-team/SKILL.md +175 -0
- package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/README.md +10 -2
- package/daemon/assets/plugins/openrig-core/hooks/claude.json +9 -0
- package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +50 -0
- package/daemon/assets/plugins/openrig-core/hooks/scripts/compaction-restore-bridge.cjs +3 -1
- package/daemon/assets/plugins/openrig-core/hooks/scripts/permission-answer.cjs +270 -0
- package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus.cjs +24 -6
- package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/precompact-hook.mjs +11 -8
- package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/restore-from-jsonl.mjs +76 -10
- package/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md +1 -1
- package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +4 -2
- package/daemon/assets/plugins/openrig-core/skills/refocusing/scripts/trace-to-root.py +191 -25
- package/daemon/assets/skills/rigs/SKILL.md +136 -26
- 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 +128 -18
- package/daemon/context-packs/reference/acp-agents.md +11 -3
- package/daemon/context-packs/reference/getting-started.md +144 -13
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +201 -3
- package/daemon/context-packs/reference/tmux-servers.md +43 -2
- package/daemon/context-packs/reference/whats-new.md +186 -12
- package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
- package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
- package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
- package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/claude-compaction-restore/scripts/precompact-hook.mjs +11 -8
- package/daemon/context-packs/skills/claude-compaction-restore/scripts/restore-from-jsonl.mjs +76 -10
- package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/messaging-the-human/SKILL.md +1 -1
- package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +3 -3
- package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/working-with-an-openrig-team/SKILL.md +71 -9
- package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
- package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
- package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-user/SKILL.md +4 -2
- package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
- package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
- package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
- package/daemon/context-packs/skills/refocusing/scripts/trace-to-root.py +191 -25
- 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 +24 -2
- package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +312 -45
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/claude-resume-launch.d.ts +3 -0
- package/daemon/dist/adapters/claude-resume-launch.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume-launch.js +5 -0
- package/daemon/dist/adapters/claude-resume-launch.js.map +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume.js +66 -24
- package/daemon/dist/adapters/claude-resume.js.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts +22 -0
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.js +72 -20
- package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/pi-community-runtime-adapter.d.ts +9 -0
- package/daemon/dist/adapters/pi-community-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-community-runtime-adapter.js +6 -0
- package/daemon/dist/adapters/pi-community-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts +3 -0
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.js +9 -3
- package/daemon/dist/adapters/pi-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/seat-slice.d.ts +19 -0
- package/daemon/dist/adapters/seat-slice.d.ts.map +1 -0
- package/daemon/dist/adapters/seat-slice.js +29 -0
- package/daemon/dist/adapters/seat-slice.js.map +1 -0
- package/daemon/dist/adapters/shell-quote.d.ts +1 -0
- package/daemon/dist/adapters/shell-quote.d.ts.map +1 -1
- package/daemon/dist/adapters/shell-quote.js +6 -0
- package/daemon/dist/adapters/shell-quote.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +84 -17
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +355 -78
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/build-info.js +3 -3
- package/daemon/dist/conversation-key-surface.d.ts +2 -0
- package/daemon/dist/conversation-key-surface.d.ts.map +1 -0
- package/daemon/dist/conversation-key-surface.js +5 -0
- package/daemon/dist/conversation-key-surface.js.map +1 -0
- package/daemon/dist/daemon-shutdown.d.ts +8 -0
- package/daemon/dist/daemon-shutdown.d.ts.map +1 -1
- package/daemon/dist/daemon-shutdown.js +15 -2
- package/daemon/dist/daemon-shutdown.js.map +1 -1
- package/daemon/dist/db/all-migrations.d.ts.map +1 -1
- package/daemon/dist/db/all-migrations.js +32 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrate.d.ts +15 -1
- package/daemon/dist/db/migrate.d.ts.map +1 -1
- package/daemon/dist/db/migrate.js +41 -6
- package/daemon/dist/db/migrate.js.map +1 -1
- package/daemon/dist/db/migrations/179_community_harness_runtime_switches.d.ts +14 -0
- package/daemon/dist/db/migrations/179_community_harness_runtime_switches.d.ts.map +1 -0
- package/daemon/dist/db/migrations/179_community_harness_runtime_switches.js +54 -0
- package/daemon/dist/db/migrations/179_community_harness_runtime_switches.js.map +1 -0
- package/daemon/dist/db/migrations/179_remote_control_observations.d.ts +10 -0
- package/daemon/dist/db/migrations/179_remote_control_observations.d.ts.map +1 -0
- package/daemon/dist/db/migrations/179_remote_control_observations.js +20 -0
- package/daemon/dist/db/migrations/179_remote_control_observations.js.map +1 -0
- package/daemon/dist/db/migrations/180_session_stop_attempt.d.ts +5 -0
- package/daemon/dist/db/migrations/180_session_stop_attempt.d.ts.map +1 -0
- package/daemon/dist/db/migrations/180_session_stop_attempt.js +7 -0
- package/daemon/dist/db/migrations/180_session_stop_attempt.js.map +1 -0
- package/daemon/dist/db/migrations/181_node_keep_alive.d.ts +8 -0
- package/daemon/dist/db/migrations/181_node_keep_alive.d.ts.map +1 -0
- package/daemon/dist/db/migrations/181_node_keep_alive.js +26 -0
- package/daemon/dist/db/migrations/181_node_keep_alive.js.map +1 -0
- package/daemon/dist/db/migrations/182_queue_items_blocked_on_index.d.ts +7 -0
- package/daemon/dist/db/migrations/182_queue_items_blocked_on_index.d.ts.map +1 -0
- package/daemon/dist/db/migrations/182_queue_items_blocked_on_index.js +11 -0
- package/daemon/dist/db/migrations/182_queue_items_blocked_on_index.js.map +1 -0
- package/daemon/dist/db/migrations/183_queue_items_scan_indexes.d.ts +8 -0
- package/daemon/dist/db/migrations/183_queue_items_scan_indexes.d.ts.map +1 -0
- package/daemon/dist/db/migrations/183_queue_items_scan_indexes.js +13 -0
- package/daemon/dist/db/migrations/183_queue_items_scan_indexes.js.map +1 -0
- package/daemon/dist/db/migrations/184_network_requests.d.ts +11 -0
- package/daemon/dist/db/migrations/184_network_requests.d.ts.map +1 -0
- package/daemon/dist/db/migrations/184_network_requests.js +32 -0
- package/daemon/dist/db/migrations/184_network_requests.js.map +1 -0
- package/daemon/dist/db/migrations/185_seat_cold_starts.d.ts +9 -0
- package/daemon/dist/db/migrations/185_seat_cold_starts.d.ts.map +1 -0
- package/daemon/dist/db/migrations/185_seat_cold_starts.js +19 -0
- package/daemon/dist/db/migrations/185_seat_cold_starts.js.map +1 -0
- package/daemon/dist/db/migrations/186_queue_relayed_answers.d.ts +3 -0
- package/daemon/dist/db/migrations/186_queue_relayed_answers.d.ts.map +1 -0
- package/daemon/dist/db/migrations/186_queue_relayed_answers.js +5 -0
- package/daemon/dist/db/migrations/186_queue_relayed_answers.js.map +1 -0
- package/daemon/dist/db/migrations/189_rig_seat_slice.d.ts +5 -0
- package/daemon/dist/db/migrations/189_rig_seat_slice.d.ts.map +1 -0
- package/daemon/dist/db/migrations/189_rig_seat_slice.js +7 -0
- package/daemon/dist/db/migrations/189_rig_seat_slice.js.map +1 -0
- package/daemon/dist/db/migrations/190_queue_transfer_staging.d.ts +3 -0
- package/daemon/dist/db/migrations/190_queue_transfer_staging.d.ts.map +1 -0
- package/daemon/dist/db/migrations/190_queue_transfer_staging.js +20 -0
- package/daemon/dist/db/migrations/190_queue_transfer_staging.js.map +1 -0
- package/daemon/dist/db/migrations/191_network_binding_providers.d.ts +3 -0
- package/daemon/dist/db/migrations/191_network_binding_providers.d.ts.map +1 -0
- package/daemon/dist/db/migrations/191_network_binding_providers.js +27 -0
- package/daemon/dist/db/migrations/191_network_binding_providers.js.map +1 -0
- package/daemon/dist/db/migrations/194_workflow_run_title.d.ts +4 -0
- package/daemon/dist/db/migrations/194_workflow_run_title.d.ts.map +1 -0
- package/daemon/dist/db/migrations/194_workflow_run_title.js +6 -0
- package/daemon/dist/db/migrations/194_workflow_run_title.js.map +1 -0
- package/daemon/dist/db/migrations/195_workflow_start_operations.d.ts +4 -0
- package/daemon/dist/db/migrations/195_workflow_start_operations.d.ts.map +1 -0
- package/daemon/dist/db/migrations/195_workflow_start_operations.js +13 -0
- package/daemon/dist/db/migrations/195_workflow_start_operations.js.map +1 -0
- package/daemon/dist/db/migrations/196_queue_item_evidence_ref_roots.d.ts +5 -0
- package/daemon/dist/db/migrations/196_queue_item_evidence_ref_roots.d.ts.map +1 -0
- package/daemon/dist/db/migrations/196_queue_item_evidence_ref_roots.js +7 -0
- package/daemon/dist/db/migrations/196_queue_item_evidence_ref_roots.js.map +1 -0
- package/daemon/dist/db/migrations/199_queue_items_native_permission_index.d.ts +9 -0
- package/daemon/dist/db/migrations/199_queue_items_native_permission_index.d.ts.map +1 -0
- package/daemon/dist/db/migrations/199_queue_items_native_permission_index.js +14 -0
- package/daemon/dist/db/migrations/199_queue_items_native_permission_index.js.map +1 -0
- package/daemon/dist/domain/activity-taxonomy.d.ts +3 -0
- package/daemon/dist/domain/activity-taxonomy.d.ts.map +1 -1
- package/daemon/dist/domain/activity-taxonomy.js.map +1 -1
- package/daemon/dist/domain/agent-activity-store.d.ts +17 -0
- package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
- package/daemon/dist/domain/agent-activity-store.js +101 -45
- package/daemon/dist/domain/agent-activity-store.js.map +1 -1
- package/daemon/dist/domain/agent-manifest.d.ts.map +1 -1
- package/daemon/dist/domain/agent-manifest.js +14 -0
- package/daemon/dist/domain/agent-manifest.js.map +1 -1
- package/daemon/dist/domain/background-process-evidence.d.ts +23 -0
- package/daemon/dist/domain/background-process-evidence.d.ts.map +1 -0
- package/daemon/dist/domain/background-process-evidence.js +81 -0
- package/daemon/dist/domain/background-process-evidence.js.map +1 -0
- package/daemon/dist/domain/chat-repository.d.ts +1 -1
- package/daemon/dist/domain/chat-repository.d.ts.map +1 -1
- package/daemon/dist/domain/chat-repository.js +2 -2
- package/daemon/dist/domain/chat-repository.js.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts +46 -8
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.js +66 -20
- package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
- package/daemon/dist/domain/codex-member-permissions.d.ts +35 -0
- package/daemon/dist/domain/codex-member-permissions.d.ts.map +1 -1
- package/daemon/dist/domain/codex-member-permissions.js +106 -1
- package/daemon/dist/domain/codex-member-permissions.js.map +1 -1
- package/daemon/dist/domain/community-harness-presets.d.ts +9 -0
- package/daemon/dist/domain/community-harness-presets.d.ts.map +1 -1
- package/daemon/dist/domain/community-harness-presets.js +25 -1
- package/daemon/dist/domain/community-harness-presets.js.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts +12 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.js +130 -2
- package/daemon/dist/domain/compaction-restore-notice.js.map +1 -1
- package/daemon/dist/domain/continuity-policy-materializer.d.ts.map +1 -1
- package/daemon/dist/domain/continuity-policy-materializer.js +11 -3
- package/daemon/dist/domain/continuity-policy-materializer.js.map +1 -1
- package/daemon/dist/domain/core-app-job.d.ts +4 -4
- package/daemon/dist/domain/core-app-job.d.ts.map +1 -1
- package/daemon/dist/domain/core-app-job.js +4 -59
- package/daemon/dist/domain/core-app-job.js.map +1 -1
- package/daemon/dist/domain/current-work.d.ts +43 -4
- package/daemon/dist/domain/current-work.d.ts.map +1 -1
- package/daemon/dist/domain/current-work.js +52 -3
- package/daemon/dist/domain/current-work.js.map +1 -1
- package/daemon/dist/domain/escalation-owner.d.ts +3 -0
- package/daemon/dist/domain/escalation-owner.d.ts.map +1 -1
- package/daemon/dist/domain/escalation-owner.js +9 -3
- package/daemon/dist/domain/escalation-owner.js.map +1 -1
- package/daemon/dist/domain/execution-candidate-reader.d.ts +3 -0
- package/daemon/dist/domain/execution-candidate-reader.d.ts.map +1 -1
- package/daemon/dist/domain/execution-candidate-reader.js +8 -2
- package/daemon/dist/domain/execution-candidate-reader.js.map +1 -1
- package/daemon/dist/domain/existing-rig-restore.d.ts +2 -0
- package/daemon/dist/domain/existing-rig-restore.d.ts.map +1 -1
- package/daemon/dist/domain/existing-rig-restore.js +11 -1
- package/daemon/dist/domain/existing-rig-restore.js.map +1 -1
- package/daemon/dist/domain/feed/attention-aggregator.d.ts +5 -5
- package/daemon/dist/domain/feed/attention-aggregator.d.ts.map +1 -1
- package/daemon/dist/domain/feed/attention-aggregator.js +10 -4
- package/daemon/dist/domain/feed/attention-aggregator.js.map +1 -1
- package/daemon/dist/domain/files/path-safety.d.ts +7 -0
- package/daemon/dist/domain/files/path-safety.d.ts.map +1 -1
- package/daemon/dist/domain/files/path-safety.js +23 -0
- package/daemon/dist/domain/files/path-safety.js.map +1 -1
- package/daemon/dist/domain/frontmatter.d.ts.map +1 -1
- package/daemon/dist/domain/frontmatter.js +4 -2
- package/daemon/dist/domain/frontmatter.js.map +1 -1
- package/daemon/dist/domain/gateway/destination-resolver.d.ts +3 -0
- package/daemon/dist/domain/gateway/destination-resolver.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/destination-resolver.js +9 -0
- package/daemon/dist/domain/gateway/destination-resolver.js.map +1 -1
- package/daemon/dist/domain/gateway/human-quiet-windows.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/human-quiet-windows.js +2 -1
- package/daemon/dist/domain/gateway/human-quiet-windows.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.d.ts +6 -1
- package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.js +53 -9
- package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.d.ts +4 -4
- package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.js +20 -7
- package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/outbound-driver.d.ts +4 -0
- package/daemon/dist/domain/gateway/slack/outbound-driver.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/outbound-driver.js +1 -0
- package/daemon/dist/domain/gateway/slack/outbound-driver.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts +9 -1
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.js +2 -0
- package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/settled-asks.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/settled-asks.js +15 -2
- package/daemon/dist/domain/gateway/slack/settled-asks.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +10 -19
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.js +64 -40
- package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts +3 -13
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js +70 -22
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
- package/daemon/dist/domain/harness-not-started-notice.d.ts +5 -2
- package/daemon/dist/domain/harness-not-started-notice.d.ts.map +1 -1
- package/daemon/dist/domain/harness-not-started-notice.js +46 -15
- package/daemon/dist/domain/harness-not-started-notice.js.map +1 -1
- package/daemon/dist/domain/health-detectors.d.ts +4 -0
- package/daemon/dist/domain/health-detectors.d.ts.map +1 -1
- package/daemon/dist/domain/health-detectors.js +4 -1
- package/daemon/dist/domain/health-detectors.js.map +1 -1
- package/daemon/dist/domain/health-diagnosis.d.ts.map +1 -1
- package/daemon/dist/domain/health-diagnosis.js +14 -9
- package/daemon/dist/domain/health-diagnosis.js.map +1 -1
- package/daemon/dist/domain/health-passive-ceremony.d.ts +2 -0
- package/daemon/dist/domain/health-passive-ceremony.d.ts.map +1 -1
- package/daemon/dist/domain/health-passive-ceremony.js +71 -13
- package/daemon/dist/domain/health-passive-ceremony.js.map +1 -1
- package/daemon/dist/domain/history-query.d.ts +1 -1
- package/daemon/dist/domain/history-query.d.ts.map +1 -1
- package/daemon/dist/domain/history-query.js +1 -2
- package/daemon/dist/domain/history-query.js.map +1 -1
- package/daemon/dist/domain/hosts/read-through.d.ts +1 -1
- package/daemon/dist/domain/hosts/read-through.d.ts.map +1 -1
- package/daemon/dist/domain/hosts/read-through.js +9 -2
- package/daemon/dist/domain/hosts/read-through.js.map +1 -1
- package/daemon/dist/domain/hot-potato-enforcer.d.ts +3 -3
- package/daemon/dist/domain/hot-potato-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/hot-potato-enforcer.js +2 -2
- package/daemon/dist/domain/hot-potato-enforcer.js.map +1 -1
- package/daemon/dist/domain/human-questions.d.ts +1 -1
- package/daemon/dist/domain/human-questions.d.ts.map +1 -1
- package/daemon/dist/domain/human-questions.js +2 -0
- package/daemon/dist/domain/human-questions.js.map +1 -1
- package/daemon/dist/domain/input-read-diagnostic.js +1 -1
- package/daemon/dist/domain/input-read-diagnostic.js.map +1 -1
- package/daemon/dist/domain/keep-alive-supervisor.d.ts +178 -0
- package/daemon/dist/domain/keep-alive-supervisor.d.ts.map +1 -0
- package/daemon/dist/domain/keep-alive-supervisor.js +523 -0
- package/daemon/dist/domain/keep-alive-supervisor.js.map +1 -0
- package/daemon/dist/domain/managed-restore-read-access.d.ts +18 -0
- package/daemon/dist/domain/managed-restore-read-access.d.ts.map +1 -1
- package/daemon/dist/domain/managed-restore-read-access.js +41 -1
- package/daemon/dist/domain/managed-restore-read-access.js.map +1 -1
- package/daemon/dist/domain/mission-control/audit-browse.d.ts +1 -1
- package/daemon/dist/domain/mission-control/audit-browse.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/audit-browse.js +3 -6
- package/daemon/dist/domain/mission-control/audit-browse.js.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-fleet-cli-capability.d.ts +6 -0
- package/daemon/dist/domain/mission-control/mission-control-fleet-cli-capability.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-fleet-cli-capability.js +38 -9
- package/daemon/dist/domain/mission-control/mission-control-fleet-cli-capability.js.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js +50 -5
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
- package/daemon/dist/domain/mutation-trace.d.ts +28 -0
- package/daemon/dist/domain/mutation-trace.d.ts.map +1 -0
- package/daemon/dist/domain/mutation-trace.js +38 -0
- package/daemon/dist/domain/mutation-trace.js.map +1 -0
- package/daemon/dist/domain/native-resume-probe.d.ts +35 -3
- package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +84 -17
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/network/hub-client.d.ts +30 -1
- package/daemon/dist/domain/network/hub-client.d.ts.map +1 -1
- package/daemon/dist/domain/network/hub-client.js +62 -9
- package/daemon/dist/domain/network/hub-client.js.map +1 -1
- package/daemon/dist/domain/network/network-bindings.d.ts +52 -2
- package/daemon/dist/domain/network/network-bindings.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-bindings.js +217 -23
- package/daemon/dist/domain/network/network-bindings.js.map +1 -1
- package/daemon/dist/domain/network/network-connector.d.ts +9 -1
- package/daemon/dist/domain/network/network-connector.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-connector.js +95 -7
- package/daemon/dist/domain/network/network-connector.js.map +1 -1
- package/daemon/dist/domain/network/network-installations.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-installations.js +22 -7
- package/daemon/dist/domain/network/network-installations.js.map +1 -1
- package/daemon/dist/domain/network/network-provider-removal.d.ts +9 -0
- package/daemon/dist/domain/network/network-provider-removal.d.ts.map +1 -0
- package/daemon/dist/domain/network/network-provider-removal.js +75 -0
- package/daemon/dist/domain/network/network-provider-removal.js.map +1 -0
- package/daemon/dist/domain/network/network-requests.d.ts +60 -0
- package/daemon/dist/domain/network/network-requests.d.ts.map +1 -0
- package/daemon/dist/domain/network/network-requests.js +502 -0
- package/daemon/dist/domain/network/network-requests.js.map +1 -0
- package/daemon/dist/domain/node-inventory.d.ts +26 -0
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +87 -7
- package/daemon/dist/domain/node-inventory.js.map +1 -1
- package/daemon/dist/domain/node-launcher.d.ts +2 -2
- package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/node-launcher.js +9 -7
- package/daemon/dist/domain/node-launcher.js.map +1 -1
- package/daemon/dist/domain/occupant-invalidator.d.ts +1 -1
- package/daemon/dist/domain/occupant-invalidator.d.ts.map +1 -1
- package/daemon/dist/domain/occupant-invalidator.js +1 -1
- package/daemon/dist/domain/occupant-invalidator.js.map +1 -1
- package/daemon/dist/domain/outbox-handler.d.ts +11 -0
- package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
- package/daemon/dist/domain/outbox-handler.js +20 -0
- package/daemon/dist/domain/outbox-handler.js.map +1 -1
- package/daemon/dist/domain/pane-cutover.d.ts +36 -9
- package/daemon/dist/domain/pane-cutover.d.ts.map +1 -1
- package/daemon/dist/domain/pane-cutover.js +82 -13
- package/daemon/dist/domain/pane-cutover.js.map +1 -1
- package/daemon/dist/domain/parked-query.d.ts +6 -0
- package/daemon/dist/domain/parked-query.d.ts.map +1 -1
- package/daemon/dist/domain/parked-query.js +14 -4
- package/daemon/dist/domain/parked-query.js.map +1 -1
- package/daemon/dist/domain/policies/seat-pool.d.ts +13 -0
- package/daemon/dist/domain/policies/seat-pool.d.ts.map +1 -1
- package/daemon/dist/domain/policies/seat-pool.js +18 -3
- package/daemon/dist/domain/policies/seat-pool.js.map +1 -1
- package/daemon/dist/domain/profile-resolver.d.ts +7 -1
- package/daemon/dist/domain/profile-resolver.d.ts.map +1 -1
- package/daemon/dist/domain/profile-resolver.js +7 -0
- package/daemon/dist/domain/profile-resolver.js.map +1 -1
- package/daemon/dist/domain/progress/progress-indexer.d.ts.map +1 -1
- package/daemon/dist/domain/progress/progress-indexer.js +11 -0
- package/daemon/dist/domain/progress/progress-indexer.js.map +1 -1
- package/daemon/dist/domain/project-lifecycle-compiler.d.ts.map +1 -1
- package/daemon/dist/domain/project-lifecycle-compiler.js +4 -1
- package/daemon/dist/domain/project-lifecycle-compiler.js.map +1 -1
- package/daemon/dist/domain/projection-planner.d.ts +17 -3
- package/daemon/dist/domain/projection-planner.d.ts.map +1 -1
- package/daemon/dist/domain/projection-planner.js +9 -1
- package/daemon/dist/domain/projection-planner.js.map +1 -1
- package/daemon/dist/domain/proof/judgments.d.ts +3 -0
- package/daemon/dist/domain/proof/judgments.d.ts.map +1 -1
- package/daemon/dist/domain/proof/judgments.js +13 -3
- package/daemon/dist/domain/proof/judgments.js.map +1 -1
- package/daemon/dist/domain/proof/source-watch.js +4 -4
- package/daemon/dist/domain/proof/source-watch.js.map +1 -1
- package/daemon/dist/domain/provider/claude-interruption.d.ts +6 -0
- package/daemon/dist/domain/provider/claude-interruption.d.ts.map +1 -1
- package/daemon/dist/domain/provider/claude-interruption.js +18 -0
- package/daemon/dist/domain/provider/claude-interruption.js.map +1 -1
- package/daemon/dist/domain/ps-projection.d.ts +8 -1
- package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
- package/daemon/dist/domain/ps-projection.js +11 -3
- package/daemon/dist/domain/ps-projection.js.map +1 -1
- package/daemon/dist/domain/queue-destination-check.d.ts +8 -0
- package/daemon/dist/domain/queue-destination-check.d.ts.map +1 -1
- package/daemon/dist/domain/queue-destination-check.js +17 -4
- package/daemon/dist/domain/queue-destination-check.js.map +1 -1
- package/daemon/dist/domain/queue-erasure.d.ts +3 -0
- package/daemon/dist/domain/queue-erasure.d.ts.map +1 -1
- package/daemon/dist/domain/queue-erasure.js +2 -2
- package/daemon/dist/domain/queue-erasure.js.map +1 -1
- package/daemon/dist/domain/queue-owner.d.ts +5 -0
- package/daemon/dist/domain/queue-owner.d.ts.map +1 -1
- package/daemon/dist/domain/queue-owner.js +16 -8
- package/daemon/dist/domain/queue-owner.js.map +1 -1
- package/daemon/dist/domain/queue-recorded-graph.d.ts +32 -0
- package/daemon/dist/domain/queue-recorded-graph.d.ts.map +1 -0
- package/daemon/dist/domain/queue-recorded-graph.js +84 -0
- package/daemon/dist/domain/queue-recorded-graph.js.map +1 -0
- package/daemon/dist/domain/queue-repository.d.ts +94 -5
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +491 -39
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-retention.d.ts +1 -1
- package/daemon/dist/domain/queue-retention.d.ts.map +1 -1
- package/daemon/dist/domain/queue-retention.js +4 -0
- package/daemon/dist/domain/queue-retention.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts +23 -3
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +661 -22
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/queue-transfer-export.d.ts +75 -0
- package/daemon/dist/domain/queue-transfer-export.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-export.js +158 -0
- package/daemon/dist/domain/queue-transfer-export.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-format.d.ts +15 -0
- package/daemon/dist/domain/queue-transfer-format.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-format.js +32 -0
- package/daemon/dist/domain/queue-transfer-format.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-parse.d.ts +40 -0
- package/daemon/dist/domain/queue-transfer-parse.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-parse.js +131 -0
- package/daemon/dist/domain/queue-transfer-parse.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-review.d.ts +22 -0
- package/daemon/dist/domain/queue-transfer-review.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-review.js +81 -0
- package/daemon/dist/domain/queue-transfer-review.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-staging.d.ts +79 -0
- package/daemon/dist/domain/queue-transfer-staging.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-staging.js +67 -0
- package/daemon/dist/domain/queue-transfer-staging.js.map +1 -0
- package/daemon/dist/domain/queue-transition-log.d.ts +6 -0
- package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
- package/daemon/dist/domain/queue-transition-log.js +1 -1
- package/daemon/dist/domain/queue-transition-log.js.map +1 -1
- package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
- package/daemon/dist/domain/queue-waiting.js +7 -0
- package/daemon/dist/domain/queue-waiting.js.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.d.ts +4 -0
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +181 -24
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/reconciler.d.ts +27 -2
- package/daemon/dist/domain/reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/reconciler.js +184 -16
- package/daemon/dist/domain/reconciler.js.map +1 -1
- package/daemon/dist/domain/refusal-trace.d.ts +15 -0
- package/daemon/dist/domain/refusal-trace.d.ts.map +1 -0
- package/daemon/dist/domain/refusal-trace.js +23 -0
- package/daemon/dist/domain/refusal-trace.js.map +1 -0
- package/daemon/dist/domain/rehydrate-eligibility.d.ts +8 -0
- package/daemon/dist/domain/rehydrate-eligibility.d.ts.map +1 -1
- package/daemon/dist/domain/rehydrate-eligibility.js +61 -9
- package/daemon/dist/domain/rehydrate-eligibility.js.map +1 -1
- package/daemon/dist/domain/relayed-answers.d.ts +80 -0
- package/daemon/dist/domain/relayed-answers.d.ts.map +1 -0
- package/daemon/dist/domain/relayed-answers.js +8 -0
- package/daemon/dist/domain/relayed-answers.js.map +1 -0
- package/daemon/dist/domain/remote-control-observations.d.ts +50 -0
- package/daemon/dist/domain/remote-control-observations.d.ts.map +1 -0
- package/daemon/dist/domain/remote-control-observations.js +72 -0
- package/daemon/dist/domain/remote-control-observations.js.map +1 -0
- package/daemon/dist/domain/restore-attempt-receipt.d.ts.map +1 -1
- package/daemon/dist/domain/restore-attempt-receipt.js +8 -2
- package/daemon/dist/domain/restore-attempt-receipt.js.map +1 -1
- package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
- package/daemon/dist/domain/restore-check-service.js +5 -2
- package/daemon/dist/domain/restore-check-service.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +70 -6
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +387 -51
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/return-route.d.ts +13 -2
- package/daemon/dist/domain/return-route.d.ts.map +1 -1
- package/daemon/dist/domain/return-route.js +30 -1
- package/daemon/dist/domain/return-route.js.map +1 -1
- package/daemon/dist/domain/rig-lifecycle-service.d.ts +1 -0
- package/daemon/dist/domain/rig-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/rig-lifecycle-service.js +27 -3
- package/daemon/dist/domain/rig-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/rig-mode/operating-posture.d.ts.map +1 -1
- package/daemon/dist/domain/rig-mode/operating-posture.js +23 -4
- package/daemon/dist/domain/rig-mode/operating-posture.js.map +1 -1
- package/daemon/dist/domain/rig-repository.d.ts +21 -3
- package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
- package/daemon/dist/domain/rig-repository.js +67 -2
- package/daemon/dist/domain/rig-repository.js.map +1 -1
- package/daemon/dist/domain/rig-teardown.d.ts +52 -9
- package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
- package/daemon/dist/domain/rig-teardown.js +184 -32
- package/daemon/dist/domain/rig-teardown.js.map +1 -1
- package/daemon/dist/domain/rigspec-codec.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-codec.js +12 -0
- package/daemon/dist/domain/rigspec-codec.js.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.d.ts +14 -0
- package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.js +56 -14
- package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts +34 -3
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +195 -40
- package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-preflight.js +26 -3
- package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
- package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-schema.js +30 -4
- package/daemon/dist/domain/rigspec-schema.js.map +1 -1
- package/daemon/dist/domain/roster-ready-notice.d.ts +11 -0
- package/daemon/dist/domain/roster-ready-notice.d.ts.map +1 -0
- package/daemon/dist/domain/roster-ready-notice.js +35 -0
- package/daemon/dist/domain/roster-ready-notice.js.map +1 -0
- package/daemon/dist/domain/rosters.d.ts +1 -0
- package/daemon/dist/domain/rosters.d.ts.map +1 -1
- package/daemon/dist/domain/rosters.js +5 -4
- package/daemon/dist/domain/rosters.js.map +1 -1
- package/daemon/dist/domain/runner-permissions.d.ts +140 -5
- package/daemon/dist/domain/runner-permissions.d.ts.map +1 -1
- package/daemon/dist/domain/runner-permissions.js +593 -16
- package/daemon/dist/domain/runner-permissions.js.map +1 -1
- package/daemon/dist/domain/runtime-adapter.d.ts +3 -1
- package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-exit.d.ts +79 -0
- package/daemon/dist/domain/runtime-exit.d.ts.map +1 -0
- package/daemon/dist/domain/runtime-exit.js +301 -0
- package/daemon/dist/domain/runtime-exit.js.map +1 -0
- package/daemon/dist/domain/runtime-switch-materials.d.ts +4 -1
- package/daemon/dist/domain/runtime-switch-materials.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-switch-materials.js +66 -13
- package/daemon/dist/domain/runtime-switch-materials.js.map +1 -1
- package/daemon/dist/domain/scope/attestation-lineage.generated.js +2 -2
- package/daemon/dist/domain/scope/attestation-lineage.generated.js.map +1 -1
- package/daemon/dist/domain/scope/logical-checkbox.d.ts.map +1 -1
- package/daemon/dist/domain/scope/logical-checkbox.js +18 -0
- package/daemon/dist/domain/scope/logical-checkbox.js.map +1 -1
- package/daemon/dist/domain/scope/scaffold-placeholder.js +2 -2
- package/daemon/dist/domain/scope/scaffold-placeholder.js.map +1 -1
- package/daemon/dist/domain/seat-activity-service.d.ts +4 -0
- package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-activity-service.js +24 -5
- package/daemon/dist/domain/seat-activity-service.js.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.d.ts +7 -0
- package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.js +152 -65
- package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-cold-start.d.ts +150 -0
- package/daemon/dist/domain/seat-cold-start.d.ts.map +1 -0
- package/daemon/dist/domain/seat-cold-start.js +371 -0
- package/daemon/dist/domain/seat-cold-start.js.map +1 -0
- package/daemon/dist/domain/seat-delivery-guard.d.ts +11 -2
- package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.js +34 -6
- package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
- package/daemon/dist/domain/seat-handover-service.d.ts +5 -2
- package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-handover-service.js +30 -6
- package/daemon/dist/domain/seat-handover-service.js.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.d.ts +31 -0
- package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.js +218 -29
- package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-identity-store.d.ts +5 -3
- package/daemon/dist/domain/seat-identity-store.d.ts.map +1 -1
- package/daemon/dist/domain/seat-identity-store.js +7 -3
- package/daemon/dist/domain/seat-identity-store.js.map +1 -1
- package/daemon/dist/domain/seat-launch-environment.d.ts +8 -0
- package/daemon/dist/domain/seat-launch-environment.d.ts.map +1 -1
- package/daemon/dist/domain/seat-launch-environment.js +37 -5
- package/daemon/dist/domain/seat-launch-environment.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +54 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +220 -30
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/seat-pool-executor.d.ts +174 -0
- package/daemon/dist/domain/seat-pool-executor.d.ts.map +1 -0
- package/daemon/dist/domain/seat-pool-executor.js +1241 -0
- package/daemon/dist/domain/seat-pool-executor.js.map +1 -0
- package/daemon/dist/domain/seat-pool-registration.d.ts +93 -0
- package/daemon/dist/domain/seat-pool-registration.d.ts.map +1 -0
- package/daemon/dist/domain/seat-pool-registration.js +149 -0
- package/daemon/dist/domain/seat-pool-registration.js.map +1 -0
- package/daemon/dist/domain/seat-pool-slots.d.ts +66 -0
- package/daemon/dist/domain/seat-pool-slots.d.ts.map +1 -1
- package/daemon/dist/domain/seat-pool-slots.js +101 -0
- package/daemon/dist/domain/seat-pool-slots.js.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.d.ts +15 -0
- package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.js +54 -2
- package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-home-record.d.ts +8 -0
- package/daemon/dist/domain/seat-runtime-home-record.d.ts.map +1 -1
- package/daemon/dist/domain/seat-runtime-home-record.js +1 -1
- package/daemon/dist/domain/seat-runtime-home-record.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts +2 -1
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.js +68 -20
- package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
- package/daemon/dist/domain/session-registry.d.ts +22 -3
- package/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.js +38 -6
- package/daemon/dist/domain/session-registry.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +18 -2
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +73 -39
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/skill-catalog.d.ts.map +1 -1
- package/daemon/dist/domain/skill-catalog.js +24 -10
- package/daemon/dist/domain/skill-catalog.js.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.d.ts +55 -0
- package/daemon/dist/domain/slices/slice-indexer.d.ts.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.js +259 -50
- package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts +6 -2
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +118 -30
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/startup-proof.d.ts +6 -0
- package/daemon/dist/domain/startup-proof.d.ts.map +1 -1
- package/daemon/dist/domain/startup-proof.js +11 -0
- package/daemon/dist/domain/startup-proof.js.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.d.ts +3 -0
- package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.js +36 -3
- package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
- package/daemon/dist/domain/stream-reader-actions.d.ts +23 -0
- package/daemon/dist/domain/stream-reader-actions.d.ts.map +1 -1
- package/daemon/dist/domain/stream-reader-actions.js +43 -0
- package/daemon/dist/domain/stream-reader-actions.js.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.d.ts +24 -3
- package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.js +54 -23
- package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
- package/daemon/dist/domain/terminal/earlier-tile-attach-0723.d.ts +2 -0
- package/daemon/dist/domain/terminal/earlier-tile-attach-0723.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/earlier-tile-attach-0723.js +48 -0
- package/daemon/dist/domain/terminal/earlier-tile-attach-0723.js.map +1 -0
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts +2 -0
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.js +2 -0
- package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
- package/daemon/dist/domain/terminal/rex-agent-status.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/rex-agent-status.js +5 -2
- package/daemon/dist/domain/terminal/rex-agent-status.js.map +1 -1
- package/daemon/dist/domain/terminal/scope-task-terminal-view.d.ts +2 -1
- package/daemon/dist/domain/terminal/scope-task-terminal-view.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/scope-task-terminal-view.js +80 -38
- package/daemon/dist/domain/terminal/scope-task-terminal-view.js.map +1 -1
- package/daemon/dist/domain/terminal/terminal-provider.d.ts +2 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.d.ts +3 -0
- package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.js +30 -26
- package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
- package/daemon/dist/domain/terminal/tile-attach.d.ts +31 -3
- package/daemon/dist/domain/terminal/tile-attach.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/tile-attach.js +95 -4
- package/daemon/dist/domain/terminal/tile-attach.js.map +1 -1
- package/daemon/dist/domain/terminal/view-composer.d.ts +2 -0
- package/daemon/dist/domain/terminal/view-composer.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/view-composer.js +4 -2
- package/daemon/dist/domain/terminal/view-composer.js.map +1 -1
- package/daemon/dist/domain/topology-trace.d.ts +40 -0
- package/daemon/dist/domain/topology-trace.d.ts.map +1 -0
- package/daemon/dist/domain/topology-trace.js +106 -0
- package/daemon/dist/domain/topology-trace.js.map +1 -0
- package/daemon/dist/domain/transcript-redaction.d.ts +10 -8
- package/daemon/dist/domain/transcript-redaction.d.ts.map +1 -1
- package/daemon/dist/domain/transcript-redaction.js +51 -22
- package/daemon/dist/domain/transcript-redaction.js.map +1 -1
- package/daemon/dist/domain/transcript-store.d.ts.map +1 -1
- package/daemon/dist/domain/transcript-store.js +12 -1
- package/daemon/dist/domain/transcript-store.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +111 -9
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js +6 -2
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.js +2 -0
- package/daemon/dist/domain/user-settings/settings-browser.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts +1 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.js +13 -0
- package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts +5 -3
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-jobs-repository.js +6 -1
- package/daemon/dist/domain/watchdog-jobs-repository.js.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.d.ts +8 -1
- package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.js +6 -2
- package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
- package/daemon/dist/domain/whoami-service.d.ts +11 -0
- package/daemon/dist/domain/whoami-service.d.ts.map +1 -1
- package/daemon/dist/domain/whoami-service.js +13 -0
- package/daemon/dist/domain/whoami-service.js.map +1 -1
- package/daemon/dist/domain/workflow-instance-store.d.ts +2 -0
- package/daemon/dist/domain/workflow-instance-store.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-instance-store.js +11 -2
- package/daemon/dist/domain/workflow-instance-store.js.map +1 -1
- package/daemon/dist/domain/workflow-projector.d.ts +3 -1
- package/daemon/dist/domain/workflow-projector.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-projector.js +58 -10
- package/daemon/dist/domain/workflow-projector.js.map +1 -1
- package/daemon/dist/domain/workflow-reconciliation.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-reconciliation.js +9 -0
- package/daemon/dist/domain/workflow-reconciliation.js.map +1 -1
- package/daemon/dist/domain/workflow-run-title.d.ts +4 -0
- package/daemon/dist/domain/workflow-run-title.d.ts.map +1 -0
- package/daemon/dist/domain/workflow-run-title.js +5 -0
- package/daemon/dist/domain/workflow-run-title.js.map +1 -0
- package/daemon/dist/domain/workflow-runtime.d.ts +3 -0
- package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-runtime.js +48 -3
- package/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/daemon/dist/domain/workflow-spec-cache.d.ts +2 -2
- package/daemon/dist/domain/workflow-spec-cache.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-spec-cache.js +20 -1
- package/daemon/dist/domain/workflow-spec-cache.js.map +1 -1
- package/daemon/dist/domain/workflow-types.d.ts +15 -0
- package/daemon/dist/domain/workflow-types.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-types.js +4 -0
- package/daemon/dist/domain/workflow-types.js.map +1 -1
- package/daemon/dist/domain/workspace/project-read.d.ts +10 -0
- package/daemon/dist/domain/workspace/project-read.d.ts.map +1 -1
- package/daemon/dist/domain/workspace/project-read.js +34 -2
- package/daemon/dist/domain/workspace/project-read.js.map +1 -1
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +7 -1
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/queue-transfer-export-surface.d.ts +33 -0
- package/daemon/dist/queue-transfer-export-surface.d.ts.map +1 -0
- package/daemon/dist/queue-transfer-export-surface.js +13 -0
- package/daemon/dist/queue-transfer-export-surface.js.map +1 -0
- package/daemon/dist/queue-transfer-staging-surface.d.ts +86 -0
- package/daemon/dist/queue-transfer-staging-surface.d.ts.map +1 -0
- package/daemon/dist/queue-transfer-staging-surface.js +91 -0
- package/daemon/dist/queue-transfer-staging-surface.js.map +1 -0
- package/daemon/dist/routes/activity.d.ts.map +1 -1
- package/daemon/dist/routes/activity.js +105 -2
- package/daemon/dist/routes/activity.js.map +1 -1
- package/daemon/dist/routes/compaction.d.ts.map +1 -1
- package/daemon/dist/routes/compaction.js +33 -11
- package/daemon/dist/routes/compaction.js.map +1 -1
- package/daemon/dist/routes/context-packs.d.ts.map +1 -1
- package/daemon/dist/routes/context-packs.js +23 -1
- package/daemon/dist/routes/context-packs.js.map +1 -1
- package/daemon/dist/routes/events.js +7 -4
- package/daemon/dist/routes/events.js.map +1 -1
- package/daemon/dist/routes/network.d.ts +2 -0
- package/daemon/dist/routes/network.d.ts.map +1 -1
- package/daemon/dist/routes/network.js +62 -1
- package/daemon/dist/routes/network.js.map +1 -1
- package/daemon/dist/routes/ps.js +12 -1
- package/daemon/dist/routes/ps.js.map +1 -1
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +219 -77
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/require-sender-identity.d.ts +15 -0
- package/daemon/dist/routes/require-sender-identity.d.ts.map +1 -1
- package/daemon/dist/routes/require-sender-identity.js +57 -8
- package/daemon/dist/routes/require-sender-identity.js.map +1 -1
- package/daemon/dist/routes/rigs.js +2 -0
- package/daemon/dist/routes/rigs.js.map +1 -1
- package/daemon/dist/routes/seat.d.ts.map +1 -1
- package/daemon/dist/routes/seat.js +18 -5
- package/daemon/dist/routes/seat.js.map +1 -1
- package/daemon/dist/routes/sessions.d.ts.map +1 -1
- package/daemon/dist/routes/sessions.js +14 -0
- package/daemon/dist/routes/sessions.js.map +1 -1
- package/daemon/dist/routes/slices.d.ts.map +1 -1
- package/daemon/dist/routes/slices.js +16 -7
- package/daemon/dist/routes/slices.js.map +1 -1
- package/daemon/dist/routes/startup.d.ts.map +1 -1
- package/daemon/dist/routes/startup.js +49 -4
- package/daemon/dist/routes/startup.js.map +1 -1
- package/daemon/dist/routes/stream.d.ts.map +1 -1
- package/daemon/dist/routes/stream.js +28 -1
- package/daemon/dist/routes/stream.js.map +1 -1
- package/daemon/dist/routes/terminal-ws.js +28 -2
- package/daemon/dist/routes/terminal-ws.js.map +1 -1
- package/daemon/dist/routes/terminal.d.ts.map +1 -1
- package/daemon/dist/routes/terminal.js +3 -2
- package/daemon/dist/routes/terminal.js.map +1 -1
- package/daemon/dist/routes/transport.d.ts.map +1 -1
- package/daemon/dist/routes/transport.js +14 -2
- package/daemon/dist/routes/transport.js.map +1 -1
- package/daemon/dist/routes/up.js +2 -0
- package/daemon/dist/routes/up.js.map +1 -1
- package/daemon/dist/routes/workflow.d.ts.map +1 -1
- package/daemon/dist/routes/workflow.js +57 -44
- package/daemon/dist/routes/workflow.js.map +1 -1
- package/daemon/dist/server.d.ts +7 -0
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +25 -1
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts +3 -0
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +166 -12
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/dist/terminal/TerminalSessionBroker.d.ts +10 -0
- package/daemon/dist/terminal/TerminalSessionBroker.d.ts.map +1 -1
- package/daemon/dist/terminal/TerminalSessionBroker.js +63 -4
- package/daemon/dist/terminal/TerminalSessionBroker.js.map +1 -1
- package/daemon/dist/topology-trace-surface.d.ts +2 -0
- package/daemon/dist/topology-trace-surface.d.ts.map +1 -0
- package/daemon/dist/topology-trace-surface.js +2 -0
- package/daemon/dist/topology-trace-surface.js.map +1 -0
- package/daemon/dist/transcript-redaction-surface.d.ts +2 -0
- package/daemon/dist/transcript-redaction-surface.d.ts.map +1 -0
- package/daemon/dist/transcript-redaction-surface.js +2 -0
- package/daemon/dist/transcript-redaction-surface.js.map +1 -0
- package/daemon/docs/reference/acp-agents.md +11 -3
- package/daemon/docs/reference/agent-spec.md +25 -2
- package/daemon/docs/reference/agent-startup-guide.md +13 -1
- package/daemon/docs/reference/agent-state-taxonomy.md +35 -1
- package/daemon/docs/reference/checked-seat-stop.md +11 -1
- package/daemon/docs/reference/claude-status-line.md +7 -0
- package/daemon/docs/reference/community-harness-examples/cursor/cursor.yaml +3 -1
- package/daemon/docs/reference/community-harness-presets.md +27 -2
- package/daemon/docs/reference/daemon-http-clients.md +177 -18
- package/daemon/docs/reference/developing.md +3 -2
- package/daemon/docs/reference/gateway-participants.md +6 -0
- package/daemon/docs/reference/getting-started.md +144 -13
- package/daemon/docs/reference/harness-runner-contract.md +72 -0
- package/daemon/docs/reference/hosted-members.md +133 -0
- package/daemon/docs/reference/inventory-request-diagnostics.md +22 -0
- package/daemon/docs/reference/network-connector.md +141 -4
- package/daemon/docs/reference/project-workspace.md +11 -2
- package/daemon/docs/reference/queue-erasure.md +1 -1
- package/daemon/docs/reference/queue-transfer-export.md +38 -0
- package/daemon/docs/reference/queue-transfer-staging.md +39 -0
- package/daemon/docs/reference/quickstart.md +4 -4
- package/daemon/docs/reference/refocus-channel.md +53 -2
- package/daemon/docs/reference/rig-bundle.md +11 -1
- package/daemon/docs/reference/rig-spec.md +201 -3
- package/daemon/docs/reference/rosters.md +18 -3
- package/daemon/docs/reference/sdlc-conventions.md +1 -1
- package/daemon/docs/reference/seat-delivery.md +21 -4
- package/daemon/docs/reference/seat-node-targeting.md +10 -0
- package/daemon/docs/reference/seat-pools.md +182 -0
- package/daemon/docs/reference/slack-app-setup.md +15 -0
- package/daemon/docs/reference/terminal-sessions.md +127 -13
- package/daemon/docs/reference/tmux-servers.md +43 -2
- package/daemon/docs/reference/whats-new.md +186 -12
- package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +1 -1
- package/daemon/specs/agents/shared/skills/core/working-with-an-openrig-team/SKILL.md +71 -9
- package/daemon/specs/rigs/launch/factory/guidance/lead-first-move.md +4 -1
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +2 -1
- package/daemon/specs/rigs/launch/starter/guidance/lead-first-move.md +4 -1
- package/dist/bin-wrapper.d.ts.map +1 -1
- package/dist/bin-wrapper.js +24 -5
- package/dist/bin-wrapper.js.map +1 -1
- package/dist/build-info.js +3 -3
- package/dist/client.d.ts +6 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +7 -1
- package/dist/client.js.map +1 -1
- package/dist/commands/add.js +1 -1
- package/dist/commands/add.js.map +1 -1
- package/dist/commands/agent.js +1 -1
- package/dist/commands/agent.js.map +1 -1
- package/dist/commands/broadcast.d.ts.map +1 -1
- package/dist/commands/broadcast.js +87 -8
- package/dist/commands/broadcast.js.map +1 -1
- package/dist/commands/bundle.d.ts.map +1 -1
- package/dist/commands/bundle.js +18 -4
- package/dist/commands/bundle.js.map +1 -1
- package/dist/commands/chatroom.d.ts +3 -0
- package/dist/commands/chatroom.d.ts.map +1 -1
- package/dist/commands/chatroom.js +7 -1
- package/dist/commands/chatroom.js.map +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +2 -1
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/create.d.ts.map +1 -1
- package/dist/commands/create.js +6 -2
- package/dist/commands/create.js.map +1 -1
- package/dist/commands/daemon.d.ts.map +1 -1
- package/dist/commands/daemon.js +18 -15
- package/dist/commands/daemon.js.map +1 -1
- package/dist/commands/down.d.ts.map +1 -1
- package/dist/commands/down.js +12 -1
- package/dist/commands/down.js.map +1 -1
- package/dist/commands/exec.d.ts.map +1 -1
- package/dist/commands/exec.js +22 -13
- package/dist/commands/exec.js.map +1 -1
- package/dist/commands/expand.js +1 -1
- package/dist/commands/expand.js.map +1 -1
- package/dist/commands/export.d.ts.map +1 -1
- package/dist/commands/export.js +5 -1
- package/dist/commands/export.js.map +1 -1
- package/dist/commands/fork.js +1 -1
- package/dist/commands/fork.js.map +1 -1
- package/dist/commands/gateway.d.ts +4 -0
- package/dist/commands/gateway.d.ts.map +1 -1
- package/dist/commands/gateway.js +37 -0
- package/dist/commands/gateway.js.map +1 -1
- package/dist/commands/grow.d.ts.map +1 -1
- package/dist/commands/grow.js +9 -4
- package/dist/commands/grow.js.map +1 -1
- package/dist/commands/import.js +1 -1
- package/dist/commands/import.js.map +1 -1
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/mcp.js +57 -22
- package/dist/commands/mcp.js.map +1 -1
- package/dist/commands/network.d.ts +2 -3
- package/dist/commands/network.d.ts.map +1 -1
- package/dist/commands/network.js +102 -4
- package/dist/commands/network.js.map +1 -1
- package/dist/commands/parked.d.ts.map +1 -1
- package/dist/commands/parked.js +12 -6
- package/dist/commands/parked.js.map +1 -1
- package/dist/commands/provider.d.ts.map +1 -1
- package/dist/commands/provider.js +3 -2
- package/dist/commands/provider.js.map +1 -1
- package/dist/commands/ps.d.ts +13 -1
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +65 -29
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue-export.d.ts +3 -0
- package/dist/commands/queue-export.d.ts.map +1 -0
- package/dist/commands/queue-export.js +67 -0
- package/dist/commands/queue-export.js.map +1 -0
- package/dist/commands/queue-import.d.ts +4 -0
- package/dist/commands/queue-import.d.ts.map +1 -0
- package/dist/commands/queue-import.js +47 -0
- package/dist/commands/queue-import.js.map +1 -0
- package/dist/commands/queue.d.ts +3 -1
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +79 -7
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/reconcile-session.js +1 -1
- package/dist/commands/reconcile-session.js.map +1 -1
- package/dist/commands/restore.js +1 -1
- package/dist/commands/restore.js.map +1 -1
- package/dist/commands/rig.js +2 -2
- package/dist/commands/rig.js.map +1 -1
- package/dist/commands/roster.js +1 -1
- package/dist/commands/roster.js.map +1 -1
- package/dist/commands/scope.d.ts.map +1 -1
- package/dist/commands/scope.js +30 -18
- package/dist/commands/scope.js.map +1 -1
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +75 -18
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +15 -3
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/skill.js +1 -1
- package/dist/commands/skill.js.map +1 -1
- package/dist/commands/start.d.ts +14 -0
- package/dist/commands/start.d.ts.map +1 -1
- package/dist/commands/start.js +57 -7
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/terminal.d.ts.map +1 -1
- package/dist/commands/terminal.js +20 -4
- package/dist/commands/terminal.js.map +1 -1
- package/dist/commands/up.d.ts.map +1 -1
- package/dist/commands/up.js +2 -1
- package/dist/commands/up.js.map +1 -1
- package/dist/commands/whoami.d.ts.map +1 -1
- package/dist/commands/whoami.js +6 -0
- package/dist/commands/whoami.js.map +1 -1
- package/dist/commands/workflow-follow.d.ts.map +1 -1
- package/dist/commands/workflow-follow.js +37 -34
- package/dist/commands/workflow-follow.js.map +1 -1
- package/dist/commands/workflow-render.d.ts +1 -1
- package/dist/commands/workflow-render.d.ts.map +1 -1
- package/dist/commands/workflow-render.js +2 -7
- package/dist/commands/workflow-render.js.map +1 -1
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +26 -2
- package/dist/commands/workflow.js.map +1 -1
- package/dist/config-store.d.ts +2 -1
- package/dist/config-store.d.ts.map +1 -1
- package/dist/config-store.js +14 -1
- package/dist/config-store.js.map +1 -1
- package/dist/cross-host-executor.d.ts +3 -0
- package/dist/cross-host-executor.d.ts.map +1 -1
- package/dist/cross-host-executor.js +5 -0
- package/dist/cross-host-executor.js.map +1 -1
- package/dist/daemon-auto-start.d.ts.map +1 -1
- package/dist/daemon-auto-start.js +1 -0
- package/dist/daemon-auto-start.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts +30 -1
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +135 -38
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/daemon-start-lock.d.ts +38 -3
- package/dist/daemon-start-lock.d.ts.map +1 -1
- package/dist/daemon-start-lock.js +201 -48
- package/dist/daemon-start-lock.js.map +1 -1
- package/dist/lib/bundle-source.d.ts +4 -0
- package/dist/lib/bundle-source.d.ts.map +1 -1
- package/dist/lib/bundle-source.js +14 -2
- package/dist/lib/bundle-source.js.map +1 -1
- package/dist/lib/context-git.js +2 -2
- package/dist/lib/context-git.js.map +1 -1
- package/dist/lib/frontmatter.d.ts.map +1 -1
- package/dist/lib/frontmatter.js +4 -2
- package/dist/lib/frontmatter.js.map +1 -1
- package/dist/lib/scope/attestation-lineage.js +2 -2
- package/dist/lib/scope/attestation-lineage.js.map +1 -1
- package/dist/lib/scope/logical-checkbox.d.ts.map +1 -1
- package/dist/lib/scope/logical-checkbox.js +18 -0
- package/dist/lib/scope/logical-checkbox.js.map +1 -1
- package/dist/lib/scope/progress-edit.d.ts.map +1 -1
- package/dist/lib/scope/progress-edit.js +11 -1
- package/dist/lib/scope/progress-edit.js.map +1 -1
- package/dist/lib/scope/scaffold-placeholder.js +2 -2
- package/dist/lib/scope/scaffold-placeholder.js.map +1 -1
- package/dist/lib/terminal-cell.d.ts +5 -0
- package/dist/lib/terminal-cell.d.ts.map +1 -0
- package/dist/lib/terminal-cell.js +22 -0
- package/dist/lib/terminal-cell.js.map +1 -0
- package/dist/lib/topology-trace.d.ts +3 -34
- package/dist/lib/topology-trace.d.ts.map +1 -1
- package/dist/lib/topology-trace.js +3 -97
- package/dist/lib/topology-trace.js.map +1 -1
- package/dist/local-db.d.ts +2 -0
- package/dist/local-db.d.ts.map +1 -1
- package/dist/local-db.js +14 -11
- package/dist/local-db.js.map +1 -1
- package/dist/mcp-caller-resolver.d.ts +36 -0
- package/dist/mcp-caller-resolver.d.ts.map +1 -0
- package/dist/mcp-caller-resolver.js +82 -0
- package/dist/mcp-caller-resolver.js.map +1 -0
- package/dist/mcp-http.d.ts +44 -3
- package/dist/mcp-http.d.ts.map +1 -1
- package/dist/mcp-http.js +228 -48
- package/dist/mcp-http.js.map +1 -1
- package/dist/mcp-server.d.ts +28 -1
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +219 -52
- package/dist/mcp-server.js.map +1 -1
- package/dist/mcp-surface.d.ts +3 -2
- package/dist/mcp-surface.d.ts.map +1 -1
- package/dist/node-support.d.ts.map +1 -1
- package/dist/node-support.js +10 -0
- package/dist/node-support.js.map +1 -1
- package/dist/release-surface/extract-surface.d.ts.map +1 -1
- package/dist/release-surface/extract-surface.js +38 -20
- package/dist/release-surface/extract-surface.js.map +1 -1
- package/dist/release-surface/generate.d.ts.map +1 -1
- package/dist/release-surface/generate.js +3 -0
- package/dist/release-surface/generate.js.map +1 -1
- package/dist/release-surface/surface-diff.d.ts +1 -0
- package/dist/release-surface/surface-diff.d.ts.map +1 -1
- package/dist/release-surface/surface-diff.js +19 -18
- package/dist/release-surface/surface-diff.js.map +1 -1
- package/dist/remote-host-ops.d.ts +3 -0
- package/dist/remote-host-ops.d.ts.map +1 -1
- package/dist/remote-host-ops.js +15 -1
- package/dist/remote-host-ops.js.map +1 -1
- package/dist/restore-packet/redaction.d.ts +4 -26
- package/dist/restore-packet/redaction.d.ts.map +1 -1
- package/dist/restore-packet/redaction.js +19 -63
- package/dist/restore-packet/redaction.js.map +1 -1
- package/dist/terminal-orca.d.ts +7 -0
- package/dist/terminal-orca.d.ts.map +1 -0
- package/dist/terminal-orca.js +239 -0
- package/dist/terminal-orca.js.map +1 -0
- package/package.json +3 -3
- package/scripts/check-abi.mjs +15 -0
- package/tui/dist/attention/attention-model.d.ts.map +1 -1
- package/tui/dist/attention/attention-model.js +8 -4
- package/tui/dist/attention/attention-model.js.map +1 -1
- package/tui/dist/connected-assistants.d.ts +1 -1
- package/tui/dist/connected-assistants.d.ts.map +1 -1
- package/tui/dist/connected-assistants.js +3 -1
- package/tui/dist/connected-assistants.js.map +1 -1
- package/tui/dist/crash-cart/start-daemon.d.ts +20 -0
- package/tui/dist/crash-cart/start-daemon.d.ts.map +1 -1
- package/tui/dist/crash-cart/start-daemon.js +56 -0
- package/tui/dist/crash-cart/start-daemon.js.map +1 -1
- package/tui/dist/daemon-client.d.ts +4 -0
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js +12 -8
- package/tui/dist/daemon-client.js.map +1 -1
- package/tui/dist/health/health-model.d.ts.map +1 -1
- package/tui/dist/health/health-model.js +2 -0
- package/tui/dist/health/health-model.js.map +1 -1
- package/tui/dist/hydrate.d.ts +3 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +44 -27
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/live.d.ts +5 -1
- package/tui/dist/live.d.ts.map +1 -1
- package/tui/dist/live.js +20 -2
- package/tui/dist/live.js.map +1 -1
- package/tui/dist/main.js +29 -10
- package/tui/dist/main.js.map +1 -1
- package/tui/dist/pulse/pulse-model.d.ts.map +1 -1
- package/tui/dist/pulse/pulse-model.js +3 -2
- package/tui/dist/pulse/pulse-model.js.map +1 -1
- package/tui/dist/render.d.ts +2 -0
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +47 -14
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/types.d.ts +10 -4
- package/tui/dist/types.d.ts.map +1 -1
- package/ui/dist/assets/index-Chh-NS8Z.css +32 -0
- package/ui/dist/assets/index-DG_7XFcL.js +628 -0
- package/ui/dist/index.html +2 -2
- package/ui/dist/assets/index-B-sMy02c.js +0 -623
- package/ui/dist/assets/index-DiN7RwWg.css +0 -32
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: working-with-an-openrig-team
|
|
3
|
+
description: >-
|
|
4
|
+
Use when you are a person's coding agent in an app such as Claude Code, Codex, Cursor or VS Code, connected through the
|
|
5
|
+
OpenRig MCP server, and the person wants their OpenRig team to do some work, wants to know how that work is going,
|
|
6
|
+
has a question from the team to answer, or wants to read what the team returned.
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Working with an OpenRig team from your app
|
|
10
|
+
|
|
11
|
+
The person runs a team of agents with OpenRig: each agent has its own terminal, and they keep working after this chat ends.
|
|
12
|
+
You aren't one of those terminals. You're the person's front door to the team: you hand it work, follow that work, bring
|
|
13
|
+
the team's questions to the person, and bring back what it produced. The MCP server's own instructions say how its tools
|
|
14
|
+
behave; this skill is the loop around them.
|
|
15
|
+
|
|
16
|
+
## Check the connection first
|
|
17
|
+
|
|
18
|
+
- Call `rig_whoami`. It names the seat this connection acts as. Every item you create is recorded as coming from that seat,
|
|
19
|
+
and the team's questions about your work come back to it.
|
|
20
|
+
- If it has no seat, you can still hand the team work. In Claude Code, OpenRig gives that work a return address of its
|
|
21
|
+
own (`returnRoute` in the result), and the team's questions about it come there as tasks (below). Elsewhere it goes as
|
|
22
|
+
the unknown sender `rig_whoami` names, with no return address. Either way, tell the person the `qitemId` and follow it
|
|
23
|
+
with `rig_queue_show`. Recording the person's answers and listing your own work need a seat: offer to set one (the last
|
|
24
|
+
section). In a shell, the `rig` command can act as that return address instead: put
|
|
25
|
+
`OPENRIG_SESSION_NAME=<address>` in front of each `rig` command you run for this work (`rig queue ...`,
|
|
26
|
+
`rig seat decide-permission ...`), so OpenRig records it as this chat's, not as someone outside a seat.
|
|
27
|
+
- Call `rig_team` with the rig's name: it shows the team's seats, what each is for, and its lead. Work goes to the lead
|
|
28
|
+
unless the person names a seat.
|
|
29
|
+
- If `lead` is null (its `leadNote` says why), and the team has exactly one seat, send work there. Otherwise, ask the person
|
|
30
|
+
which seat should take it.
|
|
31
|
+
|
|
32
|
+
## Hand the team work
|
|
33
|
+
|
|
34
|
+
- Use `rig_queue_create` with `destination` (the lead, or the seat the person chose) and `body`. Write the body for a
|
|
35
|
+
capable colleague: the goal, why it matters, what done looks like, and where to look. Add a one-line `summary`.
|
|
36
|
+
- With a seat, end the body with the reply route, because your seat has no terminal and `rig send` can't reach it:
|
|
37
|
+
|
|
38
|
+
> To ask me anything, create a queue item to `<your seat>` (`rig queue create --destination <your seat> ...`), then
|
|
39
|
+
> block this item on that new item's id (`rig queue block <this id> --on <question id>`), so my answer wakes you. I
|
|
40
|
+
> check it whenever the person talks to me. Don't ask in your own terminal: the person isn't there. A seat's
|
|
41
|
+
> permission prompt in this work is their question too: send me its own text and choices, the seat, what it was
|
|
42
|
+
> doing and any escalation's id, unless a question about that prompt is already open at my seat. Whoever sent the
|
|
43
|
+
> question passes on the answer, and no one else does. Capture that seat again first (a changed prompt needs a new
|
|
44
|
+
> answer), then `rig send <seat> "<key>" --dangerously-interact --reason 'task <question id>: <their answer>'` with
|
|
45
|
+
> the key the prompt shows for their choice (for Escape, `$'\e'` in place of `"<key>"`, never the word). Keep the
|
|
46
|
+
> reason in single quotes so the shell runs nothing in their words, and write each `'` in them as `'\''`. A no
|
|
47
|
+
> stays a no. If they gave no answer, or their words don't clearly
|
|
48
|
+
> pick one choice (a condition the action doesn't plainly meet, say), ask me again before sending anything, and
|
|
49
|
+
> never pick a "don't ask again" choice they didn't pick. Check the effect, and never send again while it's
|
|
50
|
+
> unknown. If you hand this item on or give this work to another seat, copy this paragraph into the new item. When
|
|
51
|
+
> you finish, put the outcome in this item's resolution, with what the latest review found, and any file in its
|
|
52
|
+
> evidence ref.
|
|
53
|
+
- With no seat but an address of its own (`returnRoute` in the result), end the body with the result route:
|
|
54
|
+
|
|
55
|
+
> When you finish, send the result as a task to this item's return route (`rig queue show <this id>` names it):
|
|
56
|
+
> `rig queue create --destination <that address> --summary "<the result in a line>" --body-file <file>`. Then
|
|
57
|
+
> close this item with the result. A close by itself doesn't reach the person's chat, and the task does. If you
|
|
58
|
+
> hand this item on or give this work to another seat, copy this paragraph into the new item.
|
|
59
|
+
- Tell the person the `qitemId` it returns. It's how both of you find this work again.
|
|
60
|
+
- If the call times out, check `rig_queue_show` with that same `qitemId` before trying again. If you retry, pass the same id
|
|
61
|
+
as `qitemId`. Never retry with a new one: that creates the work twice.
|
|
62
|
+
|
|
63
|
+
## Follow it
|
|
64
|
+
|
|
65
|
+
- `rig_queue_show` with the `qitemId` gives its state, its current owner and its transitions.
|
|
66
|
+
- When a seat hands the work on, the item names the next one. Follow the chain to the newest item before you report.
|
|
67
|
+
- Report what the record says. An accepted or claimed item isn't finished work, and a quiet one isn't stuck: say what you
|
|
68
|
+
saw and when it last changed.
|
|
69
|
+
- Before you say the work is done, find the newest review of it on the chain and tell the person its outcome. Work a
|
|
70
|
+
review sent back with something to fix isn't done, even if a commit exists: say what the review asked for.
|
|
71
|
+
- A close by itself wakes no one: the team's result reaches this chat as a task at its address, which the handover's
|
|
72
|
+
last paragraph asks for. Until that task comes, the record still has the result, so check `rig_queue_show` when the
|
|
73
|
+
person talks to you, and don't promise to report it by yourself.
|
|
74
|
+
- While its work is open, check each time the person talks to you, and when they come back. Where the app runs this
|
|
75
|
+
plugin's hooks (Claude Code and Codex do), they also bring you the team's questions (below); elsewhere, nothing wakes
|
|
76
|
+
this chat when the team asks or finishes.
|
|
77
|
+
|
|
78
|
+
## When a question arrives by itself
|
|
79
|
+
|
|
80
|
+
In Claude Code and Codex, this plugin's hooks bring the team's questions to you, and its result when it sends one as a
|
|
81
|
+
task, without anyone asking you to check.
|
|
82
|
+
|
|
83
|
+
- When this chat hands work over with an address of its own, OpenRig records that address with a key for this chat.
|
|
84
|
+
The hooks cover:
|
|
85
|
+
- `rig_queue_create` in Claude Code with no seat, where `returnRoute` `auto` is the default;
|
|
86
|
+
- `rig_queue_create` with `returnRoute` `auto` when this connection has a seat. Without it, the team's questions go
|
|
87
|
+
to the seat's own address, which the hooks don't watch: you find them only when you check (`rig_queue_list` with
|
|
88
|
+
`owned`);
|
|
89
|
+
- `rig queue create --return-route auto` in the shell, in Claude Code or Codex.
|
|
90
|
+
- Codex through this MCP server isn't covered yet: Codex may not give its MCP servers the session id the key comes
|
|
91
|
+
from, so a `rig_queue_create` there goes without one, and nothing comes here by itself. In Codex, hand work over with
|
|
92
|
+
`rig queue create --return-route auto` in the shell.
|
|
93
|
+
- A Codex whose `codex queue` has no `--resume` (Codex 0.171.0 has it) gets the tasks at this chat's next turn, not
|
|
94
|
+
while it's idle. The hooks say so once in the chat: tell the person in plain words.
|
|
95
|
+
- The hooks read only the addresses recorded under this chat's key, from OpenRig's own record, and check them for new
|
|
96
|
+
tasks. Claude Code wakes you with them when a turn ends. Codex gets them as a message queued for this chat.
|
|
97
|
+
- Each one says it came from OpenRig's hook bridge and names its sender as OpenRig recorded it. It's a task like any
|
|
98
|
+
other: show it to the person and record their words, as below.
|
|
99
|
+
- A wake comes only when your turn ends, so while the team works, end your turn rather than watching its seats
|
|
100
|
+
(`rig_capture`) or waiting inside the turn. Between wakes, list this chat's tasks yourself: `rig_queue_list` with
|
|
101
|
+
`destination` set to this chat's address. `owned` and `mine` need a seat, and `destination` doesn't.
|
|
102
|
+
- In Claude Code the key belongs to the app's process, not the chat: after `/clear`, the new chat still gets the
|
|
103
|
+
earlier one's tasks, and a chat resumed in a new process (`claude --resume`) doesn't get its earlier tasks by itself,
|
|
104
|
+
so check its address each turn.
|
|
105
|
+
- Codex asks the person to trust the hooks once, and again after the plugin changes, because they run outside its
|
|
106
|
+
sandbox. They run `node` and `rig`, only read from OpenRig, and type nothing into any terminal.
|
|
107
|
+
|
|
108
|
+
## The team's questions
|
|
109
|
+
|
|
110
|
+
- Questions about your work come to your seat: `rig_queue_list` with `owned` lists them.
|
|
111
|
+
- Show the person the question and the team's draft, in their own words where the item gives them. Then ask for an answer.
|
|
112
|
+
- Record only what the person actually tells you, on the question's own task, never with `rig_send`: a message carries
|
|
113
|
+
no return address, so the work it starts loses this chat's route, and its seats' prompts then reach no one. Claim
|
|
114
|
+
the item (`rig_queue_claim`), then close it with `rig_queue_update`: `state` `done`, `closureReason` `no-follow-on`,
|
|
115
|
+
and exactly what the person typed in `resolution`, nothing else: no label such as "The person's answer:", no
|
|
116
|
+
quotation marks, and no notes, paths or summaries of your own. With no seat, these tools act as the address OpenRig
|
|
117
|
+
issued this conversation, for a question sent there. In a shell, close it the same way, as its address:
|
|
118
|
+
`OPENRIG_SESSION_NAME=<address> rig queue update <id> --state done --closure-reason no-follow-on --resolution '<their words>'`.
|
|
119
|
+
If the person isn't there to answer, leave the item open and tell them it's waiting. Never choose an answer for them.
|
|
120
|
+
- A question can be a seat's permission prompt that the operator or a team seat sent you: show it with the seat, the
|
|
121
|
+
exact action and the choices it offers, and record the person's words the same way. The agent that sent it passes
|
|
122
|
+
their answer to the seat.
|
|
123
|
+
- A seat's own Claude Code prompt in work this chat handed over comes straight from that seat as its own ask
|
|
124
|
+
(`qitem-runner-permission-…`), within seconds, even when you saw the prompt first (in a capture, or an item that says
|
|
125
|
+
its owner needs input). Answer that ask, not the seat: show the person its exact action, then record their answer
|
|
126
|
+
with `rig_seat_decide_permission` (in a shell, `rig seat decide-permission`). A plain yes or no is the person's own
|
|
127
|
+
answer: pass it on exactly, with `relay` and their words in `personSaid`. It's recorded as relayed by this chat, and
|
|
128
|
+
unconfirmed, since OpenRig doesn't get it from them. For their words or a condition, judge
|
|
129
|
+
whether that exact action meets them, and give your `reason`. Before you decide one under a standing instruction
|
|
130
|
+
of theirs ("don't ask me about test runs"), read what the command touches, such as the files a test writes, and
|
|
131
|
+
check it against what they asked to be asked about: if it's on that list, ask them. It takes their answer for as
|
|
132
|
+
long as the prompt stays open; once it's answered in the seat's terminal, an answer here is too late. Don't type into the seat for it
|
|
133
|
+
(`rig send --dangerously-interact`): that answers it in the terminal, ends the ask, and needs the person's exception
|
|
134
|
+
for a terminal command. If the reply says it hasn't reached the seat's prompt, the seat's hook stopped reading the ask:
|
|
135
|
+
tell the person, and that prompt waits in the seat's terminal like one with no ask. Only a prompt with no ask (a choice menu, a Codex seat's prompt, a seat on
|
|
136
|
+
another machine) is answered in the seat, by whoever sent you the question about it.
|
|
137
|
+
- Some questions go to a registered person directly, outside your seat. Those wait for them where they already answer
|
|
138
|
+
the team, such as the OpenRig TUI or Slack. You can mention that they're waiting; answering them isn't yours.
|
|
139
|
+
|
|
140
|
+
## Read the result
|
|
141
|
+
|
|
142
|
+
- When the item is `done`, its `resolution` is the answer, and its transitions hold the notes the team recorded.
|
|
143
|
+
- If it names an `evidenceRef`, read it with `rig_artifact_read`, passing the item's `qitemId`, not the path. The tool
|
|
144
|
+
reads the item's `evidenceRef` within the shared roots this connection may read. For another file in a shared root,
|
|
145
|
+
pass the root's name and `path`. If the connection can't read it, give the person the path.
|
|
146
|
+
- To ask for changes, create a new item with `revises` set to the earlier `qitemId`, so the revision stays with the
|
|
147
|
+
original work.
|
|
148
|
+
|
|
149
|
+
## Come back later
|
|
150
|
+
|
|
151
|
+
- `rig_queue_list` with `mine` lists what this seat sent or owns. Add `all` to include finished work, or `since` to see
|
|
152
|
+
what changed after a time.
|
|
153
|
+
- A new chat with the same seat reaches the same work. Items outlive conversations.
|
|
154
|
+
|
|
155
|
+
## Set it up (once, with the person)
|
|
156
|
+
|
|
157
|
+
1. OpenRig runs on this machine with a team: `rig ps` lists the person's rigs.
|
|
158
|
+
2. Pick an address for this app on one of those rigs, for example `cursor@my-team`. It's an address the queue takes items
|
|
159
|
+
for; nothing is launched for it. To tell the team what it's for, the person can add it to a roster as a hosted member
|
|
160
|
+
(`docs/reference/hosted-members.md` in the OpenRig package).
|
|
161
|
+
3. Connect the app to that address, then start a new session so the MCP server starts with it:
|
|
162
|
+
- **Claude Code:** set it as the plugin's OpenRig seat in the plugin's settings.
|
|
163
|
+
- **Codex:** run `codex mcp add openrig --env OPENRIG_SESSION_NAME=<address> -- rig mcp serve --front-door`. Codex
|
|
164
|
+
does not forward every shell environment variable to MCP servers by default, so if the team's OpenRig home isn't the
|
|
165
|
+
default, add `--env OPENRIG_HOME=<that home>` too.
|
|
166
|
+
- **Another app:** add an MCP server that runs `rig mcp serve --front-door` with `OPENRIG_SESSION_NAME` set to the
|
|
167
|
+
address, and turn the plugin's `openrig` server off, so the app runs one. In VS Code, give yours another name, such
|
|
168
|
+
as `openrig-seat`; in Cursor, disable **openrig · Plugin**. Starting the app from a shell with the variable set lasts
|
|
169
|
+
only for that launch.
|
|
170
|
+
|
|
171
|
+
## What this doesn't do
|
|
172
|
+
|
|
173
|
+
- It doesn't add a panel to the app. Where its hooks don't run, nothing wakes this chat when the team asks or finishes.
|
|
174
|
+
- Anyone using this app on this machine acts as the seat the plugin names.
|
|
175
|
+
- It reaches a team on this machine. A team hosted elsewhere needs that host's own connection.
|
|
@@ -7,10 +7,18 @@ Canonical OpenRig skills and hooks for cross-runtime agent topology coordination
|
|
|
7
7
|
**Skills (19):** canonical OpenRig operating knowledge, including the public `refocusing` skill and
|
|
8
8
|
its path-only topology/work trace.
|
|
9
9
|
|
|
10
|
-
**Hooks:** activity tracking, compaction continuity,
|
|
11
|
-
post-compaction on both runtimes, threshold-triggered on Claude, on-demand on both, configurable
|
|
10
|
+
**Hooks:** activity tracking, compaction continuity, the default-on refocus channel, and on Claude the permission
|
|
11
|
+
answer. Refocus is post-compaction on both runtimes, threshold-triggered on Claude, on-demand on both, configurable
|
|
12
12
|
off, and never runs at fresh session start.
|
|
13
13
|
|
|
14
|
+
**The permission answer (Claude Code):** when a seat's Claude asks permission for a tool call, `permission-answer.cjs`
|
|
15
|
+
(its own synchronous `PermissionRequest` hook, beside the passive relay) asks the seat's person through OpenRig, with the
|
|
16
|
+
exact action, and waits as long as the prompt is open, up to 24 hours. Claude Code's own prompt stays open in the terminal
|
|
17
|
+
meanwhile, and whichever answer comes first counts. The hook returns only Allow once, or Deny with the person's words.
|
|
18
|
+
With no one to ask, no answer in time, or any failure, it returns no decision and the prompt carries on as before. It never remembers a rule, never
|
|
19
|
+
changes the request, and never blocks a tool call on its own failure. Who's asked, and what an answer means, is in
|
|
20
|
+
`docs/reference/harness-runner-contract.md` ("A seat's own Claude Code prompt").
|
|
21
|
+
|
|
14
22
|
## Runtimes
|
|
15
23
|
|
|
16
24
|
This plugin ships dual-manifest packaging — both `.claude-plugin/` and `.codex-plugin/`.
|
|
@@ -90,6 +90,15 @@
|
|
|
90
90
|
"timeout": 5
|
|
91
91
|
}
|
|
92
92
|
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"hooks": [
|
|
96
|
+
{
|
|
97
|
+
"type": "command",
|
|
98
|
+
"command": "exec \"${OPENRIG_NODE:-node}\" \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/permission-answer.cjs\"",
|
|
99
|
+
"timeout": 86430
|
|
100
|
+
}
|
|
101
|
+
]
|
|
93
102
|
}
|
|
94
103
|
],
|
|
95
104
|
"Elicitation": [
|
|
@@ -64,6 +64,17 @@ function conversationFields(providerPayload, env) {
|
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
// #3513: the Remote Control session Claude Code is connected to, which it sets in its hook subprocesses as
|
|
68
|
+
// CLAUDE_CODE_BRIDGE_SESSION_ID while Remote Control is connected (documented from v2.1.199). A well-formed id is
|
|
69
|
+
// reported as is; an unset or empty variable as null (the daemon counts that as a disconnect only for a conversation
|
|
70
|
+
// that earlier reported a session); a malformed value is left out, as no claim. Claude seats only.
|
|
71
|
+
function remoteControlFields(runtime, env) {
|
|
72
|
+
if (runtime !== "claude-code") return {};
|
|
73
|
+
const value = firstString(env.CLAUDE_CODE_BRIDGE_SESSION_ID);
|
|
74
|
+
if (value === null) return { remoteControlSessionId: null };
|
|
75
|
+
return /^session_[A-Za-z0-9]{1,128}$/.test(value) ? { remoteControlSessionId: value } : {};
|
|
76
|
+
}
|
|
77
|
+
|
|
67
78
|
// The prompt the harness received at UserPromptSubmit, as a fingerprint and byte length, with Claude's own prompt id
|
|
68
79
|
// when it sends one: enough for the daemon to match it to a message OpenRig wrote, without the prompt leaving this
|
|
69
80
|
// process. Any other event, or a prompt that isn't a string, adds nothing.
|
|
@@ -78,6 +89,41 @@ function promptBoundaryFields(hookEvent, providerPayload) {
|
|
|
78
89
|
};
|
|
79
90
|
}
|
|
80
91
|
|
|
92
|
+
/** JSON with every object's keys sorted, so the same value reads the same however a harness ordered its keys. */
|
|
93
|
+
function canonicalJson(value) {
|
|
94
|
+
if (Array.isArray(value)) return `[${value.map(canonicalJson).join(",")}]`;
|
|
95
|
+
if (value && typeof value === "object") {
|
|
96
|
+
return `{${Object.keys(value).sort().map((key) => `${JSON.stringify(key)}:${canonicalJson(value[key])}`).join(",")}}`;
|
|
97
|
+
}
|
|
98
|
+
return JSON.stringify(value === undefined ? null : value);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/** One Claude tool call's fingerprint: its conversation, its actor (the main session or a subagent), its tool and its exact
|
|
102
|
+
* input, hashed. Claude's PermissionRequest carries no tool-call id, so this is how a permission ask and the tool call that
|
|
103
|
+
* later completes are matched: by content, within one conversation. The permission-answer hook computes the same value for
|
|
104
|
+
* its ask. Only the hash leaves this process. */
|
|
105
|
+
function claudeToolCallFingerprint(sessionId, agentId, toolName, toolInput) {
|
|
106
|
+
if (typeof sessionId !== "string" || !sessionId || typeof toolName !== "string" || !toolName) return null;
|
|
107
|
+
const key = `${sessionId}\0${typeof agentId === "string" && agentId ? agentId : "main"}\0${toolName}\0${canonicalJson(toolInput)}`;
|
|
108
|
+
return crypto.createHash("sha256").update(key, "utf8").digest("hex").slice(0, 32);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// A Claude PostToolBatch: the fingerprint of each tool call in the batch (at most 64), so the daemon can tell a waiting
|
|
112
|
+
// permission ask that its tool call completed (answered in the seat's terminal). No tool input or result leaves the relay.
|
|
113
|
+
function toolCallFingerprintFields(runtime, hookEvent, providerPayload) {
|
|
114
|
+
if (runtime !== "claude-code" || hookEvent !== "PostToolBatch" || !Array.isArray(providerPayload.tool_calls)) return {};
|
|
115
|
+
try {
|
|
116
|
+
const sessionId = firstString(providerPayload.session_id);
|
|
117
|
+
const agentId = firstString(providerPayload.agent_id);
|
|
118
|
+
const fingerprints = providerPayload.tool_calls.slice(0, 64)
|
|
119
|
+
.map((call) => call && typeof call === "object" ? claudeToolCallFingerprint(sessionId, agentId, call.tool_name, call.tool_input) : null)
|
|
120
|
+
.filter(Boolean);
|
|
121
|
+
return fingerprints.length ? { toolCallFingerprints: fingerprints } : {};
|
|
122
|
+
} catch {
|
|
123
|
+
return {};
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
81
127
|
// The route this run reports by, so the daemon can count one event once per route: "plugin" for the plugin's hook
|
|
82
128
|
// (started with --from-plugin), "managed" for the settings or managed hook copy.
|
|
83
129
|
function buildOpenRigPayload(providerPayload, env = process.env, now = () => new Date(), argv = process.argv) {
|
|
@@ -152,10 +198,12 @@ function buildOpenRigPayload(providerPayload, env = process.env, now = () => new
|
|
|
152
198
|
? { hookAgentId: firstString(providerPayload.agent_id) } : {}),
|
|
153
199
|
turnId: firstString(providerPayload.turn_id, providerPayload.turnId),
|
|
154
200
|
...promptBoundaryFields(hookEvent, providerPayload),
|
|
201
|
+
...toolCallFingerprintFields(runtime, hookEvent, providerPayload),
|
|
155
202
|
occurredAt: now().toISOString(),
|
|
156
203
|
relayRoute: argv.includes("--from-plugin") ? "plugin" : "managed",
|
|
157
204
|
...limitResetField(runtime, hookEvent, subtype, providerPayload, now),
|
|
158
205
|
...conversationFields(providerPayload, env),
|
|
206
|
+
...remoteControlFields(runtime, env),
|
|
159
207
|
};
|
|
160
208
|
}
|
|
161
209
|
|
|
@@ -409,6 +457,7 @@ function buildSessionIdentityPayload(providerPayload, env = process.env, now = (
|
|
|
409
457
|
...(transcriptPathPresent ? { transcriptPath: providerPayload.transcript_path } : {}),
|
|
410
458
|
claudeHook: firstString(env.CLAUDE_PROJECT_DIR) !== null,
|
|
411
459
|
occurredAt: now().toISOString(),
|
|
460
|
+
...remoteControlFields(runtime, env),
|
|
412
461
|
};
|
|
413
462
|
}
|
|
414
463
|
|
|
@@ -546,6 +595,7 @@ if (require.main === module) {
|
|
|
546
595
|
module.exports = {
|
|
547
596
|
buildOpenRigPayload,
|
|
548
597
|
claudeLimitResetAt,
|
|
598
|
+
claudeToolCallFingerprint,
|
|
549
599
|
claimFirstLaunchHook,
|
|
550
600
|
buildSessionIdentityPayload,
|
|
551
601
|
parseJson,
|
|
@@ -186,7 +186,9 @@ function writeMarker(marker) {
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
function buildRestoreContext(marker) {
|
|
189
|
-
|
|
189
|
+
// A marker names its packet. One that doesn't points at the explicit or launch-granted packet folder, else the home's.
|
|
190
|
+
const outputDir = firstString(marker.data.outputDir) || firstString(process.env.OPENRIG_COMPACTION_OUT_ROOT)
|
|
191
|
+
|| firstString(process.env.OPENRIG_COMPACTION_PACKET_ROOT) || path.join(openrigHome(), "run", "compaction-restore");
|
|
190
192
|
const ack = firstString(marker.data.expectedAck) || "restored from packet at <path>; resumed at step <X>";
|
|
191
193
|
const postInstruction = firstString(marker.data.postCompactInstruction);
|
|
192
194
|
const restoreMapPath = firstString(marker.data.restoreMapPath);
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
// OpenRig's permission-answer hook: Claude Code's PermissionRequest, in a seat (slice 15, the native permission answer).
|
|
5
|
+
//
|
|
6
|
+
// When the seat's Claude asks permission for a tool call, this hook submits the exact request to the seat's OpenRig daemon
|
|
7
|
+
// (the permission-request route of the harness runner contract, as a native ask) and waits, for a bounded window, for the
|
|
8
|
+
// answer of whoever OpenRig asks: the person chosen for the seat, the person's own conversation that handed the seat its
|
|
9
|
+
// work (its return route), or the default person. Meanwhile Claude Code's own dialog stays open in the seat's terminal,
|
|
10
|
+
// and whichever answer comes first counts (Claude Code 2.1.330, checked on a lane: the dialog is drawn and answerable while
|
|
11
|
+
// this hook waits).
|
|
12
|
+
//
|
|
13
|
+
// What it returns to Claude Code:
|
|
14
|
+
// - Allow once, or Deny with a message carrying the person's words (or the deciding agent's judgment, said as such).
|
|
15
|
+
// - Nothing at all in every other case: no one to ask, no answer in the window, the ask withdrawn or stale, a daemon it
|
|
16
|
+
// can't reach, or any error. With no decision object Claude Code's own prompt simply carries on. It never blocks a tool
|
|
17
|
+
// call on its own failure (no onFailure "block"), never remembers a rule (no updatedPermissions) and never changes the
|
|
18
|
+
// request (no updatedInput).
|
|
19
|
+
// When it stops waiting without an answer it withdraws the ask, so a later answer reads as too late. Claude Code ends this
|
|
20
|
+
// hook (SIGTERM) when the prompt is answered No or cancelled in the terminal; a Yes there leaves it running, and the
|
|
21
|
+
// tool call's completion (the activity relay's PostToolBatch fingerprints) settles the ask instead. A Claude Code that's
|
|
22
|
+
// gone ends it too.
|
|
23
|
+
|
|
24
|
+
const crypto = require("node:crypto");
|
|
25
|
+
const fs = require("node:fs");
|
|
26
|
+
const os = require("node:os");
|
|
27
|
+
const path = require("node:path");
|
|
28
|
+
const relay = require("./activity-relay.cjs");
|
|
29
|
+
|
|
30
|
+
/** How long an answer through OpenRig is taken: a day. The dialog stays open in the terminal meanwhile, so this costs the
|
|
31
|
+
* person at the pane nothing, and this hook ends sooner whenever the prompt does (a terminal No or Esc ends it, a terminal
|
|
32
|
+
* Yes settles its ask, and a Claude Code that's gone stops it). So a person's answer to a prompt that's still open is
|
|
33
|
+
* carried, however long their reply took through their own conversation, rather than refused as too late. Keep it below
|
|
34
|
+
* this hook's timeout in hooks/claude.json; Claude Code 2.1.330 caps a hook's timeout only at 2^31-1 ms (about 24 days). */
|
|
35
|
+
const WINDOW_SECONDS = 86400;
|
|
36
|
+
/** How often the hook checks that the Claude Code that started it is still there. */
|
|
37
|
+
const PARENT_CHECK_MS = 2000;
|
|
38
|
+
const NATIVE_HOOK = "claude-code";
|
|
39
|
+
const OPTIONS = [
|
|
40
|
+
{ optionId: "allow", name: "Allow once", kind: "allow_once" },
|
|
41
|
+
{ optionId: "deny", name: "Deny", kind: "reject_once" },
|
|
42
|
+
];
|
|
43
|
+
/** Tools whose prompt a plain allow doesn't answer (they need the person's own input): left to the terminal. */
|
|
44
|
+
const TERMINAL_ONLY_TOOLS = new Set(["AskUserQuestion", "ExitPlanMode"]);
|
|
45
|
+
const SUBMIT_TIMEOUT_MS = 5000;
|
|
46
|
+
const READ_WAIT_SECONDS = 25;
|
|
47
|
+
const MARK_TIMEOUT_MS = 2000;
|
|
48
|
+
const RETRY_MS = 2000;
|
|
49
|
+
/** The most of a tool's input sent to the daemon whole; a larger one is sent cut, and the ask says so. */
|
|
50
|
+
const MAX_INPUT_JSON = 65536;
|
|
51
|
+
const ACTOR = /^[A-Za-z0-9_-]{1,128}$/;
|
|
52
|
+
|
|
53
|
+
function firstString(...values) {
|
|
54
|
+
for (const value of values) if (typeof value === "string" && value.trim().length > 0) return value.trim();
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async function readStdin() {
|
|
59
|
+
return new Promise((resolve) => {
|
|
60
|
+
let data = "";
|
|
61
|
+
process.stdin.setEncoding("utf8");
|
|
62
|
+
process.stdin.on("data", (chunk) => { data += chunk; });
|
|
63
|
+
process.stdin.on("end", () => resolve(data));
|
|
64
|
+
process.stdin.on("error", () => resolve(""));
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function parseJson(value) {
|
|
69
|
+
try {
|
|
70
|
+
const parsed = JSON.parse(value || "{}");
|
|
71
|
+
return parsed && typeof parsed === "object" && !Array.isArray(parsed) ? parsed : {};
|
|
72
|
+
} catch {
|
|
73
|
+
return {};
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/** The OpenRig Claude Code seat this hook runs in, from the environment OpenRig launches it with; null elsewhere. */
|
|
78
|
+
function seatOf(env) {
|
|
79
|
+
const sessionName = firstString(env.OPENRIG_SESSION_NAME, env.RIGGED_SESSION_NAME);
|
|
80
|
+
const nodeId = firstString(env.OPENRIG_NODE_ID, env.RIGGED_NODE_ID);
|
|
81
|
+
const runtime = firstString(env.OPENRIG_RUNTIME, env.RIGGED_RUNTIME);
|
|
82
|
+
const generation = firstString(env.OPENRIG_OCCUPANT_GENERATION, env.RIGGED_OCCUPANT_GENERATION);
|
|
83
|
+
if (runtime !== "claude-code" || !sessionName || !nodeId || !generation) return null;
|
|
84
|
+
return { sessionName, nodeId, generation };
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** One call to the daemon with node:http (as the activity relay posts): `{ status, data }`, or null when there's no answer
|
|
88
|
+
* in time or it can't be read. Never throws. */
|
|
89
|
+
function daemonCall(endpoint, method, route, body, timeoutMs) {
|
|
90
|
+
return new Promise((resolve) => {
|
|
91
|
+
let request = null;
|
|
92
|
+
let settled = false;
|
|
93
|
+
const done = (value) => { if (!settled) { settled = true; clearTimeout(timer); resolve(value); } };
|
|
94
|
+
const timer = setTimeout(() => { if (request) request.destroy(); done(null); }, timeoutMs);
|
|
95
|
+
try {
|
|
96
|
+
const url = new URL(route, endpoint.baseUrl);
|
|
97
|
+
const client = url.protocol === "http:" ? require("node:http") : url.protocol === "https:" ? require("node:https") : null;
|
|
98
|
+
if (!client) return done(null);
|
|
99
|
+
const payload = body === null ? null : Buffer.from(JSON.stringify(body), "utf8");
|
|
100
|
+
request = client.request(url, {
|
|
101
|
+
method, agent: false,
|
|
102
|
+
headers: { authorization: `Bearer ${endpoint.token}`,
|
|
103
|
+
...(payload ? { "content-type": "application/json", "content-length": payload.length } : {}) },
|
|
104
|
+
}, (response) => {
|
|
105
|
+
let text = "";
|
|
106
|
+
response.setEncoding("utf8");
|
|
107
|
+
response.on("data", (chunk) => { text += chunk; if (text.length > 1_000_000) request.destroy(); });
|
|
108
|
+
response.on("end", () => {
|
|
109
|
+
let data = null;
|
|
110
|
+
try { data = JSON.parse(text); } catch { data = null; }
|
|
111
|
+
done({ status: response.statusCode ?? 0, data });
|
|
112
|
+
});
|
|
113
|
+
response.on("error", () => done(null));
|
|
114
|
+
});
|
|
115
|
+
request.on("error", () => done(null));
|
|
116
|
+
request.end(payload ?? undefined);
|
|
117
|
+
} catch {
|
|
118
|
+
done(null);
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
124
|
+
const askPath = (askId, tail = "") => `/api/activity/permission-requests/${encodeURIComponent(askId)}${tail}`;
|
|
125
|
+
|
|
126
|
+
/** The answer a read carries, as Claude Code's decision: allow, or deny with the words for its agent; null for anything else. */
|
|
127
|
+
function decisionFrom(data) {
|
|
128
|
+
if (!data || data.ok !== true) return null;
|
|
129
|
+
if (data.state === "answered" && data.optionId === "allow") return { optionId: "allow", decision: { behavior: "allow" } };
|
|
130
|
+
if ((data.state === "answered" && data.optionId === "deny") || (data.state === "refused" && data.reason === "said_no")) {
|
|
131
|
+
const message = firstString(data.native && data.native.message) || "Denied through OpenRig.";
|
|
132
|
+
return { optionId: "deny", decision: { behavior: "deny", message } };
|
|
133
|
+
}
|
|
134
|
+
return null;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/** Submit this prompt, wait within the window, and return `{ output, outcome }`: output is the hook's stdout object, or null
|
|
138
|
+
* for no decision (Claude Code's own prompt carries on). `state.askId` names the open ask while it waits, for the signal
|
|
139
|
+
* handler's withdrawal. */
|
|
140
|
+
async function answerPermission({ input, env = process.env, call, windowMs = WINDOW_SECONDS * 1000, now = Date.now, wait = sleep, state = {} }) {
|
|
141
|
+
const none = (outcome) => ({ output: null, outcome });
|
|
142
|
+
if (input.hook_event_name !== "PermissionRequest") return none("not a permission request");
|
|
143
|
+
const seat = seatOf(env);
|
|
144
|
+
if (!seat) return none("not an OpenRig Claude Code seat");
|
|
145
|
+
const tool = firstString(input.tool_name);
|
|
146
|
+
const sessionId = firstString(input.session_id);
|
|
147
|
+
if (!tool || !sessionId) return none("no tool or conversation named");
|
|
148
|
+
if (TERMINAL_ONLY_TOOLS.has(tool)) return none(`${tool} is answered in the terminal`);
|
|
149
|
+
const agent = typeof input.agent_id === "string" && ACTOR.test(input.agent_id) ? input.agent_id : null;
|
|
150
|
+
const toolInput = input.tool_input === undefined ? {} : input.tool_input;
|
|
151
|
+
let inputJson = "{}";
|
|
152
|
+
try { inputJson = JSON.stringify(toolInput) ?? "{}"; } catch { inputJson = "{}"; }
|
|
153
|
+
const callFingerprint = relay.claudeToolCallFingerprint(sessionId, agent, tool, toolInput);
|
|
154
|
+
const invocation = crypto.randomUUID();
|
|
155
|
+
const windowSeconds = Math.max(1, Math.round(windowMs / 1000));
|
|
156
|
+
const submitted = await call("POST", "/api/activity/permission-requests", {
|
|
157
|
+
sessionName: seat.sessionName, nodeId: seat.nodeId, generation: seat.generation, runtime: "claude-code",
|
|
158
|
+
nativeHook: NATIVE_HOOK, nativeRef: sessionId, turnId: invocation, requestId: invocation, holdSeconds: windowSeconds,
|
|
159
|
+
action: { tool, agent, ...(callFingerprint ? { callFingerprint } : {}),
|
|
160
|
+
...(inputJson.length <= MAX_INPUT_JSON ? { input: toolInput } : { inputText: inputJson.slice(0, MAX_INPUT_JSON), inputCut: true }) },
|
|
161
|
+
toolCall: { title: tool, kind: tool },
|
|
162
|
+
options: OPTIONS, occurredAt: new Date(now()).toISOString(),
|
|
163
|
+
}, SUBMIT_TIMEOUT_MS);
|
|
164
|
+
if (!submitted) return none("the daemon didn't answer the submit");
|
|
165
|
+
if (submitted.status !== 200 || !submitted.data || submitted.data.ok !== true) {
|
|
166
|
+
return none(`the submit was refused (${submitted.status}${submitted.data && submitted.data.code ? ` ${submitted.data.code}` : ""})`);
|
|
167
|
+
}
|
|
168
|
+
if (submitted.data.state === "not_asked") return none(`not asked: ${submitted.data.reason ?? "no one to ask"}`);
|
|
169
|
+
if (submitted.data.state || typeof submitted.data.askId !== "string") return none(`no ask opened (${submitted.data.state ?? "no ask id"})`);
|
|
170
|
+
const askId = submitted.data.askId;
|
|
171
|
+
state.askId = askId;
|
|
172
|
+
const take = async (found, how) => {
|
|
173
|
+
state.askId = null;
|
|
174
|
+
// The hook has the answer: recorded before it's returned, never as the harness having applied it.
|
|
175
|
+
await call("POST", askPath(askId, "/taken"), { optionId: found.optionId }, MARK_TIMEOUT_MS);
|
|
176
|
+
return { output: { hookSpecificOutput: { hookEventName: "PermissionRequest", decision: found.decision } },
|
|
177
|
+
outcome: `${found.optionId} ${how} (${askId}, asked of ${submitted.data.askedOf ?? "someone"})` };
|
|
178
|
+
};
|
|
179
|
+
const deadline = now() + windowMs;
|
|
180
|
+
while (now() < deadline) {
|
|
181
|
+
const waitSeconds = Math.min(READ_WAIT_SECONDS, Math.floor((deadline - now()) / 1000));
|
|
182
|
+
if (waitSeconds < 1) break;
|
|
183
|
+
const read = await call("GET", askPath(askId, `?waitSeconds=${waitSeconds}`), null, (waitSeconds + 10) * 1000);
|
|
184
|
+
// No answer from the daemon (it may be restarting): the prompt is open in the terminal meanwhile; read again.
|
|
185
|
+
if (!read || read.status >= 500) { await wait(Math.min(RETRY_MS, Math.max(0, deadline - now()))); continue; }
|
|
186
|
+
if (read.status !== 200 || !read.data || read.data.ok !== true) {
|
|
187
|
+
state.askId = null;
|
|
188
|
+
return none(`the read was refused (${read.status}${read.data && read.data.code ? ` ${read.data.code}` : ""})`);
|
|
189
|
+
}
|
|
190
|
+
const found = decisionFrom(read.data);
|
|
191
|
+
if (found) return take(found, "answered");
|
|
192
|
+
if (read.data.state !== "pending") { state.askId = null; return none(`ask ${read.data.state}${read.data.native && read.data.native.why ? ` (${read.data.native.why})` : ""}: ${askId}`); }
|
|
193
|
+
}
|
|
194
|
+
// The window ended: withdraw, so a later answer is too late. One that landed at the very end still counts.
|
|
195
|
+
const withdrawn = await call("POST", askPath(askId, "/withdraw"), { reason: "answer_window_ended" }, MARK_TIMEOUT_MS);
|
|
196
|
+
state.askId = null;
|
|
197
|
+
const late = withdrawn && withdrawn.status === 200 ? decisionFrom(withdrawn.data) : null;
|
|
198
|
+
if (late) return take(late, "answered at the window's end");
|
|
199
|
+
return none(`no answer in ${windowSeconds} s: withdrawn (${askId})`);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/** One line per prompt, for whoever checks what the hook did (no tool input, no credentials). */
|
|
203
|
+
function logLine(line, env = process.env) {
|
|
204
|
+
try {
|
|
205
|
+
const dir = path.join(os.tmpdir(), `openrig-permission-answer-${typeof process.getuid === "function" ? process.getuid() : "user"}`);
|
|
206
|
+
fs.mkdirSync(dir, { recursive: true, mode: 0o700 });
|
|
207
|
+
const file = path.join(dir, "permission-answer.log");
|
|
208
|
+
try { if (fs.statSync(file).size > 512 * 1024) fs.renameSync(file, `${file}.1`); } catch { /* no log yet */ }
|
|
209
|
+
const seat = firstString(env.OPENRIG_SESSION_NAME, env.RIGGED_SESSION_NAME) || "-";
|
|
210
|
+
fs.appendFileSync(file, `${new Date().toISOString()} ${seat} pid=${process.pid} ${line.replace(/[\r\n]+/g, " ")}\n`);
|
|
211
|
+
} catch { /* best effort */ }
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// --- seat project boundary: keep this block identical in every script that has it ---
|
|
215
|
+
// A Claude started from inside a seat (its shell, its Bash tool) inherits the seat's environment, so it loads this plugin
|
|
216
|
+
// and its hooks would act as the seat. OpenRig tells the plugin the seat's launch project in OPENRIG_SEAT_PROJECT_DIR;
|
|
217
|
+
// Claude's own CLAUDE_PROJECT_DIR is fixed for the life of a Claude and names the project it was started in (unlike the
|
|
218
|
+
// hook payload's cwd, which follows a `cd`). The seat's effects run only when the two name the same folder. Spellings of
|
|
219
|
+
// one folder (a symlink, a trailing slash, letter case on a case-insensitive disk) count as the same, and a missing
|
|
220
|
+
// variable (an older or manual launch, a runtime without CLAUDE_PROJECT_DIR) leaves the hook doing what it always did.
|
|
221
|
+
function runsForThisSeatsProject(env = process.env) {
|
|
222
|
+
const launch = env.OPENRIG_SEAT_PROJECT_DIR;
|
|
223
|
+
const project = env.CLAUDE_PROJECT_DIR;
|
|
224
|
+
if (!launch || !project) return true;
|
|
225
|
+
const canonical = (dir) => {
|
|
226
|
+
const absolute = path.resolve(dir);
|
|
227
|
+
// .native gives the case the disk has (plain realpathSync keeps the case the path was typed in), which is what Claude's
|
|
228
|
+
// CLAUDE_PROJECT_DIR carries on a case-insensitive filesystem such as macOS's default.
|
|
229
|
+
try { return fs.realpathSync.native(absolute); } catch { return absolute; }
|
|
230
|
+
};
|
|
231
|
+
return canonical(launch) === canonical(project);
|
|
232
|
+
}
|
|
233
|
+
// --- end seat project boundary ---
|
|
234
|
+
|
|
235
|
+
async function main() {
|
|
236
|
+
// Before anything is read or posted: a Claude started elsewhere inside this seat is not the seat.
|
|
237
|
+
if (!runsForThisSeatsProject()) { logLine("not this seat's project: nothing asked"); return; }
|
|
238
|
+
const input = parseJson(await readStdin());
|
|
239
|
+
const endpoint = relay.resolveEndpoint(process.env);
|
|
240
|
+
if (!endpoint.baseUrl || !endpoint.token) { logLine("no OpenRig daemon endpoint or token: nothing asked"); return; }
|
|
241
|
+
const call = (method, route, body, timeoutMs) => daemonCall(endpoint, method, route, body, timeoutMs);
|
|
242
|
+
const state = { askId: null, ended: false };
|
|
243
|
+
// Claude Code ends this hook when the prompt is answered No or cancelled in the terminal: withdraw the ask, so an answer
|
|
244
|
+
// given elsewhere afterwards reads as too late, then exit with no decision.
|
|
245
|
+
const onSignal = (signal) => {
|
|
246
|
+
if (state.ended) return;
|
|
247
|
+
state.ended = true;
|
|
248
|
+
const askId = state.askId;
|
|
249
|
+
if (!askId) process.exit(0);
|
|
250
|
+
call("POST", askPath(askId, "/withdraw"), { reason: "answered_in_terminal" }, 1500)
|
|
251
|
+
.then((result) => logLine(`${signal}: withdrawn as answered in the terminal (${askId}, ${result ? result.status : "no answer"})`))
|
|
252
|
+
.finally(() => process.exit(0));
|
|
253
|
+
};
|
|
254
|
+
for (const signal of ["SIGTERM", "SIGINT", "SIGHUP"]) process.on(signal, onSignal);
|
|
255
|
+
// A Claude Code that's gone without ending this hook (killed, say) leaves it waiting for a prompt no one has: stop the same
|
|
256
|
+
// way, so its ask doesn't stay open for the rest of the window.
|
|
257
|
+
const parent = process.ppid;
|
|
258
|
+
setInterval(() => { if (process.ppid !== parent) onSignal("its Claude Code is gone"); }, PARENT_CHECK_MS).unref();
|
|
259
|
+
const result = await answerPermission({ input, call, state });
|
|
260
|
+
if (state.ended) return;
|
|
261
|
+
state.ended = true;
|
|
262
|
+
logLine(result.outcome);
|
|
263
|
+
if (result.output) process.stdout.write(JSON.stringify(result.output));
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
if (require.main === module) {
|
|
267
|
+
main().catch(() => {});
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
module.exports = { answerPermission, decisionFrom, seatOf, daemonCall, WINDOW_SECONDS, OPTIONS };
|