@makaio/framework 1.0.0-dev-1779046984397

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 (410) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +363 -0
  3. package/dist/account-identity-Ce1Bwrqi.mjs +1 -0
  4. package/dist/adapter-CbyjCE2d.mjs +1 -0
  5. package/dist/adapters/acp-client/index.d.mts +209 -0
  6. package/dist/adapters/acp-client/index.mjs +1 -0
  7. package/dist/adapters/config/index.d.mts +429 -0
  8. package/dist/adapters/config/index.mjs +1 -0
  9. package/dist/adapters/index.d.mts +4175 -0
  10. package/dist/adapters/index.mjs +11 -0
  11. package/dist/adapters/node.d.mts +263 -0
  12. package/dist/adapters/node.mjs +4 -0
  13. package/dist/adapters/stream-session/index.d.mts +1384 -0
  14. package/dist/adapters/stream-session/index.mjs +1 -0
  15. package/dist/adapters/stream-session/testing/index.d.mts +29 -0
  16. package/dist/adapters/stream-session/testing/index.mjs +1 -0
  17. package/dist/base-orchestrator-9z8TuA5a.d.mts +772 -0
  18. package/dist/bus/index.d.mts +3331 -0
  19. package/dist/bus/index.mjs +1 -0
  20. package/dist/bus-B1seC4M_.mjs +2 -0
  21. package/dist/capability-service-tnpR_TaB.mjs +1 -0
  22. package/dist/chunk-Dc06z0qk.mjs +1 -0
  23. package/dist/chunk-cpUYaJdV.mjs +1 -0
  24. package/dist/cleanEnvForAdapter-DvcIGXTG.mjs +1 -0
  25. package/dist/client-Dh4x4GQN.mjs +1 -0
  26. package/dist/clients/index.d.mts +2786 -0
  27. package/dist/clients/index.mjs +1 -0
  28. package/dist/clients-namespace-B0xAPZ6J.d.mts +332 -0
  29. package/dist/config-namespace-DLSs83zr.d.mts +638 -0
  30. package/dist/config-namespace-MJT8P0Ud.mjs +1 -0
  31. package/dist/contracts/adapter/index.d.mts +3 -0
  32. package/dist/contracts/adapter/index.mjs +1 -0
  33. package/dist/contracts/adapter/schemas/session-lineage.d.mts +2 -0
  34. package/dist/contracts/adapter/schemas/session-lineage.mjs +1 -0
  35. package/dist/contracts/client/index.d.mts +3 -0
  36. package/dist/contracts/client/index.mjs +1 -0
  37. package/dist/contracts/common/index.d.mts +2 -0
  38. package/dist/contracts/common/index.mjs +1 -0
  39. package/dist/contracts/config/index.d.mts +455 -0
  40. package/dist/contracts/config/index.mjs +1 -0
  41. package/dist/contracts/extension/index.d.mts +3 -0
  42. package/dist/contracts/extension/index.mjs +1 -0
  43. package/dist/contracts/harness/index.d.mts +2 -0
  44. package/dist/contracts/harness/index.mjs +1 -0
  45. package/dist/contracts/host/index.d.mts +2 -0
  46. package/dist/contracts/host/index.mjs +1 -0
  47. package/dist/contracts/index.d.mts +12665 -0
  48. package/dist/contracts/index.mjs +1 -0
  49. package/dist/contracts/model-registry/index.d.mts +2 -0
  50. package/dist/contracts/model-registry/index.mjs +1 -0
  51. package/dist/contracts/native-session-supervisor/index.d.mts +2 -0
  52. package/dist/contracts/native-session-supervisor/index.mjs +1 -0
  53. package/dist/contracts/platform/index.d.mts +2 -0
  54. package/dist/contracts/platform/index.mjs +1 -0
  55. package/dist/contracts/provider/index.d.mts +3 -0
  56. package/dist/contracts/provider/index.mjs +1 -0
  57. package/dist/contracts/session/index.d.mts +3 -0
  58. package/dist/contracts/session/index.mjs +1 -0
  59. package/dist/contracts/shared/index.d.mts +2 -0
  60. package/dist/contracts/shared/index.mjs +1 -0
  61. package/dist/contracts/skill/index.d.mts +2 -0
  62. package/dist/contracts/skill/index.mjs +1 -0
  63. package/dist/contracts/toast/index.d.mts +198 -0
  64. package/dist/contracts/toast/index.mjs +1 -0
  65. package/dist/contracts/variant/index.d.mts +2 -0
  66. package/dist/contracts/variant/index.mjs +1 -0
  67. package/dist/core/index.d.mts +1001 -0
  68. package/dist/core/index.mjs +1 -0
  69. package/dist/credential-ref-DLCsoKVZ.mjs +1 -0
  70. package/dist/cursor-storage-DOQdvo9j.mjs +1 -0
  71. package/dist/definition-DkYy1PZz.mjs +1 -0
  72. package/dist/definition-DtUNiGom.d.mts +158 -0
  73. package/dist/definition-DxvZ9e22.d.mts +376 -0
  74. package/dist/drizzle-CWVVw7Er.mjs +1 -0
  75. package/dist/execution-target-BW_uiBVe.mjs +1 -0
  76. package/dist/extension-COqwS-2Q.mjs +1 -0
  77. package/dist/extension-Cbrl4YGX.mjs +1 -0
  78. package/dist/extension-namespace-zaGKi6Qj.mjs +1 -0
  79. package/dist/handlers-iGKUJ380.mjs +41 -0
  80. package/dist/harness-CEq1Zkf9.mjs +1 -0
  81. package/dist/hooks/index.d.mts +423 -0
  82. package/dist/hooks/index.mjs +1 -0
  83. package/dist/host-CXAUGGN0.mjs +1 -0
  84. package/dist/identity-B_A0mE63.mjs +1 -0
  85. package/dist/index-6lyShOoU.d.mts +225 -0
  86. package/dist/index-7sXlairn2.d.mts +43 -0
  87. package/dist/index-BAKM2GMH2.d.mts +535 -0
  88. package/dist/index-BB419vv-.d.mts +3897 -0
  89. package/dist/index-BJOfdtbw.d.mts +729 -0
  90. package/dist/index-BXP9GK5q.d.mts +1075 -0
  91. package/dist/index-BdPwu6c0.d.mts +1730 -0
  92. package/dist/index-BePI0ckL.d.mts +40 -0
  93. package/dist/index-Bigx81Kr.d.mts +37 -0
  94. package/dist/index-BnNqbx2I.d.mts +134 -0
  95. package/dist/index-Bv15sNLn.d.mts +389 -0
  96. package/dist/index-C-myW_aK.d.mts +412 -0
  97. package/dist/index-C9F3Fc1A.d.mts +2938 -0
  98. package/dist/index-CNxS4Tlu.d.mts +1 -0
  99. package/dist/index-CVA0m1g9.d.mts +995 -0
  100. package/dist/index-C_kS2aqV2.d.mts +438 -0
  101. package/dist/index-Ch3ph52M2.d.mts +40 -0
  102. package/dist/index-CnZOKNjU.d.mts +89 -0
  103. package/dist/index-D1T-PPqF.d.mts +67 -0
  104. package/dist/index-D7T8XCku.d.mts +341 -0
  105. package/dist/index-DBQtpFLE.d.mts +4843 -0
  106. package/dist/index-DEw90pa2.d.mts +183 -0
  107. package/dist/index-DQRsGXb5.d.mts +109 -0
  108. package/dist/index-Dd5s4MSm.d.mts +72 -0
  109. package/dist/index-DubqLGH8.d.mts +1002 -0
  110. package/dist/index-ESSDWIB7.d.mts +11 -0
  111. package/dist/index-N5K1NOYs.d.mts +184 -0
  112. package/dist/index-PdUSmPT2.d.mts +180 -0
  113. package/dist/index-SzSiyG61.d.mts +117 -0
  114. package/dist/index-T0471kWA.d.mts +6760 -0
  115. package/dist/index-WKjrpcA_.d.mts +218 -0
  116. package/dist/index-hapw9_En.d.mts +13592 -0
  117. package/dist/index-iID2R9G1.d.mts +1490 -0
  118. package/dist/kernel/cli/index.d.mts +141 -0
  119. package/dist/kernel/cli/index.mjs +1 -0
  120. package/dist/kernel/cli/schemas.d.mts +63 -0
  121. package/dist/kernel/cli/schemas.mjs +1 -0
  122. package/dist/kernel/extension/index.d.mts +2 -0
  123. package/dist/kernel/extension/index.mjs +1 -0
  124. package/dist/kernel/index.d.mts +296 -0
  125. package/dist/kernel/index.mjs +1 -0
  126. package/dist/kernel/namespace/index.d.mts +2 -0
  127. package/dist/kernel/namespace/index.mjs +1 -0
  128. package/dist/kernel/observability/index.d.mts +2 -0
  129. package/dist/kernel/observability/index.mjs +1 -0
  130. package/dist/kernel/providers/index.d.mts +2 -0
  131. package/dist/kernel/providers/index.mjs +1 -0
  132. package/dist/kernel/window/index.d.mts +2 -0
  133. package/dist/kernel/window/index.mjs +1 -0
  134. package/dist/model-registry-BNzpR6TU.mjs +1 -0
  135. package/dist/model-registry-CIscwC52.mjs +1 -0
  136. package/dist/namespace-0yuzAKlr.mjs +1 -0
  137. package/dist/namespace-8cNguvIp.mjs +1 -0
  138. package/dist/namespace-BK2erxpV.d.mts +921 -0
  139. package/dist/namespace-Bmc7AW4J2.mjs +1 -0
  140. package/dist/namespace-C2ufjgaQ.d.mts +767 -0
  141. package/dist/namespace-C54Oj025.d.mts +159 -0
  142. package/dist/namespace-CCDEOwmW.d.mts +1313 -0
  143. package/dist/namespace-CfEWMXBx.mjs +1 -0
  144. package/dist/namespace-CkLUtc0g.d.mts +580 -0
  145. package/dist/namespace-D5Wrt7YU.mjs +1 -0
  146. package/dist/namespace-DZcuLwEA.d.mts +51 -0
  147. package/dist/namespace-Db-p67Rg.mjs +1 -0
  148. package/dist/namespace-FWx6HxaW.d.mts +611 -0
  149. package/dist/namespace-GLGGcWPH.d.mts +43 -0
  150. package/dist/namespace-N0dfwSg6.mjs +1 -0
  151. package/dist/namespace-O5SNY-LV.d.mts +2226 -0
  152. package/dist/namespace-ZbthBQVt.d.mts +142 -0
  153. package/dist/namespace-bq4Prtzn.d.mts +2046 -0
  154. package/dist/namespace-pNcSglBS.mjs +1 -0
  155. package/dist/namespace-ptv-pw_g.d.mts +3019 -0
  156. package/dist/namespace-xkvVw3hf2.d.mts +189 -0
  157. package/dist/native-session-supervisor-L-UIaEfd.mjs +1 -0
  158. package/dist/node/bus-server/index.d.mts +178 -0
  159. package/dist/node/bus-server/index.mjs +1 -0
  160. package/dist/node/bus-server/server-lifecycle.d.mts +2 -0
  161. package/dist/node/bus-server/server-lifecycle.mjs +1 -0
  162. package/dist/node/machine-identity/index.d.mts +85 -0
  163. package/dist/node/machine-identity/index.mjs +3 -0
  164. package/dist/node/transports/index.d.mts +1752 -0
  165. package/dist/node/transports/index.mjs +2 -0
  166. package/dist/orchestrator-shared-DrjtTXYh.d.mts +249 -0
  167. package/dist/orchestrator-shared-Wv1GI2mW.mjs +1 -0
  168. package/dist/platform-BbSLVg5b.mjs +1 -0
  169. package/dist/profile-4StaDQW0.mjs +1 -0
  170. package/dist/provider-context-CNRQ4d5m.mjs +1 -0
  171. package/dist/providers/index.d.mts +135 -0
  172. package/dist/providers/index.mjs +1 -0
  173. package/dist/providers-Cr4Za8a1.mjs +1 -0
  174. package/dist/providers-namespace-CDwxY_DV.d.mts +583 -0
  175. package/dist/schema-BwzXEtT2.d.mts +837 -0
  176. package/dist/schema-CAw_BqaG.mjs +1 -0
  177. package/dist/schema-introspection-D61TT_7b.mjs +1 -0
  178. package/dist/schema-uSGW-6oM.mjs +1 -0
  179. package/dist/schemas-BXstpWVp.mjs +1 -0
  180. package/dist/schemas-BdMU-gew.d.mts +160 -0
  181. package/dist/schemas-C40ZAJ33.mjs +1 -0
  182. package/dist/schemas-C5xtVqdb.d.mts +46 -0
  183. package/dist/schemas-CGZy_rU6.d.mts +13 -0
  184. package/dist/schemas-CLxtoKFy.mjs +1 -0
  185. package/dist/schemas-Co_sVhzz.mjs +1 -0
  186. package/dist/schemas-D9108Iv1.d.mts +182 -0
  187. package/dist/schemas-DENVYyds.d.mts +463 -0
  188. package/dist/schemas-DbWs_hj8.d.mts +174 -0
  189. package/dist/schemas-Di0XnnMX.d.mts +73 -0
  190. package/dist/schemas-KMA1efQg.d.mts +944 -0
  191. package/dist/schemas-qmn5SWPU.d.mts +312 -0
  192. package/dist/schemas-sshQEF3l.d.mts +237 -0
  193. package/dist/server-lifecycle-Cf_SZ27k.d.mts +160 -0
  194. package/dist/server-lifecycle-DbFwlrTW.mjs +1 -0
  195. package/dist/service-base/index.d.mts +98 -0
  196. package/dist/service-base/index.mjs +1 -0
  197. package/dist/services/adapter-runtime/index.d.mts +4 -0
  198. package/dist/services/adapter-runtime/index.mjs +1 -0
  199. package/dist/services/adapter-runtime/namespace.d.mts +2 -0
  200. package/dist/services/adapter-runtime/namespace.mjs +1 -0
  201. package/dist/services/adapter-runtime/schemas.d.mts +2 -0
  202. package/dist/services/adapter-runtime/schemas.mjs +1 -0
  203. package/dist/services/adapter-subsystem/index.d.mts +3 -0
  204. package/dist/services/adapter-subsystem/index.mjs +1 -0
  205. package/dist/services/adapter-subsystem/namespace.d.mts +2 -0
  206. package/dist/services/adapter-subsystem/namespace.mjs +1 -0
  207. package/dist/services/agent-runtime/index.d.mts +3 -0
  208. package/dist/services/agent-runtime/index.mjs +1 -0
  209. package/dist/services/agent-runtime/namespace.d.mts +2 -0
  210. package/dist/services/agent-runtime/namespace.mjs +1 -0
  211. package/dist/services/agent-runtime/schemas.d.mts +2 -0
  212. package/dist/services/agent-runtime/schemas.mjs +1 -0
  213. package/dist/services/capability/index.d.mts +2 -0
  214. package/dist/services/capability/index.mjs +1 -0
  215. package/dist/services/cli-detection/namespace.d.mts +56 -0
  216. package/dist/services/cli-detection/namespace.mjs +1 -0
  217. package/dist/services/codebase/index.d.mts +3 -0
  218. package/dist/services/codebase/index.mjs +1 -0
  219. package/dist/services/codebase/namespace.d.mts +2 -0
  220. package/dist/services/codebase/namespace.mjs +1 -0
  221. package/dist/services/codebase/schemas.d.mts +2 -0
  222. package/dist/services/codebase/schemas.mjs +1 -0
  223. package/dist/services/compression/index.d.mts +3 -0
  224. package/dist/services/compression/index.mjs +1 -0
  225. package/dist/services/compression/namespace.d.mts +2 -0
  226. package/dist/services/compression/namespace.mjs +1 -0
  227. package/dist/services/compression/schemas.d.mts +2 -0
  228. package/dist/services/compression/schemas.mjs +1 -0
  229. package/dist/services/context-rules/index.d.mts +412 -0
  230. package/dist/services/context-rules/index.mjs +1 -0
  231. package/dist/services/credential-change/index.d.mts +17 -0
  232. package/dist/services/credential-change/index.mjs +1 -0
  233. package/dist/services/definition/index.d.mts +2 -0
  234. package/dist/services/definition/index.mjs +1 -0
  235. package/dist/services/definition/namespace.d.mts +71 -0
  236. package/dist/services/definition/namespace.mjs +1 -0
  237. package/dist/services/definition/schemas.d.mts +38 -0
  238. package/dist/services/definition/schemas.mjs +1 -0
  239. package/dist/services/dialog/namespace.d.mts +105 -0
  240. package/dist/services/dialog/namespace.mjs +1 -0
  241. package/dist/services/dialog/schemas.d.mts +109 -0
  242. package/dist/services/dialog/schemas.mjs +1 -0
  243. package/dist/services/execution-target/index.d.mts +4 -0
  244. package/dist/services/execution-target/index.mjs +1 -0
  245. package/dist/services/execution-target/namespace.d.mts +2 -0
  246. package/dist/services/execution-target/namespace.mjs +1 -0
  247. package/dist/services/execution-target/schemas.d.mts +2 -0
  248. package/dist/services/execution-target/schemas.mjs +1 -0
  249. package/dist/services/filesystem/namespace.d.mts +432 -0
  250. package/dist/services/filesystem/namespace.mjs +1 -0
  251. package/dist/services/filesystem/schemas.d.mts +240 -0
  252. package/dist/services/filesystem/schemas.mjs +1 -0
  253. package/dist/services/harness/index.d.mts +861 -0
  254. package/dist/services/harness/index.mjs +1 -0
  255. package/dist/services/harness/storage/schema.d.mts +424 -0
  256. package/dist/services/harness/storage/schema.mjs +1 -0
  257. package/dist/services/index.d.mts +5703 -0
  258. package/dist/services/index.mjs +1 -0
  259. package/dist/services/local-notification/index.d.mts +25 -0
  260. package/dist/services/local-notification/index.mjs +1 -0
  261. package/dist/services/local-notification/namespace.d.mts +73 -0
  262. package/dist/services/local-notification/namespace.mjs +1 -0
  263. package/dist/services/local-notification/schemas.d.mts +88 -0
  264. package/dist/services/local-notification/schemas.mjs +1 -0
  265. package/dist/services/log-import/browser.d.mts +3 -0
  266. package/dist/services/log-import/browser.mjs +1 -0
  267. package/dist/services/log-import/index.d.mts +275 -0
  268. package/dist/services/log-import/index.mjs +2 -0
  269. package/dist/services/log-import/log-import.d.mts +3 -0
  270. package/dist/services/log-import/log-import.mjs +1 -0
  271. package/dist/services/log-import/namespace.d.mts +327 -0
  272. package/dist/services/log-import/namespace.mjs +1 -0
  273. package/dist/services/log-import/schemas.d.mts +217 -0
  274. package/dist/services/log-import/schemas.mjs +1 -0
  275. package/dist/services/model-registry/index.d.mts +2 -0
  276. package/dist/services/model-registry/index.mjs +1 -0
  277. package/dist/services/preferences/index.d.mts +3 -0
  278. package/dist/services/preferences/index.mjs +1 -0
  279. package/dist/services/preferences/schemas.d.mts +2 -0
  280. package/dist/services/preferences/schemas.mjs +1 -0
  281. package/dist/services/preferences/storage-namespace.d.mts +3 -0
  282. package/dist/services/preferences/storage-namespace.mjs +1 -0
  283. package/dist/services/provider-context/index.d.mts +2 -0
  284. package/dist/services/provider-context/index.mjs +1 -0
  285. package/dist/services/provider-runtime/index.d.mts +136 -0
  286. package/dist/services/provider-runtime/index.mjs +1 -0
  287. package/dist/services/session/handlers/index.d.mts +2 -0
  288. package/dist/services/session/handlers/index.mjs +1 -0
  289. package/dist/services/session/index.d.mts +10 -0
  290. package/dist/services/session/index.mjs +1 -0
  291. package/dist/services/session/messages/namespace.d.mts +2 -0
  292. package/dist/services/session/messages/namespace.mjs +1 -0
  293. package/dist/services/session/orchestrator-testing/index.d.mts +2 -0
  294. package/dist/services/session/orchestrator-testing/index.mjs +1 -0
  295. package/dist/services/session/session-events/namespace.d.mts +2 -0
  296. package/dist/services/session/session-events/namespace.mjs +1 -0
  297. package/dist/services/session/storage/namespace.d.mts +2 -0
  298. package/dist/services/session/storage/namespace.mjs +1 -0
  299. package/dist/services/session/storage/schema.d.mts +2 -0
  300. package/dist/services/session/storage/schema.mjs +1 -0
  301. package/dist/services/session/testing/index.d.mts +35 -0
  302. package/dist/services/session/testing/index.mjs +52 -0
  303. package/dist/services/session/testing/orchestrator-shared.d.mts +2 -0
  304. package/dist/services/session/testing/orchestrator-shared.mjs +1 -0
  305. package/dist/services/session/turns/namespace.d.mts +2 -0
  306. package/dist/services/session/turns/namespace.mjs +1 -0
  307. package/dist/services/session-editor/index.d.mts +119 -0
  308. package/dist/services/session-editor/index.mjs +1 -0
  309. package/dist/services/settings/index.d.mts +47 -0
  310. package/dist/services/settings/index.mjs +1 -0
  311. package/dist/services/settings/namespace.d.mts +662 -0
  312. package/dist/services/settings/namespace.mjs +1 -0
  313. package/dist/services/settings/storage/clients-namespace.d.mts +2 -0
  314. package/dist/services/settings/storage/clients-namespace.mjs +1 -0
  315. package/dist/services/settings/storage/extension-configs/namespace.d.mts +184 -0
  316. package/dist/services/settings/storage/extension-configs/namespace.mjs +1 -0
  317. package/dist/services/settings/storage/index.d.mts +4 -0
  318. package/dist/services/settings/storage/index.mjs +1 -0
  319. package/dist/services/settings/storage/providers-namespace.d.mts +2 -0
  320. package/dist/services/settings/storage/providers-namespace.mjs +1 -0
  321. package/dist/services/tool-approval/index.d.mts +2 -0
  322. package/dist/services/tool-approval/index.mjs +1 -0
  323. package/dist/services/tools/index.d.mts +2 -0
  324. package/dist/services/tools/index.mjs +1 -0
  325. package/dist/services/tray-menu/index.d.mts +4 -0
  326. package/dist/services/tray-menu/index.mjs +1 -0
  327. package/dist/services/tray-menu/namespace.d.mts +2 -0
  328. package/dist/services/tray-menu/namespace.mjs +1 -0
  329. package/dist/services/tray-menu/schemas.d.mts +2 -0
  330. package/dist/services/tray-menu/schemas.mjs +1 -0
  331. package/dist/services/turn/index.d.mts +2 -0
  332. package/dist/services/turn/index.mjs +1 -0
  333. package/dist/services/turn/namespace.d.mts +2 -0
  334. package/dist/services/turn/namespace.mjs +1 -0
  335. package/dist/services/turn/schemas.d.mts +335 -0
  336. package/dist/services/turn/schemas.mjs +1 -0
  337. package/dist/services/worker/index.d.mts +3 -0
  338. package/dist/services/worker/index.mjs +1 -0
  339. package/dist/services/worker/namespace.d.mts +2 -0
  340. package/dist/services/worker/namespace.mjs +1 -0
  341. package/dist/services/worker/schemas.d.mts +2 -0
  342. package/dist/services/worker/schemas.mjs +1 -0
  343. package/dist/session-Do6lDZM4.mjs +123 -0
  344. package/dist/session-lineage-Eev4uo4I.d.mts +65 -0
  345. package/dist/session-piI1R5rP.mjs +1 -0
  346. package/dist/shared-DxHLl9UP.mjs +1 -0
  347. package/dist/shared-schemas-BgQv_tnu.mjs +1 -0
  348. package/dist/skill-CB5h-ZFQ.mjs +1 -0
  349. package/dist/storage/drizzle/client.d.mts +78 -0
  350. package/dist/storage/drizzle/client.mjs +1 -0
  351. package/dist/storage/drizzle/index.d.mts +98 -0
  352. package/dist/storage/drizzle/index.mjs +1 -0
  353. package/dist/storage/handlers/drizzle/index.d.mts +2 -0
  354. package/dist/storage/handlers/drizzle/index.mjs +1 -0
  355. package/dist/storage/handlers/index.d.mts +33 -0
  356. package/dist/storage/handlers/index.mjs +1 -0
  357. package/dist/storage/index.d.mts +192 -0
  358. package/dist/storage/index.mjs +1 -0
  359. package/dist/storage-namespace-ADwyijoe.mjs +1 -0
  360. package/dist/storage-namespace-DAm8iWEj.d.mts +221 -0
  361. package/dist/storage-namespace-definition-CHu2k14q.mjs +1 -0
  362. package/dist/storage-namespace-definition-CJgqyXH1.d.mts +17 -0
  363. package/dist/style.css +3782 -0
  364. package/dist/testing/drizzle-harness.d.mts +130 -0
  365. package/dist/testing/drizzle-harness.mjs +1 -0
  366. package/dist/testing/index.d.mts +106 -0
  367. package/dist/testing/index.mjs +1 -0
  368. package/dist/tool-approval-service-BcBSUZCO.mjs +1 -0
  369. package/dist/tools/index.d.mts +825 -0
  370. package/dist/tools/index.mjs +1 -0
  371. package/dist/tools/testing/index.d.mts +53 -0
  372. package/dist/tools/testing/index.mjs +1 -0
  373. package/dist/tools-CDSgj0ee.mjs +1 -0
  374. package/dist/tray-menu-service-CTXC1Elg.mjs +1 -0
  375. package/dist/types-6WxLfoM3.d.mts +31 -0
  376. package/dist/types-BjToUrHp.d.mts +6619 -0
  377. package/dist/types-CD1LJwPc.d.mts +1009 -0
  378. package/dist/types-Cvrj2ogm.d.mts +305 -0
  379. package/dist/types-DYF5LxZY.d.mts +233 -0
  380. package/dist/types-t295YC6T.d.mts +262 -0
  381. package/dist/types-vNpkAe4Y.d.mts +128 -0
  382. package/dist/ui-components/index.d.mts +2342 -0
  383. package/dist/ui-components/index.mjs +8 -0
  384. package/dist/ui-config-CXmbsqZV.mjs +1 -0
  385. package/dist/ui-hooks/index.d.mts +1805 -0
  386. package/dist/ui-hooks/index.mjs +1 -0
  387. package/dist/ui-kernel/index.d.mts +2793 -0
  388. package/dist/ui-kernel/index.mjs +1 -0
  389. package/dist/ui-kernel/pages/namespace.d.mts +88 -0
  390. package/dist/ui-kernel/pages/namespace.mjs +1 -0
  391. package/dist/ui-kernel/pages/schemas.d.mts +2 -0
  392. package/dist/ui-kernel/pages/schemas.mjs +1 -0
  393. package/dist/ui-views/index.d.mts +487 -0
  394. package/dist/ui-views/index.mjs +30 -0
  395. package/dist/utils/health-probe.d.mts +26 -0
  396. package/dist/utils/health-probe.mjs +1 -0
  397. package/dist/utils/index.d.mts +227 -0
  398. package/dist/utils/index.mjs +2 -0
  399. package/dist/utils/keychain.d.mts +31 -0
  400. package/dist/utils/keychain.mjs +1 -0
  401. package/dist/utils/resolve-package-root.d.mts +12 -0
  402. package/dist/utils/resolve-package-root.mjs +1 -0
  403. package/dist/utils/workspace-root.d.mts +27 -0
  404. package/dist/utils/workspace-root.mjs +2 -0
  405. package/dist/variant-D5kSrL3m.mjs +1 -0
  406. package/dist/version-CjS20oXi.mjs +1 -0
  407. package/dist/visibility-CZu8ooOA.mjs +1 -0
  408. package/dist/window-registry-CUftmDr3.mjs +1 -0
  409. package/dist/window-registry-C_IJmY8_.d.mts +130 -0
  410. package/package.json +346 -0
