@openrig/cli 0.7.15 → 0.7.17

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 (603) hide show
  1. package/README.md +9 -9
  2. package/daemon/assets/onboarding/02-self-and-competent-action.md +5 -41
  3. package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +1 -1
  4. package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +1 -1
  5. package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
  6. package/daemon/assets/plugins/openrig/README.md +26 -7
  7. package/daemon/assets/plugins/openrig/plugin.json +1 -1
  8. package/daemon/assets/plugins/openrig/skills/working-with-an-openrig-team/SKILL.md +22 -6
  9. package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
  10. package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
  11. package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/SKILL.md +4 -1
  12. package/daemon/assets/plugins/openrig-core/skills/seat-continuity-and-handover/SKILL.md +1 -1
  13. package/daemon/assets/skills/rigs/SKILL.md +155 -41
  14. package/daemon/assets/skills/rigs/references/installing-for-someone.md +47 -0
  15. package/daemon/context-packs/help/manifest.yaml +1 -1
  16. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  17. package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +169 -40
  18. package/daemon/context-packs/reference/getting-started.md +12 -11
  19. package/daemon/context-packs/reference/manifest.yaml +4 -1
  20. package/daemon/context-packs/reference/product-journey-sdlc.md +348 -0
  21. package/daemon/context-packs/reference/rig-spec.md +92 -4
  22. package/daemon/context-packs/reference/whats-new.md +397 -5
  23. package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
  24. package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
  25. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
  26. package/daemon/context-packs/skills/claude-compaction-restore/SKILL.md +4 -1
  27. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
  28. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  29. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  30. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  31. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  32. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
  33. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  34. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  35. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
  36. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
  37. package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
  38. package/daemon/context-packs/skills/core/openrig-software-factory/references/worked-example.md +1 -1
  39. package/daemon/context-packs/skills/core/openrig-upgrade/SKILL.md +2 -0
  40. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
  41. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
  42. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
  43. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
  44. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
  45. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
  46. package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
  47. package/daemon/context-packs/skills/core/working-with-an-openrig-team/SKILL.md +22 -6
  48. package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
  49. package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
  50. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
  51. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
  52. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
  53. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
  54. package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
  55. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
  56. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  57. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  58. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  59. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  60. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  61. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
  62. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  63. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  64. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  65. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  66. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  67. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
  68. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  69. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
  70. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  71. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
  72. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
  73. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
  74. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
  75. package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
  76. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
  77. package/daemon/context-packs/skills/seat-continuity-and-handover/SKILL.md +1 -1
  78. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
  79. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
  80. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
  81. package/daemon/context-packs/world-example/manifest.yaml +1 -1
  82. package/daemon/context-packs/world-public/manifest.yaml +1 -1
  83. package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
  84. package/daemon/dist/adapters/claude-code-adapter.js +42 -6
  85. package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
  86. package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
  87. package/daemon/dist/adapters/claude-resume.js +4 -2
  88. package/daemon/dist/adapters/claude-resume.js.map +1 -1
  89. package/daemon/dist/adapters/codex-resume.d.ts +2 -0
  90. package/daemon/dist/adapters/codex-resume.d.ts.map +1 -1
  91. package/daemon/dist/adapters/codex-resume.js +28 -11
  92. package/daemon/dist/adapters/codex-resume.js.map +1 -1
  93. package/daemon/dist/adapters/codex-runtime-adapter.d.ts +15 -0
  94. package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
  95. package/daemon/dist/adapters/codex-runtime-adapter.js +75 -28
  96. package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
  97. package/daemon/dist/adapters/openshell-driver.d.ts +1 -0
  98. package/daemon/dist/adapters/openshell-driver.d.ts.map +1 -1
  99. package/daemon/dist/adapters/openshell-driver.js +3 -0
  100. package/daemon/dist/adapters/openshell-driver.js.map +1 -1
  101. package/daemon/dist/adapters/openshell-podman-observer.d.ts +9 -7
  102. package/daemon/dist/adapters/openshell-podman-observer.d.ts.map +1 -1
  103. package/daemon/dist/adapters/openshell-podman-observer.js +20 -3
  104. package/daemon/dist/adapters/openshell-podman-observer.js.map +1 -1
  105. package/daemon/dist/adapters/pi-runner.d.ts +38 -4
  106. package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
  107. package/daemon/dist/adapters/pi-runner.js +244 -30
  108. package/daemon/dist/adapters/pi-runner.js.map +1 -1
  109. package/daemon/dist/adapters/tmux.d.ts +6 -0
  110. package/daemon/dist/adapters/tmux.d.ts.map +1 -1
  111. package/daemon/dist/adapters/tmux.js +17 -3
  112. package/daemon/dist/adapters/tmux.js.map +1 -1
  113. package/daemon/dist/build-info.js +3 -3
  114. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  115. package/daemon/dist/db/all-migrations.js +8 -0
  116. package/daemon/dist/db/all-migrations.js.map +1 -1
  117. package/daemon/dist/db/migrations/167_seat_handover_attempts.d.ts +14 -0
  118. package/daemon/dist/db/migrations/167_seat_handover_attempts.d.ts.map +1 -0
  119. package/daemon/dist/db/migrations/167_seat_handover_attempts.js +54 -0
  120. package/daemon/dist/db/migrations/167_seat_handover_attempts.js.map +1 -0
  121. package/daemon/dist/db/migrations/168_context_usage_occupant_generation.d.ts +6 -0
  122. package/daemon/dist/db/migrations/168_context_usage_occupant_generation.d.ts.map +1 -0
  123. package/daemon/dist/db/migrations/168_context_usage_occupant_generation.js +10 -0
  124. package/daemon/dist/db/migrations/168_context_usage_occupant_generation.js.map +1 -0
  125. package/daemon/dist/db/migrations/169_seat_runtime_home_records.d.ts +5 -0
  126. package/daemon/dist/db/migrations/169_seat_runtime_home_records.d.ts.map +1 -0
  127. package/daemon/dist/db/migrations/169_seat_runtime_home_records.js +25 -0
  128. package/daemon/dist/db/migrations/169_seat_runtime_home_records.js.map +1 -0
  129. package/daemon/dist/db/migrations/170_rig_delivery_drains.d.ts +3 -0
  130. package/daemon/dist/db/migrations/170_rig_delivery_drains.d.ts.map +1 -0
  131. package/daemon/dist/db/migrations/170_rig_delivery_drains.js +21 -0
  132. package/daemon/dist/db/migrations/170_rig_delivery_drains.js.map +1 -0
  133. package/daemon/dist/domain/claim-service.d.ts +1 -3
  134. package/daemon/dist/domain/claim-service.d.ts.map +1 -1
  135. package/daemon/dist/domain/claim-service.js +3 -1
  136. package/daemon/dist/domain/claim-service.js.map +1 -1
  137. package/daemon/dist/domain/claude-compaction-enforcer.d.ts +11 -0
  138. package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
  139. package/daemon/dist/domain/claude-compaction-enforcer.js +83 -36
  140. package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
  141. package/daemon/dist/domain/codex-filesystem-preflight.d.ts +33 -0
  142. package/daemon/dist/domain/codex-filesystem-preflight.d.ts.map +1 -0
  143. package/daemon/dist/domain/codex-filesystem-preflight.js +255 -0
  144. package/daemon/dist/domain/codex-filesystem-preflight.js.map +1 -0
  145. package/daemon/dist/domain/codex-member-permissions.d.ts +23 -2
  146. package/daemon/dist/domain/codex-member-permissions.d.ts.map +1 -1
  147. package/daemon/dist/domain/codex-member-permissions.js +55 -9
  148. package/daemon/dist/domain/codex-member-permissions.js.map +1 -1
  149. package/daemon/dist/domain/codex-network-default.d.ts +13 -0
  150. package/daemon/dist/domain/codex-network-default.d.ts.map +1 -1
  151. package/daemon/dist/domain/codex-network-default.js +37 -30
  152. package/daemon/dist/domain/codex-network-default.js.map +1 -1
  153. package/daemon/dist/domain/codex-thread-id.d.ts +13 -0
  154. package/daemon/dist/domain/codex-thread-id.d.ts.map +1 -1
  155. package/daemon/dist/domain/codex-thread-id.js +132 -9
  156. package/daemon/dist/domain/codex-thread-id.js.map +1 -1
  157. package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -1
  158. package/daemon/dist/domain/compaction-restore-notice.js +59 -13
  159. package/daemon/dist/domain/compaction-restore-notice.js.map +1 -1
  160. package/daemon/dist/domain/connection-contract.d.ts.map +1 -1
  161. package/daemon/dist/domain/connection-contract.js +2 -1
  162. package/daemon/dist/domain/connection-contract.js.map +1 -1
  163. package/daemon/dist/domain/context-usage-store.d.ts +11 -2
  164. package/daemon/dist/domain/context-usage-store.d.ts.map +1 -1
  165. package/daemon/dist/domain/context-usage-store.js +33 -13
  166. package/daemon/dist/domain/context-usage-store.js.map +1 -1
  167. package/daemon/dist/domain/current-work.d.ts +5 -0
  168. package/daemon/dist/domain/current-work.d.ts.map +1 -1
  169. package/daemon/dist/domain/current-work.js +66 -4
  170. package/daemon/dist/domain/current-work.js.map +1 -1
  171. package/daemon/dist/domain/destination-successor.d.ts +3 -0
  172. package/daemon/dist/domain/destination-successor.d.ts.map +1 -0
  173. package/daemon/dist/domain/destination-successor.js +49 -0
  174. package/daemon/dist/domain/destination-successor.js.map +1 -0
  175. package/daemon/dist/domain/environment-lifecycle.d.ts +15 -0
  176. package/daemon/dist/domain/environment-lifecycle.d.ts.map +1 -1
  177. package/daemon/dist/domain/environment-lifecycle.js +22 -4
  178. package/daemon/dist/domain/environment-lifecycle.js.map +1 -1
  179. package/daemon/dist/domain/expected-conversation.d.ts.map +1 -1
  180. package/daemon/dist/domain/expected-conversation.js +26 -11
  181. package/daemon/dist/domain/expected-conversation.js.map +1 -1
  182. package/daemon/dist/domain/gateway/destination-resolver.d.ts +4 -0
  183. package/daemon/dist/domain/gateway/destination-resolver.d.ts.map +1 -1
  184. package/daemon/dist/domain/gateway/destination-resolver.js +10 -3
  185. package/daemon/dist/domain/gateway/destination-resolver.js.map +1 -1
  186. package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts +3 -1
  187. package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts.map +1 -1
  188. package/daemon/dist/domain/gateway/operator-delivery-engine.js +14 -4
  189. package/daemon/dist/domain/gateway/operator-delivery-engine.js.map +1 -1
  190. package/daemon/dist/domain/health-diagnosis.d.ts.map +1 -1
  191. package/daemon/dist/domain/health-diagnosis.js +4 -0
  192. package/daemon/dist/domain/health-diagnosis.js.map +1 -1
  193. package/daemon/dist/domain/health-passive-ceremony.d.ts +3 -0
  194. package/daemon/dist/domain/health-passive-ceremony.d.ts.map +1 -1
  195. package/daemon/dist/domain/health-passive-ceremony.js +45 -4
  196. package/daemon/dist/domain/health-passive-ceremony.js.map +1 -1
  197. package/daemon/dist/domain/hosts/fleet-scopes.d.ts +111 -0
  198. package/daemon/dist/domain/hosts/fleet-scopes.d.ts.map +1 -0
  199. package/daemon/dist/domain/hosts/fleet-scopes.js +231 -0
  200. package/daemon/dist/domain/hosts/fleet-scopes.js.map +1 -0
  201. package/daemon/dist/domain/hosts/read-through.d.ts +1 -1
  202. package/daemon/dist/domain/hosts/read-through.d.ts.map +1 -1
  203. package/daemon/dist/domain/hosts/read-through.js +4 -0
  204. package/daemon/dist/domain/hosts/read-through.js.map +1 -1
  205. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
  206. package/daemon/dist/domain/mission-control/mission-control-write-contract.js +1 -1
  207. package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
  208. package/daemon/dist/domain/native-model-picker.d.ts +2 -0
  209. package/daemon/dist/domain/native-model-picker.d.ts.map +1 -1
  210. package/daemon/dist/domain/native-model-picker.js +8 -2
  211. package/daemon/dist/domain/native-model-picker.js.map +1 -1
  212. package/daemon/dist/domain/native-permission-store.d.ts.map +1 -1
  213. package/daemon/dist/domain/native-permission-store.js +12 -5
  214. package/daemon/dist/domain/native-permission-store.js.map +1 -1
  215. package/daemon/dist/domain/native-process-lineage.d.ts +11 -1
  216. package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
  217. package/daemon/dist/domain/native-process-lineage.js +25 -4
  218. package/daemon/dist/domain/native-process-lineage.js.map +1 -1
  219. package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
  220. package/daemon/dist/domain/native-resume-probe.js +109 -26
  221. package/daemon/dist/domain/native-resume-probe.js.map +1 -1
  222. package/daemon/dist/domain/network/network-connector.d.ts.map +1 -1
  223. package/daemon/dist/domain/network/network-connector.js +5 -3
  224. package/daemon/dist/domain/network/network-connector.js.map +1 -1
  225. package/daemon/dist/domain/network/network-installations.d.ts +5 -4
  226. package/daemon/dist/domain/network/network-installations.d.ts.map +1 -1
  227. package/daemon/dist/domain/network/network-installations.js +42 -11
  228. package/daemon/dist/domain/network/network-installations.js.map +1 -1
  229. package/daemon/dist/domain/node-launcher.d.ts +6 -0
  230. package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
  231. package/daemon/dist/domain/node-launcher.js +10 -3
  232. package/daemon/dist/domain/node-launcher.js.map +1 -1
  233. package/daemon/dist/domain/occupant-invalidator.d.ts +4 -1
  234. package/daemon/dist/domain/occupant-invalidator.d.ts.map +1 -1
  235. package/daemon/dist/domain/occupant-invalidator.js +10 -2
  236. package/daemon/dist/domain/occupant-invalidator.js.map +1 -1
  237. package/daemon/dist/domain/operation-correlation.d.ts +1 -1
  238. package/daemon/dist/domain/operation-correlation.d.ts.map +1 -1
  239. package/daemon/dist/domain/operation-correlation.js +1 -1
  240. package/daemon/dist/domain/operation-correlation.js.map +1 -1
  241. package/daemon/dist/domain/permission-account.d.ts.map +1 -1
  242. package/daemon/dist/domain/permission-account.js +8 -6
  243. package/daemon/dist/domain/permission-account.js.map +1 -1
  244. package/daemon/dist/domain/permission-drift.d.ts.map +1 -1
  245. package/daemon/dist/domain/permission-drift.js +1 -1
  246. package/daemon/dist/domain/permission-drift.js.map +1 -1
  247. package/daemon/dist/domain/queue-destination-check.d.ts +2 -0
  248. package/daemon/dist/domain/queue-destination-check.d.ts.map +1 -1
  249. package/daemon/dist/domain/queue-destination-check.js +8 -11
  250. package/daemon/dist/domain/queue-destination-check.js.map +1 -1
  251. package/daemon/dist/domain/queue-erasure.d.ts +7 -1
  252. package/daemon/dist/domain/queue-erasure.d.ts.map +1 -1
  253. package/daemon/dist/domain/queue-erasure.js +226 -20
  254. package/daemon/dist/domain/queue-erasure.js.map +1 -1
  255. package/daemon/dist/domain/queue-repository.d.ts +39 -17
  256. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  257. package/daemon/dist/domain/queue-repository.js +96 -64
  258. package/daemon/dist/domain/queue-repository.js.map +1 -1
  259. package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
  260. package/daemon/dist/domain/queue-stuck-sweep.js +49 -21
  261. package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
  262. package/daemon/dist/domain/queue-transition-log.d.ts +6 -0
  263. package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
  264. package/daemon/dist/domain/queue-transition-log.js +9 -0
  265. package/daemon/dist/domain/queue-transition-log.js.map +1 -1
  266. package/daemon/dist/domain/queue-waiting.d.ts +4 -4
  267. package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
  268. package/daemon/dist/domain/queue-waiting.js +30 -16
  269. package/daemon/dist/domain/queue-waiting.js.map +1 -1
  270. package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
  271. package/daemon/dist/domain/queue-wake-ladder.js +90 -24
  272. package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
  273. package/daemon/dist/domain/receiver-context.js +1 -1
  274. package/daemon/dist/domain/receiver-context.js.map +1 -1
  275. package/daemon/dist/domain/restore-check-service.d.ts +13 -0
  276. package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
  277. package/daemon/dist/domain/restore-check-service.js +122 -9
  278. package/daemon/dist/domain/restore-check-service.js.map +1 -1
  279. package/daemon/dist/domain/restore-orchestrator.d.ts +4 -1
  280. package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
  281. package/daemon/dist/domain/restore-orchestrator.js +132 -48
  282. package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
  283. package/daemon/dist/domain/restore-preconditions.d.ts +2 -0
  284. package/daemon/dist/domain/restore-preconditions.d.ts.map +1 -1
  285. package/daemon/dist/domain/restore-preconditions.js +2 -0
  286. package/daemon/dist/domain/restore-preconditions.js.map +1 -1
  287. package/daemon/dist/domain/resume-metadata-refresher.d.ts +17 -4
  288. package/daemon/dist/domain/resume-metadata-refresher.d.ts.map +1 -1
  289. package/daemon/dist/domain/resume-metadata-refresher.js +64 -15
  290. package/daemon/dist/domain/resume-metadata-refresher.js.map +1 -1
  291. package/daemon/dist/domain/resume-token-capture.d.ts +6 -0
  292. package/daemon/dist/domain/resume-token-capture.d.ts.map +1 -1
  293. package/daemon/dist/domain/resume-token-capture.js +14 -8
  294. package/daemon/dist/domain/resume-token-capture.js.map +1 -1
  295. package/daemon/dist/domain/rig-delivery-drain.d.ts +46 -0
  296. package/daemon/dist/domain/rig-delivery-drain.d.ts.map +1 -0
  297. package/daemon/dist/domain/rig-delivery-drain.js +128 -0
  298. package/daemon/dist/domain/rig-delivery-drain.js.map +1 -0
  299. package/daemon/dist/domain/rig-edge-ops.js +1 -1
  300. package/daemon/dist/domain/rig-edge-ops.js.map +1 -1
  301. package/daemon/dist/domain/rig-lifecycle-service.d.ts.map +1 -1
  302. package/daemon/dist/domain/rig-lifecycle-service.js +4 -1
  303. package/daemon/dist/domain/rig-lifecycle-service.js.map +1 -1
  304. package/daemon/dist/domain/rig-teardown.d.ts +20 -3
  305. package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
  306. package/daemon/dist/domain/rig-teardown.js +71 -11
  307. package/daemon/dist/domain/rig-teardown.js.map +1 -1
  308. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  309. package/daemon/dist/domain/rigspec-instantiator.js +6 -2
  310. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  311. package/daemon/dist/domain/rigspec-preflight.d.ts +1 -1
  312. package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
  313. package/daemon/dist/domain/rigspec-preflight.js +36 -1
  314. package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
  315. package/daemon/dist/domain/rosters.d.ts +19 -0
  316. package/daemon/dist/domain/rosters.d.ts.map +1 -1
  317. package/daemon/dist/domain/rosters.js +69 -12
  318. package/daemon/dist/domain/rosters.js.map +1 -1
  319. package/daemon/dist/domain/runtime-adapter.d.ts +15 -0
  320. package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
  321. package/daemon/dist/domain/runtime-adapter.js.map +1 -1
  322. package/daemon/dist/domain/seat-delivery-guard.d.ts +8 -2
  323. package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
  324. package/daemon/dist/domain/seat-delivery-guard.js +38 -3
  325. package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
  326. package/daemon/dist/domain/seat-handover-attempts.d.ts +50 -0
  327. package/daemon/dist/domain/seat-handover-attempts.d.ts.map +1 -0
  328. package/daemon/dist/domain/seat-handover-attempts.js +75 -0
  329. package/daemon/dist/domain/seat-handover-attempts.js.map +1 -0
  330. package/daemon/dist/domain/seat-handover-service.d.ts +64 -1
  331. package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
  332. package/daemon/dist/domain/seat-handover-service.js +443 -29
  333. package/daemon/dist/domain/seat-handover-service.js.map +1 -1
  334. package/daemon/dist/domain/seat-launch-environment.d.ts +3 -2
  335. package/daemon/dist/domain/seat-launch-environment.d.ts.map +1 -1
  336. package/daemon/dist/domain/seat-launch-environment.js +16 -4
  337. package/daemon/dist/domain/seat-launch-environment.js.map +1 -1
  338. package/daemon/dist/domain/seat-lifecycle-service.d.ts +47 -2
  339. package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
  340. package/daemon/dist/domain/seat-lifecycle-service.js +48 -2
  341. package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
  342. package/daemon/dist/domain/seat-runtime-home-record-types.d.ts +16 -0
  343. package/daemon/dist/domain/seat-runtime-home-record-types.d.ts.map +1 -0
  344. package/daemon/dist/domain/seat-runtime-home-record-types.js +2 -0
  345. package/daemon/dist/domain/seat-runtime-home-record-types.js.map +1 -0
  346. package/daemon/dist/domain/seat-runtime-home-record.d.ts +173 -0
  347. package/daemon/dist/domain/seat-runtime-home-record.d.ts.map +1 -0
  348. package/daemon/dist/domain/seat-runtime-home-record.js +317 -0
  349. package/daemon/dist/domain/seat-runtime-home-record.js.map +1 -0
  350. package/daemon/dist/domain/seat-runtime-switch-service.d.ts +7 -0
  351. package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
  352. package/daemon/dist/domain/seat-runtime-switch-service.js +47 -2
  353. package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
  354. package/daemon/dist/domain/seat-skill-storage.d.ts +16 -1
  355. package/daemon/dist/domain/seat-skill-storage.d.ts.map +1 -1
  356. package/daemon/dist/domain/seat-skill-storage.js +178 -1
  357. package/daemon/dist/domain/seat-skill-storage.js.map +1 -1
  358. package/daemon/dist/domain/session-name.d.ts +13 -0
  359. package/daemon/dist/domain/session-name.d.ts.map +1 -1
  360. package/daemon/dist/domain/session-name.js +77 -0
  361. package/daemon/dist/domain/session-name.js.map +1 -1
  362. package/daemon/dist/domain/session-registry.d.ts +7 -1
  363. package/daemon/dist/domain/session-registry.d.ts.map +1 -1
  364. package/daemon/dist/domain/session-registry.js +7 -4
  365. package/daemon/dist/domain/session-registry.js.map +1 -1
  366. package/daemon/dist/domain/session-transport.d.ts +1 -0
  367. package/daemon/dist/domain/session-transport.d.ts.map +1 -1
  368. package/daemon/dist/domain/session-transport.js +33 -9
  369. package/daemon/dist/domain/session-transport.js.map +1 -1
  370. package/daemon/dist/domain/shared-history-selection.d.ts +1 -0
  371. package/daemon/dist/domain/shared-history-selection.d.ts.map +1 -1
  372. package/daemon/dist/domain/shared-history-selection.js +3 -1
  373. package/daemon/dist/domain/shared-history-selection.js.map +1 -1
  374. package/daemon/dist/domain/skill-catalog.d.ts +3 -0
  375. package/daemon/dist/domain/skill-catalog.d.ts.map +1 -1
  376. package/daemon/dist/domain/skill-catalog.js +7 -3
  377. package/daemon/dist/domain/skill-catalog.js.map +1 -1
  378. package/daemon/dist/domain/snapshot-capture.d.ts +4 -1
  379. package/daemon/dist/domain/snapshot-capture.d.ts.map +1 -1
  380. package/daemon/dist/domain/snapshot-capture.js +24 -12
  381. package/daemon/dist/domain/snapshot-capture.js.map +1 -1
  382. package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
  383. package/daemon/dist/domain/startup-submission-evidence.js +3 -2
  384. package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
  385. package/daemon/dist/domain/successor-session-launcher.d.ts +16 -0
  386. package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
  387. package/daemon/dist/domain/successor-session-launcher.js +70 -38
  388. package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
  389. package/daemon/dist/domain/types.d.ts +43 -2
  390. package/daemon/dist/domain/types.d.ts.map +1 -1
  391. package/daemon/dist/domain/types.js.map +1 -1
  392. package/daemon/dist/domain/user-settings/settings-browser.d.ts.map +1 -1
  393. package/daemon/dist/domain/user-settings/settings-browser.js +3 -1
  394. package/daemon/dist/domain/user-settings/settings-browser.js.map +1 -1
  395. package/daemon/dist/domain/user-settings/settings-store.d.ts +1 -1
  396. package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
  397. package/daemon/dist/domain/user-settings/settings-store.js +6 -0
  398. package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
  399. package/daemon/dist/domain/watchdog-policy-engine.d.ts +4 -0
  400. package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
  401. package/daemon/dist/domain/watchdog-policy-engine.js +28 -1
  402. package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
  403. package/daemon/dist/domain/workflow-exception-escalation.d.ts.map +1 -1
  404. package/daemon/dist/domain/workflow-exception-escalation.js +13 -8
  405. package/daemon/dist/domain/workflow-exception-escalation.js.map +1 -1
  406. package/daemon/dist/domain/workflow-instance-store.d.ts +14 -2
  407. package/daemon/dist/domain/workflow-instance-store.d.ts.map +1 -1
  408. package/daemon/dist/domain/workflow-instance-store.js +41 -4
  409. package/daemon/dist/domain/workflow-instance-store.js.map +1 -1
  410. package/daemon/dist/domain/workflow-projector.d.ts +55 -0
  411. package/daemon/dist/domain/workflow-projector.d.ts.map +1 -1
  412. package/daemon/dist/domain/workflow-projector.js +355 -174
  413. package/daemon/dist/domain/workflow-projector.js.map +1 -1
  414. package/daemon/dist/domain/workflow-reconciliation.d.ts +7 -1
  415. package/daemon/dist/domain/workflow-reconciliation.d.ts.map +1 -1
  416. package/daemon/dist/domain/workflow-reconciliation.js +51 -13
  417. package/daemon/dist/domain/workflow-reconciliation.js.map +1 -1
  418. package/daemon/dist/domain/workflow-runtime.d.ts +11 -3
  419. package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
  420. package/daemon/dist/domain/workflow-runtime.js +141 -27
  421. package/daemon/dist/domain/workflow-runtime.js.map +1 -1
  422. package/daemon/dist/lib/pane-envelope.d.ts.map +1 -1
  423. package/daemon/dist/lib/pane-envelope.js +12 -7
  424. package/daemon/dist/lib/pane-envelope.js.map +1 -1
  425. package/daemon/dist/routes/compaction.d.ts.map +1 -1
  426. package/daemon/dist/routes/compaction.js +6 -3
  427. package/daemon/dist/routes/compaction.js.map +1 -1
  428. package/daemon/dist/routes/queue.d.ts.map +1 -1
  429. package/daemon/dist/routes/queue.js +78 -31
  430. package/daemon/dist/routes/queue.js.map +1 -1
  431. package/daemon/dist/routes/restore-check.d.ts.map +1 -1
  432. package/daemon/dist/routes/restore-check.js +17 -0
  433. package/daemon/dist/routes/restore-check.js.map +1 -1
  434. package/daemon/dist/routes/rig-delivery-drain.d.ts +3 -0
  435. package/daemon/dist/routes/rig-delivery-drain.d.ts.map +1 -0
  436. package/daemon/dist/routes/rig-delivery-drain.js +46 -0
  437. package/daemon/dist/routes/rig-delivery-drain.js.map +1 -0
  438. package/daemon/dist/routes/scopes.d.ts.map +1 -1
  439. package/daemon/dist/routes/scopes.js +102 -19
  440. package/daemon/dist/routes/scopes.js.map +1 -1
  441. package/daemon/dist/routes/seat.d.ts.map +1 -1
  442. package/daemon/dist/routes/seat.js +50 -2
  443. package/daemon/dist/routes/seat.js.map +1 -1
  444. package/daemon/dist/routes/sessions.d.ts.map +1 -1
  445. package/daemon/dist/routes/sessions.js +54 -10
  446. package/daemon/dist/routes/sessions.js.map +1 -1
  447. package/daemon/dist/routes/startup.d.ts.map +1 -1
  448. package/daemon/dist/routes/startup.js +230 -40
  449. package/daemon/dist/routes/startup.js.map +1 -1
  450. package/daemon/dist/routes/transport.d.ts.map +1 -1
  451. package/daemon/dist/routes/transport.js +36 -2
  452. package/daemon/dist/routes/transport.js.map +1 -1
  453. package/daemon/dist/routes/up.js +2 -0
  454. package/daemon/dist/routes/up.js.map +1 -1
  455. package/daemon/dist/routes/watchdog.d.ts.map +1 -1
  456. package/daemon/dist/routes/watchdog.js +7 -1
  457. package/daemon/dist/routes/watchdog.js.map +1 -1
  458. package/daemon/dist/routes/workflow.d.ts.map +1 -1
  459. package/daemon/dist/routes/workflow.js +23 -5
  460. package/daemon/dist/routes/workflow.js.map +1 -1
  461. package/daemon/dist/server.d.ts.map +1 -1
  462. package/daemon/dist/server.js +2 -0
  463. package/daemon/dist/server.js.map +1 -1
  464. package/daemon/dist/startup.d.ts.map +1 -1
  465. package/daemon/dist/startup.js +111 -37
  466. package/daemon/dist/startup.js.map +1 -1
  467. package/daemon/docs/reference/agent-startup-guide.md +90 -2
  468. package/daemon/docs/reference/daemon-http-clients.md +69 -0
  469. package/daemon/docs/reference/developing.md +1 -1
  470. package/daemon/docs/reference/gateway-participants.md +5 -3
  471. package/daemon/docs/reference/getting-started.md +12 -11
  472. package/daemon/docs/reference/hosted-members.md +4 -2
  473. package/daemon/docs/reference/network-connector.md +4 -3
  474. package/daemon/docs/reference/queue-erasure.md +16 -1
  475. package/daemon/docs/reference/quickstart.md +2 -2
  476. package/daemon/docs/reference/rig-spec.md +92 -4
  477. package/daemon/docs/reference/rosters.md +26 -0
  478. package/daemon/docs/reference/seat-delivery.md +7 -1
  479. package/daemon/docs/reference/whats-new.md +397 -5
  480. package/daemon/specs/agents/shared/skills/core/openrig-software-factory/references/worked-example.md +1 -1
  481. package/daemon/specs/agents/shared/skills/core/openrig-upgrade/SKILL.md +2 -0
  482. package/daemon/specs/agents/shared/skills/core/working-with-an-openrig-team/SKILL.md +22 -6
  483. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +78 -18
  484. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/startup/context.md +9 -6
  485. package/dist/build-info.js +3 -3
  486. package/dist/client.d.ts +7 -3
  487. package/dist/client.d.ts.map +1 -1
  488. package/dist/client.js +11 -2
  489. package/dist/client.js.map +1 -1
  490. package/dist/commands/config.d.ts.map +1 -1
  491. package/dist/commands/config.js +2 -0
  492. package/dist/commands/config.js.map +1 -1
  493. package/dist/commands/down.d.ts.map +1 -1
  494. package/dist/commands/down.js +5 -1
  495. package/dist/commands/down.js.map +1 -1
  496. package/dist/commands/environment.js +1 -1
  497. package/dist/commands/environment.js.map +1 -1
  498. package/dist/commands/launch.d.ts.map +1 -1
  499. package/dist/commands/launch.js +8 -0
  500. package/dist/commands/launch.js.map +1 -1
  501. package/dist/commands/mcp.d.ts.map +1 -1
  502. package/dist/commands/mcp.js +18 -1
  503. package/dist/commands/mcp.js.map +1 -1
  504. package/dist/commands/network.d.ts +2 -0
  505. package/dist/commands/network.d.ts.map +1 -1
  506. package/dist/commands/network.js +14 -1
  507. package/dist/commands/network.js.map +1 -1
  508. package/dist/commands/ps.d.ts.map +1 -1
  509. package/dist/commands/ps.js +11 -5
  510. package/dist/commands/ps.js.map +1 -1
  511. package/dist/commands/queue.d.ts +1 -1
  512. package/dist/commands/queue.d.ts.map +1 -1
  513. package/dist/commands/queue.js +49 -12
  514. package/dist/commands/queue.js.map +1 -1
  515. package/dist/commands/restore.d.ts.map +1 -1
  516. package/dist/commands/restore.js +6 -1
  517. package/dist/commands/restore.js.map +1 -1
  518. package/dist/commands/roster.d.ts +4 -2
  519. package/dist/commands/roster.d.ts.map +1 -1
  520. package/dist/commands/roster.js +2 -2
  521. package/dist/commands/roster.js.map +1 -1
  522. package/dist/commands/seat.d.ts +2 -0
  523. package/dist/commands/seat.d.ts.map +1 -1
  524. package/dist/commands/seat.js +201 -14
  525. package/dist/commands/seat.js.map +1 -1
  526. package/dist/commands/send.d.ts.map +1 -1
  527. package/dist/commands/send.js +31 -6
  528. package/dist/commands/send.js.map +1 -1
  529. package/dist/commands/setup.d.ts.map +1 -1
  530. package/dist/commands/setup.js +5 -3
  531. package/dist/commands/setup.js.map +1 -1
  532. package/dist/commands/up.d.ts.map +1 -1
  533. package/dist/commands/up.js +7 -0
  534. package/dist/commands/up.js.map +1 -1
  535. package/dist/commands/walk.d.ts.map +1 -1
  536. package/dist/commands/walk.js +4 -0
  537. package/dist/commands/walk.js.map +1 -1
  538. package/dist/commands/workflow.d.ts.map +1 -1
  539. package/dist/commands/workflow.js +30 -4
  540. package/dist/commands/workflow.js.map +1 -1
  541. package/dist/config-store.d.ts +3 -1
  542. package/dist/config-store.d.ts.map +1 -1
  543. package/dist/config-store.js +5 -0
  544. package/dist/config-store.js.map +1 -1
  545. package/dist/lib/bundle-check.d.ts.map +1 -1
  546. package/dist/lib/bundle-check.js +33 -3
  547. package/dist/lib/bundle-check.js.map +1 -1
  548. package/dist/mcp-http.d.ts +3 -0
  549. package/dist/mcp-http.d.ts.map +1 -1
  550. package/dist/mcp-http.js +13 -0
  551. package/dist/mcp-http.js.map +1 -1
  552. package/dist/mcp-server.d.ts +9 -2
  553. package/dist/mcp-server.d.ts.map +1 -1
  554. package/dist/mcp-server.js +287 -69
  555. package/dist/mcp-server.js.map +1 -1
  556. package/dist/person-registration-offer.d.ts.map +1 -1
  557. package/dist/person-registration-offer.js +2 -1
  558. package/dist/person-registration-offer.js.map +1 -1
  559. package/package.json +2 -2
  560. package/tui/dist/commands/registry.d.ts.map +1 -1
  561. package/tui/dist/commands/registry.js +1 -0
  562. package/tui/dist/commands/registry.js.map +1 -1
  563. package/tui/dist/config/config-model.js +1 -1
  564. package/tui/dist/config/config-model.js.map +1 -1
  565. package/tui/dist/crash-cart/start-daemon.d.ts.map +1 -1
  566. package/tui/dist/crash-cart/start-daemon.js +4 -2
  567. package/tui/dist/crash-cart/start-daemon.js.map +1 -1
  568. package/tui/dist/daemon-client.d.ts +12 -1
  569. package/tui/dist/daemon-client.d.ts.map +1 -1
  570. package/tui/dist/daemon-client.js +44 -2
  571. package/tui/dist/daemon-client.js.map +1 -1
  572. package/tui/dist/hydrate.d.ts +1 -1
  573. package/tui/dist/hydrate.d.ts.map +1 -1
  574. package/tui/dist/hydrate.js +43 -1
  575. package/tui/dist/hydrate.js.map +1 -1
  576. package/tui/dist/main.js +3 -0
  577. package/tui/dist/main.js.map +1 -1
  578. package/tui/dist/page-read.d.ts.map +1 -1
  579. package/tui/dist/page-read.js +2 -1
  580. package/tui/dist/page-read.js.map +1 -1
  581. package/tui/dist/render.d.ts.map +1 -1
  582. package/tui/dist/render.js +110 -16
  583. package/tui/dist/render.js.map +1 -1
  584. package/tui/dist/scopes/fleet-scopes-model.d.ts +73 -0
  585. package/tui/dist/scopes/fleet-scopes-model.d.ts.map +1 -0
  586. package/tui/dist/scopes/fleet-scopes-model.js +102 -0
  587. package/tui/dist/scopes/fleet-scopes-model.js.map +1 -0
  588. package/tui/dist/scopes/scopes-model.d.ts +2 -0
  589. package/tui/dist/scopes/scopes-model.d.ts.map +1 -1
  590. package/tui/dist/scopes/scopes-model.js +7 -4
  591. package/tui/dist/scopes/scopes-model.js.map +1 -1
  592. package/tui/dist/sections.d.ts.map +1 -1
  593. package/tui/dist/sections.js +5 -0
  594. package/tui/dist/sections.js.map +1 -1
  595. package/tui/dist/startup.d.ts +5 -0
  596. package/tui/dist/startup.d.ts.map +1 -1
  597. package/tui/dist/startup.js +12 -0
  598. package/tui/dist/startup.js.map +1 -1
  599. package/tui/dist/state.d.ts.map +1 -1
  600. package/tui/dist/state.js +12 -5
  601. package/tui/dist/state.js.map +1 -1
  602. package/tui/dist/types.d.ts +18 -1
  603. package/tui/dist/types.d.ts.map +1 -1
