@openrig/cli 0.7.13 → 0.7.14

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 (413) hide show
  1. package/README.md +5 -5
  2. package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +1 -1
  3. package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +1 -1
  4. package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
  5. package/daemon/assets/plugins/openrig/plugin.json +1 -1
  6. package/daemon/assets/plugins/openrig/skills/working-with-an-openrig-team/SKILL.md +7 -0
  7. package/daemon/assets/skills/rigs/SKILL.md +5 -2
  8. package/daemon/context-packs/help/manifest.yaml +1 -1
  9. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  10. package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +65 -21
  11. package/daemon/context-packs/reference/getting-started.md +13 -8
  12. package/daemon/context-packs/reference/manifest.yaml +1 -1
  13. package/daemon/context-packs/reference/rig-spec.md +4 -0
  14. package/daemon/context-packs/reference/tmux-servers.md +8 -2
  15. package/daemon/context-packs/reference/whats-new.md +153 -15
  16. package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
  17. package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
  18. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
  19. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
  20. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  21. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  22. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  23. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  24. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
  25. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  26. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  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/core/working-with-an-openrig-team/SKILL.md +7 -0
  38. package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
  39. package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
  40. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
  41. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
  42. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
  43. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
  44. package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
  45. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
  46. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  47. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  48. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  49. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  50. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  51. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
  52. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  53. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  54. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  55. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  56. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  57. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
  58. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  59. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
  60. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  61. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +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/claude-code-adapter.d.ts.map +1 -1
  73. package/daemon/dist/adapters/claude-code-adapter.js +27 -4
  74. package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
  75. package/daemon/dist/adapters/codex-runtime-adapter.d.ts +11 -2
  76. package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
  77. package/daemon/dist/adapters/codex-runtime-adapter.js +32 -9
  78. package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
  79. package/daemon/dist/adapters/tmux-exec.d.ts +4 -4
  80. package/daemon/dist/adapters/tmux-exec.d.ts.map +1 -1
  81. package/daemon/dist/adapters/tmux-exec.js +37 -8
  82. package/daemon/dist/adapters/tmux-exec.js.map +1 -1
  83. package/daemon/dist/adapters/tmux.d.ts +9 -0
  84. package/daemon/dist/adapters/tmux.d.ts.map +1 -1
  85. package/daemon/dist/adapters/tmux.js +23 -3
  86. package/daemon/dist/adapters/tmux.js.map +1 -1
  87. package/daemon/dist/attention-surface.d.ts +8 -0
  88. package/daemon/dist/attention-surface.d.ts.map +1 -1
  89. package/daemon/dist/attention-surface.js.map +1 -1
  90. package/daemon/dist/build-info.js +3 -3
  91. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  92. package/daemon/dist/db/all-migrations.js +6 -0
  93. package/daemon/dist/db/all-migrations.js.map +1 -1
  94. package/daemon/dist/db/migrations/163_network_installations.d.ts +7 -0
  95. package/daemon/dist/db/migrations/163_network_installations.d.ts.map +1 -0
  96. package/daemon/dist/db/migrations/163_network_installations.js +23 -0
  97. package/daemon/dist/db/migrations/163_network_installations.js.map +1 -0
  98. package/daemon/dist/db/migrations/164_queue_items_reply_to_index.d.ts +5 -0
  99. package/daemon/dist/db/migrations/164_queue_items_reply_to_index.d.ts.map +1 -0
  100. package/daemon/dist/db/migrations/164_queue_items_reply_to_index.js +9 -0
  101. package/daemon/dist/db/migrations/164_queue_items_reply_to_index.js.map +1 -0
  102. package/daemon/dist/db/migrations/166_queue_list_read_indexes.d.ts +4 -0
  103. package/daemon/dist/db/migrations/166_queue_list_read_indexes.d.ts.map +1 -0
  104. package/daemon/dist/db/migrations/166_queue_list_read_indexes.js +17 -0
  105. package/daemon/dist/db/migrations/166_queue_list_read_indexes.js.map +1 -0
  106. package/daemon/dist/domain/claude-compaction-enforcer.d.ts +5 -0
  107. package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
  108. package/daemon/dist/domain/claude-compaction-enforcer.js +12 -3
  109. package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
  110. package/daemon/dist/domain/context-monitor.d.ts.map +1 -1
  111. package/daemon/dist/domain/context-monitor.js +8 -3
  112. package/daemon/dist/domain/context-monitor.js.map +1 -1
  113. package/daemon/dist/domain/draft-aware-delivery.d.ts.map +1 -1
  114. package/daemon/dist/domain/draft-aware-delivery.js +2 -1
  115. package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
  116. package/daemon/dist/domain/hosts/pairing-ask.d.ts +8 -0
  117. package/daemon/dist/domain/hosts/pairing-ask.d.ts.map +1 -1
  118. package/daemon/dist/domain/hosts/pairing-ask.js +20 -0
  119. package/daemon/dist/domain/hosts/pairing-ask.js.map +1 -1
  120. package/daemon/dist/domain/input-read-diagnostic.d.ts +30 -0
  121. package/daemon/dist/domain/input-read-diagnostic.d.ts.map +1 -0
  122. package/daemon/dist/domain/input-read-diagnostic.js +32 -0
  123. package/daemon/dist/domain/input-read-diagnostic.js.map +1 -0
  124. package/daemon/dist/domain/native-model-picker.d.ts +8 -0
  125. package/daemon/dist/domain/native-model-picker.d.ts.map +1 -0
  126. package/daemon/dist/domain/native-model-picker.js +35 -0
  127. package/daemon/dist/domain/native-model-picker.js.map +1 -0
  128. package/daemon/dist/domain/native-process-lineage.d.ts +6 -0
  129. package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
  130. package/daemon/dist/domain/native-process-lineage.js +34 -29
  131. package/daemon/dist/domain/native-process-lineage.js.map +1 -1
  132. package/daemon/dist/domain/native-resume-probe.d.ts +6 -0
  133. package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
  134. package/daemon/dist/domain/native-resume-probe.js +124 -2
  135. package/daemon/dist/domain/native-resume-probe.js.map +1 -1
  136. package/daemon/dist/domain/network/network-bindings.d.ts +32 -2
  137. package/daemon/dist/domain/network/network-bindings.d.ts.map +1 -1
  138. package/daemon/dist/domain/network/network-bindings.js +65 -28
  139. package/daemon/dist/domain/network/network-bindings.js.map +1 -1
  140. package/daemon/dist/domain/network/network-installations.d.ts +97 -0
  141. package/daemon/dist/domain/network/network-installations.d.ts.map +1 -0
  142. package/daemon/dist/domain/network/network-installations.js +371 -0
  143. package/daemon/dist/domain/network/network-installations.js.map +1 -0
  144. package/daemon/dist/domain/operation-correlation.d.ts +1 -1
  145. package/daemon/dist/domain/operation-correlation.d.ts.map +1 -1
  146. package/daemon/dist/domain/operation-correlation.js +1 -1
  147. package/daemon/dist/domain/operation-correlation.js.map +1 -1
  148. package/daemon/dist/domain/process-observation-pass.d.ts +20 -0
  149. package/daemon/dist/domain/process-observation-pass.d.ts.map +1 -0
  150. package/daemon/dist/domain/process-observation-pass.js +80 -0
  151. package/daemon/dist/domain/process-observation-pass.js.map +1 -0
  152. package/daemon/dist/domain/queue-erasure.d.ts +10 -6
  153. package/daemon/dist/domain/queue-erasure.d.ts.map +1 -1
  154. package/daemon/dist/domain/queue-erasure.js +31 -18
  155. package/daemon/dist/domain/queue-erasure.js.map +1 -1
  156. package/daemon/dist/domain/queue-recovery.d.ts +10 -1
  157. package/daemon/dist/domain/queue-recovery.d.ts.map +1 -1
  158. package/daemon/dist/domain/queue-recovery.js +25 -3
  159. package/daemon/dist/domain/queue-recovery.js.map +1 -1
  160. package/daemon/dist/domain/queue-repository.d.ts +23 -2
  161. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  162. package/daemon/dist/domain/queue-repository.js +77 -4
  163. package/daemon/dist/domain/queue-repository.js.map +1 -1
  164. package/daemon/dist/domain/queue-retention.d.ts +1 -1
  165. package/daemon/dist/domain/queue-retention.d.ts.map +1 -1
  166. package/daemon/dist/domain/queue-retention.js +1 -0
  167. package/daemon/dist/domain/queue-retention.js.map +1 -1
  168. package/daemon/dist/domain/queue-stuck-sweep.d.ts +5 -0
  169. package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
  170. package/daemon/dist/domain/queue-stuck-sweep.js +335 -50
  171. package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
  172. package/daemon/dist/domain/receiver-context.d.ts.map +1 -1
  173. package/daemon/dist/domain/receiver-context.js +3 -2
  174. package/daemon/dist/domain/receiver-context.js.map +1 -1
  175. package/daemon/dist/domain/restore-guidance.d.ts +3 -0
  176. package/daemon/dist/domain/restore-guidance.d.ts.map +1 -1
  177. package/daemon/dist/domain/restore-guidance.js +5 -0
  178. package/daemon/dist/domain/restore-guidance.js.map +1 -1
  179. package/daemon/dist/domain/restore-orchestrator.d.ts +6 -0
  180. package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
  181. package/daemon/dist/domain/restore-orchestrator.js +69 -5
  182. package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
  183. package/daemon/dist/domain/restore-preconditions.d.ts.map +1 -1
  184. package/daemon/dist/domain/restore-preconditions.js +2 -1
  185. package/daemon/dist/domain/restore-preconditions.js.map +1 -1
  186. package/daemon/dist/domain/rigspec-instantiator.d.ts +1 -0
  187. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  188. package/daemon/dist/domain/rigspec-instantiator.js +1 -1
  189. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  190. package/daemon/dist/domain/rosters.d.ts +2 -1
  191. package/daemon/dist/domain/rosters.d.ts.map +1 -1
  192. package/daemon/dist/domain/rosters.js.map +1 -1
  193. package/daemon/dist/domain/runtime-adapter.d.ts +9 -0
  194. package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
  195. package/daemon/dist/domain/runtime-adapter.js +2 -0
  196. package/daemon/dist/domain/runtime-adapter.js.map +1 -1
  197. package/daemon/dist/domain/seat-delivery-guard.d.ts +3 -1
  198. package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
  199. package/daemon/dist/domain/seat-delivery-guard.js +8 -5
  200. package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
  201. package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
  202. package/daemon/dist/domain/seat-handover-service.js +20 -2
  203. package/daemon/dist/domain/seat-handover-service.js.map +1 -1
  204. package/daemon/dist/domain/session-transport.d.ts +2 -0
  205. package/daemon/dist/domain/session-transport.d.ts.map +1 -1
  206. package/daemon/dist/domain/session-transport.js +37 -6
  207. package/daemon/dist/domain/session-transport.js.map +1 -1
  208. package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
  209. package/daemon/dist/domain/startup-orchestrator.js +8 -3
  210. package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
  211. package/daemon/dist/domain/team-operations.d.ts +20 -0
  212. package/daemon/dist/domain/team-operations.d.ts.map +1 -0
  213. package/daemon/dist/domain/team-operations.js +23 -0
  214. package/daemon/dist/domain/team-operations.js.map +1 -0
  215. package/daemon/dist/domain/terminal/herdr-adapter.d.ts +12 -2
  216. package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
  217. package/daemon/dist/domain/terminal/herdr-adapter.js +52 -2
  218. package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
  219. package/daemon/dist/domain/terminal/herdr-live-workspace.d.ts +42 -0
  220. package/daemon/dist/domain/terminal/herdr-live-workspace.d.ts.map +1 -0
  221. package/daemon/dist/domain/terminal/herdr-live-workspace.js +118 -0
  222. package/daemon/dist/domain/terminal/herdr-live-workspace.js.map +1 -0
  223. package/daemon/dist/domain/terminal/herdr-sessions.d.ts.map +1 -1
  224. package/daemon/dist/domain/terminal/herdr-sessions.js +3 -0
  225. package/daemon/dist/domain/terminal/herdr-sessions.js.map +1 -1
  226. package/daemon/dist/domain/terminal/rex-adapter.d.ts +3 -0
  227. package/daemon/dist/domain/terminal/rex-adapter.d.ts.map +1 -1
  228. package/daemon/dist/domain/terminal/rex-adapter.js +10 -1
  229. package/daemon/dist/domain/terminal/rex-adapter.js.map +1 -1
  230. package/daemon/dist/domain/terminal/rex-agent-status.d.ts +76 -0
  231. package/daemon/dist/domain/terminal/rex-agent-status.d.ts.map +1 -0
  232. package/daemon/dist/domain/terminal/rex-agent-status.js +168 -0
  233. package/daemon/dist/domain/terminal/rex-agent-status.js.map +1 -0
  234. package/daemon/dist/domain/terminal/terminal-provider.d.ts +12 -1
  235. package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
  236. package/daemon/dist/domain/terminal/terminal-service.d.ts +2 -0
  237. package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
  238. package/daemon/dist/domain/terminal/terminal-service.js +3 -2
  239. package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
  240. package/daemon/dist/domain/types.d.ts +9 -0
  241. package/daemon/dist/domain/types.d.ts.map +1 -1
  242. package/daemon/dist/domain/types.js.map +1 -1
  243. package/daemon/dist/domain/user-settings/settings-browser.d.ts +8 -2
  244. package/daemon/dist/domain/user-settings/settings-browser.d.ts.map +1 -1
  245. package/daemon/dist/domain/user-settings/settings-browser.js +5 -2
  246. package/daemon/dist/domain/user-settings/settings-browser.js.map +1 -1
  247. package/daemon/dist/domain/user-settings/settings-store.d.ts +15 -1
  248. package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
  249. package/daemon/dist/domain/user-settings/settings-store.js +108 -44
  250. package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
  251. package/daemon/dist/domain/workflow-exception-escalation.d.ts.map +1 -1
  252. package/daemon/dist/domain/workflow-exception-escalation.js +4 -2
  253. package/daemon/dist/domain/workflow-exception-escalation.js.map +1 -1
  254. package/daemon/dist/domain/workflow-validator.d.ts.map +1 -1
  255. package/daemon/dist/domain/workflow-validator.js +16 -0
  256. package/daemon/dist/domain/workflow-validator.js.map +1 -1
  257. package/daemon/dist/herdr-live-workspace-surface.d.ts +2 -0
  258. package/daemon/dist/herdr-live-workspace-surface.d.ts.map +1 -0
  259. package/daemon/dist/herdr-live-workspace-surface.js +2 -0
  260. package/daemon/dist/herdr-live-workspace-surface.js.map +1 -0
  261. package/daemon/dist/index.d.ts.map +1 -1
  262. package/daemon/dist/index.js +1 -0
  263. package/daemon/dist/index.js.map +1 -1
  264. package/daemon/dist/routes/attention.d.ts.map +1 -1
  265. package/daemon/dist/routes/attention.js +5 -1
  266. package/daemon/dist/routes/attention.js.map +1 -1
  267. package/daemon/dist/routes/hosts.d.ts.map +1 -1
  268. package/daemon/dist/routes/hosts.js +23 -14
  269. package/daemon/dist/routes/hosts.js.map +1 -1
  270. package/daemon/dist/routes/network.d.ts +7 -3
  271. package/daemon/dist/routes/network.d.ts.map +1 -1
  272. package/daemon/dist/routes/network.js +52 -17
  273. package/daemon/dist/routes/network.js.map +1 -1
  274. package/daemon/dist/routes/queue.d.ts.map +1 -1
  275. package/daemon/dist/routes/queue.js +9 -0
  276. package/daemon/dist/routes/queue.js.map +1 -1
  277. package/daemon/dist/routes/rigspec.js +13 -4
  278. package/daemon/dist/routes/rigspec.js.map +1 -1
  279. package/daemon/dist/routes/sessions.d.ts.map +1 -1
  280. package/daemon/dist/routes/sessions.js +24 -5
  281. package/daemon/dist/routes/sessions.js.map +1 -1
  282. package/daemon/dist/routes/terminal.js +1 -1
  283. package/daemon/dist/routes/terminal.js.map +1 -1
  284. package/daemon/dist/server.d.ts +1 -0
  285. package/daemon/dist/server.d.ts.map +1 -1
  286. package/daemon/dist/server.js +2 -0
  287. package/daemon/dist/server.js.map +1 -1
  288. package/daemon/dist/startup.d.ts.map +1 -1
  289. package/daemon/dist/startup.js +19 -5
  290. package/daemon/dist/startup.js.map +1 -1
  291. package/daemon/dist/tmux-server-start-surface.d.ts +2 -0
  292. package/daemon/dist/tmux-server-start-surface.d.ts.map +1 -0
  293. package/daemon/dist/tmux-server-start-surface.js +2 -0
  294. package/daemon/dist/tmux-server-start-surface.js.map +1 -0
  295. package/daemon/dist/tmux-server-start.d.ts +13 -0
  296. package/daemon/dist/tmux-server-start.d.ts.map +1 -0
  297. package/daemon/dist/tmux-server-start.js +36 -0
  298. package/daemon/dist/tmux-server-start.js.map +1 -0
  299. package/daemon/docs/reference/agent-startup-guide.md +34 -7
  300. package/daemon/docs/reference/agent-state-taxonomy.md +2 -1
  301. package/daemon/docs/reference/daemon-http-clients.md +42 -0
  302. package/daemon/docs/reference/getting-started.md +13 -8
  303. package/daemon/docs/reference/hosted-members.md +29 -3
  304. package/daemon/docs/reference/network-connector.md +76 -5
  305. package/daemon/docs/reference/operation-correlation.md +18 -2
  306. package/daemon/docs/reference/queue-erasure.md +7 -5
  307. package/daemon/docs/reference/quickstart.md +2 -2
  308. package/daemon/docs/reference/rig-spec.md +4 -0
  309. package/daemon/docs/reference/seat-delivery.md +16 -1
  310. package/daemon/docs/reference/terminal-sessions.md +12 -0
  311. package/daemon/docs/reference/tmux-servers.md +8 -2
  312. package/daemon/docs/reference/whats-new.md +153 -15
  313. package/daemon/specs/agents/shared/skills/core/working-with-an-openrig-team/SKILL.md +7 -0
  314. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +27 -11
  315. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/startup/context.md +11 -3
  316. package/dist/build-info.js +3 -3
  317. package/dist/commands/broadcast.js +7 -3
  318. package/dist/commands/broadcast.js.map +1 -1
  319. package/dist/commands/chatroom.d.ts.map +1 -1
  320. package/dist/commands/chatroom.js +8 -3
  321. package/dist/commands/chatroom.js.map +1 -1
  322. package/dist/commands/config.d.ts.map +1 -1
  323. package/dist/commands/config.js +50 -10
  324. package/dist/commands/config.js.map +1 -1
  325. package/dist/commands/daemon.d.ts +0 -4
  326. package/dist/commands/daemon.d.ts.map +1 -1
  327. package/dist/commands/daemon.js +1 -19
  328. package/dist/commands/daemon.js.map +1 -1
  329. package/dist/commands/doctor.js +1 -1
  330. package/dist/commands/doctor.js.map +1 -1
  331. package/dist/commands/down.d.ts.map +1 -1
  332. package/dist/commands/down.js +2 -1
  333. package/dist/commands/down.js.map +1 -1
  334. package/dist/commands/gateway.d.ts.map +1 -1
  335. package/dist/commands/gateway.js +5 -0
  336. package/dist/commands/gateway.js.map +1 -1
  337. package/dist/commands/host.js +2 -2
  338. package/dist/commands/host.js.map +1 -1
  339. package/dist/commands/import.d.ts.map +1 -1
  340. package/dist/commands/import.js +96 -3
  341. package/dist/commands/import.js.map +1 -1
  342. package/dist/commands/network.d.ts.map +1 -1
  343. package/dist/commands/network.js +72 -17
  344. package/dist/commands/network.js.map +1 -1
  345. package/dist/commands/ps.d.ts.map +1 -1
  346. package/dist/commands/ps.js +44 -0
  347. package/dist/commands/ps.js.map +1 -1
  348. package/dist/commands/queue.d.ts.map +1 -1
  349. package/dist/commands/queue.js +61 -3
  350. package/dist/commands/queue.js.map +1 -1
  351. package/dist/commands/roster.d.ts +2 -4
  352. package/dist/commands/roster.d.ts.map +1 -1
  353. package/dist/commands/roster.js +3 -12
  354. package/dist/commands/roster.js.map +1 -1
  355. package/dist/commands/seat.js +2 -2
  356. package/dist/commands/seat.js.map +1 -1
  357. package/dist/commands/send.d.ts +4 -0
  358. package/dist/commands/send.d.ts.map +1 -1
  359. package/dist/commands/send.js +6 -1
  360. package/dist/commands/send.js.map +1 -1
  361. package/dist/commands/setup.js +1 -1
  362. package/dist/commands/setup.js.map +1 -1
  363. package/dist/commands/terminal.d.ts.map +1 -1
  364. package/dist/commands/terminal.js +9 -7
  365. package/dist/commands/terminal.js.map +1 -1
  366. package/dist/config-store.d.ts +14 -1
  367. package/dist/config-store.d.ts.map +1 -1
  368. package/dist/config-store.js +34 -5
  369. package/dist/config-store.js.map +1 -1
  370. package/dist/lib/check-in.d.ts +7 -0
  371. package/dist/lib/check-in.d.ts.map +1 -0
  372. package/dist/lib/check-in.js +13 -0
  373. package/dist/lib/check-in.js.map +1 -0
  374. package/dist/mcp-http.d.ts.map +1 -1
  375. package/dist/mcp-http.js +25 -2
  376. package/dist/mcp-http.js.map +1 -1
  377. package/dist/mcp-server.d.ts +12 -1
  378. package/dist/mcp-server.d.ts.map +1 -1
  379. package/dist/mcp-server.js +185 -57
  380. package/dist/mcp-server.js.map +1 -1
  381. package/dist/person-registration-offer.d.ts +10 -0
  382. package/dist/person-registration-offer.d.ts.map +1 -0
  383. package/dist/person-registration-offer.js +25 -0
  384. package/dist/person-registration-offer.js.map +1 -0
  385. package/dist/terminal-window.d.ts.map +1 -1
  386. package/dist/terminal-window.js +20 -102
  387. package/dist/terminal-window.js.map +1 -1
  388. package/dist/tmux-attachment.d.ts.map +1 -1
  389. package/dist/tmux-attachment.js +3 -1
  390. package/dist/tmux-attachment.js.map +1 -1
  391. package/package.json +1 -1
  392. package/tui/dist/config/pairing.d.ts.map +1 -1
  393. package/tui/dist/config/pairing.js +8 -3
  394. package/tui/dist/config/pairing.js.map +1 -1
  395. package/tui/dist/connected-assistants.d.ts +20 -0
  396. package/tui/dist/connected-assistants.d.ts.map +1 -0
  397. package/tui/dist/connected-assistants.js +51 -0
  398. package/tui/dist/connected-assistants.js.map +1 -0
  399. package/tui/dist/daemon-client.d.ts +8 -0
  400. package/tui/dist/daemon-client.d.ts.map +1 -1
  401. package/tui/dist/daemon-client.js +8 -0
  402. package/tui/dist/daemon-client.js.map +1 -1
  403. package/tui/dist/hydrate.d.ts.map +1 -1
  404. package/tui/dist/hydrate.js +13 -2
  405. package/tui/dist/hydrate.js.map +1 -1
  406. package/tui/dist/render.d.ts.map +1 -1
  407. package/tui/dist/render.js +4 -0
  408. package/tui/dist/render.js.map +1 -1
  409. package/tui/dist/topology/glyphs.d.ts.map +1 -1
  410. package/tui/dist/topology/glyphs.js +4 -0
  411. package/tui/dist/topology/glyphs.js.map +1 -1
  412. package/tui/dist/types.d.ts +11 -0
  413. package/tui/dist/types.d.ts.map +1 -1
