@mastra/core 1.86.0-alpha.7 → 1.86.0-alpha.8

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 (419) hide show
  1. package/dist/agent/agent.d.ts +60 -1
  2. package/dist/agent/agent.types.d.ts +30 -2
  3. package/dist/agent/durable/create-evented-agent.d.ts +6 -0
  4. package/dist/agent/durable/durable-agent.d.ts +1 -15
  5. package/dist/agent/durable/index.cjs +7 -14
  6. package/dist/agent/durable/index.js +7 -14
  7. package/dist/agent/index.cjs +2 -2
  8. package/dist/agent/index.js +2 -2
  9. package/dist/agent/types.d.ts +25 -0
  10. package/dist/agent-builder/ee/index.cjs +1 -1
  11. package/dist/agent-builder/ee/index.js +1 -1
  12. package/dist/agent-controller/index.cjs +1 -1
  13. package/dist/agent-controller/index.js +1 -1
  14. package/dist/{agent-controller-Cf3_IuY8.js → agent-controller-B7POPub5.js} +7 -7
  15. package/dist/{agent-controller-K5vHtqfO.cjs → agent-controller-DEPayioq.cjs} +7 -7
  16. package/dist/background-tasks/index.cjs +1 -1
  17. package/dist/background-tasks/index.js +1 -1
  18. package/dist/{background-tasks-DqnQMfuf.cjs → background-tasks-7iftnRK_.cjs} +1 -1
  19. package/dist/{background-tasks-BgpX1P_s.js → background-tasks-Cv1ecD6S.js} +1 -1
  20. package/dist/browser/index.cjs +2 -2
  21. package/dist/browser/index.js +2 -2
  22. package/dist/{builder-D8Osghdo.cjs → builder-DuJBbQDH.cjs} +2 -2
  23. package/dist/{builder-x295GDL6.js → builder-Gg-xnX_E.js} +2 -2
  24. package/dist/capabilities/302ai.json +194 -194
  25. package/dist/capabilities/abliteratedllm.json +32 -32
  26. package/dist/capabilities/abliteration-ai.json +11 -11
  27. package/dist/capabilities/above.json +12 -12
  28. package/dist/capabilities/adaption.json +13 -13
  29. package/dist/capabilities/adzuki.json +32 -32
  30. package/dist/capabilities/agentrouter.json +6 -6
  31. package/dist/capabilities/agnes.json +2 -2
  32. package/dist/capabilities/ai-router.json +5 -5
  33. package/dist/capabilities/aiand.json +23 -23
  34. package/dist/capabilities/aigrow.json +11 -11
  35. package/dist/capabilities/aimlapi.json +144 -144
  36. package/dist/capabilities/aixy.json +21 -21
  37. package/dist/capabilities/aki-io.json +15 -15
  38. package/dist/capabilities/alibaba-cn.json +79 -79
  39. package/dist/capabilities/alibaba-coding-plan-cn.json +2 -2
  40. package/dist/capabilities/alibaba-coding-plan.json +2 -2
  41. package/dist/capabilities/alibaba-token-plan-cn.json +52 -52
  42. package/dist/capabilities/alibaba-token-plan.json +53 -53
  43. package/dist/capabilities/alibaba.json +70 -70
  44. package/dist/capabilities/ambient.json +15 -15
  45. package/dist/capabilities/amd.json +9 -9
  46. package/dist/capabilities/anthropic.json +48 -48
  47. package/dist/capabilities/anyapi.json +12 -12
  48. package/dist/capabilities/apiko.json +4 -4
  49. package/dist/capabilities/arcee.json +10 -10
  50. package/dist/capabilities/augure.json +6 -6
  51. package/dist/capabilities/auriko.json +18 -18
  52. package/dist/capabilities/bailing.json +5 -5
  53. package/dist/capabilities/baseten.json +26 -26
  54. package/dist/capabilities/bee.json +4 -4
  55. package/dist/capabilities/berget.json +6 -6
  56. package/dist/capabilities/bothub.json +14 -14
  57. package/dist/capabilities/boundless.json +41 -41
  58. package/dist/capabilities/bumo.json +39 -39
  59. package/dist/capabilities/byteplus.json +34 -34
  60. package/dist/capabilities/cheapaimodel.json +7 -7
  61. package/dist/capabilities/cheapest-token.json +33 -33
  62. package/dist/capabilities/chutes.json +10 -10
  63. package/dist/capabilities/cline-pass.json +35 -35
  64. package/dist/capabilities/cloudcode.json +8 -8
  65. package/dist/capabilities/cloudferro-sherlock.json +4 -4
  66. package/dist/capabilities/cloudflare-workers-ai.json +31 -31
  67. package/dist/capabilities/commandcode.json +148 -148
  68. package/dist/capabilities/concentrate.json +277 -253
  69. package/dist/capabilities/cortecs.json +113 -113
  70. package/dist/capabilities/crossmodel.json +172 -172
  71. package/dist/capabilities/crusoe.json +9 -9
  72. package/dist/capabilities/daoxe.json +8 -8
  73. package/dist/capabilities/databricks.json +54 -54
  74. package/dist/capabilities/deepinfra.json +95 -86
  75. package/dist/capabilities/deepseek.json +3 -3
  76. package/dist/capabilities/digitalocean.json +117 -117
  77. package/dist/capabilities/dothoosh.json +35 -35
  78. package/dist/capabilities/doubleword.json +29 -29
  79. package/dist/capabilities/edenai.json +456 -456
  80. package/dist/capabilities/empiriolabs.json +174 -174
  81. package/dist/capabilities/engy.json +20 -20
  82. package/dist/capabilities/entrim.json +6 -6
  83. package/dist/capabilities/evroc.json +10 -10
  84. package/dist/capabilities/ezkielyna.json +10 -10
  85. package/dist/capabilities/fastrouter.json +77 -77
  86. package/dist/capabilities/fireworks-ai.json +60 -60
  87. package/dist/capabilities/freemodel.json +17 -17
  88. package/dist/capabilities/frogbot.json +93 -93
  89. package/dist/capabilities/gisoo.json +19 -19
  90. package/dist/capabilities/gmicloud.json +19 -19
  91. package/dist/capabilities/google.json +59 -59
  92. package/dist/capabilities/graphn.json +9 -9
  93. package/dist/capabilities/greenpt.json +34 -34
  94. package/dist/capabilities/groq.json +8 -8
  95. package/dist/capabilities/helicone.json +83 -83
  96. package/dist/capabilities/hopper.json +2 -2
  97. package/dist/capabilities/hostinger-router.json +9 -9
  98. package/dist/capabilities/hpc-ai.json +11 -11
  99. package/dist/capabilities/huawei-maas.json +13 -13
  100. package/dist/capabilities/hubris.json +33 -33
  101. package/dist/capabilities/huggingface.json +60 -51
  102. package/dist/capabilities/humain.json +2 -2
  103. package/dist/capabilities/hyper.json +27 -27
  104. package/dist/capabilities/impossibl.json +118 -118
  105. package/dist/capabilities/inception.json +3 -3
  106. package/dist/capabilities/inceptron.json +8 -8
  107. package/dist/capabilities/inco.json +4 -4
  108. package/dist/capabilities/infer.json +15 -15
  109. package/dist/capabilities/inferall.json +10 -10
  110. package/dist/capabilities/inference-coop.json +12 -12
  111. package/dist/capabilities/inferenceapis.json +20 -20
  112. package/dist/capabilities/inferris.json +4 -4
  113. package/dist/capabilities/infersia.json +8 -8
  114. package/dist/capabilities/inferx.json +3 -3
  115. package/dist/capabilities/infomaniak.json +4 -4
  116. package/dist/capabilities/io-net.json +4 -4
  117. package/dist/capabilities/iteracompute.json +63 -63
  118. package/dist/capabilities/jad-ai.json +3 -3
  119. package/dist/capabilities/jalapeno.json +11 -11
  120. package/dist/capabilities/jiekou.json +63 -63
  121. package/dist/capabilities/joingonka.json +4 -4
  122. package/dist/capabilities/jzstoken.json +52 -52
  123. package/dist/capabilities/keln.json +26 -26
  124. package/dist/capabilities/kenari.json +127 -127
  125. package/dist/capabilities/kilo.json +604 -628
  126. package/dist/capabilities/kimi-code-plan-cn.json +4 -4
  127. package/dist/capabilities/kimi-code-plan-global.json +4 -4
  128. package/dist/capabilities/kitani.json +6 -6
  129. package/dist/capabilities/klavo.json +26 -26
  130. package/dist/capabilities/korouter.json +34 -34
  131. package/dist/capabilities/kunavo.json +4 -4
  132. package/dist/capabilities/liquid.json +10 -10
  133. package/dist/capabilities/lithosai.json +2 -2
  134. package/dist/capabilities/llmgateway-providers.json +934 -907
  135. package/dist/capabilities/llmgateway.json +339 -339
  136. package/dist/capabilities/llmtr.json +27 -27
  137. package/dist/capabilities/longcat.json +2 -2
  138. package/dist/capabilities/lowrouter.json +53 -53
  139. package/dist/capabilities/lyceum.json +8 -8
  140. package/dist/capabilities/melious.json +13 -13
  141. package/dist/capabilities/merge-gateway.json +284 -284
  142. package/dist/capabilities/meta.json +11 -11
  143. package/dist/capabilities/minimax-cn-coding-plan.json +6 -6
  144. package/dist/capabilities/minimax-coding-plan.json +6 -6
  145. package/dist/capabilities/mistral.json +22 -22
  146. package/dist/capabilities/mixlayer.json +3 -3
  147. package/dist/capabilities/modal.json +13 -13
  148. package/dist/capabilities/model-oracle-ai.json +23 -23
  149. package/dist/capabilities/modelis.json +21 -21
  150. package/dist/capabilities/modelscope.json +2 -2
  151. package/dist/capabilities/modular.json +10 -10
  152. package/dist/capabilities/moneo.json +14 -14
  153. package/dist/capabilities/moonshotai-cn.json +7 -7
  154. package/dist/capabilities/moonshotai.json +7 -7
  155. package/dist/capabilities/morph.json +15 -15
  156. package/dist/capabilities/munito-eu.json +8 -8
  157. package/dist/capabilities/munito.json +10 -10
  158. package/dist/capabilities/nan.json +25 -25
  159. package/dist/capabilities/nano-gpt.json +570 -570
  160. package/dist/capabilities/nearai.json +87 -87
  161. package/dist/capabilities/nebius.json +41 -32
  162. package/dist/capabilities/neon.json +132 -132
  163. package/dist/capabilities/neuralwatt.json +38 -38
  164. package/dist/capabilities/novita-ai.json +153 -153
  165. package/dist/capabilities/nvidia.json +28 -28
  166. package/dist/capabilities/obscurify.json +33 -33
  167. package/dist/capabilities/oci.json +6 -6
  168. package/dist/capabilities/ofox.json +322 -322
  169. package/dist/capabilities/ollama-cloud.json +52 -52
  170. package/dist/capabilities/openai.json +47 -47
  171. package/dist/capabilities/opencode-go.json +79 -78
  172. package/dist/capabilities/openreason.json +5 -5
  173. package/dist/capabilities/openrouter.json +520 -530
  174. package/dist/capabilities/opper.json +30 -24
  175. package/dist/capabilities/orcarouter.json +227 -227
  176. package/dist/capabilities/outerlabs.json +28 -28
  177. package/dist/capabilities/ovhcloud.json +8 -8
  178. package/dist/capabilities/pareto.json +5 -5
  179. package/dist/capabilities/perplexity-agent.json +64 -64
  180. package/dist/capabilities/perplexity.json +2 -2
  181. package/dist/capabilities/phala.json +36 -36
  182. package/dist/capabilities/pioneer.json +30 -30
  183. package/dist/capabilities/poe.json +109 -109
  184. package/dist/capabilities/powerspring.json +10 -10
  185. package/dist/capabilities/primalabs.json +10 -10
  186. package/dist/capabilities/prime.json +116 -99
  187. package/dist/capabilities/privatemode-ai.json +10 -10
  188. package/dist/capabilities/proxystacks.json +7 -7
  189. package/dist/capabilities/qiniu-ai.json +12 -12
  190. package/dist/capabilities/refuseless.json +8 -8
  191. package/dist/capabilities/regolo-ai.json +8 -8
  192. package/dist/capabilities/requesty.json +172 -172
  193. package/dist/capabilities/ruapi.json +21 -21
  194. package/dist/capabilities/runcrate.json +15 -15
  195. package/dist/capabilities/runinfra.json +20 -20
  196. package/dist/capabilities/sakana.json +7 -7
  197. package/dist/capabilities/sambanova.json +4 -4
  198. package/dist/capabilities/sandbase.json +30 -30
  199. package/dist/capabilities/sarvam.json +5 -5
  200. package/dist/capabilities/scaleway.json +17 -17
  201. package/dist/capabilities/scnet-token-plan.json +8 -8
  202. package/dist/capabilities/scx-ai.json +26 -26
  203. package/dist/capabilities/sensenova.json +7 -7
  204. package/dist/capabilities/siliconflow-cn.json +45 -45
  205. package/dist/capabilities/siliconflow.json +59 -59
  206. package/dist/capabilities/snowflake-cortex.json +25 -25
  207. package/dist/capabilities/sokkan.json +9 -9
  208. package/dist/capabilities/sparrowcodes.json +23 -23
  209. package/dist/capabilities/standardcompute.json +103 -103
  210. package/dist/capabilities/steadyrouter.json +39 -39
  211. package/dist/capabilities/stepfun-ai-step-plan.json +6 -6
  212. package/dist/capabilities/stepfun-ai.json +6 -6
  213. package/dist/capabilities/stepfun-step-plan.json +6 -6
  214. package/dist/capabilities/stepfun.json +6 -6
  215. package/dist/capabilities/stepping-stone.json +13 -13
  216. package/dist/capabilities/subconscious.json +2 -2
  217. package/dist/capabilities/synthetic.json +11 -11
  218. package/dist/capabilities/synthorai.json +27 -27
  219. package/dist/capabilities/teamorouter.json +30 -30
  220. package/dist/capabilities/teapot-router.json +13 -13
  221. package/dist/capabilities/tencent-token-plan.json +24 -24
  222. package/dist/capabilities/tencent-tokenhub.json +9 -9
  223. package/dist/capabilities/tensorx.json +45 -45
  224. package/dist/capabilities/tenstorrent.json +6 -6
  225. package/dist/capabilities/the-grid-ai.json +24 -24
  226. package/dist/capabilities/thinkingmachines.json +59 -59
  227. package/dist/capabilities/tinfoil.json +14 -14
  228. package/dist/capabilities/toapis.json +2 -2
  229. package/dist/capabilities/togetherai.json +53 -53
  230. package/dist/capabilities/tokengo.json +25 -25
  231. package/dist/capabilities/tokenify.json +10 -10
  232. package/dist/capabilities/trustedrouter.json +7 -7
  233. package/dist/capabilities/trustedtokens.json +16 -16
  234. package/dist/capabilities/umans-ai-coding-plan.json +15 -15
  235. package/dist/capabilities/umans-ai.json +8 -8
  236. package/dist/capabilities/uncensuredai.json +4 -4
  237. package/dist/capabilities/unrestricted.json +4 -4
  238. package/dist/capabilities/uplinkswitch.json +20 -20
  239. package/dist/capabilities/upstage.json +6 -6
  240. package/dist/capabilities/vancine.json +22 -22
  241. package/dist/capabilities/vercel.json +569 -577
  242. package/dist/capabilities/vivgrid.json +80 -80
  243. package/dist/capabilities/volcengine-coding-plan.json +26 -26
  244. package/dist/capabilities/volcengine.json +30 -30
  245. package/dist/capabilities/vultr.json +25 -25
  246. package/dist/capabilities/wafer.ai.json +18 -18
  247. package/dist/capabilities/wallaby.json +5 -5
  248. package/dist/capabilities/wally.json +8 -8
  249. package/dist/capabilities/wandb.json +20 -20
  250. package/dist/capabilities/watt.json +20 -20
  251. package/dist/capabilities/xai.json +6 -6
  252. package/dist/capabilities/xiaomi.json +5 -5
  253. package/dist/capabilities/xpersona.json +12 -12
  254. package/dist/capabilities/xxapi.json +33 -33
  255. package/dist/capabilities/zai-coding-plan.json +9 -9
  256. package/dist/capabilities/zai.json +27 -27
  257. package/dist/capabilities/zenifra.json +23 -23
  258. package/dist/capabilities/zenmux.json +192 -192
  259. package/dist/capabilities/zerogpu.json +10 -10
  260. package/dist/capabilities/zhipuai-coding-plan.json +7 -7
  261. package/dist/capabilities/zhipuai.json +26 -26
  262. package/dist/capabilities/zro.json +6 -6
  263. package/dist/channels/index.cjs +2 -2
  264. package/dist/channels/index.js +2 -2
  265. package/dist/{channels-Dx4jiXeK.js → channels-BRVCOutx.js} +1 -1
  266. package/dist/{channels-q6qnuRNV.cjs → channels-MjTA9bFp.cjs} +1 -1
  267. package/dist/coding-agent/index.cjs +2 -2
  268. package/dist/coding-agent/index.js +2 -2
  269. package/dist/datasets/dataset.d.ts +13 -6
  270. package/dist/datasets/experiment/durable.d.ts +16 -0
  271. package/dist/datasets/experiment/index.d.ts +2 -1
  272. package/dist/datasets/experiment/item.d.ts +26 -4
  273. package/dist/datasets/experiment/retries.d.ts +18 -0
  274. package/dist/datasets/experiment/types.d.ts +18 -0
  275. package/dist/datasets/experiment/workflow-id.d.ts +7 -0
  276. package/dist/datasets/experiment/workflow.d.ts +74 -0
  277. package/dist/datasets/index.cjs +3 -2
  278. package/dist/datasets/index.d.ts +2 -1
  279. package/dist/datasets/index.js +3 -3
  280. package/dist/docs/SKILL.md +2 -2
  281. package/dist/docs/assets/SOURCE_MAP.json +790 -790
  282. package/dist/docs/references/docs-deployment-workers.md +1 -1
  283. package/dist/docs/references/docs-evals-experiments.md +29 -1
  284. package/dist/docs/references/docs-harness-durable-agents.md +9 -5
  285. package/dist/docs/references/docs-knowledge-agents-and-tools.md +1 -0
  286. package/dist/docs/references/docs-knowledge-load-your-content.md +1 -1
  287. package/dist/docs/references/docs-mastra-platform-observability-overview.md +1 -1
  288. package/dist/docs/references/docs-server-pubsub.md +51 -8
  289. package/dist/docs/references/docs-signals-running-across-processes.md +2 -0
  290. package/dist/docs/references/docs-workflows-overview.md +1 -1
  291. package/dist/docs/references/docs-workflows-scheduled-workflows.md +1 -1
  292. package/dist/docs/references/integrations-channels-slack.md +4 -2
  293. package/dist/docs/references/integrations.md +6 -0
  294. package/dist/docs/references/reference-agents-agent.md +2 -0
  295. package/dist/docs/references/reference-agents-channels.md +116 -27
  296. package/dist/docs/references/reference-agents-durable-agent.md +2 -0
  297. package/dist/docs/references/reference-datasets-runExperimentItem.md +13 -1
  298. package/dist/docs/references/reference-datasets-startExperimentAsync.md +3 -1
  299. package/dist/docs/references/reference-editor-mastra-editor.md +3 -1
  300. package/dist/docs/references/reference-knowledge-knowledge-class.md +2 -2
  301. package/dist/docs/references/reference-knowledge-knowledge-tools.md +43 -20
  302. package/dist/docs/references/reference-processors-moderation-processor.md +2 -2
  303. package/dist/docs/references/reference-pubsub-base.md +5 -1
  304. package/dist/docs/references/reference-pubsub-event-emitter.md +2 -0
  305. package/dist/docs/references/reference-pubsub-redis-streams.md +1 -1
  306. package/dist/docs/references/reference-pubsub-unix-socket-pubsub.md +2 -0
  307. package/dist/docs/references/reference-streaming-ChunkType.md +1 -1
  308. package/dist/docs/references/reference-workers-overview.md +1 -1
  309. package/dist/docs/references/reference-workflows-run-methods-start.md +23 -0
  310. package/dist/docs/references/reference-workflows-run-methods-timeTravel.md +4 -0
  311. package/dist/docs/references/reference-workflows-run.md +1 -1
  312. package/dist/evals/index.cjs +1 -1
  313. package/dist/evals/index.js +1 -1
  314. package/dist/evals/scoreTraces/index.cjs +1 -1
  315. package/dist/evals/scoreTraces/index.js +1 -1
  316. package/dist/events/caching-pubsub.d.ts +1 -0
  317. package/dist/events/event-emitter/index.d.ts +12 -5
  318. package/dist/events/index.cjs +15 -1
  319. package/dist/events/index.js +15 -1
  320. package/dist/events/pubsub.d.ts +29 -0
  321. package/dist/events/reach.d.ts +11 -0
  322. package/dist/events/unix-socket-pubsub.d.ts +14 -0
  323. package/dist/harness/index.cjs +1 -1
  324. package/dist/harness/index.js +1 -1
  325. package/dist/index.cjs +1 -1
  326. package/dist/index.js +1 -1
  327. package/dist/knowledge/index.cjs +1 -1
  328. package/dist/knowledge/index.js +1 -1
  329. package/dist/llm/index.cjs +3 -3
  330. package/dist/llm/index.js +3 -3
  331. package/dist/llm/model/provider-types.generated.d.ts +8092 -8089
  332. package/dist/llm/model/shared.types.d.ts +31 -0
  333. package/dist/{llm-DnXK3Pmw.js → llm-Djd8Qzi0.js} +2 -2
  334. package/dist/{llm-CsQuqKPc.cjs → llm-DmUucguC.cjs} +2 -2
  335. package/dist/loop/index.cjs +2 -2
  336. package/dist/loop/index.js +2 -2
  337. package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts +2 -2
  338. package/dist/{manager-BsghM-UL.js → manager-CO_Xz2zR.js} +460 -94
  339. package/dist/{manager-DwFnIrI6.cjs → manager-D27PkIPo.cjs} +476 -92
  340. package/dist/mastra/index.cjs +1 -1
  341. package/dist/mastra/index.d.ts +13 -0
  342. package/dist/mastra/index.js +1 -1
  343. package/dist/{mastra-B8i1UDZs.js → mastra-Ch00nEAJ.js} +31 -16
  344. package/dist/{mastra-Cn5NC6Es.cjs → mastra-qsVWpOTi.cjs} +31 -16
  345. package/dist/memory/index.cjs +2 -2
  346. package/dist/memory/index.js +2 -2
  347. package/dist/{model-CsOcWMUt.js → model-CW-mfGYA.js} +1 -1
  348. package/dist/{model-CNPfry_X.cjs → model-Do6DTJoj.cjs} +1 -1
  349. package/dist/{netlify-C-83Fxus.cjs → netlify-DU32SDT6.cjs} +1 -1
  350. package/dist/{netlify-C-OpNSGp.js → netlify-DZSAbdve.js} +1 -1
  351. package/dist/notifications/index.cjs +1 -1
  352. package/dist/notifications/index.js +1 -1
  353. package/dist/{output-helpers-JL-HeCbT.cjs → output-helpers-1Zu4Vt9C.cjs} +68 -25
  354. package/dist/{output-helpers-D4II19No.js → output-helpers-CedRCE17.js} +69 -26
  355. package/dist/processor-provider/index.cjs +1 -1
  356. package/dist/processor-provider/index.js +1 -1
  357. package/dist/processors/index.cjs +2 -2
  358. package/dist/processors/index.js +2 -2
  359. package/dist/{provider-registry-RZ8EgSe8.js → provider-registry-deA0x-Gd.js} +22467 -22456
  360. package/dist/{provider-registry-9O-H9osy.cjs → provider-registry-zGezZVsL.cjs} +22467 -22456
  361. package/dist/provider-registry.json +22423 -22408
  362. package/dist/{registry-generator-DxCX-FiO.cjs → registry-generator-BkQ1AxZn.cjs} +1 -1
  363. package/dist/{registry-generator-e8sltJls.js → registry-generator-VvBfOKAD.js} +1 -1
  364. package/dist/{rehydrate-D3fPgJwp.js → rehydrate-BjLV643n.js} +2 -2
  365. package/dist/{rehydrate-B-wrAN7C.cjs → rehydrate-DDYFpQsV.cjs} +2 -2
  366. package/dist/relevance/index.cjs +2 -2
  367. package/dist/relevance/index.js +2 -2
  368. package/dist/{run-registry-5_LQBGn_.cjs → run-registry-5Suldxz3.cjs} +519 -71
  369. package/dist/{run-registry-DC03XLeZ.js → run-registry-CGRPldLH.js} +519 -71
  370. package/dist/storage/domains/knowledge/base.d.ts +5 -0
  371. package/dist/storage/domains/knowledge/inmemory.d.ts +1 -0
  372. package/dist/storage/domains/knowledge/pages.d.ts +24 -7
  373. package/dist/storage/index.cjs +2 -2
  374. package/dist/storage/index.js +2 -2
  375. package/dist/stream/base/output.d.ts +42 -15
  376. package/dist/stream/index.cjs +2 -2
  377. package/dist/stream/index.js +2 -2
  378. package/dist/stream/types.d.ts +19 -0
  379. package/dist/{stream-CJUm6EAH.js → stream-Dpwx0whf.js} +1 -1
  380. package/dist/{stream-4aNIw_TQ.cjs → stream-Dvy_0o14.cjs} +1 -1
  381. package/dist/test-utils/llm-mock.cjs +1 -1
  382. package/dist/test-utils/llm-mock.js +1 -1
  383. package/dist/tool-loop-agent/index.cjs +1 -1
  384. package/dist/tool-loop-agent/index.js +1 -1
  385. package/dist/{tool-loop-agent-FEEwHfmg.js → tool-loop-agent-PbWrEj1k.js} +3 -3
  386. package/dist/{tool-loop-agent-Dn0QCB9n.cjs → tool-loop-agent-UxOv3FoK.cjs} +3 -3
  387. package/dist/tools/types.d.ts +27 -1
  388. package/dist/{utils-DY01hxVd.cjs → utils-BbMTlyBO.cjs} +1 -1
  389. package/dist/{utils-Bd_y1_a-.js → utils-BnNi1BYM.js} +1 -1
  390. package/dist/utils.cjs +1 -1
  391. package/dist/utils.js +1 -1
  392. package/dist/{validate-CX0yQo_q.js → validate-HSBcm96b.js} +1 -1
  393. package/dist/{validate-CuB_1Zd3.cjs → validate-Skps-cM3.cjs} +1 -1
  394. package/dist/vector/index.cjs +1 -1
  395. package/dist/vector/index.js +1 -1
  396. package/dist/worker/index.cjs +1 -1
  397. package/dist/worker/index.js +1 -1
  398. package/dist/{worker-GsGIxPMa.cjs → worker-BE-0DyKL.cjs} +2 -2
  399. package/dist/{worker-DSEfMPmq.js → worker-BKrKHZzU.js} +2 -2
  400. package/dist/{worker-CbaSmip-.cjs → worker-BNS5A3qP.cjs} +2 -2
  401. package/dist/{worker-B80xkcKG.js → worker-DehaD4qD.js} +2 -2
  402. package/dist/{workflow-CnBPXTpv.cjs → workflow-BjUTwaK9.cjs} +4 -4
  403. package/dist/{workflow-CZHY_C85.js → workflow-Bvw6yDjc.js} +4 -4
  404. package/dist/workflows/builder/index.cjs +1 -1
  405. package/dist/workflows/builder/index.js +1 -1
  406. package/dist/workflows/evented/index.cjs +1 -1
  407. package/dist/workflows/evented/index.js +1 -1
  408. package/dist/workflows/evented/setup-warning.d.ts +18 -0
  409. package/dist/workflows/evented/workflow-event-processor/run-status.d.ts +37 -0
  410. package/dist/workflows/evented/workflow.d.ts +10 -0
  411. package/dist/workflows/index.cjs +4 -4
  412. package/dist/workflows/index.js +4 -4
  413. package/dist/workflows/workflow.d.ts +6 -1
  414. package/dist/workspace/index.cjs +1 -1
  415. package/dist/workspace/index.js +1 -1
  416. package/dist/{workspace-D7TIleIt.js → workspace-C05xDH60.js} +160 -7
  417. package/dist/{workspace-D2drutNg.cjs → workspace-D1OzzlLw.cjs} +160 -7
  418. package/package.json +6 -6
  419. package/src/llm/model/provider-types.generated.d.ts +8092 -8089
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_mastra = require("../mastra-Cn5NC6Es.cjs");
2
+ const require_mastra = require("../mastra-qsVWpOTi.cjs");
3
3
  exports.Mastra = require_mastra.Mastra;
