@openrig/cli 0.7.14 → 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-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/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 +41 -5
- package/daemon/context-packs/reference/getting-started.md +12 -11
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/whats-new.md +150 -5
- package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
- package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
- package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
- package/daemon/context-packs/skills/claude-compaction-restore/SKILL.md +4 -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/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/codex-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js +13 -3
- 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 +7 -0
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +26 -5
- 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 +2 -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/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.js +2 -2
- 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/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/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-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 +127 -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/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/queue-repository.d.ts +9 -1
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +24 -6
- package/daemon/dist/domain/queue-repository.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/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 +48 -80
- 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 +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.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +2 -1
- package/daemon/dist/domain/rigspec-instantiator.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 +2 -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 +13 -1
- package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.js +53 -1
- 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 +13 -7
- 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.js +1 -1
- 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 +9 -0
- 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/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 +3 -0
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.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-runtime.d.ts +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/sessions.d.ts.map +1 -1
- package/daemon/dist/routes/sessions.js +9 -6
- package/daemon/dist/routes/sessions.js.map +1 -1
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +27 -9
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/docs/reference/agent-startup-guide.md +1 -1
- package/daemon/docs/reference/bundle-formats.md +6 -4
- package/daemon/docs/reference/daemon-http-clients.md +2 -1
- package/daemon/docs/reference/getting-started.md +12 -11
- 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/slack-app-setup.md +4 -0
- package/daemon/docs/reference/whats-new.md +150 -5
- package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +13 -4
- package/dist/build-info.js +3 -3
- 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/ps.d.ts +1 -0
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +2 -1
- package/dist/commands/ps.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/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-server.d.ts.map +1 -1
- package/dist/mcp-server.js +27 -13
- package/dist/mcp-server.js.map +1 -1
- package/package.json +1 -1
- package/tui/dist/connected-assistants.js +1 -1
- package/tui/dist/connected-assistants.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 +4 -1
- package/tui/dist/render.js.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,7 +13,7 @@ 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
18
|
import { NOTHING_STOPPED_LAUNCH_CODES } from "./node-launcher.js";
|
|
19
19
|
import { seatRuntimeHome } from "./seat-runtime-home.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
|
|
@@ -1602,7 +1605,8 @@ export class RestoreOrchestrator {
|
|
|
1602
1605
|
// runtime and write Claude hooks into another agent's working folder
|
|
1603
1606
|
// (with a saved context, the compatibility gate already stops that
|
|
1604
1607
|
// mismatch), and a pod-aware agent must get no write from this recovery
|
|
1605
|
-
// 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.
|
|
1606
1610
|
const activityAdapter = opts?.adapters?.["claude-code"];
|
|
1607
1611
|
const recoveryRuntime = startupCtx?.runtime
|
|
1608
1612
|
?? (!isPodAware && liveRuntime === node.runtime ? node.runtime : null);
|
|
@@ -1847,6 +1851,20 @@ export class RestoreOrchestrator {
|
|
|
1847
1851
|
const replayContained = resumeRequested && !!resumeToken;
|
|
1848
1852
|
const startupRuntime = startupCtx?.runtime ?? node.runtime ?? null;
|
|
1849
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
|
+
}
|
|
1850
1868
|
// New compute has no retained context filesystem. Restore the saved file selection, never conversation actions.
|
|
1851
1869
|
const restoreEnvironmentContext = replayContained && !!startupAdapter?.environment && !!data.environmentBindingsByNode?.[node.id];
|
|
1852
1870
|
// A new pod-aware agent needs a startup context to run StartupOrchestrator.
|
|
@@ -1857,12 +1875,13 @@ export class RestoreOrchestrator {
|
|
|
1857
1875
|
&& baseStatus !== "resumed"
|
|
1858
1876
|
&& startupRuntime !== null
|
|
1859
1877
|
&& startupRuntime !== "terminal"
|
|
1860
|
-
&& (!
|
|
1878
|
+
&& (!replayCtx || !startupAdapter)) {
|
|
1861
1879
|
// A deliberate fresh launch with no captured startup context is the
|
|
1862
1880
|
// never-occupied-seat case from #49. The restore launcher has already
|
|
1863
1881
|
// created a shell, so remove that provisional session before handing the
|
|
1864
|
-
// seat to the normal recipe-backed launch path.
|
|
1865
|
-
//
|
|
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.
|
|
1866
1885
|
if (!startupCtx && !resumeRequested && this.freshLaunch) {
|
|
1867
1886
|
// Keep the usable provisional shell when the callback exists but its
|
|
1868
1887
|
// recipe/member inputs are unavailable. A callback being present alone
|
|
@@ -1903,22 +1922,22 @@ export class RestoreOrchestrator {
|
|
|
1903
1922
|
};
|
|
1904
1923
|
}
|
|
1905
1924
|
}
|
|
1906
|
-
const cause =
|
|
1925
|
+
const cause = replayCtx ? `no ${startupRuntime} runtime adapter` : "no startup context";
|
|
1907
1926
|
const error = `Harness not started: ${cause} for ${node.logicalId}.`;
|
|
1908
1927
|
warnings?.push(`Restore: ${error}`);
|
|
1909
1928
|
return { nodeId: node.id, logicalId: node.logicalId, status: "attention_required", error };
|
|
1910
1929
|
}
|
|
1911
1930
|
// Attempt restore-safe startup replay if context available
|
|
1912
|
-
if (data.nodeStartupContext && opts?.adapters && launchResult) {
|
|
1913
|
-
if (
|
|
1914
|
-
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);
|
|
1915
1934
|
if (adapter) {
|
|
1916
1935
|
// Prefilter: check which files/entries still exist
|
|
1917
1936
|
const existsFn = opts.fsOps?.exists ?? (() => true);
|
|
1918
|
-
const sourceEntries = replayContained && !restoreEnvironmentContext ? [] :
|
|
1937
|
+
const sourceEntries = replayContained && !restoreEnvironmentContext ? [] : replayCtx.projectionEntries.map((e) => reanchorShippedProjectionEntry(e, undefined, existsFn));
|
|
1919
1938
|
// #261: recognized built-in startup files follow the running install.
|
|
1920
|
-
const sourceFiles = replayContained && !restoreEnvironmentContext ? launchGuidance ?? [] : withContextEntryFloor(
|
|
1921
|
-
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;
|
|
1922
1941
|
const filteredEntries = sourceEntries.filter((e) => {
|
|
1923
1942
|
if (!existsFn(e.absolutePath)) {
|
|
1924
1943
|
warnings?.push(`Restore: missing projection entry ${e.absolutePath} (skipped)`);
|
|
@@ -1954,7 +1973,7 @@ export class RestoreOrchestrator {
|
|
|
1954
1973
|
// it is, an edited one is named, and a missing one whose recorded source is gone or has changed is not put back
|
|
1955
1974
|
// with today's bytes. Only the rest is projected or installed. Nothing is re-resolved from today's spec. Native
|
|
1956
1975
|
// resume replays nothing (sourceEntries is empty). The whole selection stays in the saved startup context.
|
|
1957
|
-
const seatSkills = (
|
|
1976
|
+
const seatSkills = (replayCtx.runtime === "claude-code" || replayCtx.runtime === "codex") && !replayContained ? seatSkillPathsForNode(this.db, node.id) : undefined;
|
|
1958
1977
|
let replaySkip;
|
|
1959
1978
|
if (seatSkills) {
|
|
1960
1979
|
const replay = seatSkillReplay({ entries: filteredEntries, files: filteredFiles, paths: seatSkills,
|
|
@@ -1964,7 +1983,7 @@ export class RestoreOrchestrator {
|
|
|
1964
1983
|
}
|
|
1965
1984
|
// Build fresh projection plan (all safe_projection; replaySkip says which seat skills are left alone)
|
|
1966
1985
|
const plan = {
|
|
1967
|
-
runtime:
|
|
1986
|
+
runtime: replayCtx.runtime,
|
|
1968
1987
|
cwd: launchCwd,
|
|
1969
1988
|
entries: filteredEntries.map((e) => ({
|
|
1970
1989
|
...e,
|
|
@@ -1980,7 +1999,7 @@ export class RestoreOrchestrator {
|
|
|
1980
1999
|
const binding = {
|
|
1981
2000
|
...launchResult.binding,
|
|
1982
2001
|
// #875: the guidance file this seat's launch recorded; an older snapshot recorded none, so its file stays the rule's.
|
|
1983
|
-
guidanceFile:
|
|
2002
|
+
guidanceFile: replayCtx.guidanceFile ?? null,
|
|
1984
2003
|
// #3039: the resumed launch carries the guidance chosen above, so startup doesn't ask again and the adapter queues it.
|
|
1985
2004
|
...(launchGuidance ? { guidanceLaunchInstructions: true } : {}),
|
|
1986
2005
|
...(data.environmentBindingsByNode?.[node.id] ? { environmentRestore: data.environmentBindingsByNode[node.id] } : {}),
|
|
@@ -2051,7 +2070,9 @@ export class RestoreOrchestrator {
|
|
|
2051
2070
|
nodeId: node.id,
|
|
2052
2071
|
logicalId: node.logicalId,
|
|
2053
2072
|
status: "awaiting-decision",
|
|
2054
|
-
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)}.`,
|
|
2055
2076
|
};
|
|
2056
2077
|
}
|
|
2057
2078
|
const finalStatus = (isPodAware && resumeRequested)
|
|
@@ -2096,7 +2117,9 @@ export class RestoreOrchestrator {
|
|
|
2096
2117
|
nodeId: node.id,
|
|
2097
2118
|
logicalId: node.logicalId,
|
|
2098
2119
|
status: "awaiting-decision",
|
|
2099
|
-
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.`,
|
|
2100
2123
|
};
|
|
2101
2124
|
}
|
|
2102
2125
|
return {
|
|
@@ -2250,70 +2273,13 @@ export class RestoreOrchestrator {
|
|
|
2250
2273
|
* 3. Nothing attached (or a resolution error) → EXPLICIT "floor" — the locked
|
|
2251
2274
|
* minimum-floor absence contract; never undefined/env-delegation for managed seats.
|
|
2252
2275
|
*/
|
|
2253
|
-
/** 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. */
|
|
2254
2277
|
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";
|
|
2278
|
+
return resolvePersistedRestorePosture({
|
|
2279
|
+
getNodeProvenance: () => this.rigRepo.getNodePolicyProvenance(nodeId),
|
|
2280
|
+
getFallbackRigRef: () => this.rigRepo.getRigPermissionPolicy(rigId),
|
|
2281
|
+
getRigProvenance: () => this.rigRepo.getRigPolicyProvenance(rigId),
|
|
2282
|
+
});
|
|
2317
2283
|
}
|
|
2318
2284
|
/** The live seat's current model: `rig seat set-model` saves it on the live node after the snapshot, and every
|
|
2319
2285
|
* managed resume reads it at call time, so an older snapshot can't bring back the model it replaced. Found by logical
|
|
@@ -2461,6 +2427,8 @@ export class RestoreOrchestrator {
|
|
|
2461
2427
|
if (this.piResume?.canResume(resumeType, resumeToken)) {
|
|
2462
2428
|
const result = await this.piResume.resume(sessionName, resumeType, resumeToken, cwd, model, resolvedPosture, effort, ...(launchWrapper?.length ? [launchWrapper] : []));
|
|
2463
2429
|
if (result.ok) {
|
|
2430
|
+
for (const note of result.warnings ?? [])
|
|
2431
|
+
warnings?.push(`${sessionName}: ${note}`);
|
|
2464
2432
|
if (result.appliedLaunch && launchGeneration)
|
|
2465
2433
|
this.appliedLaunchStore.recordGeneration(launchGeneration, result.appliedLaunch);
|
|
2466
2434
|
return { kind: "resumed" };
|