@openrig/cli 0.7.24 → 0.7.26

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.
Files changed (1037) hide show
  1. package/README.md +7 -7
  2. package/daemon/assets/claude-hook-bridge.cjs +151 -37
  3. package/daemon/assets/claude-hook-bridge.d.cts +9 -2
  4. package/daemon/assets/claude-permission-policies.cjs +22 -1
  5. package/daemon/assets/claude-permission-policies.d.cts +2 -0
  6. package/daemon/assets/claude-statusline-context.cjs +14 -0
  7. package/daemon/assets/claude-team-permissions.cjs +54 -6
  8. package/daemon/assets/guidance/openrig-context-entry.md +4 -5
  9. package/daemon/assets/guidance/openrig-start.md +3 -0
  10. package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +2 -2
  11. package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +1 -1
  12. package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
  13. package/daemon/assets/plugins/openrig/README.md +33 -18
  14. package/daemon/assets/plugins/openrig/hooks/scripts/claude-hook-bridge.cjs +151 -37
  15. package/daemon/assets/plugins/openrig/plugin.json +1 -1
  16. package/daemon/assets/plugins/openrig/scripts/run-rig.cjs +16 -13
  17. package/daemon/assets/plugins/openrig/skills/working-with-an-openrig-team/SKILL.md +32 -19
  18. package/daemon/assets/plugins/openrig-codex/.codex-plugin/plugin.json +1 -1
  19. package/daemon/assets/plugins/openrig-codex/hooks/scripts/claude-hook-bridge.cjs +151 -37
  20. package/daemon/assets/plugins/openrig-codex/skills/working-with-an-openrig-team/SKILL.md +32 -19
  21. package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
  22. package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
  23. package/daemon/assets/plugins/openrig-core/hooks/scripts/permission-answer.cjs +3 -2
  24. package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +47 -14
  25. package/daemon/assets/plugins/openrig-core/skills/session-compaction-and-restore/SKILL.md +5 -2
  26. package/daemon/assets/skills/rigs/SKILL.md +99 -34
  27. package/daemon/assets/skills/rigs/references/installing-for-someone.md +1 -1
  28. package/daemon/context-packs/help/help.md +9 -0
  29. package/daemon/context-packs/help/manifest.yaml +1 -1
  30. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  31. package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +179 -25
  32. package/daemon/context-packs/reference/getting-started.md +73 -11
  33. package/daemon/context-packs/reference/manifest.yaml +1 -1
  34. package/daemon/context-packs/reference/rig-spec.md +218 -23
  35. package/daemon/context-packs/reference/whats-new.md +190 -14
  36. package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
  37. package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
  38. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
  39. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
  40. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  41. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  42. package/daemon/context-packs/skills/core/cross-host-rig-commands/SKILL.md +9 -1
  43. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  44. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  45. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
  46. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  47. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  48. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
  49. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
  50. package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
  51. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
  52. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
  53. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
  54. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
  55. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
  56. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
  57. package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
  58. package/daemon/context-packs/skills/core/working-with-an-openrig-team/SKILL.md +32 -19
  59. package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
  60. package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
  61. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
  62. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
  63. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
  64. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
  65. package/daemon/context-packs/skills/openrig-user/SKILL.md +47 -14
  66. package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
  67. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
  68. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  69. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  70. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  71. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  72. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  73. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
  74. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  75. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  76. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  77. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  78. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  79. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
  80. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  81. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
  82. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  83. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
  84. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
  85. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
  86. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
  87. package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
  88. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
  89. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
  90. package/daemon/context-packs/skills/session-compaction-and-restore/SKILL.md +5 -2
  91. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
  92. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
  93. package/daemon/context-packs/world-example/manifest.yaml +1 -1
  94. package/daemon/context-packs/world-public/manifest.yaml +1 -1
  95. package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
  96. package/daemon/dist/adapters/claude-code-adapter.js +25 -8
  97. package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
  98. package/daemon/dist/adapters/claude-resume.d.ts +2 -0
  99. package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
  100. package/daemon/dist/adapters/claude-resume.js +44 -8
  101. package/daemon/dist/adapters/claude-resume.js.map +1 -1
  102. package/daemon/dist/adapters/codex-resume.d.ts +3 -0
  103. package/daemon/dist/adapters/codex-resume.d.ts.map +1 -1
  104. package/daemon/dist/adapters/codex-resume.js +7 -3
  105. package/daemon/dist/adapters/codex-resume.js.map +1 -1
  106. package/daemon/dist/adapters/codex-runtime-adapter.d.ts +49 -4
  107. package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
  108. package/daemon/dist/adapters/codex-runtime-adapter.js +238 -25
  109. package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
  110. package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts +12 -5
  111. package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
  112. package/daemon/dist/adapters/community-harness-runtime-adapter.js +15 -5
  113. package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
  114. package/daemon/dist/adapters/kernel-authority.d.ts +2 -2
  115. package/daemon/dist/adapters/kernel-authority.d.ts.map +1 -1
  116. package/daemon/dist/adapters/kernel-authority.js +5 -3
  117. package/daemon/dist/adapters/kernel-authority.js.map +1 -1
  118. package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
  119. package/daemon/dist/adapters/pi-runner.js +9 -0
  120. package/daemon/dist/adapters/pi-runner.js.map +1 -1
  121. package/daemon/dist/adapters/pi-session-cwd.d.ts +26 -0
  122. package/daemon/dist/adapters/pi-session-cwd.d.ts.map +1 -0
  123. package/daemon/dist/adapters/pi-session-cwd.js +89 -0
  124. package/daemon/dist/adapters/pi-session-cwd.js.map +1 -0
  125. package/daemon/dist/adapters/shell-quote.d.ts +2 -0
  126. package/daemon/dist/adapters/shell-quote.d.ts.map +1 -1
  127. package/daemon/dist/adapters/shell-quote.js +43 -0
  128. package/daemon/dist/adapters/shell-quote.js.map +1 -1
  129. package/daemon/dist/adapters/tmux-credential-env.d.ts +15 -2
  130. package/daemon/dist/adapters/tmux-credential-env.d.ts.map +1 -1
  131. package/daemon/dist/adapters/tmux-credential-env.js +82 -2
  132. package/daemon/dist/adapters/tmux-credential-env.js.map +1 -1
  133. package/daemon/dist/adapters/tmux-exec.d.ts.map +1 -1
  134. package/daemon/dist/adapters/tmux-exec.js +2 -6
  135. package/daemon/dist/adapters/tmux-exec.js.map +1 -1
  136. package/daemon/dist/adapters/tmux.d.ts +31 -1
  137. package/daemon/dist/adapters/tmux.d.ts.map +1 -1
  138. package/daemon/dist/adapters/tmux.js +104 -8
  139. package/daemon/dist/adapters/tmux.js.map +1 -1
  140. package/daemon/dist/attention-surface.d.ts +5 -0
  141. package/daemon/dist/attention-surface.d.ts.map +1 -1
  142. package/daemon/dist/attention-surface.js.map +1 -1
  143. package/daemon/dist/bind-plan-surface.d.ts +3 -0
  144. package/daemon/dist/bind-plan-surface.d.ts.map +1 -0
  145. package/daemon/dist/bind-plan-surface.js +5 -0
  146. package/daemon/dist/bind-plan-surface.js.map +1 -0
  147. package/daemon/dist/build-info.js +3 -3
  148. package/daemon/dist/db/all-migrations.d.ts +4 -1
  149. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  150. package/daemon/dist/db/all-migrations.js +30 -393
  151. package/daemon/dist/db/all-migrations.js.map +1 -1
  152. package/daemon/dist/db/migrations/187_provider_account_refs.d.ts +8 -0
  153. package/daemon/dist/db/migrations/187_provider_account_refs.d.ts.map +1 -0
  154. package/daemon/dist/db/migrations/187_provider_account_refs.js +25 -0
  155. package/daemon/dist/db/migrations/187_provider_account_refs.js.map +1 -0
  156. package/daemon/dist/db/migrations/188_provider_account_assignments.d.ts +14 -0
  157. package/daemon/dist/db/migrations/188_provider_account_assignments.d.ts.map +1 -0
  158. package/daemon/dist/db/migrations/188_provider_account_assignments.js +45 -0
  159. package/daemon/dist/db/migrations/188_provider_account_assignments.js.map +1 -0
  160. package/daemon/dist/db/migrations/191_queue_transfer_activation.d.ts +3 -0
  161. package/daemon/dist/db/migrations/191_queue_transfer_activation.d.ts.map +1 -0
  162. package/daemon/dist/db/migrations/191_queue_transfer_activation.js +49 -0
  163. package/daemon/dist/db/migrations/191_queue_transfer_activation.js.map +1 -0
  164. package/daemon/dist/db/migrations/191_seat_reap_state.d.ts +3 -0
  165. package/daemon/dist/db/migrations/191_seat_reap_state.d.ts.map +1 -0
  166. package/daemon/dist/db/migrations/191_seat_reap_state.js +19 -0
  167. package/daemon/dist/db/migrations/191_seat_reap_state.js.map +1 -0
  168. package/daemon/dist/db/migrations/197_session_agent_activity_hooks.d.ts +3 -0
  169. package/daemon/dist/db/migrations/197_session_agent_activity_hooks.d.ts.map +1 -0
  170. package/daemon/dist/db/migrations/197_session_agent_activity_hooks.js +9 -0
  171. package/daemon/dist/db/migrations/197_session_agent_activity_hooks.js.map +1 -0
  172. package/daemon/dist/db/migrations/200_context_configured_budget.d.ts +3 -0
  173. package/daemon/dist/db/migrations/200_context_configured_budget.d.ts.map +1 -0
  174. package/daemon/dist/db/migrations/200_context_configured_budget.js +5 -0
  175. package/daemon/dist/db/migrations/200_context_configured_budget.js.map +1 -0
  176. package/daemon/dist/db/migrations/200_seat_cold_start_standby_stop.d.ts +3 -0
  177. package/daemon/dist/db/migrations/200_seat_cold_start_standby_stop.d.ts.map +1 -0
  178. package/daemon/dist/db/migrations/200_seat_cold_start_standby_stop.js +5 -0
  179. package/daemon/dist/db/migrations/200_seat_cold_start_standby_stop.js.map +1 -0
  180. package/daemon/dist/db/migrations/200_sessions_earlier_handover_origin.d.ts +11 -0
  181. package/daemon/dist/db/migrations/200_sessions_earlier_handover_origin.d.ts.map +1 -0
  182. package/daemon/dist/db/migrations/200_sessions_earlier_handover_origin.js +34 -0
  183. package/daemon/dist/db/migrations/200_sessions_earlier_handover_origin.js.map +1 -0
  184. package/daemon/dist/db/migrations/201_queue_transitions_archive_actor_index.d.ts +7 -0
  185. package/daemon/dist/db/migrations/201_queue_transitions_archive_actor_index.d.ts.map +1 -0
  186. package/daemon/dist/db/migrations/201_queue_transitions_archive_actor_index.js +12 -0
  187. package/daemon/dist/db/migrations/201_queue_transitions_archive_actor_index.js.map +1 -0
  188. package/daemon/dist/db/migrations/201_roster_event_index.d.ts +4 -0
  189. package/daemon/dist/db/migrations/201_roster_event_index.d.ts.map +1 -0
  190. package/daemon/dist/db/migrations/201_roster_event_index.js +9 -0
  191. package/daemon/dist/db/migrations/201_roster_event_index.js.map +1 -0
  192. package/daemon/dist/db/migrations/202_network_requester_questions.d.ts +4 -0
  193. package/daemon/dist/db/migrations/202_network_requester_questions.d.ts.map +1 -0
  194. package/daemon/dist/db/migrations/202_network_requester_questions.js +10 -0
  195. package/daemon/dist/db/migrations/202_network_requester_questions.js.map +1 -0
  196. package/daemon/dist/db/migrations/203_outbox_runner_receipts_index.d.ts +3 -0
  197. package/daemon/dist/db/migrations/203_outbox_runner_receipts_index.d.ts.map +1 -0
  198. package/daemon/dist/db/migrations/203_outbox_runner_receipts_index.js +22 -0
  199. package/daemon/dist/db/migrations/203_outbox_runner_receipts_index.js.map +1 -0
  200. package/daemon/dist/domain/activity-taxonomy.d.ts +16 -5
  201. package/daemon/dist/domain/activity-taxonomy.d.ts.map +1 -1
  202. package/daemon/dist/domain/activity-taxonomy.js +30 -5
  203. package/daemon/dist/domain/activity-taxonomy.js.map +1 -1
  204. package/daemon/dist/domain/agent-activity-store.d.ts +4 -0
  205. package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
  206. package/daemon/dist/domain/agent-activity-store.js +21 -0
  207. package/daemon/dist/domain/agent-activity-store.js.map +1 -1
  208. package/daemon/dist/domain/agent-images/agent-image-destination.d.ts +15 -0
  209. package/daemon/dist/domain/agent-images/agent-image-destination.d.ts.map +1 -0
  210. package/daemon/dist/domain/agent-images/agent-image-destination.js +79 -0
  211. package/daemon/dist/domain/agent-images/agent-image-destination.js.map +1 -0
  212. package/daemon/dist/domain/agent-images/agent-image-library-service.d.ts.map +1 -1
  213. package/daemon/dist/domain/agent-images/agent-image-library-service.js +9 -1
  214. package/daemon/dist/domain/agent-images/agent-image-library-service.js.map +1 -1
  215. package/daemon/dist/domain/bootstrap-orchestrator.d.ts +4 -3
  216. package/daemon/dist/domain/bootstrap-orchestrator.d.ts.map +1 -1
  217. package/daemon/dist/domain/bootstrap-orchestrator.js +55 -11
  218. package/daemon/dist/domain/bootstrap-orchestrator.js.map +1 -1
  219. package/daemon/dist/domain/bundle-content-routing.d.ts +7 -0
  220. package/daemon/dist/domain/bundle-content-routing.d.ts.map +1 -1
  221. package/daemon/dist/domain/bundle-content-routing.js +20 -15
  222. package/daemon/dist/domain/bundle-content-routing.js.map +1 -1
  223. package/daemon/dist/domain/claude-compaction-enforcer.d.ts +40 -1
  224. package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
  225. package/daemon/dist/domain/claude-compaction-enforcer.js +101 -11
  226. package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
  227. package/daemon/dist/domain/claude-continuation-launch.d.ts +19 -2
  228. package/daemon/dist/domain/claude-continuation-launch.d.ts.map +1 -1
  229. package/daemon/dist/domain/claude-continuation-launch.js +143 -3
  230. package/daemon/dist/domain/claude-continuation-launch.js.map +1 -1
  231. package/daemon/dist/domain/claude-managed-launch.d.ts +22 -5
  232. package/daemon/dist/domain/claude-managed-launch.d.ts.map +1 -1
  233. package/daemon/dist/domain/claude-managed-launch.js +41 -5
  234. package/daemon/dist/domain/claude-managed-launch.js.map +1 -1
  235. package/daemon/dist/domain/claude-permission-rules.d.ts +3 -1
  236. package/daemon/dist/domain/claude-permission-rules.d.ts.map +1 -1
  237. package/daemon/dist/domain/claude-permission-rules.js +8 -7
  238. package/daemon/dist/domain/claude-permission-rules.js.map +1 -1
  239. package/daemon/dist/domain/claude-seat-token.d.ts +25 -1
  240. package/daemon/dist/domain/claude-seat-token.d.ts.map +1 -1
  241. package/daemon/dist/domain/claude-seat-token.js +56 -9
  242. package/daemon/dist/domain/claude-seat-token.js.map +1 -1
  243. package/daemon/dist/domain/codex-auth.d.ts +34 -0
  244. package/daemon/dist/domain/codex-auth.d.ts.map +1 -1
  245. package/daemon/dist/domain/codex-auth.js +212 -0
  246. package/daemon/dist/domain/codex-auth.js.map +1 -1
  247. package/daemon/dist/domain/codex-member-permissions.d.ts +17 -0
  248. package/daemon/dist/domain/codex-member-permissions.d.ts.map +1 -1
  249. package/daemon/dist/domain/codex-member-permissions.js +80 -0
  250. package/daemon/dist/domain/codex-member-permissions.js.map +1 -1
  251. package/daemon/dist/domain/community-harness-launch-result.d.ts +9 -0
  252. package/daemon/dist/domain/community-harness-launch-result.d.ts.map +1 -1
  253. package/daemon/dist/domain/community-harness-launch-result.js +14 -2
  254. package/daemon/dist/domain/community-harness-launch-result.js.map +1 -1
  255. package/daemon/dist/domain/community-harness-presets.d.ts +15 -0
  256. package/daemon/dist/domain/community-harness-presets.d.ts.map +1 -1
  257. package/daemon/dist/domain/community-harness-presets.js +82 -48
  258. package/daemon/dist/domain/community-harness-presets.js.map +1 -1
  259. package/daemon/dist/domain/compaction-restore-notice.d.ts +33 -5
  260. package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -1
  261. package/daemon/dist/domain/compaction-restore-notice.js +221 -48
  262. package/daemon/dist/domain/compaction-restore-notice.js.map +1 -1
  263. package/daemon/dist/domain/context-usage-store.d.ts +1 -0
  264. package/daemon/dist/domain/context-usage-store.d.ts.map +1 -1
  265. package/daemon/dist/domain/context-usage-store.js +34 -3
  266. package/daemon/dist/domain/context-usage-store.js.map +1 -1
  267. package/daemon/dist/domain/crash-cart-detect.d.ts +7 -0
  268. package/daemon/dist/domain/crash-cart-detect.d.ts.map +1 -1
  269. package/daemon/dist/domain/crash-cart-detect.js +10 -5
  270. package/daemon/dist/domain/crash-cart-detect.js.map +1 -1
  271. package/daemon/dist/domain/crash-cart-discovery.d.ts +9 -16
  272. package/daemon/dist/domain/crash-cart-discovery.d.ts.map +1 -1
  273. package/daemon/dist/domain/crash-cart-discovery.js +22 -40
  274. package/daemon/dist/domain/crash-cart-discovery.js.map +1 -1
  275. package/daemon/dist/domain/crash-cart-emit.d.ts +1 -1
  276. package/daemon/dist/domain/crash-cart-emit.d.ts.map +1 -1
  277. package/daemon/dist/domain/crash-cart-emit.js +4 -0
  278. package/daemon/dist/domain/crash-cart-emit.js.map +1 -1
  279. package/daemon/dist/domain/current-park-arm.d.ts +2 -0
  280. package/daemon/dist/domain/current-park-arm.d.ts.map +1 -1
  281. package/daemon/dist/domain/current-park-arm.js +5 -0
  282. package/daemon/dist/domain/current-park-arm.js.map +1 -1
  283. package/daemon/dist/domain/current-work.d.ts +16 -4
  284. package/daemon/dist/domain/current-work.d.ts.map +1 -1
  285. package/daemon/dist/domain/current-work.js +3 -6
  286. package/daemon/dist/domain/current-work.js.map +1 -1
  287. package/daemon/dist/domain/cwd-resolution.d.ts +12 -1
  288. package/daemon/dist/domain/cwd-resolution.d.ts.map +1 -1
  289. package/daemon/dist/domain/cwd-resolution.js +39 -2
  290. package/daemon/dist/domain/cwd-resolution.js.map +1 -1
  291. package/daemon/dist/domain/draft-aware-delivery.d.ts +17 -2
  292. package/daemon/dist/domain/draft-aware-delivery.d.ts.map +1 -1
  293. package/daemon/dist/domain/draft-aware-delivery.js +98 -9
  294. package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
  295. package/daemon/dist/domain/draft-held-reoffer.d.ts +61 -0
  296. package/daemon/dist/domain/draft-held-reoffer.d.ts.map +1 -0
  297. package/daemon/dist/domain/draft-held-reoffer.js +143 -0
  298. package/daemon/dist/domain/draft-held-reoffer.js.map +1 -0
  299. package/daemon/dist/domain/execution-view.d.ts +20 -0
  300. package/daemon/dist/domain/execution-view.d.ts.map +1 -1
  301. package/daemon/dist/domain/execution-view.js +50 -16
  302. package/daemon/dist/domain/execution-view.js.map +1 -1
  303. package/daemon/dist/domain/gateway/destination-resolver.d.ts +10 -2
  304. package/daemon/dist/domain/gateway/destination-resolver.d.ts.map +1 -1
  305. package/daemon/dist/domain/gateway/destination-resolver.js +26 -3
  306. package/daemon/dist/domain/gateway/destination-resolver.js.map +1 -1
  307. package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
  308. package/daemon/dist/domain/gateway/slack/inbound.js +5 -4
  309. package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
  310. package/daemon/dist/domain/gateway/slack/queue-access.js +1 -1
  311. package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
  312. package/daemon/dist/domain/generated-file-hygiene.d.ts.map +1 -1
  313. package/daemon/dist/domain/generated-file-hygiene.js +35 -2
  314. package/daemon/dist/domain/generated-file-hygiene.js.map +1 -1
  315. package/daemon/dist/domain/graph-projection.d.ts +7 -1
  316. package/daemon/dist/domain/graph-projection.d.ts.map +1 -1
  317. package/daemon/dist/domain/graph-projection.js +2 -0
  318. package/daemon/dist/domain/graph-projection.js.map +1 -1
  319. package/daemon/dist/domain/health-context-samples.d.ts +23 -0
  320. package/daemon/dist/domain/health-context-samples.d.ts.map +1 -0
  321. package/daemon/dist/domain/health-context-samples.js +113 -0
  322. package/daemon/dist/domain/health-context-samples.js.map +1 -0
  323. package/daemon/dist/domain/health-detectors.d.ts +3 -0
  324. package/daemon/dist/domain/health-detectors.d.ts.map +1 -1
  325. package/daemon/dist/domain/health-detectors.js +8 -7
  326. package/daemon/dist/domain/health-detectors.js.map +1 -1
  327. package/daemon/dist/domain/home-isolation.d.ts.map +1 -1
  328. package/daemon/dist/domain/home-isolation.js +21 -8
  329. package/daemon/dist/domain/home-isolation.js.map +1 -1
  330. package/daemon/dist/domain/hook-bridge.d.ts +7 -5
  331. package/daemon/dist/domain/hook-bridge.d.ts.map +1 -1
  332. package/daemon/dist/domain/hook-bridge.js +12 -11
  333. package/daemon/dist/domain/hook-bridge.js.map +1 -1
  334. package/daemon/dist/domain/kernel-boot-tracker.d.ts +7 -5
  335. package/daemon/dist/domain/kernel-boot-tracker.d.ts.map +1 -1
  336. package/daemon/dist/domain/kernel-boot-tracker.js +11 -6
  337. package/daemon/dist/domain/kernel-boot-tracker.js.map +1 -1
  338. package/daemon/dist/domain/kernel-boot.d.ts.map +1 -1
  339. package/daemon/dist/domain/kernel-boot.js +6 -2
  340. package/daemon/dist/domain/kernel-boot.js.map +1 -1
  341. package/daemon/dist/domain/kernel-hook-review.d.ts +10 -2
  342. package/daemon/dist/domain/kernel-hook-review.d.ts.map +1 -1
  343. package/daemon/dist/domain/kernel-hook-review.js +18 -4
  344. package/daemon/dist/domain/kernel-hook-review.js.map +1 -1
  345. package/daemon/dist/domain/managed-restore-read-access.d.ts +6 -2
  346. package/daemon/dist/domain/managed-restore-read-access.d.ts.map +1 -1
  347. package/daemon/dist/domain/managed-restore-read-access.js +35 -4
  348. package/daemon/dist/domain/managed-restore-read-access.js.map +1 -1
  349. package/daemon/dist/domain/mission-control/audit-browse.d.ts.map +1 -1
  350. package/daemon/dist/domain/mission-control/audit-browse.js +1 -0
  351. package/daemon/dist/domain/mission-control/audit-browse.js.map +1 -1
  352. package/daemon/dist/domain/mission-control/mission-control-action-log.d.ts +3 -1
  353. package/daemon/dist/domain/mission-control/mission-control-action-log.d.ts.map +1 -1
  354. package/daemon/dist/domain/mission-control/mission-control-action-log.js +7 -0
  355. package/daemon/dist/domain/mission-control/mission-control-action-log.js.map +1 -1
  356. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts +3 -0
  357. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
  358. package/daemon/dist/domain/mission-control/mission-control-write-contract.js +56 -13
  359. package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
  360. package/daemon/dist/domain/mission-control/notification-adapter-from-env.d.ts +8 -0
  361. package/daemon/dist/domain/mission-control/notification-adapter-from-env.d.ts.map +1 -0
  362. package/daemon/dist/domain/mission-control/notification-adapter-from-env.js +17 -0
  363. package/daemon/dist/domain/mission-control/notification-adapter-from-env.js.map +1 -0
  364. package/daemon/dist/domain/model-divergence/codex-thread-homes.d.ts +12 -0
  365. package/daemon/dist/domain/model-divergence/codex-thread-homes.d.ts.map +1 -0
  366. package/daemon/dist/domain/model-divergence/codex-thread-homes.js +19 -0
  367. package/daemon/dist/domain/model-divergence/codex-thread-homes.js.map +1 -0
  368. package/daemon/dist/domain/native-process-arguments.d.ts +6 -3
  369. package/daemon/dist/domain/native-process-arguments.d.ts.map +1 -1
  370. package/daemon/dist/domain/native-process-arguments.js +56 -23
  371. package/daemon/dist/domain/native-process-arguments.js.map +1 -1
  372. package/daemon/dist/domain/native-resume-probe.d.ts +9 -0
  373. package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
  374. package/daemon/dist/domain/native-resume-probe.js +15 -1
  375. package/daemon/dist/domain/native-resume-probe.js.map +1 -1
  376. package/daemon/dist/domain/network/hub-client.d.ts +14 -4
  377. package/daemon/dist/domain/network/hub-client.d.ts.map +1 -1
  378. package/daemon/dist/domain/network/hub-client.js +26 -9
  379. package/daemon/dist/domain/network/hub-client.js.map +1 -1
  380. package/daemon/dist/domain/network/network-connector.d.ts +2 -0
  381. package/daemon/dist/domain/network/network-connector.d.ts.map +1 -1
  382. package/daemon/dist/domain/network/network-connector.js +162 -16
  383. package/daemon/dist/domain/network/network-connector.js.map +1 -1
  384. package/daemon/dist/domain/network/network-requests.d.ts +4 -1
  385. package/daemon/dist/domain/network/network-requests.d.ts.map +1 -1
  386. package/daemon/dist/domain/network/network-requests.js +141 -14
  387. package/daemon/dist/domain/network/network-requests.js.map +1 -1
  388. package/daemon/dist/domain/node-inventory.d.ts +47 -0
  389. package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
  390. package/daemon/dist/domain/node-inventory.js +270 -158
  391. package/daemon/dist/domain/node-inventory.js.map +1 -1
  392. package/daemon/dist/domain/node-launcher.d.ts +1 -0
  393. package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
  394. package/daemon/dist/domain/node-launcher.js +13 -5
  395. package/daemon/dist/domain/node-launcher.js.map +1 -1
  396. package/daemon/dist/domain/outbox-handler.d.ts +66 -0
  397. package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
  398. package/daemon/dist/domain/outbox-handler.js +117 -8
  399. package/daemon/dist/domain/outbox-handler.js.map +1 -1
  400. package/daemon/dist/domain/pane-cutover.d.ts +6 -2
  401. package/daemon/dist/domain/pane-cutover.d.ts.map +1 -1
  402. package/daemon/dist/domain/pane-cutover.js +14 -4
  403. package/daemon/dist/domain/pane-cutover.js.map +1 -1
  404. package/daemon/dist/domain/parked-owner-escalation.d.ts +1 -0
  405. package/daemon/dist/domain/parked-owner-escalation.d.ts.map +1 -1
  406. package/daemon/dist/domain/parked-owner-escalation.js +3 -1
  407. package/daemon/dist/domain/parked-owner-escalation.js.map +1 -1
  408. package/daemon/dist/domain/parked-query.js +1 -1
  409. package/daemon/dist/domain/parked-query.js.map +1 -1
  410. package/daemon/dist/domain/permission-account.d.ts.map +1 -1
  411. package/daemon/dist/domain/permission-account.js +20 -1
  412. package/daemon/dist/domain/permission-account.js.map +1 -1
  413. package/daemon/dist/domain/policies/idle-gate-qitem.d.ts +1 -0
  414. package/daemon/dist/domain/policies/idle-gate-qitem.d.ts.map +1 -1
  415. package/daemon/dist/domain/policies/idle-gate-qitem.js +1 -0
  416. package/daemon/dist/domain/policies/idle-gate-qitem.js.map +1 -1
  417. package/daemon/dist/domain/policies/parked-owner-consumer.d.ts +21 -0
  418. package/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -1
  419. package/daemon/dist/domain/policies/parked-owner-consumer.js +185 -26
  420. package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
  421. package/daemon/dist/domain/policies/seat-pool.d.ts +2 -1
  422. package/daemon/dist/domain/policies/seat-pool.d.ts.map +1 -1
  423. package/daemon/dist/domain/policies/seat-pool.js.map +1 -1
  424. package/daemon/dist/domain/policies/workflow-keepalive.d.ts +1 -0
  425. package/daemon/dist/domain/policies/workflow-keepalive.d.ts.map +1 -1
  426. package/daemon/dist/domain/policies/workflow-keepalive.js +4 -1
  427. package/daemon/dist/domain/policies/workflow-keepalive.js.map +1 -1
  428. package/daemon/dist/domain/profile-resolver.d.ts +2 -0
  429. package/daemon/dist/domain/profile-resolver.d.ts.map +1 -1
  430. package/daemon/dist/domain/profile-resolver.js +10 -4
  431. package/daemon/dist/domain/profile-resolver.js.map +1 -1
  432. package/daemon/dist/domain/project-lifecycle-compiler.d.ts.map +1 -1
  433. package/daemon/dist/domain/project-lifecycle-compiler.js +35 -1
  434. package/daemon/dist/domain/project-lifecycle-compiler.js.map +1 -1
  435. package/daemon/dist/domain/proof/judgments.d.ts +7 -0
  436. package/daemon/dist/domain/proof/judgments.d.ts.map +1 -1
  437. package/daemon/dist/domain/proof/judgments.js +18 -10
  438. package/daemon/dist/domain/proof/judgments.js.map +1 -1
  439. package/daemon/dist/domain/provider/assignment-apply.d.ts +85 -0
  440. package/daemon/dist/domain/provider/assignment-apply.d.ts.map +1 -0
  441. package/daemon/dist/domain/provider/assignment-apply.js +270 -0
  442. package/daemon/dist/domain/provider/assignment-apply.js.map +1 -0
  443. package/daemon/dist/domain/provider/assignment-plan.d.ts +150 -0
  444. package/daemon/dist/domain/provider/assignment-plan.d.ts.map +1 -0
  445. package/daemon/dist/domain/provider/assignment-plan.js +218 -0
  446. package/daemon/dist/domain/provider/assignment-plan.js.map +1 -0
  447. package/daemon/dist/domain/provider/claude-seat-switch.d.ts +1 -1
  448. package/daemon/dist/domain/provider/claude-seat-switch.d.ts.map +1 -1
  449. package/daemon/dist/domain/provider/claude-seat-switch.js +37 -6
  450. package/daemon/dist/domain/provider/claude-seat-switch.js.map +1 -1
  451. package/daemon/dist/domain/provider/provider-account-assignments.d.ts +64 -0
  452. package/daemon/dist/domain/provider/provider-account-assignments.d.ts.map +1 -0
  453. package/daemon/dist/domain/provider/provider-account-assignments.js +75 -0
  454. package/daemon/dist/domain/provider/provider-account-assignments.js.map +1 -0
  455. package/daemon/dist/domain/provider/provider-account-refs.d.ts +91 -0
  456. package/daemon/dist/domain/provider/provider-account-refs.d.ts.map +1 -0
  457. package/daemon/dist/domain/provider/provider-account-refs.js +164 -0
  458. package/daemon/dist/domain/provider/provider-account-refs.js.map +1 -0
  459. package/daemon/dist/domain/provider/provider-collect.d.ts +3 -1
  460. package/daemon/dist/domain/provider/provider-collect.d.ts.map +1 -1
  461. package/daemon/dist/domain/provider/provider-collect.js +2 -0
  462. package/daemon/dist/domain/provider/provider-collect.js.map +1 -1
  463. package/daemon/dist/domain/provider/provider-service-impl.d.ts +43 -1
  464. package/daemon/dist/domain/provider/provider-service-impl.d.ts.map +1 -1
  465. package/daemon/dist/domain/provider/provider-service-impl.js +376 -20
  466. package/daemon/dist/domain/provider/provider-service-impl.js.map +1 -1
  467. package/daemon/dist/domain/provider/provider-service.d.ts +82 -6
  468. package/daemon/dist/domain/provider/provider-service.d.ts.map +1 -1
  469. package/daemon/dist/domain/provider/provider-types.d.ts +40 -1
  470. package/daemon/dist/domain/provider/provider-types.d.ts.map +1 -1
  471. package/daemon/dist/domain/provider/usage-across-hosts.d.ts.map +1 -1
  472. package/daemon/dist/domain/provider/usage-across-hosts.js +13 -1
  473. package/daemon/dist/domain/provider/usage-across-hosts.js.map +1 -1
  474. package/daemon/dist/domain/ps-projection.d.ts +5 -3
  475. package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
  476. package/daemon/dist/domain/ps-projection.js +10 -3
  477. package/daemon/dist/domain/ps-projection.js.map +1 -1
  478. package/daemon/dist/domain/queue-display.d.ts +7 -0
  479. package/daemon/dist/domain/queue-display.d.ts.map +1 -0
  480. package/daemon/dist/domain/queue-display.js +20 -0
  481. package/daemon/dist/domain/queue-display.js.map +1 -0
  482. package/daemon/dist/domain/queue-owner.d.ts +4 -2
  483. package/daemon/dist/domain/queue-owner.d.ts.map +1 -1
  484. package/daemon/dist/domain/queue-owner.js +7 -5
  485. package/daemon/dist/domain/queue-owner.js.map +1 -1
  486. package/daemon/dist/domain/queue-repository.d.ts +104 -24
  487. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  488. package/daemon/dist/domain/queue-repository.js +600 -89
  489. package/daemon/dist/domain/queue-repository.js.map +1 -1
  490. package/daemon/dist/domain/queue-stuck-sweep.d.ts +4 -0
  491. package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
  492. package/daemon/dist/domain/queue-stuck-sweep.js +1890 -1817
  493. package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
  494. package/daemon/dist/domain/queue-transfer-activation.d.ts +28 -0
  495. package/daemon/dist/domain/queue-transfer-activation.d.ts.map +1 -0
  496. package/daemon/dist/domain/queue-transfer-activation.js +187 -0
  497. package/daemon/dist/domain/queue-transfer-activation.js.map +1 -0
  498. package/daemon/dist/domain/queue-transfer-mapping.d.ts +31 -0
  499. package/daemon/dist/domain/queue-transfer-mapping.d.ts.map +1 -0
  500. package/daemon/dist/domain/queue-transfer-mapping.js +33 -0
  501. package/daemon/dist/domain/queue-transfer-mapping.js.map +1 -0
  502. package/daemon/dist/domain/queue-transfer-operation.d.ts +24 -0
  503. package/daemon/dist/domain/queue-transfer-operation.d.ts.map +1 -0
  504. package/daemon/dist/domain/queue-transfer-operation.js +41 -0
  505. package/daemon/dist/domain/queue-transfer-operation.js.map +1 -0
  506. package/daemon/dist/domain/queue-transfer-parse.d.ts +8 -0
  507. package/daemon/dist/domain/queue-transfer-parse.d.ts.map +1 -1
  508. package/daemon/dist/domain/queue-transfer-parse.js +16 -6
  509. package/daemon/dist/domain/queue-transfer-parse.js.map +1 -1
  510. package/daemon/dist/domain/queue-transfer-records.d.ts +160 -0
  511. package/daemon/dist/domain/queue-transfer-records.d.ts.map +1 -0
  512. package/daemon/dist/domain/queue-transfer-records.js +94 -0
  513. package/daemon/dist/domain/queue-transfer-records.js.map +1 -0
  514. package/daemon/dist/domain/queue-transfer-recovery.d.ts +40 -0
  515. package/daemon/dist/domain/queue-transfer-recovery.d.ts.map +1 -0
  516. package/daemon/dist/domain/queue-transfer-recovery.js +136 -0
  517. package/daemon/dist/domain/queue-transfer-recovery.js.map +1 -0
  518. package/daemon/dist/domain/queue-transfer-relinquish.d.ts +70 -0
  519. package/daemon/dist/domain/queue-transfer-relinquish.d.ts.map +1 -0
  520. package/daemon/dist/domain/queue-transfer-relinquish.js +204 -0
  521. package/daemon/dist/domain/queue-transfer-relinquish.js.map +1 -0
  522. package/daemon/dist/domain/queue-transfer-review.d.ts +1 -0
  523. package/daemon/dist/domain/queue-transfer-review.d.ts.map +1 -1
  524. package/daemon/dist/domain/queue-transfer-review.js +15 -13
  525. package/daemon/dist/domain/queue-transfer-review.js.map +1 -1
  526. package/daemon/dist/domain/queue-transfer-staging.d.ts +14 -0
  527. package/daemon/dist/domain/queue-transfer-staging.d.ts.map +1 -1
  528. package/daemon/dist/domain/queue-transfer-staging.js +9 -1
  529. package/daemon/dist/domain/queue-transfer-staging.js.map +1 -1
  530. package/daemon/dist/domain/queue-transfer-write.d.ts +14 -0
  531. package/daemon/dist/domain/queue-transfer-write.d.ts.map +1 -0
  532. package/daemon/dist/domain/queue-transfer-write.js +42 -0
  533. package/daemon/dist/domain/queue-transfer-write.js.map +1 -0
  534. package/daemon/dist/domain/queue-transition-log.d.ts +8 -0
  535. package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
  536. package/daemon/dist/domain/queue-transition-log.js +27 -14
  537. package/daemon/dist/domain/queue-transition-log.js.map +1 -1
  538. package/daemon/dist/domain/queue-waiting.d.ts +10 -1
  539. package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
  540. package/daemon/dist/domain/queue-waiting.js +20 -14
  541. package/daemon/dist/domain/queue-waiting.js.map +1 -1
  542. package/daemon/dist/domain/queue-wake-ladder.d.ts +10 -3
  543. package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
  544. package/daemon/dist/domain/queue-wake-ladder.js +60 -23
  545. package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
  546. package/daemon/dist/domain/queue-wake-repository.d.ts +1 -0
  547. package/daemon/dist/domain/queue-wake-repository.d.ts.map +1 -1
  548. package/daemon/dist/domain/queue-wake-repository.js +21 -19
  549. package/daemon/dist/domain/queue-wake-repository.js.map +1 -1
  550. package/daemon/dist/domain/receiver-context.d.ts +3 -2
  551. package/daemon/dist/domain/receiver-context.d.ts.map +1 -1
  552. package/daemon/dist/domain/receiver-context.js +5 -4
  553. package/daemon/dist/domain/receiver-context.js.map +1 -1
  554. package/daemon/dist/domain/reconciler.d.ts +2 -0
  555. package/daemon/dist/domain/reconciler.d.ts.map +1 -1
  556. package/daemon/dist/domain/reconciler.js +17 -1
  557. package/daemon/dist/domain/reconciler.js.map +1 -1
  558. package/daemon/dist/domain/relayed-answers.d.ts +1 -0
  559. package/daemon/dist/domain/relayed-answers.d.ts.map +1 -1
  560. package/daemon/dist/domain/relayed-answers.js.map +1 -1
  561. package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
  562. package/daemon/dist/domain/restore-check-service.js +9 -3
  563. package/daemon/dist/domain/restore-check-service.js.map +1 -1
  564. package/daemon/dist/domain/restore-orchestrator.d.ts +7 -0
  565. package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
  566. package/daemon/dist/domain/restore-orchestrator.js +54 -14
  567. package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
  568. package/daemon/dist/domain/return-route.d.ts +4 -0
  569. package/daemon/dist/domain/return-route.d.ts.map +1 -1
  570. package/daemon/dist/domain/return-route.js +13 -0
  571. package/daemon/dist/domain/return-route.js.map +1 -1
  572. package/daemon/dist/domain/rig-mode/operating-posture.d.ts +3 -0
  573. package/daemon/dist/domain/rig-mode/operating-posture.d.ts.map +1 -1
  574. package/daemon/dist/domain/rig-mode/operating-posture.js +27 -8
  575. package/daemon/dist/domain/rig-mode/operating-posture.js.map +1 -1
  576. package/daemon/dist/domain/rig-status-compose.d.ts +3 -0
  577. package/daemon/dist/domain/rig-status-compose.d.ts.map +1 -1
  578. package/daemon/dist/domain/rig-status-compose.js +4 -1
  579. package/daemon/dist/domain/rig-status-compose.js.map +1 -1
  580. package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
  581. package/daemon/dist/domain/rig-teardown.js +3 -2
  582. package/daemon/dist/domain/rig-teardown.js.map +1 -1
  583. package/daemon/dist/domain/rigspec-exporter.d.ts +2 -0
  584. package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
  585. package/daemon/dist/domain/rigspec-exporter.js +38 -2
  586. package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
  587. package/daemon/dist/domain/rigspec-instantiator.d.ts +4 -1
  588. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  589. package/daemon/dist/domain/rigspec-instantiator.js +32 -13
  590. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  591. package/daemon/dist/domain/rigspec-preflight.d.ts +3 -0
  592. package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
  593. package/daemon/dist/domain/rigspec-preflight.js +25 -7
  594. package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
  595. package/daemon/dist/domain/roster-ready-notice.d.ts +1 -1
  596. package/daemon/dist/domain/roster-ready-notice.d.ts.map +1 -1
  597. package/daemon/dist/domain/roster-ready-notice.js +2 -1
  598. package/daemon/dist/domain/roster-ready-notice.js.map +1 -1
  599. package/daemon/dist/domain/runner-permissions.d.ts +3 -2
  600. package/daemon/dist/domain/runner-permissions.d.ts.map +1 -1
  601. package/daemon/dist/domain/runner-permissions.js +30 -19
  602. package/daemon/dist/domain/runner-permissions.js.map +1 -1
  603. package/daemon/dist/domain/runtime-adapter.d.ts +2 -0
  604. package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
  605. package/daemon/dist/domain/runtime-adapter.js.map +1 -1
  606. package/daemon/dist/domain/scope/manifest-editor.d.ts +35 -0
  607. package/daemon/dist/domain/scope/manifest-editor.d.ts.map +1 -0
  608. package/daemon/dist/domain/scope/manifest-editor.js +197 -0
  609. package/daemon/dist/domain/scope/manifest-editor.js.map +1 -0
  610. package/daemon/dist/domain/scope/mission-frontmatter.d.ts +9 -0
  611. package/daemon/dist/domain/scope/mission-frontmatter.d.ts.map +1 -0
  612. package/daemon/dist/domain/scope/mission-frontmatter.js +36 -0
  613. package/daemon/dist/domain/scope/mission-frontmatter.js.map +1 -0
  614. package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -1
  615. package/daemon/dist/domain/seat-activity-service.js +53 -20
  616. package/daemon/dist/domain/seat-activity-service.js.map +1 -1
  617. package/daemon/dist/domain/seat-cold-start.d.ts +8 -2
  618. package/daemon/dist/domain/seat-cold-start.d.ts.map +1 -1
  619. package/daemon/dist/domain/seat-cold-start.js +75 -19
  620. package/daemon/dist/domain/seat-cold-start.js.map +1 -1
  621. package/daemon/dist/domain/seat-delivery-guard.d.ts +6 -1
  622. package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
  623. package/daemon/dist/domain/seat-delivery-guard.js +23 -2
  624. package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
  625. package/daemon/dist/domain/seat-evidence.d.ts +13 -0
  626. package/daemon/dist/domain/seat-evidence.d.ts.map +1 -0
  627. package/daemon/dist/domain/seat-evidence.js +29 -0
  628. package/daemon/dist/domain/seat-evidence.js.map +1 -0
  629. package/daemon/dist/domain/seat-handover-service.d.ts +5 -1
  630. package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
  631. package/daemon/dist/domain/seat-handover-service.js +49 -35
  632. package/daemon/dist/domain/seat-handover-service.js.map +1 -1
  633. package/daemon/dist/domain/seat-lifecycle-service.d.ts +26 -6
  634. package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
  635. package/daemon/dist/domain/seat-lifecycle-service.js +108 -17
  636. package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
  637. package/daemon/dist/domain/seat-pool-dispatch-guard.d.ts +28 -0
  638. package/daemon/dist/domain/seat-pool-dispatch-guard.d.ts.map +1 -0
  639. package/daemon/dist/domain/seat-pool-dispatch-guard.js +123 -0
  640. package/daemon/dist/domain/seat-pool-dispatch-guard.js.map +1 -0
  641. package/daemon/dist/domain/seat-pool-executor.d.ts +64 -3
  642. package/daemon/dist/domain/seat-pool-executor.d.ts.map +1 -1
  643. package/daemon/dist/domain/seat-pool-executor.js +993 -102
  644. package/daemon/dist/domain/seat-pool-executor.js.map +1 -1
  645. package/daemon/dist/domain/seat-pool-slots.d.ts +90 -2
  646. package/daemon/dist/domain/seat-pool-slots.d.ts.map +1 -1
  647. package/daemon/dist/domain/seat-pool-slots.js +88 -3
  648. package/daemon/dist/domain/seat-pool-slots.js.map +1 -1
  649. package/daemon/dist/domain/seat-pool-spec.d.ts +4 -1
  650. package/daemon/dist/domain/seat-pool-spec.d.ts.map +1 -1
  651. package/daemon/dist/domain/seat-pool-spec.js +14 -2
  652. package/daemon/dist/domain/seat-pool-spec.js.map +1 -1
  653. package/daemon/dist/domain/seat-reaper-eligibility.d.ts +34 -0
  654. package/daemon/dist/domain/seat-reaper-eligibility.d.ts.map +1 -0
  655. package/daemon/dist/domain/seat-reaper-eligibility.js +30 -0
  656. package/daemon/dist/domain/seat-reaper-eligibility.js.map +1 -0
  657. package/daemon/dist/domain/seat-reaper-events.d.ts +31 -0
  658. package/daemon/dist/domain/seat-reaper-events.d.ts.map +1 -0
  659. package/daemon/dist/domain/seat-reaper-events.js +2 -0
  660. package/daemon/dist/domain/seat-reaper-events.js.map +1 -0
  661. package/daemon/dist/domain/seat-reaper-service.d.ts +59 -0
  662. package/daemon/dist/domain/seat-reaper-service.d.ts.map +1 -0
  663. package/daemon/dist/domain/seat-reaper-service.js +311 -0
  664. package/daemon/dist/domain/seat-reaper-service.js.map +1 -0
  665. package/daemon/dist/domain/seat-reaper-settings.d.ts +14 -0
  666. package/daemon/dist/domain/seat-reaper-settings.d.ts.map +1 -0
  667. package/daemon/dist/domain/seat-reaper-settings.js +32 -0
  668. package/daemon/dist/domain/seat-reaper-settings.js.map +1 -0
  669. package/daemon/dist/domain/seat-reaper-store.d.ts +19 -0
  670. package/daemon/dist/domain/seat-reaper-store.d.ts.map +1 -0
  671. package/daemon/dist/domain/seat-reaper-store.js +45 -0
  672. package/daemon/dist/domain/seat-reaper-store.js.map +1 -0
  673. package/daemon/dist/domain/seat-reaper-workspace.d.ts +4 -0
  674. package/daemon/dist/domain/seat-reaper-workspace.d.ts.map +1 -0
  675. package/daemon/dist/domain/seat-reaper-workspace.js +43 -0
  676. package/daemon/dist/domain/seat-reaper-workspace.js.map +1 -0
  677. package/daemon/dist/domain/seat-restart-in-place.d.ts +11 -3
  678. package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
  679. package/daemon/dist/domain/seat-restart-in-place.js +39 -48
  680. package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
  681. package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
  682. package/daemon/dist/domain/seat-runtime-switch-service.js +5 -7
  683. package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
  684. package/daemon/dist/domain/seat-skill-storage.d.ts.map +1 -1
  685. package/daemon/dist/domain/seat-skill-storage.js +27 -5
  686. package/daemon/dist/domain/seat-skill-storage.js.map +1 -1
  687. package/daemon/dist/domain/seat-standby.d.ts +13 -0
  688. package/daemon/dist/domain/seat-standby.d.ts.map +1 -0
  689. package/daemon/dist/domain/seat-standby.js +21 -0
  690. package/daemon/dist/domain/seat-standby.js.map +1 -0
  691. package/daemon/dist/domain/seat-startup-text.d.ts +159 -0
  692. package/daemon/dist/domain/seat-startup-text.d.ts.map +1 -0
  693. package/daemon/dist/domain/seat-startup-text.js +200 -0
  694. package/daemon/dist/domain/seat-startup-text.js.map +1 -0
  695. package/daemon/dist/domain/seat-status-service.d.ts +18 -0
  696. package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
  697. package/daemon/dist/domain/seat-status-service.js +25 -5
  698. package/daemon/dist/domain/seat-status-service.js.map +1 -1
  699. package/daemon/dist/domain/seat-structural-activity-service.d.ts +7 -0
  700. package/daemon/dist/domain/seat-structural-activity-service.d.ts.map +1 -1
  701. package/daemon/dist/domain/seat-structural-activity-service.js +16 -1
  702. package/daemon/dist/domain/seat-structural-activity-service.js.map +1 -1
  703. package/daemon/dist/domain/session-registry.d.ts +15 -3
  704. package/daemon/dist/domain/session-registry.d.ts.map +1 -1
  705. package/daemon/dist/domain/session-registry.js +52 -5
  706. package/daemon/dist/domain/session-registry.js.map +1 -1
  707. package/daemon/dist/domain/session-transport.d.ts +12 -5
  708. package/daemon/dist/domain/session-transport.d.ts.map +1 -1
  709. package/daemon/dist/domain/session-transport.js +129 -18
  710. package/daemon/dist/domain/session-transport.js.map +1 -1
  711. package/daemon/dist/domain/shared-conversation.d.ts.map +1 -1
  712. package/daemon/dist/domain/shared-conversation.js +3 -1
  713. package/daemon/dist/domain/shared-conversation.js.map +1 -1
  714. package/daemon/dist/domain/slices/slice-indexer.d.ts +2 -2
  715. package/daemon/dist/domain/slices/slice-indexer.d.ts.map +1 -1
  716. package/daemon/dist/domain/slices/slice-indexer.js +4 -15
  717. package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
  718. package/daemon/dist/domain/snapshot-capture.d.ts +4 -1
  719. package/daemon/dist/domain/snapshot-capture.d.ts.map +1 -1
  720. package/daemon/dist/domain/snapshot-capture.js +14 -18
  721. package/daemon/dist/domain/snapshot-capture.js.map +1 -1
  722. package/daemon/dist/domain/snapshot-repository.d.ts +37 -0
  723. package/daemon/dist/domain/snapshot-repository.d.ts.map +1 -1
  724. package/daemon/dist/domain/snapshot-repository.js +68 -0
  725. package/daemon/dist/domain/snapshot-repository.js.map +1 -1
  726. package/daemon/dist/domain/startup-orchestrator.d.ts +8 -20
  727. package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
  728. package/daemon/dist/domain/startup-orchestrator.js +94 -27
  729. package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
  730. package/daemon/dist/domain/startup-submission-evidence.d.ts +4 -1
  731. package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
  732. package/daemon/dist/domain/startup-submission-evidence.js +12 -1
  733. package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
  734. package/daemon/dist/domain/successor-session-launcher.d.ts +9 -5
  735. package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
  736. package/daemon/dist/domain/successor-session-launcher.js +17 -6
  737. package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
  738. package/daemon/dist/domain/terminal/earlier-tile-attach-0724.d.ts +2 -0
  739. package/daemon/dist/domain/terminal/earlier-tile-attach-0724.d.ts.map +1 -0
  740. package/daemon/dist/domain/terminal/earlier-tile-attach-0724.js +54 -0
  741. package/daemon/dist/domain/terminal/earlier-tile-attach-0724.js.map +1 -0
  742. package/daemon/dist/domain/terminal/herdr-app-provider.d.ts +28 -3
  743. package/daemon/dist/domain/terminal/herdr-app-provider.d.ts.map +1 -1
  744. package/daemon/dist/domain/terminal/herdr-app-provider.js +216 -52
  745. package/daemon/dist/domain/terminal/herdr-app-provider.js.map +1 -1
  746. package/daemon/dist/domain/terminal/herdr-app-state.d.ts +7 -2
  747. package/daemon/dist/domain/terminal/herdr-app-state.d.ts.map +1 -1
  748. package/daemon/dist/domain/terminal/herdr-app-state.js.map +1 -1
  749. package/daemon/dist/domain/terminal/terminal-provider.d.ts +17 -0
  750. package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
  751. package/daemon/dist/domain/terminal/tile-attach.d.ts +4 -4
  752. package/daemon/dist/domain/terminal/tile-attach.d.ts.map +1 -1
  753. package/daemon/dist/domain/terminal/tile-attach.js +14 -8
  754. package/daemon/dist/domain/terminal/tile-attach.js.map +1 -1
  755. package/daemon/dist/domain/types.d.ts +71 -4
  756. package/daemon/dist/domain/types.d.ts.map +1 -1
  757. package/daemon/dist/domain/types.js.map +1 -1
  758. package/daemon/dist/domain/usage-samples-store.d.ts.map +1 -1
  759. package/daemon/dist/domain/usage-samples-store.js.map +1 -1
  760. package/daemon/dist/domain/user-settings/settings-store.d.ts +1 -1
  761. package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
  762. package/daemon/dist/domain/user-settings/settings-store.js +45 -2
  763. package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
  764. package/daemon/dist/domain/view-projector.d.ts.map +1 -1
  765. package/daemon/dist/domain/view-projector.js +5 -2
  766. package/daemon/dist/domain/view-projector.js.map +1 -1
  767. package/daemon/dist/domain/watchdog-delivery.d.ts +3 -0
  768. package/daemon/dist/domain/watchdog-delivery.d.ts.map +1 -1
  769. package/daemon/dist/domain/watchdog-delivery.js +26 -4
  770. package/daemon/dist/domain/watchdog-delivery.js.map +1 -1
  771. package/daemon/dist/domain/watchdog-history-log.d.ts +10 -0
  772. package/daemon/dist/domain/watchdog-history-log.d.ts.map +1 -1
  773. package/daemon/dist/domain/watchdog-history-log.js +35 -1
  774. package/daemon/dist/domain/watchdog-history-log.js.map +1 -1
  775. package/daemon/dist/domain/watchdog-job-update.d.ts.map +1 -1
  776. package/daemon/dist/domain/watchdog-job-update.js +29 -4
  777. package/daemon/dist/domain/watchdog-job-update.js.map +1 -1
  778. package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
  779. package/daemon/dist/domain/watchdog-policy-engine.js +4 -1
  780. package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
  781. package/daemon/dist/domain/watchdog-scheduler.d.ts +4 -0
  782. package/daemon/dist/domain/watchdog-scheduler.d.ts.map +1 -1
  783. package/daemon/dist/domain/watchdog-scheduler.js +14 -0
  784. package/daemon/dist/domain/watchdog-scheduler.js.map +1 -1
  785. package/daemon/dist/domain/workflow-role-context.d.ts.map +1 -1
  786. package/daemon/dist/domain/workflow-role-context.js +1 -0
  787. package/daemon/dist/domain/workflow-role-context.js.map +1 -1
  788. package/daemon/dist/domain/workflow-role-resolver.d.ts +3 -0
  789. package/daemon/dist/domain/workflow-role-resolver.d.ts.map +1 -1
  790. package/daemon/dist/domain/workflow-role-resolver.js +12 -6
  791. package/daemon/dist/domain/workflow-role-resolver.js.map +1 -1
  792. package/daemon/dist/domain/workspace/project-catalog.d.ts +7 -0
  793. package/daemon/dist/domain/workspace/project-catalog.d.ts.map +1 -1
  794. package/daemon/dist/domain/workspace/project-catalog.js +16 -9
  795. package/daemon/dist/domain/workspace/project-catalog.js.map +1 -1
  796. package/daemon/dist/domain/workspace/project-registration.d.ts +5 -1
  797. package/daemon/dist/domain/workspace/project-registration.d.ts.map +1 -1
  798. package/daemon/dist/domain/workspace/project-registration.js +11 -7
  799. package/daemon/dist/domain/workspace/project-registration.js.map +1 -1
  800. package/daemon/dist/index.d.ts +3 -0
  801. package/daemon/dist/index.d.ts.map +1 -1
  802. package/daemon/dist/index.js +14 -4
  803. package/daemon/dist/index.js.map +1 -1
  804. package/daemon/dist/middleware/auth-bearer-token.d.ts +8 -12
  805. package/daemon/dist/middleware/auth-bearer-token.d.ts.map +1 -1
  806. package/daemon/dist/middleware/auth-bearer-token.js +18 -36
  807. package/daemon/dist/middleware/auth-bearer-token.js.map +1 -1
  808. package/daemon/dist/queue-transfer-records-surface.d.ts +6 -0
  809. package/daemon/dist/queue-transfer-records-surface.d.ts.map +1 -0
  810. package/daemon/dist/queue-transfer-records-surface.js +6 -0
  811. package/daemon/dist/queue-transfer-records-surface.js.map +1 -0
  812. package/daemon/dist/rig-lookup-surface.d.ts +2 -0
  813. package/daemon/dist/rig-lookup-surface.d.ts.map +1 -0
  814. package/daemon/dist/rig-lookup-surface.js +5 -0
  815. package/daemon/dist/rig-lookup-surface.js.map +1 -0
  816. package/daemon/dist/routes/activity.d.ts.map +1 -1
  817. package/daemon/dist/routes/activity.js +4 -3
  818. package/daemon/dist/routes/activity.js.map +1 -1
  819. package/daemon/dist/routes/attention.d.ts.map +1 -1
  820. package/daemon/dist/routes/attention.js +3 -1
  821. package/daemon/dist/routes/attention.js.map +1 -1
  822. package/daemon/dist/routes/compaction.d.ts.map +1 -1
  823. package/daemon/dist/routes/compaction.js +2 -0
  824. package/daemon/dist/routes/compaction.js.map +1 -1
  825. package/daemon/dist/routes/mission-control.d.ts.map +1 -1
  826. package/daemon/dist/routes/mission-control.js +2 -1
  827. package/daemon/dist/routes/mission-control.js.map +1 -1
  828. package/daemon/dist/routes/missions.d.ts +3 -6
  829. package/daemon/dist/routes/missions.d.ts.map +1 -1
  830. package/daemon/dist/routes/missions.js +42 -76
  831. package/daemon/dist/routes/missions.js.map +1 -1
  832. package/daemon/dist/routes/network.d.ts.map +1 -1
  833. package/daemon/dist/routes/network.js +19 -1
  834. package/daemon/dist/routes/network.js.map +1 -1
  835. package/daemon/dist/routes/provider.d.ts.map +1 -1
  836. package/daemon/dist/routes/provider.js +156 -5
  837. package/daemon/dist/routes/provider.js.map +1 -1
  838. package/daemon/dist/routes/queue-transfer.d.ts +9 -0
  839. package/daemon/dist/routes/queue-transfer.d.ts.map +1 -0
  840. package/daemon/dist/routes/queue-transfer.js +109 -0
  841. package/daemon/dist/routes/queue-transfer.js.map +1 -0
  842. package/daemon/dist/routes/queue.d.ts.map +1 -1
  843. package/daemon/dist/routes/queue.js +80 -51
  844. package/daemon/dist/routes/queue.js.map +1 -1
  845. package/daemon/dist/routes/rigs.js +3 -0
  846. package/daemon/dist/routes/rigs.js.map +1 -1
  847. package/daemon/dist/routes/rigspec.d.ts.map +1 -1
  848. package/daemon/dist/routes/rigspec.js +4 -0
  849. package/daemon/dist/routes/rigspec.js.map +1 -1
  850. package/daemon/dist/routes/seat.d.ts.map +1 -1
  851. package/daemon/dist/routes/seat.js +19 -3
  852. package/daemon/dist/routes/seat.js.map +1 -1
  853. package/daemon/dist/routes/terminal-ws.d.ts +0 -5
  854. package/daemon/dist/routes/terminal-ws.d.ts.map +1 -1
  855. package/daemon/dist/routes/terminal-ws.js +0 -6
  856. package/daemon/dist/routes/terminal-ws.js.map +1 -1
  857. package/daemon/dist/routes/transport.js +1 -1
  858. package/daemon/dist/routes/transport.js.map +1 -1
  859. package/daemon/dist/scope-manifest-surface.d.ts +4 -0
  860. package/daemon/dist/scope-manifest-surface.d.ts.map +1 -0
  861. package/daemon/dist/scope-manifest-surface.js +4 -0
  862. package/daemon/dist/scope-manifest-surface.js.map +1 -0
  863. package/daemon/dist/server.d.ts +2 -1
  864. package/daemon/dist/server.d.ts.map +1 -1
  865. package/daemon/dist/server.js +6 -6
  866. package/daemon/dist/server.js.map +1 -1
  867. package/daemon/dist/startup.d.ts.map +1 -1
  868. package/daemon/dist/startup.js +126 -61
  869. package/daemon/dist/startup.js.map +1 -1
  870. package/daemon/docs/reference/agent-startup-guide.md +26 -4
  871. package/daemon/docs/reference/agent-state-taxonomy.md +22 -1
  872. package/daemon/docs/reference/claude-status-line.md +28 -0
  873. package/daemon/docs/reference/community-harness-examples/hermes/hermes.yaml +3 -0
  874. package/daemon/docs/reference/community-harness-examples/hermes/openrig-hermes-launch +10 -0
  875. package/daemon/docs/reference/community-harness-presets.md +79 -8
  876. package/daemon/docs/reference/daemon-http-clients.md +49 -2
  877. package/daemon/docs/reference/getting-started.md +73 -11
  878. package/daemon/docs/reference/harness-runner-contract.md +12 -4
  879. package/daemon/docs/reference/help.md +9 -0
  880. package/daemon/docs/reference/herdr-app.md +45 -4
  881. package/daemon/docs/reference/hosted-members.md +1 -1
  882. package/daemon/docs/reference/network-connector.md +66 -1
  883. package/daemon/docs/reference/pi-tool-selection-recovery.md +13 -29
  884. package/daemon/docs/reference/queue-transfer-activation.md +89 -0
  885. package/daemon/docs/reference/queue-transfer-staging.md +1 -1
  886. package/daemon/docs/reference/quickstart.md +4 -4
  887. package/daemon/docs/reference/refocus-channel.md +21 -0
  888. package/daemon/docs/reference/rig-bundle.md +25 -0
  889. package/daemon/docs/reference/rig-spec.md +218 -23
  890. package/daemon/docs/reference/scoped-operating-posture.md +6 -1
  891. package/daemon/docs/reference/sdlc-conventions.md +10 -4
  892. package/daemon/docs/reference/seat-delivery.md +108 -12
  893. package/daemon/docs/reference/seat-node-targeting.md +2 -2
  894. package/daemon/docs/reference/seat-pools.md +181 -18
  895. package/daemon/docs/reference/seat-scaling.md +137 -0
  896. package/daemon/docs/reference/whats-new.md +190 -14
  897. package/daemon/specs/agents/development/implementer/guidance/role.md +11 -0
  898. package/daemon/specs/agents/development/qa/guidance/role.md +5 -0
  899. package/daemon/specs/agents/shared/skills/core/cross-host-rig-commands/SKILL.md +9 -1
  900. package/daemon/specs/agents/shared/skills/core/working-with-an-openrig-team/SKILL.md +32 -19
  901. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +8 -3
  902. package/dist/build-info.js +3 -3
  903. package/dist/cli-error.d.ts +2 -0
  904. package/dist/cli-error.d.ts.map +1 -1
  905. package/dist/cli-error.js +25 -8
  906. package/dist/cli-error.js.map +1 -1
  907. package/dist/client.d.ts +1 -0
  908. package/dist/client.d.ts.map +1 -1
  909. package/dist/client.js +13 -0
  910. package/dist/client.js.map +1 -1
  911. package/dist/commands/auth.d.ts.map +1 -1
  912. package/dist/commands/auth.js +52 -1
  913. package/dist/commands/auth.js.map +1 -1
  914. package/dist/commands/config.d.ts.map +1 -1
  915. package/dist/commands/config.js +3 -0
  916. package/dist/commands/config.js.map +1 -1
  917. package/dist/commands/crash-cart.d.ts.map +1 -1
  918. package/dist/commands/crash-cart.js +65 -17
  919. package/dist/commands/crash-cart.js.map +1 -1
  920. package/dist/commands/daemon.d.ts +7 -20
  921. package/dist/commands/daemon.d.ts.map +1 -1
  922. package/dist/commands/daemon.js +117 -46
  923. package/dist/commands/daemon.js.map +1 -1
  924. package/dist/commands/doctor.d.ts +26 -0
  925. package/dist/commands/doctor.d.ts.map +1 -1
  926. package/dist/commands/doctor.js +148 -2
  927. package/dist/commands/doctor.js.map +1 -1
  928. package/dist/commands/import.d.ts +5 -0
  929. package/dist/commands/import.d.ts.map +1 -1
  930. package/dist/commands/import.js +24 -4
  931. package/dist/commands/import.js.map +1 -1
  932. package/dist/commands/mcp.d.ts.map +1 -1
  933. package/dist/commands/mcp.js +4 -2
  934. package/dist/commands/mcp.js.map +1 -1
  935. package/dist/commands/network.d.ts +4 -0
  936. package/dist/commands/network.d.ts.map +1 -1
  937. package/dist/commands/network.js +78 -10
  938. package/dist/commands/network.js.map +1 -1
  939. package/dist/commands/provider.d.ts +5 -1
  940. package/dist/commands/provider.d.ts.map +1 -1
  941. package/dist/commands/provider.js +427 -17
  942. package/dist/commands/provider.js.map +1 -1
  943. package/dist/commands/ps.d.ts +16 -1
  944. package/dist/commands/ps.d.ts.map +1 -1
  945. package/dist/commands/ps.js +35 -4
  946. package/dist/commands/ps.js.map +1 -1
  947. package/dist/commands/queue-transfer.d.ts +10 -0
  948. package/dist/commands/queue-transfer.d.ts.map +1 -0
  949. package/dist/commands/queue-transfer.js +140 -0
  950. package/dist/commands/queue-transfer.js.map +1 -0
  951. package/dist/commands/queue.d.ts.map +1 -1
  952. package/dist/commands/queue.js +20 -6
  953. package/dist/commands/queue.js.map +1 -1
  954. package/dist/commands/scope.d.ts.map +1 -1
  955. package/dist/commands/scope.js +258 -17
  956. package/dist/commands/scope.js.map +1 -1
  957. package/dist/commands/seat.d.ts.map +1 -1
  958. package/dist/commands/seat.js +132 -23
  959. package/dist/commands/seat.js.map +1 -1
  960. package/dist/commands/setup.d.ts +34 -0
  961. package/dist/commands/setup.d.ts.map +1 -1
  962. package/dist/commands/setup.js +111 -18
  963. package/dist/commands/setup.js.map +1 -1
  964. package/dist/commands/terminal.d.ts +11 -0
  965. package/dist/commands/terminal.d.ts.map +1 -1
  966. package/dist/commands/terminal.js +10 -7
  967. package/dist/commands/terminal.js.map +1 -1
  968. package/dist/config-store.d.ts +9 -1
  969. package/dist/config-store.d.ts.map +1 -1
  970. package/dist/config-store.js +46 -0
  971. package/dist/config-store.js.map +1 -1
  972. package/dist/daemon-lifecycle.d.ts +53 -2
  973. package/dist/daemon-lifecycle.d.ts.map +1 -1
  974. package/dist/daemon-lifecycle.js +500 -192
  975. package/dist/daemon-lifecycle.js.map +1 -1
  976. package/dist/daemon-reachability.js +2 -2
  977. package/dist/daemon-reachability.js.map +1 -1
  978. package/dist/daemon-start-lock.d.ts +28 -0
  979. package/dist/daemon-start-lock.d.ts.map +1 -1
  980. package/dist/daemon-start-lock.js +107 -13
  981. package/dist/daemon-start-lock.js.map +1 -1
  982. package/dist/lib/seat-activity.d.ts +4 -1
  983. package/dist/lib/seat-activity.d.ts.map +1 -1
  984. package/dist/lib/seat-activity.js +4 -3
  985. package/dist/lib/seat-activity.js.map +1 -1
  986. package/dist/mcp-server.d.ts +2 -2
  987. package/dist/mcp-server.d.ts.map +1 -1
  988. package/dist/mcp-server.js +126 -27
  989. package/dist/mcp-server.js.map +1 -1
  990. package/dist/process-liveness.d.ts +21 -0
  991. package/dist/process-liveness.d.ts.map +1 -0
  992. package/dist/process-liveness.js +43 -0
  993. package/dist/process-liveness.js.map +1 -0
  994. package/dist/remote-host-ops.d.ts +1 -1
  995. package/dist/remote-host-ops.d.ts.map +1 -1
  996. package/dist/remote-host-ops.js +3 -14
  997. package/dist/remote-host-ops.js.map +1 -1
  998. package/dist/system-preflight.d.ts +9 -0
  999. package/dist/system-preflight.d.ts.map +1 -1
  1000. package/dist/system-preflight.js +27 -8
  1001. package/dist/system-preflight.js.map +1 -1
  1002. package/dist/tmux-health.d.ts +10 -1
  1003. package/dist/tmux-health.d.ts.map +1 -1
  1004. package/dist/tmux-health.js +31 -2
  1005. package/dist/tmux-health.js.map +1 -1
  1006. package/package.json +4 -2
  1007. package/scripts/check-abi.mjs +18 -2
  1008. package/tui/dist/attention/attention-model.d.ts +1 -1
  1009. package/tui/dist/attention/attention-model.d.ts.map +1 -1
  1010. package/tui/dist/attention/attention-model.js +6 -0
  1011. package/tui/dist/attention/attention-model.js.map +1 -1
  1012. package/tui/dist/daemon-client.d.ts +21 -2
  1013. package/tui/dist/daemon-client.d.ts.map +1 -1
  1014. package/tui/dist/daemon-client.js +36 -5
  1015. package/tui/dist/daemon-client.js.map +1 -1
  1016. package/tui/dist/hydrate.d.ts.map +1 -1
  1017. package/tui/dist/hydrate.js +6 -2
  1018. package/tui/dist/hydrate.js.map +1 -1
  1019. package/tui/dist/main.js +11 -8
  1020. package/tui/dist/main.js.map +1 -1
  1021. package/tui/dist/terminals/open-window.d.ts +9 -3
  1022. package/tui/dist/terminals/open-window.d.ts.map +1 -1
  1023. package/tui/dist/terminals/open-window.js +22 -4
  1024. package/tui/dist/terminals/open-window.js.map +1 -1
  1025. package/tui/dist/terminals/terminal-model.d.ts +3 -0
  1026. package/tui/dist/terminals/terminal-model.d.ts.map +1 -1
  1027. package/tui/dist/terminals/terminal-model.js +6 -1
  1028. package/tui/dist/terminals/terminal-model.js.map +1 -1
  1029. package/tui/dist/topology/glyphs.d.ts.map +1 -1
  1030. package/tui/dist/topology/glyphs.js +11 -1
  1031. package/tui/dist/topology/glyphs.js.map +1 -1
  1032. package/tui/dist/topology/graph-types.d.ts +8 -0
  1033. package/tui/dist/topology/graph-types.d.ts.map +1 -1
  1034. package/tui/dist/types.d.ts +3 -2
  1035. package/tui/dist/types.d.ts.map +1 -1
  1036. package/ui/dist/assets/{index-DG_7XFcL.js → index-D7OUklzs.js} +148 -148
  1037. package/ui/dist/index.html +1 -1
