@openrig/cli 0.7.23 → 0.7.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (666) hide show
  1. package/README.md +7 -7
  2. package/daemon/assets/claude-hook-bridge.cjs +575 -6
  3. package/daemon/assets/claude-hook-bridge.d.cts +5 -0
  4. package/daemon/assets/claude-permission-policies.cjs +4 -3
  5. package/daemon/assets/guidance/openrig-context-entry.md +1 -0
  6. package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +4 -3
  7. package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +3 -2
  8. package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
  9. package/daemon/assets/plugins/openrig/README.md +64 -9
  10. package/daemon/assets/plugins/openrig/hooks/claude.json +39 -0
  11. package/daemon/assets/plugins/openrig/hooks/codex.json +27 -0
  12. package/daemon/assets/plugins/openrig/hooks/scripts/claude-hook-bridge.cjs +715 -0
  13. package/daemon/assets/plugins/openrig/plugin.json +1 -1
  14. package/daemon/assets/plugins/openrig/scripts/run-rig.cjs +30 -0
  15. package/daemon/assets/plugins/openrig/skills/working-with-an-openrig-team/SKILL.md +71 -9
  16. package/daemon/assets/plugins/openrig-codex/.agents/plugins/marketplace.json +15 -0
  17. package/daemon/assets/plugins/openrig-codex/.codex-plugin/plugin.json +42 -0
  18. package/daemon/assets/plugins/openrig-codex/LICENSE +200 -0
  19. package/daemon/assets/plugins/openrig-codex/assets/logo.svg +1 -0
  20. package/daemon/assets/plugins/openrig-codex/hooks/codex.json +27 -0
  21. package/daemon/assets/plugins/openrig-codex/hooks/scripts/claude-hook-bridge.cjs +715 -0
  22. package/daemon/assets/plugins/openrig-codex/skills/working-with-an-openrig-team/SKILL.md +175 -0
  23. package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
  24. package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
  25. package/daemon/assets/plugins/openrig-core/README.md +10 -2
  26. package/daemon/assets/plugins/openrig-core/hooks/claude.json +9 -0
  27. package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +37 -0
  28. package/daemon/assets/plugins/openrig-core/hooks/scripts/compaction-restore-bridge.cjs +3 -1
  29. package/daemon/assets/plugins/openrig-core/hooks/scripts/permission-answer.cjs +270 -0
  30. package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus.cjs +24 -6
  31. package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/precompact-hook.mjs +7 -8
  32. package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/restore-from-jsonl.mjs +45 -5
  33. package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +4 -2
  34. package/daemon/assets/plugins/openrig-core/skills/refocusing/scripts/trace-to-root.py +163 -23
  35. package/daemon/assets/skills/rigs/SKILL.md +122 -21
  36. package/daemon/context-packs/help/manifest.yaml +1 -1
  37. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  38. package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +113 -12
  39. package/daemon/context-packs/reference/acp-agents.md +9 -2
  40. package/daemon/context-packs/reference/getting-started.md +31 -7
  41. package/daemon/context-packs/reference/manifest.yaml +1 -1
  42. package/daemon/context-packs/reference/rig-spec.md +8 -0
  43. package/daemon/context-packs/reference/tmux-servers.md +16 -0
  44. package/daemon/context-packs/reference/whats-new.md +106 -12
  45. package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
  46. package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
  47. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
  48. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
  49. package/daemon/context-packs/skills/claude-compaction-restore/scripts/precompact-hook.mjs +7 -8
  50. package/daemon/context-packs/skills/claude-compaction-restore/scripts/restore-from-jsonl.mjs +45 -5
  51. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  52. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  53. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  54. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  55. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
  56. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  57. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  58. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
  59. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
  60. package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
  61. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
  62. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
  63. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
  64. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
  65. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
  66. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
  67. package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
  68. package/daemon/context-packs/skills/core/working-with-an-openrig-team/SKILL.md +71 -9
  69. package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
  70. package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
  71. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
  72. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
  73. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
  74. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
  75. package/daemon/context-packs/skills/openrig-user/SKILL.md +4 -2
  76. package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
  77. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
  78. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  79. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  80. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  81. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  82. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  83. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
  84. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  85. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  86. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  87. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  88. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  89. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
  90. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  91. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
  92. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  93. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
  94. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
  95. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
  96. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
  97. package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
  98. package/daemon/context-packs/skills/refocusing/scripts/trace-to-root.py +163 -23
  99. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
  100. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
  101. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
  102. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
  103. package/daemon/context-packs/world-example/manifest.yaml +1 -1
  104. package/daemon/context-packs/world-public/manifest.yaml +1 -1
  105. package/daemon/dist/adapters/claude-code-adapter.d.ts +10 -1
  106. package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
  107. package/daemon/dist/adapters/claude-code-adapter.js +231 -33
  108. package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
  109. package/daemon/dist/adapters/claude-resume-launch.d.ts +3 -0
  110. package/daemon/dist/adapters/claude-resume-launch.d.ts.map +1 -1
  111. package/daemon/dist/adapters/claude-resume-launch.js +5 -0
  112. package/daemon/dist/adapters/claude-resume-launch.js.map +1 -1
  113. package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
  114. package/daemon/dist/adapters/claude-resume.js +59 -21
  115. package/daemon/dist/adapters/claude-resume.js.map +1 -1
  116. package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts +22 -0
  117. package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
  118. package/daemon/dist/adapters/community-harness-runtime-adapter.js +53 -16
  119. package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
  120. package/daemon/dist/adapters/pi-community-runtime-adapter.d.ts +9 -0
  121. package/daemon/dist/adapters/pi-community-runtime-adapter.d.ts.map +1 -1
  122. package/daemon/dist/adapters/pi-community-runtime-adapter.js +6 -0
  123. package/daemon/dist/adapters/pi-community-runtime-adapter.js.map +1 -1
  124. package/daemon/dist/adapters/pi-runtime-adapter.d.ts +3 -0
  125. package/daemon/dist/adapters/pi-runtime-adapter.d.ts.map +1 -1
  126. package/daemon/dist/adapters/pi-runtime-adapter.js +9 -3
  127. package/daemon/dist/adapters/pi-runtime-adapter.js.map +1 -1
  128. package/daemon/dist/adapters/tmux.d.ts +52 -9
  129. package/daemon/dist/adapters/tmux.d.ts.map +1 -1
  130. package/daemon/dist/adapters/tmux.js +102 -19
  131. package/daemon/dist/adapters/tmux.js.map +1 -1
  132. package/daemon/dist/build-info.js +3 -3
  133. package/daemon/dist/conversation-key-surface.d.ts +2 -0
  134. package/daemon/dist/conversation-key-surface.d.ts.map +1 -0
  135. package/daemon/dist/conversation-key-surface.js +5 -0
  136. package/daemon/dist/conversation-key-surface.js.map +1 -0
  137. package/daemon/dist/daemon-shutdown.d.ts +3 -0
  138. package/daemon/dist/daemon-shutdown.d.ts.map +1 -1
  139. package/daemon/dist/daemon-shutdown.js +5 -0
  140. package/daemon/dist/daemon-shutdown.js.map +1 -1
  141. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  142. package/daemon/dist/db/all-migrations.js +8 -0
  143. package/daemon/dist/db/all-migrations.js.map +1 -1
  144. package/daemon/dist/db/migrations/179_community_harness_runtime_switches.d.ts +14 -0
  145. package/daemon/dist/db/migrations/179_community_harness_runtime_switches.d.ts.map +1 -0
  146. package/daemon/dist/db/migrations/179_community_harness_runtime_switches.js +54 -0
  147. package/daemon/dist/db/migrations/179_community_harness_runtime_switches.js.map +1 -0
  148. package/daemon/dist/db/migrations/195_workflow_start_operations.d.ts +4 -0
  149. package/daemon/dist/db/migrations/195_workflow_start_operations.d.ts.map +1 -0
  150. package/daemon/dist/db/migrations/195_workflow_start_operations.js +13 -0
  151. package/daemon/dist/db/migrations/195_workflow_start_operations.js.map +1 -0
  152. package/daemon/dist/db/migrations/196_queue_item_evidence_ref_roots.d.ts +5 -0
  153. package/daemon/dist/db/migrations/196_queue_item_evidence_ref_roots.d.ts.map +1 -0
  154. package/daemon/dist/db/migrations/196_queue_item_evidence_ref_roots.js +7 -0
  155. package/daemon/dist/db/migrations/196_queue_item_evidence_ref_roots.js.map +1 -0
  156. package/daemon/dist/db/migrations/199_queue_items_native_permission_index.d.ts +9 -0
  157. package/daemon/dist/db/migrations/199_queue_items_native_permission_index.d.ts.map +1 -0
  158. package/daemon/dist/db/migrations/199_queue_items_native_permission_index.js +14 -0
  159. package/daemon/dist/db/migrations/199_queue_items_native_permission_index.js.map +1 -0
  160. package/daemon/dist/domain/agent-manifest.d.ts.map +1 -1
  161. package/daemon/dist/domain/agent-manifest.js +8 -0
  162. package/daemon/dist/domain/agent-manifest.js.map +1 -1
  163. package/daemon/dist/domain/background-process-evidence.d.ts +23 -0
  164. package/daemon/dist/domain/background-process-evidence.d.ts.map +1 -0
  165. package/daemon/dist/domain/background-process-evidence.js +81 -0
  166. package/daemon/dist/domain/background-process-evidence.js.map +1 -0
  167. package/daemon/dist/domain/chat-repository.d.ts +1 -1
  168. package/daemon/dist/domain/chat-repository.d.ts.map +1 -1
  169. package/daemon/dist/domain/chat-repository.js +2 -2
  170. package/daemon/dist/domain/chat-repository.js.map +1 -1
  171. package/daemon/dist/domain/claude-compaction-enforcer.d.ts +16 -6
  172. package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
  173. package/daemon/dist/domain/claude-compaction-enforcer.js +13 -8
  174. package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
  175. package/daemon/dist/domain/codex-member-permissions.d.ts +35 -0
  176. package/daemon/dist/domain/codex-member-permissions.d.ts.map +1 -1
  177. package/daemon/dist/domain/codex-member-permissions.js +106 -1
  178. package/daemon/dist/domain/codex-member-permissions.js.map +1 -1
  179. package/daemon/dist/domain/community-harness-presets.d.ts +9 -0
  180. package/daemon/dist/domain/community-harness-presets.d.ts.map +1 -1
  181. package/daemon/dist/domain/community-harness-presets.js +25 -1
  182. package/daemon/dist/domain/community-harness-presets.js.map +1 -1
  183. package/daemon/dist/domain/current-work.d.ts +31 -4
  184. package/daemon/dist/domain/current-work.d.ts.map +1 -1
  185. package/daemon/dist/domain/current-work.js +48 -3
  186. package/daemon/dist/domain/current-work.js.map +1 -1
  187. package/daemon/dist/domain/feed/attention-aggregator.d.ts +5 -5
  188. package/daemon/dist/domain/feed/attention-aggregator.d.ts.map +1 -1
  189. package/daemon/dist/domain/feed/attention-aggregator.js +10 -4
  190. package/daemon/dist/domain/feed/attention-aggregator.js.map +1 -1
  191. package/daemon/dist/domain/files/path-safety.d.ts +7 -0
  192. package/daemon/dist/domain/files/path-safety.d.ts.map +1 -1
  193. package/daemon/dist/domain/files/path-safety.js +23 -0
  194. package/daemon/dist/domain/files/path-safety.js.map +1 -1
  195. package/daemon/dist/domain/frontmatter.d.ts.map +1 -1
  196. package/daemon/dist/domain/frontmatter.js +4 -2
  197. package/daemon/dist/domain/frontmatter.js.map +1 -1
  198. package/daemon/dist/domain/gateway/destination-resolver.d.ts +3 -0
  199. package/daemon/dist/domain/gateway/destination-resolver.d.ts.map +1 -1
  200. package/daemon/dist/domain/gateway/destination-resolver.js +9 -0
  201. package/daemon/dist/domain/gateway/destination-resolver.js.map +1 -1
  202. package/daemon/dist/domain/gateway/human-quiet-windows.d.ts.map +1 -1
  203. package/daemon/dist/domain/gateway/human-quiet-windows.js +2 -1
  204. package/daemon/dist/domain/gateway/human-quiet-windows.js.map +1 -1
  205. package/daemon/dist/domain/gateway/slack/inbound.d.ts +6 -1
  206. package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
  207. package/daemon/dist/domain/gateway/slack/inbound.js +4 -1
  208. package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
  209. package/daemon/dist/domain/gateway/slack/message.d.ts +3 -0
  210. package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
  211. package/daemon/dist/domain/gateway/slack/message.js +3 -2
  212. package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
  213. package/daemon/dist/domain/gateway/slack/outbound-driver.d.ts +4 -0
  214. package/daemon/dist/domain/gateway/slack/outbound-driver.d.ts.map +1 -1
  215. package/daemon/dist/domain/gateway/slack/outbound-driver.js +1 -0
  216. package/daemon/dist/domain/gateway/slack/outbound-driver.js.map +1 -1
  217. package/daemon/dist/domain/gateway/slack/queue-access.d.ts +2 -0
  218. package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
  219. package/daemon/dist/domain/gateway/slack/queue-access.js +1 -0
  220. package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
  221. package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +10 -2
  222. package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
  223. package/daemon/dist/domain/gateway/slack/slack-delivery.js +60 -6
  224. package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
  225. package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts +3 -13
  226. package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
  227. package/daemon/dist/domain/gateway/slack/slack-subsystem.js +70 -22
  228. package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
  229. package/daemon/dist/domain/health-detectors.d.ts +4 -0
  230. package/daemon/dist/domain/health-detectors.d.ts.map +1 -1
  231. package/daemon/dist/domain/health-detectors.js +4 -1
  232. package/daemon/dist/domain/health-detectors.js.map +1 -1
  233. package/daemon/dist/domain/health-diagnosis.d.ts.map +1 -1
  234. package/daemon/dist/domain/health-diagnosis.js +14 -9
  235. package/daemon/dist/domain/health-diagnosis.js.map +1 -1
  236. package/daemon/dist/domain/health-passive-ceremony.d.ts +2 -0
  237. package/daemon/dist/domain/health-passive-ceremony.d.ts.map +1 -1
  238. package/daemon/dist/domain/health-passive-ceremony.js +71 -13
  239. package/daemon/dist/domain/health-passive-ceremony.js.map +1 -1
  240. package/daemon/dist/domain/history-query.d.ts +1 -1
  241. package/daemon/dist/domain/history-query.d.ts.map +1 -1
  242. package/daemon/dist/domain/history-query.js +1 -2
  243. package/daemon/dist/domain/history-query.js.map +1 -1
  244. package/daemon/dist/domain/hosts/read-through.d.ts.map +1 -1
  245. package/daemon/dist/domain/hosts/read-through.js +6 -0
  246. package/daemon/dist/domain/hosts/read-through.js.map +1 -1
  247. package/daemon/dist/domain/managed-restore-read-access.d.ts +18 -0
  248. package/daemon/dist/domain/managed-restore-read-access.d.ts.map +1 -1
  249. package/daemon/dist/domain/managed-restore-read-access.js +41 -1
  250. package/daemon/dist/domain/managed-restore-read-access.js.map +1 -1
  251. package/daemon/dist/domain/mission-control/audit-browse.d.ts +1 -1
  252. package/daemon/dist/domain/mission-control/audit-browse.d.ts.map +1 -1
  253. package/daemon/dist/domain/mission-control/audit-browse.js +3 -6
  254. package/daemon/dist/domain/mission-control/audit-browse.js.map +1 -1
  255. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
  256. package/daemon/dist/domain/mission-control/mission-control-write-contract.js +21 -4
  257. package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
  258. package/daemon/dist/domain/native-resume-probe.d.ts +22 -0
  259. package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
  260. package/daemon/dist/domain/native-resume-probe.js +30 -0
  261. package/daemon/dist/domain/native-resume-probe.js.map +1 -1
  262. package/daemon/dist/domain/network/network-requests.d.ts +3 -2
  263. package/daemon/dist/domain/network/network-requests.d.ts.map +1 -1
  264. package/daemon/dist/domain/network/network-requests.js +34 -8
  265. package/daemon/dist/domain/network/network-requests.js.map +1 -1
  266. package/daemon/dist/domain/node-launcher.d.ts +2 -2
  267. package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
  268. package/daemon/dist/domain/node-launcher.js +9 -7
  269. package/daemon/dist/domain/node-launcher.js.map +1 -1
  270. package/daemon/dist/domain/pane-cutover.d.ts +36 -9
  271. package/daemon/dist/domain/pane-cutover.d.ts.map +1 -1
  272. package/daemon/dist/domain/pane-cutover.js +82 -13
  273. package/daemon/dist/domain/pane-cutover.js.map +1 -1
  274. package/daemon/dist/domain/projection-planner.d.ts +17 -3
  275. package/daemon/dist/domain/projection-planner.d.ts.map +1 -1
  276. package/daemon/dist/domain/projection-planner.js +9 -1
  277. package/daemon/dist/domain/projection-planner.js.map +1 -1
  278. package/daemon/dist/domain/queue-destination-check.d.ts +8 -0
  279. package/daemon/dist/domain/queue-destination-check.d.ts.map +1 -1
  280. package/daemon/dist/domain/queue-destination-check.js +17 -4
  281. package/daemon/dist/domain/queue-destination-check.js.map +1 -1
  282. package/daemon/dist/domain/queue-erasure.js +1 -1
  283. package/daemon/dist/domain/queue-repository.d.ts +20 -1
  284. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  285. package/daemon/dist/domain/queue-repository.js +93 -14
  286. package/daemon/dist/domain/queue-repository.js.map +1 -1
  287. package/daemon/dist/domain/queue-stuck-sweep.d.ts +23 -3
  288. package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
  289. package/daemon/dist/domain/queue-stuck-sweep.js +618 -13
  290. package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
  291. package/daemon/dist/domain/queue-transfer-export.d.ts +1 -1
  292. package/daemon/dist/domain/queue-transfer-export.d.ts.map +1 -1
  293. package/daemon/dist/domain/queue-transfer-export.js +3 -1
  294. package/daemon/dist/domain/queue-transfer-export.js.map +1 -1
  295. package/daemon/dist/domain/queue-transition-log.d.ts +6 -0
  296. package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
  297. package/daemon/dist/domain/queue-transition-log.js +1 -1
  298. package/daemon/dist/domain/queue-transition-log.js.map +1 -1
  299. package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
  300. package/daemon/dist/domain/queue-waiting.js +7 -0
  301. package/daemon/dist/domain/queue-waiting.js.map +1 -1
  302. package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
  303. package/daemon/dist/domain/queue-wake-ladder.js +20 -4
  304. package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
  305. package/daemon/dist/domain/rehydrate-eligibility.d.ts +8 -0
  306. package/daemon/dist/domain/rehydrate-eligibility.d.ts.map +1 -1
  307. package/daemon/dist/domain/rehydrate-eligibility.js +61 -9
  308. package/daemon/dist/domain/rehydrate-eligibility.js.map +1 -1
  309. package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
  310. package/daemon/dist/domain/restore-check-service.js +5 -2
  311. package/daemon/dist/domain/restore-check-service.js.map +1 -1
  312. package/daemon/dist/domain/restore-orchestrator.d.ts +3 -0
  313. package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
  314. package/daemon/dist/domain/restore-orchestrator.js +42 -0
  315. package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
  316. package/daemon/dist/domain/return-route.d.ts +13 -2
  317. package/daemon/dist/domain/return-route.d.ts.map +1 -1
  318. package/daemon/dist/domain/return-route.js +30 -1
  319. package/daemon/dist/domain/return-route.js.map +1 -1
  320. package/daemon/dist/domain/rig-lifecycle-service.d.ts +1 -0
  321. package/daemon/dist/domain/rig-lifecycle-service.d.ts.map +1 -1
  322. package/daemon/dist/domain/rig-lifecycle-service.js +23 -2
  323. package/daemon/dist/domain/rig-lifecycle-service.js.map +1 -1
  324. package/daemon/dist/domain/rig-mode/operating-posture.d.ts.map +1 -1
  325. package/daemon/dist/domain/rig-mode/operating-posture.js +23 -4
  326. package/daemon/dist/domain/rig-mode/operating-posture.js.map +1 -1
  327. package/daemon/dist/domain/rig-teardown.d.ts +30 -2
  328. package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
  329. package/daemon/dist/domain/rig-teardown.js +76 -8
  330. package/daemon/dist/domain/rig-teardown.js.map +1 -1
  331. package/daemon/dist/domain/rigspec-instantiator.d.ts +11 -9
  332. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  333. package/daemon/dist/domain/rigspec-instantiator.js +100 -43
  334. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  335. package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
  336. package/daemon/dist/domain/rigspec-preflight.js +26 -3
  337. package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
  338. package/daemon/dist/domain/roster-ready-notice.d.ts +11 -0
  339. package/daemon/dist/domain/roster-ready-notice.d.ts.map +1 -0
  340. package/daemon/dist/domain/roster-ready-notice.js +35 -0
  341. package/daemon/dist/domain/roster-ready-notice.js.map +1 -0
  342. package/daemon/dist/domain/runner-permissions.d.ts +140 -5
  343. package/daemon/dist/domain/runner-permissions.d.ts.map +1 -1
  344. package/daemon/dist/domain/runner-permissions.js +593 -16
  345. package/daemon/dist/domain/runner-permissions.js.map +1 -1
  346. package/daemon/dist/domain/runtime-adapter.d.ts +3 -1
  347. package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
  348. package/daemon/dist/domain/runtime-exit.d.ts +79 -0
  349. package/daemon/dist/domain/runtime-exit.d.ts.map +1 -0
  350. package/daemon/dist/domain/runtime-exit.js +301 -0
  351. package/daemon/dist/domain/runtime-exit.js.map +1 -0
  352. package/daemon/dist/domain/runtime-switch-materials.d.ts +4 -1
  353. package/daemon/dist/domain/runtime-switch-materials.d.ts.map +1 -1
  354. package/daemon/dist/domain/runtime-switch-materials.js +66 -13
  355. package/daemon/dist/domain/runtime-switch-materials.js.map +1 -1
  356. package/daemon/dist/domain/scope/attestation-lineage.generated.js +2 -2
  357. package/daemon/dist/domain/scope/attestation-lineage.generated.js.map +1 -1
  358. package/daemon/dist/domain/scope/logical-checkbox.d.ts.map +1 -1
  359. package/daemon/dist/domain/scope/logical-checkbox.js +18 -0
  360. package/daemon/dist/domain/scope/logical-checkbox.js.map +1 -1
  361. package/daemon/dist/domain/scope/scaffold-placeholder.js +2 -2
  362. package/daemon/dist/domain/scope/scaffold-placeholder.js.map +1 -1
  363. package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
  364. package/daemon/dist/domain/seat-attention-reconciler.js +5 -2
  365. package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
  366. package/daemon/dist/domain/seat-handover-service.d.ts +5 -2
  367. package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
  368. package/daemon/dist/domain/seat-handover-service.js +30 -6
  369. package/daemon/dist/domain/seat-handover-service.js.map +1 -1
  370. package/daemon/dist/domain/seat-identity-reconciler.d.ts +18 -0
  371. package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
  372. package/daemon/dist/domain/seat-identity-reconciler.js +155 -6
  373. package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
  374. package/daemon/dist/domain/seat-launch-environment.d.ts +6 -0
  375. package/daemon/dist/domain/seat-launch-environment.d.ts.map +1 -1
  376. package/daemon/dist/domain/seat-launch-environment.js +28 -4
  377. package/daemon/dist/domain/seat-launch-environment.js.map +1 -1
  378. package/daemon/dist/domain/seat-lifecycle-service.d.ts +37 -1
  379. package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
  380. package/daemon/dist/domain/seat-lifecycle-service.js +44 -8
  381. package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
  382. package/daemon/dist/domain/seat-pool-executor.d.ts +61 -3
  383. package/daemon/dist/domain/seat-pool-executor.d.ts.map +1 -1
  384. package/daemon/dist/domain/seat-pool-executor.js +735 -59
  385. package/daemon/dist/domain/seat-pool-executor.js.map +1 -1
  386. package/daemon/dist/domain/seat-pool-slots.d.ts +24 -0
  387. package/daemon/dist/domain/seat-pool-slots.d.ts.map +1 -1
  388. package/daemon/dist/domain/seat-pool-slots.js +50 -0
  389. package/daemon/dist/domain/seat-pool-slots.js.map +1 -1
  390. package/daemon/dist/domain/seat-runtime-switch-service.d.ts +2 -1
  391. package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
  392. package/daemon/dist/domain/seat-runtime-switch-service.js +68 -20
  393. package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
  394. package/daemon/dist/domain/session-transport.d.ts.map +1 -1
  395. package/daemon/dist/domain/session-transport.js +9 -2
  396. package/daemon/dist/domain/session-transport.js.map +1 -1
  397. package/daemon/dist/domain/skill-catalog.d.ts.map +1 -1
  398. package/daemon/dist/domain/skill-catalog.js +24 -10
  399. package/daemon/dist/domain/skill-catalog.js.map +1 -1
  400. package/daemon/dist/domain/startup-orchestrator.d.ts +5 -1
  401. package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
  402. package/daemon/dist/domain/startup-orchestrator.js +43 -7
  403. package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
  404. package/daemon/dist/domain/startup-submission-evidence.d.ts +1 -0
  405. package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
  406. package/daemon/dist/domain/startup-submission-evidence.js +5 -0
  407. package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
  408. package/daemon/dist/domain/stream-reader-actions.d.ts +23 -0
  409. package/daemon/dist/domain/stream-reader-actions.d.ts.map +1 -1
  410. package/daemon/dist/domain/stream-reader-actions.js +43 -0
  411. package/daemon/dist/domain/stream-reader-actions.js.map +1 -1
  412. package/daemon/dist/domain/successor-session-launcher.d.ts +24 -3
  413. package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
  414. package/daemon/dist/domain/successor-session-launcher.js +54 -23
  415. package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
  416. package/daemon/dist/domain/terminal/earlier-tile-attach-0723.d.ts +2 -0
  417. package/daemon/dist/domain/terminal/earlier-tile-attach-0723.d.ts.map +1 -0
  418. package/daemon/dist/domain/terminal/earlier-tile-attach-0723.js +48 -0
  419. package/daemon/dist/domain/terminal/earlier-tile-attach-0723.js.map +1 -0
  420. package/daemon/dist/domain/terminal/rex-agent-status.d.ts.map +1 -1
  421. package/daemon/dist/domain/terminal/rex-agent-status.js +5 -2
  422. package/daemon/dist/domain/terminal/rex-agent-status.js.map +1 -1
  423. package/daemon/dist/domain/terminal/tile-attach.d.ts +11 -5
  424. package/daemon/dist/domain/terminal/tile-attach.d.ts.map +1 -1
  425. package/daemon/dist/domain/terminal/tile-attach.js +32 -12
  426. package/daemon/dist/domain/terminal/tile-attach.js.map +1 -1
  427. package/daemon/dist/domain/transcript-redaction.d.ts +10 -8
  428. package/daemon/dist/domain/transcript-redaction.d.ts.map +1 -1
  429. package/daemon/dist/domain/transcript-redaction.js +51 -22
  430. package/daemon/dist/domain/transcript-redaction.js.map +1 -1
  431. package/daemon/dist/domain/types.d.ts +7 -1
  432. package/daemon/dist/domain/types.d.ts.map +1 -1
  433. package/daemon/dist/domain/types.js +3 -0
  434. package/daemon/dist/domain/types.js.map +1 -1
  435. package/daemon/dist/domain/whoami-service.d.ts +11 -0
  436. package/daemon/dist/domain/whoami-service.d.ts.map +1 -1
  437. package/daemon/dist/domain/whoami-service.js +13 -0
  438. package/daemon/dist/domain/whoami-service.js.map +1 -1
  439. package/daemon/dist/domain/workflow-reconciliation.d.ts.map +1 -1
  440. package/daemon/dist/domain/workflow-reconciliation.js +9 -0
  441. package/daemon/dist/domain/workflow-reconciliation.js.map +1 -1
  442. package/daemon/dist/domain/workflow-runtime.d.ts +2 -0
  443. package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
  444. package/daemon/dist/domain/workflow-runtime.js +45 -2
  445. package/daemon/dist/domain/workflow-runtime.js.map +1 -1
  446. package/daemon/dist/routes/activity.d.ts.map +1 -1
  447. package/daemon/dist/routes/activity.js +59 -2
  448. package/daemon/dist/routes/activity.js.map +1 -1
  449. package/daemon/dist/routes/compaction.d.ts.map +1 -1
  450. package/daemon/dist/routes/compaction.js +26 -9
  451. package/daemon/dist/routes/compaction.js.map +1 -1
  452. package/daemon/dist/routes/queue.d.ts.map +1 -1
  453. package/daemon/dist/routes/queue.js +64 -25
  454. package/daemon/dist/routes/queue.js.map +1 -1
  455. package/daemon/dist/routes/require-sender-identity.d.ts +15 -0
  456. package/daemon/dist/routes/require-sender-identity.d.ts.map +1 -1
  457. package/daemon/dist/routes/require-sender-identity.js +51 -5
  458. package/daemon/dist/routes/require-sender-identity.js.map +1 -1
  459. package/daemon/dist/routes/seat.js +6 -0
  460. package/daemon/dist/routes/seat.js.map +1 -1
  461. package/daemon/dist/routes/stream.d.ts.map +1 -1
  462. package/daemon/dist/routes/stream.js +28 -1
  463. package/daemon/dist/routes/stream.js.map +1 -1
  464. package/daemon/dist/routes/workflow.d.ts.map +1 -1
  465. package/daemon/dist/routes/workflow.js +48 -41
  466. package/daemon/dist/routes/workflow.js.map +1 -1
  467. package/daemon/dist/server.d.ts.map +1 -1
  468. package/daemon/dist/server.js +17 -1
  469. package/daemon/dist/server.js.map +1 -1
  470. package/daemon/dist/startup.d.ts.map +1 -1
  471. package/daemon/dist/startup.js +34 -6
  472. package/daemon/dist/startup.js.map +1 -1
  473. package/daemon/dist/transcript-redaction-surface.d.ts +2 -0
  474. package/daemon/dist/transcript-redaction-surface.d.ts.map +1 -0
  475. package/daemon/dist/transcript-redaction-surface.js +2 -0
  476. package/daemon/dist/transcript-redaction-surface.js.map +1 -0
  477. package/daemon/docs/reference/acp-agents.md +9 -2
  478. package/daemon/docs/reference/agent-spec.md +22 -1
  479. package/daemon/docs/reference/agent-startup-guide.md +10 -0
  480. package/daemon/docs/reference/community-harness-examples/cursor/cursor.yaml +3 -1
  481. package/daemon/docs/reference/community-harness-presets.md +27 -2
  482. package/daemon/docs/reference/daemon-http-clients.md +57 -0
  483. package/daemon/docs/reference/developing.md +3 -2
  484. package/daemon/docs/reference/getting-started.md +31 -7
  485. package/daemon/docs/reference/harness-runner-contract.md +72 -0
  486. package/daemon/docs/reference/hosted-members.md +21 -2
  487. package/daemon/docs/reference/network-connector.md +32 -3
  488. package/daemon/docs/reference/quickstart.md +4 -4
  489. package/daemon/docs/reference/refocus-channel.md +48 -0
  490. package/daemon/docs/reference/rig-bundle.md +11 -1
  491. package/daemon/docs/reference/rig-spec.md +8 -0
  492. package/daemon/docs/reference/seat-node-targeting.md +10 -0
  493. package/daemon/docs/reference/seat-pools.md +76 -10
  494. package/daemon/docs/reference/slack-app-setup.md +15 -0
  495. package/daemon/docs/reference/terminal-sessions.md +71 -3
  496. package/daemon/docs/reference/tmux-servers.md +16 -0
  497. package/daemon/docs/reference/whats-new.md +106 -12
  498. package/daemon/specs/agents/shared/skills/core/working-with-an-openrig-team/SKILL.md +71 -9
  499. package/daemon/specs/rigs/launch/factory/guidance/lead-first-move.md +4 -1
  500. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +2 -1
  501. package/daemon/specs/rigs/launch/starter/guidance/lead-first-move.md +4 -1
  502. package/dist/bin-wrapper.d.ts.map +1 -1
  503. package/dist/bin-wrapper.js +24 -5
  504. package/dist/bin-wrapper.js.map +1 -1
  505. package/dist/build-info.js +3 -3
  506. package/dist/client.d.ts +4 -0
  507. package/dist/client.d.ts.map +1 -1
  508. package/dist/client.js +7 -1
  509. package/dist/client.js.map +1 -1
  510. package/dist/commands/add.js +1 -1
  511. package/dist/commands/add.js.map +1 -1
  512. package/dist/commands/agent.js +1 -1
  513. package/dist/commands/agent.js.map +1 -1
  514. package/dist/commands/bundle.d.ts.map +1 -1
  515. package/dist/commands/bundle.js +18 -4
  516. package/dist/commands/bundle.js.map +1 -1
  517. package/dist/commands/create.d.ts.map +1 -1
  518. package/dist/commands/create.js +6 -2
  519. package/dist/commands/create.js.map +1 -1
  520. package/dist/commands/down.d.ts.map +1 -1
  521. package/dist/commands/down.js +12 -1
  522. package/dist/commands/down.js.map +1 -1
  523. package/dist/commands/expand.js +1 -1
  524. package/dist/commands/expand.js.map +1 -1
  525. package/dist/commands/fork.js +1 -1
  526. package/dist/commands/fork.js.map +1 -1
  527. package/dist/commands/grow.d.ts.map +1 -1
  528. package/dist/commands/grow.js +9 -4
  529. package/dist/commands/grow.js.map +1 -1
  530. package/dist/commands/import.js +1 -1
  531. package/dist/commands/import.js.map +1 -1
  532. package/dist/commands/mcp.d.ts.map +1 -1
  533. package/dist/commands/mcp.js +57 -22
  534. package/dist/commands/mcp.js.map +1 -1
  535. package/dist/commands/network.d.ts +2 -3
  536. package/dist/commands/network.d.ts.map +1 -1
  537. package/dist/commands/network.js +54 -9
  538. package/dist/commands/network.js.map +1 -1
  539. package/dist/commands/ps.d.ts +1 -0
  540. package/dist/commands/ps.d.ts.map +1 -1
  541. package/dist/commands/ps.js +22 -19
  542. package/dist/commands/ps.js.map +1 -1
  543. package/dist/commands/queue.d.ts +2 -0
  544. package/dist/commands/queue.d.ts.map +1 -1
  545. package/dist/commands/queue.js +29 -6
  546. package/dist/commands/queue.js.map +1 -1
  547. package/dist/commands/reconcile-session.js +1 -1
  548. package/dist/commands/reconcile-session.js.map +1 -1
  549. package/dist/commands/restore.js +1 -1
  550. package/dist/commands/restore.js.map +1 -1
  551. package/dist/commands/rig.js +2 -2
  552. package/dist/commands/rig.js.map +1 -1
  553. package/dist/commands/seat.d.ts.map +1 -1
  554. package/dist/commands/seat.js +55 -16
  555. package/dist/commands/seat.js.map +1 -1
  556. package/dist/commands/skill.js +1 -1
  557. package/dist/commands/skill.js.map +1 -1
  558. package/dist/commands/start.d.ts.map +1 -1
  559. package/dist/commands/start.js +3 -2
  560. package/dist/commands/start.js.map +1 -1
  561. package/dist/commands/terminal.d.ts.map +1 -1
  562. package/dist/commands/terminal.js +20 -4
  563. package/dist/commands/terminal.js.map +1 -1
  564. package/dist/commands/up.d.ts.map +1 -1
  565. package/dist/commands/up.js +2 -1
  566. package/dist/commands/up.js.map +1 -1
  567. package/dist/commands/whoami.d.ts.map +1 -1
  568. package/dist/commands/whoami.js +6 -0
  569. package/dist/commands/whoami.js.map +1 -1
  570. package/dist/commands/workflow-follow.d.ts.map +1 -1
  571. package/dist/commands/workflow-follow.js +37 -34
  572. package/dist/commands/workflow-follow.js.map +1 -1
  573. package/dist/commands/workflow-render.d.ts +1 -1
  574. package/dist/commands/workflow-render.d.ts.map +1 -1
  575. package/dist/commands/workflow-render.js +2 -7
  576. package/dist/commands/workflow-render.js.map +1 -1
  577. package/dist/commands/workflow.d.ts.map +1 -1
  578. package/dist/commands/workflow.js +22 -2
  579. package/dist/commands/workflow.js.map +1 -1
  580. package/dist/daemon-lifecycle.d.ts +24 -0
  581. package/dist/daemon-lifecycle.d.ts.map +1 -1
  582. package/dist/daemon-lifecycle.js +45 -8
  583. package/dist/daemon-lifecycle.js.map +1 -1
  584. package/dist/lib/bundle-source.d.ts +4 -0
  585. package/dist/lib/bundle-source.d.ts.map +1 -1
  586. package/dist/lib/bundle-source.js +14 -2
  587. package/dist/lib/bundle-source.js.map +1 -1
  588. package/dist/lib/context-git.js +2 -2
  589. package/dist/lib/context-git.js.map +1 -1
  590. package/dist/lib/frontmatter.d.ts.map +1 -1
  591. package/dist/lib/frontmatter.js +4 -2
  592. package/dist/lib/frontmatter.js.map +1 -1
  593. package/dist/lib/scope/attestation-lineage.js +2 -2
  594. package/dist/lib/scope/attestation-lineage.js.map +1 -1
  595. package/dist/lib/scope/logical-checkbox.d.ts.map +1 -1
  596. package/dist/lib/scope/logical-checkbox.js +18 -0
  597. package/dist/lib/scope/logical-checkbox.js.map +1 -1
  598. package/dist/lib/scope/progress-edit.js +1 -1
  599. package/dist/lib/scope/progress-edit.js.map +1 -1
  600. package/dist/lib/scope/scaffold-placeholder.js +2 -2
  601. package/dist/lib/scope/scaffold-placeholder.js.map +1 -1
  602. package/dist/lib/terminal-cell.d.ts +5 -0
  603. package/dist/lib/terminal-cell.d.ts.map +1 -0
  604. package/dist/lib/terminal-cell.js +22 -0
  605. package/dist/lib/terminal-cell.js.map +1 -0
  606. package/dist/mcp-http.d.ts +1 -1
  607. package/dist/mcp-http.d.ts.map +1 -1
  608. package/dist/mcp-http.js +6 -3
  609. package/dist/mcp-http.js.map +1 -1
  610. package/dist/mcp-server.d.ts +5 -1
  611. package/dist/mcp-server.d.ts.map +1 -1
  612. package/dist/mcp-server.js +111 -13
  613. package/dist/mcp-server.js.map +1 -1
  614. package/dist/release-surface/extract-surface.d.ts.map +1 -1
  615. package/dist/release-surface/extract-surface.js +38 -20
  616. package/dist/release-surface/extract-surface.js.map +1 -1
  617. package/dist/release-surface/generate.d.ts.map +1 -1
  618. package/dist/release-surface/generate.js +3 -0
  619. package/dist/release-surface/generate.js.map +1 -1
  620. package/dist/release-surface/surface-diff.d.ts +1 -0
  621. package/dist/release-surface/surface-diff.d.ts.map +1 -1
  622. package/dist/release-surface/surface-diff.js +19 -18
  623. package/dist/release-surface/surface-diff.js.map +1 -1
  624. package/dist/restore-packet/redaction.d.ts +4 -26
  625. package/dist/restore-packet/redaction.d.ts.map +1 -1
  626. package/dist/restore-packet/redaction.js +19 -63
  627. package/dist/restore-packet/redaction.js.map +1 -1
  628. package/dist/terminal-orca.d.ts +7 -0
  629. package/dist/terminal-orca.d.ts.map +1 -0
  630. package/dist/terminal-orca.js +239 -0
  631. package/dist/terminal-orca.js.map +1 -0
  632. package/package.json +1 -1
  633. package/tui/dist/connected-assistants.d.ts +1 -1
  634. package/tui/dist/connected-assistants.d.ts.map +1 -1
  635. package/tui/dist/connected-assistants.js +3 -1
  636. package/tui/dist/connected-assistants.js.map +1 -1
  637. package/tui/dist/daemon-client.d.ts +4 -0
  638. package/tui/dist/daemon-client.d.ts.map +1 -1
  639. package/tui/dist/daemon-client.js +12 -8
  640. package/tui/dist/daemon-client.js.map +1 -1
  641. package/tui/dist/health/health-model.d.ts.map +1 -1
  642. package/tui/dist/health/health-model.js +2 -0
  643. package/tui/dist/health/health-model.js.map +1 -1
  644. package/tui/dist/hydrate.d.ts +3 -1
  645. package/tui/dist/hydrate.d.ts.map +1 -1
  646. package/tui/dist/hydrate.js +40 -25
  647. package/tui/dist/hydrate.js.map +1 -1
  648. package/tui/dist/live.d.ts +5 -1
  649. package/tui/dist/live.d.ts.map +1 -1
  650. package/tui/dist/live.js +20 -2
  651. package/tui/dist/live.js.map +1 -1
  652. package/tui/dist/main.js +5 -2
  653. package/tui/dist/main.js.map +1 -1
  654. package/tui/dist/pulse/pulse-model.d.ts.map +1 -1
  655. package/tui/dist/pulse/pulse-model.js +3 -2
  656. package/tui/dist/pulse/pulse-model.js.map +1 -1
  657. package/tui/dist/render.d.ts.map +1 -1
  658. package/tui/dist/render.js +6 -5
  659. package/tui/dist/render.js.map +1 -1
  660. package/tui/dist/types.d.ts +10 -4
  661. package/tui/dist/types.d.ts.map +1 -1
  662. package/ui/dist/assets/index-Chh-NS8Z.css +32 -0
  663. package/ui/dist/assets/index-DG_7XFcL.js +628 -0
  664. package/ui/dist/index.html +2 -2
  665. package/ui/dist/assets/index-B-sMy02c.js +0 -623
  666. package/ui/dist/assets/index-DiN7RwWg.css +0 -32
