@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,6 +1,55 @@
1
- import { STRING_SCHEMA, NUMBER_SCHEMA, arraySchema, objectSchema, eventDescriptor, runtimeDomainEvent } from './method-catalog-shared.js';
1
+ import { STRING_SCHEMA, NUMBER_SCHEMA, JSON_OBJECT_SCHEMA, arraySchema, objectSchema, eventDescriptor, runtimeDomainEvent } from './method-catalog-shared.js';
2
2
  import { CONTROL_PLANE_SURFACE_MESSAGE_SCHEMA } from './operator-contract-schemas.js';
3
3
  import { RUNTIME_EVENT_DOMAINS } from '../../events/domain-map.js';
4
+ /**
5
+ * The discriminated `event` values carried inside every `session-update` wire frame.
6
+ *
7
+ * The SharedSessionBroker collapses ALL of its lifecycle signals onto a single wire event
8
+ * named `session-update` (session-broker.ts `publishUpdate`); the real lifecycle name lives
9
+ * in the frame's `payload.event` field. This list is the source of truth for that
10
+ * discriminant and is documented by the `control.session_update` descriptor below so a
11
+ * subscriber (webui/TUI) can switch on `payload.event` against a contract-backed enum
12
+ * instead of guessing from undocumented behavior.
13
+ *
14
+ * NOTE (One-Platform S1 coordination): new broker signals flow through the SAME
15
+ * `session-update` wire channel automatically because `publishUpdate` is generic — when
16
+ * S1's `sessions.register` flow emits e.g. `session-registered`, only THIS enum needs the
17
+ * added string (the wire channel already carries it). Keep this list aligned with the
18
+ * broker's publishUpdate/publishInputLifecycleEvent call sites.
19
+ */
20
+ export const SESSION_UPDATE_WIRE_EVENTS = [
21
+ 'session-created',
22
+ 'session-closed',
23
+ 'session-deleted',
24
+ 'session-reopened',
25
+ 'session-agent-bound',
26
+ 'session-agent-completed',
27
+ 'session-message-appended',
28
+ 'session-message-forwarded',
29
+ 'session-route-attached',
30
+ 'session-detached',
31
+ 'session-input-queued',
32
+ 'session-input-queued-for-surface',
33
+ 'session-input-delivered',
34
+ 'session-input-spawned',
35
+ 'session-input-completed',
36
+ 'session-input-failed',
37
+ 'session-input-rejected',
38
+ 'session-input-cancelled',
39
+ 'session-follow-up-queued',
40
+ 'session-follow-up-spawned',
41
+ ];
42
+ /**
43
+ * Maps each cross-surface invalidation intent to the concrete `payload.event` value(s) a
44
+ * subscriber must react to. Documented in the descriptor so the webui/TUI do not guess.
45
+ */
46
+ export const SESSION_UPDATE_INTENT_MAP = {
47
+ created: ['session-created'],
48
+ updated: ['session-message-appended', 'session-agent-completed', 'session-route-attached', 'session-detached', 'session-reopened'],
49
+ steered: ['session-input-queued-for-surface', 'session-input-delivered', 'session-message-forwarded'],
50
+ closed: ['session-closed'],
51
+ deleted: ['session-deleted'],
52
+ };
4
53
  const RUNTIME_DOMAIN_DESCRIPTIONS = {
5
54
  session: 'Shared-session lifecycle, participant, and message events.',
6
55
  turn: 'Turn submission and completion events.',
@@ -69,4 +118,28 @@ export const builtinGatewayEventDescriptors = [
69
118
  wireEvents: ['surface-message'],
70
119
  outputSchema: CONTROL_PLANE_SURFACE_MESSAGE_SCHEMA,
71
120
  }),
121
+ eventDescriptor({
122
+ id: 'control.session_update',
123
+ title: 'Session Lifecycle Update',
124
+ description: 'Shared-session lifecycle broadcast. Every session created / closed / deleted / reopened / '
125
+ + 'agent-bound / agent-completed / message-appended / message-forwarded / route-attached '
126
+ + 'and every input & follow-up lifecycle transition is published on the single '
127
+ + '`session-update` wire event; the specific lifecycle name is the discriminated '
128
+ + '`payload.event` field. Cross-surface invalidation mapping (webui/TUI): '
129
+ + 'created ⇐ session-created; updated ⇐ session-message-appended / session-agent-completed / '
130
+ + 'session-route-attached / session-reopened; steered ⇐ session-input-delivered / '
131
+ + 'session-message-forwarded; closed ⇐ session-closed; deleted ⇐ session-deleted (a hard '
132
+ + 'removal — the record is gone, not merely closed). This channel is un-domained: it '
133
+ + 'reaches every live SSE/WS client regardless of subscribed domains, and is dropped '
134
+ + 'entirely when the control-plane-gateway flag is turned off (no phantom buffering).',
135
+ category: 'transport',
136
+ transport: ['sse', 'ws'],
137
+ scopes: ['read:sessions'],
138
+ wireEvents: ['session-update'],
139
+ outputSchema: objectSchema({
140
+ event: { type: 'string', enum: [...SESSION_UPDATE_WIRE_EVENTS] },
141
+ payload: JSON_OBJECT_SCHEMA,
142
+ createdAt: NUMBER_SCHEMA,
143
+ }, ['event', 'payload', 'createdAt']),
144
+ }),
72
145
  ];
