@makaio/framework 1.0.0-dev-1784154668798 → 1.0.0-dev-1784706768858

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 (364) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/{adapter-B9vVBwli.mjs → adapter-CYobxqN_.mjs} +1 -1
  3. package/dist/adapters/claude/index.mjs +2 -2
  4. package/dist/adapters/config/index.d.mts +1 -1
  5. package/dist/adapters/config/index.mjs +1 -1
  6. package/dist/adapters/index.d.mts +2 -2
  7. package/dist/adapters/index.mjs +2 -2
  8. package/dist/adapters/node.d.mts +1 -1
  9. package/dist/adapters/node.mjs +1 -1
  10. package/dist/artifact-DCkizHkS.mjs +1 -0
  11. package/dist/attach-error-DCnzW-Yz.mjs +1 -0
  12. package/dist/authority-state-bootstrap-C_-F_dtq.mjs +1 -0
  13. package/dist/bus/index.d.mts +99 -4
  14. package/dist/bus/index.mjs +1 -1
  15. package/dist/bus-B6SAjgOC.mjs +2 -0
  16. package/dist/bus-C2l3K74u.mjs +1 -0
  17. package/dist/{canonical-model-C31NaBJs.mjs → canonical-model-EMRYCVjX.mjs} +1 -1
  18. package/dist/client-OYk0Ttck.mjs +1 -0
  19. package/dist/client-binary-version-verifier-Dv7TGFxh.mjs +2 -0
  20. package/dist/clients/index.d.mts +383 -13
  21. package/dist/clients/index.mjs +1 -1
  22. package/dist/clients/managed-install.d.mts +1 -1
  23. package/dist/clients/managed-install.mjs +1 -1
  24. package/dist/{context-resolution-D5jHK1w-.d.mts → context-resolution-DZSBOCKY.d.mts} +10 -10
  25. package/dist/contracts/adapter/index.d.mts +2 -2
  26. package/dist/contracts/adapter/index.mjs +1 -1
  27. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  28. package/dist/contracts/artifact/index.d.mts +2 -2
  29. package/dist/contracts/artifact/index.mjs +1 -1
  30. package/dist/contracts/auth/index.d.mts +2 -2
  31. package/dist/contracts/canonical-model/index.d.mts +1 -1
  32. package/dist/contracts/canonical-model/index.mjs +1 -1
  33. package/dist/contracts/client/index.d.mts +3 -3
  34. package/dist/contracts/client/index.mjs +1 -1
  35. package/dist/contracts/common/index.d.mts +1 -1
  36. package/dist/contracts/config/index.d.mts +1 -1
  37. package/dist/contracts/extension/index.d.mts +5 -4
  38. package/dist/contracts/facet/index.d.mts +1 -1
  39. package/dist/contracts/harness/index.d.mts +1 -1
  40. package/dist/contracts/host/index.d.mts +1 -1
  41. package/dist/contracts/index.d.mts +133 -94
  42. package/dist/contracts/index.mjs +1 -1
  43. package/dist/contracts/materialization/index.d.mts +4 -4
  44. package/dist/contracts/materialization/index.mjs +1 -1
  45. package/dist/contracts/model-registry/index.d.mts +1 -1
  46. package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
  47. package/dist/contracts/platform/index.d.mts +1 -1
  48. package/dist/contracts/provider/index.d.mts +2 -2
  49. package/dist/contracts/session/index.d.mts +2 -2
  50. package/dist/contracts/session/index.mjs +1 -1
  51. package/dist/contracts/shared/index.d.mts +2 -2
  52. package/dist/contracts/skill/index.d.mts +1 -1
  53. package/dist/contracts/telemetry/index.d.mts +1 -1
  54. package/dist/contracts/timeout/index.d.mts +1 -1
  55. package/dist/contracts/variant/index.d.mts +1 -1
  56. package/dist/contracts/workflow/index.d.mts +2 -2
  57. package/dist/contracts/workflow/index.mjs +1 -1
  58. package/dist/core/index.d.mts +78 -3
  59. package/dist/core/index.mjs +1 -1
  60. package/dist/{detached-extension-handle-BVM-Ic-4.mjs → detached-extension-handle-BsywhHfk.mjs} +1 -1
  61. package/dist/{filesystem-service-qR9Zy5-r.mjs → filesystem-service-Cupz_Z7S.mjs} +1 -1
  62. package/dist/git/index.mjs +1 -1
  63. package/dist/{globby-DE358g5u.mjs → globby-DWp7V-P2.mjs} +1 -1
  64. package/dist/handlers-cMBmexF4.mjs +57 -0
  65. package/dist/hook-responses-mmqRa2Dq.d.mts +825 -0
  66. package/dist/{index-Du-AJm69.d.mts → index-0Ju2i8gV.d.mts} +20 -6
  67. package/dist/{index-DD9inq5h.d.mts → index-4NQLoI7R.d.mts} +1 -1
  68. package/dist/{index-DAVLhzkq.d.mts → index-8fJ6dkzR.d.mts} +2 -1
  69. package/dist/{index-BdsuBxEz.d.mts → index-BHQXXd-O.d.mts} +4 -4
  70. package/dist/{index-ZGPSCZdC.d.mts → index-BKeJ-Act.d.mts} +24 -10
  71. package/dist/{index-BPBSMsc8.d.mts → index-BWvTZJxe.d.mts} +20 -20
  72. package/dist/{index-BM7u_OTo.d.mts → index-B_aBwkE-.d.mts} +111 -94
  73. package/dist/{index-ChB3K_a12.d.mts → index-BhXCCgJV2.d.mts} +1 -1
  74. package/dist/{index-BcqWLD6J.d.mts → index-BsBvs0aK.d.mts} +117 -45
  75. package/dist/{index-D_lLZ2dU.d.mts → index-C81hMexK.d.mts} +129 -37
  76. package/dist/{index-DoJRv-c3.d.mts → index-CFqShlHD.d.mts} +85 -85
  77. package/dist/{index-DHejCnq8.d.mts → index-CHxWUmmA.d.mts} +3 -3
  78. package/dist/{index-BfNfKh4y.d.mts → index-CKccv4s2.d.mts} +20 -26
  79. package/dist/{index-TWs1TQ2-.d.mts → index-Cw7_69gV.d.mts} +1 -1
  80. package/dist/{index-DE29b4QM.d.mts → index-CzKLLQLw.d.mts} +8 -8
  81. package/dist/{index-CSyR9Fie2.d.mts → index-D73PTKXG2.d.mts} +3 -3
  82. package/dist/{index-DA5S_dj8.d.mts → index-DRiTICBU.d.mts} +1 -1
  83. package/dist/{index-XzetMf0e.d.mts → index-DitLUuR5.d.mts} +126 -42
  84. package/dist/{index-B_KmL_z8.d.mts → index-jbgHR5J2.d.mts} +1 -1
  85. package/dist/{index-B96HlWaM.d.mts → index-pjATMrvJ.d.mts} +10 -4
  86. package/dist/{index-CrbFA2kp.d.mts → index-t9fTvyq6.d.mts} +4 -4
  87. package/dist/kernel/cli/index.d.mts +2 -2
  88. package/dist/kernel/cli/register.d.mts +1 -1
  89. package/dist/kernel/extension/index.d.mts +1 -1
  90. package/dist/kernel/index.d.mts +5 -5
  91. package/dist/kernel/namespace/index.d.mts +1 -1
  92. package/dist/kernel/observability/index.d.mts +1 -1
  93. package/dist/kernel/providers/index.d.mts +1 -1
  94. package/dist/kernel/window/index.d.mts +1 -1
  95. package/dist/{lib-DhbCgfYD.mjs → lib-B7TpTzkG.mjs} +3 -3
  96. package/dist/{lib-6P8_sBCe.mjs → lib-BeMM738r.mjs} +1 -1
  97. package/dist/{load-extensions-jGQgvw6Z.d.mts → load-extensions-BLdG90Zi.d.mts} +1 -1
  98. package/dist/{load-extensions-5VckHXuw.mjs → load-extensions-CUmFCcYi.mjs} +1 -1
  99. package/dist/materialization-s8eR1eQ4.mjs +1 -0
  100. package/dist/mcp-http-server/index.mjs +1 -1
  101. package/dist/{namespace-C_phrzqu2.d.mts → namespace-BWsPZGiq2.d.mts} +5 -5
  102. package/dist/{namespace-CzZmsumy.d.mts → namespace-BeV7LST-.d.mts} +2 -2
  103. package/dist/{namespace-BTp6-zD8.d.mts → namespace-BsF9IxJ9.d.mts} +53 -5
  104. package/dist/{namespace-CpSZfHLv.d.mts → namespace-Db_PFX3v.d.mts} +36 -18
  105. package/dist/{namespace-Bldr5X64.d.mts → namespace-Dvo_7BQw.d.mts} +2 -2
  106. package/dist/{namespace-BwAiuQ2_.d.mts → namespace-lWlqWTKu.d.mts} +48 -4
  107. package/dist/node/bus-server/index.d.mts +1 -1
  108. package/dist/node/bus-server/index.mjs +1 -1
  109. package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
  110. package/dist/node/bus-server/server-lifecycle.mjs +1 -1
  111. package/dist/node/transports/index.d.mts +5 -3
  112. package/dist/node/transports/index.mjs +2 -2
  113. package/dist/package-DKnzOvoR.mjs +1 -0
  114. package/dist/{package-Brt4dhRC.mjs → package-DW1Upu8E.mjs} +1 -1
  115. package/dist/package.json +1 -1
  116. package/dist/{packages-BBJsifai.d.mts → packages-DeIgn0Hn.d.mts} +2 -2
  117. package/dist/packages-zDnokBpl.mjs +1 -0
  118. package/dist/rules/index.d.mts +1 -1
  119. package/dist/rules/index.mjs +1 -1
  120. package/dist/rules/schemas.d.mts +1 -1
  121. package/dist/runtime-bun/index.mjs +1 -1
  122. package/dist/runtime-node/extension-discovery.d.mts +1 -1
  123. package/dist/runtime-node/extension-validation.d.mts +1 -1
  124. package/dist/runtime-node/extension-validation.mjs +1 -1
  125. package/dist/runtime-node/index.d.mts +3 -3
  126. package/dist/runtime-node/index.mjs +22 -22
  127. package/dist/runtime-node/makaio-config.d.mts +1 -1
  128. package/dist/runtime-node/makaio-config.mjs +1 -1
  129. package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
  130. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  131. package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
  132. package/dist/schemas-BJ8VMXhO.mjs +1 -0
  133. package/dist/schemas-BRxU_oqL.mjs +1 -0
  134. package/dist/schemas-Dgj3WaOI.mjs +1 -0
  135. package/dist/{schemas-BLJ2k226.d.mts → schemas-SsGbBOZ-.d.mts} +2 -2
  136. package/dist/{schemas-Ca3BLPH5.d.mts → schemas-oTIqxZN_.d.mts} +17 -17
  137. package/dist/scoped-bus-C9BdNwfM.mjs +1 -0
  138. package/dist/services/adapter-runtime/index.d.mts +3 -3
  139. package/dist/services/adapter-runtime/index.mjs +1 -1
  140. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  141. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  142. package/dist/services/adapter-subsystem/index.d.mts +3 -3
  143. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  144. package/dist/services/agent-runtime/index.d.mts +2 -2
  145. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  146. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  147. package/dist/services/capability/index.d.mts +1 -1
  148. package/dist/services/capability/index.mjs +1 -1
  149. package/dist/services/codebase/index.d.mts +2 -2
  150. package/dist/services/codebase/namespace.d.mts +1 -1
  151. package/dist/services/codebase/schemas.d.mts +1 -1
  152. package/dist/services/compression/index.d.mts +2 -2
  153. package/dist/services/compression/namespace.d.mts +1 -1
  154. package/dist/services/compression/schemas.d.mts +1 -1
  155. package/dist/services/context-rules/index.d.mts +4 -4
  156. package/dist/services/context-rules/index.mjs +1 -1
  157. package/dist/services/execution-target/index.d.mts +3 -3
  158. package/dist/services/execution-target/index.mjs +1 -1
  159. package/dist/services/execution-target/namespace.d.mts +1 -1
  160. package/dist/services/execution-target/schemas.d.mts +1 -1
  161. package/dist/services/filesystem/index.d.mts +1 -1
  162. package/dist/services/filesystem/index.mjs +1 -1
  163. package/dist/services/git/namespace.d.mts +2 -2
  164. package/dist/services/git/namespace.mjs +1 -1
  165. package/dist/services/git/schemas.d.mts +1 -1
  166. package/dist/services/git/schemas.mjs +1 -1
  167. package/dist/services/harness/index.d.mts +3 -3
  168. package/dist/services/harness/index.mjs +1 -1
  169. package/dist/services/index.d.mts +73 -51
  170. package/dist/services/index.mjs +1 -1
  171. package/dist/services/log-import/browser.d.mts +2 -2
  172. package/dist/services/log-import/index.d.mts +2 -2
  173. package/dist/services/log-import/log-import.d.mts +1 -1
  174. package/dist/services/log-import/log-import.mjs +1 -1
  175. package/dist/services/log-import/namespace.mjs +1 -1
  176. package/dist/services/log-import/schemas.mjs +1 -1
  177. package/dist/services/materialization/index.d.mts +5 -5
  178. package/dist/services/materialization/index.mjs +1 -1
  179. package/dist/services/model-registry/index.d.mts +1 -1
  180. package/dist/services/model-registry/index.mjs +1 -1
  181. package/dist/services/preferences/index.d.mts +2 -2
  182. package/dist/services/preferences/schemas.d.mts +1 -1
  183. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  184. package/dist/services/provider-context/index.d.mts +1 -1
  185. package/dist/services/provider-runtime/index.mjs +1 -1
  186. package/dist/services/session/handlers/index.d.mts +1 -1
  187. package/dist/services/session/handlers/index.mjs +1 -1
  188. package/dist/services/session/index.d.mts +9 -9
  189. package/dist/services/session/index.mjs +1 -1
  190. package/dist/services/session/messages/namespace.d.mts +1 -1
  191. package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
  192. package/dist/services/session/orchestrator-testing/index.mjs +1 -1
  193. package/dist/services/session/session-events/namespace.d.mts +1 -1
  194. package/dist/services/session/storage/namespace.d.mts +1 -1
  195. package/dist/services/session/storage/schema.d.mts +1 -1
  196. package/dist/services/session/testing/index.mjs +2 -2
  197. package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
  198. package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
  199. package/dist/services/session/turns/namespace.d.mts +1 -1
  200. package/dist/services/session-editor/index.d.mts +1 -1
  201. package/dist/services/session-editor/index.mjs +1 -1
  202. package/dist/services/settings/index.d.mts +3 -3
  203. package/dist/services/settings/namespace.d.mts +14 -14
  204. package/dist/services/settings/namespace.mjs +1 -1
  205. package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
  206. package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
  207. package/dist/services/settings/storage/index.d.mts +3 -3
  208. package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
  209. package/dist/services/subagent/index.d.mts +1 -1
  210. package/dist/services/subagent/index.mjs +1 -1
  211. package/dist/services/subagent-template/index.d.mts +2 -2
  212. package/dist/services/subagent-template/namespace.d.mts +1 -1
  213. package/dist/services/subagent-template/schemas.d.mts +1 -1
  214. package/dist/services/tool-approval/index.d.mts +1 -1
  215. package/dist/services/tool-approval/index.mjs +1 -1
  216. package/dist/services/tools/index.d.mts +1 -1
  217. package/dist/services/tools/index.mjs +1 -1
  218. package/dist/services/tray-menu/index.d.mts +3 -3
  219. package/dist/services/tray-menu/index.mjs +1 -1
  220. package/dist/services/tray-menu/namespace.d.mts +1 -1
  221. package/dist/services/tray-menu/schemas.d.mts +1 -1
  222. package/dist/services/turn/index.d.mts +1 -1
  223. package/dist/services/turn/namespace.d.mts +1 -1
  224. package/dist/services/turn/schemas.d.mts +24 -2
  225. package/dist/services/turn/schemas.mjs +1 -1
  226. package/dist/{session-BxWogVkD.mjs → session-Carng3Yk.mjs} +1 -1
  227. package/dist/session-idI1jk5X.mjs +76 -0
  228. package/dist/{session-lineage-CWlcOKBZ.d.mts → session-lineage-Cte63dGx.d.mts} +1 -1
  229. package/dist/src-XihJcAQS.mjs +1 -0
  230. package/dist/storage/drizzle/client.d.mts +1 -1
  231. package/dist/storage/drizzle/client.mjs +1 -1
  232. package/dist/storage/drizzle/index.d.mts +1 -1
  233. package/dist/storage/drizzle/index.mjs +1 -1
  234. package/dist/storage/handlers/drizzle/index.d.mts +1 -1
  235. package/dist/storage/handlers/drizzle/index.mjs +1 -1
  236. package/dist/storage/handlers/index.d.mts +1 -1
  237. package/dist/storage/handlers/index.mjs +1 -1
  238. package/dist/{tool-approval-service-BgSn_6NT.mjs → tool-approval-service-fIZ9x0kL.mjs} +1 -1
  239. package/dist/{tools-CWSuNk-M.mjs → tools-Cs2DwjCC.mjs} +1 -1
  240. package/dist/{transition-CukPcOG5.d.mts → transition-BMYk_IVK.d.mts} +2 -2
  241. package/dist/{types-DiZJnwN0.d.mts → types-CtSkJqzV.d.mts} +104 -14
  242. package/dist/{types-Be7wY1De.d.mts → types-LspCUW09.d.mts} +1 -1
  243. package/dist/ui-components/index.d.mts +4 -4
  244. package/dist/ui-components/index.mjs +2 -2
  245. package/dist/ui-kernel/index.d.mts +1 -1
  246. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  247. package/dist/{view-builder-DQiA4wDH.d.mts → view-builder-CpKzgyS2.d.mts} +77 -18
  248. package/dist/workflow-BX-FxDb0.mjs +1 -0
  249. package/dist/workflow-engine/index.d.mts +76 -76
  250. package/dist/workflow-engine/index.mjs +1 -1
  251. package/dist/workflow-engine/package.d.mts +1 -1
  252. package/dist/workflow-engine/package.mjs +1 -1
  253. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
  254. package/dist/workflow-worker-DR9qYOFc.mjs +1 -0
  255. package/package.json +4 -4
  256. package/dist/artifact-Dnpy5ei_.mjs +0 -1
  257. package/dist/authority-state-bootstrap-BlbmQ9A5.mjs +0 -1
  258. package/dist/bus-D-ioC0DE.mjs +0 -1
  259. package/dist/bus-rgUFuO2a.mjs +0 -2
  260. package/dist/client-CzPCSeyE.mjs +0 -1
  261. package/dist/client-binary-version-verifier-CaFlNNjs.mjs +0 -2
  262. package/dist/definition-ClKlXenJ.d.mts +0 -413
  263. package/dist/handlers-RGs3eC9X.mjs +0 -57
  264. package/dist/materialization-BBxXhthv.mjs +0 -1
  265. package/dist/package-3cW8oIkI.mjs +0 -1
  266. package/dist/packages-I0D3JP9L.mjs +0 -1
  267. package/dist/schemas-6H-dlMrB.mjs +0 -1
  268. package/dist/schemas-DyJHJ8Pm.mjs +0 -1
  269. package/dist/schemas-th_nuC5t.mjs +0 -1
  270. package/dist/scoped-bus-CZId-Df8.mjs +0 -1
  271. package/dist/session-CAjudDuJ.mjs +0 -76
  272. package/dist/src-T5DtFSyU.mjs +0 -1
  273. package/dist/workflow-DPeE6-Ta.mjs +0 -1
  274. package/dist/workflow-worker-CPCh68Qf.mjs +0 -1
  275. /package/dist/{adapter-auth-runtime-CotG_6M4.mjs → adapter-auth-runtime-DFBLXD5K.mjs} +0 -0
  276. /package/dist/{adapter-binding-DQ1HrGcH.d.mts → adapter-binding-Dfk_g-lP.d.mts} +0 -0
  277. /package/dist/{ajv-WvFKnw8d.mjs → ajv-C8r45sFs.mjs} +0 -0
  278. /package/dist/{await-trigger-COHFNyNi.mjs → await-trigger-UceeyCyi.mjs} +0 -0
  279. /package/dist/{base-orchestrator-p3zIcnaJ.d.mts → base-orchestrator-5yH3l39s.d.mts} +0 -0
  280. /package/dist/{capability-service-TCOwWrLi.mjs → capability-service-BzKBK0n2.mjs} +0 -0
  281. /package/dist/{client-CGEyBWKl.d.mts → client-DYEHDiJN.d.mts} +0 -0
  282. /package/dist/{client-binary-version-verifier-WsNRplFB.d.mts → client-binary-version-verifier-C12PvQmz.d.mts} +0 -0
  283. /package/dist/{clients-namespace-ClKm1GLT.d.mts → clients-namespace-DcFmhtLv.d.mts} +0 -0
  284. /package/dist/{config-namespace-DOw8R5eb.d.mts → config-namespace-DmP7NVju.d.mts} +0 -0
  285. /package/dist/{create-static-mount-DM9qO98Q.mjs → create-static-mount-BLbqGmva.mjs} +0 -0
  286. /package/dist/{cross-spawn-CVfmnMVP.mjs → cross-spawn-BXxQUsPS.mjs} +0 -0
  287. /package/dist/{cursor-storage-BoFVjVGq.mjs → cursor-storage-DCj4uUxr.mjs} +0 -0
  288. /package/dist/{definition-BZrouYAq.d.mts → definition-BEvV7tbD.d.mts} +0 -0
  289. /package/dist/{descriptor-to-package-DCwvJoUE.mjs → descriptor-to-package-VfB8lK5w.mjs} +0 -0
  290. /package/dist/{drizzle-BQDvlDL2.mjs → drizzle-oCH9H53q.mjs} +0 -0
  291. /package/dist/{esm-1UzF2r1U.mjs → esm-ClQELElL.mjs} +0 -0
  292. /package/dist/{event-Ddxe4yp9.mjs → event-BOLVCfhH.mjs} +0 -0
  293. /package/dist/{execution-target-D6PoGaO8.mjs → execution-target-CsZXIvli.mjs} +0 -0
  294. /package/dist/{extension-discovery-Cce4FmRu.d.mts → extension-discovery-B6p3iZaV.d.mts} +0 -0
  295. /package/dist/{filesystem-service-CWBzOEAA.d.mts → filesystem-service-CGdboor3.d.mts} +0 -0
  296. /package/dist/{handler-Bxs0moLY.mjs → handler-GGOD_ofd.mjs} +0 -0
  297. /package/dist/{identity-D481xSkS.mjs → identity-BmEHHoBw.mjs} +0 -0
  298. /package/dist/{index-BoCL9IHT.d.mts → index-BDDbcWNI.d.mts} +0 -0
  299. /package/dist/{index-p1N3ZuqF.d.mts → index-BG9-vQHD.d.mts} +0 -0
  300. /package/dist/{index-C2PHX5Em.d.mts → index-BSmwpgkR.d.mts} +0 -0
  301. /package/dist/{index-M8rNEeH8.d.mts → index-BUYyZm5I.d.mts} +0 -0
  302. /package/dist/{index-Jec13bI-2.d.mts → index-Bd1GC1kU2.d.mts} +0 -0
  303. /package/dist/{index-D3cH5U0n.d.mts → index-BgpYhR2z.d.mts} +0 -0
  304. /package/dist/{index-BrvsExEF.d.mts → index-Brdc35b-.d.mts} +0 -0
  305. /package/dist/{index-4b-ig5Uf.d.mts → index-C96LlS5m.d.mts} +0 -0
  306. /package/dist/{index-RtP5Mi4D.d.mts → index-CFeY8lfU.d.mts} +0 -0
  307. /package/dist/{index-NZ-gfUOw.d.mts → index-CcsJnJOD.d.mts} +0 -0
  308. /package/dist/{index-XLGBNeu0.d.mts → index-CdEhEXlY.d.mts} +0 -0
  309. /package/dist/{index-DKCFz7dL.d.mts → index-Chy9aknK.d.mts} +0 -0
  310. /package/dist/{index-BRdPSBFH2.d.mts → index-Ci3_i-WC2.d.mts} +0 -0
  311. /package/dist/{index-ChsmMZmN.d.mts → index-DC0yVsYL.d.mts} +0 -0
  312. /package/dist/{index-DIAmg04s.d.mts → index-DEchpaya.d.mts} +0 -0
  313. /package/dist/{index-CNS1jyBU.d.mts → index-DYUxNOIX.d.mts} +0 -0
  314. /package/dist/{index-fFSPF7N0.d.mts → index-DaMfTvfz.d.mts} +0 -0
  315. /package/dist/{index-Dx6P-ajY.d.mts → index-DquI_1X5.d.mts} +0 -0
  316. /package/dist/{index-DbP0yaRw.d.mts → index-GYZs75UP.d.mts} +0 -0
  317. /package/dist/{index-CQco6KNL.d.mts → index-oYGf2zIe.d.mts} +0 -0
  318. /package/dist/{index-BOlzcjwS.d.mts → index-pgYFJ5h6.d.mts} +0 -0
  319. /package/dist/{json-value-BsWNQQbr.d.mts → json-value-BwVdTylT.d.mts} +0 -0
  320. /package/dist/{jsonl-transport-B70HQ9l1.mjs → jsonl-transport-D8RBF0dK.mjs} +0 -0
  321. /package/dist/{lib-C_apP_9s.mjs → lib-3_xcE8J-.mjs} +0 -0
  322. /package/dist/{model-registry-C3NX834K.mjs → model-registry-CoegIvks.mjs} +0 -0
  323. /package/dist/{namespace-Bogua97s.d.mts → namespace-8-GrdcbF.d.mts} +0 -0
  324. /package/dist/{namespace-DNgZ_rfi.d.mts → namespace-B9CYb9Gh.d.mts} +0 -0
  325. /package/dist/{namespace-DDx4NVJm.mjs → namespace-BHj13hbA.mjs} +0 -0
  326. /package/dist/{namespace-Dzbt8LqQ.d.mts → namespace-BHliaabz.d.mts} +0 -0
  327. /package/dist/{namespace-BqlDkdht2.d.mts → namespace-BSXHdCVh2.d.mts} +0 -0
  328. /package/dist/{namespace-CU1jSw6E.d.mts → namespace-Bd49QmzS.d.mts} +0 -0
  329. /package/dist/{namespace-kIjqar0Y.mjs → namespace-BeED_Ojz.mjs} +0 -0
  330. /package/dist/{namespace-SwgMs4rw.d.mts → namespace-D9HNjIdc.d.mts} +0 -0
  331. /package/dist/{namespace-B1_egU5J.mjs → namespace-DWwWnLBu.mjs} +0 -0
  332. /package/dist/{namespace-UCwUrFRx.d.mts → namespace-De9Mg3zv.d.mts} +0 -0
  333. /package/dist/{namespace-CddQuUvG.d.mts → namespace-SQAGytmu.d.mts} +0 -0
  334. /package/dist/{orchestrator-shared-DrEFeZYw.d.mts → orchestrator-shared-BB6j8ezL.d.mts} +0 -0
  335. /package/dist/{orchestrator-shared-jYk9mi5C.mjs → orchestrator-shared-CY7Tu7kZ.mjs} +0 -0
  336. /package/dist/{out-B6fO6go6.mjs → out-CFkI17mk.mjs} +0 -0
  337. /package/dist/{package-BVm1EakP.d.mts → package-BSG1681x.d.mts} +0 -0
  338. /package/dist/{providers-namespace-Bl3M8Ibo.d.mts → providers-namespace-sPbGcZ6I.d.mts} +0 -0
  339. /package/dist/{quick-lru-Coxb6GVa.mjs → quick-lru-CTBjxfgD.mjs} +0 -0
  340. /package/dist/{registry-ElIHcMM2.mjs → registry-Dw6l7k3e.mjs} +0 -0
  341. /package/dist/{schema-DOPEco97.d.mts → schema-CfMsufSb.d.mts} +0 -0
  342. /package/dist/{schemas-B3K1ekm7.d.mts → schemas-B4FyOOJj.d.mts} +0 -0
  343. /package/dist/{schemas-Dq_g7Giu.d.mts → schemas-B5tMYfhC.d.mts} +0 -0
  344. /package/dist/{schemas-D_H0ztxl.d.mts → schemas-BAvt2HDy.d.mts} +0 -0
  345. /package/dist/{schemas-FiDj_kLq.mjs → schemas-BGS9RfqV.mjs} +0 -0
  346. /package/dist/{schemas-BKgUDm_a2.d.mts → schemas-BKKpQC4X2.d.mts} +0 -0
  347. /package/dist/{schemas-CzT0LApM.d.mts → schemas-ChF2z4RB.d.mts} +0 -0
  348. /package/dist/{schemas-DfZ85CRF2.d.mts → schemas-CiWCNQ9a2.d.mts} +0 -0
  349. /package/dist/{schemas-pl0mzEtO.d.mts → schemas-D55eXBgl.d.mts} +0 -0
  350. /package/dist/{schemas-CVbfHPw-.d.mts → schemas-DYvvMd3c.d.mts} +0 -0
  351. /package/dist/{schemas-DPosZWw-.d.mts → schemas-Dmij0PIc.d.mts} +0 -0
  352. /package/dist/{server-lifecycle-DzO3rjKP.d.mts → server-lifecycle-C-3OgoKi.d.mts} +0 -0
  353. /package/dist/{server-lifecycle-DLdh0-4H.mjs → server-lifecycle-DV6NMsgH.mjs} +0 -0
  354. /package/dist/{src-Dqa1n_kI.mjs → src-ftBp6GpR.mjs} +0 -0
  355. /package/dist/{storage-namespace-D4yQ--Sp.d.mts → storage-namespace-9N9R61pI.d.mts} +0 -0
  356. /package/dist/{storage-namespace-B1_x8Ho2.mjs → storage-namespace-B1GI4elv.mjs} +0 -0
  357. /package/dist/{storage-namespace-definition-BzSaRLtZ.d.mts → storage-namespace-definition-V8sc3drq.d.mts} +0 -0
  358. /package/dist/{supports-color-CCdGjFUY.mjs → supports-color-DwW9N6YC.mjs} +0 -0
  359. /package/dist/{tray-menu-service-BJ9r7IY3.mjs → tray-menu-service-Dgedanv-.mjs} +0 -0
  360. /package/dist/{types-Diu9uAnB.d.mts → types-Bju4dmAg.d.mts} +0 -0
  361. /package/dist/{types-C8_OhAFv.d.mts → types-DBb5jY4Z.d.mts} +0 -0
  362. /package/dist/{types-Bgb8eQkd.d.mts → types-DVLq657Y.d.mts} +0 -0
  363. /package/dist/{types-B9QOZAZ5.d.mts → types-DkFvBdIY.d.mts} +0 -0
  364. /package/dist/{window-registry-CHv3cgSN.d.mts → window-registry-Qcnvlhp7.d.mts} +0 -0
