@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
@@ -1,12 +1,12 @@
1
1
  /** SDK-owned platform module. This implementation is maintained in goodvibes-sdk. */
2
2
  /**
3
3
  * Fleet types — the normalized process-tree contract for the live process
4
- * registry (W2.1). One queryable + subscribable aggregation surface that
4
+ * registry. One queryable + subscribable aggregation surface that
5
5
  * enumerates every live/completed runtime process (agents incl. WRFC roles,
6
6
  * WRFC chains + subtasks, workflow-tool FSMs/triggers/schedules, watchers,
7
7
  * background processes) as flat `ProcessNode` records with parentId edges.
8
8
  *
9
- * Consumers (the TUI fleet tree, Wave-3 session tabs, Wave-4 orchestration
9
+ * Consumers (the TUI fleet tree, session tabs, orchestration
10
10
  * nesting) build the tree from the flat list — this keeps the registry cheap
11
11
  * and lets each surface reorder/filter independently.
12
12
  */
@@ -19,17 +19,17 @@ export type ProcessKind = 'agent' | 'wrfc-chain' | 'wrfc-subtask' | 'workflow' |
19
19
  * ScheduleEntry-between-runs and pending agents need honest states rather
20
20
  * than being force-fit into an active state.
21
21
  *
22
- * `interrupted` (Wave-3 verb formalization) is a distinct TERMINAL outcome
22
+ * `interrupted` is a distinct TERMINAL outcome
23
23
  * from `killed`: both come from AgentManager.cancel(), but a graceful
24
24
  * interrupt request and a hard kill are display-distinguishable via
25
25
  * AgentRecord.terminationKind. There is no resume path — `cancel()` is
26
26
  * terminal in the current SDK, so 'interrupted' does NOT mean "process still
27
27
  * alive"; it means "the operator asked nicely" vs. "the operator killed it".
28
28
  *
29
- * `paused` (Wave 6, wo-F item d2) is NOT terminal and NOT the same as
29
+ * `paused` is NOT terminal and NOT the same as
30
30
  * `killed`: a disabled trigger/schedule/automation-job still exists and can
31
31
  * be re-armed via `ProcessRegistry.resume()` — collapsing it into `killed`
32
- * (the pre-Wave-6 behavior) was dishonest, since `killed` implies the
32
+ * (the previous behavior) was dishonest, since `killed` implies the
33
33
  * process is gone for good. See ProcessCapabilities.resumable.
34
34
  */
35
35
  export type ProcessState = 'thinking' | 'executing-tool' | 'awaiting-approval' | 'streaming' | 'stalled' | 'retrying' | 'done' | 'failed' | 'killed' | 'interrupted' | 'idle' | 'queued' | 'paused';
@@ -58,7 +58,7 @@ export interface ProcessCapabilities {
58
58
  readonly killable: boolean;
59
59
  readonly pausable: boolean;
60
60
  /**
61
- * Wave 6 (wo-F item d2): whether `ProcessRegistry.resume()` can re-arm
61
+ * Whether `ProcessRegistry.resume()` can re-arm
62
62
  * this node. True only for a node currently in the `paused` state whose
63
63
  * source manager exposes an `enable` control (trigger, schedule,
64
64
  * automation job) — false for every other kind/state, including a
@@ -66,7 +66,7 @@ export interface ProcessCapabilities {
66
66
  */
67
67
  readonly resumable: boolean;
68
68
  /**
69
- * Wave-3: whether `ProcessRegistry.steer()` can queue a message for this
69
+ * Whether `ProcessRegistry.steer()` can queue a message for this
70
70
  * node. True only for a live in-process agent (or a wrfc-subtask with a
71
71
  * live member agent) AND only when the registry was constructed with a
72
72
  * `messageBus` dep — false everywhere when that dep is absent (graceful
@@ -76,7 +76,7 @@ export interface ProcessCapabilities {
76
76
  */
77
77
  readonly steerable: boolean;
78
78
  }