@@ -0,0 +1,24 @@
1
+ /**
2
+ * method-catalog-fleet.ts
3
+ *
4
+ * W3-S2 — fleet.* + checkpoints.* method descriptors. Split out of
5
+ * method-catalog-control-core.ts (which was already at the 800-line
6
+ * source-file cap) rather than grown into it, mirroring how
7
+ * method-catalog-control-automation.ts is a sibling split of the same file
8
+ * merged back in by method-catalog-control.ts.
9
+ *
10
+ * Thin read (fleet) / checkpoint-lifecycle verbs over managers the daemon
11
+ * ALREADY holds in-process (ProcessRegistry, WorkspaceCheckpointManager —
12
+ * see routes/fleet.ts and routes/checkpoints.ts header comments). No `http`
13
+ * REST path is bound: these are registered with a direct handler on the
14
+ * catalog (RuntimeServices construction, ../runtime/services.ts).
15
+ * `transport: ['ws']` with no `http` binding is the transport-parity gate's
16
+ * (test/transport-parity.test.ts) own sanctioned category for a method
17
+ * dispatchable ONLY via the generic invoke-by-id mechanism — see the
18
+ * TRANSPORT NOTE above `sessions.search` in method-catalog-control-core.ts
19
+ * for the full rationale (this block predates that comment only in file
20
+ * position, not in reasoning).
21
+ */
22
+ import type { GatewayMethodDescriptor } from './method-catalog-shared.js';
23
+ export declare const builtinGatewayFleetMethodDescriptors: readonly GatewayMethodDescriptor[];
24
+ //# sourceMappingURL=method-catalog-fleet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"method-catalog-fleet.d.ts","sourceRoot":"","sources":["../../../src/platform/control-plane/method-catalog-fleet.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAgB1E,eAAO,MAAM,oCAAoC,EAAE,SAAS,uBAAuB,EA8DlF,CAAC"}
@@ -0,0 +1,65 @@
1
+ import { EMPTY_OBJECT_SCHEMA, methodDescriptor } from './method-catalog-shared.js';
2
+ import { CHECKPOINTS_CREATE_INPUT_SCHEMA, CHECKPOINTS_CREATE_OUTPUT_SCHEMA, CHECKPOINTS_DIFF_INPUT_SCHEMA, CHECKPOINTS_DIFF_OUTPUT_SCHEMA, CHECKPOINTS_LIST_INPUT_SCHEMA, CHECKPOINTS_LIST_OUTPUT_SCHEMA, CHECKPOINTS_RESTORE_INPUT_SCHEMA, CHECKPOINTS_RESTORE_OUTPUT_SCHEMA, FLEET_LIST_INPUT_SCHEMA, FLEET_LIST_OUTPUT_SCHEMA, FLEET_SNAPSHOT_OUTPUT_SCHEMA, } from './operator-contract-schemas.js';
3
+ export const builtinGatewayFleetMethodDescriptors = [
4
+ methodDescriptor({
5
+ id: 'fleet.snapshot',
6
+ title: 'Fleet Snapshot',
7
+ description: 'Return a point-in-time capture of every live/completed runtime process (agents, WRFC chains/subtasks, workflow FSMs/triggers/schedules, watchers, background processes) as a flat, parentId-linked node list. Capped at 2000 nodes (truncated:true + totalCount when the live fleet exceeds the cap) — use fleet.list to page through a larger fleet.',
8
+ category: 'fleet',
9
+ scopes: ['read:fleet'],
10
+ transport: ['ws'],
11
+ inputSchema: EMPTY_OBJECT_SCHEMA,
12
+ outputSchema: FLEET_SNAPSHOT_OUTPUT_SCHEMA,
13
+ }),
14
+ methodDescriptor({
15
+ id: 'fleet.list',
16
+ title: 'List Fleet Processes',
17
+ description: 'Paginated, filtered (kinds/states) query over the live process registry. Cursor pagination returns disjoint pages that union to the full matching set at query time.',
18
+ category: 'fleet',
19
+ scopes: ['read:fleet'],
20
+ transport: ['ws'],
21
+ inputSchema: FLEET_LIST_INPUT_SCHEMA,
22
+ outputSchema: FLEET_LIST_OUTPUT_SCHEMA,
23
+ }),
24
+ methodDescriptor({
25
+ id: 'checkpoints.list',
26
+ title: 'List Workspace Checkpoints',
27
+ description: 'Return workspace checkpoints (whole-workspace filesystem snapshots), newest first, optionally filtered by kind/since and capped by limit.',
28
+ category: 'checkpoints',
29
+ scopes: ['read:checkpoints'],
30
+ transport: ['ws'],
31
+ inputSchema: CHECKPOINTS_LIST_INPUT_SCHEMA,
32
+ outputSchema: CHECKPOINTS_LIST_OUTPUT_SCHEMA,
33
+ }),
34
+ methodDescriptor({
35
+ id: 'checkpoints.create',
36
+ title: 'Create Workspace Checkpoint',
37
+ description: 'Create a new workspace checkpoint. Returns checkpoint:null, noop:true (not an error) when the workspace tree is identical to the most recent checkpoint — no commit, ref, or manifest entry is created in that case.',
38
+ category: 'checkpoints',
39
+ scopes: ['write:checkpoints'],
40
+ transport: ['ws'],
41
+ inputSchema: CHECKPOINTS_CREATE_INPUT_SCHEMA,
42
+ outputSchema: CHECKPOINTS_CREATE_OUTPUT_SCHEMA,
43
+ }),
44
+ methodDescriptor({
45
+ id: 'checkpoints.diff',
46
+ title: 'Diff Workspace Checkpoints',
47
+ description: 'Diff two checkpoints, or one checkpoint against the live working tree when `b` is omitted. An unknown/gc\'d checkpoint id is an honest 404, not a silent empty diff.',
48
+ category: 'checkpoints',
49
+ scopes: ['read:checkpoints'],
50
+ transport: ['ws'],
51
+ inputSchema: CHECKPOINTS_DIFF_INPUT_SCHEMA,
52
+ outputSchema: CHECKPOINTS_DIFF_OUTPUT_SCHEMA,
53
+ }),
54
+ methodDescriptor({
55
+ id: 'checkpoints.restore',
56
+ title: 'Restore Workspace Checkpoint',
57
+ description: 'DESTRUCTIVE: restore the workspace to the state captured by a checkpoint (git-backed workspace rewrite). Executes immediately with NO server-side confirmation — the calling surface (TUI/webui) owns the confirm UX before invoking this verb. An unknown/gc\'d checkpoint id is an honest 404, not a silent no-op.',
58
+ category: 'checkpoints',
59
+ scopes: ['write:checkpoints'],
60
+ dangerous: true,
61
+ transport: ['ws'],
62
+ inputSchema: CHECKPOINTS_RESTORE_INPUT_SCHEMA,
63
+ outputSchema: CHECKPOINTS_RESTORE_OUTPUT_SCHEMA,
64
+ }),
65
+ ];
@@ -0,0 +1,84 @@
1
+ import type { GatewayMethodDescriptor } from './method-catalog-shared.js';
2
+ /**
3
+ * method-catalog-route-reconcile.ts (W4-A3)
4
+ *
5
+ * Advertisement-vs-route reconciliation. Every method descriptor that
6
+ * carries an `http` binding is a promise to a caller: "this daemon actually
7
+ * serves this endpoint." Nothing previously checked that promise against
8
+ * the real dispatch table. method-catalog-email.ts's four email.* methods
9
+ * advertised /api/email/* paths that no route handler anywhere has ever
10
+ * served, so a caller invoking one through the generic method-dispatch
11
+ * endpoint (control-plane.ts's invokeGatewayMethodCall, which synthesizes a
12
+ * request from `http.path` and feeds it back into the real router) got a
13
+ * plain 404 instead of an honest "this capability isn't wired up." The ad
14
+ * lied; only a caller's own skepticism about the 404 stood between it and
15
+ * treating the capability as real.
16
+ *
17
+ * This module answers, for a batch of descriptors, whether each one's http
18
+ * binding actually resolves against the real dispatch pipeline:
19
+ * `dispatchDaemonApiRoutes` from @pellux/goodvibes-daemon-sdk, the function
20
+ * DaemonHttpRouter.dispatchApiRoutes (packages/sdk/src/platform/daemon/http/
21
+ * router.ts — read as this reconcile's route authority, never edited by it)
22
+ * ultimately delegates to for every method-catalog family except a short
23
+ * list of specialized sub-routers wired directly in router.ts ahead of that
24
+ * delegation (see SPECIALIZED_SUB_ROUTER_PREFIXES). The probe dispatches a
25
+ * synthetic Request against handler stubs that only ever return a fixed
26
+ * marker Response — no real service, manager, or handler body ever runs, so
27
+ * probing stays side-effect free even for `dangerous: true` write methods
28
+ * (email.send, automation job mutation, etc.).
29
+ *
30
+ * Scope note (read before extending): dispatchDaemonApiRoutes covers the
31
+ * operator / automation / remote / session / task route families, which is
32
+ * most of the catalog (control-core, media, channels, remote, runtime,
33
+ * knowledge). A handful of catalogs point at specialized sub-routers that
34
+ * router.ts special-cases before it ever reaches dispatchDaemonApiRoutes
35
+ * (MCP config, batch, Cloudflare, Home Assistant, model routes, companion
36
+ * chat, project planning). This module has no evidence either way for
37
+ * those paths, so it marks them 'unchecked' rather than guessing — a false
38
+ * "unavailable" verdict would just be a different flavor of the same
39
+ * dishonesty this module exists to catch.
40
+ */
41
+ export type RouteReconcileStatus = 'live' | 'unavailable' | 'unchecked';
42
+ export interface RouteReconcileResult {
43
+ readonly methodId: string;
44
+ readonly status: RouteReconcileStatus;
45
+ readonly http: {
46
+ readonly method: string;
47
+ readonly path: string;
48
+ } | null;
49
+ readonly reason: string;
50
+ }
51
+ export type RouteProbe = (method: string, path: string) => boolean | Promise<boolean>;
52
+ /**
53
+ * Path prefixes served by a specialized sub-router that router.ts dispatches
54
+ * to BEFORE falling through to dispatchDaemonApiRoutes. Kept as an explicit,
55
+ * short allowlist (not inferred) so growth here is a deliberate, reviewed
56
+ * decision rather than silent scope creep.
57
+ */
58
+ export declare const SPECIALIZED_SUB_ROUTER_PREFIXES: readonly string[];
59
+ /**
60
+ * Builds a dispatchDaemonApiRoutes-backed probe: does *any* route in the
61
+ * operator/automation/remote/session/task dispatch chain match this
62
+ * method+path? Every handler in the stub is inert — a Proxy that returns a
63
+ * single marker function for any property access, so it never needs
64
+ * updating when DaemonApiRouteHandlers gains a field (the exact kind of
65
+ * drift this reconcile exists to avoid reintroducing elsewhere).
66
+ */
67
+ export declare function createDaemonSdkRouteProbe(): RouteProbe;
68
+ /** Reconciles a single descriptor's http binding (if any) against a probe. */
69
+ export declare function reconcileHttpDescriptor(descriptor: GatewayMethodDescriptor, probe: RouteProbe): Promise<RouteReconcileResult>;
70
+ /** Reconciles a full descriptor list against a probe, in catalog order. */
71
+ export declare function reconcileCatalogRoutes(descriptors: readonly GatewayMethodDescriptor[], probe: RouteProbe): Promise<RouteReconcileResult[]>;
72
+ /**
73
+ * The regression gate. Every descriptor whose http binding was actually
74
+ * checked (status !== 'unchecked') and resolved to no live route must
75
+ * already be marked `invokable: false` at the source — i.e. the
76
+ * advertisement itself must already say "don't call this" instead of
77
+ * silently 404ing a caller who trusted it. Returns the ids that violate
78
+ * that rule. A non-empty result means some descriptor is advertised as
79
+ * live but isn't backed by a route, and isn't marked unavailable either —
80
+ * an email.inbox.list-shaped regression. Wire this into a test (or a boot
81
+ * self-check, once one exists) and fail loudly on a non-empty result.
82
+ */
83
+ export declare function findUnreconciledAdvertisements(descriptors: readonly GatewayMethodDescriptor[], results: readonly RouteReconcileResult[]): string[];
84
+ //# sourceMappingURL=method-catalog-route-reconcile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"method-catalog-route-reconcile.d.ts","sourceRoot":"","sources":["../../../src/platform/control-plane/method-catalog-route-reconcile.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAE1E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,aAAa,GAAG,WAAW,CAAC;AAExE,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,oBAAoB,CAAC;IACtC,QAAQ,CAAC,IAAI,EAAE;QAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IACzE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAEtF;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B,EAAE,SAAS,MAAM,EAQ5D,CAAC;AAkBF;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,IAAI,UAAU,CAYtD;AAED,8EAA8E;AAC9E,wBAAsB,uBAAuB,CAC3C,UAAU,EAAE,uBAAuB,EACnC,KAAK,EAAE,UAAU,GAChB,OAAO,CAAC,oBAAoB,CAAC,CAuB/B;AAED,2EAA2E;AAC3E,wBAAsB,sBAAsB,CAC1C,WAAW,EAAE,SAAS,uBAAuB,EAAE,EAC/C,KAAK,EAAE,UAAU,GAChB,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAMjC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,8BAA8B,CAC5C,WAAW,EAAE,SAAS,uBAAuB,EAAE,EAC/C,OAAO,EAAE,SAAS,oBAAoB,EAAE,GACvC,MAAM,EAAE,CAWV"}
@@ -0,0 +1,103 @@
1
+ import { dispatchDaemonApiRoutes } from '@pellux/goodvibes-daemon-sdk';
2
+ /**
3
+ * Path prefixes served by a specialized sub-router that router.ts dispatches
4
+ * to BEFORE falling through to dispatchDaemonApiRoutes. Kept as an explicit,
5
+ * short allowlist (not inferred) so growth here is a deliberate, reviewed
6
+ * decision rather than silent scope creep.
7
+ */
8
+ export const SPECIALIZED_SUB_ROUTER_PREFIXES = [
9
+ '/api/mcp',
10
+ '/api/batch',
11
+ '/api/cloudflare',
12
+ '/api/homeassistant',
13
+ '/api/models',
14
+ '/api/companion/chat',
15
+ '/api/projects/planning',
16
+ ];
17
+ const RECONCILE_PROBE_MARKER = { reconcileProbeMarker: true };
18
+ function isSpecializedSubRouterPath(path) {
19
+ return SPECIALIZED_SUB_ROUTER_PREFIXES.some((prefix) => path === prefix || path.startsWith(`${prefix}/`));
20
+ }
21
+ /**
22
+ * Replaces every `{param}` template segment with an opaque single-segment
23
+ * placeholder. Every path-matching regex in the dispatch chain matches "one
24
+ * non-slash segment" for a param slot, so a placeholder resolves the same
25
+ * way a real id would without needing one.
26
+ */
27
+ function resolveTemplatePath(template) {
28
+ return template.replace(/\{[^/}]+\}/g, 'reconcile-probe-placeholder');
29
+ }
30
+ /**
31
+ * Builds a dispatchDaemonApiRoutes-backed probe: does *any* route in the
32
+ * operator/automation/remote/session/task dispatch chain match this
33
+ * method+path? Every handler in the stub is inert — a Proxy that returns a
34
+ * single marker function for any property access, so it never needs
35
+ * updating when DaemonApiRouteHandlers gains a field (the exact kind of
36
+ * drift this reconcile exists to avoid reintroducing elsewhere).
37
+ */
38
+ export function createDaemonSdkRouteProbe() {
39
+ const marker = () => Response.json(RECONCILE_PROBE_MARKER);
40
+ const inertHandlers = new Proxy({}, { get: () => marker });
41
+ return async (method, path) => {
42
+ const request = new Request(`http://reconcile-probe.invalid${path}`, { method });
43
+ const response = await dispatchDaemonApiRoutes(request, inertHandlers);
44
+ return response !== null;
45
+ };
46
+ }
47
+ /** Reconciles a single descriptor's http binding (if any) against a probe. */
48
+ export async function reconcileHttpDescriptor(descriptor, probe) {
49
+ if (!descriptor.http) {
50
+ return { methodId: descriptor.id, status: 'unchecked', http: null, reason: 'no http binding to reconcile' };
51
+ }
52
+ const http = { method: descriptor.http.method, path: descriptor.http.path };
53
+ if (isSpecializedSubRouterPath(descriptor.http.path)) {
54
+ return {
55
+ methodId: descriptor.id,
56
+ status: 'unchecked',
57
+ http,
58
+ reason: `path is served by a specialized sub-router outside this reconcile's checked scope: ${descriptor.http.path}`,
59
+ };
60
+ }
61
+ const probePath = resolveTemplatePath(descriptor.http.path);
62
+ const resolved = await probe(descriptor.http.method, probePath);
63
+ return resolved
64
+ ? { methodId: descriptor.id, status: 'live', http, reason: 'route resolved via dispatchDaemonApiRoutes' }
65
+ : {
66
+ methodId: descriptor.id,
67
+ status: 'unavailable',
68
+ http,
69
+ reason: `no registered route serves ${descriptor.http.method} ${descriptor.http.path}`,
70
+ };
71
+ }
72
+ /** Reconciles a full descriptor list against a probe, in catalog order. */
73
+ export async function reconcileCatalogRoutes(descriptors, probe) {
74
+ const results = [];
75
+ for (const descriptor of descriptors) {
76
+ results.push(await reconcileHttpDescriptor(descriptor, probe));
77
+ }
78
+ return results;
79
+ }
80
+ /**
81
+ * The regression gate. Every descriptor whose http binding was actually
82
+ * checked (status !== 'unchecked') and resolved to no live route must
83
+ * already be marked `invokable: false` at the source — i.e. the
84
+ * advertisement itself must already say "don't call this" instead of
85
+ * silently 404ing a caller who trusted it. Returns the ids that violate
86
+ * that rule. A non-empty result means some descriptor is advertised as
87
+ * live but isn't backed by a route, and isn't marked unavailable either —
88
+ * an email.inbox.list-shaped regression. Wire this into a test (or a boot
89
+ * self-check, once one exists) and fail loudly on a non-empty result.
90
+ */
91
+ export function findUnreconciledAdvertisements(descriptors, results) {
92
+ const descriptorsById = new Map(descriptors.map((descriptor) => [descriptor.id, descriptor]));
93
+ const violations = [];
94
+ for (const result of results) {
95
+ if (result.status !== 'unavailable')
96
+ continue;
97
+ const descriptor = descriptorsById.get(result.methodId);
98
+ if (descriptor && descriptor.invokable !== false) {
99
+ violations.push(result.methodId);
100
+ }
101
+ }
102
+ return violations;
103
+ }
@@ -22,6 +22,35 @@ export interface GatewayMethodDescriptor {
22
22
  readonly outputSchema?: Record<string, unknown> | undefined;
23
23
  readonly pluginId?: string | undefined;
24
24
  readonly dangerous?: boolean | undefined;
25
+ /**
26
+ * Defaults to `true`. When explicitly `false`, this method is NOT dispatchable
27
+ * through the generic HTTP/WS method-invocation surface
28
+ * (`invokeGatewayMethodCall`/`invokeWebSocketControlPlaneCall` in
29
+ * `../daemon/control-plane.ts`, guarded by `validateGatewayInvocation`, which
30
+ * rejects it with an honest 400 `NOT_INVOKABLE` before any handler or route is
31
+ * even considered) — nothing more, nothing less.
32
+ *
33
+ * This is a statement about ONE dispatch path, not a claim that the method can
34
+ * never run anywhere. Two independent reasons a descriptor carries
35
+ * `invokable: false`:
36
+ * - No route or internal handler exists at all for this build (e.g. `email.*`,
37
+ * `calendar.*` — cataloged so the contract is honest about the capability's
38
+ * shape, but genuinely unavailable everywhere).
39
+ * - A real route DOES exist and IS served (e.g. `voice.tts.stream`,
40
+ * `control.events.stream`, `artifacts.content.get`), just not through the
41
+ * generic JSON-envelope invoke path — the response is binary/streaming/HTML
42
+ * (see `metadata.responseKind`) and callers must use the direct HTTP path
43
+ * instead.
44
+ *
45
+ * A runtime that registers a real in-process handler for this method id (via
46
+ * `GatewayMethodCatalog.register(descriptor, handler)`) and calls
47
+ * `GatewayMethodCatalog.invoke()` DIRECTLY (bypassing `validateGatewayInvocation`)
48
+ * still serves it — `invoke()` itself does not consult this flag, by design: a
49
+ * consuming runtime that has wired up a genuine handler is authoritative over
50
+ * whether the method actually works, this descriptor is not. `invoke()` only
51
+ * refuses when BOTH `invokable === false` AND no handler is registered — see
52
+ * `method-catalog.ts`'s `invoke()`.
53
+ */
25
54
  readonly invokable?: boolean | undefined;
26
55
  readonly metadata?: Record<string, unknown> | undefined;
27
56
  }