@@ -1,4 +1,4 @@
1
- import { a as StrategyDependencies, i as InstallStrategy, n as createStrategy, r as InstallArtifact, t as verifyInstalledVersion } from "../client-binary-version-verifier-WsNRplFB.mjs";
1
+ import { a as StrategyDependencies, i as InstallStrategy, n as createStrategy, r as InstallArtifact, t as verifyInstalledVersion } from "../client-binary-version-verifier-C12PvQmz.mjs";
2
2
  import * as _$zod from "zod";
3
3
  import { z } from "zod";
4
4
  import * as _$_makaio_core0 from "@makaio/framework/core";
@@ -12,7 +12,8 @@ import * as _$drizzle_orm_pg_core0 from "drizzle-orm/pg-core";
12
12
  import * as _$_makaio_storage_drizzle0 from "@makaio/framework/storage/drizzle";
13
13
  import { MakaioDatabase } from "@makaio/framework/storage/drizzle";
14
14
  import * as _$drizzle_orm0 from "drizzle-orm";
15
- import { ClientAccountIdentifier, ClientDefinition as ClientDefinition$1, ClientExecutionContext, ClientInstallCompleted, ClientInstallProgress, ClientRuntimeObserveRequest, ClientSessionObservedBase, ClientSubjects, ClientUsageSnapshot, ClientWiringEntry, ClientWiringEntrySchema, ManagedInstallDescriptor, ManagedInstallStrategy, PostInstallDescriptor } from "@makaio/framework/contracts/client";
15
+ import { ActivationValidationError, CanonicalEffect, ClientAccountIdentifier, ClientDefinition as ClientDefinition$1, ClientExecutionContext, ClientInstallCompleted, ClientInstallProgress, ClientRuntimeObserveRequest, ClientSessionObservedBase, ClientSubjects, ClientUsageSnapshot, ClientWiringEntry, ClientWiringEntrySchema, ContributorDefinition, ManagedInstallDescriptor, ManagedInstallStrategy, PostInstallDescriptor, ProviderContractCatalogEntry, ProviderContributionEnvelope, RuntimeOutcomeCode } from "@makaio/framework/contracts/client";
16
+ import { ContributionProcessor } from "@makaio/framework/kernel";
16
17
  import * as _$zod_v4_core0 from "zod/v4/core";