@@ -222,6 +222,11 @@ export interface Config<TAgents extends Record<string, Agent<any>> = Record<stri
222
222
  bundler?: BundlerConfig;
223
223
  /**
224
224
  * Pub/sub system for event-driven communication between components.
225
+ *
226
+ * The default delivers inside this process. Evented workflows and evented
227
+ * agents that run on several processes need a pubsub that redelivers
228
+ * unacknowledged events and a workflows store with step guards.
229
+ * @see https://mastra.ai/docs/server/pubsub#evented-workflows-and-agents
225
230
  * @default EventEmitterPubSub
226
231
  */
227
232
  pubsub?: PubSub;
@@ -1431,6 +1436,14 @@ export declare class Mastra<TAgents extends Record<string, Agent<any>> = Record<
1431
1436
  * @internal
1432
1437
  */
1433
1438
  __hasLocalWorkflowExecution(): boolean;
1439
+ /**
1440
+ * Register the durable experiment workflow (`__mastra-experiment`) once.
1441
+ * Registered `distributed` because every process registers it identically,
1442
+ * so whichever process receives a run's events can execute them.
1443
+ *
1444
+ * @internal
1445
+ */
1446
+ __ensureExperimentWorkflow(): Promise<void>;
1434
1447
  __hasInternalWorkflow(id: string, runId?: string): boolean;