@@ -32,18 +32,25 @@ on an OpenRig team load `openrig-core` instead.
32
32
  ## How the team's questions reach your chat
33
33
 
34
34
  When your agent hands the team work with an address of its own (`returnRoute` `auto` on `rig_queue_create`, the default
35
- in Claude Code when the plugin has no seat, or `rig queue create --return-route auto`), OpenRig gives that work an address
35
+ in Claude Code, or `rig queue create --return-route auto`), OpenRig gives that work an address
36
36
  for your chat and records it with a key for the chat. In Claude Code the key is the chat's own `claude` process, so a
37
37
  new chat in the same process (after `/clear`) still gets the earlier chat's tasks, and one resumed in a new process
38
38
  (`claude --resume`) doesn't get them by itself. In Codex it's the session id Codex gives its commands and hooks.
39
39
 
40
40
  - **Which setups they cover:**
41
- - **Claude Code with the plugin's OpenRig seat left blank:** `rig_queue_create` gives the work an address of its own
42
- by default.
41
+ - **Claude Code:** `rig_queue_create` gives the work an address of its own by default, whether the plugin's OpenRig
42
+ seat is set or blank. With a seat set, the seat stays the work's sender. Work handed over with `returnRoute: "self"`
43
+ sends the team's questions to the seat's own address instead, which the hooks don't watch, so your agent finds them
44
+ only when it checks (`rig_queue_list` with `owned`). In one of OpenRig's own seats there's no such default: that seat
45
+ has its own delivery, and the server knows it's there from `OPENRIG_NODE_ID`, which OpenRig sets in its seats. If
46
+ the MCP server's environment leaves that variable out (with `CLAUDE_CODE_MCP_ALLOWLIST_ENV` set, say), the server
47
+ can't tell the seat from your own chat, and the seat's work can get an address its hooks don't watch. Keep
48
+ `OPENRIG_NODE_ID` in that server's environment.
43
49
  - **`rig queue create --return-route auto` in the shell,** in Claude Code or Codex.
