@openrig/cli 0.7.2 → 0.7.4

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 (737) hide show
  1. package/README.md +5 -5
  2. package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
  3. package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
  4. package/daemon/assets/plugins/openrig-core/hooks/claude.json +11 -0
  5. package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +13 -9
  6. package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/SKILL.md +2 -2
  7. package/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md +37 -3
  8. package/daemon/assets/plugins/openrig-core/skills/queue-handoff/SKILL.md +4 -0
  9. package/daemon/context-packs/help/help.md +6 -3
  10. package/daemon/context-packs/help/manifest.yaml +1 -1
  11. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  12. package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +100 -15
  13. package/daemon/context-packs/reference/getting-started.md +12 -8
  14. package/daemon/context-packs/reference/manifest.yaml +1 -1
  15. package/daemon/context-packs/reference/rig-spec.md +89 -3
  16. package/daemon/context-packs/reference/whats-new.md +109 -282
  17. package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
  18. package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
  19. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
  20. package/daemon/context-packs/skills/claude-compaction-restore/SKILL.md +2 -2
  21. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
  22. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  23. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  24. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  25. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  26. package/daemon/context-packs/skills/core/messaging-the-human/SKILL.md +37 -3
  27. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
  28. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  29. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  30. package/daemon/context-packs/skills/core/openrig-herdr/SKILL.md +5 -2
  31. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
  32. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
  33. package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
  34. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
  35. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
  36. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
  37. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
  38. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
  39. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
  40. package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
  41. package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
  42. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
  43. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
  44. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
  45. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
  46. package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
  47. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
  48. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  49. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  50. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  51. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  52. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  53. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
  54. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  55. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  56. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  57. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  58. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  59. package/daemon/context-packs/skills/process/agent-browser/SKILL.md +1 -1
  60. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
  61. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  62. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
  63. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  64. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
  65. package/daemon/context-packs/skills/process/systematic-debugging/root-cause-tracing.md +1 -1
  66. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
  67. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
  68. package/daemon/context-packs/skills/queue-handoff/SKILL.md +4 -0
  69. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
  70. package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
  71. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
  72. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
  73. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
  74. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
  75. package/daemon/context-packs/world-example/manifest.yaml +1 -1
  76. package/daemon/context-packs/world-public/manifest.yaml +1 -1
  77. package/daemon/dist/adapters/claude-code-adapter.d.ts +1 -0
  78. package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
  79. package/daemon/dist/adapters/claude-code-adapter.js +17 -4
  80. package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
  81. package/daemon/dist/adapters/claude-resume.d.ts +1 -1
  82. package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
  83. package/daemon/dist/adapters/claude-resume.js +18 -6
  84. package/daemon/dist/adapters/claude-resume.js.map +1 -1
  85. package/daemon/dist/adapters/codex-resume.d.ts +2 -1
  86. package/daemon/dist/adapters/codex-resume.d.ts.map +1 -1
  87. package/daemon/dist/adapters/codex-resume.js +20 -8
  88. package/daemon/dist/adapters/codex-resume.js.map +1 -1
  89. package/daemon/dist/adapters/codex-runtime-adapter.d.ts +10 -1
  90. package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
  91. package/daemon/dist/adapters/codex-runtime-adapter.js +381 -50
  92. package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
  93. package/daemon/dist/adapters/pi-openrouter-charge.d.ts.map +1 -1
  94. package/daemon/dist/adapters/pi-openrouter-charge.js +3 -0
  95. package/daemon/dist/adapters/pi-openrouter-charge.js.map +1 -1
  96. package/daemon/dist/adapters/pi-resume.js +1 -1
  97. package/daemon/dist/adapters/pi-resume.js.map +1 -1
  98. package/daemon/dist/adapters/pi-runner-protocol.d.ts +3 -3
  99. package/daemon/dist/adapters/pi-runner-protocol.js +2 -2
  100. package/daemon/dist/adapters/pi-runner.d.ts +1 -1
  101. package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
  102. package/daemon/dist/adapters/pi-runner.js +13 -4
  103. package/daemon/dist/adapters/pi-runner.js.map +1 -1
  104. package/daemon/dist/adapters/tmux-server.d.ts +0 -3
  105. package/daemon/dist/adapters/tmux-server.d.ts.map +1 -1
  106. package/daemon/dist/adapters/tmux-server.js +0 -5
  107. package/daemon/dist/adapters/tmux-server.js.map +1 -1
  108. package/daemon/dist/adapters/tmux.d.ts +13 -0
  109. package/daemon/dist/adapters/tmux.d.ts.map +1 -1
  110. package/daemon/dist/adapters/tmux.js +62 -4
  111. package/daemon/dist/adapters/tmux.js.map +1 -1
  112. package/daemon/dist/attention-surface.d.ts +16 -1
  113. package/daemon/dist/attention-surface.d.ts.map +1 -1
  114. package/daemon/dist/attention-surface.js.map +1 -1
  115. package/daemon/dist/build-info.js +3 -3
  116. package/daemon/dist/context-pack-taxonomy-surface.js +1 -1
  117. package/daemon/dist/context-pack-taxonomy-surface.js.map +1 -1
  118. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  119. package/daemon/dist/db/all-migrations.js +4 -0
  120. package/daemon/dist/db/all-migrations.js.map +1 -1
  121. package/daemon/dist/db/migrations/137_node_codex_permissions.d.ts +3 -0
  122. package/daemon/dist/db/migrations/137_node_codex_permissions.d.ts.map +1 -0
  123. package/daemon/dist/db/migrations/137_node_codex_permissions.js +7 -0
  124. package/daemon/dist/db/migrations/137_node_codex_permissions.js.map +1 -0
  125. package/daemon/dist/db/migrations/140_identity_principal.d.ts +12 -0
  126. package/daemon/dist/db/migrations/140_identity_principal.d.ts.map +1 -0
  127. package/daemon/dist/db/migrations/140_identity_principal.js +20 -0
  128. package/daemon/dist/db/migrations/140_identity_principal.js.map +1 -0
  129. package/daemon/dist/domain/active-occupant.js +1 -1
  130. package/daemon/dist/domain/active-occupant.js.map +1 -1
  131. package/daemon/dist/domain/agent-activity-store.d.ts +1 -1
  132. package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
  133. package/daemon/dist/domain/agent-activity-store.js +5 -3
  134. package/daemon/dist/domain/agent-activity-store.js.map +1 -1
  135. package/daemon/dist/domain/agent-resolver.js +1 -1
  136. package/daemon/dist/domain/agent-resolver.js.map +1 -1
  137. package/daemon/dist/domain/bind-plan.js +1 -1
  138. package/daemon/dist/domain/bind-plan.js.map +1 -1
  139. package/daemon/dist/domain/bootstrap-orchestrator.js +1 -1
  140. package/daemon/dist/domain/bootstrap-orchestrator.js.map +1 -1
  141. package/daemon/dist/domain/bundle-skills-router.js +2 -2
  142. package/daemon/dist/domain/bundle-skills-router.js.map +1 -1
  143. package/daemon/dist/domain/codex-member-permissions.d.ts +56 -0
  144. package/daemon/dist/domain/codex-member-permissions.d.ts.map +1 -0
  145. package/daemon/dist/domain/codex-member-permissions.js +140 -0
  146. package/daemon/dist/domain/codex-member-permissions.js.map +1 -0
  147. package/daemon/dist/domain/codex-owned-plugin-trust.d.ts.map +1 -1
  148. package/daemon/dist/domain/codex-owned-plugin-trust.js +2 -1
  149. package/daemon/dist/domain/codex-owned-plugin-trust.js.map +1 -1
  150. package/daemon/dist/domain/context-packs/context-pack-library-service.js +2 -2
  151. package/daemon/dist/domain/context-packs/context-pack-library-service.js.map +1 -1
  152. package/daemon/dist/domain/current-restore-snapshot.d.ts +8 -0
  153. package/daemon/dist/domain/current-restore-snapshot.d.ts.map +1 -0
  154. package/daemon/dist/domain/current-restore-snapshot.js +26 -0
  155. package/daemon/dist/domain/current-restore-snapshot.js.map +1 -0
  156. package/daemon/dist/domain/draft-aware-delivery.js +1 -1
  157. package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
  158. package/daemon/dist/domain/execution-candidate-reader.d.ts +16 -0
  159. package/daemon/dist/domain/execution-candidate-reader.d.ts.map +1 -0
  160. package/daemon/dist/domain/execution-candidate-reader.js +77 -0
  161. package/daemon/dist/domain/execution-candidate-reader.js.map +1 -0
  162. package/daemon/dist/domain/execution-view.d.ts.map +1 -1
  163. package/daemon/dist/domain/execution-view.js +16 -6
  164. package/daemon/dist/domain/execution-view.js.map +1 -1
  165. package/daemon/dist/domain/feed-perspective.d.ts +14 -0
  166. package/daemon/dist/domain/feed-perspective.d.ts.map +1 -0
  167. package/daemon/dist/domain/feed-perspective.js +36 -0
  168. package/daemon/dist/domain/feed-perspective.js.map +1 -0
  169. package/daemon/dist/domain/gateway/channel-operations.d.ts +1 -1
  170. package/daemon/dist/domain/gateway/channel-operations.d.ts.map +1 -1
  171. package/daemon/dist/domain/gateway/destination-resolver.d.ts +6 -0
  172. package/daemon/dist/domain/gateway/destination-resolver.d.ts.map +1 -1
  173. package/daemon/dist/domain/gateway/destination-resolver.js +8 -1
  174. package/daemon/dist/domain/gateway/destination-resolver.js.map +1 -1
  175. package/daemon/dist/domain/gateway/human-registry.d.ts +11 -4
  176. package/daemon/dist/domain/gateway/human-registry.d.ts.map +1 -1
  177. package/daemon/dist/domain/gateway/human-registry.js +36 -5
  178. package/daemon/dist/domain/gateway/human-registry.js.map +1 -1
  179. package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts.map +1 -1
  180. package/daemon/dist/domain/gateway/operator-delivery-engine.js +5 -2
  181. package/daemon/dist/domain/gateway/operator-delivery-engine.js.map +1 -1
  182. package/daemon/dist/domain/gateway/participants.d.ts +180 -0
  183. package/daemon/dist/domain/gateway/participants.d.ts.map +1 -0
  184. package/daemon/dist/domain/gateway/participants.js +434 -0
  185. package/daemon/dist/domain/gateway/participants.js.map +1 -0
  186. package/daemon/dist/domain/gateway/slack/inbound-admission.d.ts +2 -2
  187. package/daemon/dist/domain/gateway/slack/inbound-admission.d.ts.map +1 -1
  188. package/daemon/dist/domain/gateway/slack/inbound-admission.js +73 -6
  189. package/daemon/dist/domain/gateway/slack/inbound-admission.js.map +1 -1
  190. package/daemon/dist/domain/gateway/slack/inbound.d.ts +18 -1
  191. package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
  192. package/daemon/dist/domain/gateway/slack/inbound.js +27 -11
  193. package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
  194. package/daemon/dist/domain/gateway/slack/message.d.ts +2 -0
  195. package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
  196. package/daemon/dist/domain/gateway/slack/message.js +14 -6
  197. package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
  198. package/daemon/dist/domain/gateway/slack/open-asks.d.ts +50 -0
  199. package/daemon/dist/domain/gateway/slack/open-asks.d.ts.map +1 -0
  200. package/daemon/dist/domain/gateway/slack/open-asks.js +215 -0
  201. package/daemon/dist/domain/gateway/slack/open-asks.js.map +1 -0
  202. package/daemon/dist/domain/gateway/slack/outbound-driver.d.ts +2 -0
  203. package/daemon/dist/domain/gateway/slack/outbound-driver.d.ts.map +1 -1
  204. package/daemon/dist/domain/gateway/slack/outbound-driver.js +1 -0
  205. package/daemon/dist/domain/gateway/slack/outbound-driver.js.map +1 -1
  206. package/daemon/dist/domain/gateway/slack/queue-access.d.ts +15 -1
  207. package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
  208. package/daemon/dist/domain/gateway/slack/queue-access.js +98 -29
  209. package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
  210. package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
  211. package/daemon/dist/domain/gateway/slack/slack-delivery.js +1 -0
  212. package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
  213. package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
  214. package/daemon/dist/domain/gateway/slack/slack-subsystem.js +59 -4
  215. package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
  216. package/daemon/dist/domain/gateway/slack/state-store.d.ts +3 -0
  217. package/daemon/dist/domain/gateway/slack/state-store.d.ts.map +1 -1
  218. package/daemon/dist/domain/gateway/slack/state-store.js +18 -0
  219. package/daemon/dist/domain/gateway/slack/state-store.js.map +1 -1
  220. package/daemon/dist/domain/hosted-wake.d.ts +19 -0
  221. package/daemon/dist/domain/hosted-wake.d.ts.map +1 -0
  222. package/daemon/dist/domain/hosted-wake.js +56 -0
  223. package/daemon/dist/domain/hosted-wake.js.map +1 -0
  224. package/daemon/dist/domain/hot-potato-enforcer.d.ts +1 -1
  225. package/daemon/dist/domain/kernel-boot.d.ts +10 -4
  226. package/daemon/dist/domain/kernel-boot.d.ts.map +1 -1
  227. package/daemon/dist/domain/kernel-boot.js +14 -7
  228. package/daemon/dist/domain/kernel-boot.js.map +1 -1
  229. package/daemon/dist/domain/mission-control/mission-control-read-layer.d.ts.map +1 -1
  230. package/daemon/dist/domain/mission-control/mission-control-read-layer.js +3 -1
  231. package/daemon/dist/domain/mission-control/mission-control-read-layer.js.map +1 -1
  232. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts +16 -0
  233. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
  234. package/daemon/dist/domain/mission-control/mission-control-write-contract.js +64 -16
  235. package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
  236. package/daemon/dist/domain/native-permission-store.d.ts +3 -2
  237. package/daemon/dist/domain/native-permission-store.d.ts.map +1 -1
  238. package/daemon/dist/domain/native-permission-store.js +14 -1
  239. package/daemon/dist/domain/native-permission-store.js.map +1 -1
  240. package/daemon/dist/domain/native-resume-probe.d.ts +9 -0
  241. package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
  242. package/daemon/dist/domain/native-resume-probe.js +37 -2
  243. package/daemon/dist/domain/native-resume-probe.js.map +1 -1
  244. package/daemon/dist/domain/node-inventory.d.ts +2 -2
  245. package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
  246. package/daemon/dist/domain/node-inventory.js +10 -5
  247. package/daemon/dist/domain/node-inventory.js.map +1 -1
  248. package/daemon/dist/domain/node-launcher.d.ts +5 -0
  249. package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
  250. package/daemon/dist/domain/node-launcher.js +35 -1
  251. package/daemon/dist/domain/node-launcher.js.map +1 -1
  252. package/daemon/dist/domain/outbox-handler.d.ts +3 -0
  253. package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
  254. package/daemon/dist/domain/outbox-handler.js +10 -4
  255. package/daemon/dist/domain/outbox-handler.js.map +1 -1
  256. package/daemon/dist/domain/permission-account.d.ts.map +1 -1
  257. package/daemon/dist/domain/permission-account.js +44 -9
  258. package/daemon/dist/domain/permission-account.js.map +1 -1
  259. package/daemon/dist/domain/permission-drift-observer.js +1 -1
  260. package/daemon/dist/domain/permission-drift-observer.js.map +1 -1
  261. package/daemon/dist/domain/policies/artifact-pool-helpers.d.ts +3 -1
  262. package/daemon/dist/domain/policies/artifact-pool-helpers.d.ts.map +1 -1
  263. package/daemon/dist/domain/policies/artifact-pool-helpers.js +1 -1
  264. package/daemon/dist/domain/policies/artifact-pool-helpers.js.map +1 -1
  265. package/daemon/dist/domain/policies/delivery-digest-flush.d.ts +6 -2
  266. package/daemon/dist/domain/policies/delivery-digest-flush.d.ts.map +1 -1
  267. package/daemon/dist/domain/policies/delivery-digest-flush.js +34 -9
  268. package/daemon/dist/domain/policies/delivery-digest-flush.js.map +1 -1
  269. package/daemon/dist/domain/policies/edge-artifact-required.d.ts.map +1 -1
  270. package/daemon/dist/domain/policies/edge-artifact-required.js +3 -0
  271. package/daemon/dist/domain/policies/edge-artifact-required.js.map +1 -1
  272. package/daemon/dist/domain/policies/quiet-release.d.ts +14 -0
  273. package/daemon/dist/domain/policies/quiet-release.d.ts.map +1 -1
  274. package/daemon/dist/domain/policies/quiet-release.js +13 -2
  275. package/daemon/dist/domain/policies/quiet-release.js.map +1 -1
  276. package/daemon/dist/domain/profile-resolution-worker.d.ts +1 -1
  277. package/daemon/dist/domain/profile-resolution-worker.d.ts.map +1 -1
  278. package/daemon/dist/domain/profile-resolution-worker.js +5 -5
  279. package/daemon/dist/domain/profile-resolution-worker.js.map +1 -1
  280. package/daemon/dist/domain/provider/claude-interruption.d.ts +3 -0
  281. package/daemon/dist/domain/provider/claude-interruption.d.ts.map +1 -0
  282. package/daemon/dist/domain/provider/claude-interruption.js +5 -0
  283. package/daemon/dist/domain/provider/claude-interruption.js.map +1 -0
  284. package/daemon/dist/domain/provider/host-usage-rollup.js +18 -8
  285. package/daemon/dist/domain/provider/host-usage-rollup.js.map +1 -1
  286. package/daemon/dist/domain/provider/provider-signals.d.ts +12 -5
  287. package/daemon/dist/domain/provider/provider-signals.d.ts.map +1 -1
  288. package/daemon/dist/domain/provider/provider-signals.js +31 -8
  289. package/daemon/dist/domain/provider/provider-signals.js.map +1 -1
  290. package/daemon/dist/domain/provider/reactive-tap.d.ts +4 -4
  291. package/daemon/dist/domain/provider/reactive-tap.d.ts.map +1 -1
  292. package/daemon/dist/domain/provider/reactive-tap.js +20 -4
  293. package/daemon/dist/domain/provider/reactive-tap.js.map +1 -1
  294. package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
  295. package/daemon/dist/domain/ps-projection.js +3 -2
  296. package/daemon/dist/domain/ps-projection.js.map +1 -1
  297. package/daemon/dist/domain/queue-destination-check.d.ts +5 -0
  298. package/daemon/dist/domain/queue-destination-check.d.ts.map +1 -1
  299. package/daemon/dist/domain/queue-destination-check.js +5 -1
  300. package/daemon/dist/domain/queue-destination-check.js.map +1 -1
  301. package/daemon/dist/domain/queue-repository.d.ts +38 -6
  302. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  303. package/daemon/dist/domain/queue-repository.js +115 -33
  304. package/daemon/dist/domain/queue-repository.js.map +1 -1
  305. package/daemon/dist/domain/queue-retention.d.ts.map +1 -1
  306. package/daemon/dist/domain/queue-retention.js +4 -2
  307. package/daemon/dist/domain/queue-retention.js.map +1 -1
  308. package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
  309. package/daemon/dist/domain/queue-stuck-sweep.js +35 -0
  310. package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
  311. package/daemon/dist/domain/queue-transition-log.d.ts +6 -0
  312. package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
  313. package/daemon/dist/domain/queue-transition-log.js +11 -2
  314. package/daemon/dist/domain/queue-transition-log.js.map +1 -1
  315. package/daemon/dist/domain/queue-wake-ladder.d.ts +1 -1
  316. package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
  317. package/daemon/dist/domain/queue-wake-ladder.js +2 -1
  318. package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
  319. package/daemon/dist/domain/reconciler.d.ts +2 -0
  320. package/daemon/dist/domain/reconciler.d.ts.map +1 -1
  321. package/daemon/dist/domain/reconciler.js +5 -2
  322. package/daemon/dist/domain/reconciler.js.map +1 -1
  323. package/daemon/dist/domain/restore-orchestrator.d.ts +21 -2
  324. package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
  325. package/daemon/dist/domain/restore-orchestrator.js +182 -43
  326. package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
  327. package/daemon/dist/domain/restore-plan-preview.d.ts +27 -1
  328. package/daemon/dist/domain/restore-plan-preview.d.ts.map +1 -1
  329. package/daemon/dist/domain/restore-plan-preview.js +51 -29
  330. package/daemon/dist/domain/restore-plan-preview.js.map +1 -1
  331. package/daemon/dist/domain/review/compose.js +1 -1
  332. package/daemon/dist/domain/review/compose.js.map +1 -1
  333. package/daemon/dist/domain/review/gather.d.ts +11 -0
  334. package/daemon/dist/domain/review/gather.d.ts.map +1 -1
  335. package/daemon/dist/domain/review/gather.js +65 -27
  336. package/daemon/dist/domain/review/gather.js.map +1 -1
  337. package/daemon/dist/domain/rig-expansion-service.d.ts.map +1 -1
  338. package/daemon/dist/domain/rig-expansion-service.js +1 -0
  339. package/daemon/dist/domain/rig-expansion-service.js.map +1 -1
  340. package/daemon/dist/domain/rig-repository.d.ts +1 -0
  341. package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
  342. package/daemon/dist/domain/rig-repository.js +15 -0
  343. package/daemon/dist/domain/rig-repository.js.map +1 -1
  344. package/daemon/dist/domain/rig-teardown.d.ts +3 -0
  345. package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
  346. package/daemon/dist/domain/rig-teardown.js +3 -0
  347. package/daemon/dist/domain/rig-teardown.js.map +1 -1
  348. package/daemon/dist/domain/rigspec-codec.d.ts.map +1 -1
  349. package/daemon/dist/domain/rigspec-codec.js +4 -0
  350. package/daemon/dist/domain/rigspec-codec.js.map +1 -1
  351. package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
  352. package/daemon/dist/domain/rigspec-exporter.js +12 -1
  353. package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
  354. package/daemon/dist/domain/rigspec-instantiator.d.ts +2 -0
  355. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  356. package/daemon/dist/domain/rigspec-instantiator.js +150 -128
  357. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  358. package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
  359. package/daemon/dist/domain/rigspec-schema.js +24 -1
  360. package/daemon/dist/domain/rigspec-schema.js.map +1 -1
  361. package/daemon/dist/domain/rosters.d.ts +46 -0
  362. package/daemon/dist/domain/rosters.d.ts.map +1 -0
  363. package/daemon/dist/domain/rosters.js +80 -0
  364. package/daemon/dist/domain/rosters.js.map +1 -0
  365. package/daemon/dist/domain/runtime-adapter.d.ts +4 -0
  366. package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
  367. package/daemon/dist/domain/runtime-adapter.js +2 -0
  368. package/daemon/dist/domain/runtime-adapter.js.map +1 -1
  369. package/daemon/dist/domain/scope/dot-id.js +2 -2
  370. package/daemon/dist/domain/scope/dot-id.js.map +1 -1
  371. package/daemon/dist/domain/scope/scaffold-placeholder.d.ts +1 -1
  372. package/daemon/dist/domain/scope/scaffold-placeholder.js +1 -1
  373. package/daemon/dist/domain/scope/scope-audit.js +1 -1
  374. package/daemon/dist/domain/scope/scope-audit.js.map +1 -1
  375. package/daemon/dist/domain/scope/types.d.ts.map +1 -1
  376. package/daemon/dist/domain/scope/types.js +2 -3
  377. package/daemon/dist/domain/scope/types.js.map +1 -1
  378. package/daemon/dist/domain/seat-attention-reconciler.d.ts +2 -0
  379. package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
  380. package/daemon/dist/domain/seat-attention-reconciler.js +10 -1
  381. package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
  382. package/daemon/dist/domain/seat-handover-service.d.ts +7 -1
  383. package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
  384. package/daemon/dist/domain/seat-handover-service.js +89 -4
  385. package/daemon/dist/domain/seat-handover-service.js.map +1 -1
  386. package/daemon/dist/domain/seat-lifecycle-service.d.ts +23 -8
  387. package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
  388. package/daemon/dist/domain/seat-lifecycle-service.js +153 -12
  389. package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
  390. package/daemon/dist/domain/seat-restart-in-place.d.ts +2 -2
  391. package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
  392. package/daemon/dist/domain/seat-restart-in-place.js +2 -2
  393. package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
  394. package/daemon/dist/domain/seat-runtime-switch-service.d.ts +9 -2
  395. package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
  396. package/daemon/dist/domain/seat-runtime-switch-service.js +53 -5
  397. package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
  398. package/daemon/dist/domain/seat-status-service.d.ts +1 -0
  399. package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
  400. package/daemon/dist/domain/seat-status-service.js +11 -0
  401. package/daemon/dist/domain/seat-status-service.js.map +1 -1
  402. package/daemon/dist/domain/seat-structural-activity-service.js +1 -1
  403. package/daemon/dist/domain/seat-structural-activity-service.js.map +1 -1
  404. package/daemon/dist/domain/session-registry.d.ts +2 -0
  405. package/daemon/dist/domain/session-registry.d.ts.map +1 -1
  406. package/daemon/dist/domain/session-registry.js +3 -1
  407. package/daemon/dist/domain/session-registry.js.map +1 -1
  408. package/daemon/dist/domain/session-transport.d.ts +45 -1
  409. package/daemon/dist/domain/session-transport.d.ts.map +1 -1
  410. package/daemon/dist/domain/session-transport.js +205 -29
  411. package/daemon/dist/domain/session-transport.js.map +1 -1
  412. package/daemon/dist/domain/shared-history-selection.d.ts +34 -0
  413. package/daemon/dist/domain/shared-history-selection.d.ts.map +1 -0
  414. package/daemon/dist/domain/shared-history-selection.js +74 -0
  415. package/daemon/dist/domain/shared-history-selection.js.map +1 -0
  416. package/daemon/dist/domain/skill-library-discovery.js +2 -2
  417. package/daemon/dist/domain/skill-library-discovery.js.map +1 -1
  418. package/daemon/dist/domain/slices/slice-indexer.d.ts +4 -4
  419. package/daemon/dist/domain/slices/slice-indexer.js +17 -17
  420. package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
  421. package/daemon/dist/domain/snapshot-capture.d.ts +1 -0
  422. package/daemon/dist/domain/snapshot-capture.d.ts.map +1 -1
  423. package/daemon/dist/domain/snapshot-capture.js +43 -1
  424. package/daemon/dist/domain/snapshot-capture.js.map +1 -1
  425. package/daemon/dist/domain/startup-orchestrator.d.ts +2 -16
  426. package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
  427. package/daemon/dist/domain/startup-orchestrator.js +15 -64
  428. package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
  429. package/daemon/dist/domain/startup-submission-evidence.d.ts +32 -0
  430. package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
  431. package/daemon/dist/domain/startup-submission-evidence.js +60 -0
  432. package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
  433. package/daemon/dist/domain/successor-session-launcher.d.ts +1 -0
  434. package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
  435. package/daemon/dist/domain/successor-session-launcher.js +1 -0
  436. package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
  437. package/daemon/dist/domain/terminal/task-terminal-view.d.ts +50 -0
  438. package/daemon/dist/domain/terminal/task-terminal-view.d.ts.map +1 -0
  439. package/daemon/dist/domain/terminal/task-terminal-view.js +227 -0
  440. package/daemon/dist/domain/terminal/task-terminal-view.js.map +1 -0
  441. package/daemon/dist/domain/terminal/terminal-provider.d.ts +9 -0
  442. package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
  443. package/daemon/dist/domain/terminal/terminal-provider.js +0 -15
  444. package/daemon/dist/domain/terminal/terminal-provider.js.map +1 -1
  445. package/daemon/dist/domain/terminal/terminal-service.d.ts +7 -2
  446. package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
  447. package/daemon/dist/domain/terminal/terminal-service.js +25 -3
  448. package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
  449. package/daemon/dist/domain/toml-tables.d.ts +20 -0
  450. package/daemon/dist/domain/toml-tables.d.ts.map +1 -0
  451. package/daemon/dist/domain/toml-tables.js +101 -0
  452. package/daemon/dist/domain/toml-tables.js.map +1 -0
  453. package/daemon/dist/domain/types.d.ts +32 -0
  454. package/daemon/dist/domain/types.d.ts.map +1 -1
  455. package/daemon/dist/domain/types.js.map +1 -1
  456. package/daemon/dist/domain/usage-series.d.ts.map +1 -1
  457. package/daemon/dist/domain/usage-series.js +17 -3
  458. package/daemon/dist/domain/usage-series.js.map +1 -1
  459. package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
  460. package/daemon/dist/domain/user-settings/settings-store.js +5 -6
  461. package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
  462. package/daemon/dist/domain/view-projector.d.ts +1 -0
  463. package/daemon/dist/domain/view-projector.d.ts.map +1 -1
  464. package/daemon/dist/domain/view-projector.js +15 -2
  465. package/daemon/dist/domain/view-projector.js.map +1 -1
  466. package/daemon/dist/domain/workflow-human-destination.d.ts.map +1 -1
  467. package/daemon/dist/domain/workflow-human-destination.js +5 -3
  468. package/daemon/dist/domain/workflow-human-destination.js.map +1 -1
  469. package/daemon/dist/domain/workflow-projector.d.ts +1 -0
  470. package/daemon/dist/domain/workflow-projector.d.ts.map +1 -1
  471. package/daemon/dist/domain/workflow-projector.js +19 -3
  472. package/daemon/dist/domain/workflow-projector.js.map +1 -1
  473. package/daemon/dist/domain/workflow-runtime.d.ts +2 -2
  474. package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
  475. package/daemon/dist/domain/workflow-runtime.js +6 -4
  476. package/daemon/dist/domain/workflow-runtime.js.map +1 -1
  477. package/daemon/dist/gateway-human-registry-surface.d.ts +1 -0
  478. package/daemon/dist/gateway-human-registry-surface.d.ts.map +1 -1
  479. package/daemon/dist/gateway-human-registry-surface.js +1 -0
  480. package/daemon/dist/gateway-human-registry-surface.js.map +1 -1
  481. package/daemon/dist/index.d.ts.map +1 -1
  482. package/daemon/dist/index.js +6 -3
  483. package/daemon/dist/index.js.map +1 -1
  484. package/daemon/dist/lib/pane-envelope.d.ts +4 -0
  485. package/daemon/dist/lib/pane-envelope.d.ts.map +1 -1
  486. package/daemon/dist/lib/pane-envelope.js +1 -1
  487. package/daemon/dist/lib/pane-envelope.js.map +1 -1
  488. package/daemon/dist/rosters-surface.d.ts +2 -0
  489. package/daemon/dist/rosters-surface.d.ts.map +1 -0
  490. package/daemon/dist/rosters-surface.js +4 -0
  491. package/daemon/dist/rosters-surface.js.map +1 -0
  492. package/daemon/dist/routes/activity.js +1 -1
  493. package/daemon/dist/routes/activity.js.map +1 -1
  494. package/daemon/dist/routes/agent-images.d.ts.map +1 -1
  495. package/daemon/dist/routes/agent-images.js +10 -0
  496. package/daemon/dist/routes/agent-images.js.map +1 -1
  497. package/daemon/dist/routes/attention.d.ts.map +1 -1
  498. package/daemon/dist/routes/attention.js +15 -3
  499. package/daemon/dist/routes/attention.js.map +1 -1
  500. package/daemon/dist/routes/bundles.js +1 -1
  501. package/daemon/dist/routes/bundles.js.map +1 -1
  502. package/daemon/dist/routes/gateway.d.ts.map +1 -1
  503. package/daemon/dist/routes/gateway.js +42 -0
  504. package/daemon/dist/routes/gateway.js.map +1 -1
  505. package/daemon/dist/routes/hosts.d.ts.map +1 -1
  506. package/daemon/dist/routes/hosts.js +5 -2
  507. package/daemon/dist/routes/hosts.js.map +1 -1
  508. package/daemon/dist/routes/mission-control.d.ts.map +1 -1
  509. package/daemon/dist/routes/mission-control.js +5 -1
  510. package/daemon/dist/routes/mission-control.js.map +1 -1
  511. package/daemon/dist/routes/plugins.js +1 -1
  512. package/daemon/dist/routes/plugins.js.map +1 -1
  513. package/daemon/dist/routes/queue.d.ts.map +1 -1
  514. package/daemon/dist/routes/queue.js +41 -14
  515. package/daemon/dist/routes/queue.js.map +1 -1
  516. package/daemon/dist/routes/require-sender-identity.d.ts +26 -0
  517. package/daemon/dist/routes/require-sender-identity.d.ts.map +1 -1
  518. package/daemon/dist/routes/require-sender-identity.js +54 -0
  519. package/daemon/dist/routes/require-sender-identity.js.map +1 -1
  520. package/daemon/dist/routes/rigs.js +2 -0
  521. package/daemon/dist/routes/rigs.js.map +1 -1
  522. package/daemon/dist/routes/runtime-switch-custody.js +1 -1
  523. package/daemon/dist/routes/scope-audit.js +1 -1
  524. package/daemon/dist/routes/scope-audit.js.map +1 -1
  525. package/daemon/dist/routes/seat.d.ts.map +1 -1
  526. package/daemon/dist/routes/seat.js +49 -15
  527. package/daemon/dist/routes/seat.js.map +1 -1
  528. package/daemon/dist/routes/sessions.js +15 -3
  529. package/daemon/dist/routes/sessions.js.map +1 -1
  530. package/daemon/dist/routes/skills.js +1 -1
  531. package/daemon/dist/routes/skills.js.map +1 -1
  532. package/daemon/dist/routes/slices.js +1 -1
  533. package/daemon/dist/routes/slices.js.map +1 -1
  534. package/daemon/dist/routes/startup.d.ts.map +1 -1
  535. package/daemon/dist/routes/startup.js +269 -3
  536. package/daemon/dist/routes/startup.js.map +1 -1
  537. package/daemon/dist/routes/transcripts.js +2 -2
  538. package/daemon/dist/routes/transcripts.js.map +1 -1
  539. package/daemon/dist/routes/transport.d.ts.map +1 -1
  540. package/daemon/dist/routes/transport.js +21 -6
  541. package/daemon/dist/routes/transport.js.map +1 -1
  542. package/daemon/dist/routes/workflow.js +1 -1
  543. package/daemon/dist/routes/workflow.js.map +1 -1
  544. package/daemon/dist/startup.d.ts.map +1 -1
  545. package/daemon/dist/startup.js +17 -2
  546. package/daemon/dist/startup.js.map +1 -1
  547. package/daemon/dist/terminal/TerminalSessionBroker.d.ts +18 -2
  548. package/daemon/dist/terminal/TerminalSessionBroker.d.ts.map +1 -1
  549. package/daemon/dist/terminal/TerminalSessionBroker.js +55 -9
  550. package/daemon/dist/terminal/TerminalSessionBroker.js.map +1 -1
  551. package/daemon/dist/terminal/window-pin.d.ts +41 -0
  552. package/daemon/dist/terminal/window-pin.d.ts.map +1 -0
  553. package/daemon/dist/terminal/window-pin.js +103 -0
  554. package/daemon/dist/terminal/window-pin.js.map +1 -0
  555. package/daemon/docs/reference/a2a-agents.md +16 -4
  556. package/daemon/docs/reference/agent-startup-guide.md +34 -2
  557. package/daemon/docs/reference/agent-state-taxonomy.md +7 -0
  558. package/daemon/docs/reference/claude-status-line.md +42 -0
  559. package/daemon/docs/reference/community-harness-examples/hermes/config.yaml.example +2 -1
  560. package/daemon/docs/reference/community-harness-examples/hermes/hermes.yaml +1 -1
  561. package/daemon/docs/reference/community-harness-presets.md +83 -3
  562. package/daemon/docs/reference/gateway-participants.md +165 -0
  563. package/daemon/docs/reference/getting-started.md +12 -8
  564. package/daemon/docs/reference/help.md +6 -3
  565. package/daemon/docs/reference/hosted-members.md +110 -0
  566. package/daemon/docs/reference/quickstart.md +13 -1
  567. package/daemon/docs/reference/rig-spec.md +89 -3
  568. package/daemon/docs/reference/rosters.md +6 -0
  569. package/daemon/docs/reference/seat-delivery.md +10 -1
  570. package/daemon/docs/reference/seat-node-targeting.md +17 -0
  571. package/daemon/docs/reference/slack-app-setup.md +20 -2
  572. package/daemon/docs/reference/terminal-sessions.md +45 -0
  573. package/daemon/docs/reference/whats-new.md +109 -282
  574. package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +37 -3
  575. package/daemon/specs/agents/shared/skills/core/openrig-herdr/SKILL.md +5 -2
  576. package/daemon/specs/agents/shared/skills/process/agent-browser/SKILL.md +1 -1
  577. package/daemon/specs/agents/shared/skills/process/systematic-debugging/root-cause-tracing.md +1 -1
  578. package/dist/build-info.js +3 -3
  579. package/dist/client.d.ts +20 -0
  580. package/dist/client.d.ts.map +1 -1
  581. package/dist/client.js +57 -26
  582. package/dist/client.js.map +1 -1
  583. package/dist/commands/acp.js +1 -1
  584. package/dist/commands/capture.d.ts +27 -0
  585. package/dist/commands/capture.d.ts.map +1 -1
  586. package/dist/commands/capture.js +62 -4
  587. package/dist/commands/capture.js.map +1 -1
  588. package/dist/commands/daemon.d.ts.map +1 -1
  589. package/dist/commands/daemon.js +6 -1
  590. package/dist/commands/daemon.js.map +1 -1
  591. package/dist/commands/doctor.d.ts +9 -1
  592. package/dist/commands/doctor.d.ts.map +1 -1
  593. package/dist/commands/doctor.js +18 -2
  594. package/dist/commands/doctor.js.map +1 -1
  595. package/dist/commands/down.d.ts.map +1 -1
  596. package/dist/commands/down.js +3 -0
  597. package/dist/commands/down.js.map +1 -1
  598. package/dist/commands/export.d.ts.map +1 -1
  599. package/dist/commands/export.js +10 -5
  600. package/dist/commands/export.js.map +1 -1
  601. package/dist/commands/gateway.d.ts.map +1 -1
  602. package/dist/commands/gateway.js +309 -23
  603. package/dist/commands/gateway.js.map +1 -1
  604. package/dist/commands/mcp.d.ts.map +1 -1
  605. package/dist/commands/mcp.js +58 -14
  606. package/dist/commands/mcp.js.map +1 -1
  607. package/dist/commands/queue.d.ts.map +1 -1
  608. package/dist/commands/queue.js +30 -10
  609. package/dist/commands/queue.js.map +1 -1
  610. package/dist/commands/rig-mode.d.ts +1 -2
  611. package/dist/commands/rig-mode.d.ts.map +1 -1
  612. package/dist/commands/rig-mode.js +2 -2
  613. package/dist/commands/rig-mode.js.map +1 -1
  614. package/dist/commands/roster.d.ts +7 -27
  615. package/dist/commands/roster.d.ts.map +1 -1
  616. package/dist/commands/roster.js +17 -52
  617. package/dist/commands/roster.js.map +1 -1
  618. package/dist/commands/scope.d.ts.map +1 -1
  619. package/dist/commands/scope.js +12 -4
  620. package/dist/commands/scope.js.map +1 -1
  621. package/dist/commands/seat.d.ts.map +1 -1
  622. package/dist/commands/seat.js +76 -5
  623. package/dist/commands/seat.js.map +1 -1
  624. package/dist/commands/send.d.ts +3 -0
  625. package/dist/commands/send.d.ts.map +1 -1
  626. package/dist/commands/send.js +16 -18
  627. package/dist/commands/send.js.map +1 -1
  628. package/dist/commands/setup.d.ts.map +1 -1
  629. package/dist/commands/setup.js +10 -2
  630. package/dist/commands/setup.js.map +1 -1
  631. package/dist/commands/skill.js +1 -1
  632. package/dist/commands/skill.js.map +1 -1
  633. package/dist/commands/slack.d.ts +10 -0
  634. package/dist/commands/slack.d.ts.map +1 -1
  635. package/dist/commands/slack.js +70 -2
  636. package/dist/commands/slack.js.map +1 -1
  637. package/dist/commands/start.d.ts.map +1 -1
  638. package/dist/commands/start.js +3 -6
  639. package/dist/commands/start.js.map +1 -1
  640. package/dist/commands/terminal.js +1 -1
  641. package/dist/commands/terminal.js.map +1 -1
  642. package/dist/commands/whoami.d.ts.map +1 -1
  643. package/dist/commands/whoami.js +2 -1
  644. package/dist/commands/whoami.js.map +1 -1
  645. package/dist/config-store.d.ts.map +1 -1
  646. package/dist/config-store.js +3 -2
  647. package/dist/config-store.js.map +1 -1
  648. package/dist/daemon-lifecycle.d.ts +5 -1
  649. package/dist/daemon-lifecycle.d.ts.map +1 -1
  650. package/dist/daemon-lifecycle.js +13 -2
  651. package/dist/daemon-lifecycle.js.map +1 -1
  652. package/dist/fetch-with-timeout.d.ts.map +1 -1
  653. package/dist/fetch-with-timeout.js +3 -1
  654. package/dist/fetch-with-timeout.js.map +1 -1
  655. package/dist/lib/scope/dot-id.js +2 -2
  656. package/dist/lib/scope/dot-id.js.map +1 -1
  657. package/dist/lib/scope/scaffold-placeholder.d.ts +1 -1
  658. package/dist/lib/scope/scaffold-placeholder.js +1 -1
  659. package/dist/lib/scope/scope-audit.js +1 -1
  660. package/dist/lib/scope/scope-audit.js.map +1 -1
  661. package/dist/lib/scope/types.d.ts.map +1 -1
  662. package/dist/lib/scope/types.js +2 -3
  663. package/dist/lib/scope/types.js.map +1 -1
  664. package/dist/long-request-fetch.d.ts +9 -0
  665. package/dist/long-request-fetch.d.ts.map +1 -0
  666. package/dist/long-request-fetch.js +48 -0
  667. package/dist/long-request-fetch.js.map +1 -0
  668. package/dist/mcp-http.d.ts +38 -2
  669. package/dist/mcp-http.d.ts.map +1 -1
  670. package/dist/mcp-http.js +303 -36
  671. package/dist/mcp-http.js.map +1 -1
  672. package/dist/mcp-presence.d.ts +14 -0
  673. package/dist/mcp-presence.d.ts.map +1 -0
  674. package/dist/mcp-presence.js +50 -0
  675. package/dist/mcp-presence.js.map +1 -0
  676. package/dist/mcp-server.d.ts +12 -2
  677. package/dist/mcp-server.d.ts.map +1 -1
  678. package/dist/mcp-server.js +620 -204
  679. package/dist/mcp-server.js.map +1 -1
  680. package/dist/release-surface/affected-skills.d.ts.map +1 -1
  681. package/dist/release-surface/affected-skills.js +1 -2
  682. package/dist/release-surface/affected-skills.js.map +1 -1
  683. package/dist/remote-host-ops.d.ts +1 -0
  684. package/dist/remote-host-ops.d.ts.map +1 -1
  685. package/dist/remote-host-ops.js +2 -2
  686. package/dist/remote-host-ops.js.map +1 -1
  687. package/dist/rig-handle.d.ts +1 -0
  688. package/dist/rig-handle.d.ts.map +1 -1
  689. package/dist/rig-handle.js +9 -0
  690. package/dist/rig-handle.js.map +1 -1
  691. package/dist/tmux-health.d.ts +26 -0
  692. package/dist/tmux-health.d.ts.map +1 -1
  693. package/dist/tmux-health.js +42 -0
  694. package/dist/tmux-health.js.map +1 -1
  695. package/package.json +5 -2
  696. package/tui/dist/attention/attention-model.d.ts +19 -0
  697. package/tui/dist/attention/attention-model.d.ts.map +1 -1
  698. package/tui/dist/attention/attention-model.js +38 -6
  699. package/tui/dist/attention/attention-model.js.map +1 -1
  700. package/tui/dist/commands/registry.d.ts.map +1 -1
  701. package/tui/dist/commands/registry.js +4 -1
  702. package/tui/dist/commands/registry.js.map +1 -1
  703. package/tui/dist/daemon-client.d.ts +15 -9
  704. package/tui/dist/daemon-client.d.ts.map +1 -1
  705. package/tui/dist/daemon-client.js +21 -12
  706. package/tui/dist/daemon-client.js.map +1 -1
  707. package/tui/dist/demo-data.js +17 -17
  708. package/tui/dist/demo-data.js.map +1 -1
  709. package/tui/dist/hydrate.d.ts +1 -1
  710. package/tui/dist/hydrate.d.ts.map +1 -1
  711. package/tui/dist/hydrate.js +37 -11
  712. package/tui/dist/hydrate.js.map +1 -1
  713. package/tui/dist/live-events.js +1 -1
  714. package/tui/dist/live-events.js.map +1 -1
  715. package/tui/dist/main.js +34 -10
  716. package/tui/dist/main.js.map +1 -1
  717. package/tui/dist/page-read.js +1 -1
  718. package/tui/dist/page-read.js.map +1 -1
  719. package/tui/dist/render.d.ts +6 -0
  720. package/tui/dist/render.d.ts.map +1 -1
  721. package/tui/dist/render.js +57 -7
  722. package/tui/dist/render.js.map +1 -1
  723. package/tui/dist/state.d.ts.map +1 -1
  724. package/tui/dist/state.js +5 -1
  725. package/tui/dist/state.js.map +1 -1
  726. package/tui/dist/terminals/open-window.d.ts +8 -3
  727. package/tui/dist/terminals/open-window.d.ts.map +1 -1
  728. package/tui/dist/terminals/open-window.js +21 -6
  729. package/tui/dist/terminals/open-window.js.map +1 -1
  730. package/tui/dist/terminals/terminal-model.d.ts +1 -1
  731. package/tui/dist/terminals/terminal-model.d.ts.map +1 -1
  732. package/tui/dist/terminals/terminal-model.js +1 -1
  733. package/tui/dist/terminals/terminal-model.js.map +1 -1
  734. package/tui/dist/types.d.ts +10 -1
  735. package/tui/dist/types.d.ts.map +1 -1
  736. package/ui/dist/assets/{index-DLP1ipGq.js → index-DV0UNxFw.js} +1 -1
  737. package/ui/dist/index.html +1 -1
