@makaio/framework 1.0.0-dev-1781022866275 → 1.0.0-dev-1781023871421

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 (456) hide show
  1. package/dist/.makaio-build.json +5 -0
  2. package/dist/account-identity-DT5NOtFi.mjs +1 -0
  3. package/dist/adapter-C1eI-fGV.mjs +1 -0
  4. package/dist/adapters/acp-client/index.d.mts +6208 -0
  5. package/dist/adapters/acp-client/index.mjs +3 -0
  6. package/dist/adapters/config/index.d.mts +429 -0
  7. package/dist/adapters/config/index.mjs +1 -0
  8. package/dist/adapters/index.d.mts +4202 -0
  9. package/dist/adapters/index.mjs +18 -0
  10. package/dist/adapters/node.d.mts +263 -0
  11. package/dist/adapters/node.mjs +4 -0
  12. package/dist/adapters/stream-session/index.d.mts +1414 -0
  13. package/dist/adapters/stream-session/index.mjs +1 -0
  14. package/dist/adapters/stream-session/testing/index.d.mts +29 -0
  15. package/dist/adapters/stream-session/testing/index.mjs +1 -0
  16. package/dist/artifact-B3npq1cy.mjs +1 -0
  17. package/dist/base-orchestrator-wyumsn3b.d.mts +772 -0
  18. package/dist/bus/index.d.mts +3994 -0
  19. package/dist/bus/index.mjs +1 -0
  20. package/dist/bus-Caz3Jpbc.mjs +1 -0
  21. package/dist/bus-Hb-LGzgb.mjs +2 -0
  22. package/dist/capability-service-CJbmhfv9.mjs +1 -0
  23. package/dist/chunk-DTipWd-i.mjs +1 -0
  24. package/dist/chunk-cpUYaJdV.mjs +1 -0
  25. package/dist/cleanEnvForAdapter-KkYzQa1f.mjs +1 -0
  26. package/dist/client-bx74gm4R.mjs +1 -0
  27. package/dist/clients/index.d.mts +2639 -0
  28. package/dist/clients/index.mjs +2 -0
  29. package/dist/clients-namespace-GmSJpBUV.d.mts +332 -0
  30. package/dist/config-namespace-CPY9YsR8.d.mts +638 -0
  31. package/dist/config-namespace-ncYg2ct_.mjs +1 -0
  32. package/dist/contracts/adapter/index.d.mts +3 -0
  33. package/dist/contracts/adapter/index.mjs +1 -0
  34. package/dist/contracts/adapter/schemas/session-lineage.d.mts +2 -0
  35. package/dist/contracts/adapter/schemas/session-lineage.mjs +1 -0
  36. package/dist/contracts/artifact/index.d.mts +2 -0
  37. package/dist/contracts/artifact/index.mjs +1 -0
  38. package/dist/contracts/client/index.d.mts +3 -0
  39. package/dist/contracts/client/index.mjs +1 -0
  40. package/dist/contracts/common/index.d.mts +2 -0
  41. package/dist/contracts/common/index.mjs +1 -0
  42. package/dist/contracts/config/index.d.mts +455 -0
  43. package/dist/contracts/config/index.mjs +1 -0
  44. package/dist/contracts/extension/index.d.mts +4 -0
  45. package/dist/contracts/extension/index.mjs +1 -0
  46. package/dist/contracts/facet/index.d.mts +2 -0
  47. package/dist/contracts/facet/index.mjs +1 -0
  48. package/dist/contracts/harness/index.d.mts +2 -0
  49. package/dist/contracts/harness/index.mjs +1 -0
  50. package/dist/contracts/host/index.d.mts +2 -0
  51. package/dist/contracts/host/index.mjs +1 -0
  52. package/dist/contracts/index.d.mts +23046 -0
  53. package/dist/contracts/index.mjs +1 -0
  54. package/dist/contracts/materialization/index.d.mts +4 -0
  55. package/dist/contracts/materialization/index.mjs +1 -0
  56. package/dist/contracts/model-registry/index.d.mts +2 -0
  57. package/dist/contracts/model-registry/index.mjs +1 -0
  58. package/dist/contracts/native-session-supervisor/index.d.mts +2 -0
  59. package/dist/contracts/native-session-supervisor/index.mjs +1 -0
  60. package/dist/contracts/platform/index.d.mts +2 -0
  61. package/dist/contracts/platform/index.mjs +1 -0
  62. package/dist/contracts/provider/index.d.mts +3 -0
  63. package/dist/contracts/provider/index.mjs +1 -0
  64. package/dist/contracts/session/index.d.mts +3 -0
  65. package/dist/contracts/session/index.mjs +1 -0
  66. package/dist/contracts/shared/index.d.mts +2 -0
  67. package/dist/contracts/shared/index.mjs +1 -0
  68. package/dist/contracts/skill/index.d.mts +2 -0
  69. package/dist/contracts/skill/index.mjs +1 -0
  70. package/dist/contracts/telemetry/index.d.mts +2 -0
  71. package/dist/contracts/telemetry/index.mjs +1 -0
  72. package/dist/contracts/timeout/index.d.mts +2 -0
  73. package/dist/contracts/timeout/index.mjs +1 -0
  74. package/dist/contracts/toast/index.d.mts +198 -0
  75. package/dist/contracts/toast/index.mjs +1 -0
  76. package/dist/contracts/variant/index.d.mts +2 -0
  77. package/dist/contracts/variant/index.mjs +1 -0
  78. package/dist/core/index.d.mts +1263 -0
  79. package/dist/core/index.mjs +1 -0
  80. package/dist/credential-ref-YWQQENEo.mjs +1 -0
  81. package/dist/cursor-storage-CtVJ3JzB.mjs +1 -0
  82. package/dist/definition-BLCdXGzh.d.mts +383 -0
  83. package/dist/definition-CrgHIpTK.d.mts +60 -0
  84. package/dist/definition-DZMXOnjX.mjs +1 -0
  85. package/dist/definition-pkJ6szUl.d.mts +158 -0
  86. package/dist/drizzle-Eq8W1EbD.mjs +1 -0
  87. package/dist/event-Ca2yUf5i.mjs +1 -0
  88. package/dist/execution-target-CRPTfZlc.mjs +1 -0
  89. package/dist/extension-C-4BHMRI.mjs +1 -0
  90. package/dist/extension-CpIUgBKI.mjs +1 -0
  91. package/dist/extension-namespace-cMh_mMiL.mjs +1 -0
  92. package/dist/facet-BuwhrThl.mjs +1 -0
  93. package/dist/filesystem-service-B8rhBRgB.mjs +1 -0
  94. package/dist/filesystem-service-p_iJVHd4.d.mts +66 -0
  95. package/dist/git/index.d.mts +210 -0
  96. package/dist/git/index.mjs +18 -0
  97. package/dist/globby-rtWVaFHv.mjs +41 -0
  98. package/dist/handlers-CkTsQLra.mjs +41 -0
  99. package/dist/harness-BRCMcvQN.mjs +1 -0
  100. package/dist/hooks/index.d.mts +423 -0
  101. package/dist/hooks/index.mjs +1 -0
  102. package/dist/host-Br9VuOyr.mjs +1 -0
  103. package/dist/identity-Cz2IeEtm.mjs +1 -0
  104. package/dist/index-472sOmsW.d.mts +218 -0
  105. package/dist/index-8SZkg7s6.d.mts +353 -0
  106. package/dist/index-B3PK4FIn.d.mts +5116 -0
  107. package/dist/index-B80L4YqA.d.mts +180 -0
  108. package/dist/index-BFg9BUpx.d.mts +355 -0
  109. package/dist/index-BGfWS6GE.d.mts +483 -0
  110. package/dist/index-BVgfS-AJ.d.mts +109 -0
  111. package/dist/index-B_zQC98V.d.mts +995 -0
  112. package/dist/index-Bh_Ne7LF.d.mts +1008 -0
  113. package/dist/index-Bvb2mMH6.d.mts +1730 -0
  114. package/dist/index-CCGVh9BF2.d.mts +749 -0
  115. package/dist/index-CGmcS0Ma.d.mts +412 -0
  116. package/dist/index-CHQ1SqT0.d.mts +117 -0
  117. package/dist/index-CLpjm52M.d.mts +183 -0
  118. package/dist/index-Caig6TeF.d.mts +6746 -0
  119. package/dist/index-CelJCBjk.d.mts +2992 -0
  120. package/dist/index-ChunCFu4.d.mts +11 -0
  121. package/dist/index-Cm0dUkWL.d.mts +4651 -0
  122. package/dist/index-CokQYGVP.d.mts +184 -0
  123. package/dist/index-Cs0kZXIz2.d.mts +37 -0
  124. package/dist/index-D5d5HeWI2.d.mts +259 -0
  125. package/dist/index-D90OmGmV.d.mts +389 -0
  126. package/dist/index-D9MwJ2Q8.d.mts +67 -0
  127. package/dist/index-DANINzMu.d.mts +40 -0
  128. package/dist/index-DBw-89vC2.d.mts +3640 -0
  129. package/dist/index-DGBu6bHi2.d.mts +438 -0
  130. package/dist/index-DKC62dY5.d.mts +146 -0
  131. package/dist/index-DKia0MX1.d.mts +43 -0
  132. package/dist/index-DMKnON5s.d.mts +28 -0
  133. package/dist/index-DUaw0Dw8.d.mts +14747 -0
  134. package/dist/index-De3kPhlN.d.mts +72 -0
  135. package/dist/index-L4GjJDKb.d.mts +822 -0
  136. package/dist/index-U-A8eyGT.d.mts +1490 -0
  137. package/dist/index-eemAKwsB.d.mts +362 -0
  138. package/dist/index-mNec7V-9.d.mts +1075 -0
  139. package/dist/index-soFznFCy2.d.mts +89 -0
  140. package/dist/index-vtXJuwrz.d.mts +40 -0
  141. package/dist/index-x_lVDp_J.d.mts +134 -0
  142. package/dist/json-value-CmhSGMLv.mjs +1 -0
  143. package/dist/kernel/cli/index.d.mts +143 -0
  144. package/dist/kernel/cli/index.mjs +1 -0
  145. package/dist/kernel/cli/schemas.d.mts +64 -0
  146. package/dist/kernel/cli/schemas.mjs +1 -0
  147. package/dist/kernel/extension/index.d.mts +2 -0
  148. package/dist/kernel/extension/index.mjs +1 -0
  149. package/dist/kernel/index.d.mts +296 -0
  150. package/dist/kernel/index.mjs +1 -0
  151. package/dist/kernel/namespace/index.d.mts +2 -0
  152. package/dist/kernel/namespace/index.mjs +1 -0
  153. package/dist/kernel/observability/index.d.mts +2 -0
  154. package/dist/kernel/observability/index.mjs +1 -0
  155. package/dist/kernel/providers/index.d.mts +2 -0
  156. package/dist/kernel/providers/index.mjs +1 -0
  157. package/dist/kernel/window/index.d.mts +2 -0
  158. package/dist/kernel/window/index.mjs +1 -0
  159. package/dist/materialization-CuUBu4XI.mjs +1 -0
  160. package/dist/model-registry-CfXytvzx.mjs +1 -0
  161. package/dist/model-registry-Scn_MC2d.mjs +1 -0
  162. package/dist/namespace-5QQqbF-B.d.mts +3133 -0
  163. package/dist/namespace-BM7Djng9.d.mts +189 -0
  164. package/dist/namespace-BoD94mrN.mjs +1 -0
  165. package/dist/namespace-BwzZJqTV.mjs +1 -0
  166. package/dist/namespace-CFLAmQfh.mjs +1 -0
  167. package/dist/namespace-CTm3nEvh.d.mts +51 -0
  168. package/dist/namespace-CaaNnKcR.d.mts +921 -0
  169. package/dist/namespace-CaoZ3S78.d.mts +43 -0
  170. package/dist/namespace-CxhsoFUP.d.mts +607 -0
  171. package/dist/namespace-DD8Oiqo7.d.mts +580 -0
  172. package/dist/namespace-DLovh2Ws.d.mts +1313 -0
  173. package/dist/namespace-DgqkaOVu.d.mts +768 -0
  174. package/dist/namespace-DkRgbZYn.mjs +1 -0
  175. package/dist/namespace-Dr8K0MCp.d.mts +2047 -0
  176. package/dist/namespace-DuXK5AYN.mjs +1 -0
  177. package/dist/namespace-EQniz-Aw.d.mts +142 -0
  178. package/dist/namespace-IV1QK__V.d.mts +159 -0
  179. package/dist/namespace-LViZ-EQk.mjs +1 -0
  180. package/dist/namespace-TyiTsLFv.d.mts +3020 -0
  181. package/dist/namespace-Yna5-Pws.mjs +1 -0
  182. package/dist/namespace-xcmbQlxh.mjs +1 -0
  183. package/dist/native-session-supervisor-B1TnaPUF.mjs +1 -0
  184. package/dist/node/bus-server/index.d.mts +178 -0
  185. package/dist/node/bus-server/index.mjs +1 -0
  186. package/dist/node/bus-server/server-lifecycle.d.mts +2 -0
  187. package/dist/node/bus-server/server-lifecycle.mjs +1 -0
  188. package/dist/node/machine-identity/index.d.mts +85 -0
  189. package/dist/node/machine-identity/index.mjs +3 -0
  190. package/dist/node/transports/index.d.mts +1945 -0
  191. package/dist/node/transports/index.mjs +2 -0
  192. package/dist/orchestrator-shared-CIDiFJMD.mjs +1 -0
  193. package/dist/orchestrator-shared-Dfa7FMyw.d.mts +249 -0
  194. package/dist/package-DKVlsMP3.mjs +1 -0
  195. package/dist/platform-DZ7z-wXD.mjs +1 -0
  196. package/dist/profile-6ynCD5k3.mjs +1 -0
  197. package/dist/provider-context-CK6B4X_8.mjs +1 -0
  198. package/dist/providers/index.d.mts +135 -0
  199. package/dist/providers/index.mjs +1 -0
  200. package/dist/providers-namespace-DSEpli4A.d.mts +583 -0
  201. package/dist/providers-u8i15co9.mjs +1 -0
  202. package/dist/schema-CoyE6mPt.mjs +1 -0
  203. package/dist/schema-M5YTvSAG.d.mts +949 -0
  204. package/dist/schema-e0wU_lcV.mjs +1 -0
  205. package/dist/schema-introspection-Dn1jWQs1.mjs +1 -0
  206. package/dist/schemas-Bd0OjRQf.d.mts +46 -0
  207. package/dist/schemas-C46QfKzv.d.mts +459 -0
  208. package/dist/schemas-CDBSjg7o.d.mts +237 -0
  209. package/dist/schemas-CR1Rripy.mjs +1 -0
  210. package/dist/schemas-CVvwIfG4.mjs +1 -0
  211. package/dist/schemas-CaLhkkLn.mjs +1 -0
  212. package/dist/schemas-ClOOT1W6.d.mts +174 -0
  213. package/dist/schemas-DATniTHb.d.mts +182 -0
  214. package/dist/schemas-DE-GNmSD.mjs +1 -0
  215. package/dist/schemas-DVF1A4DF.d.mts +160 -0
  216. package/dist/schemas-DaRSfYLf.d.mts +73 -0
  217. package/dist/schemas-DiYVzG6e.d.mts +315 -0
  218. package/dist/schemas-hSrzflwZ.mjs +1 -0
  219. package/dist/schemas-j7ivZ2HI.d.mts +944 -0
  220. package/dist/schemas-jFe1AuI-.mjs +1 -0
  221. package/dist/schemas-wg_6PAdV.d.mts +153 -0
  222. package/dist/scoped-bus-04pwo1uM.mjs +1 -0
  223. package/dist/server-lifecycle-FXTPW39-.mjs +1 -0
  224. package/dist/server-lifecycle-YoSGFGnU.d.mts +160 -0
  225. package/dist/service-base/index.d.mts +98 -0
  226. package/dist/service-base/index.mjs +1 -0
  227. package/dist/services/adapter-runtime/index.d.mts +4 -0
  228. package/dist/services/adapter-runtime/index.mjs +1 -0
  229. package/dist/services/adapter-runtime/namespace.d.mts +2 -0
  230. package/dist/services/adapter-runtime/namespace.mjs +1 -0
  231. package/dist/services/adapter-runtime/schemas.d.mts +2 -0
  232. package/dist/services/adapter-runtime/schemas.mjs +1 -0
  233. package/dist/services/adapter-subsystem/index.d.mts +3 -0
  234. package/dist/services/adapter-subsystem/index.mjs +1 -0
  235. package/dist/services/adapter-subsystem/namespace.d.mts +2 -0
  236. package/dist/services/adapter-subsystem/namespace.mjs +1 -0
  237. package/dist/services/agent-runtime/index.d.mts +3 -0
  238. package/dist/services/agent-runtime/index.mjs +1 -0
  239. package/dist/services/agent-runtime/namespace.d.mts +2 -0
  240. package/dist/services/agent-runtime/namespace.mjs +1 -0
  241. package/dist/services/agent-runtime/schemas.d.mts +2 -0
  242. package/dist/services/agent-runtime/schemas.mjs +1 -0
  243. package/dist/services/capability/index.d.mts +2 -0
  244. package/dist/services/capability/index.mjs +1 -0
  245. package/dist/services/cli-detection/namespace.d.mts +56 -0
  246. package/dist/services/cli-detection/namespace.mjs +1 -0
  247. package/dist/services/codebase/index.d.mts +3 -0
  248. package/dist/services/codebase/index.mjs +1 -0
  249. package/dist/services/codebase/namespace.d.mts +2 -0
  250. package/dist/services/codebase/namespace.mjs +1 -0
  251. package/dist/services/codebase/schemas.d.mts +2 -0
  252. package/dist/services/codebase/schemas.mjs +1 -0
  253. package/dist/services/compression/index.d.mts +3 -0
  254. package/dist/services/compression/index.mjs +1 -0
  255. package/dist/services/compression/namespace.d.mts +2 -0
  256. package/dist/services/compression/namespace.mjs +1 -0
  257. package/dist/services/compression/schemas.d.mts +2 -0
  258. package/dist/services/compression/schemas.mjs +1 -0
  259. package/dist/services/context-rules/index.d.mts +412 -0
  260. package/dist/services/context-rules/index.mjs +1 -0
  261. package/dist/services/credential-change/index.d.mts +17 -0
  262. package/dist/services/credential-change/index.mjs +1 -0
  263. package/dist/services/definition/index.d.mts +2 -0
  264. package/dist/services/definition/index.mjs +1 -0
  265. package/dist/services/definition/namespace.d.mts +71 -0
  266. package/dist/services/definition/namespace.mjs +1 -0
  267. package/dist/services/definition/schemas.d.mts +38 -0
  268. package/dist/services/definition/schemas.mjs +1 -0
  269. package/dist/services/dialog/namespace.d.mts +105 -0
  270. package/dist/services/dialog/namespace.mjs +1 -0
  271. package/dist/services/dialog/schemas.d.mts +109 -0
  272. package/dist/services/dialog/schemas.mjs +1 -0
  273. package/dist/services/execution-target/index.d.mts +4 -0
  274. package/dist/services/execution-target/index.mjs +1 -0
  275. package/dist/services/execution-target/namespace.d.mts +2 -0
  276. package/dist/services/execution-target/namespace.mjs +1 -0
  277. package/dist/services/execution-target/schemas.d.mts +2 -0
  278. package/dist/services/execution-target/schemas.mjs +1 -0
  279. package/dist/services/filesystem/index.d.mts +3 -0
  280. package/dist/services/filesystem/index.mjs +1 -0
  281. package/dist/services/filesystem/namespace.d.mts +432 -0
  282. package/dist/services/filesystem/namespace.mjs +1 -0
  283. package/dist/services/filesystem/schemas.d.mts +240 -0
  284. package/dist/services/filesystem/schemas.mjs +1 -0
  285. package/dist/services/git/namespace.d.mts +1163 -0
  286. package/dist/services/git/namespace.mjs +1 -0
  287. package/dist/services/git/schemas.d.mts +932 -0
  288. package/dist/services/git/schemas.mjs +1 -0
  289. package/dist/services/harness/index.d.mts +861 -0
  290. package/dist/services/harness/index.mjs +1 -0
  291. package/dist/services/harness/storage/schema.d.mts +424 -0
  292. package/dist/services/harness/storage/schema.mjs +1 -0
  293. package/dist/services/index.d.mts +6185 -0
  294. package/dist/services/index.mjs +1 -0
  295. package/dist/services/local-notification/index.d.mts +25 -0
  296. package/dist/services/local-notification/index.mjs +1 -0
  297. package/dist/services/local-notification/namespace.d.mts +73 -0
  298. package/dist/services/local-notification/namespace.mjs +1 -0
  299. package/dist/services/local-notification/schemas.d.mts +88 -0
  300. package/dist/services/local-notification/schemas.mjs +1 -0
  301. package/dist/services/log-import/browser.d.mts +3 -0
  302. package/dist/services/log-import/browser.mjs +1 -0
  303. package/dist/services/log-import/index.d.mts +274 -0
  304. package/dist/services/log-import/index.mjs +2 -0
  305. package/dist/services/log-import/log-import.d.mts +3 -0
  306. package/dist/services/log-import/log-import.mjs +1 -0
  307. package/dist/services/log-import/namespace.d.mts +327 -0
  308. package/dist/services/log-import/namespace.mjs +1 -0
  309. package/dist/services/log-import/schemas.d.mts +217 -0
  310. package/dist/services/log-import/schemas.mjs +1 -0
  311. package/dist/services/model-registry/index.d.mts +2 -0
  312. package/dist/services/model-registry/index.mjs +1 -0
  313. package/dist/services/preferences/index.d.mts +3 -0
  314. package/dist/services/preferences/index.mjs +1 -0
  315. package/dist/services/preferences/schemas.d.mts +2 -0
  316. package/dist/services/preferences/schemas.mjs +1 -0
  317. package/dist/services/preferences/storage-namespace.d.mts +3 -0
  318. package/dist/services/preferences/storage-namespace.mjs +1 -0
  319. package/dist/services/provider-context/index.d.mts +2 -0
  320. package/dist/services/provider-context/index.mjs +1 -0
  321. package/dist/services/provider-runtime/index.d.mts +136 -0
  322. package/dist/services/provider-runtime/index.mjs +1 -0
  323. package/dist/services/session/handlers/index.d.mts +2 -0
  324. package/dist/services/session/handlers/index.mjs +1 -0
  325. package/dist/services/session/index.d.mts +10 -0
  326. package/dist/services/session/index.mjs +1 -0
  327. package/dist/services/session/messages/namespace.d.mts +2 -0
  328. package/dist/services/session/messages/namespace.mjs +1 -0
  329. package/dist/services/session/orchestrator-testing/index.d.mts +2 -0
  330. package/dist/services/session/orchestrator-testing/index.mjs +1 -0
  331. package/dist/services/session/session-events/namespace.d.mts +2 -0
  332. package/dist/services/session/session-events/namespace.mjs +1 -0
  333. package/dist/services/session/storage/namespace.d.mts +2 -0
  334. package/dist/services/session/storage/namespace.mjs +1 -0
  335. package/dist/services/session/storage/schema.d.mts +2 -0
  336. package/dist/services/session/storage/schema.mjs +1 -0
  337. package/dist/services/session/testing/index.d.mts +35 -0
  338. package/dist/services/session/testing/index.mjs +65 -0
  339. package/dist/services/session/testing/orchestrator-shared.d.mts +2 -0
  340. package/dist/services/session/testing/orchestrator-shared.mjs +1 -0
  341. package/dist/services/session/turns/namespace.d.mts +2 -0
  342. package/dist/services/session/turns/namespace.mjs +1 -0
  343. package/dist/services/session-editor/index.d.mts +119 -0
  344. package/dist/services/session-editor/index.mjs +1 -0
  345. package/dist/services/settings/index.d.mts +47 -0
  346. package/dist/services/settings/index.mjs +1 -0
  347. package/dist/services/settings/namespace.d.mts +663 -0
  348. package/dist/services/settings/namespace.mjs +1 -0
  349. package/dist/services/settings/storage/clients-namespace.d.mts +2 -0
  350. package/dist/services/settings/storage/clients-namespace.mjs +1 -0
  351. package/dist/services/settings/storage/extension-configs/namespace.d.mts +184 -0
  352. package/dist/services/settings/storage/extension-configs/namespace.mjs +1 -0
  353. package/dist/services/settings/storage/index.d.mts +4 -0
  354. package/dist/services/settings/storage/index.mjs +1 -0
  355. package/dist/services/settings/storage/providers-namespace.d.mts +2 -0
  356. package/dist/services/settings/storage/providers-namespace.mjs +1 -0
  357. package/dist/services/subagent/index.d.mts +2 -0
  358. package/dist/services/subagent/index.mjs +1 -0
  359. package/dist/services/subagent-template/index.d.mts +3 -0
  360. package/dist/services/subagent-template/index.mjs +1 -0
  361. package/dist/services/subagent-template/namespace.d.mts +2 -0
  362. package/dist/services/subagent-template/namespace.mjs +1 -0
  363. package/dist/services/subagent-template/schemas.d.mts +2 -0
  364. package/dist/services/subagent-template/schemas.mjs +1 -0
  365. package/dist/services/tool-approval/index.d.mts +2 -0
  366. package/dist/services/tool-approval/index.mjs +1 -0
  367. package/dist/services/tools/index.d.mts +2 -0
  368. package/dist/services/tools/index.mjs +1 -0
  369. package/dist/services/tray-menu/index.d.mts +4 -0
  370. package/dist/services/tray-menu/index.mjs +1 -0
  371. package/dist/services/tray-menu/namespace.d.mts +2 -0
  372. package/dist/services/tray-menu/namespace.mjs +1 -0
  373. package/dist/services/tray-menu/schemas.d.mts +2 -0
  374. package/dist/services/tray-menu/schemas.mjs +1 -0
  375. package/dist/services/turn/index.d.mts +2 -0
  376. package/dist/services/turn/index.mjs +1 -0
  377. package/dist/services/turn/namespace.d.mts +2 -0
  378. package/dist/services/turn/namespace.mjs +1 -0
  379. package/dist/services/turn/schemas.d.mts +335 -0
  380. package/dist/services/turn/schemas.mjs +1 -0
  381. package/dist/session-BoldSdNZ2.mjs +134 -0
  382. package/dist/session-DuVOYctZ.mjs +1 -0
  383. package/dist/session-lineage-CRsc9g1x.d.mts +65 -0
  384. package/dist/shared-DpOEfD8F.mjs +1 -0
  385. package/dist/shared-schemas-CPShiLNp.mjs +1 -0
  386. package/dist/skill-CQO4mDqK.mjs +1 -0
  387. package/dist/storage/drizzle/client.d.mts +78 -0
  388. package/dist/storage/drizzle/client.mjs +1 -0
  389. package/dist/storage/drizzle/index.d.mts +137 -0
  390. package/dist/storage/drizzle/index.mjs +1 -0
  391. package/dist/storage/handlers/drizzle/index.d.mts +2 -0
  392. package/dist/storage/handlers/drizzle/index.mjs +1 -0
  393. package/dist/storage/handlers/index.d.mts +33 -0
  394. package/dist/storage/handlers/index.mjs +1 -0
  395. package/dist/storage/index.d.mts +192 -0
  396. package/dist/storage/index.mjs +1 -0
  397. package/dist/storage-namespace-BXkoh5Sy.d.mts +221 -0
  398. package/dist/storage-namespace-DWsYLAXa.mjs +1 -0
  399. package/dist/storage-namespace-definition-Bkx5rSto.d.mts +17 -0
  400. package/dist/storage-namespace-definition-CqSdsuCC.mjs +1 -0
  401. package/dist/style.css +3782 -0
  402. package/dist/telemetry-CvdLBWuk.mjs +1 -0
  403. package/dist/testing/drizzle-harness.d.mts +130 -0
  404. package/dist/testing/drizzle-harness.mjs +1 -0
  405. package/dist/testing/index.d.mts +106 -0
  406. package/dist/testing/index.mjs +1 -0
  407. package/dist/timeout-XsYIOKrc.mjs +1 -0
  408. package/dist/tool-approval-service-BvZWhYZp.mjs +1 -0
  409. package/dist/tools/index.d.mts +835 -0
  410. package/dist/tools/index.mjs +1 -0
  411. package/dist/tools/testing/index.d.mts +53 -0
  412. package/dist/tools/testing/index.mjs +1 -0
  413. package/dist/tools-D-luYcDw.mjs +1431 -0
  414. package/dist/tray-menu-service-DuXq5k22.mjs +1 -0
  415. package/dist/types-BCMUtBj1.d.mts +1106 -0
  416. package/dist/types-C2Ob9zz_.d.mts +128 -0
  417. package/dist/types-CCdqjeuH.d.mts +262 -0
  418. package/dist/types-DZHvOc_Q.d.mts +305 -0
  419. package/dist/types-Dy3YTcTF.d.mts +6777 -0
  420. package/dist/types-MfJZ67e9.d.mts +315 -0
  421. package/dist/types-dyP-bXXE.d.mts +31 -0
  422. package/dist/ui-components/index.d.mts +2342 -0
  423. package/dist/ui-components/index.mjs +8 -0
  424. package/dist/ui-config-9bDRwFZr.mjs +1 -0
  425. package/dist/ui-hooks/index.d.mts +1915 -0
  426. package/dist/ui-hooks/index.mjs +1 -0
  427. package/dist/ui-kernel/index.d.mts +2793 -0
  428. package/dist/ui-kernel/index.mjs +1 -0
  429. package/dist/ui-kernel/pages/namespace.d.mts +88 -0
  430. package/dist/ui-kernel/pages/namespace.mjs +1 -0
  431. package/dist/ui-kernel/pages/schemas.d.mts +2 -0
  432. package/dist/ui-kernel/pages/schemas.mjs +1 -0
  433. package/dist/ui-views/index.d.mts +487 -0
  434. package/dist/ui-views/index.mjs +30 -0
  435. package/dist/utils/health-probe.d.mts +26 -0
  436. package/dist/utils/health-probe.mjs +1 -0
  437. package/dist/utils/index.d.mts +262 -0
  438. package/dist/utils/index.mjs +2 -0
  439. package/dist/utils/keychain.d.mts +31 -0
  440. package/dist/utils/keychain.mjs +1 -0
  441. package/dist/utils/project-manifest.d.mts +130 -0
  442. package/dist/utils/project-manifest.mjs +1 -0
  443. package/dist/utils/resolve-package-root.d.mts +12 -0
  444. package/dist/utils/resolve-package-root.mjs +1 -0
  445. package/dist/utils/scope-paths.d.mts +33 -0
  446. package/dist/utils/scope-paths.mjs +1 -0
  447. package/dist/utils/workspace-packages.d.mts +59 -0
  448. package/dist/utils/workspace-packages.mjs +1 -0
  449. package/dist/utils/workspace-root.d.mts +24 -0
  450. package/dist/utils/workspace-root.mjs +2 -0
  451. package/dist/variant-CT6XBP6T.mjs +1 -0
  452. package/dist/version-BeT3ASEe.mjs +1 -0
  453. package/dist/visibility-Cb62p9bv.mjs +1 -0
  454. package/dist/window-registry-CBcrGTv4.d.mts +130 -0
  455. package/dist/window-registry-DW-dKRjQ.mjs +1 -0
  456. package/package.json +1 -1
