@mastra/core 1.87.0-alpha.17 → 1.87.0-alpha.19

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 (486) hide show
  1. package/dist/_types/@internal_ai-v6@0.0.99/dist/index.d.ts +2075 -123
  2. package/dist/_types/@internal_core@0.1.4/dist/knowledge-compat/index.d.ts +30 -3
  3. package/dist/agent/agent.d.ts +2 -4
  4. package/dist/agent/agent.types.d.ts +1 -0
  5. package/dist/agent/durable/index.cjs +86 -86
  6. package/dist/agent/durable/index.js +2 -2
  7. package/dist/agent/durable/run-registry.d.ts +54 -25
  8. package/dist/agent/index.cjs +16 -16
  9. package/dist/agent/index.d.ts +1 -0
  10. package/dist/agent/index.js +3 -3
  11. package/dist/agent/scopes.d.ts +8 -0
  12. package/dist/agent/types.d.ts +1 -0
  13. package/dist/agent-builder/ee/index.cjs +1 -1
  14. package/dist/agent-builder/ee/index.js +1 -1
  15. package/dist/agent-controller/agent-controller.d.ts +8 -1
  16. package/dist/agent-controller/index.cjs +3 -3
  17. package/dist/agent-controller/index.js +3 -3
  18. package/dist/agent-controller/session.d.ts +16 -0
  19. package/dist/{agent-controller-cqcUP-xy.cjs → agent-controller-DzOEhUjR.cjs} +55 -35
  20. package/dist/{agent-controller-ChZ3qcXE.js → agent-controller-lBdNfcFi.js} +31 -11
  21. package/dist/{agent-skills-resolver-BMoCDoaK.cjs → agent-skills-resolver-2d8k7ioj.cjs} +134 -109
  22. package/dist/{agent-skills-resolver-CUEIMDbx.js → agent-skills-resolver-D2HktP6Y.js} +134 -109
  23. package/dist/background-tasks/index.cjs +1 -1
  24. package/dist/background-tasks/index.js +1 -1
  25. package/dist/{background-tasks-CH_gzJwc.js → background-tasks-DAu4WaCb.js} +1 -1
  26. package/dist/{background-tasks-BIk1TRPw.cjs → background-tasks-DOmQdBVn.cjs} +1 -1
  27. package/dist/browser/index.cjs +4 -4
  28. package/dist/browser/index.js +4 -4
  29. package/dist/{builder-ZAUhFqtD.cjs → builder-BFcVEbX0.cjs} +3 -3
  30. package/dist/{builder-v01k8_0x.js → builder-DHFtMW8D.js} +2 -2
  31. package/dist/capabilities/302ai.json +198 -198
  32. package/dist/capabilities/abacus.json +2 -96
  33. package/dist/capabilities/abliteratedllm.json +36 -36
  34. package/dist/capabilities/abliteration-ai.json +11 -11
  35. package/dist/capabilities/above.json +19 -19
  36. package/dist/capabilities/adaption.json +11 -11
  37. package/dist/capabilities/adzuki.json +32 -32
  38. package/dist/capabilities/agentrouter.json +12 -12
  39. package/dist/capabilities/agnes.json +4 -4
  40. package/dist/capabilities/ai-router.json +5 -5
  41. package/dist/capabilities/aiand.json +25 -25
  42. package/dist/capabilities/aigrow.json +13 -13
  43. package/dist/capabilities/aimlapi.json +144 -144
  44. package/dist/capabilities/aipg.json +2 -2
  45. package/dist/capabilities/aixy.json +24 -24
  46. package/dist/capabilities/aki-io.json +12 -12
  47. package/dist/capabilities/alibaba-cn.json +81 -126
  48. package/dist/capabilities/alibaba-coding-plan-cn.json +4 -4
  49. package/dist/capabilities/alibaba-coding-plan.json +4 -4
  50. package/dist/capabilities/alibaba-token-plan-cn.json +57 -53
  51. package/dist/capabilities/alibaba-token-plan.json +57 -53
  52. package/dist/capabilities/alibaba.json +76 -71
  53. package/dist/capabilities/ambient.json +14 -32
  54. package/dist/capabilities/amd-tokenlab.json +41 -0
  55. package/dist/capabilities/amd.json +8 -8
  56. package/dist/capabilities/anthropic.json +32 -56
  57. package/dist/capabilities/anyapi.json +47 -47
  58. package/dist/capabilities/apiko.json +5 -5
  59. package/dist/capabilities/arcee.json +5 -5
  60. package/dist/capabilities/augure.json +4 -4
  61. package/dist/capabilities/auriko.json +15 -15
  62. package/dist/capabilities/bailing.json +3 -3
  63. package/dist/capabilities/baseten.json +35 -35
  64. package/dist/capabilities/bee.json +5 -5
  65. package/dist/capabilities/berget.json +2 -35
  66. package/dist/capabilities/bothub.json +14 -14
  67. package/dist/capabilities/boundless.json +39 -39
  68. package/dist/capabilities/bumo.json +40 -40
  69. package/dist/capabilities/byteplus.json +28 -28
  70. package/dist/capabilities/cheapest-token.json +31 -31
  71. package/dist/capabilities/chutes.json +48 -17
  72. package/dist/capabilities/cline-pass.json +32 -45
  73. package/dist/capabilities/cloudcode.json +8 -8
  74. package/dist/capabilities/cloudferro-sherlock.json +4 -4
  75. package/dist/capabilities/cloudflare-workers-ai.json +17 -17
  76. package/dist/capabilities/commandcode.json +141 -156
  77. package/dist/capabilities/concentrate.json +289 -289
  78. package/dist/capabilities/cortecs.json +103 -103
  79. package/dist/capabilities/crossmodel.json +194 -194
  80. package/dist/capabilities/crusoe.json +18 -18
  81. package/dist/capabilities/daoxe.json +9 -9
  82. package/dist/capabilities/databricks.json +128 -128
  83. package/dist/capabilities/deepinfra.json +98 -94
  84. package/dist/capabilities/deepseek.json +4 -4
  85. package/dist/capabilities/digitalocean.json +114 -114
  86. package/dist/capabilities/dinference.json +1 -2
  87. package/dist/capabilities/dothoosh.json +26 -26
  88. package/dist/capabilities/doubleword.json +23 -23
  89. package/dist/capabilities/edenai.json +285 -285
  90. package/dist/capabilities/empiriolabs.json +176 -167
  91. package/dist/capabilities/engy.json +16 -16
  92. package/dist/capabilities/entrim.json +8 -8
  93. package/dist/capabilities/evroc.json +15 -15
  94. package/dist/capabilities/ezkielyna.json +10 -10
  95. package/dist/capabilities/fastrouter.json +93 -97
  96. package/dist/capabilities/fireworks-ai.json +85 -85
  97. package/dist/capabilities/fortytwo.json +4 -4
  98. package/dist/capabilities/freemodel.json +7 -51
  99. package/dist/capabilities/friendli.json +8 -8
  100. package/dist/capabilities/frogbot.json +95 -103
  101. package/dist/capabilities/gisoo.json +15 -15
  102. package/dist/capabilities/gmicloud.json +21 -21
  103. package/dist/capabilities/google.json +55 -55
  104. package/dist/capabilities/graphn.json +10 -10
  105. package/dist/capabilities/greenpt.json +35 -35
  106. package/dist/capabilities/groq.json +7 -20
  107. package/dist/capabilities/helicone.json +84 -86
  108. package/dist/capabilities/hetzner.json +4 -4
  109. package/dist/capabilities/hopper.json +2 -2
  110. package/dist/capabilities/hostinger-router.json +5 -5
  111. package/dist/capabilities/hpc-ai.json +8 -24
  112. package/dist/capabilities/huawei-maas.json +13 -13
  113. package/dist/capabilities/hubris.json +30 -30
  114. package/dist/capabilities/huggingface.json +86 -101
  115. package/dist/capabilities/hyper.json +24 -24
  116. package/dist/capabilities/impossibl.json +152 -199
  117. package/dist/capabilities/inceptron.json +8 -8
  118. package/dist/capabilities/inco.json +4 -21
  119. package/dist/capabilities/infer.json +16 -16
  120. package/dist/capabilities/inferall.json +2 -18
  121. package/dist/capabilities/inference-coop.json +6 -6
  122. package/dist/capabilities/inference.json +2 -11
  123. package/dist/capabilities/inferenceapis.json +24 -24
  124. package/dist/capabilities/infersia.json +13 -13
  125. package/dist/capabilities/inferx.json +3 -3
  126. package/dist/capabilities/infomaniak.json +3 -3
  127. package/dist/capabilities/io-net.json +6 -16
  128. package/dist/capabilities/isoquant.json +4 -4
  129. package/dist/capabilities/iteracompute.json +42 -80
  130. package/dist/capabilities/jalapeno.json +11 -11
  131. package/dist/capabilities/jiekou.json +19 -167
  132. package/dist/capabilities/joingonka.json +4 -4
  133. package/dist/capabilities/jzstoken.json +54 -54
  134. package/dist/capabilities/keln.json +23 -23
  135. package/dist/capabilities/kenari.json +122 -130
  136. package/dist/capabilities/kilo.json +649 -647
  137. package/dist/capabilities/kimi-code-plan-cn.json +7 -7
  138. package/dist/capabilities/kimi-code-plan-global.json +7 -7
  139. package/dist/capabilities/kitani.json +4 -4
  140. package/dist/capabilities/klavo.json +24 -24
  141. package/dist/capabilities/korouter.json +32 -32
  142. package/dist/capabilities/kunavo.json +7 -7
  143. package/dist/capabilities/liquid.json +8 -8
  144. package/dist/capabilities/lithosai.json +3 -3
  145. package/dist/capabilities/llmgateway-providers.json +885 -893
  146. package/dist/capabilities/llmgateway.json +340 -340
  147. package/dist/capabilities/llmtr.json +16 -54
  148. package/dist/capabilities/lowrouter.json +61 -61
  149. package/dist/capabilities/lyceum.json +14 -14
  150. package/dist/capabilities/meganova.json +0 -1
  151. package/dist/capabilities/melious.json +14 -14
  152. package/dist/capabilities/merge-gateway.json +292 -292
  153. package/dist/capabilities/meta.json +11 -11
  154. package/dist/capabilities/minimax-cn-coding-plan.json +2 -2
  155. package/dist/capabilities/minimax-cn.json +5 -5
  156. package/dist/capabilities/minimax-coding-plan.json +2 -2
  157. package/dist/capabilities/minimax.json +5 -5
  158. package/dist/capabilities/mistral.json +15 -31
  159. package/dist/capabilities/mixlayer.json +5 -5
  160. package/dist/capabilities/moark.json +0 -2
  161. package/dist/capabilities/modal.json +8 -8
  162. package/dist/capabilities/model-oracle-ai.json +19 -27
  163. package/dist/capabilities/modelis.json +14 -14
  164. package/dist/capabilities/modelscope.json +2 -2
  165. package/dist/capabilities/modular.json +11 -11
  166. package/dist/capabilities/moneo.json +7 -38
  167. package/dist/capabilities/moonshotai-cn.json +7 -7
  168. package/dist/capabilities/moonshotai.json +7 -7
  169. package/dist/capabilities/morph.json +13 -13
  170. package/dist/capabilities/munito-eu.json +8 -8
  171. package/dist/capabilities/munito.json +10 -10
  172. package/dist/capabilities/nan.json +31 -31
  173. package/dist/capabilities/nano-gpt.json +581 -603
  174. package/dist/capabilities/nearai.json +119 -119
  175. package/dist/capabilities/nebius.json +30 -31
  176. package/dist/capabilities/neon.json +132 -132
  177. package/dist/capabilities/neuralwatt.json +41 -41
  178. package/dist/capabilities/nokeep.json +5 -5
  179. package/dist/capabilities/novita-ai.json +113 -227
  180. package/dist/capabilities/nvidia.json +14 -82
  181. package/dist/capabilities/oathbreaker.json +2 -2
  182. package/dist/capabilities/obscurify.json +28 -28
  183. package/dist/capabilities/oci.json +4 -4
  184. package/dist/capabilities/ofox.json +270 -270
  185. package/dist/capabilities/ollama-cloud.json +53 -53
  186. package/dist/capabilities/openai.json +57 -57
  187. package/dist/capabilities/opencode-go.json +88 -90
  188. package/dist/capabilities/openreason.json +5 -5
  189. package/dist/capabilities/openrouter.json +574 -563
  190. package/dist/capabilities/opper.json +29 -34
  191. package/dist/capabilities/orcarouter.json +307 -367
  192. package/dist/capabilities/outerlabs.json +30 -30
  193. package/dist/capabilities/ovhcloud.json +19 -19
  194. package/dist/capabilities/pareto.json +2 -7
  195. package/dist/capabilities/perplexity-agent.json +47 -102
  196. package/dist/capabilities/perplexity.json +2 -2
  197. package/dist/capabilities/phala.json +35 -35
  198. package/dist/capabilities/pioneer.json +5 -122
  199. package/dist/capabilities/poe.json +130 -130
  200. package/dist/capabilities/poolside.json +2 -2
  201. package/dist/capabilities/powerspring.json +14 -14
  202. package/dist/capabilities/primalabs.json +12 -12
  203. package/dist/capabilities/prime.json +123 -115
  204. package/dist/capabilities/privatemode-ai.json +8 -36
  205. package/dist/capabilities/proxystacks.json +5 -5
  206. package/dist/capabilities/qihang-ai.json +3 -15
  207. package/dist/capabilities/qiniu-ai.json +13 -87
  208. package/dist/capabilities/refuseless.json +7 -14
  209. package/dist/capabilities/regolo-ai.json +9 -13
  210. package/dist/capabilities/requesty.json +202 -202
  211. package/dist/capabilities/routing-run.json +3 -40
  212. package/dist/capabilities/ruapi.json +21 -21
  213. package/dist/capabilities/runcrate.json +10 -10
  214. package/dist/capabilities/runinfra.json +16 -16
  215. package/dist/capabilities/sakana.json +3 -3
  216. package/dist/capabilities/sambanova.json +9 -9
  217. package/dist/capabilities/sandbase.json +20 -20
  218. package/dist/capabilities/sarvam.json +22 -13
  219. package/dist/capabilities/scaleway.json +18 -18
  220. package/dist/capabilities/scnet-token-plan.json +7 -7
  221. package/dist/capabilities/scx-ai.json +16 -32
  222. package/dist/capabilities/sensenova.json +12 -12
  223. package/dist/capabilities/siliconflow-cn.json +45 -97
  224. package/dist/capabilities/siliconflow.json +53 -53
  225. package/dist/capabilities/snowflake-cortex.json +26 -26
  226. package/dist/capabilities/sokkan.json +8 -20
  227. package/dist/capabilities/sparrowcodes.json +21 -21
  228. package/dist/capabilities/stackit.json +1 -2
  229. package/dist/capabilities/standardcompute.json +84 -120
  230. package/dist/capabilities/steadyrouter.json +41 -41
  231. package/dist/capabilities/stepfun-ai-step-plan.json +8 -8
  232. package/dist/capabilities/stepfun-ai.json +8 -8
  233. package/dist/capabilities/stepfun-step-plan.json +8 -8
  234. package/dist/capabilities/stepfun.json +8 -8
  235. package/dist/capabilities/stepping-stone.json +15 -15
  236. package/dist/capabilities/subconscious.json +2 -2
  237. package/dist/capabilities/superbot-gg.json +4 -4
  238. package/dist/capabilities/synthetic.json +8 -17
  239. package/dist/capabilities/synthorai.json +21 -21
  240. package/dist/capabilities/teamorouter.json +23 -23
  241. package/dist/capabilities/teapot-router.json +10 -10
  242. package/dist/capabilities/tencent-token-plan-intl.json +25 -25
  243. package/dist/capabilities/tencent-token-plan.json +38 -38
  244. package/dist/capabilities/tencent-tokenhub.json +46 -46
  245. package/dist/capabilities/tensorx.json +48 -48
  246. package/dist/capabilities/tenstorrent.json +4 -4
  247. package/dist/capabilities/the-grid-ai.json +29 -29
  248. package/dist/capabilities/thinkingmachines.json +71 -71
  249. package/dist/capabilities/tinfoil.json +8 -8
  250. package/dist/capabilities/toapis.json +3 -3
  251. package/dist/capabilities/togetherai.json +42 -42
  252. package/dist/capabilities/tokengo.json +21 -21
  253. package/dist/capabilities/tokenify.json +2 -2
  254. package/dist/capabilities/trustedrouter.json +5 -5
  255. package/dist/capabilities/trustedtokens.json +15 -15
  256. package/dist/capabilities/umans-ai-coding-plan.json +16 -16
  257. package/dist/capabilities/umans-ai.json +13 -13
  258. package/dist/capabilities/uncensuredai.json +4 -4
  259. package/dist/capabilities/unorouter.json +1 -22
  260. package/dist/capabilities/unrestricted.json +4 -20
  261. package/dist/capabilities/uplinkswitch.json +21 -21
  262. package/dist/capabilities/upstage.json +3 -15
  263. package/dist/capabilities/vancine.json +20 -20
  264. package/dist/capabilities/vercel.json +551 -551
  265. package/dist/capabilities/vivgrid.json +51 -131
  266. package/dist/capabilities/volcengine-coding-plan.json +29 -29
  267. package/dist/capabilities/volcengine.json +27 -27
  268. package/dist/capabilities/vultr.json +14 -67
  269. package/dist/capabilities/wafer.ai.json +17 -17
  270. package/dist/capabilities/wallaby.json +2 -2
  271. package/dist/capabilities/wally.json +12 -12
  272. package/dist/capabilities/wandb.json +21 -21
  273. package/dist/capabilities/watt.json +22 -22
  274. package/dist/capabilities/xai.json +5 -5
  275. package/dist/capabilities/xiaomi-token-plan-ams.json +2 -2
  276. package/dist/capabilities/xiaomi-token-plan-cn.json +2 -2
  277. package/dist/capabilities/xiaomi-token-plan-sgp.json +2 -2
  278. package/dist/capabilities/xiaomi.json +2 -2
  279. package/dist/capabilities/xpersona.json +13 -13
  280. package/dist/capabilities/xxapi.json +30 -30
  281. package/dist/capabilities/zai-coding-plan.json +17 -17
  282. package/dist/capabilities/zai.json +31 -31
  283. package/dist/capabilities/zenifra.json +26 -26
  284. package/dist/capabilities/zenmux.json +190 -233
  285. package/dist/capabilities/zerogpu.json +8 -8
  286. package/dist/capabilities/zhipuai-coding-plan.json +3 -14
  287. package/dist/capabilities/zhipuai.json +30 -30
  288. package/dist/capabilities/zro.json +6 -6
  289. package/dist/channels/index.cjs +24 -24
  290. package/dist/channels/index.js +2 -2
  291. package/dist/{channels-B7lf5BnT.js → channels-BBwgs50q.js} +2 -2
  292. package/dist/{channels-CAA8MkDQ.cjs → channels-CbhgGgQD.cjs} +6 -6
  293. package/dist/coding-agent/index.cjs +7 -7
  294. package/dist/coding-agent/index.js +4 -4
  295. package/dist/{constants-CFO8w780.cjs → constants-B2FVV_2e.cjs} +1 -1
  296. package/dist/{constants-CUv0mU2y.js → constants-Dro9fuhk.js} +1 -1
  297. package/dist/datasets/index.cjs +9 -9
  298. package/dist/datasets/index.js +2 -2
  299. package/dist/docs/SKILL.md +1 -1
  300. package/dist/docs/assets/SOURCE_MAP.json +1147 -1142
  301. package/dist/docs/references/docs-agents-overview.md +9 -0
  302. package/dist/docs/references/docs-deployment-workers.md +1 -1
  303. package/dist/docs/references/docs-harness-background-tasks.md +8 -5
  304. package/dist/docs/references/docs-harness-durable-agents.md +1 -0
  305. package/dist/docs/references/docs-knowledge-search.md +1 -1
  306. package/dist/docs/references/docs-server-pubsub.md +1 -1
  307. package/dist/docs/references/docs-skills.md +4 -1
  308. package/dist/docs/references/docs-workflows-overview.md +2 -0
  309. package/dist/docs/references/reference-agent-controller-session.md +19 -0
  310. package/dist/docs/references/reference-agents-createSkill.md +20 -1
  311. package/dist/docs/references/reference-knowledge-knowledge-tools.md +1 -2
  312. package/dist/docs/references/reference-observability-metrics-metrics-context.md +63 -3
  313. package/dist/docs/references/reference-pubsub-base.md +1 -1
  314. package/dist/docs/references/reference-pubsub-redis-streams.md +3 -5
  315. package/dist/docs/references/reference-pubsub-valkey-streams.md +2 -2
  316. package/dist/docs/references/reference-templates-overview.md +31 -1
  317. package/dist/docs/references/reference-workflows-run-methods-restart.md +2 -0
  318. package/dist/evals/index.cjs +13 -13
  319. package/dist/evals/index.js +2 -2
  320. package/dist/evals/scoreTraces/index.cjs +4 -4
  321. package/dist/evals/scoreTraces/index.js +2 -2
  322. package/dist/events/index.cjs +1 -1
  323. package/dist/events/index.js +1 -1
  324. package/dist/events/pubsub.d.ts +1 -3
  325. package/dist/{run-registry-bm6b6mwQ.js → execution-fence-B8yV_n51.js} +62508 -62052
  326. package/dist/{run-registry-BaVTwGKh.cjs → execution-fence-fqV6FGdV.cjs} +63621 -63153
  327. package/dist/harness/index.cjs +3 -3
  328. package/dist/harness/index.js +3 -3
  329. package/dist/index.cjs +1 -1
  330. package/dist/index.d.ts +1 -0
  331. package/dist/index.js +1 -1
  332. package/dist/integration/index.cjs +1 -1
  333. package/dist/integration/index.js +1 -1
  334. package/dist/knowledge/index.cjs +163 -153
  335. package/dist/knowledge/index.js +18 -8
  336. package/dist/llm/index.cjs +3 -3
  337. package/dist/llm/index.js +3 -3
  338. package/dist/llm/model/gateways/opencode-session-header.d.ts +28 -0
  339. package/dist/llm/model/provider-types.generated.d.ts +7412 -7795
  340. package/dist/llm/model/resolve-model.d.ts +1 -0
  341. package/dist/llm/model/shared.types.d.ts +1 -0
  342. package/dist/{llm-CGl_FZsb.cjs → llm-B7ul27Ay.cjs} +32 -14
  343. package/dist/{llm-B5OxUmL4.js → llm-Cy3WZXgA.js} +32 -14
  344. package/dist/loop/index.cjs +15 -15
  345. package/dist/loop/index.js +2 -2
  346. package/dist/loop/server.cjs +1 -1
  347. package/dist/loop/server.js +1 -1
  348. package/dist/{manager-BuPZ97U6.cjs → manager-CY-RzZJL.cjs} +21 -19
  349. package/dist/{manager-R_QVoiy9.js → manager-Dsub5fyz.js} +9 -7
  350. package/dist/mastra/index.cjs +1 -1
  351. package/dist/mastra/index.d.ts +33 -4
  352. package/dist/mastra/index.js +1 -1
  353. package/dist/{mastra-CHYi4Woq.cjs → mastra-DXQUuwFl.cjs} +116 -67
  354. package/dist/{mastra-Cl5EC-jR.js → mastra-yjoYfTS5.js} +76 -27
  355. package/dist/memory/index.cjs +24 -24
  356. package/dist/memory/index.js +2 -2
  357. package/dist/memory/mock.d.ts +2 -3
  358. package/dist/{model-WmKuSHa8.cjs → model-BARBpXDN.cjs} +2 -2
  359. package/dist/{model-BNIR9RSw.js → model-DauH8JTo.js} +2 -2
  360. package/dist/{netlify-D4orVt-5.js → netlify-BNBtKR4Q.js} +86 -4
  361. package/dist/{netlify-C_6KLad8.cjs → netlify-DGsETiFB.cjs} +97 -3
  362. package/dist/notifications/index.cjs +18 -18
  363. package/dist/notifications/index.js +2 -2
  364. package/dist/observability/index.cjs +1 -1
  365. package/dist/observability/index.js +1 -1
  366. package/dist/{observability-D7RNOAPx.js → observability-DPDWibyH.js} +648 -648
  367. package/dist/{output-helpers-DgsH4aTb.cjs → output-helpers-By5FbLpp.cjs} +71 -73
  368. package/dist/{output-helpers-CVzhy1Y0.js → output-helpers-k2-48ssH.js} +72 -74
  369. package/dist/processor-provider/index.cjs +10 -10
  370. package/dist/processor-provider/index.js +1 -1
  371. package/dist/processors/index.cjs +65 -65
  372. package/dist/processors/index.js +2 -2
  373. package/dist/{provider-registry-CkHZ7heH.js → provider-registry-CfHy4Zhw.js} +21401 -22401
  374. package/dist/{provider-registry-DH7XbpHT.cjs → provider-registry-Y6tbfFhH.cjs} +21401 -22401
  375. package/dist/provider-registry.json +21940 -22961
  376. package/dist/{registry-generator-Dn8HU1Jz.cjs → registry-generator-BEJ0APNc.cjs} +1 -1
  377. package/dist/{registry-generator-CAXpGkmM.js → registry-generator-DJiQAI8V.js} +1 -1
  378. package/dist/{rehydrate-DZyZNbaq.cjs → rehydrate-4Sl7D3kO.cjs} +14 -14
  379. package/dist/{rehydrate-Cy7-QPU-.js → rehydrate-Da4_E_N8.js} +2 -2
  380. package/dist/relevance/index.cjs +3 -3
  381. package/dist/relevance/index.js +2 -2
  382. package/dist/{signal-provider-BslnAjWG.js → signal-provider-B_mfW-J4.js} +1 -1
  383. package/dist/{signal-provider-BFAvh_AJ.cjs → signal-provider-D9gbevHN.cjs} +1 -1
  384. package/dist/signals/index.cjs +3 -3
  385. package/dist/signals/index.js +3 -3
  386. package/dist/{signals-CbmgVwL-.cjs → signals-BwDXGqxc.cjs} +2 -2
  387. package/dist/{signals-Clupx3jz.js → signals-TznxWfM3.js} +2 -2
  388. package/dist/skills/create-skill.d.ts +3 -0
  389. package/dist/skills/index.cjs +1 -1
  390. package/dist/skills/index.js +1 -1
  391. package/dist/skills/inline-skill-source.d.ts +5 -1
  392. package/dist/skills/types.d.ts +16 -1
  393. package/dist/{source-DYZMfjv3.js → source-B3He4_mz.js} +1 -1
  394. package/dist/{source-BC8Et5qZ.cjs → source-C_nWbqI0.cjs} +1 -1
  395. package/dist/{state-processor-B9kxpM53.js → state-processor-B_KsS82m.js} +1 -1
  396. package/dist/{state-processor-kRNZ38Nf.cjs → state-processor-DaSmhVUX.cjs} +1 -1
  397. package/dist/storage/constants.cjs +1 -1
  398. package/dist/storage/constants.js +1 -1
  399. package/dist/storage/domains/agents/index.cjs +1 -1
  400. package/dist/storage/domains/agents/index.js +1 -1
  401. package/dist/storage/domains/inmemory-db.d.ts +1 -1
  402. package/dist/storage/domains/knowledge/pages.d.ts +8 -1
  403. package/dist/storage/domains/memory/base.d.ts +19 -9
  404. package/dist/storage/domains/memory/inmemory.d.ts +4 -1
  405. package/dist/storage/domains/memory/queue-thread.d.ts +7 -1
  406. package/dist/storage/domains/workflows/base.d.ts +18 -5
  407. package/dist/storage/domains/workflows/inmemory.d.ts +3 -5
  408. package/dist/storage/domains/workflows/journal.d.ts +16 -1
  409. package/dist/storage/index.cjs +187 -186
  410. package/dist/storage/index.js +6 -6
  411. package/dist/storage/workflow-snapshot.d.ts +4 -0
  412. package/dist/storage/workflow-step-guard.d.ts +5 -0
  413. package/dist/stream/base/output.d.ts +1 -0
  414. package/dist/stream/index.cjs +2 -2
  415. package/dist/stream/index.js +2 -2
  416. package/dist/{stream-B9dswdIM.js → stream-BFhCDJvz.js} +18 -8
  417. package/dist/{stream-CbG7k93m.cjs → stream-CZy8XA_q.cjs} +23 -7
  418. package/dist/telemetry/index.cjs +1 -1
  419. package/dist/telemetry/index.js +1 -1
  420. package/dist/test-utils/llm-mock.cjs +1 -1
  421. package/dist/test-utils/llm-mock.js +1 -1
  422. package/dist/{tool-Z3bykc1m.js → tool-DIFduuTw.js} +2 -5
  423. package/dist/{tool-CYlT2UA-.cjs → tool-Dn9WSDVn.cjs} +2 -5
  424. package/dist/tool-loop-agent/index.cjs +1 -1
  425. package/dist/tool-loop-agent/index.js +1 -1
  426. package/dist/{tool-loop-agent-BnlPROel.cjs → tool-loop-agent-DifR6VLI.cjs} +4 -4
  427. package/dist/{tool-loop-agent-BmlzhMxc.js → tool-loop-agent-SOpIJRws.js} +3 -3
  428. package/dist/{toolchecks-DrsZdc3S.js → toolchecks-CRAfUe9H.js} +1 -1
  429. package/dist/{toolchecks-MFU48cit.cjs → toolchecks-DbBsQGHW.cjs} +1 -1
  430. package/dist/tools/index.cjs +5 -5
  431. package/dist/tools/index.d.ts +1 -0
  432. package/dist/tools/index.js +5 -5
  433. package/dist/tools/is-vercel-tool.cjs +1 -1
  434. package/dist/tools/is-vercel-tool.js +1 -1
  435. package/dist/tools/tool.d.ts +2 -4
  436. package/dist/tools/types.d.ts +1 -0
  437. package/dist/{tools-BEYxowf0.cjs → tools-C2q0ougI.cjs} +1 -1
  438. package/dist/{tools-tPy2FwMI.js → tools-ybbz1YKg.js} +1 -1
  439. package/dist/{utils-N_OPw-9g.cjs → utils-BjFntMW_.cjs} +6 -5
  440. package/dist/{utils-BU8lpEZ4.js → utils-DN_kWhH6.js} +6 -5
  441. package/dist/utils.cjs +3 -3
  442. package/dist/utils.js +3 -3
  443. package/dist/{validate-BvxwUPNa.cjs → validate-CBQ0dMBb.cjs} +1 -1
  444. package/dist/{validate-BANPY3pi.js → validate-KIBMWuyc.js} +1 -1
  445. package/dist/vector/index.cjs +8 -8
  446. package/dist/vector/index.js +1 -1
  447. package/dist/worker/index.cjs +1 -1
  448. package/dist/worker/index.js +1 -1
  449. package/dist/{worker-BpVWGM6Q.js → worker-Bqg7bsxX.js} +8 -3
  450. package/dist/{worker-E2MdhICW.cjs → worker-CJ_JYSy0.cjs} +3 -3
  451. package/dist/{worker-B3s2DjXP.cjs → worker-Ct6E5_2p.cjs} +16 -11
  452. package/dist/{worker-CZ_07SOb.js → worker-DVM_pvH7.js} +2 -2
  453. package/dist/{workflow-BrcVks0j.js → workflow-BmShpn3p.js} +4 -4
  454. package/dist/{workflow-BuPW86ke.cjs → workflow-DEAvg0pI.cjs} +8 -8
  455. package/dist/workflows/builder/index.cjs +1 -1
  456. package/dist/workflows/builder/index.js +1 -1
  457. package/dist/workflows/evented/index.cjs +10 -10
  458. package/dist/workflows/evented/index.js +1 -1
  459. package/dist/workflows/evented/workflow-event-processor/index.d.ts +0 -2
  460. package/dist/workflows/evented/workflow.d.ts +2 -1
  461. package/dist/workflows/index.cjs +54 -54
  462. package/dist/workflows/index.js +4 -4
  463. package/dist/workflows/run-storage.d.ts +16 -1
  464. package/dist/workflows/types.d.ts +10 -0
  465. package/dist/workflows/workflow.d.ts +3 -1
  466. package/dist/workspace/index.cjs +1 -1
  467. package/dist/workspace/index.js +1 -1
  468. package/dist/{workspace-CzzrnE6Q.cjs → workspace-BQD4tcQi.cjs} +3 -3
  469. package/dist/{workspace-Ct2kAiDv.js → workspace-sqcfdZRR.js} +2 -2
  470. package/package.json +7 -6
  471. package/skills/mastra/SKILL.md +171 -0
  472. package/skills/mastra/references/common-errors.md +557 -0
  473. package/skills/mastra/references/core-concepts.md +21 -0
  474. package/skills/mastra/references/create-mastra.md +233 -0
  475. package/skills/mastra/references/embedded-docs.md +103 -0
  476. package/skills/mastra/references/feedback.md +69 -0
  477. package/skills/mastra/references/gateway.md +66 -0
  478. package/skills/mastra/references/mastra-api.md +222 -0
  479. package/skills/mastra/references/migration-guide.md +185 -0
  480. package/skills/mastra/references/model-selection.md +29 -0
  481. package/skills/mastra/references/platform.md +164 -0
  482. package/skills/mastra/references/remote-docs.md +193 -0
  483. package/skills/mastra/references/trace-query.md +150 -0
  484. package/skills/mastra/scripts/provider-registry.mjs +271 -0
  485. package/src/llm/model/provider-types.generated.d.ts +7412 -7795
  486. package/dist/{observability-B0R_D1PZ.cjs → observability-VaoaeadK.cjs} +647 -647
