@makaio/framework 1.0.0-dev-1781081952714 → 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 (257) 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/index.d.mts +3 -3
  5. package/dist/adapters/index.mjs +1 -1
  6. package/dist/adapters/node.d.mts +1 -1
  7. package/dist/adapters/node.mjs +1 -1
  8. package/dist/ajv-0JG5NFEd.mjs +8 -0
  9. package/dist/bus/index.d.mts +19 -19
  10. package/dist/contracts/adapter/index.d.mts +2 -2
  11. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  12. package/dist/contracts/artifact/index.d.mts +1 -1
  13. package/dist/contracts/client/index.d.mts +2 -2
  14. package/dist/contracts/common/index.d.mts +1 -1
  15. package/dist/contracts/config/index.d.mts +1 -1
  16. package/dist/contracts/extension/index.d.mts +3 -3
  17. package/dist/contracts/facet/index.d.mts +1 -1
  18. package/dist/contracts/harness/index.d.mts +1 -1
  19. package/dist/contracts/host/index.d.mts +1 -1
  20. package/dist/contracts/index.d.mts +237 -237
  21. package/dist/contracts/materialization/index.d.mts +3 -3
  22. package/dist/contracts/model-registry/index.d.mts +1 -1
  23. package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
  24. package/dist/contracts/platform/index.d.mts +1 -1
  25. package/dist/contracts/provider/index.d.mts +2 -2
  26. package/dist/contracts/session/index.d.mts +2 -2
  27. package/dist/contracts/shared/index.d.mts +1 -1
  28. package/dist/contracts/skill/index.d.mts +1 -1
  29. package/dist/contracts/telemetry/index.d.mts +1 -1
  30. package/dist/contracts/timeout/index.d.mts +1 -1
  31. package/dist/contracts/variant/index.d.mts +1 -1
  32. package/dist/{cursor-storage-C_WTAESV.mjs → cursor-storage-YikwAZR5.mjs} +1 -1
  33. package/dist/{definition-DqJOg6Lv.d.mts → definition-Cp-5xJp_.d.mts} +1 -1
  34. package/dist/{detached-extension-handle-CxEBQnSa.mjs → detached-extension-handle-oXbjv1tA.mjs} +1 -1
  35. package/dist/esm-CglYG5aA.mjs +1 -0
  36. package/dist/expression/index.d.mts +11 -2
  37. package/dist/expression/index.mjs +4 -4
  38. package/dist/{filesystem-service-DH9zlxyd.mjs → filesystem-service-CBJT7A5w.mjs} +1 -1
  39. package/dist/git/index.mjs +14 -14
  40. package/dist/{globby-4SrlyIlj.mjs → globby-C0lgTOUl.mjs} +1 -1
  41. package/dist/{index-IekAD8Gp.d.mts → index-BELri1Hy.d.mts} +8 -8
  42. package/dist/{index-jlQ4IhR5.d.mts → index-BY-fz0Jy.d.mts} +342 -342
  43. package/dist/{index-Bw_zL7Rs.d.mts → index-Bw8SkcWG.d.mts} +1 -1
  44. package/dist/{index-BmV60tMf.d.mts → index-C1uZLARQ.d.mts} +17 -17
  45. package/dist/{index-D6bw4qJp.d.mts → index-CXfWW8cP.d.mts} +98 -98
  46. package/dist/{index-fVgKVvta.d.mts → index-C_jIVT40.d.mts} +1 -1
  47. package/dist/{index-C3zfJg6s.d.mts → index-ClgVA8Rz.d.mts} +6 -6
  48. package/dist/{index-BheaEhyI.d.mts → index-CmGvjpUG.d.mts} +6 -6
  49. package/dist/{index-Bibt5jAX.d.mts → index-Dsu1tPHm.d.mts} +8 -8
  50. package/dist/{index-BYkOUd0x.d.mts → index-SFkbbDxs.d.mts} +1 -1
  51. package/dist/{index-DETxgKS2.d.mts → index-hWzUQtDn.d.mts} +8 -8
  52. package/dist/{index-YDfOv0GT.d.mts → index-i7o6FtS0.d.mts} +33 -7
  53. package/dist/{index-CwKzQuIX.d.mts → index-kLBWooVu.d.mts} +24 -24
  54. package/dist/{index-CNOTkyGw.d.mts → index-t9Vt4Jbb.d.mts} +306 -382
  55. package/dist/{index-BAhJKQLX.d.mts → index-uQl_1wQO.d.mts} +8 -8
  56. package/dist/{index-Db0uJ_Cg2.d.mts → index-v2kRZnfw2.d.mts} +3 -3
  57. package/dist/kernel/cli/index.d.mts +2 -2
  58. package/dist/kernel/cli/register.d.mts +1 -1
  59. package/dist/kernel/extension/index.d.mts +1 -1
  60. package/dist/kernel/index.d.mts +5 -5
  61. package/dist/kernel/namespace/index.d.mts +1 -1
  62. package/dist/kernel/observability/index.d.mts +1 -1
  63. package/dist/kernel/providers/index.d.mts +1 -1
  64. package/dist/kernel/window/index.d.mts +1 -1
  65. package/dist/{lib-B9kVK_1_.mjs → lib-CaOdTS9F.mjs} +1 -1
  66. package/dist/lib-IkUYa2Qs.mjs +2 -0
  67. package/dist/{lib-DPruLs5D.mjs → lib-zuQKc8ym.mjs} +19 -22
  68. package/dist/{load-extensions-C-TqCwzL.mjs → load-extensions-CwxilDj1.mjs} +1 -1
  69. package/dist/{load-extensions-D9nbDIiW.d.mts → load-extensions-DE8qDIqi.d.mts} +1 -1
  70. package/dist/mcp-http-server/index.mjs +1 -1
  71. package/dist/{namespace-Ds6HkJEU.d.mts → namespace-13uMtVGj.d.mts} +134 -134
  72. package/dist/{namespace-ByyuIFpL.d.mts → namespace-CZPu_jvy.d.mts} +58 -58
  73. package/dist/{namespace-aBIAWxY3.d.mts → namespace-Da_dHfdm.d.mts} +10 -10
  74. package/dist/{namespace-BlS_i9KT.d.mts → namespace-ffepZB8Y.d.mts} +5 -5
  75. package/dist/node/bus-server/index.d.mts +1 -1
  76. package/dist/node/bus-server/index.mjs +1 -1
  77. package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
  78. package/dist/node/bus-server/server-lifecycle.mjs +1 -1
  79. package/dist/{out-CvZYgczi.mjs → out-CiFds_ap.mjs} +1 -1
  80. package/dist/{package-1DS4bXg5.mjs → package-C9wOiMK9.mjs} +1 -1
  81. package/dist/package.json +1 -1
  82. package/dist/primitive-runtime-1Z3JbRUj.mjs +1 -0
  83. package/dist/rules/index.d.mts +1 -1
  84. package/dist/rules/index.mjs +1 -1
  85. package/dist/rules/schemas.d.mts +1 -1
  86. package/dist/runtime-bun/index.mjs +1 -1
  87. package/dist/runtime-node/extension-discovery.d.mts +1 -1
  88. package/dist/runtime-node/extension-validation.d.mts +1 -1
  89. package/dist/runtime-node/extension-validation.mjs +1 -1
  90. package/dist/runtime-node/index.d.mts +3 -3
  91. package/dist/runtime-node/index.mjs +3 -3
  92. package/dist/runtime-node/makaio-config.d.mts +1 -1
  93. package/dist/runtime-node/makaio-config.mjs +1 -1
  94. package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
  95. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  96. package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
  97. package/dist/{schema-CDL_pyyM.d.mts → schema-CfuF2cXW.d.mts} +3 -3
  98. package/dist/{schemas-t1VR6_b_.d.mts → schemas-BiMxSTUx.d.mts} +3 -3
  99. package/dist/{schemas-on3_N5HP.d.mts → schemas-DdZwjeF0.d.mts} +134 -134
  100. package/dist/{schemas-Exixg77V2.d.mts → schemas-SPI-Y87l2.d.mts} +14 -14
  101. package/dist/services/adapter-runtime/index.d.mts +3 -3
  102. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  103. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  104. package/dist/services/adapter-subsystem/index.d.mts +2 -2
  105. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  106. package/dist/services/agent-runtime/index.d.mts +2 -2
  107. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  108. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  109. package/dist/services/capability/index.d.mts +1 -1
  110. package/dist/services/codebase/index.d.mts +2 -2
  111. package/dist/services/codebase/namespace.d.mts +1 -1
  112. package/dist/services/codebase/schemas.d.mts +1 -1
  113. package/dist/services/compression/index.d.mts +2 -2
  114. package/dist/services/compression/namespace.d.mts +1 -1
  115. package/dist/services/compression/schemas.d.mts +1 -1
  116. package/dist/services/context-rules/index.d.mts +4 -4
  117. package/dist/services/execution-target/index.d.mts +3 -3
  118. package/dist/services/execution-target/namespace.d.mts +1 -1
  119. package/dist/services/execution-target/schemas.d.mts +1 -1
  120. package/dist/services/filesystem/index.d.mts +1 -1
  121. package/dist/services/filesystem/index.mjs +1 -1
  122. package/dist/services/filesystem/namespace.d.mts +6 -6
  123. package/dist/services/filesystem/schemas.d.mts +3 -3
  124. package/dist/services/harness/index.d.mts +3 -3
  125. package/dist/services/index.d.mts +120 -120
  126. package/dist/services/index.mjs +1 -1
  127. package/dist/services/log-import/browser.d.mts +2 -2
  128. package/dist/services/log-import/index.d.mts +2 -2
  129. package/dist/services/log-import/log-import.d.mts +1 -1
  130. package/dist/services/model-registry/index.d.mts +1 -1
  131. package/dist/services/preferences/index.d.mts +2 -2
  132. package/dist/services/preferences/schemas.d.mts +1 -1
  133. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  134. package/dist/services/provider-context/index.d.mts +1 -1
  135. package/dist/services/session/handlers/index.d.mts +1 -1
  136. package/dist/services/session/index.d.mts +9 -9
  137. package/dist/services/session/messages/namespace.d.mts +1 -1
  138. package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
  139. package/dist/services/session/session-events/namespace.d.mts +1 -1
  140. package/dist/services/session/storage/namespace.d.mts +1 -1
  141. package/dist/services/session/storage/schema.d.mts +1 -1
  142. package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
  143. package/dist/services/session/turns/namespace.d.mts +1 -1
  144. package/dist/services/session-editor/index.d.mts +1 -1
  145. package/dist/services/settings/index.d.mts +3 -3
  146. package/dist/services/settings/namespace.d.mts +14 -14
  147. package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
  148. package/dist/services/settings/storage/index.d.mts +3 -3
  149. package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
  150. package/dist/services/subagent/index.d.mts +1 -1
  151. package/dist/services/subagent-template/index.d.mts +2 -2
  152. package/dist/services/subagent-template/namespace.d.mts +1 -1
  153. package/dist/services/subagent-template/schemas.d.mts +1 -1
  154. package/dist/services/tool-approval/index.d.mts +1 -1
  155. package/dist/services/tools/index.d.mts +1 -1
  156. package/dist/services/tools/index.mjs +1 -1
  157. package/dist/services/tray-menu/index.d.mts +3 -3
  158. package/dist/services/tray-menu/namespace.d.mts +1 -1
  159. package/dist/services/tray-menu/schemas.d.mts +1 -1
  160. package/dist/services/turn/index.d.mts +1 -1
  161. package/dist/services/turn/namespace.d.mts +1 -1
  162. package/dist/{src-Dvp41Cg2.mjs → src-DI5TcYUW.mjs} +1 -1
  163. package/dist/storage/drizzle/client.d.mts +1 -1
  164. package/dist/storage/drizzle/index.d.mts +1 -1
  165. package/dist/storage/handlers/drizzle/index.d.mts +1 -1
  166. package/dist/storage/handlers/index.d.mts +1 -1
  167. package/dist/style.css +540 -540
  168. package/dist/{tools-DC4KrqI1.mjs → tools-B8d8Iqqx.mjs} +1 -1
  169. package/dist/{types-CmMesAgR.d.mts → types-0u6hpELc.d.mts} +1 -1
  170. package/dist/{types-D0fPFh-D.d.mts → types-C5Uy3WEy.d.mts} +1 -1
  171. package/dist/{types-DiGqpZOD.d.mts → types-CZHV05Lu.d.mts} +219 -219
  172. package/dist/ui-components/index.d.mts +1 -1
  173. package/dist/ui-components/index.mjs +2 -2
  174. package/dist/ui-hooks/index.d.mts +6 -6
  175. package/dist/ui-kernel/index.d.mts +1 -1
  176. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  177. package/dist/ui-views/index.mjs +2 -2
  178. package/dist/workflow-engine/index.d.mts +36 -36
  179. package/dist/workflow-engine/index.mjs +1 -1
  180. package/dist/workflow-engine/package.d.mts +1 -1
  181. package/dist/workflow-engine/package.mjs +1 -1
  182. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
  183. package/dist/workflow-worker-hDaQzTBl.mjs +1 -0
  184. package/package.json +1 -1
  185. package/dist/ajv-BJsabpMb.mjs +0 -8
  186. package/dist/esm-BdLRFEUy.mjs +0 -3
  187. package/dist/fast-uri-BF2Xuiop.mjs +0 -1
  188. package/dist/lib-aRogYLqg.mjs +0 -5
  189. package/dist/primitive-runtime-DcYYWy_6.mjs +0 -8
  190. package/dist/workflow-worker-DvP753UN.mjs +0 -1
  191. /package/dist/{await-trigger-DREnXCEJ.mjs → await-trigger-CHuOd5co.mjs} +0 -0
  192. /package/dist/{base-orchestrator-M5mAB5-w.d.mts → base-orchestrator-D-S9v5VY.d.mts} +0 -0
  193. /package/dist/{clients-namespace-SFk7OTop.d.mts → clients-namespace-E97p_GKF.d.mts} +0 -0
  194. /package/dist/{config-namespace-BzAvE2nY.d.mts → config-namespace-R_34Wfps.d.mts} +0 -0
  195. /package/dist/{create-static-mount-CFGo91CI.mjs → create-static-mount-B9Szo_7y.mjs} +0 -0
  196. /package/dist/{cross-spawn-BL6EvJBv.mjs → cross-spawn-CTptpCy4.mjs} +0 -0
  197. /package/dist/{definition-BSghHJpQ.d.mts → definition-CYzWS2eR.d.mts} +0 -0
  198. /package/dist/{definition-q6iLw11H.d.mts → definition-CvOuzWNT.d.mts} +0 -0
  199. /package/dist/{descriptor-to-package-CY8oc2gl.mjs → descriptor-to-package-9nrAH_D5.mjs} +0 -0
  200. /package/dist/{extension-discovery-CkV_VRdJ.d.mts → extension-discovery-BD1-oNU_.d.mts} +0 -0
  201. /package/dist/{filesystem-service-Ddngll0j.d.mts → filesystem-service-BcwRp4k1.d.mts} +0 -0
  202. /package/dist/{index-C6BhKRnH.d.mts → index--0CnhN0g.d.mts} +0 -0
  203. /package/dist/{index-BxFA1XcP.d.mts → index-9KnLzPYu.d.mts} +0 -0
  204. /package/dist/{index-C33Tq1ei2.d.mts → index-AZ4iLe7O2.d.mts} +0 -0
  205. /package/dist/{index-BnQSPC6c.d.mts → index-B6RGNugn.d.mts} +0 -0
  206. /package/dist/{index-CGJjA-hR2.d.mts → index-BDlpFEsp2.d.mts} +0 -0
  207. /package/dist/{index-BKKNWqkP2.d.mts → index-BFaeVdsn2.d.mts} +0 -0
  208. /package/dist/{index-CDU_s69P.d.mts → index-BV8rSmDZ.d.mts} +0 -0
  209. /package/dist/{index-DSV1aFgK.d.mts → index-BYxgW2i0.d.mts} +0 -0
  210. /package/dist/{index-D0SUjZmU.d.mts → index-C-YBGCCG.d.mts} +0 -0
  211. /package/dist/{index-Buo9H8RK.d.mts → index-CF7dnqQj.d.mts} +0 -0
  212. /package/dist/{index-BBvcP-P0.d.mts → index-CNYPKkyH.d.mts} +0 -0
  213. /package/dist/{index-Clut1ljB.d.mts → index-CT-zFurA.d.mts} +0 -0
  214. /package/dist/{index-BbCjtc3h.d.mts → index-CdNDnxXR.d.mts} +0 -0
  215. /package/dist/{index-Bsp0O_sI.d.mts → index-ChG8ZUNP.d.mts} +0 -0
  216. /package/dist/{index-9IDJUJ4X.d.mts → index-DJQew2k-.d.mts} +0 -0
  217. /package/dist/{index-Cz9JMjZK.d.mts → index-DNGUXQGC.d.mts} +0 -0
  218. /package/dist/{index-BpXX9WZJ.d.mts → index-DUPZKsd3.d.mts} +0 -0
  219. /package/dist/{index-BpniJgxu.d.mts → index-DUhXk_q6.d.mts} +0 -0
  220. /package/dist/{index-Dsq2zKvu.d.mts → index-Dbwm5Y-Q.d.mts} +0 -0
  221. /package/dist/{index-BCKRUuI2.d.mts → index-DfUBcVtG.d.mts} +0 -0
  222. /package/dist/{index-BMpRB6iE.d.mts → index-Dn9Uum3F.d.mts} +0 -0
  223. /package/dist/{index-D6Iyvz9T.d.mts → index-yNb7G73-.d.mts} +0 -0
  224. /package/dist/{index-DOfq0qqv.d.mts → index-ziQTLYUO.d.mts} +0 -0
  225. /package/dist/{jsonl-transport-BxNXizIm.mjs → jsonl-transport-DBHQgcIm.mjs} +0 -0
  226. /package/dist/{namespace-CHMszppN.d.mts → namespace-BaJJxBsI.d.mts} +0 -0
  227. /package/dist/{namespace-nlsvvMtD.d.mts → namespace-CTrNKkxY.d.mts} +0 -0
  228. /package/dist/{namespace-BBVtD1gu.d.mts → namespace-DfYutvMT.d.mts} +0 -0
  229. /package/dist/{namespace-D1Iw_d1P.d.mts → namespace-Dik_dNeE.d.mts} +0 -0
  230. /package/dist/{namespace-uuR0Fg5r.d.mts → namespace-DkDvQJhB.d.mts} +0 -0
  231. /package/dist/{namespace-B60mn8J-2.d.mts → namespace-DnZ4rS6T2.d.mts} +0 -0
  232. /package/dist/{namespace-DBKWNrk7.d.mts → namespace-DvHoeMUV.d.mts} +0 -0
  233. /package/dist/{namespace-XTGCaSXj.d.mts → namespace-QTFnJWHC.d.mts} +0 -0
  234. /package/dist/{namespace-DzVf1hVH.d.mts → namespace-TfZGCy7N.d.mts} +0 -0
  235. /package/dist/{namespace-CqUGzG53.d.mts → namespace-uGw5nK6d.d.mts} +0 -0
  236. /package/dist/{orchestrator-shared-D91Wk7z-.d.mts → orchestrator-shared-BZVeoRfr.d.mts} +0 -0
  237. /package/dist/{package-BSnp1zOR.d.mts → package-B2HkKyRz.d.mts} +0 -0
  238. /package/dist/{providers-namespace-BqWYkydw.d.mts → providers-namespace-Cc9FQ-Zt.d.mts} +0 -0
  239. /package/dist/{schemas-B5ToLwIs.d.mts → schemas-BD-1NGmS.d.mts} +0 -0
  240. /package/dist/{schemas-lqvZ6UpK.d.mts → schemas-BFeP62V4.d.mts} +0 -0
  241. /package/dist/{schemas-C792eVAZ.d.mts → schemas-BzK1I1eX.d.mts} +0 -0
  242. /package/dist/{schemas-Chyj6HuZ.d.mts → schemas-CYS6bkht.d.mts} +0 -0
  243. /package/dist/{schemas-Dyk7JuVl.d.mts → schemas-CsjB6gel.d.mts} +0 -0
  244. /package/dist/{schemas-Kq33MTPY.d.mts → schemas-DFWGb4uj.d.mts} +0 -0
  245. /package/dist/{schemas-DZUaRcYl.d.mts → schemas-DL_bGYyZ.d.mts} +0 -0
  246. /package/dist/{schemas-B77Gi8Xr.d.mts → schemas-Hy-lsBpg.d.mts} +0 -0
  247. /package/dist/{server-lifecycle-47mygK3E.d.mts → server-lifecycle-DVAbXQzg.d.mts} +0 -0
  248. /package/dist/{server-lifecycle-Cg47L59Q.mjs → server-lifecycle-JTFuSJhg.mjs} +0 -0
  249. /package/dist/{session-lineage-CKg6mErA.d.mts → session-lineage-CxHc3_bm.d.mts} +0 -0
  250. /package/dist/{src-Z3vAZJfw.mjs → src-4_2jBceX.mjs} +0 -0
  251. /package/dist/{storage-namespace-BXmMUd7a.d.mts → storage-namespace-I30TaZP7.d.mts} +0 -0
  252. /package/dist/{storage-namespace-definition-C3XbpiP8.d.mts → storage-namespace-definition-ZNBL3v2h.d.mts} +0 -0
  253. /package/dist/{types-5Gw3iVpK.d.mts → types-11QnNmpW.d.mts} +0 -0
  254. /package/dist/{types-B0BtvVAq.d.mts → types-BKNpS4Xw.d.mts} +0 -0
  255. /package/dist/{types-D-bP8RRE.d.mts → types-BtMNh2FS.d.mts} +0 -0
  256. /package/dist/{types-BhXRffJ_.d.mts → types-yTKQTAok.d.mts} +0 -0
  257. /package/dist/{window-registry-CfEi_Ji4.d.mts → window-registry-QD1rTk_f.d.mts} +0 -0
