@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,5 +1,5 @@
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_constants = require("../constants-B9ZDvXZ4.cjs");
4
4
  const require_collect_tool_mocks = require("../collect-tool-mocks-k9fM6oDl.cjs");
5
5
  exports.MastraScorer = require_run_registry.MastraScorer;
@@ -1,4 +1,4 @@
1
- import { C as ScorerRunError, D as notScorable, Dc as SCORING_PREDICATE_ROOTS, E as isNotScorable, Oc as evaluateScoringPredicate, S as MastraScorer, T as filterRun, _ as runEvals, kc as validateScoringPredicate, w as createScorer, x as createClassifierScorer } from "../run-registry-BwEcwYlU.js";
1
+ import { C as ScorerRunError, D as notScorable, Dc as validateScoringPredicate, E as isNotScorable, Ec as evaluateScoringPredicate, S as MastraScorer, T as filterRun, Tc as SCORING_PREDICATE_ROOTS, _ as runEvals, w as createScorer, x as createClassifierScorer } from "../run-registry-DdeEBsVW.js";
2
2
  import { Ar as scoringEntityTypeSchema, Cr as extractTrajectory, Dr as saveScorePayloadSchema, Er as listScoresResponseSchema, Fr as scoringInputWithExtractStepResultAndScoreAndReasonSchema, Ir as scoringInputWithExtractStepResultSchema, Lr as scoringPromptsSchema, Mr as scoringHookInputSchema, Nr as scoringInputSchema, Or as scoreResultSchema, Pr as scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, Rr as scoringSourceSchema, Tr as extractWorkflowTrajectory, jr as scoringExtractStepResultSchema, kr as scoreRowDataSchema, wr as extractTrajectoryFromTrace, zr as scoringValueSchema } from "../constants-BmdTvEYN.js";
3
3
  import { t as collectToolMocks } from "../collect-tool-mocks-3s2BN8o7.js";
4
4
  export { MastraScorer, SCORING_PREDICATE_ROOTS, ScorerRunError, collectToolMocks, createClassifierScorer, createScorer, evaluateScoringPredicate, extractTrajectory, extractTrajectoryFromTrace, extractWorkflowTrajectory, filterRun, isNotScorable, listScoresResponseSchema, notScorable, runEvals, saveScorePayloadSchema, scoreResultSchema, scoreRowDataSchema, scoringEntityTypeSchema, scoringExtractStepResultSchema, scoringHookInputSchema, scoringInputSchema, scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, scoringInputWithExtractStepResultAndScoreAndReasonSchema, scoringInputWithExtractStepResultSchema, scoringPromptsSchema, scoringSourceSchema, scoringValueSchema, validateScoringPredicate };
@@ -1,4 +1,4 @@
1
- import type { CoreMessage } from '../../_types/@internal_ai-sdk-v4@0.0.98/dist/index.js';
1
+ import type { CoreMessage } from '../../_types/@internal_ai-sdk-v4@0.0.99/dist/index.js';
2
2
  import type { Agent, AgentExecutionOptions, AgentMemoryOption, AiMessageType, UIMessageWithMetadata } from '../../agent/index.js';
3
3
  import type { ObservabilityContext } from '../../observability/index.js';
4
4
  import type { RequestContext } from '../../request-context/index.js';
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_error = require("../../error-D90lJ6M7.cjs");
3
3
  const require_utils = require("../../utils-D-eNsgDM.cjs");
4
- const require_run_registry = require("../../run-registry-BmckDVBk.cjs");
4
+ const require_run_registry = require("../../run-registry-TOOfO3hT.cjs");
5
5
  const require_constants = require("../../constants-B9ZDvXZ4.cjs");
6
6
  let zod_v4 = require("zod/v4");
7
7
  // src/evals/scoreTraces/scoreTraces.ts
@@ -1,6 +1,6 @@
1
1
  import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "../../error-oh2DLsP2.js";
2
2
  import { i as getEntityTypeForSpan } from "../../utils-DU_pU5SK.js";