17
18
 
18
19
  //#region subsystems/client/src/atomic-modify-file.d.ts
@@ -1351,6 +1352,14 @@ declare const ClientHookHandleResponseSchema: z.ZodObject<{
1351
1352
  stderr: z.ZodDefault<z.ZodString>;
1352
1353
  }, z.core.$strip>;
1353
1354
  type ClientHookHandleResponse = z.infer<typeof ClientHookHandleResponseSchema>;
1355
+ /**
1356
+ * Frozen no-op hook handle response shared across all client composers.
1357
+ *
1358
+ * exitCode 0 with empty stdout/stderr is the provider-valid passthrough
1359
+ * that permits the tool invocation to proceed unchanged. A single frozen
1360
+ * instance avoids per-client duplication and per-call object allocation.
1361
+ */
1362
+ declare const NOOP_HOOK_HANDLE_RESPONSE: ClientHookHandleResponse;
1354
1363
  type RawClientHookHandleSubjectRecord = SubjectRecord<'hook.handle', RequestMessagePayload<RawClientHookPayload, ClientHookHandleResponse>>;
1355
1364
  /**
1356
1365
  * Subject definition for the raw hook handle request/response subject in a
@@ -1365,11 +1374,16 @@ type RawClientHookHandleSubject = SubjectDefinition<RawClientHookHandleSubjectRe
1365
1374
  * Build a non-owning subject definition for `client:<id>.hook.handle`.
1366
1375
  *
1367
1376
  * The returned definition uses `isRequest: true` so the bus dispatches it
1368
- * through the request/response pipeline. Concrete client packages own their
1369
- * full `client:<id>` namespace via {@link createClientNamespace}; this helper
1370
- * is intentionally non-owning for the same reasons as
1371
- * {@link createRawClientHookReceivedSubject} see that function's doc for
1372
- * the full rationale.
1377
+ * through the request/response pipeline, and `hostLocalRequest: true` so the
1378
+ * bus accepts direct remote ingress but never relays the request onward to
1379
+ * other transports. This matches the owning namespace registration in
1380
+ * {@link createClientNamespace}, which wraps the schema with
1381
+ * `hostLocalRequest()`.
1382
+ *
1383
+ * Concrete client packages own their full `client:<id>` namespace via
1384
+ * {@link createClientNamespace}; this helper is intentionally non-owning for
1385
+ * the same reasons as {@link createRawClientHookReceivedSubject} — see that
1386
+ * function's doc for the full rationale.
1373
1387
  * @param rawClientId - Stable client identifier, optionally prefixed with `client:`
1374
1388
  * @returns Non-owning subject definition for the client's raw hook handle ingress
1375
1389
  */
