@openrig/cli 0.7.0 → 0.7.2
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 +9 -8
- package/daemon/assets/claude-statusline-context.cjs +13 -3
- package/daemon/assets/guidance/openrig-seat-skills.md +1 -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/hooks/claude.json +11 -11
- package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +9 -8
- package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus-health.cjs +2 -2
- package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus.cjs +9 -6
- package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/precompact-hook.mjs +1 -1
- package/daemon/assets/plugins/openrig-core/skills/delegating-work/SKILL.md +1 -1
- package/daemon/assets/plugins/openrig-core/skills/forming-an-openrig-mental-model/SKILL.md +13 -8
- package/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md +19 -4
- package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +254 -52
- package/daemon/assets/skills/rigs/SKILL.md +42 -10
- package/daemon/context-packs/help/help.md +6 -0
- package/daemon/context-packs/help/manifest.yaml +1 -1
- package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
- package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +271 -38
- package/daemon/context-packs/reference/acp-agents.md +77 -0
- package/daemon/context-packs/reference/getting-started.md +145 -14
- package/daemon/context-packs/reference/manifest.yaml +6 -3
- package/daemon/context-packs/reference/rig-spec.md +175 -5
- package/daemon/context-packs/reference/whats-new.md +275 -113
- 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/claude-compaction-restore/scripts/precompact-hook.mjs +1 -1
- package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/messaging-the-human/SKILL.md +19 -4
- 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/SKILL.md +18 -3
- 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-software-factory/references/worked-example.md +2 -2
- package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
- package/daemon/context-packs/skills/delegating-work/SKILL.md +1 -1
- package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
- package/daemon/context-packs/skills/forming-an-openrig-mental-model/SKILL.md +13 -8
- package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
- package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-user/SKILL.md +254 -52
- 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/LICENSE.txt +201 -0
- package/daemon/context-packs/skills/process/agent-browser/OPENRIG.md +13 -29
- package/daemon/context-packs/skills/process/agent-browser/SKILL.md +7 -7
- package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +3 -1
- package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/dogfood/LICENSE.txt +201 -0
- package/daemon/context-packs/skills/process/dogfood/SKILL.md +6 -2
- package/daemon/context-packs/skills/process/dogfood/manifest.yaml +3 -1
- package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/systematic-debugging/LICENSE.txt +21 -0
- package/daemon/context-packs/skills/process/systematic-debugging/SKILL.md +6 -2
- package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +3 -1
- package/daemon/context-packs/skills/process/test-driven-development/LICENSE.txt +21 -0
- package/daemon/context-packs/skills/process/test-driven-development/SKILL.md +5 -1
- package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +3 -1
- package/daemon/context-packs/skills/process/verification-before-completion/LICENSE.txt +21 -0
- package/daemon/context-packs/skills/process/verification-before-completion/SKILL.md +5 -1
- package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +3 -1
- package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
- package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
- package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
- package/daemon/context-packs/skills/session-compaction-and-restore/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 +4 -0
- package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +138 -41
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts +9 -1
- package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume.js +37 -11
- package/daemon/dist/adapters/claude-resume.js.map +1 -1
- package/daemon/dist/adapters/codex-resume.d.ts +10 -4
- package/daemon/dist/adapters/codex-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-resume.js +59 -14
- package/daemon/dist/adapters/codex-resume.js.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts +54 -16
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js +664 -117
- package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts +25 -2
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.js +122 -9
- package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/compose-services-adapter.d.ts +16 -0
- package/daemon/dist/adapters/compose-services-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/compose-services-adapter.js +46 -2
- package/daemon/dist/adapters/compose-services-adapter.js.map +1 -1
- package/daemon/dist/adapters/kernel-authority.d.ts +1 -1
- package/daemon/dist/adapters/kernel-authority.d.ts.map +1 -1
- package/daemon/dist/adapters/kernel-authority.js +13 -2
- package/daemon/dist/adapters/kernel-authority.js.map +1 -1
- package/daemon/dist/adapters/pi-runner.d.ts +11 -0
- package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner.js +81 -31
- package/daemon/dist/adapters/pi-runner.js.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.js +9 -6
- package/daemon/dist/adapters/pi-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/stub-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/stub-runtime-adapter.js +9 -5
- package/daemon/dist/adapters/stub-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/tmux-server.d.ts +3 -0
- package/daemon/dist/adapters/tmux-server.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-server.js +11 -2
- package/daemon/dist/adapters/tmux-server.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +53 -4
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +225 -40
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/adapters/yolo-mode.d.ts +7 -0
- package/daemon/dist/adapters/yolo-mode.d.ts.map +1 -1
- package/daemon/dist/adapters/yolo-mode.js +8 -0
- package/daemon/dist/adapters/yolo-mode.js.map +1 -1
- package/daemon/dist/attention-surface.d.ts +14 -0
- package/daemon/dist/attention-surface.d.ts.map +1 -1
- package/daemon/dist/attention-surface.js.map +1 -1
- package/daemon/dist/build-info.js +3 -3
- package/daemon/dist/codex-auth-surface.d.ts +2 -0
- package/daemon/dist/codex-auth-surface.d.ts.map +1 -0
- package/daemon/dist/codex-auth-surface.js +2 -0
- package/daemon/dist/codex-auth-surface.js.map +1 -0
- package/daemon/dist/daemon-db-path.d.ts +6 -0
- package/daemon/dist/daemon-db-path.d.ts.map +1 -1
- package/daemon/dist/daemon-db-path.js +98 -1
- package/daemon/dist/daemon-db-path.js.map +1 -1
- package/daemon/dist/daemon-shutdown.d.ts.map +1 -1
- package/daemon/dist/daemon-shutdown.js +4 -2
- package/daemon/dist/daemon-shutdown.js.map +1 -1
- package/daemon/dist/db/all-migrations.d.ts.map +1 -1
- package/daemon/dist/db/all-migrations.js +28 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrations/124_context_usage_watchdog_units.d.ts +4 -0
- package/daemon/dist/db/migrations/124_context_usage_watchdog_units.d.ts.map +1 -0
- package/daemon/dist/db/migrations/124_context_usage_watchdog_units.js +9 -0
- package/daemon/dist/db/migrations/124_context_usage_watchdog_units.js.map +1 -0
- package/daemon/dist/db/migrations/125_node_advisor.d.ts +3 -0
- package/daemon/dist/db/migrations/125_node_advisor.d.ts.map +1 -0
- package/daemon/dist/db/migrations/125_node_advisor.js +8 -0
- package/daemon/dist/db/migrations/125_node_advisor.js.map +1 -0
- package/daemon/dist/db/migrations/127_operation_correlation.d.ts +3 -0
- package/daemon/dist/db/migrations/127_operation_correlation.d.ts.map +1 -0
- package/daemon/dist/db/migrations/127_operation_correlation.js +10 -0
- package/daemon/dist/db/migrations/127_operation_correlation.js.map +1 -0
- package/daemon/dist/db/migrations/128_terminal_policy.d.ts +3 -0
- package/daemon/dist/db/migrations/128_terminal_policy.d.ts.map +1 -0
- package/daemon/dist/db/migrations/128_terminal_policy.js +37 -0
- package/daemon/dist/db/migrations/128_terminal_policy.js.map +1 -0
- package/daemon/dist/db/migrations/129_stream_dispositions.d.ts +10 -0
- package/daemon/dist/db/migrations/129_stream_dispositions.d.ts.map +1 -0
- package/daemon/dist/db/migrations/129_stream_dispositions.js +35 -0
- package/daemon/dist/db/migrations/129_stream_dispositions.js.map +1 -0
- package/daemon/dist/db/migrations/130_stream_subscriptions.d.ts +11 -0
- package/daemon/dist/db/migrations/130_stream_subscriptions.d.ts.map +1 -0
- package/daemon/dist/db/migrations/130_stream_subscriptions.js +33 -0
- package/daemon/dist/db/migrations/130_stream_subscriptions.js.map +1 -0
- package/daemon/dist/db/migrations/131_stream_retention_floor.d.ts +8 -0
- package/daemon/dist/db/migrations/131_stream_retention_floor.d.ts.map +1 -0
- package/daemon/dist/db/migrations/131_stream_retention_floor.js +20 -0
- package/daemon/dist/db/migrations/131_stream_retention_floor.js.map +1 -0
- package/daemon/dist/db/migrations/132_seat_runtime_switches.d.ts +10 -0
- package/daemon/dist/db/migrations/132_seat_runtime_switches.d.ts.map +1 -0
- package/daemon/dist/db/migrations/132_seat_runtime_switches.js +46 -0
- package/daemon/dist/db/migrations/132_seat_runtime_switches.js.map +1 -0
- package/daemon/dist/db/migrations/133_stream_reader_actions.d.ts +8 -0
- package/daemon/dist/db/migrations/133_stream_reader_actions.d.ts.map +1 -0
- package/daemon/dist/db/migrations/133_stream_reader_actions.js +25 -0
- package/daemon/dist/db/migrations/133_stream_reader_actions.js.map +1 -0
- package/daemon/dist/db/migrations/134_claude_token_readings.d.ts +3 -0
- package/daemon/dist/db/migrations/134_claude_token_readings.d.ts.map +1 -0
- package/daemon/dist/db/migrations/134_claude_token_readings.js +21 -0
- package/daemon/dist/db/migrations/134_claude_token_readings.js.map +1 -0
- package/daemon/dist/db/migrations/135_seat_identity_process_evidence.d.ts +3 -0
- package/daemon/dist/db/migrations/135_seat_identity_process_evidence.d.ts.map +1 -0
- package/daemon/dist/db/migrations/135_seat_identity_process_evidence.js +16 -0
- package/daemon/dist/db/migrations/135_seat_identity_process_evidence.js.map +1 -0
- package/daemon/dist/db/migrations/136_node_launch_recipe.d.ts +9 -0
- package/daemon/dist/db/migrations/136_node_launch_recipe.d.ts.map +1 -0
- package/daemon/dist/db/migrations/136_node_launch_recipe.js +11 -0
- package/daemon/dist/db/migrations/136_node_launch_recipe.js.map +1 -0
- package/daemon/dist/db/migrations/138_node_claude_token_ref.d.ts +3 -0
- package/daemon/dist/db/migrations/138_node_claude_token_ref.d.ts.map +1 -0
- package/daemon/dist/db/migrations/138_node_claude_token_ref.js +8 -0
- package/daemon/dist/db/migrations/138_node_claude_token_ref.js.map +1 -0
- package/daemon/dist/db/migrations/139_node_claude_permissions.d.ts +3 -0
- package/daemon/dist/db/migrations/139_node_claude_permissions.d.ts.map +1 -0
- package/daemon/dist/db/migrations/139_node_claude_permissions.js +5 -0
- package/daemon/dist/db/migrations/139_node_claude_permissions.js.map +1 -0
- package/daemon/dist/domain/active-occupant.d.ts +3 -0
- package/daemon/dist/domain/active-occupant.d.ts.map +1 -1
- package/daemon/dist/domain/active-occupant.js +6 -2
- package/daemon/dist/domain/active-occupant.js.map +1 -1
- 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-activity-store.d.ts +6 -2
- package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
- package/daemon/dist/domain/agent-activity-store.js +13 -4
- package/daemon/dist/domain/agent-activity-store.js.map +1 -1
- package/daemon/dist/domain/agent-manifest.d.ts.map +1 -1
- package/daemon/dist/domain/agent-manifest.js +14 -2
- package/daemon/dist/domain/agent-manifest.js.map +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.d.ts +3 -0
- package/daemon/dist/domain/bootstrap-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.js +35 -6
- package/daemon/dist/domain/bootstrap-orchestrator.js.map +1 -1
- package/daemon/dist/domain/builtin-startup-files.d.ts.map +1 -1
- package/daemon/dist/domain/builtin-startup-files.js +2 -0
- package/daemon/dist/domain/builtin-startup-files.js.map +1 -1
- package/daemon/dist/domain/bundle-behaviour.d.ts.map +1 -1
- package/daemon/dist/domain/bundle-behaviour.js +28 -1
- package/daemon/dist/domain/bundle-behaviour.js.map +1 -1
- package/daemon/dist/domain/claim-service.d.ts +19 -1
- package/daemon/dist/domain/claim-service.d.ts.map +1 -1
- package/daemon/dist/domain/claim-service.js +68 -20
- package/daemon/dist/domain/claim-service.js.map +1 -1
- package/daemon/dist/domain/classification-attempts.d.ts +4 -1
- package/daemon/dist/domain/classification-attempts.d.ts.map +1 -1
- package/daemon/dist/domain/classification-attempts.js +10 -1
- package/daemon/dist/domain/classification-attempts.js.map +1 -1
- package/daemon/dist/domain/classification-sources.d.ts +38 -0
- package/daemon/dist/domain/classification-sources.d.ts.map +1 -1
- package/daemon/dist/domain/classification-sources.js +24 -1
- package/daemon/dist/domain/classification-sources.js.map +1 -1
- package/daemon/dist/domain/claude-activity-hooks.d.ts +2 -2
- package/daemon/dist/domain/claude-activity-hooks.d.ts.map +1 -1
- package/daemon/dist/domain/claude-activity-hooks.js +8 -7
- package/daemon/dist/domain/claude-activity-hooks.js.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts +133 -8
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.js +513 -64
- package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
- package/daemon/dist/domain/claude-core-plugin-env.d.ts +4 -1
- package/daemon/dist/domain/claude-core-plugin-env.d.ts.map +1 -1
- package/daemon/dist/domain/claude-core-plugin-env.js +23 -12
- package/daemon/dist/domain/claude-core-plugin-env.js.map +1 -1
- package/daemon/dist/domain/claude-credential-precedence.d.ts +33 -0
- package/daemon/dist/domain/claude-credential-precedence.d.ts.map +1 -0
- package/daemon/dist/domain/claude-credential-precedence.js +62 -0
- package/daemon/dist/domain/claude-credential-precedence.js.map +1 -0
- package/daemon/dist/domain/claude-managed-launch.d.ts +44 -5
- package/daemon/dist/domain/claude-managed-launch.d.ts.map +1 -1
- package/daemon/dist/domain/claude-managed-launch.js +159 -39
- package/daemon/dist/domain/claude-managed-launch.js.map +1 -1
- package/daemon/dist/domain/claude-permission-rules.d.ts +10 -0
- package/daemon/dist/domain/claude-permission-rules.d.ts.map +1 -0
- package/daemon/dist/domain/claude-permission-rules.js +41 -0
- package/daemon/dist/domain/claude-permission-rules.js.map +1 -0
- package/daemon/dist/domain/claude-seat-token.d.ts +30 -0
- package/daemon/dist/domain/claude-seat-token.d.ts.map +1 -0
- package/daemon/dist/domain/claude-seat-token.js +78 -0
- package/daemon/dist/domain/claude-seat-token.js.map +1 -0
- package/daemon/dist/domain/codex-auth.d.ts +148 -0
- package/daemon/dist/domain/codex-auth.d.ts.map +1 -0
- package/daemon/dist/domain/codex-auth.js +506 -0
- package/daemon/dist/domain/codex-auth.js.map +1 -0
- package/daemon/dist/domain/codex-daemon-support.d.ts +2 -1
- package/daemon/dist/domain/codex-daemon-support.d.ts.map +1 -1
- package/daemon/dist/domain/codex-daemon-support.js +3 -2
- package/daemon/dist/domain/codex-daemon-support.js.map +1 -1
- package/daemon/dist/domain/codex-git-add-dirs.d.ts +1 -1
- package/daemon/dist/domain/codex-git-add-dirs.d.ts.map +1 -1
- package/daemon/dist/domain/codex-network-default.d.ts +2 -1
- package/daemon/dist/domain/codex-network-default.d.ts.map +1 -1
- package/daemon/dist/domain/codex-network-default.js +3 -2
- package/daemon/dist/domain/codex-network-default.js.map +1 -1
- package/daemon/dist/domain/codex-owned-plugin-trust.d.ts +26 -0
- package/daemon/dist/domain/codex-owned-plugin-trust.d.ts.map +1 -0
- package/daemon/dist/domain/codex-owned-plugin-trust.js +187 -0
- package/daemon/dist/domain/codex-owned-plugin-trust.js.map +1 -0
- package/daemon/dist/domain/codex-rebuild-permissions.d.ts +54 -0
- package/daemon/dist/domain/codex-rebuild-permissions.d.ts.map +1 -0
- package/daemon/dist/domain/codex-rebuild-permissions.js +134 -0
- package/daemon/dist/domain/codex-rebuild-permissions.js.map +1 -0
- package/daemon/dist/domain/codex-team-workspace.d.ts +5 -0
- package/daemon/dist/domain/codex-team-workspace.d.ts.map +1 -1
- package/daemon/dist/domain/codex-team-workspace.js +37 -0
- package/daemon/dist/domain/codex-team-workspace.js.map +1 -1
- package/daemon/dist/domain/community-harness-first-input.d.ts +7 -0
- package/daemon/dist/domain/community-harness-first-input.d.ts.map +1 -0
- package/daemon/dist/domain/community-harness-first-input.js +16 -0
- package/daemon/dist/domain/community-harness-first-input.js.map +1 -0
- package/daemon/dist/domain/community-harness-launch-result.d.ts +33 -0
- package/daemon/dist/domain/community-harness-launch-result.d.ts.map +1 -0
- package/daemon/dist/domain/community-harness-launch-result.js +93 -0
- package/daemon/dist/domain/community-harness-launch-result.js.map +1 -0
- package/daemon/dist/domain/community-harness-presets.d.ts +29 -2
- package/daemon/dist/domain/community-harness-presets.d.ts.map +1 -1
- package/daemon/dist/domain/community-harness-presets.js +51 -5
- package/daemon/dist/domain/community-harness-presets.js.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts +6 -0
- package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -0
- package/daemon/dist/domain/compaction-restore-notice.js +27 -0
- package/daemon/dist/domain/compaction-restore-notice.js.map +1 -0
- package/daemon/dist/domain/composer-prompts.d.ts +5 -2
- package/daemon/dist/domain/composer-prompts.d.ts.map +1 -1
- package/daemon/dist/domain/composer-prompts.js +2 -2
- package/daemon/dist/domain/composer-prompts.js.map +1 -1
- package/daemon/dist/domain/context-monitor.d.ts.map +1 -1
- package/daemon/dist/domain/context-monitor.js +2 -1
- package/daemon/dist/domain/context-monitor.js.map +1 -1
- package/daemon/dist/domain/context-packs/seat-recap-store.d.ts +14 -0
- package/daemon/dist/domain/context-packs/seat-recap-store.d.ts.map +1 -1
- package/daemon/dist/domain/context-packs/seat-recap-store.js +57 -1
- package/daemon/dist/domain/context-packs/seat-recap-store.js.map +1 -1
- package/daemon/dist/domain/context-usage-store.d.ts.map +1 -1
- package/daemon/dist/domain/context-usage-store.js +6 -1
- package/daemon/dist/domain/context-usage-store.js.map +1 -1
- package/daemon/dist/domain/continuity-policy-materializer.d.ts +1 -0
- package/daemon/dist/domain/continuity-policy-materializer.d.ts.map +1 -1
- package/daemon/dist/domain/continuity-policy-materializer.js +2 -0
- package/daemon/dist/domain/continuity-policy-materializer.js.map +1 -1
- package/daemon/dist/domain/current-work.d.ts +15 -4
- package/daemon/dist/domain/current-work.d.ts.map +1 -1
- package/daemon/dist/domain/current-work.js +26 -13
- package/daemon/dist/domain/current-work.js.map +1 -1
- package/daemon/dist/domain/draft-aware-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/draft-aware-delivery.js +1 -1
- package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
- package/daemon/dist/domain/execution-view.d.ts.map +1 -1
- package/daemon/dist/domain/execution-view.js +12 -8
- package/daemon/dist/domain/execution-view.js.map +1 -1
- package/daemon/dist/domain/footprint-choice.d.ts +41 -0
- package/daemon/dist/domain/footprint-choice.d.ts.map +1 -0
- package/daemon/dist/domain/footprint-choice.js +42 -0
- package/daemon/dist/domain/footprint-choice.js.map +1 -0
- package/daemon/dist/domain/gateway/delivery-rules-engine.d.ts +3 -0
- package/daemon/dist/domain/gateway/delivery-rules-engine.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/delivery-rules-engine.js +1 -1
- package/daemon/dist/domain/gateway/delivery-rules-engine.js.map +1 -1
- package/daemon/dist/domain/gateway/human-registry.d.ts +32 -0
- package/daemon/dist/domain/gateway/human-registry.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/human-registry.js +71 -4
- package/daemon/dist/domain/gateway/human-registry.js.map +1 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.js +3 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.d.ts +1 -0
- package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.js +58 -9
- package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.d.ts +6 -1
- package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.js +15 -6
- package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts +7 -0
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.js +14 -2
- package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +1 -3
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.js +22 -22
- package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js +8 -7
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
- package/daemon/dist/domain/generated-file-hygiene.js +1 -1
- package/daemon/dist/domain/generated-file-hygiene.js.map +1 -1
- package/daemon/dist/domain/graph-projection.d.ts +3 -0
- package/daemon/dist/domain/graph-projection.d.ts.map +1 -1
- package/daemon/dist/domain/graph-projection.js +2 -0
- package/daemon/dist/domain/graph-projection.js.map +1 -1
- package/daemon/dist/domain/health-diagnosis.d.ts.map +1 -1
- package/daemon/dist/domain/health-diagnosis.js +14 -6
- package/daemon/dist/domain/health-diagnosis.js.map +1 -1
- package/daemon/dist/domain/hot-potato-enforcer.d.ts +1 -1
- package/daemon/dist/domain/human-questions.d.ts +2 -0
- package/daemon/dist/domain/human-questions.d.ts.map +1 -1
- package/daemon/dist/domain/human-questions.js +5 -0
- package/daemon/dist/domain/human-questions.js.map +1 -1
- package/daemon/dist/domain/kernel-boot.d.ts +5 -1
- package/daemon/dist/domain/kernel-boot.d.ts.map +1 -1
- package/daemon/dist/domain/kernel-boot.js +34 -4
- package/daemon/dist/domain/kernel-boot.js.map +1 -1
- package/daemon/dist/domain/managed-blocks.d.ts +32 -1
- package/daemon/dist/domain/managed-blocks.d.ts.map +1 -1
- package/daemon/dist/domain/managed-blocks.js +109 -11
- package/daemon/dist/domain/managed-blocks.js.map +1 -1
- package/daemon/dist/domain/managed-restore-read-access.d.ts +20 -0
- package/daemon/dist/domain/managed-restore-read-access.d.ts.map +1 -0
- package/daemon/dist/domain/managed-restore-read-access.js +77 -0
- package/daemon/dist/domain/managed-restore-read-access.js.map +1 -0
- package/daemon/dist/domain/markdown-address.d.ts.map +1 -1
- package/daemon/dist/domain/markdown-address.js +21 -2
- package/daemon/dist/domain/markdown-address.js.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-action-log.d.ts +1 -1
- package/daemon/dist/domain/mission-control/mission-control-action-log.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-action-log.js +3 -0
- package/daemon/dist/domain/mission-control/mission-control-action-log.js.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts +24 -3
- 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 +121 -8
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
- package/daemon/dist/domain/model-divergence/current-model-reader.d.ts +2 -0
- package/daemon/dist/domain/model-divergence/current-model-reader.d.ts.map +1 -1
- package/daemon/dist/domain/model-divergence/current-model-reader.js +7 -0
- package/daemon/dist/domain/model-divergence/current-model-reader.js.map +1 -1
- package/daemon/dist/domain/model-divergence/model-divergence-monitor.d.ts +10 -1
- package/daemon/dist/domain/model-divergence/model-divergence-monitor.d.ts.map +1 -1
- package/daemon/dist/domain/model-divergence/model-divergence-monitor.js +42 -6
- package/daemon/dist/domain/model-divergence/model-divergence-monitor.js.map +1 -1
- package/daemon/dist/domain/native-permission-store.d.ts +7 -2
- package/daemon/dist/domain/native-permission-store.d.ts.map +1 -1
- package/daemon/dist/domain/native-permission-store.js +13 -8
- package/daemon/dist/domain/native-permission-store.js.map +1 -1
- package/daemon/dist/domain/native-process-lineage.d.ts +3 -0
- package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
- package/daemon/dist/domain/native-process-lineage.js +60 -2
- package/daemon/dist/domain/native-process-lineage.js.map +1 -1
- package/daemon/dist/domain/native-resume-probe-evidence.d.ts +19 -0
- package/daemon/dist/domain/native-resume-probe-evidence.d.ts.map +1 -0
- package/daemon/dist/domain/native-resume-probe-evidence.js +37 -0
- package/daemon/dist/domain/native-resume-probe-evidence.js.map +1 -0
- package/daemon/dist/domain/native-resume-probe.d.ts +9 -0
- package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +174 -44
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/node-inventory.d.ts +53 -1
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +137 -45
- package/daemon/dist/domain/node-inventory.js.map +1 -1
- package/daemon/dist/domain/node-launcher.d.ts +11 -0
- package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/node-launcher.js +49 -8
- package/daemon/dist/domain/node-launcher.js.map +1 -1
- package/daemon/dist/domain/occupant-invalidator.d.ts +16 -4
- package/daemon/dist/domain/occupant-invalidator.d.ts.map +1 -1
- package/daemon/dist/domain/occupant-invalidator.js +25 -5
- package/daemon/dist/domain/occupant-invalidator.js.map +1 -1
- package/daemon/dist/domain/operation-correlation.d.ts +78 -0
- package/daemon/dist/domain/operation-correlation.d.ts.map +1 -0
- package/daemon/dist/domain/operation-correlation.js +54 -0
- package/daemon/dist/domain/operation-correlation.js.map +1 -0
- package/daemon/dist/domain/parent-session-env.d.ts +1 -1
- package/daemon/dist/domain/parent-session-env.d.ts.map +1 -1
- package/daemon/dist/domain/parent-session-env.js +3 -1
- package/daemon/dist/domain/parent-session-env.js.map +1 -1
- package/daemon/dist/domain/parked-query.d.ts +3 -0
- package/daemon/dist/domain/parked-query.d.ts.map +1 -1
- package/daemon/dist/domain/parked-query.js +1 -0
- package/daemon/dist/domain/parked-query.js.map +1 -1
- package/daemon/dist/domain/permission-account.d.ts +31 -0
- package/daemon/dist/domain/permission-account.d.ts.map +1 -0
- package/daemon/dist/domain/permission-account.js +116 -0
- package/daemon/dist/domain/permission-account.js.map +1 -0
- package/daemon/dist/domain/permission-drift.d.ts.map +1 -1
- package/daemon/dist/domain/permission-drift.js +11 -7
- package/daemon/dist/domain/permission-drift.js.map +1 -1
- package/daemon/dist/domain/pod-bundle-assembler.d.ts +1 -0
- package/daemon/dist/domain/pod-bundle-assembler.d.ts.map +1 -1
- package/daemon/dist/domain/pod-bundle-assembler.js +25 -0
- package/daemon/dist/domain/pod-bundle-assembler.js.map +1 -1
- package/daemon/dist/domain/policies/artifact-pool-helpers.d.ts +7 -0
- package/daemon/dist/domain/policies/artifact-pool-helpers.d.ts.map +1 -1
- package/daemon/dist/domain/policies/artifact-pool-helpers.js +8 -4
- package/daemon/dist/domain/policies/artifact-pool-helpers.js.map +1 -1
- package/daemon/dist/domain/policies/context-usage-threshold.d.ts.map +1 -1
- package/daemon/dist/domain/policies/context-usage-threshold.js +109 -21
- package/daemon/dist/domain/policies/context-usage-threshold.js.map +1 -1
- package/daemon/dist/domain/policies/edge-artifact-required.d.ts +6 -1
- package/daemon/dist/domain/policies/edge-artifact-required.d.ts.map +1 -1
- package/daemon/dist/domain/policies/edge-artifact-required.js +18 -13
- package/daemon/dist/domain/policies/edge-artifact-required.js.map +1 -1
- package/daemon/dist/domain/policies/mode-scheduled-end.d.ts +2 -0
- package/daemon/dist/domain/policies/mode-scheduled-end.d.ts.map +1 -1
- package/daemon/dist/domain/policies/mode-scheduled-end.js +5 -1
- package/daemon/dist/domain/policies/mode-scheduled-end.js.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts +8 -0
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js +15 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
- package/daemon/dist/domain/policies/periodic-reminder.d.ts +10 -0
- package/daemon/dist/domain/policies/periodic-reminder.d.ts.map +1 -1
- package/daemon/dist/domain/policies/periodic-reminder.js +11 -6
- package/daemon/dist/domain/policies/periodic-reminder.js.map +1 -1
- package/daemon/dist/domain/policies/types.d.ts +25 -0
- package/daemon/dist/domain/policies/types.d.ts.map +1 -1
- package/daemon/dist/domain/policies/workflow-keepalive.d.ts +6 -1
- package/daemon/dist/domain/policies/workflow-keepalive.d.ts.map +1 -1
- package/daemon/dist/domain/policies/workflow-keepalive.js +11 -5
- package/daemon/dist/domain/policies/workflow-keepalive.js.map +1 -1
- package/daemon/dist/domain/profile-resolution-worker.d.ts +7 -0
- package/daemon/dist/domain/profile-resolution-worker.d.ts.map +1 -0
- package/daemon/dist/domain/profile-resolution-worker.js +83 -0
- package/daemon/dist/domain/profile-resolution-worker.js.map +1 -0
- package/daemon/dist/domain/profile-resolver.d.ts +6 -0
- package/daemon/dist/domain/profile-resolver.d.ts.map +1 -1
- package/daemon/dist/domain/profile-resolver.js +14 -2
- package/daemon/dist/domain/profile-resolver.js.map +1 -1
- package/daemon/dist/domain/project-classifier.d.ts +7 -0
- package/daemon/dist/domain/project-classifier.d.ts.map +1 -1
- package/daemon/dist/domain/project-classifier.js +26 -0
- package/daemon/dist/domain/project-classifier.js.map +1 -1
- package/daemon/dist/domain/proof/judgments.d.ts +7 -4
- package/daemon/dist/domain/proof/judgments.d.ts.map +1 -1
- package/daemon/dist/domain/proof/judgments.js +12 -8
- package/daemon/dist/domain/proof/judgments.js.map +1 -1
- package/daemon/dist/domain/proof/source-watch.d.ts +6 -1
- package/daemon/dist/domain/proof/source-watch.d.ts.map +1 -1
- package/daemon/dist/domain/proof/source-watch.js +241 -35
- package/daemon/dist/domain/proof/source-watch.js.map +1 -1
- package/daemon/dist/domain/provider/claude-auth-status-reader.d.ts +12 -0
- package/daemon/dist/domain/provider/claude-auth-status-reader.d.ts.map +1 -1
- package/daemon/dist/domain/provider/claude-auth-status-reader.js +4 -4
- package/daemon/dist/domain/provider/claude-auth-status-reader.js.map +1 -1
- package/daemon/dist/domain/provider/claude-seat-switch.d.ts +32 -0
- package/daemon/dist/domain/provider/claude-seat-switch.d.ts.map +1 -0
- package/daemon/dist/domain/provider/claude-seat-switch.js +136 -0
- package/daemon/dist/domain/provider/claude-seat-switch.js.map +1 -0
- package/daemon/dist/domain/provider/claude-token-usage.d.ts +34 -0
- package/daemon/dist/domain/provider/claude-token-usage.d.ts.map +1 -0
- package/daemon/dist/domain/provider/claude-token-usage.js +168 -0
- package/daemon/dist/domain/provider/claude-token-usage.js.map +1 -0
- package/daemon/dist/domain/provider/provider-account-readings.d.ts +7 -6
- package/daemon/dist/domain/provider/provider-account-readings.d.ts.map +1 -1
- package/daemon/dist/domain/provider/provider-account-readings.js +31 -10
- package/daemon/dist/domain/provider/provider-account-readings.js.map +1 -1
- package/daemon/dist/domain/provider/provider-collect.d.ts +3 -0
- package/daemon/dist/domain/provider/provider-collect.d.ts.map +1 -1
- package/daemon/dist/domain/provider/provider-collect.js +3 -2
- package/daemon/dist/domain/provider/provider-collect.js.map +1 -1
- package/daemon/dist/domain/provider/provider-seat-accounts.d.ts +1 -1
- package/daemon/dist/domain/provider/provider-seat-accounts.d.ts.map +1 -1
- package/daemon/dist/domain/provider/provider-seat-accounts.js +29 -2
- package/daemon/dist/domain/provider/provider-seat-accounts.js.map +1 -1
- package/daemon/dist/domain/provider/provider-service-impl.d.ts +38 -4
- package/daemon/dist/domain/provider/provider-service-impl.d.ts.map +1 -1
- package/daemon/dist/domain/provider/provider-service-impl.js +147 -5
- package/daemon/dist/domain/provider/provider-service-impl.js.map +1 -1
- package/daemon/dist/domain/provider/provider-service.d.ts +109 -4
- package/daemon/dist/domain/provider/provider-service.d.ts.map +1 -1
- package/daemon/dist/domain/provider/provider-signals.d.ts +3 -0
- package/daemon/dist/domain/provider/provider-signals.d.ts.map +1 -1
- package/daemon/dist/domain/provider/provider-signals.js +7 -2
- package/daemon/dist/domain/provider/provider-signals.js.map +1 -1
- package/daemon/dist/domain/provider/provider-types.d.ts +61 -5
- package/daemon/dist/domain/provider/provider-types.d.ts.map +1 -1
- package/daemon/dist/domain/provider/reactive-tap.d.ts +4 -0
- package/daemon/dist/domain/provider/reactive-tap.d.ts.map +1 -1
- package/daemon/dist/domain/provider/reactive-tap.js +3 -0
- package/daemon/dist/domain/provider/reactive-tap.js.map +1 -1
- package/daemon/dist/domain/provider/subscription-move-report.d.ts +86 -0
- package/daemon/dist/domain/provider/subscription-move-report.d.ts.map +1 -0
- package/daemon/dist/domain/provider/subscription-move-report.js +227 -0
- package/daemon/dist/domain/provider/subscription-move-report.js.map +1 -0
- package/daemon/dist/domain/provider/usage-across-hosts.d.ts.map +1 -1
- package/daemon/dist/domain/provider/usage-across-hosts.js +8 -2
- package/daemon/dist/domain/provider/usage-across-hosts.js.map +1 -1
- package/daemon/dist/domain/provider/usage-windows.d.ts +2 -0
- package/daemon/dist/domain/provider/usage-windows.d.ts.map +1 -1
- package/daemon/dist/domain/provider/usage-windows.js +4 -0
- package/daemon/dist/domain/provider/usage-windows.js.map +1 -1
- package/daemon/dist/domain/ps-projection.d.ts +6 -35
- package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
- package/daemon/dist/domain/ps-projection.js +14 -55
- package/daemon/dist/domain/ps-projection.js.map +1 -1
- package/daemon/dist/domain/queue-owner.d.ts +15 -3
- package/daemon/dist/domain/queue-owner.d.ts.map +1 -1
- package/daemon/dist/domain/queue-owner.js +38 -5
- package/daemon/dist/domain/queue-owner.js.map +1 -1
- package/daemon/dist/domain/queue-pickup.d.ts +5 -2
- package/daemon/dist/domain/queue-pickup.d.ts.map +1 -1
- package/daemon/dist/domain/queue-pickup.js +19 -2
- package/daemon/dist/domain/queue-pickup.js.map +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +72 -24
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +346 -102
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-retention.d.ts +18 -0
- package/daemon/dist/domain/queue-retention.d.ts.map +1 -1
- package/daemon/dist/domain/queue-retention.js +79 -0
- package/daemon/dist/domain/queue-retention.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts +16 -3
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +87 -11
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/queue-wait-backoff.d.ts +3 -0
- package/daemon/dist/domain/queue-wait-backoff.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wait-backoff.js +9 -0
- package/daemon/dist/domain/queue-wait-backoff.js.map +1 -1
- package/daemon/dist/domain/queue-waiting.d.ts +2 -0
- package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
- package/daemon/dist/domain/queue-waiting.js.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +108 -34
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/queue-wake-repository.d.ts +3 -0
- package/daemon/dist/domain/queue-wake-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-repository.js +5 -1
- package/daemon/dist/domain/queue-wake-repository.js.map +1 -1
- package/daemon/dist/domain/reconciler.d.ts +23 -0
- package/daemon/dist/domain/reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/reconciler.js +44 -1
- package/daemon/dist/domain/reconciler.js.map +1 -1
- package/daemon/dist/domain/rehydrate-eligibility.d.ts.map +1 -1
- package/daemon/dist/domain/rehydrate-eligibility.js +2 -3
- package/daemon/dist/domain/rehydrate-eligibility.js.map +1 -1
- package/daemon/dist/domain/restore-guidance.d.ts +7 -0
- package/daemon/dist/domain/restore-guidance.d.ts.map +1 -1
- package/daemon/dist/domain/restore-guidance.js +20 -8
- package/daemon/dist/domain/restore-guidance.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +39 -2
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +266 -35
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/restore-plan-preview.d.ts +7 -2
- package/daemon/dist/domain/restore-plan-preview.d.ts.map +1 -1
- package/daemon/dist/domain/restore-plan-preview.js +28 -7
- package/daemon/dist/domain/restore-plan-preview.js.map +1 -1
- package/daemon/dist/domain/restore-policy.d.ts +4 -0
- package/daemon/dist/domain/restore-policy.d.ts.map +1 -1
- package/daemon/dist/domain/restore-policy.js +11 -0
- package/daemon/dist/domain/restore-policy.js.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.d.ts +11 -2
- package/daemon/dist/domain/resume-metadata-refresher.d.ts.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.js +32 -14
- package/daemon/dist/domain/resume-metadata-refresher.js.map +1 -1
- package/daemon/dist/domain/resume-token-capture.d.ts +5 -1
- package/daemon/dist/domain/resume-token-capture.d.ts.map +1 -1
- package/daemon/dist/domain/resume-token-capture.js +3 -1
- package/daemon/dist/domain/resume-token-capture.js.map +1 -1
- package/daemon/dist/domain/rig-edge-ops.d.ts +58 -0
- package/daemon/dist/domain/rig-edge-ops.d.ts.map +1 -0
- package/daemon/dist/domain/rig-edge-ops.js +113 -0
- package/daemon/dist/domain/rig-edge-ops.js.map +1 -0
- package/daemon/dist/domain/rig-expansion-service.d.ts.map +1 -1
- package/daemon/dist/domain/rig-expansion-service.js +1 -0
- package/daemon/dist/domain/rig-expansion-service.js.map +1 -1
- package/daemon/dist/domain/rig-name-override.d.ts +14 -0
- package/daemon/dist/domain/rig-name-override.d.ts.map +1 -0
- package/daemon/dist/domain/rig-name-override.js +38 -0
- package/daemon/dist/domain/rig-name-override.js.map +1 -0
- package/daemon/dist/domain/rig-repository.d.ts +28 -3
- package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
- package/daemon/dist/domain/rig-repository.js +261 -2
- package/daemon/dist/domain/rig-repository.js.map +1 -1
- package/daemon/dist/domain/rig-status-compose.d.ts +1 -1
- package/daemon/dist/domain/rig-status-compose.d.ts.map +1 -1
- package/daemon/dist/domain/rig-status-compose.js +3 -1
- package/daemon/dist/domain/rig-status-compose.js.map +1 -1
- package/daemon/dist/domain/rig-teardown.d.ts +20 -1
- package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
- package/daemon/dist/domain/rig-teardown.js +81 -9
- 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 +14 -0
- package/daemon/dist/domain/rigspec-codec.js.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.d.ts +3 -0
- package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.js +29 -0
- package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts +71 -3
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +424 -48
- package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-preflight.js +15 -2
- package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
- package/daemon/dist/domain/rigspec-schema.d.ts +3 -0
- package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-schema.js +90 -3
- package/daemon/dist/domain/rigspec-schema.js.map +1 -1
- package/daemon/dist/domain/running-name-guard.d.ts.map +1 -1
- package/daemon/dist/domain/running-name-guard.js +2 -1
- package/daemon/dist/domain/running-name-guard.js.map +1 -1
- package/daemon/dist/domain/runtime-adapter.d.ts +37 -2
- package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-adapter.js +5 -1
- package/daemon/dist/domain/runtime-adapter.js.map +1 -1
- package/daemon/dist/domain/runtime-switch-materials.d.ts +77 -0
- package/daemon/dist/domain/runtime-switch-materials.d.ts.map +1 -0
- package/daemon/dist/domain/runtime-switch-materials.js +253 -0
- package/daemon/dist/domain/runtime-switch-materials.js.map +1 -0
- package/daemon/dist/domain/scope/scope-approve.d.ts +1 -1
- package/daemon/dist/domain/scope/scope-view-projection.d.ts +6 -0
- package/daemon/dist/domain/scope/scope-view-projection.d.ts.map +1 -1
- package/daemon/dist/domain/scope/scope-view-projection.js +26 -10
- package/daemon/dist/domain/scope/scope-view-projection.js.map +1 -1
- package/daemon/dist/domain/seat-activity-service.d.ts +8 -2
- package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-activity-service.js +30 -5
- package/daemon/dist/domain/seat-activity-service.js.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.d.ts +27 -2
- package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.js +91 -8
- package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.d.ts +20 -1
- package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.js +66 -11
- package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
- package/daemon/dist/domain/seat-handover-service.d.ts +8 -0
- package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-handover-service.js +75 -5
- package/daemon/dist/domain/seat-handover-service.js.map +1 -1
- package/daemon/dist/domain/seat-identity-store.d.ts +11 -1
- package/daemon/dist/domain/seat-identity-store.d.ts.map +1 -1
- package/daemon/dist/domain/seat-identity-store.js +29 -4
- package/daemon/dist/domain/seat-identity-store.js.map +1 -1
- package/daemon/dist/domain/seat-launch-additions.d.ts +115 -0
- package/daemon/dist/domain/seat-launch-additions.d.ts.map +1 -0
- package/daemon/dist/domain/seat-launch-additions.js +439 -0
- package/daemon/dist/domain/seat-launch-additions.js.map +1 -0
- package/daemon/dist/domain/seat-launch-environment.d.ts +6 -1
- package/daemon/dist/domain/seat-launch-environment.d.ts.map +1 -1
- package/daemon/dist/domain/seat-launch-environment.js +9 -5
- package/daemon/dist/domain/seat-launch-environment.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +98 -7
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +261 -25
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.d.ts +9 -2
- package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.js +27 -7
- package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-dir.d.ts +17 -0
- package/daemon/dist/domain/seat-runtime-dir.d.ts.map +1 -0
- package/daemon/dist/domain/seat-runtime-dir.js +27 -0
- package/daemon/dist/domain/seat-runtime-dir.js.map +1 -0
- package/daemon/dist/domain/seat-runtime-home.d.ts +42 -0
- package/daemon/dist/domain/seat-runtime-home.d.ts.map +1 -0
- package/daemon/dist/domain/seat-runtime-home.js +89 -0
- package/daemon/dist/domain/seat-runtime-home.js.map +1 -0
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts +220 -0
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -0
- package/daemon/dist/domain/seat-runtime-switch-service.js +593 -0
- package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -0
- package/daemon/dist/domain/seat-skill-apply.d.ts +139 -0
- package/daemon/dist/domain/seat-skill-apply.d.ts.map +1 -0
- package/daemon/dist/domain/seat-skill-apply.js +221 -0
- package/daemon/dist/domain/seat-skill-apply.js.map +1 -0
- package/daemon/dist/domain/seat-skill-storage.d.ts +295 -0
- package/daemon/dist/domain/seat-skill-storage.d.ts.map +1 -0
- package/daemon/dist/domain/seat-skill-storage.js +850 -0
- package/daemon/dist/domain/seat-skill-storage.js.map +1 -0
- package/daemon/dist/domain/seat-skills-pointer.d.ts +5 -0
- package/daemon/dist/domain/seat-skills-pointer.d.ts.map +1 -0
- package/daemon/dist/domain/seat-skills-pointer.js +15 -0
- package/daemon/dist/domain/seat-skills-pointer.js.map +1 -0
- package/daemon/dist/domain/seat-status-service.d.ts +40 -0
- package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-status-service.js +59 -3
- package/daemon/dist/domain/seat-status-service.js.map +1 -1
- package/daemon/dist/domain/seat-structural-activity-service.d.ts +3 -0
- package/daemon/dist/domain/seat-structural-activity-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-structural-activity-service.js +6 -0
- package/daemon/dist/domain/seat-structural-activity-service.js.map +1 -1
- package/daemon/dist/domain/service-orchestrator.d.ts +7 -0
- package/daemon/dist/domain/service-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/service-orchestrator.js +4 -0
- package/daemon/dist/domain/service-orchestrator.js.map +1 -1
- package/daemon/dist/domain/session-registry.d.ts +4 -0
- package/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.js +13 -0
- package/daemon/dist/domain/session-registry.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +71 -22
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +376 -93
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/skill-catalog.d.ts +16 -0
- package/daemon/dist/domain/skill-catalog.d.ts.map +1 -1
- package/daemon/dist/domain/skill-catalog.js +15 -6
- package/daemon/dist/domain/skill-catalog.js.map +1 -1
- package/daemon/dist/domain/skill-discovery.d.ts +17 -2
- package/daemon/dist/domain/skill-discovery.d.ts.map +1 -1
- package/daemon/dist/domain/skill-discovery.js +44 -5
- package/daemon/dist/domain/skill-discovery.js.map +1 -1
- package/daemon/dist/domain/snapshot-capture.d.ts +4 -1
- package/daemon/dist/domain/snapshot-capture.d.ts.map +1 -1
- package/daemon/dist/domain/snapshot-capture.js +4 -1
- package/daemon/dist/domain/snapshot-capture.js.map +1 -1
- package/daemon/dist/domain/snapshot-repository.d.ts +4 -3
- package/daemon/dist/domain/snapshot-repository.d.ts.map +1 -1
- package/daemon/dist/domain/snapshot-repository.js +6 -5
- package/daemon/dist/domain/snapshot-repository.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts +29 -2
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +279 -25
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.d.ts +1 -0
- package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.js +1 -0
- package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
- package/daemon/dist/domain/stream-dispositions.d.ts +51 -0
- package/daemon/dist/domain/stream-dispositions.d.ts.map +1 -0
- package/daemon/dist/domain/stream-dispositions.js +112 -0
- package/daemon/dist/domain/stream-dispositions.js.map +1 -0
- package/daemon/dist/domain/stream-reader-actions.d.ts +49 -0
- package/daemon/dist/domain/stream-reader-actions.d.ts.map +1 -0
- package/daemon/dist/domain/stream-reader-actions.js +104 -0
- package/daemon/dist/domain/stream-reader-actions.js.map +1 -0
- package/daemon/dist/domain/stream-store.d.ts +22 -0
- package/daemon/dist/domain/stream-store.d.ts.map +1 -1
- package/daemon/dist/domain/stream-store.js +49 -6
- package/daemon/dist/domain/stream-store.js.map +1 -1
- package/daemon/dist/domain/stream-subscriptions.d.ts +94 -0
- package/daemon/dist/domain/stream-subscriptions.d.ts.map +1 -0
- package/daemon/dist/domain/stream-subscriptions.js +160 -0
- package/daemon/dist/domain/stream-subscriptions.js.map +1 -0
- package/daemon/dist/domain/successor-session-launcher.d.ts +41 -1
- package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.js +63 -5
- package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts +8 -28
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.js +117 -64
- package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-sessions.d.ts +9 -0
- package/daemon/dist/domain/terminal/herdr-sessions.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/herdr-sessions.js +23 -0
- package/daemon/dist/domain/terminal/herdr-sessions.js.map +1 -0
- package/daemon/dist/domain/terminal/rex-adapter.d.ts +42 -0
- package/daemon/dist/domain/terminal/rex-adapter.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/rex-adapter.js +228 -0
- package/daemon/dist/domain/terminal/rex-adapter.js.map +1 -0
- package/daemon/dist/domain/terminal/rex-layout.d.ts +26 -0
- package/daemon/dist/domain/terminal/rex-layout.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/rex-layout.js +21 -0
- package/daemon/dist/domain/terminal/rex-layout.js.map +1 -0
- package/daemon/dist/domain/terminal/rex-transport.d.ts +43 -0
- package/daemon/dist/domain/terminal/rex-transport.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/rex-transport.js +176 -0
- package/daemon/dist/domain/terminal/rex-transport.js.map +1 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts +15 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.d.ts +14 -5
- package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.js +51 -27
- package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
- package/daemon/dist/domain/terminal/tile-attach.d.ts +2 -0
- package/daemon/dist/domain/terminal/tile-attach.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/tile-attach.js +42 -0
- package/daemon/dist/domain/terminal/tile-attach.js.map +1 -0
- package/daemon/dist/domain/terminal/tile-layout.d.ts +32 -0
- package/daemon/dist/domain/terminal/tile-layout.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/tile-layout.js +36 -0
- package/daemon/dist/domain/terminal/tile-layout.js.map +1 -0
- package/daemon/dist/domain/terminal/view-composer.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/view-composer.js +11 -6
- package/daemon/dist/domain/terminal/view-composer.js.map +1 -1
- package/daemon/dist/domain/terminal-policy.d.ts +80 -0
- package/daemon/dist/domain/terminal-policy.d.ts.map +1 -0
- package/daemon/dist/domain/terminal-policy.js +117 -0
- package/daemon/dist/domain/terminal-policy.js.map +1 -0
- package/daemon/dist/domain/terminal-seat.d.ts +9 -0
- package/daemon/dist/domain/terminal-seat.d.ts.map +1 -0
- package/daemon/dist/domain/terminal-seat.js +37 -0
- package/daemon/dist/domain/terminal-seat.js.map +1 -0
- package/daemon/dist/domain/topology-converge.d.ts +25 -2
- package/daemon/dist/domain/topology-converge.d.ts.map +1 -1
- package/daemon/dist/domain/topology-converge.js +14 -1
- package/daemon/dist/domain/topology-converge.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +119 -2
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/urgent-line.d.ts +4 -0
- package/daemon/dist/domain/urgent-line.d.ts.map +1 -0
- package/daemon/dist/domain/urgent-line.js +7 -0
- package/daemon/dist/domain/urgent-line.js.map +1 -0
- package/daemon/dist/domain/usage-series.d.ts.map +1 -1
- package/daemon/dist/domain/usage-series.js +6 -2
- package/daemon/dist/domain/usage-series.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.js +2 -2
- package/daemon/dist/domain/user-settings/settings-browser.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts +3 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.js +73 -1
- package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
- package/daemon/dist/domain/view-projector.d.ts.map +1 -1
- package/daemon/dist/domain/view-projector.js +2 -1
- package/daemon/dist/domain/view-projector.js.map +1 -1
- package/daemon/dist/domain/wake-recovery.d.ts +16 -0
- package/daemon/dist/domain/wake-recovery.d.ts.map +1 -0
- package/daemon/dist/domain/wake-recovery.js +31 -0
- package/daemon/dist/domain/wake-recovery.js.map +1 -0
- package/daemon/dist/domain/watchdog-delivery.js +1 -1
- package/daemon/dist/domain/watchdog-delivery.js.map +1 -1
- package/daemon/dist/domain/watchdog-job-update.d.ts +21 -0
- package/daemon/dist/domain/watchdog-job-update.d.ts.map +1 -0
- package/daemon/dist/domain/watchdog-job-update.js +143 -0
- package/daemon/dist/domain/watchdog-job-update.js.map +1 -0
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts +63 -7
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-jobs-repository.js +190 -21
- package/daemon/dist/domain/watchdog-jobs-repository.js.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.d.ts +23 -0
- package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.js +46 -13
- package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
- package/daemon/dist/domain/workflow-exception-escalation.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-exception-escalation.js +7 -3
- package/daemon/dist/domain/workflow-exception-escalation.js.map +1 -1
- package/daemon/dist/domain/workflow-projector.d.ts +5 -2
- package/daemon/dist/domain/workflow-projector.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-projector.js +16 -7
- package/daemon/dist/domain/workflow-projector.js.map +1 -1
- package/daemon/dist/domain/workflow-runtime.d.ts +8 -2
- package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-runtime.js +30 -7
- package/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/daemon/dist/domain/workspace/project-read.d.ts +2 -0
- package/daemon/dist/domain/workspace/project-read.d.ts.map +1 -1
- package/daemon/dist/domain/workspace/project-read.js +10 -1
- package/daemon/dist/domain/workspace/project-read.js.map +1 -1
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +7 -1
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/lib/pane-envelope.d.ts +5 -0
- package/daemon/dist/lib/pane-envelope.d.ts.map +1 -1
- package/daemon/dist/lib/pane-envelope.js +8 -1
- package/daemon/dist/lib/pane-envelope.js.map +1 -1
- package/daemon/dist/router-line-surface.d.ts +2 -0
- package/daemon/dist/router-line-surface.d.ts.map +1 -0
- package/daemon/dist/router-line-surface.js +3 -0
- package/daemon/dist/router-line-surface.js.map +1 -0
- package/daemon/dist/routes/activity.d.ts.map +1 -1
- package/daemon/dist/routes/activity.js +15 -0
- package/daemon/dist/routes/activity.js.map +1 -1
- package/daemon/dist/routes/agent-images.d.ts.map +1 -1
- package/daemon/dist/routes/agent-images.js +19 -2
- package/daemon/dist/routes/agent-images.js.map +1 -1
- package/daemon/dist/routes/attention.d.ts.map +1 -1
- package/daemon/dist/routes/attention.js +30 -3
- package/daemon/dist/routes/attention.js.map +1 -1
- package/daemon/dist/routes/bootstrap-failure-response.js +2 -2
- package/daemon/dist/routes/bootstrap-failure-response.js.map +1 -1
- package/daemon/dist/routes/bundles.js +1 -1
- package/daemon/dist/routes/bundles.js.map +1 -1
- package/daemon/dist/routes/compaction.d.ts.map +1 -1
- package/daemon/dist/routes/compaction.js +31 -10
- package/daemon/dist/routes/compaction.js.map +1 -1
- package/daemon/dist/routes/context-packs.d.ts.map +1 -1
- package/daemon/dist/routes/context-packs.js +22 -0
- package/daemon/dist/routes/context-packs.js.map +1 -1
- package/daemon/dist/routes/hosts.d.ts.map +1 -1
- package/daemon/dist/routes/hosts.js +2 -0
- 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 +7 -3
- package/daemon/dist/routes/mission-control.js.map +1 -1
- package/daemon/dist/routes/projects.d.ts.map +1 -1
- package/daemon/dist/routes/projects.js +59 -12
- package/daemon/dist/routes/projects.js.map +1 -1
- package/daemon/dist/routes/proof.js +2 -2
- package/daemon/dist/routes/proof.js.map +1 -1
- package/daemon/dist/routes/provider.d.ts.map +1 -1
- package/daemon/dist/routes/provider.js +170 -3
- 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 +154 -13
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/require-sender-identity.d.ts +10 -8
- package/daemon/dist/routes/require-sender-identity.d.ts.map +1 -1
- package/daemon/dist/routes/require-sender-identity.js +13 -11
- package/daemon/dist/routes/require-sender-identity.js.map +1 -1
- package/daemon/dist/routes/rigs.d.ts.map +1 -1
- package/daemon/dist/routes/rigs.js +77 -10
- 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 +38 -12
- package/daemon/dist/routes/rigspec.js.map +1 -1
- package/daemon/dist/routes/runtime-switch-custody.d.ts +21 -0
- package/daemon/dist/routes/runtime-switch-custody.d.ts.map +1 -0
- package/daemon/dist/routes/runtime-switch-custody.js +55 -0
- package/daemon/dist/routes/runtime-switch-custody.js.map +1 -0
- package/daemon/dist/routes/scope-approve.js +2 -2
- package/daemon/dist/routes/scope-approve.js.map +1 -1
- package/daemon/dist/routes/scopes.d.ts.map +1 -1
- package/daemon/dist/routes/scopes.js +30 -7
- package/daemon/dist/routes/scopes.js.map +1 -1
- package/daemon/dist/routes/seat.d.ts.map +1 -1
- package/daemon/dist/routes/seat.js +109 -10
- 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 +14 -0
- package/daemon/dist/routes/sessions.js.map +1 -1
- package/daemon/dist/routes/skills.d.ts.map +1 -1
- package/daemon/dist/routes/skills.js +54 -1
- package/daemon/dist/routes/skills.js.map +1 -1
- package/daemon/dist/routes/startup.js +15 -5
- package/daemon/dist/routes/startup.js.map +1 -1
- package/daemon/dist/routes/stream.d.ts.map +1 -1
- package/daemon/dist/routes/stream.js +86 -14
- package/daemon/dist/routes/stream.js.map +1 -1
- package/daemon/dist/routes/terminal.d.ts.map +1 -1
- package/daemon/dist/routes/terminal.js +20 -11
- package/daemon/dist/routes/terminal.js.map +1 -1
- package/daemon/dist/routes/transport.d.ts.map +1 -1
- package/daemon/dist/routes/transport.js +55 -5
- package/daemon/dist/routes/transport.js.map +1 -1
- package/daemon/dist/routes/up.js +5 -0
- package/daemon/dist/routes/up.js.map +1 -1
- package/daemon/dist/routes/watchdog.d.ts +1 -0
- package/daemon/dist/routes/watchdog.d.ts.map +1 -1
- package/daemon/dist/routes/watchdog.js +52 -3
- package/daemon/dist/routes/watchdog.js.map +1 -1
- package/daemon/dist/routes/workflow.d.ts.map +1 -1
- package/daemon/dist/routes/workflow.js +24 -13
- package/daemon/dist/routes/workflow.js.map +1 -1
- package/daemon/dist/seat-recap-store-surface.d.ts +1 -1
- package/daemon/dist/seat-recap-store-surface.d.ts.map +1 -1
- package/daemon/dist/seat-recap-store-surface.js +1 -1
- package/daemon/dist/seat-recap-store-surface.js.map +1 -1
- package/daemon/dist/server.d.ts +4 -0
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +5 -1
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/skill-loadout-surface.d.ts +2 -0
- package/daemon/dist/skill-loadout-surface.d.ts.map +1 -1
- package/daemon/dist/skill-loadout-surface.js +2 -0
- package/daemon/dist/skill-loadout-surface.js.map +1 -1
- package/daemon/dist/startup.d.ts +5 -0
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +160 -49
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/dist/terminal/TerminalSessionBroker.d.ts.map +1 -1
- package/daemon/dist/terminal/TerminalSessionBroker.js +14 -2
- package/daemon/dist/terminal/TerminalSessionBroker.js.map +1 -1
- package/daemon/docs/reference/a2a-agents.md +343 -0
- package/daemon/docs/reference/acp-agents.md +77 -0
- package/daemon/docs/reference/agent-spec.md +7 -5
- package/daemon/docs/reference/agent-startup-guide.md +46 -0
- package/daemon/docs/reference/agent-state-taxonomy.md +27 -2
- package/daemon/docs/reference/checked-seat-stop.md +11 -0
- package/daemon/docs/reference/community-harness-examples/cursor/cursor.yaml +13 -0
- package/daemon/docs/reference/community-harness-examples/cursor/openrig-cursor-launch +68 -0
- package/daemon/docs/reference/community-harness-examples/hermes/config.yaml.example +18 -0
- package/daemon/docs/reference/community-harness-examples/hermes/hermes.yaml +12 -0
- package/daemon/docs/reference/community-harness-examples/hermes/openrig-hermes-launch +34 -0
- package/daemon/docs/reference/community-harness-examples/openclaw/openclaw-gateway.yaml +15 -0
- package/daemon/docs/reference/community-harness-examples/openclaw/openclaw.yaml +16 -0
- package/daemon/docs/reference/community-harness-examples/openclaw/openrig-openclaw-launch +70 -0
- package/daemon/docs/reference/community-harness-presets.md +194 -0
- package/daemon/docs/reference/getting-started.md +145 -14
- package/daemon/docs/reference/health-diagnosis.md +13 -0
- package/daemon/docs/reference/help.md +6 -0
- package/daemon/docs/reference/keeping-a-watch.md +21 -0
- package/daemon/docs/reference/operation-correlation.md +9 -0
- package/daemon/docs/reference/project-workspace.md +24 -0
- package/daemon/docs/reference/publishing-a-rig-bundle.md +11 -0
- package/daemon/docs/reference/quickstart.md +1 -1
- package/daemon/docs/reference/refocus-channel.md +6 -4
- package/daemon/docs/reference/rig-spec.md +175 -5
- package/daemon/docs/reference/sdlc-conventions.md +3 -1
- package/daemon/docs/reference/seat-delivery.md +89 -7
- package/daemon/docs/reference/slack-app-setup.md +4 -2
- package/daemon/docs/reference/stream-classifier-worker.md +28 -0
- package/daemon/docs/reference/telemetry.md +3 -0
- package/daemon/docs/reference/terminal-sessions.md +141 -0
- package/daemon/docs/reference/topology-naming.md +1 -1
- package/daemon/docs/reference/whats-new.md +275 -113
- package/daemon/specs/agents/shared/runtime/claude-settings.fragment.json +0 -3
- package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +19 -4
- package/daemon/specs/agents/shared/skills/core/openrig-herdr/SKILL.md +18 -3
- package/daemon/specs/agents/shared/skills/core/openrig-software-factory/references/worked-example.md +2 -2
- package/daemon/specs/agents/shared/skills/process/agent-browser/LICENSE.txt +201 -0
- package/daemon/specs/agents/shared/skills/process/agent-browser/OPENRIG.md +13 -29
- package/daemon/specs/agents/shared/skills/process/agent-browser/SKILL.md +7 -7
- package/daemon/specs/agents/shared/skills/process/dogfood/LICENSE.txt +201 -0
- package/daemon/specs/agents/shared/skills/process/dogfood/SKILL.md +6 -2
- package/daemon/specs/agents/shared/skills/process/systematic-debugging/LICENSE.txt +21 -0
- package/daemon/specs/agents/shared/skills/process/systematic-debugging/SKILL.md +6 -2
- package/daemon/specs/agents/shared/skills/process/test-driven-development/LICENSE.txt +21 -0
- package/daemon/specs/agents/shared/skills/process/test-driven-development/SKILL.md +5 -1
- package/daemon/specs/agents/shared/skills/process/verification-before-completion/LICENSE.txt +21 -0
- package/daemon/specs/agents/shared/skills/process/verification-before-completion/SKILL.md +5 -1
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +53 -10
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/startup/context.md +3 -0
- package/daemon/specs/rigs/launch/kernel/agents/queue/worker/guidance/role.md +12 -0
- package/daemon/specs/rigs/launch/kernel/agents/queue/worker/startup/context.md +3 -1
- package/daemon/specs/rigs/launch/secrets-manager/secrets-manager.compose.yaml +1 -1
- package/dist/acp/connector.d.ts +72 -0
- package/dist/acp/connector.d.ts.map +1 -0
- package/dist/acp/connector.js +218 -0
- package/dist/acp/connector.js.map +1 -0
- package/dist/acp/json-rpc-stdio.d.ts +53 -0
- package/dist/acp/json-rpc-stdio.d.ts.map +1 -0
- package/dist/acp/json-rpc-stdio.js +141 -0
- package/dist/acp/json-rpc-stdio.js.map +1 -0
- package/dist/acp/run-processes.d.ts +10 -0
- package/dist/acp/run-processes.d.ts.map +1 -0
- package/dist/acp/run-processes.js +33 -0
- package/dist/acp/run-processes.js.map +1 -0
- package/dist/build-info.js +3 -3
- package/dist/client.d.ts +15 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +30 -8
- package/dist/client.js.map +1 -1
- package/dist/commands/acp.d.ts +11 -0
- package/dist/commands/acp.d.ts.map +1 -0
- package/dist/commands/acp.js +198 -0
- package/dist/commands/acp.js.map +1 -0
- package/dist/commands/attach.js +1 -1
- package/dist/commands/attach.js.map +1 -1
- package/dist/commands/auth.d.ts +3 -0
- package/dist/commands/auth.d.ts.map +1 -1
- package/dist/commands/auth.js +41 -11
- package/dist/commands/auth.js.map +1 -1
- package/dist/commands/capture.d.ts.map +1 -1
- package/dist/commands/capture.js +8 -0
- package/dist/commands/capture.js.map +1 -1
- package/dist/commands/chatroom.d.ts.map +1 -1
- package/dist/commands/chatroom.js +6 -0
- package/dist/commands/chatroom.js.map +1 -1
- package/dist/commands/compact-plan.d.ts +2 -0
- package/dist/commands/compact-plan.d.ts.map +1 -1
- package/dist/commands/compact-plan.js +38 -3
- package/dist/commands/compact-plan.js.map +1 -1
- package/dist/commands/compact.js +1 -1
- package/dist/commands/compact.js.map +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +7 -1
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +29 -23
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/create.js +2 -2
- package/dist/commands/create.js.map +1 -1
- package/dist/commands/daemon.d.ts.map +1 -1
- package/dist/commands/daemon.js +2 -0
- package/dist/commands/daemon.js.map +1 -1
- package/dist/commands/down.d.ts +5 -1
- package/dist/commands/down.d.ts.map +1 -1
- package/dist/commands/down.js +93 -5
- package/dist/commands/down.js.map +1 -1
- package/dist/commands/edge.d.ts +4 -0
- package/dist/commands/edge.d.ts.map +1 -0
- package/dist/commands/edge.js +135 -0
- package/dist/commands/edge.js.map +1 -0
- package/dist/commands/env.d.ts.map +1 -1
- package/dist/commands/env.js +3 -0
- package/dist/commands/env.js.map +1 -1
- package/dist/commands/export.d.ts +1 -0
- package/dist/commands/export.d.ts.map +1 -1
- package/dist/commands/export.js +98 -0
- package/dist/commands/export.js.map +1 -1
- package/dist/commands/fork.d.ts.map +1 -1
- package/dist/commands/fork.js +19 -2
- package/dist/commands/fork.js.map +1 -1
- package/dist/commands/gateway.d.ts.map +1 -1
- package/dist/commands/gateway.js +2 -1
- package/dist/commands/gateway.js.map +1 -1
- package/dist/commands/grow.js +2 -2
- package/dist/commands/grow.js.map +1 -1
- package/dist/commands/health.js +1 -1
- package/dist/commands/health.js.map +1 -1
- package/dist/commands/launch.js +2 -2
- package/dist/commands/launch.js.map +1 -1
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/mcp.js +113 -1
- package/dist/commands/mcp.js.map +1 -1
- package/dist/commands/project-worker.d.ts +25 -1
- package/dist/commands/project-worker.d.ts.map +1 -1
- package/dist/commands/project-worker.js +9 -7
- package/dist/commands/project-worker.js.map +1 -1
- package/dist/commands/project.d.ts +2 -0
- package/dist/commands/project.d.ts.map +1 -1
- package/dist/commands/project.js +70 -2
- package/dist/commands/project.js.map +1 -1
- package/dist/commands/proof.d.ts.map +1 -1
- package/dist/commands/proof.js +33 -2
- package/dist/commands/proof.js.map +1 -1
- package/dist/commands/provider.d.ts.map +1 -1
- package/dist/commands/provider.js +273 -24
- package/dist/commands/provider.js.map +1 -1
- package/dist/commands/ps.d.ts +12 -1
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +50 -47
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue.d.ts +4 -2
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +178 -45
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/reconcile-session.d.ts.map +1 -1
- package/dist/commands/reconcile-session.js +6 -0
- package/dist/commands/reconcile-session.js.map +1 -1
- package/dist/commands/scope.d.ts.map +1 -1
- package/dist/commands/scope.js +5 -2
- package/dist/commands/scope.js.map +1 -1
- package/dist/commands/seat.d.ts +2 -0
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +336 -11
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +62 -55
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/setup.d.ts +24 -0
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/commands/setup.js +160 -7
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/skill.d.ts.map +1 -1
- package/dist/commands/skill.js +137 -3
- package/dist/commands/skill.js.map +1 -1
- package/dist/commands/start.d.ts.map +1 -1
- package/dist/commands/start.js +18 -25
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +4 -1
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/stream-outcome.d.ts +742 -0
- package/dist/commands/stream-outcome.d.ts.map +1 -0
- package/dist/commands/stream-outcome.js +118 -0
- package/dist/commands/stream-outcome.js.map +1 -0
- package/dist/commands/stream.d.ts.map +1 -1
- package/dist/commands/stream.js +86 -2
- package/dist/commands/stream.js.map +1 -1
- package/dist/commands/terminal.d.ts +5 -0
- package/dist/commands/terminal.d.ts.map +1 -1
- package/dist/commands/terminal.js +42 -11
- package/dist/commands/terminal.js.map +1 -1
- package/dist/commands/topology-default-agent.d.ts +2 -2
- package/dist/commands/topology-default-agent.d.ts.map +1 -1
- package/dist/commands/topology-default-agent.js +5 -3
- package/dist/commands/topology-default-agent.js.map +1 -1
- package/dist/commands/up.d.ts.map +1 -1
- package/dist/commands/up.js +82 -31
- package/dist/commands/up.js.map +1 -1
- package/dist/commands/watchdog.d.ts.map +1 -1
- package/dist/commands/watchdog.js +80 -5
- package/dist/commands/watchdog.js.map +1 -1
- package/dist/commands/workflow-errors.js +1 -1
- package/dist/commands/workflow-errors.js.map +1 -1
- package/dist/commands/workflow-render.js +4 -4
- package/dist/commands/workflow-render.js.map +1 -1
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +34 -15
- package/dist/commands/workflow.js.map +1 -1
- package/dist/config-store.d.ts +15 -1
- package/dist/config-store.d.ts.map +1 -1
- package/dist/config-store.js +86 -4
- package/dist/config-store.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts +4 -0
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +73 -21
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/decisions/decisions.d.ts +203 -0
- package/dist/decisions/decisions.d.ts.map +1 -0
- package/dist/decisions/decisions.js +374 -0
- package/dist/decisions/decisions.js.map +1 -0
- package/dist/decisions/stream-consumer.d.ts +255 -0
- package/dist/decisions/stream-consumer.d.ts.map +1 -0
- package/dist/decisions/stream-consumer.js +282 -0
- package/dist/decisions/stream-consumer.js.map +1 -0
- package/dist/decisions/templates.d.ts +8 -0
- package/dist/decisions/templates.d.ts.map +1 -0
- package/dist/decisions/templates.js +34 -0
- package/dist/decisions/templates.js.map +1 -0
- package/dist/fresh-seat-command.d.ts +18 -0
- package/dist/fresh-seat-command.d.ts.map +1 -0
- package/dist/fresh-seat-command.js +36 -0
- package/dist/fresh-seat-command.js.map +1 -0
- package/dist/front-door.d.ts +4 -0
- package/dist/front-door.d.ts.map +1 -1
- package/dist/front-door.js +8 -4
- package/dist/front-door.js.map +1 -1
- package/dist/host-bindings.d.ts.map +1 -1
- package/dist/host-bindings.js +16 -9
- package/dist/host-bindings.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/lazy-program.d.ts.map +1 -1
- package/dist/lazy-program.js +2 -0
- package/dist/lazy-program.js.map +1 -1
- package/dist/lib/codex-auth.d.ts +1 -147
- package/dist/lib/codex-auth.d.ts.map +1 -1
- package/dist/lib/codex-auth.js +2 -505
- package/dist/lib/codex-auth.js.map +1 -1
- package/dist/lib/run-on-host.d.ts +29 -0
- package/dist/lib/run-on-host.d.ts.map +1 -0
- package/dist/lib/run-on-host.js +69 -0
- package/dist/lib/run-on-host.js.map +1 -0
- package/dist/lib/seat-activity.d.ts +17 -0
- package/dist/lib/seat-activity.d.ts.map +1 -0
- package/dist/lib/seat-activity.js +29 -0
- package/dist/lib/seat-activity.js.map +1 -0
- package/dist/local-daemon-owner.d.ts +4 -0
- package/dist/local-daemon-owner.d.ts.map +1 -1
- package/dist/local-daemon-owner.js +1 -1
- package/dist/local-daemon-owner.js.map +1 -1
- package/dist/mcp-http.d.ts +42 -0
- package/dist/mcp-http.d.ts.map +1 -0
- package/dist/mcp-http.js +232 -0
- package/dist/mcp-http.js.map +1 -0
- package/dist/mcp-server.d.ts +30 -2
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +1163 -436
- package/dist/mcp-server.js.map +1 -1
- package/dist/seat-launch-additions-lines.d.ts +11 -0
- package/dist/seat-launch-additions-lines.d.ts.map +1 -0
- package/dist/seat-launch-additions-lines.js +14 -0
- package/dist/seat-launch-additions-lines.js.map +1 -0
- package/dist/terminal-window-rex.d.ts +6 -0
- package/dist/terminal-window-rex.d.ts.map +1 -0
- package/dist/terminal-window-rex.js +129 -0
- package/dist/terminal-window-rex.js.map +1 -0
- package/dist/terminal-window.d.ts +3 -1
- package/dist/terminal-window.d.ts.map +1 -1
- package/dist/terminal-window.js +68 -28
- package/dist/terminal-window.js.map +1 -1
- package/package.json +1 -1
- package/tui/dist/attention/attention-model.d.ts +3 -1
- package/tui/dist/attention/attention-model.d.ts.map +1 -1
- package/tui/dist/attention/attention-model.js +68 -1
- package/tui/dist/attention/attention-model.js.map +1 -1
- package/tui/dist/commands/registry.d.ts.map +1 -1
- package/tui/dist/commands/registry.js +3 -1
- package/tui/dist/commands/registry.js.map +1 -1
- package/tui/dist/config/config-model.d.ts.map +1 -1
- package/tui/dist/config/config-model.js +2 -0
- package/tui/dist/config/config-model.js.map +1 -1
- package/tui/dist/daemon-client.d.ts +22 -3
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js +9 -4
- package/tui/dist/daemon-client.js.map +1 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +13 -7
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/live.d.ts.map +1 -1
- package/tui/dist/live.js +6 -4
- package/tui/dist/live.js.map +1 -1
- package/tui/dist/main.js +15 -1
- package/tui/dist/main.js.map +1 -1
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +10 -3
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/terminals/open-window.d.ts +9 -5
- package/tui/dist/terminals/open-window.d.ts.map +1 -1
- package/tui/dist/terminals/open-window.js +29 -12
- package/tui/dist/terminals/open-window.js.map +1 -1
- package/tui/dist/terminals/terminal-model.d.ts +2 -1
- package/tui/dist/terminals/terminal-model.d.ts.map +1 -1
- package/tui/dist/terminals/terminal-model.js +5 -4
- package/tui/dist/terminals/terminal-model.js.map +1 -1
- package/tui/dist/topology/fixture.js +1 -1
- package/tui/dist/topology/fixture.js.map +1 -1
- package/tui/dist/topology/glyphs.js +1 -1
- package/tui/dist/topology/glyphs.js.map +1 -1
- package/tui/dist/topology/graph-types.d.ts +1 -0
- package/tui/dist/topology/graph-types.d.ts.map +1 -1
- package/tui/dist/types.d.ts +25 -0
- package/tui/dist/types.d.ts.map +1 -1
- package/tui/dist/usage/usage-model.d.ts.map +1 -1
- package/tui/dist/usage/usage-model.js +5 -3
- package/tui/dist/usage/usage-model.js.map +1 -1
- package/ui/dist/assets/{index-CVgod3Pm.js → index-DLP1ipGq.js} +92 -92
- package/ui/dist/index.html +1 -1
|
@@ -3,15 +3,18 @@ import { currentClaudeMcpMenu } from "./claude-mcp-menu.js";
|
|
|
3
3
|
import stringWidth from "string-width";
|
|
4
4
|
import { CODEX_TURN_STATUS_PATTERN } from "./codex-pane-patterns.js";
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
6
|
-
import { COLLAPSED_PASTE, composerRegion, isComposerFooter, inspectStartupStagedText, QUEUED_PLACEHOLDER, startupSubmissionEvidence } from "./startup-submission-evidence.js";
|
|
6
|
+
import { COLLAPSED_PASTE, composerRegion, isComposerFooter, isClaudePasteHint, inspectStartupStagedText, QUEUED_PLACEHOLDER, startupSubmissionEvidence } from "./startup-submission-evidence.js";
|
|
7
7
|
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";
|
|
8
8
|
export { inspectStartupStagedText } from "./startup-submission-evidence.js";
|
|
9
9
|
import { OutboxHandler } from "./outbox-handler.js";
|
|
10
10
|
import { DraftAwareDelivery } from "./draft-aware-delivery.js";
|
|
11
11
|
import { claudeResumeRotation } from "./session-registry.js";
|
|
12
|
+
import { tmuxResizeWindowCommand } from "../adapters/tmux-server.js";
|
|
12
13
|
import { latestHookPermissionPending, latestHookWaitsOnPerson } from "./agent-activity-store.js";
|
|
13
14
|
import { DeliveryGuardError } from "./seat-delivery-guard.js";
|
|
15
|
+
import { withUrgentLine } from "./urgent-line.js";
|
|
14
16
|
import { wrapPaneEnvelope, appendDeliveredSegment } from "../lib/pane-envelope.js";
|
|
17
|
+
import { isBoundTerminalSeat } from "./terminal-seat.js";
|
|
15
18
|
import { SeatIdentityStore } from "./seat-identity-store.js";
|
|
16
19
|
import { isShellForeground } from "./shell-classifier.js";
|
|
17
20
|
import { observeClaudeDelivery, verifyCodexPaneProcess } from "./native-process-lineage.js";
|
|
@@ -113,6 +116,56 @@ function findPatternEvidence(lines, patterns) {
|
|
|
113
116
|
}
|
|
114
117
|
return null;
|
|
115
118
|
}
|
|
119
|
+
const PI_DIALOG_HINTS = [
|
|
120
|
+
/^↑↓ navigate\s+\S.* select\s+\S.* cancel$/,
|
|
121
|
+
/^\S+ submit\s+\S+ cancel$/,
|
|
122
|
+
/^\S+ submit\s+\S+ newline\s+\S+ cancel\s+\S+ external editor$/,
|
|
123
|
+
];
|
|
124
|
+
/** Adopted Pi TUIs have no runner hooks. Anchor on the selector/input/editor chrome:
|
|
125
|
+
* footer metadata is optional, and an extension can add rows below the dialog. */
|
|
126
|
+
function findCurrentPiDialog(paneContent) {
|
|
127
|
+
const lines = paneContent.split("\n").map(line => line.trimEnd());
|
|
128
|
+
const visible = lines.flatMap((line, at) => line.trim() ? [{ text: line.trim(), at }] : []);
|
|
129
|
+
const border = (text) => /^─{3,}$/.test(text);
|
|
130
|
+
// At most six nonblank footer/widget rows may follow the selector's border.
|
|
131
|
+
for (let help = visible.length - 2; help >= Math.max(1, visible.length - 8); help--) {
|
|
132
|
+
// Text word-wraps the hints. Join at most three adjacent physical rows, not separated prose.
|
|
133
|
+
const rows = (n) => visible.slice(help - n + 1, help + 1).map(row => row.text).join(" ");
|
|
134
|
+
const span = [1, 2, 3].find(n => help - n >= 0
|
|
135
|
+
&& visible[help].at - visible[help - n + 1].at === n - 1
|
|
136
|
+
&& PI_DIALOG_HINTS.some(pattern => pattern.test(rows(n)))) ?? 1;
|
|
137
|
+
const hint = rows(span);
|
|
138
|
+
const selector = PI_DIALOG_HINTS[0].test(hint);
|
|
139
|
+
const input = PI_DIALOG_HINTS[1].test(hint);
|
|
140
|
+
const editor = PI_DIALOG_HINTS[2].test(hint);
|
|
141
|
+
if (!(selector || input || editor) || !border(visible[help + 1].text))
|
|
142
|
+
continue;
|
|
143
|
+
// A later editor or closing Markdown fence makes the selector historical/quoted.
|
|
144
|
+
if (visible.slice(help + 2).some(row => border(row.text) || /^(?:`{3,}|~{3,})/.test(row.text)))
|
|
145
|
+
continue;
|
|
146
|
+
const end = visible[help - span].at;
|
|
147
|
+
// Input needs its field and nearby opening rule. Editor's bottom rule and spaced four-action
|
|
148
|
+
// hint remain visible even when its tall body/top rule is outside the 20-line capture.
|
|
149
|
+
if (input && /^>(?:\s|$)/.test(lines[end].trim()) && !lines[end - 1]?.trim()
|
|
150
|
+
&& lines.slice(Math.max(0, end - PROMPT_SCAN_LINES), end).some(line => border(line.trim())))
|
|
151
|
+
return truncateEvidence(hint);
|
|
152
|
+
// ExtensionEditor puts one spacer on either side of the hint; a main-editor draft doesn't.
|
|
153
|
+
if (editor && /^(?:─{3,}|─+ [↑↓] \d+ more ─*)$/.test(lines[end].trim())
|
|
154
|
+
&& visible[help - span + 1].at === end + 2
|
|
155
|
+
&& visible[help + 1].at === visible[help].at + 2)
|
|
156
|
+
return truncateEvidence(hint);
|
|
157
|
+
if (!selector)
|
|
158
|
+
continue;
|
|
159
|
+
let start = end;
|
|
160
|
+
// The native spacer before the options separates arbitrary title/description text.
|
|
161
|
+
while (start > Math.max(0, end - PROMPT_SCAN_LINES) && lines[start - 1].trim() && !border(lines[start - 1].trim()))
|
|
162
|
+
start--;
|
|
163
|
+
const selected = lines.slice(start, end + 1).map(line => line.trim()).filter(line => /^→ \S/.test(line));
|
|
164
|
+
if (selected.length === 1)
|
|
165
|
+
return truncateEvidence(selected[0]);
|
|
166
|
+
}
|
|
167
|
+
return null;
|
|
168
|
+
}
|
|
116
169
|
function findCurrentClaudeQuestion(paneContent) {
|
|
117
170
|
// Claude 2.1.289 can wrap a current choice beyond the general prompt window.
|
|
118
171
|
// Anchor at its terminal footer, then follow only the adjoining choice block.
|
|
@@ -135,6 +188,10 @@ const CLAUDE_STATUS_WARNINGS = [
|
|
|
135
188
|
/^✘ Auto-update failed: no write permission to npm prefix · Run claude doctor$/,
|
|
136
189
|
/^tmux focus-events off · add 'set -g focus-events on' to ~\/\.tmux\.conf and re…$/,
|
|
137
190
|
/^You've used (?:\d|[1-9]\d)% of your weekly limit · resets \d{1,2}(?::\d{2})?(?:am|pm) \(UTC\)$/,
|
|
191
|
+
// #1641: Claude 2.1.293's update banner, whatever installer it names.
|
|
192
|
+
/^Update available! Run: \S.*$/,
|
|
193
|
+
// The context hint, as Claude prints it; reported as the last line below the mode bar on one seat.
|
|
194
|
+
/^new task\? \/clear to save \d+(?:\.\d+)?k tokens$/,
|
|
138
195
|
];
|
|
139
196
|
// Current Claude status rows need not end in "thinking)" or show "esc to interrupt".
|
|
140
197
|
// Completed summaries such as "✻ Crunched for 2s" lack the live ellipsis/timer shape.
|
|
@@ -152,11 +209,24 @@ function findClaudeFooterIndex(lines) {
|
|
|
152
209
|
bar--;
|
|
153
210
|
return bar;
|
|
154
211
|
}
|
|
212
|
+
// Claude's task-list rows, the only rows it draws between a live status row and the input box. Its renderer marks pending,
|
|
213
|
+
// in-progress and completed tasks with figures' small squares and tick (◻ ◼ ✔, or □ ■ √ where the terminal lacks them);
|
|
214
|
+
// an older checkbox list used ☐ ☒.
|
|
215
|
+
const CLAUDE_TASK_ROW = /^\s*(?:⎿\s+)?[◻◼✔□■√☐☒]\s/;
|
|
216
|
+
// Claude's tool and hook output: a "⎿" row, or its continuation indented past that gutter. A reply's own text continues
|
|
217
|
+
// two columns in, under its "●".
|
|
218
|
+
const CLAUDE_OUTPUT_ROW = /^(?: {2}⎿ | {5,}\S)/;
|
|
155
219
|
function findClaudeComposer(paneContent, options = {}) {
|
|
156
220
|
// Preserve columns: a multiline draft may contain indented border/prompt text.
|
|
157
221
|
// This classifier scans at most 20 physical lines; captures can be taller.
|
|
158
222
|
// Exhausting the scan without reaching the status head is unknown, not idle.
|
|
159
|
-
|
|
223
|
+
// The 20 end at the last drawn row: Claude draws inline, so a short screen in a tall pane leaves its input box above
|
|
224
|
+
// blank rows that the capture keeps.
|
|
225
|
+
const physical = paneContent.split("\n");
|
|
226
|
+
let end = physical.length;
|
|
227
|
+
while (end > 0 && physical[end - 1].trim().length === 0)
|
|
228
|
+
end--;
|
|
229
|
+
const lines = physical.slice(Math.max(0, end - 20), end)
|
|
160
230
|
.map((line) => line.trimEnd()).filter((line) => line.trim().length > 0);
|
|
161
231
|
const bar = findClaudeFooterIndex(lines);
|
|
162
232
|
const supportedWarningFooter = lines[bar]?.trim() === "⏵⏵ accept edits on (shift+tab to cycle) · ← for agents";
|
|
@@ -185,6 +255,7 @@ function findClaudeComposer(paneContent, options = {}) {
|
|
|
185
255
|
}
|
|
186
256
|
let liveStatus = null;
|
|
187
257
|
let headSeen = false;
|
|
258
|
+
let outputOnly = true;
|
|
188
259
|
for (let i = statusStart; i >= 0; i--) {
|
|
189
260
|
if (!lines[i].startsWith(indent))
|
|
190
261
|
break;
|
|
@@ -203,10 +274,12 @@ function findClaudeComposer(paneContent, options = {}) {
|
|
|
203
274
|
headSeen = true;
|
|
204
275
|
break;
|
|
205
276
|
}
|
|
277
|
+
if (CLAUDE_TASK_ROW.test(line) || !CLAUDE_OUTPUT_ROW.test(line))
|
|
278
|
+
outputOnly = false;
|
|
206
279
|
}
|
|
207
|
-
return { text: prompt.slice(indent.length), bar: lines[bar].trim(), framed, hasWarnings: bar < lines.length - 1, supportedWarningFooter, modeFooter, headSeen, liveStatus };
|
|
280
|
+
return { text: prompt.slice(indent.length), bar: lines[bar].trim(), framed, hasWarnings: bar < lines.length - 1, supportedWarningFooter, modeFooter, headSeen, liveStatus, outputOnly };
|
|
208
281
|
}
|
|
209
|
-
const unknown = () => ({ state: "unknown", rows: [], columns: 0, cursorAtEnd: false, collapsedPaste: null });
|
|
282
|
+
const unknown = (unknownReason, cursor) => ({ state: "unknown", rows: [], columns: 0, cursorAtEnd: false, collapsedPaste: null, unknownReason, ...(cursor ? { cursor } : {}) });
|
|
210
283
|
const rule = (line) => /^[─━═-]{6,}(?: .+ [─━═-]+)?$/.test(line.trim());
|
|
211
284
|
const codexFooter = (line) => isComposerFooter(line)
|
|
212
285
|
|| /(?:\b\d+% context left\b|\bContext \[)/.test(line);
|
|
@@ -251,17 +324,19 @@ function styledTextLines(screen) {
|
|
|
251
324
|
*/
|
|
252
325
|
export function inspectComposerInput(snapshot, runtime = null, owned) {
|
|
253
326
|
const promptClass = composerPromptClassForRuntime(runtime);
|
|
254
|
-
if (!snapshot
|
|
255
|
-
return unknown();
|
|
327
|
+
if (!snapshot)
|
|
328
|
+
return unknown("capture_unavailable");
|
|
329
|
+
if (snapshot.inMode)
|
|
330
|
+
return unknown("pane_in_mode", snapshot.cursor);
|
|
256
331
|
const { x, y, width, height } = snapshot.cursor;
|
|
257
332
|
if (![x, y, width, height].every(Number.isInteger) || x < 0 || y < 0 || x >= width || y >= height || width < 3 || height < 1)
|
|
258
|
-
return unknown();
|
|
333
|
+
return unknown("invalid_cursor", snapshot.cursor);
|
|
259
334
|
const styled = styledTextLines(snapshot.screen);
|
|
260
335
|
const lines = styled.map(line => line.text);
|
|
261
336
|
if (lines.at(-1) === "")
|
|
262
337
|
lines.pop();
|
|
263
338
|
if (lines.length > height || !lines[y])
|
|
264
|
-
return unknown();
|
|
339
|
+
return unknown("incomplete_frame", snapshot.cursor);
|
|
265
340
|
const footerAt = findClaudeFooterIndex(lines);
|
|
266
341
|
const footer = lines[footerAt]?.trim() ?? "";
|
|
267
342
|
let claudeEnd = footerAt - 1;
|
|
@@ -313,6 +388,7 @@ export function inspectComposerInput(snapshot, runtime = null, owned) {
|
|
|
313
388
|
// A literal placeholder or text before a moved cursor remains authored input.
|
|
314
389
|
const cursorRow = y - start;
|
|
315
390
|
let ghost;
|
|
391
|
+
let suggestionRows = [];
|
|
316
392
|
const currentRow = rows[cursorRow];
|
|
317
393
|
let cursorOffset = x === prefix ? 0 : -1;
|
|
318
394
|
let offset = 0;
|
|
@@ -327,6 +403,7 @@ export function inspectComposerInput(snapshot, runtime = null, owned) {
|
|
|
327
403
|
faint: styled[y + i].faintCells.slice(prefix + (i === 0 ? cursorOffset : 0), prefix + row.length),
|
|
328
404
|
}));
|
|
329
405
|
if (suffix.some(row => row.text.length > 0) && suffix.every(row => row.faint.every(Boolean))) {
|
|
406
|
+
suggestionRows = suffix.map(row => row.text);
|
|
330
407
|
ghost = { line: y, offset: prefix + cursorOffset, continuationRows: rows.length - cursorRow - 1 };
|
|
331
408
|
rows.splice(cursorRow + 1);
|
|
332
409
|
rows[cursorRow] = currentRow.slice(0, cursorOffset);
|
|
@@ -347,8 +424,10 @@ export function inspectComposerInput(snapshot, runtime = null, owned) {
|
|
|
347
424
|
const last = visible.length - 1;
|
|
348
425
|
const cursorAtEnd = y === start + last && x === prefix + stringWidth(visible[last] ?? "");
|
|
349
426
|
const label = visible.length === 1 && COMPOSER_COLLAPSED_PASTE_PATTERN.test(visible[0]) ? visible[0] : null;
|
|
350
|
-
|
|
351
|
-
const
|
|
427
|
+
// Claude replaces its mode hint after our paste; that noninteractive hint is not a new composer.
|
|
428
|
+
const stableFooter = prompt.glyph === "❯" && (CLAUDE_MODE_FOOTER.test(footer) || isClaudePasteHint(footer)) ? "claude-composer" : footer;
|
|
429
|
+
const frame = JSON.stringify([prompt.glyph, prefix, width, stableFooter]);
|
|
430
|
+
const input = { state: empty ? "empty" : "text", cursor: { ...snapshot.cursor }, suggestionRows, rows: visible, columns: width - prefix, cursorAtEnd, collapsedPaste: label, frame,
|
|
352
431
|
...(ghost ? { ghost } : {}) };
|
|
353
432
|
// A numbered body is allowed only as this operation's exact text in its
|
|
354
433
|
// previously empty composer. A newly observed menu gains no such authority.
|
|
@@ -361,7 +440,7 @@ export function inspectComposerInput(snapshot, runtime = null, owned) {
|
|
|
361
440
|
}
|
|
362
441
|
candidates.push(input);
|
|
363
442
|
}
|
|
364
|
-
return candidates.length === 1 ? candidates[0] : unknown();
|
|
443
|
+
return candidates.length === 1 ? candidates[0] : unknown(candidates.length ? "ambiguous_composer" : "unrecognized_composer", snapshot.cursor);
|
|
365
444
|
}
|
|
366
445
|
function findPromptDraftBeforeFooter(paneContent) {
|
|
367
446
|
const rawLines = paneContent.split("\n").map((line) => line.trimEnd());
|
|
@@ -481,17 +560,29 @@ export function classifyPaneActivity(paneContent, options = {}) {
|
|
|
481
560
|
if (lastNonBlank.length === 0) {
|
|
482
561
|
return { state: "unknown", reason: "empty_capture", evidence: null };
|
|
483
562
|
}
|
|
563
|
+
const piConfirmation = findCurrentPiDialog(paneContent);
|
|
564
|
+
if (piConfirmation)
|
|
565
|
+
return { state: "attention", reason: "selection_prompt", evidence: piConfirmation };
|
|
484
566
|
const recentLines = lastNonBlank.slice(-8);
|
|
567
|
+
const claudeComposer = findClaudeComposer(paneContent, options);
|
|
568
|
+
// Claude's own timer row above its complete, empty input box means the turn is running, not waiting at a dialogue,
|
|
569
|
+
// so for a Claude read, prompt-looking text above that box is quoted output or history. Only the timer row counts,
|
|
570
|
+
// never a selector-shaped "mid-work" line. A prompt drawn above the box shows no timer row, so it's still caught.
|
|
571
|
+
// This rests on where Claude draws a dialogue. A native check on Claude Code 2.1.309 saw the MCP menu, a Read
|
|
572
|
+
// permission and AskUserQuestion each replace the input box, including with two Read calls issued in parallel, and
|
|
573
|
+
// never drawn beside a timer row. That covers the layouts exercised, not every Claude version.
|
|
574
|
+
const historyAboveInput = options.runtime === "claude-code" && claudeComposer?.framed === true &&
|
|
575
|
+
CLAUDE_ANCHORED_MODE_FOOTER.test(claudeComposer.bar) && IDLE_PROMPT_PATTERNS.some(pattern => pattern.test(claudeComposer.text)) &&
|
|
576
|
+
!!claudeComposer.liveStatus && CLAUDE_LIVE_STATUS_PATTERN.test(claudeComposer.liveStatus);
|
|
485
577
|
// Wider window for prompt SIGNATURES so a tall footer can't push a real prompt out of view (see
|
|
486
578
|
// PROMPT_SCAN_LINES). The generic activity checks below keep the tighter 8-line window.
|
|
487
|
-
const promptScanLines = lastNonBlank.slice(-PROMPT_SCAN_LINES);
|
|
579
|
+
const promptScanLines = historyAboveInput ? [] : lastNonBlank.slice(-PROMPT_SCAN_LINES);
|
|
488
580
|
const trailingNonBlank = lastNonBlank.slice(-3);
|
|
489
581
|
const lastLine = lastNonBlank.at(-1) ?? "";
|
|
490
582
|
const idlePromptLine = trailingNonBlank.find((line) => IDLE_PROMPT_PATTERNS.some((pattern) => pattern.test(line)));
|
|
491
583
|
const idleStatusBarLine = IDLE_STATUS_BAR_PATTERNS.some((pattern) => pattern.test(lastLine))
|
|
492
584
|
? lastLine
|
|
493
585
|
: null;
|
|
494
|
-
const claudeComposer = findClaudeComposer(paneContent, options);
|
|
495
586
|
const oldQuestionEnd = promptScanLines.lastIndexOf(CLAUDE_QUESTION_FOOTER);
|
|
496
587
|
const permissionPromptEvidence = findPatternEvidence(promptScanLines, PERMISSION_PROMPT_PATTERNS);
|
|
497
588
|
// A complete later empty composer with a recognized Claude bar makes the preceding question history.
|
|
@@ -503,8 +594,19 @@ export function classifyPaneActivity(paneContent, options = {}) {
|
|
|
503
594
|
? promptScanLines.slice(oldQuestionEnd + 1)
|
|
504
595
|
: options.runtime === "codex" && !permissionPromptEvidence
|
|
505
596
|
? codexCurrentSelectionLines(paneContent) ?? promptScanLines : promptScanLines;
|
|
597
|
+
const currentComposer = options.currentClaudeDialogueOnly && options.runtime === "claude-code"
|
|
598
|
+
? composerRegion(paneContent, "claude-code")
|
|
599
|
+
: null;
|
|
600
|
+
const currentComposerText = currentComposer?.body ?? (currentComposer?.markerLine !== null && currentComposer?.markerLine !== undefined
|
|
601
|
+
&& currentComposer.closingRuleLine !== null && currentComposer.closingRuleLine !== undefined
|
|
602
|
+
? paneContent.split(/\r?\n/).slice(currentComposer.markerLine - 1, currentComposer.closingRuleLine - 1).join("\n")
|
|
603
|
+
: null);
|
|
604
|
+
const currentComposerSelection = currentComposerText
|
|
605
|
+
? findPatternEvidence(currentComposerText.split("\n").map(line => line.trimStart()), [COMPOSER_SELECTION_SCAN_PATTERN])
|
|
606
|
+
: null;
|
|
506
607
|
const selectionPromptEvidence = currentClaudeMcpMenu(paneContent) ?? findCurrentClaudeQuestion(paneContent) ??
|
|
507
|
-
|
|
608
|
+
currentComposerSelection ?? (options.currentClaudeDialogueOnly ? null
|
|
609
|
+
: findPatternEvidence(selectionLines, [COMPOSER_SELECTION_SCAN_PATTERN]));
|
|
508
610
|
if (selectionPromptEvidence) {
|
|
509
611
|
return {
|
|
510
612
|
state: "attention",
|
|
@@ -528,8 +630,22 @@ export function classifyPaneActivity(paneContent, options = {}) {
|
|
|
528
630
|
if (claudeComposer?.liveStatus) {
|
|
529
631
|
return { state: "agent_active", reason: "mid_work_pattern", evidence: claudeComposer.liveStatus };
|
|
530
632
|
}
|
|
633
|
+
// Right after a managed compaction the rows above the input box are indented compaction and hook output, so the status
|
|
634
|
+
// head is out of this window and the read stays unknown until the screen changes. For that one send, a complete framed
|
|
635
|
+
// empty box with its mode footer, and no live status in view, is idle, but only while every row above it is that output.
|
|
636
|
+
// A tall task list can push a live status out of the window, and Claude hides its status while it streams a reply, so
|
|
637
|
+
// task rows or reply text in view may be a seat that is working.
|
|
638
|
+
const postCompactEmptyBox = options.postCompactTurnBoundary === true && claudeComposer?.framed === true &&
|
|
639
|
+
claudeComposer.modeFooter && claudeComposer.outputOnly && IDLE_PROMPT_PATTERNS.some((pattern) => pattern.test(claudeComposer.text));
|
|
531
640
|
// Unframed status evidence can veto idle, but warnings require a complete input frame to prove it.
|
|
532
|
-
if (claudeComposer && (!claudeComposer.headSeen || (claudeComposer.hasWarnings && !claudeComposer.framed))) {
|
|
641
|
+
if (claudeComposer && !postCompactEmptyBox && (!claudeComposer.headSeen || (claudeComposer.hasWarnings && !claudeComposer.framed))) {
|
|
642
|
+
return { state: "unknown", reason: "no_activity_signal", evidence: truncateEvidence(lastLine) };
|
|
643
|
+
}
|
|
644
|
+
// An empty prompt row is not an empty box: authored text can start on a continuation row.
|
|
645
|
+
// Read the same bounded composer region as the input check before a mode footer can imply idle.
|
|
646
|
+
const inputBox = options.runtime !== "codex" ? composerRegion(paneContent, "claude-code") : null;
|
|
647
|
+
if (inputBox?.body && inputBox.markerLine !== null &&
|
|
648
|
+
/^\s*❯\s*$/.test(paneContent.split("\n")[inputBox.markerLine - 1])) {
|
|
533
649
|
return { state: "unknown", reason: "no_activity_signal", evidence: truncateEvidence(lastLine) };
|
|
534
650
|
}
|
|
535
651
|
// Below warning rows, any Claude mode footer completes the frame for an EMPTY composer (#808).
|
|
@@ -629,6 +745,7 @@ export async function probeSessionActivity(input) {
|
|
|
629
745
|
evidence: null,
|
|
630
746
|
};
|
|
631
747
|
}
|
|
748
|
+
const readTarget = binding?.pane ?? sessionName;
|
|
632
749
|
if (attachmentType === "external_cli") {
|
|
633
750
|
return {
|
|
634
751
|
state: "unknown",
|
|
@@ -640,7 +757,7 @@ export async function probeSessionActivity(input) {
|
|
|
640
757
|
}
|
|
641
758
|
if (runtime === "terminal") {
|
|
642
759
|
try {
|
|
643
|
-
const paneCommand = await tmuxAdapter.getPaneCommand(
|
|
760
|
+
const paneCommand = await tmuxAdapter.getPaneCommand(readTarget);
|
|
644
761
|
if (paneCommand && !IDLE_TERMINAL_COMMANDS.has(paneCommand)) {
|
|
645
762
|
return {
|
|
646
763
|
state: "running",
|
|
@@ -711,12 +828,16 @@ export async function probeSessionActivity(input) {
|
|
|
711
828
|
const captureSeq = observed ? nextCaptureSeq++ : 0;
|
|
712
829
|
try {
|
|
713
830
|
const capture = (opts) => visibleScreenOnly
|
|
714
|
-
? opts ? tmuxAdapter.capturePaneScreen(
|
|
715
|
-
: opts ? tmuxAdapter.capturePaneContent(
|
|
831
|
+
? opts ? tmuxAdapter.capturePaneScreen(readTarget, opts) : tmuxAdapter.capturePaneScreen(readTarget)
|
|
832
|
+
: opts ? tmuxAdapter.capturePaneContent(readTarget, 20, opts) : tmuxAdapter.capturePaneContent(readTarget, 20);
|
|
716
833
|
const snapshot = input.composerSnapshot ? await input.composerSnapshot().catch(() => null) : null;
|
|
717
834
|
const paneContent = snapshot?.screen ?? await capture();
|
|
718
835
|
const capturedAt = new Date().toISOString();
|
|
719
|
-
const classifyOptions = {
|
|
836
|
+
const classifyOptions = {
|
|
837
|
+
timerlessStatusIsLive: input.timerlessStatusIsLive === true,
|
|
838
|
+
currentClaudeDialogueOnly: input.currentClaudeDialogueOnly === true,
|
|
839
|
+
postCompactTurnBoundary: input.postCompactTurnBoundary === true,
|
|
840
|
+
};
|
|
720
841
|
let classification = communityHarnessPaneActivity(classifyPaneActivity(paneContent ?? "", { ...classifyOptions,
|
|
721
842
|
composerSnapshot: snapshot ?? undefined, runtime }), input.communityHarness);
|
|
722
843
|
// Claude renders its prompt suggestion faint, which the plain capture loses. When a Claude pane reads
|
|
@@ -1492,6 +1613,16 @@ export function readInputBox(pane, runtime, text, beforeEnter) {
|
|
|
1492
1613
|
return boxHoldsText(stripBoxGlyph(pane.split("\n").slice(markerLine - 1, closingRuleLine - 1)), text);
|
|
1493
1614
|
}
|
|
1494
1615
|
const CALLER_CANCELLED = "caller_cancelled";
|
|
1616
|
+
/** The readiness reason's tail when only the retained hook says the seat waits on a person: the pane shows no prompt it
|
|
1617
|
+
* recognizes. */
|
|
1618
|
+
const LATEST_HOOK_ONLY = "latest hook, pane unrecognized";
|
|
1619
|
+
/** What to do when the refusal rests only on a retained hook (a Claude waiting hook, or a Codex permission request the pane
|
|
1620
|
+
* can't confirm): a prompt declined or answered with no hook after it reads that way until someone who saw it end says so. */
|
|
1621
|
+
function clearAttentionHint(sessionName, reason) {
|
|
1622
|
+
return reason.endsWith(LATEST_HOOK_ONLY) || reason === "permission_request_unverified"
|
|
1623
|
+
? ` Look first: rig capture ${sessionName}. If that prompt is gone (declined or answered), clear it: rig seat clear-attention ${sessionName} --reason "<what you saw>".`
|
|
1624
|
+
: "";
|
|
1625
|
+
}
|
|
1495
1626
|
/** The caller's cancellation signal, or none for sends no caller owns (queue wakes, committed outbox deliveries). */
|
|
1496
1627
|
function callerSignal(opts) {
|
|
1497
1628
|
return opts?.queueWake || opts?.committedOutboxIds ? undefined : opts?.signal;
|
|
@@ -1500,8 +1631,6 @@ function callerCancelled(sessionName) {
|
|
|
1500
1631
|
return { ok: false, sessionName, sent: false, inputPhase: "not_reached", reason: CALLER_CANCELLED,
|
|
1501
1632
|
error: `The request was cancelled before any input started. Nothing was typed into '${sessionName}', and nothing will be.` };
|
|
1502
1633
|
}
|
|
1503
|
-
/** The evidence of a verified send whose path does not read the input box (an audited prompt answer). */
|
|
1504
|
-
const INPUT_BOX_UNCHECKED = { seat: "unchecked", before: "unchecked", after: "unchecked", sameProcess: false };
|
|
1505
1634
|
export class SessionTransport {
|
|
1506
1635
|
db;
|
|
1507
1636
|
guardedDelivery;
|
|
@@ -1818,11 +1947,14 @@ export class SessionTransport {
|
|
|
1818
1947
|
}
|
|
1819
1948
|
deliveryTarget(sessionName) { return this.tmuxAdapter.deliveryGuard?.maybeTarget(sessionName) ?? null; }
|
|
1820
1949
|
get deliveryGuard() { return this.tmuxAdapter.deliveryGuard; }
|
|
1821
|
-
|
|
1950
|
+
/** With an input, whether the seat's level would hold that input; without one, whether its mode holds everything. */
|
|
1951
|
+
retentionTarget(sessionName, input) {
|
|
1822
1952
|
const guard = this.tmuxAdapter.deliveryGuard;
|
|
1823
1953
|
const target = guard?.maybeTarget(sessionName);
|
|
1824
1954
|
if (!guard || !target)
|
|
1825
1955
|
return null;
|
|
1956
|
+
if (input)
|
|
1957
|
+
return guard.holdsInput(target.nodeId, input) ? target : null;
|
|
1826
1958
|
const pref = guard.preference(target.nodeId);
|
|
1827
1959
|
return pref.desired || pref.effective ? target : null;
|
|
1828
1960
|
}
|
|
@@ -1847,6 +1979,16 @@ export class SessionTransport {
|
|
|
1847
1979
|
* send, add a notice saying so. The notice is context beside the send's own result, which it never changes.
|
|
1848
1980
|
*/
|
|
1849
1981
|
async send(sessionName, text, opts) {
|
|
1982
|
+
// A terminal seat's shell would run the envelope lines as commands. Swap before the guard,
|
|
1983
|
+
// whose outbox body, hash and delivery-ID identity all key on the text actually typed.
|
|
1984
|
+
// Without the envelope there's no Sent: line, so stampISO is dropped too: the delivered-latency
|
|
1985
|
+
// segment must never edit a line of the exact text.
|
|
1986
|
+
if (opts?.exactText !== undefined && !opts.dangerouslyInteract) {
|
|
1987
|
+
const { exactText, ...rest } = opts;
|
|
1988
|
+
if (!isBoundTerminalSeat(this.db, sessionName))
|
|
1989
|
+
return this.send(sessionName, text, rest);
|
|
1990
|
+
return { ...(await this.send(sessionName, exactText, { ...rest, stampISO: undefined, typedExactly: true })), envelopeOmitted: true };
|
|
1991
|
+
}
|
|
1850
1992
|
const observe = () => { try {
|
|
1851
1993
|
return this.compactionObserver?.(sessionName) ?? null;
|
|
1852
1994
|
}
|
|
@@ -1863,7 +2005,20 @@ export class SessionTransport {
|
|
|
1863
2005
|
notice: `${sessionName} was ${seen.detail} (${when}, as OpenRig's managed compaction recorded it). This doesn't mean the restore has finished; if this message matters, check the reply and follow up.` } };
|
|
1864
2006
|
}
|
|
1865
2007
|
async sendWithoutCompactionNotice(sessionName, text, opts) {
|
|
2008
|
+
if (!opts?.urgent)
|
|
2009
|
+
return this.sendClassified(sessionName, text, opts);
|
|
2010
|
+
// Shown on delivery, and kept with a held message: who marked it urgent.
|
|
2011
|
+
console.info(`[transport] urgent send to ${sessionName}, marked by ${opts.urgent.by}`);
|
|
2012
|
+
// An explicit prompt answer is typed as keys, and a submit-only retry types no text at all: the label's letters would
|
|
2013
|
+
// act as keystrokes (a menu shortcut, say). A terminal seat's exact text would run the label as a command. Their bytes
|
|
2014
|
+
// stay exactly as given; the mark stays in the result and the log.
|
|
2015
|
+
const rawKeys = opts.dangerouslyInteract === true || opts.submitOnly === true || opts.typedExactly === true;
|
|
2016
|
+
const result = await this.sendClassified(sessionName, rawKeys ? text : withUrgentLine(text, opts.urgent.by), opts);
|
|
2017
|
+
return { ...result, urgent: opts.urgent };
|
|
2018
|
+
}
|
|
2019
|
+
async sendClassified(sessionName, text, opts) {
|
|
1866
2020
|
const guard = this.tmuxAdapter.deliveryGuard;
|
|
2021
|
+
const admission = { source: opts?.openrigNotice ? "openrig" : "agent", urgent: !!opts?.urgent, override: opts?.dangerouslyInteract === true };
|
|
1867
2022
|
if (!guard) {
|
|
1868
2023
|
// No guard, so no recorded delivery to read back: a caller already gone ends the send here.
|
|
1869
2024
|
if (callerSignal(opts)?.aborted)
|
|
@@ -1875,7 +2030,9 @@ export class SessionTransport {
|
|
|
1875
2030
|
return result;
|
|
1876
2031
|
}
|
|
1877
2032
|
const outbox = new OutboxHandler(this.db);
|
|
1878
|
-
|
|
2033
|
+
let ids = opts?.committedOutboxIds ?? [opts?.deliveryId ?? `guard-send-${randomUUID()}`];
|
|
2034
|
+
// A combined wake's members are re-checked under the lease, against the configuration that decides this send.
|
|
2035
|
+
const recheck = (held) => opts?.recheckMembers?.((input) => guard.holdsInput(guard.target(sessionName).nodeId, input), held) ?? null;
|
|
1879
2036
|
const retainedResult = (reason = "typing_guard_enabled") => ({ ok: true, sessionName, outcome: "retained", sent: false, verified: false,
|
|
1880
2037
|
outboxIds: ids, reason, warning: `Retained, not delivered. Inspect with rig seat held-messages ${sessionName}; changing protection does not replay held messages.` });
|
|
1881
2038
|
try {
|
|
@@ -1930,18 +2087,24 @@ export class SessionTransport {
|
|
|
1930
2087
|
}
|
|
1931
2088
|
}
|
|
1932
2089
|
const result = await guard.operation(sessionName, async () => {
|
|
1933
|
-
|
|
1934
|
-
|
|
2090
|
+
const members = recheck(false);
|
|
2091
|
+
const memberText = members?.text ?? text;
|
|
2092
|
+
const memberOpts = members ? { ...sendOpts, committedOutboxIds: members.outboxIds } : sendOpts;
|
|
2093
|
+
if (this.guardedDelivery && !memberOpts?.submitOnly && !memberOpts?.dangerouslyInteract && guard.needsInputCheck(sessionName)) {
|
|
2094
|
+
if (callerSignal(memberOpts)?.aborted)
|
|
1935
2095
|
return callerCancelled(sessionName);
|
|
1936
|
-
return this.guardedDelivery.send(sessionName,
|
|
2096
|
+
return this.guardedDelivery.send(sessionName, memberText, memberOpts ?? {}, memberOpts?.committedOutboxIds ?? [`guard-send-${randomUUID()}`]);
|
|
1937
2097
|
}
|
|
1938
|
-
return this.sendUnguarded(sessionName,
|
|
2098
|
+
return this.sendUnguarded(sessionName, memberText, memberOpts);
|
|
1939
2099
|
}, async (target) => {
|
|
1940
2100
|
if (opts?.submitOnly)
|
|
1941
2101
|
return { ok: false, sessionName, sent: false, reason: "typing_guard_enabled", error: "Typing guard prevents submit-only; no Enter was sent." };
|
|
1942
2102
|
// Nothing is retained yet: a caller that went away while this send waited for the lease ends it here.
|
|
1943
2103
|
if (callerSignal(opts)?.aborted)
|
|
1944
2104
|
return callerCancelled(sessionName);
|
|
2105
|
+
const members = recheck(true);
|
|
2106
|
+
if (members)
|
|
2107
|
+
ids = members.outboxIds;
|
|
1945
2108
|
this.db.transaction(() => {
|
|
1946
2109
|
for (const id of ids) {
|
|
1947
2110
|
const prior = opts?.committedOutboxIds ? outbox.getById(id) : null;
|
|
@@ -1949,7 +2112,7 @@ export class SessionTransport {
|
|
|
1949
2112
|
throw new Error("Committed wake target/ID mismatch");
|
|
1950
2113
|
outbox.retain(prior ? { ...prior, outboxId: id, tags: prior.tags ?? undefined, auditPointer: prior.auditPointer ?? undefined } : {
|
|
1951
2114
|
outboxId: id, senderSession: opts?.actorSession ?? "unknown", destinationSession: sessionName, body: text, auditPointer: opts?.auditPointer,
|
|
1952
|
-
identityProvenance: opts?.identityProvenance,
|
|
2115
|
+
identityProvenance: opts?.identityProvenance, ...(opts?.urgent ? { urgency: "urgent" } : {}),
|
|
1953
2116
|
}, target, !!opts?.committedOutboxIds);
|
|
1954
2117
|
}
|
|
1955
2118
|
})();
|
|
@@ -1969,7 +2132,7 @@ export class SessionTransport {
|
|
|
1969
2132
|
});
|
|
1970
2133
|
}
|
|
1971
2134
|
return retainedResult();
|
|
1972
|
-
});
|
|
2135
|
+
}, admission);
|
|
1973
2136
|
if (result.ok && result.sent !== false) {
|
|
1974
2137
|
await this.reconcileStartupReadiness(sessionName).catch(() => { });
|
|
1975
2138
|
}
|
|
@@ -2104,7 +2267,9 @@ export class SessionTransport {
|
|
|
2104
2267
|
attachmentType: meta.attachmentType,
|
|
2105
2268
|
timeoutMs,
|
|
2106
2269
|
binding: { sessionName, nodeId: meta.nodeId, occupant: meta.occupant, pane: meta.pane },
|
|
2270
|
+
privateInput: opts.dangerouslyInteract === true,
|
|
2107
2271
|
readinessFromPaneOnly: opts.readinessFromPaneOnly === true,
|
|
2272
|
+
postCompactTurnBoundary: opts.postCompactTurnBoundary === true,
|
|
2108
2273
|
signal: callerSignal(opts), cancelledBy: "caller",
|
|
2109
2274
|
});
|
|
2110
2275
|
if (!preWait.ok) {
|
|
@@ -2127,6 +2292,7 @@ export class SessionTransport {
|
|
|
2127
2292
|
let preVerifyContent = null;
|
|
2128
2293
|
const sessionMeta = this.getSessionMeta(sessionName);
|
|
2129
2294
|
const runtime = sessionMeta.runtime;
|
|
2295
|
+
const readTarget = sessionMeta.pane ?? sessionName;
|
|
2130
2296
|
let runtimeAdvisory;
|
|
2131
2297
|
const bindingChanged = () => JSON.stringify(this.getSessionMeta(sessionName)) !== JSON.stringify(sessionMeta);
|
|
2132
2298
|
const changedRecipient = (sent = false) => ({ ok: false, sessionName, sent, reason: "target_runtime_conflict",
|
|
@@ -2153,7 +2319,7 @@ export class SessionTransport {
|
|
|
2153
2319
|
// typing anything only if the pane still reads as in a mode. An unknown answer keeps today's path.
|
|
2154
2320
|
const readPaneInMode = async () => {
|
|
2155
2321
|
try {
|
|
2156
|
-
return typeof this.tmuxAdapter.isPaneInMode === "function" ? await this.tmuxAdapter.isPaneInMode(
|
|
2322
|
+
return typeof this.tmuxAdapter.isPaneInMode === "function" ? await this.tmuxAdapter.isPaneInMode(readTarget) : null;
|
|
2157
2323
|
}
|
|
2158
2324
|
catch {
|
|
2159
2325
|
return null;
|
|
@@ -2164,7 +2330,7 @@ export class SessionTransport {
|
|
|
2164
2330
|
return null;
|
|
2165
2331
|
try {
|
|
2166
2332
|
if (typeof this.tmuxAdapter.cancelPaneMode === "function")
|
|
2167
|
-
await this.tmuxAdapter.cancelPaneMode(
|
|
2333
|
+
await this.tmuxAdapter.cancelPaneMode(readTarget);
|
|
2168
2334
|
}
|
|
2169
2335
|
catch { /* the re-read below decides */ }
|
|
2170
2336
|
if (await readPaneInMode() !== true)
|
|
@@ -2173,14 +2339,18 @@ export class SessionTransport {
|
|
|
2173
2339
|
error: `'${sessionName}' is in a tmux mode (such as copy mode) and could not leave it, so Enter would not reach the agent. ${outcome}` };
|
|
2174
2340
|
};
|
|
2175
2341
|
// S01/S02 P2 observation context, frozen at attempt entry before any await.
|
|
2176
|
-
const observed = this.captureObserver ? {
|
|
2342
|
+
const observed = this.captureObserver && !opts?.dangerouslyInteract ? {
|
|
2177
2343
|
attemptId: randomUUID(),
|
|
2178
2344
|
binding: Object.freeze({ sessionName, nodeId: sessionMeta.nodeId, occupant: sessionMeta.occupant, pane: sessionMeta.pane }),
|
|
2179
2345
|
pre: (opts?.verify ? { state: "not_reached" } : { state: "not_requested" }),
|
|
2180
2346
|
post: (opts?.verify ? { state: "not_reached" } : { state: "not_requested" }),
|
|
2181
2347
|
sentHash: null,
|
|
2182
2348
|
} : null;
|
|
2349
|
+
let existingInput;
|
|
2350
|
+
let overrideBeforePaste;
|
|
2183
2351
|
const observe = (result) => {
|
|
2352
|
+
if (existingInput)
|
|
2353
|
+
result = { ...result, existingInput };
|
|
2184
2354
|
if (result.ok && runtimeAdvisory)
|
|
2185
2355
|
result = { ...result, warning: [runtimeAdvisory, result.warning].filter(Boolean).join(" ") };
|
|
2186
2356
|
if (observed && this.captureObserver) {
|
|
@@ -2299,7 +2469,7 @@ export class SessionTransport {
|
|
|
2299
2469
|
};
|
|
2300
2470
|
let pane;
|
|
2301
2471
|
try {
|
|
2302
|
-
pane = await this.runStage("session_transport.submit_only_precheck", () => this.tmuxAdapter.capturePaneContent(
|
|
2472
|
+
pane = await this.runStage("session_transport.submit_only_precheck", () => this.tmuxAdapter.capturePaneContent(readTarget, opts.submitOnlyCaptureLines ?? 50));
|
|
2303
2473
|
}
|
|
2304
2474
|
catch (error) {
|
|
2305
2475
|
recordMismatch(null);
|
|
@@ -2364,7 +2534,9 @@ export class SessionTransport {
|
|
|
2364
2534
|
attachmentType: sessionMeta.attachmentType,
|
|
2365
2535
|
timeoutMs: waitForIdleMs,
|
|
2366
2536
|
binding: observed?.binding,
|
|
2537
|
+
privateInput: opts?.dangerouslyInteract === true,
|
|
2367
2538
|
readinessFromPaneOnly: opts?.readinessFromPaneOnly === true,
|
|
2539
|
+
postCompactTurnBoundary: opts?.postCompactTurnBoundary === true,
|
|
2368
2540
|
signal: callerSignal(opts), cancelledBy: "caller",
|
|
2369
2541
|
});
|
|
2370
2542
|
waitEvidence = {
|
|
@@ -2422,8 +2594,10 @@ export class SessionTransport {
|
|
|
2422
2594
|
// Message-only: the re-wait runs on the leftover budget, but the
|
|
2423
2595
|
// timeout names the configured --wait-for-idle value.
|
|
2424
2596
|
timeoutLabelMs: waitForIdleMs,
|
|
2597
|
+
privateInput: opts.dangerouslyInteract === true,
|
|
2425
2598
|
binding: observed?.binding,
|
|
2426
2599
|
readinessFromPaneOnly: opts.readinessFromPaneOnly === true,
|
|
2600
|
+
postCompactTurnBoundary: opts.postCompactTurnBoundary === true,
|
|
2427
2601
|
signal: callerSignal(opts), cancelledBy: "caller",
|
|
2428
2602
|
});
|
|
2429
2603
|
waitEvidence = {
|
|
@@ -2450,12 +2624,13 @@ export class SessionTransport {
|
|
|
2450
2624
|
attachmentType: sessionMeta.attachmentType,
|
|
2451
2625
|
binding: observed?.binding,
|
|
2452
2626
|
readinessFromPaneOnly: opts.readinessFromPaneOnly === true,
|
|
2453
|
-
|
|
2627
|
+
postCompactTurnBoundary: opts.postCompactTurnBoundary === true,
|
|
2628
|
+
}, opts.dangerouslyInteract === true);
|
|
2454
2629
|
if (recheck.state !== "idle") {
|
|
2455
2630
|
const late = recheck.state === "needs_input"
|
|
2456
2631
|
? {
|
|
2457
2632
|
reason: "target_needs_input",
|
|
2458
|
-
error: `Refused: '${sessionName}' is at an interactive prompt (${recheck.reason}). A message must not select or approve it. To deliberately drive the prompt: rig send ${sessionName} "<text>" --dangerously-interact --reason "<why>". No text was sent.`,
|
|
2633
|
+
error: `Refused: '${sessionName}' is at an interactive prompt (${recheck.reason}). A message must not select or approve it. To deliberately drive the prompt: rig send ${sessionName} "<text>" --dangerously-interact --reason "<why>".${clearAttentionHint(sessionName, recheck.reason)} No text was sent.`,
|
|
2459
2634
|
}
|
|
2460
2635
|
: recheck.state === "unknown"
|
|
2461
2636
|
? {
|
|
@@ -2497,14 +2672,15 @@ export class SessionTransport {
|
|
|
2497
2672
|
// the positive-picker guard (FR-4 — the footgun separation). The advisory is carried on the
|
|
2498
2673
|
// success result via `warning` so the honest telemetry is surfaced.
|
|
2499
2674
|
let sendAdvisory;
|
|
2500
|
-
|
|
2501
|
-
|
|
2675
|
+
// Broadcast can carry wait + override: after waiting, it still uses the same deliberate-input boundary.
|
|
2676
|
+
const promptOverride = Boolean(opts?.dangerouslyInteract);
|
|
2677
|
+
if (waitForIdleMs === undefined || promptOverride) {
|
|
2502
2678
|
const readiness = await this.classifySendReadiness({
|
|
2503
2679
|
sessionName,
|
|
2504
2680
|
runtime,
|
|
2505
2681
|
attachmentType: sessionMeta.attachmentType,
|
|
2506
2682
|
binding: observed?.binding,
|
|
2507
|
-
});
|
|
2683
|
+
}, opts?.dangerouslyInteract === true);
|
|
2508
2684
|
// Explicit interaction selects key input even when readiness cannot recognize the prompt.
|
|
2509
2685
|
// Only bypassing a positive picker requires a successful audit; other states already sent.
|
|
2510
2686
|
if (opts?.dangerouslyInteract) {
|
|
@@ -2516,12 +2692,34 @@ export class SessionTransport {
|
|
|
2516
2692
|
error: "--dangerously-interact requires --reason explaining why the prompt is being driven. No text was sent.",
|
|
2517
2693
|
};
|
|
2518
2694
|
}
|
|
2519
|
-
const
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2695
|
+
const auditInput = { sessionName, readiness, actorSession: opts.actorSession ?? null, overrideReason: opts.reason ?? null };
|
|
2696
|
+
const target = this.tmuxAdapter.deliveryGuard?.maybeTarget(sessionName);
|
|
2697
|
+
// Native menus retain their audited key-driving path. Otherwise inspect under the same lease,
|
|
2698
|
+
// after buffer preparation, immediately before the adapter's final identity check and paste.
|
|
2699
|
+
if (target && readiness.state !== "needs_input") {
|
|
2700
|
+
overrideBeforePaste = async () => {
|
|
2701
|
+
const unchecked = opts.typeWithoutChecking === true;
|
|
2702
|
+
const snapshot = unchecked ? null : await this.readWithinDeadline("session_transport.override_input", () => this.tmuxAdapter.captureComposerSnapshot(target.pane ?? sessionName));
|
|
2703
|
+
const input = unchecked ? null : inspectComposerInput(snapshot, runtime);
|
|
2704
|
+
const classification = unchecked ? "not_checked" : input.state === "unknown" ? "unreadable"
|
|
2705
|
+
: input.state === "text" ? "typed_or_pasted" : input.ghost ? "suggestion_only" : "empty";
|
|
2706
|
+
existingInput = { target, classification, rows: input?.rows ?? [], suggestionRows: input?.suggestionRows ?? [],
|
|
2707
|
+
cursor: input?.cursor ?? null, fullContentsVisible: !!input && input.state !== "unknown" && !input.collapsedPaste,
|
|
2708
|
+
...(input?.unknownReason ? { reason: input.unknownReason } : {}), cleared: false };
|
|
2709
|
+
const stopped = classification === "typed_or_pasted" || classification === "unreadable";
|
|
2710
|
+
const audit = this.recordPromptOverride({ ...auditInput, input: { classification, visibleRows: existingInput.rows.length,
|
|
2711
|
+
suggestionRows: existingInput.suggestionRows.length, choice: unchecked ? "type_without_checking" : "inspect",
|
|
2712
|
+
outcome: stopped ? "stopped" : "proceed", clearAttempted: false } });
|
|
2713
|
+
if (!audit.ok)
|
|
2714
|
+
sendAdvisory = `prompt-override: audit unavailable (${audit.reason}).`;
|
|
2715
|
+
if (stopped)
|
|
2716
|
+
throw new DeliveryGuardError(classification === "unreadable" ? "override_input_unknown" : "override_input_present", classification === "unreadable" ? "Input could not be read. Nothing was typed. Inspect the native terminal, deliberately clear its prompt with native/tmux controls, then retry; or explicitly choose --type-without-checking (does not clear)."
|
|
2717
|
+
: "Existing typed or pasted input (author unknown). Nothing was typed. Inspect the shown input, deliberately clear the prompt with native/tmux controls, then retry. Manual clearing is outside OpenRig's lease and observation checks and is not recorded.");
|
|
2718
|
+
if (unchecked)
|
|
2719
|
+
sendAdvisory = [sendAdvisory, "Input was not checked or cleared; this send may join or submit existing text."].filter(Boolean).join(" ");
|
|
2720
|
+
};
|
|
2721
|
+
}
|
|
2722
|
+
const audit = overrideBeforePaste ? { ok: true } : this.recordPromptOverride(auditInput);
|
|
2525
2723
|
if (!audit.ok && readiness.state === "needs_input") {
|
|
2526
2724
|
return {
|
|
2527
2725
|
ok: false,
|
|
@@ -2541,7 +2739,7 @@ export class SessionTransport {
|
|
|
2541
2739
|
sessionName,
|
|
2542
2740
|
reason: "target_needs_input",
|
|
2543
2741
|
activity: readiness,
|
|
2544
|
-
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>". No text was sent.`,
|
|
2742
|
+
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.`,
|
|
2545
2743
|
};
|
|
2546
2744
|
}
|
|
2547
2745
|
}
|
|
@@ -2563,6 +2761,8 @@ export class SessionTransport {
|
|
|
2563
2761
|
// no-op here (the option is kept for back-compat). needs_input (positive picker) remains the
|
|
2564
2762
|
// ONLY hard refuse; unknown/stale/missing already proceed-with-advisory above.
|
|
2565
2763
|
sendAdvisory = [sendAdvisory, "target pane appears mid-task; sent anyway (busy is advisory, not a block)."].filter(Boolean).join(" ");
|
|
2764
|
+
if (runtime === "codex")
|
|
2765
|
+
sendAdvisory += " This message joins its running turn and may redirect it; for separate work, use --wait-for-idle <seconds>.";
|
|
2566
2766
|
// fall through to the send below.
|
|
2567
2767
|
}
|
|
2568
2768
|
// idle (or running/unknown — now advisory-and-proceed) → proceed to send.
|
|
@@ -2574,8 +2774,8 @@ export class SessionTransport {
|
|
|
2574
2774
|
if (opts?.verify) {
|
|
2575
2775
|
const captureSeq = observed ? nextCaptureSeq++ : 0;
|
|
2576
2776
|
try {
|
|
2577
|
-
preVerifyContent = await this.runStage("session_transport.pre_capture", () => runtime === "terminal" || !verificationSnippet(text).envelope ? this.tmuxAdapter.capturePaneContent(
|
|
2578
|
-
: this.tmuxAdapter.capturePaneContent(
|
|
2777
|
+
preVerifyContent = await this.runStage("session_transport.pre_capture", () => runtime === "terminal" || !verificationSnippet(text).envelope ? this.tmuxAdapter.capturePaneContent(readTarget, 30)
|
|
2778
|
+
: this.tmuxAdapter.capturePaneContent(readTarget, 30, { joinWrappedLines: true }));
|
|
2579
2779
|
if (observed)
|
|
2580
2780
|
observed.pre = captureSlot(preVerifyContent, this.now().toISOString(), captureSeq);
|
|
2581
2781
|
}
|
|
@@ -2623,7 +2823,7 @@ export class SessionTransport {
|
|
|
2623
2823
|
opts?.beforeWrite?.();
|
|
2624
2824
|
writeIssued = true;
|
|
2625
2825
|
if (promptOverride)
|
|
2626
|
-
return this.tmuxAdapter.sendText(sessionName, text, beforePaste, { bracketed: false });
|
|
2826
|
+
return this.tmuxAdapter.sendText(sessionName, text, beforePaste, { bracketed: false, beforePaste: overrideBeforePaste });
|
|
2627
2827
|
return beforePaste ? this.tmuxAdapter.sendText(sessionName, text, beforePaste) : this.tmuxAdapter.sendText(sessionName, text);
|
|
2628
2828
|
}, (result) => result.ok ? "ok" : "failed").catch(tagIssued);
|
|
2629
2829
|
if (!textResult.ok && textResult.code === CALLER_CANCELLED && cancel?.aborted) {
|
|
@@ -2631,13 +2831,15 @@ export class SessionTransport {
|
|
|
2631
2831
|
}
|
|
2632
2832
|
if (!textResult.ok) {
|
|
2633
2833
|
// A draft refusal is the guard holding the write before any input; it is not an attempted write.
|
|
2634
|
-
const policyRefusal = typeof textResult.code === "string" && (textResult.code.startsWith("draft_") || textResult.code === "managed_compaction_pending");
|
|
2834
|
+
const policyRefusal = typeof textResult.code === "string" && (textResult.code.startsWith("draft_") || textResult.code.startsWith("override_input_") || textResult.code === "managed_compaction_pending");
|
|
2635
2835
|
return observe({
|
|
2636
2836
|
ok: false,
|
|
2637
2837
|
sessionName,
|
|
2638
2838
|
reason: policyRefusal ? textResult.code : "send_failed",
|
|
2639
2839
|
outcome: "failed",
|
|
2640
|
-
|
|
2840
|
+
// The adapter's draft checks run before the paste (only file/buffer preparation precedes them), and its
|
|
2841
|
+
// after-paste observation cannot fail the write, so a draft_* receipt proves the target input was never reached.
|
|
2842
|
+
inputPhase: policyRefusal ? "not_reached" : "attempted",
|
|
2641
2843
|
error: `Failed to send text to '${sessionName}': ${textResult.message}`,
|
|
2642
2844
|
...(waitMode || policyRefusal ? { sent: false, ...waitEvidence } : {}),
|
|
2643
2845
|
});
|
|
@@ -2659,8 +2861,8 @@ export class SessionTransport {
|
|
|
2659
2861
|
// The seat is read from the existing --verify capture taken before the paste (the whole screen); no new read.
|
|
2660
2862
|
if (inputBoxRuntime && !promptOverride) {
|
|
2661
2863
|
const read = await this.readWithinDeadline("session_transport.input_box_capture", () => Promise.all([
|
|
2662
|
-
this.tmuxAdapter.getPanePid(
|
|
2663
|
-
this.tmuxAdapter.capturePaneContent(
|
|
2864
|
+
this.tmuxAdapter.getPanePid(readTarget).catch(() => null),
|
|
2865
|
+
this.tmuxAdapter.capturePaneContent(readTarget, 30).catch(() => null),
|
|
2664
2866
|
]));
|
|
2665
2867
|
boxBefore = { seat: readSeatBeforePaste(preVerifyContent, inputBoxRuntime, sessionName),
|
|
2666
2868
|
reading: readInputBox(read?.[1] ?? null, inputBoxRuntime, text), pid: read?.[0] ?? null, pane: read?.[1] ?? null };
|
|
@@ -2668,12 +2870,11 @@ export class SessionTransport {
|
|
|
2668
2870
|
if (runtime === "claude-code" && bindingChanged())
|
|
2669
2871
|
return observe(changedRecipient(true));
|
|
2670
2872
|
if (promptOverride) {
|
|
2671
|
-
const pane = await this.runStage("session_transport.prompt_override_pre_submit_capture", () => this.tmuxAdapter.capturePaneContent(
|
|
2873
|
+
const pane = await this.runStage("session_transport.prompt_override_pre_submit_capture", () => this.tmuxAdapter.capturePaneContent(readTarget, 50)).catch(() => null);
|
|
2672
2874
|
if (runtime === "claude-code" && bindingChanged())
|
|
2673
2875
|
return observe(changedRecipient(true));
|
|
2674
2876
|
if (!promptAnswerStaged(pane, text, runtime)) {
|
|
2675
2877
|
return observe({ ok: true, sessionName, sent: true, verified: false, outcome: "rendered-unconfirmed", promptInteraction: "unverified",
|
|
2676
|
-
...(inputBoxRuntime ? { inputBox: INPUT_BOX_UNCHECKED } : {}),
|
|
2677
2878
|
warning: [sendAdvisory, "prompt-override: answer sent as unbracketed input; submission unverified. No trailing Enter: the complete answer is not visibly staged (it may have been consumed, the prompt changed, or observation is unavailable)."].filter(Boolean).join(" ") });
|
|
2678
2879
|
}
|
|
2679
2880
|
sendAdvisory = [sendAdvisory, "prompt-override: answer sent as unbracketed input; Enter submitted the complete still-staged answer."].filter(Boolean).join(" ");
|
|
@@ -2688,7 +2889,9 @@ export class SessionTransport {
|
|
|
2688
2889
|
reason: policyRefusal ? submitResult.code : "submit_failed",
|
|
2689
2890
|
outcome: "failed",
|
|
2690
2891
|
inputPhase: "written",
|
|
2691
|
-
error:
|
|
2892
|
+
error: policyRefusal
|
|
2893
|
+
? `Text was pasted into '${sessionName}', but Enter was not sent: ${submitResult.message} Inspect the current input before submitting it.`
|
|
2894
|
+
: `Text is in '${sessionName}', but the Enter reported a failure, so the submission outcome is unconfirmed. The agent may need manual attention.`,
|
|
2692
2895
|
...(waitMode || policyRefusal ? { sent: true, ...waitEvidence } : {}),
|
|
2693
2896
|
});
|
|
2694
2897
|
}
|
|
@@ -2711,8 +2914,8 @@ export class SessionTransport {
|
|
|
2711
2914
|
await this.sleep(500);
|
|
2712
2915
|
const captureSeq = observed ? nextCaptureSeq++ : 0;
|
|
2713
2916
|
try {
|
|
2714
|
-
const content = await this.runStage("session_transport.post_capture", () => runtime === "terminal" || !verificationSnippet(text).envelope ? this.tmuxAdapter.capturePaneContent(
|
|
2715
|
-
: this.tmuxAdapter.capturePaneContent(
|
|
2917
|
+
const content = await this.runStage("session_transport.post_capture", () => runtime === "terminal" || !verificationSnippet(text).envelope ? this.tmuxAdapter.capturePaneContent(readTarget, 30)
|
|
2918
|
+
: this.tmuxAdapter.capturePaneContent(readTarget, 30, { joinWrappedLines: true }));
|
|
2716
2919
|
if (observed)
|
|
2717
2920
|
observed.post = captureSlot(content, this.now().toISOString(), captureSeq);
|
|
2718
2921
|
// A terminal prompt is command history, not an agent composer. Preserve
|
|
@@ -2727,26 +2930,23 @@ export class SessionTransport {
|
|
|
2727
2930
|
const count = envelope ? (pane, expected) => countEnvelopeOccurrences(pane, expected, promptClass) : countOccurrences;
|
|
2728
2931
|
const preCount = count(transcript(preVerifyContent), snippet);
|
|
2729
2932
|
const postCount = count(transcript(content), snippet);
|
|
2730
|
-
// An audited prompt answer reads no box (no extra read is added for it), so it
|
|
2731
|
-
//
|
|
2933
|
+
// An audited prompt answer reads no box (no extra read is added for it), so it reads unconfirmed; it never
|
|
2934
|
+
// falls back to the count below.
|
|
2732
2935
|
const inputBox = boxBefore && inputBoxRuntime
|
|
2733
|
-
? await this.inputBoxEvidence(sessionName, sessionMeta, boxBefore, readInputBox(content, inputBoxRuntime, text, boxBefore.pane))
|
|
2734
|
-
:
|
|
2936
|
+
? await this.inputBoxEvidence(sessionName, readTarget, sessionMeta, boxBefore, readInputBox(content, inputBoxRuntime, text, boxBefore.pane))
|
|
2937
|
+
: undefined;
|
|
2735
2938
|
// With the setting on, only a seat proven idle before the paste and input-box evidence verify: exact before
|
|
2736
2939
|
// Enter, empty after, same process. A not-idle or unknown seat always reads unconfirmed.
|
|
2737
2940
|
const verified = inputBoxRuntime
|
|
2738
2941
|
? inputBox?.seat === "idle" && inputBox.before === "exact" && inputBox.after === "empty" && inputBox.sameProcess
|
|
2739
2942
|
: postCount > preCount;
|
|
2740
|
-
return observe({ ok: true, sessionName, ...interaction, verified, outcome: verified ? "delivered" : "rendered-unconfirmed", ...(
|
|
2943
|
+
return observe({ ok: true, sessionName, ...interaction, verified, outcome: verified ? "delivered" : "rendered-unconfirmed", ...(sendAdvisory ? { warning: sendAdvisory } : {}), ...(waitMode ? { sent: true, ...waitEvidence } : {}) });
|
|
2741
2944
|
}
|
|
2742
2945
|
catch {
|
|
2743
2946
|
if (observed && observed.post.state === "not_reached") {
|
|
2744
2947
|
observed.post = { state: "unavailable", cause: "capture_error", capturedAt: this.now().toISOString(), captureSeq };
|
|
2745
2948
|
}
|
|
2746
|
-
|
|
2747
|
-
? { seat: boxBefore.seat, before: boxBefore.reading, after: "unavailable", sameProcess: false }
|
|
2748
|
-
: inputBoxRuntime && promptOverride ? INPUT_BOX_UNCHECKED : undefined;
|
|
2749
|
-
return observe({ ok: true, sessionName, ...interaction, verified: false, outcome: "rendered-unconfirmed", ...(inputBox ? { inputBox } : {}), ...(sendAdvisory ? { warning: sendAdvisory } : {}), ...(waitMode ? { sent: true, ...waitEvidence } : {}) });
|
|
2949
|
+
return observe({ ok: true, sessionName, ...interaction, verified: false, outcome: "rendered-unconfirmed", ...(sendAdvisory ? { warning: sendAdvisory } : {}), ...(waitMode ? { sent: true, ...waitEvidence } : {}) });
|
|
2750
2950
|
}
|
|
2751
2951
|
}
|
|
2752
2952
|
return observe({ ok: true, sessionName, ...interaction, ...(sendAdvisory ? { warning: sendAdvisory } : {}), ...(waitMode ? { sent: true, ...waitEvidence } : {}) });
|
|
@@ -2780,8 +2980,8 @@ export class SessionTransport {
|
|
|
2780
2980
|
}
|
|
2781
2981
|
}
|
|
2782
2982
|
/** After the post-Enter capture: the same pane process (pid read before Enter and now) and the same binding. */
|
|
2783
|
-
async inputBoxEvidence(sessionName, meta, before, after) {
|
|
2784
|
-
const pid = await this.readWithinDeadline("session_transport.input_box_pane_pid", () => this.tmuxAdapter.getPanePid(
|
|
2983
|
+
async inputBoxEvidence(sessionName, paneTarget, meta, before, after) {
|
|
2984
|
+
const pid = await this.readWithinDeadline("session_transport.input_box_pane_pid", () => this.tmuxAdapter.getPanePid(paneTarget));
|
|
2785
2985
|
let sameBinding = false;
|
|
2786
2986
|
try {
|
|
2787
2987
|
const now = this.getSessionMeta(sessionName);
|
|
@@ -2869,7 +3069,7 @@ export class SessionTransport {
|
|
|
2869
3069
|
return {
|
|
2870
3070
|
ok: false,
|
|
2871
3071
|
reason: "target_needs_input",
|
|
2872
|
-
error: `Target requires attention (${activity.reason}). No text was sent.`,
|
|
3072
|
+
error: `Target requires attention (${activity.reason}).${clearAttentionHint(input.sessionName, activity.reason)} No text was sent.`,
|
|
2873
3073
|
activity,
|
|
2874
3074
|
waitedMs,
|
|
2875
3075
|
attempts,
|
|
@@ -2887,7 +3087,7 @@ export class SessionTransport {
|
|
|
2887
3087
|
async observeReadinessWithin(input, remainingMs, cancel) {
|
|
2888
3088
|
if (cancel?.aborted)
|
|
2889
3089
|
return null;
|
|
2890
|
-
const observation = this.classifySendReadiness(input);
|
|
3090
|
+
const observation = this.classifySendReadiness(input, input.privateInput);
|
|
2891
3091
|
observation.catch(() => undefined);
|
|
2892
3092
|
let timer;
|
|
2893
3093
|
let onAbort;
|
|
@@ -2909,25 +3109,38 @@ export class SessionTransport {
|
|
|
2909
3109
|
const unknown = { state: "unknown", detail: "Claude runtime observation or older launch binding is unavailable" };
|
|
2910
3110
|
try {
|
|
2911
3111
|
const panes = await this.tmuxAdapter.listPanes(sessionName);
|
|
2912
|
-
if (
|
|
2913
|
-
return { state: "conflict", detail: "The session
|
|
3112
|
+
if (!pane && panes.length > 1) {
|
|
3113
|
+
return { state: "conflict", detail: "The session has several panes but no recorded bound pane" };
|
|
3114
|
+
}
|
|
3115
|
+
if (panes.length > 0 && pane && !panes.some(candidate => candidate.id === pane)) {
|
|
3116
|
+
return { state: "conflict", detail: "The session does not have the expected bound pane" };
|
|
2914
3117
|
}
|
|
2915
3118
|
if (!pane || panes.length === 0)
|
|
2916
3119
|
return unknown;
|
|
2917
|
-
|
|
2918
|
-
if (
|
|
2919
|
-
|
|
3120
|
+
let panePid;
|
|
3121
|
+
if (panes.length === 1) {
|
|
3122
|
+
const [sessionPid, observedPanePid] = await Promise.all([this.tmuxAdapter.getPanePid(sessionName), this.tmuxAdapter.getPanePid(pane)]);
|
|
3123
|
+
if (sessionPid && observedPanePid && sessionPid !== observedPanePid)
|
|
3124
|
+
return { state: "conflict", detail: "The session and bound pane name different processes" };
|
|
3125
|
+
panePid = observedPanePid;
|
|
3126
|
+
}
|
|
3127
|
+
else {
|
|
3128
|
+
// A session target resolves to its current pane, which may be a sibling
|
|
3129
|
+
// panel. With more than one pane, the immutable bound pane is the only
|
|
3130
|
+
// process identity that can be compared safely.
|
|
3131
|
+
panePid = await this.tmuxAdapter.getPanePid(pane);
|
|
3132
|
+
}
|
|
2920
3133
|
const observation = await observeClaudeDelivery({ target: pane, tmux: this.tmuxAdapter, listProcesses: this.listProcesses, expectedToken: resumeToken, rotation });
|
|
2921
3134
|
// Refusal already has positive evidence; a later failed read cannot erase it.
|
|
2922
3135
|
if (observation.state === "conflict" || observation.state === "idle_shell")
|
|
2923
3136
|
return observation;
|
|
2924
3137
|
const after = await this.tmuxAdapter.listPanes(sessionName);
|
|
2925
|
-
if (after.length >
|
|
3138
|
+
if (after.length > 0 && !after.some(candidate => candidate.id === pane))
|
|
2926
3139
|
return { state: "conflict", detail: "The bound pane changed during delivery verification" };
|
|
2927
3140
|
const currentPid = await this.tmuxAdapter.getPanePid(pane);
|
|
2928
3141
|
if (panePid && currentPid && panePid !== currentPid)
|
|
2929
3142
|
return { state: "conflict", detail: "The bound pane process changed during delivery verification" };
|
|
2930
|
-
return after.length === 0 || !
|
|
3143
|
+
return after.length === 0 || !panePid || !currentPid ? unknown : observation;
|
|
2931
3144
|
}
|
|
2932
3145
|
catch {
|
|
2933
3146
|
return unknown;
|
|
@@ -2937,8 +3150,9 @@ export class SessionTransport {
|
|
|
2937
3150
|
* Null when no shell label is observed, or the expected native process is verified. */
|
|
2938
3151
|
async unverifiedShellForeground(sessionName, runtime, pane, resumeToken) {
|
|
2939
3152
|
let paneCommand;
|
|
3153
|
+
const readTarget = pane ?? sessionName;
|
|
2940
3154
|
try {
|
|
2941
|
-
paneCommand = await this.tmuxAdapter.getPaneCommand(
|
|
3155
|
+
paneCommand = await this.tmuxAdapter.getPaneCommand(readTarget);
|
|
2942
3156
|
}
|
|
2943
3157
|
catch {
|
|
2944
3158
|
return null;
|
|
@@ -2949,17 +3163,28 @@ export class SessionTransport {
|
|
|
2949
3163
|
// Reuse stable, foreground, pane-descendant Codex proof. A resumed process
|
|
2950
3164
|
// must name this session's token. Stale UI, a Node
|
|
2951
3165
|
// launcher alone, missing observations or a native process elsewhere cannot clear it.
|
|
2952
|
-
const native = await verifyCodexPaneProcess({ target:
|
|
3166
|
+
const native = await verifyCodexPaneProcess({ target: readTarget, tmux: this.tmuxAdapter,
|
|
2953
3167
|
listProcesses: this.listProcesses, expectedToken: resumeToken });
|
|
2954
3168
|
if (native && await this.tmuxAdapter.getPanePid(pane).catch(() => null) === native.panePid)
|
|
2955
3169
|
return null;
|
|
2956
3170
|
}
|
|
2957
3171
|
return paneCommand.replace(/^-/, "");
|
|
2958
3172
|
}
|
|
2959
|
-
async classifySendReadiness(input) {
|
|
3173
|
+
async classifySendReadiness(input, privateInput = false) {
|
|
2960
3174
|
const now = this.now();
|
|
3175
|
+
let binding = input.binding;
|
|
3176
|
+
try {
|
|
3177
|
+
const stored = this.getSessionMeta(input.sessionName);
|
|
3178
|
+
binding = {
|
|
3179
|
+
sessionName: input.sessionName,
|
|
3180
|
+
nodeId: binding?.nodeId ?? stored.nodeId,
|
|
3181
|
+
occupant: binding?.occupant ?? stored.occupant,
|
|
3182
|
+
pane: binding?.pane ?? stored.pane,
|
|
3183
|
+
};
|
|
3184
|
+
}
|
|
3185
|
+
catch { /* An unavailable binding keeps the existing session-name fallback. */ }
|
|
2961
3186
|
const composerSnapshot = this.tmuxAdapter.deliveryGuard?.needsInputCheck(input.sessionName)
|
|
2962
|
-
? () => this.tmuxAdapter.captureComposerSnapshot(
|
|
3187
|
+
? () => this.tmuxAdapter.captureComposerSnapshot(binding?.pane ?? input.sessionName) : undefined;
|
|
2963
3188
|
const hookActivity = this.agentActivityStore?.getLatestForNode({
|
|
2964
3189
|
sessionName: input.sessionName,
|
|
2965
3190
|
now,
|
|
@@ -2989,6 +3214,21 @@ export class SessionTransport {
|
|
|
2989
3214
|
hookActivity.reason !== "permission_prompt_cleared") {
|
|
2990
3215
|
// Fresh hook (within the 15s send window): authoritative for any state.
|
|
2991
3216
|
if (this.hookFreshForSend(hookActivity, now)) {
|
|
3217
|
+
if (hookActivity.state === "running" && input.runtime === "claude-code") {
|
|
3218
|
+
const paneVeto = await probeSessionActivity({
|
|
3219
|
+
composerSnapshot,
|
|
3220
|
+
currentClaudeDialogueOnly: true,
|
|
3221
|
+
sessionName: input.sessionName,
|
|
3222
|
+
runtime: input.runtime,
|
|
3223
|
+
attachmentType: input.attachmentType,
|
|
3224
|
+
tmuxAdapter: this.tmuxAdapter,
|
|
3225
|
+
now,
|
|
3226
|
+
captureObserver: privateInput ? undefined : this.captureObserver,
|
|
3227
|
+
binding,
|
|
3228
|
+
});
|
|
3229
|
+
if (paneVeto.state === "needs_input")
|
|
3230
|
+
return paneVeto;
|
|
3231
|
+
}
|
|
2992
3232
|
return hookActivity;
|
|
2993
3233
|
}
|
|
2994
3234
|
// OPR.0.4.3.28 Part A — a stale-but-latest `idle` hook (older than the 15s
|
|
@@ -3012,8 +3252,8 @@ export class SessionTransport {
|
|
|
3012
3252
|
attachmentType: input.attachmentType,
|
|
3013
3253
|
tmuxAdapter: this.tmuxAdapter,
|
|
3014
3254
|
now,
|
|
3015
|
-
captureObserver: this.captureObserver,
|
|
3016
|
-
binding
|
|
3255
|
+
captureObserver: privateInput ? undefined : this.captureObserver,
|
|
3256
|
+
binding,
|
|
3017
3257
|
});
|
|
3018
3258
|
if (paneVeto.state === "needs_input") {
|
|
3019
3259
|
return paneVeto;
|
|
@@ -3028,10 +3268,11 @@ export class SessionTransport {
|
|
|
3028
3268
|
attachmentType: input.attachmentType,
|
|
3029
3269
|
tmuxAdapter: this.tmuxAdapter,
|
|
3030
3270
|
now,
|
|
3031
|
-
captureObserver: this.captureObserver,
|
|
3032
|
-
binding
|
|
3271
|
+
captureObserver: privateInput ? undefined : this.captureObserver,
|
|
3272
|
+
binding,
|
|
3033
3273
|
// Pane-only readiness must not send into a status row whose timer hasn't appeared yet.
|
|
3034
3274
|
timerlessStatusIsLive: input.readinessFromPaneOnly === true,
|
|
3275
|
+
postCompactTurnBoundary: input.postCompactTurnBoundary === true,
|
|
3035
3276
|
});
|
|
3036
3277
|
// A Codex empty-composer placeholder is also on screen while Codex streams with its status
|
|
3037
3278
|
// row hidden, so a placeholder-only idle verdict must not override a display-fresh (<5min)
|
|
@@ -3059,7 +3300,7 @@ export class SessionTransport {
|
|
|
3059
3300
|
return {
|
|
3060
3301
|
...hookActivity,
|
|
3061
3302
|
state: "needs_input",
|
|
3062
|
-
reason: `${hookActivity.rawSubtype ?? hookActivity.rawEvent ?? "needs_input"};
|
|
3303
|
+
reason: `${hookActivity.rawSubtype ?? hookActivity.rawEvent ?? "needs_input"}; ${LATEST_HOOK_ONLY}`,
|
|
3063
3304
|
};
|
|
3064
3305
|
}
|
|
3065
3306
|
return probe;
|
|
@@ -3086,7 +3327,34 @@ export class SessionTransport {
|
|
|
3086
3327
|
let hasUrl = null;
|
|
3087
3328
|
let hasToken = null;
|
|
3088
3329
|
let hasRuntime = null;
|
|
3089
|
-
|
|
3330
|
+
const urlNames = ["OPENRIG_URL", "RIGGED_URL", "OPENRIG_PORT", "RIGGED_PORT"];
|
|
3331
|
+
const tokenNames = ["OPENRIG_ACTIVITY_HOOK_TOKEN", "RIGGED_ACTIVITY_HOOK_TOKEN"];
|
|
3332
|
+
const runtimeNames = ["OPENRIG_RUNTIME", "RIGGED_RUNTIME"];
|
|
3333
|
+
const inspected = typeof this.tmuxAdapter?.hasSessionEnvBatch === "function" || typeof this.tmuxAdapter?.hasSessionEnv === "function";
|
|
3334
|
+
if (typeof this.tmuxAdapter?.hasSessionEnvBatch === "function") {
|
|
3335
|
+
// One fresh listing for every name, read once per diagnosis: all aliases see the same moment. A failed listing
|
|
3336
|
+
// leaves every name unknown (never absent) and is not retried name by name.
|
|
3337
|
+
let presence = {};
|
|
3338
|
+
try {
|
|
3339
|
+
presence = await this.tmuxAdapter.hasSessionEnvBatch(sessionName, [...urlNames, ...tokenNames, ...runtimeNames]);
|
|
3340
|
+
}
|
|
3341
|
+
catch { /* every name stays unknown */ }
|
|
3342
|
+
const anyPresent = (names) => {
|
|
3343
|
+
let unknown = false;
|
|
3344
|
+
for (const name of names) {
|
|
3345
|
+
const present = presence[name];
|
|
3346
|
+
if (present === true)
|
|
3347
|
+
return true;
|
|
3348
|
+
if (present !== false)
|
|
3349
|
+
unknown = true;
|
|
3350
|
+
}
|
|
3351
|
+
return unknown ? null : false;
|
|
3352
|
+
};
|
|
3353
|
+
hasUrl = anyPresent(urlNames);
|
|
3354
|
+
hasToken = anyPresent(tokenNames);
|
|
3355
|
+
hasRuntime = anyPresent(runtimeNames);
|
|
3356
|
+
}
|
|
3357
|
+
else if (typeof this.tmuxAdapter?.hasSessionEnv === "function") {
|
|
3090
3358
|
const anyPresent = async (names) => {
|
|
3091
3359
|
let unknown = false;
|
|
3092
3360
|
for (const name of names) {
|
|
@@ -3103,9 +3371,9 @@ export class SessionTransport {
|
|
|
3103
3371
|
}
|
|
3104
3372
|
return unknown ? null : false;
|
|
3105
3373
|
};
|
|
3106
|
-
hasUrl = await anyPresent(
|
|
3107
|
-
hasToken = await anyPresent(
|
|
3108
|
-
hasRuntime = await anyPresent(
|
|
3374
|
+
hasUrl = await anyPresent(urlNames);
|
|
3375
|
+
hasToken = await anyPresent(tokenNames);
|
|
3376
|
+
hasRuntime = await anyPresent(runtimeNames);
|
|
3109
3377
|
}
|
|
3110
3378
|
let fileEndpoint = null;
|
|
3111
3379
|
try {
|
|
@@ -3119,8 +3387,7 @@ export class SessionTransport {
|
|
|
3119
3387
|
{ label: "OPENRIG_RUNTIME", present: hasRuntime },
|
|
3120
3388
|
];
|
|
3121
3389
|
const absent = prerequisites.filter((p) => p.present === false).map((p) => p.label);
|
|
3122
|
-
const unread =
|
|
3123
|
-
? prerequisites.filter((p) => p.present === null).map((p) => p.label) : [];
|
|
3390
|
+
const unread = inspected ? prerequisites.filter((p) => p.present === null).map((p) => p.label) : [];
|
|
3124
3391
|
const envNote = absent.length > 0 || unread.length > 0
|
|
3125
3392
|
? `seat-env UNKNOWN — ${[
|
|
3126
3393
|
absent.length > 0 ? `${absent.join(", ")} absent from the tmux session environment` : null,
|
|
@@ -3195,6 +3462,7 @@ export class SessionTransport {
|
|
|
3195
3462
|
detectedReason: input.readiness.reason,
|
|
3196
3463
|
evidenceSource: input.readiness.evidenceSource,
|
|
3197
3464
|
overrideReason: input.overrideReason,
|
|
3465
|
+
...(input.input ? { input: input.input } : {}),
|
|
3198
3466
|
});
|
|
3199
3467
|
return { ok: true };
|
|
3200
3468
|
}
|
|
@@ -3263,7 +3531,21 @@ export class SessionTransport {
|
|
|
3263
3531
|
const inputBox = opts?.inputBox && (runtime === "claude-code" || runtime === "codex")
|
|
3264
3532
|
? await this.captureInputBox(sessionName, runtime, opts.inputBoxBudget ?? { remainingMs: CAPTURE_INPUT_BOX_DEADLINE_MS })
|
|
3265
3533
|
: undefined;
|
|
3266
|
-
|
|
3534
|
+
const promptPane = opts?.promptPane ? await this.capturePromptPane(sessionName, content, runtime) : undefined;
|
|
3535
|
+
return { ok: true, sessionName, content, lines, ...(inputBox ? { inputBox } : {}), ...(promptPane ? { promptPane } : {}) };
|
|
3536
|
+
}
|
|
3537
|
+
/** A prompt drawn in a pane smaller than an 80x24 terminal may be cut off, so a reader can't see what the seat asks.
|
|
3538
|
+
* The pane size is read only when the captured screen shows a prompt. */
|
|
3539
|
+
async capturePromptPane(sessionName, content, runtime) {
|
|
3540
|
+
const prompt = classifyPaneActivity(content, { runtime });
|
|
3541
|
+
if (prompt.reason !== "permission_prompt" && prompt.reason !== "selection_prompt")
|
|
3542
|
+
return undefined;
|
|
3543
|
+
const panes = await this.tmuxAdapter.listPanes(sessionName).catch(() => []);
|
|
3544
|
+
const pane = panes.find(entry => entry.active) ?? panes[0];
|
|
3545
|
+
if (!pane || (pane.width >= 80 && pane.height >= 24))
|
|
3546
|
+
return undefined;
|
|
3547
|
+
return { width: pane.width, height: pane.height,
|
|
3548
|
+
hint: `pane ${pane.width}x${pane.height} is smaller than 80x24, so the prompt may be cut off; resize it (${tmuxResizeWindowCommand(sessionName, 120, 40)}) and capture again` };
|
|
3267
3549
|
}
|
|
3268
3550
|
/** The input box, or unknown when its reads don't finish within the budget's remaining time (or none is left): the
|
|
3269
3551
|
* pane text is already in hand, so a slow read never holds the capture. The time spent comes off the budget. A read
|
|
@@ -3341,6 +3623,7 @@ export class SessionTransport {
|
|
|
3341
3623
|
// (h) thread the resolved stampISO so send()'s delivered-latency calc measures from the SAME
|
|
3342
3624
|
// compose stamp the envelope carries (opts may not have carried one; the local stampISO is truth).
|
|
3343
3625
|
const result = await this.send(session.sessionName, perRecipientText, { ...opts, stampISO,
|
|
3626
|
+
exactText: opts?.envelopeSender ? text : undefined,
|
|
3344
3627
|
deliveryId: opts?.deliveryId ? `${opts.deliveryId}:${session.sessionName}` : undefined });
|
|
3345
3628
|
results.push(result);
|
|
3346
3629
|
}
|