@mastra/core 1.86.0 → 1.87.0-alpha.1

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 (481) hide show
  1. package/dist/_types/@ai-sdk_anthropic@3.0.137/dist/index.d.ts +2 -2
  2. package/dist/_types/@ai-sdk_google@3.0.140/dist/index.d.ts +2 -2
  3. package/dist/_types/@ai-sdk_openai@3.0.135/dist/index.d.ts +2 -2
  4. package/dist/a2a/index.cjs +1 -1
  5. package/dist/a2a/index.js +1 -1
  6. package/dist/agent/durable/constants.d.ts +2 -0
  7. package/dist/agent/durable/evented-execution.d.ts +7 -0
  8. package/dist/agent/durable/execution-engine.d.ts +1 -0
  9. package/dist/agent/durable/execution-fence.d.ts +2 -0
  10. package/dist/agent/durable/index.cjs +4 -1
  11. package/dist/agent/durable/index.d.ts +2 -1
  12. package/dist/agent/durable/index.js +2 -2
  13. package/dist/agent/durable/run-registry.d.ts +13 -0
  14. package/dist/agent/durable/segment-spans.d.ts +54 -1
  15. package/dist/agent/durable/types.d.ts +12 -0
  16. package/dist/agent/durable/workflows/durable-loop-builder.d.ts +57 -2
  17. package/dist/agent/durable/workflows/finalize-run.d.ts +4 -1
  18. package/dist/agent/durable/workflows/shared/index.d.ts +1 -1
  19. package/dist/agent/durable/workflows/shared/reported-cost.d.ts +7 -0
  20. package/dist/agent/durable/workflows/shared/schemas.d.ts +16 -1
  21. package/dist/agent/durable/workflows/shared/tool-call-concurrency.d.ts +6 -0
  22. package/dist/agent/durable/workflows/steps/llm-execution.d.ts +5 -0
  23. package/dist/agent/durable/workflows/steps/llm-mapping.d.ts +6 -0
  24. package/dist/agent/durable/workflows/steps/tool-call.d.ts +20 -0
  25. package/dist/agent/index.cjs +3 -3
  26. package/dist/agent/index.js +3 -3
  27. package/dist/agent/message-list/index.cjs +1 -1
  28. package/dist/agent/message-list/index.js +1 -1
  29. package/dist/agent/request-context-snapshot.d.ts +3 -2
  30. package/dist/agent/streams/run-records.d.ts +9 -1
  31. package/dist/agent/thread-stream-runtime.d.ts +3 -1
  32. package/dist/agent-builder/ee/index.cjs +1 -1
  33. package/dist/agent-builder/ee/index.js +1 -1
  34. package/dist/agent-controller/index.cjs +1 -1
  35. package/dist/agent-controller/index.js +1 -1
  36. package/dist/agent-controller/session-run-engine.d.ts +5 -2
  37. package/dist/agent-controller/session.d.ts +2 -0
  38. package/dist/agent-controller/types.d.ts +23 -0
  39. package/dist/{agent-controller-D_5Dc8d3.cjs → agent-controller-BTIxiD1u.cjs} +44 -14
  40. package/dist/{agent-controller-D5EKeS1H.js → agent-controller-C1bK0CXm.js} +44 -14
  41. package/dist/background-tasks/index.cjs +1 -1
  42. package/dist/background-tasks/index.js +1 -1
  43. package/dist/background-tasks/manager.d.ts +4 -1
  44. package/dist/{background-tasks-idnlMbqD.js → background-tasks-BbVsBghi.js} +139 -51
  45. package/dist/{background-tasks-BVxb0VGV.cjs → background-tasks-CVl6e0Jo.cjs} +139 -51
  46. package/dist/browser/index.cjs +1 -1
  47. package/dist/browser/index.js +1 -1
  48. package/dist/{builder-CBWoYNck.cjs → builder-BRJPSTig.cjs} +2 -2
  49. package/dist/{builder-Cuq-j2w3.js → builder-C8XzrtBQ.js} +2 -2
  50. package/dist/cache/base.d.ts +40 -10
  51. package/dist/cache/index.cjs +1 -1
  52. package/dist/cache/index.js +1 -1
  53. package/dist/capabilities/302ai.json +213 -213
  54. package/dist/capabilities/abliteratedllm.json +30 -30
  55. package/dist/capabilities/abliteration-ai.json +6 -6
  56. package/dist/capabilities/above.json +19 -19
  57. package/dist/capabilities/adaption.json +16 -16
  58. package/dist/capabilities/adzuki.json +19 -19
  59. package/dist/capabilities/agentrouter.json +11 -11
  60. package/dist/capabilities/agnes.json +2 -2
  61. package/dist/capabilities/ai-router.json +6 -6
  62. package/dist/capabilities/aiand.json +20 -20
  63. package/dist/capabilities/aigrow.json +14 -14
  64. package/dist/capabilities/aimlapi.json +146 -150
  65. package/dist/capabilities/aixy.json +21 -21
  66. package/dist/capabilities/aki-io.json +14 -14
  67. package/dist/capabilities/alibaba-cn.json +96 -96
  68. package/dist/capabilities/alibaba-coding-plan-cn.json +4 -4
  69. package/dist/capabilities/alibaba-coding-plan.json +4 -4
  70. package/dist/capabilities/alibaba-token-plan-cn.json +50 -50
  71. package/dist/capabilities/alibaba-token-plan.json +49 -49
  72. package/dist/capabilities/alibaba.json +69 -69
  73. package/dist/capabilities/ambient.json +12 -12
  74. package/dist/capabilities/amd.json +8 -8
  75. package/dist/capabilities/anthropic.json +43 -43
  76. package/dist/capabilities/anyapi.json +17 -17
  77. package/dist/capabilities/apiko.json +2 -2
  78. package/dist/capabilities/arcee.json +11 -11
  79. package/dist/capabilities/augure.json +6 -6
  80. package/dist/capabilities/auriko.json +24 -24
  81. package/dist/capabilities/bailing.json +5 -5
  82. package/dist/capabilities/baseten.json +35 -35
  83. package/dist/capabilities/bee.json +5 -5
  84. package/dist/capabilities/berget.json +8 -8
  85. package/dist/capabilities/bothub.json +15 -15
  86. package/dist/capabilities/boundless.json +36 -36
  87. package/dist/capabilities/bumo.json +47 -47
  88. package/dist/capabilities/byteplus.json +30 -30
  89. package/dist/capabilities/cerebras.json +4 -4
  90. package/dist/capabilities/cheapaimodel.json +10 -10
  91. package/dist/capabilities/cheapest-token.json +32 -32
  92. package/dist/capabilities/chutes.json +11 -14
  93. package/dist/capabilities/cline-pass.json +33 -33
  94. package/dist/capabilities/cloudcode.json +9 -9
  95. package/dist/capabilities/cloudferro-sherlock.json +4 -4
  96. package/dist/capabilities/cloudflare-workers-ai.json +17 -78
  97. package/dist/capabilities/commandcode.json +155 -155
  98. package/dist/capabilities/concentrate.json +286 -277
  99. package/dist/capabilities/cortecs.json +114 -114
  100. package/dist/capabilities/crossmodel.json +189 -189
  101. package/dist/capabilities/crusoe.json +8 -8
  102. package/dist/capabilities/daoxe.json +6 -6
  103. package/dist/capabilities/databricks.json +129 -129
  104. package/dist/capabilities/deepinfra.json +132 -69
  105. package/dist/capabilities/deepseek.json +4 -4
  106. package/dist/capabilities/digitalocean.json +112 -112
  107. package/dist/capabilities/dothoosh.json +31 -31
  108. package/dist/capabilities/doubleword.json +26 -26
  109. package/dist/capabilities/edenai.json +902 -1760
  110. package/dist/capabilities/empiriolabs.json +156 -158
  111. package/dist/capabilities/engy.json +18 -18
  112. package/dist/capabilities/entrim.json +6 -6
  113. package/dist/capabilities/evroc.json +16 -16
  114. package/dist/capabilities/ezkielyna.json +7 -7
  115. package/dist/capabilities/fastrouter.json +73 -73
  116. package/dist/capabilities/fireworks-ai.json +86 -65
  117. package/dist/capabilities/freemodel.json +24 -24
  118. package/dist/capabilities/friendli.json +2 -2
  119. package/dist/capabilities/frogbot.json +96 -96
  120. package/dist/capabilities/gisoo.json +17 -17
  121. package/dist/capabilities/gmicloud.json +10 -10
  122. package/dist/capabilities/google.json +50 -50
  123. package/dist/capabilities/graphn.json +12 -12
  124. package/dist/capabilities/greenpt.json +35 -35
  125. package/dist/capabilities/groq.json +8 -8
  126. package/dist/capabilities/helicone.json +77 -77
  127. package/dist/capabilities/hostinger-router.json +11 -11
  128. package/dist/capabilities/hpc-ai.json +14 -14
  129. package/dist/capabilities/huawei-maas.json +16 -16
  130. package/dist/capabilities/hubris.json +30 -30
  131. package/dist/capabilities/huggingface.json +101 -91
  132. package/dist/capabilities/hyper.json +24 -24
  133. package/dist/capabilities/impossibl.json +135 -135
  134. package/dist/capabilities/inception.json +2 -2
  135. package/dist/capabilities/inceptron.json +8 -8
  136. package/dist/capabilities/inco.json +4 -4
  137. package/dist/capabilities/infer.json +13 -13
  138. package/dist/capabilities/inferall.json +4 -4
  139. package/dist/capabilities/inference-coop.json +9 -9
  140. package/dist/capabilities/inferenceapis.json +26 -26
  141. package/dist/capabilities/inferris.json +3 -3
  142. package/dist/capabilities/infersia.json +14 -14
  143. package/dist/capabilities/inferx.json +3 -3
  144. package/dist/capabilities/infomaniak.json +2 -2
  145. package/dist/capabilities/io-net.json +5 -5
  146. package/dist/capabilities/iteracompute.json +55 -55
  147. package/dist/capabilities/jad-ai.json +2 -2
  148. package/dist/capabilities/jalapeno.json +11 -11
  149. package/dist/capabilities/jiekou.json +64 -64
  150. package/dist/capabilities/joingonka.json +4 -4
  151. package/dist/capabilities/jzstoken.json +40 -40
  152. package/dist/capabilities/keln.json +25 -25
  153. package/dist/capabilities/kenari.json +123 -123
  154. package/dist/capabilities/kilo.json +639 -623
  155. package/dist/capabilities/kimi-code-plan-cn.json +4 -4
  156. package/dist/capabilities/kimi-code-plan-global.json +4 -4
  157. package/dist/capabilities/kitani.json +6 -6
  158. package/dist/capabilities/klavo.json +23 -23
  159. package/dist/capabilities/korouter.json +31 -31
  160. package/dist/capabilities/kunavo.json +10 -10
  161. package/dist/capabilities/liquid.json +10 -10
  162. package/dist/capabilities/lithosai.json +2 -2
  163. package/dist/capabilities/llmgateway-providers.json +895 -886
  164. package/dist/capabilities/llmgateway.json +344 -336
  165. package/dist/capabilities/llmtr.json +26 -26
  166. package/dist/capabilities/logits.json +2 -2
  167. package/dist/capabilities/longcat.json +2 -2
  168. package/dist/capabilities/lowrouter.json +49 -49
  169. package/dist/capabilities/lyceum.json +11 -11
  170. package/dist/capabilities/melious.json +12 -12
  171. package/dist/capabilities/merge-gateway.json +259 -258
  172. package/dist/capabilities/meta.json +8 -8
  173. package/dist/capabilities/minimax-cn-coding-plan.json +2 -2
  174. package/dist/capabilities/minimax-cn.json +5 -5
  175. package/dist/capabilities/minimax-coding-plan.json +2 -2
  176. package/dist/capabilities/minimax.json +5 -5
  177. package/dist/capabilities/mistral.json +18 -18
  178. package/dist/capabilities/mixlayer.json +5 -5
  179. package/dist/capabilities/modal.json +10 -10
  180. package/dist/capabilities/model-oracle-ai.json +26 -26
  181. package/dist/capabilities/modelis.json +13 -13
  182. package/dist/capabilities/modelscope.json +2 -2
  183. package/dist/capabilities/modular.json +8 -8
  184. package/dist/capabilities/moneo.json +13 -13
  185. package/dist/capabilities/moonshotai-cn.json +3 -3
  186. package/dist/capabilities/moonshotai.json +3 -3
  187. package/dist/capabilities/morph.json +11 -11
  188. package/dist/capabilities/munito-eu.json +6 -6
  189. package/dist/capabilities/munito.json +10 -10
  190. package/dist/capabilities/nan.json +24 -24
  191. package/dist/capabilities/nano-gpt.json +583 -548
  192. package/dist/capabilities/nearai.json +82 -82
  193. package/dist/capabilities/nebius.json +33 -33
  194. package/dist/capabilities/neon.json +135 -135
  195. package/dist/capabilities/neuralwatt.json +37 -37
  196. package/dist/capabilities/nokeep.json +5 -5
  197. package/dist/capabilities/novita-ai.json +153 -153
  198. package/dist/capabilities/nvidia.json +25 -57
  199. package/dist/capabilities/oathbreaker.json +2 -2
  200. package/dist/capabilities/obscurify.json +27 -27
  201. package/dist/capabilities/oci.json +16 -7
  202. package/dist/capabilities/ofox.json +358 -358
  203. package/dist/capabilities/ollama-cloud.json +50 -50
  204. package/dist/capabilities/openai.json +79 -47
  205. package/dist/capabilities/opencode-go.json +88 -88
  206. package/dist/capabilities/openreason.json +5 -5
  207. package/dist/capabilities/openrouter.json +543 -533
  208. package/dist/capabilities/opper.json +28 -28
  209. package/dist/capabilities/orcarouter.json +238 -238
  210. package/dist/capabilities/outerlabs.json +30 -30
  211. package/dist/capabilities/ovhcloud.json +61 -7
  212. package/dist/capabilities/pareto.json +4 -4
  213. package/dist/capabilities/pendra.json +4 -4
  214. package/dist/capabilities/perplexity-agent.json +59 -59
  215. package/dist/capabilities/perplexity.json +2 -2
  216. package/dist/capabilities/phala.json +34 -34
  217. package/dist/capabilities/pioneer.json +26 -26
  218. package/dist/capabilities/poe.json +99 -99
  219. package/dist/capabilities/poolside.json +2 -2
  220. package/dist/capabilities/powerspring.json +12 -12
  221. package/dist/capabilities/primalabs.json +10 -10
  222. package/dist/capabilities/prime.json +117 -101
  223. package/dist/capabilities/privatemode-ai.json +11 -11
  224. package/dist/capabilities/proxystacks.json +6 -6
  225. package/dist/capabilities/qiniu-ai.json +13 -13
  226. package/dist/capabilities/refuseless.json +8 -8
  227. package/dist/capabilities/regolo-ai.json +11 -11
  228. package/dist/capabilities/requesty.json +171 -171
  229. package/dist/capabilities/ruapi.json +19 -19
  230. package/dist/capabilities/runcrate.json +17 -17
  231. package/dist/capabilities/runinfra.json +16 -16
  232. package/dist/capabilities/sakana.json +5 -5
  233. package/dist/capabilities/sambanova.json +6 -6
  234. package/dist/capabilities/sandbase.json +22 -22
  235. package/dist/capabilities/sarvam.json +12 -12
  236. package/dist/capabilities/scaleway.json +17 -17
  237. package/dist/capabilities/scnet-token-plan.json +14 -14
  238. package/dist/capabilities/scx-ai.json +29 -29
  239. package/dist/capabilities/sensenova.json +10 -10
  240. package/dist/capabilities/siliconflow-cn.json +58 -58
  241. package/dist/capabilities/siliconflow.json +61 -61
  242. package/dist/capabilities/snowflake-cortex.json +24 -24
  243. package/dist/capabilities/sokkan.json +9 -9
  244. package/dist/capabilities/sparrowcodes.json +18 -18
  245. package/dist/capabilities/standardcompute.json +94 -94
  246. package/dist/capabilities/steadyrouter.json +42 -42
  247. package/dist/capabilities/stepfun-ai-step-plan.json +6 -6
  248. package/dist/capabilities/stepfun-ai.json +5 -5
  249. package/dist/capabilities/stepfun-step-plan.json +5 -5
  250. package/dist/capabilities/stepfun.json +5 -5
  251. package/dist/capabilities/stepping-stone.json +20 -20
  252. package/dist/capabilities/superbot-gg.json +4 -4
  253. package/dist/capabilities/synthetic.json +12 -12
  254. package/dist/capabilities/synthorai.json +21 -21
  255. package/dist/capabilities/teamorouter.json +24 -24
  256. package/dist/capabilities/teapot-router.json +13 -13
  257. package/dist/capabilities/tencent-token-plan.json +56 -32
  258. package/dist/capabilities/tencent-tokenhub.json +43 -43
  259. package/dist/capabilities/tensorx.json +48 -48
  260. package/dist/capabilities/tenstorrent.json +2 -2
  261. package/dist/capabilities/the-grid-ai.json +33 -33
  262. package/dist/capabilities/thinkingmachines.json +78 -78
  263. package/dist/capabilities/tinfoil.json +10 -10
  264. package/dist/capabilities/toapis.json +2 -2
  265. package/dist/capabilities/togetherai.json +52 -50
  266. package/dist/capabilities/tokengo.json +19 -19
  267. package/dist/capabilities/tokenify.json +10 -10
  268. package/dist/capabilities/trustedrouter.json +5 -5
  269. package/dist/capabilities/trustedtokens.json +16 -16
  270. package/dist/capabilities/umans-ai-coding-plan.json +16 -16
  271. package/dist/capabilities/umans-ai.json +10 -10
  272. package/dist/capabilities/unrestricted.json +8 -8
  273. package/dist/capabilities/uplinkswitch.json +19 -19
  274. package/dist/capabilities/upstage.json +8 -8
  275. package/dist/capabilities/vancine.json +20 -20
  276. package/dist/capabilities/vercel.json +539 -539
  277. package/dist/capabilities/vivgrid.json +85 -85
  278. package/dist/capabilities/volcengine-coding-plan.json +36 -27
  279. package/dist/capabilities/volcengine.json +26 -26
  280. package/dist/capabilities/vultr.json +30 -30
  281. package/dist/capabilities/wafer.ai.json +19 -19
  282. package/dist/capabilities/wallaby.json +5 -5
  283. package/dist/capabilities/wally.json +8 -8
  284. package/dist/capabilities/wandb.json +19 -19
  285. package/dist/capabilities/watt.json +23 -23
  286. package/dist/capabilities/xai.json +7 -7
  287. package/dist/capabilities/xiaomi-token-plan-ams.json +2 -2
  288. package/dist/capabilities/xiaomi-token-plan-cn.json +2 -2
  289. package/dist/capabilities/xiaomi-token-plan-sgp.json +2 -2
  290. package/dist/capabilities/xiaomi.json +2 -2
  291. package/dist/capabilities/xpersona.json +12 -12
  292. package/dist/capabilities/xxapi.json +30 -30
  293. package/dist/capabilities/zai-coding-plan.json +17 -17
  294. package/dist/capabilities/zai.json +28 -26
  295. package/dist/capabilities/zenifra.json +27 -27
  296. package/dist/capabilities/zenmux.json +164 -164
  297. package/dist/capabilities/zerogpu.json +11 -11
  298. package/dist/capabilities/zhipuai-coding-plan.json +4 -4
  299. package/dist/capabilities/zhipuai.json +22 -22
  300. package/dist/capabilities/zro.json +3 -3
  301. package/dist/channels/agent-channels.d.ts +9 -1
  302. package/dist/channels/attach-file-tool.d.ts +22 -0
  303. package/dist/channels/formatting.d.ts +8 -0
  304. package/dist/channels/index.cjs +13 -2
  305. package/dist/channels/index.d.ts +11 -1
  306. package/dist/channels/index.js +3 -3
  307. package/dist/channels/reply-guidance-processor.d.ts +26 -0
  308. package/dist/channels/reply-mode.d.ts +66 -0
  309. package/dist/channels/reply-reminder-processor.d.ts +23 -0
  310. package/dist/channels/reply-tool.d.ts +43 -0
  311. package/dist/channels/thread-link-processor.d.ts +48 -0
  312. package/dist/channels/thread-lookup.d.ts +16 -0
  313. package/dist/channels/tool-announcement-processor.d.ts +29 -0
  314. package/dist/channels/types.d.ts +30 -3
  315. package/dist/{channels-D7bBM9xD.cjs → channels-Cl-pRrWB.cjs} +122 -1
  316. package/dist/{channels-DSOCNoab.js → channels-DegTNzaq.js} +99 -2
  317. package/dist/coding-agent/index.cjs +1 -1
  318. package/dist/coding-agent/index.js +1 -1
  319. package/dist/datasets/experiment/index.d.ts +1 -1
  320. package/dist/datasets/experiment/item.d.ts +4 -3
  321. package/dist/datasets/experiment/scorer.d.ts +34 -11
  322. package/dist/datasets/index.cjs +3 -2
  323. package/dist/datasets/index.js +3 -3
  324. package/dist/{dist-ByO0vuJJ-BjMue5_p.cjs → dist-CufwpBZM-CwERFaas.cjs} +4 -4
  325. package/dist/{dist-ByO0vuJJ-CCXLBnvJ.js → dist-CufwpBZM-DK14Qe0Z.js} +4 -4
  326. package/dist/docs/SKILL.md +2 -1
  327. package/dist/docs/assets/SOURCE_MAP.json +817 -817
  328. package/dist/docs/references/docs-agents-resumable-streams.md +15 -6
  329. package/dist/docs/references/docs-channels.md +43 -0
  330. package/dist/docs/references/docs-deployment-workers.md +3 -1
  331. package/dist/docs/references/docs-evals-experiments.md +13 -3
  332. package/dist/docs/references/docs-harness-background-tasks.md +4 -4
  333. package/dist/docs/references/docs-harness-durable-agents.md +39 -48
  334. package/dist/docs/references/docs-knowledge-importers.md +1 -1
  335. package/dist/docs/references/docs-mastra-platform-observability-overview.md +1 -1
  336. package/dist/docs/references/docs-sandbox-overview.md +1 -0
  337. package/dist/docs/references/docs-server-pubsub.md +1 -1
  338. package/dist/docs/references/docs-workflows-overview.md +67 -3
  339. package/dist/docs/references/integrations-agentic-ui-assistant-ui.md +2 -0
  340. package/dist/docs/references/integrations-frameworks-angular.md +39 -0
  341. package/dist/docs/references/integrations-frameworks-astro.md +5 -2
  342. package/dist/docs/references/integrations-frameworks-electron.md +40 -0
  343. package/dist/docs/references/integrations-frameworks-next-js.md +5 -2
  344. package/dist/docs/references/integrations-frameworks-nuxt.md +5 -2
  345. package/dist/docs/references/integrations-frameworks-sveltekit.md +5 -2
  346. package/dist/docs/references/integrations-frameworks-vite-react.md +40 -0
  347. package/dist/docs/references/integrations.md +3 -0
  348. package/dist/docs/references/reference-agent-controller-agent-controller-class.md +6 -0
  349. package/dist/docs/references/reference-agents-channels.md +1 -1
  350. package/dist/docs/references/reference-agents-durable-agent.md +5 -3
  351. package/dist/docs/references/reference-agents-generate.md +2 -0
  352. package/dist/docs/references/reference-channels-thread-link.md +67 -0
  353. package/dist/docs/references/reference-configuration.md +1 -1
  354. package/dist/docs/references/reference-core-mastra-class.md +2 -0
  355. package/dist/docs/references/reference-knowledge-knowledge-class.md +1 -1
  356. package/dist/docs/references/reference-knowledge-knowledge-tools.md +11 -5
  357. package/dist/docs/references/reference-pubsub-caching-pubsub.md +2 -2
  358. package/dist/docs/references/reference-pubsub-redis-streams.md +2 -2
  359. package/dist/docs/references/reference-pubsub-valkey-streams.md +2 -2
  360. package/dist/docs/references/reference-workers-overview.md +2 -0
  361. package/dist/docs/references/reference-workflows-workflow-methods-create-run.md +2 -0
  362. package/dist/docs/references/reference-workflows-workflow.md +2 -0
  363. package/dist/docs/references/reference-workspace-factory-sandbox.md +2 -1
  364. package/dist/docs/references/reference.md +2 -0
  365. package/dist/error/index.cjs +2 -1
  366. package/dist/error/index.d.ts +1 -1
  367. package/dist/error/index.js +2 -2
  368. package/dist/error/provider-error.d.ts +2 -1
  369. package/dist/{error-BLwEXqOK.js → error-BC9Au-22.js} +13 -1
  370. package/dist/{error-BdEvO8za.cjs → error-L1V4uUbd.cjs} +18 -0
  371. package/dist/evals/index.cjs +1 -1
  372. package/dist/evals/index.js +1 -1
  373. package/dist/evals/scoreTraces/index.cjs +1 -1
  374. package/dist/evals/scoreTraces/index.js +1 -1
  375. package/dist/events/caching-pubsub.d.ts +28 -0
  376. package/dist/events/index.cjs +4 -1
  377. package/dist/events/index.js +2 -2
  378. package/dist/events/topics.d.ts +55 -9
  379. package/dist/harness/index.cjs +1 -1
  380. package/dist/harness/index.js +1 -1
  381. package/dist/index.cjs +1 -1
  382. package/dist/index.js +1 -1
  383. package/dist/{inmemory-BDD0w8gx.js → inmemory-BK3zLwvM.js} +42 -12
  384. package/dist/{inmemory-fgR8sq-U.cjs → inmemory-Dc86VWGB.cjs} +42 -12
  385. package/dist/knowledge/changes.d.ts +17 -5
  386. package/dist/knowledge/importers/runner.d.ts +6 -0
  387. package/dist/knowledge/index.cjs +78 -16
  388. package/dist/knowledge/index.d.ts +2 -2
  389. package/dist/knowledge/index.js +78 -16
  390. package/dist/knowledge/search-snippet.d.ts +30 -0
  391. package/dist/llm/index.cjs +3 -3
  392. package/dist/llm/index.js +3 -3
  393. package/dist/llm/model/provider-types.generated.d.ts +8175 -8296
  394. package/dist/{llm-BOQR5g0t.cjs → llm-BKxlS9Kk.cjs} +3 -3
  395. package/dist/{llm-DMNEZIV9.js → llm-CMkzIFAk.js} +3 -3
  396. package/dist/loop/index.cjs +2 -2
  397. package/dist/loop/index.js +2 -2
  398. package/dist/{manager-BzNynLwT.js → manager-C-eQXmRq.js} +120 -70
  399. package/dist/{manager-CyCR9IpR.cjs → manager-CasaT35Q.cjs} +125 -69
  400. package/dist/mastra/index.cjs +1 -1
  401. package/dist/mastra/index.js +1 -1
  402. package/dist/{mastra-CqBmnzjM.js → mastra-5EEmN3Ok.js} +28 -18
  403. package/dist/{mastra-D2B01_gg.cjs → mastra-C7Tj4U8c.cjs} +28 -18
  404. package/dist/memory/index.cjs +3 -3
  405. package/dist/memory/index.js +3 -3
  406. package/dist/{message-list-Cj0Sq_JP.cjs → message-list-DfN9mWeN.cjs} +121 -121
  407. package/dist/{message-list-KRbg-TnI.js → message-list-wI71UGxk.js} +1 -1
  408. package/dist/{model-CrXDhcbw.cjs → model-9HA-W0tg.cjs} +1 -1
  409. package/dist/{model-3AeJKHLU.js → model-DCLUL-8a.js} +1 -1
  410. package/dist/{netlify-DTXLQiG1.cjs → netlify-Cq3H-A9I.cjs} +12 -12
  411. package/dist/{netlify-DUPSTzi6.js → netlify-DaWURNSU.js} +11 -11
  412. package/dist/notifications/index.cjs +1 -1
  413. package/dist/notifications/index.js +1 -1
  414. package/dist/observability/index.cjs +1 -0
  415. package/dist/observability/index.d.ts +1 -1
  416. package/dist/observability/index.js +2 -2
  417. package/dist/{output-helpers-CedRCE17.js → output-helpers-CVzhy1Y0.js} +126 -56
  418. package/dist/{output-helpers-1Zu4Vt9C.cjs → output-helpers-DgsH4aTb.cjs} +143 -55
  419. package/dist/processor-provider/index.cjs +1 -1
  420. package/dist/processor-provider/index.js +1 -1
  421. package/dist/processors/index.cjs +2 -2
  422. package/dist/processors/index.js +2 -2
  423. package/dist/processors/runner.d.ts +2 -0
  424. package/dist/{provider-registry-BeB8RQO8.js → provider-registry-DWixjFX7.js} +21915 -22166
  425. package/dist/{provider-registry-B_rC-5aL.cjs → provider-registry-a649fS5r.cjs} +21915 -22166
  426. package/dist/provider-registry.json +22772 -23030
  427. package/dist/{registry-generator-Cv6GnxLG.js → registry-generator-BYJC7p8M.js} +1 -1
  428. package/dist/{registry-generator-DbBoIOby.cjs → registry-generator-BuKC7UKd.cjs} +1 -1
  429. package/dist/{rehydrate-3f-i1Ga2.js → rehydrate-DPhmASM6.js} +2 -2
  430. package/dist/{rehydrate-BWaa2eGN.cjs → rehydrate-DR2_WAz2.cjs} +2 -2
  431. package/dist/relevance/index.cjs +2 -2
  432. package/dist/relevance/index.js +2 -2
  433. package/dist/{run-registry-Bx06ZIN_.js → run-registry-D3X7XvUL.js} +2464 -731
  434. package/dist/{run-registry-Bk6QxNE4.cjs → run-registry-oUNF6szW.cjs} +2584 -785
  435. package/dist/storage/domains/inmemory-db.d.ts +1 -0
  436. package/dist/storage/domains/knowledge/base.d.ts +5 -0
  437. package/dist/storage/domains/knowledge/inmemory.d.ts +1 -0
  438. package/dist/storage/domains/knowledge/pages-inmemory.d.ts +10 -2
  439. package/dist/storage/domains/knowledge/pages.d.ts +30 -0
  440. package/dist/storage/index.cjs +2 -2
  441. package/dist/storage/index.js +2 -2
  442. package/dist/storage/run-fencing.d.ts +5 -0
  443. package/dist/stream/index.cjs +2 -2
  444. package/dist/stream/index.js +2 -2
  445. package/dist/{stream-BIXX67WE.cjs → stream-DQC1vpvl.cjs} +4 -4
  446. package/dist/{stream-DVy0Z-m0.js → stream-DoZ6F41o.js} +4 -4
  447. package/dist/test-utils/llm-mock.cjs +1 -1
  448. package/dist/test-utils/llm-mock.js +1 -1
  449. package/dist/tool-loop-agent/index.cjs +1 -1
  450. package/dist/tool-loop-agent/index.js +1 -1
  451. package/dist/{tool-loop-agent-PSKeNhuT.js → tool-loop-agent-C9YkvDRd.js} +4 -4
  452. package/dist/{tool-loop-agent-DDeKGwtr.cjs → tool-loop-agent-Cy4NDOMS.cjs} +4 -4
  453. package/dist/{utils-BJiQF8Pi.js → utils-9JyiKu5r.js} +1 -1
  454. package/dist/{utils-CAnUlnUm.cjs → utils-Bs2IYyOb.cjs} +1 -1
  455. package/dist/utils.cjs +1 -1
  456. package/dist/utils.js +1 -1
  457. package/dist/{validate-BAVwAgtT.js → validate-8j0phWFV.js} +1 -1
  458. package/dist/{validate-BMNxfs4Z.cjs → validate-BE3mVxVy.cjs} +1 -1
  459. package/dist/vector/index.cjs +2 -2
  460. package/dist/vector/index.js +2 -2
  461. package/dist/worker/index.cjs +1 -1
  462. package/dist/worker/index.js +1 -1
  463. package/dist/{worker-BlvJM_Hu.js → worker-BfWFqSH2.js} +2 -2
  464. package/dist/{worker-CFUKBBCF.cjs → worker-BiK1kfMa.cjs} +2 -2
  465. package/dist/{worker-CVoD3tts.js → worker-DIRdEwih.js} +2 -2
  466. package/dist/{worker-Brwa-HqM.cjs → worker-DwdgU6E9.cjs} +2 -2
  467. package/dist/{workflow-zvQGBMCM.cjs → workflow-CxQMcTbT.cjs} +4 -4
  468. package/dist/{workflow-BSLS7_vB.js → workflow-ni-keg2i.js} +4 -4
  469. package/dist/workflows/builder/index.cjs +1 -1
  470. package/dist/workflows/builder/index.js +1 -1
  471. package/dist/workflows/evented/index.cjs +1 -1
  472. package/dist/workflows/evented/index.js +1 -1
  473. package/dist/workflows/index.cjs +4 -4
  474. package/dist/workflows/index.js +4 -4
  475. package/dist/workflows/run-ownership.d.ts +74 -8
  476. package/dist/workflows/types.d.ts +16 -0
  477. package/dist/workflows/workflow.d.ts +4 -0
  478. package/package.json +5 -5
  479. package/src/llm/model/provider-types.generated.d.ts +8175 -8296
  480. /package/dist/_types/{@ai-sdk_provider-utils@4.0.66 → @ai-sdk_provider-utils@4.0.67}/dist/index.d.ts +0 -0
  481. /package/dist/_types/{@ai-sdk_provider-utils@4.0.66 → @ai-sdk_provider-utils@4.0.67}/package.json +0 -0
