@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
@@ -9,7 +9,7 @@ import { realDeps } from "./daemon.js";
9
9
  import { enumArg, positiveIntArg } from "../cli-error.js";
10
10
  import { resolveContextRef } from "../context-resolve.js";
11
11
  import { shellQuote } from "../cross-host-executor.js";
12
- import { loadHostRegistry, resolveHost } from "../host-registry.js";
12
+ import { loadHostRegistry, resolveHost, resolveRemoteBearer } from "../host-registry.js";
13
13
  import { loadHostBindings } from "../host-bindings.js";
14
14
  import { omittedReadField, readView } from "../read-view.js";
15
15
  import { buildWriteReceipt, compactOutputEnabled } from "../queue-receipt.js";
@@ -236,7 +236,8 @@ hostContext) {
236
236
  // render owns the 3-part fact/consequence/action + the io exit (response-integrity
237
237
  // contract). One render authority, layered context — never a swallowed exit.
238
238
  const where = hostContext ? ` (routing to host '${hostContext}')` : "";
239
- console.error(`queue transport failure${where}: ${err.message}`);
239
+ const what = err instanceof DaemonTimeoutError ? "queue request got no answer in time" : "queue transport failure";
240
+ console.error(`${what}${where}: ${err.message}`);
240
241
  console.error("The write outcome is INDETERMINATE if the request may have reached a daemon — reconcile by ID before any retry.");
241
242
  }
242
243
  throw err;
