@openrig/cli 0.7.17 → 0.7.18

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 (657) hide show
  1. package/README.md +5 -5
  2. package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +1 -1
  3. package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +1 -1
  4. package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
  5. package/daemon/assets/plugins/openrig/plugin.json +1 -1
  6. package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
  7. package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
  8. package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus.cjs +5 -0
  9. package/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md +23 -0
  10. package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +11 -0
  11. package/daemon/assets/plugins/openrig-core/skills/refocusing/scripts/trace-to-root.py +25 -5
  12. package/daemon/assets/skills/rigs/SKILL.md +33 -19
  13. package/daemon/assets/skills/rigs/references/installing-for-someone.md +2 -2
  14. package/daemon/context-packs/help/manifest.yaml +1 -1
  15. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  16. package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +42 -8
  17. package/daemon/context-packs/reference/getting-started.md +4 -4
  18. package/daemon/context-packs/reference/manifest.yaml +1 -1
  19. package/daemon/context-packs/reference/rig-spec.md +166 -0
  20. package/daemon/context-packs/reference/whats-new.md +107 -6
  21. package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
  22. package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
  23. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
  24. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
  25. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  26. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  27. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  28. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  29. package/daemon/context-packs/skills/core/messaging-the-human/SKILL.md +23 -0
  30. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
  31. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  32. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  33. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
  34. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
  35. package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
  36. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
  37. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
  38. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
  39. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
  40. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
  41. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
  42. package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
  43. package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
  44. package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
  45. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
  46. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
  47. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
  48. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
  49. package/daemon/context-packs/skills/openrig-user/SKILL.md +11 -0
  50. package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
  51. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
  52. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  53. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  54. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  55. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  56. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  57. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
  58. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  59. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  60. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  61. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  62. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  63. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
  64. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  65. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
  66. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  67. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
  68. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
  69. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
  70. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
  71. package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
  72. package/daemon/context-packs/skills/refocusing/scripts/trace-to-root.py +25 -5
  73. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
  74. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
  75. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
  76. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
  77. package/daemon/context-packs/world-example/manifest.yaml +1 -1
  78. package/daemon/context-packs/world-public/manifest.yaml +1 -1
  79. package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
  80. package/daemon/dist/adapters/claude-code-adapter.js +16 -5
  81. package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
  82. package/daemon/dist/adapters/claude-resume.d.ts +2 -1
  83. package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
  84. package/daemon/dist/adapters/claude-resume.js +13 -5
  85. package/daemon/dist/adapters/claude-resume.js.map +1 -1
  86. package/daemon/dist/adapters/kernel-authority.d.ts +1 -1
  87. package/daemon/dist/adapters/kernel-authority.d.ts.map +1 -1
  88. package/daemon/dist/adapters/kernel-authority.js +22 -10
  89. package/daemon/dist/adapters/kernel-authority.js.map +1 -1
  90. package/daemon/dist/adapters/pi-runner-protocol.d.ts +43 -0
  91. package/daemon/dist/adapters/pi-runner-protocol.d.ts.map +1 -1
  92. package/daemon/dist/adapters/pi-runner-protocol.js.map +1 -1
  93. package/daemon/dist/adapters/pi-runner.d.ts +50 -1
  94. package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
  95. package/daemon/dist/adapters/pi-runner.js +463 -13
  96. package/daemon/dist/adapters/pi-runner.js.map +1 -1
  97. package/daemon/dist/adapters/tmux-credential-env.d.ts +4 -0
  98. package/daemon/dist/adapters/tmux-credential-env.d.ts.map +1 -0
  99. package/daemon/dist/adapters/tmux-credential-env.js +14 -0
  100. package/daemon/dist/adapters/tmux-credential-env.js.map +1 -0
  101. package/daemon/dist/adapters/tmux-exec.d.ts.map +1 -1
  102. package/daemon/dist/adapters/tmux-exec.js +4 -3
  103. package/daemon/dist/adapters/tmux-exec.js.map +1 -1
  104. package/daemon/dist/adapters/tmux-server.d.ts +2 -2
  105. package/daemon/dist/adapters/tmux-server.d.ts.map +1 -1
  106. package/daemon/dist/adapters/tmux-server.js +12 -4
  107. package/daemon/dist/adapters/tmux-server.js.map +1 -1
  108. package/daemon/dist/adapters/tmux.d.ts +220 -12
  109. package/daemon/dist/adapters/tmux.d.ts.map +1 -1
  110. package/daemon/dist/adapters/tmux.js +835 -29
  111. package/daemon/dist/adapters/tmux.js.map +1 -1
  112. package/daemon/dist/attention-surface.d.ts +4 -1
  113. package/daemon/dist/attention-surface.d.ts.map +1 -1
  114. package/daemon/dist/attention-surface.js.map +1 -1
  115. package/daemon/dist/build-info.js +3 -3
  116. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  117. package/daemon/dist/db/all-migrations.js +8 -0
  118. package/daemon/dist/db/all-migrations.js.map +1 -1
  119. package/daemon/dist/db/migrations/171_claude_auto_mode.d.ts +4 -0
  120. package/daemon/dist/db/migrations/171_claude_auto_mode.d.ts.map +1 -0
  121. package/daemon/dist/db/migrations/171_claude_auto_mode.js +9 -0
  122. package/daemon/dist/db/migrations/171_claude_auto_mode.js.map +1 -0
  123. package/daemon/dist/db/migrations/171_node_input_route.d.ts +4 -0
  124. package/daemon/dist/db/migrations/171_node_input_route.d.ts.map +1 -0
  125. package/daemon/dist/db/migrations/171_node_input_route.js +6 -0
  126. package/daemon/dist/db/migrations/171_node_input_route.js.map +1 -0
  127. package/daemon/dist/db/migrations/172_queue_return_route.d.ts +3 -0
  128. package/daemon/dist/db/migrations/172_queue_return_route.d.ts.map +1 -0
  129. package/daemon/dist/db/migrations/172_queue_return_route.js +13 -0
  130. package/daemon/dist/db/migrations/172_queue_return_route.js.map +1 -0
  131. package/daemon/dist/db/migrations/173_node_process_limits.d.ts +4 -0
  132. package/daemon/dist/db/migrations/173_node_process_limits.d.ts.map +1 -0
  133. package/daemon/dist/db/migrations/173_node_process_limits.js +6 -0
  134. package/daemon/dist/db/migrations/173_node_process_limits.js.map +1 -0
  135. package/daemon/dist/domain/activity-grants.d.ts.map +1 -1
  136. package/daemon/dist/domain/activity-grants.js +2 -0
  137. package/daemon/dist/domain/activity-grants.js.map +1 -1
  138. package/daemon/dist/domain/agent-activity-store.d.ts +36 -1
  139. package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
  140. package/daemon/dist/domain/agent-activity-store.js +192 -3
  141. package/daemon/dist/domain/agent-activity-store.js.map +1 -1
  142. package/daemon/dist/domain/agent-images/resume-token-discovery.d.ts +10 -0
  143. package/daemon/dist/domain/agent-images/resume-token-discovery.d.ts.map +1 -1
  144. package/daemon/dist/domain/agent-images/resume-token-discovery.js +21 -0
  145. package/daemon/dist/domain/agent-images/resume-token-discovery.js.map +1 -1
  146. package/daemon/dist/domain/applied-launch-observation-store.d.ts +5 -0
  147. package/daemon/dist/domain/applied-launch-observation-store.d.ts.map +1 -1
  148. package/daemon/dist/domain/applied-launch-observation-store.js +57 -21
  149. package/daemon/dist/domain/applied-launch-observation-store.js.map +1 -1
  150. package/daemon/dist/domain/builtin-startup-files.d.ts +26 -12
  151. package/daemon/dist/domain/builtin-startup-files.d.ts.map +1 -1
  152. package/daemon/dist/domain/builtin-startup-files.js +73 -34
  153. package/daemon/dist/domain/builtin-startup-files.js.map +1 -1
  154. package/daemon/dist/domain/claude-auto-mode.d.ts +64 -0
  155. package/daemon/dist/domain/claude-auto-mode.d.ts.map +1 -0
  156. package/daemon/dist/domain/claude-auto-mode.js +114 -0
  157. package/daemon/dist/domain/claude-auto-mode.js.map +1 -0
  158. package/daemon/dist/domain/claude-compaction-enforcer.d.ts +2 -0
  159. package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
  160. package/daemon/dist/domain/claude-compaction-enforcer.js +11 -4
  161. package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
  162. package/daemon/dist/domain/claude-continuation-launch.d.ts +5 -1
  163. package/daemon/dist/domain/claude-continuation-launch.d.ts.map +1 -1
  164. package/daemon/dist/domain/claude-continuation-launch.js +51 -2
  165. package/daemon/dist/domain/claude-continuation-launch.js.map +1 -1
  166. package/daemon/dist/domain/claude-core-plugin-env.d.ts +7 -3
  167. package/daemon/dist/domain/claude-core-plugin-env.d.ts.map +1 -1
  168. package/daemon/dist/domain/claude-core-plugin-env.js +11 -8
  169. package/daemon/dist/domain/claude-core-plugin-env.js.map +1 -1
  170. package/daemon/dist/domain/codex-daemon-support.d.ts.map +1 -1
  171. package/daemon/dist/domain/codex-daemon-support.js +6 -1
  172. package/daemon/dist/domain/codex-daemon-support.js.map +1 -1
  173. package/daemon/dist/domain/community-harness-launch-result.d.ts +2 -0
  174. package/daemon/dist/domain/community-harness-launch-result.d.ts.map +1 -1
  175. package/daemon/dist/domain/community-harness-launch-result.js +5 -1
  176. package/daemon/dist/domain/community-harness-launch-result.js.map +1 -1
  177. package/daemon/dist/domain/connection-contract.d.ts +91 -0
  178. package/daemon/dist/domain/connection-contract.d.ts.map +1 -1
  179. package/daemon/dist/domain/connection-contract.js +73 -0
  180. package/daemon/dist/domain/connection-contract.js.map +1 -1
  181. package/daemon/dist/domain/context-usage-store.d.ts +5 -0
  182. package/daemon/dist/domain/context-usage-store.d.ts.map +1 -1
  183. package/daemon/dist/domain/context-usage-store.js +37 -2
  184. package/daemon/dist/domain/context-usage-store.js.map +1 -1
  185. package/daemon/dist/domain/current-work.d.ts +6 -1
  186. package/daemon/dist/domain/current-work.d.ts.map +1 -1
  187. package/daemon/dist/domain/current-work.js +41 -8
  188. package/daemon/dist/domain/current-work.js.map +1 -1
  189. package/daemon/dist/domain/cwd-resolution.d.ts +2 -0
  190. package/daemon/dist/domain/cwd-resolution.d.ts.map +1 -1
  191. package/daemon/dist/domain/cwd-resolution.js +7 -2
  192. package/daemon/dist/domain/cwd-resolution.js.map +1 -1
  193. package/daemon/dist/domain/draft-aware-delivery.d.ts.map +1 -1
  194. package/daemon/dist/domain/draft-aware-delivery.js +5 -1
  195. package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
  196. package/daemon/dist/domain/errors.d.ts +4 -0
  197. package/daemon/dist/domain/errors.d.ts.map +1 -1
  198. package/daemon/dist/domain/errors.js +7 -0
  199. package/daemon/dist/domain/errors.js.map +1 -1
  200. package/daemon/dist/domain/execution-view.d.ts.map +1 -1
  201. package/daemon/dist/domain/execution-view.js +8 -1
  202. package/daemon/dist/domain/execution-view.js.map +1 -1
  203. package/daemon/dist/domain/existing-rig-restore.d.ts +2 -0
  204. package/daemon/dist/domain/existing-rig-restore.d.ts.map +1 -1
  205. package/daemon/dist/domain/existing-rig-restore.js +1 -0
  206. package/daemon/dist/domain/existing-rig-restore.js.map +1 -1
  207. package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts.map +1 -1
  208. package/daemon/dist/domain/gateway/operator-delivery-engine.js +107 -3
  209. package/daemon/dist/domain/gateway/operator-delivery-engine.js.map +1 -1
  210. package/daemon/dist/domain/gateway/slack/capabilities.d.ts +9 -1
  211. package/daemon/dist/domain/gateway/slack/capabilities.d.ts.map +1 -1
  212. package/daemon/dist/domain/gateway/slack/capabilities.js +6 -1
  213. package/daemon/dist/domain/gateway/slack/capabilities.js.map +1 -1
  214. package/daemon/dist/domain/gateway/slack/inbound-admission.js +1 -1
  215. package/daemon/dist/domain/gateway/slack/inbound-admission.js.map +1 -1
  216. package/daemon/dist/domain/gateway/slack/inbound.d.ts +4 -0
  217. package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
  218. package/daemon/dist/domain/gateway/slack/inbound.js +15 -1
  219. package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
  220. package/daemon/dist/domain/gateway/slack/manifest.d.ts +5 -1
  221. package/daemon/dist/domain/gateway/slack/manifest.d.ts.map +1 -1
  222. package/daemon/dist/domain/gateway/slack/manifest.js +12 -3
  223. package/daemon/dist/domain/gateway/slack/manifest.js.map +1 -1
  224. package/daemon/dist/domain/gateway/slack/message.d.ts +1 -0
  225. package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
  226. package/daemon/dist/domain/gateway/slack/message.js +4 -1
  227. package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
  228. package/daemon/dist/domain/gateway/slack/queue-access.d.ts +2 -0
  229. package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
  230. package/daemon/dist/domain/gateway/slack/queue-access.js +1 -0
  231. package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
  232. package/daemon/dist/domain/gateway/slack/settled-asks.d.ts.map +1 -1
  233. package/daemon/dist/domain/gateway/slack/settled-asks.js +6 -5
  234. package/daemon/dist/domain/gateway/slack/settled-asks.js.map +1 -1
  235. package/daemon/dist/domain/gateway/slack/slack-api.d.ts +1 -0
  236. package/daemon/dist/domain/gateway/slack/slack-api.d.ts.map +1 -1
  237. package/daemon/dist/domain/gateway/slack/slack-api.js +7 -2
  238. package/daemon/dist/domain/gateway/slack/slack-api.js.map +1 -1
  239. package/daemon/dist/domain/harness-not-started-notice.d.ts +36 -0
  240. package/daemon/dist/domain/harness-not-started-notice.d.ts.map +1 -0
  241. package/daemon/dist/domain/harness-not-started-notice.js +81 -0
  242. package/daemon/dist/domain/harness-not-started-notice.js.map +1 -0
  243. package/daemon/dist/domain/hot-potato-enforcer.d.ts +1 -1
  244. package/daemon/dist/domain/input-read-diagnostic.js +1 -1
  245. package/daemon/dist/domain/input-read-diagnostic.js.map +1 -1
  246. package/daemon/dist/domain/instance-initialization.d.ts +2 -0
  247. package/daemon/dist/domain/instance-initialization.d.ts.map +1 -1
  248. package/daemon/dist/domain/instance-initialization.js +2 -1
  249. package/daemon/dist/domain/instance-initialization.js.map +1 -1
  250. package/daemon/dist/domain/member-connection.d.ts +14 -0
  251. package/daemon/dist/domain/member-connection.d.ts.map +1 -0
  252. package/daemon/dist/domain/member-connection.js +34 -0
  253. package/daemon/dist/domain/member-connection.js.map +1 -0
  254. package/daemon/dist/domain/model-divergence/current-model-reader.d.ts +3 -1
  255. package/daemon/dist/domain/model-divergence/current-model-reader.d.ts.map +1 -1
  256. package/daemon/dist/domain/model-divergence/current-model-reader.js +32 -7
  257. package/daemon/dist/domain/model-divergence/current-model-reader.js.map +1 -1
  258. package/daemon/dist/domain/native-permission-store.d.ts +6 -2
  259. package/daemon/dist/domain/native-permission-store.d.ts.map +1 -1
  260. package/daemon/dist/domain/native-permission-store.js +12 -5
  261. package/daemon/dist/domain/native-permission-store.js.map +1 -1
  262. package/daemon/dist/domain/native-resume-probe.d.ts +5 -0
  263. package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
  264. package/daemon/dist/domain/native-resume-probe.js +94 -10
  265. package/daemon/dist/domain/native-resume-probe.js.map +1 -1
  266. package/daemon/dist/domain/network/network-connector.d.ts.map +1 -1
  267. package/daemon/dist/domain/network/network-connector.js +11 -2
  268. package/daemon/dist/domain/network/network-connector.js.map +1 -1
  269. package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
  270. package/daemon/dist/domain/node-inventory.js +28 -0
  271. package/daemon/dist/domain/node-inventory.js.map +1 -1
  272. package/daemon/dist/domain/node-launcher.d.ts +8 -0
  273. package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
  274. package/daemon/dist/domain/node-launcher.js +19 -4
  275. package/daemon/dist/domain/node-launcher.js.map +1 -1
  276. package/daemon/dist/domain/outbox-handler.d.ts +50 -0
  277. package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
  278. package/daemon/dist/domain/outbox-handler.js +255 -1
  279. package/daemon/dist/domain/outbox-handler.js.map +1 -1
  280. package/daemon/dist/domain/parked-query.d.ts.map +1 -1
  281. package/daemon/dist/domain/parked-query.js +3 -1
  282. package/daemon/dist/domain/parked-query.js.map +1 -1
  283. package/daemon/dist/domain/permission-account.d.ts +28 -1
  284. package/daemon/dist/domain/permission-account.d.ts.map +1 -1
  285. package/daemon/dist/domain/permission-account.js +55 -11
  286. package/daemon/dist/domain/permission-account.js.map +1 -1
  287. package/daemon/dist/domain/permission-drift.d.ts +2 -0
  288. package/daemon/dist/domain/permission-drift.d.ts.map +1 -1
  289. package/daemon/dist/domain/permission-drift.js.map +1 -1
  290. package/daemon/dist/domain/pi-compaction-request-store.d.ts +16 -0
  291. package/daemon/dist/domain/pi-compaction-request-store.d.ts.map +1 -0
  292. package/daemon/dist/domain/pi-compaction-request-store.js +40 -0
  293. package/daemon/dist/domain/pi-compaction-request-store.js.map +1 -0
  294. package/daemon/dist/domain/pi-compaction-service.d.ts +82 -0
  295. package/daemon/dist/domain/pi-compaction-service.d.ts.map +1 -0
  296. package/daemon/dist/domain/pi-compaction-service.js +229 -0
  297. package/daemon/dist/domain/pi-compaction-service.js.map +1 -0
  298. package/daemon/dist/domain/process-limits.d.ts +37 -0
  299. package/daemon/dist/domain/process-limits.d.ts.map +1 -0
  300. package/daemon/dist/domain/process-limits.js +69 -0
  301. package/daemon/dist/domain/process-limits.js.map +1 -0
  302. package/daemon/dist/domain/process-table.d.ts +9 -0
  303. package/daemon/dist/domain/process-table.d.ts.map +1 -1
  304. package/daemon/dist/domain/process-table.js +21 -4
  305. package/daemon/dist/domain/process-table.js.map +1 -1
  306. package/daemon/dist/domain/proof/judgments.d.ts +7 -0
  307. package/daemon/dist/domain/proof/judgments.d.ts.map +1 -1
  308. package/daemon/dist/domain/proof/judgments.js +27 -1
  309. package/daemon/dist/domain/proof/judgments.js.map +1 -1
  310. package/daemon/dist/domain/ps-projection.d.ts +2 -1
  311. package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
  312. package/daemon/dist/domain/ps-projection.js +6 -1
  313. package/daemon/dist/domain/ps-projection.js.map +1 -1
  314. package/daemon/dist/domain/queue-erasure.d.ts +11 -6
  315. package/daemon/dist/domain/queue-erasure.d.ts.map +1 -1
  316. package/daemon/dist/domain/queue-erasure.js +44 -21
  317. package/daemon/dist/domain/queue-erasure.js.map +1 -1
  318. package/daemon/dist/domain/queue-repository.d.ts +62 -14
  319. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  320. package/daemon/dist/domain/queue-repository.js +270 -65
  321. package/daemon/dist/domain/queue-repository.js.map +1 -1
  322. package/daemon/dist/domain/queue-stuck-sweep.d.ts +3 -0
  323. package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
  324. package/daemon/dist/domain/queue-stuck-sweep.js +45 -13
  325. package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
  326. package/daemon/dist/domain/queue-transition-log.d.ts +5 -3
  327. package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
  328. package/daemon/dist/domain/queue-transition-log.js +9 -6
  329. package/daemon/dist/domain/queue-transition-log.js.map +1 -1
  330. package/daemon/dist/domain/queue-wake-ladder.d.ts +8 -0
  331. package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
  332. package/daemon/dist/domain/queue-wake-ladder.js +155 -17
  333. package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
  334. package/daemon/dist/domain/queue-wake-repository.d.ts +2 -1
  335. package/daemon/dist/domain/queue-wake-repository.d.ts.map +1 -1
  336. package/daemon/dist/domain/queue-wake-repository.js +31 -4
  337. package/daemon/dist/domain/queue-wake-repository.js.map +1 -1
  338. package/daemon/dist/domain/restore-check-service.d.ts +10 -0
  339. package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
  340. package/daemon/dist/domain/restore-check-service.js +76 -3
  341. package/daemon/dist/domain/restore-check-service.js.map +1 -1
  342. package/daemon/dist/domain/restore-orchestrator.d.ts +60 -2
  343. package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
  344. package/daemon/dist/domain/restore-orchestrator.js +241 -50
  345. package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
  346. package/daemon/dist/domain/restore-plan-preview.d.ts +28 -1
  347. package/daemon/dist/domain/restore-plan-preview.d.ts.map +1 -1
  348. package/daemon/dist/domain/restore-plan-preview.js +17 -5
  349. package/daemon/dist/domain/restore-plan-preview.js.map +1 -1
  350. package/daemon/dist/domain/restore-preconditions.d.ts +24 -0
  351. package/daemon/dist/domain/restore-preconditions.d.ts.map +1 -1
  352. package/daemon/dist/domain/restore-preconditions.js +61 -1
  353. package/daemon/dist/domain/restore-preconditions.js.map +1 -1
  354. package/daemon/dist/domain/resume-token-validation.d.ts +3 -1
  355. package/daemon/dist/domain/resume-token-validation.d.ts.map +1 -1
  356. package/daemon/dist/domain/resume-token-validation.js +6 -3
  357. package/daemon/dist/domain/resume-token-validation.js.map +1 -1
  358. package/daemon/dist/domain/return-route.d.ts +73 -0
  359. package/daemon/dist/domain/return-route.d.ts.map +1 -0
  360. package/daemon/dist/domain/return-route.js +124 -0
  361. package/daemon/dist/domain/return-route.js.map +1 -0
  362. package/daemon/dist/domain/rig-expansion-service.js +1 -1
  363. package/daemon/dist/domain/rig-expansion-service.js.map +1 -1
  364. package/daemon/dist/domain/rig-repository.d.ts +12 -0
  365. package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
  366. package/daemon/dist/domain/rig-repository.js +73 -0
  367. package/daemon/dist/domain/rig-repository.js.map +1 -1
  368. package/daemon/dist/domain/rig-teardown.d.ts +4 -2
  369. package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
  370. package/daemon/dist/domain/rig-teardown.js +32 -13
  371. package/daemon/dist/domain/rig-teardown.js.map +1 -1
  372. package/daemon/dist/domain/rigspec-codec.d.ts.map +1 -1
  373. package/daemon/dist/domain/rigspec-codec.js +9 -0
  374. package/daemon/dist/domain/rigspec-codec.js.map +1 -1
  375. package/daemon/dist/domain/rigspec-exporter.d.ts +6 -0
  376. package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
  377. package/daemon/dist/domain/rigspec-exporter.js +30 -0
  378. package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
  379. package/daemon/dist/domain/rigspec-instantiator.d.ts +22 -2
  380. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  381. package/daemon/dist/domain/rigspec-instantiator.js +82 -23
  382. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  383. package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
  384. package/daemon/dist/domain/rigspec-schema.js +44 -1
  385. package/daemon/dist/domain/rigspec-schema.js.map +1 -1
  386. package/daemon/dist/domain/rosters.d.ts +12 -0
  387. package/daemon/dist/domain/rosters.d.ts.map +1 -1
  388. package/daemon/dist/domain/rosters.js +17 -4
  389. package/daemon/dist/domain/rosters.js.map +1 -1
  390. package/daemon/dist/domain/runner-channel.d.ts +33 -0
  391. package/daemon/dist/domain/runner-channel.d.ts.map +1 -0
  392. package/daemon/dist/domain/runner-channel.js +179 -0
  393. package/daemon/dist/domain/runner-channel.js.map +1 -0
  394. package/daemon/dist/domain/runner-grant-launch.js +2 -2
  395. package/daemon/dist/domain/runtime-adapter.d.ts +2 -0
  396. package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
  397. package/daemon/dist/domain/runtime-adapter.js.map +1 -1
  398. package/daemon/dist/domain/runtime-switch-materials.d.ts.map +1 -1
  399. package/daemon/dist/domain/runtime-switch-materials.js +4 -3
  400. package/daemon/dist/domain/runtime-switch-materials.js.map +1 -1
  401. package/daemon/dist/domain/scope/scope-audit.d.ts.map +1 -1
  402. package/daemon/dist/domain/scope/scope-audit.js +55 -3
  403. package/daemon/dist/domain/scope/scope-audit.js.map +1 -1
  404. package/daemon/dist/domain/seat-attention-reconciler.d.ts +6 -4
  405. package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
  406. package/daemon/dist/domain/seat-attention-reconciler.js +17 -10
  407. package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
  408. package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
  409. package/daemon/dist/domain/seat-delivery-guard.js +2 -1
  410. package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
  411. package/daemon/dist/domain/seat-handover-service.d.ts +27 -4
  412. package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
  413. package/daemon/dist/domain/seat-handover-service.js +203 -63
  414. package/daemon/dist/domain/seat-handover-service.js.map +1 -1
  415. package/daemon/dist/domain/seat-identity-reconciler.d.ts +8 -1
  416. package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
  417. package/daemon/dist/domain/seat-identity-reconciler.js +52 -12
  418. package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
  419. package/daemon/dist/domain/seat-lifecycle-service.d.ts +21 -4
  420. package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
  421. package/daemon/dist/domain/seat-lifecycle-service.js +68 -2
  422. package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
  423. package/daemon/dist/domain/seat-restart-in-place.d.ts +9 -2
  424. package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
  425. package/daemon/dist/domain/seat-restart-in-place.js +34 -2
  426. package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
  427. package/daemon/dist/domain/seat-runtime-switch-service.d.ts +4 -0
  428. package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
  429. package/daemon/dist/domain/seat-runtime-switch-service.js +9 -3
  430. package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
  431. package/daemon/dist/domain/seat-status-service.d.ts +4 -0
  432. package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
  433. package/daemon/dist/domain/seat-status-service.js +31 -6
  434. package/daemon/dist/domain/seat-status-service.js.map +1 -1
  435. package/daemon/dist/domain/session-transport.d.ts +16 -3
  436. package/daemon/dist/domain/session-transport.d.ts.map +1 -1
  437. package/daemon/dist/domain/session-transport.js +134 -9
  438. package/daemon/dist/domain/session-transport.js.map +1 -1
  439. package/daemon/dist/domain/shared-conversation.d.ts +58 -0
  440. package/daemon/dist/domain/shared-conversation.d.ts.map +1 -0
  441. package/daemon/dist/domain/shared-conversation.js +98 -0
  442. package/daemon/dist/domain/shared-conversation.js.map +1 -0
  443. package/daemon/dist/domain/startup-phase-timing.d.ts +19 -0
  444. package/daemon/dist/domain/startup-phase-timing.d.ts.map +1 -0
  445. package/daemon/dist/domain/startup-phase-timing.js +23 -0
  446. package/daemon/dist/domain/startup-phase-timing.js.map +1 -0
  447. package/daemon/dist/domain/successor-session-launcher.d.ts +9 -0
  448. package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
  449. package/daemon/dist/domain/successor-session-launcher.js +24 -7
  450. package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
  451. package/daemon/dist/domain/team-operations.d.ts +6 -6
  452. package/daemon/dist/domain/team-operations.d.ts.map +1 -1
  453. package/daemon/dist/domain/team-operations.js +2 -4
  454. package/daemon/dist/domain/team-operations.js.map +1 -1
  455. package/daemon/dist/domain/terminal/herdr-app-provider.d.ts +6 -0
  456. package/daemon/dist/domain/terminal/herdr-app-provider.d.ts.map +1 -1
  457. package/daemon/dist/domain/terminal/herdr-app-provider.js +23 -1
  458. package/daemon/dist/domain/terminal/herdr-app-provider.js.map +1 -1
  459. package/daemon/dist/domain/terminal-policy.js +1 -1
  460. package/daemon/dist/domain/terminal-policy.js.map +1 -1
  461. package/daemon/dist/domain/types.d.ts +82 -5
  462. package/daemon/dist/domain/types.d.ts.map +1 -1
  463. package/daemon/dist/domain/types.js.map +1 -1
  464. package/daemon/dist/domain/watchdog-delivery.d.ts +1 -1
  465. package/daemon/dist/domain/watchdog-delivery.d.ts.map +1 -1
  466. package/daemon/dist/domain/watchdog-delivery.js +6 -3
  467. package/daemon/dist/domain/watchdog-delivery.js.map +1 -1
  468. package/daemon/dist/domain/watchdog-jobs-repository.d.ts.map +1 -1
  469. package/daemon/dist/domain/watchdog-jobs-repository.js +1 -0
  470. package/daemon/dist/domain/watchdog-jobs-repository.js.map +1 -1
  471. package/daemon/dist/domain/watchdog-policy-engine.d.ts +5 -0
  472. package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
  473. package/daemon/dist/domain/watchdog-policy-engine.js +14 -4
  474. package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
  475. package/daemon/dist/domain/workflow-runtime.d.ts +1 -1
  476. package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
  477. package/daemon/dist/domain/workflow-runtime.js +4 -2
  478. package/daemon/dist/domain/workflow-runtime.js.map +1 -1
  479. package/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts +7 -1
  480. package/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts.map +1 -1
  481. package/daemon/dist/domain/workspace/default-workspace-scaffold.js +35 -7
  482. package/daemon/dist/domain/workspace/default-workspace-scaffold.js.map +1 -1
  483. package/daemon/dist/gateway-slack-surface.d.ts +2 -2
  484. package/daemon/dist/gateway-slack-surface.d.ts.map +1 -1
  485. package/daemon/dist/gateway-slack-surface.js +1 -1
  486. package/daemon/dist/gateway-slack-surface.js.map +1 -1
  487. package/daemon/dist/index.d.ts.map +1 -1
  488. package/daemon/dist/index.js +13 -2
  489. package/daemon/dist/index.js.map +1 -1
  490. package/daemon/dist/routes/activity.d.ts.map +1 -1
  491. package/daemon/dist/routes/activity.js +105 -2
  492. package/daemon/dist/routes/activity.js.map +1 -1
  493. package/daemon/dist/routes/agent-images.d.ts.map +1 -1
  494. package/daemon/dist/routes/agent-images.js +6 -1
  495. package/daemon/dist/routes/agent-images.js.map +1 -1
  496. package/daemon/dist/routes/attention.d.ts.map +1 -1
  497. package/daemon/dist/routes/attention.js +2 -1
  498. package/daemon/dist/routes/attention.js.map +1 -1
  499. package/daemon/dist/routes/compaction.d.ts.map +1 -1
  500. package/daemon/dist/routes/compaction.js +46 -7
  501. package/daemon/dist/routes/compaction.js.map +1 -1
  502. package/daemon/dist/routes/queue.d.ts +4 -1
  503. package/daemon/dist/routes/queue.d.ts.map +1 -1
  504. package/daemon/dist/routes/queue.js +232 -34
  505. package/daemon/dist/routes/queue.js.map +1 -1
  506. package/daemon/dist/routes/require-sender-identity.d.ts +4 -3
  507. package/daemon/dist/routes/require-sender-identity.d.ts.map +1 -1
  508. package/daemon/dist/routes/require-sender-identity.js.map +1 -1
  509. package/daemon/dist/routes/restore-check.d.ts.map +1 -1
  510. package/daemon/dist/routes/restore-check.js +1 -0
  511. package/daemon/dist/routes/restore-check.js.map +1 -1
  512. package/daemon/dist/routes/rigspec.d.ts.map +1 -1
  513. package/daemon/dist/routes/rigspec.js +24 -4
  514. package/daemon/dist/routes/rigspec.js.map +1 -1
  515. package/daemon/dist/routes/seat.d.ts.map +1 -1
  516. package/daemon/dist/routes/seat.js +107 -6
  517. package/daemon/dist/routes/seat.js.map +1 -1
  518. package/daemon/dist/routes/sessions.js +14 -3
  519. package/daemon/dist/routes/sessions.js.map +1 -1
  520. package/daemon/dist/routes/startup.js +7 -1
  521. package/daemon/dist/routes/startup.js.map +1 -1
  522. package/daemon/dist/routes/up.d.ts.map +1 -1
  523. package/daemon/dist/routes/up.js +14 -4
  524. package/daemon/dist/routes/up.js.map +1 -1
  525. package/daemon/dist/routes/watchdog.d.ts.map +1 -1
  526. package/daemon/dist/routes/watchdog.js +18 -1
  527. package/daemon/dist/routes/watchdog.js.map +1 -1
  528. package/daemon/dist/server.d.ts +3 -0
  529. package/daemon/dist/server.d.ts.map +1 -1
  530. package/daemon/dist/server.js +11 -0
  531. package/daemon/dist/server.js.map +1 -1
  532. package/daemon/dist/startup.d.ts.map +1 -1
  533. package/daemon/dist/startup.js +51 -16
  534. package/daemon/dist/startup.js.map +1 -1
  535. package/daemon/docs/reference/agent-startup-guide.md +2 -1
  536. package/daemon/docs/reference/community-harness-examples/dsh/README.md +8 -0
  537. package/daemon/docs/reference/community-harness-examples/dsh/openrig-dsh-runner.mjs +139 -5
  538. package/daemon/docs/reference/community-harness-presets.md +2 -0
  539. package/daemon/docs/reference/daemon-http-clients.md +61 -12
  540. package/daemon/docs/reference/getting-started.md +4 -4
  541. package/daemon/docs/reference/harness-runner-contract.md +91 -1
  542. package/daemon/docs/reference/herdr-app.md +6 -0
  543. package/daemon/docs/reference/quickstart.md +2 -2
  544. package/daemon/docs/reference/rig-spec.md +166 -0
  545. package/daemon/docs/reference/rosters.md +9 -0
  546. package/daemon/docs/reference/sdlc-conventions.md +5 -1
  547. package/daemon/docs/reference/slack-app-setup.md +39 -21
  548. package/daemon/docs/reference/whats-new.md +107 -6
  549. package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +23 -0
  550. package/daemon/specs/rigs/launch/factory/guidance/lead-first-move.md +26 -5
  551. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +19 -5
  552. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/startup/context.md +1 -1
  553. package/daemon/specs/rigs/launch/kernel/culture/CULTURE.md +12 -0
  554. package/daemon/specs/rigs/launch/starter/guidance/lead-first-move.md +26 -5
  555. package/dist/acp/connector.js +1 -1
  556. package/dist/acp/connector.js.map +1 -1
  557. package/dist/build-info.js +3 -3
  558. package/dist/cli-error.d.ts.map +1 -1
  559. package/dist/cli-error.js +7 -1
  560. package/dist/cli-error.js.map +1 -1
  561. package/dist/client.d.ts +2 -1
  562. package/dist/client.d.ts.map +1 -1
  563. package/dist/client.js +3 -2
  564. package/dist/client.js.map +1 -1
  565. package/dist/commands/ask.d.ts.map +1 -1
  566. package/dist/commands/ask.js +92 -11
  567. package/dist/commands/ask.js.map +1 -1
  568. package/dist/commands/broadcast.js +9 -5
  569. package/dist/commands/broadcast.js.map +1 -1
  570. package/dist/commands/compact.d.ts +3 -4
  571. package/dist/commands/compact.d.ts.map +1 -1
  572. package/dist/commands/compact.js +76 -16
  573. package/dist/commands/compact.js.map +1 -1
  574. package/dist/commands/config-init-workspace.d.ts.map +1 -1
  575. package/dist/commands/config-init-workspace.js +3 -0
  576. package/dist/commands/config-init-workspace.js.map +1 -1
  577. package/dist/commands/down.d.ts.map +1 -1
  578. package/dist/commands/down.js +3 -1
  579. package/dist/commands/down.js.map +1 -1
  580. package/dist/commands/export.d.ts.map +1 -1
  581. package/dist/commands/export.js +2 -1
  582. package/dist/commands/export.js.map +1 -1
  583. package/dist/commands/fork.d.ts.map +1 -1
  584. package/dist/commands/fork.js +2 -0
  585. package/dist/commands/fork.js.map +1 -1
  586. package/dist/commands/launch.d.ts.map +1 -1
  587. package/dist/commands/launch.js +11 -3
  588. package/dist/commands/launch.js.map +1 -1
  589. package/dist/commands/ps.d.ts +28 -0
  590. package/dist/commands/ps.d.ts.map +1 -1
  591. package/dist/commands/ps.js +76 -2
  592. package/dist/commands/ps.js.map +1 -1
  593. package/dist/commands/queue.d.ts.map +1 -1
  594. package/dist/commands/queue.js +309 -21
  595. package/dist/commands/queue.js.map +1 -1
  596. package/dist/commands/rig.d.ts +2 -0
  597. package/dist/commands/rig.d.ts.map +1 -1
  598. package/dist/commands/rig.js +36 -2
  599. package/dist/commands/rig.js.map +1 -1
  600. package/dist/commands/roster.d.ts +3 -0
  601. package/dist/commands/roster.d.ts.map +1 -1
  602. package/dist/commands/seat.d.ts.map +1 -1
  603. package/dist/commands/seat.js +126 -7
  604. package/dist/commands/seat.js.map +1 -1
  605. package/dist/commands/send.d.ts.map +1 -1
  606. package/dist/commands/send.js +47 -6
  607. package/dist/commands/send.js.map +1 -1
  608. package/dist/commands/setup.js +2 -2
  609. package/dist/commands/setup.js.map +1 -1
  610. package/dist/commands/slack.d.ts +2 -1
  611. package/dist/commands/slack.d.ts.map +1 -1
  612. package/dist/commands/slack.js +38 -2
  613. package/dist/commands/slack.js.map +1 -1
  614. package/dist/commands/terminal.d.ts.map +1 -1
  615. package/dist/commands/terminal.js +5 -5
  616. package/dist/commands/terminal.js.map +1 -1
  617. package/dist/commands/up.d.ts.map +1 -1
  618. package/dist/commands/up.js +3 -0
  619. package/dist/commands/up.js.map +1 -1
  620. package/dist/commands/workflow.d.ts.map +1 -1
  621. package/dist/commands/workflow.js +4 -0
  622. package/dist/commands/workflow.js.map +1 -1
  623. package/dist/daemon-lifecycle.d.ts.map +1 -1
  624. package/dist/daemon-lifecycle.js +1 -0
  625. package/dist/daemon-lifecycle.js.map +1 -1
  626. package/dist/lib/model-observation.d.ts.map +1 -1
  627. package/dist/lib/model-observation.js +9 -3
  628. package/dist/lib/model-observation.js.map +1 -1
  629. package/dist/lib/scope/scope-audit.d.ts.map +1 -1
  630. package/dist/lib/scope/scope-audit.js +55 -3
  631. package/dist/lib/scope/scope-audit.js.map +1 -1
  632. package/dist/local-db.d.ts +5 -0
  633. package/dist/local-db.d.ts.map +1 -0
  634. package/dist/local-db.js +23 -0
  635. package/dist/local-db.js.map +1 -0
  636. package/dist/local-origin.d.ts.map +1 -1
  637. package/dist/local-origin.js +2 -17
  638. package/dist/local-origin.js.map +1 -1
  639. package/dist/mcp-server.d.ts.map +1 -1
  640. package/dist/mcp-server.js +122 -18
  641. package/dist/mcp-server.js.map +1 -1
  642. package/dist/sender-identity.d.ts +18 -6
  643. package/dist/sender-identity.d.ts.map +1 -1
  644. package/dist/sender-identity.js +67 -7
  645. package/dist/sender-identity.js.map +1 -1
  646. package/dist/terminal-window-rex.d.ts +1 -1
  647. package/dist/terminal-window-rex.d.ts.map +1 -1
  648. package/dist/terminal-window-rex.js +3 -2
  649. package/dist/terminal-window-rex.js.map +1 -1
  650. package/dist/terminal-window.js +3 -3
  651. package/dist/terminal-window.js.map +1 -1
  652. package/package.json +1 -1
  653. package/tui/dist/daemon-client.d.ts.map +1 -1
  654. package/tui/dist/daemon-client.js +2 -1
  655. package/tui/dist/daemon-client.js.map +1 -1
  656. package/ui/dist/assets/{index-BvUEh33d.js → index-1O1f3A7K.js} +55 -55
  657. package/ui/dist/index.html +1 -1