@@ -1,4 +1,4 @@
1
- import { a as ProjectedField, c as ProjectedFieldSemanticSchema, d as SurfaceBindingTarget, f as SurfaceBindingTargetSchema, i as ArtifactProjectionPolicySchema, l as SurfaceBindingRegistration, n as ArtifactMaterializationRefSchema, o as ProjectedFieldSchema, r as ArtifactProjectionPolicy, s as ProjectedFieldSemantic, t as ArtifactMaterializationRef, u as SurfaceBindingRegistrationSchema } from "../../schemas-t1VR6_b_.mjs";
2
- import { n as defineSurfaceBinding, t as SurfaceBindingDefinition } from "../../definition-DqJOg6Lv.mjs";
3
- import { a as MaterializationSubjects, c as SurfaceBindingListResponse, i as MaterializationSchemas, l as SurfaceBindingRegisterRequest, n as MaterializationNamespace, o as SurfaceBindingChangedPayload, r as MaterializationRefChangedPayload, s as SurfaceBindingListRequest, t as MaterializationCapabilityResolvedPayload, u as SurfaceBindingRegisterResponse } from "../../index-BheaEhyI.mjs";
1
+ import { a as ProjectedField, c as ProjectedFieldSemanticSchema, d as SurfaceBindingTarget, f as SurfaceBindingTargetSchema, i as ArtifactProjectionPolicySchema, l as SurfaceBindingRegistration, n as ArtifactMaterializationRefSchema, o as ProjectedFieldSchema, r as ArtifactProjectionPolicy, s as ProjectedFieldSemantic, t as ArtifactMaterializationRef, u as SurfaceBindingRegistrationSchema } from "../../schemas-BiMxSTUx.mjs";
2
+ import { n as defineSurfaceBinding, t as SurfaceBindingDefinition } from "../../definition-Cp-5xJp_.mjs";
3
+ import { a as MaterializationSubjects, c as SurfaceBindingListResponse, i as MaterializationSchemas, l as SurfaceBindingRegisterRequest, n as MaterializationNamespace, o as SurfaceBindingChangedPayload, r as MaterializationRefChangedPayload, s as SurfaceBindingListRequest, t as MaterializationCapabilityResolvedPayload, u as SurfaceBindingRegisterResponse } from "../../index-CmGvjpUG.mjs";
4
4
  export { ArtifactMaterializationRef, ArtifactMaterializationRefSchema, ArtifactProjectionPolicy, ArtifactProjectionPolicySchema, MaterializationCapabilityResolvedPayload, MaterializationNamespace, MaterializationRefChangedPayload, MaterializationSchemas, MaterializationSubjects, ProjectedField, ProjectedFieldSchema, ProjectedFieldSemantic, ProjectedFieldSemanticSchema, SurfaceBindingChangedPayload, SurfaceBindingDefinition, SurfaceBindingListRequest, SurfaceBindingListResponse, SurfaceBindingRegisterRequest, SurfaceBindingRegisterResponse, SurfaceBindingRegistration, SurfaceBindingRegistrationSchema, SurfaceBindingTarget, SurfaceBindingTargetSchema, defineSurfaceBinding };
@@ -1,2 +1,2 @@
1
- import { a as ModelRegistrySupportedModelsResponse, i as ModelRegistrySupportedModelsRequest, n as ModelRegistrySupportedModel, o as ModelRegistryPublicNamespace, r as ModelRegistrySupportedModelSchema, s as ModelRegistryPublicSubjects, t as ModelRegistrySchemas } from "../../index-DSV1aFgK.mjs";
1
+ import { a as ModelRegistrySupportedModelsResponse, i as ModelRegistrySupportedModelsRequest, n as ModelRegistrySupportedModel, o as ModelRegistryPublicNamespace, r as ModelRegistrySupportedModelSchema, s as ModelRegistryPublicSubjects, t as ModelRegistrySchemas } from "../../index-BYxgW2i0.mjs";
2
2
  export { ModelRegistryPublicNamespace, ModelRegistryPublicSubjects, ModelRegistrySchemas, ModelRegistrySupportedModel, ModelRegistrySupportedModelSchema, ModelRegistrySupportedModelsRequest, ModelRegistrySupportedModelsResponse };
@@ -1,2 +1,2 @@
1
- import { _ as SupervisorSessionStatusSchema, a as NativeSupervisorLaunchRequest, c as NativeSupervisorStatusRequest, d as NativeSupervisorStopRequest, f as NativeSupervisorStopResponse, g as SupervisorSessionStatus, h as SupervisorRuntimeSnapshotSchema, i as NativeSupervisorAttachSchema, l as NativeSupervisorStatusResponse, m as SupervisorRuntimeSnapshot, n as NativeSupervisorAttachRequest, o as NativeSupervisorLaunchResponse, p as NativeSupervisorStopSchema, r as NativeSupervisorAttachResponse, s as NativeSupervisorLaunchSchema, t as NativeSessionSupervisorSchemas, u as NativeSupervisorStatusSchema, v as NativeSessionSupervisorNamespace, y as NativeSessionSupervisorSubjects } from "../../index-BBvcP-P0.mjs";
1
+ import { _ as SupervisorSessionStatusSchema, a as NativeSupervisorLaunchRequest, c as NativeSupervisorStatusRequest, d as NativeSupervisorStopRequest, f as NativeSupervisorStopResponse, g as SupervisorSessionStatus, h as SupervisorRuntimeSnapshotSchema, i as NativeSupervisorAttachSchema, l as NativeSupervisorStatusResponse, m as SupervisorRuntimeSnapshot, n as NativeSupervisorAttachRequest, o as NativeSupervisorLaunchResponse, p as NativeSupervisorStopSchema, r as NativeSupervisorAttachResponse, s as NativeSupervisorLaunchSchema, t as NativeSessionSupervisorSchemas, u as NativeSupervisorStatusSchema, v as NativeSessionSupervisorNamespace, y as NativeSessionSupervisorSubjects } from "../../index-CNYPKkyH.mjs";
2
2
  export { NativeSessionSupervisorNamespace, NativeSessionSupervisorSchemas, NativeSessionSupervisorSubjects, NativeSupervisorAttachRequest, NativeSupervisorAttachResponse, NativeSupervisorAttachSchema, NativeSupervisorLaunchRequest, NativeSupervisorLaunchResponse, NativeSupervisorLaunchSchema, NativeSupervisorStatusRequest, NativeSupervisorStatusResponse, NativeSupervisorStatusSchema, NativeSupervisorStopRequest, NativeSupervisorStopResponse, NativeSupervisorStopSchema, SupervisorRuntimeSnapshot, SupervisorRuntimeSnapshotSchema, SupervisorSessionStatus, SupervisorSessionStatusSchema };
@@ -1,2 +1,2 @@
1
- import { a as PlatformSchemas, i as AutoLaunchStatusResponse, n as AutoLaunchEnableRequest, o as PlatformNamespace, r as AutoLaunchEnableResponse, s as PlatformSubjects, t as AutoLaunchDisableResponse } from "../../index-D6Iyvz9T.mjs";
1
+ import { a as PlatformSchemas, i as AutoLaunchStatusResponse, n as AutoLaunchEnableRequest, o as PlatformNamespace, r as AutoLaunchEnableResponse, s as PlatformSubjects, t as AutoLaunchDisableResponse } from "../../index-yNb7G73-.mjs";
2
2
  export { AutoLaunchDisableResponse, AutoLaunchEnableRequest, AutoLaunchEnableResponse, AutoLaunchStatusResponse, PlatformNamespace, PlatformSchemas, PlatformSubjects };
