@openrig/cli 0.7.24 → 0.7.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/daemon/assets/claude-hook-bridge.cjs +151 -37
- package/daemon/assets/claude-hook-bridge.d.cts +9 -2
- package/daemon/assets/claude-permission-policies.cjs +22 -1
- package/daemon/assets/claude-permission-policies.d.cts +2 -0
- package/daemon/assets/claude-statusline-context.cjs +14 -0
- package/daemon/assets/claude-team-permissions.cjs +54 -6
- package/daemon/assets/guidance/openrig-context-entry.md +4 -5
- package/daemon/assets/guidance/openrig-start.md +3 -0
- package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +2 -2
- package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/README.md +33 -18
- package/daemon/assets/plugins/openrig/hooks/scripts/claude-hook-bridge.cjs +151 -37
- package/daemon/assets/plugins/openrig/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/scripts/run-rig.cjs +16 -13
- package/daemon/assets/plugins/openrig/skills/working-with-an-openrig-team/SKILL.md +32 -19
- package/daemon/assets/plugins/openrig-codex/.codex-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-codex/hooks/scripts/claude-hook-bridge.cjs +151 -37
- package/daemon/assets/plugins/openrig-codex/skills/working-with-an-openrig-team/SKILL.md +32 -19
- package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/hooks/scripts/permission-answer.cjs +3 -2
- package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +47 -14
- package/daemon/assets/plugins/openrig-core/skills/session-compaction-and-restore/SKILL.md +5 -2
- package/daemon/assets/skills/rigs/SKILL.md +99 -34
- package/daemon/assets/skills/rigs/references/installing-for-someone.md +1 -1
- package/daemon/context-packs/help/help.md +9 -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 +179 -25
- package/daemon/context-packs/reference/getting-started.md +73 -11
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +218 -23
- package/daemon/context-packs/reference/whats-new.md +190 -14
- package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
- package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
- package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
- package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/cross-host-rig-commands/SKILL.md +9 -1
- package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/working-with-an-openrig-team/SKILL.md +32 -19
- 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 +47 -14
- package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
- package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
- package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
- package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
- package/daemon/context-packs/skills/session-compaction-and-restore/SKILL.md +5 -2
- 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 +25 -8
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts +2 -0
- package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume.js +44 -8
- package/daemon/dist/adapters/claude-resume.js.map +1 -1
- package/daemon/dist/adapters/codex-resume.d.ts +3 -0
- package/daemon/dist/adapters/codex-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-resume.js +7 -3
- package/daemon/dist/adapters/codex-resume.js.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts +49 -4
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js +238 -25
- package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts +12 -5
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.js +15 -5
- package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/kernel-authority.d.ts +2 -2
- package/daemon/dist/adapters/kernel-authority.d.ts.map +1 -1
- package/daemon/dist/adapters/kernel-authority.js +5 -3
- package/daemon/dist/adapters/kernel-authority.js.map +1 -1
- package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner.js +9 -0
- package/daemon/dist/adapters/pi-runner.js.map +1 -1
- package/daemon/dist/adapters/pi-session-cwd.d.ts +26 -0
- package/daemon/dist/adapters/pi-session-cwd.d.ts.map +1 -0
- package/daemon/dist/adapters/pi-session-cwd.js +89 -0
- package/daemon/dist/adapters/pi-session-cwd.js.map +1 -0
- package/daemon/dist/adapters/shell-quote.d.ts +2 -0
- package/daemon/dist/adapters/shell-quote.d.ts.map +1 -1
- package/daemon/dist/adapters/shell-quote.js +43 -0
- package/daemon/dist/adapters/shell-quote.js.map +1 -1
- package/daemon/dist/adapters/tmux-credential-env.d.ts +15 -2
- package/daemon/dist/adapters/tmux-credential-env.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-credential-env.js +82 -2
- package/daemon/dist/adapters/tmux-credential-env.js.map +1 -1
- package/daemon/dist/adapters/tmux-exec.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-exec.js +2 -6
- package/daemon/dist/adapters/tmux-exec.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +31 -1
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +104 -8
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/attention-surface.d.ts +5 -0
- package/daemon/dist/attention-surface.d.ts.map +1 -1
- package/daemon/dist/attention-surface.js.map +1 -1
- package/daemon/dist/bind-plan-surface.d.ts +3 -0
- package/daemon/dist/bind-plan-surface.d.ts.map +1 -0
- package/daemon/dist/bind-plan-surface.js +5 -0
- package/daemon/dist/bind-plan-surface.js.map +1 -0
- package/daemon/dist/build-info.js +3 -3
- package/daemon/dist/db/all-migrations.d.ts +4 -1
- package/daemon/dist/db/all-migrations.d.ts.map +1 -1
- package/daemon/dist/db/all-migrations.js +30 -393
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrations/187_provider_account_refs.d.ts +8 -0
- package/daemon/dist/db/migrations/187_provider_account_refs.d.ts.map +1 -0
- package/daemon/dist/db/migrations/187_provider_account_refs.js +25 -0
- package/daemon/dist/db/migrations/187_provider_account_refs.js.map +1 -0
- package/daemon/dist/db/migrations/188_provider_account_assignments.d.ts +14 -0
- package/daemon/dist/db/migrations/188_provider_account_assignments.d.ts.map +1 -0
- package/daemon/dist/db/migrations/188_provider_account_assignments.js +45 -0
- package/daemon/dist/db/migrations/188_provider_account_assignments.js.map +1 -0
- package/daemon/dist/db/migrations/191_queue_transfer_activation.d.ts +3 -0
- package/daemon/dist/db/migrations/191_queue_transfer_activation.d.ts.map +1 -0
- package/daemon/dist/db/migrations/191_queue_transfer_activation.js +49 -0
- package/daemon/dist/db/migrations/191_queue_transfer_activation.js.map +1 -0
- package/daemon/dist/db/migrations/191_seat_reap_state.d.ts +3 -0
- package/daemon/dist/db/migrations/191_seat_reap_state.d.ts.map +1 -0
- package/daemon/dist/db/migrations/191_seat_reap_state.js +19 -0
- package/daemon/dist/db/migrations/191_seat_reap_state.js.map +1 -0
- package/daemon/dist/db/migrations/197_session_agent_activity_hooks.d.ts +3 -0
- package/daemon/dist/db/migrations/197_session_agent_activity_hooks.d.ts.map +1 -0
- package/daemon/dist/db/migrations/197_session_agent_activity_hooks.js +9 -0
- package/daemon/dist/db/migrations/197_session_agent_activity_hooks.js.map +1 -0
- package/daemon/dist/db/migrations/200_context_configured_budget.d.ts +3 -0
- package/daemon/dist/db/migrations/200_context_configured_budget.d.ts.map +1 -0
- package/daemon/dist/db/migrations/200_context_configured_budget.js +5 -0
- package/daemon/dist/db/migrations/200_context_configured_budget.js.map +1 -0
- package/daemon/dist/db/migrations/200_seat_cold_start_standby_stop.d.ts +3 -0
- package/daemon/dist/db/migrations/200_seat_cold_start_standby_stop.d.ts.map +1 -0
- package/daemon/dist/db/migrations/200_seat_cold_start_standby_stop.js +5 -0
- package/daemon/dist/db/migrations/200_seat_cold_start_standby_stop.js.map +1 -0
- package/daemon/dist/db/migrations/200_sessions_earlier_handover_origin.d.ts +11 -0
- package/daemon/dist/db/migrations/200_sessions_earlier_handover_origin.d.ts.map +1 -0
- package/daemon/dist/db/migrations/200_sessions_earlier_handover_origin.js +34 -0
- package/daemon/dist/db/migrations/200_sessions_earlier_handover_origin.js.map +1 -0
- package/daemon/dist/db/migrations/201_queue_transitions_archive_actor_index.d.ts +7 -0
- package/daemon/dist/db/migrations/201_queue_transitions_archive_actor_index.d.ts.map +1 -0
- package/daemon/dist/db/migrations/201_queue_transitions_archive_actor_index.js +12 -0
- package/daemon/dist/db/migrations/201_queue_transitions_archive_actor_index.js.map +1 -0
- package/daemon/dist/db/migrations/201_roster_event_index.d.ts +4 -0
- package/daemon/dist/db/migrations/201_roster_event_index.d.ts.map +1 -0
- package/daemon/dist/db/migrations/201_roster_event_index.js +9 -0
- package/daemon/dist/db/migrations/201_roster_event_index.js.map +1 -0
- package/daemon/dist/db/migrations/202_network_requester_questions.d.ts +4 -0
- package/daemon/dist/db/migrations/202_network_requester_questions.d.ts.map +1 -0
- package/daemon/dist/db/migrations/202_network_requester_questions.js +10 -0
- package/daemon/dist/db/migrations/202_network_requester_questions.js.map +1 -0
- package/daemon/dist/db/migrations/203_outbox_runner_receipts_index.d.ts +3 -0
- package/daemon/dist/db/migrations/203_outbox_runner_receipts_index.d.ts.map +1 -0
- package/daemon/dist/db/migrations/203_outbox_runner_receipts_index.js +22 -0
- package/daemon/dist/db/migrations/203_outbox_runner_receipts_index.js.map +1 -0
- package/daemon/dist/domain/activity-taxonomy.d.ts +16 -5
- package/daemon/dist/domain/activity-taxonomy.d.ts.map +1 -1
- package/daemon/dist/domain/activity-taxonomy.js +30 -5
- package/daemon/dist/domain/activity-taxonomy.js.map +1 -1
- package/daemon/dist/domain/agent-activity-store.d.ts +4 -0
- package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
- package/daemon/dist/domain/agent-activity-store.js +21 -0
- package/daemon/dist/domain/agent-activity-store.js.map +1 -1
- package/daemon/dist/domain/agent-images/agent-image-destination.d.ts +15 -0
- package/daemon/dist/domain/agent-images/agent-image-destination.d.ts.map +1 -0
- package/daemon/dist/domain/agent-images/agent-image-destination.js +79 -0
- package/daemon/dist/domain/agent-images/agent-image-destination.js.map +1 -0
- package/daemon/dist/domain/agent-images/agent-image-library-service.d.ts.map +1 -1
- package/daemon/dist/domain/agent-images/agent-image-library-service.js +9 -1
- package/daemon/dist/domain/agent-images/agent-image-library-service.js.map +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.d.ts +4 -3
- package/daemon/dist/domain/bootstrap-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.js +55 -11
- package/daemon/dist/domain/bootstrap-orchestrator.js.map +1 -1
- package/daemon/dist/domain/bundle-content-routing.d.ts +7 -0
- package/daemon/dist/domain/bundle-content-routing.d.ts.map +1 -1
- package/daemon/dist/domain/bundle-content-routing.js +20 -15
- package/daemon/dist/domain/bundle-content-routing.js.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts +40 -1
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.js +101 -11
- package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
- package/daemon/dist/domain/claude-continuation-launch.d.ts +19 -2
- package/daemon/dist/domain/claude-continuation-launch.d.ts.map +1 -1
- package/daemon/dist/domain/claude-continuation-launch.js +143 -3
- package/daemon/dist/domain/claude-continuation-launch.js.map +1 -1
- package/daemon/dist/domain/claude-managed-launch.d.ts +22 -5
- package/daemon/dist/domain/claude-managed-launch.d.ts.map +1 -1
- package/daemon/dist/domain/claude-managed-launch.js +41 -5
- package/daemon/dist/domain/claude-managed-launch.js.map +1 -1
- package/daemon/dist/domain/claude-permission-rules.d.ts +3 -1
- package/daemon/dist/domain/claude-permission-rules.d.ts.map +1 -1
- package/daemon/dist/domain/claude-permission-rules.js +8 -7
- package/daemon/dist/domain/claude-permission-rules.js.map +1 -1
- package/daemon/dist/domain/claude-seat-token.d.ts +25 -1
- package/daemon/dist/domain/claude-seat-token.d.ts.map +1 -1
- package/daemon/dist/domain/claude-seat-token.js +56 -9
- package/daemon/dist/domain/claude-seat-token.js.map +1 -1
- package/daemon/dist/domain/codex-auth.d.ts +34 -0
- package/daemon/dist/domain/codex-auth.d.ts.map +1 -1
- package/daemon/dist/domain/codex-auth.js +212 -0
- package/daemon/dist/domain/codex-auth.js.map +1 -1
- package/daemon/dist/domain/codex-member-permissions.d.ts +17 -0
- package/daemon/dist/domain/codex-member-permissions.d.ts.map +1 -1
- package/daemon/dist/domain/codex-member-permissions.js +80 -0
- package/daemon/dist/domain/codex-member-permissions.js.map +1 -1
- package/daemon/dist/domain/community-harness-launch-result.d.ts +9 -0
- package/daemon/dist/domain/community-harness-launch-result.d.ts.map +1 -1
- package/daemon/dist/domain/community-harness-launch-result.js +14 -2
- package/daemon/dist/domain/community-harness-launch-result.js.map +1 -1
- package/daemon/dist/domain/community-harness-presets.d.ts +15 -0
- package/daemon/dist/domain/community-harness-presets.d.ts.map +1 -1
- package/daemon/dist/domain/community-harness-presets.js +82 -48
- package/daemon/dist/domain/community-harness-presets.js.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts +33 -5
- package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.js +221 -48
- package/daemon/dist/domain/compaction-restore-notice.js.map +1 -1
- package/daemon/dist/domain/context-usage-store.d.ts +1 -0
- package/daemon/dist/domain/context-usage-store.d.ts.map +1 -1
- package/daemon/dist/domain/context-usage-store.js +34 -3
- package/daemon/dist/domain/context-usage-store.js.map +1 -1
- package/daemon/dist/domain/crash-cart-detect.d.ts +7 -0
- package/daemon/dist/domain/crash-cart-detect.d.ts.map +1 -1
- package/daemon/dist/domain/crash-cart-detect.js +10 -5
- package/daemon/dist/domain/crash-cart-detect.js.map +1 -1
- package/daemon/dist/domain/crash-cart-discovery.d.ts +9 -16
- package/daemon/dist/domain/crash-cart-discovery.d.ts.map +1 -1
- package/daemon/dist/domain/crash-cart-discovery.js +22 -40
- package/daemon/dist/domain/crash-cart-discovery.js.map +1 -1
- package/daemon/dist/domain/crash-cart-emit.d.ts +1 -1
- package/daemon/dist/domain/crash-cart-emit.d.ts.map +1 -1
- package/daemon/dist/domain/crash-cart-emit.js +4 -0
- package/daemon/dist/domain/crash-cart-emit.js.map +1 -1
- package/daemon/dist/domain/current-park-arm.d.ts +2 -0
- package/daemon/dist/domain/current-park-arm.d.ts.map +1 -1
- package/daemon/dist/domain/current-park-arm.js +5 -0
- package/daemon/dist/domain/current-park-arm.js.map +1 -1
- package/daemon/dist/domain/current-work.d.ts +16 -4
- package/daemon/dist/domain/current-work.d.ts.map +1 -1
- package/daemon/dist/domain/current-work.js +3 -6
- package/daemon/dist/domain/current-work.js.map +1 -1
- package/daemon/dist/domain/cwd-resolution.d.ts +12 -1
- package/daemon/dist/domain/cwd-resolution.d.ts.map +1 -1
- package/daemon/dist/domain/cwd-resolution.js +39 -2
- package/daemon/dist/domain/cwd-resolution.js.map +1 -1
- package/daemon/dist/domain/draft-aware-delivery.d.ts +17 -2
- package/daemon/dist/domain/draft-aware-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/draft-aware-delivery.js +98 -9
- package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
- package/daemon/dist/domain/draft-held-reoffer.d.ts +61 -0
- package/daemon/dist/domain/draft-held-reoffer.d.ts.map +1 -0
- package/daemon/dist/domain/draft-held-reoffer.js +143 -0
- package/daemon/dist/domain/draft-held-reoffer.js.map +1 -0
- package/daemon/dist/domain/execution-view.d.ts +20 -0
- package/daemon/dist/domain/execution-view.d.ts.map +1 -1
- package/daemon/dist/domain/execution-view.js +50 -16
- package/daemon/dist/domain/execution-view.js.map +1 -1
- package/daemon/dist/domain/gateway/destination-resolver.d.ts +10 -2
- package/daemon/dist/domain/gateway/destination-resolver.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/destination-resolver.js +26 -3
- package/daemon/dist/domain/gateway/destination-resolver.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.js +5 -4
- package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.js +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
- package/daemon/dist/domain/generated-file-hygiene.d.ts.map +1 -1
- package/daemon/dist/domain/generated-file-hygiene.js +35 -2
- package/daemon/dist/domain/generated-file-hygiene.js.map +1 -1
- package/daemon/dist/domain/graph-projection.d.ts +7 -1
- package/daemon/dist/domain/graph-projection.d.ts.map +1 -1
- package/daemon/dist/domain/graph-projection.js +2 -0
- package/daemon/dist/domain/graph-projection.js.map +1 -1
- package/daemon/dist/domain/health-context-samples.d.ts +23 -0
- package/daemon/dist/domain/health-context-samples.d.ts.map +1 -0
- package/daemon/dist/domain/health-context-samples.js +113 -0
- package/daemon/dist/domain/health-context-samples.js.map +1 -0
- package/daemon/dist/domain/health-detectors.d.ts +3 -0
- package/daemon/dist/domain/health-detectors.d.ts.map +1 -1
- package/daemon/dist/domain/health-detectors.js +8 -7
- package/daemon/dist/domain/health-detectors.js.map +1 -1
- package/daemon/dist/domain/home-isolation.d.ts.map +1 -1
- package/daemon/dist/domain/home-isolation.js +21 -8
- package/daemon/dist/domain/home-isolation.js.map +1 -1
- package/daemon/dist/domain/hook-bridge.d.ts +7 -5
- package/daemon/dist/domain/hook-bridge.d.ts.map +1 -1
- package/daemon/dist/domain/hook-bridge.js +12 -11
- package/daemon/dist/domain/hook-bridge.js.map +1 -1
- package/daemon/dist/domain/kernel-boot-tracker.d.ts +7 -5
- package/daemon/dist/domain/kernel-boot-tracker.d.ts.map +1 -1
- package/daemon/dist/domain/kernel-boot-tracker.js +11 -6
- package/daemon/dist/domain/kernel-boot-tracker.js.map +1 -1
- package/daemon/dist/domain/kernel-boot.d.ts.map +1 -1
- package/daemon/dist/domain/kernel-boot.js +6 -2
- package/daemon/dist/domain/kernel-boot.js.map +1 -1
- package/daemon/dist/domain/kernel-hook-review.d.ts +10 -2
- package/daemon/dist/domain/kernel-hook-review.d.ts.map +1 -1
- package/daemon/dist/domain/kernel-hook-review.js +18 -4
- package/daemon/dist/domain/kernel-hook-review.js.map +1 -1
- package/daemon/dist/domain/managed-restore-read-access.d.ts +6 -2
- package/daemon/dist/domain/managed-restore-read-access.d.ts.map +1 -1
- package/daemon/dist/domain/managed-restore-read-access.js +35 -4
- package/daemon/dist/domain/managed-restore-read-access.js.map +1 -1
- package/daemon/dist/domain/mission-control/audit-browse.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/audit-browse.js +1 -0
- package/daemon/dist/domain/mission-control/audit-browse.js.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-action-log.d.ts +3 -1
- package/daemon/dist/domain/mission-control/mission-control-action-log.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-action-log.js +7 -0
- package/daemon/dist/domain/mission-control/mission-control-action-log.js.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts +3 -0
- package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js +56 -13
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
- package/daemon/dist/domain/mission-control/notification-adapter-from-env.d.ts +8 -0
- package/daemon/dist/domain/mission-control/notification-adapter-from-env.d.ts.map +1 -0
- package/daemon/dist/domain/mission-control/notification-adapter-from-env.js +17 -0
- package/daemon/dist/domain/mission-control/notification-adapter-from-env.js.map +1 -0
- package/daemon/dist/domain/model-divergence/codex-thread-homes.d.ts +12 -0
- package/daemon/dist/domain/model-divergence/codex-thread-homes.d.ts.map +1 -0
- package/daemon/dist/domain/model-divergence/codex-thread-homes.js +19 -0
- package/daemon/dist/domain/model-divergence/codex-thread-homes.js.map +1 -0
- package/daemon/dist/domain/native-process-arguments.d.ts +6 -3
- package/daemon/dist/domain/native-process-arguments.d.ts.map +1 -1
- package/daemon/dist/domain/native-process-arguments.js +56 -23
- package/daemon/dist/domain/native-process-arguments.js.map +1 -1
- package/daemon/dist/domain/native-resume-probe.d.ts +9 -0
- package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +15 -1
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/network/hub-client.d.ts +14 -4
- package/daemon/dist/domain/network/hub-client.d.ts.map +1 -1
- package/daemon/dist/domain/network/hub-client.js +26 -9
- package/daemon/dist/domain/network/hub-client.js.map +1 -1
- package/daemon/dist/domain/network/network-connector.d.ts +2 -0
- package/daemon/dist/domain/network/network-connector.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-connector.js +162 -16
- package/daemon/dist/domain/network/network-connector.js.map +1 -1
- package/daemon/dist/domain/network/network-requests.d.ts +4 -1
- package/daemon/dist/domain/network/network-requests.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-requests.js +141 -14
- package/daemon/dist/domain/network/network-requests.js.map +1 -1
- package/daemon/dist/domain/node-inventory.d.ts +47 -0
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +270 -158
- package/daemon/dist/domain/node-inventory.js.map +1 -1
- package/daemon/dist/domain/node-launcher.d.ts +1 -0
- package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/node-launcher.js +13 -5
- package/daemon/dist/domain/node-launcher.js.map +1 -1
- package/daemon/dist/domain/outbox-handler.d.ts +66 -0
- package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
- package/daemon/dist/domain/outbox-handler.js +117 -8
- package/daemon/dist/domain/outbox-handler.js.map +1 -1
- package/daemon/dist/domain/pane-cutover.d.ts +6 -2
- package/daemon/dist/domain/pane-cutover.d.ts.map +1 -1
- package/daemon/dist/domain/pane-cutover.js +14 -4
- package/daemon/dist/domain/pane-cutover.js.map +1 -1
- package/daemon/dist/domain/parked-owner-escalation.d.ts +1 -0
- package/daemon/dist/domain/parked-owner-escalation.d.ts.map +1 -1
- package/daemon/dist/domain/parked-owner-escalation.js +3 -1
- package/daemon/dist/domain/parked-owner-escalation.js.map +1 -1
- package/daemon/dist/domain/parked-query.js +1 -1
- package/daemon/dist/domain/parked-query.js.map +1 -1
- package/daemon/dist/domain/permission-account.d.ts.map +1 -1
- package/daemon/dist/domain/permission-account.js +20 -1
- package/daemon/dist/domain/permission-account.js.map +1 -1
- package/daemon/dist/domain/policies/idle-gate-qitem.d.ts +1 -0
- package/daemon/dist/domain/policies/idle-gate-qitem.d.ts.map +1 -1
- package/daemon/dist/domain/policies/idle-gate-qitem.js +1 -0
- package/daemon/dist/domain/policies/idle-gate-qitem.js.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts +21 -0
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js +185 -26
- package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
- package/daemon/dist/domain/policies/seat-pool.d.ts +2 -1
- package/daemon/dist/domain/policies/seat-pool.d.ts.map +1 -1
- package/daemon/dist/domain/policies/seat-pool.js.map +1 -1
- package/daemon/dist/domain/policies/workflow-keepalive.d.ts +1 -0
- package/daemon/dist/domain/policies/workflow-keepalive.d.ts.map +1 -1
- package/daemon/dist/domain/policies/workflow-keepalive.js +4 -1
- package/daemon/dist/domain/policies/workflow-keepalive.js.map +1 -1
- package/daemon/dist/domain/profile-resolver.d.ts +2 -0
- package/daemon/dist/domain/profile-resolver.d.ts.map +1 -1
- package/daemon/dist/domain/profile-resolver.js +10 -4
- package/daemon/dist/domain/profile-resolver.js.map +1 -1
- package/daemon/dist/domain/project-lifecycle-compiler.d.ts.map +1 -1
- package/daemon/dist/domain/project-lifecycle-compiler.js +35 -1
- package/daemon/dist/domain/project-lifecycle-compiler.js.map +1 -1
- package/daemon/dist/domain/proof/judgments.d.ts +7 -0
- package/daemon/dist/domain/proof/judgments.d.ts.map +1 -1
- package/daemon/dist/domain/proof/judgments.js +18 -10
- package/daemon/dist/domain/proof/judgments.js.map +1 -1
- package/daemon/dist/domain/provider/assignment-apply.d.ts +85 -0
- package/daemon/dist/domain/provider/assignment-apply.d.ts.map +1 -0
- package/daemon/dist/domain/provider/assignment-apply.js +270 -0
- package/daemon/dist/domain/provider/assignment-apply.js.map +1 -0
- package/daemon/dist/domain/provider/assignment-plan.d.ts +150 -0
- package/daemon/dist/domain/provider/assignment-plan.d.ts.map +1 -0
- package/daemon/dist/domain/provider/assignment-plan.js +218 -0
- package/daemon/dist/domain/provider/assignment-plan.js.map +1 -0
- package/daemon/dist/domain/provider/claude-seat-switch.d.ts +1 -1
- package/daemon/dist/domain/provider/claude-seat-switch.d.ts.map +1 -1
- package/daemon/dist/domain/provider/claude-seat-switch.js +37 -6
- package/daemon/dist/domain/provider/claude-seat-switch.js.map +1 -1
- package/daemon/dist/domain/provider/provider-account-assignments.d.ts +64 -0
- package/daemon/dist/domain/provider/provider-account-assignments.d.ts.map +1 -0
- package/daemon/dist/domain/provider/provider-account-assignments.js +75 -0
- package/daemon/dist/domain/provider/provider-account-assignments.js.map +1 -0
- package/daemon/dist/domain/provider/provider-account-refs.d.ts +91 -0
- package/daemon/dist/domain/provider/provider-account-refs.d.ts.map +1 -0
- package/daemon/dist/domain/provider/provider-account-refs.js +164 -0
- package/daemon/dist/domain/provider/provider-account-refs.js.map +1 -0
- package/daemon/dist/domain/provider/provider-collect.d.ts +3 -1
- package/daemon/dist/domain/provider/provider-collect.d.ts.map +1 -1
- package/daemon/dist/domain/provider/provider-collect.js +2 -0
- package/daemon/dist/domain/provider/provider-collect.js.map +1 -1
- package/daemon/dist/domain/provider/provider-service-impl.d.ts +43 -1
- package/daemon/dist/domain/provider/provider-service-impl.d.ts.map +1 -1
- package/daemon/dist/domain/provider/provider-service-impl.js +376 -20
- package/daemon/dist/domain/provider/provider-service-impl.js.map +1 -1
- package/daemon/dist/domain/provider/provider-service.d.ts +82 -6
- package/daemon/dist/domain/provider/provider-service.d.ts.map +1 -1
- package/daemon/dist/domain/provider/provider-types.d.ts +40 -1
- package/daemon/dist/domain/provider/provider-types.d.ts.map +1 -1
- package/daemon/dist/domain/provider/usage-across-hosts.d.ts.map +1 -1
- package/daemon/dist/domain/provider/usage-across-hosts.js +13 -1
- package/daemon/dist/domain/provider/usage-across-hosts.js.map +1 -1
- package/daemon/dist/domain/ps-projection.d.ts +5 -3
- package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
- package/daemon/dist/domain/ps-projection.js +10 -3
- package/daemon/dist/domain/ps-projection.js.map +1 -1
- package/daemon/dist/domain/queue-display.d.ts +7 -0
- package/daemon/dist/domain/queue-display.d.ts.map +1 -0
- package/daemon/dist/domain/queue-display.js +20 -0
- package/daemon/dist/domain/queue-display.js.map +1 -0
- package/daemon/dist/domain/queue-owner.d.ts +4 -2
- package/daemon/dist/domain/queue-owner.d.ts.map +1 -1
- package/daemon/dist/domain/queue-owner.js +7 -5
- package/daemon/dist/domain/queue-owner.js.map +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +104 -24
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +600 -89
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts +4 -0
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +1890 -1817
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/queue-transfer-activation.d.ts +28 -0
- package/daemon/dist/domain/queue-transfer-activation.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-activation.js +187 -0
- package/daemon/dist/domain/queue-transfer-activation.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-mapping.d.ts +31 -0
- package/daemon/dist/domain/queue-transfer-mapping.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-mapping.js +33 -0
- package/daemon/dist/domain/queue-transfer-mapping.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-operation.d.ts +24 -0
- package/daemon/dist/domain/queue-transfer-operation.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-operation.js +41 -0
- package/daemon/dist/domain/queue-transfer-operation.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-parse.d.ts +8 -0
- package/daemon/dist/domain/queue-transfer-parse.d.ts.map +1 -1
- package/daemon/dist/domain/queue-transfer-parse.js +16 -6
- package/daemon/dist/domain/queue-transfer-parse.js.map +1 -1
- package/daemon/dist/domain/queue-transfer-records.d.ts +160 -0
- package/daemon/dist/domain/queue-transfer-records.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-records.js +94 -0
- package/daemon/dist/domain/queue-transfer-records.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-recovery.d.ts +40 -0
- package/daemon/dist/domain/queue-transfer-recovery.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-recovery.js +136 -0
- package/daemon/dist/domain/queue-transfer-recovery.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-relinquish.d.ts +70 -0
- package/daemon/dist/domain/queue-transfer-relinquish.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-relinquish.js +204 -0
- package/daemon/dist/domain/queue-transfer-relinquish.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-review.d.ts +1 -0
- package/daemon/dist/domain/queue-transfer-review.d.ts.map +1 -1
- package/daemon/dist/domain/queue-transfer-review.js +15 -13
- package/daemon/dist/domain/queue-transfer-review.js.map +1 -1
- package/daemon/dist/domain/queue-transfer-staging.d.ts +14 -0
- package/daemon/dist/domain/queue-transfer-staging.d.ts.map +1 -1
- package/daemon/dist/domain/queue-transfer-staging.js +9 -1
- package/daemon/dist/domain/queue-transfer-staging.js.map +1 -1
- package/daemon/dist/domain/queue-transfer-write.d.ts +14 -0
- package/daemon/dist/domain/queue-transfer-write.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-write.js +42 -0
- package/daemon/dist/domain/queue-transfer-write.js.map +1 -0
- package/daemon/dist/domain/queue-transition-log.d.ts +8 -0
- package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
- package/daemon/dist/domain/queue-transition-log.js +27 -14
- package/daemon/dist/domain/queue-transition-log.js.map +1 -1
- package/daemon/dist/domain/queue-waiting.d.ts +10 -1
- package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
- package/daemon/dist/domain/queue-waiting.js +20 -14
- package/daemon/dist/domain/queue-waiting.js.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.d.ts +10 -3
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +60 -23
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/queue-wake-repository.d.ts +1 -0
- package/daemon/dist/domain/queue-wake-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-repository.js +21 -19
- package/daemon/dist/domain/queue-wake-repository.js.map +1 -1
- package/daemon/dist/domain/receiver-context.d.ts +3 -2
- package/daemon/dist/domain/receiver-context.d.ts.map +1 -1
- package/daemon/dist/domain/receiver-context.js +5 -4
- package/daemon/dist/domain/receiver-context.js.map +1 -1
- package/daemon/dist/domain/reconciler.d.ts +2 -0
- package/daemon/dist/domain/reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/reconciler.js +17 -1
- package/daemon/dist/domain/reconciler.js.map +1 -1
- package/daemon/dist/domain/relayed-answers.d.ts +1 -0
- package/daemon/dist/domain/relayed-answers.d.ts.map +1 -1
- package/daemon/dist/domain/relayed-answers.js.map +1 -1
- package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
- package/daemon/dist/domain/restore-check-service.js +9 -3
- package/daemon/dist/domain/restore-check-service.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +7 -0
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +54 -14
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/return-route.d.ts +4 -0
- package/daemon/dist/domain/return-route.d.ts.map +1 -1
- package/daemon/dist/domain/return-route.js +13 -0
- package/daemon/dist/domain/return-route.js.map +1 -1
- package/daemon/dist/domain/rig-mode/operating-posture.d.ts +3 -0
- package/daemon/dist/domain/rig-mode/operating-posture.d.ts.map +1 -1
- package/daemon/dist/domain/rig-mode/operating-posture.js +27 -8
- package/daemon/dist/domain/rig-mode/operating-posture.js.map +1 -1
- package/daemon/dist/domain/rig-status-compose.d.ts +3 -0
- package/daemon/dist/domain/rig-status-compose.d.ts.map +1 -1
- package/daemon/dist/domain/rig-status-compose.js +4 -1
- package/daemon/dist/domain/rig-status-compose.js.map +1 -1
- package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
- package/daemon/dist/domain/rig-teardown.js +3 -2
- package/daemon/dist/domain/rig-teardown.js.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.d.ts +2 -0
- package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.js +38 -2
- package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts +4 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +32 -13
- package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/daemon/dist/domain/rigspec-preflight.d.ts +3 -0
- package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-preflight.js +25 -7
- package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
- package/daemon/dist/domain/roster-ready-notice.d.ts +1 -1
- package/daemon/dist/domain/roster-ready-notice.d.ts.map +1 -1
- package/daemon/dist/domain/roster-ready-notice.js +2 -1
- package/daemon/dist/domain/roster-ready-notice.js.map +1 -1
- package/daemon/dist/domain/runner-permissions.d.ts +3 -2
- package/daemon/dist/domain/runner-permissions.d.ts.map +1 -1
- package/daemon/dist/domain/runner-permissions.js +30 -19
- package/daemon/dist/domain/runner-permissions.js.map +1 -1
- package/daemon/dist/domain/runtime-adapter.d.ts +2 -0
- package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-adapter.js.map +1 -1
- package/daemon/dist/domain/scope/manifest-editor.d.ts +35 -0
- package/daemon/dist/domain/scope/manifest-editor.d.ts.map +1 -0
- package/daemon/dist/domain/scope/manifest-editor.js +197 -0
- package/daemon/dist/domain/scope/manifest-editor.js.map +1 -0
- package/daemon/dist/domain/scope/mission-frontmatter.d.ts +9 -0
- package/daemon/dist/domain/scope/mission-frontmatter.d.ts.map +1 -0
- package/daemon/dist/domain/scope/mission-frontmatter.js +36 -0
- package/daemon/dist/domain/scope/mission-frontmatter.js.map +1 -0
- package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-activity-service.js +53 -20
- package/daemon/dist/domain/seat-activity-service.js.map +1 -1
- package/daemon/dist/domain/seat-cold-start.d.ts +8 -2
- package/daemon/dist/domain/seat-cold-start.d.ts.map +1 -1
- package/daemon/dist/domain/seat-cold-start.js +75 -19
- package/daemon/dist/domain/seat-cold-start.js.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.d.ts +6 -1
- package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.js +23 -2
- package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
- package/daemon/dist/domain/seat-evidence.d.ts +13 -0
- package/daemon/dist/domain/seat-evidence.d.ts.map +1 -0
- package/daemon/dist/domain/seat-evidence.js +29 -0
- package/daemon/dist/domain/seat-evidence.js.map +1 -0
- package/daemon/dist/domain/seat-handover-service.d.ts +5 -1
- package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-handover-service.js +49 -35
- package/daemon/dist/domain/seat-handover-service.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +26 -6
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +108 -17
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/seat-pool-dispatch-guard.d.ts +28 -0
- package/daemon/dist/domain/seat-pool-dispatch-guard.d.ts.map +1 -0
- package/daemon/dist/domain/seat-pool-dispatch-guard.js +123 -0
- package/daemon/dist/domain/seat-pool-dispatch-guard.js.map +1 -0
- package/daemon/dist/domain/seat-pool-executor.d.ts +64 -3
- package/daemon/dist/domain/seat-pool-executor.d.ts.map +1 -1
- package/daemon/dist/domain/seat-pool-executor.js +993 -102
- package/daemon/dist/domain/seat-pool-executor.js.map +1 -1
- package/daemon/dist/domain/seat-pool-slots.d.ts +90 -2
- package/daemon/dist/domain/seat-pool-slots.d.ts.map +1 -1
- package/daemon/dist/domain/seat-pool-slots.js +88 -3
- package/daemon/dist/domain/seat-pool-slots.js.map +1 -1
- package/daemon/dist/domain/seat-pool-spec.d.ts +4 -1
- package/daemon/dist/domain/seat-pool-spec.d.ts.map +1 -1
- package/daemon/dist/domain/seat-pool-spec.js +14 -2
- package/daemon/dist/domain/seat-pool-spec.js.map +1 -1
- package/daemon/dist/domain/seat-reaper-eligibility.d.ts +34 -0
- package/daemon/dist/domain/seat-reaper-eligibility.d.ts.map +1 -0
- package/daemon/dist/domain/seat-reaper-eligibility.js +30 -0
- package/daemon/dist/domain/seat-reaper-eligibility.js.map +1 -0
- package/daemon/dist/domain/seat-reaper-events.d.ts +31 -0
- package/daemon/dist/domain/seat-reaper-events.d.ts.map +1 -0
- package/daemon/dist/domain/seat-reaper-events.js +2 -0
- package/daemon/dist/domain/seat-reaper-events.js.map +1 -0
- package/daemon/dist/domain/seat-reaper-service.d.ts +59 -0
- package/daemon/dist/domain/seat-reaper-service.d.ts.map +1 -0
- package/daemon/dist/domain/seat-reaper-service.js +311 -0
- package/daemon/dist/domain/seat-reaper-service.js.map +1 -0
- package/daemon/dist/domain/seat-reaper-settings.d.ts +14 -0
- package/daemon/dist/domain/seat-reaper-settings.d.ts.map +1 -0
- package/daemon/dist/domain/seat-reaper-settings.js +32 -0
- package/daemon/dist/domain/seat-reaper-settings.js.map +1 -0
- package/daemon/dist/domain/seat-reaper-store.d.ts +19 -0
- package/daemon/dist/domain/seat-reaper-store.d.ts.map +1 -0
- package/daemon/dist/domain/seat-reaper-store.js +45 -0
- package/daemon/dist/domain/seat-reaper-store.js.map +1 -0
- package/daemon/dist/domain/seat-reaper-workspace.d.ts +4 -0
- package/daemon/dist/domain/seat-reaper-workspace.d.ts.map +1 -0
- package/daemon/dist/domain/seat-reaper-workspace.js +43 -0
- package/daemon/dist/domain/seat-reaper-workspace.js.map +1 -0
- package/daemon/dist/domain/seat-restart-in-place.d.ts +11 -3
- package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.js +39 -48
- package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.js +5 -7
- package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
- package/daemon/dist/domain/seat-skill-storage.d.ts.map +1 -1
- package/daemon/dist/domain/seat-skill-storage.js +27 -5
- package/daemon/dist/domain/seat-skill-storage.js.map +1 -1
- package/daemon/dist/domain/seat-standby.d.ts +13 -0
- package/daemon/dist/domain/seat-standby.d.ts.map +1 -0
- package/daemon/dist/domain/seat-standby.js +21 -0
- package/daemon/dist/domain/seat-standby.js.map +1 -0
- package/daemon/dist/domain/seat-startup-text.d.ts +159 -0
- package/daemon/dist/domain/seat-startup-text.d.ts.map +1 -0
- package/daemon/dist/domain/seat-startup-text.js +200 -0
- package/daemon/dist/domain/seat-startup-text.js.map +1 -0
- package/daemon/dist/domain/seat-status-service.d.ts +18 -0
- package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-status-service.js +25 -5
- package/daemon/dist/domain/seat-status-service.js.map +1 -1
- package/daemon/dist/domain/seat-structural-activity-service.d.ts +7 -0
- package/daemon/dist/domain/seat-structural-activity-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-structural-activity-service.js +16 -1
- package/daemon/dist/domain/seat-structural-activity-service.js.map +1 -1
- package/daemon/dist/domain/session-registry.d.ts +15 -3
- package/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.js +52 -5
- package/daemon/dist/domain/session-registry.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +12 -5
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +129 -18
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/shared-conversation.d.ts.map +1 -1
- package/daemon/dist/domain/shared-conversation.js +3 -1
- package/daemon/dist/domain/shared-conversation.js.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.d.ts +2 -2
- package/daemon/dist/domain/slices/slice-indexer.d.ts.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.js +4 -15
- package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
- package/daemon/dist/domain/snapshot-capture.d.ts +4 -1
- package/daemon/dist/domain/snapshot-capture.d.ts.map +1 -1
- package/daemon/dist/domain/snapshot-capture.js +14 -18
- package/daemon/dist/domain/snapshot-capture.js.map +1 -1
- package/daemon/dist/domain/snapshot-repository.d.ts +37 -0
- package/daemon/dist/domain/snapshot-repository.d.ts.map +1 -1
- package/daemon/dist/domain/snapshot-repository.js +68 -0
- package/daemon/dist/domain/snapshot-repository.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts +8 -20
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +94 -27
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.d.ts +4 -1
- package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.js +12 -1
- package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.d.ts +9 -5
- package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.js +17 -6
- package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
- package/daemon/dist/domain/terminal/earlier-tile-attach-0724.d.ts +2 -0
- package/daemon/dist/domain/terminal/earlier-tile-attach-0724.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/earlier-tile-attach-0724.js +54 -0
- package/daemon/dist/domain/terminal/earlier-tile-attach-0724.js.map +1 -0
- package/daemon/dist/domain/terminal/herdr-app-provider.d.ts +28 -3
- package/daemon/dist/domain/terminal/herdr-app-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-app-provider.js +216 -52
- package/daemon/dist/domain/terminal/herdr-app-provider.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-app-state.d.ts +7 -2
- package/daemon/dist/domain/terminal/herdr-app-state.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-app-state.js.map +1 -1
- package/daemon/dist/domain/terminal/terminal-provider.d.ts +17 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/tile-attach.d.ts +4 -4
- package/daemon/dist/domain/terminal/tile-attach.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/tile-attach.js +14 -8
- package/daemon/dist/domain/terminal/tile-attach.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +71 -4
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/usage-samples-store.d.ts.map +1 -1
- package/daemon/dist/domain/usage-samples-store.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 +45 -2
- package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
- package/daemon/dist/domain/view-projector.d.ts.map +1 -1
- package/daemon/dist/domain/view-projector.js +5 -2
- package/daemon/dist/domain/view-projector.js.map +1 -1
- package/daemon/dist/domain/watchdog-delivery.d.ts +3 -0
- package/daemon/dist/domain/watchdog-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-delivery.js +26 -4
- package/daemon/dist/domain/watchdog-delivery.js.map +1 -1
- package/daemon/dist/domain/watchdog-history-log.d.ts +10 -0
- package/daemon/dist/domain/watchdog-history-log.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-history-log.js +35 -1
- package/daemon/dist/domain/watchdog-history-log.js.map +1 -1
- package/daemon/dist/domain/watchdog-job-update.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-job-update.js +29 -4
- package/daemon/dist/domain/watchdog-job-update.js.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.js +4 -1
- package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
- package/daemon/dist/domain/watchdog-scheduler.d.ts +4 -0
- package/daemon/dist/domain/watchdog-scheduler.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-scheduler.js +14 -0
- package/daemon/dist/domain/watchdog-scheduler.js.map +1 -1
- package/daemon/dist/domain/workflow-role-context.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-role-context.js +1 -0
- package/daemon/dist/domain/workflow-role-context.js.map +1 -1
- package/daemon/dist/domain/workflow-role-resolver.d.ts +3 -0
- package/daemon/dist/domain/workflow-role-resolver.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-role-resolver.js +12 -6
- package/daemon/dist/domain/workflow-role-resolver.js.map +1 -1
- package/daemon/dist/domain/workspace/project-catalog.d.ts +7 -0
- package/daemon/dist/domain/workspace/project-catalog.d.ts.map +1 -1
- package/daemon/dist/domain/workspace/project-catalog.js +16 -9
- package/daemon/dist/domain/workspace/project-catalog.js.map +1 -1
- package/daemon/dist/domain/workspace/project-registration.d.ts +5 -1
- package/daemon/dist/domain/workspace/project-registration.d.ts.map +1 -1
- package/daemon/dist/domain/workspace/project-registration.js +11 -7
- package/daemon/dist/domain/workspace/project-registration.js.map +1 -1
- package/daemon/dist/index.d.ts +3 -0
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +14 -4
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/middleware/auth-bearer-token.d.ts +8 -12
- package/daemon/dist/middleware/auth-bearer-token.d.ts.map +1 -1
- package/daemon/dist/middleware/auth-bearer-token.js +18 -36
- package/daemon/dist/middleware/auth-bearer-token.js.map +1 -1
- package/daemon/dist/queue-transfer-records-surface.d.ts +6 -0
- package/daemon/dist/queue-transfer-records-surface.d.ts.map +1 -0
- package/daemon/dist/queue-transfer-records-surface.js +6 -0
- package/daemon/dist/queue-transfer-records-surface.js.map +1 -0
- package/daemon/dist/rig-lookup-surface.d.ts +2 -0
- package/daemon/dist/rig-lookup-surface.d.ts.map +1 -0
- package/daemon/dist/rig-lookup-surface.js +5 -0
- package/daemon/dist/rig-lookup-surface.js.map +1 -0
- package/daemon/dist/routes/activity.d.ts.map +1 -1
- package/daemon/dist/routes/activity.js +4 -3
- 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 +3 -1
- package/daemon/dist/routes/attention.js.map +1 -1
- package/daemon/dist/routes/compaction.d.ts.map +1 -1
- package/daemon/dist/routes/compaction.js +2 -0
- package/daemon/dist/routes/compaction.js.map +1 -1
- package/daemon/dist/routes/mission-control.d.ts.map +1 -1
- package/daemon/dist/routes/mission-control.js +2 -1
- package/daemon/dist/routes/mission-control.js.map +1 -1
- package/daemon/dist/routes/missions.d.ts +3 -6
- package/daemon/dist/routes/missions.d.ts.map +1 -1
- package/daemon/dist/routes/missions.js +42 -76
- package/daemon/dist/routes/missions.js.map +1 -1
- package/daemon/dist/routes/network.d.ts.map +1 -1
- package/daemon/dist/routes/network.js +19 -1
- package/daemon/dist/routes/network.js.map +1 -1
- package/daemon/dist/routes/provider.d.ts.map +1 -1
- package/daemon/dist/routes/provider.js +156 -5
- package/daemon/dist/routes/provider.js.map +1 -1
- package/daemon/dist/routes/queue-transfer.d.ts +9 -0
- package/daemon/dist/routes/queue-transfer.d.ts.map +1 -0
- package/daemon/dist/routes/queue-transfer.js +109 -0
- package/daemon/dist/routes/queue-transfer.js.map +1 -0
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +80 -51
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/rigs.js +3 -0
- package/daemon/dist/routes/rigs.js.map +1 -1
- package/daemon/dist/routes/rigspec.d.ts.map +1 -1
- package/daemon/dist/routes/rigspec.js +4 -0
- package/daemon/dist/routes/rigspec.js.map +1 -1
- package/daemon/dist/routes/seat.d.ts.map +1 -1
- package/daemon/dist/routes/seat.js +19 -3
- package/daemon/dist/routes/seat.js.map +1 -1
- package/daemon/dist/routes/terminal-ws.d.ts +0 -5
- package/daemon/dist/routes/terminal-ws.d.ts.map +1 -1
- package/daemon/dist/routes/terminal-ws.js +0 -6
- package/daemon/dist/routes/terminal-ws.js.map +1 -1
- package/daemon/dist/routes/transport.js +1 -1
- package/daemon/dist/routes/transport.js.map +1 -1
- package/daemon/dist/scope-manifest-surface.d.ts +4 -0
- package/daemon/dist/scope-manifest-surface.d.ts.map +1 -0
- package/daemon/dist/scope-manifest-surface.js +4 -0
- package/daemon/dist/scope-manifest-surface.js.map +1 -0
- package/daemon/dist/server.d.ts +2 -1
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +6 -6
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +126 -61
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/docs/reference/agent-startup-guide.md +26 -4
- package/daemon/docs/reference/agent-state-taxonomy.md +22 -1
- package/daemon/docs/reference/claude-status-line.md +28 -0
- package/daemon/docs/reference/community-harness-examples/hermes/hermes.yaml +3 -0
- package/daemon/docs/reference/community-harness-examples/hermes/openrig-hermes-launch +10 -0
- package/daemon/docs/reference/community-harness-presets.md +79 -8
- package/daemon/docs/reference/daemon-http-clients.md +49 -2
- package/daemon/docs/reference/getting-started.md +73 -11
- package/daemon/docs/reference/harness-runner-contract.md +12 -4
- package/daemon/docs/reference/help.md +9 -0
- package/daemon/docs/reference/herdr-app.md +45 -4
- package/daemon/docs/reference/hosted-members.md +1 -1
- package/daemon/docs/reference/network-connector.md +66 -1
- package/daemon/docs/reference/pi-tool-selection-recovery.md +13 -29
- package/daemon/docs/reference/queue-transfer-activation.md +89 -0
- package/daemon/docs/reference/queue-transfer-staging.md +1 -1
- package/daemon/docs/reference/quickstart.md +4 -4
- package/daemon/docs/reference/refocus-channel.md +21 -0
- package/daemon/docs/reference/rig-bundle.md +25 -0
- package/daemon/docs/reference/rig-spec.md +218 -23
- package/daemon/docs/reference/scoped-operating-posture.md +6 -1
- package/daemon/docs/reference/sdlc-conventions.md +10 -4
- package/daemon/docs/reference/seat-delivery.md +108 -12
- package/daemon/docs/reference/seat-node-targeting.md +2 -2
- package/daemon/docs/reference/seat-pools.md +181 -18
- package/daemon/docs/reference/seat-scaling.md +137 -0
- package/daemon/docs/reference/whats-new.md +190 -14
- package/daemon/specs/agents/development/implementer/guidance/role.md +11 -0
- package/daemon/specs/agents/development/qa/guidance/role.md +5 -0
- package/daemon/specs/agents/shared/skills/core/cross-host-rig-commands/SKILL.md +9 -1
- package/daemon/specs/agents/shared/skills/core/working-with-an-openrig-team/SKILL.md +32 -19
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +8 -3
- package/dist/build-info.js +3 -3
- package/dist/cli-error.d.ts +2 -0
- package/dist/cli-error.d.ts.map +1 -1
- package/dist/cli-error.js +25 -8
- package/dist/cli-error.js.map +1 -1
- package/dist/client.d.ts +1 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +13 -0
- package/dist/client.js.map +1 -1
- package/dist/commands/auth.d.ts.map +1 -1
- package/dist/commands/auth.js +52 -1
- package/dist/commands/auth.js.map +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +3 -0
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/crash-cart.d.ts.map +1 -1
- package/dist/commands/crash-cart.js +65 -17
- package/dist/commands/crash-cart.js.map +1 -1
- package/dist/commands/daemon.d.ts +7 -20
- package/dist/commands/daemon.d.ts.map +1 -1
- package/dist/commands/daemon.js +117 -46
- package/dist/commands/daemon.js.map +1 -1
- package/dist/commands/doctor.d.ts +26 -0
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +148 -2
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/import.d.ts +5 -0
- package/dist/commands/import.d.ts.map +1 -1
- package/dist/commands/import.js +24 -4
- package/dist/commands/import.js.map +1 -1
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/mcp.js +4 -2
- package/dist/commands/mcp.js.map +1 -1
- package/dist/commands/network.d.ts +4 -0
- package/dist/commands/network.d.ts.map +1 -1
- package/dist/commands/network.js +78 -10
- package/dist/commands/network.js.map +1 -1
- package/dist/commands/provider.d.ts +5 -1
- package/dist/commands/provider.d.ts.map +1 -1
- package/dist/commands/provider.js +427 -17
- package/dist/commands/provider.js.map +1 -1
- package/dist/commands/ps.d.ts +16 -1
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +35 -4
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue-transfer.d.ts +10 -0
- package/dist/commands/queue-transfer.d.ts.map +1 -0
- package/dist/commands/queue-transfer.js +140 -0
- package/dist/commands/queue-transfer.js.map +1 -0
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +20 -6
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/scope.d.ts.map +1 -1
- package/dist/commands/scope.js +258 -17
- package/dist/commands/scope.js.map +1 -1
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +132 -23
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/setup.d.ts +34 -0
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/commands/setup.js +111 -18
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/terminal.d.ts +11 -0
- package/dist/commands/terminal.d.ts.map +1 -1
- package/dist/commands/terminal.js +10 -7
- package/dist/commands/terminal.js.map +1 -1
- package/dist/config-store.d.ts +9 -1
- package/dist/config-store.d.ts.map +1 -1
- package/dist/config-store.js +46 -0
- package/dist/config-store.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts +53 -2
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +500 -192
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/daemon-reachability.js +2 -2
- package/dist/daemon-reachability.js.map +1 -1
- package/dist/daemon-start-lock.d.ts +28 -0
- package/dist/daemon-start-lock.d.ts.map +1 -1
- package/dist/daemon-start-lock.js +107 -13
- package/dist/daemon-start-lock.js.map +1 -1
- package/dist/lib/seat-activity.d.ts +4 -1
- package/dist/lib/seat-activity.d.ts.map +1 -1
- package/dist/lib/seat-activity.js +4 -3
- package/dist/lib/seat-activity.js.map +1 -1
- package/dist/mcp-server.d.ts +2 -2
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +126 -27
- package/dist/mcp-server.js.map +1 -1
- package/dist/process-liveness.d.ts +21 -0
- package/dist/process-liveness.d.ts.map +1 -0
- package/dist/process-liveness.js +43 -0
- package/dist/process-liveness.js.map +1 -0
- package/dist/remote-host-ops.d.ts +1 -1
- package/dist/remote-host-ops.d.ts.map +1 -1
- package/dist/remote-host-ops.js +3 -14
- package/dist/remote-host-ops.js.map +1 -1
- package/dist/system-preflight.d.ts +9 -0
- package/dist/system-preflight.d.ts.map +1 -1
- package/dist/system-preflight.js +27 -8
- package/dist/system-preflight.js.map +1 -1
- package/dist/tmux-health.d.ts +10 -1
- package/dist/tmux-health.d.ts.map +1 -1
- package/dist/tmux-health.js +31 -2
- package/dist/tmux-health.js.map +1 -1
- package/package.json +4 -2
- package/scripts/check-abi.mjs +18 -2
- package/tui/dist/attention/attention-model.d.ts +1 -1
- package/tui/dist/attention/attention-model.d.ts.map +1 -1
- package/tui/dist/attention/attention-model.js +6 -0
- package/tui/dist/attention/attention-model.js.map +1 -1
- package/tui/dist/daemon-client.d.ts +21 -2
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js +36 -5
- package/tui/dist/daemon-client.js.map +1 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +6 -2
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/main.js +11 -8
- package/tui/dist/main.js.map +1 -1
- package/tui/dist/terminals/open-window.d.ts +9 -3
- package/tui/dist/terminals/open-window.d.ts.map +1 -1
- package/tui/dist/terminals/open-window.js +22 -4
- package/tui/dist/terminals/open-window.js.map +1 -1
- package/tui/dist/terminals/terminal-model.d.ts +3 -0
- package/tui/dist/terminals/terminal-model.d.ts.map +1 -1
- package/tui/dist/terminals/terminal-model.js +6 -1
- package/tui/dist/terminals/terminal-model.js.map +1 -1
- package/tui/dist/topology/glyphs.d.ts.map +1 -1
- package/tui/dist/topology/glyphs.js +11 -1
- package/tui/dist/topology/glyphs.js.map +1 -1
- package/tui/dist/topology/graph-types.d.ts +8 -0
- package/tui/dist/topology/graph-types.d.ts.map +1 -1
- package/tui/dist/types.d.ts +3 -2
- package/tui/dist/types.d.ts.map +1 -1
- package/ui/dist/assets/{index-DG_7XFcL.js → index-D7OUklzs.js} +148 -148
- package/ui/dist/index.html +1 -1
package/README.md
CHANGED
|
@@ -26,14 +26,14 @@ use:
|
|
|
26
26
|
|
|
27
27
|
```sh
|
|
28
28
|
# Claude Code
|
|
29
|
-
npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.
|
|
29
|
+
npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.26/skills/rigs --skill rigs --agent claude-code
|
|
30
30
|
# Codex
|
|
31
|
-
npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.
|
|
31
|
+
npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.26/skills/rigs --skill rigs --agent codex
|
|
32
32
|
# OMP (Oh My Pi): the pi target installs to .agents/skills, which OMP reads
|
|
33
|
-
npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.
|
|
33
|
+
npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.26/skills/rigs --skill rigs --agent pi
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
**OMP:** this pin installs the shared skill only. The `v0.7.
|
|
36
|
+
**OMP:** this pin installs the shared skill only. The `v0.7.26` skill includes OMP attachment guidance (`rig attach --self … --runtime omp`),
|
|
37
37
|
but complete setup from OMP has not been verified. OMP isn't a kernel provider; Claude Code or Codex must still be
|
|
38
38
|
signed in.
|
|
39
39
|
|
|
@@ -76,11 +76,11 @@ Setting up Node.js on Linux, on a Mac where you aren't an administrator, or on W
|
|
|
76
76
|
|
|
77
77
|
### Install it yourself
|
|
78
78
|
|
|
79
|
-
This runs OpenRig's install script from the `v0.7.
|
|
79
|
+
This runs OpenRig's install script from the `v0.7.26` release. It checks Node.js and npm, installs the latest published `@openrig/cli` with `npm install -g`, runs the Node.js and SQLite check, then runs `rig setup --dry-run` and `rig setup`. The first line prints that plan and changes nothing:
|
|
80
80
|
|
|
81
81
|
```bash
|
|
82
|
-
curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.
|
|
83
|
-
curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.
|
|
82
|
+
curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.26/scripts/install.sh | sh -s -- --dry-run
|
|
83
|
+
curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.26/scripts/install.sh | sh
|
|
84
84
|
```
|
|
85
85
|
|
|
86
86
|
If the last step isn't ready, the installer reports `INSTALLED, SETUP NOT COMPLETE` and points to the details from `rig setup` above. Follow that output and any reported Fix, then rerun `rig setup`; the CLI does not need reinstalling. If the only remaining failures are provider sign-ins, sign in to each selected provider as below and continue.
|
|
@@ -23,9 +23,10 @@
|
|
|
23
23
|
// codex-start Codex SessionStart (async): start one detached watcher for this session and exit 0. A Codex hook
|
|
24
24
|
// can't start a turn itself; `codex queue` can.
|
|
25
25
|
// codex-end Codex SessionEnd: tell this session's watcher to stop.
|
|
26
|
-
// codex-watch <session id> <transcript path>
|
|
26
|
+
// codex-watch <session id> <transcript path> <codex pid> <its start time>
|
|
27
27
|
// The watcher: the same reads, and it wakes the thread with
|
|
28
|
-
// `codex queue --thread <session id> --message … --resume` (exit 0 there means stored, not delivered)
|
|
28
|
+
// `codex queue --thread <session id> --message … --resume` (exit 0 there means stored, not delivered),
|
|
29
|
+
// a backlog in batches that each fit one argument.
|
|
29
30
|
// A failed read or queue is tried again after a longer wait each time, up to five minutes. On a
|
|
30
31
|
// Codex whose `codex queue` has no `--resume`, it queues without it, for the thread's next turn,
|
|
31
32
|
// and says so once in the thread.
|
|
@@ -169,10 +170,16 @@ const RETRY_MAX_MS = 5 * 60 * 1000;
|
|
|
169
170
|
const CONVERSATION_WAITER_MS = (7200 - 120) * 1000;
|
|
170
171
|
/** Without a Codex pid to observe, stop an orphan watcher after this long without rollout growth. */
|
|
171
172
|
const CODEX_IDLE_EXIT_MS = 6 * 3600 * 1000;
|
|
173
|
+
/** How often a Codex watcher that found no `rig` looks again. */
|
|
174
|
+
const NO_RIG_RETRY_MS = 30 * 1000;
|
|
172
175
|
/** A watcher that hasn't ticked for this long isn't live, whatever its recorded pid says. */
|
|
173
176
|
const WATCHER_LIVE_MS = 3 * CONVERSATION_POLL_MS;
|
|
174
|
-
/** A conversation's state folder untouched for this long is removed
|
|
177
|
+
/** A conversation's state folder untouched for this long, the folder and every file in it, is removed, unless the Claude
|
|
178
|
+
* Code process its waiter recorded still runs. */
|
|
175
179
|
const STATE_KEEP_MS = 7 * 24 * 3600 * 1000;
|
|
180
|
+
/** The most one `codex queue --message` carries, in bytes of UTF-8: half of Linux's limit on one argument (MAX_ARG_STRLEN,
|
|
181
|
+
* 32 pages, so 128 KiB with 4 KiB pages), past which the spawn fails with E2BIG. */
|
|
182
|
+
const QUEUE_MESSAGE_MAX_BYTES = 64 * 1024;
|
|
176
183
|
/** Only addresses OpenRig issued for this conversation's own creates are read; a named or inherited route isn't its own. */
|
|
177
184
|
const ISSUED_BASES = new Set(["issued", "issued-actor"]);
|
|
178
185
|
const UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
@@ -262,10 +269,36 @@ function nearestAgentProcess(pid, read) {
|
|
|
262
269
|
}
|
|
263
270
|
return null;
|
|
264
271
|
}
|
|
265
|
-
/** The
|
|
272
|
+
/** The nearest process of that kind (its pid and start time), when it's the nearest agent; null otherwise. */
|
|
266
273
|
function nearestAgent(pid, read, kind) {
|
|
267
274
|
const found = nearestAgentProcess(pid, read);
|
|
268
|
-
return found?.kind === kind ? found.proc
|
|
275
|
+
return found?.kind === kind ? found.proc : null;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/** Whether the process recorded by its pid and start time still runs: a pid given to a later process has another start
|
|
279
|
+
* time. When the start can't be read, whether the pid runs at all, so an unknown isn't taken for ended. */
|
|
280
|
+
function stillRunning(pid, start, { read = processReader(), isAlive = alive } = {}) {
|
|
281
|
+
if (!(pid > 0)) return false;
|
|
282
|
+
const proc = start ? read(pid) : null;
|
|
283
|
+
return proc ? proc.start === start : isAlive(pid);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/** When a conversation's folder last changed: the newest time of the folder and its files. A live watcher's heartbeat
|
|
287
|
+
* rewrites a file that's already there, which changes that file's time and leaves the folder's alone. */
|
|
288
|
+
function touchedAt(folder) {
|
|
289
|
+
let newest = fs.statSync(folder).mtimeMs;
|
|
290
|
+
for (const name of fs.readdirSync(folder)) {
|
|
291
|
+
try { newest = Math.max(newest, fs.statSync(path.join(folder, name)).mtimeMs); } catch { /* removed meanwhile */ }
|
|
292
|
+
}
|
|
293
|
+
return newest;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/** Whether the Claude Code process a conversation's waiter recorded, by its key (`claude:<start>:<pid>`), still runs. */
|
|
297
|
+
function waiterKeyRuns(folder, read) {
|
|
298
|
+
let key = "";
|
|
299
|
+
try { key = String(JSON.parse(fs.readFileSync(path.join(folder, "waiter.json"), "utf8")).key ?? ""); } catch { return false; }
|
|
300
|
+
const at = key.lastIndexOf(":");
|
|
301
|
+
return key.startsWith("claude:") && stillRunning(Number(key.slice(at + 1)), key.slice("claude:".length, at), { read });
|
|
269
302
|
}
|
|
270
303
|
|
|
271
304
|
/** One conversation's state: which waiter or watcher is current, the turn marker, and the tasks already shown. In the
|
|
@@ -290,11 +323,14 @@ function conversationState(runtime, sessionId, { env = process.env, now = Date.n
|
|
|
290
323
|
exists: (name) => fs.existsSync(file(name)),
|
|
291
324
|
remove: (name) => { try { fs.unlinkSync(file(name)); } catch { /* absent */ } },
|
|
292
325
|
log: (line) => { try { fs.appendFileSync(file("wake.log"), `${new Date(now()).toISOString()} ${process.pid} ${line}\n`); } catch { /* best effort */ } },
|
|
293
|
-
|
|
326
|
+
/** Removes the other conversations' folders that have gone a week untouched, unless their Claude Code still runs. */
|
|
327
|
+
prune: (read = processReader()) => {
|
|
294
328
|
try {
|
|
295
329
|
for (const entry of fs.readdirSync(root)) {
|
|
296
330
|
const other = path.join(root, entry);
|
|
297
|
-
|
|
331
|
+
try {
|
|
332
|
+
if (other !== dir && now() - touchedAt(other) > STATE_KEEP_MS && !waiterKeyRuns(other, read)) fs.rmSync(other, { recursive: true, force: true });
|
|
333
|
+
} catch { /* best effort */ }
|
|
298
334
|
}
|
|
299
335
|
} catch { /* best effort */ }
|
|
300
336
|
},
|
|
@@ -319,25 +355,60 @@ function findRig({ env = process.env, projectDir = first(env.CLAUDE_PROJECT_DIR)
|
|
|
319
355
|
/** That `rig`, with --json: what it printed, parsed, or null when it couldn't be read (no daemon, say). */
|
|
320
356
|
function runRig(args, { env = process.env, bin = "rig", spawnSync = require("node:child_process").spawnSync } = {}) {
|
|
321
357
|
try {
|
|
322
|
-
|
|
358
|
+
// A long conversation's complete listing can exceed spawnSync's default 1 MiB stdout cap. The read already
|
|
359
|
+
// asks for all matching rows; don't turn a valid history into an unreadable result before batching its tasks.
|
|
360
|
+
const result = spawnSync(bin, args, { env, encoding: "utf8", timeout: 30000, maxBuffer: Infinity, stdio: ["ignore", "pipe", "ignore"] });
|
|
323
361
|
if (result.error || result.status !== 0) return null;
|
|
324
362
|
return JSON.parse(result.stdout || "null");
|
|
325
363
|
} catch { return null; }
|
|
326
364
|
}
|
|
327
365
|
|
|
328
|
-
/**
|
|
329
|
-
|
|
366
|
+
/** The PATH a login shell of this user gets. Codex runs a session's own commands in a login shell (`bash -lc`), so a `rig`
|
|
367
|
+
* in a folder the login profile adds, such as a `~/.local/bin` made after this app started, runs for the session's agent
|
|
368
|
+
* while the app's own PATH, which its hooks inherit, lacks it. Null when no login shell answers in time. */
|
|
369
|
+
function loginShellPath({ env = process.env, spawnSync = require("node:child_process").spawnSync } = {}) {
|
|
370
|
+
// A profile may print; the PATH is what follows the last mark.
|
|
371
|
+
const mark = "__OPENRIG_LOGIN_PATH__";
|
|
372
|
+
try {
|
|
373
|
+
const result = spawnSync(first(env.SHELL) || "/bin/sh", ["-lc", `printf '%s%s' '${mark}' "$PATH"`],
|
|
374
|
+
{ env, encoding: "utf8", timeout: 10000, stdio: ["ignore", "pipe", "ignore"] });
|
|
375
|
+
if (result.error || result.status !== 0) return null;
|
|
376
|
+
const out = String(result.stdout ?? "");
|
|
377
|
+
const at = out.lastIndexOf(mark);
|
|
378
|
+
return at < 0 ? null : out.slice(at + mark.length).trim() || null;
|
|
379
|
+
} catch { return null; }
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
/** The `rig` this session's own commands would run, with the environment to run it in: findRig's, else the first on a login
|
|
383
|
+
* shell's PATH, run with that PATH so its `node` resolves the same way. Null when neither has one. The hooks read OpenRig
|
|
384
|
+
* through it, and in Claude Code the plugin's MCP server launcher (scripts/run-rig.cjs) starts the server with it. */
|
|
385
|
+
function sessionRig(env, projectDir, loginPath = () => loginShellPath({ env })) {
|
|
330
386
|
const bin = findRig({ env, projectDir });
|
|
331
|
-
|
|
387
|
+
if (bin) return { bin, env };
|
|
388
|
+
const login = loginPath();
|
|
389
|
+
if (!login || login === env.PATH) return null;
|
|
390
|
+
const loginEnv = { ...env, PATH: login };
|
|
391
|
+
const found = findRig({ env: loginEnv, projectDir });
|
|
392
|
+
return found ? { bin: found, env: loginEnv } : null;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/** OpenRig read through sessionRig's `rig`; null when there's no `rig` to run. */
|
|
396
|
+
function sessionRigReader(env, projectDir, loginPath) {
|
|
397
|
+
const rig = sessionRig(env, projectDir, loginPath);
|
|
398
|
+
return rig ? (args) => runRig(args, rig) : null;
|
|
332
399
|
}
|
|
333
400
|
|
|
334
401
|
/** What a conversation is told when there's no `rig`: without it the hooks read nothing, and nothing else would tell the
|
|
335
402
|
* person that the team's questions won't come in by themselves. */
|
|
336
403
|
const NO_RIG_NOTICE = "OpenRig's automatic wake can't run in this conversation: the openrig plugin found no `rig` command "
|
|
337
|
-
+ "(OPENRIG_RIG_BIN doesn't name one, there's none on PATH, and none in this project's
|
|
338
|
-
+ "one, your OpenRig team's questions and replies won't come into this conversation by
|
|
339
|
-
+ "OpenRig where every session finds it (`npm install -g @openrig/cli`)
|
|
340
|
-
+ "in
|
|
404
|
+
+ "(OPENRIG_RIG_BIN doesn't name one, there's none on PATH or on a login shell's PATH, and none in this project's "
|
|
405
|
+
+ "node_modules/.bin). Until it finds one, your OpenRig team's questions and replies won't come into this conversation by "
|
|
406
|
+
+ "themselves. To fix it, install OpenRig where every session finds it (`npm install -g @openrig/cli`) and check that `rig` "
|
|
407
|
+
+ "runs in a new terminal. If it doesn't, or it runs there but not here, put the folder that holds `rig` on PATH in the "
|
|
408
|
+
+ "shell's login profile (`~/.zprofile` for zsh, `~/.bash_profile` or `~/.profile` for bash), not only in `~/.zshrc` or "
|
|
409
|
+
+ "`~/.bashrc`, then restart this app. That folder is the `bin` inside the one `npm prefix -g` prints, or inside the one "
|
|
410
|
+
+ "given to a one-off `npm install -g --prefix`. Or set OPENRIG_RIG_BIN to the full path of `rig` in the environment "
|
|
411
|
+
+ "this app starts with. The plugin says this once, not in every session; tell the person in plain words.\n";
|
|
341
412
|
const NO_RIG = "no-rig.json";
|
|
342
413
|
|
|
343
414
|
/** Says NO_RIG_NOTICE through `say` once for the plugin's install: someone who keeps OpenRig inside one project isn't told
|
|
@@ -511,13 +582,17 @@ async function conversationWaiter({ input = {}, out = process.stderr, deps = {}
|
|
|
511
582
|
if (!state) return 0;
|
|
512
583
|
const now = deps.now ?? Date.now;
|
|
513
584
|
const wait = deps.sleep ?? sleep;
|
|
514
|
-
|
|
585
|
+
// The app's PATH, which the hooks inherit, lacks a folder the login profile adds after it started (a new ~/.local/bin from
|
|
586
|
+
// `npm install -g --prefix ~/.local`), so look on a login shell's PATH too, as the Codex watcher does.
|
|
587
|
+
const rig = deps.rig !== undefined ? deps.rig : sessionRigReader(env, undefined, deps.loginPath);
|
|
515
588
|
// Nothing to read with: tell the conversation the way a task wakes it, once for the plugin's install.
|
|
516
589
|
if (!rig) return (await sayNoRigOnce(state, (text) => writeAll(out, text), now)) ? 2 : 0;
|
|
517
590
|
forgetNoRig(state);
|
|
518
|
-
|
|
591
|
+
// The key names this conversation's Claude Code process: while it runs, another conversation's cleanup keeps this folder,
|
|
592
|
+
// and so what was shown here, however long the conversation sits idle.
|
|
593
|
+
const me = { pid: deps.pid ?? process.pid, startedAt: now(), event: typeof input.hook_event_name === "string" ? input.hook_event_name : "unknown", key };
|
|
519
594
|
state.write("waiter.json", me);
|
|
520
|
-
state.prune();
|
|
595
|
+
state.prune(deps.read);
|
|
521
596
|
state.log(`armed ${me.event} for ${key}`);
|
|
522
597
|
const routes = routeWatch(key, input.transcript_path, rig, now, deps.statSize);
|
|
523
598
|
const deadline = me.startedAt + (deps.waiterMs ?? CONVERSATION_WAITER_MS);
|
|
@@ -566,10 +641,11 @@ function codexStart({ input = {}, deps = {} } = {}) {
|
|
|
566
641
|
const current = state.read("watcher.json", {});
|
|
567
642
|
if (current.pid && (deps.alive ?? alive)(current.pid) && now() - Number(current.beat ?? 0) < WATCHER_LIVE_MS) return 0;
|
|
568
643
|
const spawn = deps.spawn ?? require("node:child_process").spawn;
|
|
569
|
-
// The Codex process this hook runs under, so the watcher stops if it exits without a SessionEnd
|
|
570
|
-
|
|
571
|
-
const
|
|
572
|
-
|
|
644
|
+
// The Codex process this hook runs under, by pid and start time, so the watcher stops if it exits without a SessionEnd,
|
|
645
|
+
// and a later process given its pid doesn't keep the watcher running; none when it can't be seen.
|
|
646
|
+
const codex = deps.codex !== undefined ? deps.codex : nearestAgent(process.pid, processReader(), "codex");
|
|
647
|
+
const child = spawn(process.execPath, [__filename, "codex-watch", sessionId, typeof input.transcript_path === "string" ? input.transcript_path : "",
|
|
648
|
+
String(codex?.pid || 0), codex?.start ?? ""], { detached: true, stdio: "ignore", env, cwd: typeof input.cwd === "string" && input.cwd ? input.cwd : undefined });
|
|
573
649
|
state.write("watcher.json", { pid: child.pid, beat: now() });
|
|
574
650
|
child.unref?.();
|
|
575
651
|
state.log(`started watcher ${child.pid}`);
|
|
@@ -626,9 +702,21 @@ function codexQueuer(sessionId, state, { env = process.env, now = Date.now, run
|
|
|
626
702
|
};
|
|
627
703
|
}
|
|
628
704
|
|
|
629
|
-
/** The
|
|
630
|
-
*
|
|
631
|
-
|
|
705
|
+
/** The tasks in order, in batches whose rendered message fits in `max` bytes of UTF-8; a task too large for any batch goes
|
|
706
|
+
* alone. */
|
|
707
|
+
function byteBatches(fresh, max) {
|
|
708
|
+
const batches = [];
|
|
709
|
+
for (const task of fresh) {
|
|
710
|
+
const last = batches[batches.length - 1];
|
|
711
|
+
if (last && Buffer.byteLength(renderConversationTasks([...last, task])) <= max) last.push(task);
|
|
712
|
+
else batches.push([task]);
|
|
713
|
+
}
|
|
714
|
+
return batches;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
/** The Codex watcher. Returns 0 when its session ended, its Codex process exited (or its pid now names a process that
|
|
718
|
+
* started at another time), a newer watcher replaced it, or its rollout went idle with no Codex process to observe. */
|
|
719
|
+
async function codexWatch({ sessionId = "", transcriptPath = "", codexPid = 0, codexPidStart = "", deps = {} } = {}) {
|
|
632
720
|
const env = deps.env ?? process.env;
|
|
633
721
|
if (inSeat(env) || !UUID_RE.test(sessionId)) return 0;
|
|
634
722
|
const key = `codex:${sessionId.toLowerCase()}`;
|
|
@@ -637,16 +725,21 @@ async function codexWatch({ sessionId = "", transcriptPath = "", codexPid = 0, d
|
|
|
637
725
|
const now = deps.now ?? Date.now;
|
|
638
726
|
const wait = deps.sleep ?? sleep;
|
|
639
727
|
// codex-start runs the watcher in the session's folder, which stands in for Claude Code's CLAUDE_PROJECT_DIR.
|
|
640
|
-
const
|
|
728
|
+
const projectDir = deps.projectDir ?? process.cwd();
|
|
729
|
+
const lookForRig = deps.rig !== undefined ? () => deps.rig : () => sessionRigReader(env, projectDir, deps.loginPath);
|
|
730
|
+
let rig = lookForRig();
|
|
641
731
|
const queue = deps.queue ?? codexQueuer(sessionId, state, { env, now });
|
|
642
732
|
const statSize = deps.statSize ?? ((p) => fs.statSync(p).size);
|
|
643
733
|
const me = deps.pid ?? process.pid;
|
|
644
734
|
state.write("watcher.json", { pid: me, beat: now() });
|
|
645
|
-
state.prune();
|
|
646
|
-
if (!rig) {
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
735
|
+
state.prune(deps.read);
|
|
736
|
+
if (!rig) {
|
|
737
|
+
// The person may install OpenRig in this very conversation, as the rigs skill has them do: keep looking, and watch from
|
|
738
|
+
// the tick a `rig` turns up, instead of leaving the conversation without wakes until a new session.
|
|
739
|
+
await sayNoRigOnce(state, (text) => queue(text).ok, now);
|
|
740
|
+
state.log(`no rig yet: looking again every ${NO_RIG_RETRY_MS / 1000} s while this session runs`);
|
|
741
|
+
}
|
|
742
|
+
let routes = null;
|
|
650
743
|
let size = null;
|
|
651
744
|
let grewAt = now();
|
|
652
745
|
// Consecutive ticks whose read or queue failed: each waits twice as long as the one before, up to RETRY_MAX_MS, so a
|
|
@@ -656,23 +749,43 @@ async function codexWatch({ sessionId = "", transcriptPath = "", codexPid = 0, d
|
|
|
656
749
|
for (;;) {
|
|
657
750
|
if (state.exists("stop.json")) { state.log("stopped: the session ended"); return 0; }
|
|
658
751
|
if (state.read("watcher.json", {}).pid !== me) { state.log("superseded"); return 0; }
|
|
659
|
-
|
|
752
|
+
// Read afresh each tick: a reader keeps the process table it read first.
|
|
753
|
+
if (codexPid > 0 && !stillRunning(codexPid, codexPidStart, { read: deps.read ?? processReader(), isAlive: deps.alive ?? alive })) {
|
|
754
|
+
state.log("stopped: the session's codex process ended");
|
|
755
|
+
return 0;
|
|
756
|
+
}
|
|
660
757
|
state.write("watcher.json", { pid: me, beat: now() });
|
|
661
758
|
let current = null;
|
|
662
759
|
try { current = transcriptPath ? statSize(transcriptPath) : null; } catch { current = null; }
|
|
663
760
|
if (current !== size) { size = current; grewAt = now(); }
|
|
664
761
|
if (codexPid <= 0 && now() - grewAt > CODEX_IDLE_EXIT_MS) { state.log("stopped: the session's rollout went idle"); return 0; }
|
|
762
|
+
if (!rig) {
|
|
763
|
+
await wait(NO_RIG_RETRY_MS);
|
|
764
|
+
rig = lookForRig();
|
|
765
|
+
continue; // The session's checks above run again before the first read.
|
|
766
|
+
}
|
|
767
|
+
if (!routes) {
|
|
768
|
+
forgetNoRig(state);
|
|
769
|
+
state.log(`watching for ${key}`);
|
|
770
|
+
routes = routeWatch(key, transcriptPath, rig, now, statSize);
|
|
771
|
+
}
|
|
665
772
|
const read = routes();
|
|
666
773
|
const fresh = read && freshTasks(read, state, rig);
|
|
667
774
|
if (!fresh) {
|
|
668
775
|
failures += 1;
|
|
669
776
|
state.log(`OpenRig couldn't be read, trying again in ${retryIn() / 1000} s`);
|
|
670
777
|
} else if (fresh.length > 0) {
|
|
671
|
-
|
|
778
|
+
// In order, in batches that each fit one argument with room for the notice codexQueuer may put ahead. Each is marked
|
|
779
|
+
// shown once stored; after one fails, it and the rest come at a later tick.
|
|
780
|
+
let queued = { ok: true, detail: "" };
|
|
781
|
+
for (const batch of byteBatches(fresh, QUEUE_MESSAGE_MAX_BYTES - Buffer.byteLength(NO_RESUME_NOTICE))) {
|
|
782
|
+
queued = queue(renderConversationTasks(batch), { tasks: true });
|
|
783
|
+
if (!queued.ok) break;
|
|
784
|
+
markShown(state, batch);
|
|
785
|
+
state.log(`queued for the thread (stored, not proof it was read): ${batch.map((task) => task.row.qitemId).join(",")}`);
|
|
786
|
+
}
|
|
672
787
|
if (queued.ok) {
|
|
673
788
|
failures = 0;
|
|
674
|
-
markShown(state, fresh);
|
|
675
|
-
state.log(`queued for the thread (stored, not proof it was read): ${fresh.map((task) => task.row.qitemId).join(",")}`);
|
|
676
789
|
} else {
|
|
677
790
|
failures += 1;
|
|
678
791
|
state.log(`codex queue failed, trying again in ${retryIn() / 1000} s: ${queued.detail}`);
|
|
@@ -689,7 +802,8 @@ async function main() {
|
|
|
689
802
|
// A seat keeps its own delivery: the conversation modes end before reading anything.
|
|
690
803
|
if (CONVERSATION_MODES.has(mode) && inSeat()) { process.exitCode = 0; return; }
|
|
691
804
|
if (mode === "codex-watch") {
|
|
692
|
-
await codexWatch({ sessionId: process.argv[3] ?? "", transcriptPath: process.argv[4] ?? "", codexPid: Number(process.argv[5] ?? 0) || 0
|
|
805
|
+
await codexWatch({ sessionId: process.argv[3] ?? "", transcriptPath: process.argv[4] ?? "", codexPid: Number(process.argv[5] ?? 0) || 0,
|
|
806
|
+
codexPidStart: process.argv[6] ?? "" }).catch(() => 0);
|
|
693
807
|
process.exit(0);
|
|
694
808
|
}
|
|
695
809
|
const input = await readHookInput();
|
|
@@ -711,5 +825,5 @@ if (require.main === module) void main();
|
|
|
711
825
|
module.exports = {
|
|
712
826
|
render, waiter, endpoint,
|
|
713
827
|
CONVERSATION_KEY_TAG_PREFIX, conversationKey, conversationKeyTag, processReader, conversationRoutes, renderConversationTasks,
|
|
714
|
-
conversationWaiter, conversationTurn, codexStart, codexEnd, codexWatch, findRig,
|
|
828
|
+
conversationWaiter, conversationTurn, codexStart, codexEnd, codexWatch, findRig, loginShellPath, sessionRig,
|
|
715
829
|
};
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
// The declarations TypeScript callers use (the conversation key, recorded by the CLI and the MCP server
|
|
2
|
-
// is plain CommonJS so the openrig plugin can ship
|
|
1
|
+
// The declarations TypeScript callers use (the conversation key, recorded by the CLI and the MCP server; the plugin's `rig`
|
|
2
|
+
// lookup, which `rig doctor` checks a login shell with); the script itself is plain CommonJS so the openrig plugin can ship
|
|
3
|
+
// and run a copy of it.
|
|
3
4
|
export const CONVERSATION_KEY_TAG_PREFIX: string;
|
|
4
5
|
export function conversationKey(opts?: { pid?: number; env?: NodeJS.ProcessEnv; read?: (pid: number) => { pid: number; ppid: number; start: string; names: string[] } | null }): string | null;
|
|
5
6
|
export function conversationKeyTag(key: string): string;
|
|
7
|
+
export function findRig(opts?: { env?: NodeJS.ProcessEnv; projectDir?: string }): string | null;
|
|
8
|
+
export function loginShellPath(opts?: {
|
|
9
|
+
env?: NodeJS.ProcessEnv;
|
|
10
|
+
spawnSync?: (file: string, args: string[], options: { env?: NodeJS.ProcessEnv; encoding: "utf8"; timeout: number; stdio: unknown }) =>
|
|
11
|
+
{ error?: unknown; status: number | null; stdout?: string | null };
|
|
12
|
+
}): string | null;
|
|
@@ -38,5 +38,26 @@ const TEAM_CLAUDE_ASK = [
|
|
|
38
38
|
"daemon start", "daemon stop", "bundle install", "seat launch", "seat stop", "seat handover", "seat restart",
|
|
39
39
|
"import", "seat set-permissions", "seat decide-permission", "policy apply", "policy permissions apply", "setup", "compact",
|
|
40
40
|
].map(command => `Bash(rig ${command}:*)`);
|
|
41
|
+
// The one seat that keeps a no-prompt path: the host's receiving agent (agents.operator_session) settles the
|
|
42
|
+
// permission requests a person answered, so seat decide-permission doesn't ask there. claude-team-permissions.cjs
|
|
43
|
+
// reads the setting through the seat's own rig, and only when a command names decide-permission.
|
|
44
|
+
const RECEIVING_AGENT_NO_ASK = ["Bash(rig seat decide-permission:*)"];
|
|
45
|
+
// The read-only forms of asked lifecycle commands: with its `read` flag the command shows a plan or a state, and starts,
|
|
46
|
+
// stops, removes or replaces nothing and records no permission choice (each from the command's own help and source), so
|
|
47
|
+
// it runs like --help. Every other form still asks. `destroy --state` destroys state, so it isn't one. `flags` are that
|
|
48
|
+
// command's options that take no value. The argument walk skips values of all other options, including a value that
|
|
49
|
+
// looks like the read flag (`--reason --plan`), and accepts joined values (`--reason=why --plan`).
|
|
50
|
+
const LIFECYCLE_READ_FLAGS = {
|
|
51
|
+
"up": { read: "--plan", flags: ["--non-interruptive", "--no-non-interruptive", "--yes", "--existing", "--json"] },
|
|
52
|
+
"launch": { read: "--plan", flags: ["--json"] },
|
|
53
|
+
"bootstrap": { read: "--plan", flags: ["--yes", "--skip-version-check", "--force", "--json"] },
|
|
54
|
+
"bundle install": { read: "--plan", flags: ["--non-interruptive", "--no-non-interruptive", "--yes", "--skip-version-check", "--force", "--json"] },
|
|
55
|
+
"handover": { read: "--dry-run", flags: ["--recover", "--json"] },
|
|
56
|
+
"seat handover": { read: "--dry-run", flags: ["--recover", "--json"] },
|
|
57
|
+
"seat launch": { read: "--plan", flags: ["--fresh", "--stop", "--json"] },
|
|
58
|
+
"seat restart": { read: "--plan", flags: ["--keep-conversation", "--verify", "--json"] },
|
|
59
|
+
"setup": { read: "--dry-run", flags: ["--json", "--full", "--no-herdr", "--ghostty", "--no-ghostty"] },
|
|
60
|
+
"compact": { read: "--state", flags: ["--json", "--skip-map", "--cancel"] },
|
|
61
|
+
};
|
|
41
62
|
|
|
42
|
-
module.exports = { KERNEL_CLAUDE_ALLOW, TEAM_CLAUDE_ALLOW, TEAM_CLAUDE_ASK };
|
|
63
|
+
module.exports = { KERNEL_CLAUDE_ALLOW, TEAM_CLAUDE_ALLOW, TEAM_CLAUDE_ASK, RECEIVING_AGENT_NO_ASK, LIFECYCLE_READ_FLAGS };
|
|
@@ -41,6 +41,9 @@ process.stdin.on("end", () => {
|
|
|
41
41
|
total_output_tokens: contextWindow.total_output_tokens ?? null,
|
|
42
42
|
current_usage: contextWindow.current_usage ?? null,
|
|
43
43
|
},
|
|
44
|
+
// Capture the session environment, never the daemon's environment. Other native
|
|
45
|
+
// settings and runtime defaults are not observable through this payload.
|
|
46
|
+
configured_budget_tokens: configuredBudgetTokens(contextWindow.context_window_size),
|
|
44
47
|
session_id: raw.session_id ?? null,
|
|
45
48
|
session_name: raw.session_name ?? null,
|
|
46
49
|
occupant_generation: process.env.OPENRIG_OCCUPANT_GENERATION || process.env.RIGGED_OCCUPANT_GENERATION || null,
|
|
@@ -78,6 +81,17 @@ process.stdin.on("end", () => {
|
|
|
78
81
|
}
|
|
79
82
|
});
|
|
80
83
|
|
|
84
|
+
function configuredBudgetTokens(windowSize) {
|
|
85
|
+
const value = process.env.CLAUDE_CODE_AUTO_COMPACT_WINDOW || "";
|
|
86
|
+
// Plain token counts in the documented range work across versions. Suffixes,
|
|
87
|
+
// invalid values and native defaults have version-dependent interpretations.
|
|
88
|
+
if (!/^[0-9]+$/.test(value)) return null;
|
|
89
|
+
const tokens = Number(value);
|
|
90
|
+
if (!Number.isSafeInteger(tokens) || tokens < 100000 || tokens > 1000000
|
|
91
|
+
|| !Number.isSafeInteger(windowSize) || windowSize <= 0) return null;
|
|
92
|
+
return Math.min(tokens, windowSize);
|
|
93
|
+
}
|
|
94
|
+
|
|
81
95
|
function resolveOutputPath(target, raw) {
|
|
82
96
|
if (target.endsWith(".json")) {
|
|
83
97
|
return target;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
// policy; this file never reads or writes a person's permission settings.
|
|
5
5
|
// This is command convenience, not containment (test runners can execute code).
|
|
6
6
|
const { basename, isAbsolute } = require("node:path");
|
|
7
|
+
const { spawnSync } = require("node:child_process");
|
|
7
8
|
|
|
8
9
|
function scanQuotes(text, keepDouble = false, initial = "", arithmetic = 0) {
|
|
9
10
|
let out = "", state = initial, start = 0, arithmeticStart = 0, wordStarted = Boolean(initial);
|
|
@@ -206,6 +207,27 @@ function helpOnly(tokens, prefixLength) {
|
|
|
206
207
|
&& args.slice(0, help).every(t => !t.value.startsWith("-"));
|
|
207
208
|
}
|
|
208
209
|
|
|
210
|
+
// A lifecycle command's read-only form (LIFECYCLE_READ_FLAGS): its read flag among literal arguments, before any `--`,
|
|
211
|
+
// with no `--` before the subcommand, and not where an option before it could take it as a value. It only shows a plan
|
|
212
|
+
// or a state, so, like help, it doesn't ask.
|
|
213
|
+
function readOnly(tokens, prefix, prefixLength) {
|
|
214
|
+
const form = require("./claude-permission-policies.cjs").LIFECYCLE_READ_FLAGS[prefix.slice(1).join(" ")];
|
|
215
|
+
if (!form || tokens.slice(1, prefixLength).some(t => t.value === "--")) return false;
|
|
216
|
+
const args = tokens.slice(prefixLength);
|
|
217
|
+
if (!args.every(t => t.literal)) return false;
|
|
218
|
+
const end = args.findIndex(t => t.value === "--");
|
|
219
|
+
const scan = end === -1 ? args : args.slice(0, end);
|
|
220
|
+
for (let i = 0; i < scan.length; i++) {
|
|
221
|
+
const value = scan[i].value;
|
|
222
|
+
if (value === form.read) return true;
|
|
223
|
+
// A joined value is already consumed. A declared boolean consumes nothing;
|
|
224
|
+
// other options take the next word, even when that word looks like a flag.
|
|
225
|
+
// A lone `-` is an operand, as commander reads it (an option is longer than one character).
|
|
226
|
+
if (value.length > 1 && value.startsWith("-") && !value.includes("=") && !form.flags.includes(value)) i++;
|
|
227
|
+
}
|
|
228
|
+
return false;
|
|
229
|
+
}
|
|
230
|
+
|
|
209
231
|
function decide(command, policy, depth = 0) {
|
|
210
232
|
if (depth > 4) return undefined;
|
|
211
233
|
const { main, expanding } = splitHeredocs(command);
|
|
@@ -231,7 +253,7 @@ function decide(command, policy, depth = 0) {
|
|
|
231
253
|
const tokens = normalize(command.slice(i));
|
|
232
254
|
for (const prefix of asks) {
|
|
233
255
|
const end = prefixEnd(tokens, prefix);
|
|
234
|
-
if (end !== undefined && !helpOnly(tokens, end)) return "ask";
|
|
256
|
+
if (end !== undefined && !helpOnly(tokens, end) && !readOnly(tokens, prefix, end)) return "ask";
|
|
235
257
|
}
|
|
236
258
|
}
|
|
237
259
|
}
|
|
@@ -240,7 +262,32 @@ function decide(command, policy, depth = 0) {
|
|
|
240
262
|
return prefixes(policy.allow).some(prefix => prefixEnd(tokens, prefix) !== undefined) ? "allow" : undefined;
|
|
241
263
|
}
|
|
242
264
|
|
|
243
|
-
|
|
265
|
+
// Whether this seat is the host's receiving agent (agents.operator_session), read through the seat's own rig so the
|
|
266
|
+
// setting resolves as that seat's commands see it. A seat with no session name, or a setting that can't be read,
|
|
267
|
+
// isn't the receiving agent, so the ask stays.
|
|
268
|
+
function isReceivingAgent(env = process.env, run = spawnSync) {
|
|
269
|
+
const self = (env.OPENRIG_SESSION_NAME || env.RIGGED_SESSION_NAME || "").trim();
|
|
270
|
+
if (!self) return false;
|
|
271
|
+
try {
|
|
272
|
+
const result = run("rig", ["config", "get", "agents.operator_session", "--json"], { env, encoding: "utf8", timeout: 3000 });
|
|
273
|
+
if (result.status !== 0) return false;
|
|
274
|
+
const value = JSON.parse(result.stdout).value;
|
|
275
|
+
return typeof value === "string" && value.trim() === self;
|
|
276
|
+
} catch {
|
|
277
|
+
return false;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
// The team policy for one command. On the receiving agent, seat decide-permission keeps its no-prompt path, since
|
|
282
|
+
// that seat settles the permission requests a person answered; every other team seat asks. The setting is read only
|
|
283
|
+
// when the command names decide-permission.
|
|
284
|
+
function teamPolicy(command, env = process.env, receivingAgent = isReceivingAgent) {
|
|
285
|
+
const { TEAM_CLAUDE_ALLOW, TEAM_CLAUDE_ASK, RECEIVING_AGENT_NO_ASK } = require("./claude-permission-policies.cjs");
|
|
286
|
+
const exempt = command.includes("decide-permission") && receivingAgent(env);
|
|
287
|
+
return { allow: TEAM_CLAUDE_ALLOW, ask: exempt ? TEAM_CLAUDE_ASK.filter(rule => !RECEIVING_AGENT_NO_ASK.includes(rule)) : TEAM_CLAUDE_ASK };
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
module.exports = { decide, teamPolicy, isReceivingAgent };
|
|
244
291
|
if (require.main === module) {
|
|
245
292
|
let raw = "";
|
|
246
293
|
process.stdin.setEncoding("utf8");
|
|
@@ -251,11 +298,12 @@ if (require.main === module) {
|
|
|
251
298
|
if (input.tool_name !== "Bash" || typeof input.tool_input?.command !== "string") return;
|
|
252
299
|
const kind = process.argv[2];
|
|
253
300
|
let policy;
|
|
254
|
-
if (kind === "kernel"
|
|
301
|
+
if (kind === "kernel") {
|
|
255
302
|
// Each invocation reads the installed lists; native inline allowances remain as launched.
|
|
256
|
-
const { KERNEL_CLAUDE_ALLOW
|
|
257
|
-
policy =
|
|
258
|
-
|
|
303
|
+
const { KERNEL_CLAUDE_ALLOW } = require("./claude-permission-policies.cjs");
|
|
304
|
+
policy = { allow: KERNEL_CLAUDE_ALLOW, ask: [] };
|
|
305
|
+
} else if (kind === "team") {
|
|
306
|
+
policy = teamPolicy(input.tool_input.command);
|
|
259
307
|
} else {
|
|
260
308
|
// Existing running sessions still carry their encoded launch policy.
|
|
261
309
|
policy = JSON.parse(Buffer.from(kind, "base64").toString("utf8"));
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
# Finding your skills and context
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
- **
|
|
6
|
-
- **
|
|
7
|
-
- **Your work:** `rig context work-install` lists what your project declares: its intent, context files and skills.
|
|
3
|
+
- **Claude Code Bash:** one plain `rig` command per call; row text via `--body-file`. See `openrig-user` for the method and why compound commands can prompt.
|
|
4
|
+
- **Skills:** `openrig-skills` routes tasks; `rig skill loadout --seat self` lists your seat's skills.
|
|
5
|
+
- **Help:** `rig context get help` for OpenRig problems; `rig context list` lists available context.
|
|
6
|
+
- **Your work:** `rig context work-install` lists declared project intent, context and skills.
|
|
8
7
|
- **Asking another team:** if `rig whoami` names a network binding, `rig network peers` lists whom you can ask and `rig network request` sends a request (experimental and unsupported, at your own risk). `rig network request --help` says how to be woken when its answer lands.
|
|
9
8
|
- **What your rig and seat have learned:** `LEARNED.md` in `$(rig config get topology.root)/rigs/<rig>/` for the rig, and in its `seats/<seat>/` for your seat (`rig whoami --json` names both).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openrig",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.26",
|
|
4
4
|
"description": "Work with your OpenRig team from your coding agent: hand it work, follow that work, answer its questions and read what it returns.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Mike Schwarz",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"seat": {
|
|
26
26
|
"type": "string",
|
|
27
27
|
"title": "OpenRig seat",
|
|
28
|
-
"description": "This app's address on your OpenRig team, such as cursor@my-team. Your requests are recorded as coming from it,
|
|
28
|
+
"description": "This app's address on your OpenRig team, such as cursor@my-team. Your requests are recorded as coming from it. In Claude Code, the team's questions about them come back to this chat; elsewhere, to this seat.",
|
|
29
29
|
"required": false,
|
|
30
30
|
"default": ""
|
|
31
31
|
}
|