@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,29 +1,16 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
|
-
import { type LifecycleDeps
|
|
2
|
+
import { type LifecycleDeps } from "../daemon-lifecycle.js";
|
|
3
3
|
interface ProcessAliveDeps {
|
|
4
4
|
signalCheck: (pid: number) => boolean;
|
|
5
5
|
readProcessState: (pid: number) => string | null;
|
|
6
6
|
}
|
|
7
7
|
export declare function createIsProcessAlive(deps: ProcessAliveDeps): (pid: number) => boolean;
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
*
|
|
12
|
-
* "
|
|
13
|
-
export declare function
|
|
14
|
-
/** #275 — three-state liveness for status reads. Only a missing process (ESRCH) or a zombie is
|
|
15
|
-
* dead. A process that exists but cannot be inspected (EPERM, or `ps` cannot run, as inside
|
|
16
|
-
* Codex's macOS sandbox) is UNKNOWN, never dead: calling it dead turned a running daemon into
|
|
17
|
-
* `stale` before any health probe. The boolean createIsProcessAlive (start/stop) is unchanged. */
|
|
18
|
-
export declare function createProcessLiveness(deps: {
|
|
19
|
-
signal: (pid: number) => SignalOutcome;
|
|
20
|
-
readProcessState: (pid: number) => string | null;
|
|
21
|
-
}): (pid: number) => ProcessLiveness;
|
|
22
|
-
type ExecFile = (file: string, args: string[], options: {
|
|
23
|
-
encoding: "utf-8";
|
|
24
|
-
}) => string;
|
|
25
|
-
export declare function readProcessState(pid: number, platform?: NodeJS.Platform, run?: ExecFile): string | null;
|
|
8
|
+
export { signalProbe, createProcessLiveness, readProcessState } from "../process-liveness.js";
|
|
9
|
+
export type { SignalOutcome } from "../process-liveness.js";
|
|
10
|
+
/** A --db value as better-sqlite3 opens it: it trims the name, and an empty name or ":memory:" is an in-memory database.
|
|
11
|
+
* Those and an absolute path stay exactly as given. A relative path is anchored at this command's working directory
|
|
12
|
+
* without normalizing it, so it names the same file (symlinks and ".." included) from wherever a later start runs. */
|
|
13
|
+
export declare function databaseFlagPath(db: string, cwd?: string): string;
|
|
26
14
|
export declare function realDeps(): LifecycleDeps;
|
|
27
15
|
export declare function daemonCommand(depsOverride?: LifecycleDeps): Command;
|
|
28
|
-
export {};
|
|
29
16
|
//# sourceMappingURL=daemon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daemon.d.ts","sourceRoot":"","sources":["../../src/commands/daemon.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"daemon.d.ts","sourceRoot":"","sources":["../../src/commands/daemon.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAYpC,OAAO,EAOL,KAAK,aAAa,EAMnB,MAAM,wBAAwB,CAAC;AAEhC,UAAU,gBAAgB;IACxB,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;IACtC,gBAAgB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;CAClD;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,gBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CASrF;AAED,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC9F,YAAY,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D;;uHAEuH;AACvH,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,SAAgB,GAAG,MAAM,CAIxE;AAED,wBAAgB,QAAQ,IAAI,aAAa,CAiJxC;AAED,wBAAgB,aAAa,CAAC,YAAY,CAAC,EAAE,aAAa,GAAG,OAAO,CAyQnE"}
|
package/dist/commands/daemon.js
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
+
import { signalProbe, createProcessLiveness, readProcessState } from "../process-liveness.js";
|
|
1
2
|
import { Command } from "commander";
|
|
2
3
|
import fs from "node:fs";
|
|
4
|
+
import path from "node:path";
|
|
3
5
|
import { createServer } from "node:net";
|
|
4
6
|
import { randomUUID } from "node:crypto";
|
|
5
|
-
import { acquireDaemonStartLock, archiveSpentReservation, bootedAtMs, currentBootId, markReservationRetained, processStartToken } from "../daemon-start-lock.js";
|
|
7
|
+
import { acquireDaemonStartLock, archiveSpentReservation, bootedAtMs, currentBootId, finishStartReservation, markReservationRetained, processStartToken } from "../daemon-start-lock.js";
|
|
6
8
|
import { formatDaemonHostForUrl } from "../client.js";
|
|
7
9
|
import { execFileSync, spawn } from "node:child_process";
|
|
8
10
|
import { fetchWithTimeout } from "../fetch-with-timeout.js";
|
|
9
11
|
import { daemonFetch } from "../daemon-transport.js";
|
|
10
12
|
import { personRegistrationOffer } from "../person-registration-offer.js";
|
|
11
13
|
import { ensureDefaultWorkspace } from "../../daemon/dist/instance-initialization-surface.js";
|
|
12
|
-
import { startDaemon, stopDaemon, getDaemonStatus, readLogs, tailLogs, OPENRIG_DIR, STATE_FILE, resolveBindIntent, statusGuardMessage, } from "../daemon-lifecycle.js";
|
|
14
|
+
import { startDaemon, stopDaemon, getDaemonStatus, pendingStartEndpoint, readLogs, tailLogs, OPENRIG_DIR, STATE_FILE, resolveBindIntent, statusGuardMessage, } from "../daemon-lifecycle.js";
|
|
13
15
|
export function createIsProcessAlive(deps) {
|
|
14
16
|
return (pid) => {
|
|
15
17
|
if (!deps.signalCheck(pid))
|
|
@@ -22,46 +24,15 @@ export function createIsProcessAlive(deps) {
|
|
|
22
24
|
return true;
|
|
23
25
|
};
|
|
24
26
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
*
|
|
28
|
-
* "
|
|
29
|
-
export function
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
return
|
|
33
|
-
}
|
|
34
|
-
catch (error) {
|
|
35
|
-
return error.code === "ESRCH" ? "missing" : "not-permitted";
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
/** #275 — three-state liveness for status reads. Only a missing process (ESRCH) or a zombie is
|
|
39
|
-
* dead. A process that exists but cannot be inspected (EPERM, or `ps` cannot run, as inside
|
|
40
|
-
* Codex's macOS sandbox) is UNKNOWN, never dead: calling it dead turned a running daemon into
|
|
41
|
-
* `stale` before any health probe. The boolean createIsProcessAlive (start/stop) is unchanged. */
|
|
42
|
-
export function createProcessLiveness(deps) {
|
|
43
|
-
return (pid) => {
|
|
44
|
-
const signal = deps.signal(pid);
|
|
45
|
-
if (signal === "missing")
|
|
46
|
-
return "dead";
|
|
47
|
-
const state = deps.readProcessState(pid)?.trim();
|
|
48
|
-
if (!state)
|
|
49
|
-
return "unknown";
|
|
50
|
-
if (state.startsWith("Z"))
|
|
51
|
-
return "dead";
|
|
52
|
-
return signal === "not-permitted" ? "unknown" : "alive";
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
// Windows has no ps(1) and no zombie state, so the signal probe alone decides liveness there.
|
|
56
|
-
export function readProcessState(pid, platform = process.platform, run = execFileSync) {
|
|
57
|
-
if (platform === "win32")
|
|
58
|
-
return "R";
|
|
59
|
-
try {
|
|
60
|
-
return run("ps", ["-o", "state=", "-p", String(pid)], { encoding: "utf-8" });
|
|
61
|
-
}
|
|
62
|
-
catch {
|
|
63
|
-
return null;
|
|
64
|
-
}
|
|
27
|
+
export { signalProbe, createProcessLiveness, readProcessState } from "../process-liveness.js";
|
|
28
|
+
/** A --db value as better-sqlite3 opens it: it trims the name, and an empty name or ":memory:" is an in-memory database.
|
|
29
|
+
* Those and an absolute path stay exactly as given. A relative path is anchored at this command's working directory
|
|
30
|
+
* without normalizing it, so it names the same file (symlinks and ".." included) from wherever a later start runs. */
|
|
31
|
+
export function databaseFlagPath(db, cwd = process.cwd()) {
|
|
32
|
+
const opened = db.trim();
|
|
33
|
+
if (opened === "" || opened === ":memory:" || path.isAbsolute(opened))
|
|
34
|
+
return db;
|
|
35
|
+
return `${cwd}${path.sep}${opened}`;
|
|
65
36
|
}
|
|
66
37
|
export function realDeps() {
|
|
67
38
|
const isProcessAlive = createIsProcessAlive({
|
|
@@ -72,6 +43,80 @@ export function realDeps() {
|
|
|
72
43
|
signal: (pid) => signalProbe(pid),
|
|
73
44
|
readProcessState: (pid) => readProcessState(pid),
|
|
74
45
|
});
|
|
46
|
+
// lsof's answer when it exits non-zero: status 1 is an answer (none of those files is open, or the process is gone).
|
|
47
|
+
const lsofFailure = (error) => {
|
|
48
|
+
const err = error;
|
|
49
|
+
if (err.status === 1)
|
|
50
|
+
return false;
|
|
51
|
+
return { failure: err.code === "ENOENT" ? "lsof isn't installed" : err.signal ? "lsof timed out" : "lsof failed" };
|
|
52
|
+
};
|
|
53
|
+
// Whether a process holds a file open, as the daemon's own database-holder check asks lsof (daemon-db-path.ts).
|
|
54
|
+
const databaseHeldBy = (pid, file) => {
|
|
55
|
+
let real;
|
|
56
|
+
try {
|
|
57
|
+
real = fs.realpathSync(file);
|
|
58
|
+
}
|
|
59
|
+
catch {
|
|
60
|
+
return { failure: `${file} can't be resolved` };
|
|
61
|
+
}
|
|
62
|
+
if (process.platform === "linux") {
|
|
63
|
+
// Linux names each open file under /proc without lsof; a listing that can't be read leaves the answer to lsof.
|
|
64
|
+
let fds;
|
|
65
|
+
try {
|
|
66
|
+
fds = fs.readdirSync(`/proc/${pid}/fd`);
|
|
67
|
+
}
|
|
68
|
+
catch {
|
|
69
|
+
fds = undefined;
|
|
70
|
+
}
|
|
71
|
+
if (fds)
|
|
72
|
+
return fds.some((fd) => { try {
|
|
73
|
+
return fs.readlinkSync(`/proc/${pid}/fd/${fd}`) === real;
|
|
74
|
+
}
|
|
75
|
+
catch {
|
|
76
|
+
return false;
|
|
77
|
+
} });
|
|
78
|
+
}
|
|
79
|
+
// lsof exits 1 both when nothing it was asked about is found and on an error, so ask for the process's own open files:
|
|
80
|
+
// a listing answers either way, and no listing is reported as unread, never as "not held".
|
|
81
|
+
try {
|
|
82
|
+
const listed = execFileSync("lsof", ["-a", "-p", String(pid), "-Fn"], { encoding: "utf-8", timeout: 2_000, maxBuffer: 1024 * 1024 });
|
|
83
|
+
return listed.split("\n").some((line) => line.startsWith("n") && (line.slice(1) === real || line.slice(1) === file));
|
|
84
|
+
}
|
|
85
|
+
catch (error) {
|
|
86
|
+
const failure = lsofFailure(error);
|
|
87
|
+
return failure === false ? { failure: `lsof listed no open files for PID ${pid}` } : failure;
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
// #3953: a process's stdout and stderr, read as the daemon's own database-holder check reads them (lsof, fds 1 and 2).
|
|
91
|
+
const writesOutputTo = (pid, file) => {
|
|
92
|
+
let real;
|
|
93
|
+
try {
|
|
94
|
+
real = fs.realpathSync(file);
|
|
95
|
+
}
|
|
96
|
+
catch {
|
|
97
|
+
return { failure: `${file} can't be resolved` };
|
|
98
|
+
}
|
|
99
|
+
if (process.platform === "linux") {
|
|
100
|
+
// Linux names each open file under /proc without lsof; a link that can't be read leaves the answer to lsof.
|
|
101
|
+
const links = [1, 2].map((fd) => {
|
|
102
|
+
try {
|
|
103
|
+
return fs.readlinkSync(`/proc/${pid}/fd/${fd}`);
|
|
104
|
+
}
|
|
105
|
+
catch (error) {
|
|
106
|
+
return error.code === "ENOENT" ? null : undefined;
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
if (links.every((link) => link !== undefined))
|
|
110
|
+
return links.includes(real);
|
|
111
|
+
}
|
|
112
|
+
try {
|
|
113
|
+
const listed = execFileSync("lsof", ["-a", "-p", String(pid), "-d", "1,2", "-Fn"], { encoding: "utf-8", timeout: 2_000, maxBuffer: 64 * 1024 });
|
|
114
|
+
return listed.split("\n").some((line) => line.startsWith("n") && (line.slice(1) === real || line.slice(1) === file));
|
|
115
|
+
}
|
|
116
|
+
catch (error) {
|
|
117
|
+
return lsofFailure(error);
|
|
118
|
+
}
|
|
119
|
+
};
|
|
75
120
|
// #2860: where the OS has pid namespaces (Linux), a missing pid is only proof from the daemon's own.
|
|
76
121
|
const pidNamespace = () => {
|
|
77
122
|
if (process.platform !== "linux")
|
|
@@ -94,7 +139,10 @@ export function realDeps() {
|
|
|
94
139
|
spawn: (cmd, args, opts) => spawn(cmd, args, opts),
|
|
95
140
|
fetch: async (url, init) => {
|
|
96
141
|
let body = "";
|
|
97
|
-
|
|
142
|
+
// #3957: each health probe on a connection of its own. With `connection: close`, undici closes the socket after the
|
|
143
|
+
// response, so no later probe reuses one the daemon has since closed: a stopped listener reads refused, not reset.
|
|
144
|
+
const probeInit = { headers: { connection: "close" }, ...(init?.signal ? { signal: init.signal } : {}) };
|
|
145
|
+
const res = await fetchWithTimeout(daemonFetch(url, globalThis.fetch), url, probeInit, {
|
|
98
146
|
timeoutMs: 1_500,
|
|
99
147
|
timeoutMessage: `Daemon health probe timed out for ${url}`,
|
|
100
148
|
consumeResponse: async (response) => { body = await response.text(); },
|
|
@@ -198,6 +246,9 @@ export function realDeps() {
|
|
|
198
246
|
processStartToken,
|
|
199
247
|
releaseStartReservation: archiveSpentReservation,
|
|
200
248
|
retainStartReservation: markReservationRetained,
|
|
249
|
+
finishStartReservation,
|
|
250
|
+
databaseHeldBy,
|
|
251
|
+
writesOutputTo,
|
|
201
252
|
};
|
|
202
253
|
}
|
|
203
254
|
export function daemonCommand(depsOverride) {
|
|
@@ -206,7 +257,7 @@ export function daemonCommand(depsOverride) {
|
|
|
206
257
|
cmd
|
|
207
258
|
.command("start")
|
|
208
259
|
.description("Start the daemon")
|
|
209
|
-
.addHelpText("after", "\nStartup reserves this local instance before initialization and verifies the spawned child PID on every required listener.\nMissing/mismatched identity or child exit fails startup; failed publication withdraws only this launch's matching state. Use a matching CLI/daemon installation.\nA concurrent start fails without spawning another child. Inspect daemon-start.lock for launcher/child PIDs after an interrupted start;\nonly archive an abandoned reservation after proving both processes absent. A failed cleanup retains it and reports the child PID.\nA reservation from an earlier boot is archived as daemon-start.lock.abandoned-<time> and the start goes on; so is one from\nthis boot whose recorded launcher and child are both gone in this shell's pid namespace and that no stop retained.\n")
|
|
260
|
+
.addHelpText("after", "\nStartup reserves this local instance before initialization and verifies the spawned child PID on every required listener.\nMissing/mismatched identity or child exit fails startup; failed publication withdraws only this launch's matching state. Use a matching CLI/daemon installation.\nA concurrent start fails without spawning another child. Inspect daemon-start.lock for launcher/child PIDs after an interrupted start;\nonly archive an abandoned reservation after proving both processes absent. A failed cleanup retains it and reports the child PID.\nA reservation from an earlier boot is archived as daemon-start.lock.abandoned-<time> and the start goes on; so is one from\nthis boot whose recorded launcher and child are both gone in this shell's pid namespace and that no stop retained.\nA start that ended pending (its child left running, its reservation kept) is finished by the next 'rig daemon start' once that\nchild is ready: it checks the child against the reservation, publishes daemon.json for it (or keeps one that already\ndescribes it) and retires that reservation, without starting another daemon.\n")
|
|
210
261
|
.option("--port <port>", "Port to listen on")
|
|
211
262
|
.option("--host <host>", "Host to bind on")
|
|
212
263
|
.option("--db <path>", "Database path")
|
|
@@ -262,6 +313,7 @@ export function daemonCommand(depsOverride) {
|
|
|
262
313
|
exec: quietPreflightExec,
|
|
263
314
|
configStore,
|
|
264
315
|
getDaemonStatus: () => getDaemonStatus(getDeps()),
|
|
316
|
+
pendingStart: () => pendingStartEndpoint(getDeps()),
|
|
265
317
|
openrigHome: OPENRIG_DIR,
|
|
266
318
|
});
|
|
267
319
|
const preflightResult = await preflight.run({ port: effectivePort, host: effectiveHost });
|
|
@@ -281,7 +333,9 @@ export function daemonCommand(depsOverride) {
|
|
|
281
333
|
const state = await startDaemon({
|
|
282
334
|
port: effectivePort,
|
|
283
335
|
host: hostForDaemon,
|
|
284
|
-
db
|
|
336
|
+
// A relative --db is anchored at this directory, so the child, its reservation and daemon.json name the same file
|
|
337
|
+
// for a later start from anywhere. db.path and OPENRIG_DB reach SQLite exactly as before.
|
|
338
|
+
db: opts.db !== undefined ? databaseFlagPath(opts.db) : config.db.path,
|
|
285
339
|
transcriptsEnabled: config.transcripts.enabled,
|
|
286
340
|
transcriptsPath: config.transcripts.path,
|
|
287
341
|
workspaceRoot: config.workspace.root,
|
|
@@ -297,7 +351,24 @@ export function daemonCommand(depsOverride) {
|
|
|
297
351
|
allowDbConflict: opts.allowDbConflict,
|
|
298
352
|
readinessWaitSeconds: config.daemon.startReadinessWaitSeconds,
|
|
299
353
|
}, getDeps());
|
|
300
|
-
|
|
354
|
+
if (state.finished) {
|
|
355
|
+
// This start finished an earlier start that ended pending: no new daemon was started. Each part on its own line.
|
|
356
|
+
const { publication, replacedPid, reservation, readiness } = state.finished;
|
|
357
|
+
console.log(`Finished the earlier start of daemon pid ${state.pid} on port ${state.port}; no new daemon was started, and this command does not reconfigure the child's port, host or database.`);
|
|
358
|
+
console.log(publication === "written"
|
|
359
|
+
? ` Publication: daemon.json written for pid ${state.pid}${replacedPid !== undefined ? `, replacing one that named pid ${replacedPid}, which isn't running` : ""}.`
|
|
360
|
+
: ` Publication: daemon.json already described pid ${state.pid}; kept as it was.`);
|
|
361
|
+
if ("retired" in reservation)
|
|
362
|
+
console.log(` Reservation: that start's reservation retired to ${reservation.retired}.`);
|
|
363
|
+
else
|
|
364
|
+
console.error(` Reservation: kept: ${reservation.kept}.`);
|
|
365
|
+
console.log("verified" in readiness
|
|
366
|
+
? ` Readiness: /healthz named pid ${state.pid} on ${readiness.verified.join(", ")}.`
|
|
367
|
+
: ` Readiness: /healthz named pid ${state.pid} at the launch endpoint; unverified on ${readiness.unverified.join(", ")} (no clear answer, not a refusal).`);
|
|
368
|
+
}
|
|
369
|
+
else {
|
|
370
|
+
console.log(`Daemon started on port ${state.port} (pid ${state.pid})`);
|
|
371
|
+
}
|
|
301
372
|
// The daemon leaves a workspace.root that holds a project of its own as it is, and its log says so; so does this
|
|
302
373
|
// output, from the same read-only check.
|
|
303
374
|
const workspace = ensureDefaultWorkspace({ root: config.workspace.root, dryRun: true });
|
|
@@ -1 +1 @@
|
|
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,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,QAAQ,CAAC,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;QACxC,CAAC;aAAM,CAAC;YACN,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;YACpC,IAAI,OAAO,EAAE,CAAC;gBACZ,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;iBAAM,CAAC;gBACN,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;YACtC,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAC;IAEL,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -45,6 +45,32 @@ export interface DoctorDeps {
|
|
|
45
45
|
specPath?: string;
|
|
46
46
|
/** Live seat ids (`<pod>.<member>`) for the spec's rig; null when the topology cannot be read. */
|
|
47
47
|
fetchLiveLogicalIds?: (rigName: string) => Promise<string[] | null>;
|
|
48
|
+
/** Where `rig` resolves, read with the openrig plugin's own lookup (#4064). Default: that lookup, with the login shell
|
|
49
|
+
* run through `exec`, and the real file system's realpath. */
|
|
50
|
+
rigLookup?: RigLookup;
|
|
51
|
+
}
|
|
52
|
+
export interface RigLookup {
|
|
53
|
+
/** OPENRIG_RIG_BIN when it names an executable `rig`, else the first executable `rig` on PATH; null when there's none. */
|
|
54
|
+
findRig: (opts: {
|
|
55
|
+
env: NodeJS.ProcessEnv;
|
|
56
|
+
}) => string | null;
|
|
57
|
+
/** The PATH a login shell of this user gets; null when none answers. */
|
|
58
|
+
loginShellPath: (opts: {
|
|
59
|
+
env: NodeJS.ProcessEnv;
|
|
60
|
+
}) => string | null;
|
|
61
|
+
realpath: (file: string) => string;
|
|
62
|
+
/** Starts `file --version` with that PATH, as the plugin starts a login shell's `rig`; what failed when it doesn't.
|
|
63
|
+
* Default: through doctor's `exec`, bounded at 10 s. */
|
|
64
|
+
starts?: (file: string, opts: {
|
|
65
|
+
PATH: string;
|
|
66
|
+
}) => {
|
|
67
|
+
ok: true;
|
|
68
|
+
} | {
|
|
69
|
+
ok: false;
|
|
70
|
+
detail: string;
|
|
71
|
+
};
|
|
72
|
+
/** The `node` this doctor runs on, named in the repair when a login PATH lacks one (default: process.execPath). */
|
|
73
|
+
nodeBin?: () => string;
|
|
48
74
|
}
|
|
49
75
|
export declare function runDoctorChecks(deps: DoctorDeps, providerChecks?: DoctorCheck[]): {
|
|
50
76
|
checks: DoctorCheck[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/commands/doctor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,OAAO,EAAE,YAAY,EAAmD,MAAM,cAAc,CAAC;AAC7F,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/commands/doctor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,OAAO,EAAE,YAAY,EAAmD,MAAM,cAAc,CAAC;AAC7F,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAkBjD,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;IAC1C,0FAA0F;IAC1F,I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
-
import { accessSync, constants, existsSync, mkdirSync, readFileSync } from "node:fs";
|
|
2
|
+
import { accessSync, constants, existsSync, mkdirSync, readFileSync, realpathSync } from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import net from "node:net";
|
|
5
5
|
import { execSync } from "node:child_process";
|
|
@@ -9,12 +9,34 @@ import { ConfigStore } from "../config-store.js";
|
|
|
9
9
|
import { fetchWithTimeout } from "../fetch-with-timeout.js";
|
|
10
10
|
import { buildWritableHomeCheck } from "../system-preflight.js";
|
|
11
11
|
import { CMUX_SETTINGS_DISCLOSURE_PATH, isCmuxSocketControlCompatible, readCmuxSocketControlModeFromText, resolveCmuxSettingsPath, } from "../cmux-config.js";
|
|
12
|
-
import { buildTmuxCaptureFailure, buildTmuxControlFailure, probeTmuxCapture, probeTmuxControl } from "../tmux-health.js";
|
|
12
|
+
import { buildTmuxCaptureFailure, buildTmuxControlFailure, buildTmuxVersionCheckFailure, probeTmuxCapture, probeTmuxControl } from "../tmux-health.js";
|
|
13
13
|
import { parse as parseYaml } from "yaml";
|
|
14
14
|
import { compareSpecToLive, topologyFromRigSpec, topologyFromLiveLogicalIds } from "../../daemon/dist/spec-conformance-surface.js";
|
|
15
|
+
import { findRig, loginShellPath } from "../../daemon/dist/rig-lookup-surface.js";
|
|
16
|
+
import { shellQuote, shellWord } from "../cross-host-executor.js";
|
|
15
17
|
import { classifyNodeVersion } from "../node-support.js";
|
|
16
18
|
import { checkProviderReadiness } from "../provider-auth.js";
|
|
17
19
|
import { getOpenRigHome, readOpenRigUrl } from "../openrig-compat.js";
|
|
20
|
+
const RIG_START_TIMEOUT_MS = 10_000;
|
|
21
|
+
/** Starts `rig --version` with a login shell's PATH through doctor's runner: the npm `rig` runs on the `node` that PATH
|
|
22
|
+
* gives it, so a `rig` the lookup finds can still fail to start. The first line it printed says why. */
|
|
23
|
+
function startsThroughExec(deps) {
|
|
24
|
+
return (file, { PATH }) => {
|
|
25
|
+
try {
|
|
26
|
+
deps.exec(["env", `PATH=${PATH}`, file, "--version"].map(shellQuote).join(" "), { timeoutMs: RIG_START_TIMEOUT_MS });
|
|
27
|
+
return { ok: true };
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
const e = error;
|
|
31
|
+
if (e.code === "ETIMEDOUT" || (e.signal && !String(e.stderr ?? "").trim()))
|
|
32
|
+
return { ok: false, detail: `it didn't answer within ${RIG_START_TIMEOUT_MS / 1000} s` };
|
|
33
|
+
// What it printed on stderr, else on stdout: a rig can say why it won't start on either.
|
|
34
|
+
const first = (out) => String(out ?? "").split("\n").map((row) => row.trim()).find(Boolean);
|
|
35
|
+
const line = first(e.stderr) ?? first(e.stdout);
|
|
36
|
+
return { ok: false, detail: (line ?? "it exited with an error").slice(0, 200) };
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
18
40
|
const DEFAULT_PORT = 7433;
|
|
19
41
|
const DOCTOR_HTTP_TIMEOUT_MS = 2000;
|
|
20
42
|
const CMUX_SOCKET_CONTROL_FIX = 'In cmux Settings > Automation, select "Automation mode" for Socket Control Mode, or set automation.socketControlMode to "automation" in ~/.config/cmux/cmux.json (older versions use ~/.config/cmux/settings.json; current cmux reads that legacy file only for keys absent from cmux.json). cmux reloads saved settings automatically; rerun `rig doctor` to re-probe without restarting the daemon.';
|
|
@@ -159,6 +181,10 @@ export function runDoctorChecks(deps, providerChecks = checkProviderReadiness(de
|
|
|
159
181
|
fix: "Install tmux: brew install tmux (macOS), apt install tmux (Linux).",
|
|
160
182
|
});
|
|
161
183
|
}
|
|
184
|
+
else if (tmuxProbe.code === "not_runnable" || tmuxProbe.code === "check_failed") {
|
|
185
|
+
const failure = buildTmuxVersionCheckFailure(tmuxProbe.code, tmuxProbe.detail ?? "no detail");
|
|
186
|
+
checks.push({ name: "tmux", status: "fail", message: failure.message, reason: failure.reason, fix: failure.fix });
|
|
187
|
+
}
|
|
162
188
|
else if (tmuxProbe.available && tmuxProbe.version) {
|
|
163
189
|
checks.push({ name: "tmux", status: "pass", message: tmuxProbe.version });
|
|
164
190
|
// #980: a tmux whose server exits on `capture-pane -p` fails every seat at launch.
|
|
@@ -256,6 +282,8 @@ export function runDoctorChecks(deps, providerChecks = checkProviderReadiness(de
|
|
|
256
282
|
reason: writableCheck.reason,
|
|
257
283
|
fix: writableCheck.fix,
|
|
258
284
|
});
|
|
285
|
+
// `rig` where an app started outside a terminal looks it up: a warning at most.
|
|
286
|
+
checks.push(buildRigLoginShellCheck(deps));
|
|
259
287
|
// 7. Port availability (async) — daemon already running on that port counts as OK.
|
|
260
288
|
// OPR.0.4.7 slice-05 item-4b: resolve the daemon host+port ONCE from config and use
|
|
261
289
|
// BOTH for checkPort, healthz, the cmux URL, and messages (a daemon on a non-default
|
|
@@ -558,6 +586,124 @@ function buildCmuxDaemonWarning(deps, platform) {
|
|
|
558
586
|
fix: "Check that cmux is running and allows this user to control it, then rerun `rig doctor` to re-probe. If it still fails, inspect the daemon log with `rig daemon logs`.",
|
|
559
587
|
};
|
|
560
588
|
}
|
|
589
|
+
/** The plugin's lookup (#4064), with its login shell run through doctor's `exec`, so a test's runner stays in charge. */
|
|
590
|
+
function defaultRigLookup(deps) {
|
|
591
|
+
// `exec` runs with this process's environment, so the PATH the login shell starts from goes on the command line.
|
|
592
|
+
const spawnSync = (file, args, options) => {
|
|
593
|
+
const argv = [...(options.env?.PATH !== undefined ? ["env", `PATH=${options.env.PATH}`] : []), file, ...args];
|
|
594
|
+
try {
|
|
595
|
+
return { status: 0, stdout: deps.exec(argv.map(shellQuote).join(" "), { timeoutMs: options.timeout }) };
|
|
596
|
+
}
|
|
597
|
+
catch (error) {
|
|
598
|
+
return { status: 1, stdout: "", error };
|
|
599
|
+
}
|
|
600
|
+
};
|
|
601
|
+
return {
|
|
602
|
+
findRig: ({ env }) => findRig({ env }),
|
|
603
|
+
loginShellPath: ({ env }) => loginShellPath({ env, spawnSync }),
|
|
604
|
+
realpath: (file) => realpathSync(file),
|
|
605
|
+
};
|
|
606
|
+
}
|
|
607
|
+
/** The PATH an app started outside a terminal begins with, before its login shell's profile: launchd's default for a Mac's
|
|
608
|
+
* apps, and the usual system default elsewhere. */
|
|
609
|
+
function appStartPath(platform) {
|
|
610
|
+
return platform === "darwin" ? "/usr/bin:/bin:/usr/sbin:/sbin" : "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin";
|
|
611
|
+
}
|
|
612
|
+
/** The line that puts `dir` on a login shell's PATH: zsh reads ~/.zprofile in a login shell and ~/.zshrc only in an
|
|
613
|
+
* interactive one; a login bash reads the first of ~/.bash_profile, ~/.bash_login and ~/.profile, never ~/.bashrc; fish
|
|
614
|
+
* reads config.fish in every shell. */
|
|
615
|
+
function loginPathLine(shell, dir) {
|
|
616
|
+
const literalDir = dir.replace(/[\\$`\"]/g, "\\$&");
|
|
617
|
+
if (shell === "zsh")
|
|
618
|
+
return `in ~/.zprofile: export PATH="${literalDir}:$PATH"`;
|
|
619
|
+
if (shell === "bash")
|
|
620
|
+
return `in ~/.bash_profile (or ~/.profile when there's no ~/.bash_profile or ~/.bash_login): export PATH="${literalDir}:$PATH"`;
|
|
621
|
+
// Apply to each shell's PATH even when config.fish resets it and fish_user_paths already contains the directory, and
|
|
622
|
+
// move a directory PATH already holds to the front: without --move, fish_add_path leaves it where it is.
|
|
623
|
+
if (shell === "fish")
|
|
624
|
+
return `in ~/.config/fish/config.fish: fish_add_path --path --move ${shellWord(dir)}`;
|
|
625
|
+
return `in ~/.profile: export PATH="${literalDir}:$PATH"`;
|
|
626
|
+
}
|
|
627
|
+
/** The @openrig/cli package a file belongs to, found by walking up from it; null when there's none to read. */
|
|
628
|
+
function openrigCliPackage(start, readFile) {
|
|
629
|
+
let dir = start;
|
|
630
|
+
for (let i = 0; i < 8; i++) {
|
|
631
|
+
try {
|
|
632
|
+
if (JSON.parse(readFile(path.join(dir, "package.json")) ?? "null")?.name === "@openrig/cli")
|
|
633
|
+
return dir;
|
|
634
|
+
}
|
|
635
|
+
catch { /* not a package here */ }
|
|
636
|
+
const up = path.dirname(dir);
|
|
637
|
+
if (up === dir)
|
|
638
|
+
return null;
|
|
639
|
+
dir = up;
|
|
640
|
+
}
|
|
641
|
+
return null;
|
|
642
|
+
}
|
|
643
|
+
/** `rig` where an app started outside a terminal looks it up. Claude Desktop's Code tab, or any app that runs the openrig
|
|
644
|
+
* plugin, finds `rig` the way the plugin does (#4064): OPENRIG_RIG_BIN or PATH in the app's own environment, then a
|
|
645
|
+
* login shell's PATH. This terminal can find `rig` while a login shell doesn't, so the check reads the login shell, with
|
|
646
|
+
* the plugin's own lookup. A warning at most: it reads, never rewrites a profile, and never fails doctor or setup. It
|
|
647
|
+
* checks the lookup, not an app itself. */
|
|
648
|
+
function buildRigLoginShellCheck(deps) {
|
|
649
|
+
const name = "rig_login_shell";
|
|
650
|
+
const env = deps.env ?? process.env;
|
|
651
|
+
const lookup = deps.rigLookup ?? defaultRigLookup(deps);
|
|
652
|
+
const shell = path.basename(String(env.SHELL || "/bin/sh"));
|
|
653
|
+
// The plugin uses an explicit executable before either PATH lookup. A login probe need not answer for it to work.
|
|
654
|
+
const configured = env.OPENRIG_RIG_BIN ? lookup.findRig({ env: { OPENRIG_RIG_BIN: env.OPENRIG_RIG_BIN, PATH: "" } }) : null;
|
|
655
|
+
if (configured) {
|
|
656
|
+
return { name, status: "pass",
|
|
657
|
+
message: `OPENRIG_RIG_BIN names an executable rig (${configured}), selected before PATH or a login shell: an app finds it when it starts with OPENRIG_RIG_BIN in its own environment, not only in this shell. This checks the lookup, not an app itself.` };
|
|
658
|
+
}
|
|
659
|
+
// An app's login shell starts from the app's own PATH, not this terminal's; a login profile usually adds to the PATH it
|
|
660
|
+
// starts with, so starting from this terminal's would find whatever this terminal finds.
|
|
661
|
+
const loginPath = lookup.loginShellPath({ env: { ...env, PATH: appStartPath(deps.platform ?? process.platform) } });
|
|
662
|
+
if (loginPath === null) {
|
|
663
|
+
return { name, status: "skipped", message: `Couldn't read a login shell's PATH (${shell} -l), so where apps find rig wasn't checked.` };
|
|
664
|
+
}
|
|
665
|
+
const atLogin = lookup.findRig({ env: { PATH: loginPath } });
|
|
666
|
+
const here = lookup.findRig({ env: { PATH: String(env.PATH ?? "") } });
|
|
667
|
+
const nodeDir = path.dirname((lookup.nodeBin ?? (() => process.execPath))());
|
|
668
|
+
// A login shell run from this terminal inherits this terminal's PATH and can find rig before any repair; doctor starts
|
|
669
|
+
// the login shell from the app's PATH, so the check is this row itself, run by the rig the person ran: plain `rig` only
|
|
670
|
+
// when this terminal's rig is that one. An OPENRIG_RIG_BIN set only for the app isn't in this terminal's environment.
|
|
671
|
+
const verify = (sameRig) => `Check with: ${sameRig ? "rig" : "<the full path of the rig you just ran>"} doctor (after the PATH change this row reads OK; an OPENRIG_RIG_BIN set only for the app isn't visible here).`;
|
|
672
|
+
if (atLogin) {
|
|
673
|
+
// Found is not started: the npm `rig` runs on the `node` the login PATH gives it, as the plugin runs it.
|
|
674
|
+
const started = (lookup.starts ?? startsThroughExec(deps))(atLogin, { PATH: loginPath });
|
|
675
|
+
if (!started.ok) {
|
|
676
|
+
return { name, status: "warn",
|
|
677
|
+
message: `A login shell (${shell} -l) finds rig at ${atLogin}, but it doesn't start with that shell's PATH (${started.detail}). Apps that look rig up through a login shell, such as Claude Desktop's Code tab, can't start it, so the team's questions won't come into those conversations by themselves.`,
|
|
678
|
+
fix: `rig runs on node, so the login PATH needs node too: put node's folder (this shell's node is in ${nodeDir}) on PATH ${loginPathLine(shell, nodeDir)}, then restart the app. ${verify(here !== null)}` };
|
|
679
|
+
}
|
|
680
|
+
const own = openrigCliPackage(deps.baseDir, deps.readFile);
|
|
681
|
+
let theirs = null;
|
|
682
|
+
try {
|
|
683
|
+
theirs = openrigCliPackage(path.dirname(lookup.realpath(atLogin)), deps.readFile);
|
|
684
|
+
}
|
|
685
|
+
catch { /* can't tell */ }
|
|
686
|
+
if (own && theirs && own !== theirs) {
|
|
687
|
+
// Name this terminal's rig only when it's the install running now: `/opt/new/bin/rig doctor` run by its path, with
|
|
688
|
+
// the old install on this terminal's PATH too, would otherwise get the old one named.
|
|
689
|
+
let ran = null;
|
|
690
|
+
try {
|
|
691
|
+
if (here && openrigCliPackage(path.dirname(lookup.realpath(here)), deps.readFile) === own)
|
|
692
|
+
ran = here;
|
|
693
|
+
}
|
|
694
|
+
catch { /* can't tell */ }
|
|
695
|
+
return { name, status: "warn",
|
|
696
|
+
message: `A login shell (${shell} -l) finds a different rig, ${atLogin} (from ${theirs}), from the one running now (${own}). Apps that look rig up through a login shell, such as Claude Desktop's Code tab, run that one.`,
|
|
697
|
+
fix: `Put the folder that holds this rig first on PATH ${loginPathLine(shell, ran ? path.dirname(ran) : "<the folder that holds the rig you just ran>")}, or set OPENRIG_RIG_BIN to ${ran ? shellWord(ran) : "the full path of the rig you just ran"} in the environment the app starts with; then restart the app. ${verify(ran !== null)}` };
|
|
698
|
+
}
|
|
699
|
+
return { name, status: "pass",
|
|
700
|
+
message: `A login shell (${shell} -l) finds rig at ${atLogin}, and it starts with that shell's PATH, so apps that look rig up the way the openrig plugin does, such as Claude Desktop's Code tab, can start it too. This checks the lookup, not an app itself.` };
|
|
701
|
+
}
|
|
702
|
+
const dir = here ? path.dirname(here) : "<the folder that holds rig: the bin inside the one `npm prefix -g` prints>";
|
|
703
|
+
return { name, status: "warn",
|
|
704
|
+
message: `${here ? `rig runs in this shell (${here}), but a login shell (${shell} -l) doesn't find it` : `Neither this shell's PATH nor a login shell's (${shell} -l) has rig`}. Apps that look rig up through a login shell, such as Claude Desktop's Code tab, won't find it, so the team's questions won't come into those conversations by themselves.`,
|
|
705
|
+
fix: `Put rig's folder on PATH ${loginPathLine(shell, dir)}${nodeDir !== dir ? `, and node's folder too if the login PATH lacks it (this shell's node is in ${nodeDir}), since rig runs on node` : ""}, then restart the app; or set OPENRIG_RIG_BIN to ${here ? shellWord(here) : "the full path of rig"} in the environment the app starts with. ${verify(here !== null)}` };
|
|
706
|
+
}
|
|
561
707
|
/** The standalone doctor's command runner. A command with `timeoutMs` is bounded (the tmux capture probe passes one); others
|
|
562
708
|
* run to completion, as before. */
|
|
563
709
|
export function doctorExec(c, opts) {
|