@openrig/cli 0.7.14 → 0.7.16
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/.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 +28 -7
- package/daemon/assets/plugins/openrig/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/SKILL.md +8 -5
- package/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md +13 -4
- package/daemon/assets/plugins/openrig-core/skills/orienting-to-an-inherited-seat/CHANGELOG.md +10 -0
- package/daemon/assets/plugins/openrig-core/skills/orienting-to-an-inherited-seat/SKILL.md +12 -13
- package/daemon/assets/plugins/openrig-core/skills/seat-continuity-and-handover/SKILL.md +1 -1
- package/daemon/assets/skills/rigs/SKILL.md +105 -30
- 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 +127 -16
- package/daemon/context-packs/reference/getting-started.md +17 -15
- 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 +355 -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 +8 -5
- 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 +13 -4
- package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
- package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
- package/daemon/context-packs/skills/mission-slice-sop/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/CHANGELOG.md +10 -0
- package/daemon/context-packs/skills/orienting-to-an-inherited-seat/SKILL.md +12 -13
- package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +3 -3
- 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 +6 -3
- package/daemon/dist/adapters/claude-code-adapter.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 +88 -31
- package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts +2 -0
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.js +93 -36
- package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/pi-resume.d.ts +3 -0
- package/daemon/dist/adapters/pi-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-resume.js +99 -51
- package/daemon/dist/adapters/pi-resume.js.map +1 -1
- package/daemon/dist/adapters/pi-runner.d.ts +2 -1
- package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner.js +15 -9
- package/daemon/dist/adapters/pi-runner.js.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts +4 -0
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.js +133 -75
- package/daemon/dist/adapters/pi-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +10 -0
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +42 -7
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/build-info.js +3 -3
- package/daemon/dist/daemon-shutdown.d.ts +3 -0
- package/daemon/dist/daemon-shutdown.d.ts.map +1 -1
- package/daemon/dist/daemon-shutdown.js +6 -0
- package/daemon/dist/daemon-shutdown.js.map +1 -1
- package/daemon/dist/db/all-migrations.d.ts.map +1 -1
- package/daemon/dist/db/all-migrations.js +6 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrations/165_run_bound_activity_grants.d.ts +4 -0
- package/daemon/dist/db/migrations/165_run_bound_activity_grants.d.ts.map +1 -0
- package/daemon/dist/db/migrations/165_run_bound_activity_grants.js +14 -0
- package/daemon/dist/db/migrations/165_run_bound_activity_grants.js.map +1 -0
- 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/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/domain/activity-grants.d.ts +36 -3
- package/daemon/dist/domain/activity-grants.d.ts.map +1 -1
- package/daemon/dist/domain/activity-grants.js +188 -7
- package/daemon/dist/domain/activity-grants.js.map +1 -1
- package/daemon/dist/domain/applied-launch-observation-store.d.ts +2 -0
- package/daemon/dist/domain/applied-launch-observation-store.d.ts.map +1 -1
- package/daemon/dist/domain/applied-launch-observation-store.js +27 -16
- package/daemon/dist/domain/applied-launch-observation-store.js.map +1 -1
- 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 +85 -38
- 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 +25 -2
- package/daemon/dist/domain/codex-member-permissions.d.ts.map +1 -1
- package/daemon/dist/domain/codex-member-permissions.js +72 -18
- 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-owned-plugin-trust.d.ts +6 -1
- package/daemon/dist/domain/codex-owned-plugin-trust.d.ts.map +1 -1
- package/daemon/dist/domain/codex-owned-plugin-trust.js +30 -9
- package/daemon/dist/domain/codex-owned-plugin-trust.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/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/execution-candidate-reader.d.ts +15 -5
- package/daemon/dist/domain/execution-candidate-reader.d.ts.map +1 -1
- package/daemon/dist/domain/execution-candidate-reader.js +36 -25
- package/daemon/dist/domain/execution-candidate-reader.js.map +1 -1
- package/daemon/dist/domain/execution-view.d.ts.map +1 -1
- package/daemon/dist/domain/execution-view.js +34 -11
- package/daemon/dist/domain/execution-view.js.map +1 -1
- package/daemon/dist/domain/gateway/destination-resolver.js +3 -3
- package/daemon/dist/domain/gateway/destination-resolver.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/config.d.ts +2 -0
- package/daemon/dist/domain/gateway/slack/config.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/config.js +4 -0
- package/daemon/dist/domain/gateway/slack/config.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.d.ts +11 -0
- package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.js +3 -0
- package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-api.d.ts +2 -0
- package/daemon/dist/domain/gateway/slack/slack-api.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-api.js +4 -0
- package/daemon/dist/domain/gateway/slack/slack-api.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +2 -0
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.js +2 -1
- 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 +36 -2
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/thread-routing.d.ts +5 -0
- package/daemon/dist/domain/gateway/slack/thread-routing.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/thread-routing.js +1 -1
- package/daemon/dist/domain/gateway/slack/thread-routing.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 +58 -11
- 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/native-permission-store.d.ts +40 -0
- package/daemon/dist/domain/native-permission-store.d.ts.map +1 -1
- package/daemon/dist/domain/native-permission-store.js +115 -29
- 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 +33 -1
- package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +143 -4
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +214 -30
- package/daemon/dist/domain/node-inventory.js.map +1 -1
- package/daemon/dist/domain/node-launcher.d.ts +3 -0
- package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/node-launcher.js +6 -0
- package/daemon/dist/domain/node-launcher.js.map +1 -1
- package/daemon/dist/domain/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 +2 -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/permission-policy/persisted-restore-posture.d.ts +62 -0
- package/daemon/dist/domain/permission-policy/persisted-restore-posture.d.ts.map +1 -0
- package/daemon/dist/domain/permission-policy/persisted-restore-posture.js +117 -0
- package/daemon/dist/domain/permission-policy/persisted-restore-posture.js.map +1 -0
- package/daemon/dist/domain/policies/context-usage-threshold.d.ts.map +1 -1
- package/daemon/dist/domain/policies/context-usage-threshold.js +5 -1
- package/daemon/dist/domain/policies/context-usage-threshold.js.map +1 -1
- package/daemon/dist/domain/policies/types.d.ts +2 -0
- package/daemon/dist/domain/policies/types.d.ts.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-repository.d.ts +29 -16
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +61 -55
- package/daemon/dist/domain/queue-repository.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 +12 -0
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +27 -7
- 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/rehydrate-eligibility.d.ts.map +1 -1
- package/daemon/dist/domain/rehydrate-eligibility.js +3 -2
- package/daemon/dist/domain/rehydrate-eligibility.js.map +1 -1
- package/daemon/dist/domain/reply-to-choice.d.ts +10 -0
- package/daemon/dist/domain/reply-to-choice.d.ts.map +1 -1
- package/daemon/dist/domain/reply-to-choice.js +23 -0
- package/daemon/dist/domain/reply-to-choice.js.map +1 -1
- package/daemon/dist/domain/restore-check-service.d.ts +5 -0
- package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
- package/daemon/dist/domain/restore-check-service.js +31 -6
- package/daemon/dist/domain/restore-check-service.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +88 -98
- 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 +6 -0
- package/daemon/dist/domain/restore-preconditions.js.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.d.ts +21 -4
- package/daemon/dist/domain/resume-metadata-refresher.d.ts.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.js +65 -14
- 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-edge-ops.js +1 -1
- package/daemon/dist/domain/rig-edge-ops.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +8 -3
- package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-preflight.js +21 -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/runner-grant-launch.d.ts +16 -0
- package/daemon/dist/domain/runner-grant-launch.d.ts.map +1 -0
- package/daemon/dist/domain/runner-grant-launch.js +86 -0
- package/daemon/dist/domain/runner-grant-launch.js.map +1 -0
- package/daemon/dist/domain/runtime-adapter.d.ts +17 -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 +21 -3
- package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.js +91 -4
- 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 +450 -35
- package/daemon/dist/domain/seat-handover-service.js.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.d.ts +3 -0
- package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.js +34 -2
- package/daemon/dist/domain/seat-identity-reconciler.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 +53 -3
- 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 +62 -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-registry.d.ts +2 -0
- package/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.js +16 -0
- 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 +7 -3
- package/daemon/dist/domain/session-transport.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/skill-discovery.d.ts.map +1 -1
- package/daemon/dist/domain/skill-discovery.js +2 -1
- package/daemon/dist/domain/skill-discovery.js.map +1 -1
- package/daemon/dist/domain/slow-op-recorder.d.ts +3 -0
- package/daemon/dist/domain/slow-op-recorder.d.ts.map +1 -1
- package/daemon/dist/domain/slow-op-recorder.js +5 -0
- package/daemon/dist/domain/slow-op-recorder.js.map +1 -1
- package/daemon/dist/domain/snapshot-capture.d.ts.map +1 -1
- package/daemon/dist/domain/snapshot-capture.js +5 -0
- package/daemon/dist/domain/snapshot-capture.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +9 -0
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.d.ts +19 -1
- package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.js +81 -39
- package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
- package/daemon/dist/domain/sync-site-wrap.d.ts +13 -1
- package/daemon/dist/domain/sync-site-wrap.d.ts.map +1 -1
- package/daemon/dist/domain/sync-site-wrap.js +38 -0
- package/daemon/dist/domain/sync-site-wrap.js.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.d.ts +3 -1
- package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.js +17 -12
- package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +37 -1
- 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/watchdog-policy-engine.d.ts +5 -0
- package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.js +4 -0
- 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 +11 -0
- package/daemon/dist/domain/workflow-instance-store.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-instance-store.js +35 -0
- package/daemon/dist/domain/workflow-instance-store.js.map +1 -1
- package/daemon/dist/domain/workflow-projector.d.ts +7 -0
- package/daemon/dist/domain/workflow-projector.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-projector.js +202 -91
- package/daemon/dist/domain/workflow-projector.js.map +1 -1
- package/daemon/dist/domain/workflow-runtime.d.ts +8 -2
- package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-runtime.js +116 -26
- 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/activity.d.ts.map +1 -1
- package/daemon/dist/routes/activity.js +34 -2
- package/daemon/dist/routes/activity.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 +44 -27
- package/daemon/dist/routes/queue.js.map +1 -1
- 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 +63 -16
- 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 +116 -18
- 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/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 +22 -4
- package/daemon/dist/routes/workflow.js.map +1 -1
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +132 -46
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/docs/reference/agent-startup-guide.md +88 -1
- package/daemon/docs/reference/bundle-formats.md +6 -4
- package/daemon/docs/reference/daemon-http-clients.md +3 -1
- package/daemon/docs/reference/developing.md +1 -1
- package/daemon/docs/reference/gateway-participants.md +5 -3
- package/daemon/docs/reference/getting-started.md +17 -15
- package/daemon/docs/reference/harness-runner-contract.md +27 -1
- package/daemon/docs/reference/health-diagnosis.md +5 -3
- package/daemon/docs/reference/keeping-a-watch.md +14 -9
- 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/slack-app-setup.md +4 -0
- package/daemon/docs/reference/whats-new.md +355 -5
- package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +13 -4
- 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/down.d.ts.map +1 -1
- package/dist/commands/down.js +2 -1
- package/dist/commands/down.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/ps.d.ts +1 -0
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +13 -6
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +6 -2
- package/dist/commands/queue.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 +198 -11
- 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/slack.d.ts.map +1 -1
- package/dist/commands/slack.js +2 -0
- package/dist/commands/slack.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 +25 -1
- package/dist/commands/workflow.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +10 -5
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/lib/work-install.d.ts.map +1 -1
- package/dist/lib/work-install.js +7 -3
- package/dist/lib/work-install.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 +269 -76
- package/dist/mcp-server.js.map +1 -1
- package/package.json +1 -1
- 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/connected-assistants.js +1 -1
- package/tui/dist/connected-assistants.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 +9 -0
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js +40 -0
- 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 +12 -0
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/main.js +7 -3
- 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 +8 -2
- 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 +16 -1
- package/tui/dist/types.d.ts.map +1 -1
- package/ui/dist/assets/index-BX8TUZ0E.css +32 -0
- package/ui/dist/assets/{index-BOYrLyfQ.js → index-BvUEh33d.js} +1 -1
- package/ui/dist/index.html +2 -2
- package/ui/dist/assets/index-DqSRu4OY.css +0 -32
|
@@ -13,9 +13,9 @@ import { SEAT_SKILLS_BOOTSTRAP_BLOCK_ID, ensureSeatSkillPlugin, followSeatSkills
|
|
|
13
13
|
import { NativePermissionStore } from "./native-permission-store.js";
|
|
14
14
|
import { readSeatClaudeMcp } from "./claude-mcp.js";
|
|
15
15
|
import { isLaunchWrapperRuntime, readSeatLaunchWrapper } from "./launch-wrapper.js";
|
|
16
|
-
import {
|
|
16
|
+
import { resolvePersistedRestorePosture } from "./permission-policy/persisted-restore-posture.js";
|
|
17
17
|
import { claudeResumeRotation } from "./session-registry.js";
|
|
18
|
-
import { NOTHING_STOPPED_LAUNCH_CODES } from "./node-launcher.js";
|
|
18
|
+
import { NO_TERMINAL_LAUNCH_CODES, NOTHING_STOPPED_LAUNCH_CODES } from "./node-launcher.js";
|
|
19
19
|
import { seatRuntimeHome } from "./seat-runtime-home.js";
|
|
20
20
|
import { readFreshOccupantRelations } from "./fresh-occupant-relation.js";
|
|
21
21
|
import { assessNativeResumeProbe } from "./native-resume-probe.js";
|
|
@@ -279,6 +279,9 @@ export class RestoreOrchestrator {
|
|
|
279
279
|
servicesRecord: this.rigRepo.getServicesRecord(rigId),
|
|
280
280
|
freshLogicalIds: opts?.freshLogicalIds,
|
|
281
281
|
currentRuntimes: Object.fromEntries((this.rigRepo.getRig(rigId)?.nodes ?? []).map((current) => [current.logicalId, current.runtime])),
|
|
282
|
+
currentCodexProfiles: Object.fromEntries((this.rigRepo.getRig(rigId)?.nodes ?? [])
|
|
283
|
+
.filter((current) => current.codexConfigProfile !== undefined)
|
|
284
|
+
.map((current) => [current.logicalId, current.codexConfigProfile])),
|
|
282
285
|
});
|
|
283
286
|
const topology = resolveSnapshotRestoreTopology(snapshot.data);
|
|
284
287
|
// A required startup file that is missing holds only its own seat. That seat isn't launched, because it would start
|
|
@@ -495,10 +498,14 @@ export class RestoreOrchestrator {
|
|
|
495
498
|
const nonTargetNodes = opts.nonTargetMode === "detach_and_hold"
|
|
496
499
|
? allNodes.filter((node) => !targetNodes.some((target) => target.id === node.id))
|
|
497
500
|
: [];
|
|
501
|
+
// Targets are written to, so they take lifecycle leases. A non-target is only recorded (a dead session marked
|
|
502
|
+
// detached, node.held), so it takes a custody lease in the same sorted pass: a paused or draft-aware seat isn't
|
|
503
|
+
// refused, and its pane, draft, mode and binding stay as they are.
|
|
498
504
|
const guard = this.tmuxAdapter.deliveryGuard;
|
|
499
|
-
const
|
|
500
|
-
|
|
501
|
-
|
|
505
|
+
const targetIds = targetNodes.map(node => node.id);
|
|
506
|
+
const recordedIds = nonTargetNodes.map(node => node.id);
|
|
507
|
+
if (guard && (targetIds.some(id => !guard.ownsLifecycle(id)) || recordedIds.some(id => !guard.ownsCustody(id)))) {
|
|
508
|
+
return guard.lifecycle(targetIds, () => this.launchNodeTargets(rigId, logicalIds, opts), recordedIds);
|
|
502
509
|
}
|
|
503
510
|
// Per-target tmux-liveness classification (runtime truth, fail-closed)
|
|
504
511
|
const launched = [];
|
|
@@ -891,12 +898,14 @@ export class RestoreOrchestrator {
|
|
|
891
898
|
const nodeId = node.id;
|
|
892
899
|
const selectedHistory = opts?.selectedHistory;
|
|
893
900
|
if (selectedHistory && (!liveNode || selectedHistory.nodeId !== nodeId || !selectedHistory.beforeEffect())) {
|
|
894
|
-
return { nodeId, logicalId: node.logicalId, status: "failed", error: "The selected seat or history changed before launch." };
|
|
901
|
+
return { nodeId, logicalId: node.logicalId, status: "failed", error: "The selected seat or history changed before launch.", notStarted: true };
|
|
895
902
|
}
|
|
903
|
+
// A selected restore that returns before its launch says so, as a known fact for the startup that selected it.
|
|
904
|
+
const notStarted = selectedHistory ? { notStarted: true } : {};
|
|
896
905
|
// A seat joined with `rig attach` as an external CLI keeps its attachment: launching here would replace it.
|
|
897
906
|
const external = this.sessionRegistry.getBindingForNode(nodeId);
|
|
898
907
|
if (external && seatProcessOwner(resolveSeatKind(external.attachmentType)) === "external") {
|
|
899
|
-
return { nodeId, logicalId: node.logicalId, status: "left_attached", error: leftAttachedReason(external.externalSessionName ?? node.logicalId) };
|
|
908
|
+
return { nodeId, logicalId: node.logicalId, status: "left_attached", error: leftAttachedReason(external.externalSessionName ?? node.logicalId), ...notStarted };
|
|
900
909
|
}
|
|
901
910
|
// OPR.0.5.7.1 (bought ordering blocker, baton 0efd154d): D1 present-map
|
|
902
911
|
// ambiguity must be DETECTED before any continuity_state short-circuit —
|
|
@@ -906,7 +915,7 @@ export class RestoreOrchestrator {
|
|
|
906
915
|
// fall through to absent-history classification and the continuity check.
|
|
907
916
|
const selectedRows = selectedHistory ? data.sessions.filter(row => row.nodeId === nodeId && row.id === selectedHistory.historySessionId) : [];
|
|
908
917
|
if (selectedHistory && selectedRows.length !== 1) {
|
|
909
|
-
return { nodeId, logicalId: node.logicalId, status: "failed", error: "The selected history is no longer in this snapshot." };
|
|
918
|
+
return { nodeId, logicalId: node.logicalId, status: "failed", error: "The selected history is no longer in this snapshot.", notStarted: true };
|
|
910
919
|
}
|
|
911
920
|
const occupantResolution = selectedHistory
|
|
912
921
|
? { kind: "resolved", session: selectedRows[0] }
|
|
@@ -941,7 +950,7 @@ export class RestoreOrchestrator {
|
|
|
941
950
|
}
|
|
942
951
|
const runtimeError = restoreRuntimeCompatibilityError(liveNode ? liveNode.runtime : node.runtime, data.nodeStartupContext?.[nodeId]?.runtime);
|
|
943
952
|
if (runtimeError) {
|
|
944
|
-
return { nodeId, logicalId: node.logicalId, status: "awaiting-decision", error: runtimeError };
|
|
953
|
+
return { nodeId, logicalId: node.logicalId, status: "awaiting-decision", error: runtimeError, ...notStarted };
|
|
945
954
|
}
|
|
946
955
|
// Classify absent-seat history before the continuity short-circuit: a
|
|
947
956
|
// restoring seat must not report fresh while its forecast awaits a decision.
|
|
@@ -957,7 +966,7 @@ export class RestoreOrchestrator {
|
|
|
957
966
|
if (continuityRow) {
|
|
958
967
|
if (continuityRow.status === "restoring") {
|
|
959
968
|
if (selectedHistory)
|
|
960
|
-
return { nodeId, logicalId: node.logicalId, status: "failed", error: "Continuity recovery already owns this seat." };
|
|
969
|
+
return { nodeId, logicalId: node.logicalId, status: "failed", error: "Continuity recovery already owns this seat.", notStarted: true };
|
|
961
970
|
if (opts?.automaticReplacements?.some(target => target.nodeId === nodeId)) {
|
|
962
971
|
return { nodeId, logicalId: node.logicalId, status: "awaiting-decision", error: "Continuity recovery owns this seat; its startup occupant was left unchanged." };
|
|
963
972
|
}
|
|
@@ -1032,7 +1041,7 @@ export class RestoreOrchestrator {
|
|
|
1032
1041
|
// Clear stale state so NodeLauncher doesn't see already_bound. A kept pane keeps its binding through the takeover: the
|
|
1033
1042
|
// delivery guard resolves the pane through it.
|
|
1034
1043
|
if (selectedHistory && !selectedHistory.beforeEffect()) {
|
|
1035
|
-
return { nodeId, logicalId: node.logicalId, status: "failed", error: "The selected seat or history changed before launch." };
|
|
1044
|
+
return { nodeId, logicalId: node.logicalId, status: "failed", error: "The selected seat or history changed before launch.", notStarted: true };
|
|
1036
1045
|
}
|
|
1037
1046
|
this.clearStaleState(nodeId, rigId, { keepBinding: keptPane !== null });
|
|
1038
1047
|
this.tmuxAdapter.deliveryGuard?.rebindLifecycle(nodeId);
|
|
@@ -1183,14 +1192,19 @@ export class RestoreOrchestrator {
|
|
|
1183
1192
|
});
|
|
1184
1193
|
if (!launchResult.ok) {
|
|
1185
1194
|
// Launch failed — restore prior state (compensating action)
|
|
1186
|
-
|
|
1195
|
+
const compensate = !selectedHistory || (launchResult.code !== "selection_changed_after_creation" && selectedHistory.beforeRegistration());
|
|
1196
|
+
if (compensate)
|
|
1187
1197
|
this.restoreNodeState(nodeId, priorState);
|
|
1198
|
+
// Known compensation needs a failure that left no terminal: one before its creation, or tmux reporting none was
|
|
1199
|
+
// created. An unconfirmed creation, a failed write or a later failure isn't known to have left nothing.
|
|
1200
|
+
const compensated = compensate && NO_TERMINAL_LAUNCH_CODES.has(launchResult.code);
|
|
1188
1201
|
return {
|
|
1189
1202
|
nodeId,
|
|
1190
1203
|
logicalId: node.logicalId,
|
|
1191
1204
|
status: selectedHistory && launchResult.code === "selection_changed_after_creation" ? "attention_required" : "failed",
|
|
1192
1205
|
error: launchResult.message,
|
|
1193
1206
|
...(keptPane && NOTHING_STOPPED_LAUNCH_CODES.has(launchResult.code) ? { nothingStopped: true } : {}),
|
|
1207
|
+
...(selectedHistory && compensated ? { compensated: true } : {}),
|
|
1194
1208
|
};
|
|
1195
1209
|
}
|
|
1196
1210
|
// Launch succeeded — do NOT compensate on post-launch failures
|
|
@@ -1199,11 +1213,14 @@ export class RestoreOrchestrator {
|
|
|
1199
1213
|
if (launchResult.warnings?.length) {
|
|
1200
1214
|
warnings?.push(...launchResult.warnings);
|
|
1201
1215
|
}
|
|
1202
|
-
|
|
1216
|
+
// A selected launch's own blank rolled back after the shell started (postLaunchRestore has many return points).
|
|
1217
|
+
const compensation = { ran: false };
|
|
1218
|
+
const restored = await this.postLaunchRestore(entry, rigId, data, launchResult.sessionName, launchResult, { ...opts, ...(claudeExecutable ? { claudeExecutable } : {}), ...(claudeLaunch ? { claudeLaunch } : {}), compensation }, warnings, priorState, seatRehydration, resumeSession, activityHookGaps, restoredSkillCatalog);
|
|
1203
1219
|
const checked = { ...this.checkRestoredGuidance(restored, entry.node, rigId, data, warnings),
|
|
1204
1220
|
...(activityHookGaps.length > 0 ? { restoreGaps: activityHookGaps } : {}),
|
|
1205
1221
|
...(keptPane ? { launchStarted: true } : {}) };
|
|
1206
|
-
return selectedHistory ? { ...checked, sourceSessionId: selectedHistory.historySessionId, resultSessionId: launchResult.session.id
|
|
1222
|
+
return selectedHistory ? { ...checked, sourceSessionId: selectedHistory.historySessionId, resultSessionId: launchResult.session.id,
|
|
1223
|
+
...(compensation.ran ? { compensated: true } : {}) } : checked;
|
|
1207
1224
|
}
|
|
1208
1225
|
async claudeContinuationExecutable(pane, keepLaunch = false, session) {
|
|
1209
1226
|
const native = await verifyClaudePaneRuntime({ target: pane, tmux: this.tmuxAdapter,
|
|
@@ -1428,15 +1445,17 @@ export class RestoreOrchestrator {
|
|
|
1428
1445
|
* unknown-but-possibly-valid continuity. */
|
|
1429
1446
|
async rollbackToZeroSession(nodeId, sessionName, launchedSessionId, priorState, assertCurrent, keepPane = false) {
|
|
1430
1447
|
if (assertCurrent && !assertCurrent())
|
|
1431
|
-
return false;
|
|
1448
|
+
return { rolledBack: false, terminalStopped: false };
|
|
1449
|
+
// Whether tmux confirmed the stop: best effort here, and a fact for a caller that needs a known compensation.
|
|
1450
|
+
let terminalStopped = false;
|
|
1432
1451
|
if (!keepPane) {
|
|
1433
1452
|
try {
|
|
1434
|
-
await this.tmuxAdapter.killSession(sessionName);
|
|
1453
|
+
terminalStopped = (await this.tmuxAdapter.killSession(sessionName)).ok === true;
|
|
1435
1454
|
}
|
|
1436
1455
|
catch { /* best-effort — the row + projection rollback below is the source of truth */ }
|
|
1437
1456
|
}
|
|
1438
1457
|
if (assertCurrent && !assertCurrent())
|
|
1439
|
-
return false;
|
|
1458
|
+
return { rolledBack: false, terminalStopped };
|
|
1440
1459
|
if (launchedSessionId) {
|
|
1441
1460
|
try {
|
|
1442
1461
|
this.sessionRegistry.updateStatus(launchedSessionId, "superseded");
|
|
@@ -1447,7 +1466,7 @@ export class RestoreOrchestrator {
|
|
|
1447
1466
|
// Pane takeover already ended the predecessor; keep its retired status.
|
|
1448
1467
|
this.restoreNodeState(nodeId, keepPane ? { ...priorState, sessions: [] } : priorState);
|
|
1449
1468
|
}
|
|
1450
|
-
return true;
|
|
1469
|
+
return { rolledBack: true, terminalStopped };
|
|
1451
1470
|
}
|
|
1452
1471
|
/** Retire only the provisional session created by this restore attempt. The prior
|
|
1453
1472
|
* binding must stay cleared while a replacement launch is handed off. */
|
|
@@ -1534,7 +1553,13 @@ export class RestoreOrchestrator {
|
|
|
1534
1553
|
// row ordering (cite site 2 of 2; "latest = max id" was the incident's
|
|
1535
1554
|
// defect: a superseded row with a newer ULID defeated the real occupant).
|
|
1536
1555
|
const selected = opts?.selectedHistory;
|
|
1537
|
-
const rollbackOwnBlank = async () =>
|
|
1556
|
+
const rollbackOwnBlank = async () => {
|
|
1557
|
+
const { rolledBack, terminalStopped } = await this.rollbackToZeroSession(node.id, sessionName, launchResult?.session.id, priorState, selected ? () => selected.beforeNative(launchResult?.session.id, launchResult?.binding.id) : undefined, opts?.keepPane);
|
|
1558
|
+
// Known compensation: tmux confirmed the terminal stopped, and the earlier state was put back.
|
|
1559
|
+
if (rolledBack && terminalStopped && priorState && !opts?.keepPane && opts?.compensation)
|
|
1560
|
+
opts.compensation.ran = true;
|
|
1561
|
+
return rolledBack;
|
|
1562
|
+
};
|
|
1538
1563
|
const changedDuringRollback = () => ({ nodeId: node.id, logicalId: node.logicalId,
|
|
1539
1564
|
status: "attention_required", error: "The selected terminal or source changed during cleanup. Its current owner was preserved; inspect the partial launch before retrying." });
|
|
1540
1565
|
const selectedRows = selected ? data.sessions.filter(row => row.nodeId === node.id && row.id === selected.historySessionId) : [];
|
|
@@ -1602,7 +1627,8 @@ export class RestoreOrchestrator {
|
|
|
1602
1627
|
// runtime and write Claude hooks into another agent's working folder
|
|
1603
1628
|
// (with a saved context, the compatibility gate already stops that
|
|
1604
1629
|
// mismatch), and a pod-aware agent must get no write from this recovery
|
|
1605
|
-
// at all
|
|
1630
|
+
// at all. With no saved context and a resume token, restore tries its resume
|
|
1631
|
+
// on an empty plan (replayCtx below), still without this recovery.
|
|
1606
1632
|
const activityAdapter = opts?.adapters?.["claude-code"];
|
|
1607
1633
|
const recoveryRuntime = startupCtx?.runtime
|
|
1608
1634
|
?? (!isPodAware && liveRuntime === node.runtime ? node.runtime : null);
|
|
@@ -1847,6 +1873,20 @@ export class RestoreOrchestrator {
|
|
|
1847
1873
|
const replayContained = resumeRequested && !!resumeToken;
|
|
1848
1874
|
const startupRuntime = startupCtx?.runtime ?? node.runtime ?? null;
|
|
1849
1875
|
const startupAdapter = seatAdapter(opts?.adapters, startupRuntime, session?.communityHarness);
|
|
1876
|
+
// A seat that only ever resumed or was attached (attach, adopt, reconcile-session, a set resume token) has a resume
|
|
1877
|
+
// token but no saved startup context. A resume replays none anyway (replayContained), so restore tries the resume
|
|
1878
|
+
// with an empty plan and names the gap, rather than stopping on data the resume doesn't use. Guidance, activity hooks
|
|
1879
|
+
// and the guidance record read the saved context only, so no guidance is put back and no startup context is written
|
|
1880
|
+
// for this seat; the adapter's ordinary bootstrap and the seat's existing skill restoration still run, as on any resume.
|
|
1881
|
+
const resumeWithoutContext = isPodAware && !startupCtx && replayContained && startupRuntime !== null && startupRuntime !== "terminal";
|
|
1882
|
+
// A fresh seat launch reads the saved startup context and refuses without one, so a rollback names none for this seat.
|
|
1883
|
+
const noContextFresh = "This seat has no saved startup context, and no command records one for it yet, so no fresh start is offered here.";
|
|
1884
|
+
const replayCtx = startupCtx
|
|
1885
|
+
?? (resumeWithoutContext ? { runtime: startupRuntime, projectionEntries: [], resolvedStartupFiles: [], startupActions: [] } : null);
|
|
1886
|
+
if (resumeWithoutContext && startupAdapter && launchResult) {
|
|
1887
|
+
warnings?.push(`Restore: ${node.logicalId}: no saved startup context, so restore tries its saved conversation without replaying a saved startup plan.`);
|
|
1888
|
+
activityHookGaps?.push("startup_context: no saved startup context; restore tried the saved conversation without replaying a saved startup plan.");
|
|
1889
|
+
}
|
|
1850
1890
|
// New compute has no retained context filesystem. Restore the saved file selection, never conversation actions.
|
|
1851
1891
|
const restoreEnvironmentContext = replayContained && !!startupAdapter?.environment && !!data.environmentBindingsByNode?.[node.id];
|
|
1852
1892
|
// A new pod-aware agent needs a startup context to run StartupOrchestrator.
|
|
@@ -1857,12 +1897,13 @@ export class RestoreOrchestrator {
|
|
|
1857
1897
|
&& baseStatus !== "resumed"
|
|
1858
1898
|
&& startupRuntime !== null
|
|
1859
1899
|
&& startupRuntime !== "terminal"
|
|
1860
|
-
&& (!
|
|
1900
|
+
&& (!replayCtx || !startupAdapter)) {
|
|
1861
1901
|
// A deliberate fresh launch with no captured startup context is the
|
|
1862
1902
|
// never-occupied-seat case from #49. The restore launcher has already
|
|
1863
1903
|
// created a shell, so remove that provisional session before handing the
|
|
1864
|
-
// seat to the normal recipe-backed launch path.
|
|
1865
|
-
//
|
|
1904
|
+
// seat to the normal recipe-backed launch path. A resume with a token
|
|
1905
|
+
// goes on with an empty plan (replayCtx above); a resume without one stays
|
|
1906
|
+
// on the fail-closed path below: no durable context means no safe resume.
|
|
1866
1907
|
if (!startupCtx && !resumeRequested && this.freshLaunch) {
|
|
1867
1908
|
// Keep the usable provisional shell when the callback exists but its
|
|
1868
1909
|
// recipe/member inputs are unavailable. A callback being present alone
|
|
@@ -1903,22 +1944,22 @@ export class RestoreOrchestrator {
|
|
|
1903
1944
|
};
|
|
1904
1945
|
}
|
|
1905
1946
|
}
|
|
1906
|
-
const cause =
|
|
1947
|
+
const cause = replayCtx ? `no ${startupRuntime} runtime adapter` : "no startup context";
|
|
1907
1948
|
const error = `Harness not started: ${cause} for ${node.logicalId}.`;
|
|
1908
1949
|
warnings?.push(`Restore: ${error}`);
|
|
1909
1950
|
return { nodeId: node.id, logicalId: node.logicalId, status: "attention_required", error };
|
|
1910
1951
|
}
|
|
1911
1952
|
// Attempt restore-safe startup replay if context available
|
|
1912
|
-
if (data.nodeStartupContext && opts?.adapters && launchResult) {
|
|
1913
|
-
if (
|
|
1914
|
-
const adapter = seatAdapter(opts.adapters,
|
|
1953
|
+
if ((data.nodeStartupContext || replayCtx) && opts?.adapters && launchResult) {
|
|
1954
|
+
if (replayCtx) {
|
|
1955
|
+
const adapter = seatAdapter(opts.adapters, replayCtx.runtime, session?.communityHarness);
|
|
1915
1956
|
if (adapter) {
|
|
1916
1957
|
// Prefilter: check which files/entries still exist
|
|
1917
1958
|
const existsFn = opts.fsOps?.exists ?? (() => true);
|
|
1918
|
-
const sourceEntries = replayContained && !restoreEnvironmentContext ? [] :
|
|
1959
|
+
const sourceEntries = replayContained && !restoreEnvironmentContext ? [] : replayCtx.projectionEntries.map((e) => reanchorShippedProjectionEntry(e, undefined, existsFn));
|
|
1919
1960
|
// #261: recognized built-in startup files follow the running install.
|
|
1920
|
-
const sourceFiles = replayContained && !restoreEnvironmentContext ? launchGuidance ?? [] : withContextEntryFloor(
|
|
1921
|
-
const sourceActions = replayContained ? [] :
|
|
1961
|
+
const sourceFiles = replayContained && !restoreEnvironmentContext ? launchGuidance ?? [] : withContextEntryFloor(replayCtx.resolvedStartupFiles.map((f) => reanchorBuiltinStartupFile(f, undefined, undefined, existsFn)));
|
|
1962
|
+
const sourceActions = replayContained ? [] : replayCtx.startupActions;
|
|
1922
1963
|
const filteredEntries = sourceEntries.filter((e) => {
|
|
1923
1964
|
if (!existsFn(e.absolutePath)) {
|
|
1924
1965
|
warnings?.push(`Restore: missing projection entry ${e.absolutePath} (skipped)`);
|
|
@@ -1954,7 +1995,7 @@ export class RestoreOrchestrator {
|
|
|
1954
1995
|
// it is, an edited one is named, and a missing one whose recorded source is gone or has changed is not put back
|
|
1955
1996
|
// with today's bytes. Only the rest is projected or installed. Nothing is re-resolved from today's spec. Native
|
|
1956
1997
|
// resume replays nothing (sourceEntries is empty). The whole selection stays in the saved startup context.
|
|
1957
|
-
const seatSkills = (
|
|
1998
|
+
const seatSkills = (replayCtx.runtime === "claude-code" || replayCtx.runtime === "codex") && !replayContained ? seatSkillPathsForNode(this.db, node.id) : undefined;
|
|
1958
1999
|
let replaySkip;
|
|
1959
2000
|
if (seatSkills) {
|
|
1960
2001
|
const replay = seatSkillReplay({ entries: filteredEntries, files: filteredFiles, paths: seatSkills,
|
|
@@ -1964,7 +2005,7 @@ export class RestoreOrchestrator {
|
|
|
1964
2005
|
}
|
|
1965
2006
|
// Build fresh projection plan (all safe_projection; replaySkip says which seat skills are left alone)
|
|
1966
2007
|
const plan = {
|
|
1967
|
-
runtime:
|
|
2008
|
+
runtime: replayCtx.runtime,
|
|
1968
2009
|
cwd: launchCwd,
|
|
1969
2010
|
entries: filteredEntries.map((e) => ({
|
|
1970
2011
|
...e,
|
|
@@ -1980,7 +2021,7 @@ export class RestoreOrchestrator {
|
|
|
1980
2021
|
const binding = {
|
|
1981
2022
|
...launchResult.binding,
|
|
1982
2023
|
// #875: the guidance file this seat's launch recorded; an older snapshot recorded none, so its file stays the rule's.
|
|
1983
|
-
guidanceFile:
|
|
2024
|
+
guidanceFile: replayCtx.guidanceFile ?? null,
|
|
1984
2025
|
// #3039: the resumed launch carries the guidance chosen above, so startup doesn't ask again and the adapter queues it.
|
|
1985
2026
|
...(launchGuidance ? { guidanceLaunchInstructions: true } : {}),
|
|
1986
2027
|
...(data.environmentBindingsByNode?.[node.id] ? { environmentRestore: data.environmentBindingsByNode[node.id] } : {}),
|
|
@@ -2051,7 +2092,9 @@ export class RestoreOrchestrator {
|
|
|
2051
2092
|
nodeId: node.id,
|
|
2052
2093
|
logicalId: node.logicalId,
|
|
2053
2094
|
status: "awaiting-decision",
|
|
2054
|
-
error:
|
|
2095
|
+
error: resumeWithoutContext
|
|
2096
|
+
? `Original session unresumable: resume attempted but the runtime reported fresh continuity. The blank session was rolled back; no session is running. ${noContextFresh}`
|
|
2097
|
+
: `Original session unresumable: resume attempted but the runtime reported fresh continuity. The blank session was rolled back; no session is running. If that degradation is acceptable, start only this seat fresh: ${this.freshSeatCommand(rigId, data, node.logicalId)}.`,
|
|
2055
2098
|
};
|
|
2056
2099
|
}
|
|
2057
2100
|
const finalStatus = (isPodAware && resumeRequested)
|
|
@@ -2096,7 +2139,9 @@ export class RestoreOrchestrator {
|
|
|
2096
2139
|
nodeId: node.id,
|
|
2097
2140
|
logicalId: node.logicalId,
|
|
2098
2141
|
status: "awaiting-decision",
|
|
2099
|
-
error:
|
|
2142
|
+
error: resumeWithoutContext
|
|
2143
|
+
? `Original session unresumable: ${startupResult.errors.join("; ")}. The blank session was rolled back; no session is running. ${noContextFresh} Restore the original session manually.`
|
|
2144
|
+
: `Original session unresumable: ${startupResult.errors.join("; ")}. The blank session was rolled back; no session is running. OpenRig's records can't tell whether this conversation was ever used. If you know this seat was never used, nothing is lost by starting only this seat fresh, ${steps}. Otherwise restore the original session manually.`,
|
|
2100
2145
|
};
|
|
2101
2146
|
}
|
|
2102
2147
|
return {
|
|
@@ -2250,70 +2295,13 @@ export class RestoreOrchestrator {
|
|
|
2250
2295
|
* 3. Nothing attached (or a resolution error) → EXPLICIT "floor" — the locked
|
|
2251
2296
|
* minimum-floor absence contract; never undefined/env-delegation for managed seats.
|
|
2252
2297
|
*/
|
|
2253
|
-
/** Pure, read-only policy resolution shared with selected startup review. */
|
|
2298
|
+
/** Pure, read-only policy resolution shared with selected startup review and node-inventory display. */
|
|
2254
2299
|
resolveRestorePosture(nodeId, rigId) {
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
// resolvedTarget first — readable → REOPEN + re-derive (the ruling); unreadable /
|
|
2261
|
-
// invalid → the PERSISTED posture carries (restart-stable), never a silent floor.
|
|
2262
|
-
if (prov.origin === "custom" && prov.declaringDir && prov.resolvedTarget) {
|
|
2263
|
-
const ref = prov.nodeRef ?? this.rigRepo.getRigPermissionPolicy(rigId);
|
|
2264
|
-
if (ref) {
|
|
2265
|
-
let content = null;
|
|
2266
|
-
try {
|
|
2267
|
-
content = readFileSync(prov.resolvedTarget, "utf-8");
|
|
2268
|
-
}
|
|
2269
|
-
catch {
|
|
2270
|
-
content = null;
|
|
2271
|
-
}
|
|
2272
|
-
if (content !== null) {
|
|
2273
|
-
const body = content;
|
|
2274
|
-
const rederived = resolvePermissionPolicyAttachment(ref, prov.declaringDir, {
|
|
2275
|
-
readFile: () => body,
|
|
2276
|
-
});
|
|
2277
|
-
// Guard round-2: trust the re-derivation ONLY when content resolution
|
|
2278
|
-
// genuinely succeeded with usable semantics (parse OK + valid flag
|
|
2279
|
-
// contract) — readable-but-malformed/unusable carries the PERSISTED
|
|
2280
|
-
// posture, exactly like unreadable. Advisory only; no enforcement.
|
|
2281
|
-
if (rederived.contentResolved)
|
|
2282
|
-
return rederived.launchPosture;
|
|
2283
|
-
}
|
|
2284
|
-
}
|
|
2285
|
-
}
|
|
2286
|
-
return prov.launchPosture;
|
|
2287
|
-
}
|
|
2288
|
-
// Guard-F1: no node provenance (organic claim/self-attach seats) → the PERSISTED
|
|
2289
|
-
// rig-level attachment is authoritative — same readable-probe discipline; NEVER
|
|
2290
|
-
// resolve the raw relative rig ref against this process's cwd.
|
|
2291
|
-
const rigProv = this.rigRepo.getRigPolicyProvenance(rigId);
|
|
2292
|
-
if (rigProv) {
|
|
2293
|
-
if (rigProv.origin === "custom" && rigProv.declaringDir && rigProv.resolvedTarget && rigProv.rigRef) {
|
|
2294
|
-
let content = null;
|
|
2295
|
-
try {
|
|
2296
|
-
content = readFileSync(rigProv.resolvedTarget, "utf-8");
|
|
2297
|
-
}
|
|
2298
|
-
catch {
|
|
2299
|
-
content = null;
|
|
2300
|
-
}
|
|
2301
|
-
if (content !== null) {
|
|
2302
|
-
const body = content;
|
|
2303
|
-
const rederived = resolvePermissionPolicyAttachment(rigProv.rigRef, rigProv.declaringDir, {
|
|
2304
|
-
readFile: () => body,
|
|
2305
|
-
});
|
|
2306
|
-
if (rederived.contentResolved)
|
|
2307
|
-
return rederived.launchPosture; // same rule as node-level
|
|
2308
|
-
}
|
|
2309
|
-
}
|
|
2310
|
-
return rigProv.launchPosture;
|
|
2311
|
-
}
|
|
2312
|
-
}
|
|
2313
|
-
catch { /* posture resolution must never block a restore */ }
|
|
2314
|
-
// R2 terminal (954d97a0): NO provenance anywhere (and the error path) = the locked
|
|
2315
|
-
// minimum floor, explicitly — never undefined (which would delegate to ambient YOLO).
|
|
2316
|
-
return "floor";
|
|
2300
|
+
return resolvePersistedRestorePosture({
|
|
2301
|
+
getNodeProvenance: () => this.rigRepo.getNodePolicyProvenance(nodeId),
|
|
2302
|
+
getFallbackRigRef: () => this.rigRepo.getRigPermissionPolicy(rigId),
|
|
2303
|
+
getRigProvenance: () => this.rigRepo.getRigPolicyProvenance(rigId),
|
|
2304
|
+
});
|
|
2317
2305
|
}
|
|
2318
2306
|
/** The live seat's current model: `rig seat set-model` saves it on the live node after the snapshot, and every
|
|
2319
2307
|
* managed resume reads it at call time, so an older snapshot can't bring back the model it replaced. Found by logical
|
|
@@ -2461,6 +2449,8 @@ export class RestoreOrchestrator {
|
|
|
2461
2449
|
if (this.piResume?.canResume(resumeType, resumeToken)) {
|
|
2462
2450
|
const result = await this.piResume.resume(sessionName, resumeType, resumeToken, cwd, model, resolvedPosture, effort, ...(launchWrapper?.length ? [launchWrapper] : []));
|
|
2463
2451
|
if (result.ok) {
|
|
2452
|
+
for (const note of result.warnings ?? [])
|
|
2453
|
+
warnings?.push(`${sessionName}: ${note}`);
|
|
2464
2454
|
if (result.appliedLaunch && launchGeneration)
|
|
2465
2455
|
this.appliedLaunchStore.recordGeneration(launchGeneration, result.appliedLaunch);
|
|
2466
2456
|
return { kind: "resumed" };
|