@@ -1468,7 +1482,7 @@ declare function buildClientSubjects<AdditionalSchemas extends SchemaRecord>(cli
1468
1482
  payload: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1469
1483
  metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1470
1484
  }, _$zod_v4_core0.$strip>;
1471
- 'hook.handle': {
1485
+ 'hook.handle': _$_makaio_core0.HostLocalRequestSubjectSchema<{
1472
1486
  request: _$zod.ZodObject<{
1473
1487
  eventName: _$zod.ZodString;
1474
1488
  receivedAt: _$zod.ZodNumber;
@@ -1480,7 +1494,7 @@ declare function buildClientSubjects<AdditionalSchemas extends SchemaRecord>(cli
1480
1494
  stdout: _$zod.ZodDefault<_$zod.ZodString>;
1481
1495
  stderr: _$zod.ZodDefault<_$zod.ZodString>;
1482
1496
  }, _$zod_v4_core0.$strip>;
1483
- };
1497
+ }>;
1484
1498
  } & AdditionalSchemas>, `client:${string}`>;
1485
1499
  /**
1486
1500
  * Create (or retrieve) the per-client bus namespace for `client:<clientId>`.
@@ -1654,6 +1668,214 @@ type ClientWiringListSubjectDef = SubjectDefinition<ClientWiringListSubjectRecor
1654
1668
  */
