@openrig/cli 0.7.0 → 0.7.2

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 (1379) hide show
  1. package/README.md +9 -8
  2. package/daemon/assets/claude-statusline-context.cjs +13 -3
  3. package/daemon/assets/guidance/openrig-seat-skills.md +1 -0
  4. package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
  5. package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
  6. package/daemon/assets/plugins/openrig-core/hooks/claude.json +11 -11
  7. package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +9 -8
  8. package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus-health.cjs +2 -2
  9. package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus.cjs +9 -6
  10. package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/precompact-hook.mjs +1 -1
  11. package/daemon/assets/plugins/openrig-core/skills/delegating-work/SKILL.md +1 -1
  12. package/daemon/assets/plugins/openrig-core/skills/forming-an-openrig-mental-model/SKILL.md +13 -8
  13. package/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md +19 -4
  14. package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +254 -52
  15. package/daemon/assets/skills/rigs/SKILL.md +42 -10
  16. package/daemon/context-packs/help/help.md +6 -0
  17. package/daemon/context-packs/help/manifest.yaml +1 -1
  18. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  19. package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +271 -38
  20. package/daemon/context-packs/reference/acp-agents.md +77 -0
  21. package/daemon/context-packs/reference/getting-started.md +145 -14
  22. package/daemon/context-packs/reference/manifest.yaml +6 -3
  23. package/daemon/context-packs/reference/rig-spec.md +175 -5
  24. package/daemon/context-packs/reference/whats-new.md +275 -113
  25. package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
  26. package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
  27. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
  28. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
  29. package/daemon/context-packs/skills/claude-compaction-restore/scripts/precompact-hook.mjs +1 -1
  30. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  31. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  32. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  33. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  34. package/daemon/context-packs/skills/core/messaging-the-human/SKILL.md +19 -4
  35. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
  36. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  37. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  38. package/daemon/context-packs/skills/core/openrig-herdr/SKILL.md +18 -3
  39. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
  40. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
  41. package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
  42. package/daemon/context-packs/skills/core/openrig-software-factory/references/worked-example.md +2 -2
  43. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
  44. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
  45. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
  46. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
  47. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
  48. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
  49. package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
  50. package/daemon/context-packs/skills/delegating-work/SKILL.md +1 -1
  51. package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
  52. package/daemon/context-packs/skills/forming-an-openrig-mental-model/SKILL.md +13 -8
  53. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
  54. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
  55. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
  56. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
  57. package/daemon/context-packs/skills/openrig-user/SKILL.md +254 -52
  58. package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
  59. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
  60. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  61. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  62. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  63. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  64. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  65. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
  66. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  67. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  68. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  69. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  70. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  71. package/daemon/context-packs/skills/process/agent-browser/LICENSE.txt +201 -0
  72. package/daemon/context-packs/skills/process/agent-browser/OPENRIG.md +13 -29
  73. package/daemon/context-packs/skills/process/agent-browser/SKILL.md +7 -7
  74. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +3 -1
  75. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  76. package/daemon/context-packs/skills/process/dogfood/LICENSE.txt +201 -0
  77. package/daemon/context-packs/skills/process/dogfood/SKILL.md +6 -2
  78. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +3 -1
  79. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  80. package/daemon/context-packs/skills/process/systematic-debugging/LICENSE.txt +21 -0
  81. package/daemon/context-packs/skills/process/systematic-debugging/SKILL.md +6 -2
  82. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +3 -1
  83. package/daemon/context-packs/skills/process/test-driven-development/LICENSE.txt +21 -0
  84. package/daemon/context-packs/skills/process/test-driven-development/SKILL.md +5 -1
  85. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +3 -1
  86. package/daemon/context-packs/skills/process/verification-before-completion/LICENSE.txt +21 -0
  87. package/daemon/context-packs/skills/process/verification-before-completion/SKILL.md +5 -1
  88. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +3 -1
  89. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
  90. package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
  91. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
  92. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
  93. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
  94. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
  95. package/daemon/context-packs/world-example/manifest.yaml +1 -1
  96. package/daemon/context-packs/world-public/manifest.yaml +1 -1
  97. package/daemon/dist/adapters/claude-code-adapter.d.ts +4 -0
  98. package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
  99. package/daemon/dist/adapters/claude-code-adapter.js +138 -41
  100. package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
  101. package/daemon/dist/adapters/claude-resume.d.ts +9 -1
  102. package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
  103. package/daemon/dist/adapters/claude-resume.js +37 -11
  104. package/daemon/dist/adapters/claude-resume.js.map +1 -1
  105. package/daemon/dist/adapters/codex-resume.d.ts +10 -4
  106. package/daemon/dist/adapters/codex-resume.d.ts.map +1 -1
  107. package/daemon/dist/adapters/codex-resume.js +59 -14
  108. package/daemon/dist/adapters/codex-resume.js.map +1 -1
  109. package/daemon/dist/adapters/codex-runtime-adapter.d.ts +54 -16
  110. package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
  111. package/daemon/dist/adapters/codex-runtime-adapter.js +664 -117
  112. package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
  113. package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts +25 -2
  114. package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
  115. package/daemon/dist/adapters/community-harness-runtime-adapter.js +122 -9
  116. package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
  117. package/daemon/dist/adapters/compose-services-adapter.d.ts +16 -0
  118. package/daemon/dist/adapters/compose-services-adapter.d.ts.map +1 -1
  119. package/daemon/dist/adapters/compose-services-adapter.js +46 -2
  120. package/daemon/dist/adapters/compose-services-adapter.js.map +1 -1
  121. package/daemon/dist/adapters/kernel-authority.d.ts +1 -1
  122. package/daemon/dist/adapters/kernel-authority.d.ts.map +1 -1
  123. package/daemon/dist/adapters/kernel-authority.js +13 -2
  124. package/daemon/dist/adapters/kernel-authority.js.map +1 -1
  125. package/daemon/dist/adapters/pi-runner.d.ts +11 -0
  126. package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
  127. package/daemon/dist/adapters/pi-runner.js +81 -31
  128. package/daemon/dist/adapters/pi-runner.js.map +1 -1
  129. package/daemon/dist/adapters/pi-runtime-adapter.d.ts.map +1 -1
  130. package/daemon/dist/adapters/pi-runtime-adapter.js +9 -6
  131. package/daemon/dist/adapters/pi-runtime-adapter.js.map +1 -1
  132. package/daemon/dist/adapters/stub-runtime-adapter.d.ts.map +1 -1
  133. package/daemon/dist/adapters/stub-runtime-adapter.js +9 -5
  134. package/daemon/dist/adapters/stub-runtime-adapter.js.map +1 -1
  135. package/daemon/dist/adapters/tmux-server.d.ts +3 -0
  136. package/daemon/dist/adapters/tmux-server.d.ts.map +1 -1
  137. package/daemon/dist/adapters/tmux-server.js +11 -2
  138. package/daemon/dist/adapters/tmux-server.js.map +1 -1
  139. package/daemon/dist/adapters/tmux.d.ts +53 -4
  140. package/daemon/dist/adapters/tmux.d.ts.map +1 -1
  141. package/daemon/dist/adapters/tmux.js +225 -40
  142. package/daemon/dist/adapters/tmux.js.map +1 -1
  143. package/daemon/dist/adapters/yolo-mode.d.ts +7 -0
  144. package/daemon/dist/adapters/yolo-mode.d.ts.map +1 -1
  145. package/daemon/dist/adapters/yolo-mode.js +8 -0
  146. package/daemon/dist/adapters/yolo-mode.js.map +1 -1
  147. package/daemon/dist/attention-surface.d.ts +14 -0
  148. package/daemon/dist/attention-surface.d.ts.map +1 -1
  149. package/daemon/dist/attention-surface.js.map +1 -1
  150. package/daemon/dist/build-info.js +3 -3
  151. package/daemon/dist/codex-auth-surface.d.ts +2 -0
  152. package/daemon/dist/codex-auth-surface.d.ts.map +1 -0
  153. package/daemon/dist/codex-auth-surface.js +2 -0
  154. package/daemon/dist/codex-auth-surface.js.map +1 -0
  155. package/daemon/dist/daemon-db-path.d.ts +6 -0
  156. package/daemon/dist/daemon-db-path.d.ts.map +1 -1
  157. package/daemon/dist/daemon-db-path.js +98 -1
  158. package/daemon/dist/daemon-db-path.js.map +1 -1
  159. package/daemon/dist/daemon-shutdown.d.ts.map +1 -1
  160. package/daemon/dist/daemon-shutdown.js +4 -2
  161. package/daemon/dist/daemon-shutdown.js.map +1 -1
  162. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  163. package/daemon/dist/db/all-migrations.js +28 -0
  164. package/daemon/dist/db/all-migrations.js.map +1 -1
  165. package/daemon/dist/db/migrations/124_context_usage_watchdog_units.d.ts +4 -0
  166. package/daemon/dist/db/migrations/124_context_usage_watchdog_units.d.ts.map +1 -0
  167. package/daemon/dist/db/migrations/124_context_usage_watchdog_units.js +9 -0
  168. package/daemon/dist/db/migrations/124_context_usage_watchdog_units.js.map +1 -0
  169. package/daemon/dist/db/migrations/125_node_advisor.d.ts +3 -0
  170. package/daemon/dist/db/migrations/125_node_advisor.d.ts.map +1 -0
  171. package/daemon/dist/db/migrations/125_node_advisor.js +8 -0
  172. package/daemon/dist/db/migrations/125_node_advisor.js.map +1 -0
  173. package/daemon/dist/db/migrations/127_operation_correlation.d.ts +3 -0
  174. package/daemon/dist/db/migrations/127_operation_correlation.d.ts.map +1 -0
  175. package/daemon/dist/db/migrations/127_operation_correlation.js +10 -0
  176. package/daemon/dist/db/migrations/127_operation_correlation.js.map +1 -0
  177. package/daemon/dist/db/migrations/128_terminal_policy.d.ts +3 -0
  178. package/daemon/dist/db/migrations/128_terminal_policy.d.ts.map +1 -0
  179. package/daemon/dist/db/migrations/128_terminal_policy.js +37 -0
  180. package/daemon/dist/db/migrations/128_terminal_policy.js.map +1 -0
  181. package/daemon/dist/db/migrations/129_stream_dispositions.d.ts +10 -0
  182. package/daemon/dist/db/migrations/129_stream_dispositions.d.ts.map +1 -0
  183. package/daemon/dist/db/migrations/129_stream_dispositions.js +35 -0
  184. package/daemon/dist/db/migrations/129_stream_dispositions.js.map +1 -0
  185. package/daemon/dist/db/migrations/130_stream_subscriptions.d.ts +11 -0
  186. package/daemon/dist/db/migrations/130_stream_subscriptions.d.ts.map +1 -0
  187. package/daemon/dist/db/migrations/130_stream_subscriptions.js +33 -0
  188. package/daemon/dist/db/migrations/130_stream_subscriptions.js.map +1 -0
  189. package/daemon/dist/db/migrations/131_stream_retention_floor.d.ts +8 -0
  190. package/daemon/dist/db/migrations/131_stream_retention_floor.d.ts.map +1 -0
  191. package/daemon/dist/db/migrations/131_stream_retention_floor.js +20 -0
  192. package/daemon/dist/db/migrations/131_stream_retention_floor.js.map +1 -0
  193. package/daemon/dist/db/migrations/132_seat_runtime_switches.d.ts +10 -0
  194. package/daemon/dist/db/migrations/132_seat_runtime_switches.d.ts.map +1 -0
  195. package/daemon/dist/db/migrations/132_seat_runtime_switches.js +46 -0
  196. package/daemon/dist/db/migrations/132_seat_runtime_switches.js.map +1 -0
  197. package/daemon/dist/db/migrations/133_stream_reader_actions.d.ts +8 -0
  198. package/daemon/dist/db/migrations/133_stream_reader_actions.d.ts.map +1 -0
  199. package/daemon/dist/db/migrations/133_stream_reader_actions.js +25 -0
  200. package/daemon/dist/db/migrations/133_stream_reader_actions.js.map +1 -0
  201. package/daemon/dist/db/migrations/134_claude_token_readings.d.ts +3 -0
  202. package/daemon/dist/db/migrations/134_claude_token_readings.d.ts.map +1 -0
  203. package/daemon/dist/db/migrations/134_claude_token_readings.js +21 -0
  204. package/daemon/dist/db/migrations/134_claude_token_readings.js.map +1 -0
  205. package/daemon/dist/db/migrations/135_seat_identity_process_evidence.d.ts +3 -0
  206. package/daemon/dist/db/migrations/135_seat_identity_process_evidence.d.ts.map +1 -0
  207. package/daemon/dist/db/migrations/135_seat_identity_process_evidence.js +16 -0
  208. package/daemon/dist/db/migrations/135_seat_identity_process_evidence.js.map +1 -0
  209. package/daemon/dist/db/migrations/136_node_launch_recipe.d.ts +9 -0
  210. package/daemon/dist/db/migrations/136_node_launch_recipe.d.ts.map +1 -0
  211. package/daemon/dist/db/migrations/136_node_launch_recipe.js +11 -0
  212. package/daemon/dist/db/migrations/136_node_launch_recipe.js.map +1 -0
  213. package/daemon/dist/db/migrations/138_node_claude_token_ref.d.ts +3 -0
  214. package/daemon/dist/db/migrations/138_node_claude_token_ref.d.ts.map +1 -0
  215. package/daemon/dist/db/migrations/138_node_claude_token_ref.js +8 -0
  216. package/daemon/dist/db/migrations/138_node_claude_token_ref.js.map +1 -0
  217. package/daemon/dist/db/migrations/139_node_claude_permissions.d.ts +3 -0
  218. package/daemon/dist/db/migrations/139_node_claude_permissions.d.ts.map +1 -0
  219. package/daemon/dist/db/migrations/139_node_claude_permissions.js +5 -0
  220. package/daemon/dist/db/migrations/139_node_claude_permissions.js.map +1 -0
  221. package/daemon/dist/domain/active-occupant.d.ts +3 -0
  222. package/daemon/dist/domain/active-occupant.d.ts.map +1 -1
  223. package/daemon/dist/domain/active-occupant.js +6 -2
  224. package/daemon/dist/domain/active-occupant.js.map +1 -1
  225. package/daemon/dist/domain/activity-taxonomy.d.ts +3 -0
  226. package/daemon/dist/domain/activity-taxonomy.d.ts.map +1 -1
  227. package/daemon/dist/domain/activity-taxonomy.js.map +1 -1
  228. package/daemon/dist/domain/agent-activity-store.d.ts +6 -2
  229. package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
  230. package/daemon/dist/domain/agent-activity-store.js +13 -4
  231. package/daemon/dist/domain/agent-activity-store.js.map +1 -1
  232. package/daemon/dist/domain/agent-manifest.d.ts.map +1 -1
  233. package/daemon/dist/domain/agent-manifest.js +14 -2
  234. package/daemon/dist/domain/agent-manifest.js.map +1 -1
  235. package/daemon/dist/domain/bootstrap-orchestrator.d.ts +3 -0
  236. package/daemon/dist/domain/bootstrap-orchestrator.d.ts.map +1 -1
  237. package/daemon/dist/domain/bootstrap-orchestrator.js +35 -6
  238. package/daemon/dist/domain/bootstrap-orchestrator.js.map +1 -1
  239. package/daemon/dist/domain/builtin-startup-files.d.ts.map +1 -1
  240. package/daemon/dist/domain/builtin-startup-files.js +2 -0
  241. package/daemon/dist/domain/builtin-startup-files.js.map +1 -1
  242. package/daemon/dist/domain/bundle-behaviour.d.ts.map +1 -1
  243. package/daemon/dist/domain/bundle-behaviour.js +28 -1
  244. package/daemon/dist/domain/bundle-behaviour.js.map +1 -1
  245. package/daemon/dist/domain/claim-service.d.ts +19 -1
  246. package/daemon/dist/domain/claim-service.d.ts.map +1 -1
  247. package/daemon/dist/domain/claim-service.js +68 -20
  248. package/daemon/dist/domain/claim-service.js.map +1 -1
  249. package/daemon/dist/domain/classification-attempts.d.ts +4 -1
  250. package/daemon/dist/domain/classification-attempts.d.ts.map +1 -1
  251. package/daemon/dist/domain/classification-attempts.js +10 -1
  252. package/daemon/dist/domain/classification-attempts.js.map +1 -1
  253. package/daemon/dist/domain/classification-sources.d.ts +38 -0
  254. package/daemon/dist/domain/classification-sources.d.ts.map +1 -1
  255. package/daemon/dist/domain/classification-sources.js +24 -1
  256. package/daemon/dist/domain/classification-sources.js.map +1 -1
  257. package/daemon/dist/domain/claude-activity-hooks.d.ts +2 -2
  258. package/daemon/dist/domain/claude-activity-hooks.d.ts.map +1 -1
  259. package/daemon/dist/domain/claude-activity-hooks.js +8 -7
  260. package/daemon/dist/domain/claude-activity-hooks.js.map +1 -1
  261. package/daemon/dist/domain/claude-compaction-enforcer.d.ts +133 -8
  262. package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
  263. package/daemon/dist/domain/claude-compaction-enforcer.js +513 -64
  264. package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
  265. package/daemon/dist/domain/claude-core-plugin-env.d.ts +4 -1
  266. package/daemon/dist/domain/claude-core-plugin-env.d.ts.map +1 -1
  267. package/daemon/dist/domain/claude-core-plugin-env.js +23 -12
  268. package/daemon/dist/domain/claude-core-plugin-env.js.map +1 -1
  269. package/daemon/dist/domain/claude-credential-precedence.d.ts +33 -0
  270. package/daemon/dist/domain/claude-credential-precedence.d.ts.map +1 -0
  271. package/daemon/dist/domain/claude-credential-precedence.js +62 -0
  272. package/daemon/dist/domain/claude-credential-precedence.js.map +1 -0
  273. package/daemon/dist/domain/claude-managed-launch.d.ts +44 -5
  274. package/daemon/dist/domain/claude-managed-launch.d.ts.map +1 -1
  275. package/daemon/dist/domain/claude-managed-launch.js +159 -39
  276. package/daemon/dist/domain/claude-managed-launch.js.map +1 -1
  277. package/daemon/dist/domain/claude-permission-rules.d.ts +10 -0
  278. package/daemon/dist/domain/claude-permission-rules.d.ts.map +1 -0
  279. package/daemon/dist/domain/claude-permission-rules.js +41 -0
  280. package/daemon/dist/domain/claude-permission-rules.js.map +1 -0
  281. package/daemon/dist/domain/claude-seat-token.d.ts +30 -0
  282. package/daemon/dist/domain/claude-seat-token.d.ts.map +1 -0
  283. package/daemon/dist/domain/claude-seat-token.js +78 -0
  284. package/daemon/dist/domain/claude-seat-token.js.map +1 -0
  285. package/daemon/dist/domain/codex-auth.d.ts +148 -0
  286. package/daemon/dist/domain/codex-auth.d.ts.map +1 -0
  287. package/daemon/dist/domain/codex-auth.js +506 -0
  288. package/daemon/dist/domain/codex-auth.js.map +1 -0
  289. package/daemon/dist/domain/codex-daemon-support.d.ts +2 -1
  290. package/daemon/dist/domain/codex-daemon-support.d.ts.map +1 -1
  291. package/daemon/dist/domain/codex-daemon-support.js +3 -2
  292. package/daemon/dist/domain/codex-daemon-support.js.map +1 -1
  293. package/daemon/dist/domain/codex-git-add-dirs.d.ts +1 -1
  294. package/daemon/dist/domain/codex-git-add-dirs.d.ts.map +1 -1
  295. package/daemon/dist/domain/codex-network-default.d.ts +2 -1
  296. package/daemon/dist/domain/codex-network-default.d.ts.map +1 -1
  297. package/daemon/dist/domain/codex-network-default.js +3 -2
  298. package/daemon/dist/domain/codex-network-default.js.map +1 -1
  299. package/daemon/dist/domain/codex-owned-plugin-trust.d.ts +26 -0
  300. package/daemon/dist/domain/codex-owned-plugin-trust.d.ts.map +1 -0
  301. package/daemon/dist/domain/codex-owned-plugin-trust.js +187 -0
  302. package/daemon/dist/domain/codex-owned-plugin-trust.js.map +1 -0
  303. package/daemon/dist/domain/codex-rebuild-permissions.d.ts +54 -0
  304. package/daemon/dist/domain/codex-rebuild-permissions.d.ts.map +1 -0
  305. package/daemon/dist/domain/codex-rebuild-permissions.js +134 -0
  306. package/daemon/dist/domain/codex-rebuild-permissions.js.map +1 -0
  307. package/daemon/dist/domain/codex-team-workspace.d.ts +5 -0
  308. package/daemon/dist/domain/codex-team-workspace.d.ts.map +1 -1
  309. package/daemon/dist/domain/codex-team-workspace.js +37 -0
  310. package/daemon/dist/domain/codex-team-workspace.js.map +1 -1
  311. package/daemon/dist/domain/community-harness-first-input.d.ts +7 -0
  312. package/daemon/dist/domain/community-harness-first-input.d.ts.map +1 -0
  313. package/daemon/dist/domain/community-harness-first-input.js +16 -0
  314. package/daemon/dist/domain/community-harness-first-input.js.map +1 -0
  315. package/daemon/dist/domain/community-harness-launch-result.d.ts +33 -0
  316. package/daemon/dist/domain/community-harness-launch-result.d.ts.map +1 -0
  317. package/daemon/dist/domain/community-harness-launch-result.js +93 -0
  318. package/daemon/dist/domain/community-harness-launch-result.js.map +1 -0
  319. package/daemon/dist/domain/community-harness-presets.d.ts +29 -2
  320. package/daemon/dist/domain/community-harness-presets.d.ts.map +1 -1
  321. package/daemon/dist/domain/community-harness-presets.js +51 -5
  322. package/daemon/dist/domain/community-harness-presets.js.map +1 -1
  323. package/daemon/dist/domain/compaction-restore-notice.d.ts +6 -0
  324. package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -0
  325. package/daemon/dist/domain/compaction-restore-notice.js +27 -0
  326. package/daemon/dist/domain/compaction-restore-notice.js.map +1 -0
  327. package/daemon/dist/domain/composer-prompts.d.ts +5 -2
  328. package/daemon/dist/domain/composer-prompts.d.ts.map +1 -1
  329. package/daemon/dist/domain/composer-prompts.js +2 -2
  330. package/daemon/dist/domain/composer-prompts.js.map +1 -1
  331. package/daemon/dist/domain/context-monitor.d.ts.map +1 -1
  332. package/daemon/dist/domain/context-monitor.js +2 -1
  333. package/daemon/dist/domain/context-monitor.js.map +1 -1
  334. package/daemon/dist/domain/context-packs/seat-recap-store.d.ts +14 -0
  335. package/daemon/dist/domain/context-packs/seat-recap-store.d.ts.map +1 -1
  336. package/daemon/dist/domain/context-packs/seat-recap-store.js +57 -1
  337. package/daemon/dist/domain/context-packs/seat-recap-store.js.map +1 -1
  338. package/daemon/dist/domain/context-usage-store.d.ts.map +1 -1
  339. package/daemon/dist/domain/context-usage-store.js +6 -1
  340. package/daemon/dist/domain/context-usage-store.js.map +1 -1
  341. package/daemon/dist/domain/continuity-policy-materializer.d.ts +1 -0
  342. package/daemon/dist/domain/continuity-policy-materializer.d.ts.map +1 -1
  343. package/daemon/dist/domain/continuity-policy-materializer.js +2 -0
  344. package/daemon/dist/domain/continuity-policy-materializer.js.map +1 -1
  345. package/daemon/dist/domain/current-work.d.ts +15 -4
  346. package/daemon/dist/domain/current-work.d.ts.map +1 -1
  347. package/daemon/dist/domain/current-work.js +26 -13
  348. package/daemon/dist/domain/current-work.js.map +1 -1
  349. package/daemon/dist/domain/draft-aware-delivery.d.ts.map +1 -1
  350. package/daemon/dist/domain/draft-aware-delivery.js +1 -1
  351. package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
  352. package/daemon/dist/domain/execution-view.d.ts.map +1 -1
  353. package/daemon/dist/domain/execution-view.js +12 -8
  354. package/daemon/dist/domain/execution-view.js.map +1 -1
  355. package/daemon/dist/domain/footprint-choice.d.ts +41 -0
  356. package/daemon/dist/domain/footprint-choice.d.ts.map +1 -0
  357. package/daemon/dist/domain/footprint-choice.js +42 -0
  358. package/daemon/dist/domain/footprint-choice.js.map +1 -0
  359. package/daemon/dist/domain/gateway/delivery-rules-engine.d.ts +3 -0
  360. package/daemon/dist/domain/gateway/delivery-rules-engine.d.ts.map +1 -1
  361. package/daemon/dist/domain/gateway/delivery-rules-engine.js +1 -1
  362. package/daemon/dist/domain/gateway/delivery-rules-engine.js.map +1 -1
  363. package/daemon/dist/domain/gateway/human-registry.d.ts +32 -0
  364. package/daemon/dist/domain/gateway/human-registry.d.ts.map +1 -1
  365. package/daemon/dist/domain/gateway/human-registry.js +71 -4
  366. package/daemon/dist/domain/gateway/human-registry.js.map +1 -1
  367. package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts.map +1 -1
  368. package/daemon/dist/domain/gateway/operator-delivery-engine.js +3 -1
  369. package/daemon/dist/domain/gateway/operator-delivery-engine.js.map +1 -1
  370. package/daemon/dist/domain/gateway/slack/inbound.d.ts +1 -0
  371. package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
  372. package/daemon/dist/domain/gateway/slack/inbound.js +58 -9
  373. package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
  374. package/daemon/dist/domain/gateway/slack/message.d.ts +6 -1
  375. package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
  376. package/daemon/dist/domain/gateway/slack/message.js +15 -6
  377. package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
  378. package/daemon/dist/domain/gateway/slack/queue-access.d.ts +7 -0
  379. package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
  380. package/daemon/dist/domain/gateway/slack/queue-access.js +14 -2
  381. package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
  382. package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +1 -3
  383. package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
  384. package/daemon/dist/domain/gateway/slack/slack-delivery.js +22 -22
  385. package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
  386. package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
  387. package/daemon/dist/domain/gateway/slack/slack-subsystem.js +8 -7
  388. package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
  389. package/daemon/dist/domain/generated-file-hygiene.js +1 -1
  390. package/daemon/dist/domain/generated-file-hygiene.js.map +1 -1
  391. package/daemon/dist/domain/graph-projection.d.ts +3 -0
  392. package/daemon/dist/domain/graph-projection.d.ts.map +1 -1
  393. package/daemon/dist/domain/graph-projection.js +2 -0
  394. package/daemon/dist/domain/graph-projection.js.map +1 -1
  395. package/daemon/dist/domain/health-diagnosis.d.ts.map +1 -1
  396. package/daemon/dist/domain/health-diagnosis.js +14 -6
  397. package/daemon/dist/domain/health-diagnosis.js.map +1 -1
  398. package/daemon/dist/domain/hot-potato-enforcer.d.ts +1 -1
  399. package/daemon/dist/domain/human-questions.d.ts +2 -0
  400. package/daemon/dist/domain/human-questions.d.ts.map +1 -1
  401. package/daemon/dist/domain/human-questions.js +5 -0
  402. package/daemon/dist/domain/human-questions.js.map +1 -1
  403. package/daemon/dist/domain/kernel-boot.d.ts +5 -1
  404. package/daemon/dist/domain/kernel-boot.d.ts.map +1 -1
  405. package/daemon/dist/domain/kernel-boot.js +34 -4
  406. package/daemon/dist/domain/kernel-boot.js.map +1 -1
  407. package/daemon/dist/domain/managed-blocks.d.ts +32 -1
  408. package/daemon/dist/domain/managed-blocks.d.ts.map +1 -1
  409. package/daemon/dist/domain/managed-blocks.js +109 -11
  410. package/daemon/dist/domain/managed-blocks.js.map +1 -1
  411. package/daemon/dist/domain/managed-restore-read-access.d.ts +20 -0
  412. package/daemon/dist/domain/managed-restore-read-access.d.ts.map +1 -0
  413. package/daemon/dist/domain/managed-restore-read-access.js +77 -0
  414. package/daemon/dist/domain/managed-restore-read-access.js.map +1 -0
  415. package/daemon/dist/domain/markdown-address.d.ts.map +1 -1
  416. package/daemon/dist/domain/markdown-address.js +21 -2
  417. package/daemon/dist/domain/markdown-address.js.map +1 -1
  418. package/daemon/dist/domain/mission-control/mission-control-action-log.d.ts +1 -1
  419. package/daemon/dist/domain/mission-control/mission-control-action-log.d.ts.map +1 -1
  420. package/daemon/dist/domain/mission-control/mission-control-action-log.js +3 -0
  421. package/daemon/dist/domain/mission-control/mission-control-action-log.js.map +1 -1
  422. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts +24 -3
  423. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
  424. package/daemon/dist/domain/mission-control/mission-control-write-contract.js +121 -8
  425. package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
  426. package/daemon/dist/domain/model-divergence/current-model-reader.d.ts +2 -0
  427. package/daemon/dist/domain/model-divergence/current-model-reader.d.ts.map +1 -1
  428. package/daemon/dist/domain/model-divergence/current-model-reader.js +7 -0
  429. package/daemon/dist/domain/model-divergence/current-model-reader.js.map +1 -1
  430. package/daemon/dist/domain/model-divergence/model-divergence-monitor.d.ts +10 -1
  431. package/daemon/dist/domain/model-divergence/model-divergence-monitor.d.ts.map +1 -1
  432. package/daemon/dist/domain/model-divergence/model-divergence-monitor.js +42 -6
  433. package/daemon/dist/domain/model-divergence/model-divergence-monitor.js.map +1 -1
  434. package/daemon/dist/domain/native-permission-store.d.ts +7 -2
  435. package/daemon/dist/domain/native-permission-store.d.ts.map +1 -1
  436. package/daemon/dist/domain/native-permission-store.js +13 -8
  437. package/daemon/dist/domain/native-permission-store.js.map +1 -1
  438. package/daemon/dist/domain/native-process-lineage.d.ts +3 -0
  439. package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
  440. package/daemon/dist/domain/native-process-lineage.js +60 -2
  441. package/daemon/dist/domain/native-process-lineage.js.map +1 -1
  442. package/daemon/dist/domain/native-resume-probe-evidence.d.ts +19 -0
  443. package/daemon/dist/domain/native-resume-probe-evidence.d.ts.map +1 -0
  444. package/daemon/dist/domain/native-resume-probe-evidence.js +37 -0
  445. package/daemon/dist/domain/native-resume-probe-evidence.js.map +1 -0
  446. package/daemon/dist/domain/native-resume-probe.d.ts +9 -0
  447. package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
  448. package/daemon/dist/domain/native-resume-probe.js +174 -44
  449. package/daemon/dist/domain/native-resume-probe.js.map +1 -1
  450. package/daemon/dist/domain/node-inventory.d.ts +53 -1
  451. package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
  452. package/daemon/dist/domain/node-inventory.js +137 -45
  453. package/daemon/dist/domain/node-inventory.js.map +1 -1
  454. package/daemon/dist/domain/node-launcher.d.ts +11 -0
  455. package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
  456. package/daemon/dist/domain/node-launcher.js +49 -8
  457. package/daemon/dist/domain/node-launcher.js.map +1 -1
  458. package/daemon/dist/domain/occupant-invalidator.d.ts +16 -4
  459. package/daemon/dist/domain/occupant-invalidator.d.ts.map +1 -1
  460. package/daemon/dist/domain/occupant-invalidator.js +25 -5
  461. package/daemon/dist/domain/occupant-invalidator.js.map +1 -1
  462. package/daemon/dist/domain/operation-correlation.d.ts +78 -0
  463. package/daemon/dist/domain/operation-correlation.d.ts.map +1 -0
  464. package/daemon/dist/domain/operation-correlation.js +54 -0
  465. package/daemon/dist/domain/operation-correlation.js.map +1 -0
  466. package/daemon/dist/domain/parent-session-env.d.ts +1 -1
  467. package/daemon/dist/domain/parent-session-env.d.ts.map +1 -1
  468. package/daemon/dist/domain/parent-session-env.js +3 -1
  469. package/daemon/dist/domain/parent-session-env.js.map +1 -1
  470. package/daemon/dist/domain/parked-query.d.ts +3 -0
  471. package/daemon/dist/domain/parked-query.d.ts.map +1 -1
  472. package/daemon/dist/domain/parked-query.js +1 -0
  473. package/daemon/dist/domain/parked-query.js.map +1 -1
  474. package/daemon/dist/domain/permission-account.d.ts +31 -0
  475. package/daemon/dist/domain/permission-account.d.ts.map +1 -0
  476. package/daemon/dist/domain/permission-account.js +116 -0
  477. package/daemon/dist/domain/permission-account.js.map +1 -0
  478. package/daemon/dist/domain/permission-drift.d.ts.map +1 -1
  479. package/daemon/dist/domain/permission-drift.js +11 -7
  480. package/daemon/dist/domain/permission-drift.js.map +1 -1
  481. package/daemon/dist/domain/pod-bundle-assembler.d.ts +1 -0
  482. package/daemon/dist/domain/pod-bundle-assembler.d.ts.map +1 -1
  483. package/daemon/dist/domain/pod-bundle-assembler.js +25 -0
  484. package/daemon/dist/domain/pod-bundle-assembler.js.map +1 -1
  485. package/daemon/dist/domain/policies/artifact-pool-helpers.d.ts +7 -0
  486. package/daemon/dist/domain/policies/artifact-pool-helpers.d.ts.map +1 -1
  487. package/daemon/dist/domain/policies/artifact-pool-helpers.js +8 -4
  488. package/daemon/dist/domain/policies/artifact-pool-helpers.js.map +1 -1
  489. package/daemon/dist/domain/policies/context-usage-threshold.d.ts.map +1 -1
  490. package/daemon/dist/domain/policies/context-usage-threshold.js +109 -21
  491. package/daemon/dist/domain/policies/context-usage-threshold.js.map +1 -1
  492. package/daemon/dist/domain/policies/edge-artifact-required.d.ts +6 -1
  493. package/daemon/dist/domain/policies/edge-artifact-required.d.ts.map +1 -1
  494. package/daemon/dist/domain/policies/edge-artifact-required.js +18 -13
  495. package/daemon/dist/domain/policies/edge-artifact-required.js.map +1 -1
  496. package/daemon/dist/domain/policies/mode-scheduled-end.d.ts +2 -0
  497. package/daemon/dist/domain/policies/mode-scheduled-end.d.ts.map +1 -1
  498. package/daemon/dist/domain/policies/mode-scheduled-end.js +5 -1
  499. package/daemon/dist/domain/policies/mode-scheduled-end.js.map +1 -1
  500. package/daemon/dist/domain/policies/parked-owner-consumer.d.ts +8 -0
  501. package/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -1
  502. package/daemon/dist/domain/policies/parked-owner-consumer.js +15 -1
  503. package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
  504. package/daemon/dist/domain/policies/periodic-reminder.d.ts +10 -0
  505. package/daemon/dist/domain/policies/periodic-reminder.d.ts.map +1 -1
  506. package/daemon/dist/domain/policies/periodic-reminder.js +11 -6
  507. package/daemon/dist/domain/policies/periodic-reminder.js.map +1 -1
  508. package/daemon/dist/domain/policies/types.d.ts +25 -0
  509. package/daemon/dist/domain/policies/types.d.ts.map +1 -1
  510. package/daemon/dist/domain/policies/workflow-keepalive.d.ts +6 -1
  511. package/daemon/dist/domain/policies/workflow-keepalive.d.ts.map +1 -1
  512. package/daemon/dist/domain/policies/workflow-keepalive.js +11 -5
  513. package/daemon/dist/domain/policies/workflow-keepalive.js.map +1 -1
  514. package/daemon/dist/domain/profile-resolution-worker.d.ts +7 -0
  515. package/daemon/dist/domain/profile-resolution-worker.d.ts.map +1 -0
  516. package/daemon/dist/domain/profile-resolution-worker.js +83 -0
  517. package/daemon/dist/domain/profile-resolution-worker.js.map +1 -0
  518. package/daemon/dist/domain/profile-resolver.d.ts +6 -0
  519. package/daemon/dist/domain/profile-resolver.d.ts.map +1 -1
  520. package/daemon/dist/domain/profile-resolver.js +14 -2
  521. package/daemon/dist/domain/profile-resolver.js.map +1 -1
  522. package/daemon/dist/domain/project-classifier.d.ts +7 -0
  523. package/daemon/dist/domain/project-classifier.d.ts.map +1 -1
  524. package/daemon/dist/domain/project-classifier.js +26 -0
  525. package/daemon/dist/domain/project-classifier.js.map +1 -1
  526. package/daemon/dist/domain/proof/judgments.d.ts +7 -4
  527. package/daemon/dist/domain/proof/judgments.d.ts.map +1 -1
  528. package/daemon/dist/domain/proof/judgments.js +12 -8
  529. package/daemon/dist/domain/proof/judgments.js.map +1 -1
  530. package/daemon/dist/domain/proof/source-watch.d.ts +6 -1
  531. package/daemon/dist/domain/proof/source-watch.d.ts.map +1 -1
  532. package/daemon/dist/domain/proof/source-watch.js +241 -35
  533. package/daemon/dist/domain/proof/source-watch.js.map +1 -1
  534. package/daemon/dist/domain/provider/claude-auth-status-reader.d.ts +12 -0
  535. package/daemon/dist/domain/provider/claude-auth-status-reader.d.ts.map +1 -1
  536. package/daemon/dist/domain/provider/claude-auth-status-reader.js +4 -4
  537. package/daemon/dist/domain/provider/claude-auth-status-reader.js.map +1 -1
  538. package/daemon/dist/domain/provider/claude-seat-switch.d.ts +32 -0
  539. package/daemon/dist/domain/provider/claude-seat-switch.d.ts.map +1 -0
  540. package/daemon/dist/domain/provider/claude-seat-switch.js +136 -0
  541. package/daemon/dist/domain/provider/claude-seat-switch.js.map +1 -0
  542. package/daemon/dist/domain/provider/claude-token-usage.d.ts +34 -0
  543. package/daemon/dist/domain/provider/claude-token-usage.d.ts.map +1 -0
  544. package/daemon/dist/domain/provider/claude-token-usage.js +168 -0
  545. package/daemon/dist/domain/provider/claude-token-usage.js.map +1 -0
  546. package/daemon/dist/domain/provider/provider-account-readings.d.ts +7 -6
  547. package/daemon/dist/domain/provider/provider-account-readings.d.ts.map +1 -1
  548. package/daemon/dist/domain/provider/provider-account-readings.js +31 -10
  549. package/daemon/dist/domain/provider/provider-account-readings.js.map +1 -1
  550. package/daemon/dist/domain/provider/provider-collect.d.ts +3 -0
  551. package/daemon/dist/domain/provider/provider-collect.d.ts.map +1 -1
  552. package/daemon/dist/domain/provider/provider-collect.js +3 -2
  553. package/daemon/dist/domain/provider/provider-collect.js.map +1 -1
  554. package/daemon/dist/domain/provider/provider-seat-accounts.d.ts +1 -1
  555. package/daemon/dist/domain/provider/provider-seat-accounts.d.ts.map +1 -1
  556. package/daemon/dist/domain/provider/provider-seat-accounts.js +29 -2
  557. package/daemon/dist/domain/provider/provider-seat-accounts.js.map +1 -1
  558. package/daemon/dist/domain/provider/provider-service-impl.d.ts +38 -4
  559. package/daemon/dist/domain/provider/provider-service-impl.d.ts.map +1 -1
  560. package/daemon/dist/domain/provider/provider-service-impl.js +147 -5
  561. package/daemon/dist/domain/provider/provider-service-impl.js.map +1 -1
  562. package/daemon/dist/domain/provider/provider-service.d.ts +109 -4
  563. package/daemon/dist/domain/provider/provider-service.d.ts.map +1 -1
  564. package/daemon/dist/domain/provider/provider-signals.d.ts +3 -0
  565. package/daemon/dist/domain/provider/provider-signals.d.ts.map +1 -1
  566. package/daemon/dist/domain/provider/provider-signals.js +7 -2
  567. package/daemon/dist/domain/provider/provider-signals.js.map +1 -1
  568. package/daemon/dist/domain/provider/provider-types.d.ts +61 -5
  569. package/daemon/dist/domain/provider/provider-types.d.ts.map +1 -1
  570. package/daemon/dist/domain/provider/reactive-tap.d.ts +4 -0
  571. package/daemon/dist/domain/provider/reactive-tap.d.ts.map +1 -1
  572. package/daemon/dist/domain/provider/reactive-tap.js +3 -0
  573. package/daemon/dist/domain/provider/reactive-tap.js.map +1 -1
  574. package/daemon/dist/domain/provider/subscription-move-report.d.ts +86 -0
  575. package/daemon/dist/domain/provider/subscription-move-report.d.ts.map +1 -0
  576. package/daemon/dist/domain/provider/subscription-move-report.js +227 -0
  577. package/daemon/dist/domain/provider/subscription-move-report.js.map +1 -0
  578. package/daemon/dist/domain/provider/usage-across-hosts.d.ts.map +1 -1
  579. package/daemon/dist/domain/provider/usage-across-hosts.js +8 -2
  580. package/daemon/dist/domain/provider/usage-across-hosts.js.map +1 -1
  581. package/daemon/dist/domain/provider/usage-windows.d.ts +2 -0
  582. package/daemon/dist/domain/provider/usage-windows.d.ts.map +1 -1
  583. package/daemon/dist/domain/provider/usage-windows.js +4 -0
  584. package/daemon/dist/domain/provider/usage-windows.js.map +1 -1
  585. package/daemon/dist/domain/ps-projection.d.ts +6 -35
  586. package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
  587. package/daemon/dist/domain/ps-projection.js +14 -55
  588. package/daemon/dist/domain/ps-projection.js.map +1 -1
  589. package/daemon/dist/domain/queue-owner.d.ts +15 -3
  590. package/daemon/dist/domain/queue-owner.d.ts.map +1 -1
  591. package/daemon/dist/domain/queue-owner.js +38 -5
  592. package/daemon/dist/domain/queue-owner.js.map +1 -1
  593. package/daemon/dist/domain/queue-pickup.d.ts +5 -2
  594. package/daemon/dist/domain/queue-pickup.d.ts.map +1 -1
  595. package/daemon/dist/domain/queue-pickup.js +19 -2
  596. package/daemon/dist/domain/queue-pickup.js.map +1 -1
  597. package/daemon/dist/domain/queue-repository.d.ts +72 -24
  598. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  599. package/daemon/dist/domain/queue-repository.js +346 -102
  600. package/daemon/dist/domain/queue-repository.js.map +1 -1
  601. package/daemon/dist/domain/queue-retention.d.ts +18 -0
  602. package/daemon/dist/domain/queue-retention.d.ts.map +1 -1
  603. package/daemon/dist/domain/queue-retention.js +79 -0
  604. package/daemon/dist/domain/queue-retention.js.map +1 -1
  605. package/daemon/dist/domain/queue-stuck-sweep.d.ts +16 -3
  606. package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
  607. package/daemon/dist/domain/queue-stuck-sweep.js +87 -11
  608. package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
  609. package/daemon/dist/domain/queue-wait-backoff.d.ts +3 -0
  610. package/daemon/dist/domain/queue-wait-backoff.d.ts.map +1 -1
  611. package/daemon/dist/domain/queue-wait-backoff.js +9 -0
  612. package/daemon/dist/domain/queue-wait-backoff.js.map +1 -1
  613. package/daemon/dist/domain/queue-waiting.d.ts +2 -0
  614. package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
  615. package/daemon/dist/domain/queue-waiting.js.map +1 -1
  616. package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
  617. package/daemon/dist/domain/queue-wake-ladder.js +108 -34
  618. package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
  619. package/daemon/dist/domain/queue-wake-repository.d.ts +3 -0
  620. package/daemon/dist/domain/queue-wake-repository.d.ts.map +1 -1
  621. package/daemon/dist/domain/queue-wake-repository.js +5 -1
  622. package/daemon/dist/domain/queue-wake-repository.js.map +1 -1
  623. package/daemon/dist/domain/reconciler.d.ts +23 -0
  624. package/daemon/dist/domain/reconciler.d.ts.map +1 -1
  625. package/daemon/dist/domain/reconciler.js +44 -1
  626. package/daemon/dist/domain/reconciler.js.map +1 -1
  627. package/daemon/dist/domain/rehydrate-eligibility.d.ts.map +1 -1
  628. package/daemon/dist/domain/rehydrate-eligibility.js +2 -3
  629. package/daemon/dist/domain/rehydrate-eligibility.js.map +1 -1
  630. package/daemon/dist/domain/restore-guidance.d.ts +7 -0
  631. package/daemon/dist/domain/restore-guidance.d.ts.map +1 -1
  632. package/daemon/dist/domain/restore-guidance.js +20 -8
  633. package/daemon/dist/domain/restore-guidance.js.map +1 -1
  634. package/daemon/dist/domain/restore-orchestrator.d.ts +39 -2
  635. package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
  636. package/daemon/dist/domain/restore-orchestrator.js +266 -35
  637. package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
  638. package/daemon/dist/domain/restore-plan-preview.d.ts +7 -2
  639. package/daemon/dist/domain/restore-plan-preview.d.ts.map +1 -1
  640. package/daemon/dist/domain/restore-plan-preview.js +28 -7
  641. package/daemon/dist/domain/restore-plan-preview.js.map +1 -1
  642. package/daemon/dist/domain/restore-policy.d.ts +4 -0
  643. package/daemon/dist/domain/restore-policy.d.ts.map +1 -1
  644. package/daemon/dist/domain/restore-policy.js +11 -0
  645. package/daemon/dist/domain/restore-policy.js.map +1 -1
  646. package/daemon/dist/domain/resume-metadata-refresher.d.ts +11 -2
  647. package/daemon/dist/domain/resume-metadata-refresher.d.ts.map +1 -1
  648. package/daemon/dist/domain/resume-metadata-refresher.js +32 -14
  649. package/daemon/dist/domain/resume-metadata-refresher.js.map +1 -1
  650. package/daemon/dist/domain/resume-token-capture.d.ts +5 -1
  651. package/daemon/dist/domain/resume-token-capture.d.ts.map +1 -1
  652. package/daemon/dist/domain/resume-token-capture.js +3 -1
  653. package/daemon/dist/domain/resume-token-capture.js.map +1 -1
  654. package/daemon/dist/domain/rig-edge-ops.d.ts +58 -0
  655. package/daemon/dist/domain/rig-edge-ops.d.ts.map +1 -0
  656. package/daemon/dist/domain/rig-edge-ops.js +113 -0
  657. package/daemon/dist/domain/rig-edge-ops.js.map +1 -0
  658. package/daemon/dist/domain/rig-expansion-service.d.ts.map +1 -1
  659. package/daemon/dist/domain/rig-expansion-service.js +1 -0
  660. package/daemon/dist/domain/rig-expansion-service.js.map +1 -1
  661. package/daemon/dist/domain/rig-name-override.d.ts +14 -0
  662. package/daemon/dist/domain/rig-name-override.d.ts.map +1 -0
  663. package/daemon/dist/domain/rig-name-override.js +38 -0
  664. package/daemon/dist/domain/rig-name-override.js.map +1 -0
  665. package/daemon/dist/domain/rig-repository.d.ts +28 -3
  666. package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
  667. package/daemon/dist/domain/rig-repository.js +261 -2
  668. package/daemon/dist/domain/rig-repository.js.map +1 -1
  669. package/daemon/dist/domain/rig-status-compose.d.ts +1 -1
  670. package/daemon/dist/domain/rig-status-compose.d.ts.map +1 -1
  671. package/daemon/dist/domain/rig-status-compose.js +3 -1
  672. package/daemon/dist/domain/rig-status-compose.js.map +1 -1
  673. package/daemon/dist/domain/rig-teardown.d.ts +20 -1
  674. package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
  675. package/daemon/dist/domain/rig-teardown.js +81 -9
  676. package/daemon/dist/domain/rig-teardown.js.map +1 -1
  677. package/daemon/dist/domain/rigspec-codec.d.ts.map +1 -1
  678. package/daemon/dist/domain/rigspec-codec.js +14 -0
  679. package/daemon/dist/domain/rigspec-codec.js.map +1 -1
  680. package/daemon/dist/domain/rigspec-exporter.d.ts +3 -0
  681. package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
  682. package/daemon/dist/domain/rigspec-exporter.js +29 -0
  683. package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
  684. package/daemon/dist/domain/rigspec-instantiator.d.ts +71 -3
  685. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  686. package/daemon/dist/domain/rigspec-instantiator.js +424 -48
  687. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  688. package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
  689. package/daemon/dist/domain/rigspec-preflight.js +15 -2
  690. package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
  691. package/daemon/dist/domain/rigspec-schema.d.ts +3 -0
  692. package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
  693. package/daemon/dist/domain/rigspec-schema.js +90 -3
  694. package/daemon/dist/domain/rigspec-schema.js.map +1 -1
  695. package/daemon/dist/domain/running-name-guard.d.ts.map +1 -1
  696. package/daemon/dist/domain/running-name-guard.js +2 -1
  697. package/daemon/dist/domain/running-name-guard.js.map +1 -1
  698. package/daemon/dist/domain/runtime-adapter.d.ts +37 -2
  699. package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
  700. package/daemon/dist/domain/runtime-adapter.js +5 -1
  701. package/daemon/dist/domain/runtime-adapter.js.map +1 -1
  702. package/daemon/dist/domain/runtime-switch-materials.d.ts +77 -0
  703. package/daemon/dist/domain/runtime-switch-materials.d.ts.map +1 -0
  704. package/daemon/dist/domain/runtime-switch-materials.js +253 -0
  705. package/daemon/dist/domain/runtime-switch-materials.js.map +1 -0
  706. package/daemon/dist/domain/scope/scope-approve.d.ts +1 -1
  707. package/daemon/dist/domain/scope/scope-view-projection.d.ts +6 -0
  708. package/daemon/dist/domain/scope/scope-view-projection.d.ts.map +1 -1
  709. package/daemon/dist/domain/scope/scope-view-projection.js +26 -10
  710. package/daemon/dist/domain/scope/scope-view-projection.js.map +1 -1
  711. package/daemon/dist/domain/seat-activity-service.d.ts +8 -2
  712. package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -1
  713. package/daemon/dist/domain/seat-activity-service.js +30 -5
  714. package/daemon/dist/domain/seat-activity-service.js.map +1 -1
  715. package/daemon/dist/domain/seat-attention-reconciler.d.ts +27 -2
  716. package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
  717. package/daemon/dist/domain/seat-attention-reconciler.js +91 -8
  718. package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
  719. package/daemon/dist/domain/seat-delivery-guard.d.ts +20 -1
  720. package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
  721. package/daemon/dist/domain/seat-delivery-guard.js +66 -11
  722. package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
  723. package/daemon/dist/domain/seat-handover-service.d.ts +8 -0
  724. package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
  725. package/daemon/dist/domain/seat-handover-service.js +75 -5
  726. package/daemon/dist/domain/seat-handover-service.js.map +1 -1
  727. package/daemon/dist/domain/seat-identity-store.d.ts +11 -1
  728. package/daemon/dist/domain/seat-identity-store.d.ts.map +1 -1
  729. package/daemon/dist/domain/seat-identity-store.js +29 -4
  730. package/daemon/dist/domain/seat-identity-store.js.map +1 -1
  731. package/daemon/dist/domain/seat-launch-additions.d.ts +115 -0
  732. package/daemon/dist/domain/seat-launch-additions.d.ts.map +1 -0
  733. package/daemon/dist/domain/seat-launch-additions.js +439 -0
  734. package/daemon/dist/domain/seat-launch-additions.js.map +1 -0
  735. package/daemon/dist/domain/seat-launch-environment.d.ts +6 -1
  736. package/daemon/dist/domain/seat-launch-environment.d.ts.map +1 -1
  737. package/daemon/dist/domain/seat-launch-environment.js +9 -5
  738. package/daemon/dist/domain/seat-launch-environment.js.map +1 -1
  739. package/daemon/dist/domain/seat-lifecycle-service.d.ts +98 -7
  740. package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
  741. package/daemon/dist/domain/seat-lifecycle-service.js +261 -25
  742. package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
  743. package/daemon/dist/domain/seat-restart-in-place.d.ts +9 -2
  744. package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
  745. package/daemon/dist/domain/seat-restart-in-place.js +27 -7
  746. package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
  747. package/daemon/dist/domain/seat-runtime-dir.d.ts +17 -0
  748. package/daemon/dist/domain/seat-runtime-dir.d.ts.map +1 -0
  749. package/daemon/dist/domain/seat-runtime-dir.js +27 -0
  750. package/daemon/dist/domain/seat-runtime-dir.js.map +1 -0
  751. package/daemon/dist/domain/seat-runtime-home.d.ts +42 -0
  752. package/daemon/dist/domain/seat-runtime-home.d.ts.map +1 -0
  753. package/daemon/dist/domain/seat-runtime-home.js +89 -0
  754. package/daemon/dist/domain/seat-runtime-home.js.map +1 -0
  755. package/daemon/dist/domain/seat-runtime-switch-service.d.ts +220 -0
  756. package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -0
  757. package/daemon/dist/domain/seat-runtime-switch-service.js +593 -0
  758. package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -0
  759. package/daemon/dist/domain/seat-skill-apply.d.ts +139 -0
  760. package/daemon/dist/domain/seat-skill-apply.d.ts.map +1 -0
  761. package/daemon/dist/domain/seat-skill-apply.js +221 -0
  762. package/daemon/dist/domain/seat-skill-apply.js.map +1 -0
  763. package/daemon/dist/domain/seat-skill-storage.d.ts +295 -0
  764. package/daemon/dist/domain/seat-skill-storage.d.ts.map +1 -0
  765. package/daemon/dist/domain/seat-skill-storage.js +850 -0
  766. package/daemon/dist/domain/seat-skill-storage.js.map +1 -0
  767. package/daemon/dist/domain/seat-skills-pointer.d.ts +5 -0
  768. package/daemon/dist/domain/seat-skills-pointer.d.ts.map +1 -0
  769. package/daemon/dist/domain/seat-skills-pointer.js +15 -0
  770. package/daemon/dist/domain/seat-skills-pointer.js.map +1 -0
  771. package/daemon/dist/domain/seat-status-service.d.ts +40 -0
  772. package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
  773. package/daemon/dist/domain/seat-status-service.js +59 -3
  774. package/daemon/dist/domain/seat-status-service.js.map +1 -1
  775. package/daemon/dist/domain/seat-structural-activity-service.d.ts +3 -0
  776. package/daemon/dist/domain/seat-structural-activity-service.d.ts.map +1 -1
  777. package/daemon/dist/domain/seat-structural-activity-service.js +6 -0
  778. package/daemon/dist/domain/seat-structural-activity-service.js.map +1 -1
  779. package/daemon/dist/domain/service-orchestrator.d.ts +7 -0
  780. package/daemon/dist/domain/service-orchestrator.d.ts.map +1 -1
  781. package/daemon/dist/domain/service-orchestrator.js +4 -0
  782. package/daemon/dist/domain/service-orchestrator.js.map +1 -1
  783. package/daemon/dist/domain/session-registry.d.ts +4 -0
  784. package/daemon/dist/domain/session-registry.d.ts.map +1 -1
  785. package/daemon/dist/domain/session-registry.js +13 -0
  786. package/daemon/dist/domain/session-registry.js.map +1 -1
  787. package/daemon/dist/domain/session-transport.d.ts +71 -22
  788. package/daemon/dist/domain/session-transport.d.ts.map +1 -1
  789. package/daemon/dist/domain/session-transport.js +376 -93
  790. package/daemon/dist/domain/session-transport.js.map +1 -1
  791. package/daemon/dist/domain/skill-catalog.d.ts +16 -0
  792. package/daemon/dist/domain/skill-catalog.d.ts.map +1 -1
  793. package/daemon/dist/domain/skill-catalog.js +15 -6
  794. package/daemon/dist/domain/skill-catalog.js.map +1 -1
  795. package/daemon/dist/domain/skill-discovery.d.ts +17 -2
  796. package/daemon/dist/domain/skill-discovery.d.ts.map +1 -1
  797. package/daemon/dist/domain/skill-discovery.js +44 -5
  798. package/daemon/dist/domain/skill-discovery.js.map +1 -1
  799. package/daemon/dist/domain/snapshot-capture.d.ts +4 -1
  800. package/daemon/dist/domain/snapshot-capture.d.ts.map +1 -1
  801. package/daemon/dist/domain/snapshot-capture.js +4 -1
  802. package/daemon/dist/domain/snapshot-capture.js.map +1 -1
  803. package/daemon/dist/domain/snapshot-repository.d.ts +4 -3
  804. package/daemon/dist/domain/snapshot-repository.d.ts.map +1 -1
  805. package/daemon/dist/domain/snapshot-repository.js +6 -5
  806. package/daemon/dist/domain/snapshot-repository.js.map +1 -1
  807. package/daemon/dist/domain/startup-orchestrator.d.ts +29 -2
  808. package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
  809. package/daemon/dist/domain/startup-orchestrator.js +279 -25
  810. package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
  811. package/daemon/dist/domain/startup-submission-evidence.d.ts +1 -0
  812. package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
  813. package/daemon/dist/domain/startup-submission-evidence.js +1 -0
  814. package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
  815. package/daemon/dist/domain/stream-dispositions.d.ts +51 -0
  816. package/daemon/dist/domain/stream-dispositions.d.ts.map +1 -0
  817. package/daemon/dist/domain/stream-dispositions.js +112 -0
  818. package/daemon/dist/domain/stream-dispositions.js.map +1 -0
  819. package/daemon/dist/domain/stream-reader-actions.d.ts +49 -0
  820. package/daemon/dist/domain/stream-reader-actions.d.ts.map +1 -0
  821. package/daemon/dist/domain/stream-reader-actions.js +104 -0
  822. package/daemon/dist/domain/stream-reader-actions.js.map +1 -0
  823. package/daemon/dist/domain/stream-store.d.ts +22 -0
  824. package/daemon/dist/domain/stream-store.d.ts.map +1 -1
  825. package/daemon/dist/domain/stream-store.js +49 -6
  826. package/daemon/dist/domain/stream-store.js.map +1 -1
  827. package/daemon/dist/domain/stream-subscriptions.d.ts +94 -0
  828. package/daemon/dist/domain/stream-subscriptions.d.ts.map +1 -0
  829. package/daemon/dist/domain/stream-subscriptions.js +160 -0
  830. package/daemon/dist/domain/stream-subscriptions.js.map +1 -0
  831. package/daemon/dist/domain/successor-session-launcher.d.ts +41 -1
  832. package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
  833. package/daemon/dist/domain/successor-session-launcher.js +63 -5
  834. package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
  835. package/daemon/dist/domain/terminal/herdr-adapter.d.ts +8 -28
  836. package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
  837. package/daemon/dist/domain/terminal/herdr-adapter.js +117 -64
  838. package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
  839. package/daemon/dist/domain/terminal/herdr-sessions.d.ts +9 -0
  840. package/daemon/dist/domain/terminal/herdr-sessions.d.ts.map +1 -0
  841. package/daemon/dist/domain/terminal/herdr-sessions.js +23 -0
  842. package/daemon/dist/domain/terminal/herdr-sessions.js.map +1 -0
  843. package/daemon/dist/domain/terminal/rex-adapter.d.ts +42 -0
  844. package/daemon/dist/domain/terminal/rex-adapter.d.ts.map +1 -0
  845. package/daemon/dist/domain/terminal/rex-adapter.js +228 -0
  846. package/daemon/dist/domain/terminal/rex-adapter.js.map +1 -0
  847. package/daemon/dist/domain/terminal/rex-layout.d.ts +26 -0
  848. package/daemon/dist/domain/terminal/rex-layout.d.ts.map +1 -0
  849. package/daemon/dist/domain/terminal/rex-layout.js +21 -0
  850. package/daemon/dist/domain/terminal/rex-layout.js.map +1 -0
  851. package/daemon/dist/domain/terminal/rex-transport.d.ts +43 -0
  852. package/daemon/dist/domain/terminal/rex-transport.d.ts.map +1 -0
  853. package/daemon/dist/domain/terminal/rex-transport.js +176 -0
  854. package/daemon/dist/domain/terminal/rex-transport.js.map +1 -0
  855. package/daemon/dist/domain/terminal/terminal-provider.d.ts +15 -0
  856. package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
  857. package/daemon/dist/domain/terminal/terminal-service.d.ts +14 -5
  858. package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
  859. package/daemon/dist/domain/terminal/terminal-service.js +51 -27
  860. package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
  861. package/daemon/dist/domain/terminal/tile-attach.d.ts +2 -0
  862. package/daemon/dist/domain/terminal/tile-attach.d.ts.map +1 -0
  863. package/daemon/dist/domain/terminal/tile-attach.js +42 -0
  864. package/daemon/dist/domain/terminal/tile-attach.js.map +1 -0
  865. package/daemon/dist/domain/terminal/tile-layout.d.ts +32 -0
  866. package/daemon/dist/domain/terminal/tile-layout.d.ts.map +1 -0
  867. package/daemon/dist/domain/terminal/tile-layout.js +36 -0
  868. package/daemon/dist/domain/terminal/tile-layout.js.map +1 -0
  869. package/daemon/dist/domain/terminal/view-composer.d.ts.map +1 -1
  870. package/daemon/dist/domain/terminal/view-composer.js +11 -6
  871. package/daemon/dist/domain/terminal/view-composer.js.map +1 -1
  872. package/daemon/dist/domain/terminal-policy.d.ts +80 -0
  873. package/daemon/dist/domain/terminal-policy.d.ts.map +1 -0
  874. package/daemon/dist/domain/terminal-policy.js +117 -0
  875. package/daemon/dist/domain/terminal-policy.js.map +1 -0
  876. package/daemon/dist/domain/terminal-seat.d.ts +9 -0
  877. package/daemon/dist/domain/terminal-seat.d.ts.map +1 -0
  878. package/daemon/dist/domain/terminal-seat.js +37 -0
  879. package/daemon/dist/domain/terminal-seat.js.map +1 -0
  880. package/daemon/dist/domain/topology-converge.d.ts +25 -2
  881. package/daemon/dist/domain/topology-converge.d.ts.map +1 -1
  882. package/daemon/dist/domain/topology-converge.js +14 -1
  883. package/daemon/dist/domain/topology-converge.js.map +1 -1
  884. package/daemon/dist/domain/types.d.ts +119 -2
  885. package/daemon/dist/domain/types.d.ts.map +1 -1
  886. package/daemon/dist/domain/types.js.map +1 -1
  887. package/daemon/dist/domain/urgent-line.d.ts +4 -0
  888. package/daemon/dist/domain/urgent-line.d.ts.map +1 -0
  889. package/daemon/dist/domain/urgent-line.js +7 -0
  890. package/daemon/dist/domain/urgent-line.js.map +1 -0
  891. package/daemon/dist/domain/usage-series.d.ts.map +1 -1
  892. package/daemon/dist/domain/usage-series.js +6 -2
  893. package/daemon/dist/domain/usage-series.js.map +1 -1
  894. package/daemon/dist/domain/user-settings/settings-browser.js +2 -2
  895. package/daemon/dist/domain/user-settings/settings-browser.js.map +1 -1
  896. package/daemon/dist/domain/user-settings/settings-store.d.ts +3 -1
  897. package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
  898. package/daemon/dist/domain/user-settings/settings-store.js +73 -1
  899. package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
  900. package/daemon/dist/domain/view-projector.d.ts.map +1 -1
  901. package/daemon/dist/domain/view-projector.js +2 -1
  902. package/daemon/dist/domain/view-projector.js.map +1 -1
  903. package/daemon/dist/domain/wake-recovery.d.ts +16 -0
  904. package/daemon/dist/domain/wake-recovery.d.ts.map +1 -0
  905. package/daemon/dist/domain/wake-recovery.js +31 -0
  906. package/daemon/dist/domain/wake-recovery.js.map +1 -0
  907. package/daemon/dist/domain/watchdog-delivery.js +1 -1
  908. package/daemon/dist/domain/watchdog-delivery.js.map +1 -1
  909. package/daemon/dist/domain/watchdog-job-update.d.ts +21 -0
  910. package/daemon/dist/domain/watchdog-job-update.d.ts.map +1 -0
  911. package/daemon/dist/domain/watchdog-job-update.js +143 -0
  912. package/daemon/dist/domain/watchdog-job-update.js.map +1 -0
  913. package/daemon/dist/domain/watchdog-jobs-repository.d.ts +63 -7
  914. package/daemon/dist/domain/watchdog-jobs-repository.d.ts.map +1 -1
  915. package/daemon/dist/domain/watchdog-jobs-repository.js +190 -21
  916. package/daemon/dist/domain/watchdog-jobs-repository.js.map +1 -1
  917. package/daemon/dist/domain/watchdog-policy-engine.d.ts +23 -0
  918. package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
  919. package/daemon/dist/domain/watchdog-policy-engine.js +46 -13
  920. package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
  921. package/daemon/dist/domain/workflow-exception-escalation.d.ts.map +1 -1
  922. package/daemon/dist/domain/workflow-exception-escalation.js +7 -3
  923. package/daemon/dist/domain/workflow-exception-escalation.js.map +1 -1
  924. package/daemon/dist/domain/workflow-projector.d.ts +5 -2
  925. package/daemon/dist/domain/workflow-projector.d.ts.map +1 -1
  926. package/daemon/dist/domain/workflow-projector.js +16 -7
  927. package/daemon/dist/domain/workflow-projector.js.map +1 -1
  928. package/daemon/dist/domain/workflow-runtime.d.ts +8 -2
  929. package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
  930. package/daemon/dist/domain/workflow-runtime.js +30 -7
  931. package/daemon/dist/domain/workflow-runtime.js.map +1 -1
  932. package/daemon/dist/domain/workspace/project-read.d.ts +2 -0
  933. package/daemon/dist/domain/workspace/project-read.d.ts.map +1 -1
  934. package/daemon/dist/domain/workspace/project-read.js +10 -1
  935. package/daemon/dist/domain/workspace/project-read.js.map +1 -1
  936. package/daemon/dist/index.d.ts.map +1 -1
  937. package/daemon/dist/index.js +7 -1
  938. package/daemon/dist/index.js.map +1 -1
  939. package/daemon/dist/lib/pane-envelope.d.ts +5 -0
  940. package/daemon/dist/lib/pane-envelope.d.ts.map +1 -1
  941. package/daemon/dist/lib/pane-envelope.js +8 -1
  942. package/daemon/dist/lib/pane-envelope.js.map +1 -1
  943. package/daemon/dist/router-line-surface.d.ts +2 -0
  944. package/daemon/dist/router-line-surface.d.ts.map +1 -0
  945. package/daemon/dist/router-line-surface.js +3 -0
  946. package/daemon/dist/router-line-surface.js.map +1 -0
  947. package/daemon/dist/routes/activity.d.ts.map +1 -1
  948. package/daemon/dist/routes/activity.js +15 -0
  949. package/daemon/dist/routes/activity.js.map +1 -1
  950. package/daemon/dist/routes/agent-images.d.ts.map +1 -1
  951. package/daemon/dist/routes/agent-images.js +19 -2
  952. package/daemon/dist/routes/agent-images.js.map +1 -1
  953. package/daemon/dist/routes/attention.d.ts.map +1 -1
  954. package/daemon/dist/routes/attention.js +30 -3
  955. package/daemon/dist/routes/attention.js.map +1 -1
  956. package/daemon/dist/routes/bootstrap-failure-response.js +2 -2
  957. package/daemon/dist/routes/bootstrap-failure-response.js.map +1 -1
  958. package/daemon/dist/routes/bundles.js +1 -1
  959. package/daemon/dist/routes/bundles.js.map +1 -1
  960. package/daemon/dist/routes/compaction.d.ts.map +1 -1
  961. package/daemon/dist/routes/compaction.js +31 -10
  962. package/daemon/dist/routes/compaction.js.map +1 -1
  963. package/daemon/dist/routes/context-packs.d.ts.map +1 -1
  964. package/daemon/dist/routes/context-packs.js +22 -0
  965. package/daemon/dist/routes/context-packs.js.map +1 -1
  966. package/daemon/dist/routes/hosts.d.ts.map +1 -1
  967. package/daemon/dist/routes/hosts.js +2 -0
  968. package/daemon/dist/routes/hosts.js.map +1 -1
  969. package/daemon/dist/routes/mission-control.d.ts.map +1 -1
  970. package/daemon/dist/routes/mission-control.js +7 -3
  971. package/daemon/dist/routes/mission-control.js.map +1 -1
  972. package/daemon/dist/routes/projects.d.ts.map +1 -1
  973. package/daemon/dist/routes/projects.js +59 -12
  974. package/daemon/dist/routes/projects.js.map +1 -1
  975. package/daemon/dist/routes/proof.js +2 -2
  976. package/daemon/dist/routes/proof.js.map +1 -1
  977. package/daemon/dist/routes/provider.d.ts.map +1 -1
  978. package/daemon/dist/routes/provider.js +170 -3
  979. package/daemon/dist/routes/provider.js.map +1 -1
  980. package/daemon/dist/routes/queue.d.ts.map +1 -1
  981. package/daemon/dist/routes/queue.js +154 -13
  982. package/daemon/dist/routes/queue.js.map +1 -1
  983. package/daemon/dist/routes/require-sender-identity.d.ts +10 -8
  984. package/daemon/dist/routes/require-sender-identity.d.ts.map +1 -1
  985. package/daemon/dist/routes/require-sender-identity.js +13 -11
  986. package/daemon/dist/routes/require-sender-identity.js.map +1 -1
  987. package/daemon/dist/routes/rigs.d.ts.map +1 -1
  988. package/daemon/dist/routes/rigs.js +77 -10
  989. package/daemon/dist/routes/rigs.js.map +1 -1
  990. package/daemon/dist/routes/rigspec.d.ts.map +1 -1
  991. package/daemon/dist/routes/rigspec.js +38 -12
  992. package/daemon/dist/routes/rigspec.js.map +1 -1
  993. package/daemon/dist/routes/runtime-switch-custody.d.ts +21 -0
  994. package/daemon/dist/routes/runtime-switch-custody.d.ts.map +1 -0
  995. package/daemon/dist/routes/runtime-switch-custody.js +55 -0
  996. package/daemon/dist/routes/runtime-switch-custody.js.map +1 -0
  997. package/daemon/dist/routes/scope-approve.js +2 -2
  998. package/daemon/dist/routes/scope-approve.js.map +1 -1
  999. package/daemon/dist/routes/scopes.d.ts.map +1 -1
  1000. package/daemon/dist/routes/scopes.js +30 -7
  1001. package/daemon/dist/routes/scopes.js.map +1 -1
  1002. package/daemon/dist/routes/seat.d.ts.map +1 -1
  1003. package/daemon/dist/routes/seat.js +109 -10
  1004. package/daemon/dist/routes/seat.js.map +1 -1
  1005. package/daemon/dist/routes/sessions.d.ts.map +1 -1
  1006. package/daemon/dist/routes/sessions.js +14 -0
  1007. package/daemon/dist/routes/sessions.js.map +1 -1
  1008. package/daemon/dist/routes/skills.d.ts.map +1 -1
  1009. package/daemon/dist/routes/skills.js +54 -1
  1010. package/daemon/dist/routes/skills.js.map +1 -1
  1011. package/daemon/dist/routes/startup.js +15 -5
  1012. package/daemon/dist/routes/startup.js.map +1 -1
  1013. package/daemon/dist/routes/stream.d.ts.map +1 -1
  1014. package/daemon/dist/routes/stream.js +86 -14
  1015. package/daemon/dist/routes/stream.js.map +1 -1
  1016. package/daemon/dist/routes/terminal.d.ts.map +1 -1
  1017. package/daemon/dist/routes/terminal.js +20 -11
  1018. package/daemon/dist/routes/terminal.js.map +1 -1
  1019. package/daemon/dist/routes/transport.d.ts.map +1 -1
  1020. package/daemon/dist/routes/transport.js +55 -5
  1021. package/daemon/dist/routes/transport.js.map +1 -1
  1022. package/daemon/dist/routes/up.js +5 -0
  1023. package/daemon/dist/routes/up.js.map +1 -1
  1024. package/daemon/dist/routes/watchdog.d.ts +1 -0
  1025. package/daemon/dist/routes/watchdog.d.ts.map +1 -1
  1026. package/daemon/dist/routes/watchdog.js +52 -3
  1027. package/daemon/dist/routes/watchdog.js.map +1 -1
  1028. package/daemon/dist/routes/workflow.d.ts.map +1 -1
  1029. package/daemon/dist/routes/workflow.js +24 -13
  1030. package/daemon/dist/routes/workflow.js.map +1 -1
  1031. package/daemon/dist/seat-recap-store-surface.d.ts +1 -1
  1032. package/daemon/dist/seat-recap-store-surface.d.ts.map +1 -1
  1033. package/daemon/dist/seat-recap-store-surface.js +1 -1
  1034. package/daemon/dist/seat-recap-store-surface.js.map +1 -1
  1035. package/daemon/dist/server.d.ts +4 -0
  1036. package/daemon/dist/server.d.ts.map +1 -1
  1037. package/daemon/dist/server.js +5 -1
  1038. package/daemon/dist/server.js.map +1 -1
  1039. package/daemon/dist/skill-loadout-surface.d.ts +2 -0
  1040. package/daemon/dist/skill-loadout-surface.d.ts.map +1 -1
  1041. package/daemon/dist/skill-loadout-surface.js +2 -0
  1042. package/daemon/dist/skill-loadout-surface.js.map +1 -1
  1043. package/daemon/dist/startup.d.ts +5 -0
  1044. package/daemon/dist/startup.d.ts.map +1 -1
  1045. package/daemon/dist/startup.js +160 -49
  1046. package/daemon/dist/startup.js.map +1 -1
  1047. package/daemon/dist/terminal/TerminalSessionBroker.d.ts.map +1 -1
  1048. package/daemon/dist/terminal/TerminalSessionBroker.js +14 -2
  1049. package/daemon/dist/terminal/TerminalSessionBroker.js.map +1 -1
  1050. package/daemon/docs/reference/a2a-agents.md +343 -0
  1051. package/daemon/docs/reference/acp-agents.md +77 -0
  1052. package/daemon/docs/reference/agent-spec.md +7 -5
  1053. package/daemon/docs/reference/agent-startup-guide.md +46 -0
  1054. package/daemon/docs/reference/agent-state-taxonomy.md +27 -2
  1055. package/daemon/docs/reference/checked-seat-stop.md +11 -0
  1056. package/daemon/docs/reference/community-harness-examples/cursor/cursor.yaml +13 -0
  1057. package/daemon/docs/reference/community-harness-examples/cursor/openrig-cursor-launch +68 -0
  1058. package/daemon/docs/reference/community-harness-examples/hermes/config.yaml.example +18 -0
  1059. package/daemon/docs/reference/community-harness-examples/hermes/hermes.yaml +12 -0
  1060. package/daemon/docs/reference/community-harness-examples/hermes/openrig-hermes-launch +34 -0
  1061. package/daemon/docs/reference/community-harness-examples/openclaw/openclaw-gateway.yaml +15 -0
  1062. package/daemon/docs/reference/community-harness-examples/openclaw/openclaw.yaml +16 -0
  1063. package/daemon/docs/reference/community-harness-examples/openclaw/openrig-openclaw-launch +70 -0
  1064. package/daemon/docs/reference/community-harness-presets.md +194 -0
  1065. package/daemon/docs/reference/getting-started.md +145 -14
  1066. package/daemon/docs/reference/health-diagnosis.md +13 -0
  1067. package/daemon/docs/reference/help.md +6 -0
  1068. package/daemon/docs/reference/keeping-a-watch.md +21 -0
  1069. package/daemon/docs/reference/operation-correlation.md +9 -0
  1070. package/daemon/docs/reference/project-workspace.md +24 -0
  1071. package/daemon/docs/reference/publishing-a-rig-bundle.md +11 -0
  1072. package/daemon/docs/reference/quickstart.md +1 -1
  1073. package/daemon/docs/reference/refocus-channel.md +6 -4
  1074. package/daemon/docs/reference/rig-spec.md +175 -5
  1075. package/daemon/docs/reference/sdlc-conventions.md +3 -1
  1076. package/daemon/docs/reference/seat-delivery.md +89 -7
  1077. package/daemon/docs/reference/slack-app-setup.md +4 -2
  1078. package/daemon/docs/reference/stream-classifier-worker.md +28 -0
  1079. package/daemon/docs/reference/telemetry.md +3 -0
  1080. package/daemon/docs/reference/terminal-sessions.md +141 -0
  1081. package/daemon/docs/reference/topology-naming.md +1 -1
  1082. package/daemon/docs/reference/whats-new.md +275 -113
  1083. package/daemon/specs/agents/shared/runtime/claude-settings.fragment.json +0 -3
  1084. package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +19 -4
  1085. package/daemon/specs/agents/shared/skills/core/openrig-herdr/SKILL.md +18 -3
  1086. package/daemon/specs/agents/shared/skills/core/openrig-software-factory/references/worked-example.md +2 -2
  1087. package/daemon/specs/agents/shared/skills/process/agent-browser/LICENSE.txt +201 -0
  1088. package/daemon/specs/agents/shared/skills/process/agent-browser/OPENRIG.md +13 -29
  1089. package/daemon/specs/agents/shared/skills/process/agent-browser/SKILL.md +7 -7
  1090. package/daemon/specs/agents/shared/skills/process/dogfood/LICENSE.txt +201 -0
  1091. package/daemon/specs/agents/shared/skills/process/dogfood/SKILL.md +6 -2
  1092. package/daemon/specs/agents/shared/skills/process/systematic-debugging/LICENSE.txt +21 -0
  1093. package/daemon/specs/agents/shared/skills/process/systematic-debugging/SKILL.md +6 -2
  1094. package/daemon/specs/agents/shared/skills/process/test-driven-development/LICENSE.txt +21 -0
  1095. package/daemon/specs/agents/shared/skills/process/test-driven-development/SKILL.md +5 -1
  1096. package/daemon/specs/agents/shared/skills/process/verification-before-completion/LICENSE.txt +21 -0
  1097. package/daemon/specs/agents/shared/skills/process/verification-before-completion/SKILL.md +5 -1
  1098. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +53 -10
  1099. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/startup/context.md +3 -0
  1100. package/daemon/specs/rigs/launch/kernel/agents/queue/worker/guidance/role.md +12 -0
  1101. package/daemon/specs/rigs/launch/kernel/agents/queue/worker/startup/context.md +3 -1
  1102. package/daemon/specs/rigs/launch/secrets-manager/secrets-manager.compose.yaml +1 -1
  1103. package/dist/acp/connector.d.ts +72 -0
  1104. package/dist/acp/connector.d.ts.map +1 -0
  1105. package/dist/acp/connector.js +218 -0
  1106. package/dist/acp/connector.js.map +1 -0
  1107. package/dist/acp/json-rpc-stdio.d.ts +53 -0
  1108. package/dist/acp/json-rpc-stdio.d.ts.map +1 -0
  1109. package/dist/acp/json-rpc-stdio.js +141 -0
  1110. package/dist/acp/json-rpc-stdio.js.map +1 -0
  1111. package/dist/acp/run-processes.d.ts +10 -0
  1112. package/dist/acp/run-processes.d.ts.map +1 -0
  1113. package/dist/acp/run-processes.js +33 -0
  1114. package/dist/acp/run-processes.js.map +1 -0
  1115. package/dist/build-info.js +3 -3
  1116. package/dist/client.d.ts +15 -2
  1117. package/dist/client.d.ts.map +1 -1
  1118. package/dist/client.js +30 -8
  1119. package/dist/client.js.map +1 -1
  1120. package/dist/commands/acp.d.ts +11 -0
  1121. package/dist/commands/acp.d.ts.map +1 -0
  1122. package/dist/commands/acp.js +198 -0
  1123. package/dist/commands/acp.js.map +1 -0
  1124. package/dist/commands/attach.js +1 -1
  1125. package/dist/commands/attach.js.map +1 -1
  1126. package/dist/commands/auth.d.ts +3 -0
  1127. package/dist/commands/auth.d.ts.map +1 -1
  1128. package/dist/commands/auth.js +41 -11
  1129. package/dist/commands/auth.js.map +1 -1
  1130. package/dist/commands/capture.d.ts.map +1 -1
  1131. package/dist/commands/capture.js +8 -0
  1132. package/dist/commands/capture.js.map +1 -1
  1133. package/dist/commands/chatroom.d.ts.map +1 -1
  1134. package/dist/commands/chatroom.js +6 -0
  1135. package/dist/commands/chatroom.js.map +1 -1
  1136. package/dist/commands/compact-plan.d.ts +2 -0
  1137. package/dist/commands/compact-plan.d.ts.map +1 -1
  1138. package/dist/commands/compact-plan.js +38 -3
  1139. package/dist/commands/compact-plan.js.map +1 -1
  1140. package/dist/commands/compact.js +1 -1
  1141. package/dist/commands/compact.js.map +1 -1
  1142. package/dist/commands/config.d.ts.map +1 -1
  1143. package/dist/commands/config.js +7 -1
  1144. package/dist/commands/config.js.map +1 -1
  1145. package/dist/commands/context.d.ts.map +1 -1
  1146. package/dist/commands/context.js +29 -23
  1147. package/dist/commands/context.js.map +1 -1
  1148. package/dist/commands/create.js +2 -2
  1149. package/dist/commands/create.js.map +1 -1
  1150. package/dist/commands/daemon.d.ts.map +1 -1
  1151. package/dist/commands/daemon.js +2 -0
  1152. package/dist/commands/daemon.js.map +1 -1
  1153. package/dist/commands/down.d.ts +5 -1
  1154. package/dist/commands/down.d.ts.map +1 -1
  1155. package/dist/commands/down.js +93 -5
  1156. package/dist/commands/down.js.map +1 -1
  1157. package/dist/commands/edge.d.ts +4 -0
  1158. package/dist/commands/edge.d.ts.map +1 -0
  1159. package/dist/commands/edge.js +135 -0
  1160. package/dist/commands/edge.js.map +1 -0
  1161. package/dist/commands/env.d.ts.map +1 -1
  1162. package/dist/commands/env.js +3 -0
  1163. package/dist/commands/env.js.map +1 -1
  1164. package/dist/commands/export.d.ts +1 -0
  1165. package/dist/commands/export.d.ts.map +1 -1
  1166. package/dist/commands/export.js +98 -0
  1167. package/dist/commands/export.js.map +1 -1
  1168. package/dist/commands/fork.d.ts.map +1 -1
  1169. package/dist/commands/fork.js +19 -2
  1170. package/dist/commands/fork.js.map +1 -1
  1171. package/dist/commands/gateway.d.ts.map +1 -1
  1172. package/dist/commands/gateway.js +2 -1
  1173. package/dist/commands/gateway.js.map +1 -1
  1174. package/dist/commands/grow.js +2 -2
  1175. package/dist/commands/grow.js.map +1 -1
  1176. package/dist/commands/health.js +1 -1
  1177. package/dist/commands/health.js.map +1 -1
  1178. package/dist/commands/launch.js +2 -2
  1179. package/dist/commands/launch.js.map +1 -1
  1180. package/dist/commands/mcp.d.ts.map +1 -1
  1181. package/dist/commands/mcp.js +113 -1
  1182. package/dist/commands/mcp.js.map +1 -1
  1183. package/dist/commands/project-worker.d.ts +25 -1
  1184. package/dist/commands/project-worker.d.ts.map +1 -1
  1185. package/dist/commands/project-worker.js +9 -7
  1186. package/dist/commands/project-worker.js.map +1 -1
  1187. package/dist/commands/project.d.ts +2 -0
  1188. package/dist/commands/project.d.ts.map +1 -1
  1189. package/dist/commands/project.js +70 -2
  1190. package/dist/commands/project.js.map +1 -1
  1191. package/dist/commands/proof.d.ts.map +1 -1
  1192. package/dist/commands/proof.js +33 -2
  1193. package/dist/commands/proof.js.map +1 -1
  1194. package/dist/commands/provider.d.ts.map +1 -1
  1195. package/dist/commands/provider.js +273 -24
  1196. package/dist/commands/provider.js.map +1 -1
  1197. package/dist/commands/ps.d.ts +12 -1
  1198. package/dist/commands/ps.d.ts.map +1 -1
  1199. package/dist/commands/ps.js +50 -47
  1200. package/dist/commands/ps.js.map +1 -1
  1201. package/dist/commands/queue.d.ts +4 -2
  1202. package/dist/commands/queue.d.ts.map +1 -1
  1203. package/dist/commands/queue.js +178 -45
  1204. package/dist/commands/queue.js.map +1 -1
  1205. package/dist/commands/reconcile-session.d.ts.map +1 -1
  1206. package/dist/commands/reconcile-session.js +6 -0
  1207. package/dist/commands/reconcile-session.js.map +1 -1
  1208. package/dist/commands/scope.d.ts.map +1 -1
  1209. package/dist/commands/scope.js +5 -2
  1210. package/dist/commands/scope.js.map +1 -1
  1211. package/dist/commands/seat.d.ts +2 -0
  1212. package/dist/commands/seat.d.ts.map +1 -1
  1213. package/dist/commands/seat.js +336 -11
  1214. package/dist/commands/seat.js.map +1 -1
  1215. package/dist/commands/send.d.ts.map +1 -1
  1216. package/dist/commands/send.js +62 -55
  1217. package/dist/commands/send.js.map +1 -1
  1218. package/dist/commands/setup.d.ts +24 -0
  1219. package/dist/commands/setup.d.ts.map +1 -1
  1220. package/dist/commands/setup.js +160 -7
  1221. package/dist/commands/setup.js.map +1 -1
  1222. package/dist/commands/skill.d.ts.map +1 -1
  1223. package/dist/commands/skill.js +137 -3
  1224. package/dist/commands/skill.js.map +1 -1
  1225. package/dist/commands/start.d.ts.map +1 -1
  1226. package/dist/commands/start.js +18 -25
  1227. package/dist/commands/start.js.map +1 -1
  1228. package/dist/commands/status.d.ts.map +1 -1
  1229. package/dist/commands/status.js +4 -1
  1230. package/dist/commands/status.js.map +1 -1
  1231. package/dist/commands/stream-outcome.d.ts +742 -0
  1232. package/dist/commands/stream-outcome.d.ts.map +1 -0
  1233. package/dist/commands/stream-outcome.js +118 -0
  1234. package/dist/commands/stream-outcome.js.map +1 -0
  1235. package/dist/commands/stream.d.ts.map +1 -1
  1236. package/dist/commands/stream.js +86 -2
  1237. package/dist/commands/stream.js.map +1 -1
  1238. package/dist/commands/terminal.d.ts +5 -0
  1239. package/dist/commands/terminal.d.ts.map +1 -1
  1240. package/dist/commands/terminal.js +42 -11
  1241. package/dist/commands/terminal.js.map +1 -1
  1242. package/dist/commands/topology-default-agent.d.ts +2 -2
  1243. package/dist/commands/topology-default-agent.d.ts.map +1 -1
  1244. package/dist/commands/topology-default-agent.js +5 -3
  1245. package/dist/commands/topology-default-agent.js.map +1 -1
  1246. package/dist/commands/up.d.ts.map +1 -1
  1247. package/dist/commands/up.js +82 -31
  1248. package/dist/commands/up.js.map +1 -1
  1249. package/dist/commands/watchdog.d.ts.map +1 -1
  1250. package/dist/commands/watchdog.js +80 -5
  1251. package/dist/commands/watchdog.js.map +1 -1
  1252. package/dist/commands/workflow-errors.js +1 -1
  1253. package/dist/commands/workflow-errors.js.map +1 -1
  1254. package/dist/commands/workflow-render.js +4 -4
  1255. package/dist/commands/workflow-render.js.map +1 -1
  1256. package/dist/commands/workflow.d.ts.map +1 -1
  1257. package/dist/commands/workflow.js +34 -15
  1258. package/dist/commands/workflow.js.map +1 -1
  1259. package/dist/config-store.d.ts +15 -1
  1260. package/dist/config-store.d.ts.map +1 -1
  1261. package/dist/config-store.js +86 -4
  1262. package/dist/config-store.js.map +1 -1
  1263. package/dist/daemon-lifecycle.d.ts +4 -0
  1264. package/dist/daemon-lifecycle.d.ts.map +1 -1
  1265. package/dist/daemon-lifecycle.js +73 -21
  1266. package/dist/daemon-lifecycle.js.map +1 -1
  1267. package/dist/decisions/decisions.d.ts +203 -0
  1268. package/dist/decisions/decisions.d.ts.map +1 -0
  1269. package/dist/decisions/decisions.js +374 -0
  1270. package/dist/decisions/decisions.js.map +1 -0
  1271. package/dist/decisions/stream-consumer.d.ts +255 -0
  1272. package/dist/decisions/stream-consumer.d.ts.map +1 -0
  1273. package/dist/decisions/stream-consumer.js +282 -0
  1274. package/dist/decisions/stream-consumer.js.map +1 -0
  1275. package/dist/decisions/templates.d.ts +8 -0
  1276. package/dist/decisions/templates.d.ts.map +1 -0
  1277. package/dist/decisions/templates.js +34 -0
  1278. package/dist/decisions/templates.js.map +1 -0
  1279. package/dist/fresh-seat-command.d.ts +18 -0
  1280. package/dist/fresh-seat-command.d.ts.map +1 -0
  1281. package/dist/fresh-seat-command.js +36 -0
  1282. package/dist/fresh-seat-command.js.map +1 -0
  1283. package/dist/front-door.d.ts +4 -0
  1284. package/dist/front-door.d.ts.map +1 -1
  1285. package/dist/front-door.js +8 -4
  1286. package/dist/front-door.js.map +1 -1
  1287. package/dist/host-bindings.d.ts.map +1 -1
  1288. package/dist/host-bindings.js +16 -9
  1289. package/dist/host-bindings.js.map +1 -1
  1290. package/dist/index.d.ts +2 -0
  1291. package/dist/index.d.ts.map +1 -1
  1292. package/dist/index.js +4 -0
  1293. package/dist/index.js.map +1 -1
  1294. package/dist/lazy-program.d.ts.map +1 -1
  1295. package/dist/lazy-program.js +2 -0
  1296. package/dist/lazy-program.js.map +1 -1
  1297. package/dist/lib/codex-auth.d.ts +1 -147
  1298. package/dist/lib/codex-auth.d.ts.map +1 -1
  1299. package/dist/lib/codex-auth.js +2 -505
  1300. package/dist/lib/codex-auth.js.map +1 -1
  1301. package/dist/lib/run-on-host.d.ts +29 -0
  1302. package/dist/lib/run-on-host.d.ts.map +1 -0
  1303. package/dist/lib/run-on-host.js +69 -0
  1304. package/dist/lib/run-on-host.js.map +1 -0
  1305. package/dist/lib/seat-activity.d.ts +17 -0
  1306. package/dist/lib/seat-activity.d.ts.map +1 -0
  1307. package/dist/lib/seat-activity.js +29 -0
  1308. package/dist/lib/seat-activity.js.map +1 -0
  1309. package/dist/local-daemon-owner.d.ts +4 -0
  1310. package/dist/local-daemon-owner.d.ts.map +1 -1
  1311. package/dist/local-daemon-owner.js +1 -1
  1312. package/dist/local-daemon-owner.js.map +1 -1
  1313. package/dist/mcp-http.d.ts +42 -0
  1314. package/dist/mcp-http.d.ts.map +1 -0
  1315. package/dist/mcp-http.js +232 -0
  1316. package/dist/mcp-http.js.map +1 -0
  1317. package/dist/mcp-server.d.ts +30 -2
  1318. package/dist/mcp-server.d.ts.map +1 -1
  1319. package/dist/mcp-server.js +1163 -436
  1320. package/dist/mcp-server.js.map +1 -1
  1321. package/dist/seat-launch-additions-lines.d.ts +11 -0
  1322. package/dist/seat-launch-additions-lines.d.ts.map +1 -0
  1323. package/dist/seat-launch-additions-lines.js +14 -0
  1324. package/dist/seat-launch-additions-lines.js.map +1 -0
  1325. package/dist/terminal-window-rex.d.ts +6 -0
  1326. package/dist/terminal-window-rex.d.ts.map +1 -0
  1327. package/dist/terminal-window-rex.js +129 -0
  1328. package/dist/terminal-window-rex.js.map +1 -0
  1329. package/dist/terminal-window.d.ts +3 -1
  1330. package/dist/terminal-window.d.ts.map +1 -1
  1331. package/dist/terminal-window.js +68 -28
  1332. package/dist/terminal-window.js.map +1 -1
  1333. package/package.json +1 -1
  1334. package/tui/dist/attention/attention-model.d.ts +3 -1
  1335. package/tui/dist/attention/attention-model.d.ts.map +1 -1
  1336. package/tui/dist/attention/attention-model.js +68 -1
  1337. package/tui/dist/attention/attention-model.js.map +1 -1
  1338. package/tui/dist/commands/registry.d.ts.map +1 -1
  1339. package/tui/dist/commands/registry.js +3 -1
  1340. package/tui/dist/commands/registry.js.map +1 -1
  1341. package/tui/dist/config/config-model.d.ts.map +1 -1
  1342. package/tui/dist/config/config-model.js +2 -0
  1343. package/tui/dist/config/config-model.js.map +1 -1
  1344. package/tui/dist/daemon-client.d.ts +22 -3
  1345. package/tui/dist/daemon-client.d.ts.map +1 -1
  1346. package/tui/dist/daemon-client.js +9 -4
  1347. package/tui/dist/daemon-client.js.map +1 -1
  1348. package/tui/dist/hydrate.d.ts.map +1 -1
  1349. package/tui/dist/hydrate.js +13 -7
  1350. package/tui/dist/hydrate.js.map +1 -1
  1351. package/tui/dist/live.d.ts.map +1 -1
  1352. package/tui/dist/live.js +6 -4
  1353. package/tui/dist/live.js.map +1 -1
  1354. package/tui/dist/main.js +15 -1
  1355. package/tui/dist/main.js.map +1 -1
  1356. package/tui/dist/render.d.ts.map +1 -1
  1357. package/tui/dist/render.js +10 -3
  1358. package/tui/dist/render.js.map +1 -1
  1359. package/tui/dist/terminals/open-window.d.ts +9 -5
  1360. package/tui/dist/terminals/open-window.d.ts.map +1 -1
  1361. package/tui/dist/terminals/open-window.js +29 -12
  1362. package/tui/dist/terminals/open-window.js.map +1 -1
  1363. package/tui/dist/terminals/terminal-model.d.ts +2 -1
  1364. package/tui/dist/terminals/terminal-model.d.ts.map +1 -1
  1365. package/tui/dist/terminals/terminal-model.js +5 -4
  1366. package/tui/dist/terminals/terminal-model.js.map +1 -1
  1367. package/tui/dist/topology/fixture.js +1 -1
  1368. package/tui/dist/topology/fixture.js.map +1 -1
  1369. package/tui/dist/topology/glyphs.js +1 -1
  1370. package/tui/dist/topology/glyphs.js.map +1 -1
  1371. package/tui/dist/topology/graph-types.d.ts +1 -0
  1372. package/tui/dist/topology/graph-types.d.ts.map +1 -1
  1373. package/tui/dist/types.d.ts +25 -0
  1374. package/tui/dist/types.d.ts.map +1 -1
  1375. package/tui/dist/usage/usage-model.d.ts.map +1 -1
  1376. package/tui/dist/usage/usage-model.js +5 -3
  1377. package/tui/dist/usage/usage-model.js.map +1 -1
  1378. package/ui/dist/assets/{index-CVgod3Pm.js → index-DLP1ipGq.js} +92 -92
  1379. package/ui/dist/index.html +1 -1
