@openrig/cli 0.7.8 → 0.7.9

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 (660) hide show
  1. package/README.md +6 -6
  2. package/daemon/assets/openshell/README.md +4 -2
  3. package/daemon/assets/openshell/guest.py +13 -0
  4. package/daemon/assets/openshell/preset.yaml +1 -0
  5. package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
  6. package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
  7. package/daemon/assets/plugins/openrig-core/skills/seat-continuity-and-handover/SKILL.md +12 -3
  8. package/daemon/context-packs/help/manifest.yaml +1 -1
  9. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  10. package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +99 -29
  11. package/daemon/context-packs/reference/getting-started.md +30 -8
  12. package/daemon/context-packs/reference/instance-layout.md +11 -0
  13. package/daemon/context-packs/reference/manifest.yaml +1 -1
  14. package/daemon/context-packs/reference/rig-spec.md +61 -2
  15. package/daemon/context-packs/reference/whats-new.md +198 -140
  16. package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
  17. package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
  18. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
  19. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
  20. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  21. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  22. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  23. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  24. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
  25. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  26. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  27. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
  28. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
  29. package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
  30. package/daemon/context-packs/skills/core/openrig-upgrade/SKILL.md +4 -3
  31. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
  32. package/daemon/context-packs/skills/core/openrig-upgrade/scripts/backup-sqlite.mjs +90 -14
  33. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
  34. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
  35. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
  36. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
  37. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
  38. package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
  39. package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
  40. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
  41. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
  42. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
  43. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
  44. package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
  45. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
  46. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  47. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  48. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  49. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  50. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  51. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
  52. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  53. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  54. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  55. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  56. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  57. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
  58. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  59. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
  60. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  61. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
  62. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
  63. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
  64. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
  65. package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
  66. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
  67. package/daemon/context-packs/skills/seat-continuity-and-handover/SKILL.md +12 -3
  68. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
  69. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
  70. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
  71. package/daemon/context-packs/world-example/manifest.yaml +1 -1
  72. package/daemon/context-packs/world-public/manifest.yaml +1 -1
  73. package/daemon/dist/adapters/claude-code-adapter.d.ts +6 -0
  74. package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
  75. package/daemon/dist/adapters/claude-code-adapter.js +14 -68
  76. package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
  77. package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
  78. package/daemon/dist/adapters/claude-resume.js +13 -4
  79. package/daemon/dist/adapters/claude-resume.js.map +1 -1
  80. package/daemon/dist/adapters/codex-runtime-adapter.d.ts +29 -0
  81. package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
  82. package/daemon/dist/adapters/codex-runtime-adapter.js +118 -12
  83. package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
  84. package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
  85. package/daemon/dist/adapters/community-harness-runtime-adapter.js +3 -0
  86. package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
  87. package/daemon/dist/adapters/omp-runtime-adapter.d.ts +5 -0
  88. package/daemon/dist/adapters/omp-runtime-adapter.d.ts.map +1 -1
  89. package/daemon/dist/adapters/omp-runtime-adapter.js +4 -0
  90. package/daemon/dist/adapters/omp-runtime-adapter.js.map +1 -1
  91. package/daemon/dist/adapters/openshell-driver.d.ts.map +1 -1
  92. package/daemon/dist/adapters/openshell-driver.js +8 -2
  93. package/daemon/dist/adapters/openshell-driver.js.map +1 -1
  94. package/daemon/dist/adapters/pi-runner.d.ts +39 -5
  95. package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
  96. package/daemon/dist/adapters/pi-runner.js +97 -19
  97. package/daemon/dist/adapters/pi-runner.js.map +1 -1
  98. package/daemon/dist/adapters/pi-runtime-adapter.d.ts +22 -0
  99. package/daemon/dist/adapters/pi-runtime-adapter.d.ts.map +1 -1
  100. package/daemon/dist/adapters/pi-runtime-adapter.js +39 -8
  101. package/daemon/dist/adapters/pi-runtime-adapter.js.map +1 -1
  102. package/daemon/dist/adapters/preflight-exec.d.ts +2 -0
  103. package/daemon/dist/adapters/preflight-exec.d.ts.map +1 -1
  104. package/daemon/dist/adapters/preflight-exec.js +3 -1
  105. package/daemon/dist/adapters/preflight-exec.js.map +1 -1
  106. package/daemon/dist/adapters/stub-runtime-adapter.d.ts +5 -0
  107. package/daemon/dist/adapters/stub-runtime-adapter.d.ts.map +1 -1
  108. package/daemon/dist/adapters/stub-runtime-adapter.js +7 -4
  109. package/daemon/dist/adapters/stub-runtime-adapter.js.map +1 -1
  110. package/daemon/dist/adapters/tmux-exec.d.ts +3 -0
  111. package/daemon/dist/adapters/tmux-exec.d.ts.map +1 -1
  112. package/daemon/dist/adapters/tmux-exec.js +35 -1
  113. package/daemon/dist/adapters/tmux-exec.js.map +1 -1
  114. package/daemon/dist/adapters/tmux.d.ts +3 -0
  115. package/daemon/dist/adapters/tmux.d.ts.map +1 -1
  116. package/daemon/dist/adapters/tmux.js +28 -3
  117. package/daemon/dist/adapters/tmux.js.map +1 -1
  118. package/daemon/dist/build-info.js +3 -3
  119. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  120. package/daemon/dist/db/all-migrations.js +8 -0
  121. package/daemon/dist/db/all-migrations.js.map +1 -1
  122. package/daemon/dist/db/migrations/146_node_startup_guidance_file.d.ts +6 -0
  123. package/daemon/dist/db/migrations/146_node_startup_guidance_file.d.ts.map +1 -0
  124. package/daemon/dist/db/migrations/146_node_startup_guidance_file.js +8 -0
  125. package/daemon/dist/db/migrations/146_node_startup_guidance_file.js.map +1 -0
  126. package/daemon/dist/db/migrations/147_managed_block_writes.d.ts +9 -0
  127. package/daemon/dist/db/migrations/147_managed_block_writes.d.ts.map +1 -0
  128. package/daemon/dist/db/migrations/147_managed_block_writes.js +19 -0
  129. package/daemon/dist/db/migrations/147_managed_block_writes.js.map +1 -0
  130. package/daemon/dist/db/migrations/148_outbox_dispatched_index.d.ts +8 -0
  131. package/daemon/dist/db/migrations/148_outbox_dispatched_index.d.ts.map +1 -0
  132. package/daemon/dist/db/migrations/148_outbox_dispatched_index.js +12 -0
  133. package/daemon/dist/db/migrations/148_outbox_dispatched_index.js.map +1 -0
  134. package/daemon/dist/db/migrations/149_stream_intake_cursor.d.ts +4 -0
  135. package/daemon/dist/db/migrations/149_stream_intake_cursor.d.ts.map +1 -0
  136. package/daemon/dist/db/migrations/149_stream_intake_cursor.js +14 -0
  137. package/daemon/dist/db/migrations/149_stream_intake_cursor.js.map +1 -0
  138. package/daemon/dist/domain/activity-taxonomy.d.ts +3 -0
  139. package/daemon/dist/domain/activity-taxonomy.d.ts.map +1 -1
  140. package/daemon/dist/domain/activity-taxonomy.js.map +1 -1
  141. package/daemon/dist/domain/bootstrap-orchestrator.d.ts.map +1 -1
  142. package/daemon/dist/domain/bootstrap-orchestrator.js +3 -1
  143. package/daemon/dist/domain/bootstrap-orchestrator.js.map +1 -1
  144. package/daemon/dist/domain/bundle-archive.d.ts.map +1 -1
  145. package/daemon/dist/domain/bundle-archive.js +40 -4
  146. package/daemon/dist/domain/bundle-archive.js.map +1 -1
  147. package/daemon/dist/domain/bundle-behaviour.d.ts.map +1 -1
  148. package/daemon/dist/domain/bundle-behaviour.js +7 -0
  149. package/daemon/dist/domain/bundle-behaviour.js.map +1 -1
  150. package/daemon/dist/domain/bundle-content-routing.d.ts +1 -0
  151. package/daemon/dist/domain/bundle-content-routing.d.ts.map +1 -1
  152. package/daemon/dist/domain/bundle-content-routing.js +3 -1
  153. package/daemon/dist/domain/bundle-content-routing.js.map +1 -1
  154. package/daemon/dist/domain/bundle-source-resolver.d.ts +2 -0
  155. package/daemon/dist/domain/bundle-source-resolver.d.ts.map +1 -1
  156. package/daemon/dist/domain/bundle-source-resolver.js +4 -4
  157. package/daemon/dist/domain/bundle-source-resolver.js.map +1 -1
  158. package/daemon/dist/domain/claude-compaction-enforcer.d.ts +1 -1
  159. package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
  160. package/daemon/dist/domain/claude-compaction-enforcer.js +14 -9
  161. package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
  162. package/daemon/dist/domain/claude-owned-settings.d.ts +19 -0
  163. package/daemon/dist/domain/claude-owned-settings.d.ts.map +1 -0
  164. package/daemon/dist/domain/claude-owned-settings.js +160 -0
  165. package/daemon/dist/domain/claude-owned-settings.js.map +1 -0
  166. package/daemon/dist/domain/claude-plugin-channels.d.ts +2 -0
  167. package/daemon/dist/domain/claude-plugin-channels.d.ts.map +1 -0
  168. package/daemon/dist/domain/claude-plugin-channels.js +12 -0
  169. package/daemon/dist/domain/claude-plugin-channels.js.map +1 -0
  170. package/daemon/dist/domain/claude-theme-menu.d.ts +5 -0
  171. package/daemon/dist/domain/claude-theme-menu.d.ts.map +1 -0
  172. package/daemon/dist/domain/claude-theme-menu.js +43 -0
  173. package/daemon/dist/domain/claude-theme-menu.js.map +1 -0
  174. package/daemon/dist/domain/codex-pane-patterns.d.ts +1 -0
  175. package/daemon/dist/domain/codex-pane-patterns.d.ts.map +1 -1
  176. package/daemon/dist/domain/codex-pane-patterns.js +2 -0
  177. package/daemon/dist/domain/codex-pane-patterns.js.map +1 -1
  178. package/daemon/dist/domain/composer-prompts.d.ts +2 -0
  179. package/daemon/dist/domain/composer-prompts.d.ts.map +1 -1
  180. package/daemon/dist/domain/composer-prompts.js +3 -2
  181. package/daemon/dist/domain/composer-prompts.js.map +1 -1
  182. package/daemon/dist/domain/desired-claude-activity-hooks.d.ts +10 -6
  183. package/daemon/dist/domain/desired-claude-activity-hooks.d.ts.map +1 -1
  184. package/daemon/dist/domain/desired-claude-activity-hooks.js +69 -13
  185. package/daemon/dist/domain/desired-claude-activity-hooks.js.map +1 -1
  186. package/daemon/dist/domain/draft-aware-delivery.d.ts.map +1 -1
  187. package/daemon/dist/domain/draft-aware-delivery.js +8 -2
  188. package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
  189. package/daemon/dist/domain/environment-lifecycle.d.ts +7 -0
  190. package/daemon/dist/domain/environment-lifecycle.d.ts.map +1 -1
  191. package/daemon/dist/domain/environment-lifecycle.js +15 -2
  192. package/daemon/dist/domain/environment-lifecycle.js.map +1 -1
  193. package/daemon/dist/domain/environment-startup.d.ts +3 -1
  194. package/daemon/dist/domain/environment-startup.d.ts.map +1 -1
  195. package/daemon/dist/domain/environment-startup.js +31 -5
  196. package/daemon/dist/domain/environment-startup.js.map +1 -1
  197. package/daemon/dist/domain/gateway/human-readiness.d.ts +2 -1
  198. package/daemon/dist/domain/gateway/human-readiness.d.ts.map +1 -1
  199. package/daemon/dist/domain/gateway/human-readiness.js +6 -0
  200. package/daemon/dist/domain/gateway/human-readiness.js.map +1 -1
  201. package/daemon/dist/domain/gateway/human-registry.d.ts +2 -1
  202. package/daemon/dist/domain/gateway/human-registry.d.ts.map +1 -1
  203. package/daemon/dist/domain/gateway/human-registry.js +9 -7
  204. package/daemon/dist/domain/gateway/human-registry.js.map +1 -1
  205. package/daemon/dist/domain/gateway/participants.d.ts +26 -0
  206. package/daemon/dist/domain/gateway/participants.d.ts.map +1 -1
  207. package/daemon/dist/domain/gateway/participants.js +15 -0
  208. package/daemon/dist/domain/gateway/participants.js.map +1 -1
  209. package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
  210. package/daemon/dist/domain/gateway/slack/inbound.js +21 -5
  211. package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
  212. package/daemon/dist/domain/gateway/slack/message.d.ts +3 -0
  213. package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
  214. package/daemon/dist/domain/gateway/slack/message.js +4 -3
  215. package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
  216. package/daemon/dist/domain/gateway/slack/queue-access.d.ts +3 -2
  217. package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
  218. package/daemon/dist/domain/gateway/slack/queue-access.js +17 -6
  219. package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
  220. package/daemon/dist/domain/gateway/slack/recovery-budget.d.ts +1 -0
  221. package/daemon/dist/domain/gateway/slack/recovery-budget.d.ts.map +1 -1
  222. package/daemon/dist/domain/gateway/slack/recovery-budget.js +1 -0
  223. package/daemon/dist/domain/gateway/slack/recovery-budget.js.map +1 -1
  224. package/daemon/dist/domain/gateway/slack/settled-asks.d.ts +37 -0
  225. package/daemon/dist/domain/gateway/slack/settled-asks.d.ts.map +1 -0
  226. package/daemon/dist/domain/gateway/slack/settled-asks.js +276 -0
  227. package/daemon/dist/domain/gateway/slack/settled-asks.js.map +1 -0
  228. package/daemon/dist/domain/gateway/slack/slack-api.d.ts +32 -0
  229. package/daemon/dist/domain/gateway/slack/slack-api.d.ts.map +1 -1
  230. package/daemon/dist/domain/gateway/slack/slack-api.js +40 -2
  231. package/daemon/dist/domain/gateway/slack/slack-api.js.map +1 -1
  232. package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
  233. package/daemon/dist/domain/gateway/slack/slack-subsystem.js +30 -6
  234. package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
  235. package/daemon/dist/domain/human-questions.d.ts +3 -1
  236. package/daemon/dist/domain/human-questions.d.ts.map +1 -1
  237. package/daemon/dist/domain/human-questions.js.map +1 -1
  238. package/daemon/dist/domain/kernel-boot-tracker.d.ts +3 -2
  239. package/daemon/dist/domain/kernel-boot-tracker.d.ts.map +1 -1
  240. package/daemon/dist/domain/kernel-boot-tracker.js +2 -1
  241. package/daemon/dist/domain/kernel-boot-tracker.js.map +1 -1
  242. package/daemon/dist/domain/kernel-boot.d.ts +11 -6
  243. package/daemon/dist/domain/kernel-boot.d.ts.map +1 -1
  244. package/daemon/dist/domain/kernel-boot.js +27 -5
  245. package/daemon/dist/domain/kernel-boot.js.map +1 -1
  246. package/daemon/dist/domain/kernel-hook-review.d.ts +3 -1
  247. package/daemon/dist/domain/kernel-hook-review.d.ts.map +1 -1
  248. package/daemon/dist/domain/kernel-hook-review.js +12 -3
  249. package/daemon/dist/domain/kernel-hook-review.js.map +1 -1
  250. package/daemon/dist/domain/managed-block-records.d.ts +54 -0
  251. package/daemon/dist/domain/managed-block-records.d.ts.map +1 -0
  252. package/daemon/dist/domain/managed-block-records.js +130 -0
  253. package/daemon/dist/domain/managed-block-records.js.map +1 -0
  254. package/daemon/dist/domain/managed-blocks.d.ts +14 -0
  255. package/daemon/dist/domain/managed-blocks.d.ts.map +1 -1
  256. package/daemon/dist/domain/managed-blocks.js +24 -4
  257. package/daemon/dist/domain/managed-blocks.js.map +1 -1
  258. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts +26 -10
  259. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
  260. package/daemon/dist/domain/mission-control/mission-control-write-contract.js +98 -26
  261. package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
  262. package/daemon/dist/domain/native-process-lineage.d.ts +2 -1
  263. package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
  264. package/daemon/dist/domain/native-process-lineage.js +57 -5
  265. package/daemon/dist/domain/native-process-lineage.js.map +1 -1
  266. package/daemon/dist/domain/node-inventory.d.ts +1 -0
  267. package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
  268. package/daemon/dist/domain/node-inventory.js +24 -2
  269. package/daemon/dist/domain/node-inventory.js.map +1 -1
  270. package/daemon/dist/domain/outbox-handler.d.ts +5 -0
  271. package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
  272. package/daemon/dist/domain/outbox-handler.js +28 -0
  273. package/daemon/dist/domain/outbox-handler.js.map +1 -1
  274. package/daemon/dist/domain/profile-resolver.d.ts.map +1 -1
  275. package/daemon/dist/domain/profile-resolver.js +7 -1
  276. package/daemon/dist/domain/profile-resolver.js.map +1 -1
  277. package/daemon/dist/domain/queue-recovery.d.ts +1 -1
  278. package/daemon/dist/domain/queue-recovery.d.ts.map +1 -1
  279. package/daemon/dist/domain/queue-recovery.js +6 -2
  280. package/daemon/dist/domain/queue-recovery.js.map +1 -1
  281. package/daemon/dist/domain/queue-repository.d.ts +32 -7
  282. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  283. package/daemon/dist/domain/queue-repository.js +165 -50
  284. package/daemon/dist/domain/queue-repository.js.map +1 -1
  285. package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
  286. package/daemon/dist/domain/queue-stuck-sweep.js +28 -4
  287. package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
  288. package/daemon/dist/domain/queue-transition-log.d.ts +2 -0
  289. package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
  290. package/daemon/dist/domain/queue-transition-log.js +9 -0
  291. package/daemon/dist/domain/queue-transition-log.js.map +1 -1
  292. package/daemon/dist/domain/restore-guidance.d.ts +70 -7
  293. package/daemon/dist/domain/restore-guidance.d.ts.map +1 -1
  294. package/daemon/dist/domain/restore-guidance.js +181 -18
  295. package/daemon/dist/domain/restore-guidance.js.map +1 -1
  296. package/daemon/dist/domain/restore-orchestrator.d.ts +5 -0
  297. package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
  298. package/daemon/dist/domain/restore-orchestrator.js +115 -17
  299. package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
  300. package/daemon/dist/domain/rig-repository.d.ts +4 -0
  301. package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
  302. package/daemon/dist/domain/rig-repository.js +20 -1
  303. package/daemon/dist/domain/rig-repository.js.map +1 -1
  304. package/daemon/dist/domain/rig-teardown.d.ts +18 -0
  305. package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
  306. package/daemon/dist/domain/rig-teardown.js +73 -17
  307. package/daemon/dist/domain/rig-teardown.js.map +1 -1
  308. package/daemon/dist/domain/rigspec-codec.d.ts.map +1 -1
  309. package/daemon/dist/domain/rigspec-codec.js +2 -0
  310. package/daemon/dist/domain/rigspec-codec.js.map +1 -1
  311. package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
  312. package/daemon/dist/domain/rigspec-exporter.js +6 -1
  313. package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
  314. package/daemon/dist/domain/rigspec-instantiator.d.ts +7 -4
  315. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  316. package/daemon/dist/domain/rigspec-instantiator.js +19 -7
  317. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  318. package/daemon/dist/domain/rigspec-preflight.d.ts +4 -0
  319. package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
  320. package/daemon/dist/domain/rigspec-preflight.js +35 -1
  321. package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
  322. package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
  323. package/daemon/dist/domain/rigspec-schema.js +32 -5
  324. package/daemon/dist/domain/rigspec-schema.js.map +1 -1
  325. package/daemon/dist/domain/runner-permissions.d.ts +15 -0
  326. package/daemon/dist/domain/runner-permissions.d.ts.map +1 -1
  327. package/daemon/dist/domain/runner-permissions.js +74 -9
  328. package/daemon/dist/domain/runner-permissions.js.map +1 -1
  329. package/daemon/dist/domain/runtime-adapter.d.ts +19 -1
  330. package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
  331. package/daemon/dist/domain/runtime-adapter.js.map +1 -1
  332. package/daemon/dist/domain/runtime-switch-materials.d.ts.map +1 -1
  333. package/daemon/dist/domain/runtime-switch-materials.js +3 -0
  334. package/daemon/dist/domain/runtime-switch-materials.js.map +1 -1
  335. package/daemon/dist/domain/runtime-verifier.d.ts.map +1 -1
  336. package/daemon/dist/domain/runtime-verifier.js +9 -4
  337. package/daemon/dist/domain/runtime-verifier.js.map +1 -1
  338. package/daemon/dist/domain/scope/scope-audit.d.ts +1 -1
  339. package/daemon/dist/domain/scope/scope-audit.d.ts.map +1 -1
  340. package/daemon/dist/domain/scope/scope-audit.js.map +1 -1
  341. package/daemon/dist/domain/scope/types.d.ts +3 -0
  342. package/daemon/dist/domain/scope/types.d.ts.map +1 -1
  343. package/daemon/dist/domain/scope/types.js.map +1 -1
  344. package/daemon/dist/domain/seat-activity-service.d.ts +7 -0
  345. package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -1
  346. package/daemon/dist/domain/seat-activity-service.js +47 -7
  347. package/daemon/dist/domain/seat-activity-service.js.map +1 -1
  348. package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
  349. package/daemon/dist/domain/seat-attention-reconciler.js +8 -1
  350. package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
  351. package/daemon/dist/domain/seat-delivery-guard.d.ts +22 -4
  352. package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
  353. package/daemon/dist/domain/seat-delivery-guard.js +80 -11
  354. package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
  355. package/daemon/dist/domain/seat-handover-service.d.ts +23 -10
  356. package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
  357. package/daemon/dist/domain/seat-handover-service.js +119 -3
  358. package/daemon/dist/domain/seat-handover-service.js.map +1 -1
  359. package/daemon/dist/domain/seat-launch-additions.d.ts +6 -0
  360. package/daemon/dist/domain/seat-launch-additions.d.ts.map +1 -1
  361. package/daemon/dist/domain/seat-launch-additions.js +41 -11
  362. package/daemon/dist/domain/seat-launch-additions.js.map +1 -1
  363. package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
  364. package/daemon/dist/domain/seat-lifecycle-service.js +3 -1
  365. package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
  366. package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
  367. package/daemon/dist/domain/seat-runtime-switch-service.js +17 -3
  368. package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
  369. package/daemon/dist/domain/seat-skill-storage.d.ts +2 -2
  370. package/daemon/dist/domain/seat-skill-storage.js +2 -2
  371. package/daemon/dist/domain/seat-structural-activity-service.d.ts +15 -5
  372. package/daemon/dist/domain/seat-structural-activity-service.d.ts.map +1 -1
  373. package/daemon/dist/domain/seat-structural-activity-service.js +21 -7
  374. package/daemon/dist/domain/seat-structural-activity-service.js.map +1 -1
  375. package/daemon/dist/domain/session-transport.d.ts +7 -0
  376. package/daemon/dist/domain/session-transport.d.ts.map +1 -1
  377. package/daemon/dist/domain/session-transport.js +145 -31
  378. package/daemon/dist/domain/session-transport.js.map +1 -1
  379. package/daemon/dist/domain/snapshot-capture.d.ts.map +1 -1
  380. package/daemon/dist/domain/snapshot-capture.js +1 -0
  381. package/daemon/dist/domain/snapshot-capture.js.map +1 -1
  382. package/daemon/dist/domain/spec-library-workflow-scanner.d.ts +2 -0
  383. package/daemon/dist/domain/spec-library-workflow-scanner.d.ts.map +1 -1
  384. package/daemon/dist/domain/spec-library-workflow-scanner.js +5 -1
  385. package/daemon/dist/domain/spec-library-workflow-scanner.js.map +1 -1
  386. package/daemon/dist/domain/startup-orchestrator.d.ts +1 -0
  387. package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
  388. package/daemon/dist/domain/startup-orchestrator.js +74 -7
  389. package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
  390. package/daemon/dist/domain/stream-intake.d.ts +51 -0
  391. package/daemon/dist/domain/stream-intake.d.ts.map +1 -0
  392. package/daemon/dist/domain/stream-intake.js +438 -0
  393. package/daemon/dist/domain/stream-intake.js.map +1 -0
  394. package/daemon/dist/domain/successor-session-launcher.d.ts +2 -0
  395. package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
  396. package/daemon/dist/domain/successor-session-launcher.js +1 -0
  397. package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
  398. package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
  399. package/daemon/dist/domain/terminal/herdr-adapter.js +4 -3
  400. package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
  401. package/daemon/dist/domain/terminal/herdr-viewer.d.ts.map +1 -1
  402. package/daemon/dist/domain/terminal/herdr-viewer.js +8 -4
  403. package/daemon/dist/domain/terminal/herdr-viewer.js.map +1 -1
  404. package/daemon/dist/domain/terminal/login-shell.d.ts +10 -0
  405. package/daemon/dist/domain/terminal/login-shell.d.ts.map +1 -0
  406. package/daemon/dist/domain/terminal/login-shell.js +37 -0
  407. package/daemon/dist/domain/terminal/login-shell.js.map +1 -0
  408. package/daemon/dist/domain/terminal/rex-layout.d.ts.map +1 -1
  409. package/daemon/dist/domain/terminal/rex-layout.js +2 -1
  410. package/daemon/dist/domain/terminal/rex-layout.js.map +1 -1
  411. package/daemon/dist/domain/terminal/tile-attach.d.ts.map +1 -1
  412. package/daemon/dist/domain/terminal/tile-attach.js +15 -5
  413. package/daemon/dist/domain/terminal/tile-attach.js.map +1 -1
  414. package/daemon/dist/domain/transcript-store.d.ts.map +1 -1
  415. package/daemon/dist/domain/transcript-store.js +11 -5
  416. package/daemon/dist/domain/transcript-store.js.map +1 -1
  417. package/daemon/dist/domain/types.d.ts +16 -0
  418. package/daemon/dist/domain/types.d.ts.map +1 -1
  419. package/daemon/dist/domain/types.js.map +1 -1
  420. package/daemon/dist/domain/user-settings/settings-store.d.ts +1 -1
  421. package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
  422. package/daemon/dist/domain/user-settings/settings-store.js +14 -0
  423. package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
  424. package/daemon/dist/domain/watchdog-delivery-receipts.d.ts +11 -0
  425. package/daemon/dist/domain/watchdog-delivery-receipts.d.ts.map +1 -0
  426. package/daemon/dist/domain/watchdog-delivery-receipts.js +134 -0
  427. package/daemon/dist/domain/watchdog-delivery-receipts.js.map +1 -0
  428. package/daemon/dist/domain/watchdog-delivery.d.ts +6 -1
  429. package/daemon/dist/domain/watchdog-delivery.d.ts.map +1 -1
  430. package/daemon/dist/domain/watchdog-delivery.js +10 -6
  431. package/daemon/dist/domain/watchdog-delivery.js.map +1 -1
  432. package/daemon/dist/domain/watchdog-policy-engine.d.ts +19 -2
  433. package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
  434. package/daemon/dist/domain/watchdog-policy-engine.js +49 -22
  435. package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
  436. package/daemon/dist/domain/workflow-projector.js +3 -3
  437. package/daemon/dist/domain/workflow-projector.js.map +1 -1
  438. package/daemon/dist/domain/workflow-runtime.js +3 -3
  439. package/daemon/dist/domain/workflow-runtime.js.map +1 -1
  440. package/daemon/dist/domain/working-liveness.d.ts +66 -0
  441. package/daemon/dist/domain/working-liveness.d.ts.map +1 -0
  442. package/daemon/dist/domain/working-liveness.js +94 -0
  443. package/daemon/dist/domain/working-liveness.js.map +1 -0
  444. package/daemon/dist/domain/workspace/frontmatter-validator.js +4 -2
  445. package/daemon/dist/domain/workspace/frontmatter-validator.js.map +1 -1
  446. package/daemon/dist/index.d.ts +1 -1
  447. package/daemon/dist/index.d.ts.map +1 -1
  448. package/daemon/dist/index.js +3 -0
  449. package/daemon/dist/index.js.map +1 -1
  450. package/daemon/dist/lib/pane-envelope.d.ts.map +1 -1
  451. package/daemon/dist/lib/pane-envelope.js +9 -3
  452. package/daemon/dist/lib/pane-envelope.js.map +1 -1
  453. package/daemon/dist/middleware/auth-bearer-token.js +2 -2
  454. package/daemon/dist/middleware/auth-bearer-token.js.map +1 -1
  455. package/daemon/dist/routes/activity.d.ts +2 -0
  456. package/daemon/dist/routes/activity.d.ts.map +1 -1
  457. package/daemon/dist/routes/activity.js +60 -5
  458. package/daemon/dist/routes/activity.js.map +1 -1
  459. package/daemon/dist/routes/attention.d.ts.map +1 -1
  460. package/daemon/dist/routes/attention.js +17 -5
  461. package/daemon/dist/routes/attention.js.map +1 -1
  462. package/daemon/dist/routes/bundles.js +3 -1
  463. package/daemon/dist/routes/bundles.js.map +1 -1
  464. package/daemon/dist/routes/gateway.d.ts +6 -0
  465. package/daemon/dist/routes/gateway.d.ts.map +1 -1
  466. package/daemon/dist/routes/gateway.js +39 -0
  467. package/daemon/dist/routes/gateway.js.map +1 -1
  468. package/daemon/dist/routes/hosts.d.ts.map +1 -1
  469. package/daemon/dist/routes/hosts.js +26 -4
  470. package/daemon/dist/routes/hosts.js.map +1 -1
  471. package/daemon/dist/routes/mission-control.d.ts.map +1 -1
  472. package/daemon/dist/routes/mission-control.js +6 -1
  473. package/daemon/dist/routes/mission-control.js.map +1 -1
  474. package/daemon/dist/routes/queue.d.ts.map +1 -1
  475. package/daemon/dist/routes/queue.js +21 -2
  476. package/daemon/dist/routes/queue.js.map +1 -1
  477. package/daemon/dist/routes/scope-audit.d.ts.map +1 -1
  478. package/daemon/dist/routes/scope-audit.js +30 -0
  479. package/daemon/dist/routes/scope-audit.js.map +1 -1
  480. package/daemon/dist/routes/seat.d.ts.map +1 -1
  481. package/daemon/dist/routes/seat.js +3 -3
  482. package/daemon/dist/routes/seat.js.map +1 -1
  483. package/daemon/dist/routes/spec-library.d.ts.map +1 -1
  484. package/daemon/dist/routes/spec-library.js +60 -5
  485. package/daemon/dist/routes/spec-library.js.map +1 -1
  486. package/daemon/dist/routes/startup.js +2 -2
  487. package/daemon/dist/routes/startup.js.map +1 -1
  488. package/daemon/dist/routes/transport.d.ts.map +1 -1
  489. package/daemon/dist/routes/transport.js +8 -3
  490. package/daemon/dist/routes/transport.js.map +1 -1
  491. package/daemon/dist/server.d.ts +1 -0
  492. package/daemon/dist/server.d.ts.map +1 -1
  493. package/daemon/dist/server.js +1 -0
  494. package/daemon/dist/server.js.map +1 -1
  495. package/daemon/dist/startup.d.ts.map +1 -1
  496. package/daemon/dist/startup.js +30 -12
  497. package/daemon/dist/startup.js.map +1 -1
  498. package/daemon/docs/reference/agent-spec.md +1 -1
  499. package/daemon/docs/reference/agent-startup-guide.md +115 -3
  500. package/daemon/docs/reference/agent-state-taxonomy.md +23 -2
  501. package/daemon/docs/reference/author-contracts.md +6 -6
  502. package/daemon/docs/reference/checked-seat-stop.md +12 -1
  503. package/daemon/docs/reference/community-harness-examples/dsh/README.md +32 -7
  504. package/daemon/docs/reference/community-harness-examples/dsh/dsh.yaml +2 -2
  505. package/daemon/docs/reference/community-harness-examples/dsh/openrig-dsh-runner.mjs +101 -18
  506. package/daemon/docs/reference/daemon-http-clients.md +203 -0
  507. package/daemon/docs/reference/execution-platform-contract.md +1 -1
  508. package/daemon/docs/reference/gateway-participants.md +29 -17
  509. package/daemon/docs/reference/getting-started.md +30 -8
  510. package/daemon/docs/reference/harness-runner-contract.md +93 -19
  511. package/daemon/docs/reference/hosted-members.md +32 -0
  512. package/daemon/docs/reference/instance-layout.md +11 -0
  513. package/daemon/docs/reference/keeping-a-watch.md +22 -0
  514. package/daemon/docs/reference/pi-tool-selection-recovery.md +2 -1
  515. package/daemon/docs/reference/quickstart.md +9 -4
  516. package/daemon/docs/reference/rig-bundle.md +2 -2
  517. package/daemon/docs/reference/rig-spec.md +61 -2
  518. package/daemon/docs/reference/runner-conformance/README.md +5 -3
  519. package/daemon/docs/reference/runner-conformance/check-runner.mjs +136 -16
  520. package/daemon/docs/reference/runner-conformance/fake-acp-agent.mjs +10 -3
  521. package/daemon/docs/reference/sdlc-conventions.md +22 -3
  522. package/daemon/docs/reference/seat-delivery.md +31 -6
  523. package/daemon/docs/reference/slack-app-setup.md +55 -5
  524. package/daemon/docs/reference/terminal-sessions.md +15 -5
  525. package/daemon/docs/reference/whats-new.md +198 -140
  526. package/daemon/specs/agents/shared/skills/core/openrig-upgrade/SKILL.md +4 -3
  527. package/daemon/specs/agents/shared/skills/core/openrig-upgrade/scripts/backup-sqlite.mjs +90 -14
  528. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +2 -1
  529. package/daemon/specs/rigs/launch/kernel/agents/queue/worker/guidance/role.md +1 -1
  530. package/dist/atomic-text-write.d.ts +2 -0
  531. package/dist/atomic-text-write.d.ts.map +1 -1
  532. package/dist/atomic-text-write.js +17 -0
  533. package/dist/atomic-text-write.js.map +1 -1
  534. package/dist/build-info.js +3 -3
  535. package/dist/commands/broadcast.js +2 -1
  536. package/dist/commands/broadcast.js.map +1 -1
  537. package/dist/commands/config.d.ts.map +1 -1
  538. package/dist/commands/config.js +1 -0
  539. package/dist/commands/config.js.map +1 -1
  540. package/dist/commands/context.d.ts.map +1 -1
  541. package/dist/commands/context.js +1 -0
  542. package/dist/commands/context.js.map +1 -1
  543. package/dist/commands/doctor.d.ts +1 -1
  544. package/dist/commands/doctor.d.ts.map +1 -1
  545. package/dist/commands/doctor.js +48 -6
  546. package/dist/commands/doctor.js.map +1 -1
  547. package/dist/commands/down.d.ts.map +1 -1
  548. package/dist/commands/down.js +10 -0
  549. package/dist/commands/down.js.map +1 -1
  550. package/dist/commands/env.d.ts.map +1 -1
  551. package/dist/commands/env.js +9 -3
  552. package/dist/commands/env.js.map +1 -1
  553. package/dist/commands/environment.d.ts.map +1 -1
  554. package/dist/commands/environment.js +5 -2
  555. package/dist/commands/environment.js.map +1 -1
  556. package/dist/commands/export.d.ts +2 -0
  557. package/dist/commands/export.d.ts.map +1 -1
  558. package/dist/commands/export.js +26 -5
  559. package/dist/commands/export.js.map +1 -1
  560. package/dist/commands/gateway.js +15 -11
  561. package/dist/commands/gateway.js.map +1 -1
  562. package/dist/commands/host.d.ts +13 -6
  563. package/dist/commands/host.d.ts.map +1 -1
  564. package/dist/commands/host.js +35 -8
  565. package/dist/commands/host.js.map +1 -1
  566. package/dist/commands/project-jev.js +1 -1
  567. package/dist/commands/project-jev.js.map +1 -1
  568. package/dist/commands/provider.d.ts.map +1 -1
  569. package/dist/commands/provider.js +10 -5
  570. package/dist/commands/provider.js.map +1 -1
  571. package/dist/commands/ps.d.ts +2 -0
  572. package/dist/commands/ps.d.ts.map +1 -1
  573. package/dist/commands/ps.js +12 -3
  574. package/dist/commands/ps.js.map +1 -1
  575. package/dist/commands/queue.d.ts +1 -0
  576. package/dist/commands/queue.d.ts.map +1 -1
  577. package/dist/commands/queue.js +38 -4
  578. package/dist/commands/queue.js.map +1 -1
  579. package/dist/commands/scope.d.ts.map +1 -1
  580. package/dist/commands/scope.js +36 -2
  581. package/dist/commands/scope.js.map +1 -1
  582. package/dist/commands/seat.d.ts.map +1 -1
  583. package/dist/commands/seat.js +31 -4
  584. package/dist/commands/seat.js.map +1 -1
  585. package/dist/commands/send.d.ts.map +1 -1
  586. package/dist/commands/send.js +46 -16
  587. package/dist/commands/send.js.map +1 -1
  588. package/dist/commands/slack.d.ts.map +1 -1
  589. package/dist/commands/slack.js +5 -0
  590. package/dist/commands/slack.js.map +1 -1
  591. package/dist/commands/specs.d.ts +1 -1
  592. package/dist/commands/specs.d.ts.map +1 -1
  593. package/dist/commands/specs.js +44 -10
  594. package/dist/commands/specs.js.map +1 -1
  595. package/dist/commands/stream.d.ts.map +1 -1
  596. package/dist/commands/stream.js +6 -1
  597. package/dist/commands/stream.js.map +1 -1
  598. package/dist/commands/topology-default-agent.js +1 -1
  599. package/dist/commands/topology-default-agent.js.map +1 -1
  600. package/dist/commands/walk.d.ts.map +1 -1
  601. package/dist/commands/walk.js +27 -10
  602. package/dist/commands/walk.js.map +1 -1
  603. package/dist/commands/workspace.d.ts.map +1 -1
  604. package/dist/commands/workspace.js +8 -1
  605. package/dist/commands/workspace.js.map +1 -1
  606. package/dist/config-store.d.ts +7 -1
  607. package/dist/config-store.d.ts.map +1 -1
  608. package/dist/config-store.js +23 -2
  609. package/dist/config-store.js.map +1 -1
  610. package/dist/lib/scope/progress-edit.d.ts.map +1 -1
  611. package/dist/lib/scope/progress-edit.js +37 -7
  612. package/dist/lib/scope/progress-edit.js.map +1 -1
  613. package/dist/lib/scope/scope-audit.d.ts +1 -1
  614. package/dist/lib/scope/scope-audit.d.ts.map +1 -1
  615. package/dist/lib/scope/scope-audit.js.map +1 -1
  616. package/dist/lib/scope/scope-fs.d.ts +3 -0
  617. package/dist/lib/scope/scope-fs.d.ts.map +1 -1
  618. package/dist/lib/scope/scope-fs.js +39 -53
  619. package/dist/lib/scope/scope-fs.js.map +1 -1
  620. package/dist/lib/scope/types.d.ts +3 -0
  621. package/dist/lib/scope/types.d.ts.map +1 -1
  622. package/dist/lib/scope/types.js.map +1 -1
  623. package/dist/mcp-server.d.ts.map +1 -1
  624. package/dist/mcp-server.js +53 -16
  625. package/dist/mcp-server.js.map +1 -1
  626. package/dist/seat-launch-additions-lines.d.ts +2 -0
  627. package/dist/seat-launch-additions-lines.d.ts.map +1 -1
  628. package/dist/seat-launch-additions-lines.js +1 -0
  629. package/dist/seat-launch-additions-lines.js.map +1 -1
  630. package/package.json +1 -1
  631. package/tui/dist/attention/attention-model.d.ts +3 -2
  632. package/tui/dist/attention/attention-model.d.ts.map +1 -1
  633. package/tui/dist/attention/attention-model.js +7 -4
  634. package/tui/dist/attention/attention-model.js.map +1 -1
  635. package/tui/dist/daemon-client.d.ts +4 -4
  636. package/tui/dist/daemon-client.d.ts.map +1 -1
  637. package/tui/dist/daemon-client.js +6 -5
  638. package/tui/dist/daemon-client.js.map +1 -1
  639. package/tui/dist/hydrate.d.ts.map +1 -1
  640. package/tui/dist/hydrate.js +10 -4
  641. package/tui/dist/hydrate.js.map +1 -1
  642. package/tui/dist/pulse/pulse-model.d.ts +1 -1
  643. package/tui/dist/pulse/pulse-model.d.ts.map +1 -1
  644. package/tui/dist/pulse/pulse-model.js +6 -17
  645. package/tui/dist/pulse/pulse-model.js.map +1 -1
  646. package/tui/dist/render.js +1 -1
  647. package/tui/dist/render.js.map +1 -1
  648. package/tui/dist/theme.d.ts.map +1 -1
  649. package/tui/dist/theme.js +7 -2
  650. package/tui/dist/theme.js.map +1 -1
  651. package/tui/dist/time.d.ts +2 -0
  652. package/tui/dist/time.d.ts.map +1 -1
  653. package/tui/dist/time.js +5 -0
  654. package/tui/dist/time.js.map +1 -1
  655. package/tui/dist/types.d.ts +2 -3
  656. package/tui/dist/types.d.ts.map +1 -1
  657. package/ui/dist/assets/index-BFOs3ejL.css +32 -0
  658. package/ui/dist/assets/{index-Ch6UxNld.js → index-CdkFwtld.js} +81 -81
  659. package/ui/dist/index.html +2 -2
  660. package/ui/dist/assets/index-DNU3XZr_.css +0 -32
