@openrig/cli 0.7.2 → 0.7.3

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 (553) 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/skills/claude-compaction-restore/SKILL.md +2 -2
  5. package/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md +37 -3
  6. package/daemon/context-packs/help/manifest.yaml +1 -1
  7. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  8. package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +64 -11
  9. package/daemon/context-packs/reference/getting-started.md +7 -5
  10. package/daemon/context-packs/reference/manifest.yaml +1 -1
  11. package/daemon/context-packs/reference/rig-spec.md +86 -3
  12. package/daemon/context-packs/reference/whats-new.md +147 -281
  13. package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
  14. package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
  15. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
  16. package/daemon/context-packs/skills/claude-compaction-restore/SKILL.md +2 -2
  17. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
  18. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  19. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  20. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  21. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  22. package/daemon/context-packs/skills/core/messaging-the-human/SKILL.md +37 -3
  23. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
  24. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  25. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  26. package/daemon/context-packs/skills/core/openrig-herdr/SKILL.md +5 -2
  27. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
  28. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
  29. package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
  30. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
  31. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
  32. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
  33. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
  34. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
  35. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
  36. package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
  37. package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
  38. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
  39. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
  40. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
  41. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
  42. package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
  43. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
  44. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  45. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  46. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  47. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  48. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  49. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
  50. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  51. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  52. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  53. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  54. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  55. package/daemon/context-packs/skills/process/agent-browser/SKILL.md +1 -1
  56. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
  57. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  58. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
  59. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  60. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
  61. package/daemon/context-packs/skills/process/systematic-debugging/root-cause-tracing.md +1 -1
  62. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
  63. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
  64. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
  65. package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
  66. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
  67. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
  68. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
  69. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
  70. package/daemon/context-packs/world-example/manifest.yaml +1 -1
  71. package/daemon/context-packs/world-public/manifest.yaml +1 -1
  72. package/daemon/dist/adapters/codex-resume.d.ts +2 -1
  73. package/daemon/dist/adapters/codex-resume.d.ts.map +1 -1
  74. package/daemon/dist/adapters/codex-resume.js +12 -6
  75. package/daemon/dist/adapters/codex-resume.js.map +1 -1
  76. package/daemon/dist/adapters/codex-runtime-adapter.d.ts +9 -1
  77. package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
  78. package/daemon/dist/adapters/codex-runtime-adapter.js +374 -49
  79. package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
  80. package/daemon/dist/adapters/pi-resume.js +1 -1
  81. package/daemon/dist/adapters/pi-resume.js.map +1 -1
  82. package/daemon/dist/adapters/pi-runner-protocol.d.ts +3 -3
  83. package/daemon/dist/adapters/pi-runner-protocol.js +2 -2
  84. package/daemon/dist/adapters/pi-runner.d.ts +1 -1
  85. package/daemon/dist/adapters/pi-runner.js +2 -2
  86. package/daemon/dist/adapters/pi-runner.js.map +1 -1
  87. package/daemon/dist/adapters/tmux-server.d.ts +0 -3
  88. package/daemon/dist/adapters/tmux-server.d.ts.map +1 -1
  89. package/daemon/dist/adapters/tmux-server.js +0 -5
  90. package/daemon/dist/adapters/tmux-server.js.map +1 -1
  91. package/daemon/dist/adapters/tmux.d.ts +13 -0
  92. package/daemon/dist/adapters/tmux.d.ts.map +1 -1
  93. package/daemon/dist/adapters/tmux.js +53 -3
  94. package/daemon/dist/adapters/tmux.js.map +1 -1
  95. package/daemon/dist/attention-surface.d.ts +16 -1
  96. package/daemon/dist/attention-surface.d.ts.map +1 -1
  97. package/daemon/dist/attention-surface.js.map +1 -1
  98. package/daemon/dist/build-info.js +3 -3
  99. package/daemon/dist/context-pack-taxonomy-surface.js +1 -1
  100. package/daemon/dist/context-pack-taxonomy-surface.js.map +1 -1
  101. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  102. package/daemon/dist/db/all-migrations.js +2 -0
  103. package/daemon/dist/db/all-migrations.js.map +1 -1
  104. package/daemon/dist/db/migrations/137_node_codex_permissions.d.ts +3 -0
  105. package/daemon/dist/db/migrations/137_node_codex_permissions.d.ts.map +1 -0
  106. package/daemon/dist/db/migrations/137_node_codex_permissions.js +7 -0
  107. package/daemon/dist/db/migrations/137_node_codex_permissions.js.map +1 -0
  108. package/daemon/dist/domain/active-occupant.js +1 -1
  109. package/daemon/dist/domain/active-occupant.js.map +1 -1
  110. package/daemon/dist/domain/agent-activity-store.d.ts +1 -1
  111. package/daemon/dist/domain/agent-activity-store.js +2 -2
  112. package/daemon/dist/domain/agent-activity-store.js.map +1 -1
  113. package/daemon/dist/domain/agent-resolver.js +1 -1
  114. package/daemon/dist/domain/agent-resolver.js.map +1 -1
  115. package/daemon/dist/domain/bind-plan.js +1 -1
  116. package/daemon/dist/domain/bind-plan.js.map +1 -1
  117. package/daemon/dist/domain/bootstrap-orchestrator.js +1 -1
  118. package/daemon/dist/domain/bootstrap-orchestrator.js.map +1 -1
  119. package/daemon/dist/domain/bundle-skills-router.js +2 -2
  120. package/daemon/dist/domain/bundle-skills-router.js.map +1 -1
  121. package/daemon/dist/domain/codex-member-permissions.d.ts +56 -0
  122. package/daemon/dist/domain/codex-member-permissions.d.ts.map +1 -0
  123. package/daemon/dist/domain/codex-member-permissions.js +140 -0
  124. package/daemon/dist/domain/codex-member-permissions.js.map +1 -0
  125. package/daemon/dist/domain/codex-owned-plugin-trust.d.ts.map +1 -1
  126. package/daemon/dist/domain/codex-owned-plugin-trust.js +2 -1
  127. package/daemon/dist/domain/codex-owned-plugin-trust.js.map +1 -1
  128. package/daemon/dist/domain/context-packs/context-pack-library-service.js +2 -2
  129. package/daemon/dist/domain/context-packs/context-pack-library-service.js.map +1 -1
  130. package/daemon/dist/domain/execution-candidate-reader.d.ts +16 -0
  131. package/daemon/dist/domain/execution-candidate-reader.d.ts.map +1 -0
  132. package/daemon/dist/domain/execution-candidate-reader.js +77 -0
  133. package/daemon/dist/domain/execution-candidate-reader.js.map +1 -0
  134. package/daemon/dist/domain/execution-view.d.ts.map +1 -1
  135. package/daemon/dist/domain/execution-view.js +16 -6
  136. package/daemon/dist/domain/execution-view.js.map +1 -1
  137. package/daemon/dist/domain/feed-perspective.d.ts +14 -0
  138. package/daemon/dist/domain/feed-perspective.d.ts.map +1 -0
  139. package/daemon/dist/domain/feed-perspective.js +36 -0
  140. package/daemon/dist/domain/feed-perspective.js.map +1 -0
  141. package/daemon/dist/domain/gateway/channel-operations.d.ts +1 -1
  142. package/daemon/dist/domain/gateway/channel-operations.d.ts.map +1 -1
  143. package/daemon/dist/domain/gateway/human-registry.d.ts +11 -4
  144. package/daemon/dist/domain/gateway/human-registry.d.ts.map +1 -1
  145. package/daemon/dist/domain/gateway/human-registry.js +36 -5
  146. package/daemon/dist/domain/gateway/human-registry.js.map +1 -1
  147. package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts.map +1 -1
  148. package/daemon/dist/domain/gateway/operator-delivery-engine.js +5 -2
  149. package/daemon/dist/domain/gateway/operator-delivery-engine.js.map +1 -1
  150. package/daemon/dist/domain/gateway/participants.d.ts +180 -0
  151. package/daemon/dist/domain/gateway/participants.d.ts.map +1 -0
  152. package/daemon/dist/domain/gateway/participants.js +434 -0
  153. package/daemon/dist/domain/gateway/participants.js.map +1 -0
  154. package/daemon/dist/domain/gateway/slack/inbound-admission.d.ts +2 -2
  155. package/daemon/dist/domain/gateway/slack/inbound-admission.d.ts.map +1 -1
  156. package/daemon/dist/domain/gateway/slack/inbound-admission.js +73 -6
  157. package/daemon/dist/domain/gateway/slack/inbound-admission.js.map +1 -1
  158. package/daemon/dist/domain/gateway/slack/inbound.d.ts +18 -1
  159. package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
  160. package/daemon/dist/domain/gateway/slack/inbound.js +27 -11
  161. package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
  162. package/daemon/dist/domain/gateway/slack/message.d.ts +2 -0
  163. package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
  164. package/daemon/dist/domain/gateway/slack/message.js +14 -6
  165. package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
  166. package/daemon/dist/domain/gateway/slack/open-asks.d.ts +50 -0
  167. package/daemon/dist/domain/gateway/slack/open-asks.d.ts.map +1 -0
  168. package/daemon/dist/domain/gateway/slack/open-asks.js +215 -0
  169. package/daemon/dist/domain/gateway/slack/open-asks.js.map +1 -0
  170. package/daemon/dist/domain/gateway/slack/outbound-driver.d.ts +2 -0
  171. package/daemon/dist/domain/gateway/slack/outbound-driver.d.ts.map +1 -1
  172. package/daemon/dist/domain/gateway/slack/outbound-driver.js +1 -0
  173. package/daemon/dist/domain/gateway/slack/outbound-driver.js.map +1 -1
  174. package/daemon/dist/domain/gateway/slack/queue-access.d.ts +15 -1
  175. package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
  176. package/daemon/dist/domain/gateway/slack/queue-access.js +98 -29
  177. package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
  178. package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
  179. package/daemon/dist/domain/gateway/slack/slack-delivery.js +1 -0
  180. package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
  181. package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
  182. package/daemon/dist/domain/gateway/slack/slack-subsystem.js +56 -2
  183. package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
  184. package/daemon/dist/domain/gateway/slack/state-store.d.ts +3 -0
  185. package/daemon/dist/domain/gateway/slack/state-store.d.ts.map +1 -1
  186. package/daemon/dist/domain/gateway/slack/state-store.js +18 -0
  187. package/daemon/dist/domain/gateway/slack/state-store.js.map +1 -1
  188. package/daemon/dist/domain/hot-potato-enforcer.d.ts +1 -1
  189. package/daemon/dist/domain/mission-control/mission-control-read-layer.d.ts.map +1 -1
  190. package/daemon/dist/domain/mission-control/mission-control-read-layer.js +3 -1
  191. package/daemon/dist/domain/mission-control/mission-control-read-layer.js.map +1 -1
  192. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts +16 -0
  193. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
  194. package/daemon/dist/domain/mission-control/mission-control-write-contract.js +64 -16
  195. package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
  196. package/daemon/dist/domain/native-permission-store.d.ts +3 -2
  197. package/daemon/dist/domain/native-permission-store.d.ts.map +1 -1
  198. package/daemon/dist/domain/native-permission-store.js +14 -1
  199. package/daemon/dist/domain/native-permission-store.js.map +1 -1
  200. package/daemon/dist/domain/native-resume-probe.d.ts +9 -0
  201. package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
  202. package/daemon/dist/domain/native-resume-probe.js +37 -2
  203. package/daemon/dist/domain/native-resume-probe.js.map +1 -1
  204. package/daemon/dist/domain/node-inventory.d.ts +1 -1
  205. package/daemon/dist/domain/permission-account.d.ts.map +1 -1
  206. package/daemon/dist/domain/permission-account.js +44 -9
  207. package/daemon/dist/domain/permission-account.js.map +1 -1
  208. package/daemon/dist/domain/permission-drift-observer.js +1 -1
  209. package/daemon/dist/domain/permission-drift-observer.js.map +1 -1
  210. package/daemon/dist/domain/policies/delivery-digest-flush.d.ts +6 -2
  211. package/daemon/dist/domain/policies/delivery-digest-flush.d.ts.map +1 -1
  212. package/daemon/dist/domain/policies/delivery-digest-flush.js +34 -9
  213. package/daemon/dist/domain/policies/delivery-digest-flush.js.map +1 -1
  214. package/daemon/dist/domain/policies/quiet-release.d.ts +14 -0
  215. package/daemon/dist/domain/policies/quiet-release.d.ts.map +1 -1
  216. package/daemon/dist/domain/policies/quiet-release.js +13 -2
  217. package/daemon/dist/domain/policies/quiet-release.js.map +1 -1
  218. package/daemon/dist/domain/profile-resolution-worker.d.ts +1 -1
  219. package/daemon/dist/domain/profile-resolution-worker.d.ts.map +1 -1
  220. package/daemon/dist/domain/profile-resolution-worker.js +5 -5
  221. package/daemon/dist/domain/profile-resolution-worker.js.map +1 -1
  222. package/daemon/dist/domain/queue-destination-check.d.ts +5 -0
  223. package/daemon/dist/domain/queue-destination-check.d.ts.map +1 -1
  224. package/daemon/dist/domain/queue-destination-check.js +5 -1
  225. package/daemon/dist/domain/queue-destination-check.js.map +1 -1
  226. package/daemon/dist/domain/queue-repository.d.ts +23 -5
  227. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  228. package/daemon/dist/domain/queue-repository.js +49 -23
  229. package/daemon/dist/domain/queue-repository.js.map +1 -1
  230. package/daemon/dist/domain/restore-orchestrator.d.ts +4 -0
  231. package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
  232. package/daemon/dist/domain/restore-orchestrator.js +17 -5
  233. package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
  234. package/daemon/dist/domain/review/compose.js +1 -1
  235. package/daemon/dist/domain/review/compose.js.map +1 -1
  236. package/daemon/dist/domain/review/gather.js +1 -1
  237. package/daemon/dist/domain/review/gather.js.map +1 -1
  238. package/daemon/dist/domain/rig-expansion-service.d.ts.map +1 -1
  239. package/daemon/dist/domain/rig-expansion-service.js +1 -0
  240. package/daemon/dist/domain/rig-expansion-service.js.map +1 -1
  241. package/daemon/dist/domain/rig-repository.d.ts +1 -0
  242. package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
  243. package/daemon/dist/domain/rig-repository.js +15 -0
  244. package/daemon/dist/domain/rig-repository.js.map +1 -1
  245. package/daemon/dist/domain/rig-teardown.d.ts +3 -0
  246. package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
  247. package/daemon/dist/domain/rig-teardown.js +3 -0
  248. package/daemon/dist/domain/rig-teardown.js.map +1 -1
  249. package/daemon/dist/domain/rigspec-codec.d.ts.map +1 -1
  250. package/daemon/dist/domain/rigspec-codec.js +4 -0
  251. package/daemon/dist/domain/rigspec-codec.js.map +1 -1
  252. package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
  253. package/daemon/dist/domain/rigspec-exporter.js +12 -1
  254. package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
  255. package/daemon/dist/domain/rigspec-instantiator.d.ts +2 -0
  256. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  257. package/daemon/dist/domain/rigspec-instantiator.js +150 -128
  258. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  259. package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
  260. package/daemon/dist/domain/rigspec-schema.js +24 -1
  261. package/daemon/dist/domain/rigspec-schema.js.map +1 -1
  262. package/daemon/dist/domain/runtime-adapter.d.ts +2 -0
  263. package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
  264. package/daemon/dist/domain/runtime-adapter.js +2 -0
  265. package/daemon/dist/domain/runtime-adapter.js.map +1 -1
  266. package/daemon/dist/domain/scope/dot-id.js +2 -2
  267. package/daemon/dist/domain/scope/dot-id.js.map +1 -1
  268. package/daemon/dist/domain/scope/scaffold-placeholder.d.ts +1 -1
  269. package/daemon/dist/domain/scope/scaffold-placeholder.js +1 -1
  270. package/daemon/dist/domain/scope/scope-audit.js +1 -1
  271. package/daemon/dist/domain/scope/scope-audit.js.map +1 -1
  272. package/daemon/dist/domain/scope/types.d.ts.map +1 -1
  273. package/daemon/dist/domain/scope/types.js +2 -3
  274. package/daemon/dist/domain/scope/types.js.map +1 -1
  275. package/daemon/dist/domain/seat-handover-service.d.ts +1 -1
  276. package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
  277. package/daemon/dist/domain/seat-handover-service.js +6 -2
  278. package/daemon/dist/domain/seat-handover-service.js.map +1 -1
  279. package/daemon/dist/domain/seat-lifecycle-service.d.ts +23 -8
  280. package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
  281. package/daemon/dist/domain/seat-lifecycle-service.js +153 -12
  282. package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
  283. package/daemon/dist/domain/seat-restart-in-place.d.ts +2 -2
  284. package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
  285. package/daemon/dist/domain/seat-restart-in-place.js +2 -2
  286. package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
  287. package/daemon/dist/domain/seat-runtime-switch-service.d.ts +9 -2
  288. package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
  289. package/daemon/dist/domain/seat-runtime-switch-service.js +53 -5
  290. package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
  291. package/daemon/dist/domain/seat-status-service.d.ts +1 -0
  292. package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
  293. package/daemon/dist/domain/seat-status-service.js +11 -0
  294. package/daemon/dist/domain/seat-status-service.js.map +1 -1
  295. package/daemon/dist/domain/seat-structural-activity-service.js +1 -1
  296. package/daemon/dist/domain/seat-structural-activity-service.js.map +1 -1
  297. package/daemon/dist/domain/session-registry.d.ts +2 -0
  298. package/daemon/dist/domain/session-registry.d.ts.map +1 -1
  299. package/daemon/dist/domain/session-registry.js +3 -1
  300. package/daemon/dist/domain/session-registry.js.map +1 -1
  301. package/daemon/dist/domain/session-transport.d.ts +43 -1
  302. package/daemon/dist/domain/session-transport.d.ts.map +1 -1
  303. package/daemon/dist/domain/session-transport.js +195 -25
  304. package/daemon/dist/domain/session-transport.js.map +1 -1
  305. package/daemon/dist/domain/skill-library-discovery.js +2 -2
  306. package/daemon/dist/domain/skill-library-discovery.js.map +1 -1
  307. package/daemon/dist/domain/slices/slice-indexer.d.ts +4 -4
  308. package/daemon/dist/domain/slices/slice-indexer.js +17 -17
  309. package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
  310. package/daemon/dist/domain/startup-orchestrator.d.ts +0 -16
  311. package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
  312. package/daemon/dist/domain/startup-orchestrator.js +7 -60
  313. package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
  314. package/daemon/dist/domain/startup-submission-evidence.d.ts +26 -0
  315. package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
  316. package/daemon/dist/domain/startup-submission-evidence.js +54 -0
  317. package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
  318. package/daemon/dist/domain/successor-session-launcher.d.ts +1 -0
  319. package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
  320. package/daemon/dist/domain/successor-session-launcher.js +1 -0
  321. package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
  322. package/daemon/dist/domain/toml-tables.d.ts +20 -0
  323. package/daemon/dist/domain/toml-tables.d.ts.map +1 -0
  324. package/daemon/dist/domain/toml-tables.js +101 -0
  325. package/daemon/dist/domain/toml-tables.js.map +1 -0
  326. package/daemon/dist/domain/types.d.ts +25 -0
  327. package/daemon/dist/domain/types.d.ts.map +1 -1
  328. package/daemon/dist/domain/types.js.map +1 -1
  329. package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
  330. package/daemon/dist/domain/user-settings/settings-store.js +5 -6
  331. package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
  332. package/daemon/dist/domain/view-projector.d.ts +1 -0
  333. package/daemon/dist/domain/view-projector.d.ts.map +1 -1
  334. package/daemon/dist/domain/view-projector.js +15 -2
  335. package/daemon/dist/domain/view-projector.js.map +1 -1
  336. package/daemon/dist/domain/workflow-human-destination.d.ts.map +1 -1
  337. package/daemon/dist/domain/workflow-human-destination.js +5 -3
  338. package/daemon/dist/domain/workflow-human-destination.js.map +1 -1
  339. package/daemon/dist/domain/workflow-projector.d.ts +1 -0
  340. package/daemon/dist/domain/workflow-projector.d.ts.map +1 -1
  341. package/daemon/dist/domain/workflow-projector.js +19 -3
  342. package/daemon/dist/domain/workflow-projector.js.map +1 -1
  343. package/daemon/dist/domain/workflow-runtime.d.ts +2 -2
  344. package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
  345. package/daemon/dist/domain/workflow-runtime.js +6 -4
  346. package/daemon/dist/domain/workflow-runtime.js.map +1 -1
  347. package/daemon/dist/gateway-human-registry-surface.d.ts +1 -0
  348. package/daemon/dist/gateway-human-registry-surface.d.ts.map +1 -1
  349. package/daemon/dist/gateway-human-registry-surface.js +1 -0
  350. package/daemon/dist/gateway-human-registry-surface.js.map +1 -1
  351. package/daemon/dist/index.js +2 -2
  352. package/daemon/dist/index.js.map +1 -1
  353. package/daemon/dist/lib/pane-envelope.d.ts +4 -0
  354. package/daemon/dist/lib/pane-envelope.d.ts.map +1 -1
  355. package/daemon/dist/lib/pane-envelope.js +1 -1
  356. package/daemon/dist/lib/pane-envelope.js.map +1 -1
  357. package/daemon/dist/routes/activity.js +1 -1
  358. package/daemon/dist/routes/activity.js.map +1 -1
  359. package/daemon/dist/routes/agent-images.d.ts.map +1 -1
  360. package/daemon/dist/routes/agent-images.js +10 -0
  361. package/daemon/dist/routes/agent-images.js.map +1 -1
  362. package/daemon/dist/routes/attention.d.ts.map +1 -1
  363. package/daemon/dist/routes/attention.js +15 -3
  364. package/daemon/dist/routes/attention.js.map +1 -1
  365. package/daemon/dist/routes/bundles.js +1 -1
  366. package/daemon/dist/routes/bundles.js.map +1 -1
  367. package/daemon/dist/routes/gateway.d.ts.map +1 -1
  368. package/daemon/dist/routes/gateway.js +42 -0
  369. package/daemon/dist/routes/gateway.js.map +1 -1
  370. package/daemon/dist/routes/hosts.d.ts.map +1 -1
  371. package/daemon/dist/routes/hosts.js +5 -2
  372. package/daemon/dist/routes/hosts.js.map +1 -1
  373. package/daemon/dist/routes/mission-control.d.ts.map +1 -1
  374. package/daemon/dist/routes/mission-control.js +5 -1
  375. package/daemon/dist/routes/mission-control.js.map +1 -1
  376. package/daemon/dist/routes/plugins.js +1 -1
  377. package/daemon/dist/routes/plugins.js.map +1 -1
  378. package/daemon/dist/routes/queue.d.ts.map +1 -1
  379. package/daemon/dist/routes/queue.js +34 -8
  380. package/daemon/dist/routes/queue.js.map +1 -1
  381. package/daemon/dist/routes/rigs.js +2 -0
  382. package/daemon/dist/routes/rigs.js.map +1 -1
  383. package/daemon/dist/routes/runtime-switch-custody.js +1 -1
  384. package/daemon/dist/routes/scope-audit.js +1 -1
  385. package/daemon/dist/routes/scope-audit.js.map +1 -1
  386. package/daemon/dist/routes/seat.d.ts.map +1 -1
  387. package/daemon/dist/routes/seat.js +49 -15
  388. package/daemon/dist/routes/seat.js.map +1 -1
  389. package/daemon/dist/routes/sessions.js +15 -3
  390. package/daemon/dist/routes/sessions.js.map +1 -1
  391. package/daemon/dist/routes/skills.js +1 -1
  392. package/daemon/dist/routes/skills.js.map +1 -1
  393. package/daemon/dist/routes/slices.js +1 -1
  394. package/daemon/dist/routes/slices.js.map +1 -1
  395. package/daemon/dist/routes/transcripts.js +2 -2
  396. package/daemon/dist/routes/transcripts.js.map +1 -1
  397. package/daemon/dist/routes/transport.d.ts.map +1 -1
  398. package/daemon/dist/routes/transport.js +12 -3
  399. package/daemon/dist/routes/transport.js.map +1 -1
  400. package/daemon/dist/routes/workflow.js +1 -1
  401. package/daemon/dist/routes/workflow.js.map +1 -1
  402. package/daemon/dist/startup.js +1 -1
  403. package/daemon/dist/startup.js.map +1 -1
  404. package/daemon/dist/terminal/TerminalSessionBroker.d.ts +18 -2
  405. package/daemon/dist/terminal/TerminalSessionBroker.d.ts.map +1 -1
  406. package/daemon/dist/terminal/TerminalSessionBroker.js +55 -9
  407. package/daemon/dist/terminal/TerminalSessionBroker.js.map +1 -1
  408. package/daemon/dist/terminal/window-pin.d.ts +41 -0
  409. package/daemon/dist/terminal/window-pin.d.ts.map +1 -0
  410. package/daemon/dist/terminal/window-pin.js +103 -0
  411. package/daemon/dist/terminal/window-pin.js.map +1 -0
  412. package/daemon/docs/reference/a2a-agents.md +16 -4
  413. package/daemon/docs/reference/agent-startup-guide.md +34 -2
  414. package/daemon/docs/reference/community-harness-examples/hermes/config.yaml.example +2 -1
  415. package/daemon/docs/reference/community-harness-presets.md +72 -2
  416. package/daemon/docs/reference/gateway-participants.md +165 -0
  417. package/daemon/docs/reference/getting-started.md +7 -5
  418. package/daemon/docs/reference/quickstart.md +13 -1
  419. package/daemon/docs/reference/rig-spec.md +86 -3
  420. package/daemon/docs/reference/seat-delivery.md +10 -1
  421. package/daemon/docs/reference/seat-node-targeting.md +17 -0
  422. package/daemon/docs/reference/slack-app-setup.md +20 -2
  423. package/daemon/docs/reference/whats-new.md +147 -281
  424. package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +37 -3
  425. package/daemon/specs/agents/shared/skills/core/openrig-herdr/SKILL.md +5 -2
  426. package/daemon/specs/agents/shared/skills/process/agent-browser/SKILL.md +1 -1
  427. package/daemon/specs/agents/shared/skills/process/systematic-debugging/root-cause-tracing.md +1 -1
  428. package/dist/build-info.js +3 -3
  429. package/dist/client.d.ts +4 -0
  430. package/dist/client.d.ts.map +1 -1
  431. package/dist/client.js +4 -1
  432. package/dist/client.js.map +1 -1
  433. package/dist/commands/acp.js +1 -1
  434. package/dist/commands/capture.d.ts +27 -0
  435. package/dist/commands/capture.d.ts.map +1 -1
  436. package/dist/commands/capture.js +62 -4
  437. package/dist/commands/capture.js.map +1 -1
  438. package/dist/commands/doctor.d.ts +9 -1
  439. package/dist/commands/doctor.d.ts.map +1 -1
  440. package/dist/commands/doctor.js +18 -2
  441. package/dist/commands/doctor.js.map +1 -1
  442. package/dist/commands/down.d.ts.map +1 -1
  443. package/dist/commands/down.js +3 -0
  444. package/dist/commands/down.js.map +1 -1
  445. package/dist/commands/export.d.ts.map +1 -1
  446. package/dist/commands/export.js +10 -5
  447. package/dist/commands/export.js.map +1 -1
  448. package/dist/commands/gateway.d.ts.map +1 -1
  449. package/dist/commands/gateway.js +309 -23
  450. package/dist/commands/gateway.js.map +1 -1
  451. package/dist/commands/queue.d.ts.map +1 -1
  452. package/dist/commands/queue.js +26 -8
  453. package/dist/commands/queue.js.map +1 -1
  454. package/dist/commands/rig-mode.d.ts +1 -2
  455. package/dist/commands/rig-mode.d.ts.map +1 -1
  456. package/dist/commands/rig-mode.js +2 -2
  457. package/dist/commands/rig-mode.js.map +1 -1
  458. package/dist/commands/scope.d.ts.map +1 -1
  459. package/dist/commands/scope.js +12 -4
  460. package/dist/commands/scope.js.map +1 -1
  461. package/dist/commands/seat.d.ts.map +1 -1
  462. package/dist/commands/seat.js +35 -5
  463. package/dist/commands/seat.js.map +1 -1
  464. package/dist/commands/send.d.ts +3 -0
  465. package/dist/commands/send.d.ts.map +1 -1
  466. package/dist/commands/send.js +16 -18
  467. package/dist/commands/send.js.map +1 -1
  468. package/dist/commands/setup.d.ts.map +1 -1
  469. package/dist/commands/setup.js +10 -2
  470. package/dist/commands/setup.js.map +1 -1
  471. package/dist/commands/skill.js +1 -1
  472. package/dist/commands/skill.js.map +1 -1
  473. package/dist/commands/slack.d.ts +10 -0
  474. package/dist/commands/slack.d.ts.map +1 -1
  475. package/dist/commands/slack.js +70 -2
  476. package/dist/commands/slack.js.map +1 -1
  477. package/dist/config-store.d.ts.map +1 -1
  478. package/dist/config-store.js +3 -2
  479. package/dist/config-store.js.map +1 -1
  480. package/dist/daemon-lifecycle.d.ts +1 -1
  481. package/dist/daemon-lifecycle.js +2 -2
  482. package/dist/daemon-lifecycle.js.map +1 -1
  483. package/dist/fetch-with-timeout.d.ts.map +1 -1
  484. package/dist/fetch-with-timeout.js +3 -1
  485. package/dist/fetch-with-timeout.js.map +1 -1
  486. package/dist/lib/scope/dot-id.js +2 -2
  487. package/dist/lib/scope/dot-id.js.map +1 -1
  488. package/dist/lib/scope/scaffold-placeholder.d.ts +1 -1
  489. package/dist/lib/scope/scaffold-placeholder.js +1 -1
  490. package/dist/lib/scope/scope-audit.js +1 -1
  491. package/dist/lib/scope/scope-audit.js.map +1 -1
  492. package/dist/lib/scope/types.d.ts.map +1 -1
  493. package/dist/lib/scope/types.js +2 -3
  494. package/dist/lib/scope/types.js.map +1 -1
  495. package/dist/long-request-fetch.d.ts +9 -0
  496. package/dist/long-request-fetch.d.ts.map +1 -0
  497. package/dist/long-request-fetch.js +48 -0
  498. package/dist/long-request-fetch.js.map +1 -0
  499. package/dist/mcp-server.js +1 -1
  500. package/dist/mcp-server.js.map +1 -1
  501. package/dist/release-surface/affected-skills.d.ts.map +1 -1
  502. package/dist/release-surface/affected-skills.js +1 -2
  503. package/dist/release-surface/affected-skills.js.map +1 -1
  504. package/dist/remote-host-ops.d.ts +1 -0
  505. package/dist/remote-host-ops.d.ts.map +1 -1
  506. package/dist/remote-host-ops.js +2 -2
  507. package/dist/remote-host-ops.js.map +1 -1
  508. package/dist/tmux-health.d.ts +26 -0
  509. package/dist/tmux-health.d.ts.map +1 -1
  510. package/dist/tmux-health.js +42 -0
  511. package/dist/tmux-health.js.map +1 -1
  512. package/package.json +1 -1
  513. package/tui/dist/attention/attention-model.d.ts +19 -0
  514. package/tui/dist/attention/attention-model.d.ts.map +1 -1
  515. package/tui/dist/attention/attention-model.js +38 -6
  516. package/tui/dist/attention/attention-model.js.map +1 -1
  517. package/tui/dist/commands/registry.d.ts.map +1 -1
  518. package/tui/dist/commands/registry.js +4 -1
  519. package/tui/dist/commands/registry.js.map +1 -1
  520. package/tui/dist/daemon-client.d.ts +13 -8
  521. package/tui/dist/daemon-client.d.ts.map +1 -1
  522. package/tui/dist/daemon-client.js +18 -10
  523. package/tui/dist/daemon-client.js.map +1 -1
  524. package/tui/dist/demo-data.js +17 -17
  525. package/tui/dist/demo-data.js.map +1 -1
  526. package/tui/dist/hydrate.d.ts +1 -1
  527. package/tui/dist/hydrate.d.ts.map +1 -1
  528. package/tui/dist/hydrate.js +31 -10
  529. package/tui/dist/hydrate.js.map +1 -1
  530. package/tui/dist/live-events.js +1 -1
  531. package/tui/dist/live-events.js.map +1 -1
  532. package/tui/dist/main.js +27 -7
  533. package/tui/dist/main.js.map +1 -1
  534. package/tui/dist/page-read.js +1 -1
  535. package/tui/dist/page-read.js.map +1 -1
  536. package/tui/dist/render.d.ts.map +1 -1
  537. package/tui/dist/render.js +51 -7
  538. package/tui/dist/render.js.map +1 -1
  539. package/tui/dist/state.d.ts.map +1 -1
  540. package/tui/dist/state.js +5 -1
  541. package/tui/dist/state.js.map +1 -1
  542. package/tui/dist/terminals/open-window.d.ts +8 -3
  543. package/tui/dist/terminals/open-window.d.ts.map +1 -1
  544. package/tui/dist/terminals/open-window.js +21 -6
  545. package/tui/dist/terminals/open-window.js.map +1 -1
  546. package/tui/dist/terminals/terminal-model.d.ts +1 -1
  547. package/tui/dist/terminals/terminal-model.d.ts.map +1 -1
  548. package/tui/dist/terminals/terminal-model.js +1 -1
  549. package/tui/dist/terminals/terminal-model.js.map +1 -1
  550. package/tui/dist/types.d.ts +10 -1
  551. package/tui/dist/types.d.ts.map +1 -1
  552. package/ui/dist/assets/{index-DLP1ipGq.js → index-DV0UNxFw.js} +1 -1
  553. package/ui/dist/index.html +1 -1