@@ -1 +1 @@
1
- {"version":3,"file":"method-catalog-shared.d.ts","sourceRoot":"","sources":["../../../src/platform/control-plane/method-catalog-shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,IAAI,GAAG,UAAU,CAAC;AAChE,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,QAAQ,CAAC;AACvD,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,eAAe,GAAG,OAAO,GAAG,aAAa,CAAC;AACvF,MAAM,MAAM,qBAAqB,GAAG,KAAK,GAAG,IAAI,GAAG,UAAU,CAAC;AAE9D,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;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AG,MAAM,CAEjE;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,GAAG,sBAAsB,CAY1G"}
@@ -24,6 +24,15 @@ export declare class GatewayMethodCatalog {
24
24
  getAllScopes(options?: {
25
25
  readonly includeWrite?: boolean;
26
26
  }): string[];
27
+ /**
28
+ * Run a method's registered internal handler directly. Note this does NOT consult
29
+ * `descriptor.invokable` for a method that HAS a handler — see the field's doc
30
+ * comment in method-catalog-shared.ts: a runtime that registered a real handler is
31
+ * authoritative over whether the method works, the descriptor's `invokable` flag
32
+ * is not. `invokeGatewayMethodCall` (../daemon/control-plane.ts) is what enforces
33
+ * `invokable` for the generic HTTP/WS dispatch surface, via
34
+ * `validateGatewayInvocation`, BEFORE ever reaching here.
35
+ */
27
36
  invoke(id: string, invocation: GatewayMethodInvocation): Promise<unknown>;
28
37
  }
29
38
  //# sourceMappingURL=method-catalog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"method-catalog.d.ts","sourceRoot":"","sources":["../../../src/platform/control-plane/method-catalog.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EACV,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,4BAA4B,CAAC;AAKpC,YAAY,EACV,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACnB,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,EACvB,8BAA8B,EAC9B,wBAAwB,EACxB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,4BAA4B,CAAC;AA6DpC,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA8C;IACtE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6C;gBAExD,OAAO,GAAE;QAAE,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAA;KAAO;IAWhE,Q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AG,uBAAuB,GAAG,IAAI;IAUnF,YAAY,CAAC,OAAO,GAAE;QAAE,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAA;KAAO,GAAG,MAAM,EAAE;IAiBzE;;;;;;;;OAQG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,uBAAuB,GAAG,OAAO,CAAC,OAAO,CAAC;CA8BhF"}
@@ -7,6 +7,8 @@ import { builtinGatewayEventDescriptors, } from './method-catalog-events.js';
7
7
  import { builtinGatewayKnowledgeMethodDescriptors, } from './method-catalog-knowledge.js';
8
8
  import { builtinGatewayMediaMethodDescriptors, } from './method-catalog-media.js';
9
9
  import { builtinGatewayRuntimeMethodDescriptors, } from './method-catalog-runtime.js';
10
+ import { GatewayVerbError } from './routes/gateway-verb-error.js';
11
+ import { SDKErrorCodes } from '@pellux/goodvibes-errors';
10
12
  const BUILTIN_GATEWAY_EVENTS = builtinGatewayEventDescriptors;
11
13
  const BUILTIN_GATEWAY_METHODS = [
12
14
  ...builtinGatewayControlMethodDescriptors,
@@ -168,12 +170,39 @@ export class GatewayMethodCatalog {
168
170
  }
169
171
  return [...scopes].sort();
170
172
  }
173
+ /**
174
+ * Run a method's registered internal handler directly. Note this does NOT consult
175
+ * `descriptor.invokable` for a method that HAS a handler — see the field's doc
176
+ * comment in method-catalog-shared.ts: a runtime that registered a real handler is
177
+ * authoritative over whether the method works, the descriptor's `invokable` flag
178
+ * is not. `invokeGatewayMethodCall` (../daemon/control-plane.ts) is what enforces
179
+ * `invokable` for the generic HTTP/WS dispatch surface, via
180
+ * `validateGatewayInvocation`, BEFORE ever reaching here.
181
+ */
171
182
  async invoke(id, invocation) {
172
183
  const entry = this.methods.get(id);
173
- if (!entry)
174
- throw new Error(`Unknown gateway method: ${id}`);
175
- if (!entry.handler)
184
+ // Uncataloged id — a real machine code (METHOD_NOT_FOUND), not a prose Error, so
185
+ // any direct caller of invoke() (bypassing the HTTP dispatch's own 404 below) gets
186
+ // the same code-driven signal as invokeGatewayMethod/getGatewayMethod
187
+ // (daemon-sdk/control-routes.ts) and invokeGatewayMethodCall (../daemon/control-
188
+ // plane.ts) — distinct from NOT_INVOKABLE (cataloged but not invokable), which is
189
+ // the id existing but refusing dispatch, not the id being unknown outright.
190
+ if (!entry) {
191
+ throw new GatewayVerbError(`Unknown gateway method: ${id}`, SDKErrorCodes.METHOD_NOT_FOUND, 404);
192
+ }
193
+ if (!entry.handler) {
194
+ // A method explicitly marked invokable:false with no registered handler is
195
+ // honestly "not invokable anywhere" (see the field's doc comment) — distinct
196
+ // from a method that a caller expected to have a handler here but doesn't (a
197
+ // real bug in that caller's wiring). A GatewayVerbError flows straight through
198
+ // invokeGatewayMethodCall's existing catch into an honest 400/NOT_INVOKABLE
199
+ // instead of a generic 500 — and gives any OTHER caller of `invoke()` directly
200
+ // (bypassing the HTTP gate) the same honest, typed signal.
201
+ if (entry.descriptor.invokable === false) {
202
+ throw new GatewayVerbError(`Gateway method is not invokable and has no registered handler: ${id}`, 'NOT_INVOKABLE', 400);
203
+ }
176
204
  throw new Error(`Gateway method has no internal handler: ${id}`);
205
+ }
177
206
  return entry.handler(invocation);
178
207
  }
179
208
  }
