@openrig/cli 0.7.16 → 0.7.18
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 -9
- package/daemon/assets/onboarding/02-self-and-competent-action.md +5 -41
- package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/skills/working-with-an-openrig-team/SKILL.md +22 -6
- 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/refocus.cjs +5 -0
- package/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md +23 -0
- package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +11 -0
- package/daemon/assets/plugins/openrig-core/skills/refocusing/scripts/trace-to-root.py +25 -5
- package/daemon/assets/skills/rigs/SKILL.md +95 -42
- package/daemon/assets/skills/rigs/references/installing-for-someone.md +47 -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 +123 -35
- package/daemon/context-packs/reference/getting-started.md +8 -8
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +166 -0
- package/daemon/context-packs/reference/whats-new.md +294 -6
- 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/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 +23 -0
- package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-software-factory/references/worked-example.md +1 -1
- package/daemon/context-packs/skills/core/openrig-upgrade/SKILL.md +2 -0
- package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/working-with-an-openrig-team/SKILL.md +22 -6
- 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 +11 -0
- 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/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/refocusing/scripts/trace-to-root.py +25 -5
- package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
- package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
- package/daemon/context-packs/world-example/manifest.yaml +1 -1
- package/daemon/context-packs/world-public/manifest.yaml +1 -1
- package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +52 -8
- 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 +17 -7
- package/daemon/dist/adapters/claude-resume.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 +22 -10
- package/daemon/dist/adapters/kernel-authority.js.map +1 -1
- package/daemon/dist/adapters/openshell-driver.d.ts +1 -0
- package/daemon/dist/adapters/openshell-driver.d.ts.map +1 -1
- package/daemon/dist/adapters/openshell-driver.js +3 -0
- package/daemon/dist/adapters/openshell-driver.js.map +1 -1
- package/daemon/dist/adapters/openshell-podman-observer.d.ts +9 -7
- package/daemon/dist/adapters/openshell-podman-observer.d.ts.map +1 -1
- package/daemon/dist/adapters/openshell-podman-observer.js +20 -3
- package/daemon/dist/adapters/openshell-podman-observer.js.map +1 -1
- package/daemon/dist/adapters/pi-runner-protocol.d.ts +43 -0
- package/daemon/dist/adapters/pi-runner-protocol.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner-protocol.js.map +1 -1
- package/daemon/dist/adapters/pi-runner.d.ts +88 -5
- package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner.js +707 -43
- package/daemon/dist/adapters/pi-runner.js.map +1 -1
- package/daemon/dist/adapters/tmux-credential-env.d.ts +4 -0
- package/daemon/dist/adapters/tmux-credential-env.d.ts.map +1 -0
- package/daemon/dist/adapters/tmux-credential-env.js +14 -0
- package/daemon/dist/adapters/tmux-credential-env.js.map +1 -0
- package/daemon/dist/adapters/tmux-exec.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-exec.js +4 -3
- package/daemon/dist/adapters/tmux-exec.js.map +1 -1
- package/daemon/dist/adapters/tmux-server.d.ts +2 -2
- package/daemon/dist/adapters/tmux-server.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-server.js +12 -4
- package/daemon/dist/adapters/tmux-server.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +223 -12
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +836 -30
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/attention-surface.d.ts +4 -1
- 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 +12 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrations/168_context_usage_occupant_generation.d.ts +6 -0
- package/daemon/dist/db/migrations/168_context_usage_occupant_generation.d.ts.map +1 -0
- package/daemon/dist/db/migrations/168_context_usage_occupant_generation.js +10 -0
- package/daemon/dist/db/migrations/168_context_usage_occupant_generation.js.map +1 -0
- package/daemon/dist/db/migrations/170_rig_delivery_drains.d.ts +3 -0
- package/daemon/dist/db/migrations/170_rig_delivery_drains.d.ts.map +1 -0
- package/daemon/dist/db/migrations/170_rig_delivery_drains.js +21 -0
- package/daemon/dist/db/migrations/170_rig_delivery_drains.js.map +1 -0
- package/daemon/dist/db/migrations/171_claude_auto_mode.d.ts +4 -0
- package/daemon/dist/db/migrations/171_claude_auto_mode.d.ts.map +1 -0
- package/daemon/dist/db/migrations/171_claude_auto_mode.js +9 -0
- package/daemon/dist/db/migrations/171_claude_auto_mode.js.map +1 -0
- package/daemon/dist/db/migrations/171_node_input_route.d.ts +4 -0
- package/daemon/dist/db/migrations/171_node_input_route.d.ts.map +1 -0
- package/daemon/dist/db/migrations/171_node_input_route.js +6 -0
- package/daemon/dist/db/migrations/171_node_input_route.js.map +1 -0
- package/daemon/dist/db/migrations/172_queue_return_route.d.ts +3 -0
- package/daemon/dist/db/migrations/172_queue_return_route.d.ts.map +1 -0
- package/daemon/dist/db/migrations/172_queue_return_route.js +13 -0
- package/daemon/dist/db/migrations/172_queue_return_route.js.map +1 -0
- package/daemon/dist/db/migrations/173_node_process_limits.d.ts +4 -0
- package/daemon/dist/db/migrations/173_node_process_limits.d.ts.map +1 -0
- package/daemon/dist/db/migrations/173_node_process_limits.js +6 -0
- package/daemon/dist/db/migrations/173_node_process_limits.js.map +1 -0
- package/daemon/dist/domain/activity-grants.d.ts.map +1 -1
- package/daemon/dist/domain/activity-grants.js +2 -0
- package/daemon/dist/domain/activity-grants.js.map +1 -1
- package/daemon/dist/domain/agent-activity-store.d.ts +36 -1
- package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
- package/daemon/dist/domain/agent-activity-store.js +192 -3
- package/daemon/dist/domain/agent-activity-store.js.map +1 -1
- package/daemon/dist/domain/agent-images/resume-token-discovery.d.ts +10 -0
- package/daemon/dist/domain/agent-images/resume-token-discovery.d.ts.map +1 -1
- package/daemon/dist/domain/agent-images/resume-token-discovery.js +21 -0
- package/daemon/dist/domain/agent-images/resume-token-discovery.js.map +1 -1
- package/daemon/dist/domain/applied-launch-observation-store.d.ts +5 -0
- package/daemon/dist/domain/applied-launch-observation-store.d.ts.map +1 -1
- package/daemon/dist/domain/applied-launch-observation-store.js +57 -21
- package/daemon/dist/domain/applied-launch-observation-store.js.map +1 -1
- package/daemon/dist/domain/builtin-startup-files.d.ts +26 -12
- package/daemon/dist/domain/builtin-startup-files.d.ts.map +1 -1
- package/daemon/dist/domain/builtin-startup-files.js +73 -34
- package/daemon/dist/domain/builtin-startup-files.js.map +1 -1
- package/daemon/dist/domain/claude-auto-mode.d.ts +64 -0
- package/daemon/dist/domain/claude-auto-mode.d.ts.map +1 -0
- package/daemon/dist/domain/claude-auto-mode.js +114 -0
- package/daemon/dist/domain/claude-auto-mode.js.map +1 -0
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts +2 -0
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.js +11 -4
- package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
- package/daemon/dist/domain/claude-continuation-launch.d.ts +5 -1
- package/daemon/dist/domain/claude-continuation-launch.d.ts.map +1 -1
- package/daemon/dist/domain/claude-continuation-launch.js +51 -2
- package/daemon/dist/domain/claude-continuation-launch.js.map +1 -1
- package/daemon/dist/domain/claude-core-plugin-env.d.ts +7 -3
- package/daemon/dist/domain/claude-core-plugin-env.d.ts.map +1 -1
- package/daemon/dist/domain/claude-core-plugin-env.js +11 -8
- package/daemon/dist/domain/claude-core-plugin-env.js.map +1 -1
- package/daemon/dist/domain/codex-daemon-support.d.ts.map +1 -1
- package/daemon/dist/domain/codex-daemon-support.js +6 -1
- package/daemon/dist/domain/codex-daemon-support.js.map +1 -1
- package/daemon/dist/domain/codex-thread-id.d.ts +13 -0
- package/daemon/dist/domain/codex-thread-id.d.ts.map +1 -1
- package/daemon/dist/domain/codex-thread-id.js +132 -9
- package/daemon/dist/domain/codex-thread-id.js.map +1 -1
- package/daemon/dist/domain/community-harness-launch-result.d.ts +2 -0
- package/daemon/dist/domain/community-harness-launch-result.d.ts.map +1 -1
- package/daemon/dist/domain/community-harness-launch-result.js +5 -1
- package/daemon/dist/domain/community-harness-launch-result.js.map +1 -1
- package/daemon/dist/domain/connection-contract.d.ts +91 -0
- package/daemon/dist/domain/connection-contract.d.ts.map +1 -1
- package/daemon/dist/domain/connection-contract.js +75 -1
- package/daemon/dist/domain/connection-contract.js.map +1 -1
- package/daemon/dist/domain/context-usage-store.d.ts +16 -2
- package/daemon/dist/domain/context-usage-store.d.ts.map +1 -1
- package/daemon/dist/domain/context-usage-store.js +70 -15
- package/daemon/dist/domain/context-usage-store.js.map +1 -1
- package/daemon/dist/domain/current-work.d.ts +11 -1
- package/daemon/dist/domain/current-work.d.ts.map +1 -1
- package/daemon/dist/domain/current-work.js +107 -12
- package/daemon/dist/domain/current-work.js.map +1 -1
- package/daemon/dist/domain/cwd-resolution.d.ts +2 -0
- package/daemon/dist/domain/cwd-resolution.d.ts.map +1 -1
- package/daemon/dist/domain/cwd-resolution.js +7 -2
- package/daemon/dist/domain/cwd-resolution.js.map +1 -1
- package/daemon/dist/domain/draft-aware-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/draft-aware-delivery.js +5 -1
- package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
- package/daemon/dist/domain/environment-lifecycle.d.ts +15 -0
- package/daemon/dist/domain/environment-lifecycle.d.ts.map +1 -1
- package/daemon/dist/domain/environment-lifecycle.js +22 -4
- package/daemon/dist/domain/environment-lifecycle.js.map +1 -1
- package/daemon/dist/domain/errors.d.ts +4 -0
- package/daemon/dist/domain/errors.d.ts.map +1 -1
- package/daemon/dist/domain/errors.js +7 -0
- package/daemon/dist/domain/errors.js.map +1 -1
- package/daemon/dist/domain/execution-view.d.ts.map +1 -1
- package/daemon/dist/domain/execution-view.js +8 -1
- package/daemon/dist/domain/execution-view.js.map +1 -1
- package/daemon/dist/domain/existing-rig-restore.d.ts +2 -0
- package/daemon/dist/domain/existing-rig-restore.d.ts.map +1 -1
- package/daemon/dist/domain/existing-rig-restore.js +1 -0
- package/daemon/dist/domain/existing-rig-restore.js.map +1 -1
- package/daemon/dist/domain/expected-conversation.d.ts.map +1 -1
- package/daemon/dist/domain/expected-conversation.js +26 -11
- package/daemon/dist/domain/expected-conversation.js.map +1 -1
- package/daemon/dist/domain/gateway/destination-resolver.d.ts +4 -0
- package/daemon/dist/domain/gateway/destination-resolver.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/destination-resolver.js +10 -3
- package/daemon/dist/domain/gateway/destination-resolver.js.map +1 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts +3 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.js +120 -6
- package/daemon/dist/domain/gateway/operator-delivery-engine.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/capabilities.d.ts +9 -1
- package/daemon/dist/domain/gateway/slack/capabilities.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/capabilities.js +6 -1
- package/daemon/dist/domain/gateway/slack/capabilities.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound-admission.js +1 -1
- package/daemon/dist/domain/gateway/slack/inbound-admission.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.d.ts +4 -0
- package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.js +15 -1
- package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/manifest.d.ts +5 -1
- package/daemon/dist/domain/gateway/slack/manifest.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/manifest.js +12 -3
- package/daemon/dist/domain/gateway/slack/manifest.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.d.ts +1 -0
- package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.js +4 -1
- package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts +2 -0
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.js +1 -0
- package/daemon/dist/domain/gateway/slack/queue-access.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 +6 -5
- package/daemon/dist/domain/gateway/slack/settled-asks.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-api.d.ts +1 -0
- package/daemon/dist/domain/gateway/slack/slack-api.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-api.js +7 -2
- package/daemon/dist/domain/gateway/slack/slack-api.js.map +1 -1
- package/daemon/dist/domain/harness-not-started-notice.d.ts +36 -0
- package/daemon/dist/domain/harness-not-started-notice.d.ts.map +1 -0
- package/daemon/dist/domain/harness-not-started-notice.js +81 -0
- package/daemon/dist/domain/harness-not-started-notice.js.map +1 -0
- package/daemon/dist/domain/health-diagnosis.d.ts.map +1 -1
- package/daemon/dist/domain/health-diagnosis.js +4 -0
- 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/input-read-diagnostic.js +1 -1
- package/daemon/dist/domain/input-read-diagnostic.js.map +1 -1
- package/daemon/dist/domain/instance-initialization.d.ts +2 -0
- package/daemon/dist/domain/instance-initialization.d.ts.map +1 -1
- package/daemon/dist/domain/instance-initialization.js +2 -1
- package/daemon/dist/domain/instance-initialization.js.map +1 -1
- package/daemon/dist/domain/member-connection.d.ts +14 -0
- package/daemon/dist/domain/member-connection.d.ts.map +1 -0
- package/daemon/dist/domain/member-connection.js +34 -0
- package/daemon/dist/domain/member-connection.js.map +1 -0
- 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 +1 -1
- 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 +3 -1
- package/daemon/dist/domain/model-divergence/current-model-reader.d.ts.map +1 -1
- package/daemon/dist/domain/model-divergence/current-model-reader.js +32 -7
- package/daemon/dist/domain/model-divergence/current-model-reader.js.map +1 -1
- package/daemon/dist/domain/native-model-picker.d.ts +2 -0
- package/daemon/dist/domain/native-model-picker.d.ts.map +1 -1
- package/daemon/dist/domain/native-model-picker.js +8 -2
- package/daemon/dist/domain/native-model-picker.js.map +1 -1
- package/daemon/dist/domain/native-permission-store.d.ts +6 -2
- package/daemon/dist/domain/native-permission-store.d.ts.map +1 -1
- package/daemon/dist/domain/native-permission-store.js +12 -5
- package/daemon/dist/domain/native-permission-store.js.map +1 -1
- package/daemon/dist/domain/native-resume-probe.d.ts +5 -0
- package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +172 -21
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/network/network-connector.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-connector.js +16 -5
- package/daemon/dist/domain/network/network-connector.js.map +1 -1
- package/daemon/dist/domain/network/network-installations.d.ts +5 -4
- package/daemon/dist/domain/network/network-installations.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-installations.js +42 -11
- package/daemon/dist/domain/network/network-installations.js.map +1 -1
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +28 -0
- 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 +23 -7
- package/daemon/dist/domain/node-launcher.js.map +1 -1
- package/daemon/dist/domain/occupant-invalidator.d.ts +4 -1
- package/daemon/dist/domain/occupant-invalidator.d.ts.map +1 -1
- package/daemon/dist/domain/occupant-invalidator.js +10 -2
- package/daemon/dist/domain/occupant-invalidator.js.map +1 -1
- package/daemon/dist/domain/operation-correlation.d.ts +1 -1
- package/daemon/dist/domain/operation-correlation.d.ts.map +1 -1
- package/daemon/dist/domain/operation-correlation.js +1 -1
- package/daemon/dist/domain/operation-correlation.js.map +1 -1
- package/daemon/dist/domain/outbox-handler.d.ts +50 -0
- package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
- package/daemon/dist/domain/outbox-handler.js +255 -1
- package/daemon/dist/domain/outbox-handler.js.map +1 -1
- package/daemon/dist/domain/parked-query.d.ts.map +1 -1
- package/daemon/dist/domain/parked-query.js +3 -1
- package/daemon/dist/domain/parked-query.js.map +1 -1
- package/daemon/dist/domain/permission-account.d.ts +28 -1
- package/daemon/dist/domain/permission-account.d.ts.map +1 -1
- package/daemon/dist/domain/permission-account.js +55 -11
- package/daemon/dist/domain/permission-account.js.map +1 -1
- package/daemon/dist/domain/permission-drift.d.ts +2 -0
- package/daemon/dist/domain/permission-drift.d.ts.map +1 -1
- package/daemon/dist/domain/permission-drift.js.map +1 -1
- package/daemon/dist/domain/pi-compaction-request-store.d.ts +16 -0
- package/daemon/dist/domain/pi-compaction-request-store.d.ts.map +1 -0
- package/daemon/dist/domain/pi-compaction-request-store.js +40 -0
- package/daemon/dist/domain/pi-compaction-request-store.js.map +1 -0
- package/daemon/dist/domain/pi-compaction-service.d.ts +82 -0
- package/daemon/dist/domain/pi-compaction-service.d.ts.map +1 -0
- package/daemon/dist/domain/pi-compaction-service.js +229 -0
- package/daemon/dist/domain/pi-compaction-service.js.map +1 -0
- package/daemon/dist/domain/process-limits.d.ts +37 -0
- package/daemon/dist/domain/process-limits.d.ts.map +1 -0
- package/daemon/dist/domain/process-limits.js +69 -0
- package/daemon/dist/domain/process-limits.js.map +1 -0
- package/daemon/dist/domain/process-table.d.ts +9 -0
- package/daemon/dist/domain/process-table.d.ts.map +1 -1
- package/daemon/dist/domain/process-table.js +21 -4
- package/daemon/dist/domain/process-table.js.map +1 -1
- package/daemon/dist/domain/proof/judgments.d.ts +7 -0
- package/daemon/dist/domain/proof/judgments.d.ts.map +1 -1
- package/daemon/dist/domain/proof/judgments.js +27 -1
- package/daemon/dist/domain/proof/judgments.js.map +1 -1
- package/daemon/dist/domain/ps-projection.d.ts +2 -1
- package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
- package/daemon/dist/domain/ps-projection.js +6 -1
- package/daemon/dist/domain/ps-projection.js.map +1 -1
- package/daemon/dist/domain/queue-erasure.d.ts +18 -7
- package/daemon/dist/domain/queue-erasure.d.ts.map +1 -1
- package/daemon/dist/domain/queue-erasure.js +270 -41
- package/daemon/dist/domain/queue-erasure.js.map +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +81 -16
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +325 -76
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts +3 -0
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +90 -30
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/queue-transition-log.d.ts +5 -3
- package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
- package/daemon/dist/domain/queue-transition-log.js +9 -6
- package/daemon/dist/domain/queue-transition-log.js.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.d.ts +8 -0
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +245 -41
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/queue-wake-repository.d.ts +2 -1
- package/daemon/dist/domain/queue-wake-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-repository.js +31 -4
- package/daemon/dist/domain/queue-wake-repository.js.map +1 -1
- package/daemon/dist/domain/restore-check-service.d.ts +23 -0
- package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
- package/daemon/dist/domain/restore-check-service.js +198 -12
- package/daemon/dist/domain/restore-check-service.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +64 -3
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +335 -82
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/restore-plan-preview.d.ts +28 -1
- package/daemon/dist/domain/restore-plan-preview.d.ts.map +1 -1
- package/daemon/dist/domain/restore-plan-preview.js +17 -5
- package/daemon/dist/domain/restore-plan-preview.js.map +1 -1
- package/daemon/dist/domain/restore-preconditions.d.ts +26 -0
- package/daemon/dist/domain/restore-preconditions.d.ts.map +1 -1
- package/daemon/dist/domain/restore-preconditions.js +63 -1
- package/daemon/dist/domain/restore-preconditions.js.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.d.ts.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.js +4 -1
- package/daemon/dist/domain/resume-metadata-refresher.js.map +1 -1
- package/daemon/dist/domain/resume-token-validation.d.ts +3 -1
- package/daemon/dist/domain/resume-token-validation.d.ts.map +1 -1
- package/daemon/dist/domain/resume-token-validation.js +6 -3
- package/daemon/dist/domain/resume-token-validation.js.map +1 -1
- package/daemon/dist/domain/return-route.d.ts +73 -0
- package/daemon/dist/domain/return-route.d.ts.map +1 -0
- package/daemon/dist/domain/return-route.js +124 -0
- package/daemon/dist/domain/return-route.js.map +1 -0
- package/daemon/dist/domain/rig-delivery-drain.d.ts +46 -0
- package/daemon/dist/domain/rig-delivery-drain.d.ts.map +1 -0
- package/daemon/dist/domain/rig-delivery-drain.js +128 -0
- package/daemon/dist/domain/rig-delivery-drain.js.map +1 -0
- package/daemon/dist/domain/rig-expansion-service.js +1 -1
- package/daemon/dist/domain/rig-expansion-service.js.map +1 -1
- package/daemon/dist/domain/rig-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/rig-lifecycle-service.js +4 -1
- package/daemon/dist/domain/rig-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/rig-repository.d.ts +12 -0
- package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
- package/daemon/dist/domain/rig-repository.js +73 -0
- package/daemon/dist/domain/rig-repository.js.map +1 -1
- package/daemon/dist/domain/rig-teardown.d.ts +22 -3
- package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
- package/daemon/dist/domain/rig-teardown.js +99 -20
- 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 +9 -0
- package/daemon/dist/domain/rigspec-codec.js.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.d.ts +6 -0
- package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.js +30 -0
- package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts +22 -2
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +82 -23
- package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/daemon/dist/domain/rigspec-preflight.d.ts +1 -1
- package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-preflight.js +16 -1
- package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
- package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-schema.js +44 -1
- package/daemon/dist/domain/rigspec-schema.js.map +1 -1
- package/daemon/dist/domain/rosters.d.ts +12 -0
- package/daemon/dist/domain/rosters.d.ts.map +1 -1
- package/daemon/dist/domain/rosters.js +17 -4
- package/daemon/dist/domain/rosters.js.map +1 -1
- package/daemon/dist/domain/runner-channel.d.ts +33 -0
- package/daemon/dist/domain/runner-channel.d.ts.map +1 -0
- package/daemon/dist/domain/runner-channel.js +179 -0
- package/daemon/dist/domain/runner-channel.js.map +1 -0
- package/daemon/dist/domain/runner-grant-launch.js +2 -2
- package/daemon/dist/domain/runtime-adapter.d.ts +2 -0
- package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-adapter.js.map +1 -1
- package/daemon/dist/domain/runtime-switch-materials.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-switch-materials.js +4 -3
- package/daemon/dist/domain/runtime-switch-materials.js.map +1 -1
- package/daemon/dist/domain/scope/scope-audit.d.ts.map +1 -1
- package/daemon/dist/domain/scope/scope-audit.js +55 -3
- package/daemon/dist/domain/scope/scope-audit.js.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.d.ts +6 -4
- package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.js +17 -10
- package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.js +2 -1
- package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
- package/daemon/dist/domain/seat-handover-service.d.ts +27 -4
- package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-handover-service.js +209 -64
- package/daemon/dist/domain/seat-handover-service.js.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.d.ts +8 -1
- package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.js +52 -12
- package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-launch-environment.d.ts +3 -2
- package/daemon/dist/domain/seat-launch-environment.d.ts.map +1 -1
- package/daemon/dist/domain/seat-launch-environment.js +16 -4
- package/daemon/dist/domain/seat-launch-environment.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +21 -4
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +68 -2
- 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 +34 -2
- package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts +4 -0
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.js +9 -3
- package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
- package/daemon/dist/domain/seat-status-service.d.ts +4 -0
- package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-status-service.js +31 -6
- package/daemon/dist/domain/seat-status-service.js.map +1 -1
- package/daemon/dist/domain/session-name.d.ts +13 -0
- package/daemon/dist/domain/session-name.d.ts.map +1 -1
- package/daemon/dist/domain/session-name.js +77 -0
- package/daemon/dist/domain/session-name.js.map +1 -1
- package/daemon/dist/domain/session-registry.d.ts +7 -1
- package/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.js +7 -4
- package/daemon/dist/domain/session-registry.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +16 -3
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +161 -16
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/shared-conversation.d.ts +58 -0
- package/daemon/dist/domain/shared-conversation.d.ts.map +1 -0
- package/daemon/dist/domain/shared-conversation.js +98 -0
- package/daemon/dist/domain/shared-conversation.js.map +1 -0
- package/daemon/dist/domain/shared-history-selection.d.ts +1 -0
- package/daemon/dist/domain/shared-history-selection.d.ts.map +1 -1
- package/daemon/dist/domain/shared-history-selection.js +3 -1
- package/daemon/dist/domain/shared-history-selection.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 +19 -12
- package/daemon/dist/domain/snapshot-capture.js.map +1 -1
- package/daemon/dist/domain/startup-phase-timing.d.ts +19 -0
- package/daemon/dist/domain/startup-phase-timing.d.ts.map +1 -0
- package/daemon/dist/domain/startup-phase-timing.js +23 -0
- package/daemon/dist/domain/startup-phase-timing.js.map +1 -0
- package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.js +3 -2
- package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.d.ts +9 -0
- package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.js +24 -7
- package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
- package/daemon/dist/domain/team-operations.d.ts +6 -6
- package/daemon/dist/domain/team-operations.d.ts.map +1 -1
- package/daemon/dist/domain/team-operations.js +2 -4
- package/daemon/dist/domain/team-operations.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-app-provider.d.ts +6 -0
- package/daemon/dist/domain/terminal/herdr-app-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-app-provider.js +23 -1
- package/daemon/dist/domain/terminal/herdr-app-provider.js.map +1 -1
- package/daemon/dist/domain/terminal-policy.js +1 -1
- package/daemon/dist/domain/terminal-policy.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +91 -6
- 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-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 +6 -0
- package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
- package/daemon/dist/domain/watchdog-delivery.d.ts +1 -1
- package/daemon/dist/domain/watchdog-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-delivery.js +6 -3
- package/daemon/dist/domain/watchdog-delivery.js.map +1 -1
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-jobs-repository.js +1 -0
- package/daemon/dist/domain/watchdog-jobs-repository.js.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.d.ts +9 -0
- package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.js +42 -5
- package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
- package/daemon/dist/domain/workflow-instance-store.d.ts +3 -2
- package/daemon/dist/domain/workflow-instance-store.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-instance-store.js +6 -4
- package/daemon/dist/domain/workflow-instance-store.js.map +1 -1
- package/daemon/dist/domain/workflow-projector.d.ts +48 -0
- package/daemon/dist/domain/workflow-projector.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-projector.js +160 -90
- package/daemon/dist/domain/workflow-projector.js.map +1 -1
- package/daemon/dist/domain/workflow-reconciliation.d.ts +7 -1
- package/daemon/dist/domain/workflow-reconciliation.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-reconciliation.js +51 -13
- package/daemon/dist/domain/workflow-reconciliation.js.map +1 -1
- package/daemon/dist/domain/workflow-runtime.d.ts +5 -3
- package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-runtime.js +48 -22
- package/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts +7 -1
- package/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts.map +1 -1
- package/daemon/dist/domain/workspace/default-workspace-scaffold.js +35 -7
- package/daemon/dist/domain/workspace/default-workspace-scaffold.js.map +1 -1
- package/daemon/dist/gateway-slack-surface.d.ts +2 -2
- package/daemon/dist/gateway-slack-surface.d.ts.map +1 -1
- package/daemon/dist/gateway-slack-surface.js +1 -1
- package/daemon/dist/gateway-slack-surface.js.map +1 -1
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +13 -2
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/routes/activity.d.ts.map +1 -1
- package/daemon/dist/routes/activity.js +105 -2
- 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 +6 -1
- 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 +2 -1
- package/daemon/dist/routes/attention.js.map +1 -1
- package/daemon/dist/routes/compaction.d.ts.map +1 -1
- package/daemon/dist/routes/compaction.js +46 -7
- package/daemon/dist/routes/compaction.js.map +1 -1
- package/daemon/dist/routes/queue.d.ts +4 -1
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +266 -38
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/require-sender-identity.d.ts +4 -3
- package/daemon/dist/routes/require-sender-identity.d.ts.map +1 -1
- package/daemon/dist/routes/require-sender-identity.js.map +1 -1
- package/daemon/dist/routes/restore-check.d.ts.map +1 -1
- package/daemon/dist/routes/restore-check.js +18 -0
- package/daemon/dist/routes/restore-check.js.map +1 -1
- package/daemon/dist/routes/rig-delivery-drain.d.ts +3 -0
- package/daemon/dist/routes/rig-delivery-drain.d.ts.map +1 -0
- package/daemon/dist/routes/rig-delivery-drain.js +46 -0
- package/daemon/dist/routes/rig-delivery-drain.js.map +1 -0
- package/daemon/dist/routes/rigspec.d.ts.map +1 -1
- package/daemon/dist/routes/rigspec.js +24 -4
- package/daemon/dist/routes/rigspec.js.map +1 -1
- package/daemon/dist/routes/seat.d.ts.map +1 -1
- package/daemon/dist/routes/seat.js +107 -6
- package/daemon/dist/routes/seat.js.map +1 -1
- package/daemon/dist/routes/sessions.js +14 -3
- package/daemon/dist/routes/sessions.js.map +1 -1
- package/daemon/dist/routes/startup.d.ts.map +1 -1
- package/daemon/dist/routes/startup.js +127 -29
- package/daemon/dist/routes/startup.js.map +1 -1
- package/daemon/dist/routes/up.d.ts.map +1 -1
- package/daemon/dist/routes/up.js +16 -4
- package/daemon/dist/routes/up.js.map +1 -1
- package/daemon/dist/routes/watchdog.d.ts.map +1 -1
- package/daemon/dist/routes/watchdog.js +18 -1
- package/daemon/dist/routes/watchdog.js.map +1 -1
- package/daemon/dist/routes/workflow.js +1 -1
- package/daemon/dist/routes/workflow.js.map +1 -1
- package/daemon/dist/server.d.ts +3 -0
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +13 -0
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +57 -16
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/docs/reference/agent-startup-guide.md +5 -3
- package/daemon/docs/reference/community-harness-examples/dsh/README.md +8 -0
- package/daemon/docs/reference/community-harness-examples/dsh/openrig-dsh-runner.mjs +139 -5
- package/daemon/docs/reference/community-harness-presets.md +2 -0
- package/daemon/docs/reference/daemon-http-clients.md +123 -6
- package/daemon/docs/reference/getting-started.md +8 -8
- package/daemon/docs/reference/harness-runner-contract.md +91 -1
- package/daemon/docs/reference/herdr-app.md +6 -0
- package/daemon/docs/reference/hosted-members.md +4 -2
- package/daemon/docs/reference/network-connector.md +4 -3
- package/daemon/docs/reference/queue-erasure.md +16 -1
- package/daemon/docs/reference/quickstart.md +2 -2
- package/daemon/docs/reference/rig-spec.md +166 -0
- package/daemon/docs/reference/rosters.md +9 -0
- package/daemon/docs/reference/sdlc-conventions.md +5 -1
- package/daemon/docs/reference/slack-app-setup.md +39 -21
- package/daemon/docs/reference/whats-new.md +294 -6
- package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +23 -0
- package/daemon/specs/agents/shared/skills/core/openrig-software-factory/references/worked-example.md +1 -1
- package/daemon/specs/agents/shared/skills/core/openrig-upgrade/SKILL.md +2 -0
- package/daemon/specs/agents/shared/skills/core/working-with-an-openrig-team/SKILL.md +22 -6
- package/daemon/specs/rigs/launch/factory/guidance/lead-first-move.md +26 -5
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +92 -18
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/startup/context.md +9 -6
- package/daemon/specs/rigs/launch/kernel/culture/CULTURE.md +12 -0
- package/daemon/specs/rigs/launch/starter/guidance/lead-first-move.md +26 -5
- package/dist/acp/connector.js +1 -1
- package/dist/acp/connector.js.map +1 -1
- package/dist/build-info.js +3 -3
- package/dist/cli-error.d.ts.map +1 -1
- package/dist/cli-error.js +7 -1
- package/dist/cli-error.js.map +1 -1
- package/dist/client.d.ts +2 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +3 -2
- package/dist/client.js.map +1 -1
- package/dist/commands/ask.d.ts.map +1 -1
- package/dist/commands/ask.js +92 -11
- package/dist/commands/ask.js.map +1 -1
- package/dist/commands/broadcast.js +9 -5
- package/dist/commands/broadcast.js.map +1 -1
- package/dist/commands/compact.d.ts +3 -4
- package/dist/commands/compact.d.ts.map +1 -1
- package/dist/commands/compact.js +76 -16
- package/dist/commands/compact.js.map +1 -1
- package/dist/commands/config-init-workspace.d.ts.map +1 -1
- package/dist/commands/config-init-workspace.js +3 -0
- package/dist/commands/config-init-workspace.js.map +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +2 -0
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/down.d.ts.map +1 -1
- package/dist/commands/down.js +7 -1
- package/dist/commands/down.js.map +1 -1
- package/dist/commands/environment.js +1 -1
- package/dist/commands/environment.js.map +1 -1
- package/dist/commands/export.d.ts.map +1 -1
- package/dist/commands/export.js +2 -1
- package/dist/commands/export.js.map +1 -1
- package/dist/commands/fork.d.ts.map +1 -1
- package/dist/commands/fork.js +2 -0
- package/dist/commands/fork.js.map +1 -1
- package/dist/commands/launch.d.ts.map +1 -1
- package/dist/commands/launch.js +11 -3
- package/dist/commands/launch.js.map +1 -1
- package/dist/commands/network.d.ts +2 -0
- package/dist/commands/network.d.ts.map +1 -1
- package/dist/commands/network.js +14 -1
- package/dist/commands/network.js.map +1 -1
- package/dist/commands/ps.d.ts +28 -0
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +76 -2
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue.d.ts +1 -1
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +350 -29
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/restore.d.ts.map +1 -1
- package/dist/commands/restore.js +6 -1
- package/dist/commands/restore.js.map +1 -1
- package/dist/commands/rig.d.ts +2 -0
- package/dist/commands/rig.d.ts.map +1 -1
- package/dist/commands/rig.js +36 -2
- package/dist/commands/rig.js.map +1 -1
- package/dist/commands/roster.d.ts +3 -0
- package/dist/commands/roster.d.ts.map +1 -1
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +128 -9
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +47 -6
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/commands/setup.js +5 -3
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/slack.d.ts +2 -1
- package/dist/commands/slack.d.ts.map +1 -1
- package/dist/commands/slack.js +38 -2
- package/dist/commands/slack.js.map +1 -1
- package/dist/commands/terminal.d.ts.map +1 -1
- package/dist/commands/terminal.js +5 -5
- package/dist/commands/terminal.js.map +1 -1
- package/dist/commands/up.d.ts.map +1 -1
- package/dist/commands/up.js +10 -0
- package/dist/commands/up.js.map +1 -1
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +10 -4
- package/dist/commands/workflow.js.map +1 -1
- package/dist/config-store.d.ts +3 -1
- package/dist/config-store.d.ts.map +1 -1
- package/dist/config-store.js +5 -0
- package/dist/config-store.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +1 -0
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/lib/bundle-check.d.ts.map +1 -1
- package/dist/lib/bundle-check.js +33 -3
- package/dist/lib/bundle-check.js.map +1 -1
- package/dist/lib/model-observation.d.ts.map +1 -1
- package/dist/lib/model-observation.js +9 -3
- package/dist/lib/model-observation.js.map +1 -1
- package/dist/lib/scope/scope-audit.d.ts.map +1 -1
- package/dist/lib/scope/scope-audit.js +55 -3
- package/dist/lib/scope/scope-audit.js.map +1 -1
- package/dist/local-db.d.ts +5 -0
- package/dist/local-db.d.ts.map +1 -0
- package/dist/local-db.js +23 -0
- package/dist/local-db.js.map +1 -0
- package/dist/local-origin.d.ts.map +1 -1
- package/dist/local-origin.js +2 -17
- package/dist/local-origin.js.map +1 -1
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +170 -27
- package/dist/mcp-server.js.map +1 -1
- package/dist/person-registration-offer.d.ts.map +1 -1
- package/dist/person-registration-offer.js +2 -1
- package/dist/person-registration-offer.js.map +1 -1
- package/dist/sender-identity.d.ts +18 -6
- package/dist/sender-identity.d.ts.map +1 -1
- package/dist/sender-identity.js +67 -7
- package/dist/sender-identity.js.map +1 -1
- package/dist/terminal-window-rex.d.ts +1 -1
- package/dist/terminal-window-rex.d.ts.map +1 -1
- package/dist/terminal-window-rex.js +3 -2
- package/dist/terminal-window-rex.js.map +1 -1
- package/dist/terminal-window.js +3 -3
- package/dist/terminal-window.js.map +1 -1
- package/package.json +2 -2
- package/tui/dist/config/config-model.js +1 -1
- package/tui/dist/config/config-model.js.map +1 -1
- package/tui/dist/daemon-client.d.ts +3 -1
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js +6 -3
- package/tui/dist/daemon-client.js.map +1 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +31 -1
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +106 -15
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/types.d.ts +2 -0
- package/tui/dist/types.d.ts.map +1 -1
- package/ui/dist/assets/{index-BvUEh33d.js → index-1O1f3A7K.js} +55 -55
- package/ui/dist/index.html +1 -1
package/dist/commands/queue.js
CHANGED
|
@@ -16,6 +16,7 @@ import { omittedReadField, readView } from "../read-view.js";
|
|
|
16
16
|
import { buildWriteReceipt, compactOutputEnabled } from "../queue-receipt.js";
|
|
17
17
|
import { TRANSITIONS_SHOWN, compactShow, compactTransitions, showEmptyNotice, transitionsNotice } from "../queue-read-compact.js";
|
|
18
18
|
import { codeResultOf, planItemArtifact } from "../queue-artifact.js";
|
|
19
|
+
import { resolveSenderSession } from "../sender-identity.js";
|
|
19
20
|
function stringField(row, key) {
|
|
20
21
|
return typeof row[key] === "string" ? row[key] : null;
|
|
21
22
|
}
|
|
@@ -60,7 +61,7 @@ function terminalWakeOutcome(wakeResult) {
|
|
|
60
61
|
return "still-pending";
|
|
61
62
|
if (wakeResult === "verified" || wakeResult === "delivered-ack-pending" || wakeResult === "claimed")
|
|
62
63
|
return wakeResult;
|
|
63
|
-
if (wakeResult.startsWith("failed:") || wakeResult.startsWith("unroutable:"))
|
|
64
|
+
if (wakeResult.startsWith("failed:") || wakeResult.startsWith("unroutable:") || wakeResult.startsWith("awaiting-pickup:"))
|
|
64
65
|
return "failed";
|
|
65
66
|
if (wakeResult.startsWith("retained:"))
|
|
66
67
|
return "retained";
|
|
@@ -83,7 +84,10 @@ function terminalDeliveryResult(qitemId, destination, row, outcome, waitedMs) {
|
|
|
83
84
|
"delivered-ack-pending": "Terminal receipt unconfirmed (delivered-ack-pending): the wake was sent, but its render could not be confirmed.",
|
|
84
85
|
"claimed": "Terminal receipt unconfirmed, but the seat has claimed the item (claimed).",
|
|
85
86
|
"retained": `The wake is held (${wakeResult}): nothing was typed into the pane. A held create wake is not retried automatically; inspect it with rig seat held-messages ${seat}.`,
|
|
86
|
-
|
|
87
|
+
// A hosted member with no wake trigger: no wake exists to fail, and the work waits to be read.
|
|
88
|
+
"failed": wakeResult?.startsWith("awaiting-pickup:")
|
|
89
|
+
? `No wake is sent (${wakeResult}): the work waits in the member's queue until it reads it.`
|
|
90
|
+
: `The wake failed (${wakeResult}).`,
|
|
87
91
|
"indeterminate": wakeResult?.startsWith("wake-accepted:")
|
|
88
92
|
? `The member's trigger accepted the ring (${wakeResult}). That isn't pickup: its claim is.`
|
|
89
93
|
: `Terminal receipt unconfirmed (${wakeResult}).`,
|
|
@@ -248,9 +252,7 @@ hostContext) {
|
|
|
248
252
|
}
|
|
249
253
|
}
|
|
250
254
|
function printResult(json, body, status) {
|
|
251
|
-
if (status
|
|
252
|
-
&& body.error === "remote_queue_write_failed"
|
|
253
|
-
&& body.outcome === "indeterminate") {
|
|
255
|
+
if (isIndeterminateRemoteWrite(status, body)) {
|
|
254
256
|
console.error("The write outcome is INDETERMINATE if the request may have reached a daemon — reconcile by ID before any retry.");
|
|
255
257
|
}
|
|
256
258
|
if (json) {
|
|
@@ -347,6 +349,41 @@ export function printCurrentWorkChoice(data) {
|
|
|
347
349
|
function writeReceipt(full, ctx) {
|
|
348
350
|
return !full && compactOutputEnabled() ? ctx : null;
|
|
349
351
|
}
|
|
352
|
+
/** A cross-host handoff whose return route couldn't go with the work says so, as a warning beside the result. */
|
|
353
|
+
function warnRouteNotCarried(status, data) {
|
|
354
|
+
const advisories = status < 400 ? data?.advisories : undefined;
|
|
355
|
+
for (const advisory of Array.isArray(advisories) ? advisories : []) {
|
|
356
|
+
if (advisory.code === "return_route_not_carried" && typeof advisory.message === "string")
|
|
357
|
+
console.error(`Warning: ${advisory.message}`);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
/** A handoff whose outcome is unknown may have committed. This names the source row to read before any retry, on the
|
|
361
|
+
* daemon the command used, and where a successor would be. It never says the handoff failed, names a successor id, or
|
|
362
|
+
* asks for the handoff to be repeated. */
|
|
363
|
+
function handoffRecoveryHint(qitemId, hostId) {
|
|
364
|
+
const remote = remoteHostOf(hostId);
|
|
365
|
+
return `Before any retry, read source row ${qitemId} at the same endpoint and OPENRIG_HOME: `
|
|
366
|
+
+ `rig queue show ${shellQuote(qitemId)} --full --json. Read its recorded outcome: a handed-off row names its successor`
|
|
367
|
+
+ (remote ? ` on host ${shellQuote(remote)}` : "")
|
|
368
|
+
+ ", or says why it can't. A row that still reads open doesn't show the handoff failed: it may still commit.";
|
|
369
|
+
}
|
|
370
|
+
/** A handoff whose answer was lost (no answer in time, a lost connection, or an unreadable response) carries the hint in
|
|
371
|
+
* its error. A pre-header disconnect can follow a committed handoff, as it can a create, so the shared renderer must not
|
|
372
|
+
* call it undelivered. */
|
|
373
|
+
function withHandoffRecovery(error, qitemId, hostId) {
|
|
374
|
+
if (!(error instanceof DaemonConnectionError || error instanceof DaemonResponseError))
|
|
375
|
+
return error;
|
|
376
|
+
if (error instanceof DaemonConnectionError)
|
|
377
|
+
error.writeOutcome = "unknown";
|
|
378
|
+
error.message += ` ${handoffRecoveryHint(qitemId, hostId)}`;
|
|
379
|
+
return error;
|
|
380
|
+
}
|
|
381
|
+
/** The selected daemon's forward to another host lost the remote's answer: the write was sent and may still commit. */
|
|
382
|
+
function isIndeterminateRemoteWrite(status, body) {
|
|
383
|
+
return status >= 400 && !!body && typeof body === "object"
|
|
384
|
+
&& body.error === "remote_queue_write_failed"
|
|
385
|
+
&& body.outcome === "indeterminate";
|
|
386
|
+
}
|
|
350
387
|
/** A `--host` id that may name another daemon. Empty and `local` never do; one that
|
|
351
388
|
* equals the selected daemon's own host id is settled by {@link settleReceiptHost}. */
|
|
352
389
|
function remoteHostOf(hostId) {
|
|
@@ -356,9 +393,17 @@ function remoteHostOf(hostId) {
|
|
|
356
393
|
* (`QUEUE_FORWARD_TIMEOUT_MS` in the daemon's routes/queue.ts), so waiting only the client's 5 s default
|
|
357
394
|
* turns a slow remote's answer into an unknown outcome. */
|
|
358
395
|
const CROSS_HOST_QUEUE_WRITE_TIMEOUT_MS = 15_000;
|
|
396
|
+
const CLI_HANDOFF_SCOPE_ADVISORY_HEADER = "X-OpenRig-CLI-Handoff-Scope-Advisory";
|
|
359
397
|
function crossHostWriteOptions(hostId) {
|
|
360
398
|
return remoteHostOf(hostId) ? { timeoutMs: CROSS_HOST_QUEUE_WRITE_TIMEOUT_MS } : undefined;
|
|
361
399
|
}
|
|
400
|
+
/** The daemon returns handoff scope advice only to this CLI diagnostic request; it is not in the write body. */
|
|
401
|
+
function handoffScopeDiagnosticOptions(hostId) {
|
|
402
|
+
return {
|
|
403
|
+
...(crossHostWriteOptions(hostId) ?? {}),
|
|
404
|
+
headers: { [CLI_HANDOFF_SCOPE_ADVISORY_HEADER]: "1" },
|
|
405
|
+
};
|
|
406
|
+
}
|
|
362
407
|
/** The daemon's own rule (`resolvesToLocalHost`): a `--host` naming the selected
|
|
363
408
|
* daemon's selfHostId took the local path, so its receipt must not call the row
|
|
364
409
|
* remote. Read only for a receipt; an unreadable id leaves the host unconfirmed. */
|
|
@@ -571,6 +616,214 @@ async function printQueueItemResult(client, qitemId, json, body, status, receipt
|
|
|
571
616
|
}
|
|
572
617
|
await printWriteResult(client, json, body, status, receipt && remoteHost ? { ...receipt, remoteHost } : receipt, remoteHost !== undefined);
|
|
573
618
|
}
|
|
619
|
+
const UPDATE_READ_BACK_FIELDS = [
|
|
620
|
+
"state", "closureReason", "closureTarget", "closureRequiredAt", "resolution", "blockedOn", "summary", "evidenceRef",
|
|
621
|
+
];
|
|
622
|
+
function queueUpdateFieldMatches(field, requested, actual) {
|
|
623
|
+
if (field === "closureRequiredAt" && typeof requested === "string" && typeof actual === "string") {
|
|
624
|
+
const requestedTime = Date.parse(requested);
|
|
625
|
+
const actualTime = Date.parse(actual);
|
|
626
|
+
return Number.isFinite(requestedTime) && Number.isFinite(actualTime) && requestedTime === actualTime;
|
|
627
|
+
}
|
|
628
|
+
if (field === "resolution" && typeof requested === "string" && typeof actual === "string") {
|
|
629
|
+
return actual === requested || actual.endsWith(`\n${requested}`);
|
|
630
|
+
}
|
|
631
|
+
return Object.is(actual, requested);
|
|
632
|
+
}
|
|
633
|
+
/** Whether a recorded note is this update's note as the daemon records it (QueueRepository.update): as written, or with
|
|
634
|
+
* only what the daemon adds for this request, the reopen prefix, the summary suffix, or a revised deadline's receipt
|
|
635
|
+
* naming the new time and the accepting actor. Another writer's note that merely starts the same way isn't. */
|
|
636
|
+
function noteRecordedAs(actual, note, requested, actor, deadline) {
|
|
637
|
+
const bases = [note];
|
|
638
|
+
if (requested.reopen === true)
|
|
639
|
+
bases.push(`reopen acknowledged: ${note}`);
|
|
640
|
+
if (typeof requested.summary === "string" && requested.summary.trim() && !note.includes("(summary updated)")) {
|
|
641
|
+
bases.push(`${note} (summary updated)`);
|
|
642
|
+
}
|
|
643
|
+
if (requested.closureRequiredAt === undefined)
|
|
644
|
+
return bases.includes(actual);
|
|
645
|
+
// The receipt's earlier time isn't known here: it's one line between the fixed parts.
|
|
646
|
+
const tail = ` -> ${String(deadline)}; accepted by ${actor}`;
|
|
647
|
+
return bases.some((base) => {
|
|
648
|
+
const head = `${base}\nclosure deadline re-estimated: `;
|
|
649
|
+
if (!actual.startsWith(head) || !actual.endsWith(tail) || actual.length <= head.length + tail.length)
|
|
650
|
+
return false;
|
|
651
|
+
return !actual.slice(head.length, actual.length - tail.length).includes("\n");
|
|
652
|
+
});
|
|
653
|
+
}
|
|
654
|
+
/** Who the daemon records as this write's actor: the sender header as sent, else the actor the body declares. Empty when
|
|
655
|
+
* neither is known. A daemon drops a sender's host suffix only when it's that daemon's own id, so the bare form is
|
|
656
|
+
* this write's only where the selected daemon answers with that id; nothing else (an absent --host included) shows it. */
|
|
657
|
+
async function updateActors(client, bodyActor) {
|
|
658
|
+
const { session } = await client.senderIdentity();
|
|
659
|
+
if (session) {
|
|
660
|
+
const parts = session.split("@");
|
|
661
|
+
if (parts.length !== 3)
|
|
662
|
+
return [session];
|
|
663
|
+
let daemonId;
|
|
664
|
+
try {
|
|
665
|
+
daemonId = (await client.get("/healthz", { timeoutMs: 1_000 })).data?.selfHostId;
|
|
666
|
+
}
|
|
667
|
+
catch { /* Unanswered: the suffix stays unproven, so only the full actor counts. */ }
|
|
668
|
+
return daemonId === parts[2] ? [session, `${parts[0]}@${parts[1]}`] : [session];
|
|
669
|
+
}
|
|
670
|
+
return typeof bodyActor === "string" && bodyActor.trim() ? [bodyActor.trim()] : [];
|
|
671
|
+
}
|
|
672
|
+
async function readQueueTransitionCursor(client, qitemId, options) {
|
|
673
|
+
let response;
|
|
674
|
+
try {
|
|
675
|
+
response = await client.get(`/api/queue/${encodeURIComponent(qitemId)}/transitions`, options);
|
|
676
|
+
}
|
|
677
|
+
catch (error) {
|
|
678
|
+
return { ok: false, detail: `canonical transition preflight did not answer: ${error.message}` };
|
|
679
|
+
}
|
|
680
|
+
if (response.status !== 200 || !Array.isArray(response.data)) {
|
|
681
|
+
return { ok: false, detail: `canonical transition preflight returned HTTP ${response.status} without a transition list` };
|
|
682
|
+
}
|
|
683
|
+
const transitionIds = response.data.flatMap((entry) => {
|
|
684
|
+
if (!entry || typeof entry !== "object")
|
|
685
|
+
return [];
|
|
686
|
+
const transitionId = entry.transitionId;
|
|
687
|
+
return typeof transitionId === "number" && Number.isSafeInteger(transitionId) ? [transitionId] : [];
|
|
688
|
+
});
|
|
689
|
+
if (transitionIds.length !== response.data.length) {
|
|
690
|
+
return { ok: false, detail: "canonical transition preflight returned a malformed transition list" };
|
|
691
|
+
}
|
|
692
|
+
return { ok: true, latestTransitionId: Math.max(0, ...transitionIds) };
|
|
693
|
+
}
|
|
694
|
+
async function readBackQueueUpdate(client, qitemId, requested, options, transitionFloor,
|
|
695
|
+
/** Why the transition cursor wasn't taken before the write, when it wasn't. */
|
|
696
|
+
floorUnknown,
|
|
697
|
+
/** Who the daemon records as this write's actor (updateActors). */
|
|
698
|
+
actors = []) {
|
|
699
|
+
let response;
|
|
700
|
+
try {
|
|
701
|
+
response = await client.get(`/api/queue/${encodeURIComponent(qitemId)}`, options);
|
|
702
|
+
}
|
|
703
|
+
catch (error) {
|
|
704
|
+
return { ok: false, detail: `canonical read-back did not answer: ${error.message}` };
|
|
705
|
+
}
|
|
706
|
+
if (response.status !== 200 || !response.data || response.data.qitemId !== qitemId) {
|
|
707
|
+
return { ok: false, detail: `canonical read-back returned HTTP ${response.status} without row ${qitemId}` };
|
|
708
|
+
}
|
|
709
|
+
const mismatches = UPDATE_READ_BACK_FIELDS.flatMap((field) => {
|
|
710
|
+
if (requested[field] === undefined)
|
|
711
|
+
return [];
|
|
712
|
+
// A blank summary or evidence ref isn't stored (the daemon says so, summary_not_stored or evidence_ref_not_stored,
|
|
713
|
+
// and keeps the row's own), so there's nothing of it to read back.
|
|
714
|
+
if ((field === "summary" || field === "evidenceRef") && typeof requested[field] === "string" && !requested[field].trim())
|
|
715
|
+
return [];
|
|
716
|
+
return queueUpdateFieldMatches(field, requested[field], response.data[field])
|
|
717
|
+
? []
|
|
718
|
+
: [`${field}: requested ${JSON.stringify(requested[field])}, read ${JSON.stringify(response.data[field])}`];
|
|
719
|
+
});
|
|
720
|
+
if (mismatches.length > 0) {
|
|
721
|
+
return { ok: false, detail: `canonical read-back mismatch (${mismatches.join("; ")})` };
|
|
722
|
+
}
|
|
723
|
+
const requestedNote = typeof requested.transitionNote === "string" && requested.transitionNote.trim().length > 0
|
|
724
|
+
? requested.transitionNote
|
|
725
|
+
: null;
|
|
726
|
+
if (requestedNote !== null) {
|
|
727
|
+
// Without the cursor, a transition carrying the note can't be shown to be this write's: never accept an older one.
|
|
728
|
+
if (transitionFloor === undefined) {
|
|
729
|
+
return { ok: false, noteUnproven: true, detail: `the requested note can't be shown to be new, because the transition read before the write failed (${floorUnknown ?? "no cursor"})` };
|
|
730
|
+
}
|
|
731
|
+
if (actors.length === 0) {
|
|
732
|
+
return { ok: false, noteUnproven: true, detail: "the requested note can't be tied to this write, because the actor it was sent as isn't known" };
|
|
733
|
+
}
|
|
734
|
+
let transitions;
|
|
735
|
+
try {
|
|
736
|
+
transitions = await client.get(`/api/queue/${encodeURIComponent(qitemId)}/transitions`, options);
|
|
737
|
+
}
|
|
738
|
+
catch (error) {
|
|
739
|
+
return { ok: false, noteUnproven: true, detail: `canonical transition read-back did not answer: ${error.message}` };
|
|
740
|
+
}
|
|
741
|
+
if (transitions.status !== 200 || !Array.isArray(transitions.data)) {
|
|
742
|
+
return { ok: false, noteUnproven: true, detail: `canonical transition read-back returned HTTP ${transitions.status} without a transition list` };
|
|
743
|
+
}
|
|
744
|
+
const matching = transitions.data.some((entry) => {
|
|
745
|
+
if (!entry || typeof entry !== "object")
|
|
746
|
+
return false;
|
|
747
|
+
const transition = entry;
|
|
748
|
+
return typeof transition.transitionId === "number"
|
|
749
|
+
&& transition.transitionId > transitionFloor
|
|
750
|
+
&& typeof transition.transitionNote === "string"
|
|
751
|
+
&& typeof transition.actorSession === "string"
|
|
752
|
+
&& actors.includes(transition.actorSession)
|
|
753
|
+
&& noteRecordedAs(transition.transitionNote, requestedNote, requested, transition.actorSession, response.data.closureRequiredAt);
|
|
754
|
+
});
|
|
755
|
+
if (!matching) {
|
|
756
|
+
return {
|
|
757
|
+
ok: false,
|
|
758
|
+
noteUnproven: true,
|
|
759
|
+
detail: `no newer canonical transition carried requested note ${JSON.stringify(requestedNote)} from ${actors.map((actor) => JSON.stringify(actor)).join(" or ")}`,
|
|
760
|
+
};
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
return { ok: true, row: response.data };
|
|
764
|
+
}
|
|
765
|
+
/** `noteUnproven`: the requested note wasn't shown to be recorded. A note is in the row's transition log, which `queue show`
|
|
766
|
+
* doesn't print, so the action names that too. */
|
|
767
|
+
function emitQueueUpdateReadBackFailure(qitemId, detail, json, noteUnproven = false) {
|
|
768
|
+
const message = `Queue update response was not accepted as success: ${detail}. The write may have committed, but its requested state was not verified.`;
|
|
769
|
+
const action = `Run rig queue show ${shellQuote(qitemId)} --full --json against the same daemon before retrying`
|
|
770
|
+
+ (noteUnproven ? `, and rig queue transitions ${shellQuote(qitemId)} --full --json to see whether the note was recorded.` : ".");
|
|
771
|
+
if (json)
|
|
772
|
+
console.error(JSON.stringify({ error: "queue_update_readback_failed", message, action }));
|
|
773
|
+
else
|
|
774
|
+
console.error(`${message}\n${action}`);
|
|
775
|
+
process.exitCode = 1;
|
|
776
|
+
}
|
|
777
|
+
const HANDOFF_SCOPE_ADVISORY_CODES = new Set([
|
|
778
|
+
"unresolved_scope",
|
|
779
|
+
"ambiguous_scope",
|
|
780
|
+
"empty_scope",
|
|
781
|
+
"conflicting_scope",
|
|
782
|
+
"scope_check_unavailable",
|
|
783
|
+
"scope_check_skipped",
|
|
784
|
+
]);
|
|
785
|
+
/** Handoff diagnostics and the opt-in acknowledgement stay out of stdout projections. */
|
|
786
|
+
function emitHandoffScopeAdvisories(status, body) {
|
|
787
|
+
if (status >= 400)
|
|
788
|
+
return body;
|
|
789
|
+
if (!body || typeof body !== "object" || Array.isArray(body)) {
|
|
790
|
+
console.error("Warning: this daemon didn't report a scope check; it may be older than this CLI");
|
|
791
|
+
return body;
|
|
792
|
+
}
|
|
793
|
+
const record = body;
|
|
794
|
+
const acknowledged = record.handoffScopeCheckAcknowledged === true;
|
|
795
|
+
const projected = { ...record };
|
|
796
|
+
delete projected.handoffScopeCheckAcknowledged;
|
|
797
|
+
if (!acknowledged)
|
|
798
|
+
console.error("Warning: this daemon didn't report a scope check; it may be older than this CLI");
|
|
799
|
+
if (!Array.isArray(record.advisories))
|
|
800
|
+
return projected;
|
|
801
|
+
const retained = [];
|
|
802
|
+
let emitted = false;
|
|
803
|
+
for (const value of record.advisories) {
|
|
804
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
805
|
+
retained.push(value);
|
|
806
|
+
continue;
|
|
807
|
+
}
|
|
808
|
+
const advisory = value;
|
|
809
|
+
if (!HANDOFF_SCOPE_ADVISORY_CODES.has(String(advisory.code)) || typeof advisory.message !== "string") {
|
|
810
|
+
retained.push(value);
|
|
811
|
+
continue;
|
|
812
|
+
}
|
|
813
|
+
emitted = true;
|
|
814
|
+
if (advisory.code === "scope_check_skipped")
|
|
815
|
+
console.error(`Note: ${advisory.message}`);
|
|
816
|
+
else
|
|
817
|
+
console.error(`Warning: ${advisory.message}`);
|
|
818
|
+
}
|
|
819
|
+
if (!emitted)
|
|
820
|
+
return projected;
|
|
821
|
+
if (retained.length > 0)
|
|
822
|
+
projected.advisories = retained;
|
|
823
|
+
else
|
|
824
|
+
delete projected.advisories;
|
|
825
|
+
return projected;
|
|
826
|
+
}
|
|
574
827
|
// OPR.0.4.3.03 — `rig queue show` body preview.
|
|
575
828
|
//
|
|
576
829
|
// Default `show` renders a BOUNDED body preview instead of dumping the whole
|
|
@@ -716,20 +969,20 @@ function emitBodyResolveError(err, json) {
|
|
|
716
969
|
process.exitCode = 1;
|
|
717
970
|
}
|
|
718
971
|
function resolveCurrentSession(explicit, optionName) {
|
|
719
|
-
const session = explicit ??
|
|
972
|
+
const session = explicit ?? resolveSenderSession();
|
|
720
973
|
if (session)
|
|
721
974
|
return session;
|
|
722
|
-
console.error(`--${optionName} is required when OPENRIG_SESSION_NAME is not set`);
|
|
975
|
+
console.error(`--${optionName} is required when OPENRIG_SESSION_NAME is not set and reconciled tmux pane metadata does not resolve a session`);
|
|
723
976
|
process.exitCode = 1;
|
|
724
977
|
return undefined;
|
|
725
978
|
}
|
|
726
|
-
/** For a verb whose actor is the seat's own identity (the X-OpenRig-Session header the CLI sets from
|
|
979
|
+
/** For a verb whose actor is the seat's own identity (the X-OpenRig-Session header the CLI sets from managed identity),
|
|
727
980
|
* where the named flag is deprecated and ignored: the error names what actually sets the actor, never the flag. */
|
|
728
981
|
function requireSeatSession(ignoredFlag) {
|
|
729
|
-
const session =
|
|
982
|
+
const session = resolveSenderSession();
|
|
730
983
|
if (session)
|
|
731
984
|
return session;
|
|
732
|
-
console.error(`OPENRIG_SESSION_NAME is not set, so there's no seat to act as. Run this from a managed seat, or set ` +
|
|
985
|
+
console.error(`OPENRIG_SESSION_NAME is not set, so there's no seat to act as, and reconciled tmux pane metadata does not resolve one. Run this from a managed seat, or set ` +
|
|
733
986
|
`OPENRIG_SESSION_NAME to the seat's session name (for example dev-impl@my-rig). --${ignoredFlag} is ignored: the ` +
|
|
734
987
|
"actor is the seat's own identity.");
|
|
735
988
|
process.exitCode = 1;
|
|
@@ -751,8 +1004,8 @@ const UPDATE_STATE_WRITE_FLAGS = [
|
|
|
751
1004
|
*/
|
|
752
1005
|
function resolveUpdateActor(source, opts) {
|
|
753
1006
|
const refuse = (message) => { console.error(message); process.exitCode = 1; return false; };
|
|
754
|
-
//
|
|
755
|
-
const seat =
|
|
1007
|
+
// The same resolver the DaemonClient header uses, so the preflight and transport can never disagree.
|
|
1008
|
+
const seat = resolveSenderSession();
|
|
756
1009
|
if (source !== undefined) {
|
|
757
1010
|
const trimmed = source.trim();
|
|
758
1011
|
if (parseSessionName(trimmed).kind !== "external") {
|
|
@@ -773,10 +1026,10 @@ function resolveUpdateActor(source, opts) {
|
|
|
773
1026
|
return {};
|
|
774
1027
|
const noteOnly = opts.note !== undefined && UPDATE_STATE_WRITE_FLAGS.every(([key]) => opts[key] === undefined);
|
|
775
1028
|
return refuse(noteOnly
|
|
776
|
-
? "notes need a seat; an external routine can pass --source <name>@external. OPENRIG_SESSION_NAME is not set
|
|
777
|
-
"
|
|
1029
|
+
? "notes need a seat; an external routine can pass --source <name>@external. OPENRIG_SESSION_NAME is not set and reconciled " +
|
|
1030
|
+
"tmux pane metadata does not resolve a seat: run this from a managed seat, or add --source <name>@external to record the note as " +
|
|
778
1031
|
"that external routine (claimed, never a seat). --actor is ignored: the actor is the seat's own identity."
|
|
779
|
-
: "OPENRIG_SESSION_NAME is not set, so there's no seat to act as. Run this from a managed seat, or set " +
|
|
1032
|
+
: "OPENRIG_SESSION_NAME is not set, so there's no seat to act as, and reconciled tmux pane metadata does not resolve one. Run this from a managed seat, or set " +
|
|
780
1033
|
"OPENRIG_SESSION_NAME to the seat's session name (for example dev-impl@my-rig). --actor is ignored: the actor is " +
|
|
781
1034
|
"the seat's own identity. Changing a row needs a seat, and notes need a seat; an external routine can pass " +
|
|
782
1035
|
"--source <name>@external for a note only. A person answering an ask addressed to them (a host pairing approval, " +
|
|
@@ -866,6 +1119,7 @@ export function queueCommand(depsOverride) {
|
|
|
866
1119
|
.option("--human-questions-file <path>", "#193: JSON array of 1-4 questions for a decision, each {id, question, options: [{id, label, recommended?}]} with 2-4 options; Slack shows them as buttons")
|
|
867
1120
|
.option("--evidence-ref <path>", "OPR.0.4.4.19 FR-5: pointer to the durable artifact a human judges (e.g. a PROOF.md path). Required by the daemon when the item is human-routed; optional otherwise.")
|
|
868
1121
|
.option("--host <id>", QUEUE_HOST_OPTION_HELP)
|
|
1122
|
+
.option("--return-route <route>", "For work a person answers from their own conversation: auto (OpenRig issues this conversation an address and prints it; use it from then on), self (this session's own address, for a session that joined), or an address you were given. The work carries it through handoffs, and its seats' prompts and stuck steps come to that address as tasks, ahead of the person's Slack connection, for this work only. Without it, nothing changes")
|
|
869
1123
|
.option("--no-nudge", "Suppress the default destination nudge (cold-queue)")
|
|
870
1124
|
.option("--verify", "Boundedly wait after persistence for the existing receipts: the gateway receipt for a person, or the wake result and any claim already present for a seat, plus the gateway receipt when the gateway may also post to that seat (a registered person with a pane; eligible to post, not guaranteed). Never retries the create or the wake, and never claims the message was read")
|
|
871
1125
|
.option("--full", "Print the whole response row(s) as today, even when output.compact is on (the receipt's waiting keeps only blocker and nextBackstop)")
|
|
@@ -941,9 +1195,11 @@ export function queueCommand(depsOverride) {
|
|
|
941
1195
|
}
|
|
942
1196
|
// A managed seat keeps transport-derived identity; an external caller can
|
|
943
1197
|
// name the existing claimed:v1 body actor without forging a transport header.
|
|
944
|
-
const managedSource =
|
|
945
|
-
|
|
946
|
-
|
|
1198
|
+
const managedSource = resolveSenderSession();
|
|
1199
|
+
// With --return-route auto, a session with no address of its own needs none: OpenRig issues one, and it's this task's source.
|
|
1200
|
+
const issuedActor = opts.returnRoute?.trim() === "auto" && managedSource === undefined && opts.source === undefined;
|
|
1201
|
+
const source = issuedActor ? undefined : resolveCurrentSession(managedSource ?? opts.source, "source");
|
|
1202
|
+
if (!source && !issuedActor)
|
|
947
1203
|
return;
|
|
948
1204
|
const deps = getDeps();
|
|
949
1205
|
// OPR.0.3.2.21.FR-4(b) — first-class --mission / --slice flags
|
|
@@ -1021,6 +1277,7 @@ export function queueCommand(depsOverride) {
|
|
|
1021
1277
|
expiresAt: opts.expiresAt,
|
|
1022
1278
|
targetRepo: opts.targetRepo,
|
|
1023
1279
|
nudge: opts.nudge,
|
|
1280
|
+
...(opts.returnRoute !== undefined ? { returnRoute: opts.returnRoute } : {}),
|
|
1024
1281
|
// OPR.0.4.6.MH3 FR-1: the out-of-band host envelope (omitted for
|
|
1025
1282
|
// plain local writes — the local path stays byte-identical).
|
|
1026
1283
|
...(hostResolved.hostId !== undefined ? { hostId: hostResolved.hostId } : {}),
|
|
@@ -1048,6 +1305,7 @@ export function queueCommand(depsOverride) {
|
|
|
1048
1305
|
case "empty_scope":
|
|
1049
1306
|
case "conflicting_scope":
|
|
1050
1307
|
case "scope_check_unavailable":
|
|
1308
|
+
case "return_route_not_carried":
|
|
1051
1309
|
console.error(`Warning: ${advisory.message}`);
|
|
1052
1310
|
break;
|
|
1053
1311
|
}
|
|
@@ -1089,6 +1347,13 @@ export function queueCommand(depsOverride) {
|
|
|
1089
1347
|
if (status < 400 && createWarning?.code === "qitem_body_not_saved" && typeof createWarning.message === "string") {
|
|
1090
1348
|
console.error(`Warning: ${createWarning.message}`);
|
|
1091
1349
|
}
|
|
1350
|
+
// The address this work's questions come to, and the line to read them by.
|
|
1351
|
+
if (status < 400 && typeof created?.returnRoute === "string") {
|
|
1352
|
+
const route = created.returnRoute;
|
|
1353
|
+
console.error(`Return route: ${route}. This work's questions and its seats' prompts come there as tasks; read them with ` +
|
|
1354
|
+
`OPENRIG_SESSION_NAME=${shellQuote(route)} rig queue list --owned --state pending,in-progress` +
|
|
1355
|
+
(created.returnRouteBasis === "issued-actor" ? `, and put OPENRIG_SESSION_NAME=${shellQuote(route)} in front of your other queue commands for this work.` : "."));
|
|
1356
|
+
}
|
|
1092
1357
|
// An ask to a shared channel was accepted; nothing there will answer it (0.7.3).
|
|
1093
1358
|
const advisories = Array.isArray(created?.advisories) ? created.advisories : [];
|
|
1094
1359
|
for (const advisory of advisories) {
|
|
@@ -1197,7 +1462,7 @@ export function queueCommand(depsOverride) {
|
|
|
1197
1462
|
.option("--closure-target <target>", "Required for handed_off_to, escalation, and superseded; blocked_on park records use state=blocked with --blocked-on")
|
|
1198
1463
|
.option("--closure-required-at <iso>", "Accept a revised closure deadline on an in-progress item; keeps the claim and records the old/new time and accepting actor")
|
|
1199
1464
|
.option("--resolution <text>", "The outcome, stored on the row and shown by rig queue show. Needs --state done, canceled, denied, failed or handed-off, and non-blank text. Stored when the update closes an open row, after anything the row already has (a fallback line, an earlier outcome); a row that is already closed keeps what it has")
|
|
1200
|
-
.option("--blocked-on <blocker>", "For state=blocked: the blocker — a qitem id (must exist and be live), a human seat (FR-6 park; requires summary + evidence_ref), or a typed non-qitem gate 'fold:<what>' / 'auth:<what>' / 'external:<what>'")
|
|
1465
|
+
.option("--blocked-on <blocker>", "For state=blocked: the blocker — a qitem id (must exist and be live), a human seat (FR-6 park; requires summary + evidence_ref), or a typed non-qitem gate 'fold:<what>' / 'auth:<what>' / 'external:<what>'. To wait on a person, ask them with a row to their registered address (rig gateway human list) and block on that row, which their answer resolves; a human seat such as human@host asks no one and doesn't close by itself")
|
|
1201
1466
|
.option("--wake-watchdog <jobId>", "For state=blocked: attach an existing live watchdog id targeting the row owner")
|
|
1202
1467
|
.option("--wake-after <duration>", "For state=blocked: atomically arm a timer (for example 90s, 15m, 2h)", wakeDurationSeconds)
|
|
1203
1468
|
.option("--summary <text>", "Summary persisted onto the item, with or without a state change (a blank one isn't stored)")
|
|
@@ -1252,7 +1517,7 @@ For a new cross-host transfer, prefer rig queue handoff --host <registered-host>
|
|
|
1252
1517
|
process.exitCode = 1;
|
|
1253
1518
|
return;
|
|
1254
1519
|
}
|
|
1255
|
-
const
|
|
1520
|
+
const requested = {
|
|
1256
1521
|
state: opts.state,
|
|
1257
1522
|
reopen: opts.reopen,
|
|
1258
1523
|
closureReason: opts.closureReason,
|
|
@@ -1266,10 +1531,57 @@ For a new cross-host transfer, prefer rig queue handoff --host <registered-host>
|
|
|
1266
1531
|
evidenceRef: opts.evidenceRef,
|
|
1267
1532
|
transitionNote: opts.note,
|
|
1268
1533
|
...actor,
|
|
1269
|
-
}
|
|
1534
|
+
};
|
|
1535
|
+
let transitionFloor;
|
|
1536
|
+
let floorUnknown;
|
|
1537
|
+
if (typeof requested.transitionNote === "string" && requested.transitionNote.trim().length > 0) {
|
|
1538
|
+
// The cursor proves the note is new afterwards. Without it the write still goes; the receipt says what's unproven.
|
|
1539
|
+
const cursor = await readQueueTransitionCursor(target.client, qitemId, target.options);
|
|
1540
|
+
if (cursor.ok)
|
|
1541
|
+
transitionFloor = cursor.latestTransitionId;
|
|
1542
|
+
else
|
|
1543
|
+
floorUnknown = cursor.detail;
|
|
1544
|
+
}
|
|
1545
|
+
const res = await target.client.post(`/api/queue/${encodeURIComponent(qitemId)}/update`, requested, target.options);
|
|
1546
|
+
if (res.status < 400) {
|
|
1547
|
+
const actors = await updateActors(target.client, requested.actorSession);
|
|
1548
|
+
const verified = await readBackQueueUpdate(target.client, qitemId, requested, target.options, transitionFloor, floorUnknown, actors);
|
|
1549
|
+
if (!verified.ok) {
|
|
1550
|
+
emitQueueUpdateReadBackFailure(qitemId, verified.detail, opts.json ?? false, verified.noteUnproven);
|
|
1551
|
+
return;
|
|
1552
|
+
}
|
|
1553
|
+
// The canonical row's fields win; the write's own advisories (a park with no wake) come only with its response.
|
|
1554
|
+
const advisories = res.data?.advisories;
|
|
1555
|
+
const row = Array.isArray(advisories) ? { ...verified.row, advisories } : verified.row;
|
|
1556
|
+
await printQueueItemResult(target.client, qitemId, opts.json ?? false, row, res.status, writeReceipt(opts.full, { verb: "update" }), target.remote);
|
|
1557
|
+
return;
|
|
1558
|
+
}
|
|
1270
1559
|
await printQueueItemResult(target.client, qitemId, opts.json ?? false, res.data, res.status, writeReceipt(opts.full, { verb: "update" }), target.remote);
|
|
1271
1560
|
}, remoteHostOf(opts.host) !== undefined, remoteHostOf(opts.host));
|
|
1272
1561
|
});
|
|
1562
|
+
cmd
|
|
1563
|
+
.command("tag <qitemId>")
|
|
1564
|
+
.description("Add tags to a qitem in any state, changing nothing else: its existing tags stay, a tag it already has adds nothing, and a closed row stays closed. The tags added are recorded on the row's history with who added them. Tags are never removed or rewritten.")
|
|
1565
|
+
.requiredOption("--add <tag>", "A tag to add, exact and case-sensitive; repeat for several (commas are literal)", (value, previous = []) => [...previous, value], [])
|
|
1566
|
+
.option("--json", "JSON output for agents")
|
|
1567
|
+
.action(async (qitemId, opts) => {
|
|
1568
|
+
// The actor is the seat itself (X-OpenRig-Session, stamped by DaemonClient), as for update.
|
|
1569
|
+
if (!requireSeatSession("actor"))
|
|
1570
|
+
return;
|
|
1571
|
+
const deps = getDeps();
|
|
1572
|
+
await withClient(deps, async (client) => {
|
|
1573
|
+
const res = await client.post(`/api/queue/${encodeURIComponent(qitemId)}/tags`, { add: opts.add });
|
|
1574
|
+
const added = res.status < 400 && Array.isArray(res.data?.added) ? res.data.added : undefined;
|
|
1575
|
+
if (!added)
|
|
1576
|
+
return printQueueItemResult(client, qitemId, opts.json ?? false, res.data, res.status);
|
|
1577
|
+
if (opts.json)
|
|
1578
|
+
console.log(JSON.stringify(res.data));
|
|
1579
|
+
else
|
|
1580
|
+
console.log(added.length > 0
|
|
1581
|
+
? `Added to ${qitemId}: ${added.join(", ")}`
|
|
1582
|
+
: `Nothing added: ${qitemId} already has ${[...new Set(opts.add)].join(", ")}`);
|
|
1583
|
+
});
|
|
1584
|
+
});
|
|
1273
1585
|
// OPR.0.4.4.19 FR-6 — the first-class park affordance (C5 leg 1). One verb,
|
|
1274
1586
|
// both blocker kinds: --on takes a qitem id (today's shipped blocked-on
|
|
1275
1587
|
// usage, nothing new required) or a human-seat session (the leg-1 park —
|
|
@@ -1280,7 +1592,7 @@ For a new cross-host transfer, prefer rig queue handoff --host <registered-host>
|
|
|
1280
1592
|
cmd
|
|
1281
1593
|
.command("block <qitemId>")
|
|
1282
1594
|
.description("Park a qitem as HELD with a continuation and wake. Requires --on <blocker>. Choose --wake-watchdog, --wake-after, or a live blocker qitem for the wake.")
|
|
1283
|
-
.requiredOption("--on <blocker>", "The blocker: a live blocker qitem, typed gate, or human-seat session")
|
|
1595
|
+
.requiredOption("--on <blocker>", "The blocker: a live blocker qitem, typed gate, or human-seat session. To wait on a person, block on a row you sent to their registered address (rig gateway human list), which their answer resolves; a human seat such as human@host asks no one")
|
|
1284
1596
|
.option("--actor <session>", "(deprecated, ignored) the actor is derived from the seat env (X-OpenRig-Session); the park writes via the same P21 I3 header-deriving update route")
|
|
1285
1597
|
.option("--summary <text>", "Plain-language summary of the decision owed (required for human-seat parks unless already on the item)")
|
|
1286
1598
|
.option("--evidence-ref <path>", "Durable artifact the human judges (required for human-seat parks unless already on the item)")
|
|
@@ -1432,13 +1744,17 @@ workspace home that is deferred/not-imminent belongs in its mission/slice.`)
|
|
|
1432
1744
|
targetRepo: opts.targetRepo,
|
|
1433
1745
|
nudge: opts.nudge,
|
|
1434
1746
|
...(hostResolved.hostId !== undefined ? { hostId: hostResolved.hostId } : {}),
|
|
1435
|
-
},
|
|
1747
|
+
}, handoffScopeDiagnosticOptions(hostResolved.hostId)).catch((error) => { throw withHandoffRecovery(error, qitemId, hostResolved.hostId); });
|
|
1436
1748
|
const hint = hostSubstitutionHint(res.status, res.data, opts.to, opts.host, hostResolved);
|
|
1437
1749
|
if (hint)
|
|
1438
1750
|
console.error(hint);
|
|
1439
|
-
|
|
1751
|
+
warnRouteNotCarried(res.status, res.data);
|
|
1752
|
+
const output = emitHandoffScopeAdvisories(res.status, res.data);
|
|
1753
|
+
await printQueueItemResult(client, qitemId, opts.json ?? false, output, res.status, writeReceipt(opts.full, {
|
|
1440
1754
|
verb: "handoff", nudgeSuppressed: opts.nudge === false, remoteHost: remoteHostOf(hostResolved.hostId),
|
|
1441
1755
|
}));
|
|
1756
|
+
if (isIndeterminateRemoteWrite(res.status, res.data))
|
|
1757
|
+
console.error(handoffRecoveryHint(qitemId, hostResolved.hostId));
|
|
1442
1758
|
});
|
|
1443
1759
|
});
|
|
1444
1760
|
cmd
|
|
@@ -1515,13 +1831,17 @@ workspace home that is deferred/not-imminent belongs in its mission/slice.`)
|
|
|
1515
1831
|
targetRepo: opts.targetRepo,
|
|
1516
1832
|
nudge: opts.nudge,
|
|
1517
1833
|
...(hostResolved.hostId !== undefined ? { hostId: hostResolved.hostId } : {}),
|
|
1518
|
-
},
|
|
1834
|
+
}, handoffScopeDiagnosticOptions(hostResolved.hostId)).catch((error) => { throw withHandoffRecovery(error, qitemId, hostResolved.hostId); });
|
|
1519
1835
|
const hint = hostSubstitutionHint(res.status, res.data, opts.to, opts.host, hostResolved);
|
|
1520
1836
|
if (hint)
|
|
1521
1837
|
console.error(hint);
|
|
1522
|
-
|
|
1838
|
+
warnRouteNotCarried(res.status, res.data);
|
|
1839
|
+
const output = emitHandoffScopeAdvisories(res.status, res.data);
|
|
1840
|
+
await printQueueItemResult(client, qitemId, opts.json ?? false, output, res.status, writeReceipt(opts.full, {
|
|
1523
1841
|
verb: "handoff-and-complete", nudgeSuppressed: opts.nudge === false, remoteHost: remoteHostOf(hostResolved.hostId),
|
|
1524
1842
|
}));
|
|
1843
|
+
if (isIndeterminateRemoteWrite(res.status, res.data))
|
|
1844
|
+
console.error(handoffRecoveryHint(qitemId, hostResolved.hostId));
|
|
1525
1845
|
});
|
|
1526
1846
|
});
|
|
1527
1847
|
cmd
|
|
@@ -1917,7 +2237,7 @@ Examples:
|
|
|
1917
2237
|
cmd
|
|
1918
2238
|
.command("erase")
|
|
1919
2239
|
.description("Erase queue rows in one exact scope: an account's rows, a list of ids, or the closed-work retention windows; a dry run unless --apply")
|
|
1920
|
-
.option("--members <file>", "Account deletion: the account's recorded session names (exact, departed seats included), one per line or a JSON array")
|
|
2240
|
+
.option("--members <file>", "Account deletion: the account's recorded session names (exact, departed seats included), one per line or a JSON array. Empty, with --rig, for an account rig that never had a session")
|
|
1921
2241
|
.option("--rig <id>", "With --members: the account rig's id. Also erases the rig's own records that outlive it (events, snapshots, node and seat records); refused unless every member is a session of it")
|
|
1922
2242
|
.option("--ids <file>", "These qitem ids, one per line or a JSON array; a report's qitems entries, or an erasure ledger's JSON lines, keep each one's action")
|
|
1923
2243
|
.option("--action <action>", "With --ids: delete (default) removes each row and keeps only its id; scrub removes its content and keeps the row", enumArg(["delete", "scrub"]))
|
|
@@ -1940,8 +2260,9 @@ Examples:
|
|
|
1940
2260
|
"A deleted row keeps only its id, and a create that reuses that id is refused (qitem_erased). A row a workflow still",
|
|
1941
2261
|
"references is reported under gaps and left. Output is JSON: clean (true only when nothing was left), complete,",
|
|
1942
2262
|
"qitems, mixed, gaps, alreadyAbsent, linked, unlinked and rig. Refusals: erase_scope_required, erase_scope_conflict,",
|
|
1943
|
-
"erase_members_invalid, erase_rig_invalid, erase_rig_mismatch,
|
|
1944
|
-
"erase_routine_off. A run that stops on an error returns what it
|
|
2263
|
+
"erase_members_invalid, erase_rig_invalid, erase_rig_mismatch, erase_rig_had_sessions, erase_rig_history_unknown,",
|
|
2264
|
+
"erase_ids_invalid, erase_action_invalid, erase_routine_off. A run that stops on an error returns what it",
|
|
2265
|
+
"committed, with error.stage, and exits 2.",
|
|
1945
2266
|
"Reference: docs/reference/queue-erasure.md",
|
|
1946
2267
|
].join("\n"))
|
|
1947
2268
|
.action(async (opts) => {
|