3
- import { Fs as createStep, Is as createWorkflow } from "../../run-registry-BwEcwYlU.js";
3
+ import { Bs as createWorkflow, zs as createStep } from "../../run-registry-DdeEBsVW.js";
4
4
  import { Dr as saveScorePayloadSchema } from "../../constants-BmdTvEYN.js";
5
5
  import { z } from "zod/v4";
6
6
  // src/evals/scoreTraces/scoreTraces.ts
@@ -1,4 +1,4 @@
1
- import type { CoreMessage, CoreSystemMessage } from '../_types/@internal_ai-sdk-v4@0.0.98/dist/index.js';
1
+ import type { CoreMessage, CoreSystemMessage } from '../_types/@internal_ai-sdk-v4@0.0.99/dist/index.js';
2
2
  import { z } from 'zod/v4';
3
3
  import type { MastraDBMessage } from '../agent/index.js';
4
4
  import type { ObservabilityContext } from '../observability/index.js';
@@ -60,6 +60,19 @@ export interface CachingPubSubOptions {
60
60
  * ignored for compatibility.
61
61
  */
62
62
  source?: PubSub;
63
+ /**
64
+ * Retention stamped on `agent.stream.<runId>` logs with every append.
65
+ * Defaults to {@link DEFAULT_RUN_LOG_TTL_MS}. Size it to the longest quiet
66
+ * gap of a run that is still executing plus a reconnect window — storage is
67
+ * the system of record, and an expired log resyncs observers instead of
68
+ * breaking them.
69
+ */
70
+ runLogTtlMs?: number;
71
+ /**
72
+ * Retention stamped on `agent.thread-stream.<key>` logs with every append.
73
+ * Defaults to {@link DEFAULT_THREAD_STREAM_LOG_TTL_MS}.
74
+ */
75
+ threadStreamLogTtlMs?: number;
63
76
  }
64
77
  /**
65
78
  * A PubSub decorator that adds event caching and replay capabilities.
@@ -128,6 +141,7 @@ export declare class CachingPubSub extends PubSub {
128
141
  private readonly shouldCache?;
129
142
  private readonly extendExistingLogsOnly;
130
143
  private readonly onUnlogged?;
144
+ private readonly logTtls;
131
145
  /** Maps original callbacks to their wrapped versions for proper unsubscribe */
132
146
  private callbackMap;
133
147
  /**
@@ -181,6 +195,20 @@ export declare class CachingPubSub extends PubSub {
181
195
  *
182
196
  * Numbered entries are returned in index order, followed by unnumbered
183
197
  * ones, because a non-atomic append can store frames out of order.
198
+ *
199
+ * Sizing the slice from the last entry's index instead would be one read
200
+ * cheaper, but only if list order matched index order. It does not on the
201
+ * non-atomic composed fallback: for a list appended `[0, 1, 4, 2, 3]`, a
202
+ * tail sized from the last index (3) spans two entries and silently loses
203
+ * index 4, where walking back by the hole count reaches it.
204
+ *
205
+ * The hole count is not a complete defence either — it assumes an entry
206
+ * numbered `from` or later sits at position `from` or later, which an
207
+ * out-of-order append can also break for a high enough `from`. Reading from
208
+ * position 0 whenever the cache cannot promise index-ordered appends would
209
+ * close that, at the cost of a whole-log read per resume and per live gap;
210
+ * it needs a capability on `MastraServerCache` to avoid paying that on the
211
+ * atomic caches, which is tracked separately.
184
212
  */
185
213
  private readLogFrom;
