@openrig/cli 0.7.13 → 0.7.15
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 +2 -0
- package/daemon/assets/plugins/openrig/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/skills/working-with-an-openrig-team/SKILL.md +7 -0
- package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/SKILL.md +4 -4
- 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/skills/rigs/SKILL.md +5 -2
- 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 +103 -23
- package/daemon/context-packs/reference/getting-started.md +21 -15
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +4 -0
- package/daemon/context-packs/reference/tmux-servers.md +8 -2
- package/daemon/context-packs/reference/whats-new.md +298 -15
- package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
- package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
- package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
- package/daemon/context-packs/skills/claude-compaction-restore/SKILL.md +4 -4
- 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/SKILL.md +7 -0
- 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/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 +27 -4
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts +11 -2
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js +45 -12
- 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-exec.d.ts +4 -4
- package/daemon/dist/adapters/tmux-exec.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-exec.js +37 -8
- package/daemon/dist/adapters/tmux-exec.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +16 -0
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +49 -8
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/attention-surface.d.ts +8 -0
- package/daemon/dist/attention-surface.d.ts.map +1 -1
- package/daemon/dist/attention-surface.js.map +1 -1
- package/daemon/dist/build-info.js +3 -3
- package/daemon/dist/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 +8 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrations/163_network_installations.d.ts +7 -0
- package/daemon/dist/db/migrations/163_network_installations.d.ts.map +1 -0
- package/daemon/dist/db/migrations/163_network_installations.js +23 -0
- package/daemon/dist/db/migrations/163_network_installations.js.map +1 -0
- package/daemon/dist/db/migrations/164_queue_items_reply_to_index.d.ts +5 -0
- package/daemon/dist/db/migrations/164_queue_items_reply_to_index.d.ts.map +1 -0
- package/daemon/dist/db/migrations/164_queue_items_reply_to_index.js +9 -0
- package/daemon/dist/db/migrations/164_queue_items_reply_to_index.js.map +1 -0
- 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/166_queue_list_read_indexes.d.ts +4 -0
- package/daemon/dist/db/migrations/166_queue_list_read_indexes.d.ts.map +1 -0
- package/daemon/dist/db/migrations/166_queue_list_read_indexes.js +17 -0
- package/daemon/dist/db/migrations/166_queue_list_read_indexes.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/claude-compaction-enforcer.d.ts +5 -0
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.js +14 -5
- package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
- package/daemon/dist/domain/codex-member-permissions.d.ts +2 -0
- package/daemon/dist/domain/codex-member-permissions.d.ts.map +1 -1
- package/daemon/dist/domain/codex-member-permissions.js +17 -9
- package/daemon/dist/domain/codex-member-permissions.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/context-monitor.d.ts.map +1 -1
- package/daemon/dist/domain/context-monitor.js +8 -3
- package/daemon/dist/domain/context-monitor.js.map +1 -1
- package/daemon/dist/domain/draft-aware-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/draft-aware-delivery.js +2 -1
- package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
- 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.map +1 -1
- package/daemon/dist/domain/health-passive-ceremony.js +13 -7
- package/daemon/dist/domain/health-passive-ceremony.js.map +1 -1
- package/daemon/dist/domain/hosts/pairing-ask.d.ts +8 -0
- package/daemon/dist/domain/hosts/pairing-ask.d.ts.map +1 -1
- package/daemon/dist/domain/hosts/pairing-ask.js +20 -0
- package/daemon/dist/domain/hosts/pairing-ask.js.map +1 -1
- package/daemon/dist/domain/input-read-diagnostic.d.ts +30 -0
- package/daemon/dist/domain/input-read-diagnostic.d.ts.map +1 -0
- package/daemon/dist/domain/input-read-diagnostic.js +32 -0
- package/daemon/dist/domain/input-read-diagnostic.js.map +1 -0
- package/daemon/dist/domain/native-model-picker.d.ts +8 -0
- package/daemon/dist/domain/native-model-picker.d.ts.map +1 -0
- package/daemon/dist/domain/native-model-picker.js +35 -0
- package/daemon/dist/domain/native-model-picker.js.map +1 -0
- 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 +108 -29
- package/daemon/dist/domain/native-permission-store.js.map +1 -1
- package/daemon/dist/domain/native-process-lineage.d.ts +6 -0
- package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
- package/daemon/dist/domain/native-process-lineage.js +34 -29
- package/daemon/dist/domain/native-process-lineage.js.map +1 -1
- package/daemon/dist/domain/native-resume-probe.d.ts +39 -1
- package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +251 -6
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/network/network-bindings.d.ts +32 -2
- package/daemon/dist/domain/network/network-bindings.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-bindings.js +65 -28
- package/daemon/dist/domain/network/network-bindings.js.map +1 -1
- package/daemon/dist/domain/network/network-installations.d.ts +97 -0
- package/daemon/dist/domain/network/network-installations.d.ts.map +1 -0
- package/daemon/dist/domain/network/network-installations.js +371 -0
- package/daemon/dist/domain/network/network-installations.js.map +1 -0
- 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/operation-correlation.d.ts +1 -1
- package/daemon/dist/domain/operation-correlation.d.ts.map +1 -1
- package/daemon/dist/domain/operation-correlation.js +1 -1
- package/daemon/dist/domain/operation-correlation.js.map +1 -1
- package/daemon/dist/domain/permission-drift.d.ts +2 -1
- package/daemon/dist/domain/permission-drift.d.ts.map +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/process-observation-pass.d.ts +20 -0
- package/daemon/dist/domain/process-observation-pass.d.ts.map +1 -0
- package/daemon/dist/domain/process-observation-pass.js +80 -0
- package/daemon/dist/domain/process-observation-pass.js.map +1 -0
- package/daemon/dist/domain/queue-erasure.d.ts +10 -6
- package/daemon/dist/domain/queue-erasure.d.ts.map +1 -1
- package/daemon/dist/domain/queue-erasure.js +31 -18
- package/daemon/dist/domain/queue-erasure.js.map +1 -1
- package/daemon/dist/domain/queue-recovery.d.ts +10 -1
- package/daemon/dist/domain/queue-recovery.d.ts.map +1 -1
- package/daemon/dist/domain/queue-recovery.js +25 -3
- package/daemon/dist/domain/queue-recovery.js.map +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +32 -3
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +101 -10
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-retention.d.ts +1 -1
- package/daemon/dist/domain/queue-retention.d.ts.map +1 -1
- package/daemon/dist/domain/queue-retention.js +1 -0
- package/daemon/dist/domain/queue-retention.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts +5 -0
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +335 -50
- package/daemon/dist/domain/queue-stuck-sweep.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.d.ts.map +1 -1
- package/daemon/dist/domain/receiver-context.js +3 -2
- 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-guidance.d.ts +3 -0
- package/daemon/dist/domain/restore-guidance.d.ts.map +1 -1
- package/daemon/dist/domain/restore-guidance.js +5 -0
- package/daemon/dist/domain/restore-guidance.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +7 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +116 -84
- 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 +8 -1
- package/daemon/dist/domain/restore-preconditions.js.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.d.ts +4 -0
- package/daemon/dist/domain/resume-metadata-refresher.d.ts.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.js +7 -2
- package/daemon/dist/domain/resume-metadata-refresher.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts +1 -0
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +3 -2
- package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/daemon/dist/domain/rosters.d.ts +2 -1
- package/daemon/dist/domain/rosters.d.ts.map +1 -1
- 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 +11 -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/seat-delivery-guard.d.ts +16 -2
- package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.js +61 -6
- package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
- package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-handover-service.js +33 -9
- 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.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +5 -1
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.js +15 -0
- package/daemon/dist/domain/seat-runtime-switch-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 +16 -0
- package/daemon/dist/domain/session-registry.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +2 -0
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +38 -7
- package/daemon/dist/domain/session-transport.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/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +17 -3
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.d.ts +3 -1
- package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.js +12 -2
- 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/team-operations.d.ts +20 -0
- package/daemon/dist/domain/team-operations.d.ts.map +1 -0
- package/daemon/dist/domain/team-operations.js +23 -0
- package/daemon/dist/domain/team-operations.js.map +1 -0
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts +12 -2
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.js +52 -2
- package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-live-workspace.d.ts +42 -0
- package/daemon/dist/domain/terminal/herdr-live-workspace.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/herdr-live-workspace.js +118 -0
- package/daemon/dist/domain/terminal/herdr-live-workspace.js.map +1 -0
- package/daemon/dist/domain/terminal/herdr-sessions.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-sessions.js +3 -0
- package/daemon/dist/domain/terminal/herdr-sessions.js.map +1 -1
- package/daemon/dist/domain/terminal/rex-adapter.d.ts +3 -0
- package/daemon/dist/domain/terminal/rex-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/rex-adapter.js +10 -1
- package/daemon/dist/domain/terminal/rex-adapter.js.map +1 -1
- package/daemon/dist/domain/terminal/rex-agent-status.d.ts +76 -0
- package/daemon/dist/domain/terminal/rex-agent-status.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/rex-agent-status.js +168 -0
- package/daemon/dist/domain/terminal/rex-agent-status.js.map +1 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts +12 -1
- package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.d.ts +5 -1
- package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.js +20 -14
- package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +12 -0
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.d.ts +8 -2
- package/daemon/dist/domain/user-settings/settings-browser.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.js +5 -2
- package/daemon/dist/domain/user-settings/settings-browser.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts +15 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.js +108 -44
- package/daemon/dist/domain/user-settings/settings-store.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 +4 -2
- package/daemon/dist/domain/workflow-exception-escalation.js.map +1 -1
- package/daemon/dist/domain/workflow-runtime.d.ts +1 -1
- package/daemon/dist/domain/workflow-validator.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-validator.js +16 -0
- package/daemon/dist/domain/workflow-validator.js.map +1 -1
- package/daemon/dist/herdr-live-workspace-surface.d.ts +2 -0
- package/daemon/dist/herdr-live-workspace-surface.d.ts.map +1 -0
- package/daemon/dist/herdr-live-workspace-surface.js +2 -0
- package/daemon/dist/herdr-live-workspace-surface.js.map +1 -0
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +1 -0
- package/daemon/dist/index.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/attention.d.ts.map +1 -1
- package/daemon/dist/routes/attention.js +5 -1
- package/daemon/dist/routes/attention.js.map +1 -1
- package/daemon/dist/routes/hosts.d.ts.map +1 -1
- package/daemon/dist/routes/hosts.js +23 -14
- package/daemon/dist/routes/hosts.js.map +1 -1
- package/daemon/dist/routes/network.d.ts +7 -3
- package/daemon/dist/routes/network.d.ts.map +1 -1
- package/daemon/dist/routes/network.js +52 -17
- package/daemon/dist/routes/network.js.map +1 -1
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +9 -0
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/rigspec.js +13 -4
- package/daemon/dist/routes/rigspec.js.map +1 -1
- package/daemon/dist/routes/sessions.d.ts.map +1 -1
- package/daemon/dist/routes/sessions.js +27 -5
- package/daemon/dist/routes/sessions.js.map +1 -1
- package/daemon/dist/routes/terminal.js +1 -1
- package/daemon/dist/routes/terminal.js.map +1 -1
- package/daemon/dist/server.d.ts +1 -0
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +2 -0
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +46 -14
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/dist/tmux-server-start-surface.d.ts +2 -0
- package/daemon/dist/tmux-server-start-surface.d.ts.map +1 -0
- package/daemon/dist/tmux-server-start-surface.js +2 -0
- package/daemon/dist/tmux-server-start-surface.js.map +1 -0
- package/daemon/dist/tmux-server-start.d.ts +13 -0
- package/daemon/dist/tmux-server-start.d.ts.map +1 -0
- package/daemon/dist/tmux-server-start.js +36 -0
- package/daemon/dist/tmux-server-start.js.map +1 -0
- package/daemon/docs/reference/agent-startup-guide.md +34 -7
- package/daemon/docs/reference/agent-state-taxonomy.md +2 -1
- package/daemon/docs/reference/bundle-formats.md +6 -4
- package/daemon/docs/reference/daemon-http-clients.md +44 -1
- package/daemon/docs/reference/getting-started.md +21 -15
- package/daemon/docs/reference/harness-runner-contract.md +27 -1
- package/daemon/docs/reference/health-diagnosis.md +5 -3
- package/daemon/docs/reference/hosted-members.md +29 -3
- package/daemon/docs/reference/keeping-a-watch.md +14 -9
- package/daemon/docs/reference/network-connector.md +76 -5
- package/daemon/docs/reference/operation-correlation.md +18 -2
- package/daemon/docs/reference/queue-erasure.md +7 -5
- package/daemon/docs/reference/quickstart.md +2 -2
- package/daemon/docs/reference/rig-spec.md +4 -0
- package/daemon/docs/reference/seat-delivery.md +16 -1
- package/daemon/docs/reference/slack-app-setup.md +4 -0
- package/daemon/docs/reference/terminal-sessions.md +12 -0
- package/daemon/docs/reference/tmux-servers.md +8 -2
- package/daemon/docs/reference/whats-new.md +298 -15
- package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +13 -4
- package/daemon/specs/agents/shared/skills/core/working-with-an-openrig-team/SKILL.md +7 -0
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +27 -11
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/startup/context.md +11 -3
- package/dist/build-info.js +3 -3
- package/dist/commands/broadcast.js +7 -3
- package/dist/commands/broadcast.js.map +1 -1
- package/dist/commands/chatroom.d.ts.map +1 -1
- package/dist/commands/chatroom.js +8 -3
- package/dist/commands/chatroom.js.map +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +50 -10
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/daemon.d.ts +0 -4
- package/dist/commands/daemon.d.ts.map +1 -1
- package/dist/commands/daemon.js +1 -19
- package/dist/commands/daemon.js.map +1 -1
- package/dist/commands/doctor.js +1 -1
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/down.d.ts.map +1 -1
- package/dist/commands/down.js +3 -1
- package/dist/commands/down.js.map +1 -1
- package/dist/commands/gateway.d.ts.map +1 -1
- package/dist/commands/gateway.js +5 -0
- package/dist/commands/gateway.js.map +1 -1
- package/dist/commands/host.js +2 -2
- package/dist/commands/host.js.map +1 -1
- package/dist/commands/import.d.ts.map +1 -1
- package/dist/commands/import.js +96 -3
- package/dist/commands/import.js.map +1 -1
- package/dist/commands/network.d.ts.map +1 -1
- package/dist/commands/network.js +72 -17
- package/dist/commands/network.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 +46 -1
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +61 -3
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/roster.d.ts +2 -4
- package/dist/commands/roster.d.ts.map +1 -1
- package/dist/commands/roster.js +3 -12
- package/dist/commands/roster.js.map +1 -1
- package/dist/commands/seat.js +2 -2
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/send.d.ts +4 -0
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +6 -1
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/setup.js +1 -1
- package/dist/commands/setup.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/terminal.d.ts.map +1 -1
- package/dist/commands/terminal.js +9 -7
- package/dist/commands/terminal.js.map +1 -1
- package/dist/config-store.d.ts +14 -1
- package/dist/config-store.d.ts.map +1 -1
- package/dist/config-store.js +34 -5
- package/dist/config-store.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/check-in.d.ts +7 -0
- package/dist/lib/check-in.d.ts.map +1 -0
- package/dist/lib/check-in.js +13 -0
- package/dist/lib/check-in.js.map +1 -0
- 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.map +1 -1
- package/dist/mcp-http.js +25 -2
- package/dist/mcp-http.js.map +1 -1
- package/dist/mcp-server.d.ts +12 -1
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +211 -69
- package/dist/mcp-server.js.map +1 -1
- package/dist/person-registration-offer.d.ts +10 -0
- package/dist/person-registration-offer.d.ts.map +1 -0
- package/dist/person-registration-offer.js +25 -0
- package/dist/person-registration-offer.js.map +1 -0
- package/dist/terminal-window.d.ts.map +1 -1
- package/dist/terminal-window.js +20 -102
- package/dist/terminal-window.js.map +1 -1
- package/dist/tmux-attachment.d.ts.map +1 -1
- package/dist/tmux-attachment.js +3 -1
- package/dist/tmux-attachment.js.map +1 -1
- package/package.json +1 -1
- package/tui/dist/config/pairing.d.ts.map +1 -1
- package/tui/dist/config/pairing.js +8 -3
- package/tui/dist/config/pairing.js.map +1 -1
- package/tui/dist/connected-assistants.d.ts +20 -0
- package/tui/dist/connected-assistants.d.ts.map +1 -0
- package/tui/dist/connected-assistants.js +51 -0
- package/tui/dist/connected-assistants.js.map +1 -0
- package/tui/dist/daemon-client.d.ts +8 -0
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js +8 -0
- package/tui/dist/daemon-client.js.map +1 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +13 -2
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/main.js +4 -3
- package/tui/dist/main.js.map +1 -1
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +8 -1
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/topology/glyphs.d.ts.map +1 -1
- package/tui/dist/topology/glyphs.js +4 -0
- package/tui/dist/topology/glyphs.js.map +1 -1
- package/tui/dist/types.d.ts +11 -0
- 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
|
@@ -9,11 +9,11 @@ import { planModelAliasNotice } from "../adapters/yolo-mode.js";
|
|
|
9
9
|
import { effortPrecedence, readSeatEffort } from "./seat-effort.js";
|
|
10
10
|
import { accessSync, constants, existsSync, mkdirSync, readFileSync, realpathSync, statSync, writeFileSync } from "node:fs";
|
|
11
11
|
import { dirname, isAbsolute, join } from "node:path";
|
|
12
|
-
import { ensureSeatSkillPlugin, followSeatSkills, hasFollowingSeatSkills, hasSeatSkillRecords, rehydrateSeatSkills, seatSkillPaths, seatSkillPathsForNode, seatCatalogKeptNote, seatSkillReplay, writeSeatSkillCatalog, writeSeatSkillRouter, seatRouterKeptNote } from "./seat-skill-storage.js";
|
|
12
|
+
import { SEAT_SKILLS_BOOTSTRAP_BLOCK_ID, ensureSeatSkillPlugin, followSeatSkills, hasFollowingSeatSkills, hasSeatSkillRecords, rehydrateSeatSkills, seatSkillPaths, seatSkillPathsForNode, seatCatalogKeptNote, seatSkillReplay, writeSeatSkillCatalog, writeSeatSkillRouter, seatRouterKeptNote } from "./seat-skill-storage.js";
|
|
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
18
|
import { NOTHING_STOPPED_LAUNCH_CODES } from "./node-launcher.js";
|
|
19
19
|
import { seatRuntimeHome } from "./seat-runtime-home.js";
|
|
@@ -23,7 +23,7 @@ import { resumeProbeEvidence } from "./native-resume-probe-evidence.js";
|
|
|
23
23
|
import { observeClaudeDelivery, observeClaudeResumeLaunch, processArgv, verifyClaudePaneProcess, verifyClaudePaneRuntime, verifyPaneIdleShell } from "./native-process-lineage.js";
|
|
24
24
|
import { readNativeExecutablePaths } from "./native-process-executable.js";
|
|
25
25
|
import { reanchorBuiltinStartupFile, reanchorShippedProjectionEntry, withContextEntryFloor } from "./builtin-startup-files.js";
|
|
26
|
-
import { applySeatSkillsLineRule, seatGuidance, restoreMissingGuidance, missingGuidanceBlocks, guidanceFileSharedByLink, lstatLinkInfo } from "./restore-guidance.js";
|
|
26
|
+
import { absentGuidanceBlocks, applySeatSkillsLineRule, seatGuidance, restoreMissingGuidance, missingGuidanceBlocks, guidanceFileSharedByLink, lstatLinkInfo } from "./restore-guidance.js";
|
|
27
27
|
import { decideManagedBlock, managedBlockRecords } from "./managed-block-records.js";
|
|
28
28
|
import { readFootprintAnswer } from "./footprint-choice.js";
|
|
29
29
|
import { SettingsStore } from "./user-settings/settings-store.js";
|
|
@@ -140,6 +140,9 @@ export function snapshotLaunchOutcome(data, nodeId, runtime, savedRuntime, resum
|
|
|
140
140
|
export class RestoreOrchestrator {
|
|
141
141
|
db;
|
|
142
142
|
activeRestores = new Set();
|
|
143
|
+
/** #3039: per node, the guidance blocks its resumed launch carried, which the check after the launch doesn't look for in
|
|
144
|
+
* the repository file. */
|
|
145
|
+
launchGuidanceBlocks = new Map();
|
|
143
146
|
rigRepo;
|
|
144
147
|
sessionRegistry;
|
|
145
148
|
eventBus;
|
|
@@ -276,6 +279,9 @@ export class RestoreOrchestrator {
|
|
|
276
279
|
servicesRecord: this.rigRepo.getServicesRecord(rigId),
|
|
277
280
|
freshLogicalIds: opts?.freshLogicalIds,
|
|
278
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])),
|
|
279
285
|
});
|
|
280
286
|
const topology = resolveSnapshotRestoreTopology(snapshot.data);
|
|
281
287
|
// A required startup file that is missing holds only its own seat. That seat isn't launched, because it would start
|
|
@@ -1330,7 +1336,22 @@ export class RestoreOrchestrator {
|
|
|
1330
1336
|
}
|
|
1331
1337
|
catch { /* no column */ }
|
|
1332
1338
|
}
|
|
1339
|
+
/** #3039: whether this resume's launch carries the seat's guidance, by the adapter's own fresh-launch rule (a Codex
|
|
1340
|
+
* conversation resume). Anything unanswered or unreadable keeps the repository path. */
|
|
1341
|
+
async resumeLaunchCarriesGuidance(adapter, binding) {
|
|
1342
|
+
if (!adapter?.guidanceFileFor)
|
|
1343
|
+
return false;
|
|
1344
|
+
try {
|
|
1345
|
+
const answer = adapter.guidanceFileFor(binding, { resuming: true, resumingConversation: true });
|
|
1346
|
+
return (answer instanceof Promise ? await answer : answer).launchInstructions === true;
|
|
1347
|
+
}
|
|
1348
|
+
catch {
|
|
1349
|
+
return false;
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1333
1352
|
checkRestoredGuidance(result, node, rigId, data, warnings) {
|
|
1353
|
+
const launchCarried = this.launchGuidanceBlocks.get(node.id);
|
|
1354
|
+
this.launchGuidanceBlocks.delete(node.id);
|
|
1334
1355
|
// Every status with a live session; attention_required keeps its status and gains the disclosure.
|
|
1335
1356
|
if (!["resumed", "fresh-primed", "fresh", "rebuilt", "attention_required"].includes(result.status))
|
|
1336
1357
|
return result;
|
|
@@ -1360,7 +1381,9 @@ export class RestoreOrchestrator {
|
|
|
1360
1381
|
const noted = notes.length > 0 ? { ...result, guidanceNotes: notes } : result;
|
|
1361
1382
|
let missing;
|
|
1362
1383
|
try {
|
|
1363
|
-
|
|
1384
|
+
// #3039: a block the resumed launch carried isn't looked for in the repository file; one it couldn't carry still is.
|
|
1385
|
+
missing = missingGuidanceBlocks(guidance, { exists: existsSync, readFile: (path) => readFileSync(path, "utf-8") })
|
|
1386
|
+
.filter((id) => !launchCarried?.has(id));
|
|
1364
1387
|
}
|
|
1365
1388
|
catch (err) {
|
|
1366
1389
|
missing = [`(could not read ${guidance.targetPath}: ${err.message})`];
|
|
@@ -1582,7 +1605,8 @@ export class RestoreOrchestrator {
|
|
|
1582
1605
|
// runtime and write Claude hooks into another agent's working folder
|
|
1583
1606
|
// (with a saved context, the compatibility gate already stops that
|
|
1584
1607
|
// mismatch), and a pod-aware agent must get no write from this recovery
|
|
1585
|
-
// at all
|
|
1608
|
+
// at all. With no saved context and a resume token, restore tries its resume
|
|
1609
|
+
// on an empty plan (replayCtx below), still without this recovery.
|
|
1586
1610
|
const activityAdapter = opts?.adapters?.["claude-code"];
|
|
1587
1611
|
const recoveryRuntime = startupCtx?.runtime
|
|
1588
1612
|
?? (!isPodAware && liveRuntime === node.runtime ? node.runtime : null);
|
|
@@ -1610,6 +1634,16 @@ export class RestoreOrchestrator {
|
|
|
1610
1634
|
await this.restoreCurrentActivityHooks(node, activityAdapter, launchResult, warnings, activityHookGaps, launchCwd);
|
|
1611
1635
|
}
|
|
1612
1636
|
}
|
|
1637
|
+
// #3039: a pod-aware resume whose saved choice is the repository file asks the adapter, as startup does, whether its
|
|
1638
|
+
// launch carries the guidance (a Codex conversation resume, the fresh launch's rule). Then the saved guidance goes with
|
|
1639
|
+
// the resume as developer instructions (the containment below lets only it through), and the repository AGENTS.md
|
|
1640
|
+
// gets only #2456's refresh of blocks already there. A legacy resume starts its harness before startNode, so it can't.
|
|
1641
|
+
let launchCarriesGuidance = false;
|
|
1642
|
+
this.launchGuidanceBlocks.delete(node.id);
|
|
1643
|
+
if (resumeRequested && resumeToken && launchResult && isPodAware && startupCtx && !startupCtx.guidanceFile) {
|
|
1644
|
+
launchCarriesGuidance = await this.resumeLaunchCarriesGuidance(seatAdapter(opts?.adapters, startupCtx.runtime, session?.communityHarness), { ...launchResult.binding, guidanceFile: null, cwd: launchCwd, codexConfigProfile: this.liveCodexProfile(rigId, node, selected?.nodeId) ?? undefined });
|
|
1645
|
+
}
|
|
1646
|
+
let launchGuidance = null;
|
|
1613
1647
|
// A narrow exception to the replay containment below: before either native resume path
|
|
1614
1648
|
// starts the harness, put back only the MISSING managed guidance blocks from the saved
|
|
1615
1649
|
// startup selection. Ordinary `rig down` strips them; without this the resumed
|
|
@@ -1647,6 +1681,31 @@ export class RestoreOrchestrator {
|
|
|
1647
1681
|
warnings?.push(`Restore guidance: ${node.logicalId}: ${linked} is now a link, so nothing was put back in ${guidance.targetPath}, which other sessions could read.`);
|
|
1648
1682
|
guidance = null;
|
|
1649
1683
|
}
|
|
1684
|
+
if (guidance && guidance.items.length > 0 && launchCarriesGuidance && startupCtx) {
|
|
1685
|
+
// #3039: a block the file doesn't hold at all goes with the launch instead of being put back, when its source reads
|
|
1686
|
+
// now (the writer's own read). Everything else stays with the writer below, as before: a block already there
|
|
1687
|
+
// (refreshed or kept and named), a partial one, a source that's gone or can't be read (gaps), and the seat-skills
|
|
1688
|
+
// line (the person's yes was for that file). So the launch's own placement writes nothing here: each block it gets is
|
|
1689
|
+
// absent from the file. Each goes as an optional startup file, so a read that fails at the launch skips it rather
|
|
1690
|
+
// than stopping the resume, and the check after the launch looks only past the blocks the launch reports it sent.
|
|
1691
|
+
let absent = new Set();
|
|
1692
|
+
try {
|
|
1693
|
+
absent = new Set(absentGuidanceBlocks(guidance, { exists: existsSync, readFile: (path) => readFileSync(path, "utf-8") }));
|
|
1694
|
+
}
|
|
1695
|
+
catch { /* unreadable: the writer below reports it */ }
|
|
1696
|
+
const reads = (path) => { try {
|
|
1697
|
+
readFileSync(path, "utf-8");
|
|
1698
|
+
return true;
|
|
1699
|
+
}
|
|
1700
|
+
catch {
|
|
1701
|
+
return false;
|
|
1702
|
+
} };
|
|
1703
|
+
const carried = guidance.items.filter((item) => absent.has(item.blockId) && !item.unresolved
|
|
1704
|
+
&& item.blockId !== SEAT_SKILLS_BOOTSTRAP_BLOCK_ID && reads(item.sourcePath));
|
|
1705
|
+
launchGuidance = carried.map((item) => ({ path: item.blockId, absolutePath: item.sourcePath, ownerRoot: dirname(item.sourcePath),
|
|
1706
|
+
deliveryHint: "guidance_merge", required: false, appliesOn: ["fresh_start", "restore"] }));
|
|
1707
|
+
guidance = { ...guidance, items: guidance.items.filter((item) => !carried.includes(item)) };
|
|
1708
|
+
}
|
|
1650
1709
|
if (guidance && guidance.items.length > 0) {
|
|
1651
1710
|
// #2456: a block OpenRig wrote whose source changed since is refreshed too; an edited one, or one with no record, is
|
|
1652
1711
|
// left as it is and named (the check after the launch carries the names onto the seat's result).
|
|
@@ -1787,10 +1846,25 @@ export class RestoreOrchestrator {
|
|
|
1787
1846
|
// launches are new histories and keep their replay.
|
|
1788
1847
|
// One narrow exception: MISSING managed guidance blocks are put back before the harness
|
|
1789
1848
|
// starts (see restoreMissingGuidance above); existing blocks are still never rewritten, and
|
|
1790
|
-
// nothing else is replayed.
|
|
1849
|
+
// nothing else is replayed. #3039: when the resumed launch carries the guidance instead, only that
|
|
1850
|
+
// saved guidance passes, as optional startup files (launchGuidance): no action, skill or other resource.
|
|
1791
1851
|
const replayContained = resumeRequested && !!resumeToken;
|
|
1792
1852
|
const startupRuntime = startupCtx?.runtime ?? node.runtime ?? null;
|
|
1793
1853
|
const startupAdapter = seatAdapter(opts?.adapters, startupRuntime, session?.communityHarness);
|
|
1854
|
+
// A seat that only ever resumed or was attached (attach, adopt, reconcile-session, a set resume token) has a resume
|
|
1855
|
+
// token but no saved startup context. A resume replays none anyway (replayContained), so restore tries the resume
|
|
1856
|
+
// with an empty plan and names the gap, rather than stopping on data the resume doesn't use. Guidance, activity hooks
|
|
1857
|
+
// and the guidance record read the saved context only, so no guidance is put back and no startup context is written
|
|
1858
|
+
// for this seat; the adapter's ordinary bootstrap and the seat's existing skill restoration still run, as on any resume.
|
|
1859
|
+
const resumeWithoutContext = isPodAware && !startupCtx && replayContained && startupRuntime !== null && startupRuntime !== "terminal";
|
|
1860
|
+
// A fresh seat launch reads the saved startup context and refuses without one, so a rollback names none for this seat.
|
|
1861
|
+
const noContextFresh = "This seat has no saved startup context, and no command records one for it yet, so no fresh start is offered here.";
|
|
1862
|
+
const replayCtx = startupCtx
|
|
1863
|
+
?? (resumeWithoutContext ? { runtime: startupRuntime, projectionEntries: [], resolvedStartupFiles: [], startupActions: [] } : null);
|
|
1864
|
+
if (resumeWithoutContext && startupAdapter && launchResult) {
|
|
1865
|
+
warnings?.push(`Restore: ${node.logicalId}: no saved startup context, so restore tries its saved conversation without replaying a saved startup plan.`);
|
|
1866
|
+
activityHookGaps?.push("startup_context: no saved startup context; restore tried the saved conversation without replaying a saved startup plan.");
|
|
1867
|
+
}
|
|
1794
1868
|
// New compute has no retained context filesystem. Restore the saved file selection, never conversation actions.
|
|
1795
1869
|
const restoreEnvironmentContext = replayContained && !!startupAdapter?.environment && !!data.environmentBindingsByNode?.[node.id];
|
|
1796
1870
|
// A new pod-aware agent needs a startup context to run StartupOrchestrator.
|
|
@@ -1801,12 +1875,13 @@ export class RestoreOrchestrator {
|
|
|
1801
1875
|
&& baseStatus !== "resumed"
|
|
1802
1876
|
&& startupRuntime !== null
|
|
1803
1877
|
&& startupRuntime !== "terminal"
|
|
1804
|
-
&& (!
|
|
1878
|
+
&& (!replayCtx || !startupAdapter)) {
|
|
1805
1879
|
// A deliberate fresh launch with no captured startup context is the
|
|
1806
1880
|
// never-occupied-seat case from #49. The restore launcher has already
|
|
1807
1881
|
// created a shell, so remove that provisional session before handing the
|
|
1808
|
-
// seat to the normal recipe-backed launch path.
|
|
1809
|
-
//
|
|
1882
|
+
// seat to the normal recipe-backed launch path. A resume with a token
|
|
1883
|
+
// goes on with an empty plan (replayCtx above); a resume without one stays
|
|
1884
|
+
// on the fail-closed path below: no durable context means no safe resume.
|
|
1810
1885
|
if (!startupCtx && !resumeRequested && this.freshLaunch) {
|
|
1811
1886
|
// Keep the usable provisional shell when the callback exists but its
|
|
1812
1887
|
// recipe/member inputs are unavailable. A callback being present alone
|
|
@@ -1847,22 +1922,22 @@ export class RestoreOrchestrator {
|
|
|
1847
1922
|
};
|
|
1848
1923
|
}
|
|
1849
1924
|
}
|
|
1850
|
-
const cause =
|
|
1925
|
+
const cause = replayCtx ? `no ${startupRuntime} runtime adapter` : "no startup context";
|
|
1851
1926
|
const error = `Harness not started: ${cause} for ${node.logicalId}.`;
|
|
1852
1927
|
warnings?.push(`Restore: ${error}`);
|
|
1853
1928
|
return { nodeId: node.id, logicalId: node.logicalId, status: "attention_required", error };
|
|
1854
1929
|
}
|
|
1855
1930
|
// Attempt restore-safe startup replay if context available
|
|
1856
|
-
if (data.nodeStartupContext && opts?.adapters && launchResult) {
|
|
1857
|
-
if (
|
|
1858
|
-
const adapter = seatAdapter(opts.adapters,
|
|
1931
|
+
if ((data.nodeStartupContext || replayCtx) && opts?.adapters && launchResult) {
|
|
1932
|
+
if (replayCtx) {
|
|
1933
|
+
const adapter = seatAdapter(opts.adapters, replayCtx.runtime, session?.communityHarness);
|
|
1859
1934
|
if (adapter) {
|
|
1860
1935
|
// Prefilter: check which files/entries still exist
|
|
1861
1936
|
const existsFn = opts.fsOps?.exists ?? (() => true);
|
|
1862
|
-
const sourceEntries = replayContained && !restoreEnvironmentContext ? [] :
|
|
1937
|
+
const sourceEntries = replayContained && !restoreEnvironmentContext ? [] : replayCtx.projectionEntries.map((e) => reanchorShippedProjectionEntry(e, undefined, existsFn));
|
|
1863
1938
|
// #261: recognized built-in startup files follow the running install.
|
|
1864
|
-
const sourceFiles = replayContained && !restoreEnvironmentContext ? [] : withContextEntryFloor(
|
|
1865
|
-
const sourceActions = replayContained ? [] :
|
|
1939
|
+
const sourceFiles = replayContained && !restoreEnvironmentContext ? launchGuidance ?? [] : withContextEntryFloor(replayCtx.resolvedStartupFiles.map((f) => reanchorBuiltinStartupFile(f, undefined, undefined, existsFn)));
|
|
1940
|
+
const sourceActions = replayContained ? [] : replayCtx.startupActions;
|
|
1866
1941
|
const filteredEntries = sourceEntries.filter((e) => {
|
|
1867
1942
|
if (!existsFn(e.absolutePath)) {
|
|
1868
1943
|
warnings?.push(`Restore: missing projection entry ${e.absolutePath} (skipped)`);
|
|
@@ -1898,7 +1973,7 @@ export class RestoreOrchestrator {
|
|
|
1898
1973
|
// it is, an edited one is named, and a missing one whose recorded source is gone or has changed is not put back
|
|
1899
1974
|
// with today's bytes. Only the rest is projected or installed. Nothing is re-resolved from today's spec. Native
|
|
1900
1975
|
// resume replays nothing (sourceEntries is empty). The whole selection stays in the saved startup context.
|
|
1901
|
-
const seatSkills = (
|
|
1976
|
+
const seatSkills = (replayCtx.runtime === "claude-code" || replayCtx.runtime === "codex") && !replayContained ? seatSkillPathsForNode(this.db, node.id) : undefined;
|
|
1902
1977
|
let replaySkip;
|
|
1903
1978
|
if (seatSkills) {
|
|
1904
1979
|
const replay = seatSkillReplay({ entries: filteredEntries, files: filteredFiles, paths: seatSkills,
|
|
@@ -1908,7 +1983,7 @@ export class RestoreOrchestrator {
|
|
|
1908
1983
|
}
|
|
1909
1984
|
// Build fresh projection plan (all safe_projection; replaySkip says which seat skills are left alone)
|
|
1910
1985
|
const plan = {
|
|
1911
|
-
runtime:
|
|
1986
|
+
runtime: replayCtx.runtime,
|
|
1912
1987
|
cwd: launchCwd,
|
|
1913
1988
|
entries: filteredEntries.map((e) => ({
|
|
1914
1989
|
...e,
|
|
@@ -1924,7 +1999,9 @@ export class RestoreOrchestrator {
|
|
|
1924
1999
|
const binding = {
|
|
1925
2000
|
...launchResult.binding,
|
|
1926
2001
|
// #875: the guidance file this seat's launch recorded; an older snapshot recorded none, so its file stays the rule's.
|
|
1927
|
-
guidanceFile:
|
|
2002
|
+
guidanceFile: replayCtx.guidanceFile ?? null,
|
|
2003
|
+
// #3039: the resumed launch carries the guidance chosen above, so startup doesn't ask again and the adapter queues it.
|
|
2004
|
+
...(launchGuidance ? { guidanceLaunchInstructions: true } : {}),
|
|
1928
2005
|
...(data.environmentBindingsByNode?.[node.id] ? { environmentRestore: data.environmentBindingsByNode[node.id] } : {}),
|
|
1929
2006
|
...(opts?.claudeExecutable ? { claudeExecutable: opts.claudeExecutable } : {}),
|
|
1930
2007
|
...(opts?.claudeLaunch ? { claudeLaunch: opts.claudeLaunch } : {}),
|
|
@@ -1969,6 +2046,12 @@ export class RestoreOrchestrator {
|
|
|
1969
2046
|
...(selected ? { beforeNativeLaunch: () => selected.beforeNative(launchResult.session.id, launchResult.binding.id) } : {}),
|
|
1970
2047
|
});
|
|
1971
2048
|
warnings?.push(...(startupResult.warnings ?? []));
|
|
2049
|
+
// #3039: the blocks the resumed launch actually sent, by the adapter's own record, are the ones the check after the
|
|
2050
|
+
// launch doesn't look for in the repository file.
|
|
2051
|
+
const carriedIds = new Set((launchGuidance ?? []).map((f) => f.path));
|
|
2052
|
+
const sentGuidance = carriedIds.size > 0 && launchResult.binding.tmuxSession ? adapter.launchGuidanceSent?.(launchResult.binding.tmuxSession) : undefined;
|
|
2053
|
+
if (sentGuidance?.length)
|
|
2054
|
+
this.launchGuidanceBlocks.set(node.id, new Set(sentGuidance.filter((id) => carriedIds.has(id))));
|
|
1972
2055
|
if (startupResult.ok) {
|
|
1973
2056
|
const nativeContinuityProved = isPodAware
|
|
1974
2057
|
&& resumeRequested
|
|
@@ -1987,7 +2070,9 @@ export class RestoreOrchestrator {
|
|
|
1987
2070
|
nodeId: node.id,
|
|
1988
2071
|
logicalId: node.logicalId,
|
|
1989
2072
|
status: "awaiting-decision",
|
|
1990
|
-
error:
|
|
2073
|
+
error: resumeWithoutContext
|
|
2074
|
+
? `Original session unresumable: resume attempted but the runtime reported fresh continuity. The blank session was rolled back; no session is running. ${noContextFresh}`
|
|
2075
|
+
: `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)}.`,
|
|
1991
2076
|
};
|
|
1992
2077
|
}
|
|
1993
2078
|
const finalStatus = (isPodAware && resumeRequested)
|
|
@@ -2032,7 +2117,9 @@ export class RestoreOrchestrator {
|
|
|
2032
2117
|
nodeId: node.id,
|
|
2033
2118
|
logicalId: node.logicalId,
|
|
2034
2119
|
status: "awaiting-decision",
|
|
2035
|
-
error:
|
|
2120
|
+
error: resumeWithoutContext
|
|
2121
|
+
? `Original session unresumable: ${startupResult.errors.join("; ")}. The blank session was rolled back; no session is running. ${noContextFresh} Restore the original session manually.`
|
|
2122
|
+
: `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.`,
|
|
2036
2123
|
};
|
|
2037
2124
|
}
|
|
2038
2125
|
return {
|
|
@@ -2186,70 +2273,13 @@ export class RestoreOrchestrator {
|
|
|
2186
2273
|
* 3. Nothing attached (or a resolution error) → EXPLICIT "floor" — the locked
|
|
2187
2274
|
* minimum-floor absence contract; never undefined/env-delegation for managed seats.
|
|
2188
2275
|
*/
|
|
2189
|
-
/** Pure, read-only policy resolution shared with selected startup review. */
|
|
2276
|
+
/** Pure, read-only policy resolution shared with selected startup review and node-inventory display. */
|
|
2190
2277
|
resolveRestorePosture(nodeId, rigId) {
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
// resolvedTarget first — readable → REOPEN + re-derive (the ruling); unreadable /
|
|
2197
|
-
// invalid → the PERSISTED posture carries (restart-stable), never a silent floor.
|
|
2198
|
-
if (prov.origin === "custom" && prov.declaringDir && prov.resolvedTarget) {
|
|
2199
|
-
const ref = prov.nodeRef ?? this.rigRepo.getRigPermissionPolicy(rigId);
|
|
2200
|
-
if (ref) {
|
|
2201
|
-
let content = null;
|
|
2202
|
-
try {
|
|
2203
|
-
content = readFileSync(prov.resolvedTarget, "utf-8");
|
|
2204
|
-
}
|
|
2205
|
-
catch {
|
|
2206
|
-
content = null;
|
|
2207
|
-
}
|
|
2208
|
-
if (content !== null) {
|
|
2209
|
-
const body = content;
|
|
2210
|
-
const rederived = resolvePermissionPolicyAttachment(ref, prov.declaringDir, {
|
|
2211
|
-
readFile: () => body,
|
|
2212
|
-
});
|
|
2213
|
-
// Guard round-2: trust the re-derivation ONLY when content resolution
|
|
2214
|
-
// genuinely succeeded with usable semantics (parse OK + valid flag
|
|
2215
|
-
// contract) — readable-but-malformed/unusable carries the PERSISTED
|
|
2216
|
-
// posture, exactly like unreadable. Advisory only; no enforcement.
|
|
2217
|
-
if (rederived.contentResolved)
|
|
2218
|
-
return rederived.launchPosture;
|
|
2219
|
-
}
|
|
2220
|
-
}
|
|
2221
|
-
}
|
|
2222
|
-
return prov.launchPosture;
|
|
2223
|
-
}
|
|
2224
|
-
// Guard-F1: no node provenance (organic claim/self-attach seats) → the PERSISTED
|
|
2225
|
-
// rig-level attachment is authoritative — same readable-probe discipline; NEVER
|
|
2226
|
-
// resolve the raw relative rig ref against this process's cwd.
|
|
2227
|
-
const rigProv = this.rigRepo.getRigPolicyProvenance(rigId);
|
|
2228
|
-
if (rigProv) {
|
|
2229
|
-
if (rigProv.origin === "custom" && rigProv.declaringDir && rigProv.resolvedTarget && rigProv.rigRef) {
|
|
2230
|
-
let content = null;
|
|
2231
|
-
try {
|
|
2232
|
-
content = readFileSync(rigProv.resolvedTarget, "utf-8");
|
|
2233
|
-
}
|
|
2234
|
-
catch {
|
|
2235
|
-
content = null;
|
|
2236
|
-
}
|
|
2237
|
-
if (content !== null) {
|
|
2238
|
-
const body = content;
|
|
2239
|
-
const rederived = resolvePermissionPolicyAttachment(rigProv.rigRef, rigProv.declaringDir, {
|
|
2240
|
-
readFile: () => body,
|
|
2241
|
-
});
|
|
2242
|
-
if (rederived.contentResolved)
|
|
2243
|
-
return rederived.launchPosture; // same rule as node-level
|
|
2244
|
-
}
|
|
2245
|
-
}
|
|
2246
|
-
return rigProv.launchPosture;
|
|
2247
|
-
}
|
|
2248
|
-
}
|
|
2249
|
-
catch { /* posture resolution must never block a restore */ }
|
|
2250
|
-
// R2 terminal (954d97a0): NO provenance anywhere (and the error path) = the locked
|
|
2251
|
-
// minimum floor, explicitly — never undefined (which would delegate to ambient YOLO).
|
|
2252
|
-
return "floor";
|
|
2278
|
+
return resolvePersistedRestorePosture({
|
|
2279
|
+
getNodeProvenance: () => this.rigRepo.getNodePolicyProvenance(nodeId),
|
|
2280
|
+
getFallbackRigRef: () => this.rigRepo.getRigPermissionPolicy(rigId),
|
|
2281
|
+
getRigProvenance: () => this.rigRepo.getRigPolicyProvenance(rigId),
|
|
2282
|
+
});
|
|
2253
2283
|
}
|
|
2254
2284
|
/** The live seat's current model: `rig seat set-model` saves it on the live node after the snapshot, and every
|
|
2255
2285
|
* managed resume reads it at call time, so an older snapshot can't bring back the model it replaced. Found by logical
|
|
@@ -2397,6 +2427,8 @@ export class RestoreOrchestrator {
|
|
|
2397
2427
|
if (this.piResume?.canResume(resumeType, resumeToken)) {
|
|
2398
2428
|
const result = await this.piResume.resume(sessionName, resumeType, resumeToken, cwd, model, resolvedPosture, effort, ...(launchWrapper?.length ? [launchWrapper] : []));
|
|
2399
2429
|
if (result.ok) {
|
|
2430
|
+
for (const note of result.warnings ?? [])
|
|
2431
|
+
warnings?.push(`${sessionName}: ${note}`);
|
|
2400
2432
|
if (result.appliedLaunch && launchGeneration)
|
|
2401
2433
|
this.appliedLaunchStore.recordGeneration(launchGeneration, result.appliedLaunch);
|
|
2402
2434
|
return { kind: "resumed" };
|