@pellux/goodvibes-sdk 0.38.0 → 1.1.0

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 (559) hide show
  1. package/dist/contracts/artifacts/operator-contract.json +4468 -916
  2. package/dist/daemon.d.ts +2 -0
  3. package/dist/daemon.d.ts.map +1 -1
  4. package/dist/daemon.js +4 -0
  5. package/dist/events/communication.d.ts +1 -1
  6. package/dist/events/surfaces.d.ts +25 -3
  7. package/dist/events/surfaces.d.ts.map +1 -1
  8. package/dist/events/surfaces.js +22 -1
  9. package/dist/events/workflows.d.ts +7 -6
  10. package/dist/events/workflows.d.ts.map +1 -1
  11. package/dist/index.d.ts +1 -1
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/platform/agents/archetypes.d.ts.map +1 -1
  14. package/dist/platform/agents/archetypes.js +7 -0
  15. package/dist/platform/agents/index.d.ts +1 -0
  16. package/dist/platform/agents/index.d.ts.map +1 -1
  17. package/dist/platform/agents/index.js +1 -0
  18. package/dist/platform/agents/orchestrator-runner.d.ts +16 -3
  19. package/dist/platform/agents/orchestrator-runner.d.ts.map +1 -1
  20. package/dist/platform/agents/orchestrator-runner.js +20 -6
  21. package/dist/platform/agents/orchestrator.d.ts +42 -10
  22. package/dist/platform/agents/orchestrator.d.ts.map +1 -1
  23. package/dist/platform/agents/orchestrator.js +68 -20
  24. package/dist/platform/agents/planner-decomposition-runner.d.ts +38 -0
  25. package/dist/platform/agents/planner-decomposition-runner.d.ts.map +1 -0
  26. package/dist/platform/agents/planner-decomposition-runner.js +113 -0
  27. package/dist/platform/agents/turn-knowledge-injection.d.ts +88 -3
  28. package/dist/platform/agents/turn-knowledge-injection.d.ts.map +1 -1
  29. package/dist/platform/agents/turn-knowledge-injection.js +147 -30
  30. package/dist/platform/agents/worktree.d.ts +126 -8
  31. package/dist/platform/agents/worktree.d.ts.map +1 -1
  32. package/dist/platform/agents/worktree.js +240 -19
  33. package/dist/platform/agents/wrfc-controller.d.ts +24 -1
  34. package/dist/platform/agents/wrfc-controller.d.ts.map +1 -1
  35. package/dist/platform/agents/wrfc-controller.js +161 -35
  36. package/dist/platform/agents/wrfc-gate-runtime.d.ts +9 -0
  37. package/dist/platform/agents/wrfc-gate-runtime.d.ts.map +1 -1
  38. package/dist/platform/agents/wrfc-gate-runtime.js +7 -3
  39. package/dist/platform/agents/wrfc-gates.d.ts +1 -1
  40. package/dist/platform/agents/wrfc-gates.d.ts.map +1 -1
  41. package/dist/platform/agents/wrfc-gates.js +7 -1
  42. package/dist/platform/agents/wrfc-types.d.ts +23 -3
  43. package/dist/platform/agents/wrfc-types.d.ts.map +1 -1
  44. package/dist/platform/automation/types.d.ts +9 -1
  45. package/dist/platform/automation/types.d.ts.map +1 -1
  46. package/dist/platform/calendar/calendar-api-shared.d.ts +25 -0
  47. package/dist/platform/calendar/calendar-api-shared.d.ts.map +1 -0
  48. package/dist/platform/calendar/calendar-api-shared.js +100 -0
  49. package/dist/platform/calendar/calendar-connector.d.ts +79 -0
  50. package/dist/platform/calendar/calendar-connector.d.ts.map +1 -0
  51. package/dist/platform/calendar/calendar-connector.js +155 -0
  52. package/dist/platform/calendar/google-calendar-api.d.ts +25 -0
  53. package/dist/platform/calendar/google-calendar-api.d.ts.map +1 -0
  54. package/dist/platform/calendar/google-calendar-api.js +89 -0
  55. package/dist/platform/calendar/http-fetch-adapter.d.ts +25 -0
  56. package/dist/platform/calendar/http-fetch-adapter.d.ts.map +1 -0
  57. package/dist/platform/calendar/http-fetch-adapter.js +25 -0
  58. package/dist/platform/calendar/ics-parser.d.ts +35 -0
  59. package/dist/platform/calendar/ics-parser.d.ts.map +1 -0
  60. package/dist/platform/calendar/ics-parser.js +236 -0
  61. package/dist/platform/calendar/index.d.ts +41 -0
  62. package/dist/platform/calendar/index.d.ts.map +1 -0
  63. package/dist/platform/calendar/index.js +49 -0
  64. package/dist/platform/calendar/merged-calendar-model.d.ts +67 -0
  65. package/dist/platform/calendar/merged-calendar-model.d.ts.map +1 -0
  66. package/dist/platform/calendar/merged-calendar-model.js +181 -0
  67. package/dist/platform/calendar/microsoft-graph-api.d.ts +25 -0
  68. package/dist/platform/calendar/microsoft-graph-api.d.ts.map +1 -0
  69. package/dist/platform/calendar/microsoft-graph-api.js +95 -0
  70. package/dist/platform/calendar/oauth-flow.d.ts +62 -0
  71. package/dist/platform/calendar/oauth-flow.d.ts.map +1 -0
  72. package/dist/platform/calendar/oauth-flow.js +305 -0
  73. package/dist/platform/calendar/oauth-providers.d.ts +43 -0
  74. package/dist/platform/calendar/oauth-providers.d.ts.map +1 -0
  75. package/dist/platform/calendar/oauth-providers.js +120 -0
  76. package/dist/platform/calendar/oauth-token-store.d.ts +72 -0
  77. package/dist/platform/calendar/oauth-token-store.d.ts.map +1 -0
  78. package/dist/platform/calendar/oauth-token-store.js +189 -0
  79. package/dist/platform/calendar/oauth-types.d.ts +274 -0
  80. package/dist/platform/calendar/oauth-types.d.ts.map +1 -0
  81. package/dist/platform/calendar/oauth-types.js +22 -0
  82. package/dist/platform/calendar/rrule.d.ts +39 -0
  83. package/dist/platform/calendar/rrule.d.ts.map +1 -0
  84. package/dist/platform/calendar/rrule.js +261 -0
  85. package/dist/platform/calendar/subscription-store.d.ts +118 -0
  86. package/dist/platform/calendar/subscription-store.d.ts.map +1 -0
  87. package/dist/platform/calendar/subscription-store.js +293 -0
  88. package/dist/platform/calendar/types.d.ts +170 -0
  89. package/dist/platform/calendar/types.d.ts.map +1 -0
  90. package/dist/platform/calendar/types.js +21 -0
  91. package/dist/platform/companion/companion-chat-attachments.d.ts +29 -0
  92. package/dist/platform/companion/companion-chat-attachments.d.ts.map +1 -0
  93. package/dist/platform/companion/companion-chat-attachments.js +121 -0
  94. package/dist/platform/companion/companion-chat-branching.d.ts +66 -0
  95. package/dist/platform/companion/companion-chat-branching.d.ts.map +1 -0
  96. package/dist/platform/companion/companion-chat-branching.js +142 -0
  97. package/dist/platform/companion/companion-chat-broker-bridge.d.ts +40 -0
  98. package/dist/platform/companion/companion-chat-broker-bridge.d.ts.map +1 -0
  99. package/dist/platform/companion/companion-chat-broker-bridge.js +14 -0
  100. package/dist/platform/companion/companion-chat-broker-sync.d.ts +38 -0
  101. package/dist/platform/companion/companion-chat-broker-sync.d.ts.map +1 -0
  102. package/dist/platform/companion/companion-chat-broker-sync.js +80 -0
  103. package/dist/platform/companion/companion-chat-gc.d.ts +63 -0
  104. package/dist/platform/companion/companion-chat-gc.d.ts.map +1 -0
  105. package/dist/platform/companion/companion-chat-gc.js +38 -0
  106. package/dist/platform/companion/companion-chat-manager.d.ts +91 -23
  107. package/dist/platform/companion/companion-chat-manager.d.ts.map +1 -1
  108. package/dist/platform/companion/companion-chat-manager.js +195 -223
  109. package/dist/platform/companion/companion-chat-persistence.d.ts +9 -1
  110. package/dist/platform/companion/companion-chat-persistence.d.ts.map +1 -1
  111. package/dist/platform/companion/companion-chat-persistence.js +10 -2
  112. package/dist/platform/companion/companion-chat-routes.d.ts +2 -1
  113. package/dist/platform/companion/companion-chat-routes.d.ts.map +1 -1
  114. package/dist/platform/companion/companion-chat-routes.js +113 -4
  115. package/dist/platform/companion/companion-chat-turn-execution.d.ts +61 -0
  116. package/dist/platform/companion/companion-chat-turn-execution.d.ts.map +1 -0
  117. package/dist/platform/companion/companion-chat-turn-execution.js +107 -0
  118. package/dist/platform/companion/companion-chat-types.d.ts +67 -0
  119. package/dist/platform/companion/companion-chat-types.d.ts.map +1 -1
  120. package/dist/platform/config/credential-status.d.ts +28 -0
  121. package/dist/platform/config/credential-status.d.ts.map +1 -0
  122. package/dist/platform/config/credential-status.js +75 -0
  123. package/dist/platform/config/index.d.ts +25 -0
  124. package/dist/platform/config/index.d.ts.map +1 -1
  125. package/dist/platform/config/index.js +18 -0
  126. package/dist/platform/config/manager.d.ts +9 -0
  127. package/dist/platform/config/manager.d.ts.map +1 -1
  128. package/dist/platform/config/manager.js +21 -2
  129. package/dist/platform/config/migrations.d.ts +48 -0
  130. package/dist/platform/config/migrations.d.ts.map +1 -0
  131. package/dist/platform/config/migrations.js +54 -0
  132. package/dist/platform/config/schema-domain-core.d.ts +10 -1
  133. package/dist/platform/config/schema-domain-core.d.ts.map +1 -1
  134. package/dist/platform/config/schema-domain-core.js +46 -3
  135. package/dist/platform/config/schema-domain-runtime.d.ts +8 -0
  136. package/dist/platform/config/schema-domain-runtime.d.ts.map +1 -1
  137. package/dist/platform/config/schema-domain-runtime.js +32 -0
  138. package/dist/platform/config/schema-types.d.ts +21 -7
  139. package/dist/platform/config/schema-types.d.ts.map +1 -1
  140. package/dist/platform/config/schema.d.ts.map +1 -1
  141. package/dist/platform/config/schema.js +2 -0
  142. package/dist/platform/control-plane/approval-broker.d.ts +11 -0
  143. package/dist/platform/control-plane/approval-broker.d.ts.map +1 -1
  144. package/dist/platform/control-plane/approval-broker.js +17 -1
  145. package/dist/platform/control-plane/approval-hunk-apply.d.ts +77 -0
  146. package/dist/platform/control-plane/approval-hunk-apply.d.ts.map +1 -0
  147. package/dist/platform/control-plane/approval-hunk-apply.js +80 -0
  148. package/dist/platform/control-plane/gateway-disabled-response.d.ts +20 -0
  149. package/dist/platform/control-plane/gateway-disabled-response.d.ts.map +1 -0
  150. package/dist/platform/control-plane/gateway-disabled-response.js +24 -0
  151. package/dist/platform/control-plane/gateway-scope-enforcement.d.ts +68 -0
  152. package/dist/platform/control-plane/gateway-scope-enforcement.d.ts.map +1 -0
  153. package/dist/platform/control-plane/gateway-scope-enforcement.js +91 -0
  154. package/dist/platform/control-plane/gateway-utils.d.ts +17 -0
  155. package/dist/platform/control-plane/gateway-utils.d.ts.map +1 -1
  156. package/dist/platform/control-plane/gateway-utils.js +30 -0
  157. package/dist/platform/control-plane/gateway.d.ts +12 -2
  158. package/dist/platform/control-plane/gateway.d.ts.map +1 -1
  159. package/dist/platform/control-plane/gateway.js +27 -31
  160. package/dist/platform/control-plane/index.d.ts +8 -1
  161. package/dist/platform/control-plane/index.d.ts.map +1 -1
  162. package/dist/platform/control-plane/index.js +8 -0
  163. package/dist/platform/control-plane/invoke-input-validation.d.ts +56 -0
  164. package/dist/platform/control-plane/invoke-input-validation.d.ts.map +1 -0
  165. package/dist/platform/control-plane/invoke-input-validation.js +163 -0
  166. package/dist/platform/control-plane/method-catalog-admin.d.ts.map +1 -1
  167. package/dist/platform/control-plane/method-catalog-admin.js +12 -1
  168. package/dist/platform/control-plane/method-catalog-calendar.d.ts +16 -0
  169. package/dist/platform/control-plane/method-catalog-calendar.d.ts.map +1 -1
  170. package/dist/platform/control-plane/method-catalog-calendar.js +21 -0
  171. package/dist/platform/control-plane/method-catalog-channels.d.ts.map +1 -1
  172. package/dist/platform/control-plane/method-catalog-channels.js +32 -3
  173. package/dist/platform/control-plane/method-catalog-control-automation.d.ts.map +1 -1
  174. package/dist/platform/control-plane/method-catalog-control-automation.js +19 -34
  175. package/dist/platform/control-plane/method-catalog-control-companion.d.ts +15 -0
  176. package/dist/platform/control-plane/method-catalog-control-companion.d.ts.map +1 -0
  177. package/dist/platform/control-plane/method-catalog-control-companion.js +176 -0
  178. package/dist/platform/control-plane/method-catalog-control-core.d.ts.map +1 -1
  179. package/dist/platform/control-plane/method-catalog-control-core.js +104 -122
  180. package/dist/platform/control-plane/method-catalog-control.d.ts.map +1 -1
  181. package/dist/platform/control-plane/method-catalog-control.js +4 -0
  182. package/dist/platform/control-plane/method-catalog-email.d.ts +17 -0
  183. package/dist/platform/control-plane/method-catalog-email.d.ts.map +1 -1
  184. package/dist/platform/control-plane/method-catalog-email.js +21 -0
  185. package/dist/platform/control-plane/method-catalog-events.d.ts +28 -0
  186. package/dist/platform/control-plane/method-catalog-events.d.ts.map +1 -1
  187. package/dist/platform/control-plane/method-catalog-events.js +74 -1
  188. package/dist/platform/control-plane/method-catalog-fleet.d.ts +24 -0
  189. package/dist/platform/control-plane/method-catalog-fleet.d.ts.map +1 -0
  190. package/dist/platform/control-plane/method-catalog-fleet.js +65 -0
  191. package/dist/platform/control-plane/method-catalog-push.d.ts +30 -0
  192. package/dist/platform/control-plane/method-catalog-push.d.ts.map +1 -0
  193. package/dist/platform/control-plane/method-catalog-push.js +80 -0
  194. package/dist/platform/control-plane/method-catalog-route-reconcile.d.ts +84 -0
  195. package/dist/platform/control-plane/method-catalog-route-reconcile.d.ts.map +1 -0
  196. package/dist/platform/control-plane/method-catalog-route-reconcile.js +103 -0
  197. package/dist/platform/control-plane/method-catalog-runtime.d.ts.map +1 -1
  198. package/dist/platform/control-plane/method-catalog-runtime.js +83 -1
  199. package/dist/platform/control-plane/method-catalog-shared.d.ts +29 -0
  200. package/dist/platform/control-plane/method-catalog-shared.d.ts.map +1 -1
  201. package/dist/platform/control-plane/method-catalog.d.ts +9 -0
  202. package/dist/platform/control-plane/method-catalog.d.ts.map +1 -1
  203. package/dist/platform/control-plane/method-catalog.js +34 -3
  204. package/dist/platform/control-plane/operator-contract-schemas-admin.d.ts +8 -0
  205. package/dist/platform/control-plane/operator-contract-schemas-admin.d.ts.map +1 -1
  206. package/dist/platform/control-plane/operator-contract-schemas-admin.js +22 -1
  207. package/dist/platform/control-plane/operator-contract-schemas-fleet.d.ts +18 -0
  208. package/dist/platform/control-plane/operator-contract-schemas-fleet.d.ts.map +1 -0
  209. package/dist/platform/control-plane/operator-contract-schemas-fleet.js +182 -0
  210. package/dist/platform/control-plane/operator-contract-schemas-permissions.d.ts.map +1 -1
  211. package/dist/platform/control-plane/operator-contract-schemas-permissions.js +5 -0
  212. package/dist/platform/control-plane/operator-contract-schemas-runtime.d.ts +37 -0
  213. package/dist/platform/control-plane/operator-contract-schemas-runtime.d.ts.map +1 -1
  214. package/dist/platform/control-plane/operator-contract-schemas-runtime.js +100 -3
  215. package/dist/platform/control-plane/operator-contract-schemas.d.ts +1 -0
  216. package/dist/platform/control-plane/operator-contract-schemas.d.ts.map +1 -1
  217. package/dist/platform/control-plane/operator-contract-schemas.js +1 -0
  218. package/dist/platform/control-plane/operator-contract.d.ts.map +1 -1
  219. package/dist/platform/control-plane/operator-contract.js +8 -0
  220. package/dist/platform/control-plane/routes/checkpoints.d.ts +39 -0
  221. package/dist/platform/control-plane/routes/checkpoints.d.ts.map +1 -0
  222. package/dist/platform/control-plane/routes/checkpoints.js +166 -0
  223. package/dist/platform/control-plane/routes/fleet.d.ts +53 -0
  224. package/dist/platform/control-plane/routes/fleet.d.ts.map +1 -0
  225. package/dist/platform/control-plane/routes/fleet.js +153 -0
  226. package/dist/platform/control-plane/routes/gateway-verb-error.d.ts +30 -0
  227. package/dist/platform/control-plane/routes/gateway-verb-error.d.ts.map +1 -0
  228. package/dist/platform/control-plane/routes/gateway-verb-error.js +36 -0
  229. package/dist/platform/control-plane/routes/index.d.ts +0 -6
  230. package/dist/platform/control-plane/routes/index.d.ts.map +1 -1
  231. package/dist/platform/control-plane/routes/index.js +5 -5
  232. package/dist/platform/control-plane/routes/invocation-params.d.ts +23 -0
  233. package/dist/platform/control-plane/routes/invocation-params.d.ts.map +1 -0
  234. package/dist/platform/control-plane/routes/invocation-params.js +9 -0
  235. package/dist/platform/control-plane/routes/push.d.ts +26 -0
  236. package/dist/platform/control-plane/routes/push.d.ts.map +1 -0
  237. package/dist/platform/control-plane/routes/push.js +104 -0
  238. package/dist/platform/control-plane/routes/register-gateway-verb-groups.d.ts +31 -0
  239. package/dist/platform/control-plane/routes/register-gateway-verb-groups.d.ts.map +1 -0
  240. package/dist/platform/control-plane/routes/register-gateway-verb-groups.js +16 -0
  241. package/dist/platform/control-plane/routes/register-w3-s2.d.ts +26 -0
  242. package/dist/platform/control-plane/routes/register-w3-s2.d.ts.map +1 -0
  243. package/dist/platform/control-plane/routes/register-w3-s2.js +8 -0
  244. package/dist/platform/control-plane/routes/session-search.d.ts +37 -0
  245. package/dist/platform/control-plane/routes/session-search.d.ts.map +1 -0
  246. package/dist/platform/control-plane/routes/session-search.js +113 -0
  247. package/dist/platform/control-plane/session-broker-gc.d.ts +16 -0
  248. package/dist/platform/control-plane/session-broker-gc.d.ts.map +1 -1
  249. package/dist/platform/control-plane/session-broker-gc.js +23 -6
  250. package/dist/platform/control-plane/session-broker-helpers.d.ts +3 -3
  251. package/dist/platform/control-plane/session-broker-helpers.d.ts.map +1 -1
  252. package/dist/platform/control-plane/session-broker-inputs.d.ts +18 -0
  253. package/dist/platform/control-plane/session-broker-inputs.d.ts.map +1 -1
  254. package/dist/platform/control-plane/session-broker-inputs.js +34 -0
  255. package/dist/platform/control-plane/session-broker-sessions.d.ts +102 -3
  256. package/dist/platform/control-plane/session-broker-sessions.d.ts.map +1 -1
  257. package/dist/platform/control-plane/session-broker-sessions.js +179 -5
  258. package/dist/platform/control-plane/session-broker-state.d.ts +20 -1
  259. package/dist/platform/control-plane/session-broker-state.d.ts.map +1 -1
  260. package/dist/platform/control-plane/session-broker-state.js +67 -5
  261. package/dist/platform/control-plane/session-broker.d.ts +51 -38
  262. package/dist/platform/control-plane/session-broker.d.ts.map +1 -1
  263. package/dist/platform/control-plane/session-broker.js +183 -75
  264. package/dist/platform/control-plane/session-store-importer.d.ts +57 -0
  265. package/dist/platform/control-plane/session-store-importer.d.ts.map +1 -0
  266. package/dist/platform/control-plane/session-store-importer.js +227 -0
  267. package/dist/platform/control-plane/session-types.d.ts +142 -7
  268. package/dist/platform/control-plane/session-types.d.ts.map +1 -1
  269. package/dist/platform/core/execution-plan.d.ts +43 -1
  270. package/dist/platform/core/execution-plan.d.ts.map +1 -1
  271. package/dist/platform/core/execution-plan.js +46 -10
  272. package/dist/platform/core/index.d.ts +1 -0
  273. package/dist/platform/core/index.d.ts.map +1 -1
  274. package/dist/platform/core/index.js +1 -0
  275. package/dist/platform/core/orchestrator-runtime.d.ts +23 -3
  276. package/dist/platform/core/orchestrator-runtime.d.ts.map +1 -1
  277. package/dist/platform/core/orchestrator-tool-runtime.d.ts +7 -0
  278. package/dist/platform/core/orchestrator-tool-runtime.d.ts.map +1 -1
  279. package/dist/platform/core/orchestrator-tool-runtime.js +10 -0
  280. package/dist/platform/core/orchestrator-turn-loop.d.ts +13 -6
  281. package/dist/platform/core/orchestrator-turn-loop.d.ts.map +1 -1
  282. package/dist/platform/core/orchestrator-turn-loop.js +29 -22
  283. package/dist/platform/core/orchestrator.d.ts +16 -10
  284. package/dist/platform/core/orchestrator.d.ts.map +1 -1
  285. package/dist/platform/core/orchestrator.js +23 -8
  286. package/dist/platform/core/plan-decomposition.d.ts +196 -0
  287. package/dist/platform/core/plan-decomposition.d.ts.map +1 -0
  288. package/dist/platform/core/plan-decomposition.js +417 -0
  289. package/dist/platform/core/plan-proposal.d.ts +39 -0
  290. package/dist/platform/core/plan-proposal.d.ts.map +1 -1
  291. package/dist/platform/core/wrfc-routing.d.ts +1 -0
  292. package/dist/platform/core/wrfc-routing.d.ts.map +1 -1
  293. package/dist/platform/core/wrfc-routing.js +51 -1
  294. package/dist/platform/daemon/boot.d.ts +69 -0
  295. package/dist/platform/daemon/boot.d.ts.map +1 -0
  296. package/dist/platform/daemon/boot.js +61 -0
  297. package/dist/platform/daemon/cli.js +2 -1
  298. package/dist/platform/daemon/control-plane.d.ts.map +1 -1
  299. package/dist/platform/daemon/control-plane.js +50 -1
  300. package/dist/platform/daemon/facade-composition.d.ts.map +1 -1
  301. package/dist/platform/daemon/facade-composition.js +6 -0
  302. package/dist/platform/daemon/facade.d.ts +15 -6
  303. package/dist/platform/daemon/facade.d.ts.map +1 -1
  304. package/dist/platform/daemon/facade.js +48 -43
  305. package/dist/platform/daemon/http/router-route-contexts.d.ts +1 -0
  306. package/dist/platform/daemon/http/router-route-contexts.d.ts.map +1 -1
  307. package/dist/platform/daemon/http/router-route-contexts.js +1 -0
  308. package/dist/platform/daemon/http/router-session-broker-adapter.d.ts +13 -0
  309. package/dist/platform/daemon/http/router-session-broker-adapter.d.ts.map +1 -0
  310. package/dist/platform/daemon/http/router-session-broker-adapter.js +27 -0
  311. package/dist/platform/daemon/http/router.d.ts +2 -1
  312. package/dist/platform/daemon/http/router.d.ts.map +1 -1
  313. package/dist/platform/daemon/http/router.js +42 -40
  314. package/dist/platform/daemon/http/runtime-route-types.d.ts +42 -4
  315. package/dist/platform/daemon/http/runtime-route-types.d.ts.map +1 -1
  316. package/dist/platform/daemon/http/webui-serving.d.ts +68 -0
  317. package/dist/platform/daemon/http/webui-serving.d.ts.map +1 -0
  318. package/dist/platform/daemon/http/webui-serving.js +230 -0
  319. package/dist/platform/daemon/index.d.ts +2 -0
  320. package/dist/platform/daemon/index.d.ts.map +1 -1
  321. package/dist/platform/daemon/index.js +1 -0
  322. package/dist/platform/daemon/service-manager.d.ts +16 -0
  323. package/dist/platform/daemon/service-manager.d.ts.map +1 -1
  324. package/dist/platform/daemon/service-manager.js +79 -15
  325. package/dist/platform/intelligence/tree-sitter/service.d.ts.map +1 -1
  326. package/dist/platform/intelligence/tree-sitter/service.js +16 -2
  327. package/dist/platform/knowledge/browser-history/readers.d.ts.map +1 -1
  328. package/dist/platform/knowledge/browser-history/readers.js +15 -5
  329. package/dist/platform/knowledge/knowledge-api.d.ts +1 -1
  330. package/dist/platform/knowledge/project-planning/service.d.ts +14 -1
  331. package/dist/platform/knowledge/project-planning/service.d.ts.map +1 -1
  332. package/dist/platform/knowledge/project-planning/service.js +77 -0
  333. package/dist/platform/knowledge/project-planning/types.d.ts +32 -0
  334. package/dist/platform/knowledge/project-planning/types.d.ts.map +1 -1
  335. package/dist/platform/orchestration/bookkeeping.d.ts +12 -0
  336. package/dist/platform/orchestration/bookkeeping.d.ts.map +1 -0
  337. package/dist/platform/orchestration/bookkeeping.js +91 -0
  338. package/dist/platform/orchestration/budget.d.ts +2 -2
  339. package/dist/platform/orchestration/cancellation.d.ts +2 -2
  340. package/dist/platform/orchestration/controller-compat.d.ts +16 -3
  341. package/dist/platform/orchestration/controller-compat.d.ts.map +1 -1
  342. package/dist/platform/orchestration/controller-compat.js +18 -4
  343. package/dist/platform/orchestration/dirty-guard.js +1 -1
  344. package/dist/platform/orchestration/engine.d.ts +26 -1
  345. package/dist/platform/orchestration/engine.d.ts.map +1 -1
  346. package/dist/platform/orchestration/engine.js +229 -25
  347. package/dist/platform/orchestration/index.d.ts +6 -4
  348. package/dist/platform/orchestration/index.d.ts.map +1 -1
  349. package/dist/platform/orchestration/index.js +3 -2
  350. package/dist/platform/orchestration/persistence.d.ts.map +1 -1
  351. package/dist/platform/orchestration/persistence.js +6 -3
  352. package/dist/platform/orchestration/phase-runner.d.ts +33 -6
  353. package/dist/platform/orchestration/phase-runner.d.ts.map +1 -1
  354. package/dist/platform/orchestration/phase-runner.js +98 -25
  355. package/dist/platform/orchestration/proposal-workstream.d.ts +56 -0
  356. package/dist/platform/orchestration/proposal-workstream.d.ts.map +1 -0
  357. package/dist/platform/orchestration/proposal-workstream.js +76 -0
  358. package/dist/platform/orchestration/scheduler.d.ts +20 -1
  359. package/dist/platform/orchestration/scheduler.d.ts.map +1 -1
  360. package/dist/platform/orchestration/scheduler.js +16 -0
  361. package/dist/platform/orchestration/types.d.ts +289 -4
  362. package/dist/platform/orchestration/types.d.ts.map +1 -1
  363. package/dist/platform/orchestration/types.js +32 -0
  364. package/dist/platform/orchestration/worktree-isolation.d.ts +33 -0
  365. package/dist/platform/orchestration/worktree-isolation.d.ts.map +1 -0
  366. package/dist/platform/orchestration/worktree-isolation.js +248 -0
  367. package/dist/platform/presentation/glyphs.d.ts +91 -0
  368. package/dist/platform/presentation/glyphs.d.ts.map +1 -0
  369. package/dist/platform/presentation/glyphs.js +93 -0
  370. package/dist/platform/presentation/index.d.ts +28 -0
  371. package/dist/platform/presentation/index.d.ts.map +1 -0
  372. package/dist/platform/presentation/index.js +27 -0
  373. package/dist/platform/presentation/thinking-phrases.d.ts +12 -0
  374. package/dist/platform/presentation/thinking-phrases.d.ts.map +1 -0
  375. package/dist/platform/presentation/thinking-phrases.js +32 -0
  376. package/dist/platform/presentation/tones.d.ts +121 -0
  377. package/dist/platform/presentation/tones.d.ts.map +1 -0
  378. package/dist/platform/presentation/tones.js +145 -0
  379. package/dist/platform/presentation/waiting-wording.d.ts +54 -0
  380. package/dist/platform/presentation/waiting-wording.d.ts.map +1 -0
  381. package/dist/platform/presentation/waiting-wording.js +51 -0
  382. package/dist/platform/providers/runtime-snapshot.d.ts.map +1 -1
  383. package/dist/platform/providers/runtime-snapshot.js +12 -2
  384. package/dist/platform/push/delivery.d.ts +48 -0
  385. package/dist/platform/push/delivery.d.ts.map +1 -0
  386. package/dist/platform/push/delivery.js +117 -0
  387. package/dist/platform/push/encryption.d.ts +41 -0
  388. package/dist/platform/push/encryption.d.ts.map +1 -0
  389. package/dist/platform/push/encryption.js +82 -0
  390. package/dist/platform/push/index.d.ts +17 -0
  391. package/dist/platform/push/index.d.ts.map +1 -0
  392. package/dist/platform/push/index.js +10 -0
  393. package/dist/platform/push/service.d.ts +75 -0
  394. package/dist/platform/push/service.d.ts.map +1 -0
  395. package/dist/platform/push/service.js +95 -0
  396. package/dist/platform/push/subscription-store.d.ts +50 -0
  397. package/dist/platform/push/subscription-store.d.ts.map +1 -0
  398. package/dist/platform/push/subscription-store.js +123 -0
  399. package/dist/platform/push/types.d.ts +68 -0
  400. package/dist/platform/push/types.d.ts.map +1 -0
  401. package/dist/platform/push/types.js +13 -0
  402. package/dist/platform/push/vapid.d.ts +54 -0
  403. package/dist/platform/push/vapid.d.ts.map +1 -0
  404. package/dist/platform/push/vapid.js +113 -0
  405. package/dist/platform/runtime/bootstrap-services.d.ts +62 -2
  406. package/dist/platform/runtime/bootstrap-services.d.ts.map +1 -1
  407. package/dist/platform/runtime/bootstrap-services.js +217 -50
  408. package/dist/platform/runtime/daemon-version-compat.d.ts +39 -0
  409. package/dist/platform/runtime/daemon-version-compat.d.ts.map +1 -0
  410. package/dist/platform/runtime/daemon-version-compat.js +75 -0
  411. package/dist/platform/runtime/detached-daemon-runtime.d.ts +26 -0
  412. package/dist/platform/runtime/detached-daemon-runtime.d.ts.map +1 -0
  413. package/dist/platform/runtime/detached-daemon-runtime.js +49 -0
  414. package/dist/platform/runtime/emitters/workflows.d.ts +1 -1
  415. package/dist/platform/runtime/emitters/workflows.d.ts.map +1 -1
  416. package/dist/platform/runtime/events/index.d.ts +13 -0
  417. package/dist/platform/runtime/events/index.d.ts.map +1 -1
  418. package/dist/platform/runtime/events/index.js +13 -0
  419. package/dist/platform/runtime/feature-flags/flags.d.ts.map +1 -1
  420. package/dist/platform/runtime/feature-flags/flags.js +39 -1
  421. package/dist/platform/runtime/fleet/adapters/agent.d.ts +2 -2
  422. package/dist/platform/runtime/fleet/adapters/agent.d.ts.map +1 -1
  423. package/dist/platform/runtime/fleet/adapters/agent.js +4 -4
  424. package/dist/platform/runtime/fleet/adapters/automation.d.ts +1 -1
  425. package/dist/platform/runtime/fleet/adapters/automation.js +1 -1
  426. package/dist/platform/runtime/fleet/adapters/code-index.d.ts +1 -1
  427. package/dist/platform/runtime/fleet/adapters/code-index.js +1 -1
  428. package/dist/platform/runtime/fleet/adapters/orchestration.d.ts +40 -18
  429. package/dist/platform/runtime/fleet/adapters/orchestration.d.ts.map +1 -1
  430. package/dist/platform/runtime/fleet/adapters/orchestration.js +138 -34
  431. package/dist/platform/runtime/fleet/adapters/schedule.d.ts +4 -4
  432. package/dist/platform/runtime/fleet/adapters/schedule.js +4 -4
  433. package/dist/platform/runtime/fleet/adapters/trigger.d.ts +3 -4
  434. package/dist/platform/runtime/fleet/adapters/trigger.d.ts.map +1 -1
  435. package/dist/platform/runtime/fleet/adapters/trigger.js +3 -4
  436. package/dist/platform/runtime/fleet/adapters/wrfc.d.ts +13 -0
  437. package/dist/platform/runtime/fleet/adapters/wrfc.d.ts.map +1 -1
  438. package/dist/platform/runtime/fleet/adapters/wrfc.js +49 -2
  439. package/dist/platform/runtime/fleet/registry.d.ts +7 -7
  440. package/dist/platform/runtime/fleet/registry.d.ts.map +1 -1
  441. package/dist/platform/runtime/fleet/registry.js +41 -7
  442. package/dist/platform/runtime/fleet/types.d.ts +9 -9
  443. package/dist/platform/runtime/fleet/types.d.ts.map +1 -1
  444. package/dist/platform/runtime/memory-spine/client.d.ts +127 -0
  445. package/dist/platform/runtime/memory-spine/client.d.ts.map +1 -0
  446. package/dist/platform/runtime/memory-spine/client.js +113 -0
  447. package/dist/platform/runtime/memory-spine/index.d.ts +11 -0
  448. package/dist/platform/runtime/memory-spine/index.d.ts.map +1 -0
  449. package/dist/platform/runtime/memory-spine/index.js +10 -0
  450. package/dist/platform/runtime/operator-client.d.ts +20 -2
  451. package/dist/platform/runtime/operator-client.d.ts.map +1 -1
  452. package/dist/platform/runtime/operator-client.js +11 -1
  453. package/dist/platform/runtime/provider-accounts/registry.d.ts.map +1 -1
  454. package/dist/platform/runtime/provider-accounts/registry.js +11 -1
  455. package/dist/platform/runtime/services.d.ts +11 -9
  456. package/dist/platform/runtime/services.d.ts.map +1 -1
  457. package/dist/platform/runtime/services.js +24 -9
  458. package/dist/platform/runtime/session-spine/client.d.ts +234 -0
  459. package/dist/platform/runtime/session-spine/client.d.ts.map +1 -0
  460. package/dist/platform/runtime/session-spine/client.js +449 -0
  461. package/dist/platform/runtime/session-spine/index.d.ts +12 -0
  462. package/dist/platform/runtime/session-spine/index.d.ts.map +1 -0
  463. package/dist/platform/runtime/session-spine/index.js +11 -0
  464. package/dist/platform/runtime/session-spine/union-cache.d.ts +225 -0
  465. package/dist/platform/runtime/session-spine/union-cache.d.ts.map +1 -0
  466. package/dist/platform/runtime/session-spine/union-cache.js +333 -0
  467. package/dist/platform/runtime/shell-command-ops.d.ts +3 -1
  468. package/dist/platform/runtime/shell-command-ops.d.ts.map +1 -1
  469. package/dist/platform/runtime/transports/daemon-http-client-validators.d.ts.map +1 -1
  470. package/dist/platform/runtime/transports/daemon-http-client-validators.js +22 -0
  471. package/dist/platform/runtime/transports/daemon-http-client.d.ts.map +1 -1
  472. package/dist/platform/runtime/transports/daemon-http-client.js +25 -2
  473. package/dist/platform/runtime/transports/http-types.d.ts +9 -2
  474. package/dist/platform/runtime/transports/http-types.d.ts.map +1 -1
  475. package/dist/platform/state/canonical-memory.d.ts +95 -0
  476. package/dist/platform/state/canonical-memory.d.ts.map +1 -0
  477. package/dist/platform/state/canonical-memory.js +155 -0
  478. package/dist/platform/state/code-index-chunking.js +1 -1
  479. package/dist/platform/state/code-index-db.d.ts +1 -1
  480. package/dist/platform/state/code-index-reindex.d.ts +73 -0
  481. package/dist/platform/state/code-index-reindex.d.ts.map +1 -0
  482. package/dist/platform/state/code-index-reindex.js +156 -0
  483. package/dist/platform/state/code-index-store.d.ts.map +1 -1
  484. package/dist/platform/state/code-index-store.js +11 -3
  485. package/dist/platform/state/index.d.ts +8 -0
  486. package/dist/platform/state/index.d.ts.map +1 -1
  487. package/dist/platform/state/index.js +4 -0
  488. package/dist/platform/state/memory-recall-contract.d.ts +118 -0
  489. package/dist/platform/state/memory-recall-contract.d.ts.map +1 -0
  490. package/dist/platform/state/memory-recall-contract.js +170 -0
  491. package/dist/platform/state/memory-registry.d.ts +8 -0
  492. package/dist/platform/state/memory-registry.d.ts.map +1 -1
  493. package/dist/platform/state/memory-registry.js +10 -0
  494. package/dist/platform/state/memory-store.d.ts +2 -0
  495. package/dist/platform/state/memory-store.d.ts.map +1 -1
  496. package/dist/platform/state/memory-store.js +4 -0
  497. package/dist/platform/state/memory-vector-store.d.ts.map +1 -1
  498. package/dist/platform/state/memory-vector-store.js +14 -3
  499. package/dist/platform/state/sqlite-store.d.ts +2 -0
  500. package/dist/platform/state/sqlite-store.d.ts.map +1 -1
  501. package/dist/platform/state/sqlite-store.js +4 -0
  502. package/dist/platform/state/sqlite-vec-loader.d.ts +1 -1
  503. package/dist/platform/state/sqlite-vec-loader.js +1 -1
  504. package/dist/platform/state/vibe-projection.d.ts +67 -0
  505. package/dist/platform/state/vibe-projection.d.ts.map +1 -0
  506. package/dist/platform/state/vibe-projection.js +115 -0
  507. package/dist/platform/tools/agent/index.d.ts.map +1 -1
  508. package/dist/platform/tools/agent/index.js +8 -0
  509. package/dist/platform/tools/agent/manager.d.ts +22 -10
  510. package/dist/platform/tools/agent/manager.d.ts.map +1 -1
  511. package/dist/platform/tools/agent/manager.js +13 -7
  512. package/dist/platform/tools/agent/schema.d.ts +26 -0
  513. package/dist/platform/tools/agent/schema.d.ts.map +1 -1
  514. package/dist/platform/tools/agent/schema.js +2 -2
  515. package/dist/platform/tools/agent/wrfc-batch-policy.d.ts +13 -0
  516. package/dist/platform/tools/agent/wrfc-batch-policy.d.ts.map +1 -1
  517. package/dist/platform/tools/agent/wrfc-batch-policy.js +60 -0
  518. package/dist/platform/tools/exec/runtime.d.ts +10 -0
  519. package/dist/platform/tools/exec/runtime.d.ts.map +1 -1
  520. package/dist/platform/tools/exec/runtime.js +27 -10
  521. package/dist/platform/tools/exec/schema.d.ts +2 -2
  522. package/dist/platform/tools/exec/schema.d.ts.map +1 -1
  523. package/dist/platform/tools/exec/schema.js +2 -1
  524. package/dist/platform/tools/fetch/runtime.d.ts +1 -1
  525. package/dist/platform/tools/index.d.ts +2 -0
  526. package/dist/platform/tools/index.d.ts.map +1 -1
  527. package/dist/platform/tools/index.js +2 -0
  528. package/dist/platform/tools/registry.d.ts +1 -1
  529. package/dist/platform/tools/registry.js +1 -1
  530. package/dist/platform/tools/state/index.d.ts +9 -0
  531. package/dist/platform/tools/state/index.d.ts.map +1 -1
  532. package/dist/platform/tools/state/index.js +60 -3
  533. package/dist/platform/types/foundation-contract.d.ts +1 -1
  534. package/dist/platform/types/foundation-contract.d.ts.map +1 -1
  535. package/dist/platform/types/index.d.ts +1 -1
  536. package/dist/platform/types/index.d.ts.map +1 -1
  537. package/dist/platform/types/tools.d.ts +1 -1
  538. package/dist/platform/utils/request-body.d.ts.map +1 -1
  539. package/dist/platform/utils/request-body.js +50 -5
  540. package/dist/platform/version.js +1 -1
  541. package/package.json +25 -9
  542. package/dist/platform/control-plane/routes/automation.d.ts +0 -3
  543. package/dist/platform/control-plane/routes/automation.d.ts.map +0 -1
  544. package/dist/platform/control-plane/routes/automation.js +0 -63
  545. package/dist/platform/control-plane/routes/context.d.ts +0 -2
  546. package/dist/platform/control-plane/routes/context.d.ts.map +0 -1
  547. package/dist/platform/control-plane/routes/context.js +0 -1
  548. package/dist/platform/control-plane/routes/operator.d.ts +0 -8
  549. package/dist/platform/control-plane/routes/operator.d.ts.map +0 -1
  550. package/dist/platform/control-plane/routes/operator.js +0 -415
  551. package/dist/platform/control-plane/routes/remote.d.ts +0 -3
  552. package/dist/platform/control-plane/routes/remote.d.ts.map +0 -1
  553. package/dist/platform/control-plane/routes/remote.js +0 -35
  554. package/dist/platform/control-plane/routes/sessions.d.ts +0 -3
  555. package/dist/platform/control-plane/routes/sessions.d.ts.map +0 -1
  556. package/dist/platform/control-plane/routes/sessions.js +0 -43
  557. package/dist/platform/control-plane/routes/tasks.d.ts +0 -3
  558. package/dist/platform/control-plane/routes/tasks.d.ts.map +0 -1
  559. package/dist/platform/control-plane/routes/tasks.js +0 -22
