@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
@@ -2,6 +2,7 @@ import * as fs from "node:fs";
2
2
  import * as os from "node:os";
3
3
  import * as path from "node:path";
4
4
  import { StringDecoder } from "node:string_decoder";
5
+ import { newPinHolder, readPinSizing, recordPin, releasePin, WINDOW_SIZE_PRIOR_OPTION, withWindowPin } from "./window-pin.js";
5
6
  // OPR.0.4.0.38 - real-terminal session broker.
6
7
  //
7
8
  // The product invariant from the founder is: NO LIVE TERMINAL LIES. A live
@@ -130,6 +131,10 @@ export class TerminalSessionBroker {
130
131
  // async open/seed) to find the broker already torn down. Set on every
131
132
  // teardown path so a late/racing attach never goes silently live.
132
133
  lastClose = null;
134
+ // The window this broker pinned, by its immutable id, and listed itself as a holder of. When the last live holder lets
135
+ // go, the window gets back its own `window-size`, so native clients (Herdr, attach) size it again. Null: nothing held.
136
+ pinnedWindow = null;
137
+ holder = newPinHolder();
133
138
  constructor(sessionName, tmux, opts = {}) {
134
139
  this.sessionName = sessionName;
135
140
  this.tmux = tmux;
@@ -182,6 +187,7 @@ export class TerminalSessionBroker {
182
187
  this.lastClose = { code: open.code, reason: open.reason };
183
188
  this.torndown = true;
184
189
  this.teardownResources();
190
+ await this.restoreWindowSize();
185
191
  this.onEmpty?.(this.sessionName);
186
192
  sub.close(open.code, open.reason);
187
193
  return;
@@ -323,8 +329,8 @@ export class TerminalSessionBroker {
323
329
  void this.teardown();
324
330
  }
325
331
  }
326
- /** Force teardown (used by the registry/route on shutdown and by tests). */
327
- dispose() {
332
+ /** Force teardown (used by the registry/route on shutdown and by tests). Resolves once the sizing is given back. */
333
+ async dispose() {
328
334
  if (this.torndown)
329
335
  return;
330
336
  this.lastClose = { code: 1011, reason: "terminal broker unavailable" };
@@ -336,6 +342,10 @@ export class TerminalSessionBroker {
336
342
  void this.tmux.stopPipePane(this.sessionName).catch(() => { });
337
343
  }
338
344
  this.teardownResources();
345
+ // An open still in flight finishes its pin first, so the release below sees it. Then, before onEmpty as in
346
+ // teardown, the release: a broker created next reads the given-back value, not this one's pin.
347
+ await this.openPromise?.catch(() => { });
348
+ await this.restoreWindowSize();
339
349
  this.onEmpty?.(this.sessionName);
340
350
  }
341
351
  async openPipe() {
@@ -347,9 +357,18 @@ export class TerminalSessionBroker {
347
357
  return { ok: false, code: 1008, reason: `session not found: ${this.sessionName}` };
348
358
  // FR-7 fixed geometry: window-size manual so tmux will NOT auto-shrink the
349
359
  // window to the smallest attached client; then the canonical width/height
350
- // ONCE. Deliberately NOT aggressive-resize, which does the opposite.
351
- await this.tmux.setWindowOption(this.sessionName, "window-size", "manual").catch(() => { });
352
- await this.tmux.resizeWindow(this.sessionName, this.cols, this.rows).catch(() => { });
360
+ // ONCE. Deliberately NOT aggressive-resize, which does the opposite. The
361
+ // window's own value is read first and recorded on the window with this
362
+ // broker as a holder, and given back when the last holder lets go. The window
363
+ // is named by its id, so the pin and the give-back reach the same window even
364
+ // after a client switches windows, and the read, record and pin run in its
365
+ // queue (window-pin.ts), so a readable capture in this daemon takes its turn.
366
+ // Without a window id or a readable value, the session's window is pinned as
367
+ // before with nothing to give back.
368
+ const window = (await this.tmux.readWindow?.(this.sessionName, WINDOW_SIZE_PRIOR_OPTION).catch(() => null))?.id ?? null;
369
+ const pinned = await (window ? withWindowPin(window, () => this.pinWindow(window)) : this.pinWindow(null));
370
+ if (!pinned || this.torndown)
371
+ return { ok: false, code: 1011, reason: "terminal broker unavailable" }; // dispose gives it back
353
372
  const outputPath = path.join(os.tmpdir(), `openrig-term-${this.sessionName.replace(/[^a-zA-Z0-9@-]/g, "_")}-${Date.now()}.log`);
354
373
  try {
355
374
  fs.writeFileSync(outputPath, "", "utf-8");
@@ -368,6 +387,20 @@ export class TerminalSessionBroker {
368
387
  await this.tmux.sendKeys(this.sessionName, ["", ""]).catch(() => { });
369
388
  return { ok: true };
370
389
  }
390
+ /** Read the window's sizing, record this broker as a holder, then pin the window (FR-7). False: disposed first. */
391
+ async pinWindow(window) {
392
+ const sizing = window ? await readPinSizing(this.tmux, window) : null;
393
+ if (this.torndown)
394
+ return false; // disposed: pin nothing
395
+ if (sizing) {
396
+ this.pinnedWindow = sizing.window;
397
+ await recordPin(this.tmux, sizing, this.holder);
398
+ }
399
+ const target = sizing?.window ?? this.sessionName;
400
+ await this.tmux.setWindowOption(target, "window-size", "manual").catch(() => { });
401
+ await this.tmux.resizeWindow(target, this.cols, this.rows).catch(() => { });
402
+ return true;
403
+ }
371
404
  async seed(sub) {
372
405
  // AC-5: replay the broker-owned recent-output ring FIRST so the late
373
406
  // subscriber's xterm builds the same scrollback the earlier subscribers
@@ -482,15 +515,15 @@ export class TerminalSessionBroker {
482
515
  .hasSession(this.sessionName)
483
516
  .then((alive) => {
484
517
  if (!alive)
485
- this.handleSessionDeath();
518
+ void this.handleSessionDeath();
486
519
  })
487
520
  .catch(() => {
488
- this.handleSessionDeath();
521
+ void this.handleSessionDeath();
489
522
  });
490
523
  }, this.livenessMs);
491
524
  }
492
525
  /** FR-5: a dead session closes ALL subscribers honestly - never silent stale-live. */
493
- handleSessionDeath() {
526
+ async handleSessionDeath() {
494
527
  if (this.torndown)
495
528
  return;
496
529
  this.lastClose = { code: 1001, reason: "tmux session terminated" };
@@ -510,6 +543,9 @@ export class TerminalSessionBroker {
510
543
  // already-closed subscriber is fine
511
544
  }
512
545
  }
546
+ // A probe that couldn't reach tmux isn't proof the window is gone, so give the sizing back anyway. It acts only on a
547
+ // window that still lists this broker, so a gone window or one on a restarted tmux server is left alone.
548
+ await this.restoreWindowSize();
513
549
  this.onEmpty?.(this.sessionName);
514
550
  }
515
551
  async teardown() {
@@ -521,9 +557,19 @@ export class TerminalSessionBroker {
521
557
  this.pipeActive = false;
522
558
  await this.tmux.stopPipePane(this.sessionName).catch(() => { });
523
559
  }
560
+ // Before onEmpty: a later broker for this window then reads the restored value, not this one's pin.
561
+ await this.restoreWindowSize();
524
562
  this.teardownResources();
525
563
  this.onEmpty?.(this.sessionName);
526
564
  }
565
+ /** Let go of the pinned window, once: drop this broker from its holders, and when no live holder is left, give back
566
+ * the `window-size` it had before the first pin. */
567
+ async restoreWindowSize() {
568
+ const window = this.pinnedWindow;
569
+ this.pinnedWindow = null;
570
+ if (window)
571
+ await releasePin(this.tmux, window, this.holder);
572
+ }
527
573
  teardownResources() {
528
574
  if (this.tailInterval) {
529
575
  clearInterval(this.tailInterval);
@@ -592,7 +638,7 @@ export class TerminalBrokerRegistry {
592
638
  catch (error) {
593
639
  // A rejected open never registers the subscriber, so detach cannot evict
594
640
  // this broker or remove a partially created output file.
595
- broker.dispose();
641
+ await broker.dispose();
596
642
  throw error;
597
643
  }
598
644
  return broker;
@@ -1 +1 @@
1
- {"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IAED,GAAG,CAAC,WAAmB;QACrB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IACvC,CAAC;IAED,wFAAwF;IACxF,KAAK,CAAC,MAAM,CAAC,WAAmB,EAAE,GAAuB;QACvD,IAAI,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QAC3C,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,GAAG,IAAI,qBAAqB,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,EAAE;gBACzD,GAAG,IAAI,CAAC,IAAI;gBACZ,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;oBAChB,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;oBAC1B,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC;gBAC5B,CAAC;aACF,CAAC,CAAC;YACH,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;QACxC,CAAC;QACD,IAAI,CAAC;YACH,MAAM,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAC3B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,yEAAyE;YACzE,yDAAyD;YACzD,MAAM,MAAM,CAAC,OAAO,EAAE,CAAC;YACvB,MAAM,KAAK,CAAC;QACd,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
@@ -0,0 +1,41 @@
1
+ import type { TmuxResult } from "../adapters/tmux.js";
2
+ /** A window user option recording a pin: the window's own `window-size` from before it ("inherit" for none), then the
3
+ * holders of the pin (`<pid>.<n>`). It lives on the window, so a pin whose holders are gone (a daemon restart or crash)
4
+ * is given back by the next holder for that window, and a pin another live holder has is kept until it lets go. */
5
+ export declare const WINDOW_SIZE_PRIOR_OPTION = "@openrig-window-size-prior";
6
+ /** The window options a pin reads and writes; TmuxAdapter has them all. */
7
+ export interface PinTmux {
8
+ readWindow?(target: string, userOption: string): Promise<{
9
+ id: string;
10
+ userOption: string;
11
+ } | null>;
12
+ getWindowLocalOption?(target: string, option: string): Promise<string | null | undefined>;
13
+ setWindowOption(target: string, option: string, value: string): Promise<TmuxResult>;
14
+ restoreWindowOption?(target: string, option: string, value: string | null): Promise<TmuxResult>;
15
+ }
16
+ /** A window, its own `window-size` now (`live`), the value to give back (`prior`), and the live holders of a pin. */
17
+ export interface PinSizing {
18
+ window: string;
19
+ live: string | null;
20
+ prior: string | null;
21
+ holders: string[];
22
+ }
23
+ /** Run `step` (a read, record and pin, or a release) on `window` after any step already queued for it in this process. */
24
+ export declare function withWindowPin<T>(window: string, step: () => Promise<T>): Promise<T>;
25
+ export declare function newPinHolder(): string;
26
+ /** The window `target` names (a session's current window, or `@N`), by its immutable id, with its sizing. A `manual`
27
+ * window with a record is pinned: its prior is the recorded one, kept for its live holders, or taken over from holders
28
+ * a crash left behind. Otherwise the live value is the prior. Null without a window id or a readable value. */
29
+ export declare function readPinSizing(tmux: PinTmux, target: string): Promise<PinSizing | null>;
30
+ /** Record `holder` as holding a pin on the window read by readPinSizing, keeping its prior. Before the pin itself.
31
+ * False when the record didn't land: there's then nothing to give the window back from. */
32
+ export declare function recordPin(tmux: PinTmux, sizing: PinSizing, holder: string): Promise<boolean>;
33
+ /** What letting go did: the window got its prior back; another live holder keeps the pin; the window no longer lists
34
+ * this holder; or the give-back failed (the record is kept for the next holder). */
35
+ export type PinRelease = "given-back" | "kept-by-another-holder" | "not-listed" | "failed";
36
+ /** Let go of `holder`'s pin on `window`, once. While another live holder remains, only drop this one. As the last one,
37
+ * run `beforeGiveBack` (a readable capture puts the size back), then give back the prior and drop the record. A window
38
+ * that no longer lists this holder (the record was cleared, or the tmux server restarted and `@N` is another window)
39
+ * is left alone. */
40
+ export declare function releasePin(tmux: PinTmux, window: string, holder: string, beforeGiveBack?: () => Promise<void>): Promise<PinRelease>;
41
+ //# sourceMappingURL=window-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AEgH;AAChH,wBAAsB,aAAa,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAQ5F;AAED;4FAC4F;AAC5F,wBAAsB,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAMlG;AAED;qFACqF;AACrF,MAAM,MAAM,UAAU,GAAG,YAAY,GAAG,wBAAwB,GAAG,YAAY,GAAG,QAAQ,CAAC;AAE3F;;;qBAGqB;AACrB,wBAAgB,UAAU,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,CAoBnI"}
@@ -0,0 +1,103 @@
1
+ // A window pin: OpenRig sets a window's `window-size` to manual for a while (the web terminal's fixed geometry, a
2
+ // readable capture's resize) and gives the window its own value back after. resize-window and window-size manual stop
3
+ // the window's clients (Herdr, attach) sizing it, so a pin never given back leaves native clients a narrow window.
4
+ /** A window user option recording a pin: the window's own `window-size` from before it ("inherit" for none), then the
5
+ * holders of the pin (`<pid>.<n>`). It lives on the window, so a pin whose holders are gone (a daemon restart or crash)
6
+ * is given back by the next holder for that window, and a pin another live holder has is kept until it lets go. */
7
+ export const WINDOW_SIZE_PRIOR_OPTION = "@openrig-window-size-prior";
8
+ const INHERITED_WINDOW_SIZE = "inherit";
9
+ // This process's holders. A holder from this process is live while listed here; one from another process (another
10
+ // daemon on the same tmux server) while that process runs.
11
+ const heldHere = new Set();
12
+ let holderCount = 0;
13
+ // One queue per window in this process, so a readable capture and a web terminal on the same window take and give back
14
+ // a pin one at a time: each reads the record, writes it and changes the window's size before the next one reads. Another
15
+ // process isn't covered (tmux has no compare-and-set), and nothing waits on another process.
16
+ const windowQueues = new Map();
17
+ /** Run `step` (a read, record and pin, or a release) on `window` after any step already queued for it in this process. */
18
+ export function withWindowPin(window, step) {
19
+ const run = (windowQueues.get(window) ?? Promise.resolve()).then(step);
20
+ const settled = run.then(() => { }, () => { });
21
+ windowQueues.set(window, settled);
22
+ void settled.then(() => { if (windowQueues.get(window) === settled)
23
+ windowQueues.delete(window); });
24
+ return run;
25
+ }
26
+ export function newPinHolder() {
27
+ return `${process.pid}.${++holderCount}`;
28
+ }
29
+ function holderLive(holder) {
30
+ const pid = Number(holder.split(".")[0]);
31
+ if (!Number.isInteger(pid) || pid <= 0)
32
+ return false;
33
+ if (pid === process.pid)
34
+ return heldHere.has(holder);
35
+ try {
36
+ process.kill(pid, 0);
37
+ return true;
38
+ }
39
+ catch (err) {
40
+ return err.code === "EPERM"; // running, as another user
41
+ }
42
+ }
43
+ function parsePinRecord(value) {
44
+ const [prior, ...holders] = value.split(" ").filter(Boolean);
45
+ return prior ? { prior: prior === INHERITED_WINDOW_SIZE ? null : prior, holders } : null;
46
+ }
47
+ function pinRecord(prior, holders) {
48
+ return [prior ?? INHERITED_WINDOW_SIZE, ...holders].join(" ");
49
+ }
50
+ /** The window `target` names (a session's current window, or `@N`), by its immutable id, with its sizing. A `manual`
51
+ * window with a record is pinned: its prior is the recorded one, kept for its live holders, or taken over from holders
52
+ * a crash left behind. Otherwise the live value is the prior. Null without a window id or a readable value. */
53
+ export async function readPinSizing(tmux, target) {
54
+ const current = await tmux.readWindow?.(target, WINDOW_SIZE_PRIOR_OPTION).catch(() => null);
55
+ if (!current)
56
+ return null;
57
+ const live = await tmux.getWindowLocalOption?.(current.id, "window-size").catch(() => undefined);
58
+ if (live === undefined)
59
+ return null;
60
+ const record = parsePinRecord(current.userOption);
61
+ if (live === "manual" && record)
62
+ return { window: current.id, live, prior: record.prior, holders: record.holders.filter(holderLive) };
63
+ return { window: current.id, live, prior: live, holders: [] };
64
+ }
65
+ /** Record `holder` as holding a pin on the window read by readPinSizing, keeping its prior. Before the pin itself.
66
+ * False when the record didn't land: there's then nothing to give the window back from. */
67
+ export async function recordPin(tmux, sizing, holder) {
68
+ heldHere.add(holder);
69
+ const written = await tmux.setWindowOption(sizing.window, WINDOW_SIZE_PRIOR_OPTION, pinRecord(sizing.prior, [...sizing.holders, holder]))
70
+ .catch(() => null);
71
+ if (!written?.ok)
72
+ heldHere.delete(holder);
73
+ return written?.ok === true;
74
+ }
75
+ /** Let go of `holder`'s pin on `window`, once. While another live holder remains, only drop this one. As the last one,
76
+ * run `beforeGiveBack` (a readable capture puts the size back), then give back the prior and drop the record. A window
77
+ * that no longer lists this holder (the record was cleared, or the tmux server restarted and `@N` is another window)
78
+ * is left alone. */
79
+ export function releasePin(tmux, window, holder, beforeGiveBack) {
80
+ return withWindowPin(window, async () => {
81
+ try {
82
+ const record = parsePinRecord((await tmux.readWindow?.(window, WINDOW_SIZE_PRIOR_OPTION).catch(() => null))?.userOption ?? "");
83
+ if (!record?.holders.includes(holder))
84
+ return "not-listed";
85
+ const others = record.holders.filter((other) => other !== holder && holderLive(other));
86
+ if (others.length > 0) {
87
+ await tmux.setWindowOption(window, WINDOW_SIZE_PRIOR_OPTION, pinRecord(record.prior, others)).catch(() => { });
88
+ return "kept-by-another-holder";
89
+ }
90
+ await beforeGiveBack?.().catch(() => { });
91
+ const restored = await tmux.restoreWindowOption?.(window, "window-size", record.prior).catch(() => null);
92
+ // Kept when the give-back failed: this holder is then no longer live, so the next one gives it back instead.
93
+ if (!restored?.ok)
94
+ return "failed";
95
+ await tmux.restoreWindowOption?.(window, WINDOW_SIZE_PRIOR_OPTION, null).catch(() => { });
96
+ return "given-back";
97
+ }
98
+ finally {
99
+ heldHere.delete(holder);
100
+ }
101
+ });
102
+ }
103
+ //# sourceMappingURL=window-pin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"window-pin.js","sourceRoot":"","sources":["../../src/terminal/window-pin.ts"],"names":[],"mappings":"AAEA,kHAAkH;AAClH,sHAAsH;AACtH,mHAAmH;AAEn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,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -55,8 +55,17 @@ transitions before trying again. Do not silently send the task a second time.
55
55
 
56
56
  You need the peer's base URL and a row assigned to your seat. For a no-model peer, the official
57
57
  [Hello World sample](https://github.com/a2aproject/a2a-samples/tree/6603ba3f2c31a7ef33e70b9d8b5b5f8be42ac9a3/samples/python/agents/helloworld)
58
- returns an echo artifact. Its README explains startup; it does not implement the input-required and cancellation
59
- controls described later. Use a peer that supports those operations when testing them.
58
+ returns an echo artifact. Fetch that revision:
59
+
60
+ ```sh
61
+ git clone https://github.com/a2aproject/a2a-samples.git
62
+ git -C a2a-samples checkout --detach 6603ba3f2c31a7ef33e70b9d8b5b5f8be42ac9a3
63
+ ```
64
+
65
+ Start the peer yourself in a separate terminal, following `a2a-samples/samples/python/agents/helloworld/README.md`.
66
+ Its default URL is `http://127.0.0.1:9999`, used below; it is available only while you run the sample.
67
+ The sample does not implement the input-required and cancellation controls described later. Use a peer that
68
+ supports those operations when testing them.
60
69
 
61
70
  Save as `a2a_client.py`. This client also works without an OpenRig row, for the inbound recipe below.
62
71
  Streaming reads have no deadline so quiet worker waits keep their stream; connection, write and pool waits are bounded to 10 seconds.
@@ -128,7 +137,8 @@ async def main():
128
137
  asyncio.run(main())
129
138
  ```
130
139
 
131
- Run it from your seat, replacing the row and peer URL:
140
+ When `A2A_TEXT` is unset, the row body becomes the peer's message verbatim. Write the body as the peer's input,
141
+ or set `A2A_TEXT` to the exact text you want to send. Run it from your seat, replacing the row and peer URL:
132
142
 
133
143
  ```sh
134
144
  export A2A_URL=http://127.0.0.1:9999
@@ -260,7 +270,7 @@ export A2A_SEAT=<worker-session-from-rig-ps>
260
270
  # Client terminal, in the folder with the example scripts and venv:
261
271
  unset A2A_ROW A2A_TASK A2A_CONTEXT
262
272
  export A2A_URL=http://127.0.0.1:19092
263
- export A2A_TEXT='Return the words hello from the receiving seat.'
273
+ export A2A_TEXT='Return exactly these words: "hello from the receiving seat".'
264
274
  .venv/bin/python a2a_client.py
265
275
  ```
266
276
 
@@ -277,6 +287,8 @@ rig queue update "$ROW" --state done --closure-reason no-follow-on --resolution
277
287
  The client should receive that exact resolution as an artifact, followed by completed. Compare the artifact with
278
288
  `rig queue show "$ROW" --full --json`, including the task/context IDs in the row body. The sample uses `--no-nudge`:
279
289
  the worker must be watching its queue; merely starting the front does not start or wake an agent.
290
+ To wake a model worker after the row appears, run `rig send <worker-session> 'Check your queue and process the new A2A task.'`
291
+ from the custodian's environment, or remove `--no-nudge` from the front's queue-create call to request the normal queue wake.
280
292
 
281
293
  For input-required, the worker instead records `--note 'A2A question: <question>'` and leaves the row in progress.
282
294
  The client reruns with the same `A2A_TASK`, `A2A_CONTEXT` and its answer as `A2A_TEXT`. The worker reads the
@@ -355,10 +355,37 @@ declaration isn't changed either; update it separately if a future recreation sh
355
355
  Each startup file and action specifies when it applies:
356
356
  - `fresh_start` — delivered when a new conversation starts: the first launch, `rig seat launch --fresh`,
357
357
  `rig seat continue`, and seats restored with `--fresh`
358
- - `restore` — delivered when a seat is restored, including a restore whose resume falls back to a fresh conversation
358
+ - `restore` — delivered when a seat is restored without its earlier conversation: a restore whose resume falls back to a fresh conversation, or a retried start
359
359
  - Default: `[fresh_start, restore]` (both)
360
360
 
361
- Use this to avoid re-sending context that the agent already has from its resumed conversation. For example, a one-time project briefing might only apply on `fresh_start`, while identity grounding should apply on both.
361
+ **An exact resume delivers neither.** When a restore reopens the seat's saved conversation (`rig up <rig> --existing` with a resume token), OpenRig types no startup actions and delivers no startup files, `restore` ones included: the conversation already has them, and typing them again would add turns to it. The one exception: a managed guidance block missing from the guidance file is put back before the harness starts.
362
+
363
+ Use this to avoid re-sending context that a fresh conversation doesn't need twice. For example, a one-time project briefing might only apply on `fresh_start`, while identity grounding should apply on both, so a seat that comes back fresh gets it again.
364
+
365
+ ---
366
+
367
+ ## What a seat is set to, and what it's running
368
+
369
+ A seat's settings can disagree with its running agent: what's saved for the next launch, what the running process
370
+ actually uses, and what its conversation has already read are three separate things. OpenRig reports each one
371
+ separately. Without live evidence it says unknown (or not verified), never the saved value. A saved change reaches the
372
+ running seat only through the action in the last column.
373
+
374
+ | What | Saved for the next launch | What the running seat has | How the running seat gets it |
375
+ |---|---|---|---|
376
+ | Model | `rig seat set-model` | `rig ps --nodes` shows the configured model beside the last observed one, or `UNKNOWN (<reason>)` | The next managed resume or successor launch |
377
+ | Reasoning effort | `rig seat set-effort` | `rig seat effort <seat>`: requested, saved, sent at launch, and what the session recorded, which is not verified until it takes a turn | Its next managed continuation; nothing restarts |
378
+ | Permissions | `rig seat set-permissions` (`--mode`, `--rules`, or for Codex `--codex-permissions` or `--codex-profile`), shown by `rig seat status` | What it launched with; a status read doesn't prove the running process enforces the selection | Its next managed launch or resume ([per-seat permission mode](getting-started.md#per-seat-permission-mode)) |
379
+ | Working directory | `rig seat set-cwd`, shown by `rig seat status` as **Working directory for future launches** | The directory it started in | `rig seat launch --fresh --stop` (a blank conversation) or `rig handover --source rebuild` (durable context); [details](#change-an-existing-seats-working-directory) |
380
+ | Startup files and skills | The spec's startup files, skills and actions | What its conversation read when it started; editing a file afterwards doesn't reach it | A fresh launch or a handover delivers them again; for the running seat, send or walk the change (`rig walk <seat> --through <files>`) |
381
+ | Tools (MCP servers, plugins) | Selected fragments, merged into the harness's own config (`.mcp.json` for Claude, `config.toml` for Codex) | Unknown to OpenRig: registered isn't active, Claude asks before it uses a new server, and no OpenRig command reports which tools a running harness loaded | Check in the harness itself (Claude Code's `/mcp`); a running session may need a restart to pick up newly written config ([runtime config disclosure](#runtime-config-disclosure)) |
382
+
383
+ Per harness: Claude Code's and Codex's permission choices are in the setup reference
384
+ ([Claude Code](getting-started.md#claude-code-a-different-launch-flag),
385
+ [Codex](getting-started.md#codex-select-sandbox-and-approvals-together)), Codex homes are
386
+ [below](#separate-codex-homes-for-separate-installations), community harnesses' limits are in
387
+ [their presets](community-harness-presets.md), and moving a live seat to the other runtime is in the
388
+ [setup reference](getting-started.md#move-a-seat-to-the-other-runtime).
362
389
 
363
390
  ---
364
391
 
@@ -398,6 +425,11 @@ Types are `send_text`, `slash_command` and `startup_proof` (see "Startup proof"
398
425
  `idempotent` is required, and an action that isn't idempotent must not list `restore` in `applies_on`. Both phases
399
426
  run after the harness is ready: `after_files` (the default) after the post-launch files, then `after_ready`.
400
427
 
428
+ **Don't rename a managed Claude seat.** OpenRig starts every Claude seat with `--name <session>`, on a fresh start and on
429
+ every resume, and its own reads of the seat use that name: context usage and managed compaction read the status-line
430
+ record Claude saves under it, and the input box is recognized by the name on its border. A startup `/rename` to another
431
+ name breaks those reads until the next resume puts the session name back.
432
+
401
433
  ### Current Support Matrix
402
434
 
403
435
  | Capability | Status | Notes |
@@ -41,6 +41,13 @@ state. Attention/alarm values likewise stay in their own machinery (`attentionCo
41
41
  Both herdr and omnigent converged on this exclusion, with warning comments on the
42
42
  collision in both codebases.
43
43
 
44
+ The legacy `agentActivity` field distinguishes a typed provider interruption from
45
+ a request for a person: fresh Codex `at_limit` and Claude `StopFailure/rate_limit`
46
+ events carry `state: unknown` and `reason: usage_limit`, never a `needs_input`
47
+ hook. A permission prompt can independently supply human-input evidence. See
48
+ [Claude usage-limit detection](claude-status-line.md#claude-usage-limit-detection)
49
+ for the separate provider signal and queue timer.
50
+
44
51
  ### Per-seat attention in the node inventory
45
52
 
46
53
  `rig ps --nodes` carries the daemon's `needsAttention` result, using the same predicate
@@ -67,3 +67,45 @@ directory: its timestamp should advance and its `session_id` should match the
67
67
  current Claude session. A visible custom status line alone does not verify
68
68
  collection or end-to-end adoption/handover recovery. The wrapper above suppresses
69
69
  collector errors; remove its stderr redirection temporarily when diagnosing it.
70
+
71
+ ## Claude usage-limit detection
72
+
73
+ The status line supplies subscription usage windows and their reset timestamps.
74
+ OpenRig also registers Claude's [`StopFailure` hook](https://code.claude.com/docs/en/hooks#stopfailure),
75
+ available since Claude Code 2.1.78. Its exact `error: "rate_limit"` value reports a
76
+ provider interruption even when no status line window is available. This path
77
+ requires the updated OpenRig hook configuration and the current seat's runtime
78
+ and occupant generation. Unknown identity or an expired event cannot trigger a
79
+ usage-limit pause; a hook with a newer source timestamp supersedes the event,
80
+ regardless of arrival order. The event expires after five minutes in any case.
81
+
82
+ A helper Claude started from a seat's shell inherits that seat's environment,
83
+ so its rate-limit hook is attributed to that seat too. This is appropriate when
84
+ the helper uses the same login, since the quota belongs to the account. A
85
+ helper on a different login is attributed the same way, so its rate limit can
86
+ hold pending handoffs to every seat in that seat's Claude pool for one retry
87
+ interval, even when the seat's own login still has room. This attribution does
88
+ not bind the hook to Claude's own native session.
89
+
90
+ The event carries no usage percentage, account identity or reset timestamp.
91
+ It marks the Claude provider pool as limited and preserves a current
92
+ `agentActivity.reason` of `usage_limit` over a cached idle reading. It does not
93
+ count as a request for human input; a newer permission prompt still takes
94
+ precedence in the seat's activity display. Conflicting seat windows retain the
95
+ existing `explicit_unknown` host diagnosis.
96
+
97
+ Pending work handled by the wake ladder uses the existing local Claude pool
98
+ (the one-account-per-host assumption), with separate pools for seats that
99
+ declare different Claude config directories. If reset windows conflict within
100
+ a proposed shared pool, only the seats reporting exhaustion are held; another
101
+ seat's pending handoffs can still retry. An exhausted status line window with
102
+ a known reset supplies the timer. Otherwise a typed failure uses
103
+ `queue.wake_retry_interval_seconds` (default 300) from the event time, plus the
104
+ existing wake jitter, and records `config-fallback`. That is a retry time, not a
105
+ claim that the provider's quota will reset then. The timer releases the shared
106
+ blocker once and retains the existing durable wake delivery behavior.
107
+
108
+ Authentication, billing and overloaded errors are not classified as usage
109
+ limits. Claude limit banners are not scraped, and older runtimes or failures
110
+ that do not emit this hook still depend on status line data. Without either
111
+ source, provider usage remains unknown.
@@ -1,7 +1,8 @@
1
1
  # Merge this into each Hermes seat's config.yaml, in that seat's Hermes home ($OPENRIG_HOME/state/hermes/<node id> with
2
2
  # the example launcher), before the seat's first start.
3
3
  #
4
- # Hermes runs every tool command in one gateway per machine, with the gateway's environment. For each session it swaps
4
+ # Hermes runs every tool command in its gateway (one per Hermes home, so one per seat with the example launcher), with
5
+ # the gateway's environment. For each session it swaps
5
6
  # in the client's own values only for its toolchain names and the names listed here. Without this list, `rig` inside
6
7
  # Hermes runs as whichever seat started the gateway, or as no seat. With it, each seat runs `rig` as itself.
7
8
  # These are the seat's own OpenRig variables; none is a secret, and Hermes refuses credential-like names anyway.
@@ -5,7 +5,7 @@ command: openrig-hermes-launch # no model, provider or --max-turns here: they
5
5
  maintainer: Your name or team
6
6
  limits:
7
7
  - resume not declared until reopening a named session, and a missing one, have been checked with a real Hermes
8
- - closing a seat's pane detaches it; Hermes finishes any accepted turn, and its gateway exits when idle
8
+ - closing a seat's pane detaches it; Hermes finishes any accepted turn; whether its gateway exits when idle is unchecked
9
9
  - creation settings (model, provider, max turns) come from the seat's Hermes config.yaml, not from flags
10
10
  - no guidance, skills or startup files are placed
11
11
  - needs-input and approval prompts are read from the screen only