1435
1448
  __getInternalWorkflow(id: string, runId?: string): AnyWorkflow;
1436
1449
  /**
@@ -1 +1 @@
1
- export { t as Mastra } from "../mastra-B8i1UDZs.js";
1
+ export { t as Mastra } from "../mastra-Ch00nEAJ.js";
@@ -1,13 +1,13 @@
1
- import { Cc as createConcurrencyLimiter, Ds as createStep, En as AgentChannels, Lr as dispatchDueNotifications, Oo as augmentWithInit, Os as createWorkflow, Tc as runWithConcurrency, Vl as runOutsideRunFenceScope, Xi as BackgroundTasksInMemory, _c as repeatAfterSettled, br as WorkflowsInMemory, cl as waitMs, dc as createNestedRunParentStatusLookup, dl as isDurableAgentLike, fc as nestedRunParentOf, gc as renewWorkflowLease, hc as WORKFLOW_RUN_LEASE_TTL_MS, js as computeScheduleDefinitionHash, jt as __registerMastraCtor, ko as getStorageSource, ks as WorkflowEventProcessor, l as isDurableAgentExecutionDetached, mc as nestedRunStatusOf, o as getActiveDurableAgentWorkflowExecutions, p as agentThreadStreamRuntime, pc as nestedRunRecoveryAction, r as abandonDurableAgentExecutions, sl as assertDrainTimeout, uc as cancelNestedRun, vr as InMemoryStore, wc as normalizeConcurrency, y as createOnScorerHook } from "./run-registry-DC03XLeZ.js";
2
- import { s as BackgroundTaskManager } from "./background-tasks-BgpX1P_s.js";
1
+ import { Cc as createConcurrencyLimiter, Ds as createStep, En as AgentChannels, Lr as dispatchDueNotifications, Oo as augmentWithInit, Os as createWorkflow, Tc as runWithConcurrency, Vl as runOutsideRunFenceScope, Xi as BackgroundTasksInMemory, _c as repeatAfterSettled, br as WorkflowsInMemory, cl as waitMs, dc as createNestedRunParentStatusLookup, dl as isDurableAgentLike, fc as nestedRunParentOf, gc as renewWorkflowLease, hc as WORKFLOW_RUN_LEASE_TTL_MS, js as computeScheduleDefinitionHash, jt as __registerMastraCtor, ko as getStorageSource, ks as WorkflowEventProcessor, l as isDurableAgentExecutionDetached, mc as nestedRunStatusOf, o as getActiveDurableAgentWorkflowExecutions, p as agentThreadStreamRuntime, pc as nestedRunRecoveryAction, r as abandonDurableAgentExecutions, sl as assertDrainTimeout, uc as cancelNestedRun, vr as InMemoryStore, wc as normalizeConcurrency, y as createOnScorerHook } from "./run-registry-CGRPldLH.js";
2
+ import { s as BackgroundTaskManager } from "./background-tasks-Cv1ecD6S.js";
3
3
  import { t as InMemoryServerCache } from "./inmemory-BDD0w8gx.js";
4
- import { t as DatasetsManager } from "./manager-BsghM-UL.js";
4
+ import { t as DatasetsManager } from "./manager-CO_Xz2zR.js";
5
5
  import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "./error-oh2DLsP2.js";
6
- import { g as EventEmitterPubSub, u as isRunLocalTopic } from "./output-helpers-D4II19No.js";
6
+ import { h as EventEmitterPubSub, u as isRunLocalTopic } from "./output-helpers-CedRCE17.js";
7
7
  import { a as registerHook, r as deregisterHook } from "./hooks-Bth8Cjpj.js";
8
8
  import { LicenseClient } from "./license/index.js";
9
- import { p as getGatewayId } from "./netlify-C-OpNSGp.js";
10
- import { l as defaultGateways } from "./llm-DnXK3Pmw.js";
9
+ import { p as getGatewayId } from "./netlify-DZSAbdve.js";
10
+ import { l as defaultGateways } from "./llm-Djd8Qzi0.js";
11
11
  import { l as isAdaptableLogger, n as LogLevel, t as ConsoleLogger, u as noopLogger } from "./logger-BwbmRqfc.js";
12
12
  import { DualLogger, createExportSuppressedLogger, isObservabilityExportSuppressed, resolveTraceFields } from "./logger/index.js";
13
13
  import { c as fsAgentScheduleRowId, g as toEpochMs, h as computeNextFireAt, l as parseFsAgentScheduleRowId, m as computeNextFire, t as Schedules } from "./schedules-DZfSx-7P.js";
@@ -16,14 +16,14 @@ import { initContextStorage } from "./observability/context-storage.js";
16
16
  import { f as resolveCurrentSpan } from "./utils-DU_pU5SK.js";
17
17
  import { r as InMemoryDB } from "./source-Did_2XQc.js";
18
18
  import { r as trackFeatureUsage } from "./feature-telemetry-DdR8J_5o.js";
19
- import { r as isToolLoopAgentLike, t as toolLoopAgentToMastraAgent } from "./tool-loop-agent-FEEwHfmg.js";
19
+ import { r as isToolLoopAgentLike, t as toolLoopAgentToMastraAgent } from "./tool-loop-agent-PbWrEj1k.js";
20
20
  import { r as normalizeToolPayloadTransformPolicy } from "./payload-transform-Dj3HUeD4.js";
21
- import { v as readPositiveIntEnv } from "./utils-Bd_y1_a-.js";
22
- import { i as OrchestrationWorker, n as BackgroundTaskWorker, r as SchedulerWorker } from "./worker-B80xkcKG.js";
23
- import { n as normalizeWorkflowBuilderDefinition } from "./builder-x295GDL6.js";
24
- import { d as toJsonSchemaOrUndefined, p as collectNestedWorkflowIds, t as assertValidDynamicWorkflow } from "./validate-CX0yQo_q.js";
25
- import { t as rehydrateWorkflow } from "./rehydrate-D3fPgJwp.js";
26
- import { Tn as createRunScope } from "./stream-CJUm6EAH.js";
21
+ import { v as readPositiveIntEnv } from "./utils-BnNi1BYM.js";
22
+ import { i as OrchestrationWorker, n as BackgroundTaskWorker, r as SchedulerWorker } from "./worker-DehaD4qD.js";
23
+ import { n as normalizeWorkflowBuilderDefinition } from "./builder-Gg-xnX_E.js";
24
+ import { d as toJsonSchemaOrUndefined, p as collectNestedWorkflowIds, t as assertValidDynamicWorkflow } from "./validate-HSBcm96b.js";
25
+ import { t as rehydrateWorkflow } from "./rehydrate-BjLV643n.js";
26
+ import { Tn as createRunScope } from "./stream-Dpwx0whf.js";
27
27
  import { z } from "zod/v4";
28
28
  // src/agent/streams/execution-capability.ts
29
29
  /** Native engine selection or the released structural adapter contract (including Inngest). */