@@ -4,6 +4,33 @@ A community harness is a coding harness an outside contributor maintains. You in
4
4
  rig member runs it by naming it as its `runtime`. OpenRig doesn't test these harnesses. It shows them as community
5
5
  harnesses, and it reads their activity only from what the screen shows.
6
6
 
7
+ ## What a community harness gets
8
+
9
+ What OpenRig does for a community-harness seat, capability by capability. **Partly** and **no** mean OpenRig shows that it doesn't know;
10
+ it never reads an unsupported capability as idle, working, ready or verified.
11
+
12
+ | Capability | Supported | How it works, or what you see instead |
13
+ |---|---|---|
14
+ | Launch | yes | OpenRig types the preset's `command` into the seat's pane, with its variables passed through `/usr/bin/env`. The seat reads as ready once something other than a shell runs in the pane; that's a process check, not proof of which conversation it runs. With `startup_assisted`, the seat reports attention required until a person checks it. |
15
+ | Delivery | yes | `rig send` and queue wakes paste the text into the pane and press Enter, as for any seat. A pane that's back at a shell is refused (`target_runtime_unverified`) and nothing is typed. OpenRig doesn't confirm the harness took the message; `rig send --verify` checks the pane afterwards. |
16
+ | Identity | when declared | With `launch_result`, the conversation is shown as reported by its launcher; with `names_conversation`, as named by OpenRig. Neither is observed by OpenRig. Without either, the identity is unavailable. |
17
+ | Resume | when declared | `resume: true` with one of the two above (see [Reopening a conversation](#reopening-a-conversation-resume-true)). Without it, a resume says `Resume is unsupported: community harness "<name>" is launch-only`, and a restore stops and asks. |
18
+ | Activity | partly | Read from the screen only; there are no activity hooks. Work and attention the screen shows are kept, but a screen that looks idle reads `unknown`, never idle, because a quiet prompt can be an approval or a pause. |
19
+ | Attention | partly | Read from the screen: a permission question or numbered choice that OpenRig recognizes reads as needing attention, and `rig send` won't type into it. A prompt it doesn't recognize reads `unknown`. |
20
+ | Approval | no | Approvals stay in the harness's own pane. OpenRig relays none, so a person answers them there. |
21
+ | Cancel | no | OpenRig has no verb that cancels a running turn. `rig seat stop` and `rig down` end the seat's tmux session; anything the harness runs outside its pane, such as a gateway, is its own, and the preset's `limits` should say what keeps running. Restarting in place and switching harness are refused. |
22
+ | Transport | yes | The seat is a tmux pane like any other, so `rig capture`, `rig send` and `--host` work as they do for any seat. |
23
+
24
+ **Not placed:** guidance, skills and startup files (a launch warns that they weren't delivered), and the model: set it in the harness's own
25
+ configuration.
26
+
27
+ **Check that the harness answers on its own first.** Before writing a preset, start the harness in a terminal outside OpenRig, with the
28
+ same configuration and credentials your launcher will give it, and send it one prompt. Use the folder your launcher gives the seat, not
29
+ the harness's default one: the example launchers keep one per seat under `$OPENRIG_HOME/state/<harness>/` (`HERMES_HOME`,
30
+ `OPENCLAW_STATE_DIR` or `CURSOR_CONFIG_DIR`), so a check with your own defaults can pass while the seat's setup fails. If no answer comes
31
+ back, the problem is in the harness's own setup, such as its model, provider or login, and relaunching an OpenRig seat won't fix it. Fix
32
+ it in the harness, then connect it.
33
+
7
34
  ## The preset
8
35
 
9
36
  One YAML file per harness: `$OPENRIG_HOME/community-harnesses/<name>.yaml`. `rig community-harness list` shows what's
@@ -128,7 +155,9 @@ Agent's CLI.
128
155
  flags and then reopens it, refusing any creation flag (model, provider, `--max-turns`) that differs. So the preset's
129
156
  command carries none, and each seat's `config.yaml`, in its Hermes home, sets them before the seat's first start:
130
157
  the model and provider, and `agent.max_turns` if you want a cap (nothing else sets it once the flag is gone).
131
- - **Let Hermes run `rig` as the seat:** Hermes runs every tool command in one gateway per machine, with that gateway's
158
+ - **Let Hermes run `rig` as the seat:** Hermes runs every tool command in its gateway, one per Hermes home, so with
159
+ this launcher one per seat (a two-seat run showed separate gateways, homes and sockets, and stopping one seat left
160
+ the other's running). It runs them with that gateway's
132
161
  environment, and swaps in a session's own values only for its toolchain names and the names its profile lists in
133
162
  `terminal.client_env_passthrough`. So put the seat's OpenRig variables in that list, in each seat's `config.yaml`
134
163
  ([`config.yaml.example`](community-harness-examples/hermes/config.yaml.example)). Without it, `rig` inside Hermes
@@ -139,7 +168,8 @@ Agent's CLI.
139
168
  - **The preset:** it declares `names_conversation` but not `resume`, until reopening a named session, and a missing one,
140
169
  have been checked with a real Hermes.
141
170
  - **Stopping:** Hermes's CLI is a client of a gateway, so closing a seat's pane detaches it. Hermes finishes any turn it
142
- accepted, and the seat's gateway exits once idle. The preset says so in its limits.
171
+ accepted. Whether the seat's gateway then exits once idle hasn't been checked: check with `ps` that a stopped seat's
172
+ gateway has gone before relying on it. The preset says so in its limits.
143
173
 
144
174
  Copy them and maintain them as your own.
145
175
 
@@ -151,13 +181,18 @@ OpenClaw's CLI.
151
181
  - **The conversation:** both examples use only agent `main`, mapping OpenRig's name to the full native key `agent:main:<OpenRig name>`. Each seat has its own client state folder.
152
182
  - **Its resume check:** local mode checks `sessions --agent main --json --limit all`; Gateway mode calls the selected Gateway's `sessions.describe`. Both require the exact canonical key. An unavailable lookup stops the launch; a confirmed missing key is never recreated. A client's local cache cannot authorize Gateway resume.
153
183
  - **Stopping:** a Gateway client's pane closing detaches it. The Gateway and an accepted turn can keep running; stopping that service is separate. Local mode runs its embedded agent in the pane.
154
- - **Local interruption:** Finish the current local turn before stopping; an interrupted local turn may retain native recovery work and refuse the next request. This launcher does not repair or retry it.
184
+ - **Unattended seats:** prefer Gateway mode within the capabilities qualified for your installed version. Local interrupted-turn recovery is not supported by these launchers.
185
+ - **Local interruption:** Finish the current local turn before stopping; an interrupted local turn may retain native recovery work and refuse the next request. This launcher does not repair or retry it. OpenRig recognizes the recorded local “changed while starting work” error frame as needing attention: “OpenClaw turn not recovered; inspect the pane before retrying”. Use `rig capture <session>` to inspect the native conversation. An ordinary send still submits a new turn, with an advisory that the last local turn was not recovered; it is not an automatic replay of that turn. It does not clear native recovery records, repeat the request or start a fresh conversation; a successful process launch is not proof that the turn recovered.
155
186
  - **Local startup after resume:** OpenClaw may run its database integrity check during startup. A reported resumed process does not confirm readiness for the next request; check that the TUI has finished starting before sending work.
156
187
  - **Resets must stay off:** automatic session resets can create a new conversation under the same key. Typing `/new` also moves to a fresh key while the seat keeps the name OpenRig gave it.
157
188
  - **The presets:** both declare `names_conversation`, `resume` and `first_input`. The launcher passes the generated first startup text through OpenClaw's `--message` option. OpenRig labels the saved name as passed, not observed by its adapter.
158
189
 
159
190
  Copy the launcher and the preset for your mode, and maintain them as your own.
160
191
 
192
+ **Stopping a community seat stops its pane.** `rig down` names those seats ("Pane stopped: …"), since a harness's own
193
+ processes, a gateway say, may keep running after it. OpenRig doesn't stop them, and whether they survive isn't exercised
194
+ by OpenRig's tests, so check the harness's own processes after `rig down`. Each preset's limits say what to expect.
195
+
161
196
  **Not supported for community harnesses:** restarting a seat in place (`rig seat restart` is for Codex seats) and
162
197
  switching harness on a running seat. Each says so before anything changes.
163
198
 
@@ -192,3 +227,48 @@ The contributor-owned launcher reads the file and uses its harness’s supported
192
227
  OpenRig records `node.startup_first_input_passed` with the path and `submission: unconfirmed`. This says the input was passed at launch, not that the native harness submitted or read it. An uncertain launch is not permission to replay it. Readiness remains process-only. `startup_assisted` is independent: when declared, startup still requires a person’s acknowledgement, including when the first input was passed at launch.
193
228
 
194
229
  Presets without `first_input` and built-in runtimes keep their existing behavior. Older OpenRig versions reject this new field as unknown. The private input file remains for diagnostics; it can contain private startup context. A launcher that turns its contents into one argument is subject to the platform’s argument-size limit; the launcher must report a launch error rather than silently truncate the turn. The examples’ argument transport is covered with stand-ins; native unattended startup still requires qualification with the installed harness.
230
+
231
+ ## Write your own
232
+
233
+ Start from the example closest to your harness, and change it. First check that the harness answers a prompt on its own
234
+ ([above](#what-a-community-harness-gets)).
235
+
236
+ 1. **Choose how the conversation is named.**
237
+ - **Your harness creates an id you can read before it starts,** as Cursor's `create-chat` does: declare `launch_result: true`, and the
238
+ launcher writes the record.
239
+ - **Your harness takes a name from its caller and creates or reopens it,** as Hermes's `-c <name>` and OpenClaw's session key do: declare
240
+ `names_conversation: true`, and the launcher passes `OPENRIG_CONVERSATION` on.
241
+ - **Neither:** leave both out. The seat starts and works, its identity shows as unavailable, and it can't be resumed.
242
+ 2. **Write the launcher:** a small script your package installs on the seat's `PATH`. It reads OpenRig's variables, starts the harness with
243
+ `exec`, and does nothing else.
244
+ - `OPENRIG_CONVERSATION` with `names_conversation`, or `OPENRIG_LAUNCH_RESULT` and `OPENRIG_LAUNCH_ATTEMPT` with `launch_result`.
245
+ - **On a resume,** `OPENRIG_RESUME_REF`: reopen exactly that conversation. Check that it exists first, and when it doesn't, end with an
246
+ error (or report `error: "missing"`) instead of creating one.
247
+ - **With `first_input: true`,** `OPENRIG_FIRST_INPUT`: pass the file's exact bytes through your harness's own first-prompt route.
248
+ - **Keep each seat's harness state apart** (Cursor's config folder, Hermes's home, OpenClaw's state folder), so two seats never share a
249
+ conversation.
250
+ 3. **Write the preset** at `$OPENRIG_HOME/community-harnesses/<name>.yaml`, and check it with `rig community-harness list`.
251
+ - Declare `resume` only after checking, with the real harness, that a reopen works and that a missing conversation is refused.
252
+ - List what doesn't work under `limits`.
253
+ 4. **Try it in a rig:** give a member `runtime: <name>`, then go through the checks in the promotion test below.
254
+ 5. **Publish the preset and the launcher in your own package,** and maintain them. OpenRig runs no code from a preset, so the launcher is
255
+ yours.
256
+
257
+ ## The promotion test
258
+
259
+ A community harness stays a community harness: you maintain it, and OpenRig shows it as one. **Promotion** means OpenRig takes a harness on
260
+ as a built-in runtime that it maintains and tests itself. **Promotion is decided by the OpenRig maintainers, on evidence from OpenRig's own
261
+ testing.** Passing these checks isn't automatic promotion, and it isn't a promise of upstream support.
262
+
263
+ What the maintainers look at:
264
+ 1. **Everything the preset declares works on a real install,** end to end through OpenRig:
265
+ - a seat starts and takes its first turn (`rig up`);
266
+ - a message arrives (`rig send`), and the reply can be read (`rig capture`);
267
+ - the seat stops (`rig down`) without leaving work running that the person can't see, or the preset's `limits` say what keeps running;
268
+ - with `resume`, `rig up <rig> --existing` reopens the same conversation, and a missing one is refused, never replaced.
269
+ 2. **What it doesn't support reads as not known,** never as idle, working, ready or verified.
270
+ 3. **Its `limits` are true,** and name anything a person would otherwise be surprised by.
271
+ 4. **The built-in runtimes are unchanged.**
272
+ 5. **It's maintained:** a named maintainer, and a launcher that keeps working with the harness's current release.
273
+
274
+ There's no score or threshold. The maintainers weigh the evidence.
@@ -0,0 +1,165 @@
1
+ # Gateway participants: several people, shared channels, organizations and policy
2
+
3
+ OpenRig's gateway can register **several people** and **shared channels**, group them into **organizations** and
4
+ **groups**, give each readable **policy** text, and name a **default person**. Agents read the policy and apply it;
5
+ OpenRig doesn't enforce it. This page covers the commands, what the default is for, and what upgrading and rolling back
6
+ do.
7
+
8
+ ## Participants
9
+
10
+ A participant is either:
11
+ - **a person**, registered with `rig gateway human add` as before, with their own Slack binding; or
12
+ - **a shared channel**: one vetted Slack channel registered as one participant, `<id>@external`, not a person per
13
+ sender.
14
+
15
+ People and channels share one address space: a channel can't take a person's id.
16
+
17
+ ```bash
18
+ # An organization and a group inside it (one command each, create or update)
19
+ rig gateway org set acme --name "Acme" --policy "Answer Acme's customers within a working day. Never promise a date."
20
+ rig gateway group set support --organization acme --name "Support" --policy-file ./support-policy.md
21
+
22
+ # People: the second and later ones are allowed now
23
+ rig gateway human add sarah --display-name "Sarah" \
24
+ --binding "slack:main:file:/etc/openrig/slack.env:primary:handle=U0SARAH" --delivery-class B \
25
+ --organization acme --group support --policy "Sarah approves refunds up to 500." --default
26
+
27
+ # A shared channel
28
+ rig gateway channel add acme-customers --display-name "Acme customers" \
29
+ --binding "slack:main:file:/etc/openrig/slack.env:C0ACME" --organization acme
30
+
31
+ # See everyone, with organization, groups, the default and each participant's policy
32
+ rig gateway participants
33
+ rig gateway participants --organization acme --json
34
+ rig gateway human show sarah
35
+ ```
36
+
37
+ Change a person's placement with `rig gateway human set <id> organization|groups|policy <value>` (`unset` clears it;
38
+ for policy, `@<path>` reads a file). Remove a channel with `rig gateway channel remove <id>`, which refuses while
39
+ non-terminal rows are addressed to it unless you pass `--force`.
40
+
41
+ ## Policy is context, not enforcement
42
+
43
+ A participant's **effective policy** is its organization's text, then each of its groups', then its own, each labelled
44
+ with where it came from. Agents read it (`rig gateway participants --json`, `rig gateway human show --json`) and apply
45
+ it with judgment. It doesn't grant or block anything by itself, and a participant's name never implies a policy.
46
+
47
+ ## The default person
48
+
49
+ Some things need a person without naming one: an escalation of stuck work, the digest of notices, Mission Control's
50
+ my-queue, a workflow's human step when no person is configured for it, and a pairing approval without `--human`. They
51
+ go to:
52
+ 1. the default person, when one is chosen (`rig gateway default <id>`, or `--default` on `human add`);
53
+ 2. otherwise the only registered person, so a one-person install needs no choice;
54
+ 3. otherwise nobody, and each says so: an escalation reports `undeliverable:no-default-person`, the notice digest
55
+ waits, and the others name the command to run.
56
+
57
+ `rig gateway default` shows the current default; `rig gateway default --clear` clears the choice. Choosing a default
58
+ never changes `workspace.operator_seat_name`, which keeps its own meaning.
59
+
60
+ ## In the TUI: whose queue, and who acts
61
+
62
+ The person at the terminal is the **primary user**: the default person, or, with several people and none chosen, the
63
+ person at the terminal unnamed. Whatever the TUI shows, its acts are theirs.
64
+ - **Opening:** with a chosen default, the TUI opens on that person's Feed. With none chosen, including a one-person
65
+ install that never chose one, it opens on the topology, as before.
66
+ - **Whose queue:** `whose <person>` shows one person's asks, `whose all` everyone's, and `whose default` the default
67
+ person's. The Feed's first line says whose queue it shows and who acts.
68
+ - **Acting on someone else's ask** (answer, approve or resolve from the TUI) records both: the primary user as the actor,
69
+ and the person asked in the audit notes and the transition. The asking seat reads, for example, "Answered by
70
+ mike@external, the primary user at the terminal, on sarah@external's ask". With several people and none chosen, the
71
+ actor is `human@host`.
72
+ - **Viewing Sarah isn't acting as Sarah.** Only Sarah, from her own channel, answers as Sarah. Without the primary
73
+ user's authority, one registered person can't answer, approve, deny or resolve what was asked of another; that's
74
+ refused (`answer_not_recorded`) and nothing changes.
75
+ - With no one registered, the TUI and its acts are as before, except on a shared channel's ask or a row parked on a
76
+ channel: the TUI shows the act as `human@host`, the person at the terminal, and it's recorded that way, never as the
77
+ channel.
78
+ - **A shared channel never acts.** Its messages are correspondence, so nothing it says answers, approves, denies or
79
+ resolves an ask, and a customer's earlier message in an ask's thread is never taken as its answer. A request without
80
+ the primary user's authority that acts as a channel, with any Mission Control verb (including drop, route, hold, hand
81
+ off and annotate), is refused (`answer_not_recorded`) and nothing changes.
82
+ - **Where the authority applies:** only on a request that carries no seat identity header, which is how the TUI calls
83
+ the daemon. Seats and the CLI send that header, so their acts stay theirs. This is the existing trusted-network
84
+ distinction, not an authentication check: a request that leaves the header out is taken as the terminal's, as any
85
+ such request already is.
86
+
87
+ ## Shared-channel conversations
88
+
89
+ A registered shared channel lets people who aren't registered, such as a customer, talk to a seat, without registering
90
+ each of them.
91
+
92
+ **Setup:**
93
+ 1. Invite the OpenRig Slack app to the channel.
94
+ 2. Register the channel: `rig gateway channel add acme-customers --display-name "Acme customers" --binding
95
+ "slack:main:file:/etc/openrig/slack.env:C0ACME" --organization acme --policy-file ./acme-customers.md`.
96
+ 3. Send its new messages to the support seat: `rig slack channel-map set support-rig C0ACME --inbound
97
+ support@support-rig`. Without a map, they go to the inbound destination.
98
+
99
+ A channel works on its own: no registered person is needed for it to converse.
100
+
101
+ **What the seat sees:** each message lands as a row from the channel (`acme-customers@external`). Its body ends with a
102
+ labelled block: the channel, its organization and groups, who wrote (the Slack user, marked as not a registered person),
103
+ and the channel's effective policy. The row is tagged `participant:acme-customers`, `shared-channel` and
104
+ `slack-sender:<user id>`. A registered person writing in the channel stays themselves; the block only says where they
105
+ wrote.
106
+
107
+ The channel's policy is the labelled block OpenRig adds at the end of the row, after the message. Anything above it is
108
+ the sender's own words, even if it looks like policy. `rig gateway participants --json` is the source.
109
+
110
+ **Answering:** reply into the customer's thread with an update to the channel:
111
+
112
+ ```bash
113
+ rig queue create --destination acme-customers@external --human-intent update --reply-to <their row's id> \
114
+ --summary "Your invoice" --body "It's on your account page."
115
+ ```
116
+
117
+ A later update with the same `--reply-to` lands in the same thread. An update without `--reply-to` posts to the channel
118
+ on its own. Posts to a channel mention nobody.
119
+
120
+ **What a channel can't do:** its messages are correspondence. They never answer, approve, close or resume anyone's ask.
121
+ You can still send an ask to the channel; the queue accepts it with a warning that nothing there will settle it, so read
122
+ the replies and close it yourself. Its questions show in the channel as a list, without buttons, and ask for a reply in
123
+ the thread.
124
+
125
+ ## Where it's stored
126
+
127
+ - **People** stay exactly as before: one file per person under `$OPENRIG_HOME/gateway/humans/`, plus the generated
128
+ `humans.generated.yaml`. Nothing new is written into them.
129
+ - **Everything else** (the default, organizations, groups, each participant's placement and policy, and shared
130
+ channels) is in `$OPENRIG_HOME/gateway/participants.yaml`, written by the commands above.
131
+ - **A problem in `participants.yaml` never disables the person registry.** People still receive and answer their asks.
132
+ The commands above report the problem, and with several people no default is chosen until it's fixed.
133
+ - **A person removed by hand** leaves a warning in `rig gateway participants`, not a broken file. `rig gateway human
134
+ remove` also removes the person's placement, and the default if it was them.
135
+
136
+ ## Upgrading
137
+
138
+ For a one-person install, nothing to do: it keeps working as before, that person stays the default, pending rows keep
139
+ their addresses, and no new file is written until you use one of the commands above.
140
+
141
+ A TUI older than the daemon still works: it sends the actor the daemon serves, the person asked, which is still their
142
+ own act. On a shared channel's ask the daemon serves `human@host`. An older TUI's approve there is recorded as
143
+ `human@host`, and its answer is refused (`answer_not_recorded`), because answering someone else's ask takes the primary
144
+ user's authority, which only a current TUI sends.
145
+
146
+ **If several people are already registered** (earlier versions listed hand-added people with an advisory), choose a
147
+ default with `rig gateway default <id>` after upgrading. Until you do, escalations report
148
+ `undeliverable:no-default-person` instead of reaching whoever's id sorted first, and the notice digest waits.
149
+
150
+ ## Rolling back to 0.7.2 or earlier
151
+
152
+ Older versions don't read `participants.yaml`, and the person files carry nothing they don't understand, so:
153
+ - **every registered person still loads**, and each can still answer their own asks from Slack;
154
+ - **another person's reply is guarded less on 0.7.1 and 0.7.0:** there, a different person's Slack reply in the thread
155
+ of a question parked on someone else can resume that question, and 0.7.0 can record such a reply to a pending ask as
156
+ an answer row (it still can't close the ask);
157
+ - **there's no default:** escalations and the notice digest go to the first person by id, Mission Control's my-queue
158
+ has no default person, and pairing needs `--human`;
159
+ - **the TUI** opens on the topology and records a terminal answer as the person asked, as before. Rows already
160
+ answered by the primary user keep their notes;
161
+ - **shared channels are unknown:** their customers' messages are refused again, as from any unregistered sender, and
162
+ rows addressed to a channel become undeliverable on the older version;
163
+ - **organizations, groups and policy aren't shown.**
164
+
165
+ Upgrading again restores all of it, because the older version never changes `participants.yaml`.
@@ -191,11 +191,11 @@ You can also read [`skills/rigs/SKILL.md`](../../skills/rigs/SKILL.md) directly.
191
191
  script will do and changes nothing:
192
192
 
193
193
  ```sh
194
- curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.2/scripts/install.sh | sh -s -- --dry-run
194
+ curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.4/scripts/install.sh | sh -s -- --dry-run
195
195
  ```
196
196
 
197
197
  The same command without `--dry-run`,
198
- `curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.2/scripts/install.sh | sh`, installs the
198
+ `curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.4/scripts/install.sh | sh`, installs the
199
199
  latest published `@openrig/cli` with `npm install -g`,
200
200
  runs the Node.js and SQLite check, then `rig setup --dry-run` and `rig setup`. `rig setup` checks both Claude Code and
201
201
  Codex and may install a missing one, as described below. A failed step prints
@@ -698,9 +698,11 @@ partial terminal view is not a healthy team. Each `--provider herdr` open adds
698
698
  a new workspace, numbered when the name is taken; return to the one already open
699
699
  when you want to preserve it. From inside Herdr, `rig terminal open <view> --window`
700
700
  focuses a matching space instead of adding one. Herdr's own status for a seat can
701
- read idle or unknown while OpenRig shows it waiting (`needs-input`); use OpenRig's
702
- view or the Feed to find waiting seats. This is terminal integration, not native
703
- plugin enrollment.
701
+ read idle or unknown while OpenRig shows it waiting (`needs-input`), for example in
702
+ a narrow tile that wraps Claude's footer, or in a tile that shows the inner tmux
703
+ status line (with `terminal.status_bar` on, or for a seat session OpenRig
704
+ adopted rather than created). Use OpenRig's view or the Feed to find waiting
705
+ seats. This is terminal integration, not native plugin enrollment.
704
706
 
705
707
  For team views with interactive panes, the open result distinguishes the dashboard
706
708
  overview from the team's lead conversation and asks whether you can see the team.
@@ -839,14 +841,16 @@ the lifecycle API without booting a new kernel, then stop the remaining rigs.
839
841
  | Shared terminal is absent | Inspect the existing kernel binding and recovery state; use standalone `rig tui` while resolving it. |
840
842
  | Viewing terminal was closed | Open the conversations again with `rig terminal open saved:kernel --window`; `rig tui --shared` is only the dashboard fallback if that window cannot open. Do not relaunch the team. |
841
843
  | Daemon restarted but tmux survived | Re-read `rig status` and the existing queue; a daemon restart is not a fresh project. |
842
- | Host reboot lost tmux sessions | Starting the daemon restores the kernel by itself when all of its seats were lost; check `rig status`, and if it reports the restore failed, run `rig up kernel --existing`. For other rigs, open `rig`, start the daemon if needed (press **S** if it opens on the work views), and select the existing rig and seats. Resume is the default; a fresh conversation needs a separate decision. |
844
+ | Host reboot lost tmux sessions | Starting the daemon restores the kernel by itself when that start finds all of its seats lost; a kernel that was already down before the reboot stays down, and `rig start` names `rig up kernel --existing`. Check `rig status`, and if it reports the restore failed, run `rig up kernel --existing`. For other rigs, open `rig`, start the daemon if needed (press **S** if it opens on the work views), and select the existing rig and seats. Resume is the default; a fresh conversation needs a separate decision. |
843
845
  | Launch reports no usable snapshot | Inspect the existing rig and retained project files, then follow the same-seat recovery below. |
844
846
  | Work is waiting on a prompt or decision | Read the row, transition and named prompt; preserve the obligation until the missing decision arrives. |
845
847
 
846
848
  **When the kernel's seats all fail at the first start.** A report on Oracle Linux 10
847
849
  ([#980](https://github.com/mvschwarz/openrig/issues/980)) traced this to the distribution's packaged tmux, whose
848
- `tmux -V` prints `next-3.4`: its server exited on every `capture-pane -p`, also outside OpenRig. To check your tmux on
849
- a throwaway socket, without touching your own sessions:
850
+ `tmux -V` prints `next-3.4`: its server exited on every `capture-pane -p`, also outside OpenRig. `rig setup` (its tmux
851
+ step) and `rig doctor` (`tmux_capture` in `rig doctor --json`) run this check for you on a throwaway server and name the
852
+ fix when capture fails; they test what tmux does, not its version. To run it by hand, without touching your own
853
+ sessions:
850
854
 
851
855
  ```sh
852
856
  tmux -L "openrig-check-$$" -f /dev/null new-session -d -s check
@@ -139,7 +139,9 @@ issue's current status; a similar symptom alone is not a diagnosis.
139
139
 
140
140
  - Claude seats reported as needing attention after a restore: [#86](https://github.com/mvschwarz/openrig/issues/86),
141
141
  [#273](https://github.com/mvschwarz/openrig/issues/273).
142
- - Claude usage limits may not be detected: [#99](https://github.com/mvschwarz/openrig/issues/99).
142
+ - Claude usage limits may not be detected when neither a status line window nor a current
143
+ `StopFailure/rate_limit` hook is available: [#99](https://github.com/mvschwarz/openrig/issues/99).
144
+ See [Claude usage-limit detection](claude-status-line.md#claude-usage-limit-detection) for the inputs and retry behavior.
143
145
  - Codex prompt variants not recognised as idle: [#79](https://github.com/mvschwarz/openrig/issues/79).
144
146
  - Codex asks about hook trust at first launch: [#17](https://github.com/mvschwarz/openrig/issues/17), not reproduced
145
147
  by the team.
@@ -147,8 +149,9 @@ issue's current status; a similar symptom alone is not a diagnosis.
147
149
  daemon, when its Codex configuration sets network access off, a managed requirement could restrict it, or Codex
148
150
  doesn't answer OpenRig's configuration read in time: [#275](https://github.com/mvschwarz/openrig/issues/275).
149
151
  - Kernel seats fail within a second of the first start on a distribution tmux whose server exits on `capture-pane`
150
- (`tmux -V` prints `next-3.4`): [#980](https://github.com/mvschwarz/openrig/issues/980). The check and recovery
151
- are in [Incomplete setup and restart](getting-started.md#incomplete-setup-and-restart).
152
+ (`tmux -V` prints `next-3.4`): [#980](https://github.com/mvschwarz/openrig/issues/980). `rig doctor` checks for
153
+ it (`tmux_capture`); the manual check and recovery are in
154
+ [Incomplete setup and restart](getting-started.md#incomplete-setup-and-restart).
152
155
 
153
156
  For everything else, search [open issues](https://github.com/mvschwarz/openrig/issues).
154
157
 
@@ -0,0 +1,110 @@
1
+ # Hosted members: a tool outside the terminal on your team
2
+
3
+ A hosted member is a tool that lives outside a terminal, such as an assistant, a chat bot or a cloud routine, and works as a member of a rig. You
4
+ address work to it like any seat. It reaches the team through OpenRig's MCP server under a grant you issue and can revoke. It never gets a pane.
5
+
6
+ ## Set one up
7
+
8
+ 1. **Pick its address** on an existing rig: `<member>@<rig>`, for example `grok@research`. No node is added; the queue takes rows for it.
9
+ 2. **Say what it's good at, and its limits,** in a roster: an entry in `<workspace.root>/rosters/<file>.json` with its seat, this machine's host id
10
+ (`hostSelfId` from `rig ps --nodes -A --json`), `capabilities`, `use_when`, `why`, a `caveat` for its limits, and `"hosted": true` (see
11
+ [Rosters](rosters.md)).
12
+ 3. **Issue its grant:**
13
+
14
+ ```sh
15
+ rig mcp token add grok --seat grok@research --rig research
16
+ ```
17
+
18
+ It prints the token once. The member acts as `grok@research`: every row it creates or changes is attributed to that seat, and it reaches only
19
+ that rig's seats and work.
20
+ 4. **Serve the MCP server over HTTP** behind a tunnel or proxy that adds TLS: `rig mcp serve --http`. See `rig mcp serve --help` for binding and
21
+ for how authentication works. If the proxy runs browser checks (such as Cloudflare's Browser Integrity Check), skip them for `/mcp`:
22
+ MCP clients aren't browsers.
23
+ 5. **Add the server in the tool:** its `https://…/mcp` URL and the token as a bearer credential.
24
+
25
+ ## How it works its rows
26
+
27
+ - **Hand it work** as you would any seat: `rig queue create --destination grok@research …`.
28
+ - **The member works it** through the MCP tools:
29
+ - `rig_queue_list` with `owned` lists its rows;
30
+ - `rig_queue_claim` takes one;
31
+ - `rig_queue_update` closes it done with the answer in `resolution`, or `rig_queue_handoff` hands it on to a seat in its rig.
32
+ - **It can send work too:** `rig_queue_create` to its rig's seats.
33
+ - **Its rows outlive the conversation.** A new conversation with the same grant reaches the same work.
34
+ - **`rig_whoami`** answers the seat its grant names, though the member has no session.
35
+
36
+ ## Asking a person while keeping the work
37
+
38
+ When a row needs a person's approval before the member can finish it, the member keeps the row and asks:
39
+ - **The row came from a person:** the member sets it `blocked` with `blockedOn` that person, and puts the question, with a short form of
40
+ what it will do, in the row's `summary`. The person is asked with the summary and the row; a transition note stays in the row's history
41
+ and isn't part of the ask. A longer draft goes at an https link in `evidenceRef`, which the ask carries. The person's answer returns the
42
+ row to the member in progress.
43
+ - **The row came from a seat, or from a shared channel:** the member asks as a new row, to that seat, or for a channel's row to its rig's
44
+ lead (a shared channel takes correspondence and can't answer an ask). Then it sets its own row `blocked` on the new row's id. When the
45
+ question closes, the member's row returns to pending.
46
+ - **Keep the question and action summary short.** A long row body continues as numbered thread replies, within the existing delivery
47
+ limits. Use an https `evidenceRef` for a longer approval draft. The summary and framing can still be too large, so nothing promises
48
+ unlimited delivery.
49
+
50
+ Either way the row reads blocked, not done, while it waits, and the member finishes that same row. Nothing promises to wake the
51
+ member, so it checks its rows again.
52
+
53
+ The server tells the member this in its MCP instructions. The text is versioned, so you can check which version a tool received:
54
+
55
+ > Member workflow (member-workflow/v1). Your inbox is the items addressed to your seat: rig_queue_list with owned set. It's yours, not the team's queue. A wake, a ring or a message only points at it: list your inbox, then act. For each item: claim it (rig_queue_claim), do it, then close it done with the answer in resolution (rig_queue_update), or hand it on (rig_queue_handoff). Listing or reading an item doesn't take it. If the person connected you, that's basically authorized: claim the items in your inbox and do them without asking whether you may. When an item needs a person's approval before you can finish it, don't close it and don't take the action: keep the item and ask. If it came from a person (an address ending in @external that isn't a shared channel; the item's 'Shared channel:' line names one), set it blocked with blockedOn that person and, as its summary, the question with a short form of what you'll do: the person sees the summary and the item, not your note, which keeps the record. Link a longer draft as an https evidenceRef. Their answer returns the item to you in progress. Otherwise ask as a new item, to the seat it came from or, for a shared channel's item, to your rig's lead (rig_team shows it), with your question and draft. Then set yours blocked with blockedOn that new qitemId: when that item closes, yours returns to pending, to claim again. Nothing promises to wake you, so check your inbox again. Then finish the same item; don't open a new one.
56
+
57
+ ## Ring it when work lands
58
+
59
+ If the tool has a trigger that starts it from outside, such as a webhook on a scheduled routine, add it to the member's roster
60
+ entry. The entry holds secret names, never values:
61
+
62
+ ```json
63
+ "wake": { "webhook": { "url_ref": "GROK_WAKE_URL", "authorization_ref": "GROK_WAKE_AUTH", "secrets_env_file": "/abs/path/grok-wake.env" } }
64
+ ```
65
+
66
+ - **The secrets:**
67
+ - `url_ref` names the secret holding the webhook URL.
68
+ - `authorization_ref`, when the tool needs one, names the secret holding the `Authorization` header value.
69
+ - Credentials in the URL itself (`https://user:pass@host/…`) are sent as Basic `Authorization` instead, unless
70
+ `authorization_ref` is set: then its value is sent, and the URL's credentials are dropped.
71
+ - The daemon reads each from its environment (the name, or `OPENRIG_<NAME>`), else from `secrets_env_file`, an env file kept at mode 0600.
72
+ - **The ring:** when a row lands for the member, the daemon POSTs
73
+ `{"source":"openrig.queue","schema_version":1,"event":"work-waiting","qitem_id":…,"destination":…,"summary":…,"from":…}`.
74
+ - It's a pointer, not the row's body: the member reads the row under its grant.
75
+ - A receiver should tolerate a repeated `qitem_id`. A ring accepted just before the daemon stops, before it's recorded,
76
+ is rung again on recovery, the same at-least-once window a terminal wake has.
77
+ - It waits up to 10 seconds and doesn't follow redirects.
78
+ - **What the trigger should do:** start a run that lists the member's rows (`rig_queue_list` with `owned`) and claims its work.
79
+
80
+ ## What the record says, and doesn't
81
+
82
+ These facts stay separate on the row:
83
+ - **Wake:** with a trigger, the row's wake result is `wake-accepted:webhook (<url_ref>) answered <status>` when the trigger took the
84
+ ring, or `failed:webhook …`. Accepted means the tool's trigger answered, not that the member read the row.
85
+ - With no trigger, the result is `unroutable`, and OpenRig tells the person: the operator seat when it's a person, else whoever
86
+ created the row.
87
+ - It tells the person too when the member was rung but hasn't claimed the work by the stuck sweep's unclaimed age
88
+ (`queue.stuck_sweep_unclaimed_age_minutes`, 60 by default).
89
+ - The member sees new work when it checks: when it's rung, when its person asks it to, or on a schedule the tool runs.
90
+ - **Pickup:** its claim, a transition by its seat. Listing or reading a row isn't pickup.
91
+ - **Result:** the closing transition and its resolution, or the handoff.
92
+ - **Notification:** where a person asked, Slack's posted receipt. A posted notice isn't the person's acknowledgment.
93
+
94
+ **On the team:** `rig_team` lists the rig's hosted members (roster entries marked hosted that aren't one of its nodes), with their capabilities and caveat, no pane, and activity `unknown`.
95
+ OpenRig doesn't observe a hosted member between its calls, so it never reads idle. `rig roster find` shows it the same way.
96
+ - **Presence:** each entry carries `presence`, which says what OpenRig last saw of the member. It isn't pickup, and `null` means unknown:
97
+ - `lastCallAt`: its last authenticated call to this host's `rig mcp serve --http`, recorded at most once a minute in
98
+ `<OPENRIG_HOME>/mcp-http-presence.json`, beside the token file;
99
+ - `lastWake`: its latest ring and the result, among its 50 most recent rows.
100
+ - `rig roster show` and `find` show the last call; the last ring is in `rig_team`.
101
+
102
+ ## Revoke
103
+
104
+ `rig mcp token revoke grok` refuses its next request. The rows it worked, and their answers, stay.
105
+
106
+ ## Limits today
107
+
108
+ - **Webhook triggers only:** OpenRig rings a webhook. Email and other triggers aren't supported yet. A member without a trigger
109
+ isn't rung, and its person is told instead.
110
+ - **It can't act as a person:** it works rows addressed to its seat, a person's request to it included. It can't settle an ask addressed to a person, or hand work to one.
@@ -17,7 +17,7 @@ npx skills add https://github.com/mvschwarz/openrig/tree/<release-tag>/skills/ri
17
17
  npx skills add https://github.com/mvschwarz/openrig/tree/<release-tag>/skills/rigs --skill rigs --agent codex
18
18
  ```
19
19
 
20
- For a new install, use the latest release's tag, for example `v0.7.2`. If OpenRig is already installed, use the tag
20
+ For a new install, use the latest release's tag, for example `v0.7.4`. If OpenRig is already installed, use the tag
21
21
  that matches `rig --version`, or upgrade first. If the command fails with `npx: command not found`, Node.js isn't
22
22
  installed or isn't on your PATH yet (see [What you need](#what-you-need)). Then type `/rigs` in Claude Code, or `$rigs` in Codex, and say what
23
23
  you want built.
@@ -193,6 +193,18 @@ it as the step to finish: sign in, then continue at step 3.
193
193
  otherwise, or when the width can't be measured, the dashboard is on its own page. `saved:kernel` in
194
194
  `rig terminal open saved:kernel` is the name of this saved view.
195
195
 
196
+ ## Learn it in this order
197
+
198
+ 1. **How OpenRig works:** [the world and its purpose](../../packages/daemon/assets/onboarding/01-world-and-purpose.md),
199
+ the first page a new agent in a team gets. It's written to agents, and it's the shortest account of rigs, seats and
200
+ queued work. Your install has the same page under `$(npm root -g)/@openrig/cli/daemon/assets/onboarding/`.
201
+ 2. **First use:** this page, and [what these words mean](#what-these-words-mean).
202
+ 3. **One command:** `rig <command> --help` is the exact answer for the version you have installed, and `rig --help`
203
+ lists every command.
204
+ 4. **Every command and flag:** the [CLI reference](../as-built/cli-reference.md).
205
+ It describes the source commit it names, so where it and your installed `--help` disagree, `--help` is right for
206
+ your version.
207
+
196
208
  ## More
197
209
 
198
210
  - **Every detail of setup:** troubleshooting, permissions, headless and SSH use, and what can stop the view from