@openrig/cli 0.7.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -8
- package/daemon/assets/claude-statusline-context.cjs +13 -3
- package/daemon/assets/guidance/openrig-seat-skills.md +1 -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/hooks/claude.json +11 -11
- package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +9 -8
- package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus-health.cjs +2 -2
- package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus.cjs +9 -6
- package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/precompact-hook.mjs +1 -1
- package/daemon/assets/plugins/openrig-core/skills/delegating-work/SKILL.md +1 -1
- package/daemon/assets/plugins/openrig-core/skills/forming-an-openrig-mental-model/SKILL.md +13 -8
- package/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md +19 -4
- package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +254 -52
- package/daemon/assets/skills/rigs/SKILL.md +42 -10
- package/daemon/context-packs/help/help.md +6 -0
- package/daemon/context-packs/help/manifest.yaml +1 -1
- package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
- package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +271 -38
- package/daemon/context-packs/reference/acp-agents.md +77 -0
- package/daemon/context-packs/reference/getting-started.md +145 -14
- package/daemon/context-packs/reference/manifest.yaml +6 -3
- package/daemon/context-packs/reference/rig-spec.md +175 -5
- package/daemon/context-packs/reference/whats-new.md +275 -113
- 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/manifest.yaml +1 -1
- package/daemon/context-packs/skills/claude-compaction-restore/scripts/precompact-hook.mjs +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 +19 -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/SKILL.md +18 -3
- package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-software-factory/references/worked-example.md +2 -2
- package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
- package/daemon/context-packs/skills/delegating-work/SKILL.md +1 -1
- package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
- package/daemon/context-packs/skills/forming-an-openrig-mental-model/SKILL.md +13 -8
- 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/SKILL.md +254 -52
- package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
- package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/agent-browser/LICENSE.txt +201 -0
- package/daemon/context-packs/skills/process/agent-browser/OPENRIG.md +13 -29
- package/daemon/context-packs/skills/process/agent-browser/SKILL.md +7 -7
- package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +3 -1
- package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/dogfood/LICENSE.txt +201 -0
- package/daemon/context-packs/skills/process/dogfood/SKILL.md +6 -2
- package/daemon/context-packs/skills/process/dogfood/manifest.yaml +3 -1
- package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/systematic-debugging/LICENSE.txt +21 -0
- package/daemon/context-packs/skills/process/systematic-debugging/SKILL.md +6 -2
- package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +3 -1
- package/daemon/context-packs/skills/process/test-driven-development/LICENSE.txt +21 -0
- package/daemon/context-packs/skills/process/test-driven-development/SKILL.md +5 -1
- package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +3 -1
- package/daemon/context-packs/skills/process/verification-before-completion/LICENSE.txt +21 -0
- package/daemon/context-packs/skills/process/verification-before-completion/SKILL.md +5 -1
- package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +3 -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 +4 -0
- package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +138 -41
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts +9 -1
- package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume.js +37 -11
- package/daemon/dist/adapters/claude-resume.js.map +1 -1
- package/daemon/dist/adapters/codex-resume.d.ts +10 -4
- package/daemon/dist/adapters/codex-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-resume.js +59 -14
- package/daemon/dist/adapters/codex-resume.js.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts +54 -16
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js +664 -117
- package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts +25 -2
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.js +122 -9
- package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/compose-services-adapter.d.ts +16 -0
- package/daemon/dist/adapters/compose-services-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/compose-services-adapter.js +46 -2
- package/daemon/dist/adapters/compose-services-adapter.js.map +1 -1
- package/daemon/dist/adapters/kernel-authority.d.ts +1 -1
- package/daemon/dist/adapters/kernel-authority.d.ts.map +1 -1
- package/daemon/dist/adapters/kernel-authority.js +13 -2
- package/daemon/dist/adapters/kernel-authority.js.map +1 -1
- package/daemon/dist/adapters/pi-runner.d.ts +11 -0
- package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner.js +81 -31
- package/daemon/dist/adapters/pi-runner.js.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.js +9 -6
- package/daemon/dist/adapters/pi-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/stub-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/stub-runtime-adapter.js +9 -5
- package/daemon/dist/adapters/stub-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/tmux-server.d.ts +3 -0
- package/daemon/dist/adapters/tmux-server.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-server.js +11 -2
- package/daemon/dist/adapters/tmux-server.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +53 -4
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +225 -40
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/adapters/yolo-mode.d.ts +7 -0
- package/daemon/dist/adapters/yolo-mode.d.ts.map +1 -1
- package/daemon/dist/adapters/yolo-mode.js +8 -0
- package/daemon/dist/adapters/yolo-mode.js.map +1 -1
- package/daemon/dist/attention-surface.d.ts +14 -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/codex-auth-surface.d.ts +2 -0
- package/daemon/dist/codex-auth-surface.d.ts.map +1 -0
- package/daemon/dist/codex-auth-surface.js +2 -0
- package/daemon/dist/codex-auth-surface.js.map +1 -0
- package/daemon/dist/daemon-db-path.d.ts +6 -0
- package/daemon/dist/daemon-db-path.d.ts.map +1 -1
- package/daemon/dist/daemon-db-path.js +98 -1
- package/daemon/dist/daemon-db-path.js.map +1 -1
- package/daemon/dist/daemon-shutdown.d.ts.map +1 -1
- package/daemon/dist/daemon-shutdown.js +4 -2
- 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 +28 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrations/124_context_usage_watchdog_units.d.ts +4 -0
- package/daemon/dist/db/migrations/124_context_usage_watchdog_units.d.ts.map +1 -0
- package/daemon/dist/db/migrations/124_context_usage_watchdog_units.js +9 -0
- package/daemon/dist/db/migrations/124_context_usage_watchdog_units.js.map +1 -0
- package/daemon/dist/db/migrations/125_node_advisor.d.ts +3 -0
- package/daemon/dist/db/migrations/125_node_advisor.d.ts.map +1 -0
- package/daemon/dist/db/migrations/125_node_advisor.js +8 -0
- package/daemon/dist/db/migrations/125_node_advisor.js.map +1 -0
- package/daemon/dist/db/migrations/127_operation_correlation.d.ts +3 -0
- package/daemon/dist/db/migrations/127_operation_correlation.d.ts.map +1 -0
- package/daemon/dist/db/migrations/127_operation_correlation.js +10 -0
- package/daemon/dist/db/migrations/127_operation_correlation.js.map +1 -0
- package/daemon/dist/db/migrations/128_terminal_policy.d.ts +3 -0
- package/daemon/dist/db/migrations/128_terminal_policy.d.ts.map +1 -0
- package/daemon/dist/db/migrations/128_terminal_policy.js +37 -0
- package/daemon/dist/db/migrations/128_terminal_policy.js.map +1 -0
- package/daemon/dist/db/migrations/129_stream_dispositions.d.ts +10 -0
- package/daemon/dist/db/migrations/129_stream_dispositions.d.ts.map +1 -0
- package/daemon/dist/db/migrations/129_stream_dispositions.js +35 -0
- package/daemon/dist/db/migrations/129_stream_dispositions.js.map +1 -0
- package/daemon/dist/db/migrations/130_stream_subscriptions.d.ts +11 -0
- package/daemon/dist/db/migrations/130_stream_subscriptions.d.ts.map +1 -0
- package/daemon/dist/db/migrations/130_stream_subscriptions.js +33 -0
- package/daemon/dist/db/migrations/130_stream_subscriptions.js.map +1 -0
- package/daemon/dist/db/migrations/131_stream_retention_floor.d.ts +8 -0
- package/daemon/dist/db/migrations/131_stream_retention_floor.d.ts.map +1 -0
- package/daemon/dist/db/migrations/131_stream_retention_floor.js +20 -0
- package/daemon/dist/db/migrations/131_stream_retention_floor.js.map +1 -0
- package/daemon/dist/db/migrations/132_seat_runtime_switches.d.ts +10 -0
- package/daemon/dist/db/migrations/132_seat_runtime_switches.d.ts.map +1 -0
- package/daemon/dist/db/migrations/132_seat_runtime_switches.js +46 -0
- package/daemon/dist/db/migrations/132_seat_runtime_switches.js.map +1 -0
- package/daemon/dist/db/migrations/133_stream_reader_actions.d.ts +8 -0
- package/daemon/dist/db/migrations/133_stream_reader_actions.d.ts.map +1 -0
- package/daemon/dist/db/migrations/133_stream_reader_actions.js +25 -0
- package/daemon/dist/db/migrations/133_stream_reader_actions.js.map +1 -0
- package/daemon/dist/db/migrations/134_claude_token_readings.d.ts +3 -0
- package/daemon/dist/db/migrations/134_claude_token_readings.d.ts.map +1 -0
- package/daemon/dist/db/migrations/134_claude_token_readings.js +21 -0
- package/daemon/dist/db/migrations/134_claude_token_readings.js.map +1 -0
- package/daemon/dist/db/migrations/135_seat_identity_process_evidence.d.ts +3 -0
- package/daemon/dist/db/migrations/135_seat_identity_process_evidence.d.ts.map +1 -0
- package/daemon/dist/db/migrations/135_seat_identity_process_evidence.js +16 -0
- package/daemon/dist/db/migrations/135_seat_identity_process_evidence.js.map +1 -0
- package/daemon/dist/db/migrations/136_node_launch_recipe.d.ts +9 -0
- package/daemon/dist/db/migrations/136_node_launch_recipe.d.ts.map +1 -0
- package/daemon/dist/db/migrations/136_node_launch_recipe.js +11 -0
- package/daemon/dist/db/migrations/136_node_launch_recipe.js.map +1 -0
- package/daemon/dist/db/migrations/138_node_claude_token_ref.d.ts +3 -0
- package/daemon/dist/db/migrations/138_node_claude_token_ref.d.ts.map +1 -0
- package/daemon/dist/db/migrations/138_node_claude_token_ref.js +8 -0
- package/daemon/dist/db/migrations/138_node_claude_token_ref.js.map +1 -0
- package/daemon/dist/db/migrations/139_node_claude_permissions.d.ts +3 -0
- package/daemon/dist/db/migrations/139_node_claude_permissions.d.ts.map +1 -0
- package/daemon/dist/db/migrations/139_node_claude_permissions.js +5 -0
- package/daemon/dist/db/migrations/139_node_claude_permissions.js.map +1 -0
- package/daemon/dist/domain/active-occupant.d.ts +3 -0
- package/daemon/dist/domain/active-occupant.d.ts.map +1 -1
- package/daemon/dist/domain/active-occupant.js +6 -2
- package/daemon/dist/domain/active-occupant.js.map +1 -1
- package/daemon/dist/domain/activity-taxonomy.d.ts +3 -0
- package/daemon/dist/domain/activity-taxonomy.d.ts.map +1 -1
- package/daemon/dist/domain/activity-taxonomy.js.map +1 -1
- package/daemon/dist/domain/agent-activity-store.d.ts +6 -2
- package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
- package/daemon/dist/domain/agent-activity-store.js +13 -4
- package/daemon/dist/domain/agent-activity-store.js.map +1 -1
- package/daemon/dist/domain/agent-manifest.d.ts.map +1 -1
- package/daemon/dist/domain/agent-manifest.js +14 -2
- package/daemon/dist/domain/agent-manifest.js.map +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.d.ts +3 -0
- package/daemon/dist/domain/bootstrap-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.js +35 -6
- package/daemon/dist/domain/bootstrap-orchestrator.js.map +1 -1
- package/daemon/dist/domain/builtin-startup-files.d.ts.map +1 -1
- package/daemon/dist/domain/builtin-startup-files.js +2 -0
- package/daemon/dist/domain/builtin-startup-files.js.map +1 -1
- package/daemon/dist/domain/bundle-behaviour.d.ts.map +1 -1
- package/daemon/dist/domain/bundle-behaviour.js +28 -1
- package/daemon/dist/domain/bundle-behaviour.js.map +1 -1
- package/daemon/dist/domain/claim-service.d.ts +19 -1
- package/daemon/dist/domain/claim-service.d.ts.map +1 -1
- package/daemon/dist/domain/claim-service.js +68 -20
- package/daemon/dist/domain/claim-service.js.map +1 -1
- package/daemon/dist/domain/classification-attempts.d.ts +4 -1
- package/daemon/dist/domain/classification-attempts.d.ts.map +1 -1
- package/daemon/dist/domain/classification-attempts.js +10 -1
- package/daemon/dist/domain/classification-attempts.js.map +1 -1
- package/daemon/dist/domain/classification-sources.d.ts +38 -0
- package/daemon/dist/domain/classification-sources.d.ts.map +1 -1
- package/daemon/dist/domain/classification-sources.js +24 -1
- package/daemon/dist/domain/classification-sources.js.map +1 -1
- package/daemon/dist/domain/claude-activity-hooks.d.ts +2 -2
- package/daemon/dist/domain/claude-activity-hooks.d.ts.map +1 -1
- package/daemon/dist/domain/claude-activity-hooks.js +8 -7
- package/daemon/dist/domain/claude-activity-hooks.js.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts +133 -8
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.js +513 -64
- package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
- package/daemon/dist/domain/claude-core-plugin-env.d.ts +4 -1
- package/daemon/dist/domain/claude-core-plugin-env.d.ts.map +1 -1
- package/daemon/dist/domain/claude-core-plugin-env.js +23 -12
- package/daemon/dist/domain/claude-core-plugin-env.js.map +1 -1
- package/daemon/dist/domain/claude-credential-precedence.d.ts +33 -0
- package/daemon/dist/domain/claude-credential-precedence.d.ts.map +1 -0
- package/daemon/dist/domain/claude-credential-precedence.js +62 -0
- package/daemon/dist/domain/claude-credential-precedence.js.map +1 -0
- package/daemon/dist/domain/claude-managed-launch.d.ts +44 -5
- package/daemon/dist/domain/claude-managed-launch.d.ts.map +1 -1
- package/daemon/dist/domain/claude-managed-launch.js +159 -39
- package/daemon/dist/domain/claude-managed-launch.js.map +1 -1
- package/daemon/dist/domain/claude-permission-rules.d.ts +10 -0
- package/daemon/dist/domain/claude-permission-rules.d.ts.map +1 -0
- package/daemon/dist/domain/claude-permission-rules.js +41 -0
- package/daemon/dist/domain/claude-permission-rules.js.map +1 -0
- package/daemon/dist/domain/claude-seat-token.d.ts +30 -0
- package/daemon/dist/domain/claude-seat-token.d.ts.map +1 -0
- package/daemon/dist/domain/claude-seat-token.js +78 -0
- package/daemon/dist/domain/claude-seat-token.js.map +1 -0
- package/daemon/dist/domain/codex-auth.d.ts +148 -0
- package/daemon/dist/domain/codex-auth.d.ts.map +1 -0
- package/daemon/dist/domain/codex-auth.js +506 -0
- package/daemon/dist/domain/codex-auth.js.map +1 -0
- package/daemon/dist/domain/codex-daemon-support.d.ts +2 -1
- package/daemon/dist/domain/codex-daemon-support.d.ts.map +1 -1
- package/daemon/dist/domain/codex-daemon-support.js +3 -2
- package/daemon/dist/domain/codex-daemon-support.js.map +1 -1
- package/daemon/dist/domain/codex-git-add-dirs.d.ts +1 -1
- package/daemon/dist/domain/codex-git-add-dirs.d.ts.map +1 -1
- package/daemon/dist/domain/codex-network-default.d.ts +2 -1
- package/daemon/dist/domain/codex-network-default.d.ts.map +1 -1
- package/daemon/dist/domain/codex-network-default.js +3 -2
- package/daemon/dist/domain/codex-network-default.js.map +1 -1
- package/daemon/dist/domain/codex-owned-plugin-trust.d.ts +26 -0
- package/daemon/dist/domain/codex-owned-plugin-trust.d.ts.map +1 -0
- package/daemon/dist/domain/codex-owned-plugin-trust.js +187 -0
- package/daemon/dist/domain/codex-owned-plugin-trust.js.map +1 -0
- package/daemon/dist/domain/codex-rebuild-permissions.d.ts +54 -0
- package/daemon/dist/domain/codex-rebuild-permissions.d.ts.map +1 -0
- package/daemon/dist/domain/codex-rebuild-permissions.js +134 -0
- package/daemon/dist/domain/codex-rebuild-permissions.js.map +1 -0
- package/daemon/dist/domain/codex-team-workspace.d.ts +5 -0
- package/daemon/dist/domain/codex-team-workspace.d.ts.map +1 -1
- package/daemon/dist/domain/codex-team-workspace.js +37 -0
- package/daemon/dist/domain/codex-team-workspace.js.map +1 -1
- package/daemon/dist/domain/community-harness-first-input.d.ts +7 -0
- package/daemon/dist/domain/community-harness-first-input.d.ts.map +1 -0
- package/daemon/dist/domain/community-harness-first-input.js +16 -0
- package/daemon/dist/domain/community-harness-first-input.js.map +1 -0
- package/daemon/dist/domain/community-harness-launch-result.d.ts +33 -0
- package/daemon/dist/domain/community-harness-launch-result.d.ts.map +1 -0
- package/daemon/dist/domain/community-harness-launch-result.js +93 -0
- package/daemon/dist/domain/community-harness-launch-result.js.map +1 -0
- package/daemon/dist/domain/community-harness-presets.d.ts +29 -2
- package/daemon/dist/domain/community-harness-presets.d.ts.map +1 -1
- package/daemon/dist/domain/community-harness-presets.js +51 -5
- package/daemon/dist/domain/community-harness-presets.js.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts +6 -0
- package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -0
- package/daemon/dist/domain/compaction-restore-notice.js +27 -0
- package/daemon/dist/domain/compaction-restore-notice.js.map +1 -0
- package/daemon/dist/domain/composer-prompts.d.ts +5 -2
- package/daemon/dist/domain/composer-prompts.d.ts.map +1 -1
- package/daemon/dist/domain/composer-prompts.js +2 -2
- package/daemon/dist/domain/composer-prompts.js.map +1 -1
- package/daemon/dist/domain/context-monitor.d.ts.map +1 -1
- package/daemon/dist/domain/context-monitor.js +2 -1
- package/daemon/dist/domain/context-monitor.js.map +1 -1
- package/daemon/dist/domain/context-packs/seat-recap-store.d.ts +14 -0
- package/daemon/dist/domain/context-packs/seat-recap-store.d.ts.map +1 -1
- package/daemon/dist/domain/context-packs/seat-recap-store.js +57 -1
- package/daemon/dist/domain/context-packs/seat-recap-store.js.map +1 -1
- package/daemon/dist/domain/context-usage-store.d.ts.map +1 -1
- package/daemon/dist/domain/context-usage-store.js +6 -1
- package/daemon/dist/domain/context-usage-store.js.map +1 -1
- package/daemon/dist/domain/continuity-policy-materializer.d.ts +1 -0
- package/daemon/dist/domain/continuity-policy-materializer.d.ts.map +1 -1
- package/daemon/dist/domain/continuity-policy-materializer.js +2 -0
- package/daemon/dist/domain/continuity-policy-materializer.js.map +1 -1
- package/daemon/dist/domain/current-work.d.ts +15 -4
- package/daemon/dist/domain/current-work.d.ts.map +1 -1
- package/daemon/dist/domain/current-work.js +26 -13
- package/daemon/dist/domain/current-work.js.map +1 -1
- package/daemon/dist/domain/draft-aware-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/draft-aware-delivery.js +1 -1
- package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
- package/daemon/dist/domain/execution-view.d.ts.map +1 -1
- package/daemon/dist/domain/execution-view.js +12 -8
- package/daemon/dist/domain/execution-view.js.map +1 -1
- package/daemon/dist/domain/footprint-choice.d.ts +41 -0
- package/daemon/dist/domain/footprint-choice.d.ts.map +1 -0
- package/daemon/dist/domain/footprint-choice.js +42 -0
- package/daemon/dist/domain/footprint-choice.js.map +1 -0
- package/daemon/dist/domain/gateway/delivery-rules-engine.d.ts +3 -0
- package/daemon/dist/domain/gateway/delivery-rules-engine.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/delivery-rules-engine.js +1 -1
- package/daemon/dist/domain/gateway/delivery-rules-engine.js.map +1 -1
- package/daemon/dist/domain/gateway/human-registry.d.ts +32 -0
- package/daemon/dist/domain/gateway/human-registry.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/human-registry.js +71 -4
- package/daemon/dist/domain/gateway/human-registry.js.map +1 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.js +3 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.d.ts +1 -0
- package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.js +58 -9
- package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.d.ts +6 -1
- package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.js +15 -6
- package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts +7 -0
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.js +14 -2
- package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +1 -3
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.js +22 -22
- 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 +8 -7
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
- package/daemon/dist/domain/generated-file-hygiene.js +1 -1
- package/daemon/dist/domain/generated-file-hygiene.js.map +1 -1
- package/daemon/dist/domain/graph-projection.d.ts +3 -0
- package/daemon/dist/domain/graph-projection.d.ts.map +1 -1
- package/daemon/dist/domain/graph-projection.js +2 -0
- package/daemon/dist/domain/graph-projection.js.map +1 -1
- package/daemon/dist/domain/health-diagnosis.d.ts.map +1 -1
- package/daemon/dist/domain/health-diagnosis.js +14 -6
- package/daemon/dist/domain/health-diagnosis.js.map +1 -1
- package/daemon/dist/domain/hot-potato-enforcer.d.ts +1 -1
- package/daemon/dist/domain/human-questions.d.ts +2 -0
- package/daemon/dist/domain/human-questions.d.ts.map +1 -1
- package/daemon/dist/domain/human-questions.js +5 -0
- package/daemon/dist/domain/human-questions.js.map +1 -1
- package/daemon/dist/domain/kernel-boot.d.ts +5 -1
- package/daemon/dist/domain/kernel-boot.d.ts.map +1 -1
- package/daemon/dist/domain/kernel-boot.js +34 -4
- package/daemon/dist/domain/kernel-boot.js.map +1 -1
- package/daemon/dist/domain/managed-blocks.d.ts +32 -1
- package/daemon/dist/domain/managed-blocks.d.ts.map +1 -1
- package/daemon/dist/domain/managed-blocks.js +109 -11
- package/daemon/dist/domain/managed-blocks.js.map +1 -1
- package/daemon/dist/domain/managed-restore-read-access.d.ts +20 -0
- package/daemon/dist/domain/managed-restore-read-access.d.ts.map +1 -0
- package/daemon/dist/domain/managed-restore-read-access.js +77 -0
- package/daemon/dist/domain/managed-restore-read-access.js.map +1 -0
- package/daemon/dist/domain/markdown-address.d.ts.map +1 -1
- package/daemon/dist/domain/markdown-address.js +21 -2
- package/daemon/dist/domain/markdown-address.js.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-action-log.d.ts +1 -1
- package/daemon/dist/domain/mission-control/mission-control-action-log.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-action-log.js +3 -0
- package/daemon/dist/domain/mission-control/mission-control-action-log.js.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts +24 -3
- package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js +121 -8
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
- package/daemon/dist/domain/model-divergence/current-model-reader.d.ts +2 -0
- package/daemon/dist/domain/model-divergence/current-model-reader.d.ts.map +1 -1
- package/daemon/dist/domain/model-divergence/current-model-reader.js +7 -0
- package/daemon/dist/domain/model-divergence/current-model-reader.js.map +1 -1
- package/daemon/dist/domain/model-divergence/model-divergence-monitor.d.ts +10 -1
- package/daemon/dist/domain/model-divergence/model-divergence-monitor.d.ts.map +1 -1
- package/daemon/dist/domain/model-divergence/model-divergence-monitor.js +42 -6
- package/daemon/dist/domain/model-divergence/model-divergence-monitor.js.map +1 -1
- package/daemon/dist/domain/native-permission-store.d.ts +7 -2
- package/daemon/dist/domain/native-permission-store.d.ts.map +1 -1
- package/daemon/dist/domain/native-permission-store.js +13 -8
- package/daemon/dist/domain/native-permission-store.js.map +1 -1
- package/daemon/dist/domain/native-process-lineage.d.ts +3 -0
- package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
- package/daemon/dist/domain/native-process-lineage.js +60 -2
- package/daemon/dist/domain/native-process-lineage.js.map +1 -1
- package/daemon/dist/domain/native-resume-probe-evidence.d.ts +19 -0
- package/daemon/dist/domain/native-resume-probe-evidence.d.ts.map +1 -0
- package/daemon/dist/domain/native-resume-probe-evidence.js +37 -0
- package/daemon/dist/domain/native-resume-probe-evidence.js.map +1 -0
- package/daemon/dist/domain/native-resume-probe.d.ts +9 -0
- package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +174 -44
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/node-inventory.d.ts +53 -1
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +137 -45
- package/daemon/dist/domain/node-inventory.js.map +1 -1
- package/daemon/dist/domain/node-launcher.d.ts +11 -0
- package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/node-launcher.js +49 -8
- package/daemon/dist/domain/node-launcher.js.map +1 -1
- package/daemon/dist/domain/occupant-invalidator.d.ts +16 -4
- package/daemon/dist/domain/occupant-invalidator.d.ts.map +1 -1
- package/daemon/dist/domain/occupant-invalidator.js +25 -5
- package/daemon/dist/domain/occupant-invalidator.js.map +1 -1
- package/daemon/dist/domain/operation-correlation.d.ts +78 -0
- package/daemon/dist/domain/operation-correlation.d.ts.map +1 -0
- package/daemon/dist/domain/operation-correlation.js +54 -0
- package/daemon/dist/domain/operation-correlation.js.map +1 -0
- package/daemon/dist/domain/parent-session-env.d.ts +1 -1
- package/daemon/dist/domain/parent-session-env.d.ts.map +1 -1
- package/daemon/dist/domain/parent-session-env.js +3 -1
- package/daemon/dist/domain/parent-session-env.js.map +1 -1
- package/daemon/dist/domain/parked-query.d.ts +3 -0
- package/daemon/dist/domain/parked-query.d.ts.map +1 -1
- package/daemon/dist/domain/parked-query.js +1 -0
- package/daemon/dist/domain/parked-query.js.map +1 -1
- package/daemon/dist/domain/permission-account.d.ts +31 -0
- package/daemon/dist/domain/permission-account.d.ts.map +1 -0
- package/daemon/dist/domain/permission-account.js +116 -0
- package/daemon/dist/domain/permission-account.js.map +1 -0
- package/daemon/dist/domain/permission-drift.d.ts.map +1 -1
- package/daemon/dist/domain/permission-drift.js +11 -7
- package/daemon/dist/domain/permission-drift.js.map +1 -1
- package/daemon/dist/domain/pod-bundle-assembler.d.ts +1 -0
- package/daemon/dist/domain/pod-bundle-assembler.d.ts.map +1 -1
- package/daemon/dist/domain/pod-bundle-assembler.js +25 -0
- package/daemon/dist/domain/pod-bundle-assembler.js.map +1 -1
- package/daemon/dist/domain/policies/artifact-pool-helpers.d.ts +7 -0
- package/daemon/dist/domain/policies/artifact-pool-helpers.d.ts.map +1 -1
- package/daemon/dist/domain/policies/artifact-pool-helpers.js +8 -4
- package/daemon/dist/domain/policies/artifact-pool-helpers.js.map +1 -1
- package/daemon/dist/domain/policies/context-usage-threshold.d.ts.map +1 -1
- package/daemon/dist/domain/policies/context-usage-threshold.js +109 -21
- package/daemon/dist/domain/policies/context-usage-threshold.js.map +1 -1
- package/daemon/dist/domain/policies/edge-artifact-required.d.ts +6 -1
- package/daemon/dist/domain/policies/edge-artifact-required.d.ts.map +1 -1
- package/daemon/dist/domain/policies/edge-artifact-required.js +18 -13
- package/daemon/dist/domain/policies/edge-artifact-required.js.map +1 -1
- package/daemon/dist/domain/policies/mode-scheduled-end.d.ts +2 -0
- package/daemon/dist/domain/policies/mode-scheduled-end.d.ts.map +1 -1
- package/daemon/dist/domain/policies/mode-scheduled-end.js +5 -1
- package/daemon/dist/domain/policies/mode-scheduled-end.js.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts +8 -0
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js +15 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
- package/daemon/dist/domain/policies/periodic-reminder.d.ts +10 -0
- package/daemon/dist/domain/policies/periodic-reminder.d.ts.map +1 -1
- package/daemon/dist/domain/policies/periodic-reminder.js +11 -6
- package/daemon/dist/domain/policies/periodic-reminder.js.map +1 -1
- package/daemon/dist/domain/policies/types.d.ts +25 -0
- package/daemon/dist/domain/policies/types.d.ts.map +1 -1
- package/daemon/dist/domain/policies/workflow-keepalive.d.ts +6 -1
- package/daemon/dist/domain/policies/workflow-keepalive.d.ts.map +1 -1
- package/daemon/dist/domain/policies/workflow-keepalive.js +11 -5
- package/daemon/dist/domain/policies/workflow-keepalive.js.map +1 -1
- package/daemon/dist/domain/profile-resolution-worker.d.ts +7 -0
- package/daemon/dist/domain/profile-resolution-worker.d.ts.map +1 -0
- package/daemon/dist/domain/profile-resolution-worker.js +83 -0
- package/daemon/dist/domain/profile-resolution-worker.js.map +1 -0
- package/daemon/dist/domain/profile-resolver.d.ts +6 -0
- package/daemon/dist/domain/profile-resolver.d.ts.map +1 -1
- package/daemon/dist/domain/profile-resolver.js +14 -2
- package/daemon/dist/domain/profile-resolver.js.map +1 -1
- package/daemon/dist/domain/project-classifier.d.ts +7 -0
- package/daemon/dist/domain/project-classifier.d.ts.map +1 -1
- package/daemon/dist/domain/project-classifier.js +26 -0
- package/daemon/dist/domain/project-classifier.js.map +1 -1
- package/daemon/dist/domain/proof/judgments.d.ts +7 -4
- package/daemon/dist/domain/proof/judgments.d.ts.map +1 -1
- package/daemon/dist/domain/proof/judgments.js +12 -8
- package/daemon/dist/domain/proof/judgments.js.map +1 -1
- package/daemon/dist/domain/proof/source-watch.d.ts +6 -1
- package/daemon/dist/domain/proof/source-watch.d.ts.map +1 -1
- package/daemon/dist/domain/proof/source-watch.js +241 -35
- package/daemon/dist/domain/proof/source-watch.js.map +1 -1
- package/daemon/dist/domain/provider/claude-auth-status-reader.d.ts +12 -0
- package/daemon/dist/domain/provider/claude-auth-status-reader.d.ts.map +1 -1
- package/daemon/dist/domain/provider/claude-auth-status-reader.js +4 -4
- package/daemon/dist/domain/provider/claude-auth-status-reader.js.map +1 -1
- package/daemon/dist/domain/provider/claude-seat-switch.d.ts +32 -0
- package/daemon/dist/domain/provider/claude-seat-switch.d.ts.map +1 -0
- package/daemon/dist/domain/provider/claude-seat-switch.js +136 -0
- package/daemon/dist/domain/provider/claude-seat-switch.js.map +1 -0
- package/daemon/dist/domain/provider/claude-token-usage.d.ts +34 -0
- package/daemon/dist/domain/provider/claude-token-usage.d.ts.map +1 -0
- package/daemon/dist/domain/provider/claude-token-usage.js +168 -0
- package/daemon/dist/domain/provider/claude-token-usage.js.map +1 -0
- package/daemon/dist/domain/provider/provider-account-readings.d.ts +7 -6
- package/daemon/dist/domain/provider/provider-account-readings.d.ts.map +1 -1
- package/daemon/dist/domain/provider/provider-account-readings.js +31 -10
- package/daemon/dist/domain/provider/provider-account-readings.js.map +1 -1
- package/daemon/dist/domain/provider/provider-collect.d.ts +3 -0
- package/daemon/dist/domain/provider/provider-collect.d.ts.map +1 -1
- package/daemon/dist/domain/provider/provider-collect.js +3 -2
- package/daemon/dist/domain/provider/provider-collect.js.map +1 -1
- package/daemon/dist/domain/provider/provider-seat-accounts.d.ts +1 -1
- package/daemon/dist/domain/provider/provider-seat-accounts.d.ts.map +1 -1
- package/daemon/dist/domain/provider/provider-seat-accounts.js +29 -2
- package/daemon/dist/domain/provider/provider-seat-accounts.js.map +1 -1
- package/daemon/dist/domain/provider/provider-service-impl.d.ts +38 -4
- package/daemon/dist/domain/provider/provider-service-impl.d.ts.map +1 -1
- package/daemon/dist/domain/provider/provider-service-impl.js +147 -5
- package/daemon/dist/domain/provider/provider-service-impl.js.map +1 -1
- package/daemon/dist/domain/provider/provider-service.d.ts +109 -4
- package/daemon/dist/domain/provider/provider-service.d.ts.map +1 -1
- package/daemon/dist/domain/provider/provider-signals.d.ts +3 -0
- package/daemon/dist/domain/provider/provider-signals.d.ts.map +1 -1
- package/daemon/dist/domain/provider/provider-signals.js +7 -2
- package/daemon/dist/domain/provider/provider-signals.js.map +1 -1
- package/daemon/dist/domain/provider/provider-types.d.ts +61 -5
- package/daemon/dist/domain/provider/provider-types.d.ts.map +1 -1
- package/daemon/dist/domain/provider/reactive-tap.d.ts +4 -0
- package/daemon/dist/domain/provider/reactive-tap.d.ts.map +1 -1
- package/daemon/dist/domain/provider/reactive-tap.js +3 -0
- package/daemon/dist/domain/provider/reactive-tap.js.map +1 -1
- package/daemon/dist/domain/provider/subscription-move-report.d.ts +86 -0
- package/daemon/dist/domain/provider/subscription-move-report.d.ts.map +1 -0
- package/daemon/dist/domain/provider/subscription-move-report.js +227 -0
- package/daemon/dist/domain/provider/subscription-move-report.js.map +1 -0
- package/daemon/dist/domain/provider/usage-across-hosts.d.ts.map +1 -1
- package/daemon/dist/domain/provider/usage-across-hosts.js +8 -2
- package/daemon/dist/domain/provider/usage-across-hosts.js.map +1 -1
- package/daemon/dist/domain/provider/usage-windows.d.ts +2 -0
- package/daemon/dist/domain/provider/usage-windows.d.ts.map +1 -1
- package/daemon/dist/domain/provider/usage-windows.js +4 -0
- package/daemon/dist/domain/provider/usage-windows.js.map +1 -1
- package/daemon/dist/domain/ps-projection.d.ts +6 -35
- package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
- package/daemon/dist/domain/ps-projection.js +14 -55
- package/daemon/dist/domain/ps-projection.js.map +1 -1
- package/daemon/dist/domain/queue-owner.d.ts +15 -3
- package/daemon/dist/domain/queue-owner.d.ts.map +1 -1
- package/daemon/dist/domain/queue-owner.js +38 -5
- package/daemon/dist/domain/queue-owner.js.map +1 -1
- package/daemon/dist/domain/queue-pickup.d.ts +5 -2
- package/daemon/dist/domain/queue-pickup.d.ts.map +1 -1
- package/daemon/dist/domain/queue-pickup.js +19 -2
- package/daemon/dist/domain/queue-pickup.js.map +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +72 -24
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +346 -102
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-retention.d.ts +18 -0
- package/daemon/dist/domain/queue-retention.d.ts.map +1 -1
- package/daemon/dist/domain/queue-retention.js +79 -0
- package/daemon/dist/domain/queue-retention.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts +16 -3
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +87 -11
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/queue-wait-backoff.d.ts +3 -0
- package/daemon/dist/domain/queue-wait-backoff.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wait-backoff.js +9 -0
- package/daemon/dist/domain/queue-wait-backoff.js.map +1 -1
- package/daemon/dist/domain/queue-waiting.d.ts +2 -0
- package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
- package/daemon/dist/domain/queue-waiting.js.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +108 -34
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/queue-wake-repository.d.ts +3 -0
- package/daemon/dist/domain/queue-wake-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-repository.js +5 -1
- package/daemon/dist/domain/queue-wake-repository.js.map +1 -1
- package/daemon/dist/domain/reconciler.d.ts +23 -0
- package/daemon/dist/domain/reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/reconciler.js +44 -1
- package/daemon/dist/domain/reconciler.js.map +1 -1
- package/daemon/dist/domain/rehydrate-eligibility.d.ts.map +1 -1
- package/daemon/dist/domain/rehydrate-eligibility.js +2 -3
- package/daemon/dist/domain/rehydrate-eligibility.js.map +1 -1
- package/daemon/dist/domain/restore-guidance.d.ts +7 -0
- package/daemon/dist/domain/restore-guidance.d.ts.map +1 -1
- package/daemon/dist/domain/restore-guidance.js +20 -8
- package/daemon/dist/domain/restore-guidance.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +39 -2
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +266 -35
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/restore-plan-preview.d.ts +7 -2
- package/daemon/dist/domain/restore-plan-preview.d.ts.map +1 -1
- package/daemon/dist/domain/restore-plan-preview.js +28 -7
- package/daemon/dist/domain/restore-plan-preview.js.map +1 -1
- package/daemon/dist/domain/restore-policy.d.ts +4 -0
- package/daemon/dist/domain/restore-policy.d.ts.map +1 -1
- package/daemon/dist/domain/restore-policy.js +11 -0
- package/daemon/dist/domain/restore-policy.js.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.d.ts +11 -2
- package/daemon/dist/domain/resume-metadata-refresher.d.ts.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.js +32 -14
- package/daemon/dist/domain/resume-metadata-refresher.js.map +1 -1
- package/daemon/dist/domain/resume-token-capture.d.ts +5 -1
- package/daemon/dist/domain/resume-token-capture.d.ts.map +1 -1
- package/daemon/dist/domain/resume-token-capture.js +3 -1
- package/daemon/dist/domain/resume-token-capture.js.map +1 -1
- package/daemon/dist/domain/rig-edge-ops.d.ts +58 -0
- package/daemon/dist/domain/rig-edge-ops.d.ts.map +1 -0
- package/daemon/dist/domain/rig-edge-ops.js +113 -0
- package/daemon/dist/domain/rig-edge-ops.js.map +1 -0
- package/daemon/dist/domain/rig-expansion-service.d.ts.map +1 -1
- package/daemon/dist/domain/rig-expansion-service.js +1 -0
- package/daemon/dist/domain/rig-expansion-service.js.map +1 -1
- package/daemon/dist/domain/rig-name-override.d.ts +14 -0
- package/daemon/dist/domain/rig-name-override.d.ts.map +1 -0
- package/daemon/dist/domain/rig-name-override.js +38 -0
- package/daemon/dist/domain/rig-name-override.js.map +1 -0
- package/daemon/dist/domain/rig-repository.d.ts +28 -3
- package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
- package/daemon/dist/domain/rig-repository.js +261 -2
- package/daemon/dist/domain/rig-repository.js.map +1 -1
- package/daemon/dist/domain/rig-status-compose.d.ts +1 -1
- package/daemon/dist/domain/rig-status-compose.d.ts.map +1 -1
- package/daemon/dist/domain/rig-status-compose.js +3 -1
- package/daemon/dist/domain/rig-status-compose.js.map +1 -1
- package/daemon/dist/domain/rig-teardown.d.ts +20 -1
- package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
- package/daemon/dist/domain/rig-teardown.js +81 -9
- package/daemon/dist/domain/rig-teardown.js.map +1 -1
- package/daemon/dist/domain/rigspec-codec.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-codec.js +14 -0
- package/daemon/dist/domain/rigspec-codec.js.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.d.ts +3 -0
- package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.js +29 -0
- package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts +71 -3
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +424 -48
- package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-preflight.js +15 -2
- package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
- package/daemon/dist/domain/rigspec-schema.d.ts +3 -0
- package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-schema.js +90 -3
- package/daemon/dist/domain/rigspec-schema.js.map +1 -1
- package/daemon/dist/domain/running-name-guard.d.ts.map +1 -1
- package/daemon/dist/domain/running-name-guard.js +2 -1
- package/daemon/dist/domain/running-name-guard.js.map +1 -1
- package/daemon/dist/domain/runtime-adapter.d.ts +37 -2
- package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-adapter.js +5 -1
- package/daemon/dist/domain/runtime-adapter.js.map +1 -1
- package/daemon/dist/domain/runtime-switch-materials.d.ts +77 -0
- package/daemon/dist/domain/runtime-switch-materials.d.ts.map +1 -0
- package/daemon/dist/domain/runtime-switch-materials.js +253 -0
- package/daemon/dist/domain/runtime-switch-materials.js.map +1 -0
- package/daemon/dist/domain/scope/scope-approve.d.ts +1 -1
- package/daemon/dist/domain/scope/scope-view-projection.d.ts +6 -0
- package/daemon/dist/domain/scope/scope-view-projection.d.ts.map +1 -1
- package/daemon/dist/domain/scope/scope-view-projection.js +26 -10
- package/daemon/dist/domain/scope/scope-view-projection.js.map +1 -1
- package/daemon/dist/domain/seat-activity-service.d.ts +8 -2
- package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-activity-service.js +30 -5
- package/daemon/dist/domain/seat-activity-service.js.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.d.ts +27 -2
- package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.js +91 -8
- package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.d.ts +20 -1
- package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.js +66 -11
- package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
- package/daemon/dist/domain/seat-handover-service.d.ts +8 -0
- package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-handover-service.js +75 -5
- package/daemon/dist/domain/seat-handover-service.js.map +1 -1
- package/daemon/dist/domain/seat-identity-store.d.ts +11 -1
- package/daemon/dist/domain/seat-identity-store.d.ts.map +1 -1
- package/daemon/dist/domain/seat-identity-store.js +29 -4
- package/daemon/dist/domain/seat-identity-store.js.map +1 -1
- package/daemon/dist/domain/seat-launch-additions.d.ts +115 -0
- package/daemon/dist/domain/seat-launch-additions.d.ts.map +1 -0
- package/daemon/dist/domain/seat-launch-additions.js +439 -0
- package/daemon/dist/domain/seat-launch-additions.js.map +1 -0
- package/daemon/dist/domain/seat-launch-environment.d.ts +6 -1
- package/daemon/dist/domain/seat-launch-environment.d.ts.map +1 -1
- package/daemon/dist/domain/seat-launch-environment.js +9 -5
- package/daemon/dist/domain/seat-launch-environment.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +98 -7
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +261 -25
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.d.ts +9 -2
- package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.js +27 -7
- package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-dir.d.ts +17 -0
- package/daemon/dist/domain/seat-runtime-dir.d.ts.map +1 -0
- package/daemon/dist/domain/seat-runtime-dir.js +27 -0
- package/daemon/dist/domain/seat-runtime-dir.js.map +1 -0
- package/daemon/dist/domain/seat-runtime-home.d.ts +42 -0
- package/daemon/dist/domain/seat-runtime-home.d.ts.map +1 -0
- package/daemon/dist/domain/seat-runtime-home.js +89 -0
- package/daemon/dist/domain/seat-runtime-home.js.map +1 -0
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts +220 -0
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -0
- package/daemon/dist/domain/seat-runtime-switch-service.js +593 -0
- package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -0
- package/daemon/dist/domain/seat-skill-apply.d.ts +139 -0
- package/daemon/dist/domain/seat-skill-apply.d.ts.map +1 -0
- package/daemon/dist/domain/seat-skill-apply.js +221 -0
- package/daemon/dist/domain/seat-skill-apply.js.map +1 -0
- package/daemon/dist/domain/seat-skill-storage.d.ts +295 -0
- package/daemon/dist/domain/seat-skill-storage.d.ts.map +1 -0
- package/daemon/dist/domain/seat-skill-storage.js +850 -0
- package/daemon/dist/domain/seat-skill-storage.js.map +1 -0
- package/daemon/dist/domain/seat-skills-pointer.d.ts +5 -0
- package/daemon/dist/domain/seat-skills-pointer.d.ts.map +1 -0
- package/daemon/dist/domain/seat-skills-pointer.js +15 -0
- package/daemon/dist/domain/seat-skills-pointer.js.map +1 -0
- package/daemon/dist/domain/seat-status-service.d.ts +40 -0
- package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-status-service.js +59 -3
- package/daemon/dist/domain/seat-status-service.js.map +1 -1
- package/daemon/dist/domain/seat-structural-activity-service.d.ts +3 -0
- package/daemon/dist/domain/seat-structural-activity-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-structural-activity-service.js +6 -0
- package/daemon/dist/domain/seat-structural-activity-service.js.map +1 -1
- package/daemon/dist/domain/service-orchestrator.d.ts +7 -0
- package/daemon/dist/domain/service-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/service-orchestrator.js +4 -0
- package/daemon/dist/domain/service-orchestrator.js.map +1 -1
- package/daemon/dist/domain/session-registry.d.ts +4 -0
- package/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.js +13 -0
- package/daemon/dist/domain/session-registry.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +71 -22
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +376 -93
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/skill-catalog.d.ts +16 -0
- package/daemon/dist/domain/skill-catalog.d.ts.map +1 -1
- package/daemon/dist/domain/skill-catalog.js +15 -6
- package/daemon/dist/domain/skill-catalog.js.map +1 -1
- package/daemon/dist/domain/skill-discovery.d.ts +17 -2
- package/daemon/dist/domain/skill-discovery.d.ts.map +1 -1
- package/daemon/dist/domain/skill-discovery.js +44 -5
- package/daemon/dist/domain/skill-discovery.js.map +1 -1
- package/daemon/dist/domain/snapshot-capture.d.ts +4 -1
- package/daemon/dist/domain/snapshot-capture.d.ts.map +1 -1
- package/daemon/dist/domain/snapshot-capture.js +4 -1
- package/daemon/dist/domain/snapshot-capture.js.map +1 -1
- package/daemon/dist/domain/snapshot-repository.d.ts +4 -3
- package/daemon/dist/domain/snapshot-repository.d.ts.map +1 -1
- package/daemon/dist/domain/snapshot-repository.js +6 -5
- package/daemon/dist/domain/snapshot-repository.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts +29 -2
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +279 -25
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.d.ts +1 -0
- package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.js +1 -0
- package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
- package/daemon/dist/domain/stream-dispositions.d.ts +51 -0
- package/daemon/dist/domain/stream-dispositions.d.ts.map +1 -0
- package/daemon/dist/domain/stream-dispositions.js +112 -0
- package/daemon/dist/domain/stream-dispositions.js.map +1 -0
- package/daemon/dist/domain/stream-reader-actions.d.ts +49 -0
- package/daemon/dist/domain/stream-reader-actions.d.ts.map +1 -0
- package/daemon/dist/domain/stream-reader-actions.js +104 -0
- package/daemon/dist/domain/stream-reader-actions.js.map +1 -0
- package/daemon/dist/domain/stream-store.d.ts +22 -0
- package/daemon/dist/domain/stream-store.d.ts.map +1 -1
- package/daemon/dist/domain/stream-store.js +49 -6
- package/daemon/dist/domain/stream-store.js.map +1 -1
- package/daemon/dist/domain/stream-subscriptions.d.ts +94 -0
- package/daemon/dist/domain/stream-subscriptions.d.ts.map +1 -0
- package/daemon/dist/domain/stream-subscriptions.js +160 -0
- package/daemon/dist/domain/stream-subscriptions.js.map +1 -0
- package/daemon/dist/domain/successor-session-launcher.d.ts +41 -1
- package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.js +63 -5
- package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts +8 -28
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.js +117 -64
- package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-sessions.d.ts +9 -0
- package/daemon/dist/domain/terminal/herdr-sessions.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/herdr-sessions.js +23 -0
- package/daemon/dist/domain/terminal/herdr-sessions.js.map +1 -0
- package/daemon/dist/domain/terminal/rex-adapter.d.ts +42 -0
- package/daemon/dist/domain/terminal/rex-adapter.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/rex-adapter.js +228 -0
- package/daemon/dist/domain/terminal/rex-adapter.js.map +1 -0
- package/daemon/dist/domain/terminal/rex-layout.d.ts +26 -0
- package/daemon/dist/domain/terminal/rex-layout.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/rex-layout.js +21 -0
- package/daemon/dist/domain/terminal/rex-layout.js.map +1 -0
- package/daemon/dist/domain/terminal/rex-transport.d.ts +43 -0
- package/daemon/dist/domain/terminal/rex-transport.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/rex-transport.js +176 -0
- package/daemon/dist/domain/terminal/rex-transport.js.map +1 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts +15 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.d.ts +14 -5
- package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.js +51 -27
- package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
- package/daemon/dist/domain/terminal/tile-attach.d.ts +2 -0
- package/daemon/dist/domain/terminal/tile-attach.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/tile-attach.js +42 -0
- package/daemon/dist/domain/terminal/tile-attach.js.map +1 -0
- package/daemon/dist/domain/terminal/tile-layout.d.ts +32 -0
- package/daemon/dist/domain/terminal/tile-layout.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/tile-layout.js +36 -0
- package/daemon/dist/domain/terminal/tile-layout.js.map +1 -0
- package/daemon/dist/domain/terminal/view-composer.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/view-composer.js +11 -6
- package/daemon/dist/domain/terminal/view-composer.js.map +1 -1
- package/daemon/dist/domain/terminal-policy.d.ts +80 -0
- package/daemon/dist/domain/terminal-policy.d.ts.map +1 -0
- package/daemon/dist/domain/terminal-policy.js +117 -0
- package/daemon/dist/domain/terminal-policy.js.map +1 -0
- package/daemon/dist/domain/terminal-seat.d.ts +9 -0
- package/daemon/dist/domain/terminal-seat.d.ts.map +1 -0
- package/daemon/dist/domain/terminal-seat.js +37 -0
- package/daemon/dist/domain/terminal-seat.js.map +1 -0
- package/daemon/dist/domain/topology-converge.d.ts +25 -2
- package/daemon/dist/domain/topology-converge.d.ts.map +1 -1
- package/daemon/dist/domain/topology-converge.js +14 -1
- package/daemon/dist/domain/topology-converge.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +119 -2
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/urgent-line.d.ts +4 -0
- package/daemon/dist/domain/urgent-line.d.ts.map +1 -0
- package/daemon/dist/domain/urgent-line.js +7 -0
- package/daemon/dist/domain/urgent-line.js.map +1 -0
- package/daemon/dist/domain/usage-series.d.ts.map +1 -1
- package/daemon/dist/domain/usage-series.js +6 -2
- package/daemon/dist/domain/usage-series.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.js +2 -2
- package/daemon/dist/domain/user-settings/settings-browser.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts +3 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.js +73 -1
- package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
- package/daemon/dist/domain/view-projector.d.ts.map +1 -1
- package/daemon/dist/domain/view-projector.js +2 -1
- package/daemon/dist/domain/view-projector.js.map +1 -1
- package/daemon/dist/domain/wake-recovery.d.ts +16 -0
- package/daemon/dist/domain/wake-recovery.d.ts.map +1 -0
- package/daemon/dist/domain/wake-recovery.js +31 -0
- package/daemon/dist/domain/wake-recovery.js.map +1 -0
- package/daemon/dist/domain/watchdog-delivery.js +1 -1
- package/daemon/dist/domain/watchdog-delivery.js.map +1 -1
- package/daemon/dist/domain/watchdog-job-update.d.ts +21 -0
- package/daemon/dist/domain/watchdog-job-update.d.ts.map +1 -0
- package/daemon/dist/domain/watchdog-job-update.js +143 -0
- package/daemon/dist/domain/watchdog-job-update.js.map +1 -0
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts +63 -7
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-jobs-repository.js +190 -21
- package/daemon/dist/domain/watchdog-jobs-repository.js.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.d.ts +23 -0
- package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.js +46 -13
- 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 +7 -3
- package/daemon/dist/domain/workflow-exception-escalation.js.map +1 -1
- package/daemon/dist/domain/workflow-projector.d.ts +5 -2
- package/daemon/dist/domain/workflow-projector.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-projector.js +16 -7
- package/daemon/dist/domain/workflow-projector.js.map +1 -1
- package/daemon/dist/domain/workflow-runtime.d.ts +8 -2
- package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-runtime.js +30 -7
- package/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/daemon/dist/domain/workspace/project-read.d.ts +2 -0
- package/daemon/dist/domain/workspace/project-read.d.ts.map +1 -1
- package/daemon/dist/domain/workspace/project-read.js +10 -1
- package/daemon/dist/domain/workspace/project-read.js.map +1 -1
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +7 -1
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/lib/pane-envelope.d.ts +5 -0
- package/daemon/dist/lib/pane-envelope.d.ts.map +1 -1
- package/daemon/dist/lib/pane-envelope.js +8 -1
- package/daemon/dist/lib/pane-envelope.js.map +1 -1
- package/daemon/dist/router-line-surface.d.ts +2 -0
- package/daemon/dist/router-line-surface.d.ts.map +1 -0
- package/daemon/dist/router-line-surface.js +3 -0
- package/daemon/dist/router-line-surface.js.map +1 -0
- package/daemon/dist/routes/activity.d.ts.map +1 -1
- package/daemon/dist/routes/activity.js +15 -0
- package/daemon/dist/routes/activity.js.map +1 -1
- package/daemon/dist/routes/agent-images.d.ts.map +1 -1
- package/daemon/dist/routes/agent-images.js +19 -2
- package/daemon/dist/routes/agent-images.js.map +1 -1
- package/daemon/dist/routes/attention.d.ts.map +1 -1
- package/daemon/dist/routes/attention.js +30 -3
- package/daemon/dist/routes/attention.js.map +1 -1
- package/daemon/dist/routes/bootstrap-failure-response.js +2 -2
- package/daemon/dist/routes/bootstrap-failure-response.js.map +1 -1
- package/daemon/dist/routes/bundles.js +1 -1
- package/daemon/dist/routes/bundles.js.map +1 -1
- package/daemon/dist/routes/compaction.d.ts.map +1 -1
- package/daemon/dist/routes/compaction.js +31 -10
- package/daemon/dist/routes/compaction.js.map +1 -1
- package/daemon/dist/routes/context-packs.d.ts.map +1 -1
- package/daemon/dist/routes/context-packs.js +22 -0
- package/daemon/dist/routes/context-packs.js.map +1 -1
- package/daemon/dist/routes/hosts.d.ts.map +1 -1
- package/daemon/dist/routes/hosts.js +2 -0
- package/daemon/dist/routes/hosts.js.map +1 -1
- package/daemon/dist/routes/mission-control.d.ts.map +1 -1
- package/daemon/dist/routes/mission-control.js +7 -3
- package/daemon/dist/routes/mission-control.js.map +1 -1
- package/daemon/dist/routes/projects.d.ts.map +1 -1
- package/daemon/dist/routes/projects.js +59 -12
- package/daemon/dist/routes/projects.js.map +1 -1
- package/daemon/dist/routes/proof.js +2 -2
- package/daemon/dist/routes/proof.js.map +1 -1
- package/daemon/dist/routes/provider.d.ts.map +1 -1
- package/daemon/dist/routes/provider.js +170 -3
- package/daemon/dist/routes/provider.js.map +1 -1
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +154 -13
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/require-sender-identity.d.ts +10 -8
- package/daemon/dist/routes/require-sender-identity.d.ts.map +1 -1
- package/daemon/dist/routes/require-sender-identity.js +13 -11
- package/daemon/dist/routes/require-sender-identity.js.map +1 -1
- package/daemon/dist/routes/rigs.d.ts.map +1 -1
- package/daemon/dist/routes/rigs.js +77 -10
- package/daemon/dist/routes/rigs.js.map +1 -1
- package/daemon/dist/routes/rigspec.d.ts.map +1 -1
- package/daemon/dist/routes/rigspec.js +38 -12
- package/daemon/dist/routes/rigspec.js.map +1 -1
- package/daemon/dist/routes/runtime-switch-custody.d.ts +21 -0
- package/daemon/dist/routes/runtime-switch-custody.d.ts.map +1 -0
- package/daemon/dist/routes/runtime-switch-custody.js +55 -0
- package/daemon/dist/routes/runtime-switch-custody.js.map +1 -0
- package/daemon/dist/routes/scope-approve.js +2 -2
- package/daemon/dist/routes/scope-approve.js.map +1 -1
- package/daemon/dist/routes/scopes.d.ts.map +1 -1
- package/daemon/dist/routes/scopes.js +30 -7
- package/daemon/dist/routes/scopes.js.map +1 -1
- package/daemon/dist/routes/seat.d.ts.map +1 -1
- package/daemon/dist/routes/seat.js +109 -10
- package/daemon/dist/routes/seat.js.map +1 -1
- package/daemon/dist/routes/sessions.d.ts.map +1 -1
- package/daemon/dist/routes/sessions.js +14 -0
- package/daemon/dist/routes/sessions.js.map +1 -1
- package/daemon/dist/routes/skills.d.ts.map +1 -1
- package/daemon/dist/routes/skills.js +54 -1
- package/daemon/dist/routes/skills.js.map +1 -1
- package/daemon/dist/routes/startup.js +15 -5
- package/daemon/dist/routes/startup.js.map +1 -1
- package/daemon/dist/routes/stream.d.ts.map +1 -1
- package/daemon/dist/routes/stream.js +86 -14
- package/daemon/dist/routes/stream.js.map +1 -1
- package/daemon/dist/routes/terminal.d.ts.map +1 -1
- package/daemon/dist/routes/terminal.js +20 -11
- package/daemon/dist/routes/terminal.js.map +1 -1
- package/daemon/dist/routes/transport.d.ts.map +1 -1
- package/daemon/dist/routes/transport.js +55 -5
- package/daemon/dist/routes/transport.js.map +1 -1
- package/daemon/dist/routes/up.js +5 -0
- package/daemon/dist/routes/up.js.map +1 -1
- package/daemon/dist/routes/watchdog.d.ts +1 -0
- package/daemon/dist/routes/watchdog.d.ts.map +1 -1
- package/daemon/dist/routes/watchdog.js +52 -3
- package/daemon/dist/routes/watchdog.js.map +1 -1
- package/daemon/dist/routes/workflow.d.ts.map +1 -1
- package/daemon/dist/routes/workflow.js +24 -13
- package/daemon/dist/routes/workflow.js.map +1 -1
- package/daemon/dist/seat-recap-store-surface.d.ts +1 -1
- package/daemon/dist/seat-recap-store-surface.d.ts.map +1 -1
- package/daemon/dist/seat-recap-store-surface.js +1 -1
- package/daemon/dist/seat-recap-store-surface.js.map +1 -1
- package/daemon/dist/server.d.ts +4 -0
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +5 -1
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/skill-loadout-surface.d.ts +2 -0
- package/daemon/dist/skill-loadout-surface.d.ts.map +1 -1
- package/daemon/dist/skill-loadout-surface.js +2 -0
- package/daemon/dist/skill-loadout-surface.js.map +1 -1
- package/daemon/dist/startup.d.ts +5 -0
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +160 -49
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/dist/terminal/TerminalSessionBroker.d.ts.map +1 -1
- package/daemon/dist/terminal/TerminalSessionBroker.js +14 -2
- package/daemon/dist/terminal/TerminalSessionBroker.js.map +1 -1
- package/daemon/docs/reference/a2a-agents.md +343 -0
- package/daemon/docs/reference/acp-agents.md +77 -0
- package/daemon/docs/reference/agent-spec.md +7 -5
- package/daemon/docs/reference/agent-startup-guide.md +46 -0
- package/daemon/docs/reference/agent-state-taxonomy.md +27 -2
- package/daemon/docs/reference/checked-seat-stop.md +11 -0
- package/daemon/docs/reference/community-harness-examples/cursor/cursor.yaml +13 -0
- package/daemon/docs/reference/community-harness-examples/cursor/openrig-cursor-launch +68 -0
- package/daemon/docs/reference/community-harness-examples/hermes/config.yaml.example +18 -0
- package/daemon/docs/reference/community-harness-examples/hermes/hermes.yaml +12 -0
- package/daemon/docs/reference/community-harness-examples/hermes/openrig-hermes-launch +34 -0
- package/daemon/docs/reference/community-harness-examples/openclaw/openclaw-gateway.yaml +15 -0
- package/daemon/docs/reference/community-harness-examples/openclaw/openclaw.yaml +16 -0
- package/daemon/docs/reference/community-harness-examples/openclaw/openrig-openclaw-launch +70 -0
- package/daemon/docs/reference/community-harness-presets.md +194 -0
- package/daemon/docs/reference/getting-started.md +145 -14
- package/daemon/docs/reference/health-diagnosis.md +13 -0
- package/daemon/docs/reference/help.md +6 -0
- package/daemon/docs/reference/keeping-a-watch.md +21 -0
- package/daemon/docs/reference/operation-correlation.md +9 -0
- package/daemon/docs/reference/project-workspace.md +24 -0
- package/daemon/docs/reference/publishing-a-rig-bundle.md +11 -0
- package/daemon/docs/reference/quickstart.md +1 -1
- package/daemon/docs/reference/refocus-channel.md +6 -4
- package/daemon/docs/reference/rig-spec.md +175 -5
- package/daemon/docs/reference/sdlc-conventions.md +3 -1
- package/daemon/docs/reference/seat-delivery.md +89 -7
- package/daemon/docs/reference/slack-app-setup.md +4 -2
- package/daemon/docs/reference/stream-classifier-worker.md +28 -0
- package/daemon/docs/reference/telemetry.md +3 -0
- package/daemon/docs/reference/terminal-sessions.md +141 -0
- package/daemon/docs/reference/topology-naming.md +1 -1
- package/daemon/docs/reference/whats-new.md +275 -113
- package/daemon/specs/agents/shared/runtime/claude-settings.fragment.json +0 -3
- package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +19 -4
- package/daemon/specs/agents/shared/skills/core/openrig-herdr/SKILL.md +18 -3
- package/daemon/specs/agents/shared/skills/core/openrig-software-factory/references/worked-example.md +2 -2
- package/daemon/specs/agents/shared/skills/process/agent-browser/LICENSE.txt +201 -0
- package/daemon/specs/agents/shared/skills/process/agent-browser/OPENRIG.md +13 -29
- package/daemon/specs/agents/shared/skills/process/agent-browser/SKILL.md +7 -7
- package/daemon/specs/agents/shared/skills/process/dogfood/LICENSE.txt +201 -0
- package/daemon/specs/agents/shared/skills/process/dogfood/SKILL.md +6 -2
- package/daemon/specs/agents/shared/skills/process/systematic-debugging/LICENSE.txt +21 -0
- package/daemon/specs/agents/shared/skills/process/systematic-debugging/SKILL.md +6 -2
- package/daemon/specs/agents/shared/skills/process/test-driven-development/LICENSE.txt +21 -0
- package/daemon/specs/agents/shared/skills/process/test-driven-development/SKILL.md +5 -1
- package/daemon/specs/agents/shared/skills/process/verification-before-completion/LICENSE.txt +21 -0
- package/daemon/specs/agents/shared/skills/process/verification-before-completion/SKILL.md +5 -1
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +53 -10
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/startup/context.md +3 -0
- package/daemon/specs/rigs/launch/kernel/agents/queue/worker/guidance/role.md +12 -0
- package/daemon/specs/rigs/launch/kernel/agents/queue/worker/startup/context.md +3 -1
- package/daemon/specs/rigs/launch/secrets-manager/secrets-manager.compose.yaml +1 -1
- package/dist/acp/connector.d.ts +72 -0
- package/dist/acp/connector.d.ts.map +1 -0
- package/dist/acp/connector.js +218 -0
- package/dist/acp/connector.js.map +1 -0
- package/dist/acp/json-rpc-stdio.d.ts +53 -0
- package/dist/acp/json-rpc-stdio.d.ts.map +1 -0
- package/dist/acp/json-rpc-stdio.js +141 -0
- package/dist/acp/json-rpc-stdio.js.map +1 -0
- package/dist/acp/run-processes.d.ts +10 -0
- package/dist/acp/run-processes.d.ts.map +1 -0
- package/dist/acp/run-processes.js +33 -0
- package/dist/acp/run-processes.js.map +1 -0
- package/dist/build-info.js +3 -3
- package/dist/client.d.ts +15 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +30 -8
- package/dist/client.js.map +1 -1
- package/dist/commands/acp.d.ts +11 -0
- package/dist/commands/acp.d.ts.map +1 -0
- package/dist/commands/acp.js +198 -0
- package/dist/commands/acp.js.map +1 -0
- package/dist/commands/attach.js +1 -1
- package/dist/commands/attach.js.map +1 -1
- package/dist/commands/auth.d.ts +3 -0
- package/dist/commands/auth.d.ts.map +1 -1
- package/dist/commands/auth.js +41 -11
- package/dist/commands/auth.js.map +1 -1
- package/dist/commands/capture.d.ts.map +1 -1
- package/dist/commands/capture.js +8 -0
- package/dist/commands/capture.js.map +1 -1
- package/dist/commands/chatroom.d.ts.map +1 -1
- package/dist/commands/chatroom.js +6 -0
- package/dist/commands/chatroom.js.map +1 -1
- package/dist/commands/compact-plan.d.ts +2 -0
- package/dist/commands/compact-plan.d.ts.map +1 -1
- package/dist/commands/compact-plan.js +38 -3
- package/dist/commands/compact-plan.js.map +1 -1
- package/dist/commands/compact.js +1 -1
- package/dist/commands/compact.js.map +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +7 -1
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +29 -23
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/create.js +2 -2
- package/dist/commands/create.js.map +1 -1
- package/dist/commands/daemon.d.ts.map +1 -1
- package/dist/commands/daemon.js +2 -0
- package/dist/commands/daemon.js.map +1 -1
- package/dist/commands/down.d.ts +5 -1
- package/dist/commands/down.d.ts.map +1 -1
- package/dist/commands/down.js +93 -5
- package/dist/commands/down.js.map +1 -1
- package/dist/commands/edge.d.ts +4 -0
- package/dist/commands/edge.d.ts.map +1 -0
- package/dist/commands/edge.js +135 -0
- package/dist/commands/edge.js.map +1 -0
- package/dist/commands/env.d.ts.map +1 -1
- package/dist/commands/env.js +3 -0
- package/dist/commands/env.js.map +1 -1
- package/dist/commands/export.d.ts +1 -0
- package/dist/commands/export.d.ts.map +1 -1
- package/dist/commands/export.js +98 -0
- package/dist/commands/export.js.map +1 -1
- package/dist/commands/fork.d.ts.map +1 -1
- package/dist/commands/fork.js +19 -2
- package/dist/commands/fork.js.map +1 -1
- package/dist/commands/gateway.d.ts.map +1 -1
- package/dist/commands/gateway.js +2 -1
- package/dist/commands/gateway.js.map +1 -1
- package/dist/commands/grow.js +2 -2
- package/dist/commands/grow.js.map +1 -1
- package/dist/commands/health.js +1 -1
- package/dist/commands/health.js.map +1 -1
- package/dist/commands/launch.js +2 -2
- package/dist/commands/launch.js.map +1 -1
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/mcp.js +113 -1
- package/dist/commands/mcp.js.map +1 -1
- package/dist/commands/project-worker.d.ts +25 -1
- package/dist/commands/project-worker.d.ts.map +1 -1
- package/dist/commands/project-worker.js +9 -7
- package/dist/commands/project-worker.js.map +1 -1
- package/dist/commands/project.d.ts +2 -0
- package/dist/commands/project.d.ts.map +1 -1
- package/dist/commands/project.js +70 -2
- package/dist/commands/project.js.map +1 -1
- package/dist/commands/proof.d.ts.map +1 -1
- package/dist/commands/proof.js +33 -2
- package/dist/commands/proof.js.map +1 -1
- package/dist/commands/provider.d.ts.map +1 -1
- package/dist/commands/provider.js +273 -24
- package/dist/commands/provider.js.map +1 -1
- package/dist/commands/ps.d.ts +12 -1
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +50 -47
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue.d.ts +4 -2
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +178 -45
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/reconcile-session.d.ts.map +1 -1
- package/dist/commands/reconcile-session.js +6 -0
- package/dist/commands/reconcile-session.js.map +1 -1
- package/dist/commands/scope.d.ts.map +1 -1
- package/dist/commands/scope.js +5 -2
- package/dist/commands/scope.js.map +1 -1
- package/dist/commands/seat.d.ts +2 -0
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +336 -11
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +62 -55
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/setup.d.ts +24 -0
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/commands/setup.js +160 -7
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/skill.d.ts.map +1 -1
- package/dist/commands/skill.js +137 -3
- package/dist/commands/skill.js.map +1 -1
- package/dist/commands/start.d.ts.map +1 -1
- package/dist/commands/start.js +18 -25
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +4 -1
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/stream-outcome.d.ts +742 -0
- package/dist/commands/stream-outcome.d.ts.map +1 -0
- package/dist/commands/stream-outcome.js +118 -0
- package/dist/commands/stream-outcome.js.map +1 -0
- package/dist/commands/stream.d.ts.map +1 -1
- package/dist/commands/stream.js +86 -2
- package/dist/commands/stream.js.map +1 -1
- package/dist/commands/terminal.d.ts +5 -0
- package/dist/commands/terminal.d.ts.map +1 -1
- package/dist/commands/terminal.js +42 -11
- package/dist/commands/terminal.js.map +1 -1
- package/dist/commands/topology-default-agent.d.ts +2 -2
- package/dist/commands/topology-default-agent.d.ts.map +1 -1
- package/dist/commands/topology-default-agent.js +5 -3
- package/dist/commands/topology-default-agent.js.map +1 -1
- package/dist/commands/up.d.ts.map +1 -1
- package/dist/commands/up.js +82 -31
- package/dist/commands/up.js.map +1 -1
- package/dist/commands/watchdog.d.ts.map +1 -1
- package/dist/commands/watchdog.js +80 -5
- package/dist/commands/watchdog.js.map +1 -1
- package/dist/commands/workflow-errors.js +1 -1
- package/dist/commands/workflow-errors.js.map +1 -1
- package/dist/commands/workflow-render.js +4 -4
- package/dist/commands/workflow-render.js.map +1 -1
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +34 -15
- package/dist/commands/workflow.js.map +1 -1
- package/dist/config-store.d.ts +15 -1
- package/dist/config-store.d.ts.map +1 -1
- package/dist/config-store.js +86 -4
- package/dist/config-store.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts +4 -0
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +73 -21
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/decisions/decisions.d.ts +203 -0
- package/dist/decisions/decisions.d.ts.map +1 -0
- package/dist/decisions/decisions.js +374 -0
- package/dist/decisions/decisions.js.map +1 -0
- package/dist/decisions/stream-consumer.d.ts +255 -0
- package/dist/decisions/stream-consumer.d.ts.map +1 -0
- package/dist/decisions/stream-consumer.js +282 -0
- package/dist/decisions/stream-consumer.js.map +1 -0
- package/dist/decisions/templates.d.ts +8 -0
- package/dist/decisions/templates.d.ts.map +1 -0
- package/dist/decisions/templates.js +34 -0
- package/dist/decisions/templates.js.map +1 -0
- package/dist/fresh-seat-command.d.ts +18 -0
- package/dist/fresh-seat-command.d.ts.map +1 -0
- package/dist/fresh-seat-command.js +36 -0
- package/dist/fresh-seat-command.js.map +1 -0
- package/dist/front-door.d.ts +4 -0
- package/dist/front-door.d.ts.map +1 -1
- package/dist/front-door.js +8 -4
- package/dist/front-door.js.map +1 -1
- package/dist/host-bindings.d.ts.map +1 -1
- package/dist/host-bindings.js +16 -9
- package/dist/host-bindings.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/lazy-program.d.ts.map +1 -1
- package/dist/lazy-program.js +2 -0
- package/dist/lazy-program.js.map +1 -1
- package/dist/lib/codex-auth.d.ts +1 -147
- package/dist/lib/codex-auth.d.ts.map +1 -1
- package/dist/lib/codex-auth.js +2 -505
- package/dist/lib/codex-auth.js.map +1 -1
- package/dist/lib/run-on-host.d.ts +29 -0
- package/dist/lib/run-on-host.d.ts.map +1 -0
- package/dist/lib/run-on-host.js +69 -0
- package/dist/lib/run-on-host.js.map +1 -0
- package/dist/lib/seat-activity.d.ts +17 -0
- package/dist/lib/seat-activity.d.ts.map +1 -0
- package/dist/lib/seat-activity.js +29 -0
- package/dist/lib/seat-activity.js.map +1 -0
- package/dist/local-daemon-owner.d.ts +4 -0
- package/dist/local-daemon-owner.d.ts.map +1 -1
- package/dist/local-daemon-owner.js +1 -1
- package/dist/local-daemon-owner.js.map +1 -1
- package/dist/mcp-http.d.ts +42 -0
- package/dist/mcp-http.d.ts.map +1 -0
- package/dist/mcp-http.js +232 -0
- package/dist/mcp-http.js.map +1 -0
- package/dist/mcp-server.d.ts +30 -2
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +1163 -436
- package/dist/mcp-server.js.map +1 -1
- package/dist/seat-launch-additions-lines.d.ts +11 -0
- package/dist/seat-launch-additions-lines.d.ts.map +1 -0
- package/dist/seat-launch-additions-lines.js +14 -0
- package/dist/seat-launch-additions-lines.js.map +1 -0
- package/dist/terminal-window-rex.d.ts +6 -0
- package/dist/terminal-window-rex.d.ts.map +1 -0
- package/dist/terminal-window-rex.js +129 -0
- package/dist/terminal-window-rex.js.map +1 -0
- package/dist/terminal-window.d.ts +3 -1
- package/dist/terminal-window.d.ts.map +1 -1
- package/dist/terminal-window.js +68 -28
- package/dist/terminal-window.js.map +1 -1
- package/package.json +1 -1
- package/tui/dist/attention/attention-model.d.ts +3 -1
- package/tui/dist/attention/attention-model.d.ts.map +1 -1
- package/tui/dist/attention/attention-model.js +68 -1
- package/tui/dist/attention/attention-model.js.map +1 -1
- package/tui/dist/commands/registry.d.ts.map +1 -1
- package/tui/dist/commands/registry.js +3 -1
- package/tui/dist/commands/registry.js.map +1 -1
- package/tui/dist/config/config-model.d.ts.map +1 -1
- package/tui/dist/config/config-model.js +2 -0
- package/tui/dist/config/config-model.js.map +1 -1
- package/tui/dist/daemon-client.d.ts +22 -3
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js +9 -4
- package/tui/dist/daemon-client.js.map +1 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +13 -7
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/live.d.ts.map +1 -1
- package/tui/dist/live.js +6 -4
- package/tui/dist/live.js.map +1 -1
- package/tui/dist/main.js +15 -1
- package/tui/dist/main.js.map +1 -1
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +10 -3
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/terminals/open-window.d.ts +9 -5
- package/tui/dist/terminals/open-window.d.ts.map +1 -1
- package/tui/dist/terminals/open-window.js +29 -12
- package/tui/dist/terminals/open-window.js.map +1 -1
- package/tui/dist/terminals/terminal-model.d.ts +2 -1
- package/tui/dist/terminals/terminal-model.d.ts.map +1 -1
- package/tui/dist/terminals/terminal-model.js +5 -4
- package/tui/dist/terminals/terminal-model.js.map +1 -1
- package/tui/dist/topology/fixture.js +1 -1
- package/tui/dist/topology/fixture.js.map +1 -1
- package/tui/dist/topology/glyphs.js +1 -1
- package/tui/dist/topology/glyphs.js.map +1 -1
- package/tui/dist/topology/graph-types.d.ts +1 -0
- package/tui/dist/topology/graph-types.d.ts.map +1 -1
- package/tui/dist/types.d.ts +25 -0
- package/tui/dist/types.d.ts.map +1 -1
- package/tui/dist/usage/usage-model.d.ts.map +1 -1
- package/tui/dist/usage/usage-model.js +5 -3
- package/tui/dist/usage/usage-model.js.map +1 -1
- package/ui/dist/assets/{index-CVgod3Pm.js → index-DLP1ipGq.js} +92 -92
- package/ui/dist/index.html +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import nodePath from "node:path";
|
|
2
|
+
import { isDeepStrictEqual } from "node:util";
|
|
2
3
|
import { effortPrecedence, readSeatEffort } from "./seat-effort.js";
|
|
3
4
|
import { resolvePermissionPolicyAttachment, resolvePermissionPolicyRefValue, } from "./permission-policy/policy-ref.js";
|
|
4
5
|
import { checkRunningNameGuard, confirmStoppedGenerations, makeRunningSessionCounter } from "./running-name-guard.js";
|
|
@@ -81,6 +82,7 @@ export class RigInstantiator {
|
|
|
81
82
|
const txn = this.db.transaction(() => {
|
|
82
83
|
const rig = this.rigRepo.createRig(spec.name);
|
|
83
84
|
rigId = rig.id;
|
|
85
|
+
opts?.recordCreated?.(rig.id);
|
|
84
86
|
if (opts?.nonInterruptive !== undefined)
|
|
85
87
|
this.rigRepo.setRigNonInterruptive(rig.id, opts.nonInterruptive);
|
|
86
88
|
for (const specNode of spec.nodes) {
|
|
@@ -89,6 +91,8 @@ export class RigInstantiator {
|
|
|
89
91
|
runtime: specNode.runtime,
|
|
90
92
|
model: specNode.model,
|
|
91
93
|
effort: specNode.effort,
|
|
94
|
+
advisor: specNode.advisor,
|
|
95
|
+
claudePermissions: specNode.claudePermissions,
|
|
92
96
|
cwd: specNode.cwd,
|
|
93
97
|
surfaceHint: specNode.surfaceHint,
|
|
94
98
|
workspace: specNode.workspace,
|
|
@@ -96,6 +100,7 @@ export class RigInstantiator {
|
|
|
96
100
|
packageRefs: specNode.packageRefs,
|
|
97
101
|
});
|
|
98
102
|
nodeIdMap[specNode.id] = node.id;
|
|
103
|
+
opts?.recordCreated?.(rig.id, node.id);
|
|
99
104
|
}
|
|
100
105
|
for (const specEdge of spec.edges) {
|
|
101
106
|
this.rigRepo.addEdge(rig.id, nodeIdMap[specEdge.from], nodeIdMap[specEdge.to], specEdge.kind);
|
|
@@ -263,13 +268,21 @@ import { RigSpecCodec as PodRigSpecCodec } from "./rigspec-codec.js";
|
|
|
263
268
|
import { RigSpecSchema as PodRigSpecSchema, VALID_EDGE_KINDS } from "./rigspec-schema.js";
|
|
264
269
|
import { rigPreflight, preflightValidatedSpec } from "./rigspec-preflight.js";
|
|
265
270
|
import { resolveAgentRef } from "./agent-resolver.js";
|
|
266
|
-
import { resolveNodeConfig, selectedPluginPaths } from "./profile-resolver.js";
|
|
271
|
+
import { resolveAdvisorModel, resolveNodeConfig, selectedPluginPaths } from "./profile-resolver.js";
|
|
267
272
|
import { resolveStartup } from "./startup-resolver.js";
|
|
273
|
+
import { isCommunityHarnessRuntime } from "./built-in-runtimes.js";
|
|
268
274
|
import { planProjection, claudeConflictTargetPath, projectionConflictWarnings, filterProtectedProjections } from "./projection-planner.js";
|
|
269
275
|
import { ProjectionManifestStore } from "./projection-manifest-store.js";
|
|
276
|
+
import { seatSkillsPointerStartupFile } from "./seat-skills-pointer.js";
|
|
270
277
|
import { resolveConcreteHint } from "./runtime-adapter.js";
|
|
271
278
|
import { installTopologyDefaults } from "./topology-defaults-installer.js";
|
|
272
279
|
import { isKeptPluginSkill } from "./skill-catalog.js";
|
|
280
|
+
import { claudeSeatSkillsNote, ensureSeatSkillPlugin, seatCatalogKeptNote, migrateLegacyProjectSkills, refusedSeatSkillsRootForNode, seatSkillLocation, seatSkillPaths, seatSkillPathsForNode, seatSkillPluginDirForNode, writeSeatSkillCatalog } from "./seat-skill-storage.js";
|
|
281
|
+
import { carrySeatLaunchAdditions, prepareSeatLaunchAdditions } from "./seat-launch-additions.js";
|
|
282
|
+
/** OPR.0.7.0.13: the constant seat-skills pointer, merged into the project's managed guidance for a Codex seat. It
|
|
283
|
+
* names no seat, path or skill, so pod-mates share one identical block, and it tells a non-OpenRig agent it doesn't
|
|
284
|
+
* apply. Each seat reads its own list with `rig skill loadout --seat self`. */
|
|
285
|
+
export { seatSkillsPointerStartupFile };
|
|
273
286
|
function defaultCultureStartupFile() {
|
|
274
287
|
const assetsRoot = nodePath.resolve(import.meta.dirname, "../../assets");
|
|
275
288
|
return {
|
|
@@ -308,6 +321,10 @@ export class PodRigInstantiator {
|
|
|
308
321
|
this.db = deps.db;
|
|
309
322
|
this.deps = deps;
|
|
310
323
|
}
|
|
324
|
+
/** Slice 16: the skill-catalog context a launch resolves with, so a runtime switch's target materials match it. */
|
|
325
|
+
runtimeSwitchMaterialContext() {
|
|
326
|
+
return { skillsRoot: this.resolveSkillsRoot(), ...this.systemWorldResolutionContext() };
|
|
327
|
+
}
|
|
311
328
|
/** One configured catalog root for preflight, materialization, and launch. */
|
|
312
329
|
resolveSkillsRoot() {
|
|
313
330
|
return this.deps.skillsRootResolver?.();
|
|
@@ -414,6 +431,14 @@ export class PodRigInstantiator {
|
|
|
414
431
|
if (!preflight.ready) {
|
|
415
432
|
return { ok: false, code: "preflight_failed", errors: preflight.errors, warnings: preflight.warnings };
|
|
416
433
|
}
|
|
434
|
+
// A pod added to a running rig inherits the rig's layers; stop before it exists if a required one is gone,
|
|
435
|
+
// when at least one added member reads startup files.
|
|
436
|
+
if (opts?.targetRigId && targetRig && rigSpec.pods.some((pod) => pod.members.some((m) => this.runtimeTakesStartupFiles(m.runtime)))) {
|
|
437
|
+
const missingInherited = this.inheritedStartupFileErrors(opts.targetRigId, targetRig.rig.name);
|
|
438
|
+
if (missingInherited.length > 0) {
|
|
439
|
+
return { ok: false, code: "preflight_failed", errors: missingInherited, warnings: preflight.warnings };
|
|
440
|
+
}
|
|
441
|
+
}
|
|
417
442
|
return this.materializeValidatedSpec(rigSpec, rigRoot, preflight.warnings, opts);
|
|
418
443
|
}
|
|
419
444
|
/**
|
|
@@ -446,6 +471,7 @@ export class PodRigInstantiator {
|
|
|
446
471
|
if (!materializedRigId) {
|
|
447
472
|
const rig = this.deps.rigRepo.createRig(rigSpec.name);
|
|
448
473
|
materializedRigId = rig.id;
|
|
474
|
+
opts?.recordCreated?.(rig.id);
|
|
449
475
|
persistedEvents.push(this.deps.eventBus.persistWithinTransaction({ type: "rig.created", rigId: materializedRigId }));
|
|
450
476
|
}
|
|
451
477
|
// PL-007: persist the rig's typed workspace block when declared.
|
|
@@ -491,7 +517,8 @@ export class PodRigInstantiator {
|
|
|
491
517
|
for (const member of pod.members) {
|
|
492
518
|
const qualifiedId = `${pod.id}.${member.id}`;
|
|
493
519
|
if (logicalIdToNodeId.has(qualifiedId)) {
|
|
494
|
-
throw { code: "materialize_conflict", message: `Logical ID '${qualifiedId}' already exists in rig '${currentRig.rig.name}'
|
|
520
|
+
throw { code: "materialize_conflict", message: `Logical ID '${qualifiedId}' already exists in rig '${currentRig.rig.name}'`,
|
|
521
|
+
...(opts?.recordCreated ? { existingNodeId: logicalIdToNodeId.get(qualifiedId) } : {}) };
|
|
495
522
|
}
|
|
496
523
|
}
|
|
497
524
|
}
|
|
@@ -525,8 +552,10 @@ export class PodRigInstantiator {
|
|
|
525
552
|
member,
|
|
526
553
|
podId: podRecord.id,
|
|
527
554
|
rigRoot,
|
|
555
|
+
rigSpec,
|
|
528
556
|
cwdOverride: opts?.cwdOverride,
|
|
529
557
|
});
|
|
558
|
+
opts?.recordCreated?.(materializedRigId, node.id);
|
|
530
559
|
logicalIdToNodeId.set(qualifiedId, node.id);
|
|
531
560
|
// Seam B R2: restart-stable provenance persists AT MATERIALIZE (a
|
|
532
561
|
// materialized-but-never-launched seat must still restore its posture).
|
|
@@ -570,6 +599,13 @@ export class PodRigInstantiator {
|
|
|
570
599
|
}
|
|
571
600
|
this.deps.rigRepo.addEdge(materializedRigId, fromId, toId, edge.kind);
|
|
572
601
|
}
|
|
602
|
+
const layers = this.deps.rigRepo.getRigStartupLayers(materializedRigId) ?? { root: nodePath.resolve(rigRoot) };
|
|
603
|
+
this.deps.rigRepo.setRigStartupLayers(materializedRigId, { ...layers, materializedSources: [
|
|
604
|
+
...(layers.materializedSources ?? []),
|
|
605
|
+
{ root: nodePath.resolve(rigRoot), spec: rigSpec,
|
|
606
|
+
nodeIds: nodeResults.map(result => logicalIdToNodeId.get(result.logicalId)),
|
|
607
|
+
...(opts?.cwdOverride ? { cwdOverride: opts.cwdOverride } : {}) },
|
|
608
|
+
] });
|
|
573
609
|
persistedEvents.push(this.deps.eventBus.persistWithinTransaction({
|
|
574
610
|
type: "topology.roster_recorded",
|
|
575
611
|
rigId: materializedRigId,
|
|
@@ -620,12 +656,95 @@ export class PodRigInstantiator {
|
|
|
620
656
|
if (err && typeof err === "object" && "code" in err && "message" in err) {
|
|
621
657
|
const typed = err;
|
|
622
658
|
if (typed.code === "materialize_conflict") {
|
|
623
|
-
return { ok: false, code: "materialize_conflict", message: typed.message };
|
|
659
|
+
return { ok: false, code: "materialize_conflict", message: typed.message, ...(typed.existingNodeId ? { existingNodeId: typed.existingNodeId } : {}) };
|
|
624
660
|
}
|
|
625
661
|
}
|
|
626
662
|
return { ok: false, code: "materialize_error", message: err instanceof Error ? err.message : String(err) };
|
|
627
663
|
}
|
|
628
664
|
}
|
|
665
|
+
/** Ordinary single-seat launch can start a never-occupied materialized member.
|
|
666
|
+
* Reuse the original declaration and launch effect; history always stays on restore. */
|
|
667
|
+
async launchFirstMaterializedNode(rigId, nodeId) {
|
|
668
|
+
const guard = this.deps.tmuxAdapter?.deliveryGuard;
|
|
669
|
+
if (guard && !guard.ownsLifecycle(nodeId)) {
|
|
670
|
+
return guard.lifecycle([nodeId], () => this.launchFirstMaterializedNode(rigId, nodeId));
|
|
671
|
+
}
|
|
672
|
+
const rig = this.deps.rigRepo.getRig(rigId);
|
|
673
|
+
const node = rig?.nodes.find(entry => entry.id === nodeId);
|
|
674
|
+
const source = this.deps.rigRepo.getRigStartupLayers(rigId)?.materializedSources?.find(entry => entry.nodeIds.includes(nodeId));
|
|
675
|
+
if (!rig || !node || !source)
|
|
676
|
+
return null;
|
|
677
|
+
const pristine = () => !this.deps.sessionRegistry.getBindingForNode(nodeId)
|
|
678
|
+
&& !this.deps.sessionRegistry.getSessionsForRig(rigId).some(session => session.nodeId === nodeId)
|
|
679
|
+
&& !this.db.prepare("SELECT 1 FROM node_startup_context WHERE node_id = ?").get(nodeId);
|
|
680
|
+
if (!pristine())
|
|
681
|
+
return null;
|
|
682
|
+
const failure = (code, error) => ({ ok: false, rigId, nodeId, logicalId: node.logicalId, code, error });
|
|
683
|
+
const context = this.findMemberContext(source.spec, node.logicalId);
|
|
684
|
+
if (!context)
|
|
685
|
+
return failure("selection_changed", "The seat no longer matches its recorded member identity; inspect the rig before launching.");
|
|
686
|
+
// The declaration supplies startup content; an ordinary launch uses saved seat settings.
|
|
687
|
+
// Leave policy refs out of this synthetic spec so launchBinding uses saved provenance,
|
|
688
|
+
// rather than treating an old declaration as a fresh request to reapply its permissions.
|
|
689
|
+
const contract = () => {
|
|
690
|
+
const liveRig = this.deps.rigRepo.getRig(rigId);
|
|
691
|
+
const live = liveRig?.nodes.find(entry => entry.id === nodeId);
|
|
692
|
+
if (!liveRig || !live)
|
|
693
|
+
return null;
|
|
694
|
+
return { name: liveRig.rig.name, logicalId: live.logicalId, podId: live.podId,
|
|
695
|
+
member: { ...context.member, agentRef: live.agentRef ?? "", profile: live.profile ?? "default", runtime: live.runtime ?? "",
|
|
696
|
+
model: live.model ?? undefined, effort: live.effort ?? undefined, advisor: live.advisor ?? undefined,
|
|
697
|
+
codexConfigProfile: live.codexConfigProfile ?? undefined, cwd: live.cwd ?? context.member.cwd,
|
|
698
|
+
env: live.env ?? undefined, restorePolicy: live.restorePolicy ?? undefined, sessionSource: live.sessionSource ?? undefined,
|
|
699
|
+
permissionPolicy: undefined },
|
|
700
|
+
effortChoice: live.effortChoice ?? null, env: this.deps.rigRepo.getRigEnv(rigId),
|
|
701
|
+
policyRef: live.permissionPolicy ?? null, rigPolicyRef: this.deps.rigRepo.getRigPermissionPolicy(rigId),
|
|
702
|
+
policy: this.deps.rigRepo.getNodePolicyProvenance(nodeId), rigPolicy: this.deps.rigRepo.getRigPolicyProvenance(rigId) };
|
|
703
|
+
};
|
|
704
|
+
const saved = contract();
|
|
705
|
+
const selected = { ...source.spec, name: saved.name, env: saved.env ?? undefined, permissionPolicy: undefined,
|
|
706
|
+
pods: [{ ...context.pod, members: [saved.member], edges: [] }], edges: [] };
|
|
707
|
+
const inherited = saved.policy ? { ...saved.policy, ref: saved.policy.nodeRef ?? saved.rigPolicy?.rigRef ?? "none",
|
|
708
|
+
resolvedTarget: saved.policy.resolvedTarget ?? undefined, declaringDir: saved.policy.declaringDir ?? undefined }
|
|
709
|
+
: this.inheritedPermissionPolicy(rigId);
|
|
710
|
+
const preflight = await preflightValidatedSpec(selected, { rigRoot: source.root,
|
|
711
|
+
fsOps: this.deps.fsOps, skillsRoot: this.resolveSkillsRoot(), ...this.systemWorldResolutionContext(),
|
|
712
|
+
inheritedPermissionPolicy: inherited, exec: this.deps.exec, claudeActivityAssets: this.deps.claudeActivityAssets });
|
|
713
|
+
if (!preflight.ready)
|
|
714
|
+
return failure("preflight_failed", preflight.errors.join("; "));
|
|
715
|
+
const name = deriveCanonicalSessionName(context.pod.id, saved.member.id, saved.name);
|
|
716
|
+
try {
|
|
717
|
+
await this.deps.tmuxAdapter?.startServer();
|
|
718
|
+
}
|
|
719
|
+
catch {
|
|
720
|
+
return failure("target_liveness_unknown", "The tmux server could not be started; nothing was launched. Check rig doctor and the daemon’s tmux server, then retry.");
|
|
721
|
+
}
|
|
722
|
+
const probe = await this.deps.tmuxAdapter?.probeSession(name);
|
|
723
|
+
if (probe?.state === "present")
|
|
724
|
+
return failure("target_session_present", `Session "${name}" is present; nothing was launched. Inspect it with rig capture ${name} before choosing whether to stop it.`);
|
|
725
|
+
if (probe?.state !== "absent")
|
|
726
|
+
return failure("target_liveness_unknown", `Could not determine whether session "${name}" exists; nothing was launched. Check rig doctor and the daemon's tmux server, then retry.`);
|
|
727
|
+
if (!pristine() || !isDeepStrictEqual(contract(), saved)) {
|
|
728
|
+
return failure("selection_changed", "The seat identity, occupancy or launch settings changed during first-start checks; inspect its status and retry.");
|
|
729
|
+
}
|
|
730
|
+
const changed = ["agentRef", "profile", "runtime", "model", "effort", "advisor", "codexConfigProfile"]
|
|
731
|
+
.filter(key => !isDeepStrictEqual(saved.member[key] ?? null, context.member[key] ?? null));
|
|
732
|
+
const changes = [...changed];
|
|
733
|
+
if (saved.effortChoice && saved.effortChoice !== (context.member.effort ?? null))
|
|
734
|
+
changes.push("saved effort choice");
|
|
735
|
+
if (saved.policyRef !== (context.member.permissionPolicy ?? null)
|
|
736
|
+
|| saved.rigPolicyRef !== (source.spec.permissionPolicy ?? null))
|
|
737
|
+
changes.push("permission policy");
|
|
738
|
+
const launched = await this.launchValidatedSpec(selected, source.root, rigId);
|
|
739
|
+
if (!launched.ok)
|
|
740
|
+
return failure(launched.code, "message" in launched ? launched.message : launched.errors.join("; "));
|
|
741
|
+
const result = launched.result.nodes[0];
|
|
742
|
+
if (changes.length)
|
|
743
|
+
preflight.warnings.push(`First start uses the seat's current saved ${changes.join(", ")} instead of the materialized declaration.`);
|
|
744
|
+
return { ok: result.status === "launched", rigId, nodeId, logicalId: node.logicalId,
|
|
745
|
+
...(result.status !== "launched" ? { code: result.status, error: result.error } : {}),
|
|
746
|
+
sessionName: result.sessionName, warnings: [...preflight.warnings, ...(launched.result.warnings ?? [])] };
|
|
747
|
+
}
|
|
629
748
|
async launchMaterialized(rigSpecYaml, rigRoot, targetRigId) {
|
|
630
749
|
let raw;
|
|
631
750
|
try {
|
|
@@ -655,7 +774,7 @@ export class PodRigInstantiator {
|
|
|
655
774
|
* round-trip; launchMaterialized(yaml) is the parse/validate/normalize front
|
|
656
775
|
* over it. Behaviour identical (loop body relocated verbatim).
|
|
657
776
|
*/
|
|
658
|
-
async launchValidatedSpec(rigSpec, rigRoot, targetRigId, cwdOverride) {
|
|
777
|
+
async launchValidatedSpec(rigSpec, rigRoot, targetRigId, cwdOverride, launchOpts) {
|
|
659
778
|
const launchOrder = this.computePodLaunchOrder(rigSpec);
|
|
660
779
|
const podWarnings = [];
|
|
661
780
|
const nodeResults = [];
|
|
@@ -680,7 +799,7 @@ export class PodRigInstantiator {
|
|
|
680
799
|
});
|
|
681
800
|
continue;
|
|
682
801
|
}
|
|
683
|
-
const launched = await this.
|
|
802
|
+
const launched = await this.launchValidatedMember({
|
|
684
803
|
rigId: targetRigId,
|
|
685
804
|
rigSpec,
|
|
686
805
|
rigRoot,
|
|
@@ -689,6 +808,7 @@ export class PodRigInstantiator {
|
|
|
689
808
|
qualifiedId: logicalId,
|
|
690
809
|
nodeId: node.id,
|
|
691
810
|
cwdOverride,
|
|
811
|
+
...(launchOpts?.keepRecordedAdditions ? { keepRecordedAdditions: true } : {}),
|
|
692
812
|
});
|
|
693
813
|
if (launched.warnings?.length) {
|
|
694
814
|
podWarnings.push(...launched.warnings);
|
|
@@ -773,10 +893,12 @@ export class PodRigInstantiator {
|
|
|
773
893
|
// colliding logical id would be a real seat collision — reject it honestly.
|
|
774
894
|
// (validate's externalQualifiedIds only resolves edge targets; it does NOT
|
|
775
895
|
// reject a member colliding with an existing node, so this guard is load-bearing.)
|
|
776
|
-
|
|
896
|
+
const existingNode = rig.nodes.find((node) => node.logicalId === qualifiedId);
|
|
897
|
+
if (existingNode) {
|
|
777
898
|
return {
|
|
778
899
|
ok: false,
|
|
779
900
|
code: "member_conflict",
|
|
901
|
+
...(opts?.recordCreated ? { existingNodeId: existingNode.id } : {}),
|
|
780
902
|
message: `Member "${qualifiedId}" already exists in rig "${rig.rig.name}". Pick a different member id, or remove the existing seat first.`,
|
|
781
903
|
};
|
|
782
904
|
}
|
|
@@ -797,6 +919,13 @@ export class PodRigInstantiator {
|
|
|
797
919
|
if (!preflight.ready) {
|
|
798
920
|
return { ok: false, code: "preflight_failed", errors: preflight.errors, warnings: preflight.warnings };
|
|
799
921
|
}
|
|
922
|
+
// 6b. Stop before a seat exists if a required file the rig or this pod declared is gone, for a runtime that reads startup files.
|
|
923
|
+
const missingInherited = this.runtimeTakesStartupFiles(member.runtime)
|
|
924
|
+
? this.inheritedStartupFileErrors(rigId, rig.rig.name, podNamespace)
|
|
925
|
+
: [];
|
|
926
|
+
if (missingInherited.length > 0) {
|
|
927
|
+
return { ok: false, code: "preflight_failed", errors: missingInherited, warnings: preflight.warnings };
|
|
928
|
+
}
|
|
800
929
|
// 7. Validate + resolve any declared pod-local edges BEFORE creating the
|
|
801
930
|
// node, so a bad edge fails fast with no orphan seat. Two honest failure
|
|
802
931
|
// classes: (a) DECLARATION validity (non-array / empty fields / a kind
|
|
@@ -844,6 +973,7 @@ export class PodRigInstantiator {
|
|
|
844
973
|
suppressSummaryEvent: true,
|
|
845
974
|
cwdOverride: opts?.cwdOverride,
|
|
846
975
|
existingPodNamespace: podNamespace,
|
|
976
|
+
recordCreated: opts?.recordCreated,
|
|
847
977
|
});
|
|
848
978
|
if (!materialized.ok) {
|
|
849
979
|
const message = "message" in materialized
|
|
@@ -852,13 +982,17 @@ export class PodRigInstantiator {
|
|
|
852
982
|
? materialized.errors.join("; ")
|
|
853
983
|
: "member materialization failed";
|
|
854
984
|
if (materialized.code === "materialize_conflict") {
|
|
855
|
-
return { ok: false, code: "member_conflict", message };
|
|
985
|
+
return { ok: false, code: "member_conflict", message, ...(opts?.recordCreated && materialized.existingNodeId ? { existingNodeId: materialized.existingNodeId } : {}) };
|
|
856
986
|
}
|
|
857
987
|
return { ok: false, code: "materialize_error", message };
|
|
858
988
|
}
|
|
989
|
+
// A fork's launch additions go only into the seat just validated and created above (OPR.0.7.0.9).
|
|
990
|
+
const launchAdditions = opts?.launchAdditionsFrom && member.runtime === "claude-code"
|
|
991
|
+
? carrySeatLaunchAdditions(opts.launchAdditionsFrom, seatSkillPaths({ rigId, logicalId: qualifiedId, runtime: member.runtime }))
|
|
992
|
+
: undefined;
|
|
859
993
|
// 9. The shared launch effect owns startup projection + delivery +
|
|
860
994
|
// readiness + `@rigged_*` for both expansion and ordinary growth.
|
|
861
|
-
const launchOutcome = await this.launchValidatedSpec(rigSpec, rigRoot, rigId, opts?.cwdOverride);
|
|
995
|
+
const launchOutcome = await this.launchValidatedSpec(rigSpec, rigRoot, rigId, opts?.cwdOverride, launchAdditions?.kept ? { keepRecordedAdditions: true } : undefined);
|
|
862
996
|
if (!launchOutcome.ok) {
|
|
863
997
|
const message = "message" in launchOutcome
|
|
864
998
|
? launchOutcome.message
|
|
@@ -885,6 +1019,7 @@ export class PodRigInstantiator {
|
|
|
885
1019
|
},
|
|
886
1020
|
edges: resolvedEdges,
|
|
887
1021
|
warnings: [...(materialized.result.warnings ?? []), ...(launchOutcome.result.warnings ?? [])],
|
|
1022
|
+
...(launchAdditions ? { launchAdditions } : {}),
|
|
888
1023
|
},
|
|
889
1024
|
};
|
|
890
1025
|
}
|
|
@@ -942,7 +1077,7 @@ export class PodRigInstantiator {
|
|
|
942
1077
|
const initialRefusal = eligible();
|
|
943
1078
|
if (initialRefusal)
|
|
944
1079
|
return refuse(initialRefusal);
|
|
945
|
-
const retainedFields = new Set(["id", "label", "agent_ref", "profile", "runtime", "model", "effort", "cwd", "role", "codex_config_profile", "permission_policy", "restore_policy"]);
|
|
1080
|
+
const retainedFields = new Set(["id", "label", "agent_ref", "profile", "runtime", "model", "effort", "advisor", "cwd", "role", "codex_config_profile", "permission_policy", "claude_permissions", "restore_policy"]);
|
|
946
1081
|
if (Object.keys(memberFragment).some(key => !retainedFields.has(key)))
|
|
947
1082
|
return refuse("Retry accepts only retained member fields; topology and startup overrides require a separate change.");
|
|
948
1083
|
const rawSpec = { version: "0.2", name: rig.rig.name, pods: [{ id: podRow.namespace, label: podRow.label, members: [memberFragment], edges: [] }], edges: [] };
|
|
@@ -972,8 +1107,13 @@ export class PodRigInstantiator {
|
|
|
972
1107
|
skillsRoot: this.resolveSkillsRoot(), ...this.systemWorldResolutionContext() });
|
|
973
1108
|
if (!config.ok)
|
|
974
1109
|
return refuse(config.errors.join("; "));
|
|
975
|
-
|
|
976
|
-
|
|
1110
|
+
// A seat whose first start failed before Advisor support recorded no Advisor, though its unchanged agent spec (the
|
|
1111
|
+
// hash above) may name one. Its retry keeps the launch it recorded: no Advisor, stored and launched alike. Any
|
|
1112
|
+
// other Advisor difference changes the launch and is refused below.
|
|
1113
|
+
const launchConfig = node.advisor == null && member.advisor === undefined && config.config.advisor != null
|
|
1114
|
+
? { ...config, config: { ...config.config, advisor: undefined } } : config;
|
|
1115
|
+
if (!same(launchConfig.config.model, node.model) || !same(launchConfig.config.effort, node.effort) || !same(launchConfig.config.advisor, node.advisor) || !same(launchConfig.config.cwd, node.cwd) || !same(launchConfig.config.restorePolicy, node.restorePolicy)) {
|
|
1116
|
+
return refuse("Resolved model, effort, advisor, cwd or restore policy differs from the failed first start.");
|
|
977
1117
|
}
|
|
978
1118
|
const preflight = await preflightValidatedSpec(rigSpec, { rigRoot, fsOps: this.deps.fsOps, skillsRoot: this.resolveSkillsRoot(),
|
|
979
1119
|
...this.systemWorldResolutionContext(), rigNameOverride: rig.rig.name, inheritedPermissionPolicy: this.inheritedPermissionPolicy(rigId), exec: this.deps.exec });
|
|
@@ -994,7 +1134,7 @@ export class PodRigInstantiator {
|
|
|
994
1134
|
if (finalRefusal)
|
|
995
1135
|
return refuse(finalRefusal);
|
|
996
1136
|
const result = await this.launchExistingAgentMember({ rigId, nodeId, qualifiedId: node.logicalId, rigSpec, rigRoot, pod, member,
|
|
997
|
-
resolveResult: resolved, configResult:
|
|
1137
|
+
resolveResult: resolved, configResult: launchConfig, keepRecordedAdditions: true });
|
|
998
1138
|
if (result.status !== "launched")
|
|
999
1139
|
return { ok: false, code: result.status, message: result.error ?? "First-start retry did not reach readiness." };
|
|
1000
1140
|
return { ok: true, rigId, nodeId, logicalId: node.logicalId, status: "launched", sessionName: result.sessionName, warnings: result.warnings };
|
|
@@ -1108,7 +1248,9 @@ export class PodRigInstantiator {
|
|
|
1108
1248
|
throw new GenerationChanged(rigSpec.name);
|
|
1109
1249
|
}
|
|
1110
1250
|
}
|
|
1111
|
-
|
|
1251
|
+
const rig = this.deps.rigRepo.createRig(rigSpec.name, opts?.installRoot);
|
|
1252
|
+
opts?.recordCreated?.(rig.id);
|
|
1253
|
+
return rig;
|
|
1112
1254
|
});
|
|
1113
1255
|
const rig = create();
|
|
1114
1256
|
rigId = rig.id;
|
|
@@ -1233,7 +1375,7 @@ export class PodRigInstantiator {
|
|
|
1233
1375
|
for (const { pod, member, podId, qualifiedId } of memberEntries) {
|
|
1234
1376
|
// Terminal fast-path: skip agent resolution and profile resolution
|
|
1235
1377
|
if (member.agentRef === "builtin:terminal") {
|
|
1236
|
-
const termResult = await this.processTerminalMember(rigId, rigSpec, rigRoot, pod, member, podId, qualifiedId, nodeIdMap, launchedSessionNames, podInstantiateWarnings, opts?.cwdOverride, opts?.env);
|
|
1378
|
+
const termResult = await this.processTerminalMember(rigId, rigSpec, rigRoot, pod, member, podId, qualifiedId, nodeIdMap, launchedSessionNames, podInstantiateWarnings, opts?.cwdOverride, opts?.env, opts?.recordCreated);
|
|
1237
1379
|
nodeResults.push(termResult);
|
|
1238
1380
|
continue;
|
|
1239
1381
|
}
|
|
@@ -1280,11 +1422,13 @@ export class PodRigInstantiator {
|
|
|
1280
1422
|
runtime: member.runtime,
|
|
1281
1423
|
model: member.model ?? configResult.config.model,
|
|
1282
1424
|
effort: member.effort ?? configResult.config.effort,
|
|
1425
|
+
advisor: configResult.config.advisor,
|
|
1283
1426
|
codexConfigProfile: member.codexConfigProfile,
|
|
1284
1427
|
// OPR.0.4.8.3 Seam B: bootstrap inline addNode is the FOURTH node-creation
|
|
1285
1428
|
// site (see the role wire note above) — same member-ref persistence as
|
|
1286
1429
|
// createMemberNode or `rig up <spec>` seats lose their policy ref.
|
|
1287
1430
|
permissionPolicy: member.permissionPolicy,
|
|
1431
|
+
claudePermissions: member.claudePermissions,
|
|
1288
1432
|
env: member.env,
|
|
1289
1433
|
sessionSource: member.sessionSource,
|
|
1290
1434
|
cwd: configResult.config.cwd,
|
|
@@ -1296,6 +1440,7 @@ export class PodRigInstantiator {
|
|
|
1296
1440
|
resolvedSpecName: configResult.config.resolvedSpecName,
|
|
1297
1441
|
resolvedSpecVersion: configResult.config.resolvedSpecVersion,
|
|
1298
1442
|
resolvedSpecHash: configResult.config.resolvedSpecHash,
|
|
1443
|
+
launchRecipe: { version: 1, rigRoot, rigSpec },
|
|
1299
1444
|
});
|
|
1300
1445
|
// Guard multi-seat correction (16e853a7): node creation + required provenance
|
|
1301
1446
|
// are ONE ATOMIC UNIT (SQLite savepoint). A setter fault rolls the INSERT back
|
|
@@ -1306,6 +1451,7 @@ export class PodRigInstantiator {
|
|
|
1306
1451
|
const bootstrapAttachment = this.resolveMemberPolicyAttachment(member.permissionPolicy, rigSpec.permissionPolicy, rigRoot);
|
|
1307
1452
|
if (bootstrapAttachment)
|
|
1308
1453
|
this.persistNodePolicyProvenanceStrict(node.id, bootstrapAttachment);
|
|
1454
|
+
opts?.recordCreated?.(rigId, node.id);
|
|
1309
1455
|
return node.id;
|
|
1310
1456
|
});
|
|
1311
1457
|
let nodeId;
|
|
@@ -1560,24 +1706,28 @@ export class PodRigInstantiator {
|
|
|
1560
1706
|
}
|
|
1561
1707
|
return order;
|
|
1562
1708
|
}
|
|
1563
|
-
async processTerminalMember(rigId, rigSpec, rigRoot, pod, member, podId, qualifiedId, nodeIdMap, launchedSessionNames, warnings, cwdOverride, envOverride) {
|
|
1709
|
+
async processTerminalMember(rigId, rigSpec, rigRoot, pod, member, podId, qualifiedId, nodeIdMap, launchedSessionNames, warnings, cwdOverride, envOverride, recordCreated) {
|
|
1564
1710
|
const effectiveCwd = resolveLaunchCwd(member.cwd, rigRoot, cwdOverride);
|
|
1565
1711
|
// Create node with sentinel values
|
|
1566
1712
|
let nodeId;
|
|
1567
1713
|
try {
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1714
|
+
nodeId = this.db.transaction(() => {
|
|
1715
|
+
const node = this.deps.rigRepo.addNode(rigId, qualifiedId, {
|
|
1716
|
+
runtime: member.runtime,
|
|
1717
|
+
model: member.model,
|
|
1718
|
+
effort: member.effort,
|
|
1719
|
+
advisor: member.advisor,
|
|
1720
|
+
env: member.env,
|
|
1721
|
+
cwd: effectiveCwd,
|
|
1722
|
+
restorePolicy: "checkpoint_only",
|
|
1723
|
+
podId,
|
|
1724
|
+
agentRef: member.agentRef,
|
|
1725
|
+
profile: member.profile,
|
|
1726
|
+
label: member.label,
|
|
1727
|
+
});
|
|
1728
|
+
recordCreated?.(rigId, node.id);
|
|
1729
|
+
return node.id;
|
|
1730
|
+
})();
|
|
1581
1731
|
nodeIdMap[qualifiedId] = nodeId;
|
|
1582
1732
|
}
|
|
1583
1733
|
catch (err) {
|
|
@@ -1626,15 +1776,31 @@ export class PodRigInstantiator {
|
|
|
1626
1776
|
*/
|
|
1627
1777
|
createMemberNode(input) {
|
|
1628
1778
|
const effectiveCwd = resolveLaunchCwd(input.member.cwd, input.rigRoot, input.cwdOverride);
|
|
1779
|
+
// Export and snapshot can run before launch. Resolve inherited Advisor values
|
|
1780
|
+
// during creation; launch still re-resolves the original spec for later edits.
|
|
1781
|
+
let advisor = resolveAdvisorModel(input.member.advisor);
|
|
1782
|
+
if (advisor === undefined && input.member.agentRef !== "builtin:terminal") {
|
|
1783
|
+
const resolved = resolveAgentRef(input.member.agentRef, input.rigRoot, this.deps.fsOps);
|
|
1784
|
+
if (!resolved.ok) {
|
|
1785
|
+
throw new Error(resolved.code === "validation_failed" ? resolved.errors.join("; ") : resolved.error);
|
|
1786
|
+
}
|
|
1787
|
+
const spec = resolved.resolved.spec;
|
|
1788
|
+
const profile = spec.profiles[input.member.profile];
|
|
1789
|
+
if (!profile)
|
|
1790
|
+
throw new Error(`Profile "${input.member.profile}" not found in spec "${spec.name}"`);
|
|
1791
|
+
advisor = resolveAdvisorModel(undefined, profile.preferences?.advisor, spec.defaults?.advisor);
|
|
1792
|
+
}
|
|
1629
1793
|
const node = this.deps.rigRepo.addNode(input.rigId, input.qualifiedId, {
|
|
1630
1794
|
role: input.member.role,
|
|
1631
1795
|
runtime: input.member.runtime,
|
|
1632
1796
|
model: input.member.model,
|
|
1633
1797
|
effort: input.member.effort,
|
|
1798
|
+
advisor,
|
|
1634
1799
|
codexConfigProfile: input.member.codexConfigProfile,
|
|
1635
1800
|
// OPR.0.4.8.3 Seam B: the member's OWN raw ref persists on the node (like role);
|
|
1636
1801
|
// rig-level lives on the rig row; precedence applies at RESOLUTION, not storage.
|
|
1637
1802
|
permissionPolicy: input.member.permissionPolicy,
|
|
1803
|
+
claudePermissions: input.member.claudePermissions,
|
|
1638
1804
|
env: input.member.env,
|
|
1639
1805
|
sessionSource: input.member.sessionSource,
|
|
1640
1806
|
cwd: effectiveCwd,
|
|
@@ -1643,6 +1809,7 @@ export class PodRigInstantiator {
|
|
|
1643
1809
|
agentRef: input.member.agentRef,
|
|
1644
1810
|
profile: input.member.profile,
|
|
1645
1811
|
label: input.member.label,
|
|
1812
|
+
launchRecipe: { version: 1, rigRoot: input.rigRoot, rigSpec: input.rigSpec },
|
|
1646
1813
|
});
|
|
1647
1814
|
const event = this.deps.eventBus.persistWithinTransaction({
|
|
1648
1815
|
type: "node.added",
|
|
@@ -1652,6 +1819,9 @@ export class PodRigInstantiator {
|
|
|
1652
1819
|
});
|
|
1653
1820
|
return { node, event };
|
|
1654
1821
|
}
|
|
1822
|
+
launchValidatedMember(input) {
|
|
1823
|
+
return this.launchBinding(input);
|
|
1824
|
+
}
|
|
1655
1825
|
/**
|
|
1656
1826
|
* launch-binding primitive (OPR.0.3.3.24): given an already-created node and
|
|
1657
1827
|
* its member context, bring it fully live — harness launch + startup
|
|
@@ -1666,6 +1836,72 @@ export class PodRigInstantiator {
|
|
|
1666
1836
|
? this.launchExistingTerminalMember(input)
|
|
1667
1837
|
: this.launchExistingAgentMember(input);
|
|
1668
1838
|
}
|
|
1839
|
+
/**
|
|
1840
|
+
* Rebuild a fresh pod-aware launch from the source captured at materialization.
|
|
1841
|
+
* A missing startup context means the daemon has no restorable startup
|
|
1842
|
+
* context for this seat; it does not by itself prove that no conversation
|
|
1843
|
+
* exists. It must not prevent a new harness from being started for a seat
|
|
1844
|
+
* whose validated launch recipe is available.
|
|
1845
|
+
*/
|
|
1846
|
+
async launchPersistedFresh(rigId, nodeId) {
|
|
1847
|
+
const rig = this.deps.rigRepo.getRig(rigId);
|
|
1848
|
+
const node = rig?.nodes.find((candidate) => candidate.id === nodeId);
|
|
1849
|
+
if (!rig || !node) {
|
|
1850
|
+
return { status: "failed", error: `Node "${nodeId}" not found in rig "${rigId}".` };
|
|
1851
|
+
}
|
|
1852
|
+
const recipe = this.deps.rigRepo.getNodeLaunchRecipe(nodeId);
|
|
1853
|
+
if (!recipe) {
|
|
1854
|
+
return {
|
|
1855
|
+
status: "attention_required",
|
|
1856
|
+
error: `Fresh launch recipe unavailable for ${node.logicalId}; rematerialize the pod-aware rig before launching this seat.`,
|
|
1857
|
+
};
|
|
1858
|
+
}
|
|
1859
|
+
const context = this.findMemberContext(recipe.rigSpec, node.logicalId);
|
|
1860
|
+
if (!context) {
|
|
1861
|
+
return {
|
|
1862
|
+
status: "attention_required",
|
|
1863
|
+
error: `Fresh launch recipe for ${node.logicalId} does not contain its member definition.`,
|
|
1864
|
+
};
|
|
1865
|
+
}
|
|
1866
|
+
// The recipe supplies the authored source, while the retained node row is the
|
|
1867
|
+
// latest operator choice. Keep those choices authoritative across a restart.
|
|
1868
|
+
const member = {
|
|
1869
|
+
...context.member,
|
|
1870
|
+
...(node.model !== null ? { model: node.model } : {}),
|
|
1871
|
+
...(node.effort !== null && node.effort !== undefined ? { effort: node.effort } : {}),
|
|
1872
|
+
...(node.codexConfigProfile !== null && node.codexConfigProfile !== undefined
|
|
1873
|
+
? { codexConfigProfile: node.codexConfigProfile }
|
|
1874
|
+
: {}),
|
|
1875
|
+
...(node.permissionPolicy !== null && node.permissionPolicy !== undefined
|
|
1876
|
+
? { permissionPolicy: node.permissionPolicy }
|
|
1877
|
+
: {}),
|
|
1878
|
+
...(node.env !== null && node.env !== undefined ? { env: node.env } : {}),
|
|
1879
|
+
...(node.cwd !== null ? { cwd: node.cwd } : {}),
|
|
1880
|
+
...(node.restorePolicy !== null ? { restorePolicy: node.restorePolicy } : {}),
|
|
1881
|
+
...(node.sessionSource !== null && node.sessionSource !== undefined ? { sessionSource: node.sessionSource } : {}),
|
|
1882
|
+
};
|
|
1883
|
+
return this.launchValidatedMember({
|
|
1884
|
+
rigId,
|
|
1885
|
+
rigSpec: recipe.rigSpec,
|
|
1886
|
+
rigRoot: recipe.rigRoot,
|
|
1887
|
+
pod: context.pod,
|
|
1888
|
+
member,
|
|
1889
|
+
qualifiedId: node.logicalId,
|
|
1890
|
+
nodeId,
|
|
1891
|
+
// Preserve the resolved cwd from materialization, including a prior
|
|
1892
|
+
// --cwd-override, rather than silently falling back to process cwd.
|
|
1893
|
+
cwdOverride: node.cwd ?? undefined,
|
|
1894
|
+
});
|
|
1895
|
+
}
|
|
1896
|
+
/** Whether a persisted recipe contains enough validated source to attempt a fresh launch. */
|
|
1897
|
+
canLaunchPersistedFresh(rigId, nodeId) {
|
|
1898
|
+
const rig = this.deps.rigRepo.getRig(rigId);
|
|
1899
|
+
const node = rig?.nodes.find((candidate) => candidate.id === nodeId);
|
|
1900
|
+
if (!rig || !node)
|
|
1901
|
+
return false;
|
|
1902
|
+
const recipe = this.deps.rigRepo.getNodeLaunchRecipe(nodeId);
|
|
1903
|
+
return recipe ? this.findMemberContext(recipe.rigSpec, node.logicalId) !== null : false;
|
|
1904
|
+
}
|
|
1669
1905
|
/**
|
|
1670
1906
|
* OPR.0.4.8.3 Seam B — the ONE precedence + resolution point for a seat's permission
|
|
1671
1907
|
* policy at launch: member ref > rig ref > absent (undefined = the env-driven floor).
|
|
@@ -1682,9 +1918,71 @@ export class PodRigInstantiator {
|
|
|
1682
1918
|
}
|
|
1683
1919
|
/** Store the rig culture file and rig startup block the spec declares, with the absolute root they resolve against. */
|
|
1684
1920
|
persistRigStartupLayers(rigId, rigSpec, rigRoot) {
|
|
1685
|
-
|
|
1921
|
+
const podStartupFiles = {};
|
|
1922
|
+
for (const pod of rigSpec.pods) {
|
|
1923
|
+
if (pod.startup?.files.length)
|
|
1924
|
+
podStartupFiles[pod.id] = pod.startup.files;
|
|
1925
|
+
}
|
|
1926
|
+
const hasPodFiles = Object.keys(podStartupFiles).length > 0;
|
|
1927
|
+
if (!rigSpec.cultureFile && !rigSpec.startup && !hasPodFiles)
|
|
1686
1928
|
return;
|
|
1687
|
-
this.deps.rigRepo.setRigStartupLayers(rigId, {
|
|
1929
|
+
this.deps.rigRepo.setRigStartupLayers(rigId, {
|
|
1930
|
+
root: nodePath.resolve(rigRoot),
|
|
1931
|
+
cultureFile: rigSpec.cultureFile,
|
|
1932
|
+
startup: rigSpec.startup,
|
|
1933
|
+
...(hasPodFiles ? { podStartupFiles } : {}),
|
|
1934
|
+
});
|
|
1935
|
+
}
|
|
1936
|
+
/** Whether a runtime reads startup files at all. A terminal seat's adapter delivers nothing, and a community harness
|
|
1937
|
+
* takes none (it only warns), so a missing file can't fail either; main adds them today and keeps doing so. */
|
|
1938
|
+
runtimeTakesStartupFiles(runtime) {
|
|
1939
|
+
return runtime !== "terminal" && !isCommunityHarnessRuntime(runtime);
|
|
1940
|
+
}
|
|
1941
|
+
/** Why an add must stop: a startup file the rig or the pod declared as required, or the rig's declared `culture_file`,
|
|
1942
|
+
* that the add would inherit but cannot read. Empty when nothing is recorded (a rig created before the record, or
|
|
1943
|
+
* one that declared nothing) or every such file reads. Optional files and files that apply only on restore are not checked. */
|
|
1944
|
+
inheritedStartupFileErrors(rigId, rigName, podId) {
|
|
1945
|
+
const layers = this.deps.rigRepo.getRigStartupLayers(rigId);
|
|
1946
|
+
if (!layers)
|
|
1947
|
+
return [];
|
|
1948
|
+
const readable = (absolutePath) => {
|
|
1949
|
+
try {
|
|
1950
|
+
this.deps.fsOps.readFile(absolutePath);
|
|
1951
|
+
return true;
|
|
1952
|
+
}
|
|
1953
|
+
catch {
|
|
1954
|
+
return false;
|
|
1955
|
+
}
|
|
1956
|
+
};
|
|
1957
|
+
const errors = [];
|
|
1958
|
+
const check = (path, owner, what) => {
|
|
1959
|
+
const absolutePath = nodePath.resolve(layers.root, path);
|
|
1960
|
+
if (!readable(absolutePath)) {
|
|
1961
|
+
errors.push(`${what} "${path}" (${absolutePath}), declared by ${owner}, is missing or unreadable.`);
|
|
1962
|
+
}
|
|
1963
|
+
};
|
|
1964
|
+
const rigOwner = `rig "${rigName}"`;
|
|
1965
|
+
if (layers.cultureFile)
|
|
1966
|
+
check(layers.cultureFile, rigOwner, "The rig's culture_file");
|
|
1967
|
+
for (const f of layers.startup?.files ?? []) {
|
|
1968
|
+
if (f.required && f.appliesOn.includes("fresh_start"))
|
|
1969
|
+
check(f.path, rigOwner, "Required startup file");
|
|
1970
|
+
}
|
|
1971
|
+
for (const f of (podId ? layers.podStartupFiles?.[podId] : undefined) ?? []) {
|
|
1972
|
+
if (f.required && f.appliesOn.includes("fresh_start"))
|
|
1973
|
+
check(f.path, `pod "${podId}" of ${rigOwner}`, "Required startup file");
|
|
1974
|
+
}
|
|
1975
|
+
if (errors.length > 0)
|
|
1976
|
+
errors.push("No seat was added. Restore the file, then run the command again.");
|
|
1977
|
+
return errors;
|
|
1978
|
+
}
|
|
1979
|
+
/** The files a seat's pod contributes: the pod's own startup when the launching spec declares it (a declared seat),
|
|
1980
|
+
* else the pod files recorded when the rig was created (a seat added to that pod), resolved against the rig's stored root. */
|
|
1981
|
+
podStartupResolvedFiles(pod, rigLayers, rigRoot) {
|
|
1982
|
+
if (pod.startup) {
|
|
1983
|
+
return pod.startup.files.map((f) => ({ ...f, absolutePath: nodePath.resolve(rigRoot, f.path), ownerRoot: rigRoot }));
|
|
1984
|
+
}
|
|
1985
|
+
return (rigLayers.podStartupFiles?.[pod.id] ?? []).map((f) => ({ ...f, absolutePath: nodePath.resolve(rigLayers.root, f.path), ownerRoot: rigLayers.root }));
|
|
1688
1986
|
}
|
|
1689
1987
|
/** The rig culture file and rig startup block a seat launches with, and the root they resolve against: the spec's
|
|
1690
1988
|
* own when it declares them, else those stored when the rig was created. Expand, add-member and first-start retry
|
|
@@ -1772,6 +2070,45 @@ export class PodRigInstantiator {
|
|
|
1772
2070
|
}
|
|
1773
2071
|
const canonicalSessionName = deriveCanonicalSessionName(input.pod.id, input.member.id, input.rigSpec.name);
|
|
1774
2072
|
const keptSkillWarnings = [];
|
|
2073
|
+
// OPR.0.7.0.13 — a team seat's skills go to storage OpenRig owns for this rig and logical seat, not into the
|
|
2074
|
+
// person's project: for Claude, reached through the seat's own plugin; for Codex, through the catalog its per-seat
|
|
2075
|
+
// startup text delivers. Made for every Claude and Codex seat, so profile skills land there even with no loadout.
|
|
2076
|
+
const seatRuntime = configResult.config.runtime === "claude-code" || configResult.config.runtime === "codex" ? configResult.config.runtime : undefined;
|
|
2077
|
+
const seatSkills = seatRuntime ? seatSkillPaths({ rigId: input.rigId, logicalId: input.qualifiedId, runtime: seatRuntime }) : undefined;
|
|
2078
|
+
let loadoutReceipts = 0;
|
|
2079
|
+
if (seatSkills && seatRuntime === "claude-code") {
|
|
2080
|
+
keptSkillWarnings.push(...ensureSeatSkillPlugin(seatSkills));
|
|
2081
|
+
// OPR.0.7.0.9 — the member's own agent, prompt file and plugin folders, copied into the seat's storage. Asking for
|
|
2082
|
+
// none removes an earlier request. A missing or refused source fails this seat by name; the rest still launch.
|
|
2083
|
+
const beside = (path) => nodePath.resolve(input.rigRoot, path);
|
|
2084
|
+
const prepared = input.keepRecordedAdditions ? { ok: true, notes: [] } : prepareSeatLaunchAdditions(seatSkills, {
|
|
2085
|
+
...(input.member.agentFile ? { agentFile: beside(input.member.agentFile) } : {}),
|
|
2086
|
+
...(input.member.appendSystemPromptFile ? { appendSystemPromptFile: beside(input.member.appendSystemPromptFile) } : {}),
|
|
2087
|
+
...(input.member.pluginDirs?.length ? { pluginDirs: input.member.pluginDirs.map(beside) } : {}),
|
|
2088
|
+
});
|
|
2089
|
+
// A linked seat-storage ancestor: the seat starts without its additions, each named; nothing goes through the link.
|
|
2090
|
+
// A missing or refused source still fails the seat.
|
|
2091
|
+
const linked = !prepared.ok && prepared.code === "seat_storage_refused" ? seatSkillLocation(seatSkills).refuseMutation?.() : undefined;
|
|
2092
|
+
if (!prepared.ok && !linked)
|
|
2093
|
+
return { status: "failed", error: prepared.message, sessionName: canonicalSessionName };
|
|
2094
|
+
if (linked) {
|
|
2095
|
+
const asked = [input.member.agentFile, input.member.appendSystemPromptFile, ...(input.member.pluginDirs ?? [])].filter((ref) => !!ref);
|
|
2096
|
+
for (const ref of asked)
|
|
2097
|
+
keptSkillWarnings.push(`seat_launch_addition_not_delivered: ${ref}: ${linked}; the seat starts without it`);
|
|
2098
|
+
}
|
|
2099
|
+
keptSkillWarnings.push(...(prepared.ok ? prepared.notes ?? [] : []));
|
|
2100
|
+
}
|
|
2101
|
+
if (seatSkills && seatRuntime === "codex") {
|
|
2102
|
+
// A catalog that can't be written is this seat's named result, never an error that escapes the rig's launch.
|
|
2103
|
+
try {
|
|
2104
|
+
const catalog = writeSeatSkillCatalog(seatSkills);
|
|
2105
|
+
if (catalog.kept)
|
|
2106
|
+
keptSkillWarnings.push(seatCatalogKeptNote(catalog));
|
|
2107
|
+
}
|
|
2108
|
+
catch (error) {
|
|
2109
|
+
keptSkillWarnings.push(`seat_catalog_not_written: ${seatSkills.catalogPath}: ${error.message}`);
|
|
2110
|
+
}
|
|
2111
|
+
}
|
|
1775
2112
|
if (configResult.config.skillLoadout
|
|
1776
2113
|
&& this.deps.skillReconciler
|
|
1777
2114
|
&& (configResult.config.runtime === "claude-code" || configResult.config.runtime === "codex")) {
|
|
@@ -1781,6 +2118,7 @@ export class PodRigInstantiator {
|
|
|
1781
2118
|
cwd: configResult.config.cwd,
|
|
1782
2119
|
apply: true,
|
|
1783
2120
|
topologyOwner: canonicalSessionName,
|
|
2121
|
+
...(seatSkills ? { location: seatSkillLocation(seatSkills, seatRuntime) } : {}),
|
|
1784
2122
|
});
|
|
1785
2123
|
const loadout = configResult.config.skillLoadout;
|
|
1786
2124
|
let projection = reconcile(loadout);
|
|
@@ -1793,14 +2131,28 @@ export class PodRigInstantiator {
|
|
|
1793
2131
|
projection = withoutPlugins;
|
|
1794
2132
|
}
|
|
1795
2133
|
}
|
|
1796
|
-
|
|
2134
|
+
// A seat whose storage a link refuses starts without its seat skills, and says what it lost: nothing is written
|
|
2135
|
+
// through the link and nothing falls back into the project. Any other reconciliation error still fails the seat.
|
|
2136
|
+
const refusedOnly = !projection.ok && projection.errors.every((error) => error.code === "seat_storage_refused");
|
|
2137
|
+
if (refusedOnly) {
|
|
2138
|
+
keptSkillWarnings.push(`seat_skills_not_delivered: ${loadout.entries.map((entry) => entry.id).join(", ")}: ${projection.errors.map((error) => `${error.code}: ${error.message}`).join("; ")}; the seat starts without these selected skills`);
|
|
2139
|
+
}
|
|
2140
|
+
else if (!projection.ok) {
|
|
1797
2141
|
return {
|
|
1798
2142
|
status: "failed",
|
|
1799
2143
|
error: projection.errors.map((error) => `${error.code}: ${error.message}`).join("; "),
|
|
1800
2144
|
sessionName: canonicalSessionName,
|
|
1801
2145
|
};
|
|
1802
2146
|
}
|
|
1803
|
-
|
|
2147
|
+
// OPR.0.7.0.13: copies this seat's earlier launches put in the project. They go only when the project's own
|
|
2148
|
+
// loadout record names this seat as their sole owner and they are unchanged (the reconciler's own rule for a
|
|
2149
|
+
// deselected skill); a skill the person installed for the project stays selected. While another seat still
|
|
2150
|
+
// shares those copies, nothing is removed and the note says why.
|
|
2151
|
+
if (seatSkills && seatRuntime === "claude-code" && projection.ok) {
|
|
2152
|
+
keptSkillWarnings.push(...migrateLegacyProjectSkills({ reconcile: this.deps.skillReconciler, loadout, cwd: configResult.config.cwd, owner: canonicalSessionName }));
|
|
2153
|
+
}
|
|
2154
|
+
loadoutReceipts = projection.ok ? projection.receipts.length : 0;
|
|
2155
|
+
for (const receipt of projection.ok ? projection.receipts.filter(isKeptPluginSkill) : []) {
|
|
1804
2156
|
keptSkillWarnings.push(`plugin_skill_kept: ${receipt.id}: ${receipt.detail.slice("kept: ".length)} (${receipt.target})`);
|
|
1805
2157
|
}
|
|
1806
2158
|
}
|
|
@@ -1830,6 +2182,13 @@ export class PodRigInstantiator {
|
|
|
1830
2182
|
// overwrite). REAL store-backed lookup on this.db (never a mock/null — the
|
|
1831
2183
|
// uninjected-service dead-invalidator class the P17 comment below records).
|
|
1832
2184
|
const projectionManifest = new ProjectionManifestStore(this.db);
|
|
2185
|
+
const claudeSeatPlugin = input.member.runtime === "claude-code" ? seatSkillPluginDirForNode(this.db, input.nodeId) : undefined;
|
|
2186
|
+
const claudeSeatSkillsRoot = claudeSeatPlugin ? nodePath.join(claudeSeatPlugin, "skills") : undefined;
|
|
2187
|
+
const codexSeatSkillsRoot = input.member.runtime === "codex" ? seatSkillPathsForNode(this.db, input.nodeId)?.skillsRoot : undefined;
|
|
2188
|
+
// Where a link refused this seat's storage, its skills are planned (and refused) there, not in the project.
|
|
2189
|
+
const refusedSeatSkillsRoot = claudeSeatSkillsRoot || codexSeatSkillsRoot ? undefined : refusedSeatSkillsRootForNode(this.db, input.nodeId)?.skillsRoot;
|
|
2190
|
+
const claudeSkillTargetRoot = input.member.runtime === "claude-code" ? claudeSeatSkillsRoot ?? refusedSeatSkillsRoot : undefined;
|
|
2191
|
+
const codexSkillTargetRoot = input.member.runtime === "codex" ? codexSeatSkillsRoot ?? refusedSeatSkillsRoot : undefined;
|
|
1833
2192
|
const planResult = planProjection({
|
|
1834
2193
|
config: configResult.config,
|
|
1835
2194
|
collisions: resolveResult.collisions,
|
|
@@ -1841,10 +2200,13 @@ export class PodRigInstantiator {
|
|
|
1841
2200
|
// the same source startNode binds for the write). An adapter that writes skills
|
|
1842
2201
|
// outside the project tree (OMP's seat agent dir) names its own skill target.
|
|
1843
2202
|
resolveTargetPath: (category, effectiveId, cwd, sourcePath) => input.member.runtime === "codex" && category === "skill"
|
|
1844
|
-
? nodePath.join(cwd, ".agents", "skills", effectiveId, "SKILL.md")
|
|
1845
|
-
:
|
|
1846
|
-
|
|
1847
|
-
|
|
2203
|
+
? nodePath.join(codexSkillTargetRoot ?? nodePath.join(cwd, ".agents", "skills"), effectiveId, "SKILL.md")
|
|
2204
|
+
// OPR.0.7.0.13: a Claude seat's skills are written to its own storage, so an edit there is what to protect.
|
|
2205
|
+
: input.member.runtime === "claude-code" && category === "skill" && claudeSkillTargetRoot
|
|
2206
|
+
? nodePath.join(claudeSkillTargetRoot, effectiveId, "SKILL.md")
|
|
2207
|
+
: category === "skill" && adapter.skillTargetPath
|
|
2208
|
+
? adapter.skillTargetPath(launchResult.binding.tmuxSession, effectiveId)
|
|
2209
|
+
: claudeConflictTargetPath(category, effectiveId, cwd, sourcePath, input.member.runtime === "claude-code" ? this.deps.rigRepo.getRigClaudeManagedBlockFile(input.rigId) ?? undefined : undefined),
|
|
1848
2210
|
lastHashLookup: (targetPath) => projectionManifest.lastHash(targetPath),
|
|
1849
2211
|
});
|
|
1850
2212
|
if (!planResult.ok) {
|
|
@@ -1863,7 +2225,26 @@ export class PodRigInstantiator {
|
|
|
1863
2225
|
// P20 atom-4 PROTECT: hold back operator-edited skill targets (operator_conflict)
|
|
1864
2226
|
// so the adapter never overwrites an operator's edit unless an internal caller sets
|
|
1865
2227
|
// input.force. The warning names the source-edit/move-aside remedies available to users.
|
|
1866
|
-
const
|
|
2228
|
+
const protectedFiltered = filterProtectedProjections(managedDedupedFiles, planResult.plan, { force: input.force }).delivered;
|
|
2229
|
+
// OPR.0.7.0.13 (Codex C2): the seat's own catalog, through its per-seat startup text (the route role material takes,
|
|
2230
|
+
// never the shared AGENTS.md). Fresh starts and fresh-primed restores send it; native resume and in-place restart
|
|
2231
|
+
// replay nothing. The startup orchestrator rebuilds the file after this launch's projection.
|
|
2232
|
+
// OPR.0.7.0.13: the compatibility limit, named rather than silent, whichever writer puts a skill in a Claude seat's
|
|
2233
|
+
// storage (its loadout, a profile skill, a startup skill file). Nothing falls back to the project.
|
|
2234
|
+
const versionNote = claudeSeatSkillsRoot
|
|
2235
|
+
? claudeSeatSkillsNote({ loadoutReceipts, planEntries: planResult.plan.entries, startupFiles: protectedFiltered }) : undefined;
|
|
2236
|
+
if (versionNote)
|
|
2237
|
+
(launchResult.warnings ??= []).push(`${canonicalSessionName}: ${versionNote}`);
|
|
2238
|
+
// OPR.0.7.0.13 (router, R1.1): the one-line seat-skills bootstrap is part of a seat's saved startup files whenever it
|
|
2239
|
+
// has its own skill storage. Each start decides from the person's saved answer whether to deliver it (startup
|
|
2240
|
+
// orchestrator), so a later yes or no applies to restores too; a Codex seat's startup catalog below is unchanged.
|
|
2241
|
+
const bootstrapLine = seatSkills && (codexSeatSkillsRoot || claudeSeatSkillsRoot) ? [seatSkillsPointerStartupFile()] : [];
|
|
2242
|
+
const dedupedResolvedFiles = codexSeatSkillsRoot && seatSkills
|
|
2243
|
+
? [...protectedFiltered, ...bootstrapLine, {
|
|
2244
|
+
path: "openrig-seat-skills.md", absolutePath: seatSkills.catalogPath, ownerRoot: seatSkills.root,
|
|
2245
|
+
deliveryHint: "send_text", required: false, appliesOn: ["fresh_start", "restore"],
|
|
2246
|
+
}]
|
|
2247
|
+
: [...protectedFiltered, ...bootstrapLine];
|
|
1867
2248
|
const binding = {
|
|
1868
2249
|
id: launchResult.binding.id,
|
|
1869
2250
|
nodeId: input.nodeId,
|
|
@@ -1878,6 +2259,7 @@ export class PodRigInstantiator {
|
|
|
1878
2259
|
// The seat's saved effort choice wins over the authored value just written by
|
|
1879
2260
|
// updateNodeResolvedConfig; a seat without one launches with exactly that authored value.
|
|
1880
2261
|
effort: (readSeatEffort(this.deps.rigRepo.db, input.nodeId) ?? { effective: configResult.config.effort ?? null }).effective ?? undefined,
|
|
2262
|
+
advisor: configResult.config.advisor,
|
|
1881
2263
|
codexConfigProfile: input.member.codexConfigProfile,
|
|
1882
2264
|
// OPR.0.4.8.3 Seam B: resolved launch posture (member > rig > persisted > FLOOR)
|
|
1883
2265
|
// binds per-seat explicitly; adapters thread it into the yolo-mode helpers.
|
|
@@ -2167,6 +2549,8 @@ export class PodRigInstantiator {
|
|
|
2167
2549
|
else {
|
|
2168
2550
|
this.deps.rigRepo.clearNodeEffort(nodeId);
|
|
2169
2551
|
}
|
|
2552
|
+
// Removing Advisor from the resolved spec must also remove its persisted launch flag.
|
|
2553
|
+
this.deps.rigRepo.setNodeAdvisor(nodeId, config.advisor ?? null);
|
|
2170
2554
|
}
|
|
2171
2555
|
catch {
|
|
2172
2556
|
/* best-effort */
|
|
@@ -2194,11 +2578,7 @@ export class PodRigInstantiator {
|
|
|
2194
2578
|
}
|
|
2195
2579
|
}
|
|
2196
2580
|
// Layer 5: Pod startup
|
|
2197
|
-
|
|
2198
|
-
for (const f of pod.startup.files) {
|
|
2199
|
-
files.push({ ...f, absolutePath: nodePath.resolve(rigRoot, f.path), ownerRoot: rigRoot });
|
|
2200
|
-
}
|
|
2201
|
-
}
|
|
2581
|
+
files.push(...this.podStartupResolvedFiles(pod, rigLayers, rigRoot));
|
|
2202
2582
|
// Layer 6: Member startup
|
|
2203
2583
|
if (member.startup) {
|
|
2204
2584
|
for (const f of member.startup.files) {
|
|
@@ -2239,11 +2619,7 @@ export class PodRigInstantiator {
|
|
|
2239
2619
|
}
|
|
2240
2620
|
}
|
|
2241
2621
|
// 5. Pod startup
|
|
2242
|
-
|
|
2243
|
-
for (const f of pod.startup.files) {
|
|
2244
|
-
files.push({ ...f, absolutePath: nodePath.resolve(rigRoot, f.path), ownerRoot: rigRoot });
|
|
2245
|
-
}
|
|
2246
|
-
}
|
|
2622
|
+
files.push(...this.podStartupResolvedFiles(pod, rigLayers, rigRoot));
|
|
2247
2623
|
// 6. Member startup
|
|
2248
2624
|
if (member.startup) {
|
|
2249
2625
|
for (const f of member.startup.files) {
|
|
@@ -2329,7 +2705,7 @@ export class PodRigInstantiator {
|
|
|
2329
2705
|
return f;
|
|
2330
2706
|
try {
|
|
2331
2707
|
const content = this.deps.fsOps.readFile(f.absolutePath);
|
|
2332
|
-
return { ...f, deliveryHint: resolveConcreteHint(f.path, content) };
|
|
2708
|
+
return { ...f, deliveryHint: resolveConcreteHint(f.path, content, f.orientation) };
|
|
2333
2709
|
}
|
|
2334
2710
|
catch {
|
|
2335
2711
|
// If file can't be read, default to send_text (safest — delivered after harness ready)
|