@openrig/cli 0.7.11 → 0.7.13
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 +9 -6
- package/daemon/assets/guidance/openrig-context-entry.md +8 -0
- package/daemon/assets/herdr-app/mods/rig-cell-header/main.js +15 -0
- package/daemon/assets/herdr-app/mods/rig-cell-header/mod.json +1 -0
- package/daemon/assets/herdr-app/mods/rig-ended/main.js +14 -0
- package/daemon/assets/herdr-app/mods/rig-ended/mod.json +1 -0
- package/daemon/assets/herdr-app/mods/rig-pad/main.js +10 -0
- package/daemon/assets/herdr-app/mods/rig-pad/mod.json +1 -0
- package/daemon/assets/herdr-app/mods/rig-strip/main.js +153 -0
- package/daemon/assets/herdr-app/mods/rig-strip/mod.json +1 -0
- package/daemon/assets/plugins/openrig/.claude-plugin/icon.png +0 -0
- package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +2 -2
- package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +4 -2
- package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/plugin.json +2 -2
- package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +2 -2
- package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +5 -3
- package/daemon/assets/plugins/openrig-core/README.md +6 -0
- package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +140 -0
- package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus-state.cjs +103 -0
- package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus.cjs +194 -87
- package/daemon/assets/plugins/openrig-core/skills/agent-operated-software/SKILL.md +5 -1
- package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/SKILL.md +3 -2
- package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +1 -1
- package/daemon/assets/plugins/openrig-core/skills/retiring-and-inheriting-a-seat/SKILL.md +1 -1
- package/daemon/assets/plugins/openrig-core/skills/seat-continuity-and-handover/SKILL.md +10 -6
- package/daemon/assets/plugins/openrig-core/skills/session-compaction-and-restore/SKILL.md +1 -1
- package/daemon/assets/skills/rigs/SKILL.md +43 -4
- package/daemon/context-packs/help/help.md +18 -0
- package/daemon/context-packs/help/manifest.yaml +1 -1
- package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
- package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +74 -26
- package/daemon/context-packs/reference/getting-started.md +41 -14
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +29 -9
- package/daemon/context-packs/reference/tmux-servers.md +6 -3
- package/daemon/context-packs/reference/whats-new.md +300 -295
- package/daemon/context-packs/skills/agent-operated-software/SKILL.md +5 -1
- 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/SKILL.md +3 -2
- package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-herdr/SKILL.md +1 -0
- 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/SKILL.md +5 -0
- package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
- package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
- package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-user/SKILL.md +1 -1
- package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
- package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/review-team/SKILL.md +2 -0
- 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/retiring-and-inheriting-a-seat/SKILL.md +1 -1
- package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/seat-continuity-and-handover/SKILL.md +10 -6
- package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
- package/daemon/context-packs/skills/session-compaction-and-restore/SKILL.md +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.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +18 -3
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts +2 -1
- package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume.js +13 -5
- package/daemon/dist/adapters/claude-resume.js.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js +18 -2
- package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts +10 -6
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.js +78 -24
- package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/pi-community-runtime-adapter.d.ts +27 -0
- package/daemon/dist/adapters/pi-community-runtime-adapter.d.ts.map +1 -0
- package/daemon/dist/adapters/pi-community-runtime-adapter.js +38 -0
- package/daemon/dist/adapters/pi-community-runtime-adapter.js.map +1 -0
- package/daemon/dist/adapters/pi-runner-protocol.d.ts +5 -3
- package/daemon/dist/adapters/pi-runner-protocol.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner-protocol.js +6 -1
- package/daemon/dist/adapters/pi-runner-protocol.js.map +1 -1
- package/daemon/dist/adapters/pi-runner.d.ts +58 -5
- package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner.js +441 -52
- package/daemon/dist/adapters/pi-runner.js.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts +32 -15
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.js +41 -10
- package/daemon/dist/adapters/pi-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/tmux-exec.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-exec.js +13 -4
- package/daemon/dist/adapters/tmux-exec.js.map +1 -1
- package/daemon/dist/adapters/tmux-server.d.ts +11 -1
- package/daemon/dist/adapters/tmux-server.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-server.js +37 -5
- package/daemon/dist/adapters/tmux-server.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +14 -1
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +77 -15
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/attention-surface.d.ts +7 -0
- package/daemon/dist/attention-surface.d.ts.map +1 -1
- package/daemon/dist/attention-surface.js.map +1 -1
- package/daemon/dist/build-info.js +3 -3
- package/daemon/dist/connection-contract-surface.d.ts +2 -0
- package/daemon/dist/connection-contract-surface.d.ts.map +1 -0
- package/daemon/dist/connection-contract-surface.js +4 -0
- package/daemon/dist/connection-contract-surface.js.map +1 -0
- package/daemon/dist/db/all-migrations.d.ts.map +1 -1
- package/daemon/dist/db/all-migrations.js +16 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrations/155_queue_erasure.d.ts +12 -0
- package/daemon/dist/db/migrations/155_queue_erasure.d.ts.map +1 -0
- package/daemon/dist/db/migrations/155_queue_erasure.js +28 -0
- package/daemon/dist/db/migrations/155_queue_erasure.js.map +1 -0
- package/daemon/dist/db/migrations/156_queue_erasure_link_indexes.d.ts +4 -0
- package/daemon/dist/db/migrations/156_queue_erasure_link_indexes.d.ts.map +1 -0
- package/daemon/dist/db/migrations/156_queue_erasure_link_indexes.js +14 -0
- package/daemon/dist/db/migrations/156_queue_erasure_link_indexes.js.map +1 -0
- package/daemon/dist/db/migrations/157_queue_erasure_batches.d.ts +9 -0
- package/daemon/dist/db/migrations/157_queue_erasure_batches.d.ts.map +1 -0
- package/daemon/dist/db/migrations/157_queue_erasure_batches.js +18 -0
- package/daemon/dist/db/migrations/157_queue_erasure_batches.js.map +1 -0
- package/daemon/dist/db/migrations/158_queue_inbox_checkins.d.ts +8 -0
- package/daemon/dist/db/migrations/158_queue_inbox_checkins.d.ts.map +1 -0
- package/daemon/dist/db/migrations/158_queue_inbox_checkins.js +15 -0
- package/daemon/dist/db/migrations/158_queue_inbox_checkins.js.map +1 -0
- package/daemon/dist/db/migrations/159_queue_items_handed_off_from_index.d.ts +5 -0
- package/daemon/dist/db/migrations/159_queue_items_handed_off_from_index.d.ts.map +1 -0
- package/daemon/dist/db/migrations/159_queue_items_handed_off_from_index.js +9 -0
- package/daemon/dist/db/migrations/159_queue_items_handed_off_from_index.js.map +1 -0
- package/daemon/dist/db/migrations/160_network_bindings.d.ts +7 -0
- package/daemon/dist/db/migrations/160_network_bindings.d.ts.map +1 -0
- package/daemon/dist/db/migrations/160_network_bindings.js +26 -0
- package/daemon/dist/db/migrations/160_network_bindings.js.map +1 -0
- package/daemon/dist/db/migrations/161_network_receipts.d.ts +8 -0
- package/daemon/dist/db/migrations/161_network_receipts.d.ts.map +1 -0
- package/daemon/dist/db/migrations/161_network_receipts.js +25 -0
- package/daemon/dist/db/migrations/161_network_receipts.js.map +1 -0
- package/daemon/dist/db/migrations/162_session_address_read_indexes.d.ts +5 -0
- package/daemon/dist/db/migrations/162_session_address_read_indexes.d.ts.map +1 -0
- package/daemon/dist/db/migrations/162_session_address_read_indexes.js +12 -0
- package/daemon/dist/db/migrations/162_session_address_read_indexes.js.map +1 -0
- package/daemon/dist/domain/agent-activity-store.d.ts +12 -2
- package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
- package/daemon/dist/domain/agent-activity-store.js +25 -7
- package/daemon/dist/domain/agent-activity-store.js.map +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.js +5 -0
- package/daemon/dist/domain/bootstrap-orchestrator.js.map +1 -1
- package/daemon/dist/domain/builtin-startup-files.d.ts +8 -0
- package/daemon/dist/domain/builtin-startup-files.d.ts.map +1 -1
- package/daemon/dist/domain/builtin-startup-files.js +37 -11
- package/daemon/dist/domain/builtin-startup-files.js.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts +30 -17
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.js +140 -66
- package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
- package/daemon/dist/domain/claude-continuation-launch.d.ts +16 -0
- package/daemon/dist/domain/claude-continuation-launch.d.ts.map +1 -0
- package/daemon/dist/domain/claude-continuation-launch.js +110 -0
- package/daemon/dist/domain/claude-continuation-launch.js.map +1 -0
- package/daemon/dist/domain/claude-git-trust-root.d.ts +11 -0
- package/daemon/dist/domain/claude-git-trust-root.d.ts.map +1 -0
- package/daemon/dist/domain/claude-git-trust-root.js +72 -0
- package/daemon/dist/domain/claude-git-trust-root.js.map +1 -0
- package/daemon/dist/domain/claude-managed-launch.d.ts +1 -0
- package/daemon/dist/domain/claude-managed-launch.d.ts.map +1 -1
- package/daemon/dist/domain/claude-managed-launch.js +5 -5
- package/daemon/dist/domain/claude-managed-launch.js.map +1 -1
- package/daemon/dist/domain/community-harness-presets.d.ts +5 -0
- package/daemon/dist/domain/community-harness-presets.d.ts.map +1 -1
- package/daemon/dist/domain/community-harness-presets.js +33 -6
- package/daemon/dist/domain/community-harness-presets.js.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts +3 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.js +37 -6
- package/daemon/dist/domain/compaction-restore-notice.js.map +1 -1
- package/daemon/dist/domain/connection-contract.d.ts +111 -0
- package/daemon/dist/domain/connection-contract.d.ts.map +1 -0
- package/daemon/dist/domain/connection-contract.js +113 -0
- package/daemon/dist/domain/connection-contract.js.map +1 -0
- package/daemon/dist/domain/current-work.d.ts +52 -0
- package/daemon/dist/domain/current-work.d.ts.map +1 -1
- package/daemon/dist/domain/current-work.js +215 -0
- package/daemon/dist/domain/current-work.js.map +1 -1
- package/daemon/dist/domain/default-receiver.d.ts +40 -0
- package/daemon/dist/domain/default-receiver.d.ts.map +1 -0
- package/daemon/dist/domain/default-receiver.js +70 -0
- package/daemon/dist/domain/default-receiver.js.map +1 -0
- package/daemon/dist/domain/draft-aware-delivery.js +1 -1
- package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
- package/daemon/dist/domain/escalation-owner.d.ts.map +1 -1
- package/daemon/dist/domain/escalation-owner.js +8 -3
- package/daemon/dist/domain/escalation-owner.js.map +1 -1
- package/daemon/dist/domain/event-bus.d.ts +16 -8
- package/daemon/dist/domain/event-bus.d.ts.map +1 -1
- package/daemon/dist/domain/event-bus.js +50 -16
- package/daemon/dist/domain/event-bus.js.map +1 -1
- package/daemon/dist/domain/execution-view.d.ts.map +1 -1
- package/daemon/dist/domain/execution-view.js +30 -5
- package/daemon/dist/domain/execution-view.js.map +1 -1
- package/daemon/dist/domain/gateway/gateway-subsystem.d.ts +3 -0
- package/daemon/dist/domain/gateway/gateway-subsystem.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/gateway-subsystem.js +9 -0
- package/daemon/dist/domain/gateway/gateway-subsystem.js.map +1 -1
- package/daemon/dist/domain/gateway/human-quiet-windows.d.ts +2 -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/human-registry.d.ts +12 -1
- package/daemon/dist/domain/gateway/human-registry.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/human-registry.js +64 -8
- package/daemon/dist/domain/gateway/human-registry.js.map +1 -1
- package/daemon/dist/domain/gateway/relay-config.d.ts +5 -2
- package/daemon/dist/domain/gateway/relay-config.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/relay-config.js +34 -3
- package/daemon/dist/domain/gateway/relay-config.js.map +1 -1
- package/daemon/dist/domain/gateway/relay-inbound.d.ts +11 -0
- package/daemon/dist/domain/gateway/relay-inbound.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/relay-inbound.js +283 -41
- package/daemon/dist/domain/gateway/relay-inbound.js.map +1 -1
- package/daemon/dist/domain/gateway/relay-outbound.d.ts +5 -2
- package/daemon/dist/domain/gateway/relay-outbound.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/relay-outbound.js +37 -6
- package/daemon/dist/domain/gateway/relay-outbound.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/config.d.ts +21 -0
- package/daemon/dist/domain/gateway/slack/config.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/config.js +30 -3
- package/daemon/dist/domain/gateway/slack/config.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.d.ts +4 -0
- package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.js +7 -2
- package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/open-asks.d.ts +13 -1
- package/daemon/dist/domain/gateway/slack/open-asks.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/open-asks.js +58 -7
- package/daemon/dist/domain/gateway/slack/open-asks.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/outbound-driver.d.ts +9 -0
- package/daemon/dist/domain/gateway/slack/outbound-driver.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/outbound-driver.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 +19 -1
- package/daemon/dist/domain/gateway/slack/settled-asks.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-api.d.ts +3 -0
- package/daemon/dist/domain/gateway/slack/slack-api.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-api.js +12 -4
- package/daemon/dist/domain/gateway/slack/slack-api.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +2 -0
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.js +38 -12
- package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-recovery.d.ts +12 -1
- package/daemon/dist/domain/gateway/slack/slack-recovery.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-recovery.js +68 -10
- package/daemon/dist/domain/gateway/slack/slack-recovery.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js +151 -47
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/socket-inbound.d.ts +1 -0
- package/daemon/dist/domain/gateway/slack/socket-inbound.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/socket-inbound.js +5 -0
- package/daemon/dist/domain/gateway/slack/socket-inbound.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/state-store.d.ts +4 -0
- package/daemon/dist/domain/gateway/slack/state-store.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/state-store.js +4 -1
- package/daemon/dist/domain/gateway/slack/state-store.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/thread-recovery.d.ts +23 -3
- package/daemon/dist/domain/gateway/slack/thread-recovery.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/thread-recovery.js +52 -10
- package/daemon/dist/domain/gateway/slack/thread-recovery.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/thread-seat-map.d.ts +4 -1
- package/daemon/dist/domain/gateway/slack/thread-seat-map.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/thread-seat-map.js +7 -4
- package/daemon/dist/domain/gateway/slack/thread-seat-map.js.map +1 -1
- package/daemon/dist/domain/guidance-projection.d.ts +39 -0
- package/daemon/dist/domain/guidance-projection.d.ts.map +1 -0
- package/daemon/dist/domain/guidance-projection.js +91 -0
- package/daemon/dist/domain/guidance-projection.js.map +1 -0
- package/daemon/dist/domain/health-passive-ceremony.d.ts.map +1 -1
- package/daemon/dist/domain/health-passive-ceremony.js +31 -12
- package/daemon/dist/domain/health-passive-ceremony.js.map +1 -1
- package/daemon/dist/domain/hosted-wake.d.ts +5 -1
- package/daemon/dist/domain/hosted-wake.d.ts.map +1 -1
- package/daemon/dist/domain/hosted-wake.js +13 -3
- package/daemon/dist/domain/hosted-wake.js.map +1 -1
- package/daemon/dist/domain/install-engine.d.ts +5 -0
- package/daemon/dist/domain/install-engine.d.ts.map +1 -1
- package/daemon/dist/domain/install-engine.js +28 -26
- package/daemon/dist/domain/install-engine.js.map +1 -1
- package/daemon/dist/domain/install-verifier.d.ts +5 -1
- package/daemon/dist/domain/install-verifier.d.ts.map +1 -1
- package/daemon/dist/domain/install-verifier.js +12 -1
- package/daemon/dist/domain/install-verifier.js.map +1 -1
- package/daemon/dist/domain/launch-wrapper.d.ts +2 -1
- package/daemon/dist/domain/launch-wrapper.d.ts.map +1 -1
- package/daemon/dist/domain/launch-wrapper.js +6 -2
- package/daemon/dist/domain/launch-wrapper.js.map +1 -1
- package/daemon/dist/domain/managed-block-records.d.ts +9 -3
- package/daemon/dist/domain/managed-block-records.d.ts.map +1 -1
- package/daemon/dist/domain/managed-block-records.js +43 -8
- package/daemon/dist/domain/managed-block-records.js.map +1 -1
- package/daemon/dist/domain/managed-blocks.d.ts +43 -3
- package/daemon/dist/domain/managed-blocks.d.ts.map +1 -1
- package/daemon/dist/domain/managed-blocks.js +156 -39
- package/daemon/dist/domain/managed-blocks.js.map +1 -1
- package/daemon/dist/domain/markdown-address.d.ts.map +1 -1
- package/daemon/dist/domain/markdown-address.js +12 -1
- package/daemon/dist/domain/markdown-address.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 +39 -7
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
- package/daemon/dist/domain/native-process-arguments.d.ts +5 -0
- package/daemon/dist/domain/native-process-arguments.d.ts.map +1 -1
- package/daemon/dist/domain/native-process-arguments.js +60 -5
- package/daemon/dist/domain/native-process-arguments.js.map +1 -1
- package/daemon/dist/domain/network/hub-client.d.ts +40 -0
- package/daemon/dist/domain/network/hub-client.d.ts.map +1 -0
- package/daemon/dist/domain/network/hub-client.js +102 -0
- package/daemon/dist/domain/network/hub-client.js.map +1 -0
- package/daemon/dist/domain/network/network-bindings.d.ts +74 -0
- package/daemon/dist/domain/network/network-bindings.d.ts.map +1 -0
- package/daemon/dist/domain/network/network-bindings.js +235 -0
- package/daemon/dist/domain/network/network-bindings.js.map +1 -0
- package/daemon/dist/domain/network/network-connector.d.ts +77 -0
- package/daemon/dist/domain/network/network-connector.d.ts.map +1 -0
- package/daemon/dist/domain/network/network-connector.js +380 -0
- package/daemon/dist/domain/network/network-connector.js.map +1 -0
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +9 -8
- package/daemon/dist/domain/node-inventory.js.map +1 -1
- package/daemon/dist/domain/package-install-service.d.ts +1 -0
- package/daemon/dist/domain/package-install-service.d.ts.map +1 -1
- package/daemon/dist/domain/package-install-service.js +2 -1
- package/daemon/dist/domain/package-install-service.js.map +1 -1
- package/daemon/dist/domain/package-manifest.d.ts.map +1 -1
- package/daemon/dist/domain/package-manifest.js +10 -5
- package/daemon/dist/domain/package-manifest.js.map +1 -1
- package/daemon/dist/domain/plugin-vendor-service.d.ts +9 -0
- package/daemon/dist/domain/plugin-vendor-service.d.ts.map +1 -1
- package/daemon/dist/domain/plugin-vendor-service.js +50 -8
- package/daemon/dist/domain/plugin-vendor-service.js.map +1 -1
- package/daemon/dist/domain/policies/delivery-digest-flush.d.ts.map +1 -1
- package/daemon/dist/domain/policies/delivery-digest-flush.js +9 -1
- package/daemon/dist/domain/policies/delivery-digest-flush.js.map +1 -1
- package/daemon/dist/domain/policies/mode-scheduled-end.d.ts +4 -1
- package/daemon/dist/domain/policies/mode-scheduled-end.d.ts.map +1 -1
- package/daemon/dist/domain/policies/mode-scheduled-end.js +19 -10
- package/daemon/dist/domain/policies/mode-scheduled-end.js.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js +3 -2
- package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
- package/daemon/dist/domain/policies/quiet-release.d.ts +19 -6
- package/daemon/dist/domain/policies/quiet-release.d.ts.map +1 -1
- package/daemon/dist/domain/policies/quiet-release.js +44 -7
- package/daemon/dist/domain/policies/quiet-release.js.map +1 -1
- package/daemon/dist/domain/proof/judgments.d.ts +23 -13
- package/daemon/dist/domain/proof/judgments.d.ts.map +1 -1
- package/daemon/dist/domain/proof/judgments.js +75 -38
- package/daemon/dist/domain/proof/judgments.js.map +1 -1
- package/daemon/dist/domain/proof/source-watch.d.ts +1 -1
- package/daemon/dist/domain/proof/source-watch.d.ts.map +1 -1
- package/daemon/dist/domain/proof/source-watch.js +45 -22
- package/daemon/dist/domain/proof/source-watch.js.map +1 -1
- package/daemon/dist/domain/provider/claude-usage-reader.d.ts +3 -3
- package/daemon/dist/domain/provider/claude-usage-reader.d.ts.map +1 -1
- package/daemon/dist/domain/provider/claude-usage-reader.js +16 -5
- package/daemon/dist/domain/provider/claude-usage-reader.js.map +1 -1
- package/daemon/dist/domain/provider/codex-limit-banner.d.ts.map +1 -1
- package/daemon/dist/domain/provider/codex-limit-banner.js +2 -1
- package/daemon/dist/domain/provider/codex-limit-banner.js.map +1 -1
- package/daemon/dist/domain/provider/provider-signals.d.ts +6 -0
- package/daemon/dist/domain/provider/provider-signals.d.ts.map +1 -1
- package/daemon/dist/domain/provider/provider-signals.js +9 -3
- package/daemon/dist/domain/provider/provider-signals.js.map +1 -1
- package/daemon/dist/domain/provider/reactive-tap.d.ts.map +1 -1
- package/daemon/dist/domain/provider/reactive-tap.js +6 -0
- package/daemon/dist/domain/provider/reactive-tap.js.map +1 -1
- package/daemon/dist/domain/queue-blocker.d.ts +5 -0
- package/daemon/dist/domain/queue-blocker.d.ts.map +1 -0
- package/daemon/dist/domain/queue-blocker.js +12 -0
- package/daemon/dist/domain/queue-blocker.js.map +1 -0
- package/daemon/dist/domain/queue-erasure.d.ts +173 -0
- package/daemon/dist/domain/queue-erasure.d.ts.map +1 -0
- package/daemon/dist/domain/queue-erasure.js +885 -0
- package/daemon/dist/domain/queue-erasure.js.map +1 -0
- package/daemon/dist/domain/queue-owner.d.ts +6 -0
- package/daemon/dist/domain/queue-owner.d.ts.map +1 -1
- package/daemon/dist/domain/queue-owner.js +13 -4
- package/daemon/dist/domain/queue-owner.js.map +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +176 -21
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +503 -62
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-retention.d.ts +15 -1
- package/daemon/dist/domain/queue-retention.d.ts.map +1 -1
- package/daemon/dist/domain/queue-retention.js +35 -0
- package/daemon/dist/domain/queue-retention.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts +17 -4
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +309 -100
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/queue-transition-log.d.ts +5 -2
- package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
- package/daemon/dist/domain/queue-transition-log.js +30 -5
- package/daemon/dist/domain/queue-transition-log.js.map +1 -1
- package/daemon/dist/domain/queue-waiting.d.ts +48 -2
- package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
- package/daemon/dist/domain/queue-waiting.js +73 -13
- package/daemon/dist/domain/queue-waiting.js.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +124 -55
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/queue-wake-repository.d.ts +3 -0
- package/daemon/dist/domain/queue-wake-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-repository.js +6 -0
- package/daemon/dist/domain/queue-wake-repository.js.map +1 -1
- package/daemon/dist/domain/rebuild-priming-chain.d.ts +3 -1
- package/daemon/dist/domain/rebuild-priming-chain.d.ts.map +1 -1
- package/daemon/dist/domain/rebuild-priming-chain.js +3 -1
- package/daemon/dist/domain/rebuild-priming-chain.js.map +1 -1
- package/daemon/dist/domain/receiver-context.d.ts +9 -0
- package/daemon/dist/domain/receiver-context.d.ts.map +1 -0
- package/daemon/dist/domain/receiver-context.js +24 -0
- package/daemon/dist/domain/receiver-context.js.map +1 -0
- package/daemon/dist/domain/reconciler.d.ts +15 -6
- package/daemon/dist/domain/reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/reconciler.js +26 -26
- package/daemon/dist/domain/reconciler.js.map +1 -1
- package/daemon/dist/domain/refocus-record.d.ts +17 -0
- package/daemon/dist/domain/refocus-record.d.ts.map +1 -0
- package/daemon/dist/domain/refocus-record.js +94 -0
- package/daemon/dist/domain/refocus-record.js.map +1 -0
- package/daemon/dist/domain/restore-check-service.js +1 -1
- package/daemon/dist/domain/restore-check-service.js.map +1 -1
- package/daemon/dist/domain/restore-guidance.d.ts +6 -4
- package/daemon/dist/domain/restore-guidance.d.ts.map +1 -1
- package/daemon/dist/domain/restore-guidance.js +43 -33
- package/daemon/dist/domain/restore-guidance.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +2 -0
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +39 -18
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/restore-plan-preview.d.ts.map +1 -1
- package/daemon/dist/domain/restore-plan-preview.js +2 -1
- package/daemon/dist/domain/restore-plan-preview.js.map +1 -1
- package/daemon/dist/domain/resume-token-validation.d.ts +7 -0
- package/daemon/dist/domain/resume-token-validation.d.ts.map +1 -1
- package/daemon/dist/domain/resume-token-validation.js +13 -3
- package/daemon/dist/domain/resume-token-validation.js.map +1 -1
- package/daemon/dist/domain/rig-repository.js +3 -3
- package/daemon/dist/domain/rig-repository.js.map +1 -1
- package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
- package/daemon/dist/domain/rig-teardown.js +2 -1
- package/daemon/dist/domain/rig-teardown.js.map +1 -1
- package/daemon/dist/domain/rigs-being-built.d.ts +5 -0
- package/daemon/dist/domain/rigs-being-built.d.ts.map +1 -0
- package/daemon/dist/domain/rigs-being-built.js +18 -0
- package/daemon/dist/domain/rigs-being-built.js.map +1 -0
- package/daemon/dist/domain/rigspec-instantiator.d.ts +3 -0
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +32 -2
- 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 +4 -1
- package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
- package/daemon/dist/domain/rigspec-schema.js +2 -2
- package/daemon/dist/domain/rigspec-schema.js.map +1 -1
- package/daemon/dist/domain/rosters.d.ts +11 -0
- package/daemon/dist/domain/rosters.d.ts.map +1 -1
- package/daemon/dist/domain/rosters.js +24 -1
- package/daemon/dist/domain/rosters.js.map +1 -1
- package/daemon/dist/domain/runner-permissions.d.ts +16 -0
- package/daemon/dist/domain/runner-permissions.d.ts.map +1 -1
- package/daemon/dist/domain/runner-permissions.js +104 -16
- package/daemon/dist/domain/runner-permissions.js.map +1 -1
- package/daemon/dist/domain/runtime-adapter.d.ts +1 -0
- package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-adapter.js.map +1 -1
- package/daemon/dist/domain/scope/logical-checkbox.d.ts.map +1 -1
- package/daemon/dist/domain/scope/logical-checkbox.js +14 -0
- package/daemon/dist/domain/scope/logical-checkbox.js.map +1 -1
- package/daemon/dist/domain/seat-activity-service.d.ts +12 -0
- package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-activity-service.js +85 -4
- package/daemon/dist/domain/seat-activity-service.js.map +1 -1
- package/daemon/dist/domain/seat-handover-service.d.ts +16 -1
- package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-handover-service.js +78 -15
- package/daemon/dist/domain/seat-handover-service.js.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.d.ts +4 -0
- package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.js +18 -2
- package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-kinds.d.ts +21 -0
- package/daemon/dist/domain/seat-kinds.d.ts.map +1 -0
- package/daemon/dist/domain/seat-kinds.js +27 -0
- package/daemon/dist/domain/seat-kinds.js.map +1 -0
- package/daemon/dist/domain/seat-launch-environment.d.ts +4 -0
- package/daemon/dist/domain/seat-launch-environment.d.ts.map +1 -1
- package/daemon/dist/domain/seat-launch-environment.js +7 -6
- package/daemon/dist/domain/seat-launch-environment.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +17 -0
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +74 -13
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.js +23 -12
- package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
- package/daemon/dist/domain/seat-skill-apply.d.ts +2 -0
- package/daemon/dist/domain/seat-skill-apply.d.ts.map +1 -1
- package/daemon/dist/domain/seat-skill-apply.js +5 -2
- package/daemon/dist/domain/seat-skill-apply.js.map +1 -1
- package/daemon/dist/domain/seat-skill-storage.js +1 -1
- package/daemon/dist/domain/seat-skill-storage.js.map +1 -1
- package/daemon/dist/domain/seat-status-service.d.ts +10 -0
- package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-status-service.js +36 -2
- package/daemon/dist/domain/seat-status-service.js.map +1 -1
- package/daemon/dist/domain/seat-structural-activity-service.d.ts +8 -0
- package/daemon/dist/domain/seat-structural-activity-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-structural-activity-service.js +15 -6
- package/daemon/dist/domain/seat-structural-activity-service.js.map +1 -1
- package/daemon/dist/domain/session-jsonl.d.ts +4 -2
- package/daemon/dist/domain/session-jsonl.d.ts.map +1 -1
- package/daemon/dist/domain/session-jsonl.js +56 -22
- package/daemon/dist/domain/session-jsonl.js.map +1 -1
- package/daemon/dist/domain/session-registry.d.ts +20 -3
- package/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.js +55 -8
- package/daemon/dist/domain/session-registry.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +30 -4
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +243 -60
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.d.ts +46 -2
- package/daemon/dist/domain/slices/slice-indexer.d.ts.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.js +522 -37
- package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
- package/daemon/dist/domain/slow-op-recorder.d.ts +0 -3
- package/daemon/dist/domain/slow-op-recorder.d.ts.map +1 -1
- package/daemon/dist/domain/slow-op-recorder.js +5 -34
- package/daemon/dist/domain/slow-op-recorder.js.map +1 -1
- package/daemon/dist/domain/spec-library-workflow-scanner.d.ts +2 -0
- package/daemon/dist/domain/spec-library-workflow-scanner.d.ts.map +1 -1
- package/daemon/dist/domain/spec-library-workflow-scanner.js +22 -13
- package/daemon/dist/domain/spec-library-workflow-scanner.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +5 -2
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.d.ts +1 -0
- package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.js +18 -4
- package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.d.ts +5 -0
- package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.js +11 -6
- package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.js +3 -2
- package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-app-install.d.ts +28 -0
- package/daemon/dist/domain/terminal/herdr-app-install.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/herdr-app-install.js +170 -0
- package/daemon/dist/domain/terminal/herdr-app-install.js.map +1 -0
- package/daemon/dist/domain/terminal/herdr-app-layout.d.ts +79 -0
- package/daemon/dist/domain/terminal/herdr-app-layout.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/herdr-app-layout.js +134 -0
- package/daemon/dist/domain/terminal/herdr-app-layout.js.map +1 -0
- package/daemon/dist/domain/terminal/herdr-app-provider.d.ts +123 -0
- package/daemon/dist/domain/terminal/herdr-app-provider.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/herdr-app-provider.js +681 -0
- package/daemon/dist/domain/terminal/herdr-app-provider.js.map +1 -0
- package/daemon/dist/domain/terminal/herdr-app-state.d.ts +91 -0
- package/daemon/dist/domain/terminal/herdr-app-state.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/herdr-app-state.js +140 -0
- package/daemon/dist/domain/terminal/herdr-app-state.js.map +1 -0
- package/daemon/dist/domain/terminal/herdr-app-transport.d.ts +68 -0
- package/daemon/dist/domain/terminal/herdr-app-transport.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/herdr-app-transport.js +133 -0
- package/daemon/dist/domain/terminal/herdr-app-transport.js.map +1 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts +18 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.d.ts +28 -3
- package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.js +41 -8
- package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
- package/daemon/dist/domain/terminal/view-composer.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/view-composer.js +1 -0
- package/daemon/dist/domain/terminal/view-composer.js.map +1 -1
- package/daemon/dist/domain/time-bound-advisory.js +3 -3
- package/daemon/dist/domain/time-bound-advisory.js.map +1 -1
- package/daemon/dist/domain/tmux-option-defaults.d.ts +4 -4
- package/daemon/dist/domain/tmux-option-defaults.d.ts.map +1 -1
- package/daemon/dist/domain/tmux-option-defaults.js +25 -12
- package/daemon/dist/domain/tmux-option-defaults.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +54 -0
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.d.ts +2 -1
- package/daemon/dist/domain/user-settings/settings-browser.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.js +22 -3
- 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 +35 -0
- package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
- package/daemon/dist/domain/wake-recovery.d.ts.map +1 -1
- package/daemon/dist/domain/wake-recovery.js +3 -2
- package/daemon/dist/domain/wake-recovery.js.map +1 -1
- package/daemon/dist/domain/watchdog-delivery-receipts.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-delivery-receipts.js +8 -3
- package/daemon/dist/domain/watchdog-delivery-receipts.js.map +1 -1
- package/daemon/dist/domain/whoami-service.d.ts +6 -0
- package/daemon/dist/domain/whoami-service.d.ts.map +1 -1
- package/daemon/dist/domain/whoami-service.js +9 -1
- package/daemon/dist/domain/whoami-service.js.map +1 -1
- package/daemon/dist/domain/workflow-projector.js +1 -1
- package/daemon/dist/domain/workflow-projector.js.map +1 -1
- package/daemon/dist/domain/workflow-runtime.js +4 -4
- package/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/daemon/dist/domain/workflow-spec-cache.d.ts +22 -0
- package/daemon/dist/domain/workflow-spec-cache.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-spec-cache.js +59 -14
- package/daemon/dist/domain/workflow-spec-cache.js.map +1 -1
- package/daemon/dist/index.d.ts +2 -1
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +11 -1
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/lib/pane-envelope.d.ts +3 -0
- package/daemon/dist/lib/pane-envelope.d.ts.map +1 -1
- package/daemon/dist/lib/pane-envelope.js +3 -1
- package/daemon/dist/lib/pane-envelope.js.map +1 -1
- package/daemon/dist/routes/activity.d.ts.map +1 -1
- package/daemon/dist/routes/activity.js +122 -23
- package/daemon/dist/routes/activity.js.map +1 -1
- package/daemon/dist/routes/attention.d.ts.map +1 -1
- package/daemon/dist/routes/attention.js +2 -0
- package/daemon/dist/routes/attention.js.map +1 -1
- package/daemon/dist/routes/config.d.ts.map +1 -1
- package/daemon/dist/routes/config.js +9 -1
- package/daemon/dist/routes/config.js.map +1 -1
- package/daemon/dist/routes/events.js +7 -2
- package/daemon/dist/routes/events.js.map +1 -1
- package/daemon/dist/routes/gateway.d.ts.map +1 -1
- package/daemon/dist/routes/gateway.js +34 -5
- package/daemon/dist/routes/gateway.js.map +1 -1
- package/daemon/dist/routes/hosts.d.ts.map +1 -1
- package/daemon/dist/routes/hosts.js +154 -79
- package/daemon/dist/routes/hosts.js.map +1 -1
- package/daemon/dist/routes/network.d.ts +9 -0
- package/daemon/dist/routes/network.d.ts.map +1 -0
- package/daemon/dist/routes/network.js +58 -0
- package/daemon/dist/routes/network.js.map +1 -0
- package/daemon/dist/routes/packages.js +3 -1
- package/daemon/dist/routes/packages.js.map +1 -1
- package/daemon/dist/routes/proof.d.ts.map +1 -1
- package/daemon/dist/routes/proof.js +6 -4
- package/daemon/dist/routes/proof.js.map +1 -1
- package/daemon/dist/routes/provider.js +1 -1
- package/daemon/dist/routes/provider.js.map +1 -1
- package/daemon/dist/routes/queue.d.ts +19 -0
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +236 -43
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/skills.d.ts.map +1 -1
- package/daemon/dist/routes/skills.js +8 -2
- package/daemon/dist/routes/skills.js.map +1 -1
- package/daemon/dist/routes/slices.d.ts +1 -0
- package/daemon/dist/routes/slices.d.ts.map +1 -1
- package/daemon/dist/routes/slices.js +217 -39
- package/daemon/dist/routes/slices.js.map +1 -1
- package/daemon/dist/routes/spec-library.d.ts.map +1 -1
- package/daemon/dist/routes/spec-library.js +7 -3
- package/daemon/dist/routes/spec-library.js.map +1 -1
- package/daemon/dist/routes/terminal.d.ts.map +1 -1
- package/daemon/dist/routes/terminal.js +40 -3
- 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 +0 -1
- package/daemon/dist/routes/transport.js.map +1 -1
- package/daemon/dist/server.d.ts +2 -0
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +5 -0
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts +34 -0
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +206 -36
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/docs/reference/agent-spec.md +2 -4
- package/daemon/docs/reference/agent-startup-guide.md +45 -15
- package/daemon/docs/reference/claude-status-line.md +25 -9
- package/daemon/docs/reference/community-harness-examples/omo/omo.yaml +14 -0
- package/daemon/docs/reference/community-harness-presets.md +56 -2
- package/daemon/docs/reference/daemon-http-clients.md +15 -1
- package/daemon/docs/reference/edge-types.md +6 -4
- package/daemon/docs/reference/gateway-participants.md +19 -0
- package/daemon/docs/reference/gateway-relay.md +41 -12
- package/daemon/docs/reference/getting-started.md +41 -14
- package/daemon/docs/reference/harness-runner-contract.md +61 -12
- package/daemon/docs/reference/health-diagnosis.md +5 -1
- package/daemon/docs/reference/help.md +18 -0
- package/daemon/docs/reference/herdr-app.md +149 -0
- package/daemon/docs/reference/hosted-members.md +51 -9
- package/daemon/docs/reference/keeping-a-watch.md +31 -1
- package/daemon/docs/reference/network-connector.md +114 -0
- package/daemon/docs/reference/queue-erasure.md +161 -0
- package/daemon/docs/reference/quickstart.md +4 -4
- package/daemon/docs/reference/rig-spec.md +29 -9
- package/daemon/docs/reference/rosters.md +5 -0
- package/daemon/docs/reference/runner-conformance/README.md +3 -0
- package/daemon/docs/reference/runner-conformance/check-runner.mjs +27 -6
- package/daemon/docs/reference/runner-conformance/fake-acp-agent.mjs +1 -1
- package/daemon/docs/reference/sdlc-conventions.md +16 -1
- package/daemon/docs/reference/seat-delivery.md +10 -3
- package/daemon/docs/reference/slack-app-setup.md +37 -12
- package/daemon/docs/reference/terminal-sessions.md +28 -15
- package/daemon/docs/reference/tmux-servers.md +6 -3
- package/daemon/docs/reference/whats-new.md +300 -295
- package/daemon/specs/agents/shared/skills/core/openrig-herdr/SKILL.md +1 -0
- package/daemon/specs/agents/shared/skills/core/watchdog/SKILL.md +5 -0
- package/daemon/specs/agents/shared/skills/pods/review-team/SKILL.md +2 -0
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +66 -16
- package/daemon/specs/rigs/launch/kernel/culture/CULTURE.md +7 -4
- package/daemon/specs/rigs/launch/kernel/rig.yaml +6 -3
- package/daemon/specs/rigs/launch/starter/guidance/lead-first-move.md +3 -1
- package/dist/build-info.js +3 -3
- package/dist/client.js +2 -2
- package/dist/client.js.map +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +11 -1
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +44 -4
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/daemon.d.ts +8 -2
- package/dist/commands/daemon.d.ts.map +1 -1
- package/dist/commands/daemon.js +63 -7
- package/dist/commands/daemon.js.map +1 -1
- package/dist/commands/gateway.d.ts.map +1 -1
- package/dist/commands/gateway.js +21 -4
- package/dist/commands/gateway.js.map +1 -1
- package/dist/commands/host.d.ts +4 -10
- package/dist/commands/host.d.ts.map +1 -1
- package/dist/commands/host.js +17 -35
- package/dist/commands/host.js.map +1 -1
- package/dist/commands/launch.d.ts +1 -0
- package/dist/commands/launch.d.ts.map +1 -1
- package/dist/commands/launch.js +1 -1
- package/dist/commands/launch.js.map +1 -1
- package/dist/commands/network.d.ts +12 -0
- package/dist/commands/network.d.ts.map +1 -0
- package/dist/commands/network.js +95 -0
- package/dist/commands/network.js.map +1 -0
- package/dist/commands/package.d.ts.map +1 -1
- package/dist/commands/package.js +5 -0
- package/dist/commands/package.js.map +1 -1
- package/dist/commands/proof.d.ts.map +1 -1
- package/dist/commands/proof.js +18 -6
- package/dist/commands/proof.js.map +1 -1
- package/dist/commands/provider.js +1 -1
- package/dist/commands/ps.d.ts +9 -1
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +23 -2
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +233 -8
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/roster.d.ts +17 -0
- package/dist/commands/roster.d.ts.map +1 -1
- package/dist/commands/roster.js +47 -2
- package/dist/commands/roster.js.map +1 -1
- package/dist/commands/scope.d.ts +2 -0
- package/dist/commands/scope.d.ts.map +1 -1
- package/dist/commands/scope.js +15 -0
- package/dist/commands/scope.js.map +1 -1
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +65 -10
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/send.d.ts +2 -0
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +16 -6
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/setup.js +1 -1
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/skill.d.ts.map +1 -1
- package/dist/commands/skill.js +5 -0
- package/dist/commands/skill.js.map +1 -1
- package/dist/commands/slack.d.ts +1 -1
- package/dist/commands/slack.d.ts.map +1 -1
- package/dist/commands/slack.js +5 -1
- package/dist/commands/slack.js.map +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +11 -1
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/terminal.d.ts +22 -0
- package/dist/commands/terminal.d.ts.map +1 -1
- package/dist/commands/terminal.js +116 -7
- package/dist/commands/terminal.js.map +1 -1
- package/dist/commands/up.d.ts.map +1 -1
- package/dist/commands/up.js +22 -0
- package/dist/commands/up.js.map +1 -1
- package/dist/commands/watchdog.d.ts.map +1 -1
- package/dist/commands/watchdog.js +22 -2
- package/dist/commands/watchdog.js.map +1 -1
- package/dist/commands/whoami.d.ts.map +1 -1
- package/dist/commands/whoami.js +13 -2
- package/dist/commands/whoami.js.map +1 -1
- package/dist/commands/workflow-errors.js +1 -1
- package/dist/commands/workflow-errors.js.map +1 -1
- package/dist/commands/workflow.js +1 -1
- package/dist/commands/workflow.js.map +1 -1
- package/dist/config-store.d.ts +8 -1
- package/dist/config-store.d.ts.map +1 -1
- package/dist/config-store.js +60 -0
- package/dist/config-store.js.map +1 -1
- package/dist/cross-host-executor.d.ts.map +1 -1
- package/dist/cross-host-executor.js +6 -1
- package/dist/cross-host-executor.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts +11 -0
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +61 -9
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/daemon-reachability.js +1 -1
- package/dist/daemon-reachability.js.map +1 -1
- package/dist/daemon-start-lock.d.ts +24 -2
- package/dist/daemon-start-lock.d.ts.map +1 -1
- package/dist/daemon-start-lock.js +125 -4
- package/dist/daemon-start-lock.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/lazy-program.d.ts.map +1 -1
- package/dist/lazy-program.js +1 -0
- package/dist/lazy-program.js.map +1 -1
- package/dist/lib/scope/logical-checkbox.d.ts.map +1 -1
- package/dist/lib/scope/logical-checkbox.js +14 -0
- package/dist/lib/scope/logical-checkbox.js.map +1 -1
- package/dist/lib/scope/scope-fs.d.ts.map +1 -1
- package/dist/lib/scope/scope-fs.js +36 -2
- package/dist/lib/scope/scope-fs.js.map +1 -1
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +49 -8
- package/dist/mcp-server.js.map +1 -1
- package/dist/recap-seat.d.ts +28 -0
- package/dist/recap-seat.d.ts.map +1 -0
- package/dist/recap-seat.js +41 -0
- package/dist/recap-seat.js.map +1 -0
- package/dist/seat-attention.d.ts +24 -0
- package/dist/seat-attention.d.ts.map +1 -0
- package/dist/seat-attention.js +119 -0
- package/dist/seat-attention.js.map +1 -0
- package/dist/terminal-window.d.ts.map +1 -1
- package/dist/terminal-window.js +3 -3
- package/dist/terminal-window.js.map +1 -1
- package/package.json +1 -1
- package/tui/dist/attention/attention-model.d.ts.map +1 -1
- package/tui/dist/attention/attention-model.js +13 -5
- package/tui/dist/attention/attention-model.js.map +1 -1
- package/tui/dist/config/config-model.d.ts.map +1 -1
- package/tui/dist/config/config-model.js +6 -1
- package/tui/dist/config/config-model.js.map +1 -1
- package/tui/dist/config/pairing.d.ts +49 -0
- package/tui/dist/config/pairing.d.ts.map +1 -0
- package/tui/dist/config/pairing.js +98 -0
- package/tui/dist/config/pairing.js.map +1 -0
- package/tui/dist/daemon-client.d.ts +11 -1
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js +18 -5
- package/tui/dist/daemon-client.js.map +1 -1
- package/tui/dist/detail.d.ts +3 -0
- package/tui/dist/detail.d.ts.map +1 -1
- package/tui/dist/detail.js +6 -1
- package/tui/dist/detail.js.map +1 -1
- package/tui/dist/execution/execution-model.d.ts +2 -0
- package/tui/dist/execution/execution-model.d.ts.map +1 -1
- package/tui/dist/execution/execution-model.js +10 -3
- package/tui/dist/execution/execution-model.js.map +1 -1
- package/tui/dist/health/health-model.d.ts.map +1 -1
- package/tui/dist/health/health-model.js +27 -11
- package/tui/dist/health/health-model.js.map +1 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +12 -6
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/main.js +6 -1
- package/tui/dist/main.js.map +1 -1
- package/tui/dist/navigator.js +1 -1
- package/tui/dist/navigator.js.map +1 -1
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +44 -29
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/scopes/scopes-model.d.ts +9 -0
- package/tui/dist/scopes/scopes-model.d.ts.map +1 -1
- package/tui/dist/scopes/scopes-model.js +27 -1
- package/tui/dist/scopes/scopes-model.js.map +1 -1
- package/tui/dist/state.d.ts.map +1 -1
- package/tui/dist/state.js +6 -5
- package/tui/dist/state.js.map +1 -1
- package/tui/dist/stylize.d.ts.map +1 -1
- package/tui/dist/stylize.js +4 -0
- package/tui/dist/stylize.js.map +1 -1
- package/tui/dist/terminals/open-window.d.ts +21 -1
- package/tui/dist/terminals/open-window.d.ts.map +1 -1
- package/tui/dist/terminals/open-window.js +46 -9
- package/tui/dist/terminals/open-window.js.map +1 -1
- package/tui/dist/terminals/terminal-model.d.ts +8 -1
- package/tui/dist/terminals/terminal-model.d.ts.map +1 -1
- package/tui/dist/terminals/terminal-model.js +25 -8
- package/tui/dist/terminals/terminal-model.js.map +1 -1
- package/tui/dist/topology/host-label.d.ts +2 -0
- package/tui/dist/topology/host-label.d.ts.map +1 -1
- package/tui/dist/topology/host-label.js +7 -1
- package/tui/dist/topology/host-label.js.map +1 -1
- package/tui/dist/types.d.ts +20 -3
- package/tui/dist/types.d.ts.map +1 -1
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const fs = require("node:fs");
|
|
4
|
+
const path = require("node:path");
|
|
5
|
+
const { randomUUID } = require("node:crypto");
|
|
6
|
+
|
|
7
|
+
function processExists(pid) {
|
|
8
|
+
try {
|
|
9
|
+
process.kill(pid, 0);
|
|
10
|
+
return true;
|
|
11
|
+
} catch (error) {
|
|
12
|
+
if (error.code === "ESRCH") return false;
|
|
13
|
+
throw error;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function acquire(stateFile) {
|
|
18
|
+
fs.mkdirSync(path.dirname(stateFile), { recursive: true });
|
|
19
|
+
const base = `${stateFile}.guard`;
|
|
20
|
+
const token = `${process.pid}-${randomUUID()}`;
|
|
21
|
+
const until = performance.now() + 200;
|
|
22
|
+
const wait = new Int32Array(new SharedArrayBuffer(4));
|
|
23
|
+
let lock = base;
|
|
24
|
+
do {
|
|
25
|
+
try {
|
|
26
|
+
fs.symlinkSync(token, lock);
|
|
27
|
+
return () => {
|
|
28
|
+
try {
|
|
29
|
+
if (fs.readlinkSync(lock) === token) fs.unlinkSync(lock);
|
|
30
|
+
} catch {}
|
|
31
|
+
};
|
|
32
|
+
} catch (error) {
|
|
33
|
+
if (error.code !== "EEXIST") throw error;
|
|
34
|
+
}
|
|
35
|
+
let owner;
|
|
36
|
+
try {
|
|
37
|
+
owner = fs.readlinkSync(lock);
|
|
38
|
+
} catch (error) {
|
|
39
|
+
if (error.code === "ENOENT") continue;
|
|
40
|
+
throw error;
|
|
41
|
+
}
|
|
42
|
+
const match = /^([1-9][0-9]*)-([0-9a-f-]{36})$/.exec(owner);
|
|
43
|
+
if (!match) throw new Error("unrecognized state guard owner");
|
|
44
|
+
if (!processExists(Number(match[1]))) {
|
|
45
|
+
// The owner might have released the path before exiting. Recheck its
|
|
46
|
+
// token after proving death; that same owner can no longer remove it.
|
|
47
|
+
try {
|
|
48
|
+
if (fs.readlinkSync(lock) === owner) lock = `${base}.${match[2]}`;
|
|
49
|
+
} catch (error) {
|
|
50
|
+
if (error.code !== "ENOENT") throw error;
|
|
51
|
+
}
|
|
52
|
+
// Keep the dead link. Contenders follow it to one shared successor
|
|
53
|
+
// without ever removing a guard another process might have acquired.
|
|
54
|
+
continue;
|
|
55
|
+
}
|
|
56
|
+
Atomics.wait(wait, 0, 0, 10);
|
|
57
|
+
} while (performance.now() < until);
|
|
58
|
+
throw new Error("state guard still busy");
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function openRefocusState(stateFile) {
|
|
62
|
+
const report = (operation, error) =>
|
|
63
|
+
process.stderr.write(`refocus: could not ${operation} (${error.code || error.message})\n`);
|
|
64
|
+
let release;
|
|
65
|
+
try {
|
|
66
|
+
release = acquire(stateFile);
|
|
67
|
+
} catch (error) {
|
|
68
|
+
report("coordinate state. Continuing with available evidence", error);
|
|
69
|
+
}
|
|
70
|
+
function read(file) {
|
|
71
|
+
try {
|
|
72
|
+
const state = JSON.parse(fs.readFileSync(file, "utf8"));
|
|
73
|
+
if (state && typeof state === "object" && !Array.isArray(state)) return state;
|
|
74
|
+
throw new Error("expected a state object");
|
|
75
|
+
} catch (error) {
|
|
76
|
+
if (error.code !== "ENOENT") report("read state", error);
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
function write(file, state) {
|
|
81
|
+
const tmp = `${file}.${randomUUID()}.tmp`;
|
|
82
|
+
try {
|
|
83
|
+
fs.writeFileSync(tmp, JSON.stringify(state), { flag: "wx", mode: 0o600 });
|
|
84
|
+
fs.renameSync(tmp, file);
|
|
85
|
+
return true;
|
|
86
|
+
} catch (error) {
|
|
87
|
+
try { fs.unlinkSync(tmp); } catch {}
|
|
88
|
+
report("record state", error);
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
exclusive: Boolean(release),
|
|
95
|
+
close: release || (() => {}),
|
|
96
|
+
read: () => read(stateFile),
|
|
97
|
+
write: (state) => write(stateFile, state),
|
|
98
|
+
readDeferred: (kind) => read(`${stateFile}.${kind}-pending`),
|
|
99
|
+
writeDeferred: (kind, pending) => write(`${stateFile}.${kind}-pending`, pending),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
module.exports = { openRefocusState, processExists };
|
|
@@ -12,6 +12,7 @@ const path = require("node:path");
|
|
|
12
12
|
const crypto = require("node:crypto");
|
|
13
13
|
const { spawnSync } = require("node:child_process");
|
|
14
14
|
const { recordRefocusResult } = require("./refocus-health.cjs");
|
|
15
|
+
const { openRefocusState, processExists } = require("./refocus-state.cjs");
|
|
15
16
|
|
|
16
17
|
// Keep the operator's command lookup order; env-node CLI scripts can also use this hook's Node.
|
|
17
18
|
const childEnv = { ...process.env, PATH: [process.env.PATH, path.dirname(process.execPath)].filter(Boolean).join(path.delimiter) };
|
|
@@ -45,6 +46,18 @@ const lookupTimeout = (reserve = 0) => SELECTED_BUDGET ? Math.min(LOOKUP_CAP_MS,
|
|
|
45
46
|
// Normal managed restore advances on ~30 s polls with a 10 s idle wait.
|
|
46
47
|
// A lost daemon stage must not suppress this occupant's refocus indefinitely.
|
|
47
48
|
const MANAGED_RESTORE_HOLD_MS = 10 * 60_000;
|
|
49
|
+
const DELIVERY_CLAIM_MS = 60_000;
|
|
50
|
+
|
|
51
|
+
function liveDelivery(claim) {
|
|
52
|
+
if (!claim) return false;
|
|
53
|
+
const age = Date.now() - claim.at;
|
|
54
|
+
try {
|
|
55
|
+
if (Number.isSafeInteger(claim.pid) && claim.pid > 0
|
|
56
|
+
&& age >= 0 && age < DELIVERY_CLAIM_MS && processExists(claim.pid)) return true;
|
|
57
|
+
} catch {}
|
|
58
|
+
process.stderr.write("refocus: prior delivery owner could not be confirmed. Attempting the pending refocus\n");
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
48
61
|
|
|
49
62
|
function runtime() {
|
|
50
63
|
const index = process.argv.indexOf("--runtime");
|
|
@@ -373,8 +386,6 @@ function runsForThisSeatsProject(env = process.env) {
|
|
|
373
386
|
const seat = process.env.OPENRIG_SESSION_NAME || "unknown-seat";
|
|
374
387
|
const home = process.env.OPENRIG_HOME || path.join(process.env.HOME || "/tmp", ".openrig");
|
|
375
388
|
const transcriptPath = input.transcript_path || input.transcriptPath || "";
|
|
376
|
-
let size = 0;
|
|
377
|
-
try { size = fs.statSync(transcriptPath).size; } catch {}
|
|
378
389
|
|
|
379
390
|
const stateDir = path.join(home, "refocus");
|
|
380
391
|
|
|
@@ -434,80 +445,139 @@ function runsForThisSeatsProject(env = process.env) {
|
|
|
434
445
|
} catch {}
|
|
435
446
|
|
|
436
447
|
const stateFile = path.join(stateDir, `${seatKey}__${keyFor(identity)}.json`);
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
const
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
448
|
+
// Only the two state transitions need exclusive access. Trace rendering and
|
|
449
|
+
// stdout run outside the guard so an arriving PostCompact can record its work.
|
|
450
|
+
const start = openRefocusState(stateFile);
|
|
451
|
+
const promptId = firstString(input.prompt_id);
|
|
452
|
+
const onDemand = enabled(process.env.OPENRIG_REFOCUS_NOW, false);
|
|
453
|
+
let state, size = 0, grown, claimed;
|
|
454
|
+
const claim = { id: crypto.randomUUID(), pid: process.pid, at: Date.now(), promptId };
|
|
455
|
+
try {
|
|
456
|
+
state = start.read();
|
|
457
|
+
try { size = fs.statSync(transcriptPath).size; } catch {}
|
|
458
|
+
if (state === null) {
|
|
459
|
+
// First observation for this occupant: the baseline is its OWN current size —
|
|
460
|
+
// growth accumulates from here; nothing is inherited. A zero-size read means
|
|
461
|
+
// the transcript is absent/unreadable, which is instrument absence, not a
|
|
462
|
+
// baseline: record zero only when that is what was genuinely measured.
|
|
463
|
+
state = { lastBytes: size, baselineAt: new Date().toISOString() };
|
|
464
|
+
if (start.exclusive) start.write(state);
|
|
465
|
+
} else if (size > 0 && size < Number(state.lastBytes || 0)) {
|
|
466
|
+
// Shrink invalidates growth-based due state, not an exact PostCompact event
|
|
467
|
+
// awaiting its actionable restore turn.
|
|
468
|
+
if (state.pendingOn !== "PostCompact") {
|
|
469
|
+
delete state.pendingOn;
|
|
470
|
+
delete state.pendingAt;
|
|
471
|
+
delete state.pendingFailure;
|
|
472
|
+
delete state.pendingRevision;
|
|
473
|
+
}
|
|
474
|
+
state.lastReset = { at: new Date().toISOString(), fromBytes: Number(state.lastBytes || 0), toBytes: size };
|
|
475
|
+
state.lastBytes = size;
|
|
476
|
+
if (start.exclusive) start.write(state);
|
|
477
|
+
process.stderr.write(`refocus: transcript shrank for ${seat} — baseline reset; PostCompact pending retained if present\n`);
|
|
478
|
+
}
|
|
445
479
|
|
|
446
|
-
|
|
447
|
-
//
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
480
|
+
// An event that could not take the guard records its pending work separately.
|
|
481
|
+
// The delivery callback never writes these slots.
|
|
482
|
+
for (const kind of ["other", "compact"]) {
|
|
483
|
+
const deferred = start.readDeferred(kind);
|
|
484
|
+
if (!deferred?.pendingRevision || state.seenDeferred?.[kind] === deferred.pendingRevision) continue;
|
|
485
|
+
state.pendingRevision = deferred.pendingRevision;
|
|
486
|
+
if (kind === "compact" || !state.pendingOn) {
|
|
487
|
+
state.pendingOn = deferred.pendingOn;
|
|
488
|
+
state.pendingAt = deferred.pendingAt;
|
|
489
|
+
}
|
|
490
|
+
if (kind === "compact") {
|
|
491
|
+
delete state.pendingFailure;
|
|
492
|
+
state.managedRestorePending = deferred.managedRestorePending;
|
|
493
|
+
state.managedRestorePendingAt = deferred.managedRestorePendingAt;
|
|
494
|
+
}
|
|
495
|
+
state.seenDeferred = { ...state.seenDeferred, [kind]: deferred.pendingRevision };
|
|
496
|
+
if (start.exclusive) start.write(state);
|
|
460
497
|
}
|
|
461
|
-
state.lastReset = { at: new Date().toISOString(), fromBytes: Number(state.lastBytes || 0), toBytes: size };
|
|
462
|
-
state.lastBytes = size;
|
|
463
|
-
persist();
|
|
464
|
-
process.stderr.write(`refocus: transcript shrank for ${seat} — baseline reset; PostCompact pending retained if present\n`);
|
|
465
|
-
}
|
|
466
498
|
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
499
|
+
const lastBytes = Number(state.lastBytes || 0);
|
|
500
|
+
grown = size > lastBytes ? size - lastBytes : 0;
|
|
501
|
+
const growthThreshold = threshold();
|
|
502
|
+
const thresholdDue = harness === "claude" && grown >= growthThreshold;
|
|
503
|
+
const due = onDemand
|
|
504
|
+
|| event === "PostCompact"
|
|
505
|
+
|| Boolean(state.pendingOn)
|
|
506
|
+
|| thresholdDue;
|
|
507
|
+
if (start.exclusive && event === "UserPromptSubmit" && promptId && state.lastPromptId === promptId) {
|
|
508
|
+
process.stderr.write("refocus: another handler already wrote refocus output for this prompt\n");
|
|
509
|
+
return;
|
|
510
|
+
}
|
|
511
|
+
if (!due) return;
|
|
512
|
+
|
|
513
|
+
if (event !== "UserPromptSubmit") {
|
|
514
|
+
if (event === "PostCompact" && harness === "claude") {
|
|
515
|
+
// PreCompact records whether THIS compact was initiated by the enforcer.
|
|
516
|
+
// A manual /compact overwrites the marker with false; other occupants
|
|
517
|
+
// cannot hold this session. Read the early sentinel first if it survives.
|
|
518
|
+
state.managedRestorePending = false;
|
|
519
|
+
for (const suffix of [".expected.json", ".json"]) {
|
|
520
|
+
try {
|
|
521
|
+
const marker = JSON.parse(fs.readFileSync(path.join(home, "compaction", "restore-pending", seatKey + suffix), "utf8"));
|
|
522
|
+
if (marker.sessionName !== seat || (marker.sessionId ? marker.sessionId !== identity : !transcriptPath || marker.transcriptPath !== transcriptPath)) continue;
|
|
523
|
+
state.managedRestorePending = marker.managedRefocusPending === true;
|
|
524
|
+
break;
|
|
525
|
+
} catch {}
|
|
526
|
+
}
|
|
527
|
+
if (state.managedRestorePending) state.managedRestorePendingAt = new Date().toISOString();
|
|
528
|
+
else delete state.managedRestorePendingAt;
|
|
490
529
|
}
|
|
491
|
-
|
|
492
|
-
|
|
530
|
+
// A new compaction is a fresh obligation, not a retry of the refocus before it.
|
|
531
|
+
const compact = event === "PostCompact";
|
|
532
|
+
if (compact) delete state.pendingFailure;
|
|
533
|
+
const newWork = compact || !state.pendingOn || onDemand
|
|
534
|
+
|| (thresholdDue && size - (state.deliveryClaim?.bytes ?? lastBytes) >= growthThreshold);
|
|
535
|
+
if (newWork) state.pendingRevision = crypto.randomUUID();
|
|
536
|
+
if (compact || !state.pendingOn) state.pendingOn = event;
|
|
537
|
+
state.pendingAt ||= new Date().toISOString();
|
|
538
|
+
if ((!start.exclusive || !start.write(state)) && newWork) {
|
|
539
|
+
start.writeDeferred(compact ? "compact" : "other", {
|
|
540
|
+
pendingOn: event,
|
|
541
|
+
pendingRevision: state.pendingRevision,
|
|
542
|
+
pendingAt: state.pendingAt,
|
|
543
|
+
...(compact ? {
|
|
544
|
+
managedRestorePending: state.managedRestorePending,
|
|
545
|
+
managedRestorePendingAt: state.managedRestorePendingAt,
|
|
546
|
+
} : {}),
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
return;
|
|
493
550
|
}
|
|
494
|
-
// A new compaction is a fresh obligation, not a retry of the refocus before it.
|
|
495
|
-
if (event === "PostCompact") delete state.pendingFailure;
|
|
496
|
-
if (event === "PostCompact" || !state.pendingOn) state.pendingOn = event;
|
|
497
|
-
state.pendingAt ||= new Date().toISOString();
|
|
498
|
-
persist();
|
|
499
|
-
process.exit(0);
|
|
500
|
-
}
|
|
501
551
|
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
552
|
+
if (start.exclusive && liveDelivery(state.deliveryClaim)) {
|
|
553
|
+
if (onDemand && promptId && state.deliveryClaim.promptId && promptId !== state.deliveryClaim.promptId) {
|
|
554
|
+
const pending = {
|
|
555
|
+
pendingOn: state.pendingOn || event,
|
|
556
|
+
pendingAt: state.pendingAt || new Date().toISOString(),
|
|
557
|
+
pendingRevision: crypto.randomUUID(),
|
|
558
|
+
};
|
|
559
|
+
Object.assign(state, pending);
|
|
560
|
+
if (!start.write(state)) start.writeDeferred("other", pending);
|
|
561
|
+
}
|
|
562
|
+
process.stderr.write("refocus: another hook is delivering. Any later pending work stays queued\n");
|
|
563
|
+
return;
|
|
564
|
+
}
|
|
565
|
+
if (harness === "claude" && state.managedRestorePending) {
|
|
566
|
+
const heldFor = Date.now() - Date.parse(state.managedRestorePendingAt);
|
|
567
|
+
// Missing/invalid timestamps from older state, or a clock moving backwards,
|
|
568
|
+
// cannot establish a live hold. No timer or extra turn is created here.
|
|
569
|
+
if (heldFor >= 0 && heldFor < MANAGED_RESTORE_HOLD_MS
|
|
570
|
+
&& !prompt.startsWith("Please respond to this normal user message now by restoring this Claude session after compaction.")) return;
|
|
571
|
+
delete state.managedRestorePending;
|
|
572
|
+
delete state.managedRestorePendingAt;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
state.pendingOn ||= event;
|
|
576
|
+
state.pendingAt ||= new Date().toISOString();
|
|
577
|
+
state.deliveryClaim = { ...claim, bytes: size };
|
|
578
|
+
claimed = start.exclusive && start.write(state);
|
|
579
|
+
} finally {
|
|
580
|
+
start.close();
|
|
511
581
|
}
|
|
512
582
|
|
|
513
583
|
// Run the public trace before resolving a context ref. Besides keeping the
|
|
@@ -560,10 +630,30 @@ function runsForThisSeatsProject(env = process.env) {
|
|
|
560
630
|
"",
|
|
561
631
|
...body,
|
|
562
632
|
]).join("\n");
|
|
633
|
+
let additionalContext = payload;
|
|
634
|
+
let contextOutput;
|
|
635
|
+
if (runtime() === "codex") {
|
|
636
|
+
// Keep the handler declaration unchanged; Codex's default is 2,500 tokens, ceil(UTF-8 bytes / 4).
|
|
637
|
+
const limitTokens = 2_500;
|
|
638
|
+
const bytes = Buffer.from(payload);
|
|
639
|
+
contextOutput = { status: "full", limitTokens, originalBytes: bytes.length, outputBytes: bytes.length, omittedBytes: 0 };
|
|
640
|
+
if (bytes.length > limitTokens * 4) {
|
|
641
|
+
let fullPath = `${stateFile}.${crypto.randomUUID()}.context.txt`;
|
|
642
|
+
try { fs.writeFileSync(fullPath, payload, { flag: "wx", mode: 0o600 }); }
|
|
643
|
+
catch { fullPath = null; }
|
|
644
|
+
const location = fullPath ? `Full text saved to: ${fullPath}` : "Full text could not be saved.";
|
|
645
|
+
// Reserve the notice before taking the prefix; streaming decode drops an incomplete final UTF-8 character.
|
|
646
|
+
const prefix = new TextDecoder().decode(bytes.subarray(0, Math.max(0, limitTokens * 4 - Buffer.byteLength(location) - 256)), { stream: true });
|
|
647
|
+
const prefixBytes = Buffer.byteLength(prefix);
|
|
648
|
+
const omittedBytes = bytes.length - prefixBytes;
|
|
649
|
+
additionalContext = `${prefix}\n\n[REFOCUS SHORTENED: omitted ${omittedBytes} trailing UTF-8 bytes from the assembled trace, role and standing instructions. ${location}]`;
|
|
650
|
+
contextOutput = { status: "shortened", limitTokens, originalBytes: bytes.length, outputBytes: Buffer.byteLength(additionalContext), prefixBytes, omittedBytes, fullPath };
|
|
651
|
+
}
|
|
652
|
+
}
|
|
563
653
|
const output = JSON.stringify({
|
|
564
654
|
hookSpecificOutput: {
|
|
565
655
|
hookEventName: "UserPromptSubmit",
|
|
566
|
-
additionalContext
|
|
656
|
+
additionalContext,
|
|
567
657
|
},
|
|
568
658
|
});
|
|
569
659
|
process.stdout.write(output, (error) => {
|
|
@@ -571,22 +661,39 @@ function runsForThisSeatsProject(env = process.env) {
|
|
|
571
661
|
// their fixed caps, so a default attempt can run past its 4.5 s budget).
|
|
572
662
|
recordRefocusResult({ home, seat, identity, failed: failed || Boolean(error), env: childEnv,
|
|
573
663
|
deadlineMs: Math.max(BUDGET_MS, Math.floor(process.uptime() * 1_000)) + REPORT_MS });
|
|
574
|
-
if (
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
664
|
+
if (!claimed) return;
|
|
665
|
+
const finish = openRefocusState(stateFile);
|
|
666
|
+
try {
|
|
667
|
+
if (!finish.exclusive) return;
|
|
668
|
+
const latest = finish.read();
|
|
669
|
+
if (latest?.deliveryClaim?.id !== claim.id) return;
|
|
670
|
+
delete latest.deliveryClaim;
|
|
671
|
+
if (!error && promptId) latest.lastPromptId = promptId;
|
|
672
|
+
const samePending = latest.pendingRevision === state.pendingRevision;
|
|
673
|
+
if (failed || error) {
|
|
674
|
+
if (samePending) {
|
|
675
|
+
const failure = rendered.failure
|
|
676
|
+
|| (configured.failure ? `content ref ${configured.contentRef}: ${configured.failure}` : null)
|
|
677
|
+
|| `the refocus could not be written: ${String(error?.message ?? error).replace(/\s+/g, " ").trim()}`;
|
|
678
|
+
latest.pendingFailure = failure.length > PENDING_FAILURE_MAX ? `${failure.slice(0, PENDING_FAILURE_MAX - 1)}…` : failure;
|
|
679
|
+
}
|
|
680
|
+
} else {
|
|
681
|
+
if (size > 0 && latest.lastReset?.at === state.lastReset?.at) latest.lastBytes = size;
|
|
682
|
+
latest.firedAt = new Date().toISOString();
|
|
683
|
+
latest.firedOn = event;
|
|
684
|
+
// Writer completion, not a model-context receipt. A shortened output names its omitted tail and full-text file.
|
|
685
|
+
if (contextOutput) latest.contextOutput = contextOutput;
|
|
686
|
+
else delete latest.contextOutput;
|
|
687
|
+
if (samePending) {
|
|
688
|
+
delete latest.pendingOn;
|
|
689
|
+
delete latest.pendingAt;
|
|
690
|
+
delete latest.pendingFailure;
|
|
691
|
+
delete latest.pendingRevision;
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
finish.write(latest);
|
|
695
|
+
} finally {
|
|
696
|
+
finish.close();
|
|
583
697
|
}
|
|
584
|
-
if (size > 0) state.lastBytes = size;
|
|
585
|
-
state.firedAt = new Date().toISOString();
|
|
586
|
-
state.firedOn = event;
|
|
587
|
-
delete state.pendingOn;
|
|
588
|
-
delete state.pendingAt;
|
|
589
|
-
delete state.pendingFailure;
|
|
590
|
-
persist();
|
|
591
698
|
});
|
|
592
699
|
})();
|
|
@@ -68,7 +68,11 @@ When a tool produces an artifact, do not make every consumer invent a completene
|
|
|
68
68
|
3. Flush and atomically rename the partial artifact to its final path.
|
|
69
69
|
4. Write the manifest, then a `.done` sentinel last.
|
|
70
70
|
|
|
71
|
-
Consumers fail closed on the shared proof
|
|
71
|
+
Consumers of an artifact fail closed on the shared proof: don't read a file before its sentinel exists,
|
|
72
|
+
because it may be half-written. A filename or exit code is not content verification. This rule is for
|
|
73
|
+
artifact integrity only. For delivery, routing and checks, uncertainty fails open: deliver, and report
|
|
74
|
+
what couldn't be checked. The hard lines are the exception: when a change can't tell whether it would
|
|
75
|
+
expose a credential, delete someone's data, spend money or publish, it stops and asks.
|
|
72
76
|
|
|
73
77
|
## Build with an agent SDLC
|
|
74
78
|
|
|
@@ -106,7 +106,7 @@ You are about to lose every connection you have built. Spend this turn making th
|
|
|
106
106
|
3. **Open the map with a summary** of 10 to 20 lines: who you are, what you hold, what mattered in this
|
|
107
107
|
window, what is next and who authorizes it, and any hold in force. **Publish that summary as your seat
|
|
108
108
|
recap** too: save it, plus a line naming the map's path, to a file and run
|
|
109
|
-
`rig context recap-write --
|
|
109
|
+
`rig context recap-write --file <that file>`, which writes your own seat's recap. If your world profile has a seat
|
|
110
110
|
recap atom, it loads this recap, and an old recap would be served as if it were current.
|
|
111
111
|
4. **Then write the connections.** Choose what this seat needs; these are examples, not a template:
|
|
112
112
|
- **State:** rows you hold (id, state), branches and PR heads, the hold or release in force and who gave
|
|
@@ -172,7 +172,8 @@ is not a restore request.
|
|
|
172
172
|
3. **Re-enter the world.** Load the post-compaction world profile your instance provides. Find it with
|
|
173
173
|
`rig context list`; for a private world install, run
|
|
174
174
|
`rig context profile <world-ref> --situation post-compaction --rig <rig> --seat <seat>` (the seat flags are
|
|
175
|
-
needed for its seat-scoped recap atom
|
|
175
|
+
needed for its seat-scoped recap atom: `--rig` is your rig and `--seat` the part of your session name before `@`,
|
|
176
|
+
both from `rig whoami --json`). Without a private world,
|
|
176
177
|
run `rig context profile world-public --situation post-compaction` and `rig context get onboarding-width`. This restores how the system works before you
|
|
177
178
|
restore what you were doing in it. If your work belongs to a project, re-enter its declared context too:
|
|
178
179
|
`rig context work-install` lists what the project declares (intent, context files, skills), so read the pieces
|
|
@@ -851,7 +851,7 @@ rig send <session> "message" --json
|
|
|
851
851
|
- `--wait-for-idle <seconds>` — wait until the target is explicitly idle before sending. **Cannot be combined with `--force`** (that pairing is rejected: exit 1, nothing sent).
|
|
852
852
|
- `--raw` — send exact text/keystrokes without the From/To messaging envelope (still guarded against interactive prompts).
|
|
853
853
|
- `--dangerously-interact --reason "<why>"` — the ONLY override of the prompt/permission guard: deliberately drive an interactive prompt/permission block (implies `--raw`, requires `--reason`, audit-logged).
|
|
854
|
-
On a guard-attached managed seat, a non-menu override stops and shows existing typed/pasted input (author unknown) with `override_input_present
|
|
854
|
+
On a guard-attached managed seat, a non-menu override stops and shows existing typed/pasted input (author unknown) with `override_input_present`. Input it can't read doesn't stop the override: the answer is typed, nothing is cleared, and the result reports the input as unreadable (never empty) with a warning that the answer may join or submit existing text. Recognized dim suggestions are shown separately and count as empty; a collapsed paste shows only its label, not hidden contents.
|
|
855
855
|
Inspect the input, deliberately clear the native prompt with native/tmux controls, then retry. Manual clearing is outside OpenRig's lease and observation checks and is not recorded; human typing can still race a read and paste.
|
|
856
856
|
When you deliberately need to type without that composer check (for example an unsupported input you inspected yourself), add `--type-without-checking` with `--dangerously-interact --reason "<why>"`. It does not clear input and may join or submit existing text. Ordinary sends and wakes keep their current rules.
|
|
857
857
|
- `--host <id>` — send on a remote host declared in `~/.openrig/hosts.yaml` (ssh hosts shell out; http hosts go CLI-direct to the remote daemon).
|
|
@@ -61,7 +61,7 @@ threshold you can see coming; fall back to compaction only when a transition was
|
|
|
61
61
|
cadence, on which surface, and who will hold it after cutover. Carry each duty both in this
|
|
62
62
|
packet and in durable seat state, because recurring duties are the content most often lost at
|
|
63
63
|
a generation boundary while urgent one-off work carries cleanly.
|
|
64
|
-
**Write the seat's recap too:** run `rig context recap-write --
|
|
64
|
+
**Write the seat's recap too:** run `rig context recap-write --file <draft>`
|
|
65
65
|
alongside updating `LEARNED.md`. A `rebuild` reads `RECAP.md` before anything else. The format
|
|
66
66
|
the store checks is in `seat-continuity-and-handover`, "Write the seat's recap before a handover".
|
|
67
67
|
3. **Prime the fresh successor** — `rig walk` the packet into the seat (paced delivery lets the
|
|
@@ -139,22 +139,26 @@ A `rebuild` primes the successor from the seat's durable artifacts, highest trus
|
|
|
139
139
|
first:
|
|
140
140
|
1. the authored `RECAP.md`;
|
|
141
141
|
2. `LEARNED.md`;
|
|
142
|
-
3. the latest restore packet, when one is marked
|
|
143
|
-
|
|
142
|
+
3. the latest restore packet, when one is marked.
|
|
143
|
+
|
|
144
|
+
The superseded recaps follow, newest first, as optional history: the successor reads
|
|
145
|
+
them only when it needs the seat's history.
|
|
144
146
|
|
|
145
147
|
A missing `RECAP.md` is recorded as a gap. The successor is directed to the remaining
|
|
146
148
|
available artifacts in that order. So before a handover, a compaction or a long pause,
|
|
147
149
|
the sitting occupant writes its recap alongside `LEARNED.md`:
|
|
148
150
|
|
|
149
151
|
```sh
|
|
150
|
-
rig context recap-write --
|
|
152
|
+
rig context recap-write --file <draft.md>
|
|
151
153
|
```
|
|
152
154
|
|
|
153
|
-
-
|
|
154
|
-
|
|
155
|
+
- Without `--rig` and `--seat` it writes the calling seat's recap (from `OPENRIG_SESSION_NAME`).
|
|
156
|
+
For another seat, `--seat` is its folder under `rigs/<rig>/seats/`, the part of its session
|
|
157
|
+
name before `@`. A seat's recorded logical id or member id maps to its folder when the daemon
|
|
158
|
+
can check it against the rig's seats.
|
|
155
159
|
- The command reads `topology.root` and doesn't need the daemon.
|
|
156
160
|
- Each write moves the previous recap into the seat's `recap-superseded/` chain,
|
|
157
|
-
which later rebuilds
|
|
161
|
+
which later rebuilds list as history. Write through this command, not a file tool, so
|
|
158
162
|
the chain is kept.
|
|
159
163
|
|
|
160
164
|
**The store refuses the write, and writes nothing,** when a section can't be
|
|
@@ -172,7 +172,7 @@ A packet or marker proves retained/delivered evidence, not successful provider
|
|
|
172
172
|
restoration; measure the resumed seat against the proof standard above.
|
|
173
173
|
|
|
174
174
|
Before a planned compaction, restart or long pause, write the seat's authored recap
|
|
175
|
-
with `rig context recap-write --
|
|
175
|
+
with `rig context recap-write --file <draft>`. Its format is
|
|
176
176
|
in `seat-continuity-and-handover`, "Write the seat's recap before a handover". A
|
|
177
177
|
rebuild reads it before `LEARNED.md`, and a profile source of `seat:RECAP.md` serves
|
|
178
178
|
it after a restore.
|
|
@@ -72,7 +72,8 @@ person needs in their project or home folder and name that path.
|
|
|
72
72
|
|
|
73
73
|
- **Start OpenRig:** `rig daemon status`, and `rig daemon start` if it isn't running. `rig preflight` and `rig doctor`
|
|
74
74
|
don't start it. Starting it also starts OpenRig's own team, the kernel, whose operator sets up the person's team.
|
|
75
|
-
Keep it.
|
|
75
|
+
Keep it. If its output says no person is registered, make the offer it names before you go on, and register only on
|
|
76
|
+
the person's yes ("Who answers OpenRig's questions" below).
|
|
76
77
|
- **If the person uses Codex:** now that OpenRig is running, make the one-time offer under "Codex: one offer, once,
|
|
77
78
|
after OpenRig starts" at the end of this step.
|
|
78
79
|
- **Show them OpenRig, the handoff:** once OpenRig is running, open the OpenRig TUI and operator for the person. Say
|
|
@@ -100,7 +101,10 @@ person needs in their project or home folder and name that path.
|
|
|
100
101
|
dashboard-only fallback; explain the failure and help with the chosen fallback. Herdr is visible only in a terminal
|
|
101
102
|
the person can see; switching the shared TUI to `:terminals` does not open one. No and headless/SSH use are valid
|
|
102
103
|
background outcomes. Provider-only `--provider herdr`, `--provider cmux` or `--provider rex` is for a provider that's
|
|
103
|
-
already running, not the first desktop window, and each such open adds a new workspace.
|
|
104
|
+
already running, not the first desktop window, and each such open adds a new workspace. `--provider herdr-app` opens
|
|
105
|
+
the view in the herdr-app window you run it in (it adds OpenRig's mods there first). Inside a herdr-app
|
|
106
|
+
terminal, plain `rig terminal open <view>` does the same when that window is answering. `--window` always asks for a
|
|
107
|
+
new desktop window.
|
|
104
108
|
- **If the window can't open, or over headless SSH:** say plainly that no visible terminal was opened, and ask the
|
|
105
109
|
person to open a new terminal window or tab on the daemon's host. Over SSH, that's a new SSH session to it with the
|
|
106
110
|
known account. If you only know an HTTP daemon address, ask for the SSH details rather than inventing them. Then
|
|
@@ -142,21 +146,52 @@ person needs in their project or home folder and name that path.
|
|
|
142
146
|
seat sees that name, recorded as declared, and can reply to them if they're registered (`rig gateway human list`).
|
|
143
147
|
A declared name is a claim, not a seat's own identity: for a team that acts only on seat identity, the attached
|
|
144
148
|
shell above is the route.
|
|
149
|
+
- **Who answers OpenRig's questions:** read `rig gateway participants` (its `default:` line) before the handoff.
|
|
150
|
+
- A default person is there: say requests and asks that name nobody go to them (a pairing request or an ask can
|
|
151
|
+
name someone else), and don't offer again.
|
|
152
|
+
- Several people with no default: ask which should get requests nobody is named for (`rig gateway default <id>`),
|
|
153
|
+
or leave it. Never pick one yourself.
|
|
154
|
+
- Nobody is registered: offer it in a sentence or two. OpenRig's questions, such as another machine asking to pair,
|
|
155
|
+
need a person to reach. Ask the name to use (their login name is only a suggestion). On yes, run
|
|
156
|
+
`rig gateway human add <id> --display-name "<name>" --delivery-class B --default`: they're reached in the TUI's Feed
|
|
157
|
+
and Steering, and Slack can be added later. On no or not now, register nothing and say that questions to a person
|
|
158
|
+
can't reach anyone until someone is registered, with that command for later.
|
|
159
|
+
- Never pass `--default` over an existing default, or `--replace`, unless they ask. Their own words decide: a
|
|
160
|
+
different name, Slack now, or not now.
|
|
161
|
+
- An agent reads their answers: the kernel operator, or the agent chosen in `agents.operator_session`. If the kernel
|
|
162
|
+
isn't running here and no agent is chosen, offer to choose the team's lead (`rig config set agents.operator_session
|
|
163
|
+
<seat>@<rig>`), on their yes only.
|
|
164
|
+
- A machine they'll pair with needs its own person: registering here doesn't give that machine one.
|
|
145
165
|
- **Give the operator the goal:** ask what they want worked on, in which repository and on which branch, unless they've
|
|
146
166
|
said. Find the `operator.agent` row in `rig ps --nodes --rig kernel --json`, take its `canonicalSessionName`
|
|
147
167
|
(never the logical ID or a guessed name) and send:
|
|
148
168
|
`rig send <canonicalSessionName> 'This is the agent that installed OpenRig. The person will answer in your pane. Goal: <goal>. Project folder: <absolute path>. Branch: <branch>.'`
|
|
149
169
|
If the person stays here, replace "The person will answer in your pane" with "The person stays with me; send me your questions and
|
|
150
|
-
results to relay." Carry their constraints and any
|
|
170
|
+
results to relay." Carry their constraints and any permission choice they made, chosen or declined, in either handoff.
|
|
151
171
|
Or the person types the goal and folder in the operator's pane. If they give you a goal later, forward it the same
|
|
152
172
|
way. The operator helps them pick a team that fits their logins, starts it (`rig up`) only on their yes to the plan it
|
|
153
173
|
shows, and gives the goal to the team's lead. Before that yes, it says what launching into their folder changes for their own agent there; relay
|
|
154
174
|
that with the question. Show them where the operator answers, and don't build the project yourself.
|
|
175
|
+
- **If you start a team yourself** instead of through the operator, do its fit check first. A built-in team can need a
|
|
176
|
+
sign-in the person doesn't have: `starter` runs its reviewer on Codex, so someone on Claude Code alone stops at a Codex
|
|
177
|
+
sign-in just when the review should start. `rig specs preview <team> --kind rig --json` lists each seat's runtime.
|
|
178
|
+
Check those logins (`claude auth status`, `codex login status`), or go by what the person told you. If one is missing
|
|
179
|
+
or you can't tell, say so before launching and let them choose: the operator adapts the team to the logins they have,
|
|
180
|
+
or they sign in first.
|
|
155
181
|
- **Relay the operator's questions** unless the person declined the Codex offer below and explicitly chose the operator route: the operator asks in its own pane, and the person may not be looking there.
|
|
156
182
|
After each step you hand it, read its screen with `rig capture <canonicalSessionName>`. When it asks the person
|
|
157
183
|
something (start this team? which folder? which option?), ask them here in the operator's words and send their
|
|
158
184
|
answer back with `rig send`, or tell them to answer in the operator's pane. Unlike a prompt or a menu, a question
|
|
159
185
|
doesn't show up as a stopped seat, so don't leave it to a background wait.
|
|
186
|
+
- **If the operator answers with a model error,** such as "… not supported when using Codex with a ChatGPT account", its
|
|
187
|
+
Codex sign-in works but that account can't run the model. OpenRig put the operator on Codex because the sign-in
|
|
188
|
+
passed. Tell the person which model failed. If Claude Code is signed in, offer to move the operator to it; on their
|
|
189
|
+
yes, run
|
|
190
|
+
`rig seat set-runtime <canonicalSessionName> --runtime claude-code --reason "<model> isn't available to this Codex account"`
|
|
191
|
+
(`--dry-run` first). If it isn't, or you can't tell, say so and offer their choices: sign in to Claude Code, or give the
|
|
192
|
+
seat a model their account can run with `rig seat set-model`, then start it again with
|
|
193
|
+
`rig seat launch <seat> --fresh --stop --reason "…"` and check the model it reports. Either way the operator starts a
|
|
194
|
+
new conversation without your handoff, so send it again: the goal, folder, branch, constraints and permission choices.
|
|
160
195
|
- **Installation is finished** when the operator is ready and the person is talking to it; a healthy daemon alone isn't
|
|
161
196
|
that. If they'd rather talk later, keep that choice, leave them the exact connection step and say the handoff to the
|
|
162
197
|
operator is still pending.
|
|
@@ -164,7 +199,8 @@ person needs in their project or home folder and name that path.
|
|
|
164
199
|
running in that repository, tell the operator.
|
|
165
200
|
- **Check it's ready before you say so:** `rig ps --nodes --rig <rig>`. If an agent is stopped at a prompt or a menu,
|
|
166
201
|
read it with `rig capture <seat>@<rig>`. A permission prompt is the person's to answer: show it to them, with any
|
|
167
|
-
others waiting, one line each (seat, exact action, the choices offered).
|
|
202
|
+
others waiting, one line each (seat, exact action, the choices offered). For a commit, also say whether the team's
|
|
203
|
+
review has run; they may be expecting one. Before sending their choice, capture that
|
|
168
204
|
seat again: if its prompt changed, don't reuse the answer. Then send exactly the choice they made for that prompt
|
|
169
205
|
(`rig send --help` says how to send a digit, a letter or Escape to a prompt). A yes to one prompt isn't a
|
|
170
206
|
yes to the next, and never pick a "don't ask again" choice they didn't pick. If they've told you outright to decide a
|
|
@@ -172,6 +208,9 @@ person needs in their project or home folder and name that path.
|
|
|
172
208
|
whole action, answer only when it's clearly inside what they said, and tell them you answered under that instruction,
|
|
173
209
|
not that they said yes. Bring anything unclear or outside it back to them; a command's name or a path that looks like
|
|
174
210
|
their project doesn't show what the action touches. Their instruction changes no permission setting.
|
|
211
|
+
Don't send them to a bare `tmux attach` to answer: relay their choice this way, or point them to that seat in the
|
|
212
|
+
team's terminals the operator opened. If they want fewer prompts, the operator offers once to allow the commands
|
|
213
|
+
that keep asking, for their project only (`applying-a-permission-policy`); tell it what they chose.
|
|
175
214
|
Another kind of menu you can answer with
|
|
176
215
|
the key that screen shows, or ask the person. Capture it again before sending anything more.
|
|
177
216
|
- **Replies:** in a plain shell, other agents can't type into this session. Read work sent to you with
|