@@ -0,0 +1 @@
1
+ import{harnessDefinitions as e}from"./services/harness/storage/schema.mjs";import{z as t}from"zod";import{ApprovalPolicySchema as n,HarnessDefinitionBaseSchema as r,HarnessDefinitionSchema as i}from"@makaio/framework/contracts";import{createStorageNamespaceDefinition as a}from"@makaio/framework/storage";const o=t.object({enabled:t.array(t.string()),disabled:t.array(t.string())}),s=r.omit({createdAt:!0,updatedAt:!0,approvalPolicy:!0,isDefault:!0,enabled:!0,nativeTools:!0,registryTools:!0,skills:!0}).extend({approvalPolicy:n,isDefault:t.boolean(),enabled:t.boolean(),nativeTools:o,registryTools:o,skills:o.optional()}).strict().refine(e=>!!e.adapterName||!!e.clientId,{message:`At least one of adapterName or clientId must be set`}),c=t.object({adapterName:t.string().optional(),clientId:t.string().optional(),name:t.string().optional()}),l=a(`harness`,{schemas:{get:{request:t.object({id:t.string()}),response:t.object({harness:i.nullable()})},set:{request:t.object({harness:s}),response:t.object({id:t.string()})},delete:{request:t.object({id:t.string()}),response:t.object({deleted:t.boolean()})},list:{request:c,response:t.object({harnesses:t.array(i)})}},extensions:{drizzle:{harnessDefinitions:e}}}),u=l.subjects;export{u as n,l as t};
@@ -0,0 +1,580 @@
1
+ import * as _$zod from "zod";
2
+ import * as _$_makaio_core0 from "@makaio/framework/core";
3
+ import * as _$_makaio_storage_core0 from "@makaio/framework/storage";
4
+ import * as _$zod_v4_core0 from "zod/v4/core";
5
+
6
+ //#region packages/services/core/src/turn/namespace.d.ts
7
+ /**
8
+ * Turn storage namespace definition.
9
+ *
10
+ * Provides bus subjects for turn lifecycle management.
11
+ * A turn represents a user message and all agent responses to it.
12
+ *
13
+ * Implementation lives in \@makaio/services-core/session, but the contract
14
+ * is defined here to allow libs (like \@makaio/hooks) to query turns
15
+ * without depending on the service layer.
16
+ *
17
+ * Import `./schemas` when only pure Zod schemas are needed. Composition roots
18
+ * register this storage namespace explicitly.
19
+ */
20
+ declare const TurnStorageNamespace: _$_makaio_storage_core0.StorageNamespaceDefinition<"turn", {
21
+ create: {
22
+ request: _$zod.ZodObject<{
23
+ sessionId: _$zod.ZodString;
24
+ turnId: _$zod.ZodOptional<_$zod.ZodString>;
25
+ }, _$zod_v4_core0.$strip>;
26
+ response: _$zod.ZodObject<{
27
+ turn: _$zod.ZodObject<{
28
+ turnId: _$zod.ZodString;
29
+ sessionId: _$zod.ZodString;
30
+ turnNumber: _$zod.ZodNumber;
31
+ startedAt: _$zod.ZodNumber;
32
+ completedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
33
+ status: _$zod.ZodEnum<{
34
+ error: "error";
35
+ completed: "completed";
36
+ active: "active";
37
+ }>;
38
+ error: _$zod.ZodOptional<_$zod.ZodString>;
39
+ usage: _$zod.ZodOptional<_$zod.ZodObject<{
40
+ total: _$zod.ZodObject<{
41
+ inputTokens: _$zod.ZodNumber;
42
+ outputTokens: _$zod.ZodNumber;
43
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
44
+ }, _$zod_v4_core0.$strip>;
45
+ byAgent: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodObject<{
46
+ inputTokens: _$zod.ZodNumber;
47
+ outputTokens: _$zod.ZodNumber;
48
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
49
+ }, _$zod_v4_core0.$strip>>>;
50
+ }, _$zod_v4_core0.$strip>>;
51
+ }, _$zod_v4_core0.$strip>;
52
+ }, _$zod_v4_core0.$strip>;
53
+ };
54
+ complete: {
55
+ request: _$zod.ZodObject<{
56
+ turnId: _$zod.ZodString;
57
+ status: _$zod.ZodEnum<{
58
+ error: "error";
59
+ completed: "completed";
60
+ }>;
61
+ expectedStatus: _$zod.ZodOptional<_$zod.ZodEnum<{
62
+ error: "error";
63
+ completed: "completed";
64
+ active: "active";
65
+ }>>;
66
+ error: _$zod.ZodOptional<_$zod.ZodString>;
67
+ usage: _$zod.ZodOptional<_$zod.ZodObject<{
68
+ total: _$zod.ZodObject<{
69
+ inputTokens: _$zod.ZodNumber;
70
+ outputTokens: _$zod.ZodNumber;
71
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
72
+ }, _$zod_v4_core0.$strip>;
73
+ byAgent: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodObject<{
74
+ inputTokens: _$zod.ZodNumber;
75
+ outputTokens: _$zod.ZodNumber;
76
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
77
+ }, _$zod_v4_core0.$strip>>>;
78
+ }, _$zod_v4_core0.$strip>>;
79
+ }, _$zod_v4_core0.$strip>;
80
+ response: _$zod.ZodObject<{
81
+ turn: _$zod.ZodObject<{
82
+ turnId: _$zod.ZodString;
83
+ sessionId: _$zod.ZodString;
84
+ turnNumber: _$zod.ZodNumber;
85
+ startedAt: _$zod.ZodNumber;
86
+ completedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
87
+ status: _$zod.ZodEnum<{
88
+ error: "error";
89
+ completed: "completed";
90
+ active: "active";
91
+ }>;
92
+ error: _$zod.ZodOptional<_$zod.ZodString>;
93
+ usage: _$zod.ZodOptional<_$zod.ZodObject<{
94
+ total: _$zod.ZodObject<{
95
+ inputTokens: _$zod.ZodNumber;
96
+ outputTokens: _$zod.ZodNumber;
97
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
98
+ }, _$zod_v4_core0.$strip>;
99
+ byAgent: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodObject<{
100
+ inputTokens: _$zod.ZodNumber;
101
+ outputTokens: _$zod.ZodNumber;
102
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
103
+ }, _$zod_v4_core0.$strip>>>;
104
+ }, _$zod_v4_core0.$strip>>;
105
+ }, _$zod_v4_core0.$strip>;
106
+ transitioned: _$zod.ZodBoolean;
107
+ }, _$zod_v4_core0.$strip>;
108
+ };
109
+ set: {
110
+ request: _$zod.ZodObject<{
111
+ turn: _$zod.ZodObject<{
112
+ turnId: _$zod.ZodString;
113
+ sessionId: _$zod.ZodString;
114
+ turnNumber: _$zod.ZodNumber;
115
+ startedAt: _$zod.ZodNumber;
116
+ completedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
117
+ status: _$zod.ZodEnum<{
118
+ error: "error";
119
+ completed: "completed";
120
+ active: "active";
121
+ }>;
122
+ error: _$zod.ZodOptional<_$zod.ZodString>;
123
+ usage: _$zod.ZodOptional<_$zod.ZodObject<{
124
+ total: _$zod.ZodObject<{
125
+ inputTokens: _$zod.ZodNumber;
126
+ outputTokens: _$zod.ZodNumber;
127
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
128
+ }, _$zod_v4_core0.$strip>;
129
+ byAgent: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodObject<{
130
+ inputTokens: _$zod.ZodNumber;
131
+ outputTokens: _$zod.ZodNumber;
132
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
133
+ }, _$zod_v4_core0.$strip>>>;
134
+ }, _$zod_v4_core0.$strip>>;
135
+ }, _$zod_v4_core0.$strip>;
136
+ }, _$zod_v4_core0.$strip>;
137
+ response: _$zod.ZodObject<{
138
+ turn: _$zod.ZodObject<{
139
+ turnId: _$zod.ZodString;
140
+ sessionId: _$zod.ZodString;
141
+ turnNumber: _$zod.ZodNumber;
142
+ startedAt: _$zod.ZodNumber;
143
+ completedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
144
+ status: _$zod.ZodEnum<{
145
+ error: "error";
146
+ completed: "completed";
147
+ active: "active";
148
+ }>;
149
+ error: _$zod.ZodOptional<_$zod.ZodString>;
150
+ usage: _$zod.ZodOptional<_$zod.ZodObject<{
151
+ total: _$zod.ZodObject<{
152
+ inputTokens: _$zod.ZodNumber;
153
+ outputTokens: _$zod.ZodNumber;
154
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
155
+ }, _$zod_v4_core0.$strip>;
156
+ byAgent: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodObject<{
157
+ inputTokens: _$zod.ZodNumber;
158
+ outputTokens: _$zod.ZodNumber;
159
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
160
+ }, _$zod_v4_core0.$strip>>>;
161
+ }, _$zod_v4_core0.$strip>>;
162
+ }, _$zod_v4_core0.$strip>;
163
+ }, _$zod_v4_core0.$strip>;
164
+ };
165
+ get: {
166
+ request: _$zod.ZodObject<{
167
+ turnId: _$zod.ZodString;
168
+ }, _$zod_v4_core0.$strip>;
169
+ response: _$zod.ZodObject<{
170
+ turn: _$zod.ZodNullable<_$zod.ZodObject<{
171
+ turnId: _$zod.ZodString;
172
+ sessionId: _$zod.ZodString;
173
+ turnNumber: _$zod.ZodNumber;
174
+ startedAt: _$zod.ZodNumber;
175
+ completedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
176
+ status: _$zod.ZodEnum<{
177
+ error: "error";
178
+ completed: "completed";
179
+ active: "active";
180
+ }>;
181
+ error: _$zod.ZodOptional<_$zod.ZodString>;
182
+ usage: _$zod.ZodOptional<_$zod.ZodObject<{
183
+ total: _$zod.ZodObject<{
184
+ inputTokens: _$zod.ZodNumber;
185
+ outputTokens: _$zod.ZodNumber;
186
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
187
+ }, _$zod_v4_core0.$strip>;
188
+ byAgent: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodObject<{
189
+ inputTokens: _$zod.ZodNumber;
190
+ outputTokens: _$zod.ZodNumber;
191
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
192
+ }, _$zod_v4_core0.$strip>>>;
193
+ }, _$zod_v4_core0.$strip>>;
194
+ }, _$zod_v4_core0.$strip>>;
195
+ }, _$zod_v4_core0.$strip>;
196
+ };
197
+ getBySession: {
198
+ request: _$zod.ZodObject<{
199
+ sessionId: _$zod.ZodString;
200
+ limit: _$zod.ZodOptional<_$zod.ZodNumber>;
201
+ status: _$zod.ZodOptional<_$zod.ZodEnum<{
202
+ error: "error";
203
+ completed: "completed";
204
+ active: "active";
205
+ }>>;
206
+ }, _$zod_v4_core0.$strip>;
207
+ response: _$zod.ZodObject<{
208
+ turns: _$zod.ZodArray<_$zod.ZodObject<{
209
+ turnId: _$zod.ZodString;
210
+ sessionId: _$zod.ZodString;
211
+ turnNumber: _$zod.ZodNumber;
212
+ startedAt: _$zod.ZodNumber;
213
+ completedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
214
+ status: _$zod.ZodEnum<{
215
+ error: "error";
216
+ completed: "completed";
217
+ active: "active";
218
+ }>;
219
+ error: _$zod.ZodOptional<_$zod.ZodString>;
220
+ usage: _$zod.ZodOptional<_$zod.ZodObject<{
221
+ total: _$zod.ZodObject<{
222
+ inputTokens: _$zod.ZodNumber;
223
+ outputTokens: _$zod.ZodNumber;
224
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
225
+ }, _$zod_v4_core0.$strip>;
226
+ byAgent: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodObject<{
227
+ inputTokens: _$zod.ZodNumber;
228
+ outputTokens: _$zod.ZodNumber;
229
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
230
+ }, _$zod_v4_core0.$strip>>>;
231
+ }, _$zod_v4_core0.$strip>>;
232
+ }, _$zod_v4_core0.$strip>>;
233
+ }, _$zod_v4_core0.$strip>;
234
+ };
235
+ getActive: {
236
+ request: _$zod.ZodObject<{
237
+ sessionId: _$zod.ZodString;
238
+ }, _$zod_v4_core0.$strip>;
239
+ response: _$zod.ZodObject<{
240
+ turn: _$zod.ZodNullable<_$zod.ZodObject<{
241
+ turnId: _$zod.ZodString;
242
+ sessionId: _$zod.ZodString;
243
+ turnNumber: _$zod.ZodNumber;
244
+ startedAt: _$zod.ZodNumber;
245
+ completedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
246
+ status: _$zod.ZodEnum<{
247
+ error: "error";
248
+ completed: "completed";
249
+ active: "active";
250
+ }>;
251
+ error: _$zod.ZodOptional<_$zod.ZodString>;
252
+ usage: _$zod.ZodOptional<_$zod.ZodObject<{
253
+ total: _$zod.ZodObject<{
254
+ inputTokens: _$zod.ZodNumber;
255
+ outputTokens: _$zod.ZodNumber;
256
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
257
+ }, _$zod_v4_core0.$strip>;
258
+ byAgent: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodObject<{
259
+ inputTokens: _$zod.ZodNumber;
260
+ outputTokens: _$zod.ZodNumber;
261
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
262
+ }, _$zod_v4_core0.$strip>>>;
263
+ }, _$zod_v4_core0.$strip>>;
264
+ }, _$zod_v4_core0.$strip>>;
265
+ }, _$zod_v4_core0.$strip>;
266
+ };
267
+ listActive: {
268
+ request: _$zod.ZodObject<{}, _$zod_v4_core0.$strip>;
269
+ response: _$zod.ZodObject<{
270
+ turns: _$zod.ZodArray<_$zod.ZodObject<{
271
+ turnId: _$zod.ZodString;
272
+ sessionId: _$zod.ZodString;
273
+ turnNumber: _$zod.ZodNumber;
274
+ startedAt: _$zod.ZodNumber;
275
+ completedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
276
+ status: _$zod.ZodEnum<{
277
+ error: "error";
278
+ completed: "completed";
279
+ active: "active";
280
+ }>;
281
+ error: _$zod.ZodOptional<_$zod.ZodString>;
282
+ usage: _$zod.ZodOptional<_$zod.ZodObject<{
283
+ total: _$zod.ZodObject<{
284
+ inputTokens: _$zod.ZodNumber;
285
+ outputTokens: _$zod.ZodNumber;
286
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
287
+ }, _$zod_v4_core0.$strip>;
288
+ byAgent: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodObject<{
289
+ inputTokens: _$zod.ZodNumber;
290
+ outputTokens: _$zod.ZodNumber;
291
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
292
+ }, _$zod_v4_core0.$strip>>>;
293
+ }, _$zod_v4_core0.$strip>>;
294
+ }, _$zod_v4_core0.$strip>>;
295
+ }, _$zod_v4_core0.$strip>;
296
+ };
297
+ }, _$_makaio_storage_core0.StorageNamespaceExtensions>;
298
+ /**
299
+ * Typed subjects for turn storage operations.
300
+ */
301
+ declare const TurnStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjectDefinitions<"storage:turn", {
302
+ create: {
303
+ request: _$zod.ZodObject<{
304
+ sessionId: _$zod.ZodString;
305
+ turnId: _$zod.ZodOptional<_$zod.ZodString>;
306
+ }, _$zod_v4_core0.$strip>;
307
+ response: _$zod.ZodObject<{
308
+ turn: _$zod.ZodObject<{
309
+ turnId: _$zod.ZodString;
310
+ sessionId: _$zod.ZodString;
311
+ turnNumber: _$zod.ZodNumber;
312
+ startedAt: _$zod.ZodNumber;
313
+ completedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
314
+ status: _$zod.ZodEnum<{
315
+ error: "error";
316
+ completed: "completed";
317
+ active: "active";
318
+ }>;
319
+ error: _$zod.ZodOptional<_$zod.ZodString>;
320
+ usage: _$zod.ZodOptional<_$zod.ZodObject<{
321
+ total: _$zod.ZodObject<{
322
+ inputTokens: _$zod.ZodNumber;
323
+ outputTokens: _$zod.ZodNumber;
324
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
325
+ }, _$zod_v4_core0.$strip>;
326
+ byAgent: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodObject<{
327
+ inputTokens: _$zod.ZodNumber;
328
+ outputTokens: _$zod.ZodNumber;
329
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
330
+ }, _$zod_v4_core0.$strip>>>;
331
+ }, _$zod_v4_core0.$strip>>;
332
+ }, _$zod_v4_core0.$strip>;
333
+ }, _$zod_v4_core0.$strip>;
334
+ };
335
+ complete: {
336
+ request: _$zod.ZodObject<{
337
+ turnId: _$zod.ZodString;
338
+ status: _$zod.ZodEnum<{
339
+ error: "error";
340
+ completed: "completed";
341
+ }>;
342
+ expectedStatus: _$zod.ZodOptional<_$zod.ZodEnum<{
343
+ error: "error";
344
+ completed: "completed";
345
+ active: "active";
346
+ }>>;
347
+ error: _$zod.ZodOptional<_$zod.ZodString>;
348
+ usage: _$zod.ZodOptional<_$zod.ZodObject<{
349
+ total: _$zod.ZodObject<{
350
+ inputTokens: _$zod.ZodNumber;
351
+ outputTokens: _$zod.ZodNumber;
352
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
353
+ }, _$zod_v4_core0.$strip>;
354
+ byAgent: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodObject<{
355
+ inputTokens: _$zod.ZodNumber;
356
+ outputTokens: _$zod.ZodNumber;
357
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
358
+ }, _$zod_v4_core0.$strip>>>;
359
+ }, _$zod_v4_core0.$strip>>;
360
+ }, _$zod_v4_core0.$strip>;
361
+ response: _$zod.ZodObject<{
362
+ turn: _$zod.ZodObject<{
363
+ turnId: _$zod.ZodString;
364
+ sessionId: _$zod.ZodString;
365
+ turnNumber: _$zod.ZodNumber;
366
+ startedAt: _$zod.ZodNumber;
367
+ completedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
368
+ status: _$zod.ZodEnum<{
369
+ error: "error";
370
+ completed: "completed";
371
+ active: "active";
372
+ }>;
373
+ error: _$zod.ZodOptional<_$zod.ZodString>;
374
+ usage: _$zod.ZodOptional<_$zod.ZodObject<{
375
+ total: _$zod.ZodObject<{
376
+ inputTokens: _$zod.ZodNumber;
377
+ outputTokens: _$zod.ZodNumber;
378
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
379
+ }, _$zod_v4_core0.$strip>;
380
+ byAgent: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodObject<{
381
+ inputTokens: _$zod.ZodNumber;
382
+ outputTokens: _$zod.ZodNumber;
383
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
384
+ }, _$zod_v4_core0.$strip>>>;
385
+ }, _$zod_v4_core0.$strip>>;
386
+ }, _$zod_v4_core0.$strip>;
387
+ transitioned: _$zod.ZodBoolean;
388
+ }, _$zod_v4_core0.$strip>;
389
+ };
390
+ set: {
391
+ request: _$zod.ZodObject<{
392
+ turn: _$zod.ZodObject<{
393
+ turnId: _$zod.ZodString;
394
+ sessionId: _$zod.ZodString;
395
+ turnNumber: _$zod.ZodNumber;
396
+ startedAt: _$zod.ZodNumber;
397
+ completedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
398
+ status: _$zod.ZodEnum<{
399
+ error: "error";
400
+ completed: "completed";
401
+ active: "active";
402
+ }>;
403
+ error: _$zod.ZodOptional<_$zod.ZodString>;
404
+ usage: _$zod.ZodOptional<_$zod.ZodObject<{
405
+ total: _$zod.ZodObject<{
406
+ inputTokens: _$zod.ZodNumber;
407
+ outputTokens: _$zod.ZodNumber;
408
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
409
+ }, _$zod_v4_core0.$strip>;
410
+ byAgent: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodObject<{
411
+ inputTokens: _$zod.ZodNumber;
412
+ outputTokens: _$zod.ZodNumber;
413
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
414
+ }, _$zod_v4_core0.$strip>>>;
415
+ }, _$zod_v4_core0.$strip>>;
416
+ }, _$zod_v4_core0.$strip>;
417
+ }, _$zod_v4_core0.$strip>;
418
+ response: _$zod.ZodObject<{
419
+ turn: _$zod.ZodObject<{
420
+ turnId: _$zod.ZodString;
421
+ sessionId: _$zod.ZodString;
422
+ turnNumber: _$zod.ZodNumber;
423
+ startedAt: _$zod.ZodNumber;
424
+ completedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
425
+ status: _$zod.ZodEnum<{
426
+ error: "error";
427
+ completed: "completed";
428
+ active: "active";
429
+ }>;
430
+ error: _$zod.ZodOptional<_$zod.ZodString>;
431
+ usage: _$zod.ZodOptional<_$zod.ZodObject<{
432
+ total: _$zod.ZodObject<{
433
+ inputTokens: _$zod.ZodNumber;
434
+ outputTokens: _$zod.ZodNumber;
435
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
436
+ }, _$zod_v4_core0.$strip>;
437
+ byAgent: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodObject<{
438
+ inputTokens: _$zod.ZodNumber;
439
+ outputTokens: _$zod.ZodNumber;
440
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
441
+ }, _$zod_v4_core0.$strip>>>;
442
+ }, _$zod_v4_core0.$strip>>;
443
+ }, _$zod_v4_core0.$strip>;
444
+ }, _$zod_v4_core0.$strip>;
445
+ };
446
+ get: {
447
+ request: _$zod.ZodObject<{
448
+ turnId: _$zod.ZodString;
449
+ }, _$zod_v4_core0.$strip>;
450
+ response: _$zod.ZodObject<{
451
+ turn: _$zod.ZodNullable<_$zod.ZodObject<{
452
+ turnId: _$zod.ZodString;
453
+ sessionId: _$zod.ZodString;
454
+ turnNumber: _$zod.ZodNumber;
455
+ startedAt: _$zod.ZodNumber;
456
+ completedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
457
+ status: _$zod.ZodEnum<{
458
+ error: "error";
459
+ completed: "completed";
460
+ active: "active";
461
+ }>;
462
+ error: _$zod.ZodOptional<_$zod.ZodString>;
463
+ usage: _$zod.ZodOptional<_$zod.ZodObject<{
464
+ total: _$zod.ZodObject<{
465
+ inputTokens: _$zod.ZodNumber;
466
+ outputTokens: _$zod.ZodNumber;
467
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
468
+ }, _$zod_v4_core0.$strip>;
469
+ byAgent: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodObject<{
470
+ inputTokens: _$zod.ZodNumber;
471
+ outputTokens: _$zod.ZodNumber;
472
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
473
+ }, _$zod_v4_core0.$strip>>>;
474
+ }, _$zod_v4_core0.$strip>>;
475
+ }, _$zod_v4_core0.$strip>>;
476
+ }, _$zod_v4_core0.$strip>;
477
+ };
478
+ getBySession: {
479
+ request: _$zod.ZodObject<{
480
+ sessionId: _$zod.ZodString;
481
+ limit: _$zod.ZodOptional<_$zod.ZodNumber>;
482
+ status: _$zod.ZodOptional<_$zod.ZodEnum<{
483
+ error: "error";
484
+ completed: "completed";
485
+ active: "active";
486
+ }>>;
487
+ }, _$zod_v4_core0.$strip>;
488
+ response: _$zod.ZodObject<{
489
+ turns: _$zod.ZodArray<_$zod.ZodObject<{
490
+ turnId: _$zod.ZodString;
491
+ sessionId: _$zod.ZodString;
492
+ turnNumber: _$zod.ZodNumber;
493
+ startedAt: _$zod.ZodNumber;
494
+ completedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
495
+ status: _$zod.ZodEnum<{
496
+ error: "error";
497
+ completed: "completed";
498
+ active: "active";
499
+ }>;
500
+ error: _$zod.ZodOptional<_$zod.ZodString>;
501
+ usage: _$zod.ZodOptional<_$zod.ZodObject<{
502
+ total: _$zod.ZodObject<{
503
+ inputTokens: _$zod.ZodNumber;
504
+ outputTokens: _$zod.ZodNumber;
505
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
506
+ }, _$zod_v4_core0.$strip>;
507
+ byAgent: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodObject<{
508
+ inputTokens: _$zod.ZodNumber;
509
+ outputTokens: _$zod.ZodNumber;
510
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
511
+ }, _$zod_v4_core0.$strip>>>;
512
+ }, _$zod_v4_core0.$strip>>;
513
+ }, _$zod_v4_core0.$strip>>;
514
+ }, _$zod_v4_core0.$strip>;
515
+ };
516
+ getActive: {
517
+ request: _$zod.ZodObject<{
518
+ sessionId: _$zod.ZodString;
519
+ }, _$zod_v4_core0.$strip>;
520
+ response: _$zod.ZodObject<{
521
+ turn: _$zod.ZodNullable<_$zod.ZodObject<{
522
+ turnId: _$zod.ZodString;
523
+ sessionId: _$zod.ZodString;
524
+ turnNumber: _$zod.ZodNumber;
525
+ startedAt: _$zod.ZodNumber;
526
+ completedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
527
+ status: _$zod.ZodEnum<{
528
+ error: "error";
529
+ completed: "completed";
530
+ active: "active";
531
+ }>;
532
+ error: _$zod.ZodOptional<_$zod.ZodString>;
533
+ usage: _$zod.ZodOptional<_$zod.ZodObject<{
534
+ total: _$zod.ZodObject<{
535
+ inputTokens: _$zod.ZodNumber;
536
+ outputTokens: _$zod.ZodNumber;
537
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
538
+ }, _$zod_v4_core0.$strip>;
539
+ byAgent: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodObject<{
540
+ inputTokens: _$zod.ZodNumber;
541
+ outputTokens: _$zod.ZodNumber;
542
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
543
+ }, _$zod_v4_core0.$strip>>>;
544
+ }, _$zod_v4_core0.$strip>>;
545
+ }, _$zod_v4_core0.$strip>>;
546
+ }, _$zod_v4_core0.$strip>;
547
+ };
548
+ listActive: {
549
+ request: _$zod.ZodObject<{}, _$zod_v4_core0.$strip>;
550
+ response: _$zod.ZodObject<{
551
+ turns: _$zod.ZodArray<_$zod.ZodObject<{
552
+ turnId: _$zod.ZodString;
553
+ sessionId: _$zod.ZodString;
554
+ turnNumber: _$zod.ZodNumber;
555
+ startedAt: _$zod.ZodNumber;
556
+ completedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
557
+ status: _$zod.ZodEnum<{
558
+ error: "error";
559
+ completed: "completed";
560
+ active: "active";
561
+ }>;
562
+ error: _$zod.ZodOptional<_$zod.ZodString>;
563
+ usage: _$zod.ZodOptional<_$zod.ZodObject<{
564
+ total: _$zod.ZodObject<{
565
+ inputTokens: _$zod.ZodNumber;
566
+ outputTokens: _$zod.ZodNumber;
567
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
568
+ }, _$zod_v4_core0.$strip>;
569
+ byAgent: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodObject<{
570
+ inputTokens: _$zod.ZodNumber;
571
+ outputTokens: _$zod.ZodNumber;
572
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
573
+ }, _$zod_v4_core0.$strip>>>;
574
+ }, _$zod_v4_core0.$strip>>;
575
+ }, _$zod_v4_core0.$strip>>;
576
+ }, _$zod_v4_core0.$strip>;
577
+ };
578
+ }>, "storage:turn">;
579
+ //#endregion
580
+ export { TurnStorageSubjects as n, TurnStorageNamespace as t };
@@ -0,0 +1 @@
1
+ import{z as e}from"zod";import{createBusNamespace as t}from"@makaio/framework/core";import{SessionMessageSchema as n}from"@makaio/framework/contracts";const r=e.enum([`compression`,`extraction`,`transformation`]),i=e.union([e.object({kind:e.literal(`messages`),messages:e.array(n)}),e.object({kind:e.literal(`context`),json:e.record(e.string(),e.unknown()),tokenEstimate:e.number().optional()})]),a=e.object({id:e.string(),label:e.string(),description:e.string(),category:r}),o={listActions:{request:e.object({}),response:e.object({actions:e.array(a)})}},s=t(`session-editor`,o),c=s.subjects;export{r as a,o as i,c as n,i as o,a as r,s as t};
@@ -0,0 +1,51 @@
1
+ import * as _$zod from "zod";
2
+ import * as _$_makaio_core0 from "@makaio/framework/core";
3
+ import * as _$zod_v4_core0 from "zod/v4/core";
4
+
5
+ //#region packages/services/core/src/adapter-runtime/namespace.d.ts
6
+ /**
7
+ * Runtime namespace for live adapter identity and lifecycle operations.
8
+ */
9
+ declare const AdapterRuntimeNamespace: _$_makaio_core0.BusNamespaceDefinition<"adapterRuntime", {
10
+ resolveId: {
11
+ request: _$zod.ZodObject<{
12
+ adapterName: _$zod.ZodString;
13
+ machineId: _$zod.ZodOptional<_$zod.ZodString>;
14
+ }, _$zod_v4_core0.$strict>;
15
+ response: _$zod.ZodObject<{
16
+ adapterId: _$zod.ZodString;
17
+ }, _$zod_v4_core0.$strict>;
18
+ };
19
+ resolveName: {
20
+ request: _$zod.ZodObject<{
21
+ adapterId: _$zod.ZodString;
22
+ }, _$zod_v4_core0.$strict>;
23
+ response: _$zod.ZodObject<{
24
+ adapterName: _$zod.ZodString;
25
+ }, _$zod_v4_core0.$strict>;
26
+ };
27
+ }>;
28
+ /**
29
+ * Pre-resolved adapter runtime subjects for direct import.
30
+ */
31
+ declare const AdapterRuntimeSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjectDefinitions<"adapterRuntime", {
32
+ resolveId: {
33
+ request: _$zod.ZodObject<{
34
+ adapterName: _$zod.ZodString;
35
+ machineId: _$zod.ZodOptional<_$zod.ZodString>;
36
+ }, _$zod_v4_core0.$strict>;
37
+ response: _$zod.ZodObject<{
38
+ adapterId: _$zod.ZodString;
39
+ }, _$zod_v4_core0.$strict>;
40
+ };
41
+ resolveName: {
42
+ request: _$zod.ZodObject<{
43
+ adapterId: _$zod.ZodString;
44
+ }, _$zod_v4_core0.$strict>;
45
+ response: _$zod.ZodObject<{
46
+ adapterName: _$zod.ZodString;
47
+ }, _$zod_v4_core0.$strict>;
48
+ };
49
+ }>, "adapterRuntime">;
50
+ //#endregion
51
+ export { AdapterRuntimeSubjects as n, AdapterRuntimeNamespace as t };
@@ -0,0 +1 @@
1
+ import{z as e}from"zod";import{createBusNamespace as t}from"@makaio/framework/core";import{ProviderContextSchema as n}from"@makaio/framework/contracts/adapter";import{AdapterFileSchema as r,CredentialRefSchema as i,isCanonicalProviderConfigName as a}from"@makaio/framework/contracts/config";import{ModelFilterModeSchema as o,ModelVisibilitySchema as s,ProtocolEndpointsSchema as c,ProviderDefinitionSchema as l}from"@makaio/framework/contracts/provider";const u=`Provider config name must slugify to a canonical routing segment.`,d=e.record(e.string(),i),f=e.object({definitionId:e.string(),name:e.string().optional(),credentialRefs:e.record(e.string(),i).optional(),endpointOverrides:c.optional(),modelVisibility:e.record(e.string(),s).optional(),modelFilterMode:o.optional(),isSentinel:e.boolean().optional()}).strict().refine(e=>e.name===void 0||a(e.name),{message:u,path:[`name`]}),p=e.object({name:e.string().optional(),endpointOverrides:c.nullable().optional(),modelVisibility:e.record(e.string(),s).optional(),enabled:e.boolean().optional()}).strict().refine(e=>e.name===void 0||a(e.name),{message:u,path:[`name`]}),m=e.object({}).strict(),h=e.object({id:e.string(),definitionId:e.string(),name:e.string(),endpointOverrides:e.record(e.string(),e.string()).optional(),modelVisibility:e.record(e.string(),s).optional(),modelFilterMode:o,isDefault:e.boolean(),enabled:e.boolean(),isSentinel:e.boolean(),hasCredentials:e.boolean(),sourceRef:e.string().optional()}).strict(),g=e.object({adapterName:e.string(),providerConfigId:e.string(),isDefault:e.boolean()}).strict(),_=r.omit({$schema:!0,bindings:!0}).extend({name:e.string(),enabled:e.boolean(),bindings:e.array(g)}).strict(),v=e.enum([`ready`,`needs-setup`]),y=e.object({label:e.string(),url:e.string()}).strict(),b=e.object({name:e.string(),displayName:e.string(),description:e.string().optional(),enabled:e.boolean(),configCount:e.number(),readiness:v,supportsLogImport:e.boolean(),helpLinks:e.array(y).optional(),instructions:e.string().optional(),clientId:e.string().optional(),protocol:e.string().optional(),providerDefinitionIds:e.array(e.string()).optional()}).strict(),x={getAdapterConfig:{request:e.object({name:e.string()}).strict(),response:e.object({config:_.nullable()}).strict()},listAdapterConfigs:{request:m,response:e.object({configs:e.array(_)}).strict()},getProviderConfig:{request:e.object({id:e.string()}).strict(),response:e.object({config:h.nullable()}).strict()},listProviderConfigs:{request:e.object({enabled:e.boolean().optional()}).strict(),response:e.object({configs:e.array(h)}).strict()},listProviderConfigsByDefinition:{request:e.object({definitionId:e.string()}).strict(),response:e.object({configs:e.array(h)}).strict()},listBindings:{request:e.object({adapterName:e.string()}).strict(),response:e.object({bindings:e.array(g)}).strict()},listBindingsByConfig:{request:e.object({providerConfigId:e.string()}).strict(),response:e.object({bindings:e.array(g)}).strict()},getDefaultBinding:{request:e.object({adapterName:e.string()}).strict(),response:e.object({binding:g.nullable()}).strict()},findConfigForDefinitionAndAdapter:{request:e.object({definitionId:e.string(),adapterName:e.string()}).strict(),response:e.object({config:h.nullable()}).strict()},buildProviderContext:{request:e.object({providerConfigId:e.string()}).strict(),response:e.object({context:n.nullable()}).strict()},listAdapters:{request:m,response:e.object({adapters:e.array(b)}).strict()},getProviderDefinitionsByAdapter:{request:e.object({adapterName:e.string()}).strict(),response:e.object({definitions:e.array(l)}).strict()},createProviderConfig:{request:f,response:e.object({config:h}).strict()},updateProviderConfig:{request:e.object({id:e.string(),patch:p}).strict(),response:e.object({config:h}).strict()},setProviderConfigCredentialRefs:{request:e.object({id:e.string(),credentialRefs:d}).strict(),response:e.object({config:h}).strict()},deleteProviderConfig:{request:e.object({id:e.string()}).strict(),response:e.object({deleted:e.boolean()}).strict()},setDefaultProviderConfig:{request:e.object({id:e.string()}).strict(),response:e.object({config:h}).strict()},setModelFilterMode:{request:e.object({id:e.string(),modelFilterMode:o,preferredModel:e.string().optional()}).strict(),response:e.object({config:h}).strict()},setAdapterConfig:{request:e.object({name:e.string(),patch:e.object({displayName:e.string().optional(),description:e.string().optional(),helpLinks:e.array(y).optional(),instructions:e.string().optional(),clientId:e.string().optional(),protocol:e.string().optional(),providerDefinitionIds:e.array(e.string()).optional(),settings:r.shape.settings,enabled:e.boolean().optional()}).strict()}).strict(),response:e.object({config:_}).strict()},setAdapterEnabled:{request:e.object({name:e.string(),enabled:e.boolean()}).strict(),response:e.object({success:e.boolean()}).strict()},bind:{request:e.object({adapterName:e.string(),providerConfigId:e.string()}).strict(),response:e.object({binding:g}).strict()},unbind:{request:e.object({adapterName:e.string(),providerConfigId:e.string()}).strict(),response:m},setDefaultBinding:{request:e.object({adapterName:e.string(),providerConfigId:e.string()}).strict(),response:m},ensureReady:{request:m,response:e.object({ready:e.literal(!0)}).strict()},"providerConfig.created":h,"providerConfig.updated":h,"providerConfig.deleted":e.object({id:e.string()}).strict(),"providerConfig.defaultChanged":e.object({definitionId:e.string(),configId:e.string().nullable()}).strict(),"binding.created":g,"binding.deleted":e.object({adapterName:e.string(),providerConfigId:e.string()}).strict(),"binding.defaultChanged":e.object({adapterName:e.string(),providerConfigId:e.string()}).strict(),ready:m,"adapter.registered":e.object({adapterName:e.string(),displayName:e.string(),packageName:e.string(),enabled:e.boolean(),initialized:e.boolean(),providerDefinitionIds:e.array(e.string())}).strict()},S=t(`adapterSubsystem`,x),C=S.subjects;export{x as a,h as c,f as d,v as i,d as l,C as n,g as o,_ as r,b as s,S as t,p as u};