@@ -2,26 +2,6 @@ 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
- }
25
5
  // src/events/pubsub.ts
26
6
  /**
27
7
  * The event bus behind workflow execution, streams, signals, background tasks
@@ -133,9 +113,7 @@ var PubSub = class {
133
113
  *
134
114
  * Workflow recovery leaves the evented runs on such a pubsub to the broker:
135
115
  * the message of the step a dead worker held is redelivered, so no recovery
136
- * pass restarts the run. The broker's abandonment threshold must be at least
137
- * 30 s, the evented step fence a dead worker leaves behind; a redelivery that
138
- * arrives before the fence expires is dropped as a duplicate.
116
+ * pass restarts the run.
139
117
  *
140
118
  * Evented workflows and agents that run on several processes need `true`
141
119
  * here. Without it, no other worker picks up the step a stopped worker held.
@@ -264,6 +242,26 @@ const NoopLeaseProvider = {
264
242
  return Promise.resolve(true);
265
243
  }
266
244
  };
245
+ // src/events/acking-callback.ts
246
+ /**
247
+ * Adapt an event-only handler into an `EventCallback` that acknowledges every
248
+ * delivery.
249
+ *
250
+ * Handlers that only need the event cannot honour the `EventCallback` contract
251
+ * themselves: on a durable backend (Redis consumer groups, GCP Pub/Sub) every
252
+ * delivery — including the ones a handler inspects and filters out — has to be
253
+ * acked, or it stays in the subscription's pending set and is redelivered.
254
+ * Wrapping is the only way an event-only handler can satisfy that.
255
+ *
256
+ * A throwing handler leaves the delivery unacked and rejects the callback, which
257
+ * a backend that honours redelivery treats as a nack.
258
+ */
259
+ function withAck(handler) {
260
+ return async (event, ack) => {
261
+ await handler(event);
262
+ await ack?.();
263
+ };
264
+ }
267
265
  // src/events/event-emitter/batch-policy.ts
