@mastra/core 1.86.0-alpha.9 → 1.87.0-alpha.0

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 (726) hide show
  1. package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/voice/aisdk/speech.d.ts +1 -1
  2. package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/voice/aisdk/transcription.d.ts +1 -1
  3. package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/voice/composite-voice.d.ts +1 -1
  4. package/dist/agent/agent-legacy.d.ts +1 -1
  5. package/dist/agent/agent.d.ts +3 -3
  6. package/dist/agent/agent.types.d.ts +1 -1
  7. package/dist/agent/durable/constants.d.ts +2 -0
  8. package/dist/agent/durable/durable-agent.d.ts +3 -3
  9. package/dist/agent/durable/evented-execution.d.ts +7 -0
  10. package/dist/agent/durable/execution-engine.d.ts +1 -0
  11. package/dist/agent/durable/execution-fence.d.ts +2 -0
  12. package/dist/agent/durable/index.cjs +3 -1
  13. package/dist/agent/durable/index.d.ts +1 -1
  14. package/dist/agent/durable/index.js +2 -2
  15. package/dist/agent/durable/run-registry.d.ts +2 -0
  16. package/dist/agent/durable/segment-spans.d.ts +54 -1
  17. package/dist/agent/durable/stream-adapter.d.ts +1 -1
  18. package/dist/agent/durable/types.d.ts +12 -2
  19. package/dist/agent/durable/workflows/durable-loop-builder.d.ts +57 -2
  20. package/dist/agent/durable/workflows/finalize-run.d.ts +2 -0
  21. package/dist/agent/durable/workflows/shared/index.d.ts +1 -1
  22. package/dist/agent/durable/workflows/shared/reported-cost.d.ts +7 -0
  23. package/dist/agent/durable/workflows/shared/schemas.d.ts +16 -1
  24. package/dist/agent/durable/workflows/shared/tool-call-concurrency.d.ts +6 -0
  25. package/dist/agent/durable/workflows/steps/llm-execution.d.ts +5 -0
  26. package/dist/agent/durable/workflows/steps/llm-mapping.d.ts +6 -0
  27. package/dist/agent/durable/workflows/steps/tool-call.d.ts +20 -0
  28. package/dist/agent/index.cjs +2 -2
  29. package/dist/agent/index.js +2 -2
  30. package/dist/agent/message-list/adapters/AIV4Adapter.d.ts +1 -1
  31. package/dist/agent/message-list/adapters/types.d.ts +1 -1
  32. package/dist/agent/message-list/cache/CacheKeyGenerator.d.ts +1 -1
  33. package/dist/agent/message-list/conversion/output-converter.d.ts +1 -1
  34. package/dist/agent/message-list/conversion/to-prompt.d.ts +1 -1
  35. package/dist/agent/message-list/conversion/utils.d.ts +1 -1
  36. package/dist/agent/message-list/detection/TypeDetector.d.ts +1 -1
  37. package/dist/agent/message-list/message-list.d.ts +2 -2
  38. package/dist/agent/message-list/prompt/attachments-to-parts.d.ts +1 -1
  39. package/dist/agent/message-list/prompt/convert-file.d.ts +1 -1
  40. package/dist/agent/message-list/prompt/data-content.d.ts +1 -1
  41. package/dist/agent/message-list/state/MessageStateManager.d.ts +1 -1
  42. package/dist/agent/message-list/state/types.d.ts +2 -2
  43. package/dist/agent/message-list/types.d.ts +9 -9
  44. package/dist/agent/message-list/utils/convert-messages.d.ts +3 -3
  45. package/dist/agent/message-list/utils/provider-compat.d.ts +1 -1
  46. package/dist/agent/request-context-snapshot.d.ts +3 -2
  47. package/dist/agent/signals.d.ts +1 -1
  48. package/dist/agent/streams/run-records.d.ts +9 -1
  49. package/dist/agent/types.d.ts +3 -3
  50. package/dist/agent/workflows/prepare-stream/run-scope-keys.d.ts +1 -1
  51. package/dist/agent-builder/ee/index.cjs +1 -1
  52. package/dist/agent-builder/ee/index.js +1 -1
  53. package/dist/agent-controller/index.cjs +1 -1
  54. package/dist/agent-controller/index.js +1 -1
  55. package/dist/agent-controller/session-run-engine.d.ts +5 -2
  56. package/dist/agent-controller/session.d.ts +2 -0
  57. package/dist/agent-controller/types.d.ts +23 -0
  58. package/dist/{agent-controller-SSlKzE6A.js → agent-controller-B8LoFdtu.js} +43 -13
  59. package/dist/{agent-controller-CrQ9OF80.cjs → agent-controller-DSnFynpa.cjs} +43 -13
  60. package/dist/auth/defaults/index.d.ts +2 -2
  61. package/dist/auth/defaults/session/cookie.d.ts +2 -2
  62. package/dist/auth/defaults/session/index.d.ts +2 -2
  63. package/dist/auth/defaults/session/memory.d.ts +2 -2
  64. package/dist/auth/ee/capabilities.d.ts +1 -1
  65. package/dist/auth/ee/defaults/index.d.ts +1 -1
  66. package/dist/auth/ee/defaults/rbac/index.d.ts +1 -1
  67. package/dist/auth/ee/defaults/rbac/static.d.ts +1 -1
  68. package/dist/auth/ee/defaults/roles.d.ts +1 -1
  69. package/dist/auth/ee/fga-check.d.ts +1 -1
  70. package/dist/auth/ee/index.d.ts +1 -1
  71. package/dist/auth/ee/interfaces/acl.d.ts +1 -1
  72. package/dist/auth/ee/interfaces/fga.d.ts +1 -1
  73. package/dist/auth/ee/interfaces/index.d.ts +1 -1
  74. package/dist/auth/ee/interfaces/permissions.generated.d.ts +1 -1
  75. package/dist/auth/ee/interfaces/rbac.d.ts +1 -1
  76. package/dist/auth/ee/interfaces/user.d.ts +1 -1
  77. package/dist/auth/ee/license.d.ts +1 -1
  78. package/dist/auth/index.d.ts +2 -2
  79. package/dist/auth/interfaces/credentials.d.ts +1 -1
  80. package/dist/auth/interfaces/index.d.ts +2 -2
  81. package/dist/auth/interfaces/session.d.ts +1 -1
  82. package/dist/auth/interfaces/sso.d.ts +1 -1
  83. package/dist/auth/interfaces/user.d.ts +1 -1
  84. package/dist/background-tasks/index.cjs +1 -1
  85. package/dist/background-tasks/index.js +1 -1
  86. package/dist/background-tasks/manager.d.ts +4 -1
  87. package/dist/{background-tasks-BDrYBis-.cjs → background-tasks-Ci5h0dhj.cjs} +139 -51
  88. package/dist/{background-tasks-BnJfNLFo.js → background-tasks-IW7M4iD2.js} +139 -51
  89. package/dist/browser/index.cjs +1 -1
  90. package/dist/browser/index.js +1 -1
  91. package/dist/{builder-Cw8u3pPl.cjs → builder-14Uptu8y.cjs} +2 -2
  92. package/dist/{builder-Cl-0BWkh.js → builder-DI2c2xjy.js} +2 -2
  93. package/dist/bundler/index.d.ts +2 -2
  94. package/dist/cache/base.d.ts +40 -10
  95. package/dist/cache/index.cjs +1 -1
  96. package/dist/cache/index.js +1 -1
  97. package/dist/capabilities/302ai.json +196 -196
  98. package/dist/capabilities/abliteratedllm.json +36 -36
  99. package/dist/capabilities/abliteration-ai.json +11 -11
  100. package/dist/capabilities/above.json +22 -22
  101. package/dist/capabilities/adaption.json +13 -13
  102. package/dist/capabilities/adzuki.json +28 -28
  103. package/dist/capabilities/agentrouter.json +9 -9
  104. package/dist/capabilities/agnes.json +4 -4
  105. package/dist/capabilities/ai-router.json +5 -5
  106. package/dist/capabilities/aiand.json +16 -16
  107. package/dist/capabilities/aigrow.json +14 -14
  108. package/dist/capabilities/aimlapi.json +146 -150
  109. package/dist/capabilities/aipg.json +2 -2
  110. package/dist/capabilities/aixy.json +9 -9
  111. package/dist/capabilities/aki-io.json +10 -10
  112. package/dist/capabilities/alibaba-cn.json +97 -97
  113. package/dist/capabilities/alibaba-coding-plan-cn.json +5 -5
  114. package/dist/capabilities/alibaba-coding-plan.json +5 -5
  115. package/dist/capabilities/alibaba-token-plan-cn.json +51 -51
  116. package/dist/capabilities/alibaba-token-plan.json +52 -52
  117. package/dist/capabilities/alibaba.json +69 -69
  118. package/dist/capabilities/ambient.json +15 -15
  119. package/dist/capabilities/amd.json +8 -8
  120. package/dist/capabilities/anthropic.json +49 -49
  121. package/dist/capabilities/anyapi.json +19 -19
  122. package/dist/capabilities/arcee.json +9 -9
  123. package/dist/capabilities/augure.json +4 -4
  124. package/dist/capabilities/auriko.json +21 -21
  125. package/dist/capabilities/bailing.json +4 -4
  126. package/dist/capabilities/baseten.json +28 -28
  127. package/dist/capabilities/bee.json +5 -5
  128. package/dist/capabilities/berget.json +4 -4
  129. package/dist/capabilities/bothub.json +14 -14
  130. package/dist/capabilities/boundless.json +39 -39
  131. package/dist/capabilities/bumo.json +42 -42
  132. package/dist/capabilities/byteplus.json +24 -24
  133. package/dist/capabilities/cheapaimodel.json +10 -10
  134. package/dist/capabilities/cheapest-token.json +29 -29
  135. package/dist/capabilities/chutes.json +10 -13
  136. package/dist/capabilities/cline-pass.json +37 -37
  137. package/dist/capabilities/cloudcode.json +10 -10
  138. package/dist/capabilities/cloudflare-workers-ai.json +12 -73
  139. package/dist/capabilities/commandcode.json +131 -131
  140. package/dist/capabilities/concentrate.json +272 -263
  141. package/dist/capabilities/cortecs.json +113 -113
  142. package/dist/capabilities/crossmodel.json +169 -169
  143. package/dist/capabilities/crusoe.json +10 -10
  144. package/dist/capabilities/daoxe.json +9 -9
  145. package/dist/capabilities/databricks.json +128 -128
  146. package/dist/capabilities/deepinfra.json +130 -67
  147. package/dist/capabilities/deepseek.json +4 -4
  148. package/dist/capabilities/digitalocean.json +112 -112
  149. package/dist/capabilities/dothoosh.json +29 -29
  150. package/dist/capabilities/doubleword.json +29 -29
  151. package/dist/capabilities/edenai.json +446 -453
  152. package/dist/capabilities/empiriolabs.json +164 -166
  153. package/dist/capabilities/engy.json +22 -22
  154. package/dist/capabilities/entrim.json +4 -4
  155. package/dist/capabilities/evroc.json +14 -14
  156. package/dist/capabilities/ezkielyna.json +10 -10
  157. package/dist/capabilities/fastrouter.json +79 -79
  158. package/dist/capabilities/fireworks-ai.json +92 -71
  159. package/dist/capabilities/freemodel.json +21 -21
  160. package/dist/capabilities/friendli.json +10 -10
  161. package/dist/capabilities/frogbot.json +87 -87
  162. package/dist/capabilities/gisoo.json +19 -19
  163. package/dist/capabilities/gmicloud.json +21 -21
  164. package/dist/capabilities/google.json +52 -52
  165. package/dist/capabilities/graphn.json +11 -11
  166. package/dist/capabilities/greenpt.json +35 -35
  167. package/dist/capabilities/groq.json +3 -3
  168. package/dist/capabilities/helicone.json +78 -78
  169. package/dist/capabilities/hostinger-router.json +13 -13
  170. package/dist/capabilities/hpc-ai.json +10 -10
  171. package/dist/capabilities/huawei-maas.json +17 -17
  172. package/dist/capabilities/hubris.json +25 -25
  173. package/dist/capabilities/huggingface.json +94 -84
  174. package/dist/capabilities/hyper.json +29 -29
  175. package/dist/capabilities/impossibl.json +148 -148
  176. package/dist/capabilities/inception.json +3 -3
  177. package/dist/capabilities/inceptron.json +6 -6
  178. package/dist/capabilities/inco.json +4 -4
  179. package/dist/capabilities/infer.json +10 -10
  180. package/dist/capabilities/inferall.json +5 -5
  181. package/dist/capabilities/inference-coop.json +15 -15
  182. package/dist/capabilities/inferenceapis.json +17 -17
  183. package/dist/capabilities/inferris.json +4 -4
  184. package/dist/capabilities/infersia.json +12 -12
  185. package/dist/capabilities/infomaniak.json +2 -2
  186. package/dist/capabilities/io-net.json +2 -2
  187. package/dist/capabilities/isoquant.json +4 -4
  188. package/dist/capabilities/iteracompute.json +58 -58
  189. package/dist/capabilities/jad-ai.json +2 -2
  190. package/dist/capabilities/jalapeno.json +11 -11
  191. package/dist/capabilities/jiekou.json +62 -62
  192. package/dist/capabilities/jzstoken.json +47 -47
  193. package/dist/capabilities/keln.json +21 -21
  194. package/dist/capabilities/kenari.json +123 -123
  195. package/dist/capabilities/kilo.json +631 -621
  196. package/dist/capabilities/kimi-code-plan-cn.json +6 -6
  197. package/dist/capabilities/kimi-code-plan-global.json +6 -6
  198. package/dist/capabilities/kitani.json +4 -4
  199. package/dist/capabilities/klavo.json +21 -21
  200. package/dist/capabilities/korouter.json +33 -33
  201. package/dist/capabilities/kunavo.json +5 -5
  202. package/dist/capabilities/liquid.json +12 -12
  203. package/dist/capabilities/lithosai.json +2 -2
  204. package/dist/capabilities/llmgateway-providers.json +903 -894
  205. package/dist/capabilities/llmgateway.json +344 -336
  206. package/dist/capabilities/llmtr.json +23 -23
  207. package/dist/capabilities/logits.json +2 -2
  208. package/dist/capabilities/longcat.json +2 -2
  209. package/dist/capabilities/lowrouter.json +46 -46
  210. package/dist/capabilities/lyceum.json +14 -14
  211. package/dist/capabilities/melious.json +15 -15
  212. package/dist/capabilities/merge-gateway.json +292 -292
  213. package/dist/capabilities/meta.json +11 -11
  214. package/dist/capabilities/minimax-cn-coding-plan.json +2 -2
  215. package/dist/capabilities/minimax-cn.json +5 -5
  216. package/dist/capabilities/minimax-coding-plan.json +2 -2
  217. package/dist/capabilities/minimax.json +5 -5
  218. package/dist/capabilities/mistral.json +21 -21
  219. package/dist/capabilities/mixlayer.json +4 -4
  220. package/dist/capabilities/modal.json +14 -14
  221. package/dist/capabilities/model-oracle-ai.json +23 -23
  222. package/dist/capabilities/modelis.json +22 -22
  223. package/dist/capabilities/modelscope.json +2 -2
  224. package/dist/capabilities/modular.json +7 -7
  225. package/dist/capabilities/moneo.json +11 -11
  226. package/dist/capabilities/moonshotai-cn.json +6 -6
  227. package/dist/capabilities/moonshotai.json +6 -6
  228. package/dist/capabilities/morph.json +13 -13
  229. package/dist/capabilities/munito.json +2 -2
  230. package/dist/capabilities/nan.json +28 -28
  231. package/dist/capabilities/nano-gpt.json +599 -564
  232. package/dist/capabilities/nearai.json +96 -96
  233. package/dist/capabilities/nebius.json +32 -32
  234. package/dist/capabilities/neon.json +120 -120
  235. package/dist/capabilities/neuralwatt.json +37 -37
  236. package/dist/capabilities/nokeep.json +4 -4
  237. package/dist/capabilities/novita-ai.json +154 -154
  238. package/dist/capabilities/nvidia.json +28 -60
  239. package/dist/capabilities/oathbreaker.json +2 -2
  240. package/dist/capabilities/obscurify.json +20 -20
  241. package/dist/capabilities/oci.json +17 -8
  242. package/dist/capabilities/ofox.json +317 -317
  243. package/dist/capabilities/ollama-cloud.json +56 -56
  244. package/dist/capabilities/openai.json +78 -46
  245. package/dist/capabilities/opencode-go.json +86 -86
  246. package/dist/capabilities/openreason.json +5 -5
  247. package/dist/capabilities/openrouter.json +535 -519
  248. package/dist/capabilities/opper.json +27 -27
  249. package/dist/capabilities/orcarouter.json +217 -217
  250. package/dist/capabilities/outerlabs.json +31 -31
  251. package/dist/capabilities/ovhcloud.json +58 -4
  252. package/dist/capabilities/pareto.json +5 -5
  253. package/dist/capabilities/pendra.json +4 -4
  254. package/dist/capabilities/perplexity-agent.json +62 -62
  255. package/dist/capabilities/phala.json +36 -36
  256. package/dist/capabilities/pioneer.json +27 -27
  257. package/dist/capabilities/poe.json +110 -110
  258. package/dist/capabilities/poolside.json +3 -3
  259. package/dist/capabilities/powerspring.json +11 -11
  260. package/dist/capabilities/primalabs.json +10 -10
  261. package/dist/capabilities/prime.json +127 -111
  262. package/dist/capabilities/privatemode-ai.json +11 -11
  263. package/dist/capabilities/proxystacks.json +7 -7
  264. package/dist/capabilities/qiniu-ai.json +15 -15
  265. package/dist/capabilities/refuseless.json +9 -9
  266. package/dist/capabilities/regolo-ai.json +6 -6
  267. package/dist/capabilities/requesty.json +170 -170
  268. package/dist/capabilities/ruapi.json +20 -20
  269. package/dist/capabilities/runcrate.json +10 -10
  270. package/dist/capabilities/runinfra.json +16 -16
  271. package/dist/capabilities/sakana.json +6 -6
  272. package/dist/capabilities/sambanova.json +6 -6
  273. package/dist/capabilities/sandbase.json +11 -11
  274. package/dist/capabilities/sarvam.json +10 -10
  275. package/dist/capabilities/scaleway.json +14 -14
  276. package/dist/capabilities/scnet-token-plan.json +14 -14
  277. package/dist/capabilities/scx-ai.json +26 -26
  278. package/dist/capabilities/sensenova.json +12 -12
  279. package/dist/capabilities/siliconflow-cn.json +50 -50
  280. package/dist/capabilities/siliconflow.json +55 -55
  281. package/dist/capabilities/snowflake-cortex.json +19 -19
  282. package/dist/capabilities/sokkan.json +7 -7
  283. package/dist/capabilities/sparrowcodes.json +17 -17
  284. package/dist/capabilities/standardcompute.json +98 -98
  285. package/dist/capabilities/steadyrouter.json +38 -38
  286. package/dist/capabilities/stepfun-ai-step-plan.json +6 -6
  287. package/dist/capabilities/stepfun-ai.json +5 -5
  288. package/dist/capabilities/stepfun-step-plan.json +5 -5
  289. package/dist/capabilities/stepfun.json +5 -5
  290. package/dist/capabilities/stepping-stone.json +17 -17
  291. package/dist/capabilities/subconscious.json +2 -2
  292. package/dist/capabilities/superbot-gg.json +4 -4
  293. package/dist/capabilities/synthetic.json +12 -12
  294. package/dist/capabilities/synthorai.json +22 -22
  295. package/dist/capabilities/teamorouter.json +24 -24
  296. package/dist/capabilities/teapot-router.json +12 -12
  297. package/dist/capabilities/tencent-token-plan.json +59 -35
  298. package/dist/capabilities/tencent-tokenhub.json +46 -46
  299. package/dist/capabilities/tensorx.json +47 -47
  300. package/dist/capabilities/tenstorrent.json +8 -8
  301. package/dist/capabilities/the-grid-ai.json +29 -29
  302. package/dist/capabilities/thinkingmachines.json +61 -61
  303. package/dist/capabilities/tinfoil.json +12 -12
  304. package/dist/capabilities/togetherai.json +62 -52
  305. package/dist/capabilities/tokengo.json +14 -14
  306. package/dist/capabilities/tokenify.json +9 -9
  307. package/dist/capabilities/trustedrouter.json +7 -7
  308. package/dist/capabilities/trustedtokens.json +15 -15
  309. package/dist/capabilities/umans-ai-coding-plan.json +16 -16
  310. package/dist/capabilities/umans-ai.json +13 -13
  311. package/dist/capabilities/uncensuredai.json +4 -4
  312. package/dist/capabilities/unrestricted.json +8 -8
  313. package/dist/capabilities/uplinkswitch.json +21 -21
  314. package/dist/capabilities/upstage.json +4 -4
  315. package/dist/capabilities/vancine.json +24 -24
  316. package/dist/capabilities/vercel.json +582 -582
  317. package/dist/capabilities/vivgrid.json +86 -86
  318. package/dist/capabilities/volcengine-coding-plan.json +23 -23
  319. package/dist/capabilities/volcengine.json +24 -24
  320. package/dist/capabilities/vultr.json +26 -26
  321. package/dist/capabilities/wafer.ai.json +16 -16
  322. package/dist/capabilities/wallaby.json +4 -4
  323. package/dist/capabilities/wally.json +11 -11
  324. package/dist/capabilities/wandb.json +21 -21
  325. package/dist/capabilities/watt.json +24 -24
  326. package/dist/capabilities/xai.json +6 -6
  327. package/dist/capabilities/xiaomi.json +2 -2
  328. package/dist/capabilities/xpersona.json +13 -13
  329. package/dist/capabilities/xxapi.json +28 -28
  330. package/dist/capabilities/zai-coding-plan.json +19 -19
  331. package/dist/capabilities/zai.json +26 -24
  332. package/dist/capabilities/zenifra.json +27 -27
  333. package/dist/capabilities/zenmux.json +172 -172
  334. package/dist/capabilities/zerogpu.json +8 -8
  335. package/dist/capabilities/zhipuai-coding-plan.json +7 -7
  336. package/dist/capabilities/zhipuai.json +23 -23
  337. package/dist/capabilities/zro.json +7 -7
  338. package/dist/channels/agent-channels.d.ts +2 -1
  339. package/dist/channels/formatting.d.ts +8 -0
  340. package/dist/channels/index.cjs +4 -2
  341. package/dist/channels/index.d.ts +1 -1
  342. package/dist/channels/index.js +3 -3
  343. package/dist/channels/types.d.ts +5 -3
  344. package/dist/{channels-Cz1y3W6u.js → channels-Wh32drgu.js} +1 -1
  345. package/dist/{channels-DQg4v_gm.cjs → channels-tVV_de9Q.cjs} +1 -1
  346. package/dist/coding-agent/index.cjs +1 -1
  347. package/dist/coding-agent/index.js +1 -1
  348. package/dist/datasets/index.cjs +2 -2
  349. package/dist/datasets/index.js +2 -2
  350. package/dist/deployer/index.d.ts +2 -2
  351. package/dist/docs/SKILL.md +1 -1
  352. package/dist/docs/assets/SOURCE_MAP.json +798 -798
  353. package/dist/docs/references/docs-agents-resumable-streams.md +15 -6
  354. package/dist/docs/references/docs-deployment-workers.md +3 -1
  355. package/dist/docs/references/docs-harness-background-tasks.md +4 -4
  356. package/dist/docs/references/docs-harness-durable-agents.md +39 -48
  357. package/dist/docs/references/docs-knowledge-importers.md +1 -1
  358. package/dist/docs/references/docs-mastra-platform-observability-overview.md +1 -1
  359. package/dist/docs/references/docs-sandbox-overview.md +1 -0
  360. package/dist/docs/references/docs-server-pubsub.md +1 -1
  361. package/dist/docs/references/docs-workflows-overview.md +67 -3
  362. package/dist/docs/references/integrations-agentic-ui-assistant-ui.md +2 -0
  363. package/dist/docs/references/integrations-frameworks-angular.md +39 -0
  364. package/dist/docs/references/integrations-frameworks-astro.md +5 -2
  365. package/dist/docs/references/integrations-frameworks-electron.md +40 -0
  366. package/dist/docs/references/integrations-frameworks-next-js.md +5 -2
  367. package/dist/docs/references/integrations-frameworks-nuxt.md +5 -2
  368. package/dist/docs/references/integrations-frameworks-sveltekit.md +5 -2
  369. package/dist/docs/references/integrations-frameworks-vite-react.md +40 -0
  370. package/dist/docs/references/integrations.md +3 -0
  371. package/dist/docs/references/reference-agent-controller-agent-controller-class.md +6 -0
  372. package/dist/docs/references/reference-agents-channels.md +1 -1
  373. package/dist/docs/references/reference-agents-durable-agent.md +3 -3
  374. package/dist/docs/references/reference-agents-generate.md +2 -0
  375. package/dist/docs/references/reference-configuration.md +1 -1
  376. package/dist/docs/references/reference-core-mastra-class.md +2 -0
  377. package/dist/docs/references/reference-knowledge-knowledge-class.md +1 -1
  378. package/dist/docs/references/reference-knowledge-knowledge-tools.md +11 -5
  379. package/dist/docs/references/reference-pubsub-caching-pubsub.md +2 -2
  380. package/dist/docs/references/reference-pubsub-redis-streams.md +2 -2
  381. package/dist/docs/references/reference-pubsub-valkey-streams.md +2 -2
  382. package/dist/docs/references/reference-workers-overview.md +2 -0
  383. package/dist/docs/references/reference-workflows-workflow-methods-create-run.md +2 -0
  384. package/dist/docs/references/reference-workflows-workflow.md +2 -0
  385. package/dist/docs/references/reference.md +1 -0
  386. package/dist/error/index.cjs +2 -1
  387. package/dist/error/index.d.ts +1 -1
  388. package/dist/error/index.js +2 -2
  389. package/dist/error/provider-error.d.ts +2 -1
  390. package/dist/{error-BLwEXqOK.js → error-BC9Au-22.js} +13 -1
  391. package/dist/{error-BdEvO8za.cjs → error-L1V4uUbd.cjs} +18 -0
  392. package/dist/evals/index.cjs +1 -1
  393. package/dist/evals/index.js +1 -1
  394. package/dist/evals/run/index.d.ts +1 -1
  395. package/dist/evals/scoreTraces/index.cjs +1 -1
  396. package/dist/evals/scoreTraces/index.js +1 -1
  397. package/dist/evals/types.d.ts +1 -1
  398. package/dist/events/caching-pubsub.d.ts +28 -0
  399. package/dist/events/index.cjs +4 -1
  400. package/dist/events/index.js +2 -2
  401. package/dist/events/topics.d.ts +55 -9
  402. package/dist/harness/index.cjs +1 -1
  403. package/dist/harness/index.js +1 -1
  404. package/dist/index.cjs +1 -1
  405. package/dist/index.js +1 -1
  406. package/dist/{inmemory-BDD0w8gx.js → inmemory-BK3zLwvM.js} +42 -12
  407. package/dist/{inmemory-fgR8sq-U.cjs → inmemory-Dc86VWGB.cjs} +42 -12
  408. package/dist/knowledge/changes.d.ts +17 -5
  409. package/dist/knowledge/importers/runner.d.ts +6 -0
  410. package/dist/knowledge/index.cjs +78 -16
  411. package/dist/knowledge/index.d.ts +2 -2
  412. package/dist/knowledge/index.js +78 -16
  413. package/dist/knowledge/search-snippet.d.ts +30 -0
  414. package/dist/llm/index.cjs +3 -3
  415. package/dist/llm/index.d.ts +2 -2
  416. package/dist/llm/index.js +3 -3
  417. package/dist/llm/model/aisdk/v4/model.d.ts +9 -9
  418. package/dist/llm/model/base.types.d.ts +2 -2
  419. package/dist/llm/model/embedding-router.d.ts +1 -1
  420. package/dist/llm/model/model-settings.d.ts +1 -1
  421. package/dist/llm/model/model.d.ts +1 -1
  422. package/dist/llm/model/model.loop.d.ts +1 -1
  423. package/dist/llm/model/model.loop.types.d.ts +1 -1
  424. package/dist/llm/model/provider-types.generated.d.ts +8011 -7996
  425. package/dist/llm/model/shared.types.d.ts +1 -1
  426. package/dist/{llm-B5A5cwJr.js → llm-B1zaFLYZ.js} +3 -3
  427. package/dist/{llm-8Av3mSjD.cjs → llm-BAiOsNAP.cjs} +3 -3
  428. package/dist/loop/index.cjs +2 -2
  429. package/dist/loop/index.js +2 -2
  430. package/dist/loop/loop-builder.d.ts +1 -1
  431. package/dist/loop/loop.d.ts +1 -1
  432. package/dist/loop/run-scope-keys.d.ts +1 -1
  433. package/dist/loop/shared/transcript-step.d.ts +1 -1
  434. package/dist/loop/types.d.ts +2 -2
  435. package/dist/loop/workflows/agentic-execution/background-task-check-step.d.ts +1 -1
  436. package/dist/loop/workflows/agentic-execution/build-messages-from-chunks.d.ts +1 -1
  437. package/dist/loop/workflows/agentic-execution/goal-step.d.ts +1 -1
  438. package/dist/loop/workflows/agentic-execution/index.d.ts +1 -1
  439. package/dist/loop/workflows/agentic-execution/is-task-complete-step.d.ts +1 -1
  440. package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts +1 -1
  441. package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts +1 -1
  442. package/dist/loop/workflows/agentic-execution/tool-call-concurrency.d.ts +1 -1
  443. package/dist/loop/workflows/agentic-execution/tool-call-step.d.ts +1 -1
  444. package/dist/loop/workflows/agentic-loop/index.d.ts +1 -1
  445. package/dist/loop/workflows/schema.d.ts +2 -2
  446. package/dist/loop/workflows/stream.d.ts +1 -1
  447. package/dist/{manager-sv35JY-z.cjs → manager-BVX9nVrM.cjs} +2 -2
  448. package/dist/{manager-DfWQCJUK.js → manager-ChK9GdGz.js} +2 -2
  449. package/dist/mastra/index.cjs +1 -1
  450. package/dist/mastra/index.js +1 -1
  451. package/dist/{mastra-CigBrT7X.js → mastra-CUGfgEpZ.js} +28 -18
  452. package/dist/{mastra-D4hvfuxX.cjs → mastra-HSmofHEJ.cjs} +28 -18
  453. package/dist/memory/index.cjs +2 -2
  454. package/dist/memory/index.js +2 -2
  455. package/dist/memory/memory.d.ts +1 -1
  456. package/dist/memory/types.d.ts +2 -2
  457. package/dist/{model-CYtXw861.js → model-C47BJRtR.js} +1 -1
  458. package/dist/{model-BK93CMtl.cjs → model-WahorgzJ.cjs} +1 -1
  459. package/dist/{netlify-CuI1ZrwR.js → netlify-CfDXkuLf.js} +2 -2
  460. package/dist/{netlify-BAnn3ouY.cjs → netlify-D99AnEhW.cjs} +2 -2
  461. package/dist/notifications/index.cjs +1 -1
  462. package/dist/notifications/index.js +1 -1
  463. package/dist/observability/index.cjs +1 -0
  464. package/dist/observability/index.d.ts +1 -1
  465. package/dist/observability/index.js +2 -2
  466. package/dist/{output-helpers-CedRCE17.js → output-helpers-CVzhy1Y0.js} +126 -56
  467. package/dist/{output-helpers-1Zu4Vt9C.cjs → output-helpers-DgsH4aTb.cjs} +143 -55
  468. package/dist/processor-provider/index.cjs +1 -1
  469. package/dist/processor-provider/index.js +1 -1
  470. package/dist/processors/index.cjs +2 -2
  471. package/dist/processors/index.d.ts +2 -2
  472. package/dist/processors/index.js +2 -2
  473. package/dist/processors/runner.d.ts +3 -1
  474. package/dist/processors/step-schema.d.ts +1 -1
  475. package/dist/{provider-registry-BwuI_IpT.cjs → provider-registry-CO1NVbO5.cjs} +22070 -22050
  476. package/dist/{provider-registry-CmQLzLF_.js → provider-registry-CR385GJ4.js} +22070 -22050
  477. package/dist/provider-registry.json +22239 -22226
  478. package/dist/{registry-generator-C17V4WfG.js → registry-generator-B3erRqYS.js} +1 -1
  479. package/dist/{registry-generator-C_0ae7Ce.cjs → registry-generator-Cvp34qcB.cjs} +1 -1
  480. package/dist/{rehydrate-PnaVawGX.js → rehydrate-CJBLrZxs.js} +2 -2
  481. package/dist/{rehydrate-CDQ4dOYj.cjs → rehydrate-Da4hNuaK.cjs} +2 -2
  482. package/dist/relevance/index.cjs +2 -2
  483. package/dist/relevance/index.js +2 -2
  484. package/dist/{run-registry-BwEcwYlU.js → run-registry-DdeEBsVW.js} +1639 -568
  485. package/dist/{run-registry-BmckDVBk.cjs → run-registry-TOOfO3hT.cjs} +1668 -567
  486. package/dist/server/auth.d.ts +3 -3
  487. package/dist/server/composite-auth.d.ts +1 -1
  488. package/dist/server/simple-auth.d.ts +1 -1
  489. package/dist/server/types.d.ts +1 -1
  490. package/dist/storage/domains/inmemory-db.d.ts +1 -0
  491. package/dist/storage/domains/knowledge/base.d.ts +5 -0
  492. package/dist/storage/domains/knowledge/inmemory.d.ts +1 -0
  493. package/dist/storage/domains/knowledge/pages-inmemory.d.ts +10 -2
  494. package/dist/storage/domains/knowledge/pages.d.ts +30 -0
  495. package/dist/storage/index.cjs +2 -2
  496. package/dist/storage/index.js +2 -2
  497. package/dist/storage/run-fencing.d.ts +5 -0
  498. package/dist/stream/RunOutput.d.ts +1 -1
  499. package/dist/stream/aisdk/v4/input.d.ts +1 -1
  500. package/dist/stream/aisdk/v5/compat/content.d.ts +1 -1
  501. package/dist/stream/aisdk/v5/compat/prepare-tools.d.ts +1 -1
  502. package/dist/stream/aisdk/v5/compat/ui-message.d.ts +1 -1
  503. package/dist/stream/aisdk/v5/compat/validation.d.ts +1 -1
  504. package/dist/stream/aisdk/v5/execute.d.ts +1 -1
  505. package/dist/stream/aisdk/v5/input.d.ts +1 -1
  506. package/dist/stream/aisdk/v5/output-helpers.d.ts +7 -7
  507. package/dist/stream/aisdk/v5/transform.d.ts +1 -1
  508. package/dist/stream/base/output.d.ts +4 -4
  509. package/dist/stream/base/schema.d.ts +1 -1
  510. package/dist/stream/index.cjs +2 -2
  511. package/dist/stream/index.js +2 -2
  512. package/dist/stream/types.d.ts +2 -2
  513. package/dist/{stream-D1y9GzoD.js → stream-C5PagEDs.js} +3 -3
  514. package/dist/{stream-0kdqBOOn.cjs → stream-DH7Qgz8l.cjs} +3 -3
  515. package/dist/test-utils/llm-mock.cjs +1 -1
  516. package/dist/test-utils/llm-mock.d.ts +3 -3
  517. package/dist/test-utils/llm-mock.js +1 -1
  518. package/dist/tool-loop-agent/index.cjs +1 -1
  519. package/dist/tool-loop-agent/index.js +1 -1
  520. package/dist/tool-loop-agent/utils.d.ts +1 -1
  521. package/dist/{tool-loop-agent-kWaZAT6Q.cjs → tool-loop-agent-CJTs4T8b.cjs} +3 -3
  522. package/dist/{tool-loop-agent-BdjWGVIb.js → tool-loop-agent-DVYJXlQJ.js} +3 -3
  523. package/dist/tools/builtin/web-search.d.ts +1 -1
  524. package/dist/tools/provider-tool-utils.d.ts +1 -1
  525. package/dist/tools/tool-builder/builder.d.ts +1 -1
  526. package/dist/tools/tool-title.d.ts +1 -1
  527. package/dist/tools/types.d.ts +1 -1
  528. package/dist/types/user.d.ts +1 -1
  529. package/dist/{utils-GHY3hmLx.js → utils-D8upuTwy.js} +1 -1
  530. package/dist/{utils-BKUCaZ12.cjs → utils-xJi_N6Tx.cjs} +1 -1
  531. package/dist/utils.cjs +1 -1
  532. package/dist/utils.d.ts +1 -1
  533. package/dist/utils.js +1 -1
  534. package/dist/{validate-De92squ7.cjs → validate-6eZ8Wssn.cjs} +1 -1
  535. package/dist/{validate-CB-q-R2F.js → validate-DTkW3Vlp.js} +1 -1
  536. package/dist/vector/embed.d.ts +4 -4
  537. package/dist/vector/index.cjs +1 -1
  538. package/dist/vector/index.js +1 -1
  539. package/dist/vector/vector.d.ts +4 -4
  540. package/dist/voice/aisdk/index.d.ts +1 -1
  541. package/dist/voice/aisdk/speech.d.ts +1 -1
  542. package/dist/voice/aisdk/transcription.d.ts +1 -1
  543. package/dist/voice/composite-voice.d.ts +1 -1
  544. package/dist/voice/default-voice.d.ts +1 -1
  545. package/dist/voice/index.d.ts +2 -2
  546. package/dist/voice/voice.d.ts +1 -1
  547. package/dist/worker/index.cjs +1 -1
  548. package/dist/worker/index.js +1 -1
  549. package/dist/{worker-CAKvQj9_.cjs → worker-24ORi-wV.cjs} +2 -2
  550. package/dist/{worker-BbWPQuPR.cjs → worker-BO3u_WjZ.cjs} +2 -2
  551. package/dist/{worker-C3u_xzY2.js → worker-DbcFkKJO.js} +2 -2
  552. package/dist/{worker-Kwm8EKcj.js → worker-Dqubrnf8.js} +2 -2
  553. package/dist/{workflow-CSjXeNcR.cjs → workflow-D5Fc5ieC.cjs} +4 -4
  554. package/dist/{workflow-CVmI1Sw-.js → workflow-wXOf72fO.js} +4 -4
  555. package/dist/workflows/builder/index.cjs +1 -1
  556. package/dist/workflows/builder/index.js +1 -1
  557. package/dist/workflows/evented/index.cjs +1 -1
  558. package/dist/workflows/evented/index.js +1 -1
  559. package/dist/workflows/index.cjs +4 -4
  560. package/dist/workflows/index.js +4 -4
  561. package/dist/workflows/run-ownership.d.ts +74 -8
  562. package/dist/workflows/types.d.ts +17 -1
  563. package/dist/workflows/workflow.d.ts +4 -0
  564. package/package.json +14 -14
  565. package/src/llm/model/provider-types.generated.d.ts +8011 -7996
  566. /package/dist/_types/{@internal_ai-sdk-v4@0.0.98 → @internal_ai-sdk-v4@0.0.99}/dist/index.d.ts +0 -0
  567. /package/dist/_types/{@internal_ai-sdk-v4@0.0.98 → @internal_ai-sdk-v4@0.0.99}/dist/test.d.ts +0 -0
  568. /package/dist/_types/{@internal_ai-sdk-v4@0.0.98 → @internal_ai-sdk-v4@0.0.99}/package.json +0 -0
  569. /package/dist/_types/{@internal_ai-sdk-v5@0.0.98 → @internal_ai-sdk-v5@0.0.99}/dist/index.d.ts +0 -0
  570. /package/dist/_types/{@internal_ai-sdk-v5@0.0.98 → @internal_ai-sdk-v5@0.0.99}/dist/test.d.ts +0 -0
  571. /package/dist/_types/{@internal_ai-sdk-v5@0.0.98 → @internal_ai-sdk-v5@0.0.99}/package.json +0 -0
  572. /package/dist/_types/{@internal_ai-v6@0.0.98 → @internal_ai-v6@0.0.99}/dist/index.d.ts +0 -0
  573. /package/dist/_types/{@internal_ai-v6@0.0.98 → @internal_ai-v6@0.0.99}/package.json +0 -0
  574. /package/dist/_types/{@internal_ai-v7@0.0.98 → @internal_ai-v7@0.0.99}/dist/index.d.ts +0 -0
  575. /package/dist/_types/{@internal_ai-v7@0.0.98 → @internal_ai-v7@0.0.99}/package.json +0 -0
  576. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/_types/@internal_core@0.1.4/dist/base/index.d.ts +0 -0
  577. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/_types/@internal_core@0.1.4/dist/index-Diz1p9N7.d.ts +0 -0
  578. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/capabilities.d.ts +0 -0
  579. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/defaults/index.d.ts +0 -0
  580. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/defaults/rbac/index.d.ts +0 -0
  581. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/defaults/rbac/static.d.ts +0 -0
  582. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/defaults/roles.d.ts +0 -0
  583. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/fga-check.d.ts +0 -0
  584. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/index.d.ts +0 -0
  585. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/interfaces/acl.d.ts +0 -0
  586. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/interfaces/fga.d.ts +0 -0
  587. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/interfaces/index.d.ts +0 -0
  588. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/interfaces/permissions.generated.d.ts +0 -0
  589. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/interfaces/rbac.d.ts +0 -0
  590. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/interfaces/user.d.ts +0 -0
  591. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/license.d.ts +0 -0
  592. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/index.d.ts +0 -0
  593. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/provider/index.d.ts +0 -0
  594. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/session/cookie.d.ts +0 -0
  595. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/session/index.d.ts +0 -0
  596. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/session/memory.d.ts +0 -0
  597. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/types/index.d.ts +0 -0
  598. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/package.json +0 -0
  599. /package/dist/_types/{@internal_deployer@0.0.4 → @internal_deployer@0.0.5}/dist/_types/@internal_core@0.1.4/dist/index-Diz1p9N7.d.ts +0 -0
  600. /package/dist/_types/{@internal_deployer@0.0.4 → @internal_deployer@0.0.5}/dist/_types/@internal_core@0.1.4/dist/logger/index.d.ts +0 -0
  601. /package/dist/_types/{@internal_deployer@0.0.4 → @internal_deployer@0.0.5}/dist/bundler.d.ts +0 -0
  602. /package/dist/_types/{@internal_deployer@0.0.4 → @internal_deployer@0.0.5}/dist/deployer.d.ts +0 -0
  603. /package/dist/_types/{@internal_deployer@0.0.4 → @internal_deployer@0.0.5}/dist/index.d.ts +0 -0
  604. /package/dist/_types/{@internal_deployer@0.0.4 → @internal_deployer@0.0.5}/package.json +0 -0
  605. /package/dist/_types/{@internal_external-types@0.0.101 → @internal_external-types@0.0.102}/dist/index.d.ts +0 -0
  606. /package/dist/_types/{@internal_external-types@0.0.101 → @internal_external-types@0.0.102}/package.json +0 -0
  607. /package/dist/_types/{@internal_voice@0.0.47/dist/_types/@internal_ai-sdk-v5@0.0.98 → @internal_voice@0.0.48/dist/_types/@internal_ai-sdk-v5@0.0.99}/dist/index.d.ts +0 -0
  608. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/@internal_core@0.1.4/dist/base/index.d.ts +0 -0
  609. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/@internal_core@0.1.4/dist/index-Diz1p9N7.d.ts +0 -0
  610. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/@internal_core@0.1.4/dist/request-context/index.d.ts +0 -0
  611. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/@internal_core@0.1.4/dist/types/index.d.ts +0 -0
  612. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/ZodError.d.ts +0 -0
  613. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/errors.d.ts +0 -0
  614. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/external.d.ts +0 -0
  615. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/helpers/enumUtil.d.ts +0 -0
  616. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/helpers/errorUtil.d.ts +0 -0
  617. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/helpers/parseUtil.d.ts +0 -0
  618. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/helpers/partialUtil.d.ts +0 -0
  619. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/helpers/typeAliases.d.ts +0 -0
  620. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/helpers/util.d.ts +0 -0
  621. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/index.d.ts +0 -0
  622. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/locales/en.d.ts +0 -0
  623. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/standard-schema.d.ts +0 -0
  624. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/types.d.ts +0 -0
  625. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/checks.d.ts +0 -0
  626. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/coerce.d.ts +0 -0
  627. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/compat.d.ts +0 -0
  628. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/deep-partial.d.ts +0 -0
  629. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/errors.d.ts +0 -0
  630. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/external.d.ts +0 -0
  631. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/from-json-schema.d.ts +0 -0
  632. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/in-out.d.ts +0 -0
  633. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/index.d.ts +0 -0
  634. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/iso.d.ts +0 -0
  635. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/parse.d.ts +0 -0
  636. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/schemas.d.ts +0 -0
  637. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/api.d.ts +0 -0
  638. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/checks.d.ts +0 -0
  639. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/compile.d.ts +0 -0
  640. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/core.d.ts +0 -0
  641. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/doc.d.ts +0 -0
  642. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/errors.d.ts +0 -0
  643. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/index.d.ts +0 -0
  644. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/json-schema-generator.d.ts +0 -0
  645. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/json-schema-processors.d.ts +0 -0
  646. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/json-schema.d.ts +0 -0
  647. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/memoizer.d.ts +0 -0
  648. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/parse.d.ts +0 -0
  649. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/regexes.d.ts +0 -0
  650. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/registries.d.ts +0 -0
  651. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/schemas.d.ts +0 -0
  652. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/standard-schema.d.ts +0 -0
  653. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/to-json-schema.d.ts +0 -0
  654. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/util.d.ts +0 -0
  655. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/versions.d.ts +0 -0
  656. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/index.d.cts +0 -0
  657. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ar.d.ts +0 -0
  658. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/az.d.ts +0 -0
  659. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/be.d.ts +0 -0
  660. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/bg.d.ts +0 -0
  661. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/bn.d.ts +0 -0
  662. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ca.d.ts +0 -0
  663. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ckb.d.ts +0 -0
  664. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/cs.d.ts +0 -0
  665. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/da.d.ts +0 -0
  666. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/de.d.ts +0 -0
  667. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/el.d.ts +0 -0
  668. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/en.d.ts +0 -0
  669. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/eo.d.ts +0 -0
  670. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/es.d.ts +0 -0
  671. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/fa.d.ts +0 -0
  672. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/fi.d.ts +0 -0
  673. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/fr-CA.d.ts +0 -0
  674. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/fr.d.ts +0 -0
  675. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/gu.d.ts +0 -0
  676. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/he.d.ts +0 -0
  677. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/hi.d.ts +0 -0
  678. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/hr.d.ts +0 -0
  679. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/hu.d.ts +0 -0
  680. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/hy.d.ts +0 -0
  681. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/id.d.ts +0 -0
  682. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/index.d.ts +0 -0
  683. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/is.d.ts +0 -0
  684. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/it.d.ts +0 -0
  685. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ja.d.ts +0 -0
  686. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ka.d.ts +0 -0
  687. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/kh.d.ts +0 -0
  688. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/km.d.ts +0 -0
  689. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/kn.d.ts +0 -0
  690. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ko.d.ts +0 -0
  691. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/lt.d.ts +0 -0
  692. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/mk.d.ts +0 -0
  693. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ms.d.ts +0 -0
  694. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ne.d.ts +0 -0
  695. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/nl.d.ts +0 -0
  696. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/nn.d.ts +0 -0
  697. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/no.d.ts +0 -0
  698. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ota.d.ts +0 -0
  699. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/pl.d.ts +0 -0
  700. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ps.d.ts +0 -0
  701. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/pt-BR.d.ts +0 -0
  702. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/pt.d.ts +0 -0
  703. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ro.d.ts +0 -0
  704. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ru.d.ts +0 -0
  705. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/sk.d.ts +0 -0
  706. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/sl.d.ts +0 -0
  707. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/sv.d.ts +0 -0
  708. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ta.d.ts +0 -0
  709. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/tg.d.ts +0 -0
  710. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/th.d.ts +0 -0
  711. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/tk.d.ts +0 -0
  712. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/tr.d.ts +0 -0
  713. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ua.d.ts +0 -0
  714. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/uk.d.ts +0 -0
  715. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ur.d.ts +0 -0
  716. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/uz.d.ts +0 -0
  717. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/vi.d.ts +0 -0
  718. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/yo.d.ts +0 -0
  719. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/zh-CN.d.ts +0 -0
  720. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/zh-TW.d.ts +0 -0
  721. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/index.d.ts +0 -0
  722. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/voice/aisdk/index.d.ts +0 -0
  723. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/voice/default-voice.d.ts +0 -0
  724. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/voice/index.d.ts +0 -0
  725. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/voice/voice.d.ts +0 -0
  726. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/package.json +0 -0