@@ -9,6 +9,14 @@ export declare const PANEL_SNAPSHOT_SCHEMA: Record<string, unknown>;
9
9
  export declare const CONFIG_SNAPSHOT_SCHEMA: Record<string, unknown>;
10
10
  export declare const SURFACE_RECORD_SCHEMA: Record<string, unknown>;
11
11
  export declare const CONFIG_SET_OUTPUT_SCHEMA: Record<string, unknown>;
12
+ /**
13
+ * Secret-FREE status metadata for a single shared-store credential. Carries NO
14
+ * secret value / raw key bytes by construction — the plaintext never crosses the
15
+ * wire. `usable` reflects a real in-process resolution attempt.
16
+ */
17
+ export declare const CREDENTIAL_STATUS_RECORD_SCHEMA: Record<string, unknown>;
18
+ /** Output of `credentials.get` — a secret-free credential-status snapshot. */
19
+ export declare const CREDENTIALS_SNAPSHOT_SCHEMA: Record<string, unknown>;
12
20
  export declare const AUTOMATION_SCHEDULE_SCHEMA: Record<string, unknown>;
13
21
  export declare const AUTOMATION_EXECUTION_INTENT_SCHEMA: Record<string, unknown>;
14
22
  export declare const AUTOMATION_RUNTIME_EXECUTION_INTENT_SCHEMA: Record<string, unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"operator-contract-schemas-admin.d.ts","sourceRoot":"","sources":["../../../src/platform/control-plane/operator-contract-schemas-admin.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,sBAAsB,yBAGV,CAAC;AAQ1B,eAAO,MAAM,wBAAwB,yBAQ2F,CAAC;AAEjI,eAAO,MAAM,+BAA+B,yBAE7B,CAAC;AAEhB,eAAO,MAAM,wCAAwC,yBAEtC,CAAC;AAEhB,eAAO,MAAM,uCAAuC,yBAErC,CAAC;AAEhB,eAAO,MAAM,yCAAyC,yBAEvC,CAAC;AAEhB,eAAO,MAAM,wBAAwB,yBAIT,CAAC;AAE7B,eAAO,MAAM,qBAAqB,yBAMmB,CAAC;AAEtD,eAAO,MAAM,sBAAsB,yBAWG,CAAC;AAEvC,eAAO,MAAM,qBAAqB,yBAYyD,CAAC;AAE5F,eAAO,MAAM,wBAAwB,yBAIiB,CAAC;AAuGvD,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAM9D,CAAC;AAQF,eAAO,MAAM,kCAAkC,yBAGrB,CAAC;AAE3B,eAAO,MAAM,0CAA0C,yBAKhB,CAAC;AAExC,eAAO,MAAM,gCAAgC,yBAUA,CAAC;AAkB9C,eAAO,MAAM,kCAAkC,yBAoBA,CAAC;AAEhD,eAAO,MAAM,iCAAiC,yBAMD,CAAC;AAE9C,eAAO,MAAM,iCAAiC,yBAQoF,CAAC;AAUnI,eAAO,MAAM,gCAAgC,yBAQyD,CAAC;AAEvG,eAAO,MAAM,+BAA+B,yBAWgE,CAAC;AAuC7G,eAAO,MAAM,+BAA+B,yBASC,CAAC;AAE9C,eAAO,MAAM,qBAAqB,yBAwBiM,CAAC;AAcpO,eAAO,MAAM,qBAAqB,yBAiCiK,CAAC;AAEpM,eAAO,MAAM,sCAAsC,yBA6Bf,CAAC;AAErC,eAAO,MAAM,6BAA6B,yBAE9B,CAAC;AAEb,eAAO,MAAM,6BAA6B,yBAE9B,CAAC;AAEb,eAAO,MAAM,mCAAmC,yBAGvB,CAAC;AAE1B,eAAO,MAAM,oCAAoC,yBAKe,CAAC;AAEjE,eAAO,MAAM,mCAAmC,yBAErC,CAAC;AAEZ,eAAO,MAAM,gCAAgC,yBAQiC,CAAC;AAE/E,eAAO,MAAM,kCAAkC,yBAQI,CAAC;AAEpD,eAAO,MAAM,kCAAkC,yBAG3B,CAAC;AAErB,eAAO,MAAM,wBAAwB,yBASX,CAAC;AAE3B,eAAO,MAAM,sBAAsB,yBAEnB,CAAC;AAEjB,eAAO,MAAM,oBAAoB,yBAA4B,CAAC;AAE9D,eAAO,MAAM,qBAAqB,yBAKmC,CAAC;AAYtE,eAAO,MAAM,qBAAqB,yBAcwD,CAAC;AAE3F,eAAO,MAAM,0BAA0B,yBAEvB,CAAC;AAEjB,eAAO,MAAM,4BAA4B,yBAGM,CAAC;AAuChD,eAAO,MAAM,qBAAqB,yBAckG,CAAC"}