268
266
  const defaultDeps = {
269
267
  now: () => Date.now(),
@@ -827,50 +825,14 @@ var EventEmitterPubSub = class extends PubSub {
827
825
  return Promise.resolve(true);
828
826
  }
829
827
  };
830
- // src/events/codec/error.ts
831
- const MAX_CAUSE_DEPTH = 5;
832
- /**
833
- * Serializes an Error instance to a plain SerializedError object without
834
- * mutating the original. Unlike `getErrorFromUnknown(...).toJSON()`, this does
835
- * not attach a non-enumerable `toJSON` to the live Error.
836
- */
837
- function serializeError(err, depth = 0) {
838
- const json = {
839
- name: err.name || "Error",
840
- message: err.message
841
- };
842
- if (err.stack !== void 0) json.stack = err.stack;
843
- if (err.cause !== void 0) {
844
- if (err.cause instanceof Error && depth < MAX_CAUSE_DEPTH) json.cause = serializeError(err.cause, depth + 1);
845
- else json.cause = err.cause;
846
- }
847
- for (const key in err) {
848
- if (!Object.prototype.hasOwnProperty.call(err, key)) continue;
849
- if (key === "message" || key === "name" || key === "stack" || key === "cause" || key === "__mastraSpanErrorOrigin") continue;
850
- json[key] = err[key];
851
- }
852
- const origin = require_error_count.getSpanErrorOrigin(err);
853
- if (origin) json.__mastraSpanErrorOrigin = origin;
854
- return json;
855
- }
856
- /**
857
- * Rehydrates a SerializedError into a vanilla Error instance. We never
858
- * instantiate user-controlled prototypes — name is preserved as a string field.
859
- */
860
- function rehydrateError(s) {
861
- const cause = s.cause !== void 0 ? s.cause && typeof s.cause === "object" && "message" in s.cause && "name" in s.cause ? rehydrateError(s.cause) : s.cause : void 0;
862
- const err = cause !== void 0 ? new Error(s.message, { cause }) : new Error(s.message);
863
- if (s.name) err.name = s.name;
864
- if (s.stack !== void 0) err.stack = s.stack;
865
- for (const key in s) {
866
- if (!Object.prototype.hasOwnProperty.call(s, key)) continue;
867
- if (key === "message" || key === "name" || key === "stack" || key === "cause" || key === "__mastraSpanErrorOrigin") continue;
868
- err[key] = s[key];
828
+ // src/events/publisher-queue-limit-error.ts
829
+ var PublisherQueueLimitError = class extends Error {
830
+ waitForCapacity;
831
+ constructor(message = "UnixSocketPubSub publisher queue limit exceeded", waitForCapacity) {
832
+ super(message);
833
+ this.waitForCapacity = waitForCapacity;
869
834
  }
870
- const origin = require_error_count.getSpanErrorOrigin(s);
871
- if (origin) require_error_count.setSpanErrorOrigin(err, origin);
872
- return err;
873
- }
835
+ };
874
836
  // src/stream/strip-model-snapshots.ts
875
837
  /**
876
838
  * Removes the model request/history snapshots that agent `step-start`,
@@ -1589,14 +1551,50 @@ var CachingPubSub = class extends PubSub {
1589
1551
  function withCaching(pubsub, cache, options) {
1590
1552
  return new CachingPubSub(pubsub, cache, options);
1591
1553
  }
1592
- // src/events/publisher-queue-limit-error.ts
1593
- var PublisherQueueLimitError = class extends Error {
1594
- waitForCapacity;
1595
- constructor(message = "UnixSocketPubSub publisher queue limit exceeded", waitForCapacity) {
1596
- super(message);
1597
- this.waitForCapacity = waitForCapacity;
1554
+ // src/events/codec/error.ts
1555
+ const MAX_CAUSE_DEPTH = 5;
1556
+ /**
1557
+ * Serializes an Error instance to a plain SerializedError object without
1558
+ * mutating the original. Unlike `getErrorFromUnknown(...).toJSON()`, this does
1559
+ * not attach a non-enumerable `toJSON` to the live Error.
1560
+ */
1561
+ function serializeError(err, depth = 0) {
1562
+ const json = {
1563
+ name: err.name || "Error",
1564
+ message: err.message
1565
+ };
1566
+ if (err.stack !== void 0) json.stack = err.stack;
1567
+ if (err.cause !== void 0) {
1568
+ if (err.cause instanceof Error && depth < MAX_CAUSE_DEPTH) json.cause = serializeError(err.cause, depth + 1);
1569
+ else json.cause = err.cause;
1598
1570
  }
1599
- };
1571
+ for (const key in err) {
1572
+ if (!Object.prototype.hasOwnProperty.call(err, key)) continue;
1573
+ if (key === "message" || key === "name" || key === "stack" || key === "cause" || key === "__mastraSpanErrorOrigin") continue;
1574
+ json[key] = err[key];
1575
+ }
1576
+ const origin = require_error_count.getSpanErrorOrigin(err);
1577
+ if (origin) json.__mastraSpanErrorOrigin = origin;
1578
+ return json;
1579
+ }
1580
+ /**
1581
+ * Rehydrates a SerializedError into a vanilla Error instance. We never
1582
+ * instantiate user-controlled prototypes — name is preserved as a string field.
1583
+ */
1584
+ function rehydrateError(s) {
1585
+ const cause = s.cause !== void 0 ? s.cause && typeof s.cause === "object" && "message" in s.cause && "name" in s.cause ? rehydrateError(s.cause) : s.cause : void 0;
1586
+ const err = cause !== void 0 ? new Error(s.message, { cause }) : new Error(s.message);
1587
+ if (s.name) err.name = s.name;
1588
+ if (s.stack !== void 0) err.stack = s.stack;
1589
+ for (const key in s) {
1590
+ if (!Object.prototype.hasOwnProperty.call(s, key)) continue;
1591
+ if (key === "message" || key === "name" || key === "stack" || key === "cause" || key === "__mastraSpanErrorOrigin") continue;
1592
+ err[key] = s[key];
1593
+ }
1594
+ const origin = require_error_count.getSpanErrorOrigin(s);
1595
+ if (origin) require_error_count.setSpanErrorOrigin(err, origin);
1596
+ return err;
1597
+ }
1600
1598
  // src/stream/aisdk/v5/output-helpers.ts