@@ -1,5 +1,6 @@
1
1
  import { physicalSessionName } from "./session-registry.js";
2
2
  import { currentClaudeMcpMenu } from "./claude-mcp-menu.js";
3
+ import { currentClaudeResumePicker } from "./native-resume-probe.js";
3
4
  import stringWidth from "string-width";
4
5
  import { CODEX_TURN_STATUS_PATTERN } from "./codex-pane-patterns.js";
5
6
  import { randomUUID } from "node:crypto";
@@ -8,8 +9,9 @@ import { composerContainsOwnedText, composerNumberedChoicePattern, composerPromp
8
9
  export { inspectStartupStagedText } from "./startup-submission-evidence.js";
9
10
  import { OutboxHandler } from "./outbox-handler.js";
10
11
  import { DraftAwareDelivery } from "./draft-aware-delivery.js";
11
- import { claudeResumeRotation } from "./session-registry.js";
12
- import { tmuxResizeWindowCommand } from "../adapters/tmux-server.js";
12
+ import { communityHarnessOf } from "./built-in-runtimes.js";
13
+ import { claudeResumeRotation, sessionCommunityHarnessSelect } from "./session-registry.js";
14
+ import { newPinHolder, readPinSizing, recordPin, releasePin, WINDOW_SIZE_PRIOR_OPTION, withWindowPin } from "../terminal/window-pin.js";
13
15
  import { latestHookPermissionPending, latestHookWaitsOnPerson } from "./agent-activity-store.js";
14
16
  import { DeliveryGuardError } from "./seat-delivery-guard.js";
15
17
  import { withUrgentLine } from "./urgent-line.js";
@@ -537,10 +539,35 @@ function draftComposerLine(lines, verdict) {
537
539
  return null;
538
540
  return lines[last].trim();
539
541
  }
542
+ const OPENCLAW_TURN_NOT_RECOVERED = "OpenClaw turn not recovered; inspect the pane before retrying";
543
+ /** The pinned OpenClaw local error frame, not a quoted error in history or a recovery-state diagnosis.
544
+ * Multiple native branches emit the same refusal; observe it without touching native session state. */
545
+ function currentOpenClawTurnRefusal(paneContent) {
546
+ const lines = trimPaneLines(styledTextLines(paneContent).map(line => line.text).join("\n"));
547
+ const editorRules = lines.flatMap((line, at) => /^─{3,}$/.test(line) ? [at] : []);
548
+ // The pinned TUI puts its status/footer above the editor. Extra rules make that boundary ambiguous;
549
+ // leave those layouts unclassified rather than selecting a quoted frame inside the composer.
550
+ if (editorRules.length !== 2 || editorRules[1] !== lines.length - 1)
551
+ return null;
552
+ for (let at = editorRules[0] - 1; at >= 0; at--) {
553
+ if (!/^(?:local|gateway)\s+.*\|/.test(lines[at]))
554
+ continue;
555
+ if (lines[at].replace(/\s+/g, " ") !== "local ready | error"
556
+ || !lines[at + 1]?.startsWith("agent main | session "))
557
+ return null;
558
+ const error = lines.slice(Math.max(0, at - 12), at).join(" ");
559
+ const match = /(?:^| )run error:\s*Session\s+"[^"]+"\s+changed while\s+starting work\.\s+Retry\.$/.exec(error);
560
+ return match ? truncateEvidence(match[0]) : null;
561
+ }
562
+ return null;
563
+ }
540
564
  /** A community harness's screen never proves it's idle: a quiet prompt can be an approval or a pause, so its idle
541
565
  * reading becomes unknown. Positive work and attention are kept. `communityHarness` is the seat's recorded selection
542
566
  * (`communityHarnessOf`); without it the classification is returned as it is. */