@@ -0,0 +1,2992 @@
1
+ import { i as ClientDefinitionInput, r as ClientDefinition } from "./definition-BLCdXGzh.mjs";
2
+ import * as _$zod from "zod";
3
+ import { z } from "zod";
4
+ import * as _$_makaio_core0 from "@makaio/framework/core";
5
+ import * as _$zod_v4_core0 from "zod/v4/core";
6
+
7
+ //#region core/contracts/src/client/binary-resolution.d.ts
8
+ /**
9
+ * Execution context returned by the `client.resolveBinary` command.
10
+ *
11
+ * Describes everything a caller needs to spawn the resolved client binary:
12
+ * the path (or `null` to use PATH lookup), environment overrides, the config
13
+ * directory in effect, the resolution source, and the resolved version.
14
+ */
15
+ declare const ClientExecutionContextSchema: z.ZodObject<{
16
+ binaryPath: z.ZodNullable<z.ZodString>;
17
+ env: z.ZodRecord<z.ZodString, z.ZodString>;
18
+ configDir: z.ZodNullable<z.ZodString>;
19
+ source: z.ZodEnum<{
20
+ global: "global";
21
+ managed: "managed";
22
+ }>;
23
+ version: z.ZodNullable<z.ZodString>;
24
+ }, z.core.$strip>;
25
+ type ClientExecutionContext = z.infer<typeof ClientExecutionContextSchema>;
26
+ /**
27
+ * Request and response schemas for `client.resolveBinary`.
28
+ *
29
+ * Resolves the binary path, environment overrides, and config directory for a
30
+ * given client. The response is everything a caller needs to spawn the binary.
31
+ *
32
+ * Phase 2 optional fields (`sessionId`, `projectDir`, `preferSource`,
33
+ * `harnessId`) are declared now as seams so the handler contract is stable
34
+ * before the implementations land.
35
+ */
36
+ declare const ClientResolveBinarySchema: {
37
+ request: z.ZodObject<{
38
+ clientId: z.ZodString;
39
+ sessionId: z.ZodOptional<z.ZodString>;
40
+ projectDir: z.ZodOptional<z.ZodString>;
41
+ preferSource: z.ZodOptional<z.ZodEnum<{
42
+ global: "global";
43
+ managed: "managed";
44
+ }>>;
45
+ harnessId: z.ZodOptional<z.ZodString>;
46
+ }, z.core.$strip>;
47
+ response: z.ZodObject<{
48
+ binaryPath: z.ZodNullable<z.ZodString>;
49
+ env: z.ZodRecord<z.ZodString, z.ZodString>;
50
+ configDir: z.ZodNullable<z.ZodString>;
51
+ source: z.ZodEnum<{
52
+ global: "global";
53
+ managed: "managed";
54
+ }>;
55
+ version: z.ZodNullable<z.ZodString>;
56
+ }, z.core.$strip>;
57
+ };
58
+ type ClientResolveBinaryRequest = z.infer<typeof ClientResolveBinarySchema.request>;
59
+ type ClientResolveBinaryResponse = z.infer<typeof ClientResolveBinarySchema.response>;
60
+ //#endregion
61
+ //#region core/contracts/src/client/schemas.d.ts
62
+ /**
63
+ * Client namespace schemas.
64
+ */
65
+ declare const ClientSchemas: {
66
+ 'config.prime': {
67
+ request: z.ZodObject<{
68
+ clientId: z.ZodString;
69
+ configDir: z.ZodString;
70
+ phase: z.ZodEnum<{
71
+ "managed-install": "managed-install";
72
+ "profile-create": "profile-create";
73
+ "session-create": "session-create";
74
+ }>;
75
+ binaryVersion: z.ZodOptional<z.ZodString>;
76
+ adapterName: z.ZodOptional<z.ZodString>;
77
+ projectDir: z.ZodOptional<z.ZodString>;
78
+ }, z.core.$strip>;
79
+ response: z.ZodObject<{
80
+ primed: z.ZodBoolean;
81
+ }, z.core.$strip>;
82
+ };
83
+ 'sessionConfig.create': {
84
+ request: z.ZodObject<{
85
+ clientId: z.ZodString;
86
+ sessionId: z.ZodString;
87
+ profileName: z.ZodOptional<z.ZodString>;
88
+ baseConfigDir: z.ZodOptional<z.ZodString>;
89
+ projectDir: z.ZodOptional<z.ZodString>;
90
+ configInheritance: z.ZodOptional<z.ZodEnum<{
91
+ full: "full";
92
+ "auth-only": "auth-only";
93
+ empty: "empty";
94
+ }>>;
95
+ }, z.core.$strip>;
96
+ response: z.ZodObject<{
97
+ sessionDir: z.ZodString;
98
+ env: z.ZodRecord<z.ZodString, z.ZodString>;
99
+ }, z.core.$strip>;
100
+ };
101
+ 'sessionConfig.destroy': {
102
+ request: z.ZodObject<{
103
+ clientId: z.ZodString;
104
+ sessionId: z.ZodString;
105
+ }, z.core.$strip>;
106
+ response: z.ZodObject<{
107
+ success: z.ZodBoolean;
108
+ }, z.core.$strip>;
109
+ };
110
+ 'sessionConfig.cleanup': {
111
+ request: z.ZodObject<{
112
+ clientId: z.ZodOptional<z.ZodString>;
113
+ }, z.core.$strip>;
114
+ response: z.ZodObject<{
115
+ removed: z.ZodArray<z.ZodString>;
116
+ }, z.core.$strip>;
117
+ };
118
+ 'profile.create': {
119
+ request: z.ZodObject<{
120
+ clientId: z.ZodString;
121
+ name: z.ZodString;
122
+ description: z.ZodOptional<z.ZodString>;
123
+ }, z.core.$strip>;
124
+ response: z.ZodObject<{
125
+ profile: z.ZodObject<{
126
+ id: z.ZodString;
127
+ clientId: z.ZodString;
128
+ name: z.ZodString;
129
+ description: z.ZodNullable<z.ZodString>;
130
+ configDir: z.ZodString;
131
+ isDefault: z.ZodBoolean;
132
+ createdAt: z.ZodNumber;
133
+ updatedAt: z.ZodNumber;
134
+ }, z.core.$strip>;
135
+ }, z.core.$strip>;
136
+ };
137
+ 'profile.list': {
138
+ request: z.ZodObject<{
139
+ clientId: z.ZodString;
140
+ }, z.core.$strip>;
141
+ response: z.ZodObject<{
142
+ profiles: z.ZodArray<z.ZodObject<{
143
+ id: z.ZodString;
144
+ clientId: z.ZodString;
145
+ name: z.ZodString;
146
+ description: z.ZodNullable<z.ZodString>;
147
+ configDir: z.ZodString;
148
+ isDefault: z.ZodBoolean;
149
+ createdAt: z.ZodNumber;
150
+ updatedAt: z.ZodNumber;
151
+ }, z.core.$strip>>;
152
+ }, z.core.$strip>;
153
+ };
154
+ 'profile.get': {
155
+ request: z.ZodObject<{
156
+ clientId: z.ZodString;
157
+ name: z.ZodString;
158
+ }, z.core.$strip>;
159
+ response: z.ZodObject<{
160
+ profile: z.ZodNullable<z.ZodObject<{
161
+ id: z.ZodString;
162
+ clientId: z.ZodString;
163
+ name: z.ZodString;
164
+ description: z.ZodNullable<z.ZodString>;
165
+ configDir: z.ZodString;
166
+ isDefault: z.ZodBoolean;
167
+ createdAt: z.ZodNumber;
168
+ updatedAt: z.ZodNumber;
169
+ }, z.core.$strip>>;
170
+ }, z.core.$strip>;
171
+ };
172
+ 'profile.update': {
173
+ request: z.ZodObject<{
174
+ clientId: z.ZodString;
175
+ name: z.ZodString;
176
+ description: z.ZodOptional<z.ZodString>;
177
+ }, z.core.$strip>;
178
+ response: z.ZodObject<{
179
+ profile: z.ZodObject<{
180
+ id: z.ZodString;
181
+ clientId: z.ZodString;
182
+ name: z.ZodString;
183
+ description: z.ZodNullable<z.ZodString>;
184
+ configDir: z.ZodString;
185
+ isDefault: z.ZodBoolean;
186
+ createdAt: z.ZodNumber;
187
+ updatedAt: z.ZodNumber;
188
+ }, z.core.$strip>;
189
+ }, z.core.$strip>;
190
+ };
191
+ 'profile.delete': {
192
+ request: z.ZodObject<{
193
+ clientId: z.ZodString;
194
+ name: z.ZodString;
195
+ }, z.core.$strip>;
196
+ response: z.ZodObject<{
197
+ success: z.ZodBoolean;
198
+ }, z.core.$strip>;
199
+ };
200
+ 'profile.setDefault': {
201
+ request: z.ZodObject<{
202
+ clientId: z.ZodString;
203
+ name: z.ZodString;
204
+ }, z.core.$strip>;
205
+ response: z.ZodObject<{
206
+ profile: z.ZodObject<{
207
+ id: z.ZodString;
208
+ clientId: z.ZodString;
209
+ name: z.ZodString;
210
+ description: z.ZodNullable<z.ZodString>;
211
+ configDir: z.ZodString;
212
+ isDefault: z.ZodBoolean;
213
+ createdAt: z.ZodNumber;
214
+ updatedAt: z.ZodNumber;
215
+ }, z.core.$strip>;
216
+ }, z.core.$strip>;
217
+ };
218
+ 'runtime.observe': {
219
+ request: z.ZodObject<{
220
+ clientId: z.ZodString;
221
+ source: z.ZodObject<{
222
+ layer: z.ZodEnum<{
223
+ adapter: "adapter";
224
+ supervisor: "supervisor";
225
+ "client-hook": "client-hook";
226
+ statusline: "statusline";
227
+ "cli-wrapper": "cli-wrapper";
228
+ }>;
229
+ producer: z.ZodString;
230
+ }, z.core.$strip>;
231
+ observedAt: z.ZodNumber;
232
+ supervisorSessionId: z.ZodOptional<z.ZodString>;
233
+ pid: z.ZodOptional<z.ZodNumber>;
234
+ parentPid: z.ZodOptional<z.ZodNumber>;
235
+ adapterSessionId: z.ZodOptional<z.ZodString>;
236
+ sessionId: z.ZodOptional<z.ZodString>;
237
+ cwd: z.ZodOptional<z.ZodString>;
238
+ argv: z.ZodOptional<z.ZodArray<z.ZodString>>;
239
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
240
+ }, z.core.$strip>;
241
+ response: z.ZodObject<{
242
+ clientRuntimeId: z.ZodString;
243
+ created: z.ZodBoolean;
244
+ promoted: z.ZodBoolean;
245
+ }, z.core.$strip>;
246
+ };
247
+ 'runtime.started': z.ZodObject<{
248
+ supervisorSessionId: z.ZodOptional<z.ZodString>;
249
+ pid: z.ZodOptional<z.ZodNumber>;
250
+ parentPid: z.ZodOptional<z.ZodNumber>;
251
+ adapterSessionId: z.ZodOptional<z.ZodString>;
252
+ sessionId: z.ZodOptional<z.ZodString>;
253
+ cwd: z.ZodOptional<z.ZodString>;
254
+ argv: z.ZodOptional<z.ZodArray<z.ZodString>>;
255
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
256
+ clientRuntimeId: z.ZodString;
257
+ clientId: z.ZodString;
258
+ status: z.ZodEnum<{
259
+ started: "started";
260
+ observed: "observed";
261
+ }>;
262
+ source: z.ZodObject<{
263
+ layer: z.ZodEnum<{
264
+ adapter: "adapter";
265
+ supervisor: "supervisor";
266
+ "client-hook": "client-hook";
267
+ statusline: "statusline";
268
+ "cli-wrapper": "cli-wrapper";
269
+ }>;
270
+ producer: z.ZodString;
271
+ }, z.core.$strip>;
272
+ observedAt: z.ZodNumber;
273
+ }, z.core.$strip>;
274
+ scan: {
275
+ request: z.ZodObject<{
276
+ targets: z.ZodOptional<z.ZodArray<z.ZodObject<{
277
+ clientId: z.ZodString;
278
+ binaryName: z.ZodString;
279
+ supportedVersions: z.ZodOptional<z.ZodString>;
280
+ }, z.core.$strip>>>;
281
+ }, z.core.$strip>;
282
+ response: z.ZodObject<{
283
+ results: z.ZodArray<z.ZodObject<{
284
+ clientId: z.ZodString;
285
+ found: z.ZodBoolean;
286
+ version: z.ZodOptional<z.ZodString>;
287
+ warningMessage: z.ZodOptional<z.ZodString>;
288
+ }, z.core.$strip>>;
289
+ }, z.core.$strip>;
290
+ };
291
+ 'session.account.observe': {
292
+ request: z.ZodObject<{
293
+ clientId: z.ZodString;
294
+ source: z.ZodString;
295
+ kind: z.ZodString;
296
+ observedAt: z.ZodNumber;
297
+ payload: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
298
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
299
+ kind: z.ZodLiteral<"session">;
300
+ sessionId: z.ZodString;
301
+ }, z.core.$strip>, z.ZodObject<{
302
+ kind: z.ZodLiteral<"adapter-session">;
303
+ adapterSessionId: z.ZodString;
304
+ }, z.core.$strip>, z.ZodObject<{
305
+ kind: z.ZodLiteral<"both">;
306
+ sessionId: z.ZodString;
307
+ adapterSessionId: z.ZodString;
308
+ }, z.core.$strip>], "kind">;
309
+ }, z.core.$strip>;
310
+ response: z.ZodObject<{
311
+ handled: z.ZodBoolean;
312
+ sessionId: z.ZodNullable<z.ZodString>;
313
+ clientAccountId: z.ZodNullable<z.ZodString>;
314
+ changed: z.ZodBoolean;
315
+ }, z.core.$strip>;
316
+ };
317
+ 'account.observe': {
318
+ request: z.ZodObject<{
319
+ clientId: z.ZodString;
320
+ observedAt: z.ZodOptional<z.ZodNumber>;
321
+ displayLabel: z.ZodOptional<z.ZodString>;
322
+ identifiers: z.ZodArray<z.ZodObject<{
323
+ scheme: z.ZodString;
324
+ value: z.ZodString;
325
+ strength: z.ZodEnum<{
326
+ strong: "strong";
327
+ alias: "alias";
328
+ }>;
329
+ }, z.core.$strip>>;
330
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
331
+ }, z.core.$strip>;
332
+ response: z.ZodObject<{
333
+ clientAccountId: z.ZodString;
334
+ displayLabel: z.ZodOptional<z.ZodString>;
335
+ }, z.core.$strip>;
336
+ };
337
+ /**
338
+ * Signal which account is currently active for a client.
339
+ *
340
+ * Called by the account-manager after successfully linking an account
341
+ * via `client.account.observe`. `ClientRuntimeService` persists the
342
+ * supplied identity in memory so that other services (e.g. the Claude
343
+ * Code client service) can query it without a session lookup.
344
+ */
345
+ 'account.activate': {
346
+ request: z.ZodObject<{
347
+ clientId: z.ZodString;
348
+ clientAccountId: z.ZodString;
349
+ identifiers: z.ZodArray<z.ZodObject<{
350
+ scheme: z.ZodString;
351
+ value: z.ZodString;
352
+ strength: z.ZodEnum<{
353
+ strong: "strong";
354
+ alias: "alias";
355
+ }>;
356
+ }, z.core.$strip>>;
357
+ displayLabel: z.ZodOptional<z.ZodString>;
358
+ }, z.core.$strip>;
359
+ response: z.ZodObject<{
360
+ accepted: z.ZodBoolean;
361
+ }, z.core.$strip>;
362
+ };
363
+ /**
364
+ * Retrieve the currently active account identity for a client.
365
+ *
366
+ * Returns the identity most recently signalled via `account.activate`,
367
+ * or `null` when no activation has been recorded for the given client.
368
+ * Used as a fallback by the Claude Code client service when a statusline
369
+ * payload cannot be correlated to a persisted session.
370
+ */
371
+ 'account.getActive': {
372
+ request: z.ZodObject<{
373
+ clientId: z.ZodString;
374
+ }, z.core.$strip>;
375
+ response: z.ZodObject<{
376
+ identity: z.ZodNullable<z.ZodObject<{
377
+ clientAccountId: z.ZodString;
378
+ identifiers: z.ZodArray<z.ZodObject<{
379
+ scheme: z.ZodString;
380
+ value: z.ZodString;
381
+ strength: z.ZodEnum<{
382
+ strong: "strong";
383
+ alias: "alias";
384
+ }>;
385
+ }, z.core.$strip>>;
386
+ displayLabel: z.ZodOptional<z.ZodString>;
387
+ }, z.core.$strip>>;
388
+ }, z.core.$strip>;
389
+ };
390
+ 'usage.ingest': {
391
+ request: z.ZodObject<{
392
+ clientId: z.ZodString;
393
+ observedAt: z.ZodNumber;
394
+ source: z.ZodString;
395
+ account: z.ZodObject<{
396
+ displayLabel: z.ZodOptional<z.ZodString>;
397
+ identifiers: z.ZodArray<z.ZodObject<{
398
+ scheme: z.ZodString;
399
+ value: z.ZodString;
400
+ strength: z.ZodEnum<{
401
+ strong: "strong";
402
+ alias: "alias";
403
+ }>;
404
+ }, z.core.$strip>>;
405
+ }, z.core.$strip>;
406
+ usage: z.ZodObject<{
407
+ windows: z.ZodArray<z.ZodObject<{
408
+ key: z.ZodString;
409
+ label: z.ZodString;
410
+ usedPercentage: z.ZodNumber;
411
+ resetsAt: z.ZodOptional<z.ZodNumber>;
412
+ }, z.core.$strip>>;
413
+ }, z.core.$strip>;
414
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
415
+ }, z.core.$strip>;
416
+ response: z.ZodObject<{
417
+ clientAccountId: z.ZodString;
418
+ snapshot: z.ZodObject<{
419
+ clientAccountId: z.ZodString;
420
+ clientId: z.ZodString;
421
+ observedAt: z.ZodNumber;
422
+ source: z.ZodString;
423
+ displayLabel: z.ZodOptional<z.ZodString>;
424
+ usage: z.ZodObject<{
425
+ windows: z.ZodArray<z.ZodObject<{
426
+ key: z.ZodString;
427
+ label: z.ZodString;
428
+ usedPercentage: z.ZodNumber;
429
+ resetsAt: z.ZodOptional<z.ZodNumber>;
430
+ }, z.core.$strip>>;
431
+ }, z.core.$strip>;
432
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
433
+ }, z.core.$strip>;
434
+ }, z.core.$strip>;
435
+ };
436
+ 'usage.snapshot': z.ZodObject<{
437
+ clientAccountId: z.ZodString;
438
+ clientId: z.ZodString;
439
+ observedAt: z.ZodNumber;
440
+ source: z.ZodString;
441
+ displayLabel: z.ZodOptional<z.ZodString>;
442
+ usage: z.ZodObject<{
443
+ windows: z.ZodArray<z.ZodObject<{
444
+ key: z.ZodString;
445
+ label: z.ZodString;
446
+ usedPercentage: z.ZodNumber;
447
+ resetsAt: z.ZodOptional<z.ZodNumber>;
448
+ }, z.core.$strip>>;
449
+ }, z.core.$strip>;
450
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
451
+ }, z.core.$strip>;
452
+ 'session.started': z.ZodObject<{
453
+ clientId: z.ZodString;
454
+ source: z.ZodString;
455
+ observedAt: z.ZodNumber;
456
+ sessionId: z.ZodOptional<z.ZodString>;
457
+ adapterSessionId: z.ZodOptional<z.ZodString>;
458
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
459
+ }, z.core.$strip>;
460
+ 'session.userPrompt.submitted': z.ZodObject<{
461
+ clientId: z.ZodString;
462
+ source: z.ZodString;
463
+ observedAt: z.ZodNumber;
464
+ sessionId: z.ZodOptional<z.ZodString>;
465
+ adapterSessionId: z.ZodOptional<z.ZodString>;
466
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
467
+ prompt: z.ZodOptional<z.ZodString>;
468
+ }, z.core.$strip>;
469
+ 'session.turn.started': z.ZodObject<{
470
+ clientId: z.ZodString;
471
+ source: z.ZodString;
472
+ observedAt: z.ZodNumber;
473
+ sessionId: z.ZodOptional<z.ZodString>;
474
+ adapterSessionId: z.ZodOptional<z.ZodString>;
475
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
476
+ }, z.core.$strip>;
477
+ 'session.turn.completed': z.ZodObject<{
478
+ clientId: z.ZodString;
479
+ source: z.ZodString;
480
+ observedAt: z.ZodNumber;
481
+ sessionId: z.ZodOptional<z.ZodString>;
482
+ adapterSessionId: z.ZodOptional<z.ZodString>;
483
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
484
+ }, z.core.$strip>;
485
+ 'session.tool.pre': z.ZodObject<{
486
+ clientId: z.ZodString;
487
+ source: z.ZodString;
488
+ observedAt: z.ZodNumber;
489
+ sessionId: z.ZodOptional<z.ZodString>;
490
+ adapterSessionId: z.ZodOptional<z.ZodString>;
491
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
492
+ toolName: z.ZodOptional<z.ZodString>;
493
+ toolCallId: z.ZodOptional<z.ZodString>;
494
+ }, z.core.$strip>;
495
+ 'session.tool.post': z.ZodObject<{
496
+ clientId: z.ZodString;
497
+ source: z.ZodString;
498
+ observedAt: z.ZodNumber;
499
+ sessionId: z.ZodOptional<z.ZodString>;
500
+ adapterSessionId: z.ZodOptional<z.ZodString>;
501
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
502
+ toolName: z.ZodOptional<z.ZodString>;
503
+ toolCallId: z.ZodOptional<z.ZodString>;
504
+ success: z.ZodOptional<z.ZodBoolean>;
505
+ }, z.core.$strip>;
506
+ 'wiring.list': {
507
+ request: z.ZodObject<{
508
+ clientId: z.ZodOptional<z.ZodString>;
509
+ projectDir: z.ZodOptional<z.ZodString>;
510
+ makaioCommand: z.ZodString;
511
+ }, z.core.$strip>;
512
+ response: z.ZodObject<{
513
+ results: z.ZodArray<z.ZodObject<{
514
+ clientId: z.ZodString;
515
+ entries: z.ZodArray<z.ZodObject<{
516
+ group: z.ZodString;
517
+ name: z.ZodString;
518
+ installed: z.ZodBoolean;
519
+ command: z.ZodString;
520
+ }, z.core.$strip>>;
521
+ }, z.core.$strip>>;
522
+ }, z.core.$strip>;
523
+ };
524
+ list: {
525
+ request: z.ZodObject<{
526
+ forceRefresh: z.ZodOptional<z.ZodBoolean>;
527
+ }, z.core.$strip>;
528
+ response: z.ZodObject<{
529
+ clients: z.ZodArray<z.ZodObject<{
530
+ clientId: z.ZodString;
531
+ installedVersions: z.ZodArray<z.ZodObject<{
532
+ version: z.ZodString;
533
+ installPath: z.ZodString;
534
+ installedAt: z.ZodNumber;
535
+ isActive: z.ZodBoolean;
536
+ }, z.core.$strip>>;
537
+ activeVersion: z.ZodNullable<z.ZodString>;
538
+ pinnedVersion: z.ZodString;
539
+ updateAvailable: z.ZodBoolean;
540
+ }, z.core.$strict>>;
541
+ }, z.core.$strip>;
542
+ };
543
+ install: {
544
+ request: z.ZodObject<{
545
+ clientId: z.ZodString;
546
+ version: z.ZodOptional<z.ZodString>;
547
+ }, z.core.$strip>;
548
+ response: z.ZodObject<{
549
+ jobId: z.ZodString;
550
+ requestedVersion: z.ZodNullable<z.ZodString>;
551
+ resolvedVersion: z.ZodNullable<z.ZodString>;
552
+ }, z.core.$strip>;
553
+ };
554
+ uninstall: {
555
+ request: z.ZodObject<{
556
+ clientId: z.ZodString;
557
+ version: z.ZodString;
558
+ }, z.core.$strip>;
559
+ response: z.ZodObject<{
560
+ clientId: z.ZodString;
561
+ removedVersion: z.ZodString;
562
+ activeVersion: z.ZodNullable<z.ZodString>;
563
+ }, z.core.$strip>;
564
+ };
565
+ update: {
566
+ request: z.ZodObject<{
567
+ clientId: z.ZodString;
568
+ }, z.core.$strip>;
569
+ response: z.ZodObject<{
570
+ jobId: z.ZodString;
571
+ resolvedVersion: z.ZodNullable<z.ZodString>;
572
+ }, z.core.$strip>;
573
+ };
574
+ setActive: {
575
+ request: z.ZodObject<{
576
+ clientId: z.ZodString;
577
+ version: z.ZodString;
578
+ }, z.core.$strip>;
579
+ response: z.ZodObject<{
580
+ clientId: z.ZodString;
581
+ activeVersion: z.ZodString;
582
+ }, z.core.$strip>;
583
+ };
584
+ 'installJob.progress': z.ZodObject<{
585
+ jobId: z.ZodString;
586
+ clientId: z.ZodString;
587
+ version: z.ZodOptional<z.ZodString>;
588
+ strategy: z.ZodEnum<{
589
+ npm: "npm";
590
+ "signed-binary-bucket": "signed-binary-bucket";
591
+ }>;
592
+ stage: z.ZodEnum<{
593
+ downloading: "downloading";
594
+ resolving: "resolving";
595
+ verifying: "verifying";
596
+ extracting: "extracting";
597
+ installing: "installing";
598
+ "post-install": "post-install";
599
+ activating: "activating";
600
+ }>;
601
+ progress: z.ZodNullable<z.ZodNumber>;
602
+ installPath: z.ZodOptional<z.ZodString>;
603
+ activeAfterCompletion: z.ZodOptional<z.ZodBoolean>;
604
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
605
+ }, z.core.$strip>;
606
+ 'installJob.completed': z.ZodObject<{
607
+ jobId: z.ZodString;
608
+ clientId: z.ZodString;
609
+ version: z.ZodOptional<z.ZodString>;
610
+ strategy: z.ZodEnum<{
611
+ npm: "npm";
612
+ "signed-binary-bucket": "signed-binary-bucket";
613
+ }>;
614
+ status: z.ZodEnum<{
615
+ success: "success";
616
+ error: "error";
617
+ }>;
618
+ installPath: z.ZodOptional<z.ZodString>;
619
+ activeVersion: z.ZodNullable<z.ZodString>;
620
+ error: z.ZodOptional<z.ZodObject<{
621
+ message: z.ZodString;
622
+ code: z.ZodOptional<z.ZodString>;
623
+ }, z.core.$strip>>;
624
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
625
+ }, z.core.$strip>;
626
+ 'version.changed': z.ZodObject<{
627
+ clientId: z.ZodString;
628
+ previousActiveVersion: z.ZodNullable<z.ZodString>;
629
+ activeVersion: z.ZodNullable<z.ZodString>;
630
+ reason: z.ZodEnum<{
631
+ update: "update";
632
+ install: "install";
633
+ uninstall: "uninstall";
634
+ "set-active": "set-active";
635
+ }>;
636
+ }, z.core.$strip>;
637
+ resolveBinary: {
638
+ request: z.ZodObject<{
639
+ clientId: z.ZodString;
640
+ sessionId: z.ZodOptional<z.ZodString>;
641
+ projectDir: z.ZodOptional<z.ZodString>;
642
+ preferSource: z.ZodOptional<z.ZodEnum<{
643
+ global: "global";
644
+ managed: "managed";
645
+ }>>;
646
+ harnessId: z.ZodOptional<z.ZodString>;
647
+ }, z.core.$strip>;
648
+ response: z.ZodObject<{
649
+ binaryPath: z.ZodNullable<z.ZodString>;
650
+ env: z.ZodRecord<z.ZodString, z.ZodString>;
651
+ configDir: z.ZodNullable<z.ZodString>;
652
+ source: z.ZodEnum<{
653
+ global: "global";
654
+ managed: "managed";
655
+ }>;
656
+ version: z.ZodNullable<z.ZodString>;
657
+ }, z.core.$strip>;
658
+ };
659
+ };
660
+ //#endregion
661
+ //#region core/contracts/src/client/account-identity.d.ts
662
+ /**
663
+ * Strength classification for a client account identifier.
664
+ */
665
+ declare const ClientIdentifierStrengthSchema: z.ZodEnum<{
666
+ strong: "strong";
667
+ alias: "alias";
668
+ }>;
669
+ type ClientIdentifierStrength = z.infer<typeof ClientIdentifierStrengthSchema>;
670
+ /**
671
+ * A canonical or derived identifier for a client account.
672
+ */
673
+ declare const ClientAccountIdentifierSchema: z.ZodObject<{
674
+ scheme: z.ZodString;
675
+ value: z.ZodString;
676
+ strength: z.ZodEnum<{
677
+ strong: "strong";
678
+ alias: "alias";
679
+ }>;
680
+ }, z.core.$strip>;
681
+ type ClientAccountIdentifier = z.infer<typeof ClientAccountIdentifierSchema>;
682
+ /**
683
+ * A normalized usage window for a client account.
684
+ */
685
+ declare const ClientUsageWindowSchema: z.ZodObject<{
686
+ key: z.ZodString;
687
+ label: z.ZodString;
688
+ usedPercentage: z.ZodNumber;
689
+ resetsAt: z.ZodOptional<z.ZodNumber>;
690
+ }, z.core.$strip>;
691
+ type ClientUsageWindow = z.infer<typeof ClientUsageWindowSchema>;
692
+ /**
693
+ * The usage windows container shared by snapshot and ingest schemas.
694
+ */
695
+ declare const ClientUsageWindowsSchema: z.ZodObject<{
696
+ windows: z.ZodArray<z.ZodObject<{
697
+ key: z.ZodString;
698
+ label: z.ZodString;
699
+ usedPercentage: z.ZodNumber;
700
+ resetsAt: z.ZodOptional<z.ZodNumber>;
701
+ }, z.core.$strip>>;
702
+ }, z.core.$strip>;
703
+ type ClientUsageWindows = z.infer<typeof ClientUsageWindowsSchema>;
704
+ /**
705
+ * Open metadata map shared by client account and usage contracts.
706
+ */
707
+ declare const ClientMetadataSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
708
+ /**
709
+ * A detected client binary scan result.
710
+ */
711
+ declare const ClientScanResultSchema: z.ZodObject<{
712
+ clientId: z.ZodString;
713
+ found: z.ZodBoolean;
714
+ version: z.ZodOptional<z.ZodString>;
715
+ warningMessage: z.ZodOptional<z.ZodString>;
716
+ }, z.core.$strip>;
717
+ type ClientScanResult = z.infer<typeof ClientScanResultSchema>;
718
+ /**
719
+ * Explicit CLI scan target supplied by callers that already resolved clients.
720
+ *
721
+ * `binaryName` is the resolved executable name for PATH lookup — kept as a
722
+ * flat field because this is a resolved scan parameter, not a definition
723
+ * shape. `supportedVersions` is the semver range used to validate the
724
+ * detected binary version.
725
+ */
726
+ declare const ClientScanTargetSchema: z.ZodObject<{
727
+ clientId: z.ZodString;
728
+ binaryName: z.ZodString;
729
+ supportedVersions: z.ZodOptional<z.ZodString>;
730
+ }, z.core.$strip>;
731
+ type ClientScanTarget = z.infer<typeof ClientScanTargetSchema>;
732
+ /**
733
+ * Canonical usage snapshot emitted after stitching identity and usage.
734
+ */
735
+ declare const ClientUsageSnapshotSchema: z.ZodObject<{
736
+ clientAccountId: z.ZodString;
737
+ clientId: z.ZodString;
738
+ observedAt: z.ZodNumber;
739
+ source: z.ZodString;
740
+ displayLabel: z.ZodOptional<z.ZodString>;
741
+ usage: z.ZodObject<{
742
+ windows: z.ZodArray<z.ZodObject<{
743
+ key: z.ZodString;
744
+ label: z.ZodString;
745
+ usedPercentage: z.ZodNumber;
746
+ resetsAt: z.ZodOptional<z.ZodNumber>;
747
+ }, z.core.$strip>>;
748
+ }, z.core.$strip>;
749
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
750
+ }, z.core.$strip>;
751
+ type ClientUsageSnapshot = z.infer<typeof ClientUsageSnapshotSchema>;
752
+ /**
753
+ * Session locator used to correlate an observation to a session.
754
+ */
755
+ declare const ClientSessionLocatorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
756
+ kind: z.ZodLiteral<"session">;
757
+ sessionId: z.ZodString;
758
+ }, z.core.$strip>, z.ZodObject<{
759
+ kind: z.ZodLiteral<"adapter-session">;
760
+ adapterSessionId: z.ZodString;
761
+ }, z.core.$strip>, z.ZodObject<{
762
+ kind: z.ZodLiteral<"both">;
763
+ sessionId: z.ZodString;
764
+ adapterSessionId: z.ZodString;
765
+ }, z.core.$strip>], "kind">;
766
+ type ClientSessionLocator = z.infer<typeof ClientSessionLocatorSchema>;
767
+ /**
768
+ * Raw client identity observation captured from a client runtime.
769
+ *
770
+ * These top-level fields stay syntactically permissive because adapters capture
771
+ * raw client evidence before canonical account-linking normalizes it. The
772
+ * persisted payload shape is still constrained to JSON so storage/event seams
773
+ * can safely serialize and snapshot observations.
774
+ */
775
+ declare const ClientIdentityObservationSchema: z.ZodObject<{
776
+ clientId: z.ZodString;
777
+ source: z.ZodString;
778
+ kind: z.ZodString;
779
+ observedAt: z.ZodNumber;
780
+ payload: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
781
+ }, z.core.$strip>;
782
+ type ClientIdentityObservation = z.infer<typeof ClientIdentityObservationSchema>;
783
+ /**
784
+ * Request and response schemas for client.account.observe.
785
+ */
786
+ declare const ClientAccountObserveSchema: {
787
+ request: z.ZodObject<{
788
+ clientId: z.ZodString;
789
+ observedAt: z.ZodOptional<z.ZodNumber>;
790
+ displayLabel: z.ZodOptional<z.ZodString>;
791
+ identifiers: z.ZodArray<z.ZodObject<{
792
+ scheme: z.ZodString;
793
+ value: z.ZodString;
794
+ strength: z.ZodEnum<{
795
+ strong: "strong";
796
+ alias: "alias";
797
+ }>;
798
+ }, z.core.$strip>>;
799
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
800
+ }, z.core.$strip>;
801
+ response: z.ZodObject<{
802
+ clientAccountId: z.ZodString;
803
+ displayLabel: z.ZodOptional<z.ZodString>;
804
+ }, z.core.$strip>;
805
+ };
806
+ type ClientAccountObserveRequest = z.infer<typeof ClientAccountObserveSchema.request>;
807
+ type ClientAccountObserveResponse = z.infer<typeof ClientAccountObserveSchema.response>;
808
+ /**
809
+ * Request and response schemas for client.session.account.observe.
810
+ */
811
+ declare const ClientSessionAccountObserveSchema: {
812
+ request: z.ZodObject<{
813
+ clientId: z.ZodString;
814
+ source: z.ZodString;
815
+ kind: z.ZodString;
816
+ observedAt: z.ZodNumber;
817
+ payload: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
818
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
819
+ kind: z.ZodLiteral<"session">;
820
+ sessionId: z.ZodString;
821
+ }, z.core.$strip>, z.ZodObject<{
822
+ kind: z.ZodLiteral<"adapter-session">;
823
+ adapterSessionId: z.ZodString;
824
+ }, z.core.$strip>, z.ZodObject<{
825
+ kind: z.ZodLiteral<"both">;
826
+ sessionId: z.ZodString;
827
+ adapterSessionId: z.ZodString;
828
+ }, z.core.$strip>], "kind">;
829
+ }, z.core.$strip>;
830
+ response: z.ZodObject<{
831
+ handled: z.ZodBoolean;
832
+ sessionId: z.ZodNullable<z.ZodString>;
833
+ clientAccountId: z.ZodNullable<z.ZodString>;
834
+ changed: z.ZodBoolean;
835
+ }, z.core.$strip>;
836
+ };
837
+ type ClientSessionAccountObserveRequest = z.infer<typeof ClientSessionAccountObserveSchema.request>;
838
+ type ClientSessionAccountObserveResponse = z.infer<typeof ClientSessionAccountObserveSchema.response>;
839
+ /**
840
+ * Request and response schemas for client.usage.ingest.
841
+ */
842
+ declare const ClientUsageIngestSchema: {
843
+ request: z.ZodObject<{
844
+ clientId: z.ZodString;
845
+ observedAt: z.ZodNumber;
846
+ source: z.ZodString;
847
+ account: z.ZodObject<{
848
+ displayLabel: z.ZodOptional<z.ZodString>;
849
+ identifiers: z.ZodArray<z.ZodObject<{
850
+ scheme: z.ZodString;
851
+ value: z.ZodString;
852
+ strength: z.ZodEnum<{
853
+ strong: "strong";
854
+ alias: "alias";
855
+ }>;
856
+ }, z.core.$strip>>;
857
+ }, z.core.$strip>;
858
+ usage: z.ZodObject<{
859
+ windows: z.ZodArray<z.ZodObject<{
860
+ key: z.ZodString;
861
+ label: z.ZodString;
862
+ usedPercentage: z.ZodNumber;
863
+ resetsAt: z.ZodOptional<z.ZodNumber>;
864
+ }, z.core.$strip>>;
865
+ }, z.core.$strip>;
866
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
867
+ }, z.core.$strip>;
868
+ response: z.ZodObject<{
869
+ clientAccountId: z.ZodString;
870
+ snapshot: z.ZodObject<{
871
+ clientAccountId: z.ZodString;
872
+ clientId: z.ZodString;
873
+ observedAt: z.ZodNumber;
874
+ source: z.ZodString;
875
+ displayLabel: z.ZodOptional<z.ZodString>;
876
+ usage: z.ZodObject<{
877
+ windows: z.ZodArray<z.ZodObject<{
878
+ key: z.ZodString;
879
+ label: z.ZodString;
880
+ usedPercentage: z.ZodNumber;
881
+ resetsAt: z.ZodOptional<z.ZodNumber>;
882
+ }, z.core.$strip>>;
883
+ }, z.core.$strip>;
884
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
885
+ }, z.core.$strip>;
886
+ }, z.core.$strip>;
887
+ };
888
+ type ClientUsageIngestRequest = z.infer<typeof ClientUsageIngestSchema.request>;
889
+ type ClientUsageIngestResponse = z.infer<typeof ClientUsageIngestSchema.response>;
890
+ //#endregion
891
+ //#region core/contracts/src/client/binary-management.d.ts
892
+ /**
893
+ * Install strategies that Makaio supports for managed client binaries.
894
+ *
895
+ * - `npm` — npm registry installation with an exact version pin.
896
+ * - `signed-binary-bucket` — signed static bucket download with an exact version pin.
897
+ */
898
+ declare const ManagedInstallStrategySchema: z.ZodEnum<{
899
+ npm: "npm";
900
+ "signed-binary-bucket": "signed-binary-bucket";
901
+ }>;
902
+ type ManagedInstallStrategy = z.infer<typeof ManagedInstallStrategySchema>;
903
+ /**
904
+ * A single installed version entry for a managed client binary.
905
+ */
906
+ declare const InstalledVersionEntrySchema: z.ZodObject<{
907
+ version: z.ZodString;
908
+ installPath: z.ZodString;
909
+ installedAt: z.ZodNumber;
910
+ isActive: z.ZodBoolean;
911
+ }, z.core.$strip>;
912
+ type InstalledVersionEntry = z.infer<typeof InstalledVersionEntrySchema>;
913
+ /**
914
+ * Summary row for a single client in a `client.list` response.
915
+ */
916
+ declare const ClientBinaryListEntrySchema: z.ZodObject<{
917
+ clientId: z.ZodString;
918
+ installedVersions: z.ZodArray<z.ZodObject<{
919
+ version: z.ZodString;
920
+ installPath: z.ZodString;
921
+ installedAt: z.ZodNumber;
922
+ isActive: z.ZodBoolean;
923
+ }, z.core.$strip>>;
924
+ activeVersion: z.ZodNullable<z.ZodString>;
925
+ pinnedVersion: z.ZodString;
926
+ updateAvailable: z.ZodBoolean;
927
+ }, z.core.$strict>;
928
+ type ClientBinaryListEntry = z.infer<typeof ClientBinaryListEntrySchema>;
929
+ /**
930
+ * Request and response schemas for `client.list`.
931
+ *
932
+ * Returns the local installation inventory for all managed clients, including
933
+ * their pinned version and whether the active version matches the current pin.
934
+ */
935
+ declare const ClientListSchema: {
936
+ request: z.ZodObject<{
937
+ forceRefresh: z.ZodOptional<z.ZodBoolean>;
938
+ }, z.core.$strip>;
939
+ response: z.ZodObject<{
940
+ clients: z.ZodArray<z.ZodObject<{
941
+ clientId: z.ZodString;
942
+ installedVersions: z.ZodArray<z.ZodObject<{
943
+ version: z.ZodString;
944
+ installPath: z.ZodString;
945
+ installedAt: z.ZodNumber;
946
+ isActive: z.ZodBoolean;
947
+ }, z.core.$strip>>;
948
+ activeVersion: z.ZodNullable<z.ZodString>;
949
+ pinnedVersion: z.ZodString;
950
+ updateAvailable: z.ZodBoolean;
951
+ }, z.core.$strict>>;
952
+ }, z.core.$strip>;
953
+ };
954
+ type ClientListRequest = z.infer<typeof ClientListSchema.request>;
955
+ type ClientListResponse = z.infer<typeof ClientListSchema.response>;
956
+ /**
957
+ * Request and response schemas for `client.install`.
958
+ *
959
+ * Enqueues a background install job for a managed client binary.
960
+ * Callers can track progress via `client.installJob.progress` and
961
+ * `client.installJob.completed` events using the returned `jobId`.
962
+ */
963
+ declare const ClientInstallSchema: {
964
+ request: z.ZodObject<{
965
+ clientId: z.ZodString;
966
+ version: z.ZodOptional<z.ZodString>;
967
+ }, z.core.$strip>;
968
+ response: z.ZodObject<{
969
+ jobId: z.ZodString;
970
+ requestedVersion: z.ZodNullable<z.ZodString>;
971
+ resolvedVersion: z.ZodNullable<z.ZodString>;
972
+ }, z.core.$strip>;
973
+ };
974
+ type ClientInstallRequest = z.infer<typeof ClientInstallSchema.request>;
975
+ type ClientInstallResponse = z.infer<typeof ClientInstallSchema.response>;
976
+ /**
977
+ * Request and response schemas for `client.uninstall`.
978
+ *
979
+ * Removes a specific installed version of a managed client binary.
980
+ * If the removed version was active, the active pointer is cleared to `null`
981
+ * — no automatic replacement is made. Callers must explicitly call
982
+ * `client.setActive` to promote another installed version.
983
+ */
984
+ declare const ClientUninstallSchema: {
985
+ request: z.ZodObject<{
986
+ clientId: z.ZodString;
987
+ version: z.ZodString;
988
+ }, z.core.$strip>;
989
+ response: z.ZodObject<{
990
+ clientId: z.ZodString;
991
+ removedVersion: z.ZodString;
992
+ activeVersion: z.ZodNullable<z.ZodString>;
993
+ }, z.core.$strip>;
994
+ };
995
+ type ClientUninstallRequest = z.infer<typeof ClientUninstallSchema.request>;
996
+ type ClientUninstallResponse = z.infer<typeof ClientUninstallSchema.response>;
997
+ /**
998
+ * Request and response schemas for `client.update`.
999
+ *
1000
+ * Enqueues an update job that installs the client package pin and activates it.
1001
+ * Callers can track progress via `client.installJob.progress` and
1002
+ * `client.installJob.completed` events using the returned `jobId`.
1003
+ */
1004
+ declare const ClientUpdateSchema: {
1005
+ request: z.ZodObject<{
1006
+ clientId: z.ZodString;
1007
+ }, z.core.$strip>;
1008
+ response: z.ZodObject<{
1009
+ jobId: z.ZodString;
1010
+ resolvedVersion: z.ZodNullable<z.ZodString>;
1011
+ }, z.core.$strip>;
1012
+ };
1013
+ type ClientUpdateRequest = z.infer<typeof ClientUpdateSchema.request>;
1014
+ type ClientUpdateResponse = z.infer<typeof ClientUpdateSchema.response>;
1015
+ /**
1016
+ * Request and response schemas for `client.setActive`.
1017
+ *
1018
+ * Switches the active binary pointer to an already-installed version.
1019
+ * The requested version must be present on disk; the handler will reject
1020
+ * requests for versions that have not been installed.
1021
+ */
1022
+ declare const ClientSetActiveSchema: {
1023
+ request: z.ZodObject<{
1024
+ clientId: z.ZodString;
1025
+ version: z.ZodString;
1026
+ }, z.core.$strip>;
1027
+ response: z.ZodObject<{
1028
+ clientId: z.ZodString;
1029
+ activeVersion: z.ZodString;
1030
+ }, z.core.$strip>;
1031
+ };
1032
+ type ClientSetActiveRequest = z.infer<typeof ClientSetActiveSchema.request>;
1033
+ type ClientSetActiveResponse = z.infer<typeof ClientSetActiveSchema.response>;
1034
+ /**
1035
+ * Install pipeline stage identifiers, ordered by progression.
1036
+ *
1037
+ * - `'resolving'` — determining the concrete version to install.
1038
+ * - `'downloading'` — fetching the binary archive from upstream.
1039
+ * - `'verifying'` — validating checksums, signatures, or installed binary version.
1040
+ * - `'extracting'` — unpacking the downloaded archive.
1041
+ * - `'installing'` — writing the binary to its final install path.
1042
+ * - `'post-install'` — running post-install hooks.
1043
+ * - `'activating'` — marking the installed version as active.
1044
+ */
1045
+ declare const InstallStageSchema: z.ZodEnum<{
1046
+ downloading: "downloading";
1047
+ resolving: "resolving";
1048
+ verifying: "verifying";
1049
+ extracting: "extracting";
1050
+ installing: "installing";
1051
+ "post-install": "post-install";
1052
+ activating: "activating";
1053
+ }>;
1054
+ type InstallStage = z.infer<typeof InstallStageSchema>;
1055
+ /**
1056
+ * Event payload for `client.installJob.progress`.
1057
+ *
1058
+ * Emitted by the install job runner at each pipeline stage transition and
1059
+ * whenever the download progress percentage changes materially.
1060
+ */
1061
+ declare const ClientInstallProgressSchema: z.ZodObject<{
1062
+ jobId: z.ZodString;
1063
+ clientId: z.ZodString;
1064
+ version: z.ZodOptional<z.ZodString>;
1065
+ strategy: z.ZodEnum<{
1066
+ npm: "npm";
1067
+ "signed-binary-bucket": "signed-binary-bucket";
1068
+ }>;
1069
+ stage: z.ZodEnum<{
1070
+ downloading: "downloading";
1071
+ resolving: "resolving";
1072
+ verifying: "verifying";
1073
+ extracting: "extracting";
1074
+ installing: "installing";
1075
+ "post-install": "post-install";
1076
+ activating: "activating";
1077
+ }>;
1078
+ progress: z.ZodNullable<z.ZodNumber>;
1079
+ installPath: z.ZodOptional<z.ZodString>;
1080
+ activeAfterCompletion: z.ZodOptional<z.ZodBoolean>;
1081
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1082
+ }, z.core.$strip>;
1083
+ type ClientInstallProgress = z.infer<typeof ClientInstallProgressSchema>;
1084
+ /**
1085
+ * Terminal install error descriptor emitted in `client.installJob.completed`
1086
+ * when the job ends in failure.
1087
+ */
1088
+ declare const InstallErrorSchema: z.ZodObject<{
1089
+ message: z.ZodString;
1090
+ code: z.ZodOptional<z.ZodString>;
1091
+ }, z.core.$strip>;
1092
+ type InstallError = z.infer<typeof InstallErrorSchema>;
1093
+ /**
1094
+ * Event payload for `client.installJob.completed`.
1095
+ *
1096
+ * Emitted once by the install job runner when the pipeline finishes,
1097
+ * regardless of outcome. Listeners should check `status` before acting.
1098
+ */
1099
+ declare const ClientInstallCompletedSchema: z.ZodObject<{
1100
+ jobId: z.ZodString;
1101
+ clientId: z.ZodString;
1102
+ version: z.ZodOptional<z.ZodString>;
1103
+ strategy: z.ZodEnum<{
1104
+ npm: "npm";
1105
+ "signed-binary-bucket": "signed-binary-bucket";
1106
+ }>;
1107
+ status: z.ZodEnum<{
1108
+ success: "success";
1109
+ error: "error";
1110
+ }>;
1111
+ installPath: z.ZodOptional<z.ZodString>;
1112
+ activeVersion: z.ZodNullable<z.ZodString>;
1113
+ error: z.ZodOptional<z.ZodObject<{
1114
+ message: z.ZodString;
1115
+ code: z.ZodOptional<z.ZodString>;
1116
+ }, z.core.$strip>>;
1117
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1118
+ }, z.core.$strip>;
1119
+ type ClientInstallCompleted = z.infer<typeof ClientInstallCompletedSchema>;
1120
+ /**
1121
+ * Event payload for `client.version.changed`.
1122
+ *
1123
+ * Emitted whenever the active-version pointer for a managed client changes,
1124
+ * regardless of the operation that caused the change.
1125
+ */
1126
+ declare const ClientVersionChangedSchema: z.ZodObject<{
1127
+ clientId: z.ZodString;
1128
+ previousActiveVersion: z.ZodNullable<z.ZodString>;
1129
+ activeVersion: z.ZodNullable<z.ZodString>;
1130
+ reason: z.ZodEnum<{
1131
+ update: "update";
1132
+ install: "install";
1133
+ uninstall: "uninstall";
1134
+ "set-active": "set-active";
1135
+ }>;
1136
+ }, z.core.$strip>;
1137
+ type ClientVersionChanged = z.infer<typeof ClientVersionChangedSchema>;
1138
+ //#endregion
1139
+ //#region core/contracts/src/client/runtime-observation.d.ts
1140
+ /**
1141
+ * Source layer classification for a runtime observation.
1142
+ *
1143
+ * Identifies the component that produced the observation signal:
1144
+ * - `'supervisor'` — the Makaio supervisor process directly detected the runtime
1145
+ * - `'adapter'` — a client adapter emitted the signal from the adapter layer
1146
+ * - `'client-hook'` — a native client hook (e.g. PostToolUse) produced the signal
1147
+ * - `'statusline'` — a statusline / process-watcher scraper detected the runtime
1148
+ * - `'cli-wrapper'` — a thin CLI shim wrapping the client binary reported the signal
1149
+ */
1150
+ declare const ClientRuntimeSourceLayerSchema: z.ZodEnum<{
1151
+ adapter: "adapter";
1152
+ supervisor: "supervisor";
1153
+ "client-hook": "client-hook";
1154
+ statusline: "statusline";
1155
+ "cli-wrapper": "cli-wrapper";
1156
+ }>;
1157
+ type ClientRuntimeSourceLayer = z.infer<typeof ClientRuntimeSourceLayerSchema>;
1158
+ /**
1159
+ * Source descriptor identifying what produced a runtime observation.
1160
+ *
1161
+ * - `layer` — high-level component classification (see {@link ClientRuntimeSourceLayerSchema}).
1162
+ * - `producer` — stable producer identifier within that layer (e.g. `'claude-code-adapter'`).
1163
+ */
1164
+ declare const ClientRuntimeSourceSchema: z.ZodObject<{
1165
+ layer: z.ZodEnum<{
1166
+ adapter: "adapter";
1167
+ supervisor: "supervisor";
1168
+ "client-hook": "client-hook";
1169
+ statusline: "statusline";
1170
+ "cli-wrapper": "cli-wrapper";
1171
+ }>;
1172
+ producer: z.ZodString;
1173
+ }, z.core.$strip>;
1174
+ type ClientRuntimeSource = z.infer<typeof ClientRuntimeSourceSchema>;
1175
+ /**
1176
+ * Shared runtime evidence fields that appear in both the `client.runtime.observe`
1177
+ * request and the `client.runtime.started` event.
1178
+ *
1179
+ * At least one of `supervisorSessionId`, `pid`, or `adapterSessionId` must be
1180
+ * present ("hard evidence" invariant). This constraint is enforced via `.refine()`
1181
+ * on the terminal request schema, not on this base, so the base stays composable.
1182
+ *
1183
+ * Fields:
1184
+ * - `supervisorSessionId` — supervisor-assigned session ID, when available.
1185
+ * - `pid` — OS process ID of the client binary.
1186
+ * - `parentPid` — OS process ID of the parent process.
1187
+ * - `adapterSessionId` — raw session ID from the client runtime.
1188
+ * - `sessionId` — framework session ID, if already resolved.
1189
+ * - `cwd` — working directory of the client process.
1190
+ * - `argv` — argv of the client process.
1191
+ * - `metadata` — arbitrary pass-through data from the producer.
1192
+ */
1193
+ declare const ClientRuntimeEvidenceBaseSchema: z.ZodObject<{
1194
+ supervisorSessionId: z.ZodOptional<z.ZodString>;
1195
+ pid: z.ZodOptional<z.ZodNumber>;
1196
+ parentPid: z.ZodOptional<z.ZodNumber>;
1197
+ adapterSessionId: z.ZodOptional<z.ZodString>;
1198
+ sessionId: z.ZodOptional<z.ZodString>;
1199
+ cwd: z.ZodOptional<z.ZodString>;
1200
+ argv: z.ZodOptional<z.ZodArray<z.ZodString>>;
1201
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1202
+ }, z.core.$strip>;
1203
+ type ClientRuntimeEvidenceBase = z.infer<typeof ClientRuntimeEvidenceBaseSchema>;
1204
+ /**
1205
+ * Request and response schemas for `client.runtime.observe`.
1206
+ *
1207
+ * Callers send this request when they detect that a client runtime has started.
1208
+ * The handler upserts a `ClientRuntime` record and returns a stable
1209
+ * `clientRuntimeId` together with flags indicating whether the record was
1210
+ * created or promoted to a richer state.
1211
+ *
1212
+ * Hard-evidence invariant: at least one of `supervisorSessionId`, `pid`, or
1213
+ * `adapterSessionId` must be present. Enforced via `.refine()` on the request
1214
+ * schema (not on the shared evidence base, which stays composable).
1215
+ */
1216
+ declare const ClientRuntimeObserveSchema: {
1217
+ request: z.ZodObject<{
1218
+ clientId: z.ZodString;
1219
+ source: z.ZodObject<{
1220
+ layer: z.ZodEnum<{
1221
+ adapter: "adapter";
1222
+ supervisor: "supervisor";
1223
+ "client-hook": "client-hook";
1224
+ statusline: "statusline";
1225
+ "cli-wrapper": "cli-wrapper";
1226
+ }>;
1227
+ producer: z.ZodString;
1228
+ }, z.core.$strip>;
1229
+ observedAt: z.ZodNumber;
1230
+ supervisorSessionId: z.ZodOptional<z.ZodString>;
1231
+ pid: z.ZodOptional<z.ZodNumber>;
1232
+ parentPid: z.ZodOptional<z.ZodNumber>;
1233
+ adapterSessionId: z.ZodOptional<z.ZodString>;
1234
+ sessionId: z.ZodOptional<z.ZodString>;
1235
+ cwd: z.ZodOptional<z.ZodString>;
1236
+ argv: z.ZodOptional<z.ZodArray<z.ZodString>>;
1237
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1238
+ }, z.core.$strip>;
1239
+ response: z.ZodObject<{
1240
+ clientRuntimeId: z.ZodString;
1241
+ created: z.ZodBoolean;
1242
+ promoted: z.ZodBoolean;
1243
+ }, z.core.$strip>;
1244
+ };
1245
+ type ClientRuntimeObserveRequest = z.infer<typeof ClientRuntimeObserveSchema.request>;
1246
+ type ClientRuntimeObserveResponse = z.infer<typeof ClientRuntimeObserveSchema.response>;
1247
+ /**
1248
+ * Payload for `client.runtime.started`.
1249
+ *
1250
+ * Emitted by the runtime-observe service after a `client.runtime.observe` request
1251
+ * has been handled and a runtime record has been created or confirmed. Listeners
1252
+ * can react to this event without coupling to the observe handler.
1253
+ *
1254
+ * Hard-evidence invariant: at least one of `supervisorSessionId`, `pid`, or
1255
+ * `adapterSessionId` is present (guaranteed by the observe handler before emit).
1256
+ */
1257
+ declare const ClientRuntimeStartedSchema: z.ZodObject<{
1258
+ supervisorSessionId: z.ZodOptional<z.ZodString>;
1259
+ pid: z.ZodOptional<z.ZodNumber>;
1260
+ parentPid: z.ZodOptional<z.ZodNumber>;
1261
+ adapterSessionId: z.ZodOptional<z.ZodString>;
1262
+ sessionId: z.ZodOptional<z.ZodString>;
1263
+ cwd: z.ZodOptional<z.ZodString>;
1264
+ argv: z.ZodOptional<z.ZodArray<z.ZodString>>;
1265
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1266
+ clientRuntimeId: z.ZodString;
1267
+ clientId: z.ZodString;
1268
+ status: z.ZodEnum<{
1269
+ started: "started";
1270
+ observed: "observed";
1271
+ }>;
1272
+ source: z.ZodObject<{
1273
+ layer: z.ZodEnum<{
1274
+ adapter: "adapter";
1275
+ supervisor: "supervisor";
1276
+ "client-hook": "client-hook";
1277
+ statusline: "statusline";
1278
+ "cli-wrapper": "cli-wrapper";
1279
+ }>;
1280
+ producer: z.ZodString;
1281
+ }, z.core.$strip>;
1282
+ observedAt: z.ZodNumber;
1283
+ }, z.core.$strip>;
1284
+ type ClientRuntimeStarted = z.infer<typeof ClientRuntimeStartedSchema>;
1285
+ //#endregion
1286
+ //#region core/contracts/src/client/session-observed.d.ts
1287
+ /**
1288
+ * Shared base payload for all `client.session.*` observed-semantics events.
1289
+ *
1290
+ * These events are emitted by client adapters when they observe lifecycle
1291
+ * signals from the underlying client runtime. They are **not** control
1292
+ * messages — they carry normalized observations forwarded to the bus so
1293
+ * listeners can react without coupling to a specific adapter implementation.
1294
+ *
1295
+ * Fields:
1296
+ * - `clientId` — stable string ID of the client (e.g. `'claude-code'`).
1297
+ * - `source` — how the observation was captured (e.g. `'native-hook'`,
1298
+ * `'adapter-derived'`).
1299
+ * - `observedAt` — Unix epoch timestamp in milliseconds when the signal
1300
+ * was captured by the adapter.
1301
+ * - `sessionId` — framework session ID, if already resolved.
1302
+ * - `adapterSessionId` — raw session identifier from the client runtime,
1303
+ * if available.
1304
+ * - `metadata` — arbitrary pass-through data from the adapter.
1305
+ */
1306
+ declare const ClientSessionObservedBaseSchema: z.ZodObject<{
1307
+ clientId: z.ZodString;
1308
+ source: z.ZodString;
1309
+ observedAt: z.ZodNumber;
1310
+ sessionId: z.ZodOptional<z.ZodString>;
1311
+ adapterSessionId: z.ZodOptional<z.ZodString>;
1312
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1313
+ }, z.core.$strip>;
1314
+ type ClientSessionObservedBase = z.infer<typeof ClientSessionObservedBaseSchema>;
1315
+ /**
1316
+ * Payload for `client.session.started`.
1317
+ *
1318
+ * Emitted when an adapter observes that a new client session has begun.
1319
+ * This is a normalized observed signal — not a command. The session may not
1320
+ * yet be linked to a framework session at emission time.
1321
+ */
1322
+ declare const ClientSessionStartedSchema: z.ZodObject<{
1323
+ clientId: z.ZodString;
1324
+ source: z.ZodString;
1325
+ observedAt: z.ZodNumber;
1326
+ sessionId: z.ZodOptional<z.ZodString>;
1327
+ adapterSessionId: z.ZodOptional<z.ZodString>;
1328
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1329
+ }, z.core.$strip>;
1330
+ type ClientSessionStarted = z.infer<typeof ClientSessionStartedSchema>;
1331
+ /**
1332
+ * Payload for `client.session.userPrompt.submitted`.
1333
+ *
1334
+ * Emitted when an adapter observes that the user has submitted a prompt to
1335
+ * the client runtime. The `prompt` field carries the raw prompt text when
1336
+ * the adapter has access to it.
1337
+ */
1338
+ declare const ClientSessionUserPromptSubmittedSchema: z.ZodObject<{
1339
+ clientId: z.ZodString;
1340
+ source: z.ZodString;
1341
+ observedAt: z.ZodNumber;
1342
+ sessionId: z.ZodOptional<z.ZodString>;
1343
+ adapterSessionId: z.ZodOptional<z.ZodString>;
1344
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1345
+ prompt: z.ZodOptional<z.ZodString>;
1346
+ }, z.core.$strip>;
1347
+ type ClientSessionUserPromptSubmitted = z.infer<typeof ClientSessionUserPromptSubmittedSchema>;
1348
+ /**
1349
+ * Payload for `client.session.turn.started`.
1350
+ *
1351
+ * Emitted when an adapter observes the beginning of an assistant turn inside
1352
+ * an ongoing client session.
1353
+ */
1354
+ declare const ClientSessionTurnStartedSchema: z.ZodObject<{
1355
+ clientId: z.ZodString;
1356
+ source: z.ZodString;
1357
+ observedAt: z.ZodNumber;
1358
+ sessionId: z.ZodOptional<z.ZodString>;
1359
+ adapterSessionId: z.ZodOptional<z.ZodString>;
1360
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1361
+ }, z.core.$strip>;
1362
+ type ClientSessionTurnStarted = z.infer<typeof ClientSessionTurnStartedSchema>;
1363
+ /**
1364
+ * Payload for `client.session.turn.completed`.
1365
+ *
1366
+ * Emitted when an adapter observes that an assistant turn has finished inside
1367
+ * an ongoing client session.
1368
+ */
1369
+ declare const ClientSessionTurnCompletedSchema: z.ZodObject<{
1370
+ clientId: z.ZodString;
1371
+ source: z.ZodString;
1372
+ observedAt: z.ZodNumber;
1373
+ sessionId: z.ZodOptional<z.ZodString>;
1374
+ adapterSessionId: z.ZodOptional<z.ZodString>;
1375
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1376
+ }, z.core.$strip>;
1377
+ type ClientSessionTurnCompleted = z.infer<typeof ClientSessionTurnCompletedSchema>;
1378
+ /**
1379
+ * Payload for `client.session.tool.pre`.
1380
+ *
1381
+ * Emitted when an adapter observes that a tool call is about to be executed
1382
+ * by the client runtime. The `toolName` and `toolCallId` fields identify the
1383
+ * specific invocation when the adapter has access to them.
1384
+ */
1385
+ declare const ClientSessionToolPreSchema: z.ZodObject<{
1386
+ clientId: z.ZodString;
1387
+ source: z.ZodString;
1388
+ observedAt: z.ZodNumber;
1389
+ sessionId: z.ZodOptional<z.ZodString>;
1390
+ adapterSessionId: z.ZodOptional<z.ZodString>;
1391
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1392
+ toolName: z.ZodOptional<z.ZodString>;
1393
+ toolCallId: z.ZodOptional<z.ZodString>;
1394
+ }, z.core.$strip>;
1395
+ type ClientSessionToolPre = z.infer<typeof ClientSessionToolPreSchema>;
1396
+ /**
1397
+ * Payload for `client.session.tool.post`.
1398
+ *
1399
+ * Emitted when an adapter observes that a tool call has completed inside the
1400
+ * client runtime. The `success` field reflects the outcome when the adapter
1401
+ * can determine it.
1402
+ */
1403
+ declare const ClientSessionToolPostSchema: z.ZodObject<{
1404
+ clientId: z.ZodString;
1405
+ source: z.ZodString;
1406
+ observedAt: z.ZodNumber;
1407
+ sessionId: z.ZodOptional<z.ZodString>;
1408
+ adapterSessionId: z.ZodOptional<z.ZodString>;
1409
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1410
+ toolName: z.ZodOptional<z.ZodString>;
1411
+ toolCallId: z.ZodOptional<z.ZodString>;
1412
+ success: z.ZodOptional<z.ZodBoolean>;
1413
+ }, z.core.$strip>;
1414
+ type ClientSessionToolPost = z.infer<typeof ClientSessionToolPostSchema>;
1415
+ /**
1416
+ * A single wiring entry in a client `wiring.list` response.
1417
+ *
1418
+ * Represents one hook (or statusline) that Makaio can install into the
1419
+ * client's native config.
1420
+ */
1421
+ declare const ClientWiringEntrySchema: z.ZodObject<{
1422
+ group: z.ZodString;
1423
+ name: z.ZodString;
1424
+ installed: z.ZodBoolean;
1425
+ command: z.ZodString;
1426
+ }, z.core.$strip>;
1427
+ /** A single wiring entry in a list response. */
1428
+ type ClientWiringEntry = z.infer<typeof ClientWiringEntrySchema>;
1429
+ //#endregion
1430
+ //#region core/contracts/src/client/namespace.d.ts
1431
+ /**
1432
+ * Client namespace definition.
1433
+ *
1434
+ * Defines the global `client.*` namespace for scan, account observation
1435
+ * (`client.account.observe`, `client.account.activate`, `client.account.getActive`),
1436
+ * usage ingestion/snapshot, runtime observation (`client.runtime.observe`,
1437
+ * `client.runtime.started`), observed session semantics subjects
1438
+ * (`client.session.started`, `client.session.userPrompt.submitted`,
1439
+ * `client.session.turn.started`, `client.session.turn.completed`,
1440
+ * `client.session.tool.pre`, `client.session.tool.post`), the global
1441
+ * wiring aggregator (`client.wiring.list`), the binary management
1442
+ * subjects (`client.list`, `client.install`, `client.uninstall`,
1443
+ * `client.update`, `client.setActive`, `client.installJob.progress`,
1444
+ * `client.installJob.completed`, `client.version.changed`), the binary
1445
+ * resolution command (`client.resolveBinary`), the profile management
1446
+ * subjects (`client.profile.create`, `client.profile.list`,
1447
+ * `client.profile.get`, `client.profile.update`, `client.profile.delete`,
1448
+ * `client.profile.setDefault`), the session config lifecycle subjects
1449
+ * (`client.sessionConfig.create`, `client.sessionConfig.destroy`,
1450
+ * `client.sessionConfig.cleanup`), and the generic blocking config-prime
1451
+ * lifecycle hook (`client.config.prime`).
1452
+ * @packageDocumentation
1453
+ */
1454
+ /**
1455
+ * Client namespace definition under the `client` prefix.
1456
+ */
1457
+ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client", {
1458
+ 'config.prime': {
1459
+ request: _$zod.ZodObject<{
1460
+ clientId: _$zod.ZodString;
1461
+ configDir: _$zod.ZodString;
1462
+ phase: _$zod.ZodEnum<{
1463
+ "managed-install": "managed-install";
1464
+ "profile-create": "profile-create";
1465
+ "session-create": "session-create";
1466
+ }>;
1467
+ binaryVersion: _$zod.ZodOptional<_$zod.ZodString>;
1468
+ adapterName: _$zod.ZodOptional<_$zod.ZodString>;
1469
+ projectDir: _$zod.ZodOptional<_$zod.ZodString>;
1470
+ }, _$zod_v4_core0.$strip>;
1471
+ response: _$zod.ZodObject<{
1472
+ primed: _$zod.ZodBoolean;
1473
+ }, _$zod_v4_core0.$strip>;
1474
+ };
1475
+ 'sessionConfig.create': {
1476
+ request: _$zod.ZodObject<{
1477
+ clientId: _$zod.ZodString;
1478
+ sessionId: _$zod.ZodString;
1479
+ profileName: _$zod.ZodOptional<_$zod.ZodString>;
1480
+ baseConfigDir: _$zod.ZodOptional<_$zod.ZodString>;
1481
+ projectDir: _$zod.ZodOptional<_$zod.ZodString>;
1482
+ configInheritance: _$zod.ZodOptional<_$zod.ZodEnum<{
1483
+ full: "full";
1484
+ "auth-only": "auth-only";
1485
+ empty: "empty";
1486
+ }>>;
1487
+ }, _$zod_v4_core0.$strip>;
1488
+ response: _$zod.ZodObject<{
1489
+ sessionDir: _$zod.ZodString;
1490
+ env: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>;
1491
+ }, _$zod_v4_core0.$strip>;
1492
+ };
1493
+ 'sessionConfig.destroy': {
1494
+ request: _$zod.ZodObject<{
1495
+ clientId: _$zod.ZodString;
1496
+ sessionId: _$zod.ZodString;
1497
+ }, _$zod_v4_core0.$strip>;
1498
+ response: _$zod.ZodObject<{
1499
+ success: _$zod.ZodBoolean;
1500
+ }, _$zod_v4_core0.$strip>;
1501
+ };
1502
+ 'sessionConfig.cleanup': {
1503
+ request: _$zod.ZodObject<{
1504
+ clientId: _$zod.ZodOptional<_$zod.ZodString>;
1505
+ }, _$zod_v4_core0.$strip>;
1506
+ response: _$zod.ZodObject<{
1507
+ removed: _$zod.ZodArray<_$zod.ZodString>;
1508
+ }, _$zod_v4_core0.$strip>;
1509
+ };
1510
+ 'profile.create': {
1511
+ request: _$zod.ZodObject<{
1512
+ clientId: _$zod.ZodString;
1513
+ name: _$zod.ZodString;
1514
+ description: _$zod.ZodOptional<_$zod.ZodString>;
1515
+ }, _$zod_v4_core0.$strip>;
1516
+ response: _$zod.ZodObject<{
1517
+ profile: _$zod.ZodObject<{
1518
+ id: _$zod.ZodString;
1519
+ clientId: _$zod.ZodString;
1520
+ name: _$zod.ZodString;
1521
+ description: _$zod.ZodNullable<_$zod.ZodString>;
1522
+ configDir: _$zod.ZodString;
1523
+ isDefault: _$zod.ZodBoolean;
1524
+ createdAt: _$zod.ZodNumber;
1525
+ updatedAt: _$zod.ZodNumber;
1526
+ }, _$zod_v4_core0.$strip>;
1527
+ }, _$zod_v4_core0.$strip>;
1528
+ };
1529
+ 'profile.list': {
1530
+ request: _$zod.ZodObject<{
1531
+ clientId: _$zod.ZodString;
1532
+ }, _$zod_v4_core0.$strip>;
1533
+ response: _$zod.ZodObject<{
1534
+ profiles: _$zod.ZodArray<_$zod.ZodObject<{
1535
+ id: _$zod.ZodString;
1536
+ clientId: _$zod.ZodString;
1537
+ name: _$zod.ZodString;
1538
+ description: _$zod.ZodNullable<_$zod.ZodString>;
1539
+ configDir: _$zod.ZodString;
1540
+ isDefault: _$zod.ZodBoolean;
1541
+ createdAt: _$zod.ZodNumber;
1542
+ updatedAt: _$zod.ZodNumber;
1543
+ }, _$zod_v4_core0.$strip>>;
1544
+ }, _$zod_v4_core0.$strip>;
1545
+ };
1546
+ 'profile.get': {
1547
+ request: _$zod.ZodObject<{
1548
+ clientId: _$zod.ZodString;
1549
+ name: _$zod.ZodString;
1550
+ }, _$zod_v4_core0.$strip>;
1551
+ response: _$zod.ZodObject<{
1552
+ profile: _$zod.ZodNullable<_$zod.ZodObject<{
1553
+ id: _$zod.ZodString;
1554
+ clientId: _$zod.ZodString;
1555
+ name: _$zod.ZodString;
1556
+ description: _$zod.ZodNullable<_$zod.ZodString>;
1557
+ configDir: _$zod.ZodString;
1558
+ isDefault: _$zod.ZodBoolean;
1559
+ createdAt: _$zod.ZodNumber;
1560
+ updatedAt: _$zod.ZodNumber;
1561
+ }, _$zod_v4_core0.$strip>>;
1562
+ }, _$zod_v4_core0.$strip>;
1563
+ };
1564
+ 'profile.update': {
1565
+ request: _$zod.ZodObject<{
1566
+ clientId: _$zod.ZodString;
1567
+ name: _$zod.ZodString;
1568
+ description: _$zod.ZodOptional<_$zod.ZodString>;
1569
+ }, _$zod_v4_core0.$strip>;
1570
+ response: _$zod.ZodObject<{
1571
+ profile: _$zod.ZodObject<{
1572
+ id: _$zod.ZodString;
1573
+ clientId: _$zod.ZodString;
1574
+ name: _$zod.ZodString;
1575
+ description: _$zod.ZodNullable<_$zod.ZodString>;
1576
+ configDir: _$zod.ZodString;
1577
+ isDefault: _$zod.ZodBoolean;
1578
+ createdAt: _$zod.ZodNumber;
1579
+ updatedAt: _$zod.ZodNumber;
1580
+ }, _$zod_v4_core0.$strip>;
1581
+ }, _$zod_v4_core0.$strip>;
1582
+ };
1583
+ 'profile.delete': {
1584
+ request: _$zod.ZodObject<{
1585
+ clientId: _$zod.ZodString;
1586
+ name: _$zod.ZodString;
1587
+ }, _$zod_v4_core0.$strip>;
1588
+ response: _$zod.ZodObject<{
1589
+ success: _$zod.ZodBoolean;
1590
+ }, _$zod_v4_core0.$strip>;
1591
+ };
1592
+ 'profile.setDefault': {
1593
+ request: _$zod.ZodObject<{
1594
+ clientId: _$zod.ZodString;
1595
+ name: _$zod.ZodString;
1596
+ }, _$zod_v4_core0.$strip>;
1597
+ response: _$zod.ZodObject<{
1598
+ profile: _$zod.ZodObject<{
1599
+ id: _$zod.ZodString;
1600
+ clientId: _$zod.ZodString;
1601
+ name: _$zod.ZodString;
1602
+ description: _$zod.ZodNullable<_$zod.ZodString>;
1603
+ configDir: _$zod.ZodString;
1604
+ isDefault: _$zod.ZodBoolean;
1605
+ createdAt: _$zod.ZodNumber;
1606
+ updatedAt: _$zod.ZodNumber;
1607
+ }, _$zod_v4_core0.$strip>;
1608
+ }, _$zod_v4_core0.$strip>;
1609
+ };
1610
+ 'runtime.observe': {
1611
+ request: _$zod.ZodObject<{
1612
+ clientId: _$zod.ZodString;
1613
+ source: _$zod.ZodObject<{
1614
+ layer: _$zod.ZodEnum<{
1615
+ adapter: "adapter";
1616
+ supervisor: "supervisor";
1617
+ "client-hook": "client-hook";
1618
+ statusline: "statusline";
1619
+ "cli-wrapper": "cli-wrapper";
1620
+ }>;
1621
+ producer: _$zod.ZodString;
1622
+ }, _$zod_v4_core0.$strip>;
1623
+ observedAt: _$zod.ZodNumber;
1624
+ supervisorSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1625
+ pid: _$zod.ZodOptional<_$zod.ZodNumber>;
1626
+ parentPid: _$zod.ZodOptional<_$zod.ZodNumber>;
1627
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1628
+ sessionId: _$zod.ZodOptional<_$zod.ZodString>;
1629
+ cwd: _$zod.ZodOptional<_$zod.ZodString>;
1630
+ argv: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1631
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1632
+ }, _$zod_v4_core0.$strip>;
1633
+ response: _$zod.ZodObject<{
1634
+ clientRuntimeId: _$zod.ZodString;
1635
+ created: _$zod.ZodBoolean;
1636
+ promoted: _$zod.ZodBoolean;
1637
+ }, _$zod_v4_core0.$strip>;
1638
+ };
1639
+ 'runtime.started': _$zod.ZodObject<{
1640
+ supervisorSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1641
+ pid: _$zod.ZodOptional<_$zod.ZodNumber>;
1642
+ parentPid: _$zod.ZodOptional<_$zod.ZodNumber>;
1643
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1644
+ sessionId: _$zod.ZodOptional<_$zod.ZodString>;
1645
+ cwd: _$zod.ZodOptional<_$zod.ZodString>;
1646
+ argv: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1647
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1648
+ clientRuntimeId: _$zod.ZodString;
1649
+ clientId: _$zod.ZodString;
1650
+ status: _$zod.ZodEnum<{
1651
+ started: "started";
1652
+ observed: "observed";
1653
+ }>;
1654
+ source: _$zod.ZodObject<{
1655
+ layer: _$zod.ZodEnum<{
1656
+ adapter: "adapter";
1657
+ supervisor: "supervisor";
1658
+ "client-hook": "client-hook";
1659
+ statusline: "statusline";
1660
+ "cli-wrapper": "cli-wrapper";
1661
+ }>;
1662
+ producer: _$zod.ZodString;
1663
+ }, _$zod_v4_core0.$strip>;
1664
+ observedAt: _$zod.ZodNumber;
1665
+ }, _$zod_v4_core0.$strip>;
1666
+ scan: {
1667
+ request: _$zod.ZodObject<{
1668
+ targets: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
1669
+ clientId: _$zod.ZodString;
1670
+ binaryName: _$zod.ZodString;
1671
+ supportedVersions: _$zod.ZodOptional<_$zod.ZodString>;
1672
+ }, _$zod_v4_core0.$strip>>>;
1673
+ }, _$zod_v4_core0.$strip>;
1674
+ response: _$zod.ZodObject<{
1675
+ results: _$zod.ZodArray<_$zod.ZodObject<{
1676
+ clientId: _$zod.ZodString;
1677
+ found: _$zod.ZodBoolean;
1678
+ version: _$zod.ZodOptional<_$zod.ZodString>;
1679
+ warningMessage: _$zod.ZodOptional<_$zod.ZodString>;
1680
+ }, _$zod_v4_core0.$strip>>;
1681
+ }, _$zod_v4_core0.$strip>;
1682
+ };
1683
+ 'session.account.observe': {
1684
+ request: _$zod.ZodObject<{
1685
+ clientId: _$zod.ZodString;
1686
+ source: _$zod.ZodString;
1687
+ kind: _$zod.ZodString;
1688
+ observedAt: _$zod.ZodNumber;
1689
+ payload: _$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
1690
+ locator: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1691
+ kind: _$zod.ZodLiteral<"session">;
1692
+ sessionId: _$zod.ZodString;
1693
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1694
+ kind: _$zod.ZodLiteral<"adapter-session">;
1695
+ adapterSessionId: _$zod.ZodString;
1696
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1697
+ kind: _$zod.ZodLiteral<"both">;
1698
+ sessionId: _$zod.ZodString;
1699
+ adapterSessionId: _$zod.ZodString;
1700
+ }, _$zod_v4_core0.$strip>], "kind">;
1701
+ }, _$zod_v4_core0.$strip>;
1702
+ response: _$zod.ZodObject<{
1703
+ handled: _$zod.ZodBoolean;
1704
+ sessionId: _$zod.ZodNullable<_$zod.ZodString>;
1705
+ clientAccountId: _$zod.ZodNullable<_$zod.ZodString>;
1706
+ changed: _$zod.ZodBoolean;
1707
+ }, _$zod_v4_core0.$strip>;
1708
+ };
1709
+ 'account.observe': {
1710
+ request: _$zod.ZodObject<{
1711
+ clientId: _$zod.ZodString;
1712
+ observedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
1713
+ displayLabel: _$zod.ZodOptional<_$zod.ZodString>;
1714
+ identifiers: _$zod.ZodArray<_$zod.ZodObject<{
1715
+ scheme: _$zod.ZodString;
1716
+ value: _$zod.ZodString;
1717
+ strength: _$zod.ZodEnum<{
1718
+ strong: "strong";
1719
+ alias: "alias";
1720
+ }>;
1721
+ }, _$zod_v4_core0.$strip>>;
1722
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1723
+ }, _$zod_v4_core0.$strip>;
1724
+ response: _$zod.ZodObject<{
1725
+ clientAccountId: _$zod.ZodString;
1726
+ displayLabel: _$zod.ZodOptional<_$zod.ZodString>;
1727
+ }, _$zod_v4_core0.$strip>;
1728
+ };
1729
+ 'account.activate': {
1730
+ request: _$zod.ZodObject<{
1731
+ clientId: _$zod.ZodString;
1732
+ clientAccountId: _$zod.ZodString;
1733
+ identifiers: _$zod.ZodArray<_$zod.ZodObject<{
1734
+ scheme: _$zod.ZodString;
1735
+ value: _$zod.ZodString;
1736
+ strength: _$zod.ZodEnum<{
1737
+ strong: "strong";
1738
+ alias: "alias";
1739
+ }>;
1740
+ }, _$zod_v4_core0.$strip>>;
1741
+ displayLabel: _$zod.ZodOptional<_$zod.ZodString>;
1742
+ }, _$zod_v4_core0.$strip>;
1743
+ response: _$zod.ZodObject<{
1744
+ accepted: _$zod.ZodBoolean;
1745
+ }, _$zod_v4_core0.$strip>;
1746
+ };
1747
+ 'account.getActive': {
1748
+ request: _$zod.ZodObject<{
1749
+ clientId: _$zod.ZodString;
1750
+ }, _$zod_v4_core0.$strip>;
1751
+ response: _$zod.ZodObject<{
1752
+ identity: _$zod.ZodNullable<_$zod.ZodObject<{
1753
+ clientAccountId: _$zod.ZodString;
1754
+ identifiers: _$zod.ZodArray<_$zod.ZodObject<{
1755
+ scheme: _$zod.ZodString;
1756
+ value: _$zod.ZodString;
1757
+ strength: _$zod.ZodEnum<{
1758
+ strong: "strong";
1759
+ alias: "alias";
1760
+ }>;
1761
+ }, _$zod_v4_core0.$strip>>;
1762
+ displayLabel: _$zod.ZodOptional<_$zod.ZodString>;
1763
+ }, _$zod_v4_core0.$strip>>;
1764
+ }, _$zod_v4_core0.$strip>;
1765
+ };
1766
+ 'usage.ingest': {
1767
+ request: _$zod.ZodObject<{
1768
+ clientId: _$zod.ZodString;
1769
+ observedAt: _$zod.ZodNumber;
1770
+ source: _$zod.ZodString;
1771
+ account: _$zod.ZodObject<{
1772
+ displayLabel: _$zod.ZodOptional<_$zod.ZodString>;
1773
+ identifiers: _$zod.ZodArray<_$zod.ZodObject<{
1774
+ scheme: _$zod.ZodString;
1775
+ value: _$zod.ZodString;
1776
+ strength: _$zod.ZodEnum<{
1777
+ strong: "strong";
1778
+ alias: "alias";
1779
+ }>;
1780
+ }, _$zod_v4_core0.$strip>>;
1781
+ }, _$zod_v4_core0.$strip>;
1782
+ usage: _$zod.ZodObject<{
1783
+ windows: _$zod.ZodArray<_$zod.ZodObject<{
1784
+ key: _$zod.ZodString;
1785
+ label: _$zod.ZodString;
1786
+ usedPercentage: _$zod.ZodNumber;
1787
+ resetsAt: _$zod.ZodOptional<_$zod.ZodNumber>;
1788
+ }, _$zod_v4_core0.$strip>>;
1789
+ }, _$zod_v4_core0.$strip>;
1790
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1791
+ }, _$zod_v4_core0.$strip>;
1792
+ response: _$zod.ZodObject<{
1793
+ clientAccountId: _$zod.ZodString;
1794
+ snapshot: _$zod.ZodObject<{
1795
+ clientAccountId: _$zod.ZodString;
1796
+ clientId: _$zod.ZodString;
1797
+ observedAt: _$zod.ZodNumber;
1798
+ source: _$zod.ZodString;
1799
+ displayLabel: _$zod.ZodOptional<_$zod.ZodString>;
1800
+ usage: _$zod.ZodObject<{
1801
+ windows: _$zod.ZodArray<_$zod.ZodObject<{
1802
+ key: _$zod.ZodString;
1803
+ label: _$zod.ZodString;
1804
+ usedPercentage: _$zod.ZodNumber;
1805
+ resetsAt: _$zod.ZodOptional<_$zod.ZodNumber>;
1806
+ }, _$zod_v4_core0.$strip>>;
1807
+ }, _$zod_v4_core0.$strip>;
1808
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1809
+ }, _$zod_v4_core0.$strip>;
1810
+ }, _$zod_v4_core0.$strip>;
1811
+ };
1812
+ 'usage.snapshot': _$zod.ZodObject<{
1813
+ clientAccountId: _$zod.ZodString;
1814
+ clientId: _$zod.ZodString;
1815
+ observedAt: _$zod.ZodNumber;
1816
+ source: _$zod.ZodString;
1817
+ displayLabel: _$zod.ZodOptional<_$zod.ZodString>;
1818
+ usage: _$zod.ZodObject<{
1819
+ windows: _$zod.ZodArray<_$zod.ZodObject<{
1820
+ key: _$zod.ZodString;
1821
+ label: _$zod.ZodString;
1822
+ usedPercentage: _$zod.ZodNumber;
1823
+ resetsAt: _$zod.ZodOptional<_$zod.ZodNumber>;
1824
+ }, _$zod_v4_core0.$strip>>;
1825
+ }, _$zod_v4_core0.$strip>;
1826
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1827
+ }, _$zod_v4_core0.$strip>;
1828
+ 'session.started': _$zod.ZodObject<{
1829
+ clientId: _$zod.ZodString;
1830
+ source: _$zod.ZodString;
1831
+ observedAt: _$zod.ZodNumber;
1832
+ sessionId: _$zod.ZodOptional<_$zod.ZodString>;
1833
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1834
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1835
+ }, _$zod_v4_core0.$strip>;
1836
+ 'session.userPrompt.submitted': _$zod.ZodObject<{
1837
+ clientId: _$zod.ZodString;
1838
+ source: _$zod.ZodString;
1839
+ observedAt: _$zod.ZodNumber;
1840
+ sessionId: _$zod.ZodOptional<_$zod.ZodString>;
1841
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1842
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1843
+ prompt: _$zod.ZodOptional<_$zod.ZodString>;
1844
+ }, _$zod_v4_core0.$strip>;
1845
+ 'session.turn.started': _$zod.ZodObject<{
1846
+ clientId: _$zod.ZodString;
1847
+ source: _$zod.ZodString;
1848
+ observedAt: _$zod.ZodNumber;
1849
+ sessionId: _$zod.ZodOptional<_$zod.ZodString>;
1850
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1851
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1852
+ }, _$zod_v4_core0.$strip>;
1853
+ 'session.turn.completed': _$zod.ZodObject<{
1854
+ clientId: _$zod.ZodString;
1855
+ source: _$zod.ZodString;
1856
+ observedAt: _$zod.ZodNumber;
1857
+ sessionId: _$zod.ZodOptional<_$zod.ZodString>;
1858
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1859
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1860
+ }, _$zod_v4_core0.$strip>;
1861
+ 'session.tool.pre': _$zod.ZodObject<{
1862
+ clientId: _$zod.ZodString;
1863
+ source: _$zod.ZodString;
1864
+ observedAt: _$zod.ZodNumber;
1865
+ sessionId: _$zod.ZodOptional<_$zod.ZodString>;
1866
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1867
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1868
+ toolName: _$zod.ZodOptional<_$zod.ZodString>;
1869
+ toolCallId: _$zod.ZodOptional<_$zod.ZodString>;
1870
+ }, _$zod_v4_core0.$strip>;
1871
+ 'session.tool.post': _$zod.ZodObject<{
1872
+ clientId: _$zod.ZodString;
1873
+ source: _$zod.ZodString;
1874
+ observedAt: _$zod.ZodNumber;
1875
+ sessionId: _$zod.ZodOptional<_$zod.ZodString>;
1876
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1877
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1878
+ toolName: _$zod.ZodOptional<_$zod.ZodString>;
1879
+ toolCallId: _$zod.ZodOptional<_$zod.ZodString>;
1880
+ success: _$zod.ZodOptional<_$zod.ZodBoolean>;
1881
+ }, _$zod_v4_core0.$strip>;
1882
+ 'wiring.list': {
1883
+ request: _$zod.ZodObject<{
1884
+ clientId: _$zod.ZodOptional<_$zod.ZodString>;
1885
+ projectDir: _$zod.ZodOptional<_$zod.ZodString>;
1886
+ makaioCommand: _$zod.ZodString;
1887
+ }, _$zod_v4_core0.$strip>;
1888
+ response: _$zod.ZodObject<{
1889
+ results: _$zod.ZodArray<_$zod.ZodObject<{
1890
+ clientId: _$zod.ZodString;
1891
+ entries: _$zod.ZodArray<_$zod.ZodObject<{
1892
+ group: _$zod.ZodString;
1893
+ name: _$zod.ZodString;
1894
+ installed: _$zod.ZodBoolean;
1895
+ command: _$zod.ZodString;
1896
+ }, _$zod_v4_core0.$strip>>;
1897
+ }, _$zod_v4_core0.$strip>>;
1898
+ }, _$zod_v4_core0.$strip>;
1899
+ };
1900
+ list: {
1901
+ request: _$zod.ZodObject<{
1902
+ forceRefresh: _$zod.ZodOptional<_$zod.ZodBoolean>;
1903
+ }, _$zod_v4_core0.$strip>;
1904
+ response: _$zod.ZodObject<{
1905
+ clients: _$zod.ZodArray<_$zod.ZodObject<{
1906
+ clientId: _$zod.ZodString;
1907
+ installedVersions: _$zod.ZodArray<_$zod.ZodObject<{
1908
+ version: _$zod.ZodString;
1909
+ installPath: _$zod.ZodString;
1910
+ installedAt: _$zod.ZodNumber;
1911
+ isActive: _$zod.ZodBoolean;
1912
+ }, _$zod_v4_core0.$strip>>;
1913
+ activeVersion: _$zod.ZodNullable<_$zod.ZodString>;
1914
+ pinnedVersion: _$zod.ZodString;
1915
+ updateAvailable: _$zod.ZodBoolean;
1916
+ }, _$zod_v4_core0.$strict>>;
1917
+ }, _$zod_v4_core0.$strip>;
1918
+ };
1919
+ install: {
1920
+ request: _$zod.ZodObject<{
1921
+ clientId: _$zod.ZodString;
1922
+ version: _$zod.ZodOptional<_$zod.ZodString>;
1923
+ }, _$zod_v4_core0.$strip>;
1924
+ response: _$zod.ZodObject<{
1925
+ jobId: _$zod.ZodString;
1926
+ requestedVersion: _$zod.ZodNullable<_$zod.ZodString>;
1927
+ resolvedVersion: _$zod.ZodNullable<_$zod.ZodString>;
1928
+ }, _$zod_v4_core0.$strip>;
1929
+ };
1930
+ uninstall: {
1931
+ request: _$zod.ZodObject<{
1932
+ clientId: _$zod.ZodString;
1933
+ version: _$zod.ZodString;
1934
+ }, _$zod_v4_core0.$strip>;
1935
+ response: _$zod.ZodObject<{
1936
+ clientId: _$zod.ZodString;
1937
+ removedVersion: _$zod.ZodString;
1938
+ activeVersion: _$zod.ZodNullable<_$zod.ZodString>;
1939
+ }, _$zod_v4_core0.$strip>;
1940
+ };
1941
+ update: {
1942
+ request: _$zod.ZodObject<{
1943
+ clientId: _$zod.ZodString;
1944
+ }, _$zod_v4_core0.$strip>;
1945
+ response: _$zod.ZodObject<{
1946
+ jobId: _$zod.ZodString;
1947
+ resolvedVersion: _$zod.ZodNullable<_$zod.ZodString>;
1948
+ }, _$zod_v4_core0.$strip>;
1949
+ };
1950
+ setActive: {
1951
+ request: _$zod.ZodObject<{
1952
+ clientId: _$zod.ZodString;
1953
+ version: _$zod.ZodString;
1954
+ }, _$zod_v4_core0.$strip>;
1955
+ response: _$zod.ZodObject<{
1956
+ clientId: _$zod.ZodString;
1957
+ activeVersion: _$zod.ZodString;
1958
+ }, _$zod_v4_core0.$strip>;
1959
+ };
1960
+ 'installJob.progress': _$zod.ZodObject<{
1961
+ jobId: _$zod.ZodString;
1962
+ clientId: _$zod.ZodString;
1963
+ version: _$zod.ZodOptional<_$zod.ZodString>;
1964
+ strategy: _$zod.ZodEnum<{
1965
+ npm: "npm";
1966
+ "signed-binary-bucket": "signed-binary-bucket";
1967
+ }>;
1968
+ stage: _$zod.ZodEnum<{
1969
+ downloading: "downloading";
1970
+ resolving: "resolving";
1971
+ verifying: "verifying";
1972
+ extracting: "extracting";
1973
+ installing: "installing";
1974
+ "post-install": "post-install";
1975
+ activating: "activating";
1976
+ }>;
1977
+ progress: _$zod.ZodNullable<_$zod.ZodNumber>;
1978
+ installPath: _$zod.ZodOptional<_$zod.ZodString>;
1979
+ activeAfterCompletion: _$zod.ZodOptional<_$zod.ZodBoolean>;
1980
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1981
+ }, _$zod_v4_core0.$strip>;
1982
+ 'installJob.completed': _$zod.ZodObject<{
1983
+ jobId: _$zod.ZodString;
1984
+ clientId: _$zod.ZodString;
1985
+ version: _$zod.ZodOptional<_$zod.ZodString>;
1986
+ strategy: _$zod.ZodEnum<{
1987
+ npm: "npm";
1988
+ "signed-binary-bucket": "signed-binary-bucket";
1989
+ }>;
1990
+ status: _$zod.ZodEnum<{
1991
+ success: "success";
1992
+ error: "error";
1993
+ }>;
1994
+ installPath: _$zod.ZodOptional<_$zod.ZodString>;
1995
+ activeVersion: _$zod.ZodNullable<_$zod.ZodString>;
1996
+ error: _$zod.ZodOptional<_$zod.ZodObject<{
1997
+ message: _$zod.ZodString;
1998
+ code: _$zod.ZodOptional<_$zod.ZodString>;
1999
+ }, _$zod_v4_core0.$strip>>;
2000
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
2001
+ }, _$zod_v4_core0.$strip>;
2002
+ 'version.changed': _$zod.ZodObject<{
2003
+ clientId: _$zod.ZodString;
2004
+ previousActiveVersion: _$zod.ZodNullable<_$zod.ZodString>;
2005
+ activeVersion: _$zod.ZodNullable<_$zod.ZodString>;
2006
+ reason: _$zod.ZodEnum<{
2007
+ update: "update";
2008
+ install: "install";
2009
+ uninstall: "uninstall";
2010
+ "set-active": "set-active";
2011
+ }>;
2012
+ }, _$zod_v4_core0.$strip>;
2013
+ resolveBinary: {
2014
+ request: _$zod.ZodObject<{
2015
+ clientId: _$zod.ZodString;
2016
+ sessionId: _$zod.ZodOptional<_$zod.ZodString>;
2017
+ projectDir: _$zod.ZodOptional<_$zod.ZodString>;
2018
+ preferSource: _$zod.ZodOptional<_$zod.ZodEnum<{
2019
+ global: "global";
2020
+ managed: "managed";
2021
+ }>>;
2022
+ harnessId: _$zod.ZodOptional<_$zod.ZodString>;
2023
+ }, _$zod_v4_core0.$strip>;
2024
+ response: _$zod.ZodObject<{
2025
+ binaryPath: _$zod.ZodNullable<_$zod.ZodString>;
2026
+ env: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>;
2027
+ configDir: _$zod.ZodNullable<_$zod.ZodString>;
2028
+ source: _$zod.ZodEnum<{
2029
+ global: "global";
2030
+ managed: "managed";
2031
+ }>;
2032
+ version: _$zod.ZodNullable<_$zod.ZodString>;
2033
+ }, _$zod_v4_core0.$strip>;
2034
+ };
2035
+ }>;
2036
+ /**
2037
+ * Typed bus subjects for the client namespace.
2038
+ */
2039
+ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjectDefinitions<"client", {
2040
+ 'config.prime': {
2041
+ request: _$zod.ZodObject<{
2042
+ clientId: _$zod.ZodString;
2043
+ configDir: _$zod.ZodString;
2044
+ phase: _$zod.ZodEnum<{
2045
+ "managed-install": "managed-install";
2046
+ "profile-create": "profile-create";
2047
+ "session-create": "session-create";
2048
+ }>;
2049
+ binaryVersion: _$zod.ZodOptional<_$zod.ZodString>;
2050
+ adapterName: _$zod.ZodOptional<_$zod.ZodString>;
2051
+ projectDir: _$zod.ZodOptional<_$zod.ZodString>;
2052
+ }, _$zod_v4_core0.$strip>;
2053
+ response: _$zod.ZodObject<{
2054
+ primed: _$zod.ZodBoolean;
2055
+ }, _$zod_v4_core0.$strip>;
2056
+ };
2057
+ 'sessionConfig.create': {
2058
+ request: _$zod.ZodObject<{
2059
+ clientId: _$zod.ZodString;
2060
+ sessionId: _$zod.ZodString;
2061
+ profileName: _$zod.ZodOptional<_$zod.ZodString>;
2062
+ baseConfigDir: _$zod.ZodOptional<_$zod.ZodString>;
2063
+ projectDir: _$zod.ZodOptional<_$zod.ZodString>;
2064
+ configInheritance: _$zod.ZodOptional<_$zod.ZodEnum<{
2065
+ full: "full";
2066
+ "auth-only": "auth-only";
2067
+ empty: "empty";
2068
+ }>>;
2069
+ }, _$zod_v4_core0.$strip>;
2070
+ response: _$zod.ZodObject<{
2071
+ sessionDir: _$zod.ZodString;
2072
+ env: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>;
2073
+ }, _$zod_v4_core0.$strip>;
2074
+ };
2075
+ 'sessionConfig.destroy': {
2076
+ request: _$zod.ZodObject<{
2077
+ clientId: _$zod.ZodString;
2078
+ sessionId: _$zod.ZodString;
2079
+ }, _$zod_v4_core0.$strip>;
2080
+ response: _$zod.ZodObject<{
2081
+ success: _$zod.ZodBoolean;
2082
+ }, _$zod_v4_core0.$strip>;
2083
+ };
2084
+ 'sessionConfig.cleanup': {
2085
+ request: _$zod.ZodObject<{
2086
+ clientId: _$zod.ZodOptional<_$zod.ZodString>;
2087
+ }, _$zod_v4_core0.$strip>;
2088
+ response: _$zod.ZodObject<{
2089
+ removed: _$zod.ZodArray<_$zod.ZodString>;
2090
+ }, _$zod_v4_core0.$strip>;
2091
+ };
2092
+ 'profile.create': {
2093
+ request: _$zod.ZodObject<{
2094
+ clientId: _$zod.ZodString;
2095
+ name: _$zod.ZodString;
2096
+ description: _$zod.ZodOptional<_$zod.ZodString>;
2097
+ }, _$zod_v4_core0.$strip>;
2098
+ response: _$zod.ZodObject<{
2099
+ profile: _$zod.ZodObject<{
2100
+ id: _$zod.ZodString;
2101
+ clientId: _$zod.ZodString;
2102
+ name: _$zod.ZodString;
2103
+ description: _$zod.ZodNullable<_$zod.ZodString>;
2104
+ configDir: _$zod.ZodString;
2105
+ isDefault: _$zod.ZodBoolean;
2106
+ createdAt: _$zod.ZodNumber;
2107
+ updatedAt: _$zod.ZodNumber;
2108
+ }, _$zod_v4_core0.$strip>;
2109
+ }, _$zod_v4_core0.$strip>;
2110
+ };
2111
+ 'profile.list': {
2112
+ request: _$zod.ZodObject<{
2113
+ clientId: _$zod.ZodString;
2114
+ }, _$zod_v4_core0.$strip>;
2115
+ response: _$zod.ZodObject<{
2116
+ profiles: _$zod.ZodArray<_$zod.ZodObject<{
2117
+ id: _$zod.ZodString;
2118
+ clientId: _$zod.ZodString;
2119
+ name: _$zod.ZodString;
2120
+ description: _$zod.ZodNullable<_$zod.ZodString>;
2121
+ configDir: _$zod.ZodString;
2122
+ isDefault: _$zod.ZodBoolean;
2123
+ createdAt: _$zod.ZodNumber;
2124
+ updatedAt: _$zod.ZodNumber;
2125
+ }, _$zod_v4_core0.$strip>>;
2126
+ }, _$zod_v4_core0.$strip>;
2127
+ };
2128
+ 'profile.get': {
2129
+ request: _$zod.ZodObject<{
2130
+ clientId: _$zod.ZodString;
2131
+ name: _$zod.ZodString;
2132
+ }, _$zod_v4_core0.$strip>;
2133
+ response: _$zod.ZodObject<{
2134
+ profile: _$zod.ZodNullable<_$zod.ZodObject<{
2135
+ id: _$zod.ZodString;
2136
+ clientId: _$zod.ZodString;
2137
+ name: _$zod.ZodString;
2138
+ description: _$zod.ZodNullable<_$zod.ZodString>;
2139
+ configDir: _$zod.ZodString;
2140
+ isDefault: _$zod.ZodBoolean;
2141
+ createdAt: _$zod.ZodNumber;
2142
+ updatedAt: _$zod.ZodNumber;
2143
+ }, _$zod_v4_core0.$strip>>;
2144
+ }, _$zod_v4_core0.$strip>;
2145
+ };
2146
+ 'profile.update': {
2147
+ request: _$zod.ZodObject<{
2148
+ clientId: _$zod.ZodString;
2149
+ name: _$zod.ZodString;
2150
+ description: _$zod.ZodOptional<_$zod.ZodString>;
2151
+ }, _$zod_v4_core0.$strip>;
2152
+ response: _$zod.ZodObject<{
2153
+ profile: _$zod.ZodObject<{
2154
+ id: _$zod.ZodString;
2155
+ clientId: _$zod.ZodString;
2156
+ name: _$zod.ZodString;
2157
+ description: _$zod.ZodNullable<_$zod.ZodString>;
2158
+ configDir: _$zod.ZodString;
2159
+ isDefault: _$zod.ZodBoolean;
2160
+ createdAt: _$zod.ZodNumber;
2161
+ updatedAt: _$zod.ZodNumber;
2162
+ }, _$zod_v4_core0.$strip>;
2163
+ }, _$zod_v4_core0.$strip>;
2164
+ };
2165
+ 'profile.delete': {
2166
+ request: _$zod.ZodObject<{
2167
+ clientId: _$zod.ZodString;
2168
+ name: _$zod.ZodString;
2169
+ }, _$zod_v4_core0.$strip>;
2170
+ response: _$zod.ZodObject<{
2171
+ success: _$zod.ZodBoolean;
2172
+ }, _$zod_v4_core0.$strip>;
2173
+ };
2174
+ 'profile.setDefault': {
2175
+ request: _$zod.ZodObject<{
2176
+ clientId: _$zod.ZodString;
2177
+ name: _$zod.ZodString;
2178
+ }, _$zod_v4_core0.$strip>;
2179
+ response: _$zod.ZodObject<{
2180
+ profile: _$zod.ZodObject<{
2181
+ id: _$zod.ZodString;
2182
+ clientId: _$zod.ZodString;
2183
+ name: _$zod.ZodString;
2184
+ description: _$zod.ZodNullable<_$zod.ZodString>;
2185
+ configDir: _$zod.ZodString;
2186
+ isDefault: _$zod.ZodBoolean;
2187
+ createdAt: _$zod.ZodNumber;
2188
+ updatedAt: _$zod.ZodNumber;
2189
+ }, _$zod_v4_core0.$strip>;
2190
+ }, _$zod_v4_core0.$strip>;
2191
+ };
2192
+ 'runtime.observe': {
2193
+ request: _$zod.ZodObject<{
2194
+ clientId: _$zod.ZodString;
2195
+ source: _$zod.ZodObject<{
2196
+ layer: _$zod.ZodEnum<{
2197
+ adapter: "adapter";
2198
+ supervisor: "supervisor";
2199
+ "client-hook": "client-hook";
2200
+ statusline: "statusline";
2201
+ "cli-wrapper": "cli-wrapper";
2202
+ }>;
2203
+ producer: _$zod.ZodString;
2204
+ }, _$zod_v4_core0.$strip>;
2205
+ observedAt: _$zod.ZodNumber;
2206
+ supervisorSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2207
+ pid: _$zod.ZodOptional<_$zod.ZodNumber>;
2208
+ parentPid: _$zod.ZodOptional<_$zod.ZodNumber>;
2209
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2210
+ sessionId: _$zod.ZodOptional<_$zod.ZodString>;
2211
+ cwd: _$zod.ZodOptional<_$zod.ZodString>;
2212
+ argv: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
2213
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
2214
+ }, _$zod_v4_core0.$strip>;
2215
+ response: _$zod.ZodObject<{
2216
+ clientRuntimeId: _$zod.ZodString;
2217
+ created: _$zod.ZodBoolean;
2218
+ promoted: _$zod.ZodBoolean;
2219
+ }, _$zod_v4_core0.$strip>;
2220
+ };
2221
+ 'runtime.started': _$zod.ZodObject<{
2222
+ supervisorSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2223
+ pid: _$zod.ZodOptional<_$zod.ZodNumber>;
2224
+ parentPid: _$zod.ZodOptional<_$zod.ZodNumber>;
2225
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2226
+ sessionId: _$zod.ZodOptional<_$zod.ZodString>;
2227
+ cwd: _$zod.ZodOptional<_$zod.ZodString>;
2228
+ argv: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
2229
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
2230
+ clientRuntimeId: _$zod.ZodString;
2231
+ clientId: _$zod.ZodString;
2232
+ status: _$zod.ZodEnum<{
2233
+ started: "started";
2234
+ observed: "observed";
2235
+ }>;
2236
+ source: _$zod.ZodObject<{
2237
+ layer: _$zod.ZodEnum<{
2238
+ adapter: "adapter";
2239
+ supervisor: "supervisor";
2240
+ "client-hook": "client-hook";
2241
+ statusline: "statusline";
2242
+ "cli-wrapper": "cli-wrapper";
2243
+ }>;
2244
+ producer: _$zod.ZodString;
2245
+ }, _$zod_v4_core0.$strip>;
2246
+ observedAt: _$zod.ZodNumber;
2247
+ }, _$zod_v4_core0.$strip>;
2248
+ scan: {
2249
+ request: _$zod.ZodObject<{
2250
+ targets: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
2251
+ clientId: _$zod.ZodString;
2252
+ binaryName: _$zod.ZodString;
2253
+ supportedVersions: _$zod.ZodOptional<_$zod.ZodString>;
2254
+ }, _$zod_v4_core0.$strip>>>;
2255
+ }, _$zod_v4_core0.$strip>;
2256
+ response: _$zod.ZodObject<{
2257
+ results: _$zod.ZodArray<_$zod.ZodObject<{
2258
+ clientId: _$zod.ZodString;
2259
+ found: _$zod.ZodBoolean;
2260
+ version: _$zod.ZodOptional<_$zod.ZodString>;
2261
+ warningMessage: _$zod.ZodOptional<_$zod.ZodString>;
2262
+ }, _$zod_v4_core0.$strip>>;
2263
+ }, _$zod_v4_core0.$strip>;
2264
+ };
2265
+ 'session.account.observe': {
2266
+ request: _$zod.ZodObject<{
2267
+ clientId: _$zod.ZodString;
2268
+ source: _$zod.ZodString;
2269
+ kind: _$zod.ZodString;
2270
+ observedAt: _$zod.ZodNumber;
2271
+ payload: _$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
2272
+ locator: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2273
+ kind: _$zod.ZodLiteral<"session">;
2274
+ sessionId: _$zod.ZodString;
2275
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2276
+ kind: _$zod.ZodLiteral<"adapter-session">;
2277
+ adapterSessionId: _$zod.ZodString;
2278
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2279
+ kind: _$zod.ZodLiteral<"both">;
2280
+ sessionId: _$zod.ZodString;
2281
+ adapterSessionId: _$zod.ZodString;
2282
+ }, _$zod_v4_core0.$strip>], "kind">;
2283
+ }, _$zod_v4_core0.$strip>;
2284
+ response: _$zod.ZodObject<{
2285
+ handled: _$zod.ZodBoolean;
2286
+ sessionId: _$zod.ZodNullable<_$zod.ZodString>;
2287
+ clientAccountId: _$zod.ZodNullable<_$zod.ZodString>;
2288
+ changed: _$zod.ZodBoolean;
2289
+ }, _$zod_v4_core0.$strip>;
2290
+ };
2291
+ 'account.observe': {
2292
+ request: _$zod.ZodObject<{
2293
+ clientId: _$zod.ZodString;
2294
+ observedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
2295
+ displayLabel: _$zod.ZodOptional<_$zod.ZodString>;
2296
+ identifiers: _$zod.ZodArray<_$zod.ZodObject<{
2297
+ scheme: _$zod.ZodString;
2298
+ value: _$zod.ZodString;
2299
+ strength: _$zod.ZodEnum<{
2300
+ strong: "strong";
2301
+ alias: "alias";
2302
+ }>;
2303
+ }, _$zod_v4_core0.$strip>>;
2304
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
2305
+ }, _$zod_v4_core0.$strip>;
2306
+ response: _$zod.ZodObject<{
2307
+ clientAccountId: _$zod.ZodString;
2308
+ displayLabel: _$zod.ZodOptional<_$zod.ZodString>;
2309
+ }, _$zod_v4_core0.$strip>;
2310
+ };
2311
+ 'account.activate': {
2312
+ request: _$zod.ZodObject<{
2313
+ clientId: _$zod.ZodString;
2314
+ clientAccountId: _$zod.ZodString;
2315
+ identifiers: _$zod.ZodArray<_$zod.ZodObject<{
2316
+ scheme: _$zod.ZodString;
2317
+ value: _$zod.ZodString;
2318
+ strength: _$zod.ZodEnum<{
2319
+ strong: "strong";
2320
+ alias: "alias";
2321
+ }>;
2322
+ }, _$zod_v4_core0.$strip>>;
2323
+ displayLabel: _$zod.ZodOptional<_$zod.ZodString>;
2324
+ }, _$zod_v4_core0.$strip>;
2325
+ response: _$zod.ZodObject<{
2326
+ accepted: _$zod.ZodBoolean;
2327
+ }, _$zod_v4_core0.$strip>;
2328
+ };
2329
+ 'account.getActive': {
2330
+ request: _$zod.ZodObject<{
2331
+ clientId: _$zod.ZodString;
2332
+ }, _$zod_v4_core0.$strip>;
2333
+ response: _$zod.ZodObject<{
2334
+ identity: _$zod.ZodNullable<_$zod.ZodObject<{
2335
+ clientAccountId: _$zod.ZodString;
2336
+ identifiers: _$zod.ZodArray<_$zod.ZodObject<{
2337
+ scheme: _$zod.ZodString;
2338
+ value: _$zod.ZodString;
2339
+ strength: _$zod.ZodEnum<{
2340
+ strong: "strong";
2341
+ alias: "alias";
2342
+ }>;
2343
+ }, _$zod_v4_core0.$strip>>;
2344
+ displayLabel: _$zod.ZodOptional<_$zod.ZodString>;
2345
+ }, _$zod_v4_core0.$strip>>;
2346
+ }, _$zod_v4_core0.$strip>;
2347
+ };
2348
+ 'usage.ingest': {
2349
+ request: _$zod.ZodObject<{
2350
+ clientId: _$zod.ZodString;
2351
+ observedAt: _$zod.ZodNumber;
2352
+ source: _$zod.ZodString;
2353
+ account: _$zod.ZodObject<{
2354
+ displayLabel: _$zod.ZodOptional<_$zod.ZodString>;
2355
+ identifiers: _$zod.ZodArray<_$zod.ZodObject<{
2356
+ scheme: _$zod.ZodString;
2357
+ value: _$zod.ZodString;
2358
+ strength: _$zod.ZodEnum<{
2359
+ strong: "strong";
2360
+ alias: "alias";
2361
+ }>;
2362
+ }, _$zod_v4_core0.$strip>>;
2363
+ }, _$zod_v4_core0.$strip>;
2364
+ usage: _$zod.ZodObject<{
2365
+ windows: _$zod.ZodArray<_$zod.ZodObject<{
2366
+ key: _$zod.ZodString;
2367
+ label: _$zod.ZodString;
2368
+ usedPercentage: _$zod.ZodNumber;
2369
+ resetsAt: _$zod.ZodOptional<_$zod.ZodNumber>;
2370
+ }, _$zod_v4_core0.$strip>>;
2371
+ }, _$zod_v4_core0.$strip>;
2372
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
2373
+ }, _$zod_v4_core0.$strip>;
2374
+ response: _$zod.ZodObject<{
2375
+ clientAccountId: _$zod.ZodString;
2376
+ snapshot: _$zod.ZodObject<{
2377
+ clientAccountId: _$zod.ZodString;
2378
+ clientId: _$zod.ZodString;
2379
+ observedAt: _$zod.ZodNumber;
2380
+ source: _$zod.ZodString;
2381
+ displayLabel: _$zod.ZodOptional<_$zod.ZodString>;
2382
+ usage: _$zod.ZodObject<{
2383
+ windows: _$zod.ZodArray<_$zod.ZodObject<{
2384
+ key: _$zod.ZodString;
2385
+ label: _$zod.ZodString;
2386
+ usedPercentage: _$zod.ZodNumber;
2387
+ resetsAt: _$zod.ZodOptional<_$zod.ZodNumber>;
2388
+ }, _$zod_v4_core0.$strip>>;
2389
+ }, _$zod_v4_core0.$strip>;
2390
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
2391
+ }, _$zod_v4_core0.$strip>;
2392
+ }, _$zod_v4_core0.$strip>;
2393
+ };
2394
+ 'usage.snapshot': _$zod.ZodObject<{
2395
+ clientAccountId: _$zod.ZodString;
2396
+ clientId: _$zod.ZodString;
2397
+ observedAt: _$zod.ZodNumber;
2398
+ source: _$zod.ZodString;
2399
+ displayLabel: _$zod.ZodOptional<_$zod.ZodString>;
2400
+ usage: _$zod.ZodObject<{
2401
+ windows: _$zod.ZodArray<_$zod.ZodObject<{
2402
+ key: _$zod.ZodString;
2403
+ label: _$zod.ZodString;
2404
+ usedPercentage: _$zod.ZodNumber;
2405
+ resetsAt: _$zod.ZodOptional<_$zod.ZodNumber>;
2406
+ }, _$zod_v4_core0.$strip>>;
2407
+ }, _$zod_v4_core0.$strip>;
2408
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
2409
+ }, _$zod_v4_core0.$strip>;
2410
+ 'session.started': _$zod.ZodObject<{
2411
+ clientId: _$zod.ZodString;
2412
+ source: _$zod.ZodString;
2413
+ observedAt: _$zod.ZodNumber;
2414
+ sessionId: _$zod.ZodOptional<_$zod.ZodString>;
2415
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2416
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
2417
+ }, _$zod_v4_core0.$strip>;
2418
+ 'session.userPrompt.submitted': _$zod.ZodObject<{
2419
+ clientId: _$zod.ZodString;
2420
+ source: _$zod.ZodString;
2421
+ observedAt: _$zod.ZodNumber;
2422
+ sessionId: _$zod.ZodOptional<_$zod.ZodString>;
2423
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2424
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
2425
+ prompt: _$zod.ZodOptional<_$zod.ZodString>;
2426
+ }, _$zod_v4_core0.$strip>;
2427
+ 'session.turn.started': _$zod.ZodObject<{
2428
+ clientId: _$zod.ZodString;
2429
+ source: _$zod.ZodString;
2430
+ observedAt: _$zod.ZodNumber;
2431
+ sessionId: _$zod.ZodOptional<_$zod.ZodString>;
2432
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2433
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
2434
+ }, _$zod_v4_core0.$strip>;
2435
+ 'session.turn.completed': _$zod.ZodObject<{
2436
+ clientId: _$zod.ZodString;
2437
+ source: _$zod.ZodString;
2438
+ observedAt: _$zod.ZodNumber;
2439
+ sessionId: _$zod.ZodOptional<_$zod.ZodString>;
2440
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2441
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
2442
+ }, _$zod_v4_core0.$strip>;
2443
+ 'session.tool.pre': _$zod.ZodObject<{
2444
+ clientId: _$zod.ZodString;
2445
+ source: _$zod.ZodString;
2446
+ observedAt: _$zod.ZodNumber;
2447
+ sessionId: _$zod.ZodOptional<_$zod.ZodString>;
2448
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2449
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
2450
+ toolName: _$zod.ZodOptional<_$zod.ZodString>;
2451
+ toolCallId: _$zod.ZodOptional<_$zod.ZodString>;
2452
+ }, _$zod_v4_core0.$strip>;
2453
+ 'session.tool.post': _$zod.ZodObject<{
2454
+ clientId: _$zod.ZodString;
2455
+ source: _$zod.ZodString;
2456
+ observedAt: _$zod.ZodNumber;
2457
+ sessionId: _$zod.ZodOptional<_$zod.ZodString>;
2458
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2459
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
2460
+ toolName: _$zod.ZodOptional<_$zod.ZodString>;
2461
+ toolCallId: _$zod.ZodOptional<_$zod.ZodString>;
2462
+ success: _$zod.ZodOptional<_$zod.ZodBoolean>;
2463
+ }, _$zod_v4_core0.$strip>;
2464
+ 'wiring.list': {
2465
+ request: _$zod.ZodObject<{
2466
+ clientId: _$zod.ZodOptional<_$zod.ZodString>;
2467
+ projectDir: _$zod.ZodOptional<_$zod.ZodString>;
2468
+ makaioCommand: _$zod.ZodString;
2469
+ }, _$zod_v4_core0.$strip>;
2470
+ response: _$zod.ZodObject<{
2471
+ results: _$zod.ZodArray<_$zod.ZodObject<{
2472
+ clientId: _$zod.ZodString;
2473
+ entries: _$zod.ZodArray<_$zod.ZodObject<{
2474
+ group: _$zod.ZodString;
2475
+ name: _$zod.ZodString;
2476
+ installed: _$zod.ZodBoolean;
2477
+ command: _$zod.ZodString;
2478
+ }, _$zod_v4_core0.$strip>>;
2479
+ }, _$zod_v4_core0.$strip>>;
2480
+ }, _$zod_v4_core0.$strip>;
2481
+ };
2482
+ list: {
2483
+ request: _$zod.ZodObject<{
2484
+ forceRefresh: _$zod.ZodOptional<_$zod.ZodBoolean>;
2485
+ }, _$zod_v4_core0.$strip>;
2486
+ response: _$zod.ZodObject<{
2487
+ clients: _$zod.ZodArray<_$zod.ZodObject<{
2488
+ clientId: _$zod.ZodString;
2489
+ installedVersions: _$zod.ZodArray<_$zod.ZodObject<{
2490
+ version: _$zod.ZodString;
2491
+ installPath: _$zod.ZodString;
2492
+ installedAt: _$zod.ZodNumber;
2493
+ isActive: _$zod.ZodBoolean;
2494
+ }, _$zod_v4_core0.$strip>>;
2495
+ activeVersion: _$zod.ZodNullable<_$zod.ZodString>;
2496
+ pinnedVersion: _$zod.ZodString;
2497
+ updateAvailable: _$zod.ZodBoolean;
2498
+ }, _$zod_v4_core0.$strict>>;
2499
+ }, _$zod_v4_core0.$strip>;
2500
+ };
2501
+ install: {
2502
+ request: _$zod.ZodObject<{
2503
+ clientId: _$zod.ZodString;
2504
+ version: _$zod.ZodOptional<_$zod.ZodString>;
2505
+ }, _$zod_v4_core0.$strip>;
2506
+ response: _$zod.ZodObject<{
2507
+ jobId: _$zod.ZodString;
2508
+ requestedVersion: _$zod.ZodNullable<_$zod.ZodString>;
2509
+ resolvedVersion: _$zod.ZodNullable<_$zod.ZodString>;
2510
+ }, _$zod_v4_core0.$strip>;
2511
+ };
2512
+ uninstall: {
2513
+ request: _$zod.ZodObject<{
2514
+ clientId: _$zod.ZodString;
2515
+ version: _$zod.ZodString;
2516
+ }, _$zod_v4_core0.$strip>;
2517
+ response: _$zod.ZodObject<{
2518
+ clientId: _$zod.ZodString;
2519
+ removedVersion: _$zod.ZodString;
2520
+ activeVersion: _$zod.ZodNullable<_$zod.ZodString>;
2521
+ }, _$zod_v4_core0.$strip>;
2522
+ };
2523
+ update: {
2524
+ request: _$zod.ZodObject<{
2525
+ clientId: _$zod.ZodString;
2526
+ }, _$zod_v4_core0.$strip>;
2527
+ response: _$zod.ZodObject<{
2528
+ jobId: _$zod.ZodString;
2529
+ resolvedVersion: _$zod.ZodNullable<_$zod.ZodString>;
2530
+ }, _$zod_v4_core0.$strip>;
2531
+ };
2532
+ setActive: {
2533
+ request: _$zod.ZodObject<{
2534
+ clientId: _$zod.ZodString;
2535
+ version: _$zod.ZodString;
2536
+ }, _$zod_v4_core0.$strip>;
2537
+ response: _$zod.ZodObject<{
2538
+ clientId: _$zod.ZodString;
2539
+ activeVersion: _$zod.ZodString;
2540
+ }, _$zod_v4_core0.$strip>;
2541
+ };
2542
+ 'installJob.progress': _$zod.ZodObject<{
2543
+ jobId: _$zod.ZodString;
2544
+ clientId: _$zod.ZodString;
2545
+ version: _$zod.ZodOptional<_$zod.ZodString>;
2546
+ strategy: _$zod.ZodEnum<{
2547
+ npm: "npm";
2548
+ "signed-binary-bucket": "signed-binary-bucket";
2549
+ }>;
2550
+ stage: _$zod.ZodEnum<{
2551
+ downloading: "downloading";
2552
+ resolving: "resolving";
2553
+ verifying: "verifying";
2554
+ extracting: "extracting";
2555
+ installing: "installing";
2556
+ "post-install": "post-install";
2557
+ activating: "activating";
2558
+ }>;
2559
+ progress: _$zod.ZodNullable<_$zod.ZodNumber>;
2560
+ installPath: _$zod.ZodOptional<_$zod.ZodString>;
2561
+ activeAfterCompletion: _$zod.ZodOptional<_$zod.ZodBoolean>;
2562
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
2563
+ }, _$zod_v4_core0.$strip>;
2564
+ 'installJob.completed': _$zod.ZodObject<{
2565
+ jobId: _$zod.ZodString;
2566
+ clientId: _$zod.ZodString;
2567
+ version: _$zod.ZodOptional<_$zod.ZodString>;
2568
+ strategy: _$zod.ZodEnum<{
2569
+ npm: "npm";
2570
+ "signed-binary-bucket": "signed-binary-bucket";
2571
+ }>;
2572
+ status: _$zod.ZodEnum<{
2573
+ success: "success";
2574
+ error: "error";
2575
+ }>;
2576
+ installPath: _$zod.ZodOptional<_$zod.ZodString>;
2577
+ activeVersion: _$zod.ZodNullable<_$zod.ZodString>;
2578
+ error: _$zod.ZodOptional<_$zod.ZodObject<{
2579
+ message: _$zod.ZodString;
2580
+ code: _$zod.ZodOptional<_$zod.ZodString>;
2581
+ }, _$zod_v4_core0.$strip>>;
2582
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
2583
+ }, _$zod_v4_core0.$strip>;
2584
+ 'version.changed': _$zod.ZodObject<{
2585
+ clientId: _$zod.ZodString;
2586
+ previousActiveVersion: _$zod.ZodNullable<_$zod.ZodString>;
2587
+ activeVersion: _$zod.ZodNullable<_$zod.ZodString>;
2588
+ reason: _$zod.ZodEnum<{
2589
+ update: "update";
2590
+ install: "install";
2591
+ uninstall: "uninstall";
2592
+ "set-active": "set-active";
2593
+ }>;
2594
+ }, _$zod_v4_core0.$strip>;
2595
+ resolveBinary: {
2596
+ request: _$zod.ZodObject<{
2597
+ clientId: _$zod.ZodString;
2598
+ sessionId: _$zod.ZodOptional<_$zod.ZodString>;
2599
+ projectDir: _$zod.ZodOptional<_$zod.ZodString>;
2600
+ preferSource: _$zod.ZodOptional<_$zod.ZodEnum<{
2601
+ global: "global";
2602
+ managed: "managed";
2603
+ }>>;
2604
+ harnessId: _$zod.ZodOptional<_$zod.ZodString>;
2605
+ }, _$zod_v4_core0.$strip>;
2606
+ response: _$zod.ZodObject<{
2607
+ binaryPath: _$zod.ZodNullable<_$zod.ZodString>;
2608
+ env: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>;
2609
+ configDir: _$zod.ZodNullable<_$zod.ZodString>;
2610
+ source: _$zod.ZodEnum<{
2611
+ global: "global";
2612
+ managed: "managed";
2613
+ }>;
2614
+ version: _$zod.ZodNullable<_$zod.ZodString>;
2615
+ }, _$zod_v4_core0.$strip>;
2616
+ };
2617
+ }>, "client">;
2618
+ //#endregion
2619
+ //#region core/contracts/src/client/create-definition.d.ts
2620
+ /**
2621
+ * Create an immutable client definition from a static object literal.
2622
+ * @param definition - Client definition to return
2623
+ * @returns Validated, normalized, frozen client definition
2624
+ */
2625
+ declare function createClientDefinition(definition: ClientDefinitionInput): ClientDefinition;
2626
+ //#endregion
2627
+ //#region core/contracts/src/client/profile.d.ts
2628
+ /**
2629
+ * Filesystem-safe profile name.
2630
+ *
2631
+ * Profile names are used as directory names under the client profile root, so
2632
+ * they must be a single path component. The character set intentionally stays
2633
+ * conservative until a concrete UX need requires broader display names.
2634
+ */
2635
+ declare const ClientProfileNameSchema: z.ZodString;
2636
+ /**
2637
+ * Filesystem-safe session config directory name.
2638
+ *
2639
+ * Session IDs flow into ephemeral config directory paths. They are restricted
2640
+ * to the same single-component form as profile names to prevent path escape.
2641
+ */
2642
+ declare const SessionConfigIdSchema: z.ZodString;
2643
+ /**
2644
+ * A named, persistent configuration profile for a client.
2645
+ *
2646
+ * Profiles allow multiple configuration environments (e.g., work vs. personal)
2647
+ * to coexist under the same `clientId`. One profile per client is marked as
2648
+ * the default and is selected when no explicit profile name is provided. When
2649
+ * no default exists, session setup falls back to the client's immutable native
2650
+ * config source and copies/materializes it into the session directory.
2651
+ */
2652
+ declare const ClientProfileSchema: z.ZodObject<{
2653
+ id: z.ZodString;
2654
+ clientId: z.ZodString;
2655
+ name: z.ZodString;
2656
+ description: z.ZodNullable<z.ZodString>;
2657
+ configDir: z.ZodString;
2658
+ isDefault: z.ZodBoolean;
2659
+ createdAt: z.ZodNumber;
2660
+ updatedAt: z.ZodNumber;
2661
+ }, z.core.$strip>;
2662
+ type ClientProfile = z.infer<typeof ClientProfileSchema>;
2663
+ /**
2664
+ * Environment variables map for a session's isolated config environment.
2665
+ */
2666
+ declare const SessionConfigEnvSchema: z.ZodRecord<z.ZodString, z.ZodString>;
2667
+ /**
2668
+ * Policy for materializing a session config directory from a base client config.
2669
+ */
2670
+ declare const SessionConfigInheritanceSchema: z.ZodEnum<{
2671
+ full: "full";
2672
+ "auth-only": "auth-only";
2673
+ empty: "empty";
2674
+ }>;
2675
+ type SessionConfigInheritance = z.infer<typeof SessionConfigInheritanceSchema>;
2676
+ /**
2677
+ * Request and response schemas for `client.profile.*` operations.
2678
+ *
2679
+ * Provides typed bus subjects for creating, listing, retrieving, updating,
2680
+ * deleting, and setting the default profile for a given client.
2681
+ */
2682
+ declare const ClientProfileSchemas: {
2683
+ /**
2684
+ * Create a new profile for a client.
2685
+ */
2686
+ 'profile.create': {
2687
+ request: z.ZodObject<{
2688
+ clientId: z.ZodString;
2689
+ name: z.ZodString;
2690
+ description: z.ZodOptional<z.ZodString>;
2691
+ }, z.core.$strip>;
2692
+ response: z.ZodObject<{
2693
+ profile: z.ZodObject<{
2694
+ id: z.ZodString;
2695
+ clientId: z.ZodString;
2696
+ name: z.ZodString;
2697
+ description: z.ZodNullable<z.ZodString>;
2698
+ configDir: z.ZodString;
2699
+ isDefault: z.ZodBoolean;
2700
+ createdAt: z.ZodNumber;
2701
+ updatedAt: z.ZodNumber;
2702
+ }, z.core.$strip>;
2703
+ }, z.core.$strip>;
2704
+ };
2705
+ /**
2706
+ * List all profiles for a client.
2707
+ */
2708
+ 'profile.list': {
2709
+ request: z.ZodObject<{
2710
+ clientId: z.ZodString;
2711
+ }, z.core.$strip>;
2712
+ response: z.ZodObject<{
2713
+ profiles: z.ZodArray<z.ZodObject<{
2714
+ id: z.ZodString;
2715
+ clientId: z.ZodString;
2716
+ name: z.ZodString;
2717
+ description: z.ZodNullable<z.ZodString>;
2718
+ configDir: z.ZodString;
2719
+ isDefault: z.ZodBoolean;
2720
+ createdAt: z.ZodNumber;
2721
+ updatedAt: z.ZodNumber;
2722
+ }, z.core.$strip>>;
2723
+ }, z.core.$strip>;
2724
+ };
2725
+ /**
2726
+ * Get a profile by client ID and name.
2727
+ *
2728
+ * Returns `null` in the response when no matching profile exists rather
2729
+ * than throwing, so callers can handle the absent-profile case inline.
2730
+ */
2731
+ 'profile.get': {
2732
+ request: z.ZodObject<{
2733
+ clientId: z.ZodString;
2734
+ name: z.ZodString;
2735
+ }, z.core.$strip>;
2736
+ response: z.ZodObject<{
2737
+ profile: z.ZodNullable<z.ZodObject<{
2738
+ id: z.ZodString;
2739
+ clientId: z.ZodString;
2740
+ name: z.ZodString;
2741
+ description: z.ZodNullable<z.ZodString>;
2742
+ configDir: z.ZodString;
2743
+ isDefault: z.ZodBoolean;
2744
+ createdAt: z.ZodNumber;
2745
+ updatedAt: z.ZodNumber;
2746
+ }, z.core.$strip>>;
2747
+ }, z.core.$strip>;
2748
+ };
2749
+ /**
2750
+ * Update an existing profile's mutable fields.
2751
+ */
2752
+ 'profile.update': {
2753
+ request: z.ZodObject<{
2754
+ clientId: z.ZodString;
2755
+ name: z.ZodString;
2756
+ description: z.ZodOptional<z.ZodString>;
2757
+ }, z.core.$strip>;
2758
+ response: z.ZodObject<{
2759
+ profile: z.ZodObject<{
2760
+ id: z.ZodString;
2761
+ clientId: z.ZodString;
2762
+ name: z.ZodString;
2763
+ description: z.ZodNullable<z.ZodString>;
2764
+ configDir: z.ZodString;
2765
+ isDefault: z.ZodBoolean;
2766
+ createdAt: z.ZodNumber;
2767
+ updatedAt: z.ZodNumber;
2768
+ }, z.core.$strip>;
2769
+ }, z.core.$strip>;
2770
+ };
2771
+ /**
2772
+ * Delete a profile by client ID and name.
2773
+ */
2774
+ 'profile.delete': {
2775
+ request: z.ZodObject<{
2776
+ clientId: z.ZodString;
2777
+ name: z.ZodString;
2778
+ }, z.core.$strip>;
2779
+ response: z.ZodObject<{
2780
+ success: z.ZodBoolean;
2781
+ }, z.core.$strip>;
2782
+ };
2783
+ /**
2784
+ * Mark a profile as the default for its client.
2785
+ */
2786
+ 'profile.setDefault': {
2787
+ request: z.ZodObject<{
2788
+ clientId: z.ZodString;
2789
+ name: z.ZodString;
2790
+ }, z.core.$strip>;
2791
+ response: z.ZodObject<{
2792
+ profile: z.ZodObject<{
2793
+ id: z.ZodString;
2794
+ clientId: z.ZodString;
2795
+ name: z.ZodString;
2796
+ description: z.ZodNullable<z.ZodString>;
2797
+ configDir: z.ZodString;
2798
+ isDefault: z.ZodBoolean;
2799
+ createdAt: z.ZodNumber;
2800
+ updatedAt: z.ZodNumber;
2801
+ }, z.core.$strip>;
2802
+ }, z.core.$strip>;
2803
+ };
2804
+ };
2805
+ /**
2806
+ * Request and response schemas for `client.sessionConfig.*` operations.
2807
+ *
2808
+ * Manages per-session configuration isolation: creating a temporary working
2809
+ * directory seeded from a named profile, tearing it down after a session ends,
2810
+ * and bulk-cleaning stale session directories.
2811
+ */
2812
+ declare const ClientSessionConfigSchemas: {
2813
+ /**
2814
+ * Create an isolated configuration directory for a session.
2815
+ *
2816
+ * The service seeds the directory from the named profile (or the client
2817
+ * default when `profileName` is omitted) and returns the path together
2818
+ * with any environment variables the client process should inherit.
2819
+ */
2820
+ 'sessionConfig.create': {
2821
+ request: z.ZodObject<{
2822
+ clientId: z.ZodString;
2823
+ sessionId: z.ZodString;
2824
+ profileName: z.ZodOptional<z.ZodString>;
2825
+ baseConfigDir: z.ZodOptional<z.ZodString>;
2826
+ projectDir: z.ZodOptional<z.ZodString>;
2827
+ configInheritance: z.ZodOptional<z.ZodEnum<{
2828
+ full: "full";
2829
+ "auth-only": "auth-only";
2830
+ empty: "empty";
2831
+ }>>;
2832
+ }, z.core.$strip>;
2833
+ response: z.ZodObject<{
2834
+ sessionDir: z.ZodString;
2835
+ env: z.ZodRecord<z.ZodString, z.ZodString>;
2836
+ }, z.core.$strip>;
2837
+ };
2838
+ /**
2839
+ * Destroy the isolated configuration directory for a session.
2840
+ */
2841
+ 'sessionConfig.destroy': {
2842
+ request: z.ZodObject<{
2843
+ clientId: z.ZodString;
2844
+ sessionId: z.ZodString;
2845
+ }, z.core.$strip>;
2846
+ response: z.ZodObject<{
2847
+ success: z.ZodBoolean;
2848
+ }, z.core.$strip>;
2849
+ };
2850
+ /**
2851
+ * Clean up stale session config directories.
2852
+ *
2853
+ * When `clientId` is supplied only that client's orphaned directories are
2854
+ * removed; omit it to clean across all clients.
2855
+ */
2856
+ 'sessionConfig.cleanup': {
2857
+ request: z.ZodObject<{
2858
+ clientId: z.ZodOptional<z.ZodString>;
2859
+ }, z.core.$strip>;
2860
+ response: z.ZodObject<{
2861
+ removed: z.ZodArray<z.ZodString>;
2862
+ }, z.core.$strip>;
2863
+ };
2864
+ };
2865
+ /**
2866
+ * Schema for the setup-delegation request passed to client-owned session
2867
+ * config setup handlers.
2868
+ *
2869
+ * Each client's setup handler receives this payload and is responsible for
2870
+ * populating `sessionDir` with the correct config files for the given
2871
+ * `baseConfigDir` on the target platform.
2872
+ */
2873
+ declare const SessionConfigSetupRequestSchema: z.ZodObject<{
2874
+ sessionDir: z.ZodString;
2875
+ baseConfigDir: z.ZodString;
2876
+ projectDir: z.ZodOptional<z.ZodString>;
2877
+ platform: z.ZodEnum<{
2878
+ darwin: "darwin";
2879
+ linux: "linux";
2880
+ win32: "win32";
2881
+ }>;
2882
+ configInheritance: z.ZodEnum<{
2883
+ full: "full";
2884
+ "auth-only": "auth-only";
2885
+ empty: "empty";
2886
+ }>;
2887
+ }, z.core.$strip>;
2888
+ type SessionConfigSetupRequest = z.infer<typeof SessionConfigSetupRequestSchema>;
2889
+ /**
2890
+ * Schema for the teardown-delegation request passed to client-owned session
2891
+ * config destroy handlers.
2892
+ *
2893
+ * Each client's destroy handler receives the concrete session directory before
2894
+ * `clients-core` removes it and is responsible for cleaning any native
2895
+ * credential material associated with that directory.
2896
+ */
2897
+ declare const SessionConfigTeardownRequestSchema: z.ZodObject<{
2898
+ sessionDir: z.ZodString;
2899
+ platform: z.ZodEnum<{
2900
+ darwin: "darwin";
2901
+ linux: "linux";
2902
+ win32: "win32";
2903
+ }>;
2904
+ }, z.core.$strip>;
2905
+ type SessionConfigTeardownRequest = z.infer<typeof SessionConfigTeardownRequestSchema>;
2906
+ /** Response schema for the teardown-delegation request. */
2907
+ declare const SessionConfigTeardownResponseSchema: z.ZodObject<{
2908
+ success: z.ZodBoolean;
2909
+ }, z.core.$strip>;
2910
+ type SessionConfigTeardownResponse = z.infer<typeof SessionConfigTeardownResponseSchema>;
2911
+ /**
2912
+ * Response schema for the setup-delegation request.
2913
+ *
2914
+ * The setup handler may return environment variables that the client process
2915
+ * should inherit for the isolated session directory. When absent, no extra
2916
+ * environment variables are added beyond those already in the spawn environment.
2917
+ */
2918
+ declare const SessionConfigSetupResponseSchema: z.ZodObject<{
2919
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2920
+ }, z.core.$strip>;
2921
+ type SessionConfigSetupResponse = z.infer<typeof SessionConfigSetupResponseSchema>;
2922
+ /**
2923
+ * Lifecycle phases at which the config-prime hook fires.
2924
+ *
2925
+ * - `'managed-install'` — after a managed binary is verified and before the
2926
+ * version record is persisted and the binary is activated.
2927
+ * - `'profile-create'` — after a named profile directory is created and
2928
+ * before the profile record is written to storage.
2929
+ * - `'session-create'` — after a session config directory is created and the
2930
+ * client-owned setup handler has run, before the session config response is
2931
+ * returned.
2932
+ */
2933
+ declare const ClientConfigPrimePhaseSchema: z.ZodEnum<{
2934
+ "managed-install": "managed-install";
2935
+ "profile-create": "profile-create";
2936
+ "session-create": "session-create";
2937
+ }>;
2938
+ type ClientConfigPrimePhase = z.infer<typeof ClientConfigPrimePhaseSchema>;
2939
+ /**
2940
+ * Request and response schemas for `client.config.prime`.
2941
+ *
2942
+ * The generic `client.config.prime` handler delegates to the per-client
2943
+ * `client:<clientId>.config.prime` subject via `requestOptional`. If no
2944
+ * client-specific handler is registered the call is a no-op.
2945
+ *
2946
+ * This allows client packages to perform one-time or per-session config
2947
+ * initialisation (e.g. writing settings templates, injecting MCP server
2948
+ * entries) at well-defined lifecycle points without the framework needing to
2949
+ * know the client's config file format.
2950
+ */
2951
+ declare const ClientConfigPrimeSchema: {
2952
+ /**
2953
+ * Initiate a config prime for the given client directory and phase.
2954
+ */
2955
+ request: z.ZodObject<{
2956
+ clientId: z.ZodString;
2957
+ configDir: z.ZodString;
2958
+ phase: z.ZodEnum<{
2959
+ "managed-install": "managed-install";
2960
+ "profile-create": "profile-create";
2961
+ "session-create": "session-create";
2962
+ }>;
2963
+ binaryVersion: z.ZodOptional<z.ZodString>;
2964
+ adapterName: z.ZodOptional<z.ZodString>;
2965
+ projectDir: z.ZodOptional<z.ZodString>;
2966
+ }, z.core.$strip>; /** Outcome of the config-prime operation. */
2967
+ response: z.ZodObject<{
2968
+ primed: z.ZodBoolean;
2969
+ }, z.core.$strip>;
2970
+ };
2971
+ type ClientConfigPrimeRequest = z.infer<typeof ClientConfigPrimeSchema.request>;
2972
+ type ClientConfigPrimeResponse = z.infer<typeof ClientConfigPrimeSchema.response>;
2973
+ type ProfileCreateRequest = z.infer<(typeof ClientProfileSchemas)['profile.create']['request']>;
2974
+ type ProfileCreateResponse = z.infer<(typeof ClientProfileSchemas)['profile.create']['response']>;
2975
+ type ProfileListRequest = z.infer<(typeof ClientProfileSchemas)['profile.list']['request']>;
2976
+ type ProfileListResponse = z.infer<(typeof ClientProfileSchemas)['profile.list']['response']>;
2977
+ type ProfileGetRequest = z.infer<(typeof ClientProfileSchemas)['profile.get']['request']>;
2978
+ type ProfileGetResponse = z.infer<(typeof ClientProfileSchemas)['profile.get']['response']>;
2979
+ type ProfileUpdateRequest = z.infer<(typeof ClientProfileSchemas)['profile.update']['request']>;
2980
+ type ProfileUpdateResponse = z.infer<(typeof ClientProfileSchemas)['profile.update']['response']>;
2981
+ type ProfileDeleteRequest = z.infer<(typeof ClientProfileSchemas)['profile.delete']['request']>;
2982
+ type ProfileDeleteResponse = z.infer<(typeof ClientProfileSchemas)['profile.delete']['response']>;
2983
+ type ProfileSetDefaultRequest = z.infer<(typeof ClientProfileSchemas)['profile.setDefault']['request']>;
2984
+ type ProfileSetDefaultResponse = z.infer<(typeof ClientProfileSchemas)['profile.setDefault']['response']>;
2985
+ type SessionConfigCreateRequest = z.infer<(typeof ClientSessionConfigSchemas)['sessionConfig.create']['request']>;
2986
+ type SessionConfigCreateResponse = z.infer<(typeof ClientSessionConfigSchemas)['sessionConfig.create']['response']>;
2987
+ type SessionConfigDestroyRequest = z.infer<(typeof ClientSessionConfigSchemas)['sessionConfig.destroy']['request']>;
2988
+ type SessionConfigDestroyResponse = z.infer<(typeof ClientSessionConfigSchemas)['sessionConfig.destroy']['response']>;
2989
+ type SessionConfigCleanupRequest = z.infer<(typeof ClientSessionConfigSchemas)['sessionConfig.cleanup']['request']>;
2990
+ type SessionConfigCleanupResponse = z.infer<(typeof ClientSessionConfigSchemas)['sessionConfig.cleanup']['response']>;
2991
+ //#endregion
2992
+ export { ClientSessionTurnCompletedSchema as $, ClientIdentifierStrength as $t, SessionConfigIdSchema as A, ClientSetActiveResponse as At, SessionConfigTeardownResponseSchema as B, InstallError as Bt, SessionConfigCleanupRequest as C, ClientExecutionContext as Cn, ClientInstallRequest as Ct, SessionConfigDestroyRequest as D, ClientResolveBinarySchema as Dn, ClientListResponse as Dt, SessionConfigCreateResponse as E, ClientResolveBinaryResponse as En, ClientListRequest as Et, SessionConfigSetupResponse as F, ClientUpdateRequest as Ft, ClientSessionObservedBaseSchema as G, InstalledVersionEntrySchema as Gt, ClientNamespace as H, InstallStage as Ht, SessionConfigSetupResponseSchema as I, ClientUpdateResponse as It, ClientSessionToolPost as J, ClientAccountIdentifier as Jt, ClientSessionStarted as K, ManagedInstallStrategy as Kt, SessionConfigTeardownRequest as L, ClientUpdateSchema as Lt, SessionConfigInheritanceSchema as M, ClientUninstallRequest as Mt, SessionConfigSetupRequest as N, ClientUninstallResponse as Nt, SessionConfigDestroyResponse as O, ClientListSchema as Ot, SessionConfigSetupRequestSchema as P, ClientUninstallSchema as Pt, ClientSessionTurnCompleted as Q, ClientAccountObserveSchema as Qt, SessionConfigTeardownRequestSchema as R, ClientVersionChanged as Rt, ProfileUpdateResponse as S, ClientSchemas as Sn, ClientInstallProgressSchema as St, SessionConfigCreateRequest as T, ClientResolveBinaryRequest as Tn, ClientInstallSchema as Tt, ClientSubjects as U, InstallStageSchema as Ut, createClientDefinition as V, InstallErrorSchema as Vt, ClientSessionObservedBase as W, InstalledVersionEntry as Wt, ClientSessionToolPre as X, ClientAccountObserveRequest as Xt, ClientSessionToolPostSchema as Y, ClientAccountIdentifierSchema as Yt, ClientSessionToolPreSchema as Z, ClientAccountObserveResponse as Zt, ProfileListRequest as _, ClientUsageSnapshotSchema as _n, ClientBinaryListEntry as _t, ClientConfigPrimeSchema as a, ClientScanResultSchema as an, ClientWiringEntrySchema as at, ProfileSetDefaultResponse as b, ClientUsageWindows as bn, ClientInstallCompletedSchema as bt, ClientProfileSchema as c, ClientSessionAccountObserveRequest as cn, ClientRuntimeObserveRequest as ct, ProfileCreateRequest as d, ClientSessionLocator as dn, ClientRuntimeSource as dt, ClientIdentifierStrengthSchema as en, ClientSessionTurnStarted as et, ProfileCreateResponse as f, ClientSessionLocatorSchema as fn, ClientRuntimeSourceLayer as ft, ProfileGetResponse as g, ClientUsageSnapshot as gn, ClientRuntimeStartedSchema as gt, ProfileGetRequest as h, ClientUsageIngestSchema as hn, ClientRuntimeStarted as ht, ClientConfigPrimeResponse as i, ClientScanResult as in, ClientWiringEntry as it, SessionConfigInheritance as j, ClientSetActiveSchema as jt, SessionConfigEnvSchema as k, ClientSetActiveRequest as kt, ClientProfileSchemas as l, ClientSessionAccountObserveResponse as ln, ClientRuntimeObserveResponse as lt, ProfileDeleteResponse as m, ClientUsageIngestResponse as mn, ClientRuntimeSourceSchema as mt, ClientConfigPrimePhaseSchema as n, ClientIdentityObservationSchema as nn, ClientSessionUserPromptSubmitted as nt, ClientProfile as o, ClientScanTarget as on, ClientRuntimeEvidenceBase as ot, ProfileDeleteRequest as p, ClientUsageIngestRequest as pn, ClientRuntimeSourceLayerSchema as pt, ClientSessionStartedSchema as q, ManagedInstallStrategySchema as qt, ClientConfigPrimeRequest as r, ClientMetadataSchema as rn, ClientSessionUserPromptSubmittedSchema as rt, ClientProfileNameSchema as s, ClientScanTargetSchema as sn, ClientRuntimeEvidenceBaseSchema as st, ClientConfigPrimePhase as t, ClientIdentityObservation as tn, ClientSessionTurnStartedSchema as tt, ClientSessionConfigSchemas as u, ClientSessionAccountObserveSchema as un, ClientRuntimeObserveSchema as ut, ProfileListResponse as v, ClientUsageWindow as vn, ClientBinaryListEntrySchema as vt, SessionConfigCleanupResponse as w, ClientExecutionContextSchema as wn, ClientInstallResponse as wt, ProfileUpdateRequest as x, ClientUsageWindowsSchema as xn, ClientInstallProgress as xt, ProfileSetDefaultRequest as y, ClientUsageWindowSchema as yn, ClientInstallCompleted as yt, SessionConfigTeardownResponse as z, ClientVersionChangedSchema as zt };