@@ -2863,6 +2863,19 @@ var Mastra = class Mastra {
2863
2863
  if (this.#pushSubscription) return true;
2864
2864
  return !!this.#workers.find((w) => w.name === "orchestration")?.isRunning;
2865
2865
  }
2866
+ /**
2867
+ * Register the durable experiment workflow (`__mastra-experiment`) once.
2868
+ * Registered `distributed` because every process registers it identically,
2869
+ * so whichever process receives a run's events can execute them.
2870
+ *
2871
+ * @internal
2872
+ */
2873
+ async __ensureExperimentWorkflow() {
2874
+ if (this.__hasInternalWorkflow("__mastra-experiment")) return;
2875
+ const { buildExperimentWorkflow } = await import("./manager-CO_Xz2zR.js").then((n) => n.y);
2876
+ if (this.__hasInternalWorkflow("__mastra-experiment")) return;
2877
+ this.__registerInternalWorkflow(buildExperimentWorkflow(), void 0, { distributed: true });
2878
+ }
2866
2879
  __hasInternalWorkflow(id, runId) {
2867
2880
  if (runId) {
2868
2881
  if (this.#internalMastraWorkflows[`${id}:${runId}`]) {
@@ -5053,7 +5066,7 @@ var Mastra = class Mastra {
5053
5066
  if (!this.#workerFilter || this.#workerFilter.has("agent-schedule")) {
5054
5067
  let agentScheduleWorker = this.#findAgentScheduleWorker();
5055
5068
  if (!agentScheduleWorker) {
5056
- const { AgentScheduleWorker } = await import("./worker-DSEfMPmq.js");
5069
+ const { AgentScheduleWorker } = await import("./worker-BKrKHZzU.js");
5057
5070
  agentScheduleWorker = new AgentScheduleWorker();
5058
5071
  agentScheduleWorker.__registerMastra(this);
5059
5072
  this.#workers.push(agentScheduleWorker);
@@ -5650,6 +5663,7 @@ var Mastra = class Mastra {
5650
5663
  retry: true
5651
5664
  };
5652
5665
  }
5666
+ if (event.data?.workflowId === "__mastra-experiment") await this.__ensureExperimentWorkflow();
5653
5667
  if (!this.#workflowEventProcessor) this.#workflowEventProcessor = new WorkflowEventProcessor({ mastra: this });
5654
5668
  return this.#workflowEventProcessor.handle(event);
5655
5669
  }
@@ -5672,6 +5686,7 @@ var Mastra = class Mastra {
5672
5686
  async startWorkers(name) {
5673
5687
  if (this.#storage) await this.#storage.init();
5674
5688
  this.#initializeDurableAgents();
5689
+ await this.__ensureExperimentWorkflow();
5675
5690
  const schedulerSelected = !this.#schedulerDisabled() && (!this.#workerFilter || this.#workerFilter.has("scheduler"));
5676
5691
  const schedulerForcedByFilter = schedulerSelected && (this.#workerFilter?.has("scheduler") ?? false);
5677
5692
  if (!name && schedulerSelected && this.#storage && !this.#findSchedulerWorker()?.isRunning) try {
@@ -5690,7 +5705,7 @@ var Mastra = class Mastra {
5690
5705
  this.#workers.push(sw);
5691
5706
  }
5692
5707
  if (!this.#findAgentScheduleWorker()) {
5693
- const { AgentScheduleWorker } = await import("./worker-DSEfMPmq.js");
5708
+ const { AgentScheduleWorker } = await import("./worker-BKrKHZzU.js");
5694
5709
  const asw = new AgentScheduleWorker();
5695
5710
  asw.__registerMastra(this);
5696
5711
  this.#workers.push(asw);
@@ -6135,7 +6150,7 @@ var Mastra = class Mastra {
6135
6150
  #syncGatewayRegistry() {
6136
6151
  try {
6137
6152
  if (process.env.MASTRA_DEV !== "true" && process.env.MASTRA_DEV !== "1") return;
6138
- import("./provider-registry-RZ8EgSe8.js").then((n) => n.d).then(async ({ GatewayRegistry }) => {
6153
+ import("./provider-registry-deA0x-Gd.js").then((n) => n.d).then(async ({ GatewayRegistry }) => {
6139
6154
  const registry = GatewayRegistry.getInstance();
6140
6155
  const customGateways = Object.values(this.#gateways || {});
6141
6156
  registry.registerCustomGateways(customGateways);
@@ -1,13 +1,13 @@
1
- const require_run_registry = require("./run-registry-5_LQBGn_.cjs");
2
- const require_background_tasks = require("./background-tasks-DqnQMfuf.cjs");
1
+ const require_run_registry = require("./run-registry-5Suldxz3.cjs");
2
+ const require_background_tasks = require("./background-tasks-7iftnRK_.cjs");
3
3
  const require_inmemory = require("./inmemory-fgR8sq-U.cjs");
4
- const require_manager = require("./manager-DwFnIrI6.cjs");
4
+ const require_manager = require("./manager-D27PkIPo.cjs");
5
5
  const require_error = require("./error-D90lJ6M7.cjs");
6
- const require_output_helpers = require("./output-helpers-JL-HeCbT.cjs");
6
+ const require_output_helpers = require("./output-helpers-1Zu4Vt9C.cjs");
7
7
  const require_hooks = require("./hooks-D7VDBETj.cjs");
8
8
  const require_license_index = require("./license/index.cjs");
9
- const require_netlify = require("./netlify-C-83Fxus.cjs");
10
- const require_llm = require("./llm-CsQuqKPc.cjs");
9
+ const require_netlify = require("./netlify-DU32SDT6.cjs");
10
+ const require_llm = require("./llm-DmUucguC.cjs");
11
11
  const require_logger = require("./logger-CvzZYuJd.cjs");
12
12
  const require_logger_index = require("./logger/index.cjs");
13
13
  const require_schedules = require("./schedules-BZS8McF7.cjs");
@@ -16,14 +16,14 @@ const require_observability_context_storage = require("./observability/context-s
16
16
  const require_utils = require("./utils-D-eNsgDM.cjs");
17
17
  const require_source = require("./source-DDwx-87N.cjs");
18
18
  const require_feature_telemetry = require("./feature-telemetry-Cw0L1tHo.cjs");
19
- const require_tool_loop_agent = require("./tool-loop-agent-Dn0QCB9n.cjs");
19
+ const require_tool_loop_agent = require("./tool-loop-agent-UxOv3FoK.cjs");
20
20
  const require_payload_transform = require("./payload-transform-CWgnsO9w.cjs");
21
- const require_utils$1 = require("./utils-DY01hxVd.cjs");
22
- const require_worker = require("./worker-GsGIxPMa.cjs");
23
- const require_builder = require("./builder-D8Osghdo.cjs");
24
- const require_validate = require("./validate-CuB_1Zd3.cjs");
25
- const require_rehydrate = require("./rehydrate-B-wrAN7C.cjs");
26
- const require_stream = require("./stream-4aNIw_TQ.cjs");
21
+ const require_utils$1 = require("./utils-BbMTlyBO.cjs");
22
+ const require_worker = require("./worker-BE-0DyKL.cjs");
23
+ const require_builder = require("./builder-DuJBbQDH.cjs");
24
+ const require_validate = require("./validate-Skps-cM3.cjs");
25
+ const require_rehydrate = require("./rehydrate-DDYFpQsV.cjs");
26
+ const require_stream = require("./stream-Dvy_0o14.cjs");
27
27
  let zod_v4 = require("zod/v4");
28
28
  // src/agent/streams/execution-capability.ts
29
29
  /** Native engine selection or the released structural adapter contract (including Inngest). */
@@ -2863,6 +2863,19 @@ var Mastra = class Mastra {
2863
2863
  if (this.#pushSubscription) return true;
2864
2864
  return !!this.#workers.find((w) => w.name === "orchestration")?.isRunning;
2865
2865
  }
2866
+ /**
2867
+ * Register the durable experiment workflow (`__mastra-experiment`) once.
2868
+ * Registered `distributed` because every process registers it identically,
2869
+ * so whichever process receives a run's events can execute them.
2870
+ *
2871
+ * @internal
2872
+ */
2873
+ async __ensureExperimentWorkflow() {
2874
+ if (this.__hasInternalWorkflow("__mastra-experiment")) return;
2875
+ const { buildExperimentWorkflow } = await Promise.resolve().then(() => require("./manager-D27PkIPo.cjs")).then((n) => n.workflow_exports);
2876
+ if (this.__hasInternalWorkflow("__mastra-experiment")) return;
2877
+ this.__registerInternalWorkflow(buildExperimentWorkflow(), void 0, { distributed: true });
2878
+ }
2866
2879
  __hasInternalWorkflow(id, runId) {
2867
2880
  if (runId) {
2868
2881
  if (this.#internalMastraWorkflows[`${id}:${runId}`]) {
@@ -5053,7 +5066,7 @@ var Mastra = class Mastra {
5053
5066
  if (!this.#workerFilter || this.#workerFilter.has("agent-schedule")) {
5054
5067
  let agentScheduleWorker = this.#findAgentScheduleWorker();
5055
5068
  if (!agentScheduleWorker) {
5056
- const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-CbaSmip-.cjs"));
5069
+ const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-BNS5A3qP.cjs"));
5057
5070
  agentScheduleWorker = new AgentScheduleWorker();
5058
5071
  agentScheduleWorker.__registerMastra(this);
5059
5072
  this.#workers.push(agentScheduleWorker);
@@ -5650,6 +5663,7 @@ var Mastra = class Mastra {
5650
5663
  retry: true
5651
5664
  };
5652
5665
  }
5666
+ if (event.data?.workflowId === "__mastra-experiment") await this.__ensureExperimentWorkflow();
5653
5667
  if (!this.#workflowEventProcessor) this.#workflowEventProcessor = new require_run_registry.WorkflowEventProcessor({ mastra: this });
5654
5668
  return this.#workflowEventProcessor.handle(event);
5655
5669
  }
@@ -5672,6 +5686,7 @@ var Mastra = class Mastra {
5672
5686
  async startWorkers(name) {
5673
5687
  if (this.#storage) await this.#storage.init();
5674
5688
  this.#initializeDurableAgents();
5689
+ await this.__ensureExperimentWorkflow();
5675
5690
  const schedulerSelected = !this.#schedulerDisabled() && (!this.#workerFilter || this.#workerFilter.has("scheduler"));
5676
5691
  const schedulerForcedByFilter = schedulerSelected && (this.#workerFilter?.has("scheduler") ?? false);
5677
5692
  if (!name && schedulerSelected && this.#storage && !this.#findSchedulerWorker()?.isRunning) try {
@@ -5690,7 +5705,7 @@ var Mastra = class Mastra {
5690
5705
  this.#workers.push(sw);
5691
5706
  }
5692
5707
  if (!this.#findAgentScheduleWorker()) {
5693
- const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-CbaSmip-.cjs"));
5708
+ const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-BNS5A3qP.cjs"));
5694
5709
  const asw = new AgentScheduleWorker();
5695
5710
  asw.__registerMastra(this);
5696
5711
  this.#workers.push(asw);
@@ -6135,7 +6150,7 @@ var Mastra = class Mastra {
6135
6150
  #syncGatewayRegistry() {
6136
6151
  try {
6137
6152
  if (process.env.MASTRA_DEV !== "true" && process.env.MASTRA_DEV !== "1") return;
6138
- Promise.resolve().then(() => require("./provider-registry-9O-H9osy.cjs")).then((n) => n.provider_registry_exports).then(async ({ GatewayRegistry }) => {
6153
+ Promise.resolve().then(() => require("./provider-registry-zGezZVsL.cjs")).then((n) => n.provider_registry_exports).then(async ({ GatewayRegistry }) => {
6139
6154
  const registry = GatewayRegistry.getInstance();
6140
6155
  const customGateways = Object.values(this.#gateways || {});
6141
6156
  registry.registerCustomGateways(customGateways);
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_stream = require("../stream-4aNIw_TQ.cjs");
3
- const require_run_registry = require("../run-registry-5_LQBGn_.cjs");
2
+ const require_run_registry = require("../run-registry-5Suldxz3.cjs");
3
+ const require_stream = require("../stream-Dvy_0o14.cjs");
4
4
  const require_message_list = require("../message-list-DPXPXvin.cjs");
5
5
  exports.AUTHORED_USER_TURN = require_message_list.AUTHORED_USER_TURN;
6
6
  exports.DEFAULT_MESSAGE_EMBEDDING_MAX_CHUNK_CHARS = require_run_registry.DEFAULT_MESSAGE_EMBEDDING_MAX_CHUNK_CHARS;
@@ -1,4 +1,4 @@
1
- import { Bt as TITLE_PINNED_THREAD_METADATA_KEY, Gt as setThreadOMMetadata, Ht as isObservationalMemoryEnabled, Ut as isThreadTitlePinned, Vt as getThreadOMMetadata, Wt as parseMemoryRequestContext } from "../stream-CJUm6EAH.js";
2
- import { $o as normalizeMessageHistoryConfig, Co as MastraMemory, Do as isSystemReminderMessage, Eo as filterSystemReminderMessages, Jn as getMemoryRunState, Jo as groupLinkedToolMessages, Qo as isAfterMemoryTokenBoundary, So as upsertMessageVectors, To as memoryDefaultOptions, Xo as advanceMemoryTokenBoundary, Yn as MockMemory, Yo as loadMessageHistory, Zo as getMemoryTokenBoundary, _o as buildMessageEmbeddingRows, bo as messageVectorId, go as MESSAGE_EMBEDDING_CHARS_PER_TOKEN, ho as DEFAULT_MESSAGE_EMBEDDING_MAX_CHUNK_CHARS, qn as MemoryRunState, vo as chunkMessageText, wo as MemoryProcessor, xo as resolveMaxChunkChars, yo as extractMessageEmbeddingText } from "../run-registry-DC03XLeZ.js";
1
+ import { $o as normalizeMessageHistoryConfig, Co as MastraMemory, Do as isSystemReminderMessage, Eo as filterSystemReminderMessages, Jn as getMemoryRunState, Jo as groupLinkedToolMessages, Qo as isAfterMemoryTokenBoundary, So as upsertMessageVectors, To as memoryDefaultOptions, Xo as advanceMemoryTokenBoundary, Yn as MockMemory, Yo as loadMessageHistory, Zo as getMemoryTokenBoundary, _o as buildMessageEmbeddingRows, bo as messageVectorId, go as MESSAGE_EMBEDDING_CHARS_PER_TOKEN, ho as DEFAULT_MESSAGE_EMBEDDING_MAX_CHUNK_CHARS, qn as MemoryRunState, vo as chunkMessageText, wo as MemoryProcessor, xo as resolveMaxChunkChars, yo as extractMessageEmbeddingText } from "../run-registry-CGRPldLH.js";
2
+ import { Bt as TITLE_PINNED_THREAD_METADATA_KEY, Gt as setThreadOMMetadata, Ht as isObservationalMemoryEnabled, Ut as isThreadTitlePinned, Vt as getThreadOMMetadata, Wt as parseMemoryRequestContext } from "../stream-Dpwx0whf.js";
3
3
  import { $ as AUTHORED_USER_TURN, C as extractWorkingMemoryTags, D as removeWorkingMemoryToolInvocationParts, E as removeWorkingMemoryTags, O as removeWorkingMemoryToolInvocations, S as extractWorkingMemoryContent, T as removeSystemReminderTags, _ as SYSTEM_REMINDER_START_TAG, at as stripClientAuthoredTurnMarks, b as WORKING_MEMORY_START_TAG, et as asUserTurn, g as SYSTEM_REMINDER_END_TAG, h as SET_WORKING_MEMORY_TOOL_NAME, it as sealUserTurnMessage, nt as messageDeclaresAuthoredTurn, rt as sealTurnMarkup, tt as escapeTurnMarkup, v as UPDATE_WORKING_MEMORY_TOOL_NAME, w as isWorkingMemoryToolName, x as WORKING_MEMORY_TOOL_NAMES, y as WORKING_MEMORY_END_TAG } from "../message-list-DEuRl82K.js";
4
4
  export { AUTHORED_USER_TURN, DEFAULT_MESSAGE_EMBEDDING_MAX_CHUNK_CHARS, MESSAGE_EMBEDDING_CHARS_PER_TOKEN, MastraMemory, MemoryProcessor, MemoryRunState, MockMemory, SET_WORKING_MEMORY_TOOL_NAME, SYSTEM_REMINDER_END_TAG, SYSTEM_REMINDER_START_TAG, TITLE_PINNED_THREAD_METADATA_KEY, UPDATE_WORKING_MEMORY_TOOL_NAME, WORKING_MEMORY_END_TAG, WORKING_MEMORY_START_TAG, WORKING_MEMORY_TOOL_NAMES, advanceMemoryTokenBoundary, asUserTurn, buildMessageEmbeddingRows, chunkMessageText, escapeTurnMarkup, extractMessageEmbeddingText, extractWorkingMemoryContent, extractWorkingMemoryTags, filterSystemReminderMessages, getMemoryRunState, getMemoryTokenBoundary, getThreadOMMetadata, groupLinkedToolMessages, isAfterMemoryTokenBoundary, isObservationalMemoryEnabled, isSystemReminderMessage, isThreadTitlePinned, isWorkingMemoryToolName, loadMessageHistory, memoryDefaultOptions, messageDeclaresAuthoredTurn, messageVectorId, normalizeMessageHistoryConfig, parseMemoryRequestContext, removeSystemReminderTags, removeWorkingMemoryTags, removeWorkingMemoryToolInvocationParts, removeWorkingMemoryToolInvocations, resolveMaxChunkChars, sealTurnMarkup, sealUserTurnMessage, setThreadOMMetadata, stripClientAuthoredTurnMarks, upsertMessageVectors };
@@ -4,7 +4,7 @@ import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "./error-
4
4
  import { n as executeWithContextSync, t as executeWithContext } from "./utils-DU_pU5SK.js";
5
5
  import { S as resolveObservabilityContext } from "./observability-D7RNOAPx.js";
6
6
  import { isStandardSchemaWithJSON, standardSchemaToJSONSchema, toStandardSchema } from "./schema/index.js";
7
- import { i as delay, u as isZodType$1 } from "./utils-Bd_y1_a-.js";
7
+ import { i as delay, u as isZodType$1 } from "./utils-BnNi1BYM.js";
8
8
  import { i as isZodArray, t as getZodDef } from "./zod-utils-BDDS_mxU.js";
9
9
  import { AnthropicSchemaCompatLayer, DeepSeekSchemaCompatLayer, GoogleSchemaCompatLayer, MetaSchemaCompatLayer, OpenAIReasoningSchemaCompatLayer, OpenAISchemaCompatLayer, applyCompatLayer, jsonSchema } from "@mastra/schema-compat";
10
10
  // src/stream/aisdk/v4/usage.ts
@@ -3,7 +3,7 @@ const require_base = require("./base-BIzR1D3_.cjs");
3
3
  const require_error = require("./error-D90lJ6M7.cjs");
4
4
  const require_utils = require("./utils-D-eNsgDM.cjs");
5
5
  const require_observability = require("./observability-B0R_D1PZ.cjs");
6
- const require_utils$1 = require("./utils-DY01hxVd.cjs");
6
+ const require_utils$1 = require("./utils-BbMTlyBO.cjs");
7
7
  const require_zod_utils = require("./zod-utils-Cl5jw5N_.cjs");
8
8
  let _mastra_schema_compat = require("@mastra/schema-compat");
9
9
  let _mastra_schema_compat_schema = require("@mastra/schema-compat/schema");
@@ -20709,7 +20709,7 @@ function createOpenRouter(options = {}) {
20709
20709
  }
20710
20710
  createOpenRouter({ compatibility: "strict" });
20711
20711
  // src/llm/model/gateways/constants.ts
20712
- const MASTRA_USER_AGENT = `mastra/1.86.0-alpha.7`;
20712
+ const MASTRA_USER_AGENT = `mastra/1.86.0-alpha.8`;
20713
20713
  const PROVIDERS_WITH_INSTALLED_PACKAGES = [
20714
20714
  "anthropic",
20715
20715
  "cerebras",
@@ -20708,7 +20708,7 @@ function createOpenRouter(options = {}) {
20708
20708
  }
20709
20709
  createOpenRouter({ compatibility: "strict" });
20710
20710
  // src/llm/model/gateways/constants.ts
20711
- const MASTRA_USER_AGENT = `mastra/1.86.0-alpha.7`;
20711
+ const MASTRA_USER_AGENT = `mastra/1.86.0-alpha.8`;
20712
20712
  const PROVIDERS_WITH_INSTALLED_PACKAGES = [
20713
20713
  "anthropic",
20714
20714
  "cerebras",
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_run_registry = require("../run-registry-5_LQBGn_.cjs");
2
+ const require_run_registry = require("../run-registry-5Suldxz3.cjs");
3
3
  const require_tool = require("../tool-CYlT2UA-.cjs");
4
4
  let zod_v4 = require("zod/v4");
5
5
  // src/notifications/tool.ts
@@ -1,4 +1,4 @@
1
- import { Br as notificationSignalAttributes, Fr as InMemoryNotificationsStorage, Gr as readNotificationRoutingRequirement, Hr as notificationSummaryContents, Ir as NotificationsStorage, Jr as resolveDeliveryFailureUpdate, Kr as MAX_NOTIFICATION_DELIVERY_ATTEMPTS, Lr as dispatchDueNotifications, Rr as createNotificationSignal, Ur as notificationSummarySignalMetadata, Vr as notificationSignalMetadata, Wr as summarizeNotifications, Yr as resolveNotificationDeliveryDecision, qr as defaultNotificationDeliveryDecision, zr as createNotificationSummarySignal } from "../run-registry-DC03XLeZ.js";
1
+ import { Br as notificationSignalAttributes, Fr as InMemoryNotificationsStorage, Gr as readNotificationRoutingRequirement, Hr as notificationSummaryContents, Ir as NotificationsStorage, Jr as resolveDeliveryFailureUpdate, Kr as MAX_NOTIFICATION_DELIVERY_ATTEMPTS, Lr as dispatchDueNotifications, Rr as createNotificationSignal, Ur as notificationSummarySignalMetadata, Vr as notificationSignalMetadata, Wr as summarizeNotifications, Yr as resolveNotificationDeliveryDecision, qr as defaultNotificationDeliveryDecision, zr as createNotificationSummarySignal } from "../run-registry-CGRPldLH.js";
2
2
  import { r as createTool } from "../tool-Z3bykc1m.js";
3
3
  import { z } from "zod/v4";
4
4
  // src/notifications/tool.ts
@@ -2,7 +2,42 @@ const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
2
2
  const require_error_count = require("./error-count-DeDpeWU2.cjs");
3
3
  let events = require("events");
4
4
  events = require_rolldown_runtime.__toESM(events, 1);
5
+ // src/events/acking-callback.ts
6
+ /**
7
+ * Adapt an event-only handler into an `EventCallback` that acknowledges every
8
+ * delivery.
9
+ *
10
+ * Handlers that only need the event cannot honour the `EventCallback` contract
11
+ * themselves: on a durable backend (Redis consumer groups, GCP Pub/Sub) every
12
+ * delivery — including the ones a handler inspects and filters out — has to be
13
+ * acked, or it stays in the subscription's pending set and is redelivered.
14
+ * Wrapping is the only way an event-only handler can satisfy that.
15
+ *
16
+ * A throwing handler leaves the delivery unacked and rejects the callback, which
17
+ * a backend that honours redelivery treats as a nack.
18
+ */
19
+ function withAck(handler) {
20
+ return async (event, ack) => {
21
+ await handler(event);
22
+ await ack?.();
23
+ };
24
+ }
5
25
  // src/events/pubsub.ts
26
+ /**
27
+ * The event bus behind workflow execution, streams, signals, background tasks
28
+ * and schedules.
29
+ *
30
+ * Mastra decides how to behave from the capability getters below
31
+ * (`deliversAcrossProcesses`, `redeliversUnacked`, `supportedModes`, ...), never
32
+ * from which transport class the instance is. An implementation states what its
33
+ * transport does by overriding them.
34
+ *
35
+ * Evented workflows and evented agents can run on any implementation inside one
36
+ * process. Running them on several processes needs a pubsub that redelivers
37
+ * unacknowledged events and a workflows store with step guards.
38
+ *
39
+ * @see https://mastra.ai/docs/server/pubsub#evented-workflows-and-agents
40
+ */
6
41
  var PubSub = class {
7
42
  /**
8
43
  * Delete all retained state for a topic (cached history, persistent stream
@@ -79,6 +114,19 @@ var PubSub = class {
79
114
  return false;
80
115
  }
81
116
  /**
117
+ * Whether an event published here can reach a subscriber in another process.
118
+ * Defaults to `true`, so an implementation is treated as a shared transport
119
+ * unless it says otherwise: runs are fenced against other processes, and
120
+ * shutdown detaches from the evented runs other processes may still execute
121
+ * instead of stopping them.
122
+ *
123
+ * Return `false` only when every subscriber lives in the publishing process.
124
+ * Mastra then skips that cross-process coordination.
125
+ */
126
+ get deliversAcrossProcesses() {
127
+ return true;
128
+ }
129
+ /**
82
130
  * Whether a message delivered to a consumer that neither acks nor nacks it
83
131
  * (for example because its process died) is delivered again to a consumer of
84
132
  * the same group once the broker considers it abandoned. Defaults to `false`.
@@ -88,6 +136,9 @@ var PubSub = class {
88
136
  * pass restarts the run. The broker's abandonment threshold must be at least
89
137
  * 30 s, the evented step fence a dead worker leaves behind; a redelivery that
90
138
  * arrives before the fence expires is dropped as a duplicate.
139
+ *
140
+ * Evented workflows and agents that run on several processes need `true`
141
+ * here. Without it, no other worker picks up the step a stopped worker held.
91
142
  */
92
143
  get redeliversUnacked() {
93
144
  return false;
@@ -469,12 +520,17 @@ var AckHandleBuffer = class {
469
520
  const NOOP_ACK = async () => {};
470
521
  /**
471
522
  * The default pubsub: delivers events inside the process that published them.
523
+ * It needs no external service, and nothing it holds outlives the process.
524
+ *
525
+ * Evented workflows and evented agents run on it in one process: local
526
+ * development, tests, and a single server. It is not a transport for running
527
+ * them on several instances. Each instance has its own emitter, so an event
528
+ * never reaches another instance, and instances that share one storage each
529
+ * treat the others' runs as their own to recover. Use a pubsub that redelivers
530
+ * unacknowledged events for that.
472
531
  *
473
- * Several Mastra instances that share one storage but each use their own
474
- * `EventEmitterPubSub` are not supported for evented workflows: every instance
475
- * treats the others' runs as its own to recover. A multi-instance evented
476
- * deployment needs a broker such as Redis Streams, Valkey Streams or Google
477
- * Cloud Pub/Sub.
532
+ * The leases, consumer groups and nack redelivery here coordinate subscribers
533
+ * of this one process. They give no guarantee across processes.
478
534
  */
479
535
  var EventEmitterPubSub = class extends PubSub {
480
536
  get supportedModes() {
@@ -489,6 +545,10 @@ var EventEmitterPubSub = class extends PubSub {
489
545
  get supportsNativeBatching() {
490
546
  return true;
491
547
  }
548
+ /** Every subscriber is a listener on this process's emitter. */
549
+ get deliversAcrossProcesses() {
550
+ return false;
551
+ }
492
552
  /**
493
553
  * Ack and nack are no-ops here: a message lives only in the process that
494
554
  * published it, so nothing redelivers it once that process stops.
@@ -767,26 +827,6 @@ var EventEmitterPubSub = class extends PubSub {
767
827
  return Promise.resolve(true);
768
828
  }
769
829
  };
770
- // src/events/acking-callback.ts
771
- /**
772
- * Adapt an event-only handler into an `EventCallback` that acknowledges every
773
- * delivery.
774
- *
775
- * Handlers that only need the event cannot honour the `EventCallback` contract
776
- * themselves: on a durable backend (Redis consumer groups, GCP Pub/Sub) every
777
- * delivery — including the ones a handler inspects and filters out — has to be
778
- * acked, or it stays in the subscription's pending set and is redelivered.
779
- * Wrapping is the only way an event-only handler can satisfy that.
780
- *
781
- * A throwing handler leaves the delivery unacked and rejects the callback, which
782
- * a backend that honours redelivery treats as a nack.
783
- */
784
- function withAck(handler) {
785
- return async (event, ack) => {
786
- await handler(event);
787
- await ack?.();
788
- };
789
- }
790
830
  // src/stream/strip-model-snapshots.ts
791
831
  /**
792
832
  * Removes the model request/history snapshots that agent `step-start`,
@@ -1083,6 +1123,9 @@ var CachingPubSub = class extends PubSub {
1083
1123
  get supportsOffsets() {
1084
1124
  return true;
1085
1125
  }
1126
+ get deliversAcrossProcesses() {
1127
+ return this.inner.deliversAcrossProcesses;
1128
+ }
1086
1129
  get redeliversUnacked() {
1087
1130
  return this.inner.redeliversUnacked;
1088
1131
  }
@@ -1,6 +1,41 @@
1
1
  import { i as setSpanErrorOrigin, n as getSpanErrorOrigin } from "./error-count-BH-rJW7q.js";
2
2
  import EventEmitter$1 from "events";
3
+ // src/events/acking-callback.ts
4
+ /**
5
+ * Adapt an event-only handler into an `EventCallback` that acknowledges every
6
+ * delivery.
7
+ *
8
+ * Handlers that only need the event cannot honour the `EventCallback` contract
9
+ * themselves: on a durable backend (Redis consumer groups, GCP Pub/Sub) every
10
+ * delivery — including the ones a handler inspects and filters out — has to be
11
+ * acked, or it stays in the subscription's pending set and is redelivered.
12
+ * Wrapping is the only way an event-only handler can satisfy that.
13
+ *
14
+ * A throwing handler leaves the delivery unacked and rejects the callback, which
15
+ * a backend that honours redelivery treats as a nack.
16
+ */
17
+ function withAck(handler) {
18
+ return async (event, ack) => {
19
+ await handler(event);
20
+ await ack?.();
21
+ };
22
+ }
3
23
  // src/events/pubsub.ts
24
+ /**
25
+ * The event bus behind workflow execution, streams, signals, background tasks
26
+ * and schedules.
27
+ *
28
+ * Mastra decides how to behave from the capability getters below
29
+ * (`deliversAcrossProcesses`, `redeliversUnacked`, `supportedModes`, ...), never
30
+ * from which transport class the instance is. An implementation states what its
31
+ * transport does by overriding them.
32
+ *
33
+ * Evented workflows and evented agents can run on any implementation inside one
34
+ * process. Running them on several processes needs a pubsub that redelivers
35
+ * unacknowledged events and a workflows store with step guards.
36
+ *
37
+ * @see https://mastra.ai/docs/server/pubsub#evented-workflows-and-agents
38
+ */
4
39
  var PubSub = class {
5
40
  /**
6
41
  * Delete all retained state for a topic (cached history, persistent stream
@@ -77,6 +112,19 @@ var PubSub = class {
77
112
  return false;
78
113
  }
79
114
  /**
115
+ * Whether an event published here can reach a subscriber in another process.
116
+ * Defaults to `true`, so an implementation is treated as a shared transport
117
+ * unless it says otherwise: runs are fenced against other processes, and
118
+ * shutdown detaches from the evented runs other processes may still execute
119
+ * instead of stopping them.
120
+ *
121
+ * Return `false` only when every subscriber lives in the publishing process.
122
+ * Mastra then skips that cross-process coordination.
123
+ */
124
+ get deliversAcrossProcesses() {
125
+ return true;
126
+ }
127
+ /**
80
128
  * Whether a message delivered to a consumer that neither acks nor nacks it
81
129
  * (for example because its process died) is delivered again to a consumer of
82
130
  * the same group once the broker considers it abandoned. Defaults to `false`.
@@ -86,6 +134,9 @@ var PubSub = class {
86
134
  * pass restarts the run. The broker's abandonment threshold must be at least
87
135
  * 30 s, the evented step fence a dead worker leaves behind; a redelivery that
88
136
  * arrives before the fence expires is dropped as a duplicate.
137
+ *
138
+ * Evented workflows and agents that run on several processes need `true`
139
+ * here. Without it, no other worker picks up the step a stopped worker held.
89
140
  */
90
141
  get redeliversUnacked() {
91
142
  return false;
@@ -467,12 +518,17 @@ var AckHandleBuffer = class {
467
518
  const NOOP_ACK = async () => {};
468
519
  /**
469
520
  * The default pubsub: delivers events inside the process that published them.
521
+ * It needs no external service, and nothing it holds outlives the process.
522
+ *
523
+ * Evented workflows and evented agents run on it in one process: local
524
+ * development, tests, and a single server. It is not a transport for running
525
+ * them on several instances. Each instance has its own emitter, so an event
526
+ * never reaches another instance, and instances that share one storage each
527
+ * treat the others' runs as their own to recover. Use a pubsub that redelivers
528
+ * unacknowledged events for that.
470
529
  *
471
- * Several Mastra instances that share one storage but each use their own
472
- * `EventEmitterPubSub` are not supported for evented workflows: every instance
473
- * treats the others' runs as its own to recover. A multi-instance evented
474
- * deployment needs a broker such as Redis Streams, Valkey Streams or Google
475
- * Cloud Pub/Sub.
530
+ * The leases, consumer groups and nack redelivery here coordinate subscribers
531
+ * of this one process. They give no guarantee across processes.
476
532
  */
477
533
  var EventEmitterPubSub = class extends PubSub {
478
534
  get supportedModes() {
@@ -487,6 +543,10 @@ var EventEmitterPubSub = class extends PubSub {
487
543
  get supportsNativeBatching() {
488
544
  return true;
489
545
  }
546
+ /** Every subscriber is a listener on this process's emitter. */
547
+ get deliversAcrossProcesses() {
548
+ return false;
549
+ }
490
550
  /**
491
551
  * Ack and nack are no-ops here: a message lives only in the process that
492
552
  * published it, so nothing redelivers it once that process stops.
@@ -765,26 +825,6 @@ var EventEmitterPubSub = class extends PubSub {
765
825
  return Promise.resolve(true);
766
826
  }
767
827
  };
768
- // src/events/acking-callback.ts
769
- /**
770
- * Adapt an event-only handler into an `EventCallback` that acknowledges every
771
- * delivery.
772
- *
773
- * Handlers that only need the event cannot honour the `EventCallback` contract
774
- * themselves: on a durable backend (Redis consumer groups, GCP Pub/Sub) every
775
- * delivery — including the ones a handler inspects and filters out — has to be
776
- * acked, or it stays in the subscription's pending set and is redelivered.
777
- * Wrapping is the only way an event-only handler can satisfy that.
778
- *
779
- * A throwing handler leaves the delivery unacked and rejects the callback, which
780
- * a backend that honours redelivery treats as a nack.
781
- */
782
- function withAck(handler) {
783
- return async (event, ack) => {
784
- await handler(event);
785
- await ack?.();
786
- };
787
- }
788
828
  // src/stream/strip-model-snapshots.ts
789
829
  /**
790
830
  * Removes the model request/history snapshots that agent `step-start`,
@@ -1081,6 +1121,9 @@ var CachingPubSub = class extends PubSub {
1081
1121
  get supportsOffsets() {
1082
1122
  return true;
1083
1123
  }
1124
+ get deliversAcrossProcesses() {
1125
+ return this.inner.deliversAcrossProcesses;
1126
+ }
1084
1127
  get redeliversUnacked() {
1085
1128
  return this.inner.redeliversUnacked;
1086
1129
  }
@@ -1538,4 +1581,4 @@ var DefaultStepResult = class {
1538
1581
  return this.toolResults.filter((toolResult) => toolResult.dynamic === true);
1539
1582
  }
1540
1583
  };
1541
- export { NoopLeaseProvider as _, rehydrateError as a, RUN_LOG_TTL_MS as c, toCachedLogFrame as d, slimNestedAgentChunks as f, EventEmitterPubSub as g, withAck as h, withCaching as i, cachedLogTtlMs as l, stripModelSnapshots as m, PublisherQueueLimitError as n, serializeError as o, slimProgressChunk as p, CachingPubSub as r, RUN_LOCAL_TOPIC_PREFIXES as s, DefaultStepResult as t, isRunLocalTopic as u, PubSub as v, isLeaseProvider as y };
1584
+ export { PubSub as _, rehydrateError as a, RUN_LOG_TTL_MS as c, toCachedLogFrame as d, slimNestedAgentChunks as f, NoopLeaseProvider as g, EventEmitterPubSub as h, withCaching as i, cachedLogTtlMs as l, stripModelSnapshots as m, PublisherQueueLimitError as n, serializeError as o, slimProgressChunk as p, CachingPubSub as r, RUN_LOCAL_TOPIC_PREFIXES as s, DefaultStepResult as t, isRunLocalTopic as u, isLeaseProvider as v, withAck as y };
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_run_registry = require("../run-registry-5_LQBGn_.cjs");
2
+ const require_run_registry = require("../run-registry-5Suldxz3.cjs");
3
3
  let zod_v4 = require("zod/v4");
4
4
  // src/processor-provider/types.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { Ho as ToolCallFilter, Ko as SystemPromptScrubber, as as PIIDetector, cs as UnicodeNormalizer, es as BatchPartsProcessor, is as LanguageDetector, os as PromptInjectionDetector, qo as TokenLimiterProcessor, ss as ModerationProcessor } from "../run-registry-DC03XLeZ.js";
1
+ import { Ho as ToolCallFilter, Ko as SystemPromptScrubber, as as PIIDetector, cs as UnicodeNormalizer, es as BatchPartsProcessor, is as LanguageDetector, os as PromptInjectionDetector, qo as TokenLimiterProcessor, ss as ModerationProcessor } from "../run-registry-CGRPldLH.js";
2
2
  import { z } from "zod/v4";
3
3
  // src/processor-provider/types.ts
4
4
  /**