@@ -1,7 +1,7 @@
1
1
  import { type SeatEnv } from "./seat-env.js";
2
2
  import type { TmuxAdapter } from "../adapters/tmux.js";
3
3
  import type { DiscoveryRepository } from "./discovery-repository.js";
4
- import type { RuntimeAdapter, ForkSource } from "./runtime-adapter.js";
4
+ import type { RuntimeAdapter, NodeBinding, ForkSource } from "./runtime-adapter.js";
5
5
  import type { AppliedLaunchObservation } from "./permission-drift.js";
6
6
  import type { TmuxOptionDefaultsApplier } from "./tmux-option-defaults.js";
7
7
  import { SettingsStore } from "./user-settings/settings-store.js";
@@ -44,6 +44,7 @@ export interface SuccessorNode {
44
44
  nonInterruptive?: boolean;
45
45
  kernelAuthority?: boolean;
46
46
  teamPermissionDefault?: boolean;
47
+ claudePermissions?: import("./claude-permission-rules.js").ClaudePermissionRules;
47
48
  permissionMode?: string;
48
49
  /** 0.5.2-07 model fidelity: the seat's SPEC-pinned model (nodes.model). The successor is a continuity
49
50
  * edge of the same seat, so its launch must READ THE SPEC — a launch path that drops it makes the
@@ -52,16 +53,29 @@ export interface SuccessorNode {
52
53
  model?: string | null;
53
54
  /** #75: the seat's effort, from the shared resolver (OPR.0.7.0.7 seat-effort.ts). Carried to successor launch. */
54
55
  effort?: string | null;
56
+ /** The successor keeps the seat's session-scoped Claude Advisor. */
57
+ advisor?: string | null;
55
58
  /** 0.5.2-07 A4-profile: the seat's SPEC-pinned codex config profile (nodes.codex_config_profile).
56
59
  * Same continuity rationale as model — populated by the caller from node provenance; absent → the
57
60
  * adapter emits no -p flag (unchanged for legacy/unpinned seats). */
58
61
  codexConfigProfile?: string | null;
62
+ codexRebuildPermissions?: import("./codex-rebuild-permissions.js").CodexPermissionEnvelope;
59
63
  /** The seat's declared launch environment (its rig's `env:` with the member's over it). The
60
64
  * successor is the same seat, so it gets the same environment; absent = none declared. */
61
65
  seatEnv?: SeatEnv;
62
66
  /** Set when the seat loads the openrig-core plugin: its launch project, handed to the successor as OPENRIG_SEAT_PROJECT_DIR
63
67
  * (and, for a Codex seat, with OPENRIG_NODE). */
64
68
  seatProjectDir?: string;
69
+ /** OPR.0.7.0.9: the seat's own launch additions (copies in its seat storage), populated by the caller. The successor
70
+ * is the same seat, so its launch passes them as an original launch does; absent = none. */
71
+ launchAdditions?: import("./seat-launch-additions.js").SeatLaunchAdditions;
72
+ }
73
+ /** Slice 16: what a staged runtime-switch successor's launch adds to an ordinary successor launch. */
74
+ export interface StagedLaunch {
75
+ canonicalSession: string;
76
+ /** Target materials (seat storage, projection, pre-launch files), before the harness starts; returns notes. */
77
+ prepare: (binding: NodeBinding, adapter: RuntimeAdapter) => Promise<string[]>;
78
+ binding?: Partial<Pick<NodeBinding, "seatSkillsRoot" | "claudeManagedBlockFile" | "runtimeSwitchFrom">>;
65
79
  }
