@makaio/framework 1.0.0-dev-1781034508425 → 1.0.0-dev-1781117225170

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 (359) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/adapters/acp-client/index.d.mts +4 -4
  3. package/dist/adapters/config/index.d.mts +1 -1
  4. package/dist/adapters/config/index.mjs +1 -1
  5. package/dist/adapters/index.d.mts +23 -22
  6. package/dist/adapters/index.mjs +1 -1
  7. package/dist/adapters/node.d.mts +1 -1
  8. package/dist/adapters/node.mjs +1 -1
  9. package/dist/ajv-0JG5NFEd.mjs +8 -0
  10. package/dist/await-trigger-CHuOd5co.mjs +1 -0
  11. package/dist/bus/index.d.mts +2 -2
  12. package/dist/{clients-namespace-DOr4mmmr.d.mts → clients-namespace-E97p_GKF.d.mts} +7 -7
  13. package/dist/contracts/adapter/index.d.mts +2 -2
  14. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  15. package/dist/contracts/artifact/index.d.mts +1 -1
  16. package/dist/contracts/client/index.d.mts +2 -2
  17. package/dist/contracts/common/index.d.mts +1 -1
  18. package/dist/contracts/config/index.d.mts +1 -1
  19. package/dist/contracts/extension/index.d.mts +3 -3
  20. package/dist/contracts/facet/index.d.mts +1 -1
  21. package/dist/contracts/harness/index.d.mts +1 -1
  22. package/dist/contracts/host/index.d.mts +1 -1
  23. package/dist/contracts/index.d.mts +217 -217
  24. package/dist/contracts/materialization/index.d.mts +3 -3
  25. package/dist/contracts/model-registry/index.d.mts +1 -1
  26. package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
  27. package/dist/contracts/platform/index.d.mts +1 -1
  28. package/dist/contracts/provider/index.d.mts +2 -2
  29. package/dist/contracts/session/index.d.mts +2 -2
  30. package/dist/contracts/shared/index.d.mts +1 -1
  31. package/dist/contracts/skill/index.d.mts +1 -1
  32. package/dist/contracts/telemetry/index.d.mts +1 -1
  33. package/dist/contracts/timeout/index.d.mts +1 -1
  34. package/dist/contracts/variant/index.d.mts +1 -1
  35. package/dist/{cursor-storage-BOsCO4oj.mjs → cursor-storage-YikwAZR5.mjs} +1 -1
  36. package/dist/{definition-CWCNiH-q.d.mts → definition-CYzWS2eR.d.mts} +1 -1
  37. package/dist/{definition-BidQ9_x8.d.mts → definition-Cp-5xJp_.d.mts} +1 -1
  38. package/dist/{detached-extension-handle-Bo5Q06_g.mjs → detached-extension-handle-oXbjv1tA.mjs} +1 -1
  39. package/dist/drizzle/0000_charming_prowler.sql +443 -0
  40. package/dist/drizzle/0001_known_stephen_strange.sql +25 -0
  41. package/dist/drizzle/0002_woozy_gladiator.sql +1 -0
  42. package/dist/drizzle/0003_overjoyed_adam_destine.sql +1 -0
  43. package/dist/drizzle/0004_solid_goliath.sql +1 -0
  44. package/dist/drizzle/0005_round_calypso.sql +51 -0
  45. package/dist/drizzle/0006_free_tiger_shark.sql +4 -0
  46. package/dist/drizzle/0007_sparkling_terror.sql +2 -0
  47. package/dist/drizzle/0008_petite_deathstrike.sql +1 -0
  48. package/dist/drizzle/0009_lethal_malcolm_colcord.sql +6 -0
  49. package/dist/drizzle/0010_grey_chronomancer.sql +1 -0
  50. package/dist/drizzle/0011_solid_nomad.sql +1 -0
  51. package/dist/drizzle/meta/0000_snapshot.json +2813 -0
  52. package/dist/drizzle/meta/0001_snapshot.json +2820 -0
  53. package/dist/drizzle/meta/0002_snapshot.json +2827 -0
  54. package/dist/drizzle/meta/0003_snapshot.json +2834 -0
  55. package/dist/drizzle/meta/0004_snapshot.json +2842 -0
  56. package/dist/drizzle/meta/0005_snapshot.json +2849 -0
  57. package/dist/drizzle/meta/0006_snapshot.json +2865 -0
  58. package/dist/drizzle/meta/0007_snapshot.json +2879 -0
  59. package/dist/drizzle/meta/0008_snapshot.json +2886 -0
  60. package/dist/drizzle/meta/0009_snapshot.json +2901 -0
  61. package/dist/drizzle/meta/0010_snapshot.json +2908 -0
  62. package/dist/drizzle/meta/0011_snapshot.json +2915 -0
  63. package/dist/drizzle/meta/_journal.json +90 -0
  64. package/dist/esm-CglYG5aA.mjs +1 -0
  65. package/dist/expression/index.d.mts +11 -2
  66. package/dist/expression/index.mjs +4 -4
  67. package/dist/extension--5Q190u_.mjs +1 -0
  68. package/dist/{filesystem-service-B9RbT-n-.mjs → filesystem-service-CBJT7A5w.mjs} +1 -1
  69. package/dist/git/index.mjs +14 -14
  70. package/dist/{globby-DPHEhf86.mjs → globby-C0lgTOUl.mjs} +1 -1
  71. package/dist/{handlers-Bl2Af8zt.mjs → handlers-Bev7-xjL.mjs} +1 -1
  72. package/dist/{index-LbBWaNnT.d.mts → index-BELri1Hy.d.mts} +122 -122
  73. package/dist/{index-DuIPU8sG.d.mts → index-BY-fz0Jy.d.mts} +174 -174
  74. package/dist/{index-o9__SHM7.d.mts → index-Bw8SkcWG.d.mts} +1 -1
  75. package/dist/{index-WZX3cU1L.d.mts → index-C1uZLARQ.d.mts} +4 -4
  76. package/dist/{index-Bs5H4PFm.d.mts → index-CXfWW8cP.d.mts} +112 -112
  77. package/dist/{index-B0bwOIpr.d.mts → index-C_jIVT40.d.mts} +2 -2
  78. package/dist/{index-Brlbx33t.d.mts → index-ClgVA8Rz.d.mts} +22 -22
  79. package/dist/{index-Bo6dMW5B.d.mts → index-CmGvjpUG.d.mts} +6 -6
  80. package/dist/{index-B-_F8N_E.d.mts → index-DUPZKsd3.d.mts} +12 -12
  81. package/dist/{index-Dnd_-839.d.mts → index-DUhXk_q6.d.mts} +4 -4
  82. package/dist/{index-2mvEGCcP.d.mts → index-DfUBcVtG.d.mts} +2 -2
  83. package/dist/{index-j7hM0JEz.d.mts → index-Dsu1tPHm.d.mts} +16 -16
  84. package/dist/{index-ayGCeZ8t.d.mts → index-SFkbbDxs.d.mts} +24 -24
  85. package/dist/{index-BXip2Nlo.d.mts → index-hWzUQtDn.d.mts} +17 -17
  86. package/dist/{index-BM7lYmmQ.d.mts → index-i7o6FtS0.d.mts} +33 -7
  87. package/dist/{index-BF8DYsOC.d.mts → index-kLBWooVu.d.mts} +30 -30
  88. package/dist/{index-B5lijQs7.d.mts → index-t9Vt4Jbb.d.mts} +17 -93
  89. package/dist/{index-BLmI8xDN.d.mts → index-uQl_1wQO.d.mts} +7 -7
  90. package/dist/{index-k7SK-A0P.d.mts → index-v2kRZnfw2.d.mts} +3 -3
  91. package/dist/kernel/cli/index.d.mts +2 -95
  92. package/dist/kernel/cli/index.mjs +1 -1
  93. package/dist/kernel/cli/register.d.mts +2 -0
  94. package/dist/kernel/cli/register.mjs +1 -0
  95. package/dist/kernel/extension/index.d.mts +1 -1
  96. package/dist/kernel/extension/index.mjs +1 -1
  97. package/dist/kernel/index.d.mts +5 -5
  98. package/dist/kernel/index.mjs +1 -1
  99. package/dist/kernel/namespace/index.d.mts +1 -1
  100. package/dist/kernel/observability/index.d.mts +1 -1
  101. package/dist/kernel/providers/index.d.mts +1 -1
  102. package/dist/kernel/window/index.d.mts +1 -1
  103. package/dist/{lib-DtXofYKC.mjs → lib-CaOdTS9F.mjs} +1 -1
  104. package/dist/lib-IkUYa2Qs.mjs +2 -0
  105. package/dist/{lib-X80cqNZ5.mjs → lib-zuQKc8ym.mjs} +19 -22
  106. package/dist/{load-extensions-CESuhxma.mjs → load-extensions-CwxilDj1.mjs} +1 -1
  107. package/dist/{load-extensions-t2rtaz1C.d.mts → load-extensions-DE8qDIqi.d.mts} +1 -1
  108. package/dist/mcp-http-server/index.mjs +4 -11
  109. package/dist/{namespace-BsmSZbub.d.mts → namespace-13uMtVGj.d.mts} +6 -6
  110. package/dist/namespace-BXqetkc3.mjs +1 -0
  111. package/dist/{namespace-YsOUkmgE.d.mts → namespace-BaJJxBsI.d.mts} +6 -6
  112. package/dist/{namespace-SD7Y-_iY.d.mts → namespace-CZPu_jvy.d.mts} +75 -75
  113. package/dist/{namespace-DldKDPMI.d.mts → namespace-Da_dHfdm.d.mts} +10 -10
  114. package/dist/{namespace-sd3QrSzo.d.mts → namespace-DfYutvMT.d.mts} +22 -22
  115. package/dist/{namespace-l8A5zTPU2.d.mts → namespace-DnZ4rS6T2.d.mts} +6 -6
  116. package/dist/namespace-TfZGCy7N.d.mts +96 -0
  117. package/dist/{namespace-B0l_lsLW.d.mts → namespace-ffepZB8Y.d.mts} +8 -8
  118. package/dist/{namespace-eOeUjGPB.mjs → namespace-h0HIuqx0.mjs} +1 -1
  119. package/dist/{namespace-BFM1kQbS.d.mts → namespace-uGw5nK6d.d.mts} +2 -2
  120. package/dist/node/bus-server/index.d.mts +1 -1
  121. package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
  122. package/dist/{orchestrator-shared-DaPATFz1.mjs → orchestrator-shared-FnWrPS09.mjs} +1 -1
  123. package/dist/{out-Rp-RSvc2.mjs → out-CiFds_ap.mjs} +1 -1
  124. package/dist/package-B2HkKyRz.d.mts +372 -0
  125. package/dist/package-C9wOiMK9.mjs +1 -0
  126. package/dist/package.json +5 -0
  127. package/dist/primitive-runtime-1Z3JbRUj.mjs +1 -0
  128. package/dist/{provider-context-ClL5nCQg.mjs → provider-context-lfG0BpqX.mjs} +1 -1
  129. package/dist/rules/index.d.mts +1 -1
  130. package/dist/rules/index.mjs +1 -1
  131. package/dist/rules/schemas.d.mts +1 -1
  132. package/dist/runtime-bun/index.mjs +1 -1
  133. package/dist/runtime-node/extension-discovery.d.mts +1 -1
  134. package/dist/runtime-node/extension-validation.d.mts +1 -1
  135. package/dist/runtime-node/extension-validation.mjs +1 -1
  136. package/dist/runtime-node/index.d.mts +3 -3
  137. package/dist/runtime-node/index.mjs +29 -29
  138. package/dist/runtime-node/makaio-config.d.mts +3 -3
  139. package/dist/runtime-node/makaio-config.mjs +1 -1
  140. package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
  141. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  142. package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
  143. package/dist/{schema-BycLqlQI.d.mts → schema-CfuF2cXW.d.mts} +2 -2
  144. package/dist/{schema-DxHkeT-G.mjs → schema-DCJyzRHe.mjs} +1 -1
  145. package/dist/schema-introspection-CuRZPYEc.mjs +1 -0
  146. package/dist/{schemas-BI4gqRlW.d.mts → schemas-BD-1NGmS.d.mts} +19 -19
  147. package/dist/{schemas-C4u2d8jR.d.mts → schemas-BFeP62V4.d.mts} +3 -3
  148. package/dist/{schemas-mD6cFIJs.d.mts → schemas-BiMxSTUx.d.mts} +6 -6
  149. package/dist/{schemas-C3wZhEAc.d.mts → schemas-CYS6bkht.d.mts} +5 -5
  150. package/dist/{schemas-BkeedMoC.d.mts → schemas-DL_bGYyZ.d.mts} +7 -7
  151. package/dist/{schemas-D7wxjmif.d.mts → schemas-DdZwjeF0.d.mts} +6 -6
  152. package/dist/{schemas-CaeiaR4r2.d.mts → schemas-SPI-Y87l2.d.mts} +13 -13
  153. package/dist/services/adapter-runtime/index.d.mts +3 -3
  154. package/dist/services/adapter-runtime/index.mjs +1 -1
  155. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  156. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  157. package/dist/services/adapter-subsystem/index.d.mts +2 -2
  158. package/dist/services/adapter-subsystem/index.mjs +1 -1
  159. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  160. package/dist/services/adapter-subsystem/namespace.mjs +1 -1
  161. package/dist/services/agent-runtime/index.d.mts +2 -2
  162. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  163. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  164. package/dist/services/capability/index.d.mts +1 -1
  165. package/dist/services/capability/index.mjs +1 -1
  166. package/dist/services/codebase/index.d.mts +2 -2
  167. package/dist/services/codebase/namespace.d.mts +1 -1
  168. package/dist/services/codebase/schemas.d.mts +1 -1
  169. package/dist/services/compression/index.d.mts +2 -2
  170. package/dist/services/compression/namespace.d.mts +1 -1
  171. package/dist/services/compression/schemas.d.mts +1 -1
  172. package/dist/services/context-rules/index.d.mts +4 -4
  173. package/dist/services/context-rules/index.mjs +1 -1
  174. package/dist/services/execution-target/index.d.mts +3 -3
  175. package/dist/services/execution-target/index.mjs +1 -1
  176. package/dist/services/execution-target/namespace.d.mts +1 -1
  177. package/dist/services/execution-target/schemas.d.mts +1 -1
  178. package/dist/services/filesystem/index.d.mts +1 -1
  179. package/dist/services/filesystem/index.mjs +1 -1
  180. package/dist/services/filesystem/namespace.d.mts +6 -6
  181. package/dist/services/filesystem/schemas.d.mts +3 -3
  182. package/dist/services/git/namespace.d.mts +4 -4
  183. package/dist/services/git/namespace.mjs +1 -1
  184. package/dist/services/git/schemas.d.mts +5 -5
  185. package/dist/services/git/schemas.mjs +1 -1
  186. package/dist/services/harness/index.d.mts +28 -28
  187. package/dist/services/harness/index.mjs +1 -1
  188. package/dist/services/harness/storage/schema.d.mts +4 -4
  189. package/dist/services/index.d.mts +87 -87
  190. package/dist/services/index.mjs +1 -1
  191. package/dist/services/log-import/browser.d.mts +2 -2
  192. package/dist/services/log-import/index.d.mts +3 -3
  193. package/dist/services/log-import/log-import.d.mts +1 -1
  194. package/dist/services/log-import/log-import.mjs +1 -1
  195. package/dist/services/log-import/namespace.d.mts +6 -6
  196. package/dist/services/log-import/namespace.mjs +1 -1
  197. package/dist/services/log-import/schemas.d.mts +3 -3
  198. package/dist/services/log-import/schemas.mjs +1 -1
  199. package/dist/services/model-registry/index.d.mts +1 -1
  200. package/dist/services/model-registry/index.mjs +1 -1
  201. package/dist/services/preferences/index.d.mts +2 -2
  202. package/dist/services/preferences/schemas.d.mts +1 -1
  203. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  204. package/dist/services/provider-context/index.d.mts +1 -1
  205. package/dist/services/provider-context/index.mjs +1 -1
  206. package/dist/services/provider-runtime/index.mjs +1 -1
  207. package/dist/services/session/handlers/index.d.mts +1 -1
  208. package/dist/services/session/handlers/index.mjs +1 -1
  209. package/dist/services/session/index.d.mts +9 -9
  210. package/dist/services/session/index.mjs +1 -1
  211. package/dist/services/session/messages/namespace.d.mts +1 -1
  212. package/dist/services/session/messages/namespace.mjs +1 -1
  213. package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
  214. package/dist/services/session/orchestrator-testing/index.mjs +1 -1
  215. package/dist/services/session/session-events/namespace.d.mts +1 -1
  216. package/dist/services/session/session-events/namespace.mjs +1 -1
  217. package/dist/services/session/storage/namespace.d.mts +1 -1
  218. package/dist/services/session/storage/schema.d.mts +1 -1
  219. package/dist/services/session/testing/index.mjs +1 -1
  220. package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
  221. package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
  222. package/dist/services/session/turns/namespace.d.mts +1 -1
  223. package/dist/services/session/turns/namespace.mjs +1 -1
  224. package/dist/services/session-editor/index.d.mts +1 -1
  225. package/dist/services/session-editor/index.mjs +1 -1
  226. package/dist/services/settings/index.d.mts +3 -3
  227. package/dist/services/settings/index.mjs +1 -1
  228. package/dist/services/settings/namespace.d.mts +4 -4
  229. package/dist/services/settings/namespace.mjs +1 -1
  230. package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
  231. package/dist/services/settings/storage/clients-namespace.mjs +1 -1
  232. package/dist/services/settings/storage/extension-configs/namespace.d.mts +6 -6
  233. package/dist/services/settings/storage/index.d.mts +3 -3
  234. package/dist/services/settings/storage/index.mjs +1 -1
  235. package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
  236. package/dist/services/settings/storage/providers-namespace.mjs +1 -1
  237. package/dist/services/subagent/index.d.mts +1 -1
  238. package/dist/services/subagent/index.mjs +1 -1
  239. package/dist/services/subagent-template/index.d.mts +2 -2
  240. package/dist/services/subagent-template/namespace.d.mts +1 -1
  241. package/dist/services/subagent-template/schemas.d.mts +1 -1
  242. package/dist/services/tool-approval/index.d.mts +1 -1
  243. package/dist/services/tool-approval/index.mjs +1 -1
  244. package/dist/services/tools/index.d.mts +1 -1
  245. package/dist/services/tools/index.mjs +1 -1
  246. package/dist/services/tray-menu/index.d.mts +3 -3
  247. package/dist/services/tray-menu/index.mjs +1 -1
  248. package/dist/services/tray-menu/namespace.d.mts +1 -1
  249. package/dist/services/tray-menu/schemas.d.mts +1 -1
  250. package/dist/services/turn/index.d.mts +1 -1
  251. package/dist/services/turn/namespace.d.mts +1 -1
  252. package/dist/{session-DOGx_Qrm2.mjs → session-BnfsJoZi.mjs} +1 -1
  253. package/dist/{session-lineage-PY_8PUTH.d.mts → session-lineage-CxHc3_bm.d.mts} +1 -1
  254. package/dist/{src-BdKH_3mM.mjs → src-DI5TcYUW.mjs} +1 -1
  255. package/dist/storage/drizzle/client.d.mts +1 -1
  256. package/dist/storage/drizzle/index.d.mts +1 -1
  257. package/dist/storage/handlers/drizzle/index.d.mts +1 -1
  258. package/dist/storage/handlers/drizzle/index.mjs +1 -1
  259. package/dist/storage/handlers/index.d.mts +1 -1
  260. package/dist/storage/handlers/index.mjs +1 -1
  261. package/dist/{storage-namespace-DyOwnbQO.d.mts → storage-namespace-I30TaZP7.d.mts} +10 -10
  262. package/dist/style.css +540 -540
  263. package/dist/tool-approval-service-BgNcJvKx.mjs +1 -0
  264. package/dist/tools-B8d8Iqqx.mjs +1 -0
  265. package/dist/{types-CLojY5bP.d.mts → types-0u6hpELc.d.mts} +1 -1
  266. package/dist/{types-igF72H-P.d.mts → types-C5Uy3WEy.d.mts} +1 -1
  267. package/dist/{types-BQB_1_Tv.d.mts → types-CZHV05Lu.d.mts} +58 -58
  268. package/dist/ui-components/index.d.mts +1 -1
  269. package/dist/ui-components/index.mjs +2 -2
  270. package/dist/ui-hooks/index.d.mts +6 -6
  271. package/dist/ui-kernel/index.d.mts +4 -4
  272. package/dist/ui-kernel/pages/namespace.d.mts +4 -4
  273. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  274. package/dist/ui-views/index.mjs +2 -2
  275. package/dist/workflow-engine/index.d.mts +6568 -0
  276. package/dist/workflow-engine/index.mjs +1 -0
  277. package/dist/workflow-engine/package.d.mts +2 -0
  278. package/dist/workflow-engine/package.mjs +1 -0
  279. package/dist/workflow-engine/workflow-orchestrator.d.mts +61 -0
  280. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -0
  281. package/dist/workflow-worker-hDaQzTBl.mjs +1 -0
  282. package/package.json +13 -1
  283. package/dist/ajv-B-geJci9.mjs +0 -8
  284. package/dist/await-trigger-CmK_k2oe.mjs +0 -1
  285. package/dist/esm-BdLRFEUy.mjs +0 -3
  286. package/dist/extension-CbCanyuh.mjs +0 -1
  287. package/dist/fast-uri-DARKlakU.mjs +0 -1
  288. package/dist/lib--v_LnhHr.mjs +0 -5
  289. package/dist/schema-introspection-A6FnQ1qg.mjs +0 -1
  290. package/dist/tool-approval-service-DRe1lqy-.mjs +0 -1
  291. package/dist/tools-BXEIs_Ur.mjs +0 -1
  292. package/dist/workflow-worker-BWoY_2ue.mjs +0 -1
  293. /package/dist/{base-orchestrator-D9E-Y8Kr.d.mts → base-orchestrator-D-S9v5VY.d.mts} +0 -0
  294. /package/dist/{capability-service-C2RapAHW.mjs → capability-service-jjrFLM6r.mjs} +0 -0
  295. /package/dist/{cleanEnvForAdapter-GVzUk_oB.mjs → cleanEnvForAdapter-BlpmyXYk.mjs} +0 -0
  296. /package/dist/{config-namespace-B5fFJwQj.d.mts → config-namespace-R_34Wfps.d.mts} +0 -0
  297. /package/dist/{create-static-mount-Btee48F5.mjs → create-static-mount-B9Szo_7y.mjs} +0 -0
  298. /package/dist/{definition-C4DLI1SC.d.mts → definition-CvOuzWNT.d.mts} +0 -0
  299. /package/dist/{descriptor-to-package-CY8oc2gl.mjs → descriptor-to-package-9nrAH_D5.mjs} +0 -0
  300. /package/dist/{drizzle-YUDNFNbV.mjs → drizzle-DpjZFY_j.mjs} +0 -0
  301. /package/dist/{event-Ca2yUf5i.mjs → event-BEllCn16.mjs} +0 -0
  302. /package/dist/{execution-target-CRPTfZlc.mjs → execution-target-CQGYaaM2.mjs} +0 -0
  303. /package/dist/{extension-discovery-CffOPDvn.d.mts → extension-discovery-BD1-oNU_.d.mts} +0 -0
  304. /package/dist/{filesystem-service-Cw4_S1bm.d.mts → filesystem-service-BcwRp4k1.d.mts} +0 -0
  305. /package/dist/{identity-Cz2IeEtm.mjs → identity-Bmx-8fPa.mjs} +0 -0
  306. /package/dist/{index-BkKMwRJj.d.mts → index--0CnhN0g.d.mts} +0 -0
  307. /package/dist/{index-BWA-Bf0T.d.mts → index-9KnLzPYu.d.mts} +0 -0
  308. /package/dist/{index-sQ-7cpgm2.d.mts → index-AZ4iLe7O2.d.mts} +0 -0
  309. /package/dist/{index-FjZOM4M0.d.mts → index-B6RGNugn.d.mts} +0 -0
  310. /package/dist/{index-AJDF86bD2.d.mts → index-BDlpFEsp2.d.mts} +0 -0
  311. /package/dist/{index-ChpYWZGc.d.mts → index-BFaeVdsn2.d.mts} +0 -0
  312. /package/dist/{index-CE2F0_8r.d.mts → index-BV8rSmDZ.d.mts} +0 -0
  313. /package/dist/{index-DYLb4v5z.d.mts → index-BYxgW2i0.d.mts} +0 -0
  314. /package/dist/{index-rQU8B-JX.d.mts → index-C-YBGCCG.d.mts} +0 -0
  315. /package/dist/{index-CBW3XX7b.d.mts → index-CF7dnqQj.d.mts} +0 -0
  316. /package/dist/{index-DOfnh3xf.d.mts → index-CNYPKkyH.d.mts} +0 -0
  317. /package/dist/{index-B3SbibGM.d.mts → index-CT-zFurA.d.mts} +0 -0
  318. /package/dist/{index-BKqJTm2-.d.mts → index-CdNDnxXR.d.mts} +0 -0
  319. /package/dist/{index-BPn5ODFL.d.mts → index-ChG8ZUNP.d.mts} +0 -0
  320. /package/dist/{index-CJt_4GQu.d.mts → index-DJQew2k-.d.mts} +0 -0
  321. /package/dist/{index-Ksoed-mL.d.mts → index-DNGUXQGC.d.mts} +0 -0
  322. /package/dist/{index-DpKxkrU8.d.mts → index-Dbwm5Y-Q.d.mts} +0 -0
  323. /package/dist/{index-DOAUskuB.d.mts → index-Dn9Uum3F.d.mts} +0 -0
  324. /package/dist/{index-BZmLqP2a.d.mts → index-yNb7G73-.d.mts} +0 -0
  325. /package/dist/{index-8AU9itst2.d.mts → index-ziQTLYUO.d.mts} +0 -0
  326. /package/dist/{jsonl-transport-DN1zyi6w.mjs → jsonl-transport-DBHQgcIm.mjs} +0 -0
  327. /package/dist/{model-registry-DdZrE4sa.mjs → model-registry-B0AIdj7O.mjs} +0 -0
  328. /package/dist/{namespace-BwzZJqTV.mjs → namespace-BgPoC46Q.mjs} +0 -0
  329. /package/dist/{namespace-Yna5-Pws.mjs → namespace-CDiM5Bcr.mjs} +0 -0
  330. /package/dist/{namespace-Buecxx19.d.mts → namespace-CTrNKkxY.d.mts} +0 -0
  331. /package/dist/{namespace-DzS4SSkr2.mjs → namespace-CUOGcGPG.mjs} +0 -0
  332. /package/dist/{namespace-CCfEHbi9.mjs → namespace-D6X67cUk.mjs} +0 -0
  333. /package/dist/{namespace-CfqAh9gM.d.mts → namespace-Dik_dNeE.d.mts} +0 -0
  334. /package/dist/{namespace-wYMkOtE0.d.mts → namespace-DkDvQJhB.d.mts} +0 -0
  335. /package/dist/{namespace-BnVlQiRv.d.mts → namespace-DvHoeMUV.d.mts} +0 -0
  336. /package/dist/{namespace-BGGiHXkz.mjs → namespace-ENv7H7Na.mjs} +0 -0
  337. /package/dist/{namespace-oS2v7viW.d.mts → namespace-QTFnJWHC.d.mts} +0 -0
  338. /package/dist/{orchestrator-shared-DXAvgseP.d.mts → orchestrator-shared-BZVeoRfr.d.mts} +0 -0
  339. /package/dist/{package-DKVlsMP3.mjs → package-OE9dMQsq.mjs} +0 -0
  340. /package/dist/{providers-namespace-BITpk8sN.d.mts → providers-namespace-Cc9FQ-Zt.d.mts} +0 -0
  341. /package/dist/{quick-lru-8GhFeKMZ.mjs → quick-lru-B9nWXbXI.mjs} +0 -0
  342. /package/dist/{schema-DdMn1KCD.mjs → schema-DOnJmAPw.mjs} +0 -0
  343. /package/dist/{schemas-B-Z4U9FN.mjs → schemas-BdAf5u58.mjs} +0 -0
  344. /package/dist/{schemas-WJ9OOsOF.d.mts → schemas-BzK1I1eX.d.mts} +0 -0
  345. /package/dist/{schemas-PmHLOkr-.d.mts → schemas-CsjB6gel.d.mts} +0 -0
  346. /package/dist/{schemas-7y9O8b0X.d.mts → schemas-DFWGb4uj.d.mts} +0 -0
  347. /package/dist/{schemas-CMyv6Mkq.d.mts → schemas-Hy-lsBpg.d.mts} +0 -0
  348. /package/dist/{server-lifecycle-JX0MpLfX.d.mts → server-lifecycle-DVAbXQzg.d.mts} +0 -0
  349. /package/dist/{shared-schemas-CbbcM1GQ.mjs → shared-schemas-CKe2uN4-.mjs} +0 -0
  350. /package/dist/{src-CUlokMRL.mjs → src-4_2jBceX.mjs} +0 -0
  351. /package/dist/{storage-namespace-DecBVTzH.mjs → storage-namespace-BXO3lDVy.mjs} +0 -0
  352. /package/dist/{storage-namespace-definition-QTqbbw5b.d.mts → storage-namespace-definition-ZNBL3v2h.d.mts} +0 -0
  353. /package/dist/{supports-color-CcNsYzyh.mjs → supports-color-fVsgozsi.mjs} +0 -0
  354. /package/dist/{tray-menu-service-CsaXURTf.mjs → tray-menu-service-B5YPK_YF.mjs} +0 -0
  355. /package/dist/{types-CycWG-_j.d.mts → types-11QnNmpW.d.mts} +0 -0
  356. /package/dist/{types-DVAi-qkD.d.mts → types-BKNpS4Xw.d.mts} +0 -0
  357. /package/dist/{types-C6R2eyMZ.d.mts → types-BtMNh2FS.d.mts} +0 -0
  358. /package/dist/{types-Bnf1bRcq.d.mts → types-yTKQTAok.d.mts} +0 -0
  359. /package/dist/{window-registry-r3VFP-_d.d.mts → window-registry-QD1rTk_f.d.mts} +0 -0