1655
1669
  declare function createClientWiringListSubjectDef(clientId: string): ClientWiringListSubjectDef;
1656
1670
  //#endregion
1671
+ //#region subsystems/client/src/client-hook-provider-contract-registry.d.ts
1672
+ /**
1673
+ * Registry of provider contract catalog entries keyed by
1674
+ * `(clientId, contractId)` with extension ownership.
1675
+ *
1676
+ * Rejects registration collisions when a different extension attempts to
1677
+ * register a contract for the same `(clientId, contractId)` pair. Supports
1678
+ * targeted unregistration by extension and cleanup of all contracts owned by
1679
+ * a single extension (for shutdown/disable paths).
1680
+ * @example
1681
+ * ```ts
1682
+ * const registry = new ClientHookProviderContractRegistry();
1683
+ * registry.registerProviderContract('ext-anthropic', catalog);
1684
+ * const entry = registry.getProviderContract('claude-code', 'anthropic.tool-response');
1685
+ * ```
1686
+ */
1687
+ declare class ClientHookProviderContractRegistry {
1688
+ private readonly entries;
1689
+ /**
1690
+ * Register a provider contract catalog entry with extension ownership.
1691
+ *
1692
+ * The contract is keyed by `(catalog.clientId, catalog.contractId)`. If an
1693
+ * entry already exists for the same key, the call throws. An extension must
1694
+ * unregister before replacing its catalog so active contributors cannot be
1695
+ * silently invalidated.
1696
+ * @param extensionId - Extension that owns this contract registration.
1697
+ * @param catalog - Provider contract catalog entry to register.
1698
+ * @throws When a different extension already owns the same
1699
+ * `(clientId, contractId)` pair.
1700
+ */
1701
+ registerProviderContract(extensionId: string, catalog: ProviderContractCatalogEntry): void;
1702
+ /**
1703
+ * Remove a specific provider contract registration.
1704
+ *
1705
+ * Only the owning extension may remove its own contract. If the contract
1706
+ * does not exist or belongs to a different extension, the call is a no-op.
1707
+ * @param extensionId - Extension requesting removal.
1708
+ * @param clientId - Client identifier of the contract to remove.
1709
+ * @param contractId - Contract identifier to remove.
1710
+ */
1711
+ unregisterProviderContract(extensionId: string, clientId: string, contractId: string): void;
1712
+ /**
1713
+ * Remove all provider contracts owned by the given extension.
1714
+ *
1715
+ * Used during extension shutdown or disable to clean up all contracts
1716
+ * registered by a single extension in one operation.
1717
+ * @param extensionId - Extension whose contracts should be removed.
1718
+ */
1719
+ unregisterAllByExtension(extensionId: string): void;
1720
+ /**
1721
+ * Look up a provider contract catalog entry by client and contract
1722
+ * identifiers.
1723
+ * @param clientId - Client identifier (e.g. `'claude-code'`).
1724
+ * @param contractId - Stable contract identifier.
1725
+ * @returns The registered catalog entry, or `undefined` when no matching
1726
+ * contract is registered.
1727
+ */
1728
+ getProviderContract(clientId: string, contractId: string): ProviderContractCatalogEntry | undefined;
1729
+ /**
1730
+ * Return all provider contracts registered for a given client.
1731
+ * @param clientId - Client identifier to filter by.
1732
+ * @returns Array of catalog entries registered for the client.
1733
+ */
1734
+ getProviderContractsByClient(clientId: string): readonly ProviderContractCatalogEntry[];
1735
+ /**
1736
+ * Return every active provider contract.
1737
+ *
1738
+ * Used to validate portable canonical contributors, whose omitted client
1739
+ * filter makes them eligible for every active client.
1740
+ * @returns Active provider contract catalog entries.
1741
+ */
1742
+ getAllProviderContracts(): readonly ProviderContractCatalogEntry[];
1743
+ /**
1744
+ * Remove all registered provider contracts.
1745
+ */
1746
+ clear(): void;
1747
+ }
1748
+ //#endregion
1749
+ //#region subsystems/client/src/client-hook-response-registry.d.ts
1750
+ /**
1751
+ * Registered contributor with runtime metadata assigned during installation.
1752
+ *
1753
+ * Extends the original {@link ContributorDefinition} with a namespaced
1754
+ * identifier and a stable insertion ordinal used for deterministic ordering.
1755
+ */
1756
+ interface RegisteredContributor$1 {
1757
+ /**
1758
+ * Globally unique contributor identifier, namespaced by extension.
1759
+ *
1760
+ * Formed as `${extensionId}/${definition.id}`.
1761
+ */
1762
+ readonly namespacedId: string;
1763
+ /** Extension that owns this contributor. */
1764
+ readonly extensionId: string;
1765
+ /** Stable insertion ordinal assigned during atomic batch installation. */
1766
+ readonly ordinal: number;
1767
+ /** The original contributor definition. */
1768
+ readonly definition: ContributorDefinition;
1769
+ }
1770
+ /**
1771
+ * Result of an atomic contributor batch installation attempt.
1772
+ *
1773
+ * When validation succeeds, `errors` is empty and contributors are installed.
1774
+ * When validation fails, `errors` is non-empty and no mutation occurs.
1775
+ */
1776
+ interface ContributorInstallResult {
1777
+ /** Validation errors encountered during activation. Empty on success. */
1778
+ readonly errors: readonly ActivationValidationError[];
1779
+ }
1780
+ /**
1781
+ * Registry of contributor definitions for client hook responses.
1782
+ *
1783
+ * Validates contributor batches against active provider contracts during
1784
+ * activation, installs them atomically by extension, and provides immutable
1785
+ * priority-ordered snapshots filtered by event name.
1786
+ * @example
1787
+ * ```ts
1788
+ * const registry = new ClientHookResponseRegistry(contractRegistry);
1789
+ *
1790
+ * const result = registry.installContributors('ext-my-extension', [
1791
+ * {
1792
+ * lane: 'canonical',
1793
+ * id: 'append-context',
1794
+ * priority: 100,
1795
+ * timeoutMs: 5000,
1796
+ * selectors: [{ kind: 'event-name', name: 'PreToolUse' }],
1797
+ * respond: (ctx) => ({
1798
+ * canonicalEffects: [createAppendEffect('hello')],
1799
+ * }),
1800
+ * },
1801
+ * ]);
1802
+ *
1803
+ * if (result.errors.length > 0) {
1804
+ * // Handle validation errors — no mutation occurred.
1805
+ * }
1806
+ *
1807
+ * const snapshot = registry.snapshot('claude-code', 'anthropic.tool-response', 'PreToolUse');
1808
+ * // snapshot is an immutable, priority-ordered array of RegisteredContributor.
1809
+ * ```
1810
+ */
1811
+ declare class ClientHookResponseRegistry {
1812
+ private readonly contractRegistry;
1813
+ /**
1814
+ * All registered contributors, keyed by namespaced ID.
1815
+ */
1816
+ private readonly contributors;
1817
+ /**
1818
+ * Index from extension ID to the set of namespaced contributor IDs it
1819
+ * owns. Used for atomic removal.
1820
+ */
1821
+ private readonly extensionIndex;
1822
+ /**
1823
+ * Monotonically increasing ordinal counter for stable insertion order.
1824
+ */
1825
+ private nextOrdinal;
1826
+ /**
1827
+ * Create a response registry backed by a provider contract registry.
1828
+ * @param contractRegistry - Provider contract registry used during
1829
+ * activation validation.
1830
+ */
1831
+ constructor(contractRegistry: ClientHookProviderContractRegistry);
1832
+ /**
1833
+ * Validate and atomically install a batch of contributor definitions for
1834
+ * a single extension.
1835
+ *
1836
+ * The entire batch is validated before any mutation occurs. If validation
1837
+ * fails, no contributors are installed and the errors are returned. On
1838
+ * success, each contributor is assigned a stable insertion ordinal and
1839
+ * registered under the extension's ownership.
1840
+ *
1841
+ * An extension that already has contributors registered must call
1842
+ * {@link removeContributors} before re-installing to avoid ID collisions.
1843
+ * @param extensionId - Extension that owns these contributors.
1844
+ * @param contributors - The batch of contributor definitions to install.
1845
+ * @returns Installation result with any validation errors.
1846
+ */
1847
+ installContributors(extensionId: string, contributors: readonly ContributorDefinition[]): ContributorInstallResult;
1848
+ /**
1849
+ * Remove all contributors owned by the given extension.
1850
+ *
1851
+ * Only removes contributors registered under the specified extension ID.
1852
+ * Contributors from other extensions are never affected.
1853
+ * @param extensionId - Extension whose contributors should be removed.
1854
+ */
1855
+ removeContributors(extensionId: string): void;
1856
+ /**
1857
+ * Return an immutable snapshot of registered contributors matching a
1858
+ * given event name and its declared response capabilities.
1859
+ *
1860
+ * The snapshot is a frozen copy ordered by priority descending, then by
1861
+ * insertion ordinal ascending (stable insertion order within the same
1862
+ * priority). Subsequent register/remove operations do not affect
1863
+ * previously returned snapshots.
1864
+ * @param clientId - Client receiving the hook event.
1865
+ * @param contractId - Active provider contract handling the hook event.
1866
+ * @param eventName - Hook event name to filter contributors by.
1867
+ * @param eventCapabilities - The event's declared response capabilities.
1868
+ * Capability selectors match against this array. Defaults to an empty
1869
+ * array for backward compatibility.
1870
+ * @returns Frozen array of matching registered contributors.
1871
+ */
1872
+ snapshot(clientId: string, contractId: string, eventName: string, eventCapabilities?: readonly string[]): ReadonlyArray<RegisteredContributor$1>;
1873
+ /**
1874
+ * Remove all registered contributors and reset the ordinal counter.
1875
+ */
1876
+ clear(): void;
1877
+ }
1878
+ //#endregion
1657
1879
  //#region subsystems/client/src/package.d.ts
