@openrig/cli 0.7.17 → 0.7.19
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 -6
- package/daemon/assets/claude-hook-bridge.cjs +146 -0
- package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +1 -1
- 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/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/README.md +1 -1
- package/daemon/assets/plugins/openrig-core/hooks/claude.json +14 -14
- package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +43 -22
- package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus.cjs +6 -0
- package/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md +23 -0
- package/daemon/assets/plugins/openrig-core/skills/mission-slice-sop/SKILL.md +1 -1
- package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +11 -0
- package/daemon/assets/plugins/openrig-core/skills/refocusing/scripts/trace-to-root.py +95 -7
- package/daemon/assets/skills/rigs/SKILL.md +68 -33
- package/daemon/assets/skills/rigs/references/installing-for-someone.md +2 -2
- 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 +57 -14
- package/daemon/context-packs/reference/getting-started.md +9 -4
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +197 -1
- package/daemon/context-packs/reference/whats-new.md +187 -15
- 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/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/messaging-the-human/SKILL.md +23 -0
- 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/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/SKILL.md +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 +11 -0
- package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
- package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
- package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
- package/daemon/context-packs/skills/refocusing/scripts/trace-to-root.py +95 -7
- package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
- package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
- package/daemon/context-packs/world-example/manifest.yaml +1 -1
- package/daemon/context-packs/world-public/manifest.yaml +1 -1
- package/daemon/dist/adapters/claude-code-adapter.d.ts +9 -0
- package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +57 -9
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts +4 -1
- package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume.js +15 -5
- package/daemon/dist/adapters/claude-resume.js.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts +5 -0
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js +45 -10
- package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/kernel-authority.d.ts +8 -1
- package/daemon/dist/adapters/kernel-authority.d.ts.map +1 -1
- package/daemon/dist/adapters/kernel-authority.js +45 -10
- package/daemon/dist/adapters/kernel-authority.js.map +1 -1
- package/daemon/dist/adapters/pi-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-resume.js +5 -7
- package/daemon/dist/adapters/pi-resume.js.map +1 -1
- package/daemon/dist/adapters/pi-runner-protocol.d.ts +47 -0
- package/daemon/dist/adapters/pi-runner-protocol.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner-protocol.js.map +1 -1
- package/daemon/dist/adapters/pi-runner.d.ts +84 -1
- package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner.js +799 -16
- package/daemon/dist/adapters/pi-runner.js.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts +7 -1
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.js +29 -19
- package/daemon/dist/adapters/pi-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/tmux-credential-env.d.ts +4 -0
- package/daemon/dist/adapters/tmux-credential-env.d.ts.map +1 -0
- package/daemon/dist/adapters/tmux-credential-env.js +14 -0
- package/daemon/dist/adapters/tmux-credential-env.js.map +1 -0
- package/daemon/dist/adapters/tmux-exec.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-exec.js +4 -3
- package/daemon/dist/adapters/tmux-exec.js.map +1 -1
- package/daemon/dist/adapters/tmux-server.d.ts +2 -2
- package/daemon/dist/adapters/tmux-server.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-server.js +12 -4
- package/daemon/dist/adapters/tmux-server.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +242 -14
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +966 -34
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/attention-surface.d.ts +4 -1
- package/daemon/dist/attention-surface.d.ts.map +1 -1
- package/daemon/dist/attention-surface.js.map +1 -1
- package/daemon/dist/build-info.js +3 -3
- package/daemon/dist/db/all-migrations.d.ts.map +1 -1
- package/daemon/dist/db/all-migrations.js +14 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrations/171_claude_auto_mode.d.ts +4 -0
- package/daemon/dist/db/migrations/171_claude_auto_mode.d.ts.map +1 -0
- package/daemon/dist/db/migrations/171_claude_auto_mode.js +9 -0
- package/daemon/dist/db/migrations/171_claude_auto_mode.js.map +1 -0
- package/daemon/dist/db/migrations/171_node_input_route.d.ts +4 -0
- package/daemon/dist/db/migrations/171_node_input_route.d.ts.map +1 -0
- package/daemon/dist/db/migrations/171_node_input_route.js +6 -0
- package/daemon/dist/db/migrations/171_node_input_route.js.map +1 -0
- package/daemon/dist/db/migrations/171_seat_hook_bridge.d.ts +5 -0
- package/daemon/dist/db/migrations/171_seat_hook_bridge.d.ts.map +1 -0
- package/daemon/dist/db/migrations/171_seat_hook_bridge.js +25 -0
- package/daemon/dist/db/migrations/171_seat_hook_bridge.js.map +1 -0
- package/daemon/dist/db/migrations/172_queue_return_route.d.ts +3 -0
- package/daemon/dist/db/migrations/172_queue_return_route.d.ts.map +1 -0
- package/daemon/dist/db/migrations/172_queue_return_route.js +13 -0
- package/daemon/dist/db/migrations/172_queue_return_route.js.map +1 -0
- package/daemon/dist/db/migrations/173_node_process_limits.d.ts +4 -0
- package/daemon/dist/db/migrations/173_node_process_limits.d.ts.map +1 -0
- package/daemon/dist/db/migrations/173_node_process_limits.js +6 -0
- package/daemon/dist/db/migrations/173_node_process_limits.js.map +1 -0
- package/daemon/dist/db/migrations/174_session_launched_cwd.d.ts +6 -0
- package/daemon/dist/db/migrations/174_session_launched_cwd.d.ts.map +1 -0
- package/daemon/dist/db/migrations/174_session_launched_cwd.js +8 -0
- package/daemon/dist/db/migrations/174_session_launched_cwd.js.map +1 -0
- package/daemon/dist/db/migrations/175_core_app_access.d.ts +3 -0
- package/daemon/dist/db/migrations/175_core_app_access.d.ts.map +1 -0
- package/daemon/dist/db/migrations/175_core_app_access.js +26 -0
- package/daemon/dist/db/migrations/175_core_app_access.js.map +1 -0
- package/daemon/dist/domain/activity-grants.d.ts.map +1 -1
- package/daemon/dist/domain/activity-grants.js +8 -4
- package/daemon/dist/domain/activity-grants.js.map +1 -1
- package/daemon/dist/domain/agent-activity-store.d.ts +59 -1
- package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
- package/daemon/dist/domain/agent-activity-store.js +250 -4
- package/daemon/dist/domain/agent-activity-store.js.map +1 -1
- package/daemon/dist/domain/agent-images/resume-token-discovery.d.ts +10 -0
- package/daemon/dist/domain/agent-images/resume-token-discovery.d.ts.map +1 -1
- package/daemon/dist/domain/agent-images/resume-token-discovery.js +21 -0
- package/daemon/dist/domain/agent-images/resume-token-discovery.js.map +1 -1
- package/daemon/dist/domain/applied-launch-observation-store.d.ts +5 -0
- package/daemon/dist/domain/applied-launch-observation-store.d.ts.map +1 -1
- package/daemon/dist/domain/applied-launch-observation-store.js +57 -21
- package/daemon/dist/domain/applied-launch-observation-store.js.map +1 -1
- package/daemon/dist/domain/builtin-startup-files.d.ts +26 -12
- package/daemon/dist/domain/builtin-startup-files.d.ts.map +1 -1
- package/daemon/dist/domain/builtin-startup-files.js +73 -34
- package/daemon/dist/domain/builtin-startup-files.js.map +1 -1
- package/daemon/dist/domain/claude-activity-hooks.d.ts +4 -2
- package/daemon/dist/domain/claude-activity-hooks.d.ts.map +1 -1
- package/daemon/dist/domain/claude-activity-hooks.js +5 -3
- package/daemon/dist/domain/claude-activity-hooks.js.map +1 -1
- package/daemon/dist/domain/claude-auto-mode.d.ts +64 -0
- package/daemon/dist/domain/claude-auto-mode.d.ts.map +1 -0
- package/daemon/dist/domain/claude-auto-mode.js +114 -0
- package/daemon/dist/domain/claude-auto-mode.js.map +1 -0
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts +66 -3
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.js +214 -10
- package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
- package/daemon/dist/domain/claude-continuation-launch.d.ts +5 -1
- package/daemon/dist/domain/claude-continuation-launch.d.ts.map +1 -1
- package/daemon/dist/domain/claude-continuation-launch.js +51 -2
- package/daemon/dist/domain/claude-continuation-launch.js.map +1 -1
- package/daemon/dist/domain/claude-core-plugin-env.d.ts +7 -3
- package/daemon/dist/domain/claude-core-plugin-env.d.ts.map +1 -1
- package/daemon/dist/domain/claude-core-plugin-env.js +11 -8
- package/daemon/dist/domain/claude-core-plugin-env.js.map +1 -1
- package/daemon/dist/domain/codex-daemon-support.d.ts.map +1 -1
- package/daemon/dist/domain/codex-daemon-support.js +6 -1
- package/daemon/dist/domain/codex-daemon-support.js.map +1 -1
- package/daemon/dist/domain/community-harness-launch-result.d.ts +2 -0
- package/daemon/dist/domain/community-harness-launch-result.d.ts.map +1 -1
- package/daemon/dist/domain/community-harness-launch-result.js +5 -1
- package/daemon/dist/domain/community-harness-launch-result.js.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts +3 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.js +22 -3
- package/daemon/dist/domain/compaction-restore-notice.js.map +1 -1
- package/daemon/dist/domain/configured-account.d.ts +3 -0
- package/daemon/dist/domain/configured-account.d.ts.map +1 -0
- package/daemon/dist/domain/configured-account.js +10 -0
- package/daemon/dist/domain/configured-account.js.map +1 -0
- package/daemon/dist/domain/connection-contract.d.ts +91 -0
- package/daemon/dist/domain/connection-contract.d.ts.map +1 -1
- package/daemon/dist/domain/connection-contract.js +73 -0
- package/daemon/dist/domain/connection-contract.js.map +1 -1
- package/daemon/dist/domain/context-usage-store.d.ts +5 -0
- package/daemon/dist/domain/context-usage-store.d.ts.map +1 -1
- package/daemon/dist/domain/context-usage-store.js +37 -2
- package/daemon/dist/domain/context-usage-store.js.map +1 -1
- package/daemon/dist/domain/core-app-access.d.ts +51 -0
- package/daemon/dist/domain/core-app-access.d.ts.map +1 -0
- package/daemon/dist/domain/core-app-access.js +107 -0
- package/daemon/dist/domain/core-app-access.js.map +1 -0
- package/daemon/dist/domain/core-app-job.d.ts +411 -0
- package/daemon/dist/domain/core-app-job.d.ts.map +1 -0
- package/daemon/dist/domain/core-app-job.js +537 -0
- package/daemon/dist/domain/core-app-job.js.map +1 -0
- package/daemon/dist/domain/current-park-arm.d.ts +4 -0
- package/daemon/dist/domain/current-park-arm.d.ts.map +1 -0
- package/daemon/dist/domain/current-park-arm.js +14 -0
- package/daemon/dist/domain/current-park-arm.js.map +1 -0
- package/daemon/dist/domain/current-work.d.ts +6 -1
- package/daemon/dist/domain/current-work.d.ts.map +1 -1
- package/daemon/dist/domain/current-work.js +41 -8
- package/daemon/dist/domain/current-work.js.map +1 -1
- package/daemon/dist/domain/cwd-resolution.d.ts +14 -0
- package/daemon/dist/domain/cwd-resolution.d.ts.map +1 -1
- package/daemon/dist/domain/cwd-resolution.js +28 -3
- package/daemon/dist/domain/cwd-resolution.js.map +1 -1
- package/daemon/dist/domain/draft-aware-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/draft-aware-delivery.js +5 -1
- package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
- package/daemon/dist/domain/errors.d.ts +4 -0
- package/daemon/dist/domain/errors.d.ts.map +1 -1
- package/daemon/dist/domain/errors.js +7 -0
- package/daemon/dist/domain/errors.js.map +1 -1
- package/daemon/dist/domain/execution-view.d.ts.map +1 -1
- package/daemon/dist/domain/execution-view.js +17 -4
- package/daemon/dist/domain/execution-view.js.map +1 -1
- package/daemon/dist/domain/existing-rig-restore.d.ts +2 -0
- package/daemon/dist/domain/existing-rig-restore.d.ts.map +1 -1
- package/daemon/dist/domain/existing-rig-restore.js +1 -0
- package/daemon/dist/domain/existing-rig-restore.js.map +1 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.js +107 -3
- package/daemon/dist/domain/gateway/operator-delivery-engine.js.map +1 -1
- package/daemon/dist/domain/gateway/participants.d.ts +2 -0
- package/daemon/dist/domain/gateway/participants.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/participants.js +5 -1
- package/daemon/dist/domain/gateway/participants.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/capabilities.d.ts +9 -1
- package/daemon/dist/domain/gateway/slack/capabilities.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/capabilities.js +6 -1
- package/daemon/dist/domain/gateway/slack/capabilities.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound-admission.js +1 -1
- package/daemon/dist/domain/gateway/slack/inbound-admission.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.d.ts +4 -0
- package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.js +15 -1
- package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/manifest.d.ts +5 -1
- package/daemon/dist/domain/gateway/slack/manifest.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/manifest.js +12 -3
- package/daemon/dist/domain/gateway/slack/manifest.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.d.ts +2 -0
- package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.js +41 -18
- package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts +2 -0
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.js +1 -0
- package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/settled-asks.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/settled-asks.js +6 -5
- package/daemon/dist/domain/gateway/slack/settled-asks.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-api.d.ts +1 -0
- package/daemon/dist/domain/gateway/slack/slack-api.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-api.js +7 -2
- package/daemon/dist/domain/gateway/slack/slack-api.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +1 -0
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.js +2 -0
- package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts +4 -0
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js +26 -2
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
- package/daemon/dist/domain/harness-not-started-notice.d.ts +36 -0
- package/daemon/dist/domain/harness-not-started-notice.d.ts.map +1 -0
- package/daemon/dist/domain/harness-not-started-notice.js +81 -0
- package/daemon/dist/domain/harness-not-started-notice.js.map +1 -0
- package/daemon/dist/domain/hook-bridge.d.ts +345 -0
- package/daemon/dist/domain/hook-bridge.d.ts.map +1 -0
- package/daemon/dist/domain/hook-bridge.js +547 -0
- package/daemon/dist/domain/hook-bridge.js.map +1 -0
- package/daemon/dist/domain/hosted-wake.d.ts +9 -0
- package/daemon/dist/domain/hosted-wake.d.ts.map +1 -1
- package/daemon/dist/domain/hosted-wake.js +45 -6
- package/daemon/dist/domain/hosted-wake.js.map +1 -1
- package/daemon/dist/domain/hot-potato-enforcer.d.ts +1 -1
- package/daemon/dist/domain/human-ask-attention.d.ts +10 -0
- package/daemon/dist/domain/human-ask-attention.d.ts.map +1 -0
- package/daemon/dist/domain/human-ask-attention.js +22 -0
- package/daemon/dist/domain/human-ask-attention.js.map +1 -0
- package/daemon/dist/domain/input-read-diagnostic.js +1 -1
- package/daemon/dist/domain/input-read-diagnostic.js.map +1 -1
- package/daemon/dist/domain/instance-initialization.d.ts +2 -0
- package/daemon/dist/domain/instance-initialization.d.ts.map +1 -1
- package/daemon/dist/domain/instance-initialization.js +2 -1
- package/daemon/dist/domain/instance-initialization.js.map +1 -1
- package/daemon/dist/domain/member-connection.d.ts +14 -0
- package/daemon/dist/domain/member-connection.d.ts.map +1 -0
- package/daemon/dist/domain/member-connection.js +34 -0
- package/daemon/dist/domain/member-connection.js.map +1 -0
- package/daemon/dist/domain/mission-control/mission-control-action-log.d.ts +4 -0
- 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 +8 -1
- 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 +10 -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 +64 -12
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
- package/daemon/dist/domain/model-divergence/current-model-reader.d.ts +3 -1
- package/daemon/dist/domain/model-divergence/current-model-reader.d.ts.map +1 -1
- package/daemon/dist/domain/model-divergence/current-model-reader.js +32 -7
- package/daemon/dist/domain/model-divergence/current-model-reader.js.map +1 -1
- package/daemon/dist/domain/native-continuation-notice.d.ts +16 -0
- package/daemon/dist/domain/native-continuation-notice.d.ts.map +1 -0
- package/daemon/dist/domain/native-continuation-notice.js +79 -0
- package/daemon/dist/domain/native-continuation-notice.js.map +1 -0
- package/daemon/dist/domain/native-permission-store.d.ts +6 -2
- package/daemon/dist/domain/native-permission-store.d.ts.map +1 -1
- package/daemon/dist/domain/native-permission-store.js +12 -5
- package/daemon/dist/domain/native-permission-store.js.map +1 -1
- package/daemon/dist/domain/native-process-lineage.d.ts +16 -0
- package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
- package/daemon/dist/domain/native-process-lineage.js +48 -3
- package/daemon/dist/domain/native-process-lineage.js.map +1 -1
- package/daemon/dist/domain/native-resume-probe.d.ts +5 -0
- package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +94 -10
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/network/network-connector.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-connector.js +11 -2
- package/daemon/dist/domain/network/network-connector.js.map +1 -1
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +55 -6
- package/daemon/dist/domain/node-inventory.js.map +1 -1
- package/daemon/dist/domain/node-launcher.d.ts +14 -0
- package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/node-launcher.js +35 -6
- package/daemon/dist/domain/node-launcher.js.map +1 -1
- package/daemon/dist/domain/outbox-handler.d.ts +69 -1
- package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
- package/daemon/dist/domain/outbox-handler.js +337 -3
- package/daemon/dist/domain/outbox-handler.js.map +1 -1
- package/daemon/dist/domain/park-wake-text.d.ts +18 -0
- package/daemon/dist/domain/park-wake-text.d.ts.map +1 -1
- package/daemon/dist/domain/park-wake-text.js +44 -0
- package/daemon/dist/domain/park-wake-text.js.map +1 -1
- package/daemon/dist/domain/parked-query.d.ts.map +1 -1
- package/daemon/dist/domain/parked-query.js +3 -1
- package/daemon/dist/domain/parked-query.js.map +1 -1
- package/daemon/dist/domain/permission-account.d.ts +28 -1
- package/daemon/dist/domain/permission-account.d.ts.map +1 -1
- package/daemon/dist/domain/permission-account.js +55 -11
- package/daemon/dist/domain/permission-account.js.map +1 -1
- package/daemon/dist/domain/permission-drift.d.ts +2 -0
- package/daemon/dist/domain/permission-drift.d.ts.map +1 -1
- package/daemon/dist/domain/permission-drift.js.map +1 -1
- package/daemon/dist/domain/pi-compaction-request-store.d.ts +16 -0
- package/daemon/dist/domain/pi-compaction-request-store.d.ts.map +1 -0
- package/daemon/dist/domain/pi-compaction-request-store.js +40 -0
- package/daemon/dist/domain/pi-compaction-request-store.js.map +1 -0
- package/daemon/dist/domain/pi-compaction-service.d.ts +82 -0
- package/daemon/dist/domain/pi-compaction-service.d.ts.map +1 -0
- package/daemon/dist/domain/pi-compaction-service.js +229 -0
- package/daemon/dist/domain/pi-compaction-service.js.map +1 -0
- package/daemon/dist/domain/policies/idle-gate-qitem.d.ts +3 -0
- package/daemon/dist/domain/policies/idle-gate-qitem.d.ts.map +1 -1
- package/daemon/dist/domain/policies/idle-gate-qitem.js +15 -0
- package/daemon/dist/domain/policies/idle-gate-qitem.js.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts +6 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js +28 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
- package/daemon/dist/domain/process-limits.d.ts +47 -0
- package/daemon/dist/domain/process-limits.d.ts.map +1 -0
- package/daemon/dist/domain/process-limits.js +123 -0
- package/daemon/dist/domain/process-limits.js.map +1 -0
- package/daemon/dist/domain/process-table.d.ts +24 -0
- package/daemon/dist/domain/process-table.d.ts.map +1 -1
- package/daemon/dist/domain/process-table.js +60 -4
- package/daemon/dist/domain/process-table.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 +27 -1
- package/daemon/dist/domain/proof/judgments.js.map +1 -1
- package/daemon/dist/domain/ps-projection.d.ts +2 -1
- package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
- package/daemon/dist/domain/ps-projection.js +6 -1
- package/daemon/dist/domain/ps-projection.js.map +1 -1
- package/daemon/dist/domain/queue-erasure.d.ts +11 -6
- package/daemon/dist/domain/queue-erasure.d.ts.map +1 -1
- package/daemon/dist/domain/queue-erasure.js +47 -21
- package/daemon/dist/domain/queue-erasure.js.map +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +122 -21
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +448 -101
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts +5 -0
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +74 -13
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/queue-transition-log.d.ts +5 -3
- package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
- package/daemon/dist/domain/queue-transition-log.js +9 -6
- package/daemon/dist/domain/queue-transition-log.js.map +1 -1
- package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
- package/daemon/dist/domain/queue-waiting.js +28 -3
- package/daemon/dist/domain/queue-waiting.js.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.d.ts +20 -0
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +264 -25
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/queue-wake-repository.d.ts +10 -1
- package/daemon/dist/domain/queue-wake-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-repository.js +79 -12
- package/daemon/dist/domain/queue-wake-repository.js.map +1 -1
- package/daemon/dist/domain/reconciler.d.ts +18 -2
- package/daemon/dist/domain/reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/reconciler.js +40 -0
- package/daemon/dist/domain/reconciler.js.map +1 -1
- package/daemon/dist/domain/restore-attempt-receipt.d.ts.map +1 -1
- package/daemon/dist/domain/restore-attempt-receipt.js +3 -2
- package/daemon/dist/domain/restore-attempt-receipt.js.map +1 -1
- package/daemon/dist/domain/restore-check-service.d.ts +10 -0
- package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
- package/daemon/dist/domain/restore-check-service.js +76 -3
- package/daemon/dist/domain/restore-check-service.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +65 -3
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +311 -55
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/restore-plan-preview.d.ts +28 -1
- package/daemon/dist/domain/restore-plan-preview.d.ts.map +1 -1
- package/daemon/dist/domain/restore-plan-preview.js +17 -5
- package/daemon/dist/domain/restore-plan-preview.js.map +1 -1
- package/daemon/dist/domain/restore-preconditions.d.ts +24 -0
- package/daemon/dist/domain/restore-preconditions.d.ts.map +1 -1
- package/daemon/dist/domain/restore-preconditions.js +61 -1
- package/daemon/dist/domain/restore-preconditions.js.map +1 -1
- package/daemon/dist/domain/restore-topology.d.ts +7 -1
- package/daemon/dist/domain/restore-topology.d.ts.map +1 -1
- package/daemon/dist/domain/restore-topology.js +21 -0
- package/daemon/dist/domain/restore-topology.js.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.d.ts +2 -3
- package/daemon/dist/domain/resume-metadata-refresher.d.ts.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.js +6 -25
- package/daemon/dist/domain/resume-metadata-refresher.js.map +1 -1
- package/daemon/dist/domain/resume-token-validation.d.ts +3 -1
- package/daemon/dist/domain/resume-token-validation.d.ts.map +1 -1
- package/daemon/dist/domain/resume-token-validation.js +6 -3
- package/daemon/dist/domain/resume-token-validation.js.map +1 -1
- package/daemon/dist/domain/return-route.d.ts +73 -0
- package/daemon/dist/domain/return-route.d.ts.map +1 -0
- package/daemon/dist/domain/return-route.js +124 -0
- package/daemon/dist/domain/return-route.js.map +1 -0
- package/daemon/dist/domain/rig-expansion-service.js +1 -1
- package/daemon/dist/domain/rig-expansion-service.js.map +1 -1
- package/daemon/dist/domain/rig-repository.d.ts +12 -0
- package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
- package/daemon/dist/domain/rig-repository.js +74 -0
- package/daemon/dist/domain/rig-repository.js.map +1 -1
- package/daemon/dist/domain/rig-teardown.d.ts +20 -5
- package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
- package/daemon/dist/domain/rig-teardown.js +105 -22
- package/daemon/dist/domain/rig-teardown.js.map +1 -1
- package/daemon/dist/domain/rigspec-codec.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-codec.js +9 -0
- package/daemon/dist/domain/rigspec-codec.js.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.d.ts +6 -0
- package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.js +30 -0
- package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts +27 -2
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +95 -26
- package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-schema.js +44 -1
- package/daemon/dist/domain/rigspec-schema.js.map +1 -1
- package/daemon/dist/domain/rosters.d.ts +23 -0
- package/daemon/dist/domain/rosters.d.ts.map +1 -1
- package/daemon/dist/domain/rosters.js +37 -5
- package/daemon/dist/domain/rosters.js.map +1 -1
- package/daemon/dist/domain/runner-channel.d.ts +65 -0
- package/daemon/dist/domain/runner-channel.d.ts.map +1 -0
- package/daemon/dist/domain/runner-channel.js +348 -0
- package/daemon/dist/domain/runner-channel.js.map +1 -0
- package/daemon/dist/domain/runner-grant-launch.js +2 -2
- package/daemon/dist/domain/runner-permissions.d.ts +26 -3
- package/daemon/dist/domain/runner-permissions.d.ts.map +1 -1
- package/daemon/dist/domain/runner-permissions.js +160 -39
- 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/runtime-switch-materials.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-switch-materials.js +4 -3
- package/daemon/dist/domain/runtime-switch-materials.js.map +1 -1
- package/daemon/dist/domain/scope/mission-parent.d.ts +19 -0
- package/daemon/dist/domain/scope/mission-parent.d.ts.map +1 -0
- package/daemon/dist/domain/scope/mission-parent.js +134 -0
- package/daemon/dist/domain/scope/mission-parent.js.map +1 -0
- package/daemon/dist/domain/scope/scope-audit.d.ts.map +1 -1
- package/daemon/dist/domain/scope/scope-audit.js +63 -3
- package/daemon/dist/domain/scope/scope-audit.js.map +1 -1
- package/daemon/dist/domain/scope/types.d.ts +3 -1
- package/daemon/dist/domain/scope/types.d.ts.map +1 -1
- package/daemon/dist/domain/scope/types.js +5 -1
- package/daemon/dist/domain/scope/types.js.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.d.ts +6 -4
- package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.js +17 -10
- package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.d.ts +14 -2
- package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.js +55 -15
- package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
- package/daemon/dist/domain/seat-handover-service.d.ts +27 -4
- package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-handover-service.js +210 -65
- package/daemon/dist/domain/seat-handover-service.js.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.d.ts +12 -4
- package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.js +92 -17
- package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +31 -6
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +172 -24
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.d.ts +9 -2
- package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.js +38 -3
- package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts +4 -0
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.js +11 -3
- package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
- package/daemon/dist/domain/seat-skill-apply.d.ts +1 -1
- package/daemon/dist/domain/seat-skill-apply.d.ts.map +1 -1
- package/daemon/dist/domain/seat-skill-apply.js +3 -2
- package/daemon/dist/domain/seat-skill-apply.js.map +1 -1
- package/daemon/dist/domain/seat-status-service.d.ts +4 -0
- package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-status-service.js +31 -6
- package/daemon/dist/domain/seat-status-service.js.map +1 -1
- package/daemon/dist/domain/session-registry.d.ts +5 -1
- package/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.js +12 -1
- package/daemon/dist/domain/session-registry.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +56 -4
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +344 -18
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/shared-conversation.d.ts +58 -0
- package/daemon/dist/domain/shared-conversation.d.ts.map +1 -0
- package/daemon/dist/domain/shared-conversation.js +98 -0
- package/daemon/dist/domain/shared-conversation.js.map +1 -0
- package/daemon/dist/domain/shared-history-selection.d.ts.map +1 -1
- package/daemon/dist/domain/shared-history-selection.js +9 -5
- package/daemon/dist/domain/shared-history-selection.js.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.d.ts +1 -1
- package/daemon/dist/domain/slices/slice-indexer.d.ts.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.js +4 -0
- package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts +1 -0
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +6 -4
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/startup-phase-timing.d.ts +19 -0
- package/daemon/dist/domain/startup-phase-timing.d.ts.map +1 -0
- package/daemon/dist/domain/startup-phase-timing.js +23 -0
- package/daemon/dist/domain/startup-phase-timing.js.map +1 -0
- package/daemon/dist/domain/successor-session-launcher.d.ts +9 -0
- package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.js +33 -10
- package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
- package/daemon/dist/domain/team-operations.d.ts +6 -6
- package/daemon/dist/domain/team-operations.d.ts.map +1 -1
- package/daemon/dist/domain/team-operations.js +2 -4
- package/daemon/dist/domain/team-operations.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts +35 -1
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.js +231 -33
- package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-app-provider.d.ts +6 -0
- package/daemon/dist/domain/terminal/herdr-app-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-app-provider.js +23 -1
- package/daemon/dist/domain/terminal/herdr-app-provider.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-sessions.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-sessions.js +2 -1
- package/daemon/dist/domain/terminal/herdr-sessions.js.map +1 -1
- package/daemon/dist/domain/terminal/rig-viewer-records.d.ts +59 -0
- package/daemon/dist/domain/terminal/rig-viewer-records.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/rig-viewer-records.js +210 -0
- package/daemon/dist/domain/terminal/rig-viewer-records.js.map +1 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts +2 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.d.ts +99 -4
- package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.js +556 -36
- package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
- package/daemon/dist/domain/terminal/tile-layout.js +1 -1
- package/daemon/dist/domain/terminal/tile-layout.js.map +1 -1
- package/daemon/dist/domain/terminal/tmux-viewer-guard.d.ts +25 -0
- package/daemon/dist/domain/terminal/tmux-viewer-guard.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/tmux-viewer-guard.js +70 -0
- package/daemon/dist/domain/terminal/tmux-viewer-guard.js.map +1 -0
- package/daemon/dist/domain/terminal-policy.js +1 -1
- package/daemon/dist/domain/terminal-policy.js.map +1 -1
- package/daemon/dist/domain/transcript-grep-worker.d.ts +2 -0
- package/daemon/dist/domain/transcript-grep-worker.d.ts.map +1 -0
- package/daemon/dist/domain/transcript-grep-worker.js +108 -0
- package/daemon/dist/domain/transcript-grep-worker.js.map +1 -0
- package/daemon/dist/domain/transcript-grep.d.ts +26 -0
- package/daemon/dist/domain/transcript-grep.d.ts.map +1 -0
- package/daemon/dist/domain/transcript-grep.js +90 -0
- package/daemon/dist/domain/transcript-grep.js.map +1 -0
- package/daemon/dist/domain/transcript-store.d.ts +8 -2
- package/daemon/dist/domain/transcript-store.d.ts.map +1 -1
- package/daemon/dist/domain/transcript-store.js +10 -60
- package/daemon/dist/domain/transcript-store.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +149 -5
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/watchdog-delivery-receipts.d.ts +4 -0
- package/daemon/dist/domain/watchdog-delivery-receipts.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-delivery-receipts.js +35 -2
- package/daemon/dist/domain/watchdog-delivery-receipts.js.map +1 -1
- package/daemon/dist/domain/watchdog-delivery.d.ts +45 -1
- package/daemon/dist/domain/watchdog-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-delivery.js +66 -5
- package/daemon/dist/domain/watchdog-delivery.js.map +1 -1
- package/daemon/dist/domain/watchdog-history-log.d.ts +12 -0
- package/daemon/dist/domain/watchdog-history-log.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-history-log.js +19 -1
- package/daemon/dist/domain/watchdog-history-log.js.map +1 -1
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts +32 -0
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-jobs-repository.js +79 -0
- package/daemon/dist/domain/watchdog-jobs-repository.js.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.d.ts +22 -3
- package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.js +33 -9
- package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
- package/daemon/dist/domain/workflow-projector.js +1 -1
- package/daemon/dist/domain/workflow-projector.js.map +1 -1
- package/daemon/dist/domain/workflow-runtime.d.ts +13 -1
- package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-runtime.js +68 -9
- package/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/daemon/dist/domain/workflow-step-trail-log.d.ts +2 -2
- package/daemon/dist/domain/workflow-step-trail-log.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-step-trail-log.js.map +1 -1
- package/daemon/dist/domain/workflow-types.d.ts +3 -1
- package/daemon/dist/domain/workflow-types.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-types.js.map +1 -1
- package/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts +7 -1
- package/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts.map +1 -1
- package/daemon/dist/domain/workspace/default-workspace-scaffold.js +35 -7
- package/daemon/dist/domain/workspace/default-workspace-scaffold.js.map +1 -1
- package/daemon/dist/gateway-slack-surface.d.ts +2 -2
- package/daemon/dist/gateway-slack-surface.d.ts.map +1 -1
- package/daemon/dist/gateway-slack-surface.js +1 -1
- package/daemon/dist/gateway-slack-surface.js.map +1 -1
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +17 -2
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/lib/pane-envelope.d.ts +3 -0
- package/daemon/dist/lib/pane-envelope.d.ts.map +1 -1
- package/daemon/dist/lib/pane-envelope.js +3 -1
- package/daemon/dist/lib/pane-envelope.js.map +1 -1
- package/daemon/dist/mission-parent-surface.d.ts +2 -0
- package/daemon/dist/mission-parent-surface.d.ts.map +1 -0
- package/daemon/dist/mission-parent-surface.js +2 -0
- package/daemon/dist/mission-parent-surface.js.map +1 -0
- package/daemon/dist/routes/activity.d.ts +18 -1
- package/daemon/dist/routes/activity.d.ts.map +1 -1
- package/daemon/dist/routes/activity.js +150 -9
- package/daemon/dist/routes/activity.js.map +1 -1
- package/daemon/dist/routes/agent-images.d.ts.map +1 -1
- package/daemon/dist/routes/agent-images.js +6 -1
- package/daemon/dist/routes/agent-images.js.map +1 -1
- package/daemon/dist/routes/attention.d.ts.map +1 -1
- package/daemon/dist/routes/attention.js +194 -176
- 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 +46 -7
- package/daemon/dist/routes/compaction.js.map +1 -1
- package/daemon/dist/routes/core-app.d.ts +10 -0
- package/daemon/dist/routes/core-app.d.ts.map +1 -0
- package/daemon/dist/routes/core-app.js +175 -0
- package/daemon/dist/routes/core-app.js.map +1 -0
- package/daemon/dist/routes/hook-bridge.d.ts +3 -0
- package/daemon/dist/routes/hook-bridge.d.ts.map +1 -0
- package/daemon/dist/routes/hook-bridge.js +158 -0
- package/daemon/dist/routes/hook-bridge.js.map +1 -0
- package/daemon/dist/routes/missions.d.ts.map +1 -1
- package/daemon/dist/routes/missions.js +14 -2
- package/daemon/dist/routes/missions.js.map +1 -1
- package/daemon/dist/routes/queue.d.ts +4 -1
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +239 -38
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/require-sender-identity.d.ts +4 -3
- package/daemon/dist/routes/require-sender-identity.d.ts.map +1 -1
- package/daemon/dist/routes/require-sender-identity.js.map +1 -1
- package/daemon/dist/routes/restore-check.d.ts.map +1 -1
- package/daemon/dist/routes/restore-check.js +1 -0
- package/daemon/dist/routes/restore-check.js.map +1 -1
- package/daemon/dist/routes/rigspec.d.ts.map +1 -1
- package/daemon/dist/routes/rigspec.js +24 -4
- package/daemon/dist/routes/rigspec.js.map +1 -1
- package/daemon/dist/routes/scope-audit.d.ts.map +1 -1
- package/daemon/dist/routes/scope-audit.js +7 -1
- package/daemon/dist/routes/scope-audit.js.map +1 -1
- package/daemon/dist/routes/seat.d.ts.map +1 -1
- package/daemon/dist/routes/seat.js +133 -6
- package/daemon/dist/routes/seat.js.map +1 -1
- package/daemon/dist/routes/sessions.js +14 -3
- package/daemon/dist/routes/sessions.js.map +1 -1
- package/daemon/dist/routes/slices.d.ts.map +1 -1
- package/daemon/dist/routes/slices.js +21 -2
- package/daemon/dist/routes/slices.js.map +1 -1
- package/daemon/dist/routes/startup.js +9 -2
- package/daemon/dist/routes/startup.js.map +1 -1
- package/daemon/dist/routes/terminal.d.ts.map +1 -1
- package/daemon/dist/routes/terminal.js +47 -6
- package/daemon/dist/routes/terminal.js.map +1 -1
- package/daemon/dist/routes/transcripts.d.ts.map +1 -1
- package/daemon/dist/routes/transcripts.js +16 -1
- package/daemon/dist/routes/transcripts.js.map +1 -1
- package/daemon/dist/routes/up.d.ts.map +1 -1
- package/daemon/dist/routes/up.js +14 -4
- package/daemon/dist/routes/up.js.map +1 -1
- package/daemon/dist/routes/watchdog.d.ts.map +1 -1
- package/daemon/dist/routes/watchdog.js +21 -3
- package/daemon/dist/routes/watchdog.js.map +1 -1
- package/daemon/dist/routes/workflow.d.ts.map +1 -1
- package/daemon/dist/routes/workflow.js +5 -0
- package/daemon/dist/routes/workflow.js.map +1 -1
- package/daemon/dist/server.d.ts +5 -0
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +22 -0
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +140 -48
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/dist/terminal-viewer-guard-surface.d.ts +2 -0
- package/daemon/dist/terminal-viewer-guard-surface.d.ts.map +1 -0
- package/daemon/dist/terminal-viewer-guard-surface.js +2 -0
- package/daemon/dist/terminal-viewer-guard-surface.js.map +1 -0
- package/daemon/docs/reference/agent-startup-guide.md +5 -1
- package/daemon/docs/reference/claude-status-line.md +3 -2
- package/daemon/docs/reference/community-harness-examples/cursor/openrig-cursor-launch +6 -0
- package/daemon/docs/reference/community-harness-examples/dsh/README.md +8 -0
- package/daemon/docs/reference/community-harness-examples/dsh/openrig-dsh-runner.mjs +310 -20
- package/daemon/docs/reference/community-harness-examples/hermes/openrig-hermes-launch +6 -0
- package/daemon/docs/reference/community-harness-examples/openclaw/openrig-openclaw-launch +6 -0
- package/daemon/docs/reference/community-harness-examples/openshell/README.md +2 -0
- package/daemon/docs/reference/community-harness-examples/pi-tui/openrig-pi-tui-launch +6 -0
- package/daemon/docs/reference/community-harness-presets.md +7 -4
- package/daemon/docs/reference/core-app.md +212 -0
- package/daemon/docs/reference/daemon-http-clients.md +67 -12
- package/daemon/docs/reference/getting-started.md +9 -4
- package/daemon/docs/reference/harness-runner-contract.md +140 -4
- package/daemon/docs/reference/herdr-app.md +6 -0
- package/daemon/docs/reference/hosted-members.md +21 -1
- package/daemon/docs/reference/quickstart.md +4 -3
- package/daemon/docs/reference/rig-spec.md +197 -1
- package/daemon/docs/reference/rosters.md +17 -0
- package/daemon/docs/reference/sdlc-conventions.md +47 -6
- package/daemon/docs/reference/seat-delivery.md +87 -6
- package/daemon/docs/reference/slack-app-setup.md +39 -21
- package/daemon/docs/reference/terminal-sessions.md +99 -1
- package/daemon/docs/reference/whats-new.md +187 -15
- package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +23 -0
- package/daemon/specs/rigs/launch/factory/guidance/lead-first-move.md +27 -5
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +32 -8
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/startup/context.md +1 -1
- package/daemon/specs/rigs/launch/kernel/culture/CULTURE.md +12 -0
- package/daemon/specs/rigs/launch/starter/guidance/lead-first-move.md +27 -5
- package/dist/acp/connector.js +1 -1
- package/dist/acp/connector.js.map +1 -1
- package/dist/ask-wake.d.ts.map +1 -1
- package/dist/ask-wake.js +8 -1
- package/dist/ask-wake.js.map +1 -1
- package/dist/build-info.js +3 -3
- package/dist/cli-error.d.ts.map +1 -1
- package/dist/cli-error.js +7 -1
- package/dist/cli-error.js.map +1 -1
- package/dist/client.d.ts +2 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +3 -2
- package/dist/client.js.map +1 -1
- package/dist/commands/archive.js +1 -1
- package/dist/commands/archive.js.map +1 -1
- package/dist/commands/ask.d.ts.map +1 -1
- package/dist/commands/ask.js +92 -11
- package/dist/commands/ask.js.map +1 -1
- package/dist/commands/broadcast.js +9 -5
- package/dist/commands/broadcast.js.map +1 -1
- package/dist/commands/compact.d.ts +3 -4
- package/dist/commands/compact.d.ts.map +1 -1
- package/dist/commands/compact.js +76 -16
- package/dist/commands/compact.js.map +1 -1
- package/dist/commands/config-init-workspace.d.ts.map +1 -1
- package/dist/commands/config-init-workspace.js +3 -0
- package/dist/commands/config-init-workspace.js.map +1 -1
- package/dist/commands/daemon.d.ts.map +1 -1
- package/dist/commands/daemon.js +7 -0
- package/dist/commands/daemon.js.map +1 -1
- package/dist/commands/down.d.ts.map +1 -1
- package/dist/commands/down.js +8 -1
- package/dist/commands/down.js.map +1 -1
- package/dist/commands/export.d.ts.map +1 -1
- package/dist/commands/export.js +2 -1
- package/dist/commands/export.js.map +1 -1
- package/dist/commands/fork.d.ts.map +1 -1
- package/dist/commands/fork.js +2 -0
- package/dist/commands/fork.js.map +1 -1
- package/dist/commands/launch.d.ts.map +1 -1
- package/dist/commands/launch.js +11 -3
- package/dist/commands/launch.js.map +1 -1
- package/dist/commands/ps.d.ts +30 -1
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +85 -6
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +309 -21
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/rig.d.ts +2 -0
- package/dist/commands/rig.d.ts.map +1 -1
- package/dist/commands/rig.js +36 -2
- package/dist/commands/rig.js.map +1 -1
- package/dist/commands/roster.d.ts +8 -0
- package/dist/commands/roster.d.ts.map +1 -1
- package/dist/commands/scope.d.ts.map +1 -1
- package/dist/commands/scope.js +346 -9
- package/dist/commands/scope.js.map +1 -1
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +213 -12
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/send.d.ts +2 -0
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +50 -7
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/setup.js +2 -2
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/slack.d.ts +2 -1
- package/dist/commands/slack.d.ts.map +1 -1
- package/dist/commands/slack.js +38 -2
- package/dist/commands/slack.js.map +1 -1
- package/dist/commands/terminal.d.ts +56 -0
- package/dist/commands/terminal.d.ts.map +1 -1
- package/dist/commands/terminal.js +199 -9
- package/dist/commands/terminal.js.map +1 -1
- package/dist/commands/transcript.js +1 -1
- package/dist/commands/transcript.js.map +1 -1
- package/dist/commands/unarchive.js +1 -1
- package/dist/commands/unarchive.js.map +1 -1
- package/dist/commands/up.d.ts.map +1 -1
- package/dist/commands/up.js +3 -0
- package/dist/commands/up.js.map +1 -1
- package/dist/commands/workflow-follow.d.ts +3 -1
- package/dist/commands/workflow-follow.d.ts.map +1 -1
- package/dist/commands/workflow-follow.js +25 -6
- package/dist/commands/workflow-follow.js.map +1 -1
- package/dist/commands/workflow-render.d.ts.map +1 -1
- package/dist/commands/workflow-render.js +5 -1
- package/dist/commands/workflow-render.js.map +1 -1
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +18 -4
- package/dist/commands/workflow.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +12 -0
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/lib/model-observation.d.ts.map +1 -1
- package/dist/lib/model-observation.js +9 -3
- package/dist/lib/model-observation.js.map +1 -1
- package/dist/lib/scope/mission-composition.d.ts +1 -0
- package/dist/lib/scope/mission-composition.d.ts.map +1 -1
- package/dist/lib/scope/mission-composition.js +14 -0
- package/dist/lib/scope/mission-composition.js.map +1 -1
- package/dist/lib/scope/scope-audit.d.ts.map +1 -1
- package/dist/lib/scope/scope-audit.js +63 -3
- package/dist/lib/scope/scope-audit.js.map +1 -1
- package/dist/lib/scope/scope-fs.d.ts +10 -0
- package/dist/lib/scope/scope-fs.d.ts.map +1 -1
- package/dist/lib/scope/scope-fs.js +60 -0
- package/dist/lib/scope/scope-fs.js.map +1 -1
- package/dist/lib/scope/types.d.ts +3 -1
- package/dist/lib/scope/types.d.ts.map +1 -1
- package/dist/lib/scope/types.js +5 -1
- package/dist/lib/scope/types.js.map +1 -1
- package/dist/local-db.d.ts +5 -0
- package/dist/local-db.d.ts.map +1 -0
- package/dist/local-db.js +23 -0
- package/dist/local-db.js.map +1 -0
- package/dist/local-origin.d.ts.map +1 -1
- package/dist/local-origin.js +2 -17
- package/dist/local-origin.js.map +1 -1
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +138 -24
- package/dist/mcp-server.js.map +1 -1
- package/dist/restore-packet/packet-writer.d.ts.map +1 -1
- package/dist/restore-packet/packet-writer.js +8 -5
- package/dist/restore-packet/packet-writer.js.map +1 -1
- package/dist/sender-identity.d.ts +18 -6
- package/dist/sender-identity.d.ts.map +1 -1
- package/dist/sender-identity.js +67 -7
- package/dist/sender-identity.js.map +1 -1
- package/dist/terminal-window-rex.d.ts +1 -1
- package/dist/terminal-window-rex.d.ts.map +1 -1
- package/dist/terminal-window-rex.js +3 -2
- package/dist/terminal-window-rex.js.map +1 -1
- package/dist/terminal-window.d.ts +2 -1
- package/dist/terminal-window.d.ts.map +1 -1
- package/dist/terminal-window.js +570 -44
- package/dist/terminal-window.js.map +1 -1
- package/package.json +1 -1
- package/tui/dist/daemon-client.d.ts +4 -0
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js +2 -1
- package/tui/dist/daemon-client.js.map +1 -1
- package/tui/dist/execution/execution-model.d.ts.map +1 -1
- package/tui/dist/execution/execution-model.js +22 -5
- package/tui/dist/execution/execution-model.js.map +1 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +6 -3
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/navigator.d.ts +1 -1
- package/tui/dist/navigator.d.ts.map +1 -1
- package/tui/dist/navigator.js +4 -2
- package/tui/dist/navigator.js.map +1 -1
- package/tui/dist/pulse/render-pulse.d.ts.map +1 -1
- package/tui/dist/pulse/render-pulse.js +7 -14
- package/tui/dist/pulse/render-pulse.js.map +1 -1
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +29 -21
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/stylize.d.ts.map +1 -1
- package/tui/dist/stylize.js +3 -3
- package/tui/dist/stylize.js.map +1 -1
- package/tui/dist/terminals/terminal-model.d.ts +1 -0
- package/tui/dist/terminals/terminal-model.d.ts.map +1 -1
- package/tui/dist/terminals/terminal-model.js +4 -2
- package/tui/dist/terminals/terminal-model.js.map +1 -1
- package/tui/dist/types.d.ts +1 -0
- package/tui/dist/types.d.ts.map +1 -1
- package/tui/dist/visual-layout.d.ts +3 -0
- package/tui/dist/visual-layout.d.ts.map +1 -1
- package/tui/dist/visual-layout.js +17 -0
- package/tui/dist/visual-layout.js.map +1 -1
- package/ui/dist/assets/{index-BvUEh33d.js → index-B-sMy02c.js} +116 -116
- package/ui/dist/assets/{index-BX8TUZ0E.css → index-DiN7RwWg.css} +1 -1
- package/ui/dist/index.html +2 -2
package/daemon/dist/startup.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { HookBridge } from "./domain/hook-bridge.js";
|
|
2
|
+
import { beginStartupPhase, recordStartupPhase } from "./domain/startup-phase-timing.js";
|
|
3
|
+
import { RunnerChannel } from "./domain/runner-channel.js";
|
|
4
|
+
import { ActivityGrantStore } from "./domain/activity-grants.js";
|
|
1
5
|
import { runnerGrantIssuer } from "./domain/runner-grant-launch.js";
|
|
2
6
|
import { piAccountStateRoot } from "./domain/pi-account-state.js";
|
|
3
7
|
import { EnvironmentStartup } from "./domain/environment-startup.js";
|
|
@@ -53,6 +57,7 @@ import { SnapshotCapture } from "./domain/snapshot-capture.js";
|
|
|
53
57
|
import { RestoreOrchestrator } from "./domain/restore-orchestrator.js";
|
|
54
58
|
import { createDesiredClaudeActivityHooksReader } from "./domain/desired-claude-activity-hooks.js";
|
|
55
59
|
import { ClaudeManagedLaunch } from "./domain/claude-managed-launch.js";
|
|
60
|
+
import { folderPresent } from "./domain/cwd-resolution.js";
|
|
56
61
|
import { ClaudeResumeAdapter } from "./adapters/claude-resume.js";
|
|
57
62
|
import { CodexResumeAdapter } from "./adapters/codex-resume.js";
|
|
58
63
|
import { codexDaemonSupportProbe } from "./domain/codex-daemon-support.js";
|
|
@@ -193,6 +198,7 @@ import { recoverSeatSkillAttempts } from "./domain/seat-skill-apply.js";
|
|
|
193
198
|
import { restoreExistingRigUnattended } from "./domain/existing-rig-restore.js";
|
|
194
199
|
import { lstatLinkInfo } from "./domain/restore-guidance.js";
|
|
195
200
|
import { managedBlockRecords } from "./domain/managed-block-records.js";
|
|
201
|
+
import { noticeHarnessNotStarted } from "./domain/harness-not-started-notice.js";
|
|
196
202
|
import { getCompatibleOpenRigPath, getDefaultOpenRigPath, getOpenRigHome, readOpenRigEnv, } from "./openrig-compat.js";
|
|
197
203
|
const KNOWN_PROVIDER_AUTH_ENV = new Set([
|
|
198
204
|
"ANTHROPIC_API_KEY",
|
|
@@ -277,7 +283,9 @@ export async function createDaemon(opts) {
|
|
|
277
283
|
for (const warning of databaseWarnings)
|
|
278
284
|
console.warn(`Warning: ${warning}`);
|
|
279
285
|
const db = createDb(dbPath);
|
|
286
|
+
const endMigrations = beginStartupPhase("migrations");
|
|
280
287
|
migrate(db, ALL_MIGRATIONS);
|
|
288
|
+
const migrationsTiming = endMigrations();
|
|
281
289
|
// 51-09 increment 1 — establish the daemon's durable self-host identity at
|
|
282
290
|
// boot (mint on first boot, reconcile thereafter). host.name is a display-only
|
|
283
291
|
// CANDIDATE SEED (arch ruling cb19867f / DP4). Boot proceeds on a host.name
|
|
@@ -306,6 +314,19 @@ export async function createDaemon(opts) {
|
|
|
306
314
|
const rigRepo = new RigRepository(db);
|
|
307
315
|
const sessionRegistry = new SessionRegistry(db);
|
|
308
316
|
const eventBus = new EventBus(db);
|
|
317
|
+
// Slice 13: opted-in Claude seats' hook bridge (the launches read its preference; the transport routes through it).
|
|
318
|
+
// A poll asks the seat's typing guard again whether it holds a queued message (the guard is attached below, before any
|
|
319
|
+
// poll can arrive).
|
|
320
|
+
const hookBridge = new HookBridge(db, { emit: (event) => { try {
|
|
321
|
+
eventBus.emit(event);
|
|
322
|
+
}
|
|
323
|
+
catch { /* an unrecorded bridge event never fails delivery */ } },
|
|
324
|
+
holds: (nodeId, admission) => tmuxAdapter.deliveryGuard?.holdsInput(nodeId, admission) ?? false,
|
|
325
|
+
// A poll claims under the seat's delivery lease, the owner typed sends take, so it can't overtake a typed send.
|
|
326
|
+
lease: (nodeId, fn) => tmuxAdapter.deliveryGuard ? tmuxAdapter.deliveryGuard.exclusive(nodeId, fn) : Promise.resolve(fn()),
|
|
327
|
+
// A rig's delivery drain holds the bridge's automatic deliveries as it holds typed ones (#3270). Read only after
|
|
328
|
+
// startup, by which time the queue below exists.
|
|
329
|
+
drained: (sessionName) => queueRepoInstance.deliveryDrains.holds(sessionName) });
|
|
309
330
|
const streamStore = new StreamStore(db, eventBus);
|
|
310
331
|
// Explicit source opt-in only. No sink I/O until a separate drain request.
|
|
311
332
|
const shadow = configureShadowCapture(process.env.OPENRIG_SHADOW_CAPTURE);
|
|
@@ -314,6 +335,9 @@ export async function createDaemon(opts) {
|
|
|
314
335
|
: new SlowOpRecorder({
|
|
315
336
|
logPath: nodePath.join(OPENRIG_HOME, "logs", "slow-operations.jsonl"),
|
|
316
337
|
}));
|
|
338
|
+
// The migration interval ends before recorder setup; submit it only once the
|
|
339
|
+
// normal nonblocking sink exists. A failed pre-recorder boot has no record.
|
|
340
|
+
recordStartupPhase(slowOpRecorder, migrationsTiming);
|
|
317
341
|
configureSyncSiteRecorder(slowOpRecorder);
|
|
318
342
|
// Instrumentation wiring is observe-only: neither a throwing registration
|
|
319
343
|
// call nor a throwing callback body (streamStore.emit) may abort createDaemon
|
|
@@ -456,6 +480,11 @@ export async function createDaemon(opts) {
|
|
|
456
480
|
// both the queueRepo dep slot and inboxHandler can share one instance.
|
|
457
481
|
// Transport is wired after SessionTransport instantiation below via
|
|
458
482
|
// attachTransport().
|
|
483
|
+
// A queue wake's end at the hook bridge goes on its own row's nudge record (#3270).
|
|
484
|
+
hookBridge.onEnd = (end) => {
|
|
485
|
+
if (end.auditPointer && /^(wake-intent-|guard-nudge-)/.test(end.outboxId))
|
|
486
|
+
queueRepoInstance.recordBridgedWakeEnd(end.auditPointer, end);
|
|
487
|
+
};
|
|
459
488
|
const queueRepoInstance = new QueueRepository(db, eventBus, {
|
|
460
489
|
validateRig: topologyValidateRig,
|
|
461
490
|
canRecordDestination: makeQueueRecordingCheck(topologyValidateRig),
|
|
@@ -482,6 +511,7 @@ export async function createDaemon(opts) {
|
|
|
482
511
|
// staging. Same `db`, so a stageWakeIntent() call inside a terminal
|
|
483
512
|
// db.transaction commits atomically with the close + successor create.
|
|
484
513
|
const outboxHandlerInstance = new OutboxHandler(db);
|
|
514
|
+
const runnerChannel = new RunnerChannel(new ActivityGrantStore(db), outboxHandlerInstance, undefined, eventBus);
|
|
485
515
|
queueRepoInstance.attachOutbox(outboxHandlerInstance);
|
|
486
516
|
outboxHandlerInstance.reconcileAbandonedSending("watchdog-occurrence-");
|
|
487
517
|
// Reconcile only the prior process's claims, before transport/producers/timers can start new sends.
|
|
@@ -565,6 +595,17 @@ export async function createDaemon(opts) {
|
|
|
565
595
|
setDaemonTmuxServer(tmuxSelection?.serverArgs ?? (opts?.tmuxExec ? [] : tmuxServerArgs(process.env)), tmuxSelection);
|
|
566
596
|
const deliveryGuard = new SeatDeliveryGuard(db, target => resolveGuardTarget(db, target));
|
|
567
597
|
deliveryGuard.recoverActivation();
|
|
598
|
+
/** The seat's typing guard is at queue-only (#3076). An unknown seat, or a guard that can't be read, is not: the
|
|
599
|
+
* guard's own level still holds OpenRig's input there. */
|
|
600
|
+
const isQueueOnlyGuardSeat = (sessionName) => {
|
|
601
|
+
try {
|
|
602
|
+
const target = resolveGuardTarget(db, sessionName);
|
|
603
|
+
return !!target && deliveryGuard.queueOnly(target.nodeId);
|
|
604
|
+
}
|
|
605
|
+
catch {
|
|
606
|
+
return false;
|
|
607
|
+
}
|
|
608
|
+
};
|
|
568
609
|
tmuxAdapter.deliveryGuard = deliveryGuard;
|
|
569
610
|
// Slice 15 — Seat-activity service for the `terminal-active` primitive.
|
|
570
611
|
// Lives at module scope so the projection chain (PsProjectionService,
|
|
@@ -646,7 +687,7 @@ export async function createDaemon(opts) {
|
|
|
646
687
|
const seatIdentityReconciler = new SeatIdentityReconciler({
|
|
647
688
|
db,
|
|
648
689
|
tmux: tmuxAdapter,
|
|
649
|
-
readPiRunnerState: sessionName => piAdapter.readRunnerSidecar(sessionName).state,
|
|
690
|
+
readPiRunnerState: (sessionName, runtime = "pi") => (runtime === "omp" ? ompAdapter : piAdapter).readRunnerSidecar(sessionName).state,
|
|
650
691
|
});
|
|
651
692
|
// cmuxFactory takes precedence (for tests), then cmuxExec-based CLI transport, then default
|
|
652
693
|
const cmuxFactory = opts?.cmuxFactory
|
|
@@ -730,6 +771,8 @@ export async function createDaemon(opts) {
|
|
|
730
771
|
// #2030: on Linux, the daemon's runtime directory, with a session bus address that can't connect.
|
|
731
772
|
runtimeDir: seatRuntimeDir(process.env),
|
|
732
773
|
});
|
|
774
|
+
// #3253: a seat's own process limits (rig spec `process_limits`), read from its node at each launch.
|
|
775
|
+
tmuxAdapter.seatProcessLimits = (nodeId) => rigRepo.getNodeProcessLimits(nodeId);
|
|
733
776
|
const tmuxOptionDefaults = new TmuxOptionDefaultsApplier({
|
|
734
777
|
tmuxAdapter,
|
|
735
778
|
platform: opts?.tmuxOptionPlatform,
|
|
@@ -758,6 +801,7 @@ export async function createDaemon(opts) {
|
|
|
758
801
|
sessionEnv: launchSessionEnv,
|
|
759
802
|
runtimeSessionEnv,
|
|
760
803
|
tmuxOptionDefaults,
|
|
804
|
+
createFolder: (dir) => { fs.mkdirSync(dir, { recursive: true }); },
|
|
761
805
|
});
|
|
762
806
|
const snapshotRepo = new SnapshotRepository(db);
|
|
763
807
|
const checkpointStore = new CheckpointStore(db);
|
|
@@ -776,7 +820,8 @@ export async function createDaemon(opts) {
|
|
|
776
820
|
return null;
|
|
777
821
|
}
|
|
778
822
|
};
|
|
779
|
-
const claudeResume = new ClaudeResumeAdapter(tmuxAdapter, { claudeManagedLaunch, seatLaunchEnvironment, openrigHome: OPENRIG_HOME, restoreReadPolicy
|
|
823
|
+
const claudeResume = new ClaudeResumeAdapter(tmuxAdapter, { claudeManagedLaunch, seatLaunchEnvironment, openrigHome: OPENRIG_HOME, restoreReadPolicy,
|
|
824
|
+
hookBridgeLaunch: (nodeId, executable) => hookBridge.launchWanted(nodeId, executable) });
|
|
780
825
|
// #275: one reader for both Codex launch adapters, with the PATH, HOME and CODEX_HOME a seat session gets.
|
|
781
826
|
const readCodexNetworkDefault = codexNetworkDefaultReader({ launchPath: process.env.PATH, home: daemonHome, codexHome });
|
|
782
827
|
const prepareTeamWorkspace = (sessionName) => prepareCodexTeamWorkspace(sessionName, new ContextPackSettingsStore().resolveConfig().workspaceRoot, process.env.OPENRIG_SHARED_DOCS_ROOT?.trim() || nodePath.join(daemonHome, ".openrig", "shared-docs"), daemonHome);
|
|
@@ -818,17 +863,18 @@ export async function createDaemon(opts) {
|
|
|
818
863
|
}
|
|
819
864
|
};
|
|
820
865
|
const runnerGrants = runnerGrantIssuer(db, tmuxAdapter);
|
|
821
|
-
const
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
const
|
|
866
|
+
const resumeRunnerGrant = (runtime) => async (session, runId, cwd) => {
|
|
867
|
+
const owners = db.prepare(`SELECT b.node_id AS nodeId FROM bindings b JOIN nodes n ON n.id=b.node_id
|
|
868
|
+
JOIN sessions s ON s.node_id=n.id AND s.id=(SELECT id FROM sessions WHERE node_id=n.id ORDER BY id DESC LIMIT 1)
|
|
869
|
+
WHERE b.tmux_session=? AND s.session_name=? AND n.runtime=? AND s.status NOT IN ('superseded','detached','exited')`)
|
|
870
|
+
.all(session, session, runtime);
|
|
871
|
+
const binding = owners.length === 1 ? sessionRegistry.getBindingForNode(owners[0].nodeId) : null;
|
|
872
|
+
if (!binding)
|
|
873
|
+
throw new Error(`The restored ${runtime} run has no unambiguous Core binding.`);
|
|
874
|
+
return runnerGrants({ ...binding, cwd }, runtime, runId, 0);
|
|
875
|
+
};
|
|
876
|
+
const piResume = new PiResumeAdapter(tmuxAdapter, { readFile: (p) => fs.readFileSync(p, "utf-8"), writeFile: (p, c) => fs.writeFileSync(p, c, "utf-8"), exists: (p) => fs.existsSync(p), mkdirp: (p) => fs.mkdirSync(p, { recursive: true }) }, { stateRoot: piStateRoot, runnerEntryPath: piRunnerEntryPath }, { runnerGrant: resumeRunnerGrant("pi"), accountHomeForSession: session => seatRuntimeHomeBySession(db, session, "pi"), stateRootForSession: piStateRootForSession, seatLaunchEnvironment, usageFactsEnabled: piUsageFactsEnabled, openRouterChargeEnabled: piOpenRouterChargeEnabled });
|
|
877
|
+
const ompResume = new OmpResumeAdapter(tmuxAdapter, { readFile: (p) => fs.readFileSync(p, "utf-8"), writeFile: (p, c) => fs.writeFileSync(p, c, "utf-8"), exists: (p) => fs.existsSync(p), mkdirp: (p) => fs.mkdirSync(p, { recursive: true }) }, { stateRoot: ompStateRoot, runnerEntryPath: piRunnerEntryPath }, { runnerGrant: resumeRunnerGrant("omp") });
|
|
832
878
|
// Services infrastructure (RigEnv) — created early so restore/bootstrap can use it
|
|
833
879
|
const { ComposeServicesAdapter } = await import("./adapters/compose-services-adapter.js");
|
|
834
880
|
const { ServiceOrchestrator } = await import("./domain/service-orchestrator.js");
|
|
@@ -847,19 +893,21 @@ export async function createDaemon(opts) {
|
|
|
847
893
|
getDesiredClaudeActivityHooks: createDesiredClaudeActivityHooksReader(db, {
|
|
848
894
|
exists: (p) => fs.existsSync(p), readFile: (p) => fs.readFileSync(p, "utf-8"),
|
|
849
895
|
}),
|
|
850
|
-
freshLaunch: async (rigId, nodeId) => persistedFreshPodLaunch
|
|
851
|
-
? persistedFreshPodLaunch(rigId, nodeId)
|
|
896
|
+
freshLaunch: async (rigId, nodeId, launchOpts) => persistedFreshPodLaunch
|
|
897
|
+
? persistedFreshPodLaunch(rigId, nodeId, launchOpts)
|
|
852
898
|
: { status: "failed", error: "Pod instantiator is not ready for a fresh launch." },
|
|
853
899
|
freshLaunchAvailable: (rigId, nodeId) => persistedFreshPodLaunchAvailable?.(rigId, nodeId) ?? false,
|
|
854
900
|
seatSkillSelection: async (rigId, nodeId) => persistedSeatSkillSelection
|
|
855
901
|
? persistedSeatSkillSelection(rigId, nodeId)
|
|
856
902
|
: { ok: false, reason: "the pod instantiator is not ready" },
|
|
903
|
+
harnessNotStartedNotice: (input) => noticeHarnessNotStarted(db, queueRepoInstance, input),
|
|
857
904
|
});
|
|
858
905
|
// Connect to cmux at startup — degrades gracefully if absent
|
|
859
906
|
await cmuxAdapter.connect();
|
|
860
907
|
// Reconcile all managed rigs — marks stale sessions as detached.
|
|
861
908
|
// Capture aggregate counts and log a compact summary so cold-start truth
|
|
862
909
|
// repair is visible in daemon output instead of silently swallowed.
|
|
910
|
+
const endReconciliation = beginStartupPhase("reconciliation");
|
|
863
911
|
const reconciler = new Reconciler({ db, sessionRegistry, eventBus, tmuxAdapter });
|
|
864
912
|
const rigs = rigRepo.listRigs();
|
|
865
913
|
let reconcileChecked = 0;
|
|
@@ -909,6 +957,7 @@ export async function createDaemon(opts) {
|
|
|
909
957
|
console.log(`startup reconcile: rigs=${rigs.length} checked=${reconcileChecked} detached=${reconcileDetached} unseen=${reconcileUnseen} errors=${reconcileErrors}`);
|
|
910
958
|
}
|
|
911
959
|
catch { /* logging must never throw */ }
|
|
960
|
+
recordStartupPhase(slowOpRecorder, endReconciliation());
|
|
912
961
|
// Transcript rotators are process-local. Reattach them after lifecycle
|
|
913
962
|
// reconciliation so surviving tmux sessions keep ingesting across daemon
|
|
914
963
|
// restarts while genuinely detached sessions stay excluded.
|
|
@@ -1003,13 +1052,13 @@ export async function createDaemon(opts) {
|
|
|
1003
1052
|
const claudeCollectorAssetPath = nodePath.resolve(import.meta.dirname, "../assets/claude-statusline-context.cjs");
|
|
1004
1053
|
// #2456: the adapters' guidance writes check and keep OpenRig's record of each managed block.
|
|
1005
1054
|
const guidanceBlockRecords = managedBlockRecords(db);
|
|
1006
|
-
const claudeAdapter = new ClaudeCodeAdapter({ tmux: tmuxAdapter, seatLaunchEnvironment, claudeManagedLaunch, restoreReadPolicy, fsOps: { readFile: (p) => fs.readFileSync(p, "utf-8"), writeFile: (p, c) => fs.writeFileSync(p, c, "utf-8"), exists: (p) => fs.existsSync(p), mkdirp: (p) => fs.mkdirSync(p, { recursive: true }), copyFile: replaceFile, listFiles: (dir) => { const r = []; /** Collect relative file paths recursively. */ /** Collect relative file paths recursively. */ function w(d, pre) { for (const e of fs.readdirSync(d, { withFileTypes: true })) {
|
|
1055
|
+
const claudeAdapter = new ClaudeCodeAdapter({ tmux: tmuxAdapter, seatLaunchEnvironment, claudeManagedLaunch, restoreReadPolicy, hookBridgeLaunch: (nodeId, executable) => hookBridge.launchWanted(nodeId, executable), fsOps: { readFile: (p) => fs.readFileSync(p, "utf-8"), writeFile: (p, c) => fs.writeFileSync(p, c, "utf-8"), exists: (p) => fs.existsSync(p), folderPresent, mkdirp: (p) => fs.mkdirSync(p, { recursive: true }), copyFile: replaceFile, listFiles: (dir) => { const r = []; /** Collect relative file paths recursively. */ /** Collect relative file paths recursively. */ function w(d, pre) { for (const e of fs.readdirSync(d, { withFileTypes: true })) {
|
|
1007
1056
|
if (e.isDirectory())
|
|
1008
1057
|
w(nodePath.join(d, e.name), nodePath.join(pre, e.name));
|
|
1009
1058
|
else
|
|
1010
1059
|
r.push(pre ? nodePath.join(pre, e.name) : e.name);
|
|
1011
1060
|
} } w(dir, ""); return r; }, readdir: (dir) => fs.readdirSync(dir), statMode: (p) => fs.statSync(p).mode, chmod: (p, m) => fs.chmodSync(p, m), homedir: os.homedir() }, stateDir: OPENRIG_HOME, collectorAssetPath: claudeCollectorAssetPath, autoDriveProviderPrompts: runtimeSettings.recoveryAutoDriveProviderPrompts, activityRelayPath: nodePath.resolve(import.meta.dirname, "../assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs"), claudeHooksManifestPath: nodePath.resolve(import.meta.dirname, "../assets/plugins/openrig-core/hooks/claude.json"), managedBlockRecords: guidanceBlockRecords, recordProjection: (targetPath, content) => projectionManifestStore.record({ targetPath, lastHash: hashContent(content), writtenAt: new Date().toISOString() }) });
|
|
1012
|
-
const codexAdapter = new CodexRuntimeAdapter({ managedBlockRecords: guidanceBlockRecords, prepareTeamWorkspace, prepareSeatFolder, tmux: tmuxAdapter, seatLaunchEnvironment, fsOps: { readFile: (p) => fs.readFileSync(p, "utf-8"), writeFile: (p, c) => fs.writeFileSync(p, c, "utf-8"), exists: (p) => fs.existsSync(p), mkdirp: (p) => fs.mkdirSync(p, { recursive: true }), listFiles: (dir) => { const r = []; /** Collect relative file paths recursively. */ /** Collect relative file paths recursively. */ function w(d, pre) { for (const e of fs.readdirSync(d, { withFileTypes: true })) {
|
|
1061
|
+
const codexAdapter = new CodexRuntimeAdapter({ managedBlockRecords: guidanceBlockRecords, prepareTeamWorkspace, prepareSeatFolder, tmux: tmuxAdapter, seatLaunchEnvironment, fsOps: { readFile: (p) => fs.readFileSync(p, "utf-8"), writeFile: (p, c) => fs.writeFileSync(p, c, "utf-8"), exists: (p) => fs.existsSync(p), folderPresent, mkdirp: (p) => fs.mkdirSync(p, { recursive: true }), listFiles: (dir) => { const r = []; /** Collect relative file paths recursively. */ /** Collect relative file paths recursively. */ function w(d, pre) { for (const e of fs.readdirSync(d, { withFileTypes: true })) {
|
|
1013
1062
|
if (e.isDirectory())
|
|
1014
1063
|
w(nodePath.join(d, e.name), nodePath.join(pre, e.name));
|
|
1015
1064
|
else
|
|
@@ -1032,13 +1081,13 @@ export async function createDaemon(opts) {
|
|
|
1032
1081
|
} });
|
|
1033
1082
|
// OPR.0.4.6.PI1 — the RPC-first Pi adapter (runner-in-a-pane). Same fsOps
|
|
1034
1083
|
// shape as the Codex adapter; seat isolation roots under piStateRoot.
|
|
1035
|
-
const piAdapter = new PiRuntimeAdapter({ runnerGrants, managedBlockRecords: guidanceBlockRecords, tmux: tmuxAdapter, seatLaunchEnvironment, fsOps: { readFile: (p) => fs.readFileSync(p, "utf-8"), writeFile: (p, c) => fs.writeFileSync(p, c, "utf-8"), exists: (p) => fs.existsSync(p), mkdirp: (p) => fs.mkdirSync(p, { recursive: true }), listFiles: (dir) => { const r = []; /** Collect relative file paths recursively. */ /** Collect relative file paths recursively. */ function w(d, pre) { for (const e of fs.readdirSync(d, { withFileTypes: true })) {
|
|
1084
|
+
const piAdapter = new PiRuntimeAdapter({ runnerGrants, managedBlockRecords: guidanceBlockRecords, tmux: tmuxAdapter, seatLaunchEnvironment, fsOps: { readFile: (p) => fs.readFileSync(p, "utf-8"), writeFile: (p, c) => fs.writeFileSync(p, c, "utf-8"), exists: (p) => fs.existsSync(p), folderPresent, mkdirp: (p) => fs.mkdirSync(p, { recursive: true }), listFiles: (dir) => { const r = []; /** Collect relative file paths recursively. */ /** Collect relative file paths recursively. */ function w(d, pre) { for (const e of fs.readdirSync(d, { withFileTypes: true })) {
|
|
1036
1085
|
if (e.isDirectory())
|
|
1037
1086
|
w(nodePath.join(d, e.name), nodePath.join(pre, e.name));
|
|
1038
1087
|
else
|
|
1039
1088
|
r.push(pre ? nodePath.join(pre, e.name) : e.name);
|
|
1040
1089
|
} } w(dir, ""); return r; }, statMode: (p) => fs.statSync(p).mode, chmod: (p, m) => fs.chmodSync(p, m), linkInfo: lstatLinkInfo }, stateRootForSession: piStateRootForSession, stateRoot: piStateRoot, runnerEntryPath: piRunnerEntryPath, usageFactsEnabled: piUsageFactsEnabled, openRouterChargeEnabled: piOpenRouterChargeEnabled });
|
|
1041
|
-
const ompAdapter = new OmpRuntimeAdapter({ managedBlockRecords: guidanceBlockRecords, tmux: tmuxAdapter, fsOps: { readFile: (p) => fs.readFileSync(p, "utf-8"), writeFile: (p, c) => fs.writeFileSync(p, c, "utf-8"), exists: (p) => fs.existsSync(p), mkdirp: (p) => fs.mkdirSync(p, { recursive: true }), listFiles: (dir) => { const r = []; /** Collect relative file paths recursively. */ /** Collect relative file paths recursively. */ function w(d, pre) { for (const e of fs.readdirSync(d, { withFileTypes: true })) {
|
|
1090
|
+
const ompAdapter = new OmpRuntimeAdapter({ runnerGrants, managedBlockRecords: guidanceBlockRecords, tmux: tmuxAdapter, fsOps: { readFile: (p) => fs.readFileSync(p, "utf-8"), writeFile: (p, c) => fs.writeFileSync(p, c, "utf-8"), exists: (p) => fs.existsSync(p), folderPresent, mkdirp: (p) => fs.mkdirSync(p, { recursive: true }), listFiles: (dir) => { const r = []; /** Collect relative file paths recursively. */ /** Collect relative file paths recursively. */ function w(d, pre) { for (const e of fs.readdirSync(d, { withFileTypes: true })) {
|
|
1042
1091
|
if (e.isDirectory())
|
|
1043
1092
|
w(nodePath.join(d, e.name), nodePath.join(pre, e.name));
|
|
1044
1093
|
else
|
|
@@ -1076,6 +1125,7 @@ export async function createDaemon(opts) {
|
|
|
1076
1125
|
catch (err) {
|
|
1077
1126
|
console.error(`[openrig] runtime setup warning: ${err.message}`);
|
|
1078
1127
|
}
|
|
1128
|
+
const endManagedPlugins = beginStartupPhase("managed_plugins");
|
|
1079
1129
|
// plugin-primitive Phase 3a slice 3.2 — vendor openrig-core plugin to
|
|
1080
1130
|
// ~/.openrig/plugins/openrig-core/ on first launch. Auto-fetch from
|
|
1081
1131
|
// github.com/mvschwarz/openrig-plugins is best-effort + 404-tolerant
|
|
@@ -1142,6 +1192,7 @@ export async function createDaemon(opts) {
|
|
|
1142
1192
|
catch (err) {
|
|
1143
1193
|
console.error(`[openrig] runtime setup warning: ${err.message}`);
|
|
1144
1194
|
}
|
|
1195
|
+
recordStartupPhase(slowOpRecorder, endManagedPlugins());
|
|
1145
1196
|
// PL-014: one daemon-scoped ContextPackLibraryService backs the
|
|
1146
1197
|
// delivery-free /api/context-packs list/sync/compose/read/delete/preview/pieces
|
|
1147
1198
|
// routes. Startup context-pack expansion is intentionally unsupported;
|
|
@@ -1227,6 +1278,9 @@ export async function createDaemon(opts) {
|
|
|
1227
1278
|
});
|
|
1228
1279
|
const environmentDriver = new OpenShellDriver();
|
|
1229
1280
|
const environmentPlatform = new EnvironmentPlatform(db, environmentDriver);
|
|
1281
|
+
// #3253: a seat placed in an environment guest can't get a host scope for its agent (the scope would hold only the
|
|
1282
|
+
// local viewer). The session name finds a placement its node has not claimed yet, before the seat's first launch.
|
|
1283
|
+
tmuxAdapter.seatInEnvironmentGuest = (nodeId, session) => environmentPlatform.forNode(nodeId, session) !== null;
|
|
1230
1284
|
const checkGuestActivityEndpoint = (origin) => {
|
|
1231
1285
|
const url = new URL(origin);
|
|
1232
1286
|
if (!opts?.guestActivityPort || Number(url.port || (url.protocol === "https:" ? 443 : 80)) !== opts.guestActivityPort)
|
|
@@ -1265,7 +1319,7 @@ export async function createDaemon(opts) {
|
|
|
1265
1319
|
},
|
|
1266
1320
|
skillReconciler: reconcileSkillLoadout,
|
|
1267
1321
|
});
|
|
1268
|
-
persistedFreshPodLaunch = (rigId, nodeId) => podInstantiator.launchPersistedFresh(rigId, nodeId);
|
|
1322
|
+
persistedFreshPodLaunch = (rigId, nodeId, launchOpts) => podInstantiator.launchPersistedFresh(rigId, nodeId, launchOpts);
|
|
1269
1323
|
persistedFreshPodLaunchAvailable = (rigId, nodeId) => podInstantiator.canLaunchPersistedFresh(rigId, nodeId);
|
|
1270
1324
|
persistedSeatSkillSelection = (rigId, nodeId) => podInstantiator.seatSkillSelection(rigId, nodeId);
|
|
1271
1325
|
const podBundleSourceResolver = new PodBundleSourceResolver();
|
|
@@ -1357,6 +1411,18 @@ export async function createDaemon(opts) {
|
|
|
1357
1411
|
scanner: tmuxScanner, fingerprinter: sessionFingerprinter, enricher: sessionEnricher,
|
|
1358
1412
|
discoveryRepo, sessionRegistry, eventBus,
|
|
1359
1413
|
});
|
|
1414
|
+
// W2a-1 — producer wiring: the live occupant generation resolves synchronously from the shipped
|
|
1415
|
+
// occupant-tenure ledger. generation_uuid CHANGES for a new occupant and persists only within one
|
|
1416
|
+
// tenure (a same-session relaunch is a continuation with no new generation); node_id is the stable-
|
|
1417
|
+
// across-handover key, not this. null = UNKNOWN, honored by the store as abstain (never a stale claim
|
|
1418
|
+
// rendered live). No tmux exec — a better-sqlite3 read on the hot path.
|
|
1419
|
+
const agentActivityStore = new AgentActivityStore({
|
|
1420
|
+
db,
|
|
1421
|
+
eventBus,
|
|
1422
|
+
resolveOccupantGeneration: (nodeId) => sessionRegistry.currentOccupantTenure(nodeId)?.generationUuid ?? null,
|
|
1423
|
+
isRegisteredOccupantGeneration: (nodeId, generation) => sessionRegistry.isOccupantGenerationRegistered(nodeId, generation),
|
|
1424
|
+
isOccupantContinuedByAdoption: (nodeId, generation) => sessionRegistry.isOccupantContinuedByAdoption(nodeId, generation),
|
|
1425
|
+
});
|
|
1360
1426
|
// Context usage store — constructed ahead of the refresher + ClaimService so the
|
|
1361
1427
|
// Claude status-line sidecar reader can be injected into BOTH: FR-3
|
|
1362
1428
|
// adoption-boundary capture (ClaimService) and FR-4 snapshot null-fill (refresher).
|
|
@@ -1364,6 +1430,7 @@ export async function createDaemon(opts) {
|
|
|
1364
1430
|
const { ContextUsageStore } = await import("./domain/context-usage-store.js");
|
|
1365
1431
|
const contextUsageStore = new ContextUsageStore(db, {
|
|
1366
1432
|
stateDir: OPENRIG_HOME,
|
|
1433
|
+
runnerObservations: agentActivityStore,
|
|
1367
1434
|
codexHome: configuredCodexHome,
|
|
1368
1435
|
// GHOST-STAGE (c-id): reject context readings from before the live occupant booted (prior
|
|
1369
1436
|
// generation) so a frozen pre-handover sample can't drive the threshold. null = UNKNOWN (inert).
|
|
@@ -1388,7 +1455,7 @@ export async function createDaemon(opts) {
|
|
|
1388
1455
|
return resolver;
|
|
1389
1456
|
};
|
|
1390
1457
|
const currentModelReader = new CurrentModelReader({
|
|
1391
|
-
sessions: sessionRegistry, identities: new SeatIdentityStore(db), context: contextUsageStore,
|
|
1458
|
+
sessions: sessionRegistry, identities: new SeatIdentityStore(db), context: contextUsageStore, runnerObservations: agentActivityStore,
|
|
1392
1459
|
census: modelCensus,
|
|
1393
1460
|
readAllPaneProcesses: () => tmuxAdapter.readAllPaneProcesses(),
|
|
1394
1461
|
native: {
|
|
@@ -1465,17 +1532,6 @@ export async function createDaemon(opts) {
|
|
|
1465
1532
|
// (ContextUsageStore is constructed above, ahead of ClaimService, for FR-3.)
|
|
1466
1533
|
const whoamiService = new WhoamiService({ db, rigRepo, sessionRegistry, transcriptStore, contextUsageStore });
|
|
1467
1534
|
const nodeCmuxService = new NodeCmuxService(rigRepo, sessionRegistry, cmuxAdapter, tmuxAdapter);
|
|
1468
|
-
// W2a-1 — producer wiring: the live occupant generation resolves synchronously from the shipped
|
|
1469
|
-
// occupant-tenure ledger. generation_uuid CHANGES for a new occupant and persists only within one
|
|
1470
|
-
// tenure (a same-session relaunch is a continuation with no new generation); node_id is the stable-
|
|
1471
|
-
// across-handover key, not this. null = UNKNOWN, honored by the store as abstain (never a stale claim
|
|
1472
|
-
// rendered live). No tmux exec — a better-sqlite3 read on the hot path.
|
|
1473
|
-
const agentActivityStore = new AgentActivityStore({
|
|
1474
|
-
db,
|
|
1475
|
-
eventBus,
|
|
1476
|
-
resolveOccupantGeneration: (nodeId) => sessionRegistry.currentOccupantTenure(nodeId)?.generationUuid ?? null,
|
|
1477
|
-
isRegisteredOccupantGeneration: (nodeId, generation) => sessionRegistry.isOccupantGenerationRegistered(nodeId, generation),
|
|
1478
|
-
});
|
|
1479
1535
|
// #763 — Codex usage-limit banner detector. The reactive tap only accepts a
|
|
1480
1536
|
// typed at_limit hook row and no hook producer emits one for Codex, so the
|
|
1481
1537
|
// structural sweep reports what the seat itself shows. Attached late (rather
|
|
@@ -1510,7 +1566,7 @@ export async function createDaemon(opts) {
|
|
|
1510
1566
|
.catch(error => console.warn(`Restored-seat reconcile: ${error instanceof Error ? error.name : typeof error}`));
|
|
1511
1567
|
};
|
|
1512
1568
|
eventBus.subscribe(event => {
|
|
1513
|
-
if (event.type !== "restore.completed")
|
|
1569
|
+
if (event.type !== "restore.completed" && event.type !== "restore.subset_completed")
|
|
1514
1570
|
return;
|
|
1515
1571
|
void seatAttentionReconciler.onRestoreCompleted(event.rigId)
|
|
1516
1572
|
.catch(error => console.warn(`Restored-seat reconcile: ${error instanceof Error ? error.name : typeof error}`));
|
|
@@ -1610,8 +1666,10 @@ export async function createDaemon(opts) {
|
|
|
1610
1666
|
podBundleSourceResolver,
|
|
1611
1667
|
runtimeAdapters: runtimeAdaptersMap,
|
|
1612
1668
|
transcriptStore,
|
|
1669
|
+
runnerChannel,
|
|
1613
1670
|
sessionTransport: (() => {
|
|
1614
1671
|
const t = new SessionTransport({
|
|
1672
|
+
runnerChannel,
|
|
1615
1673
|
contextUsageStore,
|
|
1616
1674
|
db,
|
|
1617
1675
|
rigRepo,
|
|
@@ -1619,6 +1677,7 @@ export async function createDaemon(opts) {
|
|
|
1619
1677
|
tmuxAdapter,
|
|
1620
1678
|
agentActivityStore,
|
|
1621
1679
|
eventBus,
|
|
1680
|
+
hookBridge,
|
|
1622
1681
|
slowOpRecorder,
|
|
1623
1682
|
activityEndpointFile: () => readActivityEndpointFile(OPENRIG_HOME),
|
|
1624
1683
|
captureObserver: shadow.capture?.observer,
|
|
@@ -1656,6 +1715,9 @@ export async function createDaemon(opts) {
|
|
|
1656
1715
|
return true;
|
|
1657
1716
|
}
|
|
1658
1717
|
});
|
|
1718
|
+
// Slice 13: messages queued for a hook bridge that has no live arm are typed after the bound; claimed batches whose
|
|
1719
|
+
// waiter is gone without an ack become indeterminate.
|
|
1720
|
+
setInterval(() => { void t.sweepHookBridge().catch(() => { }); }, 5_000).unref();
|
|
1659
1721
|
return t;
|
|
1660
1722
|
})(),
|
|
1661
1723
|
chatRepo: new ChatRepository(db),
|
|
@@ -1723,6 +1785,7 @@ export async function createDaemon(opts) {
|
|
|
1723
1785
|
agentActivityStore,
|
|
1724
1786
|
seatAttentionReconciler,
|
|
1725
1787
|
activityHookToken: resolvedActivityHookToken,
|
|
1788
|
+
hookBridge,
|
|
1726
1789
|
contextUsageStore,
|
|
1727
1790
|
currentModelReader,
|
|
1728
1791
|
healthProjection,
|
|
@@ -2211,9 +2274,9 @@ export async function createDaemon(opts) {
|
|
|
2211
2274
|
viewsStore: new TerminalViewsStore(),
|
|
2212
2275
|
listRigSeatsBatch: (names) => {
|
|
2213
2276
|
const rigs = rigRepo.listRigs();
|
|
2214
|
-
//
|
|
2277
|
+
// Prefer stable IDs. Names remain a compatibility lookup for individual views.
|
|
2215
2278
|
const selected = new Map(names.flatMap(name => {
|
|
2216
|
-
const rig = rigs.find(rig => rig.name === name);
|
|
2279
|
+
const rig = rigs.find(rig => rig.id === name) ?? rigs.find(rig => rig.name === name);
|
|
2217
2280
|
return rig ? [[name, rig]] : [];
|
|
2218
2281
|
}));
|
|
2219
2282
|
const inventory = getNodeInventoryForRigs(db, new Set([...selected.values()].map(rig => rig.id)));
|
|
@@ -2221,14 +2284,14 @@ export async function createDaemon(opts) {
|
|
|
2221
2284
|
},
|
|
2222
2285
|
listRigSeats: (rigArg) => {
|
|
2223
2286
|
const rigs = rigRepo.listRigs();
|
|
2224
|
-
const rig = rigs.find((r) => r.
|
|
2287
|
+
const rig = rigs.find((r) => r.id === rigArg) ?? rigs.find((r) => r.name === rigArg);
|
|
2225
2288
|
if (!rig)
|
|
2226
2289
|
return null;
|
|
2227
2290
|
return getNodeInventory(db, rig.id).map(toLiveSeatRow);
|
|
2228
2291
|
},
|
|
2229
2292
|
listPodSeats: (rigArg, pod) => {
|
|
2230
2293
|
const rigs = rigRepo.listRigs();
|
|
2231
|
-
const rig = rigs.find((r) => r.
|
|
2294
|
+
const rig = rigs.find((r) => r.id === rigArg) ?? rigs.find((r) => r.name === rigArg);
|
|
2232
2295
|
if (!rig)
|
|
2233
2296
|
return null;
|
|
2234
2297
|
const rows = getNodeInventory(db, rig.id)
|
|
@@ -2242,6 +2305,7 @@ export async function createDaemon(opts) {
|
|
|
2242
2305
|
?? { code: "scope_unavailable", error: "The configured scope index is unavailable." },
|
|
2243
2306
|
invalidateScopeView: () => scopeTasks?.invalidate(),
|
|
2244
2307
|
listRigNames: () => rigRepo.listRigs().map((r) => r.name),
|
|
2308
|
+
listRigs: () => rigRepo.listRigs().map(({ id, name }) => ({ id, name })),
|
|
2245
2309
|
resolveHost: (id) => {
|
|
2246
2310
|
const res = loadHostRegistry();
|
|
2247
2311
|
if (!res.ok)
|
|
@@ -2252,6 +2316,7 @@ export async function createDaemon(opts) {
|
|
|
2252
2316
|
hasSession: (session) => tmuxAdapter.hasSession(session),
|
|
2253
2317
|
// #707: local tiles run the tmux the daemon resolves, not whatever the provider's PATH finds.
|
|
2254
2318
|
resolveLocalTmux: async () => (await probeRegistry.probeCli("tmux")).detectedPath,
|
|
2319
|
+
rigViewersDir: nodePath.join(OPENRIG_HOME, "private", "terminal-rig-viewers"),
|
|
2255
2320
|
});
|
|
2256
2321
|
}
|
|
2257
2322
|
// UI Enhancement Pack v0:
|
|
@@ -2353,6 +2418,14 @@ export async function createDaemon(opts) {
|
|
|
2353
2418
|
isTerminalSeat: (sessionName) => isBoundTerminalSeat(db, sessionName),
|
|
2354
2419
|
hasPendingPostCompactStage: (sessionName) => deps.compactionEnforcer?.hasPendingPostCompactStage(sessionName) ?? false,
|
|
2355
2420
|
createContinuityAction: (action) => createContinuityCutoverBaton(action, queueRepoInstance).then(() => { }),
|
|
2421
|
+
// #3076: at a queue-only seat a reminder is a note on its parked row or on the job's unclaimed cold row, or one
|
|
2422
|
+
// cold row in the seat's queue with no nudge; never typed.
|
|
2423
|
+
isQueueOnlySeat: isQueueOnlyGuardSeat,
|
|
2424
|
+
createQueueRow: (row) => queueRepoInstance.create({ ...row, sourceSession: "watchdog@system", nudge: false, wakeTrigger: "openrig" })
|
|
2425
|
+
.then(({ qitemId, state }) => ({ qitemId, state })),
|
|
2426
|
+
resolveParkedRows: ({ jobId, targetSession }) => queueRepoInstance.parkedRowsOwnedBy(jobId, targetSession),
|
|
2427
|
+
noteParkedRows: ({ owner, notes }) => queueRepoInstance.noteParkedRows(owner, notes),
|
|
2428
|
+
noteQueuedRow: ({ jobId, destinationSession, note }) => queueRepoInstance.noteOpenWatchdogRow(jobId, destinationSession, note),
|
|
2356
2429
|
}),
|
|
2357
2430
|
// (i-c) fire-time target-generation gate: resolve the target's LIVE occupant-generation (P12
|
|
2358
2431
|
// occupant_tenures) so a generation-bound wake is refused once the target has handed over.
|
|
@@ -2368,8 +2441,8 @@ export async function createDaemon(opts) {
|
|
|
2368
2441
|
resolveContextUsage: (s, occupantGeneration) => watchdogJobsRepoInstance.findContextUsageForSession(s, occupantGeneration),
|
|
2369
2442
|
resolvePreDeliveryTerminalReason: ({ jobId }) => queueRepoInstance.resolveWatchdogPreDeliveryTerminalReason(jobId),
|
|
2370
2443
|
resolveQueueWait: (input) => queueRepoInstance.evaluateWaitReminder(input),
|
|
2371
|
-
onWakeAttempt: ({ jobId, deliveryStatus, retryAt }) => {
|
|
2372
|
-
queueRepoInstance.recordWatchdogWakeAttempt(jobId, deliveryStatus, retryAt);
|
|
2444
|
+
onWakeAttempt: ({ jobId, deliveryStatus, retryAt, queuedQitemId, targetSession }) => {
|
|
2445
|
+
queueRepoInstance.recordWatchdogWakeAttempt(jobId, deliveryStatus, retryAt, { queuedQitemId, targetSession });
|
|
2373
2446
|
},
|
|
2374
2447
|
// Due parked-row reminders for one seat in one scheduler pass go as one message.
|
|
2375
2448
|
resolveDigestEntry: ({ jobId, message }) => queueRepoInstance.parkReminderDigestEntry(jobId, message),
|
|
@@ -2390,7 +2463,7 @@ export async function createDaemon(opts) {
|
|
|
2390
2463
|
ensureStuckExceptionItem: workflowExceptionEnsurer,
|
|
2391
2464
|
reconcileStuckExceptions: (id) => workflowRuntime?.reconcileStuckExceptions(id) ?? 0,
|
|
2392
2465
|
}),
|
|
2393
|
-
makeIdleGateQitemPolicy({ db, seatActivity: seatActivityService }),
|
|
2466
|
+
makeIdleGateQitemPolicy({ db, seatActivity: seatActivityService, isQueueOnlySeat: isQueueOnlyGuardSeat }),
|
|
2394
2467
|
// OPR.0.5.6.24 F-14: the parked-owner consumer — the WHOLE shipped
|
|
2395
2468
|
// parked diagnosis (diagnoseRigParked over the arbitrated oracle +
|
|
2396
2469
|
// destination-scoped obligations + wake status; the same derivation
|
|
@@ -2442,6 +2515,7 @@ export async function createDaemon(opts) {
|
|
|
2442
2515
|
listOpenIds: (destinationSession) => queueRepoInstance.listOpenObligations(destinationSession, 500).map((r) => r.qitemId),
|
|
2443
2516
|
},
|
|
2444
2517
|
isTerminalSeat: (sessionName) => isBoundTerminalSeat(db, sessionName),
|
|
2518
|
+
isQueueOnlySeat: isQueueOnlyGuardSeat,
|
|
2445
2519
|
retentionState: (sessionName) => {
|
|
2446
2520
|
const target = resolveGuardTarget(db, sessionName);
|
|
2447
2521
|
if (!target)
|
|
@@ -2540,9 +2614,9 @@ export async function createDaemon(opts) {
|
|
|
2540
2614
|
// rigRepo.onRigCreated (wired below) runs the same ensure in the creation
|
|
2541
2615
|
// act itself (the birth-property ruling) — no restart wait, no watcher.
|
|
2542
2616
|
{
|
|
2543
|
-
const
|
|
2617
|
+
const parkedOwnerJob = (rigName) => {
|
|
2544
2618
|
const anchor = makeRigAnchor(rigName);
|
|
2545
|
-
|
|
2619
|
+
return {
|
|
2546
2620
|
policy: PARKED_OWNER_POLICY_NAME,
|
|
2547
2621
|
targetSession: anchor,
|
|
2548
2622
|
registeredBySession: "daemon@kernel",
|
|
@@ -2550,22 +2624,26 @@ export async function createDaemon(opts) {
|
|
|
2550
2624
|
activeWakeIntervalSeconds: null,
|
|
2551
2625
|
scanIntervalSeconds: null,
|
|
2552
2626
|
specYaml: `policy: ${PARKED_OWNER_POLICY_NAME}\ntarget:\n session: ${anchor}\ncontext:\n rig: ${rigName}\n`,
|
|
2553
|
-
}
|
|
2627
|
+
};
|
|
2554
2628
|
};
|
|
2555
2629
|
const rigRows = db.prepare("SELECT name FROM rigs ORDER BY name").all();
|
|
2556
|
-
|
|
2557
|
-
|
|
2630
|
+
// #3437: one rig's bad watchdog rows warn and never stop the daemon from starting.
|
|
2631
|
+
for (const r of rigRows) {
|
|
2632
|
+
watchdogJobsRepoInstance.ensureAutoRegistrationAtStartup(parkedOwnerJob(r.name), (message) => console.warn(message));
|
|
2633
|
+
}
|
|
2558
2634
|
// R2 repair — born-armed (advisor-ruled): a rig created after startup gets
|
|
2559
2635
|
// its supervisor job in the same act that creates it, never at the next
|
|
2560
2636
|
// daemon restart.
|
|
2561
|
-
rigRepo.onRigCreated = (rig) =>
|
|
2637
|
+
rigRepo.onRigCreated = (rig) => {
|
|
2638
|
+
watchdogJobsRepoInstance.ensureAutoRegistrationResolvingDuplicates(parkedOwnerJob(rig.name), (message) => console.warn(message));
|
|
2639
|
+
};
|
|
2562
2640
|
}
|
|
2563
2641
|
// OPR.0.5.6.1 — the two digest windows as idempotent watchdog jobs (AM-F1:
|
|
2564
2642
|
// the flush rides the same named substrate; restart-durable by the same
|
|
2565
2643
|
// SQLite schedule; a daemon down across a window flushes on the next tick).
|
|
2566
2644
|
{
|
|
2567
2645
|
const ensureDigestJob = (window, intervalSeconds) => {
|
|
2568
|
-
watchdogJobsRepoInstance.
|
|
2646
|
+
watchdogJobsRepoInstance.ensureAutoRegistrationAtStartup({
|
|
2569
2647
|
policy: "delivery-digest-flush",
|
|
2570
2648
|
targetSession: `delivery-digest-${window}@kernel`,
|
|
2571
2649
|
registeredBySession: "daemon@kernel",
|
|
@@ -2573,7 +2651,7 @@ export async function createDaemon(opts) {
|
|
|
2573
2651
|
activeWakeIntervalSeconds: null,
|
|
2574
2652
|
scanIntervalSeconds: null,
|
|
2575
2653
|
specYaml: `policy: delivery-digest-flush\ntarget:\n session: delivery-digest-${window}@kernel\ncontext:\n window: ${window}\n`,
|
|
2576
|
-
});
|
|
2654
|
+
}, (message) => console.warn(message));
|
|
2577
2655
|
};
|
|
2578
2656
|
ensureDigestJob("4h", 4 * 60 * 60);
|
|
2579
2657
|
ensureDigestJob("daily", 24 * 60 * 60);
|
|
@@ -2696,8 +2774,11 @@ export async function createDaemon(opts) {
|
|
|
2696
2774
|
{
|
|
2697
2775
|
onPreparationFailure: (failure) => reportPreparationFailure(db, queueRepoInstance, failure),
|
|
2698
2776
|
onRestoreDeliveryFailure: (failure) => reportRestoreDeliveryFailure(db, queueRepoInstance, failure),
|
|
2777
|
+
onRestoreDeliveryComplete: (receipt) => reportRestoreDeliveryFailure(db, queueRepoInstance, receipt, { completed: true }),
|
|
2699
2778
|
terminalPolicies: new TerminalPolicyStore(db),
|
|
2700
2779
|
resolveOccupantGeneration: (sessionName) => sessionRegistry.currentOccupantGenerationForSession(sessionName),
|
|
2780
|
+
// #3389: the post-compaction steps wait for the seat's own SessionStart(compact) report, as the daemon recorded it.
|
|
2781
|
+
compactSignalSince: (sessionName, sinceMs, generation) => agentActivityStore.findCompactSessionStart({ sessionName, sinceMs, generation }),
|
|
2701
2782
|
onPostRestoreComplete: (receipt) => {
|
|
2702
2783
|
recordManagedWidthReceipt(receipt, watchdogJobsRepoInstance, watchdogHistoryLogInstance);
|
|
2703
2784
|
},
|
|
@@ -2722,6 +2803,17 @@ export async function createDaemon(opts) {
|
|
|
2722
2803
|
// compaction trigger. Sharing one instance with ContextMonitor is what makes
|
|
2723
2804
|
// the manual back-half drain through the auto poll loop (no second path).
|
|
2724
2805
|
deps.compactionEnforcer = compactionEnforcer;
|
|
2806
|
+
const { PiCompactionService } = await import("./domain/pi-compaction-service.js");
|
|
2807
|
+
const { PiCompactionRequestStore } = await import("./domain/pi-compaction-request-store.js");
|
|
2808
|
+
if (sessionTransport)
|
|
2809
|
+
deps.piCompactionService = new PiCompactionService({
|
|
2810
|
+
requestStore: new PiCompactionRequestStore(nodePath.join(OPENRIG_HOME, "state", "pi-compaction-requests")),
|
|
2811
|
+
readSidecar: session => piAdapter.readRunnerSidecar(session).state,
|
|
2812
|
+
// The agent's ordinary guarded send path (session transport + delivery guard),
|
|
2813
|
+
// not a raw tmux write: drafts, holds, prompts and the occupant are respected.
|
|
2814
|
+
send: (session, text, opts) => sessionTransport.send(session, text, opts),
|
|
2815
|
+
terminalPolicies: new TerminalPolicyStore(db),
|
|
2816
|
+
});
|
|
2725
2817
|
// GHOST-STAGE (e/Class-B) — construct the canonical OccupantInvalidator now that both Class-A deps
|
|
2726
2818
|
// exist (the enforcer's in-mem maps 1a-1f + the context sidecar 2a). Injected into SeatHandoverService
|
|
2727
2819
|
// via the app context so commit()'s re-key call FIRES (it was a no-op until wired). An absent enforcer
|