@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 @@
1
+ import{z as e}from"zod";import{CliManifestSchema as t}from"@makaio/framework/contracts/extension";const n={listContributions:{request:e.object({}),response:e.object({contributions:e.array(t)})},execute:{request:e.object({command:e.string().min(1),subcommand:e.string().min(1),args:e.record(e.string(),e.unknown()).optional()}),response:e.object({exitCode:e.number(),stdout:e.array(e.string()),stderr:e.array(e.string())})}};export{n as t};
@@ -0,0 +1,153 @@
1
+ import { z } from "zod";
2
+
3
+ //#region core/contracts/src/materialization/schemas.d.ts
4
+ /**
5
+ * Discriminated target that a surface binding maps to on the external provider.
6
+ *
7
+ * Each variant carries the fields required to identify the target element
8
+ * on the provider surface:
9
+ *
10
+ * - `'label'` — a label or tag on the issue/work item (optional prefix filter)
11
+ * - `'field'` — a named custom field on the work item (optional external field id)
12
+ * - `'issue-type'` — a named issue type classification (optional external type id)
13
+ * - `'body-fragment'` — a named slot in the issue or PR body
14
+ * - `'comment'` — a structured comment rendered from a template string
15
+ */
16
+ declare const SurfaceBindingTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
17
+ kind: z.ZodLiteral<"label">;
18
+ prefix: z.ZodOptional<z.ZodString>;
19
+ }, z.core.$strip>, z.ZodObject<{
20
+ kind: z.ZodLiteral<"field">;
21
+ name: z.ZodString;
22
+ fieldId: z.ZodOptional<z.ZodString>;
23
+ }, z.core.$strip>, z.ZodObject<{
24
+ kind: z.ZodLiteral<"issue-type">;
25
+ name: z.ZodString;
26
+ typeId: z.ZodOptional<z.ZodString>;
27
+ }, z.core.$strip>, z.ZodObject<{
28
+ kind: z.ZodLiteral<"body-fragment">;
29
+ slot: z.ZodString;
30
+ }, z.core.$strip>, z.ZodObject<{
31
+ kind: z.ZodLiteral<"comment">;
32
+ template: z.ZodString;
33
+ }, z.core.$strip>], "kind">;
34
+ /**
35
+ * Serializable registration record for a surface binding.
36
+ *
37
+ * Surface binding registrations describe how a framework namespace maps to a
38
+ * provider-specific surface element (field, label, issue type, etc.).
39
+ * Registrations are declared by product extensions and consumed by
40
+ * materialization adapters at sync time.
41
+ *
42
+ * The `id` field is a dot-namespaced stable string (e.g. `'github.status.field'`).
43
+ */
44
+ declare const SurfaceBindingRegistrationSchema: z.ZodObject<{
45
+ id: z.ZodString;
46
+ provider: z.ZodString;
47
+ namespace: z.ZodString;
48
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
49
+ kind: z.ZodLiteral<"label">;
50
+ prefix: z.ZodOptional<z.ZodString>;
51
+ }, z.core.$strip>, z.ZodObject<{
52
+ kind: z.ZodLiteral<"field">;
53
+ name: z.ZodString;
54
+ fieldId: z.ZodOptional<z.ZodString>;
55
+ }, z.core.$strip>, z.ZodObject<{
56
+ kind: z.ZodLiteral<"issue-type">;
57
+ name: z.ZodString;
58
+ typeId: z.ZodOptional<z.ZodString>;
59
+ }, z.core.$strip>, z.ZodObject<{
60
+ kind: z.ZodLiteral<"body-fragment">;
61
+ slot: z.ZodString;
62
+ }, z.core.$strip>, z.ZodObject<{
63
+ kind: z.ZodLiteral<"comment">;
64
+ template: z.ZodString;
65
+ }, z.core.$strip>], "kind">;
66
+ appliesTo: z.ZodArray<z.ZodEnum<{
67
+ surface: "surface";
68
+ workpiece: "workpiece";
69
+ artifact: "artifact";
70
+ }>>;
71
+ valueMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
72
+ description: z.ZodOptional<z.ZodString>;
73
+ }, z.core.$strip>;
74
+ /** Serializable registration record for a surface binding. */
75
+ type SurfaceBindingRegistration = z.infer<typeof SurfaceBindingRegistrationSchema>;
76
+ /** Discriminated target on the external provider surface. */
77
+ type SurfaceBindingTarget = z.infer<typeof SurfaceBindingTargetSchema>;
78
+ /** Semantic hint for provider-neutral artifact projected fields. */
79
+ declare const ProjectedFieldSemanticSchema: z.ZodEnum<{
80
+ status: "status";
81
+ priority: "priority";
82
+ workflow: "workflow";
83
+ }>;
84
+ /** A provider-neutral field from artifact data that may be projected to an external surface. */
85
+ declare const ProjectedFieldSchema: z.ZodObject<{
86
+ path: z.ZodString;
87
+ semantic: z.ZodOptional<z.ZodEnum<{
88
+ status: "status";
89
+ priority: "priority";
90
+ workflow: "workflow";
91
+ }>>;
92
+ }, z.core.$strip>;
93
+ /** Semantic hint for provider-neutral artifact projected fields. */
94
+ type ProjectedFieldSemantic = z.infer<typeof ProjectedFieldSemanticSchema>;
95
+ /** A provider-neutral artifact field projection declaration. */
96
+ type ProjectedField = z.infer<typeof ProjectedFieldSchema>;
97
+ /**
98
+ * Projection policy that controls how an artifact kind surfaces on a provider.
99
+ *
100
+ * - `'none'` — the artifact is never materialized to a provider surface
101
+ * - `'surface'` — the artifact maps to a provider work item or issue
102
+ * - `'comment'` — the artifact is rendered as a structured comment on an existing item
103
+ */
104
+ declare const ArtifactProjectionPolicySchema: z.ZodObject<{
105
+ mode: z.ZodEnum<{
106
+ surface: "surface";
107
+ none: "none";
108
+ comment: "comment";
109
+ }>;
110
+ defaultRole: z.ZodOptional<z.ZodEnum<{
111
+ workpiece: "workpiece";
112
+ artifact: "artifact";
113
+ }>>;
114
+ semanticEvents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
115
+ created: "created";
116
+ revised: "revised";
117
+ "status-changed": "status-changed";
118
+ "observation-added": "observation-added";
119
+ }>>>;
120
+ projectedFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
121
+ path: z.ZodString;
122
+ semantic: z.ZodOptional<z.ZodEnum<{
123
+ status: "status";
124
+ priority: "priority";
125
+ workflow: "workflow";
126
+ }>>;
127
+ }, z.core.$strip>>>;
128
+ }, z.core.$strip>;
129
+ /** Projection policy that controls how an artifact kind surfaces on a provider. */
130
+ type ArtifactProjectionPolicy = z.infer<typeof ArtifactProjectionPolicySchema>;
131
+ /**
132
+ * A reference linking a framework artifact to an external provider object.
133
+ *
134
+ * `artifactId` and `provider`+`externalId` together form the composite primary
135
+ * key for a materialization ref. The `surfaceRole` captures whether the artifact
136
+ * was materialized as the top-level workpiece or as a subordinate artifact record.
137
+ */
138
+ declare const ArtifactMaterializationRefSchema: z.ZodObject<{
139
+ artifactId: z.ZodString;
140
+ provider: z.ZodString;
141
+ externalId: z.ZodString;
142
+ externalUrl: z.ZodOptional<z.ZodString>;
143
+ surfaceRole: z.ZodEnum<{
144
+ workpiece: "workpiece";
145
+ artifact: "artifact";
146
+ }>;
147
+ lastSyncedRevision: z.ZodOptional<z.ZodString>;
148
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
149
+ }, z.core.$strip>;
150
+ /** A reference linking a framework artifact to an external provider object. */
151
+ type ArtifactMaterializationRef = z.infer<typeof ArtifactMaterializationRefSchema>;
152
+ //#endregion
153
+ export { ProjectedField as a, ProjectedFieldSemanticSchema as c, SurfaceBindingTarget as d, SurfaceBindingTargetSchema as f, ArtifactProjectionPolicySchema as i, SurfaceBindingRegistration as l, ArtifactMaterializationRefSchema as n, ProjectedFieldSchema as o, ArtifactProjectionPolicy as r, ProjectedFieldSemantic as s, ArtifactMaterializationRef as t, SurfaceBindingRegistrationSchema as u };
@@ -0,0 +1 @@
1
+ import{s as e}from"./bus-Hb-LGzgb.mjs";export{e as createScopedBus};
@@ -0,0 +1 @@
1
+ import{MakaioBus as e}from"@makaio/framework/bus";import{AdapterSubjects as t,AgentSubjects as n,SessionSubjects as r}from"@makaio/framework/contracts";import{HmacAuth as i,ServerTransport as a}from"@makaio/framework/node/transports";var o=class{name;#e;constructor(e){this.name=e.name,this.#e=e.target}async connect(){}async disconnect(){}send(e,t){return this.#e.send(e,t)}cancelRequest(e,t){this.#e.cancelRequest?.(e,t)}onReceive(e){return()=>void 0}async subscribe(){}async unsubscribe(){}isReady(){return this.#e.isReady?.()!==!1}onBroadcastResults(e,t,n){this.#e.onBroadcastResults?.(e,t,n)}};const s=`websocket`;function c(e){let t=e?.trim();if(e!==void 0&&(!t||t===s))throw Error(`Invalid loopbackName: expected non-empty transport name other than "${s}"`);return t}function l(e){return[e.on(t.$all,e=>{console.info(`Adapter Event`,JSON.stringify(e))}),e.on(n.$all,e=>{console.info(`Agent Event`,JSON.stringify(e))}),e.on(r.$all,e=>{console.info(`Session Event`,JSON.stringify(e))})]}function u(e,t){for(let n of e)try{n()}catch(e){console.error(`[BusServer] Failed to remove debug bus listener ${t}`,e)}e.length=0}async function d(e,t,n){if(e.unregisterLoopback){try{e.unregisterLoopback.unregister()}catch(e){console.error(`[BusServer] Failed to unregister loopback transport after startup error`,e)}e.unregisterLoopback=null}if(t&&await n.disconnect().catch(e=>{console.error(`[BusServer] Failed to disconnect transport after startup error`,e)}),e.unregister){try{e.unregister.unregister()}catch(e){console.error(`[BusServer] Failed to unregister primary transport after startup error`,e)}e.unregister=null}u(e.debugUnsubscribers,`after startup error`)}async function f(e,t,n,r,i){let{transportRegistry:a}=e.getContext(),s=!1;try{if(r&&i.debugUnsubscribers.length===0&&i.debugUnsubscribers.push(...l(e)),i.unregister=a.registerTransport(`websocket`,t),await t.connect(),s=!0,n){let e=new o({target:t,name:n});i.unregisterLoopback=a.registerTransport(n,e)}}catch(e){throw await d(i,s,t),e}}async function p(e,t){t.unregisterLoopback&&=(t.unregisterLoopback.unregister(),null),t.unregister&&=(t.unregister.unregister(),null),u(t.debugUnsubscribers,`during stop`),await e.disconnect()}function m(t){let{websocket:n,auth:r,debug:i=!1,bus:o,loopbackName:s}=t,l=o??e,u=c(s),d=new a({websocket:n,auth:r,debug:i}),m={unregister:null,unregisterLoopback:null,debugUnsubscribers:[],isStarted:!1};return{transport:d,async start(){if(m.isStarted)throw Error(`BusServer is already started`);await f(l,d,u,i,m),m.isStarted=!0,i&&console.info(`[BusServer] Started and registered transport`)},async stop(){if(!m.isStarted){i&&console.warn(`[BusServer] stop() called when not started`);return}await p(d,m),m.isStarted=!1,i&&console.info(`[BusServer] Stopped and unregistered transport`)},getConnectionCount(){return d.getConnectionCount()}}}async function h(e){let{websocket:t,secret:n,debug:r=!1,bus:a,loopbackName:o}=e;try{let s=e.auth??(n?new i({secret:n}):void 0);r&&(console.info(`[startBusServer] Creating bus server...`),s||console.warn(`[startBusServer] ⚠️ No authentication - dev mode only!`));let c=m({websocket:t,auth:s,debug:r,bus:a,loopbackName:o});return await c.start(),r&&console.info(`[startBusServer] Bus server started`),c}catch(e){throw console.error(`[startBusServer] Failed to start bus server:`,e),e}}export{m as n,o as r,h as t};
@@ -0,0 +1,160 @@
1
+ import { BusTransport, IMakaioBus } from "@makaio/framework/bus";
2
+ import { TransportAuth, WebSocketServerLike } from "@makaio/framework/node/transports";
3
+
4
+ //#region packages/bus-server/src/types.d.ts
5
+ /**
6
+ * Configuration for creating a bus server instance.
7
+ */
8
+ interface BusServerConfig {
9
+ /**
10
+ * WebSocket server instance (e.g., from 'ws' package).
11
+ */
12
+ websocket: WebSocketServerLike;
13
+ /**
14
+ * Optional bus instance (defaults to global singleton).
15
+ *
16
+ * Useful for tests or custom contexts.
17
+ */
18
+ bus?: IMakaioBus;
19
+ /**
20
+ * Optional authentication provider for connection validation.
21
+ */
22
+ auth?: TransportAuth;
23
+ /**
24
+ * Enable debug logging.
25
+ *
26
+ * Defaults to false.
27
+ */
28
+ debug?: boolean;
29
+ /**
30
+ * Registry name for the loopback relay transport.
31
+ *
32
+ * When set, a loopback transport is registered under this name alongside
33
+ * the primary `'websocket'` transport. This enables cross-client relay:
34
+ * when a WebSocket client sends a request, the relay excludes `'websocket'`
35
+ * as the source but still reaches this loopback target, whose `send()`
36
+ * routes the request to subscribed clients on the same server.
37
+ */
38
+ loopbackName?: string;
39
+ }
40
+ /**
41
+ * Bus server instance with lifecycle management.
42
+ *
43
+ * Provides a clean API for starting/stopping the server and accessing
44
+ * the underlying transport.
45
+ */
46
+ interface BusServer {
47
+ /**
48
+ * The underlying transport instance.
49
+ *
50
+ * Use this to access transport-specific functionality or for testing.
51
+ */
52
+ transport: BusTransport;
53
+ /**
54
+ * Start accepting WebSocket connections.
55
+ *
56
+ * This registers the transport with MakaioBus and begins listening
57
+ * for client connections.
58
+ * @throws Error if start is called when already started
59
+ */
60
+ start(): Promise<void>;
61
+ /**
62
+ * Stop accepting connections and disconnect all clients.
63
+ *
64
+ * This unregisters the transport from MakaioBus and closes all
65
+ * active connections.
66
+ */
67
+ stop(): Promise<void>;
68
+ /**
69
+ * Get the current number of fully authenticated and connected clients.
70
+ * @returns Number of connected clients
71
+ */
72
+ getConnectionCount(): number;
73
+ }
74
+ //#endregion
75
+ //#region packages/bus-server/src/server-lifecycle.d.ts
76
+ /**
77
+ * Options for starting the bus server.
78
+ */
79
+ interface StartBusServerOptions {
80
+ /**
81
+ * WebSocket server instance.
82
+ *
83
+ * Accepts any {@link WebSocketServerLike} implementation, including the
84
+ * concrete `ws.WebSocketServer` and {@link HonoWebSocketBridge}.
85
+ */
86
+ websocket: WebSocketServerLike;
87
+ /**
88
+ * Shared secret for HMAC authentication.
89
+ *
90
+ * Optional. When omitted and `auth` is not provided, no authentication is
91
+ * enforced (dev mode). Ignored when `auth` is provided.
92
+ * IMPORTANT: Use a strong secret in production.
93
+ */
94
+ secret?: string;
95
+ /**
96
+ * Custom auth strategy.
97
+ *
98
+ * When provided, bypasses the default HMAC auth creation from `secret`.
99
+ * Use this to supply a `DispatchingAuth` (or any other `TransportAuth`)
100
+ * when multiple auth protocols must be supported on a single port.
101
+ */
102
+ auth?: TransportAuth;
103
+ /**
104
+ * Enable debug logging.
105
+ *
106
+ * Defaults to false.
107
+ */
108
+ debug?: boolean;
109
+ /**
110
+ * Optional bus instance (defaults to global singleton).
111
+ *
112
+ * Use this when you have a runtime-specific bus instance.
113
+ */
114
+ bus?: IMakaioBus;
115
+ /**
116
+ * Registry name for the loopback relay transport.
117
+ *
118
+ * When set, a loopback transport is registered under this name alongside
119
+ * the primary `'websocket'` transport. This enables cross-client relay:
120
+ * when a WebSocket client sends a request, the relay excludes `'websocket'`
121
+ * as the source but still reaches this loopback target, whose `send()`
122
+ * routes the request to subscribed clients on the same server.
123
+ */
124
+ loopbackName?: string;
125
+ }
126
+ /**
127
+ * Start the bus server with WebSocket transport.
128
+ *
129
+ * This function:
130
+ * 1. Resolves the auth strategy: explicit `auth` option, then `secret`-based HMAC, then none
131
+ * 2. Creates and starts the bus server
132
+ * 3. Returns the server instance for lifecycle management
133
+ *
134
+ * NOTE: Adapters should be initialized separately via MakaioRuntime
135
+ * before calling this function. The runtime handles adapter discovery,
136
+ * loading, and registration with MakaioBus.
137
+ * @param options - Server configuration options
138
+ * @returns BusServer instance with start/stop/getConnectionCount methods
139
+ * @throws Error if server startup fails
140
+ * @example
141
+ * ```typescript
142
+ * import { WebSocketServer } from 'ws';
143
+ * import { startBusServer } from '@makaio/framework/node/bus-server/server-lifecycle';
144
+ *
145
+ * const wss = new WebSocketServer({ port: 3000 });
146
+ * const busServer = await startBusServer({
147
+ * websocket: wss,
148
+ * secret: process.env.BUS_SECRET,
149
+ * debug: true,
150
+ * });
151
+ *
152
+ * console.debug('Connected clients:', busServer.getConnectionCount());
153
+ *
154
+ * // Later...
155
+ * await busServer.stop();
156
+ * ```
157
+ */
158
+ declare function startBusServer(options: StartBusServerOptions): Promise<BusServer>;
159
+ //#endregion
160
+ export { BusServerConfig as i, startBusServer as n, BusServer as r, StartBusServerOptions as t };
@@ -0,0 +1,98 @@
1
+ import { HandlerForSubjectDefinition, SubjectDefinition } from "@makaio/framework/core";
2
+ import { IMakaioBus } from "@makaio/framework/bus";
3
+
4
+ //#region packages/service-base/src/base-service.d.ts
5
+ /**
6
+ * Abstract base class for Makaio bus services.
7
+ *
8
+ * Owns the init/destroy lifecycle boilerplate — idempotency guards,
9
+ * cleanup array, and handler teardown — so concrete services only
10
+ * implement `onInit()` and optionally `onDestroy()`.
11
+ *
12
+ * Usage pattern:
13
+ * ```typescript
14
+ * class MyService extends BaseService {
15
+ * constructor(bus: IMakaioBus) { super(bus); }
16
+ *
17
+ * protected async onInit(): Promise<void> {
18
+ * this.registerHandler(MySubjects.foo, (ctx) => { ... });
19
+ * this.addCleanup(() => someExternalResource.close());
20
+ * }
21
+ *
22
+ * protected async onDestroy(): Promise<void> {
23
+ * // Only needed for cleanup beyond handler unsubscription
24
+ * }
25
+ * }
26
+ * ```
27
+ *
28
+ * `destroy()` is awaitable for services with async teardown, while remaining
29
+ * safe to call without awaiting from synchronous call sites.
30
+ */
31
+ declare abstract class BaseService {
32
+ protected readonly bus: IMakaioBus;
33
+ private readonly _cleanups;
34
+ private _initialized;
35
+ private _initPromise;
36
+ private _destroyPromise;
37
+ /**
38
+ * @param bus - Bus instance used for registering handlers
39
+ */
40
+ protected constructor(bus: IMakaioBus);
41
+ /**
42
+ * Whether the service has been successfully initialized.
43
+ *
44
+ * Returns `true` after `init()` completes and before `destroy()` is called.
45
+ * @returns `true` if initialized, `false` otherwise
46
+ */
47
+ get initialized(): boolean;
48
+ /**
49
+ * Initialize the service.
50
+ *
51
+ * Delegates to `onInit()` once; subsequent calls are no-ops (idempotent).
52
+ * @returns Promise that resolves when initialization is complete
53
+ */
54
+ init(): Promise<void>;
55
+ /**
56
+ * Destroy the service and unsubscribe all registered handlers.
57
+ *
58
+ * Calls the optional `onDestroy()` hook before running cleanups, then
59
+ * resets the initialized flag. Safe to call multiple times (idempotent).
60
+ * @returns Promise that resolves after teardown completes
61
+ */
62
+ destroy(): Promise<void>;
63
+ /**
64
+ * Register a bus handler and enqueue its unsubscribe function for teardown.
65
+ *
66
+ * Equivalent to `this._cleanups.push(this.bus.on(subject, handler))`.
67
+ * @param subject - The subject definition to listen on
68
+ * @param handler - Handler function for the subject
69
+ */
70
+ protected registerHandler<S extends SubjectDefinition>(subject: S, handler: HandlerForSubjectDefinition<S>): void;
71
+ /**
72
+ * Enqueue an arbitrary cleanup function to be called on `destroy()`.
73
+ *
74
+ * Use for non-handler resources (timers, external subscriptions, etc.).
75
+ * @param fn - Function to invoke during teardown
76
+ */
77
+ protected addCleanup(fn: () => void | Promise<void>): void;
78
+ /**
79
+ * Service initialization hook.
80
+ *
81
+ * Called once by `init()`. Register bus handlers via `registerHandler()`
82
+ * and other cleanup resources via `addCleanup()` here.
83
+ * @returns Promise or void — async is allowed
84
+ */
85
+ protected abstract onInit(): Promise<void> | void;
86
+ /**
87
+ * Optional service teardown hook.
88
+ *
89
+ * Called by `destroy()` before automatic handler unsubscription.
90
+ * Implement only when there are resources beyond bus handlers to clean up
91
+ * (e.g., stopping trackers, clearing maps, releasing external handles).
92
+ */
93
+ protected onDestroy?(): void | Promise<void>;
94
+ private runCleanups;
95
+ private logCleanupError;
96
+ }
97
+ //#endregion
98
+ export { BaseService };
@@ -0,0 +1 @@
1
+ var e=class{bus;_cleanups=[];_initialized=!1;_initPromise=null;_destroyPromise=null;constructor(e){this.bus=e}get initialized(){return this._initialized}async init(){if(this._destroyPromise&&await this._destroyPromise,!this._initialized)return this._initPromise||=(async()=>{try{await this.onInit(),this._initialized=!0}catch(e){throw await this.runCleanups(),this._cleanups.length=0,e}finally{this._initPromise=null}})(),this._initPromise}async destroy(){if(this._destroyPromise)return this._destroyPromise;this._destroyPromise=(async()=>{if(this._initPromise)try{await this._initPromise}catch{return}if(this._initialized){this._initialized=!1;try{await this.onDestroy?.()}catch(e){this.logCleanupError(e)}await this.runCleanups(),this._cleanups.length=0}})();try{await this._destroyPromise}finally{this._destroyPromise=null}}registerHandler(e,t){this._cleanups.push(this.bus.on(e,t))}addCleanup(e){this._cleanups.push(e)}async runCleanups(){for(let e of this._cleanups)try{await e()}catch(e){this.logCleanupError(e)}}logCleanupError(e){let t=this;if(t.logger?.error){t.logger.error(`Cleanup failed during service lifecycle`,e);return}console.error(`Cleanup failed during service lifecycle`,e)}};export{e as BaseService};
@@ -0,0 +1,4 @@
1
+ import { a as ResolveIdResponseSchema, c as ResolveNameResponse, i as ResolveIdResponse, l as ResolveNameResponseSchema, n as ResolveIdRequest, o as ResolveNameRequest, r as ResolveIdRequestSchema, s as ResolveNameRequestSchema, t as AdapterRuntimeSchemas } from "../../schemas-DaRSfYLf.mjs";
2
+ import { n as AdapterRuntimeSubjects, t as AdapterRuntimeNamespace } from "../../namespace-CTm3nEvh.mjs";
3
+ import { a as resolveDeterministicAdapterId, i as registerAdapterRuntimeIdentityHandlers, n as RegisteredAdapterRuntimeIdentityHandlers, r as buildDeterministicAdapterId, t as AdapterIdentityRegistry } from "../../index-soFznFCy2.mjs";
4
+ export { AdapterIdentityRegistry, AdapterRuntimeNamespace, AdapterRuntimeSchemas, AdapterRuntimeSubjects, RegisteredAdapterRuntimeIdentityHandlers, ResolveIdRequest, ResolveIdRequestSchema, ResolveIdResponse, ResolveIdResponseSchema, ResolveNameRequest, ResolveNameRequestSchema, ResolveNameResponse, ResolveNameResponseSchema, buildDeterministicAdapterId, registerAdapterRuntimeIdentityHandlers, resolveDeterministicAdapterId };
@@ -0,0 +1 @@
1
+ import{AdapterRuntimeSchemas as e,ResolveIdRequestSchema as t,ResolveIdResponseSchema as n,ResolveNameRequestSchema as r,ResolveNameResponseSchema as i}from"./schemas.mjs";import{AdapterRuntimeNamespace as a,AdapterRuntimeSubjects as o}from"./namespace.mjs";import{i as s,n as c,r as l,t as u}from"../../identity-Cz2IeEtm.mjs";export{u as AdapterIdentityRegistry,a as AdapterRuntimeNamespace,e as AdapterRuntimeSchemas,o as AdapterRuntimeSubjects,t as ResolveIdRequestSchema,n as ResolveIdResponseSchema,r as ResolveNameRequestSchema,i as ResolveNameResponseSchema,c as buildDeterministicAdapterId,l as registerAdapterRuntimeIdentityHandlers,s as resolveDeterministicAdapterId};
@@ -0,0 +1,2 @@
1
+ import { n as AdapterRuntimeSubjects, t as AdapterRuntimeNamespace } from "../../namespace-CTm3nEvh.mjs";
2
+ export { AdapterRuntimeNamespace, AdapterRuntimeSubjects };
@@ -0,0 +1 @@
1
+ import{AdapterRuntimeSchemas as e}from"./schemas.mjs";import{createBusNamespace as t}from"@makaio/framework/core";const n=t(`adapterRuntime`,e),r=n.subjects;export{n as AdapterRuntimeNamespace,r as AdapterRuntimeSubjects};
@@ -0,0 +1,2 @@
1
+ import { a as ResolveIdResponseSchema, c as ResolveNameResponse, i as ResolveIdResponse, l as ResolveNameResponseSchema, n as ResolveIdRequest, o as ResolveNameRequest, r as ResolveIdRequestSchema, s as ResolveNameRequestSchema, t as AdapterRuntimeSchemas } from "../../schemas-DaRSfYLf.mjs";
2
+ export { AdapterRuntimeSchemas, ResolveIdRequest, ResolveIdRequestSchema, ResolveIdResponse, ResolveIdResponseSchema, ResolveNameRequest, ResolveNameRequestSchema, ResolveNameResponse, ResolveNameResponseSchema };
@@ -0,0 +1 @@
1
+ import{z as e}from"zod";const t=e.object({adapterName:e.string(),machineId:e.string().optional()}).strict(),n=e.object({adapterId:e.string()}).strict(),r=e.object({adapterId:e.string()}).strict(),i=e.object({adapterName:e.string()}).strict(),a={resolveId:{request:t,response:n},resolveName:{request:r,response:i}};export{a as AdapterRuntimeSchemas,t as ResolveIdRequestSchema,n as ResolveIdResponseSchema,r as ResolveNameRequestSchema,i as ResolveNameResponseSchema};
@@ -0,0 +1,3 @@
1
+ import { S as ProviderConfigFileRecordSchema, _ as BindingRecord, a as CanonicalProviderConfigPatchSchema, b as EffectiveAdapterSchema, c as CreateCanonicalProviderConfigInputSchema, d as ProviderConfigFileSet, f as AdapterFileConfig, g as AdapterSubsystemSchemas, h as AdapterReadinessSchema, i as CanonicalProviderConfigPatch, l as AdapterFileConfigSet, m as AdapterReadiness, n as CanonicalProviderConfigCredentialRefsPayload, o as CreateCanonicalProviderConfigInput, p as AdapterFileConfigSchema, r as CanonicalProviderConfigCredentialRefsSchema, s as CreateCanonicalProviderConfigInputPayload, t as CanonicalProviderConfigCredentialRefs, u as IAdapterConfigRepository, v as BindingRecordSchema, x as ProviderConfigFileRecord, y as EffectiveAdapter } from "../../index-B_zQC98V.mjs";
2
+ import { n as AdapterSubsystemSubjects, t as AdapterSubsystemNamespace } from "../../namespace-DLovh2Ws.mjs";
3
+ export { AdapterFileConfig, AdapterFileConfigSchema, AdapterFileConfigSet, AdapterReadiness, AdapterReadinessSchema, AdapterSubsystemNamespace, AdapterSubsystemSchemas, AdapterSubsystemSubjects, BindingRecord, BindingRecordSchema, CanonicalProviderConfigCredentialRefs, CanonicalProviderConfigCredentialRefsPayload, CanonicalProviderConfigCredentialRefsSchema, CanonicalProviderConfigPatch, CanonicalProviderConfigPatchSchema, CreateCanonicalProviderConfigInput, CreateCanonicalProviderConfigInputPayload, CreateCanonicalProviderConfigInputSchema, EffectiveAdapter, EffectiveAdapterSchema, IAdapterConfigRepository, ProviderConfigFileRecord, ProviderConfigFileRecordSchema, ProviderConfigFileSet };
@@ -0,0 +1 @@
1
+ import{a as e,c as t,d as n,i as r,l as i,n as a,o,r as s,s as c,t as l,u}from"../../namespace-DkRgbZYn.mjs";export{s as AdapterFileConfigSchema,r as AdapterReadinessSchema,l as AdapterSubsystemNamespace,e as AdapterSubsystemSchemas,a as AdapterSubsystemSubjects,o as BindingRecordSchema,i as CanonicalProviderConfigCredentialRefsSchema,u as CanonicalProviderConfigPatchSchema,n as CreateCanonicalProviderConfigInputSchema,c as EffectiveAdapterSchema,t as ProviderConfigFileRecordSchema};
@@ -0,0 +1,2 @@
1
+ import { n as AdapterSubsystemSubjects, t as AdapterSubsystemNamespace } from "../../namespace-DLovh2Ws.mjs";
2
+ export { AdapterSubsystemNamespace, AdapterSubsystemSubjects };
@@ -0,0 +1 @@
1
+ import{n as e,t}from"../../namespace-DkRgbZYn.mjs";export{t as AdapterSubsystemNamespace,e as AdapterSubsystemSubjects};
@@ -0,0 +1,3 @@
1
+ import { a as AgentRuntimeSelectionSchema, i as AgentRuntimeSelection, n as AgentInstanceStatusSchema, r as AgentRuntimeSchemas, t as AgentInstanceStatus } from "../../schemas-j7ivZ2HI.mjs";
2
+ import { n as AgentRuntimeSubjects, t as AgentRuntimeNamespace } from "../../namespace-CaaNnKcR.mjs";
3
+ export { type AgentInstanceStatus, AgentInstanceStatusSchema, AgentRuntimeNamespace, AgentRuntimeSchemas, type AgentRuntimeSelection, AgentRuntimeSelectionSchema, AgentRuntimeSubjects };
@@ -0,0 +1 @@
1
+ import{AgentInstanceStatusSchema as e,AgentRuntimeSchemas as t,AgentRuntimeSelectionSchema as n}from"./schemas.mjs";import{AgentRuntimeNamespace as r,AgentRuntimeSubjects as i}from"./namespace.mjs";export{e as AgentInstanceStatusSchema,r as AgentRuntimeNamespace,t as AgentRuntimeSchemas,n as AgentRuntimeSelectionSchema,i as AgentRuntimeSubjects};
@@ -0,0 +1,2 @@
1
+ import { n as AgentRuntimeSubjects, t as AgentRuntimeNamespace } from "../../namespace-CaaNnKcR.mjs";
2
+ export { AgentRuntimeNamespace, AgentRuntimeSubjects };
@@ -0,0 +1 @@
1
+ import{AgentRuntimeSchemas as e}from"./schemas.mjs";import{createBusNamespace as t}from"@makaio/framework/core";const n=t(`agentRuntime`,e),r=n.subjects;export{n as AgentRuntimeNamespace,r as AgentRuntimeSubjects};
@@ -0,0 +1,2 @@
1
+ import { a as AgentRuntimeSelectionSchema, i as AgentRuntimeSelection, n as AgentInstanceStatusSchema, r as AgentRuntimeSchemas, t as AgentInstanceStatus } from "../../schemas-j7ivZ2HI.mjs";
2
+ export { AgentInstanceStatus, AgentInstanceStatusSchema, AgentRuntimeSchemas, AgentRuntimeSelection, AgentRuntimeSelectionSchema };
@@ -0,0 +1 @@
1
+ import{z as e}from"zod";import{AgentSelectionBaseSchema as t}from"@makaio/framework/contracts/adapter";const n=new Set([`canonical-model`]);function r(e){return!n.has(e.kind)}const i=t.refine(r,{path:[`kind`],message:`canonical-model selections must resolve before agentRuntime.spawn`}),a=e.object({instanceId:e.string(),kind:e.string(),displayName:e.string(),subagentId:e.string(),status:e.enum([`running`,`waiting_input`,`completed`,`failed`,`cancelled`]),result:e.string().optional(),error:e.string().optional(),progress:e.array(e.string()).optional()}),o={spawn:{request:e.object({agent:i,prompt:e.string(),sessionId:e.string(),projectId:e.string().optional()}),response:e.object({instanceId:e.string()})},get:{request:e.object({instanceId:e.string()}),response:a},send:{request:e.object({instanceId:e.string(),content:e.string()}),response:e.object({sent:e.boolean()})},kill:{request:e.object({instanceId:e.string()}),response:e.object({killed:e.boolean()})},spawned:e.object({instanceId:e.string(),kind:e.string(),displayName:e.string()}),completed:e.object({instanceId:e.string(),success:e.boolean(),result:e.string().optional(),error:e.string().optional()})};export{a as AgentInstanceStatusSchema,o as AgentRuntimeSchemas,i as AgentRuntimeSelectionSchema};
@@ -0,0 +1,2 @@
1
+ import { t as CapabilityService } from "../../index-Cs0kZXIz2.mjs";
2
+ export { CapabilityService };
@@ -0,0 +1 @@
1
+ import{t as e}from"../../capability-service-CJbmhfv9.mjs";export{e as CapabilityService};
@@ -0,0 +1,56 @@
1
+ import { z } from "zod";
2
+ import * as _$_makaio_core0 from "@makaio/framework/core";
3
+
4
+ //#region services/core/src/cli-detection/namespace.d.ts
5
+ /** Detection result for a single CLI binary. */
6
+ declare const CLIDetectionResultSchema: z.ZodObject<{
7
+ binary: z.ZodString;
8
+ found: z.ZodBoolean;
9
+ version: z.ZodOptional<z.ZodString>;
10
+ path: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>;
12
+ type CLIDetectionResult = z.infer<typeof CLIDetectionResultSchema>;
13
+ /** CLI Detection namespace registration. */
14
+ declare const CLIDetectionNamespace: _$_makaio_core0.BusNamespaceDefinition<"cliDetection", {
15
+ /**
16
+ * Scan for CLI tools.
17
+ *
18
+ * Detects installed CLI binaries and their versions.
19
+ */
20
+ readonly scan: {
21
+ readonly request: z.ZodObject<{
22
+ binaries: z.ZodArray<z.ZodString>;
23
+ }, z.core.$strip>;
24
+ readonly response: z.ZodObject<{
25
+ results: z.ZodArray<z.ZodObject<{
26
+ binary: z.ZodString;
27
+ found: z.ZodBoolean;
28
+ version: z.ZodOptional<z.ZodString>;
29
+ path: z.ZodOptional<z.ZodString>;
30
+ }, z.core.$strip>>;
31
+ }, z.core.$strip>;
32
+ };
33
+ }>;
34
+ /** Typed subjects for CLI detection operations. */
35
+ declare const CLIDetectionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjectDefinitions<"cliDetection", {
36
+ /**
37
+ * Scan for CLI tools.
38
+ *
39
+ * Detects installed CLI binaries and their versions.
40
+ */
41
+ readonly scan: {
42
+ readonly request: z.ZodObject<{
43
+ binaries: z.ZodArray<z.ZodString>;
44
+ }, z.core.$strip>;
45
+ readonly response: z.ZodObject<{
46
+ results: z.ZodArray<z.ZodObject<{
47
+ binary: z.ZodString;
48
+ found: z.ZodBoolean;
49
+ version: z.ZodOptional<z.ZodString>;
50
+ path: z.ZodOptional<z.ZodString>;
51
+ }, z.core.$strip>>;
52
+ }, z.core.$strip>;
53
+ };
54
+ }>, "cliDetection">;
55
+ //#endregion
56
+ export { CLIDetectionNamespace, CLIDetectionResult, CLIDetectionResultSchema, CLIDetectionSubjects };
@@ -0,0 +1 @@
1
+ import{z as e}from"zod";import{createBusNamespace as t}from"@makaio/framework/core";const n=e.object({binary:e.string(),found:e.boolean(),version:e.string().optional(),path:e.string().optional()}),r=t(`cliDetection`,{scan:{request:e.object({binaries:e.array(e.string())}),response:e.object({results:e.array(n)})}}),i=r.subjects;export{r as CLIDetectionNamespace,n as CLIDetectionResultSchema,i as CLIDetectionSubjects};
@@ -0,0 +1,3 @@
1
+ import { n as CodebaseSubjects, t as CodebaseNamespace } from "../../namespace-CaoZ3S78.mjs";
2
+ import { n as CodebaseChangedEventSchema, r as CodebaseSchemas, t as CodebaseChangedEvent } from "../../schemas-Bd0OjRQf.mjs";
3
+ export { type CodebaseChangedEvent, CodebaseChangedEventSchema, CodebaseNamespace, CodebaseSchemas, CodebaseSubjects };
@@ -0,0 +1 @@
1
+ import{CodebaseChangedEventSchema as e,CodebaseSchemas as t}from"./schemas.mjs";import{CodebaseNamespace as n,CodebaseSubjects as r}from"./namespace.mjs";export{e as CodebaseChangedEventSchema,n as CodebaseNamespace,t as CodebaseSchemas,r as CodebaseSubjects};
@@ -0,0 +1,2 @@
1
+ import { n as CodebaseSubjects, t as CodebaseNamespace } from "../../namespace-CaoZ3S78.mjs";
2
+ export { CodebaseNamespace, CodebaseSubjects };
@@ -0,0 +1 @@
1
+ import{CodebaseSchemas as e}from"./schemas.mjs";import{createBusNamespace as t}from"@makaio/framework/core";const n=t(`codebase`,e),r=n.subjects;export{n as CodebaseNamespace,r as CodebaseSubjects};
@@ -0,0 +1,2 @@
1
+ import { n as CodebaseChangedEventSchema, r as CodebaseSchemas, t as CodebaseChangedEvent } from "../../schemas-Bd0OjRQf.mjs";
2
+ export { CodebaseChangedEvent, CodebaseChangedEventSchema, CodebaseSchemas };
@@ -0,0 +1 @@
1
+ import{z as e}from"zod";const t=e.object({repoPath:e.string(),scope:e.string(),fingerprint:e.string(),previousFingerprint:e.string().optional(),changedPaths:e.array(e.string()),commitSha:e.string(),timestamp:e.iso.datetime(),projectId:e.string(),worktree:e.string().optional(),worktreeId:e.string().optional(),workstreamId:e.string().optional()}),n={changed:t};export{t as CodebaseChangedEventSchema,n as CodebaseSchemas};
@@ -0,0 +1,3 @@
1
+ import { a as CompressResponse, c as CompressionEventSchema, d as ExtractedContextSchema, f as TechnicalDetails, h as TodoEntrySchema, i as CompressRequestSchema, l as CompressionSchemas, m as TodoEntry, n as BugEntrySchema, o as CompressResponseSchema, p as TechnicalDetailsSchema, r as CompressRequest, s as CompressionEvent, t as BugEntry, u as ExtractedContext } from "../../schemas-CDBSjg7o.mjs";
2
+ import { n as CompressionSubjects, t as CompressionNamespace } from "../../namespace-IV1QK__V.mjs";
3
+ export { type BugEntry, BugEntrySchema, type CompressRequest, CompressRequestSchema, type CompressResponse, CompressResponseSchema, type CompressionEvent, CompressionEventSchema, CompressionNamespace, CompressionSchemas, CompressionSubjects, type ExtractedContext, ExtractedContextSchema, type TechnicalDetails, TechnicalDetailsSchema, type TodoEntry, TodoEntrySchema };
@@ -0,0 +1 @@
1
+ import{BugEntrySchema as e,CompressRequestSchema as t,CompressResponseSchema as n,CompressionEventSchema as r,CompressionSchemas as i,ExtractedContextSchema as a,TechnicalDetailsSchema as o,TodoEntrySchema as s}from"./schemas.mjs";import{CompressionNamespace as c,CompressionSubjects as l}from"./namespace.mjs";export{e as BugEntrySchema,t as CompressRequestSchema,n as CompressResponseSchema,r as CompressionEventSchema,c as CompressionNamespace,i as CompressionSchemas,l as CompressionSubjects,a as ExtractedContextSchema,o as TechnicalDetailsSchema,s as TodoEntrySchema};
@@ -0,0 +1,2 @@
1
+ import { n as CompressionSubjects, t as CompressionNamespace } from "../../namespace-IV1QK__V.mjs";
2
+ export { CompressionNamespace, CompressionSubjects };
@@ -0,0 +1 @@
1
+ import{CompressionSchemas as e}from"./schemas.mjs";import{createBusNamespace as t}from"@makaio/framework/core";const n=t(`compression`,e),r=n.subjects;export{n as CompressionNamespace,r as CompressionSubjects};
@@ -0,0 +1,2 @@
1
+ import { a as CompressResponse, c as CompressionEventSchema, d as ExtractedContextSchema, f as TechnicalDetails, h as TodoEntrySchema, i as CompressRequestSchema, l as CompressionSchemas, m as TodoEntry, n as BugEntrySchema, o as CompressResponseSchema, p as TechnicalDetailsSchema, r as CompressRequest, s as CompressionEvent, t as BugEntry, u as ExtractedContext } from "../../schemas-CDBSjg7o.mjs";
2
+ export { BugEntry, BugEntrySchema, CompressRequest, CompressRequestSchema, CompressResponse, CompressResponseSchema, CompressionEvent, CompressionEventSchema, CompressionSchemas, ExtractedContext, ExtractedContextSchema, TechnicalDetails, TechnicalDetailsSchema, TodoEntry, TodoEntrySchema };
@@ -0,0 +1 @@
1
+ import{z as e}from"zod";const t=e.object({issue:e.string(),location:e.string(),impact:e.string()}),n=e.object({issue:e.string(),location:e.string(),priority:e.enum([`high`,`medium`,`low`]).optional()}),r=e.object({files:e.array(e.string()),schemas:e.record(e.string(),e.unknown()),apis:e.array(e.string()),config:e.record(e.string(),e.string())}),i=e.object({resolved_items:e.array(e.string()),known_bugs:e.array(t),todos:e.array(n),key_decisions_and_rationale:e.array(e.string()),technical_details:r,constraints_and_requirements:e.array(e.string()),current_state:e.string(),roadmap:e.array(e.string()),data_flows:e.array(e.string()),component_interactions:e.record(e.string(),e.string()),key_files:e.record(e.string(),e.string()),helpful_hint:e.array(e.string())}),a=e.object({timestamp:e.number(),type:e.enum([`full`,`incremental`,`rehydrate`]),sourceTokens:e.number(),resultTokens:e.number(),model:e.string(),promptVersion:e.string(),depth:e.number()}),o=e.object({sessionId:e.string(),upToTurnId:e.string().optional()}),s=e.object({sessionId:e.string(),extractedContext:i,compressionEvent:a,newTokenCount:e.number()}),c={compress:{request:o,response:s},getHistory:{request:e.object({sessionId:e.string()}),response:e.object({events:e.array(a)})}};export{t as BugEntrySchema,o as CompressRequestSchema,s as CompressResponseSchema,a as CompressionEventSchema,c as CompressionSchemas,i as ExtractedContextSchema,r as TechnicalDetailsSchema,n as TodoEntrySchema};