1601
1599
  var DefaultStepResult = class {
1602
1600
  content;
@@ -1,25 +1,5 @@
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
- }
23
3
  // src/events/pubsub.ts
24
4
  /**
25
5
  * The event bus behind workflow execution, streams, signals, background tasks
@@ -131,9 +111,7 @@ var PubSub = class {
131
111
  *
132
112
  * Workflow recovery leaves the evented runs on such a pubsub to the broker:
133
113
  * the message of the step a dead worker held is redelivered, so no recovery
134
- * pass restarts the run. The broker's abandonment threshold must be at least
135
- * 30 s, the evented step fence a dead worker leaves behind; a redelivery that
136
- * arrives before the fence expires is dropped as a duplicate.
114
+ * pass restarts the run.
137
115
  *
138
116
  * Evented workflows and agents that run on several processes need `true`
139
117
  * here. Without it, no other worker picks up the step a stopped worker held.
@@ -262,6 +240,26 @@ const NoopLeaseProvider = {
262
240
  return Promise.resolve(true);
263
241
  }
264
242
  };
243
+ // src/events/acking-callback.ts
244
+ /**
245
+ * Adapt an event-only handler into an `EventCallback` that acknowledges every
246
+ * delivery.
247
+ *
248
+ * Handlers that only need the event cannot honour the `EventCallback` contract
249
+ * themselves: on a durable backend (Redis consumer groups, GCP Pub/Sub) every
250
+ * delivery — including the ones a handler inspects and filters out — has to be
251
+ * acked, or it stays in the subscription's pending set and is redelivered.
252
+ * Wrapping is the only way an event-only handler can satisfy that.
253
+ *
254
+ * A throwing handler leaves the delivery unacked and rejects the callback, which
255
+ * a backend that honours redelivery treats as a nack.
256
+ */
257
+ function withAck(handler) {
258
+ return async (event, ack) => {
259
+ await handler(event);
260
+ await ack?.();
261
+ };
262
+ }
265
263
  // src/events/event-emitter/batch-policy.ts