@@ -326,6 +327,13 @@ function writeReceipt(full, ctx) {
326
327
  function remoteHostOf(hostId) {
327
328
  return hostId && hostId !== "local" ? hostId : undefined;
328
329
  }
330
+ /** A cross-host queue write waits for the selected daemon's own answer. That daemon gives the remote 10 s
331
+ * (`QUEUE_FORWARD_TIMEOUT_MS` in the daemon's routes/queue.ts), so waiting only the client's 5 s default
332
+ * turns a slow remote's answer into an unknown outcome. */
333
+ const CROSS_HOST_QUEUE_WRITE_TIMEOUT_MS = 15_000;
334
+ function crossHostWriteOptions(hostId) {
335
+ return remoteHostOf(hostId) ? { timeoutMs: CROSS_HOST_QUEUE_WRITE_TIMEOUT_MS } : undefined;
336
+ }
329
337
  /** The daemon's own rule (`resolvesToLocalHost`): a `--host` naming the selected
330
338
  * daemon's selfHostId took the local path, so its receipt must not call the row
331
339
  * remote. Read only for a receipt; an unreadable id leaves the host unconfirmed. */
@@ -343,6 +351,99 @@ async function settleReceiptHost(client, receipt) {
343
351
  return { ...receipt, remoteHost: undefined };
344
352
  return selfHostId === undefined ? { ...receipt, remoteHostUnconfirmed: true } : receipt;
345
353
  }
354
+ /** How long the one read-back of a create with an unknown outcome waits for its answer. */
355
+ const CREATE_READ_BACK_TIMEOUT_MS = 10_000;
356
+ /** The daemon's host id: null when it reports none, undefined when it can't be read. */
357
+ async function daemonSelfHostId(client) {
358
+ try {
359
+ const health = await client.get("/healthz", { timeoutMs: 1_000 });
360
+ if (health.status !== 200)
361
+ return undefined;
362
+ return typeof health.data?.selfHostId === "string" && health.data.selfHostId ? health.data.selfHostId : null;
363
+ }
364
+ catch {
365
+ return undefined;
366
+ }
367
+ }
368
+ /** The source the daemon this client reached stores for the create, by its own rules: the sender this client sent, trimmed and
369
+ * without a trailing `@<that daemon's host id>` (canonicalSenderSession), or with no sender the body's claimed source, trimmed.
370
+ * A forwarded create's source then gains the forwarding daemon's host id (stampSelfHostSuffix), unless its origin was marked
371
+ * unknown. Undefined when that host id is needed and can't be read. */
372
+ async function storedSourceOf(client, sent) {
373
+ const { session, originUnknown } = await client.senderIdentity();
374
+ const source = (session ?? sent.claimedSource)?.trim();
375
+ if (!source)
376
+ return undefined;
377
+ const parts = source.split("@");
378
+ const canonicalizes = session !== undefined && parts.length === 3 && parts.every(Boolean);
379
+ const stamps = sent.remoteHost !== undefined && !originUnknown;
380
+ if (!canonicalizes && !(stamps && parts.length === 2))
381
+ return source;
382
+ const selfId = await daemonSelfHostId(client);
383
+ if (selfId === undefined)
384
+ return undefined;
385
+ const canonical = canonicalizes && parts[2] === selfId ? `${parts[0]}@${parts[1]}` : source;
386
+ // The daemon forwards only to another host (resolvesToLocalHost): a target naming its own id is a local create, unstamped.
387
+ const forwarded = stamps && sent.remoteHost !== selfId;
388
+ return forwarded && selfId && canonical.split("@").length === 2 ? `${canonical}@${selfId}` : canonical;
389
+ }
390
+ /** Which field shows a stored row isn't this create, by the rule the daemon applies to a create whose ID already exists
391
+ * (the same destination and source, compared exactly), plus the body, which that rule reports as not saved. "unread" when
392
+ * the source this create would have can't be established. Null when the row is this create. */
393
+ function notThisCreate(row, sent, storedSource) {
394
+ if (row.destinationSession !== sent.destinationSession)
395
+ return "destination";
396
+ if (storedSource === undefined)
397
+ return "unread";
398
+ if (row.sourceSession !== storedSource)
399
+ return "source";
400
+ if (row.body !== sent.body)
401
+ return "body";
402
+ return null;
403
+ }
404
+ /** A create whose answer didn't arrive, or arrived unreadable, may still have committed. Read the row back once by the ID it
405
+ * was sent with, from the daemon that holds it: this one for a local row, the destination's registered daemon for a
406
+ * cross-host one. Only a row that is this create counts as committed; anything else leaves the outcome unknown. It never
407
+ * sends the create again. */
408
+ async function readBackCreate(deps, client, hostId, qitemId, sent) {
409
+ const remote = remoteHostOf(hostId);
410
+ const where = remote ? ` on host '${remote}'` : "";
411
+ let reader = client;
412
+ let options = { timeoutMs: CREATE_READ_BACK_TIMEOUT_MS };
413
+ if (remote) {
414
+ const registry = loadHostRegistry();
415
+ const match = registry.ok ? resolveHost(registry.registry, remote, loadHostBindings().bindings) : undefined;
416
+ if (!match?.ok || match.host.transport !== "http") {
417
+ const why = match?.ok ? "its entry in this CLI's host registry is SSH, not a daemon URL" : "it isn't in this CLI's host registry";
418
+ return { row: null, note: `This CLI couldn't read the row back from host '${remote}' (${why}).` };
419
+ }
420
+ const bearer = resolveRemoteBearer(match.host);
421
+ if (!bearer.ok)
422
+ return { row: null, note: `This CLI couldn't read the row back from host '${remote}' (${bearer.error}).` };
423
+ reader = deps.clientFactory(match.host.url);
424
+ if (bearer.token)
425
+ options = { ...options, headers: { Authorization: `Bearer ${bearer.token}` } };
426
+ }
427
+ try {
428
+ const res = await reader.get(`/api/queue/${encodeURIComponent(qitemId)}`, options);
429
+ if (res.status === 200 && res.data?.qitemId === qitemId) {
430
+ const differs = notThisCreate(res.data, sent, await storedSourceOf(client, sent));
431
+ if (differs === "unread") {
432
+ return { row: null, note: `Row ${qitemId}${where} exists, but this CLI couldn't read this daemon's host id to tell whether its source is this create's, so the outcome is still unknown.` };
433
+ }
434
+ if (differs) {
435
+ return { row: null, note: `Row ${qitemId}${where} exists but isn't this create (its ${differs} differs), so the outcome is still unknown. Don't reuse this ID for other work.` };
436
+ }
437
+ return { row: res.data, note: `The create committed after all: row ${qitemId}${where} (read back by its ID).` };
438
+ }
439
+ if (res.status === 404)
440
+ return { row: null, note: `No row ${qitemId}${where} yet (read back once by its ID); it may still commit.` };
441
+ return { row: null, note: `Reading row ${qitemId}${where} back answered ${res.status}, so the outcome is still unknown.` };
442
+ }
443
+ catch (err) {
444
+ return { row: null, note: `Reading row ${qitemId}${where} back didn't answer (${err.message}), so the outcome is still unknown.` };
445
+ }
446
+ }
346
447
  async function printWriteResult(client, json, body, status, receipt) {
347
448
  const settled = receipt && status < 400 ? await settleReceiptHost(client, receipt) : null;
348
449
  const projected = settled ? buildWriteReceipt(body, settled) : null;
@@ -508,6 +609,18 @@ function resolveCurrentSession(explicit, optionName) {
508
609
  process.exitCode = 1;
509
610
  return undefined;
510
611
  }
612
+ /** For a verb whose actor is the seat's own identity (the X-OpenRig-Session header the CLI sets from OPENRIG_SESSION_NAME),
613
+ * where the named flag is deprecated and ignored: the error names what actually sets the actor, never the flag. */
614
+ function requireSeatSession(ignoredFlag) {
615
+ const session = readOpenRigEnv("OPENRIG_SESSION_NAME", "RIGGED_SESSION_NAME");
616
+ if (session)
617
+ return session;
618
+ console.error(`OPENRIG_SESSION_NAME is not set, so there's no seat to act as. Run this from a managed seat, or set ` +
619
+ `OPENRIG_SESSION_NAME to the seat's session name (for example dev-impl@my-rig). --${ignoredFlag} is ignored: the ` +
620
+ "actor is the seat's own identity.");
621
+ process.exitCode = 1;
622
+ return undefined;
623
+ }
511
624
  function extractRigName(sessionName) {
512
625
  // OPR.0.4.6.MH1 FR-8: the shared parse contract (greedy first-@ rig).
513
626
  return sessionRigOf(sessionName);
@@ -739,21 +852,63 @@ export function queueCommand(depsOverride) {
739
852
  // OPR.0.4.6.MH3 FR-1: the out-of-band host envelope (omitted for
740
853
  // plain local writes — the local path stays byte-identical).
741
854
  ...(hostResolved.hostId !== undefined ? { hostId: hostResolved.hostId } : {}),
742
- }).catch((error) => {
855
+ }, crossHostWriteOptions(hostResolved.hostId)).catch((error) => (error instanceof Error ? error : new Error(String(error))));
856
+ const sent = { destinationSession: hostResolved.destination, claimedSource: managedSource === undefined ? source : undefined, body: resolvedBody,
857
+ remoteHost: remoteHostOf(hostResolved.hostId) };
858
+ // Every create that's answered with a row ends here: its warning, --verify's delivery, and the output.
859
+ const finish = async (created, status) => {
860
+ const createWarning = created?.createWarning;
861
+ if (status < 400 && createWarning?.code === "qitem_body_not_saved" && typeof createWarning.message === "string") {
862
+ console.error(`Warning: ${createWarning.message}`);
863
+ }
864
+ // An ask to a shared channel was accepted; nothing there will answer it (0.7.3).
865
+ const advisories = Array.isArray(created?.advisories) ? created.advisories : [];
866
+ for (const advisory of advisories) {
867
+ if (status < 400 && advisory.code === "shared_channel_correspondence" && typeof advisory.message === "string")
868
+ console.error(`Warning: ${advisory.message}`);
869
+ }
870
+ if (opts.verify && status < 400) {
871
+ const createdId = typeof created.qitemId === "string" ? created.qitemId : null;
872
+ const delivery = createdId
873
+ ? await waitForDeliveryOutcome(client, createdId, deps.deliveryVerify, { destinationSession: hostResolved.destination, nudge: opts.nudge })
874
+ : unreadableDeliveryResult(null, hostResolved.destination, {}, "create response did not include a qitem id; delivery cannot be correlated");
875
+ await printWriteResult(client, opts.json ?? false, { ...created, qitemId: createdId, persisted: true, delivery }, status, receipt);
876
+ return;
877
+ }
878
+ await printWriteResult(client, opts.json ?? false, created, status, receipt);
879
+ };
880
+ if (res instanceof Error) {
743
881
  // A pre-header disconnect can follow a committed create. Preserve the
744
882
  // typed error, but do not let the shared renderer assert nondelivery.
745
- if (error instanceof DaemonConnectionError)
746
- error.writeOutcome = "unknown";
747
- if (error instanceof DaemonConnectionError || error instanceof DaemonResponseError) {
883
+ if (res instanceof DaemonConnectionError)
884
+ res.writeOutcome = "unknown";
885
+ // No answer in time, a lost connection, or a response lost or unreadable after its headers: the create may have
886
+ // committed, so read it back once by its ID.
887
+ if (res instanceof DaemonTimeoutError || res instanceof DaemonConnectionError || res instanceof DaemonResponseError) {
888
+ const late = await readBackCreate(deps, client, hostResolved.hostId, qitemId, sent);
889
+ console.error(late.note);
890
+ if (late.row) {
891
+ await finish(late.row, 200);
892
+ return;
893
+ }
894
+ }
895
+ if (res instanceof DaemonConnectionError || res instanceof DaemonResponseError) {
748
896
  // Keep the shared typed error/exit path, including --json, while
749
897
  // supplying the identity missing from an unreadable/late response.
750
- error.message += ` ${recovery}`;
898
+ res.message += ` ${recovery}`;
751
899
  }
752
- throw error;
753
- });
900
+ throw res;
901
+ }
754
902
  if (res.status >= 400 && res.data?.outcome === "indeterminate") {
755
903
  // Forwarded writes may return a structured unknown outcome rather
756
- // than throw. Preserve that failure and expose the same recovery ID.
904
+ // than throw: read the row back once from the destination before reporting it.
905
+ const late = await readBackCreate(deps, client, hostResolved.hostId, qitemId, sent);
906
+ console.error(late.note);
907
+ if (late.row) {
908
+ await finish(late.row, 200);
909
+ return;
910
+ }
911
+ // Preserve that failure and expose the same recovery ID.
757
912
  printResult(opts.json ?? false, { ...res.data, qitemId, recovery }, res.status);
758
913
  return;
759
914
  }
@@ -763,20 +918,7 @@ export function queueCommand(depsOverride) {
763
918
  const hint = hostSubstitutionHint(res.status, res.data, opts.destination, opts.host, hostResolved, `, keeping --id ${shellQuote(qitemId)}`);
764
919
  if (hint)
765
920
  console.error(hint);
766
- const createWarning = res.data?.createWarning;
767
- if (res.status < 400 && createWarning?.code === "qitem_body_not_saved" && typeof createWarning.message === "string") {
768
- console.error(`Warning: ${createWarning.message}`);
769
- }
770
- if (opts.verify && res.status < 400) {
771
- const created = res.data;
772
- const qitemId = typeof created.qitemId === "string" ? created.qitemId : null;
773
- const delivery = qitemId
774
- ? await waitForDeliveryOutcome(client, qitemId, deps.deliveryVerify, { destinationSession: hostResolved.destination, nudge: opts.nudge })
775
- : unreadableDeliveryResult(null, hostResolved.destination, {}, "create response did not include a qitem id; delivery cannot be correlated");
776
- await printWriteResult(client, opts.json ?? false, { ...created, qitemId, persisted: true, delivery }, res.status, receipt);
777
- return;
778
- }
779
- await printWriteResult(client, opts.json ?? false, res.data, res.status, receipt);
921
+ await finish(res.data, res.status);
780
922
  }, hostResolved.hostId !== undefined, hostResolved.hostId);
