@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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { inputReadDiagnostic } from "./input-read-diagnostic.js";
|
|
2
|
+
import { RunnerChannelError } from "./runner-channel.js";
|
|
2
3
|
import { expectedConversation, sameConversation, resolveExpectedConversation } from "./expected-conversation.js";
|
|
3
4
|
import { physicalSessionName } from "./session-registry.js";
|
|
4
5
|
import { currentClaudeMcpMenu } from "./claude-mcp-menu.js";
|
|
@@ -12,6 +13,7 @@ import { CLAUDE_NOT_STATUS_LINE_ROW, COLLAPSED_PASTE, composerRegion, isComposer
|
|
|
12
13
|
import { composerContainsOwnedText, composerNumberedChoicePattern, composerPromptClassForRuntime, composerPromptIsAmbiguous, composerSelectionPrefixPattern, COMPOSER_DRAFT_PATTERN, COMPOSER_EMPTY_CODEX_PLACEHOLDER_PATTERN as CODEX_EMPTY_COMPOSER_PATTERN, COMPOSER_EMPTY_PATTERN, COMPOSER_PROMPT_CLASS, COMPOSER_SELECTION_PATTERN, COMPOSER_SELECTION_SCAN_PATTERN, findComposerInputLineIndex, stripComposerPromptGlyph, readComposerPromptLine, COMPOSER_COLLAPSED_PASTE_PATTERN, } from "./composer-prompts.js";
|
|
13
14
|
export { inspectStartupStagedText } from "./startup-submission-evidence.js";
|
|
14
15
|
import { OutboxHandler, OutboxHandlerError } from "./outbox-handler.js";
|
|
16
|
+
import { declaredCapabilities, readSendOutcome } from "./connection-contract.js";
|
|
15
17
|
import { DraftAwareDelivery } from "./draft-aware-delivery.js";
|
|
16
18
|
import { communityHarnessOf } from "./built-in-runtimes.js";
|
|
17
19
|
import { claudeResumeRotation, sessionCommunityHarnessSelect } from "./session-registry.js";
|
|
@@ -133,6 +135,21 @@ function enterWithheld(reason) {
|
|
|
133
135
|
* Enter, and otherwise text with the submission unknown, since Enter may have been attempted. A send that wrote
|
|
134
136
|
* nothing says so. Anything else the result doesn't establish is unknown, never a guess. */
|
|
135
137
|
export function writtenFact(result) {
|
|
138
|
+
const native = result.runnerReceipt;
|
|
139
|
+
if (native) {
|
|
140
|
+
if (native.erasedAt)
|
|
141
|
+
return "unknown";
|
|
142
|
+
if (native.reconciliation || native.result?.submissionUnknown)
|
|
143
|
+
return "uncertain";
|
|
144
|
+
if (native.stage === "submitted" || native.stage === "completed")
|
|
145
|
+
return "submitted";
|
|
146
|
+
if (native.stage === "pending" || native.stage === "rejected")
|
|
147
|
+
return "none";
|
|
148
|
+
return "unknown"; // An offer or custody ACK establishes no native submission.
|
|
149
|
+
}
|
|
150
|
+
// Queued for the seat's hook bridge: nothing was typed; the result's outcome says it was deposited for the hook.
|
|
151
|
+
if (result.outcome === "bridged")
|
|
152
|
+
return "none";
|
|
136
153
|
if (result.ok && result.outcome !== "retained") {
|
|
137
154
|
if (result.submitOnly)
|
|
138
155
|
return "submit_only";
|
|
@@ -1889,14 +1906,19 @@ function codexSeatIdle(pane) {
|
|
|
1889
1906
|
// (`Update available! 0.160.0 -> 0.162.1`). These are only what the frames show; nothing here discovers a version. A frame where one of them names another version is not read as these
|
|
1890
1907
|
// layouts. Most frames name no version (the banner and header scroll away), and then a matching layout is evidence
|
|
1891
1908
|
// about the layout only, not proof of the client version: another version that draws the same rows reads the same.
|
|
1892
|
-
|
|
1909
|
+
// Codex 0.167.1 and 0.167.2 count as 0.167.0: they changed no TUI code from it (openai/codex
|
|
1910
|
+
// rust-v0.167.0...rust-v0.167.2). A later patch, a prerelease or a later minor is another version until it's checked.
|
|
1911
|
+
const RECORDED_CLIENT_VERSIONS = {
|
|
1912
|
+
"claude-code": /^2\.1\.296$/,
|
|
1913
|
+
codex: /^(?:0\.160\.0|0\.167\.[0-2])$/,
|
|
1914
|
+
};
|
|
1893
1915
|
const VISIBLE_CLIENT_VERSION = {
|
|
1894
1916
|
"claude-code": [/Claude Code v(\d[\w.+-]*)/g],
|
|
1895
1917
|
codex: [/OpenAI Codex \(v(\d[\w.+-]*)\)/g, /Update available! (\d[\w.+-]*) -> /g],
|
|
1896
1918
|
};
|
|
1897
|
-
/** Whether a frame visibly names a client version other than the recorded
|
|
1919
|
+
/** Whether a frame visibly names a client version other than the recorded ones (see RECORDED_CLIENT_VERSIONS). */
|
|
1898
1920
|
export function namesAnotherClientVersion(pane, runtime) {
|
|
1899
|
-
return VISIBLE_CLIENT_VERSION[runtime].some((pattern) => [...pane.matchAll(pattern)].some((match) => match[1]
|
|
1921
|
+
return VISIBLE_CLIENT_VERSION[runtime].some((pattern) => [...pane.matchAll(pattern)].some((match) => !RECORDED_CLIENT_VERSIONS[runtime].test(match[1])));
|
|
1900
1922
|
}
|
|
1901
1923
|
/** The seat before the paste (see SeatReading), read from the capture the transport already takes before it.
|
|
1902
1924
|
* `sessionName` is the seat's own session name, which a Claude Code seat launched by OpenRig draws on its box.
|
|
@@ -1915,7 +1937,7 @@ export function readSeatBeforePaste(pane, runtime, sessionName) {
|
|
|
1915
1937
|
* placeholders (Claude's queued label and Try suggestion, collapsed pastes, Codex's empty-box placeholder) are
|
|
1916
1938
|
* checked before the sent text, so none of them can read as `exact`. The sent text is `exact` only with its word
|
|
1917
1939
|
* boundaries kept, and `ambiguous` where the box's row breaks leave them uncertain (boxHoldsText). A frame that
|
|
1918
|
-
* names another client version reads `unrecognized` (
|
|
1940
|
+
* names another client version reads `unrecognized` (RECORDED_CLIENT_VERSIONS).
|
|
1919
1941
|
*
|
|
1920
1942
|
* An empty box also reads `queued` where the frames say the message may wait behind a turn: Codex's
|
|
1921
1943
|
* pending-input rows above the box, rows between Codex's running-turn status row and the box, or
|
|
@@ -1959,6 +1981,23 @@ export function readInputBox(pane, runtime, text, beforeEnter) {
|
|
|
1959
1981
|
// composerRegion's body has every space removed (the startup guard's matcher, unchanged); identity reads the rows.
|
|
1960
1982
|
return boxHoldsText(stripBoxGlyph(pane.split("\n").slice(markerLine - 1, closingRuleLine - 1)), text);
|
|
1961
1983
|
}
|
|
1984
|
+
/** OpenRig's own delivery-evidence observers, added to a send whose caller watches no input effect. They only record
|
|
1985
|
+
* what a typed write did; they ask nothing of the write, so they don't make a send ineligible for the hook bridge. */
|
|
1986
|
+
const evidenceOnlyObservers = new WeakSet();
|
|
1987
|
+
/** Whether the seat's hook bridge may take this send in place of typing it. Only a plain message: the bridge hands text
|
|
1988
|
+
* to the model at a turn boundary, so it can't run what is checked or done at the moment of writing (a write-time
|
|
1989
|
+
* check, an input-effect callback, staged or exact text, an idle or draft rule), it can't hold a send to an original
|
|
1990
|
+
* conversation, and Claude runs a slash command only from typed input. Those, and a caller that can't represent a
|
|
1991
|
+
* queued message, are typed as today. */
|
|
1992
|
+
function bridgeable(text, opts) {
|
|
1993
|
+
if (!opts)
|
|
1994
|
+
return !/^\s*\/[A-Za-z]/.test(text);
|
|
1995
|
+
return !opts.hookBridgeFallback && !opts.noHookBridge && !opts.expectedIdentity && !opts.submitOnly && !opts.dangerouslyInteract
|
|
1996
|
+
&& !opts.beforeWrite && (!opts.onInputEffect || evidenceOnlyObservers.has(opts.onInputEffect)) && !opts.postCompactTurnBoundary && !opts.readinessFromPaneOnly && !opts.preserveInput
|
|
1997
|
+
&& !opts.allowDraftWhileIdle && !opts.allowUnknownWhileIdle && !opts.typeWithoutChecking && opts.exactText === undefined && !opts.typedExactly
|
|
1998
|
+
&& opts.expectedStagedText === undefined && !opts.requireFullStagedText && !opts.onStartupMismatch
|
|
1999
|
+
&& !/^\s*\/[A-Za-z]/.test(text);
|
|
2000
|
+
}
|
|
1962
2001
|
const CALLER_CANCELLED = "caller_cancelled";
|
|
1963
2002
|
/** The readiness reason's tail when only the retained hook says the seat waits on a person: the pane shows no prompt it
|
|
1964
2003
|
* recognizes. */
|
|
@@ -1985,6 +2024,7 @@ function callerCancelled(sessionName) {
|
|
|
1985
2024
|
error: `The request was cancelled before any input started. Nothing was typed into '${sessionName}', and nothing will be.` };
|
|
1986
2025
|
}
|
|
1987
2026
|
export class SessionTransport {
|
|
2027
|
+
runnerChannel;
|
|
1988
2028
|
contextUsageStore;
|
|
1989
2029
|
db;
|
|
1990
2030
|
guardedDelivery;
|
|
@@ -1993,6 +2033,10 @@ export class SessionTransport {
|
|
|
1993
2033
|
tmuxAdapter;
|
|
1994
2034
|
agentActivityStore;
|
|
1995
2035
|
eventBus;
|
|
2036
|
+
hookBridge;
|
|
2037
|
+
queueWakeApplicable;
|
|
2038
|
+
hookBridgeSweep = null;
|
|
2039
|
+
hookBridgeSweepAgain = false;
|
|
1996
2040
|
now;
|
|
1997
2041
|
sleep;
|
|
1998
2042
|
waitForIdlePollMs;
|
|
@@ -2006,6 +2050,7 @@ export class SessionTransport {
|
|
|
2006
2050
|
verifyInputBox;
|
|
2007
2051
|
deliverOverDraft;
|
|
2008
2052
|
constructor(deps) {
|
|
2053
|
+
this.runnerChannel = deps.runnerChannel;
|
|
2009
2054
|
this.contextUsageStore = deps.contextUsageStore;
|
|
2010
2055
|
this.db = deps.db;
|
|
2011
2056
|
this.rigRepo = deps.rigRepo;
|
|
@@ -2013,6 +2058,7 @@ export class SessionTransport {
|
|
|
2013
2058
|
this.tmuxAdapter = deps.tmuxAdapter;
|
|
2014
2059
|
this.agentActivityStore = deps.agentActivityStore;
|
|
2015
2060
|
this.eventBus = deps.eventBus;
|
|
2061
|
+
this.hookBridge = deps.hookBridge;
|
|
2016
2062
|
this.now = deps.now ?? (() => new Date());
|
|
2017
2063
|
this.sleep = deps.sleep ?? delay;
|
|
2018
2064
|
this.waitForIdlePollMs = deps.waitForIdlePollMs ?? 500;
|
|
@@ -2030,6 +2076,10 @@ export class SessionTransport {
|
|
|
2030
2076
|
}
|
|
2031
2077
|
configureGuardedWakes(applicable) {
|
|
2032
2078
|
this.guardedDelivery?.configureWakes(applicable);
|
|
2079
|
+
// The hook bridge checks the same predicate before it queues an automatic wake and before it hands one over.
|
|
2080
|
+
this.queueWakeApplicable = applicable;
|
|
2081
|
+
if (this.hookBridge)
|
|
2082
|
+
this.hookBridge.wakeApplicable = applicable;
|
|
2033
2083
|
}
|
|
2034
2084
|
attachRuntimeAdapters(adapters) {
|
|
2035
2085
|
this.runtimeAdapters = { ...this.runtimeAdapters, ...adapters };
|
|
@@ -2369,13 +2419,18 @@ export class SessionTransport {
|
|
|
2369
2419
|
const seat = this.evidenceSeat(sessionName);
|
|
2370
2420
|
// The text the paste actually wrote (a terminal seat's exact text, a combined wake), not the text asked for.
|
|
2371
2421
|
let wire = null;
|
|
2372
|
-
const
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2422
|
+
const observer = (phase, written) => {
|
|
2423
|
+
if (phase === "pasted" && written)
|
|
2424
|
+
wire = { text: written.text, at: this.now().toISOString() };
|
|
2425
|
+
opts?.onInputEffect?.(phase, written);
|
|
2426
|
+
};
|
|
2427
|
+
// Only the caller's own input-effect callback is a write-time contract; this observer alone isn't (bridgeable).
|
|
2428
|
+
if (!opts?.onInputEffect)
|
|
2429
|
+
evidenceOnlyObservers.add(observer);
|
|
2430
|
+
let bridgeUnavailable = null;
|
|
2431
|
+
const observed = seat ? { ...opts, onInputEffect: observer, onHookBridgeUnavailable: (reason) => { bridgeUnavailable = reason; } } : opts;
|
|
2377
2432
|
const result = await this.sendMarkingUrgent(sessionName, text, observed);
|
|
2378
|
-
this.recordDeliveryEvidence(sessionName, seat, opts, result, wire);
|
|
2433
|
+
this.recordDeliveryEvidence(sessionName, seat, opts, result, wire, bridgeUnavailable);
|
|
2379
2434
|
return result;
|
|
2380
2435
|
}
|
|
2381
2436
|
/** The seat a send is for, when evidence is recorded at all: its kind, pane and current occupant generation. */
|
|
@@ -2395,7 +2450,7 @@ export class SessionTransport {
|
|
|
2395
2450
|
/** One additive record of what this send's result says, beside it. Best effort: a record that
|
|
2396
2451
|
* can't be written never changes the result, holds the send or resends anything. A fact the result doesn't give is
|
|
2397
2452
|
* unknown. Only an outbox row that exists counts as admitted. */
|
|
2398
|
-
recordDeliveryEvidence(sessionName, seat, opts, result, wire) {
|
|
2453
|
+
recordDeliveryEvidence(sessionName, seat, opts, result, wire, bridgeUnavailable) {
|
|
2399
2454
|
if (!this.eventBus || !seat)
|
|
2400
2455
|
return;
|
|
2401
2456
|
try {
|
|
@@ -2416,7 +2471,8 @@ export class SessionTransport {
|
|
|
2416
2471
|
pane: seat.pane, occupantGeneration: seat.occupant, messageId: opts?.deliveryId ?? outboxIds[0] ?? attemptId, attemptId,
|
|
2417
2472
|
admitted: admissionUnknown ? "unknown" : admitted.length > 0 ? { outboxIds: admitted } : "none", written: writtenFact(result),
|
|
2418
2473
|
terminalObserved: { outcome: result.outcome ?? null, verified: result.verified ?? null }, inputBoundary: "unknown", source: "send_result",
|
|
2419
|
-
...wireFingerprint(wire),
|
|
2474
|
+
...wireFingerprint(wire), outcome: readSendOutcome(result, writtenFact(result)),
|
|
2475
|
+
...(bridgeUnavailable ? { hookBridgeUnavailable: bridgeUnavailable } : {}),
|
|
2420
2476
|
});
|
|
2421
2477
|
}
|
|
2422
2478
|
catch (err) {
|
|
@@ -2478,7 +2534,7 @@ export class SessionTransport {
|
|
|
2478
2534
|
await resolveExpectedConversation(expected, this.sessionRegistry, this.tmuxAdapter, this.contextUsageStore);
|
|
2479
2535
|
const result = await this.sendClassifiedInput(sessionName, text, { ...opts, expectedIdentity: expected,
|
|
2480
2536
|
...(opts?.committedOutboxIds ? {} : { deliveryId: ids[0] }) });
|
|
2481
|
-
if (result.outcome !== "retained") {
|
|
2537
|
+
if (result.outcome !== "retained" && result.outcome !== "bridged") {
|
|
2482
2538
|
try {
|
|
2483
2539
|
for (const id of ids) {
|
|
2484
2540
|
if (result.ok) {
|
|
@@ -2528,10 +2584,188 @@ export class SessionTransport {
|
|
|
2528
2584
|
...(receiptUnconfirmed ? { warning: "Conditional input receipt could not be finalized; inspect before retrying." } : {}) };
|
|
2529
2585
|
}
|
|
2530
2586
|
}
|
|
2587
|
+
/** Slice 13: type the messages queued for a hook bridge that has no live arm (or, with `nodeId`, every message queued
|
|
2588
|
+
* for that seat), oldest first, each under its own outbox id through the ordinary send path. The daemon runs this on
|
|
2589
|
+
* an interval; a send that finds the bridge unavailable runs it for its seat. */
|
|
2590
|
+
async sweepHookBridge(opts = {}) {
|
|
2591
|
+
// One sweep at a time: the interval's and a send's share the one running sweep, and a sweep asked for while one runs
|
|
2592
|
+
// runs once after it.
|
|
2593
|
+
if (this.hookBridgeSweep) {
|
|
2594
|
+
this.hookBridgeSweepAgain = true;
|
|
2595
|
+
return this.hookBridgeSweep;
|
|
2596
|
+
}
|
|
2597
|
+
this.hookBridgeSweep = (async () => {
|
|
2598
|
+
const typed = [];
|
|
2599
|
+
do {
|
|
2600
|
+
this.hookBridgeSweepAgain = false;
|
|
2601
|
+
typed.push(...await this.sweepHookBridgeOnce(opts));
|
|
2602
|
+
} while (this.hookBridgeSweepAgain);
|
|
2603
|
+
return typed;
|
|
2604
|
+
})().finally(() => { this.hookBridgeSweep = null; });
|
|
2605
|
+
return this.hookBridgeSweep;
|
|
2606
|
+
}
|
|
2607
|
+
async sweepHookBridgeOnce(opts) {
|
|
2608
|
+
const bridge = this.hookBridge;
|
|
2609
|
+
if (!bridge)
|
|
2610
|
+
return [];
|
|
2611
|
+
bridge.reconcileUnacked();
|
|
2612
|
+
const due = bridge.dueForFallback();
|
|
2613
|
+
if (opts.nodeId && !due.some((d) => d.nodeId === opts.nodeId) && !bridge.live(opts.nodeId)) {
|
|
2614
|
+
// By the same rule as the poll and the fallback: what a delivery drain holds stays queued (superseded wakes end).
|
|
2615
|
+
const ids = bridge.queuedForTyping(opts.nodeId);
|
|
2616
|
+
if (ids.length)
|
|
2617
|
+
due.push({ nodeId: opts.nodeId, outboxIds: ids, reason: bridge.unavailable(opts.nodeId) });
|
|
2618
|
+
}
|
|
2619
|
+
const outbox = new OutboxHandler(this.db);
|
|
2620
|
+
const typed = [];
|
|
2621
|
+
for (const { nodeId, outboxIds, reason } of due) {
|
|
2622
|
+
const saved = new Map(bridge.queued(nodeId).map((row) => [row.outboxId, row]));
|
|
2623
|
+
// Oldest first. Each is taken back from the bridge only under the seat's lease, just before it's typed: one the
|
|
2624
|
+
// bridge took first isn't typed, and the seat's loop stops there, so nothing is typed twice and nothing behind it
|
|
2625
|
+
// overtakes it. Each keeps its own delivery contract: its admission, and the occupant it was queued for.
|
|
2626
|
+
for (const outboxId of outboxIds) {
|
|
2627
|
+
const entry = outbox.getById(outboxId);
|
|
2628
|
+
const row = saved.get(outboxId);
|
|
2629
|
+
if (!entry || !row)
|
|
2630
|
+
break;
|
|
2631
|
+
// Its body already carries any urgent line; its admission says how the guard admits it.
|
|
2632
|
+
const result = await this.send(entry.destinationSession, entry.body, { committedOutboxIds: [outboxId],
|
|
2633
|
+
hookBridgeFallback: { nodeId, reason, admission: row.admission }, actorSession: entry.senderSession,
|
|
2634
|
+
...(entry.auditPointer ? { auditPointer: entry.auditPointer } : {}) });
|
|
2635
|
+
if (result.reason === "hook_bridge_claimed")
|
|
2636
|
+
break;
|
|
2637
|
+
// A drain that began since the selection holds it: untouched, and what's behind it may still go.
|
|
2638
|
+
if (result.reason === "delivery_drain_held")
|
|
2639
|
+
continue;
|
|
2640
|
+
// Its wake no longer applies: ended not delivered at the handback.
|
|
2641
|
+
if (result.reason === "draft_wake_superseded" && result.sent === false) {
|
|
2642
|
+
typed.push({ outboxId, result });
|
|
2643
|
+
continue;
|
|
2644
|
+
}
|
|
2645
|
+
if (result.reason === "guard_target_changed" && result.sent === false) {
|
|
2646
|
+
bridge.abandon(nodeId, entry.destinationSession, outboxId, "it was queued for an earlier occupant of the seat, which is gone");
|
|
2647
|
+
typed.push({ outboxId, result });
|
|
2648
|
+
continue;
|
|
2649
|
+
}
|
|
2650
|
+
if (result.outcome !== "retained") {
|
|
2651
|
+
outbox.finalizeDelivery(outboxId, result.ok && result.outcome !== "rendered-unconfirmed" ? "delivered"
|
|
2652
|
+
: result.ok || result.inputPhase === "attempted" || result.inputPhase === "written" ? "indeterminate" : "failed");
|
|
2653
|
+
}
|
|
2654
|
+
// Its sender's record (a queue wake's nudge result) reads how it actually ended.
|
|
2655
|
+
bridge.typedEnd(outboxId, result);
|
|
2656
|
+
typed.push({ outboxId, result });
|
|
2657
|
+
}
|
|
2658
|
+
}
|
|
2659
|
+
return typed;
|
|
2660
|
+
}
|
|
2661
|
+
/** A hook-bridge fallback takes its row back from the bridge under the seat's lease, just before typing it. Null when
|
|
2662
|
+
* it may type; otherwise why it doesn't: the row was queued for an occupant who's gone (it isn't typed into the new
|
|
2663
|
+
* one), or the bridge's waiter took it first. */
|
|
2664
|
+
takeFromHookBridge(sessionName, ids, opts) {
|
|
2665
|
+
const fallback = opts?.hookBridgeFallback;
|
|
2666
|
+
if (!fallback)
|
|
2667
|
+
return null;
|
|
2668
|
+
const outboxId = ids[0];
|
|
2669
|
+
const entry = new OutboxHandler(this.db).getById(outboxId);
|
|
2670
|
+
const target = this.tmuxAdapter.deliveryGuard.target(sessionName);
|
|
2671
|
+
if (entry?.guardBinding && JSON.stringify(entry.guardBinding) !== JSON.stringify(target)) {
|
|
2672
|
+
return { ok: false, sessionName, sent: false, inputPhase: "not_reached", reason: "guard_target_changed", error: "This message was queued for another occupant of the seat; no input written." };
|
|
2673
|
+
}
|
|
2674
|
+
const refused = this.hookBridge?.handbackRefusal(fallback.nodeId, outboxId);
|
|
2675
|
+
if (refused === "drained") {
|
|
2676
|
+
return { ok: false, sessionName, sent: false, inputPhase: "not_reached", reason: "delivery_drain_held", error: "The seat's rig is in a delivery drain; this message stays queued until it ends." };
|
|
2677
|
+
}
|
|
2678
|
+
if (refused === "superseded") {
|
|
2679
|
+
return { ok: false, sessionName, sent: false, inputPhase: "not_reached", reason: "draft_wake_superseded", error: "The queue wake is no longer applicable; it ended not delivered, and nothing was typed." };
|
|
2680
|
+
}
|
|
2681
|
+
if (!this.hookBridge?.releaseForTyping(fallback.nodeId, sessionName, outboxId, fallback.reason)) {
|
|
2682
|
+
return { ok: false, sessionName, sent: false, inputPhase: "not_reached", reason: "hook_bridge_claimed", error: "The seat's hook bridge took this message first; nothing typed." };
|
|
2683
|
+
}
|
|
2684
|
+
return null;
|
|
2685
|
+
}
|
|
2686
|
+
sendNativeWake(sessionName, question, requestId, actorSession) {
|
|
2687
|
+
return this.send(sessionName, question, { nativeWake: true, deliveryId: requestId, actorSession });
|
|
2688
|
+
}
|
|
2689
|
+
inputRoute(nodeId) {
|
|
2690
|
+
if (!this.db.prepare("PRAGMA table_info(nodes)").all().some(column => column.name === "input_route"))
|
|
2691
|
+
return "typed";
|
|
2692
|
+
return this.db.prepare("SELECT input_route FROM nodes WHERE id=?").get(nodeId)?.input_route ?? "typed";
|
|
2693
|
+
}
|
|
2694
|
+
nativeResult(sessionName, receipt) {
|
|
2695
|
+
const rejected = receipt.stage === "rejected";
|
|
2696
|
+
return { ok: !rejected, sessionName, verified: false, outboxIds: receipt.memberIds ?? [receipt.requestId], runnerReceipt: receipt,
|
|
2697
|
+
...(!receipt.reconciliation && !receipt.result?.submissionUnknown && (receipt.stage === "submitted" || receipt.stage === "completed") ? { sent: true } : rejected ? { sent: false } : {}),
|
|
2698
|
+
reason: receipt.reconciliation ?? `native_${receipt.stage}` };
|
|
2699
|
+
}
|
|
2700
|
+
admitNative(sessionName, text, opts, ids) {
|
|
2701
|
+
const target = this.tmuxAdapter.deliveryGuard.target(sessionName);
|
|
2702
|
+
if (!this.runnerChannel)
|
|
2703
|
+
throw new RunnerChannelError("runner_unavailable", "Native channel unavailable; no input offered.");
|
|
2704
|
+
const primary = new OutboxHandler(this.db).getById(ids[0]);
|
|
2705
|
+
if (primary?.guardBinding && JSON.stringify(primary.guardBinding) !== JSON.stringify(target))
|
|
2706
|
+
throw new DeliveryGuardError("guard_target_changed", "The retained native input belongs to another occupant; no input offered.");
|
|
2707
|
+
opts?.beforeWrite?.();
|
|
2708
|
+
const receipt = this.runnerChannel.admit(target.nodeId, { outboxId: ids[0], senderSession: opts?.committedOutboxIds ? primary?.senderSession ?? "unknown" : opts?.actorSession ?? "unknown",
|
|
2709
|
+
destinationSession: sessionName, body: opts?.committedOutboxIds ? primary?.body ?? text : text, kind: opts?.nativeWake ? "wake" : "input", inputRoute: "native", payload: opts?.nativeWake ? { question: text } : { text },
|
|
2710
|
+
...(ids.length > 1 ? { memberIds: ids } : {}),
|
|
2711
|
+
auditPointer: opts?.auditPointer, identityProvenance: opts?.identityProvenance, identityPrincipal: opts?.identityPrincipal });
|
|
2712
|
+
return this.nativeResult(sessionName, receipt);
|
|
2713
|
+
}
|
|
2531
2714
|
async sendClassifiedInput(sessionName, text, opts) {
|
|
2715
|
+
// Explicit key/editor operations are not native model prompts. Pi's reserved compaction
|
|
2716
|
+
// control keeps its existing guarded editor path; ordinary OpenRig notices still select native.
|
|
2717
|
+
const typedControl = opts?.dangerouslyInteract === true || opts?.submitOnly === true || opts?.typedExactly === true
|
|
2718
|
+
|| opts?.openrigNotice === true && /^\/openrig-compact ([\w-]+)$/.test(text) && this.getSessionMeta(sessionName).runtime === "pi";
|
|
2719
|
+
// A bridge handback continues its original typed attempt; a changed preference selects new messages only.
|
|
2720
|
+
const inputRoute = (nodeId) => typedControl || opts?.hookBridgeFallback ? "typed" : this.inputRoute(nodeId);
|
|
2721
|
+
const history = new OutboxHandler(this.db);
|
|
2722
|
+
const inputId = opts?.committedOutboxIds?.[0] ?? opts?.deliveryId;
|
|
2723
|
+
const primaryId = inputId ? history.runnerPrimary(inputId) : null;
|
|
2724
|
+
const previous = primaryId ? history.runnerReceipt(primaryId) : null;
|
|
2725
|
+
if (primaryId && !previous)
|
|
2726
|
+
return { ok: false, sessionName, reason: "native_receipt_unavailable", error: "Native operation evidence unavailable; no input offered." };
|
|
2727
|
+
if (previous?.erasedAt)
|
|
2728
|
+
return { ok: false, sessionName, reason: "runner_receipt_erased", error: "Native request content was erased; no input offered." };
|
|
2729
|
+
if (previous && typedControl)
|
|
2730
|
+
return { ok: false, sessionName, sent: false, reason: "delivery_identity_conflict",
|
|
2731
|
+
error: "This request ID already selects native input; use a new request ID for terminal control." };
|
|
2732
|
+
if (previous) {
|
|
2733
|
+
const entry = history.getById(previous.requestId);
|
|
2734
|
+
if (entry.destinationSession !== sessionName || !opts?.committedOutboxIds && entry.senderSession !== (opts?.actorSession ?? "unknown")
|
|
2735
|
+
|| (previous.payload.text ?? previous.payload.question) !== text || (opts?.nativeWake ? "wake" : "input") !== previous.kind || opts?.committedOutboxIds && JSON.stringify(previous.memberIds ?? [previous.requestId]) !== JSON.stringify(opts.committedOutboxIds))
|
|
2736
|
+
return { ok: false, sessionName, sent: false, reason: "delivery_identity_conflict", error: "This request ID names different input or target." };
|
|
2737
|
+
return this.nativeResult(sessionName, previous);
|
|
2738
|
+
}
|
|
2739
|
+
// Preferences select new requests. Retained IDs keep their recorded route; a legacy unmarked held row is typed.
|
|
2740
|
+
const checkRetainedRoutes = (selected, selectedIds) => {
|
|
2741
|
+
for (const id of selectedIds) {
|
|
2742
|
+
const kind = history.inputKind(id);
|
|
2743
|
+
if (kind && kind !== (opts?.nativeWake ? "wake" : "input"))
|
|
2744
|
+
throw new DeliveryGuardError("delivery_identity_conflict", "This delivery ID selects a different native kind; use a new request ID.");
|
|
2745
|
+
const recorded = history.inputRoute(id);
|
|
2746
|
+
const entry = recorded === null && selected === "native" ? history.getById(id) : null;
|
|
2747
|
+
const saved = recorded ?? (entry && ["retained", "retired"].includes(entry.deliveryState) ? "typed" : null);
|
|
2748
|
+
if (saved && saved !== selected)
|
|
2749
|
+
throw new DeliveryGuardError("delivery_identity_conflict", `This delivery ID selects ${saved} input; use a new request ID to select ${selected} input.`);
|
|
2750
|
+
}
|
|
2751
|
+
};
|
|
2532
2752
|
const guard = this.tmuxAdapter.deliveryGuard;
|
|
2533
|
-
const
|
|
2753
|
+
const targetNode = guard?.maybeTarget(sessionName)?.nodeId;
|
|
2754
|
+
if (opts?.nativeWake && (!targetNode || inputRoute(targetNode) !== "native"))
|
|
2755
|
+
return { ok: false, sessionName, sent: false, reason: "native_route_required", error: "A live native wake requires this seat's native input route." };
|
|
2756
|
+
if (!guard && this.getSessionMeta(sessionName).nodeId && inputRoute(this.getSessionMeta(sessionName).nodeId) === "native")
|
|
2757
|
+
return { ok: false, sessionName, sent: false, reason: "guard_unavailable", error: "Native admission requires the delivery guard." };
|
|
2758
|
+
const saved = opts?.hookBridgeFallback?.admission;
|
|
2759
|
+
const admission = saved ? { source: saved.source, urgent: saved.urgent, override: false }
|
|
2760
|
+
: { source: opts?.openrigNotice ? "openrig" : "agent", urgent: !!opts?.urgent, override: opts?.dangerouslyInteract === true };
|
|
2534
2761
|
if (!guard) {
|
|
2762
|
+
try {
|
|
2763
|
+
const nodeId = this.getSessionMeta(sessionName).nodeId;
|
|
2764
|
+
checkRetainedRoutes(nodeId ? inputRoute(nodeId) : "typed", opts?.committedOutboxIds ?? (opts?.deliveryId ? [opts.deliveryId] : []));
|
|
2765
|
+
}
|
|
2766
|
+
catch (error) {
|
|
2767
|
+
return { ok: false, sessionName, sent: false, reason: error.code ?? "guard_unavailable", error: error.message };
|
|
2768
|
+
}
|
|
2535
2769
|
// No guard, so no recorded delivery to read back: a caller already gone ends the send here.
|
|
2536
2770
|
if (callerSignal(opts)?.aborted)
|
|
2537
2771
|
return callerCancelled(sessionName);
|
|
@@ -2569,7 +2803,7 @@ export class SessionTransport {
|
|
|
2569
2803
|
// write. A null return means go through guard.operation exactly as on
|
|
2570
2804
|
// main (guard held, target unresolvable, or a quick refusal).
|
|
2571
2805
|
let sendOpts = opts;
|
|
2572
|
-
if (opts?.waitForIdleMs !== undefined && !opts.submitOnly && !opts.preWaitedIdle) {
|
|
2806
|
+
if (opts?.waitForIdleMs !== undefined && !opts.submitOnly && !opts.preWaitedIdle && inputRoute(guard.target(sessionName).nodeId) !== "native") {
|
|
2573
2807
|
const pre = await this.preWaitForIdle(sessionName, opts, guard);
|
|
2574
2808
|
if (pre === null) {
|
|
2575
2809
|
// Fall through with today's path (in-lease wait / retain / throw).
|
|
@@ -2598,10 +2832,83 @@ export class SessionTransport {
|
|
|
2598
2832
|
sendOpts = { ...opts, preWaitedIdle: pre.evidence, preWaitBound: pre.bound };
|
|
2599
2833
|
}
|
|
2600
2834
|
}
|
|
2835
|
+
let bridgeWarning;
|
|
2601
2836
|
const result = await guard.operation(sessionName, async () => {
|
|
2837
|
+
const taken = this.takeFromHookBridge(sessionName, ids, opts);
|
|
2838
|
+
if (taken)
|
|
2839
|
+
return taken;
|
|
2602
2840
|
const members = recheck(false);
|
|
2603
2841
|
const memberText = members?.text ?? text;
|
|
2604
2842
|
const memberOpts = members ? { ...sendOpts, committedOutboxIds: members.outboxIds } : sendOpts;
|
|
2843
|
+
const currentIds = memberOpts?.committedOutboxIds ?? ids;
|
|
2844
|
+
const route = inputRoute(guard.target(sessionName).nodeId);
|
|
2845
|
+
if (memberOpts?.nativeWake && route !== "native")
|
|
2846
|
+
return { ok: false, sessionName, sent: false, reason: "native_route_required", error: "A live native wake requires this seat's native input route." };
|
|
2847
|
+
checkRetainedRoutes(route, currentIds);
|
|
2848
|
+
if (route === "native") {
|
|
2849
|
+
if (memberOpts?.expectedIdentity) {
|
|
2850
|
+
const original = await resolveExpectedConversation(memberOpts.expectedIdentity, this.sessionRegistry, this.tmuxAdapter, this.contextUsageStore);
|
|
2851
|
+
original.assertCurrent();
|
|
2852
|
+
}
|
|
2853
|
+
if (callerSignal(memberOpts)?.aborted)
|
|
2854
|
+
return callerCancelled(sessionName);
|
|
2855
|
+
return this.admitNative(sessionName, memberText, memberOpts, currentIds);
|
|
2856
|
+
}
|
|
2857
|
+
// Slice 13: an occupant launched with its hook bridge gets the message at its next turn boundary, nothing typed.
|
|
2858
|
+
// Admission (hold, the levels) has already decided above. With no live arm, it's typed, with a warning; messages
|
|
2859
|
+
// already queued go first, so a send never overtakes them.
|
|
2860
|
+
const bridge = this.hookBridge;
|
|
2861
|
+
// Only a plain message is bridged (see bridgeable): everything else is typed, where its checks run.
|
|
2862
|
+
if (bridge && bridgeable(memberText, memberOpts)) {
|
|
2863
|
+
const target = guard.target(sessionName);
|
|
2864
|
+
const routed = bridge.routes(target);
|
|
2865
|
+
// Messages already queued that a typed send would take now go first: a new one goes behind them even when
|
|
2866
|
+
// the bridge no longer routes (an opt-out after they were queued).
|
|
2867
|
+
const ahead = bridge.queuedForTyping(target.nodeId).length > 0;
|
|
2868
|
+
if (routed || ahead) {
|
|
2869
|
+
// As the typed path checks before typing: a caller gone while it waited for the lease, and an automatic
|
|
2870
|
+
// wake its queue row no longer wants (an explicit notice isn't subject to it), queue nothing.
|
|
2871
|
+
if (callerSignal(memberOpts)?.aborted)
|
|
2872
|
+
return callerCancelled(sessionName);
|
|
2873
|
+
const bridgeIds = memberOpts?.committedOutboxIds ?? ids;
|
|
2874
|
+
if (memberOpts?.queueWake && !memberOpts.drainExempt && this.queueWakeApplicable) {
|
|
2875
|
+
const outbox = new OutboxHandler(this.db);
|
|
2876
|
+
const facts = memberOpts.committedOutboxIds ? bridgeIds.map((id) => outbox.getById(id)).filter((e) => !!e)
|
|
2877
|
+
: [{ outboxId: bridgeIds[0], auditPointer: memberOpts.auditPointer ?? null, destinationSession: sessionName }];
|
|
2878
|
+
let applicable = true;
|
|
2879
|
+
try {
|
|
2880
|
+
applicable = this.queueWakeApplicable(facts);
|
|
2881
|
+
}
|
|
2882
|
+
catch (error) {
|
|
2883
|
+
console.error(`[hook-bridge] ${sessionName}'s queue wake couldn't be read; delivering:`, error);
|
|
2884
|
+
}
|
|
2885
|
+
if (!applicable)
|
|
2886
|
+
return { ok: true, sessionName, outcome: "retained", sent: false, verified: false, inputPhase: "not_reached",
|
|
2887
|
+
reason: "draft_wake_superseded", error: "The queue wake is no longer applicable; nothing was queued or typed.",
|
|
2888
|
+
warning: "Held, not delivered. Retry the current request when the input is free; no saved callback or message is replayed automatically." };
|
|
2889
|
+
}
|
|
2890
|
+
const queueOpts = { ...(memberOpts ?? {}), admission };
|
|
2891
|
+
// A deposit that queued nothing (an id already settled) isn't reported queued: the send goes on as it would
|
|
2892
|
+
// without the bridge.
|
|
2893
|
+
if (routed && bridge.live(target.nodeId)) {
|
|
2894
|
+
const queued = bridge.deposit(target, sessionName, memberText, queueOpts, bridgeIds);
|
|
2895
|
+
if (queued)
|
|
2896
|
+
return queued;
|
|
2897
|
+
}
|
|
2898
|
+
else {
|
|
2899
|
+
const reason = routed ? bridge.unavailable(target.nodeId) : "the seat no longer routes through it";
|
|
2900
|
+
const queued = ahead ? bridge.deposit(target, sessionName, memberText, queueOpts, bridgeIds) : null;
|
|
2901
|
+
if (queued) {
|
|
2902
|
+
setImmediate(() => { void this.sweepHookBridge({ nodeId: target.nodeId }).catch(() => { }); });
|
|
2903
|
+
return { ...queued, warning: `${sessionName}'s hook bridge isn't available (${reason}): this message is typed after the ones already queued for it.` };
|
|
2904
|
+
}
|
|
2905
|
+
if (routed) {
|
|
2906
|
+
bridgeWarning = `${sessionName}'s hook bridge isn't available (${reason}): delivered by typing instead.`;
|
|
2907
|
+
memberOpts?.onHookBridgeUnavailable?.(reason);
|
|
2908
|
+
}
|
|
2909
|
+
}
|
|
2910
|
+
}
|
|
2911
|
+
}
|
|
2605
2912
|
if (this.guardedDelivery && !memberOpts?.submitOnly && !memberOpts?.dangerouslyInteract && guard.needsInputCheck(sessionName)) {
|
|
2606
2913
|
if (callerSignal(memberOpts)?.aborted)
|
|
2607
2914
|
return callerCancelled(sessionName);
|
|
@@ -2614,9 +2921,16 @@ export class SessionTransport {
|
|
|
2614
2921
|
// Nothing is retained yet: a caller that went away while this send waited for the lease ends it here.
|
|
2615
2922
|
if (callerSignal(opts)?.aborted)
|
|
2616
2923
|
return callerCancelled(sessionName);
|
|
2924
|
+
const taken = this.takeFromHookBridge(sessionName, ids, opts);
|
|
2925
|
+
if (taken)
|
|
2926
|
+
return taken;
|
|
2617
2927
|
const members = recheck(true);
|
|
2618
2928
|
if (members)
|
|
2619
2929
|
ids = members.outboxIds;
|
|
2930
|
+
const route = inputRoute(target.nodeId);
|
|
2931
|
+
if (opts?.nativeWake && route !== "native")
|
|
2932
|
+
return { ok: false, sessionName, sent: false, reason: "native_route_required", error: "A live native wake requires this seat's native input route." };
|
|
2933
|
+
checkRetainedRoutes(route, ids);
|
|
2620
2934
|
this.db.transaction(() => {
|
|
2621
2935
|
for (const id of ids) {
|
|
2622
2936
|
const prior = opts?.committedOutboxIds ? outbox.getById(id) : null;
|
|
@@ -2626,6 +2940,8 @@ export class SessionTransport {
|
|
|
2626
2940
|
outboxId: id, senderSession: opts?.actorSession ?? "unknown", destinationSession: sessionName, body: text, auditPointer: opts?.auditPointer,
|
|
2627
2941
|
identityProvenance: opts?.identityProvenance, identityPrincipal: opts?.identityPrincipal, ...(opts?.urgent ? { urgency: "urgent" } : {}),
|
|
2628
2942
|
}, target, !!opts?.committedOutboxIds, { sameSend: ids });
|
|
2943
|
+
outbox.bindInputRoute({ outboxId: id, senderSession: prior?.senderSession ?? opts?.actorSession ?? "unknown",
|
|
2944
|
+
destinationSession: sessionName, body: prior?.body ?? text }, inputRoute(target.nodeId), opts?.nativeWake ? "wake" : "input");
|
|
2629
2945
|
}
|
|
2630
2946
|
})();
|
|
2631
2947
|
// P2: observed only after the retention above committed; a submit-only
|
|
@@ -2645,6 +2961,8 @@ export class SessionTransport {
|
|
|
2645
2961
|
}
|
|
2646
2962
|
return retainedResult();
|
|
2647
2963
|
}, admission);
|
|
2964
|
+
if (bridgeWarning)
|
|
2965
|
+
result.warning = [bridgeWarning, result.warning].filter(Boolean).join(" ");
|
|
2648
2966
|
if (result.ok && result.sent !== false) {
|
|
2649
2967
|
await this.reconcileStartupReadiness(sessionName).catch(() => { });
|
|
2650
2968
|
}
|
|
@@ -3909,8 +4227,12 @@ export class SessionTransport {
|
|
|
3909
4227
|
// dialog. Opening a picker or a permission selector after Stop fires no new hook, so a fresh idle
|
|
3910
4228
|
// hook gets the same current-dialog check as a fresh running one.
|
|
3911
4229
|
if (this.hookFreshForSend(hookActivity, now)) {
|
|
4230
|
+
// These fresh-hook dialog and picker checks run only on a runtime declared to support reading a dialog
|
|
4231
|
+
// (member-connection.v1, observe.dialog); the runtime then says which screen reader it is. The stale-idle veto and
|
|
4232
|
+
// the pane probe below don't read the declaration.
|
|
4233
|
+
const dialogRead = declaredCapabilities("typed", input.runtime).observe.dialog === "supported";
|
|
3912
4234
|
// A fresh SessionStart reads unknown, and a picker can open after it just as after Stop.
|
|
3913
|
-
if ((hookActivity.state === "running" || hookActivity.state === "idle" || hookActivity.state === "unknown") && input.runtime === "claude-code") {
|
|
4235
|
+
if ((hookActivity.state === "running" || hookActivity.state === "idle" || hookActivity.state === "unknown") && dialogRead && input.runtime === "claude-code") {
|
|
3914
4236
|
const paneVeto = await probeSessionActivity({
|
|
3915
4237
|
communityHarness, communityHarnessSendProbe: true,
|
|
3916
4238
|
composerSnapshot,
|
|
@@ -3931,7 +4253,7 @@ export class SessionTransport {
|
|
|
3931
4253
|
// Codex's /model picker fires no hook either, and Codex opens it during a running turn too. After any fresh
|
|
3932
4254
|
// hook short of a permission request, only a current selector recognized in full refuses (the dialogue-only
|
|
3933
4255
|
// read skips the numbered-row scan, so history, drafts and a busy pane with no picker still deliver).
|
|
3934
|
-
if ((hookActivity.state === "idle" || hookActivity.state === "running" || hookActivity.state === "unknown") && input.runtime === "codex") {
|
|
4256
|
+
if ((hookActivity.state === "idle" || hookActivity.state === "running" || hookActivity.state === "unknown") && dialogRead && input.runtime === "codex") {
|
|
3935
4257
|
const paneVeto = await probeSessionActivity({
|
|
3936
4258
|
communityHarness, communityHarnessSendProbe: true,
|
|
3937
4259
|
composerSnapshot,
|
|
@@ -4474,9 +4796,13 @@ export class SessionTransport {
|
|
|
4474
4796
|
deliveryId: opts?.deliveryId ? `${opts.deliveryId}:${session.sessionName}` : undefined });
|
|
4475
4797
|
results.push(result);
|
|
4476
4798
|
}
|
|
4799
|
+
const indeterminateNative = results.filter(r => r.runnerReceipt && (r.runnerReceipt.reconciliation || r.runnerReceipt.erasedAt || r.runnerReceipt.result?.submissionUnknown)).length;
|
|
4800
|
+
const pendingNative = results.filter(r => r.runnerReceipt && !r.runnerReceipt.reconciliation && !r.runnerReceipt.erasedAt
|
|
4801
|
+
&& ["pending", "offered", "accepted"].includes(r.runnerReceipt.stage)).length;
|
|
4477
4802
|
return {
|
|
4803
|
+
...(pendingNative ? { pendingNative } : {}), ...(indeterminateNative ? { indeterminateNative } : {}),
|
|
4478
4804
|
total: results.length,
|
|
4479
|
-
sent: results.filter((r) => r.ok && r.outcome !== "retained").length,
|
|
4805
|
+
sent: results.filter((r) => r.ok && (r.runnerReceipt ? r.sent === true : r.outcome !== "retained")).length,
|
|
4480
4806
|
retained: results.filter(r => r.outcome === "retained").length,
|
|
4481
4807
|
failed: results.filter((r) => !r.ok).length,
|
|
4482
4808
|
results,
|