186
214
  publish(topic: string, event: Omit<Event, 'id' | 'createdAt' | 'index'>, options?: {
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_rolldown_runtime = require("../rolldown-runtime-BrhgMLW6.cjs");
3
- const require_output_helpers = require("../output-helpers-1Zu4Vt9C.cjs");
3
+ const require_output_helpers = require("../output-helpers-DgsH4aTb.cjs");
4
4
  const require_file = require("../file-BEndQUN1.cjs");
5
5
  let crypto = require("crypto");
6
6
  let path = require("path");
@@ -1672,6 +1672,8 @@ var UnixSocketPubSub = class extends require_output_helpers.PubSub {
1672
1672
  }
1673
1673
  };
1674
1674
  exports.CachingPubSub = require_output_helpers.CachingPubSub;
1675
+ exports.DEFAULT_RUN_LOG_TTL_MS = require_output_helpers.DEFAULT_RUN_LOG_TTL_MS;
1676
+ exports.DEFAULT_THREAD_STREAM_LOG_TTL_MS = require_output_helpers.DEFAULT_THREAD_STREAM_LOG_TTL_MS;
1675
1677
  exports.EventEmitterPubSub = require_output_helpers.EventEmitterPubSub;
1676
1678
  exports.MAX_LOCAL_REDELIVERIES = MAX_LOCAL_REDELIVERIES;
1677
1679
  exports.NoopLeaseProvider = require_output_helpers.NoopLeaseProvider;
@@ -1682,6 +1684,7 @@ exports.UnixSocketPubSub = UnixSocketPubSub;
1682
1684
  exports.cachedLogTtlMs = require_output_helpers.cachedLogTtlMs;
1683
1685
  exports.isLeaseProvider = require_output_helpers.isLeaseProvider;
1684
1686
  exports.isRunLocalTopic = require_output_helpers.isRunLocalTopic;
1687
+ exports.streamTopicIdleTtlMs = require_output_helpers.streamTopicIdleTtlMs;
1685
1688
  exports.toCachedLogFrame = require_output_helpers.toCachedLogFrame;
1686
1689
  exports.withAck = require_output_helpers.withAck;
1687
1690
  exports.withCaching = require_output_helpers.withCaching;
@@ -1,4 +1,4 @@
1
- import { _ as PubSub, a as rehydrateError, c as RUN_LOG_TTL_MS, d as toCachedLogFrame, g as NoopLeaseProvider, h as EventEmitterPubSub, i as withCaching, l as cachedLogTtlMs, n as PublisherQueueLimitError, o as serializeError, r as CachingPubSub, s as RUN_LOCAL_TOPIC_PREFIXES, t as DefaultStepResult, u as isRunLocalTopic, v as isLeaseProvider, y as withAck } from "../output-helpers-CedRCE17.js";
1
+ import { S as withAck, _ as serializeError, a as DEFAULT_RUN_LOG_TTL_MS, b as PubSub, c as RUN_LOG_TTL_MS, d as streamTopicIdleTtlMs, f as toCachedLogFrame, g as rehydrateError, i as withCaching, l as cachedLogTtlMs, n as PublisherQueueLimitError, o as DEFAULT_THREAD_STREAM_LOG_TTL_MS, r as CachingPubSub, s as RUN_LOCAL_TOPIC_PREFIXES, t as DefaultStepResult, u as isRunLocalTopic, v as EventEmitterPubSub, x as isLeaseProvider, y as NoopLeaseProvider } from "../output-helpers-CVzhy1Y0.js";
2
2
  import { n as DefaultGeneratedFileWithType, t as DefaultGeneratedFile } from "../file-DGZrR5f7.js";
3
3
  import { createHash } from "crypto";
4
4
  import { basename, dirname, join, sep } from "path";
@@ -1668,4 +1668,4 @@ var UnixSocketPubSub = class extends PubSub {
1668
1668
  else if (frame.type === "publish") await this.#publishFromBroker(frame.topic, frame.event);
1669
1669
  }
1670
1670
  };
