@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { codexEnvelopeArgs } from "../domain/codex-rebuild-permissions.js";
|
|
2
|
-
import { codexMemberLaunch, observeCodexEnvelope, readProfileFingerprint } from "../domain/codex-member-permissions.js";
|
|
2
|
+
import { codexMemberLaunch, observeCodexEnvelope, readProfileFingerprint, runningSeatPermissions, withSeatGitDirs } from "../domain/codex-member-permissions.js";
|
|
3
3
|
import { codexPolicyWarning, resolveCodexFilesystemHome, verifyCodexFilesystemPolicy } from "../domain/codex-filesystem-preflight.js";
|
|
4
4
|
import { operationalLaunchArg } from "./kernel-authority.js";
|
|
5
5
|
import nodePath from "node:path";
|
|
@@ -9,7 +9,9 @@ import { execFile } from "node:child_process";
|
|
|
9
9
|
import { createRequire } from "node:module";
|
|
10
10
|
import os from "node:os";
|
|
11
11
|
import { isDeepStrictEqual } from "node:util";
|
|
12
|
+
import { readNativeProcessLaunches } from "../domain/native-process-arguments.js";
|
|
12
13
|
import { parse as parseToml } from "smol-toml";
|
|
14
|
+
import { isMissingTmuxServer } from "./tmux.js";
|
|
13
15
|
import { tmuxAttachCommand } from "./tmux-server.js";
|
|
14
16
|
import { codexPostureArg } from "./yolo-mode.js";
|
|
15
17
|
import { resolveConcreteHint } from "../domain/runtime-adapter.js";
|
|
@@ -108,6 +110,9 @@ export class CodexRuntimeAdapter {
|
|
|
108
110
|
resolveCorePluginDir;
|
|
109
111
|
// Whether a node's resolved plugin selection includes openrig-core (the test that also gives it OPENRIG_SEAT_PROJECT_DIR).
|
|
110
112
|
resolveCorePluginSelected;
|
|
113
|
+
// #3385: the Codex seats OpenRig records, for the check that holds an openrig-core upgrade while one runs in that home.
|
|
114
|
+
listCodexSeats;
|
|
115
|
+
readCodexHomes;
|
|
111
116
|
runCodexCli;
|
|
112
117
|
// One Codex config.toml per adapter: launches, the boot step and resume all write it (and Codex's install writes it too),
|
|
113
118
|
// so each of those runs its whole setup under this one lock, one after another.
|
|
@@ -124,6 +129,8 @@ export class CodexRuntimeAdapter {
|
|
|
124
129
|
this.managedBlockRecords = deps.managedBlockRecords;
|
|
125
130
|
this.resolveCorePluginDir = deps.resolveCorePluginDir;
|
|
126
131
|
this.resolveCorePluginSelected = deps.resolveCorePluginSelected;
|
|
132
|
+
this.listCodexSeats = deps.listCodexSeats;
|
|
133
|
+
this.readCodexHomes = deps.readCodexHomes ?? readRunningCodexHomes;
|
|
127
134
|
this.runCodexCli = deps.runCodexCli ?? defaultCodexCli;
|
|
128
135
|
this.codexSystemConfigDir = deps.codexSystemConfigDir ?? "/etc/codex";
|
|
129
136
|
this.tmux = deps.tmux;
|
|
@@ -241,7 +248,8 @@ export class CodexRuntimeAdapter {
|
|
|
241
248
|
}
|
|
242
249
|
/**
|
|
243
250
|
* Boot step, run after the plugin is vendored: install openrig-core into Codex only when hooks are enabled and some
|
|
244
|
-
* Codex seat's resolved selection includes it. A daemon whose Codex seats didn't select it never installs it.
|
|
251
|
+
* Codex seat's resolved selection includes it. A daemon whose Codex seats didn't select it never installs it. An
|
|
252
|
+
* upgrade waits while a Codex seat runs in the daemon's Codex home (#3385).
|
|
245
253
|
*/
|
|
246
254
|
async ensureCodexCorePluginAtBoot(anySeatSelected) {
|
|
247
255
|
if (!anySeatSelected || !this.resolveHooksEnabled)
|
|
@@ -257,13 +265,39 @@ export class CodexRuntimeAdapter {
|
|
|
257
265
|
}
|
|
258
266
|
});
|
|
259
267
|
}
|
|
268
|
+
/**
|
|
269
|
+
* #3385: a Codex start that resumes a conversation (an in-place restart, once its old Codex has stopped, or a restore)
|
|
270
|
+
* completes an openrig-core upgrade waiting in its home, before its Codex starts, once no other Codex seat runs there.
|
|
271
|
+
* It never makes a first install. Returns why the upgrade still waits, for the start's own result; undefined otherwise.
|
|
272
|
+
*/
|
|
273
|
+
async upgradeCorePluginForResume(nodeId, home) {
|
|
274
|
+
if (!this.resolveCorePluginSelected || !this.resolveHooksEnabled)
|
|
275
|
+
return undefined;
|
|
276
|
+
const resolveHooksEnabled = this.resolveHooksEnabled;
|
|
277
|
+
return this.withConfigLock(async () => {
|
|
278
|
+
try {
|
|
279
|
+
if (!(await resolveHooksEnabled()))
|
|
280
|
+
return undefined;
|
|
281
|
+
const result = await this.ensureCodexCorePlugin(home, { exceptNodeId: nodeId, upgradeOnly: true });
|
|
282
|
+
return result.outcome === "deferred" ? result.reason : undefined;
|
|
283
|
+
}
|
|
284
|
+
catch (err) {
|
|
285
|
+
console.error(`[openrig] runtime setup warning: ${err.message}`);
|
|
286
|
+
return undefined;
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
}
|
|
260
290
|
/**
|
|
261
291
|
* Install the vendored openrig-core plugin into Codex through Codex's own commands, so a seat that selected it gets its
|
|
262
292
|
* refocus and skills, trusting exact shipped hooks on first install and renewing proven owned content approvals. It runs only when the person's config
|
|
263
293
|
* doesn't disable the plugin (codexCorePluginEnablement), and only when the installed version differs from the vendored
|
|
264
294
|
* one. Codex owns its plugin cache; its immutable legacy trust baseline is never rewritten.
|
|
295
|
+
*
|
|
296
|
+
* #3385: replacing an installed version waits ("deferred") while a Codex seat other than `exceptNodeId` runs in that
|
|
297
|
+
* home, or might: a running Codex points its hooks at the new folder but keeps the approvals it started with, so Codex
|
|
298
|
+
* turns them off until it restarts. `upgradeOnly` does nothing unless such an upgrade is waiting.
|
|
265
299
|
*/
|
|
266
|
-
async ensureCodexCorePlugin(home) {
|
|
300
|
+
async ensureCodexCorePlugin(home, opts = {}) {
|
|
267
301
|
const report = (outcome, reason) => {
|
|
268
302
|
if (outcome !== "current")
|
|
269
303
|
console.error(`[openrig] codex core plugin ${outcome}: ${reason}`);
|
|
@@ -281,6 +315,14 @@ export class CodexRuntimeAdapter {
|
|
|
281
315
|
}
|
|
282
316
|
if (typeof version !== "string" || !/^[0-9A-Za-z._-]+$/.test(version))
|
|
283
317
|
return report("skipped", "the vendored plugin's Codex manifest has no usable version");
|
|
318
|
+
const codexHome = nodePath.dirname(this.resolveCodexConfigPath(home));
|
|
319
|
+
const cacheRoot = nodePath.join(codexHome, "plugins", "cache", CODEX_CORE_MARKETPLACE, CODEX_CORE_PLUGIN);
|
|
320
|
+
const cachedDir = nodePath.join(cacheRoot, version);
|
|
321
|
+
const cached = this.fs.exists(cachedDir);
|
|
322
|
+
// The versions Codex's install would replace: the ones it keeps beside the vendored one's folder (null: unreadable).
|
|
323
|
+
const replaced = cached ? [] : otherCoreVersions(cacheRoot, version);
|
|
324
|
+
if (opts.upgradeOnly && replaced?.length === 0)
|
|
325
|
+
return { outcome: "skipped", reason: "no openrig-core upgrade waits in this Codex home" };
|
|
284
326
|
const shipped = nodePath.resolve(import.meta.dirname, "../../assets/plugins/openrig-core");
|
|
285
327
|
const ownFiles = [];
|
|
286
328
|
const collect = (dir, relative = "hooks") => {
|
|
@@ -313,7 +355,6 @@ export class CodexRuntimeAdapter {
|
|
|
313
355
|
return false;
|
|
314
356
|
}
|
|
315
357
|
};
|
|
316
|
-
const codexHome = nodePath.dirname(this.resolveCodexConfigPath(home));
|
|
317
358
|
const readLayers = () => codexReadableConfigLayers(codexHome, this.codexSystemConfigDir).map((layer) => {
|
|
318
359
|
if (!this.fs.exists(layer.path))
|
|
319
360
|
return { ...layer, state: "absent" };
|
|
@@ -345,9 +386,6 @@ export class CodexRuntimeAdapter {
|
|
|
345
386
|
// Current only when Codex would load it: the vendored version is in its store AND the user config still registers it
|
|
346
387
|
// (our marketplace, and an explicit enabled = true, which Codex's install writes). Codex loads only configured
|
|
347
388
|
// plugins, so a cache left behind after the entry or the marketplace was removed is installed again.
|
|
348
|
-
const cacheRoot = nodePath.join(codexHome, "plugins", "cache", CODEX_CORE_MARKETPLACE, CODEX_CORE_PLUGIN);
|
|
349
|
-
const cachedDir = nodePath.join(cacheRoot, version);
|
|
350
|
-
const cached = this.fs.exists(cachedDir);
|
|
351
389
|
// Codex's "continue without trusting" choice writes no state, so an existing install with no hooks.state entry for any
|
|
352
390
|
// of OpenRig's hooks may be an unrecorded skip, or an older install that never granted them. OpenRig trusts its own
|
|
353
391
|
// exact shipped hooks there as on a first install (#17). Any recorded choice for one of them, or a layer it can't read,
|
|
@@ -451,6 +489,12 @@ export class CodexRuntimeAdapter {
|
|
|
451
489
|
renewContentApproval(noOwnHookChoice(layers) && grantOwnHooks() === 6);
|
|
452
490
|
return report("current", `${CODEX_CORE_PLUGIN_KEY} ${version} is installed and registered`);
|
|
453
491
|
}
|
|
492
|
+
if (replaced === null || replaced.length > 0) {
|
|
493
|
+
const holding = await this.codexSeatsRunningIn(codexHome, opts.exceptNodeId);
|
|
494
|
+
if (holding.running.length > 0 || holding.unknown.length > 0 || holding.unlisted) {
|
|
495
|
+
return report("deferred", corePluginWait({ home: codexHome, version, installed: replaced, ...holding }));
|
|
496
|
+
}
|
|
497
|
+
}
|
|
454
498
|
const manifestPath = nodePath.join(pluginsDir, CODEX_MARKETPLACE_MANIFEST_PATH);
|
|
455
499
|
const manifest = codexCoreMarketplaceManifest();
|
|
456
500
|
if (!this.fs.exists(manifestPath) || this.fs.readFile(manifestPath) !== manifest) {
|
|
@@ -469,6 +513,77 @@ export class CodexRuntimeAdapter {
|
|
|
469
513
|
renewContentApproval((firstInstall || noOwnHookChoice(layers)) && grantOwnHooks() === 6);
|
|
470
514
|
return report("installed", `${CODEX_CORE_PLUGIN_KEY} ${version} through Codex's own install (${enablement.reason})`);
|
|
471
515
|
}
|
|
516
|
+
/**
|
|
517
|
+
* #3385: the Codex seats that run in `codexHome`, other than `exceptNodeId`. A seat counts when its home (its own
|
|
518
|
+
* CODEX_HOME, else HOME/.codex, from the process itself) is this one and the pane of its bound tmux session runs a Codex process. Codex loads the
|
|
519
|
+
* installed plugin into every session in a home, so seats that didn't select openrig-core count too. A seat whose session,
|
|
520
|
+
* pane or processes can't be read is `unknown`, never not running; an unbound seat, or a session tmux says is gone, isn't
|
|
521
|
+
* running.
|
|
522
|
+
*/
|
|
523
|
+
async codexSeatsRunningIn(codexHome, exceptNodeId) {
|
|
524
|
+
const running = [];
|
|
525
|
+
const unknown = [];
|
|
526
|
+
if (!this.listCodexSeats)
|
|
527
|
+
return { running, unknown };
|
|
528
|
+
let seats;
|
|
529
|
+
try {
|
|
530
|
+
seats = await this.listCodexSeats();
|
|
531
|
+
}
|
|
532
|
+
catch {
|
|
533
|
+
return { running, unknown, unlisted: true };
|
|
534
|
+
}
|
|
535
|
+
const target = realPathOf(codexHome);
|
|
536
|
+
let rows;
|
|
537
|
+
const table = () => (rows ??= Promise.resolve().then(() => this.listProcessesShared()));
|
|
538
|
+
const live = [];
|
|
539
|
+
for (const seat of seats) {
|
|
540
|
+
if (seat.nodeId === exceptNodeId || !seat.tmuxSession)
|
|
541
|
+
continue;
|
|
542
|
+
const pids = await this.sessionCodexPids(seat.tmuxSession, table);
|
|
543
|
+
if (pids === "unknown")
|
|
544
|
+
unknown.push(seat.tmuxSession);
|
|
545
|
+
else if (pids.length > 0)
|
|
546
|
+
live.push({ session: seat.tmuxSession, pids });
|
|
547
|
+
}
|
|
548
|
+
// Batch the OS capture: a macOS daemon must not start one osascript process per seat.
|
|
549
|
+
let homes;
|
|
550
|
+
try {
|
|
551
|
+
homes = await this.readCodexHomes([...new Set(live.flatMap(seat => seat.pids))]);
|
|
552
|
+
}
|
|
553
|
+
catch {
|
|
554
|
+
homes = new Map();
|
|
555
|
+
}
|
|
556
|
+
for (const seat of live) {
|
|
557
|
+
const values = seat.pids.map(pid => homes.get(pid));
|
|
558
|
+
if (values.some(home => home && nodePath.isAbsolute(home) && realPathOf(home) === target))
|
|
559
|
+
running.push(seat.session);
|
|
560
|
+
else if (values.some(home => !home || !nodePath.isAbsolute(home)))
|
|
561
|
+
unknown.push(`${seat.session} (Codex home unreadable)`);
|
|
562
|
+
}
|
|
563
|
+
return { running, unknown };
|
|
564
|
+
}
|
|
565
|
+
/** Whether a tmux session's pane runs a Codex process: the pane's own process or one below it. */
|
|
566
|
+
async sessionCodexPids(session, table) {
|
|
567
|
+
try {
|
|
568
|
+
const probe = await this.tmux.probeSession(session);
|
|
569
|
+
if (probe.state === "absent" || isMissingTmuxServer(probe))
|
|
570
|
+
return [];
|
|
571
|
+
if (probe.state !== "present")
|
|
572
|
+
return "unknown";
|
|
573
|
+
const panePid = await this.tmux.getPanePid(session);
|
|
574
|
+
if (!panePid)
|
|
575
|
+
return "unknown";
|
|
576
|
+
const rows = await table();
|
|
577
|
+
// A pane tmux keeps after its process exited (remain-on-exit, as the pane cutover leaves it) still reports that pid.
|
|
578
|
+
// tmux says when the pane is dead: then its seat runs no Codex. A live pid the table missed stays unknown.
|
|
579
|
+
if (!rows.some((row) => row.pid === panePid))
|
|
580
|
+
return (await this.tmux.isPaneDead(session)) ? [] : "unknown";
|
|
581
|
+
return paneCodexProcesses(rows, panePid).map(row => row.pid);
|
|
582
|
+
}
|
|
583
|
+
catch {
|
|
584
|
+
return "unknown";
|
|
585
|
+
}
|
|
586
|
+
}
|
|
472
587
|
/**
|
|
473
588
|
* Boot step for a daemon without Codex seats: when runtime.codex.hooks_enabled is false,
|
|
474
589
|
* strip OpenRig's managed hooks block, as every boot did before. Removal writes only when
|
|
@@ -864,11 +979,27 @@ export class CodexRuntimeAdapter {
|
|
|
864
979
|
this.filesystemPreflight.set(binding, decision);
|
|
865
980
|
return decision.verified ? { ok: true } : { ok: true, warnings: [codexPolicyWarning(decision.reason)] };
|
|
866
981
|
}
|
|
867
|
-
|
|
868
|
-
|
|
982
|
+
/** The seat's codex_permissions as its launch emits them: a filesystem envelope that lets the seat write its working
|
|
983
|
+
* folder also names its git dirs as writable (withSeatGitDirs), from the resolver plain launches use. On an in-place
|
|
984
|
+
* restart a running Codex keeps the override it runs with when that is the saved envelope plus only git-dir write rules
|
|
985
|
+
* (runningSeatPermissions, which names two accepted limits), as a plain launch's add-dirs carry over. Any other
|
|
986
|
+
* difference is emitted fresh from the saved envelope, and the restart's drift check reports it. Every launch and
|
|
987
|
+
* in-place restart of such a seat runs git discovery, under the resolver's existing 5 s git timeout. */
|
|
988
|
+
async seatPermissions(binding, running) {
|
|
989
|
+
const authored = binding.codexPermissions;
|
|
990
|
+
if (!authored || !("filesystem" in authored))
|
|
991
|
+
return authored;
|
|
992
|
+
const gitDirs = await this.resolveGitAddDirs(binding.cwd);
|
|
993
|
+
const ran = running?.permissionsConfig !== undefined ? runningSeatPermissions(authored, running.permissionsConfig, gitDirs) : undefined;
|
|
994
|
+
return ran ?? withSeatGitDirs(authored, gitDirs, binding.cwd);
|
|
995
|
+
}
|
|
996
|
+
/** The native-read preflight of the policy this launch emits (`permissions`, when the caller has it). */
|
|
997
|
+
async checkFilesystemPolicy(binding, emitted) {
|
|
998
|
+
const permissions = emitted ?? await this.seatPermissions(binding);
|
|
999
|
+
if (!permissions || !("filesystem" in permissions))
|
|
869
1000
|
return undefined;
|
|
870
1001
|
try {
|
|
871
|
-
return await this.verifyFilesystemPolicy({ permissions
|
|
1002
|
+
return await this.verifyFilesystemPolicy({ permissions, cwd: binding.cwd,
|
|
872
1003
|
codexHome: this.homeFor(binding), launchPath: this.launchPath, launchWrapper: binding.launchWrapper,
|
|
873
1004
|
codexConfigProfile: binding.codexConfigProfile?.trim() || undefined });
|
|
874
1005
|
}
|
|
@@ -898,12 +1029,13 @@ export class CodexRuntimeAdapter {
|
|
|
898
1029
|
return { ok: false, error: "resumeToken and forkSource are mutually exclusive — pick one" };
|
|
899
1030
|
}
|
|
900
1031
|
const updatePrompt = { handled: false };
|
|
901
|
-
// Only a launch that starts a conversation may install the core plugin; a resume
|
|
902
|
-
const prepared = await this.prepareLaunch(binding, opts.name, undefined, {
|
|
1032
|
+
// Only a launch that starts a conversation may install the core plugin; a resume only completes a waiting upgrade.
|
|
1033
|
+
const prepared = await this.prepareLaunch(binding, opts.name, undefined, { corePlugin: opts.resumeToken ? "upgrade" : "install" });
|
|
903
1034
|
if (!prepared.ok)
|
|
904
1035
|
return prepared;
|
|
905
1036
|
const { modelArg, effortArg, appliedLaunch, postureArg, queueStateDirArg, gitDirArg, seatFolderArg, daemonArg, networkArg, loginShellArg } = prepared;
|
|
906
|
-
const
|
|
1037
|
+
const notices = [...(appliedLaunch.reason?.startsWith("policy not verified:") ? [appliedLaunch.reason] : []), ...prepared.warnings];
|
|
1038
|
+
const policyNotice = notices.length > 0 ? { warnings: notices } : {};
|
|
907
1039
|
// Fork branch: `codex fork <parent_thread_id>`. Captures the NEW thread id
|
|
908
1040
|
// post-fork. Parent thread id is NOT persisted onto the new seat record
|
|
909
1041
|
// (identity-honesty bedrock).
|
|
@@ -999,8 +1131,9 @@ export class CodexRuntimeAdapter {
|
|
|
999
1131
|
}
|
|
1000
1132
|
if (!binding.tmuxSession)
|
|
1001
1133
|
return { ok: false, error: "No tmux session bound — cannot build a Codex resume command" };
|
|
1002
|
-
// Building a resume command (the in-place restart's) never installs the core plugin
|
|
1003
|
-
|
|
1134
|
+
// Building a resume command (the in-place restart's) never installs the core plugin: the restart completes a waiting
|
|
1135
|
+
// upgrade once its old Codex has stopped (upgradeCorePluginForResume). A preview leaves the Codex config alone.
|
|
1136
|
+
const prepared = await this.prepareLaunch(binding, opts.name, opts.running, { corePlugin: "none", preview: opts.preview === true });
|
|
1004
1137
|
if (!prepared.ok)
|
|
1005
1138
|
return prepared;
|
|
1006
1139
|
const core = this.resumeCore(prepared, opts.resumeToken, binding);
|
|
@@ -1065,23 +1198,31 @@ export class CodexRuntimeAdapter {
|
|
|
1065
1198
|
/** Launch flags shared by fresh, fork and resume, decided once per launch. With `running`, the probed and
|
|
1066
1199
|
* prepared parts come from the running Codex instead, and no Codex process is started to decide them. */
|
|
1067
1200
|
async prepareLaunch(binding, name, running, opts) {
|
|
1068
|
-
|
|
1069
|
-
const
|
|
1201
|
+
// One policy for the preflight and the launch: an in-place restart checks the override it will carry.
|
|
1202
|
+
const codexPermissions = await this.seatPermissions(binding, running);
|
|
1203
|
+
const checkedBeforeCutover = running ? undefined : this.filesystemPreflight.get(binding);
|
|
1204
|
+
const decision = checkedBeforeCutover ?? await this.checkFilesystemPolicy(binding, codexPermissions);
|
|
1070
1205
|
this.filesystemPreflight.delete(binding);
|
|
1071
1206
|
if (decision && !decision.ok)
|
|
1072
1207
|
return decision;
|
|
1073
|
-
// The config write and
|
|
1074
|
-
//
|
|
1208
|
+
// The config write and the plugin step run as one step under the config lock, so concurrent launches never interleave
|
|
1209
|
+
// them. Only a fresh start of a seat that selected openrig-core may install it; any other Codex start (a resume, an
|
|
1210
|
+
// unselected seat) only completes an upgrade waiting in that home, which a running seat there held (#3385).
|
|
1075
1211
|
// A seat with its own CODEX_HOME gets OpenRig's managed config (hooks, feature flag) and plugin in that home.
|
|
1076
1212
|
// A preview (a restart plan, a switch's precheck) leaves the Codex config alone; the launch it previews converges it.
|
|
1077
1213
|
const home = this.homeFor(binding);
|
|
1078
1214
|
const own = this.ownHome(binding);
|
|
1215
|
+
const warnings = [];
|
|
1079
1216
|
if (!opts.preview)
|
|
1080
1217
|
await this.withConfigLock(async () => {
|
|
1081
1218
|
const managed = await this.applyManagedConfig(home);
|
|
1082
|
-
|
|
1219
|
+
const selected = this.resolveCorePluginSelected;
|
|
1220
|
+
if (opts.corePlugin !== "none" && managed?.hooksEnabled && selected) {
|
|
1083
1221
|
try {
|
|
1084
|
-
|
|
1222
|
+
const upgradeOnly = opts.corePlugin === "upgrade" || !selected(binding.nodeId);
|
|
1223
|
+
const result = await this.ensureCodexCorePlugin(home, { exceptNodeId: binding.nodeId, upgradeOnly });
|
|
1224
|
+
if (result.outcome === "deferred")
|
|
1225
|
+
warnings.push(result.reason);
|
|
1085
1226
|
}
|
|
1086
1227
|
catch (err) {
|
|
1087
1228
|
console.error(`[openrig] runtime setup warning: ${err.message}`);
|
|
@@ -1094,9 +1235,9 @@ export class CodexRuntimeAdapter {
|
|
|
1094
1235
|
const effortArg = effort ? ` -c ${shellQuote(`model_reasoning_effort="${effort}"`)}` : "";
|
|
1095
1236
|
const profile = binding.codexConfigProfile?.trim();
|
|
1096
1237
|
const profileArg = profile ? ` -p ${shellQuote(profile)}` : "";
|
|
1097
|
-
const filesystemPermissions =
|
|
1238
|
+
const filesystemPermissions = codexPermissions && "filesystem" in codexPermissions ? codexPermissions : undefined;
|
|
1098
1239
|
// An authored filesystem policy always wins over a stale observed legacy envelope. Legacy rebuilds keep their carry behavior.
|
|
1099
|
-
const memberChoice =
|
|
1240
|
+
const memberChoice = codexPermissions && (!binding.codexRebuildPermissions || filesystemPermissions) ? codexMemberLaunch(codexPermissions) : undefined;
|
|
1100
1241
|
const envelope = memberChoice ? undefined : binding.codexRebuildPermissions;
|
|
1101
1242
|
const posture = memberChoice ? profileArg + memberChoice.args : envelope
|
|
1102
1243
|
? profileArg + codexEnvelopeArgs(envelope)
|
|
@@ -1116,7 +1257,7 @@ export class CodexRuntimeAdapter {
|
|
|
1116
1257
|
seatFolderArg: "",
|
|
1117
1258
|
daemonOptOut: running.daemonOptOut, daemonArg: running.daemonOptOut ? " --no-daemon" : "",
|
|
1118
1259
|
networkArg: !filesystemPermissions && running.networkOverride ? ` -c ${shellQuote(CODEX_NETWORK_DEFAULT_OVERRIDE)}` : "",
|
|
1119
|
-
loginShellArg: running.nonLoginShell ? codexNonLoginShellArg : "" };
|
|
1260
|
+
loginShellArg: running.nonLoginShell ? codexNonLoginShellArg : "", warnings };
|
|
1120
1261
|
}
|
|
1121
1262
|
// OPR.0.3.4.7 — profile-LOAD probe before launch/resume. A legacy
|
|
1122
1263
|
// [profiles.<name>] table or invalid TOML must fail BEFORE the opaque
|
|
@@ -1158,7 +1299,7 @@ export class CodexRuntimeAdapter {
|
|
|
1158
1299
|
// The launch facts keep the probed daemon choice, so a printed recovery command can repeat it; no probe, no fact.
|
|
1159
1300
|
const launchFacts = daemonSupport ? { ...appliedLaunch, daemonOptOut } : appliedLaunch;
|
|
1160
1301
|
return { ok: true, model, modelArg, effort, effortArg, profile, appliedLaunch: launchFacts, postureArg, queueStateDirArg, gitDirArg, seatFolderArg, daemonOptOut, daemonArg, networkArg,
|
|
1161
|
-
loginShellArg: this.codexLoginShell?.() ? "" : codexNonLoginShellArg };
|
|
1302
|
+
loginShellArg: this.codexLoginShell?.() ? "" : codexNonLoginShellArg, warnings };
|
|
1162
1303
|
}
|
|
1163
1304
|
resumeCore(prepared, resumeToken, binding) {
|
|
1164
1305
|
const { profile, queueStateDirArg, gitDirArg, seatFolderArg, model, postureArg, networkArg, loginShellArg, daemonOptOut, effort } = prepared;
|
|
@@ -3135,6 +3276,78 @@ function findCodexDescendantPids(processes, parentPid) {
|
|
|
3135
3276
|
visit(parentPid);
|
|
3136
3277
|
return matches;
|
|
3137
3278
|
}
|
|
3279
|
+
/** #3385: the version folders Codex keeps for openrig-core in `cacheRoot` other than `version`: none when there's no cache
|
|
3280
|
+
* yet, null when the folder can't be read. */
|
|
3281
|
+
function otherCoreVersions(cacheRoot, version) {
|
|
3282
|
+
try {
|
|
3283
|
+
return fs.readdirSync(cacheRoot, { withFileTypes: true })
|
|
3284
|
+
.filter((entry) => (entry.isDirectory() || entry.isSymbolicLink()) && entry.name !== version && !entry.name.startsWith("."))
|
|
3285
|
+
.map((entry) => entry.name).sort();
|
|
3286
|
+
}
|
|
3287
|
+
catch (error) {
|
|
3288
|
+
return error.code === "ENOENT" ? [] : null;
|
|
3289
|
+
}
|
|
3290
|
+
}
|
|
3291
|
+
function realPathOf(path) {
|
|
3292
|
+
try {
|
|
3293
|
+
return fs.realpathSync.native(nodePath.resolve(path));
|
|
3294
|
+
}
|
|
3295
|
+
catch {
|
|
3296
|
+
return nodePath.resolve(path);
|
|
3297
|
+
}
|
|
3298
|
+
}
|
|
3299
|
+
/** #3385: whether a pane's own process, or any process below it, is a Codex (by its OS name, or a `codex` argv token). A
|
|
3300
|
+
* zombie isn't. */
|
|
3301
|
+
function paneCodexProcesses(rows, panePid) {
|
|
3302
|
+
const children = new Map();
|
|
3303
|
+
for (const row of rows) {
|
|
3304
|
+
const siblings = children.get(row.ppid);
|
|
3305
|
+
if (siblings)
|
|
3306
|
+
siblings.push(row);
|
|
3307
|
+
else
|
|
3308
|
+
children.set(row.ppid, [row]);
|
|
3309
|
+
}
|
|
3310
|
+
const seen = new Set();
|
|
3311
|
+
const found = [];
|
|
3312
|
+
const queue = rows.filter((row) => row.pid === panePid);
|
|
3313
|
+
while (queue.length > 0) {
|
|
3314
|
+
const row = queue.shift();
|
|
3315
|
+
if (seen.has(row.pid))
|
|
3316
|
+
continue;
|
|
3317
|
+
seen.add(row.pid);
|
|
3318
|
+
if (row.state !== "Z" && (row.executableName === "codex" || commandLooksLikeCodex(row.command)))
|
|
3319
|
+
found.push(row);
|
|
3320
|
+
queue.push(...(children.get(row.pid) ?? []));
|
|
3321
|
+
}
|
|
3322
|
+
return found;
|
|
3323
|
+
}
|
|
3324
|
+
/** Only the two home variables leave the transient OS capture; credentials and other environment values do not. */
|
|
3325
|
+
async function readRunningCodexHomes(pids) {
|
|
3326
|
+
const homes = new Map();
|
|
3327
|
+
for (const [pid, launch] of await readNativeProcessLaunches(pids)) {
|
|
3328
|
+
const home = launch.env.CODEX_HOME ?? (launch.env.HOME ? nodePath.join(launch.env.HOME, ".codex") : undefined);
|
|
3329
|
+
if (home && nodePath.isAbsolute(home))
|
|
3330
|
+
homes.set(pid, home);
|
|
3331
|
+
}
|
|
3332
|
+
return homes;
|
|
3333
|
+
}
|
|
3334
|
+
/** #3385: why an openrig-core install waits in a Codex home, for the runtime setup report and the start's own result. */
|
|
3335
|
+
function corePluginWait(input) {
|
|
3336
|
+
const installed = input.installed?.length ? `${CODEX_CORE_PLUGIN} ${input.installed.join(", ")}` : `the ${CODEX_CORE_PLUGIN} version installed there`;
|
|
3337
|
+
const parts = [`${CODEX_CORE_PLUGIN} ${input.version} waits to install in ${input.home}: replacing ${installed} under a running Codex turns off its hooks (refocus and compaction context) until that Codex restarts.`];
|
|
3338
|
+
if (input.running.length > 0)
|
|
3339
|
+
parts.push(`Codex seats running there: ${input.running.join(", ")}.`);
|
|
3340
|
+
if (input.unknown.length > 0) {
|
|
3341
|
+
const one = input.unknown.length === 1;
|
|
3342
|
+
parts.push(`Couldn't tell whether ${input.unknown.join(", ")} ${one ? "is" : "are"} running there, so ${one ? "it counts" : "they count"} as running.`);
|
|
3343
|
+
}
|
|
3344
|
+
if (input.unlisted)
|
|
3345
|
+
parts.push("OpenRig's records of its Codex seats couldn't be read, so a seat may be running there.");
|
|
3346
|
+
parts.push(`Until it installs, Codex seats there, new ones included, start with ${installed}.`
|
|
3347
|
+
+ " It installs once none of them is running: rig seat restart <seat> --keep-conversation --reason \"<why>\" on the last one"
|
|
3348
|
+
+ " installs it before that seat's Codex starts again, and rig down <rig> then rig up <rig> --existing restarts several together.");
|
|
3349
|
+
return parts.join(" ");
|
|
3350
|
+
}
|
|
3138
3351
|
function commandLooksLikeCodex(command) {
|
|
3139
3352
|
const tokens = command.trim().split(/\s+/).filter(Boolean);
|
|
3140
3353
|
return tokens.some((token) => {
|