@@ -9,7 +9,7 @@ import { planModelAliasNotice } from "../adapters/yolo-mode.js";
9
9
  import { effortPrecedence, readSeatEffort } from "./seat-effort.js";
10
10
  import { accessSync, constants, existsSync, mkdirSync, readFileSync, realpathSync, statSync, writeFileSync } from "node:fs";
11
11
  import { dirname, isAbsolute, join } from "node:path";
12
- import { ensureSeatSkillPlugin, followSeatSkills, hasFollowingSeatSkills, hasSeatSkillRecords, rehydrateSeatSkills, seatSkillPaths, seatSkillPathsForNode, seatCatalogKeptNote, seatSkillReplay, writeSeatSkillCatalog, writeSeatSkillRouter, seatRouterKeptNote } from "./seat-skill-storage.js";
12
+ import { SEAT_SKILLS_BOOTSTRAP_BLOCK_ID, ensureSeatSkillPlugin, followSeatSkills, hasFollowingSeatSkills, hasSeatSkillRecords, rehydrateSeatSkills, seatSkillPaths, seatSkillPathsForNode, seatCatalogKeptNote, seatSkillReplay, writeSeatSkillCatalog, writeSeatSkillRouter, seatRouterKeptNote } from "./seat-skill-storage.js";
13
13
  import { NativePermissionStore } from "./native-permission-store.js";
