@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
@@ -0,0 +1,825 @@
1
+ import { z } from "zod";
2
+
3
+ //#region core/contracts/src/version/primitives.d.ts
4
+ /**
5
+ * npm semver range syntax (e.g. `">=1.0.0 <2.0.0"`, `"^1.5.0"`).
6
+ *
7
+ * Used by all range-bearing compatibility fields in descriptors and manifests.
8
+ */
9
+ type VersionRange = string;
10
+ /**
11
+ * Exact semver version (e.g. `"1.0.72"`).
12
+ *
13
+ * Used for concrete version pins such as preferred binary versions.
14
+ */
15
+ type VersionLiteral = string;
16
+ /** Validates that the string is a valid npm semver range. */
17
+ declare const VersionRangeSchema: z.ZodString;
18
+ /**
19
+ * Check whether a concrete version satisfies a semver range.
20
+ *
21
+ * Centralizes the `{ includePrerelease: true }` policy so every compatibility
22
+ * check in the framework uses the same semantics.
23
+ * @param version - Concrete semver version string.
24
+ * @param range - npm semver range to test against.
25
+ * @returns `true` when the version falls within the range.
26
+ */
27
+ declare function versionSatisfies(version: string, range: VersionRange): boolean;
28
+ /**
29
+ * Check whether a semver range is a universal wildcard (`*`, `>=0.0.0`, etc.).
30
+ *
31
+ * Uses the `semver` library's normalization so all universal range syntaxes are
32
+ * recognized, not just the literal `'*'` string.
33
+ * @param range - Semver range to test.
34
+ * @returns `true` when the range matches any version.
35
+ */
36
+ declare function isUniversalRange(range: string): boolean;
37
+ /** Validates that the string is an exact semver version. */
38
+ declare const VersionLiteralSchema: z.ZodString;
39
+ //#endregion
40
+ //#region core/contracts/src/client/definition.d.ts
41
+ /**
42
+ * Schema for a capability annotation attached to a native client tool.
43
+ *
44
+ * Captures a capability tag (e.g. `'shell.execute'`) and an optional
45
+ * human-readable description so the Harness UI can explain what a tool does
46
+ * without coupling to the platform capability taxonomy.
47
+ */
48
+ declare const ClientToolCapabilityAnnotationSchema: z.ZodObject<{
49
+ tag: z.ZodString;
50
+ description: z.ZodOptional<z.ZodString>;
51
+ }, z.core.$strip>;
52
+ type ClientToolCapabilityAnnotation = z.infer<typeof ClientToolCapabilityAnnotationSchema>;
53
+ /**
54
+ * Schema for a single native tool provided by a client binary.
55
+ *
56
+ * Native tools are those the client binary exposes directly (e.g. `bash`,
57
+ * `file_edit`). They are declared by the client package and seeded into
58
+ * the harness at startup.
59
+ */
60
+ declare const ClientToolDefinitionSchema: z.ZodObject<{
61
+ name: z.ZodString;
62
+ friendlyName: z.ZodString;
63
+ description: z.ZodOptional<z.ZodString>;
64
+ category: z.ZodOptional<z.ZodString>;
65
+ capabilities: z.ZodDefault<z.ZodArray<z.ZodObject<{
66
+ tag: z.ZodString;
67
+ description: z.ZodOptional<z.ZodString>;
68
+ }, z.core.$strip>>>;
69
+ }, z.core.$strip>;
70
+ type ClientToolDefinition = z.infer<typeof ClientToolDefinitionSchema>;
71
+ /**
72
+ * Schema for a log source definition contributed by a client package.
73
+ *
74
+ * Log sources describe where the client binary writes conversation logs so the
75
+ * Makaio log-import service can discover and ingest them.
76
+ */
77
+ declare const LogSourceDefinitionSchema: z.ZodObject<{
78
+ id: z.ZodString;
79
+ name: z.ZodString;
80
+ description: z.ZodOptional<z.ZodString>;
81
+ glob: z.ZodOptional<z.ZodString>;
82
+ }, z.core.$strip>;
83
+ type LogSourceDefinition = z.infer<typeof LogSourceDefinitionSchema>;
84
+ /**
85
+ * Schema for a hook event declaration on a client definition.
86
+ *
87
+ * Declares which native hook events the client binary fires. Used by the
88
+ * wiring layer to know what hooks to install, and by the UI to display
89
+ * available events.
90
+ */
91
+ declare const ClientHookEventDeclarationSchema: z.ZodObject<{
92
+ name: z.ZodString;
93
+ frameworkSubject: z.ZodOptional<z.ZodString>;
94
+ responseCapabilities: z.ZodDefault<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
95
+ }, z.core.$strict>;
96
+ type ClientHookEventDeclaration = z.infer<typeof ClientHookEventDeclarationSchema>;
97
+ /**
98
+ * Derives the transport mode solely from whether the event has response
99
+ * capabilities.
100
+ *
101
+ * Events with at least one response capability use `'request'` mode
102
+ * (blocking request/response), while events with an empty capabilities
103
+ * array use `'event'` mode (fire-and-forget).
104
+ * @param event - The parsed hook event declaration.
105
+ * @returns `'request'` when the event has response capabilities, `'event'` otherwise.
106
+ */
107
+ declare function deriveHookEventTransportMode(event: ClientHookEventDeclaration): 'event' | 'request';
108
+ /**
109
+ * Schema for the config isolation descriptor on a client definition.
110
+ *
111
+ * Describes the environment variable and default path the client binary uses
112
+ * for config isolation. Most clients accept a directory path. Some clients only
113
+ * expose a file-level override, so `pathKind` records which value shape the env
114
+ * var expects.
115
+ */
116
+ declare const ConfigIsolationSchema: z.ZodObject<{
117
+ envVar: z.ZodString;
118
+ defaultPath: z.ZodString;
119
+ pathKind: z.ZodDefault<z.ZodEnum<{
120
+ file: "file";
121
+ directory: "directory";
122
+ }>>;
123
+ }, z.core.$strip>;
124
+ type ConfigIsolation = z.infer<typeof ConfigIsolationSchema>;
125
+ /**
126
+ * Install descriptor for the `npm` strategy.
127
+ *
128
+ * The manager runs a sandboxed `npm install --prefix <targetDir>` for the
129
+ * pinned package version so managed installs do not mutate global npm state.
130
+ * An exact version pin is required; floating ranges are not accepted so the
131
+ * framework can reproduce the same binary across machines and time.
132
+ */
133
+ declare const NpmInstallDescriptorSchema: z.ZodObject<{
134
+ type: z.ZodLiteral<"npm">;
135
+ package: z.ZodString;
136
+ version: z.ZodString;
137
+ }, z.core.$strip>;
138
+ type NpmInstallDescriptor = z.infer<typeof NpmInstallDescriptorSchema>;
139
+ /**
140
+ * Install descriptor for the `signed-binary-bucket` strategy.
141
+ *
142
+ * The manager fetches a GPG-signed manifest from a versioned bucket path,
143
+ * verifies the manifest signature against the declared public key, selects the
144
+ * per-platform binary, downloads it, and verifies its checksum before
145
+ * activating the install.
146
+ *
147
+ * All bucket paths are Go-style templates: `{version}` is replaced with the
148
+ * resolved version string and `{platform}` / `{binary}` are replaced with the
149
+ * per-platform values from the `platforms` map.
150
+ */
151
+ declare const SignedBinaryBucketInstallDescriptorSchema: z.ZodObject<{
152
+ type: z.ZodLiteral<"signed-binary-bucket">;
153
+ version: z.ZodString;
154
+ config: z.ZodObject<{
155
+ baseUrl: z.ZodString;
156
+ manifestPathTemplate: z.ZodString;
157
+ manifestSignaturePathTemplate: z.ZodString;
158
+ publicKeyUrl: z.ZodString;
159
+ publicKeyFingerprint: z.ZodString;
160
+ binaryPathTemplate: z.ZodString;
161
+ platforms: z.ZodRecord<z.ZodString, z.ZodString>;
162
+ }, z.core.$strip>;
163
+ }, z.core.$strip>;
164
+ type SignedBinaryBucketInstallDescriptor = z.infer<typeof SignedBinaryBucketInstallDescriptorSchema>;
165
+ /**
166
+ * Discriminated union of all supported managed install descriptors.
167
+ *
168
+ * Two strategies are supported:
169
+ * - `npm` — npm registry installation with an exact version pin.
170
+ * - `signed-binary-bucket` — signed static bucket download with an exact version pin.
171
+ *
172
+ * The descriptor is purely declarative; no runtime logic lives here.
173
+ */
174
+ declare const ManagedInstallDescriptorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
175
+ type: z.ZodLiteral<"npm">;
176
+ package: z.ZodString;
177
+ version: z.ZodString;
178
+ }, z.core.$strip>, z.ZodObject<{
179
+ type: z.ZodLiteral<"signed-binary-bucket">;
180
+ version: z.ZodString;
181
+ config: z.ZodObject<{
182
+ baseUrl: z.ZodString;
183
+ manifestPathTemplate: z.ZodString;
184
+ manifestSignaturePathTemplate: z.ZodString;
185
+ publicKeyUrl: z.ZodString;
186
+ publicKeyFingerprint: z.ZodString;
187
+ binaryPathTemplate: z.ZodString;
188
+ platforms: z.ZodRecord<z.ZodString, z.ZodString>;
189
+ }, z.core.$strip>;
190
+ }, z.core.$strip>], "type">;
191
+ type ManagedInstallDescriptor = z.infer<typeof ManagedInstallDescriptorSchema>;
192
+ /**
193
+ * Platform-aware command descriptor for querying the installed binary version.
194
+ *
195
+ * The `executable` field may be a single relative path string (used on all
196
+ * platforms) or a platform-keyed object that overrides the `default` executable
197
+ * on specific operating systems.
198
+ *
199
+ * All executable values are resolved relative to the managed install directory
200
+ * — absolute paths and parent-directory traversals (`..`) are rejected by the
201
+ * `ClientDefinitionSchema` refinement.
202
+ */
203
+ declare const VersionCommandSchema: z.ZodObject<{
204
+ executable: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
205
+ default: z.ZodString;
206
+ darwin: z.ZodOptional<z.ZodString>;
207
+ linux: z.ZodOptional<z.ZodString>;
208
+ win32: z.ZodOptional<z.ZodString>;
209
+ }, z.core.$strict>]>;
210
+ args: z.ZodDefault<z.ZodArray<z.ZodString>>;
211
+ }, z.core.$strict>;
212
+ type VersionCommand = z.infer<typeof VersionCommandSchema>;
213
+ /**
214
+ * Optional post-install action descriptor.
215
+ *
216
+ * Carries an open-ended `kind` string so the runtime can dispatch to a
217
+ * registered post-install handler without the contracts layer enumerating
218
+ * every possible action.
219
+ */
220
+ declare const PostInstallDescriptorSchema: z.ZodObject<{
221
+ kind: z.ZodString;
222
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
223
+ }, z.core.$strip>;
224
+ type PostInstallDescriptor = z.infer<typeof PostInstallDescriptorSchema>;
225
+ /**
226
+ * Declarative runtime capability flags for a client package.
227
+ *
228
+ * These flags are static declarations contributed by the client package.
229
+ * They inform Makaio which observation and launch mechanisms the client
230
+ * supports so the framework can activate the appropriate producers and
231
+ * adapt its behaviour without runtime probing.
232
+ *
233
+ * All flags default to `false` so packages only need to opt in to what they
234
+ * actually support.
235
+ */
236
+ declare const ClientRuntimeCapabilitiesSchema: z.ZodObject<{
237
+ supportsHooks: z.ZodDefault<z.ZodBoolean>;
238
+ supportsStatusline: z.ZodDefault<z.ZodBoolean>;
239
+ supportsSupervisorLaunch: z.ZodDefault<z.ZodBoolean>;
240
+ supportsManagedBinary: z.ZodDefault<z.ZodBoolean>;
241
+ hookEvents: z.ZodDefault<z.ZodArray<z.ZodObject<{
242
+ name: z.ZodString;
243
+ frameworkSubject: z.ZodOptional<z.ZodString>;
244
+ responseCapabilities: z.ZodDefault<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
245
+ }, z.core.$strict>>>;
246
+ }, z.core.$strip>;
247
+ type ClientRuntimeCapabilities = z.infer<typeof ClientRuntimeCapabilitiesSchema>;
248
+ /**
249
+ * Binary compatibility descriptor for a client definition.
250
+ *
251
+ * Groups all binary-related compatibility information: the executable name
252
+ * used for PATH detection and the version range the framework supports.
253
+ */
254
+ interface ClientBinaryCompatibility {
255
+ /** Binary name used for CLI detection (e.g. `'claude'` for the `claude` binary on `PATH`). */
256
+ readonly name: string;
257
+ /**
258
+ * npm semver range of supported binary versions
259
+ * (e.g. `'>=1.0.0'`, `'^2.0.0'`).
260
+ */
261
+ readonly supportedVersions: VersionRange;
262
+ }
263
+ /** Zod schema for {@link ClientBinaryCompatibility}. */
264
+ declare const ClientBinaryCompatibilitySchema: z.ZodObject<{
265
+ name: z.ZodString;
266
+ supportedVersions: z.ZodString;
267
+ }, z.core.$strict>;
268
+ /**
269
+ * Static definition for a Makaio client package.
270
+ *
271
+ * Each client package (e.g. `@makaio/client-claude-code`) exports exactly one
272
+ * `ClientDefinition` object. The bootstrap service discovers and seeds these
273
+ * definitions into the `clients` storage table on startup.
274
+ *
275
+ * Key fields:
276
+ * - `runtimeCapabilities` — capability flags (hooks, managed binary, etc.)
277
+ * - `managedInstall` — install descriptor when Makaio manages the binary.
278
+ * - `configIsolation` — env var and default path for config isolation.
279
+ * Used by both managed and global binaries; see {@link ConfigIsolationSchema}.
280
+ */
281
+ declare const ClientDefinitionSchema: z.ZodObject<{
282
+ id: z.ZodString;
283
+ name: z.ZodString;
284
+ version: z.ZodString;
285
+ description: z.ZodOptional<z.ZodString>;
286
+ binary: z.ZodOptional<z.ZodObject<{
287
+ name: z.ZodString;
288
+ supportedVersions: z.ZodString;
289
+ }, z.core.$strict>>;
290
+ nativeTools: z.ZodDefault<z.ZodArray<z.ZodObject<{
291
+ name: z.ZodString;
292
+ friendlyName: z.ZodString;
293
+ description: z.ZodOptional<z.ZodString>;
294
+ category: z.ZodOptional<z.ZodString>;
295
+ capabilities: z.ZodDefault<z.ZodArray<z.ZodObject<{
296
+ tag: z.ZodString;
297
+ description: z.ZodOptional<z.ZodString>;
298
+ }, z.core.$strip>>>;
299
+ }, z.core.$strip>>>;
300
+ defaultApprovalPolicy: z.ZodEnum<{
301
+ reject: "reject";
302
+ "always-ask": "always-ask";
303
+ "full-access": "full-access";
304
+ }>;
305
+ logSources: z.ZodOptional<z.ZodArray<z.ZodObject<{
306
+ id: z.ZodString;
307
+ name: z.ZodString;
308
+ description: z.ZodOptional<z.ZodString>;
309
+ glob: z.ZodOptional<z.ZodString>;
310
+ }, z.core.$strip>>>;
311
+ authMethods: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
312
+ id: z.ZodString;
313
+ mode: z.ZodLiteral<"explicit">;
314
+ label: z.ZodString;
315
+ description: z.ZodOptional<z.ZodString>;
316
+ fields: z.ZodArray<z.ZodObject<{
317
+ id: z.ZodString;
318
+ label: z.ZodString;
319
+ description: z.ZodOptional<z.ZodString>;
320
+ required: z.ZodBoolean;
321
+ secret: z.ZodBoolean;
322
+ sourceHints: z.ZodArray<z.ZodObject<{
323
+ kind: z.ZodLiteral<"environment">;
324
+ variable: z.ZodString;
325
+ }, z.core.$strict>>;
326
+ }, z.core.$strict>>;
327
+ }, z.core.$strict>, z.ZodObject<{
328
+ id: z.ZodString;
329
+ mode: z.ZodLiteral<"inferred">;
330
+ label: z.ZodString;
331
+ description: z.ZodOptional<z.ZodString>;
332
+ }, z.core.$strict>, z.ZodObject<{
333
+ id: z.ZodString;
334
+ mode: z.ZodLiteral<"none">;
335
+ label: z.ZodString;
336
+ description: z.ZodOptional<z.ZodString>;
337
+ }, z.core.$strict>], "mode">>;
338
+ defaultAuth: z.ZodOptional<z.ZodObject<{
339
+ providerDefinitionId: z.ZodString;
340
+ methodId: z.ZodString;
341
+ }, z.core.$strict>>;
342
+ runtimeCapabilities: z.ZodPipe<z.ZodOptional<z.ZodObject<{
343
+ supportsHooks: z.ZodDefault<z.ZodBoolean>;
344
+ supportsStatusline: z.ZodDefault<z.ZodBoolean>;
345
+ supportsSupervisorLaunch: z.ZodDefault<z.ZodBoolean>;
346
+ supportsManagedBinary: z.ZodDefault<z.ZodBoolean>;
347
+ hookEvents: z.ZodDefault<z.ZodArray<z.ZodObject<{
348
+ name: z.ZodString;
349
+ frameworkSubject: z.ZodOptional<z.ZodString>;
350
+ responseCapabilities: z.ZodDefault<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
351
+ }, z.core.$strict>>>;
352
+ }, z.core.$strip>>, z.ZodTransform<{
353
+ supportsHooks: boolean;
354
+ supportsStatusline: boolean;
355
+ supportsSupervisorLaunch: boolean;
356
+ supportsManagedBinary: boolean;
357
+ hookEvents: {
358
+ name: string;
359
+ responseCapabilities: readonly string[];
360
+ frameworkSubject?: string | undefined;
361
+ }[];
362
+ }, {
363
+ supportsHooks: boolean;
364
+ supportsStatusline: boolean;
365
+ supportsSupervisorLaunch: boolean;
366
+ supportsManagedBinary: boolean;
367
+ hookEvents: {
368
+ name: string;
369
+ responseCapabilities: readonly string[];
370
+ frameworkSubject?: string | undefined;
371
+ }[];
372
+ } | undefined>>;
373
+ managedInstall: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
374
+ type: z.ZodLiteral<"npm">;
375
+ package: z.ZodString;
376
+ version: z.ZodString;
377
+ }, z.core.$strip>, z.ZodObject<{
378
+ type: z.ZodLiteral<"signed-binary-bucket">;
379
+ version: z.ZodString;
380
+ config: z.ZodObject<{
381
+ baseUrl: z.ZodString;
382
+ manifestPathTemplate: z.ZodString;
383
+ manifestSignaturePathTemplate: z.ZodString;
384
+ publicKeyUrl: z.ZodString;
385
+ publicKeyFingerprint: z.ZodString;
386
+ binaryPathTemplate: z.ZodString;
387
+ platforms: z.ZodRecord<z.ZodString, z.ZodString>;
388
+ }, z.core.$strip>;
389
+ }, z.core.$strip>], "type">>;
390
+ versionCommand: z.ZodOptional<z.ZodObject<{
391
+ executable: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
392
+ default: z.ZodString;
393
+ darwin: z.ZodOptional<z.ZodString>;
394
+ linux: z.ZodOptional<z.ZodString>;
395
+ win32: z.ZodOptional<z.ZodString>;
396
+ }, z.core.$strict>]>;
397
+ args: z.ZodDefault<z.ZodArray<z.ZodString>>;
398
+ }, z.core.$strict>>;
399
+ postInstall: z.ZodOptional<z.ZodObject<{
400
+ kind: z.ZodString;
401
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
402
+ }, z.core.$strip>>;
403
+ configIsolation: z.ZodOptional<z.ZodObject<{
404
+ envVar: z.ZodString;
405
+ defaultPath: z.ZodString;
406
+ pathKind: z.ZodDefault<z.ZodEnum<{
407
+ file: "file";
408
+ directory: "directory";
409
+ }>>;
410
+ }, z.core.$strip>>;
411
+ }, z.core.$strict>;
412
+ type ClientDefinitionInput = z.input<typeof ClientDefinitionSchema>;
413
+ type ClientDefinition = z.infer<typeof ClientDefinitionSchema>;
414
+ //#endregion
415
+ //#region core/contracts/src/client/hook-responses.d.ts
416
+ /**
417
+ * Client hook response contribution contracts.
418
+ *
419
+ * Defines the two typed contribution lanes that extensions use to respond to
420
+ * client hook events:
421
+ *
422
+ * 1. **Canonical effects** — portable, provider-agnostic effects like
423
+ * `context.append` that any extension can contribute without knowing the
424
+ * active provider.
425
+ *
426
+ * 2. **Provider contribution envelopes** — opaque containers keyed by
427
+ * `clientId` and `contractId` that only provider-owned typed builders can
428
+ * fill with provider-specific effects.
429
+ *
430
+ * Extensions declare contributors via
431
+ * {@link MakaioExtension.clientHookResponses}, which supplies a
432
+ * {@link ContributorActivationContext} and returns
433
+ * {@link ContributorDefinition} instances validated at activation time.
434
+ * @packageDocumentation
435
+ */
436
+ /**
437
+ * A canonical `context.append` effect — a simple string-append that works
438
+ * across all providers.
439
+ *
440
+ * This is the minimum portable contribution any extension can make. The
441
+ * runtime appends the value to the hook event's context payload without
442
+ * provider-specific serialization.
443
+ */
444
+ interface CanonicalAppendEffect {
445
+ /** Discriminant identifying this as a canonical append effect. */
446
+ readonly kind: 'context.append';
447
+ /** The string value to append to the hook event context. */
448
+ readonly value: string;
449
+ }
450
+ /**
451
+ * Union of all canonical effects.
452
+ *
453
+ * Currently contains only `context.append`. New canonical effects are added
454
+ * to this union as the framework evolves.
455
+ */
456
+ type CanonicalEffect = CanonicalAppendEffect;
457
+ /**
458
+ * Create a canonical `context.append` effect.
459
+ * @param value - The string value to append.
460
+ * @returns A frozen {@link CanonicalAppendEffect}.
461
+ */
462
+ declare function createAppendEffect(value: string): CanonicalAppendEffect;
463
+ /**
464
+ * Opaque provider contribution envelope keyed by client and contract identity.
465
+ *
466
+ * Contracts defines the shape; providers fill it via typed builders (not
467
+ * defined in this file). The `effects` record is intentionally typed as
468
+ * `Record<string, unknown>` — concrete effect shapes are constructible only
469
+ * through provider-owned builders that narrow the generic at build time.
470
+ * @typeParam TEffects - Concrete effects record type, narrowed by
471
+ * provider-owned builders. Defaults to `Record<string, unknown>` for
472
+ * contract-level usage.
473
+ */
474
+ interface ProviderContributionEnvelope<TEffects extends Record<string, unknown> = Record<string, unknown>> {
475
+ /** Client identifier this contribution targets (e.g. `'claude-code'`). */
476
+ readonly clientId: string;
477
+ /**
478
+ * Versioned contract identifier from the provider contract catalog
479
+ * (e.g. `'anthropic.tool-response@1'`).
480
+ */
481
+ readonly contractId: string;
482
+ /** Provider-specific effects, opaque at the contracts layer. */
483
+ readonly effects: TEffects;
484
+ }
485
+ /**
486
+ * Blockability metadata for a single interaction within a provider contract.
487
+ *
488
+ * Used at activation time to validate whether a contributor may declare
489
+ * `failurePolicy: 'closed'` for a given interaction.
490
+ */
491
+ interface InteractionBlockability {
492
+ /** Interaction name (matches hook event name or capability). */
493
+ readonly interaction: string;
494
+ /**
495
+ * Whether this interaction can block or deny execution.
496
+ *
497
+ * When `false`, contributors must not declare `failurePolicy: 'closed'`
498
+ * for this interaction — doing so is an activation-time validation error.
499
+ */
500
+ readonly blockable: boolean;
501
+ }
502
+ /**
503
+ * Generic interface for provider contract catalog entries.
504
+ *
505
+ * Used by clients-core to register provider contracts. Concrete effect
506
+ * schemas live in provider packages, not here.
507
+ * @typeParam TValidationContext - Context type passed to the validation
508
+ * hook. Defaults to `Record<string, unknown>` for contract-level usage.
509
+ */
510
+ interface ProviderContractCatalogEntry<TValidationContext extends Record<string, unknown> = Record<string, unknown>> {
511
+ /** Client identifier this contract targets (e.g. `'claude-code'`). */
512
+ readonly clientId: string;
513
+ /** Stable contract identifier (e.g. `'anthropic.tool-response'`). */
514
+ readonly contractId: string;
515
+ /** Semantic version of the contract (e.g. `'1.0.0'`). */
516
+ readonly version: string;
517
+ /** Interactions this contract supports. */
518
+ readonly supportedInteractions: readonly string[];
519
+ /** Blockability metadata for each supported interaction. */
520
+ readonly blockability: readonly InteractionBlockability[];
521
+ /**
522
+ * Runtime validation hook called to validate contributor callback output
523
+ * against this contract's schema.
524
+ *
525
+ * Returns `true` when the output is valid, or a string describing the
526
+ * validation error. Every provider contract must supply a validator so
527
+ * native output is never accepted unchecked at runtime.
528
+ * @param output - The callback output to validate.
529
+ * @param ctx - Provider-specific validation context.
530
+ * @returns `true` on success, or an error description string.
531
+ */
532
+ readonly validate: (output: unknown, ctx: TValidationContext) => true | string;
533
+ }
534
+ /**
535
+ * Selector that matches hook events by event name.
536
+ */
537
+ interface EventNameSelector {
538
+ /** Discriminant identifying this as an event-name selector. */
539
+ readonly kind: 'event-name';
540
+ /** Hook event name to match (e.g. `'PreToolUse'`). */
541
+ readonly name: string;
542
+ }
543
+ /**
544
+ * Selector that matches hook events by response capability.
545
+ */
546
+ interface CapabilitySelector {
547
+ /** Discriminant identifying this as a capability selector. */
548
+ readonly kind: 'capability';
549
+ /** Response capability to match (e.g. `'context.append'`). */
550
+ readonly capability: string;
551
+ }
552
+ /**
553
+ * Union of interaction selectors that determine which hook events a
554
+ * contributor responds to.
555
+ */
556
+ type InteractionSelector = EventNameSelector | CapabilitySelector;
557
+ /**
558
+ * Context supplied to a contributor's callback when a matching hook event
559
+ * fires.
560
+ *
561
+ * Provides deadline-aware execution metadata and an abort signal for
562
+ * cooperative cancellation.
563
+ */
564
+ interface ContributorCallbackContext {
565
+ /** Client receiving the hook event. */
566
+ readonly clientId: string;
567
+ /**
568
+ * Absolute deadline timestamp (epoch milliseconds) by which the callback
569
+ * must complete.
570
+ */
571
+ readonly deadline: number;
572
+ /**
573
+ * Remaining time budget in milliseconds, computed from the deadline at
574
+ * context creation time.
575
+ *
576
+ * Consumers should treat this as an approximate upper bound — actual
577
+ * remaining time decreases as the callback executes.
578
+ */
579
+ readonly remainingBudgetMs: number;
580
+ /**
581
+ * Abort signal that fires when the deadline is reached or the hook
582
+ * invocation is cancelled by the runtime.
583
+ */
584
+ readonly signal: AbortSignal;
585
+ /** The hook event name that triggered this callback. */
586
+ readonly eventName: string;
587
+ /** The hook event payload, opaque at the contracts layer. */
588
+ readonly eventPayload: unknown;
589
+ }
590
+ /**
591
+ * Failure policy determining how the runtime handles contributor failures.
592
+ *
593
+ * - `'open'` — on failure (timeout, rejection, error), omit this
594
+ * contributor's result and record the failure, but do not block the
595
+ * overall hook event response. This is the default.
596
+ * - `'closed'` — on failure, discard all contributor results for this
597
+ * hook event and render a blocking response. Only valid for interactions
598
+ * whose provider contract declares the interaction as blockable.
599
+ */
600
+ type FailurePolicy = 'open' | 'closed';
601
+ /** Default failure policy applied when none is specified. */
602
+ declare const DEFAULT_FAILURE_POLICY: FailurePolicy;
603
+ /**
604
+ * Contributor definition declared by an extension via
605
+ * {@link MakaioExtension.clientHookResponses}.
606
+ *
607
+ * Each contributor represents a single extension callback that responds to
608
+ * matching hook events with canonical or provider-specific effects.
609
+ */
610
+ interface ContributorDefinitionBase {
611
+ /**
612
+ * Unique contributor identifier, namespaced by extension.
613
+ *
614
+ * Must be a non-empty string. The runtime prefixes this with the extension
615
+ * name during registration to ensure global uniqueness.
616
+ */
617
+ readonly id: string;
618
+ /**
619
+ * Priority determining execution order. Higher values execute earlier in
620
+ * the reduction pipeline.
621
+ */
622
+ readonly priority: number;
623
+ /**
624
+ * Callback timeout in milliseconds. Must be a positive number.
625
+ *
626
+ * When the callback exceeds this timeout, the failure policy determines
627
+ * the outcome.
628
+ */
629
+ readonly timeoutMs: number;
630
+ /**
631
+ * Failure policy for this contributor.
632
+ *
633
+ * Defaults to `'open'` when omitted. `'closed'` is only valid for
634
+ * interactions whose provider contract declares the interaction as
635
+ * blockable; this is validated at activation time.
636
+ * @defaultValue `'open'`
637
+ */
638
+ readonly failurePolicy?: FailurePolicy;
639
+ /**
640
+ * Interaction selectors determining which hook events this contributor
641
+ * responds to.
642
+ *
643
+ * At least one selector must be provided. A contributor is invoked when
644
+ * any selector matches the incoming hook event.
645
+ */
646
+ readonly selectors: readonly [InteractionSelector, ...InteractionSelector[]];
647
+ /**
648
+ * Contributor callback invoked when a matching hook event fires.
649
+ *
650
+ * Returns effects for this contributor's declared lane.
651
+ * Returning `undefined` or an empty result is a valid no-op.
652
+ * @param ctx - Deadline-aware callback context.
653
+ * @returns Contribution result, `undefined` for a no-op, or a promise
654
+ * resolving to either.
655
+ */
656
+ readonly respond: (ctx: ContributorCallbackContext) => ContributorResponse | undefined | Promise<ContributorResponse | undefined>;
657
+ }
658
+ /**
659
+ * Portable contributor lane.
660
+ *
661
+ * Canonical contributors produce provider-agnostic effects. When `clientIds`
662
+ * is omitted, they are eligible for every active client; otherwise they are
663
+ * eligible only for the listed clients.
664
+ */
665
+ interface CanonicalContributorDefinition extends ContributorDefinitionBase {
666
+ /** Discriminant selecting the portable canonical lane. */
667
+ readonly lane: 'canonical';
668
+ /** Optional client allow-list for this portable contributor. */
669
+ readonly clientIds?: readonly string[];
670
+ }
671
+ /**
672
+ * Provider-specific contributor lane.
673
+ *
674
+ * Provider contributors are eligible only for the exact client and contract
675
+ * pair declared here.
676
+ */
677
+ interface ProviderContributorDefinition extends ContributorDefinitionBase {
678
+ /** Discriminant selecting the provider-specific lane. */
679
+ readonly lane: 'provider';
680
+ /** Exact client this provider contribution targets. */
681
+ readonly clientId: string;
682
+ /** Exact active provider contract this contribution targets. */
683
+ readonly contractId: string;
684
+ }
685
+ /**
686
+ * Contributor definition declared by an extension.
687
+ *
688
+ * The lane discriminant makes client targeting explicit: portable canonical
689
+ * contributors may target multiple clients, while provider contributors are
690
+ * bound to one exact provider contract.
691
+ */
692
+ type ContributorDefinition = CanonicalContributorDefinition | ProviderContributorDefinition;
693
+ /**
694
+ * Response returned by a contributor callback.
695
+ *
696
+ * A contributor may produce canonical effects, a provider envelope, or a
697
+ * no-op. The runtime rejects responses that mix the two lanes.
698
+ */
699
+ interface ContributorResponse {
700
+ /** Canonical effects to apply, if any. */
701
+ readonly canonicalEffects?: readonly CanonicalEffect[];
702
+ /** Provider-specific contribution envelope, if any. */
703
+ readonly providerEnvelope?: ProviderContributionEnvelope;
704
+ }
705
+ /**
706
+ * Context supplied to the `createContributors` factory during extension
707
+ * activation.
708
+ *
709
+ * Provides the extension identity and a lookup for active provider contracts
710
+ * so the factory can validate contributor selectors and failure policies.
711
+ */
712
+ interface ContributorActivationContext {
713
+ /** Name of the activating extension. */
714
+ readonly extensionName: string;
715
+ /**
716
+ * Look up a provider contract catalog entry by its exact client and
717
+ * contract identifiers.
718
+ * @param clientId - Client identifier that owns the contract.
719
+ * @param contractId - The contract ID to look up.
720
+ * @returns The catalog entry, or `undefined` when no matching contract is registered.
721
+ */
722
+ readonly getProviderContract: (clientId: string, contractId: string) => ProviderContractCatalogEntry | undefined;
723
+ }
724
+ /**
725
+ * Client hook response contribution surface declared by an extension.
726
+ *
727
+ * Added to {@link MakaioExtension.clientHookResponses}. The runtime calls
728
+ * `createContributors` once during extension activation; the returned batch
729
+ * is validated before installation.
730
+ */
731
+ interface ExtensionClientHookResponsesContribution {
732
+ /**
733
+ * Factory that produces contributor definitions for this extension.
734
+ *
735
+ * Called once during extension activation. The returned contributors are
736
+ * validated against the active provider contract catalog before being
737
+ * installed in the hook response pipeline.
738
+ * @param ctx - Activation context supplying extension identity and
739
+ * provider contract lookup.
740
+ * @returns Contributor definitions or a promise resolving to them.
741
+ */
742
+ readonly createContributors: (ctx: ContributorActivationContext) => ContributorDefinition[] | Promise<ContributorDefinition[]>;
743
+ }
744
+ /**
745
+ * Activation-time validation error codes.
746
+ *
747
+ * These errors are detected when validating contributor definitions during
748
+ * extension activation, before any runtime hook event is fired.
749
+ */
750
+ type ActivationErrorCode = /** Contributor ID is empty or otherwise invalid. */'invalid-contributor-id' /** Contributor timeout value is non-positive, non-finite, or otherwise invalid. */ | 'invalid-timeout-ms' /** Contributor priority is not a finite number. */ | 'invalid-priority' /** Contributor lane or its target identity is invalid. */ | 'invalid-contributor-lane' /** Contributor selectors are missing or malformed. */ | 'invalid-selectors' /** Contributor callback is not callable. */ | 'invalid-respond' /** The referenced provider contract is not registered or not active. */ | 'inactive-provider-contract' /** A selector references an interaction not supported by the provider contract. */ | 'unsupported-interaction'
751
+ /**
752
+ * A contributor declares `failurePolicy: 'closed'` for an interaction
753
+ * that is not blockable according to the provider contract catalog.
754
+ */
755
+ | 'closed-policy-on-non-blockable';
756
+ /**
757
+ * Activation-time validation error raised when a contributor definition
758
+ * fails validation during extension activation.
759
+ */
760
+ interface ActivationValidationError {
761
+ /** Error code identifying the class of validation failure. */
762
+ readonly code: ActivationErrorCode;
763
+ /** Human-readable error message. */
764
+ readonly message: string;
765
+ /** Contributor ID that caused the error, when available. */
766
+ readonly contributorId?: string;
767
+ /** Extension name that owns the contributor. */
768
+ readonly extensionName: string;
769
+ }
770
+ /**
771
+ * Runtime outcome codes for contributor callback execution.
772
+ *
773
+ * These outcomes are recorded after a hook event fires and a contributor
774
+ * callback completes (or fails to complete).
775
+ */
776
+ type RuntimeOutcomeCode = /** The callback completed within the deadline and returned a valid response. */'success' /** The callback exceeded its timeout. */ | 'timeout' /** The callback threw an error or returned an invalid response. */ | 'rejection'
777
+ /**
778
+ * Closed failure: all contributors' results for this hook event are
779
+ * discarded, and a blocking response is rendered.
780
+ */
781
+ | 'closed-failure';
782
+ /**
783
+ * Runtime outcome record for a single contributor callback execution.
784
+ */
785
+ interface RuntimeOutcome {
786
+ /** Outcome code. */
787
+ readonly code: RuntimeOutcomeCode;
788
+ /** Contributor ID that produced this outcome. */
789
+ readonly contributorId: string;
790
+ /** Human-readable detail message, if any. */
791
+ readonly detail?: string;
792
+ /** Duration of the callback execution in milliseconds. */
793
+ readonly durationMs?: number;
794
+ }
795
+ /**
796
+ * Validate that a contributor definition has a non-empty ID.
797
+ * @param id - The contributor ID to validate.
798
+ * @returns `true` when the ID is a non-empty string.
799
+ */
800
+ declare function isValidContributorId(id: string): boolean;
801
+ /**
802
+ * Validate that a timeout value is a positive finite number.
803
+ * @param timeoutMs - The timeout in milliseconds.
804
+ * @returns `true` when the timeout is positive and finite.
805
+ */
806
+ declare function isValidTimeoutMs(timeoutMs: number): boolean;
807
+ /**
808
+ * Validate that a `failurePolicy: 'closed'` declaration is permitted for
809
+ * the given interaction selectors against a provider contract catalog entry.
810
+ *
811
+ * For each selector, the function first verifies that the interaction is
812
+ * listed in the catalog's `supportedInteractions`. If it is not, an
813
+ * "unsupported interaction" error is produced instead of the more specific
814
+ * "not blockable" error — this avoids misleading diagnostics when the
815
+ * interaction simply does not exist in the contract.
816
+ *
817
+ * Returns an array of validation errors. An empty array means the policy
818
+ * is valid.
819
+ * @param selectors - The contributor's interaction selectors.
820
+ * @param catalog - The provider contract catalog entry to validate against.
821
+ * @returns Array of validation error messages; empty when valid.
822
+ */
823
+ declare function validateClosedPolicy(selectors: readonly InteractionSelector[], catalog: ProviderContractCatalogEntry): string[];
824
+ //#endregion
825
+ export { VersionLiteralSchema as $, ClientHookEventDeclarationSchema as A, LogSourceDefinitionSchema as B, validateClosedPolicy as C, ClientDefinitionInput as D, ClientDefinition as E, ClientToolDefinition as F, PostInstallDescriptor as G, ManagedInstallDescriptorSchema as H, ClientToolDefinitionSchema as I, SignedBinaryBucketInstallDescriptorSchema as J, PostInstallDescriptorSchema as K, ConfigIsolation as L, ClientRuntimeCapabilitiesSchema as M, ClientToolCapabilityAnnotation as N, ClientDefinitionSchema as O, ClientToolCapabilityAnnotationSchema as P, VersionLiteral as Q, ConfigIsolationSchema as R, isValidTimeoutMs as S, ClientBinaryCompatibilitySchema as T, NpmInstallDescriptor as U, ManagedInstallDescriptor as V, NpmInstallDescriptorSchema as W, VersionCommandSchema as X, VersionCommand as Y, deriveHookEventTransportMode as Z, ProviderContributionEnvelope as _, CapabilitySelector as a, createAppendEffect as b, ContributorDefinition as c, EventNameSelector as d, VersionRange as et, ExtensionClientHookResponsesContribution as f, ProviderContractCatalogEntry as g, InteractionSelector as h, CanonicalEffect as i, ClientRuntimeCapabilities as j, ClientHookEventDeclaration as k, ContributorResponse as l, InteractionBlockability as m, ActivationValidationError as n, isUniversalRange as nt, ContributorActivationContext as o, FailurePolicy as p, SignedBinaryBucketInstallDescriptor as q, CanonicalAppendEffect as r, versionSatisfies as rt, ContributorCallbackContext as s, ActivationErrorCode as t, VersionRangeSchema as tt, DEFAULT_FAILURE_POLICY as u, RuntimeOutcome as v, ClientBinaryCompatibility as w, isValidContributorId as x, RuntimeOutcomeCode as y, LogSourceDefinition as z };