@makaio/framework 1.0.0-dev-1781023871421 → 1.0.0-dev-1781081952714

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 (420) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/{account-identity-DT5NOtFi.mjs → account-identity-CgzOqnVm.mjs} +1 -1
  3. package/dist/{adapter-C1eI-fGV.mjs → adapter-Dt2FDMs4.mjs} +1 -1
  4. package/dist/adapters/acp-client/index.d.mts +4 -4
  5. package/dist/adapters/config/index.d.mts +1 -1
  6. package/dist/adapters/config/index.mjs +1 -1
  7. package/dist/adapters/index.d.mts +24 -23
  8. package/dist/adapters/index.mjs +6 -13
  9. package/dist/adapters/node.d.mts +1 -1
  10. package/dist/adapters/node.mjs +1 -1
  11. package/dist/ajv-BJsabpMb.mjs +8 -0
  12. package/dist/await-trigger-DREnXCEJ.mjs +1 -0
  13. package/dist/bus/index.d.mts +19 -19
  14. package/dist/{client-bx74gm4R.mjs → client-BBJf1mVA.mjs} +1 -1
  15. package/dist/contracts/adapter/index.d.mts +2 -2
  16. package/dist/contracts/adapter/index.mjs +1 -1
  17. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  18. package/dist/contracts/artifact/index.d.mts +1 -1
  19. package/dist/contracts/client/index.d.mts +2 -2
  20. package/dist/contracts/client/index.mjs +1 -1
  21. package/dist/contracts/common/index.d.mts +1 -1
  22. package/dist/contracts/config/index.d.mts +1 -1
  23. package/dist/contracts/config/index.mjs +1 -1
  24. package/dist/contracts/extension/index.d.mts +3 -3
  25. package/dist/contracts/extension/index.mjs +1 -1
  26. package/dist/contracts/facet/index.d.mts +1 -1
  27. package/dist/contracts/facet/index.mjs +1 -1
  28. package/dist/contracts/harness/index.d.mts +1 -1
  29. package/dist/contracts/harness/index.mjs +1 -1
  30. package/dist/contracts/host/index.d.mts +1 -1
  31. package/dist/contracts/host/index.mjs +1 -1
  32. package/dist/contracts/index.d.mts +425 -425
  33. package/dist/contracts/index.mjs +1 -1
  34. package/dist/contracts/materialization/index.d.mts +3 -3
  35. package/dist/contracts/materialization/index.mjs +1 -1
  36. package/dist/contracts/model-registry/index.d.mts +1 -1
  37. package/dist/contracts/model-registry/index.mjs +1 -1
  38. package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
  39. package/dist/contracts/native-session-supervisor/index.mjs +1 -1
  40. package/dist/contracts/platform/index.d.mts +1 -1
  41. package/dist/contracts/platform/index.mjs +1 -1
  42. package/dist/contracts/provider/index.d.mts +2 -2
  43. package/dist/contracts/session/index.d.mts +2 -2
  44. package/dist/contracts/session/index.mjs +1 -1
  45. package/dist/contracts/shared/index.d.mts +1 -1
  46. package/dist/contracts/skill/index.d.mts +1 -1
  47. package/dist/contracts/skill/index.mjs +1 -1
  48. package/dist/contracts/telemetry/index.d.mts +1 -1
  49. package/dist/contracts/telemetry/index.mjs +1 -1
  50. package/dist/contracts/timeout/index.d.mts +1 -1
  51. package/dist/contracts/toast/index.mjs +1 -1
  52. package/dist/contracts/variant/index.d.mts +1 -1
  53. package/dist/contracts/variant/index.mjs +1 -1
  54. package/dist/create-static-mount-CFGo91CI.mjs +1 -0
  55. package/dist/cross-spawn-BL6EvJBv.mjs +1 -0
  56. package/dist/{cursor-storage-CtVJ3JzB.mjs → cursor-storage-C_WTAESV.mjs} +1 -1
  57. package/dist/{definition-CrgHIpTK.d.mts → definition-DqJOg6Lv.d.mts} +1 -1
  58. package/dist/descriptor-to-package-CY8oc2gl.mjs +1 -0
  59. package/dist/detached-extension-handle-CxEBQnSa.mjs +1 -0
  60. package/dist/drizzle/0000_charming_prowler.sql +443 -0
  61. package/dist/drizzle/0001_known_stephen_strange.sql +25 -0
  62. package/dist/drizzle/0002_woozy_gladiator.sql +1 -0
  63. package/dist/drizzle/0003_overjoyed_adam_destine.sql +1 -0
  64. package/dist/drizzle/0004_solid_goliath.sql +1 -0
  65. package/dist/drizzle/0005_round_calypso.sql +51 -0
  66. package/dist/drizzle/0006_free_tiger_shark.sql +4 -0
  67. package/dist/drizzle/0007_sparkling_terror.sql +2 -0
  68. package/dist/drizzle/0008_petite_deathstrike.sql +1 -0
  69. package/dist/drizzle/0009_lethal_malcolm_colcord.sql +6 -0
  70. package/dist/drizzle/0010_grey_chronomancer.sql +1 -0
  71. package/dist/drizzle/0011_solid_nomad.sql +1 -0
  72. package/dist/drizzle/meta/0000_snapshot.json +2813 -0
  73. package/dist/drizzle/meta/0001_snapshot.json +2820 -0
  74. package/dist/drizzle/meta/0002_snapshot.json +2827 -0
  75. package/dist/drizzle/meta/0003_snapshot.json +2834 -0
  76. package/dist/drizzle/meta/0004_snapshot.json +2842 -0
  77. package/dist/drizzle/meta/0005_snapshot.json +2849 -0
  78. package/dist/drizzle/meta/0006_snapshot.json +2865 -0
  79. package/dist/drizzle/meta/0007_snapshot.json +2879 -0
  80. package/dist/drizzle/meta/0008_snapshot.json +2886 -0
  81. package/dist/drizzle/meta/0009_snapshot.json +2901 -0
  82. package/dist/drizzle/meta/0010_snapshot.json +2908 -0
  83. package/dist/drizzle/meta/0011_snapshot.json +2915 -0
  84. package/dist/drizzle/meta/_journal.json +90 -0
  85. package/dist/esm-BdLRFEUy.mjs +3 -0
  86. package/dist/expression/index.d.mts +120 -0
  87. package/dist/expression/index.mjs +1431 -0
  88. package/dist/extension--5Q190u_.mjs +1 -0
  89. package/dist/{extension-CpIUgBKI.mjs → extension-DFIZ3FCJ.mjs} +1 -1
  90. package/dist/extension-discovery-CkV_VRdJ.d.mts +163 -0
  91. package/dist/fast-uri-BF2Xuiop.mjs +1 -0
  92. package/dist/{filesystem-service-B8rhBRgB.mjs → filesystem-service-DH9zlxyd.mjs} +1 -1
  93. package/dist/git/index.mjs +17 -17
  94. package/dist/globby-4SrlyIlj.mjs +1 -0
  95. package/dist/{handlers-CkTsQLra.mjs → handlers-Bev7-xjL.mjs} +1 -1
  96. package/dist/{index-472sOmsW.d.mts → index-BAhJKQLX.d.mts} +7 -7
  97. package/dist/{index-D9MwJ2Q8.d.mts → index-BCKRUuI2.d.mts} +2 -2
  98. package/dist/{index-mNec7V-9.d.mts → index-BYkOUd0x.d.mts} +12 -12
  99. package/dist/{index-8SZkg7s6.d.mts → index-Bibt5jAX.d.mts} +8 -8
  100. package/dist/{index-DBw-89vC2.d.mts → index-BmV60tMf.d.mts} +18 -18
  101. package/dist/{index-B_zQC98V.d.mts → index-BpniJgxu.d.mts} +4 -4
  102. package/dist/{index-soFznFCy2.d.mts → index-Bw_zL7Rs.d.mts} +1 -1
  103. package/dist/{index-CelJCBjk.d.mts → index-C3zfJg6s.d.mts} +13 -13
  104. package/dist/{index-Caig6TeF.d.mts → index-CNOTkyGw.d.mts} +379 -303
  105. package/dist/{index-Bh_Ne7LF.d.mts → index-CwKzQuIX.d.mts} +28 -28
  106. package/dist/{index-B3PK4FIn.d.mts → index-D6bw4qJp.d.mts} +112 -112
  107. package/dist/{index-Cm0dUkWL.d.mts → index-DETxgKS2.d.mts} +24 -24
  108. package/dist/{index-D90OmGmV.d.mts → index-Db0uJ_Cg2.d.mts} +3 -3
  109. package/dist/{index-Bvb2mMH6.d.mts → index-IekAD8Gp.d.mts} +44 -44
  110. package/dist/index-YDfOv0GT.d.mts +1133 -0
  111. package/dist/{index-L4GjJDKb.d.mts → index-fVgKVvta.d.mts} +3 -3
  112. package/dist/{index-DUaw0Dw8.d.mts → index-jlQ4IhR5.d.mts} +497 -497
  113. package/dist/jsonl-transport-BxNXizIm.mjs +3 -0
  114. package/dist/kernel/cli/index.d.mts +2 -95
  115. package/dist/kernel/cli/index.mjs +1 -1
  116. package/dist/kernel/cli/register.d.mts +2 -0
  117. package/dist/kernel/cli/register.mjs +1 -0
  118. package/dist/kernel/cli/schemas.mjs +1 -1
  119. package/dist/kernel/extension/index.d.mts +1 -1
  120. package/dist/kernel/extension/index.mjs +1 -1
  121. package/dist/kernel/index.d.mts +5 -5
  122. package/dist/kernel/index.mjs +1 -1
  123. package/dist/kernel/namespace/index.d.mts +1 -1
  124. package/dist/kernel/namespace/index.mjs +1 -1
  125. package/dist/kernel/observability/index.d.mts +1 -1
  126. package/dist/kernel/observability/index.mjs +1 -1
  127. package/dist/kernel/providers/index.d.mts +1 -1
  128. package/dist/kernel/providers/index.mjs +1 -1
  129. package/dist/kernel/window/index.d.mts +1 -1
  130. package/dist/kernel/window/index.mjs +1 -1
  131. package/dist/lib-B9kVK_1_.mjs +4 -0
  132. package/dist/lib-DPruLs5D.mjs +155 -0
  133. package/dist/lib-aRogYLqg.mjs +5 -0
  134. package/dist/load-extensions-C-TqCwzL.mjs +1 -0
  135. package/dist/load-extensions-D9nbDIiW.d.mts +117 -0
  136. package/dist/mcp-http-server/index.d.mts +561 -0
  137. package/dist/mcp-http-server/index.mjs +4 -0
  138. package/dist/{namespace-EQniz-Aw.d.mts → namespace-B60mn8J-2.d.mts} +4 -4
  139. package/dist/{namespace-CxhsoFUP.d.mts → namespace-BBVtD1gu.d.mts} +14 -14
  140. package/dist/namespace-BXqetkc3.mjs +1 -0
  141. package/dist/{namespace-Dr8K0MCp.d.mts → namespace-BlS_i9KT.d.mts} +17 -17
  142. package/dist/{namespace-5QQqbF-B.d.mts → namespace-ByyuIFpL.d.mts} +91 -91
  143. package/dist/{namespace-DLovh2Ws.d.mts → namespace-CHMszppN.d.mts} +6 -6
  144. package/dist/{namespace-BM7Djng9.d.mts → namespace-CqUGzG53.d.mts} +2 -2
  145. package/dist/{namespace-DD8Oiqo7.d.mts → namespace-D1Iw_d1P.d.mts} +20 -20
  146. package/dist/{namespace-DgqkaOVu.d.mts → namespace-DBKWNrk7.d.mts} +22 -22
  147. package/dist/{namespace-CaaNnKcR.d.mts → namespace-Ds6HkJEU.d.mts} +138 -138
  148. package/dist/namespace-DzVf1hVH.d.mts +96 -0
  149. package/dist/{namespace-TyiTsLFv.d.mts → namespace-aBIAWxY3.d.mts} +46 -46
  150. package/dist/{namespace-DuXK5AYN.mjs → namespace-h0HIuqx0.mjs} +1 -1
  151. package/dist/{native-session-supervisor-B1TnaPUF.mjs → native-session-supervisor-DeKpxhWO.mjs} +1 -1
  152. package/dist/node/bus-server/index.d.mts +1 -1
  153. package/dist/node/bus-server/index.mjs +1 -1
  154. package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
  155. package/dist/node/bus-server/server-lifecycle.mjs +1 -1
  156. package/dist/{orchestrator-shared-CIDiFJMD.mjs → orchestrator-shared-FnWrPS09.mjs} +1 -1
  157. package/dist/out-CvZYgczi.mjs +41 -0
  158. package/dist/package-1DS4bXg5.mjs +1 -0
  159. package/dist/package-BSnp1zOR.d.mts +372 -0
  160. package/dist/package.json +5 -0
  161. package/dist/primitive-runtime-DcYYWy_6.mjs +8 -0
  162. package/dist/{profile-6ynCD5k3.mjs → profile-D39-Zy_W.mjs} +1 -1
  163. package/dist/{provider-context-CK6B4X_8.mjs → provider-context-lfG0BpqX.mjs} +1 -1
  164. package/dist/quick-lru-B9nWXbXI.mjs +1 -0
  165. package/dist/rules/index.d.mts +27 -0
  166. package/dist/rules/index.mjs +1 -0
  167. package/dist/rules/schemas.d.mts +2 -0
  168. package/dist/rules/schemas.mjs +1 -0
  169. package/dist/runtime-bun/index.d.mts +385 -0
  170. package/dist/runtime-bun/index.mjs +1 -0
  171. package/dist/runtime-node/bus/runtime/namespace.d.mts +61 -0
  172. package/dist/runtime-node/bus/runtime/namespace.mjs +1 -0
  173. package/dist/runtime-node/bus/runtime/schemas.d.mts +54 -0
  174. package/dist/runtime-node/bus/runtime/schemas.mjs +1 -0
  175. package/dist/runtime-node/extension-discovery.d.mts +2 -0
  176. package/dist/runtime-node/extension-discovery.mjs +1 -0
  177. package/dist/runtime-node/extension-validation.d.mts +2 -0
  178. package/dist/runtime-node/extension-validation.mjs +1 -0
  179. package/dist/runtime-node/index.d.mts +745 -0
  180. package/dist/runtime-node/index.mjs +148 -0
  181. package/dist/runtime-node/makaio-config.d.mts +153 -0
  182. package/dist/runtime-node/makaio-config.mjs +1 -0
  183. package/dist/runtime-node/workflow-worker/index.d.mts +2 -0
  184. package/dist/runtime-node/workflow-worker/index.mjs +1 -0
  185. package/dist/runtime-node/workflow-worker/worker-entry.d.mts +39 -0
  186. package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -0
  187. package/dist/{schema-M5YTvSAG.d.mts → schema-CDL_pyyM.d.mts} +4 -4
  188. package/dist/{schema-e0wU_lcV.mjs → schema-DCJyzRHe.mjs} +1 -1
  189. package/dist/schema-introspection-CuRZPYEc.mjs +1 -0
  190. package/dist/{schemas-C46QfKzv.d.mts → schemas-B5ToLwIs.d.mts} +14 -14
  191. package/dist/schemas-C792eVAZ.d.mts +171 -0
  192. package/dist/{schemas-CaLhkkLn.mjs → schemas-CSUwpaNm.mjs} +1 -1
  193. package/dist/{schemas-DVF1A4DF.d.mts → schemas-Chyj6HuZ.d.mts} +9 -9
  194. package/dist/{schemas-DATniTHb.d.mts → schemas-DZUaRcYl.d.mts} +14 -14
  195. package/dist/{schemas-DiYVzG6e.d.mts → schemas-Exixg77V2.d.mts} +16 -16
  196. package/dist/{schemas-ClOOT1W6.d.mts → schemas-lqvZ6UpK.d.mts} +3 -3
  197. package/dist/{schemas-j7ivZ2HI.d.mts → schemas-on3_N5HP.d.mts} +138 -138
  198. package/dist/{schemas-wg_6PAdV.d.mts → schemas-t1VR6_b_.d.mts} +4 -4
  199. package/dist/semver-DhHJv6Dt.mjs +1 -0
  200. package/dist/services/adapter-runtime/index.d.mts +3 -3
  201. package/dist/services/adapter-runtime/index.mjs +1 -1
  202. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  203. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  204. package/dist/services/adapter-subsystem/index.d.mts +2 -2
  205. package/dist/services/adapter-subsystem/index.mjs +1 -1
  206. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  207. package/dist/services/adapter-subsystem/namespace.mjs +1 -1
  208. package/dist/services/agent-runtime/index.d.mts +2 -2
  209. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  210. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  211. package/dist/services/capability/index.d.mts +1 -1
  212. package/dist/services/capability/index.mjs +1 -1
  213. package/dist/services/codebase/index.d.mts +2 -2
  214. package/dist/services/codebase/namespace.d.mts +1 -1
  215. package/dist/services/codebase/schemas.d.mts +1 -1
  216. package/dist/services/compression/index.d.mts +2 -2
  217. package/dist/services/compression/namespace.d.mts +1 -1
  218. package/dist/services/compression/schemas.d.mts +1 -1
  219. package/dist/services/context-rules/index.d.mts +7 -7
  220. package/dist/services/context-rules/index.mjs +1 -1
  221. package/dist/services/execution-target/index.d.mts +3 -3
  222. package/dist/services/execution-target/index.mjs +1 -1
  223. package/dist/services/execution-target/namespace.d.mts +1 -1
  224. package/dist/services/execution-target/schemas.d.mts +1 -1
  225. package/dist/services/filesystem/index.d.mts +1 -1
  226. package/dist/services/filesystem/index.mjs +1 -1
  227. package/dist/services/filesystem/namespace.d.mts +6 -6
  228. package/dist/services/filesystem/schemas.d.mts +3 -3
  229. package/dist/services/git/namespace.d.mts +6 -6
  230. package/dist/services/git/namespace.mjs +1 -1
  231. package/dist/services/git/schemas.d.mts +6 -6
  232. package/dist/services/git/schemas.mjs +1 -1
  233. package/dist/services/harness/index.d.mts +12 -12
  234. package/dist/services/harness/index.mjs +1 -1
  235. package/dist/services/index.d.mts +159 -158
  236. package/dist/services/index.mjs +1 -1
  237. package/dist/services/log-import/browser.d.mts +2 -2
  238. package/dist/services/log-import/index.d.mts +3 -3
  239. package/dist/services/log-import/log-import.d.mts +1 -1
  240. package/dist/services/log-import/log-import.mjs +1 -1
  241. package/dist/services/log-import/namespace.d.mts +6 -6
  242. package/dist/services/log-import/namespace.mjs +1 -1
  243. package/dist/services/log-import/schemas.d.mts +3 -3
  244. package/dist/services/log-import/schemas.mjs +1 -1
  245. package/dist/services/model-registry/index.d.mts +1 -1
  246. package/dist/services/model-registry/index.mjs +1 -1
  247. package/dist/services/preferences/index.d.mts +2 -2
  248. package/dist/services/preferences/schemas.d.mts +1 -1
  249. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  250. package/dist/services/provider-context/index.d.mts +1 -1
  251. package/dist/services/provider-context/index.mjs +1 -1
  252. package/dist/services/provider-runtime/index.mjs +1 -1
  253. package/dist/services/session/handlers/index.d.mts +1 -1
  254. package/dist/services/session/handlers/index.mjs +1 -1
  255. package/dist/services/session/index.d.mts +9 -9
  256. package/dist/services/session/index.mjs +1 -1
  257. package/dist/services/session/messages/namespace.d.mts +1 -1
  258. package/dist/services/session/messages/namespace.mjs +1 -1
  259. package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
  260. package/dist/services/session/orchestrator-testing/index.mjs +1 -1
  261. package/dist/services/session/session-events/namespace.d.mts +1 -1
  262. package/dist/services/session/session-events/namespace.mjs +1 -1
  263. package/dist/services/session/storage/namespace.d.mts +1 -1
  264. package/dist/services/session/storage/schema.d.mts +1 -1
  265. package/dist/services/session/testing/index.mjs +1 -1
  266. package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
  267. package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
  268. package/dist/services/session/turns/namespace.d.mts +1 -1
  269. package/dist/services/session/turns/namespace.mjs +1 -1
  270. package/dist/services/session-editor/index.d.mts +1 -1
  271. package/dist/services/session-editor/index.mjs +1 -1
  272. package/dist/services/settings/index.d.mts +3 -3
  273. package/dist/services/settings/index.mjs +1 -1
  274. package/dist/services/settings/namespace.d.mts +10 -10
  275. package/dist/services/settings/namespace.mjs +1 -1
  276. package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
  277. package/dist/services/settings/storage/clients-namespace.mjs +1 -1
  278. package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
  279. package/dist/services/settings/storage/index.d.mts +3 -3
  280. package/dist/services/settings/storage/index.mjs +1 -1
  281. package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
  282. package/dist/services/settings/storage/providers-namespace.mjs +1 -1
  283. package/dist/services/subagent/index.d.mts +1 -1
  284. package/dist/services/subagent/index.mjs +1 -1
  285. package/dist/services/subagent-template/index.d.mts +2 -2
  286. package/dist/services/subagent-template/namespace.d.mts +1 -1
  287. package/dist/services/subagent-template/schemas.d.mts +1 -1
  288. package/dist/services/tool-approval/index.d.mts +1 -1
  289. package/dist/services/tool-approval/index.mjs +1 -1
  290. package/dist/services/tools/index.d.mts +1 -1
  291. package/dist/services/tools/index.mjs +1 -1
  292. package/dist/services/tray-menu/index.d.mts +3 -3
  293. package/dist/services/tray-menu/index.mjs +1 -1
  294. package/dist/services/tray-menu/namespace.d.mts +1 -1
  295. package/dist/services/tray-menu/schemas.d.mts +1 -1
  296. package/dist/services/turn/index.d.mts +1 -1
  297. package/dist/services/turn/namespace.d.mts +1 -1
  298. package/dist/services/turn/schemas.d.mts +10 -10
  299. package/dist/{session-BoldSdNZ2.mjs → session-BnfsJoZi.mjs} +1 -1
  300. package/dist/{session-DuVOYctZ.mjs → session-C1Cami7U.mjs} +1 -1
  301. package/dist/{session-lineage-CRsc9g1x.d.mts → session-lineage-CKg6mErA.d.mts} +1 -1
  302. package/dist/{skill-CQO4mDqK.mjs → skill-BNQnWVIG.mjs} +1 -1
  303. package/dist/src-Dvp41Cg2.mjs +1 -0
  304. package/dist/src-Z3vAZJfw.mjs +21 -0
  305. package/dist/storage/drizzle/client.d.mts +1 -1
  306. package/dist/storage/drizzle/index.d.mts +1 -1
  307. package/dist/storage/handlers/drizzle/index.d.mts +1 -1
  308. package/dist/storage/handlers/drizzle/index.mjs +1 -1
  309. package/dist/storage/handlers/index.d.mts +1 -1
  310. package/dist/storage/handlers/index.mjs +1 -1
  311. package/dist/storage-namespace-BXO3lDVy.mjs +1 -0
  312. package/dist/{storage-namespace-BXkoh5Sy.d.mts → storage-namespace-BXmMUd7a.d.mts} +20 -20
  313. package/dist/style.css +540 -540
  314. package/dist/supports-color-fVsgozsi.mjs +1 -0
  315. package/dist/tool-approval-service-BgNcJvKx.mjs +1 -0
  316. package/dist/tools-DC4KrqI1.mjs +1 -0
  317. package/dist/{types-CCdqjeuH.d.mts → types-B0BtvVAq.d.mts} +2 -81
  318. package/dist/{types-BCMUtBj1.d.mts → types-CmMesAgR.d.mts} +1 -1
  319. package/dist/{types-DZHvOc_Q.d.mts → types-D0fPFh-D.d.mts} +1 -1
  320. package/dist/{types-Dy3YTcTF.d.mts → types-DiGqpZOD.d.mts} +288 -288
  321. package/dist/ui-components/index.d.mts +1 -1
  322. package/dist/ui-components/index.mjs +2 -2
  323. package/dist/ui-hooks/index.d.mts +6 -6
  324. package/dist/ui-kernel/index.d.mts +7 -7
  325. package/dist/ui-kernel/pages/namespace.d.mts +8 -8
  326. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  327. package/dist/ui-views/index.mjs +2 -2
  328. package/dist/version-B4NO_fID.mjs +1 -0
  329. package/dist/workflow-engine/index.d.mts +6568 -0
  330. package/dist/workflow-engine/index.mjs +1 -0
  331. package/dist/workflow-engine/package.d.mts +2 -0
  332. package/dist/workflow-engine/package.mjs +1 -0
  333. package/dist/workflow-engine/workflow-orchestrator.d.mts +61 -0
  334. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -0
  335. package/dist/workflow-worker-DvP753UN.mjs +1 -0
  336. package/package.json +65 -1
  337. package/dist/extension-C-4BHMRI.mjs +0 -1
  338. package/dist/globby-rtWVaFHv.mjs +0 -41
  339. package/dist/schema-introspection-Dn1jWQs1.mjs +0 -1
  340. package/dist/schemas-CVvwIfG4.mjs +0 -1
  341. package/dist/storage-namespace-DWsYLAXa.mjs +0 -1
  342. package/dist/tool-approval-service-BvZWhYZp.mjs +0 -1
  343. package/dist/tools-D-luYcDw.mjs +0 -1431
  344. package/dist/version-BeT3ASEe.mjs +0 -1
  345. /package/dist/{base-orchestrator-wyumsn3b.d.mts → base-orchestrator-M5mAB5-w.d.mts} +0 -0
  346. /package/dist/{capability-service-CJbmhfv9.mjs → capability-service-jjrFLM6r.mjs} +0 -0
  347. /package/dist/{cleanEnvForAdapter-KkYzQa1f.mjs → cleanEnvForAdapter-BlpmyXYk.mjs} +0 -0
  348. /package/dist/{clients-namespace-GmSJpBUV.d.mts → clients-namespace-SFk7OTop.d.mts} +0 -0
  349. /package/dist/{config-namespace-CPY9YsR8.d.mts → config-namespace-BzAvE2nY.d.mts} +0 -0
  350. /package/dist/{config-namespace-ncYg2ct_.mjs → config-namespace-DydHz9so.mjs} +0 -0
  351. /package/dist/{definition-BLCdXGzh.d.mts → definition-BSghHJpQ.d.mts} +0 -0
  352. /package/dist/{definition-pkJ6szUl.d.mts → definition-q6iLw11H.d.mts} +0 -0
  353. /package/dist/{drizzle-Eq8W1EbD.mjs → drizzle-DpjZFY_j.mjs} +0 -0
  354. /package/dist/{event-Ca2yUf5i.mjs → event-BEllCn16.mjs} +0 -0
  355. /package/dist/{execution-target-CRPTfZlc.mjs → execution-target-CQGYaaM2.mjs} +0 -0
  356. /package/dist/{extension-namespace-cMh_mMiL.mjs → extension-namespace-BBgYOttA.mjs} +0 -0
  357. /package/dist/{facet-BuwhrThl.mjs → facet-DMrryX_0.mjs} +0 -0
  358. /package/dist/{filesystem-service-p_iJVHd4.d.mts → filesystem-service-Ddngll0j.d.mts} +0 -0
  359. /package/dist/{harness-BRCMcvQN.mjs → harness-B8E_wRwa.mjs} +0 -0
  360. /package/dist/{host-Br9VuOyr.mjs → host-DbMiI5wQ.mjs} +0 -0
  361. /package/dist/{identity-Cz2IeEtm.mjs → identity-Bmx-8fPa.mjs} +0 -0
  362. /package/dist/{index-U-A8eyGT.d.mts → index-9IDJUJ4X.d.mts} +0 -0
  363. /package/dist/{index-CGmcS0Ma.d.mts → index-BBvcP-P0.d.mts} +0 -0
  364. /package/dist/{index-BGfWS6GE.d.mts → index-BKKNWqkP2.d.mts} +0 -0
  365. /package/dist/{index-DKia0MX1.d.mts → index-BMpRB6iE.d.mts} +0 -0
  366. /package/dist/{index-CHQ1SqT0.d.mts → index-BbCjtc3h.d.mts} +0 -0
  367. /package/dist/{index-BFg9BUpx.d.mts → index-BheaEhyI.d.mts} +0 -0
  368. /package/dist/{index-Cs0kZXIz2.d.mts → index-BnQSPC6c.d.mts} +0 -0
  369. /package/dist/{index-CCGVh9BF2.d.mts → index-BpXX9WZJ.d.mts} +0 -0
  370. /package/dist/{index-DMKnON5s.d.mts → index-Bsp0O_sI.d.mts} +0 -0
  371. /package/dist/{index-DANINzMu.d.mts → index-Buo9H8RK.d.mts} +0 -0
  372. /package/dist/{index-CLpjm52M.d.mts → index-BxFA1XcP.d.mts} +0 -0
  373. /package/dist/{index-ChunCFu4.d.mts → index-C33Tq1ei2.d.mts} +0 -0
  374. /package/dist/{index-DGBu6bHi2.d.mts → index-C6BhKRnH.d.mts} +0 -0
  375. /package/dist/{index-eemAKwsB.d.mts → index-CDU_s69P.d.mts} +0 -0
  376. /package/dist/{index-DKC62dY5.d.mts → index-CGJjA-hR2.d.mts} +0 -0
  377. /package/dist/{index-CokQYGVP.d.mts → index-Clut1ljB.d.mts} +0 -0
  378. /package/dist/{index-BVgfS-AJ.d.mts → index-Cz9JMjZK.d.mts} +0 -0
  379. /package/dist/{index-vtXJuwrz.d.mts → index-D0SUjZmU.d.mts} +0 -0
  380. /package/dist/{index-x_lVDp_J.d.mts → index-D6Iyvz9T.d.mts} +0 -0
  381. /package/dist/{index-D5d5HeWI2.d.mts → index-DOfq0qqv.d.mts} +0 -0
  382. /package/dist/{index-De3kPhlN.d.mts → index-DSV1aFgK.d.mts} +0 -0
  383. /package/dist/{index-B80L4YqA.d.mts → index-Dsq2zKvu.d.mts} +0 -0
  384. /package/dist/{materialization-CuUBu4XI.mjs → materialization-3QUnQLbC.mjs} +0 -0
  385. /package/dist/{model-registry-Scn_MC2d.mjs → model-registry-B0AIdj7O.mjs} +0 -0
  386. /package/dist/{model-registry-CfXytvzx.mjs → model-registry-j-rCKcik.mjs} +0 -0
  387. /package/dist/{namespace-CFLAmQfh.mjs → namespace-BbjCyZC9.mjs} +0 -0
  388. /package/dist/{namespace-BwzZJqTV.mjs → namespace-BgPoC46Q.mjs} +0 -0
  389. /package/dist/{namespace-Yna5-Pws.mjs → namespace-CDiM5Bcr.mjs} +0 -0
  390. /package/dist/{namespace-BoD94mrN.mjs → namespace-CUOGcGPG.mjs} +0 -0
  391. /package/dist/{namespace-LViZ-EQk.mjs → namespace-D6X67cUk.mjs} +0 -0
  392. /package/dist/{namespace-DkRgbZYn.mjs → namespace-ENv7H7Na.mjs} +0 -0
  393. /package/dist/{namespace-xcmbQlxh.mjs → namespace-FT8igkn4.mjs} +0 -0
  394. /package/dist/{namespace-CaoZ3S78.d.mts → namespace-XTGCaSXj.d.mts} +0 -0
  395. /package/dist/{namespace-CTm3nEvh.d.mts → namespace-nlsvvMtD.d.mts} +0 -0
  396. /package/dist/{namespace-IV1QK__V.d.mts → namespace-uuR0Fg5r.d.mts} +0 -0
  397. /package/dist/{orchestrator-shared-Dfa7FMyw.d.mts → orchestrator-shared-D91Wk7z-.d.mts} +0 -0
  398. /package/dist/{package-DKVlsMP3.mjs → package-OE9dMQsq.mjs} +0 -0
  399. /package/dist/{platform-DZ7z-wXD.mjs → platform-Dhv22LiX.mjs} +0 -0
  400. /package/dist/{providers-u8i15co9.mjs → providers-B1p0P-vB.mjs} +0 -0
  401. /package/dist/{providers-namespace-DSEpli4A.d.mts → providers-namespace-BqWYkydw.d.mts} +0 -0
  402. /package/dist/{schema-CoyE6mPt.mjs → schema-DOnJmAPw.mjs} +0 -0
  403. /package/dist/{schemas-Bd0OjRQf.d.mts → schemas-B77Gi8Xr.d.mts} +0 -0
  404. /package/dist/{schemas-jFe1AuI-.mjs → schemas-BCIuTWRl2.mjs} +0 -0
  405. /package/dist/{schemas-DE-GNmSD.mjs → schemas-BdAf5u58.mjs} +0 -0
  406. /package/dist/{schemas-CDBSjg7o.d.mts → schemas-Dyk7JuVl.d.mts} +0 -0
  407. /package/dist/{schemas-DaRSfYLf.d.mts → schemas-Kq33MTPY.d.mts} +0 -0
  408. /package/dist/{server-lifecycle-YoSGFGnU.d.mts → server-lifecycle-47mygK3E.d.mts} +0 -0
  409. /package/dist/{server-lifecycle-FXTPW39-.mjs → server-lifecycle-Cg47L59Q.mjs} +0 -0
  410. /package/dist/{shared-schemas-CPShiLNp.mjs → shared-schemas-CKe2uN4-.mjs} +0 -0
  411. /package/dist/{storage-namespace-definition-Bkx5rSto.d.mts → storage-namespace-definition-C3XbpiP8.d.mts} +0 -0
  412. /package/dist/{storage-namespace-definition-CqSdsuCC.mjs → storage-namespace-definition-RvjfFysN.mjs} +0 -0
  413. /package/dist/{telemetry-CvdLBWuk.mjs → telemetry-O0394b7p.mjs} +0 -0
  414. /package/dist/{tray-menu-service-DuXq5k22.mjs → tray-menu-service-B5YPK_YF.mjs} +0 -0
  415. /package/dist/{types-C2Ob9zz_.d.mts → types-5Gw3iVpK.d.mts} +0 -0
  416. /package/dist/{types-dyP-bXXE.d.mts → types-BhXRffJ_.d.mts} +0 -0
  417. /package/dist/{types-MfJZ67e9.d.mts → types-D-bP8RRE.d.mts} +0 -0
  418. /package/dist/{variant-CT6XBP6T.mjs → variant-COVbYmMs.mjs} +0 -0
  419. /package/dist/{window-registry-CBcrGTv4.d.mts → window-registry-CfEi_Ji4.d.mts} +0 -0
  420. /package/dist/{window-registry-DW-dKRjQ.mjs → window-registry-XjOExitT.mjs} +0 -0
