@pellux/goodvibes-sdk 0.37.2 → 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 (555) 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/communication.d.ts +21 -1
  6. package/dist/events/communication.d.ts.map +1 -1
  7. package/dist/events/surfaces.d.ts +25 -3
  8. package/dist/events/surfaces.d.ts.map +1 -1
  9. package/dist/events/surfaces.js +22 -1
  10. package/dist/events/workflows.d.ts +7 -6
  11. package/dist/events/workflows.d.ts.map +1 -1
  12. package/dist/index.d.ts +1 -1
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/platform/agents/archetypes.d.ts.map +1 -1
  15. package/dist/platform/agents/archetypes.js +7 -0
  16. package/dist/platform/agents/index.d.ts +1 -0
  17. package/dist/platform/agents/index.d.ts.map +1 -1
  18. package/dist/platform/agents/index.js +1 -0
  19. package/dist/platform/agents/message-bus-core.d.ts +7 -0
  20. package/dist/platform/agents/message-bus-core.d.ts.map +1 -1
  21. package/dist/platform/agents/message-bus-core.js +2 -1
  22. package/dist/platform/agents/orchestrator-runner.d.ts +50 -1
  23. package/dist/platform/agents/orchestrator-runner.d.ts.map +1 -1
  24. package/dist/platform/agents/orchestrator-runner.js +172 -7
  25. package/dist/platform/agents/orchestrator.d.ts +78 -6
  26. package/dist/platform/agents/orchestrator.d.ts.map +1 -1
  27. package/dist/platform/agents/orchestrator.js +95 -18
  28. package/dist/platform/agents/planner-decomposition-runner.d.ts +38 -0
  29. package/dist/platform/agents/planner-decomposition-runner.d.ts.map +1 -0
  30. package/dist/platform/agents/planner-decomposition-runner.js +113 -0
  31. package/dist/platform/agents/turn-knowledge-injection.d.ts +192 -0
  32. package/dist/platform/agents/turn-knowledge-injection.d.ts.map +1 -0
  33. package/dist/platform/agents/turn-knowledge-injection.js +269 -0
  34. package/dist/platform/agents/worktree.d.ts +126 -8
  35. package/dist/platform/agents/worktree.d.ts.map +1 -1
  36. package/dist/platform/agents/worktree.js +240 -19
  37. package/dist/platform/agents/wrfc-controller.d.ts +46 -0
  38. package/dist/platform/agents/wrfc-controller.d.ts.map +1 -1
  39. package/dist/platform/agents/wrfc-controller.js +213 -32
  40. package/dist/platform/agents/wrfc-gate-runtime.d.ts +9 -0
  41. package/dist/platform/agents/wrfc-gate-runtime.d.ts.map +1 -1
  42. package/dist/platform/agents/wrfc-gate-runtime.js +7 -3
  43. package/dist/platform/agents/wrfc-gates.d.ts +1 -1
  44. package/dist/platform/agents/wrfc-gates.d.ts.map +1 -1
  45. package/dist/platform/agents/wrfc-gates.js +7 -1
  46. package/dist/platform/agents/wrfc-types.d.ts +23 -3
  47. package/dist/platform/agents/wrfc-types.d.ts.map +1 -1
  48. package/dist/platform/automation/types.d.ts +9 -1
  49. package/dist/platform/automation/types.d.ts.map +1 -1
  50. package/dist/platform/calendar/calendar-api-shared.d.ts +25 -0
  51. package/dist/platform/calendar/calendar-api-shared.d.ts.map +1 -0
  52. package/dist/platform/calendar/calendar-api-shared.js +100 -0
  53. package/dist/platform/calendar/calendar-connector.d.ts +79 -0
  54. package/dist/platform/calendar/calendar-connector.d.ts.map +1 -0
  55. package/dist/platform/calendar/calendar-connector.js +155 -0
  56. package/dist/platform/calendar/google-calendar-api.d.ts +25 -0
  57. package/dist/platform/calendar/google-calendar-api.d.ts.map +1 -0
  58. package/dist/platform/calendar/google-calendar-api.js +89 -0
  59. package/dist/platform/calendar/http-fetch-adapter.d.ts +25 -0
  60. package/dist/platform/calendar/http-fetch-adapter.d.ts.map +1 -0
  61. package/dist/platform/calendar/http-fetch-adapter.js +25 -0
  62. package/dist/platform/calendar/ics-parser.d.ts +35 -0
  63. package/dist/platform/calendar/ics-parser.d.ts.map +1 -0
  64. package/dist/platform/calendar/ics-parser.js +236 -0
  65. package/dist/platform/calendar/index.d.ts +41 -0
  66. package/dist/platform/calendar/index.d.ts.map +1 -0
  67. package/dist/platform/calendar/index.js +49 -0
  68. package/dist/platform/calendar/merged-calendar-model.d.ts +67 -0
  69. package/dist/platform/calendar/merged-calendar-model.d.ts.map +1 -0
  70. package/dist/platform/calendar/merged-calendar-model.js +181 -0
  71. package/dist/platform/calendar/microsoft-graph-api.d.ts +25 -0
  72. package/dist/platform/calendar/microsoft-graph-api.d.ts.map +1 -0
  73. package/dist/platform/calendar/microsoft-graph-api.js +95 -0
  74. package/dist/platform/calendar/oauth-flow.d.ts +62 -0
  75. package/dist/platform/calendar/oauth-flow.d.ts.map +1 -0
  76. package/dist/platform/calendar/oauth-flow.js +305 -0
  77. package/dist/platform/calendar/oauth-providers.d.ts +43 -0
  78. package/dist/platform/calendar/oauth-providers.d.ts.map +1 -0
  79. package/dist/platform/calendar/oauth-providers.js +120 -0
  80. package/dist/platform/calendar/oauth-token-store.d.ts +72 -0
  81. package/dist/platform/calendar/oauth-token-store.d.ts.map +1 -0
  82. package/dist/platform/calendar/oauth-token-store.js +189 -0
  83. package/dist/platform/calendar/oauth-types.d.ts +274 -0
  84. package/dist/platform/calendar/oauth-types.d.ts.map +1 -0
  85. package/dist/platform/calendar/oauth-types.js +22 -0
  86. package/dist/platform/calendar/rrule.d.ts +39 -0
  87. package/dist/platform/calendar/rrule.d.ts.map +1 -0
  88. package/dist/platform/calendar/rrule.js +261 -0
  89. package/dist/platform/calendar/subscription-store.d.ts +118 -0
  90. package/dist/platform/calendar/subscription-store.d.ts.map +1 -0
  91. package/dist/platform/calendar/subscription-store.js +293 -0
  92. package/dist/platform/calendar/types.d.ts +170 -0
  93. package/dist/platform/calendar/types.d.ts.map +1 -0
  94. package/dist/platform/calendar/types.js +21 -0
  95. package/dist/platform/companion/companion-chat-attachments.d.ts +29 -0
  96. package/dist/platform/companion/companion-chat-attachments.d.ts.map +1 -0
  97. package/dist/platform/companion/companion-chat-attachments.js +121 -0
  98. package/dist/platform/companion/companion-chat-broker-bridge.d.ts +40 -0
  99. package/dist/platform/companion/companion-chat-broker-bridge.d.ts.map +1 -0
  100. package/dist/platform/companion/companion-chat-broker-bridge.js +14 -0
  101. package/dist/platform/companion/companion-chat-broker-sync.d.ts +38 -0
  102. package/dist/platform/companion/companion-chat-broker-sync.d.ts.map +1 -0
  103. package/dist/platform/companion/companion-chat-broker-sync.js +80 -0
  104. package/dist/platform/companion/companion-chat-gc.d.ts +63 -0
  105. package/dist/platform/companion/companion-chat-gc.d.ts.map +1 -0
  106. package/dist/platform/companion/companion-chat-gc.js +38 -0
  107. package/dist/platform/companion/companion-chat-manager.d.ts +67 -20
  108. package/dist/platform/companion/companion-chat-manager.d.ts.map +1 -1
  109. package/dist/platform/companion/companion-chat-manager.js +130 -144
  110. package/dist/platform/companion/companion-chat-persistence.d.ts +9 -1
  111. package/dist/platform/companion/companion-chat-persistence.d.ts.map +1 -1
  112. package/dist/platform/companion/companion-chat-persistence.js +10 -2
  113. package/dist/platform/companion/companion-chat-routes.d.ts +2 -1
  114. package/dist/platform/companion/companion-chat-routes.d.ts.map +1 -1
  115. package/dist/platform/companion/companion-chat-routes.js +37 -4
  116. package/dist/platform/config/credential-status.d.ts +28 -0
  117. package/dist/platform/config/credential-status.d.ts.map +1 -0
  118. package/dist/platform/config/credential-status.js +75 -0
  119. package/dist/platform/config/index.d.ts +25 -0
  120. package/dist/platform/config/index.d.ts.map +1 -1
  121. package/dist/platform/config/index.js +18 -0
  122. package/dist/platform/config/manager.d.ts +18 -0
  123. package/dist/platform/config/manager.d.ts.map +1 -1
  124. package/dist/platform/config/manager.js +36 -2
  125. package/dist/platform/config/migrations.d.ts +48 -0
  126. package/dist/platform/config/migrations.d.ts.map +1 -0
  127. package/dist/platform/config/migrations.js +54 -0
  128. package/dist/platform/config/schema-domain-core.d.ts +10 -1
  129. package/dist/platform/config/schema-domain-core.d.ts.map +1 -1
  130. package/dist/platform/config/schema-domain-core.js +46 -3
  131. package/dist/platform/config/schema-types.d.ts +13 -7
  132. package/dist/platform/config/schema-types.d.ts.map +1 -1
  133. package/dist/platform/config/schema.d.ts.map +1 -1
  134. package/dist/platform/config/schema.js +2 -0
  135. package/dist/platform/control-plane/approval-broker.d.ts +11 -0
  136. package/dist/platform/control-plane/approval-broker.d.ts.map +1 -1
  137. package/dist/platform/control-plane/approval-broker.js +17 -1
  138. package/dist/platform/control-plane/approval-hunk-apply.d.ts +77 -0
  139. package/dist/platform/control-plane/approval-hunk-apply.d.ts.map +1 -0
  140. package/dist/platform/control-plane/approval-hunk-apply.js +80 -0
  141. package/dist/platform/control-plane/gateway-disabled-response.d.ts +20 -0
  142. package/dist/platform/control-plane/gateway-disabled-response.d.ts.map +1 -0
  143. package/dist/platform/control-plane/gateway-disabled-response.js +24 -0
  144. package/dist/platform/control-plane/gateway-scope-enforcement.d.ts +68 -0
  145. package/dist/platform/control-plane/gateway-scope-enforcement.d.ts.map +1 -0
  146. package/dist/platform/control-plane/gateway-scope-enforcement.js +91 -0
  147. package/dist/platform/control-plane/gateway-utils.d.ts +17 -0
  148. package/dist/platform/control-plane/gateway-utils.d.ts.map +1 -1
  149. package/dist/platform/control-plane/gateway-utils.js +30 -0
  150. package/dist/platform/control-plane/gateway.d.ts +12 -2
  151. package/dist/platform/control-plane/gateway.d.ts.map +1 -1
  152. package/dist/platform/control-plane/gateway.js +27 -31
  153. package/dist/platform/control-plane/index.d.ts +6 -1
  154. package/dist/platform/control-plane/index.d.ts.map +1 -1
  155. package/dist/platform/control-plane/index.js +4 -0
  156. package/dist/platform/control-plane/invoke-input-validation.d.ts +56 -0
  157. package/dist/platform/control-plane/invoke-input-validation.d.ts.map +1 -0
  158. package/dist/platform/control-plane/invoke-input-validation.js +163 -0
  159. package/dist/platform/control-plane/method-catalog-admin.d.ts.map +1 -1
  160. package/dist/platform/control-plane/method-catalog-admin.js +12 -1
  161. package/dist/platform/control-plane/method-catalog-calendar.d.ts +16 -0
  162. package/dist/platform/control-plane/method-catalog-calendar.d.ts.map +1 -1
  163. package/dist/platform/control-plane/method-catalog-calendar.js +21 -0
  164. package/dist/platform/control-plane/method-catalog-channels.d.ts.map +1 -1
  165. package/dist/platform/control-plane/method-catalog-channels.js +32 -3
  166. package/dist/platform/control-plane/method-catalog-control-automation.d.ts.map +1 -1
  167. package/dist/platform/control-plane/method-catalog-control-automation.js +19 -34
  168. package/dist/platform/control-plane/method-catalog-control-companion.d.ts +15 -0
  169. package/dist/platform/control-plane/method-catalog-control-companion.d.ts.map +1 -0
  170. package/dist/platform/control-plane/method-catalog-control-companion.js +133 -0
  171. package/dist/platform/control-plane/method-catalog-control-core.d.ts.map +1 -1
  172. package/dist/platform/control-plane/method-catalog-control-core.js +104 -122
  173. package/dist/platform/control-plane/method-catalog-control.d.ts.map +1 -1
  174. package/dist/platform/control-plane/method-catalog-control.js +4 -0
  175. package/dist/platform/control-plane/method-catalog-email.d.ts +17 -0
  176. package/dist/platform/control-plane/method-catalog-email.d.ts.map +1 -1
  177. package/dist/platform/control-plane/method-catalog-email.js +21 -0
  178. package/dist/platform/control-plane/method-catalog-events.d.ts +28 -0
  179. package/dist/platform/control-plane/method-catalog-events.d.ts.map +1 -1
  180. package/dist/platform/control-plane/method-catalog-events.js +74 -1
  181. package/dist/platform/control-plane/method-catalog-fleet.d.ts +24 -0
  182. package/dist/platform/control-plane/method-catalog-fleet.d.ts.map +1 -0
  183. package/dist/platform/control-plane/method-catalog-fleet.js +65 -0
  184. package/dist/platform/control-plane/method-catalog-route-reconcile.d.ts +84 -0
  185. package/dist/platform/control-plane/method-catalog-route-reconcile.d.ts.map +1 -0
  186. package/dist/platform/control-plane/method-catalog-route-reconcile.js +103 -0
  187. package/dist/platform/control-plane/method-catalog-shared.d.ts +29 -0
  188. package/dist/platform/control-plane/method-catalog-shared.d.ts.map +1 -1
  189. package/dist/platform/control-plane/method-catalog.d.ts +9 -0
  190. package/dist/platform/control-plane/method-catalog.d.ts.map +1 -1
  191. package/dist/platform/control-plane/method-catalog.js +32 -3
  192. package/dist/platform/control-plane/operator-contract-schemas-admin.d.ts +8 -0
  193. package/dist/platform/control-plane/operator-contract-schemas-admin.d.ts.map +1 -1
  194. package/dist/platform/control-plane/operator-contract-schemas-admin.js +22 -1
  195. package/dist/platform/control-plane/operator-contract-schemas-fleet.d.ts +18 -0
  196. package/dist/platform/control-plane/operator-contract-schemas-fleet.d.ts.map +1 -0
  197. package/dist/platform/control-plane/operator-contract-schemas-fleet.js +182 -0
  198. package/dist/platform/control-plane/operator-contract-schemas-permissions.d.ts.map +1 -1
  199. package/dist/platform/control-plane/operator-contract-schemas-permissions.js +5 -0
  200. package/dist/platform/control-plane/operator-contract-schemas-runtime.d.ts +29 -0
  201. package/dist/platform/control-plane/operator-contract-schemas-runtime.d.ts.map +1 -1
  202. package/dist/platform/control-plane/operator-contract-schemas-runtime.js +57 -3
  203. package/dist/platform/control-plane/operator-contract-schemas.d.ts +1 -0
  204. package/dist/platform/control-plane/operator-contract-schemas.d.ts.map +1 -1
  205. package/dist/platform/control-plane/operator-contract-schemas.js +1 -0
  206. package/dist/platform/control-plane/operator-contract.d.ts.map +1 -1
  207. package/dist/platform/control-plane/operator-contract.js +8 -0
  208. package/dist/platform/control-plane/routes/checkpoints.d.ts +39 -0
  209. package/dist/platform/control-plane/routes/checkpoints.d.ts.map +1 -0
  210. package/dist/platform/control-plane/routes/checkpoints.js +166 -0
  211. package/dist/platform/control-plane/routes/fleet.d.ts +53 -0
  212. package/dist/platform/control-plane/routes/fleet.d.ts.map +1 -0
  213. package/dist/platform/control-plane/routes/fleet.js +153 -0
  214. package/dist/platform/control-plane/routes/gateway-verb-error.d.ts +30 -0
  215. package/dist/platform/control-plane/routes/gateway-verb-error.d.ts.map +1 -0
  216. package/dist/platform/control-plane/routes/gateway-verb-error.js +36 -0
  217. package/dist/platform/control-plane/routes/index.d.ts +0 -6
  218. package/dist/platform/control-plane/routes/index.d.ts.map +1 -1
  219. package/dist/platform/control-plane/routes/index.js +5 -5
  220. package/dist/platform/control-plane/routes/invocation-params.d.ts +23 -0
  221. package/dist/platform/control-plane/routes/invocation-params.d.ts.map +1 -0
  222. package/dist/platform/control-plane/routes/invocation-params.js +9 -0
  223. package/dist/platform/control-plane/routes/register-w3-s2.d.ts +26 -0
  224. package/dist/platform/control-plane/routes/register-w3-s2.d.ts.map +1 -0
  225. package/dist/platform/control-plane/routes/register-w3-s2.js +8 -0
  226. package/dist/platform/control-plane/routes/session-search.d.ts +37 -0
  227. package/dist/platform/control-plane/routes/session-search.d.ts.map +1 -0
  228. package/dist/platform/control-plane/routes/session-search.js +113 -0
  229. package/dist/platform/control-plane/session-broker-gc.d.ts +16 -0
  230. package/dist/platform/control-plane/session-broker-gc.d.ts.map +1 -1
  231. package/dist/platform/control-plane/session-broker-gc.js +23 -6
  232. package/dist/platform/control-plane/session-broker-helpers.d.ts +3 -3
  233. package/dist/platform/control-plane/session-broker-helpers.d.ts.map +1 -1
  234. package/dist/platform/control-plane/session-broker-inputs.d.ts +18 -0
  235. package/dist/platform/control-plane/session-broker-inputs.d.ts.map +1 -1
  236. package/dist/platform/control-plane/session-broker-inputs.js +34 -0
  237. package/dist/platform/control-plane/session-broker-sessions.d.ts +102 -3
  238. package/dist/platform/control-plane/session-broker-sessions.d.ts.map +1 -1
  239. package/dist/platform/control-plane/session-broker-sessions.js +179 -5
  240. package/dist/platform/control-plane/session-broker-state.d.ts +20 -1
  241. package/dist/platform/control-plane/session-broker-state.d.ts.map +1 -1
  242. package/dist/platform/control-plane/session-broker-state.js +67 -5
  243. package/dist/platform/control-plane/session-broker.d.ts +51 -38
  244. package/dist/platform/control-plane/session-broker.d.ts.map +1 -1
  245. package/dist/platform/control-plane/session-broker.js +183 -75
  246. package/dist/platform/control-plane/session-store-importer.d.ts +57 -0
  247. package/dist/platform/control-plane/session-store-importer.d.ts.map +1 -0
  248. package/dist/platform/control-plane/session-store-importer.js +227 -0
  249. package/dist/platform/control-plane/session-types.d.ts +142 -7
  250. package/dist/platform/control-plane/session-types.d.ts.map +1 -1
  251. package/dist/platform/core/adaptive-planner.d.ts +50 -0
  252. package/dist/platform/core/adaptive-planner.d.ts.map +1 -1
  253. package/dist/platform/core/adaptive-planner.js +49 -0
  254. package/dist/platform/core/execution-plan.d.ts +43 -1
  255. package/dist/platform/core/execution-plan.d.ts.map +1 -1
  256. package/dist/platform/core/execution-plan.js +46 -10
  257. package/dist/platform/core/index.d.ts +2 -0
  258. package/dist/platform/core/index.d.ts.map +1 -1
  259. package/dist/platform/core/index.js +2 -0
  260. package/dist/platform/core/orchestrator-runtime.d.ts +31 -0
  261. package/dist/platform/core/orchestrator-runtime.d.ts.map +1 -1
  262. package/dist/platform/core/orchestrator-tool-runtime.d.ts +7 -0
  263. package/dist/platform/core/orchestrator-tool-runtime.d.ts.map +1 -1
  264. package/dist/platform/core/orchestrator-tool-runtime.js +10 -0
  265. package/dist/platform/core/orchestrator-turn-loop.d.ts +35 -1
  266. package/dist/platform/core/orchestrator-turn-loop.d.ts.map +1 -1
  267. package/dist/platform/core/orchestrator-turn-loop.js +121 -3
  268. package/dist/platform/core/orchestrator.d.ts +67 -0
  269. package/dist/platform/core/orchestrator.d.ts.map +1 -1
  270. package/dist/platform/core/orchestrator.js +89 -1
  271. package/dist/platform/core/plan-decomposition.d.ts +196 -0
  272. package/dist/platform/core/plan-decomposition.d.ts.map +1 -0
  273. package/dist/platform/core/plan-decomposition.js +417 -0
  274. package/dist/platform/core/plan-proposal.d.ts +204 -0
  275. package/dist/platform/core/plan-proposal.d.ts.map +1 -0
  276. package/dist/platform/core/plan-proposal.js +296 -0
  277. package/dist/platform/core/wrfc-routing.d.ts +1 -0
  278. package/dist/platform/core/wrfc-routing.d.ts.map +1 -1
  279. package/dist/platform/core/wrfc-routing.js +51 -1
  280. package/dist/platform/daemon/boot.d.ts +63 -0
  281. package/dist/platform/daemon/boot.d.ts.map +1 -0
  282. package/dist/platform/daemon/boot.js +60 -0
  283. package/dist/platform/daemon/cli.js +2 -1
  284. package/dist/platform/daemon/control-plane.d.ts.map +1 -1
  285. package/dist/platform/daemon/control-plane.js +50 -1
  286. package/dist/platform/daemon/facade-composition.d.ts.map +1 -1
  287. package/dist/platform/daemon/facade-composition.js +6 -0
  288. package/dist/platform/daemon/facade.d.ts +18 -6
  289. package/dist/platform/daemon/facade.d.ts.map +1 -1
  290. package/dist/platform/daemon/facade.js +50 -43
  291. package/dist/platform/daemon/http/router-route-contexts.d.ts +1 -0
  292. package/dist/platform/daemon/http/router-route-contexts.d.ts.map +1 -1
  293. package/dist/platform/daemon/http/router-route-contexts.js +1 -0
  294. package/dist/platform/daemon/http/router-session-broker-adapter.d.ts +13 -0
  295. package/dist/platform/daemon/http/router-session-broker-adapter.d.ts.map +1 -0
  296. package/dist/platform/daemon/http/router-session-broker-adapter.js +27 -0
  297. package/dist/platform/daemon/http/router.d.ts +1 -1
  298. package/dist/platform/daemon/http/router.d.ts.map +1 -1
  299. package/dist/platform/daemon/http/router.js +7 -22
  300. package/dist/platform/daemon/http/runtime-route-types.d.ts +42 -4
  301. package/dist/platform/daemon/http/runtime-route-types.d.ts.map +1 -1
  302. package/dist/platform/daemon/index.d.ts +2 -0
  303. package/dist/platform/daemon/index.d.ts.map +1 -1
  304. package/dist/platform/daemon/index.js +1 -0
  305. package/dist/platform/daemon/service-manager.d.ts +16 -0
  306. package/dist/platform/daemon/service-manager.d.ts.map +1 -1
  307. package/dist/platform/daemon/service-manager.js +79 -15
  308. package/dist/platform/intelligence/tree-sitter/service.d.ts.map +1 -1
  309. package/dist/platform/intelligence/tree-sitter/service.js +16 -2
  310. package/dist/platform/knowledge/browser-history/readers.d.ts.map +1 -1
  311. package/dist/platform/knowledge/browser-history/readers.js +15 -5
  312. package/dist/platform/knowledge/knowledge-api.d.ts +26 -0
  313. package/dist/platform/knowledge/knowledge-api.d.ts.map +1 -1
  314. package/dist/platform/knowledge/knowledge-api.js +11 -0
  315. package/dist/platform/knowledge/project-planning/service.d.ts +14 -1
  316. package/dist/platform/knowledge/project-planning/service.d.ts.map +1 -1
  317. package/dist/platform/knowledge/project-planning/service.js +77 -0
  318. package/dist/platform/knowledge/project-planning/types.d.ts +32 -0
  319. package/dist/platform/knowledge/project-planning/types.d.ts.map +1 -1
  320. package/dist/platform/orchestration/bookkeeping.d.ts +12 -0
  321. package/dist/platform/orchestration/bookkeeping.d.ts.map +1 -0
  322. package/dist/platform/orchestration/bookkeeping.js +91 -0
  323. package/dist/platform/orchestration/budget.d.ts +22 -0
  324. package/dist/platform/orchestration/budget.d.ts.map +1 -0
  325. package/dist/platform/orchestration/budget.js +35 -0
  326. package/dist/platform/orchestration/cancellation.d.ts +31 -0
  327. package/dist/platform/orchestration/cancellation.d.ts.map +1 -0
  328. package/dist/platform/orchestration/cancellation.js +25 -0
  329. package/dist/platform/orchestration/controller-compat.d.ts +46 -0
  330. package/dist/platform/orchestration/controller-compat.d.ts.map +1 -0
  331. package/dist/platform/orchestration/controller-compat.js +27 -0
  332. package/dist/platform/orchestration/dirty-guard.d.ts +32 -0
  333. package/dist/platform/orchestration/dirty-guard.d.ts.map +1 -0
  334. package/dist/platform/orchestration/dirty-guard.js +147 -0
  335. package/dist/platform/orchestration/engine.d.ts +82 -0
  336. package/dist/platform/orchestration/engine.d.ts.map +1 -0
  337. package/dist/platform/orchestration/engine.js +623 -0
  338. package/dist/platform/orchestration/index.d.ts +20 -0
  339. package/dist/platform/orchestration/index.d.ts.map +1 -0
  340. package/dist/platform/orchestration/index.js +11 -0
  341. package/dist/platform/orchestration/persistence.d.ts +24 -0
  342. package/dist/platform/orchestration/persistence.d.ts.map +1 -0
  343. package/dist/platform/orchestration/persistence.js +179 -0
  344. package/dist/platform/orchestration/phase-runner.d.ts +114 -0
  345. package/dist/platform/orchestration/phase-runner.d.ts.map +1 -0
  346. package/dist/platform/orchestration/phase-runner.js +347 -0
  347. package/dist/platform/orchestration/proposal-workstream.d.ts +56 -0
  348. package/dist/platform/orchestration/proposal-workstream.d.ts.map +1 -0
  349. package/dist/platform/orchestration/proposal-workstream.js +76 -0
  350. package/dist/platform/orchestration/scheduler.d.ts +64 -0
  351. package/dist/platform/orchestration/scheduler.d.ts.map +1 -0
  352. package/dist/platform/orchestration/scheduler.js +73 -0
  353. package/dist/platform/orchestration/types.d.ts +535 -0
  354. package/dist/platform/orchestration/types.d.ts.map +1 -0
  355. package/dist/platform/orchestration/types.js +47 -0
  356. package/dist/platform/orchestration/worktree-isolation.d.ts +33 -0
  357. package/dist/platform/orchestration/worktree-isolation.d.ts.map +1 -0
  358. package/dist/platform/orchestration/worktree-isolation.js +248 -0
  359. package/dist/platform/presentation/glyphs.d.ts +91 -0
  360. package/dist/platform/presentation/glyphs.d.ts.map +1 -0
  361. package/dist/platform/presentation/glyphs.js +93 -0
  362. package/dist/platform/presentation/index.d.ts +28 -0
  363. package/dist/platform/presentation/index.d.ts.map +1 -0
  364. package/dist/platform/presentation/index.js +27 -0
  365. package/dist/platform/presentation/thinking-phrases.d.ts +12 -0
  366. package/dist/platform/presentation/thinking-phrases.d.ts.map +1 -0
  367. package/dist/platform/presentation/thinking-phrases.js +32 -0
  368. package/dist/platform/presentation/tones.d.ts +121 -0
  369. package/dist/platform/presentation/tones.d.ts.map +1 -0
  370. package/dist/platform/presentation/tones.js +145 -0
  371. package/dist/platform/presentation/waiting-wording.d.ts +54 -0
  372. package/dist/platform/presentation/waiting-wording.d.ts.map +1 -0
  373. package/dist/platform/presentation/waiting-wording.js +51 -0
  374. package/dist/platform/providers/runtime-snapshot.d.ts.map +1 -1
  375. package/dist/platform/providers/runtime-snapshot.js +12 -2
  376. package/dist/platform/runtime/bootstrap-services.d.ts +62 -2
  377. package/dist/platform/runtime/bootstrap-services.d.ts.map +1 -1
  378. package/dist/platform/runtime/bootstrap-services.js +217 -50
  379. package/dist/platform/runtime/daemon-version-compat.d.ts +39 -0
  380. package/dist/platform/runtime/daemon-version-compat.d.ts.map +1 -0
  381. package/dist/platform/runtime/daemon-version-compat.js +75 -0
  382. package/dist/platform/runtime/detached-daemon-runtime.d.ts +26 -0
  383. package/dist/platform/runtime/detached-daemon-runtime.d.ts.map +1 -0
  384. package/dist/platform/runtime/detached-daemon-runtime.js +49 -0
  385. package/dist/platform/runtime/emitters/communication.d.ts +11 -0
  386. package/dist/platform/runtime/emitters/communication.d.ts.map +1 -1
  387. package/dist/platform/runtime/emitters/communication.js +9 -0
  388. package/dist/platform/runtime/emitters/workflows.d.ts +1 -1
  389. package/dist/platform/runtime/emitters/workflows.d.ts.map +1 -1
  390. package/dist/platform/runtime/events/index.d.ts +13 -0
  391. package/dist/platform/runtime/events/index.d.ts.map +1 -1
  392. package/dist/platform/runtime/events/index.js +13 -0
  393. package/dist/platform/runtime/feature-flags/flags.d.ts.map +1 -1
  394. package/dist/platform/runtime/feature-flags/flags.js +56 -1
  395. package/dist/platform/runtime/fleet/adapters/agent.d.ts +56 -0
  396. package/dist/platform/runtime/fleet/adapters/agent.d.ts.map +1 -0
  397. package/dist/platform/runtime/fleet/adapters/agent.js +143 -0
  398. package/dist/platform/runtime/fleet/adapters/automation.d.ts +30 -0
  399. package/dist/platform/runtime/fleet/adapters/automation.d.ts.map +1 -0
  400. package/dist/platform/runtime/fleet/adapters/automation.js +41 -0
  401. package/dist/platform/runtime/fleet/adapters/background-process.d.ts +12 -0
  402. package/dist/platform/runtime/fleet/adapters/background-process.d.ts.map +1 -0
  403. package/dist/platform/runtime/fleet/adapters/background-process.js +46 -0
  404. package/dist/platform/runtime/fleet/adapters/code-index.d.ts +21 -0
  405. package/dist/platform/runtime/fleet/adapters/code-index.d.ts.map +1 -0
  406. package/dist/platform/runtime/fleet/adapters/code-index.js +44 -0
  407. package/dist/platform/runtime/fleet/adapters/orchestration.d.ts +69 -0
  408. package/dist/platform/runtime/fleet/adapters/orchestration.d.ts.map +1 -0
  409. package/dist/platform/runtime/fleet/adapters/orchestration.js +329 -0
  410. package/dist/platform/runtime/fleet/adapters/schedule.d.ts +14 -0
  411. package/dist/platform/runtime/fleet/adapters/schedule.d.ts.map +1 -0
  412. package/dist/platform/runtime/fleet/adapters/schedule.js +28 -0
  413. package/dist/platform/runtime/fleet/adapters/trigger.d.ts +12 -0
  414. package/dist/platform/runtime/fleet/adapters/trigger.d.ts.map +1 -0
  415. package/dist/platform/runtime/fleet/adapters/trigger.js +22 -0
  416. package/dist/platform/runtime/fleet/adapters/watcher.d.ts +13 -0
  417. package/dist/platform/runtime/fleet/adapters/watcher.d.ts.map +1 -0
  418. package/dist/platform/runtime/fleet/adapters/watcher.js +47 -0
  419. package/dist/platform/runtime/fleet/adapters/workflow.d.ts +11 -0
  420. package/dist/platform/runtime/fleet/adapters/workflow.d.ts.map +1 -0
  421. package/dist/platform/runtime/fleet/adapters/workflow.js +34 -0
  422. package/dist/platform/runtime/fleet/adapters/wrfc.d.ts +35 -0
  423. package/dist/platform/runtime/fleet/adapters/wrfc.d.ts.map +1 -0
  424. package/dist/platform/runtime/fleet/adapters/wrfc.js +275 -0
  425. package/dist/platform/runtime/fleet/index.d.ts +10 -0
  426. package/dist/platform/runtime/fleet/index.d.ts.map +1 -0
  427. package/dist/platform/runtime/fleet/index.js +6 -0
  428. package/dist/platform/runtime/fleet/registry.d.ts +113 -0
  429. package/dist/platform/runtime/fleet/registry.d.ts.map +1 -0
  430. package/dist/platform/runtime/fleet/registry.js +664 -0
  431. package/dist/platform/runtime/fleet/types.d.ts +199 -0
  432. package/dist/platform/runtime/fleet/types.d.ts.map +1 -0
  433. package/dist/platform/runtime/fleet/types.js +2 -0
  434. package/dist/platform/runtime/operator-client.d.ts +20 -2
  435. package/dist/platform/runtime/operator-client.d.ts.map +1 -1
  436. package/dist/platform/runtime/operator-client.js +11 -1
  437. package/dist/platform/runtime/provider-accounts/registry.d.ts.map +1 -1
  438. package/dist/platform/runtime/provider-accounts/registry.js +11 -1
  439. package/dist/platform/runtime/runtime-knowledge-api.d.ts +1 -1
  440. package/dist/platform/runtime/runtime-knowledge-api.d.ts.map +1 -1
  441. package/dist/platform/runtime/runtime-knowledge-api.js +1 -0
  442. package/dist/platform/runtime/services.d.ts +48 -0
  443. package/dist/platform/runtime/services.d.ts.map +1 -1
  444. package/dist/platform/runtime/services.js +95 -2
  445. package/dist/platform/runtime/session-spine/client.d.ts +234 -0
  446. package/dist/platform/runtime/session-spine/client.d.ts.map +1 -0
  447. package/dist/platform/runtime/session-spine/client.js +449 -0
  448. package/dist/platform/runtime/session-spine/index.d.ts +12 -0
  449. package/dist/platform/runtime/session-spine/index.d.ts.map +1 -0
  450. package/dist/platform/runtime/session-spine/index.js +11 -0
  451. package/dist/platform/runtime/session-spine/union-cache.d.ts +225 -0
  452. package/dist/platform/runtime/session-spine/union-cache.d.ts.map +1 -0
  453. package/dist/platform/runtime/session-spine/union-cache.js +333 -0
  454. package/dist/platform/runtime/shell-command-ops.d.ts +3 -1
  455. package/dist/platform/runtime/shell-command-ops.d.ts.map +1 -1
  456. package/dist/platform/runtime/transports/daemon-http-client-validators.d.ts.map +1 -1
  457. package/dist/platform/runtime/transports/daemon-http-client-validators.js +22 -0
  458. package/dist/platform/runtime/transports/daemon-http-client.d.ts.map +1 -1
  459. package/dist/platform/runtime/transports/daemon-http-client.js +25 -2
  460. package/dist/platform/runtime/transports/http-types.d.ts +9 -2
  461. package/dist/platform/runtime/transports/http-types.d.ts.map +1 -1
  462. package/dist/platform/state/canonical-memory.d.ts +95 -0
  463. package/dist/platform/state/canonical-memory.d.ts.map +1 -0
  464. package/dist/platform/state/canonical-memory.js +155 -0
  465. package/dist/platform/state/code-index-chunking.d.ts +49 -0
  466. package/dist/platform/state/code-index-chunking.d.ts.map +1 -0
  467. package/dist/platform/state/code-index-chunking.js +111 -0
  468. package/dist/platform/state/code-index-db.d.ts +53 -0
  469. package/dist/platform/state/code-index-db.d.ts.map +1 -0
  470. package/dist/platform/state/code-index-db.js +101 -0
  471. package/dist/platform/state/code-index-reindex.d.ts +73 -0
  472. package/dist/platform/state/code-index-reindex.d.ts.map +1 -0
  473. package/dist/platform/state/code-index-reindex.js +156 -0
  474. package/dist/platform/state/code-index-store.d.ts +175 -0
  475. package/dist/platform/state/code-index-store.d.ts.map +1 -0
  476. package/dist/platform/state/code-index-store.js +620 -0
  477. package/dist/platform/state/index.d.ts +12 -2
  478. package/dist/platform/state/index.d.ts.map +1 -1
  479. package/dist/platform/state/index.js +6 -1
  480. package/dist/platform/state/knowledge-injection.d.ts +23 -0
  481. package/dist/platform/state/knowledge-injection.d.ts.map +1 -1
  482. package/dist/platform/state/knowledge-injection.js +34 -19
  483. package/dist/platform/state/memory-recall-contract.d.ts +63 -0
  484. package/dist/platform/state/memory-recall-contract.d.ts.map +1 -0
  485. package/dist/platform/state/memory-recall-contract.js +94 -0
  486. package/dist/platform/state/memory-store.d.ts +2 -0
  487. package/dist/platform/state/memory-store.d.ts.map +1 -1
  488. package/dist/platform/state/memory-store.js +4 -0
  489. package/dist/platform/state/memory-vector-store.d.ts +1 -13
  490. package/dist/platform/state/memory-vector-store.d.ts.map +1 -1
  491. package/dist/platform/state/memory-vector-store.js +18 -39
  492. package/dist/platform/state/sqlite-store.d.ts +2 -0
  493. package/dist/platform/state/sqlite-store.d.ts.map +1 -1
  494. package/dist/platform/state/sqlite-store.js +4 -0
  495. package/dist/platform/state/sqlite-vec-loader.d.ts +25 -0
  496. package/dist/platform/state/sqlite-vec-loader.d.ts.map +1 -0
  497. package/dist/platform/state/sqlite-vec-loader.js +43 -0
  498. package/dist/platform/state/vibe-projection.d.ts +67 -0
  499. package/dist/platform/state/vibe-projection.d.ts.map +1 -0
  500. package/dist/platform/state/vibe-projection.js +115 -0
  501. package/dist/platform/tools/agent/index.d.ts.map +1 -1
  502. package/dist/platform/tools/agent/index.js +8 -0
  503. package/dist/platform/tools/agent/manager.d.ts +140 -1
  504. package/dist/platform/tools/agent/manager.d.ts.map +1 -1
  505. package/dist/platform/tools/agent/manager.js +143 -1
  506. package/dist/platform/tools/agent/schema.d.ts +26 -0
  507. package/dist/platform/tools/agent/schema.d.ts.map +1 -1
  508. package/dist/platform/tools/agent/schema.js +2 -2
  509. package/dist/platform/tools/agent/wrfc-batch-policy.d.ts +13 -0
  510. package/dist/platform/tools/agent/wrfc-batch-policy.d.ts.map +1 -1
  511. package/dist/platform/tools/agent/wrfc-batch-policy.js +60 -0
  512. package/dist/platform/tools/exec/runtime.d.ts +10 -0
  513. package/dist/platform/tools/exec/runtime.d.ts.map +1 -1
  514. package/dist/platform/tools/exec/runtime.js +161 -49
  515. package/dist/platform/tools/exec/schema.d.ts +3 -1
  516. package/dist/platform/tools/exec/schema.d.ts.map +1 -1
  517. package/dist/platform/tools/exec/schema.js +2 -1
  518. package/dist/platform/tools/fetch/runtime.d.ts +7 -0
  519. package/dist/platform/tools/fetch/runtime.d.ts.map +1 -1
  520. package/dist/platform/tools/fetch/runtime.js +8 -6
  521. package/dist/platform/tools/index.d.ts +2 -0
  522. package/dist/platform/tools/index.d.ts.map +1 -1
  523. package/dist/platform/tools/index.js +2 -0
  524. package/dist/platform/tools/registry.d.ts +9 -3
  525. package/dist/platform/tools/registry.d.ts.map +1 -1
  526. package/dist/platform/tools/registry.js +9 -3
  527. package/dist/platform/tools/state/index.d.ts +9 -0
  528. package/dist/platform/tools/state/index.d.ts.map +1 -1
  529. package/dist/platform/tools/state/index.js +60 -3
  530. package/dist/platform/types/foundation-contract.d.ts +1 -1
  531. package/dist/platform/types/foundation-contract.d.ts.map +1 -1
  532. package/dist/platform/types/index.d.ts +1 -1
  533. package/dist/platform/types/index.d.ts.map +1 -1
  534. package/dist/platform/types/tools.d.ts +14 -1
  535. package/dist/platform/types/tools.d.ts.map +1 -1
  536. package/dist/platform/version.js +1 -1
  537. package/package.json +29 -9
  538. package/dist/platform/control-plane/routes/automation.d.ts +0 -3
  539. package/dist/platform/control-plane/routes/automation.d.ts.map +0 -1
  540. package/dist/platform/control-plane/routes/automation.js +0 -63
  541. package/dist/platform/control-plane/routes/context.d.ts +0 -2
  542. package/dist/platform/control-plane/routes/context.d.ts.map +0 -1
  543. package/dist/platform/control-plane/routes/context.js +0 -1
  544. package/dist/platform/control-plane/routes/operator.d.ts +0 -8
  545. package/dist/platform/control-plane/routes/operator.d.ts.map +0 -1
  546. package/dist/platform/control-plane/routes/operator.js +0 -415
  547. package/dist/platform/control-plane/routes/remote.d.ts +0 -3
  548. package/dist/platform/control-plane/routes/remote.d.ts.map +0 -1
  549. package/dist/platform/control-plane/routes/remote.js +0 -35
  550. package/dist/platform/control-plane/routes/sessions.d.ts +0 -3
  551. package/dist/platform/control-plane/routes/sessions.d.ts.map +0 -1
  552. package/dist/platform/control-plane/routes/sessions.js +0 -43
  553. package/dist/platform/control-plane/routes/tasks.d.ts +0 -3
  554. package/dist/platform/control-plane/routes/tasks.d.ts.map +0 -1
  555. package/dist/platform/control-plane/routes/tasks.js +0 -22