1671
- export { CachingPubSub, EventEmitterPubSub, MAX_LOCAL_REDELIVERIES, NoopLeaseProvider, PubSub, RUN_LOCAL_TOPIC_PREFIXES, RUN_LOG_TTL_MS, UnixSocketPubSub, cachedLogTtlMs, isLeaseProvider, isRunLocalTopic, toCachedLogFrame, withAck, withCaching };
1671
+ export { CachingPubSub, DEFAULT_RUN_LOG_TTL_MS, DEFAULT_THREAD_STREAM_LOG_TTL_MS, EventEmitterPubSub, MAX_LOCAL_REDELIVERIES, NoopLeaseProvider, PubSub, RUN_LOCAL_TOPIC_PREFIXES, RUN_LOG_TTL_MS, UnixSocketPubSub, cachedLogTtlMs, isLeaseProvider, isRunLocalTopic, streamTopicIdleTtlMs, toCachedLogFrame, withAck, withCaching };
@@ -22,18 +22,64 @@ export declare const RUN_LOCAL_TOPIC_PREFIXES: readonly ['workflow.events.v2.'];
22
22
  */
23
23
  export declare function isRunLocalTopic(topic: string): boolean;
24
24
  /**
25
- * How long a durable run's stream log (`agent.stream.<runId>`) is retained.
26
- *
27
- * The log is what `observe({ offset })` replays from, and its counter numbers
28
- * every frame. A run parked on a tool approval can wait far longer than a
29
- * cache's default TTL; if the log expired meanwhile, numbering would restart at
30
- * 0 while an attached observer still held the old cursor. The run's suspension
31
- * frame is its last append before it parks, so stamping this on every append
32
- * covers the parked window. Run cleanup deletes the log when the run ends.
25
+ * How long a run's stream log (`agent.stream.<runId>`) is retained after its
26
+ * last append, by default.
27
+ *
28
+ * This MUST match `AGENT_RUN_RECORD_TTL_MS` (`agent/streams/run-records.ts`;
29
+ * events cannot import from agent). A run parked on a tool approval appends
30
+ * nothing while it waits, so its retention is never refreshed — and its
31
+ * ownership record authorizes `observe()` for 24 hours. A log that expires
32
+ * sooner leaves that window authorized but empty: the observer hangs without
33
+ * ever receiving the approval request it is waiting to act on. The two
34
+ * lifetimes expire together, so an authorized run always still has its
35
+ * events.
36
+ *
37
+ * The log is a delivery buffer, not the system of record: messages and
38
+ * suspension snapshots live in storage. An expired log is recreated on the
39
+ * next append with indices past every index it could have issued before (see
40
+ * `MastraServerCache.listPushIndexed`), so attached observers resynchronise
41
+ * instead of dropping frames. Run cleanup deletes the log when the run ends;
42
+ * this retention bounds it when cleanup never runs.
33
43
  */
44
+ export declare const DEFAULT_RUN_LOG_TTL_MS: number;
45
+ /** @deprecated Use {@link DEFAULT_RUN_LOG_TTL_MS}, or configure `runLogTtlMs` on `CachingPubSub`. */
34
46
  export declare const RUN_LOG_TTL_MS: number;
47
+ /**
48
+ * How long a thread's event stream (`agent.thread-stream.<key>`) is retained
49
+ * after its last append, by default. Active threads re-stamp it on every
50
+ * publish; storage holds a thread's saved runs, and the runtime trims saved
51
+ * output off the topic, so an idle thread's leftover tail only needs to
52
+ * survive a reconnect window.
53
+ */
54
+ export declare const DEFAULT_THREAD_STREAM_LOG_TTL_MS: number;
55
+ /** Per-topic retention used when stamping a cached log's TTL on append. */
56
+ export interface CachedLogTtls {
57
+ /** Retention for `agent.stream.<runId>` logs. Defaults to {@link DEFAULT_RUN_LOG_TTL_MS}. */
58
+ runLogTtlMs?: number;
59
+ /** Retention for `agent.thread-stream.<key>` logs. Defaults to {@link DEFAULT_THREAD_STREAM_LOG_TTL_MS}. */
60
+ threadStreamLogTtlMs?: number;
61
+ }
35
62
  /** Minimum retention for a topic's cached log, or `undefined` for the cache default. */