@@ -21,7 +21,8 @@ import { resumeProbeEvidence } from "./native-resume-probe-evidence.js";
21
21
  import { observeClaudeDelivery, observeClaudeResumeLaunch, processArgv, verifyClaudePaneProcess, verifyClaudePaneRuntime, verifyPaneIdleShell } from "./native-process-lineage.js";
22
22
  import { readNativeExecutablePaths } from "./native-process-executable.js";
23
23
  import { reanchorBuiltinStartupFile, reanchorShippedProjectionEntry } from "./builtin-startup-files.js";
24
- import { applySeatSkillsLineRule, seatGuidance, restoreMissingGuidance, missingGuidanceBlocks } from "./restore-guidance.js";
24
+ import { applySeatSkillsLineRule, seatGuidance, restoreMissingGuidance, missingGuidanceBlocks, guidanceFileSharedByLink, lstatLinkInfo } from "./restore-guidance.js";
25
+ import { decideManagedBlock, managedBlockRecords } from "./managed-block-records.js";
25
26
  import { readFootprintAnswer } from "./footprint-choice.js";
26
27
  import { SettingsStore } from "./user-settings/settings-store.js";
27
28
  import { AppliedLaunchObservationStore } from "./applied-launch-observation-store.js";
@@ -1199,7 +1200,10 @@ export class RestoreOrchestrator {
1199
1200
  * authoritative launch root is retained at restore time. A known selection
1200
1201
  * with no Claude runtime adapter is a gap: the hooks were skipped, not
1201
1202
  * re-applied, and the skip must be reported rather than silent. */
1202
- async restoreCurrentActivityHooks(node, activityAdapter, launchResult, warnings, activityHookGaps) {
1203
+ async restoreCurrentActivityHooks(node, activityAdapter, launchResult, warnings, activityHookGaps,
1204
+ // The directory the seat was launched in (snapshot cwd, else live node
1205
+ // cwd, else "." — resolved by the caller, which owns the live lookup).
1206
+ launchCwd) {
1203
1207
  let desired;
1204
1208
  try {
1205
1209
  desired = this.getDesiredClaudeActivityHooks
@@ -1235,9 +1239,9 @@ export class RestoreOrchestrator {
1235
1239
  };
1236
1240
  try {
1237
1241
  const result = await activityAdapter.project({
1238
- runtime: "claude-code", cwd: node.cwd ?? ".", entries: [marker],
1242
+ runtime: "claude-code", cwd: launchCwd, entries: [marker],
1239
1243
  startup: { files: [], actions: [] }, conflicts: [], noOps: [], diagnostics: [],
1240
- }, { ...launchResult.binding, cwd: node.cwd ?? "." });
1244
+ }, { ...launchResult.binding, cwd: launchCwd });
1241
1245
  warnings?.push(...(result.warnings ?? []));
1242
1246
  if (result.projected.includes(marker.effectiveId)) {
1243
1247
  const detail = "saved startup context had no Claude activity-hook selection; the current seat specification selects it, so the current marker was re-applied without replaying startup content.";
@@ -1275,13 +1279,29 @@ export class RestoreOrchestrator {
1275
1279
  return false;
1276
1280
  }
1277
1281
  }
1282
+ /** The recorded guidance file follows the snapshot a seat was exactly resumed from (#2432); nothing else in its saved
1283
+ * startup selection changes. A database from before the column has nothing to record. */
1284
+ recordRestoredGuidanceFile(nodeId, file) {
1285
+ try {
1286
+ this.db.prepare("UPDATE node_startup_context SET guidance_file = ? WHERE node_id = ?").run(file, nodeId);
1287
+ }
1288
+ catch { /* no column */ }
1289
+ }
1278
1290
  checkRestoredGuidance(result, node, rigId, data, warnings) {
1279
1291
  // Every status with a live session; attention_required keeps its status and gains the disclosure.
1280
1292
  if (!["resumed", "fresh-primed", "fresh", "rebuilt", "attention_required"].includes(result.status))
1281
1293
  return result;
1282
1294
  let guidance;
1283
1295
  try {
1284
- guidance = seatGuidance(data.nodeStartupContext?.[node.id] ?? null, node.cwd, this.rigRepo.getRigClaudeManagedBlockFile(rigId), existsSync, (path) => readFileSync(path, "utf-8"));
1296
+ // The seat was launched in the snapshot node's cwd when set, else the
1297
+ // live node's cwd — the same resolved launch directory the hook
1298
+ // projection and startup replay use. Passing node.cwd alone returns
1299
+ // no guidance at all when the snapshot node has no cwd. No "." fallback:
1300
+ // when neither cwd exists the old skip is kept, so no guidance file is
1301
+ // written into the daemon's own working directory.
1302
+ const guidanceCwd = node.cwd
1303
+ ?? this.rigRepo.getRig(rigId)?.nodes.find(current => current.logicalId === node.logicalId)?.cwd;
1304
+ guidance = seatGuidance(data.nodeStartupContext?.[node.id] ?? null, guidanceCwd, this.rigRepo.getRigClaudeManagedBlockFile(rigId), existsSync, (path) => readFileSync(path, "utf-8"));
1285
1305
  }
1286
1306
  catch (err) {
1287
1307
  warnings?.push(`Restore: ${node.logicalId}: could not check its guidance: ${err.message}`);
@@ -1291,6 +1311,10 @@ export class RestoreOrchestrator {
1291
1311
  guidance = applySeatSkillsLineRule(guidance, this.routerLineAnsweredYes()).guidance;
1292
1312
  if (!guidance || guidance.items.length === 0)
1293
1313
  return result;
1314
+ // #2456: blocks the seat runs as they are although they differ from their source (edited by hand, or with no record of
1315
+ // OpenRig writing them), named on its result. They aren't gaps: the seat has guidance there.
1316
+ const notes = this.keptGuidanceNotes(guidance);
1317
+ const noted = notes.length > 0 ? { ...result, guidanceNotes: notes } : result;
1294
1318
  let missing;
1295
1319
  try {
1296
1320
  missing = missingGuidanceBlocks(guidance, { exists: existsSync, readFile: (path) => readFileSync(path, "utf-8") });
@@ -1299,10 +1323,39 @@ export class RestoreOrchestrator {
1299
1323
  missing = [`(could not read ${guidance.targetPath}: ${err.message})`];
1300
1324
  }
1301
1325
  if (missing.length === 0)
1302
- return result;
1326
+ return noted;
1303
1327
  const gap = `${node.logicalId} is running without part of its guidance: ${guidance.targetPath} lacks the OpenRig blocks ${missing.join(", ")}.`;
1304
1328
  warnings?.push(`Restore: ${gap}`);
1305
- return { ...result, guidanceGaps: missing };
1329
+ return { ...noted, guidanceGaps: missing };
1330
+ }
1331
+ /** #2456: a note for each block in the seat's guidance file that differs from its source and isn't OpenRig's last write. */
1332
+ keptGuidanceNotes(guidance) {
1333
+ let content;
1334
+ try {
1335
+ content = existsSync(guidance.targetPath) ? readFileSync(guidance.targetPath, "utf-8") : "";
1336
+ }
1337
+ catch {
1338
+ return [];
1339
+ }
1340
+ if (!content)
1341
+ return [];
1342
+ const records = managedBlockRecords(this.db);
1343
+ const notes = [];
1344
+ for (const item of guidance.items) {
1345
+ if (item.unresolved)
1346
+ continue;
1347
+ let source;
1348
+ try {
1349
+ source = readFileSync(item.sourcePath, "utf-8");
1350
+ }
1351
+ catch {
1352
+ continue;
1353
+ }
1354
+ const { note } = decideManagedBlock(content, item.blockId, source, records, guidance.targetPath, { unrecorded: "keep", sourcePath: item.sourcePath });
1355
+ if (note)
1356
+ notes.push(note);
1357
+ }
1358
+ return notes;
1306
1359
  }
1307
1360
  /** OPR.0.3.4.2 (B) — roll a just-launched session back to ZERO sessions for
1308
1361
  * the awaiting-decision outcome: remove a new blank terminal (preserving a
@@ -1444,6 +1497,16 @@ export class RestoreOrchestrator {
1444
1497
  // deliberately skips the resume attempt; its launch reports `fresh-primed`.
1445
1498
  const liveRuntime = this.rigRepo.getRig(rigId)?.nodes.find(current => current.logicalId === node.logicalId
1446
1499
  && (!selected || current.id === node.id))?.runtime ?? node.runtime;
1500
+ // The seat was launched in the snapshot node's cwd when set; NodeLauncher
1501
+ // otherwise falls back to the live node's cwd, and to the daemon's working
1502
+ // directory when neither is set (tmux new-session without -c inherits it;
1503
+ // "." is the codebase-wide convention for that case). Projecting hooks
1504
+ // with the snapshot cwd alone would write another project's settings when
1505
+ // the live node moved the seat.
1506
+ const launchCwd = node.cwd
1507
+ ?? this.rigRepo.getRig(rigId)?.nodes.find(current => current.logicalId === node.logicalId
1508
+ && (!selected || current.id === node.id))?.cwd
1509
+ ?? ".";
1447
1510
  const restorePolicy = effectiveRestorePolicy(seatFacts(data, node.id, node.runtime, liveRuntime), session?.restorePolicy);
1448
1511
  const noConversation = isOrdinaryTerminalSeat(seatFacts(data, node.id, node.runtime, liveRuntime));
1449
1512
  // A terminal's restore is its shell and its saved startup: one whose startup failed wasn't restored whole.
@@ -1470,17 +1533,26 @@ export class RestoreOrchestrator {
1470
1533
  // re-apply the CURRENT marker, marker-only: no profile-wide resolution,
1471
1534
  // no guidance, skills or startup replay, and the saved context is never
1472
1535
  // rewritten. A seat whose current spec does not select hooks stays silent.
1536
+ // The no-context fallback is scoped: it applies only to a legacy
1537
+ // (non-pod) agent whose live runtime still matches the snapshot's. A
1538
+ // runtime changed after the snapshot would otherwise read the snapshot's
1539
+ // runtime and write Claude hooks into another agent's working folder
1540
+ // (with a saved context, the compatibility gate already stops that
1541
+ // mismatch), and a pod-aware agent must get no write from this recovery
1542
+ // at all — it still ends at the "Harness not started" gate, unchanged.
1473
1543
  const activityAdapter = opts?.adapters?.["claude-code"];
1474
- if (resumeRequested && resumeToken && launchResult && startupCtx?.runtime === "claude-code") {
1475
- const entries = startupCtx.projectionEntries.filter(e => e.category === "runtime_resource" && e.resourceType === "claude_activity_hooks");
1544
+ const recoveryRuntime = startupCtx?.runtime
1545
+ ?? (!isPodAware && liveRuntime === node.runtime ? node.runtime : null);
1546
+ if (resumeRequested && resumeToken && launchResult && recoveryRuntime === "claude-code") {
1547
+ const entries = (startupCtx?.projectionEntries ?? []).filter(e => e.category === "runtime_resource" && e.resourceType === "claude_activity_hooks");
1476
1548
  if (entries.length > 0 && activityAdapter)
1477
1549
  try {
1478
1550
  const result = await activityAdapter.project({
1479
- runtime: "claude-code", cwd: node.cwd ?? ".",
1551
+ runtime: "claude-code", cwd: launchCwd,
1480
1552
  entries: entries.map(e => ({ ...e, category: "runtime_resource", classification: "safe_projection",
1481
1553
  mergeStrategy: e.mergeStrategy })),
1482
1554
  startup: { files: [], actions: [] }, conflicts: [], noOps: [], diagnostics: [],
1483
- }, { ...launchResult.binding, cwd: node.cwd ?? "." });
1555
+ }, { ...launchResult.binding, cwd: launchCwd });
1484
1556
  warnings?.push(...(result.warnings ?? []));
1485
1557
  for (const skipped of result.skipped)
1486
1558
  warnings?.push(`Restore activity hooks: skipped ${skipped}; saved hooks could not be reapplied.`);
@@ -1492,7 +1564,7 @@ export class RestoreOrchestrator {
1492
1564
  warnings?.push(`Restore activity hooks: ${error.message}`);
1493
1565
  }
1494
1566
  else if (entries.length === 0) {
1495
- await this.restoreCurrentActivityHooks(node, activityAdapter, launchResult, warnings, activityHookGaps);
1567
+ await this.restoreCurrentActivityHooks(node, activityAdapter, launchResult, warnings, activityHookGaps, launchCwd);
1496
1568
  }
1497
1569
  }
1498
1570
  // A narrow exception to the replay containment below: before either native resume path
@@ -1503,7 +1575,13 @@ export class RestoreOrchestrator {
1503
1575
  if (resumeRequested && resumeToken && launchResult) {
1504
1576
  let guidance = null;
1505
1577
  try {
1506
- guidance = seatGuidance(startupCtx, node.cwd, this.rigRepo.getRigClaudeManagedBlockFile(rigId), existsSync, (path) => readFileSync(path, "utf-8"));
1578
+ // Same resolved directory as launchCwd, without its "." fallback:
1579
+ // when neither the snapshot nor the live node has a cwd, keep the
1580
+ // old skip instead of writing guidance into the daemon's folder.
1581
+ const guidanceCwd = node.cwd
1582
+ ?? this.rigRepo.getRig(rigId)?.nodes.find(current => current.logicalId === node.logicalId
1583
+ && (!selected || current.id === node.id))?.cwd;
1584
+ guidance = seatGuidance(startupCtx, guidanceCwd, this.rigRepo.getRigClaudeManagedBlockFile(rigId), existsSync, (path) => readFileSync(path, "utf-8"));
1507
1585
  }
1508
1586
  catch (err) {
1509
1587
  // Guidance never blocks the exact resume; the post-launch check discloses the gap.
@@ -1515,16 +1593,34 @@ export class RestoreOrchestrator {
1515
1593
  if (rule.excluded === "linked")
1516
1594
  warnings?.push(`Restore guidance: ${node.logicalId}: the seat-skills line wasn't put back, because ${guidance.targetPath} is a link.`);
1517
1595
  }
1596
+ // #2432: the record names the file this resumed seat uses, the snapshot's choice, which can be older than the
1597
+ // database's: an older snapshot restored exactly after a newer launch resumes on its repository file.
1598
+ if (startupCtx)
1599
+ this.recordRestoredGuidanceFile(node.id, startupCtx.guidanceFile ?? null);
1600
+ // #2432: a recorded file that became a link after its launch gets nothing put back through it; the check after the
1601
+ // launch reports the blocks it lacks.
1602
+ const linked = startupCtx?.guidanceFile && guidance ? guidanceFileSharedByLink(guidance.targetPath, lstatLinkInfo) : null;
1603
+ if (linked && guidance) {
1604
+ warnings?.push(`Restore guidance: ${node.logicalId}: ${linked} is now a link, so nothing was put back in ${guidance.targetPath}, which other sessions could read.`);
1605
+ guidance = null;
1606
+ }
1518
1607
  if (guidance && guidance.items.length > 0) {
1608
+ // #2456: a block OpenRig wrote whose source changed since is refreshed too; an edited one, or one with no record, is
1609
+ // left as it is and named (the check after the launch carries the names onto the seat's result).
1519
1610
  const repair = restoreMissingGuidance(guidance, {
1520
1611
  exists: existsSync,
1521
1612
  readFile: (path) => readFileSync(path, "utf-8"),
1522
1613
  writeFile: (path, content) => writeFileSync(path, content, "utf-8"),
1523
1614
  mkdirp: (path) => mkdirSync(path, { recursive: true }),
1524
- });
1615
+ }, managedBlockRecords(this.db));
1525
1616
  if (repair.restored.length > 0) {
1526
1617
  warnings?.push(`Restore guidance: ${node.logicalId}: put back missing blocks ${repair.restored.join(", ")} in ${guidance.targetPath} from their current source files.`);
1527
1618
  }
1619
+ if (repair.refreshed.length > 0) {
1620
+ warnings?.push(`Restore guidance: ${node.logicalId}: refreshed blocks ${repair.refreshed.join(", ")} in ${guidance.targetPath} from their current source files.`);
1621
+ }
1622
+ for (const kept of repair.kept)
1623
+ warnings?.push(`Restore guidance: ${node.logicalId}: ${kept}`);
1528
1624
  for (const gap of repair.gaps)
1529
1625
  warnings?.push(`Restore guidance: ${node.logicalId}: ${gap}`);
1530
1626
  }
@@ -1551,7 +1647,7 @@ export class RestoreOrchestrator {
1551
1647
  }
1552
1648
  if (selected && !selected.beforeNative(launchedSessionId, launchResult?.binding.id))
1553
1649
  return { nodeId: node.id, logicalId: node.logicalId, status: "attention_required", error: "The selected seat, settings or history changed after shell creation; native resume was not dispatched." };
1554
- const resumeOutcome = await this.attemptResume(node.id, sessionName, resumeType, resumeToken, node.cwd ?? "/", this.liveCodexProfile(rigId, node, selected?.nodeId), modelForRestore(), this.resolveRestorePosture(node.id, rigId), effortForRestore(), warnings, node.advisor, selected ? () => selected.beforeNative(launchedSessionId, launchResult?.binding.id) : undefined, opts?.claudeExecutable);
1650
+ const resumeOutcome = await this.attemptResume(node.id, sessionName, resumeType, resumeToken, launchCwd, this.liveCodexProfile(rigId, node, selected?.nodeId), modelForRestore(), this.resolveRestorePosture(node.id, rigId), effortForRestore(), warnings, node.advisor, selected ? () => selected.beforeNative(launchedSessionId, launchResult?.binding.id) : undefined, opts?.claudeExecutable);
1555
1651
  if (resumeOutcome.kind === "resumed") {
1556
1652
  baseStatus = "resumed";
1557
1653
  if (launchedSessionId && this.claudeResume.canResume(resumeType, resumeToken)) {
@@ -1763,7 +1859,7 @@ export class RestoreOrchestrator {
1763
1859
  // Build fresh projection plan (all safe_projection; replaySkip says which seat skills are left alone)
1764
1860
  const plan = {
1765
1861
  runtime: startupCtx.runtime,
1766
- cwd: node.cwd ?? ".",
1862
+ cwd: launchCwd,
1767
1863
  entries: filteredEntries.map((e) => ({
1768
1864
  ...e,
1769
1865
  classification: "safe_projection",
@@ -1777,9 +1873,11 @@ export class RestoreOrchestrator {
1777
1873
  };
1778
1874
  const binding = {
1779
1875
  ...launchResult.binding,
1876
+ // #875: the guidance file this seat's launch recorded; an older snapshot recorded none, so its file stays the rule's.
1877
+ guidanceFile: startupCtx.guidanceFile ?? null,
1780
1878
  ...(data.environmentBindingsByNode?.[node.id] ? { environmentRestore: data.environmentBindingsByNode[node.id] } : {}),
1781
1879
  ...(opts?.claudeExecutable ? { claudeExecutable: opts.claudeExecutable } : {}),
1782
- cwd: node.cwd ?? ".",
1880
+ cwd: launchCwd,
1783
1881
  codexConfigProfile: this.liveCodexProfile(rigId, node, selected?.nodeId) ?? undefined,
1784
1882
  // OPR.0.4.8.3 Seam B: the pod-aware restore path binds the restored posture too
1785
1883
  // (both restore paths consume persisted provenance — preflight surface 3).