266
264
  const defaultDeps = {
267
265
  now: () => Date.now(),
@@ -825,50 +823,14 @@ var EventEmitterPubSub = class extends PubSub {
825
823
  return Promise.resolve(true);
826
824
  }
827
825
  };
828
- // src/events/codec/error.ts
829
- const MAX_CAUSE_DEPTH = 5;
830
- /**
831
- * Serializes an Error instance to a plain SerializedError object without
832
- * mutating the original. Unlike `getErrorFromUnknown(...).toJSON()`, this does
833
- * not attach a non-enumerable `toJSON` to the live Error.
834
- */
835
- function serializeError(err, depth = 0) {
836
- const json = {
837
- name: err.name || "Error",
838
- message: err.message
839
- };
840
- if (err.stack !== void 0) json.stack = err.stack;
841
- if (err.cause !== void 0) {
842
- if (err.cause instanceof Error && depth < MAX_CAUSE_DEPTH) json.cause = serializeError(err.cause, depth + 1);
843
- else json.cause = err.cause;
844
- }
845
- for (const key in err) {
846
- if (!Object.prototype.hasOwnProperty.call(err, key)) continue;
847
- if (key === "message" || key === "name" || key === "stack" || key === "cause" || key === "__mastraSpanErrorOrigin") continue;
848
- json[key] = err[key];
849
- }
850
- const origin = getSpanErrorOrigin(err);
851
- if (origin) json.__mastraSpanErrorOrigin = origin;
852
- return json;
853
- }
854
- /**
855
- * Rehydrates a SerializedError into a vanilla Error instance. We never
856
- * instantiate user-controlled prototypes — name is preserved as a string field.
857
- */
858
- function rehydrateError(s) {
859
- const cause = s.cause !== void 0 ? s.cause && typeof s.cause === "object" && "message" in s.cause && "name" in s.cause ? rehydrateError(s.cause) : s.cause : void 0;
860
- const err = cause !== void 0 ? new Error(s.message, { cause }) : new Error(s.message);
861
- if (s.name) err.name = s.name;
862
- if (s.stack !== void 0) err.stack = s.stack;
863
- for (const key in s) {
864
- if (!Object.prototype.hasOwnProperty.call(s, key)) continue;
865
- if (key === "message" || key === "name" || key === "stack" || key === "cause" || key === "__mastraSpanErrorOrigin") continue;
866
- err[key] = s[key];
826
+ // src/events/publisher-queue-limit-error.ts
827
+ var PublisherQueueLimitError = class extends Error {
828
+ waitForCapacity;
829
+ constructor(message = "UnixSocketPubSub publisher queue limit exceeded", waitForCapacity) {
830
+ super(message);
831
+ this.waitForCapacity = waitForCapacity;
867
832
  }
868
- const origin = getSpanErrorOrigin(s);
869
- if (origin) setSpanErrorOrigin(err, origin);
870
- return err;
871
- }
833
+ };
872
834
  // src/stream/strip-model-snapshots.ts
873
835
  /**
874
836
  * Removes the model request/history snapshots that agent `step-start`,
@@ -1587,14 +1549,50 @@ var CachingPubSub = class extends PubSub {
1587
1549
  function withCaching(pubsub, cache, options) {
1588
1550
  return new CachingPubSub(pubsub, cache, options);
1589
1551
  }
1590
- // src/events/publisher-queue-limit-error.ts
1591
- var PublisherQueueLimitError = class extends Error {
1592
- waitForCapacity;
1593
- constructor(message = "UnixSocketPubSub publisher queue limit exceeded", waitForCapacity) {
1594
- super(message);
1595
- this.waitForCapacity = waitForCapacity;
1552
+ // src/events/codec/error.ts
1553
+ const MAX_CAUSE_DEPTH = 5;
1554
+ /**
1555
+ * Serializes an Error instance to a plain SerializedError object without
1556
+ * mutating the original. Unlike `getErrorFromUnknown(...).toJSON()`, this does
1557
+ * not attach a non-enumerable `toJSON` to the live Error.
1558
+ */
1559
+ function serializeError(err, depth = 0) {
1560
+ const json = {
1561
+ name: err.name || "Error",
1562
+ message: err.message
1563
+ };
1564
+ if (err.stack !== void 0) json.stack = err.stack;
1565
+ if (err.cause !== void 0) {
1566
+ if (err.cause instanceof Error && depth < MAX_CAUSE_DEPTH) json.cause = serializeError(err.cause, depth + 1);
1567
+ else json.cause = err.cause;
1596
1568
  }
1597
- };
1569
+ for (const key in err) {
1570
+ if (!Object.prototype.hasOwnProperty.call(err, key)) continue;
1571
+ if (key === "message" || key === "name" || key === "stack" || key === "cause" || key === "__mastraSpanErrorOrigin") continue;
1572
+ json[key] = err[key];
1573
+ }
1574
+ const origin = getSpanErrorOrigin(err);
1575
+ if (origin) json.__mastraSpanErrorOrigin = origin;
1576
+ return json;
1577
+ }
1578
+ /**
1579
+ * Rehydrates a SerializedError into a vanilla Error instance. We never
1580
+ * instantiate user-controlled prototypes — name is preserved as a string field.
1581
+ */
1582
+ function rehydrateError(s) {
1583
+ const cause = s.cause !== void 0 ? s.cause && typeof s.cause === "object" && "message" in s.cause && "name" in s.cause ? rehydrateError(s.cause) : s.cause : void 0;
1584
+ const err = cause !== void 0 ? new Error(s.message, { cause }) : new Error(s.message);
1585
+ if (s.name) err.name = s.name;
1586
+ if (s.stack !== void 0) err.stack = s.stack;
1587
+ for (const key in s) {
1588
+ if (!Object.prototype.hasOwnProperty.call(s, key)) continue;
1589
+ if (key === "message" || key === "name" || key === "stack" || key === "cause" || key === "__mastraSpanErrorOrigin") continue;
1590
+ err[key] = s[key];
1591
+ }
1592
+ const origin = getSpanErrorOrigin(s);
1593
+ if (origin) setSpanErrorOrigin(err, origin);
1594
+ return err;
1595
+ }
1598
1596
  // src/stream/aisdk/v5/output-helpers.ts