@@ -1,4 +1,4 @@
1
- import { r as ExtensionDiscovery, t as DiscoveredExtension } from "../extension-discovery-CffOPDvn.mjs";
1
+ import { r as ExtensionDiscovery, t as DiscoveredExtension } from "../extension-discovery-BD1-oNU_.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region runtimes/node/src/makaio-config.d.ts
@@ -18,8 +18,8 @@ interface ConfiguredDiscoveryRoot {
18
18
  declare const WorkflowRunnerConfigSchema: z.ZodObject<{
19
19
  mode: z.ZodOptional<z.ZodEnum<{
20
20
  piscina: "piscina";
21
- "in-process": "in-process";
22
21
  "worker-node": "worker-node";
22
+ "in-process": "in-process";
23
23
  }>>;
24
24
  maxConcurrency: z.ZodOptional<z.ZodNumber>;
25
25
  idleTimeoutMs: z.ZodOptional<z.ZodNumber>;
@@ -35,8 +35,8 @@ declare const MakaioConfigSchema: z.ZodObject<{
35
35
  workflowRunner: z.ZodOptional<z.ZodObject<{
36
36
  mode: z.ZodOptional<z.ZodEnum<{
37
37
  piscina: "piscina";
38
- "in-process": "in-process";
39
38
  "worker-node": "worker-node";
39
+ "in-process": "in-process";
40
40
  }>>;
41
41
  maxConcurrency: z.ZodOptional<z.ZodNumber>;
42
42
  idleTimeoutMs: z.ZodOptional<z.ZodNumber>;
@@ -1 +1 @@
1
- import{n as e}from"../esm-BdLRFEUy.mjs";import{z as t}from"zod";import{pathToFileURL as n}from"node:url";import*as r from"node:fs/promises";import*as i from"node:path";import{glob as a}from"glob";import{parseExtensionDescriptor as o}from"@makaio/framework/contracts";import*as s from"node:os";const c=`MAKAIO_CONFIG_FILE`,l=`MAKAIO_HOME`,u=[`makaio.config.ts`,`makaio.config.js`,`makaio.config.json`],d=[`**/node_modules/**`,`**/dist/**`,`**/.git/**`],f=t.object({mode:t.enum([`in-process`,`piscina`,`worker-node`]).optional(),maxConcurrency:t.number().int().positive().optional(),idleTimeoutMs:t.number().int().positive().optional()}).strict(),p=t.object({extensions:t.object({autoDiscover:t.boolean().optional(),discoveryPaths:t.array(t.string().min(1)).optional(),include:t.array(t.string().min(1)).optional(),exclude:t.array(t.string().min(1)).optional()}).optional(),launcherCommand:t.string().min(1).optional(),workflowRunner:f.optional(),packageConfigDefaults:t.record(t.string().min(1),t.record(t.string(),t.unknown())).optional()}).strict();function m(e){return e}function h(e=process.env){let t=e[l]?.trim();return t&&t.length>0?i.resolve(t):i.join(s.homedir(),`.makaio`)}function g(e,t){let n=p.safeParse(e??{});if(!n.success)throw j(`Invalid Makaio runtime config`,t.source,n.error);let r=n.data,i=r.extensions??{},a=_(i.discoveryPaths,t);return{extensions:{autoDiscover:i.autoDiscover??!0,discoveryPaths:a.map(e=>e.path),discoveryRoots:a,include:i.include??[],exclude:i.exclude??[]},launcherCommand:r.launcherCommand??`makaio`,workflowRunner:r.workflowRunner,packageConfigDefaults:new Map(Object.entries(r.packageConfigDefaults??{}))}}function _(e,t){return e===void 0?[{path:i.join(t.makaioHome,`extensions`),source:`installed`},{path:i.join(t.makaioHome,`node_modules`),source:`global-npm`}]:e.map(e=>({path:v(e,t.baseDir),source:`local`}))}function v(e,t){return i.isAbsolute(e)?e:i.resolve(t,e)}async function y(e){let t=e.env?.[c]?.trim(),n=e.configPath??(t||void 0);if(n!==void 0){let e=i.resolve(n);return await N(e,`runtime config`),e}for(let t of u){let n=i.join(e.makaioHome,t);if(await M(n))return n}if(process.env.NODE_ENV!==`production`){let t=process.cwd();if(t!==e.makaioHome)for(let e of u){let n=i.join(t,e);if(await M(n))return n}}}async function b(e){let t=await y(e);if(t===void 0)return{config:g({},{baseDir:e.makaioHome,makaioHome:e.makaioHome})};let n;try{n=await A(t)}catch(e){throw j(`Failed to load Makaio runtime config`,t,e)}return{configPath:t,config:g(n,{baseDir:i.dirname(t),makaioHome:e.makaioHome,source:t})}}async function x(e){let{config:t}=await b(e);return{launcherCommand:t.launcherCommand,discovery:S(t),workflowRunner:t.workflowRunner,packageConfigDefaults:t.packageConfigDefaults}}function S(e){return new C(e)}var C=class{config;constructor(e){this.config=e}async discover(){let e=new Map;for(let t of this.config.extensions.discoveryRoots)for(let n of await w(t))!e.has(n.descriptor.name)&&k(n.descriptor.name,this.config)&&e.set(n.descriptor.name,n);return[...e.values()]}};async function w(e){let t=e.path,n=await r.stat(t).catch(()=>void 0);if(n===void 0)return[];if(n.isFile()){if(i.basename(t)!==`descriptor.json`)return[];let n=await O(t,e.source);return n===void 0?[]:[n]}let a=i.join(t,`descriptor.json`);if(await M(a)){let t=await O(a,e.source);return t===void 0?[]:[t]}return i.basename(t)===`node_modules`?T(e):E(P(t,`**`,`descriptor.json`),e.source)}async function T(e){let t=e.path,n=[P(t,`*/descriptor.json`),P(t,`@*/*/descriptor.json`)];return D((await Promise.all(n.map(e=>a(e,{windowsPathsNoEscape:!0})))).flat(),e.source)}async function E(e,t){return D(await a(e,{ignore:[...d],windowsPathsNoEscape:!0}),t)}async function D(e,t){let n=[];for(let r of e){let e=await O(r,t);e!==void 0&&n.push(e)}return n}async function O(e,t){try{let n=await r.readFile(e,`utf-8`);return{descriptor:o(JSON.parse(n)),extensionPath:i.dirname(e),source:t}}catch(t){console.warn(`[makaio-config] Skipping invalid descriptor at ${e}:`,t instanceof Error?t.message:t);return}}function k(t,n){let{autoDiscover:r,include:i,exclude:a}=n.extensions;return a.some(n=>e(t,n))?!1:i.length>0?i.some(n=>e(t,n)):r}async function A(e){if(e.endsWith(`.json`))return JSON.parse(await r.readFile(e,`utf-8`));let t=await import(n(e).href);return t.default??t}function j(e,t,n){let r=t===void 0?``:` at ${t}`,i=n instanceof Error?n.message:String(n);return Error(`${e}${r}: ${i}`,{cause:n})}async function M(e){return r.stat(e).then(e=>e.isFile()).catch(()=>!1)}async function N(e,t){if(!await M(e))throw Error(`Missing ${t}: ${e}`)}function P(...e){return i.join(...e).split(i.sep).join(`/`)}export{c as MAKAIO_CONFIG_FILE_ENV,l as MAKAIO_HOME_ENV,x as buildConfiguredRuntimeOptions,S as createMakaioConfigDiscovery,m as defineMakaioConfig,b as loadMakaioConfig,g as parseMakaioConfig,y as resolveMakaioConfigPath,h as resolveMakaioHome,k as shouldIncludeExtension};
1
+ import{n as e}from"../esm-CglYG5aA.mjs";import{z as t}from"zod";import{pathToFileURL as n}from"node:url";import*as r from"node:fs/promises";import*as i from"node:path";import{glob as a}from"glob";import{parseExtensionDescriptor as o}from"@makaio/framework/contracts";import*as s from"node:os";const c=`MAKAIO_CONFIG_FILE`,l=`MAKAIO_HOME`,u=[`makaio.config.ts`,`makaio.config.js`,`makaio.config.json`],d=[`**/node_modules/**`,`**/dist/**`,`**/.git/**`],f=t.object({mode:t.enum([`in-process`,`piscina`,`worker-node`]).optional(),maxConcurrency:t.number().int().positive().optional(),idleTimeoutMs:t.number().int().positive().optional()}).strict(),p=t.object({extensions:t.object({autoDiscover:t.boolean().optional(),discoveryPaths:t.array(t.string().min(1)).optional(),include:t.array(t.string().min(1)).optional(),exclude:t.array(t.string().min(1)).optional()}).optional(),launcherCommand:t.string().min(1).optional(),workflowRunner:f.optional(),packageConfigDefaults:t.record(t.string().min(1),t.record(t.string(),t.unknown())).optional()}).strict();function m(e){return e}function h(e=process.env){let t=e[l]?.trim();return t&&t.length>0?i.resolve(t):i.join(s.homedir(),`.makaio`)}function g(e,t){let n=p.safeParse(e??{});if(!n.success)throw j(`Invalid Makaio runtime config`,t.source,n.error);let r=n.data,i=r.extensions??{},a=_(i.discoveryPaths,t);return{extensions:{autoDiscover:i.autoDiscover??!0,discoveryPaths:a.map(e=>e.path),discoveryRoots:a,include:i.include??[],exclude:i.exclude??[]},launcherCommand:r.launcherCommand??`makaio`,workflowRunner:r.workflowRunner,packageConfigDefaults:new Map(Object.entries(r.packageConfigDefaults??{}))}}function _(e,t){return e===void 0?[{path:i.join(t.makaioHome,`extensions`),source:`installed`},{path:i.join(t.makaioHome,`node_modules`),source:`global-npm`}]:e.map(e=>({path:v(e,t.baseDir),source:`local`}))}function v(e,t){return i.isAbsolute(e)?e:i.resolve(t,e)}async function y(e){let t=e.env?.[c]?.trim(),n=e.configPath??(t||void 0);if(n!==void 0){let e=i.resolve(n);return await N(e,`runtime config`),e}for(let t of u){let n=i.join(e.makaioHome,t);if(await M(n))return n}if(process.env.NODE_ENV!==`production`){let t=process.cwd();if(t!==e.makaioHome)for(let e of u){let n=i.join(t,e);if(await M(n))return n}}}async function b(e){let t=await y(e);if(t===void 0)return{config:g({},{baseDir:e.makaioHome,makaioHome:e.makaioHome})};let n;try{n=await A(t)}catch(e){throw j(`Failed to load Makaio runtime config`,t,e)}return{configPath:t,config:g(n,{baseDir:i.dirname(t),makaioHome:e.makaioHome,source:t})}}async function x(e){let{config:t}=await b(e);return{launcherCommand:t.launcherCommand,discovery:S(t),workflowRunner:t.workflowRunner,packageConfigDefaults:t.packageConfigDefaults}}function S(e){return new C(e)}var C=class{config;constructor(e){this.config=e}async discover(){let e=new Map;for(let t of this.config.extensions.discoveryRoots)for(let n of await w(t))!e.has(n.descriptor.name)&&k(n.descriptor.name,this.config)&&e.set(n.descriptor.name,n);return[...e.values()]}};async function w(e){let t=e.path,n=await r.stat(t).catch(()=>void 0);if(n===void 0)return[];if(n.isFile()){if(i.basename(t)!==`descriptor.json`)return[];let n=await O(t,e.source);return n===void 0?[]:[n]}let a=i.join(t,`descriptor.json`);if(await M(a)){let t=await O(a,e.source);return t===void 0?[]:[t]}return i.basename(t)===`node_modules`?T(e):E(P(t,`**`,`descriptor.json`),e.source)}async function T(e){let t=e.path,n=[P(t,`*/descriptor.json`),P(t,`@*/*/descriptor.json`)];return D((await Promise.all(n.map(e=>a(e,{windowsPathsNoEscape:!0})))).flat(),e.source)}async function E(e,t){return D(await a(e,{ignore:[...d],windowsPathsNoEscape:!0}),t)}async function D(e,t){let n=[];for(let r of e){let e=await O(r,t);e!==void 0&&n.push(e)}return n}async function O(e,t){try{let n=await r.readFile(e,`utf-8`);return{descriptor:o(JSON.parse(n)),extensionPath:i.dirname(e),source:t}}catch(t){console.warn(`[makaio-config] Skipping invalid descriptor at ${e}:`,t instanceof Error?t.message:t);return}}function k(t,n){let{autoDiscover:r,include:i,exclude:a}=n.extensions;return a.some(n=>e(t,n))?!1:i.length>0?i.some(n=>e(t,n)):r}async function A(e){if(e.endsWith(`.json`))return JSON.parse(await r.readFile(e,`utf-8`));let t=await import(n(e).href);return t.default??t}function j(e,t,n){let r=t===void 0?``:` at ${t}`,i=n instanceof Error?n.message:String(n);return Error(`${e}${r}: ${i}`,{cause:n})}async function M(e){return r.stat(e).then(e=>e.isFile()).catch(()=>!1)}async function N(e,t){if(!await M(e))throw Error(`Missing ${t}: ${e}`)}function P(...e){return i.join(...e).split(i.sep).join(`/`)}export{c as MAKAIO_CONFIG_FILE_ENV,l as MAKAIO_HOME_ENV,x as buildConfiguredRuntimeOptions,S as createMakaioConfigDiscovery,m as defineMakaioConfig,b as loadMakaioConfig,g as parseMakaioConfig,y as resolveMakaioConfigPath,h as resolveMakaioHome,k as shouldIncludeExtension};
@@ -1,2 +1,2 @@
1
- import { D as WorkflowWorkerEntryResolverOptions, E as WorkflowWorkerEntryMode, O as resolveWorkflowWorkerEntry, _ as WorkflowRunResult, a as InProcessWorkflowRunnerOptions, c as WorkerNodeRunner, d as NodeWorkflowRunnerPackageOptions, f as createNodeWorkflowRunner, g as ThinWorkflowPiscinaRunnerOptions, h as IWorkflowRunner, i as InProcessWorkflowRunner, l as WorkerNodeRunnerOptions, m as ThinWorkflowPiscinaRunner, n as loadWorkflowModules, o as PiscinaThinWorkflowProvider, p as createNodeWorkflowRunnerPackageOptions, r as loadWorkflowFromConfig, s as PiscinaThinWorkflowProviderOptions, t as loadWorkflowModule, u as CreateNodeWorkflowRunnerPackageOptionsParams } from "../../index-BM7lYmmQ.mjs";
1
+ import { D as WorkflowWorkerEntryResolverOptions, E as WorkflowWorkerEntryMode, O as resolveWorkflowWorkerEntry, _ as WorkflowRunResult, a as InProcessWorkflowRunnerOptions, c as WorkerNodeRunner, d as NodeWorkflowRunnerPackageOptions, f as createNodeWorkflowRunner, g as ThinWorkflowPiscinaRunnerOptions, h as IWorkflowRunner, i as InProcessWorkflowRunner, l as WorkerNodeRunnerOptions, m as ThinWorkflowPiscinaRunner, n as loadWorkflowModules, o as PiscinaThinWorkflowProvider, p as createNodeWorkflowRunnerPackageOptions, r as loadWorkflowFromConfig, s as PiscinaThinWorkflowProviderOptions, t as loadWorkflowModule, u as CreateNodeWorkflowRunnerPackageOptionsParams } from "../../index-i7o6FtS0.mjs";
2
2
  export { CreateNodeWorkflowRunnerPackageOptionsParams, IWorkflowRunner, InProcessWorkflowRunner, InProcessWorkflowRunnerOptions, NodeWorkflowRunnerPackageOptions, PiscinaThinWorkflowProvider, PiscinaThinWorkflowProviderOptions, ThinWorkflowPiscinaRunner, ThinWorkflowPiscinaRunnerOptions, WorkerNodeRunner, WorkerNodeRunnerOptions, WorkflowRunResult, WorkflowWorkerEntryMode, WorkflowWorkerEntryResolverOptions, createNodeWorkflowRunner, createNodeWorkflowRunnerPackageOptions, loadWorkflowFromConfig, loadWorkflowModule, loadWorkflowModules, resolveWorkflowWorkerEntry };
@@ -1 +1 @@
1
- import{i as e,n as t,r as n}from"../../await-trigger-CmK_k2oe.mjs";import{a as r,i,n as a,o,r as s,s as c,t as l}from"../../workflow-worker-BWoY_2ue.mjs";export{i as InProcessWorkflowRunner,l as PiscinaThinWorkflowProvider,c as ThinWorkflowPiscinaRunner,r as WorkerNodeRunner,a as createNodeWorkflowRunner,s as createNodeWorkflowRunnerPackageOptions,t as loadWorkflowFromConfig,n as loadWorkflowModule,e as loadWorkflowModules,o as resolveWorkflowWorkerEntry};
1
+ import{i as e,n as t,r as n}from"../../await-trigger-CHuOd5co.mjs";import{a as r,i,n as a,o,r as s,s as c,t as l}from"../../workflow-worker-hDaQzTBl.mjs";export{i as InProcessWorkflowRunner,l as PiscinaThinWorkflowProvider,c as ThinWorkflowPiscinaRunner,r as WorkerNodeRunner,a as createNodeWorkflowRunner,s as createNodeWorkflowRunnerPackageOptions,t as loadWorkflowFromConfig,n as loadWorkflowModule,e as loadWorkflowModules,o as resolveWorkflowWorkerEntry};
@@ -1 +1 @@
1
- import{a as e,n as t,o as n,t as r}from"../../await-trigger-CmK_k2oe.mjs";import*as i from"node:path";import{createBusInstance as a,waitForSubscriptionPropagation as o}from"@makaio/framework/bus";import{FrameworkContractNamespaces as s,FrameworkStorageNamespaces as c,WorkflowWorkerConfigSchema as l,createWorkflowCancelSubject as u}from"@makaio/framework/contracts";import{HmacAuth as d,WebSocketClientTransport as f}from"@makaio/framework/node/transports";import{parentPort as p}from"node:worker_threads";import{McpServerBridgeService as m}from"@makaio/framework/mcp-http-server";import{ToolRegistry as h}from"@makaio/framework/services/tools";async function g(e){let t=a();if(t.registerNamespaces(s),t.registerNamespaces(c),!e.busUrl)return{bus:t,close(){}};let n=e.busAuth.kind===`hmac`?new d({secret:e.busAuth.secret}):void 0,r=new f({url:e.busUrl,auth:n,autoReconnect:!1});return t.registerTransport(r),await t.connect(),{bus:t,async close(){await t.disconnect()}}}async function _(e,t){let n=new h({bus:e.bus}),r=new m(e.bus),i=async()=>{try{await r.destroy()}finally{n.dispose()}};try{await r.init();for(let e of t.toolsets)await v(n,e)}catch(e){throw await i(),e}return{close:i}}async function v(e,t){await e.register(t)}function y(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.name==`string`?typeof t.tools==`object`&&t.tools!==null||Array.isArray(t.adapters):!1}function b(e,t){if(y(e.default))return e.default;for(let t of Object.keys(e))if(t!==`default`&&y(e[t]))return e[t]}function x(e){return Object.freeze({bus:e?.bus,identity:Object.freeze({extensionName:`__worker__`}),dataDir:``,machineId:``,platform:process.platform,homedir:``,makaioHome:``,username:``,signal:e?.signal??new AbortController().signal,tryImport:async()=>null,getService:()=>{throw Error(`Worker-local contribution context does not expose host services.`)},hasExtension:()=>!1})}async function S(e,t){let n=await Promise.all(e.packages.map(e=>T(e,t))),r=[];for(let e of n)e&&r.push(...e.toolsets);return{toolsets:r}}function C(e,t){if(t!==void 0&&!i.isAbsolute(e)&&(e.startsWith(`./`)||e.startsWith(`../`))){let n=i.resolve(t),r=i.resolve(n,e);if(!w(n,r))throw Error(`importPath escapes makaioHome: ${e}`);return r}return e}function w(e,t){let n=i.relative(e,t);return n===``||!n.startsWith(`..`)&&!i.isAbsolute(n)}async function T(e,t){let n=e.importPath,r;try{n=C(e.importPath,t?.makaioHome),r=await import(n)}catch(t){let r=t instanceof Error?t.message:String(t);console.warn(`[worker-contributions] Failed to import "${e.name}" from "${n}": ${r}`);return}let i=b(r,e.name);if(!i){console.warn(`[worker-contributions] No recognizable extension export in "${e.name}" (${n})`);return}let a=[];if(i.tools?.createToolsets)try{let e=i.tools.createToolsets(x(t));a.push(...e)}catch(t){let n=t instanceof Error?t.message:String(t);console.warn(`[worker-contributions] createToolsets() failed for "${e.name}": ${n}`)}return{toolsets:a}}async function E(i){let a=l.parse(i.config),s=new AbortController,c=()=>s.abort(),d=i.signal??s.signal;d!==s.signal&&(d.aborted?s.abort():d.addEventListener(`abort`,c,{once:!0}));let f,m,h;try{f=await g(a),h=f.bus.on(u(a.cancelSubject),()=>{s.abort()}),await o(h);let c=await S(i.manifest,{bus:f.bus,signal:s.signal,makaioHome:a.context.makaioHome});c.toolsets.length>0&&(m=await _(f,c)),p?.postMessage(n(a.executionId,a.cancelSubject));let l=await t(a);return await e({config:await r(a,l,f.bus,s.signal),loaded:l,bus:f.bus,signal:s.signal})}finally{h?.(),d.removeEventListener(`abort`,c);try{m&&await m.close()}finally{f&&await f.close()}}}export{E as default,E as runWorkflowInWorker};
1
+ import{a as e,n as t,t as n}from"../../await-trigger-CHuOd5co.mjs";import*as r from"node:path";import{createBusInstance as i,waitForSubscriptionPropagation as a}from"@makaio/framework/bus";import{FrameworkContractNamespaces as o,FrameworkStorageNamespaces as s,WorkflowWorkerConfigSchema as c,createWorkflowCancelSubject as l}from"@makaio/framework/contracts";import{HmacAuth as u,WebSocketClientTransport as d}from"@makaio/framework/node/transports";import{parentPort as f}from"node:worker_threads";import{runWorkflowOrchestrator as p}from"@makaio/framework/workflow-engine/workflow-orchestrator";import{McpServerBridgeService as m}from"@makaio/framework/mcp-http-server";import{ToolRegistry as h}from"@makaio/framework/services/tools";async function g(e){let t=i();if(t.registerNamespaces(o),t.registerNamespaces(s),!e.busUrl)return{bus:t,close(){}};let n=e.busAuth.kind===`hmac`?new u({secret:e.busAuth.secret}):void 0,r=new d({url:e.busUrl,auth:n,autoReconnect:!1});return t.registerTransport(r),await t.connect(),{bus:t,async close(){await t.disconnect()}}}async function _(e,t){let n=new h({bus:e.bus}),r=new m(e.bus),i=async()=>{try{await r.destroy()}finally{n.dispose()}};try{await r.init();for(let e of t.toolsets)await v(n,e)}catch(e){throw await i(),e}return{close:i}}async function v(e,t){await e.register(t)}function y(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.name==`string`?typeof t.tools==`object`&&t.tools!==null||Array.isArray(t.adapters):!1}function b(e,t){if(y(e.default))return e.default;for(let t of Object.keys(e))if(t!==`default`&&y(e[t]))return e[t]}function x(e){return Object.freeze({bus:e?.bus,identity:Object.freeze({extensionName:`__worker__`}),dataDir:``,machineId:``,platform:process.platform,homedir:``,makaioHome:``,username:``,signal:e?.signal??new AbortController().signal,tryImport:async()=>null,getService:()=>{throw Error(`Worker-local contribution context does not expose host services.`)},hasExtension:()=>!1})}async function S(e,t){let n=await Promise.all(e.packages.map(e=>T(e,t))),r=[];for(let e of n)e&&r.push(...e.toolsets);return{toolsets:r}}function C(e,t){if(t!==void 0&&!r.isAbsolute(e)&&(e.startsWith(`./`)||e.startsWith(`../`))){let n=r.resolve(t),i=r.resolve(n,e);if(!w(n,i))throw Error(`importPath escapes makaioHome: ${e}`);return i}return e}function w(e,t){let n=r.relative(e,t);return n===``||!n.startsWith(`..`)&&!r.isAbsolute(n)}async function T(e,t){let n=e.importPath,r;try{n=C(e.importPath,t?.makaioHome),r=await import(n)}catch(t){let r=t instanceof Error?t.message:String(t);console.warn(`[worker-contributions] Failed to import "${e.name}" from "${n}": ${r}`);return}let i=b(r,e.name);if(!i){console.warn(`[worker-contributions] No recognizable extension export in "${e.name}" (${n})`);return}let a=[];if(i.tools?.createToolsets)try{let e=i.tools.createToolsets(x(t));a.push(...e)}catch(t){let n=t instanceof Error?t.message:String(t);console.warn(`[worker-contributions] createToolsets() failed for "${e.name}": ${n}`)}return{toolsets:a}}async function E(r){let i=c.parse(r.config),o=new AbortController,s=()=>o.abort(),u=r.signal??o.signal;u!==o.signal&&(u.aborted?o.abort():u.addEventListener(`abort`,s,{once:!0}));let d,m,h;try{d=await g(i),h=d.bus.on(l(i.cancelSubject),()=>{o.abort()}),await a(h);let s=await S(r.manifest,{bus:d.bus,signal:o.signal,makaioHome:i.context.makaioHome});s.toolsets.length>0&&(m=await _(d,s)),f?.postMessage(e(i.executionId,i.cancelSubject));let c=await t(i);return await p({config:await n(i,c,d.bus,o.signal),loaded:c,bus:d.bus,signal:o.signal})}finally{h?.(),u.removeEventListener(`abort`,s);try{m&&await m.close()}finally{d&&await d.close()}}}export{E as default,E as runWorkflowInWorker};
@@ -72,7 +72,7 @@ declare const sessions: _$drizzle_orm_sqlite_core0.SQLiteTableWithColumns<{
72
72
  tableName: "sessions";
73
73
  dataType: "string";
74
74
  columnType: "SQLiteText";
75
- data: "active" | "closed" | "archived" | "discovered";
75
+ data: "discovered" | "closed" | "active" | "archived";
76
76
  driverParam: string;
77
77
  notNull: true;
78
78
  hasDefault: false;
@@ -465,7 +465,7 @@ declare const sessions: _$drizzle_orm_sqlite_core0.SQLiteTableWithColumns<{
465
465
  tableName: "sessions";
466
466
  dataType: "string";
467
467
  columnType: "SQLiteText";
468
- data: "always-ask" | "reject" | "full-access";
468
+ data: "reject" | "always-ask" | "full-access";
469
469
  driverParam: string;
470
470
  notNull: false;
471
471
  hasDefault: false;
@@ -1 +1 @@
1
- import{sessions as e}from"./services/session/storage/schema.mjs";import{t}from"./schema-DdMn1KCD.mjs";import{index as n,integer as r,sqliteTable as i,text as a}from"drizzle-orm/sqlite-core";const o=i(`messages`,{messageId:a(`message_id`).primaryKey(),turnId:a(`turn_id`).references(()=>t.turnId,{onDelete:`cascade`}),sessionId:a(`session_id`).notNull().references(()=>e.sessionId,{onDelete:`cascade`}),role:a(`role`,{enum:[`user`,`assistant`]}).notNull(),contentText:a(`content_text`).notNull(),blocks:a(`blocks`).notNull().default(`[]`),agentId:a(`agent_id`),adapterSessionId:a(`adapter_session_id`),adapterMessageId:a(`adapter_message_id`),timestamp:r(`timestamp`).notNull(),editOf:a(`edit_of`).references(()=>o.messageId),origin:a(`origin`,{enum:[`voice`,`text`,`compact`]})},e=>[n(`idx_messages_session`).on(e.sessionId,e.timestamp),n(`idx_messages_turn`).on(e.turnId,e.timestamp),n(`idx_messages_agent`).on(e.agentId,e.timestamp),n(`idx_messages_adapter_message_id`).on(e.adapterMessageId)]);export{o as t};
1
+ import{sessions as e}from"./services/session/storage/schema.mjs";import{t}from"./schema-DOnJmAPw.mjs";import{index as n,integer as r,sqliteTable as i,text as a}from"drizzle-orm/sqlite-core";const o=i(`messages`,{messageId:a(`message_id`).primaryKey(),turnId:a(`turn_id`).references(()=>t.turnId,{onDelete:`cascade`}),sessionId:a(`session_id`).notNull().references(()=>e.sessionId,{onDelete:`cascade`}),role:a(`role`,{enum:[`user`,`assistant`]}).notNull(),contentText:a(`content_text`).notNull(),blocks:a(`blocks`).notNull().default(`[]`),agentId:a(`agent_id`),adapterSessionId:a(`adapter_session_id`),adapterMessageId:a(`adapter_message_id`),timestamp:r(`timestamp`).notNull(),editOf:a(`edit_of`).references(()=>o.messageId),origin:a(`origin`,{enum:[`voice`,`text`,`compact`]})},e=>[n(`idx_messages_session`).on(e.sessionId,e.timestamp),n(`idx_messages_turn`).on(e.turnId,e.timestamp),n(`idx_messages_agent`).on(e.agentId,e.timestamp),n(`idx_messages_adapter_message_id`).on(e.adapterMessageId)]);export{o as t};
@@ -0,0 +1 @@
1
+ import{z as e}from"zod";function t(e){let n=e.meta();if(`unwrap`in e&&typeof e.unwrap==`function`){let r=t(e.unwrap());return n?{...r??{},...n}:r}return n}function n(t){return t instanceof e.ZodBoolean?!0:`unwrap`in t&&typeof t.unwrap==`function`?n(t.unwrap()):!1}function r(t){return t instanceof e.ZodNumber?!0:`unwrap`in t&&typeof t.unwrap==`function`?r(t.unwrap()):!1}function i(e){let n=[];for(let[r,i]of Object.entries(e.shape)){let e=i,o=t(e),s=a(e);n.push({name:r,description:o?.description??``,...!e.isOptional()&&{required:!0},...o?.positional&&{positional:!0},...o?.short&&{short:o.short},...s!==`string`&&{type:s}})}return n}function a(e){return n(e)?`boolean`:o(e)?`number`:`string`}function o(t){return t instanceof e.ZodNumber?!0:`unwrap`in t&&typeof t.unwrap==`function`?o(t.unwrap()):!1}export{r as i,t as n,n as r,i as t};
@@ -36,8 +36,8 @@ declare const ContainerIsolatedExecutionTargetSchema: z.ZodObject<{
36
36
  image: z.ZodOptional<z.ZodString>;
37
37
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
38
38
  busMode: z.ZodEnum<{
39
- host: "host";
40
39
  relay: "relay";
40
+ host: "host";
41
41
  }>;
42
42
  relayUrl: z.ZodOptional<z.ZodString>;
43
43
  gitCredentialMode: z.ZodDefault<z.ZodEnum<{
@@ -79,8 +79,8 @@ declare const ExecutionTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
79
79
  image: z.ZodOptional<z.ZodString>;
80
80
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
81
81
  busMode: z.ZodEnum<{
82
- host: "host";
83
82
  relay: "relay";
83
+ host: "host";
84
84
  }>;
85
85
  relayUrl: z.ZodOptional<z.ZodString>;
86
86
  gitCredentialMode: z.ZodDefault<z.ZodEnum<{
@@ -99,33 +99,33 @@ declare const ExecutionTargetTypeSchema: z.ZodEnum<{
99
99
  type ExecutionTargetType = z.infer<typeof ExecutionTargetTypeSchema>;
100
100
  declare const ExecutionTargetInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
101
101
  type: z.ZodLiteral<"local">;
102
- description: z.ZodOptional<z.ZodString>;
103
102
  id: z.ZodString;
103
+ description: z.ZodOptional<z.ZodString>;
104
104
  name: z.ZodString;
105
105
  enabled: z.ZodBoolean;
106
106
  scope: z.ZodString;
107
107
  }, z.core.$strip>, z.ZodObject<{
108
108
  type: z.ZodLiteral<"container-local">;
109
- description: z.ZodOptional<z.ZodString>;
110
109
  id: z.ZodString;
110
+ description: z.ZodOptional<z.ZodString>;
111
111
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
112
112
  name: z.ZodString;
113
- enabled: z.ZodBoolean;
114
113
  image: z.ZodOptional<z.ZodString>;
114
+ enabled: z.ZodBoolean;
115
115
  scope: z.ZodString;
116
116
  busUrl: z.ZodOptional<z.ZodString>;
117
117
  }, z.core.$strip>, z.ZodObject<{
118
118
  type: z.ZodLiteral<"container-isolated">;
119
- description: z.ZodOptional<z.ZodString>;
120
119
  id: z.ZodString;
120
+ description: z.ZodOptional<z.ZodString>;
121
121
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
122
122
  name: z.ZodString;
123
- enabled: z.ZodBoolean;
124
123
  image: z.ZodOptional<z.ZodString>;
124
+ enabled: z.ZodBoolean;
125
125
  scope: z.ZodString;
126
126
  busMode: z.ZodEnum<{
127
- host: "host";
128
127
  relay: "relay";
128
+ host: "host";
129
129
  }>;
130
130
  relayUrl: z.ZodOptional<z.ZodString>;
131
131
  gitCredentialMode: z.ZodDefault<z.ZodEnum<{
@@ -196,8 +196,8 @@ declare const ExecutionTargetSchemas: {
196
196
  image: z.ZodOptional<z.ZodString>;
197
197
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
198
198
  busMode: z.ZodEnum<{
199
- host: "host";
200
199
  relay: "relay";
200
+ host: "host";
201
201
  }>;
202
202
  relayUrl: z.ZodOptional<z.ZodString>;
203
203
  gitCredentialMode: z.ZodDefault<z.ZodEnum<{
@@ -212,33 +212,33 @@ declare const ExecutionTargetSchemas: {
212
212
  request: z.ZodObject<{
213
213
  executionTarget: z.ZodDiscriminatedUnion<[z.ZodObject<{
214
214
  type: z.ZodLiteral<"local">;
215
- description: z.ZodOptional<z.ZodString>;
216
215
  id: z.ZodString;
216
+ description: z.ZodOptional<z.ZodString>;
217
217
  name: z.ZodString;
218
218
  enabled: z.ZodBoolean;
219
219
  scope: z.ZodString;
220
220
  }, z.core.$strip>, z.ZodObject<{
221
221
  type: z.ZodLiteral<"container-local">;
222
- description: z.ZodOptional<z.ZodString>;
223
222
  id: z.ZodString;
223
+ description: z.ZodOptional<z.ZodString>;
224
224
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
225
225
  name: z.ZodString;
226
- enabled: z.ZodBoolean;
227
226
  image: z.ZodOptional<z.ZodString>;
227
+ enabled: z.ZodBoolean;
228
228
  scope: z.ZodString;
229
229
  busUrl: z.ZodOptional<z.ZodString>;
230
230
  }, z.core.$strip>, z.ZodObject<{
231
231
  type: z.ZodLiteral<"container-isolated">;
232
- description: z.ZodOptional<z.ZodString>;
233
232
  id: z.ZodString;
233
+ description: z.ZodOptional<z.ZodString>;
234
234
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
235
235
  name: z.ZodString;
236
- enabled: z.ZodBoolean;
237
236
  image: z.ZodOptional<z.ZodString>;
237
+ enabled: z.ZodBoolean;
238
238
  scope: z.ZodString;
239
239
  busMode: z.ZodEnum<{
240
- host: "host";
241
240
  relay: "relay";
241
+ host: "host";
242
242
  }>;
243
243
  relayUrl: z.ZodOptional<z.ZodString>;
244
244
  gitCredentialMode: z.ZodDefault<z.ZodEnum<{
@@ -303,8 +303,8 @@ declare const ExecutionTargetSchemas: {
303
303
  image: z.ZodOptional<z.ZodString>;
304
304
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
305
305
  busMode: z.ZodEnum<{
306
- host: "host";
307
306
  relay: "relay";
307
+ host: "host";
308
308
  }>;
309
309
  relayUrl: z.ZodOptional<z.ZodString>;
310
310
  gitCredentialMode: z.ZodDefault<z.ZodEnum<{
@@ -353,8 +353,8 @@ declare const ExecutionTargetSchemas: {
353
353
  image: z.ZodOptional<z.ZodString>;
354
354
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
355
355
  busMode: z.ZodEnum<{
356
- host: "host";
357
356
  relay: "relay";
357
+ host: "host";
358
358
  }>;
359
359
  relayUrl: z.ZodOptional<z.ZodString>;
360
360
  gitCredentialMode: z.ZodDefault<z.ZodEnum<{
@@ -398,8 +398,8 @@ declare const ExecutionTargetSchemas: {
398
398
  image: z.ZodOptional<z.ZodString>;
399
399
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
400
400
  busMode: z.ZodEnum<{
401
- host: "host";
402
401
  relay: "relay";
402
+ host: "host";
403
403
  }>;
404
404
  relayUrl: z.ZodOptional<z.ZodString>;
405
405
  gitCredentialMode: z.ZodDefault<z.ZodEnum<{
@@ -441,8 +441,8 @@ declare const ExecutionTargetSchemas: {
441
441
  image: z.ZodOptional<z.ZodString>;
442
442
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
443
443
  busMode: z.ZodEnum<{
444
- host: "host";
445
444
  relay: "relay";
445
+ host: "host";
446
446
  }>;
447
447
  relayUrl: z.ZodOptional<z.ZodString>;
448
448
  gitCredentialMode: z.ZodDefault<z.ZodEnum<{
@@ -27,8 +27,8 @@ declare const TrayMenuEntrySchema: z.ZodObject<{
27
27
  declare const TrayMenuGroupEntrySchema: z.ZodObject<{
28
28
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
29
29
  enabled: z.ZodDefault<z.ZodBoolean>;
30
- priority: z.ZodDefault<z.ZodNumber>;
31
30
  label: z.ZodString;
31
+ priority: z.ZodDefault<z.ZodNumber>;
32
32
  entryId: z.ZodString;
33
33
  }, z.core.$strip>;
34
34
  /** Ordered group of tray entries contributed by one package. */
@@ -38,8 +38,8 @@ declare const TrayMenuGroupSchema: z.ZodObject<{
38
38
  entries: z.ZodArray<z.ZodObject<{
39
39
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
40
40
  enabled: z.ZodDefault<z.ZodBoolean>;
41
- priority: z.ZodDefault<z.ZodNumber>;
42
41
  label: z.ZodString;
42
+ priority: z.ZodDefault<z.ZodNumber>;
43
43
  entryId: z.ZodString;
44
44
  }, z.core.$strip>>;
45
45
  section: z.ZodEnum<{
@@ -110,8 +110,8 @@ declare const TrayMenuSchemas: {
110
110
  entries: z.ZodArray<z.ZodObject<{
111
111
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
112
112
  enabled: z.ZodDefault<z.ZodBoolean>;
113
- priority: z.ZodDefault<z.ZodNumber>;
114
113
  label: z.ZodString;
114
+ priority: z.ZodDefault<z.ZodNumber>;
115
115
  entryId: z.ZodString;
116
116
  }, z.core.$strip>>;
117
117
  section: z.ZodEnum<{
@@ -64,9 +64,9 @@ declare const SurfaceBindingRegistrationSchema: z.ZodObject<{
64
64
  template: z.ZodString;
65
65
  }, z.core.$strip>], "kind">;
66
66
  appliesTo: z.ZodArray<z.ZodEnum<{
67
+ artifact: "artifact";
67
68
  surface: "surface";
68
69
  workpiece: "workpiece";
69
- artifact: "artifact";
70
70
  }>>;
71
71
  valueMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
72
72
  description: z.ZodOptional<z.ZodString>;
@@ -78,16 +78,16 @@ type SurfaceBindingTarget = z.infer<typeof SurfaceBindingTargetSchema>;
78
78
  /** Semantic hint for provider-neutral artifact projected fields. */
79
79
  declare const ProjectedFieldSemanticSchema: z.ZodEnum<{
80
80
  status: "status";
81
- priority: "priority";
82
81
  workflow: "workflow";
82
+ priority: "priority";
83
83
  }>;
84
84
  /** A provider-neutral field from artifact data that may be projected to an external surface. */
85
85
  declare const ProjectedFieldSchema: z.ZodObject<{
86
86
  path: z.ZodString;
87
87
  semantic: z.ZodOptional<z.ZodEnum<{
88
88
  status: "status";
89
- priority: "priority";
90
89
  workflow: "workflow";
90
+ priority: "priority";
91
91
  }>>;
92
92
  }, z.core.$strip>;
93
93
  /** Semantic hint for provider-neutral artifact projected fields. */
@@ -108,8 +108,8 @@ declare const ArtifactProjectionPolicySchema: z.ZodObject<{
108
108
  comment: "comment";
109
109
  }>;
110
110
  defaultRole: z.ZodOptional<z.ZodEnum<{
111
- workpiece: "workpiece";
112
111
  artifact: "artifact";
112
+ workpiece: "workpiece";
113
113
  }>>;
114
114
  semanticEvents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
115
115
  created: "created";
@@ -121,8 +121,8 @@ declare const ArtifactProjectionPolicySchema: z.ZodObject<{
121
121
  path: z.ZodString;
122
122
  semantic: z.ZodOptional<z.ZodEnum<{
123
123
  status: "status";
124
- priority: "priority";
125
124
  workflow: "workflow";
125
+ priority: "priority";
126
126
  }>>;
127
127
  }, z.core.$strip>>>;
128
128
  }, z.core.$strip>;
@@ -141,8 +141,8 @@ declare const ArtifactMaterializationRefSchema: z.ZodObject<{
141
141
  externalId: z.ZodString;
142
142
  externalUrl: z.ZodOptional<z.ZodString>;
143
143
  surfaceRole: z.ZodEnum<{
144
- workpiece: "workpiece";
145
144
  artifact: "artifact";
145
+ workpiece: "workpiece";
146
146
  }>;
147
147
  lastSyncedRevision: z.ZodOptional<z.ZodString>;
148
148
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -9,11 +9,11 @@ import { UiNavigationLevel } from "@makaio/framework/contracts";
9
9
  * Use this schema for runtime validation in bus payloads.
10
10
  */
11
11
  declare const SurfaceIdSchema: z.ZodEnum<{
12
+ tray: "tray";
12
13
  mobile: "mobile";
13
14
  web: "web";
14
15
  electron: "electron";
15
16
  electrobun: "electrobun";
16
- tray: "tray";
17
17
  }>;
18
18
  /**
19
19
  * Surface identifier type — derived from the Zod schema.
@@ -29,9 +29,9 @@ type SurfaceId = z.infer<typeof SurfaceIdSchema>;
29
29
  * A page is visible on a surface when the surface provides all required capabilities.
30
30
  */
31
31
  declare const SurfaceCapabilitySchema: z.ZodEnum<{
32
- dom: "dom";
33
32
  native: "native";
34
33
  filesystem: "filesystem";
34
+ dom: "dom";
35
35
  "multi-window": "multi-window";
36
36
  touch: "touch";
37
37
  }>;
@@ -100,11 +100,11 @@ declare const PageMetadataSchema: z.ZodObject<{
100
100
  }>;
101
101
  level: z.ZodCustom<UiNavigationLevel, UiNavigationLevel>;
102
102
  surfaces: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodEnum<{
103
+ tray: "tray";
103
104
  mobile: "mobile";
104
105
  web: "web";
105
106
  electron: "electron";
106
107
  electrobun: "electrobun";
107
- tray: "tray";
108
108
  }>>]>>;
109
109
  }, z.core.$strip>;
110
110
  /**
@@ -126,11 +126,11 @@ declare const PageSchemas: {
126
126
  readonly list: {
127
127
  readonly request: z.ZodObject<{
128
128
  surface: z.ZodOptional<z.ZodEnum<{
129
+ tray: "tray";
129
130
  mobile: "mobile";
130
131
  web: "web";
131
132
  electron: "electron";
132
133
  electrobun: "electrobun";
133
- tray: "tray";
134
134
  }>>;
135
135
  }, z.core.$strip>;
136
136
  readonly response: z.ZodObject<{
@@ -146,11 +146,11 @@ declare const PageSchemas: {
146
146
  }>;
147
147
  level: z.ZodCustom<UiNavigationLevel, UiNavigationLevel>;
148
148
  surfaces: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodEnum<{
149
+ tray: "tray";
149
150
  mobile: "mobile";
150
151
  web: "web";
151
152
  electron: "electron";
152
153
  electrobun: "electrobun";
153
- tray: "tray";
154
154
  }>>]>>;
155
155
  }, z.core.$strip>>;
156
156
  }, z.core.$strip>;
@@ -7,8 +7,8 @@ import { z } from "zod";
7
7
  */
8
8
  declare const PreferenceKeySchema: z.ZodObject<{
9
9
  surface: z.ZodOptional<z.ZodEnum<{
10
- ui: "ui";
11
10
  app: "app";
11
+ ui: "ui";
12
12
  }>>;
13
13
  scope: z.ZodString;
14
14
  context: z.ZodOptional<z.ZodString>;
@@ -27,8 +27,8 @@ declare const PreferenceValueSchema: z.ZodType<unknown>;
27
27
  declare const PreferenceItemSchema: z.ZodObject<{
28
28
  key: z.ZodObject<{
29
29
  surface: z.ZodOptional<z.ZodEnum<{
30
- ui: "ui";
31
30
  app: "app";
31
+ ui: "ui";
32
32
  }>>;
33
33
  scope: z.ZodString;
34
34
  context: z.ZodOptional<z.ZodString>;
@@ -61,8 +61,8 @@ declare const PreferencesSchemas: {
61
61
  request: z.ZodObject<{
62
62
  key: z.ZodObject<{
63
63
  surface: z.ZodOptional<z.ZodEnum<{
64
- ui: "ui";
65
64
  app: "app";
65
+ ui: "ui";
66
66
  }>>;
67
67
  scope: z.ZodString;
68
68
  context: z.ZodOptional<z.ZodString>;
@@ -88,8 +88,8 @@ declare const PreferencesSchemas: {
88
88
  request: z.ZodObject<{
89
89
  key: z.ZodObject<{
90
90
  surface: z.ZodOptional<z.ZodEnum<{
91
- ui: "ui";
92
91
  app: "app";
92
+ ui: "ui";
93
93
  }>>;
94
94
  scope: z.ZodString;
95
95
  context: z.ZodOptional<z.ZodString>;
@@ -116,8 +116,8 @@ declare const PreferencesSchemas: {
116
116
  request: z.ZodObject<{
117
117
  key: z.ZodObject<{
118
118
  surface: z.ZodOptional<z.ZodEnum<{
119
- ui: "ui";
120
119
  app: "app";
120
+ ui: "ui";
121
121
  }>>;
122
122
  scope: z.ZodString;
123
123
  context: z.ZodOptional<z.ZodString>;
@@ -143,8 +143,8 @@ declare const PreferencesSchemas: {
143
143
  request: z.ZodObject<{
144
144
  key: z.ZodOptional<z.ZodObject<{
145
145
  surface: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
146
- ui: "ui";
147
146
  app: "app";
147
+ ui: "ui";
148
148
  }>>>;
149
149
  scope: z.ZodOptional<z.ZodString>;
150
150
  context: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -160,8 +160,8 @@ declare const PreferencesSchemas: {
160
160
  items: z.ZodArray<z.ZodObject<{
161
161
  key: z.ZodObject<{
162
162
  surface: z.ZodOptional<z.ZodEnum<{
163
- ui: "ui";
164
163
  app: "app";
164
+ ui: "ui";
165
165
  }>>;
166
166
  scope: z.ZodString;
167
167
  context: z.ZodOptional<z.ZodString>;
@@ -418,11 +418,11 @@ declare const AgentInstanceStatusSchema: z.ZodObject<{
418
418
  displayName: z.ZodString;
419
419
  subagentId: z.ZodString;
420
420
  status: z.ZodEnum<{
421
- running: "running";
422
- waiting_input: "waiting_input";
423
421
  completed: "completed";
424
- failed: "failed";
425
422
  cancelled: "cancelled";
423
+ failed: "failed";
424
+ running: "running";
425
+ waiting_input: "waiting_input";
426
426
  }>;
427
427
  result: z.ZodOptional<z.ZodString>;
428
428
  error: z.ZodOptional<z.ZodString>;
@@ -876,11 +876,11 @@ declare const AgentRuntimeSchemas: {
876
876
  displayName: z.ZodString;
877
877
  subagentId: z.ZodString;
878
878
  status: z.ZodEnum<{
879
- running: "running";
880
- waiting_input: "waiting_input";
881
879
  completed: "completed";
882
- failed: "failed";
883
880
  cancelled: "cancelled";
881
+ failed: "failed";
882
+ running: "running";
883
+ waiting_input: "waiting_input";
884
884
  }>;
885
885
  result: z.ZodOptional<z.ZodString>;
886
886
  error: z.ZodOptional<z.ZodString>;
@@ -43,12 +43,12 @@ type SubagentTemplateSummary = z.infer<typeof SubagentTemplateSummarySchema>;
43
43
  * Omits server-managed fields: id, scope, createdAt, updatedAt.
44
44
  */
45
45
  declare const SubagentTemplateCreateSchema: z.ZodObject<{
46
- providerConfigId: z.ZodOptional<z.ZodString>;
46
+ name: z.ZodString;
47
47
  model: z.ZodOptional<z.ZodString>;
48
+ providerConfigId: z.ZodOptional<z.ZodString>;
48
49
  systemPrompt: z.ZodOptional<z.ZodString>;
49
50
  allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
50
51
  disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
51
- name: z.ZodString;
52
52
  enabled: z.ZodDefault<z.ZodBoolean>;
53
53
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
54
54
  adapterName: z.ZodString;
@@ -128,12 +128,12 @@ declare const SubagentTemplateSettingsSchemas: {
128
128
  };
129
129
  create: {
130
130
  request: z.ZodObject<{
131
- providerConfigId: z.ZodOptional<z.ZodString>;
131
+ name: z.ZodString;
132
132
  model: z.ZodOptional<z.ZodString>;
133
+ providerConfigId: z.ZodOptional<z.ZodString>;
133
134
  systemPrompt: z.ZodOptional<z.ZodString>;
134
135
  allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
135
136
  disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
136
- name: z.ZodString;
137
137
  enabled: z.ZodDefault<z.ZodBoolean>;
138
138
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
139
139
  adapterName: z.ZodString;
@@ -189,11 +189,11 @@ declare const SubagentTemplateInstanceSchema: z.ZodObject<{
189
189
  subagentId: z.ZodString;
190
190
  childSessionId: z.ZodString;
191
191
  status: z.ZodEnum<{
192
- running: "running";
193
- waiting_input: "waiting_input";
194
192
  completed: "completed";
195
- failed: "failed";
196
193
  cancelled: "cancelled";
194
+ failed: "failed";
195
+ running: "running";
196
+ waiting_input: "waiting_input";
197
197
  }>;
198
198
  createdAt: z.ZodString;
199
199
  }, z.core.$strip>;
@@ -220,11 +220,11 @@ declare const SubagentTemplateInstanceStatusSchema: z.ZodObject<{
220
220
  definitionName: z.ZodString;
221
221
  subagentId: z.ZodString;
222
222
  status: z.ZodEnum<{
223
- running: "running";
224
- waiting_input: "waiting_input";
225
223
  completed: "completed";
226
- failed: "failed";
227
224
  cancelled: "cancelled";
225
+ failed: "failed";
226
+ running: "running";
227
+ waiting_input: "waiting_input";
228
228
  }>;
229
229
  result: z.ZodOptional<z.ZodString>;
230
230
  error: z.ZodOptional<z.ZodString>;
@@ -272,11 +272,11 @@ declare const SubagentTemplateKernelSchemas: {
272
272
  definitionName: z.ZodString;
273
273
  subagentId: z.ZodString;
274
274
  status: z.ZodEnum<{
275
- running: "running";
276
- waiting_input: "waiting_input";
277
275
  completed: "completed";
278
- failed: "failed";
279
276
  cancelled: "cancelled";
277
+ failed: "failed";
278
+ running: "running";
279
+ waiting_input: "waiting_input";
280
280
  }>;
281
281
  result: z.ZodOptional<z.ZodString>;
282
282
  error: z.ZodOptional<z.ZodString>;
@@ -1,4 +1,4 @@
1
- import { a as ResolveIdResponseSchema, c as ResolveNameResponse, i as ResolveIdResponse, l as ResolveNameResponseSchema, n as ResolveIdRequest, o as ResolveNameRequest, r as ResolveIdRequestSchema, s as ResolveNameRequestSchema, t as AdapterRuntimeSchemas } from "../../schemas-7y9O8b0X.mjs";
2
- import { n as AdapterRuntimeSubjects, t as AdapterRuntimeNamespace } from "../../namespace-Buecxx19.mjs";
3
- import { a as resolveDeterministicAdapterId, i as registerAdapterRuntimeIdentityHandlers, n as RegisteredAdapterRuntimeIdentityHandlers, r as buildDeterministicAdapterId, t as AdapterIdentityRegistry } from "../../index-o9__SHM7.mjs";
1
+ import { a as ResolveIdResponseSchema, c as ResolveNameResponse, i as ResolveIdResponse, l as ResolveNameResponseSchema, n as ResolveIdRequest, o as ResolveNameRequest, r as ResolveIdRequestSchema, s as ResolveNameRequestSchema, t as AdapterRuntimeSchemas } from "../../schemas-DFWGb4uj.mjs";
2
+ import { n as AdapterRuntimeSubjects, t as AdapterRuntimeNamespace } from "../../namespace-CTrNKkxY.mjs";
3
+ import { a as resolveDeterministicAdapterId, i as registerAdapterRuntimeIdentityHandlers, n as RegisteredAdapterRuntimeIdentityHandlers, r as buildDeterministicAdapterId, t as AdapterIdentityRegistry } from "../../index-Bw8SkcWG.mjs";
4
4
  export { AdapterIdentityRegistry, AdapterRuntimeNamespace, AdapterRuntimeSchemas, AdapterRuntimeSubjects, RegisteredAdapterRuntimeIdentityHandlers, ResolveIdRequest, ResolveIdRequestSchema, ResolveIdResponse, ResolveIdResponseSchema, ResolveNameRequest, ResolveNameRequestSchema, ResolveNameResponse, ResolveNameResponseSchema, buildDeterministicAdapterId, registerAdapterRuntimeIdentityHandlers, resolveDeterministicAdapterId };
@@ -1 +1 @@
1
- import{AdapterRuntimeSchemas as e,ResolveIdRequestSchema as t,ResolveIdResponseSchema as n,ResolveNameRequestSchema as r,ResolveNameResponseSchema as i}from"./schemas.mjs";import{AdapterRuntimeNamespace as a,AdapterRuntimeSubjects as o}from"./namespace.mjs";import{i as s,n as c,r as l,t as u}from"../../identity-Cz2IeEtm.mjs";export{u as AdapterIdentityRegistry,a as AdapterRuntimeNamespace,e as AdapterRuntimeSchemas,o as AdapterRuntimeSubjects,t as ResolveIdRequestSchema,n as ResolveIdResponseSchema,r as ResolveNameRequestSchema,i as ResolveNameResponseSchema,c as buildDeterministicAdapterId,l as registerAdapterRuntimeIdentityHandlers,s as resolveDeterministicAdapterId};
1
+ import{AdapterRuntimeSchemas as e,ResolveIdRequestSchema as t,ResolveIdResponseSchema as n,ResolveNameRequestSchema as r,ResolveNameResponseSchema as i}from"./schemas.mjs";import{AdapterRuntimeNamespace as a,AdapterRuntimeSubjects as o}from"./namespace.mjs";import{i as s,n as c,r as l,t as u}from"../../identity-Bmx-8fPa.mjs";export{u as AdapterIdentityRegistry,a as AdapterRuntimeNamespace,e as AdapterRuntimeSchemas,o as AdapterRuntimeSubjects,t as ResolveIdRequestSchema,n as ResolveIdResponseSchema,r as ResolveNameRequestSchema,i as ResolveNameResponseSchema,c as buildDeterministicAdapterId,l as registerAdapterRuntimeIdentityHandlers,s as resolveDeterministicAdapterId};
@@ -1,2 +1,2 @@
1
- import { n as AdapterRuntimeSubjects, t as AdapterRuntimeNamespace } from "../../namespace-Buecxx19.mjs";
1
+ import { n as AdapterRuntimeSubjects, t as AdapterRuntimeNamespace } from "../../namespace-CTrNKkxY.mjs";
2
2
  export { AdapterRuntimeNamespace, AdapterRuntimeSubjects };
@@ -1,2 +1,2 @@
1
- import { a as ResolveIdResponseSchema, c as ResolveNameResponse, i as ResolveIdResponse, l as ResolveNameResponseSchema, n as ResolveIdRequest, o as ResolveNameRequest, r as ResolveIdRequestSchema, s as ResolveNameRequestSchema, t as AdapterRuntimeSchemas } from "../../schemas-7y9O8b0X.mjs";
1
+ import { a as ResolveIdResponseSchema, c as ResolveNameResponse, i as ResolveIdResponse, l as ResolveNameResponseSchema, n as ResolveIdRequest, o as ResolveNameRequest, r as ResolveIdRequestSchema, s as ResolveNameRequestSchema, t as AdapterRuntimeSchemas } from "../../schemas-DFWGb4uj.mjs";
2
2
  export { AdapterRuntimeSchemas, ResolveIdRequest, ResolveIdRequestSchema, ResolveIdResponse, ResolveIdResponseSchema, ResolveNameRequest, ResolveNameRequestSchema, ResolveNameResponse, ResolveNameResponseSchema };
@@ -1,3 +1,3 @@
1
- import { S as ProviderConfigFileRecordSchema, _ as BindingRecord, a as CanonicalProviderConfigPatchSchema, b as EffectiveAdapterSchema, c as CreateCanonicalProviderConfigInputSchema, d as ProviderConfigFileSet, f as AdapterFileConfig, g as AdapterSubsystemSchemas, h as AdapterReadinessSchema, i as CanonicalProviderConfigPatch, l as AdapterFileConfigSet, m as AdapterReadiness, n as CanonicalProviderConfigCredentialRefsPayload, o as CreateCanonicalProviderConfigInput, p as AdapterFileConfigSchema, r as CanonicalProviderConfigCredentialRefsSchema, s as CreateCanonicalProviderConfigInputPayload, t as CanonicalProviderConfigCredentialRefs, u as IAdapterConfigRepository, v as BindingRecordSchema, x as ProviderConfigFileRecord, y as EffectiveAdapter } from "../../index-Dnd_-839.mjs";
2
- import { n as AdapterSubsystemSubjects, t as AdapterSubsystemNamespace } from "../../namespace-YsOUkmgE.mjs";
1
+ import { S as ProviderConfigFileRecordSchema, _ as BindingRecord, a as CanonicalProviderConfigPatchSchema, b as EffectiveAdapterSchema, c as CreateCanonicalProviderConfigInputSchema, d as ProviderConfigFileSet, f as AdapterFileConfig, g as AdapterSubsystemSchemas, h as AdapterReadinessSchema, i as CanonicalProviderConfigPatch, l as AdapterFileConfigSet, m as AdapterReadiness, n as CanonicalProviderConfigCredentialRefsPayload, o as CreateCanonicalProviderConfigInput, p as AdapterFileConfigSchema, r as CanonicalProviderConfigCredentialRefsSchema, s as CreateCanonicalProviderConfigInputPayload, t as CanonicalProviderConfigCredentialRefs, u as IAdapterConfigRepository, v as BindingRecordSchema, x as ProviderConfigFileRecord, y as EffectiveAdapter } from "../../index-DUhXk_q6.mjs";
2
+ import { n as AdapterSubsystemSubjects, t as AdapterSubsystemNamespace } from "../../namespace-BaJJxBsI.mjs";
3
3
  export { AdapterFileConfig, AdapterFileConfigSchema, AdapterFileConfigSet, AdapterReadiness, AdapterReadinessSchema, AdapterSubsystemNamespace, AdapterSubsystemSchemas, AdapterSubsystemSubjects, BindingRecord, BindingRecordSchema, CanonicalProviderConfigCredentialRefs, CanonicalProviderConfigCredentialRefsPayload, CanonicalProviderConfigCredentialRefsSchema, CanonicalProviderConfigPatch, CanonicalProviderConfigPatchSchema, CreateCanonicalProviderConfigInput, CreateCanonicalProviderConfigInputPayload, CreateCanonicalProviderConfigInputSchema, EffectiveAdapter, EffectiveAdapterSchema, IAdapterConfigRepository, ProviderConfigFileRecord, ProviderConfigFileRecordSchema, ProviderConfigFileSet };
@@ -1 +1 @@
1
- import{a as e,c as t,d as n,i as r,l as i,n as a,o,r as s,s as c,t as l,u}from"../../namespace-BGGiHXkz.mjs";export{s as AdapterFileConfigSchema,r as AdapterReadinessSchema,l as AdapterSubsystemNamespace,e as AdapterSubsystemSchemas,a as AdapterSubsystemSubjects,o as BindingRecordSchema,i as CanonicalProviderConfigCredentialRefsSchema,u as CanonicalProviderConfigPatchSchema,n as CreateCanonicalProviderConfigInputSchema,c as EffectiveAdapterSchema,t as ProviderConfigFileRecordSchema};
1
+ import{a as e,c as t,d as n,i as r,l as i,n as a,o,r as s,s as c,t as l,u}from"../../namespace-ENv7H7Na.mjs";export{s as AdapterFileConfigSchema,r as AdapterReadinessSchema,l as AdapterSubsystemNamespace,e as AdapterSubsystemSchemas,a as AdapterSubsystemSubjects,o as BindingRecordSchema,i as CanonicalProviderConfigCredentialRefsSchema,u as CanonicalProviderConfigPatchSchema,n as CreateCanonicalProviderConfigInputSchema,c as EffectiveAdapterSchema,t as ProviderConfigFileRecordSchema};
@@ -1,2 +1,2 @@
1
- import { n as AdapterSubsystemSubjects, t as AdapterSubsystemNamespace } from "../../namespace-YsOUkmgE.mjs";
1
+ import { n as AdapterSubsystemSubjects, t as AdapterSubsystemNamespace } from "../../namespace-BaJJxBsI.mjs";
2
2
  export { AdapterSubsystemNamespace, AdapterSubsystemSubjects };