66
80
  export type SuccessorLaunchResult = {
67
81
  ok: true;
@@ -143,6 +157,32 @@ export declare class SuccessorSessionLauncher {
143
157
  * post-fork token, never the parent's. Absent → a plain fresh launch. */
144
158
  forkSource?: ForkSource;
145
159
  }): Promise<SuccessorLaunchResult>;
160
+ /**
161
+ * Slice 16 (from #1214 by Aschenbath): start a runtime switch's successor in its own staging session, beside the
162
+ * seat's current occupant, which keeps the seat. It carries the seat's canonical session name and a reserved
163
+ * generation; no session, binding or tenure is registered, so it has no authority until the switch commits. Its
164
+ * target materials are prepared first, then it is launched fresh (no native history crosses runtimes) and waited
165
+ * on until ready. The caller retires the staging session on any failure.
166
+ */
167
+ stageSuccessor(input: {
168
+ node: SuccessorNode;
169
+ stagingSession: string;
170
+ canonicalSession: string;
171
+ occupantGeneration: string;
172
+ onPaneCreated: (pane: string) => void;
173
+ staged: Omit<StagedLaunch, "canonicalSession">;
174
+ }): Promise<{
175
+ ok: true;
176
+ tmuxPane: string;
177
+ resumeToken?: string;
178
+ resumeType?: string;
179
+ appliedLaunch?: AppliedLaunchObservation;
180
+ notes?: string[];
181
+ } | {
182
+ ok: false;
183
+ code: string;
184
+ message: string;
185
+ }>;
146
186
  /**
147
187
  * B1 — launch the successor into a live, ready agent via the runtime adapter's
148
188
  * `launchHarness` + readiness probe (the same primitives StartupOrchestrator
@@ -1 +1 @@
1
- {"version":3,"file":"successor-session-launcher.d.ts","sourceRoot":"","sources":["../../src/domain/successor-session-launcher.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,KAAK,OAAO,EAAE,MAAM,eAAe,CAAC;AAEhE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE,OAAO,KAAK,EAAE,cAAc,EAAgC,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAErG,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAG3E,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAGlE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,WAAW,aAAa;IAC5B,EA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C7B,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACnC,uGAAuG;QACvG,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;QAClC;;;kFAG0E;QAC1E,UAAU,CAAC,EAAE,UAAU,CAAC;KACzB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAiIlC;;;;;;OAMG;YACW,UAAU;IAkGxB;;;OAGG;YACW,YAAY;IAqB1B;;;;;;OAMG;YACW,gBAAgB;IAI9B;;;;;yFAKqF;YACvE,sBAAsB;IASpC;;;;;;OAMG;IACG,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;CAGhF"}
1
+ {"version":3,"file":"successor-session-launcher.d.ts","sourceRoot":"","sources":["../../src/domain/successor-session-launcher.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,KAAK,OAAO,EAAE,MAAM,eAAe,CAAC;AAEhE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAmB,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAErG,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAG3E,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAGlE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB;;yFAEqF;IACrF,aAAa,CAAC,EAAE,OAAO,GAAG,aAAa,GAAG,MAAM,CAAC;IACjD,e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A;KAAE,CAAC;IAiCjD;;;;;;OAMG;YACW,UAAU;IAmHxB;;;OAGG;YACW,YAAY;IAqB1B;;;;;;OAMG;YACW,gBAAgB;IAI9B;;;;;yFAKqF;YACvE,sBAAsB;IASpC;;;;;;OAMG;IACG,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;CAGhF"}
@@ -58,8 +58,8 @@ export class SuccessorSessionLauncher {
58
58
  ...(input.node.runtime ? this.runtimeSessionEnv[input.node.runtime] : undefined),
59
59
  ...seatEnvLaunchVars(input.node.seatEnv ?? {}),
60
60
  ...(input.node.seatProjectDir ? { [SEAT_PROJECT_DIR_ENV]: input.node.seatProjectDir } : {}),
61
- // A Codex seat's plugin hooks run with this explicit interpreter, as at launch (node-launcher.ts).
62
- ...(input.node.seatProjectDir && input.node.runtime === "codex" ? { [SEAT_NODE_ENV]: process.execPath } : {}),
61
+ // Selected Claude and Codex plugin hooks use this interpreter, as at launch (node-launcher.ts).
62
+ ...(input.node.seatProjectDir && (input.node.runtime === "codex" || input.node.runtime === "claude-code") ? { [SEAT_NODE_ENV]: process.execPath } : {}),
63
63
  OPENRIG_OCCUPANT_GENERATION: input.occupantGeneration ?? undefined,
64
64
  });
65
65
  const cwd = input.node.cwd ?? undefined;
@@ -162,6 +162,47 @@ export class SuccessorSessionLauncher {
162
162
  ...(respawned.warnings ? { warnings: respawned.warnings } : {}),
163
163
  };
164
164
  }
165
+ /**
166
+ * Slice 16 (from #1214 by Aschenbath): start a runtime switch's successor in its own staging session, beside the
167
+ * seat's current occupant, which keeps the seat. It carries the seat's canonical session name and a reserved
168
+ * generation; no session, binding or tenure is registered, so it has no authority until the switch commits. Its
169
+ * target materials are prepared first, then it is launched fresh (no native history crosses runtimes) and waited
170
+ * on until ready. The caller retires the staging session on any failure.
171
+ */
172
+ async stageSuccessor(input) {
173
+ const env = compactEnv({
174
+ OPENRIG_NODE_ID: input.node.id,
175
+ OPENRIG_SESSION_NAME: input.canonicalSession,
176
+ OPENRIG_RUNTIME: input.node.runtime ?? undefined,
177
+ ...this.sessionEnv,
178
+ ...(input.node.runtime ? this.runtimeSessionEnv[input.node.runtime] : undefined),
179
+ ...seatEnvLaunchVars(input.node.seatEnv ?? {}),
180
+ ...(input.node.seatProjectDir ? { [SEAT_PROJECT_DIR_ENV]: input.node.seatProjectDir } : {}),
181
+ ...(input.node.seatProjectDir && (input.node.runtime === "codex" || input.node.runtime === "claude-code") ? { [SEAT_NODE_ENV]: process.execPath } : {}),
182
+ OPENRIG_OCCUPANT_GENERATION: input.occupantGeneration,
183
+ });
184
+ try {
185
+ const created = await this.tmuxAdapter.createSession(input.stagingSession, input.node.cwd ?? undefined, env);
186
+ if (!created.ok)
187
+ return { ok: false, code: created.code ?? "successor_create_failed", message: created.message ?? "The staging session couldn't be created." };
188
+ const panes = await this.tmuxAdapter.listPanes(input.stagingSession);
189
+ if (panes.length !== 1)
190
+ return { ok: false, code: "pane_unresolved", message: "The staging session should have exactly one new pane." };
191
+ const pane = panes[0].id;
192
+ input.onPaneCreated(pane);
193
+ await this.tmuxOptionDefaults?.applyToFreshSession(input.stagingSession);
194
+ const shell = (await this.tmuxAdapter.getDefaultShell()) ?? "/bin/sh";
195
+ const blank = await this.verifyPaneIsBlankShell(pane, shell);
196
+ if (!blank.ok) {
197
+ return { ok: false, code: "successor_pane_not_blank", message: `The staging pane is running ${blank.observed ?? "an unknown command"}, not a blank shell; the target runtime wasn't started.` };
198
+ }
199
+ const started = await this.startAgent(input.node, input.stagingSession, pane, input.node.cwd ?? undefined, undefined, input.occupantGeneration, { ...input.staged, canonicalSession: input.canonicalSession });
200
+ return started.ok ? { ...started, tmuxPane: pane } : started;
201
+ }
202
+ catch (err) {
203
+ return { ok: false, code: "successor_launch_failed", message: err.message };
204
+ }
205
+ }
165
206
  /**
166
207
  * B1 — launch the successor into a live, ready agent via the runtime adapter's
167
208
  * `launchHarness` + readiness probe (the same primitives StartupOrchestrator
@@ -169,7 +210,7 @@ export class SuccessorSessionLauncher {
169
210
  * registered — the successor stays unmanaged until commit. The token is NEVER
170
211
  * logged or placed in a returned message.
171
212
  */