1599
1597
  var DefaultStepResult = class {
1600
1598
  content;
@@ -1651,4 +1649,4 @@ var DefaultStepResult = class {
1651
1649
  return this.toolResults.filter((toolResult) => toolResult.dynamic === true);
1652
1650
  }
1653
1651
  };
1654
- export { withAck as S, serializeError as _, DEFAULT_RUN_LOG_TTL_MS as a, PubSub as b, RUN_LOG_TTL_MS as c, streamTopicIdleTtlMs as d, toCachedLogFrame as f, rehydrateError as g, stripModelSnapshots as h, withCaching as i, cachedLogTtlMs as l, slimProgressChunk as m, PublisherQueueLimitError as n, DEFAULT_THREAD_STREAM_LOG_TTL_MS as o, slimNestedAgentChunks as p, CachingPubSub as r, RUN_LOCAL_TOPIC_PREFIXES as s, DefaultStepResult as t, isRunLocalTopic as u, EventEmitterPubSub as v, isLeaseProvider as x, NoopLeaseProvider as y };
1652
+ export { isLeaseProvider as S, PublisherQueueLimitError as _, withCaching as a, NoopLeaseProvider as b, RUN_LOCAL_TOPIC_PREFIXES as c, isRunLocalTopic as d, streamTopicIdleTtlMs as f, stripModelSnapshots as g, slimProgressChunk as h, CachingPubSub as i, RUN_LOG_TTL_MS as l, slimNestedAgentChunks as m, rehydrateError as n, DEFAULT_RUN_LOG_TTL_MS as o, toCachedLogFrame as p, serializeError as r, DEFAULT_THREAD_STREAM_LOG_TTL_MS as s, DefaultStepResult as t, cachedLogTtlMs as u, EventEmitterPubSub as v, PubSub as x, withAck as y };
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_run_registry = require("../run-registry-BaVTwGKh.cjs");
2
+ const require_execution_fence = require("../execution-fence-fqV6FGdV.cjs");
3
3
  let zod_v4 = require("zod/v4");
4
4
  // src/processor-provider/types.ts
