@openrig/cli 0.7.1 → 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 (1005) 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/delegating-work/SKILL.md +1 -1
  6. package/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md +37 -3
  7. package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +90 -9
  8. package/daemon/assets/skills/rigs/SKILL.md +40 -9
  9. package/daemon/context-packs/help/help.md +6 -0
  10. package/daemon/context-packs/help/manifest.yaml +1 -1
  11. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  12. package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +132 -24
  13. package/daemon/context-packs/reference/acp-agents.md +77 -0
  14. package/daemon/context-packs/reference/getting-started.md +84 -10
  15. package/daemon/context-packs/reference/manifest.yaml +6 -3
  16. package/daemon/context-packs/reference/rig-spec.md +179 -6
  17. package/daemon/context-packs/reference/whats-new.md +148 -169
  18. package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
  19. package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
  20. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
  21. package/daemon/context-packs/skills/claude-compaction-restore/SKILL.md +2 -2
  22. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
  23. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  24. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  25. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  26. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  27. package/daemon/context-packs/skills/core/messaging-the-human/SKILL.md +37 -3
  28. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
  29. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  30. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  31. package/daemon/context-packs/skills/core/openrig-herdr/SKILL.md +20 -5
  32. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
  33. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
  34. package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
  35. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
  36. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
  37. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
  38. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
  39. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
  40. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
  41. package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
  42. package/daemon/context-packs/skills/delegating-work/SKILL.md +1 -1
  43. package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
  44. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
  45. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
  46. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
  47. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
  48. package/daemon/context-packs/skills/openrig-user/SKILL.md +90 -9
  49. package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
  50. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
  51. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  52. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  53. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  54. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  55. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  56. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
  57. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  58. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  59. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  60. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  61. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  62. package/daemon/context-packs/skills/process/agent-browser/LICENSE.txt +201 -0
  63. package/daemon/context-packs/skills/process/agent-browser/OPENRIG.md +13 -29
  64. package/daemon/context-packs/skills/process/agent-browser/SKILL.md +8 -8
  65. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +3 -1
  66. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  67. package/daemon/context-packs/skills/process/dogfood/LICENSE.txt +201 -0
  68. package/daemon/context-packs/skills/process/dogfood/SKILL.md +6 -2
  69. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +3 -1
  70. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  71. package/daemon/context-packs/skills/process/systematic-debugging/LICENSE.txt +21 -0
  72. package/daemon/context-packs/skills/process/systematic-debugging/SKILL.md +6 -2
  73. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +3 -1
  74. package/daemon/context-packs/skills/process/systematic-debugging/root-cause-tracing.md +1 -1
  75. package/daemon/context-packs/skills/process/test-driven-development/LICENSE.txt +21 -0
  76. package/daemon/context-packs/skills/process/test-driven-development/SKILL.md +5 -1
  77. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +3 -1
  78. package/daemon/context-packs/skills/process/verification-before-completion/LICENSE.txt +21 -0
  79. package/daemon/context-packs/skills/process/verification-before-completion/SKILL.md +5 -1
  80. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +3 -1
  81. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
  82. package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
  83. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
  84. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
  85. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
  86. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
  87. package/daemon/context-packs/world-example/manifest.yaml +1 -1
  88. package/daemon/context-packs/world-public/manifest.yaml +1 -1
  89. package/daemon/dist/adapters/claude-code-adapter.d.ts +4 -0
  90. package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
  91. package/daemon/dist/adapters/claude-code-adapter.js +46 -17
  92. package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
  93. package/daemon/dist/adapters/claude-resume.d.ts +8 -1
  94. package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
  95. package/daemon/dist/adapters/claude-resume.js +29 -10
  96. package/daemon/dist/adapters/claude-resume.js.map +1 -1
  97. package/daemon/dist/adapters/codex-resume.d.ts +11 -4
  98. package/daemon/dist/adapters/codex-resume.d.ts.map +1 -1
  99. package/daemon/dist/adapters/codex-resume.js +69 -18
  100. package/daemon/dist/adapters/codex-resume.js.map +1 -1
  101. package/daemon/dist/adapters/codex-runtime-adapter.d.ts +53 -13
  102. package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
  103. package/daemon/dist/adapters/codex-runtime-adapter.js +801 -119
  104. package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
  105. package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts +4 -0
  106. package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
  107. package/daemon/dist/adapters/community-harness-runtime-adapter.js +38 -7
  108. package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
  109. package/daemon/dist/adapters/compose-services-adapter.d.ts +16 -0
  110. package/daemon/dist/adapters/compose-services-adapter.d.ts.map +1 -1
  111. package/daemon/dist/adapters/compose-services-adapter.js +46 -2
  112. package/daemon/dist/adapters/compose-services-adapter.js.map +1 -1
  113. package/daemon/dist/adapters/kernel-authority.d.ts +1 -1
  114. package/daemon/dist/adapters/kernel-authority.d.ts.map +1 -1
  115. package/daemon/dist/adapters/kernel-authority.js +13 -2
  116. package/daemon/dist/adapters/kernel-authority.js.map +1 -1
  117. package/daemon/dist/adapters/pi-resume.js +1 -1
  118. package/daemon/dist/adapters/pi-resume.js.map +1 -1
  119. package/daemon/dist/adapters/pi-runner-protocol.d.ts +3 -3
  120. package/daemon/dist/adapters/pi-runner-protocol.js +2 -2
  121. package/daemon/dist/adapters/pi-runner.d.ts +1 -1
  122. package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
  123. package/daemon/dist/adapters/pi-runner.js +24 -17
  124. package/daemon/dist/adapters/pi-runner.js.map +1 -1
  125. package/daemon/dist/adapters/tmux-server.d.ts.map +1 -1
  126. package/daemon/dist/adapters/tmux-server.js +6 -2
  127. package/daemon/dist/adapters/tmux-server.js.map +1 -1
  128. package/daemon/dist/adapters/tmux.d.ts +51 -0
  129. package/daemon/dist/adapters/tmux.d.ts.map +1 -1
  130. package/daemon/dist/adapters/tmux.js +210 -17
  131. package/daemon/dist/adapters/tmux.js.map +1 -1
  132. package/daemon/dist/adapters/yolo-mode.d.ts +7 -0
  133. package/daemon/dist/adapters/yolo-mode.d.ts.map +1 -1
  134. package/daemon/dist/adapters/yolo-mode.js +8 -0
  135. package/daemon/dist/adapters/yolo-mode.js.map +1 -1
  136. package/daemon/dist/attention-surface.d.ts +16 -1
  137. package/daemon/dist/attention-surface.d.ts.map +1 -1
  138. package/daemon/dist/attention-surface.js.map +1 -1
  139. package/daemon/dist/build-info.js +3 -3
  140. package/daemon/dist/codex-auth-surface.d.ts +2 -0
  141. package/daemon/dist/codex-auth-surface.d.ts.map +1 -0
  142. package/daemon/dist/codex-auth-surface.js +2 -0
  143. package/daemon/dist/codex-auth-surface.js.map +1 -0
  144. package/daemon/dist/context-pack-taxonomy-surface.js +1 -1
  145. package/daemon/dist/context-pack-taxonomy-surface.js.map +1 -1
  146. package/daemon/dist/daemon-db-path.d.ts.map +1 -1
  147. package/daemon/dist/daemon-db-path.js +45 -12
  148. package/daemon/dist/daemon-db-path.js.map +1 -1
  149. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  150. package/daemon/dist/db/all-migrations.js +14 -0
  151. package/daemon/dist/db/all-migrations.js.map +1 -1
  152. package/daemon/dist/db/migrations/132_seat_runtime_switches.d.ts +10 -0
  153. package/daemon/dist/db/migrations/132_seat_runtime_switches.d.ts.map +1 -0
  154. package/daemon/dist/db/migrations/132_seat_runtime_switches.js +46 -0
  155. package/daemon/dist/db/migrations/132_seat_runtime_switches.js.map +1 -0
  156. package/daemon/dist/db/migrations/133_stream_reader_actions.d.ts +8 -0
  157. package/daemon/dist/db/migrations/133_stream_reader_actions.d.ts.map +1 -0
  158. package/daemon/dist/db/migrations/133_stream_reader_actions.js +25 -0
  159. package/daemon/dist/db/migrations/133_stream_reader_actions.js.map +1 -0
  160. package/daemon/dist/db/migrations/134_claude_token_readings.d.ts +3 -0
  161. package/daemon/dist/db/migrations/134_claude_token_readings.d.ts.map +1 -0
  162. package/daemon/dist/db/migrations/134_claude_token_readings.js +21 -0
  163. package/daemon/dist/db/migrations/134_claude_token_readings.js.map +1 -0
  164. package/daemon/dist/db/migrations/136_node_launch_recipe.d.ts +9 -0
  165. package/daemon/dist/db/migrations/136_node_launch_recipe.d.ts.map +1 -0
  166. package/daemon/dist/db/migrations/136_node_launch_recipe.js +11 -0
  167. package/daemon/dist/db/migrations/136_node_launch_recipe.js.map +1 -0
  168. package/daemon/dist/db/migrations/137_node_codex_permissions.d.ts +3 -0
  169. package/daemon/dist/db/migrations/137_node_codex_permissions.d.ts.map +1 -0
  170. package/daemon/dist/db/migrations/137_node_codex_permissions.js +7 -0
  171. package/daemon/dist/db/migrations/137_node_codex_permissions.js.map +1 -0
  172. package/daemon/dist/db/migrations/138_node_claude_token_ref.d.ts +3 -0
  173. package/daemon/dist/db/migrations/138_node_claude_token_ref.d.ts.map +1 -0
  174. package/daemon/dist/db/migrations/138_node_claude_token_ref.js +8 -0
  175. package/daemon/dist/db/migrations/138_node_claude_token_ref.js.map +1 -0
  176. package/daemon/dist/db/migrations/139_node_claude_permissions.d.ts +3 -0
  177. package/daemon/dist/db/migrations/139_node_claude_permissions.d.ts.map +1 -0
  178. package/daemon/dist/db/migrations/139_node_claude_permissions.js +5 -0
  179. package/daemon/dist/db/migrations/139_node_claude_permissions.js.map +1 -0
  180. package/daemon/dist/domain/active-occupant.js +1 -1
  181. package/daemon/dist/domain/active-occupant.js.map +1 -1
  182. package/daemon/dist/domain/agent-activity-store.d.ts +1 -1
  183. package/daemon/dist/domain/agent-activity-store.js +2 -2
  184. package/daemon/dist/domain/agent-activity-store.js.map +1 -1
  185. package/daemon/dist/domain/agent-resolver.js +1 -1
  186. package/daemon/dist/domain/agent-resolver.js.map +1 -1
  187. package/daemon/dist/domain/bind-plan.js +1 -1
  188. package/daemon/dist/domain/bind-plan.js.map +1 -1
  189. package/daemon/dist/domain/bootstrap-orchestrator.d.ts.map +1 -1
  190. package/daemon/dist/domain/bootstrap-orchestrator.js +16 -1
  191. package/daemon/dist/domain/bootstrap-orchestrator.js.map +1 -1
  192. package/daemon/dist/domain/bundle-skills-router.js +2 -2
  193. package/daemon/dist/domain/bundle-skills-router.js.map +1 -1
  194. package/daemon/dist/domain/claim-service.js +1 -1
  195. package/daemon/dist/domain/claim-service.js.map +1 -1
  196. package/daemon/dist/domain/claude-compaction-enforcer.d.ts +24 -1
  197. package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
  198. package/daemon/dist/domain/claude-compaction-enforcer.js +70 -16
  199. package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
  200. package/daemon/dist/domain/claude-credential-precedence.d.ts +33 -0
  201. package/daemon/dist/domain/claude-credential-precedence.d.ts.map +1 -0
  202. package/daemon/dist/domain/claude-credential-precedence.js +62 -0
  203. package/daemon/dist/domain/claude-credential-precedence.js.map +1 -0
  204. package/daemon/dist/domain/claude-managed-launch.d.ts +43 -4
  205. package/daemon/dist/domain/claude-managed-launch.d.ts.map +1 -1
  206. package/daemon/dist/domain/claude-managed-launch.js +129 -27
  207. package/daemon/dist/domain/claude-managed-launch.js.map +1 -1
  208. package/daemon/dist/domain/claude-permission-rules.d.ts +10 -0
  209. package/daemon/dist/domain/claude-permission-rules.d.ts.map +1 -0
  210. package/daemon/dist/domain/claude-permission-rules.js +41 -0
  211. package/daemon/dist/domain/claude-permission-rules.js.map +1 -0
  212. package/daemon/dist/domain/claude-seat-token.d.ts +30 -0
  213. package/daemon/dist/domain/claude-seat-token.d.ts.map +1 -0
  214. package/daemon/dist/domain/claude-seat-token.js +78 -0
  215. package/daemon/dist/domain/claude-seat-token.js.map +1 -0
  216. package/daemon/dist/domain/codex-auth.d.ts +148 -0
  217. package/daemon/dist/domain/codex-auth.d.ts.map +1 -0
  218. package/daemon/dist/domain/codex-auth.js +506 -0
  219. package/daemon/dist/domain/codex-auth.js.map +1 -0
  220. package/daemon/dist/domain/codex-daemon-support.d.ts +2 -1
  221. package/daemon/dist/domain/codex-daemon-support.d.ts.map +1 -1
  222. package/daemon/dist/domain/codex-daemon-support.js +3 -2
  223. package/daemon/dist/domain/codex-daemon-support.js.map +1 -1
  224. package/daemon/dist/domain/codex-git-add-dirs.d.ts +1 -1
  225. package/daemon/dist/domain/codex-git-add-dirs.d.ts.map +1 -1
  226. package/daemon/dist/domain/codex-member-permissions.d.ts +56 -0
  227. package/daemon/dist/domain/codex-member-permissions.d.ts.map +1 -0
  228. package/daemon/dist/domain/codex-member-permissions.js +140 -0
  229. package/daemon/dist/domain/codex-member-permissions.js.map +1 -0
  230. package/daemon/dist/domain/codex-network-default.d.ts +2 -1
  231. package/daemon/dist/domain/codex-network-default.d.ts.map +1 -1
  232. package/daemon/dist/domain/codex-network-default.js +3 -2
  233. package/daemon/dist/domain/codex-network-default.js.map +1 -1
  234. package/daemon/dist/domain/codex-owned-plugin-trust.d.ts.map +1 -1
  235. package/daemon/dist/domain/codex-owned-plugin-trust.js +2 -1
  236. package/daemon/dist/domain/codex-owned-plugin-trust.js.map +1 -1
  237. package/daemon/dist/domain/codex-team-workspace.d.ts +5 -0
  238. package/daemon/dist/domain/codex-team-workspace.d.ts.map +1 -1
  239. package/daemon/dist/domain/codex-team-workspace.js +37 -0
  240. package/daemon/dist/domain/codex-team-workspace.js.map +1 -1
  241. package/daemon/dist/domain/community-harness-first-input.d.ts +7 -0
  242. package/daemon/dist/domain/community-harness-first-input.d.ts.map +1 -0
  243. package/daemon/dist/domain/community-harness-first-input.js +16 -0
  244. package/daemon/dist/domain/community-harness-first-input.js.map +1 -0
  245. package/daemon/dist/domain/community-harness-presets.d.ts +2 -0
  246. package/daemon/dist/domain/community-harness-presets.d.ts.map +1 -1
  247. package/daemon/dist/domain/community-harness-presets.js +4 -2
  248. package/daemon/dist/domain/community-harness-presets.js.map +1 -1
  249. package/daemon/dist/domain/compaction-restore-notice.d.ts +6 -0
  250. package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -0
  251. package/daemon/dist/domain/compaction-restore-notice.js +27 -0
  252. package/daemon/dist/domain/compaction-restore-notice.js.map +1 -0
  253. package/daemon/dist/domain/context-packs/context-pack-library-service.js +2 -2
  254. package/daemon/dist/domain/context-packs/context-pack-library-service.js.map +1 -1
  255. package/daemon/dist/domain/context-packs/seat-recap-store.d.ts +14 -0
  256. package/daemon/dist/domain/context-packs/seat-recap-store.d.ts.map +1 -1
  257. package/daemon/dist/domain/context-packs/seat-recap-store.js +57 -1
  258. package/daemon/dist/domain/context-packs/seat-recap-store.js.map +1 -1
  259. package/daemon/dist/domain/context-usage-store.d.ts.map +1 -1
  260. package/daemon/dist/domain/context-usage-store.js +6 -1
  261. package/daemon/dist/domain/context-usage-store.js.map +1 -1
  262. package/daemon/dist/domain/current-work.d.ts +15 -4
  263. package/daemon/dist/domain/current-work.d.ts.map +1 -1
  264. package/daemon/dist/domain/current-work.js +26 -13
  265. package/daemon/dist/domain/current-work.js.map +1 -1
  266. package/daemon/dist/domain/execution-candidate-reader.d.ts +16 -0
  267. package/daemon/dist/domain/execution-candidate-reader.d.ts.map +1 -0
  268. package/daemon/dist/domain/execution-candidate-reader.js +77 -0
  269. package/daemon/dist/domain/execution-candidate-reader.js.map +1 -0
  270. package/daemon/dist/domain/execution-view.d.ts.map +1 -1
  271. package/daemon/dist/domain/execution-view.js +21 -8
  272. package/daemon/dist/domain/execution-view.js.map +1 -1
  273. package/daemon/dist/domain/feed-perspective.d.ts +14 -0
  274. package/daemon/dist/domain/feed-perspective.d.ts.map +1 -0
  275. package/daemon/dist/domain/feed-perspective.js +36 -0
  276. package/daemon/dist/domain/feed-perspective.js.map +1 -0
  277. package/daemon/dist/domain/gateway/channel-operations.d.ts +1 -1
  278. package/daemon/dist/domain/gateway/channel-operations.d.ts.map +1 -1
  279. package/daemon/dist/domain/gateway/human-registry.d.ts +11 -4
  280. package/daemon/dist/domain/gateway/human-registry.d.ts.map +1 -1
  281. package/daemon/dist/domain/gateway/human-registry.js +36 -5
  282. package/daemon/dist/domain/gateway/human-registry.js.map +1 -1
  283. package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts.map +1 -1
  284. package/daemon/dist/domain/gateway/operator-delivery-engine.js +8 -3
  285. package/daemon/dist/domain/gateway/operator-delivery-engine.js.map +1 -1
  286. package/daemon/dist/domain/gateway/participants.d.ts +180 -0
  287. package/daemon/dist/domain/gateway/participants.d.ts.map +1 -0
  288. package/daemon/dist/domain/gateway/participants.js +434 -0
  289. package/daemon/dist/domain/gateway/participants.js.map +1 -0
  290. package/daemon/dist/domain/gateway/slack/inbound-admission.d.ts +2 -2
  291. package/daemon/dist/domain/gateway/slack/inbound-admission.d.ts.map +1 -1
  292. package/daemon/dist/domain/gateway/slack/inbound-admission.js +73 -6
  293. package/daemon/dist/domain/gateway/slack/inbound-admission.js.map +1 -1
  294. package/daemon/dist/domain/gateway/slack/inbound.d.ts +19 -1
  295. package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
  296. package/daemon/dist/domain/gateway/slack/inbound.js +31 -14
  297. package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
  298. package/daemon/dist/domain/gateway/slack/message.d.ts +5 -1
  299. package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
  300. package/daemon/dist/domain/gateway/slack/message.js +25 -15
  301. package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
  302. package/daemon/dist/domain/gateway/slack/open-asks.d.ts +50 -0
  303. package/daemon/dist/domain/gateway/slack/open-asks.d.ts.map +1 -0
  304. package/daemon/dist/domain/gateway/slack/open-asks.js +215 -0
  305. package/daemon/dist/domain/gateway/slack/open-asks.js.map +1 -0
  306. package/daemon/dist/domain/gateway/slack/outbound-driver.d.ts +2 -0
  307. package/daemon/dist/domain/gateway/slack/outbound-driver.d.ts.map +1 -1
  308. package/daemon/dist/domain/gateway/slack/outbound-driver.js +1 -0
  309. package/daemon/dist/domain/gateway/slack/outbound-driver.js.map +1 -1
  310. package/daemon/dist/domain/gateway/slack/queue-access.d.ts +15 -1
  311. package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
  312. package/daemon/dist/domain/gateway/slack/queue-access.js +98 -29
  313. package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
  314. package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
  315. package/daemon/dist/domain/gateway/slack/slack-delivery.js +1 -0
  316. package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
  317. package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
  318. package/daemon/dist/domain/gateway/slack/slack-subsystem.js +60 -2
  319. package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
  320. package/daemon/dist/domain/gateway/slack/state-store.d.ts +3 -0
  321. package/daemon/dist/domain/gateway/slack/state-store.d.ts.map +1 -1
  322. package/daemon/dist/domain/gateway/slack/state-store.js +18 -0
  323. package/daemon/dist/domain/gateway/slack/state-store.js.map +1 -1
  324. package/daemon/dist/domain/hot-potato-enforcer.d.ts +1 -1
  325. package/daemon/dist/domain/managed-restore-read-access.d.ts +20 -0
  326. package/daemon/dist/domain/managed-restore-read-access.d.ts.map +1 -0
  327. package/daemon/dist/domain/managed-restore-read-access.js +77 -0
  328. package/daemon/dist/domain/managed-restore-read-access.js.map +1 -0
  329. package/daemon/dist/domain/markdown-address.d.ts.map +1 -1
  330. package/daemon/dist/domain/markdown-address.js +21 -2
  331. package/daemon/dist/domain/markdown-address.js.map +1 -1
  332. package/daemon/dist/domain/mission-control/mission-control-read-layer.d.ts.map +1 -1
  333. package/daemon/dist/domain/mission-control/mission-control-read-layer.js +3 -1
  334. package/daemon/dist/domain/mission-control/mission-control-read-layer.js.map +1 -1
  335. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts +19 -3
  336. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
  337. package/daemon/dist/domain/mission-control/mission-control-write-contract.js +72 -21
  338. package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
  339. package/daemon/dist/domain/model-divergence/model-divergence-monitor.d.ts.map +1 -1
  340. package/daemon/dist/domain/model-divergence/model-divergence-monitor.js +18 -1
  341. package/daemon/dist/domain/model-divergence/model-divergence-monitor.js.map +1 -1
  342. package/daemon/dist/domain/native-permission-store.d.ts +8 -2
  343. package/daemon/dist/domain/native-permission-store.d.ts.map +1 -1
  344. package/daemon/dist/domain/native-permission-store.js +26 -8
  345. package/daemon/dist/domain/native-permission-store.js.map +1 -1
  346. package/daemon/dist/domain/native-resume-probe.d.ts +11 -0
  347. package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
  348. package/daemon/dist/domain/native-resume-probe.js +199 -37
  349. package/daemon/dist/domain/native-resume-probe.js.map +1 -1
  350. package/daemon/dist/domain/node-inventory.d.ts +5 -1
  351. package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
  352. package/daemon/dist/domain/node-inventory.js +18 -0
  353. package/daemon/dist/domain/node-inventory.js.map +1 -1
  354. package/daemon/dist/domain/node-launcher.d.ts +11 -0
  355. package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
  356. package/daemon/dist/domain/node-launcher.js +41 -6
  357. package/daemon/dist/domain/node-launcher.js.map +1 -1
  358. package/daemon/dist/domain/parent-session-env.d.ts +1 -1
  359. package/daemon/dist/domain/parent-session-env.d.ts.map +1 -1
  360. package/daemon/dist/domain/parent-session-env.js +3 -1
  361. package/daemon/dist/domain/parent-session-env.js.map +1 -1
  362. package/daemon/dist/domain/parked-query.d.ts +3 -0
  363. package/daemon/dist/domain/parked-query.d.ts.map +1 -1
  364. package/daemon/dist/domain/parked-query.js +1 -0
  365. package/daemon/dist/domain/parked-query.js.map +1 -1
  366. package/daemon/dist/domain/permission-account.d.ts +3 -0
  367. package/daemon/dist/domain/permission-account.d.ts.map +1 -1
  368. package/daemon/dist/domain/permission-account.js +60 -11
  369. package/daemon/dist/domain/permission-account.js.map +1 -1
  370. package/daemon/dist/domain/permission-drift-observer.js +1 -1
  371. package/daemon/dist/domain/permission-drift-observer.js.map +1 -1
  372. package/daemon/dist/domain/policies/delivery-digest-flush.d.ts +6 -2
  373. package/daemon/dist/domain/policies/delivery-digest-flush.d.ts.map +1 -1
  374. package/daemon/dist/domain/policies/delivery-digest-flush.js +34 -9
  375. package/daemon/dist/domain/policies/delivery-digest-flush.js.map +1 -1
  376. package/daemon/dist/domain/policies/parked-owner-consumer.d.ts +8 -0
  377. package/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -1
  378. package/daemon/dist/domain/policies/parked-owner-consumer.js +15 -1
  379. package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
  380. package/daemon/dist/domain/policies/quiet-release.d.ts +14 -0
  381. package/daemon/dist/domain/policies/quiet-release.d.ts.map +1 -1
  382. package/daemon/dist/domain/policies/quiet-release.js +13 -2
  383. package/daemon/dist/domain/policies/quiet-release.js.map +1 -1
  384. package/daemon/dist/domain/profile-resolution-worker.d.ts +1 -1
  385. package/daemon/dist/domain/profile-resolution-worker.d.ts.map +1 -1
  386. package/daemon/dist/domain/profile-resolution-worker.js +5 -5
  387. package/daemon/dist/domain/profile-resolution-worker.js.map +1 -1
  388. package/daemon/dist/domain/proof/judgments.d.ts +7 -4
  389. package/daemon/dist/domain/proof/judgments.d.ts.map +1 -1
  390. package/daemon/dist/domain/proof/judgments.js +12 -8
  391. package/daemon/dist/domain/proof/judgments.js.map +1 -1
  392. package/daemon/dist/domain/proof/source-watch.d.ts +6 -1
  393. package/daemon/dist/domain/proof/source-watch.d.ts.map +1 -1
  394. package/daemon/dist/domain/proof/source-watch.js +241 -35
  395. package/daemon/dist/domain/proof/source-watch.js.map +1 -1
  396. package/daemon/dist/domain/provider/claude-auth-status-reader.d.ts +12 -0
  397. package/daemon/dist/domain/provider/claude-auth-status-reader.d.ts.map +1 -1
  398. package/daemon/dist/domain/provider/claude-auth-status-reader.js +4 -4
  399. package/daemon/dist/domain/provider/claude-auth-status-reader.js.map +1 -1
  400. package/daemon/dist/domain/provider/claude-seat-switch.d.ts +32 -0
  401. package/daemon/dist/domain/provider/claude-seat-switch.d.ts.map +1 -0
  402. package/daemon/dist/domain/provider/claude-seat-switch.js +136 -0
  403. package/daemon/dist/domain/provider/claude-seat-switch.js.map +1 -0
  404. package/daemon/dist/domain/provider/claude-token-usage.d.ts +34 -0
  405. package/daemon/dist/domain/provider/claude-token-usage.d.ts.map +1 -0
  406. package/daemon/dist/domain/provider/claude-token-usage.js +168 -0
  407. package/daemon/dist/domain/provider/claude-token-usage.js.map +1 -0
  408. package/daemon/dist/domain/provider/provider-account-readings.d.ts +7 -6
  409. package/daemon/dist/domain/provider/provider-account-readings.d.ts.map +1 -1
  410. package/daemon/dist/domain/provider/provider-account-readings.js +31 -10
  411. package/daemon/dist/domain/provider/provider-account-readings.js.map +1 -1
  412. package/daemon/dist/domain/provider/provider-collect.d.ts +3 -0
  413. package/daemon/dist/domain/provider/provider-collect.d.ts.map +1 -1
  414. package/daemon/dist/domain/provider/provider-collect.js +3 -2
  415. package/daemon/dist/domain/provider/provider-collect.js.map +1 -1
  416. package/daemon/dist/domain/provider/provider-seat-accounts.d.ts +1 -1
  417. package/daemon/dist/domain/provider/provider-seat-accounts.d.ts.map +1 -1
  418. package/daemon/dist/domain/provider/provider-seat-accounts.js +29 -2
  419. package/daemon/dist/domain/provider/provider-seat-accounts.js.map +1 -1
  420. package/daemon/dist/domain/provider/provider-service-impl.d.ts +38 -4
  421. package/daemon/dist/domain/provider/provider-service-impl.d.ts.map +1 -1
  422. package/daemon/dist/domain/provider/provider-service-impl.js +147 -5
  423. package/daemon/dist/domain/provider/provider-service-impl.js.map +1 -1
  424. package/daemon/dist/domain/provider/provider-service.d.ts +109 -4
  425. package/daemon/dist/domain/provider/provider-service.d.ts.map +1 -1
  426. package/daemon/dist/domain/provider/provider-signals.d.ts +3 -0
  427. package/daemon/dist/domain/provider/provider-signals.d.ts.map +1 -1
  428. package/daemon/dist/domain/provider/provider-signals.js +7 -2
  429. package/daemon/dist/domain/provider/provider-signals.js.map +1 -1
  430. package/daemon/dist/domain/provider/provider-types.d.ts +61 -5
  431. package/daemon/dist/domain/provider/provider-types.d.ts.map +1 -1
  432. package/daemon/dist/domain/provider/reactive-tap.d.ts +4 -0
  433. package/daemon/dist/domain/provider/reactive-tap.d.ts.map +1 -1
  434. package/daemon/dist/domain/provider/reactive-tap.js +3 -0
  435. package/daemon/dist/domain/provider/reactive-tap.js.map +1 -1
  436. package/daemon/dist/domain/provider/usage-across-hosts.d.ts.map +1 -1
  437. package/daemon/dist/domain/provider/usage-across-hosts.js +8 -2
  438. package/daemon/dist/domain/provider/usage-across-hosts.js.map +1 -1
  439. package/daemon/dist/domain/provider/usage-windows.d.ts +2 -0
  440. package/daemon/dist/domain/provider/usage-windows.d.ts.map +1 -1
  441. package/daemon/dist/domain/provider/usage-windows.js +4 -0
  442. package/daemon/dist/domain/provider/usage-windows.js.map +1 -1
  443. package/daemon/dist/domain/queue-destination-check.d.ts +5 -0
  444. package/daemon/dist/domain/queue-destination-check.d.ts.map +1 -1
  445. package/daemon/dist/domain/queue-destination-check.js +5 -1
  446. package/daemon/dist/domain/queue-destination-check.js.map +1 -1
  447. package/daemon/dist/domain/queue-owner.d.ts +9 -0
  448. package/daemon/dist/domain/queue-owner.d.ts.map +1 -1
  449. package/daemon/dist/domain/queue-owner.js +28 -0
  450. package/daemon/dist/domain/queue-owner.js.map +1 -1
  451. package/daemon/dist/domain/queue-repository.d.ts +41 -8
  452. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  453. package/daemon/dist/domain/queue-repository.js +143 -33
  454. package/daemon/dist/domain/queue-repository.js.map +1 -1
  455. package/daemon/dist/domain/queue-retention.d.ts +1 -1
  456. package/daemon/dist/domain/queue-retention.d.ts.map +1 -1
  457. package/daemon/dist/domain/queue-retention.js +6 -1
  458. package/daemon/dist/domain/queue-retention.js.map +1 -1
  459. package/daemon/dist/domain/queue-stuck-sweep.d.ts +14 -3
  460. package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
  461. package/daemon/dist/domain/queue-stuck-sweep.js +50 -8
  462. package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
  463. package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
  464. package/daemon/dist/domain/queue-wake-ladder.js +90 -28
  465. package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
  466. package/daemon/dist/domain/queue-wake-repository.d.ts +3 -0
  467. package/daemon/dist/domain/queue-wake-repository.d.ts.map +1 -1
  468. package/daemon/dist/domain/queue-wake-repository.js +5 -1
  469. package/daemon/dist/domain/queue-wake-repository.js.map +1 -1
  470. package/daemon/dist/domain/restore-orchestrator.d.ts +30 -1
  471. package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
  472. package/daemon/dist/domain/restore-orchestrator.js +132 -14
  473. package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
  474. package/daemon/dist/domain/resume-metadata-refresher.d.ts +11 -2
  475. package/daemon/dist/domain/resume-metadata-refresher.d.ts.map +1 -1
  476. package/daemon/dist/domain/resume-metadata-refresher.js +32 -14
  477. package/daemon/dist/domain/resume-metadata-refresher.js.map +1 -1
  478. package/daemon/dist/domain/resume-token-capture.d.ts +5 -1
  479. package/daemon/dist/domain/resume-token-capture.d.ts.map +1 -1
  480. package/daemon/dist/domain/resume-token-capture.js +3 -1
  481. package/daemon/dist/domain/resume-token-capture.js.map +1 -1
  482. package/daemon/dist/domain/review/compose.js +1 -1
  483. package/daemon/dist/domain/review/compose.js.map +1 -1
  484. package/daemon/dist/domain/review/gather.js +1 -1
  485. package/daemon/dist/domain/review/gather.js.map +1 -1
  486. package/daemon/dist/domain/rig-expansion-service.d.ts.map +1 -1
  487. package/daemon/dist/domain/rig-expansion-service.js +2 -0
  488. package/daemon/dist/domain/rig-expansion-service.js.map +1 -1
  489. package/daemon/dist/domain/rig-repository.d.ts +20 -2
  490. package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
  491. package/daemon/dist/domain/rig-repository.js +262 -2
  492. package/daemon/dist/domain/rig-repository.js.map +1 -1
  493. package/daemon/dist/domain/rig-teardown.d.ts +4 -1
  494. package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
  495. package/daemon/dist/domain/rig-teardown.js +6 -1
  496. package/daemon/dist/domain/rig-teardown.js.map +1 -1
  497. package/daemon/dist/domain/rigspec-codec.d.ts.map +1 -1
  498. package/daemon/dist/domain/rigspec-codec.js +8 -0
  499. package/daemon/dist/domain/rigspec-codec.js.map +1 -1
  500. package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
  501. package/daemon/dist/domain/rigspec-exporter.js +19 -1
  502. package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
  503. package/daemon/dist/domain/rigspec-instantiator.d.ts +43 -1
  504. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  505. package/daemon/dist/domain/rigspec-instantiator.js +321 -138
  506. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  507. package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
  508. package/daemon/dist/domain/rigspec-schema.js +47 -1
  509. package/daemon/dist/domain/rigspec-schema.js.map +1 -1
  510. package/daemon/dist/domain/running-name-guard.d.ts.map +1 -1
  511. package/daemon/dist/domain/running-name-guard.js +2 -1
  512. package/daemon/dist/domain/running-name-guard.js.map +1 -1
  513. package/daemon/dist/domain/runtime-adapter.d.ts +19 -1
  514. package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
  515. package/daemon/dist/domain/runtime-adapter.js +2 -0
  516. package/daemon/dist/domain/runtime-adapter.js.map +1 -1
  517. package/daemon/dist/domain/runtime-switch-materials.d.ts +77 -0
  518. package/daemon/dist/domain/runtime-switch-materials.d.ts.map +1 -0
  519. package/daemon/dist/domain/runtime-switch-materials.js +253 -0
  520. package/daemon/dist/domain/runtime-switch-materials.js.map +1 -0
  521. package/daemon/dist/domain/scope/dot-id.js +2 -2
  522. package/daemon/dist/domain/scope/dot-id.js.map +1 -1
  523. package/daemon/dist/domain/scope/scaffold-placeholder.d.ts +1 -1
  524. package/daemon/dist/domain/scope/scaffold-placeholder.js +1 -1
  525. package/daemon/dist/domain/scope/scope-approve.d.ts +1 -1
  526. package/daemon/dist/domain/scope/scope-audit.js +1 -1
  527. package/daemon/dist/domain/scope/scope-audit.js.map +1 -1
  528. package/daemon/dist/domain/scope/types.d.ts.map +1 -1
  529. package/daemon/dist/domain/scope/types.js +2 -3
  530. package/daemon/dist/domain/scope/types.js.map +1 -1
  531. package/daemon/dist/domain/seat-activity-service.d.ts +4 -0
  532. package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -1
  533. package/daemon/dist/domain/seat-activity-service.js +17 -0
  534. package/daemon/dist/domain/seat-activity-service.js.map +1 -1
  535. package/daemon/dist/domain/seat-attention-reconciler.d.ts +8 -2
  536. package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
  537. package/daemon/dist/domain/seat-attention-reconciler.js +31 -2
  538. package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
  539. package/daemon/dist/domain/seat-handover-service.d.ts +1 -1
  540. package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
  541. package/daemon/dist/domain/seat-handover-service.js +7 -3
  542. package/daemon/dist/domain/seat-handover-service.js.map +1 -1
  543. package/daemon/dist/domain/seat-launch-environment.d.ts +5 -0
  544. package/daemon/dist/domain/seat-launch-environment.d.ts.map +1 -1
  545. package/daemon/dist/domain/seat-launch-environment.js +8 -4
  546. package/daemon/dist/domain/seat-launch-environment.js.map +1 -1
  547. package/daemon/dist/domain/seat-lifecycle-service.d.ts +42 -11
  548. package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
  549. package/daemon/dist/domain/seat-lifecycle-service.js +210 -23
  550. package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
  551. package/daemon/dist/domain/seat-restart-in-place.d.ts +11 -4
  552. package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
  553. package/daemon/dist/domain/seat-restart-in-place.js +29 -9
  554. package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
  555. package/daemon/dist/domain/seat-runtime-dir.d.ts +17 -0
  556. package/daemon/dist/domain/seat-runtime-dir.d.ts.map +1 -0
  557. package/daemon/dist/domain/seat-runtime-dir.js +27 -0
  558. package/daemon/dist/domain/seat-runtime-dir.js.map +1 -0
  559. package/daemon/dist/domain/seat-runtime-home.d.ts +42 -0
  560. package/daemon/dist/domain/seat-runtime-home.d.ts.map +1 -0
  561. package/daemon/dist/domain/seat-runtime-home.js +89 -0
  562. package/daemon/dist/domain/seat-runtime-home.js.map +1 -0
  563. package/daemon/dist/domain/seat-runtime-switch-service.d.ts +227 -0
  564. package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -0
  565. package/daemon/dist/domain/seat-runtime-switch-service.js +641 -0
  566. package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -0
  567. package/daemon/dist/domain/seat-skills-pointer.d.ts +5 -0
  568. package/daemon/dist/domain/seat-skills-pointer.d.ts.map +1 -0
  569. package/daemon/dist/domain/seat-skills-pointer.js +15 -0
  570. package/daemon/dist/domain/seat-skills-pointer.js.map +1 -0
  571. package/daemon/dist/domain/seat-status-service.d.ts +32 -0
  572. package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
  573. package/daemon/dist/domain/seat-status-service.js +55 -0
  574. package/daemon/dist/domain/seat-status-service.js.map +1 -1
  575. package/daemon/dist/domain/seat-structural-activity-service.d.ts +3 -0
  576. package/daemon/dist/domain/seat-structural-activity-service.d.ts.map +1 -1
  577. package/daemon/dist/domain/seat-structural-activity-service.js +7 -1
  578. package/daemon/dist/domain/seat-structural-activity-service.js.map +1 -1
  579. package/daemon/dist/domain/service-orchestrator.d.ts +7 -0
  580. package/daemon/dist/domain/service-orchestrator.d.ts.map +1 -1
  581. package/daemon/dist/domain/service-orchestrator.js +4 -0
  582. package/daemon/dist/domain/service-orchestrator.js.map +1 -1
  583. package/daemon/dist/domain/session-registry.d.ts +2 -0
  584. package/daemon/dist/domain/session-registry.d.ts.map +1 -1
  585. package/daemon/dist/domain/session-registry.js +3 -1
  586. package/daemon/dist/domain/session-registry.js.map +1 -1
  587. package/daemon/dist/domain/session-transport.d.ts +62 -2
  588. package/daemon/dist/domain/session-transport.d.ts.map +1 -1
  589. package/daemon/dist/domain/session-transport.js +417 -67
  590. package/daemon/dist/domain/session-transport.js.map +1 -1
  591. package/daemon/dist/domain/skill-library-discovery.js +2 -2
  592. package/daemon/dist/domain/skill-library-discovery.js.map +1 -1
  593. package/daemon/dist/domain/slices/slice-indexer.d.ts +4 -4
  594. package/daemon/dist/domain/slices/slice-indexer.js +17 -17
  595. package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
  596. package/daemon/dist/domain/snapshot-capture.d.ts +4 -1
  597. package/daemon/dist/domain/snapshot-capture.d.ts.map +1 -1
  598. package/daemon/dist/domain/snapshot-capture.js +4 -1
  599. package/daemon/dist/domain/snapshot-capture.js.map +1 -1
  600. package/daemon/dist/domain/snapshot-repository.d.ts +4 -3
  601. package/daemon/dist/domain/snapshot-repository.d.ts.map +1 -1
  602. package/daemon/dist/domain/snapshot-repository.js +6 -5
  603. package/daemon/dist/domain/snapshot-repository.js.map +1 -1
  604. package/daemon/dist/domain/startup-orchestrator.d.ts +3 -16
  605. package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
  606. package/daemon/dist/domain/startup-orchestrator.js +65 -76
  607. package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
  608. package/daemon/dist/domain/startup-submission-evidence.d.ts +27 -0
  609. package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
  610. package/daemon/dist/domain/startup-submission-evidence.js +55 -0
  611. package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
  612. package/daemon/dist/domain/stream-reader-actions.d.ts +49 -0
  613. package/daemon/dist/domain/stream-reader-actions.d.ts.map +1 -0
  614. package/daemon/dist/domain/stream-reader-actions.js +104 -0
  615. package/daemon/dist/domain/stream-reader-actions.js.map +1 -0
  616. package/daemon/dist/domain/successor-session-launcher.d.ts +36 -1
  617. package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
  618. package/daemon/dist/domain/successor-session-launcher.js +59 -3
  619. package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
  620. package/daemon/dist/domain/terminal/herdr-adapter.d.ts +6 -28
  621. package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
  622. package/daemon/dist/domain/terminal/herdr-adapter.js +16 -66
  623. package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
  624. package/daemon/dist/domain/terminal/rex-adapter.d.ts +42 -0
  625. package/daemon/dist/domain/terminal/rex-adapter.d.ts.map +1 -0
  626. package/daemon/dist/domain/terminal/rex-adapter.js +228 -0
  627. package/daemon/dist/domain/terminal/rex-adapter.js.map +1 -0
  628. package/daemon/dist/domain/terminal/rex-layout.d.ts +26 -0
  629. package/daemon/dist/domain/terminal/rex-layout.d.ts.map +1 -0
  630. package/daemon/dist/domain/terminal/rex-layout.js +21 -0
  631. package/daemon/dist/domain/terminal/rex-layout.js.map +1 -0
  632. package/daemon/dist/domain/terminal/rex-transport.d.ts +43 -0
  633. package/daemon/dist/domain/terminal/rex-transport.d.ts.map +1 -0
  634. package/daemon/dist/domain/terminal/rex-transport.js +176 -0
  635. package/daemon/dist/domain/terminal/rex-transport.js.map +1 -0
  636. package/daemon/dist/domain/terminal/terminal-provider.d.ts +11 -0
  637. package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
  638. package/daemon/dist/domain/terminal/terminal-service.d.ts +2 -2
  639. package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
  640. package/daemon/dist/domain/terminal/terminal-service.js +10 -11
  641. package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
  642. package/daemon/dist/domain/terminal/tile-attach.d.ts +2 -0
  643. package/daemon/dist/domain/terminal/tile-attach.d.ts.map +1 -0
  644. package/daemon/dist/domain/terminal/tile-attach.js +42 -0
  645. package/daemon/dist/domain/terminal/tile-attach.js.map +1 -0
  646. package/daemon/dist/domain/terminal/tile-layout.d.ts +32 -0
  647. package/daemon/dist/domain/terminal/tile-layout.d.ts.map +1 -0
  648. package/daemon/dist/domain/terminal/tile-layout.js +36 -0
  649. package/daemon/dist/domain/terminal/tile-layout.js.map +1 -0
  650. package/daemon/dist/domain/terminal/view-composer.d.ts.map +1 -1
  651. package/daemon/dist/domain/terminal/view-composer.js +11 -7
  652. package/daemon/dist/domain/terminal/view-composer.js.map +1 -1
  653. package/daemon/dist/domain/toml-tables.d.ts +20 -0
  654. package/daemon/dist/domain/toml-tables.d.ts.map +1 -0
  655. package/daemon/dist/domain/toml-tables.js +101 -0
  656. package/daemon/dist/domain/toml-tables.js.map +1 -0
  657. package/daemon/dist/domain/types.d.ts +86 -0
  658. package/daemon/dist/domain/types.d.ts.map +1 -1
  659. package/daemon/dist/domain/types.js.map +1 -1
  660. package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
  661. package/daemon/dist/domain/user-settings/settings-store.js +5 -6
  662. package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
  663. package/daemon/dist/domain/view-projector.d.ts +1 -0
  664. package/daemon/dist/domain/view-projector.d.ts.map +1 -1
  665. package/daemon/dist/domain/view-projector.js +15 -2
  666. package/daemon/dist/domain/view-projector.js.map +1 -1
  667. package/daemon/dist/domain/wake-recovery.d.ts +16 -0
  668. package/daemon/dist/domain/wake-recovery.d.ts.map +1 -0
  669. package/daemon/dist/domain/wake-recovery.js +31 -0
  670. package/daemon/dist/domain/wake-recovery.js.map +1 -0
  671. package/daemon/dist/domain/workflow-human-destination.d.ts.map +1 -1
  672. package/daemon/dist/domain/workflow-human-destination.js +5 -3
  673. package/daemon/dist/domain/workflow-human-destination.js.map +1 -1
  674. package/daemon/dist/domain/workflow-projector.d.ts +1 -0
  675. package/daemon/dist/domain/workflow-projector.d.ts.map +1 -1
  676. package/daemon/dist/domain/workflow-projector.js +19 -3
  677. package/daemon/dist/domain/workflow-projector.js.map +1 -1
  678. package/daemon/dist/domain/workflow-runtime.d.ts +2 -2
  679. package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
  680. package/daemon/dist/domain/workflow-runtime.js +6 -4
  681. package/daemon/dist/domain/workflow-runtime.js.map +1 -1
  682. package/daemon/dist/gateway-human-registry-surface.d.ts +1 -0
  683. package/daemon/dist/gateway-human-registry-surface.d.ts.map +1 -1
  684. package/daemon/dist/gateway-human-registry-surface.js +1 -0
  685. package/daemon/dist/gateway-human-registry-surface.js.map +1 -1
  686. package/daemon/dist/index.d.ts.map +1 -1
  687. package/daemon/dist/index.js +7 -3
  688. package/daemon/dist/index.js.map +1 -1
  689. package/daemon/dist/lib/pane-envelope.d.ts +9 -0
  690. package/daemon/dist/lib/pane-envelope.d.ts.map +1 -1
  691. package/daemon/dist/lib/pane-envelope.js +9 -2
  692. package/daemon/dist/lib/pane-envelope.js.map +1 -1
  693. package/daemon/dist/routes/activity.d.ts.map +1 -1
  694. package/daemon/dist/routes/activity.js +13 -1
  695. package/daemon/dist/routes/activity.js.map +1 -1
  696. package/daemon/dist/routes/agent-images.d.ts.map +1 -1
  697. package/daemon/dist/routes/agent-images.js +19 -0
  698. package/daemon/dist/routes/agent-images.js.map +1 -1
  699. package/daemon/dist/routes/attention.d.ts.map +1 -1
  700. package/daemon/dist/routes/attention.js +15 -3
  701. package/daemon/dist/routes/attention.js.map +1 -1
  702. package/daemon/dist/routes/bundles.js +1 -1
  703. package/daemon/dist/routes/bundles.js.map +1 -1
  704. package/daemon/dist/routes/context-packs.d.ts.map +1 -1
  705. package/daemon/dist/routes/context-packs.js +22 -0
  706. package/daemon/dist/routes/context-packs.js.map +1 -1
  707. package/daemon/dist/routes/gateway.d.ts.map +1 -1
  708. package/daemon/dist/routes/gateway.js +42 -0
  709. package/daemon/dist/routes/gateway.js.map +1 -1
  710. package/daemon/dist/routes/hosts.d.ts.map +1 -1
  711. package/daemon/dist/routes/hosts.js +5 -2
  712. package/daemon/dist/routes/hosts.js.map +1 -1
  713. package/daemon/dist/routes/mission-control.d.ts.map +1 -1
  714. package/daemon/dist/routes/mission-control.js +7 -3
  715. package/daemon/dist/routes/mission-control.js.map +1 -1
  716. package/daemon/dist/routes/plugins.js +1 -1
  717. package/daemon/dist/routes/plugins.js.map +1 -1
  718. package/daemon/dist/routes/provider.d.ts.map +1 -1
  719. package/daemon/dist/routes/provider.js +83 -3
  720. package/daemon/dist/routes/provider.js.map +1 -1
  721. package/daemon/dist/routes/queue.d.ts.map +1 -1
  722. package/daemon/dist/routes/queue.js +136 -18
  723. package/daemon/dist/routes/queue.js.map +1 -1
  724. package/daemon/dist/routes/require-sender-identity.d.ts +10 -8
  725. package/daemon/dist/routes/require-sender-identity.d.ts.map +1 -1
  726. package/daemon/dist/routes/require-sender-identity.js +13 -11
  727. package/daemon/dist/routes/require-sender-identity.js.map +1 -1
  728. package/daemon/dist/routes/rigs.js +4 -0
  729. package/daemon/dist/routes/rigs.js.map +1 -1
  730. package/daemon/dist/routes/runtime-switch-custody.d.ts +21 -0
  731. package/daemon/dist/routes/runtime-switch-custody.d.ts.map +1 -0
  732. package/daemon/dist/routes/runtime-switch-custody.js +55 -0
  733. package/daemon/dist/routes/runtime-switch-custody.js.map +1 -0
  734. package/daemon/dist/routes/scope-approve.js +2 -2
  735. package/daemon/dist/routes/scope-approve.js.map +1 -1
  736. package/daemon/dist/routes/scope-audit.js +1 -1
  737. package/daemon/dist/routes/scope-audit.js.map +1 -1
  738. package/daemon/dist/routes/seat.d.ts.map +1 -1
  739. package/daemon/dist/routes/seat.js +135 -18
  740. package/daemon/dist/routes/seat.js.map +1 -1
  741. package/daemon/dist/routes/sessions.d.ts.map +1 -1
  742. package/daemon/dist/routes/sessions.js +24 -3
  743. package/daemon/dist/routes/sessions.js.map +1 -1
  744. package/daemon/dist/routes/skills.js +1 -1
  745. package/daemon/dist/routes/skills.js.map +1 -1
  746. package/daemon/dist/routes/slices.js +1 -1
  747. package/daemon/dist/routes/slices.js.map +1 -1
  748. package/daemon/dist/routes/startup.js +15 -5
  749. package/daemon/dist/routes/startup.js.map +1 -1
  750. package/daemon/dist/routes/stream.d.ts.map +1 -1
  751. package/daemon/dist/routes/stream.js +25 -2
  752. package/daemon/dist/routes/stream.js.map +1 -1
  753. package/daemon/dist/routes/transcripts.js +2 -2
  754. package/daemon/dist/routes/transcripts.js.map +1 -1
  755. package/daemon/dist/routes/transport.d.ts.map +1 -1
  756. package/daemon/dist/routes/transport.js +41 -4
  757. package/daemon/dist/routes/transport.js.map +1 -1
  758. package/daemon/dist/routes/workflow.js +1 -1
  759. package/daemon/dist/routes/workflow.js.map +1 -1
  760. package/daemon/dist/seat-recap-store-surface.d.ts +1 -1
  761. package/daemon/dist/seat-recap-store-surface.d.ts.map +1 -1
  762. package/daemon/dist/seat-recap-store-surface.js +1 -1
  763. package/daemon/dist/seat-recap-store-surface.js.map +1 -1
  764. package/daemon/dist/server.d.ts +2 -0
  765. package/daemon/dist/server.d.ts.map +1 -1
  766. package/daemon/dist/server.js +1 -0
  767. package/daemon/dist/server.js.map +1 -1
  768. package/daemon/dist/startup.d.ts +5 -0
  769. package/daemon/dist/startup.d.ts.map +1 -1
  770. package/daemon/dist/startup.js +107 -29
  771. package/daemon/dist/startup.js.map +1 -1
  772. package/daemon/dist/terminal/TerminalSessionBroker.d.ts +18 -2
  773. package/daemon/dist/terminal/TerminalSessionBroker.d.ts.map +1 -1
  774. package/daemon/dist/terminal/TerminalSessionBroker.js +60 -9
  775. package/daemon/dist/terminal/TerminalSessionBroker.js.map +1 -1
  776. package/daemon/dist/terminal/window-pin.d.ts +41 -0
  777. package/daemon/dist/terminal/window-pin.d.ts.map +1 -0
  778. package/daemon/dist/terminal/window-pin.js +103 -0
  779. package/daemon/dist/terminal/window-pin.js.map +1 -0
  780. package/daemon/docs/reference/a2a-agents.md +16 -4
  781. package/daemon/docs/reference/agent-startup-guide.md +34 -2
  782. package/daemon/docs/reference/community-harness-examples/cursor/cursor.yaml +2 -2
  783. package/daemon/docs/reference/community-harness-examples/cursor/openrig-cursor-launch +7 -0
  784. package/daemon/docs/reference/community-harness-examples/hermes/config.yaml.example +2 -1
  785. package/daemon/docs/reference/community-harness-examples/openclaw/openclaw-gateway.yaml +15 -0
  786. package/daemon/docs/reference/community-harness-examples/openclaw/openclaw.yaml +5 -2
  787. package/daemon/docs/reference/community-harness-examples/openclaw/openrig-openclaw-launch +56 -24
  788. package/daemon/docs/reference/community-harness-presets.md +104 -19
  789. package/daemon/docs/reference/gateway-participants.md +165 -0
  790. package/daemon/docs/reference/getting-started.md +84 -10
  791. package/daemon/docs/reference/health-diagnosis.md +13 -0
  792. package/daemon/docs/reference/help.md +6 -0
  793. package/daemon/docs/reference/keeping-a-watch.md +21 -0
  794. package/daemon/docs/reference/project-workspace.md +18 -0
  795. package/daemon/docs/reference/publishing-a-rig-bundle.md +11 -0
  796. package/daemon/docs/reference/quickstart.md +13 -1
  797. package/daemon/docs/reference/rig-spec.md +179 -6
  798. package/daemon/docs/reference/sdlc-conventions.md +3 -1
  799. package/daemon/docs/reference/seat-delivery.md +25 -5
  800. package/daemon/docs/reference/seat-node-targeting.md +17 -0
  801. package/daemon/docs/reference/slack-app-setup.md +21 -3
  802. package/daemon/docs/reference/terminal-sessions.md +51 -0
  803. package/daemon/docs/reference/whats-new.md +148 -169
  804. package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +37 -3
  805. package/daemon/specs/agents/shared/skills/core/openrig-herdr/SKILL.md +20 -5
  806. package/daemon/specs/agents/shared/skills/process/agent-browser/LICENSE.txt +201 -0
  807. package/daemon/specs/agents/shared/skills/process/agent-browser/OPENRIG.md +13 -29
  808. package/daemon/specs/agents/shared/skills/process/agent-browser/SKILL.md +8 -8
  809. package/daemon/specs/agents/shared/skills/process/dogfood/LICENSE.txt +201 -0
  810. package/daemon/specs/agents/shared/skills/process/dogfood/SKILL.md +6 -2
  811. package/daemon/specs/agents/shared/skills/process/systematic-debugging/LICENSE.txt +21 -0
  812. package/daemon/specs/agents/shared/skills/process/systematic-debugging/SKILL.md +6 -2
  813. package/daemon/specs/agents/shared/skills/process/systematic-debugging/root-cause-tracing.md +1 -1
  814. package/daemon/specs/agents/shared/skills/process/test-driven-development/LICENSE.txt +21 -0
  815. package/daemon/specs/agents/shared/skills/process/test-driven-development/SKILL.md +5 -1
  816. package/daemon/specs/agents/shared/skills/process/verification-before-completion/LICENSE.txt +21 -0
  817. package/daemon/specs/agents/shared/skills/process/verification-before-completion/SKILL.md +5 -1
  818. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +18 -1
  819. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/startup/context.md +3 -0
  820. package/daemon/specs/rigs/launch/kernel/agents/queue/worker/guidance/role.md +3 -2
  821. package/dist/build-info.js +3 -3
  822. package/dist/client.d.ts +12 -0
  823. package/dist/client.d.ts.map +1 -1
  824. package/dist/client.js +20 -2
  825. package/dist/client.js.map +1 -1
  826. package/dist/commands/acp.js +1 -1
  827. package/dist/commands/auth.d.ts.map +1 -1
  828. package/dist/commands/auth.js +2 -1
  829. package/dist/commands/auth.js.map +1 -1
  830. package/dist/commands/capture.d.ts +27 -0
  831. package/dist/commands/capture.d.ts.map +1 -1
  832. package/dist/commands/capture.js +68 -2
  833. package/dist/commands/capture.js.map +1 -1
  834. package/dist/commands/chatroom.d.ts.map +1 -1
  835. package/dist/commands/chatroom.js +6 -0
  836. package/dist/commands/chatroom.js.map +1 -1
  837. package/dist/commands/context.d.ts.map +1 -1
  838. package/dist/commands/context.js +29 -23
  839. package/dist/commands/context.js.map +1 -1
  840. package/dist/commands/doctor.d.ts +9 -1
  841. package/dist/commands/doctor.d.ts.map +1 -1
  842. package/dist/commands/doctor.js +18 -2
  843. package/dist/commands/doctor.js.map +1 -1
  844. package/dist/commands/down.d.ts.map +1 -1
  845. package/dist/commands/down.js +9 -2
  846. package/dist/commands/down.js.map +1 -1
  847. package/dist/commands/env.d.ts.map +1 -1
  848. package/dist/commands/env.js +3 -0
  849. package/dist/commands/env.js.map +1 -1
  850. package/dist/commands/export.d.ts.map +1 -1
  851. package/dist/commands/export.js +57 -5
  852. package/dist/commands/export.js.map +1 -1
  853. package/dist/commands/gateway.d.ts.map +1 -1
  854. package/dist/commands/gateway.js +309 -23
  855. package/dist/commands/gateway.js.map +1 -1
  856. package/dist/commands/health.js +1 -1
  857. package/dist/commands/health.js.map +1 -1
  858. package/dist/commands/launch.js +1 -1
  859. package/dist/commands/launch.js.map +1 -1
  860. package/dist/commands/project.d.ts.map +1 -1
  861. package/dist/commands/project.js +6 -1
  862. package/dist/commands/project.js.map +1 -1
  863. package/dist/commands/proof.d.ts.map +1 -1
  864. package/dist/commands/proof.js +33 -2
  865. package/dist/commands/proof.js.map +1 -1
  866. package/dist/commands/provider.d.ts.map +1 -1
  867. package/dist/commands/provider.js +172 -24
  868. package/dist/commands/provider.js.map +1 -1
  869. package/dist/commands/queue.d.ts.map +1 -1
  870. package/dist/commands/queue.js +180 -38
  871. package/dist/commands/queue.js.map +1 -1
  872. package/dist/commands/rig-mode.d.ts +1 -2
  873. package/dist/commands/rig-mode.d.ts.map +1 -1
  874. package/dist/commands/rig-mode.js +2 -2
  875. package/dist/commands/rig-mode.js.map +1 -1
  876. package/dist/commands/scope.d.ts.map +1 -1
  877. package/dist/commands/scope.js +17 -6
  878. package/dist/commands/scope.js.map +1 -1
  879. package/dist/commands/seat.d.ts.map +1 -1
  880. package/dist/commands/seat.js +243 -6
  881. package/dist/commands/seat.js.map +1 -1
  882. package/dist/commands/send.d.ts +3 -0
  883. package/dist/commands/send.d.ts.map +1 -1
  884. package/dist/commands/send.js +16 -18
  885. package/dist/commands/send.js.map +1 -1
  886. package/dist/commands/setup.d.ts.map +1 -1
  887. package/dist/commands/setup.js +10 -2
  888. package/dist/commands/setup.js.map +1 -1
  889. package/dist/commands/skill.d.ts.map +1 -1
  890. package/dist/commands/skill.js +22 -1
  891. package/dist/commands/skill.js.map +1 -1
  892. package/dist/commands/slack.d.ts +10 -0
  893. package/dist/commands/slack.d.ts.map +1 -1
  894. package/dist/commands/slack.js +70 -2
  895. package/dist/commands/slack.js.map +1 -1
  896. package/dist/commands/stream-outcome.d.ts +586 -1
  897. package/dist/commands/stream-outcome.d.ts.map +1 -1
  898. package/dist/commands/stream-outcome.js +38 -1
  899. package/dist/commands/stream-outcome.js.map +1 -1
  900. package/dist/commands/stream.d.ts.map +1 -1
  901. package/dist/commands/stream.js +22 -0
  902. package/dist/commands/stream.js.map +1 -1
  903. package/dist/commands/terminal.d.ts +4 -0
  904. package/dist/commands/terminal.d.ts.map +1 -1
  905. package/dist/commands/terminal.js +7 -5
  906. package/dist/commands/terminal.js.map +1 -1
  907. package/dist/commands/up.d.ts.map +1 -1
  908. package/dist/commands/up.js +7 -1
  909. package/dist/commands/up.js.map +1 -1
  910. package/dist/config-store.d.ts.map +1 -1
  911. package/dist/config-store.js +3 -2
  912. package/dist/config-store.js.map +1 -1
  913. package/dist/daemon-lifecycle.d.ts +1 -1
  914. package/dist/daemon-lifecycle.js +2 -2
  915. package/dist/daemon-lifecycle.js.map +1 -1
  916. package/dist/fetch-with-timeout.d.ts.map +1 -1
  917. package/dist/fetch-with-timeout.js +3 -1
  918. package/dist/fetch-with-timeout.js.map +1 -1
  919. package/dist/lib/codex-auth.d.ts +1 -147
  920. package/dist/lib/codex-auth.d.ts.map +1 -1
  921. package/dist/lib/codex-auth.js +2 -505
  922. package/dist/lib/codex-auth.js.map +1 -1
  923. package/dist/lib/scope/dot-id.js +2 -2
  924. package/dist/lib/scope/dot-id.js.map +1 -1
  925. package/dist/lib/scope/scaffold-placeholder.d.ts +1 -1
  926. package/dist/lib/scope/scaffold-placeholder.js +1 -1
  927. package/dist/lib/scope/scope-audit.js +1 -1
  928. package/dist/lib/scope/scope-audit.js.map +1 -1
  929. package/dist/lib/scope/types.d.ts.map +1 -1
  930. package/dist/lib/scope/types.js +2 -3
  931. package/dist/lib/scope/types.js.map +1 -1
  932. package/dist/long-request-fetch.d.ts +9 -0
  933. package/dist/long-request-fetch.d.ts.map +1 -0
  934. package/dist/long-request-fetch.js +48 -0
  935. package/dist/long-request-fetch.js.map +1 -0
  936. package/dist/mcp-server.d.ts.map +1 -1
  937. package/dist/mcp-server.js +53 -2
  938. package/dist/mcp-server.js.map +1 -1
  939. package/dist/release-surface/affected-skills.d.ts.map +1 -1
  940. package/dist/release-surface/affected-skills.js +1 -2
  941. package/dist/release-surface/affected-skills.js.map +1 -1
  942. package/dist/remote-host-ops.d.ts +1 -0
  943. package/dist/remote-host-ops.d.ts.map +1 -1
  944. package/dist/remote-host-ops.js +2 -2
  945. package/dist/remote-host-ops.js.map +1 -1
  946. package/dist/terminal-window-rex.d.ts +6 -0
  947. package/dist/terminal-window-rex.d.ts.map +1 -0
  948. package/dist/terminal-window-rex.js +129 -0
  949. package/dist/terminal-window-rex.js.map +1 -0
  950. package/dist/terminal-window.d.ts +2 -0
  951. package/dist/terminal-window.d.ts.map +1 -1
  952. package/dist/terminal-window.js +19 -7
  953. package/dist/terminal-window.js.map +1 -1
  954. package/dist/tmux-health.d.ts +26 -0
  955. package/dist/tmux-health.d.ts.map +1 -1
  956. package/dist/tmux-health.js +42 -0
  957. package/dist/tmux-health.js.map +1 -1
  958. package/package.json +1 -1
  959. package/tui/dist/attention/attention-model.d.ts +19 -0
  960. package/tui/dist/attention/attention-model.d.ts.map +1 -1
  961. package/tui/dist/attention/attention-model.js +38 -6
  962. package/tui/dist/attention/attention-model.js.map +1 -1
  963. package/tui/dist/commands/registry.d.ts.map +1 -1
  964. package/tui/dist/commands/registry.js +5 -2
  965. package/tui/dist/commands/registry.js.map +1 -1
  966. package/tui/dist/daemon-client.d.ts +13 -7
  967. package/tui/dist/daemon-client.d.ts.map +1 -1
  968. package/tui/dist/daemon-client.js +20 -11
  969. package/tui/dist/daemon-client.js.map +1 -1
  970. package/tui/dist/demo-data.js +17 -17
  971. package/tui/dist/demo-data.js.map +1 -1
  972. package/tui/dist/hydrate.d.ts +1 -1
  973. package/tui/dist/hydrate.d.ts.map +1 -1
  974. package/tui/dist/hydrate.js +35 -11
  975. package/tui/dist/hydrate.js.map +1 -1
  976. package/tui/dist/live-events.js +1 -1
  977. package/tui/dist/live-events.js.map +1 -1
  978. package/tui/dist/live.d.ts.map +1 -1
  979. package/tui/dist/live.js +6 -4
  980. package/tui/dist/live.js.map +1 -1
  981. package/tui/dist/main.js +27 -7
  982. package/tui/dist/main.js.map +1 -1
  983. package/tui/dist/page-read.js +1 -1
  984. package/tui/dist/page-read.js.map +1 -1
  985. package/tui/dist/render.d.ts.map +1 -1
  986. package/tui/dist/render.js +51 -7
  987. package/tui/dist/render.js.map +1 -1
  988. package/tui/dist/state.d.ts.map +1 -1
  989. package/tui/dist/state.js +5 -1
  990. package/tui/dist/state.js.map +1 -1
  991. package/tui/dist/terminals/open-window.d.ts +15 -6
  992. package/tui/dist/terminals/open-window.d.ts.map +1 -1
  993. package/tui/dist/terminals/open-window.js +47 -15
  994. package/tui/dist/terminals/open-window.js.map +1 -1
  995. package/tui/dist/terminals/terminal-model.d.ts +2 -1
  996. package/tui/dist/terminals/terminal-model.d.ts.map +1 -1
  997. package/tui/dist/terminals/terminal-model.js +5 -4
  998. package/tui/dist/terminals/terminal-model.js.map +1 -1
  999. package/tui/dist/types.d.ts +10 -1
  1000. package/tui/dist/types.d.ts.map +1 -1
  1001. package/tui/dist/usage/usage-model.d.ts.map +1 -1
  1002. package/tui/dist/usage/usage-model.js +5 -3
  1003. package/tui/dist/usage/usage-model.js.map +1 -1
  1004. package/ui/dist/assets/{index-Blg-p32B.js → index-DV0UNxFw.js} +2 -2
  1005. package/ui/dist/index.html +1 -1