36
- export declare function cachedLogTtlMs(topic: string): number | undefined;
63
+ export declare function cachedLogTtlMs(topic: string, ttls?: CachedLogTtls): number | undefined;
64
+ /**
65
+ * Idle retention for a topic that belongs to a single run or thread, or
66
+ * `undefined` for a topic a transport should bound with its own backstop.
67
+ *
68
+ * A persistent transport (Redis/Valkey Streams) needs a long idle backstop
69
+ * for work-queue topics, whose grouped consumers must still find their
70
+ * backlog after an outage. A run's topics have no such consumer: they are
71
+ * fan-out, their replay history is bounded by {@link cachedLogTtlMs} in the
72
+ * server cache, and the run record that authorizes reading them expires in a
73
+ * day. So they share the retention of the cached log they mirror — a day for
74
+ * run topics, matching the record (a run parked on an approval must stay
75
+ * readable for as long as it is authorizable), and an hour for thread
76
+ * streams. Holding them for the transport's multi-day backstop instead just
77
+ * leaves finished runs in the store for days.
78
+ *
79
+ * Run cleanup deletes these topics promptly when the owning process survives;
80
+ * this retention is what bounds them when it does not.
81
+ */
82
+ export declare function streamTopicIdleTtlMs(topic: string, ttls?: CachedLogTtls): number | undefined;
37
83
  /**
38
84
  * The copy of `event` a run's cached log keeps.
39
85
  *
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_state_processor = require("../state-processor-kRNZ38Nf.cjs");
3
3
  const require_tools = require("../tools-CGF5Ik6j.cjs");
4
- const require_agent_controller = require("../agent-controller-CrQ9OF80.cjs");
4
+ const require_agent_controller = require("../agent-controller-DSnFynpa.cjs");
5
5
  // src/harness/index.ts
6
6
  /**
7
7
  * @deprecated Backwards-compatibility entrypoint.
@@ -1,6 +1,6 @@
1
1
  import { f as taskCheckTool, h as taskWriteTool, m as taskUpdateTool, o as assignTaskIds, p as taskCompleteTool } from "../state-processor-B9kxpM53.js";
2
2
  import { s as askUserTool, t as submitPlanTool } from "../tools-CDfyMpzN.js";
3
- import { a as Session, c as defaultDisplayState, l as defaultOMProgressState, n as parseSubagentMeta, t as AgentController } from "../agent-controller-SSlKzE6A.js";
3
+ import { a as Session, c as defaultDisplayState, l as defaultOMProgressState, n as parseSubagentMeta, t as AgentController } from "../agent-controller-B8LoFdtu.js";
4
4
  // src/harness/index.ts
5
5
  /**
6
6
  * @deprecated Backwards-compatibility entrypoint.
package/dist/index.cjs CHANGED
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_mastra = require("./mastra-D4hvfuxX.cjs");
2
+ const require_mastra = require("./mastra-HSmofHEJ.cjs");
3
3
  exports.Mastra = require_mastra.Mastra;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export { t as Mastra } from "./mastra-CigBrT7X.js";
1
+ export { t as Mastra } from "./mastra-CUGfgEpZ.js";
@@ -10,21 +10,51 @@ var MastraServerCache = class extends MastraBase {
10
10
  }
11
11
  /**
12
12
  * Atomically allocate the next index from `counterKey` and append `value`
13
- * (with `index` set to the 0-based allocated index) to the list at `listKey`.
13
+ * (with `index` set to the allocated index) to the list at `listKey`.
14
14
  * Returns the assigned index.
15
15
  *
16
- * The list and its counter must expire together: a counter that outlives its
17
- * list restarts at 0 while subscribers still expect the old numbering, and a
18
- * counter that expires first would start reusing indices already in the list.
19
- * Every append refreshes both keys to the same deadline.
16
+ * Indices are opaque cursors — not list positions, and not dense. Within
17
+ * one log's life they strictly increase and consecutive appends get
18
+ * consecutive indices; readers resume from `index + 1`, not from a frame
19
+ * count. A log recreated after its predecessor expired or was evicted
20
+ * should avoid reissuing an index a subscriber may still hold — but no
21
+ * implementation makes that absolute, so readers must not depend on it.
22
+ *
23
+ * How an implementation approaches it is up to it. The built-in Redis,
24
+ * Valkey and in-memory caches seed a counter they create from the clock in
25
+ * epoch MICROseconds — microseconds because a hot log appends faster than
26
+ * the millisecond clock advances, and an index must not outrun the next
27
+ * seed. Epoch microseconds stay well inside Number.MAX_SAFE_INTEGER (2^53
28
+ * ≈ year 2255). `ConvexServerCache` instead allocates `max(counter, list
29
+ * length)` inside one transaction. It and the generic fallback restart
30
+ * numbering from 0 when both list and counter are gone.
31
+ * A clock seed is only as monotonic as the clock: recreating a log
32
+ * within the seed's resolution, or after the clock moves backwards, can
33
+ * still repeat an index. The subscriber's fallback detection only
34
+ * recognises a log that restarts at 0 (the dense case); a log reseeded
35
+ * below a subscriber's cursor without reaching 0 goes unnoticed until that
36
+ * reader reattaches.
37
+ *
38
+ * The list and its counter must expire together: a counter that expires
39
+ * before its list would reuse indices already in the list. Every append
40
+ * refreshes both keys to the same deadline.
20
41
  *
21
42
  * @param ttlMs - Minimum lifetime for both keys, in milliseconds. A cache
22
- * whose own TTL is longer, or that never expires, keeps that instead. When
23
- * omitted, the cache's default TTL applies.
43
+ * whose own TTL is longer keeps that instead. An explicit `ttlMs` applies
44
+ * even when the cache's default expiry is disabled: the caller is stating
45
+ * a retention bound for this log, and a log that never expires is never
46
+ * reclaimed. When omitted, the cache's default TTL applies.
47
+ *
48
+ * The default implementation preserves the original zero-based numbering
49
+ * and composes `increment()` + `listPush()`. It is NOT atomic and ignores
50
+ * `ttlMs`. Concurrent appends can land out of index order, causing attached
51
+ * readers and offset replays to miss frames; an old offset can also skip
52
+ * a recreated log whose numbering restarted below it.
24
53
  *
25
- * The default implementation composes `increment()` + `listPush()` (two
26
- * round-trips) and is therefore NOT atomic, and ignores `ttlMs`. Overrides
27
- * should perform both steps in one server-side operation.
54
+ * Do not seed this fallback with `set()`: it can overwrite concurrent
55
+ * allocations, and a stored numeric value need not be an incrementable
56
+ * counter (Convex stores them as different types). Overrides should
57
+ * initialize the counter, allocate and append in one server-side operation.
28
58
  */