1658
1880
  /**
1659
1881
  * Composite service that initialises and destroys the
@@ -1662,6 +1884,10 @@ declare function createClientWiringListSubjectDef(clientId: string): ClientWirin
1662
1884
  * {@link ClientSessionConfigService}
1663
1885
  * under a single {@link ExtensionServiceLifecycle} handle.
1664
1886
  *
1887
+ * Also exposes the client hook response pipeline registries so other
1888
+ * subsystems (provider runtimes, contribution processors) can register
1889
+ * and unregister provider contracts and query contributor snapshots.
1890
+ *
1665
1891
  * The host coordinator calls `init()` once and `destroy()` once; this class
1666
1892
  * ensures all five services participate in the same lifecycle without any
1667
1893
  * requiring knowledge of the others.
@@ -1672,14 +1898,20 @@ declare class ClientsCoreService implements ExtensionServiceLifecycle {
1672
1898
  private readonly configPrimeService;
1673
1899
  private readonly profileService;
1674
1900
  private readonly sessionConfigService;
1901
+ /** Provider contract catalog registry for the hook response pipeline. */
1902
+ readonly providerContractRegistry: ClientHookProviderContractRegistry;
1903
+ /** Contributor definition registry for the hook response pipeline. */
1904
+ readonly hookResponseRegistry: ClientHookResponseRegistry;
1675
1905
  /**
1676
1906
  * @param runtimeService - Handles `client.*` runtime observation subjects
1677
1907
  * @param binaryManager - Handles `client.*` binary-management subjects
1678
1908
  * @param configPrimeService - Handles generic `client.config.prime` delegation
1679
1909
  * @param profileService - Handles `client.profile.*` CRUD subjects
1680
1910
  * @param sessionConfigService - Handles `client.sessionConfig.*` isolation subjects
1911
+ * @param providerContractRegistry - Provider contract catalog for activation-time validation
1912
+ * @param hookResponseRegistry - Contributor definition registry for the hook response pipeline
1681
1913
  */