1
+ {"version":3,"file":"operator-contract-schemas-admin.d.ts","sourceRoot":"","sources":["../../../src/platform/control-plane/operator-contract-schemas-admin.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,sBAAsB,yBAGV,CAAC;AAQ1B,eAAO,MAAM,wBAAwB,yBAQ2F,CAAC;AAEjI,eAAO,MAAM,+BAA+B,yBAE7B,CAAC;AAEhB,eAAO,MAAM,wCAAwC,yBAEtC,CAAC;AAEhB,eAAO,MAAM,uCAAuC,yBAErC,CAAC;AAEhB,eAAO,MAAM,yCAAyC,yBAEvC,CAAC;AAEhB,eAAO,MAAM,wBAAwB,yBAIT,CAAC;AAE7B,eAAO,MAAM,qBAAqB,yBAMmB,CAAC;AAEtD,eAAO,MAAM,sBAAsB,yBAWG,CAAC;AAE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,eAAO,MAAM,qBAAqB,yBAKmC,CAAC;AAYtE,eAAO,MAAM,qBAAqB,yBAcwD,CAAC;AAE3F,eAAO,MAAM,0BAA0B,yBAEvB,CAAC;AAEjB,eAAO,MAAM,4BAA4B,yBAGM,CAAC;AAuChD,eAAO,MAAM,qBAAqB,yBAeiH,CAAC"}
@@ -72,6 +72,26 @@ export const CONFIG_SET_OUTPUT_SCHEMA = objectSchema({
72
72
  key: STRING_SCHEMA,
73
73
  value: JSON_VALUE_SCHEMA,
74
74
  }, ['success', 'key'], { additionalProperties: true });
75
+ /**
76
+ * Secret-FREE status metadata for a single shared-store credential. Carries NO
77
+ * secret value / raw key bytes by construction — the plaintext never crosses the
78
+ * wire. `usable` reflects a real in-process resolution attempt.
79
+ */
80
+ export const CREDENTIAL_STATUS_RECORD_SCHEMA = objectSchema({
81
+ key: STRING_SCHEMA,
82
+ configured: BOOLEAN_SCHEMA,
83
+ usable: BOOLEAN_SCHEMA,
84
+ source: STRING_SCHEMA,
85
+ scope: STRING_SCHEMA,
86
+ secure: BOOLEAN_SCHEMA,
87
+ overriddenByEnv: BOOLEAN_SCHEMA,
88
+ refSource: STRING_SCHEMA,
89
+ }, ['key', 'configured', 'usable', 'source', 'scope', 'secure', 'overriddenByEnv'], { additionalProperties: false });
90
+ /** Output of `credentials.get` — a secret-free credential-status snapshot. */
91
+ export const CREDENTIALS_SNAPSHOT_SCHEMA = objectSchema({
92
+ available: BOOLEAN_SCHEMA,
93
+ credentials: arraySchema(CREDENTIAL_STATUS_RECORD_SCHEMA),
94
+ }, ['available', 'credentials']);
75
95
  const AUTOMATION_JOB_STATUS_SCHEMA = enumSchema(['enabled', 'paused', 'error', 'archived']);
76
96
  const AUTOMATION_RUN_STATUS_SCHEMA = enumSchema(['queued', 'running', 'completed', 'failed', 'cancelled']);
77
97
  const AUTOMATION_RUN_TRIGGER_SCHEMA = enumSchema([
@@ -552,6 +572,7 @@ const SERVICE_NETWORK_SCHEMA = objectSchema({
552
572
  }, ['controlPlane', 'httpListener', 'outbound'], { additionalProperties: false });
553
573
  export const SERVICE_STATUS_SCHEMA = objectSchema({
554
574
  platform: STRING_SCHEMA,
575
+ serviceName: STRING_SCHEMA,
555
576
  path: STRING_SCHEMA,
556
577
  installed: BOOLEAN_SCHEMA,
557
578
  autostart: BOOLEAN_SCHEMA,
@@ -564,4 +585,4 @@ export const SERVICE_STATUS_SCHEMA = objectSchema({
564
585
  lastAction: STRING_SCHEMA,
565
586
  actionError: STRING_SCHEMA,
566
587
  network: SERVICE_NETWORK_SCHEMA,
567
- }, ['platform', 'path', 'installed', 'autostart', 'running', 'commandPreview', 'suggestedCommands'], { additionalProperties: true });
588
+ }, ['platform', 'serviceName', 'path', 'installed', 'autostart', 'running', 'commandPreview', 'suggestedCommands'], { additionalProperties: true });
@@ -0,0 +1,18 @@
1
+ export declare const PROCESS_NODE_SCHEMA: Record<string, unknown>;
2
+ export declare const FLEET_SNAPSHOT_OUTPUT_SCHEMA: Record<string, unknown>;
3
+ export declare const FLEET_LIST_INPUT_SCHEMA: Record<string, unknown>;
4
+ export declare const FLEET_LIST_OUTPUT_SCHEMA: Record<string, unknown>;
5
+ export declare const WORKSPACE_CHECKPOINT_SCHEMA: Record<string, unknown>;
6
+ export declare const CHECKPOINTS_LIST_INPUT_SCHEMA: Record<string, unknown>;
7
+ export declare const CHECKPOINTS_LIST_OUTPUT_SCHEMA: Record<string, unknown>;
8
+ export declare const CHECKPOINTS_CREATE_INPUT_SCHEMA: Record<string, unknown>;
9
+ export declare const CHECKPOINTS_CREATE_OUTPUT_SCHEMA: Record<string, unknown>;
10
+ export declare const CHECKPOINT_DIFF_SCHEMA: Record<string, unknown>;
11
+ export declare const CHECKPOINTS_DIFF_INPUT_SCHEMA: Record<string, unknown>;
12
+ export declare const CHECKPOINTS_DIFF_OUTPUT_SCHEMA: Record<string, unknown>;
13
+ export declare const CHECKPOINT_RESTORE_RESULT_SCHEMA: Record<string, unknown>;
14
+ export declare const CHECKPOINTS_RESTORE_INPUT_SCHEMA: Record<string, unknown>;
15
+ export declare const CHECKPOINTS_RESTORE_OUTPUT_SCHEMA: Record<string, unknown>;
16
+ export declare const SESSIONS_SEARCH_INPUT_SCHEMA: Record<string, unknown>;
17
+ export declare const SESSIONS_SEARCH_OUTPUT_SCHEMA: Record<string, unknown>;
18
+ //# sourceMappingURL=operator-contract-schemas-fleet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operator-contract-schemas-fleet.d.ts","sourceRoot":"","sources":["../../../src/platform/control-plane/operator-contract-schemas-fleet.ts"],"names":[],"mappings":"AAoFA,eAAO,MAAM,mBAAmB,yBAkB8E,CAAC;AAE/G,eAAO,MAAM,4BAA4B,yBAKa,CAAC;AAEvD,eAAO,MAAM,uBAAuB,yBAK9B,CAAC;AAEP,eAAO,MAAM,wBAAwB,yBAKC,CAAC;AAKvC,eAAO,MAAM,2BAA2B,yBAWqD,CAAC;AAE9F,eAAO,MAAM,6BAA6B,yBAIpC,CAAC;AAEP,eAAO,MAAM,8BAA8B,yBAExB,CAAC;AAEpB,eAAO,MAAM,+BAA+B,yBAOhC,CAAC;AAEb,eAAO,MAAM,gCAAgC,yBAGnB,CAAC;AAE3B,eAAO,MAAM,sBAAsB,yBAMe,CAAC;AAEnD,eAAO,MAAM,6BAA6B,yBAGjC,CAAC;AAEV,eAAO,MAAM,8BAA8B,yBAE/B,CAAC;AAEb,eAAO,MAAM,gCAAgC,yBAK8B,CAAC;AAE5E,eAAO,MAAM,gCAAgC,yBAInC,CAAC;AAEX,eAAO,MAAM,iCAAiC,yBAEhC,CAAC;AAEf,eAAO,MAAM,4BAA4B,yBASnC,CAAC;AAEP,eAAO,MAAM,6BAA6B,yBAIf,CAAC"}