29
59
  async listPushIndexed(listKey, counterKey, value, _ttlMs) {
30
60
  const index = await this.increment(counterKey) - 1;
@@ -103,11 +133,11 @@ var InMemoryServerCache = class extends MastraServerCache {
103
133
  async listPushIndexed(listKey, counterKey, value, ttlMs) {
104
134
  const existingCounter = this.cache.get(counterKey);
105
135
  if (existingCounter !== void 0 && typeof existingCounter !== "number") throw new Error(`${counterKey} exists but is not a number`);
106
- const index = typeof existingCounter === "number" ? existingCounter : 0;
136
+ const index = typeof existingCounter === "number" ? existingCounter : Date.now() * 1e3;
107
137
  const existingList = this.cache.get(listKey);
108
138
  if (existingList !== void 0 && !Array.isArray(existingList)) throw new Error(`${listKey} exists but is not an array`);
109
139
  const list = Array.isArray(existingList) ? existingList : [];
110
- const ttl = this.ttlMs > 0 ? Math.max(this.ttlMs, ttlMs ?? 0) : Infinity;
140
+ const ttl = ttlMs !== void 0 && ttlMs > 0 ? Math.max(this.ttlMs, ttlMs) : this.ttlMs > 0 ? this.ttlMs : Infinity;
111
141
  this.cache.set(counterKey, index + 1, { ttl });
112
142
  list.push({
113
143
  ...value,
@@ -10,21 +10,51 @@ var MastraServerCache = class extends require_base.MastraBase {
10
10
  }
11
11
  /**
12
12
  * Atomically allocate the next index from `counterKey` and append `value`
13
- * (with `index` set to the 0-based allocated index) to the list at `listKey`.
13
+ * (with `index` set to the allocated index) to the list at `listKey`.
14
14
  * Returns the assigned index.
15
15
  *
16
- * The list and its counter must expire together: a counter that outlives its
17
- * list restarts at 0 while subscribers still expect the old numbering, and a
18
- * counter that expires first would start reusing indices already in the list.
19
- * Every append refreshes both keys to the same deadline.
16
+ * Indices are opaque cursors — not list positions, and not dense. Within
17
+ * one log's life they strictly increase and consecutive appends get
18
+ * consecutive indices; readers resume from `index + 1`, not from a frame
19
+ * count. A log recreated after its predecessor expired or was evicted
20
+ * should avoid reissuing an index a subscriber may still hold — but no
21
+ * implementation makes that absolute, so readers must not depend on it.
22
+ *
23
+ * How an implementation approaches it is up to it. The built-in Redis,
24
+ * Valkey and in-memory caches seed a counter they create from the clock in
25
+ * epoch MICROseconds — microseconds because a hot log appends faster than
26
+ * the millisecond clock advances, and an index must not outrun the next
27
+ * seed. Epoch microseconds stay well inside Number.MAX_SAFE_INTEGER (2^53
28
+ * ≈ year 2255). `ConvexServerCache` instead allocates `max(counter, list
29
+ * length)` inside one transaction. It and the generic fallback restart
30
+ * numbering from 0 when both list and counter are gone.
31
+ * A clock seed is only as monotonic as the clock: recreating a log
32
+ * within the seed's resolution, or after the clock moves backwards, can
33
+ * still repeat an index. The subscriber's fallback detection only
34
+ * recognises a log that restarts at 0 (the dense case); a log reseeded
35
+ * below a subscriber's cursor without reaching 0 goes unnoticed until that
36
+ * reader reattaches.
37
+ *
38
+ * The list and its counter must expire together: a counter that expires
39
+ * before its list would reuse indices already in the list. Every append
40
+ * refreshes both keys to the same deadline.
20
41
  *
21
42
  * @param ttlMs - Minimum lifetime for both keys, in milliseconds. A cache
22
- * whose own TTL is longer, or that never expires, keeps that instead. When
23
- * omitted, the cache's default TTL applies.
43
+ * whose own TTL is longer keeps that instead. An explicit `ttlMs` applies
44
+ * even when the cache's default expiry is disabled: the caller is stating
45
+ * a retention bound for this log, and a log that never expires is never
46
+ * reclaimed. When omitted, the cache's default TTL applies.
47
+ *
48
+ * The default implementation preserves the original zero-based numbering
49
+ * and composes `increment()` + `listPush()`. It is NOT atomic and ignores
50
+ * `ttlMs`. Concurrent appends can land out of index order, causing attached
51
+ * readers and offset replays to miss frames; an old offset can also skip
52
+ * a recreated log whose numbering restarted below it.
24
53
  *
25
- * The default implementation composes `increment()` + `listPush()` (two
26
- * round-trips) and is therefore NOT atomic, and ignores `ttlMs`. Overrides
27
- * should perform both steps in one server-side operation.
54
+ * Do not seed this fallback with `set()`: it can overwrite concurrent
55
+ * allocations, and a stored numeric value need not be an incrementable
56
+ * counter (Convex stores them as different types). Overrides should
57
+ * initialize the counter, allocate and append in one server-side operation.
28
58
  */
29
59
  async listPushIndexed(listKey, counterKey, value, _ttlMs) {
30
60
  const index = await this.increment(counterKey) - 1;
@@ -103,11 +133,11 @@ var InMemoryServerCache = class extends MastraServerCache {
103
133
  async listPushIndexed(listKey, counterKey, value, ttlMs) {
104
134
  const existingCounter = this.cache.get(counterKey);
105
135
  if (existingCounter !== void 0 && typeof existingCounter !== "number") throw new Error(`${counterKey} exists but is not a number`);
106
- const index = typeof existingCounter === "number" ? existingCounter : 0;
136
+ const index = typeof existingCounter === "number" ? existingCounter : Date.now() * 1e3;
107
137
  const existingList = this.cache.get(listKey);
108
138
  if (existingList !== void 0 && !Array.isArray(existingList)) throw new Error(`${listKey} exists but is not an array`);
109
139
  const list = Array.isArray(existingList) ? existingList : [];
110
- const ttl = this.ttlMs > 0 ? Math.max(this.ttlMs, ttlMs ?? 0) : Infinity;
140
+ const ttl = ttlMs !== void 0 && ttlMs > 0 ? Math.max(this.ttlMs, ttlMs) : this.ttlMs > 0 ? this.ttlMs : Infinity;
111
141
  this.cache.set(counterKey, index + 1, { ttl });
112
142
  list.push({
113
143
  ...value,
@@ -43,12 +43,24 @@ type Change = {
43
43
  kind: K;
44
44
  }>, 'knowledgeId' | 'at'>;
45
45
  }[KnowledgeChangeEvent['kind']];
46
+ /** The adapter's own store or transaction view under one {@link emitKnowledgeChanges} returned. Writes through it emit nothing. */
47
+ export declare function unwrapKnowledgeStorage(storage: KnowledgeStorage): KnowledgeStorage;
46
48
  /**
47
- * Wraps `storage` so each page-store write in {@link WRITES} calls `emit` after it resolves. Every
48
- * other member passes through, bound to the real store so adapters' private fields keep working.
49
- * Nothing extra happens while `listening()` is false. Describing or emitting an event never fails a
50
- * write that committed: errors go to `onError`.
49
+ * Wraps `storage` so each page-store write in {@link WRITES} calls `emit` after it resolves. Writes
50
+ * on a `transaction` view are held until that transaction commits and dropped if it rolls back; a
51
+ * nested `transaction` hands its writes to the outer one when it succeeds. While a nested
52
+ * transaction is open, writes through any view of that transaction chain belong to the innermost
53
+ * one (they run inside its savepoint), so they are kept or dropped with it. A chain tracks one
54
+ * innermost transaction, so concurrent nested transactions opened in the same chain are not
55
+ * supported: their events would cross. Every other member passes
56
+ * through, bound to the real store so adapters' private fields keep working. Nothing extra happens
57
+ * while `listening()` is false. Describing or emitting an event never fails a write that committed:
58
+ * errors go to `onError`.
51
59
  */
52
- export declare function emitKnowledgeChanges(storage: KnowledgeStorage, emit: (change: Change) => void, listening: () => boolean, onError: (error: unknown) => void): KnowledgeStorage;
60
+ export declare function emitKnowledgeChanges(storage: KnowledgeStorage, emit: (change: Change) => void, listening: () => boolean, onError: (error: unknown) => void,
61
+ /** Shared by every view of one top-level transaction: where their writes report now. */
62
+ chain?: {
63
+ report: (change: Change) => void;
64
+ }): KnowledgeStorage;
53
65
  export {};
54
66
  //# sourceMappingURL=changes.d.ts.map
@@ -21,6 +21,12 @@ export interface RunKnowledgeImportOptions {
21
21
  maxPasses?: number;
22
22
  /** Ops per flush. Default 200. */
23
23
  bufferSize?: number;
24
+ /**
25
+ * How long the oldest buffered op may wait before it is sent without waiting for a full buffer.
26
+ * A timed flush sends items only; the cursor is still saved only by `ctx.state.set`. A positive
27
+ * number of milliseconds, at most 2147483647. Default 30 seconds.
28
+ */
29
+ flushAfterMs?: number;
24
30
  /** Default 30 seconds. */
25
31
  heartbeatMs?: number;
26
32
  /** Resends of one flush or finish after a 5xx or network error. Default 8. */