@@ -1,4 +1,4 @@
1
- export { MastraAuthProvider, normalizeMastraUser, isSSOProvider, isSessionProvider, isUserProvider, isCredentialsProvider, isOrganizationsProvider, isAuthHttpHandler, hasAuthInit, } from '../_types/@internal_auth@0.0.39/dist/provider/index.js';
2
- export type { IMastraAuthProvider, MastraAuthOAuthMetadata, MastraAuthProviderOptions } from '../_types/@internal_auth@0.0.39/dist/provider/index.js';
3
- export type { AuthInitContext, IAuthHttpHandler, IAuthInit, ICredentialsProvider, IOrganizationsProvider, ISessionProvider, ISSOProvider, IUserProvider, } from '../_types/@internal_auth@0.0.39/dist/index.js';
1
+ export { MastraAuthProvider, normalizeMastraUser, isSSOProvider, isSessionProvider, isUserProvider, isCredentialsProvider, isOrganizationsProvider, isAuthHttpHandler, hasAuthInit, } from '../_types/@internal_auth@0.0.40/dist/provider/index.js';
2
+ export type { IMastraAuthProvider, MastraAuthOAuthMetadata, MastraAuthProviderOptions } from '../_types/@internal_auth@0.0.40/dist/provider/index.js';
3
+ export type { AuthInitContext, IAuthHttpHandler, IAuthInit, ICredentialsProvider, IOrganizationsProvider, ISessionProvider, ISSOProvider, IUserProvider, } from '../_types/@internal_auth@0.0.40/dist/index.js';
4
4
  //# sourceMappingURL=auth.d.ts.map
