@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
@@ -16,6 +16,11 @@ export interface KnowledgeStorageCapabilities {
16
16
  * pin kinds don't report it, and core refuses listing pins on them rather than store a page pin.
17
17
  */
18
18
  supportsPinKinds?: boolean;
19
+ /**
20
+ * `listPageActivity` accepts `since`, `until` and `before` (dated mode). Adapters without it don't
21
+ * report it, and core refuses dated activity reads on them rather than return unbounded history.
22
+ */
23
+ supportsActivityDateRange?: boolean;
19
24
  }
20
25
  /** @experimental Knowledge APIs are experimental and may change without notice. */
21
26
  export type KnowledgeSchemaInspection = {
@@ -47,6 +47,7 @@ export declare class InMemoryKnowledgeStorage extends KnowledgeStorage {
47
47
  readonly supportsSchemaInspection: true;
48
48
  readonly supportsExplicitReset: true;
49
49
  readonly supportsPinKinds: true;
50
+ readonly supportsActivityDateRange: true;
50
51
  };
51
52
  inspectSchema(): Promise<{
52
53
  readonly status: 'compatible';
@@ -490,6 +490,23 @@ export interface KnowledgePageActivityEvent {
490
490
  createdAt: Date;
491
491
  }
492
492
  /** @experimental */
493
+ export interface KnowledgePageActivityInput {
494
+ read: KnowledgeReadScope;
495
+ scopeId?: string;
496
+ pageId?: string;
497
+ cursor?: string;
498
+ limit?: number;
499
+ /** Events at or after this time (dated mode). */
500
+ since?: Date;
501
+ /** Events before this time (dated mode). */
502
+ until?: Date;
503
+ /** Events strictly older than this one in dated `(createdAt, id)` order (dated mode). */
504
+ before?: {
505
+ createdAt: Date;
506
+ id: string;
507
+ };
508
+ }
509
+ /** @experimental */
493
510
  export interface KnowledgeScopeDeclarationCount {
494
511
  declaration: string;
495
512
  scopes: number;
@@ -728,14 +745,14 @@ export interface KnowledgePageStore {
728
745
  * mention's page scope readable). The log never reveals a hidden page's or note's id, author or
729
746
  * source thread. `scopeId` on an event is the home scope after the change (the target for a move or
730
747
  * merge); the `scopeId` filter matches the page's current home scope.
748
+ *
749
+ * `since` (inclusive), `until` (exclusive) and `before` put the read in dated mode, only on stores
750
+ * reporting `supportsActivityDateRange`: events are ordered by `createdAt` then `id`, both newest
751
+ * first, the bounds apply before the limit, and `before` returns only events strictly older than
752
+ * that event in this order. `before` can't be combined with `cursor`. Without any of them the
753
+ * store's existing order and cursor are unchanged.
731
754
  */
732
- listPageActivity(input: {
733
- read: KnowledgeReadScope;
734
- scopeId?: string;
735
- pageId?: string;
736
- cursor?: string;
737
- limit?: number;
738
- }): Promise<{
755
+ listPageActivity(input: KnowledgePageActivityInput): Promise<{
739
756
  events: KnowledgePageActivityEvent[];
740
757
  nextCursor?: string;
741
758
  }>;
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_run_registry = require("../run-registry-5Suldxz3.cjs");
2
3
  const require_observability = require("../observability-B0R_D1PZ.cjs");
3
- const require_stream = require("../stream-4aNIw_TQ.cjs");
4
- const require_run_registry = require("../run-registry-5_LQBGn_.cjs");
4
+ const require_stream = require("../stream-Dvy_0o14.cjs");
5
5
  const require_storage = require("../storage-CfG0I2aF.cjs");
6
6
  const require_constants = require("../constants-B9ZDvXZ4.cjs");
7
7
  const require_filesystem_versioned = require("../filesystem-versioned-DZGyPbNC.cjs");
@@ -1,6 +1,6 @@
1
+ import { $a as planTraceQuery, $i as resolveRetentionTargets, $n as assertKnowledgeCeilingRaised, $r as KnowledgeMoveTooLargeError, Aa as threadQueryResponseSchema, Ai as inspectKnowledgeSchema, Ar as ScoresInMemory, Ba as parseSpanQueryRequest, Bl as runFencingNotSupportedError, Ca as tracePageResponseSchema, Ci as KnowledgeConflictError, Cr as createEmptyWorkflowSnapshot, Da as planThreadRowsQuery, Di as KnowledgeUnsupportedCapabilityError, Dr as WorkflowDefinitionsStorage, Ea as encodeThreadQueryCursor, Ei as KnowledgeStorage, Er as InMemoryWorkflowDefinitionsStorage, Fa as SPAN_QUERY_MAX_PREVIEW_CHARACTERS, Fi as ExperimentsStorage, Fl as coverNestedRun, Fr as InMemoryNotificationsStorage, Ga as spanQueryIdentitySchema, Ha as resolveSpanQueryCost, Hl as setRunFenceContext, Ia as SPAN_QUERY_ORDER_FIELDS, Ii as DatasetsInMemory, Il as currentRunGeneration, Ir as NotificationsStorage, Ja as spanQueryRowSchema, Ji as InMemoryBlobStore, Ka as spanQueryRequestSchema, Ki as InMemoryChannelsStorage, La as buildSpanQueryResponse, Li as DatasetsStorage, Ll as isRunFenceConflictError, Lr as dispatchDueNotifications, Ma as SPAN_QUERY_MAX_COST_METRICS, Mi as InMemoryHarness, Ml as RUN_FENCE_CONFLICT_ERROR_ID, Mr as InMemorySchedulesStorage, Ms as WorkflowStepConflictError, Na as SPAN_QUERY_MAX_CURSOR_BYTES, Ni as HarnessStorage, Nl as RUN_FENCING_NOT_SUPPORTED_ERROR_ID, Nr as SchedulesStorage, Ns as assertWorkflowStepGuard, Oa as threadQueryIdentitySchema, Oi as assertKnowledgeSchemaCompatible, Or as InMemoryToolProviderConnectionsStorage, Pa as SPAN_QUERY_MAX_LIMIT, Pi as ExperimentsInMemory, Pl as RunFenceConflictError, Pr as normalizeScheduleTarget, Ps as isWorkflowStepConflictError, Qa as planThreadQuery, Qi as executeRetentionPrune, Qn as MAX_KNOWLEDGE_SCOPE_TAGS, Qr as InMemoryKnowledgeStorage, Ra as createSpanQueryPreview, Ri as DatasetItemIdentityConflictError, Rl as matchesRunFence, Sa as tracePageRequestSchema, Si as KNOWLEDGE_STORAGE_SCHEMA_VERSION, Sr as WorkflowsStorage, Ta as THREAD_QUERY_MAX_LIMIT, Ti as KnowledgeSchemaResetRequiredError, Tr as mergeWorkflowStepResult, Ua as spanQueryCostSchema, Va as planSpanQuery, Vl as runOutsideRunFenceScope, Wa as spanQueryIdentityKey, Xa as encodeTraceQueryDeltaCursor, Xi as BackgroundTasksInMemory, Xn as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, Xr as InMemoryMemory, Ya as encodeTraceQueryCursor, Yi as BlobStore, Za as getTraceQueryDeltaWatermark, Zi as BackgroundTasksStorage, Zn as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, Zr as MemoryStorage, _a as validateStorageMetadataFilter, _i as knowledgePinDepth, _r as FilesystemDB, aa as ensureDate, ai as MAX_KNOWLEDGE_PAGE_BODY_LINKS, ao as buildUpdateSpanRecord, ar as expandKnowledgeScope, ba as tracePageIdSchema, bi as parseKnowledgePageRef, br as WorkflowsInMemory, ca as getSqlType, ci as MAX_KNOWLEDGE_PAGE_LINKS, co as serializeSpanAttributes, cr as knowledgeSemanticDocumentId, da as parseDuration, di as MAX_KNOWLEDGE_PIN_LIST_DEPTH, do as ObservabilityStorage, dr as parseKnowledgeNodeCursor, ea as retentionCutoffMs, ei as KnowledgePageDepthError, eo as buildCreateSpanRecord, er as assertKnowledgeDescriptionWithinBound, fa as safelyParseJSON, fi as assertKnowledgeNoteTextWithinBound, fo as FactoryStorage, fr as StoreOperationsInMemory, ga as transformScoreRow, gi as knowledgePagePath, gr as FilesystemStore, ha as transformRow, hi as knowledgeLinkRefKey, hr as createGitHubSourceControlProviderFromEnv, ia as createVectorErrorId, ii as MAX_KNOWLEDGE_NOTE_TOKENS, io as buildScoreRecord, ir as createKnowledgeNodeCursor, ja as threadQueryRowSchema, ji as parseKnowledgeWikilinks, jr as ScoresStorage, ka as threadQueryRequestSchema, ki as createKnowledgeUlid, kr as ToolProviderConnectionsStorage, la as hasErrorCode, li as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, lo as toEntityType, lr as knowledgeSemanticIdempotencyKey, ma as storageMessageMatchesMetadataFilter, mi as canonicalKnowledgeName, mo as UniqueViolationError, mr as GitHubSourceControlProvider, na as createStorageErrorId, ni as KnowledgePageKeyConflictError, no as buildLogRecord, nr as assertKnowledgeScopeWithinCeiling, oa as filterByDateRange, oi as MAX_KNOWLEDGE_PAGE_DEPTH, oo as getObjectOrNull, or as isKnowledgeScopeVisible, pa as serializeDate, pi as assertKnowledgePageDescriptionWithinBound, po as FactoryStorageDomain, pr as StoreOperations, qa as spanQueryResponseSchema, qi as ChannelsStorage, ra as createStoreErrorId, ri as MAX_KNOWLEDGE_MOVE_PAGES, ro as buildMetricRecord, rr as canonicalizeKnowledgeScope, sa as getDefaultValue, si as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, so as getStringOrNull, sr as knowledgeScopeKey, ta as runRetentionBatches, ti as KnowledgePageHasChildrenError, to as buildFeedbackRecord, tr as assertKnowledgeRecordTextWithinBound, ua as jsonValueEquals, ui as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, uo as ObservabilityInMemory, ur as knowledgeVisibleScopeKeys, va as TracePageError, vi as knowledgePositionBetween, vr as InMemoryStore, wa as THREAD_QUERY_DEFAULT_LIMIT, wi as KnowledgeNotFoundError, wr as mergeStepResult, xa as tracePageNodeSchema, xi as KNOWLEDGE_STORAGE_CONTRACT_VERSION, xr as cloneRunData, ya as readTracePage, yi as knowledgeScopeReadable, yr as MockStore, za as encodeSpanQueryCursor, zl as resolveRunFence } from "../run-registry-CGRPldLH.js";
1
2
  import { a as PREVIEW_MAX_LENGTH } from "../observability-D7RNOAPx.js";
2
- import { At as materializeWorkflowRun, Ct as getSnapshotMemoryInfo, Dt as isStateCheckpointDue, Et as applyStateColumnsWrite, Ft as unusedStateEntries, It as applyStatePatch, Lt as diffState, Mt as stateBaseOf, Nt as stateColumnsWrite, Ot as latestStepResults, Pt as summarizeStepResult, Tt as STEP_RESULT_SUMMARY_FIELDS, jt as pickStateKeys, kt as materializeState, wt as STATE_CHECKPOINT_PATCHES } from "../stream-CJUm6EAH.js";
3
- import { $a as planTraceQuery, $i as resolveRetentionTargets, $n as assertKnowledgeCeilingRaised, $r as KnowledgeMoveTooLargeError, Aa as threadQueryResponseSchema, Ai as inspectKnowledgeSchema, Ar as ScoresInMemory, Ba as parseSpanQueryRequest, Bl as runFencingNotSupportedError, Ca as tracePageResponseSchema, Ci as KnowledgeConflictError, Cr as createEmptyWorkflowSnapshot, Da as planThreadRowsQuery, Di as KnowledgeUnsupportedCapabilityError, Dr as WorkflowDefinitionsStorage, Ea as encodeThreadQueryCursor, Ei as KnowledgeStorage, Er as InMemoryWorkflowDefinitionsStorage, Fa as SPAN_QUERY_MAX_PREVIEW_CHARACTERS, Fi as ExperimentsStorage, Fl as coverNestedRun, Fr as InMemoryNotificationsStorage, Ga as spanQueryIdentitySchema, Ha as resolveSpanQueryCost, Hl as setRunFenceContext, Ia as SPAN_QUERY_ORDER_FIELDS, Ii as DatasetsInMemory, Il as currentRunGeneration, Ir as NotificationsStorage, Ja as spanQueryRowSchema, Ji as InMemoryBlobStore, Ka as spanQueryRequestSchema, Ki as InMemoryChannelsStorage, La as buildSpanQueryResponse, Li as DatasetsStorage, Ll as isRunFenceConflictError, Lr as dispatchDueNotifications, Ma as SPAN_QUERY_MAX_COST_METRICS, Mi as InMemoryHarness, Ml as RUN_FENCE_CONFLICT_ERROR_ID, Mr as InMemorySchedulesStorage, Ms as WorkflowStepConflictError, Na as SPAN_QUERY_MAX_CURSOR_BYTES, Ni as HarnessStorage, Nl as RUN_FENCING_NOT_SUPPORTED_ERROR_ID, Nr as SchedulesStorage, Ns as assertWorkflowStepGuard, Oa as threadQueryIdentitySchema, Oi as assertKnowledgeSchemaCompatible, Or as InMemoryToolProviderConnectionsStorage, Pa as SPAN_QUERY_MAX_LIMIT, Pi as ExperimentsInMemory, Pl as RunFenceConflictError, Pr as normalizeScheduleTarget, Ps as isWorkflowStepConflictError, Qa as planThreadQuery, Qi as executeRetentionPrune, Qn as MAX_KNOWLEDGE_SCOPE_TAGS, Qr as InMemoryKnowledgeStorage, Ra as createSpanQueryPreview, Ri as DatasetItemIdentityConflictError, Rl as matchesRunFence, Sa as tracePageRequestSchema, Si as KNOWLEDGE_STORAGE_SCHEMA_VERSION, Sr as WorkflowsStorage, Ta as THREAD_QUERY_MAX_LIMIT, Ti as KnowledgeSchemaResetRequiredError, Tr as mergeWorkflowStepResult, Ua as spanQueryCostSchema, Va as planSpanQuery, Vl as runOutsideRunFenceScope, Wa as spanQueryIdentityKey, Xa as encodeTraceQueryDeltaCursor, Xi as BackgroundTasksInMemory, Xn as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, Xr as InMemoryMemory, Ya as encodeTraceQueryCursor, Yi as BlobStore, Za as getTraceQueryDeltaWatermark, Zi as BackgroundTasksStorage, Zn as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, Zr as MemoryStorage, _a as validateStorageMetadataFilter, _i as knowledgePinDepth, _r as FilesystemDB, aa as ensureDate, ai as MAX_KNOWLEDGE_PAGE_BODY_LINKS, ao as buildUpdateSpanRecord, ar as expandKnowledgeScope, ba as tracePageIdSchema, bi as parseKnowledgePageRef, br as WorkflowsInMemory, ca as getSqlType, ci as MAX_KNOWLEDGE_PAGE_LINKS, co as serializeSpanAttributes, cr as knowledgeSemanticDocumentId, da as parseDuration, di as MAX_KNOWLEDGE_PIN_LIST_DEPTH, do as ObservabilityStorage, dr as parseKnowledgeNodeCursor, ea as retentionCutoffMs, ei as KnowledgePageDepthError, eo as buildCreateSpanRecord, er as assertKnowledgeDescriptionWithinBound, fa as safelyParseJSON, fi as assertKnowledgeNoteTextWithinBound, fo as FactoryStorage, fr as StoreOperationsInMemory, ga as transformScoreRow, gi as knowledgePagePath, gr as FilesystemStore, ha as transformRow, hi as knowledgeLinkRefKey, hr as createGitHubSourceControlProviderFromEnv, ia as createVectorErrorId, ii as MAX_KNOWLEDGE_NOTE_TOKENS, io as buildScoreRecord, ir as createKnowledgeNodeCursor, ja as threadQueryRowSchema, ji as parseKnowledgeWikilinks, jr as ScoresStorage, ka as threadQueryRequestSchema, ki as createKnowledgeUlid, kr as ToolProviderConnectionsStorage, la as hasErrorCode, li as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, lo as toEntityType, lr as knowledgeSemanticIdempotencyKey, ma as storageMessageMatchesMetadataFilter, mi as canonicalKnowledgeName, mo as UniqueViolationError, mr as GitHubSourceControlProvider, na as createStorageErrorId, ni as KnowledgePageKeyConflictError, no as buildLogRecord, nr as assertKnowledgeScopeWithinCeiling, oa as filterByDateRange, oi as MAX_KNOWLEDGE_PAGE_DEPTH, oo as getObjectOrNull, or as isKnowledgeScopeVisible, pa as serializeDate, pi as assertKnowledgePageDescriptionWithinBound, po as FactoryStorageDomain, pr as StoreOperations, qa as spanQueryResponseSchema, qi as ChannelsStorage, ra as createStoreErrorId, ri as MAX_KNOWLEDGE_MOVE_PAGES, ro as buildMetricRecord, rr as canonicalizeKnowledgeScope, sa as getDefaultValue, si as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, so as getStringOrNull, sr as knowledgeScopeKey, ta as runRetentionBatches, ti as KnowledgePageHasChildrenError, to as buildFeedbackRecord, tr as assertKnowledgeRecordTextWithinBound, ua as jsonValueEquals, ui as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, uo as ObservabilityInMemory, ur as knowledgeVisibleScopeKeys, va as TracePageError, vi as knowledgePositionBetween, vr as InMemoryStore, wa as THREAD_QUERY_DEFAULT_LIMIT, wi as KnowledgeNotFoundError, wr as mergeStepResult, xa as tracePageNodeSchema, xi as KNOWLEDGE_STORAGE_CONTRACT_VERSION, xr as cloneRunData, ya as readTracePage, yi as knowledgeScopeReadable, yr as MockStore, za as encodeSpanQueryCursor, zl as resolveRunFence } from "../run-registry-DC03XLeZ.js";
3
+ import { At as materializeWorkflowRun, Ct as getSnapshotMemoryInfo, Dt as isStateCheckpointDue, Et as applyStateColumnsWrite, Ft as unusedStateEntries, It as applyStatePatch, Lt as diffState, Mt as stateBaseOf, Nt as stateColumnsWrite, Ot as latestStepResults, Pt as summarizeStepResult, Tt as STEP_RESULT_SUMMARY_FIELDS, jt as pickStateKeys, kt as materializeState, wt as STATE_CHECKPOINT_PATCHES } from "../stream-Dpwx0whf.js";
4
4
  import { $ as getFeedbackAggregateArgsSchema, $t as metricsFilterSchema, A as deleteScoresResponseSchema, An as tagsField, At as getServiceNamesResponseSchema, B as experimentIdField, Bt as listScoresArgsSchema, C as dateRangeSchema, Cn as scoresOrderBySchema, Ct as getScoreBreakdownArgsSchema, D as deleteFeedbackArgsSchema, Dn as sourceField, Dt as getScoreTimeSeriesArgsSchema, E as defaultPaginationArgs, En as sortDirectionSchema, Et as getScorePercentilesResponseSchema, F as entityIdField, Fn as userIdField, Ft as listLogsArgsSchema, G as feedbackRecordSchema, Gt as logsFilterSchema, H as feedbackInputSchema, Ht as logLevelSchema, I as entityNameField, It as listLogsResponseSchema, J as getEntityNamesResponseSchema, Jt as metadataField, K as feedbackReviewStatusSchema, Kt as logsOrderByFieldSchema, L as entityTypeField, Lt as listMetricsArgsSchema, M as deltaInfoSchema, Mn as traceIdField, Mt as getTagsResponseSchema, N as deltaLimitSchema, Nn as updateFeedbackReviewStatusArgsSchema, Nt as listFeedbackArgsSchema, O as deleteFeedbackResponseSchema, On as spanContextFields, Ot as getScoreTimeSeriesResponseSchema, P as distinctColumnSchema, Pn as updatedAtField, Pt as listFeedbackResponseSchema, Q as getEnvironmentsResponseSchema, Qt as metricsAggregationSchema, R as environmentField, Rt as listMetricsResponseSchema, S as createdAtField, Sn as scoresOrderByFieldSchema, St as getScoreAggregateResponseSchema, T as defaultDeltaLimit, Tn as sessionIdField, Tt as getScorePercentilesArgsSchema, U as feedbackOrderByFieldSchema, Ut as logRecordInputSchema, V as feedbackFilterSchema, Vt as listScoresResponseSchema, W as feedbackOrderBySchema, Wt as logRecordSchema, X as getEntityTypesResponseSchema, Xt as metricRecordSchema, Y as getEntityTypesArgsSchema, Yt as metricInputSchema, Z as getEnvironmentsArgsSchema, Zt as metricTypeSchema, _ as createMetricRecordSchema, _n as runIdField, _t as getMetricPercentilesArgsSchema, a as batchCreateFeedbackArgsSchema, an as paginationInfoSchema, at as getFeedbackTimeSeriesArgsSchema, b as createScoreRecordSchema, bn as scoreRecordSchema, bt as getMetricTimeSeriesResponseSchema, c as batchCreateScoresArgsSchema, cn as parentEntityTypeField, ct as getMetricAggregateResponseSchema, d as contextFields, dn as requestIdField, dt as getMetricLabelKeysArgsSchema, en as metricsOrderByFieldSchema, et as getFeedbackAggregateResponseSchema, f as createFeedbackArgsSchema, ft as getMetricLabelKeysResponseSchema, g as createLogRecordSchema, gn as rootEntityTypeField, gt as getMetricNamesResponseSchema, h as createFeedbackResponseSchema, hn as rootEntityNameField, ht as getMetricNamesArgsSchema, i as aggregationTypeSchema, in as paginationArgsSchema, it as getFeedbackPercentilesResponseSchema, j as deltaCursorSchema, jn as threadIdField, jt as getTagsArgsSchema, k as deleteScoresArgsSchema, kn as spanIdField, kt as getServiceNamesArgsSchema, l as commonFilterFields, ln as refineObservabilityListMode, lt as getMetricBreakdownArgsSchema, m as createFeedbackRecordSchema, mn as rootEntityIdField, mt as getMetricLabelValuesResponseSchema, n as METRIC_DISTINCT_COLUMNS, nn as normalizeObservabilityListArgs, nt as getFeedbackBreakdownResponseSchema, o as batchCreateLogsArgsSchema, on as parentEntityIdField, ot as getFeedbackTimeSeriesResponseSchema, p as createFeedbackBodySchema, pn as resourceIdField, pt as getMetricLabelValuesArgsSchema, q as getEntityNamesArgsSchema, qt as logsOrderBySchema, r as aggregationIntervalSchema, rn as organizationIdField, rt as getFeedbackPercentilesArgsSchema, s as batchCreateMetricsArgsSchema, sn as parentEntityNameField, st as getMetricAggregateArgsSchema, t as EntityType, tn as metricsOrderBySchema, tt as getFeedbackBreakdownArgsSchema, u as comparePeriodSchema, un as replaceFeedbackBodySchema, ut as getMetricBreakdownResponseSchema, v as createScoreArgsSchema, vn as scopeField, vt as getMetricPercentilesResponseSchema, w as dbTimestamps, wn as serviceNameField, wt as getScoreBreakdownResponseSchema, x as createScoreResponseSchema, xn as scoresFilterSchema, xt as getScoreAggregateArgsSchema, y as createScoreBodySchema, yn as scoreInputSchema, yt as getMetricTimeSeriesArgsSchema, z as executionSourceField, zt as listModeSchema } from "../storage-Cc50aQAp.js";
5
5
  import { $ as TABLE_CHANNEL_INSTALLATIONS, $n as listTracesLightResponseSchema, $t as TABLE_WORKSPACES, A as MCP_CLIENTS_SCHEMA, An as computeTraceStatus, At as TABLE_OBSERVATIONAL_MEMORY, B as PROMPT_BLOCK_VERSIONS_SCHEMA, Bn as getSpansArgsSchema, Bt as TABLE_SKILLS, C as KNOWLEDGE_SCOPE_GRANTS_SCHEMA, Cn as branchesFilterSchema, Ct as TABLE_MCP_CLIENTS, D as KNOWLEDGE_V2_MENTIONS_SCHEMA, Dn as buildPreview, Dt as TABLE_MEMORY_RUN_FENCES, E as KNOWLEDGE_V2_ACTIVITY_SCHEMA, En as buildInputPreview, Et as TABLE_MCP_SERVER_VERSIONS, F as NOTIFICATIONS_SCHEMA, Fn as getBranchResponseSchema, Ft as TABLE_SCHEDULE_TRIGGERS, G as SKILLS_SCHEMA, Gn as getTraceLightResponseSchema, Gt as TABLE_THREAD_STATE, H as SCORERS_SCHEMA, Hn as getStringAttribute, Ht as TABLE_SKILL_VERSIONS, I as OBSERVATIONAL_MEMORY_SCHEMA, In as getRootSpanArgsSchema, It as TABLE_SCHEMAS, J as SPAN_SCHEMA, Jn as lightSpanRecordSchema, Jt as TABLE_WORKFLOW_DEFINITIONS, K as SKILL_BLOBS_SCHEMA, Kn as getTraceResponseSchema, Kt as TABLE_TOOL_PROVIDER_CONNECTIONS, L as OBSERVATIONAL_MEMORY_TABLE_SCHEMA, Ln as getRootSpanResponseSchema, Lt as TABLE_SCORERS, M as MCP_SERVERS_SCHEMA, Mn as createSpanRecordSchema, Mt as TABLE_PROMPT_BLOCK_VERSIONS, N as MCP_SERVER_VERSIONS_SCHEMA, Nn as extractBranchSpans, Nt as TABLE_RESOURCES, O as KNOWLEDGE_V2_NODES_SCHEMA, On as buildPreviewFromJson, Ot as TABLE_MESSAGES, P as MEMORY_RUN_FENCES_SCHEMA, Pn as getBranchArgsSchema, Pt as TABLE_SCHEDULES, Q as TABLE_CHANNEL_CONFIG, Qn as listTracesArgsSchema, Qt as TABLE_WORKFLOW_SNAPSHOT, R as OLD_SPAN_SCHEMA, Rn as getSpanArgsSchema, Rt as TABLE_SCORER_DEFINITIONS, S as KNOWLEDGE_SCOPE_ADDRESSES_SCHEMA, Sn as batchUpdateSpansArgsSchema, St as TABLE_KNOWLEDGE_SEMANTIC_OUTBOX, T as KNOWLEDGE_TABLE_NAMES, Tn as branchesOrderBySchema, Tt as TABLE_MCP_SERVERS, U as SCORER_DEFINITIONS_SCHEMA, Un as getStructureResponseSchema, Ut as TABLE_SPANS, V as RUN_FENCING_TABLE_SCHEMAS, Vn as getSpansResponseSchema, Vt as TABLE_SKILL_BLOBS, W as SCORER_DEFINITION_VERSIONS_SCHEMA, Wn as getTraceArgsSchema, Wt as TABLE_THREADS, X as TABLE_AGENT_VERSIONS, Xn as listBranchesResponseSchema, Xt as TABLE_WORKFLOW_RUN_ENTRIES, Y as TABLE_AGENTS, Yn as listBranchesArgsSchema, Yt as TABLE_WORKFLOW_RUNS, Z as TABLE_BACKGROUND_TASKS, Zn as listScoresBySpanResponseSchema, Zt as TABLE_WORKFLOW_RUN_OWNERS, _ as KNOWLEDGE_NODE_ADDRESSES_SCHEMA, _n as INPUT_PREVIEW_MAX_LENGTH, _r as isAppendOnlySince, _t as TABLE_KNOWLEDGE_PROPOSALS, a as DATASET_VERSIONS_SCHEMA, an as WORKFLOW_RUN_ENTRIES_SCHEMA, ar as spanRecordSchema, at as TABLE_EXPERIMENT_RESULTS, b as KNOWLEDGE_RECORDS_SCHEMA, bn as batchDeleteTracesArgsSchema, br as maxObservationCursor, bt as TABLE_KNOWLEDGE_SCOPE_ADDRESSES, c as FAVORITES_SCHEMA, cn as WORKSPACES_SCHEMA, cr as toTraceSpans, ct as TABLE_KNOWLEDGE_ACCESS_STATE, d as KNOWLEDGE_ACTIVITY_SCHEMA, dn as STORAGE_VISIBILITY_VALUES, dr as tracesOrderByFieldSchema, dt as TABLE_KNOWLEDGE_IMPORT_RUNS, en as TABLE_WORKSPACE_VERSIONS, er as listTracesResponseSchema, et as TABLE_CONFIGS, f as KNOWLEDGE_CURSORS_SCHEMA, fn as buildStorageSchema, fr as tracesOrderBySchema, ft as TABLE_KNOWLEDGE_IMPORT_STATE, g as KNOWLEDGE_NODES_SCHEMA, gn as BRANCH_SPAN_TYPE_SET, gr as compareObservationalMemoryHeadOrder, gt as TABLE_KNOWLEDGE_NODE_SCOPES, h as KNOWLEDGE_MENTIONS_SCHEMA, hn as BRANCH_SPAN_TYPES, hr as assertActiveObservationsApplied, ht as TABLE_KNOWLEDGE_NODE_ADDRESSES, i as DATASET_ITEMS_SCHEMA, in as WORKFLOW_RUNS_SCHEMA, ir as spanIdsSchema, it as TABLE_EXPERIMENTS, j as MCP_CLIENT_VERSIONS_SCHEMA, jn as createSpanArgsSchema, jt as TABLE_PROMPT_BLOCKS, k as KNOWLEDGE_V2_RECORDS_SCHEMA, kn as buildStoredPreview, kt as TABLE_NOTIFICATIONS, l as HARNESS_SESSIONS_SCHEMA, ln as WORKSPACE_VERSIONS_SCHEMA, lr as traceSpanSchema, lt as TABLE_KNOWLEDGE_ACTIVITY, m as KNOWLEDGE_IMPORT_STATE_SCHEMA, mn as BATCH_DELETE_TRACES_MAX_IDS, mr as updateSpanRecordSchema, mt as TABLE_KNOWLEDGE_NODES, n as AGENT_VERSIONS_SCHEMA, nn as TOOL_PROVIDER_CONNECTIONS_SCHEMA, nr as scoreTracesResponseSchema, nt as TABLE_DATASET_ITEMS, o as EXPERIMENTS_SCHEMA, on as WORKFLOW_RUN_JOURNAL_TABLE_CONFIGS, or as toLightSpanRecord, ot as TABLE_FAVORITES, p as KNOWLEDGE_IMPORT_RUNS_SCHEMA, pn as matchesExpectedWorkflowStatus, pr as updateSpanArgsSchema, pt as TABLE_KNOWLEDGE_MENTIONS, q as SKILL_VERSIONS_SCHEMA, qn as isPreviewTruncated, qt as TABLE_TRACES, r as DATASETS_SCHEMA, rn as WORKFLOW_DEFINITIONS_SCHEMA, rr as spanIds, rt as TABLE_DATASET_VERSIONS, s as EXPERIMENT_RESULTS_SCHEMA, sn as WORKFLOW_RUN_OWNERS_SCHEMA, sr as toTraceSpan, st as TABLE_HARNESS_SESSIONS, t as AGENTS_SCHEMA, tn as THREAD_STATE_SCHEMA, tr as scoreTracesRequestSchema, tt as TABLE_DATASETS, u as KNOWLEDGE_ACCESS_STATE_SCHEMA, un as STORAGE_FAVORITE_ENTITY_TYPES, ur as tracesFilterSchema, ut as TABLE_KNOWLEDGE_CURSORS, v as KNOWLEDGE_NODE_SCOPES_SCHEMA, vn as TraceStatus, vr as isBufferedChunkCoveredByCursor, vt as TABLE_KNOWLEDGE_RECORDS, w as KNOWLEDGE_SEMANTIC_OUTBOX_SCHEMA, wn as branchesOrderByFieldSchema, wt as TABLE_MCP_CLIENT_VERSIONS, x as KNOWLEDGE_RECORD_SCOPES_SCHEMA, xn as batchDeleteTracesResponseSchema, xr as planReflectionGenerationText, xt as TABLE_KNOWLEDGE_SCOPE_GRANTS, y as KNOWLEDGE_PROPOSALS_SCHEMA, yn as batchCreateSpansArgsSchema, yr as isBufferedReflectionUnchangedSince, yt as TABLE_KNOWLEDGE_RECORD_SCOPES, z as PROMPT_BLOCKS_SCHEMA, zn as getSpanResponseSchema, zt as TABLE_SCORER_DEFINITION_VERSIONS } from "../constants-BmdTvEYN.js";
6
6
  import { _ as ThreadStateStorage, a as GitHistory, c as DOMAIN_KEYS, d as MastraStorage, f as calculatePagination, g as InMemoryThreadStateStorage, h as resolveListOrderBy, i as getSourceControlEntityFilePath, l as EDITOR_DOMAINS, m as normalizePerPage, n as SOURCE_CONTROL_AGENTS_DIR, o as VersionedStorageDomain, p as compareByField, r as getSourceAgentFilePath, s as StorageDomain, t as FilesystemVersionedHelpers, u as MastraCompositeStore } from "../filesystem-versioned-Bijb_p9l.js";
@@ -46,7 +46,26 @@ type PromiseResults<OUTPUT = undefined> = Pick<LLMStepResult<OUTPUT>, 'text' | '
46
46
  finishReason: LLMStepResult<OUTPUT>['finishReason'];
47
47
  };
48
48
  /**
49
- * The complete output returned by `getFullOutput()`.
49
+ * The complete result of `agent.generate()` (and of `getFullOutput()` on a stream).
50
+ *
51
+ * - `text`: final text; `object`: typed structured output when `structuredOutput` was set.
52
+ * - `toolCalls` / `toolResults`: every tool call and result across all steps, as chunks whose
53
+ * data is under `payload` — read `toolCalls[i].payload.toolName` / `.payload.args`
54
+ * (`ToolCallPayload`) and `toolResults[i].payload.result` (`ToolResultPayload`).
55
+ * - `steps[i].toolCalls` / `steps[i].toolResults`: the same chunks, per step.
56
+ * - `usage` covers the last step; `totalUsage` covers the whole run.
57
+ * - Goal runs: each continuing goal evaluation clears `text`, `steps`, `toolCalls` and
58
+ * `toolResults`, so they cover only the turns after the last such evaluation. `totalUsage`
59
+ * stays cumulative.
60
+ *
61
+ * @example
62
+ * ```ts
63
+ * const result = await agent.generate('What is the weather in Paris?');
64
+ * for (const call of result.toolCalls) console.log(call.payload.toolName, call.payload.args);
65
+ * for (const res of result.toolResults) console.log(res.payload.result);
66
+ * ```
67
+ *
68
+ * @see [Agent.generate() response structure](https://mastra.ai/reference/agents/generate#response-structure)
50
69
  */
51
70
  export type FullOutput<OUTPUT = undefined> = {
52
71
  /** The text output from all steps, excluding rejected responses */
@@ -67,9 +86,17 @@ export type FullOutput<OUTPUT = undefined> = {
67
86
  reasoning: PromiseResults<OUTPUT>['reasoning'];
68
87
  /** Combined reasoning text */
69
88
  reasoningText: string | undefined;
70
- /** Tool calls made during execution */
89
+ /**
90
+ * Every tool call made during the run, across all steps (for goal runs, only after the last
91
+ * continuing goal evaluation). Each entry is a chunk; the call is under `payload`
92
+ * (`payload.toolCallId`, `payload.toolName`, `payload.args`).
93
+ */
71
94
  toolCalls: PromiseResults<OUTPUT>['toolCalls'];
72
- /** Results from tool executions */
95
+ /**
96
+ * Every tool result produced during the run, across all steps (for goal runs, only after the
97
+ * last continuing goal evaluation). Each entry is a chunk; the tool's return value is
98
+ * `payload.result`.
99
+ */
73
100
  toolResults: PromiseResults<OUTPUT>['toolResults'];
74
101
  /** Sources referenced by model */
75
102
  sources: PromiseResults<OUTPUT>['sources'];
@@ -195,13 +222,13 @@ export declare class MastraModelOutput<OUTPUT = undefined> extends MastraBase {
195
222
  /**
196
223
  * Resolves to reasoning parts array for models that support reasoning.
197
224
  */
198
- get reasoning(): Promise<import("../types").ReasoningChunk[]>;
225
+ get reasoning(): Promise<import("..").ReasoningChunk[]>;
199
226
  /**
200
227
  * Resolves to complete reasoning text for models that support reasoning.
201
228
  */
202
229
  get reasoningText(): Promise<string | undefined>;
203
- get sources(): Promise<import("../types").SourceChunk[]>;
204
- get files(): Promise<import("../types").FileChunk[]>;
230
+ get sources(): Promise<import("..").SourceChunk[]>;
231
+ get files(): Promise<import("..").FileChunk[]>;
205
232
  get steps(): Promise<LLMStepResult<OUTPUT>[]>;
206
233
  get suspendPayload(): Promise<any>;
207
234
  get resumeSchema(): Promise<any>;
@@ -222,7 +249,7 @@ export declare class MastraModelOutput<OUTPUT = undefined> extends MastraBase {
222
249
  /**
223
250
  * Resolves to array of all tool execution results.
224
251
  */
225
- get toolResults(): Promise<import("../types").ToolResultChunk[]>;
252
+ get toolResults(): Promise<import("..").ToolResultChunk[]>;
226
253
  /**
227
254
  * Resolves to token usage statistics including inputTokens, outputTokens, and totalTokens.
228
255
  */
@@ -326,7 +353,7 @@ export declare class MastraModelOutput<OUTPUT = undefined> extends MastraBase {
326
353
  /** @internal */
327
354
  _getImmediateToolCalls(): ToolCallChunk[];
328
355
  /** @internal */
329
- _getImmediateToolResults(): import("../types").ToolResultChunk[];
356
+ _getImmediateToolResults(): import("..").ToolResultChunk[];
330
357
  /** @internal */
331
358
  _getImmediateText(): string;
332
359
  /** @internal */
@@ -365,15 +392,15 @@ export declare class MastraModelOutput<OUTPUT = undefined> extends MastraBase {
365
392
  status: WorkflowRunStatus;
366
393
  bufferedSteps: LLMStepResult<OUTPUT>[];
367
394
  bufferedStepRequests: unknown[] | undefined;
368
- bufferedReasoningDetails: Record<string, import("../types").ReasoningChunk>;
369
- bufferedByStepReasoningDetails: Record<string, import("../types").ReasoningChunk>;
395
+ bufferedReasoningDetails: Record<string, import("..").ReasoningChunk>;
396
+ bufferedByStepReasoningDetails: Record<string, import("..").ReasoningChunk>;
370
397
  bufferedByStep: LLMStepResult<OUTPUT>;
371
398
  bufferedText: string[];
372
399
  bufferedTextAtStepStart: number;
373
400
  bufferedTextChunks: Record<string, string[]>;
374
- bufferedSources: import("../types").SourceChunk[];
375
- bufferedReasoning: import("../types").ReasoningChunk[];
376
- bufferedFiles: import("../types").FileChunk[];
401
+ bufferedSources: import("..").SourceChunk[];
402
+ bufferedReasoning: import("..").ReasoningChunk[];
403
+ bufferedFiles: import("..").FileChunk[];
377
404
  toolCallArgsDeltas: Record<string, string[]>;
378
405
  toolCallDeltaIdNameMap: Record<string, string>;
379
406
  toolCallStreamingMeta: Record<string, ToolCallStreamingMeta>;
@@ -387,7 +414,7 @@ export declare class MastraModelOutput<OUTPUT = undefined> extends MastraBase {
387
414
  replaceableToolCallIds: string[];
388
415
  attemptToolCallIds: string[];
389
416
  toolCalls: ToolCallChunk[];
390
- toolResults: import("../types").ToolResultChunk[];
417
+ toolResults: import("..").ToolResultChunk[];
391
418
  warnings: import("../../_types/@ai-sdk_provider@2.0.5/dist/index.js").LanguageModelV2CallWarning[];
392
419
  finishReason: string | undefined;
393
420
  request: {
@@ -401,7 +428,7 @@ export declare class MastraModelOutput<OUTPUT = undefined> extends MastraBase {
401
428
  generationReportedStepCount: number;
402
429
  tripwire: StepTripwireData | undefined;
403
430
  wasSuspended: boolean;
404
- messageList: import("../../agent/message-list/state/MessageStateManager.js").SerializedMessageListState;
431
+ messageList: import("../../agent/message-list/state").SerializedMessageListState;
405
432
  };
406
433
  deserializeState(state: any): void;
407
434
  }
@@ -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_llm = require("../llm-CsQuqKPc.cjs");
2
+ const require_stream = require("../stream-Dvy_0o14.cjs");
3
+ const require_llm = require("../llm-DmUucguC.cjs");
4
4
  const require_file = require("../file-BEndQUN1.cjs");
5
5
  exports.ChunkFrom = require_llm.ChunkFrom;
6
6
  exports.DefaultGeneratedFile = require_file.DefaultGeneratedFile;
@@ -1,4 +1,4 @@
1
- import { a as convertFullStreamChunkToMastra, bn as convertFullStreamChunkToUIMessageStream, c as WorkflowRunOutput, d as MastraModelOutput, i as withStreamCaching, n as createCachingTransformStream, o as convertMastraChunkToAISDKv5, r as createReplayStream, s as MastraAgentNetworkStream, t as smoothStream } from "../stream-CJUm6EAH.js";
2
- import { u as ChunkFrom } from "../llm-DnXK3Pmw.js";
1
+ import { a as convertFullStreamChunkToMastra, bn as convertFullStreamChunkToUIMessageStream, c as WorkflowRunOutput, d as MastraModelOutput, i as withStreamCaching, n as createCachingTransformStream, o as convertMastraChunkToAISDKv5, r as createReplayStream, s as MastraAgentNetworkStream, t as smoothStream } from "../stream-Dpwx0whf.js";
2
+ import { u as ChunkFrom } from "../llm-Djd8Qzi0.js";
3
3
  import { n as DefaultGeneratedFileWithType, t as DefaultGeneratedFile } from "../file-DGZrR5f7.js";
4
4
  export { ChunkFrom, DefaultGeneratedFile, DefaultGeneratedFileWithType, MastraAgentNetworkStream, MastraModelOutput, WorkflowRunOutput, convertFullStreamChunkToMastra, convertFullStreamChunkToUIMessageStream, convertMastraChunkToAISDKv5, createCachingTransformStream, createReplayStream, smoothStream, withStreamCaching };
@@ -158,12 +158,25 @@ export interface MastraMetadata {
158
158
  workflowFullState?: ReadonlyJSONObject;
159
159
  selectionReason?: string;
160
160
  }
161
+ /**
162
+ * Data of a tool call chunk: what the model asked to run. Found at `chunk.payload` for
163
+ * `tool-call` chunks, e.g. `result.toolCalls[i].payload` from `agent.generate()`.
164
+ *
165
+ * - `toolName` / `args`: the tool the model picked and the input it passed.
166
+ * - `toolCallId`: matches the `toolCallId` of the corresponding {@link ToolResultPayload}.
167
+ * - The tool's return value is not here; read it from the matching tool result's
168
+ * `payload.result` (`result.toolResults`).
169
+ */
161
170
  export interface ToolCallPayload<TArgs = unknown, TOutput = unknown> {
171
+ /** Unique ID for this call; the matching tool result has the same `toolCallId`. */
162
172
  toolCallId: string;
173
+ /** Name (key) of the tool the model called. */
163
174
  toolName: string;
175
+ /** Input the model passed to the tool. */
164
176
  args?: TArgs & {
165
177
  __mastraMetadata?: MastraMetadata;
166
178
  };
179
+ /** True when the provider ran the tool itself (e.g. a provider-hosted search tool). */
167
180
  providerExecuted?: boolean;
168
181
  providerMetadata?: ProviderMetadata;
169
182
  output?: TOutput;
@@ -182,9 +195,15 @@ export interface ToolCallPayload<TArgs = unknown, TOutput = unknown> {
182
195
  */
183
196
  observability?: ClientObservabilityCarrier;
184
197
  }
198
+ /**
199
+ * Data of a tool result chunk: what a tool returned. Found at `chunk.payload` for
200
+ * `tool-result` chunks, e.g. `result.toolResults[i].payload` from `agent.generate()`.
201
+ * `result` is the tool's return value; `toolCallId` links it to its {@link ToolCallPayload}.
202
+ */
185
203
  export interface ToolResultPayload<TResult = unknown, TArgs = unknown> {
186
204
  toolCallId: string;
187
205
  toolName: string;
206
+ /** The value the tool returned. */
188
207
  result: TResult;
189
208
  isError?: boolean;
190
209
  providerExecuted?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { n as __exportAll } from "./rolldown-runtime-tIEjjQTE.js";
2
- import { d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, p as readModelStreamTransport } from "./llm-DnXK3Pmw.js";
2
+ import { d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, p as readModelStreamTransport } from "./llm-Djd8Qzi0.js";
3
3
  import { B as getResponseProviderItemIdFromPart, G as RESPONSE_ITEM_ID_PROVIDERS, K as RESPONSE_RESULT_ITEM_ID_KEY, f as coreContentToString, n as MessageList, p as messagesAreEqual, t as convertMessages } from "./message-list-DEuRl82K.js";
4
4
  import { S as resolveObservabilityContext, x as createObservabilityContext } from "./observability-D7RNOAPx.js";
5
5
  import { t as MastraBase } from "./base-CKLWBhDo.js";
@@ -1,5 +1,5 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
2
- const require_llm = require("./llm-CsQuqKPc.cjs");
2
+ const require_llm = require("./llm-DmUucguC.cjs");
3
3
  const require_message_list = require("./message-list-DPXPXvin.cjs");
4
4
  const require_observability = require("./observability-B0R_D1PZ.cjs");
5
5
  const require_base = require("./base-BIzR1D3_.cjs");
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_rolldown_runtime = require("../rolldown-runtime-BrhgMLW6.cjs");
3
3
  const require_dist = require("../dist-CXeCeeW7.cjs");
4
- const require_model = require("../model-CNPfry_X.cjs");
4
+ const require_model = require("../model-Do6DTJoj.cjs");
5
5
  const require_model$1 = require("../model-jBymoqGa.cjs");
6
6
  let stream = require("stream");
7
7
  let module$1 = require("module");
@@ -1,5 +1,5 @@
1
1
  import { o as simulateReadableStream } from "../dist-D3cKCUe-.js";
2
- import { t as MastraLLMV1 } from "../model-CsOcWMUt.js";
2
+ import { t as MastraLLMV1 } from "../model-CW-mfGYA.js";
3
3
  import { t as AISDKV5LanguageModel } from "../model-DS-b2R-R.js";
4
4
  import { createRequire } from "module";
5
5
  import { Readable } from "stream";
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_tool_loop_agent = require("../tool-loop-agent-Dn0QCB9n.cjs");
2
+ const require_tool_loop_agent = require("../tool-loop-agent-UxOv3FoK.cjs");
3
3
  exports.getSettings = require_tool_loop_agent.getSettings;
4
4
  exports.isToolLoopAgentLike = require_tool_loop_agent.isToolLoopAgentLike;
5
5
  exports.toolLoopAgentToMastraAgent = require_tool_loop_agent.toolLoopAgentToMastraAgent;
@@ -1 +1 @@
1
- export { n as getSettings, r as isToolLoopAgentLike, t as toolLoopAgentToMastraAgent } from "../tool-loop-agent-FEEwHfmg.js";
1
+ export { n as getSettings, r as isToolLoopAgentLike, t as toolLoopAgentToMastraAgent } from "../tool-loop-agent-PbWrEj1k.js";
@@ -1,7 +1,7 @@
1
1
  import { m as generateId } from "./dist-TPVqg8oV.js";
2
- import { P as Agent } from "./run-registry-DC03XLeZ.js";
3
- import { rn as isSupportedLanguageModel } from "./stream-CJUm6EAH.js";
4
- import { i as resolveModelConfig } from "./llm-DnXK3Pmw.js";
2
+ import { P as Agent } from "./run-registry-CGRPldLH.js";
3
+ import { rn as isSupportedLanguageModel } from "./stream-Dpwx0whf.js";
4
+ import { i as resolveModelConfig } from "./llm-Djd8Qzi0.js";
5
5
  import { N as ToolLoopAgent } from "./message-list-DEuRl82K.js";
6
6
  // src/tool-loop-agent/utils.ts
7
7
  function isToolLoopAgentLike(obj) {
@@ -1,7 +1,7 @@
1
1
  const require_dist = require("./dist-P2rjrlmj.cjs");
2
- const require_run_registry = require("./run-registry-5_LQBGn_.cjs");
3
- const require_stream = require("./stream-4aNIw_TQ.cjs");
4
- const require_llm = require("./llm-CsQuqKPc.cjs");
2
+ const require_run_registry = require("./run-registry-5Suldxz3.cjs");
3
+ const require_stream = require("./stream-Dvy_0o14.cjs");
4
+ const require_llm = require("./llm-DmUucguC.cjs");
5
5
  const require_message_list = require("./message-list-DPXPXvin.cjs");
6
6
  // src/tool-loop-agent/utils.ts
7
7
  function isToolLoopAgentLike(obj) {
@@ -622,7 +622,33 @@ export type ToolExecuteCallContext<TContext> = Omit<TContext, 'observe'> & {
622
622
  export type ToolExecuteContext<TContext, TRequestContext extends Record<string, any> | unknown = unknown> = Omit<TContext, 'requestContext'> & {
623
623
  requestContext: RequestContext<TRequestContext>;
624
624
  };
625
- /** The `execute` callback signature used by `createTool` and `new Tool(...)`. */
625
+ /**
626
+ * The `execute` callback of `createTool({ execute })` / `new Tool(...)`: called as
627
+ * `execute(inputData, context)`.
628
+ *
629
+ * - `inputData`: the tool input, already validated against `inputSchema` (the callback is not
630
+ * called when validation fails; the caller gets a `ValidationError` instead). It is the
631
+ * input object itself, not wrapped in `{ context }`.
632
+ * - `context`: runtime context — `requestContext` (always present), `mastra`, `abortSignal`,
633
+ * `writer` (stream custom data), `workspace`, `observe`, and `agent` (`toolCallId`,
634
+ * `threadId`, `resourceId`, `suspend`, `resumeData`) when an agent runs the tool, or
635
+ * `workflow` when a workflow step does.
636
+ * - Return the tool output (validated against `outputSchema` when set).
637
+ *
638
+ * @example
639
+ * ```ts
640
+ * createTool({
641
+ * id: 'get-weather',
642
+ * description: 'Get the weather for a city',
643
+ * inputSchema: z.object({ city: z.string() }),
644
+ * execute: async ({ city }, { requestContext, abortSignal }) => {
645
+ * return { city, temperature: 21 };
646
+ * },
647
+ * });
648
+ * ```
649
+ *
650
+ * @see [createTool() reference](https://mastra.ai/reference/tools/create-tool)
651
+ */
626
652
  export type ToolExecuteFunction<TSchemaIn, TSchemaOut, TContext, TRequestContext extends Record<string, any> | unknown = unknown> = (inputData: TSchemaIn, context: ToolExecuteContext<TContext, TRequestContext>) => Promise<TSchemaOut | ValidationError | void>;
627
653
  export interface ToolAction<TSchemaIn, TSchemaOut, TSuspend = unknown, TResume = unknown, TContext extends ToolExecutionContext<TSuspend, TResume, any> = ToolExecutionContext<TSuspend, TResume>, TId extends string = string, TRequestContext extends Record<string, any> | unknown = unknown> {
628
654
  id: TId;
@@ -1,7 +1,7 @@
1
1
  const require_error = require("./error-D90lJ6M7.cjs");
2
2
  const require_tool = require("./tool-CYlT2UA-.cjs");
3
3
  const require_ee_iTj2bRDt = require("./ee-iTj2bRDt-D3-QLGDF.cjs");
4
- const require_background_tasks = require("./background-tasks-DqnQMfuf.cjs");
4
+ const require_background_tasks = require("./background-tasks-7iftnRK_.cjs");
5
5
  const require_base = require("./base-BIzR1D3_.cjs");
6
6
  const require_observability = require("./observability-B0R_D1PZ.cjs");
7
7
  const require_utils = require("./utils-D-eNsgDM.cjs");
@@ -1,7 +1,7 @@
1
1
  import { i as MastraError, n as ErrorDomain, o as getErrorFromUnknown, t as ErrorCategory } from "./error-oh2DLsP2.js";
2
2
  import { c as registerToolOutputValidationSchema, d as validateToolOutput, f as validateToolSuspendData, h as markBuilderValidatedInput, i as createStandardSchemaIssuesError, n as Tool, o as getValidationIssuePaths, p as createToolObserve, s as isValidationError, u as validateToolInput } from "./tool-Z3bykc1m.js";
3
3
  import { i as MastraFGAPermissions } from "./ee-iTj2bRDt-By_B9ngH.js";
4
- import { i as isToolBackgroundEligible, n as backgroundOverrideJsonSchema, r as backgroundOverrideZodSchema } from "./background-tasks-BgpX1P_s.js";
4
+ import { i as isToolBackgroundEligible, n as backgroundOverrideJsonSchema, r as backgroundOverrideZodSchema } from "./background-tasks-Cv1ecD6S.js";
5
5
  import { t as MastraBase } from "./base-CKLWBhDo.js";
6
6
  import { O as executionFailureTermination, b as wrapMastra, x as createObservabilityContext } from "./observability-D7RNOAPx.js";
7
7
  import { a as getOrCreateSpan, t as executeWithContext } from "./utils-DU_pU5SK.js";
package/dist/utils.cjs CHANGED
@@ -4,7 +4,7 @@ const require_deep_equal = require("./deep-equal-TMDmByBC.cjs");
4
4
  const require_zod_utils = require("./zod-utils-Cl5jw5N_.cjs");
5
5
  const require_fetchWithRetry = require("./fetchWithRetry-f5k4p7_1.cjs");
6
6
  const require_dynamic_argument = require("./dynamic-argument-CUc1BBOS.cjs");
7
- const require_utils = require("./utils-DY01hxVd.cjs");
7
+ const require_utils = require("./utils-BbMTlyBO.cjs");
8
8
  exports.boundedStringify = require_utils_safe_stringify.boundedStringify;
9
9
  exports.checkEvalStorageFields = require_utils.checkEvalStorageFields;
10
10
  exports.createMastraProxy = require_utils.createMastraProxy;
package/dist/utils.js CHANGED
@@ -3,5 +3,5 @@ import { t as deepEqual } from "./deep-equal-d1xU02ag.js";
3
3
  import { a as isZodObject, i as isZodArray, r as getZodTypeName, t as getZodDef } from "./zod-utils-BDDS_mxU.js";
4
4
  import { t as fetchWithRetry } from "./fetchWithRetry-DFSvpYDT.js";
5
5
  import { n as resolveDynamicArgument, t as getRequestUser } from "./dynamic-argument-BzPK3qPN.js";
6
- import { C as setNestedValue, S as selectFields, _ as parseSqlIdentifier, a as ensureToolProperties, b as removeUndefinedValues, c as isCoreMessage, d as makeCoreTool, f as makeCoreToolV5, g as parseFieldKey, h as omitKeys, i as delay, l as isUiMessage, m as maskStreamTags, n as createMastraProxy, o as generateEmptyFromSchema, p as makeProcessorCoreTool, r as deepMerge, s as getNestedValue, t as checkEvalStorageFields, u as isZodType, v as readPositiveIntEnv, x as resolveSerializedZodOutput, y as rebindProcessorTools } from "./utils-Bd_y1_a-.js";
6
+ import { C as setNestedValue, S as selectFields, _ as parseSqlIdentifier, a as ensureToolProperties, b as removeUndefinedValues, c as isCoreMessage, d as makeCoreTool, f as makeCoreToolV5, g as parseFieldKey, h as omitKeys, i as delay, l as isUiMessage, m as maskStreamTags, n as createMastraProxy, o as generateEmptyFromSchema, p as makeProcessorCoreTool, r as deepMerge, s as getNestedValue, t as checkEvalStorageFields, u as isZodType, v as readPositiveIntEnv, x as resolveSerializedZodOutput, y as rebindProcessorTools } from "./utils-BnNi1BYM.js";
7
7
  export { boundedStringify, checkEvalStorageFields, createMastraProxy, deepEqual, deepMerge, delay, ensureSerializable, ensureToolProperties, fetchWithRetry, generateEmptyFromSchema, getNestedValue, getRequestUser, getZodDef, getZodTypeName, isBoundedSerializable, isCoreMessage, isUiMessage, isZodArray, isZodObject, isZodType, makeCoreTool, makeCoreToolV5, makeProcessorCoreTool, maskStreamTags, omitKeys, parseFieldKey, parseSqlIdentifier, readPositiveIntEnv, rebindProcessorTools, removeUndefinedValues, resolveDynamicArgument, resolveSerializedZodOutput, safeStringify, selectFields, setNestedValue };
@@ -1,5 +1,5 @@
1
1
  import { standardSchemaToJSONSchema, toStandardSchema } from "./schema/index.js";
2
- import { bt as validateTemplate, gt as collectTemplateStepIds } from "./stream-CJUm6EAH.js";
2
+ import { bt as validateTemplate, gt as collectTemplateStepIds } from "./stream-Dpwx0whf.js";
3
3
  import { z } from "zod";
4
4
  // src/workflows/dynamic/graph.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- const require_stream = require("./stream-4aNIw_TQ.cjs");
1
+ const require_stream = require("./stream-Dvy_0o14.cjs");
2
2
  let zod = require("zod");
3
3
  let _mastra_schema_compat_schema = require("@mastra/schema-compat/schema");
4
4
  // src/workflows/dynamic/graph.ts
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_base = require("../base-BIzR1D3_.cjs");
3
3
  const require_error = require("../error-D90lJ6M7.cjs");
4
- const require_run_registry = require("../run-registry-5_LQBGn_.cjs");
4
+ const require_run_registry = require("../run-registry-5Suldxz3.cjs");
5
5
  const require_message_list = require("../message-list-DPXPXvin.cjs");
6
6
  const require_dist = require("../dist-P2rjrlmj.cjs");
7
7
  const require_dist$1 = require("../dist-CXeCeeW7.cjs");
@@ -1,6 +1,6 @@
1
1
  import { t as MastraBase } from "../base-CKLWBhDo.js";
2
2
  import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "../error-oh2DLsP2.js";
3
- import { ia as createVectorErrorId, un as embed$3 } from "../run-registry-DC03XLeZ.js";
3
+ import { ia as createVectorErrorId, un as embed$3 } from "../run-registry-CGRPldLH.js";
4
4
  import { P as embed$2 } from "../message-list-DEuRl82K.js";
5
5
  import { r as embed$1 } from "../dist-TPVqg8oV.js";
6
6
  import { n as embed } from "../dist-D3cKCUe-.js";
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_worker = require("../worker-GsGIxPMa.cjs");
2
+ const require_worker = require("../worker-BE-0DyKL.cjs");
3
3
  exports.BackgroundTaskWorker = require_worker.BackgroundTaskWorker;
4
4
  exports.HttpRemoteStrategy = require_worker.HttpRemoteStrategy;
5
5
  exports.InProcessStrategy = require_worker.InProcessStrategy;
@@ -1 +1 @@
1
- export { n as BackgroundTaskWorker, o as HttpRemoteStrategy, t as InProcessStrategy, c as MastraWorker, i as OrchestrationWorker, a as PullTransport, r as SchedulerWorker, s as StepExecutionError } from "../worker-B80xkcKG.js";
1
+ export { n as BackgroundTaskWorker, o as HttpRemoteStrategy, t as InProcessStrategy, c as MastraWorker, i as OrchestrationWorker, a as PullTransport, r as SchedulerWorker, s as StepExecutionError } from "../worker-DehaD4qD.js";
@@ -1,6 +1,6 @@
1
- const require_run_registry = require("./run-registry-5_LQBGn_.cjs");
1
+ const require_run_registry = require("./run-registry-5Suldxz3.cjs");
2
2
  const require_scheduler = require("./scheduler-D00X03jQ.cjs");
3
- const require_background_tasks = require("./background-tasks-DqnQMfuf.cjs");
3
+ const require_background_tasks = require("./background-tasks-7iftnRK_.cjs");
4
4
  const require_request_context = require("./request-context-D9RXYCy8.cjs");
5
5
  // src/worker/worker.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
- import { x as resolveAgentById } from "./run-registry-DC03XLeZ.js";
1
+ import { x as resolveAgentById } from "./run-registry-CGRPldLH.js";
2
2
  import { u as RequestContext } from "./request-context-COnZHt2-.js";
3
- import { a as PullTransport, c as MastraWorker } from "./worker-B80xkcKG.js";
3
+ import { a as PullTransport, c as MastraWorker } from "./worker-DehaD4qD.js";
4
4
  import { l as parseFsAgentScheduleRowId } from "./schedules-DZfSx-7P.js";
5
5
  // src/schedules/worker.ts
6
6
  /** PubSub topic on which the scheduler publishes `agent-schedule.fire` events. */
@@ -1,6 +1,6 @@
1
- const require_run_registry = require("./run-registry-5_LQBGn_.cjs");
1
+ const require_run_registry = require("./run-registry-5Suldxz3.cjs");
2
2
  const require_request_context = require("./request-context-D9RXYCy8.cjs");
3
- const require_worker = require("./worker-GsGIxPMa.cjs");
3
+ const require_worker = require("./worker-BE-0DyKL.cjs");
4
4
  const require_schedules = require("./schedules-BZS8McF7.cjs");
5
5
  // src/schedules/worker.ts
6
6
  /** PubSub topic on which the scheduler publishes `agent-schedule.fire` events. */
@@ -1,6 +1,6 @@
1
- import { As as StepExecutor, cl as waitMs, ec as getNestedWorkflow, js as computeScheduleDefinitionHash, ks as WorkflowEventProcessor, sl as assertDrainTimeout, tc as getStepEntry, x as resolveAgentById } from "./run-registry-DC03XLeZ.js";
1
+ import { As as StepExecutor, cl as waitMs, ec as getNestedWorkflow, js as computeScheduleDefinitionHash, ks as WorkflowEventProcessor, sl as assertDrainTimeout, tc as getStepEntry, x as resolveAgentById } from "./run-registry-CGRPldLH.js";
2
2
  import { t as Scheduler } from "./scheduler-B-VZUvv_.js";
3
- import { s as BackgroundTaskManager } from "./background-tasks-BgpX1P_s.js";
3
+ import { s as BackgroundTaskManager } from "./background-tasks-Cv1ecD6S.js";
4
4
  import { u as RequestContext } from "./request-context-COnZHt2-.js";
5
5
  // src/worker/worker.ts
6
6
  /**
@@ -1,8 +1,8 @@
1
- const require_stream = require("./stream-4aNIw_TQ.cjs");
1
+ const require_stream = require("./stream-Dvy_0o14.cjs");
2
2
  require("./utils-D-eNsgDM.cjs");
3
- const require_output_helpers = require("./output-helpers-JL-HeCbT.cjs");
4
- const require_run_registry = require("./run-registry-5_LQBGn_.cjs");
5
- const require_background_tasks = require("./background-tasks-DqnQMfuf.cjs");
3
+ const require_output_helpers = require("./output-helpers-1Zu4Vt9C.cjs");
4
+ const require_run_registry = require("./run-registry-5Suldxz3.cjs");
5
+ const require_background_tasks = require("./background-tasks-7iftnRK_.cjs");
6
6
  let zod = require("zod");
7
7
  // src/background-tasks/workflow.ts
8
8
  const inputSchema = zod.z.object({ taskId: zod.z.string() });
@@ -1,8 +1,8 @@
1
- import { in as resolveSuspendedToolRunId } from "./stream-CJUm6EAH.js";
1
+ import { in as resolveSuspendedToolRunId } from "./stream-Dpwx0whf.js";
2
2
  import "./utils-DU_pU5SK.js";
3
- import { p as slimProgressChunk } from "./output-helpers-D4II19No.js";
4
- import { Ss as createWorkflow, ac as createStep } from "./run-registry-DC03XLeZ.js";
5
- import { c as BACKGROUND_TASK_WORKFLOW_ID } from "./background-tasks-BgpX1P_s.js";
3
+ import { p as slimProgressChunk } from "./output-helpers-CedRCE17.js";
4
+ import { Ss as createWorkflow, ac as createStep } from "./run-registry-CGRPldLH.js";
5
+ import { c as BACKGROUND_TASK_WORKFLOW_ID } from "./background-tasks-Cv1ecD6S.js";
6
6
  import { z } from "zod";
7
7
  // src/background-tasks/workflow.ts
8
8
  const inputSchema = z.object({ taskId: z.string() });
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_builder = require("../../builder-D8Osghdo.cjs");
2
+ const require_builder = require("../../builder-DuJBbQDH.cjs");
3
3
  exports.WORKFLOW_BUILDER_AUTHORING_CONSTRAINTS = require_builder.WORKFLOW_BUILDER_AUTHORING_CONSTRAINTS;
4
4
  exports.WORKFLOW_BUILDER_AUTHORING_PLAYBOOK = require_builder.WORKFLOW_BUILDER_AUTHORING_PLAYBOOK;
5
5
  exports.WORKFLOW_BUILDER_MAPPING_CONFIG_DESCRIPTION = require_builder.WORKFLOW_BUILDER_MAPPING_CONFIG_DESCRIPTION;
@@ -1 +1 @@
1
- export { U as WORKFLOW_BUILDER_AUTHORING_CONSTRAINTS, W as WORKFLOW_BUILDER_AUTHORING_PLAYBOOK, i as WORKFLOW_BUILDER_MAPPING_CONFIG_DESCRIPTION, t as WORKFLOW_BUILDER_SUPPORTED_STEP_TYPES, B as compareWorkflowBuilderSchemas, r as createWorkflowBuilderAgent, a as deleteStoredWorkflowResponseSchema, V as inspectWorkflowBuilderSchemas, o as listStoredWorkflowsResponseSchema, n as normalizeWorkflowBuilderDefinition, H as preflightWorkflowDefinition, s as storedWorkflowDefinitionSchema, c as upsertStoredWorkflowResponseSchema, l as workflowBuilderAgentEntryInputSchema, u as workflowBuilderAgentEntrySchema, d as workflowBuilderClassifierEntryInputSchema, f as workflowBuilderClassifierEntrySchema, p as workflowBuilderConditionalEntryInputSchema, m as workflowBuilderConditionalEntrySchema, h as workflowBuilderDefinitionInputSchema, g as workflowBuilderDefinitionSchema, _ as workflowBuilderForeachEntryInputSchema, v as workflowBuilderForeachEntrySchema, y as workflowBuilderGraphEntryInputSchema, b as workflowBuilderGraphEntrySchema, x as workflowBuilderLoopEntryInputSchema, S as workflowBuilderLoopEntrySchema, C as workflowBuilderMappingConfigSchema, w as workflowBuilderMappingDescriptorSchema, T as workflowBuilderMappingEntryInputSchema, E as workflowBuilderMappingEntrySchema, D as workflowBuilderNestedWorkflowEntryInputSchema, O as workflowBuilderNestedWorkflowEntrySchema, k as workflowBuilderParallelEntryInputSchema, A as workflowBuilderParallelEntrySchema, j as workflowBuilderPredicateSchema, M as workflowBuilderScheduleConfigSchema, N as workflowBuilderScheduleSchema, P as workflowBuilderSleepEntryInputSchema, F as workflowBuilderSleepEntrySchema, I as workflowBuilderSleepUntilEntryInputSchema, L as workflowBuilderSleepUntilEntrySchema, R as workflowBuilderToolEntryInputSchema, z as workflowBuilderToolEntrySchema } from "../../builder-x295GDL6.js";
1
+ export { U as WORKFLOW_BUILDER_AUTHORING_CONSTRAINTS, W as WORKFLOW_BUILDER_AUTHORING_PLAYBOOK, i as WORKFLOW_BUILDER_MAPPING_CONFIG_DESCRIPTION, t as WORKFLOW_BUILDER_SUPPORTED_STEP_TYPES, B as compareWorkflowBuilderSchemas, r as createWorkflowBuilderAgent, a as deleteStoredWorkflowResponseSchema, V as inspectWorkflowBuilderSchemas, o as listStoredWorkflowsResponseSchema, n as normalizeWorkflowBuilderDefinition, H as preflightWorkflowDefinition, s as storedWorkflowDefinitionSchema, c as upsertStoredWorkflowResponseSchema, l as workflowBuilderAgentEntryInputSchema, u as workflowBuilderAgentEntrySchema, d as workflowBuilderClassifierEntryInputSchema, f as workflowBuilderClassifierEntrySchema, p as workflowBuilderConditionalEntryInputSchema, m as workflowBuilderConditionalEntrySchema, h as workflowBuilderDefinitionInputSchema, g as workflowBuilderDefinitionSchema, _ as workflowBuilderForeachEntryInputSchema, v as workflowBuilderForeachEntrySchema, y as workflowBuilderGraphEntryInputSchema, b as workflowBuilderGraphEntrySchema, x as workflowBuilderLoopEntryInputSchema, S as workflowBuilderLoopEntrySchema, C as workflowBuilderMappingConfigSchema, w as workflowBuilderMappingDescriptorSchema, T as workflowBuilderMappingEntryInputSchema, E as workflowBuilderMappingEntrySchema, D as workflowBuilderNestedWorkflowEntryInputSchema, O as workflowBuilderNestedWorkflowEntrySchema, k as workflowBuilderParallelEntryInputSchema, A as workflowBuilderParallelEntrySchema, j as workflowBuilderPredicateSchema, M as workflowBuilderScheduleConfigSchema, N as workflowBuilderScheduleSchema, P as workflowBuilderSleepEntryInputSchema, F as workflowBuilderSleepEntrySchema, I as workflowBuilderSleepUntilEntryInputSchema, L as workflowBuilderSleepUntilEntrySchema, R as workflowBuilderToolEntryInputSchema, z as workflowBuilderToolEntrySchema } from "../../builder-Gg-xnX_E.js";