14
14
  import { readSeatClaudeMcp } from "./claude-mcp.js";
15
15
  import { isLaunchWrapperRuntime, readSeatLaunchWrapper } from "./launch-wrapper.js";
@@ -23,7 +23,7 @@ import { resumeProbeEvidence } from "./native-resume-probe-evidence.js";
23
23
  import { observeClaudeDelivery, observeClaudeResumeLaunch, processArgv, verifyClaudePaneProcess, verifyClaudePaneRuntime, verifyPaneIdleShell } from "./native-process-lineage.js";
24
24
  import { readNativeExecutablePaths } from "./native-process-executable.js";
25
25
  import { reanchorBuiltinStartupFile, reanchorShippedProjectionEntry, withContextEntryFloor } from "./builtin-startup-files.js";
26
- import { applySeatSkillsLineRule, seatGuidance, restoreMissingGuidance, missingGuidanceBlocks, guidanceFileSharedByLink, lstatLinkInfo } from "./restore-guidance.js";
26
+ import { absentGuidanceBlocks, applySeatSkillsLineRule, seatGuidance, restoreMissingGuidance, missingGuidanceBlocks, guidanceFileSharedByLink, lstatLinkInfo } from "./restore-guidance.js";
27
27
  import { decideManagedBlock, managedBlockRecords } from "./managed-block-records.js";