@@ -1,2 +1,2 @@
1
- export { CompositeAuth } from '../_types/@internal_auth@0.0.39/dist/provider/index.js';
1
+ export { CompositeAuth } from '../_types/@internal_auth@0.0.40/dist/provider/index.js';
2
2
  //# sourceMappingURL=composite-auth.d.ts.map
@@ -1,2 +1,2 @@
1
- export { SimpleAuth, type SimpleAuthOptions } from '../_types/@internal_auth@0.0.39/dist/provider/index.js';
1
+ export { SimpleAuth, type SimpleAuthOptions } from '../_types/@internal_auth@0.0.40/dist/provider/index.js';
2
2
  //# sourceMappingURL=simple-auth.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type { IncomingMessage } from 'node:http';
2
- import type { MastraAuthConfig as InternalMastraAuthConfig } from '../_types/@internal_auth@0.0.39/dist/types/index.js';
2
+ import type { MastraAuthConfig as InternalMastraAuthConfig } from '../_types/@internal_auth@0.0.40/dist/types/index.js';
3
3
  import type { Handler, MiddlewareHandler, Context } from 'hono';
4
4
  import type { cors } from 'hono/cors';
5
5
  import type { DescribeRouteOptions } from 'hono-openapi';
@@ -50,6 +50,7 @@ export declare class InMemoryDB {
50
50
  generation: number;
51
51
  ownerId: string;
52
52
  leaseExpiresAt: Date | null;
53
+ updatedAt: Date;
53
54
  }>;