@@ -2,6 +2,7 @@ import * as fs from "node:fs";
2
2
  import * as os from "node:os";
3
3
  import * as path from "node:path";
4
4
  import { StringDecoder } from "node:string_decoder";
5
+ import { newPinHolder, readPinSizing, recordPin, releasePin, WINDOW_SIZE_PRIOR_OPTION, withWindowPin } from "./window-pin.js";
5
6
  // OPR.0.4.0.38 - real-terminal session broker.
6
7
  //
7
8
  // The product invariant from the founder is: NO LIVE TERMINAL LIES. A live
@@ -130,6 +131,10 @@ export class TerminalSessionBroker {
130
131
  // async open/seed) to find the broker already torn down. Set on every
131
132
  // teardown path so a late/racing attach never goes silently live.
132
133
  lastClose = null;
134
+ // The window this broker pinned, by its immutable id, and listed itself as a holder of. When the last live holder lets
135
+ // go, the window gets back its own `window-size`, so native clients (Herdr, attach) size it again. Null: nothing held.
136
+ pinnedWindow = null;
137
+ holder = newPinHolder();
133
138
  constructor(sessionName, tmux, opts = {}) {
134
139
  this.sessionName = sessionName;
135
140
  this.tmux = tmux;
@@ -182,6 +187,7 @@ export class TerminalSessionBroker {
182
187
  this.lastClose = { code: open.code, reason: open.reason };
183
188
  this.torndown = true;
184
189
  this.teardownResources();
190
+ await this.restoreWindowSize();
185
191
  this.onEmpty?.(this.sessionName);
186
192
  sub.close(open.code, open.reason);
187
193
  return;
@@ -218,6 +224,11 @@ export class TerminalSessionBroker {
218
224
  if (this.torndown)
219
225
  return;
220
226
  await this.enqueueInput(async () => {
227
+ // A caller may have queued this write while an earlier input was in
228
+ // flight. Drop it if the last subscriber detached before its turn;
229
+ // otherwise stale terminal input would reach the seat after teardown.
230
+ if (this.torndown)
231
+ return;
221
232
  const write = async () => {
222
233
  if (msg.type === "keys")
223
234
  await this.tmux.sendKeys(this.sessionName, msg.keys);
@@ -318,8 +329,8 @@ export class TerminalSessionBroker {
318
329
  void this.teardown();
319
330
  }
320
331
  }
321
- /** Force teardown (used by the registry/route on shutdown and by tests). */
322
- dispose() {
332
+ /** Force teardown (used by the registry/route on shutdown and by tests). Resolves once the sizing is given back. */
333
+ async dispose() {
323
334
  if (this.torndown)
324
335
  return;
325
336
  this.lastClose = { code: 1011, reason: "terminal broker unavailable" };
@@ -331,6 +342,10 @@ export class TerminalSessionBroker {
331
342
  void this.tmux.stopPipePane(this.sessionName).catch(() => { });
332
343
  }
333
344
  this.teardownResources();
345
+ // An open still in flight finishes its pin first, so the release below sees it. Then, before onEmpty as in
346
+ // teardown, the release: a broker created next reads the given-back value, not this one's pin.
347
+ await this.openPromise?.catch(() => { });
348
+ await this.restoreWindowSize();
334
349
  this.onEmpty?.(this.sessionName);
335
350
  }
336
351
  async openPipe() {
@@ -342,9 +357,18 @@ export class TerminalSessionBroker {
342
357
  return { ok: false, code: 1008, reason: `session not found: ${this.sessionName}` };
343
358
  // FR-7 fixed geometry: window-size manual so tmux will NOT auto-shrink the
344
359
  // window to the smallest attached client; then the canonical width/height
345
- // ONCE. Deliberately NOT aggressive-resize, which does the opposite.
346
- await this.tmux.setWindowOption(this.sessionName, "window-size", "manual").catch(() => { });
347
- await this.tmux.resizeWindow(this.sessionName, this.cols, this.rows).catch(() => { });
360
+ // ONCE. Deliberately NOT aggressive-resize, which does the opposite. The
361
+ // window's own value is read first and recorded on the window with this
362
+ // broker as a holder, and given back when the last holder lets go. The window
363
+ // is named by its id, so the pin and the give-back reach the same window even
364
+ // after a client switches windows, and the read, record and pin run in its
365
+ // queue (window-pin.ts), so a readable capture in this daemon takes its turn.
366
+ // Without a window id or a readable value, the session's window is pinned as
367
+ // before with nothing to give back.
368
+ const window = (await this.tmux.readWindow?.(this.sessionName, WINDOW_SIZE_PRIOR_OPTION).catch(() => null))?.id ?? null;
369
+ const pinned = await (window ? withWindowPin(window, () => this.pinWindow(window)) : this.pinWindow(null));
370
+ if (!pinned || this.torndown)
371
+ return { ok: false, code: 1011, reason: "terminal broker unavailable" }; // dispose gives it back
348
372
  const outputPath = path.join(os.tmpdir(), `openrig-term-${this.sessionName.replace(/[^a-zA-Z0-9@-]/g, "_")}-${Date.now()}.log`);
349
373
  try {
350
374
  fs.writeFileSync(outputPath, "", "utf-8");
@@ -363,6 +387,20 @@ export class TerminalSessionBroker {
363
387
  await this.tmux.sendKeys(this.sessionName, ["", ""]).catch(() => { });
364
388
  return { ok: true };
365
389
  }
390
+ /** Read the window's sizing, record this broker as a holder, then pin the window (FR-7). False: disposed first. */
391
+ async pinWindow(window) {
392
+ const sizing = window ? await readPinSizing(this.tmux, window) : null;
393
+ if (this.torndown)
394
+ return false; // disposed: pin nothing
395
+ if (sizing) {
396
+ this.pinnedWindow = sizing.window;
397
+ await recordPin(this.tmux, sizing, this.holder);
398
+ }
399
+ const target = sizing?.window ?? this.sessionName;
400
+ await this.tmux.setWindowOption(target, "window-size", "manual").catch(() => { });
401
+ await this.tmux.resizeWindow(target, this.cols, this.rows).catch(() => { });
402
+ return true;
403
+ }
366
404
  async seed(sub) {
367
405
  // AC-5: replay the broker-owned recent-output ring FIRST so the late
368
406
  // subscriber's xterm builds the same scrollback the earlier subscribers
@@ -477,15 +515,15 @@ export class TerminalSessionBroker {
477
515
  .hasSession(this.sessionName)
478
516
  .then((alive) => {
479
517
  if (!alive)
480
- this.handleSessionDeath();
518
+ void this.handleSessionDeath();
481
519
  })
482
520
  .catch(() => {
483
- this.handleSessionDeath();
521
+ void this.handleSessionDeath();
484
522
  });
485
523
  }, this.livenessMs);
486
524
  }
487
525
  /** FR-5: a dead session closes ALL subscribers honestly - never silent stale-live. */
488
- handleSessionDeath() {
526
+ async handleSessionDeath() {
489
527
  if (this.torndown)
490
528
  return;
491
529
  this.lastClose = { code: 1001, reason: "tmux session terminated" };
@@ -505,6 +543,9 @@ export class TerminalSessionBroker {
505
543
  // already-closed subscriber is fine
506
544
  }
507
545
  }
546
+ // A probe that couldn't reach tmux isn't proof the window is gone, so give the sizing back anyway. It acts only on a
547
+ // window that still lists this broker, so a gone window or one on a restarted tmux server is left alone.
548
+ await this.restoreWindowSize();
508
549
  this.onEmpty?.(this.sessionName);
509
550
  }
510
551
  async teardown() {
@@ -516,9 +557,19 @@ export class TerminalSessionBroker {
516
557
  this.pipeActive = false;
517
558
  await this.tmux.stopPipePane(this.sessionName).catch(() => { });
518
559
  }
560
+ // Before onEmpty: a later broker for this window then reads the restored value, not this one's pin.
561
+ await this.restoreWindowSize();
519
562
  this.teardownResources();
520
563
  this.onEmpty?.(this.sessionName);
521
564
  }
565
+ /** Let go of the pinned window, once: drop this broker from its holders, and when no live holder is left, give back
566
+ * the `window-size` it had before the first pin. */
567
+ async restoreWindowSize() {
568
+ const window = this.pinnedWindow;
569
+ this.pinnedWindow = null;
570
+ if (window)
571
+ await releasePin(this.tmux, window, this.holder);
572
+ }
522
573
  teardownResources() {
523
574
  if (this.tailInterval) {
524
575
  clearInterval(this.tailInterval);
@@ -587,7 +638,7 @@ export class TerminalBrokerRegistry {
587
638
  catch (error) {
588
639
  // A rejected open never registers the subscriber, so detach cannot evict
589
640
  // this broker or remove a partially created output file.
590
- broker.dispose();
641
+ await broker.dispose();
591
642
  throw error;
592
643
  }
593
644
  return broker;
@@ -1 +1 @@
1
- {"version":3,"file":"TerminalSessionBroker.js","sourceRoot":"","sources":["../../src/terminal/TerminalSessionBroker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGpD,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,+EAA+E;AAC/E,qDAAqD;AACrD,EAAE;AACF,8EAA8E;AAC9E,6EAA6E;AAC7E,wEAAwE;AACxE,8EAA8E;AAC9E,8EAA8E;AAC9E,gFAAgF;AAChF,oDAAoD;AAEpD,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAC7B,MAAM,iBAAiB,GAAG,EAAE,GAAG,IAAI,CAAC;AACpC,MAAM,mBAAmB,GAAG,IAAI,CAAC;AAEjC;;;;;;GAMG;AACH,MAAM,iBAAiB,GAAG,EAAE,GAAG,IAAI,CAAC;AAEpC;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,CAAC;AACjC,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,CAAC;AAgDjC,wFAAwF;AACxF,MAAM,UAAU,oBAAoB,CAAC,CAAS,EAAE,CAAS;IACvD,OAAO,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;AACnC,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,oBAAoB,CAClC,QAAgB,EAChB,MAAwD;IAExD,MAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC,KAAK,EA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O,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;IAC3B,CAAC;IAED,GAAG,CAAC,WAAmB;QACrB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IACvC,CAAC;IAED,wFAAwF;IACxF,KAAK,CAAC,MAAM,CAAC,WAAmB,EAAE,GAAuB;QACvD,IAAI,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QAC3C,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,GAAG,IAAI,qBAAqB,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,EAAE;gBACzD,GAAG,IAAI,CAAC,IAAI;gBACZ,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;oBAChB,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;oBAC1B,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC;gBAC5B,CAAC;aACF,CAAC,CAAC;YACH,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;QACxC,CAAC;QACD,IAAI,CAAC;YACH,MAAM,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAC3B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,yEAAyE;YACzE,yDAAyD;YACzD,MAAM,MAAM,CAAC,OAAO,EAAE,CAAC;YACvB,MAAM,KAAK,CAAC;QACd,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
@@ -0,0 +1,41 @@
1
+ import type { TmuxResult } from "../adapters/tmux.js";
2
+ /** A window user option recording a pin: the window's own `window-size` from before it ("inherit" for none), then the
3
+ * holders of the pin (`<pid>.<n>`). It lives on the window, so a pin whose holders are gone (a daemon restart or crash)
4
+ * is given back by the next holder for that window, and a pin another live holder has is kept until it lets go. */
5
+ export declare const WINDOW_SIZE_PRIOR_OPTION = "@openrig-window-size-prior";
6
+ /** The window options a pin reads and writes; TmuxAdapter has them all. */
7
+ export interface PinTmux {
8
+ readWindow?(target: string, userOption: string): Promise<{
9
+ id: string;
10
+ userOption: string;
11
+ } | null>;
12
+ getWindowLocalOption?(target: string, option: string): Promise<string | null | undefined>;
13
+ setWindowOption(target: string, option: string, value: string): Promise<TmuxResult>;
14
+ restoreWindowOption?(target: string, option: string, value: string | null): Promise<TmuxResult>;
15
+ }
16
+ /** A window, its own `window-size` now (`live`), the value to give back (`prior`), and the live holders of a pin. */
17
+ export interface PinSizing {
18
+ window: string;
19
+ live: string | null;
20
+ prior: string | null;
21
+ holders: string[];
22
+ }
23
+ /** Run `step` (a read, record and pin, or a release) on `window` after any step already queued for it in this process. */
24
+ export declare function withWindowPin<T>(window: string, step: () => Promise<T>): Promise<T>;
25
+ export declare function newPinHolder(): string;
26
+ /** The window `target` names (a session's current window, or `@N`), by its immutable id, with its sizing. A `manual`
27
+ * window with a record is pinned: its prior is the recorded one, kept for its live holders, or taken over from holders
28
+ * a crash left behind. Otherwise the live value is the prior. Null without a window id or a readable value. */
29
+ export declare function readPinSizing(tmux: PinTmux, target: string): Promise<PinSizing | null>;
30
+ /** Record `holder` as holding a pin on the window read by readPinSizing, keeping its prior. Before the pin itself.
31
+ * False when the record didn't land: there's then nothing to give the window back from. */
32
+ export declare function recordPin(tmux: PinTmux, sizing: PinSizing, holder: string): Promise<boolean>;
33
+ /** What letting go did: the window got its prior back; another live holder keeps the pin; the window no longer lists
34
+ * this holder; or the give-back failed (the record is kept for the next holder). */
35
+ export type PinRelease = "given-back" | "kept-by-another-holder" | "not-listed" | "failed";
36
+ /** Let go of `holder`'s pin on `window`, once. While another live holder remains, only drop this one. As the last one,
37
+ * run `beforeGiveBack` (a readable capture puts the size back), then give back the prior and drop the record. A window
38
+ * that no longer lists this holder (the record was cleared, or the tmux server restarted and `@N` is another window)
39
+ * is left alone. */
40
+ export declare function releasePin(tmux: PinTmux, window: string, holder: string, beforeGiveBack?: () => Promise<void>): Promise<PinRelease>;
41
+ //# sourceMappingURL=window-pin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"window-pin.d.ts","sourceRoot":"","sources":["../../src/terminal/window-pin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAMtD;;oHAEoH;AACpH,eAAO,MAAM,wBAAwB,+BAA+B,CAAC;AAGrE,2EAA2E;AAC3E,MAAM,WAAW,OAAO;IACtB,UAAU,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC,CAAC;IACpG,oBAAoB,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;IAC1F,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IACpF,mBAAmB,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;CACjG;AAED,qHAAqH;AACrH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAYD,0HAA0H;AAC1H,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAMnF;AAED,wBAAgB,YAAY,IAAI,MAAM,CAErC;AAuBD;;gHAEgH;AAChH,wBAAsB,aAAa,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAQ5F;AAED;4FAC4F;AAC5F,wBAAsB,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAMlG;AAED;qFACqF;AACrF,MAAM,MAAM,UAAU,GAAG,YAAY,GAAG,wBAAwB,GAAG,YAAY,GAAG,QAAQ,CAAC;AAE3F;;;qBAGqB;AACrB,wBAAgB,UAAU,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,CAoBnI"}
@@ -0,0 +1,103 @@
1
+ // A window pin: OpenRig sets a window's `window-size` to manual for a while (the web terminal's fixed geometry, a
2
+ // readable capture's resize) and gives the window its own value back after. resize-window and window-size manual stop
3
+ // the window's clients (Herdr, attach) sizing it, so a pin never given back leaves native clients a narrow window.
4
+ /** A window user option recording a pin: the window's own `window-size` from before it ("inherit" for none), then the
5
+ * holders of the pin (`<pid>.<n>`). It lives on the window, so a pin whose holders are gone (a daemon restart or crash)
6
+ * is given back by the next holder for that window, and a pin another live holder has is kept until it lets go. */
7
+ export const WINDOW_SIZE_PRIOR_OPTION = "@openrig-window-size-prior";
8
+ const INHERITED_WINDOW_SIZE = "inherit";
9
+ // This process's holders. A holder from this process is live while listed here; one from another process (another
10
+ // daemon on the same tmux server) while that process runs.
11
+ const heldHere = new Set();
12
+ let holderCount = 0;
13
+ // One queue per window in this process, so a readable capture and a web terminal on the same window take and give back
14
+ // a pin one at a time: each reads the record, writes it and changes the window's size before the next one reads. Another
15
+ // process isn't covered (tmux has no compare-and-set), and nothing waits on another process.
16
+ const windowQueues = new Map();
17
+ /** Run `step` (a read, record and pin, or a release) on `window` after any step already queued for it in this process. */
18
+ export function withWindowPin(window, step) {
19
+ const run = (windowQueues.get(window) ?? Promise.resolve()).then(step);
20
+ const settled = run.then(() => { }, () => { });
21
+ windowQueues.set(window, settled);
22
+ void settled.then(() => { if (windowQueues.get(window) === settled)
23
+ windowQueues.delete(window); });
24
+ return run;
25
+ }
26
+ export function newPinHolder() {
27
+ return `${process.pid}.${++holderCount}`;
28
+ }
29
+ function holderLive(holder) {
30
+ const pid = Number(holder.split(".")[0]);
31
+ if (!Number.isInteger(pid) || pid <= 0)
32
+ return false;
33
+ if (pid === process.pid)
34
+ return heldHere.has(holder);
35
+ try {
36
+ process.kill(pid, 0);
37
+ return true;
38
+ }
39
+ catch (err) {
40
+ return err.code === "EPERM"; // running, as another user
41
+ }
42
+ }
43
+ function parsePinRecord(value) {
44
+ const [prior, ...holders] = value.split(" ").filter(Boolean);
45
+ return prior ? { prior: prior === INHERITED_WINDOW_SIZE ? null : prior, holders } : null;
46
+ }
47
+ function pinRecord(prior, holders) {
48
+ return [prior ?? INHERITED_WINDOW_SIZE, ...holders].join(" ");
49
+ }
50
+ /** The window `target` names (a session's current window, or `@N`), by its immutable id, with its sizing. A `manual`
51
+ * window with a record is pinned: its prior is the recorded one, kept for its live holders, or taken over from holders
52
+ * a crash left behind. Otherwise the live value is the prior. Null without a window id or a readable value. */
53
+ export async function readPinSizing(tmux, target) {
54
+ const current = await tmux.readWindow?.(target, WINDOW_SIZE_PRIOR_OPTION).catch(() => null);
55
+ if (!current)
56
+ return null;
57
+ const live = await tmux.getWindowLocalOption?.(current.id, "window-size").catch(() => undefined);
58
+ if (live === undefined)
59
+ return null;
60
+ const record = parsePinRecord(current.userOption);
61
+ if (live === "manual" && record)
62
+ return { window: current.id, live, prior: record.prior, holders: record.holders.filter(holderLive) };
63
+ return { window: current.id, live, prior: live, holders: [] };
64
+ }
65
+ /** Record `holder` as holding a pin on the window read by readPinSizing, keeping its prior. Before the pin itself.
66
+ * False when the record didn't land: there's then nothing to give the window back from. */
67
+ export async function recordPin(tmux, sizing, holder) {
68
+ heldHere.add(holder);
69
+ const written = await tmux.setWindowOption(sizing.window, WINDOW_SIZE_PRIOR_OPTION, pinRecord(sizing.prior, [...sizing.holders, holder]))
70
+ .catch(() => null);
71
+ if (!written?.ok)
72
+ heldHere.delete(holder);
73
+ return written?.ok === true;
74
+ }
75
+ /** Let go of `holder`'s pin on `window`, once. While another live holder remains, only drop this one. As the last one,
76
+ * run `beforeGiveBack` (a readable capture puts the size back), then give back the prior and drop the record. A window
77
+ * that no longer lists this holder (the record was cleared, or the tmux server restarted and `@N` is another window)
78
+ * is left alone. */
79
+ export function releasePin(tmux, window, holder, beforeGiveBack) {
80
+ return withWindowPin(window, async () => {
81
+ try {
82
+ const record = parsePinRecord((await tmux.readWindow?.(window, WINDOW_SIZE_PRIOR_OPTION).catch(() => null))?.userOption ?? "");
83
+ if (!record?.holders.includes(holder))
84
+ return "not-listed";
85
+ const others = record.holders.filter((other) => other !== holder && holderLive(other));
86
+ if (others.length > 0) {
87
+ await tmux.setWindowOption(window, WINDOW_SIZE_PRIOR_OPTION, pinRecord(record.prior, others)).catch(() => { });
88
+ return "kept-by-another-holder";
89
+ }
90
+ await beforeGiveBack?.().catch(() => { });
91
+ const restored = await tmux.restoreWindowOption?.(window, "window-size", record.prior).catch(() => null);
92
+ // Kept when the give-back failed: this holder is then no longer live, so the next one gives it back instead.
93
+ if (!restored?.ok)
94
+ return "failed";
95
+ await tmux.restoreWindowOption?.(window, WINDOW_SIZE_PRIOR_OPTION, null).catch(() => { });
96
+ return "given-back";
97
+ }
98
+ finally {
99
+ heldHere.delete(holder);
100
+ }
101
+ });
102
+ }
103
+ //# sourceMappingURL=window-pin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"window-pin.js","sourceRoot":"","sources":["../../src/terminal/window-pin.ts"],"names":[],"mapp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T,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -55,8 +55,17 @@ transitions before trying again. Do not silently send the task a second time.
55
55
 
56
56
  You need the peer's base URL and a row assigned to your seat. For a no-model peer, the official
57
57
  [Hello World sample](https://github.com/a2aproject/a2a-samples/tree/6603ba3f2c31a7ef33e70b9d8b5b5f8be42ac9a3/samples/python/agents/helloworld)
58
- returns an echo artifact. Its README explains startup; it does not implement the input-required and cancellation
59
- controls described later. Use a peer that supports those operations when testing them.
58
+ returns an echo artifact. Fetch that revision:
59
+
60
+ ```sh
61
+ git clone https://github.com/a2aproject/a2a-samples.git
62
+ git -C a2a-samples checkout --detach 6603ba3f2c31a7ef33e70b9d8b5b5f8be42ac9a3
63
+ ```
64
+
65
+ Start the peer yourself in a separate terminal, following `a2a-samples/samples/python/agents/helloworld/README.md`.
66
+ Its default URL is `http://127.0.0.1:9999`, used below; it is available only while you run the sample.
67
+ The sample does not implement the input-required and cancellation controls described later. Use a peer that
68
+ supports those operations when testing them.
60
69
 
61
70
  Save as `a2a_client.py`. This client also works without an OpenRig row, for the inbound recipe below.
62
71
  Streaming reads have no deadline so quiet worker waits keep their stream; connection, write and pool waits are bounded to 10 seconds.
@@ -128,7 +137,8 @@ async def main():
128
137
  asyncio.run(main())
129
138
  ```
130
139
 
131
- Run it from your seat, replacing the row and peer URL:
140
+ When `A2A_TEXT` is unset, the row body becomes the peer's message verbatim. Write the body as the peer's input,
141
+ or set `A2A_TEXT` to the exact text you want to send. Run it from your seat, replacing the row and peer URL:
132
142
 
133
143
  ```sh
134
144
  export A2A_URL=http://127.0.0.1:9999
@@ -260,7 +270,7 @@ export A2A_SEAT=<worker-session-from-rig-ps>
260
270
  # Client terminal, in the folder with the example scripts and venv:
261
271
  unset A2A_ROW A2A_TASK A2A_CONTEXT
262
272
  export A2A_URL=http://127.0.0.1:19092
263
- export A2A_TEXT='Return the words hello from the receiving seat.'
273
+ export A2A_TEXT='Return exactly these words: "hello from the receiving seat".'
264
274
  .venv/bin/python a2a_client.py
265
275
  ```
266
276
 
@@ -277,6 +287,8 @@ rig queue update "$ROW" --state done --closure-reason no-follow-on --resolution
277
287
  The client should receive that exact resolution as an artifact, followed by completed. Compare the artifact with
278
288
  `rig queue show "$ROW" --full --json`, including the task/context IDs in the row body. The sample uses `--no-nudge`:
279
289
  the worker must be watching its queue; merely starting the front does not start or wake an agent.
290
+ To wake a model worker after the row appears, run `rig send <worker-session> 'Check your queue and process the new A2A task.'`
291
+ from the custodian's environment, or remove `--no-nudge` from the front's queue-create call to request the normal queue wake.
280
292
 
281
293
  For input-required, the worker instead records `--note 'A2A question: <question>'` and leaves the row in progress.
282
294
  The client reruns with the same `A2A_TASK`, `A2A_CONTEXT` and its answer as `A2A_TEXT`. The worker reads the
@@ -355,10 +355,37 @@ declaration isn't changed either; update it separately if a future recreation sh
355
355
  Each startup file and action specifies when it applies:
356
356
  - `fresh_start` — delivered when a new conversation starts: the first launch, `rig seat launch --fresh`,
357
357
  `rig seat continue`, and seats restored with `--fresh`
358
- - `restore` — delivered when a seat is restored, including a restore whose resume falls back to a fresh conversation
358
+ - `restore` — delivered when a seat is restored without its earlier conversation: a restore whose resume falls back to a fresh conversation, or a retried start
359
359
  - Default: `[fresh_start, restore]` (both)
360
360
 
361
- Use this to avoid re-sending context that the agent already has from its resumed conversation. For example, a one-time project briefing might only apply on `fresh_start`, while identity grounding should apply on both.
361
+ **An exact resume delivers neither.** When a restore reopens the seat's saved conversation (`rig up <rig> --existing` with a resume token), OpenRig types no startup actions and delivers no startup files, `restore` ones included: the conversation already has them, and typing them again would add turns to it. The one exception: a managed guidance block missing from the guidance file is put back before the harness starts.
362
+
363
+ Use this to avoid re-sending context that a fresh conversation doesn't need twice. For example, a one-time project briefing might only apply on `fresh_start`, while identity grounding should apply on both, so a seat that comes back fresh gets it again.
364
+
365
+ ---
366
+
367
+ ## What a seat is set to, and what it's running
368
+
369
+ A seat's settings can disagree with its running agent: what's saved for the next launch, what the running process
370
+ actually uses, and what its conversation has already read are three separate things. OpenRig reports each one
371
+ separately. Without live evidence it says unknown (or not verified), never the saved value. A saved change reaches the
372
+ running seat only through the action in the last column.
373
+
374
+ | What | Saved for the next launch | What the running seat has | How the running seat gets it |
375
+ |---|---|---|---|
376
+ | Model | `rig seat set-model` | `rig ps --nodes` shows the configured model beside the last observed one, or `UNKNOWN (<reason>)` | The next managed resume or successor launch |
377
+ | Reasoning effort | `rig seat set-effort` | `rig seat effort <seat>`: requested, saved, sent at launch, and what the session recorded, which is not verified until it takes a turn | Its next managed continuation; nothing restarts |
378
+ | Permissions | `rig seat set-permissions` (`--mode`, `--rules`, or for Codex `--codex-permissions` or `--codex-profile`), shown by `rig seat status` | What it launched with; a status read doesn't prove the running process enforces the selection | Its next managed launch or resume ([per-seat permission mode](getting-started.md#per-seat-permission-mode)) |
379
+ | Working directory | `rig seat set-cwd`, shown by `rig seat status` as **Working directory for future launches** | The directory it started in | `rig seat launch --fresh --stop` (a blank conversation) or `rig handover --source rebuild` (durable context); [details](#change-an-existing-seats-working-directory) |
380
+ | Startup files and skills | The spec's startup files, skills and actions | What its conversation read when it started; editing a file afterwards doesn't reach it | A fresh launch or a handover delivers them again; for the running seat, send or walk the change (`rig walk <seat> --through <files>`) |
381
+ | Tools (MCP servers, plugins) | Selected fragments, merged into the harness's own config (`.mcp.json` for Claude, `config.toml` for Codex) | Unknown to OpenRig: registered isn't active, Claude asks before it uses a new server, and no OpenRig command reports which tools a running harness loaded | Check in the harness itself (Claude Code's `/mcp`); a running session may need a restart to pick up newly written config ([runtime config disclosure](#runtime-config-disclosure)) |
382
+
383
+ Per harness: Claude Code's and Codex's permission choices are in the setup reference
384
+ ([Claude Code](getting-started.md#claude-code-a-different-launch-flag),
385
+ [Codex](getting-started.md#codex-select-sandbox-and-approvals-together)), Codex homes are
386
+ [below](#separate-codex-homes-for-separate-installations), community harnesses' limits are in
387
+ [their presets](community-harness-presets.md), and moving a live seat to the other runtime is in the
388
+ [setup reference](getting-started.md#move-a-seat-to-the-other-runtime).
362
389
 
363
390
  ---
364
391
 
@@ -398,6 +425,11 @@ Types are `send_text`, `slash_command` and `startup_proof` (see "Startup proof"
398
425
  `idempotent` is required, and an action that isn't idempotent must not list `restore` in `applies_on`. Both phases
399
426
  run after the harness is ready: `after_files` (the default) after the post-launch files, then `after_ready`.
400
427
 
428
+ **Don't rename a managed Claude seat.** OpenRig starts every Claude seat with `--name <session>`, on a fresh start and on
429
+ every resume, and its own reads of the seat use that name: context usage and managed compaction read the status-line
430
+ record Claude saves under it, and the input box is recognized by the name on its border. A startup `/rename` to another
431
+ name breaks those reads until the next resume puts the session name back.
432
+
401
433
  ### Current Support Matrix
402
434
 
403
435
  | Capability | Status | Notes |
@@ -4,10 +4,10 @@ name: cursor
4
4
  command: openrig-cursor-launch
5
5
  maintainer: Your name or team
6
6
  limits:
7
- - startup assisted; check the pane and submit any staged identity text
8
7
  - resume reads a chat as missing unless its store is in the seat's Cursor config folder, under the seat's working directory
9
8
  - no guidance, skills or startup files are placed
10
9
  - needs-input and approval prompts are read from the screen only
11
10
  launch_result: true
12
11
  resume: true
13
- startup_assisted: true
12
+ startup_assisted: false
13
+ first_input: true
@@ -34,6 +34,13 @@ chat_store() {
34
34
  printf '%s/chats/%s/%s/store.db' "$CURSOR_CONFIG_DIR" "$sum" "$1"
35
35
  }
36
36
 
37
+ # Preserve the file's exact bytes, including trailing newlines. A read error stops before the harness starts.
38
+ if [ -n "${OPENRIG_FIRST_INPUT:-}" ]; then
39
+ first_input=$(cat "$OPENRIG_FIRST_INPUT" && printf '.')
40
+ first_input=${first_input%.}
41
+ set -- "$@" "$first_input"
42
+ fi
43
+
37
44
  if [ -n "${OPENRIG_RESUME_REF:-}" ]; then
38
45
  id="$OPENRIG_RESUME_REF"
39
46
  plain_id "$id" || { echo "openrig-cursor-launch: refusing an unusual chat id" >&2; exit 2; }
@@ -1,7 +1,8 @@
1
1
  # Merge this into each Hermes seat's config.yaml, in that seat's Hermes home ($OPENRIG_HOME/state/hermes/<node id> with
2
2
  # the example launcher), before the seat's first start.
3
3
  #
4
- # Hermes runs every tool command in one gateway per machine, with the gateway's environment. For each session it swaps
4
+ # Hermes runs every tool command in its gateway (one per Hermes home, so one per seat with the example launcher), with
5
+ # the gateway's environment. For each session it swaps
5
6
  # in the client's own values only for its toolchain names and the names listed here. Without this list, `rig` inside
6
7
  # Hermes runs as whichever seat started the gateway, or as no seat. With it, each seat runs `rig` as itself.
7
8
  # These are the seat's own OpenRig variables; none is a secret, and Hermes refuses credential-like names anyway.
@@ -0,0 +1,15 @@
1
+ # The Gateway must already run. Configure its route and authentication in this seat's OPENCLAW_CONFIG_PATH.
2
+ format: 1
3
+ name: openclaw-gateway
4
+ command: openrig-openclaw-launch --gateway
5
+ maintainer: Your name or team
6
+ limits:
7
+ - connects to an existing Gateway; this launcher never starts or stops that service
8
+ - stopping the TUI closes its client; an accepted turn may keep running on the Gateway
9
+ - uses only agent main; automatic session resets must stay off
10
+ - typing /new changes the native key while the seat keeps the name OpenRig gave it
11
+ - no guidance, skills or startup files are placed
12
+ - needs-input and approval prompts are read from the screen only
13
+ names_conversation: true
14
+ resume: true
15
+ first_input: true
@@ -4,10 +4,13 @@ name: openclaw
4
4
  command: openrig-openclaw-launch
5
5
  maintainer: Your name or team
6
6
  limits:
7
- - resume not declared until reopening a named session, and a missing one, have been checked with a real OpenClaw
8
- - runs locally in the pane (openclaw chat), with no Gateway; Gateway-attached use isn't covered
7
+ - runs locally in the pane (openclaw tui --local), using only agent main, with no Gateway; Gateway-attached use isn't covered
8
+ - Finish the current local turn before stopping; an interrupted local turn may retain native recovery work and refuse the next request. This launcher does not repair or retry it.
9
+ - local resume may run a native database integrity check; check that the TUI has finished startup before sending work
9
10
  - automatic session resets (session.reset) must stay off, or a key can start a new conversation
10
11
  - typing /new in the pane moves the chat to a fresh session key; the seat still holds the name OpenRig gave it
11
12
  - no guidance, skills or startup files are placed
12
13
  - needs-input and approval prompts are read from the screen only
13
14
  names_conversation: true
15
+ resume: true
16
+ first_input: true