28
28
  import { readFootprintAnswer } from "./footprint-choice.js";
29
29
  import { SettingsStore } from "./user-settings/settings-store.js";
@@ -140,6 +140,9 @@ export function snapshotLaunchOutcome(data, nodeId, runtime, savedRuntime, resum
140
140
  export class RestoreOrchestrator {
141
141
  db;
142
142
  activeRestores = new Set();
143
+ /** #3039: per node, the guidance blocks its resumed launch carried, which the check after the launch doesn't look for in
144
+ * the repository file. */
145
+ launchGuidanceBlocks = new Map();
143
146
  rigRepo;
144
147
  sessionRegistry;
145
148
  eventBus;
@@ -1330,7 +1333,22 @@ export class RestoreOrchestrator {
1330
1333
  }
1331
1334
  catch { /* no column */ }
1332
1335
  }
1336
+ /** #3039: whether this resume's launch carries the seat's guidance, by the adapter's own fresh-launch rule (a Codex
1337
+ * conversation resume). Anything unanswered or unreadable keeps the repository path. */
1338
+ async resumeLaunchCarriesGuidance(adapter, binding) {
1339
+ if (!adapter?.guidanceFileFor)
1340
+ return false;
1341
+ try {
1342
+ const answer = adapter.guidanceFileFor(binding, { resuming: true, resumingConversation: true });
1343
+ return (answer instanceof Promise ? await answer : answer).launchInstructions === true;
1344
+ }
1345
+ catch {
1346
+ return false;
1347
+ }
1348
+ }
1333
1349
  checkRestoredGuidance(result, node, rigId, data, warnings) {
1350
+ const launchCarried = this.launchGuidanceBlocks.get(node.id);
1351
+ this.launchGuidanceBlocks.delete(node.id);
1334
1352
  // Every status with a live session; attention_required keeps its status and gains the disclosure.
1335
1353
  if (!["resumed", "fresh-primed", "fresh", "rebuilt", "attention_required"].includes(result.status))
1336
1354
  return result;
@@ -1360,7 +1378,9 @@ export class RestoreOrchestrator {
1360
1378
  const noted = notes.length > 0 ? { ...result, guidanceNotes: notes } : result;
1361
1379
  let missing;
1362
1380
  try {
1363
- missing = missingGuidanceBlocks(guidance, { exists: existsSync, readFile: (path) => readFileSync(path, "utf-8") });
1381
+ // #3039: a block the resumed launch carried isn't looked for in the repository file; one it couldn't carry still is.
1382
+ missing = missingGuidanceBlocks(guidance, { exists: existsSync, readFile: (path) => readFileSync(path, "utf-8") })
1383
+ .filter((id) => !launchCarried?.has(id));
1364
1384
  }
1365
1385
  catch (err) {
1366
1386
  missing = [`(could not read ${guidance.targetPath}: ${err.message})`];
@@ -1610,6 +1630,16 @@ export class RestoreOrchestrator {
1610
1630
  await this.restoreCurrentActivityHooks(node, activityAdapter, launchResult, warnings, activityHookGaps, launchCwd);
1611
1631
  }
1612
1632
  }
1633
+ // #3039: a pod-aware resume whose saved choice is the repository file asks the adapter, as startup does, whether its
1634
+ // launch carries the guidance (a Codex conversation resume, the fresh launch's rule). Then the saved guidance goes with
1635
+ // the resume as developer instructions (the containment below lets only it through), and the repository AGENTS.md
1636
+ // gets only #2456's refresh of blocks already there. A legacy resume starts its harness before startNode, so it can't.
1637
+ let launchCarriesGuidance = false;
1638
+ this.launchGuidanceBlocks.delete(node.id);
1639
+ if (resumeRequested && resumeToken && launchResult && isPodAware && startupCtx && !startupCtx.guidanceFile) {
1640
+ launchCarriesGuidance = await this.resumeLaunchCarriesGuidance(seatAdapter(opts?.adapters, startupCtx.runtime, session?.communityHarness), { ...launchResult.binding, guidanceFile: null, cwd: launchCwd, codexConfigProfile: this.liveCodexProfile(rigId, node, selected?.nodeId) ?? undefined });
1641
+ }
1642
+ let launchGuidance = null;
1613
1643
  // A narrow exception to the replay containment below: before either native resume path
1614
1644
  // starts the harness, put back only the MISSING managed guidance blocks from the saved
1615
1645
  // startup selection. Ordinary `rig down` strips them; without this the resumed
@@ -1647,6 +1677,31 @@ export class RestoreOrchestrator {
1647
1677
  warnings?.push(`Restore guidance: ${node.logicalId}: ${linked} is now a link, so nothing was put back in ${guidance.targetPath}, which other sessions could read.`);
1648
1678
  guidance = null;
1649
1679
  }
1680
+ if (guidance && guidance.items.length > 0 && launchCarriesGuidance && startupCtx) {
1681
+ // #3039: a block the file doesn't hold at all goes with the launch instead of being put back, when its source reads
1682
+ // now (the writer's own read). Everything else stays with the writer below, as before: a block already there
1683
+ // (refreshed or kept and named), a partial one, a source that's gone or can't be read (gaps), and the seat-skills
1684
+ // line (the person's yes was for that file). So the launch's own placement writes nothing here: each block it gets is
1685
+ // absent from the file. Each goes as an optional startup file, so a read that fails at the launch skips it rather
1686
+ // than stopping the resume, and the check after the launch looks only past the blocks the launch reports it sent.
1687
+ let absent = new Set();
1688
+ try {
1689
+ absent = new Set(absentGuidanceBlocks(guidance, { exists: existsSync, readFile: (path) => readFileSync(path, "utf-8") }));
1690
+ }
1691
+ catch { /* unreadable: the writer below reports it */ }
1692
+ const reads = (path) => { try {
1693
+ readFileSync(path, "utf-8");
1694
+ return true;
1695
+ }
1696
+ catch {
1697
+ return false;
1698
+ } };
1699
+ const carried = guidance.items.filter((item) => absent.has(item.blockId) && !item.unresolved
1700
+ && item.blockId !== SEAT_SKILLS_BOOTSTRAP_BLOCK_ID && reads(item.sourcePath));
1701
+ launchGuidance = carried.map((item) => ({ path: item.blockId, absolutePath: item.sourcePath, ownerRoot: dirname(item.sourcePath),
1702
+ deliveryHint: "guidance_merge", required: false, appliesOn: ["fresh_start", "restore"] }));
1703
+ guidance = { ...guidance, items: guidance.items.filter((item) => !carried.includes(item)) };
1704
+ }
1650
1705
  if (guidance && guidance.items.length > 0) {
1651
1706
  // #2456: a block OpenRig wrote whose source changed since is refreshed too; an edited one, or one with no record, is
1652
1707
  // left as it is and named (the check after the launch carries the names onto the seat's result).
@@ -1787,7 +1842,8 @@ export class RestoreOrchestrator {
1787
1842
  // launches are new histories and keep their replay.
1788
1843
  // One narrow exception: MISSING managed guidance blocks are put back before the harness
1789
1844
  // starts (see restoreMissingGuidance above); existing blocks are still never rewritten, and
1790
- // nothing else is replayed.
1845
+ // nothing else is replayed. #3039: when the resumed launch carries the guidance instead, only that
1846
+ // saved guidance passes, as optional startup files (launchGuidance): no action, skill or other resource.
1791
1847
  const replayContained = resumeRequested && !!resumeToken;
1792
1848
  const startupRuntime = startupCtx?.runtime ?? node.runtime ?? null;
1793
1849
  const startupAdapter = seatAdapter(opts?.adapters, startupRuntime, session?.communityHarness);
@@ -1861,7 +1917,7 @@ export class RestoreOrchestrator {
1861
1917
  const existsFn = opts.fsOps?.exists ?? (() => true);
1862
1918
  const sourceEntries = replayContained && !restoreEnvironmentContext ? [] : startupCtx.projectionEntries.map((e) => reanchorShippedProjectionEntry(e, undefined, existsFn));
1863
1919
  // #261: recognized built-in startup files follow the running install.
1864
- const sourceFiles = replayContained && !restoreEnvironmentContext ? [] : withContextEntryFloor(startupCtx.resolvedStartupFiles.map((f) => reanchorBuiltinStartupFile(f, undefined, undefined, existsFn)));
1920
+ const sourceFiles = replayContained && !restoreEnvironmentContext ? launchGuidance ?? [] : withContextEntryFloor(startupCtx.resolvedStartupFiles.map((f) => reanchorBuiltinStartupFile(f, undefined, undefined, existsFn)));
1865
1921
  const sourceActions = replayContained ? [] : startupCtx.startupActions;
1866
1922
  const filteredEntries = sourceEntries.filter((e) => {
1867
1923
  if (!existsFn(e.absolutePath)) {
@@ -1925,6 +1981,8 @@ export class RestoreOrchestrator {
1925
1981
  ...launchResult.binding,
1926
1982
  // #875: the guidance file this seat's launch recorded; an older snapshot recorded none, so its file stays the rule's.
1927
1983
  guidanceFile: startupCtx.guidanceFile ?? null,
1984
+ // #3039: the resumed launch carries the guidance chosen above, so startup doesn't ask again and the adapter queues it.
1985
+ ...(launchGuidance ? { guidanceLaunchInstructions: true } : {}),
1928
1986
  ...(data.environmentBindingsByNode?.[node.id] ? { environmentRestore: data.environmentBindingsByNode[node.id] } : {}),
1929
1987
  ...(opts?.claudeExecutable ? { claudeExecutable: opts.claudeExecutable } : {}),
1930
1988
  ...(opts?.claudeLaunch ? { claudeLaunch: opts.claudeLaunch } : {}),
@@ -1969,6 +2027,12 @@ export class RestoreOrchestrator {
1969
2027
  ...(selected ? { beforeNativeLaunch: () => selected.beforeNative(launchResult.session.id, launchResult.binding.id) } : {}),
1970
2028
  });
1971
2029
  warnings?.push(...(startupResult.warnings ?? []));
2030
+ // #3039: the blocks the resumed launch actually sent, by the adapter's own record, are the ones the check after the
2031
+ // launch doesn't look for in the repository file.
2032
+ const carriedIds = new Set((launchGuidance ?? []).map((f) => f.path));
2033
+ const sentGuidance = carriedIds.size > 0 && launchResult.binding.tmuxSession ? adapter.launchGuidanceSent?.(launchResult.binding.tmuxSession) : undefined;
2034
+ if (sentGuidance?.length)
2035
+ this.launchGuidanceBlocks.set(node.id, new Set(sentGuidance.filter((id) => carriedIds.has(id))));
1972
2036
  if (startupResult.ok) {
1973
2037
  const nativeContinuityProved = isPodAware
1974
2038
  && resumeRequested