@@ -1,3 +1,3 @@
1
- import { a as ProviderDefinition, i as ProtocolIdSchema, n as ProtocolEndpointsSchema, o as ProviderDefinitionInput, r as ProtocolId, s as ProviderDefinitionSchema, t as ProtocolEndpoints } from "../../definition-q6iLw11H.mjs";
2
- import { a as resolveModelVisibility, i as ModelVisibilitySchema, n as ModelFilterModeSchema, r as ModelVisibility, t as ModelFilterMode } from "../../index-Buo9H8RK.mjs";
1
+ import { a as ProviderDefinition, i as ProtocolIdSchema, n as ProtocolEndpointsSchema, o as ProviderDefinitionInput, r as ProtocolId, s as ProviderDefinitionSchema, t as ProtocolEndpoints } from "../../definition-CvOuzWNT.mjs";
2
+ import { a as resolveModelVisibility, i as ModelVisibilitySchema, n as ModelFilterModeSchema, r as ModelVisibility, t as ModelFilterMode } from "../../index-CF7dnqQj.mjs";
3
3
  export { ModelFilterMode, ModelFilterModeSchema, ModelVisibility, ModelVisibilitySchema, ProtocolEndpoints, ProtocolEndpointsSchema, ProtocolId, ProtocolIdSchema, ProviderDefinition, ProviderDefinitionInput, ProviderDefinitionSchema, resolveModelVisibility };
@@ -1,3 +1,3 @@
1
- import { $ as BranchKind, A as ForkTransformsSchema, B as SESSION_EVENT_TYPES, C as TurnStatus, D as UsageMetrics, E as TurnUsageSchema, F as SessionUpdatedEvent, G as SendMessageRequest, H as SessionEventType, I as SessionUpdatedEventSchema, J as SessionUsageResponse, K as SendMessageResponse, L as ForkChildInfo, M as SegmentPolicySchema, N as SessionCreated, O as UsageMetricsSchema, P as SessionCreatedEventSchema, Q as AgentRoleSchema, R as ForkChildInfoSchema, S as TurnSchema, T as TurnUsage, U as SessionEventTypeMap, V as SessionEventPayload, W as SessionEventTypeSchema, X as TurnInitiatorSchema, Y as TurnInitiator, Z as AgentRole, _ as SessionMessageOriginSchema, _t as MakaioSessionAgentSchema, a as SessionPreviewData, at as SessionSnapshotSchema, b as SessionMessageSchema, c as SessionSchemas, ct as SnapshotImportConflictErrorData, d as MessageRoutingStatus, dt as validateSnapshot, et as BranchKindSchema, f as MessageRoutingStatusSchema, ft as MakaioSessionSchema, g as SessionMessageOrigin, gt as AgentStatusSchema, h as SessionMessageBlockSchema, ht as AgentStatus, i as MakaioSessionEvent, it as SessionSnapshot, j as SegmentPolicy, k as ForkTransforms, l as MessageRouting, lt as SnapshotPreviewData, m as SessionMessageBlock, mt as SessionWithPreviewSchema, n as KnownSessionEvent, nt as ImportStatusSchema, o as SessionWithPreview, ot as SnapshotExportOptions, p as SessionMessage, pt as SessionPreviewDataSchema, q as SessionUsagePayload, r as MakaioSessionAgent, rt as SNAPSHOT_VERSION, s as isKnownSessionEvent, st as SnapshotExportOptionsSchema, t as IMakaioSession, tt as ImportStatus, u as MessageRoutingSchema, ut as safeValidateSnapshot, v as SessionMessageRole, w as TurnStatusSchema, x as Turn, y as SessionMessageRoleSchema, z as MakaioSessionEventSchema } from "../../types-DiGqpZOD.mjs";
2
- import { A as ResolveSystemPromptResponse, B as ConnectorSwapWarningOptionId, C as isMergeable, D as SessionImportStatusChanged, E as SessionClientAccountChangedSchema, F as CONNECTOR_SWAP_CANCELLED_CODE, G as ContextWindowState, H as UI_WARNINGS_CATEGORY, I as ConnectorSwapCancelledError, J as SessionExtensionContextFactory, K as ForkOptions, L as isConnectorSwapCancelledError, M as ResolveAgentConfigRequest, N as ResolveAgentConfigResponse, O as SessionImportStatusChangedSchema, P as ResolveAgentConfigSchema, R as CONNECTOR_SWAP_WARNING_OPTION_IDS, S as isInViewBranch, T as SessionClientAccountChanged, U as SessionContext, V as INTERACTIVE_DIALOG_TIMEOUT_MS, W as SessionContextSchema, X as SessionSubjects, Y as SessionNamespace, _ as SessionEnrichmentSchemas, a as SessionStorageSubjects, b as BranchBehavior, c as SessionEventStorageSubjects, d as messageCursorKey, f as messageToCursor, g as MessageStorageSubjects, h as MessageStorageNamespace, i as SessionStorageSetSessionSchema, j as ResolveSystemPromptSchema, k as ResolveSystemPromptRequest, l as compareMessageCursorAsc, m as MessagePageCursorSchema, n as SessionStorageNamespace, o as SessionStorageUpdateSchema, p as MessagePageCursor, q as SessionExtensionContext, r as SessionStorageSetRequestSchema, s as SessionEventStorageNamespace, t as ImportUpsertRequest, u as compareMessageCursorDesc, v as CompressionMode, w as isNavigatingBranch, x as getBranchBehavior, y as CompressionModeSchema, z as CONNECTOR_SWAP_WARNING_SUPPRESSED_KEY } from "../../index-jlQ4IhR5.mjs";
1
+ import { $ as BranchKind, A as ForkTransformsSchema, B as SESSION_EVENT_TYPES, C as TurnStatus, D as UsageMetrics, E as TurnUsageSchema, F as SessionUpdatedEvent, G as SendMessageRequest, H as SessionEventType, I as SessionUpdatedEventSchema, J as SessionUsageResponse, K as SendMessageResponse, L as ForkChildInfo, M as SegmentPolicySchema, N as SessionCreated, O as UsageMetricsSchema, P as SessionCreatedEventSchema, Q as AgentRoleSchema, R as ForkChildInfoSchema, S as TurnSchema, T as TurnUsage, U as SessionEventTypeMap, V as SessionEventPayload, W as SessionEventTypeSchema, X as TurnInitiatorSchema, Y as TurnInitiator, Z as AgentRole, _ as SessionMessageOriginSchema, _t as MakaioSessionAgentSchema, a as SessionPreviewData, at as SessionSnapshotSchema, b as SessionMessageSchema, c as SessionSchemas, ct as SnapshotImportConflictErrorData, d as MessageRoutingStatus, dt as validateSnapshot, et as BranchKindSchema, f as MessageRoutingStatusSchema, ft as MakaioSessionSchema, g as SessionMessageOrigin, gt as AgentStatusSchema, h as SessionMessageBlockSchema, ht as AgentStatus, i as MakaioSessionEvent, it as SessionSnapshot, j as SegmentPolicy, k as ForkTransforms, l as MessageRouting, lt as SnapshotPreviewData, m as SessionMessageBlock, mt as SessionWithPreviewSchema, n as KnownSessionEvent, nt as ImportStatusSchema, o as SessionWithPreview, ot as SnapshotExportOptions, p as SessionMessage, pt as SessionPreviewDataSchema, q as SessionUsagePayload, r as MakaioSessionAgent, rt as SNAPSHOT_VERSION, s as isKnownSessionEvent, st as SnapshotExportOptionsSchema, t as IMakaioSession, tt as ImportStatus, u as MessageRoutingSchema, ut as safeValidateSnapshot, v as SessionMessageRole, w as TurnStatusSchema, x as Turn, y as SessionMessageRoleSchema, z as MakaioSessionEventSchema } from "../../types-CZHV05Lu.mjs";
2
+ import { A as ResolveSystemPromptResponse, B as ConnectorSwapWarningOptionId, C as isMergeable, D as SessionImportStatusChanged, E as SessionClientAccountChangedSchema, F as CONNECTOR_SWAP_CANCELLED_CODE, G as ContextWindowState, H as UI_WARNINGS_CATEGORY, I as ConnectorSwapCancelledError, J as SessionExtensionContextFactory, K as ForkOptions, L as isConnectorSwapCancelledError, M as ResolveAgentConfigRequest, N as ResolveAgentConfigResponse, O as SessionImportStatusChangedSchema, P as ResolveAgentConfigSchema, R as CONNECTOR_SWAP_WARNING_OPTION_IDS, S as isInViewBranch, T as SessionClientAccountChanged, U as SessionContext, V as INTERACTIVE_DIALOG_TIMEOUT_MS, W as SessionContextSchema, X as SessionSubjects, Y as SessionNamespace, _ as SessionEnrichmentSchemas, a as SessionStorageSubjects, b as BranchBehavior, c as SessionEventStorageSubjects, d as messageCursorKey, f as messageToCursor, g as MessageStorageSubjects, h as MessageStorageNamespace, i as SessionStorageSetSessionSchema, j as ResolveSystemPromptSchema, k as ResolveSystemPromptRequest, l as compareMessageCursorAsc, m as MessagePageCursorSchema, n as SessionStorageNamespace, o as SessionStorageUpdateSchema, p as MessagePageCursor, q as SessionExtensionContext, r as SessionStorageSetRequestSchema, s as SessionEventStorageNamespace, t as ImportUpsertRequest, u as compareMessageCursorDesc, v as CompressionMode, w as isNavigatingBranch, x as getBranchBehavior, y as CompressionModeSchema, z as CONNECTOR_SWAP_WARNING_SUPPRESSED_KEY } from "../../index-BY-fz0Jy.mjs";
3
3
  export { AgentRole, AgentRoleSchema, AgentStatus, AgentStatusSchema, BranchBehavior, BranchKind, BranchKindSchema, CONNECTOR_SWAP_CANCELLED_CODE, CONNECTOR_SWAP_WARNING_OPTION_IDS, CONNECTOR_SWAP_WARNING_SUPPRESSED_KEY, CompressionMode, CompressionModeSchema, ConnectorSwapCancelledError, ConnectorSwapWarningOptionId, ContextWindowState, ForkChildInfo, ForkChildInfoSchema, ForkOptions, ForkTransforms, ForkTransformsSchema, IMakaioSession, INTERACTIVE_DIALOG_TIMEOUT_MS, ImportStatus, ImportStatusSchema, ImportUpsertRequest, KnownSessionEvent, MakaioSessionAgent, MakaioSessionAgentSchema, MakaioSessionEvent, MakaioSessionEventSchema, MakaioSessionSchema, MessagePageCursor, MessagePageCursorSchema, MessageRouting, MessageRoutingSchema, MessageRoutingStatus, MessageRoutingStatusSchema, MessageStorageNamespace, MessageStorageSubjects, ResolveAgentConfigRequest, ResolveAgentConfigResponse, ResolveAgentConfigSchema, ResolveSystemPromptRequest, ResolveSystemPromptResponse, ResolveSystemPromptSchema, SESSION_EVENT_TYPES, SNAPSHOT_VERSION, SegmentPolicy, SegmentPolicySchema, SessionClientAccountChanged, SessionClientAccountChangedSchema, SessionContext, SessionContextSchema, SessionCreated, SessionCreatedEventSchema, SessionEnrichmentSchemas, SessionEventPayload, SessionEventStorageNamespace, SessionEventStorageSubjects, SessionEventType, SessionEventTypeMap, SessionEventTypeSchema, SessionExtensionContext, SessionExtensionContextFactory, SessionImportStatusChanged, SessionImportStatusChangedSchema, SessionMessage, SessionMessageBlock, SessionMessageBlockSchema, SessionMessageOrigin, SessionMessageOriginSchema, SessionMessageRole, SessionMessageRoleSchema, SessionMessageSchema, SessionNamespace, SessionPreviewData, SessionPreviewDataSchema, SessionSchemas, SendMessageRequest as SessionSendMessageRequest, SendMessageResponse as SessionSendMessageResponse, SessionSnapshot, SessionSnapshotSchema, SessionStorageNamespace, SessionStorageSetRequestSchema, SessionStorageSetSessionSchema, SessionStorageSubjects, SessionStorageUpdateSchema, SessionSubjects, SessionUpdatedEvent, SessionUpdatedEventSchema, SessionUsagePayload, SessionUsageResponse, SessionWithPreview, SessionWithPreviewSchema, SnapshotExportOptions, SnapshotExportOptionsSchema, SnapshotImportConflictErrorData, SnapshotPreviewData, Turn, TurnInitiator, TurnInitiatorSchema, TurnSchema, TurnStatus, TurnStatusSchema, TurnUsage, TurnUsageSchema, UI_WARNINGS_CATEGORY, UsageMetrics, UsageMetricsSchema, compareMessageCursorAsc, compareMessageCursorDesc, getBranchBehavior, isConnectorSwapCancelledError, isInViewBranch, isKnownSessionEvent, isMergeable, isNavigatingBranch, messageCursorKey, messageToCursor, safeValidateSnapshot, validateSnapshot };