781
923
  });
782
924
  cmd
@@ -788,7 +930,7 @@ export function queueCommand(depsOverride) {
788
930
  .action(async (qitemId, opts) => {
789
931
  // P21 I3 reconcile: the claimant is DERIVED from the seat env — --destination deprecated + ignored,
790
932
  // no body claim. Verify the env (the header source) or the daemon returns 400 actor_required (no seat identity to record; P18 retired the 401 refusal).
791
- if (!resolveCurrentSession(undefined, "destination"))
933
+ if (!requireSeatSession("destination"))
792
934
  return;
793
935
  const deps = getDeps();
794
936
  await withClient(deps, async (client) => {
@@ -806,7 +948,7 @@ export function queueCommand(depsOverride) {
806
948
  .action(async (qitemId, opts) => {
807
949
  // P21 I3 reconcile: the releaser is DERIVED from the seat env — --destination deprecated + ignored,
808
950
  // no body claim. Verify the env or the daemon returns 400 actor_required (no seat identity to record; P18 retired the 401 refusal).
809
- if (!resolveCurrentSession(undefined, "destination"))
951
+ if (!requireSeatSession("destination"))
810
952
  return;
811
953
  const deps = getDeps();
812
954
  await withClient(deps, async (client) => {
@@ -818,11 +960,11 @@ export function queueCommand(depsOverride) {
818
960
  });
819
961
  cmd
820
962
  .command("update <qitemId>")
821
- .description("Append a note and/or mutate qitem state. A note without --state never changes row state. state=done REQUIRES --closure-reason (one of: handed_off_to, denied, canceled, no-follow-on, escalation, superseded). To wait for another qitem, use rig queue block <id> --on <child>. Closure ≠ acceptance: handed_off_to records delivery to the next stage; acceptance is the next stage's verdict on its own qitem, not this closure.")
963
+ .description("Append a note and/or mutate qitem state. A note without --state never changes row state. state=done REQUIRES --closure-reason (one of: handed_off_to, denied, canceled, no-follow-on, escalation, superseded). To cancel a row: --state done --closure-reason canceled. To wait for another qitem, use rig queue block <id> --on <child>. Closure ≠ acceptance: handed_off_to records delivery to the next stage; acceptance is the next stage's verdict on its own qitem, not this closure.")
822
964
  .option("--actor <session>", "(deprecated, ignored) the actor is derived from the seat env (X-OpenRig-Session); P21 I3 made the update route derive it from the transport header")
823
965
  .option("--state <state>", "New state: pending | in-progress | done | blocked | failed | denied | canceled | handed-off")
824
966
  .option("--reopen", "Explicitly acknowledge a deliberate terminal-to-active repair; requires --state and --note")
825
- .option("--closure-reason <reason>", "Required for state=done; also 'superseded' on state=canceled (with --closure-target = the successor) records a supersession, distinct from an abandoned cancel")
967
+ .option("--closure-reason <reason>", "Required for state=done. --state canceled takes no reason, except 'superseded' (with --closure-target = the successor), which records a supersession, distinct from an abandoned cancel")
826
968
  .option("--closure-target <target>", "Required for handed_off_to, escalation, and superseded; blocked_on park records use state=blocked with --blocked-on")
827
969
  .option("--resolution <text>", "The outcome, stored on the row and shown by rig queue show. Needs --state done, canceled, denied, failed or handed-off, and non-blank text. Stored when the update closes an open row, after anything the row already has (a fallback line, an earlier outcome); a row that is already closed keeps what it has")
828
970
  .option("--blocked-on <blocker>", "For state=blocked: the blocker — a qitem id (must exist and be live), a human seat (FR-6 park; requires summary + evidence_ref), or a typed non-qitem gate 'fold:<what>' / 'auth:<what>' / 'external:<what>'")
@@ -854,7 +996,7 @@ export function queueCommand(depsOverride) {
854
996
  // P21 I3 reconcile: the actor is DERIVED from the seat env (X-OpenRig-Session, stamped by
855
997
  // DaemonClient) — --actor is deprecated + ignored, no body actorSession. Verify the env (the
856
998
  // header source) or the daemon returns 400 actor_required (no seat identity to record; P18 retired the 401 refusal). Matches `resolve`.
857
- if (!resolveCurrentSession(undefined, "actor"))
999
+ if (!requireSeatSession("actor"))
858
1000
  return;
859
1001
  const deps = getDeps();
860
1002
  await withClient(deps, async (client) => {
@@ -907,7 +1049,7 @@ workspace home that is deferred/not-imminent belongs in its mission/slice.`)
907
1049
  .action(async (qitemId, opts) => {
908
1050
  // P21 I3 reconcile: actor DERIVED from the seat env (X-OpenRig-Session) — --actor deprecated +
909
1051
  // ignored, no body actorSession. Verify the env, else the daemon returns 400 actor_required (no seat identity to record). Matches `resolve`.
910
- if (!resolveCurrentSession(undefined, "actor"))
1052
+ if (!requireSeatSession("actor"))
911
1053
  return;
912
1054
  const deps = getDeps();
913
1055
  await withClient(deps, async (client) => {
@@ -931,8 +1073,8 @@ workspace home that is deferred/not-imminent belongs in its mission/slice.`)
931
1073
  // in-progress on the SAME item) — never a closure, never a new owner.
932
1074
  cmd
933
1075
  .command("resolve <qitemId>")
934
- .description("Resolve a leg-1 parked qitem (state=blocked on a human seat): records the decision text durably in queue_transitions, unparks blocked -> in-progress, and nudges the owner. Non-closure.")
935
- .requiredOption("--decision <text>", "The human's decision text (non-empty; lands in transition_note + the audit row)")
1076
+ .description("Resolve a qitem blocked on a human seat or a typed gate (external:, fold:, auth:): records the decision or satisfaction evidence durably, unparks blocked -> in-progress, and nudges the owner. Non-closure; qitem dependencies are not resolved by this command.")
1077
+ .requiredOption("--decision <text>", "The human decision or typed-gate satisfaction evidence (non-empty; lands in transition_note + the audit row)")
936
1078
  .option("--actor <session>", "(deprecated, ignored) resolver is derived from the seat env (X-OpenRig-Session)")
937
1079
  .option("--bearer <token>", "Operator bearer token for the mission-control write gate (or set OPENRIG_AUTH_BEARER_TOKEN; loopback daemons without a configured bearer need none)")
938
1080
  .option("--no-notify", "Skip the best-effort owner nudge (the unpark still commits)")
@@ -941,7 +1083,7 @@ workspace home that is deferred/not-imminent belongs in its mission/slice.`)
941
1083
  // P21: the resolver is DERIVED from the seat env (X-OpenRig-Session, stamped by DaemonClient) —
942
1084
  // --actor is deprecated + ignored. The pre-check verifies the env (the header source); else the
943
1085
  // daemon returns 400 actor_required (no seat identity to record; P18 retired the 401 refusal).
944
- if (!resolveCurrentSession(undefined, "actor"))
1086
+ if (!requireSeatSession("actor"))
945
1087
  return;
946
1088
  const deps = getDeps();
947
1089
  const bearer = opts.bearer ?? process.env.OPENRIG_AUTH_BEARER_TOKEN;
@@ -979,7 +1121,7 @@ workspace home that is deferred/not-imminent belongs in its mission/slice.`)
979
1121
  .action(async (qitemId, opts) => {
980
1122
  // P21 I3 reconcile: the handing-off seat is DERIVED from the seat env (X-OpenRig-Session) —
981
1123
  // --from deprecated + ignored, no body fromSession. Verify the env or the daemon returns 400 actor_required (no seat identity to record; P18 retired the 401 refusal).
982
- if (!resolveCurrentSession(undefined, "from"))
1124
+ if (!requireSeatSession("from"))
983
1125
  return;
984
1126
  // slice-08 OPR.0.4.7.8 — body-input parity. Resolve through the shipped
985
1127
  // resolveQueueBody ONLY when a body source is supplied; neither preserves
@@ -1032,7 +1174,7 @@ workspace home that is deferred/not-imminent belongs in its mission/slice.`)
1032
1174
  targetRepo: opts.targetRepo,
1033
1175
  nudge: opts.nudge,
1034
1176
  ...(hostResolved.hostId !== undefined ? { hostId: hostResolved.hostId } : {}),
1035
- });
1177
+ }, crossHostWriteOptions(hostResolved.hostId));
1036
1178
  const hint = hostSubstitutionHint(res.status, res.data, opts.to, opts.host, hostResolved);
1037
1179
  if (hint)
1038
1180
  console.error(hint);
@@ -1064,7 +1206,7 @@ workspace home that is deferred/not-imminent belongs in its mission/slice.`)
1064
1206
  .action(async (qitemId, opts) => {
1065
1207
  // P21 I3 reconcile: the handing-off seat is DERIVED from the seat env (X-OpenRig-Session) —
1066
1208
  // --from deprecated + ignored, no body fromSession. Verify the env or the daemon returns 400 actor_required (no seat identity to record; P18 retired the 401 refusal).
1067
- if (!resolveCurrentSession(undefined, "from"))
1209
+ if (!requireSeatSession("from"))
1068
1210
  return;
1069
1211
  // slice-08 OPR.0.4.7.8 — body-input parity (same contract as handoff):
1070
1212
  // resolve only when a body source is supplied; neither keeps the
@@ -1115,7 +1257,7 @@ workspace home that is deferred/not-imminent belongs in its mission/slice.`)
1115
1257
  targetRepo: opts.targetRepo,
1116
1258
  nudge: opts.nudge,
1117
1259
  ...(hostResolved.hostId !== undefined ? { hostId: hostResolved.hostId } : {}),
1118
- });
1260
+ }, crossHostWriteOptions(hostResolved.hostId));
1119
1261
  const hint = hostSubstitutionHint(res.status, res.data, opts.to, opts.host, hostResolved);
1120
1262
  if (hint)
1121
1263
  console.error(hint);
@@ -1489,7 +1631,7 @@ Examples:
1489
1631
  }
1490
1632
  // P21 I3 reconcile: the sender is DERIVED from the seat env (X-OpenRig-Session) — --sender
1491
1633
  // deprecated + ignored, no body senderSession. Verify the env or the daemon returns 400 actor_required (no seat identity to record; P18 retired the 401 refusal).
1492
- if (!resolveCurrentSession(undefined, "sender"))
1634
+ if (!requireSeatSession("sender"))
1493
1635
  return;
1494
1636
  const deps = getDeps();
1495
1637
  const tags = opts.tags ? opts.tags.split(",").map((s) => s.trim()).filter(Boolean) : undefined;