1682
- constructor(runtimeService: ClientRuntimeService, binaryManager: ClientBinaryManager, configPrimeService: ClientConfigPrimeService, profileService: ClientProfileService, sessionConfigService: ClientSessionConfigService);
1914
+ constructor(runtimeService: ClientRuntimeService, binaryManager: ClientBinaryManager, configPrimeService: ClientConfigPrimeService, profileService: ClientProfileService, sessionConfigService: ClientSessionConfigService, providerContractRegistry: ClientHookProviderContractRegistry, hookResponseRegistry: ClientHookResponseRegistry);
1683
1915
  /**
1684
1916
  * Initialize all five sub-services in parallel.
1685
1917
  *
@@ -2742,12 +2974,150 @@ declare function buildHookCommand(makaioCommand: string, sentinel: string, event
2742
2974
  * Derive the ordered list of session-event wiring descriptors from a client
2743
2975
  * definition.
2744
2976
  *
2745
- * Only hook events that carry a `frameworkSubject` are included — events
2746
- * without one are client-internal and do not need framework wiring.
2977
+ * Every declared hook event is returned the `frameworkSubject` field controls
2978
+ * only whether additional normalized observation happens, not whether a managed
2979
+ * hook command is installed. Events without a `frameworkSubject` still need
2980
+ * hook wiring so they arrive through raw ingress for observer-only processing.
2747
2981
  * @param clientDefinition - The parsed static client definition whose
2748
2982
  * `runtimeCapabilities.hookEvents` array is the source of truth.
2749
2983
  * @returns Read-only array of `{ eventName, mode }` descriptors in declaration order.
2750
2984
  */
2751
2985
  declare function deriveSessionEventDescriptors(clientDefinition: ClientDefinition$1): ReadonlyArray<SessionEventDescriptor>;
2752
2986
  //#endregion