@@ -1,2 +1,2 @@
1
- import { $ as JsonValueSchema, A as FieldOption, B as ResponseSchemaDescriptorSchema, C as SystemPromptSchema, D as EntityUIConfig, E as CustomFieldDefinition, F as FieldWidget, G as StructuredOutputValidationErrorSchema, H as ResponseSchemaNameSchema, I as FormFieldProps, J as StructuredOutputValidationStatusSchema, K as StructuredOutputValidationSchema, L as PluginWidgetRegistry, M as FieldOverride, N as FieldOverrideSchema, O as EntityUIConfigSchema, P as FieldType, Q as JsonValue, R as StandardFieldDefinition, S as SystemPrompt, T as BuiltinWidget, U as StructuredOutputValidation, V as ResponseSchemaName, W as StructuredOutputValidationError, X as JsonObjectSchema, Y as JsonObjectContractSchema, Z as JsonSchemaRecordSchema, _ as NormalizedMessageInputSchema, a as ErrorCategorySchema, b as SendMessageResultInnerResultSchema, c as MessageBlockSchema, d as MessageInput, f as MessageInputSchema, g as NormalizedMessageInput, h as MessageSchema, i as ErrorCategory, j as FieldOptionSchema, k as FieldDefinition, l as MessageDeliveryMode, m as MessageOutcomeSchema, n as ContentSourceSchema, o as Message, p as MessageOutcome, q as StructuredOutputValidationStatus, r as ERROR_CATEGORIES, s as MessageBlock, t as ContentSource, u as MessageDeliveryModeSchema, v as SendMessageResult, w as BaseFieldDefinition, x as SendMessageResultSchema, y as SendMessageResultInnerResult, z as ResponseSchemaDescriptor } from "../../index-fVgKVvta.mjs";
1
+ import { $ as JsonValueSchema, A as FieldOption, B as ResponseSchemaDescriptorSchema, C as SystemPromptSchema, D as EntityUIConfig, E as CustomFieldDefinition, F as FieldWidget, G as StructuredOutputValidationErrorSchema, H as ResponseSchemaNameSchema, I as FormFieldProps, J as StructuredOutputValidationStatusSchema, K as StructuredOutputValidationSchema, L as PluginWidgetRegistry, M as FieldOverride, N as FieldOverrideSchema, O as EntityUIConfigSchema, P as FieldType, Q as JsonValue, R as StandardFieldDefinition, S as SystemPrompt, T as BuiltinWidget, U as StructuredOutputValidation, V as ResponseSchemaName, W as StructuredOutputValidationError, X as JsonObjectSchema, Y as JsonObjectContractSchema, Z as JsonSchemaRecordSchema, _ as NormalizedMessageInputSchema, a as ErrorCategorySchema, b as SendMessageResultInnerResultSchema, c as MessageBlockSchema, d as MessageInput, f as MessageInputSchema, g as NormalizedMessageInput, h as MessageSchema, i as ErrorCategory, j as FieldOptionSchema, k as FieldDefinition, l as MessageDeliveryMode, m as MessageOutcomeSchema, n as ContentSourceSchema, o as Message, p as MessageOutcome, q as StructuredOutputValidationStatus, r as ERROR_CATEGORIES, s as MessageBlock, t as ContentSource, u as MessageDeliveryModeSchema, v as SendMessageResult, w as BaseFieldDefinition, x as SendMessageResultSchema, y as SendMessageResultInnerResult, z as ResponseSchemaDescriptor } from "../../index-C_jIVT40.mjs";
2
2
  export { BaseFieldDefinition, BuiltinWidget, ContentSource, ContentSourceSchema, CustomFieldDefinition, ERROR_CATEGORIES, EntityUIConfig, EntityUIConfigSchema, ErrorCategory, ErrorCategorySchema, FieldDefinition, FieldOption, FieldOptionSchema, FieldOverride, FieldOverrideSchema, FieldType, FieldWidget, FormFieldProps, JsonObjectContractSchema, JsonObjectSchema, JsonSchemaRecordSchema, JsonValue, JsonValueSchema, Message, MessageBlock, MessageBlockSchema, MessageDeliveryMode, MessageDeliveryModeSchema, MessageInput, MessageInputSchema, MessageOutcome, MessageOutcomeSchema, MessageSchema, NormalizedMessageInput, NormalizedMessageInputSchema, PluginWidgetRegistry, ResponseSchemaDescriptor, ResponseSchemaDescriptorSchema, ResponseSchemaName, ResponseSchemaNameSchema, SendMessageResult, SendMessageResultInnerResult, SendMessageResultInnerResultSchema, SendMessageResultSchema, StandardFieldDefinition, StructuredOutputValidation, StructuredOutputValidationError, StructuredOutputValidationErrorSchema, StructuredOutputValidationSchema, StructuredOutputValidationStatus, StructuredOutputValidationStatusSchema, SystemPrompt, SystemPromptSchema };
@@ -1,2 +1,2 @@
1
- import { A as SkillRecordInputSchema, B as SkillSourceSchema, C as SkillGetActiveSkillsResponse, D as SkillQuerySchema, E as SkillQuery, F as SkillRuntimePolicySchema, H as SkillTurnEntrySchema, I as SkillSchemas, L as SkillScope, M as SkillReinjection, N as SkillReinjectionSchema, O as SkillRecord, P as SkillRuntimePolicy, R as SkillScopeSchema, S as SkillGetActiveSkillsRequest, T as SkillGetCatalogResponse, U as SkillNamespace, V as SkillTurnEntry, W as SkillSubjects, _ as SkillCatalogTurnEntrySchema, a as ActivatedSkillMetadataSchema, b as SkillFrontmatter, c as SkillActivateRequest, d as SkillActivationModeSchema, f as SkillActivationTrigger, g as SkillCatalogTurnEntry, h as SkillCatalogEntrySchema, i as ActivatedSkillMetadata, j as SkillRecordSchema, k as SkillRecordInput, l as SkillActivateResponse, m as SkillCatalogEntry, n as SkillStorageSubjects, o as ActiveSkillState, p as SkillActivationTriggerSchema, r as validateSkillScope, s as ActiveSkillStateSchema, t as SkillStorageNamespace, u as SkillActivationMode, v as SkillDeactivationReason, w as SkillGetCatalogRequest, x as SkillFrontmatterSchema, y as SkillDeactivationReasonSchema, z as SkillSource } from "../../index-BYkOUd0x.mjs";
1
+ import { A as SkillRecordInputSchema, B as SkillSourceSchema, C as SkillGetActiveSkillsResponse, D as SkillQuerySchema, E as SkillQuery, F as SkillRuntimePolicySchema, H as SkillTurnEntrySchema, I as SkillSchemas, L as SkillScope, M as SkillReinjection, N as SkillReinjectionSchema, O as SkillRecord, P as SkillRuntimePolicy, R as SkillScopeSchema, S as SkillGetActiveSkillsRequest, T as SkillGetCatalogResponse, U as SkillNamespace, V as SkillTurnEntry, W as SkillSubjects, _ as SkillCatalogTurnEntrySchema, a as ActivatedSkillMetadataSchema, b as SkillFrontmatter, c as SkillActivateRequest, d as SkillActivationModeSchema, f as SkillActivationTrigger, g as SkillCatalogTurnEntry, h as SkillCatalogEntrySchema, i as ActivatedSkillMetadata, j as SkillRecordSchema, k as SkillRecordInput, l as SkillActivateResponse, m as SkillCatalogEntry, n as SkillStorageSubjects, o as ActiveSkillState, p as SkillActivationTriggerSchema, r as validateSkillScope, s as ActiveSkillStateSchema, t as SkillStorageNamespace, u as SkillActivationMode, v as SkillDeactivationReason, w as SkillGetCatalogRequest, x as SkillFrontmatterSchema, y as SkillDeactivationReasonSchema, z as SkillSource } from "../../index-SFkbbDxs.mjs";
2
2
  export { ActivatedSkillMetadata, ActivatedSkillMetadataSchema, ActiveSkillState, ActiveSkillStateSchema, SkillActivateRequest, SkillActivateResponse, SkillActivationMode, SkillActivationModeSchema, SkillActivationTrigger, SkillActivationTriggerSchema, SkillCatalogEntry, SkillCatalogEntrySchema, SkillCatalogTurnEntry, SkillCatalogTurnEntrySchema, SkillDeactivationReason, SkillDeactivationReasonSchema, SkillFrontmatter, SkillFrontmatterSchema, SkillGetActiveSkillsRequest, SkillGetActiveSkillsResponse, SkillGetCatalogRequest, SkillGetCatalogResponse, SkillNamespace, SkillQuery, SkillQuerySchema, SkillRecord, SkillRecordInput, SkillRecordInputSchema, SkillRecordSchema, SkillReinjection, SkillReinjectionSchema, SkillRuntimePolicy, SkillRuntimePolicySchema, SkillSchemas, SkillScope, SkillScopeSchema, SkillSource, SkillSourceSchema, SkillStorageNamespace, SkillStorageSubjects, SkillSubjects, SkillTurnEntry, SkillTurnEntrySchema, validateSkillScope };
@@ -1,2 +1,2 @@
1
- import { a as SubjectTelemetryFactSchema, c as SubjectTelemetryNamespace, i as SubjectTelemetryFact, l as SubjectTelemetrySubjects, n as SubjectTelemetryAttributeValueSchema, o as SubjectTelemetryMessageTypeSchema, r as SubjectTelemetryDirectionSchema, s as SubjectTelemetrySchemas, t as SubjectTelemetryAttributeValue } from "../../index-CGJjA-hR2.mjs";
1
+ import { a as SubjectTelemetryFactSchema, c as SubjectTelemetryNamespace, i as SubjectTelemetryFact, l as SubjectTelemetrySubjects, n as SubjectTelemetryAttributeValueSchema, o as SubjectTelemetryMessageTypeSchema, r as SubjectTelemetryDirectionSchema, s as SubjectTelemetrySchemas, t as SubjectTelemetryAttributeValue } from "../../index-BDlpFEsp2.mjs";
2
2
  export { SubjectTelemetryAttributeValue, SubjectTelemetryAttributeValueSchema, SubjectTelemetryDirectionSchema, SubjectTelemetryFact, SubjectTelemetryFactSchema, SubjectTelemetryMessageTypeSchema, SubjectTelemetryNamespace, SubjectTelemetrySchemas, SubjectTelemetrySubjects };
@@ -1,2 +1,2 @@
1
- import { i as TimeoutConfigSchema, n as TimeoutCategory, r as TimeoutConfig, t as RequiredTimeoutConfig } from "../../index-Bsp0O_sI.mjs";
1
+ import { i as TimeoutConfigSchema, n as TimeoutCategory, r as TimeoutConfig, t as RequiredTimeoutConfig } from "../../index-ChG8ZUNP.mjs";
2
2
  export { RequiredTimeoutConfig, TimeoutCategory, TimeoutConfig, TimeoutConfigSchema };
@@ -1,2 +1,2 @@
1
- import { a as VariantGetInfoResponse, c as VariantSchemas, d as VariantUpgradeStatusSchema, i as MakaioVariantSchema, l as VariantUpgradeProgressEvent, n as VariantSubjects, o as VariantRequestUpgradeRequest, r as MakaioVariant, s as VariantRequestUpgradeResponse, t as VariantNamespace, u as VariantUpgradeStatus } from "../../index-BAhJKQLX.mjs";
1
+ import { a as VariantGetInfoResponse, c as VariantSchemas, d as VariantUpgradeStatusSchema, i as MakaioVariantSchema, l as VariantUpgradeProgressEvent, n as VariantSubjects, o as VariantRequestUpgradeRequest, r as MakaioVariant, s as VariantRequestUpgradeResponse, t as VariantNamespace, u as VariantUpgradeStatus } from "../../index-uQl_1wQO.mjs";
2
2
  export { MakaioVariant, MakaioVariantSchema, VariantGetInfoResponse, VariantNamespace, VariantRequestUpgradeRequest, VariantRequestUpgradeResponse, VariantSchemas, VariantSubjects, VariantUpgradeProgressEvent, VariantUpgradeStatus, VariantUpgradeStatusSchema };