@@ -2,6 +2,7 @@ import { logger } from '../utils/logger.js';
2
2
  import { jsonErrorResponse } from './http/error-response.js';
3
3
  import { summarizeError } from '../utils/error-display.js';
4
4
  import { AgentManager } from '../tools/agent/index.js';
5
+ import { discoverLegacySessionSources, importLegacySessionStores } from '../control-plane/index.js';
5
6
  import {} from '../runtime/remote/index.js';
6
7
  import { isSurfaceDeliveryEnabled } from './surface-policy.js';
7
8
  import { AgentTaskAdapter } from '../runtime/tasks/adapters/agent-adapter.js';
@@ -13,13 +14,10 @@ import { readAutomationReasoningEffort, readAutomationWakeMode, readExternalCont
13
14
  import { requirePortAvailable } from './port-check.js';
14
15
  import { resolveHostBinding } from './host-resolver.js';
15
16
  import { createHostModeRestartWatcher } from './host-mode-watcher.js';
16
- // ---------------------------------------------------------------------------
17
- // DaemonServer
18
- // ---------------------------------------------------------------------------
17
+ // --- DaemonServer ---
19
18
  /**
20
- * DaemonServer — HTTP task server, disabled by default.
21
- *
22
- * Enable via: danger.daemon = true in config.
19
+ * DaemonServer — HTTP task server. Enabled by default via `daemon.enabled`
20
+ * (loopback-bound), resolved via resolveDaemonEnabled.
23
21
  * All routes require Bearer token auth (set via enable()).
24
22
  * POST /task — submit a task; returns agentId.
25
23
  * GET /task/:id — returns agent status.
@@ -145,8 +143,7 @@ export class DaemonServer {
145
143
  handleApprovalAction: (approvalId, action, req) => this.handleApprovalAction(approvalId, action, req),
146
144
  tlsState: () => this.tlsState,
147
145
  swapManager: this.config.swapManager ?? null,
148
- // Resolve companion-chat defaults from the live ProviderRegistry so session
149
- // creation uses the current route, not a snapshot captured at startup.
146
+ // Resolve companion-chat defaults from the live ProviderRegistry (current route, not a startup snapshot).
150
147
  resolveDefaultProviderModel: () => {
151
148
  try {
152
149
  const current = resolved.runtimeServices.providerRegistry.getCurrentModel();
@@ -167,8 +164,7 @@ export class DaemonServer {
167
164
  this.httpRouter = collaborators.httpRouter;
168
165
  this.providerRuntime = collaborators.providerRuntime;
169
166
  this.builtinChannels = collaborators.builtinChannels;
170
- // Wire AgentTaskAdapter to the RuntimeEventBus so task records reach
171
- // terminal states when their backing agent finishes.
167
+ // Wire AgentTaskAdapter to the RuntimeEventBus so task records reach terminal states on agent finish.
172
168
  this.agentTaskAdapter = new AgentTaskAdapter(this.runtimeStore);
173
169
  this.agentTaskAdapterUnsub = this.agentTaskAdapter.attachRuntimeBus(this.runtimeBus);
174
170
  // Mark any tasks that were running at startup as aborted after daemon restart.
@@ -191,13 +187,13 @@ export class DaemonServer {
191
187
  return this.controlPlaneGateway.listRecentEvents(limit);
192
188
  }
193
189
  /**
194
- * Enable the daemon. Requires danger.daemon = true in config.
195
- * The provided token is used to authenticate all incoming requests.
196
- * Returns true if enabled, false if the config forbids it.
190
+ * Enable the daemon. Caller passes the resolved enable decision (from
191
+ * resolveDaemonEnabled). The token authenticates all requests. Returns false
192
+ * if the passed-in flag forbids it.
197
193
  */
198
194
  enable(dangerConfig, token) {
199
195
  if (!dangerConfig.daemon) {
200
- logger.info('DaemonServer.enable: danger.daemon is false — not enabling');
196
+ logger.info('DaemonServer.enable: daemon disabled by config (daemon.enabled=false) — not enabling');
201
197
  return false;
202
198
  }
203
199
  this.enabled = true;
@@ -205,12 +201,23 @@ export class DaemonServer {
205
201
  this.controlPlaneGateway.setServerState({ enabled: true, host: this.host, port: this.port });
206
202
  return true;
207
203
  }
204
+ /** Bound TCP port after {@link start} (resolves a `port: 0` request to the real port). */
205
+ get boundPort() {
206
+ const served = this.server?.port;
207
+ return typeof served === 'number' ? served : this.port;
208
+ }
209
+ /** The host the daemon is bound to. */
210
+ get boundHost() { return this.host; }
211
+ /** The daemon's shared approval broker — the SAME broker the HTTP approvals routes resolve through. Exposed so embedders and boot-factory proof tests can seed/inspect approvals (bridge an external UI, or prove per-hunk approve/deny over the live wire). */
212
+ get approvals() { return this.approvalBroker; }
213
+ /** The daemon's canonical single-writer memory registry — the SAME store the HTTP memory routes serve. Exposed so embedders and boot-factory proof tests can read back a wire write as a direct canonical-store read. */
214
+ get memory() { return this.runtimeServices.memoryRegistry; }
208
215
  /**
209
216
  * Start the daemon. Refuses to start if not explicitly enabled.
210
217
  */
211
218
  async start() {
212
219
  if (!this.enabled) {
213
- logger.info('Daemon mode is disabled. Enable via danger.daemon config.');
220
+ logger.info('Daemon mode is disabled (daemon.enabled=false). It is on by default.');
214
221
  return;
215
222
  }
216
223
  if (this.authToken === null) {
@@ -285,6 +292,14 @@ export class DaemonServer {
285
292
  },
286
293
  },
287
294
  });
295
+ // Boot precondition: fold legacy stores into the home store before the broker serves (idempotent).
296
+ await importLegacySessionStores({
297
+ homeStorePath: this.runtimeServices.shellPaths.resolveUserPath('control-plane', 'sessions.json'),
298
+ sources: discoverLegacySessionSources({
299
+ projectRoot: this.runtimeServices.shellPaths.workingDirectory,
300
+ companionSessionsDir: this.runtimeServices.shellPaths.resolveUserPath('companion-chat', 'sessions'), // injected home
301
+ }),
302
+ }).catch((error) => logger.warn('DaemonServer: legacy session import failed', { error: summarizeError(error) }));
288
303
  await Promise.all([
289
304
  this.sessionBroker.start(),
290
305
  this.approvalBroker.start(),
@@ -293,19 +308,18 @@ export class DaemonServer {
293
308
  this.distributedRuntime.start(),
294
309
  ]);
295
310
  await this.providerRuntime.startConfigured();
296
- // Load persisted companion sessions after providers are configured.
297
311
  await this.companionChatManager.init();
312
+ // Init the canonical memory store so the daemon is a live single-writer memory service on accept (memory.records.add would else throw "not initialized" on a cold store).
313
+ await this.runtimeServices.memoryStore.init();
298
314
  if (this.replyPoller === null) {
299
- // Poll every 2 s for surface replies that have resolved asynchronously.
300
- // The interval is intentionally short to keep companion response latency
301
- // below a perceptible threshold while still batching concurrent replies.
315
+ // Poll every 2 s for asynchronously-resolved surface replies; short interval
316
+ // keeps companion latency low while batching concurrent replies.
302
317
  this.replyPoller = setInterval(() => {
303
318
  void this.pollPendingSurfaceReplies().catch((error) => {
304
319
  logger.warn('DaemonServer: surface reply poll failed', { error: summarizeError(error) });
305
320
  });
306
321
  }, 2_000);
307
- // unref() prevents this timer from keeping the Node.js/Bun event loop
308
- // alive if all other async work has completed — same pattern as animInterval.
322
+ // unref() so this timer never keeps the event loop alive past shutdown.
309
323
  this.replyPoller.unref?.();
310
324
  }
311
325
  this.surfaceRegistry.syncConfiguredSurfaces();
@@ -387,16 +401,15 @@ export class DaemonServer {
387
401
  async stop() {
388
402
  if (this.server === null)
389
403
  return;
390
- // Tear down config watcher only on intentional stop, not mid-restart.
391
- // During a restart cycle (_restarting=true) the watcher must stay active so
392
- // config changes that arrive between stop() and the subsequent start() can be
393
- // captured by the dirty flag.
404
+ // Tear down config watcher only on intentional stop; during a restart cycle
405
+ // (_restarting) it must stay active so mid-restart changes hit the dirty flag.
394
406
  if (!this._restarting) {
395
407
  this._configWatchUnsub?.();
396
408
  this._configWatchUnsub = null;
397
409
  }
398
- // Synchronous pre-stop teardown
399
- this.watcherRegistry.stopWatcher('daemon-heartbeat', 'daemon-stopped');
410
+ // Synchronous pre-stop teardown. Only stop the heartbeat watcher when start() engaged it (registered solely behind `watchers.enabled`); stopWatcher() runs requireFeatureGate('watcher-framework') and THROWS when that gate is off, which would break a clean shutdown of a watchers-disabled daemon.
411
+ if (this.configManager.get('watchers.enabled'))
412
+ this.watcherRegistry.stopWatcher('daemon-heartbeat', 'daemon-stopped');
400
413
  if (this.replyPoller !== null) {
401
414
  clearInterval(this.replyPoller);
402
415
  this.replyPoller = null;
@@ -406,9 +419,8 @@ export class DaemonServer {
406
419
  this.approvalBrokerUnsubscribe = null;
407
420
  this.httpRouter.dispose();
408
421
  this.companionChatManager.dispose();
409
- // Stop services that expose async teardown. Note: sessionBroker, approvalBroker,
410
- // channelPolicy, and distributedRuntime expose start() only their lifecycle ends
411
- // when the server socket closes. We stop what we can in reverse start order.
422
+ // Stop services with async teardown in reverse start order (sessionBroker,
423
+ // approvalBroker, channelPolicy, distributedRuntime end when the socket closes).
412
424
  this.providerRuntime.stopAll();
413
425
  this.automationManager.stop();
414
426
  // Tear down the adapter bus subscription and session broker GC interval.
@@ -431,9 +443,8 @@ export class DaemonServer {
431
443
  return; // idempotent
432
444
  const restart = () => {
433
445
  if (this._restarting) {
434
- // A change arrived mid-restart — queue a second cycle via dirty flag.
435
- // Check _restarting BEFORE isRunning: stop() runs synchronously inside the
436
- // restart IIFE, so isRunning may be false even while a restart is in progress.
446
+ // Change arrived mid-restart — queue a second cycle (check _restarting
447
+ // before isRunning: stop() runs synchronously inside the restart IIFE).
437
448
  this._restartDirty = true;
438
449
  return;
439
450
  }
@@ -467,10 +478,8 @@ export class DaemonServer {
467
478
  }
468
479
  })();
469
480
  };
470
- // getIsRunning must also return true while a restart cycle is in progress
471
- // (_restarting=true) so that config changes arriving mid-restart reach the
472
- // dirty-flag path inside `restart`. When the server is intentionally stopped
473
- // (not mid-restart) isRunning and _restarting are both false.
481
+ // getIsRunning also returns true mid-restart (_restarting) so changes arriving
482
+ // then reach the dirty-flag path; both are false on an intentional stop.
474
483
  const watcher = createHostModeRestartWatcher({
475
484
  configManager: this.configManager,
476
485
  keys: ['controlPlane.hostMode', 'controlPlane.host', 'controlPlane.port'],
@@ -485,9 +494,7 @@ export class DaemonServer {
485
494
  get isRunning() {
486
495
  return this.server !== null;
487
496
  }
488
- // -------------------------------------------------------------------------
489
- // Auth
490
- // -------------------------------------------------------------------------
497
+ // --- Auth ---
491
498
  extractAuthToken(req) {
492
499
  return this.controlPlaneHelper.extractAuthToken(req);
493
500
  }
@@ -530,9 +537,7 @@ export class DaemonServer {
530
537
  async invokeGatewayMethodCall(input) {
531
538
  return await this.controlPlaneHelper.invokeGatewayMethodCall(input);
532
539
  }
533
- // -------------------------------------------------------------------------
534
- // Request handling
535
- // -------------------------------------------------------------------------
540
+ // --- Request handling ---
536
541
  async handleRequest(req) {
537
542
  return await this.httpRouter.handleRequest(req);
538
543
  }
@@ -27,6 +27,7 @@ export declare function buildChannelRouteContext(input: {
27
27
  export declare function buildSystemRouteContext(input: {
28
28
  readonly approvalBroker: ApprovalBroker;
29
29
  readonly configManager: ConfigManager;
30
+ readonly credentialStatus: DaemonSystemRouteContext['credentialStatus'];
30
31
  readonly integrationHelpers: IntegrationHelperService | null;
31
32
  readonly inspectInboundTls: (surface: 'controlPlane' | 'httpListener') => unknown;
32
33
  readonly inspectOutboundTls: () => unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"router-route-contexts.d.ts","sourceRoot":"","sources":["../../../../src/platform/daemon/http/router-route-contexts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAEjI,OAAO,KAAK,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC1F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2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,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,cAAc,EAAE,qBAAqB,CAAC;IAC/C,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,QAAQ,CAAC,aAAa,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,UAAU,GAAG,QAAQ,CAAC,CAAC;IAC7E,QAAQ,CAAC,YAAY,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,QAAQ,GAAG,IAAI,CAAC;IAC7D,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;CAC7C,GAAG,uBAAuB,CAwD1B;AAED,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,6BAA6B,GAAG,6BAA6B,CAEhH"}
@@ -42,6 +42,7 @@ export function buildSystemRouteContext(input) {
42
42
  return {
43
43
  approvalBroker: input.approvalBroker,
44
44
  configManager: input.configManager,
45
+ credentialStatus: input.credentialStatus,
45
46
  integrationHelpers: input.integrationHelpers,
46
47
  inspectInboundTls: input.inspectInboundTls,
47
48
  inspectOutboundTls: input.inspectOutboundTls,
@@ -0,0 +1,13 @@
1
+ /**
2
+ * router-session-broker-adapter.ts
3
+ *
4
+ * Adapts the real `SharedSessionBroker` to the narrow structural shape
5
+ * `createDaemonRuntimeRouteHandlers` (runtime-routes.ts) expects on its
6
+ * `sessionBroker` context field. Split out of router.ts (see CHANGELOG 1.0.0) to stay under
7
+ * the repo's grandfathered line-cap ceiling (see scripts/check-line-cap.ts) —
8
+ * this is a pure file-organization move, not a behavior change.
9
+ */
10
+ import type { SharedSessionBroker } from '../../control-plane/index.js';
11
+ import type { DaemonRuntimeRouteContext } from './runtime-route-types.js';
12
+ export declare function buildRouterSessionBrokerAdapter(sessionBroker: SharedSessionBroker): DaemonRuntimeRouteContext['sessionBroker'];
13
+ //# sourceMappingURL=router-session-broker-adapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"router-session-broker-adapter.d.ts","sourceRoot":"","sources":["../../../../src/platform/daemon/http/router-session-broker-adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAE1E,wBAAgB,+BAA+B,CAC7C,aAAa,EAAE,mBAAmB,GACjC,yBAAyB,CAAC,eAAe,CAAC,CAsC5C"}
@@ -0,0 +1,27 @@
1
+ export function buildRouterSessionBrokerAdapter(sessionBroker) {
2
+ return {
3
+ start: () => sessionBroker.start(),
4
+ submitMessage: (input) => sessionBroker.submitMessage(input),
5
+ steerMessage: (input) => sessionBroker.steerMessage(input),
6
+ followUpMessage: (input) => sessionBroker.followUpMessage(input),
7
+ bindAgent: async (sessionId, agentId) => {
8
+ await sessionBroker.bindAgent(sessionId, agentId);
9
+ },
10
+ createSession: (input) => sessionBroker.createSession(input),
11
+ register: (input) => sessionBroker.register(input),
12
+ getSession: (sessionId) => sessionBroker.getSession(sessionId),
13
+ getMessages: (sessionId, limit) => sessionBroker.getMessages(sessionId, limit),
14
+ getInputs: (sessionId, limit) => sessionBroker.getInputs(sessionId, limit),
15
+ getInputsSince: (sessionId, options) => sessionBroker.getInputsSince(sessionId, options),
16
+ markInputDelivered: (sessionId, inputId, options) => sessionBroker.markInputDelivered(sessionId, inputId, options),
17
+ closeSession: (sessionId) => sessionBroker.closeSession(sessionId),
18
+ reopenSession: (sessionId) => sessionBroker.reopenSession(sessionId),
19
+ detachParticipant: (sessionId, surfaceId) => sessionBroker.detachParticipant(sessionId, surfaceId),
20
+ deleteSession: (sessionId) => sessionBroker.deleteSession(sessionId),
21
+ cancelInput: (sessionId, inputId) => sessionBroker.cancelInput(sessionId, inputId),
22
+ completeAgent: async (sessionId, agentId, message, meta) => {
23
+ await sessionBroker.completeAgent(sessionId, agentId, message, meta);
24
+ },
25
+ appendCompanionMessage: (sessionId, input) => sessionBroker.appendCompanionMessage(sessionId, input),
26
+ };
27
+ }
@@ -130,7 +130,7 @@ interface DaemonHttpRouterContext {
130
130
  * Without this, the production router always passes undefined and the secrets
131
131
  * tier is permanently dead on live code paths.
132
132
  */
133
- readonly secretsManager?: Pick<import('../../config/secrets.js').SecretsManager, 'get' | 'set' | 'getGlobalHome'> | null | undefined;
133
+ readonly secretsManager?: Pick<import('../../config/secrets.js').SecretsManager, 'get' | 'set' | 'getGlobalHome' | 'list' | 'listDetailed'> | null | undefined;
134
134
  readonly trySpawnAgent: (input: Parameters<AgentManager['spawn']>[0], logLabel?: string, sessionId?: string) => import('../../tools/agent/index.js').AgentRecord | Response;
135
135
  }
136
136
  export declare class DaemonHttpRouter {
@@ -143,6 +143,7 @@ export declare class DaemonHttpRouter {
143
143
  dispose(): void;
144
144
  private getConfigValue;
145
145
  handleRequest(req: Request): Promise<Response>;
146
+ private dispatchAuthedRequest;
146
147
  /**
147
148
  * Dispatches routes that are exempt from the auth gate: login, remote-peer
148
149
  * handshake, webhooks, and the control-plane web UI. Extracted from
@@ -1 +1 @@
1
- {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../../../src/platform/daemon/http/router.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAExE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAEnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAIL,KAAK,iBAAiB,EAGvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAC7G,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEzE,OAAO,KAAK,EAAE,gBAAgB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b,QAAQ,GACR,UAAU,GACV,WAAW,GACX,UAAU,GACV,SAAS,GACT,aAAa,GACb,YAAY,GACZ,QAAQ,GACR,QAAgB,GACnB,QAAQ;YAWG,WAAW;YA4CX,mBAAmB;IAQ3B,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC;IAInD,oBAAoB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIrD,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIlD,oBAAoB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC;CAG5D"}
@@ -1,4 +1,5 @@
1
1
  import { isValidConfigKey } from '../../config/schema.js';
2
+ import { createCredentialStatusProvider } from '../../config/credential-status.js';
2
3
  import { buildOperatorSessionCookie, OPERATOR_SESSION_COOKIE_NAME } from '../../security/http-auth.js';
3
4
  import { normalizeAtSchedule, normalizeCronSchedule, normalizeEverySchedule, } from '../../automation/index.js';
4
5
  import { buildOperatorContract } from '../../control-plane/operator-contract.js';
@@ -14,6 +15,7 @@ import { createDaemonKnowledgeRouteHandlers } from './knowledge-routes.js';
14
15
  import { createDaemonMediaRouteHandlers } from './media-routes.js';
15
16
  import { createDaemonRemoteRouteHandlers, handleRemotePairRequest, handleRemotePairVerify, handleRemotePeerHeartbeat, handleRemotePeerWorkPull, handleRemotePeerWorkComplete, } from './remote-routes.js';
16
17
  import { createDaemonRuntimeRouteHandlers } from './runtime-routes.js';
18
+ import { buildRouterSessionBrokerAdapter } from './router-session-broker-adapter.js';
17
19
  import { snapshotMetrics } from '../../runtime/metrics.js';
18
20
  import { createDaemonControlRouteHandlers } from './control-routes.js';
19
21
  import { createDaemonIntegrationRouteHandlers } from './integration-routes.js';
@@ -34,6 +36,7 @@ import { HomeGraphRoutes } from './home-graph-routes.js';
34
36
  import { dispatchOpenAICompatibleRoutes } from './openai-compatible-routes.js';
35
37
  import { ProjectPlanningRoutes } from './project-planning-routes.js';
36
38
  import { parseDaemonJsonBody, parseDaemonJsonText, parseOptionalDaemonJsonBody, } from './router-request-body.js';
39
+ import { applyCorsHeaders, handleCorsPreflight, resolveWebuiServingPosture, serveWebuiBundle, } from './webui-serving.js';
37
40
  export class DaemonHttpRouter {
38
41
  context;
39
42
  telemetryApi;
@@ -59,29 +62,44 @@ export class DaemonHttpRouter {
59
62
  }
60
63
  async handleRequest(req) {
61
64
  return correlationCtx.run({ requestId: req.headers.get('x-request-id') ?? crypto.randomUUID() }, async () => {
62
- // Pre-auth routes: no auth check applied (login, remote-peer handshake,
63
- // webhooks, and control-plane web UI).
64
- const preAuth = await this.dispatchPreAuthRoutes(req);
65
- if (preAuth)
66
- return preAuth;
67
- if (!this.context.checkAuth(req)) {
68
- return jsonErrorResponse(new AppError('Authentication required', 'AUTH_REQUIRED', false, {
69
- category: 'authentication',
70
- source: 'runtime',
71
- guidance: 'Authenticate with the operator shared token or an authenticated user session before calling daemon APIs.',
72
- }), { status: 401 });
65
+ // Opt-in cross-origin + bundle-serving posture (both default off → no CORS,
66
+ // no bundle, daemon behaves exactly as before). CORS preflight is answered
67
+ // pre-auth (a browser OPTIONS carries no credentials; only allowlisted
68
+ // origins are granted, never a wildcard).
69
+ const serving = resolveWebuiServingPosture(this.context.configManager);
70
+ if (serving.cors.enabled && req.method === 'OPTIONS') {
71
+ return applyCorsHeaders(req, handleCorsPreflight(req, serving), serving);
73
72
  }
74
- const apiResponse = await this.dispatchApiRoutes(req);
75
- if (apiResponse)
76
- return apiResponse;
77
- const url = new URL(req.url);
78
- return jsonErrorResponse(new AppError(`Route not found: ${url.pathname}`, 'NOT_FOUND', false, {
79
- category: 'not_found',
80
- source: 'runtime',
81
- guidance: 'Check the daemon API path and version. New SDK-facing routes are published under /api/v1.',
82
- }), { status: 404 });
73
+ // Same-origin bundle serving is pre-auth: the built app is public and
74
+ // token-authenticates its own API calls; reserved API paths return null
75
+ // here (API precedence) and flow to the normal auth-gated dispatch below.
76
+ const asset = serving.serveBundle ? await serveWebuiBundle(req, serving) : null;
77
+ const response = asset ?? await this.dispatchAuthedRequest(req);
78
+ return serving.cors.enabled ? applyCorsHeaders(req, response, serving) : response;
83
79
  });
84
80
  }
81
+ async dispatchAuthedRequest(req) {
82
+ // Pre-auth routes: no auth check (login, remote-peer handshake, webhooks, control-plane web UI).
83
+ const preAuth = await this.dispatchPreAuthRoutes(req);
84
+ if (preAuth)
85
+ return preAuth;
86
+ if (!this.context.checkAuth(req)) {
87
+ return jsonErrorResponse(new AppError('Authentication required', 'AUTH_REQUIRED', false, {
88
+ category: 'authentication',
89
+ source: 'runtime',
90
+ guidance: 'Authenticate with the operator shared token or an authenticated user session before calling daemon APIs.',
91
+ }), { status: 401 });
92
+ }
93
+ const apiResponse = await this.dispatchApiRoutes(req);
94
+ if (apiResponse)
95
+ return apiResponse;
96
+ const url = new URL(req.url);
97
+ return jsonErrorResponse(new AppError(`Route not found: ${url.pathname}`, 'NOT_FOUND', false, {
98
+ category: 'not_found',
99
+ source: 'runtime',
100
+ guidance: 'Check the daemon API path and version. New SDK-facing routes are published under /api/v1.',
101
+ }), { status: 404 });
102
+ }
85
103
  /**
86
104
  * Dispatches routes that are exempt from the auth gate: login, remote-peer
87
105
  * handshake, webhooks, and the control-plane web UI. Extracted from
@@ -303,6 +321,9 @@ export class DaemonHttpRouter {
303
321
  ...buildSystemRouteContext({
304
322
  approvalBroker: this.context.approvalBroker,
305
323
  configManager: this.context.configManager,
324
+ credentialStatus: this.context.secretsManager
325
+ ? createCredentialStatusProvider(this.context.secretsManager)
326
+ : null,
306
327
  integrationHelpers: this.context.integrationHelpers,
307
328
  inspectInboundTls: (surface) => inspectInboundTls(this.context.configManager, surface),
308
329
  inspectOutboundTls: () => inspectOutboundTls(this.context.configManager),
@@ -323,26 +344,7 @@ export class DaemonHttpRouter {
323
344
  parseOptionalJsonBody: (request) => this.parseOptionalJsonBody(request),
324
345
  recordApiResponse: (request, path, response) => this.recordApiResponse(request, path, response),
325
346
  requireAdmin: (request) => this.context.requireAdmin(request),
326
- sessionBroker: {
327
- start: () => this.context.sessionBroker.start(),
328
- submitMessage: (input) => this.context.sessionBroker.submitMessage(input),
329
- steerMessage: (input) => this.context.sessionBroker.steerMessage(input),
330
- followUpMessage: (input) => this.context.sessionBroker.followUpMessage(input),
331
- bindAgent: async (sessionId, agentId) => {
332
- await this.context.sessionBroker.bindAgent(sessionId, agentId);
333
- },
334
- createSession: (input) => this.context.sessionBroker.createSession(input),
335
- getSession: (sessionId) => this.context.sessionBroker.getSession(sessionId),
336
- getMessages: (sessionId, limit) => this.context.sessionBroker.getMessages(sessionId, limit),
337
- getInputs: (sessionId, limit) => this.context.sessionBroker.getInputs(sessionId, limit),
338
- closeSession: (sessionId) => this.context.sessionBroker.closeSession(sessionId),
339
- reopenSession: (sessionId) => this.context.sessionBroker.reopenSession(sessionId),
340
- cancelInput: (sessionId, inputId) => this.context.sessionBroker.cancelInput(sessionId, inputId),
341
- completeAgent: async (sessionId, agentId, message, meta) => {
342
- await this.context.sessionBroker.completeAgent(sessionId, agentId, message, meta);
343
- },
344
- appendCompanionMessage: (sessionId, input) => this.context.sessionBroker.appendCompanionMessage(sessionId, input),
345
- },
347
+ sessionBroker: buildRouterSessionBrokerAdapter(this.context.sessionBroker),
346
348
  agentManager: {
347
349
  getStatus: (agentId) => this.context.agentManager.getStatus(agentId),
348
350
  cancel: (agentId) => this.context.agentManager.cancel(agentId),
@@ -1,4 +1,4 @@
1
- import type { DaemonRuntimeRouteHandlers } from '../../control-plane/routes/context.js';
1
+ import type { DaemonRuntimeRouteHandlers } from '@pellux/goodvibes-daemon-sdk';
2
2
  import type { DaemonRuntimeRouteContext as SdkDaemonRuntimeRouteContext, AutomationSurfaceKind, JsonBody } from '@pellux/goodvibes-daemon-sdk';
3
3
  import type { AutomationScheduleDefinition, CreateAutomationJobInput, UpdateAutomationJobInput } from '../../automation/index.js';
4
4
  import type { ExecutionIntent } from '../../runtime/execution-intents.js';
@@ -73,7 +73,7 @@ export interface DaemonRuntimeRouteContext extends Omit<SdkDaemonRuntimeRouteCon
73
73
  metadata?: Record<string, unknown> | undefined;
74
74
  routing?: SharedSessionRoutingIntent | undefined;
75
75
  }): Promise<{
76
- mode: 'continued-live' | 'spawn' | 'queued-follow-up' | 'rejected';
76
+ mode: 'continued-live' | 'spawn' | 'queued-follow-up' | 'queued-for-surface' | 'rejected';
77
77
  input: {
78
78
  id: string;
79
79
  routing?: SharedSessionRoutingIntent;
@@ -102,7 +102,7 @@ export interface DaemonRuntimeRouteContext extends Omit<SdkDaemonRuntimeRouteCon
102
102
  routing?: SharedSessionRoutingIntent | undefined;
103
103
  allowSpawnFallback?: boolean | undefined;
104
104
  }): Promise<{
105
- mode: 'continued-live' | 'spawn' | 'queued-follow-up' | 'rejected';
105
+ mode: 'continued-live' | 'spawn' | 'queued-follow-up' | 'queued-for-surface' | 'rejected';
106
106
  input: {
107
107
  id: string;
108
108
  state: string;
@@ -131,7 +131,7 @@ export interface DaemonRuntimeRouteContext extends Omit<SdkDaemonRuntimeRouteCon
131
131
  metadata?: Record<string, unknown> | undefined;
132
132
  routing?: SharedSessionRoutingIntent | undefined;
133
133
  }): Promise<{
134
- mode: 'continued-live' | 'spawn' | 'queued-follow-up' | 'rejected';
134
+ mode: 'continued-live' | 'spawn' | 'queued-follow-up' | 'queued-for-surface' | 'rejected';
135
135
  input: {
136
136
  id: string;
137
137
  state: string;
@@ -164,6 +164,30 @@ export interface DaemonRuntimeRouteContext extends Omit<SdkDaemonRuntimeRouteCon
164
164
  }): Promise<{
165
165
  id: string;
166
166
  }>;
167
+ register(input: {
168
+ sessionId: string;
169
+ kind?: string | undefined;
170
+ project?: string | undefined;
171
+ title?: string | undefined;
172
+ participant: {
173
+ surfaceKind: AutomationSurfaceKind;
174
+ surfaceId: string;
175
+ externalId?: string | undefined;
176
+ userId?: string | undefined;
177
+ displayName?: string | undefined;
178
+ routeId?: string | undefined;
179
+ lastSeenAt: number;
180
+ };
181
+ reopen?: boolean | undefined;
182
+ }): Promise<{
183
+ record: {
184
+ id: string;
185
+ };
186
+ reopened: boolean;
187
+ conflict?: {
188
+ readonly status: 'closed';
189
+ } | undefined;
190
+ }>;
167
191
  getSession(sessionId: string): {
168
192
  id: string;
169
193
  status: string;
@@ -172,12 +196,26 @@ export interface DaemonRuntimeRouteContext extends Omit<SdkDaemonRuntimeRouteCon
172
196
  } | null;
173
197
  getMessages(sessionId: string, limit: number): unknown[];
174
198
  getInputs(sessionId: string, limit: number): unknown[];
199
+ getInputsSince(sessionId: string, options: {
200
+ state?: string | undefined;
201
+ since?: number | undefined;
202
+ limit?: number | undefined;
203
+ }): unknown[];
204
+ markInputDelivered(sessionId: string, inputId: string, options: {
205
+ consumed?: boolean | undefined;
206
+ }): Promise<unknown | null>;
175
207
  closeSession(sessionId: string): Promise<{
176
208
  id: string;
177
209
  } | null>;
178
210
  reopenSession(sessionId: string): Promise<{
179
211
  id: string;
180
212
  } | null>;
213
+ detachParticipant(sessionId: string, surfaceId: string): Promise<{
214
+ id: string;
215
+ status: string;
216
+ } | null>;
217
+ /** Hard-remove a session record + its messages/inputs (see CHANGELOG 1.0.0). Distinct from close. */
218
+ deleteSession(sessionId: string): Promise<'deleted' | 'not-found' | 'active'>;
181
219
  cancelInput(sessionId: string, inputId: string): Promise<unknown | null>;
182
220
  completeAgent(sessionId: string, agentId: string, message: string, meta: {
183
221
  status: string;
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-route-types.d.ts","sourceRoot":"","sources":["../../../../src/platform/daemon/http/runtime-route-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AACxF,OAAO,KAAK,EAAE,yBAAyB,IAAI,4BAA4B,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAC/I,OAAO,KAAK,EACV,4BAA4B,EAC5B,wBAAwB,EACxB,wBAAwB,EACzB,M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