44
- - **With a seat set:** only work handed over with `returnRoute: "auto"` on `rig_queue_create`. Without it, the team's
45
- questions go to the seat's own address, which the hooks don't watch, so your agent finds them only when it checks
46
- (`rig_queue_list` with `owned`).
50
+ - **Not covered: a Claude Code or Codex started from a shell where `OPENRIG_SESSION_NAME` is exported.** The hooks
51
+ take a chat with that variable in its environment for one of OpenRig's own seats and don't run there, so nothing
52
+ comes into the chat by itself, even when the MCP server gives the work an address of its own. Set the address in the
53
+ plugin's OpenRig seat (in Codex, with `--env` on `codex mcp add`) instead of exporting it.
47
54
  - **Not yet: Codex through the MCP server.** Codex may not give the server the session id the key comes from, so its
48
55
  handovers get no key and nothing wakes for them. In Codex, hand work over with `rig queue create --return-route auto`
49
56
  in the shell.
@@ -57,7 +64,10 @@ new chat in the same process (after `/clear`) still gets the earlier chat's task
57
64
  `rig`. A chat that never handed work over this way has nothing to read, and they do nothing in OpenRig's own seats.
58
65
  - **Which `rig`:** the hooks, and in Claude Code the MCP server, run the file `OPENRIG_RIG_BIN` names, else `rig` on your
