@openrig/cli 0.7.15 → 0.7.17
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 -9
- package/daemon/assets/onboarding/02-self-and-competent-action.md +5 -41
- package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/README.md +26 -7
- package/daemon/assets/plugins/openrig/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/skills/working-with-an-openrig-team/SKILL.md +22 -6
- package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/SKILL.md +4 -1
- package/daemon/assets/plugins/openrig-core/skills/seat-continuity-and-handover/SKILL.md +1 -1
- package/daemon/assets/skills/rigs/SKILL.md +155 -41
- package/daemon/assets/skills/rigs/references/installing-for-someone.md +47 -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 +169 -40
- package/daemon/context-packs/reference/getting-started.md +12 -11
- package/daemon/context-packs/reference/manifest.yaml +4 -1
- package/daemon/context-packs/reference/product-journey-sdlc.md +348 -0
- package/daemon/context-packs/reference/rig-spec.md +92 -4
- package/daemon/context-packs/reference/whats-new.md +397 -5
- 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/SKILL.md +4 -1
- package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-software-factory/references/worked-example.md +1 -1
- package/daemon/context-packs/skills/core/openrig-upgrade/SKILL.md +2 -0
- package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/working-with-an-openrig-team/SKILL.md +22 -6
- package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
- package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
- package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
- package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
- package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
- package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/seat-continuity-and-handover/SKILL.md +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.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +42 -6
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume.js +4 -2
- package/daemon/dist/adapters/claude-resume.js.map +1 -1
- package/daemon/dist/adapters/codex-resume.d.ts +2 -0
- package/daemon/dist/adapters/codex-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-resume.js +28 -11
- package/daemon/dist/adapters/codex-resume.js.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts +15 -0
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js +75 -28
- package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/openshell-driver.d.ts +1 -0
- package/daemon/dist/adapters/openshell-driver.d.ts.map +1 -1
- package/daemon/dist/adapters/openshell-driver.js +3 -0
- package/daemon/dist/adapters/openshell-driver.js.map +1 -1
- package/daemon/dist/adapters/openshell-podman-observer.d.ts +9 -7
- package/daemon/dist/adapters/openshell-podman-observer.d.ts.map +1 -1
- package/daemon/dist/adapters/openshell-podman-observer.js +20 -3
- package/daemon/dist/adapters/openshell-podman-observer.js.map +1 -1
- package/daemon/dist/adapters/pi-runner.d.ts +38 -4
- package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner.js +244 -30
- package/daemon/dist/adapters/pi-runner.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +6 -0
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +17 -3
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/build-info.js +3 -3
- package/daemon/dist/db/all-migrations.d.ts.map +1 -1
- package/daemon/dist/db/all-migrations.js +8 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrations/167_seat_handover_attempts.d.ts +14 -0
- package/daemon/dist/db/migrations/167_seat_handover_attempts.d.ts.map +1 -0
- package/daemon/dist/db/migrations/167_seat_handover_attempts.js +54 -0
- package/daemon/dist/db/migrations/167_seat_handover_attempts.js.map +1 -0
- package/daemon/dist/db/migrations/168_context_usage_occupant_generation.d.ts +6 -0
- package/daemon/dist/db/migrations/168_context_usage_occupant_generation.d.ts.map +1 -0
- package/daemon/dist/db/migrations/168_context_usage_occupant_generation.js +10 -0
- package/daemon/dist/db/migrations/168_context_usage_occupant_generation.js.map +1 -0
- package/daemon/dist/db/migrations/169_seat_runtime_home_records.d.ts +5 -0
- package/daemon/dist/db/migrations/169_seat_runtime_home_records.d.ts.map +1 -0
- package/daemon/dist/db/migrations/169_seat_runtime_home_records.js +25 -0
- package/daemon/dist/db/migrations/169_seat_runtime_home_records.js.map +1 -0
- package/daemon/dist/db/migrations/170_rig_delivery_drains.d.ts +3 -0
- package/daemon/dist/db/migrations/170_rig_delivery_drains.d.ts.map +1 -0
- package/daemon/dist/db/migrations/170_rig_delivery_drains.js +21 -0
- package/daemon/dist/db/migrations/170_rig_delivery_drains.js.map +1 -0
- package/daemon/dist/domain/claim-service.d.ts +1 -3
- package/daemon/dist/domain/claim-service.d.ts.map +1 -1
- package/daemon/dist/domain/claim-service.js +3 -1
- package/daemon/dist/domain/claim-service.js.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts +11 -0
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.js +83 -36
- package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
- package/daemon/dist/domain/codex-filesystem-preflight.d.ts +33 -0
- package/daemon/dist/domain/codex-filesystem-preflight.d.ts.map +1 -0
- package/daemon/dist/domain/codex-filesystem-preflight.js +255 -0
- package/daemon/dist/domain/codex-filesystem-preflight.js.map +1 -0
- package/daemon/dist/domain/codex-member-permissions.d.ts +23 -2
- package/daemon/dist/domain/codex-member-permissions.d.ts.map +1 -1
- package/daemon/dist/domain/codex-member-permissions.js +55 -9
- package/daemon/dist/domain/codex-member-permissions.js.map +1 -1
- package/daemon/dist/domain/codex-network-default.d.ts +13 -0
- package/daemon/dist/domain/codex-network-default.d.ts.map +1 -1
- package/daemon/dist/domain/codex-network-default.js +37 -30
- package/daemon/dist/domain/codex-network-default.js.map +1 -1
- package/daemon/dist/domain/codex-thread-id.d.ts +13 -0
- package/daemon/dist/domain/codex-thread-id.d.ts.map +1 -1
- package/daemon/dist/domain/codex-thread-id.js +132 -9
- package/daemon/dist/domain/codex-thread-id.js.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.js +59 -13
- package/daemon/dist/domain/compaction-restore-notice.js.map +1 -1
- package/daemon/dist/domain/connection-contract.d.ts.map +1 -1
- package/daemon/dist/domain/connection-contract.js +2 -1
- package/daemon/dist/domain/connection-contract.js.map +1 -1
- package/daemon/dist/domain/context-usage-store.d.ts +11 -2
- package/daemon/dist/domain/context-usage-store.d.ts.map +1 -1
- package/daemon/dist/domain/context-usage-store.js +33 -13
- package/daemon/dist/domain/context-usage-store.js.map +1 -1
- package/daemon/dist/domain/current-work.d.ts +5 -0
- package/daemon/dist/domain/current-work.d.ts.map +1 -1
- package/daemon/dist/domain/current-work.js +66 -4
- package/daemon/dist/domain/current-work.js.map +1 -1
- package/daemon/dist/domain/destination-successor.d.ts +3 -0
- package/daemon/dist/domain/destination-successor.d.ts.map +1 -0
- package/daemon/dist/domain/destination-successor.js +49 -0
- package/daemon/dist/domain/destination-successor.js.map +1 -0
- package/daemon/dist/domain/environment-lifecycle.d.ts +15 -0
- package/daemon/dist/domain/environment-lifecycle.d.ts.map +1 -1
- package/daemon/dist/domain/environment-lifecycle.js +22 -4
- package/daemon/dist/domain/environment-lifecycle.js.map +1 -1
- package/daemon/dist/domain/expected-conversation.d.ts.map +1 -1
- package/daemon/dist/domain/expected-conversation.js +26 -11
- package/daemon/dist/domain/expected-conversation.js.map +1 -1
- package/daemon/dist/domain/gateway/destination-resolver.d.ts +4 -0
- package/daemon/dist/domain/gateway/destination-resolver.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/destination-resolver.js +10 -3
- package/daemon/dist/domain/gateway/destination-resolver.js.map +1 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts +3 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.js +14 -4
- package/daemon/dist/domain/gateway/operator-delivery-engine.js.map +1 -1
- package/daemon/dist/domain/health-diagnosis.d.ts.map +1 -1
- package/daemon/dist/domain/health-diagnosis.js +4 -0
- package/daemon/dist/domain/health-diagnosis.js.map +1 -1
- package/daemon/dist/domain/health-passive-ceremony.d.ts +3 -0
- package/daemon/dist/domain/health-passive-ceremony.d.ts.map +1 -1
- package/daemon/dist/domain/health-passive-ceremony.js +45 -4
- package/daemon/dist/domain/health-passive-ceremony.js.map +1 -1
- package/daemon/dist/domain/hosts/fleet-scopes.d.ts +111 -0
- package/daemon/dist/domain/hosts/fleet-scopes.d.ts.map +1 -0
- package/daemon/dist/domain/hosts/fleet-scopes.js +231 -0
- package/daemon/dist/domain/hosts/fleet-scopes.js.map +1 -0
- package/daemon/dist/domain/hosts/read-through.d.ts +1 -1
- package/daemon/dist/domain/hosts/read-through.d.ts.map +1 -1
- package/daemon/dist/domain/hosts/read-through.js +4 -0
- package/daemon/dist/domain/hosts/read-through.js.map +1 -1
- 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 +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
- package/daemon/dist/domain/native-model-picker.d.ts +2 -0
- package/daemon/dist/domain/native-model-picker.d.ts.map +1 -1
- package/daemon/dist/domain/native-model-picker.js +8 -2
- package/daemon/dist/domain/native-model-picker.js.map +1 -1
- package/daemon/dist/domain/native-permission-store.d.ts.map +1 -1
- package/daemon/dist/domain/native-permission-store.js +12 -5
- package/daemon/dist/domain/native-permission-store.js.map +1 -1
- package/daemon/dist/domain/native-process-lineage.d.ts +11 -1
- package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
- package/daemon/dist/domain/native-process-lineage.js +25 -4
- package/daemon/dist/domain/native-process-lineage.js.map +1 -1
- package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +109 -26
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/network/network-connector.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-connector.js +5 -3
- package/daemon/dist/domain/network/network-connector.js.map +1 -1
- package/daemon/dist/domain/network/network-installations.d.ts +5 -4
- package/daemon/dist/domain/network/network-installations.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-installations.js +42 -11
- package/daemon/dist/domain/network/network-installations.js.map +1 -1
- package/daemon/dist/domain/node-launcher.d.ts +6 -0
- package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/node-launcher.js +10 -3
- package/daemon/dist/domain/node-launcher.js.map +1 -1
- package/daemon/dist/domain/occupant-invalidator.d.ts +4 -1
- package/daemon/dist/domain/occupant-invalidator.d.ts.map +1 -1
- package/daemon/dist/domain/occupant-invalidator.js +10 -2
- package/daemon/dist/domain/occupant-invalidator.js.map +1 -1
- package/daemon/dist/domain/operation-correlation.d.ts +1 -1
- package/daemon/dist/domain/operation-correlation.d.ts.map +1 -1
- package/daemon/dist/domain/operation-correlation.js +1 -1
- package/daemon/dist/domain/operation-correlation.js.map +1 -1
- package/daemon/dist/domain/permission-account.d.ts.map +1 -1
- package/daemon/dist/domain/permission-account.js +8 -6
- package/daemon/dist/domain/permission-account.js.map +1 -1
- package/daemon/dist/domain/permission-drift.d.ts.map +1 -1
- package/daemon/dist/domain/permission-drift.js +1 -1
- package/daemon/dist/domain/permission-drift.js.map +1 -1
- package/daemon/dist/domain/queue-destination-check.d.ts +2 -0
- package/daemon/dist/domain/queue-destination-check.d.ts.map +1 -1
- package/daemon/dist/domain/queue-destination-check.js +8 -11
- package/daemon/dist/domain/queue-destination-check.js.map +1 -1
- package/daemon/dist/domain/queue-erasure.d.ts +7 -1
- package/daemon/dist/domain/queue-erasure.d.ts.map +1 -1
- package/daemon/dist/domain/queue-erasure.js +226 -20
- package/daemon/dist/domain/queue-erasure.js.map +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +39 -17
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +96 -64
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +49 -21
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/queue-transition-log.d.ts +6 -0
- package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
- package/daemon/dist/domain/queue-transition-log.js +9 -0
- package/daemon/dist/domain/queue-transition-log.js.map +1 -1
- package/daemon/dist/domain/queue-waiting.d.ts +4 -4
- package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
- package/daemon/dist/domain/queue-waiting.js +30 -16
- 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 +90 -24
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/receiver-context.js +1 -1
- package/daemon/dist/domain/receiver-context.js.map +1 -1
- package/daemon/dist/domain/restore-check-service.d.ts +13 -0
- package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
- package/daemon/dist/domain/restore-check-service.js +122 -9
- package/daemon/dist/domain/restore-check-service.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +4 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +132 -48
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/restore-preconditions.d.ts +2 -0
- package/daemon/dist/domain/restore-preconditions.d.ts.map +1 -1
- package/daemon/dist/domain/restore-preconditions.js +2 -0
- package/daemon/dist/domain/restore-preconditions.js.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.d.ts +17 -4
- package/daemon/dist/domain/resume-metadata-refresher.d.ts.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.js +64 -15
- package/daemon/dist/domain/resume-metadata-refresher.js.map +1 -1
- package/daemon/dist/domain/resume-token-capture.d.ts +6 -0
- package/daemon/dist/domain/resume-token-capture.d.ts.map +1 -1
- package/daemon/dist/domain/resume-token-capture.js +14 -8
- package/daemon/dist/domain/resume-token-capture.js.map +1 -1
- package/daemon/dist/domain/rig-delivery-drain.d.ts +46 -0
- package/daemon/dist/domain/rig-delivery-drain.d.ts.map +1 -0
- package/daemon/dist/domain/rig-delivery-drain.js +128 -0
- package/daemon/dist/domain/rig-delivery-drain.js.map +1 -0
- package/daemon/dist/domain/rig-edge-ops.js +1 -1
- package/daemon/dist/domain/rig-edge-ops.js.map +1 -1
- package/daemon/dist/domain/rig-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/rig-lifecycle-service.js +4 -1
- package/daemon/dist/domain/rig-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/rig-teardown.d.ts +20 -3
- package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
- package/daemon/dist/domain/rig-teardown.js +71 -11
- package/daemon/dist/domain/rig-teardown.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +6 -2
- package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/daemon/dist/domain/rigspec-preflight.d.ts +1 -1
- package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-preflight.js +36 -1
- package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
- package/daemon/dist/domain/rosters.d.ts +19 -0
- package/daemon/dist/domain/rosters.d.ts.map +1 -1
- package/daemon/dist/domain/rosters.js +69 -12
- package/daemon/dist/domain/rosters.js.map +1 -1
- package/daemon/dist/domain/runtime-adapter.d.ts +15 -0
- package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-adapter.js.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.d.ts +8 -2
- package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.js +38 -3
- package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
- package/daemon/dist/domain/seat-handover-attempts.d.ts +50 -0
- package/daemon/dist/domain/seat-handover-attempts.d.ts.map +1 -0
- package/daemon/dist/domain/seat-handover-attempts.js +75 -0
- package/daemon/dist/domain/seat-handover-attempts.js.map +1 -0
- package/daemon/dist/domain/seat-handover-service.d.ts +64 -1
- package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-handover-service.js +443 -29
- package/daemon/dist/domain/seat-handover-service.js.map +1 -1
- package/daemon/dist/domain/seat-launch-environment.d.ts +3 -2
- package/daemon/dist/domain/seat-launch-environment.d.ts.map +1 -1
- package/daemon/dist/domain/seat-launch-environment.js +16 -4
- package/daemon/dist/domain/seat-launch-environment.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +47 -2
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +48 -2
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-home-record-types.d.ts +16 -0
- package/daemon/dist/domain/seat-runtime-home-record-types.d.ts.map +1 -0
- package/daemon/dist/domain/seat-runtime-home-record-types.js +2 -0
- package/daemon/dist/domain/seat-runtime-home-record-types.js.map +1 -0
- package/daemon/dist/domain/seat-runtime-home-record.d.ts +173 -0
- package/daemon/dist/domain/seat-runtime-home-record.d.ts.map +1 -0
- package/daemon/dist/domain/seat-runtime-home-record.js +317 -0
- package/daemon/dist/domain/seat-runtime-home-record.js.map +1 -0
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts +7 -0
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.js +47 -2
- package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
- package/daemon/dist/domain/seat-skill-storage.d.ts +16 -1
- package/daemon/dist/domain/seat-skill-storage.d.ts.map +1 -1
- package/daemon/dist/domain/seat-skill-storage.js +178 -1
- package/daemon/dist/domain/seat-skill-storage.js.map +1 -1
- package/daemon/dist/domain/session-name.d.ts +13 -0
- package/daemon/dist/domain/session-name.d.ts.map +1 -1
- package/daemon/dist/domain/session-name.js +77 -0
- package/daemon/dist/domain/session-name.js.map +1 -1
- package/daemon/dist/domain/session-registry.d.ts +7 -1
- package/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.js +7 -4
- package/daemon/dist/domain/session-registry.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +1 -0
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +33 -9
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/shared-history-selection.d.ts +1 -0
- package/daemon/dist/domain/shared-history-selection.d.ts.map +1 -1
- package/daemon/dist/domain/shared-history-selection.js +3 -1
- package/daemon/dist/domain/shared-history-selection.js.map +1 -1
- package/daemon/dist/domain/skill-catalog.d.ts +3 -0
- package/daemon/dist/domain/skill-catalog.d.ts.map +1 -1
- package/daemon/dist/domain/skill-catalog.js +7 -3
- package/daemon/dist/domain/skill-catalog.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 +24 -12
- package/daemon/dist/domain/snapshot-capture.js.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.js +3 -2
- package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.d.ts +16 -0
- package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.js +70 -38
- package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +43 -2
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.js +3 -1
- package/daemon/dist/domain/user-settings/settings-browser.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts +1 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.js +6 -0
- package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.d.ts +4 -0
- package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.js +28 -1
- 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 +13 -8
- package/daemon/dist/domain/workflow-exception-escalation.js.map +1 -1
- package/daemon/dist/domain/workflow-instance-store.d.ts +14 -2
- package/daemon/dist/domain/workflow-instance-store.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-instance-store.js +41 -4
- package/daemon/dist/domain/workflow-instance-store.js.map +1 -1
- package/daemon/dist/domain/workflow-projector.d.ts +55 -0
- package/daemon/dist/domain/workflow-projector.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-projector.js +355 -174
- package/daemon/dist/domain/workflow-projector.js.map +1 -1
- package/daemon/dist/domain/workflow-reconciliation.d.ts +7 -1
- package/daemon/dist/domain/workflow-reconciliation.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-reconciliation.js +51 -13
- package/daemon/dist/domain/workflow-reconciliation.js.map +1 -1
- package/daemon/dist/domain/workflow-runtime.d.ts +11 -3
- package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-runtime.js +141 -27
- package/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/daemon/dist/lib/pane-envelope.d.ts.map +1 -1
- package/daemon/dist/lib/pane-envelope.js +12 -7
- package/daemon/dist/lib/pane-envelope.js.map +1 -1
- package/daemon/dist/routes/compaction.d.ts.map +1 -1
- package/daemon/dist/routes/compaction.js +6 -3
- package/daemon/dist/routes/compaction.js.map +1 -1
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +78 -31
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/restore-check.d.ts.map +1 -1
- package/daemon/dist/routes/restore-check.js +17 -0
- package/daemon/dist/routes/restore-check.js.map +1 -1
- package/daemon/dist/routes/rig-delivery-drain.d.ts +3 -0
- package/daemon/dist/routes/rig-delivery-drain.d.ts.map +1 -0
- package/daemon/dist/routes/rig-delivery-drain.js +46 -0
- package/daemon/dist/routes/rig-delivery-drain.js.map +1 -0
- package/daemon/dist/routes/scopes.d.ts.map +1 -1
- package/daemon/dist/routes/scopes.js +102 -19
- 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 +50 -2
- 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 +54 -10
- package/daemon/dist/routes/sessions.js.map +1 -1
- package/daemon/dist/routes/startup.d.ts.map +1 -1
- package/daemon/dist/routes/startup.js +230 -40
- package/daemon/dist/routes/startup.js.map +1 -1
- package/daemon/dist/routes/transport.d.ts.map +1 -1
- package/daemon/dist/routes/transport.js +36 -2
- package/daemon/dist/routes/transport.js.map +1 -1
- package/daemon/dist/routes/up.js +2 -0
- package/daemon/dist/routes/up.js.map +1 -1
- package/daemon/dist/routes/watchdog.d.ts.map +1 -1
- package/daemon/dist/routes/watchdog.js +7 -1
- 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 +23 -5
- package/daemon/dist/routes/workflow.js.map +1 -1
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +2 -0
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +111 -37
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/docs/reference/agent-startup-guide.md +90 -2
- package/daemon/docs/reference/daemon-http-clients.md +69 -0
- package/daemon/docs/reference/developing.md +1 -1
- package/daemon/docs/reference/gateway-participants.md +5 -3
- package/daemon/docs/reference/getting-started.md +12 -11
- package/daemon/docs/reference/hosted-members.md +4 -2
- package/daemon/docs/reference/network-connector.md +4 -3
- package/daemon/docs/reference/queue-erasure.md +16 -1
- package/daemon/docs/reference/quickstart.md +2 -2
- package/daemon/docs/reference/rig-spec.md +92 -4
- package/daemon/docs/reference/rosters.md +26 -0
- package/daemon/docs/reference/seat-delivery.md +7 -1
- package/daemon/docs/reference/whats-new.md +397 -5
- package/daemon/specs/agents/shared/skills/core/openrig-software-factory/references/worked-example.md +1 -1
- package/daemon/specs/agents/shared/skills/core/openrig-upgrade/SKILL.md +2 -0
- package/daemon/specs/agents/shared/skills/core/working-with-an-openrig-team/SKILL.md +22 -6
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +78 -18
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/startup/context.md +9 -6
- package/dist/build-info.js +3 -3
- package/dist/client.d.ts +7 -3
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +11 -2
- package/dist/client.js.map +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +2 -0
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/down.d.ts.map +1 -1
- package/dist/commands/down.js +5 -1
- package/dist/commands/down.js.map +1 -1
- package/dist/commands/environment.js +1 -1
- package/dist/commands/environment.js.map +1 -1
- package/dist/commands/launch.d.ts.map +1 -1
- package/dist/commands/launch.js +8 -0
- package/dist/commands/launch.js.map +1 -1
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/mcp.js +18 -1
- package/dist/commands/mcp.js.map +1 -1
- package/dist/commands/network.d.ts +2 -0
- package/dist/commands/network.d.ts.map +1 -1
- package/dist/commands/network.js +14 -1
- package/dist/commands/network.js.map +1 -1
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +11 -5
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue.d.ts +1 -1
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +49 -12
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/restore.d.ts.map +1 -1
- package/dist/commands/restore.js +6 -1
- package/dist/commands/restore.js.map +1 -1
- package/dist/commands/roster.d.ts +4 -2
- package/dist/commands/roster.d.ts.map +1 -1
- package/dist/commands/roster.js +2 -2
- package/dist/commands/roster.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 +201 -14
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +31 -6
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/commands/setup.js +5 -3
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/up.d.ts.map +1 -1
- package/dist/commands/up.js +7 -0
- package/dist/commands/up.js.map +1 -1
- package/dist/commands/walk.d.ts.map +1 -1
- package/dist/commands/walk.js +4 -0
- package/dist/commands/walk.js.map +1 -1
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +30 -4
- package/dist/commands/workflow.js.map +1 -1
- package/dist/config-store.d.ts +3 -1
- package/dist/config-store.d.ts.map +1 -1
- package/dist/config-store.js +5 -0
- package/dist/config-store.js.map +1 -1
- package/dist/lib/bundle-check.d.ts.map +1 -1
- package/dist/lib/bundle-check.js +33 -3
- package/dist/lib/bundle-check.js.map +1 -1
- package/dist/mcp-http.d.ts +3 -0
- package/dist/mcp-http.d.ts.map +1 -1
- package/dist/mcp-http.js +13 -0
- package/dist/mcp-http.js.map +1 -1
- package/dist/mcp-server.d.ts +9 -2
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +287 -69
- package/dist/mcp-server.js.map +1 -1
- package/dist/person-registration-offer.d.ts.map +1 -1
- package/dist/person-registration-offer.js +2 -1
- package/dist/person-registration-offer.js.map +1 -1
- package/package.json +2 -2
- package/tui/dist/commands/registry.d.ts.map +1 -1
- package/tui/dist/commands/registry.js +1 -0
- package/tui/dist/commands/registry.js.map +1 -1
- package/tui/dist/config/config-model.js +1 -1
- package/tui/dist/config/config-model.js.map +1 -1
- package/tui/dist/crash-cart/start-daemon.d.ts.map +1 -1
- package/tui/dist/crash-cart/start-daemon.js +4 -2
- package/tui/dist/crash-cart/start-daemon.js.map +1 -1
- package/tui/dist/daemon-client.d.ts +12 -1
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js +44 -2
- package/tui/dist/daemon-client.js.map +1 -1
- package/tui/dist/hydrate.d.ts +1 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +43 -1
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/main.js +3 -0
- package/tui/dist/main.js.map +1 -1
- package/tui/dist/page-read.d.ts.map +1 -1
- package/tui/dist/page-read.js +2 -1
- package/tui/dist/page-read.js.map +1 -1
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +110 -16
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/scopes/fleet-scopes-model.d.ts +73 -0
- package/tui/dist/scopes/fleet-scopes-model.d.ts.map +1 -0
- package/tui/dist/scopes/fleet-scopes-model.js +102 -0
- package/tui/dist/scopes/fleet-scopes-model.js.map +1 -0
- package/tui/dist/scopes/scopes-model.d.ts +2 -0
- package/tui/dist/scopes/scopes-model.d.ts.map +1 -1
- package/tui/dist/scopes/scopes-model.js +7 -4
- package/tui/dist/scopes/scopes-model.js.map +1 -1
- package/tui/dist/sections.d.ts.map +1 -1
- package/tui/dist/sections.js +5 -0
- package/tui/dist/sections.js.map +1 -1
- package/tui/dist/startup.d.ts +5 -0
- package/tui/dist/startup.d.ts.map +1 -1
- package/tui/dist/startup.js +12 -0
- package/tui/dist/startup.js.map +1 -1
- package/tui/dist/state.d.ts.map +1 -1
- package/tui/dist/state.js +12 -5
- package/tui/dist/state.js.map +1 -1
- package/tui/dist/types.d.ts +18 -1
- package/tui/dist/types.d.ts.map +1 -1
|
@@ -124,11 +124,22 @@ export function composeLayout(text, width, caret = text.length) {
|
|
|
124
124
|
place();
|
|
125
125
|
return { rows: row + 1, caretRow, caretColumn };
|
|
126
126
|
}
|
|
127
|
+
export function paneStyles(enabled) {
|
|
128
|
+
const sgr = (open) => (text) => (enabled ? `\u001b[${open}m${text}\u001b[0m` : text);
|
|
129
|
+
return { bold: sgr("1"), dim: sgr("2"), commit: sgr("1;36"), failed: sgr("1;31") };
|
|
130
|
+
}
|
|
131
|
+
const STYLE = paneStyles(process.stdout.isTTY === true && !process.env.NO_COLOR);
|
|
127
132
|
export function createPaneCompositor(out) {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
let
|
|
133
|
+
/** The seat's own status row (`model · thinking:… · state`), and the pinned diagnostic
|
|
134
|
+
* below it. They are independent: a turn clears the pin and keeps the seat row. */
|
|
135
|
+
let seat = null;
|
|
136
|
+
let pinned = null;
|
|
137
|
+
/** The status rows actually on screen, clipped when they were painted. A resize must
|
|
138
|
+
* size the region from these, not from the longer text they were set with. */
|
|
139
|
+
let paintedSeat = null;
|
|
140
|
+
let paintedPinned = null;
|
|
141
|
+
/** The unfinished streamed line, as displayed above the status rows (null when it is not). */
|
|
142
|
+
let paintedHeld = null;
|
|
132
143
|
let readInput = null;
|
|
133
144
|
let redrawLine = null;
|
|
134
145
|
let held = "";
|
|
@@ -164,19 +175,71 @@ export function createPaneCompositor(out) {
|
|
|
164
175
|
if (sequence)
|
|
165
176
|
out.write(sequence);
|
|
166
177
|
};
|
|
178
|
+
/** The visible tail of the held streamed line: at most the pane's spare rows, so a
|
|
179
|
+
* newline-free paragraph longer than the viewport never scrolls its own repaint —
|
|
180
|
+
* what scrolls stays in history, and the whole line is committed once when it ends. */
|
|
181
|
+
const heldTail = (text) => {
|
|
182
|
+
const height = typeof out.rows === "number" && out.rows > 0 ? out.rows : 24;
|
|
183
|
+
const budget = Math.max(1, height - 2
|
|
184
|
+
- (seat !== null ? 1 : 0) - (pinned !== null ? 1 : 0) - composeRows());
|
|
185
|
+
if (composeLayout(text, out.columns).rows <= budget)
|
|
186
|
+
return text;
|
|
187
|
+
// Bound by the final wrapped layout, ellipsis included: at an odd width a two-cell
|
|
188
|
+
// character can't fill the last column, so a cell-count bound would overflow the
|
|
189
|
+
// region. A shorter suffix never wraps to more rows, so bisect on its start.
|
|
190
|
+
const graphemes = [...graphemesOf(text)];
|
|
191
|
+
const fits = (start) => composeLayout(`\u2026${graphemes.slice(start).join("")}`, out.columns).rows <= budget;
|
|
192
|
+
let low = 0;
|
|
193
|
+
let high = graphemes.length; // the ellipsis alone fits any budget
|
|
194
|
+
while (low < high) {
|
|
195
|
+
const mid = Math.floor((low + high) / 2);
|
|
196
|
+
if (fits(mid))
|
|
197
|
+
high = mid;
|
|
198
|
+
else
|
|
199
|
+
low = mid + 1;
|
|
200
|
+
}
|
|
201
|
+
return `\u2026${graphemes.slice(low).join("")}`;
|
|
202
|
+
};
|
|
167
203
|
/** Rows this compositor has on screen, recorded when it painted them. Readline never writes
|
|
168
204
|
* to the terminal, so nothing else can change these rows behind the compositor's back —
|
|
169
205
|
* except a reflow, which the resize handler owns. */
|
|
170
206
|
const paint = () => {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
207
|
+
// Without a width nothing can be placed, erased or measured; the status text is kept
|
|
208
|
+
// and painted once a width is known (a resize or the next write calls back here).
|
|
209
|
+
if (!widthKnown()) {
|
|
210
|
+
paintedSeat = null;
|
|
211
|
+
paintedPinned = null;
|
|
212
|
+
paintedHeld = null;
|
|
213
|
+
screenRows = 0;
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
// A transcript line a verbatim write left open must not be spliced by the region:
|
|
217
|
+
// close it first, so the region starts on its own row and the line stays whole.
|
|
218
|
+
if (openLine && (seat !== null || pinned !== null || composeRows() > 0)) {
|
|
219
|
+
out.write("\n");
|
|
220
|
+
openLine = false;
|
|
221
|
+
}
|
|
222
|
+
paintedSeat = seat !== null ? clip(seat) : null;
|
|
223
|
+
paintedPinned = pinned !== null ? clip(pinned) : null;
|
|
224
|
+
const statusRows = [paintedSeat, paintedPinned].filter((text) => text !== null);
|
|
225
|
+
// An in-progress streamed line stays visible as the region's first row while a status
|
|
226
|
+
// row is painted — bounded to the pane's spare rows so its own repaint never scrolls;
|
|
227
|
+
// without one the pane keeps its verbatim fallback and the line is held until it ends.
|
|
228
|
+
paintedHeld = statusRows.length > 0 && held.length > 0 ? heldTail(held) : null;
|
|
229
|
+
let heldRows = 0;
|
|
230
|
+
if (paintedHeld !== null) {
|
|
231
|
+
out.write(paintedHeld);
|
|
232
|
+
out.write("\n");
|
|
233
|
+
heldRows = Math.max(1, composeLayout(paintedHeld, out.columns).rows);
|
|
234
|
+
}
|
|
235
|
+
for (const text of statusRows) {
|
|
236
|
+
out.write(text);
|
|
174
237
|
out.write("\n");
|
|
175
238
|
}
|
|
176
239
|
const rows = composeRows();
|
|
177
240
|
if (rows)
|
|
178
241
|
redrawLine?.();
|
|
179
|
-
screenRows =
|
|
242
|
+
screenRows = heldRows + statusRows.length + (rows || (heldRows + statusRows.length > 0 ? 1 : 0));
|
|
180
243
|
// Only a painted region closes an open transcript line. With nothing painted the
|
|
181
244
|
// cursor still sits on the line a flush left open, and the next keystroke belongs
|
|
182
245
|
// to that line's context, not to a fresh one.
|
|
@@ -221,16 +284,28 @@ export function createPaneCompositor(out) {
|
|
|
221
284
|
screenRows = 0;
|
|
222
285
|
return;
|
|
223
286
|
}
|
|
287
|
+
if (screenRows === 0) {
|
|
288
|
+
// Nothing painted: nothing to erase. A line a verbatim write left open is closed
|
|
289
|
+
// so the retained region starts on its own row instead of splicing into it.
|
|
290
|
+
if (openLine) {
|
|
291
|
+
out.write("\n");
|
|
292
|
+
openLine = false;
|
|
293
|
+
}
|
|
294
|
+
paint();
|
|
295
|
+
return;
|
|
296
|
+
}
|
|
224
297
|
const draft = composeText();
|
|
225
298
|
const layout = draft ? composeLayout(draft, out.columns, readCaretIndex ? readCaretIndex() : draft.length) : null;
|
|
226
299
|
const draftRows = layout ? layout.rows : 0;
|
|
227
|
-
const statusLines =
|
|
300
|
+
const statusLines = [paintedSeat, paintedPinned].reduce((sum, text) => text !== null ? sum + Math.max(1, Math.ceil(stringWidth(text) / out.columns)) : sum, 0);
|
|
301
|
+
// The held streamed row reflowed at the new width: a long partial line wraps here too.
|
|
302
|
+
const heldLines = paintedHeld !== null ? composeLayout(paintedHeld, out.columns).rows : 0;
|
|
228
303
|
const down = layout ? layout.rows - 1 - layout.caretRow : 0;
|
|
229
304
|
if (down > 0)
|
|
230
305
|
out.write(`\u001b[${down}B`);
|
|
231
|
-
//
|
|
306
|
+
// Status and held rows without a draft also own the blank row their trailing newline
|
|
232
307
|
// left the cursor on — the same row paint() counts into screenRows.
|
|
233
|
-
eraseLines(statusLines + (draftRows || (
|
|
308
|
+
eraseLines(heldLines + statusLines + (draftRows || (heldLines + statusLines > 0 ? 1 : 0)));
|
|
234
309
|
screenRows = 0;
|
|
235
310
|
paint();
|
|
236
311
|
};
|
|
@@ -249,6 +324,12 @@ export function createPaneCompositor(out) {
|
|
|
249
324
|
redrawLine = null;
|
|
250
325
|
readCaretUp = null;
|
|
251
326
|
readCaretIndex = null;
|
|
327
|
+
// The region is gone; nothing of it may be repainted after the pane falls back.
|
|
328
|
+
seat = null;
|
|
329
|
+
pinned = null;
|
|
330
|
+
paintedSeat = null;
|
|
331
|
+
paintedPinned = null;
|
|
332
|
+
paintedHeld = null;
|
|
252
333
|
openLine = false;
|
|
253
334
|
screenRows = 0;
|
|
254
335
|
},
|
|
@@ -256,7 +337,7 @@ export function createPaneCompositor(out) {
|
|
|
256
337
|
eraseScreen();
|
|
257
338
|
// With no region left, an unfinished streamed line goes out verbatim so the
|
|
258
339
|
// next delta continues it on the same row instead of splitting mid-word.
|
|
259
|
-
if (held &&
|
|
340
|
+
if (held && (!widthKnown() || (pinned === null && seat === null)) && !composeText()) {
|
|
260
341
|
writeVerbatim(held);
|
|
261
342
|
held = "";
|
|
262
343
|
}
|
|
@@ -265,7 +346,7 @@ export function createPaneCompositor(out) {
|
|
|
265
346
|
transcript(text) {
|
|
266
347
|
if (!text)
|
|
267
348
|
return;
|
|
268
|
-
if (
|
|
349
|
+
if (!widthKnown() || (pinned === null && seat === null && composeRows() === 0 && screenRows === 0)) {
|
|
269
350
|
if (held) {
|
|
270
351
|
writeVerbatim(held);
|
|
271
352
|
held = "";
|
|
@@ -274,13 +355,25 @@ export function createPaneCompositor(out) {
|
|
|
274
355
|
return;
|
|
275
356
|
}
|
|
276
357
|
held += text;
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
358
|
+
const first = held.indexOf("\n");
|
|
359
|
+
if (first < 0) {
|
|
360
|
+
// A delta with no newline yet must still show as it streams: repaint the region
|
|
361
|
+
// (the painted tail is bounded) while a status row is painted.
|
|
362
|
+
if (seat !== null || pinned !== null) {
|
|
363
|
+
eraseScreen();
|
|
364
|
+
paint();
|
|
365
|
+
}
|
|
366
|
+
return;
|
|
283
367
|
}
|
|
368
|
+
// Drain every complete line in one batch: erase once, write them above in order,
|
|
369
|
+
// then repaint. Painting the remainder between lines would scroll a long chunk.
|
|
370
|
+
const last = held.lastIndexOf("\n");
|
|
371
|
+
const complete = held.slice(0, last + 1);
|
|
372
|
+
held = held.slice(last + 1);
|
|
373
|
+
eraseScreen();
|
|
374
|
+
out.write(complete);
|
|
375
|
+
openLine = false;
|
|
376
|
+
paint();
|
|
284
377
|
},
|
|
285
378
|
line(text) {
|
|
286
379
|
pane.transcript(`${text}\n`);
|
|
@@ -301,14 +394,29 @@ export function createPaneCompositor(out) {
|
|
|
301
394
|
openLine = false;
|
|
302
395
|
}
|
|
303
396
|
eraseScreen();
|
|
304
|
-
|
|
397
|
+
pinned = text;
|
|
305
398
|
paint();
|
|
306
399
|
},
|
|
307
400
|
clearStatus() {
|
|
308
|
-
if (
|
|
401
|
+
if (pinned === null)
|
|
402
|
+
return;
|
|
403
|
+
eraseScreen();
|
|
404
|
+
pinned = null;
|
|
405
|
+
paint();
|
|
406
|
+
},
|
|
407
|
+
status(text) {
|
|
408
|
+
const next = text ? text : null;
|
|
409
|
+
if (next === seat)
|
|
410
|
+
return;
|
|
411
|
+
// Without a width nothing is painted or measured, but the text is kept: the next
|
|
412
|
+
// resize (or paint with a width) shows the state it named, instead of dropping it
|
|
413
|
+
// until some later state change.
|
|
414
|
+
if (!widthKnown()) {
|
|
415
|
+
seat = next;
|
|
309
416
|
return;
|
|
417
|
+
}
|
|
310
418
|
eraseScreen();
|
|
311
|
-
|
|
419
|
+
seat = next;
|
|
312
420
|
paint();
|
|
313
421
|
},
|
|
314
422
|
beforeSubmit() {
|
|
@@ -529,6 +637,11 @@ function diagnosticText(details) {
|
|
|
529
637
|
? stripVTControlCharacters(detail).replace(/[\p{Cc}\p{Cf}\p{Zl}\p{Zp}]/gu, " ").replace(/\s+/g, " ").trim()
|
|
530
638
|
: "").find(Boolean) ?? "";
|
|
531
639
|
}
|
|
640
|
+
/** A runner-owned label for the pane (a configured model or effort): painted as given, so
|
|
641
|
+
* terminal controls and bidi/format characters are neutralized first, as diagnostics are. */
|
|
642
|
+
function paneLabel(text) {
|
|
643
|
+
return stripVTControlCharacters(text).replace(/[\p{Cc}\p{Cf}\p{Zl}\p{Zp}]/gu, " ").replace(/\s+/g, " ").trim();
|
|
644
|
+
}
|
|
532
645
|
function errorNotice(details, runtime) {
|
|
533
646
|
const text = diagnosticText(details);
|
|
534
647
|
const marker = runtime === "omp" ? "[omp-runner] ERROR" : PI_RUNNER_ERROR_MARKER;
|
|
@@ -549,7 +662,7 @@ function modelErrorNotice(event, runtime) {
|
|
|
549
662
|
}
|
|
550
663
|
return {};
|
|
551
664
|
}
|
|
552
|
-
export function mapPiEvent(event, runtime = "pi") {
|
|
665
|
+
export function mapPiEvent(event, runtime = "pi", style = STYLE) {
|
|
553
666
|
const type = typeof event.type === "string" ? event.type : "";
|
|
554
667
|
switch (type) {
|
|
555
668
|
case "agent_start":
|
|
@@ -591,12 +704,12 @@ export function mapPiEvent(event, runtime = "pi") {
|
|
|
591
704
|
return { mirrorLines: [""], ...modelErrorNotice(event, runtime) };
|
|
592
705
|
case "tool_execution_start": {
|
|
593
706
|
const tool = typeof event.toolName === "string" ? event.toolName : (typeof event.name === "string" ? event.name : "tool");
|
|
594
|
-
return { mirrorLines: [`
|
|
707
|
+
return { mirrorLines: [` ${style.dim(`⚙ ${tool} …`)}`], activity: { hookEvent: "PreToolUse", subtype: tool } };
|
|
595
708
|
}
|
|
596
709
|
case "tool_execution_end": {
|
|
597
710
|
const tool = typeof event.toolName === "string" ? event.toolName : (typeof event.name === "string" ? event.name : "tool");
|
|
598
711
|
const failed = event.isError === true || event.error != null;
|
|
599
|
-
return { mirrorLines: [`
|
|
712
|
+
return { mirrorLines: [` ${style.dim(`⚙ ${tool}`)} ${failed ? style.failed("FAILED") : "done"}`] };
|
|
600
713
|
}
|
|
601
714
|
case "queue_update":
|
|
602
715
|
return { mirrorLines: [] };
|
|
@@ -709,6 +822,12 @@ export class RunnerCore {
|
|
|
709
822
|
identity;
|
|
710
823
|
opts;
|
|
711
824
|
streaming = false;
|
|
825
|
+
/** The child is gone; the status row says exited, never idle. */
|
|
826
|
+
paneExited = false;
|
|
827
|
+
/** A failure is known and no new turn has started: the status row says error, not idle. */
|
|
828
|
+
paneError = false;
|
|
829
|
+
/** A runtime-reported automatic retry is in flight; the row says retrying until it ends. */
|
|
830
|
+
paneRetrying = false;
|
|
712
831
|
/** Pi runs this runner has opened, each posted as an accepted turn (contract section 4): the working beat names it. */
|
|
713
832
|
turn = 0;
|
|
714
833
|
sessionFile;
|
|
@@ -792,6 +911,7 @@ export class RunnerCore {
|
|
|
792
911
|
// are live-only signals.
|
|
793
912
|
this.io.sendRpc({ type: "get_entries", since: this.opts.catchUpSince, id: CATCH_UP_ID });
|
|
794
913
|
}
|
|
914
|
+
this.refreshPaneStatus();
|
|
795
915
|
}
|
|
796
916
|
/** One LF-delimited JSONL record from pi stdout. */
|
|
797
917
|
handlePiLine(rawLine) {
|
|
@@ -858,7 +978,7 @@ export class RunnerCore {
|
|
|
858
978
|
if (block.startsWith("/followup ")) {
|
|
859
979
|
const message = block.slice("/followup ".length);
|
|
860
980
|
this.io.sendRpc({ type: "follow_up", message });
|
|
861
|
-
this.io.mirrorLine(
|
|
981
|
+
this.io.mirrorLine(`${this.style.commit("you (follow-up) ▸")} ${message}`);
|
|
862
982
|
this.acceptIntoOpenRun();
|
|
863
983
|
return;
|
|
864
984
|
}
|
|
@@ -867,7 +987,7 @@ export class RunnerCore {
|
|
|
867
987
|
// The runner's `streaming` starts only at agent_start, so it can't tell when a turn is about to start (#1932) or
|
|
868
988
|
// when a prompt was consumed locally and started none. It labels the mirror line only.
|
|
869
989
|
this.io.sendRpc({ type: "prompt", message: block, streamingBehavior: "steer" });
|
|
870
|
-
this.io.mirrorLine(this.streaming ?
|
|
990
|
+
this.io.mirrorLine(this.streaming ? `${this.style.commit("you (steer) ▸")} ${block}` : `${this.style.commit("you ▸")} ${block}`);
|
|
871
991
|
this.acceptIntoOpenRun();
|
|
872
992
|
}
|
|
873
993
|
/** A working beat counts only for the latest accepted turn, and each prompt the runner gives the agent is accepted with
|
|
@@ -883,10 +1003,12 @@ export class RunnerCore {
|
|
|
883
1003
|
/** Child process exit — honest, loud, durable. */
|
|
884
1004
|
handlePiExit(code) {
|
|
885
1005
|
this.ready = false;
|
|
1006
|
+
this.paneExited = true;
|
|
886
1007
|
this.reportDroppedFrame(this.frameDecoder?.incomplete());
|
|
887
1008
|
this.io.mirrorLine(`[${this.runtime}-runner] EXITED ${this.runtime} exited (code ${code ?? "unknown"})`);
|
|
888
1009
|
this.writeSidecar({ exited: { code, at: this.io.now() } });
|
|
889
1010
|
this.io.postActivity(this.activityPayload("Stop", `${this.runtime}_exited`));
|
|
1011
|
+
this.refreshPaneStatus();
|
|
890
1012
|
}
|
|
891
1013
|
handleResponse(record) {
|
|
892
1014
|
if (record.id === NEGOTIATE_ID && this.v2Limit !== null) {
|
|
@@ -905,8 +1027,10 @@ export class RunnerCore {
|
|
|
905
1027
|
const message = detail + (this.runtime === "pi" ? piCredentialHint(detail) : "");
|
|
906
1028
|
if (record.id === GET_STATE_ID) {
|
|
907
1029
|
this.ready = false;
|
|
1030
|
+
this.paneError = true;
|
|
908
1031
|
this.writeSidecar({});
|
|
909
1032
|
this.diag(this.runtime === "omp" ? `[omp-runner] ERROR rpc get_state: ${message}` : `${PI_RUNNER_ERROR_MARKER} rpc: ${message}`);
|
|
1033
|
+
this.refreshPaneStatus();
|
|
910
1034
|
// OMP cannot provide a resume token without get_state; stop it so the
|
|
911
1035
|
// launch fails now instead of waiting out readiness.
|
|
912
1036
|
if (this.runtime === "omp")
|
|
@@ -945,6 +1069,8 @@ export class RunnerCore {
|
|
|
945
1069
|
// For custom protocol: pi-rpc community harnesses, reporting no session file
|
|
946
1070
|
// reads as needing attention rather than stopping the child process.
|
|
947
1071
|
this.diag(`[${this.runtime}-runner] ERROR rpc get_state returned no session file; cannot provide a resume token`);
|
|
1072
|
+
this.paneError = true;
|
|
1073
|
+
this.refreshPaneStatus();
|
|
948
1074
|
this.raiseAttention("runtime_error");
|
|
949
1075
|
return;
|
|
950
1076
|
}
|
|
@@ -953,6 +1079,8 @@ export class RunnerCore {
|
|
|
953
1079
|
// The sidecar names the reported file, so the launch refuses it at once; the identity isn't posted (below), and the
|
|
954
1080
|
// seat asks for attention rather than beating idle on a session nothing records.
|
|
955
1081
|
this.io.mirrorLine(`[${this.runtime}-runner] ERROR resume: get_state reports ${this.sessionFile}, not the requested ${this.opts.requestedSessionFile}; its identity isn't reported`);
|
|
1082
|
+
this.paneError = true;
|
|
1083
|
+
this.refreshPaneStatus();
|
|
956
1084
|
this.raiseAttention("runtime_error");
|
|
957
1085
|
return;
|
|
958
1086
|
}
|
|
@@ -961,6 +1089,8 @@ export class RunnerCore {
|
|
|
961
1089
|
// Subsequent get_state evaluations confirm liveness silently to avoid
|
|
962
1090
|
// terminal output spam while preserving state updates.
|
|
963
1091
|
this.io.mirrorLine(`${this.runtime === "omp" ? "[omp-runner] READY" : PI_RUNNER_READY_MARKER} session=${this.sessionFile ?? "unknown"}`);
|
|
1092
|
+
this.paneError = false;
|
|
1093
|
+
this.refreshPaneStatus();
|
|
964
1094
|
}
|
|
965
1095
|
// Re-post session identity on every successful get_state reply so the
|
|
966
1096
|
// daemon can discover replacement runners and keep session records current.
|
|
@@ -1068,6 +1198,7 @@ export class RunnerCore {
|
|
|
1068
1198
|
this.attention = next;
|
|
1069
1199
|
this.attentionIsLatest = true;
|
|
1070
1200
|
this.io.postActivity(this.activityPayload("Notification", next === "transient_turn_error" ? "runtime_error" : next));
|
|
1201
|
+
this.refreshPaneStatus();
|
|
1071
1202
|
}
|
|
1072
1203
|
/** Idle and streaming heartbeat. A Pi runner only reports at turn and tool boundaries, and the
|
|
1073
1204
|
* daemon reads any hook older than its freshness window as `unknown` (`stale_runtime_hook`): an
|
|
@@ -1111,6 +1242,7 @@ export class RunnerCore {
|
|
|
1111
1242
|
clearAttention() {
|
|
1112
1243
|
this.attention = null;
|
|
1113
1244
|
this.attentionIsLatest = false;
|
|
1245
|
+
this.refreshPaneStatus();
|
|
1114
1246
|
}
|
|
1115
1247
|
/** A diagnostic stays in the transcript — the readiness probe and the operator both read
|
|
1116
1248
|
* it there; a pane with a status line pins the latest one as a convenience copy. */
|
|
@@ -1118,6 +1250,45 @@ export class RunnerCore {
|
|
|
1118
1250
|
this.io.mirrorLine(text);
|
|
1119
1251
|
this.io.diagnostic?.(text);
|
|
1120
1252
|
}
|
|
1253
|
+
/** The pane's status row: what this seat runs, and the state the runner observed.
|
|
1254
|
+
* Only what is known is shown — a model or effort the launch did not name is omitted,
|
|
1255
|
+
* and a seat that is not ready yet, waiting on the operator, or failed never reads as
|
|
1256
|
+
* idle. Plain text; the pane owns clipping and repainting. */
|
|
1257
|
+
refreshPaneStatus() {
|
|
1258
|
+
if (!this.io.status)
|
|
1259
|
+
return;
|
|
1260
|
+
const parts = [];
|
|
1261
|
+
// The labels are runner-owned text painted as given: neutralize terminal controls so a
|
|
1262
|
+
// configured value cannot act on the terminal, exactly as diagnostics are treated.
|
|
1263
|
+
if (this.opts.model)
|
|
1264
|
+
parts.push(paneLabel(this.opts.model));
|
|
1265
|
+
if (this.opts.thinking)
|
|
1266
|
+
parts.push(`thinking:${paneLabel(this.opts.thinking)}`);
|
|
1267
|
+
parts.push(this.paneState());
|
|
1268
|
+
this.io.status(parts.join(" \u00b7 "));
|
|
1269
|
+
}
|
|
1270
|
+
paneState() {
|
|
1271
|
+
if (this.paneExited)
|
|
1272
|
+
return "exited";
|
|
1273
|
+
if (!this.ready)
|
|
1274
|
+
return this.paneError ? "error" : "starting";
|
|
1275
|
+
if (this.attention === "permission_prompt")
|
|
1276
|
+
return "waiting for input";
|
|
1277
|
+
if (this.attention === "runtime_error")
|
|
1278
|
+
return "error";
|
|
1279
|
+
if (this.attention === "transient_turn_error")
|
|
1280
|
+
return "retrying";
|
|
1281
|
+
// A known failure outranks an open turn, and an observed retry outranks "working".
|
|
1282
|
+
if (this.paneError)
|
|
1283
|
+
return "error";
|
|
1284
|
+
if (this.paneRetrying)
|
|
1285
|
+
return "retrying";
|
|
1286
|
+
if (this.streaming)
|
|
1287
|
+
return "working";
|
|
1288
|
+
return "idle";
|
|
1289
|
+
}
|
|
1290
|
+
/** Emphasis for the lines the runner writes itself; model output stays plain. */
|
|
1291
|
+
get style() { return this.opts.style ?? STYLE; }
|
|
1121
1292
|
handleEvent(event) {
|
|
1122
1293
|
if (event.type === "extension_ui_request") {
|
|
1123
1294
|
const method = event.method;
|
|
@@ -1145,6 +1316,11 @@ export class RunnerCore {
|
|
|
1145
1316
|
const message = event.message;
|
|
1146
1317
|
if (event.type === "agent_start" || (event.type === "message_start" && message?.role === "assistant")) {
|
|
1147
1318
|
this.assistantErrorShown = false;
|
|
1319
|
+
// A new assistant message supersedes the failed one it follows, even in the same turn.
|
|
1320
|
+
if (event.type === "message_start" && this.paneError) {
|
|
1321
|
+
this.paneError = false;
|
|
1322
|
+
this.refreshPaneStatus();
|
|
1323
|
+
}
|
|
1148
1324
|
}
|
|
1149
1325
|
// Durable cursor: any event carrying a session-entry id advances it. A Pi event's own `id` isn't one (Pi's
|
|
1150
1326
|
// history ids reach the cursor through get_entries), so on Pi only an explicit `entryId` counts.
|
|
@@ -1157,6 +1333,31 @@ export class RunnerCore {
|
|
|
1157
1333
|
if (event.type === "agent_start") {
|
|
1158
1334
|
this.clearAttention();
|
|
1159
1335
|
this.io.clearStatus?.();
|
|
1336
|
+
this.paneError = false;
|
|
1337
|
+
this.paneRetrying = false;
|
|
1338
|
+
this.refreshPaneStatus();
|
|
1339
|
+
}
|
|
1340
|
+
// A retry replaces the failed attempt it retries, so the row follows the attempt until
|
|
1341
|
+
// its matching end, exit or a superseding turn.
|
|
1342
|
+
if (event.type === "auto_retry_start") {
|
|
1343
|
+
this.paneError = false;
|
|
1344
|
+
this.paneRetrying = true;
|
|
1345
|
+
this.refreshPaneStatus();
|
|
1346
|
+
}
|
|
1347
|
+
if (event.type === "auto_retry_end") {
|
|
1348
|
+
this.paneRetrying = false;
|
|
1349
|
+
this.refreshPaneStatus();
|
|
1350
|
+
}
|
|
1351
|
+
// A turn's opening supersedes the previous turn's failure — on either runtime, since
|
|
1352
|
+
// both can open a turn with turn_start alone. omp's attention policy is untouched.
|
|
1353
|
+
if (event.type === "turn_start") {
|
|
1354
|
+
this.paneError = false;
|
|
1355
|
+
this.paneRetrying = false;
|
|
1356
|
+
if (this.runtime === "omp" && !this.streaming) {
|
|
1357
|
+
// A turn the runtime opened itself is work in flight; agent_end still closes it.
|
|
1358
|
+
this.streaming = true;
|
|
1359
|
+
}
|
|
1360
|
+
this.refreshPaneStatus();
|
|
1160
1361
|
}
|
|
1161
1362
|
if (this.runtime === "omp") {
|
|
1162
1363
|
if (event.type === "agent_start" || event.type === "turn_start"
|
|
@@ -1175,13 +1376,17 @@ export class RunnerCore {
|
|
|
1175
1376
|
if (event.type === "turn_start")
|
|
1176
1377
|
this.assistantErrorShown = false;
|
|
1177
1378
|
}
|
|
1178
|
-
const mapped = mapPiEvent(event, this.runtime);
|
|
1379
|
+
const mapped = mapPiEvent(event, this.runtime, this.style);
|
|
1179
1380
|
// A working beat counts only for the latest accepted turn. Pi's runs start from this runner's prompts, so the run
|
|
1180
1381
|
// that opens is posted as one, before its first event; a prompt Pi handles without a run opens none. A prompt sent
|
|
1181
1382
|
// into an open run is accepted as it's sent (acceptIntoOpenRun).
|
|
1182
1383
|
const opening = this.runtime !== "omp" && mapped.streaming === true && !this.streaming;
|
|
1183
|
-
if (mapped.streaming !== undefined)
|
|
1384
|
+
if (mapped.streaming !== undefined) {
|
|
1385
|
+
const changed = this.streaming !== mapped.streaming;
|
|
1184
1386
|
this.streaming = mapped.streaming;
|
|
1387
|
+
if (changed)
|
|
1388
|
+
this.refreshPaneStatus();
|
|
1389
|
+
}
|
|
1185
1390
|
if (opening) {
|
|
1186
1391
|
this.turn += 1;
|
|
1187
1392
|
this.io.postActivity(this.activityPayload("UserPromptSubmit", "accepted", { turnId: String(this.turn) }));
|
|
@@ -1191,6 +1396,11 @@ export class RunnerCore {
|
|
|
1191
1396
|
if (event.type === "agent_end" && this.runtime === "omp")
|
|
1192
1397
|
this.postSessionIdentity();
|
|
1193
1398
|
if (event.type === "agent_end") {
|
|
1399
|
+
// A retry that never reported its end must not outlive the turn it belonged to.
|
|
1400
|
+
if (this.paneRetrying) {
|
|
1401
|
+
this.paneRetrying = false;
|
|
1402
|
+
this.refreshPaneStatus();
|
|
1403
|
+
}
|
|
1194
1404
|
// QA RED fold: live events do not reliably carry
|
|
1195
1405
|
// session-entry ids, so the durable cursor starved (lastEntryId stayed
|
|
1196
1406
|
// null in real runs). Refresh it from the source of truth after every
|
|
@@ -1211,6 +1421,9 @@ export class RunnerCore {
|
|
|
1211
1421
|
this.diag(mapped.errorNotice);
|
|
1212
1422
|
}
|
|
1213
1423
|
this.assistantErrorShown = true;
|
|
1424
|
+
// The failure is known: the row says so until a new turn starts, never idle.
|
|
1425
|
+
this.paneError = true;
|
|
1426
|
+
this.refreshPaneStatus();
|
|
1214
1427
|
// Only typed, explicitly transient HTTP failures may release the send
|
|
1215
1428
|
// guard at agent_end. Unknown/auth/configuration failures stay attention;
|
|
1216
1429
|
// diagnostic prose is never used to decide whether a retry is safe.
|
|
@@ -1782,6 +1995,7 @@ export async function main(argv = process.argv.slice(2)) {
|
|
|
1782
1995
|
mirrorLine: (line) => pane.line(line),
|
|
1783
1996
|
mirrorAppend: (text) => pane.transcript(text),
|
|
1784
1997
|
diagnostic: (text) => pane.diagnostic(text),
|
|
1998
|
+
status: (text) => pane.status(text),
|
|
1785
1999
|
clearStatus: () => pane.clearStatus(),
|
|
1786
2000
|
postActivity: (payload) => {
|
|
1787
2001
|
if (!endpoint || typeof fetch !== "function")
|
|
@@ -1848,7 +2062,7 @@ export async function main(argv = process.argv.slice(2)) {
|
|
|
1848
2062
|
generation: process.env.OPENRIG_OCCUPANT_GENERATION,
|
|
1849
2063
|
runId: runId,
|
|
1850
2064
|
}, { catchUpSince, runtime, usageFacts: args.usageFacts === true, openRouterCharge: args.openRouterCharge === true, launchCredentialEvidence,
|
|
1851
|
-
requestedSessionFile: args.sessionFile });
|
|
2065
|
+
requestedSessionFile: args.sessionFile, model: args.model, thinking: args.thinking });
|
|
1852
2066
|
let transportUp = runtime !== "omp";
|
|
1853
2067
|
readline.createInterface({ input: child.stdout }).on("line", (line) => {
|
|
1854
2068
|
if (runtime === "omp" && !core.isReady()) {
|