@@ -7,6 +7,7 @@ import { DaemonClient, DaemonConnectionError, DaemonTimeoutError, operatorAuthHe
7
7
  import { bearerAuthHeaders, loadHostRegistry, resolveHost, resolveRemoteBearer } from "./host-registry.js";
8
8
  import { loadHostBindings } from "./host-bindings.js";
9
9
  import { eligibleQueueBindings, ineligibleBindingDetail } from "../daemon/dist/learned-host-bindings-surface.js";
10
+ import { CONVERSATION_KEY_TAG_PREFIX, conversationKeyTag } from "../daemon/dist/conversation-key-surface.js";
10
11
  import { readOpenRigEnv } from "./openrig-compat.js";
11
12
  import { resolveRigHandle } from "./rig-handle.js";
12
13
  import { formatSeatActivity } from "./lib/seat-activity.js";
@@ -467,6 +468,13 @@ export const CALLER_SHAPED = /^cus-[^@][^@-]*-[^@]+@[^@]+$/;
467
468
  * place of the body. An external caller's create can't claim them; its other tags (`workflow` and
468
469
  * `workflow:`/`instance:` among them) are kept. */
469
470
  const OPENRIG_PROVENANCE_TAG = /^(?:founder-slack|inbound|shared-channel|gate)$|^participant:|^slack-/;
471
+ /** A caller's tags as this server passes them on: without OpenRig's provenance tags from an external caller (above), and
472
+ * without a `conversation-key:` tag from any caller. That key is OpenRig's own record of which conversation handed work
473
+ * over (slice 15): the openrig plugin's hooks take an address issued beside it as that conversation's, so only the key a
474
+ * stdio server derives itself is ever added. A dropped tag is never a refusal: the rest of the request goes on. */
475
+ function callerTags(tags, external) {
476
+ return tags?.filter((tag) => !tag.startsWith(CONVERSATION_KEY_TAG_PREFIX) && !(external && OPENRIG_PROVENANCE_TAG.test(tag)));
477
+ }
470
478
  /** An external grant (openrig.grant/v1): a requester, narrower than a work grant. The grant's own seat is the
471
479
  * only caller. It may hand tasks to its rigs' other seats (never a person or another host's seat, and without team/list
472
480
  * never a caller-shaped seat), read the items it sent and those addressed to it from those seats or from an external
@@ -637,6 +645,10 @@ const EXTERNAL_TOOLS = {
637
645
  artifact: { read: "rig_artifact_read" },
638
646
  question: { read: "rig_question_list", answer: "rig_question_answer" },
639
647
  };
648
+ export function toolForGrantOperation(object, action) {
649
+ const actions = Object.hasOwn(EXTERNAL_TOOLS, object) ? EXTERNAL_TOOLS[object] : undefined;
650
+ return actions && Object.hasOwn(actions, action) ? actions[action] : undefined;
651
+ }
640
652
  /** The person a caller's grant names: an external grant's, or a token-file grant's own binding. */
641
653
  const personOf = (access) => access?.external ? access.external.person : access?.person;
642
654
  /** A person tool (access class `person`) acts for the person an external grant names, so a grant without a person isn't
@@ -646,7 +658,7 @@ function externalTools(external) {
646
658
  const tools = new Set();
647
659
  for (const [object, actions] of Object.entries(external.objects)) {
648
660
  for (const action of Array.isArray(actions) ? actions : []) {
649
- const tool = Object.hasOwn(EXTERNAL_TOOLS, object) && Object.hasOwn(EXTERNAL_TOOLS[object], action) ? EXTERNAL_TOOLS[object][action] : undefined;
661
+ const tool = toolForGrantOperation(object, action);
650
662
  if (tool && (!personTool(tool) || external.person))
651
663
  tools.add(tool);
652
664
  }
@@ -696,6 +708,7 @@ export const MCP_OPERATIONS = [
696
708
  { tool: "rig_queue_decide", routes: ["POST /api/queue/:qitemId/delegated-decision"], effect: "destructive", access: "work" },
697
709
  { tool: "rig_queue_handoff", routes: ["POST /api/queue/:qitemId/handoff"], effect: "destructive", access: "work" },
698
710
  { tool: "rig_queue_unclaim", routes: ["POST /api/queue/:qitemId/unclaim"], effect: "destructive", access: "work" },
711
+ { tool: "rig_seat_decide_permission", routes: ["POST /api/activity/permission-requests/:askId/decide"], effect: "destructive", access: "work" },
699
712
  ];
700
713
  /** How a member works its inbox, and asks a person while keeping the work: one versioned text, carried in this server's
701
714
  * instructions and quoted in docs/reference/hosted-members.md. Change it here, bump the version, and update the quote. */
@@ -756,14 +769,14 @@ function askWhichAssistant(canList, frontDoor) {
756
769
  }
757
770
  /** rig mcp serve --front-door: the seat is a person's agent in their own app, the front door to their team, not a member
758
771
  * that works its inbox. The team's questions to it are the person's to answer. */
759
- export const FRONT_DOOR_WORKFLOW_VERSION = "front-door/v4";
772
+ export const FRONT_DOOR_WORKFLOW_VERSION = "front-door/v5";
760
773
  export const FRONT_DOOR_WORKFLOW = [
761
774
  `Front door (${FRONT_DOOR_WORKFLOW_VERSION}). This seat is a person's agent in their own app: you hand the team their work and bring back what it produced, and you aren't one of its members.`,
762
775
  "The team's questions are the person's, and an answer covers only the question it answered: a later one, even one like it, goes back to them, unless they told you outright to decide that kind of question. Approving a plan, a task or 'go ahead' isn't an answer to the questions that work raises. Never tell the team they approved something, or will answer a question, unless they said so, and don't send them to a seat's terminal to answer the team's questions: those come to this seat as items.",
763
776
  askWhichAssistant(true, true),
764
777
  "Items addressed to your seat (rig_queue_list with owned set) are usually the team's questions about work you handed it. They're the person's to answer, not yours: show each to the person with the team's draft, and record only what the person tells you.",
765
778
  "To record an answer, claim the item (rig_queue_claim), then close it done with closure reason no-follow-on and exactly what the person typed in resolution, with no label, quotation marks or words of your own (rig_queue_update). If the person isn't there, leave the item open and tell them it's waiting. Never choose an answer for them unless they told you outright to decide that kind of question: then answer only what's clearly inside it, and say in resolution that you decided under their instruction, not that they answered, and tell them you did. Don't claim an item you can't close with their words or under such an instruction.",
766
- "Nothing wakes this conversation when the team finishes, and it has no wake of its own: tell the person you'll check when they ask, then check your work and your items when they ask or come back. Offer a wake only where their app actually has one, such as Claude Desktop's scheduled tasks.",
779
+ "Where the app runs the openrig plugin's hooks (Claude Code, Codex), a task that reaches an address OpenRig issued to this conversation is brought into it with its recorded sender. Otherwise nothing wakes this conversation when the team finishes, and it has no wake of its own: tell the person you'll check when they ask, then check your work and your items when they ask or come back. Offer a wake only where their app actually has one, such as Claude Desktop's scheduled tasks.",
767
780
  ].join(" ");
768
781
  const FRONT_DOOR_INSTRUCTIONS = [...SHARED_INSTRUCTIONS, FRONT_DOOR_WORKFLOW].join("\n");
769
782
  // An external caller's first paragraph says what the connection is for, on its own: a client may show the model only the
@@ -1135,6 +1148,49 @@ export function createMcpServer(client, options = {}) {
1135
1148
  const name = (detail.data ?? {}).rig?.name;
1136
1149
  return scope?.rig(name) ? name : outOfScope(`Rig ${handle}`);
1137
1150
  };
1151
+ /** Every row tagged with this conversation's key, widening the page until it holds them all, as the hook bridge's
1152
+ * conversationRows does; none when a read fails. */
1153
+ const issuedRows = async (tag) => {
1154
+ for (let limit = 100;; limit *= 2) {
1155
+ const res = await client.get(`/api/queue/list?${new URLSearchParams({ tag, limit: String(limit) }).toString()}`);
1156
+ if (res.status >= 400 || !Array.isArray(res.data))
1157
+ return [];
1158
+ if (res.data.length < limit)
1159
+ return res.data;
1160
+ }
1161
+ };
1162
+ /** With no seat, the address OpenRig issued this stdio server's own conversation (under the conversation key it derives
1163
+ * itself, as its creates record it), when `qitemId` is addressed there: the conversation then acts as that address, as
1164
+ * `OPENRIG_SESSION_NAME=<address> rig ...` does in a shell. That's attribution, not proof of a person (a relay still
1165
+ * reads relayed and unconfirmed). Null otherwise, or when a read fails: the call goes as before. */
1166
+ const ownConversationAddress = async (qitemId) => {
1167
+ const key = !access && !seatOf() ? options.conversationKey?.() ?? null : null;
1168
+ if (!key)
1169
+ return null;
1170
+ try {
1171
+ if ((await client.senderIdentity()).session)
1172
+ return null;
1173
+ const tag = conversationKeyTag(key);
1174
+ const [item, rows] = await Promise.all([client.get(`/api/queue/${encodeURIComponent(qitemId)}`), issuedRows(tag)]);
1175
+ const address = item.status < 400 ? item.data?.destinationSession : undefined;
1176
+ return typeof address === "string" && rows.some((row) => row.returnRoute === address && (row.returnRouteBasis === "issued"
1177
+ || row.returnRouteBasis === "issued-actor") && Array.isArray(row.tags) && row.tags.includes(tag)) ? address : null;
1178
+ }
1179
+ catch {
1180
+ return null;
1181
+ }
1182
+ };
1183
+ /** The client a call on `qitemId` goes through: bound to this conversation's issued address when the item is addressed
1184
+ * there (ownConversationAddress), so a seatless conversation claims, closes or decides its own items as that address;
1185
+ * else this server's own. */
1186
+ const clientFor = async (qitemId) => {
1187
+ const address = await ownConversationAddress(qitemId);
1188
+ if (!address)
1189
+ return client;
1190
+ const bound = clientFactory(client.baseUrl);
1191
+ bound.bindSender(address);
1192
+ return bound;
1193
+ };
1138
1194
  const rigOutOfScope = async (handle) => {
1139
1195
  if (!scope)
1140
1196
  return null;
@@ -1173,7 +1229,7 @@ export function createMcpServer(client, options = {}) {
1173
1229
  inputSchema: z.object({
1174
1230
  rigId: z.string().describe("Rig name or identifier to tear down"),
1175
1231
  delete: z.boolean().optional().describe("Delete rig record after stopping"),
1176
- force: z.boolean().optional().describe("Kill sessions immediately"),
1232
+ force: z.boolean().optional().describe("Close the seats' terminals at once, without first letting each agent exit through its own shutdown"),
1177
1233
  snapshot: z.boolean().optional().describe("Take snapshot before teardown"),
1178
1234
  }),
1179
1235
  annotations: DESTRUCTIVE,
@@ -1650,10 +1706,11 @@ export function createMcpServer(client, options = {}) {
1650
1706
  tier: z.string().optional().describe("Tier (as rig queue create --tier)"),
1651
1707
  qitemId: z.string().optional().describe("A request id you choose, unique to this request (for example qitem- and random letters), so an uncertain create can be checked by it; pass the same one to retry, never a new one (default: a new id)"),
1652
1708
  revises: z.string().optional().describe("The qitemId of the work this asks to revise"),
1709
+ returnRoute: z.string().optional().describe("Where this work's questions and its seats' prompts come back to you as tasks (as rig queue create --return-route): auto issues an address for this conversation, and is the default when this connection has no seat of its own; self takes this seat's own address."),
1653
1710
  alert: z.boolean().optional().describe("For an ask to a person that's urgent: something only they can do, or an approval whose wait costs now (as rig queue create --alert). It stands out in Slack. Without it the ask still posts to Slack unless the person's Slack subscription is urgent-only, in which case it waits on Steering and the TUI"),
1654
1711
  host: z.string().min(1).optional().describe("Act on a REGISTERED remote host's daemon instead of this one (rig host list shows the hosts; as --host on the matching rig verb); a write there names this server's seat (rig_whoami) as its sender, as a local write does"),
1655
1712
  }),
1656
- }, async ({ destination, body, summary, tags, priority, tier, qitemId, revises, alert, host }) => {
1713
+ }, async ({ destination, body, summary, tags, priority, tier, qitemId, revises, alert, host, returnRoute }) => {
1657
1714
  const target = hostTarget(host);
1658
1715
  if ("content" in target)
1659
1716
  return target;
@@ -1771,11 +1828,24 @@ export function createMcpServer(client, options = {}) {
1771
1828
  }
1772
1829
  // With no seat, the task goes to its destination as from the unknown sender, with the note at the top of its body.
1773
1830
  const note = unknownSenderNote("task");
1831
+ // Slice 15: the key of the conversation (Claude Code or Codex) that started this stdio server, on this host's daemon.
1832
+ // A connection with no seat whose conversation has one asks for an issued return route by default, so the team's
1833
+ // questions about this work come back to it, where the openrig plugin's hooks find them under that key; the issued
1834
+ // address is then the row's declared sender (claimed:v1), and the note says where the questions go instead of "no
1835
+ // return address". With no key (another app, an HTTP connection, another host's daemon) nothing could read that
1836
+ // address, so the create keeps the unknown sender and the usual path for its questions.
1837
+ const wantsKey = !access && !target.remote && (returnRoute === undefined ? note !== null : returnRoute.trim() === "auto");
1838
+ const key = wantsKey ? options.conversationKey?.() ?? null : null;
1839
+ const route = returnRoute ?? (note && key ? "auto" : undefined);
1840
+ const taskNote = note && route === "auto"
1841
+ ? note.replace(/ There's no return address: it follows this by its task id\.\]$/, " Its team's questions come back to this conversation's issued return route.]") : note;
1842
+ const sentTags = callerTags(tags, !!access?.external);
1774
1843
  try {
1775
1844
  const res = await hostPost(target, "/api/queue/create", {
1776
- qitemId: id, destinationSession: destination, body: note ? `${note}\n\n${lineage?.body ?? body}` : lineage?.body ?? body,
1777
- ...(note ? { sourceSession: unknownSender } : {}), summary, priority, tier,
1778
- tags: access?.external ? tags?.filter((tag) => !OPENRIG_PROVENANCE_TAG.test(tag)) : tags,
1845
+ qitemId: id, destinationSession: destination, body: taskNote ? `${taskNote}\n\n${lineage?.body ?? body}` : lineage?.body ?? body,
1846
+ ...(note && route !== "auto" ? { sourceSession: unknownSender } : {}), summary, priority, tier,
1847
+ ...(route !== undefined ? { returnRoute: route } : {}),
1848
+ tags: key && route === "auto" ? [...(sentTags ?? []), conversationKeyTag(key)] : sentTags,
1779
1849
  ...(alert ? { humanAlert: true } : {}),
1780
1850
  ...(lineage ? { chainOfRecord: lineage.chainOfRecord } : {}),
1781
1851
  });
@@ -1788,8 +1858,8 @@ export function createMcpServer(client, options = {}) {
1788
1858
  }
1789
1859
  // A create's return, a retry's stored row included, goes through the same external projection as show and list.
1790
1860
  const view = externalView(scope);
1791
- // An unknown sender has no return address, so it says how to follow the task.
1792
- const sent = note && res.status < 400 && res.data && typeof res.data === "object" ? { ...res, data: { ...res.data,
1861
+ // An unknown sender with no return route has no return address, so it says how to follow the task.
1862
+ const sent = note && route === undefined && res.status < 400 && res.data && typeof res.data === "object" ? { ...res, data: { ...res.data,
1793
1863
  unknownSender: { label: unknownSender, followUp: `No return address: read this task with rig_queue_show and qitemId ${id}${target.remote && target.name ? ` and host ${target.name}` : ""}.` } } } : res;
1794
1864
  // A seat whose roster entry says it takes no requests still gets the item, and the answer says so, on a retry too.
1795
1865
  return mapResult(await withRequestsAdvisory(view && sent.status < 400 ? { ...sent, data: projectForExternal(sent.data, view) } : sent, destination, target.remote), undefined, { structured: true });
@@ -1974,7 +2044,7 @@ export function createMcpServer(client, options = {}) {
1974
2044
  const denied = await itemOutOfScope(qitemId);
1975
2045
  if (denied)
1976
2046
  return denied;
1977
- const res = await client.post(`/api/queue/${encodeURIComponent(qitemId)}/claim`, {});
2047
+ const res = await (await clientFor(qitemId)).post(`/api/queue/${encodeURIComponent(qitemId)}/claim`, {});
1978
2048
  // An external caller's claimed item goes through the same projection as show and list.
1979
2049
  const view = externalView(scope);
1980
2050
  return mapResult(view && res.status < 400 ? { ...res, data: projectForExternal(res.data, view) } : res, undefined, { structured: true });
@@ -2016,7 +2086,7 @@ export function createMcpServer(client, options = {}) {
2016
2086
  if (!blocker || blocker.status >= 400 || !scope?.item(blocker.data))
2017
2087
  return outOfScope(`Blocker ${blockedOn ?? "(none named)"}`);
2018
2088
  }
2019
- const res = await hostPost(target, `/api/queue/${encodeURIComponent(qitemId)}/update`, {
2089
+ const res = await hostPost(host ? target : { ...target, client: await clientFor(qitemId) }, `/api/queue/${encodeURIComponent(qitemId)}/update`, {
2020
2090
  state, closureReason, closureTarget, summary, evidenceRef, blockedOn, wakeAfterSeconds, transitionNote: note, resolution, reopen,
2021
2091
  });
2022
2092
  // An external caller's updated item goes through the same projection as show and list.
@@ -2758,7 +2828,8 @@ export function createMcpServer(client, options = {}) {
2758
2828
  }
2759
2829
  try {
2760
2830
  return mapResult(await withRequestsAdvisory(await hostPost(target, `/api/queue/${encodeURIComponent(qitemId)}/handoff`, {
2761
- toSession: to, body, transitionNote: note, summary, tags, priority, evidenceRef,
2831
+ // The new item keeps the work's return route, so a conversation's key is no caller's to give it.
2832
+ toSession: to, body, transitionNote: note, summary, tags: callerTags(tags, !!access?.external), priority, evidenceRef,
2762
2833
  }), to, target.remote), undefined, { structured: true });
2763
2834
  }
2764
2835
  catch (err) {
@@ -2787,6 +2858,33 @@ export function createMcpServer(client, options = {}) {
2787
2858
  return caught(err);
2788
2859
  }
2789
2860
  });
2861
+ // 37. rig_seat_decide_permission — answer a seat's permission ask, the route `rig seat decide-permission` uses
2862
+ if (offered("rig_seat_decide_permission"))
2863
+ server.registerTool("rig_seat_decide_permission", {
2864
+ description: "Answer a seat's permission ask (qitem-runner-permission-…) with one of the options it offers, as rig seat decide-permission does. Show your person the exact action first. A plain yes or no is their own answer: set relay and pass their exact words in personSaid; it's recorded as relayed by you, unconfirmed, since OpenRig didn't get it from them. For their words or a condition, decide whether this exact action meets them, with reason and personSaid. With no seat, the decision names this conversation's own address when the ask is addressed to it. An ask already answered, ended in the seat's terminal, or stale comes back as it is, and nothing is decided. A reply with native.notReached is recorded but hasn't reached the seat's prompt (its hook isn't reading the ask): tell your person what it says.",
2865
+ inputSchema: z.object({
2866
+ askId: z.string().describe("The ask's id (qitem-runner-permission-…)"),
2867
+ option: z.string().describe("One of the ask's options, by its id: allow or deny for a seat's own Claude Code prompt"),
2868
+ relay: z.boolean().optional().describe("A seat's own prompt only: the person chose this option themselves and you pass it on exactly; recorded as relayed by you, not your decision, and unconfirmed"),
2869
+ personSaid: z.string().optional().describe("The person's own words, exactly as they gave them, recorded as your report of what they said"),
2870
+ reason: z.string().optional().describe("Why, recorded with the decision (say what the person meant)"),
2871
+ }),
2872
+ annotations: DESTRUCTIVE,
2873
+ }, async ({ askId, option, relay, personSaid, reason }) => {
2874
+ try {
2875
+ const denied = await itemOutOfScope(askId);
2876
+ if (denied)
2877
+ return denied;
2878
+ // A conversation with no seat answers its own ask as the address it was issued, not as someone outside a seat.
2879
+ const decider = await clientFor(askId);
2880
+ return mapResult(await decider.post(`/api/activity/permission-requests/${encodeURIComponent(askId)}/decide`, {
2881
+ optionId: option, reason: reason ?? "", ...(personSaid !== undefined ? { personSaid } : {}), ...(relay ? { relay: true } : {}),
2882
+ }), undefined, { structured: true });
2883
+ }
2884
+ catch (err) {
2885
+ return caught(err);
2886
+ }
2887
+ });
2790
2888
  return server;
2791
2889
  }
2792
2890
  function waitForIdleRequestOptions(waitForIdleMs) {