59
66
  PATH, else the project's own `node_modules/.bin/rig` (in Claude Code, the session's project; in Codex, the session's
60
- folder). So an OpenRig installed inside one project is found only in sessions started there. With no `rig`, the hooks
67
+ folder), else the first `rig` on a login shell's PATH, run with that PATH. So an OpenRig installed inside one project is
68
+ found only in sessions started there, and one installed after the app started is found once your login profile
69
+ (`~/.zprofile` for zsh, `~/.bash_profile` or `~/.profile` for bash, not only `~/.zshrc` or `~/.bashrc`) puts its
70
+ folder on PATH. With no `rig`, the hooks
61
71
  say once in a chat that the team's questions won't come in by themselves: once for the plugin's install, not in every
62
72
  session, and again only after a `rig` was found and then lost. Claude Code logs the MCP server's one line saying why it
63
73
  didn't start. The hooks themselves start with the `node` on the app's PATH, or the file `OPENRIG_NODE` names: set it
@@ -90,8 +100,8 @@ claude plugin install openrig@openrig-app
90
100
  ```
91
101
 
92
102
  Set the plugin's **OpenRig seat** to your address (`/plugin`, then configure): type the address into the row, then save.
93
- Pressing Enter on the empty row closes it with no change. Then start a new session. With a seat set, the hooks bring in
94
- the team's questions only for work handed over with `returnRoute: "auto"` (see "Which setups they cover" above).
103
+ Pressing Enter on the empty row closes it with no change. Then start a new session. With a seat set, the hooks still
104
+ bring in the team's questions about work your agent hands over (see "Which setups they cover" above).
95
105
 
96
106
  **Codex**
97
107
 
@@ -148,12 +158,15 @@ The app starts one `openrig` server, `rig mcp serve --front-door`, from the root
148
158
  macOS, reopening the app from the Dock drops it, and an already running VS Code keeps its own environment.
149
159
  - **What goes through without one:** messages (`rig_send`), new tasks (`rig_queue_create`) and chat
150
160
  (`rig_chatroom_send`) reach the team as an unknown sender, `unknown-mcp-` and eight hex digits, one per server. Each
151
- opens with a note saying why there's no seat and what the app's MCP client says it is. There's no return address,
152
- so your agent follows a task it created by its id (`rig_queue_show`). `rig_whoami` says why there's no seat and
153
- names the unknown sender.
154
- - **What needs a seat:** OpenRig answers `actor_required` to claim, update, hand off, unclaim and decide, which covers
155
- recording an answer to the team's questions. Listing the questions sent to you (`rig_queue_list` with `owned` or
156
- `mine`) needs the seat too. Set one to get the team's questions and replies.
161
+ opens with a note saying why there's no seat and what the app's MCP client says it is. Without a return address,
162
+ your agent follows a task it created by its id (`rig_queue_show`). `rig_whoami` says why there's no seat and names
163
+ the unknown sender.
164
+ - **Answers to the team's questions:** a task created with `returnRoute` `auto` gets an address of the conversation's
165
+ own, and the team's questions about it are addressed there. Your agent claims and answers them as that address
166
+ through the same server, while the app keeps that server running.
167
+ - **What needs a seat:** OpenRig answers `actor_required` to hand off and unclaim, and to claim, update and decide
168
+ any other item. Listing the questions sent to you (`rig_queue_list` with `owned` or `mine`) needs the seat too.
169
+ Set one to get the team's questions and replies.
157
170
  - Environment export needs an HTTP work grant, which a plugin's local server never has.
158
171
  - **To give the app a seat,** add your own MCP server that runs `rig mcp serve --front-door` with
159
172
  `OPENRIG_SESSION_NAME=<address>` in its environment, and turn the plugin's `openrig` server off, so the app runs one
@@ -175,8 +188,10 @@ The app starts one `openrig` server, `rig mcp serve --front-door`, from the root
175
188
  ## What it doesn't do
176
189
 
177
190
  - It adds no panel to the app. Where its hooks don't run (apps other than Claude Code and Codex), nothing wakes your
178
- chat when the team asks or finishes: ask your agent to check.
191
+ chat when the team asks or finishes. While work it handed over is open, your agent checks on that work at the start
192
+ of each of its turns, and an app's scheduled task can check between your messages (your agent says what that needs).
179
193
  - Everyone using the app on this machine acts as the seat it names.
180
194
  - It reaches a team on this machine.
181
- - **Outside Claude Code and Codex,** until you give the app a seat, it hands the team work only as an unknown sender
182
- with no return address, and it can't record answers to the team's questions: see "No seat" above for how.
195
+ - **Outside Claude Code and Codex,** until you give the app a seat, it hands the team work as an unknown sender. A task
196
+ it creates with `returnRoute` `auto` gets an address of the conversation's own, and it can answer the team's questions
197
+ about that task; anything else needs a seat (see "No seat" above).
@@ -23,9 +23,10 @@
23
23
  // codex-start Codex SessionStart (async): start one detached watcher for this session and exit 0. A Codex hook
24
24
  // can't start a turn itself; `codex queue` can.
25
25
  // codex-end Codex SessionEnd: tell this session's watcher to stop.
26
- // codex-watch <session id> <transcript path>
26
+ // codex-watch <session id> <transcript path> <codex pid> <its start time>
27
27
  // The watcher: the same reads, and it wakes the thread with
28
- // `codex queue --thread <session id> --message … --resume` (exit 0 there means stored, not delivered).
28
+ // `codex queue --thread <session id> --message … --resume` (exit 0 there means stored, not delivered),
29
+ // a backlog in batches that each fit one argument.
29
30
  // A failed read or queue is tried again after a longer wait each time, up to five minutes. On a
30
31
  // Codex whose `codex queue` has no `--resume`, it queues without it, for the thread's next turn,
31
32
  // and says so once in the thread.
@@ -169,10 +170,16 @@ const RETRY_MAX_MS = 5 * 60 * 1000;
169
170
  const CONVERSATION_WAITER_MS = (7200 - 120) * 1000;
170
171
  /** Without a Codex pid to observe, stop an orphan watcher after this long without rollout growth. */
171
172
  const CODEX_IDLE_EXIT_MS = 6 * 3600 * 1000;
173
+ /** How often a Codex watcher that found no `rig` looks again. */
174
+ const NO_RIG_RETRY_MS = 30 * 1000;
172
175
  /** A watcher that hasn't ticked for this long isn't live, whatever its recorded pid says. */
173
176
  const WATCHER_LIVE_MS = 3 * CONVERSATION_POLL_MS;
174
- /** A conversation's state folder untouched for this long is removed. */
177
+ /** A conversation's state folder untouched for this long, the folder and every file in it, is removed, unless the Claude
178
+ * Code process its waiter recorded still runs. */
175
179
  const STATE_KEEP_MS = 7 * 24 * 3600 * 1000;
180
+ /** The most one `codex queue --message` carries, in bytes of UTF-8: half of Linux's limit on one argument (MAX_ARG_STRLEN,
181
+ * 32 pages, so 128 KiB with 4 KiB pages), past which the spawn fails with E2BIG. */
182
+ const QUEUE_MESSAGE_MAX_BYTES = 64 * 1024;
176
183
  /** Only addresses OpenRig issued for this conversation's own creates are read; a named or inherited route isn't its own. */
177
184
  const ISSUED_BASES = new Set(["issued", "issued-actor"]);
178
185
  const UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
@@ -262,10 +269,36 @@ function nearestAgentProcess(pid, read) {
262
269
  }
263
270
  return null;
264
271
  }
265
- /** The pid of the nearest process of that kind, when it's the nearest agent; 0 otherwise. */
272
+ /** The nearest process of that kind (its pid and start time), when it's the nearest agent; null otherwise. */
266
273
  function nearestAgent(pid, read, kind) {
267
274
  const found = nearestAgentProcess(pid, read);
268
- return found?.kind === kind ? found.proc.pid : 0;
275
+ return found?.kind === kind ? found.proc : null;
276
+ }
277
+
278
+ /** Whether the process recorded by its pid and start time still runs: a pid given to a later process has another start
279
+ * time. When the start can't be read, whether the pid runs at all, so an unknown isn't taken for ended. */
280
+ function stillRunning(pid, start, { read = processReader(), isAlive = alive } = {}) {
281
+ if (!(pid > 0)) return false;
282
+ const proc = start ? read(pid) : null;
283
+ return proc ? proc.start === start : isAlive(pid);
284
+ }
285
+
286
+ /** When a conversation's folder last changed: the newest time of the folder and its files. A live watcher's heartbeat
287
+ * rewrites a file that's already there, which changes that file's time and leaves the folder's alone. */
288
+ function touchedAt(folder) {
289
+ let newest = fs.statSync(folder).mtimeMs;
290
+ for (const name of fs.readdirSync(folder)) {
291
+ try { newest = Math.max(newest, fs.statSync(path.join(folder, name)).mtimeMs); } catch { /* removed meanwhile */ }
292
+ }
293
+ return newest;
294
+ }
295
+
296
+ /** Whether the Claude Code process a conversation's waiter recorded, by its key (`claude:<start>:<pid>`), still runs. */
297
+ function waiterKeyRuns(folder, read) {
298
+ let key = "";
299
+ try { key = String(JSON.parse(fs.readFileSync(path.join(folder, "waiter.json"), "utf8")).key ?? ""); } catch { return false; }
300
+ const at = key.lastIndexOf(":");
301
+ return key.startsWith("claude:") && stillRunning(Number(key.slice(at + 1)), key.slice("claude:".length, at), { read });
269
302
  }
270
303
 
271
304
  /** One conversation's state: which waiter or watcher is current, the turn marker, and the tasks already shown. In the
@@ -290,11 +323,14 @@ function conversationState(runtime, sessionId, { env = process.env, now = Date.n
290
323
  exists: (name) => fs.existsSync(file(name)),
291
324
  remove: (name) => { try { fs.unlinkSync(file(name)); } catch { /* absent */ } },
292
325
  log: (line) => { try { fs.appendFileSync(file("wake.log"), `${new Date(now()).toISOString()} ${process.pid} ${line}\n`); } catch { /* best effort */ } },
293
- prune: () => {
326
+ /** Removes the other conversations' folders that have gone a week untouched, unless their Claude Code still runs. */
327
+ prune: (read = processReader()) => {
294
328
  try {
295
329
  for (const entry of fs.readdirSync(root)) {
296
330
  const other = path.join(root, entry);
297
- if (other !== dir && now() - fs.statSync(other).mtimeMs > STATE_KEEP_MS) fs.rmSync(other, { recursive: true, force: true });
331
+ try {
332
+ if (other !== dir && now() - touchedAt(other) > STATE_KEEP_MS && !waiterKeyRuns(other, read)) fs.rmSync(other, { recursive: true, force: true });
333
+ } catch { /* best effort */ }
298
334
  }
299
335
  } catch { /* best effort */ }
300
336
  },
@@ -319,25 +355,60 @@ function findRig({ env = process.env, projectDir = first(env.CLAUDE_PROJECT_DIR)
319
355
  /** That `rig`, with --json: what it printed, parsed, or null when it couldn't be read (no daemon, say). */
320
356
  function runRig(args, { env = process.env, bin = "rig", spawnSync = require("node:child_process").spawnSync } = {}) {
321
357
  try {
322
- const result = spawnSync(bin, args, { env, encoding: "utf8", timeout: 30000, stdio: ["ignore", "pipe", "ignore"] });
358
+ // A long conversation's complete listing can exceed spawnSync's default 1 MiB stdout cap. The read already
359
+ // asks for all matching rows; don't turn a valid history into an unreadable result before batching its tasks.
360
+ const result = spawnSync(bin, args, { env, encoding: "utf8", timeout: 30000, maxBuffer: Infinity, stdio: ["ignore", "pipe", "ignore"] });
323
361
  if (result.error || result.status !== 0) return null;
324
362
  return JSON.parse(result.stdout || "null");
325
363
  } catch { return null; }
326
364
  }
327
365
 
328
- /** OpenRig read through findRig's `rig`; null when there's no `rig` to run. */
329
- function rigReader(env, projectDir) {
366
+ /** The PATH a login shell of this user gets. Codex runs a session's own commands in a login shell (`bash -lc`), so a `rig`
367
+ * in a folder the login profile adds, such as a `~/.local/bin` made after this app started, runs for the session's agent
368
+ * while the app's own PATH, which its hooks inherit, lacks it. Null when no login shell answers in time. */
369
+ function loginShellPath({ env = process.env, spawnSync = require("node:child_process").spawnSync } = {}) {
370
+ // A profile may print; the PATH is what follows the last mark.
371
+ const mark = "__OPENRIG_LOGIN_PATH__";
372
+ try {
373
+ const result = spawnSync(first(env.SHELL) || "/bin/sh", ["-lc", `printf '%s%s' '${mark}' "$PATH"`],
374
+ { env, encoding: "utf8", timeout: 10000, stdio: ["ignore", "pipe", "ignore"] });
375
+ if (result.error || result.status !== 0) return null;
376
+ const out = String(result.stdout ?? "");
377
+ const at = out.lastIndexOf(mark);
378
+ return at < 0 ? null : out.slice(at + mark.length).trim() || null;
379
+ } catch { return null; }
380
+ }
381
+
382
+ /** The `rig` this session's own commands would run, with the environment to run it in: findRig's, else the first on a login
383
+ * shell's PATH, run with that PATH so its `node` resolves the same way. Null when neither has one. The hooks read OpenRig
384
+ * through it, and in Claude Code the plugin's MCP server launcher (scripts/run-rig.cjs) starts the server with it. */
385
+ function sessionRig(env, projectDir, loginPath = () => loginShellPath({ env })) {
330
386
  const bin = findRig({ env, projectDir });
331
- return bin ? (args) => runRig(args, { env, bin }) : null;
387
+ if (bin) return { bin, env };
388
+ const login = loginPath();
389
+ if (!login || login === env.PATH) return null;
390
+ const loginEnv = { ...env, PATH: login };
391
+ const found = findRig({ env: loginEnv, projectDir });
392
+ return found ? { bin: found, env: loginEnv } : null;
393
+ }
394
+
395
+ /** OpenRig read through sessionRig's `rig`; null when there's no `rig` to run. */
396
+ function sessionRigReader(env, projectDir, loginPath) {
397
+ const rig = sessionRig(env, projectDir, loginPath);
398
+ return rig ? (args) => runRig(args, rig) : null;
332
399
  }
333
400
 
334
401
  /** What a conversation is told when there's no `rig`: without it the hooks read nothing, and nothing else would tell the
335
402
  * person that the team's questions won't come in by themselves. */
336
403
  const NO_RIG_NOTICE = "OpenRig's automatic wake can't run in this conversation: the openrig plugin found no `rig` command "
337
- + "(OPENRIG_RIG_BIN doesn't name one, there's none on PATH, and none in this project's node_modules/.bin). Until it finds "
338
- + "one, your OpenRig team's questions and replies won't come into this conversation by themselves. To fix it, install "
339
- + "OpenRig where every session finds it (`npm install -g @openrig/cli`), or set OPENRIG_RIG_BIN to the full path of `rig` "
340
- + "in the environment this app starts with. The plugin says this once, not in every session; tell the person in plain words.\n";
404
+ + "(OPENRIG_RIG_BIN doesn't name one, there's none on PATH or on a login shell's PATH, and none in this project's "
405
+ + "node_modules/.bin). Until it finds one, your OpenRig team's questions and replies won't come into this conversation by "
406
+ + "themselves. To fix it, install OpenRig where every session finds it (`npm install -g @openrig/cli`) and check that `rig` "
407
+ + "runs in a new terminal. If it doesn't, or it runs there but not here, put the folder that holds `rig` on PATH in the "
408
+ + "shell's login profile (`~/.zprofile` for zsh, `~/.bash_profile` or `~/.profile` for bash), not only in `~/.zshrc` or "
409
+ + "`~/.bashrc`, then restart this app. That folder is the `bin` inside the one `npm prefix -g` prints, or inside the one "
410
+ + "given to a one-off `npm install -g --prefix`. Or set OPENRIG_RIG_BIN to the full path of `rig` in the environment "
411
+ + "this app starts with. The plugin says this once, not in every session; tell the person in plain words.\n";
341
412
  const NO_RIG = "no-rig.json";
342
413
 
343
414
  /** Says NO_RIG_NOTICE through `say` once for the plugin's install: someone who keeps OpenRig inside one project isn't told
@@ -511,13 +582,17 @@ async function conversationWaiter({ input = {}, out = process.stderr, deps = {}
511
582
  if (!state) return 0;
512
583
  const now = deps.now ?? Date.now;
513
584
  const wait = deps.sleep ?? sleep;
514
- const rig = deps.rig !== undefined ? deps.rig : rigReader(env);
585
+ // The app's PATH, which the hooks inherit, lacks a folder the login profile adds after it started (a new ~/.local/bin from
586
+ // `npm install -g --prefix ~/.local`), so look on a login shell's PATH too, as the Codex watcher does.
587
+ const rig = deps.rig !== undefined ? deps.rig : sessionRigReader(env, undefined, deps.loginPath);
515
588
  // Nothing to read with: tell the conversation the way a task wakes it, once for the plugin's install.
516
589
  if (!rig) return (await sayNoRigOnce(state, (text) => writeAll(out, text), now)) ? 2 : 0;
517
590
  forgetNoRig(state);
518
- const me = { pid: deps.pid ?? process.pid, startedAt: now(), event: typeof input.hook_event_name === "string" ? input.hook_event_name : "unknown" };
591
+ // The key names this conversation's Claude Code process: while it runs, another conversation's cleanup keeps this folder,
592
+ // and so what was shown here, however long the conversation sits idle.
593
+ const me = { pid: deps.pid ?? process.pid, startedAt: now(), event: typeof input.hook_event_name === "string" ? input.hook_event_name : "unknown", key };
519
594
  state.write("waiter.json", me);
520
- state.prune();
595
+ state.prune(deps.read);
521
596
  state.log(`armed ${me.event} for ${key}`);
522
597
  const routes = routeWatch(key, input.transcript_path, rig, now, deps.statSize);
523
598
  const deadline = me.startedAt + (deps.waiterMs ?? CONVERSATION_WAITER_MS);
@@ -566,10 +641,11 @@ function codexStart({ input = {}, deps = {} } = {}) {
566
641
  const current = state.read("watcher.json", {});
567
642
  if (current.pid && (deps.alive ?? alive)(current.pid) && now() - Number(current.beat ?? 0) < WATCHER_LIVE_MS) return 0;
568
643
  const spawn = deps.spawn ?? require("node:child_process").spawn;
569
- // The Codex process this hook runs under, so the watcher stops if it exits without a SessionEnd; 0 when it can't be seen.
570
- const codexPid = deps.codexPid !== undefined ? deps.codexPid : nearestAgent(process.pid, processReader(), "codex");
571
- const child = spawn(process.execPath, [__filename, "codex-watch", sessionId, typeof input.transcript_path === "string" ? input.transcript_path : "", String(codexPid || 0)],
572
- { detached: true, stdio: "ignore", env, cwd: typeof input.cwd === "string" && input.cwd ? input.cwd : undefined });
644
+ // The Codex process this hook runs under, by pid and start time, so the watcher stops if it exits without a SessionEnd,
645
+ // and a later process given its pid doesn't keep the watcher running; none when it can't be seen.
646
+ const codex = deps.codex !== undefined ? deps.codex : nearestAgent(process.pid, processReader(), "codex");
647
+ const child = spawn(process.execPath, [__filename, "codex-watch", sessionId, typeof input.transcript_path === "string" ? input.transcript_path : "",
648
+ String(codex?.pid || 0), codex?.start ?? ""], { detached: true, stdio: "ignore", env, cwd: typeof input.cwd === "string" && input.cwd ? input.cwd : undefined });
573
649
  state.write("watcher.json", { pid: child.pid, beat: now() });
574
650
  child.unref?.();
575
651
  state.log(`started watcher ${child.pid}`);
@@ -626,9 +702,21 @@ function codexQueuer(sessionId, state, { env = process.env, now = Date.now, run
626
702
  };
627
703
  }
628
704
 
629
- /** The Codex watcher. Returns 0 when its session ended, its Codex process exited, a newer watcher replaced it, or its
630
- * rollout went idle with no Codex process to observe. */
631
- async function codexWatch({ sessionId = "", transcriptPath = "", codexPid = 0, deps = {} } = {}) {
705
+ /** The tasks in order, in batches whose rendered message fits in `max` bytes of UTF-8; a task too large for any batch goes
706
+ * alone. */
707
+ function byteBatches(fresh, max) {
708
+ const batches = [];
709
+ for (const task of fresh) {
710
+ const last = batches[batches.length - 1];
711
+ if (last && Buffer.byteLength(renderConversationTasks([...last, task])) <= max) last.push(task);
712
+ else batches.push([task]);
713
+ }
714
+ return batches;
715
+ }
716
+
717
+ /** The Codex watcher. Returns 0 when its session ended, its Codex process exited (or its pid now names a process that
718
+ * started at another time), a newer watcher replaced it, or its rollout went idle with no Codex process to observe. */
719
+ async function codexWatch({ sessionId = "", transcriptPath = "", codexPid = 0, codexPidStart = "", deps = {} } = {}) {
632
720
  const env = deps.env ?? process.env;
633
721
  if (inSeat(env) || !UUID_RE.test(sessionId)) return 0;
634
722
  const key = `codex:${sessionId.toLowerCase()}`;
@@ -637,16 +725,21 @@ async function codexWatch({ sessionId = "", transcriptPath = "", codexPid = 0, d
637
725
  const now = deps.now ?? Date.now;
638
726
  const wait = deps.sleep ?? sleep;
639
727
  // codex-start runs the watcher in the session's folder, which stands in for Claude Code's CLAUDE_PROJECT_DIR.
640
- const rig = deps.rig !== undefined ? deps.rig : rigReader(env, deps.projectDir ?? process.cwd());
728
+ const projectDir = deps.projectDir ?? process.cwd();
729
+ const lookForRig = deps.rig !== undefined ? () => deps.rig : () => sessionRigReader(env, projectDir, deps.loginPath);
730
+ let rig = lookForRig();
641
731
  const queue = deps.queue ?? codexQueuer(sessionId, state, { env, now });
642
732
  const statSize = deps.statSize ?? ((p) => fs.statSync(p).size);
643
733
  const me = deps.pid ?? process.pid;
644
734
  state.write("watcher.json", { pid: me, beat: now() });
645
- state.prune();
646
- if (!rig) { await sayNoRigOnce(state, (text) => queue(text).ok, now); return 0; }
647
- forgetNoRig(state);
648
- state.log(`watching for ${key}`);
649
- const routes = routeWatch(key, transcriptPath, rig, now, statSize);
735
+ state.prune(deps.read);
736
+ if (!rig) {
737
+ // The person may install OpenRig in this very conversation, as the rigs skill has them do: keep looking, and watch from
738
+ // the tick a `rig` turns up, instead of leaving the conversation without wakes until a new session.
739
+ await sayNoRigOnce(state, (text) => queue(text).ok, now);
740
+ state.log(`no rig yet: looking again every ${NO_RIG_RETRY_MS / 1000} s while this session runs`);
741
+ }
742
+ let routes = null;
650
743
  let size = null;
651
744
  let grewAt = now();
652
745
  // Consecutive ticks whose read or queue failed: each waits twice as long as the one before, up to RETRY_MAX_MS, so a
@@ -656,23 +749,43 @@ async function codexWatch({ sessionId = "", transcriptPath = "", codexPid = 0, d
656
749
  for (;;) {
657
750
  if (state.exists("stop.json")) { state.log("stopped: the session ended"); return 0; }
658
751
  if (state.read("watcher.json", {}).pid !== me) { state.log("superseded"); return 0; }
659
- if (codexPid > 0 && !(deps.alive ?? alive)(codexPid)) { state.log("stopped: the session's codex process ended"); return 0; }
752
+ // Read afresh each tick: a reader keeps the process table it read first.
753
+ if (codexPid > 0 && !stillRunning(codexPid, codexPidStart, { read: deps.read ?? processReader(), isAlive: deps.alive ?? alive })) {
754
+ state.log("stopped: the session's codex process ended");
755
+ return 0;
756
+ }
660
757
  state.write("watcher.json", { pid: me, beat: now() });
661
758
  let current = null;
662
759
  try { current = transcriptPath ? statSize(transcriptPath) : null; } catch { current = null; }
663
760
  if (current !== size) { size = current; grewAt = now(); }
664
761
  if (codexPid <= 0 && now() - grewAt > CODEX_IDLE_EXIT_MS) { state.log("stopped: the session's rollout went idle"); return 0; }
762
+ if (!rig) {
763
+ await wait(NO_RIG_RETRY_MS);
764
+ rig = lookForRig();
765
+ continue; // The session's checks above run again before the first read.
766
+ }
767
+ if (!routes) {
768
+ forgetNoRig(state);
769
+ state.log(`watching for ${key}`);
770
+ routes = routeWatch(key, transcriptPath, rig, now, statSize);
771
+ }
665
772
  const read = routes();
666
773
  const fresh = read && freshTasks(read, state, rig);
667
774
  if (!fresh) {
668
775
  failures += 1;
669
776
  state.log(`OpenRig couldn't be read, trying again in ${retryIn() / 1000} s`);