@@ -0,0 +1,90 @@
1
+ {
2
+ "version": "7",
3
+ "dialect": "sqlite",
4
+ "entries": [
5
+ {
6
+ "idx": 0,
7
+ "version": "6",
8
+ "when": 1780116319770,
9
+ "tag": "0000_charming_prowler",
10
+ "breakpoints": true
11
+ },
12
+ {
13
+ "idx": 1,
14
+ "version": "6",
15
+ "when": 1780178759622,
16
+ "tag": "0001_known_stephen_strange",
17
+ "breakpoints": true
18
+ },
19
+ {
20
+ "idx": 2,
21
+ "version": "6",
22
+ "when": 1780180896118,
23
+ "tag": "0002_woozy_gladiator",
24
+ "breakpoints": true
25
+ },
26
+ {
27
+ "idx": 3,
28
+ "version": "6",
29
+ "when": 1780181794490,
30
+ "tag": "0003_overjoyed_adam_destine",
31
+ "breakpoints": true
32
+ },
33
+ {
34
+ "idx": 4,
35
+ "version": "6",
36
+ "when": 1780185321350,
37
+ "tag": "0004_solid_goliath",
38
+ "breakpoints": true
39
+ },
40
+ {
41
+ "idx": 5,
42
+ "version": "6",
43
+ "when": 1780188325921,
44
+ "tag": "0005_round_calypso",
45
+ "breakpoints": true
46
+ },
47
+ {
48
+ "idx": 6,
49
+ "version": "6",
50
+ "when": 1780189908132,
51
+ "tag": "0006_free_tiger_shark",
52
+ "breakpoints": true
53
+ },
54
+ {
55
+ "idx": 7,
56
+ "version": "6",
57
+ "when": 1780345899769,
58
+ "tag": "0007_sparkling_terror",
59
+ "breakpoints": true
60
+ },
61
+ {
62
+ "idx": 8,
63
+ "version": "6",
64
+ "when": 1780474043382,
65
+ "tag": "0008_petite_deathstrike",
66
+ "breakpoints": true
67
+ },
68
+ {
69
+ "idx": 9,
70
+ "version": "6",
71
+ "when": 1780486681006,
72
+ "tag": "0009_lethal_malcolm_colcord",
73
+ "breakpoints": true
74
+ },
75
+ {
76
+ "idx": 10,
77
+ "version": "6",
78
+ "when": 1780489744341,
79
+ "tag": "0010_grey_chronomancer",
80
+ "breakpoints": true
81
+ },
82
+ {
83
+ "idx": 11,
84
+ "version": "6",
85
+ "when": 1780568212122,
86
+ "tag": "0011_solid_nomad",
87
+ "breakpoints": true
88
+ }
89
+ ]
90
+ }
@@ -0,0 +1,3 @@
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,ee=/\\{/g,m=/\\}/g,h=/\\,/g,g=/\\./g;function _(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function te(e){return e.replace(p,r).replace(ee,i).replace(m,a).replace(h,o).replace(g,s)}function v(e){return e.replace(c,`\\`).replace(l,`{`).replace(u,`}`).replace(d,`,`).replace(f,`.`)}function y(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=y(o);return o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c)),n.push.apply(n,s),n}function ne(e){return e?(e.slice(0,2)===`{}`&&(e=`\\{\\}`+e.slice(2)),x(te(e),!0).map(v)):[]}function re(e){return`{`+e+`}`}function ie(e){return/^-?0\d/.test(e)}function ae(e,t){return e<=t}function b(e,t){return e>=t}function x(t,n){let r=[],i=e(`{`,`}`,t);if(!i)return[t];let o=i.pre,s=i.post.length?x(i.post,!1):[``];if(/\$$/.test(i.pre))for(let e=0;e<s.length;e++){let t=o+`{`+i.body+`}`+s[e];r.push(t)}else{let e=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),l=e||c,u=i.body.indexOf(`,`)>=0;if(!l&&!u)return i.post.match(/,(?!,).*\}/)?(t=i.pre+`{`+i.body+a+i.post,x(t)):[t];let d;if(l)d=i.body.split(/\.\./);else if(d=y(i.body),d.length===1&&d[0]!==void 0&&(d=x(d[0],!1).map(re),d.length===1))return s.map(e=>i.pre+d[0]+e);let f;if(l&&d[0]!==void 0&&d[1]!==void 0){let e=_(d[0]),t=_(d[1]),n=Math.max(d[0].length,d[1].length),r=d.length===3&&d[2]!==void 0?Math.abs(_(d[2])):1,i=ae;t<e&&(r*=-1,i=b);let a=d.some(ie);f=[];for(let o=e;i(o,t);o+=r){let e;if(c)e=String.fromCharCode(o),e===`\\`&&(e=``);else if(e=String(o),a){let t=n-e.length;if(t>0){let n=Array(t+1).join(`0`);e=o<0?`-`+n+e.slice(1):n+e}}f.push(e)}}else{f=[];for(let e=0;e<d.length;e++)f.push.apply(f,x(d[e],!1))}for(let e=0;e<f.length;e++)for(let t=0;t<s.length;t++){let i=o+f[e]+s[t];(!n||l||i)&&r.push(i)}}return r}const S=e=>{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>65536)throw TypeError(`pattern is too long`)},oe={"[: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]},C=e=>e.replace(/[[\]\\-]/g,`\\$&`),w=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(oe))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(C(d)+`-`+C(t)):t===d&&r.push(C(t)),d=``,a++;continue}if(e.startsWith(`-]`,a+1)){r.push(C(t+`-`)),a+=2;continue}if(e.startsWith(`-`,a+1)){d=t,a+=2;continue}r.push(C(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[w(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`),se=new Set([`!`,`?`,`+`,`*`,`@`]),O=e=>se.has(e),k=`(?!\\.)`,ce=new Set([`[`,`.`]),A=new Set([`..`,`.`]),j=new Set(`().*{}+?[]^$\\!`),M=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),N=`[^/]`,P=N+`*?`,F=N+`+?`;var I=class e{type;#e;#t;#n=!1;#r=[];#i;#a;#o;#s=!1;#c;#l;#u=!1;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(...t){for(let n of t)if(n!==``){if(typeof n!=`string`&&!(n instanceof e&&n.#i===this))throw Error(`invalid part: `+n);this.#r.push(n)}}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 t=this.#i;for(let n=0;n<this.#a;n++){let r=t.#r[n];if(!(r instanceof e&&r.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(t){let n=new e(this.type,t);for(let e of this.#r)n.copyIn(e);return n}static#f(t,n,r,i){let a=!1,o=!1,s=-1,c=!1;if(n.type===null){let l=r,u=``;for(;l<t.length;){let r=t.charAt(l++);if(a||r===`\\`){a=!a,u+=r;continue}if(o){l===s+1?(r===`^`||r===`!`)&&(c=!0):r===`]`&&!(l===s+2&&c)&&(o=!1),u+=r;continue}else if(r===`[`){o=!0,s=l,c=!1,u+=r;continue}if(!i.noext&&O(r)&&t.charAt(l)===`(`){n.push(u),u=``;let a=new e(r,n);l=e.#f(t,a,l,i),n.push(a);continue}u+=r}return n.push(u),l}let l=r+1,u=new e(null,n),d=[],f=``;for(;l<t.length;){let r=t.charAt(l++);if(a||r===`\\`){a=!a,f+=r;continue}if(o){l===s+1?(r===`^`||r===`!`)&&(c=!0):r===`]`&&!(l===s+2&&c)&&(o=!1),f+=r;continue}else if(r===`[`){o=!0,s=l,c=!1,f+=r;continue}if(O(r)&&t.charAt(l)===`(`){u.push(f),f=``;let n=new e(r,u);u.push(n),l=e.#f(t,n,l,i);continue}if(r===`|`){u.push(f),f=``,d.push(u),u=new e(null,n);continue}if(r===`)`)return f===``&&n.#r.length===0&&(n.#u=!0),u.push(f),f=``,n.push(...d,u),l;f+=r}return n.type=null,n.#t=void 0,n.#r=[t.substring(r-1)],l}static fromGlob(t,n={}){let r=new e(null,void 0,n);return e.#f(t,r,0,n),r}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(t){let n=t??!!this.#c.dot;if(this.#e===this&&this.#d(),!this.type){let r=this.isStart()&&this.isEnd()&&!this.#r.some(e=>typeof e!=`string`),i=this.#r.map(n=>{let[i,a,o,s]=typeof n==`string`?e.#m(n,this.#t,r):n.toRegExpSource(t);return this.#t=this.#t||o,this.#n=this.#n||s,i}).join(``),a=``;if(this.isStart()&&typeof this.#r[0]==`string`&&!(this.#r.length===1&&A.has(this.#r[0]))){let e=ce,r=n&&e.has(i.charAt(0))||i.startsWith(`\\.`)&&e.has(i.charAt(2))||i.startsWith(`\\.\\.`)&&e.has(i.charAt(4)),o=!n&&!t&&e.has(i.charAt(0));a=r?`(?!(?:^|/)\\.\\.?(?:$|/))`:o?k:``}let o=``;return this.isEnd()&&this.#e.#s&&this.#i?.type===`!`&&(o=`(?:$|\\/)`),[a+i+o,D(i),this.#t=!!this.#t,this.#n]}let r=this.type===`*`||this.type===`+`,i=this.type===`!`?`(?:(?!(?:`:`(?:`,a=this.#p(n);if(this.isStart()&&this.isEnd()&&!a&&this.type!==`!`){let e=this.toString();return this.#r=[e],this.type=null,this.#t=void 0,[e,D(this.toString()),!1,!1]}let o=!r||t||n?``:this.#p(!0);o===a&&(o=``),o&&(a=`(?:${a})(?:${o})*?`);let s=``;if(this.type===`!`&&this.#u)s=(this.isStart()&&!n?k:``)+F;else{let e=this.type===`!`?`))`+(this.isStart()&&!n&&!t?k:``)+P+`)`:this.type===`@`?`)`:this.type===`?`?`)?`:this.type===`+`&&o?`)`:this.type===`*`&&o?`)?`:`)${this.type}`;s=i+a+e}return[s,D(a),this.#t=!!this.#t,this.#n]}#p(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#m(e,t,n=!1){let r=!1,i=``,a=!1;for(let o=0;o<e.length;o++){let s=e.charAt(o);if(r){r=!1,i+=(j.has(s)?`\\`:``)+s;continue}if(s===`\\`){o===e.length-1?i+=`\\\\`:r=!0;continue}if(s===`[`){let[n,r,s,c]=E(e,o);if(s){i+=n,a||=r,o+=s-1,t||=c;continue}}if(s===`*`){i+=n&&e===`*`?F:P,t=!0;continue}if(s===`?`){i+=N,t=!0;continue}i+=M(s)}return[i,D(e),!!t,a]}};const L=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!1}={})=>n?t?e.replace(/[?*()[\]{}]/g,`[$&]`):e.replace(/[?*()[\]\\{}]/g,`\\$&`):t?e.replace(/[?*()[\]]/g,`[$&]`):e.replace(/[?*()[\]\\]/g,`\\$&`),R=(e,t,n={})=>(S(t),!n.nocomment&&t.charAt(0)===`#`?!1:new $(t,n).match(e)),z=/^\*+([^+@!?\*\[\(]*)$/,B=e=>t=>!t.startsWith(`.`)&&t.endsWith(e),V=e=>t=>t.endsWith(e),H=e=>(e=e.toLowerCase(),t=>!t.startsWith(`.`)&&t.toLowerCase().endsWith(e)),U=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),W=/^\*+\.\*+$/,le=e=>!e.startsWith(`.`)&&e.includes(`.`),ue=e=>e!==`.`&&e!==`..`&&e.includes(`.`),de=/^\.\*+$/,fe=e=>e!==`.`&&e!==`..`&&e.startsWith(`.`),pe=/^\*+$/,me=e=>e.length!==0&&!e.startsWith(`.`),he=e=>e.length!==0&&e!==`.`&&e!==`..`,ge=/^\?+([^+@!?\*\[\(]*)?$/,_e=([e,t=``])=>{let n=G([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},ve=([e,t=``])=>{let n=K([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},ye=([e,t=``])=>{let n=K([e]);return t?e=>n(e)&&e.endsWith(t):n},be=([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:`/`}};R.sep=q===`win32`?J.win32.sep:J.posix.sep;const Y=Symbol(`globstar **`);R.GLOBSTAR=Y,R.filter=(e,t={})=>n=>R(n,e,t);const X=(e,t={})=>Object.assign({},e,t);R.defaults=e=>{if(!e||typeof e!=`object`||!Object.keys(e).length)return R;let t=R;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={})=>(S(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:ne(e));R.braceExpand=Z,R.makeRe=(e,t={})=>new $(e,t).makeRe(),R.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=/[?*]|[+@!]\(.*?\)|\[|\]/,xe=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`);var $=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){S(e),t||={},this.options=t,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=0;t<e.length;t++)for(let n=0;n<e[t].length;n++)e[t][n]===`**`&&(e[t][n]=`*`);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!==`**`&&(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=this.options;if(this.isWindows){let n=typeof e[0]==`string`&&/^[a-z]:$/i.test(e[0]),r=!n&&e[0]===``&&e[1]===``&&e[2]===`?`&&/^[a-z]:$/i.test(e[3]),i=typeof t[0]==`string`&&/^[a-z]:$/i.test(t[0]),a=!i&&t[0]===``&&t[1]===``&&t[2]===`?`&&typeof t[3]==`string`&&/^[a-z]:$/i.test(t[3]),o=r?3:n?0:void 0,s=a?3:i?0:void 0;if(typeof o==`number`&&typeof s==`number`){let[n,r]=[e[o],t[s]];n.toLowerCase()===r.toLowerCase()&&(t[s]=n,s>o?t=t.slice(s):o>s&&(e=e.slice(o)))}}let{optimizationLevel:i=1}=this.options;i>=2&&(e=this.levelTwoFileOptimize(e)),this.debug(`matchOne`,this,{file:e,pattern:t}),this.debug(`matchOne`,e.length,t.length);for(var a=0,o=0,s=e.length,c=t.length;a<s&&o<c;a++,o++){this.debug(`matchOne loop`);var l=t[o],u=e[a];if(this.debug(t,l,u),l===!1)return!1;if(l===Y){this.debug(`GLOBSTAR`,[t,l,u]);var d=a,f=o+1;if(f===c){for(this.debug(`** at the end`);a<s;a++)if(e[a]===`.`||e[a]===`..`||!r.dot&&e[a].charAt(0)===`.`)return!1;return!0}for(;d<s;){var p=e[d];if(this.debug(`
2
+ globstar while`,e,d,t,f,p),this.matchOne(e.slice(d),t.slice(f),n))return this.debug(`globstar found match!`,d,s,p),!0;if(p===`.`||p===`..`||!r.dot&&p.charAt(0)===`.`){this.debug(`dot detected!`,e,d,t,f);break}this.debug(`globstar swallow a segment, and continue`),d++}return!!(n&&(this.debug(`
3
+ >>> no match, partial?`,e,d,t,f),d===s))}let i;if(typeof l==`string`?(i=u===l,this.debug(`string match`,l,u,i)):(i=l.test(u),this.debug(`pattern match`,l,u,i)),!i)return!1}if(a===s&&o===c)return!0;if(a===s)return n;if(o===c)return a===s-1&&e[a]===``;throw Error(`wtf?`)}braceExpand(){return Z(this.pattern,this.options)}parse(e){S(e);let t=this.options;if(e===`**`)return Y;if(e===``)return``;let n,r=null;(n=e.match(pe))?r=t.dot?he:me:(n=e.match(z))?r=(t.nocase?t.dot?U:H:t.dot?V:B)(n[1]):(n=e.match(ge))?r=(t.nocase?t.dot?ve:_e:t.dot?ye:be)(n):(n=e.match(W))?r=t.dot?ue:le:(n=e.match(de))&&(r=fe);let i=I.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`?xe(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=0;e<i.length;e++){let o=i[e],s=r;if(n.matchBase&&o.length===1&&(s=[a]),this.matchOne(s,o,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return R.defaults(e).Minimatch}};R.AST=I,R.Minimatch=$,R.escape=L,R.unescape=D;export{R as n,$ as t};
@@ -0,0 +1,120 @@
1
+ import { JsonValue, WorkflowFrameState } from "@makaio/framework/contracts";
2
+
3
+ //#region packages/expression/src/types.d.ts
4
+ /** Generic variable map exposed to jexl expression evaluation and template interpolation. */
5
+ type ExpressionContext = Record<string, unknown>;
6
+ /**
7
+ * Frame execution status exposed to workflow expressions.
8
+ *
9
+ * Mirrors `WorkflowFrameState['status']` so expression conditions can reference
10
+ * the full frame status set without coupling to the runtime types.
11
+ */
12
+ type ExpressionStepStatus = WorkflowFrameState['status'];
13
+ /** Workflow evaluation context for jexl expressions and \{\{ \}\} template interpolation. */
14
+ interface WorkflowExpressionContext extends ExpressionContext {
15
+ /** Trigger payload that started the workflow. */
16
+ trigger: Record<string, unknown>;
17
+ /**
18
+ * All frames that have started (running/completed/failed/skipped/etc).
19
+ * Pending frames are excluded.
20
+ * `result` is undefined for non-completed frames. For completed frames,
21
+ * it holds the JSON-serializable value produced by the node.
22
+ */
23
+ steps: Record<string, {
24
+ result?: JsonValue;
25
+ status: ExpressionStepStatus;
26
+ }>;
27
+ /** Workflow input value. */
28
+ inputs: JsonValue;
29
+ /** Current item in a for-each iteration. Only present inside for-each scope. */
30
+ item?: unknown;
31
+ /** Current index in a for-each iteration. Only present inside for-each scope. */
32
+ index?: number;
33
+ }
34
+ //#endregion
35
+ //#region packages/expression/src/engine.d.ts
36
+ /**
37
+ * Result of compiling a jexl expression for repeated evaluation.
38
+ *
39
+ * Context is an {@link ExpressionContext} because compiled expressions are used
40
+ * by multiple domains with different variable maps.
41
+ */
42
+ interface CompiledExpression {
43
+ /**
44
+ * Evaluate the compiled expression synchronously.
45
+ * @param context - variable map passed to the expression
46
+ * @returns evaluated result
47
+ */
48
+ evalSync(context: ExpressionContext): unknown;
49
+ /**
50
+ * Evaluate the compiled expression asynchronously.
51
+ * @param context - variable map passed to the expression
52
+ * @returns evaluated result
53
+ */
54
+ eval(context: ExpressionContext): Promise<unknown>;
55
+ }
56
+ /**
57
+ * Evaluate a jexl expression synchronously.
58
+ * @param expr - jexl expression string
59
+ * @param context - evaluation context
60
+ * @returns evaluated result
61
+ */
62
+ declare function evaluateSync(expr: string, context: ExpressionContext): unknown;
63
+ /**
64
+ * Evaluate a jexl expression asynchronously.
65
+ * @param expr - jexl expression string
66
+ * @param context - evaluation context
67
+ * @returns evaluated result
68
+ */
69
+ declare function evaluate(expr: string, context: ExpressionContext): Promise<unknown>;
70
+ /**
71
+ * Compile a jexl expression for repeated evaluation.
72
+ * Returns a compiled expression object with evalSync/eval methods.
73
+ * Use this for hot paths (e.g., trigger filter evaluation).
74
+ * @param expr - jexl expression string
75
+ * @returns compiled expression
76
+ */
77
+ declare function compile(expr: string): CompiledExpression;
78
+ //#endregion
79
+ //#region packages/expression/src/template.d.ts
80
+ /**
81
+ * Resolve \{\{ \}\} placeholders in a template string using jexl evaluation.
82
+ *
83
+ * Each placeholder is evaluated as a jexl expression against the context.
84
+ * Unknown paths resolve to '' (empty string) — templates should degrade
85
+ * gracefully rather than fail on missing context.
86
+ * Errors in individual placeholders are caught and resolve to ''.
87
+ * @param template - string with \{\{ expr \}\} placeholders
88
+ * @param context - evaluation context
89
+ * @returns resolved string
90
+ */
91
+ declare function resolveTemplate(template: string, context: ExpressionContext): string;
92
+ //#endregion
93
+ //#region packages/expression/src/object-template.d.ts
94
+ /** Options for resolving templates in object payloads. */
95
+ interface ResolveTemplatesInObjectOptions {
96
+ /**
97
+ * Omit object properties whose whole-value expression resolves to `undefined`.
98
+ *
99
+ * Arrays still receive `null` for missing values because array elements cannot
100
+ * be omitted without changing positional semantics.
101
+ */
102
+ readonly omitUndefinedProperties?: boolean;
103
+ }
104
+ /**
105
+ * Walk a JSON object tree and resolve all `{{ }}` template expressions in
106
+ * string leaves.
107
+ *
108
+ * A leaf that is a sole `{{ expr }}` template (no surrounding text) is
109
+ * evaluated natively — the result keeps its original runtime type (number,
110
+ * boolean, object, …). Mixed-content strings like `'Hello {{ name }}'` are
111
+ * always returned as strings. `undefined` evaluation results become `null` by
112
+ * default.
113
+ * @param obj - JSON object whose string values may contain `{{ }}` templates.
114
+ * @param context - expression context used for template evaluation.
115
+ * @param options - resolver behavior flags.
116
+ * @returns a new object with the same shape but all string leaves resolved.
117
+ */
118
+ declare function resolveTemplatesInObject(obj: Record<string, unknown>, context: ExpressionContext, options?: ResolveTemplatesInObjectOptions): Record<string, unknown>;
119
+ //#endregion
120
+ export { type CompiledExpression, type ExpressionContext, type ExpressionStepStatus, type WorkflowExpressionContext, compile, evaluate, evaluateSync, resolveTemplate, resolveTemplatesInObject };