2753
- export { AbsolutePathSchema, type AtomicContentParser, type AtomicModifier, type AtomicModifyOutcome, BinaryNotFoundError, type BuildClientSessionBaseOpts, CLIENT_RUNTIME_STATUSES, ClientAccountRegistry, type ClientAccountUpsertResult, ClientBinaryJobRunner, ClientBinaryManager, type ClientBinaryManagerConfig, type ClientBinaryResolutionPolicy, type ClientBinaryStateRecord, ClientBinaryStateRecordSchema, ClientBinaryStorageNamespace, ClientBinaryStorageSubjects, type ClientBinaryVersionRecord, ClientBinaryVersionRecordSchema, ClientBinaryVersionResolver, ClientConfigPrimeService, type ClientDefinitionLookup, ClientDefinitionRegistry, type ClientHookHandleResponse, ClientHookHandleResponseSchema, type ClientNamespaceResult, type ClientProfileRecord, ClientProfileRecordSchema, ClientProfileService, ClientProfileStorageNamespace, ClientProfileStorageSubjects, type ClientRuntimeRecord, ClientRuntimeRegistry, ClientRuntimeService, type ClientRuntimeStatus, ClientRuntimeStorageNamespace, ClientRuntimeStorageSubjects, ClientSessionConfigService, ClientSubjects, type ClientWiringAggregatedResult, ClientWiringAggregatedResultSchema, type ClientWiringApplyResponse, ClientWiringApplyResponseSchema, type ClientWiringEntry, ClientWiringEntrySchema, type ClientWiringListResponse, ClientWiringListResponseSchema, type ClientWiringListSubjectDef, type ClientWiringRemoveResponse, ClientWiringRemoveResponseSchema, type ClientWiringSubjectDefBase, type ClientsCorePackageOptions, ClientsCoreService, ClientsCoreToken, DEFAULT_HOOK_HANDLE_TIMEOUT_MS, type InstallArtifact, type InstallJob, type InstallStrategy, type JobCompletedCallback, type JobCompletionCallback, type JobCompletionResult, type JobProgressCallback, type PostInstallContext, type PostInstallHandler, type RawClientHookHandleSubject, type RawClientHookPayload, RawClientHookPayloadSchema, type RawClientHookReceivedSubject, type ResolvedInstallVersion, RuntimeRecordSchema, type RuntimeUpsertResult, type SessionEventDescriptor, type StrategyDependencies, assertAbsoluteProjectDir, atomicModifyFile, buildClientCommand, buildClientSessionBase, buildHookCommand, canonicalizeClientId, clientRuntimesDual, createClientNamespace, createClientWiringListSubjectDef, createClientWiringSubjectDef, createClientsCorePackage, createRawClientHookHandleSubject, createRawClientHookReceivedSubject, createStrategy, deriveSessionEventDescriptors, emitBestEffort, isPathWithinBase, pickNonEmptyString, pickNonEmptyStringValue, registerDrizzleClientBinaryStorage, registerDrizzleProfileStorage, registerDrizzleRuntimeStorage, registerStorageHandlersWithRollback, resolveAndValidateBasePath, resolveClientBinary, verifyInstalledVersion };
2987
+ //#region subsystems/client/src/client-hook-response-contribution-processor.d.ts
2988
+ /**
2989
+ * Create a {@link ContributionProcessor} that wires
2990
+ * {@link ExtensionClientHookResponsesContribution} into the
2991
+ * {@link ClientHookResponseRegistry} during extension lifecycle events.
2992
+ *
2993
+ * The returned processor:
2994
+ * - **Filters** to extensions that declare `clientHookResponses`.
2995
+ * - **Activation:** calls `createContributors(ctx)`, validates the batch
2996
+ * against the provider contract registry, and installs atomically. On
2997
+ * validation failure, throws a descriptive error so the coordinator
2998
+ * transitions the extension to `failed`.
2999
+ * - **Deactivation (stopped):** removes the extension's contributors from
3000
+ * the registry. Errors propagate to the coordinator.
3001
+ * - **Shutdown:** call `processStopped` per extension; the coordinator
3002
+ * handles this via reverse-order teardown.
3003
+ *
3004
+ * The processor performs its own rollback before throwing: if
3005
+ * `createContributors` succeeds but `installContributors` fails, no
3006
+ * partial state leaks into the registry.
3007
+ * @param responseRegistry - Registry that stores contributor definitions.
3008
+ * @param contractRegistry - Provider contract registry for activation-time
3009
+ * validation and activation context lookups.
3010
+ * @returns A `ContributionProcessor` ready for registration with the
3011
+ * extension coordinator.
3012
+ */
3013
+ declare function createClientHookResponseContributionProcessor(responseRegistry: ClientHookResponseRegistry, contractRegistry: ClientHookProviderContractRegistry): ContributionProcessor;
3014
+ //#endregion
3015
+ //#region subsystems/client/src/client-hook-response-collector.d.ts
3016
+ /**
3017
+ * Severity level for a collection diagnostic.
3018
+ */
3019
+ type DiagnosticSeverity = 'warning' | 'error';
3020
+ /**
3021
+ * Diagnostic recorded during contribution collection.
3022
+ *
3023
+ * Captures per-contributor failure details (timeouts, rejections,
3024
+ * validation failures) without blocking the collection pipeline.
3025
+ */
3026
+ interface CollectionDiagnostic {
3027
+ /** Contributor that produced this diagnostic. */
3028
+ readonly contributorId: string;
3029
+ /** Severity level. */
3030
+ readonly severity: DiagnosticSeverity;
3031
+ /** Human-readable diagnostic message. */
3032
+ readonly message: string;
3033
+ /** Root cause error, when available. */
3034
+ readonly cause?: unknown;
3035
+ }
3036
+ /**
3037
+ * Outcome record for a single contributor within a collection run.
3038
+ */
3039
+ interface ContributorOutcome {
3040
+ /** Contributor that produced this outcome. */
3041
+ readonly contributorId: string;
3042
+ /** Runtime outcome code. */
3043
+ readonly outcome: RuntimeOutcomeCode;
3044
+ /** Duration of the callback execution in milliseconds. */
3045
+ readonly durationMs: number;
3046
+ /**
3047
+ * Effects produced by the contributor, present only on `'success'`
3048
+ * outcomes.
3049
+ */
3050
+ readonly effects?: ReadonlyArray<CanonicalEffect | ProviderContributionEnvelope>;
3051
+ }
3052
+ /**
3053
+ * Result returned when the first `closed` failure (by snapshot order) is
3054
+ * detected.
3055
+ */
3056
+ interface ClosedFailureResult {
3057
+ /** Contributor ID of the first closed-failure contributor. */
3058
+ readonly contributorId: string;
3059
+ /** Human-readable detail. */
3060
+ readonly detail: string;
3061
+ }
3062
+ /**
3063
+ * Aggregate result of a contribution collection run.
3064
+ */
3065
+ interface CollectionResult {
3066
+ /** Per-contributor outcomes in snapshot order. */
3067
+ readonly outcomes: ReadonlyArray<ContributorOutcome>;
3068
+ /** Diagnostics recorded during collection. */
3069
+ readonly diagnostics: ReadonlyArray<CollectionDiagnostic>;
3070
+ /**
3071
+ * Present when at least one `closed`-policy contributor failed; contains
3072
+ * the deterministic first closed failure (by snapshot order).
3073
+ */
3074
+ readonly closedFailure?: ClosedFailureResult;
3075
+ }
3076
+ /**
3077
+ * Minimal registered contributor shape consumed by the collector.
3078
+ *
3079
+ * This is intentionally decoupled from the registry implementation so the
3080
+ * collector can be developed and tested independently.
3081
+ */
3082
+ interface RegisteredContributor {
3083
+ /** The contributor definition as declared by the extension. */
3084
+ readonly definition: ContributorDefinition;
3085
+ /**
3086
+ * Globally unique contributor identifier, namespaced by extension.
3087
+ *
3088
+ * When present, used in outcome and diagnostic records instead of
3089
+ * the local `definition.id`. Optional for backward compatibility
3090
+ * with tests that construct minimal registered contributors.
3091
+ */
3092
+ readonly namespacedId?: string;
3093
+ }
3094
+ /**
3095
+ * Collect contributions from a snapshot of registered contributors
3096
+ * concurrently and deterministically.
3097
+ *
3098
+ * Every eligible callback is started before any result is awaited
3099
+ * (Promise.all-style concurrency). Each callback receives a per-contributor
3100
+ * abort signal derived from the minimum of the request deadline and the
3101
+ * callback's own timeout. Late results are ignored even when the callback
3102
+ * code ignores cancellation.
3103
+ *
3104
+ * Failure handling follows the contributor's declared failure policy:
3105
+ * - **open** — the contributor's result is omitted but siblings are
3106
+ * retained.
3107
+ * - **closed** — all partial effects are discarded and the deterministic
3108
+ * first closed failure (by snapshot order) is returned.
3109
+ * @param snapshot - Ordered array of registered contributors (priority-
3110
+ * then-ordinal). The collector does not re-sort.
3111
+ * @param clientId - Client receiving the hook event.
3112
+ * @param requestDeadline - Absolute epoch-ms deadline for the overall
3113
+ * request, or `undefined` for no request-level deadline.
3114
+ * @param requestSignal - The originating request's abort signal, or
3115
+ * `undefined` when not available. Composed with per-contributor signals.
3116
+ * @param eventName - The hook event name that triggered collection.
3117
+ * @param eventPayload - The hook event payload, opaque at this layer.
3118
+ * @param providerContract - Exact active provider contract for this request.
3119
+ * @returns A promise resolving to the {@link CollectionResult}.
3120
+ */
3121
+ declare function collectContributions(snapshot: ReadonlyArray<RegisteredContributor>, clientId: string, requestDeadline: number | undefined, requestSignal: AbortSignal | undefined, eventName: string, eventPayload: unknown, providerContract?: ProviderContractCatalogEntry): Promise<CollectionResult>;
3122
+ //#endregion
3123
+ export { AbsolutePathSchema, type AtomicContentParser, type AtomicModifier, type AtomicModifyOutcome, BinaryNotFoundError, type BuildClientSessionBaseOpts, CLIENT_RUNTIME_STATUSES, ClientAccountRegistry, type ClientAccountUpsertResult, ClientBinaryJobRunner, ClientBinaryManager, type ClientBinaryManagerConfig, type ClientBinaryResolutionPolicy, type ClientBinaryStateRecord, ClientBinaryStateRecordSchema, ClientBinaryStorageNamespace, ClientBinaryStorageSubjects, type ClientBinaryVersionRecord, ClientBinaryVersionRecordSchema, ClientBinaryVersionResolver, ClientConfigPrimeService, type ClientDefinitionLookup, ClientDefinitionRegistry, type ClientHookHandleResponse, ClientHookHandleResponseSchema, ClientHookProviderContractRegistry, ClientHookResponseRegistry, type ClientNamespaceResult, type ClientProfileRecord, ClientProfileRecordSchema, ClientProfileService, ClientProfileStorageNamespace, ClientProfileStorageSubjects, type ClientRuntimeRecord, ClientRuntimeRegistry, ClientRuntimeService, type ClientRuntimeStatus, ClientRuntimeStorageNamespace, ClientRuntimeStorageSubjects, ClientSessionConfigService, ClientSubjects, type ClientWiringAggregatedResult, ClientWiringAggregatedResultSchema, type ClientWiringApplyResponse, ClientWiringApplyResponseSchema, type ClientWiringEntry, ClientWiringEntrySchema, type ClientWiringListResponse, ClientWiringListResponseSchema, type ClientWiringListSubjectDef, type ClientWiringRemoveResponse, ClientWiringRemoveResponseSchema, type ClientWiringSubjectDefBase, type ClientsCorePackageOptions, ClientsCoreService, ClientsCoreToken, type ClosedFailureResult, type CollectionDiagnostic, type CollectionResult, type ContributorInstallResult, type ContributorOutcome, DEFAULT_HOOK_HANDLE_TIMEOUT_MS, type DiagnosticSeverity, type InstallArtifact, type InstallJob, type InstallStrategy, type JobCompletedCallback, type JobCompletionCallback, type JobCompletionResult, type JobProgressCallback, NOOP_HOOK_HANDLE_RESPONSE, type PostInstallContext, type PostInstallHandler, type RawClientHookHandleSubject, type RawClientHookPayload, RawClientHookPayloadSchema, type RawClientHookReceivedSubject, type RegisteredContributor, type RegisteredContributor$1 as RegistryContributor, type ResolvedInstallVersion, RuntimeRecordSchema, type RuntimeUpsertResult, type SessionEventDescriptor, type StrategyDependencies, assertAbsoluteProjectDir, atomicModifyFile, buildClientCommand, buildClientSessionBase, buildHookCommand, canonicalizeClientId, clientRuntimesDual, collectContributions, createClientHookResponseContributionProcessor, createClientNamespace, createClientWiringListSubjectDef, createClientWiringSubjectDef, createClientsCorePackage, createRawClientHookHandleSubject, createRawClientHookReceivedSubject, createStrategy, deriveSessionEventDescriptors, emitBestEffort, isPathWithinBase, pickNonEmptyString, pickNonEmptyStringValue, registerDrizzleClientBinaryStorage, registerDrizzleProfileStorage, registerDrizzleRuntimeStorage, registerStorageHandlersWithRollback, resolveAndValidateBasePath, resolveClientBinary, verifyInstalledVersion };