@openrig/cli 0.7.11 → 0.7.12
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 -6
- package/daemon/assets/guidance/openrig-context-entry.md +8 -0
- package/daemon/assets/herdr-app/mods/rig-cell-header/main.js +15 -0
- package/daemon/assets/herdr-app/mods/rig-cell-header/mod.json +1 -0
- package/daemon/assets/herdr-app/mods/rig-ended/main.js +14 -0
- package/daemon/assets/herdr-app/mods/rig-ended/mod.json +1 -0
- package/daemon/assets/herdr-app/mods/rig-pad/main.js +10 -0
- package/daemon/assets/herdr-app/mods/rig-pad/mod.json +1 -0
- package/daemon/assets/herdr-app/mods/rig-strip/main.js +153 -0
- package/daemon/assets/herdr-app/mods/rig-strip/mod.json +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/scripts/activity-relay.cjs +15 -0
- package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus-state.cjs +103 -0
- package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus.cjs +170 -86
- package/daemon/assets/plugins/openrig-core/skills/agent-operated-software/SKILL.md +5 -1
- package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/SKILL.md +3 -2
- package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +1 -1
- package/daemon/assets/plugins/openrig-core/skills/retiring-and-inheriting-a-seat/SKILL.md +1 -1
- package/daemon/assets/plugins/openrig-core/skills/seat-continuity-and-handover/SKILL.md +10 -6
- package/daemon/assets/plugins/openrig-core/skills/session-compaction-and-restore/SKILL.md +1 -1
- package/daemon/assets/skills/rigs/SKILL.md +37 -2
- package/daemon/context-packs/help/help.md +18 -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 +48 -21
- package/daemon/context-packs/reference/getting-started.md +18 -3
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +15 -9
- package/daemon/context-packs/reference/tmux-servers.md +2 -2
- package/daemon/context-packs/reference/whats-new.md +141 -121
- package/daemon/context-packs/skills/agent-operated-software/SKILL.md +5 -1
- package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
- package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
- package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
- package/daemon/context-packs/skills/claude-compaction-restore/SKILL.md +3 -2
- package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/messaging-the-human/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 +1 -0
- package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
- package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
- package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-user/SKILL.md +1 -1
- 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/SKILL.md +2 -0
- package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
- package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
- package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/SKILL.md +1 -1
- package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/seat-continuity-and-handover/SKILL.md +10 -6
- package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
- package/daemon/context-packs/skills/session-compaction-and-restore/SKILL.md +1 -1
- package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
- package/daemon/context-packs/world-example/manifest.yaml +1 -1
- package/daemon/context-packs/world-public/manifest.yaml +1 -1
- package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +18 -3
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts +2 -1
- package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume.js +13 -5
- package/daemon/dist/adapters/claude-resume.js.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js +18 -2
- package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts +10 -6
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.js +78 -24
- package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/pi-community-runtime-adapter.d.ts +27 -0
- package/daemon/dist/adapters/pi-community-runtime-adapter.d.ts.map +1 -0
- package/daemon/dist/adapters/pi-community-runtime-adapter.js +38 -0
- package/daemon/dist/adapters/pi-community-runtime-adapter.js.map +1 -0
- package/daemon/dist/adapters/pi-runner-protocol.d.ts +5 -3
- package/daemon/dist/adapters/pi-runner-protocol.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner-protocol.js +6 -1
- package/daemon/dist/adapters/pi-runner-protocol.js.map +1 -1
- package/daemon/dist/adapters/pi-runner.d.ts +9 -4
- package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner.js +104 -30
- package/daemon/dist/adapters/pi-runner.js.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts +32 -15
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.js +41 -10
- package/daemon/dist/adapters/pi-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/tmux-exec.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-exec.js +13 -4
- package/daemon/dist/adapters/tmux-exec.js.map +1 -1
- package/daemon/dist/adapters/tmux-server.d.ts +2 -0
- package/daemon/dist/adapters/tmux-server.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-server.js +1 -1
- package/daemon/dist/adapters/tmux-server.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +14 -1
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +77 -15
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/attention-surface.d.ts +7 -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/db/all-migrations.d.ts.map +1 -1
- package/daemon/dist/db/all-migrations.js +10 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrations/155_queue_erasure.d.ts +12 -0
- package/daemon/dist/db/migrations/155_queue_erasure.d.ts.map +1 -0
- package/daemon/dist/db/migrations/155_queue_erasure.js +28 -0
- package/daemon/dist/db/migrations/155_queue_erasure.js.map +1 -0
- package/daemon/dist/db/migrations/156_queue_erasure_link_indexes.d.ts +4 -0
- package/daemon/dist/db/migrations/156_queue_erasure_link_indexes.d.ts.map +1 -0
- package/daemon/dist/db/migrations/156_queue_erasure_link_indexes.js +14 -0
- package/daemon/dist/db/migrations/156_queue_erasure_link_indexes.js.map +1 -0
- package/daemon/dist/db/migrations/157_queue_erasure_batches.d.ts +9 -0
- package/daemon/dist/db/migrations/157_queue_erasure_batches.d.ts.map +1 -0
- package/daemon/dist/db/migrations/157_queue_erasure_batches.js +18 -0
- package/daemon/dist/db/migrations/157_queue_erasure_batches.js.map +1 -0
- package/daemon/dist/db/migrations/158_queue_inbox_checkins.d.ts +8 -0
- package/daemon/dist/db/migrations/158_queue_inbox_checkins.d.ts.map +1 -0
- package/daemon/dist/db/migrations/158_queue_inbox_checkins.js +15 -0
- package/daemon/dist/db/migrations/158_queue_inbox_checkins.js.map +1 -0
- package/daemon/dist/db/migrations/159_queue_items_handed_off_from_index.d.ts +5 -0
- package/daemon/dist/db/migrations/159_queue_items_handed_off_from_index.d.ts.map +1 -0
- package/daemon/dist/db/migrations/159_queue_items_handed_off_from_index.js +9 -0
- package/daemon/dist/db/migrations/159_queue_items_handed_off_from_index.js.map +1 -0
- package/daemon/dist/domain/agent-activity-store.d.ts +4 -2
- package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
- package/daemon/dist/domain/agent-activity-store.js +11 -7
- package/daemon/dist/domain/agent-activity-store.js.map +1 -1
- package/daemon/dist/domain/builtin-startup-files.d.ts +8 -0
- package/daemon/dist/domain/builtin-startup-files.d.ts.map +1 -1
- package/daemon/dist/domain/builtin-startup-files.js +37 -11
- package/daemon/dist/domain/builtin-startup-files.js.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts +30 -17
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.js +140 -66
- package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
- package/daemon/dist/domain/claude-continuation-launch.d.ts +16 -0
- package/daemon/dist/domain/claude-continuation-launch.d.ts.map +1 -0
- package/daemon/dist/domain/claude-continuation-launch.js +110 -0
- package/daemon/dist/domain/claude-continuation-launch.js.map +1 -0
- package/daemon/dist/domain/claude-git-trust-root.d.ts +11 -0
- package/daemon/dist/domain/claude-git-trust-root.d.ts.map +1 -0
- package/daemon/dist/domain/claude-git-trust-root.js +72 -0
- package/daemon/dist/domain/claude-git-trust-root.js.map +1 -0
- package/daemon/dist/domain/claude-managed-launch.d.ts +1 -0
- package/daemon/dist/domain/claude-managed-launch.d.ts.map +1 -1
- package/daemon/dist/domain/claude-managed-launch.js +5 -5
- package/daemon/dist/domain/claude-managed-launch.js.map +1 -1
- package/daemon/dist/domain/community-harness-presets.d.ts +5 -0
- package/daemon/dist/domain/community-harness-presets.d.ts.map +1 -1
- package/daemon/dist/domain/community-harness-presets.js +33 -6
- package/daemon/dist/domain/community-harness-presets.js.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts +3 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.js +37 -6
- package/daemon/dist/domain/compaction-restore-notice.js.map +1 -1
- package/daemon/dist/domain/current-work.d.ts +52 -0
- package/daemon/dist/domain/current-work.d.ts.map +1 -1
- package/daemon/dist/domain/current-work.js +215 -0
- package/daemon/dist/domain/current-work.js.map +1 -1
- package/daemon/dist/domain/default-receiver.d.ts +40 -0
- package/daemon/dist/domain/default-receiver.d.ts.map +1 -0
- package/daemon/dist/domain/default-receiver.js +70 -0
- package/daemon/dist/domain/default-receiver.js.map +1 -0
- 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/escalation-owner.d.ts.map +1 -1
- package/daemon/dist/domain/escalation-owner.js +8 -3
- package/daemon/dist/domain/escalation-owner.js.map +1 -1
- package/daemon/dist/domain/event-bus.d.ts +16 -8
- package/daemon/dist/domain/event-bus.d.ts.map +1 -1
- package/daemon/dist/domain/event-bus.js +50 -16
- package/daemon/dist/domain/event-bus.js.map +1 -1
- package/daemon/dist/domain/execution-view.d.ts.map +1 -1
- package/daemon/dist/domain/execution-view.js +28 -3
- package/daemon/dist/domain/execution-view.js.map +1 -1
- package/daemon/dist/domain/gateway/gateway-subsystem.d.ts +3 -0
- package/daemon/dist/domain/gateway/gateway-subsystem.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/gateway-subsystem.js +9 -0
- package/daemon/dist/domain/gateway/gateway-subsystem.js.map +1 -1
- package/daemon/dist/domain/gateway/human-quiet-windows.d.ts +2 -1
- package/daemon/dist/domain/gateway/human-quiet-windows.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/human-quiet-windows.js +2 -1
- package/daemon/dist/domain/gateway/human-quiet-windows.js.map +1 -1
- package/daemon/dist/domain/gateway/human-registry.d.ts +12 -1
- package/daemon/dist/domain/gateway/human-registry.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/human-registry.js +64 -8
- package/daemon/dist/domain/gateway/human-registry.js.map +1 -1
- package/daemon/dist/domain/gateway/relay-config.d.ts +5 -2
- package/daemon/dist/domain/gateway/relay-config.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/relay-config.js +34 -3
- package/daemon/dist/domain/gateway/relay-config.js.map +1 -1
- package/daemon/dist/domain/gateway/relay-inbound.d.ts +11 -0
- package/daemon/dist/domain/gateway/relay-inbound.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/relay-inbound.js +283 -41
- package/daemon/dist/domain/gateway/relay-inbound.js.map +1 -1
- package/daemon/dist/domain/gateway/relay-outbound.d.ts +5 -2
- package/daemon/dist/domain/gateway/relay-outbound.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/relay-outbound.js +37 -6
- package/daemon/dist/domain/gateway/relay-outbound.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/config.d.ts +21 -0
- package/daemon/dist/domain/gateway/slack/config.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/config.js +30 -3
- package/daemon/dist/domain/gateway/slack/config.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.d.ts +4 -0
- package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.js +7 -2
- package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/open-asks.d.ts +13 -1
- package/daemon/dist/domain/gateway/slack/open-asks.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/open-asks.js +58 -7
- package/daemon/dist/domain/gateway/slack/open-asks.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/outbound-driver.d.ts +9 -0
- package/daemon/dist/domain/gateway/slack/outbound-driver.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/outbound-driver.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/settled-asks.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/settled-asks.js +19 -1
- package/daemon/dist/domain/gateway/slack/settled-asks.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-api.d.ts +3 -0
- package/daemon/dist/domain/gateway/slack/slack-api.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-api.js +12 -4
- package/daemon/dist/domain/gateway/slack/slack-api.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +2 -0
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.js +38 -12
- package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-recovery.d.ts +12 -1
- package/daemon/dist/domain/gateway/slack/slack-recovery.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-recovery.js +68 -10
- package/daemon/dist/domain/gateway/slack/slack-recovery.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 +151 -47
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/socket-inbound.d.ts +1 -0
- package/daemon/dist/domain/gateway/slack/socket-inbound.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/socket-inbound.js +5 -0
- package/daemon/dist/domain/gateway/slack/socket-inbound.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/state-store.d.ts +4 -0
- package/daemon/dist/domain/gateway/slack/state-store.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/state-store.js +4 -1
- package/daemon/dist/domain/gateway/slack/state-store.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/thread-recovery.d.ts +23 -3
- package/daemon/dist/domain/gateway/slack/thread-recovery.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/thread-recovery.js +52 -10
- package/daemon/dist/domain/gateway/slack/thread-recovery.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/thread-seat-map.d.ts +4 -1
- package/daemon/dist/domain/gateway/slack/thread-seat-map.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/thread-seat-map.js +7 -4
- package/daemon/dist/domain/gateway/slack/thread-seat-map.js.map +1 -1
- package/daemon/dist/domain/guidance-projection.d.ts +39 -0
- package/daemon/dist/domain/guidance-projection.d.ts.map +1 -0
- package/daemon/dist/domain/guidance-projection.js +91 -0
- package/daemon/dist/domain/guidance-projection.js.map +1 -0
- package/daemon/dist/domain/health-passive-ceremony.d.ts.map +1 -1
- package/daemon/dist/domain/health-passive-ceremony.js +31 -12
- package/daemon/dist/domain/health-passive-ceremony.js.map +1 -1
- package/daemon/dist/domain/hosted-wake.d.ts +5 -1
- package/daemon/dist/domain/hosted-wake.d.ts.map +1 -1
- package/daemon/dist/domain/hosted-wake.js +13 -3
- package/daemon/dist/domain/hosted-wake.js.map +1 -1
- package/daemon/dist/domain/launch-wrapper.d.ts +2 -1
- package/daemon/dist/domain/launch-wrapper.d.ts.map +1 -1
- package/daemon/dist/domain/launch-wrapper.js +6 -2
- package/daemon/dist/domain/launch-wrapper.js.map +1 -1
- package/daemon/dist/domain/managed-blocks.d.ts +3 -0
- package/daemon/dist/domain/managed-blocks.d.ts.map +1 -1
- package/daemon/dist/domain/managed-blocks.js +5 -0
- package/daemon/dist/domain/managed-blocks.js.map +1 -1
- package/daemon/dist/domain/markdown-address.d.ts.map +1 -1
- package/daemon/dist/domain/markdown-address.js +12 -1
- package/daemon/dist/domain/markdown-address.js.map +1 -1
- 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 +37 -6
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
- package/daemon/dist/domain/native-process-arguments.d.ts +5 -0
- package/daemon/dist/domain/native-process-arguments.d.ts.map +1 -1
- package/daemon/dist/domain/native-process-arguments.js +60 -5
- package/daemon/dist/domain/native-process-arguments.js.map +1 -1
- package/daemon/dist/domain/node-inventory.js +3 -3
- package/daemon/dist/domain/node-inventory.js.map +1 -1
- package/daemon/dist/domain/package-manifest.d.ts.map +1 -1
- package/daemon/dist/domain/package-manifest.js +10 -5
- package/daemon/dist/domain/package-manifest.js.map +1 -1
- package/daemon/dist/domain/policies/delivery-digest-flush.d.ts.map +1 -1
- package/daemon/dist/domain/policies/delivery-digest-flush.js +9 -1
- package/daemon/dist/domain/policies/delivery-digest-flush.js.map +1 -1
- package/daemon/dist/domain/policies/mode-scheduled-end.d.ts +4 -1
- package/daemon/dist/domain/policies/mode-scheduled-end.d.ts.map +1 -1
- package/daemon/dist/domain/policies/mode-scheduled-end.js +19 -10
- package/daemon/dist/domain/policies/mode-scheduled-end.js.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js +3 -2
- package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
- package/daemon/dist/domain/policies/quiet-release.d.ts +19 -6
- package/daemon/dist/domain/policies/quiet-release.d.ts.map +1 -1
- package/daemon/dist/domain/policies/quiet-release.js +44 -7
- package/daemon/dist/domain/policies/quiet-release.js.map +1 -1
- package/daemon/dist/domain/proof/judgments.d.ts +11 -0
- package/daemon/dist/domain/proof/judgments.d.ts.map +1 -1
- package/daemon/dist/domain/proof/judgments.js +61 -38
- package/daemon/dist/domain/proof/judgments.js.map +1 -1
- package/daemon/dist/domain/queue-blocker.d.ts +5 -0
- package/daemon/dist/domain/queue-blocker.d.ts.map +1 -0
- package/daemon/dist/domain/queue-blocker.js +12 -0
- package/daemon/dist/domain/queue-blocker.js.map +1 -0
- package/daemon/dist/domain/queue-erasure.d.ts +173 -0
- package/daemon/dist/domain/queue-erasure.d.ts.map +1 -0
- package/daemon/dist/domain/queue-erasure.js +885 -0
- package/daemon/dist/domain/queue-erasure.js.map +1 -0
- package/daemon/dist/domain/queue-owner.d.ts +6 -0
- package/daemon/dist/domain/queue-owner.d.ts.map +1 -1
- package/daemon/dist/domain/queue-owner.js +13 -4
- package/daemon/dist/domain/queue-owner.js.map +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +160 -20
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +449 -61
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-retention.d.ts +15 -1
- package/daemon/dist/domain/queue-retention.d.ts.map +1 -1
- package/daemon/dist/domain/queue-retention.js +35 -0
- package/daemon/dist/domain/queue-retention.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts +17 -4
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +246 -92
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/queue-transition-log.d.ts +5 -2
- package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
- package/daemon/dist/domain/queue-transition-log.js +30 -5
- package/daemon/dist/domain/queue-transition-log.js.map +1 -1
- package/daemon/dist/domain/queue-waiting.d.ts +48 -2
- package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
- package/daemon/dist/domain/queue-waiting.js +73 -13
- 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 +79 -28
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/rebuild-priming-chain.d.ts +3 -1
- package/daemon/dist/domain/rebuild-priming-chain.d.ts.map +1 -1
- package/daemon/dist/domain/rebuild-priming-chain.js +3 -1
- package/daemon/dist/domain/rebuild-priming-chain.js.map +1 -1
- package/daemon/dist/domain/refocus-record.d.ts +17 -0
- package/daemon/dist/domain/refocus-record.d.ts.map +1 -0
- package/daemon/dist/domain/refocus-record.js +94 -0
- package/daemon/dist/domain/refocus-record.js.map +1 -0
- package/daemon/dist/domain/restore-check-service.js +1 -1
- package/daemon/dist/domain/restore-check-service.js.map +1 -1
- package/daemon/dist/domain/restore-guidance.d.ts.map +1 -1
- package/daemon/dist/domain/restore-guidance.js +5 -6
- package/daemon/dist/domain/restore-guidance.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +2 -0
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +39 -18
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/restore-plan-preview.d.ts.map +1 -1
- package/daemon/dist/domain/restore-plan-preview.js +2 -1
- package/daemon/dist/domain/restore-plan-preview.js.map +1 -1
- package/daemon/dist/domain/resume-token-validation.d.ts +7 -0
- package/daemon/dist/domain/resume-token-validation.d.ts.map +1 -1
- package/daemon/dist/domain/resume-token-validation.js +13 -3
- package/daemon/dist/domain/resume-token-validation.js.map +1 -1
- package/daemon/dist/domain/rig-repository.js +3 -3
- package/daemon/dist/domain/rig-repository.js.map +1 -1
- package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
- package/daemon/dist/domain/rig-teardown.js +2 -1
- package/daemon/dist/domain/rig-teardown.js.map +1 -1
- package/daemon/dist/domain/rigs-being-built.d.ts +5 -0
- package/daemon/dist/domain/rigs-being-built.d.ts.map +1 -0
- package/daemon/dist/domain/rigs-being-built.js +18 -0
- package/daemon/dist/domain/rigs-being-built.js.map +1 -0
- package/daemon/dist/domain/rigspec-instantiator.d.ts +3 -0
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +32 -2
- 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 +4 -1
- package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
- package/daemon/dist/domain/rigspec-schema.js +2 -2
- package/daemon/dist/domain/rigspec-schema.js.map +1 -1
- package/daemon/dist/domain/runner-permissions.d.ts +16 -0
- package/daemon/dist/domain/runner-permissions.d.ts.map +1 -1
- package/daemon/dist/domain/runner-permissions.js +95 -14
- package/daemon/dist/domain/runner-permissions.js.map +1 -1
- package/daemon/dist/domain/runtime-adapter.d.ts +1 -0
- package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-adapter.js.map +1 -1
- package/daemon/dist/domain/scope/logical-checkbox.d.ts.map +1 -1
- package/daemon/dist/domain/scope/logical-checkbox.js +14 -0
- package/daemon/dist/domain/scope/logical-checkbox.js.map +1 -1
- package/daemon/dist/domain/seat-activity-service.d.ts +12 -0
- package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-activity-service.js +85 -4
- package/daemon/dist/domain/seat-activity-service.js.map +1 -1
- package/daemon/dist/domain/seat-handover-service.d.ts +7 -0
- package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-handover-service.js +23 -8
- package/daemon/dist/domain/seat-handover-service.js.map +1 -1
- package/daemon/dist/domain/seat-kinds.d.ts +21 -0
- package/daemon/dist/domain/seat-kinds.d.ts.map +1 -0
- package/daemon/dist/domain/seat-kinds.js +27 -0
- package/daemon/dist/domain/seat-kinds.js.map +1 -0
- package/daemon/dist/domain/seat-launch-environment.d.ts +4 -0
- package/daemon/dist/domain/seat-launch-environment.d.ts.map +1 -1
- package/daemon/dist/domain/seat-launch-environment.js +7 -6
- package/daemon/dist/domain/seat-launch-environment.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +12 -0
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +52 -11
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.js +23 -12
- package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
- package/daemon/dist/domain/seat-skill-apply.d.ts +2 -0
- package/daemon/dist/domain/seat-skill-apply.d.ts.map +1 -1
- package/daemon/dist/domain/seat-skill-apply.js +5 -2
- package/daemon/dist/domain/seat-skill-apply.js.map +1 -1
- package/daemon/dist/domain/seat-skill-storage.js +1 -1
- package/daemon/dist/domain/seat-skill-storage.js.map +1 -1
- package/daemon/dist/domain/seat-status-service.d.ts +10 -0
- package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-status-service.js +36 -2
- package/daemon/dist/domain/seat-status-service.js.map +1 -1
- package/daemon/dist/domain/seat-structural-activity-service.d.ts +8 -0
- package/daemon/dist/domain/seat-structural-activity-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-structural-activity-service.js +8 -2
- package/daemon/dist/domain/seat-structural-activity-service.js.map +1 -1
- package/daemon/dist/domain/session-jsonl.d.ts +4 -2
- package/daemon/dist/domain/session-jsonl.d.ts.map +1 -1
- package/daemon/dist/domain/session-jsonl.js +56 -22
- package/daemon/dist/domain/session-jsonl.js.map +1 -1
- package/daemon/dist/domain/session-registry.d.ts +20 -3
- package/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.js +39 -3
- package/daemon/dist/domain/session-registry.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +28 -4
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +236 -56
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.d.ts +41 -0
- package/daemon/dist/domain/slices/slice-indexer.d.ts.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.js +463 -22
- package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +5 -2
- 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 +18 -4
- package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.js +3 -2
- package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-app-install.d.ts +28 -0
- package/daemon/dist/domain/terminal/herdr-app-install.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/herdr-app-install.js +170 -0
- package/daemon/dist/domain/terminal/herdr-app-install.js.map +1 -0
- package/daemon/dist/domain/terminal/herdr-app-layout.d.ts +79 -0
- package/daemon/dist/domain/terminal/herdr-app-layout.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/herdr-app-layout.js +134 -0
- package/daemon/dist/domain/terminal/herdr-app-layout.js.map +1 -0
- package/daemon/dist/domain/terminal/herdr-app-provider.d.ts +123 -0
- package/daemon/dist/domain/terminal/herdr-app-provider.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/herdr-app-provider.js +681 -0
- package/daemon/dist/domain/terminal/herdr-app-provider.js.map +1 -0
- package/daemon/dist/domain/terminal/herdr-app-state.d.ts +91 -0
- package/daemon/dist/domain/terminal/herdr-app-state.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/herdr-app-state.js +140 -0
- package/daemon/dist/domain/terminal/herdr-app-state.js.map +1 -0
- package/daemon/dist/domain/terminal/herdr-app-transport.d.ts +68 -0
- package/daemon/dist/domain/terminal/herdr-app-transport.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/herdr-app-transport.js +133 -0
- package/daemon/dist/domain/terminal/herdr-app-transport.js.map +1 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts +18 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.d.ts +28 -3
- package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.js +41 -8
- package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
- package/daemon/dist/domain/terminal/view-composer.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/view-composer.js +1 -0
- package/daemon/dist/domain/terminal/view-composer.js.map +1 -1
- package/daemon/dist/domain/time-bound-advisory.js +3 -3
- package/daemon/dist/domain/time-bound-advisory.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +51 -0
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.d.ts +2 -1
- package/daemon/dist/domain/user-settings/settings-browser.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.js +22 -3
- package/daemon/dist/domain/user-settings/settings-browser.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts +1 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.js +35 -0
- package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
- package/daemon/dist/domain/wake-recovery.d.ts.map +1 -1
- package/daemon/dist/domain/wake-recovery.js +3 -2
- package/daemon/dist/domain/wake-recovery.js.map +1 -1
- package/daemon/dist/domain/whoami-service.d.ts +6 -0
- package/daemon/dist/domain/whoami-service.d.ts.map +1 -1
- package/daemon/dist/domain/whoami-service.js +9 -1
- package/daemon/dist/domain/whoami-service.js.map +1 -1
- package/daemon/dist/domain/workflow-projector.js +1 -1
- package/daemon/dist/domain/workflow-projector.js.map +1 -1
- package/daemon/dist/domain/workflow-runtime.js +4 -4
- package/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/daemon/dist/domain/workflow-spec-cache.d.ts +14 -0
- package/daemon/dist/domain/workflow-spec-cache.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-spec-cache.js +28 -7
- package/daemon/dist/domain/workflow-spec-cache.js.map +1 -1
- package/daemon/dist/index.d.ts +2 -1
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +9 -1
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/lib/pane-envelope.d.ts +3 -0
- package/daemon/dist/lib/pane-envelope.d.ts.map +1 -1
- package/daemon/dist/lib/pane-envelope.js +3 -1
- package/daemon/dist/lib/pane-envelope.js.map +1 -1
- package/daemon/dist/routes/activity.d.ts.map +1 -1
- package/daemon/dist/routes/activity.js +110 -23
- package/daemon/dist/routes/activity.js.map +1 -1
- package/daemon/dist/routes/attention.d.ts.map +1 -1
- package/daemon/dist/routes/attention.js +2 -0
- package/daemon/dist/routes/attention.js.map +1 -1
- package/daemon/dist/routes/config.d.ts.map +1 -1
- package/daemon/dist/routes/config.js +9 -1
- package/daemon/dist/routes/config.js.map +1 -1
- package/daemon/dist/routes/events.js +7 -2
- package/daemon/dist/routes/events.js.map +1 -1
- package/daemon/dist/routes/gateway.d.ts.map +1 -1
- package/daemon/dist/routes/gateway.js +34 -5
- package/daemon/dist/routes/gateway.js.map +1 -1
- package/daemon/dist/routes/hosts.d.ts.map +1 -1
- package/daemon/dist/routes/hosts.js +146 -46
- package/daemon/dist/routes/hosts.js.map +1 -1
- package/daemon/dist/routes/provider.js +1 -1
- package/daemon/dist/routes/provider.js.map +1 -1
- package/daemon/dist/routes/queue.d.ts +19 -0
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +232 -43
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/skills.d.ts.map +1 -1
- package/daemon/dist/routes/skills.js +8 -2
- package/daemon/dist/routes/skills.js.map +1 -1
- package/daemon/dist/routes/slices.d.ts.map +1 -1
- package/daemon/dist/routes/slices.js +156 -28
- package/daemon/dist/routes/slices.js.map +1 -1
- package/daemon/dist/routes/terminal.d.ts.map +1 -1
- package/daemon/dist/routes/terminal.js +40 -3
- 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 +0 -1
- package/daemon/dist/routes/transport.js.map +1 -1
- package/daemon/dist/startup.d.ts +34 -0
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +190 -10
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/docs/reference/agent-spec.md +2 -4
- package/daemon/docs/reference/agent-startup-guide.md +24 -2
- package/daemon/docs/reference/community-harness-examples/omo/omo.yaml +14 -0
- package/daemon/docs/reference/community-harness-presets.md +56 -2
- package/daemon/docs/reference/daemon-http-clients.md +15 -1
- package/daemon/docs/reference/edge-types.md +6 -4
- package/daemon/docs/reference/gateway-participants.md +19 -0
- package/daemon/docs/reference/gateway-relay.md +41 -12
- package/daemon/docs/reference/getting-started.md +18 -3
- package/daemon/docs/reference/harness-runner-contract.md +61 -12
- package/daemon/docs/reference/health-diagnosis.md +5 -1
- package/daemon/docs/reference/help.md +18 -0
- package/daemon/docs/reference/herdr-app.md +148 -0
- package/daemon/docs/reference/hosted-members.md +19 -7
- package/daemon/docs/reference/keeping-a-watch.md +3 -1
- package/daemon/docs/reference/queue-erasure.md +161 -0
- package/daemon/docs/reference/quickstart.md +1 -1
- package/daemon/docs/reference/rig-spec.md +15 -9
- package/daemon/docs/reference/runner-conformance/README.md +3 -0
- package/daemon/docs/reference/runner-conformance/check-runner.mjs +27 -6
- package/daemon/docs/reference/runner-conformance/fake-acp-agent.mjs +1 -1
- package/daemon/docs/reference/sdlc-conventions.md +16 -1
- package/daemon/docs/reference/seat-delivery.md +10 -3
- package/daemon/docs/reference/slack-app-setup.md +37 -12
- package/daemon/docs/reference/terminal-sessions.md +28 -15
- package/daemon/docs/reference/tmux-servers.md +2 -2
- package/daemon/docs/reference/whats-new.md +141 -121
- package/daemon/specs/agents/shared/skills/core/openrig-herdr/SKILL.md +1 -0
- package/daemon/specs/agents/shared/skills/pods/review-team/SKILL.md +2 -0
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +24 -0
- package/daemon/specs/rigs/launch/kernel/culture/CULTURE.md +7 -4
- package/daemon/specs/rigs/launch/kernel/rig.yaml +6 -3
- package/daemon/specs/rigs/launch/starter/guidance/lead-first-move.md +3 -1
- package/dist/build-info.js +3 -3
- package/dist/client.js +2 -2
- package/dist/client.js.map +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +11 -1
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +44 -4
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/daemon.d.ts.map +1 -1
- package/dist/commands/daemon.js +17 -3
- package/dist/commands/daemon.js.map +1 -1
- package/dist/commands/gateway.d.ts.map +1 -1
- package/dist/commands/gateway.js +21 -4
- package/dist/commands/gateway.js.map +1 -1
- package/dist/commands/host.d.ts.map +1 -1
- package/dist/commands/host.js +10 -1
- package/dist/commands/host.js.map +1 -1
- package/dist/commands/launch.d.ts +1 -0
- package/dist/commands/launch.d.ts.map +1 -1
- package/dist/commands/launch.js +1 -1
- package/dist/commands/launch.js.map +1 -1
- package/dist/commands/proof.d.ts.map +1 -1
- package/dist/commands/proof.js +18 -6
- package/dist/commands/proof.js.map +1 -1
- package/dist/commands/provider.js +1 -1
- package/dist/commands/ps.d.ts +9 -1
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +23 -2
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +226 -8
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/scope.d.ts +2 -0
- package/dist/commands/scope.d.ts.map +1 -1
- package/dist/commands/scope.js +15 -0
- package/dist/commands/scope.js.map +1 -1
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +64 -10
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/send.d.ts +2 -0
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +16 -6
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/setup.js +1 -1
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/skill.d.ts.map +1 -1
- package/dist/commands/skill.js +5 -0
- package/dist/commands/skill.js.map +1 -1
- package/dist/commands/slack.d.ts +1 -1
- package/dist/commands/slack.d.ts.map +1 -1
- package/dist/commands/slack.js +5 -1
- package/dist/commands/slack.js.map +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +11 -1
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/terminal.d.ts +22 -0
- package/dist/commands/terminal.d.ts.map +1 -1
- package/dist/commands/terminal.js +116 -7
- package/dist/commands/terminal.js.map +1 -1
- package/dist/commands/up.d.ts.map +1 -1
- package/dist/commands/up.js +22 -0
- package/dist/commands/up.js.map +1 -1
- package/dist/commands/whoami.d.ts.map +1 -1
- package/dist/commands/whoami.js +13 -2
- package/dist/commands/whoami.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.js +1 -1
- package/dist/commands/workflow.js.map +1 -1
- package/dist/config-store.d.ts +8 -1
- package/dist/config-store.d.ts.map +1 -1
- package/dist/config-store.js +60 -0
- package/dist/config-store.js.map +1 -1
- package/dist/daemon-start-lock.d.ts +24 -2
- package/dist/daemon-start-lock.d.ts.map +1 -1
- package/dist/daemon-start-lock.js +125 -4
- package/dist/daemon-start-lock.js.map +1 -1
- package/dist/lib/scope/logical-checkbox.d.ts.map +1 -1
- package/dist/lib/scope/logical-checkbox.js +14 -0
- package/dist/lib/scope/logical-checkbox.js.map +1 -1
- package/dist/lib/scope/scope-fs.d.ts.map +1 -1
- package/dist/lib/scope/scope-fs.js +36 -2
- package/dist/lib/scope/scope-fs.js.map +1 -1
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +49 -8
- package/dist/mcp-server.js.map +1 -1
- package/dist/recap-seat.d.ts +28 -0
- package/dist/recap-seat.d.ts.map +1 -0
- package/dist/recap-seat.js +41 -0
- package/dist/recap-seat.js.map +1 -0
- package/dist/seat-attention.d.ts +24 -0
- package/dist/seat-attention.d.ts.map +1 -0
- package/dist/seat-attention.js +119 -0
- package/dist/seat-attention.js.map +1 -0
- package/dist/terminal-window.d.ts.map +1 -1
- package/dist/terminal-window.js +3 -3
- package/dist/terminal-window.js.map +1 -1
- package/package.json +1 -1
- package/tui/dist/attention/attention-model.d.ts.map +1 -1
- package/tui/dist/attention/attention-model.js +3 -0
- package/tui/dist/attention/attention-model.js.map +1 -1
- package/tui/dist/config/config-model.d.ts.map +1 -1
- package/tui/dist/config/config-model.js +6 -1
- package/tui/dist/config/config-model.js.map +1 -1
- package/tui/dist/config/pairing.d.ts +49 -0
- package/tui/dist/config/pairing.d.ts.map +1 -0
- package/tui/dist/config/pairing.js +98 -0
- package/tui/dist/config/pairing.js.map +1 -0
- package/tui/dist/daemon-client.d.ts +11 -1
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js +18 -5
- package/tui/dist/daemon-client.js.map +1 -1
- package/tui/dist/detail.d.ts +3 -0
- package/tui/dist/detail.d.ts.map +1 -1
- package/tui/dist/detail.js +6 -1
- package/tui/dist/detail.js.map +1 -1
- package/tui/dist/execution/execution-model.d.ts +2 -0
- package/tui/dist/execution/execution-model.d.ts.map +1 -1
- package/tui/dist/execution/execution-model.js +10 -3
- package/tui/dist/execution/execution-model.js.map +1 -1
- package/tui/dist/health/health-model.d.ts.map +1 -1
- package/tui/dist/health/health-model.js +27 -11
- package/tui/dist/health/health-model.js.map +1 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +4 -2
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/main.js +6 -1
- package/tui/dist/main.js.map +1 -1
- package/tui/dist/scopes/scopes-model.d.ts +9 -0
- package/tui/dist/scopes/scopes-model.d.ts.map +1 -1
- package/tui/dist/scopes/scopes-model.js +27 -1
- package/tui/dist/scopes/scopes-model.js.map +1 -1
- package/tui/dist/state.d.ts.map +1 -1
- package/tui/dist/state.js +4 -3
- package/tui/dist/state.js.map +1 -1
- package/tui/dist/terminals/open-window.d.ts +21 -1
- package/tui/dist/terminals/open-window.d.ts.map +1 -1
- package/tui/dist/terminals/open-window.js +46 -9
- package/tui/dist/terminals/open-window.js.map +1 -1
- package/tui/dist/terminals/terminal-model.d.ts +8 -1
- package/tui/dist/terminals/terminal-model.d.ts.map +1 -1
- package/tui/dist/terminals/terminal-model.js +25 -8
- package/tui/dist/terminals/terminal-model.js.map +1 -1
- package/tui/dist/types.d.ts +18 -2
- package/tui/dist/types.d.ts.map +1 -1
|
@@ -20,13 +20,14 @@ import { buildInProcessWire } from "../gateway-subsystem.js";
|
|
|
20
20
|
import { DispatchBuffer } from "../dispatch-buffer.js";
|
|
21
21
|
import { downloadPrivateFile, isSlackHost, lookupBotApp, postChatMessage } from "./slack-api.js";
|
|
22
22
|
import { botInboxProblems } from "./bot-inbox.js";
|
|
23
|
-
import { loadConfig } from "./config.js";
|
|
23
|
+
import { effectiveInboundDestination, inboundDestinationNote, loadConfig } from "./config.js";
|
|
24
|
+
import { resolveDefaultReceiver } from "../../default-receiver.js";
|
|
24
25
|
import { resolveSecret } from "./secrets.js";
|
|
25
26
|
import { SeenStore, DeadLetterStore, InboundReceiptStore, slackMicros } from "./state-store.js";
|
|
26
27
|
import { makeQueuePorts } from "./queue-access.js";
|
|
27
28
|
import { SlackOutboundDriver, OUTBOUND_OP } from "./outbound-driver.js";
|
|
28
29
|
import { SlackAskSettlement } from "./settled-asks.js";
|
|
29
|
-
import { abortableSleep, subsystemSlackDeliver } from "./slack-delivery.js";
|
|
30
|
+
import { abortableSleep, POSSIBLY_POSTED_CLASS, subsystemSlackDeliver } from "./slack-delivery.js";
|
|
30
31
|
import { InboundRouter, SLACK_THREAD_ROOT_TAG, handleEnvelope } from "./inbound.js";
|
|
31
32
|
import { makeInboundSenderResolver } from "./inbound-admission.js";
|
|
32
33
|
import { ThreadSeatMap, formatPostedStamp } from "./thread-seat-map.js";
|
|
@@ -49,8 +50,8 @@ import { ownerNotificationLevelAtLeast, RELAY_OWNER_NOTIFICATION_TRANSPORT_FAILE
|
|
|
49
50
|
// registered human (no prefs -> no engine input).
|
|
50
51
|
import { decideDelivery, resolveAvailability, isEscalationClass, formatDeliveryTermination, DELIVERY_TERMINATION_PREFIX, } from "../delivery-rules-engine.js";
|
|
51
52
|
import { armDeliveryDeferral } from "../../policies/delivery-deferral.js";
|
|
52
|
-
import { confirmReleaseAtPost, currentAskVerdict, holdForQuiet } from "../../policies/quiet-release.js";
|
|
53
|
-
import { noteRePresentNotPosted, RE_PRESENT_DECISION_PREFIX } from "./open-asks.js";
|
|
53
|
+
import { confirmReleaseAtPost, currentAskVerdict, holdForQuiet, noteQuietUnreadable } from "../../policies/quiet-release.js";
|
|
54
|
+
import { noteRePresentNotPosted, noteRePresentUnconfirmed, rePresentMarks, RE_PRESENT_DECISION_PREFIX } from "./open-asks.js";
|
|
54
55
|
import { quietHoldFor } from "../human-quiet-windows.js";
|
|
55
56
|
import { WatchdogJobsRepository } from "../../watchdog-jobs-repository.js";
|
|
56
57
|
import { loadRelayProfiles } from "../relay-config.js";
|
|
@@ -261,7 +262,18 @@ export function buildSlackGatewayWire(opts) {
|
|
|
261
262
|
const app = resolveSecret(SECRET_APP, { envFile });
|
|
262
263
|
const outboundReady = cfg.enabled && bot !== null && cfg.channel !== null;
|
|
263
264
|
const inboundReady = cfg.enabled && app !== null;
|
|
264
|
-
|
|
265
|
+
// Read once, when the connector starts, like the rest of its configuration.
|
|
266
|
+
const receiver = (() => { try {
|
|
267
|
+
return resolveDefaultReceiver(opts.queueRepo.db);
|
|
268
|
+
}
|
|
269
|
+
catch {
|
|
270
|
+
return null;
|
|
271
|
+
} })();
|
|
272
|
+
const inbound = effectiveInboundDestination(cfg, receiver?.session ?? null);
|
|
273
|
+
const inboundNote = inboundDestinationNote(inbound, receiver);
|
|
274
|
+
if (inbound.from === "default")
|
|
275
|
+
log(`slack inbound: ${inboundNote}`);
|
|
276
|
+
const inboundRouting = { fallback: "local", destination: inbound.destination, destinationFrom: inbound.from, ...(inboundNote ? { destinationNote: inboundNote } : {}) };
|
|
265
277
|
const dead = new DeadLetterStore(path.join(stateDir(opts.home), "slack-inbound-deadletter.jsonl"));
|
|
266
278
|
const deadActions = new DeadLetterStore(path.join(stateDir(opts.home), "slack-inbound-action-deadletter.jsonl"));
|
|
267
279
|
// Retained relays belong to their original host, even after forwarding configuration changes.
|
|
@@ -308,7 +320,11 @@ export function buildSlackGatewayWire(opts) {
|
|
|
308
320
|
// OPR.0.5.6.1 — the one engine consult (AM-F5: the gateway consults the
|
|
309
321
|
// engine BEFORE dispatch). Null = destination is not a registered human;
|
|
310
322
|
// the caller keeps the pre-engine dial behavior (stated degrade).
|
|
311
|
-
|
|
323
|
+
// The person's quiet hours are read on their own. When only they can't be read, that isn't a quiet window: with
|
|
324
|
+
// `pastUnreadableQuiet`, a routine ask that would post is decided from the person's other settings, with no mention
|
|
325
|
+
// (quiet hours would have muted one), and `quietUnreadable` says why, for the post to say so. Quiet hours never change
|
|
326
|
+
// an escalation, or an ask that posts nothing. Without it (a relay, which can't show that line) the read throws.
|
|
327
|
+
const decideForPayload = (p, { pastUnreadableQuiet }) => {
|
|
312
328
|
const local = (p.destinationSession ?? "").split("@")[0] ?? "";
|
|
313
329
|
if (!local)
|
|
314
330
|
return null;
|
|
@@ -318,9 +334,21 @@ export function buildSlackGatewayWire(opts) {
|
|
|
318
334
|
const human = reg.entities.find((e) => e.entityId === local);
|
|
319
335
|
if (!human)
|
|
320
336
|
return null;
|
|
321
|
-
|
|
337
|
+
const escalation = p.humanIntent !== "update" && isEscalationClass(p.tags);
|
|
338
|
+
let quiet;
|
|
339
|
+
let quietUnreadable;
|
|
340
|
+
try {
|
|
341
|
+
quiet = quietHoldFor(opts.queueRepo.db, human.entityId, new Date());
|
|
342
|
+
}
|
|
343
|
+
catch (error) {
|
|
344
|
+
if (!pastUnreadableQuiet)
|
|
345
|
+
throw error;
|
|
346
|
+
quiet = null;
|
|
347
|
+
quietUnreadable = error.message;
|
|
348
|
+
}
|
|
349
|
+
const decision = decideDelivery({
|
|
322
350
|
level: p.ownerNotificationLevel ?? null,
|
|
323
|
-
escalation
|
|
351
|
+
escalation,
|
|
324
352
|
alerted: p.humanIntent !== "update" && (p.tags ?? []).includes(HUMAN_ALERT_TAG),
|
|
325
353
|
human: {
|
|
326
354
|
entityId: human.entityId,
|
|
@@ -331,8 +359,11 @@ export function buildSlackGatewayWire(opts) {
|
|
|
331
359
|
minimumLevelThatPosts: cfg.minimumLevelThatPosts,
|
|
332
360
|
minimumLevelThatInterrupts: cfg.minimumLevelThatInterrupts,
|
|
333
361
|
},
|
|
334
|
-
quiet
|
|
362
|
+
quiet,
|
|
335
363
|
});
|
|
364
|
+
if (quietUnreadable === undefined || escalation || (decision.outcome !== "interrupt" && decision.outcome !== "notify"))
|
|
365
|
+
return decision;
|
|
366
|
+
return { ...decision, outcome: "notify", mention: false, quietUnreadable };
|
|
336
367
|
};
|
|
337
368
|
const outboundSeen = new SeenStore(path.join(stateDir(opts.home), "slack-outbound-seen.jsonl"));
|
|
338
369
|
const delivered = new SeenStore(path.join(stateDir(opts.home), "slack-delivered-decisions.jsonl"));
|
|
@@ -419,9 +450,12 @@ export function buildSlackGatewayWire(opts) {
|
|
|
419
450
|
|| transition.transitionNote?.startsWith(`${RELAY_OWNER_NOTIFICATION_TRANSPORT_FAILED_PREFIX} `))
|
|
420
451
|
&& transition.transitionNote.split(/\s+/).includes(`notification_key=${key}`)).at(-1);
|
|
421
452
|
// A corrected attempt can fail transiently after a permanent rejection, and a
|
|
422
|
-
// transient failure can be followed by a definite rejection
|
|
423
|
-
|
|
424
|
-
|
|
453
|
+
// transient failure can be followed by a definite rejection; an unreadable 2xx
|
|
454
|
+
// (possibly posted) can follow either. Preserve each change of kind.
|
|
455
|
+
const previousNote = previousFailure?.transitionNote ?? "";
|
|
456
|
+
const sameKind = (kind) => previousNote.includes(`class=${kind} `) === (failureClass === kind);
|
|
457
|
+
const alreadyRecorded = previousNote.startsWith("slack-owner-notification-transport-failed ")
|
|
458
|
+
&& sameKind("slack-invalid-blocks") && sameKind(POSSIBLY_POSTED_CLASS);
|
|
425
459
|
if (alreadyRecorded)
|
|
426
460
|
return;
|
|
427
461
|
opts.queueRepo.update({
|
|
@@ -591,10 +625,11 @@ export function buildSlackGatewayWire(opts) {
|
|
|
591
625
|
if (p.quietRelease)
|
|
592
626
|
return undefined; // releasing a quiet hold: posted, never a mention
|
|
593
627
|
const fire = p.deliveryDeferralFire === true;
|
|
594
|
-
// At post time the decision was just made; if it can't be re-read now
|
|
628
|
+
// At post time the decision was just made; if it can't be re-read now, no mention. Quiet hours that can't be read
|
|
629
|
+
// never mention a routine ask (the decision says so).
|
|
595
630
|
let decision;
|
|
596
631
|
try {
|
|
597
|
-
decision = fire ? null : decideForPayload(p);
|
|
632
|
+
decision = fire ? null : decideForPayload(p, { pastUnreadableQuiet: true });
|
|
598
633
|
}
|
|
599
634
|
catch {
|
|
600
635
|
return undefined;
|
|
@@ -753,11 +788,12 @@ export function buildSlackGatewayWire(opts) {
|
|
|
753
788
|
return {
|
|
754
789
|
ok: true,
|
|
755
790
|
connectorRef: profile.connectorRef,
|
|
791
|
+
mode: profile.mode,
|
|
756
792
|
url: profile.credentials.url,
|
|
757
793
|
outboundToken: profile.credentials.outboundToken,
|
|
758
794
|
};
|
|
759
795
|
},
|
|
760
|
-
hasAcceptedReceipt: ({ qitemId, notificationKey }) => opts.queueRepo.hasRelayOwnerNotificationReceipt(qitemId, notificationKey),
|
|
796
|
+
hasAcceptedReceipt: ({ qitemId, notificationKey, deliveryId }) => opts.queueRepo.hasRelayOwnerNotificationReceipt(qitemId, notificationKey, deliveryId),
|
|
761
797
|
onAccepted: (info) => {
|
|
762
798
|
opts.queueRepo.recordRelayOwnerNotificationAccepted({
|
|
763
799
|
qitemId: info.qitemId,
|
|
@@ -784,7 +820,7 @@ export function buildSlackGatewayWire(opts) {
|
|
|
784
820
|
resolveOutcome: (p) => {
|
|
785
821
|
let ruled = null;
|
|
786
822
|
try {
|
|
787
|
-
ruled = p.qitemId ? decideForPayload(p) : null;
|
|
823
|
+
ruled = p.qitemId ? decideForPayload(p, { pastUnreadableQuiet: false }) : null;
|
|
788
824
|
}
|
|
789
825
|
catch {
|
|
790
826
|
ruled = null;
|
|
@@ -844,6 +880,8 @@ export function buildSlackGatewayWire(opts) {
|
|
|
844
880
|
// Decisions already in the dispatch buffer when this wire is built are retained from an earlier
|
|
845
881
|
// run: posts that failed or never finished, which startServices() replays.
|
|
846
882
|
const replayedAtStart = new Set(new DispatchBuffer(opts.home).pending().map((d) => d.decisionId));
|
|
883
|
+
/** The marks a later post of a re-shown ask carries, from its row (see `rePresentMarks`); empty for any other ask. */
|
|
884
|
+
const rowMarks = (qitemId, key) => qitemId && key ? rePresentMarks(opts.queueRepo.listTransitions(qitemId).map((t) => t.transitionNote ?? ""), key) : {};
|
|
847
885
|
// A replayed notification for a row that has since left the active states is history, not news
|
|
848
886
|
// (a post that failed, retried a day later): it posts nothing, and the row says why, unless the
|
|
849
887
|
// episode already has its posted receipt. Returning ok drains it from the dispatch buffer.
|
|
@@ -879,7 +917,8 @@ export function buildSlackGatewayWire(opts) {
|
|
|
879
917
|
// The original decision only ever carries its original payload: if what's left differs, it goes out as a new
|
|
880
918
|
// decision with its own id and receipts (enqueued before the original is acked), so a post under one id never has two
|
|
881
919
|
// contents, and receipts bind to exactly the members posted under it. An earlier attempt of the original that may
|
|
882
|
-
// have landed is resolved by the reconciler first.
|
|
920
|
+
// have landed is resolved by the reconciler first. Quiet hours that can't be read aren't a quiet window: the digest
|
|
921
|
+
// posts and says so, and each member's row records it. A relay, which can't show that line, posts nothing (the catch).
|
|
883
922
|
const deliverDigestPost = async (decision, p) => {
|
|
884
923
|
const relay = isRelayDecision(decision, p);
|
|
885
924
|
const targetDeliver = targetDeliverFor(decision, p);
|
|
@@ -890,22 +929,24 @@ export function buildSlackGatewayWire(opts) {
|
|
|
890
929
|
}
|
|
891
930
|
const recipient = (p.destinationSession ?? "").split("@")[0] ?? "";
|
|
892
931
|
let quiet;
|
|
932
|
+
let quietUnreadable;
|
|
893
933
|
try {
|
|
894
934
|
quiet = recipient ? quietHoldFor(opts.queueRepo.db, recipient, new Date()) : null;
|
|
895
935
|
}
|
|
896
936
|
catch (error) {
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
937
|
+
if (relay) {
|
|
938
|
+
// A relay's attempted digest (it may be in Slack) is retained: acked, the next flush would mint the ask again
|
|
939
|
+
// from the row as it is now. A never-attempted one is acked: its members keep their digest notes, so the next
|
|
940
|
+
// flush selects them again. A store check only: no Slack read on a failure path.
|
|
941
|
+
if (relayTransport.wasAttempted(decision)) {
|
|
942
|
+
log(`digest post ${decision.decisionId} retained: quiet hours couldn't be read: ${error.message}`);
|
|
943
|
+
return { ok: false, class: "quiet-unreadable", detail: error.message };
|
|
944
|
+
}
|
|
945
|
+
log(`digest post ${decision.decisionId} not posted: quiet hours couldn't be read: ${error.message}`);
|
|
946
|
+
return { ok: true };
|
|
906
947
|
}
|
|
907
|
-
|
|
908
|
-
|
|
948
|
+
quiet = null;
|
|
949
|
+
quietUnreadable = error.message;
|
|
909
950
|
}
|
|
910
951
|
const aggregate = p.memberReceipts;
|
|
911
952
|
const members = aggregate ?? (p.qitemId ? [{ qitemId: p.qitemId, notificationKey: p.notificationKey ?? p.qitemId }] : []);
|
|
@@ -927,8 +968,18 @@ export function buildSlackGatewayWire(opts) {
|
|
|
927
968
|
holdForQuiet({ queueRepo: opts.queueRepo, jobsRepo, qitemId: m.qitemId, entityId: recipient, hold: { ...quiet, notificationKey: m.notificationKey } });
|
|
928
969
|
return false;
|
|
929
970
|
});
|
|
930
|
-
if (kept.length === members.length)
|
|
931
|
-
|
|
971
|
+
if (kept.length === members.length) {
|
|
972
|
+
// A digest holding a re-shown ask whose earlier attempt may be in Slack says it may repeat, and an attempt log that
|
|
973
|
+
// can't be read doesn't hold it. A kept digest decides the same when it comes back here.
|
|
974
|
+
const repeat = !relay && members.some((m) => rowMarks(m.qitemId, m.notificationKey).possibleRepeat);
|
|
975
|
+
if (quietUnreadable !== undefined) {
|
|
976
|
+
log(`digest post ${decision.decisionId} posting: its recipient's quiet hours couldn't be read (${quietUnreadable})`);
|
|
977
|
+
for (const m of members)
|
|
978
|
+
noteQuietUnreadable(opts.queueRepo, m.qitemId, m.notificationKey, quietUnreadable);
|
|
979
|
+
}
|
|
980
|
+
const marks = { ...(repeat ? { possibleRepeat: true } : {}), ...(quietUnreadable !== undefined ? { quietUnreadable: true } : {}) };
|
|
981
|
+
return targetDeliver(Object.keys(marks).length > 0 ? { ...decision, payload: { ...p, ...marks } } : decision); // the original, as it is
|
|
982
|
+
}
|
|
932
983
|
if (kept.length === 0 || !aggregate)
|
|
933
984
|
return { ok: true }; // nothing left to post under it
|
|
934
985
|
const keptIds = new Set(kept.map((m) => m.qitemId));
|
|
@@ -942,7 +993,7 @@ export function buildSlackGatewayWire(opts) {
|
|
|
942
993
|
return res.ok ? { ok: true } : { ok: false, class: "kept-dispatch-refused", detail: res.error };
|
|
943
994
|
};
|
|
944
995
|
const engineDeliver = async (decision) => {
|
|
945
|
-
|
|
996
|
+
let p = (decision.payload ?? {});
|
|
946
997
|
const relay = isRelayDecision(decision, p);
|
|
947
998
|
const targetDeliver = targetDeliverFor(decision, p);
|
|
948
999
|
if (relay) {
|
|
@@ -996,9 +1047,18 @@ export function buildSlackGatewayWire(opts) {
|
|
|
996
1047
|
entityId: (p.destinationSession ?? "").split("@")[0] ?? "",
|
|
997
1048
|
qitemId: p.qitemId,
|
|
998
1049
|
notificationKey: key,
|
|
1050
|
+
// Quiet hours that can't be read at release don't hold it: it posts and says so. A relay can't, so it waits.
|
|
1051
|
+
pastUnreadableQuiet: !relay,
|
|
999
1052
|
});
|
|
1000
|
-
if (verdict === "post")
|
|
1001
|
-
|
|
1053
|
+
if (verdict === "post" || verdict === "post-quiet-unreadable") {
|
|
1054
|
+
// A re-shown ask whose earlier attempt may be in Slack keeps saying so when its release posts it, and an attempt
|
|
1055
|
+
// log that still can't be read doesn't hold the release. (The release has just re-checked its state.)
|
|
1056
|
+
const { possibleRepeat } = relay ? {} : rowMarks(p.qitemId, key);
|
|
1057
|
+
if (verdict === "post-quiet-unreadable")
|
|
1058
|
+
log(`quiet release ${decision.decisionId} posting: its recipient's quiet hours couldn't be read`);
|
|
1059
|
+
const marks = { ...(possibleRepeat ? { possibleRepeat } : {}), ...(verdict === "post-quiet-unreadable" ? { quietUnreadable: true } : {}) };
|
|
1060
|
+
return targetDeliver(Object.keys(marks).length > 0 ? { ...decision, payload: { ...p, ...marks } } : decision);
|
|
1061
|
+
}
|
|
1002
1062
|
// Declined (the row says why) or couldn't be checked (nothing written): either way nothing posts now. Acking is
|
|
1003
1063
|
// safe because the window's release job owns redelivery until the ask has a receipt or a disposition; keeping it
|
|
1004
1064
|
// buffered would wait for a restart and block the job's own re-dispatch of the same decision id.
|
|
@@ -1016,17 +1076,18 @@ export function buildSlackGatewayWire(opts) {
|
|
|
1016
1076
|
return { ok: true };
|
|
1017
1077
|
}
|
|
1018
1078
|
// Whether an earlier attempt can be in Slack is read from the attempt log, which the landing check below reads
|
|
1019
|
-
// leniently. A log that exists but can't be read is unknown, not "never attempted":
|
|
1020
|
-
//
|
|
1079
|
+
// leniently. A log that exists but can't be read is unknown, not "never attempted": it counts as an earlier attempt
|
|
1080
|
+
// that may be in Slack, and never as a reason to write a not-posted record.
|
|
1081
|
+
let attemptLogUnreadable = null;
|
|
1021
1082
|
try {
|
|
1022
1083
|
(relay ? relayAttempted : attempted).statuses();
|
|
1023
1084
|
}
|
|
1024
1085
|
catch (error) {
|
|
1025
|
-
|
|
1026
|
-
return { ok: false, class: "re-present-attempt-log-unreadable", detail: error.message };
|
|
1086
|
+
attemptLogUnreadable = error.message;
|
|
1027
1087
|
}
|
|
1028
1088
|
// An earlier attempt of this decision found in Slack goes to delivery, which records it.
|
|
1029
|
-
const landing =
|
|
1089
|
+
const landing = attemptLogUnreadable ? "maybe"
|
|
1090
|
+
: !relay && "landing" in deliver ? await deliver.landing(decision) : "unattempted";
|
|
1030
1091
|
if (landing === "found" || landing === "partial")
|
|
1031
1092
|
return targetDeliver(decision);
|
|
1032
1093
|
const regForVerdict = registrySurface.loadHumanRegistry(opts.home);
|
|
@@ -1042,18 +1103,48 @@ export function buildSlackGatewayWire(opts) {
|
|
|
1042
1103
|
notificationKey: key,
|
|
1043
1104
|
...(alertsForVerdict ? { alerts: alertsForVerdict } : {}),
|
|
1044
1105
|
});
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1106
|
+
// A definite verdict is positive evidence: this is no longer the person's current ask, so it doesn't post. One whose
|
|
1107
|
+
// earlier attempt Slack couldn't rule out may already be posted: it's never recorded as not posted, and it stays in
|
|
1108
|
+
// the buffer, so its replay decides again (and reconciles) instead of the uncertainty being dropped.
|
|
1109
|
+
if (verdict.kind === "disposition") {
|
|
1110
|
+
if (landing === "maybe") {
|
|
1111
|
+
log(`re-shown ${decision.decisionId} retained: an earlier attempt may be in Slack, and it can't go on now (${verdict.reason})`);
|
|
1112
|
+
return attemptLogUnreadable
|
|
1113
|
+
? { ok: false, class: "re-present-attempt-log-unreadable", detail: attemptLogUnreadable }
|
|
1114
|
+
: { ok: false, class: "re-present-earlier-attempt-unconfirmed", detail: verdict.reason };
|
|
1115
|
+
}
|
|
1116
|
+
noteRePresentNotPosted(opts.queueRepo, p.qitemId, key, verdict);
|
|
1117
|
+
releaseRef(key);
|
|
1118
|
+
return { ok: true };
|
|
1119
|
+
}
|
|
1120
|
+
// What OpenRig can't tell isn't a reason to hold the ask: it goes on through the person's delivery settings (a
|
|
1121
|
+
// readable quiet window still holds it), and the post says what couldn't be checked. An attempt log that can't be
|
|
1122
|
+
// read can't record the new attempt either, so the bound is the process: a kept decision replays only when the
|
|
1123
|
+
// gateway starts, and the dispatcher takes a pending id once. The relay posts no such line, so it waits, as before.
|
|
1124
|
+
const unconfirmed = [
|
|
1125
|
+
...(attemptLogUnreadable || (landing === "maybe" && verdict.kind === "unavailable") ? ["attempt"] : []),
|
|
1126
|
+
...(verdict.kind === "unavailable" ? ["state"] : []),
|
|
1127
|
+
];
|
|
1128
|
+
if (unconfirmed.length > 0 && relay) {
|
|
1048
1129
|
if (landing === "maybe") {
|
|
1049
|
-
const why = verdict.kind === "unavailable" ? verdict.detail :
|
|
1130
|
+
const why = attemptLogUnreadable ?? (verdict.kind === "unavailable" ? verdict.detail : "an earlier attempt may be in Slack");
|
|
1050
1131
|
log(`re-shown ${decision.decisionId} retained: an earlier attempt may be in Slack, and it can't go on now (${why})`);
|
|
1051
|
-
return
|
|
1132
|
+
return attemptLogUnreadable
|
|
1133
|
+
? { ok: false, class: "re-present-attempt-log-unreadable", detail: attemptLogUnreadable }
|
|
1134
|
+
: { ok: false, class: "re-present-earlier-attempt-unconfirmed", detail: why };
|
|
1052
1135
|
}
|
|
1053
1136
|
noteRePresentNotPosted(opts.queueRepo, p.qitemId, key, verdict);
|
|
1054
1137
|
releaseRef(key);
|
|
1055
1138
|
return { ok: true };
|
|
1056
1139
|
}
|
|
1140
|
+
if (unconfirmed.length > 0) {
|
|
1141
|
+
const why = [attemptLogUnreadable ? `the attempt log couldn't be read (${attemptLogUnreadable})` : null,
|
|
1142
|
+
verdict.kind === "unavailable" ? `the ask's state couldn't be checked (${verdict.detail})` : null].filter(Boolean).join("; ");
|
|
1143
|
+
log(`re-shown ${decision.decisionId} goes on to delivery, marked: ${why}`);
|
|
1144
|
+
noteRePresentUnconfirmed(opts.queueRepo, p.qitemId, key, unconfirmed, why);
|
|
1145
|
+
p = { ...p, ...(unconfirmed.includes("attempt") ? { possibleRepeat: true } : {}), ...(unconfirmed.includes("state") ? { stateUnconfirmed: true } : {}) };
|
|
1146
|
+
decision = { ...decision, payload: p };
|
|
1147
|
+
}
|
|
1057
1148
|
}
|
|
1058
1149
|
if (p.deliveryDeferralFire) {
|
|
1059
1150
|
const fireKey = p.notificationKey ?? p.qitemId;
|
|
@@ -1061,7 +1152,9 @@ export function buildSlackGatewayWire(opts) {
|
|
|
1061
1152
|
releaseRef(p.qitemId);
|
|
1062
1153
|
return { ok: true };
|
|
1063
1154
|
}
|
|
1064
|
-
|
|
1155
|
+
// A deferred re-shown ask keeps its marks when the fire posts it: the fire checks nothing again.
|
|
1156
|
+
const marks = relay ? {} : rowMarks(p.qitemId, fireKey);
|
|
1157
|
+
return targetDeliver(Object.keys(marks).length > 0 ? { ...decision, payload: { ...p, ...marks } } : decision);
|
|
1065
1158
|
}
|
|
1066
1159
|
// A post confirmed partly in Slack finishes without consulting quiet hours, so it is resolved before the decision
|
|
1067
1160
|
// (which reads them). Only a started multipart post is checked here, from the stores first, so an ordinary
|
|
@@ -1074,7 +1167,9 @@ export function buildSlackGatewayWire(opts) {
|
|
|
1074
1167
|
}
|
|
1075
1168
|
let ruled;
|
|
1076
1169
|
try {
|
|
1077
|
-
|
|
1170
|
+
// Quiet hours that can't be read are decided past (see decideForPayload), so a re-shown ask goes through the
|
|
1171
|
+
// person's known settings like any other. What still throws here is the decision itself, which isn't permission.
|
|
1172
|
+
ruled = p.qitemId ? decideForPayload(p, { pastUnreadableQuiet: !relay }) : null;
|
|
1078
1173
|
}
|
|
1079
1174
|
catch (error) {
|
|
1080
1175
|
// An attempted decision (it may be partly or wholly in Slack) is retained and nothing posts: acking it would drop
|
|
@@ -1089,6 +1184,7 @@ export function buildSlackGatewayWire(opts) {
|
|
|
1089
1184
|
}
|
|
1090
1185
|
// The decision couldn't be made (for example the person's quiet hours couldn't be read): post nothing and record
|
|
1091
1186
|
// nothing. Releasing the in-flight guard lets the outbound sweep offer this still-unseen ask again and decide afresh.
|
|
1187
|
+
// (A relay's unreadable quiet hours land here: it can't show the line that would let it post.)
|
|
1092
1188
|
log(`delivery decision for ${p.qitemId} deferred: ${error.message}`);
|
|
1093
1189
|
// A re-shown ask is seen, so no sweep offers it again: its row says it wasn't posted, and the person who ran
|
|
1094
1190
|
// `rig slack post-open-asks` runs it again once the state reads (same decision id).
|
|
@@ -1162,6 +1258,13 @@ export function buildSlackGatewayWire(opts) {
|
|
|
1162
1258
|
releaseRef(p.qitemId);
|
|
1163
1259
|
return { ok: true };
|
|
1164
1260
|
}
|
|
1261
|
+
if (ruled.quietUnreadable !== undefined) {
|
|
1262
|
+
// It posts now, unmentioned, and says the person's quiet hours couldn't be read; the row records that first, and
|
|
1263
|
+
// what became of the post is its own receipt. A replay decides again from a fresh read.
|
|
1264
|
+
log(`${decision.decisionId} posting: ${p.qitemId}'s recipient's quiet hours couldn't be read (${ruled.quietUnreadable})`);
|
|
1265
|
+
noteQuietUnreadable(opts.queueRepo, p.qitemId, episodeKey, ruled.quietUnreadable);
|
|
1266
|
+
return targetDeliver({ ...decision, payload: { ...p, quietUnreadable: true } });
|
|
1267
|
+
}
|
|
1165
1268
|
}
|
|
1166
1269
|
return targetDeliver(decision);
|
|
1167
1270
|
};
|
|
@@ -1245,14 +1348,14 @@ export function buildSlackGatewayWire(opts) {
|
|
|
1245
1348
|
queue: ports,
|
|
1246
1349
|
seen: inboundSeen,
|
|
1247
1350
|
deadLetter: dead,
|
|
1248
|
-
destination:
|
|
1351
|
+
destination: inbound.destination,
|
|
1249
1352
|
reactions: cfg.reactions === "off" ? "off" : "route",
|
|
1250
1353
|
resolveSender: makeInboundSenderResolver(registry, opts.home),
|
|
1251
1354
|
// S10 — deterministic thread routing: mapped thread → exactly the mapped seat; unmapped
|
|
1252
1355
|
// or human-initiated → the configured orchestrator slot as an unrouted-signal row.
|
|
1253
1356
|
resolveRoute: makeThreadRouteResolver({
|
|
1254
1357
|
map: threadMap,
|
|
1255
|
-
unroutedDestination:
|
|
1358
|
+
unroutedDestination: inbound.destination,
|
|
1256
1359
|
// A person's top-level message in a channel the map routes: its `inbound` seat or its rig's representative.
|
|
1257
1360
|
resolveChannelDestination: (channel) => resolveInboundChannelDestination(cfg, channel, (rig) => resolveRigRepresentative(opts.queueRepo.db, rig)),
|
|
1258
1361
|
log,
|
|
@@ -1375,6 +1478,7 @@ export function buildSlackGatewayWire(opts) {
|
|
|
1375
1478
|
return {
|
|
1376
1479
|
dispatcher: wire.dispatcher,
|
|
1377
1480
|
...(acceptForwarded ? { acceptForwarded } : {}),
|
|
1481
|
+
releaseOutboundKey: (key) => releaseRef(key),
|
|
1378
1482
|
startServices: () => {
|
|
1379
1483
|
if (servicesLive)
|
|
1380
1484
|
return; // idempotent — a double post-bind start must not double-poll
|