@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,13 +1,15 @@
|
|
|
1
1
|
import { PROMPT_ALERT_TAG, readWakeLadderBackstop } from "./queue-wake-ladder.js";
|
|
2
|
+
import { withUrgentLine } from "./urgent-line.js";
|
|
2
3
|
import { quietCustodyBackstop, quietHoldCustody } from "./quiet-hold-custody.js";
|
|
3
4
|
import { createHash } from "node:crypto";
|
|
4
|
-
import { loadHumanRegistry, resolveRegisteredHumanAddress } from "./gateway/human-registry.js";
|
|
5
|
+
import { loadHumanRegistry, resolveRegisteredHumanAddress, slackSubscriptionFor, withHumanAlertTag } from "./gateway/human-registry.js";
|
|
5
6
|
import { resolveExternal } from "./gateway/external-admission.js";
|
|
6
7
|
import { QueueTransitionLog } from "./queue-transition-log.js";
|
|
7
8
|
import { WAKE_INTENT_PREFIX } from "./outbox-handler.js";
|
|
8
9
|
import { derivePickup } from "./queue-pickup.js";
|
|
9
10
|
import { lastMeaningfulTransition, readWaitingView } from "./queue-waiting.js";
|
|
10
|
-
import { wrapPaneEnvelope } from "../lib/pane-envelope.js";
|
|
11
|
+
import { isOpenRigSender, OPENRIG_SENDER, wrapPaneEnvelope } from "../lib/pane-envelope.js";
|
|
12
|
+
import { isBoundTerminalSeat } from "./terminal-seat.js";
|
|
11
13
|
import { renderQueueHandoffNudge } from "./queue-nudge-text.js";
|
|
12
14
|
import { getSelfHostId } from "./hosts/fanout-contract.js";
|
|
13
15
|
import { parseSessionName, isHumanSeatSessionRef } from "./session-name.js";
|
|
@@ -63,6 +65,10 @@ export function hasLiveHumanGate(item) {
|
|
|
63
65
|
return isBlockerLive(item.state) && isHumanSeatSessionRef(item.destinationSession);
|
|
64
66
|
}
|
|
65
67
|
const AUTO_UNPARK_WAKE_TAG = "queue:auto-unpark:blocker";
|
|
68
|
+
/** A durable wake OpenRig's own scheduling triggered (an auto-unpark, a row OpenRig creates), not an agent's create or
|
|
69
|
+
* handoff: it keeps that source when it's replayed later. Send, broadcast, queue create and the cross-host forward never
|
|
70
|
+
* set it from a request; the trusted local outbox recorder (/api/queue/outbox/record) accepts caller tags by design. */
|
|
71
|
+
const WAKE_TRIGGER_OPENRIG_TAG = "queue:wake-trigger:openrig";
|
|
66
72
|
const AUTO_UNPARK_BLOCKER_TAG_PREFIX = "queue:auto-unpark:blocker-ref:";
|
|
67
73
|
/** The actor on the transition routeToFallback writes; the row's own history is how a later reroute finds the line it wrote. */
|
|
68
74
|
const FALLBACK_ACTOR = "system:queue-fallback";
|
|
@@ -125,33 +131,15 @@ export function classifyNudgeFailure(lastNudgeResult) {
|
|
|
125
131
|
return "unknown";
|
|
126
132
|
}
|
|
127
133
|
export const QUEUE_PRIORITIES = ["routine", "urgent", "critical"];
|
|
128
|
-
/**
|
|
129
|
-
function
|
|
130
|
-
if (
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
if (!["idle", "not-idle", "unknown", "unchecked"].includes(seat) || typeof sameProcess !== "boolean")
|
|
134
|
-
return undefined;
|
|
135
|
-
const readings = ["exact", "ambiguous", "empty", "queued", "hidden", "other", "unrecognized", "unavailable", "unchecked"];
|
|
136
|
-
if (!readings.includes(before) || !readings.includes(after))
|
|
137
|
-
return undefined;
|
|
138
|
-
return { seat, before, after, sameProcess };
|
|
139
|
-
}
|
|
140
|
-
/** #1278: read a stored reading back; an absent or unreadable value reads unknown (null). The
|
|
141
|
-
* reading carries its attempt's timestamp (`at`), and reads unknown unless that is still the row's
|
|
142
|
-
* latest attempt: an older daemon records an attempt without touching this column, so a reading
|
|
143
|
-
* left behind by an earlier attempt must not read as the latest one's. */
|
|
144
|
-
function parseNudgeInputBox(stored, lastAttempt) {
|
|
145
|
-
if (!stored || !lastAttempt)
|
|
146
|
-
return null;
|
|
147
|
-
try {
|
|
148
|
-
const parsed = JSON.parse(stored);
|
|
149
|
-
if (parsed?.at !== lastAttempt)
|
|
150
|
-
return null;
|
|
151
|
-
return inputBoxReading(parsed) ?? null;
|
|
134
|
+
/** Adds the handoff-successor and updated-since filters both list paths share. */
|
|
135
|
+
function pushFollowThroughFilters(opts, conditions, params) {
|
|
136
|
+
if (opts?.handedOffFrom) {
|
|
137
|
+
conditions.push("handed_off_from = ?");
|
|
138
|
+
params.push(opts.handedOffFrom);
|
|
152
139
|
}
|
|
153
|
-
|
|
154
|
-
|
|
140
|
+
if (opts?.updatedSince) {
|
|
141
|
+
conditions.push("ts_updated >= ?");
|
|
142
|
+
params.push(opts.updatedSince);
|
|
155
143
|
}
|
|
156
144
|
}
|
|
157
145
|
/** The message a `--wake-after` park timer carries when its owner gives none. */
|
|
@@ -292,7 +280,6 @@ function detectTable(db, tableName) {
|
|
|
292
280
|
// and named in fieldsElided, never backfilled as empty.
|
|
293
281
|
const COMPACT_ELIDED_FIELDS = [
|
|
294
282
|
"body", "evidenceRef", "humanDetail", "waiting", "chainOfRecord", "replyTo", "humanQuestions", "humanAnswers", "delegatedDecision",
|
|
295
|
-
"lastNudgeInputBox",
|
|
296
283
|
];
|
|
297
284
|
function compactRow(item) {
|
|
298
285
|
const row = { ...item, fieldsElided: [...COMPACT_ELIDED_FIELDS] };
|
|
@@ -437,6 +424,7 @@ export class QueueRepository {
|
|
|
437
424
|
* best-effort {@link maybeNudge} when no store is attached (P34 made that
|
|
438
425
|
* fallback real code rather than a promise in a comment). */
|
|
439
426
|
outbox;
|
|
427
|
+
promptBlockedSessions = new Set();
|
|
440
428
|
resolveOccupantGeneration;
|
|
441
429
|
resolveSessionAddresses;
|
|
442
430
|
wakeRepo;
|
|
@@ -453,8 +441,6 @@ export class QueueRepository {
|
|
|
453
441
|
hasHumanQuestionsColumn;
|
|
454
442
|
hasDelegatedDecisionColumn;
|
|
455
443
|
hasEvidenceRefColumn;
|
|
456
|
-
/** #1278 — migration 116; older fixtures without it record no reading. */
|
|
457
|
-
hasNudgeInputBoxColumn;
|
|
458
444
|
hasMintingGenColumn;
|
|
459
445
|
hasClaimedGenColumn;
|
|
460
446
|
hasQueueTransitionsTable;
|
|
@@ -484,7 +470,6 @@ export class QueueRepository {
|
|
|
484
470
|
this.hasHumanQuestionsColumn = detectQueueColumn(db, "human_questions");
|
|
485
471
|
this.hasDelegatedDecisionColumn = detectQueueColumn(db, "delegated_decision");
|
|
486
472
|
this.hasEvidenceRefColumn = detectQueueColumn(db, "evidence_ref");
|
|
487
|
-
this.hasNudgeInputBoxColumn = detectQueueColumn(db, "last_nudge_input_box");
|
|
488
473
|
this.hasQueueTransitionsTable = detectTable(db, "queue_transitions");
|
|
489
474
|
const transitionColumns = this.hasQueueTransitionsTable
|
|
490
475
|
? new Set(db.prepare("PRAGMA table_info(queue_transitions)").all().map((column) => column.name))
|
|
@@ -561,23 +546,30 @@ export class QueueRepository {
|
|
|
561
546
|
.get(entry.auditPointer);
|
|
562
547
|
return expected === latest?.transition_id;
|
|
563
548
|
}
|
|
549
|
+
/** A wake's source and urgency at the seat's level: the trigger decides the source; the row's priority (urgent or
|
|
550
|
+
* critical) makes it urgent, marked by whoever created the row. */
|
|
551
|
+
wakeAdmission(qitemId, trigger) {
|
|
552
|
+
const row = this.getById(qitemId);
|
|
553
|
+
const urgent = row?.priority === "urgent" || row?.priority === "critical";
|
|
554
|
+
// OpenRig's own row is marked urgent by OpenRig, not by the person whose obligation it's about.
|
|
555
|
+
return { source: trigger, urgent, ...(urgent && row ? { urgentBy: trigger === "openrig" ? "OpenRig" : row.sourceSession } : {}) };
|
|
556
|
+
}
|
|
564
557
|
classifyWakeResult(res) {
|
|
565
|
-
//
|
|
566
|
-
|
|
567
|
-
const reading = inputBox ? { inputBox } : {};
|
|
558
|
+
// Held by the seat's hold or interruption level (on purpose; a retry is held again) is the typing guard's; any other
|
|
559
|
+
// retention is the draft-aware delivery's (a draft, an unreadable input, a native prompt), which can clear.
|
|
568
560
|
if (res.outcome === "retained")
|
|
569
|
-
return { classified: "retained", nudgeResult: res.reason
|
|
570
|
-
? "retained:
|
|
561
|
+
return { classified: "retained", nudgeResult: res.reason === "typing_guard_enabled"
|
|
562
|
+
? "retained:typing_guard" : "retained:draft_aware" };
|
|
571
563
|
if (res.ok)
|
|
572
|
-
return res.verified ? { classified: "verified", nudgeResult: "verified"
|
|
564
|
+
return res.verified ? { classified: "verified", nudgeResult: "verified" } : { classified: "indeterminate", nudgeResult: "delivered-ack-pending" };
|
|
573
565
|
const detail = res.error ?? res.reason ?? "unknown";
|
|
574
566
|
// Input evidence survives receipt removal: an issued paste or uncertain Enter is never an unsent failure.
|
|
575
567
|
const inputUncertain = res.sent === true || res.inputPhase === "attempted" || res.inputPhase === "written"
|
|
576
568
|
|| (res.sent !== false && res.inputPhase !== "not_reached" && (res.reason === "delivery_indeterminate" || res.reason === "submit_failed"));
|
|
577
569
|
if (inputUncertain || isWakeTimeoutSignal(res.reason) || isWakeTimeoutSignal(res.error)) {
|
|
578
|
-
return { classified: "indeterminate", nudgeResult: `indeterminate:${detail}
|
|
570
|
+
return { classified: "indeterminate", nudgeResult: `indeterminate:${detail}` };
|
|
579
571
|
}
|
|
580
|
-
return { classified: "failed", nudgeResult: `failed:${detail}
|
|
572
|
+
return { classified: "failed", nudgeResult: `failed:${detail}` };
|
|
581
573
|
}
|
|
582
574
|
/**
|
|
583
575
|
* W1 (transactional closure): attach the durable wake-intent store AFTER
|
|
@@ -611,9 +603,13 @@ export class QueueRepository {
|
|
|
611
603
|
return { kind: "human-required", level: "ALERT" };
|
|
612
604
|
const destinationHuman = resolveRegisteredHumanAddress(input.destinationSession, registry.entities);
|
|
613
605
|
if (input.action === "create" && destinationHuman !== null) {
|
|
606
|
+
// The person's Slack subscription decides: `every-ask` (the default) posts every ask (ALERT); `urgent-only` posts only
|
|
607
|
+
// one marked --alert, and a plain ask lands on Steering and the TUI (RECORD: below the posting dial, so no post is owed).
|
|
608
|
+
const person = registry.entities.find((entity) => entity.address === destinationHuman);
|
|
609
|
+
const posts = input.humanAlert === true || slackSubscriptionFor(person).preset === "every-ask";
|
|
614
610
|
return input.humanIntent === "update"
|
|
615
611
|
? { kind: "human-update", level: "NOTICE" }
|
|
616
|
-
: { kind: "human-required", level: "ALERT" };
|
|
612
|
+
: { kind: "human-required", level: posts ? "ALERT" : "RECORD" };
|
|
617
613
|
}
|
|
618
614
|
return null;
|
|
619
615
|
}
|
|
@@ -635,7 +631,7 @@ export class QueueRepository {
|
|
|
635
631
|
* `nudge:false` intends no wake ⇒ no intent. A missing outbox is enforced by the
|
|
636
632
|
* guard (fail-closed, MF2), not silently skipped here.
|
|
637
633
|
*/
|
|
638
|
-
stageWakeIntent(successorQitemId, fromSession, toSession, identityProvenance, nudge) {
|
|
634
|
+
stageWakeIntent(successorQitemId, fromSession, toSession, identityProvenance, nudge, trigger = "agent") {
|
|
639
635
|
// No wake intended (nudge:false) ⇒ no durable intent to make durable. The
|
|
640
636
|
// W1-c guard is nudge-aware for the same reason: absence of an intent is a
|
|
641
637
|
// defect only when a wake WAS intended.
|
|
@@ -651,7 +647,9 @@ export class QueueRepository {
|
|
|
651
647
|
toSession,
|
|
652
648
|
identityProvenance,
|
|
653
649
|
bareBody: renderQueueHandoffNudge(successorQitemId, successor?.summary),
|
|
654
|
-
tags: successor?.handedOffFrom
|
|
650
|
+
tags: successor?.handedOffFrom || trigger === "openrig"
|
|
651
|
+
? [...(successor?.handedOffFrom ? [`queue:return:${successor.handedOffFrom}`] : []), ...(trigger === "openrig" ? [WAKE_TRIGGER_OPENRIG_TAG] : [])]
|
|
652
|
+
: undefined,
|
|
655
653
|
});
|
|
656
654
|
}
|
|
657
655
|
recordWakeIntent(input) {
|
|
@@ -662,11 +660,15 @@ export class QueueRepository {
|
|
|
662
660
|
const stampISO = new Date().toISOString();
|
|
663
661
|
const genUuid = this.resolveOccupantGeneration?.(input.fromSession) ?? undefined;
|
|
664
662
|
const frozenEnvelope = wrapPaneEnvelope(input.fromSession, input.toSession, input.bareBody, { stampISO, genUuid });
|
|
663
|
+
const admission = this.wakeAdmission(input.auditPointer, input.tags?.includes(WAKE_TRIGGER_OPENRIG_TAG) ? "openrig" : "agent");
|
|
664
|
+
// An urgent wake's frozen body carries the line naming who marked it, so a person reading it held sees it too; the
|
|
665
|
+
// transport won't add it a second time when it's delivered.
|
|
665
666
|
const record = {
|
|
666
667
|
outboxId: input.outboxId, senderSession: input.fromSession, destinationSession: input.toSession,
|
|
667
|
-
body: frozenEnvelope, tags: input.tags, auditPointer: input.auditPointer, identityProvenance: input.identityProvenance,
|
|
668
|
+
body: admission.urgentBy ? withUrgentLine(frozenEnvelope, admission.urgentBy) : frozenEnvelope, tags: input.tags, auditPointer: input.auditPointer, identityProvenance: input.identityProvenance,
|
|
669
|
+
...(admission.urgent ? { urgency: "urgent" } : {}),
|
|
668
670
|
};
|
|
669
|
-
const target = this.transport?.retentionTarget?.(input.toSession);
|
|
671
|
+
const target = this.transport?.retentionTarget?.(input.toSession, admission);
|
|
670
672
|
if (target)
|
|
671
673
|
this.outbox.retain(record, target);
|
|
672
674
|
else {
|
|
@@ -691,7 +693,7 @@ export class QueueRepository {
|
|
|
691
693
|
toSession: input.destinationSession,
|
|
692
694
|
identityProvenance: input.identityProvenance,
|
|
693
695
|
bareBody: `Blocker ${input.blockerQitemId} resolved; parked qitem ${input.qitemId} is pending. Resume the recorded continuation and update the row.`,
|
|
694
|
-
tags: [AUTO_UNPARK_WAKE_TAG, `${AUTO_UNPARK_BLOCKER_TAG_PREFIX}${input.blockerQitemId}`, `queue:return:${input.blockerQitemId}`],
|
|
696
|
+
tags: [AUTO_UNPARK_WAKE_TAG, WAKE_TRIGGER_OPENRIG_TAG, `${AUTO_UNPARK_BLOCKER_TAG_PREFIX}${input.blockerQitemId}`, `queue:return:${input.blockerQitemId}`],
|
|
695
697
|
});
|
|
696
698
|
}
|
|
697
699
|
deliverWakeIntentAfterCommit(outboxId) {
|
|
@@ -739,12 +741,13 @@ export class QueueRepository {
|
|
|
739
741
|
* hold is left alone; failed/uncertain history permits another attempt. A recovery
|
|
740
742
|
* pass tracks its coalesced members only in memory so each is attempted once per pass.
|
|
741
743
|
*/
|
|
742
|
-
async deliverWakeIntent(outboxId, attempted)
|
|
744
|
+
async deliverWakeIntent(outboxId, attempted = new Set(), // this pass's attempt history, inherited by any release it delivers
|
|
745
|
+
eligible = () => true) {
|
|
743
746
|
if (!this.outbox)
|
|
744
747
|
return "skipped";
|
|
745
748
|
if (!this.transport)
|
|
746
749
|
return "skipped"; // no transport → stays pending for a later drain
|
|
747
|
-
if (attempted
|
|
750
|
+
if (attempted.has(outboxId))
|
|
748
751
|
return "skipped";
|
|
749
752
|
const alreadyHeld = this.outbox.getById(outboxId);
|
|
750
753
|
if (alreadyHeld?.deliveryState === "retained" || alreadyHeld?.deliveryState === "retired") {
|
|
@@ -754,9 +757,9 @@ export class QueueRepository {
|
|
|
754
757
|
}
|
|
755
758
|
let recovering = false;
|
|
756
759
|
const claim = (entry) => {
|
|
757
|
-
if (attempted
|
|
760
|
+
if (!eligible(entry) || attempted.has(entry.outboxId) || !this.outbox.claimForDelivery(entry.outboxId))
|
|
758
761
|
return false;
|
|
759
|
-
attempted
|
|
762
|
+
attempted.add(entry.outboxId);
|
|
760
763
|
recovering ||= entry.deliveryState !== "pending";
|
|
761
764
|
return true;
|
|
762
765
|
};
|
|
@@ -782,6 +785,16 @@ export class QueueRepository {
|
|
|
782
785
|
const first = candidate; // Keep each member's pre-claim uncertainty.
|
|
783
786
|
const intents = [first];
|
|
784
787
|
const correlation = first.tags?.find(tag => tag.startsWith("queue:return:"));
|
|
788
|
+
// Group by outcome at the seat's current level: each member is admitted with its own source and urgency, and only
|
|
789
|
+
// members with the first one's outcome (typed or held) go together. With no level (off, draft-aware), everything is
|
|
790
|
+
// admitted, so a returned result and its resume still go as one send. At a level, a routine wake never rides in on
|
|
791
|
+
// an urgent one, nor an urgent one under a routine one's hold; any other member waits for its own delivery.
|
|
792
|
+
const outcome = (entry) => {
|
|
793
|
+
const trigger = entry.tags?.includes(WAKE_TRIGGER_OPENRIG_TAG) ? "openrig" : "agent";
|
|
794
|
+
const admission = entry.auditPointer ? this.wakeAdmission(entry.auditPointer, trigger) : { source: trigger, urgent: false };
|
|
795
|
+
return this.transport?.retentionTarget?.(entry.destinationSession, { source: admission.source, urgent: admission.urgent }) ? "held" : "typed";
|
|
796
|
+
};
|
|
797
|
+
const firstOutcome = outcome(first);
|
|
785
798
|
if (correlation) {
|
|
786
799
|
const peers = this.db.prepare(`SELECT outbox_id FROM outbox_entries
|
|
787
800
|
WHERE delivery_state IN ('pending','failed','indeterminate') AND destination_session = ? AND substr(outbox_id, 1, ?) = ?
|
|
@@ -789,6 +802,8 @@ export class QueueRepository {
|
|
|
789
802
|
ORDER BY outbox_id`).all(first.destinationSession, WAKE_INTENT_PREFIX.length, WAKE_INTENT_PREFIX, correlation);
|
|
790
803
|
for (const peer of peers) {
|
|
791
804
|
const entry = this.outbox.getById(peer.outbox_id);
|
|
805
|
+
if (outcome(entry) !== firstOutcome)
|
|
806
|
+
continue;
|
|
792
807
|
if (actionable(entry) && claim(entry))
|
|
793
808
|
intents.push(entry);
|
|
794
809
|
}
|
|
@@ -809,9 +824,34 @@ export class QueueRepository {
|
|
|
809
824
|
const qitemId = intent.auditPointer ?? outboxId;
|
|
810
825
|
// Preserve the original envelope/source generation; add context without rewriting its stored bytes.
|
|
811
826
|
const recoveryNotice = recovering ? "Recovered queue notification: delivery may repeat after an earlier unconfirmed attempt.\n" : "";
|
|
812
|
-
|
|
827
|
+
// The group was formed on the first member's outcome, so its own source and urgency reach that same outcome at the
|
|
828
|
+
// send; the other members' bodies keep their own frozen urgent lines.
|
|
829
|
+
const trigger = group[0].tags?.includes(WAKE_TRIGGER_OPENRIG_TAG) ? "openrig" : "agent";
|
|
830
|
+
// The level can change while this send waits for the seat's lease. Under the lease, each member is admitted again with
|
|
831
|
+
// its own source and urgency; only those with the first member's outcome go with this send, and the others go back
|
|
832
|
+
// to their state before this claim (never marked delivered, held or failed) for their own delivery.
|
|
833
|
+
const released = [];
|
|
834
|
+
const recheckMembers = group.length < 2 ? undefined : (holds, held) => {
|
|
835
|
+
const keep = group.filter((entry, i) => {
|
|
836
|
+
if (i === 0)
|
|
837
|
+
return true;
|
|
838
|
+
const memberTrigger = entry.tags?.includes(WAKE_TRIGGER_OPENRIG_TAG) ? "openrig" : "agent";
|
|
839
|
+
const admission = this.wakeAdmission(entry.auditPointer, memberTrigger);
|
|
840
|
+
return holds({ source: admission.source, urgent: admission.urgent }) === held;
|
|
841
|
+
});
|
|
842
|
+
for (const entry of group) {
|
|
843
|
+
if (keep.includes(entry))
|
|
844
|
+
continue;
|
|
845
|
+
this.db.prepare("UPDATE outbox_entries SET delivery_state = ? WHERE outbox_id = ? AND delivery_state = 'sending'").run(entry.deliveryState, entry.outboxId);
|
|
846
|
+
released.push(entry);
|
|
847
|
+
}
|
|
848
|
+
return { text: recoveryNotice + keep.map(entry => entry.body).join("\n"), outboxIds: keep.map(entry => entry.outboxId) };
|
|
849
|
+
};
|
|
850
|
+
const outcome = await this.performWakeSend(qitemId, intent.destinationSession, intent.senderSession, undefined, recoveryNotice + group.map(entry => entry.body).join("\n"), group.map(entry => entry.outboxId), trigger, recheckMembers);
|
|
813
851
|
let reportedState = outcome.classified === "verified" ? "delivered" : outcome.classified;
|
|
814
852
|
for (const intent of group) {
|
|
853
|
+
if (released.includes(intent))
|
|
854
|
+
continue;
|
|
815
855
|
// A no-write retry cannot settle whether an earlier attempt landed.
|
|
816
856
|
const earlierUnknown = intent.deliveryState === "indeterminate" && outcome.classified === "failed";
|
|
817
857
|
const finalState = earlierUnknown ? "indeterminate" : outcome.classified === "verified" ? "delivered" : outcome.classified;
|
|
@@ -825,8 +865,7 @@ export class QueueRepository {
|
|
|
825
865
|
?.slice(AUTO_UNPARK_BLOCKER_TAG_PREFIX.length)
|
|
826
866
|
: undefined;
|
|
827
867
|
const wakeEvent = this.db.transaction(() => {
|
|
828
|
-
|
|
829
|
-
this.recordNudgeAttempt(qitemId, nudgeResult, outcome.inputBox);
|
|
868
|
+
this.recordNudgeAttempt(qitemId, nudgeResult);
|
|
830
869
|
this.outbox.finalizeDelivery(intent.outboxId, finalState);
|
|
831
870
|
if (!blockerRef)
|
|
832
871
|
return null;
|
|
@@ -859,6 +898,14 @@ export class QueueRepository {
|
|
|
859
898
|
if (wakeEvent)
|
|
860
899
|
this.eventBus.notifySubscribers(wakeEvent);
|
|
861
900
|
}
|
|
901
|
+
// Each released member is delivered on its own now, so this drain finishes only once every member has its outcome.
|
|
902
|
+
// One attempt per member for the whole pass: they inherit this pass's history, less themselves (released before any
|
|
903
|
+
// send, so never attempted), so nothing already sent here is regrouped, and each released member gets one attempt.
|
|
904
|
+
for (const entry of released)
|
|
905
|
+
attempted.delete(entry.outboxId);
|
|
906
|
+
for (const entry of released) {
|
|
907
|
+
await this.deliverWakeIntent(entry.outboxId, attempted, eligible).catch((err) => console.error(`Queue wake delivery failed for ${entry.outboxId}:`, err));
|
|
908
|
+
}
|
|
862
909
|
return reportedState;
|
|
863
910
|
}
|
|
864
911
|
/** Deliver after the queue transaction commits, never from inside it. The shared
|
|
@@ -883,8 +930,9 @@ export class QueueRepository {
|
|
|
883
930
|
return this.outbox.reconcileAbandonedSending(WAKE_INTENT_PREFIX);
|
|
884
931
|
}
|
|
885
932
|
/** Recover current notifications once per pass. A snapshot horizon and seek cursor
|
|
886
|
-
* prevent new arrivals or persistent failures from making this pass unbounded.
|
|
887
|
-
|
|
933
|
+
* prevent new arrivals or persistent failures from making this pass unbounded. `stopRequested` is checked before
|
|
934
|
+
* each delivery: a stopped pass leaves the notifications it has not attempted as they are, for the next start. */
|
|
935
|
+
async drainPendingWakeIntents(opts) {
|
|
888
936
|
const tally = { delivered: 0, indeterminate: 0, failed: 0, retained: 0 };
|
|
889
937
|
if (!this.outbox || !this.transport)
|
|
890
938
|
return tally;
|
|
@@ -898,6 +946,8 @@ export class QueueRepository {
|
|
|
898
946
|
AND q.state = 'pending' AND q.destination_session = o.destination_session)`)
|
|
899
947
|
.run(horizon, WAKE_INTENT_PREFIX.length, WAKE_INTENT_PREFIX).changes;
|
|
900
948
|
const attempted = new Set();
|
|
949
|
+
// A stop also refuses every later claim inside a delivery: coalesced peers and members it releases for their own send.
|
|
950
|
+
const eligible = () => !opts?.stopRequested?.();
|
|
901
951
|
let cursor = 0;
|
|
902
952
|
for (;;) {
|
|
903
953
|
const pending = this.db.prepare(`SELECT o.rowid AS id, o.outbox_id FROM outbox_entries o
|
|
@@ -909,8 +959,10 @@ export class QueueRepository {
|
|
|
909
959
|
if (pending.length === 0)
|
|
910
960
|
break;
|
|
911
961
|
for (const intent of pending) {
|
|
962
|
+
if (opts?.stopRequested?.())
|
|
963
|
+
return tally;
|
|
912
964
|
cursor = intent.id;
|
|
913
|
-
const outcome = await this.deliverWakeIntent(intent.outbox_id, attempted);
|
|
965
|
+
const outcome = await this.deliverWakeIntent(intent.outbox_id, attempted, eligible);
|
|
914
966
|
if (outcome !== "skipped")
|
|
915
967
|
tally[outcome]++;
|
|
916
968
|
}
|
|
@@ -941,13 +993,13 @@ export class QueueRepository {
|
|
|
941
993
|
* copies were deleted, refused at the seat boundary instead); this
|
|
942
994
|
* site holds no copy of its own.
|
|
943
995
|
*/
|
|
944
|
-
async maybeNudge(qitemId, destinationSession, nudgeOpt, sourceSession, bodyOverride) {
|
|
996
|
+
async maybeNudge(qitemId, destinationSession, nudgeOpt, sourceSession, bodyOverride, trigger = "agent") {
|
|
945
997
|
if (nudgeOpt === false)
|
|
946
998
|
return;
|
|
947
999
|
if (!this.transport)
|
|
948
1000
|
return;
|
|
949
|
-
const outcome = await this.performWakeSend(qitemId, destinationSession, sourceSession, bodyOverride);
|
|
950
|
-
this.recordNudgeAttempt(qitemId, outcome.nudgeResult
|
|
1001
|
+
const outcome = await this.performWakeSend(qitemId, destinationSession, sourceSession, bodyOverride, undefined, undefined, trigger);
|
|
1002
|
+
this.recordNudgeAttempt(qitemId, outcome.nudgeResult);
|
|
951
1003
|
}
|
|
952
1004
|
/** The following startup intent drain owns durable pending wakes. Legacy packets
|
|
953
1005
|
* and overdue claimed work (not eligible for that drain) still use the nudge path. */
|
|
@@ -955,7 +1007,48 @@ export class QueueRepository {
|
|
|
955
1007
|
const outboxId = `${WAKE_INTENT_PREFIX}${qitemId}`;
|
|
956
1008
|
if (this.outbox?.getById(outboxId) && this.getById(qitemId)?.state === "pending")
|
|
957
1009
|
return;
|
|
958
|
-
|
|
1010
|
+
// Boot recovery is OpenRig's own scheduling, whoever created the row.
|
|
1011
|
+
await this.maybeNudge(qitemId, destinationSession, undefined, sourceSession, undefined, "openrig");
|
|
1012
|
+
}
|
|
1013
|
+
/** One recovery pass on a positive attention-clear transition; the existing sweep remains the backstop. */
|
|
1014
|
+
async retryPromptWakesOnClear(sessionName, state) {
|
|
1015
|
+
if (state === "needs_input") {
|
|
1016
|
+
this.promptBlockedSessions.add(sessionName);
|
|
1017
|
+
return;
|
|
1018
|
+
}
|
|
1019
|
+
if ((state !== "running" && state !== "idle") || !this.promptBlockedSessions.delete(sessionName))
|
|
1020
|
+
return;
|
|
1021
|
+
const addresses = this.resolveSessionAddresses(sessionName);
|
|
1022
|
+
if (!addresses.length)
|
|
1023
|
+
return;
|
|
1024
|
+
// Correlation may expand the group or release members for separate sends. Each claim must
|
|
1025
|
+
// independently qualify for this clear-triggered pass; general recovery keeps its broader policy.
|
|
1026
|
+
const eligible = (entry) => {
|
|
1027
|
+
if (entry.deliveryState !== "failed" || !entry.auditPointer)
|
|
1028
|
+
return false;
|
|
1029
|
+
const current = this.getById(entry.auditPointer), refusal = current?.lastNudgeWireResult;
|
|
1030
|
+
return current?.state === "pending" && addresses.includes(current.destinationSession)
|
|
1031
|
+
&& (refusal === "failed:target_needs_input" || (refusal?.startsWith("failed:Refused:") === true && refusal.includes("interactive prompt")));
|
|
1032
|
+
};
|
|
1033
|
+
const rows = this.db.prepare(`SELECT qitem_id, destination_session, source_session, last_nudge_result
|
|
1034
|
+
FROM queue_items WHERE state = 'pending' AND destination_session IN (${addresses.map(() => "?").join(",")})
|
|
1035
|
+
AND (last_nudge_result LIKE 'failed:Refused:%interactive prompt%' OR last_nudge_result = 'failed:target_needs_input')`)
|
|
1036
|
+
.all(...addresses);
|
|
1037
|
+
const attempted = new Set();
|
|
1038
|
+
for (const row of rows) {
|
|
1039
|
+
const intents = this.outbox ? this.db.prepare(`SELECT outbox_id, delivery_state FROM outbox_entries
|
|
1040
|
+
WHERE audit_pointer = ? AND substr(outbox_id, 1, ?) = ?`).all(row.qitem_id, WAKE_INTENT_PREFIX.length, WAKE_INTENT_PREFIX) : [];
|
|
1041
|
+
if (intents.length) {
|
|
1042
|
+
// Claims, known delivery, uncertainty and deliberate holds are not a prompt-refused wake.
|
|
1043
|
+
for (const intent of intents)
|
|
1044
|
+
if (intent.delivery_state === "failed")
|
|
1045
|
+
await this.deliverWakeIntent(intent.outbox_id, attempted, eligible);
|
|
1046
|
+
}
|
|
1047
|
+
else if (this.getById(row.qitem_id)?.state === "pending") {
|
|
1048
|
+
// Older/non-precommitted nudges retain the existing best-effort path.
|
|
1049
|
+
await this.maybeNudge(row.qitem_id, row.destination_session, undefined, row.source_session);
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
959
1052
|
}
|
|
960
1053
|
/**
|
|
961
1054
|
* W1 (transactional closure): the shared wake-send CORE. Builds the pane
|
|
@@ -970,7 +1063,7 @@ export class QueueRepository {
|
|
|
970
1063
|
* (the "delivered-ack-pending" nudge literal). It is never promoted to
|
|
971
1064
|
* delivered nor demoted to failed.
|
|
972
1065
|
*/
|
|
973
|
-
async performWakeSend(qitemId, destinationSession, sourceSession, bodyOverride, prebuiltText, committedOutboxIds) {
|
|
1066
|
+
async performWakeSend(qitemId, destinationSession, sourceSession, bodyOverride, prebuiltText, committedOutboxIds, trigger = "agent", recheckMembers) {
|
|
974
1067
|
// DEFECT FIX qitem-20260827065907-b9ae334c (S1-class, 3 live specimens): a virtual
|
|
975
1068
|
// @external destination has NO pane — the queue row ITSELF is the gateway
|
|
976
1069
|
// subsystem's input (the Slack connector polls human-destined rows and its own
|
|
@@ -1000,6 +1093,16 @@ export class QueueRepository {
|
|
|
1000
1093
|
if (destClass.class === "unroutable") {
|
|
1001
1094
|
return { classified: "failed", nudgeResult: destClass.teaching };
|
|
1002
1095
|
}
|
|
1096
|
+
// A terminal seat runs a shell or a TUI, not an agent. Typed wake text would run there as a
|
|
1097
|
+
// command line (it carries the row's summary), and nothing there can claim the row. So nothing
|
|
1098
|
+
// is typed; the row stays queued and visible. `failed:` keeps it on the wake ladder, whose
|
|
1099
|
+
// retries come back here and type nothing before it escalates.
|
|
1100
|
+
if (isBoundTerminalSeat(this.db, destinationSession)) {
|
|
1101
|
+
return {
|
|
1102
|
+
classified: "failed",
|
|
1103
|
+
nudgeResult: `failed:terminal-seat: '${destinationSession}' is a terminal seat (runtime: terminal), not an agent, so no wake was typed into it and nothing there can claim this row. The row stays queued; route it to an agent seat.`,
|
|
1104
|
+
};
|
|
1105
|
+
}
|
|
1003
1106
|
const stampISO = new Date().toISOString();
|
|
1004
1107
|
let text;
|
|
1005
1108
|
if (prebuiltText !== undefined) {
|
|
@@ -1029,7 +1132,11 @@ export class QueueRepository {
|
|
|
1029
1132
|
text = held.body;
|
|
1030
1133
|
}
|
|
1031
1134
|
try {
|
|
1032
|
-
const
|
|
1135
|
+
const admission = this.wakeAdmission(qitemId, trigger);
|
|
1136
|
+
const res = await this.transport.send(destinationSession, text, { verify: true, stampISO, actorSession: sourceSession, committedOutboxIds,
|
|
1137
|
+
deliveryId: committedOutboxIds ? undefined : deliveryId, auditPointer: qitemId, queueWake: true,
|
|
1138
|
+
...(trigger === "openrig" ? { openrigNotice: true } : {}), ...(admission.urgentBy ? { urgent: { by: admission.urgentBy } } : {}),
|
|
1139
|
+
...(recheckMembers ? { recheckMembers } : {}) });
|
|
1033
1140
|
// OPR.0.3.2.21.FR-4(c) — wording rename: the prior literal
|
|
1034
1141
|
// "sent-unverified" read as a failure even in the common case
|
|
1035
1142
|
// (delivery confirmed but the synchronous ack window expired,
|
|
@@ -1052,6 +1159,30 @@ export class QueueRepository {
|
|
|
1052
1159
|
return { classified: "failed", nudgeResult: `failed:${msg}` };
|
|
1053
1160
|
}
|
|
1054
1161
|
}
|
|
1162
|
+
/** First committed return of a direct ask, including pre-shared-ID Slack replies. */
|
|
1163
|
+
getHumanAnswer(qitemId, actorSession) {
|
|
1164
|
+
const ask = this.getById(qitemId);
|
|
1165
|
+
if (!this.hasReplyToColumn || !ask || ask.destinationSession !== actorSession
|
|
1166
|
+
|| ask.humanIntent === "update" || !this.isPersonAddress(actorSession))
|
|
1167
|
+
return null;
|
|
1168
|
+
const row = this.db.prepare(`SELECT qitem_id FROM queue_items
|
|
1169
|
+
WHERE reply_to = ? AND source_session = ? AND destination_session = ?
|
|
1170
|
+
AND (EXISTS (SELECT 1 FROM json_each(queue_items.tags) WHERE value = 'human-answer')
|
|
1171
|
+
OR (qitem_id LIKE 'qitem-slack-inbound-%' AND COALESCE(summary, '') NOT LIKE '[Recovered after gap] %'))
|
|
1172
|
+
ORDER BY ts_created, rowid LIMIT 1`).get(qitemId, actorSession, ask.sourceSession);
|
|
1173
|
+
return row ? this.getById(row.qitem_id) : null;
|
|
1174
|
+
}
|
|
1175
|
+
/** The lookup and create's insert run synchronously before its first delivery await.
|
|
1176
|
+
* Every new surface uses the same ID; old IDs and their original bodies remain intact. */
|
|
1177
|
+
async createHumanAnswer(input) {
|
|
1178
|
+
const existing = this.getHumanAnswer(input.inboundReplyTo, input.sourceSession);
|
|
1179
|
+
if (existing)
|
|
1180
|
+
return existing;
|
|
1181
|
+
return this.create({ ...input,
|
|
1182
|
+
qitemId: `qitem-human-answer-${createHash("sha256").update(input.inboundReplyTo).digest("hex").slice(0, 20)}`,
|
|
1183
|
+
tags: [...new Set([...(input.tags ?? []), "human-answer"])],
|
|
1184
|
+
});
|
|
1185
|
+
}
|
|
1055
1186
|
async create(input) {
|
|
1056
1187
|
// FOUNDER ROOT INVARIANT (2026-08-27, supersedes 51-09 incr 4 / ruling cb19867f Q2):
|
|
1057
1188
|
// a LOCAL write stores the bare transport identity — no self-host suffix inside one
|
|
@@ -1062,13 +1193,16 @@ export class QueueRepository {
|
|
|
1062
1193
|
throw destinationValidationError("destination_session", input.destinationSession, this.loadHumanRegistryFn);
|
|
1063
1194
|
}
|
|
1064
1195
|
let wakeStaged = false;
|
|
1196
|
+
// A row OpenRig creates itself (a sweep finding, an escalation, a health or mode notice) keeps its source for the
|
|
1197
|
+
// record, but its wake comes from OpenRig: the seat named as source didn't send it.
|
|
1198
|
+
const wakeFrom = input.wakeTrigger === "openrig" && !isOpenRigSender(input.sourceSession) ? OPENRIG_SENDER : input.sourceSession;
|
|
1065
1199
|
const txn = this.db.transaction(() => {
|
|
1066
1200
|
const created = this.createInTransactionalContext(input);
|
|
1067
1201
|
if (this.outbox && input.nudge !== false) {
|
|
1068
1202
|
try {
|
|
1069
1203
|
// A savepoint removes any partial intent when staging fails, while
|
|
1070
1204
|
// preserving ordinary create's existing acceptance of the task.
|
|
1071
|
-
this.db.transaction(() => this.stageWakeIntent(created.qitemId,
|
|
1205
|
+
this.db.transaction(() => this.stageWakeIntent(created.qitemId, wakeFrom, input.destinationSession, input.identityProvenance ?? null, input.nudge, input.wakeTrigger))();
|
|
1072
1206
|
wakeStaged = true;
|
|
1073
1207
|
}
|
|
1074
1208
|
catch (err) {
|
|
@@ -1129,7 +1263,7 @@ export class QueueRepository {
|
|
|
1129
1263
|
this.deliverWakeIntentAfterCommit(`${WAKE_INTENT_PREFIX}${id}`);
|
|
1130
1264
|
}
|
|
1131
1265
|
else {
|
|
1132
|
-
await this.maybeNudge(id, input.destinationSession, input.nudge, input.
|
|
1266
|
+
await this.maybeNudge(id, input.destinationSession, input.nudge, wakeFrom, undefined, input.wakeTrigger);
|
|
1133
1267
|
}
|
|
1134
1268
|
return this.getByIdOrThrow(id);
|
|
1135
1269
|
}
|
|
@@ -1220,11 +1354,13 @@ export class QueueRepository {
|
|
|
1220
1354
|
throw new QueueRepositoryError("invalid_human_questions", "humanQuestions require the current queue schema; they were not saved.");
|
|
1221
1355
|
humanQuestions = parsed.questions;
|
|
1222
1356
|
}
|
|
1357
|
+
this.assertHumanAlert(input.humanAlert, input.destinationSession, input.humanIntent);
|
|
1223
1358
|
const id = input.qitemId ?? newQitemId();
|
|
1224
1359
|
const ts = new Date().toISOString();
|
|
1225
1360
|
const priority = input.priority ?? "routine";
|
|
1226
1361
|
const tier = input.tier ?? null;
|
|
1227
|
-
const
|
|
1362
|
+
const taggedAsk = withHumanAlertTag(input.tags, input.humanAlert);
|
|
1363
|
+
const tags = taggedAsk ? JSON.stringify(taggedAsk) : null;
|
|
1228
1364
|
const chain = input.chainOfRecord ? JSON.stringify(input.chainOfRecord) : null;
|
|
1229
1365
|
const expiresAt = input.expiresAt ?? null;
|
|
1230
1366
|
const targetRepo = input.targetRepo ?? null;
|
|
@@ -1264,6 +1400,7 @@ export class QueueRepository {
|
|
|
1264
1400
|
const notification = this.classifyOwnerNotification({
|
|
1265
1401
|
action: "create",
|
|
1266
1402
|
humanIntent: input.humanIntent,
|
|
1403
|
+
humanAlert: input.humanAlert,
|
|
1267
1404
|
destinationSession: input.destinationSession,
|
|
1268
1405
|
nextState: "pending",
|
|
1269
1406
|
});
|
|
@@ -1287,6 +1424,35 @@ export class QueueRepository {
|
|
|
1287
1424
|
});
|
|
1288
1425
|
return { qitemId: id, persistedEvent };
|
|
1289
1426
|
}
|
|
1427
|
+
/** humanAlert marks an ask to a person: a person by address or by the registry (a registered person may be addressed as
|
|
1428
|
+
* their seat), as the classifier reads it, and never an update. */
|
|
1429
|
+
assertHumanAlert(humanAlert, destination, humanIntent) {
|
|
1430
|
+
if (humanAlert != null && typeof humanAlert !== "boolean") {
|
|
1431
|
+
throw new QueueRepositoryError("invalid_human_notification", "humanAlert is true or false.");
|
|
1432
|
+
}
|
|
1433
|
+
if (humanAlert !== true)
|
|
1434
|
+
return;
|
|
1435
|
+
if (!this.isPersonAddress(destination) || humanIntent === "update") {
|
|
1436
|
+
throw new QueueRepositoryError("invalid_human_notification", "humanAlert marks an ask to a person as alert-worthy: it needs a human destination, and an update isn't an ask.");
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
/** A person by address or by the registry: a registered person may be addressed as their seat or an alias. */
|
|
1440
|
+
isPersonAddress(destination) {
|
|
1441
|
+
if (isHumanSeatSessionRef(destination))
|
|
1442
|
+
return true;
|
|
1443
|
+
const registry = this.loadHumanRegistryFn();
|
|
1444
|
+
return registry.ok && resolveRegisteredHumanAddress(destination, registry.entities) !== null;
|
|
1445
|
+
}
|
|
1446
|
+
/** The asked person, when a different registered person is acting on what was asked of them; else null. An agent, the
|
|
1447
|
+
* asked person under another spelling, and an ask to no registered person aren't someone else. */
|
|
1448
|
+
askedSomeoneElse(actorSession, askedSession) {
|
|
1449
|
+
const registry = this.loadHumanRegistryFn();
|
|
1450
|
+
if (!registry.ok)
|
|
1451
|
+
return null;
|
|
1452
|
+
const asked = resolveRegisteredHumanAddress(askedSession, registry.entities);
|
|
1453
|
+
const actor = resolveRegisteredHumanAddress(actorSession, registry.entities);
|
|
1454
|
+
return asked && actor && actor !== asked ? asked : null;
|
|
1455
|
+
}
|
|
1290
1456
|
validateReplyTo(replyTo, humanIntent) {
|
|
1291
1457
|
if (humanIntent !== "update") {
|
|
1292
1458
|
throw new QueueRepositoryError("reply_to_requires_update", "replyTo is accepted only with humanIntent update; a decision keeps its own thread so its reply stays unambiguous.");
|
|
@@ -1314,12 +1480,14 @@ export class QueueRepository {
|
|
|
1314
1480
|
if (!this.validateRig(input.toSession)) {
|
|
1315
1481
|
throw destinationValidationError("to_session", input.toSession, this.loadHumanRegistryFn);
|
|
1316
1482
|
}
|
|
1483
|
+
this.assertHumanAlert(input.humanAlert, input.toSession);
|
|
1317
1484
|
const newId = newQitemId();
|
|
1318
1485
|
const ts = new Date().toISOString();
|
|
1319
1486
|
const body = input.body ?? source.body;
|
|
1320
1487
|
const priority = input.priority ?? source.priority;
|
|
1321
1488
|
const tier = input.tier ?? source.tier;
|
|
1322
|
-
const
|
|
1489
|
+
const handedTags = withHumanAlertTag(input.tags ?? source.tags, input.humanAlert);
|
|
1490
|
+
const tags = handedTags ? JSON.stringify(handedTags) : null;
|
|
1323
1491
|
const chain = JSON.stringify([...(source.chainOfRecord ?? []), source.qitemId]);
|
|
1324
1492
|
const targetRepo = input.targetRepo === undefined ? source.targetRepo : input.targetRepo;
|
|
1325
1493
|
// OPR.0.4.4.19 FR-4/FR-5 — the handoff authors a NEW qitem; when that
|
|
@@ -1382,6 +1550,7 @@ export class QueueRepository {
|
|
|
1382
1550
|
const successorNotification = this.classifyOwnerNotification({
|
|
1383
1551
|
action: "create",
|
|
1384
1552
|
destinationSession: input.toSession,
|
|
1553
|
+
humanAlert: input.humanAlert,
|
|
1385
1554
|
nextState: "pending",
|
|
1386
1555
|
});
|
|
1387
1556
|
this.transitionLog.append({
|
|
@@ -1463,12 +1632,14 @@ export class QueueRepository {
|
|
|
1463
1632
|
if (!this.validateRig(input.toSession)) {
|
|
1464
1633
|
throw destinationValidationError("to_session", input.toSession, this.loadHumanRegistryFn);
|
|
1465
1634
|
}
|
|
1635
|
+
this.assertHumanAlert(input.humanAlert, input.toSession);
|
|
1466
1636
|
const newId = newQitemId();
|
|
1467
1637
|
const ts = new Date().toISOString();
|
|
1468
1638
|
const body = input.body ?? source.body;
|
|
1469
1639
|
const priority = input.priority ?? source.priority;
|
|
1470
1640
|
const tier = input.tier ?? source.tier;
|
|
1471
|
-
const
|
|
1641
|
+
const handedTags = withHumanAlertTag(input.tags ?? source.tags, input.humanAlert);
|
|
1642
|
+
const tags = handedTags ? JSON.stringify(handedTags) : null;
|
|
1472
1643
|
const chain = JSON.stringify([...(source.chainOfRecord ?? []), source.qitemId]);
|
|
1473
1644
|
const targetRepo = input.targetRepo === undefined ? source.targetRepo : input.targetRepo;
|
|
1474
1645
|
// OPR.0.4.4.19 FR-4/FR-5 — same new-item enforcement as handoff().
|
|
@@ -1528,6 +1699,7 @@ export class QueueRepository {
|
|
|
1528
1699
|
const successorNotification = this.classifyOwnerNotification({
|
|
1529
1700
|
action: "create",
|
|
1530
1701
|
destinationSession: input.toSession,
|
|
1702
|
+
humanAlert: input.humanAlert,
|
|
1531
1703
|
nextState: "pending",
|
|
1532
1704
|
});
|
|
1533
1705
|
this.transitionLog.append({
|
|
@@ -2065,6 +2237,8 @@ export class QueueRepository {
|
|
|
2065
2237
|
throw new QueueRepositoryError("invalid_human_notification", "An informational delivery cannot become a human approval park; author a separate decision request.");
|
|
2066
2238
|
}
|
|
2067
2239
|
const isHumanPark = input.state === "blocked" && isHumanSeatSession(effectiveBlockedOn);
|
|
2240
|
+
// A done close can also store the artifact the work produced, so the finished row carries its link.
|
|
2241
|
+
const isDoneClose = input.state === "done";
|
|
2068
2242
|
// OPR.0.5.1 slice-51-06 D2 — summary/evidence_ref are persist-able ONLY at a human-seat park
|
|
2069
2243
|
// (see the FR-6 note below). Silently ignoring them on any other transition is a data-loss trap
|
|
2070
2244
|
// (the operator believes the metadata was saved). HARD-REJECT before ANY UPDATE/log/event so the
|
|
@@ -2074,11 +2248,14 @@ export class QueueRepository {
|
|
|
2074
2248
|
const invalidFields = [];
|
|
2075
2249
|
if (input.summary != null)
|
|
2076
2250
|
invalidFields.push("summary");
|
|
2077
|
-
if (input.evidenceRef != null)
|
|
2251
|
+
if (input.evidenceRef != null && !isDoneClose)
|
|
2078
2252
|
invalidFields.push("evidenceRef");
|
|
2079
2253
|
if (invalidFields.length > 0) {
|
|
2080
2254
|
const flags = invalidFields.map((f) => (f === "summary" ? "--summary" : "--evidence-ref")).join(" / ");
|
|
2081
|
-
|
|
2255
|
+
const where = invalidFields.map((f) => f === "summary"
|
|
2256
|
+
? "summary persists on a human-seat park, or on its own (rig queue update <id> --summary … with no --state)"
|
|
2257
|
+
: "evidenceRef persists on a human-seat park or a done close").join("; ");
|
|
2258
|
+
throw new QueueRepositoryError("summary_evidence_not_persistable", `${where}; the '${input.state}' transition cannot store ${invalidFields.length > 1 ? "them" : "it"}. Remove ${flags}, or use one of those.`, { invalidFields });
|
|
2082
2259
|
}
|
|
2083
2260
|
}
|
|
2084
2261
|
// SWEEP-a (shape f2576102) — closure/blocked-field COHERENCE, beside the reference
|
|
@@ -2097,7 +2274,7 @@ export class QueueRepository {
|
|
|
2097
2274
|
// so superseded is distinguishable from abandoned (a plain cancel keeps closureReason=null).
|
|
2098
2275
|
const isSupersedeCancel = input.state === "canceled" && input.closureReason === "superseded";
|
|
2099
2276
|
if (input.state !== "done" && !isParkRecord && !isHandoffClose && !isSupersedeCancel && (input.closureReason != null || input.closureTarget != null)) {
|
|
2100
|
-
throw new QueueRepositoryError("closure_fields_not_admitted", `closure_reason/closure_target persist only on state=done, the blocked park-record form, the handoff close, or the superseded cancel; the '${input.state}' transition cannot store them. Close the item (--state done --closure-reason …) or drop the flags.`, {});
|
|
2277
|
+
throw new QueueRepositoryError("closure_fields_not_admitted", `closure_reason/closure_target persist only on state=done, the blocked park-record form, the handoff close, or the superseded cancel; the '${input.state}' transition cannot store them. Close the item (--state done --closure-reason …) or drop the flags. To cancel it: --state done --closure-reason canceled.`, {});
|
|
2101
2278
|
}
|
|
2102
2279
|
// A supersession must name WHAT replaced this row — fail LOUD before any write (never a silent
|
|
2103
2280
|
// no-op leaving a stale row, the dead-signal class), symmetric with handed_off_to's target rule.
|
|
@@ -2246,11 +2423,14 @@ export class QueueRepository {
|
|
|
2246
2423
|
.run(input.state, ts, validation.closureReason, validation.closureTarget, input.handedOffTo ?? null, nextBlockedOn, nextResolution, input.qitemId);
|
|
2247
2424
|
// FR-6: park-time summary/evidence_ref are PERSISTED onto the existing
|
|
2248
2425
|
// item (not merely validated-then-dropped) — visible to the attention
|
|
2249
|
-
// query and to Packet 2.
|
|
2426
|
+
// query and to Packet 2. A done close writes evidence_ref the same way.
|
|
2250
2427
|
if (isHumanPark) {
|
|
2251
2428
|
this.persistSummary(input.qitemId, input.summary ?? null);
|
|
2252
2429
|
this.persistEvidenceRef(input.qitemId, input.evidenceRef ?? null);
|
|
2253
2430
|
}
|
|
2431
|
+
else if (isDoneClose) {
|
|
2432
|
+
this.persistEvidenceRef(input.qitemId, input.evidenceRef ?? null);
|
|
2433
|
+
}
|
|
2254
2434
|
const transition = this.transitionLog.append({
|
|
2255
2435
|
qitemId: input.qitemId,
|
|
2256
2436
|
state: input.state,
|
|
@@ -2603,7 +2783,7 @@ export class QueueRepository {
|
|
|
2603
2783
|
const item = this.getById(input.qitemId);
|
|
2604
2784
|
if (item?.state !== "pending" || item.humanIntent === "update"
|
|
2605
2785
|
|| item.destinationSession !== input.actorSession
|
|
2606
|
-
||
|
|
2786
|
+
|| !this.isPersonAddress(item.destinationSession))
|
|
2607
2787
|
return null;
|
|
2608
2788
|
const text = input.decision.trim();
|
|
2609
2789
|
const unanswered = this.hasHumanQuestionsColumn && text && text !== "[file reply]"
|
|
@@ -2886,6 +3066,7 @@ export class QueueRepository {
|
|
|
2886
3066
|
conditions.push("target_repo = ?");
|
|
2887
3067
|
params.push(opts.targetRepo);
|
|
2888
3068
|
}
|
|
3069
|
+
pushFollowThroughFilters(opts, conditions, params);
|
|
2889
3070
|
const where = conditions.length > 0 ? `WHERE ${conditions.join(" AND ")}` : "";
|
|
2890
3071
|
const columns = opts?.compact ? this.compactColumns() : "*";
|
|
2891
3072
|
const useActiveFirst = !!(opts?.rig || opts?.asSession || opts?.activeOnly);
|
|
@@ -2992,11 +3173,22 @@ export class QueueRepository {
|
|
|
2992
3173
|
// clause: a qitem parked as state=blocked on a HUMAN-seat blocker is a
|
|
2993
3174
|
// decision the human owes. Blocking on another qitem (today's shipped
|
|
2994
3175
|
// usage) does NOT match — is_human_seat_session rejects qitem ids.
|
|
3176
|
+
// An ask to a person lands here by its classification (isCurrentHumanAsk), alerted or not, so one to a registered
|
|
3177
|
+
// person addressed as a seat or an alias is on Steering too; a reroute ends that.
|
|
3178
|
+
const quietAsk = this.hasOwnerNotificationColumns ? `
|
|
3179
|
+
OR EXISTS (SELECT 1 FROM queue_transitions ask
|
|
3180
|
+
WHERE ask.qitem_id = queue_items.qitem_id AND ask.state = 'pending'
|
|
3181
|
+
AND ask.owner_notification_kind = 'human-required'
|
|
3182
|
+
AND ask.transition_id = (SELECT MAX(latest.transition_id) FROM queue_transitions latest
|
|
3183
|
+
WHERE latest.qitem_id = queue_items.qitem_id AND latest.owner_notification_level IS NOT NULL
|
|
3184
|
+
AND latest.owner_notification_kind <> 'human-decision-resolved')
|
|
3185
|
+
AND NOT EXISTS (SELECT 1 FROM queue_transitions moved WHERE moved.qitem_id = ask.qitem_id
|
|
3186
|
+
AND moved.transition_id > ask.transition_id AND moved.transition_note LIKE 'fallback-routed:%'))` : "";
|
|
2995
3187
|
const conditions = [
|
|
2996
3188
|
`state IN (${statePlaceholders})`,
|
|
2997
3189
|
`(
|
|
2998
3190
|
is_human_seat_session(destination_session) = 1
|
|
2999
|
-
OR (state = 'blocked' AND is_human_seat_session(blocked_on) = 1)
|
|
3191
|
+
OR (state = 'blocked' AND is_human_seat_session(blocked_on) = 1)${quietAsk}
|
|
3000
3192
|
)`,
|
|
3001
3193
|
];
|
|
3002
3194
|
if (this.hasHumanIntentColumn)
|
|
@@ -3016,6 +3208,7 @@ export class QueueRepository {
|
|
|
3016
3208
|
conditions.push("target_repo = ?");
|
|
3017
3209
|
params.push(opts.targetRepo);
|
|
3018
3210
|
}
|
|
3211
|
+
pushFollowThroughFilters(opts, conditions, params);
|
|
3019
3212
|
params.push(limit);
|
|
3020
3213
|
const sql = `
|
|
3021
3214
|
SELECT * FROM queue_items
|
|
@@ -3264,8 +3457,11 @@ export class QueueRepository {
|
|
|
3264
3457
|
: item.state === "blocked"
|
|
3265
3458
|
? resolveRegisteredHumanAddress(item.blockedOn, registry.entities)
|
|
3266
3459
|
: resolveRegisteredHumanAddress(item.destinationSession, registry.entities);
|
|
3460
|
+
// An ask placed on Steering without an alert (RECORD) owes no post: its ledger reports a real receipt (a posting
|
|
3461
|
+
// dial set to RECORD posts it) and never a missing one.
|
|
3267
3462
|
return humanAddress
|
|
3268
|
-
? { notificationKey: `${item.qitemId}:${transition.transitionId}`, startedAt: transition.ts
|
|
3463
|
+
? { notificationKey: `${item.qitemId}:${transition.transitionId}`, startedAt: transition.ts,
|
|
3464
|
+
...(transition.ownerNotificationLevel === "RECORD" ? { quiet: true } : {}) }
|
|
3269
3465
|
: "inactive";
|
|
3270
3466
|
}
|
|
3271
3467
|
/** OPR.0.5.6.14 — derive the current episode's delivery ledger. Receipt
|
|
@@ -3283,21 +3479,46 @@ export class QueueRepository {
|
|
|
3283
3479
|
humanNotificationPostedThisEpisode(qitemId, listed) {
|
|
3284
3480
|
if (!this.hasQueueTransitionsTable)
|
|
3285
3481
|
return false;
|
|
3286
|
-
// Only the ask's own notification binds a recipient: create writes it in state pending, to the destination of
|
|
3287
|
-
// that moment. A park notice (its recipient is not retained), a resolution notice, or a later destination change
|
|
3288
|
-
// (routeToFallback opens no new episode) cannot establish that the current destination received this ask.
|
|
3289
3482
|
const owners = listed?.owners ?? this.transitionLog.ownerNotificationsForQitems([qitemId]).get(qitemId) ?? [];
|
|
3483
|
+
const owner = this.currentAskNotification(qitemId, owners);
|
|
3484
|
+
if (!owner)
|
|
3485
|
+
return false;
|
|
3486
|
+
// The ledger's episode exists only when the destination resolves to a registered human (aliases included).
|
|
3487
|
+
const ledger = listed ? listed.ledger : this.deliveryLedger(qitemId, owners);
|
|
3488
|
+
return ledger !== null && ledger.outcome === "posted" && ledger.episode?.notificationKey === `${qitemId}:${owner.transitionId}`;
|
|
3489
|
+
}
|
|
3490
|
+
/** The ask's own notification while it still binds its recipient. Only that notification does: create writes it in
|
|
3491
|
+
* state pending, to the destination of that moment. A park notice (its recipient is not retained), a resolution notice,
|
|
3492
|
+
* or a later destination change (routeToFallback opens no new episode) can't establish who has the ask now. */
|
|
3493
|
+
currentAskNotification(qitemId, owners) {
|
|
3290
3494
|
const owner = owners[0];
|
|
3291
3495
|
if (!owner || owner.state !== "pending")
|
|
3292
|
-
return
|
|
3496
|
+
return null;
|
|
3293
3497
|
if (owner.ownerNotificationKind !== "human-required" && owner.ownerNotificationKind !== "human-update")
|
|
3294
|
-
return
|
|
3498
|
+
return null;
|
|
3295
3499
|
const rerouted = this.db.prepare("SELECT 1 FROM queue_transitions WHERE qitem_id = ? AND transition_id > ? AND transition_note LIKE 'fallback-routed:%' LIMIT 1").get(qitemId, owner.transitionId);
|
|
3296
|
-
|
|
3500
|
+
return rerouted ? null : owner;
|
|
3501
|
+
}
|
|
3502
|
+
/** True when this row is an ask to a person that's still theirs: its own create-time human-required notification, at
|
|
3503
|
+
* any level, not rerouted since. Every attention reader (listAttention, the list route, the Feed) uses this one
|
|
3504
|
+
* membership, whatever happened to its Slack post. */
|
|
3505
|
+
isCurrentHumanAsk(qitemId, listed) {
|
|
3506
|
+
if (!this.hasQueueTransitionsTable)
|
|
3297
3507
|
return false;
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3508
|
+
const owners = listed?.owners ?? this.transitionLog.ownerNotificationsForQitems([qitemId]).get(qitemId) ?? [];
|
|
3509
|
+
return this.currentAskNotification(qitemId, owners)?.ownerNotificationKind === "human-required";
|
|
3510
|
+
}
|
|
3511
|
+
/** True when this row's current ask was placed on Steering without a Slack alert (human-required at RECORD) and is still
|
|
3512
|
+
* with that person (not rerouted): it waits on them there by design, like a posted ask, so it isn't stuck and nothing
|
|
3513
|
+
* re-offers it. */
|
|
3514
|
+
humanAskWithoutAlert(qitemId, listed) {
|
|
3515
|
+
if (!this.hasQueueTransitionsTable)
|
|
3516
|
+
return false;
|
|
3517
|
+
const owners = listed?.owners ?? this.transitionLog.ownerNotificationsForQitems([qitemId]).get(qitemId) ?? [];
|
|
3518
|
+
const owner = this.currentAskNotification(qitemId, owners);
|
|
3519
|
+
// Slack never posts a quiet ask; one that was posted anyway is a posted ask, reported by its receipt.
|
|
3520
|
+
return owner?.ownerNotificationKind === "human-required" && owner.ownerNotificationLevel === "RECORD"
|
|
3521
|
+
&& !this.humanNotificationPostedThisEpisode(qitemId, listed);
|
|
3301
3522
|
}
|
|
3302
3523
|
/** owners: the row's owner notifications as ownerNotificationsForQitems gives them, when the caller read them. */
|
|
3303
3524
|
deliveryLedger(qitemId, owners) {
|
|
@@ -3369,6 +3590,8 @@ export class QueueRepository {
|
|
|
3369
3590
|
const failed = currentNotes.find((note) => note.startsWith("slack-owner-notification-transport-failed "));
|
|
3370
3591
|
if (failed)
|
|
3371
3592
|
return { outcome: "transport-failed", detail: failed, episode };
|
|
3593
|
+
if (episode?.quiet)
|
|
3594
|
+
return null;
|
|
3372
3595
|
const startedAt = episode?.startedAt ?? item.tsCreated;
|
|
3373
3596
|
const gatewayRouted = episode !== null || item.lastNudgeResult?.startsWith("gateway-owned") === true;
|
|
3374
3597
|
if (gatewayRouted) {
|
|
@@ -3383,22 +3606,9 @@ export class QueueRepository {
|
|
|
3383
3606
|
/** The grace window before a receiptless gateway-routed row honestly reads
|
|
3384
3607
|
* never-posted (the connector sweep cadence bounds normal posting latency). */
|
|
3385
3608
|
static NEVER_POSTED_WINDOW_MS = 120_000;
|
|
3386
|
-
/**
|
|
3387
|
-
|
|
3388
|
-
* transport returned one. It is written with the attempt every time, so an attempt without a
|
|
3389
|
-
* reading clears an earlier attempt's reading rather than leaving it to read as current.
|
|
3390
|
-
*/
|
|
3391
|
-
recordNudgeAttempt(qitemId, result, inputBox) {
|
|
3609
|
+
/** Record one wake attempt. */
|
|
3610
|
+
recordNudgeAttempt(qitemId, result) {
|
|
3392
3611
|
const ts = new Date().toISOString();
|
|
3393
|
-
if (this.hasNudgeInputBoxColumn) {
|
|
3394
|
-
const reading = inputBoxReading(inputBox);
|
|
3395
|
-
this.db
|
|
3396
|
-
.prepare(`UPDATE queue_items
|
|
3397
|
-
SET last_nudge_attempt = ?, last_nudge_result = ?, last_nudge_input_box = ?
|
|
3398
|
-
WHERE qitem_id = ?`)
|
|
3399
|
-
.run(ts, result, reading ? JSON.stringify({ ...reading, at: ts }) : null, qitemId);
|
|
3400
|
-
return;
|
|
3401
|
-
}
|
|
3402
3612
|
this.db
|
|
3403
3613
|
.prepare(`UPDATE queue_items
|
|
3404
3614
|
SET last_nudge_attempt = ?, last_nudge_result = ?
|
|
@@ -3583,6 +3793,30 @@ export class QueueRepository {
|
|
|
3583
3793
|
txn();
|
|
3584
3794
|
return rows.length;
|
|
3585
3795
|
}
|
|
3796
|
+
/**
|
|
3797
|
+
* Slice 16: a runtime switch moves the seat's in-progress claims from its predecessor's generation to its successor's,
|
|
3798
|
+
* inside the switch's commit, so none is released or held twice. Only in-progress rows the predecessor claimed move;
|
|
3799
|
+
* pending, blocked and unstamped rows are untouched. Appends an audit transition per item. Returns the count moved.
|
|
3800
|
+
*/
|
|
3801
|
+
transferClaimsByGeneration(fromGeneration, toGeneration, note) {
|
|
3802
|
+
if (!this.hasClaimedGenColumn || !fromGeneration || !toGeneration)
|
|
3803
|
+
return 0;
|
|
3804
|
+
const rows = this.db
|
|
3805
|
+
.prepare(`SELECT qitem_id FROM queue_items WHERE state = 'in-progress' AND claimed_by_generation_uuid = ?`)
|
|
3806
|
+
.all(fromGeneration);
|
|
3807
|
+
if (rows.length === 0)
|
|
3808
|
+
return 0;
|
|
3809
|
+
const ts = new Date().toISOString();
|
|
3810
|
+
const txn = this.db.transaction(() => {
|
|
3811
|
+
for (const { qitem_id } of rows) {
|
|
3812
|
+
this.db.prepare(`UPDATE queue_items SET claimed_by_generation_uuid = ?, ts_updated = ? WHERE qitem_id = ?`)
|
|
3813
|
+
.run(toGeneration, ts, qitem_id);
|
|
3814
|
+
this.transitionLog.append({ qitemId: qitem_id, state: "in-progress", actorSession: "system", transitionNote: note });
|
|
3815
|
+
}
|
|
3816
|
+
});
|
|
3817
|
+
txn();
|
|
3818
|
+
return rows.length;
|
|
3819
|
+
}
|
|
3586
3820
|
activityReader;
|
|
3587
3821
|
attachActivityReader(reader) { this.activityReader = reader; }
|
|
3588
3822
|
workflowGuidance;
|
|
@@ -3618,9 +3852,13 @@ export class QueueRepository {
|
|
|
3618
3852
|
if (view && ["pending", "in-progress"].includes(view.state)) {
|
|
3619
3853
|
// #514 — the unclaimed sweep skips a pending ask already posted to its human in the current
|
|
3620
3854
|
// episode (same predicate as runStuckSweep), so the view must not promise that sweep.
|
|
3621
|
-
const
|
|
3855
|
+
const posted = view.state === "pending" && this.humanNotificationPostedThisEpisode(qitemId, listed);
|
|
3856
|
+
const onSteering = !posted && view.state === "pending" && this.humanAskWithoutAlert(qitemId, listed);
|
|
3857
|
+
const awaitingHuman = posted || onSteering;
|
|
3622
3858
|
if (awaitingHuman) {
|
|
3623
|
-
view.nextBackstop = { owner: view.owner, mechanism:
|
|
3859
|
+
view.nextBackstop = { owner: view.owner, mechanism: onSteering
|
|
3860
|
+
? "none (on Steering for the human, with no Slack alert; awaiting their decision)"
|
|
3861
|
+
: "none (posted to the human; awaiting their decision)", dueAt: null, intervalSeconds: null };
|
|
3624
3862
|
}
|
|
3625
3863
|
// Quiet hours: a held ask is owned by its window's release job until it posts.
|
|
3626
3864
|
const quiet = awaitingHuman ? null : quietCustodyBackstop(view.owner, quietHoldCustody(this.db, qitemId));
|
|
@@ -3634,6 +3872,13 @@ export class QueueRepository {
|
|
|
3634
3872
|
view.laterBackstop = { ...view.nextBackstop, note: "Conditional safety net; current delivery/recovery ownership is evaluated first." };
|
|
3635
3873
|
view.nextBackstop = recovery;
|
|
3636
3874
|
}
|
|
3875
|
+
else if (!awaitingHuman && view.state === "pending" && this.db.prepare("SELECT last_nudge_result FROM queue_items WHERE qitem_id = ?")
|
|
3876
|
+
.get(qitemId)?.last_nudge_result === "retained:typing_guard") {
|
|
3877
|
+
// Held at the seat on purpose: not stuck, and not picked up. Nothing replays it; reading or delivering it is a
|
|
3878
|
+
// deliberate step.
|
|
3879
|
+
view.nextBackstop = { owner: view.owner, mechanism: "held by the seat's typing guard", dueAt: null, intervalSeconds: null, held: true,
|
|
3880
|
+
note: `Nothing was typed into ${view.owner}. Read it with rig seat held-messages ${view.owner}; changing the seat's level doesn't replay it.` };
|
|
3881
|
+
}
|
|
3637
3882
|
}
|
|
3638
3883
|
if (view?.state === "blocked") {
|
|
3639
3884
|
// A row parked on a person carries that person's notification, which quiet hours can hold. Its quiet custody is the
|
|
@@ -3684,6 +3929,7 @@ export class QueueRepository {
|
|
|
3684
3929
|
lastMeaningfulAt: meaningful?.at,
|
|
3685
3930
|
activity: activity?.activity,
|
|
3686
3931
|
needsInput: activity?.needsInput.count,
|
|
3932
|
+
needsInputReason: activity?.needsInput.reason,
|
|
3687
3933
|
claimedAt: row.claimed_at,
|
|
3688
3934
|
lastHeartbeat: row.last_heartbeat,
|
|
3689
3935
|
postClaimMotionCount: 0, // this reader supplies the current meaningful timestamp
|
|
@@ -3727,8 +3973,6 @@ export class QueueRepository {
|
|
|
3727
3973
|
lastNudgeAttempt: row.last_nudge_attempt,
|
|
3728
3974
|
lastNudgeResult: presentedNudgeResult(row.last_nudge_result, row.claimed_at),
|
|
3729
3975
|
lastNudgeWireResult: row.last_nudge_result,
|
|
3730
|
-
// #1278: absent before migration 116 and on compact rows (elided there), so null.
|
|
3731
|
-
lastNudgeInputBox: parseNudgeInputBox(row.last_nudge_input_box, row.last_nudge_attempt),
|
|
3732
3976
|
lastHeartbeat: row.last_heartbeat,
|
|
3733
3977
|
resolution: row.resolution,
|
|
3734
3978
|
// PL-007: target_repo present only when migration 038 has applied;
|