@@ -1 +1 @@
1
- import{z as e}from"zod";import{createStorageNamespaceDefinition as t}from"@makaio/framework/storage";const n=new WeakMap,r=new WeakMap,i=new WeakMap,a=Symbol(`anyProducer`),o=Promise.resolve(),s=Symbol(`listenerAdded`),c=Symbol(`listenerRemoved`);let l=!1,u=!1;const d=e=>typeof e==`string`||typeof e==`symbol`||typeof e==`number`;function f(e){if(!d(e))throw TypeError("`eventName` must be a string, symbol, or number")}function p(e){if(typeof e!=`function`)throw TypeError(`listener must be a function`)}function m(e,t){let n=r.get(e);if(n.has(t))return n.get(t)}function h(e,t){let n=d(t)?t:a,r=i.get(e);if(r.has(n))return r.get(n)}function g(e,t,n){let r=i.get(e);if(r.has(t))for(let e of r.get(t))e.enqueue(n);if(r.has(a)){let e=Promise.all([t,n]);for(let t of r.get(a))t.enqueue(e)}}function _(e,t){t=Array.isArray(t)?t:[t];let n=!1,r=()=>{},a=[],o={enqueue(e){a.push(e),r()},finish(){n=!0,r()}};for(let n of t){let t=h(e,n);t||(t=new Set,i.get(e).set(n,t)),t.add(o)}return{async next(){return a?a.length===0?n?(a=void 0,this.next()):(await new Promise(e=>{r=e}),this.next()):{done:!1,value:await a.shift()}:{done:!0}},async return(n){a=void 0;for(let n of t){let t=h(e,n);t&&(t.delete(o),t.size===0&&i.get(e).delete(n))}return r(),arguments.length>0?{done:!0,value:await n}:{done:!0}},[Symbol.asyncIterator](){return this}}}function v(e){if(e===void 0)return S;if(!Array.isArray(e))throw TypeError("`methodNames` must be an array of strings");for(let t of e)if(!S.includes(t))throw typeof t==`string`?Error(`${t} is not Emittery method`):TypeError("`methodNames` element must be a string");return e}const y=e=>e===s||e===c;function b(e,t,n){if(y(t))try{l=!0,e.emit(t,n)}finally{l=!1}}var x=class e{static mixin(t,n){return n=v(n),r=>{if(typeof r!=`function`)throw TypeError("`target` must be function");for(let e of n)if(r.prototype[e]!==void 0)throw Error(`The property \`${e}\` already exists on \`target\``);function i(){return Object.defineProperty(this,t,{enumerable:!1,value:new e}),this[t]}Object.defineProperty(r.prototype,t,{enumerable:!1,get:i});let a=e=>function(...n){return this[t][e](...n)};for(let e of n)Object.defineProperty(r.prototype,e,{enumerable:!1,value:a(e)});return r}}static get isDebugEnabled(){if(typeof globalThis.process?.env!=`object`)return u;let{env:e}=globalThis.process??{env:{}};return e.DEBUG===`emittery`||e.DEBUG===`*`||u}static set isDebugEnabled(e){u=e}constructor(e={}){n.set(this,new Set),r.set(this,new Map),i.set(this,new Map),i.get(this).set(a,new Set),this.debug=e.debug??{},this.debug.enabled===void 0&&(this.debug.enabled=!1),this.debug.logger||(this.debug.logger=(e,t,n,r)=>{try{r=JSON.stringify(r)}catch{r=`Object with the following keys failed to stringify: ${Object.keys(r).join(`,`)}`}(typeof n==`symbol`||typeof n==`number`)&&(n=n.toString());let i=new Date,a=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}.${i.getMilliseconds()}`;console.log(`[${a}][emittery:${e}][${t}] Event Name: ${n}\n\tdata: ${r}`)})}logIfDebugEnabled(t,n,r){(e.isDebugEnabled||this.debug.enabled)&&this.debug.logger(t,this.debug.name,n,r)}on(e,t,{signal:n}={}){p(t),e=Array.isArray(e)?e:[e];for(let n of e){f(n);let e=m(this,n);e||(e=new Set,r.get(this).set(n,e)),e.add(t),this.logIfDebugEnabled(`subscribe`,n,void 0),y(n)||b(this,s,{eventName:n,listener:t})}let i=()=>{this.off(e,t),n?.removeEventListener(`abort`,i)};return n?.addEventListener(`abort`,i,{once:!0}),n?.aborted&&i(),i}off(e,t){p(t),e=Array.isArray(e)?e:[e];for(let n of e){f(n);let e=m(this,n);e&&(e.delete(t),e.size===0&&r.get(this).delete(n)),this.logIfDebugEnabled(`unsubscribe`,n,void 0),y(n)||b(this,c,{eventName:n,listener:t})}}once(e,t){if(t!==void 0&&typeof t!=`function`)throw TypeError(`predicate must be a function`);let n,r=new Promise(r=>{n=this.on(e,e=>{t&&!t(e)||(n(),r(e))})});return r.off=n,r}events(e){e=Array.isArray(e)?e:[e];for(let t of e)f(t);return _(this,e)}async emit(e,t){if(f(e),y(e)&&!l)throw TypeError("`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`");this.logIfDebugEnabled(`emit`,e,t),g(this,e,t);let r=m(this,e)??new Set,i=n.get(this),a=[...r],s=y(e)?[]:[...i];await o,await Promise.all([...a.map(async e=>{if(r.has(e))return e(t)}),...s.map(async n=>{if(i.has(n))return n(e,t)})])}async emitSerial(e,t){if(f(e),y(e)&&!l)throw TypeError("`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`");this.logIfDebugEnabled(`emitSerial`,e,t);let r=m(this,e)??new Set,i=n.get(this),a=[...r],s=[...i];await o;for(let e of a)r.has(e)&&await e(t);for(let n of s)i.has(n)&&await n(e,t)}onAny(e,{signal:t}={}){p(e),this.logIfDebugEnabled(`subscribeAny`,void 0,void 0),n.get(this).add(e),b(this,s,{listener:e});let r=()=>{this.offAny(e),t?.removeEventListener(`abort`,r)};return t?.addEventListener(`abort`,r,{once:!0}),t?.aborted&&r(),r}anyEvent(){return _(this)}offAny(e){p(e),this.logIfDebugEnabled(`unsubscribeAny`,void 0,void 0),b(this,c,{listener:e}),n.get(this).delete(e)}clearListeners(e){e=Array.isArray(e)?e:[e];for(let t of e)if(this.logIfDebugEnabled(`clear`,t,void 0),d(t)){let e=m(this,t);e&&e.clear();let n=h(this,t);if(n){for(let e of n)e.finish();n.clear()}}else{n.get(this).clear();for(let[e,t]of r.get(this).entries())t.clear(),r.get(this).delete(e);for(let[e,t]of i.get(this).entries()){for(let e of t)e.finish();t.clear(),i.get(this).delete(e)}}}listenerCount(e){e=Array.isArray(e)?e:[e];let t=0;for(let a of e){if(d(a)){t+=n.get(this).size+(m(this,a)?.size??0)+(h(this,a)?.size??0)+(h(this)?.size??0);continue}a!==void 0&&f(a),t+=n.get(this).size;for(let e of r.get(this).values())t+=e.size;for(let e of i.get(this).values())t+=e.size}return t}bindMethods(e,t){if(typeof e!=`object`||!e)throw TypeError("`target` must be an object");t=v(t);for(let n of t){if(e[n]!==void 0)throw Error(`The property \`${n}\` already exists on \`target\``);Object.defineProperty(e,n,{enumerable:!1,value:this[n].bind(this)})}}};const S=Object.getOwnPropertyNames(x.prototype).filter(e=>e!==`constructor`);Object.defineProperty(x,`listenerAdded`,{value:s,writable:!1,enumerable:!0,configurable:!1}),Object.defineProperty(x,`listenerRemoved`,{value:c,writable:!1,enumerable:!0,configurable:!1});const C=e.custom(()=>!0),w=e.object({filePath:e.string(),bytesRead:e.number(),lastModified:e.string(),sessionContext:C.optional()}),T=t(`importCursor`,{schemas:{get:{request:e.object({filePath:e.string()}),response:e.object({cursor:w.nullable()})},set:{request:w,response:e.object({success:e.boolean()})},delete:{request:e.object({filePath:e.string()}),response:e.object({success:e.boolean()})}}}),E=T.subjects;export{x as i,T as n,E as r,w as t};
1
+ import{z as e}from"zod";import{createStorageNamespaceDefinition as t}from"@makaio/framework/storage";const n=new WeakMap,r=new WeakMap,i=new WeakMap,a=Symbol(`anyProducer`),o=Promise.resolve(),s=Symbol(`listenerAdded`),c=Symbol(`listenerRemoved`);let l=!1,u=!1;const d=e=>typeof e==`string`||typeof e==`symbol`||typeof e==`number`;function f(e){if(!d(e))throw TypeError("`eventName` must be a string, symbol, or number")}function p(e){if(typeof e!=`function`)throw TypeError(`listener must be a function`)}function m(e,t){let n=r.get(e);if(n.has(t))return n.get(t)}function h(e,t){let n=d(t)?t:a,r=i.get(e);if(r.has(n))return r.get(n)}function g(e,t,n){let r=i.get(e);if(r.has(t))for(let e of r.get(t))e.enqueue(n);if(r.has(a)){let e=Promise.all([t,n]);for(let t of r.get(a))t.enqueue(e)}}function _(e,t){t=Array.isArray(t)?t:[t];let n=!1,r=()=>{},a=[],o={enqueue(e){a.push(e),r()},finish(){n=!0,r()}};for(let n of t){let t=h(e,n);t||(t=new Set,i.get(e).set(n,t)),t.add(o)}return{async next(){return a?a.length===0?n?(a=void 0,this.next()):(await new Promise(e=>{r=e}),this.next()):{done:!1,value:await a.shift()}:{done:!0}},async return(n){a=void 0;for(let n of t){let t=h(e,n);t&&(t.delete(o),t.size===0&&i.get(e).delete(n))}return r(),arguments.length>0?{done:!0,value:await n}:{done:!0}},[Symbol.asyncIterator](){return this}}}function v(e){if(e===void 0)return S;if(!Array.isArray(e))throw TypeError("`methodNames` must be an array of strings");for(let t of e)if(!S.includes(t))throw typeof t==`string`?Error(`${t} is not Emittery method`):TypeError("`methodNames` element must be a string");return e}const y=e=>e===s||e===c;function b(e,t,n){if(y(t))try{l=!0,e.emit(t,n)}finally{l=!1}}var x=class e{static mixin(t,n){return n=v(n),r=>{if(typeof r!=`function`)throw TypeError("`target` must be function");for(let e of n)if(r.prototype[e]!==void 0)throw Error(`The property \`${e}\` already exists on \`target\``);function i(){return Object.defineProperty(this,t,{enumerable:!1,value:new e}),this[t]}Object.defineProperty(r.prototype,t,{enumerable:!1,get:i});let a=e=>function(...n){return this[t][e](...n)};for(let e of n)Object.defineProperty(r.prototype,e,{enumerable:!1,value:a(e)});return r}}static get isDebugEnabled(){if(typeof globalThis.process?.env!=`object`)return u;let{env:e}=globalThis.process??{env:{}};return e.DEBUG===`emittery`||e.DEBUG===`*`||u}static set isDebugEnabled(e){u=e}constructor(e={}){n.set(this,new Set),r.set(this,new Map),i.set(this,new Map),i.get(this).set(a,new Set),this.debug=e.debug??{},this.debug.enabled===void 0&&(this.debug.enabled=!1),this.debug.logger||(this.debug.logger=(e,t,n,r)=>{try{r=JSON.stringify(r)}catch{r=`Object with the following keys failed to stringify: ${Object.keys(r).join(`,`)}`}(typeof n==`symbol`||typeof n==`number`)&&(n=n.toString());let i=new Date,a=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}.${i.getMilliseconds()}`;console.log(`[${a}][emittery:${e}][${t}] Event Name: ${n}\n\tdata: ${r}`)})}logIfDebugEnabled(t,n,r){(e.isDebugEnabled||this.debug.enabled)&&this.debug.logger(t,this.debug.name,n,r)}on(e,t,{signal:n}={}){p(t),e=Array.isArray(e)?e:[e];for(let n of e){f(n);let e=m(this,n);e||(e=new Set,r.get(this).set(n,e)),e.add(t),this.logIfDebugEnabled(`subscribe`,n,void 0),y(n)||b(this,s,{eventName:n,listener:t})}let i=()=>{this.off(e,t),n?.removeEventListener(`abort`,i)};return n?.addEventListener(`abort`,i,{once:!0}),n?.aborted&&i(),i}off(e,t){p(t),e=Array.isArray(e)?e:[e];for(let n of e){f(n);let e=m(this,n);e&&(e.delete(t),e.size===0&&r.get(this).delete(n)),this.logIfDebugEnabled(`unsubscribe`,n,void 0),y(n)||b(this,c,{eventName:n,listener:t})}}once(e,t){if(t!==void 0&&typeof t!=`function`)throw TypeError(`predicate must be a function`);let n,r=new Promise(r=>{n=this.on(e,e=>{t&&!t(e)||(n(),r(e))})});return r.off=n,r}events(e){e=Array.isArray(e)?e:[e];for(let t of e)f(t);return _(this,e)}async emit(e,t){if(f(e),y(e)&&!l)throw TypeError("`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`");this.logIfDebugEnabled(`emit`,e,t),g(this,e,t);let r=m(this,e)??new Set,i=n.get(this),a=[...r],s=y(e)?[]:[...i];await o,await Promise.all([...a.map(async e=>{if(r.has(e))return e(t)}),...s.map(async n=>{if(i.has(n))return n(e,t)})])}async emitSerial(e,t){if(f(e),y(e)&&!l)throw TypeError("`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`");this.logIfDebugEnabled(`emitSerial`,e,t),g(this,e,t);let r=m(this,e)??new Set,i=n.get(this),a=[...r],s=y(e)?[]:[...i];await o;for(let e of a)r.has(e)&&await e(t);for(let n of s)i.has(n)&&await n(e,t)}onAny(e,{signal:t}={}){p(e),this.logIfDebugEnabled(`subscribeAny`,void 0,void 0),n.get(this).add(e),b(this,s,{listener:e});let r=()=>{this.offAny(e),t?.removeEventListener(`abort`,r)};return t?.addEventListener(`abort`,r,{once:!0}),t?.aborted&&r(),r}anyEvent(){return _(this)}offAny(e){p(e),this.logIfDebugEnabled(`unsubscribeAny`,void 0,void 0),b(this,c,{listener:e}),n.get(this).delete(e)}clearListeners(e){e=Array.isArray(e)?e:[e];for(let t of e)if(this.logIfDebugEnabled(`clear`,t,void 0),d(t)){let e=m(this,t);e&&e.clear();let n=h(this,t);if(n){for(let e of n)e.finish();n.clear()}}else{n.get(this).clear();for(let[e,t]of r.get(this).entries())t.clear(),r.get(this).delete(e);for(let[e,t]of i.get(this).entries()){for(let e of t)e.finish();t.clear(),i.get(this).delete(e)}}}listenerCount(e){e=Array.isArray(e)?e:[e];let t=0;for(let a of e){if(d(a)){t+=n.get(this).size+(m(this,a)?.size??0)+(h(this,a)?.size??0)+(h(this)?.size??0);continue}a!==void 0&&f(a),t+=n.get(this).size;for(let e of r.get(this).values())t+=e.size;for(let e of i.get(this).values())t+=e.size}return t}bindMethods(e,t){if(typeof e!=`object`||!e)throw TypeError("`target` must be an object");t=v(t);for(let n of t){if(e[n]!==void 0)throw Error(`The property \`${n}\` already exists on \`target\``);Object.defineProperty(e,n,{enumerable:!1,value:this[n].bind(this)})}}};const S=Object.getOwnPropertyNames(x.prototype).filter(e=>e!==`constructor`);Object.defineProperty(x,`listenerAdded`,{value:s,writable:!1,enumerable:!0,configurable:!1}),Object.defineProperty(x,`listenerRemoved`,{value:c,writable:!1,enumerable:!0,configurable:!1});const C=e.custom(()=>!0),w=e.object({filePath:e.string(),bytesRead:e.number(),lastModified:e.string(),sessionContext:C.optional()}),T=t(`importCursor`,{schemas:{get:{request:e.object({filePath:e.string()}),response:e.object({cursor:w.nullable()})},set:{request:w,response:e.object({success:e.boolean()})},delete:{request:e.object({filePath:e.string()}),response:e.object({success:e.boolean()})}}}),E=T.subjects;export{x as i,T as n,E as r,w as t};
@@ -1,4 +1,4 @@
1
- import { l as SurfaceBindingRegistration } from "./schemas-t1VR6_b_.mjs";
1
+ import { l as SurfaceBindingRegistration } from "./schemas-BiMxSTUx.mjs";
2
2
 
3
3
  //#region core/contracts/src/materialization/definition.d.ts