@@ -1,3 +1,6 @@
1
+ import { beginStartupPhase, recordStartupPhase } from "./domain/startup-phase-timing.js";
2
+ import { RunnerChannel } from "./domain/runner-channel.js";
3
+ import { ActivityGrantStore } from "./domain/activity-grants.js";
1
4
  import { runnerGrantIssuer } from "./domain/runner-grant-launch.js";
2
5
  import { piAccountStateRoot } from "./domain/pi-account-state.js";
3
6
  import { EnvironmentStartup } from "./domain/environment-startup.js";
@@ -193,6 +196,7 @@ import { recoverSeatSkillAttempts } from "./domain/seat-skill-apply.js";
193
196
  import { restoreExistingRigUnattended } from "./domain/existing-rig-restore.js";
194
197
  import { lstatLinkInfo } from "./domain/restore-guidance.js";
195
198
  import { managedBlockRecords } from "./domain/managed-block-records.js";
199
+ import { noticeHarnessNotStarted } from "./domain/harness-not-started-notice.js";
196
200
  import { getCompatibleOpenRigPath, getDefaultOpenRigPath, getOpenRigHome, readOpenRigEnv, } from "./openrig-compat.js";
197
201
  const KNOWN_PROVIDER_AUTH_ENV = new Set([
198
202
  "ANTHROPIC_API_KEY",
@@ -277,7 +281,9 @@ export async function createDaemon(opts) {
277
281
  for (const warning of databaseWarnings)
278
282
  console.warn(`Warning: ${warning}`);
279
283
  const db = createDb(dbPath);
284
+ const endMigrations = beginStartupPhase("migrations");
280
285
  migrate(db, ALL_MIGRATIONS);
286
+ const migrationsTiming = endMigrations();
281
287
  // 51-09 increment 1 — establish the daemon's durable self-host identity at
282
288
  // boot (mint on first boot, reconcile thereafter). host.name is a display-only
283
289
  // CANDIDATE SEED (arch ruling cb19867f / DP4). Boot proceeds on a host.name
@@ -314,6 +320,9 @@ export async function createDaemon(opts) {
314
320
  : new SlowOpRecorder({
315
321
  logPath: nodePath.join(OPENRIG_HOME, "logs", "slow-operations.jsonl"),
316
322
  }));
323
+ // The migration interval ends before recorder setup; submit it only once the
324
+ // normal nonblocking sink exists. A failed pre-recorder boot has no record.
325
+ recordStartupPhase(slowOpRecorder, migrationsTiming);
317
326
  configureSyncSiteRecorder(slowOpRecorder);
318
327
  // Instrumentation wiring is observe-only: neither a throwing registration
319
328
  // call nor a throwing callback body (streamStore.emit) may abort createDaemon
@@ -482,6 +491,7 @@ export async function createDaemon(opts) {
482
491
  // staging. Same `db`, so a stageWakeIntent() call inside a terminal
483
492
  // db.transaction commits atomically with the close + successor create.
484
493
  const outboxHandlerInstance = new OutboxHandler(db);
494
+ const runnerChannel = new RunnerChannel(new ActivityGrantStore(db), outboxHandlerInstance);
485
495
  queueRepoInstance.attachOutbox(outboxHandlerInstance);
486
496
  outboxHandlerInstance.reconcileAbandonedSending("watchdog-occurrence-");
487
497
  // Reconcile only the prior process's claims, before transport/producers/timers can start new sends.
@@ -730,6 +740,8 @@ export async function createDaemon(opts) {
730
740
  // #2030: on Linux, the daemon's runtime directory, with a session bus address that can't connect.
731
741
  runtimeDir: seatRuntimeDir(process.env),
732
742
  });
743
+ // #3253: a seat's own process limits (rig spec `process_limits`), read from its node at each launch.
744
+ tmuxAdapter.seatProcessLimits = (nodeId) => rigRepo.getNodeProcessLimits(nodeId);
733
745
  const tmuxOptionDefaults = new TmuxOptionDefaultsApplier({
734
746
  tmuxAdapter,
735
747
  platform: opts?.tmuxOptionPlatform,
@@ -847,19 +859,21 @@ export async function createDaemon(opts) {
847
859
  getDesiredClaudeActivityHooks: createDesiredClaudeActivityHooksReader(db, {
848
860
  exists: (p) => fs.existsSync(p), readFile: (p) => fs.readFileSync(p, "utf-8"),
849
861
  }),
850
- freshLaunch: async (rigId, nodeId) => persistedFreshPodLaunch
851
- ? persistedFreshPodLaunch(rigId, nodeId)
862
+ freshLaunch: async (rigId, nodeId, launchOpts) => persistedFreshPodLaunch
863
+ ? persistedFreshPodLaunch(rigId, nodeId, launchOpts)
852
864
  : { status: "failed", error: "Pod instantiator is not ready for a fresh launch." },
853
865
  freshLaunchAvailable: (rigId, nodeId) => persistedFreshPodLaunchAvailable?.(rigId, nodeId) ?? false,
854
866
  seatSkillSelection: async (rigId, nodeId) => persistedSeatSkillSelection
855
867
  ? persistedSeatSkillSelection(rigId, nodeId)
856
868
  : { ok: false, reason: "the pod instantiator is not ready" },
869
+ harnessNotStartedNotice: (input) => noticeHarnessNotStarted(db, queueRepoInstance, input),
857
870
  });
858
871
  // Connect to cmux at startup — degrades gracefully if absent
859
872
  await cmuxAdapter.connect();
860
873
  // Reconcile all managed rigs — marks stale sessions as detached.
861
874
  // Capture aggregate counts and log a compact summary so cold-start truth
862
875
  // repair is visible in daemon output instead of silently swallowed.
876
+ const endReconciliation = beginStartupPhase("reconciliation");
863
877
  const reconciler = new Reconciler({ db, sessionRegistry, eventBus, tmuxAdapter });
864
878
  const rigs = rigRepo.listRigs();
865
879
  let reconcileChecked = 0;
@@ -909,6 +923,7 @@ export async function createDaemon(opts) {
909
923
  console.log(`startup reconcile: rigs=${rigs.length} checked=${reconcileChecked} detached=${reconcileDetached} unseen=${reconcileUnseen} errors=${reconcileErrors}`);
910
924
  }
911
925
  catch { /* logging must never throw */ }
926
+ recordStartupPhase(slowOpRecorder, endReconciliation());
912
927
  // Transcript rotators are process-local. Reattach them after lifecycle
913
928
  // reconciliation so surviving tmux sessions keep ingesting across daemon
914
929
  // restarts while genuinely detached sessions stay excluded.
@@ -1076,6 +1091,7 @@ export async function createDaemon(opts) {
1076
1091
  catch (err) {
1077
1092
  console.error(`[openrig] runtime setup warning: ${err.message}`);
1078
1093
  }
1094
+ const endManagedPlugins = beginStartupPhase("managed_plugins");
1079
1095
  // plugin-primitive Phase 3a slice 3.2 — vendor openrig-core plugin to
1080
1096
  // ~/.openrig/plugins/openrig-core/ on first launch. Auto-fetch from
1081
1097
  // github.com/mvschwarz/openrig-plugins is best-effort + 404-tolerant
@@ -1142,6 +1158,7 @@ export async function createDaemon(opts) {
1142
1158
  catch (err) {
1143
1159
  console.error(`[openrig] runtime setup warning: ${err.message}`);
1144
1160
  }
1161
+ recordStartupPhase(slowOpRecorder, endManagedPlugins());
1145
1162
  // PL-014: one daemon-scoped ContextPackLibraryService backs the
1146
1163
  // delivery-free /api/context-packs list/sync/compose/read/delete/preview/pieces
1147
1164
  // routes. Startup context-pack expansion is intentionally unsupported;
@@ -1227,6 +1244,9 @@ export async function createDaemon(opts) {
1227
1244
  });
1228
1245
  const environmentDriver = new OpenShellDriver();
1229
1246
  const environmentPlatform = new EnvironmentPlatform(db, environmentDriver);
1247
+ // #3253: a seat placed in an environment guest can't get a host scope for its agent (the scope would hold only the
1248
+ // local viewer). The session name finds a placement its node has not claimed yet, before the seat's first launch.
1249
+ tmuxAdapter.seatInEnvironmentGuest = (nodeId, session) => environmentPlatform.forNode(nodeId, session) !== null;
1230
1250
  const checkGuestActivityEndpoint = (origin) => {
1231
1251
  const url = new URL(origin);
1232
1252
  if (!opts?.guestActivityPort || Number(url.port || (url.protocol === "https:" ? 443 : 80)) !== opts.guestActivityPort)
@@ -1265,7 +1285,7 @@ export async function createDaemon(opts) {
1265
1285
  },
1266
1286
  skillReconciler: reconcileSkillLoadout,
1267
1287
  });
1268
- persistedFreshPodLaunch = (rigId, nodeId) => podInstantiator.launchPersistedFresh(rigId, nodeId);
1288
+ persistedFreshPodLaunch = (rigId, nodeId, launchOpts) => podInstantiator.launchPersistedFresh(rigId, nodeId, launchOpts);
1269
1289
  persistedFreshPodLaunchAvailable = (rigId, nodeId) => podInstantiator.canLaunchPersistedFresh(rigId, nodeId);
1270
1290
  persistedSeatSkillSelection = (rigId, nodeId) => podInstantiator.seatSkillSelection(rigId, nodeId);
1271
1291
  const podBundleSourceResolver = new PodBundleSourceResolver();
@@ -1357,6 +1377,18 @@ export async function createDaemon(opts) {
1357
1377
  scanner: tmuxScanner, fingerprinter: sessionFingerprinter, enricher: sessionEnricher,
1358
1378
  discoveryRepo, sessionRegistry, eventBus,
1359
1379
  });
1380
+ // W2a-1 — producer wiring: the live occupant generation resolves synchronously from the shipped
1381
+ // occupant-tenure ledger. generation_uuid CHANGES for a new occupant and persists only within one
1382
+ // tenure (a same-session relaunch is a continuation with no new generation); node_id is the stable-
1383
+ // across-handover key, not this. null = UNKNOWN, honored by the store as abstain (never a stale claim
1384
+ // rendered live). No tmux exec — a better-sqlite3 read on the hot path.
1385
+ const agentActivityStore = new AgentActivityStore({
1386
+ db,
1387
+ eventBus,
1388
+ resolveOccupantGeneration: (nodeId) => sessionRegistry.currentOccupantTenure(nodeId)?.generationUuid ?? null,
1389
+ isRegisteredOccupantGeneration: (nodeId, generation) => sessionRegistry.isOccupantGenerationRegistered(nodeId, generation),
1390
+ isOccupantContinuedByAdoption: (nodeId, generation) => sessionRegistry.isOccupantContinuedByAdoption(nodeId, generation),
1391
+ });
1360
1392
  // Context usage store — constructed ahead of the refresher + ClaimService so the
1361
1393
  // Claude status-line sidecar reader can be injected into BOTH: FR-3
1362
1394
  // adoption-boundary capture (ClaimService) and FR-4 snapshot null-fill (refresher).
@@ -1364,6 +1396,7 @@ export async function createDaemon(opts) {
1364
1396
  const { ContextUsageStore } = await import("./domain/context-usage-store.js");
1365
1397
  const contextUsageStore = new ContextUsageStore(db, {
1366
1398
  stateDir: OPENRIG_HOME,
1399
+ runnerObservations: agentActivityStore,
1367
1400
  codexHome: configuredCodexHome,
1368
1401
  // GHOST-STAGE (c-id): reject context readings from before the live occupant booted (prior
1369
1402
  // generation) so a frozen pre-handover sample can't drive the threshold. null = UNKNOWN (inert).
@@ -1388,7 +1421,7 @@ export async function createDaemon(opts) {
1388
1421
  return resolver;
1389
1422
  };
1390
1423
  const currentModelReader = new CurrentModelReader({
1391
- sessions: sessionRegistry, identities: new SeatIdentityStore(db), context: contextUsageStore,
1424
+ sessions: sessionRegistry, identities: new SeatIdentityStore(db), context: contextUsageStore, runnerObservations: agentActivityStore,
1392
1425
  census: modelCensus,
1393
1426
  readAllPaneProcesses: () => tmuxAdapter.readAllPaneProcesses(),
1394
1427
  native: {
@@ -1465,17 +1498,6 @@ export async function createDaemon(opts) {
1465
1498
  // (ContextUsageStore is constructed above, ahead of ClaimService, for FR-3.)
1466
1499
  const whoamiService = new WhoamiService({ db, rigRepo, sessionRegistry, transcriptStore, contextUsageStore });
1467
1500
  const nodeCmuxService = new NodeCmuxService(rigRepo, sessionRegistry, cmuxAdapter, tmuxAdapter);
1468
- // W2a-1 — producer wiring: the live occupant generation resolves synchronously from the shipped
1469
- // occupant-tenure ledger. generation_uuid CHANGES for a new occupant and persists only within one
1470
- // tenure (a same-session relaunch is a continuation with no new generation); node_id is the stable-
1471
- // across-handover key, not this. null = UNKNOWN, honored by the store as abstain (never a stale claim
1472
- // rendered live). No tmux exec — a better-sqlite3 read on the hot path.
1473
- const agentActivityStore = new AgentActivityStore({
1474
- db,
1475
- eventBus,
1476
- resolveOccupantGeneration: (nodeId) => sessionRegistry.currentOccupantTenure(nodeId)?.generationUuid ?? null,
1477
- isRegisteredOccupantGeneration: (nodeId, generation) => sessionRegistry.isOccupantGenerationRegistered(nodeId, generation),
1478
- });
1479
1501
  // #763 — Codex usage-limit banner detector. The reactive tap only accepts a
1480
1502
  // typed at_limit hook row and no hook producer emits one for Codex, so the
1481
1503
  // structural sweep reports what the seat itself shows. Attached late (rather
@@ -1510,7 +1532,7 @@ export async function createDaemon(opts) {
1510
1532
  .catch(error => console.warn(`Restored-seat reconcile: ${error instanceof Error ? error.name : typeof error}`));
1511
1533
  };
1512
1534
  eventBus.subscribe(event => {
1513
- if (event.type !== "restore.completed")
1535
+ if (event.type !== "restore.completed" && event.type !== "restore.subset_completed")
1514
1536
  return;
1515
1537
  void seatAttentionReconciler.onRestoreCompleted(event.rigId)
1516
1538
  .catch(error => console.warn(`Restored-seat reconcile: ${error instanceof Error ? error.name : typeof error}`));
@@ -1610,8 +1632,10 @@ export async function createDaemon(opts) {
1610
1632
  podBundleSourceResolver,
1611
1633
  runtimeAdapters: runtimeAdaptersMap,
1612
1634
  transcriptStore,
1635
+ runnerChannel,
1613
1636
  sessionTransport: (() => {
1614
1637
  const t = new SessionTransport({
1638
+ runnerChannel,
1615
1639
  contextUsageStore,
1616
1640
  db,
1617
1641
  rigRepo,
@@ -2722,6 +2746,17 @@ export async function createDaemon(opts) {
2722
2746
  // compaction trigger. Sharing one instance with ContextMonitor is what makes
2723
2747
  // the manual back-half drain through the auto poll loop (no second path).
2724
2748
  deps.compactionEnforcer = compactionEnforcer;
2749
+ const { PiCompactionService } = await import("./domain/pi-compaction-service.js");
2750
+ const { PiCompactionRequestStore } = await import("./domain/pi-compaction-request-store.js");
2751
+ if (sessionTransport)
2752
+ deps.piCompactionService = new PiCompactionService({
2753
+ requestStore: new PiCompactionRequestStore(nodePath.join(OPENRIG_HOME, "state", "pi-compaction-requests")),
2754
+ readSidecar: session => piAdapter.readRunnerSidecar(session).state,
2755
+ // The agent's ordinary guarded send path (session transport + delivery guard),
2756
+ // not a raw tmux write: drafts, holds, prompts and the occupant are respected.
2757
+ send: (session, text, opts) => sessionTransport.send(session, text, opts),
2758
+ terminalPolicies: new TerminalPolicyStore(db),
2759
+ });
2725
2760
  // GHOST-STAGE (e/Class-B) — construct the canonical OccupantInvalidator now that both Class-A deps
2726
2761
  // exist (the enforcer's in-mem maps 1a-1f + the context sidecar 2a). Injected into SeatHandoverService
2727
2762
  // via the app context so commit()'s re-key call FIRES (it was a no-op until wired). An absent enforcer