@openrig/cli 0.7.7 → 0.7.9
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 +6 -6
- package/daemon/assets/openshell/Dockerfile +15 -0
- package/daemon/assets/openshell/README.md +139 -0
- package/daemon/assets/openshell/agents/coordinator/agent.yaml +20 -0
- package/daemon/assets/openshell/agents/coordinator/role.md +1 -0
- package/daemon/assets/openshell/agents/worker/agent.yaml +20 -0
- package/daemon/assets/openshell/agents/worker/role.md +3 -0
- package/daemon/assets/openshell/claude-code-provider.yaml +55 -0
- package/daemon/assets/openshell/driver-v1.schema.json +81 -0
- package/daemon/assets/openshell/guest.py +319 -0
- package/daemon/assets/openshell/policy.yaml +33 -0
- package/daemon/assets/openshell/preset.yaml +13 -0
- package/daemon/assets/openshell/rig.yaml +20 -0
- 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/skills/seat-continuity-and-handover/SKILL.md +13 -4
- 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 +110 -30
- package/daemon/context-packs/reference/getting-started.md +36 -9
- package/daemon/context-packs/reference/instance-layout.md +11 -0
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +130 -14
- package/daemon/context-packs/reference/whats-new.md +294 -132
- 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/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/SKILL.md +4 -3
- package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-upgrade/scripts/backup-sqlite.mjs +90 -14
- 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/delegating-work/manifest.yaml +1 -1
- package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
- package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
- package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
- package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
- package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/seat-continuity-and-handover/SKILL.md +13 -4
- 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 +6 -0
- package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +51 -74
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts +2 -1
- package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume.js +19 -7
- package/daemon/dist/adapters/claude-resume.js.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts +33 -7
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js +204 -45
- package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts +13 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.js +31 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/omp-runtime-adapter.d.ts +5 -0
- package/daemon/dist/adapters/omp-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/omp-runtime-adapter.js +4 -0
- package/daemon/dist/adapters/omp-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/openshell-driver.d.ts +39 -0
- package/daemon/dist/adapters/openshell-driver.d.ts.map +1 -0
- package/daemon/dist/adapters/openshell-driver.js +145 -0
- package/daemon/dist/adapters/openshell-driver.js.map +1 -0
- package/daemon/dist/adapters/openshell-podman-observer.d.ts +30 -0
- package/daemon/dist/adapters/openshell-podman-observer.d.ts.map +1 -0
- package/daemon/dist/adapters/openshell-podman-observer.js +94 -0
- package/daemon/dist/adapters/openshell-podman-observer.js.map +1 -0
- package/daemon/dist/adapters/pi-openrouter-charge.d.ts +1 -0
- package/daemon/dist/adapters/pi-openrouter-charge.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-openrouter-charge.js +17 -3
- package/daemon/dist/adapters/pi-openrouter-charge.js.map +1 -1
- package/daemon/dist/adapters/pi-runner.d.ts +39 -5
- package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner.js +97 -19
- package/daemon/dist/adapters/pi-runner.js.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts +22 -0
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.js +39 -8
- package/daemon/dist/adapters/pi-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/preflight-exec.d.ts +2 -0
- package/daemon/dist/adapters/preflight-exec.d.ts.map +1 -1
- package/daemon/dist/adapters/preflight-exec.js +3 -1
- package/daemon/dist/adapters/preflight-exec.js.map +1 -1
- package/daemon/dist/adapters/stub-runtime-adapter.d.ts +5 -0
- package/daemon/dist/adapters/stub-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/stub-runtime-adapter.js +7 -4
- package/daemon/dist/adapters/stub-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/tmux-control.d.ts +12 -6
- package/daemon/dist/adapters/tmux-control.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-control.js +42 -21
- package/daemon/dist/adapters/tmux-control.js.map +1 -1
- package/daemon/dist/adapters/tmux-exec.d.ts +3 -0
- package/daemon/dist/adapters/tmux-exec.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-exec.js +35 -1
- package/daemon/dist/adapters/tmux-exec.js.map +1 -1
- package/daemon/dist/adapters/tmux-server.d.ts +6 -3
- package/daemon/dist/adapters/tmux-server.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-server.js +13 -8
- package/daemon/dist/adapters/tmux-server.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +11 -2
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +66 -14
- package/daemon/dist/adapters/tmux.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 +16 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrations/142_node_claude_mcp.d.ts +3 -0
- package/daemon/dist/db/migrations/142_node_claude_mcp.d.ts.map +1 -0
- package/daemon/dist/db/migrations/142_node_claude_mcp.js +5 -0
- package/daemon/dist/db/migrations/142_node_claude_mcp.js.map +1 -0
- package/daemon/dist/db/migrations/143_activity_grants.d.ts +8 -0
- package/daemon/dist/db/migrations/143_activity_grants.d.ts.map +1 -0
- package/daemon/dist/db/migrations/143_activity_grants.js +22 -0
- package/daemon/dist/db/migrations/143_activity_grants.js.map +1 -0
- package/daemon/dist/db/migrations/144_environment_bindings.d.ts +4 -0
- package/daemon/dist/db/migrations/144_environment_bindings.d.ts.map +1 -0
- package/daemon/dist/db/migrations/144_environment_bindings.js +31 -0
- package/daemon/dist/db/migrations/144_environment_bindings.js.map +1 -0
- package/daemon/dist/db/migrations/145_node_permissions_to.d.ts +5 -0
- package/daemon/dist/db/migrations/145_node_permissions_to.d.ts.map +1 -0
- package/daemon/dist/db/migrations/145_node_permissions_to.js +7 -0
- package/daemon/dist/db/migrations/145_node_permissions_to.js.map +1 -0
- package/daemon/dist/db/migrations/146_node_startup_guidance_file.d.ts +6 -0
- package/daemon/dist/db/migrations/146_node_startup_guidance_file.d.ts.map +1 -0
- package/daemon/dist/db/migrations/146_node_startup_guidance_file.js +8 -0
- package/daemon/dist/db/migrations/146_node_startup_guidance_file.js.map +1 -0
- package/daemon/dist/db/migrations/147_managed_block_writes.d.ts +9 -0
- package/daemon/dist/db/migrations/147_managed_block_writes.d.ts.map +1 -0
- package/daemon/dist/db/migrations/147_managed_block_writes.js +19 -0
- package/daemon/dist/db/migrations/147_managed_block_writes.js.map +1 -0
- package/daemon/dist/db/migrations/148_outbox_dispatched_index.d.ts +8 -0
- package/daemon/dist/db/migrations/148_outbox_dispatched_index.d.ts.map +1 -0
- package/daemon/dist/db/migrations/148_outbox_dispatched_index.js +12 -0
- package/daemon/dist/db/migrations/148_outbox_dispatched_index.js.map +1 -0
- package/daemon/dist/db/migrations/149_stream_intake_cursor.d.ts +4 -0
- package/daemon/dist/db/migrations/149_stream_intake_cursor.d.ts.map +1 -0
- package/daemon/dist/db/migrations/149_stream_intake_cursor.js +14 -0
- package/daemon/dist/db/migrations/149_stream_intake_cursor.js.map +1 -0
- package/daemon/dist/domain/active-occupant.d.ts +2 -0
- package/daemon/dist/domain/active-occupant.d.ts.map +1 -1
- package/daemon/dist/domain/active-occupant.js +9 -1
- package/daemon/dist/domain/active-occupant.js.map +1 -1
- package/daemon/dist/domain/activity-grants.d.ts +63 -0
- package/daemon/dist/domain/activity-grants.d.ts.map +1 -0
- package/daemon/dist/domain/activity-grants.js +106 -0
- package/daemon/dist/domain/activity-grants.js.map +1 -0
- package/daemon/dist/domain/activity-taxonomy.d.ts +3 -0
- package/daemon/dist/domain/activity-taxonomy.d.ts.map +1 -1
- package/daemon/dist/domain/activity-taxonomy.js.map +1 -1
- package/daemon/dist/domain/agent-images/agent-image-library-service.d.ts.map +1 -1
- package/daemon/dist/domain/agent-images/agent-image-library-service.js +5 -2
- package/daemon/dist/domain/agent-images/agent-image-library-service.js.map +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.js +3 -1
- package/daemon/dist/domain/bootstrap-orchestrator.js.map +1 -1
- package/daemon/dist/domain/bundle-archive.d.ts.map +1 -1
- package/daemon/dist/domain/bundle-archive.js +40 -4
- package/daemon/dist/domain/bundle-archive.js.map +1 -1
- package/daemon/dist/domain/bundle-behaviour.d.ts.map +1 -1
- package/daemon/dist/domain/bundle-behaviour.js +7 -0
- package/daemon/dist/domain/bundle-behaviour.js.map +1 -1
- package/daemon/dist/domain/bundle-content-routing.d.ts +1 -0
- package/daemon/dist/domain/bundle-content-routing.d.ts.map +1 -1
- package/daemon/dist/domain/bundle-content-routing.js +3 -1
- package/daemon/dist/domain/bundle-content-routing.js.map +1 -1
- package/daemon/dist/domain/bundle-source-resolver.d.ts +2 -0
- package/daemon/dist/domain/bundle-source-resolver.d.ts.map +1 -1
- package/daemon/dist/domain/bundle-source-resolver.js +4 -4
- package/daemon/dist/domain/bundle-source-resolver.js.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts +12 -5
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.js +47 -18
- package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
- package/daemon/dist/domain/claude-mcp.d.ts +10 -0
- package/daemon/dist/domain/claude-mcp.d.ts.map +1 -0
- package/daemon/dist/domain/claude-mcp.js +19 -0
- package/daemon/dist/domain/claude-mcp.js.map +1 -0
- package/daemon/dist/domain/claude-owned-settings.d.ts +19 -0
- package/daemon/dist/domain/claude-owned-settings.d.ts.map +1 -0
- package/daemon/dist/domain/claude-owned-settings.js +160 -0
- package/daemon/dist/domain/claude-owned-settings.js.map +1 -0
- package/daemon/dist/domain/claude-plugin-channels.d.ts +2 -0
- package/daemon/dist/domain/claude-plugin-channels.d.ts.map +1 -0
- package/daemon/dist/domain/claude-plugin-channels.js +12 -0
- package/daemon/dist/domain/claude-plugin-channels.js.map +1 -0
- package/daemon/dist/domain/claude-theme-menu.d.ts +5 -0
- package/daemon/dist/domain/claude-theme-menu.d.ts.map +1 -0
- package/daemon/dist/domain/claude-theme-menu.js +43 -0
- package/daemon/dist/domain/claude-theme-menu.js.map +1 -0
- package/daemon/dist/domain/codex-owned-plugin-trust.d.ts.map +1 -1
- package/daemon/dist/domain/codex-owned-plugin-trust.js +2 -1
- package/daemon/dist/domain/codex-owned-plugin-trust.js.map +1 -1
- package/daemon/dist/domain/codex-pane-patterns.d.ts +1 -0
- package/daemon/dist/domain/codex-pane-patterns.d.ts.map +1 -1
- package/daemon/dist/domain/codex-pane-patterns.js +2 -0
- package/daemon/dist/domain/codex-pane-patterns.js.map +1 -1
- package/daemon/dist/domain/community-harness-presets.d.ts +2 -1
- package/daemon/dist/domain/community-harness-presets.d.ts.map +1 -1
- package/daemon/dist/domain/community-harness-presets.js +3 -2
- package/daemon/dist/domain/community-harness-presets.js.map +1 -1
- package/daemon/dist/domain/composer-prompts.d.ts +2 -0
- package/daemon/dist/domain/composer-prompts.d.ts.map +1 -1
- package/daemon/dist/domain/composer-prompts.js +3 -2
- package/daemon/dist/domain/composer-prompts.js.map +1 -1
- package/daemon/dist/domain/context-monitor.d.ts +2 -2
- package/daemon/dist/domain/context-monitor.d.ts.map +1 -1
- package/daemon/dist/domain/context-monitor.js +8 -2
- package/daemon/dist/domain/context-monitor.js.map +1 -1
- package/daemon/dist/domain/desired-claude-activity-hooks.d.ts +25 -0
- package/daemon/dist/domain/desired-claude-activity-hooks.d.ts.map +1 -0
- package/daemon/dist/domain/desired-claude-activity-hooks.js +86 -0
- package/daemon/dist/domain/desired-claude-activity-hooks.js.map +1 -0
- package/daemon/dist/domain/draft-aware-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/draft-aware-delivery.js +14 -4
- package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
- package/daemon/dist/domain/environment-artifacts.d.ts +49 -0
- package/daemon/dist/domain/environment-artifacts.d.ts.map +1 -0
- package/daemon/dist/domain/environment-artifacts.js +158 -0
- package/daemon/dist/domain/environment-artifacts.js.map +1 -0
- package/daemon/dist/domain/environment-lifecycle.d.ts +126 -0
- package/daemon/dist/domain/environment-lifecycle.d.ts.map +1 -0
- package/daemon/dist/domain/environment-lifecycle.js +474 -0
- package/daemon/dist/domain/environment-lifecycle.js.map +1 -0
- package/daemon/dist/domain/environment-platform.d.ts +121 -0
- package/daemon/dist/domain/environment-platform.d.ts.map +1 -0
- package/daemon/dist/domain/environment-platform.js +280 -0
- package/daemon/dist/domain/environment-platform.js.map +1 -0
- package/daemon/dist/domain/environment-startup.d.ts +43 -0
- package/daemon/dist/domain/environment-startup.d.ts.map +1 -0
- package/daemon/dist/domain/environment-startup.js +307 -0
- package/daemon/dist/domain/environment-startup.js.map +1 -0
- package/daemon/dist/domain/expected-conversation.d.ts +20 -0
- package/daemon/dist/domain/expected-conversation.d.ts.map +1 -0
- package/daemon/dist/domain/expected-conversation.js +101 -0
- package/daemon/dist/domain/expected-conversation.js.map +1 -0
- package/daemon/dist/domain/gateway/human-readiness.d.ts +2 -1
- package/daemon/dist/domain/gateway/human-readiness.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/human-readiness.js +6 -0
- package/daemon/dist/domain/gateway/human-readiness.js.map +1 -1
- package/daemon/dist/domain/gateway/human-registry.d.ts +2 -1
- package/daemon/dist/domain/gateway/human-registry.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/human-registry.js +9 -7
- package/daemon/dist/domain/gateway/human-registry.js.map +1 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts +8 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.js +61 -4
- package/daemon/dist/domain/gateway/operator-delivery-engine.js.map +1 -1
- package/daemon/dist/domain/gateway/participants.d.ts +26 -0
- package/daemon/dist/domain/gateway/participants.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/participants.js +15 -0
- package/daemon/dist/domain/gateway/participants.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.d.ts +2 -0
- package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.js +59 -11
- package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.d.ts +19 -0
- package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.js +219 -9
- package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts +15 -0
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.js +24 -5
- package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/recovery-budget.d.ts +1 -0
- package/daemon/dist/domain/gateway/slack/recovery-budget.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/recovery-budget.js +1 -0
- package/daemon/dist/domain/gateway/slack/recovery-budget.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/settled-asks.d.ts +37 -0
- package/daemon/dist/domain/gateway/slack/settled-asks.d.ts.map +1 -0
- package/daemon/dist/domain/gateway/slack/settled-asks.js +276 -0
- package/daemon/dist/domain/gateway/slack/settled-asks.js.map +1 -0
- package/daemon/dist/domain/gateway/slack/slack-api.d.ts +32 -0
- package/daemon/dist/domain/gateway/slack/slack-api.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-api.js +40 -2
- package/daemon/dist/domain/gateway/slack/slack-api.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.js +9 -4
- package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts +2 -0
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js +35 -6
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
- package/daemon/dist/domain/hosts/hosts-registry-writer.d.ts +22 -0
- package/daemon/dist/domain/hosts/hosts-registry-writer.d.ts.map +1 -1
- package/daemon/dist/domain/hosts/hosts-registry-writer.js +116 -0
- package/daemon/dist/domain/hosts/hosts-registry-writer.js.map +1 -1
- package/daemon/dist/domain/human-questions.d.ts +3 -1
- package/daemon/dist/domain/human-questions.d.ts.map +1 -1
- package/daemon/dist/domain/human-questions.js.map +1 -1
- package/daemon/dist/domain/kernel-boot-tracker.d.ts +3 -2
- package/daemon/dist/domain/kernel-boot-tracker.d.ts.map +1 -1
- package/daemon/dist/domain/kernel-boot-tracker.js +2 -1
- package/daemon/dist/domain/kernel-boot-tracker.js.map +1 -1
- package/daemon/dist/domain/kernel-boot.d.ts +11 -6
- package/daemon/dist/domain/kernel-boot.d.ts.map +1 -1
- package/daemon/dist/domain/kernel-boot.js +27 -5
- package/daemon/dist/domain/kernel-boot.js.map +1 -1
- package/daemon/dist/domain/kernel-hook-review.d.ts +18 -0
- package/daemon/dist/domain/kernel-hook-review.d.ts.map +1 -0
- package/daemon/dist/domain/kernel-hook-review.js +58 -0
- package/daemon/dist/domain/kernel-hook-review.js.map +1 -0
- package/daemon/dist/domain/managed-block-records.d.ts +54 -0
- package/daemon/dist/domain/managed-block-records.d.ts.map +1 -0
- package/daemon/dist/domain/managed-block-records.js +130 -0
- package/daemon/dist/domain/managed-block-records.js.map +1 -0
- package/daemon/dist/domain/managed-blocks.d.ts +14 -0
- package/daemon/dist/domain/managed-blocks.d.ts.map +1 -1
- package/daemon/dist/domain/managed-blocks.js +24 -4
- package/daemon/dist/domain/managed-blocks.js.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts +29 -10
- 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 +116 -29
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
- package/daemon/dist/domain/model-divergence/current-generation-record.d.ts.map +1 -1
- package/daemon/dist/domain/model-divergence/current-generation-record.js +10 -6
- package/daemon/dist/domain/model-divergence/current-generation-record.js.map +1 -1
- package/daemon/dist/domain/native-process-lineage.d.ts +5 -1
- package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
- package/daemon/dist/domain/native-process-lineage.js +91 -6
- package/daemon/dist/domain/native-process-lineage.js.map +1 -1
- package/daemon/dist/domain/native-resume-probe.d.ts +2 -1
- package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +4 -2
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/node-inventory.d.ts +1 -0
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +42 -10
- package/daemon/dist/domain/node-inventory.js.map +1 -1
- package/daemon/dist/domain/node-launcher.d.ts +3 -0
- package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/node-launcher.js +6 -0
- package/daemon/dist/domain/node-launcher.js.map +1 -1
- package/daemon/dist/domain/outbox-handler.d.ts +17 -0
- package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
- package/daemon/dist/domain/outbox-handler.js +60 -3
- package/daemon/dist/domain/outbox-handler.js.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts +10 -0
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js +60 -4
- package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
- package/daemon/dist/domain/profile-resolver.d.ts.map +1 -1
- package/daemon/dist/domain/profile-resolver.js +7 -1
- package/daemon/dist/domain/profile-resolver.js.map +1 -1
- package/daemon/dist/domain/provider/claude-seat-switch.d.ts +9 -3
- package/daemon/dist/domain/provider/claude-seat-switch.d.ts.map +1 -1
- package/daemon/dist/domain/provider/claude-seat-switch.js +100 -17
- package/daemon/dist/domain/provider/claude-seat-switch.js.map +1 -1
- package/daemon/dist/domain/provider/provider-service-impl.js +1 -1
- package/daemon/dist/domain/provider/provider-service-impl.js.map +1 -1
- package/daemon/dist/domain/provider/provider-service.d.ts +32 -2
- package/daemon/dist/domain/provider/provider-service.d.ts.map +1 -1
- package/daemon/dist/domain/provider/provider-types.d.ts +1 -1
- package/daemon/dist/domain/provider/provider-types.d.ts.map +1 -1
- package/daemon/dist/domain/queue-recovery.d.ts +1 -1
- package/daemon/dist/domain/queue-recovery.d.ts.map +1 -1
- package/daemon/dist/domain/queue-recovery.js +6 -2
- package/daemon/dist/domain/queue-recovery.js.map +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +64 -8
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +309 -76
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +59 -4
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/queue-transition-log.d.ts +2 -0
- package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
- package/daemon/dist/domain/queue-transition-log.js +9 -0
- package/daemon/dist/domain/queue-transition-log.js.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.d.ts +3 -0
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +124 -25
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/restore-check-service.d.ts +2 -7
- package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
- package/daemon/dist/domain/restore-check-service.js.map +1 -1
- package/daemon/dist/domain/restore-guidance.d.ts +70 -7
- package/daemon/dist/domain/restore-guidance.d.ts.map +1 -1
- package/daemon/dist/domain/restore-guidance.js +181 -18
- package/daemon/dist/domain/restore-guidance.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +40 -3
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +276 -33
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.d.ts +2 -1
- package/daemon/dist/domain/resume-metadata-refresher.d.ts.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.js +20 -6
- package/daemon/dist/domain/resume-metadata-refresher.js.map +1 -1
- 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 +14 -0
- package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
- package/daemon/dist/domain/rig-repository.js +57 -1
- package/daemon/dist/domain/rig-repository.js.map +1 -1
- package/daemon/dist/domain/rig-teardown.d.ts +18 -0
- package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
- package/daemon/dist/domain/rig-teardown.js +73 -17
- 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 +6 -0
- package/daemon/dist/domain/rigspec-codec.js.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.d.ts +8 -0
- package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.js +66 -3
- package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts +7 -4
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +38 -11
- package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/daemon/dist/domain/rigspec-preflight.d.ts +4 -0
- package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-preflight.js +35 -1
- package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
- package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-schema.js +56 -6
- package/daemon/dist/domain/rigspec-schema.js.map +1 -1
- package/daemon/dist/domain/runner-permissions.d.ts +150 -0
- package/daemon/dist/domain/runner-permissions.d.ts.map +1 -0
- package/daemon/dist/domain/runner-permissions.js +383 -0
- package/daemon/dist/domain/runner-permissions.js.map +1 -0
- package/daemon/dist/domain/runtime-adapter.d.ts +28 -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 +3 -0
- package/daemon/dist/domain/runtime-switch-materials.js.map +1 -1
- package/daemon/dist/domain/runtime-verifier.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-verifier.js +9 -4
- package/daemon/dist/domain/runtime-verifier.js.map +1 -1
- package/daemon/dist/domain/scope/scope-audit.d.ts +1 -1
- package/daemon/dist/domain/scope/scope-audit.d.ts.map +1 -1
- package/daemon/dist/domain/scope/scope-audit.js.map +1 -1
- package/daemon/dist/domain/scope/types.d.ts +3 -0
- package/daemon/dist/domain/scope/types.d.ts.map +1 -1
- package/daemon/dist/domain/scope/types.js.map +1 -1
- package/daemon/dist/domain/seat-activity-service.d.ts +7 -0
- package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-activity-service.js +47 -7
- package/daemon/dist/domain/seat-activity-service.js.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.js +8 -1
- package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.d.ts +22 -4
- package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.js +80 -11
- package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
- package/daemon/dist/domain/seat-effort.d.ts +6 -0
- package/daemon/dist/domain/seat-effort.d.ts.map +1 -1
- package/daemon/dist/domain/seat-effort.js +0 -2
- package/daemon/dist/domain/seat-effort.js.map +1 -1
- package/daemon/dist/domain/seat-handover-planner.js +1 -1
- package/daemon/dist/domain/seat-handover-planner.js.map +1 -1
- package/daemon/dist/domain/seat-handover-service.d.ts +25 -10
- package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-handover-service.js +164 -31
- package/daemon/dist/domain/seat-handover-service.js.map +1 -1
- package/daemon/dist/domain/seat-launch-additions.d.ts +6 -0
- package/daemon/dist/domain/seat-launch-additions.d.ts.map +1 -1
- package/daemon/dist/domain/seat-launch-additions.js +41 -11
- package/daemon/dist/domain/seat-launch-additions.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +24 -2
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +65 -2
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.js +6 -1
- package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.js +21 -3
- package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
- package/daemon/dist/domain/seat-skill-storage.d.ts +8 -6
- package/daemon/dist/domain/seat-skill-storage.d.ts.map +1 -1
- package/daemon/dist/domain/seat-skill-storage.js +27 -7
- package/daemon/dist/domain/seat-skill-storage.js.map +1 -1
- package/daemon/dist/domain/seat-status-service.d.ts +5 -0
- package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-status-service.js +9 -0
- package/daemon/dist/domain/seat-status-service.js.map +1 -1
- package/daemon/dist/domain/seat-structural-activity-service.d.ts +15 -5
- package/daemon/dist/domain/seat-structural-activity-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-structural-activity-service.js +21 -7
- package/daemon/dist/domain/seat-structural-activity-service.js.map +1 -1
- package/daemon/dist/domain/self-attach-service.d.ts +8 -1
- package/daemon/dist/domain/self-attach-service.d.ts.map +1 -1
- package/daemon/dist/domain/self-attach-service.js +26 -0
- package/daemon/dist/domain/self-attach-service.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +17 -0
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +247 -31
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/snapshot-capture.d.ts.map +1 -1
- package/daemon/dist/domain/snapshot-capture.js +15 -0
- package/daemon/dist/domain/snapshot-capture.js.map +1 -1
- package/daemon/dist/domain/spec-library-workflow-scanner.d.ts +2 -0
- package/daemon/dist/domain/spec-library-workflow-scanner.d.ts.map +1 -1
- package/daemon/dist/domain/spec-library-workflow-scanner.js +5 -1
- package/daemon/dist/domain/spec-library-workflow-scanner.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 +106 -8
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/stream-intake.d.ts +51 -0
- package/daemon/dist/domain/stream-intake.d.ts.map +1 -0
- package/daemon/dist/domain/stream-intake.js +438 -0
- package/daemon/dist/domain/stream-intake.js.map +1 -0
- package/daemon/dist/domain/successor-session-launcher.d.ts +3 -0
- package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.js +2 -0
- package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.js +4 -3
- package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-follow-view.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-follow-view.js +22 -4
- package/daemon/dist/domain/terminal/herdr-follow-view.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-viewer.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-viewer.js +8 -4
- package/daemon/dist/domain/terminal/herdr-viewer.js.map +1 -1
- package/daemon/dist/domain/terminal/login-shell.d.ts +10 -0
- package/daemon/dist/domain/terminal/login-shell.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/login-shell.js +37 -0
- package/daemon/dist/domain/terminal/login-shell.js.map +1 -0
- package/daemon/dist/domain/terminal/rex-layout.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/rex-layout.js +2 -1
- package/daemon/dist/domain/terminal/rex-layout.js.map +1 -1
- package/daemon/dist/domain/terminal/scope-task-terminal-view.d.ts +12 -1
- package/daemon/dist/domain/terminal/scope-task-terminal-view.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/scope-task-terminal-view.js +120 -18
- package/daemon/dist/domain/terminal/scope-task-terminal-view.js.map +1 -1
- package/daemon/dist/domain/terminal/terminal-following.js +1 -1
- package/daemon/dist/domain/terminal/terminal-following.js.map +1 -1
- 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 +3 -2
- package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.js +18 -27
- package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
- package/daemon/dist/domain/terminal/tile-attach.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/tile-attach.js +15 -5
- package/daemon/dist/domain/terminal/tile-attach.js.map +1 -1
- package/daemon/dist/domain/terminal/view-composer.d.ts +6 -3
- package/daemon/dist/domain/terminal/view-composer.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/view-composer.js +15 -5
- package/daemon/dist/domain/terminal/view-composer.js.map +1 -1
- package/daemon/dist/domain/tmux-server-selection.d.ts +47 -0
- package/daemon/dist/domain/tmux-server-selection.d.ts.map +1 -0
- package/daemon/dist/domain/tmux-server-selection.js +220 -0
- package/daemon/dist/domain/tmux-server-selection.js.map +1 -0
- package/daemon/dist/domain/transcript-store.d.ts.map +1 -1
- package/daemon/dist/domain/transcript-store.js +19 -10
- package/daemon/dist/domain/transcript-store.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +54 -0
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.js +3 -1
- package/daemon/dist/domain/user-settings/settings-browser.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts +1 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.js +23 -0
- package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
- package/daemon/dist/domain/watchdog-delivery-receipts.d.ts +11 -0
- package/daemon/dist/domain/watchdog-delivery-receipts.d.ts.map +1 -0
- package/daemon/dist/domain/watchdog-delivery-receipts.js +134 -0
- package/daemon/dist/domain/watchdog-delivery-receipts.js.map +1 -0
- package/daemon/dist/domain/watchdog-delivery.d.ts +7 -1
- package/daemon/dist/domain/watchdog-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-delivery.js +24 -8
- package/daemon/dist/domain/watchdog-delivery.js.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.d.ts +21 -2
- package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.js +52 -23
- package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
- package/daemon/dist/domain/workflow-projector.js +3 -3
- package/daemon/dist/domain/workflow-projector.js.map +1 -1
- package/daemon/dist/domain/workflow-runtime.d.ts +1 -1
- package/daemon/dist/domain/workflow-runtime.js +3 -3
- package/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/daemon/dist/domain/working-liveness.d.ts +66 -0
- package/daemon/dist/domain/working-liveness.d.ts.map +1 -0
- package/daemon/dist/domain/working-liveness.js +94 -0
- package/daemon/dist/domain/working-liveness.js.map +1 -0
- package/daemon/dist/domain/workspace/frontmatter-validator.js +4 -2
- package/daemon/dist/domain/workspace/frontmatter-validator.js.map +1 -1
- package/daemon/dist/index.d.ts +4 -0
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +17 -0
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/lib/pane-envelope.d.ts.map +1 -1
- package/daemon/dist/lib/pane-envelope.js +9 -3
- package/daemon/dist/lib/pane-envelope.js.map +1 -1
- package/daemon/dist/middleware/auth-bearer-token.js +2 -2
- package/daemon/dist/middleware/auth-bearer-token.js.map +1 -1
- package/daemon/dist/routes/activity.d.ts +6 -0
- package/daemon/dist/routes/activity.d.ts.map +1 -1
- package/daemon/dist/routes/activity.js +317 -22
- package/daemon/dist/routes/activity.js.map +1 -1
- package/daemon/dist/routes/attention.d.ts.map +1 -1
- package/daemon/dist/routes/attention.js +17 -5
- package/daemon/dist/routes/attention.js.map +1 -1
- package/daemon/dist/routes/bundles.js +3 -1
- package/daemon/dist/routes/bundles.js.map +1 -1
- package/daemon/dist/routes/compaction.js +4 -2
- package/daemon/dist/routes/compaction.js.map +1 -1
- package/daemon/dist/routes/environments.d.ts +3 -0
- package/daemon/dist/routes/environments.d.ts.map +1 -0
- package/daemon/dist/routes/environments.js +104 -0
- package/daemon/dist/routes/environments.js.map +1 -0
- package/daemon/dist/routes/gateway.d.ts +6 -0
- package/daemon/dist/routes/gateway.d.ts.map +1 -1
- package/daemon/dist/routes/gateway.js +39 -0
- package/daemon/dist/routes/gateway.js.map +1 -1
- package/daemon/dist/routes/hosts.d.ts.map +1 -1
- package/daemon/dist/routes/hosts.js +106 -8
- package/daemon/dist/routes/hosts.js.map +1 -1
- package/daemon/dist/routes/mission-control.d.ts.map +1 -1
- package/daemon/dist/routes/mission-control.js +6 -1
- package/daemon/dist/routes/mission-control.js.map +1 -1
- package/daemon/dist/routes/provider.d.ts.map +1 -1
- package/daemon/dist/routes/provider.js +53 -7
- package/daemon/dist/routes/provider.js.map +1 -1
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +21 -2
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/restore-check.d.ts.map +1 -1
- package/daemon/dist/routes/restore-check.js +5 -19
- package/daemon/dist/routes/restore-check.js.map +1 -1
- package/daemon/dist/routes/rigs.js +3 -0
- package/daemon/dist/routes/rigs.js.map +1 -1
- package/daemon/dist/routes/rigspec.d.ts.map +1 -1
- package/daemon/dist/routes/rigspec.js +8 -3
- 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 +30 -0
- 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 +32 -5
- package/daemon/dist/routes/seat.js.map +1 -1
- package/daemon/dist/routes/sessions.d.ts.map +1 -1
- package/daemon/dist/routes/sessions.js +66 -20
- package/daemon/dist/routes/sessions.js.map +1 -1
- package/daemon/dist/routes/spec-library.d.ts.map +1 -1
- package/daemon/dist/routes/spec-library.js +60 -5
- package/daemon/dist/routes/spec-library.js.map +1 -1
- package/daemon/dist/routes/startup.js +2 -2
- package/daemon/dist/routes/startup.js.map +1 -1
- package/daemon/dist/routes/transport.d.ts.map +1 -1
- package/daemon/dist/routes/transport.js +31 -5
- package/daemon/dist/routes/transport.js.map +1 -1
- package/daemon/dist/server.d.ts +7 -0
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +57 -1
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts +2 -0
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +90 -37
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/docs/reference/agent-spec.md +1 -1
- package/daemon/docs/reference/agent-startup-guide.md +119 -3
- package/daemon/docs/reference/agent-state-taxonomy.md +23 -2
- package/daemon/docs/reference/author-contracts.md +9 -9
- package/daemon/docs/reference/checked-seat-stop.md +12 -1
- package/daemon/docs/reference/community-harness-examples/dsh/README.md +96 -0
- package/daemon/docs/reference/community-harness-examples/dsh/dsh.yaml +20 -0
- package/daemon/docs/reference/community-harness-examples/dsh/openrig-dsh-runner.mjs +626 -0
- package/daemon/docs/reference/community-harness-examples/openshell/README.md +5 -0
- package/daemon/docs/reference/community-harness-presets.md +25 -1
- package/daemon/docs/reference/daemon-http-clients.md +203 -0
- package/daemon/docs/reference/execution-platform-contract.md +1 -1
- package/daemon/docs/reference/gateway-participants.md +29 -17
- package/daemon/docs/reference/getting-started.md +36 -9
- package/daemon/docs/reference/harness-runner-contract.md +235 -26
- package/daemon/docs/reference/hosted-members.md +32 -0
- package/daemon/docs/reference/instance-layout.md +11 -0
- package/daemon/docs/reference/keeping-a-watch.md +22 -0
- package/daemon/docs/reference/pi-tool-selection-recovery.md +84 -0
- package/daemon/docs/reference/quickstart.md +9 -4
- package/daemon/docs/reference/rig-bundle.md +2 -2
- package/daemon/docs/reference/rig-spec.md +130 -14
- package/daemon/docs/reference/runner-conformance/README.md +77 -0
- package/daemon/docs/reference/runner-conformance/check-runner.mjs +818 -0
- package/daemon/docs/reference/runner-conformance/fake-acp-agent.mjs +150 -0
- package/daemon/docs/reference/sdlc-conventions.md +22 -3
- package/daemon/docs/reference/seat-delivery.md +31 -6
- package/daemon/docs/reference/slack-app-setup.md +55 -5
- package/daemon/docs/reference/terminal-sessions.md +100 -14
- package/daemon/docs/reference/tmux-servers.md +166 -0
- package/daemon/docs/reference/whats-new.md +294 -132
- package/daemon/specs/agents/shared/skills/core/openrig-upgrade/SKILL.md +4 -3
- package/daemon/specs/agents/shared/skills/core/openrig-upgrade/scripts/backup-sqlite.mjs +90 -14
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +2 -1
- package/daemon/specs/rigs/launch/kernel/agents/queue/worker/guidance/role.md +1 -1
- package/dist/acp/connector.d.ts.map +1 -1
- package/dist/acp/connector.js +6 -1
- package/dist/acp/connector.js.map +1 -1
- package/dist/atomic-text-write.d.ts +2 -0
- package/dist/atomic-text-write.d.ts.map +1 -1
- package/dist/atomic-text-write.js +17 -0
- package/dist/atomic-text-write.js.map +1 -1
- package/dist/build-info.js +3 -3
- package/dist/client.d.ts +3 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +28 -0
- package/dist/client.js.map +1 -1
- package/dist/commands/attach.d.ts +1 -0
- package/dist/commands/attach.d.ts.map +1 -1
- package/dist/commands/attach.js +8 -2
- package/dist/commands/attach.js.map +1 -1
- package/dist/commands/broadcast.js +2 -1
- package/dist/commands/broadcast.js.map +1 -1
- package/dist/commands/compact.d.ts.map +1 -1
- package/dist/commands/compact.js +7 -4
- package/dist/commands/compact.js.map +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +9 -3
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +1 -0
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/daemon.d.ts.map +1 -1
- package/dist/commands/daemon.js +7 -1
- package/dist/commands/daemon.js.map +1 -1
- package/dist/commands/destroy.d.ts.map +1 -1
- package/dist/commands/destroy.js +2 -0
- package/dist/commands/destroy.js.map +1 -1
- package/dist/commands/doctor.d.ts +8 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +126 -10
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/down.d.ts.map +1 -1
- package/dist/commands/down.js +10 -0
- package/dist/commands/down.js.map +1 -1
- package/dist/commands/env.d.ts.map +1 -1
- package/dist/commands/env.js +10 -4
- package/dist/commands/env.js.map +1 -1
- package/dist/commands/environment.d.ts +8 -0
- package/dist/commands/environment.d.ts.map +1 -0
- package/dist/commands/environment.js +197 -0
- package/dist/commands/environment.js.map +1 -0
- package/dist/commands/export.d.ts +2 -0
- package/dist/commands/export.d.ts.map +1 -1
- package/dist/commands/export.js +31 -7
- package/dist/commands/export.js.map +1 -1
- package/dist/commands/gateway.js +15 -11
- package/dist/commands/gateway.js.map +1 -1
- package/dist/commands/host.d.ts +13 -6
- package/dist/commands/host.d.ts.map +1 -1
- package/dist/commands/host.js +112 -15
- package/dist/commands/host.js.map +1 -1
- package/dist/commands/project-jev.js +1 -1
- package/dist/commands/project-jev.js.map +1 -1
- package/dist/commands/provider.d.ts.map +1 -1
- package/dist/commands/provider.js +12 -5
- package/dist/commands/provider.js.map +1 -1
- package/dist/commands/ps.d.ts +2 -0
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +12 -3
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue.d.ts +1 -0
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +50 -6
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/scope.d.ts.map +1 -1
- package/dist/commands/scope.js +36 -2
- package/dist/commands/scope.js.map +1 -1
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +85 -8
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +46 -16
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/commands/setup.js +18 -0
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/slack.d.ts.map +1 -1
- package/dist/commands/slack.js +5 -0
- package/dist/commands/slack.js.map +1 -1
- package/dist/commands/specs.d.ts +1 -1
- package/dist/commands/specs.d.ts.map +1 -1
- package/dist/commands/specs.js +44 -10
- package/dist/commands/specs.js.map +1 -1
- package/dist/commands/stream.d.ts.map +1 -1
- package/dist/commands/stream.js +6 -1
- package/dist/commands/stream.js.map +1 -1
- package/dist/commands/terminal.d.ts +2 -0
- package/dist/commands/terminal.d.ts.map +1 -1
- package/dist/commands/terminal.js +31 -2
- package/dist/commands/terminal.js.map +1 -1
- package/dist/commands/topology-default-agent.js +1 -1
- package/dist/commands/topology-default-agent.js.map +1 -1
- package/dist/commands/tui.d.ts +3 -2
- package/dist/commands/tui.d.ts.map +1 -1
- package/dist/commands/tui.js.map +1 -1
- package/dist/commands/walk.d.ts.map +1 -1
- package/dist/commands/walk.js +27 -10
- package/dist/commands/walk.js.map +1 -1
- package/dist/commands/workspace.d.ts.map +1 -1
- package/dist/commands/workspace.js +8 -1
- package/dist/commands/workspace.js.map +1 -1
- package/dist/config-store.d.ts +9 -1
- package/dist/config-store.d.ts.map +1 -1
- package/dist/config-store.js +33 -2
- package/dist/config-store.js.map +1 -1
- package/dist/cross-host-target.d.ts.map +1 -1
- package/dist/cross-host-target.js +3 -1
- package/dist/cross-host-target.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts +6 -0
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +66 -4
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/daemon-reachability.d.ts +2 -1
- package/dist/daemon-reachability.d.ts.map +1 -1
- package/dist/daemon-reachability.js +3 -2
- package/dist/daemon-reachability.js.map +1 -1
- package/dist/destroy-helpers.d.ts +3 -2
- package/dist/destroy-helpers.d.ts.map +1 -1
- package/dist/destroy-helpers.js +6 -3
- package/dist/destroy-helpers.js.map +1 -1
- package/dist/host-bindings.js +1 -1
- package/dist/host-bindings.js.map +1 -1
- package/dist/host-registry.d.ts +22 -0
- package/dist/host-registry.d.ts.map +1 -1
- package/dist/host-registry.js +121 -0
- package/dist/host-registry.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/lazy-program.d.ts.map +1 -1
- package/dist/lazy-program.js +1 -0
- package/dist/lazy-program.js.map +1 -1
- package/dist/lib/scope/progress-edit.d.ts.map +1 -1
- package/dist/lib/scope/progress-edit.js +37 -7
- package/dist/lib/scope/progress-edit.js.map +1 -1
- package/dist/lib/scope/scope-audit.d.ts +1 -1
- package/dist/lib/scope/scope-audit.d.ts.map +1 -1
- package/dist/lib/scope/scope-audit.js.map +1 -1
- package/dist/lib/scope/scope-fs.d.ts +3 -0
- package/dist/lib/scope/scope-fs.d.ts.map +1 -1
- package/dist/lib/scope/scope-fs.js +39 -53
- package/dist/lib/scope/scope-fs.js.map +1 -1
- package/dist/lib/scope/types.d.ts +3 -0
- package/dist/lib/scope/types.d.ts.map +1 -1
- package/dist/lib/scope/types.js.map +1 -1
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +89 -18
- package/dist/mcp-server.js.map +1 -1
- package/dist/openrig-compat.d.ts +1 -1
- package/dist/openrig-compat.d.ts.map +1 -1
- package/dist/openrig-compat.js +2 -2
- package/dist/openrig-compat.js.map +1 -1
- package/dist/seat-launch-additions-lines.d.ts +2 -0
- package/dist/seat-launch-additions-lines.d.ts.map +1 -1
- package/dist/seat-launch-additions-lines.js +1 -0
- package/dist/seat-launch-additions-lines.js.map +1 -1
- package/dist/shared-tui.d.ts +4 -2
- package/dist/shared-tui.d.ts.map +1 -1
- package/dist/shared-tui.js +4 -11
- package/dist/shared-tui.js.map +1 -1
- package/dist/terminal-window.d.ts.map +1 -1
- package/dist/terminal-window.js +34 -29
- package/dist/terminal-window.js.map +1 -1
- package/dist/tmux-attachment.d.ts +17 -0
- package/dist/tmux-attachment.d.ts.map +1 -0
- package/dist/tmux-attachment.js +89 -0
- package/dist/tmux-attachment.js.map +1 -0
- package/package.json +2 -2
- package/tui/dist/attention/attention-model.d.ts +3 -2
- package/tui/dist/attention/attention-model.d.ts.map +1 -1
- package/tui/dist/attention/attention-model.js +7 -4
- package/tui/dist/attention/attention-model.js.map +1 -1
- package/tui/dist/daemon-client.d.ts +4 -4
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js +6 -5
- package/tui/dist/daemon-client.js.map +1 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +16 -5
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/pulse/pulse-model.d.ts +1 -1
- package/tui/dist/pulse/pulse-model.d.ts.map +1 -1
- package/tui/dist/pulse/pulse-model.js +6 -17
- package/tui/dist/pulse/pulse-model.js.map +1 -1
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +8 -2
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/terminals/terminal-model.d.ts.map +1 -1
- package/tui/dist/terminals/terminal-model.js +2 -1
- package/tui/dist/terminals/terminal-model.js.map +1 -1
- package/tui/dist/theme.d.ts.map +1 -1
- package/tui/dist/theme.js +7 -2
- package/tui/dist/theme.js.map +1 -1
- package/tui/dist/time.d.ts +2 -0
- package/tui/dist/time.d.ts.map +1 -1
- package/tui/dist/time.js +5 -0
- package/tui/dist/time.js.map +1 -1
- package/tui/dist/types.d.ts +2 -3
- package/tui/dist/types.d.ts.map +1 -1
- package/ui/dist/assets/index-BFOs3ejL.css +32 -0
- package/ui/dist/assets/{index-CMBgYrS7.js → index-CdkFwtld.js} +92 -92
- package/ui/dist/index.html +2 -2
- package/ui/dist/assets/index-DNU3XZr_.css +0 -32
|
@@ -1,13 +1,15 @@
|
|
|
1
|
+
import { expectedConversation, sameConversation, resolveExpectedConversation } from "./expected-conversation.js";
|
|
1
2
|
import { physicalSessionName } from "./session-registry.js";
|
|
2
3
|
import { currentClaudeMcpMenu } from "./claude-mcp-menu.js";
|
|
4
|
+
import { currentClaudeThemeMenu } from "./claude-theme-menu.js";
|
|
3
5
|
import { currentClaudeResumePicker } from "./native-resume-probe.js";
|
|
4
6
|
import stringWidth from "string-width";
|
|
5
|
-
import { CODEX_TURN_STATUS_PATTERN } from "./codex-pane-patterns.js";
|
|
7
|
+
import { CODEX_LIVE_WORKING_FRAME_PATTERN, CODEX_TURN_STATUS_PATTERN } from "./codex-pane-patterns.js";
|
|
6
8
|
import { randomUUID } from "node:crypto";
|
|
7
9
|
import { COLLAPSED_PASTE, composerRegion, isComposerFooter, isClaudePasteHint, inspectStartupStagedText, QUEUED_PLACEHOLDER, startupSubmissionEvidence } from "./startup-submission-evidence.js";
|
|
8
10
|
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";
|
|
9
11
|
export { inspectStartupStagedText } from "./startup-submission-evidence.js";
|
|
10
|
-
import { OutboxHandler } from "./outbox-handler.js";
|
|
12
|
+
import { OutboxHandler, OutboxHandlerError } from "./outbox-handler.js";
|
|
11
13
|
import { DraftAwareDelivery } from "./draft-aware-delivery.js";
|
|
12
14
|
import { communityHarnessOf } from "./built-in-runtimes.js";
|
|
13
15
|
import { claudeResumeRotation, sessionCommunityHarnessSelect } from "./session-registry.js";
|
|
@@ -68,6 +70,9 @@ const PROMPT_DRAFT_PATTERNS = [
|
|
|
68
70
|
// Claude's permission-mode footers: default, accept edits, bypass, auto and plan, optionally after a
|
|
69
71
|
// vim-mode marker such as "-- INSERT --" (#808). A suffix such as "· 1 shell" can follow the mode.
|
|
70
72
|
const CLAUDE_MODE_FOOTER = /^(?:-- [A-Z]+ -- )?(?:⏵⏵ (?:accept edits|bypass permissions|auto mode) on\b|⏸ plan mode on\b|\? for shortcuts\b)/;
|
|
73
|
+
// Claude Code wraps its input short of the box (#2429). In its native 2.1.296 wrapped frame (test fixtures/input-box) a
|
|
74
|
+
// 118-column box wraps a 112-column row before a word that would still fit, so its text width there is 112 to 117.
|
|
75
|
+
const CLAUDE_WRAP_SLACK = 6;
|
|
71
76
|
// Sibling pattern identical to CLAUDE_MODE_FOOTER except that it ends in \? for shortcuts$,
|
|
72
77
|
// keeping unframed-composer and selectionLines checks anchored on the default footer (#808).
|
|
73
78
|
const CLAUDE_ANCHORED_MODE_FOOTER = /^(?:-- [A-Z]+ -- )?(?:⏵⏵ (?:accept edits|bypass permissions|auto mode) on\b|⏸ plan mode on\b|\? for shortcuts$)/;
|
|
@@ -121,6 +126,17 @@ function findPatternEvidence(lines, patterns) {
|
|
|
121
126
|
}
|
|
122
127
|
return null;
|
|
123
128
|
}
|
|
129
|
+
/** A numbered choice, with or without the selector a platform draws before it (`❯`, `›`, or ASCII `>` on Windows). */
|
|
130
|
+
const PROMPT_CHOICE_LINE = /^(?:[❯›>]\s*)?\d+\.\s+\S/;
|
|
131
|
+
/** The last permission question with a numbered choice after it, as every native menu draws one. */
|
|
132
|
+
function findPermissionQuestionWithChoices(lines) {
|
|
133
|
+
for (let i = lines.length - 1; i >= 0; i--) {
|
|
134
|
+
if (PERMISSION_PROMPT_PATTERNS.some((pattern) => pattern.test(lines[i]))
|
|
135
|
+
&& lines.slice(i + 1).some((line) => PROMPT_CHOICE_LINE.test(line)))
|
|
136
|
+
return truncateEvidence(lines[i]);
|
|
137
|
+
}
|
|
138
|
+
return null;
|
|
139
|
+
}
|
|
124
140
|
const PI_DIALOG_HINTS = [
|
|
125
141
|
/^↑↓ navigate\s+\S.* select\s+\S.* cancel$/,
|
|
126
142
|
/^\S+ submit\s+\S+ cancel$/,
|
|
@@ -200,6 +216,13 @@ const CLAUDE_STATUS_WARNINGS = [
|
|
|
200
216
|
// After Claude installs an update: "/restart to apply" (a Claude seat, 2026-10-30) or "Restart to apply".
|
|
201
217
|
/^✔ Update installed · (?:\/restart|Restart) to apply$/,
|
|
202
218
|
];
|
|
219
|
+
// Claude can draw noninteractive UI rows after its mode footer. They do not
|
|
220
|
+
// replace the composer and should only be skipped when they match a known row.
|
|
221
|
+
const CLAUDE_STATUS_DECORATIONS = [
|
|
222
|
+
/^\d[\d,]* tokens$/,
|
|
223
|
+
/^current: \d+(?:\.\d+){2} · latest: \d+(?:\.\d+){2} ✔ Update installed · Restart to update$/,
|
|
224
|
+
/^\/rc$/,
|
|
225
|
+
];
|
|
203
226
|
// Current Claude status rows need not end in "thinking)" or show "esc to interrupt".
|
|
204
227
|
// Completed summaries such as "✻ Crunched for 2s" lack the live ellipsis/timer shape.
|
|
205
228
|
// While a hook runs, the timer follows its label: "(running PostToolUse hook · 3m 12s · …)".
|
|
@@ -212,8 +235,13 @@ const CLAUDE_TIMERLESS_STATUS_PATTERN = /^[✶✢✳✻✽·*]\s+\S.*(?:…|\.{3
|
|
|
212
235
|
/** The current Claude footer follows the input frame; earlier examples are history or draft text. */
|
|
213
236
|
function findClaudeFooterIndex(lines) {
|
|
214
237
|
let bar = lines.length - 1;
|
|
215
|
-
while (bar >= 0
|
|
238
|
+
while (bar >= 0) {
|
|
239
|
+
const row = lines[bar].trim();
|
|
240
|
+
if (row && !CLAUDE_STATUS_WARNINGS.some(pattern => pattern.test(row)) &&
|
|
241
|
+
!CLAUDE_STATUS_DECORATIONS.some(pattern => pattern.test(row)))
|
|
242
|
+
break;
|
|
216
243
|
bar--;
|
|
244
|
+
}
|
|
217
245
|
return bar;
|
|
218
246
|
}
|
|
219
247
|
// Claude's task-list rows, the only rows it draws between a live status row and the input box. Its renderer marks pending,
|
|
@@ -284,7 +312,7 @@ function findClaudeComposer(paneContent, options = {}) {
|
|
|
284
312
|
if (CLAUDE_TASK_ROW.test(line) || !CLAUDE_OUTPUT_ROW.test(line))
|
|
285
313
|
outputOnly = false;
|
|
286
314
|
}
|
|
287
|
-
return { text: prompt.slice(indent.length), bar: lines[bar].trim(), framed,
|
|
315
|
+
return { text: prompt.slice(indent.length), bar: lines[bar].trim(), framed, hasTrailingRows: bar < lines.length - 1, supportedWarningFooter, modeFooter, headSeen, liveStatus, outputOnly };
|
|
288
316
|
}
|
|
289
317
|
const unknown = (unknownReason, cursor) => ({ state: "unknown", rows: [], columns: 0, cursorAtEnd: false, collapsedPaste: null, unknownReason, ...(cursor ? { cursor } : {}) });
|
|
290
318
|
const rule = (line) => /^[─━═-]{6,}(?: .+ [─━═-]+)?$/.test(line.trim());
|
|
@@ -395,7 +423,8 @@ export function inspectComposerInput(snapshot, runtime = null, owned) {
|
|
|
395
423
|
}
|
|
396
424
|
if (!valid)
|
|
397
425
|
continue;
|
|
398
|
-
// A suggestion is a
|
|
426
|
+
// A suggestion is a dim suffix beginning at the current cursor: every character drawn is dim, while the spaces
|
|
427
|
+
// between its words may not be, as capture's classifier reads it (#2428).
|
|
399
428
|
// A literal placeholder or text before a moved cursor remains authored input.
|
|
400
429
|
const cursorRow = y - start;
|
|
401
430
|
let ghost;
|
|
@@ -413,7 +442,8 @@ export function inspectComposerInput(snapshot, runtime = null, owned) {
|
|
|
413
442
|
text: row.slice(i === 0 ? cursorOffset : 0),
|
|
414
443
|
faint: styled[y + i].faintCells.slice(prefix + (i === 0 ? cursorOffset : 0), prefix + row.length),
|
|
415
444
|
}));
|
|
416
|
-
|
|
445
|
+
const drawn = (row, dim) => row.faint.some((faint, i) => faint === dim && /\S/.test(row.text[i]));
|
|
446
|
+
if (suffix.some(row => drawn(row, true)) && !suffix.some(row => drawn(row, false))) {
|
|
417
447
|
suggestionRows = suffix.map(row => row.text);
|
|
418
448
|
ghost = { line: y, offset: prefix + cursorOffset, continuationRows: rows.length - cursorRow - 1 };
|
|
419
449
|
rows.splice(cursorRow + 1);
|
|
@@ -439,7 +469,7 @@ export function inspectComposerInput(snapshot, runtime = null, owned) {
|
|
|
439
469
|
const stableFooter = prompt.glyph === "❯" && (CLAUDE_MODE_FOOTER.test(footer) || isClaudePasteHint(footer)) ? "claude-composer" : footer;
|
|
440
470
|
const frame = JSON.stringify([prompt.glyph, prefix, width, stableFooter]);
|
|
441
471
|
const nativeCodex = prompt.glyph !== "❯" && codexFooterSeparator(lines) === end;
|
|
442
|
-
const input = { state: empty ? "empty" : "text", cursor: { ...snapshot.cursor }, suggestionRows, rows: visible, columns: width - prefix - (nativeCodex ? 1 : 0), cursorAtEnd, collapsedPaste: label, frame,
|
|
472
|
+
const input = { state: empty ? "empty" : "text", cursor: { ...snapshot.cursor }, suggestionRows, rows: visible, columns: width - prefix - (nativeCodex ? 1 : 0), ...(prompt.glyph === "❯" ? { wrapSlack: CLAUDE_WRAP_SLACK } : {}), cursorAtEnd, collapsedPaste: label, frame,
|
|
443
473
|
...(ghost ? { ghost } : {}) };
|
|
444
474
|
// A numbered body is allowed only as this operation's exact text in its
|
|
445
475
|
// previously empty composer. A newly observed menu gains no such authority.
|
|
@@ -628,7 +658,15 @@ export function classifyPaneActivity(paneContent, options = {}) {
|
|
|
628
658
|
? lastLine
|
|
629
659
|
: null;
|
|
630
660
|
const oldQuestionEnd = promptScanLines.lastIndexOf(CLAUDE_QUESTION_FOOTER);
|
|
631
|
-
|
|
661
|
+
// Above Claude's complete, empty input box with its mode bar, a permission question counts only with its numbered
|
|
662
|
+
// choices after it, as every native menu draws them: a bare question there is a finished reply quoting one, and
|
|
663
|
+
// refusing on it held wakes until the line scrolled out of the scan. Without that box, or on another runtime, any
|
|
664
|
+
// listed question line counts, as before.
|
|
665
|
+
const emptyClaudeInputBelow = options.runtime === "claude-code" && claudeComposer?.framed === true &&
|
|
666
|
+
CLAUDE_ANCHORED_MODE_FOOTER.test(claudeComposer.bar) && IDLE_PROMPT_PATTERNS.some(pattern => pattern.test(claudeComposer.text));
|
|
667
|
+
const permissionPromptEvidence = emptyClaudeInputBelow
|
|
668
|
+
? findPermissionQuestionWithChoices(promptScanLines)
|
|
669
|
+
: findPatternEvidence(promptScanLines, PERMISSION_PROMPT_PATTERNS);
|
|
632
670
|
// A complete later empty composer with a recognized Claude bar makes the preceding question history.
|
|
633
671
|
// Keep draft handling and selectors without this dialog boundary unchanged.
|
|
634
672
|
const selectionLines = claudeComposer?.framed &&
|
|
@@ -650,7 +688,9 @@ export function classifyPaneActivity(paneContent, options = {}) {
|
|
|
650
688
|
: null;
|
|
651
689
|
// Claude's resume picker types a paste into its search and resumes a card on Enter. A Codex or Pi pane printing one is output.
|
|
652
690
|
const claudePicker = options.runtime === "codex" || options.runtime === "pi" ? null : currentClaudeResumePicker(paneContent);
|
|
653
|
-
const
|
|
691
|
+
const themeMenu = options.runtime === undefined || options.runtime === "claude-code"
|
|
692
|
+
? currentClaudeThemeMenu(paneContent) : null;
|
|
693
|
+
const selectionPromptEvidence = themeMenu ?? claudePicker ?? currentClaudeMcpMenu(paneContent) ?? findCurrentClaudeQuestion(paneContent) ??
|
|
654
694
|
currentComposerSelection ?? (options.currentClaudeDialogueOnly ? null
|
|
655
695
|
: findPatternEvidence(selectionLines, [COMPOSER_SELECTION_SCAN_PATTERN]));
|
|
656
696
|
if (selectionPromptEvidence) {
|
|
@@ -670,7 +710,7 @@ export function classifyPaneActivity(paneContent, options = {}) {
|
|
|
670
710
|
evidence: permissionPromptEvidence,
|
|
671
711
|
};
|
|
672
712
|
}
|
|
673
|
-
if (claudeComposer?.
|
|
713
|
+
if (claudeComposer?.hasTrailingRows && claudeComposer.supportedWarningFooter && PROMPT_DRAFT_PATTERNS.some((pattern) => pattern.test(claudeComposer.text))) {
|
|
674
714
|
return { state: "attention", reason: "prompt_draft", evidence: truncateEvidence(claudeComposer.text) };
|
|
675
715
|
}
|
|
676
716
|
if (claudeComposer?.liveStatus) {
|
|
@@ -684,7 +724,7 @@ export function classifyPaneActivity(paneContent, options = {}) {
|
|
|
684
724
|
const postCompactEmptyBox = options.postCompactTurnBoundary === true && claudeComposer?.framed === true &&
|
|
685
725
|
claudeComposer.modeFooter && claudeComposer.outputOnly && IDLE_PROMPT_PATTERNS.some((pattern) => pattern.test(claudeComposer.text));
|
|
686
726
|
// Unframed status evidence can veto idle, but warnings require a complete input frame to prove it.
|
|
687
|
-
if (claudeComposer && !postCompactEmptyBox && (!claudeComposer.headSeen || (claudeComposer.
|
|
727
|
+
if (claudeComposer && !postCompactEmptyBox && (!claudeComposer.headSeen || (claudeComposer.hasTrailingRows && !claudeComposer.framed))) {
|
|
688
728
|
return { state: "unknown", reason: "no_activity_signal", evidence: truncateEvidence(lastLine) };
|
|
689
729
|
}
|
|
690
730
|
// An empty prompt row is not an empty box: authored text can start on a continuation row.
|
|
@@ -694,9 +734,9 @@ export function classifyPaneActivity(paneContent, options = {}) {
|
|
|
694
734
|
/^\s*❯\s*$/.test(paneContent.split("\n")[inputBox.markerLine - 1])) {
|
|
695
735
|
return { state: "unknown", reason: "no_activity_signal", evidence: truncateEvidence(lastLine) };
|
|
696
736
|
}
|
|
697
|
-
// Below
|
|
737
|
+
// Below recognized status rows, any Claude mode footer completes the frame for an EMPTY composer (#808).
|
|
698
738
|
// Drafts keep the narrower check above: attention is needs_input, a send refusal for other modes.
|
|
699
|
-
if (claudeComposer && (!claudeComposer.
|
|
739
|
+
if (claudeComposer && (!claudeComposer.hasTrailingRows || claudeComposer.modeFooter) &&
|
|
700
740
|
IDLE_PROMPT_PATTERNS.some((pattern) => pattern.test(claudeComposer.text))) {
|
|
701
741
|
return { state: "agent_idle", reason: idleStatusBarLine ? "idle_status_bar" : "idle_prompt",
|
|
702
742
|
evidence: truncateEvidence(idleStatusBarLine ?? claudeComposer.text) };
|
|
@@ -1218,12 +1258,13 @@ function promptAnswerStaged(pane, answer, runtime) {
|
|
|
1218
1258
|
// Codex 0.160 input box: the last prompt line plus indented continuation rows, one blank row, then a footer
|
|
1219
1259
|
// of at most two rows: the `<model> · <~ or /path>` status line, optionally followed by one known hint row.
|
|
1220
1260
|
const CODEX_STATUS_LINE = /^ {2}[^\s·][^·]* · [~/]/;
|
|
1261
|
+
const CODEX_NATIVE_STATUS_LINE = /^ {2}[^\s·][^·]* · [A-Za-z]:[\\/]/;
|
|
1221
1262
|
const CODEX_HINT_ROW = /(?:^|\s)\? for shortcuts(?:\s|$)|⚠ \d+ warnings? · f2 to view\s*$/;
|
|
1222
1263
|
// Codex shows a long paste as this label until it is submitted. Matched on the normalized body.
|
|
1223
1264
|
const CODEX_COLLAPSED_PASTE = /^\[PastedContent\d+chars\]$/;
|
|
1224
1265
|
/** The supported status/path + optional hint footer ends at the visible bottom.
|
|
1225
1266
|
* Share only its boundary: capture's placeholder heuristic is not close authority. */
|
|
1226
|
-
function codexFooterSeparator(lines) {
|
|
1267
|
+
function codexFooterSeparator(lines, allowNativePath = false) {
|
|
1227
1268
|
let last = lines.length - 1;
|
|
1228
1269
|
while (last >= 0 && !lines[last].trim())
|
|
1229
1270
|
last--;
|
|
@@ -1231,7 +1272,7 @@ function codexFooterSeparator(lines) {
|
|
|
1231
1272
|
while (footerStart > 0 && lines[footerStart - 1].trim())
|
|
1232
1273
|
footerStart--;
|
|
1233
1274
|
const footer = lines.slice(footerStart, last + 1);
|
|
1234
|
-
if (last < 0 || footer.length > 2 || !CODEX_STATUS_LINE.test(footer[0])
|
|
1275
|
+
if (last < 0 || footer.length > 2 || !(CODEX_STATUS_LINE.test(footer[0]) || (allowNativePath && CODEX_NATIVE_STATUS_LINE.test(footer[0])))
|
|
1235
1276
|
|| !footer.slice(1).every((row) => CODEX_HINT_ROW.test(row)))
|
|
1236
1277
|
return -1;
|
|
1237
1278
|
const separator = footerStart - 1;
|
|
@@ -1240,9 +1281,9 @@ function codexFooterSeparator(lines) {
|
|
|
1240
1281
|
/** The current Codex input box: its normalized text ("" when empty), its rows as drawn (the prompt glyph removed)
|
|
1241
1282
|
* and where its prompt row is, or null when the layout is not the recognized one (another footer, a selector, no
|
|
1242
1283
|
* blank separator, an older TUI). */
|
|
1243
|
-
function codexInputBox(pane) {
|
|
1284
|
+
function codexInputBox(pane, allowNativePath = false) {
|
|
1244
1285
|
const lines = pane.split("\n");
|
|
1245
|
-
const separator = codexFooterSeparator(lines);
|
|
1286
|
+
const separator = codexFooterSeparator(lines, allowNativePath);
|
|
1246
1287
|
if (separator < 0)
|
|
1247
1288
|
return null;
|
|
1248
1289
|
const promptClass = composerPromptClassForRuntime("codex");
|
|
@@ -1375,6 +1416,41 @@ function codexCurrentSelectionLines(pane) {
|
|
|
1375
1416
|
return null;
|
|
1376
1417
|
return trimPaneLines(box.lines.slice(status).join("\n"));
|
|
1377
1418
|
}
|
|
1419
|
+
/** A working status in the adjacent normal-composer slot, rather than arbitrary pane history. */
|
|
1420
|
+
export function isCodexLiveWorkingFrame(pane) {
|
|
1421
|
+
if (namesAnotherClientVersion(pane, "codex"))
|
|
1422
|
+
return false;
|
|
1423
|
+
const box = codexInputBox(pane, true);
|
|
1424
|
+
if (!box || box.text)
|
|
1425
|
+
return false;
|
|
1426
|
+
let status = box.inputAt - 1;
|
|
1427
|
+
while (status >= 0 && !box.lines[status].trim())
|
|
1428
|
+
status--;
|
|
1429
|
+
return status >= 0 && CODEX_LIVE_WORKING_FRAME_PATTERN.test(box.lines[status]);
|
|
1430
|
+
}
|
|
1431
|
+
/** Read the elapsed counter from a working-looking line above a recognized empty Codex composer.
|
|
1432
|
+
* A single reading may be history; only a later advancing reading is positive activity evidence. */
|
|
1433
|
+
export function codexWorkingElapsed(pane) {
|
|
1434
|
+
if (namesAnotherClientVersion(pane, "codex"))
|
|
1435
|
+
return null;
|
|
1436
|
+
const box = codexInputBox(pane, true);
|
|
1437
|
+
if (!box || box.text)
|
|
1438
|
+
return null;
|
|
1439
|
+
for (let i = box.inputAt - 1; i >= 0; i--) {
|
|
1440
|
+
const line = box.lines[i];
|
|
1441
|
+
if (!CODEX_LIVE_WORKING_FRAME_PATTERN.test(line))
|
|
1442
|
+
continue;
|
|
1443
|
+
const match = line.match(/\(((?:\d+[hms]\s*)+)•\s*esc to interrupt/);
|
|
1444
|
+
if (!match)
|
|
1445
|
+
return null;
|
|
1446
|
+
let seconds = 0;
|
|
1447
|
+
for (const part of match[1].matchAll(/(\d+)([hms])/g)) {
|
|
1448
|
+
seconds += Number(part[1]) * (part[2] === "h" ? 3600 : part[2] === "m" ? 60 : 1);
|
|
1449
|
+
}
|
|
1450
|
+
return seconds;
|
|
1451
|
+
}
|
|
1452
|
+
return null;
|
|
1453
|
+
}
|
|
1378
1454
|
/** Whether a Claude Code frame shows a running turn: `esc to interrupt` in the footer under its input box, or a
|
|
1379
1455
|
* live status row above the box (timer-less rows included): in the two rows above the box's opening rule, where
|
|
1380
1456
|
* Claude Code 2.1.296 draws its status row over a one-row margin whatever the box's height, or as
|
|
@@ -1690,6 +1766,7 @@ function callerCancelled(sessionName) {
|
|
|
1690
1766
|
error: `The request was cancelled before any input started. Nothing was typed into '${sessionName}', and nothing will be.` };
|
|
1691
1767
|
}
|
|
1692
1768
|
export class SessionTransport {
|
|
1769
|
+
contextUsageStore;
|
|
1693
1770
|
db;
|
|
1694
1771
|
guardedDelivery;
|
|
1695
1772
|
rigRepo;
|
|
@@ -1709,6 +1786,7 @@ export class SessionTransport {
|
|
|
1709
1786
|
inFlightReconciliations = new Map();
|
|
1710
1787
|
verifyInputBox;
|
|
1711
1788
|
constructor(deps) {
|
|
1789
|
+
this.contextUsageStore = deps.contextUsageStore;
|
|
1712
1790
|
this.db = deps.db;
|
|
1713
1791
|
this.rigRepo = deps.rigRepo;
|
|
1714
1792
|
this.sessionRegistry = deps.sessionRegistry;
|
|
@@ -2077,6 +2155,95 @@ export class SessionTransport {
|
|
|
2077
2155
|
return { ...result, urgent: opts.urgent };
|
|
2078
2156
|
}
|
|
2079
2157
|
async sendClassified(sessionName, text, opts) {
|
|
2158
|
+
// Ordinary sends without an input ID have no stored constraint to hydrate.
|
|
2159
|
+
if (!opts?.expectedIdentity && !opts?.deliveryId && !opts?.committedOutboxIds?.length)
|
|
2160
|
+
return this.sendClassifiedInput(sessionName, text, opts);
|
|
2161
|
+
// The constraint belongs to the durable input, including later committed dispatch and ID reuse.
|
|
2162
|
+
const outbox = new OutboxHandler(this.db);
|
|
2163
|
+
let ids = opts?.committedOutboxIds ?? (opts?.deliveryId ? [opts.deliveryId] : []);
|
|
2164
|
+
let admitted = false;
|
|
2165
|
+
try {
|
|
2166
|
+
let expected = opts?.expectedIdentity ? expectedConversation(opts.expectedIdentity) : undefined;
|
|
2167
|
+
for (const id of ids) {
|
|
2168
|
+
const saved = outbox.expectedIdentity(id);
|
|
2169
|
+
if (!saved)
|
|
2170
|
+
continue;
|
|
2171
|
+
const bound = expectedConversation(saved);
|
|
2172
|
+
if (expected && !sameConversation(expected, bound))
|
|
2173
|
+
throw new DeliveryGuardError("delivery_identity_conflict", "This input ID is bound to another original conversation.");
|
|
2174
|
+
expected = bound;
|
|
2175
|
+
}
|
|
2176
|
+
if (!expected)
|
|
2177
|
+
return this.sendClassifiedInput(sessionName, text, opts);
|
|
2178
|
+
if (sessionName !== expected.sessionName)
|
|
2179
|
+
throw new DeliveryGuardError("expected_identity_mismatch", "The destination must be the expected canonical session.");
|
|
2180
|
+
if (!ids.length)
|
|
2181
|
+
ids = [`expected-send-${randomUUID()}`];
|
|
2182
|
+
this.db.transaction(() => {
|
|
2183
|
+
for (const id of ids) {
|
|
2184
|
+
const prior = opts?.committedOutboxIds ? outbox.getById(id) : null;
|
|
2185
|
+
if (opts?.committedOutboxIds && !prior)
|
|
2186
|
+
throw new DeliveryGuardError("delivery_identity_conflict", "Committed input ID is missing.");
|
|
2187
|
+
outbox.bindExpectedIdentity(prior ? { ...prior, outboxId: id, tags: prior.tags ?? undefined, auditPointer: prior.auditPointer ?? undefined } : {
|
|
2188
|
+
outboxId: id, senderSession: opts?.actorSession ?? "unknown", destinationSession: sessionName, body: text,
|
|
2189
|
+
identityProvenance: opts?.identityProvenance, identityPrincipal: opts?.identityPrincipal,
|
|
2190
|
+
}, expected);
|
|
2191
|
+
}
|
|
2192
|
+
})();
|
|
2193
|
+
admitted = true;
|
|
2194
|
+
await resolveExpectedConversation(expected, this.sessionRegistry, this.tmuxAdapter, this.contextUsageStore);
|
|
2195
|
+
const result = await this.sendClassifiedInput(sessionName, text, { ...opts, expectedIdentity: expected,
|
|
2196
|
+
...(opts?.committedOutboxIds ? {} : { deliveryId: ids[0] }) });
|
|
2197
|
+
if (result.outcome !== "retained") {
|
|
2198
|
+
try {
|
|
2199
|
+
for (const id of ids) {
|
|
2200
|
+
if (result.ok) {
|
|
2201
|
+
if (result.outcome === "rendered-unconfirmed" || (opts?.verify && result.verified !== true))
|
|
2202
|
+
outbox.markIndeterminate(id);
|
|
2203
|
+
else
|
|
2204
|
+
outbox.markDelivered(id);
|
|
2205
|
+
}
|
|
2206
|
+
else if (result.inputPhase === "attempted" || result.inputPhase === "written")
|
|
2207
|
+
outbox.markIndeterminate(id);
|
|
2208
|
+
else if (result.sent === false || result.inputPhase === "not_reached")
|
|
2209
|
+
outbox.markFailed(id);
|
|
2210
|
+
else
|
|
2211
|
+
outbox.markIndeterminate(id);
|
|
2212
|
+
}
|
|
2213
|
+
}
|
|
2214
|
+
catch {
|
|
2215
|
+
result.warning = [result.warning, "Conditional input receipt could not be finalized; inspect before retrying."].filter(Boolean).join(" ");
|
|
2216
|
+
}
|
|
2217
|
+
}
|
|
2218
|
+
return { ...result, identityContract: 1, outboxIds: result.outboxIds ?? ids };
|
|
2219
|
+
}
|
|
2220
|
+
catch (error) {
|
|
2221
|
+
// Before-input conditional failures never fall back to an ordinary send.
|
|
2222
|
+
const written = error.inputWritten;
|
|
2223
|
+
const attempted = error.inputAttempted;
|
|
2224
|
+
let receiptUnconfirmed = false;
|
|
2225
|
+
if (admitted)
|
|
2226
|
+
for (const id of ids) {
|
|
2227
|
+
try {
|
|
2228
|
+
if (outbox.getById(id)) {
|
|
2229
|
+
if (written || attempted)
|
|
2230
|
+
outbox.markIndeterminate(id);
|
|
2231
|
+
else
|
|
2232
|
+
outbox.markFailed(id);
|
|
2233
|
+
}
|
|
2234
|
+
}
|
|
2235
|
+
catch {
|
|
2236
|
+
receiptUnconfirmed = true;
|
|
2237
|
+
}
|
|
2238
|
+
}
|
|
2239
|
+
return { ok: false, sessionName, identityContract: 1, outboxIds: ids,
|
|
2240
|
+
sent: written ? true : attempted ? undefined : false,
|
|
2241
|
+
inputPhase: written ? "written" : attempted ? "attempted" : "not_reached",
|
|
2242
|
+
reason: error.code ?? "expected_identity_unavailable", error: error.message,
|
|
2243
|
+
...(receiptUnconfirmed ? { warning: "Conditional input receipt could not be finalized; inspect before retrying." } : {}) };
|
|
2244
|
+
}
|
|
2245
|
+
}
|
|
2246
|
+
async sendClassifiedInput(sessionName, text, opts) {
|
|
2080
2247
|
const guard = this.tmuxAdapter.deliveryGuard;
|
|
2081
2248
|
const admission = { source: opts?.openrigNotice ? "openrig" : "agent", urgent: !!opts?.urgent, override: opts?.dangerouslyInteract === true };
|
|
2082
2249
|
if (!guard) {
|
|
@@ -2153,7 +2320,7 @@ export class SessionTransport {
|
|
|
2153
2320
|
if (this.guardedDelivery && !memberOpts?.submitOnly && !memberOpts?.dangerouslyInteract && guard.needsInputCheck(sessionName)) {
|
|
2154
2321
|
if (callerSignal(memberOpts)?.aborted)
|
|
2155
2322
|
return callerCancelled(sessionName);
|
|
2156
|
-
return this.guardedDelivery.send(sessionName, memberText, memberOpts ?? {}, memberOpts?.committedOutboxIds ?? [`guard-send-${randomUUID()}`]);
|
|
2323
|
+
return this.guardedDelivery.send(sessionName, memberText, memberOpts ?? {}, memberOpts?.committedOutboxIds ?? [memberOpts?.expectedIdentity && memberOpts.deliveryId ? memberOpts.deliveryId : `guard-send-${randomUUID()}`]);
|
|
2157
2324
|
}
|
|
2158
2325
|
return this.sendUnguarded(sessionName, memberText, memberOpts);
|
|
2159
2326
|
}, async (target) => {
|
|
@@ -2211,7 +2378,10 @@ export class SessionTransport {
|
|
|
2211
2378
|
return { ok: false, sessionName, outcome: "failed", inputPhase: "attempted", reason: error.code ?? "delivery_indeterminate",
|
|
2212
2379
|
error: `A text write to '${sessionName}' was issued, but its result was lost: ${error.message}` };
|
|
2213
2380
|
}
|
|
2214
|
-
|
|
2381
|
+
const noInputCode = error instanceof OutboxHandlerError && error.code === "retained_quota_full" ? "retained_quota_full"
|
|
2382
|
+
: error instanceof DeliveryGuardError && error.code === "terminal_seat" ? "terminal_seat" : undefined;
|
|
2383
|
+
return { ok: false, sessionName, sent: false, reason: error.code ?? "guard_unavailable", error: error.message,
|
|
2384
|
+
...(noInputCode ? { noInputCode, inputPhase: "not_reached" } : {}) };
|
|
2215
2385
|
}
|
|
2216
2386
|
}
|
|
2217
2387
|
/**
|
|
@@ -2257,6 +2427,7 @@ export class SessionTransport {
|
|
|
2257
2427
|
sessionName,
|
|
2258
2428
|
reason: "transport_unavailable",
|
|
2259
2429
|
error: `Session '${sessionName}' is attached as an external CLI node. Inbound tmux transport is unavailable for this target.`,
|
|
2430
|
+
sent: false, inputPhase: "not_reached",
|
|
2260
2431
|
} };
|
|
2261
2432
|
}
|
|
2262
2433
|
const runtime = meta.runtime;
|
|
@@ -2268,7 +2439,7 @@ export class SessionTransport {
|
|
|
2268
2439
|
sessionName,
|
|
2269
2440
|
sent: false,
|
|
2270
2441
|
reason: "target_runtime_unverified",
|
|
2271
|
-
error: `Refused: '${sessionName}' reports ${unverified} as the foreground command, but OpenRig could not verify its expected ${runtime} agent in the bound pane. The agent may still be running behind a wrapper. No text was sent.`,
|
|
2442
|
+
error: `Refused: '${sessionName}' reports ${unverified} as the foreground command, but OpenRig could not verify its expected ${runtime} agent in the bound pane. The agent may still be running behind a wrapper. No text was sent. Delivery depends on verifying the bound pane and its input-owning agent; a live process alone is insufficient. Check what is running in the pane with rig capture <session>; if the agent has exited to its shell, start it again before resending.`,
|
|
2272
2443
|
} };
|
|
2273
2444
|
}
|
|
2274
2445
|
}
|
|
@@ -2301,6 +2472,7 @@ export class SessionTransport {
|
|
|
2301
2472
|
sessionName,
|
|
2302
2473
|
reason: "session_missing",
|
|
2303
2474
|
error: `Session '${sessionName}' not found: tmux reports no session with this name. No text was sent. Check available sessions with: rig ps --nodes`,
|
|
2475
|
+
sent: false, inputPhase: "not_reached",
|
|
2304
2476
|
} };
|
|
2305
2477
|
}
|
|
2306
2478
|
if (probe.state === "transport_unavailable") {
|
|
@@ -2309,6 +2481,7 @@ export class SessionTransport {
|
|
|
2309
2481
|
sessionName,
|
|
2310
2482
|
reason: "tmux_unavailable",
|
|
2311
2483
|
error: `The tmux server could not be reached (${probe.cause}). Whether session '${sessionName}' exists was not determined. No text was sent.`,
|
|
2484
|
+
sent: false, inputPhase: "not_reached",
|
|
2312
2485
|
} };
|
|
2313
2486
|
}
|
|
2314
2487
|
}
|
|
@@ -2318,6 +2491,7 @@ export class SessionTransport {
|
|
|
2318
2491
|
sessionName,
|
|
2319
2492
|
reason: "tmux_unavailable",
|
|
2320
2493
|
error: `The tmux session probe failed unexpectedly (${err instanceof Error ? err.message : String(err)}). Whether session '${sessionName}' exists was not determined. No text was sent.`,
|
|
2494
|
+
sent: false, inputPhase: "not_reached",
|
|
2321
2495
|
} };
|
|
2322
2496
|
}
|
|
2323
2497
|
const deadlineAt = Date.now() + timeoutMs;
|
|
@@ -2351,6 +2525,13 @@ export class SessionTransport {
|
|
|
2351
2525
|
sessionName = physicalSessionName(this.db, sessionName);
|
|
2352
2526
|
let preVerifyContent = null;
|
|
2353
2527
|
const sessionMeta = this.getSessionMeta(sessionName);
|
|
2528
|
+
let checkedIdentity;
|
|
2529
|
+
let originalCheck;
|
|
2530
|
+
const checkOriginal = opts?.expectedIdentity ? async () => {
|
|
2531
|
+
originalCheck = await resolveExpectedConversation(opts.expectedIdentity, this.sessionRegistry, this.tmuxAdapter, this.contextUsageStore);
|
|
2532
|
+
checkedIdentity = originalCheck.identity;
|
|
2533
|
+
} : undefined;
|
|
2534
|
+
const beforeOriginalInput = () => { originalCheck?.assertCurrent(); opts?.beforeWrite?.(); };
|
|
2354
2535
|
const runtime = sessionMeta.runtime;
|
|
2355
2536
|
const readTarget = sessionMeta.pane ?? sessionName;
|
|
2356
2537
|
let runtimeAdvisory;
|
|
@@ -2410,6 +2591,8 @@ export class SessionTransport {
|
|
|
2410
2591
|
let existingInput;
|
|
2411
2592
|
let overrideBeforePaste;
|
|
2412
2593
|
const observe = (result) => {
|
|
2594
|
+
if (checkedIdentity)
|
|
2595
|
+
result = { ...result, checkedIdentity, identityContract: 1 };
|
|
2413
2596
|
if (existingInput)
|
|
2414
2597
|
result = { ...result, existingInput };
|
|
2415
2598
|
if (result.ok && runtimeAdvisory)
|
|
@@ -2438,6 +2621,7 @@ export class SessionTransport {
|
|
|
2438
2621
|
sessionName,
|
|
2439
2622
|
reason: "transport_unavailable",
|
|
2440
2623
|
error: `Session '${sessionName}' is attached as an external CLI node. Inbound tmux transport is unavailable for this target.`,
|
|
2624
|
+
sent: false, inputPhase: "not_reached",
|
|
2441
2625
|
};
|
|
2442
2626
|
}
|
|
2443
2627
|
// #142 — a shell label may be an idle shell or a managed launch wrapper.
|
|
@@ -2451,7 +2635,7 @@ export class SessionTransport {
|
|
|
2451
2635
|
sessionName,
|
|
2452
2636
|
sent: false,
|
|
2453
2637
|
reason: "target_runtime_unverified",
|
|
2454
|
-
error: `Refused: '${sessionName}' reports ${unverifiedShell} as the foreground command, but OpenRig could not verify its expected ${runtime} agent in the bound pane. The agent may still be running behind a wrapper. No text was sent.`,
|
|
2638
|
+
error: `Refused: '${sessionName}' reports ${unverifiedShell} as the foreground command, but OpenRig could not verify its expected ${runtime} agent in the bound pane. The agent may still be running behind a wrapper. No text was sent. Delivery depends on verifying the bound pane and its input-owning agent; a live process alone is insufficient. Check what is running in the pane with rig capture <session>; if the agent has exited to its shell, start it again before resending.`,
|
|
2455
2639
|
});
|
|
2456
2640
|
}
|
|
2457
2641
|
if (waitForIdleMs !== undefined) {
|
|
@@ -2488,6 +2672,7 @@ export class SessionTransport {
|
|
|
2488
2672
|
sessionName,
|
|
2489
2673
|
reason: "session_missing",
|
|
2490
2674
|
error: `Session '${sessionName}' not found: tmux reports no session with this name. No text was sent. Check available sessions with: rig ps --nodes`,
|
|
2675
|
+
sent: false, inputPhase: "not_reached",
|
|
2491
2676
|
};
|
|
2492
2677
|
}
|
|
2493
2678
|
if (probe.state === "transport_unavailable") {
|
|
@@ -2496,6 +2681,7 @@ export class SessionTransport {
|
|
|
2496
2681
|
sessionName,
|
|
2497
2682
|
reason: "tmux_unavailable",
|
|
2498
2683
|
error: `The tmux server could not be reached (${probe.cause}). Whether session '${sessionName}' exists was not determined. No text was sent.`,
|
|
2684
|
+
sent: false, inputPhase: "not_reached",
|
|
2499
2685
|
};
|
|
2500
2686
|
}
|
|
2501
2687
|
}
|
|
@@ -2505,6 +2691,7 @@ export class SessionTransport {
|
|
|
2505
2691
|
sessionName,
|
|
2506
2692
|
reason: "tmux_unavailable",
|
|
2507
2693
|
error: `The tmux session probe failed unexpectedly (${err instanceof Error ? err.message : String(err)}). Whether session '${sessionName}' exists was not determined. No text was sent.`,
|
|
2694
|
+
sent: false, inputPhase: "not_reached",
|
|
2508
2695
|
};
|
|
2509
2696
|
}
|
|
2510
2697
|
// SUBMIT-ONLY (mechanics-gate fix, desk ruling d9b3989a): the single Enter retry for staged
|
|
@@ -2565,19 +2752,29 @@ export class SessionTransport {
|
|
|
2565
2752
|
const beforeKey = cancel ? () => { if (cancel.aborted)
|
|
2566
2753
|
throw new DeliveryGuardError(CALLER_CANCELLED, "caller cancelled before the key"); } : undefined;
|
|
2567
2754
|
let submitResult;
|
|
2755
|
+
let enterIssued = false;
|
|
2568
2756
|
try {
|
|
2569
|
-
submitResult = await this.runStage("session_transport.submit", () =>
|
|
2757
|
+
submitResult = await this.runStage("session_transport.submit", () => this.tmuxAdapter.sendKeys(sessionName, ["Enter"], () => {
|
|
2758
|
+
if (checkOriginal)
|
|
2759
|
+
beforeOriginalInput();
|
|
2760
|
+
beforeKey?.();
|
|
2761
|
+
enterIssued = true;
|
|
2762
|
+
}, checkOriginal ? { beforeKeys: checkOriginal } : undefined), (result) => result.ok ? "ok" : "failed");
|
|
2570
2763
|
}
|
|
2571
2764
|
catch (error) {
|
|
2572
2765
|
// Unguarded, the adapter's pre-key check throws instead of returning a result; no key was sent.
|
|
2573
|
-
if (error instanceof DeliveryGuardError && error.code === CALLER_CANCELLED && cancel?.aborted)
|
|
2766
|
+
if (!enterIssued && error instanceof DeliveryGuardError && error.code === CALLER_CANCELLED && cancel?.aborted)
|
|
2574
2767
|
return callerCancelled(sessionName);
|
|
2768
|
+
if (enterIssued && error && typeof error === "object")
|
|
2769
|
+
Object.assign(error, { inputAttempted: true });
|
|
2575
2770
|
throw error;
|
|
2576
2771
|
}
|
|
2577
|
-
if (!submitResult.ok && submitResult.code === CALLER_CANCELLED && cancel?.aborted)
|
|
2772
|
+
if (!submitResult.ok && !enterIssued && submitResult.code === CALLER_CANCELLED && cancel?.aborted)
|
|
2578
2773
|
return callerCancelled(sessionName);
|
|
2579
2774
|
if (!submitResult.ok) {
|
|
2580
|
-
return { ok: false, sessionName,
|
|
2775
|
+
return { ok: false, sessionName, inputPhase: enterIssued ? "attempted" : "not_reached", ...(!enterIssued ? { sent: false } : {}), reason: submitResult.code?.startsWith("expected_identity_") ? submitResult.code : "submit_failed", outcome: "failed", error: enterIssued
|
|
2776
|
+
? `submitOnly: Enter reported a failure for '${sessionName}'; submission is unconfirmed: ${submitResult.message}`
|
|
2777
|
+
: `submitOnly: Enter was not sent to '${sessionName}': ${submitResult.message}` };
|
|
2581
2778
|
}
|
|
2582
2779
|
try {
|
|
2583
2780
|
opts.onInputEffect?.("submitted");
|
|
@@ -2799,6 +2996,7 @@ export class SessionTransport {
|
|
|
2799
2996
|
ok: false,
|
|
2800
2997
|
sessionName,
|
|
2801
2998
|
reason: "target_needs_input",
|
|
2999
|
+
sent: false, inputPhase: "not_reached",
|
|
2802
3000
|
activity: readiness,
|
|
2803
3001
|
error: `Refused: '${sessionName}' is at an interactive prompt (${readiness.reason}). A message must not select or approve it. To deliberately drive the prompt: rig send ${sessionName} "<text>" --dangerously-interact --reason "<why>".${clearAttentionHint(sessionName, readiness.reason)} No text was sent.`,
|
|
2804
3002
|
};
|
|
@@ -2879,8 +3077,11 @@ export class SessionTransport {
|
|
|
2879
3077
|
const beforePaste = cancel ? () => { opts?.beforeWrite?.(); if (cancel.aborted)
|
|
2880
3078
|
throw new DeliveryGuardError(CALLER_CANCELLED, "caller cancelled before the paste"); } : opts?.beforeWrite;
|
|
2881
3079
|
const preserveInput = opts?.preserveInput ? async () => {
|
|
2882
|
-
const
|
|
2883
|
-
?
|
|
3080
|
+
const readBox = async () => runtime === "claude-code" || runtime === "codex"
|
|
3081
|
+
? this.captureInputBox(readTarget, runtime, { remainingMs: INPUT_BOX_READ_DEADLINE_MS }) : null;
|
|
3082
|
+
const box = opts?.readinessFromPaneOnly && runtime === "claude-code"
|
|
3083
|
+
? (await this.readAtReadableSize(sessionName, { width: 120, height: 40 }, { remainingMs: CAPTURE_READABLE_BUDGET_MS }, readBox)).value
|
|
3084
|
+
: await readBox();
|
|
2884
3085
|
if (bindingChanged())
|
|
2885
3086
|
throw new DeliveryGuardError("draft_input_changed", "The managed input target changed; no input was written.");
|
|
2886
3087
|
if (box?.status !== "empty" && !(box?.status === "likely-suggestion" && box.confidence === "high")) {
|
|
@@ -2897,6 +3098,11 @@ export class SessionTransport {
|
|
|
2897
3098
|
const textResult = await this.runStage("session_transport.send_text", () => {
|
|
2898
3099
|
opts?.beforeWrite?.();
|
|
2899
3100
|
writeIssued = true;
|
|
3101
|
+
if (checkOriginal)
|
|
3102
|
+
return this.tmuxAdapter.sendText(sessionName, text, () => { beforeOriginalInput(); beforePaste?.(); }, {
|
|
3103
|
+
...(promptOverride ? { bracketed: false } : {}), beforePaste: async () => { await overrideBeforePaste?.(); await checkOriginal(); if (preserveInput)
|
|
3104
|
+
await preserveInput(); },
|
|
3105
|
+
});
|
|
2900
3106
|
if (promptOverride)
|
|
2901
3107
|
return this.tmuxAdapter.sendText(sessionName, text, beforePaste, { bracketed: false,
|
|
2902
3108
|
beforePaste: preserveInput ? async () => { await overrideBeforePaste?.(); await preserveInput(); } : overrideBeforePaste });
|
|
@@ -2909,7 +3115,7 @@ export class SessionTransport {
|
|
|
2909
3115
|
}
|
|
2910
3116
|
if (!textResult.ok) {
|
|
2911
3117
|
// A draft refusal is the guard holding the write before any input; it is not an attempted write.
|
|
2912
|
-
const policyRefusal = typeof textResult.code === "string" && (textResult.code.startsWith("draft_") || textResult.code.startsWith("override_input_") || textResult.code === "managed_compaction_pending");
|
|
3118
|
+
const policyRefusal = typeof textResult.code === "string" && (textResult.code.startsWith("expected_identity_") || textResult.code.startsWith("draft_") || textResult.code.startsWith("override_input_") || textResult.code === "managed_compaction_pending");
|
|
2913
3119
|
return observe({
|
|
2914
3120
|
ok: false,
|
|
2915
3121
|
sessionName,
|
|
@@ -2958,9 +3164,15 @@ export class SessionTransport {
|
|
|
2958
3164
|
sendAdvisory = [sendAdvisory, "prompt-override: answer sent as unbracketed input; Enter submitted the complete still-staged answer."].filter(Boolean).join(" ");
|
|
2959
3165
|
}
|
|
2960
3166
|
// 5. Submit (Enter)
|
|
2961
|
-
submitResult = await this.runStage("session_transport.submit", () => {
|
|
3167
|
+
submitResult = await this.runStage("session_transport.submit", () => {
|
|
3168
|
+
if (checkOriginal)
|
|
3169
|
+
return this.tmuxAdapter.sendKeys(sessionName, ["Enter"], () => { beforeOriginalInput(); enterIssued = true; }, { beforeKeys: checkOriginal });
|
|
3170
|
+
opts?.beforeWrite?.();
|
|
3171
|
+
enterIssued = true;
|
|
3172
|
+
return opts?.beforeWrite ? this.tmuxAdapter.sendKeys(sessionName, ["Enter"], opts.beforeWrite) : this.tmuxAdapter.sendKeys(sessionName, ["Enter"]);
|
|
3173
|
+
}, (result) => result.ok ? "ok" : "failed");
|
|
2962
3174
|
if (!submitResult.ok) {
|
|
2963
|
-
const policyRefusal = typeof submitResult.code === "string" && (submitResult.code.startsWith("draft_") || submitResult.code === "managed_compaction_pending");
|
|
3175
|
+
const policyRefusal = typeof submitResult.code === "string" && (submitResult.code.startsWith("expected_identity_") || submitResult.code.startsWith("draft_") || submitResult.code === "managed_compaction_pending");
|
|
2964
3176
|
return observe({
|
|
2965
3177
|
ok: false,
|
|
2966
3178
|
sessionName,
|
|
@@ -3345,7 +3557,7 @@ export class SessionTransport {
|
|
|
3345
3557
|
return hookActivity;
|
|
3346
3558
|
}
|
|
3347
3559
|
}
|
|
3348
|
-
const
|
|
3560
|
+
const readPane = () => probeSessionActivity({
|
|
3349
3561
|
communityHarness, communityHarnessSendProbe: true,
|
|
3350
3562
|
composerSnapshot,
|
|
3351
3563
|
sessionName: input.sessionName,
|
|
@@ -3359,6 +3571,10 @@ export class SessionTransport {
|
|
|
3359
3571
|
timerlessStatusIsLive: input.readinessFromPaneOnly === true,
|
|
3360
3572
|
postCompactTurnBoundary: input.postCompactTurnBoundary === true,
|
|
3361
3573
|
});
|
|
3574
|
+
// Managed compaction must read a tiled Claude pane at the same size as a readable capture.
|
|
3575
|
+
const probe = input.readinessFromPaneOnly && input.runtime === "claude-code"
|
|
3576
|
+
? (await this.readAtReadableSize(input.sessionName, { width: 120, height: 40 }, { remainingMs: CAPTURE_READABLE_BUDGET_MS }, readPane)).value
|
|
3577
|
+
: await readPane();
|
|
3362
3578
|
// A Codex empty-composer placeholder is also on screen while Codex streams with its status
|
|
3363
3579
|
// row hidden, so a placeholder-only idle verdict must not override a display-fresh (<5min)
|
|
3364
3580
|
// running/needs_input hook such as UserPromptSubmit: keep it until it ages out. An `unknown`
|