@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,128 @@
1
+ import { z } from "zod";
2
+ import { SessionMessage } from "@makaio/framework/contracts";
3
+
4
+ //#region services/core/src/session-editor/types.d.ts
5
+ /**
6
+ * Category of pipeline action.
7
+ */
8
+ declare const ActionCategorySchema: z.ZodEnum<{
9
+ compression: "compression";
10
+ extraction: "extraction";
11
+ transformation: "transformation";
12
+ }>;
13
+ type ActionCategory = z.infer<typeof ActionCategorySchema>;
14
+ /**
15
+ * Result of a pipeline action - either transformed messages or a context JSON.
16
+ */
17
+ declare const ActionResultSchema: z.ZodUnion<readonly [z.ZodObject<{
18
+ kind: z.ZodLiteral<"messages">;
19
+ messages: z.ZodArray<z.ZodObject<{
20
+ messageId: z.ZodString;
21
+ turnId: z.ZodNullable<z.ZodString>;
22
+ sessionId: z.ZodString;
23
+ role: z.ZodEnum<{
24
+ user: "user";
25
+ assistant: "assistant";
26
+ }>;
27
+ contentText: z.ZodString;
28
+ blocks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
29
+ type: z.ZodLiteral<"text">;
30
+ content: z.ZodString;
31
+ }, z.core.$strip>, z.ZodObject<{
32
+ type: z.ZodLiteral<"image">;
33
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
34
+ type: z.ZodLiteral<"base64">;
35
+ data: z.ZodString;
36
+ mimeType: z.ZodString;
37
+ }, z.core.$strip>, z.ZodObject<{
38
+ type: z.ZodLiteral<"url">;
39
+ url: z.ZodString;
40
+ mimeType: z.ZodOptional<z.ZodString>;
41
+ }, z.core.$strip>], "type">;
42
+ }, z.core.$strip>, z.ZodObject<{
43
+ type: z.ZodLiteral<"document">;
44
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
45
+ type: z.ZodLiteral<"base64">;
46
+ data: z.ZodString;
47
+ mimeType: z.ZodString;
48
+ }, z.core.$strip>, z.ZodObject<{
49
+ type: z.ZodLiteral<"url">;
50
+ url: z.ZodString;
51
+ mimeType: z.ZodOptional<z.ZodString>;
52
+ }, z.core.$strip>], "type">;
53
+ }, z.core.$strip>, z.ZodObject<{
54
+ type: z.ZodLiteral<"attachment">;
55
+ fileName: z.ZodString;
56
+ filePath: z.ZodString;
57
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
58
+ type: z.ZodLiteral<"base64">;
59
+ data: z.ZodString;
60
+ mimeType: z.ZodString;
61
+ }, z.core.$strip>, z.ZodObject<{
62
+ type: z.ZodLiteral<"url">;
63
+ url: z.ZodString;
64
+ mimeType: z.ZodOptional<z.ZodString>;
65
+ }, z.core.$strip>], "type">;
66
+ displayName: z.ZodOptional<z.ZodString>;
67
+ attachmentType: z.ZodEnum<{
68
+ file: "file";
69
+ directory: "directory";
70
+ }>;
71
+ }, z.core.$strip>, z.ZodObject<{
72
+ type: z.ZodLiteral<"reasoning">;
73
+ content: z.ZodString;
74
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
75
+ }, z.core.$strip>, z.ZodObject<{
76
+ type: z.ZodLiteral<"tool_call">;
77
+ toolCallId: z.ZodString;
78
+ name: z.ZodString;
79
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
80
+ }, z.core.$strip>, z.ZodObject<{
81
+ type: z.ZodLiteral<"tool_output">;
82
+ toolCallId: z.ZodString;
83
+ output: z.ZodString;
84
+ isError: z.ZodOptional<z.ZodBoolean>;
85
+ }, z.core.$strip>], "type">>;
86
+ agentId: z.ZodOptional<z.ZodString>;
87
+ adapterSessionId: z.ZodOptional<z.ZodString>;
88
+ adapterMessageId: z.ZodOptional<z.ZodString>;
89
+ timestamp: z.ZodNumber;
90
+ editOf: z.ZodOptional<z.ZodString>;
91
+ origin: z.ZodOptional<z.ZodEnum<{
92
+ text: "text";
93
+ voice: "voice";
94
+ compact: "compact";
95
+ }>>;
96
+ }, z.core.$strip>>;
97
+ }, z.core.$strip>, z.ZodObject<{
98
+ kind: z.ZodLiteral<"context">;
99
+ json: z.ZodRecord<z.ZodString, z.ZodUnknown>;
100
+ tokenEstimate: z.ZodOptional<z.ZodNumber>;
101
+ }, z.core.$strip>]>;
102
+ type ActionResult = z.infer<typeof ActionResultSchema>;
103
+ /**
104
+ * Definition of a pipeline action that can be registered and executed.
105
+ */
106
+ interface SessionEditorAction {
107
+ /** Unique identifier */
108
+ id: string;
109
+ /** Display label */
110
+ label: string;
111
+ /** Description shown in UI */
112
+ description: string;
113
+ /** Category for grouping in UI */
114
+ category: ActionCategory;
115
+ /** Execute the action on messages */
116
+ execute(messages: SessionMessage[], options?: Record<string, unknown>): Promise<ActionResult>;
117
+ /** Optional: estimate resulting token count */
118
+ estimateTokens?(messages: SessionMessage[]): Promise<number>;
119
+ }
120
+ /**
121
+ * Pipeline step configuration (action + options).
122
+ */
123
+ interface PipelineStep {
124
+ actionId: string;
125
+ options?: Record<string, unknown>;
126
+ }
127
+ //#endregion
128
+ export { PipelineStep as a, ActionResultSchema as i, ActionCategorySchema as n, SessionEditorAction as o, ActionResult as r, ActionCategory as t };
@@ -0,0 +1,262 @@
1
+ import { z } from "zod";
2
+
3
+ //#region packages/rules/src/types.d.ts
4
+ /**
5
+ * JSON primitive value supported by serialized rules.
6
+ */
7
+ type JsonPrimitive = string | number | boolean | null;
8
+ /**
9
+ * Scalar comparison value supported by field operators.
10
+ */
11
+ type ScalarValue = JsonPrimitive;
12
+ /**
13
+ * Leaf-level comparison against a single field value.
14
+ *
15
+ * Operator payloads are intentionally scalar-only for compatibility with the
16
+ * existing payload filter semantics.
17
+ */
18
+ type FieldOperator = ScalarValue | {
19
+ $eq: ScalarValue;
20
+ } | {
21
+ $ne: ScalarValue;
22
+ } | {
23
+ $in: ScalarValue[];
24
+ } | {
25
+ $nin: ScalarValue[];
26
+ } | {
27
+ $exists: boolean;
28
+ } | {
29
+ $startsWith: string;
30
+ } | {
31
+ $endsWith: string;
32
+ } | {
33
+ $glob: string;
34
+ };
35
+ /**
36
+ * A single field comparison against the evaluation context.
37
+ */
38
+ interface FieldCondition {
39
+ /** Dot-notation path into the evaluation context. */
40
+ field: string;
41
+ /** Comparison to perform against the resolved field value. */
42
+ operator: FieldOperator;
43
+ }
44
+ /**
45
+ * Boolean AND across multiple child conditions.
46
+ */
47
+ interface AndCondition {
48
+ /** Child conditions that must all evaluate truthy. */
49
+ $and: Condition[];
50
+ }
51
+ /**
52
+ * Boolean OR across multiple child conditions.
53
+ */
54
+ interface OrCondition {
55
+ /** Child conditions where any truthy child matches. */
56
+ $or: Condition[];
57
+ }
58
+ /**
59
+ * Boolean negation of a child condition.
60
+ */
61
+ interface NotCondition {
62
+ /** Child condition to negate. */
63
+ $not: Condition;
64
+ }
65
+ /**
66
+ * Jexl-backed expression condition evaluated against the full context.
67
+ */
68
+ interface ExpressionCondition {
69
+ /** Expression string evaluated against the full context object. */
70
+ $expr: string;
71
+ }
72
+ /**
73
+ * Any condition supported by the rules engine.
74
+ */
75
+ type Condition = FieldCondition | AndCondition | OrCondition | NotCondition | ExpressionCondition;
76
+ //#endregion
77
+ //#region packages/rules/src/schemas.d.ts
78
+ /**
79
+ * Zod schema for any supported condition.
80
+ */
81
+ declare const ConditionSchema: z.ZodType<Condition>;
82
+ //#endregion
83
+ //#region services/core/src/context-rules/types.d.ts
84
+ /**
85
+ * Default turn-context bucket used for rules that inject additional context.
86
+ */
87
+ declare const DEFAULT_CONTEXT_RULE_TURN_CONTEXT_KEY = "contextRules";
88
+ /**
89
+ * Allowlisted managed instruction files owned by Context Rules.
90
+ */
91
+ declare const MANAGED_INSTRUCTION_FILE_TARGETS: readonly ["AGENTS.md", "CLAUDE.md", "GEMINI.md", "COPILOT.md", "CURSOR.md"];
92
+ /**
93
+ * Base snapshot fields available from current runtime seams.
94
+ *
95
+ * Host-owned fields are added through declaration merging on
96
+ * {@link ContextSnapshotExtensions}.
97
+ */
98
+ interface ContextSnapshotBase {
99
+ /** Current working directory for the active agent/runtime, when known. */
100
+ cwd?: string;
101
+ /** Adapter identifier for the active agent/runtime, when known. */
102
+ adapterId?: string;
103
+ /** Makaio session identifier, when the runtime is attached to a session. */
104
+ sessionId?: string;
105
+ /** Active agent identifier, when resolution is tied to a specific agent. */
106
+ agentId?: string;
107
+ }
108
+ /**
109
+ * Host-owned declaration merge target for snapshot enrichment.
110
+ *
111
+ * Augment `@makaio/services-core/context-rules` from host code rather than
112
+ * widening the root services-core module.
113
+ */
114
+ interface ContextSnapshotExtensions {}
115
+ /**
116
+ * Fully resolved snapshot shape used for condition evaluation and rendering.
117
+ */
118
+ type ContextSnapshot = ContextSnapshotBase & ContextSnapshotExtensions;
119
+ /**
120
+ * Allowlisted managed instruction file target.
121
+ */
122
+ type ManagedInstructionFileTarget = (typeof MANAGED_INSTRUCTION_FILE_TARGETS)[number];
123
+ /**
124
+ * Scope levels supported by persisted context rules.
125
+ */
126
+ type ContextRuleScope = 'global' | 'project' | 'session';
127
+ /**
128
+ * Any condition supported by context-rule resolution.
129
+ */
130
+ type ContextRuleCondition = z.infer<typeof ConditionSchema>;
131
+ /**
132
+ * Rule action that injects rendered content into turn context.
133
+ */
134
+ interface TurnContextRuleAction {
135
+ /** Delivery channel for the rendered rule content. */
136
+ channel: 'turnContext';
137
+ /** Template content rendered against the resolved snapshot. */
138
+ content: string;
139
+ /** Optional turn-context bucket key. Defaults to `contextRules`. */
140
+ turnContextKey?: string;
141
+ }
142
+ /**
143
+ * Rule action that projects rendered content into a managed root file.
144
+ */
145
+ interface FileContextRuleAction {
146
+ /** Delivery channel for the rendered rule content. */
147
+ channel: 'file';
148
+ /** Template content rendered against the resolved snapshot. */
149
+ content: string;
150
+ /** Managed instruction file that receives the rendered projection. */
151
+ fileTarget: ManagedInstructionFileTarget;
152
+ }
153
+ /**
154
+ * Supported context-rule action payloads.
155
+ */
156
+ type ContextRuleAction = TurnContextRuleAction | FileContextRuleAction;
157
+ /**
158
+ * Scope fields shared by rule inputs and persisted rule records.
159
+ */
160
+ interface ContextRuleScopeFields {
161
+ /** Hierarchical scope deciding when the rule is a candidate. */
162
+ scope: ContextRuleScope;
163
+ /** Project identifier for project scope and optionally project-bound session scope. */
164
+ projectId?: string;
165
+ /** Session identifier for session-scoped rules. */
166
+ sessionId?: string;
167
+ }
168
+ /**
169
+ * Write payload for creating or updating a context rule.
170
+ */
171
+ interface ContextRuleInput extends ContextRuleScopeFields {
172
+ /** Stable rule identifier. */
173
+ id: string;
174
+ /** Human-readable rule name. */
175
+ name: string;
176
+ /** Optional description for diagnostics or UI display. */
177
+ description?: string;
178
+ /** Predicate tree that decides whether the rule matches. */
179
+ condition: ContextRuleCondition;
180
+ /** Delivery action attached to matching rules. */
181
+ action: ContextRuleAction;
182
+ /** Deterministic ordering key for matching rules. */
183
+ priority: number;
184
+ /** Whether the rule is active during resolution. */
185
+ enabled: boolean;
186
+ }
187
+ /**
188
+ * Persisted context rule record.
189
+ */
190
+ interface ContextRule extends ContextRuleInput {
191
+ /** Creation timestamp in Unix milliseconds. */
192
+ createdAt: number;
193
+ /** Last update timestamp in Unix milliseconds. */
194
+ updatedAt: number;
195
+ }
196
+ /**
197
+ * Scope-based candidate query for storage-tier listing.
198
+ */
199
+ interface ContextRuleListQuery {
200
+ /** Optional project identifier used to include project-scoped candidates and disambiguate project-bound session rules. */
201
+ projectId?: string;
202
+ /** Optional session identifier used to include session-scoped candidates. */
203
+ sessionId?: string;
204
+ }
205
+ /**
206
+ * Normalized scope identity used for cache invalidation.
207
+ */
208
+ interface ContextRuleScopeIdentity {
209
+ /** Hierarchical scope deciding when the rule is a candidate. */
210
+ scope: ContextRuleScope;
211
+ /** Project identifier normalized to `null` when not part of the scope key. */
212
+ projectId: string | null;
213
+ /** Session identifier normalized to `null` when not part of the scope key. */
214
+ sessionId: string | null;
215
+ }
216
+ /**
217
+ * Service request for resolving matching rules against the current runtime.
218
+ */
219
+ type ContextRuleResolutionRequest = ContextSnapshotBase;
220
+ /**
221
+ * A matched rule after template rendering.
222
+ */
223
+ interface ResolvedContextRule {
224
+ /** Stable rule identifier. */
225
+ id: string;
226
+ /** Human-readable rule name. */
227
+ name: string;
228
+ /** Deterministic sort key preserved in the resolved output. */
229
+ priority: number;
230
+ /** Original action payload for the matching rule. */
231
+ action: ContextRuleAction;
232
+ /** Template-rendered content for the concrete snapshot. */
233
+ renderedContent: string;
234
+ }
235
+ /**
236
+ * Service response grouping matched rules by delivery channel.
237
+ */
238
+ interface ResolvedContextRules {
239
+ /** Concrete snapshot used for evaluation and rendering. */
240
+ snapshot: ContextSnapshot;
241
+ /** Resolved turn-context entries grouped by bucket key. */
242
+ turnContext: Record<string, ResolvedContextRule[]>;
243
+ /** Resolved managed-file entries grouped by file target. */
244
+ files: Partial<Record<ManagedInstructionFileTarget, ResolvedContextRule[]>>;
245
+ }
246
+ /**
247
+ * Lifecycle event emitted whenever persisted context rules change.
248
+ */
249
+ interface ContextRuleChangedEvent {
250
+ /** Rule identifier that changed. */
251
+ ruleId: string;
252
+ /** Type of storage mutation that occurred. */
253
+ changeType: 'created' | 'updated' | 'deleted';
254
+ /** Scope identity before the mutation, or `null` for newly created rules. */
255
+ previous: ContextRuleScopeIdentity | null;
256
+ /** Scope identity after the mutation, or `null` for deleted rules. */
257
+ current: ContextRuleScopeIdentity | null;
258
+ /** Mutation timestamp in Unix milliseconds. */
259
+ timestamp: number;
260
+ }
261
+ //#endregion
262
+ export { ManagedInstructionFileTarget as _, ContextRuleInput as a, TurnContextRuleAction as b, ContextRuleScope as c, ContextSnapshot as d, ContextSnapshotBase as f, MANAGED_INSTRUCTION_FILE_TARGETS as g, FileContextRuleAction as h, ContextRuleCondition as i, ContextRuleScopeFields as l, DEFAULT_CONTEXT_RULE_TURN_CONTEXT_KEY as m, ContextRuleAction as n, ContextRuleListQuery as o, ContextSnapshotExtensions as p, ContextRuleChangedEvent as r, ContextRuleResolutionRequest as s, ContextRule as t, ContextRuleScopeIdentity as u, ResolvedContextRule as v, Condition as x, ResolvedContextRules as y };
@@ -0,0 +1,305 @@
1
+ import { r as LogImportMode, t as LogImporterInfo } from "./index-D9MwJ2Q8.mjs";
2
+ import * as _$_makaio_bus_core0 from "@makaio/framework/bus";
3
+ import { IMakaioBus } from "@makaio/framework/bus";
4
+ import { LogImportOrchestrator, LogImporter } from "@makaio/framework/adapters";
5
+ import { JsonObject } from "type-fest";
6
+ import { CapabilityService } from "@makaio/framework/services/capability";
7
+
8
+ //#region services/log-import/src/capability-provider.d.ts
9
+ /**
10
+ * Minimal registry API required to register providers from capability events.
11
+ *
12
+ * `LogImportRegistry` satisfies this interface structurally, enabling the
13
+ * capability integration module to remain decoupled from the concrete class.
14
+ */
15
+ interface CapabilityProviderRegistrar {
16
+ /**
17
+ * Returns the registration entry for an importer ID, or `undefined`.
18
+ * @param importerId - Unique importer ID
19
+ */
20
+ getImporter(importerId: string): LogImporterRegistration | undefined;
21
+ /**
22
+ * Registers a new importer.
23
+ * @param registration - Importer registration data
24
+ */
25
+ register(registration: LogImporterRegistration): Promise<void>;
26
+ /**
27
+ * Attaches an orchestrator factory to a registered importer.
28
+ * @param importerId - Unique importer ID
29
+ * @param factory - Factory function for mode-specific orchestrators
30
+ */
31
+ setOrchestratorFactory(importerId: string, factory: OrchestratorFactory): void;
32
+ /**
33
+ * Switches the import mode for a registered importer.
34
+ * @param importerId - Unique importer ID
35
+ * @param mode - Target import mode
36
+ */
37
+ switchMode(importerId: string, mode: LogImportMode): Promise<void>;
38
+ }
39
+ //#endregion
40
+ //#region services/log-import/src/log-import-registry.d.ts
41
+ /**
42
+ * Registry for managing log importers and their orchestrator lifecycle.
43
+ *
44
+ * Follows the ToolRegistry pattern with key differences:
45
+ * - Manages orchestrators instead of toolsets
46
+ * - Lazy orchestrator creation (only when started)
47
+ * - Auto-detection via detectImporter()
48
+ * @example
49
+ * ```typescript
50
+ * const registry = new LogImportRegistry();
51
+ * await registry.init();
52
+ *
53
+ * // Register an importer
54
+ * await registry.register({
55
+ * id: 'claude-code-1',
56
+ * adapterName: 'claude-code-cli',
57
+ * displayName: 'Claude Code',
58
+ * source: 'adapter',
59
+ * importer: myImporter,
60
+ * logFilePattern: '**\/session.jsonl',
61
+ * });
62
+ *
63
+ * // Start watching for new sessions
64
+ * await registry.startImporter('claude-code-1');
65
+ * ```
66
+ */
67
+ declare class LogImportRegistry implements CapabilityProviderRegistrar {
68
+ private readonly bus;
69
+ private readonly capabilityService?;
70
+ private readonly registrations;
71
+ private readonly orchestrators;
72
+ private readonly cleanupHandlers;
73
+ private initialized;
74
+ /**
75
+ * Creates a new LogImportRegistry instance.
76
+ * @param options - Optional configuration
77
+ */
78
+ constructor(options?: LogImportRegistryOptions);
79
+ /**
80
+ * Initializes the registry and registers bus handlers.
81
+ *
82
+ * Registers handlers for:
83
+ * - listImporters: List all registered importers
84
+ * - scan: Scan log directory for sessions (generic handler)
85
+ * - uploadFiles: Process uploaded files (generic handler)
86
+ * - importSession: Lazy-load pick-up for discovered sessions
87
+ * - capability register: Auto-register adapters that publish log-import capabilities
88
+ *
89
+ * Must be called before using the registry.
90
+ */
91
+ init(): Promise<void>;
92
+ /**
93
+ * Registers a log importer.
94
+ *
95
+ * Does not start the orchestrator automatically. Use startImporter() to begin watching.
96
+ * @param registration - Importer registration data
97
+ * @throws If an importer with the same ID is already registered
98
+ */
99
+ register(registration: LogImporterRegistration): Promise<void>;
100
+ /**
101
+ * Unregisters a log importer.
102
+ *
103
+ * Stops the orchestrator if running, disposes it, and removes all references.
104
+ * @param importerId - Unique importer ID
105
+ * @throws If the importer is not registered
106
+ */
107
+ unregister(importerId: string): Promise<void>;
108
+ /**
109
+ * Starts the orchestrator for a registered importer.
110
+ *
111
+ * Creates the orchestrator if not already created (lazy initialization).
112
+ * Note: Orchestrator creation requires adapter-specific factory logic,
113
+ * which is handled externally. This method manages the lifecycle only.
114
+ * @param importerId - Unique importer ID
115
+ * @throws If the importer is not registered or orchestrator is not provided
116
+ */
117
+ startImporter(importerId: string): Promise<void>;
118
+ /**
119
+ * Stops the orchestrator for a registered importer.
120
+ *
121
+ * Does nothing if the orchestrator is not running.
122
+ * @param importerId - Unique importer ID
123
+ */
124
+ stopImporter(importerId: string): Promise<void>;
125
+ /**
126
+ * Switches the orchestrator mode for a registered importer.
127
+ *
128
+ * Stops the current orchestrator (if running), disposes it, creates a new
129
+ * orchestrator for the requested mode via the registration's factory, and
130
+ * starts it. When `mode` is `'disabled'`, any running orchestrator is stopped
131
+ * and cleared without starting a replacement.
132
+ *
133
+ * No-op when the importer has no `orchestratorFactory` (no orchestrator
134
+ * classes were provided at registration time).
135
+ * @param importerId - Unique importer ID
136
+ * @param mode - Target import mode
137
+ * @throws If the importer is not registered
138
+ */
139
+ switchMode(importerId: string, mode: LogImportMode): Promise<void>;
140
+ /**
141
+ * Convenience method that starts discovery mode for a registered importer.
142
+ *
143
+ * Equivalent to calling `switchMode(id, 'discover')`. Provided as a
144
+ * named shorthand so call sites read as intent rather than mechanism.
145
+ * @param importerId - Unique importer ID
146
+ * @returns Promise that resolves when the discovery orchestrator has started
147
+ * @throws If the importer is not registered
148
+ */
149
+ startDiscovery(importerId: string): Promise<void>;
150
+ /**
151
+ * Attaches an orchestrator factory to a registered importer.
152
+ *
153
+ * Called by the runtime after creating orchestrator class instances so the
154
+ * registry can reconstruct orchestrators when the mode changes via
155
+ * {@link switchMode}.
156
+ * @param importerId - Unique importer ID
157
+ * @param factory - Factory function that produces orchestrators for a given mode
158
+ * @throws If the importer is not registered
159
+ */
160
+ setOrchestratorFactory(importerId: string, factory: OrchestratorFactory): void;
161
+ /**
162
+ * Lists all registered importers with their current status.
163
+ * @returns Array of importer information
164
+ */
165
+ listImporters(): LogImporterInfo[];
166
+ /**
167
+ * Gets a registered importer by ID.
168
+ * @param importerId - Unique importer ID
169
+ * @returns Importer registration or undefined if not found
170
+ */
171
+ getImporter(importerId: string): LogImporterRegistration | undefined;
172
+ /**
173
+ * Gets a registered importer by adapter name.
174
+ * @param adapterName - Adapter name (e.g., 'claude-code-cli', 'codex-app-server')
175
+ * @returns Importer registration or undefined if not found
176
+ */
177
+ getImporterByAdapterName(adapterName: string): LogImporterRegistration | undefined;
178
+ /**
179
+ * Auto-detects which importer can handle a log sample.
180
+ *
181
+ * Used during log upload to match unknown formats with compatible importers.
182
+ * @param sample - Sample log content (string or parsed JSON object)
183
+ * @returns Matching importer registration or undefined if no match
184
+ */
185
+ detectImporter(sample: string | JsonObject): LogImporterRegistration | undefined;
186
+ /**
187
+ * Registers an orchestrator for a specific importer.
188
+ *
189
+ * This is called by adapters/extensions after they create their orchestrator instance.
190
+ * The registry manages the lifecycle but doesn't create orchestrators itself.
191
+ * @param importerId - Unique importer ID
192
+ * @param orchestrator - Orchestrator instance
193
+ * @throws If the importer is not registered
194
+ */
195
+ registerOrchestrator(importerId: string, orchestrator: LogImportOrchestrator): Promise<void>;
196
+ /**
197
+ * Cleans up registry resources.
198
+ *
199
+ * Stops all running orchestrators and unsubscribes from bus handlers.
200
+ */
201
+ destroy(): Promise<void>;
202
+ }
203
+ //#endregion
204
+ //#region services/log-import/src/types.d.ts
205
+ /**
206
+ * Factory function that creates a {@link LogImportOrchestrator} for a given mode.
207
+ *
208
+ * Returns `null` when no orchestrator is available for the requested mode
209
+ * (e.g., discovery requested but no `LogDiscoveryOrchestratorClass` was
210
+ * registered for this adapter).
211
+ * @param mode - Target import mode (never `'disabled'`)
212
+ * @returns Orchestrator instance or null if the mode requires no orchestrator
213
+ */
214
+ type OrchestratorFactory = (mode: Exclude<LogImportMode, 'disabled'>) => LogImportOrchestrator | null;
215
+ /**
216
+ * Public provenance class for a registered log importer.
217
+ */
218
+ type LogImporterSource = 'adapter' | 'extension';
219
+ /**
220
+ * Registration entry for a log importer.
221
+ *
222
+ * Stores metadata and references needed to manage the importer lifecycle.
223
+ */
224
+ interface LogImporterRegistration {
225
+ /**
226
+ * Unique ID: adapterId for adapters, `package:{name}` for extensions.
227
+ */
228
+ id: string;
229
+ /**
230
+ * Adapter name used for session lookup and provenance tracking.
231
+ * @example 'claude-code-cli', 'codex-app-server', 'github-copilot-sdk'
232
+ */
233
+ adapterName: string;
234
+ /**
235
+ * Human-readable name.
236
+ * @example 'Claude Code', 'GitHub Copilot SDK'
237
+ */
238
+ displayName: string;
239
+ /**
240
+ * Source type.
241
+ */
242
+ source: LogImporterSource;
243
+ /**
244
+ * Importer instance.
245
+ */
246
+ importer: LogImporter<unknown, unknown>;
247
+ /**
248
+ * Glob pattern for log files.
249
+ * @example '**\/session.jsonl'
250
+ */
251
+ logFilePattern: string;
252
+ /**
253
+ * Whether this importer supports manual scan/import operations.
254
+ * Defaults to true.
255
+ */
256
+ supportsManualImport?: boolean;
257
+ /**
258
+ * Factory for creating orchestrators for this importer.
259
+ *
260
+ * When present, the registry can swap orchestrators on mode change via
261
+ * {@link LogImportRegistry.switchMode}. Absent when neither
262
+ * `LogOrchestratorClass` nor `LogDiscoveryOrchestratorClass` was provided.
263
+ */
264
+ orchestratorFactory?: OrchestratorFactory;
265
+ }
266
+ /**
267
+ * Configuration options for LogImportRegistry.
268
+ */
269
+ interface LogImportRegistryOptions {
270
+ /**
271
+ * Message bus instance (defaults to MakaioBus).
272
+ */
273
+ bus?: _$_makaio_bus_core0.IMakaioBus;
274
+ /**
275
+ * Capability service used to backfill providers registered before init().
276
+ */
277
+ capabilityService?: CapabilityService;
278
+ }
279
+ /**
280
+ * Service instance returned by the log-import composition factory.
281
+ *
282
+ * Bundles the {@link LogImportRegistry} and the session-import handler
283
+ * cleanup so both are torn down together on shutdown.
284
+ */
285
+ interface LogImportServiceInstance {
286
+ /** The live log-import registry. */
287
+ readonly registry: LogImportRegistry;
288
+ /** Tears down the registry and all session-import handlers. */
289
+ destroy(): Promise<void>;
290
+ }
291
+ /**
292
+ * Internal storage for orchestrator instances.
293
+ */
294
+ interface OrchestratorEntry {
295
+ /**
296
+ * Orchestrator instance.
297
+ */
298
+ orchestrator: LogImportOrchestrator;
299
+ /**
300
+ * Whether orchestrator was started by registry.
301
+ */
302
+ isManaged: boolean;
303
+ }
304
+ //#endregion
305
+ export { OrchestratorFactory as a, OrchestratorEntry as i, LogImportServiceInstance as n, LogImportRegistry as o, LogImporterRegistration as r, LogImportRegistryOptions as t };