4
4
  /**
@@ -1 +1 @@
1
- import{t as e}from"./descriptor-to-package-CY8oc2gl.mjs";import{t}from"./jsonl-transport-BxNXizIm.mjs";import{z as n}from"zod";import{createBusNamespace as r}from"@makaio/framework/core";const i={idle:[`starting`],starting:[`running`,`crashed`,`stopping`],running:[`stopping`,`crashed`],stopping:[`stopped`],stopped:[`starting`],crashed:[`starting`,`stopped`]};function a(e,t){if(!i[e].includes(t))throw Error(`Invalid state transition: ${e} → ${t}`)}function o(e){return new Promise(t=>{if(e.exitCode!==null||e.signalCode!==null){t(!0);return}e.once(`exit`,()=>t(!0))})}function s(e){let{spawn:n,healthTimeoutMs:r=3e4,shutdownTimeoutMs:i=5e3,restartPolicy:s=`none`,onReady:c,onExit:l,onStateChange:u}=e,d=`idle`,f;function p(e){a(d,e),d=e,u?.(d)}function m(e){let t=f;if(f=void 0,t?.close(),d===`stopping`){p(`stopped`),l?.(e);return}if(d===`running`){if(e!==0){p(`crashed`),l?.(e),(s===`on-crash`||s===`always`)&&h().catch(e=>{console.error(`[ProcessLifecycle:${n.processName??n.command}] Restart failed:`,e instanceof Error?e.message:e)});return}p(`stopping`),p(`stopped`),l?.(e),s===`always`&&h().catch(e=>{console.error(`[ProcessLifecycle:${n.processName??n.command}] Restart failed:`,e instanceof Error?e.message:e)})}}async function h(){p(`starting`);let e=t(n);f=e;let i=e.process;await new Promise((t,a)=>{let o=!1;function s(e){o||(o=!0,clearTimeout(u),d(),i.off(`exit`,h),e())}let u=setTimeout(()=>{s(()=>{e.close(),f=void 0;try{p(`crashed`)}catch{}a(Error(`Process health timeout after ${r}ms: ${n.processName??n.command}`))})},r),d=e.onMessage(()=>{s(()=>{try{p(`running`)}catch(e){a(e);return}c?.(),i.once(`exit`,m),t()})});function h(e){s(()=>{f=void 0;try{p(`crashed`)}catch{}l?.(e),a(Error(`Process exited with code ${String(e)} before signaling readiness`))})}i.once(`exit`,h)})}async function g(){if(d===`stopped`||d===`idle`)return;if(d===`crashed`){f?.close(),f=void 0,p(`stopped`);return}if(d!==`stopping`&&p(`stopping`),!f){d===`stopping`&&p(`stopped`);return}let e=f,t=e.process;if(t.exitCode!==null){e.close(),f===e&&(f=void 0),d===`stopping`&&p(`stopped`);return}t.kill(`SIGTERM`);let n;await Promise.race([o(t).then(()=>(clearTimeout(n),!0)),new Promise(e=>{n=setTimeout(()=>e(!1),i)})])||(t.kill(`SIGKILL`),await o(t)),d===`stopping`&&p(`stopped`),e.close(),f===e&&(f=void 0)}return{get transport(){return f},get state(){return d},start:h,stop:g}}const c=n.object({dataDir:n.string().optional(),machineId:n.string().optional(),makaioHome:n.string().optional(),platform:n.string().optional(),username:n.string().optional()}),l={init:{request:n.object({config:n.unknown().optional(),context:c.optional()}),response:n.object({ready:n.boolean()})},ready:n.object({ready:n.boolean(),config:n.unknown().optional(),context:c.optional()}).passthrough(),destroy:{request:n.object({reason:n.string().optional()}),response:n.object({stopped:n.boolean()})},stopped:n.object({stopped:n.boolean()}).passthrough()};function u(e,t){return e.bus.registerNamespace(r(`extension.${t}`,l)).subjects}function d(e,t){let n;return()=>(n??=u(e,t),n)}function f(e){return{dataDir:e.dataDir,machineId:e.machineId,makaioHome:e.makaioHome,platform:e.platform,username:e.username}}var p=class{descriptor;ctx;extensionPath;getLifecycleSubjects;transport=null;unregister=null;constructor(e,t,n){this.descriptor=e,this.ctx=t,this.extensionPath=n,this.getLifecycleSubjects=d(t,e.name)}async init(){let{StdioServerTransport:e}=await import(`./src-Dvp41Cg2.mjs`),{transport:t}=this.descriptor,n=this.getLifecycleSubjects(),r=new e({name:this.descriptor.name,spawn:{command:t.command,args:t.args,cwd:this.extensionPath,env:t.env,processName:this.descriptor.name}}),i=null;try{let e=this.ctx.bus.registerTransport(r);i=e.unregister,await r.connect(),await r.ready,await e.ready,this.transport=r,this.unregister=i,await this.ctx.bus.request(n.init,{config:this.ctx.config??this.descriptor.config?.defaults,context:f(this.ctx)},{timeout:t.healthTimeoutMs})}catch(e){throw i?.(),await r.disconnect(),this.transport=null,this.unregister=null,e}}async destroy(){if(this.transport!==null){let e=this.getLifecycleSubjects();try{await this.ctx.bus.request(e.destroy,{reason:`runtime-shutdown`},{timeout:this.descriptor.transport.shutdownTimeoutMs})}catch(e){console.warn(`[extensions] ${this.descriptor.name}: detached destroy lifecycle request did not complete before disconnect:`,e instanceof Error?e.message:e)}}this.unregister?.(),this.unregister=null,await this.transport?.disconnect(),this.transport=null}},m=class{descriptor;ctx;extensionPath;getLifecycleSubjects;lifecycle=null;constructor(e,t,n){this.descriptor=e,this.ctx=t,this.extensionPath=n,this.getLifecycleSubjects=d(t,e.name)}async init(){let{transport:e}=this.descriptor;if(!this.ctx.busUrl)throw Error(`[extensions] ${this.descriptor.name}: bus-websocket transport requires NodeExtensionContext.busUrl`);let t=this.getLifecycleSubjects();this.lifecycle=s({spawn:{command:e.command,args:e.args,cwd:this.extensionPath,env:{...e.env,MAKAIO_BUS_TRANSPORT:`websocket`,MAKAIO_BUS_URL:this.ctx.busUrl,MAKAIO_EXTENSION_NAME:this.descriptor.name},processName:this.descriptor.name},healthTimeoutMs:e.healthTimeoutMs,shutdownTimeoutMs:e.shutdownTimeoutMs,restartPolicy:`restartPolicy`in e?e.restartPolicy:void 0});try{await this.lifecycle.start(),await this.ctx.bus.request(t.init,{config:this.ctx.config??this.descriptor.config?.defaults,context:f(this.ctx)},{timeout:e.healthTimeoutMs})}catch(e){throw await this.lifecycle.stop(),this.lifecycle=null,e}}async destroy(){if(this.lifecycle!==null){let e=this.getLifecycleSubjects();try{await this.ctx.bus.request(e.destroy,{reason:`runtime-shutdown`},{timeout:this.descriptor.transport.shutdownTimeoutMs})}catch(e){console.warn(`[extensions] ${this.descriptor.name}: detached destroy lifecycle request did not complete before process stop:`,e instanceof Error?e.message:e)}await this.lifecycle.stop(),this.lifecycle=null}}},h=class{descriptor;ctx;extensionPath;bridge=null;constructor(e,t,n){this.descriptor=e,this.ctx=t,this.extensionPath=n}async init(){let{startMcpClientBridge:e}=await import(`@makaio/framework/mcp-http-server`),{transport:t}=this.descriptor;this.bridge=await e({command:t.command,args:t.args,env:t.env,cwd:this.extensionPath,extensionName:this.descriptor.name,bus:this.ctx.bus})}async destroy(){this.bridge!==null&&(await this.bridge.close(),this.bridge=null)}};function g(t,n){return{...e(t),create(e){return t.transport.type===`bus-stdio`?new p(t,e,n):t.transport.type===`mcp-stdio`?new h(t,e,n):new m(t,e,n)}}}export{g as createDetachedExtensionPackage};
1
+ import{t as e}from"./descriptor-to-package-9nrAH_D5.mjs";import{t}from"./jsonl-transport-DBHQgcIm.mjs";import{z as n}from"zod";import{createBusNamespace as r}from"@makaio/framework/core";const i={idle:[`starting`],starting:[`running`,`crashed`,`stopping`],running:[`stopping`,`crashed`],stopping:[`stopped`],stopped:[`starting`],crashed:[`starting`,`stopped`]};function a(e,t){if(!i[e].includes(t))throw Error(`Invalid state transition: ${e} → ${t}`)}function o(e){return new Promise(t=>{if(e.exitCode!==null||e.signalCode!==null){t(!0);return}e.once(`exit`,()=>t(!0))})}function s(e){let{spawn:n,healthTimeoutMs:r=3e4,shutdownTimeoutMs:i=5e3,restartPolicy:s=`none`,onReady:c,onExit:l,onStateChange:u}=e,d=`idle`,f;function p(e){a(d,e),d=e,u?.(d)}function m(e){let t=f;if(f=void 0,t?.close(),d===`stopping`){p(`stopped`),l?.(e);return}if(d===`running`){if(e!==0){p(`crashed`),l?.(e),(s===`on-crash`||s===`always`)&&h().catch(e=>{console.error(`[ProcessLifecycle:${n.processName??n.command}] Restart failed:`,e instanceof Error?e.message:e)});return}p(`stopping`),p(`stopped`),l?.(e),s===`always`&&h().catch(e=>{console.error(`[ProcessLifecycle:${n.processName??n.command}] Restart failed:`,e instanceof Error?e.message:e)})}}async function h(){p(`starting`);let e=t(n);f=e;let i=e.process;await new Promise((t,a)=>{let o=!1;function s(e){o||(o=!0,clearTimeout(u),d(),i.off(`exit`,h),e())}let u=setTimeout(()=>{s(()=>{e.close(),f=void 0;try{p(`crashed`)}catch{}a(Error(`Process health timeout after ${r}ms: ${n.processName??n.command}`))})},r),d=e.onMessage(()=>{s(()=>{try{p(`running`)}catch(e){a(e);return}c?.(),i.once(`exit`,m),t()})});function h(e){s(()=>{f=void 0;try{p(`crashed`)}catch{}l?.(e),a(Error(`Process exited with code ${String(e)} before signaling readiness`))})}i.once(`exit`,h)})}async function g(){if(d===`stopped`||d===`idle`)return;if(d===`crashed`){f?.close(),f=void 0,p(`stopped`);return}if(d!==`stopping`&&p(`stopping`),!f){d===`stopping`&&p(`stopped`);return}let e=f,t=e.process;if(t.exitCode!==null){e.close(),f===e&&(f=void 0),d===`stopping`&&p(`stopped`);return}t.kill(`SIGTERM`);let n;await Promise.race([o(t).then(()=>(clearTimeout(n),!0)),new Promise(e=>{n=setTimeout(()=>e(!1),i)})])||(t.kill(`SIGKILL`),await o(t)),d===`stopping`&&p(`stopped`),e.close(),f===e&&(f=void 0)}return{get transport(){return f},get state(){return d},start:h,stop:g}}const c=n.object({dataDir:n.string().optional(),machineId:n.string().optional(),makaioHome:n.string().optional(),platform:n.string().optional(),username:n.string().optional()}),l={init:{request:n.object({config:n.unknown().optional(),context:c.optional()}),response:n.object({ready:n.boolean()})},ready:n.object({ready:n.boolean(),config:n.unknown().optional(),context:c.optional()}).passthrough(),destroy:{request:n.object({reason:n.string().optional()}),response:n.object({stopped:n.boolean()})},stopped:n.object({stopped:n.boolean()}).passthrough()};function u(e,t){return e.bus.registerNamespace(r(`extension.${t}`,l)).subjects}function d(e,t){let n;return()=>(n??=u(e,t),n)}function f(e){return{dataDir:e.dataDir,machineId:e.machineId,makaioHome:e.makaioHome,platform:e.platform,username:e.username}}var p=class{descriptor;ctx;extensionPath;getLifecycleSubjects;transport=null;unregister=null;constructor(e,t,n){this.descriptor=e,this.ctx=t,this.extensionPath=n,this.getLifecycleSubjects=d(t,e.name)}async init(){let{StdioServerTransport:e}=await import(`./src-DI5TcYUW.mjs`),{transport:t}=this.descriptor,n=this.getLifecycleSubjects(),r=new e({name:this.descriptor.name,spawn:{command:t.command,args:t.args,cwd:this.extensionPath,env:t.env,processName:this.descriptor.name}}),i=null;try{let e=this.ctx.bus.registerTransport(r);i=e.unregister,await r.connect(),await r.ready,await e.ready,this.transport=r,this.unregister=i,await this.ctx.bus.request(n.init,{config:this.ctx.config??this.descriptor.config?.defaults,context:f(this.ctx)},{timeout:t.healthTimeoutMs})}catch(e){throw i?.(),await r.disconnect(),this.transport=null,this.unregister=null,e}}async destroy(){if(this.transport!==null){let e=this.getLifecycleSubjects();try{await this.ctx.bus.request(e.destroy,{reason:`runtime-shutdown`},{timeout:this.descriptor.transport.shutdownTimeoutMs})}catch(e){console.warn(`[extensions] ${this.descriptor.name}: detached destroy lifecycle request did not complete before disconnect:`,e instanceof Error?e.message:e)}}this.unregister?.(),this.unregister=null,await this.transport?.disconnect(),this.transport=null}},m=class{descriptor;ctx;extensionPath;getLifecycleSubjects;lifecycle=null;constructor(e,t,n){this.descriptor=e,this.ctx=t,this.extensionPath=n,this.getLifecycleSubjects=d(t,e.name)}async init(){let{transport:e}=this.descriptor;if(!this.ctx.busUrl)throw Error(`[extensions] ${this.descriptor.name}: bus-websocket transport requires NodeExtensionContext.busUrl`);let t=this.getLifecycleSubjects();this.lifecycle=s({spawn:{command:e.command,args:e.args,cwd:this.extensionPath,env:{...e.env,MAKAIO_BUS_TRANSPORT:`websocket`,MAKAIO_BUS_URL:this.ctx.busUrl,MAKAIO_EXTENSION_NAME:this.descriptor.name},processName:this.descriptor.name},healthTimeoutMs:e.healthTimeoutMs,shutdownTimeoutMs:e.shutdownTimeoutMs,restartPolicy:`restartPolicy`in e?e.restartPolicy:void 0});try{await this.lifecycle.start(),await this.ctx.bus.request(t.init,{config:this.ctx.config??this.descriptor.config?.defaults,context:f(this.ctx)},{timeout:e.healthTimeoutMs})}catch(e){throw await this.lifecycle.stop(),this.lifecycle=null,e}}async destroy(){if(this.lifecycle!==null){let e=this.getLifecycleSubjects();try{await this.ctx.bus.request(e.destroy,{reason:`runtime-shutdown`},{timeout:this.descriptor.transport.shutdownTimeoutMs})}catch(e){console.warn(`[extensions] ${this.descriptor.name}: detached destroy lifecycle request did not complete before process stop:`,e instanceof Error?e.message:e)}await this.lifecycle.stop(),this.lifecycle=null}}},h=class{descriptor;ctx;extensionPath;bridge=null;constructor(e,t,n){this.descriptor=e,this.ctx=t,this.extensionPath=n}async init(){let{startMcpClientBridge:e}=await import(`@makaio/framework/mcp-http-server`),{transport:t}=this.descriptor;this.bridge=await e({command:t.command,args:t.args,env:t.env,cwd:this.extensionPath,extensionName:this.descriptor.name,bus:this.ctx.bus})}async destroy(){this.bridge!==null&&(await this.bridge.close(),this.bridge=null)}};function g(t,n){return{...e(t),create(e){return t.transport.type===`bus-stdio`?new p(t,e,n):t.transport.type===`mcp-stdio`?new h(t,e,n):new m(t,e,n)}}}export{g as createDetachedExtensionPackage};
@@ -0,0 +1 @@
1
+ const e=(e,r,i)=>{let a=e instanceof RegExp?t(e,i):e,o=r instanceof RegExp?t(r,i):r,s=a!==null&&o!=null&&n(a,o,i);return s&&{start:s[0],end:s[1],pre:i.slice(0,s[0]),body:i.slice(s[0]+a.length,s[1]),post:i.slice(s[1]+o.length)}},t=(e,t)=>{let n=t.match(e);return n?n[0]:null},n=(e,t,n)=>{let r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;){if(u===c)r.push(u),c=n.indexOf(e,u+1);else if(r.length===1){let e=r.pop();e!==void 0&&(s=[e,l])}else i=r.pop(),i!==void 0&&i<a&&(a=i,o=l),l=n.indexOf(t,u+1);u=c<l&&c>=0?c:l}r.length&&o!==void 0&&(s=[a,o])}return s},r=`\0SLASH`+Math.random()+`\0`,i=`\0OPEN`+Math.random()+`\0`,a=`\0CLOSE`+Math.random()+`\0`,o=`\0COMMA`+Math.random()+`\0`,s=`\0PERIOD`+Math.random()+`\0`,c=new RegExp(r,`g`),l=new RegExp(i,`g`),u=new RegExp(a,`g`),d=new RegExp(o,`g`),f=new RegExp(s,`g`),p=/\\\\/g,m=/\\{/g,h=/\\}/g,g=/\\,/g,ee=/\\\./g;function _(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function te(e){return e.replace(p,r).replace(m,i).replace(h,a).replace(g,o).replace(ee,s)}function ne(e){return e.replace(c,`\\`).replace(l,`{`).replace(u,`}`).replace(d,`,`).replace(f,`.`)}function v(t){if(!t)return[``];let n=[],r=e(`{`,`}`,t);if(!r)return t.split(`,`);let{pre:i,body:a,post:o}=r,s=i.split(`,`);s[s.length-1]+=`{`+a+`}`;let c=v(o);return o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c)),n.push.apply(n,s),n}function re(e,t={}){if(!e)return[];let{max:n=1e5}=t;return e.slice(0,2)===`{}`&&(e=`\\{\\}`+e.slice(2)),S(te(e),n,!0).map(ne)}function y(e){return`{`+e+`}`}function b(e){return/^-?0\d/.test(e)}function x(e,t){return e<=t}function ie(e,t){return e>=t}function S(t,n,r){let i=[],o=e(`{`,`}`,t);if(!o)return[t];let s=o.pre,c=o.post.length?S(o.post,n,!1):[``];if(/\$$/.test(o.pre))for(let e=0;e<c.length&&e<n;e++){let t=s+`{`+o.body+`}`+c[e];i.push(t)}else{let e=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),u=e||l,d=o.body.indexOf(`,`)>=0;if(!u&&!d)return o.post.match(/,(?!,).*\}/)?(t=o.pre+`{`+o.body+a+o.post,S(t,n,!0)):[t];let f;if(u)f=o.body.split(/\.\./);else if(f=v(o.body),f.length===1&&f[0]!==void 0&&(f=S(f[0],n,!1).map(y),f.length===1))return c.map(e=>o.pre+f[0]+e);let p;if(u&&f[0]!==void 0&&f[1]!==void 0){let e=_(f[0]),t=_(f[1]),r=Math.max(f[0].length,f[1].length),i=f.length===3&&f[2]!==void 0?Math.max(Math.abs(_(f[2])),1):1,a=x;t<e&&(i*=-1,a=ie);let o=f.some(b);p=[];for(let s=e;a(s,t)&&p.length<n;s+=i){let e;if(l)e=String.fromCharCode(s),e===`\\`&&(e=``);else if(e=String(s),o){let t=r-e.length;if(t>0){let n=Array(t+1).join(`0`);e=s<0?`-`+n+e.slice(1):n+e}}p.push(e)}}else{p=[];for(let e=0;e<f.length;e++)p.push.apply(p,S(f[e],n,!1))}for(let e=0;e<p.length;e++)for(let t=0;t<c.length&&i.length<n;t++){let n=s+p[e]+c[t];(!r||u||n)&&i.push(n)}}return i}const C=e=>{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>65536)throw TypeError(`pattern is too long`)},ae={"[:alnum:]":[`\\p{L}\\p{Nl}\\p{Nd}`,!0],"[:alpha:]":[`\\p{L}\\p{Nl}`,!0],"[:ascii:]":[`\\x00-\\x7f`,!1],"[:blank:]":[`\\p{Zs}\\t`,!0],"[:cntrl:]":[`\\p{Cc}`,!0],"[:digit:]":[`\\p{Nd}`,!0],"[:graph:]":[`\\p{Z}\\p{C}`,!0,!0],"[:lower:]":[`\\p{Ll}`,!0],"[:print:]":[`\\p{C}`,!0],"[:punct:]":[`\\p{P}`,!0],"[:space:]":[`\\p{Z}\\t\\r\\n\\v\\f`,!0],"[:upper:]":[`\\p{Lu}`,!0],"[:word:]":[`\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}`,!0],"[:xdigit:]":[`A-Fa-f0-9`,!1]},w=e=>e.replace(/[[\]\\-]/g,`\\$&`),oe=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),T=e=>e.join(``),E=(e,t)=>{let n=t;if(e.charAt(n)!==`[`)throw Error(`not in a brace expression`);let r=[],i=[],a=n+1,o=!1,s=!1,c=!1,l=!1,u=n,d=``;WHILE:for(;a<e.length;){let t=e.charAt(a);if((t===`!`||t===`^`)&&a===n+1){l=!0,a++;continue}if(t===`]`&&o&&!c){u=a+1;break}if(o=!0,t===`\\`&&!c){c=!0,a++;continue}if(t===`[`&&!c){for(let[t,[o,c,l]]of Object.entries(ae))if(e.startsWith(t,a)){if(d)return[`$.`,!1,e.length-n,!0];a+=t.length,l?i.push(o):r.push(o),s||=c;continue WHILE}}if(c=!1,d){t>d?r.push(w(d)+`-`+w(t)):t===d&&r.push(w(t)),d=``,a++;continue}if(e.startsWith(`-]`,a+1)){r.push(w(t+`-`)),a+=2;continue}if(e.startsWith(`-`,a+1)){d=t,a+=2;continue}r.push(w(t)),a++}if(u<a)return[``,!1,0,!1];if(!r.length&&!i.length)return[`$.`,!1,e.length-n,!0];if(i.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!l)return[oe(r[0].length===2?r[0].slice(-1):r[0]),!1,u-n,!1];let f=`[`+(l?`^`:``)+T(r)+`]`,p=`[`+(l?``:`^`)+T(i)+`]`;return[r.length&&i.length?`(`+f+`|`+p+`)`:r.length?f:p,s,u-n,!0]},D=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!0}={})=>n?t?e.replace(/\[([^/\\])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\])\]/g,`$1$2`).replace(/\\([^/])/g,`$1`):t?e.replace(/\[([^/\\{}])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,`$1$2`).replace(/\\([^/{}])/g,`$1`);var O;const k=new Set([`!`,`?`,`+`,`*`,`@`]),A=e=>k.has(e),j=e=>A(e.type),se=new Map([[`!`,[`@`]],[`?`,[`?`,`@`]],[`@`,[`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`]]]),ce=new Map([[`!`,[`?`]],[`@`,[`?`]],[`+`,[`?`,`*`]]]),le=new Map([[`!`,[`?`,`@`]],[`?`,[`?`,`@`]],[`@`,[`?`,`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`,`?`,`*`]]]),M=new Map([[`!`,new Map([[`!`,`@`]])],[`?`,new Map([[`*`,`*`],[`+`,`*`]])],[`@`,new Map([[`!`,`!`],[`?`,`?`],[`@`,`@`],[`*`,`*`],[`+`,`+`]])],[`+`,new Map([[`?`,`*`],[`*`,`*`]])]]),N=`(?!\\.)`,ue=new Set([`[`,`.`]),P=new Set([`..`,`.`]),F=new Set(`().*{}+?[]^$\\!`),I=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),L=`[^/]`,R=L+`*?`,z=L+`+?`;let B=0;var V=class{type;#e;#t;#n=!1;#r=[];#i;#a;#o;#s=!1;#c;#l;#u=!1;id=++B;get depth(){return(this.#i?.depth??-1)+1}[Symbol.for(`nodejs.util.inspect.custom`)](){return{"@@type":`AST`,id:this.id,type:this.type,root:this.#e.id,parent:this.#i?.id,depth:this.depth,partsLength:this.#r.length,parts:this.#r}}constructor(e,t,n={}){this.type=e,e&&(this.#t=!0),this.#i=t,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#o=this.#e===this?[]:this.#e.#o,e===`!`&&!this.#e.#s&&this.#o.push(this),this.#a=this.#i?this.#i.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!=`string`&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#l===void 0?this.type?this.#l=this.type+`(`+this.#r.map(e=>String(e)).join(`|`)+`)`:this.#l=this.#r.map(e=>String(e)).join(``):this.#l}#d(){if(this!==this.#e)throw Error(`should only call on root`);if(this.#s)return this;this.toString(),this.#s=!0;let e;for(;e=this.#o.pop();){if(e.type!==`!`)continue;let t=e,n=t.#i;for(;n;){for(let r=t.#a+1;!n.type&&r<n.#r.length;r++)for(let t of e.#r){if(typeof t==`string`)throw Error(`string part in extglob AST??`);t.copyIn(n.#r[r])}t=n,n=t.#i}}return this}push(...e){for(let t of e)if(t!==``){if(typeof t!=`string`&&!(t instanceof O&&t.#i===this))throw Error(`invalid part: `+t);this.#r.push(t)}}toJSON(){let e=this.type===null?this.#r.slice().map(e=>typeof e==`string`?e:e.toJSON()):[this.type,...this.#r.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#s&&this.#i?.type===`!`)&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#a===0)return!0;let e=this.#i;for(let t=0;t<this.#a;t++){let n=e.#r[t];if(!(n instanceof O&&n.type===`!`))return!1}return!0}isEnd(){if(this.#e===this||this.#i?.type===`!`)return!0;if(!this.#i?.isEnd())return!1;if(!this.type)return this.#i?.isEnd();let e=this.#i?this.#i.#r.length:0;return this.#a===e-1}copyIn(e){typeof e==`string`?this.push(e):this.push(e.clone(this))}clone(e){let t=new O(this.type,e);for(let e of this.#r)t.copyIn(e);return t}static#f(e,t,n,r,i){let a=r.maxExtglobRecursion??2,o=!1,s=!1,c=-1,l=!1;if(t.type===null){let u=n,d=``;for(;u<e.length;){let n=e.charAt(u++);if(o||n===`\\`){o=!o,d+=n;continue}if(s){u===c+1?(n===`^`||n===`!`)&&(l=!0):n===`]`&&!(u===c+2&&l)&&(s=!1),d+=n;continue}else if(n===`[`){s=!0,c=u,l=!1,d+=n;continue}if(!r.noext&&A(n)&&e.charAt(u)===`(`&&i<=a){t.push(d),d=``;let a=new O(n,t);u=O.#f(e,a,u,r,i+1),t.push(a);continue}d+=n}return t.push(d),u}let u=n+1,d=new O(null,t),f=[],p=``;for(;u<e.length;){let n=e.charAt(u++);if(o||n===`\\`){o=!o,p+=n;continue}if(s){u===c+1?(n===`^`||n===`!`)&&(l=!0):n===`]`&&!(u===c+2&&l)&&(s=!1),p+=n;continue}else if(n===`[`){s=!0,c=u,l=!1,p+=n;continue}if(!r.noext&&A(n)&&e.charAt(u)===`(`&&(i<=a||t&&t.#h(n))){let a=t&&t.#h(n)?0:1;d.push(p),p=``;let o=new O(n,d);d.push(o),u=O.#f(e,o,u,r,i+a);continue}if(n===`|`){d.push(p),p=``,f.push(d),d=new O(null,t);continue}if(n===`)`)return p===``&&t.#r.length===0&&(t.#u=!0),d.push(p),p=``,t.push(...f,d),u;p+=n}return t.type=null,t.#t=void 0,t.#r=[e.substring(n-1)],u}#p(e){return this.#m(e,ce)}#m(e,t=se){if(!e||typeof e!=`object`||e.type!==null||e.#r.length!==1||this.type===null)return!1;let n=e.#r[0];return!n||typeof n!=`object`||n.type===null?!1:this.#h(n.type,t)}#h(e,t=le){return!!t.get(this.type)?.includes(e)}#g(e,t){let n=e.#r[0],r=new O(null,n,this.options);r.#r.push(``),n.push(r),this.#_(e,t)}#_(e,t){let n=e.#r[0];this.#r.splice(t,1,...n.#r);for(let e of n.#r)typeof e==`object`&&(e.#i=this);this.#l=void 0}#v(e){return!!M.get(this.type)?.has(e)}#y(e){if(!e||typeof e!=`object`||e.type!==null||e.#r.length!==1||this.type===null||this.#r.length!==1)return!1;let t=e.#r[0];return!t||typeof t!=`object`||t.type===null?!1:this.#v(t.type)}#b(e){let t=M.get(this.type),n=e.#r[0],r=t?.get(n.type);if(!r)return!1;this.#r=n.#r;for(let e of this.#r)typeof e==`object`&&(e.#i=this);this.type=r,this.#l=void 0,this.#u=!1}static fromGlob(e,t={}){let n=new O(null,void 0,t);return O.#f(e,n,0,t,0),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[t,n,r,i]=this.toRegExpSource();if(!(r||this.#t||this.#c.nocase&&!this.#c.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let a=(this.#c.nocase?`i`:``)+(i?`u`:``);return Object.assign(RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return this.#c}toRegExpSource(e){let t=e??!!this.#c.dot;if(this.#e===this&&(this.#x(),this.#d()),!j(this)){let n=this.isStart()&&this.isEnd()&&!this.#r.some(e=>typeof e!=`string`),r=this.#r.map(t=>{let[r,i,a,o]=typeof t==`string`?O.#C(t,this.#t,n):t.toRegExpSource(e);return this.#t=this.#t||a,this.#n=this.#n||o,r}).join(``),i=``;if(this.isStart()&&typeof this.#r[0]==`string`&&!(this.#r.length===1&&P.has(this.#r[0]))){let n=ue,a=t&&n.has(r.charAt(0))||r.startsWith(`\\.`)&&n.has(r.charAt(2))||r.startsWith(`\\.\\.`)&&n.has(r.charAt(4)),o=!t&&!e&&n.has(r.charAt(0));i=a?`(?!(?:^|/)\\.\\.?(?:$|/))`:o?N:``}let a=``;return this.isEnd()&&this.#e.#s&&this.#i?.type===`!`&&(a=`(?:$|\\/)`),[i+r+a,D(r),this.#t=!!this.#t,this.#n]}let n=this.type===`*`||this.type===`+`,r=this.type===`!`?`(?:(?!(?:`:`(?:`,i=this.#S(t);if(this.isStart()&&this.isEnd()&&!i&&this.type!==`!`){let e=this.toString(),t=this;return t.#r=[e],t.type=null,t.#t=void 0,[e,D(this.toString()),!1,!1]}let a=!n||e||t?``:this.#S(!0);a===i&&(a=``),a&&(i=`(?:${i})(?:${a})*?`);let o=``;if(this.type===`!`&&this.#u)o=(this.isStart()&&!t?N:``)+z;else{let n=this.type===`!`?`))`+(this.isStart()&&!t&&!e?N:``)+R+`)`:this.type===`@`?`)`:this.type===`?`?`)?`:this.type===`+`&&a?`)`:this.type===`*`&&a?`)?`:`)${this.type}`;o=r+i+n}return[o,D(i),this.#t=!!this.#t,this.#n]}#x(){if(j(this)){let e=0,t=!1;do{t=!0;for(let e=0;e<this.#r.length;e++){let n=this.#r[e];typeof n==`object`&&(n.#x(),this.#m(n)?(t=!1,this.#_(n,e)):this.#p(n)?(t=!1,this.#g(n,e)):this.#y(n)&&(t=!1,this.#b(n)))}}while(!t&&++e<10)}else for(let e of this.#r)typeof e==`object`&&e.#x();this.#l=void 0}#S(e){return this.#r.map(t=>{if(typeof t==`string`)throw Error(`string type in extglob ast??`);let[n,r,i,a]=t.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join(`|`)}static#C(e,t,n=!1){let r=!1,i=``,a=!1,o=!1;for(let s=0;s<e.length;s++){let c=e.charAt(s);if(r){r=!1,i+=(F.has(c)?`\\`:``)+c;continue}if(c===`*`){if(o)continue;o=!0,i+=n&&/^[*]+$/.test(e)?z:R,t=!0;continue}else o=!1;if(c===`\\`){s===e.length-1?i+=`\\\\`:r=!0;continue}if(c===`[`){let[n,r,o,c]=E(e,s);if(o){i+=n,a||=r,s+=o-1,t||=c;continue}}if(c===`?`){i+=L,t=!0;continue}i+=I(c)}return[i,D(e),!!t,a]}};O=V;const H=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!1}={})=>n?t?e.replace(/[?*()[\]{}]/g,`[$&]`):e.replace(/[?*()[\]\\{}]/g,`\\$&`):t?e.replace(/[?*()[\]]/g,`[$&]`):e.replace(/[?*()[\]\\]/g,`\\$&`),U=(e,t,n={})=>(C(t),!n.nocomment&&t.charAt(0)===`#`?!1:new $(t,n).match(e)),de=/^\*+([^+@!?*[(]*)$/,fe=e=>t=>!t.startsWith(`.`)&&t.endsWith(e),pe=e=>t=>t.endsWith(e),me=e=>(e=e.toLowerCase(),t=>!t.startsWith(`.`)&&t.toLowerCase().endsWith(e)),he=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),ge=/^\*+\.\*+$/,_e=e=>!e.startsWith(`.`)&&e.includes(`.`),ve=e=>e!==`.`&&e!==`..`&&e.includes(`.`),ye=/^\.\*+$/,be=e=>e!==`.`&&e!==`..`&&e.startsWith(`.`),xe=/^\*+$/,Se=e=>e.length!==0&&!e.startsWith(`.`),Ce=e=>e.length!==0&&e!==`.`&&e!==`..`,we=/^\?+([^+@!?*[(]*)?$/,Te=([e,t=``])=>{let n=G([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},Ee=([e,t=``])=>{let n=K([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},De=([e,t=``])=>{let n=K([e]);return t?e=>n(e)&&e.endsWith(t):n},W=([e,t=``])=>{let n=G([e]);return t?e=>n(e)&&e.endsWith(t):n},G=([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(`.`)},K=([e])=>{let t=e.length;return e=>e.length===t&&e!==`.`&&e!==`..`},q=typeof process==`object`&&process?typeof process.env==`object`&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:`posix`,J={win32:{sep:`\\`},posix:{sep:`/`}};U.sep=q===`win32`?J.win32.sep:J.posix.sep;const Y=Symbol(`globstar **`);U.GLOBSTAR=Y,U.filter=(e,t={})=>n=>U(n,e,t);const X=(e,t={})=>Object.assign({},e,t);U.defaults=e=>{if(!e||typeof e!=`object`||!Object.keys(e).length)return U;let t=U;return Object.assign((n,r,i={})=>t(n,r,X(e,i)),{Minimatch:class extends t.Minimatch{constructor(t,n={}){super(t,X(e,n))}static defaults(n){return t.defaults(X(e,n)).Minimatch}},AST:class extends t.AST{constructor(t,n,r={}){super(t,n,X(e,r))}static fromGlob(n,r={}){return t.AST.fromGlob(n,X(e,r))}},unescape:(n,r={})=>t.unescape(n,X(e,r)),escape:(n,r={})=>t.escape(n,X(e,r)),filter:(n,r={})=>t.filter(n,X(e,r)),defaults:n=>t.defaults(X(e,n)),makeRe:(n,r={})=>t.makeRe(n,X(e,r)),braceExpand:(n,r={})=>t.braceExpand(n,X(e,r)),match:(n,r,i={})=>t.match(n,r,X(e,i)),sep:t.sep,GLOBSTAR:Y})};const Z=(e,t={})=>(C(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:re(e,{max:t.braceExpandMax}));U.braceExpand=Z,U.makeRe=(e,t={})=>new $(e,t).makeRe(),U.match=(e,t,n={})=>{let r=new $(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e};const Q=/[?*]|[+@!]\(.*?\)|\[|\]/,Oe=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`);var $=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){C(e),t||={},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||q,this.isWindows=this.platform===`win32`,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,`/`)),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot===void 0?!!(this.isWindows&&this.nocase):t.windowsNoMagicRoot,this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!=`string`)return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=e[0]===``&&e[1]===``&&(e[2]===`?`||!Q.test(e[2]))&&!Q.test(e[3]),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>e.indexOf(!1)===-1),this.isWindows)for(let e=0;e<this.set.length;e++){let t=this.set[e];t[0]===``&&t[1]===``&&this.globParts[e][2]===`?`&&typeof t[3]==`string`&&/^[a-z]:$/i.test(t[3])&&(t[2]=`?`)}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let t of e)for(let e=0;e<t.length;e++)t[e]===`**`&&(t[e]=`*`);let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;(t=e.indexOf(`**`,t+1))!==-1;){let n=t;for(;e[n+1]===`**`;)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>(e=e.reduce((e,t)=>{let n=e[e.length-1];return t===`**`&&n===`**`?e:t===`..`&&n&&n!==`..`&&n!==`.`&&n!==`**`?(e.pop(),e):(e.push(t),e)},[]),e.length===0?[``]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let r=e[n];n===1&&r===``&&e[0]===``||(r===`.`||r===``)&&(t=!0,e.splice(n,1),n--)}e[0]===`.`&&e.length===2&&(e[1]===`.`||e[1]===``)&&(t=!0,e.pop())}let n=0;for(;(n=e.indexOf(`..`,n+1))!==-1;){let r=e[n-1];r&&r!==`.`&&r!==`..`&&r!==`**`&&!(this.isWindows&&/^[a-z]:$/i.test(r))&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return e.length===0?[``]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let n of e){let r=-1;for(;(r=n.indexOf(`**`,r+1))!==-1;){let i=r;for(;n[i+1]===`**`;)i++;i>r&&n.splice(r+1,i-r);let a=n[r+1],o=n[r+2],s=n[r+3];if(a!==`..`||!o||o===`.`||o===`..`||!s||s===`.`||s===`..`)continue;t=!0,n.splice(r,1);let c=n.slice(0);c[r]=`**`,e.push(c),r--}if(!this.preserveMultipleSlashes){for(let e=1;e<n.length-1;e++){let r=n[e];e===1&&r===``&&n[0]===``||(r===`.`||r===``)&&(t=!0,n.splice(e,1),e--)}n[0]===`.`&&n.length===2&&(n[1]===`.`||n[1]===``)&&(t=!0,n.pop())}let i=0;for(;(i=n.indexOf(`..`,i+1))!==-1;){let e=n[i-1];if(e&&e!==`.`&&e!==`..`&&e!==`**`){t=!0;let e=i===1&&n[i+1]===`**`?[`.`]:[];n.splice(i-1,2,...e),n.length===0&&n.push(``),i-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){let r=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);if(r){e[t]=[],e[n]=r;break}}return e.filter(e=>e.length)}partsMatch(e,t,n=!1){let r=0,i=0,a=[],o=``;for(;r<e.length&&i<t.length;)if(e[r]===t[i])a.push(o===`b`?t[i]:e[r]),r++,i++;else if(n&&e[r]===`**`&&t[i]===e[r+1])a.push(e[r]),r++;else if(n&&t[i]===`**`&&e[r]===t[i+1])a.push(t[i]),i++;else if(e[r]===`*`&&t[i]&&(this.options.dot||!t[i].startsWith(`.`))&&t[i]!==`**`){if(o===`b`)return!1;o=`a`,a.push(e[r]),r++,i++}else if(t[i]===`*`&&e[r]&&(this.options.dot||!e[r].startsWith(`.`))&&e[r]!==`**`){if(o===`a`)return!1;o=`b`,a.push(t[i]),r++,i++}else return!1;return e.length===t.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,n=0;for(let r=0;r<e.length&&e.charAt(r)===`!`;r++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,n=!1){let r=0,i=0;if(this.isWindows){let n=typeof e[0]==`string`&&/^[a-z]:$/i.test(e[0]),a=!n&&e[0]===``&&e[1]===``&&e[2]===`?`&&/^[a-z]:$/i.test(e[3]),o=typeof t[0]==`string`&&/^[a-z]:$/i.test(t[0]),s=!o&&t[0]===``&&t[1]===``&&t[2]===`?`&&typeof t[3]==`string`&&/^[a-z]:$/i.test(t[3]),c=a?3:n?0:void 0,l=s?3:o?0:void 0;if(typeof c==`number`&&typeof l==`number`){let[n,a]=[e[c],t[l]];n.toLowerCase()===a.toLowerCase()&&(t[l]=n,i=l,r=c)}}let{optimizationLevel:a=1}=this.options;return a>=2&&(e=this.levelTwoFileOptimize(e)),t.includes(Y)?this.#e(e,t,n,r,i):this.#n(e,t,n,r,i)}#e(e,t,n,r,i){let a=t.indexOf(Y,i),o=t.lastIndexOf(Y),[s,c,l]=n?[t.slice(i,a),t.slice(a+1),[]]:[t.slice(i,a),t.slice(a+1,o),t.slice(o+1)];if(s.length){let t=e.slice(r,r+s.length);if(!this.#n(t,s,n,0,0))return!1;r+=s.length,i+=s.length}let u=0;if(l.length){if(l.length+r>e.length)return!1;let t=e.length-l.length;if(this.#n(e,l,n,t,0))u=l.length;else{if(e[e.length-1]!==``||r+l.length===e.length||(t--,!this.#n(e,l,n,t,0)))return!1;u=l.length+1}}if(!c.length){let t=!!u;for(let n=r;n<e.length-u;n++){let r=String(e[n]);if(t=!0,r===`.`||r===`..`||!this.options.dot&&r.startsWith(`.`))return!1}return n||t}let d=[[[],0]],f=d[0],p=0,m=[0];for(let e of c)e===Y?(m.push(p),f=[[],0],d.push(f)):(f[0].push(e),p++);let h=d.length-1,g=e.length-u;for(let e of d)e[1]=g-(m[h--]+e[0].length);return!!this.#t(e,d,r,0,n,0,!!u)}#t(e,t,n,r,i,a,o){let s=t[r];if(!s){for(let t=n;t<e.length;t++){o=!0;let n=e[t];if(n===`.`||n===`..`||!this.options.dot&&n.startsWith(`.`))return!1}return o}let[c,l]=s;for(;n<=l;){if(this.#n(e.slice(0,n+c.length),c,i,n,0)&&a<this.maxGlobstarRecursion){let s=this.#t(e,t,n+c.length,r+1,i,a+1,o);if(s!==!1)return s}let s=e[n];if(s===`.`||s===`..`||!this.options.dot&&s.startsWith(`.`))return!1;n++}return i||null}#n(e,t,n,r,i){let a,o,s,c;for(a=r,o=i,c=e.length,s=t.length;a<c&&o<s;a++,o++){this.debug(`matchOne loop`);let n=t[o],r=e[a];if(this.debug(t,n,r),n===!1||n===Y)return!1;let i;if(typeof n==`string`?(i=r===n,this.debug(`string match`,n,r,i)):(i=n.test(r),this.debug(`pattern match`,n,r,i)),!i)return!1}if(a===c&&o===s)return!0;if(a===c)return n;if(o===s)return a===c-1&&e[a]===``;throw Error(`wtf?`)}braceExpand(){return Z(this.pattern,this.options)}parse(e){C(e);let t=this.options;if(e===`**`)return Y;if(e===``)return``;let n,r=null;(n=e.match(xe))?r=t.dot?Ce:Se:(n=e.match(de))?r=(t.nocase?t.dot?he:me:t.dot?pe:fe)(n[1]):(n=e.match(we))?r=(t.nocase?t.dot?Ee:Te:t.dot?De:W)(n):(n=e.match(ge))?r=t.dot?ve:_e:(n=e.match(ye))&&(r=be);let i=V.fromGlob(e,this.options).toMMPattern();return r&&typeof i==`object`&&Reflect.defineProperty(i,`test`,{value:r}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,n=t.noglobstar?`[^/]*?`:t.dot?`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`:`(?:(?!(?:\\/|^)\\.).)*?`,r=new Set(t.nocase?[`i`]:[]),i=e.map(e=>{let t=e.map(e=>{if(e instanceof RegExp)for(let t of e.flags.split(``))r.add(t);return typeof e==`string`?Oe(e):e===Y?Y:e._src});t.forEach((e,r)=>{let i=t[r+1],a=t[r-1];e!==Y||a===Y||(a===void 0?i!==void 0&&i!==Y?t[r+1]=`(?:\\/|`+n+`\\/)?`+i:t[r]=n:i===void 0?t[r-1]=a+`(?:\\/|\\/`+n+`)?`:i!==Y&&(t[r-1]=a+`(?:\\/|\\/`+n+`\\/)`+i,t[r+1]=Y))});let i=t.filter(e=>e!==Y);if(this.partial&&i.length>=1){let e=[];for(let t=1;t<=i.length;t++)e.push(i.slice(0,t).join(`/`));return`(?:`+e.join(`|`)+`)`}return i.join(`/`)}).join(`|`),[a,o]=e.length>1?[`(?:`,`)`]:[``,``];i=`^`+a+i+o+`$`,this.partial&&(i=`^(?:\\/|`+a+i.slice(1,-1)+o+`)$`),this.negate&&(i=`^(?!`+i+`).+$`);try{this.regexp=new RegExp(i,[...r].join(``))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split(`/`):this.isWindows&&/^\/\/[^/]+/.test(e)?[``,...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;let n=this.options;this.isWindows&&(e=e.split(`\\`).join(`/`));let r=this.slashSplit(e);this.debug(this.pattern,`split`,r);let i=this.set;this.debug(this.pattern,`set`,i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e of i){let i=r;if(n.matchBase&&e.length===1&&(i=[a]),this.matchOne(i,e,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return U.defaults(e).Minimatch}};U.AST=V,U.Minimatch=$,U.escape=H,U.unescape=D;export{U as n,$ as t};
@@ -80,10 +80,19 @@ declare function compile(expr: string): CompiledExpression;
80
80
  /**
81
81
  * Resolve \{\{ \}\} placeholders in a template string using jexl evaluation.
82
82
  *
83
- * Each placeholder is evaluated as a jexl expression against the context.
83
+ * Each placeholder is evaluated as a jexl expression against the context,
84
+ * using the shared engine instance so templates see the same transforms
85
+ * (e.g. `pluck`) as every other expression surface.
86
+ *
87
+ * Evaluation MUST go through the engine's `JexlExtended` instance and never a
88
+ * default import of `jexl-extended`: the package ships CJS, and under native
89
+ * Node ESM interop the default import is the `module.exports` namespace — not
90
+ * the instance — which made every placeholder silently resolve to `''`.
91
+ *
84
92
  * Unknown paths resolve to '' (empty string) — templates should degrade
85
93
  * gracefully rather than fail on missing context.
86
- * Errors in individual placeholders are caught and resolve to ''.
94
+ * Errors in individual placeholders resolve to '' but emit a warning so
95
+ * infrastructure failures are not silently masked as missing variables.
87
96
  * @param template - string with \{\{ expr \}\} placeholders
88
97
  * @param context - evaluation context
89
98
  * @returns resolved string