172
- async startAgent(node, tmuxSession, tmuxPane, cwd, forkSource, launchGeneration) {
213
+ async startAgent(node, tmuxSession, tmuxPane, cwd, forkSource, launchGeneration, staged) {
173
214
  const adapter = node.runtime ? this.runtimeAdapters[node.runtime] : undefined;
174
215
  if (!adapter) {
175
216
  return {
@@ -200,6 +241,7 @@ export class SuccessorSessionLauncher {
200
241
  nonInterruptive: node.nonInterruptive,
201
242
  kernelAuthority: node.kernelAuthority,
202
243
  teamPermissionDefault: node.teamPermissionDefault,
244
+ claudePermissions: node.claudePermissions,
203
245
  // Seam B: continuity — the successor launches at the departing seat's posture.
204
246
  ...(node.launchPosture ? { launchPosture: node.launchPosture } : {}),
205
247
  ...(node.permissionMode ? { permissionMode: node.permissionMode } : {}),
@@ -207,12 +249,28 @@ export class SuccessorSessionLauncher {
207
249
  model: node.model ?? undefined,
208
250
  // #75: the successor reads the seat's resolved effort (saved choice, else authored).
209
251
  effort: node.effort ?? undefined,
252
+ advisor: node.advisor ?? undefined,
210
253
  // 0.5.2-07 A4-profile: the successor reads the seat's SPEC-pinned codex config profile (adapter emits -p).
211
254
  codexConfigProfile: node.codexConfigProfile ?? undefined,
255
+ codexRebuildPermissions: node.codexRebuildPermissions,
256
+ ...(node.launchAdditions ? { launchAdditions: node.launchAdditions } : {}),
257
+ ...(staged?.binding ?? {}),
212
258
  };
259
+ // Slice 16: a staged runtime-switch successor gets its target materials before its harness starts.
260
+ let notes;
261
+ if (staged) {
262
+ try {
263
+ notes = await staged.prepare(binding, adapter);
264
+ }
265
+ catch (err) {
266
+ return { ok: false, code: "successor_materials_failed", message: `The target runtime's materials couldn't be prepared: ${err instanceof Error ? err.message : String(err)}` };
267
+ }
268
+ }
213
269
  let launch;
214
270
  try {
215
- launch = await adapter.launchHarness(binding, { name: tmuxSession, ...(forkSource ? { forkSource } : { freshInPlace: true }) });
271
+ launch = await adapter.launchHarness(binding, staged
272
+ ? { name: staged.canonicalSession }
273
+ : { name: tmuxSession, ...(forkSource ? { forkSource } : { freshInPlace: true }) });
216
274
  }
217
275
  catch (err) {
218
276
  return { ok: false, code: "successor_launch_failed", message: `Successor harness launch threw: ${err instanceof Error ? err.message : String(err)}` };
@@ -254,7 +312,7 @@ export class SuccessorSessionLauncher {
254
312
  message: `Successor did not become a ready agent: ${readiness.reason ?? "readiness timeout"}`,
255
313
  };
256
314
  }
257
- return { ok: true, resumeToken, resumeType, appliedLaunch: launch.appliedLaunch };
315
+ return { ok: true, resumeToken, resumeType, appliedLaunch: launch.appliedLaunch, ...(notes?.length ? { notes } : {}) };
258
316
  }
259
317
  /**
260
318
  * Wait for harness readiness with exponential backoff (1s→2s→…→16s cap,
@@ -1 +1 @@
1
- {"version":3,"file":"successor-session-launcher.js","sourceRoot":"","sources":["../../src/domain/successor-session-launcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAgB,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAKlF,OAAO,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AAGxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAA8B,MAAM,mBAAmB,CAAC;AAuFrF,MAAM,OAAO,wBAAwB;IAC3B,WAAW,CAAc;IACzB,aAAa,CAAsB;IACnC,UAAU,CAAqC;IAC/C,iBAAiB,CAAqD;IACtE,KAAK,CAAe;IACpB,eAAe,CAAiC;IAChD,kBAAkB,CAAqB;IACvC,iBAAi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,YAA2B;QAC7D,IAAI,YAAY;YAAE,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC;IACpE,CAAC;CACF;AAED,SAAS,UAAU,CAAC,KAAyC;IAC3D,MAAM,MAAM,GAA2B,EAAE,CAAC;IAC1C,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACjD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;YAAE,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IACzE,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
1
+ {"version":3,"file":"successor-session-launcher.js","sourceRoot":"","sources":["../../src/domain/successor-session-launcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAgB,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAKlF,OAAO,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AAGxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAA8B,MAAM,mBAAmB,CAAC;AAsGrF,MAAM,OAAO,wBAAwB;IAC3B,WAAW,CAAc;IACzB,aAAa,CAAsB;IACnC,UAAU,CAAqC;IAC/C,iBAAiB,CAAqD;IACtE,KAAK,CAAe;IACpB,eAAe,CAAiC;IAChD,kBAAkB,CAAqB;IACvC,iBAAiB,CAAoC;IACrD,KAAK,CAAgC;IACrC,kBAAkB,CAAmC;IACrD,UAAU,CAAS;IACnB,a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AoB,EAAE,YAA2B;QAC7D,IAAI,YAAY;YAAE,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC;IACpE,CAAC;CACF;AAED,SAAS,UAAU,CAAC,KAAyC;IAC3D,MAAM,MAAM,GAA2B,EAAE,CAAC;IAC1C,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACjD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;YAAE,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IACzE,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import type { ComposedPane, ComposedView, OpenViewResult, ProviderLiveness, ProviderStatus, TerminalProvider } from "./terminal-provider.js";
2
2
  import type { HerdrResult, HerdrTransport, HerdrTransportFactory } from "./herdr-transport.js";
3
+ import { type TileGrid } from "./tile-layout.js";
3
4
  /** The degrade reason for a seat whose pane was already gone right after its page applied (#707). */
4
5
  export declare const HERDR_PANE_EXITED_REASON = "the pane had already exited when OpenRig checked right after herdr opened it";
5
6
  /** The note when the pane listing can't confirm a page's panes; its seats stay listed as opened. */
@@ -30,31 +31,8 @@ export interface HerdrSplitNode {
30
31
  second: HerdrLayoutNode;
31
32
  }
32
33
  export type HerdrLayoutNode = HerdrPaneNode | HerdrSplitNode;
33
- /**
34
- * Combine N nodes into an equal N-way strip along one direction. PURE.
35
- * Equal N-way BSP is first-vs-rest at ratio 1/N, recursively 1/(N-1) —
36
- * NOT midpoint 0.5 (the VM-reproduced defect: alternating 0.5 splits gave
37
- * N=7 a 4×2 layout with one double-width cell instead of the promised 3×3).
38
- */
39
- export declare function equalStrip(nodes: HerdrLayoutNode[], direction: "right" | "down"): HerdrLayoutNode;
40
- /**
41
- * Build an equal grid for one page. Explicit columns are capped to its pane
42
- * count, as in cmux; otherwise use the UI TerminalLauncher `suggestLayout` —
43
- * cols = ceil(sqrt(N)), rows = ceil(N/cols): N=2 → 2×1, N=5 → 3×2, N=7 → 3×3
44
- * (cols×rows). An incomplete rectangle is padded with inert blank panes so
45
- * every cell is the same size; blanks are layout filler only — they are never
46
- * reported as opened seats. Each real leaf runs the composer's shell
47
- * `paneCommand` via `["sh","-c",…]` so the composed quoting (read-only `-r`,
48
- * ssh-wrap) is preserved; a known Claude/Codex/Pi runtime adds Herdr's detection
49
- * hint. Rows are built as equal `right` strips,
50
- * then combined with equal `down` strips.
51
- */
52
- export declare function buildGridRoot(panes: ComposedPane[], columns?: number): {
53
- root: HerdrLayoutNode;
54
- blanks: number;
55
- columns: number;
56
- rows: number;
57
- };
34
+ /** The equal grid for one page (see `buildTileGrid`): N=2 → 2×1, N=5 → 3×2, N=7 → 3×3 (cols×rows). */
35
+ export declare function buildGridRoot(panes: ComposedPane[], columns?: number): TileGrid<HerdrLayoutNode>;
58
36
  /** The per-page socket request plan — pure, so it is asserted directly in tests. */
59
37
  export interface HerdrPagePlan {
60
38
  /** Fresh tab label for this page (embeds the launch token → fresh-on-relaunch). */
@@ -69,13 +47,13 @@ export interface HerdrLayoutPlan {
69
47
  workspaceLabel: string;
70
48
  pages: HerdrPagePlan[];
71
49
  }
72
- /** A named view's tab: its panes' names in reading order, such as "dashboard · operator". */
73
- export declare function namedTabLabel(page: ComposedPane[]): string;
74
50
  /**
75
51
  * Build the herdr socket plan for a composed view. PURE — no I/O. Each page
76
52
  * gets a fresh tab labeled `${tabPrefix}:${view.id}#<plan>#${launchToken}/<pageIndex>`;
77
53
  * two calls with different `launchToken`s produce DIFFERENT labels, which is
78
- * exactly the fresh-tab-on-relaunch (not-replace) invariant.
54
+ * exactly the fresh-tab-on-relaunch (not-replace) invariant. A named view's
55
+ * tabs carry their panes' names instead; the CLI confirms reuse by live
56
+ * attachments, not labels.
79
57
  */
80
58
  export declare function planHerdrLayout(view: ComposedView, launchToken: string, tabPrefix?: string): HerdrLayoutPlan;
81
59
  /**
@@ -99,6 +77,8 @@ export interface HerdrAdapterDeps {
99
77
  newLaunchToken?: () => string;
100
78
  /** Tab-name prefix (default `openrig`). */
101
79
  tabPrefix?: string;
80
+ /** The wait between restart-command report rounds. Injectable for tests. */
81
+ sleep?: (ms: number) => Promise<void>;
102
82
  }
103
83
  /** Herdr lays out 4×4 per tab (OPR.0.6.0.8); cmux keeps the composer default. */
104
84
  export declare const HERDR_PANES_PER_PAGE = 16;
@@ -1 +1 @@
1
- {"version":3,"file":"herdr-adapter.d.ts","sourceRoot":"","sources":["../../../src/domain/terminal/herdr-adapter.ts"],"names":[],"mappings":"AAyDA,OAAO,KAAK,EAEV,YAAY,EACZ,YAAY,EAEZ,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EACjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EACV,WAAW,EACX,cAAc,EACd,qBAAqB,EACtB,MAAM,sBAAsB,CAAC;AAM9B,qGAAqG;AACrG,eAAO,MAAM,wBAAwB,iFAAiF,CAAC;AAEvH,oGAAoG;AACpG,eAAO,MAAM,4BAA4B,uHAAuH,CAAC;AAWjK;;;;;;;;;GASG;AACH,wBAAsB,WAAW,CAC/B,SAAS,EAAE,cAAc,EACzB,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,YAAY,EAAE,EACzB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EAAE,GACd,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAqDtB;AAED,qFAAqF;AACrF,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,iEAAiE;AACjE,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,OAAO,GAAG,MAAM,CAAC;IAC5B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,QAAQ,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,cAAc,CAAC;CAyM5D"}
@@ -54,7 +54,7 @@
54
54
  // the starting tab. Otherwise the starting tab is kept and the result says so. Both methods are in
55
55
  // herdr 0.7.1's socket API (`herdr tab focus|close <tab_id>`); a refusal of either
56
56
  // is reported as a note, never as a failed seat.
57
- import { autoGridCols } from "../cmux-layout-service.js";
57
+ import { buildTileGrid, planTileLabels } from "./tile-layout.js";
58
58
  /** Sentinel host for herdr-surface degrades (a pane herdr itself failed to render). */
59
59
  const HERDR_SURFACE_HOST = "herdr";
60
60
  /** The degrade reason for a seat whose pane was already gone right after its page applied (#707). */
@@ -142,86 +142,58 @@ export async function exitedSeats(transport, workspaceId, tabId, pagePanes, blan
142
142
  }
143
143
  return gone;
144
144
  }
145
- /**
146
- * Combine N nodes into an equal N-way strip along one direction. PURE.
147
- * Equal N-way BSP is first-vs-rest at ratio 1/N, recursively 1/(N-1) —
148
- * NOT midpoint 0.5 (the VM-reproduced defect: alternating 0.5 splits gave
149
- * N=7 a 4×2 layout with one double-width cell instead of the promised 3×3).
150
- */
151
- export function equalStrip(nodes, direction) {
152
- if (nodes.length === 1)
153
- return nodes[0];
154
- return {
155
- type: "split",
156
- direction,
157
- ratio: 1 / nodes.length,
158
- first: nodes[0],
159
- second: equalStrip(nodes.slice(1), direction),
160
- };
161
- }
162
- /** An inert blank pane — pads an incomplete grid rectangle (cmux's blank-surface precedent). */
163
- function blankPane() {
164
- return { type: "pane", label: "", command: ["sh"] };
145
+ /** Herdr's own agent label for a seat's runtime, or null when Herdr doesn't recognise it. */
146
+ function herdrAgent(pane) {
147
+ return pane.runtime === "claude-code" ? "claude" : pane.runtime === "codex" ? "codex" : pane.runtime === "pi" ? "pi" : null;
165
148
  }
166
149
  function herdrPaneCommand(pane) {
167
- const agent = pane.runtime === "claude-code" ? "claude" : pane.runtime === "codex" ? "codex" : pane.runtime === "pi" ? "pi" : null;
150
+ const agent = herdrAgent(pane);
168
151
  return agent ? `env HERDR_AGENT=${agent} ${pane.paneCommand}` : pane.paneCommand;
169
152
  }
170
153
  /**
171
- * Build an equal grid for one page. Explicit columns are capped to its pane
172
- * count, as in cmux; otherwise use the UI TerminalLauncher `suggestLayout` —
173
- * cols = ceil(sqrt(N)), rows = ceil(N/cols): N=2 → 2×1, N=5 → 3×2, N=7 → 3×3
174
- * (cols×rows). An incomplete rectangle is padded with inert blank panes so
175
- * every cell is the same size; blanks are layout filler only — they are never
176
- * reported as opened seats. Each real leaf runs the composer's shell
177
- * `paneCommand` via `["sh","-c",…]` so the composed quoting (read-only `-r`,
178
- * ssh-wrap) is preserved; a known Claude/Codex/Pi runtime adds Herdr's detection
179
- * hint. Rows are built as equal `right` strips,
180
- * then combined with equal `down` strips.
154
+ * The command Herdr reruns in a restored pane after a Herdr server restart, so the tile reattaches to
155
+ * its seat. Herdr takes it only for an agent it recognises, as an argv whose first element is a plain
156
+ * command and with no apostrophe or control character. `OPENRIG_TILE` makes each tile's command
157
+ * distinct: Herdr keeps one restore per identical command, so two views of one seat would otherwise
158
+ * lose one. Null when there is none to give: an ssh tile, a runtime Herdr doesn't recognise, or a name
159
+ * Herdr would refuse. Those tiles come back as shells.
181
160
  */
182
- export function buildGridRoot(panes, columns) {
183
- const cols = Math.min(columns ?? autoGridCols(panes.length), panes.length || 1);
184
- const rows = Math.ceil(panes.length / cols);
185
- const blanks = rows * cols - panes.length;
186
- const leaves = panes.map((pane) => ({
187
- type: "pane",
188
- label: pane.label,
189
- command: ["sh", "-c", herdrPaneCommand(pane)],
190
- }));
191
- for (let i = 0; i < blanks; i++)
192
- leaves.push(blankPane());
193
- const rowStrips = [];
194
- for (let r = 0; r < rows; r++) {
195
- rowStrips.push(equalStrip(leaves.slice(r * cols, (r + 1) * cols), "right"));
196
- }
197
- return { root: equalStrip(rowStrips, "down"), blanks, columns: cols, rows };
161
+ function herdrResumeArgv(pane, tile) {
162
+ const agent = herdrAgent(pane);
163
+ if (!agent || !pane.attachArgv)
164
+ return null;
165
+ const argv = ["env", `HERDR_AGENT=${agent}`, `OPENRIG_TILE=${tile}`, ...pane.attachArgv];
166
+ return argv.some((arg) => /['\u0000-\u001f\u007f]/.test(arg)) ? null : argv;
198
167
  }
199
- /** A named view's tab: its panes' names in reading order, such as "dashboard · operator". */
200
- export function namedTabLabel(page) {
201
- return page.map((pane) => pane.label).join(" · ");
168
+ /** Rounds of the restart-command report, half a second apart: about 3 s for Herdr to detect each tile's agent. */
169
+ const RESUME_REPORT_ROUNDS = 7;
170
+ const RESUME_REPORT_INTERVAL_MS = 500;
171
+ /** Herdr's spelling of the shared grid: `right`/`down` splits, and inert `sh` blanks (cmux's blank-surface precedent). */
172
+ const HERDR_TILE_NODES = {
173
+ // `sh -c` keeps the composed quoting (read-only `-r`, ssh-wrap); a known runtime adds Herdr's detection hint.
174
+ tile: (pane) => ({ type: "pane", label: pane.label, command: ["sh", "-c", herdrPaneCommand(pane)] }),
175
+ blank: () => ({ type: "pane", label: "", command: ["sh"] }),
176
+ split: (direction, ratio, first, second) => ({ type: "split", direction: direction === "across" ? "right" : "down", ratio, first, second }),
177
+ };
178
+ /** The equal grid for one page (see `buildTileGrid`): N=2 → 2×1, N=5 → 3×2, N=7 → 3×3 (cols×rows). */
179
+ export function buildGridRoot(panes, columns) {
180
+ return buildTileGrid(panes, columns, HERDR_TILE_NODES);
202
181
  }
203
182
  /**
204
183
  * Build the herdr socket plan for a composed view. PURE — no I/O. Each page
205
184
  * gets a fresh tab labeled `${tabPrefix}:${view.id}#<plan>#${launchToken}/<pageIndex>`;
206
185
  * two calls with different `launchToken`s produce DIFFERENT labels, which is
207
- * exactly the fresh-tab-on-relaunch (not-replace) invariant.
186
+ * exactly the fresh-tab-on-relaunch (not-replace) invariant. A named view's
187
+ * tabs carry their panes' names instead; the CLI confirms reuse by live
188
+ * attachments, not labels.
208
189
  */
209
190
  export function planHerdrLayout(view, launchToken, tabPrefix = "openrig") {
210
- // Older callers without a preview fingerprint still get fresh, non-reusable tabs.
211
- const base = `${tabPrefix}:${view.id}${view.planId ? `#${view.planId.slice(0, 16)}` : ""}#${launchToken}`;
212
- // The workspace is named for people: a named view's own label, the rig name for a rig view, else the view id.
213
- // Tab labels keep the launch token, so every open is still a fresh, distinct space. A named view's
214
- // tabs carry their panes' names instead; the CLI confirms reuse by live attachments, not labels.
215
- const workspaceLabel = view.spaceLabel ?? (view.id.startsWith("rig:") ? view.id.slice("rig:".length) : view.id);
191
+ const labels = planTileLabels(view, launchToken, tabPrefix);
216
192
  const pages = view.pages.map((page, pageIndex) => {
217
193
  const grid = buildGridRoot(page, view.columns);
218
- return {
219
- tabLabel: view.spaceLabel ? namedTabLabel(page) : view.pages.length > 1 ? `${base}/${pageIndex + 1}` : base,
220
- root: grid.root,
221
- blanks: grid.blanks,
222
- };
194
+ return { tabLabel: labels.pages[pageIndex], root: grid.root, blanks: grid.blanks };
223
195
  });
224
- return { workspaceLabel, pages };
196
+ return { workspaceLabel: labels.space, pages };
225
197
  }
226
198
  /**
227
199
  * Extract the created workspace's id from a `workspace.create` result body.
@@ -250,6 +222,82 @@ export function extractWorkspaceId(result) {
250
222
  return bare;
251
223
  return null;
252
224
  }
225
+ /** The applied pane ids of a page, in its leaf order, when Herdr's reply echoes exactly the requested tree. */
226
+ function appliedPaneIds(requested, applied) {
227
+ if (!applied || typeof applied !== "object")
228
+ return null;
229
+ const node = applied;
230
+ if (requested.type === "pane") {
231
+ const command = node["command"];
232
+ const same = node["type"] === "pane" && Array.isArray(command) && command.length === requested.command.length
233
+ && command.every((arg, i) => arg === requested.command[i]);
234
+ return same && typeof node["pane_id"] === "string" && node["pane_id"] ? [node["pane_id"]] : null;
235
+ }
236
+ if (node["type"] !== "split")
237
+ return null;
238
+ const first = appliedPaneIds(requested.first, node["first"]);
239
+ const second = first && appliedPaneIds(requested.second, node["second"]);
240
+ return first && second ? [...first, ...second] : null;
241
+ }
242
+ /** The reports a page's tiles get, matched to their panes by the tree Herdr's reply echoes. */
243
+ function pageResumeReports(applied, requested, pagePanes, gone, unmatched) {
244
+ const wanted = pagePanes.filter((pane) => !gone.has(pane.seat) && herdrAgent(pane) && pane.attachArgv);
245
+ if (wanted.length === 0)
246
+ return [];
247
+ const layout = applied["layout"];
248
+ const paneIds = layout && typeof layout === "object" ? appliedPaneIds(requested, layout["root"]) : null;
249
+ if (!paneIds) {
250
+ unmatched.push(...wanted.map((pane) => pane.seat));
251
+ return [];
252
+ }
253
+ const reports = [];
254
+ for (const [index, pane] of pagePanes.entries()) {
255
+ const argv = wanted.includes(pane) ? herdrResumeArgv(pane, paneIds[index]) : null;
256
+ if (argv)
257
+ reports.push({ seat: pane.seat, paneId: paneIds[index], agent: herdrAgent(pane), argv });
258
+ }
259
+ return reports;
260
+ }
261
+ /**
262
+ * Give Herdr each tile's reattach command, so a Herdr server restart brings the tile back instead of an
263
+ * empty shell. It's a session-only report under the runtime's own label: it leaves Herdr's screen
264
+ * detection in charge of the tile's state (a held `pane.report_agent` would replace it), and Herdr
265
+ * reruns the command only for an agent label it recognises. Herdr accepts it only after its detector has
266
+ * recognised that agent in the pane (`resume_not_accepted` until then), so a refused report is retried
267
+ * in rounds while detection catches up. Herdr before 0.9.2 ignores the command. Whatever stays
268
+ * unreported is a note, never a failed seat.
269
+ */
270
+ async function reportResumeCommands(transport, reports, unmatched, sleep, notes) {
271
+ let pending = reports;
272
+ const refused = [];
273
+ for (let round = 1; pending.length > 0 && round <= RESUME_REPORT_ROUNDS; round++) {
274
+ if (round > 1)
275
+ await sleep(RESUME_REPORT_INTERVAL_MS);
276
+ const waiting = [];
277
+ for (const report of pending) {
278
+ try {
279
+ await transport.request("pane.report_agent_session", {
280
+ pane_id: report.paneId, source: "openrig", agent: report.agent, resume_argv: report.argv,
281
+ });
282
+ }
283
+ catch (err) {
284
+ const message = err instanceof Error ? err.message : String(err);
285
+ if (/resume_not_accepted/.test(message))
286
+ waiting.push(report);
287
+ else
288
+ refused.push(`${report.seat} (${message})`);
289
+ }
290
+ }
291
+ pending = waiting;
292
+ }
293
+ const reopen = "after a Herdr restart, reopen this view.";
294
+ if (unmatched.length > 0)
295
+ notes.push(`herdr's reply didn't show which pane is which, so these tiles have no restart command: ${unmatched.join(", ")}; ${reopen}`);
296
+ if (pending.length > 0)
297
+ notes.push(`herdr hadn't recognised the agent in ${pending.map((r) => r.seat).join(", ")} yet, so those tiles have no restart command; ${reopen}`);
298
+ if (refused.length > 0)
299
+ notes.push(`herdr didn't take the restart command for ${refused.join(", ")}; ${reopen}`);
300
+ }
253
301
  /** Herdr lays out 4×4 per tab (OPR.0.6.0.8); cmux keeps the composer default. */
254
302
  export const HERDR_PANES_PER_PAGE = 16;
255
303
  /** A `tab_id` from a herdr result body (`result.tab.tab_id`, `result.layout.tab_id`, or top-level). */
@@ -454,6 +502,8 @@ export class HerdrAdapter {
454
502
  // The starting tab is known blank only if every page applied AND reported its tab id:
455
503
  // an id-less reply or a failed (possibly still effective) apply may have used it.
456
504
  let everyPageKnown = true;
505
+ const resumeReports = [];
506
+ const unmatchedResume = [];
457
507
  for (let pageIndex = 0; pageIndex < plan.pages.length; pageIndex++) {
458
508
  const pagePlan = plan.pages[pageIndex];
459
509
  const pagePanes = view.pages[pageIndex];
@@ -470,6 +520,7 @@ export class HerdrAdapter {
470
520
  const gone = tabId
471
521
  ? await exitedSeats(this.transport, workspaceId, tabId, pagePanes, pagePlan.blanks, notes)
472
522
  : new Set();
523
+ resumeReports.push(...pageResumeReports(applied, pagePlan.root, pagePanes, gone, unmatchedResume));
473
524
  if (tabId) {
474
525
  appliedTabIds.push(tabId);
475
526
  if (pagePanes.some((pane) => !gone.has(pane.seat)))
@@ -524,6 +575,8 @@ export class HerdrAdapter {
524
575
  }
525
576
  }
526
577
  }
578
+ // After the view is on screen: Herdr needs a moment to detect each tile's agent before it takes the command.
579
+ await reportResumeCommands(this.transport, resumeReports, unmatchedResume, this.deps.sleep ?? ((ms) => new Promise((r) => setTimeout(r, ms))), notes);
527
580
  return {
528
581
  provider: this.name,
529
582
  ok: opened.length > 0 || view.opened.length === 0,