@pellux/goodvibes-sdk 0.38.0 → 1.0.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 (474) hide show
  1. package/dist/contracts/artifacts/operator-contract.json +3171 -929
  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/surfaces.d.ts +25 -3
  6. package/dist/events/surfaces.d.ts.map +1 -1
  7. package/dist/events/surfaces.js +22 -1
  8. package/dist/events/workflows.d.ts +7 -6
  9. package/dist/events/workflows.d.ts.map +1 -1
  10. package/dist/index.d.ts +1 -1
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/platform/agents/archetypes.d.ts.map +1 -1
  13. package/dist/platform/agents/archetypes.js +7 -0
  14. package/dist/platform/agents/index.d.ts +1 -0
  15. package/dist/platform/agents/index.d.ts.map +1 -1
  16. package/dist/platform/agents/index.js +1 -0
  17. package/dist/platform/agents/orchestrator-runner.d.ts +13 -0
  18. package/dist/platform/agents/orchestrator-runner.d.ts.map +1 -1
  19. package/dist/platform/agents/orchestrator-runner.js +14 -0
  20. package/dist/platform/agents/orchestrator.d.ts +38 -6
  21. package/dist/platform/agents/orchestrator.d.ts.map +1 -1
  22. package/dist/platform/agents/orchestrator.js +66 -18
  23. package/dist/platform/agents/planner-decomposition-runner.d.ts +38 -0
  24. package/dist/platform/agents/planner-decomposition-runner.d.ts.map +1 -0
  25. package/dist/platform/agents/planner-decomposition-runner.js +113 -0
  26. package/dist/platform/agents/turn-knowledge-injection.d.ts +88 -3
  27. package/dist/platform/agents/turn-knowledge-injection.d.ts.map +1 -1
  28. package/dist/platform/agents/turn-knowledge-injection.js +147 -30
  29. package/dist/platform/agents/worktree.d.ts +126 -8
  30. package/dist/platform/agents/worktree.d.ts.map +1 -1
  31. package/dist/platform/agents/worktree.js +240 -19
  32. package/dist/platform/agents/wrfc-controller.d.ts +23 -0
  33. package/dist/platform/agents/wrfc-controller.d.ts.map +1 -1
  34. package/dist/platform/agents/wrfc-controller.js +158 -32
  35. package/dist/platform/agents/wrfc-gate-runtime.d.ts +9 -0
  36. package/dist/platform/agents/wrfc-gate-runtime.d.ts.map +1 -1
  37. package/dist/platform/agents/wrfc-gate-runtime.js +7 -3
  38. package/dist/platform/agents/wrfc-gates.d.ts +1 -1
  39. package/dist/platform/agents/wrfc-gates.d.ts.map +1 -1
  40. package/dist/platform/agents/wrfc-gates.js +7 -1
  41. package/dist/platform/agents/wrfc-types.d.ts +23 -3
  42. package/dist/platform/agents/wrfc-types.d.ts.map +1 -1
  43. package/dist/platform/automation/types.d.ts +9 -1
  44. package/dist/platform/automation/types.d.ts.map +1 -1
  45. package/dist/platform/calendar/calendar-api-shared.d.ts +25 -0
  46. package/dist/platform/calendar/calendar-api-shared.d.ts.map +1 -0
  47. package/dist/platform/calendar/calendar-api-shared.js +100 -0
  48. package/dist/platform/calendar/calendar-connector.d.ts +79 -0
  49. package/dist/platform/calendar/calendar-connector.d.ts.map +1 -0
  50. package/dist/platform/calendar/calendar-connector.js +155 -0
  51. package/dist/platform/calendar/google-calendar-api.d.ts +25 -0
  52. package/dist/platform/calendar/google-calendar-api.d.ts.map +1 -0
  53. package/dist/platform/calendar/google-calendar-api.js +89 -0
  54. package/dist/platform/calendar/http-fetch-adapter.d.ts +25 -0
  55. package/dist/platform/calendar/http-fetch-adapter.d.ts.map +1 -0
  56. package/dist/platform/calendar/http-fetch-adapter.js +25 -0
  57. package/dist/platform/calendar/ics-parser.d.ts +35 -0
  58. package/dist/platform/calendar/ics-parser.d.ts.map +1 -0
  59. package/dist/platform/calendar/ics-parser.js +236 -0
  60. package/dist/platform/calendar/index.d.ts +41 -0
  61. package/dist/platform/calendar/index.d.ts.map +1 -0
  62. package/dist/platform/calendar/index.js +49 -0
  63. package/dist/platform/calendar/merged-calendar-model.d.ts +67 -0
  64. package/dist/platform/calendar/merged-calendar-model.d.ts.map +1 -0
  65. package/dist/platform/calendar/merged-calendar-model.js +181 -0
  66. package/dist/platform/calendar/microsoft-graph-api.d.ts +25 -0
  67. package/dist/platform/calendar/microsoft-graph-api.d.ts.map +1 -0
  68. package/dist/platform/calendar/microsoft-graph-api.js +95 -0
  69. package/dist/platform/calendar/oauth-flow.d.ts +62 -0
  70. package/dist/platform/calendar/oauth-flow.d.ts.map +1 -0
  71. package/dist/platform/calendar/oauth-flow.js +305 -0
  72. package/dist/platform/calendar/oauth-providers.d.ts +43 -0
  73. package/dist/platform/calendar/oauth-providers.d.ts.map +1 -0
  74. package/dist/platform/calendar/oauth-providers.js +120 -0
  75. package/dist/platform/calendar/oauth-token-store.d.ts +72 -0
  76. package/dist/platform/calendar/oauth-token-store.d.ts.map +1 -0
  77. package/dist/platform/calendar/oauth-token-store.js +189 -0
  78. package/dist/platform/calendar/oauth-types.d.ts +274 -0
  79. package/dist/platform/calendar/oauth-types.d.ts.map +1 -0
  80. package/dist/platform/calendar/oauth-types.js +22 -0
  81. package/dist/platform/calendar/rrule.d.ts +39 -0
  82. package/dist/platform/calendar/rrule.d.ts.map +1 -0
  83. package/dist/platform/calendar/rrule.js +261 -0
  84. package/dist/platform/calendar/subscription-store.d.ts +118 -0
  85. package/dist/platform/calendar/subscription-store.d.ts.map +1 -0
  86. package/dist/platform/calendar/subscription-store.js +293 -0
  87. package/dist/platform/calendar/types.d.ts +170 -0
  88. package/dist/platform/calendar/types.d.ts.map +1 -0
  89. package/dist/platform/calendar/types.js +21 -0
  90. package/dist/platform/companion/companion-chat-attachments.d.ts +29 -0
  91. package/dist/platform/companion/companion-chat-attachments.d.ts.map +1 -0
  92. package/dist/platform/companion/companion-chat-attachments.js +121 -0
  93. package/dist/platform/companion/companion-chat-broker-bridge.d.ts +40 -0
  94. package/dist/platform/companion/companion-chat-broker-bridge.d.ts.map +1 -0
  95. package/dist/platform/companion/companion-chat-broker-bridge.js +14 -0
  96. package/dist/platform/companion/companion-chat-broker-sync.d.ts +38 -0
  97. package/dist/platform/companion/companion-chat-broker-sync.d.ts.map +1 -0
  98. package/dist/platform/companion/companion-chat-broker-sync.js +80 -0
  99. package/dist/platform/companion/companion-chat-gc.d.ts +63 -0
  100. package/dist/platform/companion/companion-chat-gc.d.ts.map +1 -0
  101. package/dist/platform/companion/companion-chat-gc.js +38 -0
  102. package/dist/platform/companion/companion-chat-manager.d.ts +67 -20
  103. package/dist/platform/companion/companion-chat-manager.d.ts.map +1 -1
  104. package/dist/platform/companion/companion-chat-manager.js +130 -144
  105. package/dist/platform/companion/companion-chat-persistence.d.ts +9 -1
  106. package/dist/platform/companion/companion-chat-persistence.d.ts.map +1 -1
  107. package/dist/platform/companion/companion-chat-persistence.js +10 -2
  108. package/dist/platform/companion/companion-chat-routes.d.ts +2 -1
  109. package/dist/platform/companion/companion-chat-routes.d.ts.map +1 -1
  110. package/dist/platform/companion/companion-chat-routes.js +37 -4
  111. package/dist/platform/config/credential-status.d.ts +28 -0
  112. package/dist/platform/config/credential-status.d.ts.map +1 -0
  113. package/dist/platform/config/credential-status.js +75 -0
  114. package/dist/platform/config/index.d.ts +25 -0
  115. package/dist/platform/config/index.d.ts.map +1 -1
  116. package/dist/platform/config/index.js +18 -0
  117. package/dist/platform/config/manager.d.ts +9 -0
  118. package/dist/platform/config/manager.d.ts.map +1 -1
  119. package/dist/platform/config/manager.js +21 -2
  120. package/dist/platform/config/migrations.d.ts +48 -0
  121. package/dist/platform/config/migrations.d.ts.map +1 -0
  122. package/dist/platform/config/migrations.js +54 -0
  123. package/dist/platform/config/schema-domain-core.d.ts +10 -1
  124. package/dist/platform/config/schema-domain-core.d.ts.map +1 -1
  125. package/dist/platform/config/schema-domain-core.js +46 -3
  126. package/dist/platform/config/schema-types.d.ts +13 -7
  127. package/dist/platform/config/schema-types.d.ts.map +1 -1
  128. package/dist/platform/config/schema.d.ts.map +1 -1
  129. package/dist/platform/config/schema.js +2 -0
  130. package/dist/platform/control-plane/approval-broker.d.ts +11 -0
  131. package/dist/platform/control-plane/approval-broker.d.ts.map +1 -1
  132. package/dist/platform/control-plane/approval-broker.js +17 -1
  133. package/dist/platform/control-plane/approval-hunk-apply.d.ts +77 -0
  134. package/dist/platform/control-plane/approval-hunk-apply.d.ts.map +1 -0
  135. package/dist/platform/control-plane/approval-hunk-apply.js +80 -0
  136. package/dist/platform/control-plane/gateway-disabled-response.d.ts +20 -0
  137. package/dist/platform/control-plane/gateway-disabled-response.d.ts.map +1 -0
  138. package/dist/platform/control-plane/gateway-disabled-response.js +24 -0
  139. package/dist/platform/control-plane/gateway-scope-enforcement.d.ts +68 -0
  140. package/dist/platform/control-plane/gateway-scope-enforcement.d.ts.map +1 -0
  141. package/dist/platform/control-plane/gateway-scope-enforcement.js +91 -0
  142. package/dist/platform/control-plane/gateway-utils.d.ts +17 -0
  143. package/dist/platform/control-plane/gateway-utils.d.ts.map +1 -1
  144. package/dist/platform/control-plane/gateway-utils.js +30 -0
  145. package/dist/platform/control-plane/gateway.d.ts +12 -2
  146. package/dist/platform/control-plane/gateway.d.ts.map +1 -1
  147. package/dist/platform/control-plane/gateway.js +27 -31
  148. package/dist/platform/control-plane/index.d.ts +6 -1
  149. package/dist/platform/control-plane/index.d.ts.map +1 -1
  150. package/dist/platform/control-plane/index.js +4 -0
  151. package/dist/platform/control-plane/invoke-input-validation.d.ts +56 -0
  152. package/dist/platform/control-plane/invoke-input-validation.d.ts.map +1 -0
  153. package/dist/platform/control-plane/invoke-input-validation.js +163 -0
  154. package/dist/platform/control-plane/method-catalog-admin.d.ts.map +1 -1
  155. package/dist/platform/control-plane/method-catalog-admin.js +12 -1
  156. package/dist/platform/control-plane/method-catalog-calendar.d.ts +16 -0
  157. package/dist/platform/control-plane/method-catalog-calendar.d.ts.map +1 -1
  158. package/dist/platform/control-plane/method-catalog-calendar.js +21 -0
  159. package/dist/platform/control-plane/method-catalog-channels.d.ts.map +1 -1
  160. package/dist/platform/control-plane/method-catalog-channels.js +32 -3
  161. package/dist/platform/control-plane/method-catalog-control-automation.d.ts.map +1 -1
  162. package/dist/platform/control-plane/method-catalog-control-automation.js +19 -34
  163. package/dist/platform/control-plane/method-catalog-control-companion.d.ts +15 -0
  164. package/dist/platform/control-plane/method-catalog-control-companion.d.ts.map +1 -0
  165. package/dist/platform/control-plane/method-catalog-control-companion.js +133 -0
  166. package/dist/platform/control-plane/method-catalog-control-core.d.ts.map +1 -1
  167. package/dist/platform/control-plane/method-catalog-control-core.js +104 -122
  168. package/dist/platform/control-plane/method-catalog-control.d.ts.map +1 -1
  169. package/dist/platform/control-plane/method-catalog-control.js +4 -0
  170. package/dist/platform/control-plane/method-catalog-email.d.ts +17 -0
  171. package/dist/platform/control-plane/method-catalog-email.d.ts.map +1 -1
  172. package/dist/platform/control-plane/method-catalog-email.js +21 -0
  173. package/dist/platform/control-plane/method-catalog-events.d.ts +28 -0
  174. package/dist/platform/control-plane/method-catalog-events.d.ts.map +1 -1
  175. package/dist/platform/control-plane/method-catalog-events.js +74 -1
  176. package/dist/platform/control-plane/method-catalog-fleet.d.ts +24 -0
  177. package/dist/platform/control-plane/method-catalog-fleet.d.ts.map +1 -0
  178. package/dist/platform/control-plane/method-catalog-fleet.js +65 -0
  179. package/dist/platform/control-plane/method-catalog-route-reconcile.d.ts +84 -0
  180. package/dist/platform/control-plane/method-catalog-route-reconcile.d.ts.map +1 -0
  181. package/dist/platform/control-plane/method-catalog-route-reconcile.js +103 -0
  182. package/dist/platform/control-plane/method-catalog-shared.d.ts +29 -0
  183. package/dist/platform/control-plane/method-catalog-shared.d.ts.map +1 -1
  184. package/dist/platform/control-plane/method-catalog.d.ts +9 -0
  185. package/dist/platform/control-plane/method-catalog.d.ts.map +1 -1
  186. package/dist/platform/control-plane/method-catalog.js +32 -3
  187. package/dist/platform/control-plane/operator-contract-schemas-admin.d.ts +8 -0
  188. package/dist/platform/control-plane/operator-contract-schemas-admin.d.ts.map +1 -1
  189. package/dist/platform/control-plane/operator-contract-schemas-admin.js +22 -1
  190. package/dist/platform/control-plane/operator-contract-schemas-fleet.d.ts +18 -0
  191. package/dist/platform/control-plane/operator-contract-schemas-fleet.d.ts.map +1 -0
  192. package/dist/platform/control-plane/operator-contract-schemas-fleet.js +182 -0
  193. package/dist/platform/control-plane/operator-contract-schemas-permissions.d.ts.map +1 -1
  194. package/dist/platform/control-plane/operator-contract-schemas-permissions.js +5 -0
  195. package/dist/platform/control-plane/operator-contract-schemas-runtime.d.ts +29 -0
  196. package/dist/platform/control-plane/operator-contract-schemas-runtime.d.ts.map +1 -1
  197. package/dist/platform/control-plane/operator-contract-schemas-runtime.js +57 -3
  198. package/dist/platform/control-plane/operator-contract-schemas.d.ts +1 -0
  199. package/dist/platform/control-plane/operator-contract-schemas.d.ts.map +1 -1
  200. package/dist/platform/control-plane/operator-contract-schemas.js +1 -0
  201. package/dist/platform/control-plane/operator-contract.d.ts.map +1 -1
  202. package/dist/platform/control-plane/operator-contract.js +8 -0
  203. package/dist/platform/control-plane/routes/checkpoints.d.ts +39 -0
  204. package/dist/platform/control-plane/routes/checkpoints.d.ts.map +1 -0
  205. package/dist/platform/control-plane/routes/checkpoints.js +166 -0
  206. package/dist/platform/control-plane/routes/fleet.d.ts +53 -0
  207. package/dist/platform/control-plane/routes/fleet.d.ts.map +1 -0
  208. package/dist/platform/control-plane/routes/fleet.js +153 -0
  209. package/dist/platform/control-plane/routes/gateway-verb-error.d.ts +30 -0
  210. package/dist/platform/control-plane/routes/gateway-verb-error.d.ts.map +1 -0
  211. package/dist/platform/control-plane/routes/gateway-verb-error.js +36 -0
  212. package/dist/platform/control-plane/routes/index.d.ts +0 -6
  213. package/dist/platform/control-plane/routes/index.d.ts.map +1 -1
  214. package/dist/platform/control-plane/routes/index.js +5 -5
  215. package/dist/platform/control-plane/routes/invocation-params.d.ts +23 -0
  216. package/dist/platform/control-plane/routes/invocation-params.d.ts.map +1 -0
  217. package/dist/platform/control-plane/routes/invocation-params.js +9 -0
  218. package/dist/platform/control-plane/routes/register-w3-s2.d.ts +26 -0
  219. package/dist/platform/control-plane/routes/register-w3-s2.d.ts.map +1 -0
  220. package/dist/platform/control-plane/routes/register-w3-s2.js +8 -0
  221. package/dist/platform/control-plane/routes/session-search.d.ts +37 -0
  222. package/dist/platform/control-plane/routes/session-search.d.ts.map +1 -0
  223. package/dist/platform/control-plane/routes/session-search.js +113 -0
  224. package/dist/platform/control-plane/session-broker-gc.d.ts +16 -0
  225. package/dist/platform/control-plane/session-broker-gc.d.ts.map +1 -1
  226. package/dist/platform/control-plane/session-broker-gc.js +23 -6
  227. package/dist/platform/control-plane/session-broker-helpers.d.ts +3 -3
  228. package/dist/platform/control-plane/session-broker-helpers.d.ts.map +1 -1
  229. package/dist/platform/control-plane/session-broker-inputs.d.ts +18 -0
  230. package/dist/platform/control-plane/session-broker-inputs.d.ts.map +1 -1
  231. package/dist/platform/control-plane/session-broker-inputs.js +34 -0
  232. package/dist/platform/control-plane/session-broker-sessions.d.ts +102 -3
  233. package/dist/platform/control-plane/session-broker-sessions.d.ts.map +1 -1
  234. package/dist/platform/control-plane/session-broker-sessions.js +179 -5
  235. package/dist/platform/control-plane/session-broker-state.d.ts +20 -1
  236. package/dist/platform/control-plane/session-broker-state.d.ts.map +1 -1
  237. package/dist/platform/control-plane/session-broker-state.js +67 -5
  238. package/dist/platform/control-plane/session-broker.d.ts +51 -38
  239. package/dist/platform/control-plane/session-broker.d.ts.map +1 -1
  240. package/dist/platform/control-plane/session-broker.js +183 -75
  241. package/dist/platform/control-plane/session-store-importer.d.ts +57 -0
  242. package/dist/platform/control-plane/session-store-importer.d.ts.map +1 -0
  243. package/dist/platform/control-plane/session-store-importer.js +227 -0
  244. package/dist/platform/control-plane/session-types.d.ts +142 -7
  245. package/dist/platform/control-plane/session-types.d.ts.map +1 -1
  246. package/dist/platform/core/execution-plan.d.ts +43 -1
  247. package/dist/platform/core/execution-plan.d.ts.map +1 -1
  248. package/dist/platform/core/execution-plan.js +46 -10
  249. package/dist/platform/core/index.d.ts +1 -0
  250. package/dist/platform/core/index.d.ts.map +1 -1
  251. package/dist/platform/core/index.js +1 -0
  252. package/dist/platform/core/orchestrator-runtime.d.ts +21 -1
  253. package/dist/platform/core/orchestrator-runtime.d.ts.map +1 -1
  254. package/dist/platform/core/orchestrator-tool-runtime.d.ts +7 -0
  255. package/dist/platform/core/orchestrator-tool-runtime.d.ts.map +1 -1
  256. package/dist/platform/core/orchestrator-tool-runtime.js +10 -0
  257. package/dist/platform/core/orchestrator-turn-loop.d.ts +8 -1
  258. package/dist/platform/core/orchestrator-turn-loop.d.ts.map +1 -1
  259. package/dist/platform/core/orchestrator-turn-loop.js +6 -0
  260. package/dist/platform/core/orchestrator.d.ts +6 -0
  261. package/dist/platform/core/orchestrator.d.ts.map +1 -1
  262. package/dist/platform/core/orchestrator.js +15 -0
  263. package/dist/platform/core/plan-decomposition.d.ts +196 -0
  264. package/dist/platform/core/plan-decomposition.d.ts.map +1 -0
  265. package/dist/platform/core/plan-decomposition.js +417 -0
  266. package/dist/platform/core/plan-proposal.d.ts +39 -0
  267. package/dist/platform/core/plan-proposal.d.ts.map +1 -1
  268. package/dist/platform/core/wrfc-routing.d.ts +1 -0
  269. package/dist/platform/core/wrfc-routing.d.ts.map +1 -1
  270. package/dist/platform/core/wrfc-routing.js +51 -1
  271. package/dist/platform/daemon/boot.d.ts +63 -0
  272. package/dist/platform/daemon/boot.d.ts.map +1 -0
  273. package/dist/platform/daemon/boot.js +60 -0
  274. package/dist/platform/daemon/cli.js +2 -1
  275. package/dist/platform/daemon/control-plane.d.ts.map +1 -1
  276. package/dist/platform/daemon/control-plane.js +50 -1
  277. package/dist/platform/daemon/facade-composition.d.ts.map +1 -1
  278. package/dist/platform/daemon/facade-composition.js +6 -0
  279. package/dist/platform/daemon/facade.d.ts +18 -6
  280. package/dist/platform/daemon/facade.d.ts.map +1 -1
  281. package/dist/platform/daemon/facade.js +50 -43
  282. package/dist/platform/daemon/http/router-route-contexts.d.ts +1 -0
  283. package/dist/platform/daemon/http/router-route-contexts.d.ts.map +1 -1
  284. package/dist/platform/daemon/http/router-route-contexts.js +1 -0
  285. package/dist/platform/daemon/http/router-session-broker-adapter.d.ts +13 -0
  286. package/dist/platform/daemon/http/router-session-broker-adapter.d.ts.map +1 -0
  287. package/dist/platform/daemon/http/router-session-broker-adapter.js +27 -0
  288. package/dist/platform/daemon/http/router.d.ts +1 -1
  289. package/dist/platform/daemon/http/router.d.ts.map +1 -1
  290. package/dist/platform/daemon/http/router.js +7 -22
  291. package/dist/platform/daemon/http/runtime-route-types.d.ts +42 -4
  292. package/dist/platform/daemon/http/runtime-route-types.d.ts.map +1 -1
  293. package/dist/platform/daemon/index.d.ts +2 -0
  294. package/dist/platform/daemon/index.d.ts.map +1 -1
  295. package/dist/platform/daemon/index.js +1 -0
  296. package/dist/platform/daemon/service-manager.d.ts +16 -0
  297. package/dist/platform/daemon/service-manager.d.ts.map +1 -1
  298. package/dist/platform/daemon/service-manager.js +79 -15
  299. package/dist/platform/intelligence/tree-sitter/service.d.ts.map +1 -1
  300. package/dist/platform/intelligence/tree-sitter/service.js +16 -2
  301. package/dist/platform/knowledge/browser-history/readers.d.ts.map +1 -1
  302. package/dist/platform/knowledge/browser-history/readers.js +15 -5
  303. package/dist/platform/knowledge/project-planning/service.d.ts +14 -1
  304. package/dist/platform/knowledge/project-planning/service.d.ts.map +1 -1
  305. package/dist/platform/knowledge/project-planning/service.js +77 -0
  306. package/dist/platform/knowledge/project-planning/types.d.ts +32 -0
  307. package/dist/platform/knowledge/project-planning/types.d.ts.map +1 -1
  308. package/dist/platform/orchestration/bookkeeping.d.ts +12 -0
  309. package/dist/platform/orchestration/bookkeeping.d.ts.map +1 -0
  310. package/dist/platform/orchestration/bookkeeping.js +91 -0
  311. package/dist/platform/orchestration/controller-compat.d.ts +14 -0
  312. package/dist/platform/orchestration/controller-compat.d.ts.map +1 -1
  313. package/dist/platform/orchestration/controller-compat.js +18 -4
  314. package/dist/platform/orchestration/engine.d.ts +26 -1
  315. package/dist/platform/orchestration/engine.d.ts.map +1 -1
  316. package/dist/platform/orchestration/engine.js +226 -21
  317. package/dist/platform/orchestration/index.d.ts +6 -4
  318. package/dist/platform/orchestration/index.d.ts.map +1 -1
  319. package/dist/platform/orchestration/index.js +3 -2
  320. package/dist/platform/orchestration/persistence.d.ts.map +1 -1
  321. package/dist/platform/orchestration/persistence.js +4 -1
  322. package/dist/platform/orchestration/phase-runner.d.ts +29 -2
  323. package/dist/platform/orchestration/phase-runner.d.ts.map +1 -1
  324. package/dist/platform/orchestration/phase-runner.js +98 -25
  325. package/dist/platform/orchestration/proposal-workstream.d.ts +56 -0
  326. package/dist/platform/orchestration/proposal-workstream.d.ts.map +1 -0
  327. package/dist/platform/orchestration/proposal-workstream.js +76 -0
  328. package/dist/platform/orchestration/scheduler.d.ts +19 -0
  329. package/dist/platform/orchestration/scheduler.d.ts.map +1 -1
  330. package/dist/platform/orchestration/scheduler.js +16 -0
  331. package/dist/platform/orchestration/types.d.ts +286 -1
  332. package/dist/platform/orchestration/types.d.ts.map +1 -1
  333. package/dist/platform/orchestration/types.js +32 -0
  334. package/dist/platform/orchestration/worktree-isolation.d.ts +33 -0
  335. package/dist/platform/orchestration/worktree-isolation.d.ts.map +1 -0
  336. package/dist/platform/orchestration/worktree-isolation.js +248 -0
  337. package/dist/platform/presentation/glyphs.d.ts +91 -0
  338. package/dist/platform/presentation/glyphs.d.ts.map +1 -0
  339. package/dist/platform/presentation/glyphs.js +93 -0
  340. package/dist/platform/presentation/index.d.ts +28 -0
  341. package/dist/platform/presentation/index.d.ts.map +1 -0
  342. package/dist/platform/presentation/index.js +27 -0
  343. package/dist/platform/presentation/thinking-phrases.d.ts +12 -0
  344. package/dist/platform/presentation/thinking-phrases.d.ts.map +1 -0
  345. package/dist/platform/presentation/thinking-phrases.js +32 -0
  346. package/dist/platform/presentation/tones.d.ts +121 -0
  347. package/dist/platform/presentation/tones.d.ts.map +1 -0
  348. package/dist/platform/presentation/tones.js +145 -0
  349. package/dist/platform/presentation/waiting-wording.d.ts +54 -0
  350. package/dist/platform/presentation/waiting-wording.d.ts.map +1 -0
  351. package/dist/platform/presentation/waiting-wording.js +51 -0
  352. package/dist/platform/providers/runtime-snapshot.d.ts.map +1 -1
  353. package/dist/platform/providers/runtime-snapshot.js +12 -2
  354. package/dist/platform/runtime/bootstrap-services.d.ts +62 -2
  355. package/dist/platform/runtime/bootstrap-services.d.ts.map +1 -1
  356. package/dist/platform/runtime/bootstrap-services.js +217 -50
  357. package/dist/platform/runtime/daemon-version-compat.d.ts +39 -0
  358. package/dist/platform/runtime/daemon-version-compat.d.ts.map +1 -0
  359. package/dist/platform/runtime/daemon-version-compat.js +75 -0
  360. package/dist/platform/runtime/detached-daemon-runtime.d.ts +26 -0
  361. package/dist/platform/runtime/detached-daemon-runtime.d.ts.map +1 -0
  362. package/dist/platform/runtime/detached-daemon-runtime.js +49 -0
  363. package/dist/platform/runtime/emitters/workflows.d.ts +1 -1
  364. package/dist/platform/runtime/emitters/workflows.d.ts.map +1 -1
  365. package/dist/platform/runtime/events/index.d.ts +13 -0
  366. package/dist/platform/runtime/events/index.d.ts.map +1 -1
  367. package/dist/platform/runtime/events/index.js +13 -0
  368. package/dist/platform/runtime/feature-flags/flags.d.ts.map +1 -1
  369. package/dist/platform/runtime/feature-flags/flags.js +39 -1
  370. package/dist/platform/runtime/fleet/adapters/orchestration.d.ts +40 -18
  371. package/dist/platform/runtime/fleet/adapters/orchestration.d.ts.map +1 -1
  372. package/dist/platform/runtime/fleet/adapters/orchestration.js +138 -34
  373. package/dist/platform/runtime/fleet/adapters/wrfc.d.ts +13 -0
  374. package/dist/platform/runtime/fleet/adapters/wrfc.d.ts.map +1 -1
  375. package/dist/platform/runtime/fleet/adapters/wrfc.js +48 -1
  376. package/dist/platform/runtime/fleet/registry.d.ts.map +1 -1
  377. package/dist/platform/runtime/fleet/registry.js +38 -4
  378. package/dist/platform/runtime/operator-client.d.ts +20 -2
  379. package/dist/platform/runtime/operator-client.d.ts.map +1 -1
  380. package/dist/platform/runtime/operator-client.js +11 -1
  381. package/dist/platform/runtime/provider-accounts/registry.d.ts.map +1 -1
  382. package/dist/platform/runtime/provider-accounts/registry.js +11 -1
  383. package/dist/platform/runtime/services.d.ts +9 -7
  384. package/dist/platform/runtime/services.d.ts.map +1 -1
  385. package/dist/platform/runtime/services.js +19 -4
  386. package/dist/platform/runtime/session-spine/client.d.ts +234 -0
  387. package/dist/platform/runtime/session-spine/client.d.ts.map +1 -0
  388. package/dist/platform/runtime/session-spine/client.js +449 -0
  389. package/dist/platform/runtime/session-spine/index.d.ts +12 -0
  390. package/dist/platform/runtime/session-spine/index.d.ts.map +1 -0
  391. package/dist/platform/runtime/session-spine/index.js +11 -0
  392. package/dist/platform/runtime/session-spine/union-cache.d.ts +225 -0
  393. package/dist/platform/runtime/session-spine/union-cache.d.ts.map +1 -0
  394. package/dist/platform/runtime/session-spine/union-cache.js +333 -0
  395. package/dist/platform/runtime/shell-command-ops.d.ts +3 -1
  396. package/dist/platform/runtime/shell-command-ops.d.ts.map +1 -1
  397. package/dist/platform/runtime/transports/daemon-http-client-validators.d.ts.map +1 -1
  398. package/dist/platform/runtime/transports/daemon-http-client-validators.js +22 -0
  399. package/dist/platform/runtime/transports/daemon-http-client.d.ts.map +1 -1
  400. package/dist/platform/runtime/transports/daemon-http-client.js +25 -2
  401. package/dist/platform/runtime/transports/http-types.d.ts +9 -2
  402. package/dist/platform/runtime/transports/http-types.d.ts.map +1 -1
  403. package/dist/platform/state/canonical-memory.d.ts +95 -0
  404. package/dist/platform/state/canonical-memory.d.ts.map +1 -0
  405. package/dist/platform/state/canonical-memory.js +155 -0
  406. package/dist/platform/state/code-index-reindex.d.ts +73 -0
  407. package/dist/platform/state/code-index-reindex.d.ts.map +1 -0
  408. package/dist/platform/state/code-index-reindex.js +156 -0
  409. package/dist/platform/state/code-index-store.d.ts.map +1 -1
  410. package/dist/platform/state/code-index-store.js +10 -2
  411. package/dist/platform/state/index.d.ts +8 -0
  412. package/dist/platform/state/index.d.ts.map +1 -1
  413. package/dist/platform/state/index.js +4 -0
  414. package/dist/platform/state/memory-recall-contract.d.ts +63 -0
  415. package/dist/platform/state/memory-recall-contract.d.ts.map +1 -0
  416. package/dist/platform/state/memory-recall-contract.js +94 -0
  417. package/dist/platform/state/memory-store.d.ts +2 -0
  418. package/dist/platform/state/memory-store.d.ts.map +1 -1
  419. package/dist/platform/state/memory-store.js +4 -0
  420. package/dist/platform/state/memory-vector-store.d.ts.map +1 -1
  421. package/dist/platform/state/memory-vector-store.js +13 -2
  422. package/dist/platform/state/sqlite-store.d.ts +2 -0
  423. package/dist/platform/state/sqlite-store.d.ts.map +1 -1
  424. package/dist/platform/state/sqlite-store.js +4 -0
  425. package/dist/platform/state/vibe-projection.d.ts +67 -0
  426. package/dist/platform/state/vibe-projection.d.ts.map +1 -0
  427. package/dist/platform/state/vibe-projection.js +115 -0
  428. package/dist/platform/tools/agent/index.d.ts.map +1 -1
  429. package/dist/platform/tools/agent/index.js +8 -0
  430. package/dist/platform/tools/agent/manager.d.ts +12 -0
  431. package/dist/platform/tools/agent/manager.d.ts.map +1 -1
  432. package/dist/platform/tools/agent/manager.js +6 -0
  433. package/dist/platform/tools/agent/schema.d.ts +26 -0
  434. package/dist/platform/tools/agent/schema.d.ts.map +1 -1
  435. package/dist/platform/tools/agent/schema.js +2 -2
  436. package/dist/platform/tools/agent/wrfc-batch-policy.d.ts +13 -0
  437. package/dist/platform/tools/agent/wrfc-batch-policy.d.ts.map +1 -1
  438. package/dist/platform/tools/agent/wrfc-batch-policy.js +60 -0
  439. package/dist/platform/tools/exec/runtime.d.ts +10 -0
  440. package/dist/platform/tools/exec/runtime.d.ts.map +1 -1
  441. package/dist/platform/tools/exec/runtime.js +22 -5
  442. package/dist/platform/tools/exec/schema.d.ts +1 -1
  443. package/dist/platform/tools/exec/schema.d.ts.map +1 -1
  444. package/dist/platform/tools/exec/schema.js +2 -1
  445. package/dist/platform/tools/index.d.ts +2 -0
  446. package/dist/platform/tools/index.d.ts.map +1 -1
  447. package/dist/platform/tools/index.js +2 -0
  448. package/dist/platform/tools/state/index.d.ts +9 -0
  449. package/dist/platform/tools/state/index.d.ts.map +1 -1
  450. package/dist/platform/tools/state/index.js +60 -3
  451. package/dist/platform/types/foundation-contract.d.ts +1 -1
  452. package/dist/platform/types/foundation-contract.d.ts.map +1 -1
  453. package/dist/platform/types/index.d.ts +1 -1
  454. package/dist/platform/types/index.d.ts.map +1 -1
  455. package/dist/platform/version.js +1 -1
  456. package/package.json +21 -9
  457. package/dist/platform/control-plane/routes/automation.d.ts +0 -3
  458. package/dist/platform/control-plane/routes/automation.d.ts.map +0 -1
  459. package/dist/platform/control-plane/routes/automation.js +0 -63
  460. package/dist/platform/control-plane/routes/context.d.ts +0 -2
  461. package/dist/platform/control-plane/routes/context.d.ts.map +0 -1
  462. package/dist/platform/control-plane/routes/context.js +0 -1
  463. package/dist/platform/control-plane/routes/operator.d.ts +0 -8
  464. package/dist/platform/control-plane/routes/operator.d.ts.map +0 -1
  465. package/dist/platform/control-plane/routes/operator.js +0 -415
  466. package/dist/platform/control-plane/routes/remote.d.ts +0 -3
  467. package/dist/platform/control-plane/routes/remote.d.ts.map +0 -1
  468. package/dist/platform/control-plane/routes/remote.js +0 -35
  469. package/dist/platform/control-plane/routes/sessions.d.ts +0 -3
  470. package/dist/platform/control-plane/routes/sessions.d.ts.map +0 -1
  471. package/dist/platform/control-plane/routes/sessions.js +0 -43
  472. package/dist/platform/control-plane/routes/tasks.d.ts +0 -3
  473. package/dist/platform/control-plane/routes/tasks.d.ts.map +0 -1
  474. package/dist/platform/control-plane/routes/tasks.js +0 -22