54
55
  /** Memory-domain run fences, keyed by runId. */
55
56
  readonly runFences: Map<string, {
@@ -29,6 +29,11 @@ export interface KnowledgeStorageCapabilities {
29
29
  * report it, and core refuses dated activity reads on them rather than return unbounded history.
30
30
  */
31
31
  supportsActivityDateRange?: boolean;
32
+ /**
33
+ * `listPageActivity` accepts `order: 'asc'` and `after` (oldest first). Adapters without it don't
34
+ * report it, and core refuses oldest-first activity reads on them.
35
+ */
36
+ supportsActivityAscending?: boolean;
32
37
  }
33
38
  /** @experimental */
34
39
  export interface KnowledgeTransactionOptions {
@@ -59,6 +59,7 @@ export declare class InMemoryKnowledgeStorage extends KnowledgeStorage {
59
59
  readonly supportsPinKinds: true;
60
60
  readonly supportsTransactions: true;
61
61
  readonly supportsActivityDateRange: true;
62
+ readonly supportsActivityAscending: true;
62
63
  };
63
64
  inspectSchema(): Promise<{
64
65
  readonly status: 'compatible';
@@ -1,4 +1,4 @@
1
- import type { KnowledgeNote, KnowledgePage, KnowledgePageActivityEvent, KnowledgePageBodyLink, KnowledgePageLinkCounts, KnowledgePageLinkEdge, KnowledgePageSearchHit, KnowledgePageStore, KnowledgePin, KnowledgePinKind } from './pages.js';
1
+ import type { KnowledgeNote, KnowledgePage, KnowledgePageActivityAction, KnowledgePageActivityEvent, KnowledgePageBodyLink, KnowledgePageLinkCounts, KnowledgePageLinkEdge, KnowledgePageSearchHit, KnowledgePageStore, KnowledgePin, KnowledgePinKind, KnowledgeProvenance } from './pages.js';
2
2
  type Store = KnowledgePageStore;
3
3
  /**
4
4
  * In-memory schema-4 page store: the reference implementation of {@link KnowledgePageStore} that the
@@ -80,7 +80,15 @@ export declare class InMemoryKnowledgePageStore implements KnowledgePageStore {
80
80
  restoreNote(input: Parameters<Store['restoreNote']>[0]): Promise<KnowledgeNote>;
81
81
  searchPages(input: Parameters<Store['searchPages']>[0]): Promise<KnowledgePageSearchHit[]>;
82
82
  listPageActivity(input: Parameters<Store['listPageActivity']>[0]): Promise<{
83
- events: KnowledgePageActivityEvent[];
83
+ events: {
84
+ id: string;
85
+ action: KnowledgePageActivityAction;
86
+ scopeId: string;
87
+ pageId: string;
88
+ noteId?: string;
89
+ provenance: KnowledgeProvenance;
90
+ createdAt: Date;
91
+ }[];
84
92
  nextCursor?: string | undefined;
85
93
  }>;
86
94
  addPinAudience(input: Parameters<Store['addPinAudience']>[0]): Promise<KnowledgePin>;
@@ -489,6 +489,11 @@ export interface KnowledgePageActivityEvent {
489
489
  noteId?: string;
490
490
  provenance: KnowledgeProvenance;
491
491
  createdAt: Date;
492
+ /**
493
+ * Set on events from oldest-first reads (`order: 'asc'`): this event's place in the feed, an
494
+ * opaque string. Pass it as `after` to continue from here.
495
+ */
496
+ position?: string;
492
497
  }
493
498
  /** @experimental */
494
499
  export interface KnowledgePageActivityInput {
@@ -506,6 +511,13 @@ export interface KnowledgePageActivityInput {
506
511
  createdAt: Date;
507
512
  id: string;
508
513
  };
514
+ /**
515
+ * `asc` reads oldest first in the store's commit-safe feed order (on stores reporting
516
+ * `supportsActivityAscending`). Defaults to `desc`.
517
+ */
518
+ order?: 'desc' | 'asc';
519
+ /** Events after this `position` from an earlier oldest-first read. Only with `order: 'asc'`. */
520
+ after?: string;
509
521
  }
510
522
  /** @experimental */
511
523
  export interface KnowledgeScopeDeclarationCount {
@@ -752,6 +764,24 @@ export interface KnowledgePageStore {
752
764
  * first, the bounds apply before the limit, and `before` returns only events strictly older than
753
765
  * that event in this order. `before` can't be combined with `cursor`. Without any of them the
754
766
  * store's existing order and cursor are unchanged.
767
+ *
768
+ * `order: 'asc'`, only on stores reporting `supportsActivityAscending`, reads oldest first in a
769
+ * commit-safe order: an event never appears behind a position a reader already holds, even when
770
+ * its write committed after later-stamped ones. Each event carries a `position`; `after` returns
771
+ * only events past that position, so a reader can store the last position it handled and continue
772
+ * from it later without missing or repeating events. One exception: events of a page or note that
773
+ * becomes readable later (a page moved into the read scope, a note restamped or restored into view)
774
+ * keep their original positions, so they can sit behind a position the reader already holds and
775
+ * aren't returned after it. The move, restamp or restore itself is logged as a new event past that
776
+ * position (for a subtree move, one event for the moved root), so a reader sees it and can read
777
+ * that page's earlier changes newest first. The order is the store's own feed order, not
778
+ * `createdAt` (`since`/`until` still filter by `createdAt`), and it isn't always the order writes
779
+ * committed in: PostgreSQL orders by transaction id (taken at a transaction's first write) and holds back events until every earlier
780
+ * transaction has ended, so a write that started first comes first even if it committed last. `after` needs `order: 'asc'` and can't be combined with `cursor`;
781
+ * `before` can't be used with `order: 'asc'`. Invalid combinations and malformed positions throw
782
+ * a `RangeError`, and so do `order: 'asc'` and `after` on a store that doesn't report the
783
+ * capability. A store can also refuse a position it no longer recognises (for example after its
784
+ * feed was rebuilt by a database restore) with a `RangeError`; restart from `since` then.
755
785
  */
756
786
  listPageActivity(input: KnowledgePageActivityInput): Promise<{
757
787
  events: KnowledgePageActivityEvent[];
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_run_registry = require("../run-registry-BmckDVBk.cjs");
2
+ const require_run_registry = require("../run-registry-TOOfO3hT.cjs");
3
3
  const require_observability = require("../observability-B0R_D1PZ.cjs");
4
- const require_stream = require("../stream-0kdqBOOn.cjs");
4
+ const require_stream = require("../stream-DH7Qgz8l.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-BavRtYWJ.cjs");
@@ -1,6 +1,6 @@
1
- import { $a as spanQueryIdentitySchema, $n as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, $r as InMemoryMemory, Aa as tracePageRequestSchema, Ai as assertKnowledgeNoteTextWithinBound, Ar as WorkflowDefinitionsStorage, Ba as SPAN_QUERY_MAX_COST_METRICS, Bi as InMemoryHarness, Br as dispatchDueNotifications, Bs as WorkflowStepConflictError, Ca as transformRow, Ci as MAX_KNOWLEDGE_PAGE_BODY_LINKS, Cr as WorkflowsInMemory, Da as readTracePage, Di as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, Dr as mergeStepResult, Ea as TracePageError, Ei as MAX_KNOWLEDGE_PAGE_LINKS, Er as createEmptyWorkflowSnapshot, Fa as planThreadRowsQuery, Fi as knowledgePinDepth, Fr as InMemorySchedulesStorage, Ga as buildSpanQueryResponse, Gi as DatasetsStorage, Gl as currentRunGeneration, Ha as SPAN_QUERY_MAX_LIMIT, Hi as ExperimentsInMemory, Hl as RUN_FENCING_NOT_SUPPORTED_ERROR_ID, Hs as isWorkflowStepConflictError, Ia as threadQueryIdentitySchema, Ii as knowledgePositionBetween, Ir as SchedulesStorage, Ja as parseSpanQueryRequest, Jl as resolveRunFence, Ka as createSpanQueryPreview, Ki as DatasetItemIdentityConflictError, Kl as isRunFenceConflictError, La as threadQueryRequestSchema, Li as knowledgeScopeReadable, Lr as normalizeScheduleTarget, Ma as THREAD_QUERY_DEFAULT_LIMIT, Mi as canonicalKnowledgeName, Mr as ToolProviderConnectionsStorage, Na as THREAD_QUERY_MAX_LIMIT, Ni as knowledgeLinkRefKey, Nr as ScoresInMemory, Oa as tracePageIdSchema, Oi as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, Or as mergeWorkflowStepResult, Pa as encodeThreadQueryCursor, Pi as knowledgePagePath, Pr as ScoresStorage, Qa as spanQueryIdentityKey, Ra as threadQueryResponseSchema, Ri as parseKnowledgePageRef, Rr as InMemoryNotificationsStorage, Sa as storageMessageMatchesMetadataFilter, Si as MAX_KNOWLEDGE_NOTE_TOKENS, So as UniqueViolationError, Sr as MockStore, Ta as validateStorageMetadataFilter, Ti as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, Tr as WorkflowsStorage, Ua as SPAN_QUERY_MAX_PREVIEW_CHARACTERS, Ui as ExperimentsStorage, Ul as RunFenceConflictError, Va as SPAN_QUERY_MAX_CURSOR_BYTES, Vi as HarnessStorage, Vl as RUN_FENCE_CONFLICT_ERROR_ID, Vs as assertWorkflowStepGuard, Wa as SPAN_QUERY_ORDER_FIELDS, Wi as DatasetsInMemory, Wl as coverNestedRun, Xa as resolveSpanQueryCost, Xl as runOutsideRunFenceScope, Ya as planSpanQuery, Yl as runFencingNotSupportedError, Za as spanQueryCostSchema, Zl as setRunFenceContext, _a as hasErrorCode, _i as KnowledgeMoveTooLargeError, _o as toEntityType, _r as GitHubSourceControlProvider, aa as BackgroundTasksStorage, ai as KNOWLEDGE_STORAGE_CONTRACT_VERSION, ao as getTraceQueryDeltaWatermark, ar as assertKnowledgeScopeWithinCeiling, ba as safelyParseJSON, bi as KnowledgePageKeyConflictError, bo as FactoryStorage, br as FilesystemDB, ca as retentionCutoffMs, ci as KnowledgeNotFoundError, co as buildCreateSpanRecord, cr as expandKnowledgeScope, da as createStoreErrorId, di as KnowledgeTransactionDeadlineError, do as buildMetricRecord, dr as knowledgeSemanticDocumentId, ea as InMemoryChannelsStorage, ei as MemoryStorage, eo as spanQueryRequestSchema, er as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, fa as createVectorErrorId, fi as KnowledgeUnsupportedCapabilityError, fo as buildScoreRecord, fr as knowledgeSemanticIdempotencyKey, ga as getSqlType, gi as parseKnowledgeWikilinks, go as serializeSpanAttributes, gr as StoreOperations, ha as getDefaultValue, hi as inspectKnowledgeSchema, ho as getStringOrNull, hr as StoreOperationsInMemory, ia as BackgroundTasksInMemory, ii as KnowledgeImportersStorage, io as encodeTraceQueryDeltaCursor, ir as assertKnowledgeRecordTextWithinBound, ja as tracePageResponseSchema, ji as assertKnowledgePageDescriptionWithinBound, jr as InMemoryToolProviderConnectionsStorage, ka as tracePageNodeSchema, ki as MAX_KNOWLEDGE_PIN_LIST_DEPTH, kr as InMemoryWorkflowDefinitionsStorage, la as runRetentionBatches, li as KnowledgeSchemaResetRequiredError, lo as buildFeedbackRecord, lr as isKnowledgeScopeVisible, ma as filterByDateRange, mi as createKnowledgeUlid, mo as getObjectOrNull, mr as parseKnowledgeNodeCursor, na as InMemoryBlobStore, ni as KnowledgeImporterBindingConflictError, no as spanQueryRowSchema, nr as assertKnowledgeCeilingRaised, oa as executeRetentionPrune, oi as KNOWLEDGE_STORAGE_SCHEMA_VERSION, oo as planThreadQuery, or as canonicalizeKnowledgeScope, pa as ensureDate, pi as assertKnowledgeSchemaCompatible, po as buildUpdateSpanRecord, pr as knowledgeVisibleScopeKeys, qa as encodeSpanQueryCursor, ql as matchesRunFence, ra as BlobStore, ri as KnowledgeImporterRunStateError, ro as encodeTraceQueryCursor, rr as assertKnowledgeDescriptionWithinBound, sa as resolveRetentionTargets, si as KnowledgeConflictError, so as planTraceQuery, sr as createKnowledgeNodeCursor, ta as ChannelsStorage, ti as InMemoryKnowledgeStorage, to as spanQueryResponseSchema, tr as MAX_KNOWLEDGE_SCOPE_TAGS, ua as createStorageErrorId, ui as KnowledgeStorage, uo as buildLogRecord, ur as knowledgeScopeKey, va as jsonValueEquals, vi as KnowledgePageDepthError, vo as ObservabilityInMemory, vr as createGitHubSourceControlProviderFromEnv, wa as transformScoreRow, wi as MAX_KNOWLEDGE_PAGE_DEPTH, wr as cloneRunData, xa as serializeDate, xi as MAX_KNOWLEDGE_MOVE_PAGES, xo as FactoryStorageDomain, xr as InMemoryStore, ya as parseDuration, yi as KnowledgePageHasChildrenError, yo as ObservabilityStorage, yr as FilesystemStore, za as threadQueryRowSchema, zi as KnowledgeInvalidCursorError, zr as NotificationsStorage } from "../run-registry-BwEcwYlU.js";
1
+ import { $a as planSpanQuery, $l as resolveRunFence, Aa as TracePageError, Ai as MAX_KNOWLEDGE_PAGE_LINKS, Ar as createEmptyWorkflowSnapshot, Ba as threadQueryIdentitySchema, Bi as knowledgePositionBetween, Br as SchedulesStorage, Ca as parseDuration, Ci as KnowledgePageHasChildrenError, Co as ObservabilityStorage, Cr as FilesystemStore, Da as transformRow, Di as MAX_KNOWLEDGE_PAGE_BODY_LINKS, Dr as WorkflowsInMemory, Ea as storageMessageMatchesMetadataFilter, Ei as MAX_KNOWLEDGE_NOTE_TOKENS, Eo as UniqueViolationError, Er as MockStore, Fa as tracePageResponseSchema, Fi as assertKnowledgePageDescriptionWithinBound, Fr as InMemoryToolProviderConnectionsStorage, Ga as SPAN_QUERY_MAX_CURSOR_BYTES, Gi as HarnessStorage, Gl as isWorkflowStepConflictError, Ha as threadQueryResponseSchema, Hi as parseKnowledgePageRef, Hr as InMemoryNotificationsStorage, Ia as THREAD_QUERY_DEFAULT_LIMIT, Ii as canonicalKnowledgeName, Ir as ToolProviderConnectionsStorage, Ja as SPAN_QUERY_ORDER_FIELDS, Ji as DatasetsInMemory, Jl as RunFenceConflictError, Ka as SPAN_QUERY_MAX_LIMIT, Ki as ExperimentsInMemory, Kl as RUN_FENCE_CONFLICT_ERROR_ID, La as THREAD_QUERY_MAX_LIMIT, Li as knowledgeLinkRefKey, Lr as ScoresInMemory, Ma as tracePageIdSchema, Mi as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, Mr as mergeWorkflowStepResult, Na as tracePageNodeSchema, Ni as MAX_KNOWLEDGE_PIN_LIST_DEPTH, Nr as InMemoryWorkflowDefinitionsStorage, Oa as transformScoreRow, Oi as MAX_KNOWLEDGE_PAGE_DEPTH, Or as cloneRunData, Pa as tracePageRequestSchema, Pi as assertKnowledgeNoteTextWithinBound, Pr as WorkflowDefinitionsStorage, Qa as parseSpanQueryRequest, Ql as matchesRunFence, Ra as encodeThreadQueryCursor, Ri as knowledgePagePath, Rr as ScoresStorage, Sa as jsonValueEquals, Si as KnowledgePageDepthError, So as ObservabilityInMemory, Sr as createGitHubSourceControlProviderFromEnv, Ta as serializeDate, Ti as MAX_KNOWLEDGE_MOVE_PAGES, To as FactoryStorageDomain, Tr as InMemoryStore, Ua as threadQueryRowSchema, Ui as KnowledgeInvalidCursorError, Ul as WorkflowStepConflictError, Ur as NotificationsStorage, Va as threadQueryRequestSchema, Vi as knowledgeScopeReadable, Vr as normalizeScheduleTarget, Wa as SPAN_QUERY_MAX_COST_METRICS, Wi as InMemoryHarness, Wl as assertWorkflowStepGuard, Wr as dispatchDueNotifications, Xa as createSpanQueryPreview, Xi as DatasetItemIdentityConflictError, Xl as currentRunGeneration, Ya as buildSpanQueryResponse, Yi as DatasetsStorage, Yl as coverNestedRun, Za as encodeSpanQueryCursor, Zl as isRunFenceConflictError, _a as ensureDate, _i as assertKnowledgeSchemaCompatible, _o as buildUpdateSpanRecord, _r as knowledgeVisibleScopeKeys, aa as ChannelsStorage, ai as InMemoryKnowledgeStorage, ao as spanQueryResponseSchema, ar as MAX_KNOWLEDGE_SCOPE_TAGS, ba as getSqlType, bi as parseKnowledgeWikilinks, bo as serializeSpanAttributes, br as StoreOperations, ca as BackgroundTasksInMemory, ci as KnowledgeImportersStorage, co as encodeTraceQueryDeltaCursor, cr as assertKnowledgeRecordTextWithinBound, da as resolveRetentionTargets, di as KnowledgeConflictError, do as planTraceQuery, dr as createKnowledgeNodeCursor, eo as resolveSpanQueryCost, eu as runFencingNotSupportedError, fa as retentionCutoffMs, fi as KnowledgeNotFoundError, fo as buildCreateSpanRecord, fr as expandKnowledgeScope, ga as createVectorErrorId, gi as KnowledgeUnsupportedCapabilityError, go as buildScoreRecord, gr as knowledgeSemanticIdempotencyKey, ha as createStoreErrorId, hi as KnowledgeTransactionDeadlineError, ho as buildMetricRecord, hr as knowledgeSemanticDocumentId, ia as InMemoryChannelsStorage, ii as MemoryStorage, io as spanQueryRequestSchema, ir as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, ja as readTracePage, ji as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, jr as mergeStepResult, ka as validateStorageMetadataFilter, ki as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, kr as WorkflowsStorage, la as BackgroundTasksStorage, li as KNOWLEDGE_STORAGE_CONTRACT_VERSION, lo as getTraceQueryDeltaWatermark, lr as assertKnowledgeScopeWithinCeiling, ma as createStorageErrorId, mi as KnowledgeStorage, mo as buildLogRecord, mr as knowledgeScopeKey, no as spanQueryIdentityKey, nu as setRunFenceContext, oa as InMemoryBlobStore, oi as KnowledgeImporterBindingConflictError, oo as spanQueryRowSchema, or as assertKnowledgeCeilingRaised, pa as runRetentionBatches, pi as KnowledgeSchemaResetRequiredError, po as buildFeedbackRecord, pr as isKnowledgeScopeVisible, qa as SPAN_QUERY_MAX_PREVIEW_CHARACTERS, qi as ExperimentsStorage, ql as RUN_FENCING_NOT_SUPPORTED_ERROR_ID, ri as InMemoryMemory, ro as spanQueryIdentitySchema, rr as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, sa as BlobStore, si as KnowledgeImporterRunStateError, so as encodeTraceQueryCursor, sr as assertKnowledgeDescriptionWithinBound, to as spanQueryCostSchema, tu as runOutsideRunFenceScope, ua as executeRetentionPrune, ui as KNOWLEDGE_STORAGE_SCHEMA_VERSION, uo as planThreadQuery, ur as canonicalizeKnowledgeScope, va as filterByDateRange, vi as createKnowledgeUlid, vo as getObjectOrNull, vr as parseKnowledgeNodeCursor, wa as safelyParseJSON, wi as KnowledgePageKeyConflictError, wo as FactoryStorage, wr as FilesystemDB, xa as hasErrorCode, xi as KnowledgeMoveTooLargeError, xo as toEntityType, xr as GitHubSourceControlProvider, ya as getDefaultValue, yi as inspectKnowledgeSchema, yo as getStringOrNull, yr as StoreOperationsInMemory, za as planThreadRowsQuery, zi as knowledgePinDepth, zr as InMemorySchedulesStorage } from "../run-registry-DdeEBsVW.js";
2
2
  import { a as PREVIEW_MAX_LENGTH } from "../observability-D7RNOAPx.js";
3
- import { At as STATE_CHECKPOINT_PATCHES, Bt as summarizeStepResult, Ft as materializeState, Ht as applyStatePatch, It as materializeWorkflowRun, Lt as pickStateKeys, Mt as applyStateColumnsWrite, Nt as isStateCheckpointDue, Pt as latestStepResults, Rt as stateBaseOf, Ut as diffState, Vt as unusedStateEntries, jt as STEP_RESULT_SUMMARY_FIELDS, kt as getSnapshotMemoryInfo, zt as stateColumnsWrite } from "../stream-D1y9GzoD.js";
3
+ import { At as STATE_CHECKPOINT_PATCHES, Bt as summarizeStepResult, Ft as materializeState, Ht as applyStatePatch, It as materializeWorkflowRun, Lt as pickStateKeys, Mt as applyStateColumnsWrite, Nt as isStateCheckpointDue, Pt as latestStepResults, Rt as stateBaseOf, Ut as diffState, Vt as unusedStateEntries, jt as STEP_RESULT_SUMMARY_FIELDS, kt as getSnapshotMemoryInfo, zt as stateColumnsWrite } from "../stream-C5PagEDs.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-BL1ojJLo.js";
@@ -38,6 +38,11 @@ export interface RunOwnershipRecord {
38
38
  leaseExpiresAt: Date | null;
39
39
  /** Whether the owner holds an unexpired lease, judged on the store's clock. */
40
40
  live: boolean;
41
+ /**
42
+ * When the record last changed (claim, renewal or release), on the store's clock. Absent on
43
+ * stores that don't report it.
44
+ */
45
+ updatedAt?: Date;
41
46
  }
42
47
  export interface ClaimRunOwnershipInput {
43
48
  runId: string;
@@ -35,7 +35,7 @@ export declare class WorkflowRunOutput<TResult extends WorkflowResult<any, any,
35
35
  get fullStream(): ReadableStream<WorkflowStreamEvent>;
36
36
  get status(): WorkflowRunStatus;
37
37
  get result(): Promise<TResult>;
38
- get usage(): Promise<import("../_types/@internal_ai-sdk-v5@0.0.98/dist/index.js").LanguageModelV2Usage>;
38
+ get usage(): Promise<import("../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js").LanguageModelV2Usage>;
39
39
  /**
40
40
  * @deprecated Use `fullStream.locked` instead
41
41
  */
@@ -1,4 +1,4 @@
1
- import type { LanguageModelV1StreamPart } from '../../../_types/@internal_ai-sdk-v4@0.0.98/dist/index.js';
1
+ import type { LanguageModelV1StreamPart } from '../../../_types/@internal_ai-sdk-v4@0.0.99/dist/index.js';
2
2
  import type { RegisteredLogger } from '../../../logger/index.js';
3
3
  import { MastraModelInput } from '../../base/index.js';
4
4
  import type { ChunkType } from '../../types.js';
@@ -1,5 +1,5 @@
1
1
  import type { LanguageModelV2DataContent } from '../../../../_types/@ai-sdk_provider@2.0.5/dist/index.js';
2
- import type { DataContent } from '../../../../_types/@internal_ai-sdk-v5@0.0.98/dist/index.js';
2
+ import type { DataContent } from '../../../../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js';
3
3
  /**
4
4
  * Flat generated-file data is `string | Uint8Array`, where strings normally
5
5
  * hold base64. URL-backed V4 generated files flatten to http(s) URL strings
@@ -1,6 +1,6 @@
1
1
  import type { LanguageModelV2FunctionTool, LanguageModelV2ProviderDefinedTool, LanguageModelV2ToolChoice } from '../../../../_types/@ai-sdk_provider@2.0.5/dist/index.js';
2
2
  import type { LanguageModelV3FunctionTool, LanguageModelV3ProviderTool, LanguageModelV3ToolChoice } from '../../../../_types/@ai-sdk_provider@3.0.19/dist/index.js';
3
- import type { Tool, ToolChoice } from '../../../../_types/@internal_ai-sdk-v5@0.0.98/dist/index.js';
3
+ import type { Tool, ToolChoice } from '../../../../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js';
4
4
  import type { ModelToolDefinition } from '../../../../observability/index.js';
5
5
  /** Model specification version for tool type conversion */
6
6
  export type ModelSpecVersion = 'v2' | 'v3' | 'v4';
@@ -1,4 +1,4 @@
1
- import type { InferUIMessageChunk, TextStreamPart, ToolSet, UIMessage, IdGenerator } from '../../../../_types/@internal_ai-sdk-v5@0.0.98/dist/index.js';
1
+ import type { InferUIMessageChunk, TextStreamPart, ToolSet, UIMessage, IdGenerator } from '../../../../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js';
2
2
  export declare function getResponseUIMessageId({ originalMessages, responseMessageId, }: {
3
3
  originalMessages: UIMessage[] | undefined;
4
4
  responseMessageId: string | IdGenerator | undefined;
@@ -1,4 +1,4 @@
1
- import type { Schema } from '../../../../_types/@internal_ai-sdk-v5@0.0.98/dist/index.js';
1
+ import type { Schema } from '../../../../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js';
2
2
  export type ValidationResult<T> = {
3
3
  success: true;
4
4
  value: T;
@@ -1,5 +1,5 @@
1
1
  import type { LanguageModelV2Prompt } from '../../../_types/@ai-sdk_provider@2.0.5/dist/index.js';
2
- import type { IdGenerator, ToolChoice, ToolSet } from '../../../_types/@internal_ai-sdk-v5@0.0.98/dist/index.js';
2
+ import type { IdGenerator, ToolChoice, ToolSet } from '../../../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js';
3
3
  import type { StructuredOutputOptions } from '../../../agent/types.js';
4
4
  import type { ModelMethodType } from '../../../llm/model/model.loop.types.js';
5
5
  import type { MastraLanguageModel, SharedProviderOptions } from '../../../llm/model/shared.types.js';
@@ -1,5 +1,5 @@
1
1
  import type { LanguageModelV2StreamPart } from '../../../_types/@ai-sdk_provider@2.0.5/dist/index.js';
2
- import type { IdGenerator } from '../../../_types/@internal_ai-sdk-v5@0.0.98/dist/index.js';
2
+ import type { IdGenerator } from '../../../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js';
3
3
  import type { RegisteredLogger } from '../../../logger/index.js';
4
4
  import { MastraModelInput } from '../../base/index.js';
5
5
  import type { ChunkType } from '../../types.js';
@@ -1,4 +1,4 @@
1
- import type { StepResult, ToolSet, StaticToolCall, StaticToolResult, DynamicToolCall, DynamicToolResult } from '../../../_types/@internal_ai-sdk-v5@0.0.98/dist/index.js';
1
+ import type { StepResult, ToolSet, StaticToolCall, StaticToolResult, DynamicToolCall, DynamicToolResult } from '../../../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js';
2
2
  import type { StepTripwireData } from '../../types.js';
3
3
  type ContentPart<TOOLS extends ToolSet> = StepResult<TOOLS>['content'][number];
4
4
  export declare class DefaultStepResult<TOOLS extends ToolSet> implements StepResult<TOOLS> {
@@ -22,31 +22,31 @@ export declare class DefaultStepResult<TOOLS extends ToolSet> implements StepRes
22
22
  tripwire?: StepTripwireData;
23
23
  });
24
24
  get text(): string;
25
- get reasoning(): import("../../../_types/@internal_ai-sdk-v5@0.0.98/dist/index.js").ReasoningOutput[];
25
+ get reasoning(): import("../../../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js").ReasoningOutput[];
26
26
  get reasoningText(): string | undefined;
27
- get files(): import("../../../_types/@internal_ai-sdk-v5@0.0.98/dist/index.js").GeneratedFile[];
27
+ get files(): import("../../../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js").GeneratedFile[];
28
28
  get sources(): Extract<ContentPart<TOOLS>, {
29
29
  type: 'source';
30
30
  }>[];
31
31
  get toolCalls(): (({
32
32
  type: 'tool-call';
33
33
  } & DynamicToolCall & {
34
- providerMetadata?: import("../../../_types/@internal_ai-sdk-v5@0.0.98/dist/index.js").ProviderMetadata;
34
+ providerMetadata?: import("../../../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js").ProviderMetadata;
35
35
  }) | ({
36
36
  type: 'tool-call';
37
37
  } & StaticToolCall<TOOLS> & {
38
- providerMetadata?: import("../../../_types/@internal_ai-sdk-v5@0.0.98/dist/index.js").ProviderMetadata;
38
+ providerMetadata?: import("../../../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js").ProviderMetadata;
39
39
  }))[];
40
40
  get staticToolCalls(): StaticToolCall<TOOLS>[];
41
41
  get dynamicToolCalls(): DynamicToolCall[];
42
42
  get toolResults(): (({
43
43
  type: 'tool-result';
44
44
  } & DynamicToolResult & {
45
- providerMetadata?: import("../../../_types/@internal_ai-sdk-v5@0.0.98/dist/index.js").ProviderMetadata;
45
+ providerMetadata?: import("../../../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js").ProviderMetadata;
46
46
  }) | ({
47
47
  type: 'tool-result';
48
48
  } & StaticToolResult<TOOLS> & {
49
- providerMetadata?: import("../../../_types/@internal_ai-sdk-v5@0.0.98/dist/index.js").ProviderMetadata;
49
+ providerMetadata?: import("../../../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js").ProviderMetadata;
50
50
  }))[];
51
51
  get staticToolResults(): StaticToolResult<TOOLS>[];
52
52
  get dynamicToolResults(): DynamicToolResult[];
@@ -1,5 +1,5 @@
1
1
  import type { LanguageModelV2FinishReason, LanguageModelV2StreamPart, LanguageModelV2Usage, SharedV2ProviderMetadata } from '../../../_types/@ai-sdk_provider@2.0.5/dist/index.js';
2
- import type { ModelMessage, ObjectStreamPart, TextStreamPart, ToolSet } from '../../../_types/@internal_ai-sdk-v5@0.0.98/dist/index.js';
2
+ import type { ModelMessage, ObjectStreamPart, TextStreamPart, ToolSet } from '../../../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js';
3
3
  import type { AIV5ResponseMessage } from '../../../agent/message-list/index.js';
4
4
  import type { ChunkType } from '../../types.js';
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { ReadableStream } from 'node:stream/web';
2
- import type { StepResult } from '../../_types/@internal_ai-sdk-v5@0.0.98/dist/index.js';
2
+ import type { StepResult } from '../../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js';
3
3
  import type { MessageList, MastraDBMessage } from '../../agent/message-list/index.js';
4
4
  import { MastraBase } from '../../base.js';
5
5
  import type { ScorerRunInputForAgent, ScorerRunOutputForAgent } from '../../evals/index.js';
@@ -285,11 +285,11 @@ export declare class MastraModelOutput<OUTPUT = undefined> extends MastraBase {
285
285
  get response(): Promise<{
286
286
  [key: string]: unknown;
287
287
  headers?: Record<string, string>;
288
- messages?: StepResult<import("../../_types/@internal_ai-sdk-v5@0.0.98/dist/index.js").ToolSet>['response']['messages'];
288
+ messages?: StepResult<import("../../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js").ToolSet>['response']['messages'];
289
289
  dbMessages?: MastraDBMessage[];
290
- uiMessages?: import("../../_types/@internal_ai-sdk-v5@0.0.98/dist/index.js").UIMessage<[OUTPUT] extends [undefined] ? undefined : {
290
+ uiMessages?: import("../../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js").UIMessage<[OUTPUT] extends [undefined] ? undefined : {
291
291
  structuredOutput?: OUTPUT | undefined;
292
- } & Record<string, unknown>, import("../../_types/@internal_ai-sdk-v5@0.0.98/dist/index.js").UIDataTypes, import("../../_types/@internal_ai-sdk-v5@0.0.98/dist/index.js").UITools>[] | undefined;
292
+ } & Record<string, unknown>, import("../../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js").UIDataTypes, import("../../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js").UITools>[] | undefined;
293
293
  id?: string;
294
294
  timestamp?: Date;
295
295
  modelId?: string;
@@ -1,4 +1,4 @@
1
- import type { JSONSchema7, Schema } from '../../_types/@internal_ai-sdk-v5@0.0.98/dist/index.js';
1
+ import type { JSONSchema7, Schema } from '../../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js';
2
2
  import type { z as z3 } from 'zod/v3';
3
3
  import type { z as z4 } from 'zod/v4';
4
4
  import type { StandardSchemaWithJSON } from '../../schema/index.js';
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_stream = require("../stream-0kdqBOOn.cjs");
3
- const require_llm = require("../llm-8Av3mSjD.cjs");
2
+ const require_stream = require("../stream-DH7Qgz8l.cjs");
3
+ const require_llm = require("../llm-BAiOsNAP.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 { En as convertFullStreamChunkToUIMessageStream, a as convertFullStreamChunkToMastra, 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-D1y9GzoD.js";
2
- import { u as ChunkFrom } from "../llm-B5A5cwJr.js";
1
+ import { En as convertFullStreamChunkToUIMessageStream, a as convertFullStreamChunkToMastra, 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-C5PagEDs.js";
2
+ import { u as ChunkFrom } from "../llm-B1zaFLYZ.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 };
@@ -1,7 +1,7 @@
1
1
  import type { TransformStream } from 'node:stream/web';
2
2
  import type { LanguageModelV2FinishReason, LanguageModelV2Usage, LanguageModelV2CallWarning, LanguageModelV2Prompt, LanguageModelV2ResponseMetadata, LanguageModelV2StreamPart } from '../_types/@ai-sdk_provider@2.0.5/dist/index.js';
3
- import type { FinishReason, LanguageModelRequestMetadata, LogProbs as LanguageModelV1LogProbs } from '../_types/@internal_ai-sdk-v4@0.0.98/dist/index.js';
4
- import type { ModelMessage, StepResult, ToolSet, TypedToolCall, UIMessage } from '../_types/@internal_ai-sdk-v5@0.0.98/dist/index.js';
3
+ import type { FinishReason, LanguageModelRequestMetadata, LogProbs as LanguageModelV1LogProbs } from '../_types/@internal_ai-sdk-v4@0.0.99/dist/index.js';
4
+ import type { ModelMessage, StepResult, ToolSet, TypedToolCall, UIMessage } from '../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js';
5
5
  import type { Agent } from '../agent/index.js';
6
6
  import type { AIV5ResponseMessage, MessageList } from '../agent/message-list/index.js';
7
7
  import type { StoredMessageLoader } from '../agent/message-list/memory-message-refs.js';
@@ -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-B5A5cwJr.js";
2
+ import { d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, p as readModelStreamTransport } from "./llm-B1zaFLYZ.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-KRbg-TnI.js";
4
4
  import { S as resolveObservabilityContext, x as createObservabilityContext } from "./observability-D7RNOAPx.js";
5
5
  import { t as MastraBase } from "./base-CKLWBhDo.js";
@@ -4760,13 +4760,13 @@ var ProcessorRunner = class ProcessorRunner {
4760
4760
  }
4761
4761
  endStreamProcessorSpans(processorStates, options) {
4762
4762
  for (const state of processorStates.values()) {
4763
- state.span?.end({
4763
+ if (!options?.stepScopedOnly) state.span?.end({
4764
4764
  output: state.getFinalOutput(),
4765
4765
  attributes: state.getFinalAttributes()
4766
4766
  });
4767
4767
  for (const [key, value] of Object.entries(state.customState)) if (key.startsWith("__outputStreamSpan_")) {
4768
4768
  const span = value;
4769
- if (options?.keepStepScopedSpans && span?.parent?.type === "model_step") continue;
4769
+ if (span?.parent?.type === "model_step" ? options?.keepStepScopedSpans : options?.stepScopedOnly) continue;
4770
4770
  const durationKey = OUTPUT_STREAM_HOOK_DURATION_KEY_PREFIX + key.slice(19);
4771
4771
  const hookDurationMs = state.customState[durationKey];
4772
4772
  span?.end(typeof hookDurationMs === "number" ? { attributes: { hookDurationMs } } : void 0);
@@ -1,5 +1,5 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
2
- const require_llm = require("./llm-8Av3mSjD.cjs");
2
+ const require_llm = require("./llm-BAiOsNAP.cjs");
3
3
  const require_message_list = require("./message-list-Cj0Sq_JP.cjs");
4
4
  const require_observability = require("./observability-B0R_D1PZ.cjs");
5
5
  const require_base = require("./base-BIzR1D3_.cjs");
@@ -4761,13 +4761,13 @@ var ProcessorRunner = class ProcessorRunner {
4761
4761
  }
4762
4762
  endStreamProcessorSpans(processorStates, options) {
4763
4763
  for (const state of processorStates.values()) {
4764
- state.span?.end({
4764
+ if (!options?.stepScopedOnly) state.span?.end({
4765
4765
  output: state.getFinalOutput(),
4766
4766
  attributes: state.getFinalAttributes()
4767
4767
  });
4768
4768
  for (const [key, value] of Object.entries(state.customState)) if (key.startsWith("__outputStreamSpan_")) {
4769
4769
  const span = value;
4770
- if (options?.keepStepScopedSpans && span?.parent?.type === "model_step") continue;
4770
+ if (span?.parent?.type === "model_step" ? options?.keepStepScopedSpans : options?.stepScopedOnly) continue;
4771
4771
  const durationKey = OUTPUT_STREAM_HOOK_DURATION_KEY_PREFIX + key.slice(19);
4772
4772
  const hookDurationMs = state.customState[durationKey];
4773
4773
  span?.end(typeof hookDurationMs === "number" ? { attributes: { hookDurationMs } } : void 0);
@@ -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-BK93CMtl.cjs");
4
+ const require_model = require("../model-WahorgzJ.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,6 +1,6 @@
1
- import { simulateReadableStream } from '../_types/@internal_ai-sdk-v4@0.0.98/dist/index.js';
2
- import { MockLanguageModelV1 } from '../_types/@internal_ai-sdk-v4@0.0.98/dist/test.js';
3
- import { MockLanguageModelV2 } from '../_types/@internal_ai-sdk-v5@0.0.98/dist/test.js';
1
+ import { simulateReadableStream } from '../_types/@internal_ai-sdk-v4@0.0.99/dist/index.js';
2
+ import { MockLanguageModelV1 } from '../_types/@internal_ai-sdk-v4@0.0.99/dist/test.js';
3
+ import { MockLanguageModelV2 } from '../_types/@internal_ai-sdk-v5@0.0.99/dist/test.js';
4
4
  import type { StreamObjectResult, StreamReturn } from '../llm/model/base.types.js';
5
5
  import { MastraLLMV1 } from '../llm/model/model.js';
6
6
  import { MastraLanguageModelV2Mock } from '../loop/test-utils/MastraLanguageModelV2Mock.js';
@@ -1,5 +1,5 @@
1
1
  import { o as simulateReadableStream } from "../dist-D3cKCUe-.js";
2
- import { t as MastraLLMV1 } from "../model-CYtXw861.js";
2
+ import { t as MastraLLMV1 } from "../model-C47BJRtR.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-kWaZAT6Q.cjs");
2
+ const require_tool_loop_agent = require("../tool-loop-agent-CJTs4T8b.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-BdjWGVIb.js";
1
+ export { n as getSettings, r as isToolLoopAgentLike, t as toolLoopAgentToMastraAgent } from "../tool-loop-agent-DVYJXlQJ.js";
@@ -1,4 +1,4 @@
1
- import type { ToolLoopAgentSettings } from '../_types/@internal_ai-v6@0.0.98/dist/index.js';
1
+ import type { ToolLoopAgentSettings } from '../_types/@internal_ai-v6@0.0.99/dist/index.js';
2
2
  /**
3
3
  * Shape of a ToolLoopAgent-like object for runtime extraction.
4
4
  * We use this looser type because TypeScript's structural typing doesn't work
@@ -1,7 +1,7 @@
1
1
  const require_dist = require("./dist-P2rjrlmj.cjs");
2
- const require_run_registry = require("./run-registry-BmckDVBk.cjs");
3
- const require_stream = require("./stream-0kdqBOOn.cjs");
4
- const require_llm = require("./llm-8Av3mSjD.cjs");
2
+ const require_run_registry = require("./run-registry-TOOfO3hT.cjs");
3
+ const require_stream = require("./stream-DH7Qgz8l.cjs");
4
+ const require_llm = require("./llm-BAiOsNAP.cjs");
5
5
  const require_message_list = require("./message-list-Cj0Sq_JP.cjs");
6
6
  // src/tool-loop-agent/utils.ts
7
7
  function isToolLoopAgentLike(obj) {
@@ -1,7 +1,7 @@
1
1
  import { m as generateId } from "./dist-TPVqg8oV.js";
2
- import { N as Agent } from "./run-registry-BwEcwYlU.js";
3
- import { ln as isSupportedLanguageModel } from "./stream-D1y9GzoD.js";
4
- import { i as resolveModelConfig } from "./llm-B5A5cwJr.js";
2
+ import { N as Agent } from "./run-registry-DdeEBsVW.js";
3
+ import { ln as isSupportedLanguageModel } from "./stream-C5PagEDs.js";
4
+ import { i as resolveModelConfig } from "./llm-B1zaFLYZ.js";
5
5
  import { N as ToolLoopAgent } from "./message-list-KRbg-TnI.js";
6
6
  // src/tool-loop-agent/utils.ts
7
7
  function isToolLoopAgentLike(obj) {
@@ -1,4 +1,4 @@
1
- import type { ProviderDefinedTool } from '../../_types/@internal_external-types@0.0.101/dist/index.js';
1
+ import type { ProviderDefinedTool } from '../../_types/@internal_external-types@0.0.102/dist/index.js';
2
2
  declare const WEB_SEARCH_TOOL_MARKER: unique symbol;
3
3
  export type WebSearchProvider = 'openai' | 'anthropic' | 'google' | 'xai';
4
4
  export type WebSearchProviderToolId = 'openai.web_search' | 'anthropic.web_search_20250305' | 'google.google_search' | 'xai.web_search';
@@ -1,4 +1,4 @@
1
- import type { Tool, ToolSet } from '../_types/@internal_ai-sdk-v5@0.0.98/dist/index.js';
1
+ import type { Tool, ToolSet } from '../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js';
2
2
  /**
3
3
  * Find a provider-defined tool by its model-facing name.
4
4
  */
@@ -1,4 +1,4 @@
1
- import type { ProviderDefinedTool } from '../../_types/@internal_external-types@0.0.101/dist/index.js';
1
+ import type { ProviderDefinedTool } from '../../_types/@internal_external-types@0.0.102/dist/index.js';
2
2
  import { MastraBase } from '../../base.js';
3
3
  import type { ToolOptions } from '../../utils/index.js';
4
4
  import type { CoreTool, ToolAction, VercelTool, VercelToolV5 } from '../types.js';
@@ -1,4 +1,4 @@
1
- import type { ToolSet } from '../_types/@internal_ai-sdk-v5@0.0.98/dist/index.js';
1
+ import type { ToolSet } from '../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js';
2
2
  import type { JSONObject } from '../stream/types.js';
3
3
  import type { CoreTool } from './types.js';
4
4
  type ResolvedTool = ToolSet[string] | CoreTool | undefined;
@@ -1,5 +1,5 @@
1
1
  import type { WritableStream } from 'node:stream/web';
2
- import type { Tool, ToolV5, FlexibleSchema, ToolCallOptions, ToolExecutionOptions, Schema } from '../_types/@internal_external-types@0.0.101/dist/index.js';
2
+ import type { Tool, ToolV5, FlexibleSchema, ToolCallOptions, ToolExecutionOptions, Schema } from '../_types/@internal_external-types@0.0.102/dist/index.js';
3
3
  import type { MastraPrimitives, MastraUnion } from '../action/index.js';
4
4
  export type { MastraPrimitives, MastraUnion };
5
5
  import type { MastraDBMessage } from '../agent/message-list/index.js';
@@ -16,5 +16,5 @@
16
16
  * configured auth provider. The raw provider-specific user object remains
17
17
  * available on the request context under the `mastra__user` key.
18
18
  */
19
- export type { MastraUser } from '../_types/@internal_auth@0.0.39/dist/index.js';
19
+ export type { MastraUser } from '../_types/@internal_auth@0.0.40/dist/index.js';
20
20
  //# sourceMappingURL=user.d.ts.map
@@ -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-BnJfNLFo.js";
4
+ import { i as isToolBackgroundEligible, n as backgroundOverrideJsonSchema, r as backgroundOverrideZodSchema } from "./background-tasks-IW7M4iD2.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";