@openrig/cli 0.7.22 → 0.7.24
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 +7 -7
- package/daemon/assets/claude-hook-bridge.cjs +575 -6
- package/daemon/assets/claude-hook-bridge.d.cts +5 -0
- package/daemon/assets/claude-permission-policies.cjs +4 -3
- package/daemon/assets/guidance/openrig-context-entry.md +1 -0
- package/daemon/assets/onboarding/01-world-and-purpose.md +2 -1
- package/daemon/assets/onboarding/02-self-and-competent-action.md +6 -0
- package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +4 -3
- package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +3 -2
- package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/README.md +64 -9
- package/daemon/assets/plugins/openrig/hooks/claude.json +39 -0
- package/daemon/assets/plugins/openrig/hooks/codex.json +27 -0
- package/daemon/assets/plugins/openrig/hooks/scripts/claude-hook-bridge.cjs +715 -0
- package/daemon/assets/plugins/openrig/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/scripts/run-rig.cjs +30 -0
- package/daemon/assets/plugins/openrig/skills/working-with-an-openrig-team/SKILL.md +71 -9
- package/daemon/assets/plugins/openrig-codex/.agents/plugins/marketplace.json +15 -0
- package/daemon/assets/plugins/openrig-codex/.codex-plugin/plugin.json +42 -0
- package/daemon/assets/plugins/openrig-codex/LICENSE +200 -0
- package/daemon/assets/plugins/openrig-codex/assets/logo.svg +1 -0
- package/daemon/assets/plugins/openrig-codex/hooks/codex.json +27 -0
- package/daemon/assets/plugins/openrig-codex/hooks/scripts/claude-hook-bridge.cjs +715 -0
- package/daemon/assets/plugins/openrig-codex/skills/working-with-an-openrig-team/SKILL.md +175 -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/README.md +10 -2
- package/daemon/assets/plugins/openrig-core/hooks/claude.json +9 -0
- package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +50 -0
- package/daemon/assets/plugins/openrig-core/hooks/scripts/compaction-restore-bridge.cjs +3 -1
- package/daemon/assets/plugins/openrig-core/hooks/scripts/permission-answer.cjs +270 -0
- package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus.cjs +24 -6
- package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/precompact-hook.mjs +11 -8
- package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/restore-from-jsonl.mjs +76 -10
- package/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md +1 -1
- package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +4 -2
- package/daemon/assets/plugins/openrig-core/skills/refocusing/scripts/trace-to-root.py +191 -25
- package/daemon/assets/skills/rigs/SKILL.md +136 -26
- 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 +128 -18
- package/daemon/context-packs/reference/acp-agents.md +11 -3
- package/daemon/context-packs/reference/getting-started.md +144 -13
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +201 -3
- package/daemon/context-packs/reference/tmux-servers.md +43 -2
- package/daemon/context-packs/reference/whats-new.md +186 -12
- package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
- package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
- package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
- package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/claude-compaction-restore/scripts/precompact-hook.mjs +11 -8
- package/daemon/context-packs/skills/claude-compaction-restore/scripts/restore-from-jsonl.mjs +76 -10
- 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 +1 -1
- package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +3 -3
- package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/working-with-an-openrig-team/SKILL.md +71 -9
- 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 +4 -2
- 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 +191 -25
- 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 +24 -2
- package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +312 -45
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/claude-resume-launch.d.ts +3 -0
- package/daemon/dist/adapters/claude-resume-launch.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume-launch.js +5 -0
- package/daemon/dist/adapters/claude-resume-launch.js.map +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume.js +66 -24
- package/daemon/dist/adapters/claude-resume.js.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts +22 -0
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.js +72 -20
- package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/pi-community-runtime-adapter.d.ts +9 -0
- package/daemon/dist/adapters/pi-community-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-community-runtime-adapter.js +6 -0
- package/daemon/dist/adapters/pi-community-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts +3 -0
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.js +9 -3
- package/daemon/dist/adapters/pi-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/seat-slice.d.ts +19 -0
- package/daemon/dist/adapters/seat-slice.d.ts.map +1 -0
- package/daemon/dist/adapters/seat-slice.js +29 -0
- package/daemon/dist/adapters/seat-slice.js.map +1 -0
- package/daemon/dist/adapters/shell-quote.d.ts +1 -0
- package/daemon/dist/adapters/shell-quote.d.ts.map +1 -1
- package/daemon/dist/adapters/shell-quote.js +6 -0
- package/daemon/dist/adapters/shell-quote.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +84 -17
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +355 -78
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/build-info.js +3 -3
- package/daemon/dist/conversation-key-surface.d.ts +2 -0
- package/daemon/dist/conversation-key-surface.d.ts.map +1 -0
- package/daemon/dist/conversation-key-surface.js +5 -0
- package/daemon/dist/conversation-key-surface.js.map +1 -0
- package/daemon/dist/daemon-shutdown.d.ts +8 -0
- package/daemon/dist/daemon-shutdown.d.ts.map +1 -1
- package/daemon/dist/daemon-shutdown.js +15 -2
- package/daemon/dist/daemon-shutdown.js.map +1 -1
- package/daemon/dist/db/all-migrations.d.ts.map +1 -1
- package/daemon/dist/db/all-migrations.js +32 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrate.d.ts +15 -1
- package/daemon/dist/db/migrate.d.ts.map +1 -1
- package/daemon/dist/db/migrate.js +41 -6
- package/daemon/dist/db/migrate.js.map +1 -1
- package/daemon/dist/db/migrations/179_community_harness_runtime_switches.d.ts +14 -0
- package/daemon/dist/db/migrations/179_community_harness_runtime_switches.d.ts.map +1 -0
- package/daemon/dist/db/migrations/179_community_harness_runtime_switches.js +54 -0
- package/daemon/dist/db/migrations/179_community_harness_runtime_switches.js.map +1 -0
- package/daemon/dist/db/migrations/179_remote_control_observations.d.ts +10 -0
- package/daemon/dist/db/migrations/179_remote_control_observations.d.ts.map +1 -0
- package/daemon/dist/db/migrations/179_remote_control_observations.js +20 -0
- package/daemon/dist/db/migrations/179_remote_control_observations.js.map +1 -0
- package/daemon/dist/db/migrations/180_session_stop_attempt.d.ts +5 -0
- package/daemon/dist/db/migrations/180_session_stop_attempt.d.ts.map +1 -0
- package/daemon/dist/db/migrations/180_session_stop_attempt.js +7 -0
- package/daemon/dist/db/migrations/180_session_stop_attempt.js.map +1 -0
- package/daemon/dist/db/migrations/181_node_keep_alive.d.ts +8 -0
- package/daemon/dist/db/migrations/181_node_keep_alive.d.ts.map +1 -0
- package/daemon/dist/db/migrations/181_node_keep_alive.js +26 -0
- package/daemon/dist/db/migrations/181_node_keep_alive.js.map +1 -0
- package/daemon/dist/db/migrations/182_queue_items_blocked_on_index.d.ts +7 -0
- package/daemon/dist/db/migrations/182_queue_items_blocked_on_index.d.ts.map +1 -0
- package/daemon/dist/db/migrations/182_queue_items_blocked_on_index.js +11 -0
- package/daemon/dist/db/migrations/182_queue_items_blocked_on_index.js.map +1 -0
- package/daemon/dist/db/migrations/183_queue_items_scan_indexes.d.ts +8 -0
- package/daemon/dist/db/migrations/183_queue_items_scan_indexes.d.ts.map +1 -0
- package/daemon/dist/db/migrations/183_queue_items_scan_indexes.js +13 -0
- package/daemon/dist/db/migrations/183_queue_items_scan_indexes.js.map +1 -0
- package/daemon/dist/db/migrations/184_network_requests.d.ts +11 -0
- package/daemon/dist/db/migrations/184_network_requests.d.ts.map +1 -0
- package/daemon/dist/db/migrations/184_network_requests.js +32 -0
- package/daemon/dist/db/migrations/184_network_requests.js.map +1 -0
- package/daemon/dist/db/migrations/185_seat_cold_starts.d.ts +9 -0
- package/daemon/dist/db/migrations/185_seat_cold_starts.d.ts.map +1 -0
- package/daemon/dist/db/migrations/185_seat_cold_starts.js +19 -0
- package/daemon/dist/db/migrations/185_seat_cold_starts.js.map +1 -0
- package/daemon/dist/db/migrations/186_queue_relayed_answers.d.ts +3 -0
- package/daemon/dist/db/migrations/186_queue_relayed_answers.d.ts.map +1 -0
- package/daemon/dist/db/migrations/186_queue_relayed_answers.js +5 -0
- package/daemon/dist/db/migrations/186_queue_relayed_answers.js.map +1 -0
- package/daemon/dist/db/migrations/189_rig_seat_slice.d.ts +5 -0
- package/daemon/dist/db/migrations/189_rig_seat_slice.d.ts.map +1 -0
- package/daemon/dist/db/migrations/189_rig_seat_slice.js +7 -0
- package/daemon/dist/db/migrations/189_rig_seat_slice.js.map +1 -0
- package/daemon/dist/db/migrations/190_queue_transfer_staging.d.ts +3 -0
- package/daemon/dist/db/migrations/190_queue_transfer_staging.d.ts.map +1 -0
- package/daemon/dist/db/migrations/190_queue_transfer_staging.js +20 -0
- package/daemon/dist/db/migrations/190_queue_transfer_staging.js.map +1 -0
- package/daemon/dist/db/migrations/191_network_binding_providers.d.ts +3 -0
- package/daemon/dist/db/migrations/191_network_binding_providers.d.ts.map +1 -0
- package/daemon/dist/db/migrations/191_network_binding_providers.js +27 -0
- package/daemon/dist/db/migrations/191_network_binding_providers.js.map +1 -0
- package/daemon/dist/db/migrations/194_workflow_run_title.d.ts +4 -0
- package/daemon/dist/db/migrations/194_workflow_run_title.d.ts.map +1 -0
- package/daemon/dist/db/migrations/194_workflow_run_title.js +6 -0
- package/daemon/dist/db/migrations/194_workflow_run_title.js.map +1 -0
- package/daemon/dist/db/migrations/195_workflow_start_operations.d.ts +4 -0
- package/daemon/dist/db/migrations/195_workflow_start_operations.d.ts.map +1 -0
- package/daemon/dist/db/migrations/195_workflow_start_operations.js +13 -0
- package/daemon/dist/db/migrations/195_workflow_start_operations.js.map +1 -0
- package/daemon/dist/db/migrations/196_queue_item_evidence_ref_roots.d.ts +5 -0
- package/daemon/dist/db/migrations/196_queue_item_evidence_ref_roots.d.ts.map +1 -0
- package/daemon/dist/db/migrations/196_queue_item_evidence_ref_roots.js +7 -0
- package/daemon/dist/db/migrations/196_queue_item_evidence_ref_roots.js.map +1 -0
- package/daemon/dist/db/migrations/199_queue_items_native_permission_index.d.ts +9 -0
- package/daemon/dist/db/migrations/199_queue_items_native_permission_index.d.ts.map +1 -0
- package/daemon/dist/db/migrations/199_queue_items_native_permission_index.js +14 -0
- package/daemon/dist/db/migrations/199_queue_items_native_permission_index.js.map +1 -0
- package/daemon/dist/domain/activity-taxonomy.d.ts +3 -0
- package/daemon/dist/domain/activity-taxonomy.d.ts.map +1 -1
- package/daemon/dist/domain/activity-taxonomy.js.map +1 -1
- package/daemon/dist/domain/agent-activity-store.d.ts +17 -0
- package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
- package/daemon/dist/domain/agent-activity-store.js +101 -45
- package/daemon/dist/domain/agent-activity-store.js.map +1 -1
- package/daemon/dist/domain/agent-manifest.d.ts.map +1 -1
- package/daemon/dist/domain/agent-manifest.js +14 -0
- package/daemon/dist/domain/agent-manifest.js.map +1 -1
- package/daemon/dist/domain/background-process-evidence.d.ts +23 -0
- package/daemon/dist/domain/background-process-evidence.d.ts.map +1 -0
- package/daemon/dist/domain/background-process-evidence.js +81 -0
- package/daemon/dist/domain/background-process-evidence.js.map +1 -0
- package/daemon/dist/domain/chat-repository.d.ts +1 -1
- package/daemon/dist/domain/chat-repository.d.ts.map +1 -1
- package/daemon/dist/domain/chat-repository.js +2 -2
- package/daemon/dist/domain/chat-repository.js.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts +46 -8
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.js +66 -20
- package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
- package/daemon/dist/domain/codex-member-permissions.d.ts +35 -0
- package/daemon/dist/domain/codex-member-permissions.d.ts.map +1 -1
- package/daemon/dist/domain/codex-member-permissions.js +106 -1
- package/daemon/dist/domain/codex-member-permissions.js.map +1 -1
- package/daemon/dist/domain/community-harness-presets.d.ts +9 -0
- package/daemon/dist/domain/community-harness-presets.d.ts.map +1 -1
- package/daemon/dist/domain/community-harness-presets.js +25 -1
- package/daemon/dist/domain/community-harness-presets.js.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts +12 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.js +130 -2
- package/daemon/dist/domain/compaction-restore-notice.js.map +1 -1
- package/daemon/dist/domain/continuity-policy-materializer.d.ts.map +1 -1
- package/daemon/dist/domain/continuity-policy-materializer.js +11 -3
- package/daemon/dist/domain/continuity-policy-materializer.js.map +1 -1
- package/daemon/dist/domain/core-app-job.d.ts +4 -4
- package/daemon/dist/domain/core-app-job.d.ts.map +1 -1
- package/daemon/dist/domain/core-app-job.js +4 -59
- package/daemon/dist/domain/core-app-job.js.map +1 -1
- package/daemon/dist/domain/current-work.d.ts +43 -4
- package/daemon/dist/domain/current-work.d.ts.map +1 -1
- package/daemon/dist/domain/current-work.js +52 -3
- package/daemon/dist/domain/current-work.js.map +1 -1
- package/daemon/dist/domain/escalation-owner.d.ts +3 -0
- package/daemon/dist/domain/escalation-owner.d.ts.map +1 -1
- package/daemon/dist/domain/escalation-owner.js +9 -3
- package/daemon/dist/domain/escalation-owner.js.map +1 -1
- package/daemon/dist/domain/execution-candidate-reader.d.ts +3 -0
- package/daemon/dist/domain/execution-candidate-reader.d.ts.map +1 -1
- package/daemon/dist/domain/execution-candidate-reader.js +8 -2
- package/daemon/dist/domain/execution-candidate-reader.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 +11 -1
- package/daemon/dist/domain/existing-rig-restore.js.map +1 -1
- package/daemon/dist/domain/feed/attention-aggregator.d.ts +5 -5
- package/daemon/dist/domain/feed/attention-aggregator.d.ts.map +1 -1
- package/daemon/dist/domain/feed/attention-aggregator.js +10 -4
- package/daemon/dist/domain/feed/attention-aggregator.js.map +1 -1
- package/daemon/dist/domain/files/path-safety.d.ts +7 -0
- package/daemon/dist/domain/files/path-safety.d.ts.map +1 -1
- package/daemon/dist/domain/files/path-safety.js +23 -0
- package/daemon/dist/domain/files/path-safety.js.map +1 -1
- package/daemon/dist/domain/frontmatter.d.ts.map +1 -1
- package/daemon/dist/domain/frontmatter.js +4 -2
- package/daemon/dist/domain/frontmatter.js.map +1 -1
- package/daemon/dist/domain/gateway/destination-resolver.d.ts +3 -0
- package/daemon/dist/domain/gateway/destination-resolver.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/destination-resolver.js +9 -0
- package/daemon/dist/domain/gateway/destination-resolver.js.map +1 -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/slack/inbound.d.ts +6 -1
- package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.js +53 -9
- package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.d.ts +4 -4
- package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.js +20 -7
- package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/outbound-driver.d.ts +4 -0
- package/daemon/dist/domain/gateway/slack/outbound-driver.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/outbound-driver.js +1 -0
- package/daemon/dist/domain/gateway/slack/outbound-driver.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts +9 -1
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.js +2 -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 +15 -2
- package/daemon/dist/domain/gateway/slack/settled-asks.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +10 -19
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.js +64 -40
- package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts +3 -13
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js +70 -22
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
- package/daemon/dist/domain/harness-not-started-notice.d.ts +5 -2
- package/daemon/dist/domain/harness-not-started-notice.d.ts.map +1 -1
- package/daemon/dist/domain/harness-not-started-notice.js +46 -15
- package/daemon/dist/domain/harness-not-started-notice.js.map +1 -1
- package/daemon/dist/domain/health-detectors.d.ts +4 -0
- package/daemon/dist/domain/health-detectors.d.ts.map +1 -1
- package/daemon/dist/domain/health-detectors.js +4 -1
- package/daemon/dist/domain/health-detectors.js.map +1 -1
- package/daemon/dist/domain/health-diagnosis.d.ts.map +1 -1
- package/daemon/dist/domain/health-diagnosis.js +14 -9
- package/daemon/dist/domain/health-diagnosis.js.map +1 -1
- package/daemon/dist/domain/health-passive-ceremony.d.ts +2 -0
- package/daemon/dist/domain/health-passive-ceremony.d.ts.map +1 -1
- package/daemon/dist/domain/health-passive-ceremony.js +71 -13
- package/daemon/dist/domain/health-passive-ceremony.js.map +1 -1
- package/daemon/dist/domain/history-query.d.ts +1 -1
- package/daemon/dist/domain/history-query.d.ts.map +1 -1
- package/daemon/dist/domain/history-query.js +1 -2
- package/daemon/dist/domain/history-query.js.map +1 -1
- package/daemon/dist/domain/hosts/read-through.d.ts +1 -1
- package/daemon/dist/domain/hosts/read-through.d.ts.map +1 -1
- package/daemon/dist/domain/hosts/read-through.js +9 -2
- package/daemon/dist/domain/hosts/read-through.js.map +1 -1
- package/daemon/dist/domain/hot-potato-enforcer.d.ts +3 -3
- package/daemon/dist/domain/hot-potato-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/hot-potato-enforcer.js +2 -2
- package/daemon/dist/domain/hot-potato-enforcer.js.map +1 -1
- package/daemon/dist/domain/human-questions.d.ts +1 -1
- package/daemon/dist/domain/human-questions.d.ts.map +1 -1
- package/daemon/dist/domain/human-questions.js +2 -0
- package/daemon/dist/domain/human-questions.js.map +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/keep-alive-supervisor.d.ts +178 -0
- package/daemon/dist/domain/keep-alive-supervisor.d.ts.map +1 -0
- package/daemon/dist/domain/keep-alive-supervisor.js +523 -0
- package/daemon/dist/domain/keep-alive-supervisor.js.map +1 -0
- package/daemon/dist/domain/managed-restore-read-access.d.ts +18 -0
- package/daemon/dist/domain/managed-restore-read-access.d.ts.map +1 -1
- package/daemon/dist/domain/managed-restore-read-access.js +41 -1
- package/daemon/dist/domain/managed-restore-read-access.js.map +1 -1
- package/daemon/dist/domain/mission-control/audit-browse.d.ts +1 -1
- package/daemon/dist/domain/mission-control/audit-browse.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/audit-browse.js +3 -6
- package/daemon/dist/domain/mission-control/audit-browse.js.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-fleet-cli-capability.d.ts +6 -0
- package/daemon/dist/domain/mission-control/mission-control-fleet-cli-capability.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-fleet-cli-capability.js +38 -9
- package/daemon/dist/domain/mission-control/mission-control-fleet-cli-capability.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 +50 -5
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
- package/daemon/dist/domain/mutation-trace.d.ts +28 -0
- package/daemon/dist/domain/mutation-trace.d.ts.map +1 -0
- package/daemon/dist/domain/mutation-trace.js +38 -0
- package/daemon/dist/domain/mutation-trace.js.map +1 -0
- package/daemon/dist/domain/native-resume-probe.d.ts +35 -3
- package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +84 -17
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/network/hub-client.d.ts +30 -1
- package/daemon/dist/domain/network/hub-client.d.ts.map +1 -1
- package/daemon/dist/domain/network/hub-client.js +62 -9
- package/daemon/dist/domain/network/hub-client.js.map +1 -1
- package/daemon/dist/domain/network/network-bindings.d.ts +52 -2
- package/daemon/dist/domain/network/network-bindings.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-bindings.js +217 -23
- package/daemon/dist/domain/network/network-bindings.js.map +1 -1
- package/daemon/dist/domain/network/network-connector.d.ts +9 -1
- package/daemon/dist/domain/network/network-connector.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-connector.js +95 -7
- package/daemon/dist/domain/network/network-connector.js.map +1 -1
- package/daemon/dist/domain/network/network-installations.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-installations.js +22 -7
- package/daemon/dist/domain/network/network-installations.js.map +1 -1
- package/daemon/dist/domain/network/network-provider-removal.d.ts +9 -0
- package/daemon/dist/domain/network/network-provider-removal.d.ts.map +1 -0
- package/daemon/dist/domain/network/network-provider-removal.js +75 -0
- package/daemon/dist/domain/network/network-provider-removal.js.map +1 -0
- package/daemon/dist/domain/network/network-requests.d.ts +60 -0
- package/daemon/dist/domain/network/network-requests.d.ts.map +1 -0
- package/daemon/dist/domain/network/network-requests.js +502 -0
- package/daemon/dist/domain/network/network-requests.js.map +1 -0
- package/daemon/dist/domain/node-inventory.d.ts +26 -0
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +87 -7
- package/daemon/dist/domain/node-inventory.js.map +1 -1
- package/daemon/dist/domain/node-launcher.d.ts +2 -2
- package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/node-launcher.js +9 -7
- package/daemon/dist/domain/node-launcher.js.map +1 -1
- package/daemon/dist/domain/occupant-invalidator.d.ts +1 -1
- package/daemon/dist/domain/occupant-invalidator.d.ts.map +1 -1
- package/daemon/dist/domain/occupant-invalidator.js +1 -1
- package/daemon/dist/domain/occupant-invalidator.js.map +1 -1
- package/daemon/dist/domain/outbox-handler.d.ts +11 -0
- package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
- package/daemon/dist/domain/outbox-handler.js +20 -0
- package/daemon/dist/domain/outbox-handler.js.map +1 -1
- package/daemon/dist/domain/pane-cutover.d.ts +36 -9
- package/daemon/dist/domain/pane-cutover.d.ts.map +1 -1
- package/daemon/dist/domain/pane-cutover.js +82 -13
- package/daemon/dist/domain/pane-cutover.js.map +1 -1
- package/daemon/dist/domain/parked-query.d.ts +6 -0
- package/daemon/dist/domain/parked-query.d.ts.map +1 -1
- package/daemon/dist/domain/parked-query.js +14 -4
- package/daemon/dist/domain/parked-query.js.map +1 -1
- package/daemon/dist/domain/policies/seat-pool.d.ts +13 -0
- package/daemon/dist/domain/policies/seat-pool.d.ts.map +1 -1
- package/daemon/dist/domain/policies/seat-pool.js +18 -3
- package/daemon/dist/domain/policies/seat-pool.js.map +1 -1
- package/daemon/dist/domain/profile-resolver.d.ts +7 -1
- package/daemon/dist/domain/profile-resolver.d.ts.map +1 -1
- package/daemon/dist/domain/profile-resolver.js +7 -0
- package/daemon/dist/domain/profile-resolver.js.map +1 -1
- package/daemon/dist/domain/progress/progress-indexer.d.ts.map +1 -1
- package/daemon/dist/domain/progress/progress-indexer.js +11 -0
- package/daemon/dist/domain/progress/progress-indexer.js.map +1 -1
- package/daemon/dist/domain/project-lifecycle-compiler.d.ts.map +1 -1
- package/daemon/dist/domain/project-lifecycle-compiler.js +4 -1
- package/daemon/dist/domain/project-lifecycle-compiler.js.map +1 -1
- package/daemon/dist/domain/projection-planner.d.ts +17 -3
- package/daemon/dist/domain/projection-planner.d.ts.map +1 -1
- package/daemon/dist/domain/projection-planner.js +9 -1
- package/daemon/dist/domain/projection-planner.js.map +1 -1
- package/daemon/dist/domain/proof/judgments.d.ts +3 -0
- package/daemon/dist/domain/proof/judgments.d.ts.map +1 -1
- package/daemon/dist/domain/proof/judgments.js +13 -3
- package/daemon/dist/domain/proof/judgments.js.map +1 -1
- package/daemon/dist/domain/proof/source-watch.js +4 -4
- package/daemon/dist/domain/proof/source-watch.js.map +1 -1
- package/daemon/dist/domain/provider/claude-interruption.d.ts +6 -0
- package/daemon/dist/domain/provider/claude-interruption.d.ts.map +1 -1
- package/daemon/dist/domain/provider/claude-interruption.js +18 -0
- package/daemon/dist/domain/provider/claude-interruption.js.map +1 -1
- package/daemon/dist/domain/ps-projection.d.ts +8 -1
- package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
- package/daemon/dist/domain/ps-projection.js +11 -3
- package/daemon/dist/domain/ps-projection.js.map +1 -1
- package/daemon/dist/domain/queue-destination-check.d.ts +8 -0
- package/daemon/dist/domain/queue-destination-check.d.ts.map +1 -1
- package/daemon/dist/domain/queue-destination-check.js +17 -4
- package/daemon/dist/domain/queue-destination-check.js.map +1 -1
- package/daemon/dist/domain/queue-erasure.d.ts +3 -0
- package/daemon/dist/domain/queue-erasure.d.ts.map +1 -1
- package/daemon/dist/domain/queue-erasure.js +2 -2
- package/daemon/dist/domain/queue-erasure.js.map +1 -1
- package/daemon/dist/domain/queue-owner.d.ts +5 -0
- package/daemon/dist/domain/queue-owner.d.ts.map +1 -1
- package/daemon/dist/domain/queue-owner.js +16 -8
- package/daemon/dist/domain/queue-owner.js.map +1 -1
- package/daemon/dist/domain/queue-recorded-graph.d.ts +32 -0
- package/daemon/dist/domain/queue-recorded-graph.d.ts.map +1 -0
- package/daemon/dist/domain/queue-recorded-graph.js +84 -0
- package/daemon/dist/domain/queue-recorded-graph.js.map +1 -0
- package/daemon/dist/domain/queue-repository.d.ts +94 -5
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +491 -39
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-retention.d.ts +1 -1
- package/daemon/dist/domain/queue-retention.d.ts.map +1 -1
- package/daemon/dist/domain/queue-retention.js +4 -0
- package/daemon/dist/domain/queue-retention.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts +23 -3
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +661 -22
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/queue-transfer-export.d.ts +75 -0
- package/daemon/dist/domain/queue-transfer-export.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-export.js +158 -0
- package/daemon/dist/domain/queue-transfer-export.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-format.d.ts +15 -0
- package/daemon/dist/domain/queue-transfer-format.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-format.js +32 -0
- package/daemon/dist/domain/queue-transfer-format.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-parse.d.ts +40 -0
- package/daemon/dist/domain/queue-transfer-parse.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-parse.js +131 -0
- package/daemon/dist/domain/queue-transfer-parse.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-review.d.ts +22 -0
- package/daemon/dist/domain/queue-transfer-review.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-review.js +81 -0
- package/daemon/dist/domain/queue-transfer-review.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-staging.d.ts +79 -0
- package/daemon/dist/domain/queue-transfer-staging.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-staging.js +67 -0
- package/daemon/dist/domain/queue-transfer-staging.js.map +1 -0
- package/daemon/dist/domain/queue-transition-log.d.ts +6 -0
- package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
- package/daemon/dist/domain/queue-transition-log.js +1 -1
- package/daemon/dist/domain/queue-transition-log.js.map +1 -1
- package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
- package/daemon/dist/domain/queue-waiting.js +7 -0
- package/daemon/dist/domain/queue-waiting.js.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.d.ts +4 -0
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +181 -24
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/reconciler.d.ts +27 -2
- package/daemon/dist/domain/reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/reconciler.js +184 -16
- package/daemon/dist/domain/reconciler.js.map +1 -1
- package/daemon/dist/domain/refusal-trace.d.ts +15 -0
- package/daemon/dist/domain/refusal-trace.d.ts.map +1 -0
- package/daemon/dist/domain/refusal-trace.js +23 -0
- package/daemon/dist/domain/refusal-trace.js.map +1 -0
- package/daemon/dist/domain/rehydrate-eligibility.d.ts +8 -0
- package/daemon/dist/domain/rehydrate-eligibility.d.ts.map +1 -1
- package/daemon/dist/domain/rehydrate-eligibility.js +61 -9
- package/daemon/dist/domain/rehydrate-eligibility.js.map +1 -1
- package/daemon/dist/domain/relayed-answers.d.ts +80 -0
- package/daemon/dist/domain/relayed-answers.d.ts.map +1 -0
- package/daemon/dist/domain/relayed-answers.js +8 -0
- package/daemon/dist/domain/relayed-answers.js.map +1 -0
- package/daemon/dist/domain/remote-control-observations.d.ts +50 -0
- package/daemon/dist/domain/remote-control-observations.d.ts.map +1 -0
- package/daemon/dist/domain/remote-control-observations.js +72 -0
- package/daemon/dist/domain/remote-control-observations.js.map +1 -0
- package/daemon/dist/domain/restore-attempt-receipt.d.ts.map +1 -1
- package/daemon/dist/domain/restore-attempt-receipt.js +8 -2
- package/daemon/dist/domain/restore-attempt-receipt.js.map +1 -1
- package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
- package/daemon/dist/domain/restore-check-service.js +5 -2
- package/daemon/dist/domain/restore-check-service.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +70 -6
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +387 -51
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/return-route.d.ts +13 -2
- package/daemon/dist/domain/return-route.d.ts.map +1 -1
- package/daemon/dist/domain/return-route.js +30 -1
- package/daemon/dist/domain/return-route.js.map +1 -1
- package/daemon/dist/domain/rig-lifecycle-service.d.ts +1 -0
- package/daemon/dist/domain/rig-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/rig-lifecycle-service.js +27 -3
- package/daemon/dist/domain/rig-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/rig-mode/operating-posture.d.ts.map +1 -1
- package/daemon/dist/domain/rig-mode/operating-posture.js +23 -4
- package/daemon/dist/domain/rig-mode/operating-posture.js.map +1 -1
- package/daemon/dist/domain/rig-repository.d.ts +21 -3
- package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
- package/daemon/dist/domain/rig-repository.js +67 -2
- package/daemon/dist/domain/rig-repository.js.map +1 -1
- package/daemon/dist/domain/rig-teardown.d.ts +52 -9
- package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
- package/daemon/dist/domain/rig-teardown.js +184 -32
- 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 +12 -0
- package/daemon/dist/domain/rigspec-codec.js.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.d.ts +14 -0
- package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.js +56 -14
- package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts +34 -3
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +195 -40
- 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 +26 -3
- 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 +30 -4
- package/daemon/dist/domain/rigspec-schema.js.map +1 -1
- package/daemon/dist/domain/roster-ready-notice.d.ts +11 -0
- package/daemon/dist/domain/roster-ready-notice.d.ts.map +1 -0
- package/daemon/dist/domain/roster-ready-notice.js +35 -0
- package/daemon/dist/domain/roster-ready-notice.js.map +1 -0
- package/daemon/dist/domain/rosters.d.ts +1 -0
- package/daemon/dist/domain/rosters.d.ts.map +1 -1
- package/daemon/dist/domain/rosters.js +5 -4
- package/daemon/dist/domain/rosters.js.map +1 -1
- package/daemon/dist/domain/runner-permissions.d.ts +140 -5
- package/daemon/dist/domain/runner-permissions.d.ts.map +1 -1
- package/daemon/dist/domain/runner-permissions.js +593 -16
- package/daemon/dist/domain/runner-permissions.js.map +1 -1
- package/daemon/dist/domain/runtime-adapter.d.ts +3 -1
- package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-exit.d.ts +79 -0
- package/daemon/dist/domain/runtime-exit.d.ts.map +1 -0
- package/daemon/dist/domain/runtime-exit.js +301 -0
- package/daemon/dist/domain/runtime-exit.js.map +1 -0
- package/daemon/dist/domain/runtime-switch-materials.d.ts +4 -1
- package/daemon/dist/domain/runtime-switch-materials.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-switch-materials.js +66 -13
- package/daemon/dist/domain/runtime-switch-materials.js.map +1 -1
- package/daemon/dist/domain/scope/attestation-lineage.generated.js +2 -2
- package/daemon/dist/domain/scope/attestation-lineage.generated.js.map +1 -1
- package/daemon/dist/domain/scope/logical-checkbox.d.ts.map +1 -1
- package/daemon/dist/domain/scope/logical-checkbox.js +18 -0
- package/daemon/dist/domain/scope/logical-checkbox.js.map +1 -1
- package/daemon/dist/domain/scope/scaffold-placeholder.js +2 -2
- package/daemon/dist/domain/scope/scaffold-placeholder.js.map +1 -1
- package/daemon/dist/domain/seat-activity-service.d.ts +4 -0
- package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-activity-service.js +24 -5
- package/daemon/dist/domain/seat-activity-service.js.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.d.ts +7 -0
- package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.js +152 -65
- package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-cold-start.d.ts +150 -0
- package/daemon/dist/domain/seat-cold-start.d.ts.map +1 -0
- package/daemon/dist/domain/seat-cold-start.js +371 -0
- package/daemon/dist/domain/seat-cold-start.js.map +1 -0
- package/daemon/dist/domain/seat-delivery-guard.d.ts +11 -2
- package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.js +34 -6
- package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
- package/daemon/dist/domain/seat-handover-service.d.ts +5 -2
- package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-handover-service.js +30 -6
- package/daemon/dist/domain/seat-handover-service.js.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.d.ts +31 -0
- package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.js +218 -29
- package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-identity-store.d.ts +5 -3
- package/daemon/dist/domain/seat-identity-store.d.ts.map +1 -1
- package/daemon/dist/domain/seat-identity-store.js +7 -3
- package/daemon/dist/domain/seat-identity-store.js.map +1 -1
- package/daemon/dist/domain/seat-launch-environment.d.ts +8 -0
- package/daemon/dist/domain/seat-launch-environment.d.ts.map +1 -1
- package/daemon/dist/domain/seat-launch-environment.js +37 -5
- package/daemon/dist/domain/seat-launch-environment.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +54 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +220 -30
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/seat-pool-executor.d.ts +174 -0
- package/daemon/dist/domain/seat-pool-executor.d.ts.map +1 -0
- package/daemon/dist/domain/seat-pool-executor.js +1241 -0
- package/daemon/dist/domain/seat-pool-executor.js.map +1 -0
- package/daemon/dist/domain/seat-pool-registration.d.ts +93 -0
- package/daemon/dist/domain/seat-pool-registration.d.ts.map +1 -0
- package/daemon/dist/domain/seat-pool-registration.js +149 -0
- package/daemon/dist/domain/seat-pool-registration.js.map +1 -0
- package/daemon/dist/domain/seat-pool-slots.d.ts +66 -0
- package/daemon/dist/domain/seat-pool-slots.d.ts.map +1 -1
- package/daemon/dist/domain/seat-pool-slots.js +101 -0
- package/daemon/dist/domain/seat-pool-slots.js.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.d.ts +15 -0
- package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.js +54 -2
- package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-home-record.d.ts +8 -0
- package/daemon/dist/domain/seat-runtime-home-record.d.ts.map +1 -1
- package/daemon/dist/domain/seat-runtime-home-record.js +1 -1
- package/daemon/dist/domain/seat-runtime-home-record.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts +2 -1
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.js +68 -20
- package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
- package/daemon/dist/domain/session-registry.d.ts +22 -3
- package/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.js +38 -6
- package/daemon/dist/domain/session-registry.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +18 -2
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +73 -39
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/skill-catalog.d.ts.map +1 -1
- package/daemon/dist/domain/skill-catalog.js +24 -10
- package/daemon/dist/domain/skill-catalog.js.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.d.ts +55 -0
- package/daemon/dist/domain/slices/slice-indexer.d.ts.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.js +259 -50
- package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts +6 -2
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +118 -30
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/startup-proof.d.ts +6 -0
- package/daemon/dist/domain/startup-proof.d.ts.map +1 -1
- package/daemon/dist/domain/startup-proof.js +11 -0
- package/daemon/dist/domain/startup-proof.js.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.d.ts +3 -0
- package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.js +36 -3
- package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
- package/daemon/dist/domain/stream-reader-actions.d.ts +23 -0
- package/daemon/dist/domain/stream-reader-actions.d.ts.map +1 -1
- package/daemon/dist/domain/stream-reader-actions.js +43 -0
- package/daemon/dist/domain/stream-reader-actions.js.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.d.ts +24 -3
- package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.js +54 -23
- package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
- package/daemon/dist/domain/terminal/earlier-tile-attach-0723.d.ts +2 -0
- package/daemon/dist/domain/terminal/earlier-tile-attach-0723.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/earlier-tile-attach-0723.js +48 -0
- package/daemon/dist/domain/terminal/earlier-tile-attach-0723.js.map +1 -0
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts +2 -0
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.js +2 -0
- package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
- package/daemon/dist/domain/terminal/rex-agent-status.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/rex-agent-status.js +5 -2
- package/daemon/dist/domain/terminal/rex-agent-status.js.map +1 -1
- package/daemon/dist/domain/terminal/scope-task-terminal-view.d.ts +2 -1
- package/daemon/dist/domain/terminal/scope-task-terminal-view.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/scope-task-terminal-view.js +80 -38
- package/daemon/dist/domain/terminal/scope-task-terminal-view.js.map +1 -1
- package/daemon/dist/domain/terminal/terminal-provider.d.ts +2 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.d.ts +3 -0
- package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.js +30 -26
- package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
- package/daemon/dist/domain/terminal/tile-attach.d.ts +31 -3
- package/daemon/dist/domain/terminal/tile-attach.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/tile-attach.js +95 -4
- package/daemon/dist/domain/terminal/tile-attach.js.map +1 -1
- package/daemon/dist/domain/terminal/view-composer.d.ts +2 -0
- package/daemon/dist/domain/terminal/view-composer.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/view-composer.js +4 -2
- package/daemon/dist/domain/terminal/view-composer.js.map +1 -1
- package/daemon/dist/domain/topology-trace.d.ts +40 -0
- package/daemon/dist/domain/topology-trace.d.ts.map +1 -0
- package/daemon/dist/domain/topology-trace.js +106 -0
- package/daemon/dist/domain/topology-trace.js.map +1 -0
- package/daemon/dist/domain/transcript-redaction.d.ts +10 -8
- package/daemon/dist/domain/transcript-redaction.d.ts.map +1 -1
- package/daemon/dist/domain/transcript-redaction.js +51 -22
- package/daemon/dist/domain/transcript-redaction.js.map +1 -1
- package/daemon/dist/domain/transcript-store.d.ts.map +1 -1
- package/daemon/dist/domain/transcript-store.js +12 -1
- package/daemon/dist/domain/transcript-store.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +111 -9
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js +6 -2
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.js +2 -0
- 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 +13 -0
- package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts +5 -3
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-jobs-repository.js +6 -1
- package/daemon/dist/domain/watchdog-jobs-repository.js.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.d.ts +8 -1
- package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.js +6 -2
- package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
- package/daemon/dist/domain/whoami-service.d.ts +11 -0
- package/daemon/dist/domain/whoami-service.d.ts.map +1 -1
- package/daemon/dist/domain/whoami-service.js +13 -0
- package/daemon/dist/domain/whoami-service.js.map +1 -1
- package/daemon/dist/domain/workflow-instance-store.d.ts +2 -0
- package/daemon/dist/domain/workflow-instance-store.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-instance-store.js +11 -2
- package/daemon/dist/domain/workflow-instance-store.js.map +1 -1
- package/daemon/dist/domain/workflow-projector.d.ts +3 -1
- package/daemon/dist/domain/workflow-projector.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-projector.js +58 -10
- package/daemon/dist/domain/workflow-projector.js.map +1 -1
- package/daemon/dist/domain/workflow-reconciliation.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-reconciliation.js +9 -0
- package/daemon/dist/domain/workflow-reconciliation.js.map +1 -1
- package/daemon/dist/domain/workflow-run-title.d.ts +4 -0
- package/daemon/dist/domain/workflow-run-title.d.ts.map +1 -0
- package/daemon/dist/domain/workflow-run-title.js +5 -0
- package/daemon/dist/domain/workflow-run-title.js.map +1 -0
- package/daemon/dist/domain/workflow-runtime.d.ts +3 -0
- package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-runtime.js +48 -3
- package/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/daemon/dist/domain/workflow-spec-cache.d.ts +2 -2
- package/daemon/dist/domain/workflow-spec-cache.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-spec-cache.js +20 -1
- package/daemon/dist/domain/workflow-spec-cache.js.map +1 -1
- package/daemon/dist/domain/workflow-types.d.ts +15 -0
- package/daemon/dist/domain/workflow-types.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-types.js +4 -0
- package/daemon/dist/domain/workflow-types.js.map +1 -1
- package/daemon/dist/domain/workspace/project-read.d.ts +10 -0
- package/daemon/dist/domain/workspace/project-read.d.ts.map +1 -1
- package/daemon/dist/domain/workspace/project-read.js +34 -2
- package/daemon/dist/domain/workspace/project-read.js.map +1 -1
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +7 -1
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/queue-transfer-export-surface.d.ts +33 -0
- package/daemon/dist/queue-transfer-export-surface.d.ts.map +1 -0
- package/daemon/dist/queue-transfer-export-surface.js +13 -0
- package/daemon/dist/queue-transfer-export-surface.js.map +1 -0
- package/daemon/dist/queue-transfer-staging-surface.d.ts +86 -0
- package/daemon/dist/queue-transfer-staging-surface.d.ts.map +1 -0
- package/daemon/dist/queue-transfer-staging-surface.js +91 -0
- package/daemon/dist/queue-transfer-staging-surface.js.map +1 -0
- 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/compaction.d.ts.map +1 -1
- package/daemon/dist/routes/compaction.js +33 -11
- package/daemon/dist/routes/compaction.js.map +1 -1
- package/daemon/dist/routes/context-packs.d.ts.map +1 -1
- package/daemon/dist/routes/context-packs.js +23 -1
- package/daemon/dist/routes/context-packs.js.map +1 -1
- package/daemon/dist/routes/events.js +7 -4
- package/daemon/dist/routes/events.js.map +1 -1
- package/daemon/dist/routes/network.d.ts +2 -0
- package/daemon/dist/routes/network.d.ts.map +1 -1
- package/daemon/dist/routes/network.js +62 -1
- package/daemon/dist/routes/network.js.map +1 -1
- package/daemon/dist/routes/ps.js +12 -1
- package/daemon/dist/routes/ps.js.map +1 -1
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +219 -77
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/require-sender-identity.d.ts +15 -0
- package/daemon/dist/routes/require-sender-identity.d.ts.map +1 -1
- package/daemon/dist/routes/require-sender-identity.js +57 -8
- package/daemon/dist/routes/require-sender-identity.js.map +1 -1
- package/daemon/dist/routes/rigs.js +2 -0
- package/daemon/dist/routes/rigs.js.map +1 -1
- package/daemon/dist/routes/seat.d.ts.map +1 -1
- package/daemon/dist/routes/seat.js +18 -5
- package/daemon/dist/routes/seat.js.map +1 -1
- package/daemon/dist/routes/sessions.d.ts.map +1 -1
- package/daemon/dist/routes/sessions.js +14 -0
- package/daemon/dist/routes/sessions.js.map +1 -1
- package/daemon/dist/routes/slices.d.ts.map +1 -1
- package/daemon/dist/routes/slices.js +16 -7
- package/daemon/dist/routes/slices.js.map +1 -1
- package/daemon/dist/routes/startup.d.ts.map +1 -1
- package/daemon/dist/routes/startup.js +49 -4
- package/daemon/dist/routes/startup.js.map +1 -1
- package/daemon/dist/routes/stream.d.ts.map +1 -1
- package/daemon/dist/routes/stream.js +28 -1
- package/daemon/dist/routes/stream.js.map +1 -1
- package/daemon/dist/routes/terminal-ws.js +28 -2
- package/daemon/dist/routes/terminal-ws.js.map +1 -1
- package/daemon/dist/routes/terminal.d.ts.map +1 -1
- package/daemon/dist/routes/terminal.js +3 -2
- 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 +14 -2
- package/daemon/dist/routes/transport.js.map +1 -1
- package/daemon/dist/routes/up.js +2 -0
- package/daemon/dist/routes/up.js.map +1 -1
- package/daemon/dist/routes/workflow.d.ts.map +1 -1
- package/daemon/dist/routes/workflow.js +57 -44
- package/daemon/dist/routes/workflow.js.map +1 -1
- package/daemon/dist/server.d.ts +7 -0
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +25 -1
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts +3 -0
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +166 -12
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/dist/terminal/TerminalSessionBroker.d.ts +10 -0
- package/daemon/dist/terminal/TerminalSessionBroker.d.ts.map +1 -1
- package/daemon/dist/terminal/TerminalSessionBroker.js +63 -4
- package/daemon/dist/terminal/TerminalSessionBroker.js.map +1 -1
- package/daemon/dist/topology-trace-surface.d.ts +2 -0
- package/daemon/dist/topology-trace-surface.d.ts.map +1 -0
- package/daemon/dist/topology-trace-surface.js +2 -0
- package/daemon/dist/topology-trace-surface.js.map +1 -0
- package/daemon/dist/transcript-redaction-surface.d.ts +2 -0
- package/daemon/dist/transcript-redaction-surface.d.ts.map +1 -0
- package/daemon/dist/transcript-redaction-surface.js +2 -0
- package/daemon/dist/transcript-redaction-surface.js.map +1 -0
- package/daemon/docs/reference/acp-agents.md +11 -3
- package/daemon/docs/reference/agent-spec.md +25 -2
- package/daemon/docs/reference/agent-startup-guide.md +13 -1
- package/daemon/docs/reference/agent-state-taxonomy.md +35 -1
- package/daemon/docs/reference/checked-seat-stop.md +11 -1
- package/daemon/docs/reference/claude-status-line.md +7 -0
- package/daemon/docs/reference/community-harness-examples/cursor/cursor.yaml +3 -1
- package/daemon/docs/reference/community-harness-presets.md +27 -2
- package/daemon/docs/reference/daemon-http-clients.md +177 -18
- package/daemon/docs/reference/developing.md +3 -2
- package/daemon/docs/reference/gateway-participants.md +6 -0
- package/daemon/docs/reference/getting-started.md +144 -13
- package/daemon/docs/reference/harness-runner-contract.md +72 -0
- package/daemon/docs/reference/hosted-members.md +133 -0
- package/daemon/docs/reference/inventory-request-diagnostics.md +22 -0
- package/daemon/docs/reference/network-connector.md +141 -4
- package/daemon/docs/reference/project-workspace.md +11 -2
- package/daemon/docs/reference/queue-erasure.md +1 -1
- package/daemon/docs/reference/queue-transfer-export.md +38 -0
- package/daemon/docs/reference/queue-transfer-staging.md +39 -0
- package/daemon/docs/reference/quickstart.md +4 -4
- package/daemon/docs/reference/refocus-channel.md +53 -2
- package/daemon/docs/reference/rig-bundle.md +11 -1
- package/daemon/docs/reference/rig-spec.md +201 -3
- package/daemon/docs/reference/rosters.md +18 -3
- package/daemon/docs/reference/sdlc-conventions.md +1 -1
- package/daemon/docs/reference/seat-delivery.md +21 -4
- package/daemon/docs/reference/seat-node-targeting.md +10 -0
- package/daemon/docs/reference/seat-pools.md +182 -0
- package/daemon/docs/reference/slack-app-setup.md +15 -0
- package/daemon/docs/reference/terminal-sessions.md +127 -13
- package/daemon/docs/reference/tmux-servers.md +43 -2
- package/daemon/docs/reference/whats-new.md +186 -12
- package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +1 -1
- package/daemon/specs/agents/shared/skills/core/working-with-an-openrig-team/SKILL.md +71 -9
- package/daemon/specs/rigs/launch/factory/guidance/lead-first-move.md +4 -1
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +2 -1
- package/daemon/specs/rigs/launch/starter/guidance/lead-first-move.md +4 -1
- package/dist/bin-wrapper.d.ts.map +1 -1
- package/dist/bin-wrapper.js +24 -5
- package/dist/bin-wrapper.js.map +1 -1
- package/dist/build-info.js +3 -3
- package/dist/client.d.ts +6 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +7 -1
- package/dist/client.js.map +1 -1
- package/dist/commands/add.js +1 -1
- package/dist/commands/add.js.map +1 -1
- package/dist/commands/agent.js +1 -1
- package/dist/commands/agent.js.map +1 -1
- package/dist/commands/broadcast.d.ts.map +1 -1
- package/dist/commands/broadcast.js +87 -8
- package/dist/commands/broadcast.js.map +1 -1
- package/dist/commands/bundle.d.ts.map +1 -1
- package/dist/commands/bundle.js +18 -4
- package/dist/commands/bundle.js.map +1 -1
- package/dist/commands/chatroom.d.ts +3 -0
- package/dist/commands/chatroom.d.ts.map +1 -1
- package/dist/commands/chatroom.js +7 -1
- package/dist/commands/chatroom.js.map +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +2 -1
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/create.d.ts.map +1 -1
- package/dist/commands/create.js +6 -2
- package/dist/commands/create.js.map +1 -1
- package/dist/commands/daemon.d.ts.map +1 -1
- package/dist/commands/daemon.js +18 -15
- package/dist/commands/daemon.js.map +1 -1
- package/dist/commands/down.d.ts.map +1 -1
- package/dist/commands/down.js +12 -1
- package/dist/commands/down.js.map +1 -1
- package/dist/commands/exec.d.ts.map +1 -1
- package/dist/commands/exec.js +22 -13
- package/dist/commands/exec.js.map +1 -1
- package/dist/commands/expand.js +1 -1
- package/dist/commands/expand.js.map +1 -1
- package/dist/commands/export.d.ts.map +1 -1
- package/dist/commands/export.js +5 -1
- package/dist/commands/export.js.map +1 -1
- package/dist/commands/fork.js +1 -1
- package/dist/commands/fork.js.map +1 -1
- package/dist/commands/gateway.d.ts +4 -0
- package/dist/commands/gateway.d.ts.map +1 -1
- package/dist/commands/gateway.js +37 -0
- package/dist/commands/gateway.js.map +1 -1
- package/dist/commands/grow.d.ts.map +1 -1
- package/dist/commands/grow.js +9 -4
- package/dist/commands/grow.js.map +1 -1
- package/dist/commands/import.js +1 -1
- package/dist/commands/import.js.map +1 -1
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/mcp.js +57 -22
- package/dist/commands/mcp.js.map +1 -1
- package/dist/commands/network.d.ts +2 -3
- package/dist/commands/network.d.ts.map +1 -1
- package/dist/commands/network.js +102 -4
- package/dist/commands/network.js.map +1 -1
- package/dist/commands/parked.d.ts.map +1 -1
- package/dist/commands/parked.js +12 -6
- package/dist/commands/parked.js.map +1 -1
- package/dist/commands/provider.d.ts.map +1 -1
- package/dist/commands/provider.js +3 -2
- package/dist/commands/provider.js.map +1 -1
- package/dist/commands/ps.d.ts +13 -1
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +65 -29
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue-export.d.ts +3 -0
- package/dist/commands/queue-export.d.ts.map +1 -0
- package/dist/commands/queue-export.js +67 -0
- package/dist/commands/queue-export.js.map +1 -0
- package/dist/commands/queue-import.d.ts +4 -0
- package/dist/commands/queue-import.d.ts.map +1 -0
- package/dist/commands/queue-import.js +47 -0
- package/dist/commands/queue-import.js.map +1 -0
- package/dist/commands/queue.d.ts +3 -1
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +79 -7
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/reconcile-session.js +1 -1
- package/dist/commands/reconcile-session.js.map +1 -1
- package/dist/commands/restore.js +1 -1
- package/dist/commands/restore.js.map +1 -1
- package/dist/commands/rig.js +2 -2
- package/dist/commands/rig.js.map +1 -1
- package/dist/commands/roster.js +1 -1
- package/dist/commands/roster.js.map +1 -1
- package/dist/commands/scope.d.ts.map +1 -1
- package/dist/commands/scope.js +30 -18
- package/dist/commands/scope.js.map +1 -1
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +75 -18
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +15 -3
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/skill.js +1 -1
- package/dist/commands/skill.js.map +1 -1
- package/dist/commands/start.d.ts +14 -0
- package/dist/commands/start.d.ts.map +1 -1
- package/dist/commands/start.js +57 -7
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/terminal.d.ts.map +1 -1
- package/dist/commands/terminal.js +20 -4
- package/dist/commands/terminal.js.map +1 -1
- package/dist/commands/up.d.ts.map +1 -1
- package/dist/commands/up.js +2 -1
- package/dist/commands/up.js.map +1 -1
- package/dist/commands/whoami.d.ts.map +1 -1
- package/dist/commands/whoami.js +6 -0
- package/dist/commands/whoami.js.map +1 -1
- package/dist/commands/workflow-follow.d.ts.map +1 -1
- package/dist/commands/workflow-follow.js +37 -34
- package/dist/commands/workflow-follow.js.map +1 -1
- package/dist/commands/workflow-render.d.ts +1 -1
- package/dist/commands/workflow-render.d.ts.map +1 -1
- package/dist/commands/workflow-render.js +2 -7
- package/dist/commands/workflow-render.js.map +1 -1
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +26 -2
- package/dist/commands/workflow.js.map +1 -1
- package/dist/config-store.d.ts +2 -1
- package/dist/config-store.d.ts.map +1 -1
- package/dist/config-store.js +14 -1
- package/dist/config-store.js.map +1 -1
- package/dist/cross-host-executor.d.ts +3 -0
- package/dist/cross-host-executor.d.ts.map +1 -1
- package/dist/cross-host-executor.js +5 -0
- package/dist/cross-host-executor.js.map +1 -1
- package/dist/daemon-auto-start.d.ts.map +1 -1
- package/dist/daemon-auto-start.js +1 -0
- package/dist/daemon-auto-start.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts +30 -1
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +135 -38
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/daemon-start-lock.d.ts +38 -3
- package/dist/daemon-start-lock.d.ts.map +1 -1
- package/dist/daemon-start-lock.js +201 -48
- package/dist/daemon-start-lock.js.map +1 -1
- package/dist/lib/bundle-source.d.ts +4 -0
- package/dist/lib/bundle-source.d.ts.map +1 -1
- package/dist/lib/bundle-source.js +14 -2
- package/dist/lib/bundle-source.js.map +1 -1
- package/dist/lib/context-git.js +2 -2
- package/dist/lib/context-git.js.map +1 -1
- package/dist/lib/frontmatter.d.ts.map +1 -1
- package/dist/lib/frontmatter.js +4 -2
- package/dist/lib/frontmatter.js.map +1 -1
- package/dist/lib/scope/attestation-lineage.js +2 -2
- package/dist/lib/scope/attestation-lineage.js.map +1 -1
- package/dist/lib/scope/logical-checkbox.d.ts.map +1 -1
- package/dist/lib/scope/logical-checkbox.js +18 -0
- package/dist/lib/scope/logical-checkbox.js.map +1 -1
- package/dist/lib/scope/progress-edit.d.ts.map +1 -1
- package/dist/lib/scope/progress-edit.js +11 -1
- package/dist/lib/scope/progress-edit.js.map +1 -1
- package/dist/lib/scope/scaffold-placeholder.js +2 -2
- package/dist/lib/scope/scaffold-placeholder.js.map +1 -1
- package/dist/lib/terminal-cell.d.ts +5 -0
- package/dist/lib/terminal-cell.d.ts.map +1 -0
- package/dist/lib/terminal-cell.js +22 -0
- package/dist/lib/terminal-cell.js.map +1 -0
- package/dist/lib/topology-trace.d.ts +3 -34
- package/dist/lib/topology-trace.d.ts.map +1 -1
- package/dist/lib/topology-trace.js +3 -97
- package/dist/lib/topology-trace.js.map +1 -1
- package/dist/local-db.d.ts +2 -0
- package/dist/local-db.d.ts.map +1 -1
- package/dist/local-db.js +14 -11
- package/dist/local-db.js.map +1 -1
- package/dist/mcp-caller-resolver.d.ts +36 -0
- package/dist/mcp-caller-resolver.d.ts.map +1 -0
- package/dist/mcp-caller-resolver.js +82 -0
- package/dist/mcp-caller-resolver.js.map +1 -0
- package/dist/mcp-http.d.ts +44 -3
- package/dist/mcp-http.d.ts.map +1 -1
- package/dist/mcp-http.js +228 -48
- package/dist/mcp-http.js.map +1 -1
- package/dist/mcp-server.d.ts +28 -1
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +219 -52
- package/dist/mcp-server.js.map +1 -1
- package/dist/mcp-surface.d.ts +3 -2
- package/dist/mcp-surface.d.ts.map +1 -1
- package/dist/node-support.d.ts.map +1 -1
- package/dist/node-support.js +10 -0
- package/dist/node-support.js.map +1 -1
- package/dist/release-surface/extract-surface.d.ts.map +1 -1
- package/dist/release-surface/extract-surface.js +38 -20
- package/dist/release-surface/extract-surface.js.map +1 -1
- package/dist/release-surface/generate.d.ts.map +1 -1
- package/dist/release-surface/generate.js +3 -0
- package/dist/release-surface/generate.js.map +1 -1
- package/dist/release-surface/surface-diff.d.ts +1 -0
- package/dist/release-surface/surface-diff.d.ts.map +1 -1
- package/dist/release-surface/surface-diff.js +19 -18
- package/dist/release-surface/surface-diff.js.map +1 -1
- package/dist/remote-host-ops.d.ts +3 -0
- package/dist/remote-host-ops.d.ts.map +1 -1
- package/dist/remote-host-ops.js +15 -1
- package/dist/remote-host-ops.js.map +1 -1
- package/dist/restore-packet/redaction.d.ts +4 -26
- package/dist/restore-packet/redaction.d.ts.map +1 -1
- package/dist/restore-packet/redaction.js +19 -63
- package/dist/restore-packet/redaction.js.map +1 -1
- package/dist/terminal-orca.d.ts +7 -0
- package/dist/terminal-orca.d.ts.map +1 -0
- package/dist/terminal-orca.js +239 -0
- package/dist/terminal-orca.js.map +1 -0
- package/package.json +3 -3
- package/scripts/check-abi.mjs +15 -0
- package/tui/dist/attention/attention-model.d.ts.map +1 -1
- package/tui/dist/attention/attention-model.js +8 -4
- package/tui/dist/attention/attention-model.js.map +1 -1
- package/tui/dist/connected-assistants.d.ts +1 -1
- package/tui/dist/connected-assistants.d.ts.map +1 -1
- package/tui/dist/connected-assistants.js +3 -1
- package/tui/dist/connected-assistants.js.map +1 -1
- package/tui/dist/crash-cart/start-daemon.d.ts +20 -0
- package/tui/dist/crash-cart/start-daemon.d.ts.map +1 -1
- package/tui/dist/crash-cart/start-daemon.js +56 -0
- package/tui/dist/crash-cart/start-daemon.js.map +1 -1
- package/tui/dist/daemon-client.d.ts +4 -0
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js +12 -8
- package/tui/dist/daemon-client.js.map +1 -1
- package/tui/dist/health/health-model.d.ts.map +1 -1
- package/tui/dist/health/health-model.js +2 -0
- package/tui/dist/health/health-model.js.map +1 -1
- package/tui/dist/hydrate.d.ts +3 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +44 -27
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/live.d.ts +5 -1
- package/tui/dist/live.d.ts.map +1 -1
- package/tui/dist/live.js +20 -2
- package/tui/dist/live.js.map +1 -1
- package/tui/dist/main.js +29 -10
- package/tui/dist/main.js.map +1 -1
- package/tui/dist/pulse/pulse-model.d.ts.map +1 -1
- package/tui/dist/pulse/pulse-model.js +3 -2
- package/tui/dist/pulse/pulse-model.js.map +1 -1
- package/tui/dist/render.d.ts +2 -0
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +47 -14
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/types.d.ts +10 -4
- package/tui/dist/types.d.ts.map +1 -1
- package/ui/dist/assets/index-Chh-NS8Z.css +32 -0
- package/ui/dist/assets/index-DG_7XFcL.js +628 -0
- package/ui/dist/index.html +2 -2
- package/ui/dist/assets/index-B-sMy02c.js +0 -623
- package/ui/dist/assets/index-DiN7RwWg.css +0 -32
|
@@ -153,15 +153,24 @@ function workPacketEnabled() {
|
|
|
153
153
|
return enabled(process.env.OPENRIG_REFOCUS_WORK_PACKET, WORK_PACKET_DEFAULT[runtime()] === true);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
+
// With nothing in progress, the trace shows the seat's held and pending rows as context. The daemon adds them to its
|
|
157
|
+
// answer only on request, so ask only where the trace takes them: the packet off (its candidates carry held and next
|
|
158
|
+
// work already), no explicit work node, and a work tree.
|
|
159
|
+
function heldWorkWanted() {
|
|
160
|
+
return !workPacketEnabled() && !process.env.OPENRIG_REFOCUS_WORK_NODE
|
|
161
|
+
&& (process.env.OPENRIG_REFOCUS_TREES || "both") !== "topology";
|
|
162
|
+
}
|
|
163
|
+
|
|
156
164
|
function readQueueWhoami(timeout = lookupTimeout()) {
|
|
157
165
|
if (timeout <= MIN_LOOKUP_MS) return { unknown: "no time left in the refocus budget" };
|
|
158
|
-
const
|
|
166
|
+
const request = workPacketEnabled() ? ["--work-candidates"] : heldWorkWanted() ? ["--held-work"] : [];
|
|
167
|
+
const args = ["queue", "whoami", "--json", ...request];
|
|
159
168
|
let result = spawnSync("rig", args, {
|
|
160
169
|
encoding: "utf8", env: childEnv, timeout, maxBuffer: 16 * 1024 * 1024,
|
|
161
170
|
});
|
|
162
171
|
// A rig CLI older than this hook rejects the flag. Ask again without it, inside what is left of
|
|
163
|
-
// the budget, so the role and the strict answer still arrive (just without candidates).
|
|
164
|
-
if (
|
|
172
|
+
// the budget, so the role and the strict answer still arrive (just without candidates or held work).
|
|
173
|
+
if (request.length > 0 && !result.error && result.status !== 0
|
|
165
174
|
&& /unknown option/i.test(`${result.stderr || ""}${result.stdout || ""}`)) {
|
|
166
175
|
const remaining = remainingLookupBudget();
|
|
167
176
|
if (remaining > 250) {
|
|
@@ -291,10 +300,19 @@ function renderTrace() {
|
|
|
291
300
|
// An explicit start always wins. Otherwise the candidates replace the strict answer: the
|
|
292
301
|
// strict node ignores mission-only rows, so it could hide a second mission in flight.
|
|
293
302
|
const explicitStart = Boolean(process.env.OPENRIG_REFOCUS_WORK_NODE);
|
|
303
|
+
let heldWork = null;
|
|
294
304
|
if (work.start && (explicitStart || !evidence)) args.push("--work-start", work.start);
|
|
295
305
|
else if (evidence) args.push("--work-candidates", "-");
|
|
296
|
-
else if (work.basis)
|
|
297
|
-
|
|
306
|
+
else if (work.basis) {
|
|
307
|
+
args.push("--work-basis", work.basis);
|
|
308
|
+
// With nothing in progress, the same answer carries the seat's held and pending rows (asked for with --held-work); the
|
|
309
|
+
// trace shows them as context.
|
|
310
|
+
const held = whoami?.answer?.heldAndPendingWork;
|
|
311
|
+
if (trees !== "topology" && held && typeof held === "object") {
|
|
312
|
+
heldWork = JSON.stringify(held);
|
|
313
|
+
args.push("--held-work", "-");
|
|
314
|
+
}
|
|
315
|
+
} else if (work.unknown) {
|
|
298
316
|
args.push("--work-unknown", work.unknown);
|
|
299
317
|
if (work.timedOut) args.push("--work-unknown-timed-out");
|
|
300
318
|
}
|
|
@@ -319,7 +337,7 @@ function renderTrace() {
|
|
|
319
337
|
? { error: new Error("no time left in the refocus budget"), status: null, stdout: "", stderr: "" }
|
|
320
338
|
: spawnSync(process.env.PYTHON || "python3", args, {
|
|
321
339
|
encoding: "utf8",
|
|
322
|
-
...(evidence ? { input: evidence } : {}),
|
|
340
|
+
...(evidence || heldWork ? { input: evidence || heldWork } : {}),
|
|
323
341
|
env,
|
|
324
342
|
timeout,
|
|
325
343
|
maxBuffer: 16 * 1024 * 1024,
|
|
@@ -8,12 +8,11 @@ import { fileURLToPath } from "node:url";
|
|
|
8
8
|
|
|
9
9
|
const skillRoot = path.resolve(fileURLToPath(new URL("..", import.meta.url)));
|
|
10
10
|
const restoreScript = path.join(skillRoot, "scripts", "restore-from-jsonl.mjs");
|
|
11
|
-
// P6(C) injectable output-root: the packet
|
|
12
|
-
//
|
|
13
|
-
// hermetic env-var OPENRIG_COMPACTION_OUT_ROOT
|
|
14
|
-
// same injected clock + sessionId
|
|
15
|
-
// dir. Mirrors the injectable-clock seam (OPENRIG_TEST_CLOCK_NOW).
|
|
16
|
-
const outRoot = process.env.OPENRIG_COMPACTION_OUT_ROOT || "/tmp/claude-compaction-restore";
|
|
11
|
+
// P6(C) injectable output-root: restore-from-jsonl.mjs decides where the packet goes (OPENRIG_COMPACTION_OUT_ROOT, then
|
|
12
|
+
// the folder the seat's launch grants it reads in, then beside its restore maps in its launch project, then the OpenRig
|
|
13
|
+
// home's folder), so this hook passes no --out. The hermetic env-var OPENRIG_COMPACTION_OUT_ROOT makes it per-run
|
|
14
|
+
// isolated, so concurrent writers with the same injected clock + sessionId don't collide on the same
|
|
15
|
+
// `${sessionId}-${stamp}` dir. Mirrors the injectable-clock seam (OPENRIG_TEST_CLOCK_NOW).
|
|
17
16
|
// The packet is built by a detached copy of this hook (--finish), so a large transcript can take as long as it needs. The
|
|
18
17
|
// hook waits for it for 25 s by default, inside its own 30 s timeout (hooks/claude.json): a packet ready by then is
|
|
19
18
|
// reported as before; otherwise the hook says the packet is still being built, and the finisher writes the pending
|
|
@@ -21,6 +20,9 @@ const outRoot = process.env.OPENRIG_COMPACTION_OUT_ROOT || "/tmp/claude-compacti
|
|
|
21
20
|
// wait (tests shorten it); it isn't capped at the default.
|
|
22
21
|
const timeoutOverride = Number(process.env.OPENRIG_COMPACTION_RESTORE_TIMEOUT_MS);
|
|
23
22
|
const restoreTimeoutMs = Number.isInteger(timeoutOverride) && timeoutOverride > 0 ? timeoutOverride : 25_000;
|
|
23
|
+
// A transcript larger than this gets a packet from its last TAIL_BYTES only, so it's made inside the budget (a 2.95 GB
|
|
24
|
+
// transcript took 69 s whole). A smaller one gets the whole-session packet, unchanged.
|
|
25
|
+
const TAIL_BYTES = 256 * 1024 * 1024;
|
|
24
26
|
const defaultRestoreInstruction =
|
|
25
27
|
"Read the claude-compaction-restore skill and follow its \"If You Just Compacted\" protocol.";
|
|
26
28
|
|
|
@@ -260,7 +262,7 @@ function runsForThisSeatsProject(env = process.env) {
|
|
|
260
262
|
if (!runsForThisSeatsProject()) process.exit(0);
|
|
261
263
|
|
|
262
264
|
function restoreText(outputDir) {
|
|
263
|
-
return `Pre-compaction restore seed packet prepared at ${outputDir}. This hook output is informational. After compaction, OpenRig may send a later normal user message asking you to restore from this packet; treat that later normal user message as the action request. The restore protocol is: load/read the claude-compaction-restore skill, run "node ~/.claude/skills/claude-compaction-restore/scripts/restore-from-jsonl.mjs --
|
|
265
|
+
return `Pre-compaction restore seed packet prepared at ${outputDir}. This hook output is informational. After compaction, OpenRig may send a later normal user message asking you to restore from this packet; treat that later normal user message as the action request. The restore protocol is: load/read the claude-compaction-restore skill, run "node ~/.claude/skills/claude-compaction-restore/scripts/restore-from-jsonl.mjs --json" yourself when needed (it writes under ${path.dirname(outputDir)}), read the generated restore-instructions.md, read the generated touched-files.md, identify remembered important files, read those files in full, read root/as-built/codemap docs before real work, then reply with "restored from packet at <path>; resumed at step <X>" with the files you read in full. If any step fails, report the failure explicitly.`;
|
|
264
266
|
}
|
|
265
267
|
|
|
266
268
|
function failureText(reason) {
|
|
@@ -356,12 +358,13 @@ try {
|
|
|
356
358
|
const { jobPath, resultPath, reportPath } = packetJobPaths(input, jobId);
|
|
357
359
|
writeExpectedSentinel(input, { jobId, resultPath, reportPath }); // R5: sentinel FIRST, before the packet + marker (catches hook-died-partway)
|
|
358
360
|
supersedeEarlierMarker(input);
|
|
359
|
-
const args = [restoreScript, "--
|
|
361
|
+
const args = [restoreScript, "--json"];
|
|
360
362
|
if (input.cwd) args.push("--cwd", input.cwd);
|
|
361
363
|
if (input.transcript_path && input.transcript_path.endsWith(".jsonl") && fs.existsSync(input.transcript_path)) {
|
|
362
364
|
// The transcript as it stands now: compaction appends to it once this hook returns, and the packet is of what came
|
|
363
365
|
// before.
|
|
364
366
|
args.push("--until-byte", String(fs.statSync(input.transcript_path).size), input.transcript_path);
|
|
367
|
+
if (fs.statSync(input.transcript_path).size > TAIL_BYTES) args.push("--tail-bytes", String(TAIL_BYTES));
|
|
365
368
|
}
|
|
366
369
|
|
|
367
370
|
const customMessage = readClaudeCompactionMessage();
|
|
@@ -23,14 +23,52 @@ function stripBinary(text) {
|
|
|
23
23
|
(m) => `[base64 omitted: ~${m.length} bytes]`);
|
|
24
24
|
return s;
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
// Where packets go without --out (the PreCompact hook gives none, so this is the one place it's decided). The folder is
|
|
27
|
+
// created owner-only by writeOutputs:
|
|
28
|
+
// 1. OPENRIG_COMPACTION_OUT_ROOT, an explicit root (the test suites' own folder);
|
|
29
|
+
// 2. OPENRIG_COMPACTION_PACKET_ROOT: the OpenRig home's packet folder, which a seat's launch names when it grants the seat
|
|
30
|
+
// reads of its own packets there;
|
|
31
|
+
// 3. without it (a seat launched before packets moved into the OpenRig home, whose grant names only the old /tmp folder),
|
|
32
|
+
// the `packets` folder in the seat's launch project's OpenRig compaction folder, beside its restore maps: a seat reads its own working
|
|
33
|
+
// directory without a grant. The compaction folder ignores itself in Git, as the daemon makes it for the maps;
|
|
34
|
+
// without OpenRig's ignore file there, or a folder it can write, it's
|
|
35
|
+
// 4. the OpenRig home's packet folder.
|
|
36
|
+
function defaultOutRoot(env = process.env) {
|
|
37
|
+
if (env.OPENRIG_COMPACTION_OUT_ROOT) return env.OPENRIG_COMPACTION_OUT_ROOT;
|
|
38
|
+
const granted = env.OPENRIG_COMPACTION_PACKET_ROOT;
|
|
39
|
+
if (granted && path.isAbsolute(granted)) return granted;
|
|
40
|
+
return launchProjectPackets(env)
|
|
41
|
+
?? path.join(env.OPENRIG_HOME || env.RIGGED_HOME || path.join(os.homedir(), ".openrig"), "run", "compaction-restore");
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function launchProjectPackets(env) {
|
|
45
|
+
const project = env.OPENRIG_SEAT_PROJECT_DIR || env.CLAUDE_PROJECT_DIR;
|
|
46
|
+
if (!project || !path.isAbsolute(project) || !fs.existsSync(project)) return null;
|
|
47
|
+
try {
|
|
48
|
+
const compaction = path.join(project, ".openrig", "compaction");
|
|
49
|
+
fs.mkdirSync(compaction, { recursive: true });
|
|
50
|
+
const ignore = path.join(compaction, ".gitignore");
|
|
51
|
+
try {
|
|
52
|
+
fs.writeFileSync(ignore, "*\n", { flag: "wx", mode: 0o600 });
|
|
53
|
+
} catch (error) {
|
|
54
|
+
if (error.code !== "EEXIST" || !fs.lstatSync(ignore).isFile() || fs.readFileSync(ignore, "utf8") !== "*\n") return null;
|
|
55
|
+
}
|
|
56
|
+
const packets = path.join(compaction, "packets");
|
|
57
|
+
fs.mkdirSync(packets, { recursive: true, mode: 0o700 });
|
|
58
|
+
fs.accessSync(packets, fs.constants.W_OK | fs.constants.X_OK);
|
|
59
|
+
return packets;
|
|
60
|
+
} catch {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
27
64
|
|
|
28
65
|
function parseArgs(argv) {
|
|
29
66
|
const args = {
|
|
30
67
|
jsonl: null,
|
|
31
|
-
out:
|
|
68
|
+
out: null,
|
|
32
69
|
cwd: process.cwd(),
|
|
33
70
|
json: false,
|
|
71
|
+
tailBytes: 0,
|
|
34
72
|
untilByte: null,
|
|
35
73
|
};
|
|
36
74
|
|
|
@@ -38,6 +76,10 @@ function parseArgs(argv) {
|
|
|
38
76
|
const arg = argv[i];
|
|
39
77
|
if (arg === "--jsonl") args.jsonl = argv[++i];
|
|
40
78
|
else if (arg === "--out") args.out = argv[++i];
|
|
79
|
+
else if (arg === "--tail-bytes") {
|
|
80
|
+
args.tailBytes = Number(argv[++i]);
|
|
81
|
+
if (!Number.isInteger(args.tailBytes) || args.tailBytes <= 0) throw new Error("--tail-bytes needs a whole number of bytes");
|
|
82
|
+
}
|
|
41
83
|
else if (arg === "--cwd") args.cwd = argv[++i];
|
|
42
84
|
else if (arg === "--json") args.json = true;
|
|
43
85
|
// Read only the first N bytes: the transcript as it was when the PreCompact hook ran, before compaction appends to it.
|
|
@@ -51,12 +93,21 @@ function parseArgs(argv) {
|
|
|
51
93
|
|
|
52
94
|
// The transcript is read a line at a time: a long-lived seat's JSONL runs to gigabytes, past the longest string Node can
|
|
53
95
|
// make (about 512 MB), so the whole file is never read into one string.
|
|
54
|
-
|
|
96
|
+
// From a byte offset (a tail packet), the stream starts one byte early and drops its first line: that's the rest of the
|
|
97
|
+
// line the cut fell in, or empty when the cut falls at a line start. It ends at the size recorded when the tail was
|
|
98
|
+
// chosen, so lines appended while it reads stay out of the packet and out of the range its coverage line names.
|
|
99
|
+
async function* readJsonLines(file, start = 0, untilByte = null) {
|
|
55
100
|
if (untilByte === 0) return; // an explicit bound of 0 is an empty prefix; an absent one reads the whole file
|
|
56
101
|
const bounded = Number.isInteger(untilByte) && untilByte > 0 ? { end: untilByte - 1 } : {};
|
|
57
|
-
const
|
|
102
|
+
const range = start ? { start: start - 1, ...bounded } : bounded;
|
|
103
|
+
const lines = createInterface({ input: fs.createReadStream(file, { encoding: "utf8", ...range }), crlfDelay: Infinity });
|
|
58
104
|
let index = 0;
|
|
105
|
+
let skip = start > 0;
|
|
59
106
|
for await (const line of lines) {
|
|
107
|
+
if (skip) {
|
|
108
|
+
skip = false;
|
|
109
|
+
continue;
|
|
110
|
+
}
|
|
60
111
|
if (!line) continue;
|
|
61
112
|
index += 1;
|
|
62
113
|
let record;
|
|
@@ -281,7 +332,7 @@ function discoverDocs(cwd) {
|
|
|
281
332
|
return [...docs].sort();
|
|
282
333
|
}
|
|
283
334
|
|
|
284
|
-
async function analyze(jsonlPath, cwd, staging, untilByte = null) {
|
|
335
|
+
async function analyze(jsonlPath, cwd, staging, start = 0, untilByte = null) {
|
|
285
336
|
const registry = createRegistry();
|
|
286
337
|
const transcript = createTextSink(path.join(staging, "transcript.txt"));
|
|
287
338
|
const narrative = createTextSink(path.join(staging, "transcript-narrative.txt")); // R4: message-turns only (assistant/user text), no tool bodies
|
|
@@ -289,9 +340,11 @@ async function analyze(jsonlPath, cwd, staging, untilByte = null) {
|
|
|
289
340
|
const cwdCounts = new Map();
|
|
290
341
|
let sessionId = null;
|
|
291
342
|
let records = 0;
|
|
343
|
+
let firstTimestamp = null;
|
|
292
344
|
|
|
293
|
-
for await (const record of readJsonLines(jsonlPath, untilByte)) {
|
|
345
|
+
for await (const record of readJsonLines(jsonlPath, start, untilByte)) {
|
|
294
346
|
records += 1;
|
|
347
|
+
if (!firstTimestamp && typeof record.timestamp === "string") firstTimestamp = record.timestamp;
|
|
295
348
|
registry.tick();
|
|
296
349
|
if (record.sessionId || record.session_id) sessionId = record.sessionId ?? record.session_id;
|
|
297
350
|
if (record.cwd) {
|
|
@@ -375,6 +428,8 @@ async function analyze(jsonlPath, cwd, staging, untilByte = null) {
|
|
|
375
428
|
narrativeTokens: Math.round(narrativeLength / 4),
|
|
376
429
|
files: rankedFiles,
|
|
377
430
|
docs: discoverDocs(effectiveCwd),
|
|
431
|
+
// Only a tail packet says what it covers, so a whole-session packet's summary is unchanged.
|
|
432
|
+
...(start ? { coverage: { fromByte: start, bytes: untilByte - start, firstTimestamp } } : {}),
|
|
378
433
|
};
|
|
379
434
|
}
|
|
380
435
|
|
|
@@ -417,6 +472,10 @@ function restoreInstructions(summary, outputPaths) {
|
|
|
417
472
|
lines.push(`- Narrative companion (READ THIS FIRST): \`${outputPaths.narrative}\` (~${summary.narrativeTokens ?? "?"} tokens — message turns only, no tool bodies)`);
|
|
418
473
|
lines.push(`- Touched-file triage: \`${outputPaths.touchedFiles}\``);
|
|
419
474
|
lines.push(`- Working directory inferred: \`${summary.cwd}\``);
|
|
475
|
+
if (summary.coverage) {
|
|
476
|
+
const { fromByte, bytes, firstTimestamp } = summary.coverage;
|
|
477
|
+
lines.push(`- **Coverage: this packet is built from the JSONL's last ${bytes} bytes only** (from byte ${fromByte}${firstTimestamp ? `, first timed record at ${firstTimestamp}` : ""}). Earlier history is in the JSONL itself. Touched files and their counts come from this tail, and a Read whose call is before the cut has no file path. For a whole-session packet, run restore-from-jsonl.mjs without --tail-bytes.`);
|
|
478
|
+
}
|
|
420
479
|
lines.push("");
|
|
421
480
|
lines.push("## Read budget (the restore must leave room for the work)");
|
|
422
481
|
lines.push("");
|
|
@@ -464,7 +523,9 @@ function nowIso() {
|
|
|
464
523
|
function writeOutputs(summary, outRoot, staging) {
|
|
465
524
|
const stamp = nowIso().replace(/[:.]/g, "-");
|
|
466
525
|
const base = path.join(outRoot, `${summary.sessionId ?? "unknown-session"}-${stamp}`);
|
|
467
|
-
|
|
526
|
+
// Owner-only: a packet holds an extract of the conversation.
|
|
527
|
+
fs.mkdirSync(outRoot, { recursive: true, mode: 0o700 });
|
|
528
|
+
fs.mkdirSync(base, { recursive: true, mode: 0o700 });
|
|
468
529
|
|
|
469
530
|
const outputPaths = {
|
|
470
531
|
dir: base,
|
|
@@ -493,8 +554,9 @@ async function main() {
|
|
|
493
554
|
|
|
494
555
|
// The two text files are written while the transcript is read, before the packet's folder is named (its session id
|
|
495
556
|
// comes from the transcript), so they start in a staging folder beside it. Packet readers match `<session id>-*`.
|
|
496
|
-
const outRoot = path.resolve(args.out);
|
|
497
|
-
|
|
557
|
+
const outRoot = path.resolve(args.out ?? defaultOutRoot());
|
|
558
|
+
// Owner-only from its first creation: the staging folder below is made inside it.
|
|
559
|
+
fs.mkdirSync(outRoot, { recursive: true, mode: 0o700 });
|
|
498
560
|
// A handled stop part way still removes the staging folder: SIGTERM (the PreCompact hook's time limit) exits 143, and
|
|
499
561
|
// SIGINT (a person's Ctrl-C on the manual route) exits 130. A stop that can't be handled (SIGKILL) or a failed removal
|
|
500
562
|
// can still leave it.
|
|
@@ -508,8 +570,12 @@ async function main() {
|
|
|
508
570
|
staging = fs.mkdtempSync(path.join(outRoot, ".partial-"));
|
|
509
571
|
let summary;
|
|
510
572
|
let outputPaths;
|
|
573
|
+
// --tail-bytes N reads only the transcript's last N bytes (the PreCompact hook asks for it on a large transcript),
|
|
574
|
+
// counted back from --until-byte when one is given.
|
|
575
|
+
const size = Number.isInteger(args.untilByte) && args.untilByte >= 0 ? args.untilByte : fs.statSync(jsonlPath).size;
|
|
576
|
+
const start = args.tailBytes && args.tailBytes < size ? size - args.tailBytes : 0;
|
|
511
577
|
try {
|
|
512
|
-
summary = await analyze(jsonlPath, cwd, staging, args.untilByte);
|
|
578
|
+
summary = await analyze(jsonlPath, cwd, staging, start, start ? size : args.untilByte);
|
|
513
579
|
outputPaths = writeOutputs(summary, outRoot, staging);
|
|
514
580
|
} finally {
|
|
515
581
|
fs.rmSync(staging, { recursive: true, force: true });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: messaging-the-human
|
|
3
|
-
description: "Use when project policy calls for a human decision or update, a human delivery is pending or failed, or a reply must resume the right work."
|
|
3
|
+
description: "Use when you're about to ask a person something (a question, a choice or an approval), before you use your harness's own question prompt, which shows only in your terminal; and when project policy calls for a human decision or update, a human delivery is pending or failed, or a reply must resume the right work."
|
|
4
4
|
metadata:
|
|
5
5
|
cli_surfaces_referenced:
|
|
6
6
|
- gateway human list
|
|
@@ -1639,12 +1639,12 @@ rig mcp token list [--json]
|
|
|
1639
1639
|
rig mcp token revoke <name>
|
|
1640
1640
|
```
|
|
1641
1641
|
|
|
1642
|
-
The
|
|
1642
|
+
The 40 shipped tools fall into four groups. Over stdio, and over HTTP with no grants, every tool but the person tools is
|
|
1643
1643
|
offered. An HTTP grant offers the work tools; the workspace tools with `--workspace` or `--owner`; and the owner tools only
|
|
1644
1644
|
with `--owner`, which offers every tool but the person tools. Only a grant bound to a person offers the person tools: a
|
|
1645
1645
|
grant service's grant that names its person, or a token-file grant added with `--person`. A local caller and an unbound
|
|
1646
1646
|
grant never get them.
|
|
1647
|
-
- **Work (
|
|
1647
|
+
- **Work (21):** orientation, communication and the durable work loop.
|
|
1648
1648
|
- `rig_whoami`: the seat the server acts as (rig, pod, peers, edges) and the `caller`: authenticated (an HTTP
|
|
1649
1649
|
credential, with its principal) or declared (`OPENRIG_SESSION_NAME` where the server was configured, which nothing
|
|
1650
1650
|
verifies).
|
|
@@ -1668,6 +1668,8 @@ grant never get them.
|
|
|
1668
1668
|
- `rig_human_decision_room`, then `rig_queue_decide`: on your own pending ask to a person, read the decision room of
|
|
1669
1669
|
the mode they have on, and record a decision you made for them inside it. Only the person tools record a person's own
|
|
1670
1670
|
answer, and only for the person a grant names.
|
|
1671
|
+
- `rig_seat_decide_permission`: answers a seat's permission ask (`qitem-runner-permission-…`) with one of its options,
|
|
1672
|
+
as `rig seat decide-permission` does, with `relay`, `personSaid` and `reason`. It needs no seat.
|
|
1671
1673
|
- **Workspace (4):** `rig_slices`, `rig_mission`, `rig_context_pack`, and `rig_context_get` (one context file or
|
|
1672
1674
|
section, as `rig context get` reads it).
|
|
1673
1675
|
- **Owner (13):** `rig_up`, `rig_down`, `rig_snapshot_create`, `rig_snapshot_list`, `rig_discover`, `rig_bind`,
|
|
@@ -6,6 +6,7 @@ import datetime
|
|
|
6
6
|
import json
|
|
7
7
|
import os
|
|
8
8
|
import re
|
|
9
|
+
import shlex
|
|
9
10
|
import shutil
|
|
10
11
|
import subprocess
|
|
11
12
|
import sys
|
|
@@ -203,11 +204,17 @@ NOTES_STATE_HEADINGS = ("current state",)
|
|
|
203
204
|
HEADING = re.compile(r"^(#{1,6})\s+(.*?)\s*#*\s*$")
|
|
204
205
|
DEFAULT_NOTES_MAX_AGE_DAYS = 14
|
|
205
206
|
# Each packet field is bounded on its own; there is no total cap. A row's summary and continuation are one line each,
|
|
206
|
-
# the held and next lists show their newest rows with the full count, and a
|
|
207
|
+
# as are its scope's tags and reasons, the held and next lists show their newest rows with the full count, and a
|
|
208
|
+
# matched section's body is cut at a line.
|
|
207
209
|
FIELD_CHARS = 160
|
|
208
210
|
HELD_SHOWN = 20
|
|
209
211
|
NEXT_SHOWN = 10
|
|
212
|
+
CHOICES_SHOWN = 10
|
|
213
|
+
# A held or pending row's scope as the daemon sends it (RowScope); rows sharing all of it are one choice.
|
|
214
|
+
SCOPE_FIELDS = ("missions", "slice", "missionPath", "slicePath", "unresolved", "missionsRootFallback")
|
|
210
215
|
SECTION_CHARS = 1500
|
|
216
|
+
NOTHING_IN_PROGRESS = ("No in-progress queue row names your work. If you are working from messages, "
|
|
217
|
+
"name the mission they belong to; if you have no current work, say so.")
|
|
211
218
|
|
|
212
219
|
|
|
213
220
|
def one_line(text):
|
|
@@ -528,15 +535,19 @@ def candidate_line(candidate):
|
|
|
528
535
|
return line
|
|
529
536
|
|
|
530
537
|
|
|
531
|
-
def
|
|
532
|
-
"
|
|
533
|
-
|
|
538
|
+
def full_row_pointer(row, cut):
|
|
539
|
+
return f" — full row: rig queue show {row['qitemId']}" if cut and row.get("qitemId") else ""
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
def row_fields(row, *fields, shortened=False):
|
|
543
|
+
"""Each named field as one bounded line, and a pointer to the whole row when any was shortened (or, with shortened,
|
|
544
|
+
when the caller already shortened other text from the same row)."""
|
|
545
|
+
values, cut = [], shortened
|
|
534
546
|
for field, missing in fields:
|
|
535
|
-
value,
|
|
547
|
+
value, field_cut = one_line(row.get(field) or missing)
|
|
536
548
|
values.append(value)
|
|
537
|
-
cut = cut or
|
|
538
|
-
|
|
539
|
-
return values, pointer
|
|
549
|
+
cut = cut or field_cut
|
|
550
|
+
return values, full_row_pointer(row, cut)
|
|
540
551
|
|
|
541
552
|
|
|
542
553
|
def cut_notice(name, state, rows, shown, daemon_cut):
|
|
@@ -548,6 +559,33 @@ def cut_notice(name, state, rows, shown, daemon_cut):
|
|
|
548
559
|
f"`rig queue list --owned --state {state}` has the rest)")
|
|
549
560
|
|
|
550
561
|
|
|
562
|
+
def scope_text(row):
|
|
563
|
+
"""A held or next row's scope as (missions, slice, note, shortened): its mission tags, its slice tag, and a note on
|
|
564
|
+
why they did not resolve here or resolved only under a fallback missions root (so it may be another project's
|
|
565
|
+
mission of the same name). Tags and reasons arrive verbatim, so each is one bounded line, as a row's other fields
|
|
566
|
+
are; shortened says whether any was cut or flattened. A part the row lacks is empty."""
|
|
567
|
+
parts, shortened = [], False
|
|
568
|
+
for value in (", ".join(row.get("missions") or []), row.get("slice"), row.get("unresolved"), row.get("missionsRootFallback")):
|
|
569
|
+
text, cut = one_line(value) if value else ("", False)
|
|
570
|
+
parts.append(text)
|
|
571
|
+
shortened = shortened or cut
|
|
572
|
+
missions, slice_name, unresolved, fallback = parts
|
|
573
|
+
if unresolved:
|
|
574
|
+
note = f" — UNRESOLVED ON THIS HOST: {unresolved}" + (f" (through a fallback missions root: {fallback})" if fallback else "")
|
|
575
|
+
else:
|
|
576
|
+
note = f" — RESOLVED ONLY THROUGH A FALLBACK MISSIONS ROOT: {fallback}" if fallback else ""
|
|
577
|
+
return missions, slice_name, note, shortened
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
def scope_label(row):
|
|
581
|
+
"""(a held or next row's own mission (and slice) tags as a label, with why they did not resolve here if they didn't;
|
|
582
|
+
whether any part was shortened)."""
|
|
583
|
+
missions, slice_name, note, shortened = scope_text(row)
|
|
584
|
+
if not missions:
|
|
585
|
+
return "", False
|
|
586
|
+
return f" [mission: {missions}" + (f" / slice: {slice_name}" if slice_name else "") + "]" + note, shortened
|
|
587
|
+
|
|
588
|
+
|
|
551
589
|
def render_held_and_next(evidence):
|
|
552
590
|
output = []
|
|
553
591
|
per_list = "heldTruncated" in evidence or "nextTruncated" in evidence
|
|
@@ -555,18 +593,18 @@ def render_held_and_next(evidence):
|
|
|
555
593
|
if held:
|
|
556
594
|
output.append("HELD WORK (blocked; this is not next):")
|
|
557
595
|
for row in held[:HELD_SHOWN]:
|
|
596
|
+
label, label_cut = scope_label(row)
|
|
558
597
|
(summary, blocked_on, continuation), pointer = row_fields(
|
|
559
|
-
row, ("summary", "no summary"), ("blockedOn", "unknown"), ("continuation", "none recorded"))
|
|
598
|
+
row, ("summary", "no summary"), ("blockedOn", "unknown"), ("continuation", "none recorded"), shortened=label_cut)
|
|
560
599
|
output.append(f"- {row.get('qitemId') or 'a row'} — {summary} — blocked on {blocked_on} — "
|
|
561
|
-
f"continuation: {continuation}{pointer}")
|
|
600
|
+
f"continuation: {continuation}{label}{pointer}")
|
|
562
601
|
following = evidence.get("next") or []
|
|
563
602
|
if following:
|
|
564
603
|
output.append("POSSIBLE NEXT WORK (pending; no order implied):")
|
|
565
604
|
for row in following[:NEXT_SHOWN]:
|
|
566
|
-
|
|
567
|
-
(summary,), pointer = row_fields(row, ("summary", "no summary"))
|
|
568
|
-
output.append(f"- {row.get('qitemId') or 'a row'} — {summary}"
|
|
569
|
-
+ (f" [mission: {missions}]" if missions else "") + pointer)
|
|
605
|
+
label, label_cut = scope_label(row)
|
|
606
|
+
(summary,), pointer = row_fields(row, ("summary", "no summary"), shortened=label_cut)
|
|
607
|
+
output.append(f"- {row.get('qitemId') or 'a row'} — {summary}{label}{pointer}")
|
|
570
608
|
notices = [
|
|
571
609
|
cut_notice("held", "blocked", held, HELD_SHOWN, per_list and bool(evidence.get("heldTruncated"))),
|
|
572
610
|
cut_notice("next", "pending", following, NEXT_SHOWN, per_list and bool(evidence.get("nextTruncated"))),
|
|
@@ -577,6 +615,106 @@ def render_held_and_next(evidence):
|
|
|
577
615
|
return "\n".join(output)
|
|
578
616
|
|
|
579
617
|
|
|
618
|
+
def scope_choice(row, root, extra_roots):
|
|
619
|
+
"""One named mission (and slice) with its folder and, when it has one, the command that reads it: the agent runs it
|
|
620
|
+
as its own call, without this run's --work-root, so a folder outside workspace.root names the known root holding it.
|
|
621
|
+
The name and reasons are bounded as a row's scope label is, with the row's pointer when shortened; the folder and its
|
|
622
|
+
command keep the exact path."""
|
|
623
|
+
missions, slice_name, note, shortened = scope_text(row)
|
|
624
|
+
where = row.get("slicePath") or row.get("missionPath")
|
|
625
|
+
line = (f"- {missions}" + (f" / {slice_name}" if slice_name else "") + (f" — {where}" if where else "")
|
|
626
|
+
+ note + full_row_pointer(row, shortened))
|
|
627
|
+
if not where:
|
|
628
|
+
return line
|
|
629
|
+
work_root = work_root_for(where, root, extra_roots)
|
|
630
|
+
return f"{line}\n {read_command(where, work_root if work_root != root else None)}"
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
def held_context(evidence, root, depth, failures, extra_roots=(), packet=False):
|
|
634
|
+
"""Nothing in progress: held (blocked) and pending rows are context, never current work. Returns (trace, choices,
|
|
635
|
+
open): the work trace of the one mission every row resolves to (of its slice, when that is the same for every row
|
|
636
|
+
too), or else no trace and lines naming the missions the rows do name, each with the command that reads it, for the
|
|
637
|
+
agent to choose from; open is true when one of them has no folder, so only the generic route can reach it. Missions
|
|
638
|
+
are compared by resolved directory, never by name, and only across the daemon's whole lists: a cut list, a row naming
|
|
639
|
+
no mission, one that did not resolve or one found only under a fallback missions root leaves the choice to the agent.
|
|
640
|
+
Held rows come first only in the listing. A freshly built rig's roster-ready notice naming no mission (the daemon
|
|
641
|
+
marks it openrigNotice) isn't the seat's work toward any mission: it's set aside here, and stays listed. Other rows
|
|
642
|
+
OpenRig sends, such as relayed network work, still participate in the mission choice."""
|
|
643
|
+
held, following = evidence.get("held") or [], evidence.get("next") or []
|
|
644
|
+
notices = sum(1 for row in [*held, *following] if row.get("openrigNotice"))
|
|
645
|
+
held = [row for row in held if not row.get("openrigNotice")]
|
|
646
|
+
following = [row for row in following if not row.get("openrigNotice")]
|
|
647
|
+
rows = [*held, *following]
|
|
648
|
+
named = [row for row in rows if row.get("missions")]
|
|
649
|
+
if not named:
|
|
650
|
+
return None, [], False
|
|
651
|
+
missions = {row.get("missionPath") for row in rows}
|
|
652
|
+
slices = {row.get("slicePath") for row in rows}
|
|
653
|
+
if any(evidence.get(flag) for flag in ("heldTruncated", "nextTruncated", "heldAndNextTruncated")):
|
|
654
|
+
why = "the held or pending list was cut, so rows past the cut may name other work"
|
|
655
|
+
elif len(named) < len(rows):
|
|
656
|
+
why = "a row names no mission"
|
|
657
|
+
elif any("missionPath" not in row for row in named):
|
|
658
|
+
why = "the daemon did not say which folders the rows' missions resolve to"
|
|
659
|
+
elif None in missions:
|
|
660
|
+
why = "a row's mission did not resolve to one directory here"
|
|
661
|
+
elif any(row.get("missionsRootFallback") for row in named):
|
|
662
|
+
why = "a row's mission resolved only through a fallback missions root"
|
|
663
|
+
elif len(missions) > 1:
|
|
664
|
+
why = "the rows name different missions"
|
|
665
|
+
else:
|
|
666
|
+
if len(slices) == 1 and None not in slices:
|
|
667
|
+
start, level = next(iter(slices)), "this slice"
|
|
668
|
+
else:
|
|
669
|
+
start = next(iter(missions))
|
|
670
|
+
level = ("this mission (not every row resolves to one slice, so it stops at the mission)"
|
|
671
|
+
if any(row.get("slice") for row in rows) else "this mission (no slice named)")
|
|
672
|
+
aside = f"; {notices} OpenRig notice{'' if notices == 1 else 's'} set aside" if notices else ""
|
|
673
|
+
note = (f"CONTEXT FROM HELD AND PENDING WORK — nothing is in progress, and every held and pending row "
|
|
674
|
+
f"({len(held)} held, {len(following)} pending{aside}) resolves to {level}. It is context, not your current "
|
|
675
|
+
"work: using it does not resume a task.")
|
|
676
|
+
traced = render_work(Path(start), work_root_for(start, root, extra_roots), depth, failures, packet=packet)
|
|
677
|
+
head, _, rest = traced.partition("\n")
|
|
678
|
+
return "\n".join([head, note, rest]), [], False
|
|
679
|
+
# One choice per scope, in row order; a shortened one points to the first row that names it.
|
|
680
|
+
by_scope = {}
|
|
681
|
+
for row in named:
|
|
682
|
+
by_scope.setdefault(json.dumps([row.get(key) for key in SCOPE_FIELDS]), row)
|
|
683
|
+
choices = [scope_choice(row, root, extra_roots) for row in by_scope.values()]
|
|
684
|
+
more = [f"- … and {len(choices) - CHOICES_SHOWN} more"] if len(choices) > CHOICES_SHOWN else []
|
|
685
|
+
open_choice = any(not (row.get("slicePath") or row.get("missionPath")) for row in named)
|
|
686
|
+
return None, [f"Held and pending work is context, not current work, and does not settle one mission ({why}). "
|
|
687
|
+
"Choosing one does not resume a task. The missions it names, each with the command that reads it:",
|
|
688
|
+
*choices[:CHOICES_SHOWN], *more], open_choice
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
def read_command(folder, work_root=None, child=""):
|
|
692
|
+
"""The command an agent runs as its own call to read a work node's intent. Every actual path in it (this script, the
|
|
693
|
+
root it may ascend to, the folder) is quoted here, exactly once; child is literal text such as the /<mission>
|
|
694
|
+
placeholder the agent fills in."""
|
|
695
|
+
extra_root = f" --work-root {shlex.quote(str(work_root))}" if work_root else ""
|
|
696
|
+
return (f"python3 {shlex.quote(str(Path(__file__).resolve()))} --trees work --packet{extra_root} "
|
|
697
|
+
f"--work-start {shlex.quote(str(folder))}{child}")
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
def work_start_route(missions_root, work_root=None):
|
|
701
|
+
return ["Then read that mission's current intent as text:", f" {read_command(missions_root, work_root, '/<mission>')}"]
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
def selected_project_missions(entry, project):
|
|
705
|
+
"""The daemon's listing of the selected project's missions, used only when its missions root is inside that project."""
|
|
706
|
+
if not isinstance(entry, dict) or not isinstance(entry.get("missionsRoot"), str) or not entry["missionsRoot"]:
|
|
707
|
+
return None
|
|
708
|
+
names = entry.get("names")
|
|
709
|
+
if not isinstance(names, list) or not all(isinstance(name, str) for name in names):
|
|
710
|
+
return None
|
|
711
|
+
missions_root = Path(entry["missionsRoot"]).expanduser().resolve()
|
|
712
|
+
if not under_root(missions_root, Path(project).expanduser().resolve()):
|
|
713
|
+
return None
|
|
714
|
+
return {"project": str(entry.get("project") or Path(project).name), "missionsRoot": str(missions_root),
|
|
715
|
+
"names": names, "truncated": bool(entry.get("truncated"))}
|
|
716
|
+
|
|
717
|
+
|
|
580
718
|
def render_candidates(evidence, root, depth, failures, extra_roots=(), project=None, project_unknown=None):
|
|
581
719
|
"""The work section from labelled queue evidence. One direct, resolved tag is shown as the
|
|
582
720
|
work with its source; anything less certain lists every candidate and asks the agent."""
|
|
@@ -592,12 +730,29 @@ def render_candidates(evidence, root, depth, failures, extra_roots=(), project=N
|
|
|
592
730
|
traced = render_work(start, work_root_for(start, root, extra_roots), depth, failures, packet=True)
|
|
593
731
|
head, _, rest = traced.partition("\n")
|
|
594
732
|
return "\n".join([head, *notes, rest])
|
|
733
|
+
held_trace, held_choices, _ = (held_context(evidence, root, depth, failures, extra_roots, packet=True)
|
|
734
|
+
if not candidates and not unknown else (None, [], False))
|
|
735
|
+
if held_trace:
|
|
736
|
+
return held_trace
|
|
595
737
|
|
|
596
738
|
missions_root = evidence.get("missionsRoot") or str(root / "missions")
|
|
739
|
+
names = evidence.get("missionsOnHost") or []
|
|
740
|
+
names_cut = evidence.get("missionsOnHostTruncated")
|
|
741
|
+
listing = "Missions on this host"
|
|
742
|
+
project_root = None
|
|
743
|
+
# Orienting from the selected project, name its missions under its own root, not workspace.root's. A daemon that
|
|
744
|
+
# predates the field, or an entry whose root isn't inside this project, keeps workspace.root's listing.
|
|
745
|
+
selected = (selected_project_missions(evidence.get("projectMissions"), project)
|
|
746
|
+
if not candidates and not unknown and project else None)
|
|
747
|
+
if selected:
|
|
748
|
+
missions_root, names, names_cut = selected["missionsRoot"], selected["names"], selected["truncated"]
|
|
749
|
+
listing = f"Missions in the selected project ({selected['project']})"
|
|
750
|
+
# The next call is the agent's own, with none of this run's --work-root: name the project root so it can ascend.
|
|
751
|
+
project_root = Path(project).expanduser().resolve()
|
|
597
752
|
output = ["## WORK — name it"]
|
|
598
753
|
if not candidates and not unknown:
|
|
599
|
-
output.append(
|
|
600
|
-
|
|
754
|
+
output.append(NOTHING_IN_PROGRESS)
|
|
755
|
+
output.extend(held_choices)
|
|
601
756
|
elif len(candidates) > 1:
|
|
602
757
|
output.append(f"{len(candidates)} candidates are in flight. Say which mission you are actually working on.")
|
|
603
758
|
else:
|
|
@@ -610,13 +765,9 @@ def render_candidates(evidence, root, depth, failures, extra_roots=(), project=N
|
|
|
610
765
|
for row in unknown:
|
|
611
766
|
(summary,), pointer = row_fields(row, ("summary", "no summary"))
|
|
612
767
|
output.append(f"- {row.get('qitemId') or 'a row'} — {summary}: {row.get('reason')}{pointer}")
|
|
613
|
-
if not candidates:
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
listing = ", ".join(names) + (", …" if evidence.get("missionsOnHostTruncated") else "")
|
|
617
|
-
output.append(f"Missions on this host: {listing}")
|
|
618
|
-
output.append("Then read that mission's current intent as text:")
|
|
619
|
-
output.append(f" python3 {Path(__file__).resolve()} --trees work --packet --work-start {missions_root}/<mission>")
|
|
768
|
+
if not candidates and names:
|
|
769
|
+
output.append(f"{listing}: " + ", ".join(names) + (", …" if names_cut else ""))
|
|
770
|
+
output.extend(work_start_route(missions_root, project_root))
|
|
620
771
|
# Nothing in progress: orient from the seat's selected project, which may live outside
|
|
621
772
|
# workspace.root (#3320), or say why none was selected. Held and next work stay evidence only.
|
|
622
773
|
orient_root = root
|
|
@@ -715,6 +866,7 @@ def main():
|
|
|
715
866
|
parser.add_argument("--check", action="store_true", help="exit nonzero on trace or notes resolution failure; rendered text is unchanged")
|
|
716
867
|
parser.add_argument("--packet", action="store_true", help="carry duties and notes as text by section, with old-notes cues")
|
|
717
868
|
parser.add_argument("--work-candidates", help="labelled work evidence as JSON (a path, or - for stdin), from `rig queue whoami --work-candidates`")
|
|
869
|
+
parser.add_argument("--held-work", help="with --work-basis naming no current baton: the seat's held and pending rows as JSON (a path, or - for stdin), the `heldAndPendingWork` field of `rig queue whoami --json --held-work`; shown as context, never as current work")
|
|
718
870
|
args = parser.parse_args()
|
|
719
871
|
|
|
720
872
|
sections = []
|
|
@@ -741,11 +893,23 @@ def main():
|
|
|
741
893
|
# only a standalone run with neither falls back to inferring from the working directory.
|
|
742
894
|
extra_roots = extra_work_roots(args.work_root)
|
|
743
895
|
explicit = args.work_start or os.environ.get("OPENRIG_REFOCUS_WORK_NODE")
|
|
744
|
-
evidence = None
|
|
896
|
+
evidence = held = None
|
|
745
897
|
if args.work_candidates:
|
|
746
898
|
evidence, error = read_candidates(args.work_candidates)
|
|
747
899
|
if error:
|
|
748
900
|
sections.append(gap(f"## WORK TRACE\nTRACE GAP — {error}"))
|
|
901
|
+
elif args.held_work and not explicit and args.work_basis == NO_CURRENT_BATON_BASIS:
|
|
902
|
+
held, error = read_candidates(args.held_work)
|
|
903
|
+
if error:
|
|
904
|
+
sections.append(gap(f"## WORK TRACE\nTRACE GAP — held and pending {error}"))
|
|
905
|
+
# Nothing in progress: held and pending work as context, traced when it settles one mission, else listed
|
|
906
|
+
# for the agent to choose from above the broad orientation below.
|
|
907
|
+
held_trace, held_choices, open_choice = (held_context(held, root, args.depth, failures, extra_roots, args.packet)
|
|
908
|
+
if held else (None, [], False))
|
|
909
|
+
if held_choices:
|
|
910
|
+
# Each choice with a folder carries its own command; the generic one is only for a mission without one.
|
|
911
|
+
generic = work_start_route(held.get("missionsRoot") or str(root / "missions")) if open_choice else []
|
|
912
|
+
sections.append("\n".join(["## WORK — name it", NOTHING_IN_PROGRESS, *held_choices, *generic]))
|
|
749
913
|
if explicit:
|
|
750
914
|
sections.append(render_work(Path(explicit), work_root_for(explicit, root, extra_roots), args.depth, failures, packet=args.packet))
|
|
751
915
|
elif evidence is not None:
|
|
@@ -753,6 +917,8 @@ def main():
|
|
|
753
917
|
project=args.work_project, project_unknown=args.work_project_unknown))
|
|
754
918
|
elif args.work_candidates:
|
|
755
919
|
pass # the unreadable-evidence gap above is the answer; never fall back to the root
|
|
920
|
+
elif held_trace:
|
|
921
|
+
sections.append(held_trace)
|
|
756
922
|
elif args.work_basis == NO_CURRENT_BATON_BASIS and args.work_project:
|
|
757
923
|
# The seat's selected project, which may live outside workspace.root (#3320).
|
|
758
924
|
project = Path(args.work_project).expanduser().resolve()
|
|
@@ -784,7 +950,7 @@ def main():
|
|
|
784
950
|
start = derive_work_start(root)
|
|
785
951
|
sections.append(render_work(start, root, args.depth, failures, packet=args.packet) if start else
|
|
786
952
|
gap("## WORK TRACE\nTRACE GAP — current work node is unresolved; pass --work-start with a literal absolute path (or configure OPENRIG_REFOCUS_WORK_NODE separately)"))
|
|
787
|
-
held_and_next = render_held_and_next(evidence) if evidence else ""
|
|
953
|
+
held_and_next = render_held_and_next(evidence or held) if evidence or held else ""
|
|
788
954
|
if held_and_next:
|
|
789
955
|
sections.append(held_and_next)
|
|
790
956
|
|