79
- /** Wave-3 tab attach point: session/agent identity for transcript drill-downs. */
79
+ /** Tab attach point: session/agent identity for transcript drill-downs. */
80
80
  export interface ProcessSessionRef {
81
81
  readonly sessionId?: string | undefined;
82
82
  readonly agentId?: string | undefined;
@@ -167,7 +167,7 @@ export interface ProcessRegistry {
167
167
  */
168
168
  interrupt(id: string): boolean;
169
169
  /**
170
- * Wave 6 (wo-F item d2): re-arm a `paused` node — triggers/schedules via
170
+ * Re-arm a `paused` node — triggers/schedules via
171
171
  * their manager's `enable()`, the inverse of `interrupt()`'s disable.
172
172
  * Honest refusal (returns false, no throw) for a node that is not
173
173
  * resumable: not found, not currently `paused`, or a kind whose source
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/platform/runtime/fleet/types.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAErF;;;;;;;;;;GAUG;AAEH,wDAAwD;AACxD,MAAM,MAAM,WAAW,GACnB,OAAO,GACP,YAAY,GACZ,cAAc,GACd,UAAU,GACV,SAAS,GACT,UAAU,GACV,SAAS,GACT,oBAAoB,GAGpB,YAAY,GACZ,OAAO,GACP,WAAW,GAKX,YAAY,CAAC;AAEjB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,YAAY,GACpB,UAAU,GACV,gBAAgB,GAChB,mBAAmB,GACnB,WAAW,GACX,SAAS,GACT,UAAU,GACV,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,aAAa,GACb,MAAM,GACN,QAAQ,GACR,QAAQ,CAAC;AAEb,0FAA0F;AAC1F,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,aAAa,EAAE,MAAM,CA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AAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,kBAAkB,GAAG,SAAS,MAAM,EAAE,CAAC;IAC/D;;;;;;;;OAQG;IACH,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAC7C,8EAA8E;IAC9E,OAAO,IAAI,IAAI,CAAC;CACjB"}
@@ -0,0 +1,127 @@
1
+ /**
2
+ * client.ts — the SDK memory-spine surface client (host-vs-client access mode).
3
+ *
4
+ * The daemon-owned memory service makes the daemon the SINGLE WRITER of its
5
+ * canonical sql.js store. sql.js has no row locking and rewrites the whole file on
6
+ * every save(), so two live processes writing the same file clobber each other —
7
+ * a whole-file lost update that would DELETE memory. One process must own the
8
+ * store; every other surface reaches it over the wire.
9
+ *
10
+ * This client is the surface-side switch that realizes that invariant, mirroring
11
+ * the session-spine host-vs-client pattern:
12
+ *
13
+ * - HOST / OFFLINE-EMBEDDED mode (transport NOT attached): the surface IS the only
14
+ * process touching its own store file, so it reads/writes the LOCAL embedded
15
+ * store directly. This is the offline fallback the agent and TUI keep — a daemon
16
+ * is not required for them to work.
17
+ * - CLIENT-OF-ADOPTED-DAEMON mode (transport attached): the daemon owns the store;
18
+ * the surface routes EVERY memory op through the injected wire transport and
19
+ * NEVER opens the file. Enforced structurally here — the active branch only ever
20
+ * touches `this.transport`, never `this.local`.
21
+ *
22
+ * ONE-WRITER ENFORCEMENT RULING. The platform's convention (see canonical-memory.ts
23
+ * and the session spine) is honest sequential/owned access plus stated posture, NOT
24
+ * an OS advisory lock — sql.js exposes no lock and a cross-process flock would be a
25
+ * new, unenforceable-on-every-OS mechanism the rest of the store does not rely on.
26
+ * So the invariant is enforced two ways, both honest: (1) mode exclusivity — a
27
+ * client in wire mode provably cannot reach the local file because the code routes
28
+ * exclusively to the transport; (2) a documented single-writer contract for the
29
+ * embedded case — the daemon host and an offline surface are each the sole process
30
+ * for their own file. `mode()` reports the current posture so a surface can surface
31
+ * it rather than guess.
32
+ *
33
+ * HONEST FAILURE. Unlike the fire-and-forget session mirror, memory reads/writes
34
+ * return data, so this client is request/response. In client mode a transport
35
+ * failure is SURFACED to the caller (the promise rejects); it is deliberately NOT
36
+ * silently served from the local store — a wire client must not open the
37
+ * daemon-owned file, and returning a divergent local copy as if it were canonical
38
+ * would be the exact dishonest-recall failure this whole design exists to prevent.
39
+ * A sustained daemon loss is handled by `deactivate()`, which returns the surface
40
+ * to owned-local mode explicitly.
41
+ */
42
+ import { logger } from '../../utils/logger.js';
43
+ import type { MemoryAddOptions, MemoryRecord, MemoryReviewPatch, MemorySearchFilter } from '../../state/memory-store.js';
44
+ import type { HonestMemorySearchOptions, HonestMemorySearchResult } from '../../state/memory-recall-contract.js';
45
+ /**
46
+ * The memory read/write surface a caller uses without caring whether it resolves
47
+ * locally or over the wire. Every method is async so a local (sync store) and a
48
+ * wire (async) backend present the SAME shape.
49
+ */
50
+ export interface MemoryAccess {
51
+ add(opts: MemoryAddOptions): Promise<MemoryRecord>;
52
+ honestSearch(filter: MemorySearchFilter, options?: HonestMemorySearchOptions): Promise<HonestMemorySearchResult>;
53
+ get(id: string): Promise<MemoryRecord | null>;
54
+ updateReview(id: string, patch: MemoryReviewPatch): Promise<MemoryRecord | null>;
55
+ delete(id: string): Promise<boolean>;
56
+ }
57
+ /**
58
+ * The injected wire transport. A consumer builds a thin adapter over the daemon's
59
+ * memory.records.* routes (POST /api/memory/records, /search, GET/DELETE
60
+ * /api/memory/records/:id, POST /api/memory/records/:id/review). The core only ever
61
+ * calls these methods — it never assumes a typed client exists, so a surface pinned
62
+ * to an older SDK can still adapt raw REST, exactly like the session spine.
63
+ */
64
+ export type MemoryTransport = MemoryAccess;
65
+ /**
66
+ * The local embedded store surface. The SDK's `MemoryRegistry` satisfies this
67
+ * structurally (its methods are mostly synchronous; the facade normalizes them to
68
+ * promises). Kept minimal so the client stays decoupled from the concrete class.
69
+ */
70
+ export interface LocalMemoryStore {
71
+ add(opts: MemoryAddOptions): Promise<MemoryRecord> | MemoryRecord;
72
+ honestSearch(filter: MemorySearchFilter, options?: HonestMemorySearchOptions): HonestMemorySearchResult;
73
+ get(id: string): MemoryRecord | null;
74
+ review(id: string, patch: MemoryReviewPatch): MemoryRecord | null;
75
+ delete(id: string): boolean;
76
+ }
77
+ /** Wrap a local embedded store (e.g. a MemoryRegistry) as a MemoryAccess. */
78
+ export declare function createLocalMemoryAccess(store: LocalMemoryStore): MemoryAccess;
79
+ /** Current access posture — honest, reportable, never guessed. */
80
+ export type MemoryAccessMode = 'local' | 'client';
81
+ type SpineLogger = Pick<typeof logger, 'debug' | 'info'>;
82
+ export interface MemorySpineClientOptions {
83
+ /** The local embedded store, always present as the offline/host backend. */
84
+ readonly local: MemoryAccess;
85
+ /**
86
+ * Attach a wire transport at construction for CLIENT mode immediately (a surface
87
+ * that boots already adopted to a daemon). Omit for LOCAL mode until `activate()`
88
+ * (a surface that adopts a daemon later, or runs offline forever).
89
+ */
90
+ readonly transport?: MemoryTransport | undefined;
91
+ readonly log?: SpineLogger;
92
+ }
93
+ /**
94
+ * Routes memory access to the LOCAL embedded store or, when a daemon has been
95
+ * adopted, THROUGH the wire — never both. Implements {@link MemoryAccess} so a
96
+ * caller uses one object regardless of mode.
97
+ */
98
+ export declare class MemorySpineClient implements MemoryAccess {
99
+ private readonly local;
100
+ private transport;
101
+ private readonly log;
102
+ constructor(options: MemorySpineClientOptions);
103
+ /** The current posture: 'client' when routing over the wire, 'local' otherwise. */
104
+ mode(): MemoryAccessMode;
105
+ /** Whether a wire transport is attached (client-of-adopted-daemon mode). */
106
+ get active(): boolean;
107
+ /**
108
+ * Adopt a daemon: route every memory op through the wire from now on. The local
109
+ * store is left untouched for the lifetime of client mode — the daemon is the
110
+ * single writer.
111
+ */
112
+ activate(transport: MemoryTransport): void;
113
+ /** Release the daemon (mode lost / daemon stopped): return to owned-local access. */
114
+ deactivate(reason: string): void;
115
+ add(opts: MemoryAddOptions): Promise<MemoryRecord>;
116
+ honestSearch(filter: MemorySearchFilter, options?: HonestMemorySearchOptions): Promise<HonestMemorySearchResult>;
117
+ get(id: string): Promise<MemoryRecord | null>;
118
+ updateReview(id: string, patch: MemoryReviewPatch): Promise<MemoryRecord | null>;
119
+ delete(id: string): Promise<boolean>;
120
+ /**
121
+ * The single choke point that realizes the one-writer invariant: in client mode
122
+ * EVERY op resolves through the transport and the local store is never reached.
123
+ */
124
+ private route;
125
+ }
126
+ export {};
127
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/platform/runtime/memory-spine/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACzH,OAAO,KAAK,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AAEjH;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,GAAG,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IACnD,YAAY,CAAC,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;IACjH,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC;IAC9C,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC;IACjF,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACtC;AAED;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GAAG,YAAY,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AAS,EAAE,eAAe,GAAG,IAAI;IAK1C,qFAAqF;IACrF,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAMhC,GAAG,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,YAAY,CAAC;IAIlD,YAAY,CAAC,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAIhH,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAI7C,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAIhF,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIpC;;;OAGG;IACH,OAAO,CAAC,KAAK;CAGd"}
@@ -0,0 +1,113 @@
1
+ /**
2
+ * client.ts — the SDK memory-spine surface client (host-vs-client access mode).
3
+ *
4
+ * The daemon-owned memory service makes the daemon the SINGLE WRITER of its
5
+ * canonical sql.js store. sql.js has no row locking and rewrites the whole file on
6
+ * every save(), so two live processes writing the same file clobber each other —
7
+ * a whole-file lost update that would DELETE memory. One process must own the
8
+ * store; every other surface reaches it over the wire.
9
+ *
10
+ * This client is the surface-side switch that realizes that invariant, mirroring
11
+ * the session-spine host-vs-client pattern:
12
+ *
13
+ * - HOST / OFFLINE-EMBEDDED mode (transport NOT attached): the surface IS the only
14
+ * process touching its own store file, so it reads/writes the LOCAL embedded
15
+ * store directly. This is the offline fallback the agent and TUI keep — a daemon
16
+ * is not required for them to work.
17
+ * - CLIENT-OF-ADOPTED-DAEMON mode (transport attached): the daemon owns the store;
18
+ * the surface routes EVERY memory op through the injected wire transport and
19
+ * NEVER opens the file. Enforced structurally here — the active branch only ever
20
+ * touches `this.transport`, never `this.local`.
21
+ *
22
+ * ONE-WRITER ENFORCEMENT RULING. The platform's convention (see canonical-memory.ts
23
+ * and the session spine) is honest sequential/owned access plus stated posture, NOT
24
+ * an OS advisory lock — sql.js exposes no lock and a cross-process flock would be a
25
+ * new, unenforceable-on-every-OS mechanism the rest of the store does not rely on.
26
+ * So the invariant is enforced two ways, both honest: (1) mode exclusivity — a
27
+ * client in wire mode provably cannot reach the local file because the code routes
28
+ * exclusively to the transport; (2) a documented single-writer contract for the
29
+ * embedded case — the daemon host and an offline surface are each the sole process
30
+ * for their own file. `mode()` reports the current posture so a surface can surface
31
+ * it rather than guess.
32
+ *
33
+ * HONEST FAILURE. Unlike the fire-and-forget session mirror, memory reads/writes
34
+ * return data, so this client is request/response. In client mode a transport
35
+ * failure is SURFACED to the caller (the promise rejects); it is deliberately NOT
36
+ * silently served from the local store — a wire client must not open the
37
+ * daemon-owned file, and returning a divergent local copy as if it were canonical
38
+ * would be the exact dishonest-recall failure this whole design exists to prevent.
39
+ * A sustained daemon loss is handled by `deactivate()`, which returns the surface
40
+ * to owned-local mode explicitly.
41
+ */
42
+ import { logger } from '../../utils/logger.js';
43
+ /** Wrap a local embedded store (e.g. a MemoryRegistry) as a MemoryAccess. */
44
+ export function createLocalMemoryAccess(store) {
45
+ return {
46
+ add: (opts) => Promise.resolve(store.add(opts)),
47
+ honestSearch: (filter, options) => Promise.resolve(store.honestSearch(filter, options)),
48
+ get: (id) => Promise.resolve(store.get(id)),
49
+ updateReview: (id, patch) => Promise.resolve(store.review(id, patch)),
50
+ delete: (id) => Promise.resolve(store.delete(id)),
51
+ };
52
+ }
53
+ /**
54
+ * Routes memory access to the LOCAL embedded store or, when a daemon has been
55
+ * adopted, THROUGH the wire — never both. Implements {@link MemoryAccess} so a
56
+ * caller uses one object regardless of mode.
57
+ */
58
+ export class MemorySpineClient {
59
+ local;
60
+ transport;
61
+ log;
62
+ constructor(options) {
63
+ this.local = options.local;
64
+ this.transport = options.transport ?? null;
65
+ this.log = options.log ?? logger;
66
+ }
67
+ /** The current posture: 'client' when routing over the wire, 'local' otherwise. */
68
+ mode() {
69
+ return this.transport ? 'client' : 'local';
70
+ }
71
+ /** Whether a wire transport is attached (client-of-adopted-daemon mode). */
72
+ get active() {
73
+ return this.transport !== null;
74
+ }
75
+ /**
76
+ * Adopt a daemon: route every memory op through the wire from now on. The local
77
+ * store is left untouched for the lifetime of client mode — the daemon is the
78
+ * single writer.
79
+ */
80
+ activate(transport) {
81
+ this.transport = transport;
82
+ this.log.info('memory spine activated — routing memory through the adopted external daemon (single writer)', {});
83
+ }
84
+ /** Release the daemon (mode lost / daemon stopped): return to owned-local access. */
85
+ deactivate(reason) {
86
+ if (this.transport === null)
87
+ return;
88
+ this.transport = null;
89
+ this.log.info('memory spine deactivated — reverting to owned-local memory access', { reason });
90
+ }
91
+ add(opts) {
92
+ return this.route().add(opts);
93
+ }
94
+ honestSearch(filter, options) {
95
+ return this.route().honestSearch(filter, options);
96
+ }
97
+ get(id) {
98
+ return this.route().get(id);
99
+ }
100
+ updateReview(id, patch) {
101
+ return this.route().updateReview(id, patch);
102
+ }
103
+ delete(id) {
104
+ return this.route().delete(id);
105
+ }
106
+ /**
107
+ * The single choke point that realizes the one-writer invariant: in client mode
108
+ * EVERY op resolves through the transport and the local store is never reached.
109
+ */
110
+ route() {
111
+ return this.transport ?? this.local;
112
+ }
113
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @pellux/goodvibes-sdk/platform/runtime/memory-spine
3
+ *
4
+ * The surface-side host-vs-client switch for the daemon-owned single-writer memory
5
+ * service. A daemon host (and any offline/embedded surface) uses the LOCAL store
6
+ * directly; a surface that has adopted a compatible daemon routes memory THROUGH
7
+ * the wire and never opens the store file. Mirrors the session-spine pattern; the
8
+ * offline fallback stays, so the agent and TUI keep working with no daemon running.
9
+ */
10
+ export { MemorySpineClient, createLocalMemoryAccess, type MemoryAccess, type MemoryAccessMode, type MemoryTransport, type LocalMemoryStore, type MemorySpineClientOptions, } from './client.js';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/platform/runtime/memory-spine/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,GAC9B,MAAM,aAAa,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @pellux/goodvibes-sdk/platform/runtime/memory-spine
3
+ *
4
+ * The surface-side host-vs-client switch for the daemon-owned single-writer memory
5
+ * service. A daemon host (and any offline/embedded surface) uses the LOCAL store
6
+ * directly; a surface that has adopted a compatible daemon routes memory THROUGH
7
+ * the wire and never opens the store file. Mirrors the session-spine pattern; the
8
+ * offline fallback stays, so the agent and TUI keep working with no daemon running.
9
+ */
10
+ export { MemorySpineClient, createLocalMemoryAccess, } from './client.js';
@@ -1,4 +1,4 @@
1
- import type { ControlPlaneRecentEvent, SharedApprovalRecord, SharedSessionInputRecord, SharedSessionMessage, SharedSessionRecord, SharedSessionSubmission, SteerSharedSessionMessageInput, SubmitSharedSessionMessageInput } from '../control-plane/index.js';
1
+ import type { ControlPlaneRecentEvent, RegisterSharedSessionInput, SharedApprovalRecord, SharedSessionInputRecord, SharedSessionMessage, SharedSessionRecord, SharedSessionRegisterResult, SharedSessionSubmission, SteerSharedSessionMessageInput, SubmitSharedSessionMessageInput } from '../control-plane/index.js';
2
2
  import type { RequestSharedApprovalInput } from '../control-plane/index.js';
3
3
  import type { PermissionPromptDecision } from '../permissions/prompt.js';
4
4
  import { type AuthInspectionSnapshot } from './auth/inspection.js';
@@ -22,15 +22,30 @@ export interface OperatorSessionsClient {
22
22
  list(limit?: number): readonly SharedSessionRecord[];
23
23
  get(sessionId: string): SharedSessionRecord | null;
24
24
  messages(sessionId: string, limit?: number): readonly SharedSessionMessage[];
25
- inputs(sessionId: string, limit?: number): readonly SharedSessionInputRecord[];
25
+ inputs(sessionId: string, limit?: number, options?: {
26
+ readonly state?: string | undefined;
27
+ readonly since?: number | undefined;
28
+ }): readonly SharedSessionInputRecord[];
26
29
  ensureSession(input?: OperatorSessionEnsureInput): Promise<SharedSessionRecord>;
30
+ register(input: RegisterSharedSessionInput): Promise<SharedSessionRegisterResult>;
27
31
  close(sessionId: string): Promise<SharedSessionRecord | null>;
28
32
  reopen(sessionId: string): Promise<SharedSessionRecord | null>;
33
+ /** Detach a surface's participant/route from a session without closing it
34
+ * (detach != close != kill). Idempotent; see sessions.detach. */
35
+ detach(sessionId: string, surfaceId: string): Promise<SharedSessionRecord | null>;
36
+ /** Permanently remove a session (delete != close). Requires the
37
+ * session already closed — see sessions.delete. */
38
+ delete(sessionId: string): Promise<'deleted' | 'not-found' | 'active'>;
29
39
  bindAgent(sessionId: string, agentId: string): Promise<SharedSessionRecord | null>;
30
40
  submitMessage(input: SubmitSharedSessionMessageInput): Promise<SharedSessionSubmission>;
31
41
  steerMessage(input: SteerSharedSessionMessageInput): Promise<SharedSessionSubmission>;
32
42
  followUpMessage(input: SubmitSharedSessionMessageInput): Promise<SharedSessionSubmission>;
33
43
  cancelInput(sessionId: string, inputId: string): Promise<SharedSessionInputRecord | null>;
44
+ /** A live surface marks a collected input delivered (`consumed:false`) or
45
+ * consumed/completed (`consumed:true`). See sessions.inputs.deliver. */
46
+ deliverInput(sessionId: string, inputId: string, options?: {
47
+ readonly consumed?: boolean | undefined;
48
+ }): Promise<SharedSessionInputRecord | null>;
34
49
  }
35
50
  export interface OperatorTasksClient {
36
51
  snapshot(): UiTasksSnapshot;
@@ -49,6 +64,9 @@ export interface OperatorApprovalsClient {
49
64
  readonly actor: string;
50
65
  readonly actorSurface?: string | undefined;
51
66
  readonly note?: string | undefined;
67
+ /** Optional per-hunk selection (edit-tool approvals) — the broker filters
68
+ * the approval's own edit list to these indices server-side. */
69
+ readonly selectedHunks?: readonly number[] | undefined;
52
70
  }): Promise<SharedApprovalRecord | null>;
53
71
  approve(approvalId: string, actor: string, actorSurface?: string, note?: string): Promise<SharedApprovalRecord | null>;
54
72
  deny(approvalId: string, actor: string, actorSurface?: string, note?: string): Promise<SharedApprovalRecord | null>;
@@ -1 +1 @@
1
- {"version":3,"file":"operator-client.d.ts","sourceRoot":"","sources":["../../../src/platform/runtime/operator-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,EACvB,8BAA8B,EAC9B,+BAA+B,EAChC,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAA+B,KAAK,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAChG,OAAO,EAAgC,KAAK,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC7G,OAAO,KAAK,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEvG,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,MAAM,WAAW,4BAA6B,SAAQ,sBAAsB;CAAG;AAE/E,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IACxC,QAAQ,CAAC,gBAAgB,EAAE,SAAS,uBAAuB,EAAE,CAAC;IAC9D,QAAQ,CAAC,eAAe,EA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CAAC,CAAC;IACpD,cAAc,IAAI,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACnD;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,IAAI,4BAA4B,CAAC;IACzC,YAAY,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,uBAAuB,EAAE,CAAC;CAClE;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,QAAQ,EAAE,sBAAsB,CAAC;IAC1C,QAAQ,CAAC,KAAK,EAAE,mBAAmB,CAAC;IACpC,QAAQ,CAAC,SAAS,EAAE,uBAAuB,CAAC;IAC5C,QAAQ,CAAC,SAAS,EAAE,uBAAuB,CAAC;IAC5C,QAAQ,CAAC,YAAY,EAAE,0BAA0B,CAAC;IAClD,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC,QAAQ,CAAC,UAAU,EAAE,gBAAgB,CAAC;CACvC;AAeD,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,sBAAsB,GAAG,cAAc,CA2HrF"}
@@ -18,15 +18,25 @@ export function createOperatorClient(services) {
18
18
  list: (limit = 100) => services.sessionBroker.listSessions(normalizeLimit(limit)),
19
19
  get: (sessionId) => services.sessionBroker.getSession(sessionId),
20
20
  messages: (sessionId, limit = 100) => services.sessionBroker.getMessages(sessionId, normalizeLimit(limit)),
21
- inputs: (sessionId, limit = 100) => services.sessionBroker.getInputs(sessionId, normalizeLimit(limit)),
21
+ inputs: (sessionId, limit = 100, options) => (options && (options.state !== undefined || options.since !== undefined))
22
+ ? services.sessionBroker.getInputsSince(sessionId, {
23
+ ...(options.state !== undefined ? { state: options.state } : {}),
24
+ ...(options.since !== undefined ? { since: options.since } : {}),
25
+ limit: normalizeLimit(limit),
26
+ })
27
+ : services.sessionBroker.getInputs(sessionId, normalizeLimit(limit)),
22
28
  ensureSession: (input = {}) => services.sessionBroker.ensureSession(input),
29
+ register: (input) => services.sessionBroker.register(input),
23
30
  close: (sessionId) => services.sessionBroker.closeSession(sessionId),
24
31
  reopen: (sessionId) => services.sessionBroker.reopenSession(sessionId),
32
+ detach: (sessionId, surfaceId) => services.sessionBroker.detachParticipant(sessionId, surfaceId),
33
+ delete: (sessionId) => services.sessionBroker.deleteSession(sessionId),
25
34
  bindAgent: (sessionId, agentId) => services.sessionBroker.bindAgent(sessionId, agentId),
26
35
  submitMessage: (input) => services.sessionBroker.submitMessage(input),
27
36
  steerMessage: (input) => services.sessionBroker.steerMessage(input),
28
37
  followUpMessage: (input) => services.sessionBroker.followUpMessage(input),
29
38
  cancelInput: (sessionId, inputId) => services.sessionBroker.cancelInput(sessionId, inputId),
39
+ deliverInput: (sessionId, inputId, options = {}) => services.sessionBroker.markInputDelivered(sessionId, inputId, options),
30
40
  };
31
41
  const tasks = {
32
42
  snapshot: () => services.readModels.tasks.getSnapshot(),
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../src/platform/runtime/provider-accounts/registry.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAGpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,cAAc,GAAG,eAAe,GAAG,cAAc,CAAC;AAC9F,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,cAAc,CAAC;AAEpG,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,iBAAiB,EAAE,cAAc,CAAC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AM,GAAG,SAAS,CAAC;IACxC,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,YAAY,EAAE,SAAS,mBAAmB,EAAE,CAAC;IACtD,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,QAAQ,CAAC,kBAAkB,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/C,QAAQ,CAAC,YAAY,EAAE,SAAS,mBAAmB,EAAE,CAAC;CACvD;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,SAAS,qBAAqB,EAAE,CAAC;IACrD,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EAAE,YAAY,GAAG,iBAAiB,GAAG,eAAe,GAAG,iBAAiB,CAAC,CAAC;IAC1H,QAAQ,CAAC,eAAe,EAAE,IAAI,CAAC,eAAe,EAAE,QAAQ,GAAG,SAAS,CAAC,CAAC;IACtE,QAAQ,CAAC,mBAAmB,EAAE,IAAI,CAAC,mBAAmB,EAAE,MAAM,GAAG,aAAa,GAAG,KAAK,GAAG,YAAY,CAAC,CAAC;IACvG,QAAQ,CAAC,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;CACtD;AAwCD,wBAAsB,4BAA4B,CAChD,IAAI,EAAE,2BAA2B,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAwOlC"}
@@ -43,7 +43,17 @@ function determineSubscriptionFreshness(expiresAt) {
43
43
  export async function buildProviderAccountSnapshot(deps) {
44
44
  const providerRegistry = deps.providerRegistry;
45
45
  const allModels = providerRegistry.listModels();
46
- const currentModel = providerRegistry.getCurrentModel?.();
46
+ // Read-only display path: an unresolved current model (e.g. a fresh isolated
47
+ // home whose pricing catalog has not hydrated, leaving the configured default
48
+ // with no materialized definition) must not turn this snapshot into a 500. Fall
49
+ // back to "no active provider" instead of letting getCurrentModel() throw.
50
+ let currentModel;
51
+ try {
52
+ currentModel = providerRegistry.getCurrentModel?.();
53
+ }
54
+ catch {
55
+ currentModel = undefined;
56
+ }
47
57
  const apiKeys = await resolveApiKeys(deps.secretsManager);
48
58
  const subscriptions = deps.subscriptionManager;
49
59
  const builtinSubscriptionProviders = new Set(listBuiltinSubscriptionProviders().map((entry) => entry.provider));
@@ -23,6 +23,7 @@ import { WorkspaceCheckpointManager } from '../workspace/checkpoint/index.js';
23
23
  import { MemoryRegistry } from '../state/memory-registry.js';
24
24
  import { MemoryStore } from '../state/memory-store.js';
25
25
  import { CodeIndexStore } from '../state/code-index-store.js';
26
+ import { CodeIndexReindexScheduler } from '../state/code-index-reindex.js';
26
27
  import type { RuntimeEventBus } from './events/index.js';
27
28
  import type { DomainDispatch, RuntimeStore } from './store/index.js';
28
29
  import { DistributedRuntimeManager } from './remote/distributed-runtime-manager.js';
@@ -81,14 +82,13 @@ export interface RuntimeServicesOptions {
81
82
  readonly keybindingsManager?: KeybindingsManagerLike | undefined;
82
83
  /**
83
84
  * Opt-in: kick off the repo source-tree code index's initial build
84
- * (Wave-5 wo802, W5.3 Stage A) right after construction. Fire-and-forget —
85
- * never awaited here, never blocks this call. Defaults to false/undefined
86
- * so constructing RuntimeServices never surprises a caller (including the
87
- * many test fixtures that build RuntimeServices against a real directory)
88
- * with an unrequested full source-tree walk. A real product entry point
89
- * (an interactive session bootstrap) should pass `true`.
85
+ * (Stage A) right after construction. Fire-and-forget — never
86
+ * awaited, never blocks. Defaults off so building RuntimeServices never runs
87
+ * an unrequested source-tree walk. Real interactive entry points pass `true`.
90
88
  */
91
89
  readonly autoStartCodeIndex?: boolean | undefined;
90
+ /** Override the broker store path (default: home-scoped durable store). */
91
+ readonly sessionStorePath?: string | undefined;
92
92
  }
93
93
  export interface RuntimeServices {
94
94
  readonly workingDirectory: string;
@@ -119,7 +119,7 @@ export interface RuntimeServices {
119
119
  readonly memoryStore: MemoryStore;
120
120
  readonly memoryRegistry: MemoryRegistry;
121
121
  /**
122
- * Repo source-tree code index (Wave-5 wo802, W5.3 Stage A). Constructed and
122
+ * Repo source-tree code index (Stage A). Constructed and
123
123
  * schema-initialized eagerly like memoryStore, but the actual walk/chunk/
124
124
  * embed build is NOT auto-triggered here — call `.scheduleBuild()` from an
125
125
  * explicit call site (a `/codebase reindex` command, a session-start hook,
@@ -130,6 +130,8 @@ export interface RuntimeServices {
130
130
  * surprising for embedders that never asked for it.
131
131
  */
132
132
  readonly codeIndexStore: CodeIndexStore;
133
+ /** Stage B tool-site incremental reindex scheduler (bound to codeIndexStore). */
134
+ readonly codeIndexReindexScheduler: CodeIndexReindexScheduler;
133
135
  readonly serviceRegistry: ServiceRegistry;
134
136
  readonly secretsManager: SecretsManager;
135
137
  readonly subscriptionManager: SubscriptionManager;
@@ -183,7 +185,7 @@ export interface RuntimeServices {
183
185
  readonly agentOrchestrator: AgentOrchestrator;
184
186
  readonly wrfcController: WrfcController;
185
187
  /**
186
- * Orchestration engine (Wave 4, wo701) — ships ALONGSIDE wrfcController,
188
+ * Orchestration engine — ships ALONGSIDE wrfcController,
187
189
  * stage 1 of the 3-stage migration (see platform/orchestration/
188
190
  * controller-compat.ts). WrfcController is unchanged; this is a new,
189
191
  * opt-in surface for callers that want the pipeline/capacity-matching
@@ -194,7 +196,7 @@ export interface RuntimeServices {
194
196
  readonly orchestrationEngine: OrchestrationEngine;
195
197
  readonly processManager: ProcessManager;
196
198
  /**
197
- * Live process registry (W2.1): queryable + subscribable fleet aggregation
199
+ * Live process registry: queryable + subscribable fleet aggregation
198
200
  * over agentManager/wrfcController/processManager/watcherRegistry/workflow.
199
201
  * LIFECYCLE NOTE: RuntimeServices has no shutdown/dispose seam today, so
200
202
  * nothing calls processRegistry.dispose() here — the registry's coalesced
@@ -1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