@@ -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-Bk6QxNE4.cjs");
2
+ const require_run_registry = require("../run-registry-oUNF6szW.cjs");
3
3
  const require_observability = require("../observability-B0R_D1PZ.cjs");
4
- const require_stream = require("../stream-BIXX67WE.cjs");
4
+ const require_stream = require("../stream-DQC1vpvl.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-Bx06ZIN_.js";
1
+ import { $a as createSpanQueryPreview, $i as DatasetItemIdentityConflictError, $l as RUN_FENCING_NOT_SUPPORTED_ERROR_ID, Aa as transformRow, Ai as MAX_KNOWLEDGE_PAGE_BODY_LINKS, Ar as WorkflowsInMemory, Ba as THREAD_QUERY_MAX_LIMIT, Bi as knowledgeLinkRefKey, Br as ScoresInMemory, Ca as getSqlType, Ci as parseKnowledgeWikilinks, Co as serializeSpanAttributes, Cr as StoreOperations, Da as safelyParseJSON, Di as KnowledgePageKeyConflictError, Do as FactoryStorage, Dr as FilesystemDB, Ea as parseDuration, Ei as KnowledgePageHasChildrenError, Eo as ObservabilityStorage, Er as FilesystemStore, Fa as tracePageIdSchema, Fi as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, Fr as mergeWorkflowStepResult, Ga as threadQueryResponseSchema, Gi as parseKnowledgePageRef, Gr as InMemoryNotificationsStorage, Ha as planThreadRowsQuery, Hi as knowledgePinDepth, Hr as InMemorySchedulesStorage, Ia as tracePageNodeSchema, Ii as MAX_KNOWLEDGE_PIN_LIST_DEPTH, Ir as InMemoryWorkflowDefinitionsStorage, Ja as SPAN_QUERY_MAX_CURSOR_BYTES, Ji as HarnessStorage, Ka as threadQueryRowSchema, Ki as KnowledgeInvalidCursorError, Kr as NotificationsStorage, La as tracePageRequestSchema, Li as assertKnowledgeNoteTextWithinBound, Lr as WorkflowDefinitionsStorage, Ma as validateStorageMetadataFilter, Mi as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, Mr as WorkflowsStorage, Na as TracePageError, Ni as MAX_KNOWLEDGE_PAGE_LINKS, Nr as createEmptyWorkflowSnapshot, Oa as serializeDate, Oi as MAX_KNOWLEDGE_MOVE_PAGES, Oo as FactoryStorageDomain, Or as InMemoryStore, Pa as readTracePage, Pi as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, Pr as mergeStepResult, Qa as buildSpanQueryResponse, Qi as DatasetsStorage, Ql as RUN_FENCE_CONFLICT_ERROR_ID, Ra as tracePageResponseSchema, Ri as assertKnowledgePageDescriptionWithinBound, Rr as InMemoryToolProviderConnectionsStorage, Sa as getDefaultValue, Si as inspectKnowledgeSchema, So as getStringOrNull, Sr as StoreOperationsInMemory, Ta as jsonValueEquals, Ti as KnowledgePageDepthError, To as ObservabilityInMemory, Tr as createGitHubSourceControlProviderFromEnv, Ua as threadQueryIdentitySchema, Ui as knowledgePositionBetween, Ur as SchedulesStorage, Va as encodeThreadQueryCursor, Vi as knowledgePagePath, Vr as ScoresStorage, Wa as threadQueryRequestSchema, Wi as knowledgeScopeReadable, Wr as normalizeScheduleTarget, Xa as SPAN_QUERY_MAX_PREVIEW_CHARACTERS, Xi as ExperimentsStorage, Xl as assertWorkflowStepGuard, Ya as SPAN_QUERY_MAX_LIMIT, Yi as ExperimentsInMemory, Yl as WorkflowStepConflictError, Za as SPAN_QUERY_ORDER_FIELDS, Zi as DatasetsInMemory, Zl as isWorkflowStepConflictError, _a as createStorageErrorId, _i as KnowledgeStorage, _o as buildLogRecord, _r as knowledgeScopeKey, ao as spanQueryIdentityKey, au as resolveRunFence, ba as ensureDate, bi as assertKnowledgeSchemaCompatible, bo as buildUpdateSpanRecord, br as knowledgeVisibleScopeKeys, ca as ChannelsStorage, ci as InMemoryKnowledgeStorage, co as spanQueryResponseSchema, cr as MAX_KNOWLEDGE_SCOPE_TAGS, cu as setRunFenceContext, da as BackgroundTasksInMemory, di as KnowledgeImportersStorage, do as encodeTraceQueryDeltaCursor, dr as assertKnowledgeRecordTextWithinBound, eo as encodeSpanQueryCursor, eu as RunFenceConflictError, fa as BackgroundTasksStorage, fi as KNOWLEDGE_STORAGE_CONTRACT_VERSION, fo as getTraceQueryDeltaWatermark, fr as assertKnowledgeScopeWithinCeiling, ga as runRetentionBatches, gi as KnowledgeSchemaResetRequiredError, go as buildFeedbackRecord, gr as isKnowledgeScopeVisible, ha as retentionCutoffMs, hi as KnowledgeNotFoundError, ho as buildCreateSpanRecord, hr as expandKnowledgeScope, io as spanQueryCostSchema, iu as matchesRunFence, ja as transformScoreRow, ji as MAX_KNOWLEDGE_PAGE_DEPTH, jr as cloneRunData, ka as storageMessageMatchesMetadataFilter, ki as MAX_KNOWLEDGE_NOTE_TOKENS, ko as UniqueViolationError, kr as MockStore, la as InMemoryBlobStore, li as KnowledgeImporterBindingConflictError, lo as spanQueryRowSchema, lr as assertKnowledgeCeilingRaised, ma as resolveRetentionTargets, mi as KnowledgeConflictError, mo as planTraceQuery, mr as createKnowledgeNodeCursor, no as planSpanQuery, nu as currentRunGeneration, oi as InMemoryMemory, oo as spanQueryIdentitySchema, or as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, ou as runFencingNotSupportedError, pa as executeRetentionPrune, pi as KNOWLEDGE_STORAGE_SCHEMA_VERSION, po as planThreadQuery, pr as canonicalizeKnowledgeScope, qa as SPAN_QUERY_MAX_COST_METRICS, qi as InMemoryHarness, qr as dispatchDueNotifications, ro as resolveSpanQueryCost, ru as isRunFenceConflictError, sa as InMemoryChannelsStorage, si as MemoryStorage, so as spanQueryRequestSchema, sr as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, su as runOutsideRunFenceScope, to as parseSpanQueryRequest, tu as coverNestedRun, ua as BlobStore, ui as KnowledgeImporterRunStateError, uo as encodeTraceQueryCursor, ur as assertKnowledgeDescriptionWithinBound, va as createStoreErrorId, vi as KnowledgeTransactionDeadlineError, vo as buildMetricRecord, vr as knowledgeSemanticDocumentId, wa as hasErrorCode, wi as KnowledgeMoveTooLargeError, wo as toEntityType, wr as GitHubSourceControlProvider, xa as filterByDateRange, xi as createKnowledgeUlid, xo as getObjectOrNull, xr as parseKnowledgeNodeCursor, ya as createVectorErrorId, yi as KnowledgeUnsupportedCapabilityError, yo as buildScoreRecord, yr as knowledgeSemanticIdempotencyKey, za as THREAD_QUERY_DEFAULT_LIMIT, zi as canonicalKnowledgeName, zr as ToolProviderConnectionsStorage } from "../run-registry-D3X7XvUL.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-DVy0Z-m0.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-DoZ6F41o.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;
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_stream = require("../stream-BIXX67WE.cjs");
3
- const require_llm = require("../llm-BOQR5g0t.cjs");
2
+ const require_stream = require("../stream-DQC1vpvl.cjs");
3
+ const require_llm = require("../llm-BKxlS9Kk.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-DVy0Z-m0.js";
2
- import { u as ChunkFrom } from "../llm-DMNEZIV9.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-DoZ6F41o.js";
2
+ import { u as ChunkFrom } from "../llm-CMkzIFAk.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,6 +1,6 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
2
- const require_llm = require("./llm-BOQR5g0t.cjs");
3
- const require_message_list = require("./message-list-Cj0Sq_JP.cjs");
2
+ const require_llm = require("./llm-BKxlS9Kk.cjs");
3
+ const require_message_list = require("./message-list-DfN9mWeN.cjs");
4
4
  const require_observability = require("./observability-B0R_D1PZ.cjs");
5
5
  const require_base = require("./base-BIzR1D3_.cjs");
6
6
  const require_error = require("./error-D90lJ6M7.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,6 +1,6 @@
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-DMNEZIV9.js";
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";
2
+ import { d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, p as readModelStreamTransport } from "./llm-CMkzIFAk.js";
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-wI71UGxk.js";
4
4
  import { S as resolveObservabilityContext, x as createObservabilityContext } from "./observability-D7RNOAPx.js";
5
5
  import { t as MastraBase } from "./base-CKLWBhDo.js";
6
6
  import { i as MastraError, n as ErrorDomain, o as getErrorFromUnknown, t as ErrorCategory } from "./error-oh2DLsP2.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,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-CrXDhcbw.cjs");
4
+ const require_model = require("../model-9HA-W0tg.cjs");
5
5
  const require_model$1 = require("../model-jBymoqGa.cjs");
6
6
  let stream = require("stream");
7
7
  let module$1 = require("module");
@@ -1,5 +1,5 @@
1
1
  import { o as simulateReadableStream } from "../dist-D3cKCUe-.js";
2
- import { t as MastraLLMV1 } from "../model-3AeJKHLU.js";
2
+ import { t as MastraLLMV1 } from "../model-DCLUL-8a.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-DDeKGwtr.cjs");
2
+ const require_tool_loop_agent = require("../tool-loop-agent-Cy4NDOMS.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-PSKeNhuT.js";
1
+ export { n as getSettings, r as isToolLoopAgentLike, t as toolLoopAgentToMastraAgent } from "../tool-loop-agent-C9YkvDRd.js";
@@ -1,8 +1,8 @@
1
1
  import { m as generateId } from "./dist-TPVqg8oV.js";
2
- import { N as Agent } from "./run-registry-Bx06ZIN_.js";
3
- import { ln as isSupportedLanguageModel } from "./stream-DVy0Z-m0.js";
4
- import { i as resolveModelConfig } from "./llm-DMNEZIV9.js";
5
- import { N as ToolLoopAgent } from "./message-list-KRbg-TnI.js";
2
+ import { P as Agent } from "./run-registry-D3X7XvUL.js";
3
+ import { ln as isSupportedLanguageModel } from "./stream-DoZ6F41o.js";
4
+ import { i as resolveModelConfig } from "./llm-CMkzIFAk.js";
5
+ import { N as ToolLoopAgent } from "./message-list-wI71UGxk.js";
6
6
  // src/tool-loop-agent/utils.ts
7
7
  function isToolLoopAgentLike(obj) {
8
8
  if (!obj) return false;
@@ -1,8 +1,8 @@
1
1
  const require_dist = require("./dist-P2rjrlmj.cjs");
2
- const require_run_registry = require("./run-registry-Bk6QxNE4.cjs");
3
- const require_stream = require("./stream-BIXX67WE.cjs");
4
- const require_llm = require("./llm-BOQR5g0t.cjs");
5
- const require_message_list = require("./message-list-Cj0Sq_JP.cjs");
2
+ const require_run_registry = require("./run-registry-oUNF6szW.cjs");
3
+ const require_stream = require("./stream-DQC1vpvl.cjs");
4
+ const require_llm = require("./llm-BKxlS9Kk.cjs");
5
+ const require_message_list = require("./message-list-DfN9mWeN.cjs");
6
6
  // src/tool-loop-agent/utils.ts
7
7
  function isToolLoopAgentLike(obj) {
8
8
  if (!obj) return false;
@@ -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-idnlMbqD.js";
4
+ import { i as isToolBackgroundEligible, n as backgroundOverrideJsonSchema, r as backgroundOverrideZodSchema } from "./background-tasks-BbVsBghi.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";
@@ -1,7 +1,7 @@
1
1
  const require_error = require("./error-D90lJ6M7.cjs");
2
2
  const require_tool = require("./tool-CYlT2UA-.cjs");
3
3
  const require_ee_iTj2bRDt = require("./ee-iTj2bRDt-D3-QLGDF.cjs");
4
- const require_background_tasks = require("./background-tasks-BVxb0VGV.cjs");
4
+ const require_background_tasks = require("./background-tasks-CVl6e0Jo.cjs");
5
5
  const require_base = require("./base-BIzR1D3_.cjs");
6
6
  const require_observability = require("./observability-B0R_D1PZ.cjs");
7
7
  const require_utils = require("./utils-D-eNsgDM.cjs");
package/dist/utils.cjs CHANGED
@@ -4,7 +4,7 @@ const require_deep_equal = require("./deep-equal-TMDmByBC.cjs");
4
4
  const require_zod_utils = require("./zod-utils-Cl5jw5N_.cjs");
5
5
  const require_fetchWithRetry = require("./fetchWithRetry-f5k4p7_1.cjs");
6
6
  const require_dynamic_argument = require("./dynamic-argument-CUc1BBOS.cjs");
7
- const require_utils = require("./utils-CAnUlnUm.cjs");
7
+ const require_utils = require("./utils-Bs2IYyOb.cjs");
8
8
  exports.boundedStringify = require_utils_safe_stringify.boundedStringify;
9
9
  exports.checkEvalStorageFields = require_utils.checkEvalStorageFields;
10
10
  exports.createMastraProxy = require_utils.createMastraProxy;
package/dist/utils.js CHANGED
@@ -3,5 +3,5 @@ import { t as deepEqual } from "./deep-equal-d1xU02ag.js";
3
3
  import { a as isZodObject, i as isZodArray, r as getZodTypeName, t as getZodDef } from "./zod-utils-BDDS_mxU.js";
4
4
  import { t as fetchWithRetry } from "./fetchWithRetry-DFSvpYDT.js";
5
5
  import { n as resolveDynamicArgument, t as getRequestUser } from "./dynamic-argument-BzPK3qPN.js";
6
- import { C as setNestedValue, S as selectFields, _ as parseSqlIdentifier, a as ensureToolProperties, b as removeUndefinedValues, c as isCoreMessage, d as makeCoreTool, f as makeCoreToolV5, g as parseFieldKey, h as omitKeys, i as delay, l as isUiMessage, m as maskStreamTags, n as createMastraProxy, o as generateEmptyFromSchema, p as makeProcessorCoreTool, r as deepMerge, s as getNestedValue, t as checkEvalStorageFields, u as isZodType, v as readPositiveIntEnv, x as resolveSerializedZodOutput, y as rebindProcessorTools } from "./utils-BJiQF8Pi.js";
6
+ import { C as setNestedValue, S as selectFields, _ as parseSqlIdentifier, a as ensureToolProperties, b as removeUndefinedValues, c as isCoreMessage, d as makeCoreTool, f as makeCoreToolV5, g as parseFieldKey, h as omitKeys, i as delay, l as isUiMessage, m as maskStreamTags, n as createMastraProxy, o as generateEmptyFromSchema, p as makeProcessorCoreTool, r as deepMerge, s as getNestedValue, t as checkEvalStorageFields, u as isZodType, v as readPositiveIntEnv, x as resolveSerializedZodOutput, y as rebindProcessorTools } from "./utils-9JyiKu5r.js";
7
7
  export { boundedStringify, checkEvalStorageFields, createMastraProxy, deepEqual, deepMerge, delay, ensureSerializable, ensureToolProperties, fetchWithRetry, generateEmptyFromSchema, getNestedValue, getRequestUser, getZodDef, getZodTypeName, isBoundedSerializable, isCoreMessage, isUiMessage, isZodArray, isZodObject, isZodType, makeCoreTool, makeCoreToolV5, makeProcessorCoreTool, maskStreamTags, omitKeys, parseFieldKey, parseSqlIdentifier, readPositiveIntEnv, rebindProcessorTools, removeUndefinedValues, resolveDynamicArgument, resolveSerializedZodOutput, safeStringify, selectFields, setNestedValue };
@@ -1,5 +1,5 @@
1
1
  import { standardSchemaToJSONSchema, toStandardSchema } from "./schema/index.js";
2
- import { Et as validateTemplate, St as collectTemplateStepIds } from "./stream-DVy0Z-m0.js";
2
+ import { Et as validateTemplate, St as collectTemplateStepIds } from "./stream-DoZ6F41o.js";
3
3
  import { z } from "zod";
4
4
  // src/workflows/dynamic/graph.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- const require_stream = require("./stream-BIXX67WE.cjs");
1
+ const require_stream = require("./stream-DQC1vpvl.cjs");
2
2
  let zod = require("zod");
3
3
  let _mastra_schema_compat_schema = require("@mastra/schema-compat/schema");
4
4
  // src/workflows/dynamic/graph.ts
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_base = require("../base-BIzR1D3_.cjs");
3
3
  const require_error = require("../error-D90lJ6M7.cjs");
4
- const require_run_registry = require("../run-registry-Bk6QxNE4.cjs");
5
- const require_message_list = require("../message-list-Cj0Sq_JP.cjs");
4
+ const require_run_registry = require("../run-registry-oUNF6szW.cjs");
5
+ const require_message_list = require("../message-list-DfN9mWeN.cjs");
6
6
  const require_dist = require("../dist-P2rjrlmj.cjs");
7
7
  const require_dist$1 = require("../dist-CXeCeeW7.cjs");
8
8
  const require_vector_filter_index = require("./filter/index.cjs");
@@ -1,7 +1,7 @@
1
1
  import { t as MastraBase } from "../base-CKLWBhDo.js";
2
2
  import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "../error-oh2DLsP2.js";
3
- import { fa as createVectorErrorId, un as embed$3 } from "../run-registry-Bx06ZIN_.js";
4
- import { P as embed$2 } from "../message-list-KRbg-TnI.js";
3
+ import { un as embed$3, ya as createVectorErrorId } from "../run-registry-D3X7XvUL.js";
4
+ import { P as embed$2 } from "../message-list-wI71UGxk.js";
5
5
  import { r as embed$1 } from "../dist-TPVqg8oV.js";
6
6
  import { n as embed } from "../dist-D3cKCUe-.js";
7
7
  import { BaseFilterTranslator } from "./filter/index.js";
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_worker = require("../worker-CFUKBBCF.cjs");
2
+ const require_worker = require("../worker-BiK1kfMa.cjs");
3
3
  exports.BackgroundTaskWorker = require_worker.BackgroundTaskWorker;
4
4
  exports.HttpRemoteStrategy = require_worker.HttpRemoteStrategy;
5
5
  exports.InProcessStrategy = require_worker.InProcessStrategy;
@@ -1 +1 @@
1
- export { n as BackgroundTaskWorker, o as HttpRemoteStrategy, t as InProcessStrategy, c as MastraWorker, i as OrchestrationWorker, a as PullTransport, r as SchedulerWorker, s as StepExecutionError } from "../worker-BlvJM_Hu.js";
1
+ export { n as BackgroundTaskWorker, o as HttpRemoteStrategy, t as InProcessStrategy, c as MastraWorker, i as OrchestrationWorker, a as PullTransport, r as SchedulerWorker, s as StepExecutionError } from "../worker-BfWFqSH2.js";
@@ -1,6 +1,6 @@
1
- import { Ls as WorkflowEventProcessor, Rs as StepExecutor, cc as getNestedWorkflow, gl as waitMs, hl as assertDrainTimeout, lc as getStepEntry, vt as resolveAgentById, zs as computeScheduleDefinitionHash } from "./run-registry-Bx06ZIN_.js";
1
+ import { Cl as assertDrainTimeout, Gs as StepExecutor, Ks as computeScheduleDefinitionHash, Ws as WorkflowEventProcessor, gc as getStepEntry, hc as getNestedWorkflow, wl as waitMs, yt as resolveAgentById } from "./run-registry-D3X7XvUL.js";
2
2
  import { t as Scheduler } from "./scheduler-B-VZUvv_.js";
3
- import { s as BackgroundTaskManager } from "./background-tasks-idnlMbqD.js";
3
+ import { s as BackgroundTaskManager } from "./background-tasks-BbVsBghi.js";
4
4
  import { u as RequestContext } from "./request-context-COnZHt2-.js";
5
5
  // src/worker/worker.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
- const require_run_registry = require("./run-registry-Bk6QxNE4.cjs");
1
+ const require_run_registry = require("./run-registry-oUNF6szW.cjs");
2
2
  const require_scheduler = require("./scheduler-D00X03jQ.cjs");
3
- const require_background_tasks = require("./background-tasks-BVxb0VGV.cjs");
3
+ const require_background_tasks = require("./background-tasks-CVl6e0Jo.cjs");
4
4
  const require_request_context = require("./request-context-D9RXYCy8.cjs");
5
5
  // src/worker/worker.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
- import { vt as resolveAgentById } from "./run-registry-Bx06ZIN_.js";
1
+ import { yt as resolveAgentById } from "./run-registry-D3X7XvUL.js";
2
2
  import { u as RequestContext } from "./request-context-COnZHt2-.js";
3
- import { a as PullTransport, c as MastraWorker } from "./worker-BlvJM_Hu.js";
3
+ import { a as PullTransport, c as MastraWorker } from "./worker-BfWFqSH2.js";
4
4
  import { l as parseFsAgentScheduleRowId } from "./schedules-DZfSx-7P.js";
5
5
  // src/schedules/worker.ts
6
6
  /** PubSub topic on which the scheduler publishes `agent-schedule.fire` events. */
@@ -1,6 +1,6 @@
1
- const require_run_registry = require("./run-registry-Bk6QxNE4.cjs");
1
+ const require_run_registry = require("./run-registry-oUNF6szW.cjs");
2
2
  const require_request_context = require("./request-context-D9RXYCy8.cjs");
3
- const require_worker = require("./worker-CFUKBBCF.cjs");
3
+ const require_worker = require("./worker-BiK1kfMa.cjs");
4
4
  const require_schedules = require("./schedules-BZS8McF7.cjs");
5
5
  // src/schedules/worker.ts
6
6
  /** PubSub topic on which the scheduler publishes `agent-schedule.fire` events. */
@@ -1,8 +1,8 @@
1
- const require_stream = require("./stream-BIXX67WE.cjs");
1
+ const require_stream = require("./stream-DQC1vpvl.cjs");
2
2
  require("./utils-D-eNsgDM.cjs");
3
- const require_output_helpers = require("./output-helpers-1Zu4Vt9C.cjs");
4
- const require_run_registry = require("./run-registry-Bk6QxNE4.cjs");
5
- const require_background_tasks = require("./background-tasks-BVxb0VGV.cjs");
3
+ const require_output_helpers = require("./output-helpers-DgsH4aTb.cjs");
4
+ const require_run_registry = require("./run-registry-oUNF6szW.cjs");
5
+ const require_background_tasks = require("./background-tasks-CVl6e0Jo.cjs");
6
6
  let zod = require("zod");
7
7
  // src/background-tasks/workflow.ts
8
8
  const inputSchema = zod.z.object({ taskId: zod.z.string() });
@@ -1,8 +1,8 @@
1
- import { un as resolveSuspendedToolRunId } from "./stream-DVy0Z-m0.js";
1
+ import { un as resolveSuspendedToolRunId } from "./stream-DoZ6F41o.js";
2
2
  import "./utils-DU_pU5SK.js";
3
- import { p as slimProgressChunk } from "./output-helpers-CedRCE17.js";
4
- import { As as createWorkflow, pc as createStep } from "./run-registry-Bx06ZIN_.js";
5
- import { c as BACKGROUND_TASK_WORKFLOW_ID } from "./background-tasks-idnlMbqD.js";
3
+ import { m as slimProgressChunk } from "./output-helpers-CVzhy1Y0.js";
4
+ import { Ls as createWorkflow, bc as createStep } from "./run-registry-D3X7XvUL.js";
5
+ import { c as BACKGROUND_TASK_WORKFLOW_ID } from "./background-tasks-BbVsBghi.js";
6
6
  import { z } from "zod";
7
7
  // src/background-tasks/workflow.ts
8
8
  const inputSchema = z.object({ taskId: z.string() });
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_builder = require("../../builder-CBWoYNck.cjs");
2
+ const require_builder = require("../../builder-BRJPSTig.cjs");
3
3
  exports.WORKFLOW_BUILDER_AUTHORING_CONSTRAINTS = require_builder.WORKFLOW_BUILDER_AUTHORING_CONSTRAINTS;
4
4
  exports.WORKFLOW_BUILDER_AUTHORING_PLAYBOOK = require_builder.WORKFLOW_BUILDER_AUTHORING_PLAYBOOK;
5
5
  exports.WORKFLOW_BUILDER_MAPPING_CONFIG_DESCRIPTION = require_builder.WORKFLOW_BUILDER_MAPPING_CONFIG_DESCRIPTION;
@@ -1 +1 @@
1
- export { U as WORKFLOW_BUILDER_AUTHORING_CONSTRAINTS, W as WORKFLOW_BUILDER_AUTHORING_PLAYBOOK, i as WORKFLOW_BUILDER_MAPPING_CONFIG_DESCRIPTION, t as WORKFLOW_BUILDER_SUPPORTED_STEP_TYPES, B as compareWorkflowBuilderSchemas, r as createWorkflowBuilderAgent, a as deleteStoredWorkflowResponseSchema, V as inspectWorkflowBuilderSchemas, o as listStoredWorkflowsResponseSchema, n as normalizeWorkflowBuilderDefinition, H as preflightWorkflowDefinition, s as storedWorkflowDefinitionSchema, c as upsertStoredWorkflowResponseSchema, l as workflowBuilderAgentEntryInputSchema, u as workflowBuilderAgentEntrySchema, d as workflowBuilderClassifierEntryInputSchema, f as workflowBuilderClassifierEntrySchema, p as workflowBuilderConditionalEntryInputSchema, m as workflowBuilderConditionalEntrySchema, h as workflowBuilderDefinitionInputSchema, g as workflowBuilderDefinitionSchema, _ as workflowBuilderForeachEntryInputSchema, v as workflowBuilderForeachEntrySchema, y as workflowBuilderGraphEntryInputSchema, b as workflowBuilderGraphEntrySchema, x as workflowBuilderLoopEntryInputSchema, S as workflowBuilderLoopEntrySchema, C as workflowBuilderMappingConfigSchema, w as workflowBuilderMappingDescriptorSchema, T as workflowBuilderMappingEntryInputSchema, E as workflowBuilderMappingEntrySchema, D as workflowBuilderNestedWorkflowEntryInputSchema, O as workflowBuilderNestedWorkflowEntrySchema, k as workflowBuilderParallelEntryInputSchema, A as workflowBuilderParallelEntrySchema, j as workflowBuilderPredicateSchema, M as workflowBuilderScheduleConfigSchema, N as workflowBuilderScheduleSchema, P as workflowBuilderSleepEntryInputSchema, F as workflowBuilderSleepEntrySchema, I as workflowBuilderSleepUntilEntryInputSchema, L as workflowBuilderSleepUntilEntrySchema, R as workflowBuilderToolEntryInputSchema, z as workflowBuilderToolEntrySchema } from "../../builder-Cuq-j2w3.js";
1
+ export { U as WORKFLOW_BUILDER_AUTHORING_CONSTRAINTS, W as WORKFLOW_BUILDER_AUTHORING_PLAYBOOK, i as WORKFLOW_BUILDER_MAPPING_CONFIG_DESCRIPTION, t as WORKFLOW_BUILDER_SUPPORTED_STEP_TYPES, B as compareWorkflowBuilderSchemas, r as createWorkflowBuilderAgent, a as deleteStoredWorkflowResponseSchema, V as inspectWorkflowBuilderSchemas, o as listStoredWorkflowsResponseSchema, n as normalizeWorkflowBuilderDefinition, H as preflightWorkflowDefinition, s as storedWorkflowDefinitionSchema, c as upsertStoredWorkflowResponseSchema, l as workflowBuilderAgentEntryInputSchema, u as workflowBuilderAgentEntrySchema, d as workflowBuilderClassifierEntryInputSchema, f as workflowBuilderClassifierEntrySchema, p as workflowBuilderConditionalEntryInputSchema, m as workflowBuilderConditionalEntrySchema, h as workflowBuilderDefinitionInputSchema, g as workflowBuilderDefinitionSchema, _ as workflowBuilderForeachEntryInputSchema, v as workflowBuilderForeachEntrySchema, y as workflowBuilderGraphEntryInputSchema, b as workflowBuilderGraphEntrySchema, x as workflowBuilderLoopEntryInputSchema, S as workflowBuilderLoopEntrySchema, C as workflowBuilderMappingConfigSchema, w as workflowBuilderMappingDescriptorSchema, T as workflowBuilderMappingEntryInputSchema, E as workflowBuilderMappingEntrySchema, D as workflowBuilderNestedWorkflowEntryInputSchema, O as workflowBuilderNestedWorkflowEntrySchema, k as workflowBuilderParallelEntryInputSchema, A as workflowBuilderParallelEntrySchema, j as workflowBuilderPredicateSchema, M as workflowBuilderScheduleConfigSchema, N as workflowBuilderScheduleSchema, P as workflowBuilderSleepEntryInputSchema, F as workflowBuilderSleepEntrySchema, I as workflowBuilderSleepUntilEntryInputSchema, L as workflowBuilderSleepUntilEntrySchema, R as workflowBuilderToolEntryInputSchema, z as workflowBuilderToolEntrySchema } from "../../builder-C8XzrtBQ.js";
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_run_registry = require("../../run-registry-Bk6QxNE4.cjs");
2
+ const require_run_registry = require("../../run-registry-oUNF6szW.cjs");
3
3
  exports.EventedExecutionEngine = require_run_registry.EventedExecutionEngine;
4
4
  exports.EventedRun = require_run_registry.EventedRun;
5
5
  exports.EventedWorkflow = require_run_registry.EventedWorkflow;
@@ -1 +1 @@
1
- export { sc as EventedExecutionEngine, js as EventedRun, Ms as EventedWorkflow, Rs as StepExecutor, Ls as WorkflowEventProcessor, Ns as cloneStep, Ps as cloneWorkflow, Fs as createStep, Is as createWorkflow } from "../../run-registry-Bx06ZIN_.js";
1
+ export { mc as EventedExecutionEngine, Rs as EventedRun, zs as EventedWorkflow, Gs as StepExecutor, Ws as WorkflowEventProcessor, Bs as cloneStep, Vs as cloneWorkflow, Hs as createStep, Us as createWorkflow } from "../../run-registry-D3X7XvUL.js";
@@ -1,11 +1,11 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_run_registry = require("../run-registry-Bk6QxNE4.cjs");
3
- const require_stream = require("../stream-BIXX67WE.cjs");
2
+ const require_run_registry = require("../run-registry-oUNF6szW.cjs");
3
+ const require_stream = require("../stream-DQC1vpvl.cjs");
4
4
  const require_predicate_index = require("../predicate/index.cjs");
5
5
  const require_schedules = require("../schedules-BZS8McF7.cjs");
6
6
  const require_scheduler = require("../scheduler-D00X03jQ.cjs");
7
- const require_validate = require("../validate-BMNxfs4Z.cjs");
8
- const require_rehydrate = require("../rehydrate-BWaa2eGN.cjs");
7
+ const require_validate = require("../validate-BE3mVxVy.cjs");
8
+ const require_rehydrate = require("../rehydrate-DR2_WAz2.cjs");
9
9
  // src/workflows/state-reader.ts
10
10
  const getStep = (state, stepId) => state.steps?.[stepId];
11
11
  const getFirstStepResult = (step) => {
@@ -1,10 +1,10 @@
1
- import { $c as hydrateSerializedStepErrors, Ac as ExecutionEngine, As as createWorkflow, Bc as abortableSleep, Ec as DefaultExecutionEngine, Fc as createStepFromAgent, Gc as createRestartExecutionParams, Hc as assertTimeTravelGraphMatchesSnapshot, Ic as createStepFromClassifier, Jc as defineStateAccessors, Kc as createTimeTravelExecutionParams, Lc as createStepFromTool, Os as cloneWorkflow, Pc as createMappingStep, Qc as getStepIds, Rc as RESUME_SNAPSHOT_POLL_INTERVAL_MS, Uc as cleanStepResult, Vc as applyStateDelta, Wc as createDeprecationProxy, Xc as getResumeLabelsByStepId, Yc as getRestartStartIndex, Zc as getSingleStepEntryId, _c as evaluatePredicate, _l as workflowTermination, al as runCountDeprecationMessage, cl as validateStepRequestContext, dc as Workflow, dl as validateStepSuspendData, el as isEntryFinished, fc as cloneStep, fl as waitForSuspendedSnapshot, gc as predicateToCondition, hc as mapVariable, il as resolveForeachConcurrency, ks as createEventedWorkflow, ll as validateStepResumeData, mc as isProcessor, ml as getEntryWorkflow, nl as omitPriorCompletionFields, ol as setLongTimeout, pc as createStep, pl as getEntryId, qc as defineLazyWriter, rl as omitPriorSuspensionFields, sl as validateStepInput, tl as isSingleStepEntry, uc as Run, ul as validateStepStateData, zc as RESUME_SNAPSHOT_WAIT_STATUSES, zs as computeScheduleDefinitionHash } from "../run-registry-Bx06ZIN_.js";
2
- import { Dt as getStepResult, Ot as getStepResultAsync } from "../stream-DVy0Z-m0.js";
1
+ import { $c as createRestartExecutionParams, Ac as DefaultExecutionEngine, Cc as predicateToCondition, Fs as cloneWorkflow, Gc as createStepFromTool, Hc as createMappingStep, Is as createEventedWorkflow, Jc as abortableSleep, Kc as RESUME_SNAPSHOT_POLL_INTERVAL_MS, Ks as computeScheduleDefinitionHash, Ls as createWorkflow, Qc as createDeprecationProxy, Rc as ExecutionEngine, Sc as mapVariable, Sl as getEntryWorkflow, Tl as workflowTermination, Uc as createStepFromAgent, Wc as createStepFromClassifier, Xc as assertTimeTravelGraphMatchesSnapshot, Yc as applyStateDelta, Zc as cleanStepResult, _c as Run, _l as validateStepResumeData, al as getSingleStepEntryId, bc as createStep, bl as waitForSuspendedSnapshot, cl as isEntryFinished, dl as omitPriorSuspensionFields, el as createTimeTravelExecutionParams, fl as resolveForeachConcurrency, gl as validateStepRequestContext, hl as validateStepInput, il as getResumeLabelsByStepId, ll as isSingleStepEntry, ml as setLongTimeout, nl as defineStateAccessors, ol as getStepIds, pl as runCountDeprecationMessage, qc as RESUME_SNAPSHOT_WAIT_STATUSES, rl as getRestartStartIndex, sl as hydrateSerializedStepErrors, tl as defineLazyWriter, ul as omitPriorCompletionFields, vc as Workflow, vl as validateStepStateData, wc as evaluatePredicate, xc as isProcessor, xl as getEntryId, yc as cloneStep, yl as validateStepSuspendData } from "../run-registry-D3X7XvUL.js";
2
+ import { Dt as getStepResult, Ot as getStepResultAsync } from "../stream-DoZ6F41o.js";
3
3
  import { derivePredicateLabel, predicateSchema } from "../predicate/index.js";
4
4
  import { _ as validateCron, h as computeNextFireAt } from "../schedules-DZfSx-7P.js";
5
5
  import { n as WorkflowScheduler, t as Scheduler } from "../scheduler-B-VZUvv_.js";
6
- import { a as jsonSchemaToZod, c as analyzeMapConfig, d as toJsonSchemaOrUndefined, f as validateWorkflowRefs, h as forEachSingleStepEntryWithPath, i as validateWorkflowSchemas, l as parseMapConfig, m as forEachSingleStepEntry, n as validateDynamicWorkflow, o as validateStorableJsonSchema, p as collectNestedWorkflowIds, r as validateWorkflowStructure, s as inferGraphSchemas, t as assertValidDynamicWorkflow, u as schemaCompatibility } from "../validate-BAVwAgtT.js";
7
- import { n as entryOptionFields, r as toStorableGraph, t as rehydrateWorkflow } from "../rehydrate-3f-i1Ga2.js";
6
+ import { a as jsonSchemaToZod, c as analyzeMapConfig, d as toJsonSchemaOrUndefined, f as validateWorkflowRefs, h as forEachSingleStepEntryWithPath, i as validateWorkflowSchemas, l as parseMapConfig, m as forEachSingleStepEntry, n as validateDynamicWorkflow, o as validateStorableJsonSchema, p as collectNestedWorkflowIds, r as validateWorkflowStructure, s as inferGraphSchemas, t as assertValidDynamicWorkflow, u as schemaCompatibility } from "../validate-8j0phWFV.js";
7
+ import { n as entryOptionFields, r as toStorableGraph, t as rehydrateWorkflow } from "../rehydrate-DPhmASM6.js";
8
8
  // src/workflows/state-reader.ts
9
9
  const getStep = (state, stepId) => state.steps?.[stepId];
10
10
  const getFirstStepResult = (step) => {