@openrig/cli 0.7.2 → 0.7.4
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 +5 -5
- 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 -0
- package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +13 -9
- package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/SKILL.md +2 -2
- package/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md +37 -3
- package/daemon/assets/plugins/openrig-core/skills/queue-handoff/SKILL.md +4 -0
- package/daemon/context-packs/help/help.md +6 -3
- 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 +100 -15
- package/daemon/context-packs/reference/getting-started.md +12 -8
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +89 -3
- package/daemon/context-packs/reference/whats-new.md +109 -282
- 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 +2 -2
- package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/messaging-the-human/SKILL.md +37 -3
- 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 +5 -2
- package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
- package/daemon/context-packs/skills/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/SKILL.md +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/systematic-debugging/root-cause-tracing.md +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/SKILL.md +4 -0
- 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 +1 -0
- package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +17 -4
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume.js +18 -6
- package/daemon/dist/adapters/claude-resume.js.map +1 -1
- package/daemon/dist/adapters/codex-resume.d.ts +2 -1
- package/daemon/dist/adapters/codex-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-resume.js +20 -8
- package/daemon/dist/adapters/codex-resume.js.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts +10 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js +381 -50
- package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/pi-openrouter-charge.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-openrouter-charge.js +3 -0
- package/daemon/dist/adapters/pi-openrouter-charge.js.map +1 -1
- package/daemon/dist/adapters/pi-resume.js +1 -1
- package/daemon/dist/adapters/pi-resume.js.map +1 -1
- package/daemon/dist/adapters/pi-runner-protocol.d.ts +3 -3
- package/daemon/dist/adapters/pi-runner-protocol.js +2 -2
- package/daemon/dist/adapters/pi-runner.d.ts +1 -1
- package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner.js +13 -4
- package/daemon/dist/adapters/pi-runner.js.map +1 -1
- package/daemon/dist/adapters/tmux-server.d.ts +0 -3
- package/daemon/dist/adapters/tmux-server.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-server.js +0 -5
- package/daemon/dist/adapters/tmux-server.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +13 -0
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +62 -4
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/attention-surface.d.ts +16 -1
- package/daemon/dist/attention-surface.d.ts.map +1 -1
- package/daemon/dist/attention-surface.js.map +1 -1
- package/daemon/dist/build-info.js +3 -3
- package/daemon/dist/context-pack-taxonomy-surface.js +1 -1
- package/daemon/dist/context-pack-taxonomy-surface.js.map +1 -1
- package/daemon/dist/db/all-migrations.d.ts.map +1 -1
- package/daemon/dist/db/all-migrations.js +4 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrations/137_node_codex_permissions.d.ts +3 -0
- package/daemon/dist/db/migrations/137_node_codex_permissions.d.ts.map +1 -0
- package/daemon/dist/db/migrations/137_node_codex_permissions.js +7 -0
- package/daemon/dist/db/migrations/137_node_codex_permissions.js.map +1 -0
- package/daemon/dist/db/migrations/140_identity_principal.d.ts +12 -0
- package/daemon/dist/db/migrations/140_identity_principal.d.ts.map +1 -0
- package/daemon/dist/db/migrations/140_identity_principal.js +20 -0
- package/daemon/dist/db/migrations/140_identity_principal.js.map +1 -0
- package/daemon/dist/domain/active-occupant.js +1 -1
- package/daemon/dist/domain/active-occupant.js.map +1 -1
- package/daemon/dist/domain/agent-activity-store.d.ts +1 -1
- package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
- package/daemon/dist/domain/agent-activity-store.js +5 -3
- package/daemon/dist/domain/agent-activity-store.js.map +1 -1
- package/daemon/dist/domain/agent-resolver.js +1 -1
- package/daemon/dist/domain/agent-resolver.js.map +1 -1
- package/daemon/dist/domain/bind-plan.js +1 -1
- package/daemon/dist/domain/bind-plan.js.map +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.js +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.js.map +1 -1
- package/daemon/dist/domain/bundle-skills-router.js +2 -2
- package/daemon/dist/domain/bundle-skills-router.js.map +1 -1
- package/daemon/dist/domain/codex-member-permissions.d.ts +56 -0
- package/daemon/dist/domain/codex-member-permissions.d.ts.map +1 -0
- package/daemon/dist/domain/codex-member-permissions.js +140 -0
- package/daemon/dist/domain/codex-member-permissions.js.map +1 -0
- package/daemon/dist/domain/codex-owned-plugin-trust.d.ts.map +1 -1
- package/daemon/dist/domain/codex-owned-plugin-trust.js +2 -1
- package/daemon/dist/domain/codex-owned-plugin-trust.js.map +1 -1
- package/daemon/dist/domain/context-packs/context-pack-library-service.js +2 -2
- package/daemon/dist/domain/context-packs/context-pack-library-service.js.map +1 -1
- package/daemon/dist/domain/current-restore-snapshot.d.ts +8 -0
- package/daemon/dist/domain/current-restore-snapshot.d.ts.map +1 -0
- package/daemon/dist/domain/current-restore-snapshot.js +26 -0
- package/daemon/dist/domain/current-restore-snapshot.js.map +1 -0
- 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-candidate-reader.d.ts +16 -0
- package/daemon/dist/domain/execution-candidate-reader.d.ts.map +1 -0
- package/daemon/dist/domain/execution-candidate-reader.js +77 -0
- package/daemon/dist/domain/execution-candidate-reader.js.map +1 -0
- package/daemon/dist/domain/execution-view.d.ts.map +1 -1
- package/daemon/dist/domain/execution-view.js +16 -6
- package/daemon/dist/domain/execution-view.js.map +1 -1
- package/daemon/dist/domain/feed-perspective.d.ts +14 -0
- package/daemon/dist/domain/feed-perspective.d.ts.map +1 -0
- package/daemon/dist/domain/feed-perspective.js +36 -0
- package/daemon/dist/domain/feed-perspective.js.map +1 -0
- package/daemon/dist/domain/gateway/channel-operations.d.ts +1 -1
- package/daemon/dist/domain/gateway/channel-operations.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/destination-resolver.d.ts +6 -0
- package/daemon/dist/domain/gateway/destination-resolver.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/destination-resolver.js +8 -1
- package/daemon/dist/domain/gateway/destination-resolver.js.map +1 -1
- package/daemon/dist/domain/gateway/human-registry.d.ts +11 -4
- package/daemon/dist/domain/gateway/human-registry.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/human-registry.js +36 -5
- 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 +5 -2
- package/daemon/dist/domain/gateway/operator-delivery-engine.js.map +1 -1
- package/daemon/dist/domain/gateway/participants.d.ts +180 -0
- package/daemon/dist/domain/gateway/participants.d.ts.map +1 -0
- package/daemon/dist/domain/gateway/participants.js +434 -0
- package/daemon/dist/domain/gateway/participants.js.map +1 -0
- package/daemon/dist/domain/gateway/slack/inbound-admission.d.ts +2 -2
- package/daemon/dist/domain/gateway/slack/inbound-admission.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound-admission.js +73 -6
- package/daemon/dist/domain/gateway/slack/inbound-admission.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.d.ts +18 -1
- package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.js +27 -11
- package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.d.ts +2 -0
- package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.js +14 -6
- package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/open-asks.d.ts +50 -0
- package/daemon/dist/domain/gateway/slack/open-asks.d.ts.map +1 -0
- package/daemon/dist/domain/gateway/slack/open-asks.js +215 -0
- package/daemon/dist/domain/gateway/slack/open-asks.js.map +1 -0
- package/daemon/dist/domain/gateway/slack/outbound-driver.d.ts +2 -0
- package/daemon/dist/domain/gateway/slack/outbound-driver.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/outbound-driver.js +1 -0
- package/daemon/dist/domain/gateway/slack/outbound-driver.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts +15 -1
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.js +98 -29
- package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.js +1 -0
- 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 +59 -4
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/state-store.d.ts +3 -0
- package/daemon/dist/domain/gateway/slack/state-store.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/state-store.js +18 -0
- package/daemon/dist/domain/gateway/slack/state-store.js.map +1 -1
- package/daemon/dist/domain/hosted-wake.d.ts +19 -0
- package/daemon/dist/domain/hosted-wake.d.ts.map +1 -0
- package/daemon/dist/domain/hosted-wake.js +56 -0
- package/daemon/dist/domain/hosted-wake.js.map +1 -0
- package/daemon/dist/domain/hot-potato-enforcer.d.ts +1 -1
- package/daemon/dist/domain/kernel-boot.d.ts +10 -4
- package/daemon/dist/domain/kernel-boot.d.ts.map +1 -1
- package/daemon/dist/domain/kernel-boot.js +14 -7
- package/daemon/dist/domain/kernel-boot.js.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-read-layer.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-read-layer.js +3 -1
- package/daemon/dist/domain/mission-control/mission-control-read-layer.js.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts +16 -0
- package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js +64 -16
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
- package/daemon/dist/domain/native-permission-store.d.ts +3 -2
- package/daemon/dist/domain/native-permission-store.d.ts.map +1 -1
- package/daemon/dist/domain/native-permission-store.js +14 -1
- package/daemon/dist/domain/native-permission-store.js.map +1 -1
- 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 +37 -2
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/node-inventory.d.ts +2 -2
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +10 -5
- package/daemon/dist/domain/node-inventory.js.map +1 -1
- package/daemon/dist/domain/node-launcher.d.ts +5 -0
- package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/node-launcher.js +35 -1
- package/daemon/dist/domain/node-launcher.js.map +1 -1
- package/daemon/dist/domain/outbox-handler.d.ts +3 -0
- package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
- package/daemon/dist/domain/outbox-handler.js +10 -4
- package/daemon/dist/domain/outbox-handler.js.map +1 -1
- package/daemon/dist/domain/permission-account.d.ts.map +1 -1
- package/daemon/dist/domain/permission-account.js +44 -9
- package/daemon/dist/domain/permission-account.js.map +1 -1
- package/daemon/dist/domain/permission-drift-observer.js +1 -1
- package/daemon/dist/domain/permission-drift-observer.js.map +1 -1
- package/daemon/dist/domain/policies/artifact-pool-helpers.d.ts +3 -1
- package/daemon/dist/domain/policies/artifact-pool-helpers.d.ts.map +1 -1
- package/daemon/dist/domain/policies/artifact-pool-helpers.js +1 -1
- package/daemon/dist/domain/policies/artifact-pool-helpers.js.map +1 -1
- package/daemon/dist/domain/policies/delivery-digest-flush.d.ts +6 -2
- package/daemon/dist/domain/policies/delivery-digest-flush.d.ts.map +1 -1
- package/daemon/dist/domain/policies/delivery-digest-flush.js +34 -9
- package/daemon/dist/domain/policies/delivery-digest-flush.js.map +1 -1
- package/daemon/dist/domain/policies/edge-artifact-required.d.ts.map +1 -1
- package/daemon/dist/domain/policies/edge-artifact-required.js +3 -0
- package/daemon/dist/domain/policies/edge-artifact-required.js.map +1 -1
- package/daemon/dist/domain/policies/quiet-release.d.ts +14 -0
- package/daemon/dist/domain/policies/quiet-release.d.ts.map +1 -1
- package/daemon/dist/domain/policies/quiet-release.js +13 -2
- package/daemon/dist/domain/policies/quiet-release.js.map +1 -1
- package/daemon/dist/domain/profile-resolution-worker.d.ts +1 -1
- package/daemon/dist/domain/profile-resolution-worker.d.ts.map +1 -1
- package/daemon/dist/domain/profile-resolution-worker.js +5 -5
- package/daemon/dist/domain/profile-resolution-worker.js.map +1 -1
- package/daemon/dist/domain/provider/claude-interruption.d.ts +3 -0
- package/daemon/dist/domain/provider/claude-interruption.d.ts.map +1 -0
- package/daemon/dist/domain/provider/claude-interruption.js +5 -0
- package/daemon/dist/domain/provider/claude-interruption.js.map +1 -0
- package/daemon/dist/domain/provider/host-usage-rollup.js +18 -8
- package/daemon/dist/domain/provider/host-usage-rollup.js.map +1 -1
- package/daemon/dist/domain/provider/provider-signals.d.ts +12 -5
- package/daemon/dist/domain/provider/provider-signals.d.ts.map +1 -1
- package/daemon/dist/domain/provider/provider-signals.js +31 -8
- package/daemon/dist/domain/provider/provider-signals.js.map +1 -1
- package/daemon/dist/domain/provider/reactive-tap.d.ts +4 -4
- package/daemon/dist/domain/provider/reactive-tap.d.ts.map +1 -1
- package/daemon/dist/domain/provider/reactive-tap.js +20 -4
- package/daemon/dist/domain/provider/reactive-tap.js.map +1 -1
- package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
- package/daemon/dist/domain/ps-projection.js +3 -2
- package/daemon/dist/domain/ps-projection.js.map +1 -1
- package/daemon/dist/domain/queue-destination-check.d.ts +5 -0
- package/daemon/dist/domain/queue-destination-check.d.ts.map +1 -1
- package/daemon/dist/domain/queue-destination-check.js +5 -1
- package/daemon/dist/domain/queue-destination-check.js.map +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +38 -6
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +115 -33
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-retention.d.ts.map +1 -1
- package/daemon/dist/domain/queue-retention.js +4 -2
- package/daemon/dist/domain/queue-retention.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +35 -0
- 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 +11 -2
- package/daemon/dist/domain/queue-transition-log.js.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.d.ts +1 -1
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +2 -1
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/reconciler.d.ts +2 -0
- package/daemon/dist/domain/reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/reconciler.js +5 -2
- package/daemon/dist/domain/reconciler.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +21 -2
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +182 -43
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/restore-plan-preview.d.ts +27 -1
- package/daemon/dist/domain/restore-plan-preview.d.ts.map +1 -1
- package/daemon/dist/domain/restore-plan-preview.js +51 -29
- package/daemon/dist/domain/restore-plan-preview.js.map +1 -1
- package/daemon/dist/domain/review/compose.js +1 -1
- package/daemon/dist/domain/review/compose.js.map +1 -1
- package/daemon/dist/domain/review/gather.d.ts +11 -0
- package/daemon/dist/domain/review/gather.d.ts.map +1 -1
- package/daemon/dist/domain/review/gather.js +65 -27
- package/daemon/dist/domain/review/gather.js.map +1 -1
- 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-repository.d.ts +1 -0
- package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
- package/daemon/dist/domain/rig-repository.js +15 -0
- package/daemon/dist/domain/rig-repository.js.map +1 -1
- package/daemon/dist/domain/rig-teardown.d.ts +3 -0
- package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
- package/daemon/dist/domain/rig-teardown.js +3 -0
- 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 +4 -0
- package/daemon/dist/domain/rigspec-codec.js.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.js +12 -1
- package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts +2 -0
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +150 -128
- package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-schema.js +24 -1
- package/daemon/dist/domain/rigspec-schema.js.map +1 -1
- package/daemon/dist/domain/rosters.d.ts +46 -0
- package/daemon/dist/domain/rosters.d.ts.map +1 -0
- package/daemon/dist/domain/rosters.js +80 -0
- package/daemon/dist/domain/rosters.js.map +1 -0
- package/daemon/dist/domain/runtime-adapter.d.ts +4 -0
- package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-adapter.js +2 -0
- package/daemon/dist/domain/runtime-adapter.js.map +1 -1
- package/daemon/dist/domain/scope/dot-id.js +2 -2
- package/daemon/dist/domain/scope/dot-id.js.map +1 -1
- package/daemon/dist/domain/scope/scaffold-placeholder.d.ts +1 -1
- package/daemon/dist/domain/scope/scaffold-placeholder.js +1 -1
- package/daemon/dist/domain/scope/scope-audit.js +1 -1
- package/daemon/dist/domain/scope/scope-audit.js.map +1 -1
- package/daemon/dist/domain/scope/types.d.ts.map +1 -1
- package/daemon/dist/domain/scope/types.js +2 -3
- package/daemon/dist/domain/scope/types.js.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.d.ts +2 -0
- package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.js +10 -1
- package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-handover-service.d.ts +7 -1
- package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-handover-service.js +89 -4
- package/daemon/dist/domain/seat-handover-service.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +23 -8
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +153 -12
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.d.ts +2 -2
- package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.js +2 -2
- package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts +9 -2
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.js +53 -5
- package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
- package/daemon/dist/domain/seat-status-service.d.ts +1 -0
- package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-status-service.js +11 -0
- package/daemon/dist/domain/seat-status-service.js.map +1 -1
- package/daemon/dist/domain/seat-structural-activity-service.js +1 -1
- package/daemon/dist/domain/seat-structural-activity-service.js.map +1 -1
- package/daemon/dist/domain/session-registry.d.ts +2 -0
- package/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.js +3 -1
- package/daemon/dist/domain/session-registry.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +45 -1
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +205 -29
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/shared-history-selection.d.ts +34 -0
- package/daemon/dist/domain/shared-history-selection.d.ts.map +1 -0
- package/daemon/dist/domain/shared-history-selection.js +74 -0
- package/daemon/dist/domain/shared-history-selection.js.map +1 -0
- package/daemon/dist/domain/skill-library-discovery.js +2 -2
- package/daemon/dist/domain/skill-library-discovery.js.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.d.ts +4 -4
- package/daemon/dist/domain/slices/slice-indexer.js +17 -17
- package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
- package/daemon/dist/domain/snapshot-capture.d.ts +1 -0
- package/daemon/dist/domain/snapshot-capture.d.ts.map +1 -1
- package/daemon/dist/domain/snapshot-capture.js +43 -1
- package/daemon/dist/domain/snapshot-capture.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts +2 -16
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +15 -64
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.d.ts +32 -0
- package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.js +60 -0
- package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.d.ts +1 -0
- package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.js +1 -0
- package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
- package/daemon/dist/domain/terminal/task-terminal-view.d.ts +50 -0
- package/daemon/dist/domain/terminal/task-terminal-view.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/task-terminal-view.js +227 -0
- package/daemon/dist/domain/terminal/task-terminal-view.js.map +1 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts +9 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-provider.js +0 -15
- package/daemon/dist/domain/terminal/terminal-provider.js.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.d.ts +7 -2
- package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.js +25 -3
- package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
- package/daemon/dist/domain/toml-tables.d.ts +20 -0
- package/daemon/dist/domain/toml-tables.d.ts.map +1 -0
- package/daemon/dist/domain/toml-tables.js +101 -0
- package/daemon/dist/domain/toml-tables.js.map +1 -0
- package/daemon/dist/domain/types.d.ts +32 -0
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/usage-series.d.ts.map +1 -1
- package/daemon/dist/domain/usage-series.js +17 -3
- package/daemon/dist/domain/usage-series.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.js +5 -6
- package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
- package/daemon/dist/domain/view-projector.d.ts +1 -0
- package/daemon/dist/domain/view-projector.d.ts.map +1 -1
- package/daemon/dist/domain/view-projector.js +15 -2
- package/daemon/dist/domain/view-projector.js.map +1 -1
- package/daemon/dist/domain/workflow-human-destination.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-human-destination.js +5 -3
- package/daemon/dist/domain/workflow-human-destination.js.map +1 -1
- package/daemon/dist/domain/workflow-projector.d.ts +1 -0
- package/daemon/dist/domain/workflow-projector.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-projector.js +19 -3
- package/daemon/dist/domain/workflow-projector.js.map +1 -1
- package/daemon/dist/domain/workflow-runtime.d.ts +2 -2
- package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-runtime.js +6 -4
- package/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/daemon/dist/gateway-human-registry-surface.d.ts +1 -0
- package/daemon/dist/gateway-human-registry-surface.d.ts.map +1 -1
- package/daemon/dist/gateway-human-registry-surface.js +1 -0
- package/daemon/dist/gateway-human-registry-surface.js.map +1 -1
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +6 -3
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/lib/pane-envelope.d.ts +4 -0
- package/daemon/dist/lib/pane-envelope.d.ts.map +1 -1
- package/daemon/dist/lib/pane-envelope.js +1 -1
- package/daemon/dist/lib/pane-envelope.js.map +1 -1
- package/daemon/dist/rosters-surface.d.ts +2 -0
- package/daemon/dist/rosters-surface.d.ts.map +1 -0
- package/daemon/dist/rosters-surface.js +4 -0
- package/daemon/dist/rosters-surface.js.map +1 -0
- package/daemon/dist/routes/activity.js +1 -1
- 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 +10 -0
- 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 +15 -3
- package/daemon/dist/routes/attention.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/gateway.d.ts.map +1 -1
- package/daemon/dist/routes/gateway.js +42 -0
- package/daemon/dist/routes/gateway.js.map +1 -1
- package/daemon/dist/routes/hosts.d.ts.map +1 -1
- package/daemon/dist/routes/hosts.js +5 -2
- 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 +5 -1
- package/daemon/dist/routes/mission-control.js.map +1 -1
- package/daemon/dist/routes/plugins.js +1 -1
- package/daemon/dist/routes/plugins.js.map +1 -1
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +41 -14
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/require-sender-identity.d.ts +26 -0
- package/daemon/dist/routes/require-sender-identity.d.ts.map +1 -1
- package/daemon/dist/routes/require-sender-identity.js +54 -0
- package/daemon/dist/routes/require-sender-identity.js.map +1 -1
- package/daemon/dist/routes/rigs.js +2 -0
- package/daemon/dist/routes/rigs.js.map +1 -1
- package/daemon/dist/routes/runtime-switch-custody.js +1 -1
- package/daemon/dist/routes/scope-audit.js +1 -1
- package/daemon/dist/routes/scope-audit.js.map +1 -1
- package/daemon/dist/routes/seat.d.ts.map +1 -1
- package/daemon/dist/routes/seat.js +49 -15
- package/daemon/dist/routes/seat.js.map +1 -1
- package/daemon/dist/routes/sessions.js +15 -3
- package/daemon/dist/routes/sessions.js.map +1 -1
- package/daemon/dist/routes/skills.js +1 -1
- package/daemon/dist/routes/skills.js.map +1 -1
- package/daemon/dist/routes/slices.js +1 -1
- package/daemon/dist/routes/slices.js.map +1 -1
- package/daemon/dist/routes/startup.d.ts.map +1 -1
- package/daemon/dist/routes/startup.js +269 -3
- package/daemon/dist/routes/startup.js.map +1 -1
- package/daemon/dist/routes/transcripts.js +2 -2
- package/daemon/dist/routes/transcripts.js.map +1 -1
- package/daemon/dist/routes/transport.d.ts.map +1 -1
- package/daemon/dist/routes/transport.js +21 -6
- package/daemon/dist/routes/transport.js.map +1 -1
- package/daemon/dist/routes/workflow.js +1 -1
- package/daemon/dist/routes/workflow.js.map +1 -1
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +17 -2
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/dist/terminal/TerminalSessionBroker.d.ts +18 -2
- package/daemon/dist/terminal/TerminalSessionBroker.d.ts.map +1 -1
- package/daemon/dist/terminal/TerminalSessionBroker.js +55 -9
- package/daemon/dist/terminal/TerminalSessionBroker.js.map +1 -1
- package/daemon/dist/terminal/window-pin.d.ts +41 -0
- package/daemon/dist/terminal/window-pin.d.ts.map +1 -0
- package/daemon/dist/terminal/window-pin.js +103 -0
- package/daemon/dist/terminal/window-pin.js.map +1 -0
- package/daemon/docs/reference/a2a-agents.md +16 -4
- package/daemon/docs/reference/agent-startup-guide.md +34 -2
- package/daemon/docs/reference/agent-state-taxonomy.md +7 -0
- package/daemon/docs/reference/claude-status-line.md +42 -0
- package/daemon/docs/reference/community-harness-examples/hermes/config.yaml.example +2 -1
- package/daemon/docs/reference/community-harness-examples/hermes/hermes.yaml +1 -1
- package/daemon/docs/reference/community-harness-presets.md +83 -3
- package/daemon/docs/reference/gateway-participants.md +165 -0
- package/daemon/docs/reference/getting-started.md +12 -8
- package/daemon/docs/reference/help.md +6 -3
- package/daemon/docs/reference/hosted-members.md +110 -0
- package/daemon/docs/reference/quickstart.md +13 -1
- package/daemon/docs/reference/rig-spec.md +89 -3
- package/daemon/docs/reference/rosters.md +6 -0
- package/daemon/docs/reference/seat-delivery.md +10 -1
- package/daemon/docs/reference/seat-node-targeting.md +17 -0
- package/daemon/docs/reference/slack-app-setup.md +20 -2
- package/daemon/docs/reference/terminal-sessions.md +45 -0
- package/daemon/docs/reference/whats-new.md +109 -282
- package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +37 -3
- package/daemon/specs/agents/shared/skills/core/openrig-herdr/SKILL.md +5 -2
- package/daemon/specs/agents/shared/skills/process/agent-browser/SKILL.md +1 -1
- package/daemon/specs/agents/shared/skills/process/systematic-debugging/root-cause-tracing.md +1 -1
- package/dist/build-info.js +3 -3
- package/dist/client.d.ts +20 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +57 -26
- package/dist/client.js.map +1 -1
- package/dist/commands/acp.js +1 -1
- package/dist/commands/capture.d.ts +27 -0
- package/dist/commands/capture.d.ts.map +1 -1
- package/dist/commands/capture.js +62 -4
- package/dist/commands/capture.js.map +1 -1
- package/dist/commands/daemon.d.ts.map +1 -1
- package/dist/commands/daemon.js +6 -1
- package/dist/commands/daemon.js.map +1 -1
- package/dist/commands/doctor.d.ts +9 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +18 -2
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/down.d.ts.map +1 -1
- package/dist/commands/down.js +3 -0
- package/dist/commands/down.js.map +1 -1
- package/dist/commands/export.d.ts.map +1 -1
- package/dist/commands/export.js +10 -5
- package/dist/commands/export.js.map +1 -1
- package/dist/commands/gateway.d.ts.map +1 -1
- package/dist/commands/gateway.js +309 -23
- package/dist/commands/gateway.js.map +1 -1
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/mcp.js +58 -14
- package/dist/commands/mcp.js.map +1 -1
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +30 -10
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/rig-mode.d.ts +1 -2
- package/dist/commands/rig-mode.d.ts.map +1 -1
- package/dist/commands/rig-mode.js +2 -2
- package/dist/commands/rig-mode.js.map +1 -1
- package/dist/commands/roster.d.ts +7 -27
- package/dist/commands/roster.d.ts.map +1 -1
- package/dist/commands/roster.js +17 -52
- package/dist/commands/roster.js.map +1 -1
- package/dist/commands/scope.d.ts.map +1 -1
- package/dist/commands/scope.js +12 -4
- package/dist/commands/scope.js.map +1 -1
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +76 -5
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/send.d.ts +3 -0
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +16 -18
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/commands/setup.js +10 -2
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/skill.js +1 -1
- package/dist/commands/skill.js.map +1 -1
- package/dist/commands/slack.d.ts +10 -0
- package/dist/commands/slack.d.ts.map +1 -1
- package/dist/commands/slack.js +70 -2
- package/dist/commands/slack.js.map +1 -1
- package/dist/commands/start.d.ts.map +1 -1
- package/dist/commands/start.js +3 -6
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/terminal.js +1 -1
- package/dist/commands/terminal.js.map +1 -1
- package/dist/commands/whoami.d.ts.map +1 -1
- package/dist/commands/whoami.js +2 -1
- package/dist/commands/whoami.js.map +1 -1
- package/dist/config-store.d.ts.map +1 -1
- package/dist/config-store.js +3 -2
- package/dist/config-store.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts +5 -1
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +13 -2
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/fetch-with-timeout.d.ts.map +1 -1
- package/dist/fetch-with-timeout.js +3 -1
- package/dist/fetch-with-timeout.js.map +1 -1
- package/dist/lib/scope/dot-id.js +2 -2
- package/dist/lib/scope/dot-id.js.map +1 -1
- package/dist/lib/scope/scaffold-placeholder.d.ts +1 -1
- package/dist/lib/scope/scaffold-placeholder.js +1 -1
- package/dist/lib/scope/scope-audit.js +1 -1
- package/dist/lib/scope/scope-audit.js.map +1 -1
- package/dist/lib/scope/types.d.ts.map +1 -1
- package/dist/lib/scope/types.js +2 -3
- package/dist/lib/scope/types.js.map +1 -1
- package/dist/long-request-fetch.d.ts +9 -0
- package/dist/long-request-fetch.d.ts.map +1 -0
- package/dist/long-request-fetch.js +48 -0
- package/dist/long-request-fetch.js.map +1 -0
- package/dist/mcp-http.d.ts +38 -2
- package/dist/mcp-http.d.ts.map +1 -1
- package/dist/mcp-http.js +303 -36
- package/dist/mcp-http.js.map +1 -1
- package/dist/mcp-presence.d.ts +14 -0
- package/dist/mcp-presence.d.ts.map +1 -0
- package/dist/mcp-presence.js +50 -0
- package/dist/mcp-presence.js.map +1 -0
- package/dist/mcp-server.d.ts +12 -2
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +620 -204
- package/dist/mcp-server.js.map +1 -1
- package/dist/release-surface/affected-skills.d.ts.map +1 -1
- package/dist/release-surface/affected-skills.js +1 -2
- package/dist/release-surface/affected-skills.js.map +1 -1
- package/dist/remote-host-ops.d.ts +1 -0
- package/dist/remote-host-ops.d.ts.map +1 -1
- package/dist/remote-host-ops.js +2 -2
- package/dist/remote-host-ops.js.map +1 -1
- package/dist/rig-handle.d.ts +1 -0
- package/dist/rig-handle.d.ts.map +1 -1
- package/dist/rig-handle.js +9 -0
- package/dist/rig-handle.js.map +1 -1
- package/dist/tmux-health.d.ts +26 -0
- package/dist/tmux-health.d.ts.map +1 -1
- package/dist/tmux-health.js +42 -0
- package/dist/tmux-health.js.map +1 -1
- package/package.json +5 -2
- package/tui/dist/attention/attention-model.d.ts +19 -0
- package/tui/dist/attention/attention-model.d.ts.map +1 -1
- package/tui/dist/attention/attention-model.js +38 -6
- 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 +4 -1
- package/tui/dist/commands/registry.js.map +1 -1
- package/tui/dist/daemon-client.d.ts +15 -9
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js +21 -12
- package/tui/dist/daemon-client.js.map +1 -1
- package/tui/dist/demo-data.js +17 -17
- package/tui/dist/demo-data.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 +37 -11
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/live-events.js +1 -1
- package/tui/dist/live-events.js.map +1 -1
- package/tui/dist/main.js +34 -10
- package/tui/dist/main.js.map +1 -1
- package/tui/dist/page-read.js +1 -1
- package/tui/dist/page-read.js.map +1 -1
- package/tui/dist/render.d.ts +6 -0
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +57 -7
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/state.d.ts.map +1 -1
- package/tui/dist/state.js +5 -1
- package/tui/dist/state.js.map +1 -1
- package/tui/dist/terminals/open-window.d.ts +8 -3
- package/tui/dist/terminals/open-window.d.ts.map +1 -1
- package/tui/dist/terminals/open-window.js +21 -6
- package/tui/dist/terminals/open-window.js.map +1 -1
- package/tui/dist/terminals/terminal-model.d.ts +1 -1
- package/tui/dist/terminals/terminal-model.d.ts.map +1 -1
- package/tui/dist/terminals/terminal-model.js +1 -1
- package/tui/dist/terminals/terminal-model.js.map +1 -1
- package/tui/dist/types.d.ts +10 -1
- package/tui/dist/types.d.ts.map +1 -1
- package/ui/dist/assets/{index-DLP1ipGq.js → index-DV0UNxFw.js} +1 -1
- package/ui/dist/index.html +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { physicalSessionName } from "./session-registry.js";
|
|
2
2
|
import { currentClaudeMcpMenu } from "./claude-mcp-menu.js";
|
|
3
|
+
import { currentClaudeResumePicker } from "./native-resume-probe.js";
|
|
3
4
|
import stringWidth from "string-width";
|
|
4
5
|
import { CODEX_TURN_STATUS_PATTERN } from "./codex-pane-patterns.js";
|
|
5
6
|
import { randomUUID } from "node:crypto";
|
|
@@ -8,8 +9,9 @@ import { composerContainsOwnedText, composerNumberedChoicePattern, composerPromp
|
|
|
8
9
|
export { inspectStartupStagedText } from "./startup-submission-evidence.js";
|
|
9
10
|
import { OutboxHandler } from "./outbox-handler.js";
|
|
10
11
|
import { DraftAwareDelivery } from "./draft-aware-delivery.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
12
|
+
import { communityHarnessOf } from "./built-in-runtimes.js";
|
|
13
|
+
import { claudeResumeRotation, sessionCommunityHarnessSelect } from "./session-registry.js";
|
|
14
|
+
import { newPinHolder, readPinSizing, recordPin, releasePin, WINDOW_SIZE_PRIOR_OPTION, withWindowPin } from "../terminal/window-pin.js";
|
|
13
15
|
import { latestHookPermissionPending, latestHookWaitsOnPerson } from "./agent-activity-store.js";
|
|
14
16
|
import { DeliveryGuardError } from "./seat-delivery-guard.js";
|
|
15
17
|
import { withUrgentLine } from "./urgent-line.js";
|
|
@@ -537,10 +539,35 @@ function draftComposerLine(lines, verdict) {
|
|
|
537
539
|
return null;
|
|
538
540
|
return lines[last].trim();
|
|
539
541
|
}
|
|
542
|
+
const OPENCLAW_TURN_NOT_RECOVERED = "OpenClaw turn not recovered; inspect the pane before retrying";
|
|
543
|
+
/** The pinned OpenClaw local error frame, not a quoted error in history or a recovery-state diagnosis.
|
|
544
|
+
* Multiple native branches emit the same refusal; observe it without touching native session state. */
|
|
545
|
+
function currentOpenClawTurnRefusal(paneContent) {
|
|
546
|
+
const lines = trimPaneLines(styledTextLines(paneContent).map(line => line.text).join("\n"));
|
|
547
|
+
const editorRules = lines.flatMap((line, at) => /^─{3,}$/.test(line) ? [at] : []);
|
|
548
|
+
// The pinned TUI puts its status/footer above the editor. Extra rules make that boundary ambiguous;
|
|
549
|
+
// leave those layouts unclassified rather than selecting a quoted frame inside the composer.
|
|
550
|
+
if (editorRules.length !== 2 || editorRules[1] !== lines.length - 1)
|
|
551
|
+
return null;
|
|
552
|
+
for (let at = editorRules[0] - 1; at >= 0; at--) {
|
|
553
|
+
if (!/^(?:local|gateway)\s+.*\|/.test(lines[at]))
|
|
554
|
+
continue;
|
|
555
|
+
if (lines[at].replace(/\s+/g, " ") !== "local ready | error"
|
|
556
|
+
|| !lines[at + 1]?.startsWith("agent main | session "))
|
|
557
|
+
return null;
|
|
558
|
+
const error = lines.slice(Math.max(0, at - 12), at).join(" ");
|
|
559
|
+
const match = /(?:^| )run error:\s*Session\s+"[^"]+"\s+changed while\s+starting work\.\s+Retry\.$/.exec(error);
|
|
560
|
+
return match ? truncateEvidence(match[0]) : null;
|
|
561
|
+
}
|
|
562
|
+
return null;
|
|
563
|
+
}
|
|
540
564
|
/** A community harness's screen never proves it's idle: a quiet prompt can be an approval or a pause, so its idle
|
|
541
565
|
* reading becomes unknown. Positive work and attention are kept. `communityHarness` is the seat's recorded selection
|
|
542
566
|
* (`communityHarnessOf`); without it the classification is returned as it is. */
|
|
543
|
-
export function communityHarnessPaneActivity(classification, communityHarness) {
|
|
567
|
+
export function communityHarnessPaneActivity(classification, communityHarness, paneContent = "") {
|
|
568
|
+
const refused = communityHarness === "openclaw" ? currentOpenClawTurnRefusal(paneContent) : null;
|
|
569
|
+
if (refused)
|
|
570
|
+
return { state: "attention", reason: OPENCLAW_TURN_NOT_RECOVERED, evidence: refused };
|
|
544
571
|
return communityHarness && classification.state === "agent_idle"
|
|
545
572
|
? { state: "unknown", reason: "community_harness_no_idle_signal", evidence: classification.evidence }
|
|
546
573
|
: classification;
|
|
@@ -604,7 +631,9 @@ export function classifyPaneActivity(paneContent, options = {}) {
|
|
|
604
631
|
const currentComposerSelection = currentComposerText
|
|
605
632
|
? findPatternEvidence(currentComposerText.split("\n").map(line => line.trimStart()), [COMPOSER_SELECTION_SCAN_PATTERN])
|
|
606
633
|
: null;
|
|
607
|
-
|
|
634
|
+
// Claude's resume picker types a paste into its search and resumes a card on Enter. A Codex or Pi pane printing one is output.
|
|
635
|
+
const claudePicker = options.runtime === "codex" || options.runtime === "pi" ? null : currentClaudeResumePicker(paneContent);
|
|
636
|
+
const selectionPromptEvidence = claudePicker ?? currentClaudeMcpMenu(paneContent) ?? findCurrentClaudeQuestion(paneContent) ??
|
|
608
637
|
currentComposerSelection ?? (options.currentClaudeDialogueOnly ? null
|
|
609
638
|
: findPatternEvidence(selectionLines, [COMPOSER_SELECTION_SCAN_PATTERN]));
|
|
610
639
|
if (selectionPromptEvidence) {
|
|
@@ -838,8 +867,15 @@ export async function probeSessionActivity(input) {
|
|
|
838
867
|
currentClaudeDialogueOnly: input.currentClaudeDialogueOnly === true,
|
|
839
868
|
postCompactTurnBoundary: input.postCompactTurnBoundary === true,
|
|
840
869
|
};
|
|
841
|
-
|
|
842
|
-
composerSnapshot: snapshot ?? undefined, runtime })
|
|
870
|
+
const paneClassification = classifyPaneActivity(paneContent ?? "", { ...classifyOptions,
|
|
871
|
+
composerSnapshot: snapshot ?? undefined, runtime });
|
|
872
|
+
let classification = communityHarnessPaneActivity(paneClassification, input.communityHarness, paneContent ?? "");
|
|
873
|
+
if (input.communityHarnessSendProbe) {
|
|
874
|
+
if (classification.reason === "community_harness_no_idle_signal")
|
|
875
|
+
classification = paneClassification;
|
|
876
|
+
else if (classification.reason === OPENCLAW_TURN_NOT_RECOVERED)
|
|
877
|
+
classification = { ...classification, state: "unknown" };
|
|
878
|
+
}
|
|
843
879
|
// Claude renders its prompt suggestion faint, which the plain capture loses. When a Claude pane reads
|
|
844
880
|
// as a draft, one capture with styling is classified on its own. Newer attention or work there is
|
|
845
881
|
// kept. A faint suggestion counts only when it's the same composer text this capture read as a draft;
|
|
@@ -1718,6 +1754,7 @@ export class SessionTransport {
|
|
|
1718
1754
|
const row = this.db.prepare(`
|
|
1719
1755
|
SELECT
|
|
1720
1756
|
n.runtime AS runtime,
|
|
1757
|
+
${sessionCommunityHarnessSelect(this.db)} AS community_harness,
|
|
1721
1758
|
b.attachment_type AS attachment_type,
|
|
1722
1759
|
n.id AS node_id,
|
|
1723
1760
|
b.tmux_session AS binding_session,
|
|
@@ -1737,6 +1774,7 @@ export class SessionTransport {
|
|
|
1737
1774
|
`).get(sessionName);
|
|
1738
1775
|
return {
|
|
1739
1776
|
runtime: row?.runtime ?? null,
|
|
1777
|
+
communityHarness: communityHarnessOf(row?.community_harness, row?.runtime),
|
|
1740
1778
|
attachmentType: row?.attachment_type ?? null,
|
|
1741
1779
|
nodeId: row?.node_id ?? null,
|
|
1742
1780
|
// The row may be a historical session of a node now bound elsewhere: only a
|
|
@@ -2112,7 +2150,7 @@ export class SessionTransport {
|
|
|
2112
2150
|
throw new Error("Committed wake target/ID mismatch");
|
|
2113
2151
|
outbox.retain(prior ? { ...prior, outboxId: id, tags: prior.tags ?? undefined, auditPointer: prior.auditPointer ?? undefined } : {
|
|
2114
2152
|
outboxId: id, senderSession: opts?.actorSession ?? "unknown", destinationSession: sessionName, body: text, auditPointer: opts?.auditPointer,
|
|
2115
|
-
identityProvenance: opts?.identityProvenance, ...(opts?.urgent ? { urgency: "urgent" } : {}),
|
|
2153
|
+
identityProvenance: opts?.identityProvenance, identityPrincipal: opts?.identityPrincipal, ...(opts?.urgent ? { urgency: "urgent" } : {}),
|
|
2116
2154
|
}, target, !!opts?.committedOutboxIds);
|
|
2117
2155
|
}
|
|
2118
2156
|
})();
|
|
@@ -2750,8 +2788,13 @@ export class SessionTransport {
|
|
|
2750
2788
|
// or not --dangerously-interact was passed (B1 code-review fix) — so the honest telemetry is
|
|
2751
2789
|
// surfaced without ever blocking communication. Hooks are advisory telemetry, not authority
|
|
2752
2790
|
// over whether agents can talk.
|
|
2753
|
-
|
|
2754
|
-
|
|
2791
|
+
if (readiness.reason === OPENCLAW_TURN_NOT_RECOVERED) {
|
|
2792
|
+
sendAdvisory = [sendAdvisory, `OpenClaw refused its last local turn and OpenRig hasn't recovered it; this message submits a new turn. Inspect it with rig capture ${sessionName}.`].filter(Boolean).join(" ");
|
|
2793
|
+
}
|
|
2794
|
+
else {
|
|
2795
|
+
const linkDiagnosis = await this.diagnoseProducerLink(sessionName, sessionMeta.runtime);
|
|
2796
|
+
sendAdvisory = [sendAdvisory, `producer-link: ${linkDiagnosis} — activity could not be determined (${readiness.reason}); sent anyway (telemetry is advisory).`].filter(Boolean).join(" ");
|
|
2797
|
+
}
|
|
2755
2798
|
// fall through to the send below.
|
|
2756
2799
|
}
|
|
2757
2800
|
else if (readiness.state === "running") {
|
|
@@ -2762,7 +2805,7 @@ export class SessionTransport {
|
|
|
2762
2805
|
// ONLY hard refuse; unknown/stale/missing already proceed-with-advisory above.
|
|
2763
2806
|
sendAdvisory = [sendAdvisory, "target pane appears mid-task; sent anyway (busy is advisory, not a block)."].filter(Boolean).join(" ");
|
|
2764
2807
|
if (runtime === "codex")
|
|
2765
|
-
sendAdvisory += " This message joins its running turn and may redirect it
|
|
2808
|
+
sendAdvisory += " This message joins its running turn and may redirect it. For separate work, create a queue row (rig queue create --destination <seat>): a saved row keeps the work apart from the short wake typed into the seat. To watch the result, --wait-for-idle <seconds> sends only once the seat is idle, and sends nothing if it isn't when the wait ends.";
|
|
2766
2809
|
// fall through to the send below.
|
|
2767
2810
|
}
|
|
2768
2811
|
// idle (or running/unknown — now advisory-and-proceed) → proceed to send.
|
|
@@ -3173,8 +3216,10 @@ export class SessionTransport {
|
|
|
3173
3216
|
async classifySendReadiness(input, privateInput = false) {
|
|
3174
3217
|
const now = this.now();
|
|
3175
3218
|
let binding = input.binding;
|
|
3219
|
+
let communityHarness = null;
|
|
3176
3220
|
try {
|
|
3177
3221
|
const stored = this.getSessionMeta(input.sessionName);
|
|
3222
|
+
communityHarness = stored.communityHarness;
|
|
3178
3223
|
binding = {
|
|
3179
3224
|
sessionName: input.sessionName,
|
|
3180
3225
|
nodeId: binding?.nodeId ?? stored.nodeId,
|
|
@@ -3188,6 +3233,7 @@ export class SessionTransport {
|
|
|
3188
3233
|
const hookActivity = this.agentActivityStore?.getLatestForNode({
|
|
3189
3234
|
sessionName: input.sessionName,
|
|
3190
3235
|
now,
|
|
3236
|
+
order: input.runtime === "claude-code" ? "source" : "arrival",
|
|
3191
3237
|
});
|
|
3192
3238
|
const permissionPending = latestHookPermissionPending(hookActivity, input.runtime);
|
|
3193
3239
|
if (hookActivity && permissionPending && this.hookFreshForSend(hookActivity, now)) {
|
|
@@ -3216,6 +3262,7 @@ export class SessionTransport {
|
|
|
3216
3262
|
if (this.hookFreshForSend(hookActivity, now)) {
|
|
3217
3263
|
if (hookActivity.state === "running" && input.runtime === "claude-code") {
|
|
3218
3264
|
const paneVeto = await probeSessionActivity({
|
|
3265
|
+
communityHarness, communityHarnessSendProbe: true,
|
|
3219
3266
|
composerSnapshot,
|
|
3220
3267
|
currentClaudeDialogueOnly: true,
|
|
3221
3268
|
sessionName: input.sessionName,
|
|
@@ -3233,7 +3280,8 @@ export class SessionTransport {
|
|
|
3233
3280
|
}
|
|
3234
3281
|
// OPR.0.4.3.28 Part A — a stale-but-latest `idle` hook (older than the 15s
|
|
3235
3282
|
// send window but still within the 5-min store window, so stale!==true) is
|
|
3236
|
-
// SENDABLE. getLatestForNode returns the
|
|
3283
|
+
// SENDABLE. getLatestForNode returns the newest event in the runtime's
|
|
3284
|
+
// order (source time for Claude, arrival sequence for other runtimes), so a
|
|
3237
3285
|
// latest hook still `idle` proves no newer activity exists (had the seat
|
|
3238
3286
|
// started work, the latest hook would be UserPromptSubmit/PermissionRequest).
|
|
3239
3287
|
// A stale NON-idle hook (running/needs_input >15s) still falls through to
|
|
@@ -3246,6 +3294,7 @@ export class SessionTransport {
|
|
|
3246
3294
|
// vetoes (→ refuse); an unknown pane (the flaky-Codex case this trust
|
|
3247
3295
|
// exists for) or a clean idle pane does NOT veto → trust the stale hook.
|
|
3248
3296
|
const paneVeto = await probeSessionActivity({
|
|
3297
|
+
communityHarness, communityHarnessSendProbe: true,
|
|
3249
3298
|
composerSnapshot,
|
|
3250
3299
|
sessionName: input.sessionName,
|
|
3251
3300
|
runtime: input.runtime,
|
|
@@ -3262,6 +3311,7 @@ export class SessionTransport {
|
|
|
3262
3311
|
}
|
|
3263
3312
|
}
|
|
3264
3313
|
const probe = await probeSessionActivity({
|
|
3314
|
+
communityHarness, communityHarnessSendProbe: true,
|
|
3265
3315
|
composerSnapshot,
|
|
3266
3316
|
sessionName: input.sessionName,
|
|
3267
3317
|
runtime: input.runtime,
|
|
@@ -3318,7 +3368,7 @@ export class SessionTransport {
|
|
|
3318
3368
|
// producer chain is broken + the next step, instead of an opaque
|
|
3319
3369
|
// `no_activity_signal`. NEVER surfaces a token value — env checks are
|
|
3320
3370
|
// presence-only, and the store carries no token.
|
|
3321
|
-
async diagnoseProducerLink(sessionName) {
|
|
3371
|
+
async diagnoseProducerLink(sessionName, runtime) {
|
|
3322
3372
|
// Link 1 — the relay's prerequisites: the daemon URL, the activity token, and the runtime
|
|
3323
3373
|
// (without OPENRIG_RUNTIME the relay builds no payload and posts nothing). Only the tmux SESSION
|
|
3324
3374
|
// environment is inspected; the agent process's own environment is not read, and an env-prefixed
|
|
@@ -3400,7 +3450,11 @@ export class SessionTransport {
|
|
|
3400
3450
|
if (!store) {
|
|
3401
3451
|
return withEnv(`daemon-ingest link DOWN — the activity store is not configured on this daemon (ingest returns 503)`);
|
|
3402
3452
|
}
|
|
3403
|
-
const latest = store.getLatestForNode({
|
|
3453
|
+
const latest = store.getLatestForNode({
|
|
3454
|
+
sessionName,
|
|
3455
|
+
now: this.now(),
|
|
3456
|
+
order: runtime === "claude-code" ? "source" : "arrival",
|
|
3457
|
+
});
|
|
3404
3458
|
if (!latest || latest.evidenceSource !== "runtime_hook") {
|
|
3405
3459
|
return withEnv(`no activity hook is stored for this seat — which link failed is not identified: the relay may never have posted (it needs OPENRIG_RUNTIME, the relay URL and the token in the agent process), Codex hook-trust may be uncleared, or ingest may have rejected posts (401 token mismatch, 503 unconfigured)`);
|
|
3406
3460
|
}
|
|
@@ -3517,22 +3571,138 @@ export class SessionTransport {
|
|
|
3517
3571
|
};
|
|
3518
3572
|
}
|
|
3519
3573
|
const lines = opts?.lines ?? 20;
|
|
3520
|
-
const
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3574
|
+
const read = async () => {
|
|
3575
|
+
const content = await this.tmuxAdapter.capturePaneContent(sessionName, lines);
|
|
3576
|
+
if (content === null) {
|
|
3577
|
+
return {
|
|
3578
|
+
ok: false,
|
|
3579
|
+
sessionName,
|
|
3580
|
+
reason: "capture_failed",
|
|
3581
|
+
error: `Could not capture pane content for '${sessionName}'.`,
|
|
3582
|
+
};
|
|
3583
|
+
}
|
|
3584
|
+
await this.reconcileStartupReadiness(sessionName).catch(() => { });
|
|
3585
|
+
const runtime = sessionMeta.runtime;
|
|
3586
|
+
const inputBox = opts?.inputBox && (runtime === "claude-code" || runtime === "codex")
|
|
3587
|
+
? await this.captureInputBox(sessionName, runtime, opts.inputBoxBudget ?? { remainingMs: CAPTURE_INPUT_BOX_DEADLINE_MS })
|
|
3588
|
+
: undefined;
|
|
3589
|
+
const promptPane = opts?.promptPane ? await this.capturePromptPane(sessionName, content, runtime) : undefined;
|
|
3590
|
+
return { ok: true, sessionName, content, lines, ...(inputBox ? { inputBox } : {}), ...(promptPane ? { promptPane } : {}) };
|
|
3591
|
+
};
|
|
3592
|
+
if (!opts?.readable)
|
|
3593
|
+
return read();
|
|
3594
|
+
const { value, readable } = await this.readAtReadableSize(sessionName, opts.readable, opts.readableBudget ?? { remainingMs: CAPTURE_READABLE_BUDGET_MS }, read);
|
|
3595
|
+
return value.ok ? { ...value, readable } : value;
|
|
3596
|
+
}
|
|
3597
|
+
/**
|
|
3598
|
+
* Run `read` with the seat's window enlarged to at least `size`, then put the window back: its size, and its own
|
|
3599
|
+
* `window-size` exactly. resize-window sets that to manual, which would stop the window's clients (Herdr, attach)
|
|
3600
|
+
* sizing it. The window is named by its id, and the resize is recorded as a pin (window-pin.ts) in the window's
|
|
3601
|
+
* queue, so a web terminal that opens meanwhile keeps the window's own value and the window is put back only when the
|
|
3602
|
+
* last live holder lets go. Read as it is, with the reason: a window already that big; one whose own `window-size`
|
|
3603
|
+
* is manual for a live holder or a person (a pin whose holders are gone is taken over and given back); one whose
|
|
3604
|
+
* sizing can't be read or whose record couldn't be written (it couldn't be given back); one with several panes; and
|
|
3605
|
+
* any seat once `budget` (shared across a fan-out) is spent.
|
|
3606
|
+
*/
|
|
3607
|
+
async readAtReadableSize(sessionName, size, budget, read) {
|
|
3608
|
+
const started = this.now().getTime();
|
|
3609
|
+
const deadline = started + budget.remainingMs;
|
|
3610
|
+
const asItIs = async (reason) => ({ value: await read(), readable: { resized: false, reason } });
|
|
3611
|
+
const spent = `this capture's ${CAPTURE_READABLE_BUDGET_MS / 1000} s for readable reads ran out`;
|
|
3612
|
+
const late = () => deadline - this.now().getTime() < READABLE_MIN_REMAINING_MS;
|
|
3613
|
+
try {
|
|
3614
|
+
// Spent: no readable setup at all (no queue wait or sizing reads), so a long fan-out still returns in time.
|
|
3615
|
+
if (late())
|
|
3616
|
+
return await asItIs(spent);
|
|
3617
|
+
const window = (await this.tmuxAdapter.readWindow(sessionName, WINDOW_SIZE_PRIOR_OPTION).catch(() => null))?.id;
|
|
3618
|
+
if (!window)
|
|
3619
|
+
return await asItIs("the window's sizing couldn't be read, so it couldn't be given back");
|
|
3620
|
+
const pin = await withWindowPin(window, async () => {
|
|
3621
|
+
const sizing = await readPinSizing(this.tmuxAdapter, window);
|
|
3622
|
+
if (!sizing)
|
|
3623
|
+
return "the window's sizing couldn't be read, so it couldn't be given back";
|
|
3624
|
+
if (sizing.live === "manual" && (sizing.prior === "manual" || sizing.holders.length > 0)) {
|
|
3625
|
+
return "the window's size is pinned (its window-size is manual)";
|
|
3626
|
+
}
|
|
3627
|
+
// Still manual here: a pin whose holders are gone (a capture or a web terminal that ended without giving it back).
|
|
3628
|
+
// It's taken over, and given back after this read even when the pane is already big enough.
|
|
3629
|
+
const leftover = sizing.live === "manual";
|
|
3630
|
+
const panes = await this.tmuxAdapter.listPanes(window).catch(() => []);
|
|
3631
|
+
if (panes.length !== 1)
|
|
3632
|
+
return panes.length === 0 ? "the window's size couldn't be read" : "the window has several panes";
|
|
3633
|
+
const pane = panes[0];
|
|
3634
|
+
const bigEnough = pane.width >= size.width && pane.height >= size.height;
|
|
3635
|
+
if (bigEnough && !leftover)
|
|
3636
|
+
return `the pane is already ${pane.width}x${pane.height}`;
|
|
3637
|
+
if (!bigEnough && late())
|
|
3638
|
+
return spent;
|
|
3639
|
+
const holder = newPinHolder();
|
|
3640
|
+
if (!(await recordPin(this.tmuxAdapter, sizing, holder)))
|
|
3641
|
+
return "its restore record couldn't be written, so it wasn't resized";
|
|
3642
|
+
// The record can settle late: past the deadline, let go without resizing.
|
|
3643
|
+
if (!bigEnough && late())
|
|
3644
|
+
return { holder, pane, resized: null, spent: true };
|
|
3645
|
+
const resized = bigEnough ? null
|
|
3646
|
+
: await this.tmuxAdapter.resizeWindow(window, Math.max(size.width, pane.width), Math.max(size.height, pane.height));
|
|
3647
|
+
return { holder, pane, resized, spent: false };
|
|
3648
|
+
});
|
|
3649
|
+
if (typeof pin === "string")
|
|
3650
|
+
return await asItIs(pin);
|
|
3651
|
+
const { holder, pane, resized } = pin;
|
|
3652
|
+
if (pin.spent) {
|
|
3653
|
+
await releasePin(this.tmuxAdapter, window, holder);
|
|
3654
|
+
return await asItIs(spent);
|
|
3655
|
+
}
|
|
3656
|
+
let readable;
|
|
3657
|
+
let value;
|
|
3658
|
+
try {
|
|
3659
|
+
if (!resized) {
|
|
3660
|
+
readable = { resized: false, reason: `the pane is already ${pane.width}x${pane.height}` };
|
|
3661
|
+
value = await read();
|
|
3662
|
+
}
|
|
3663
|
+
else if (!resized.ok) {
|
|
3664
|
+
readable = { resized: false, reason: `the resize failed: ${resized.message}` };
|
|
3665
|
+
value = await read();
|
|
3666
|
+
}
|
|
3667
|
+
else {
|
|
3668
|
+
await this.settleRedraw(sessionName, deadline);
|
|
3669
|
+
value = await read();
|
|
3670
|
+
readable = { resized: true, width: Math.max(size.width, pane.width), height: Math.max(size.height, pane.height), release: "not-listed" };
|
|
3671
|
+
}
|
|
3672
|
+
}
|
|
3673
|
+
finally {
|
|
3674
|
+
// As the last holder: back to its size first (that pins it again), then its own sizing, so a window with
|
|
3675
|
+
// clients follows them again.
|
|
3676
|
+
let sizeBack = null;
|
|
3677
|
+
const release = await releasePin(this.tmuxAdapter, window, holder, resized ? async () => {
|
|
3678
|
+
sizeBack = await this.tmuxAdapter.resizeWindow(window, pane.width, pane.height);
|
|
3679
|
+
} : undefined);
|
|
3680
|
+
if (readable?.resized) {
|
|
3681
|
+
readable.release = release;
|
|
3682
|
+
const back = sizeBack;
|
|
3683
|
+
if (back && !back.ok)
|
|
3684
|
+
readable.sizeBack = `putting its size back failed: ${back.message}`;
|
|
3685
|
+
}
|
|
3686
|
+
else if (!resized && release === "given-back" && readable)
|
|
3687
|
+
readable.reason += "; a pin left on its window was given back";
|
|
3688
|
+
}
|
|
3689
|
+
return { value, readable: readable };
|
|
3690
|
+
}
|
|
3691
|
+
finally {
|
|
3692
|
+
budget.remainingMs = Math.max(0, budget.remainingMs - (this.now().getTime() - started));
|
|
3693
|
+
}
|
|
3694
|
+
}
|
|
3695
|
+
/** After a resize, give the seat's TUI time to redraw: two equal screens 150 ms apart, at most 12 looks, and never
|
|
3696
|
+
* past `deadline`. */
|
|
3697
|
+
async settleRedraw(sessionName, deadline) {
|
|
3698
|
+
let last = null;
|
|
3699
|
+
for (let look = 0; look < 12 && this.now().getTime() + 150 <= deadline; look++) {
|
|
3700
|
+
await this.sleep(150);
|
|
3701
|
+
const screen = await this.tmuxAdapter.capturePaneScreen(sessionName).catch(() => null);
|
|
3702
|
+
if (screen !== null && screen === last)
|
|
3703
|
+
return;
|
|
3704
|
+
last = screen;
|
|
3528
3705
|
}
|
|
3529
|
-
await this.reconcileStartupReadiness(sessionName).catch(() => { });
|
|
3530
|
-
const runtime = sessionMeta.runtime;
|
|
3531
|
-
const inputBox = opts?.inputBox && (runtime === "claude-code" || runtime === "codex")
|
|
3532
|
-
? await this.captureInputBox(sessionName, runtime, opts.inputBoxBudget ?? { remainingMs: CAPTURE_INPUT_BOX_DEADLINE_MS })
|
|
3533
|
-
: undefined;
|
|
3534
|
-
const promptPane = opts?.promptPane ? await this.capturePromptPane(sessionName, content, runtime) : undefined;
|
|
3535
|
-
return { ok: true, sessionName, content, lines, ...(inputBox ? { inputBox } : {}), ...(promptPane ? { promptPane } : {}) };
|
|
3536
3706
|
}
|
|
3537
3707
|
/** 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
3708
|
* The pane size is read only when the captured screen shows a prompt. */
|
|
@@ -3545,7 +3715,7 @@ export class SessionTransport {
|
|
|
3545
3715
|
if (!pane || (pane.width >= 80 && pane.height >= 24))
|
|
3546
3716
|
return undefined;
|
|
3547
3717
|
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;
|
|
3718
|
+
hint: `pane ${pane.width}x${pane.height} is smaller than 80x24, so the prompt may be cut off; read it at a readable size with rig capture ${sessionName} --readable` };
|
|
3549
3719
|
}
|
|
3550
3720
|
/** The input box, or unknown when its reads don't finish within the budget's remaining time (or none is left): the
|
|
3551
3721
|
* pane text is already in hand, so a slow read never holds the capture. The time spent comes off the budget. A read
|
|
@@ -3780,6 +3950,12 @@ const INPUT_CONTINUATION_COLUMN = 2; // Claude Code and Codex indent an input's
|
|
|
3780
3950
|
// How long a capture's input-box reads may take in all before the box reports unknown: one seat's three reads, or a
|
|
3781
3951
|
// whole fan-out's (the send path's INPUT_BOX_READ_DEADLINE_MS bounds one read each).
|
|
3782
3952
|
export const CAPTURE_INPUT_BOX_DEADLINE_MS = 1_000;
|
|
3953
|
+
/** The time a capture's readable reads (`--readable`, `--size`) may take: the resize, the redraw and the read, for one
|
|
3954
|
+
* seat or a whole fan-out. Seats left once it's spent are read as they are, so the request returns inside the CLI's
|
|
3955
|
+
* wait (capture.ts's READABLE_REQUEST_TIMEOUT_MS). Each window is given back whatever is left. */
|
|
3956
|
+
export const CAPTURE_READABLE_BUDGET_MS = 8_000;
|
|
3957
|
+
/** Below this, a seat isn't resized: two redraw looks and the read wouldn't fit. */
|
|
3958
|
+
const READABLE_MIN_REMAINING_MS = 500;
|
|
3783
3959
|
// Claude Code's input frame rule, as findClaudeComposer and the composer-boundary reader match it (a label may sit in it).
|
|
3784
3960
|
const CLAUDE_FRAME_RULE = /^─{3,}(?: .+ ─+)?$/;
|
|
3785
3961
|
/** The input box's rows on the screen: Claude Code's prompt row inside its frame (the opening rule directly above it,
|