@@ -104,10 +104,32 @@ export function assertTelemetryMetricsSnapshot(value, endpoint) {
104
104
  }
105
105
  return value;
106
106
  }
107
+ /** The session kinds this build knows. A response carrying anything else is
108
+ * from a newer/older peer; we degrade honestly rather than surface an invalid
109
+ * kind (mixed-version stance — docs/decisions/2026-07-05-session-wire-mixed-version.md). */
110
+ const KNOWN_SESSION_KINDS = new Set([
111
+ 'tui', 'agent', 'webui', 'companion-task', 'companion-chat', 'automation',
112
+ ]);
107
113
  export function normalizeSharedSessionRecord(record) {
108
114
  const candidate = record;
115
+ // Parse-with-backfill so a 0.38-pinned consumer reading a newer daemon's frame
116
+ // (and vice-versa) degrades honestly instead of carrying dishonest values:
117
+ // - absent/blank project → 'unknown' (the documented home-scoped default);
118
+ // - an unknown kind → 'tui' (documented fallback); the raw value is preserved
119
+ // under metadata.wireKind so nothing is silently lost.
120
+ const rawKind = candidate.kind;
121
+ const kindIsKnown = typeof rawKind === 'string' && KNOWN_SESSION_KINDS.has(rawKind);
122
+ const project = typeof candidate.project === 'string' && candidate.project.trim().length > 0
123
+ ? candidate.project
124
+ : 'unknown';
125
+ const baseMetadata = (candidate.metadata && typeof candidate.metadata === 'object')
126
+ ? candidate.metadata
127
+ : {};
109
128
  return {
110
129
  ...candidate,
130
+ kind: kindIsKnown ? rawKind : 'tui',
131
+ project,
132
+ ...(kindIsKnown ? {} : { metadata: { ...baseMetadata, wireKind: rawKind ?? null } }),
111
133
  surfaceKinds: (candidate.surfaceKinds ?? []),
112
134
  participants: (candidate.participants ?? []).map((participant) => ({
113
135
  ...participant,
@@ -1 +1 @@
1
- {"version":3,"file":"daemon-http-client.d.ts","sourceRoot":"","sources":["../../../../src/platform/runtime/transports/daemon-http-client.ts"],"names":[],"mappings":"AAiDA,OAAO,KAAK,EAoBV,aAAa,EAEb,oBAAoB,EAKrB,MAAM,iBAAiB,CAAC;AAsZzB,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,oBAAoB,GAAG,aAAa,CA8ChF"}
1
+ {"version":3,"file":"daemon-http-client.d.ts","sourceRoot":"","sources":["../../../../src/platform/runtime/transports/daemon-http-client.ts"],"names":[],"mappings":"AAmDA,OAAO,KAAK,EAoBV,aAAa,EAEb,oBAAoB,EAKrB,MAAM,iBAAiB,CAAC;AAibzB,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,oBAAoB,GAAG,aAAa,CA8ChF"}
@@ -41,11 +41,26 @@ function createOperatorClient(transport, events) {
41
41
  return response?.session ? normalizeSharedSessionRecord(response.session) : null;
42
42
  },
43
43
  messages: async (sessionId, limit = 100) => (await operatorApi.sessions.messages.list(sessionId, { limit })).messages.map((entry) => normalizeSharedSessionMessage(entry)),
44
- inputs: async (sessionId, limit = 100) => {
45
- const response = await operatorApi.invoke('sessions.inputs.list', { sessionId, limit });
44
+ inputs: async (sessionId, limit = 100, options) => {
45
+ const response = await operatorApi.invoke('sessions.inputs.list', {
46
+ sessionId,
47
+ limit,
48
+ ...(options?.state !== undefined ? { state: options.state } : {}),
49
+ ...(options?.since !== undefined ? { since: options.since } : {}),
50
+ });
46
51
  return (response.inputs ?? []).map((entry) => normalizeSharedSessionInput(entry));
47
52
  },
48
53
  ensureSession: async (input = {}) => normalizeSharedSessionRecord(assertObjectField(await operatorApi.sessions.create(buildSessionEnsureBody(input)), 'session', 'sessions.create')),
54
+ register: async (input) => {
55
+ const response = await operatorApi.invoke('sessions.register', asContractInput(input) ?? {});
56
+ const record = normalizeSharedSessionRecord(assertObjectField(response, 'session', 'sessions.register'));
57
+ const conflictRaw = response['conflict'];
58
+ const conflict = conflictRaw && typeof conflictRaw === 'object'
59
+ && conflictRaw.status === 'closed'
60
+ ? { status: 'closed' }
61
+ : undefined;
62
+ return { record, reopened: response['reopened'] === true, ...(conflict ? { conflict } : {}) };
63
+ },
49
64
  close: async (sessionId) => {
50
65
  const response = await withNullOnNotFound(() => operatorApi.sessions.close(sessionId));
51
66
  return response?.session ? normalizeSharedSessionRecord(response.session) : null;
@@ -61,6 +76,14 @@ function createOperatorClient(transport, events) {
61
76
  const response = await withNullOnNotFound(() => operatorApi.sessions.inputs.cancel(sessionId, inputId));
62
77
  return response?.input ? normalizeSharedSessionInput(response.input) : null;
63
78
  },
79
+ deliverInput: async (sessionId, inputId, options) => {
80
+ const response = await withNullOnNotFound(() => operatorApi.invoke('sessions.inputs.deliver', {
81
+ sessionId,
82
+ inputId,
83
+ ...(options?.consumed === true ? { consumed: true } : {}),
84
+ }));
85
+ return response?.input ? normalizeSharedSessionInput(response.input) : null;
86
+ },
64
87
  },
65
88
  tasks: {
66
89
  snapshot: async () => {
@@ -1,5 +1,5 @@
1
1
  import type { ControlPlaneRecentEvent, ControlPlaneAuthSnapshot, SharedApprovalRecord, SharedSessionInputRecord, SharedSessionMessage, SharedSessionRecord, SharedSessionSubmission } from '../../control-plane/index.js';
2
- import type { SteerSharedSessionMessageInput } from '../../control-plane/index.js';
2
+ import type { RegisterSharedSessionInput, SharedSessionRegisterResult, SteerSharedSessionMessageInput } from '../../control-plane/index.js';
3
3
  import type { ProviderRuntimeSnapshot, ProviderUsageSnapshot } from '../../providers/runtime-snapshot.js';
4
4
  import type { TelemetryAggregates, TelemetryCapabilities, TelemetryFilter, TelemetryListResponse, TelemetryRecord, TelemetryRuntimeSnapshot, TelemetrySnapshot, TelemetryViewMode } from '../telemetry/api.js';
5
5
  import type { DistributedNodeHostContract, DistributedPendingWork, DistributedPeerKind, DistributedPeerRecord, DistributedPeerTokenRecord, DistributedRuntimePairRequest, DistributedWorkPriority } from '../remote/distributed-runtime-types.js';
@@ -44,14 +44,21 @@ export interface HttpTransportSessionsClient {
44
44
  list(limit?: number): Promise<readonly SharedSessionRecord[]>;
45
45
  get(sessionId: string): Promise<SharedSessionRecord | null>;
46
46
  messages(sessionId: string, limit?: number): Promise<readonly SharedSessionMessage[]>;
47
- inputs(sessionId: string, limit?: number): Promise<readonly SharedSessionInputRecord[]>;
47
+ inputs(sessionId: string, limit?: number, options?: {
48
+ readonly state?: string | undefined;
49
+ readonly since?: number | undefined;
50
+ }): Promise<readonly SharedSessionInputRecord[]>;
48
51
  ensureSession(input?: HttpSessionEnsureInput): Promise<SharedSessionRecord>;
52
+ register(input: RegisterSharedSessionInput): Promise<SharedSessionRegisterResult>;
49
53
  close(sessionId: string): Promise<SharedSessionRecord | null>;
50
54
  reopen(sessionId: string): Promise<SharedSessionRecord | null>;
51
55
  submitMessage(sessionId: string, input: HttpSessionMessageInput): Promise<SharedSessionSubmission>;
52
56
  steerMessage(sessionId: string, input: HttpSteerSessionMessageInput): Promise<SharedSessionSubmission>;
53
57
  followUpMessage(sessionId: string, input: HttpSessionMessageInput): Promise<SharedSessionSubmission>;
54
58
  cancelInput(sessionId: string, inputId: string): Promise<SharedSessionInputRecord | null>;
59
+ deliverInput(sessionId: string, inputId: string, options?: {
60
+ readonly consumed?: boolean | undefined;
61
+ }): Promise<SharedSessionInputRecord | null>;
55
62
  }
56
63
  export interface HttpTransportTasksClient {
57
64
  snapshot(): Promise<UiTasksSnapshot>;
@@ -1 +1 @@
1
- {"version":3,"file":"http-types.d.ts","sourceRoot":"","sources":["../../../../src/platform/runtime/transports/http-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,wBAAwB,EACxB,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,EACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,KAAK,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC1G,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,wBAAwB,EACxB,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,2BAA2B,EAC3B,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,0BAA0B,EAC1B,6BAA6B,EAC7B,uBAAuB,EACxB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5H,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAA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EAAE,WAAW,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,CAAC;IACnE,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;CACzD;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,qBAAqB,GAAG,IAAI,CAAC;IAC5C,QAAQ,CAAC,YAAY,EAAE,SAAS,6BAA6B,EAAE,CAAC;IAChE,QAAQ,CAAC,IAAI,EAAE,SAAS,sBAAsB,EAAE,CAAC;IACjD,QAAQ,CAAC,gBAAgB,EAAE,2BAA2B,CAAC;CACxD"}
1
+ {"version":3,"file":"http-types.d.ts","sourceRoot":"","sources":["../../../../src/platform/runtime/transports/http-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,wBAAwB,EACxB,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,EACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAC5I,OAAO,KAAK,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC1G,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,wBAAwB,EACxB,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,2BAA2B,EAC3B,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,0BAA0B,EAC1B,6BAA6B,EAC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,CAAC;CACxD"}
@@ -0,0 +1,95 @@
1
+ /**
2
+ * canonical-memory.ts — the ONE cross-surface memory identity (Wave-6 E6).
3
+ *
4
+ * BACKGROUND (the E6 silo). The MemoryStore engine (memory-store.ts) is a good
5
+ * single engine, but it is instantiated as disjoint SQLite files per surface:
6
+ * - the SDK daemon runtime → <workingDir>/.goodvibes/<surface>/memory.sqlite
7
+ * - the agent → <userRoot>/goodvibes-agent/memory.sqlite (global)
8
+ * - the TUI → <workingDir>/.goodvibes/tui/memory.sqlite
9
+ * A fact learned in one surface is invisible to the others. E6 collapses those to
10
+ * ONE canonical store identity.
11
+ *
12
+ * CANONICAL PLACEMENT (ruled in the Wave-6 decision record). The SQLiteStore is
13
+ * backed by sql.js: every open loads the whole database into memory and every
14
+ * save() rewrites the entire file via writeFileSync. There is no row locking and
15
+ * no WAL, so two live processes writing the SAME file would clobber each other on
16
+ * save — a whole-file lost-update that would DELETE memory, the exact honesty
17
+ * violation E6 must not introduce. Therefore:
18
+ *
19
+ * TARGET (end-state): the daemon owns the single canonical store and surfaces
20
+ * read/write add/search/searchSemantic THROUGH it (one process = one
21
+ * writer). Deferred out of Wave-6 because it adds new wire methods that
22
+ * serialize the land and gate the release train, and cannot be proven
23
+ * under the no-real-daemons test rule.
24
+ *
25
+ * Wave-6 STEP (what this module delivers): one canonical PATH resolver so every
26
+ * surface names the same store identity, plus a no-loss FOLD/RECONCILE
27
+ * primitive built on the existing exportBundle/importBundle seam
28
+ * (memory-sync.ts prior art). Access is sequential/owned, never a naive
29
+ * concurrent shared-file write — folding is an id-keyed union that never
30
+ * overwrites or drops an existing record, so it is safe to run at boot
31
+ * and idempotent on re-run.
32
+ *
33
+ * This module never deletes a source store — like the legacy session fold
34
+ * (session-store-importer.ts), deletion is the GC's job, not migration's. Every
35
+ * fold returns a report so a caller can surface exactly what moved and what was
36
+ * left in place; nothing is ever silently dropped.
37
+ */
38
+ import { MemoryStore } from './memory-store.js';
39
+ import type { MemoryEmbeddingProviderRegistry } from './memory-embeddings.js';
40
+ /** The single cross-surface memory database path, rooted at the user home dir. */
41
+ export declare function resolveCanonicalMemoryDbPath(homeDir: string): string;
42
+ /** A legacy/per-surface store to fold into the canonical store. */
43
+ export interface LegacyMemorySource {
44
+ /** Human-readable label for the report, e.g. 'agent-global' or 'tui:/repo'. */
45
+ readonly label: string;
46
+ /** Absolute path to the source SQLite database. */
47
+ readonly dbPath: string;
48
+ }
49
+ export interface MemoryFoldSourceReport {
50
+ readonly label: string;
51
+ readonly dbPath: string;
52
+ /** false → the source file did not exist and was skipped (not an error). */
53
+ readonly existed: boolean;
54
+ /** Records newly folded into the canonical store from this source. */
55
+ readonly importedRecords: number;
56
+ /**
57
+ * Records already present in the canonical store (same id) and therefore left
58
+ * untouched. NOT dropped — the existing canonical record is authoritative and
59
+ * the source copy is a duplicate. Non-zero here on a re-run proves idempotence.
60
+ */
61
+ readonly skippedRecords: number;
62
+ readonly importedLinks: number;
63
+ /** Present only when the source could not be opened/read; the source is skipped, not fatal. */
64
+ readonly error?: string;
65
+ }
66
+ export interface MemoryFoldReport {
67
+ readonly canonicalPath: string;
68
+ readonly totalImported: number;
69
+ readonly totalSkipped: number;
70
+ readonly totalLinks: number;
71
+ readonly sources: readonly MemoryFoldSourceReport[];
72
+ /** Labels of sources whose file did not exist (skipped, not an error). */
73
+ readonly missingSources: readonly string[];
74
+ /** Labels of sources that failed to open/parse (skipped per-source, run never aborts). */
75
+ readonly failedSources: readonly string[];
76
+ }
77
+ export interface FoldMemoryStoresOptions {
78
+ /** Embedding registry used to open each source store read-only (vector index disabled). */
79
+ readonly embeddingRegistry: MemoryEmbeddingProviderRegistry;
80
+ }
81
+ /**
82
+ * Fold every legacy/per-surface store into the canonical store via the bundle
83
+ * seam. Id-keyed union: an id already in the canonical store is left as-is
84
+ * (counted as skipped), a new id is imported. Never overwrites, never deletes a
85
+ * source, never aborts on one bad source. Idempotent — re-running folds nothing
86
+ * new (all ids already present). Returns a full report.
87
+ *
88
+ * This is the migration path (fold the old per-surface stores in at boot) AND
89
+ * the reconciliation primitive for an offline/embedded surface that cannot share
90
+ * the canonical file live (fold its bundle in when it reconnects).
91
+ */
92
+ export declare function foldMemoryStores(canonical: MemoryStore, sources: readonly LegacyMemorySource[], options: FoldMemoryStoresOptions): Promise<MemoryFoldReport>;
93
+ /** Render a human-readable summary of a fold report (for surfacing at boot). */
94
+ export declare function formatMemoryFoldReport(report: MemoryFoldReport): string;
95
+ //# sourceMappingURL=canonical-memory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"canonical-memory.d.ts","sourceRoot":"","sources":["../../../src/platform/state/canonical-memory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAIH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AAI9E,kFAAkF;AAClF,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEpE;AAED,mEAAmE;AACnE,MAAM,WAAW,kBAAkB;IACjC,+EAA+E;IAC/E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,mDAAmD;IACnD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,4EAA4E;IAC5E,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,sEAAsE;IACtE,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC;;;;OAIG;IACH,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,+FAA+F;IAC/F,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,SAAS,sBAAsB,EAAE,CAAC;IACpD,0EAA0E;IAC1E,QAAQ,CAAC,cAAc,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3C,0FAA0F;IAC1F,QAAQ,CAAC,aAAa,EAAE,SAAS,MAAM,EAAE,CAAC;CAC3C;AAED,MAAM,WAAW,uBAAuB;IACtC,2FAA2F;IAC3F,QAAQ,CAAC,iBAAiB,EAAE,+BAA+B,CAAC;CAC7D;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,gBAAgB,CACpC,SAAS,EAAE,WAAW,EACtB,OAAO,EAAE,SAAS,kBAAkB,EAAE,EACtC,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,gBAAgB,CAAC,CA+E3B;AAED,gFAAgF;AAChF,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAgBvE"}
@@ -0,0 +1,155 @@
1
+ /**
2
+ * canonical-memory.ts — the ONE cross-surface memory identity (Wave-6 E6).
3
+ *
4
+ * BACKGROUND (the E6 silo). The MemoryStore engine (memory-store.ts) is a good
5
+ * single engine, but it is instantiated as disjoint SQLite files per surface:
6
+ * - the SDK daemon runtime → <workingDir>/.goodvibes/<surface>/memory.sqlite
7
+ * - the agent → <userRoot>/goodvibes-agent/memory.sqlite (global)
8
+ * - the TUI → <workingDir>/.goodvibes/tui/memory.sqlite
9
+ * A fact learned in one surface is invisible to the others. E6 collapses those to
10
+ * ONE canonical store identity.
11
+ *
12
+ * CANONICAL PLACEMENT (ruled in the Wave-6 decision record). The SQLiteStore is
13
+ * backed by sql.js: every open loads the whole database into memory and every
14
+ * save() rewrites the entire file via writeFileSync. There is no row locking and
15
+ * no WAL, so two live processes writing the SAME file would clobber each other on
16
+ * save — a whole-file lost-update that would DELETE memory, the exact honesty
17
+ * violation E6 must not introduce. Therefore:
18
+ *
19
+ * TARGET (end-state): the daemon owns the single canonical store and surfaces
20
+ * read/write add/search/searchSemantic THROUGH it (one process = one
21
+ * writer). Deferred out of Wave-6 because it adds new wire methods that
22
+ * serialize the land and gate the release train, and cannot be proven
23
+ * under the no-real-daemons test rule.
24
+ *
25
+ * Wave-6 STEP (what this module delivers): one canonical PATH resolver so every
26
+ * surface names the same store identity, plus a no-loss FOLD/RECONCILE
27
+ * primitive built on the existing exportBundle/importBundle seam
28
+ * (memory-sync.ts prior art). Access is sequential/owned, never a naive
29
+ * concurrent shared-file write — folding is an id-keyed union that never
30
+ * overwrites or drops an existing record, so it is safe to run at boot
31
+ * and idempotent on re-run.
32
+ *
33
+ * This module never deletes a source store — like the legacy session fold
34
+ * (session-store-importer.ts), deletion is the GC's job, not migration's. Every
35
+ * fold returns a report so a caller can surface exactly what moved and what was
36
+ * left in place; nothing is ever silently dropped.
37
+ */
38
+ import { existsSync } from 'node:fs';
39
+ import { join } from 'node:path';
40
+ import { MemoryStore } from './memory-store.js';
41
+ import { logger } from '../utils/logger.js';
42
+ import { summarizeError } from '../utils/error-display.js';
43
+ /** The single cross-surface memory database path, rooted at the user home dir. */
44
+ export function resolveCanonicalMemoryDbPath(homeDir) {
45
+ return join(homeDir, '.goodvibes', 'shared', 'memory.sqlite');
46
+ }
47
+ /**
48
+ * Fold every legacy/per-surface store into the canonical store via the bundle
49
+ * seam. Id-keyed union: an id already in the canonical store is left as-is
50
+ * (counted as skipped), a new id is imported. Never overwrites, never deletes a
51
+ * source, never aborts on one bad source. Idempotent — re-running folds nothing
52
+ * new (all ids already present). Returns a full report.
53
+ *
54
+ * This is the migration path (fold the old per-surface stores in at boot) AND
55
+ * the reconciliation primitive for an offline/embedded surface that cannot share
56
+ * the canonical file live (fold its bundle in when it reconnects).
57
+ */
58
+ export async function foldMemoryStores(canonical, sources, options) {
59
+ await canonical.init();
60
+ const sourceReports = [];
61
+ const missingSources = [];
62
+ const failedSources = [];
63
+ let totalImported = 0;
64
+ let totalSkipped = 0;
65
+ let totalLinks = 0;
66
+ for (const source of sources) {
67
+ if (!existsSync(source.dbPath)) {
68
+ missingSources.push(source.label);
69
+ sourceReports.push({
70
+ label: source.label,
71
+ dbPath: source.dbPath,
72
+ existed: false,
73
+ importedRecords: 0,
74
+ skippedRecords: 0,
75
+ importedLinks: 0,
76
+ });
77
+ continue;
78
+ }
79
+ let sourceStore = null;
80
+ try {
81
+ sourceStore = new MemoryStore(source.dbPath, {
82
+ embeddingRegistry: options.embeddingRegistry,
83
+ enableVectorIndex: false,
84
+ });
85
+ await sourceStore.init();
86
+ const bundle = sourceStore.exportBundle({});
87
+ const result = await canonical.importBundle(bundle);
88
+ totalImported += result.importedRecords;
89
+ totalSkipped += result.skippedRecords;
90
+ totalLinks += result.importedLinks;
91
+ sourceReports.push({
92
+ label: source.label,
93
+ dbPath: source.dbPath,
94
+ existed: true,
95
+ importedRecords: result.importedRecords,
96
+ skippedRecords: result.skippedRecords,
97
+ importedLinks: result.importedLinks,
98
+ });
99
+ }
100
+ catch (err) {
101
+ const error = summarizeError(err);
102
+ failedSources.push(source.label);
103
+ sourceReports.push({
104
+ label: source.label,
105
+ dbPath: source.dbPath,
106
+ existed: true,
107
+ importedRecords: 0,
108
+ skippedRecords: 0,
109
+ importedLinks: 0,
110
+ error,
111
+ });
112
+ logger.warn('foldMemoryStores: source skipped', { label: source.label, error });
113
+ }
114
+ finally {
115
+ sourceStore?.close();
116
+ }
117
+ }
118
+ const report = {
119
+ canonicalPath: canonical.dbPath ?? '(unknown)',
120
+ totalImported,
121
+ totalSkipped,
122
+ totalLinks,
123
+ sources: sourceReports,
124
+ missingSources,
125
+ failedSources,
126
+ };
127
+ logger.info('foldMemoryStores: complete', {
128
+ canonicalPath: report.canonicalPath,
129
+ totalImported,
130
+ totalSkipped,
131
+ missing: missingSources.length,
132
+ failed: failedSources.length,
133
+ });
134
+ return report;
135
+ }
136
+ /** Render a human-readable summary of a fold report (for surfacing at boot). */
137
+ export function formatMemoryFoldReport(report) {
138
+ const lines = [
139
+ 'Memory unification (E6) — fold into canonical store',
140
+ ` canonical ${report.canonicalPath}`,
141
+ ` imported ${report.totalImported} already-present ${report.totalSkipped} links ${report.totalLinks}`,
142
+ ];
143
+ for (const source of report.sources) {
144
+ if (!source.existed) {
145
+ lines.push(` - ${source.label}: no store on disk (nothing to fold)`);
146
+ }
147
+ else if (source.error) {
148
+ lines.push(` - ${source.label}: SKIPPED — ${source.error}`);
149
+ }
150
+ else {
151
+ lines.push(` - ${source.label}: +${source.importedRecords} imported, ${source.skippedRecords} already present, +${source.importedLinks} links`);
152
+ }
153
+ }
154
+ return lines.join('\n');
155
+ }
@@ -0,0 +1,73 @@
1
+ /** SDK-owned platform module. This implementation is maintained in goodvibes-sdk. */
2
+ import type { CodeChunkMode } from './code-index-chunking.js';
3
+ import type { CodeIndexStats } from './code-index-store.js';
4
+ /** Default per-path debounce window: long enough to coalesce a burst of edits to one file, short enough that the index trails the working tree by well under a second. */
5
+ export declare const DEFAULT_REINDEX_DEBOUNCE_MS = 300;
6
+ /** The subset of CodeIndexStore this scheduler drives — kept structural so tests can supply a minimal fake. */
7
+ export interface CodeIndexReindexTarget {
8
+ reindexFile(absPath: string): Promise<{
9
+ indexed: boolean;
10
+ mode: CodeChunkMode;
11
+ }>;
12
+ stats(): Pick<CodeIndexStats, 'available' | 'indexedChunks'>;
13
+ }
14
+ /** Honest record of the most recent reindex the scheduler actually ran (gate passed). */
15
+ export interface CodeIndexReindexActivity {
16
+ /** Absolute path that was reindexed. */
17
+ readonly path: string;
18
+ /** Completion timestamp (ms since epoch). */
19
+ readonly at: number;
20
+ /** 'indexed' when chunks were (re)written; 'skipped' when the file was ignored/too-large/removed (reindexFile returned indexed:false); 'error' when reindexFile threw. */
21
+ readonly status: 'indexed' | 'skipped' | 'error';
22
+ /** The chunk mode reindexFile reported (absent on error). */
23
+ readonly mode?: CodeChunkMode | undefined;
24
+ /** Present exactly when status==='error': the contained failure message. */
25
+ readonly error?: string | undefined;
26
+ }
27
+ export interface CodeIndexReindexSchedulerDeps {
28
+ readonly target: CodeIndexReindexTarget;
29
+ /** Root directory tool-arg paths are resolved against (absolute paths pass through). */
30
+ readonly workingDirectory: string;
31
+ /** Live gate for the embedder's storage.codeIndexEnabled setting. Default: always enabled. */
32
+ readonly isEnabled?: (() => boolean) | undefined;
33
+ /** Per-path debounce window in ms. Default DEFAULT_REINDEX_DEBOUNCE_MS. */
34
+ readonly debounceMs?: number | undefined;
35
+ /** Injectable clock for deterministic activity timestamps in tests. */
36
+ readonly now?: (() => number) | undefined;
37
+ }
38
+ /**
39
+ * Tool names whose successful execution touches files worth reindexing, and the
40
+ * argument shapes that carry the touched path(s). `write` carries `files[].path`;
41
+ * `edit` carries `edits[].path` plus an optional `notebook_operations.path`. A
42
+ * top-level `path`/`file_path` is also honored for robustness against tool
43
+ * variants. Anything else yields no paths (no-op).
44
+ */
45
+ export declare function extractReindexPaths(toolName: string, args: Record<string, unknown>): string[];
46
+ export declare class CodeIndexReindexScheduler {
47
+ private readonly deps;
48
+ private readonly timers;
49
+ private readonly inFlight;
50
+ private last;
51
+ private readonly debounceMs;
52
+ private readonly now;
53
+ constructor(deps: CodeIndexReindexSchedulerDeps);
54
+ /**
55
+ * Entry point wired into both tool-execution loops. A no-op for a failed call
56
+ * or a non-file tool. Extracts touched paths and schedules each (debounced).
57
+ * Returns immediately — never awaits a reindex.
58
+ */
59
+ onToolExecuted(toolName: string, args: Record<string, unknown>, success: boolean): void;
60
+ /** Arm (or reset) the per-path debounce timer for one absolute path. */
61
+ schedule(absPath: string): void;
62
+ /** The most recent reindex the scheduler actually ran, or null if none has completed. */
63
+ lastActivity(): CodeIndexReindexActivity | null;
64
+ /** Count of paths with a pending (debouncing) reindex. */
65
+ pendingCount(): number;
66
+ /** Test/shutdown helper: fire every pending debounce timer now and await all in-flight reindexes. */
67
+ flush(): Promise<void>;
68
+ /** Cancel every pending timer (does not touch in-flight reindexes). */
69
+ dispose(): void;
70
+ private track;
71
+ private runReindex;
72
+ }
73
+ //# sourceMappingURL=code-index-reindex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-index-reindex.d.ts","sourceRoot":"","sources":["../../../src/platform/state/code-index-reindex.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAmCrF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAI5D,0KAA0K;AAC1K,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAE/C,+GAA+G;AAC/G,MAAM,WAAW,sBAAsB;IACrC,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,aAAa,CAAA;KAAE,CAAC,CAAC;IACjF,KAAK,IAAI,IAAI,CAAC,cAAc,EAAE,WAAW,GAAG,eAAe,CAAC,CAAC;CAC9D;AAED,yFAAyF;AACzF,MAAM,WAAW,wBAAwB;IACvC,wCAAwC;IACxC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,0KAA0K;IAC1K,QAAQ,CAAC,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IACjD,6DAA6D;IAC7D,QAAQ,CAAC,IAAI,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IAC1C,4EAA4E;IAC5E,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC;AAED,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAC;IACxC,wFAAwF;IACxF,QAAQ,CAA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