670
777
  } else if (fresh.length > 0) {
671
- const queued = queue(renderConversationTasks(fresh), { tasks: true });
778
+ // In order, in batches that each fit one argument with room for the notice codexQueuer may put ahead. Each is marked
779
+ // shown once stored; after one fails, it and the rest come at a later tick.
780
+ let queued = { ok: true, detail: "" };
781
+ for (const batch of byteBatches(fresh, QUEUE_MESSAGE_MAX_BYTES - Buffer.byteLength(NO_RESUME_NOTICE))) {
782
+ queued = queue(renderConversationTasks(batch), { tasks: true });
783
+ if (!queued.ok) break;
784
+ markShown(state, batch);
785
+ state.log(`queued for the thread (stored, not proof it was read): ${batch.map((task) => task.row.qitemId).join(",")}`);
786
+ }
672
787
  if (queued.ok) {
673
788
  failures = 0;
674
- markShown(state, fresh);
675
- state.log(`queued for the thread (stored, not proof it was read): ${fresh.map((task) => task.row.qitemId).join(",")}`);
676
789
  } else {
677
790
  failures += 1;
678
791
  state.log(`codex queue failed, trying again in ${retryIn() / 1000} s: ${queued.detail}`);
@@ -689,7 +802,8 @@ async function main() {
689
802
  // A seat keeps its own delivery: the conversation modes end before reading anything.
690
803
  if (CONVERSATION_MODES.has(mode) && inSeat()) { process.exitCode = 0; return; }
691
804
  if (mode === "codex-watch") {
692
- await codexWatch({ sessionId: process.argv[3] ?? "", transcriptPath: process.argv[4] ?? "", codexPid: Number(process.argv[5] ?? 0) || 0 }).catch(() => 0);
805
+ await codexWatch({ sessionId: process.argv[3] ?? "", transcriptPath: process.argv[4] ?? "", codexPid: Number(process.argv[5] ?? 0) || 0,
806
+ codexPidStart: process.argv[6] ?? "" }).catch(() => 0);
693
807
  process.exit(0);
694
808
  }
695
809
  const input = await readHookInput();
@@ -711,5 +825,5 @@ if (require.main === module) void main();
711
825
  module.exports = {
712
826
  render, waiter, endpoint,
713
827
  CONVERSATION_KEY_TAG_PREFIX, conversationKey, conversationKeyTag, processReader, conversationRoutes, renderConversationTasks,
714
- conversationWaiter, conversationTurn, codexStart, codexEnd, codexWatch, findRig,
828
+ conversationWaiter, conversationTurn, codexStart, codexEnd, codexWatch, findRig, loginShellPath, sessionRig,
715
829
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "openrig",
4
- "version": "0.7.24",
4
+ "version": "0.7.26",
5
5
  "description": "Work with your OpenRig team from your coding agent: hand it work, follow that work, answer its questions and read what it returns.",
6
6
  "author": {
7
7
  "name": "Mike Schwarz",
@@ -1,26 +1,29 @@
1
1
  #!/usr/bin/env node
2
2
  // Starts the openrig plugin's MCP server in Claude Code: `node run-rig.cjs mcp serve --front-door` runs the `rig` the
3
- // plugin's hooks run (findRig in the hook bridge: OPENRIG_RIG_BIN, else `rig` on PATH, else the project's own
4
- // node_modules/.bin/rig) with the same arguments, on this process's stdio, and exits with its status. So an OpenRig
5
- // installed only inside the project serves too. With no `rig` to run, it prints one line to stderr, which Claude Code logs
6
- // as the server's stderr, and exits 1.
3
+ // plugin's hooks run (sessionRig in the hook bridge: OPENRIG_RIG_BIN, else `rig` on PATH, else the project's own
4
+ // node_modules/.bin/rig, else the first `rig` on a login shell's PATH, run with that PATH) with the same arguments, on this
5
+ // process's stdio, and exits with its status. So an OpenRig installed only inside the project serves too, and so does one
6
+ // whose folder only a login shell's PATH has, such as one installed after the app started. With no `rig` to run, it prints
7
+ // one line to stderr, which Claude Code logs as the server's stderr, and exits 1.
7
8
  "use strict";
8
- const { findRig } = require("../hooks/scripts/claude-hook-bridge.cjs");
9
+ const { sessionRig } = require("../hooks/scripts/claude-hook-bridge.cjs");
9
10
 
10
11
  const FAILED = "openrig plugin: OpenRig's MCP server can't start:";
11
12
 
12
- function launch(args, { env = process.env, spawnSync = require("node:child_process").spawnSync, stderr = process.stderr } = {}) {
13
- const bin = findRig({ env });
14
- if (!bin) {
15
- stderr.write(`${FAILED} no \`rig\` found (OPENRIG_RIG_BIN doesn't name one, there's none on PATH, and none in this project's `
16
- + "node_modules/.bin). Install OpenRig where every session finds it (npm install -g @openrig/cli), or set OPENRIG_RIG_BIN "
17
- + "to the full path of `rig`.\n");
13
+ function launch(args, { env = process.env, spawnSync = require("node:child_process").spawnSync, stderr = process.stderr, loginPath } = {}) {
14
+ const rig = sessionRig(env, undefined, loginPath);
15
+ if (!rig) {
16
+ stderr.write(`${FAILED} no \`rig\` found (OPENRIG_RIG_BIN doesn't name one, there's none on PATH or on a login shell's PATH, `
17
+ + "and none in this project's node_modules/.bin). Install OpenRig where every session finds it (npm install -g "
18
+ + "@openrig/cli), with the folder that holds `rig` on PATH in the shell's login profile (~/.zprofile for zsh, "
19
+ + "~/.bash_profile or ~/.profile for bash), not only in ~/.zshrc or ~/.bashrc, then restart this app; or set "
20
+ + "OPENRIG_RIG_BIN to the full path of `rig`.\n");
18
21
  return 1;
19
22
  }
20
23
  // As rig's own bin wrapper re-runs itself: the child has the MCP pipe as its stdio, and its status comes back.
21
- const result = spawnSync(bin, args, { stdio: "inherit", env });
24
+ const result = spawnSync(rig.bin, args, { stdio: "inherit", env: rig.env });
22
25
  if (result.error) {
23
- stderr.write(`${FAILED} ${bin} couldn't be run (${result.error.code ?? result.error.message}).\n`);
26
+ stderr.write(`${FAILED} ${rig.bin} couldn't be run (${result.error.code ?? result.error.message}).\n`);
24
27
  return 1;
25
28
  }
26
29
  return result.status ?? 1;
@@ -15,12 +15,13 @@ behave; this skill is the loop around them.
15
15
 
16
16
  ## Check the connection first
17
17
 
18
- - Call `rig_whoami`. It names the seat this connection acts as. Every item you create is recorded as coming from that seat,
19
- and the team's questions about your work come back to it.
20
- - If it has no seat, you can still hand the team work. In Claude Code, OpenRig gives that work a return address of its
21
- own (`returnRoute` in the result), and the team's questions about it come there as tasks (below). Elsewhere it goes as
22
- the unknown sender `rig_whoami` names, with no return address. Either way, tell the person the `qitemId` and follow it
23
- with `rig_queue_show`. Recording the person's answers and listing your own work need a seat: offer to set one (the last
18
+ - Call `rig_whoami`. It names the seat this connection acts as, if any. Every item you create is recorded as coming from
19
+ that seat.
20
+ - In Claude Code, OpenRig gives the work you hand over a return address of this chat's own (`returnRoute` in the result),
21
+ with or without a seat, and the team's questions about it come there as tasks (below). Elsewhere they come back to the
22
+ seat.
23
+ - If it has no seat, you can still hand the team work. Outside Claude Code it goes as the unknown sender `rig_whoami`
24
+ names, with no return address. Tell the person the `qitemId` and follow it with `rig_queue_show`. Recording the person's answers and listing your own work need a seat: offer to set one (the last
24
25
  section). In a shell, the `rig` command can act as that return address instead: put
25
26
  `OPENRIG_SESSION_NAME=<address>` in front of each `rig` command you run for this work (`rig queue ...`,
26
27
  `rig seat decide-permission ...`), so OpenRig records it as this chat's, not as someone outside a seat.
@@ -33,10 +34,12 @@ behave; this skill is the loop around them.
33
34
 
34
35
  - Use `rig_queue_create` with `destination` (the lead, or the seat the person chose) and `body`. Write the body for a
35
36
  capable colleague: the goal, why it matters, what done looks like, and where to look. Add a one-line `summary`.
36
- - With a seat, end the body with the reply route, because your seat has no terminal and `rig send` can't reach it:
37
+ - With a seat and no address of this chat's own (no `returnRoute` in the result), end the body with the reply route,
38
+ because your seat has no terminal and `rig send` can't reach it:
37
39
 
38
40
  > To ask me anything, create a queue item to `<your seat>` (`rig queue create --destination <your seat> ...`), then
39
- > block this item on that new item's id (`rig queue block <this id> --on <question id>`), so my answer wakes you. I
41
+ > block this item on that new item's id (`rig queue block <this id> --on <question id>`), so my answer wakes you. If
42
+ > the block is refused because I've already answered, read my answer on that item and carry on. I
40
43
  > check it whenever the person talks to me. Don't ask in your own terminal: the person isn't there. A seat's
41
44
  > permission prompt in this work is their question too: send me its own text and choices, the seat, what it was
42
45
  > doing and any escalation's id, unless a question about that prompt is already open at my seat. Whoever sent the
@@ -47,11 +50,19 @@ behave; this skill is the loop around them.
47
50
  > stays a no. If they gave no answer, or their words don't clearly
48
51
  > pick one choice (a condition the action doesn't plainly meet, say), ask me again before sending anything, and
49
52
  > never pick a "don't ask again" choice they didn't pick. Check the effect, and never send again while it's
50
- > unknown. If you hand this item on or give this work to another seat, copy this paragraph into the new item. When
51
- > you finish, put the outcome in this item's resolution, with what the latest review found, and any file in its
52
- > evidence ref.
53
- - With no seat but an address of its own (`returnRoute` in the result), end the body with the result route:
54
-
53
+ > unknown. If you hand this item on or give this work to another seat, copy this paragraph into the new item. Commit
54
+ > only as an author the person gave you, one they approved when you proposed it, or the one the repository already
55
+ > has (`git config user.name` and `user.email`); if there's none, ask me, and never choose one without their say.
56
+ > When you finish, put the outcome in this item's resolution, with what
57
+ > the latest review found, and any file in its evidence ref.
58
+ - With an address of this chat's own (`returnRoute` in the result), with or without a seat, end the body with the result
59
+ route instead:
60
+
61
+ > Commit only as an author the person gave you, one they approved when you proposed it, or the one the repository
62
+ > already has (`git config user.name` and `user.email`); if there's none, ask the person with a task to this item's
63
+ > return route and block this item on it (`rig queue block <this id> --on <question id>`), so their answer wakes
64
+ > you (if the block is refused because they've already answered, read their answer on that task and carry on), and
65
+ > never choose one without their say.
55
66
  > When you finish, send the result as a task to this item's return route (`rig queue show <this id>` names it):
56
67
  > `rig queue create --destination <that address> --summary "<the result in a line>" --body-file <file>`. Then
57
68
  > close this item with the result. A close by itself doesn't reach the person's chat, and the task does. If you
@@ -82,10 +93,9 @@ task, without anyone asking you to check.
82
93
 
83
94
  - When this chat hands work over with an address of its own, OpenRig records that address with a key for this chat.
84
95
  The hooks cover:
85
- - `rig_queue_create` in Claude Code with no seat, where `returnRoute` `auto` is the default;
86
- - `rig_queue_create` with `returnRoute` `auto` when this connection has a seat. Without it, the team's questions go
87
- to the seat's own address, which the hooks don't watch: you find them only when you check (`rig_queue_list` with
88
- `owned`);
96
+ - `rig_queue_create` in Claude Code, where `returnRoute` `auto` is the default, with or without a seat for this
97
+ connection. With `returnRoute` `self`, the team's questions go to the seat's own address, which the hooks don't
98
+ watch: you find them only when you check (`rig_queue_list` with `owned`);
89
99
  - `rig queue create --return-route auto` in the shell, in Claude Code or Codex.
90
100
  - Codex through this MCP server isn't covered yet: Codex may not give its MCP servers the session id the key comes
91
101
  from, so a `rig_queue_create` there goes without one, and nothing comes here by itself. In Codex, hand work over with
@@ -93,7 +103,9 @@ task, without anyone asking you to check.
93
103
  - A Codex whose `codex queue` has no `--resume` (Codex 0.171.0 has it) gets the tasks at this chat's next turn, not
94
104
  while it's idle. The hooks say so once in the chat: tell the person in plain words.
95
105
  - The hooks read only the addresses recorded under this chat's key, from OpenRig's own record, and check them for new
96
- tasks. Claude Code wakes you with them when a turn ends. Codex gets them as a message queued for this chat.
106
+ tasks. Claude Code wakes you with them when a turn ends. Codex gets them as a message queued for this chat. In
107
+ Claude Code they check for up to two hours after each turn, so while work you handed over is open, keep the
108
+ background wait the rigs skill gives running alongside them, and start it again whenever it ends.
97
109
  - Each one says it came from OpenRig's hook bridge and names its sender as OpenRig recorded it. It's a task like any
98
110
  other: show it to the person and record their words, as below.
99
111
  - A wake comes only when your turn ends, so while the team works, end your turn rather than watching its seats
@@ -107,7 +119,8 @@ task, without anyone asking you to check.
107
119
 
108
120
  ## The team's questions
109
121
 
110
- - Questions about your work come to your seat: `rig_queue_list` with `owned` lists them.
122
+ - Questions about your work come to this chat's own address when the work has one (`rig_queue_list` with `destination`
123
+ set to it), else to your seat (`rig_queue_list` with `owned`).
111
124
  - Show the person the question and the team's draft, in their own words where the item gives them. Then ask for an answer.
112
125
  - Record only what the person actually tells you, on the question's own task, never with `rig_send`: a message carries
113
126
  no return address, so the work it starts loses this chat's route, and its seats' prompts then reach no one. Claim
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openrig",
3
- "version": "0.7.24",
3
+ "version": "0.7.26",
4
4
  "description": "Work with your OpenRig team from your coding agent: hand it work, follow that work, answer its questions and read what it returns.",
5
5
  "author": {
6
6
  "name": "Mike Schwarz",