543
- export function communityHarnessPaneActivity(classification, communityHarness) {
567
+ export function communityHarnessPaneActivity(classification, communityHarness, paneContent = "") {
568
+ const refused = communityHarness === "openclaw" ? currentOpenClawTurnRefusal(paneContent) : null;
569
+ if (refused)
570
+ return { state: "attention", reason: OPENCLAW_TURN_NOT_RECOVERED, evidence: refused };
544
571
  return communityHarness && classification.state === "agent_idle"
545
572
  ? { state: "unknown", reason: "community_harness_no_idle_signal", evidence: classification.evidence }
546
573
  : classification;
@@ -604,7 +631,9 @@ export function classifyPaneActivity(paneContent, options = {}) {
604
631
  const currentComposerSelection = currentComposerText
605
632
  ? findPatternEvidence(currentComposerText.split("\n").map(line => line.trimStart()), [COMPOSER_SELECTION_SCAN_PATTERN])
606
633
  : null;
607
- const selectionPromptEvidence = currentClaudeMcpMenu(paneContent) ?? findCurrentClaudeQuestion(paneContent) ??
634
+ // Claude's resume picker types a paste into its search and resumes a card on Enter. A Codex or Pi pane printing one is output.
635
+ const claudePicker = options.runtime === "codex" || options.runtime === "pi" ? null : currentClaudeResumePicker(paneContent);
636
+ const selectionPromptEvidence = claudePicker ?? currentClaudeMcpMenu(paneContent) ?? findCurrentClaudeQuestion(paneContent) ??
608
637
  currentComposerSelection ?? (options.currentClaudeDialogueOnly ? null
609
638
  : findPatternEvidence(selectionLines, [COMPOSER_SELECTION_SCAN_PATTERN]));
610
639
  if (selectionPromptEvidence) {
@@ -838,8 +867,15 @@ export async function probeSessionActivity(input) {
838
867
  currentClaudeDialogueOnly: input.currentClaudeDialogueOnly === true,
839
868
  postCompactTurnBoundary: input.postCompactTurnBoundary === true,
840
869
  };
841
- let classification = communityHarnessPaneActivity(classifyPaneActivity(paneContent ?? "", { ...classifyOptions,
842
- composerSnapshot: snapshot ?? undefined, runtime }), input.communityHarness);
870
+ const paneClassification = classifyPaneActivity(paneContent ?? "", { ...classifyOptions,
871
+ composerSnapshot: snapshot ?? undefined, runtime });
872
+ let classification = communityHarnessPaneActivity(paneClassification, input.communityHarness, paneContent ?? "");
873
+ if (input.communityHarnessSendProbe) {
874
+ if (classification.reason === "community_harness_no_idle_signal")
875
+ classification = paneClassification;
876
+ else if (classification.reason === OPENCLAW_TURN_NOT_RECOVERED)
877
+ classification = { ...classification, state: "unknown" };
878
+ }
843
879
  // Claude renders its prompt suggestion faint, which the plain capture loses. When a Claude pane reads
844
880
  // as a draft, one capture with styling is classified on its own. Newer attention or work there is
845
881
  // kept. A faint suggestion counts only when it's the same composer text this capture read as a draft;
@@ -1718,6 +1754,7 @@ export class SessionTransport {
1718
1754
  const row = this.db.prepare(`
1719
1755
  SELECT
1720
1756
  n.runtime AS runtime,
1757
+ ${sessionCommunityHarnessSelect(this.db)} AS community_harness,
1721
1758
  b.attachment_type AS attachment_type,
1722
1759
  n.id AS node_id,
1723
1760
  b.tmux_session AS binding_session,
@@ -1737,6 +1774,7 @@ export class SessionTransport {
1737
1774
  `).get(sessionName);
1738
1775
  return {
1739
1776
  runtime: row?.runtime ?? null,
1777
+ communityHarness: communityHarnessOf(row?.community_harness, row?.runtime),
1740
1778
  attachmentType: row?.attachment_type ?? null,
1741
1779
  nodeId: row?.node_id ?? null,
1742
1780
  // The row may be a historical session of a node now bound elsewhere: only a
@@ -2750,8 +2788,13 @@ export class SessionTransport {
2750
2788
  // or not --dangerously-interact was passed (B1 code-review fix) — so the honest telemetry is
2751
2789
  // surfaced without ever blocking communication. Hooks are advisory telemetry, not authority
2752
2790
  // over whether agents can talk.
2753
- const linkDiagnosis = await this.diagnoseProducerLink(sessionName);
2754
- sendAdvisory = [sendAdvisory, `producer-link: ${linkDiagnosis} — activity could not be determined (${readiness.reason}); sent anyway (telemetry is advisory).`].filter(Boolean).join(" ");
2791
+ if (readiness.reason === OPENCLAW_TURN_NOT_RECOVERED) {
2792
+ sendAdvisory = [sendAdvisory, `OpenClaw refused its last local turn and OpenRig hasn't recovered it; this message submits a new turn. Inspect it with rig capture ${sessionName}.`].filter(Boolean).join(" ");
2793
+ }
2794
+ else {
2795
+ const linkDiagnosis = await this.diagnoseProducerLink(sessionName);
2796
+ sendAdvisory = [sendAdvisory, `producer-link: ${linkDiagnosis} — activity could not be determined (${readiness.reason}); sent anyway (telemetry is advisory).`].filter(Boolean).join(" ");
2797
+ }
2755
2798
  // fall through to the send below.
2756
2799
  }
2757
2800
  else if (readiness.state === "running") {
@@ -2762,7 +2805,7 @@ export class SessionTransport {
2762
2805
  // ONLY hard refuse; unknown/stale/missing already proceed-with-advisory above.
2763
2806
  sendAdvisory = [sendAdvisory, "target pane appears mid-task; sent anyway (busy is advisory, not a block)."].filter(Boolean).join(" ");
2764
2807
  if (runtime === "codex")
2765
- sendAdvisory += " This message joins its running turn and may redirect it; for separate work, use --wait-for-idle <seconds>.";
2808
+ sendAdvisory += " This message joins its running turn and may redirect it. For separate work, create a queue row (rig queue create --destination <seat>): a saved row keeps the work apart from the short wake typed into the seat. To watch the result, --wait-for-idle <seconds> sends only once the seat is idle, and sends nothing if it isn't when the wait ends.";
2766
2809
  // fall through to the send below.
2767
2810
  }
2768
2811
  // idle (or running/unknown — now advisory-and-proceed) → proceed to send.
@@ -3173,8 +3216,10 @@ export class SessionTransport {
3173
3216
  async classifySendReadiness(input, privateInput = false) {
3174
3217
  const now = this.now();
3175
3218
  let binding = input.binding;
3219
+ let communityHarness = null;
3176
3220
  try {
3177
3221
  const stored = this.getSessionMeta(input.sessionName);
3222
+ communityHarness = stored.communityHarness;
3178
3223
  binding = {
3179
3224
  sessionName: input.sessionName,
3180
3225
  nodeId: binding?.nodeId ?? stored.nodeId,
@@ -3216,6 +3261,7 @@ export class SessionTransport {
3216
3261
  if (this.hookFreshForSend(hookActivity, now)) {
3217
3262
  if (hookActivity.state === "running" && input.runtime === "claude-code") {
3218
3263
  const paneVeto = await probeSessionActivity({
3264
+ communityHarness, communityHarnessSendProbe: true,
3219
3265
  composerSnapshot,
3220
3266
  currentClaudeDialogueOnly: true,
3221
3267
  sessionName: input.sessionName,
@@ -3246,6 +3292,7 @@ export class SessionTransport {
3246
3292
  // vetoes (→ refuse); an unknown pane (the flaky-Codex case this trust
3247
3293
  // exists for) or a clean idle pane does NOT veto → trust the stale hook.
3248
3294
  const paneVeto = await probeSessionActivity({
3295
+ communityHarness, communityHarnessSendProbe: true,
3249
3296
  composerSnapshot,
3250
3297
  sessionName: input.sessionName,
3251
3298
  runtime: input.runtime,
@@ -3262,6 +3309,7 @@ export class SessionTransport {
3262
3309
  }
3263
3310
  }
3264
3311
  const probe = await probeSessionActivity({
3312
+ communityHarness, communityHarnessSendProbe: true,
3265
3313
  composerSnapshot,
3266
3314
  sessionName: input.sessionName,
3267
3315
  runtime: input.runtime,
@@ -3517,22 +3565,138 @@ export class SessionTransport {
3517
3565
  };
3518
3566
  }
3519
3567
  const lines = opts?.lines ?? 20;
3520
- const content = await this.tmuxAdapter.capturePaneContent(sessionName, lines);
3521
- if (content === null) {
3522
- return {
3523
- ok: false,
3524
- sessionName,
3525
- reason: "capture_failed",
3526
- error: `Could not capture pane content for '${sessionName}'.`,
3527
- };
3568
+ const read = async () => {
3569
+ const content = await this.tmuxAdapter.capturePaneContent(sessionName, lines);
3570
+ if (content === null) {
3571
+ return {
3572
+ ok: false,
3573
+ sessionName,
3574
+ reason: "capture_failed",
3575
+ error: `Could not capture pane content for '${sessionName}'.`,
3576
+ };
3577
+ }
3578
+ await this.reconcileStartupReadiness(sessionName).catch(() => { });
3579
+ const runtime = sessionMeta.runtime;
3580
+ const inputBox = opts?.inputBox && (runtime === "claude-code" || runtime === "codex")
3581
+ ? await this.captureInputBox(sessionName, runtime, opts.inputBoxBudget ?? { remainingMs: CAPTURE_INPUT_BOX_DEADLINE_MS })
3582
+ : undefined;
3583
+ const promptPane = opts?.promptPane ? await this.capturePromptPane(sessionName, content, runtime) : undefined;
3584
+ return { ok: true, sessionName, content, lines, ...(inputBox ? { inputBox } : {}), ...(promptPane ? { promptPane } : {}) };
3585
+ };
3586
+ if (!opts?.readable)
3587
+ return read();
3588
+ const { value, readable } = await this.readAtReadableSize(sessionName, opts.readable, opts.readableBudget ?? { remainingMs: CAPTURE_READABLE_BUDGET_MS }, read);
3589
+ return value.ok ? { ...value, readable } : value;
3590
+ }
3591
+ /**
3592
+ * Run `read` with the seat's window enlarged to at least `size`, then put the window back: its size, and its own
3593
+ * `window-size` exactly. resize-window sets that to manual, which would stop the window's clients (Herdr, attach)
3594
+ * sizing it. The window is named by its id, and the resize is recorded as a pin (window-pin.ts) in the window's
3595
+ * queue, so a web terminal that opens meanwhile keeps the window's own value and the window is put back only when the
3596
+ * last live holder lets go. Read as it is, with the reason: a window already that big; one whose own `window-size`
3597
+ * is manual for a live holder or a person (a pin whose holders are gone is taken over and given back); one whose
3598
+ * sizing can't be read or whose record couldn't be written (it couldn't be given back); one with several panes; and
3599
+ * any seat once `budget` (shared across a fan-out) is spent.
3600
+ */
3601
+ async readAtReadableSize(sessionName, size, budget, read) {
3602
+ const started = this.now().getTime();
3603
+ const deadline = started + budget.remainingMs;
3604
+ const asItIs = async (reason) => ({ value: await read(), readable: { resized: false, reason } });
3605
+ const spent = `this capture's ${CAPTURE_READABLE_BUDGET_MS / 1000} s for readable reads ran out`;
3606
+ const late = () => deadline - this.now().getTime() < READABLE_MIN_REMAINING_MS;
3607
+ try {
3608
+ // Spent: no readable setup at all (no queue wait or sizing reads), so a long fan-out still returns in time.
3609
+ if (late())
3610
+ return await asItIs(spent);
3611
+ const window = (await this.tmuxAdapter.readWindow(sessionName, WINDOW_SIZE_PRIOR_OPTION).catch(() => null))?.id;
3612
+ if (!window)
3613
+ return await asItIs("the window's sizing couldn't be read, so it couldn't be given back");
3614
+ const pin = await withWindowPin(window, async () => {
3615
+ const sizing = await readPinSizing(this.tmuxAdapter, window);
3616
+ if (!sizing)
3617
+ return "the window's sizing couldn't be read, so it couldn't be given back";
3618
+ if (sizing.live === "manual" && (sizing.prior === "manual" || sizing.holders.length > 0)) {
3619
+ return "the window's size is pinned (its window-size is manual)";
3620
+ }
3621
+ // Still manual here: a pin whose holders are gone (a capture or a web terminal that ended without giving it back).
3622
+ // It's taken over, and given back after this read even when the pane is already big enough.
3623
+ const leftover = sizing.live === "manual";
3624
+ const panes = await this.tmuxAdapter.listPanes(window).catch(() => []);
3625
+ if (panes.length !== 1)
3626
+ return panes.length === 0 ? "the window's size couldn't be read" : "the window has several panes";
3627
+ const pane = panes[0];
3628
+ const bigEnough = pane.width >= size.width && pane.height >= size.height;
3629
+ if (bigEnough && !leftover)
3630
+ return `the pane is already ${pane.width}x${pane.height}`;
3631
+ if (!bigEnough && late())
3632
+ return spent;
3633
+ const holder = newPinHolder();
3634
+ if (!(await recordPin(this.tmuxAdapter, sizing, holder)))
3635
+ return "its restore record couldn't be written, so it wasn't resized";
3636
+ // The record can settle late: past the deadline, let go without resizing.
3637
+ if (!bigEnough && late())
3638
+ return { holder, pane, resized: null, spent: true };
3639
+ const resized = bigEnough ? null
3640
+ : await this.tmuxAdapter.resizeWindow(window, Math.max(size.width, pane.width), Math.max(size.height, pane.height));
3641
+ return { holder, pane, resized, spent: false };
3642
+ });
3643
+ if (typeof pin === "string")
3644
+ return await asItIs(pin);
3645
+ const { holder, pane, resized } = pin;
3646
+ if (pin.spent) {
3647
+ await releasePin(this.tmuxAdapter, window, holder);
3648
+ return await asItIs(spent);
3649
+ }
3650
+ let readable;
3651
+ let value;
3652
+ try {
3653
+ if (!resized) {
3654
+ readable = { resized: false, reason: `the pane is already ${pane.width}x${pane.height}` };
3655
+ value = await read();
3656
+ }
3657
+ else if (!resized.ok) {
3658
+ readable = { resized: false, reason: `the resize failed: ${resized.message}` };
3659
+ value = await read();
3660
+ }
3661
+ else {
3662
+ await this.settleRedraw(sessionName, deadline);
3663
+ value = await read();
3664
+ readable = { resized: true, width: Math.max(size.width, pane.width), height: Math.max(size.height, pane.height), release: "not-listed" };
3665
+ }
3666
+ }
3667
+ finally {
3668
+ // As the last holder: back to its size first (that pins it again), then its own sizing, so a window with
3669
+ // clients follows them again.
3670
+ let sizeBack = null;
3671
+ const release = await releasePin(this.tmuxAdapter, window, holder, resized ? async () => {
3672
+ sizeBack = await this.tmuxAdapter.resizeWindow(window, pane.width, pane.height);
3673
+ } : undefined);
3674
+ if (readable?.resized) {
3675
+ readable.release = release;
3676
+ const back = sizeBack;
3677
+ if (back && !back.ok)
3678
+ readable.sizeBack = `putting its size back failed: ${back.message}`;
3679
+ }
3680
+ else if (!resized && release === "given-back" && readable)
3681
+ readable.reason += "; a pin left on its window was given back";
3682
+ }
3683
+ return { value, readable: readable };
3684
+ }
3685
+ finally {
3686
+ budget.remainingMs = Math.max(0, budget.remainingMs - (this.now().getTime() - started));
3687
+ }
3688
+ }
3689
+ /** After a resize, give the seat's TUI time to redraw: two equal screens 150 ms apart, at most 12 looks, and never
3690
+ * past `deadline`. */
3691
+ async settleRedraw(sessionName, deadline) {
3692
+ let last = null;
3693
+ for (let look = 0; look < 12 && this.now().getTime() + 150 <= deadline; look++) {
3694
+ await this.sleep(150);
3695
+ const screen = await this.tmuxAdapter.capturePaneScreen(sessionName).catch(() => null);
3696
+ if (screen !== null && screen === last)
3697
+ return;
3698
+ last = screen;
3528
3699
  }
3529
- await this.reconcileStartupReadiness(sessionName).catch(() => { });
3530
- const runtime = sessionMeta.runtime;
3531
- const inputBox = opts?.inputBox && (runtime === "claude-code" || runtime === "codex")
3532
- ? await this.captureInputBox(sessionName, runtime, opts.inputBoxBudget ?? { remainingMs: CAPTURE_INPUT_BOX_DEADLINE_MS })
3533
- : undefined;
3534
- const promptPane = opts?.promptPane ? await this.capturePromptPane(sessionName, content, runtime) : undefined;
3535
- return { ok: true, sessionName, content, lines, ...(inputBox ? { inputBox } : {}), ...(promptPane ? { promptPane } : {}) };
3536
3700
  }
3537
3701
  /** A prompt drawn in a pane smaller than an 80x24 terminal may be cut off, so a reader can't see what the seat asks.
3538
3702
  * The pane size is read only when the captured screen shows a prompt. */
@@ -3545,7 +3709,7 @@ export class SessionTransport {
3545
3709
  if (!pane || (pane.width >= 80 && pane.height >= 24))
3546
3710
  return undefined;
3547
3711
  return { width: pane.width, height: pane.height,
3548
- hint: `pane ${pane.width}x${pane.height} is smaller than 80x24, so the prompt may be cut off; resize it (${tmuxResizeWindowCommand(sessionName, 120, 40)}) and capture again` };
3712
+ hint: `pane ${pane.width}x${pane.height} is smaller than 80x24, so the prompt may be cut off; read it at a readable size with rig capture ${sessionName} --readable` };
3549
3713
  }
3550
3714
  /** The input box, or unknown when its reads don't finish within the budget's remaining time (or none is left): the
3551
3715
  * pane text is already in hand, so a slow read never holds the capture. The time spent comes off the budget. A read
@@ -3780,6 +3944,12 @@ const INPUT_CONTINUATION_COLUMN = 2; // Claude Code and Codex indent an input's
3780
3944
  // How long a capture's input-box reads may take in all before the box reports unknown: one seat's three reads, or a
3781
3945
  // whole fan-out's (the send path's INPUT_BOX_READ_DEADLINE_MS bounds one read each).
3782
3946
  export const CAPTURE_INPUT_BOX_DEADLINE_MS = 1_000;
3947
+ /** The time a capture's readable reads (`--readable`, `--size`) may take: the resize, the redraw and the read, for one
3948
+ * seat or a whole fan-out. Seats left once it's spent are read as they are, so the request returns inside the CLI's
3949
+ * wait (capture.ts's READABLE_REQUEST_TIMEOUT_MS). Each window is given back whatever is left. */
3950
+ export const CAPTURE_READABLE_BUDGET_MS = 8_000;
3951
+ /** Below this, a seat isn't resized: two redraw looks and the read wouldn't fit. */
3952
+ const READABLE_MIN_REMAINING_MS = 500;
3783
3953
  // Claude Code's input frame rule, as findClaudeComposer and the composer-boundary reader match it (a label may sit in it).
3784
3954
  const CLAUDE_FRAME_RULE = /^─{3,}(?: .+ ─+)?$/;
3785
3955
  /** The input box's rows on the screen: Claude Code's prompt row inside its frame (the opening rule directly above it,