@@ -124,11 +124,22 @@ export function composeLayout(text, width, caret = text.length) {
124
124
  place();
125
125
  return { rows: row + 1, caretRow, caretColumn };
126
126
  }
127
+ export function paneStyles(enabled) {
128
+ const sgr = (open) => (text) => (enabled ? `\u001b[${open}m${text}\u001b[0m` : text);
129
+ return { bold: sgr("1"), dim: sgr("2"), commit: sgr("1;36"), failed: sgr("1;31") };
130
+ }
131
+ const STYLE = paneStyles(process.stdout.isTTY === true && !process.env.NO_COLOR);
127
132
  export function createPaneCompositor(out) {
128
- let status = null;
129
- /** The status text actually on screen: clipped when it was painted. A resize must
130
- * size the region from this, not from the longer text it was pinned with. */
131
- let paintedStatus = null;
133
+ /** The seat's own status row (`model · thinking:… · state`), and the pinned diagnostic
134
+ * below it. They are independent: a turn clears the pin and keeps the seat row. */
135
+ let seat = null;
136
+ let pinned = null;
137
+ /** The status rows actually on screen, clipped when they were painted. A resize must
138
+ * size the region from these, not from the longer text they were set with. */
139
+ let paintedSeat = null;
140
+ let paintedPinned = null;
141
+ /** The unfinished streamed line, as displayed above the status rows (null when it is not). */
142
+ let paintedHeld = null;
132
143
  let readInput = null;
133
144
  let redrawLine = null;
134
145
  let held = "";
@@ -164,19 +175,71 @@ export function createPaneCompositor(out) {
164
175
  if (sequence)
165
176
  out.write(sequence);
166
177
  };
178
+ /** The visible tail of the held streamed line: at most the pane's spare rows, so a
179
+ * newline-free paragraph longer than the viewport never scrolls its own repaint —
180
+ * what scrolls stays in history, and the whole line is committed once when it ends. */
181
+ const heldTail = (text) => {
182
+ const height = typeof out.rows === "number" && out.rows > 0 ? out.rows : 24;
183
+ const budget = Math.max(1, height - 2
184
+ - (seat !== null ? 1 : 0) - (pinned !== null ? 1 : 0) - composeRows());
185
+ if (composeLayout(text, out.columns).rows <= budget)
186
+ return text;
187
+ // Bound by the final wrapped layout, ellipsis included: at an odd width a two-cell
188
+ // character can't fill the last column, so a cell-count bound would overflow the
189
+ // region. A shorter suffix never wraps to more rows, so bisect on its start.
190
+ const graphemes = [...graphemesOf(text)];
191
+ const fits = (start) => composeLayout(`\u2026${graphemes.slice(start).join("")}`, out.columns).rows <= budget;
192
+ let low = 0;
193
+ let high = graphemes.length; // the ellipsis alone fits any budget
194
+ while (low < high) {
195
+ const mid = Math.floor((low + high) / 2);
196
+ if (fits(mid))
197
+ high = mid;
198
+ else
199
+ low = mid + 1;
200
+ }
201
+ return `\u2026${graphemes.slice(low).join("")}`;
202
+ };
167
203
  /** Rows this compositor has on screen, recorded when it painted them. Readline never writes
168
204
  * to the terminal, so nothing else can change these rows behind the compositor's back —
169
205
  * except a reflow, which the resize handler owns. */
170
206
  const paint = () => {
171
- paintedStatus = status !== null ? clip(status) : null;
172
- if (paintedStatus !== null) {
173
- out.write(paintedStatus);
207
+ // Without a width nothing can be placed, erased or measured; the status text is kept
208
+ // and painted once a width is known (a resize or the next write calls back here).
209
+ if (!widthKnown()) {
210
+ paintedSeat = null;
211
+ paintedPinned = null;
212
+ paintedHeld = null;
213
+ screenRows = 0;
214
+ return;
215
+ }
216
+ // A transcript line a verbatim write left open must not be spliced by the region:
217
+ // close it first, so the region starts on its own row and the line stays whole.
218
+ if (openLine && (seat !== null || pinned !== null || composeRows() > 0)) {
219
+ out.write("\n");
220
+ openLine = false;
221
+ }
222
+ paintedSeat = seat !== null ? clip(seat) : null;
223
+ paintedPinned = pinned !== null ? clip(pinned) : null;
224
+ const statusRows = [paintedSeat, paintedPinned].filter((text) => text !== null);
225
+ // An in-progress streamed line stays visible as the region's first row while a status
226
+ // row is painted — bounded to the pane's spare rows so its own repaint never scrolls;
227
+ // without one the pane keeps its verbatim fallback and the line is held until it ends.
228
+ paintedHeld = statusRows.length > 0 && held.length > 0 ? heldTail(held) : null;
229
+ let heldRows = 0;
230
+ if (paintedHeld !== null) {
231
+ out.write(paintedHeld);
232
+ out.write("\n");
233
+ heldRows = Math.max(1, composeLayout(paintedHeld, out.columns).rows);
234
+ }
235
+ for (const text of statusRows) {
236
+ out.write(text);
174
237
  out.write("\n");
175
238
  }
176
239
  const rows = composeRows();
177
240
  if (rows)
178
241
  redrawLine?.();
179
- screenRows = (status !== null ? 1 : 0) + (rows || (status !== null ? 1 : 0));
242
+ screenRows = heldRows + statusRows.length + (rows || (heldRows + statusRows.length > 0 ? 1 : 0));
180
243
  // Only a painted region closes an open transcript line. With nothing painted the
181
244
  // cursor still sits on the line a flush left open, and the next keystroke belongs
182
245
  // to that line's context, not to a fresh one.
@@ -221,16 +284,28 @@ export function createPaneCompositor(out) {
221
284
  screenRows = 0;
222
285
  return;
223
286
  }
287
+ if (screenRows === 0) {
288
+ // Nothing painted: nothing to erase. A line a verbatim write left open is closed
289
+ // so the retained region starts on its own row instead of splicing into it.
290
+ if (openLine) {
291
+ out.write("\n");
292
+ openLine = false;
293
+ }
294
+ paint();
295
+ return;
296
+ }
224
297
  const draft = composeText();
225
298
  const layout = draft ? composeLayout(draft, out.columns, readCaretIndex ? readCaretIndex() : draft.length) : null;
226
299
  const draftRows = layout ? layout.rows : 0;
227
- const statusLines = paintedStatus !== null ? Math.max(1, Math.ceil(stringWidth(paintedStatus) / out.columns)) : 0;
300
+ const statusLines = [paintedSeat, paintedPinned].reduce((sum, text) => text !== null ? sum + Math.max(1, Math.ceil(stringWidth(text) / out.columns)) : sum, 0);
301
+ // The held streamed row reflowed at the new width: a long partial line wraps here too.
302
+ const heldLines = paintedHeld !== null ? composeLayout(paintedHeld, out.columns).rows : 0;
228
303
  const down = layout ? layout.rows - 1 - layout.caretRow : 0;
229
304
  if (down > 0)
230
305
  out.write(`\u001b[${down}B`);
231
- // A pinned status without a draft also owns the blank row its trailing newline
306
+ // Status and held rows without a draft also own the blank row their trailing newline
232
307
  // left the cursor on — the same row paint() counts into screenRows.
233
- eraseLines(statusLines + (draftRows || (status !== null ? 1 : 0)));
308
+ eraseLines(heldLines + statusLines + (draftRows || (heldLines + statusLines > 0 ? 1 : 0)));
234
309
  screenRows = 0;
235
310
  paint();
236
311
  };
@@ -249,6 +324,12 @@ export function createPaneCompositor(out) {
249
324
  redrawLine = null;
250
325
  readCaretUp = null;
251
326
  readCaretIndex = null;
327
+ // The region is gone; nothing of it may be repainted after the pane falls back.
328
+ seat = null;
329
+ pinned = null;
330
+ paintedSeat = null;
331
+ paintedPinned = null;
332
+ paintedHeld = null;
252
333
  openLine = false;
253
334
  screenRows = 0;
254
335
  },
@@ -256,7 +337,7 @@ export function createPaneCompositor(out) {
256
337
  eraseScreen();
257
338
  // With no region left, an unfinished streamed line goes out verbatim so the
258
339
  // next delta continues it on the same row instead of splitting mid-word.
259
- if (held && status === null && !composeText()) {
340
+ if (held && (!widthKnown() || (pinned === null && seat === null)) && !composeText()) {
260
341
  writeVerbatim(held);
261
342
  held = "";
262
343
  }
@@ -265,7 +346,7 @@ export function createPaneCompositor(out) {
265
346
  transcript(text) {
266
347
  if (!text)
267
348
  return;
268
- if (status === null && composeRows() === 0 && screenRows === 0) {
349
+ if (!widthKnown() || (pinned === null && seat === null && composeRows() === 0 && screenRows === 0)) {
269
350
  if (held) {
270
351
  writeVerbatim(held);
271
352
  held = "";
@@ -274,13 +355,25 @@ export function createPaneCompositor(out) {
274
355
  return;
275
356
  }
276
357
  held += text;
277
- let newline = held.indexOf("\n");
278
- while (newline >= 0) {
279
- const line = held.slice(0, newline + 1);
280
- held = held.slice(newline + 1);
281
- writeAbove(line);
282
- newline = held.indexOf("\n");
358
+ const first = held.indexOf("\n");
359
+ if (first < 0) {
360
+ // A delta with no newline yet must still show as it streams: repaint the region
361
+ // (the painted tail is bounded) while a status row is painted.
362
+ if (seat !== null || pinned !== null) {
363
+ eraseScreen();
364
+ paint();
365
+ }
366
+ return;
283
367
  }
368
+ // Drain every complete line in one batch: erase once, write them above in order,
369
+ // then repaint. Painting the remainder between lines would scroll a long chunk.
370
+ const last = held.lastIndexOf("\n");
371
+ const complete = held.slice(0, last + 1);
372
+ held = held.slice(last + 1);
373
+ eraseScreen();
374
+ out.write(complete);
375
+ openLine = false;
376
+ paint();
284
377
  },
285
378
  line(text) {
286
379
  pane.transcript(`${text}\n`);
@@ -301,14 +394,29 @@ export function createPaneCompositor(out) {
301
394
  openLine = false;
302
395
  }
303
396
  eraseScreen();
304
- status = clip(text);
397
+ pinned = text;
305
398
  paint();
306
399
  },
307
400
  clearStatus() {
308
- if (status === null)
401
+ if (pinned === null)
402
+ return;
403
+ eraseScreen();
404
+ pinned = null;
405
+ paint();
406
+ },
407
+ status(text) {
408
+ const next = text ? text : null;
409
+ if (next === seat)
410
+ return;
411
+ // Without a width nothing is painted or measured, but the text is kept: the next
412
+ // resize (or paint with a width) shows the state it named, instead of dropping it
413
+ // until some later state change.
414
+ if (!widthKnown()) {
415
+ seat = next;
309
416
  return;
417
+ }
310
418
  eraseScreen();
311
- status = null;
419
+ seat = next;
312
420
  paint();
313
421
  },
314
422
  beforeSubmit() {
@@ -529,6 +637,11 @@ function diagnosticText(details) {
529
637
  ? stripVTControlCharacters(detail).replace(/[\p{Cc}\p{Cf}\p{Zl}\p{Zp}]/gu, " ").replace(/\s+/g, " ").trim()
530
638
  : "").find(Boolean) ?? "";
531
639
  }
640
+ /** A runner-owned label for the pane (a configured model or effort): painted as given, so
641
+ * terminal controls and bidi/format characters are neutralized first, as diagnostics are. */
642
+ function paneLabel(text) {
643
+ return stripVTControlCharacters(text).replace(/[\p{Cc}\p{Cf}\p{Zl}\p{Zp}]/gu, " ").replace(/\s+/g, " ").trim();
644
+ }
532
645
  function errorNotice(details, runtime) {
533
646
  const text = diagnosticText(details);
534
647
  const marker = runtime === "omp" ? "[omp-runner] ERROR" : PI_RUNNER_ERROR_MARKER;
@@ -549,7 +662,7 @@ function modelErrorNotice(event, runtime) {
549
662
  }
550
663
  return {};
551
664
  }
552
- export function mapPiEvent(event, runtime = "pi") {
665
+ export function mapPiEvent(event, runtime = "pi", style = STYLE) {
553
666
  const type = typeof event.type === "string" ? event.type : "";
554
667
  switch (type) {
555
668
  case "agent_start":
@@ -591,12 +704,12 @@ export function mapPiEvent(event, runtime = "pi") {
591
704
  return { mirrorLines: [""], ...modelErrorNotice(event, runtime) };
592
705
  case "tool_execution_start": {
593
706
  const tool = typeof event.toolName === "string" ? event.toolName : (typeof event.name === "string" ? event.name : "tool");
594
- return { mirrorLines: [` ⚙ ${tool} …`], activity: { hookEvent: "PreToolUse", subtype: tool } };
707
+ return { mirrorLines: [` ${style.dim(`⚙ ${tool} …`)}`], activity: { hookEvent: "PreToolUse", subtype: tool } };
595
708
  }
596
709
  case "tool_execution_end": {
597
710
  const tool = typeof event.toolName === "string" ? event.toolName : (typeof event.name === "string" ? event.name : "tool");
598
711
  const failed = event.isError === true || event.error != null;
599
- return { mirrorLines: [` ⚙ ${tool} ${failed ? "FAILED" : "done"}`] };
712
+ return { mirrorLines: [` ${style.dim(`⚙ ${tool}`)} ${failed ? style.failed("FAILED") : "done"}`] };
600
713
  }
601
714
  case "queue_update":
602
715
  return { mirrorLines: [] };
@@ -709,6 +822,12 @@ export class RunnerCore {
709
822
  identity;
710
823
  opts;
711
824
  streaming = false;
825
+ /** The child is gone; the status row says exited, never idle. */
826
+ paneExited = false;
827
+ /** A failure is known and no new turn has started: the status row says error, not idle. */
828
+ paneError = false;
829
+ /** A runtime-reported automatic retry is in flight; the row says retrying until it ends. */
830
+ paneRetrying = false;
712
831
  /** Pi runs this runner has opened, each posted as an accepted turn (contract section 4): the working beat names it. */
713
832
  turn = 0;
714
833
  sessionFile;
@@ -792,6 +911,7 @@ export class RunnerCore {
792
911
  // are live-only signals.
793
912
  this.io.sendRpc({ type: "get_entries", since: this.opts.catchUpSince, id: CATCH_UP_ID });
794
913
  }
914
+ this.refreshPaneStatus();
795
915
  }
796
916
  /** One LF-delimited JSONL record from pi stdout. */
797
917
  handlePiLine(rawLine) {
@@ -858,7 +978,7 @@ export class RunnerCore {
858
978
  if (block.startsWith("/followup ")) {
859
979
  const message = block.slice("/followup ".length);
860
980
  this.io.sendRpc({ type: "follow_up", message });
861
- this.io.mirrorLine(`you (follow-up) ▸ ${message}`);
981
+ this.io.mirrorLine(`${this.style.commit("you (follow-up) ▸")} ${message}`);
862
982
  this.acceptIntoOpenRun();
863
983
  return;
864
984
  }
@@ -867,7 +987,7 @@ export class RunnerCore {
867
987
  // The runner's `streaming` starts only at agent_start, so it can't tell when a turn is about to start (#1932) or
868
988
  // when a prompt was consumed locally and started none. It labels the mirror line only.
869
989
  this.io.sendRpc({ type: "prompt", message: block, streamingBehavior: "steer" });
870
- this.io.mirrorLine(this.streaming ? `you (steer) ▸ ${block}` : `you ▸ ${block}`);
990
+ this.io.mirrorLine(this.streaming ? `${this.style.commit("you (steer) ▸")} ${block}` : `${this.style.commit("you ▸")} ${block}`);
871
991
  this.acceptIntoOpenRun();
872
992
  }
873
993
  /** A working beat counts only for the latest accepted turn, and each prompt the runner gives the agent is accepted with
@@ -883,10 +1003,12 @@ export class RunnerCore {
883
1003
  /** Child process exit — honest, loud, durable. */
884
1004
  handlePiExit(code) {
885
1005
  this.ready = false;
1006
+ this.paneExited = true;
886
1007
  this.reportDroppedFrame(this.frameDecoder?.incomplete());
887
1008
  this.io.mirrorLine(`[${this.runtime}-runner] EXITED ${this.runtime} exited (code ${code ?? "unknown"})`);
888
1009
  this.writeSidecar({ exited: { code, at: this.io.now() } });
889
1010
  this.io.postActivity(this.activityPayload("Stop", `${this.runtime}_exited`));
1011
+ this.refreshPaneStatus();
890
1012
  }
891
1013
  handleResponse(record) {
892
1014
  if (record.id === NEGOTIATE_ID && this.v2Limit !== null) {
@@ -905,8 +1027,10 @@ export class RunnerCore {
905
1027
  const message = detail + (this.runtime === "pi" ? piCredentialHint(detail) : "");
906
1028
  if (record.id === GET_STATE_ID) {
907
1029
  this.ready = false;
1030
+ this.paneError = true;
908
1031
  this.writeSidecar({});
909
1032
  this.diag(this.runtime === "omp" ? `[omp-runner] ERROR rpc get_state: ${message}` : `${PI_RUNNER_ERROR_MARKER} rpc: ${message}`);
1033
+ this.refreshPaneStatus();
910
1034
  // OMP cannot provide a resume token without get_state; stop it so the
911
1035
  // launch fails now instead of waiting out readiness.
912
1036
  if (this.runtime === "omp")
@@ -945,6 +1069,8 @@ export class RunnerCore {
945
1069
  // For custom protocol: pi-rpc community harnesses, reporting no session file
946
1070
  // reads as needing attention rather than stopping the child process.
947
1071
  this.diag(`[${this.runtime}-runner] ERROR rpc get_state returned no session file; cannot provide a resume token`);
1072
+ this.paneError = true;
1073
+ this.refreshPaneStatus();
948
1074
  this.raiseAttention("runtime_error");
949
1075
  return;
950
1076
  }
@@ -953,6 +1079,8 @@ export class RunnerCore {
953
1079
  // The sidecar names the reported file, so the launch refuses it at once; the identity isn't posted (below), and the
954
1080
  // seat asks for attention rather than beating idle on a session nothing records.
955
1081
  this.io.mirrorLine(`[${this.runtime}-runner] ERROR resume: get_state reports ${this.sessionFile}, not the requested ${this.opts.requestedSessionFile}; its identity isn't reported`);
1082
+ this.paneError = true;
1083
+ this.refreshPaneStatus();
956
1084
  this.raiseAttention("runtime_error");
957
1085
  return;
958
1086
  }
@@ -961,6 +1089,8 @@ export class RunnerCore {
961
1089
  // Subsequent get_state evaluations confirm liveness silently to avoid
962
1090
  // terminal output spam while preserving state updates.
963
1091
  this.io.mirrorLine(`${this.runtime === "omp" ? "[omp-runner] READY" : PI_RUNNER_READY_MARKER} session=${this.sessionFile ?? "unknown"}`);
1092
+ this.paneError = false;
1093
+ this.refreshPaneStatus();
964
1094
  }
965
1095
  // Re-post session identity on every successful get_state reply so the
966
1096
  // daemon can discover replacement runners and keep session records current.
@@ -1068,6 +1198,7 @@ export class RunnerCore {
1068
1198
  this.attention = next;
1069
1199
  this.attentionIsLatest = true;
1070
1200
  this.io.postActivity(this.activityPayload("Notification", next === "transient_turn_error" ? "runtime_error" : next));
1201
+ this.refreshPaneStatus();
1071
1202
  }
1072
1203
  /** Idle and streaming heartbeat. A Pi runner only reports at turn and tool boundaries, and the
1073
1204
  * daemon reads any hook older than its freshness window as `unknown` (`stale_runtime_hook`): an
@@ -1111,6 +1242,7 @@ export class RunnerCore {
1111
1242
  clearAttention() {
1112
1243
  this.attention = null;
1113
1244
  this.attentionIsLatest = false;
1245
+ this.refreshPaneStatus();
1114
1246
  }
1115
1247
  /** A diagnostic stays in the transcript — the readiness probe and the operator both read
1116
1248
  * it there; a pane with a status line pins the latest one as a convenience copy. */
@@ -1118,6 +1250,45 @@ export class RunnerCore {
1118
1250
  this.io.mirrorLine(text);
1119
1251
  this.io.diagnostic?.(text);
1120
1252
  }
1253
+ /** The pane's status row: what this seat runs, and the state the runner observed.
1254
+ * Only what is known is shown — a model or effort the launch did not name is omitted,
1255
+ * and a seat that is not ready yet, waiting on the operator, or failed never reads as
1256
+ * idle. Plain text; the pane owns clipping and repainting. */
1257
+ refreshPaneStatus() {
1258
+ if (!this.io.status)
1259
+ return;
1260
+ const parts = [];
1261
+ // The labels are runner-owned text painted as given: neutralize terminal controls so a
1262
+ // configured value cannot act on the terminal, exactly as diagnostics are treated.
1263
+ if (this.opts.model)
1264
+ parts.push(paneLabel(this.opts.model));
1265
+ if (this.opts.thinking)
1266
+ parts.push(`thinking:${paneLabel(this.opts.thinking)}`);
1267
+ parts.push(this.paneState());
1268
+ this.io.status(parts.join(" \u00b7 "));
1269
+ }
1270
+ paneState() {
1271
+ if (this.paneExited)
1272
+ return "exited";
1273
+ if (!this.ready)
1274
+ return this.paneError ? "error" : "starting";
1275
+ if (this.attention === "permission_prompt")
1276
+ return "waiting for input";
1277
+ if (this.attention === "runtime_error")
1278
+ return "error";
1279
+ if (this.attention === "transient_turn_error")
1280
+ return "retrying";
1281
+ // A known failure outranks an open turn, and an observed retry outranks "working".
1282
+ if (this.paneError)
1283
+ return "error";
1284
+ if (this.paneRetrying)
1285
+ return "retrying";
1286
+ if (this.streaming)
1287
+ return "working";
1288
+ return "idle";
1289
+ }
1290
+ /** Emphasis for the lines the runner writes itself; model output stays plain. */
1291
+ get style() { return this.opts.style ?? STYLE; }
1121
1292
  handleEvent(event) {
1122
1293
  if (event.type === "extension_ui_request") {
1123
1294
  const method = event.method;
@@ -1145,6 +1316,11 @@ export class RunnerCore {
1145
1316
  const message = event.message;
1146
1317
  if (event.type === "agent_start" || (event.type === "message_start" && message?.role === "assistant")) {
1147
1318
  this.assistantErrorShown = false;
1319
+ // A new assistant message supersedes the failed one it follows, even in the same turn.
1320
+ if (event.type === "message_start" && this.paneError) {
1321
+ this.paneError = false;
1322
+ this.refreshPaneStatus();
1323
+ }
1148
1324
  }
1149
1325
  // Durable cursor: any event carrying a session-entry id advances it. A Pi event's own `id` isn't one (Pi's
1150
1326
  // history ids reach the cursor through get_entries), so on Pi only an explicit `entryId` counts.
@@ -1157,6 +1333,31 @@ export class RunnerCore {
1157
1333
  if (event.type === "agent_start") {
1158
1334
  this.clearAttention();
1159
1335
  this.io.clearStatus?.();
1336
+ this.paneError = false;
1337
+ this.paneRetrying = false;
1338
+ this.refreshPaneStatus();
1339
+ }
1340
+ // A retry replaces the failed attempt it retries, so the row follows the attempt until
1341
+ // its matching end, exit or a superseding turn.
1342
+ if (event.type === "auto_retry_start") {
1343
+ this.paneError = false;
1344
+ this.paneRetrying = true;
1345
+ this.refreshPaneStatus();
1346
+ }
1347
+ if (event.type === "auto_retry_end") {
1348
+ this.paneRetrying = false;
1349
+ this.refreshPaneStatus();
1350
+ }
1351
+ // A turn's opening supersedes the previous turn's failure — on either runtime, since
1352
+ // both can open a turn with turn_start alone. omp's attention policy is untouched.
1353
+ if (event.type === "turn_start") {
1354
+ this.paneError = false;
1355
+ this.paneRetrying = false;
1356
+ if (this.runtime === "omp" && !this.streaming) {
1357
+ // A turn the runtime opened itself is work in flight; agent_end still closes it.
1358
+ this.streaming = true;
1359
+ }
1360
+ this.refreshPaneStatus();
1160
1361
  }
1161
1362
  if (this.runtime === "omp") {
1162
1363
  if (event.type === "agent_start" || event.type === "turn_start"
@@ -1175,13 +1376,17 @@ export class RunnerCore {
1175
1376
  if (event.type === "turn_start")
1176
1377
  this.assistantErrorShown = false;
1177
1378
  }
1178
- const mapped = mapPiEvent(event, this.runtime);
1379
+ const mapped = mapPiEvent(event, this.runtime, this.style);
1179
1380
  // A working beat counts only for the latest accepted turn. Pi's runs start from this runner's prompts, so the run
1180
1381
  // that opens is posted as one, before its first event; a prompt Pi handles without a run opens none. A prompt sent
1181
1382
  // into an open run is accepted as it's sent (acceptIntoOpenRun).
1182
1383
  const opening = this.runtime !== "omp" && mapped.streaming === true && !this.streaming;
1183
- if (mapped.streaming !== undefined)
1384
+ if (mapped.streaming !== undefined) {
1385
+ const changed = this.streaming !== mapped.streaming;
1184
1386
  this.streaming = mapped.streaming;
1387
+ if (changed)
1388
+ this.refreshPaneStatus();
1389
+ }
1185
1390
  if (opening) {
1186
1391
  this.turn += 1;
1187
1392
  this.io.postActivity(this.activityPayload("UserPromptSubmit", "accepted", { turnId: String(this.turn) }));
@@ -1191,6 +1396,11 @@ export class RunnerCore {
1191
1396
  if (event.type === "agent_end" && this.runtime === "omp")
1192
1397
  this.postSessionIdentity();
1193
1398
  if (event.type === "agent_end") {
1399
+ // A retry that never reported its end must not outlive the turn it belonged to.
1400
+ if (this.paneRetrying) {
1401
+ this.paneRetrying = false;
1402
+ this.refreshPaneStatus();
1403
+ }
1194
1404
  // QA RED fold: live events do not reliably carry
1195
1405
  // session-entry ids, so the durable cursor starved (lastEntryId stayed
1196
1406
  // null in real runs). Refresh it from the source of truth after every
@@ -1211,6 +1421,9 @@ export class RunnerCore {
1211
1421
  this.diag(mapped.errorNotice);
1212
1422
  }
1213
1423
  this.assistantErrorShown = true;
1424
+ // The failure is known: the row says so until a new turn starts, never idle.
1425
+ this.paneError = true;
1426
+ this.refreshPaneStatus();
1214
1427
  // Only typed, explicitly transient HTTP failures may release the send
1215
1428
  // guard at agent_end. Unknown/auth/configuration failures stay attention;
1216
1429
  // diagnostic prose is never used to decide whether a retry is safe.
@@ -1782,6 +1995,7 @@ export async function main(argv = process.argv.slice(2)) {
1782
1995
  mirrorLine: (line) => pane.line(line),
1783
1996
  mirrorAppend: (text) => pane.transcript(text),
1784
1997
  diagnostic: (text) => pane.diagnostic(text),
1998
+ status: (text) => pane.status(text),
1785
1999
  clearStatus: () => pane.clearStatus(),
1786
2000
  postActivity: (payload) => {
1787
2001
  if (!endpoint || typeof fetch !== "function")
@@ -1848,7 +2062,7 @@ export async function main(argv = process.argv.slice(2)) {
1848
2062
  generation: process.env.OPENRIG_OCCUPANT_GENERATION,
1849
2063
  runId: runId,
1850
2064
  }, { catchUpSince, runtime, usageFacts: args.usageFacts === true, openRouterCharge: args.openRouterCharge === true, launchCredentialEvidence,
1851
- requestedSessionFile: args.sessionFile });
2065
+ requestedSessionFile: args.sessionFile, model: args.model, thinking: args.thinking });
1852
2066
  let transportUp = runtime !== "omp";
1853
2067
  readline.createInterface({ input: child.stdout }).on("line", (line) => {
1854
2068
  if (runtime === "omp" && !core.isReady()) {