@@ -1 +1 @@
1
- {"version":3,"file":"execution-plan.d.ts","sourceRoot":"","sources":["../../../src/platform/core/execution-plan.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,aAAa,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE3F,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,cAAc,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,MAAM,EAAE,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAC;IACnD,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;CAC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QAAQ,EAAE,IAAI,GAAG,QAAQ,CAAC,EAAE,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,aAAa;IAoBlG,oEAAoE;IACpE,UAAU,CACR,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,cAAc,EACtB,OAAO,CAAC,EAAE,MAAM,GACf,IAAI;IA0BP;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,iBAAiB;IAoB9C,8DAA8D;IAC9D,IAAI,IAAI,aAAa,EAAE;IAgBvB,OAAO,CAAC,aAAa;IAUrB;;;;;;;OAOG;IACH,UAAU,CAAC,IAAI,EAAE,aAAa,GAAG,MAAM;IAwCvC;;;OAGG;IACH,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,mBAAmB;IA6HxD,uEAAuE;IACvE,UAAU,CAAC,IAAI,EAAE,aAAa,GAAG,MAAM;IAyBvC;;;;OAIG;IACH,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,GAAG,QAAQ,CAAC,EAAE,GAAG,IAAI;IAoD5E,mEAAmE;IACnE,YAAY,CAAC,IAAI,EAAE,aAAa,GAAG,QAAQ,EAAE;CAa9C"}
@@ -186,19 +186,55 @@ export class ExecutionPlanManager {
186
186
  item.status = status;
187
187
  if (agentId !== undefined)
188
188
  item.agentId = agentId;
189
- // Derive top-level plan status
190
- const allDone = plan.items.every((i) => i.status === 'complete' || i.status === 'skipped');
191
- const anyFailed = plan.items.some((i) => i.status === 'failed');
192
- const anyActive = plan.items.some((i) => i.status === 'in_progress');
193
- if (allDone)
194
- plan.status = 'complete';
195
- else if (anyFailed)
196
- plan.status = 'failed';
197
- else if (anyActive)
198
- plan.status = 'active';
189
+ // A dismissed plan is archived — never resurrect its top-level status from
190
+ // an item edit. Persist the item change but leave status 'dismissed'.
191
+ if (plan.status !== 'dismissed') {
192
+ // Derive top-level plan status
193
+ const allDone = plan.items.every((i) => i.status === 'complete' || i.status === 'skipped');
194
+ const anyFailed = plan.items.some((i) => i.status === 'failed');
195
+ const anyActive = plan.items.some((i) => i.status === 'in_progress');
196
+ if (allDone)
197
+ plan.status = 'complete';
198
+ else if (anyFailed)
199
+ plan.status = 'failed';
200
+ else if (anyActive)
201
+ plan.status = 'active';
202
+ }
199
203
  plan.updatedAt = new Date().toISOString();
200
204
  this.save(plan);
201
205
  }
206
+ /**
207
+ * Dismiss (archive) the active plan for the current session.
208
+ *
209
+ * Honest semantics for every plan state:
210
+ * - No active plan → no-op (`{ outcome: 'no-active-plan' }`), nothing written.
211
+ * - Active/mid-execution ('active') → refused (`{ outcome: 'requires-cancel' }`).
212
+ * A running plan must be stopped via the workstream cancel path first;
213
+ * dismiss never abandons in-flight agent work by fiat.
214
+ * - Proposal/awaiting-approval ('draft') or a terminal record ('complete' /
215
+ * 'failed') → archived: the plan is RETAINED on disk with status
216
+ * 'dismissed', a `dismissedAt` timestamp, and `dismissedFrom` recording
217
+ * the prior status; the active pointer is cleared so a later
218
+ * `/plan <goal>` starts a fresh plan. Nothing is deleted.
219
+ */
220
+ dismiss(sessionId) {
221
+ const active = this.getActive(sessionId);
222
+ if (!active)
223
+ return { outcome: 'no-active-plan' };
224
+ if (active.status === 'active') {
225
+ return { outcome: 'requires-cancel', blockedBy: active };
226
+ }
227
+ const dismissedFrom = active.status;
228
+ active.dismissedFrom = dismissedFrom;
229
+ active.status = 'dismissed';
230
+ active.dismissedAt = new Date().toISOString();
231
+ active.updatedAt = active.dismissedAt;
232
+ this.save(active);
233
+ // Clear the active pointer (archive, not delete) so the plan survives in
234
+ // list() but no longer counts as the session's active plan.
235
+ this.setActive(null, active.sessionId ?? sessionId ?? null);
236
+ return { outcome: 'dismissed', plan: active };
237
+ }
202
238
  /** List all plans (reads directory, excludes active.json). */
203
239
  list() {
204
240
  if (!existsSync(this.plansDir))
@@ -20,6 +20,8 @@ export * from './orchestrator-turn-helpers.js';
20
20
  export * from './orchestrator-turn-loop.js';
21
21
  export * from './orchestrator.js';
22
22
  export * from './plan-command-handler.js';
23
+ export * from './plan-decomposition.js';
24
+ export * from './plan-proposal.js';
23
25
  export * from './replay-command-handler.js';
24
26
  export * from './session-lineage.js';
25
27
  export * from './session-memory.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/platform/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/platform/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC"}
@@ -20,6 +20,8 @@ export * from './orchestrator-turn-helpers.js';
20
20
  export * from './orchestrator-turn-loop.js';
21
21
  export * from './orchestrator.js';
22
22
  export * from './plan-command-handler.js';
23
+ export * from './plan-decomposition.js';
24
+ export * from './plan-proposal.js';
23
25
  export * from './replay-command-handler.js';
24
26
  export * from './session-lineage.js';
25
27
  export * from './session-memory.js';
@@ -8,6 +8,8 @@ import type { AdaptivePlanner } from './adaptive-planner.js';
8
8
  import type { ExecutionPlanManager } from './execution-plan.js';
9
9
  import type { SessionMemoryStore } from './session-memory.js';
10
10
  import type { FavoritesStore } from '../providers/favorites.js';
11
+ import type { TurnKnowledgeRegistrySource, TurnCodeIndexSource } from '../agents/turn-knowledge-injection.js';
12
+ import type { CodeIndexReindexScheduler } from '../state/code-index-reindex.js';
11
13
  export type OrchestratorCoreServices = {
12
14
  configManager?: Pick<ConfigManager, 'get' | 'getCategory' | 'getWorkingDirectory'> | undefined;
13
15
  providerRegistry?: ProviderRegistry | undefined;
@@ -18,6 +20,35 @@ export type OrchestratorCoreServices = {
18
20
  adaptivePlanner?: Pick<AdaptivePlanner, 'select' | 'getMode' | 'setMode' | 'explain' | 'override' | 'clearOverride' | 'getOverride' | 'getLatest'>;
19
21
  sessionMemoryStore?: Pick<SessionMemoryStore, 'list'> | undefined;
20
22
  favoritesStore?: Pick<FavoritesStore, 'recordUsage'> | undefined;
23
+ /**
24
+ * Wave-5 (wo805) narrow injection seam for the MAIN interactive session's per-turn
25
+ * passive knowledge injection (see core/orchestrator-turn-loop.ts). Optional/undefined
26
+ * is a hard no-op — the feature never runs and the base system prompt is
27
+ * byte-identical, matching the agent path's (wo801) `memoryRegistry` semantics. Wired
28
+ * in post-construction via `Orchestrator.setCoreServices({ memoryRegistry })` since,
29
+ * like `sessionMemoryStore`/`planManager` above, it is not required at construction
30
+ * time.
31
+ */
32
+ memoryRegistry?: TurnKnowledgeRegistrySource | undefined;
33
+ /**
34
+ * Wave-5 Stage B code-index injection seam for the MAIN interactive session. Optional/
35
+ * undefined is a hard no-op (memory-only injection, base prompt byte-identical). Whether code
36
+ * hits are actually injected is additionally gated by the `agent-passive-code-injection`
37
+ * feature flag (DEFAULT OFF) and `isCodeInjectionSettingEnabled` below — both must hold.
38
+ */
39
+ codeIndex?: TurnCodeIndexSource | undefined;
40
+ /**
41
+ * Live gate for the embedder's storage.codeIndexEnabled setting. Undefined defaults to
42
+ * "allowed" — the feature flag alone then governs. ANDed with the flag each turn so a runtime
43
+ * toggle of either takes effect without reconstructing the orchestrator.
44
+ */
45
+ isCodeInjectionSettingEnabled?: (() => boolean) | undefined;
46
+ /**
47
+ * Wave-5 Stage B tool-site reindex scheduler. Optional/undefined is a hard no-op. When wired,
48
+ * a successful write/edit tool call schedules a debounced incremental reindex of the touched
49
+ * path(s) (never blocking the tool result).
50
+ */
51
+ codeIndexReindexScheduler?: Pick<CodeIndexReindexScheduler, 'onToolExecuted'> | undefined;
21
52
  };
22
53
  export declare function normalizeUsage(usage: Awaited<ReturnType<LLMProvider['chat']>>['usage']): Awaited<ReturnType<LLMProvider['chat']>>['usage'];
23
54
  export declare function estimateFreshTurnInputTokens(lastInputTokens: number, currentEstimatedTokens: number, text: string, content?: ContentPart[]): number;
@@ -1 +1 @@
1
- {"version":3,"file":"orchestrator-runtime.d.ts","sourceRoot":"","sources":["../../../src/platform/core/orchestrator-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE,MAAM,MAAM,wBAAwB,GAAG;IACrC,aAAa,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,KAAK,GAAG,aAAa,GAAG,qBAAqB,CAAC,GAAG,SAAS,CAAC;IAC/F,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAChD,eAAe,CAAC,EAAE,IAAI,CAAC,eAAe,EAAE,YAAY,CAAC,GAAG,SAAS,CAAC;IAClE,qBAAqB,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAC1D,g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GACvD,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAUnD;AAED,wBAAgB,4BAA4B,CAC1C,eAAe,EAAE,MAAM,EACvB,sBAAsB,EAAE,MAAM,EAC9B,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,WAAW,EAAE,GACtB,MAAM,CAqBR;AAED,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,wBAAwB,EAClC,0BAA0B,EAAE,qBAAqB,GAChD,qBAAqB,CAEvB;AAED,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,wBAAwB,EAClC,qBAAqB,EAAE,gBAAgB,GACtC,gBAAgB,CAElB;AAED,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,wBAAwB,GACjC,IAAI,CAAC,aAAa,EAAE,KAAK,GAAG,aAAa,GAAG,qBAAqB,CAAC,CAKpE;AAED,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,wBAAwB,GAAG,gBAAgB,CAK5F;AAED,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,wBAAwB,EAClC,oBAAoB,EAAE,IAAI,CAAC,eAAe,EAAE,YAAY,CAAC,GACxD,IAAI,CAAC,eAAe,EAAE,YAAY,CAAC,CAErC;AAED,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,GACb,OAAO,8BAA8B,EAAE,cAAc,CAMvD"}
@@ -19,6 +19,13 @@ export type ToolExecutionDeps = {
19
19
  runtimeBus: RuntimeEventBus | null;
20
20
  sessionId: string;
21
21
  emitterContext: EmitterContextFactory;
22
+ /**
23
+ * Wave-5 Stage B: called once per executed tool with (toolName, resolved args, success) so a
24
+ * code-index reindex scheduler can debounce an incremental reindex of touched files. Invoked
25
+ * for BOTH success and failure (the scheduler no-ops on failure); never awaited — it must not
26
+ * block the tool-result path.
27
+ */
28
+ onToolExecuted?: ((toolName: string, args: Record<string, unknown>, success: boolean) => void) | undefined;
22
29
  };
23
30
  export declare function executeToolCalls(deps: ToolExecutionDeps, turnId: string, calls: ToolCall[]): Promise<ToolResult[]>;
24
31
  export type ReconciliationDeps = {
@@ -1 +1 @@
1
- {"version":3,"file":"orchestrator-tool-runtime.d.ts","sourceRoot":"","sources":["../../../src/platform/core/orchestrator-tool-runtime.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAiB,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC9E,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAclE,OAAO,EAAmD,KAAK,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEtH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAE5D,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACzF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAKjE,KAAK,kBAAkB,GAAG;IACxB,IAAI,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;CAC7C,CAAC;AAqCF,KAAK,qBAAqB,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,8BAA8B,EAAE,cAAc,CAAC;AAEvG,MAAM,MAAM,iBAAiB,GAAG;IAC9B,YAAY,EAAE,YAAY,CAAC;IAC3B,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,cAAc,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC1C,UAAU,EAAE,eAAe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E,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,EAClD,aAAa,EAAE,IAAI,CAAC,aAAa,EAAE,KAAK,CAAC,EACzC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,EAC3D,UAAU,GAAE,eAAe,GAAG,IAAW,EACzC,cAAc,GAAE,OAAO,8BAA8B,EAAE,cAAc,GAAG,IAAW,EACnF,WAAW,GAAE,IAAI,CAAC,oBAAoB,EAAE,YAAY,CAAC,GAAG,IAAW,GAClE,MAAM,EAAE,CA4GV"}
@@ -246,6 +246,16 @@ export async function executeToolCalls(deps, turnId, calls) {
246
246
  // leave result as-is
247
247
  }
248
248
  }
249
+ if (deps.onToolExecuted) {
250
+ // Fire-and-forget: the scheduler only records a debounce timer; it must never block the
251
+ // tool-result path. Args are the ones actually executed (post-permission modification).
252
+ try {
253
+ deps.onToolExecuted(call.name, checkResult.modifiedArgs ?? call.arguments, result.success === true);
254
+ }
255
+ catch (err) {
256
+ logger.warn('onToolExecuted hook error', { tool: call.name, error: summarizeError(err) });
257
+ }
258
+ }
249
259
  results.push(result);
250
260
  }
251
261
  return results;
@@ -13,6 +13,7 @@ import type { ModelDefinition } from '../providers/registry.js';
13
13
  import type { FavoritesStore } from '../providers/favorites.js';
14
14
  import type { AgentManager } from '../tools/agent/index.js';
15
15
  import type { ExecutionPlanManager } from './execution-plan.js';
16
+ import { type TurnInjectionRecord, type TurnKnowledgeRegistrySource, type TurnCodeIndexSource } from '../agents/turn-knowledge-injection.js';
16
17
  interface HookDispatcherLike {
17
18
  fire(event: HookEvent): Promise<HookResult>;
18
19
  }
@@ -27,7 +28,7 @@ export interface OrchestratorTurnLoopContext {
27
28
  readonly runtimeBus: RuntimeEventBus | null;
28
29
  readonly agentManager: Pick<AgentManager, 'list' | 'spawn'>;
29
30
  readonly configManager: Pick<ConfigManager, 'get'>;
30
- readonly providerRegistry: Pick<ProviderRegistry, 'require' | 'getCurrentModel' | 'getForModel' | 'getTokenLimitsForModel'>;
31
+ readonly providerRegistry: Pick<ProviderRegistry, 'require' | 'getCurrentModel' | 'getForModel' | 'getTokenLimitsForModel' | 'getContextWindowForModel'>;
31
32
  readonly favoritesStore?: Pick<FavoritesStore, 'recordUsage'> | undefined;
32
33
  readonly cacheHitTracker: Pick<CacheHitTracker, 'getMetrics'>;
33
34
  readonly helperModel: HelperModel;
@@ -58,6 +59,39 @@ export interface OrchestratorTurnLoopContext {
58
59
  cacheRead: number;
59
60
  cacheWrite: number;
60
61
  };
62
+ /**
63
+ * Wave-5 (wo805) per-turn passive-injection wiring for the MAIN interactive session —
64
+ * the sibling of wo801's agents/orchestrator-runner.ts runAgentTask wiring, gated on the
65
+ * SAME `agent-passive-knowledge-injection` feature flag (its description already
66
+ * promised "the EVOLVING main-session conversation" coverage; see
67
+ * runtime/feature-flags/flags.ts). `memoryRegistry` undefined is a hard no-op, matching
68
+ * the agent path. Budget/floor default to the same derived defaults
69
+ * (defaultTurnKnowledgeBudgetTokens / DEFAULT_TURN_KNOWLEDGE_RELEVANCE_FLOOR) when
70
+ * omitted.
71
+ */
72
+ readonly memoryRegistry?: TurnKnowledgeRegistrySource | undefined;
73
+ readonly isPassiveKnowledgeInjectionEnabled: () => boolean;
74
+ readonly passiveKnowledgeInjectionBudgetTokens?: number | undefined;
75
+ readonly passiveKnowledgeInjectionRelevanceFloor?: number | undefined;
76
+ /**
77
+ * Wave-5 Stage B — repo code index for the main session's per-turn injection. Undefined is a
78
+ * hard no-op. `isPassiveCodeInjectionEnabled` resolves the combined gate (flag AND setting);
79
+ * both it and the source must be present for code hits to be considered this turn.
80
+ */
81
+ readonly codeIndex?: TurnCodeIndexSource | undefined;
82
+ readonly isPassiveCodeInjectionEnabled: () => boolean;
83
+ /**
84
+ * The main session has no spawn-time `AgentRecord.knowledgeInjections` baseline, so this
85
+ * starts empty and grows monotonically for the life of the Orchestrator — no record is
86
+ * ever surfaced twice across the whole interactive session (mirrors wo801's
87
+ * knowledgeIdsAlreadySurfaced, but session-lifetime instead of one-agent-run-lifetime).
88
+ */
89
+ readonly getAlreadyInjectedKnowledgeIds: () => readonly string[];
90
+ readonly addInjectedKnowledgeIds: (ids: readonly string[]) => void;
91
+ /** Bounded ring (see recordTurnInjection) backing Orchestrator.getTurnInjections(). */
92
+ readonly recordTurnKnowledgeInjection: (record: TurnInjectionRecord) => void;
93
+ /** Monotonic per-Orchestrator-lifetime sequence number for TurnInjectionRecord.turn. */
94
+ readonly nextTurnKnowledgeSequence: () => number;
61
95
  }
62
96
  export declare function executeOrchestratorTurnLoop(context: OrchestratorTurnLoopContext): Promise<void>;
63
97
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"orchestrator-turn-loop.d.ts","sourceRoot":"","sources":["../../../src/platform/core/orchestrator-turn-loop.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAI1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAe,MAAM,2BAA2B,CAAC;AACvF,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAc/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE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AI,CAAC;IACpC,QAAQ,CAAC,KAAK,EAAE;QACd,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF;;;;;;;;;OASG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,2BAA2B,GAAG,SAAS,CAAC;IAClE,QAAQ,CAAC,kCAAkC,EAAE,MAAM,OAAO,CAAC;IAC3D,QAAQ,CAAC,qCAAqC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpE,QAAQ,CAAC,uCAAuC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtE;;;;OAIG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;IACrD,QAAQ,CAAC,6BAA6B,EAAE,MAAM,OAAO,CAAC;IACtD;;;;;OAKG;IACH,QAAQ,CAAC,8BAA8B,EAAE,MAAM,SAAS,MAAM,EAAE,CAAC;IACjE,QAAQ,CAAC,uBAAuB,EAAE,CAAC,GAAG,EAAE,SAAS,MAAM,EAAE,KAAK,IAAI,CAAC;IACnE,uFAAuF;IACvF,QAAQ,CAAC,4BAA4B,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC7E,wFAAwF;IACxF,QAAQ,CAAC,yBAAyB,EAAE,MAAM,MAAM,CAAC;CAClD;AAED,wBAAsB,2BAA2B,CAAC,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,IAAI,CAAC,CAqerG"}
@@ -8,7 +8,18 @@ import { logger } from '../utils/logger.js';
8
8
  import { emitMalformedToolUseWarning, handleFinalResponseOutcome, handleToolResponseOutcome, } from './orchestrator-turn-helpers.js';
9
9
  import { appendGoodVibesRuntimeAwarenessPrompt } from '../tools/goodvibes-runtime/index.js';
10
10
  import { buildWrfcWorkflowRoutingPrompt } from './wrfc-routing.js';
11
+ import { buildPerTurnKnowledgeInjection, defaultTurnKnowledgeBudgetTokens, DEFAULT_TURN_KNOWLEDGE_RELEVANCE_FLOOR, } from '../agents/turn-knowledge-injection.js';
11
12
  const AUTO_SPAWN_FALLBACK_DELAY_MS = 5_000;
13
+ /**
14
+ * Wave-5 (wo805) per-turn passive-injection headroom clamp for the MAIN interactive
15
+ * session. Mirrors agents/orchestrator-runner.ts's CONTEXT_COMPACT_THRESHOLD (0.85) —
16
+ * deliberately NOT derived from this loop's own configurable `behavior.autoCompactThreshold`
17
+ * (default 80, see config/schema-domain-core.ts), which governs CONVERSATION compaction and
18
+ * can be user-tuned or disabled (0) independently of this feature. Keeping this fixed keeps
19
+ * the injection block's safety margin identical to wo801's regardless of what the operator
20
+ * has configured for compaction.
21
+ */
22
+ const PASSIVE_KNOWLEDGE_INJECTION_CONTEXT_THRESHOLD = 0.85;
12
23
  export async function executeOrchestratorTurnLoop(context) {
13
24
  const helperModel = context.helperModel;
14
25
  const model = context.providerRegistry.getCurrentModel();
@@ -17,6 +28,20 @@ export async function executeOrchestratorTurnLoop(context) {
17
28
  const streamEnabled = context.configManager.get('display.stream');
18
29
  let continueLoop = true;
19
30
  const circuitBreaker = new ConsecutiveErrorBreaker();
31
+ // Wave-5 (wo805): true only for the FIRST LLM call this executeOrchestratorTurnLoop()
32
+ // invocation makes (see the per-iteration gate below for why this is the main loop's
33
+ // analog of wo801's "new user input this turn").
34
+ let isFirstIterationOfThisCall = true;
35
+ // Wave-5 (wo805): the last successfully-built per-turn knowledge block, reused verbatim
36
+ // on tool-continuation iterations of THIS call where nothing new arrived (mirrors
37
+ // wo801's priorTurnKnowledgeBlock) — declared OUTSIDE the while loop so a block built on
38
+ // iteration 1 (the human message that started this runTurn()) stays available to every
39
+ // later tool round of the SAME call, not just the first LLM call. It is composed onto
40
+ // the CURRENT `composedBaseSystemPrompt` fresh every iteration (see
41
+ // composeTurnSystemPrompt below), never written back into any cached base string, so it
42
+ // cannot compound. Reset implicitly to null on every NEW executeOrchestratorTurnLoop()
43
+ // call (a fresh runTurn() always recomputes from scratch on its own iteration 1).
44
+ let turnKnowledgeBlock = null;
20
45
  while (continueLoop) {
21
46
  let streamAccumulated = '';
22
47
  let reasoningAccumulated = '';
@@ -99,6 +124,101 @@ export async function executeOrchestratorTurnLoop(context) {
99
124
  break;
100
125
  }
101
126
  }
127
+ // Wave-5 (wo805): per-turn passive knowledge injection for the MAIN interactive
128
+ // session — the missing counterpart to wo801's agents/orchestrator-runner.ts wiring.
129
+ // `newUserInputThisTurn` mirrors wo801's turn-1/steer-drain gate: it is true exactly
130
+ // on the FIRST LLM call this executeOrchestratorTurnLoop() invocation makes (the fresh
131
+ // human message this runTurn() call was invoked with) and false on every subsequent
132
+ // tool-continuation iteration of the SAME call, since the main session never drains
133
+ // new human input mid-call (handleUserInput queues a second message until the current
134
+ // runTurn() completes — see orchestrator.ts). Retrieval reruns only when
135
+ // newUserInputThisTurn is true; tool-continuation iterations reuse `turnKnowledgeBlock`
136
+ // as-is (declared before the while loop) — exactly wo801's reuse behavior for
137
+ // no-new-input turns, just with a different trigger for what counts as "new".
138
+ const newUserInputThisTurn = isFirstIterationOfThisCall;
139
+ isFirstIterationOfThisCall = false;
140
+ const passiveKnowledgeInjectionEnabled = context.isPassiveKnowledgeInjectionEnabled();
141
+ let knowledgeContextWindow = 0;
142
+ if (passiveKnowledgeInjectionEnabled && context.memoryRegistry) {
143
+ knowledgeContextWindow = context.providerRegistry.getContextWindowForModel(model);
144
+ }
145
+ const baseSystemPromptForCall = appendGoodVibesRuntimeAwarenessPrompt(context.getSystemPrompt());
146
+ const wrfcRoutingPromptForCall = buildWrfcWorkflowRoutingPrompt(context.text);
147
+ const composedBaseSystemPrompt = wrfcRoutingPromptForCall
148
+ ? `${baseSystemPromptForCall}\n\n${wrfcRoutingPromptForCall}`
149
+ : baseSystemPromptForCall;
150
+ if (passiveKnowledgeInjectionEnabled && newUserInputThisTurn && context.memoryRegistry) {
151
+ const configuredBudget = context.passiveKnowledgeInjectionBudgetTokens
152
+ ?? defaultTurnKnowledgeBudgetTokens(knowledgeContextWindow);
153
+ let turnBudgetTokens = configuredBudget;
154
+ if (knowledgeContextWindow > 0) {
155
+ // Clamp to whatever headroom remains under the same fixed safety threshold this
156
+ // block always uses (PASSIVE_KNOWLEDGE_INJECTION_CONTEXT_THRESHOLD) so base+block
157
+ // can never silently exceed it, using LIVE token counts from the
158
+ // post-preflight-compaction conversation state (checkContextWindowPreflight above
159
+ // already ran this iteration) rather than turn-start estimates.
160
+ const msgTokensForBudget = estimateConversationTokens(context.conversation.getMessagesForLLM());
161
+ const sysTokensForBudget = estimateTokens(composedBaseSystemPrompt);
162
+ const threshold = Math.floor(knowledgeContextWindow * PASSIVE_KNOWLEDGE_INJECTION_CONTEXT_THRESHOLD);
163
+ const headroomTokens = threshold - msgTokensForBudget - sysTokensForBudget;
164
+ turnBudgetTokens = Math.max(0, Math.min(configuredBudget, headroomTokens));
165
+ }
166
+ if (turnBudgetTokens > 0) {
167
+ const relevanceFloor = context.passiveKnowledgeInjectionRelevanceFloor ?? DEFAULT_TURN_KNOWLEDGE_RELEVANCE_FLOOR;
168
+ // Stage B: code hits share this turn's SAME budget/floor. Gated on the separate
169
+ // (default-off) code-injection flag AND the embedder's storage.codeIndexEnabled
170
+ // setting, both folded into isPassiveCodeInjectionEnabled by the orchestrator.
171
+ const codeInjectionEnabled = !!context.codeIndex && context.isPassiveCodeInjectionEnabled();
172
+ const { block, record: turnInjectionRecord } = buildPerTurnKnowledgeInjection({
173
+ memoryRegistry: context.memoryRegistry,
174
+ // The main session has no frozen "task" distinct from the live conversation —
175
+ // context.text (this call's originating human message) IS this turn's task, and
176
+ // is also the latest user-role message already appended to the conversation
177
+ // before the loop started (see prepareConversationForTurn), so
178
+ // deriveTurnKnowledgeQuery collapses to it with no duplication — the same
179
+ // turn-1 behavior wo801 documents for the agent path.
180
+ task: context.text,
181
+ conversationTail: context.conversation.getMessagesForLLM(),
182
+ budgetTokens: turnBudgetTokens,
183
+ relevanceFloor,
184
+ alreadyInjectedIds: context.getAlreadyInjectedKnowledgeIds(),
185
+ turn: context.nextTurnKnowledgeSequence(),
186
+ codeIndex: context.codeIndex,
187
+ codeInjectionEnabled,
188
+ });
189
+ turnKnowledgeBlock = block;
190
+ if (turnInjectionRecord.injectedIds.length > 0) {
191
+ context.addInjectedKnowledgeIds(turnInjectionRecord.injectedIds);
192
+ }
193
+ context.recordTurnKnowledgeInjection(turnInjectionRecord);
194
+ }
195
+ else {
196
+ // Hard no-op: no budget headroom this call. Never call into retrieval for a
197
+ // budget already known to be zero, and never keep claiming a stale block from an
198
+ // earlier iteration that no longer fits — clear it so composeTurnSystemPrompt
199
+ // falls back to the base prompt exactly (mirrors wo801's identical branch).
200
+ turnKnowledgeBlock = null;
201
+ }
202
+ }
203
+ // Composed fresh at the call site (never a hoisted `const` reused across calls) so the
204
+ // block is re-validated against LIVE tokens at the instant it is actually sent — the
205
+ // same "never mutate the cached base, recompute at the call site" discipline wo801's
206
+ // composeTurnSystemPrompt established, even though this loop has no in-call
207
+ // context-exceeded retry path to go stale across (compaction here is the PROACTIVE
208
+ // checkContextWindowPreflight above, not a reactive mid-call retry-and-shrink).
209
+ const composeTurnSystemPrompt = (base) => {
210
+ if (!turnKnowledgeBlock)
211
+ return base;
212
+ if (knowledgeContextWindow > 0) {
213
+ const liveMsgTokens = estimateConversationTokens(context.conversation.getMessagesForLLM());
214
+ const liveSysTokens = estimateTokens(base);
215
+ const liveBlockTokens = estimateTokens(turnKnowledgeBlock);
216
+ const threshold = Math.floor(knowledgeContextWindow * PASSIVE_KNOWLEDGE_INJECTION_CONTEXT_THRESHOLD);
217
+ if (liveMsgTokens + liveSysTokens + liveBlockTokens > threshold)
218
+ return base;
219
+ }
220
+ return `${base}\n\n${turnKnowledgeBlock}`;
221
+ };
102
222
  let response;
103
223
  if (context.runtimeBus) {
104
224
  emitLlmRequestStarted(context.runtimeBus, context.emitterContext(context.turnId), {
@@ -111,13 +231,11 @@ export async function executeOrchestratorTurnLoop(context) {
111
231
  const chatStartedAt = Date.now();
112
232
  let chatRetries = 0;
113
233
  try {
114
- const baseSystemPrompt = appendGoodVibesRuntimeAwarenessPrompt(context.getSystemPrompt());
115
- const wrfcRoutingPrompt = buildWrfcWorkflowRoutingPrompt(context.text);
116
234
  response = await provider.chat({
117
235
  model: model.id,
118
236
  messages: context.conversation.getMessagesForLLM(),
119
237
  tools: toolDefinitions.length > 0 ? toolDefinitions : undefined,
120
- systemPrompt: wrfcRoutingPrompt ? `${baseSystemPrompt}\n\n${wrfcRoutingPrompt}` : baseSystemPrompt,
238
+ systemPrompt: composeTurnSystemPrompt(composedBaseSystemPrompt),
121
239
  maxTokens: tokenLimits.maxOutputTokens,
122
240
  reasoningEffort: (() => {
123
241
  const configured = context.configManager.get('provider.reasoningEffort');
@@ -10,6 +10,7 @@ import { WrfcController } from '../agents/wrfc-controller.js';
10
10
  import type { FeatureFlagManager } from '../runtime/feature-flags/manager.js';
11
11
  import type { RuntimeEventBus, TurnInputOrigin } from '../runtime/events/index.js';
12
12
  import { type OrchestratorCoreServices } from './orchestrator-runtime.js';
13
+ import { type TurnInjectionRecord } from '../agents/turn-knowledge-injection.js';
13
14
  /** Minimal interface for hook dispatch — allows any hook dispatcher implementation */
14
15
  interface HookDispatcherLike {
15
16
  fire(event: HookEvent): Promise<HookResult>;
@@ -66,6 +67,19 @@ export interface OrchestratorOptions {
66
67
  * plans, and reply correlation. Defaults to a generated private id.
67
68
  */
68
69
  sessionId?: string | undefined;
70
+ /**
71
+ * Wave-5 (wo805) per-turn passive-injection budget override for the main session,
72
+ * mirroring agents/orchestrator-runner.ts's `passiveKnowledgeInjectionBudgetTokens`.
73
+ * Omitted uses the derived default (defaultTurnKnowledgeBudgetTokens). `0` is a hard
74
+ * no-op, independent of the feature flag's own state.
75
+ */
76
+ passiveKnowledgeInjectionBudgetTokens?: number | undefined;
77
+ /**
78
+ * Wave-5 (wo805) per-turn passive-injection relevance-floor override for the main
79
+ * session, mirroring agents/orchestrator-runner.ts's
80
+ * `passiveKnowledgeInjectionRelevanceFloor`. Omitted uses DEFAULT_TURN_KNOWLEDGE_RELEVANCE_FLOOR.
81
+ */
82
+ passiveKnowledgeInjectionRelevanceFloor?: number | undefined;
69
83
  /** Required runtime service dependencies. */
70
84
  services: {
71
85
  readonly agentManager: Pick<AgentManager, 'list' | 'spawn'>;
@@ -169,6 +183,19 @@ export declare class Orchestrator {
169
183
  private permissionManager;
170
184
  private getSystemPrompt;
171
185
  private hookDispatcher;
186
+ /**
187
+ * Wave-5 (wo805) per-turn passive-injection state for the MAIN interactive session —
188
+ * see core/orchestrator-turn-loop.ts for the retrieval/budget wiring that reads and
189
+ * mutates these. `turnKnowledgeIdsAlreadySurfaced` has no spawn-time baseline (unlike
190
+ * an AgentRecord's `knowledgeInjections`) so it starts empty and grows monotonically
191
+ * for the life of this Orchestrator. `turnInjectionRing` backs the public
192
+ * `getTurnInjections()` accessor.
193
+ */
194
+ private readonly turnKnowledgeIdsAlreadySurfaced;
195
+ private turnInjectionRing;
196
+ private turnKnowledgeSequence;
197
+ private readonly passiveKnowledgeInjectionBudgetTokens;
198
+ private readonly passiveKnowledgeInjectionRelevanceFloor;
172
199
  /**
173
200
  * Construct an Orchestrator using a named-options object.
174
201
  *
@@ -197,6 +224,15 @@ export declare class Orchestrator {
197
224
  */
198
225
  registerDelegateTool(manager: AcpManager): void;
199
226
  getSpinner(): string;
227
+ /**
228
+ * Wave-5 (wo805): bounded ring of per-turn passive-injection honesty records for the
229
+ * MAIN interactive session — the main-session counterpart to `AgentRecord.turnInjections`
230
+ * (wo801). There is no AgentRecord for the primary conversation, so this is the exact
231
+ * accessor a `/recall`-style renderer should read as the main-session default when no
232
+ * agent id is given. See agents/turn-knowledge-injection.ts for the record shape and
233
+ * recordTurnInjection for the ring-eviction policy (same bounded size as the agent path).
234
+ */
235
+ getTurnInjections(): readonly TurnInjectionRecord[];
200
236
  setSystemMessageRouter(router: LowPrioritySystemMessageSink | null): void;
201
237
  enqueueConversationFollowUp(item: ConversationFollowUpItem): void;
202
238
  /** Abort the current in-flight LLM request, if any. */
@@ -267,6 +303,37 @@ export declare class Orchestrator {
267
303
  * has been wired in — safe for tests that omit the optional constructor arg.
268
304
  */
269
305
  private isReconciliationEnabled;
306
+ /**
307
+ * Returns `true` when Wave-5 (wo801/wo805) per-turn passive knowledge injection is
308
+ * active for this session. Shares the SAME `agent-passive-knowledge-injection` flag as
309
+ * the agent path (agents/orchestrator-runner.ts) rather than a sibling main-session
310
+ * flag — the flag's own description already promises "the EVOLVING main-session
311
+ * conversation" coverage (see runtime/feature-flags/flags.ts), so wiring the main loop
312
+ * under the same id completes that promise instead of duplicating a second toggle for
313
+ * what is, from an operator's perspective, one feature.
314
+ *
315
+ * Defaults to `true` (flag `defaultState: 'enabled'`) when no flag manager has been
316
+ * wired in, matching {@link isReconciliationEnabled}'s convention.
317
+ */
318
+ private isPassiveKnowledgeInjectionEnabled;
319
+ /**
320
+ * Stage B code injection is opt-in: the `agent-passive-code-injection` flag defaults OFF
321
+ * (so a null flagManager means OFF, unlike the memory flag above), AND the embedder's
322
+ * storage.codeIndexEnabled setting must be on. Both are re-read per turn.
323
+ */
324
+ private isPassiveCodeInjectionEnabled;
325
+ /**
326
+ * Wave-5 (wo805): ids never to re-surface in a later per-turn knowledge block. The main
327
+ * session has no spawn-time `AgentRecord.knowledgeInjections` baseline, so this starts
328
+ * empty and grows monotonically for the life of the Orchestrator.
329
+ */
330
+ private getAlreadyInjectedKnowledgeIds;
331
+ /** Wave-5 (wo805): mark ids as surfaced so they are never listed twice this session. */
332
+ private addInjectedKnowledgeIds;
333
+ /** Wave-5 (wo805): append one honesty record to the bounded ring behind {@link getTurnInjections}. */
334
+ private recordTurnKnowledgeInjection;
335
+ /** Wave-5 (wo805): monotonic per-Orchestrator-lifetime sequence number for TurnInjectionRecord.turn. */
336
+ private nextTurnKnowledgeSequence;
270
337
  /**
271
338
  * Reconcile unresolved tool calls at turn end.
272
339
  *
@@ -1 +1 @@
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