5
5
  /**
@@ -69,7 +69,7 @@ const unicodeNormalizerProvider = {
69
69
  }),
70
70
  availablePhases: ["processInput"],
71
71
  createProcessor(config) {
72
- return new require_run_registry.UnicodeNormalizer(config);
72
+ return new require_execution_fence.UnicodeNormalizer(config);
73
73
  }
74
74
  };
75
75
  const tokenLimiterProvider = {
@@ -89,7 +89,7 @@ const tokenLimiterProvider = {
89
89
  "processOutputResult"
90
90
  ],
91
91
  createProcessor(config) {
92
- return new require_run_registry.TokenLimiterProcessor(config);
92
+ return new require_execution_fence.TokenLimiterProcessor(config);
93
93
  }
94
94
  };
95
95
  const toolCallFilterProvider = {
@@ -105,7 +105,7 @@ const toolCallFilterProvider = {
105
105
  }),
106
106
  availablePhases: ["processInput"],
107
107
  createProcessor(config) {
108
- return new require_run_registry.ToolCallFilter(config);
108
+ return new require_execution_fence.ToolCallFilter(config);
109
109
  }
110
110
  };
111
111
  const batchPartsProvider = {
@@ -121,7 +121,7 @@ const batchPartsProvider = {
121
121
  }),
122
122
  availablePhases: ["processOutputStream"],
123
123
  createProcessor(config) {
124
- return new require_run_registry.BatchPartsProcessor(config);
124
+ return new require_execution_fence.BatchPartsProcessor(config);
125
125
  }
126
126
  };
127
127
  const moderationProvider = {
@@ -151,7 +151,7 @@ const moderationProvider = {
151
151
  "processOutputStream"
152
152
  ],
153
153
  createProcessor(config) {
154
- return new require_run_registry.ModerationProcessor(config);
154
+ return new require_execution_fence.ModerationProcessor(config);
155
155
  }
156
156
  };
157
157
  const promptInjectionDetectorProvider = {
@@ -177,7 +177,7 @@ const promptInjectionDetectorProvider = {
177
177
  }),
178
178
  availablePhases: ["processInput"],
179
179
  createProcessor(config) {
180
- return new require_run_registry.PromptInjectionDetector(config);
180
+ return new require_execution_fence.PromptInjectionDetector(config);
181
181
  }
182
182
  };
183
183
  const piiDetectorProvider = {
@@ -210,7 +210,7 @@ const piiDetectorProvider = {
210
210
  }),
211
211
  availablePhases: ["processInput"],
212
212
  createProcessor(config) {
213
- return new require_run_registry.PIIDetector(config);
213
+ return new require_execution_fence.PIIDetector(config);
214
214
  }
215
215
  };
216
216
  const languageDetectorProvider = {
@@ -237,7 +237,7 @@ const languageDetectorProvider = {
237
237
  }),
238
238
  availablePhases: ["processInput"],
239
239
  createProcessor(config) {
240
- return new require_run_registry.LanguageDetector(config);
240
+ return new require_execution_fence.LanguageDetector(config);
241
241
  }
242
242
  };
243
243
  const systemPromptScrubberProvider = {
@@ -267,7 +267,7 @@ const systemPromptScrubberProvider = {
267
267
  }),
268
268
  availablePhases: ["processOutputStream", "processOutputResult"],
269
269
  createProcessor(config) {
270
- return new require_run_registry.SystemPromptScrubber(config);
270
+ return new require_execution_fence.SystemPromptScrubber(config);
271
271
  }
272
272
  };
273
273
  const BUILT_IN_PROCESSOR_PROVIDERS = {
@@ -1,4 +1,4 @@
1
- import { As as PromptInjectionDetector, Ms as UnicodeNormalizer, Os as LanguageDetector, _s as TokenLimiterProcessor, fs as ToolCallFilter, gs as SystemPromptScrubber, js as ModerationProcessor, ks as PIIDetector, ws as BatchPartsProcessor } from "../run-registry-bm6b6mwQ.js";
1
+ import { $o as TokenLimiterProcessor, Jo as ToolCallFilter, Qo as SystemPromptScrubber, ds as PIIDetector, fs as PromptInjectionDetector, ms as UnicodeNormalizer, os as BatchPartsProcessor, ps as ModerationProcessor, us as LanguageDetector } from "../execution-fence-B8yV_n51.js";
2
2
  import { z } from "zod/v4";
3
3
  // src/processor-provider/types.ts
4
4
  /**
@@ -1,75 +1,75 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_run_registry = require("../run-registry-BaVTwGKh.cjs");
3
- const require_stream = require("../stream-CbG7k93m.cjs");
4
- exports.AgentsMDInjector = require_run_registry.AgentsMDInjector;
5
- exports.BaseProcessor = require_run_registry.BaseProcessor;
6
- exports.BatchPartsProcessor = require_run_registry.BatchPartsProcessor;
7
- exports.ClassifierProcessor = require_run_registry.ClassifierProcessor;
8
- exports.CostGuardProcessor = require_run_registry.CostGuardProcessor;
9
- exports.CyberRefusalHandler = require_run_registry.CyberRefusalHandler;
10
- exports.DEFAULT_RESPONSE_CACHE_TTL_SECONDS = require_run_registry.DEFAULT_RESPONSE_CACHE_TTL_SECONDS;
11
- exports.FILE_UPLOAD_ERROR_CODES = require_run_registry.FILE_UPLOAD_ERROR_CODES;
12
- exports.FilePartSchema = require_run_registry.FilePartSchema;
13
- exports.FileUploadProcessor = require_run_registry.FileUploadProcessor;
14
- exports.ImagePartSchema = require_run_registry.ImagePartSchema;
15
- exports.LanguageDetector = require_run_registry.LanguageDetector;
16
- exports.MemoryInputFilter = require_run_registry.MemoryInputFilter;
17
- exports.MessageContentSchema = require_run_registry.MessageContentSchema;
18
- exports.MessageHistory = require_run_registry.MessageHistory;
19
- exports.MessagePartSchema = require_run_registry.MessagePartSchema;
20
- exports.ModelSelectionProcessor = require_run_registry.ModelSelectionProcessor;
21
- exports.ModerationProcessor = require_run_registry.ModerationProcessor;
22
- exports.PIIDetector = require_run_registry.PIIDetector;
23
- exports.PrefillErrorHandler = require_run_registry.PrefillErrorHandler;
24
- exports.ProcessorInputPhaseSchema = require_run_registry.ProcessorInputPhaseSchema;
25
- exports.ProcessorInputStepPhaseSchema = require_run_registry.ProcessorInputStepPhaseSchema;
26
- exports.ProcessorMessageContentSchema = require_run_registry.ProcessorMessageContentSchema;
27
- exports.ProcessorMessageSchema = require_run_registry.ProcessorMessageSchema;
28
- exports.ProcessorOutputResultPhaseSchema = require_run_registry.ProcessorOutputResultPhaseSchema;
29
- exports.ProcessorOutputStepPhaseSchema = require_run_registry.ProcessorOutputStepPhaseSchema;
30
- exports.ProcessorOutputStreamPhaseSchema = require_run_registry.ProcessorOutputStreamPhaseSchema;
2
+ const require_stream = require("../stream-CZy8XA_q.cjs");
3
+ const require_execution_fence = require("../execution-fence-fqV6FGdV.cjs");
4
+ exports.AgentsMDInjector = require_execution_fence.AgentsMDInjector;
5
+ exports.BaseProcessor = require_execution_fence.BaseProcessor;
6
+ exports.BatchPartsProcessor = require_execution_fence.BatchPartsProcessor;
7
+ exports.ClassifierProcessor = require_execution_fence.ClassifierProcessor;
8
+ exports.CostGuardProcessor = require_execution_fence.CostGuardProcessor;
9
+ exports.CyberRefusalHandler = require_execution_fence.CyberRefusalHandler;
10
+ exports.DEFAULT_RESPONSE_CACHE_TTL_SECONDS = require_execution_fence.DEFAULT_RESPONSE_CACHE_TTL_SECONDS;
11
+ exports.FILE_UPLOAD_ERROR_CODES = require_execution_fence.FILE_UPLOAD_ERROR_CODES;
12
+ exports.FilePartSchema = require_execution_fence.FilePartSchema;
13
+ exports.FileUploadProcessor = require_execution_fence.FileUploadProcessor;
14
+ exports.ImagePartSchema = require_execution_fence.ImagePartSchema;
15
+ exports.LanguageDetector = require_execution_fence.LanguageDetector;
16
+ exports.MemoryInputFilter = require_execution_fence.MemoryInputFilter;
17
+ exports.MessageContentSchema = require_execution_fence.MessageContentSchema;
18
+ exports.MessageHistory = require_execution_fence.MessageHistory;
19
+ exports.MessagePartSchema = require_execution_fence.MessagePartSchema;
20
+ exports.ModelSelectionProcessor = require_execution_fence.ModelSelectionProcessor;
21
+ exports.ModerationProcessor = require_execution_fence.ModerationProcessor;
22
+ exports.PIIDetector = require_execution_fence.PIIDetector;
23
+ exports.PrefillErrorHandler = require_execution_fence.PrefillErrorHandler;
24
+ exports.ProcessorInputPhaseSchema = require_execution_fence.ProcessorInputPhaseSchema;
25
+ exports.ProcessorInputStepPhaseSchema = require_execution_fence.ProcessorInputStepPhaseSchema;
26
+ exports.ProcessorMessageContentSchema = require_execution_fence.ProcessorMessageContentSchema;
27
+ exports.ProcessorMessageSchema = require_execution_fence.ProcessorMessageSchema;
28
+ exports.ProcessorOutputResultPhaseSchema = require_execution_fence.ProcessorOutputResultPhaseSchema;
29
+ exports.ProcessorOutputStepPhaseSchema = require_execution_fence.ProcessorOutputStepPhaseSchema;
30
+ exports.ProcessorOutputStreamPhaseSchema = require_execution_fence.ProcessorOutputStreamPhaseSchema;
31
31
  exports.ProcessorRunner = require_stream.ProcessorRunner;
32
32
  exports.ProcessorState = require_stream.ProcessorState;
33
- exports.ProcessorStepInputSchema = require_run_registry.ProcessorStepInputSchema;
34
- exports.ProcessorStepOutputSchema = require_run_registry.ProcessorStepOutputSchema;
35
- exports.ProcessorStepSchema = require_run_registry.ProcessorStepSchema;
36
- exports.PromptInjectionDetector = require_run_registry.PromptInjectionDetector;
33
+ exports.ProcessorStepInputSchema = require_execution_fence.ProcessorStepInputSchema;
34
+ exports.ProcessorStepOutputSchema = require_execution_fence.ProcessorStepOutputSchema;
35
+ exports.ProcessorStepSchema = require_execution_fence.ProcessorStepSchema;
36
+ exports.PromptInjectionDetector = require_execution_fence.PromptInjectionDetector;
37
37
  exports.ProviderHistoryCompat = require_stream.ProviderHistoryCompat;
38
38
  exports.REPROCESS_PART_KEY = require_stream.REPROCESS_PART_KEY;
39
- exports.RESPONSE_CACHE_CONTEXT_KEY = require_run_registry.RESPONSE_CACHE_CONTEXT_KEY;
40
- exports.ReasoningPartSchema = require_run_registry.ReasoningPartSchema;
41
- exports.RegexFilterProcessor = require_run_registry.RegexFilterProcessor;
42
- exports.ResponseCache = require_run_registry.ResponseCache;
43
- exports.STABILITY_ERROR_PROCESSOR_IDS = require_run_registry.STABILITY_ERROR_PROCESSOR_IDS;
44
- exports.SemanticRecall = require_run_registry.SemanticRecall;
45
- exports.SkillSearchProcessor = require_run_registry.SkillSearchProcessor;
46
- exports.SkillsProcessor = require_run_registry.SkillsProcessor;
47
- exports.SourcePartSchema = require_run_registry.SourcePartSchema;
48
- exports.StepStartPartSchema = require_run_registry.StepStartPartSchema;
49
- exports.StreamErrorRetryProcessor = require_run_registry.StreamErrorRetryProcessor;
50
- exports.StructuredOutputProcessor = require_run_registry.StructuredOutputProcessor;
51
- exports.SystemPromptScrubber = require_run_registry.SystemPromptScrubber;
52
- exports.TextPartSchema = require_run_registry.TextPartSchema;
53
- exports.TokenCostControl = require_run_registry.TokenCostControl;
54
- exports.TokenLimiter = require_run_registry.TokenLimiterProcessor;
55
- exports.TokenLimiterProcessor = require_run_registry.TokenLimiterProcessor;
56
- exports.ToolCallFilter = require_run_registry.ToolCallFilter;
57
- exports.ToolInvocationPartSchema = require_run_registry.ToolInvocationPartSchema;
58
- exports.ToolSearchProcessor = require_run_registry.ToolSearchProcessor;
59
- exports.UnicodeNormalizer = require_run_registry.UnicodeNormalizer;
60
- exports.UnsupportedFileHandler = require_run_registry.UnsupportedFileHandler;
61
- exports.WorkingMemory = require_run_registry.WorkingMemory;
62
- exports.WorkspaceInstructionsProcessor = require_run_registry.WorkspaceInstructionsProcessor;
39
+ exports.RESPONSE_CACHE_CONTEXT_KEY = require_execution_fence.RESPONSE_CACHE_CONTEXT_KEY;
40
+ exports.ReasoningPartSchema = require_execution_fence.ReasoningPartSchema;
41
+ exports.RegexFilterProcessor = require_execution_fence.RegexFilterProcessor;
42
+ exports.ResponseCache = require_execution_fence.ResponseCache;
43
+ exports.STABILITY_ERROR_PROCESSOR_IDS = require_execution_fence.STABILITY_ERROR_PROCESSOR_IDS;
44
+ exports.SemanticRecall = require_execution_fence.SemanticRecall;
45
+ exports.SkillSearchProcessor = require_execution_fence.SkillSearchProcessor;
46
+ exports.SkillsProcessor = require_execution_fence.SkillsProcessor;
47
+ exports.SourcePartSchema = require_execution_fence.SourcePartSchema;
48
+ exports.StepStartPartSchema = require_execution_fence.StepStartPartSchema;
49
+ exports.StreamErrorRetryProcessor = require_execution_fence.StreamErrorRetryProcessor;
50
+ exports.StructuredOutputProcessor = require_execution_fence.StructuredOutputProcessor;
51
+ exports.SystemPromptScrubber = require_execution_fence.SystemPromptScrubber;
52
+ exports.TextPartSchema = require_execution_fence.TextPartSchema;
53
+ exports.TokenCostControl = require_execution_fence.TokenCostControl;
54
+ exports.TokenLimiter = require_execution_fence.TokenLimiterProcessor;
55
+ exports.TokenLimiterProcessor = require_execution_fence.TokenLimiterProcessor;
56
+ exports.ToolCallFilter = require_execution_fence.ToolCallFilter;
57
+ exports.ToolInvocationPartSchema = require_execution_fence.ToolInvocationPartSchema;
58
+ exports.ToolSearchProcessor = require_execution_fence.ToolSearchProcessor;
59
+ exports.UnicodeNormalizer = require_execution_fence.UnicodeNormalizer;
60
+ exports.UnsupportedFileHandler = require_execution_fence.UnsupportedFileHandler;
61
+ exports.WorkingMemory = require_execution_fence.WorkingMemory;
62
+ exports.WorkspaceInstructionsProcessor = require_execution_fence.WorkspaceInstructionsProcessor;
63
63
  exports.anthropicToolIdFormat = require_stream.anthropicToolIdFormat;
64
- exports.buildResponseCacheKey = require_run_registry.buildResponseCacheKey;
64
+ exports.buildResponseCacheKey = require_execution_fence.buildResponseCacheKey;
65
65
  exports.cerebrasStripReasoningContent = require_stream.cerebrasStripReasoningContent;
66
- exports.createBackgroundWorkSignalProcessor = require_run_registry.createBackgroundWorkSignalProcessor;
66
+ exports.createBackgroundWorkSignalProcessor = require_execution_fence.createBackgroundWorkSignalProcessor;
67
67
  exports.createProcessorSendSignal = require_stream.createProcessorSendSignal;
68
- exports.defaultStabilityErrorProcessors = require_run_registry.defaultStabilityErrorProcessors;
69
- exports.formatSkillsCatalog = require_run_registry.formatSkillsCatalog;
70
- exports.globalEmbeddingCache = require_run_registry.globalEmbeddingCache;
71
- exports.isBadRequestError = require_run_registry.isBadRequestError;
72
- exports.isMalformedFunctionCallError = require_run_registry.isMalformedFunctionCallError;
68
+ exports.defaultStabilityErrorProcessors = require_execution_fence.defaultStabilityErrorProcessors;
69
+ exports.formatSkillsCatalog = require_execution_fence.formatSkillsCatalog;
70
+ exports.globalEmbeddingCache = require_execution_fence.globalEmbeddingCache;
71
+ exports.isBadRequestError = require_execution_fence.isBadRequestError;
72
+ exports.isMalformedFunctionCallError = require_execution_fence.isMalformedFunctionCallError;
73
73
  exports.isProcessorWorkflow = require_stream.isProcessorWorkflow;
74
- exports.isRetryableOpenAIResponsesStreamError = require_run_registry.isRetryableOpenAIResponsesStreamError;
74
+ exports.isRetryableOpenAIResponsesStreamError = require_execution_fence.isRetryableOpenAIResponsesStreamError;
75
75
  exports.openaiOrphanItemId = require_stream.openaiOrphanItemId;
@@ -1,3 +1,3 @@
1
- import { $l as ProcessorStepSchema, As as PromptInjectionDetector, Bl as FilePartSchema, Bs as isBadRequestError, Ds as StructuredOutputProcessor, Es as ClassifierProcessor, Fs as isMalformedFunctionCallError, Gl as ProcessorInputStepPhaseSchema, Hl as MessageContentSchema, Hs as PrefillErrorHandler, Is as UnsupportedFileHandler, Jl as ProcessorOutputResultPhaseSchema, Kl as ProcessorMessageContentSchema, Ls as FileUploadProcessor, Ms as UnicodeNormalizer, Ns as STABILITY_ERROR_PROCESSOR_IDS, Os as LanguageDetector, Ps as defaultStabilityErrorProcessors, Ql as ProcessorStepOutputSchema, Rs as FILE_UPLOAD_ERROR_CODES, Ts as ModelSelectionProcessor, Ul as MessagePartSchema, Vl as ImagePartSchema, Vs as isRetryableOpenAIResponsesStreamError, Wl as ProcessorInputPhaseSchema, Xl as ProcessorOutputStreamPhaseSchema, Yl as ProcessorOutputStepPhaseSchema, Zl as ProcessorStepInputSchema, _s as TokenLimiterProcessor, ar as BaseProcessor, as as buildResponseCacheKey, cr as globalEmbeddingCache, cs as SkillsProcessor, ds as AgentsMDInjector, es as createBackgroundWorkSignalProcessor, eu as ReasoningPartSchema, fs as ToolCallFilter, gs as SystemPromptScrubber, hs as TokenCostControl, is as ResponseCache, iu as ToolInvocationPartSchema, js as ModerationProcessor, ks as PIIDetector, lr as WorkingMemory, ls as formatSkillsCatalog, ms as CostGuardProcessor, ns as DEFAULT_RESPONSE_CACHE_TTL_SECONDS, nu as StepStartPartSchema, or as MemoryInputFilter, os as WorkspaceInstructionsProcessor, ps as RegexFilterProcessor, ql as ProcessorMessageSchema, rs as RESPONSE_CACHE_CONTEXT_KEY, ru as TextPartSchema, sr as SemanticRecall, ss as SkillSearchProcessor, ts as CyberRefusalHandler, tu as SourcePartSchema, ur as MessageHistory, us as ToolSearchProcessor, ws as BatchPartsProcessor, zs as StreamErrorRetryProcessor } from "../run-registry-bm6b6mwQ.js";
2
- import { H as anthropicToolIdFormat, K as REPROCESS_PART_KEY, M as ProcessorRunner, N as ProcessorState, U as cerebrasStripReasoningContent, V as ProviderHistoryCompat, W as openaiOrphanItemId, it as createProcessorSendSignal, ln as isProcessorWorkflow } from "../stream-B9dswdIM.js";
1
+ import { H as anthropicToolIdFormat, K as REPROCESS_PART_KEY, M as ProcessorRunner, N as ProcessorState, U as cerebrasStripReasoningContent, V as ProviderHistoryCompat, W as openaiOrphanItemId, it as createProcessorSendSignal, ln as isProcessorWorkflow } from "../stream-BFhCDJvz.js";
2
+ import { $l as ProcessorOutputStreamPhaseSchema, $o as TokenLimiterProcessor, Bo as ResponseCache, Cs as isRetryableOpenAIResponsesStreamError, Gl as MessageContentSchema, Gn as WorkingMemory, Go as formatSkillsCatalog, Hn as MemoryInputFilter, Ho as WorkspaceInstructionsProcessor, Io as createBackgroundWorkSignalProcessor, Jl as ProcessorInputStepPhaseSchema, Jo as ToolCallFilter, Kl as MessagePartSchema, Kn as MessageHistory, Ko as ToolSearchProcessor, Lo as CyberRefusalHandler, Ql as ProcessorOutputStepPhaseSchema, Qo as SystemPromptScrubber, Ro as DEFAULT_RESPONSE_CACHE_TTL_SECONDS, Ss as isBadRequestError, Ul as FilePartSchema, Un as SemanticRecall, Uo as SkillSearchProcessor, Vn as BaseProcessor, Vo as buildResponseCacheKey, Wl as ImagePartSchema, Wn as globalEmbeddingCache, Wo as SkillsProcessor, Xl as ProcessorMessageSchema, Xo as CostGuardProcessor, Yl as ProcessorMessageContentSchema, Yo as RegexFilterProcessor, Zl as ProcessorOutputResultPhaseSchema, Zo as TokenCostControl, _s as isMalformedFunctionCallError, au as StepStartPartSchema, bs as FILE_UPLOAD_ERROR_CODES, cs as ClassifierProcessor, ds as PIIDetector, eu as ProcessorStepInputSchema, fs as PromptInjectionDetector, gs as defaultStabilityErrorProcessors, hs as STABILITY_ERROR_PROCESSOR_IDS, iu as SourcePartSchema, ls as StructuredOutputProcessor, ms as UnicodeNormalizer, nu as ProcessorStepSchema, os as BatchPartsProcessor, ou as TextPartSchema, ps as ModerationProcessor, ql as ProcessorInputPhaseSchema, qo as AgentsMDInjector, ru as ReasoningPartSchema, ss as ModelSelectionProcessor, su as ToolInvocationPartSchema, tu as ProcessorStepOutputSchema, us as LanguageDetector, vs as UnsupportedFileHandler, ws as PrefillErrorHandler, xs as StreamErrorRetryProcessor, ys as FileUploadProcessor, zo as RESPONSE_CACHE_CONTEXT_KEY } from "../execution-fence-B8yV_n51.js";
3
3
  export { AgentsMDInjector, BaseProcessor, BatchPartsProcessor, ClassifierProcessor, CostGuardProcessor, CyberRefusalHandler, DEFAULT_RESPONSE_CACHE_TTL_SECONDS, FILE_UPLOAD_ERROR_CODES, FilePartSchema, FileUploadProcessor, ImagePartSchema, LanguageDetector, MemoryInputFilter, MessageContentSchema, MessageHistory, MessagePartSchema, ModelSelectionProcessor, ModerationProcessor, PIIDetector, PrefillErrorHandler, ProcessorInputPhaseSchema, ProcessorInputStepPhaseSchema, ProcessorMessageContentSchema, ProcessorMessageSchema, ProcessorOutputResultPhaseSchema, ProcessorOutputStepPhaseSchema, ProcessorOutputStreamPhaseSchema, ProcessorRunner, ProcessorState, ProcessorStepInputSchema, ProcessorStepOutputSchema, ProcessorStepSchema, PromptInjectionDetector, ProviderHistoryCompat, REPROCESS_PART_KEY, RESPONSE_CACHE_CONTEXT_KEY, ReasoningPartSchema, RegexFilterProcessor, ResponseCache, STABILITY_ERROR_PROCESSOR_IDS, SemanticRecall, SkillSearchProcessor, SkillsProcessor, SourcePartSchema, StepStartPartSchema, StreamErrorRetryProcessor, StructuredOutputProcessor, SystemPromptScrubber, TextPartSchema, TokenCostControl, TokenLimiterProcessor as TokenLimiter, TokenLimiterProcessor, ToolCallFilter, ToolInvocationPartSchema, ToolSearchProcessor, UnicodeNormalizer, UnsupportedFileHandler, WorkingMemory, WorkspaceInstructionsProcessor, anthropicToolIdFormat, buildResponseCacheKey, cerebrasStripReasoningContent, createBackgroundWorkSignalProcessor, createProcessorSendSignal, defaultStabilityErrorProcessors, formatSkillsCatalog, globalEmbeddingCache, isBadRequestError, isMalformedFunctionCallError, isProcessorWorkflow, isRetryableOpenAIResponsesStreamError, openaiOrphanItemId };