@mastra/core 1.86.0 → 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 (446) hide show
  1. package/dist/agent/durable/constants.d.ts +2 -0
  2. package/dist/agent/durable/evented-execution.d.ts +7 -0
  3. package/dist/agent/durable/execution-engine.d.ts +1 -0
  4. package/dist/agent/durable/execution-fence.d.ts +2 -0
  5. package/dist/agent/durable/index.cjs +3 -1
  6. package/dist/agent/durable/index.d.ts +1 -1
  7. package/dist/agent/durable/index.js +2 -2
  8. package/dist/agent/durable/run-registry.d.ts +2 -0
  9. package/dist/agent/durable/segment-spans.d.ts +54 -1
  10. package/dist/agent/durable/types.d.ts +10 -0
  11. package/dist/agent/durable/workflows/durable-loop-builder.d.ts +57 -2
  12. package/dist/agent/durable/workflows/finalize-run.d.ts +2 -0
  13. package/dist/agent/durable/workflows/shared/index.d.ts +1 -1
  14. package/dist/agent/durable/workflows/shared/reported-cost.d.ts +7 -0
  15. package/dist/agent/durable/workflows/shared/schemas.d.ts +16 -1
  16. package/dist/agent/durable/workflows/shared/tool-call-concurrency.d.ts +6 -0
  17. package/dist/agent/durable/workflows/steps/llm-execution.d.ts +5 -0
  18. package/dist/agent/durable/workflows/steps/llm-mapping.d.ts +6 -0
  19. package/dist/agent/durable/workflows/steps/tool-call.d.ts +20 -0
  20. package/dist/agent/index.cjs +2 -2
  21. package/dist/agent/index.js +2 -2
  22. package/dist/agent/request-context-snapshot.d.ts +3 -2
  23. package/dist/agent/streams/run-records.d.ts +9 -1
  24. package/dist/agent-builder/ee/index.cjs +1 -1
  25. package/dist/agent-builder/ee/index.js +1 -1
  26. package/dist/agent-controller/index.cjs +1 -1
  27. package/dist/agent-controller/index.js +1 -1
  28. package/dist/agent-controller/session-run-engine.d.ts +5 -2
  29. package/dist/agent-controller/session.d.ts +2 -0
  30. package/dist/agent-controller/types.d.ts +23 -0
  31. package/dist/{agent-controller-D5EKeS1H.js → agent-controller-B8LoFdtu.js} +43 -13
  32. package/dist/{agent-controller-D_5Dc8d3.cjs → agent-controller-DSnFynpa.cjs} +43 -13
  33. package/dist/background-tasks/index.cjs +1 -1
  34. package/dist/background-tasks/index.js +1 -1
  35. package/dist/background-tasks/manager.d.ts +4 -1
  36. package/dist/{background-tasks-BVxb0VGV.cjs → background-tasks-Ci5h0dhj.cjs} +139 -51
  37. package/dist/{background-tasks-idnlMbqD.js → background-tasks-IW7M4iD2.js} +139 -51
  38. package/dist/browser/index.cjs +1 -1
  39. package/dist/browser/index.js +1 -1
  40. package/dist/{builder-CBWoYNck.cjs → builder-14Uptu8y.cjs} +2 -2
  41. package/dist/{builder-Cuq-j2w3.js → builder-DI2c2xjy.js} +2 -2
  42. package/dist/cache/base.d.ts +40 -10
  43. package/dist/cache/index.cjs +1 -1
  44. package/dist/cache/index.js +1 -1
  45. package/dist/capabilities/302ai.json +200 -200
  46. package/dist/capabilities/abliteratedllm.json +34 -34
  47. package/dist/capabilities/abliteration-ai.json +8 -8
  48. package/dist/capabilities/above.json +24 -24
  49. package/dist/capabilities/adaption.json +15 -15
  50. package/dist/capabilities/adzuki.json +29 -29
  51. package/dist/capabilities/agentrouter.json +12 -12
  52. package/dist/capabilities/agnes.json +2 -2
  53. package/dist/capabilities/ai-router.json +5 -5
  54. package/dist/capabilities/aiand.json +25 -25
  55. package/dist/capabilities/aigrow.json +13 -13
  56. package/dist/capabilities/aimlapi.json +149 -152
  57. package/dist/capabilities/aixy.json +20 -20
  58. package/dist/capabilities/aki-io.json +10 -10
  59. package/dist/capabilities/alibaba-cn.json +85 -85
  60. package/dist/capabilities/alibaba-coding-plan-cn.json +5 -5
  61. package/dist/capabilities/alibaba-coding-plan.json +5 -5
  62. package/dist/capabilities/alibaba-token-plan-cn.json +44 -44
  63. package/dist/capabilities/alibaba-token-plan.json +47 -47
  64. package/dist/capabilities/alibaba.json +62 -62
  65. package/dist/capabilities/ambient.json +14 -14
  66. package/dist/capabilities/amd.json +8 -8
  67. package/dist/capabilities/anthropic.json +39 -39
  68. package/dist/capabilities/anyapi.json +13 -13
  69. package/dist/capabilities/apiko.json +5 -5
  70. package/dist/capabilities/arcee.json +11 -11
  71. package/dist/capabilities/augure.json +4 -4
  72. package/dist/capabilities/auriko.json +21 -21
  73. package/dist/capabilities/bailing.json +4 -4
  74. package/dist/capabilities/baseten.json +33 -33
  75. package/dist/capabilities/bee.json +5 -5
  76. package/dist/capabilities/berget.json +4 -4
  77. package/dist/capabilities/bothub.json +16 -16
  78. package/dist/capabilities/boundless.json +37 -37
  79. package/dist/capabilities/bumo.json +48 -48
  80. package/dist/capabilities/byteplus.json +25 -25
  81. package/dist/capabilities/cheapaimodel.json +5 -5
  82. package/dist/capabilities/cheapest-token.json +28 -28
  83. package/dist/capabilities/chutes.json +11 -14
  84. package/dist/capabilities/cline-pass.json +41 -41
  85. package/dist/capabilities/cloudcode.json +9 -9
  86. package/dist/capabilities/cloudferro-sherlock.json +4 -4
  87. package/dist/capabilities/cloudflare-workers-ai.json +18 -79
  88. package/dist/capabilities/commandcode.json +155 -155
  89. package/dist/capabilities/concentrate.json +279 -270
  90. package/dist/capabilities/cortecs.json +100 -100
  91. package/dist/capabilities/crossmodel.json +178 -178
  92. package/dist/capabilities/crusoe.json +9 -9
  93. package/dist/capabilities/daoxe.json +9 -9
  94. package/dist/capabilities/databricks.json +137 -137
  95. package/dist/capabilities/deepinfra.json +124 -61
  96. package/dist/capabilities/deepseek.json +3 -3
  97. package/dist/capabilities/digitalocean.json +113 -113
  98. package/dist/capabilities/dothoosh.json +32 -32
  99. package/dist/capabilities/doubleword.json +26 -26
  100. package/dist/capabilities/edenai.json +448 -473
  101. package/dist/capabilities/empiriolabs.json +163 -165
  102. package/dist/capabilities/engy.json +19 -19
  103. package/dist/capabilities/entrim.json +6 -6
  104. package/dist/capabilities/evroc.json +16 -16
  105. package/dist/capabilities/ezkielyna.json +12 -12
  106. package/dist/capabilities/fastrouter.json +73 -73
  107. package/dist/capabilities/fireworks-ai.json +83 -62
  108. package/dist/capabilities/freemodel.json +15 -15
  109. package/dist/capabilities/friendli.json +2 -2
  110. package/dist/capabilities/frogbot.json +99 -99
  111. package/dist/capabilities/gisoo.json +17 -17
  112. package/dist/capabilities/gmicloud.json +14 -14
  113. package/dist/capabilities/google.json +57 -57
  114. package/dist/capabilities/graphn.json +9 -9
  115. package/dist/capabilities/greenpt.json +36 -36
  116. package/dist/capabilities/groq.json +8 -8
  117. package/dist/capabilities/helicone.json +82 -82
  118. package/dist/capabilities/hopper.json +2 -2
  119. package/dist/capabilities/hostinger-router.json +10 -10
  120. package/dist/capabilities/hpc-ai.json +14 -14
  121. package/dist/capabilities/huawei-maas.json +16 -16
  122. package/dist/capabilities/hubris.json +29 -29
  123. package/dist/capabilities/huggingface.json +94 -84
  124. package/dist/capabilities/humain.json +2 -2
  125. package/dist/capabilities/hyper.json +23 -23
  126. package/dist/capabilities/impossibl.json +136 -136
  127. package/dist/capabilities/inception.json +2 -2
  128. package/dist/capabilities/inceptron.json +8 -8
  129. package/dist/capabilities/inco.json +2 -2
  130. package/dist/capabilities/infer.json +14 -14
  131. package/dist/capabilities/inferall.json +7 -7
  132. package/dist/capabilities/inference-coop.json +3 -3
  133. package/dist/capabilities/inferenceapis.json +20 -20
  134. package/dist/capabilities/inferris.json +3 -3
  135. package/dist/capabilities/infersia.json +8 -8
  136. package/dist/capabilities/inferx.json +3 -3
  137. package/dist/capabilities/infomaniak.json +2 -2
  138. package/dist/capabilities/io-net.json +4 -4
  139. package/dist/capabilities/isoquant.json +4 -4
  140. package/dist/capabilities/iteracompute.json +61 -61
  141. package/dist/capabilities/jalapeno.json +12 -12
  142. package/dist/capabilities/jiekou.json +60 -60
  143. package/dist/capabilities/joingonka.json +4 -4
  144. package/dist/capabilities/jzstoken.json +55 -55
  145. package/dist/capabilities/keln.json +25 -25
  146. package/dist/capabilities/kenari.json +122 -122
  147. package/dist/capabilities/kilo.json +633 -617
  148. package/dist/capabilities/kimi-code-plan-cn.json +6 -6
  149. package/dist/capabilities/kimi-code-plan-global.json +6 -6
  150. package/dist/capabilities/kitani.json +6 -6
  151. package/dist/capabilities/klavo.json +20 -20
  152. package/dist/capabilities/korouter.json +32 -32
  153. package/dist/capabilities/kunavo.json +9 -9
  154. package/dist/capabilities/liquid.json +12 -12
  155. package/dist/capabilities/lithosai.json +3 -3
  156. package/dist/capabilities/llmgateway-providers.json +912 -903
  157. package/dist/capabilities/llmgateway.json +346 -338
  158. package/dist/capabilities/llmtr.json +30 -30
  159. package/dist/capabilities/logits.json +2 -2
  160. package/dist/capabilities/lowrouter.json +53 -53
  161. package/dist/capabilities/lyceum.json +10 -10
  162. package/dist/capabilities/melious.json +12 -12
  163. package/dist/capabilities/merge-gateway.json +276 -276
  164. package/dist/capabilities/meta.json +10 -10
  165. package/dist/capabilities/mistral.json +21 -21
  166. package/dist/capabilities/mixlayer.json +2 -2
  167. package/dist/capabilities/modal.json +6 -6
  168. package/dist/capabilities/model-oracle-ai.json +25 -25
  169. package/dist/capabilities/modelis.json +15 -15
  170. package/dist/capabilities/modelscope.json +2 -2
  171. package/dist/capabilities/modular.json +6 -6
  172. package/dist/capabilities/moneo.json +14 -14
  173. package/dist/capabilities/moonshotai-cn.json +7 -7
  174. package/dist/capabilities/moonshotai.json +7 -7
  175. package/dist/capabilities/morph.json +16 -16
  176. package/dist/capabilities/munito-eu.json +6 -6
  177. package/dist/capabilities/munito.json +10 -10
  178. package/dist/capabilities/nan.json +24 -24
  179. package/dist/capabilities/nano-gpt.json +612 -579
  180. package/dist/capabilities/nearai.json +97 -97
  181. package/dist/capabilities/nebius.json +32 -32
  182. package/dist/capabilities/neon.json +131 -131
  183. package/dist/capabilities/neuralwatt.json +43 -43
  184. package/dist/capabilities/nokeep.json +4 -4
  185. package/dist/capabilities/novita-ai.json +148 -148
  186. package/dist/capabilities/nvidia.json +17 -49
  187. package/dist/capabilities/obscurify.json +26 -26
  188. package/dist/capabilities/oci.json +16 -7
  189. package/dist/capabilities/ofox.json +344 -344
  190. package/dist/capabilities/ollama-cloud.json +56 -56
  191. package/dist/capabilities/openai.json +81 -49
  192. package/dist/capabilities/opencode-go.json +90 -90
  193. package/dist/capabilities/openreason.json +5 -5
  194. package/dist/capabilities/openrouter.json +563 -547
  195. package/dist/capabilities/opper.json +29 -29
  196. package/dist/capabilities/orcarouter.json +252 -252
  197. package/dist/capabilities/outerlabs.json +33 -33
  198. package/dist/capabilities/ovhcloud.json +59 -5
  199. package/dist/capabilities/pareto.json +5 -5
  200. package/dist/capabilities/perplexity-agent.json +66 -66
  201. package/dist/capabilities/phala.json +30 -30
  202. package/dist/capabilities/pioneer.json +24 -24
  203. package/dist/capabilities/poe.json +117 -117
  204. package/dist/capabilities/poolside.json +2 -2
  205. package/dist/capabilities/powerspring.json +14 -14
  206. package/dist/capabilities/primalabs.json +11 -11
  207. package/dist/capabilities/prime.json +129 -113
  208. package/dist/capabilities/privatemode-ai.json +14 -14
  209. package/dist/capabilities/proxystacks.json +6 -6
  210. package/dist/capabilities/qiniu-ai.json +14 -14
  211. package/dist/capabilities/refuseless.json +5 -5
  212. package/dist/capabilities/regolo-ai.json +9 -9
  213. package/dist/capabilities/requesty.json +172 -172
  214. package/dist/capabilities/ruapi.json +18 -18
  215. package/dist/capabilities/runcrate.json +15 -15
  216. package/dist/capabilities/runinfra.json +16 -16
  217. package/dist/capabilities/sakana.json +6 -6
  218. package/dist/capabilities/sambanova.json +9 -9
  219. package/dist/capabilities/sandbase.json +21 -21
  220. package/dist/capabilities/sarvam.json +8 -8
  221. package/dist/capabilities/scaleway.json +18 -18
  222. package/dist/capabilities/scnet-token-plan.json +9 -9
  223. package/dist/capabilities/scx-ai.json +30 -30
  224. package/dist/capabilities/sensenova.json +8 -8
  225. package/dist/capabilities/siliconflow-cn.json +62 -62
  226. package/dist/capabilities/siliconflow.json +58 -58
  227. package/dist/capabilities/snowflake-cortex.json +22 -22
  228. package/dist/capabilities/sokkan.json +10 -10
  229. package/dist/capabilities/sparrowcodes.json +22 -22
  230. package/dist/capabilities/standardcompute.json +101 -101
  231. package/dist/capabilities/steadyrouter.json +43 -43
  232. package/dist/capabilities/stepfun-ai-step-plan.json +6 -6
  233. package/dist/capabilities/stepfun-ai.json +5 -5
  234. package/dist/capabilities/stepfun-step-plan.json +5 -5
  235. package/dist/capabilities/stepfun.json +5 -5
  236. package/dist/capabilities/stepping-stone.json +22 -22
  237. package/dist/capabilities/subconscious.json +2 -2
  238. package/dist/capabilities/superbot-gg.json +4 -4
  239. package/dist/capabilities/synthetic.json +14 -14
  240. package/dist/capabilities/synthorai.json +22 -22
  241. package/dist/capabilities/teamorouter.json +23 -23
  242. package/dist/capabilities/teapot-router.json +16 -16
  243. package/dist/capabilities/tencent-token-plan.json +57 -33
  244. package/dist/capabilities/tencent-tokenhub.json +48 -48
  245. package/dist/capabilities/tensorx.json +46 -46
  246. package/dist/capabilities/tenstorrent.json +2 -2
  247. package/dist/capabilities/the-grid-ai.json +31 -31
  248. package/dist/capabilities/thinkingmachines.json +44 -44
  249. package/dist/capabilities/tinfoil.json +11 -11
  250. package/dist/capabilities/toapis.json +3 -3
  251. package/dist/capabilities/togetherai.json +53 -51
  252. package/dist/capabilities/tokengo.json +24 -24
  253. package/dist/capabilities/tokenify.json +10 -10
  254. package/dist/capabilities/trustedrouter.json +6 -6
  255. package/dist/capabilities/trustedtokens.json +16 -16
  256. package/dist/capabilities/umans-ai-coding-plan.json +15 -15
  257. package/dist/capabilities/umans-ai.json +9 -9
  258. package/dist/capabilities/unrestricted.json +8 -8
  259. package/dist/capabilities/uplinkswitch.json +21 -21
  260. package/dist/capabilities/upstage.json +6 -6
  261. package/dist/capabilities/vancine.json +21 -21
  262. package/dist/capabilities/vercel.json +578 -578
  263. package/dist/capabilities/vivgrid.json +81 -81
  264. package/dist/capabilities/volcengine-coding-plan.json +26 -26
  265. package/dist/capabilities/volcengine.json +27 -27
  266. package/dist/capabilities/vultr.json +25 -25
  267. package/dist/capabilities/wafer.ai.json +18 -18
  268. package/dist/capabilities/wallaby.json +5 -5
  269. package/dist/capabilities/wally.json +12 -12
  270. package/dist/capabilities/wandb.json +19 -19
  271. package/dist/capabilities/watt.json +22 -22
  272. package/dist/capabilities/xai.json +7 -7
  273. package/dist/capabilities/xiaomi-token-plan-ams.json +2 -2
  274. package/dist/capabilities/xiaomi-token-plan-cn.json +2 -2
  275. package/dist/capabilities/xiaomi-token-plan-sgp.json +2 -2
  276. package/dist/capabilities/xiaomi.json +2 -2
  277. package/dist/capabilities/xpersona.json +11 -11
  278. package/dist/capabilities/xxapi.json +32 -32
  279. package/dist/capabilities/zai-coding-plan.json +16 -16
  280. package/dist/capabilities/zai.json +34 -32
  281. package/dist/capabilities/zenifra.json +26 -26
  282. package/dist/capabilities/zenmux.json +187 -187
  283. package/dist/capabilities/zerogpu.json +13 -13
  284. package/dist/capabilities/zhipuai-coding-plan.json +7 -7
  285. package/dist/capabilities/zhipuai.json +29 -29
  286. package/dist/capabilities/zro.json +6 -6
  287. package/dist/channels/agent-channels.d.ts +2 -1
  288. package/dist/channels/formatting.d.ts +8 -0
  289. package/dist/channels/index.cjs +4 -2
  290. package/dist/channels/index.d.ts +1 -1
  291. package/dist/channels/index.js +3 -3
  292. package/dist/channels/types.d.ts +5 -3
  293. package/dist/{channels-DSOCNoab.js → channels-Wh32drgu.js} +1 -1
  294. package/dist/{channels-D7bBM9xD.cjs → channels-tVV_de9Q.cjs} +1 -1
  295. package/dist/coding-agent/index.cjs +1 -1
  296. package/dist/coding-agent/index.js +1 -1
  297. package/dist/datasets/index.cjs +2 -2
  298. package/dist/datasets/index.js +2 -2
  299. package/dist/docs/SKILL.md +1 -1
  300. package/dist/docs/assets/SOURCE_MAP.json +789 -789
  301. package/dist/docs/references/docs-agents-resumable-streams.md +15 -6
  302. package/dist/docs/references/docs-deployment-workers.md +3 -1
  303. package/dist/docs/references/docs-harness-background-tasks.md +4 -4
  304. package/dist/docs/references/docs-harness-durable-agents.md +39 -48
  305. package/dist/docs/references/docs-knowledge-importers.md +1 -1
  306. package/dist/docs/references/docs-mastra-platform-observability-overview.md +1 -1
  307. package/dist/docs/references/docs-sandbox-overview.md +1 -0
  308. package/dist/docs/references/docs-server-pubsub.md +1 -1
  309. package/dist/docs/references/docs-workflows-overview.md +67 -3
  310. package/dist/docs/references/integrations-agentic-ui-assistant-ui.md +2 -0
  311. package/dist/docs/references/integrations-frameworks-angular.md +39 -0
  312. package/dist/docs/references/integrations-frameworks-astro.md +5 -2
  313. package/dist/docs/references/integrations-frameworks-electron.md +40 -0
  314. package/dist/docs/references/integrations-frameworks-next-js.md +5 -2
  315. package/dist/docs/references/integrations-frameworks-nuxt.md +5 -2
  316. package/dist/docs/references/integrations-frameworks-sveltekit.md +5 -2
  317. package/dist/docs/references/integrations-frameworks-vite-react.md +40 -0
  318. package/dist/docs/references/integrations.md +3 -0
  319. package/dist/docs/references/reference-agent-controller-agent-controller-class.md +6 -0
  320. package/dist/docs/references/reference-agents-channels.md +1 -1
  321. package/dist/docs/references/reference-agents-durable-agent.md +3 -3
  322. package/dist/docs/references/reference-agents-generate.md +2 -0
  323. package/dist/docs/references/reference-configuration.md +1 -1
  324. package/dist/docs/references/reference-core-mastra-class.md +2 -0
  325. package/dist/docs/references/reference-knowledge-knowledge-class.md +1 -1
  326. package/dist/docs/references/reference-knowledge-knowledge-tools.md +11 -5
  327. package/dist/docs/references/reference-pubsub-caching-pubsub.md +2 -2
  328. package/dist/docs/references/reference-pubsub-redis-streams.md +2 -2
  329. package/dist/docs/references/reference-pubsub-valkey-streams.md +2 -2
  330. package/dist/docs/references/reference-workers-overview.md +2 -0
  331. package/dist/docs/references/reference-workflows-workflow-methods-create-run.md +2 -0
  332. package/dist/docs/references/reference-workflows-workflow.md +2 -0
  333. package/dist/docs/references/reference.md +1 -0
  334. package/dist/error/index.cjs +2 -1
  335. package/dist/error/index.d.ts +1 -1
  336. package/dist/error/index.js +2 -2
  337. package/dist/error/provider-error.d.ts +2 -1
  338. package/dist/{error-BLwEXqOK.js → error-BC9Au-22.js} +13 -1
  339. package/dist/{error-BdEvO8za.cjs → error-L1V4uUbd.cjs} +18 -0
  340. package/dist/evals/index.cjs +1 -1
  341. package/dist/evals/index.js +1 -1
  342. package/dist/evals/scoreTraces/index.cjs +1 -1
  343. package/dist/evals/scoreTraces/index.js +1 -1
  344. package/dist/events/caching-pubsub.d.ts +28 -0
  345. package/dist/events/index.cjs +4 -1
  346. package/dist/events/index.js +2 -2
  347. package/dist/events/topics.d.ts +55 -9
  348. package/dist/harness/index.cjs +1 -1
  349. package/dist/harness/index.js +1 -1
  350. package/dist/index.cjs +1 -1
  351. package/dist/index.js +1 -1
  352. package/dist/{inmemory-BDD0w8gx.js → inmemory-BK3zLwvM.js} +42 -12
  353. package/dist/{inmemory-fgR8sq-U.cjs → inmemory-Dc86VWGB.cjs} +42 -12
  354. package/dist/knowledge/changes.d.ts +17 -5
  355. package/dist/knowledge/importers/runner.d.ts +6 -0
  356. package/dist/knowledge/index.cjs +78 -16
  357. package/dist/knowledge/index.d.ts +2 -2
  358. package/dist/knowledge/index.js +78 -16
  359. package/dist/knowledge/search-snippet.d.ts +30 -0
  360. package/dist/llm/index.cjs +3 -3
  361. package/dist/llm/index.js +3 -3
  362. package/dist/llm/model/provider-types.generated.d.ts +7986 -7970
  363. package/dist/{llm-DMNEZIV9.js → llm-B1zaFLYZ.js} +3 -3
  364. package/dist/{llm-BOQR5g0t.cjs → llm-BAiOsNAP.cjs} +3 -3
  365. package/dist/loop/index.cjs +2 -2
  366. package/dist/loop/index.js +2 -2
  367. package/dist/{manager-CyCR9IpR.cjs → manager-BVX9nVrM.cjs} +2 -2
  368. package/dist/{manager-BzNynLwT.js → manager-ChK9GdGz.js} +2 -2
  369. package/dist/mastra/index.cjs +1 -1
  370. package/dist/mastra/index.js +1 -1
  371. package/dist/{mastra-CqBmnzjM.js → mastra-CUGfgEpZ.js} +28 -18
  372. package/dist/{mastra-D2B01_gg.cjs → mastra-HSmofHEJ.cjs} +28 -18
  373. package/dist/memory/index.cjs +2 -2
  374. package/dist/memory/index.js +2 -2
  375. package/dist/{model-3AeJKHLU.js → model-C47BJRtR.js} +1 -1
  376. package/dist/{model-CrXDhcbw.cjs → model-WahorgzJ.cjs} +1 -1
  377. package/dist/{netlify-DUPSTzi6.js → netlify-CfDXkuLf.js} +2 -2
  378. package/dist/{netlify-DTXLQiG1.cjs → netlify-D99AnEhW.cjs} +2 -2
  379. package/dist/notifications/index.cjs +1 -1
  380. package/dist/notifications/index.js +1 -1
  381. package/dist/observability/index.cjs +1 -0
  382. package/dist/observability/index.d.ts +1 -1
  383. package/dist/observability/index.js +2 -2
  384. package/dist/{output-helpers-CedRCE17.js → output-helpers-CVzhy1Y0.js} +126 -56
  385. package/dist/{output-helpers-1Zu4Vt9C.cjs → output-helpers-DgsH4aTb.cjs} +143 -55
  386. package/dist/processor-provider/index.cjs +1 -1
  387. package/dist/processor-provider/index.js +1 -1
  388. package/dist/processors/index.cjs +2 -2
  389. package/dist/processors/index.js +2 -2
  390. package/dist/processors/runner.d.ts +2 -0
  391. package/dist/{provider-registry-B_rC-5aL.cjs → provider-registry-CO1NVbO5.cjs} +22281 -22258
  392. package/dist/{provider-registry-BeB8RQO8.js → provider-registry-CR385GJ4.js} +22281 -22258
  393. package/dist/provider-registry.json +22871 -22855
  394. package/dist/{registry-generator-Cv6GnxLG.js → registry-generator-B3erRqYS.js} +1 -1
  395. package/dist/{registry-generator-DbBoIOby.cjs → registry-generator-Cvp34qcB.cjs} +1 -1
  396. package/dist/{rehydrate-3f-i1Ga2.js → rehydrate-CJBLrZxs.js} +2 -2
  397. package/dist/{rehydrate-BWaa2eGN.cjs → rehydrate-Da4hNuaK.cjs} +2 -2
  398. package/dist/relevance/index.cjs +2 -2
  399. package/dist/relevance/index.js +2 -2
  400. package/dist/{run-registry-Bx06ZIN_.js → run-registry-DdeEBsVW.js} +1639 -568
  401. package/dist/{run-registry-Bk6QxNE4.cjs → run-registry-TOOfO3hT.cjs} +1668 -567
  402. package/dist/storage/domains/inmemory-db.d.ts +1 -0
  403. package/dist/storage/domains/knowledge/base.d.ts +5 -0
  404. package/dist/storage/domains/knowledge/inmemory.d.ts +1 -0
  405. package/dist/storage/domains/knowledge/pages-inmemory.d.ts +10 -2
  406. package/dist/storage/domains/knowledge/pages.d.ts +30 -0
  407. package/dist/storage/index.cjs +2 -2
  408. package/dist/storage/index.js +2 -2
  409. package/dist/storage/run-fencing.d.ts +5 -0
  410. package/dist/stream/index.cjs +2 -2
  411. package/dist/stream/index.js +2 -2
  412. package/dist/{stream-DVy0Z-m0.js → stream-C5PagEDs.js} +3 -3
  413. package/dist/{stream-BIXX67WE.cjs → stream-DH7Qgz8l.cjs} +3 -3
  414. package/dist/test-utils/llm-mock.cjs +1 -1
  415. package/dist/test-utils/llm-mock.js +1 -1
  416. package/dist/tool-loop-agent/index.cjs +1 -1
  417. package/dist/tool-loop-agent/index.js +1 -1
  418. package/dist/{tool-loop-agent-DDeKGwtr.cjs → tool-loop-agent-CJTs4T8b.cjs} +3 -3
  419. package/dist/{tool-loop-agent-PSKeNhuT.js → tool-loop-agent-DVYJXlQJ.js} +3 -3
  420. package/dist/{utils-BJiQF8Pi.js → utils-D8upuTwy.js} +1 -1
  421. package/dist/{utils-CAnUlnUm.cjs → utils-xJi_N6Tx.cjs} +1 -1
  422. package/dist/utils.cjs +1 -1
  423. package/dist/utils.js +1 -1
  424. package/dist/{validate-BMNxfs4Z.cjs → validate-6eZ8Wssn.cjs} +1 -1
  425. package/dist/{validate-BAVwAgtT.js → validate-DTkW3Vlp.js} +1 -1
  426. package/dist/vector/index.cjs +1 -1
  427. package/dist/vector/index.js +1 -1
  428. package/dist/worker/index.cjs +1 -1
  429. package/dist/worker/index.js +1 -1
  430. package/dist/{worker-CFUKBBCF.cjs → worker-24ORi-wV.cjs} +2 -2
  431. package/dist/{worker-Brwa-HqM.cjs → worker-BO3u_WjZ.cjs} +2 -2
  432. package/dist/{worker-BlvJM_Hu.js → worker-DbcFkKJO.js} +2 -2
  433. package/dist/{worker-CVoD3tts.js → worker-Dqubrnf8.js} +2 -2
  434. package/dist/{workflow-zvQGBMCM.cjs → workflow-D5Fc5ieC.cjs} +4 -4
  435. package/dist/{workflow-BSLS7_vB.js → workflow-wXOf72fO.js} +4 -4
  436. package/dist/workflows/builder/index.cjs +1 -1
  437. package/dist/workflows/builder/index.js +1 -1
  438. package/dist/workflows/evented/index.cjs +1 -1
  439. package/dist/workflows/evented/index.js +1 -1
  440. package/dist/workflows/index.cjs +4 -4
  441. package/dist/workflows/index.js +4 -4
  442. package/dist/workflows/run-ownership.d.ts +74 -8
  443. package/dist/workflows/types.d.ts +16 -0
  444. package/dist/workflows/workflow.d.ts +4 -0
  445. package/package.json +6 -6
  446. package/src/llm/model/provider-types.generated.d.ts +7986 -7970
@@ -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-TOOfO3hT.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-DH7Qgz8l.cjs");
5
5
  const require_storage = require("../storage-CfG0I2aF.cjs");
6
6
  const require_constants = require("../constants-B9ZDvXZ4.cjs");
7
7
  const require_filesystem_versioned = require("../filesystem-versioned-BavRtYWJ.cjs");
@@ -1,6 +1,6 @@
1
- import { $a as spanQueryIdentitySchema, $n as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, $r as InMemoryMemory, Aa as tracePageRequestSchema, Ai as assertKnowledgeNoteTextWithinBound, Ar as WorkflowDefinitionsStorage, Ba as SPAN_QUERY_MAX_COST_METRICS, Bi as InMemoryHarness, Br as dispatchDueNotifications, Bs as WorkflowStepConflictError, Ca as transformRow, Ci as MAX_KNOWLEDGE_PAGE_BODY_LINKS, Cr as WorkflowsInMemory, Da as readTracePage, Di as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, Dr as mergeStepResult, Ea as TracePageError, Ei as MAX_KNOWLEDGE_PAGE_LINKS, Er as createEmptyWorkflowSnapshot, Fa as planThreadRowsQuery, Fi as knowledgePinDepth, Fr as InMemorySchedulesStorage, Ga as buildSpanQueryResponse, Gi as DatasetsStorage, Gl as currentRunGeneration, Ha as SPAN_QUERY_MAX_LIMIT, Hi as ExperimentsInMemory, Hl as RUN_FENCING_NOT_SUPPORTED_ERROR_ID, Hs as isWorkflowStepConflictError, Ia as threadQueryIdentitySchema, Ii as knowledgePositionBetween, Ir as SchedulesStorage, Ja as parseSpanQueryRequest, Jl as resolveRunFence, Ka as createSpanQueryPreview, Ki as DatasetItemIdentityConflictError, Kl as isRunFenceConflictError, La as threadQueryRequestSchema, Li as knowledgeScopeReadable, Lr as normalizeScheduleTarget, Ma as THREAD_QUERY_DEFAULT_LIMIT, Mi as canonicalKnowledgeName, Mr as ToolProviderConnectionsStorage, Na as THREAD_QUERY_MAX_LIMIT, Ni as knowledgeLinkRefKey, Nr as ScoresInMemory, Oa as tracePageIdSchema, Oi as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, Or as mergeWorkflowStepResult, Pa as encodeThreadQueryCursor, Pi as knowledgePagePath, Pr as ScoresStorage, Qa as spanQueryIdentityKey, Ra as threadQueryResponseSchema, Ri as parseKnowledgePageRef, Rr as InMemoryNotificationsStorage, Sa as storageMessageMatchesMetadataFilter, Si as MAX_KNOWLEDGE_NOTE_TOKENS, So as UniqueViolationError, Sr as MockStore, Ta as validateStorageMetadataFilter, Ti as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, Tr as WorkflowsStorage, Ua as SPAN_QUERY_MAX_PREVIEW_CHARACTERS, Ui as ExperimentsStorage, Ul as RunFenceConflictError, Va as SPAN_QUERY_MAX_CURSOR_BYTES, Vi as HarnessStorage, Vl as RUN_FENCE_CONFLICT_ERROR_ID, Vs as assertWorkflowStepGuard, Wa as SPAN_QUERY_ORDER_FIELDS, Wi as DatasetsInMemory, Wl as coverNestedRun, Xa as resolveSpanQueryCost, Xl as runOutsideRunFenceScope, Ya as planSpanQuery, Yl as runFencingNotSupportedError, Za as spanQueryCostSchema, Zl as setRunFenceContext, _a as hasErrorCode, _i as KnowledgeMoveTooLargeError, _o as toEntityType, _r as GitHubSourceControlProvider, aa as BackgroundTasksStorage, ai as KNOWLEDGE_STORAGE_CONTRACT_VERSION, ao as getTraceQueryDeltaWatermark, ar as assertKnowledgeScopeWithinCeiling, ba as safelyParseJSON, bi as KnowledgePageKeyConflictError, bo as FactoryStorage, br as FilesystemDB, ca as retentionCutoffMs, ci as KnowledgeNotFoundError, co as buildCreateSpanRecord, cr as expandKnowledgeScope, da as createStoreErrorId, di as KnowledgeTransactionDeadlineError, do as buildMetricRecord, dr as knowledgeSemanticDocumentId, ea as InMemoryChannelsStorage, ei as MemoryStorage, eo as spanQueryRequestSchema, er as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, fa as createVectorErrorId, fi as KnowledgeUnsupportedCapabilityError, fo as buildScoreRecord, fr as knowledgeSemanticIdempotencyKey, ga as getSqlType, gi as parseKnowledgeWikilinks, go as serializeSpanAttributes, gr as StoreOperations, ha as getDefaultValue, hi as inspectKnowledgeSchema, ho as getStringOrNull, hr as StoreOperationsInMemory, ia as BackgroundTasksInMemory, ii as KnowledgeImportersStorage, io as encodeTraceQueryDeltaCursor, ir as assertKnowledgeRecordTextWithinBound, ja as tracePageResponseSchema, ji as assertKnowledgePageDescriptionWithinBound, jr as InMemoryToolProviderConnectionsStorage, ka as tracePageNodeSchema, ki as MAX_KNOWLEDGE_PIN_LIST_DEPTH, kr as InMemoryWorkflowDefinitionsStorage, la as runRetentionBatches, li as KnowledgeSchemaResetRequiredError, lo as buildFeedbackRecord, lr as isKnowledgeScopeVisible, ma as filterByDateRange, mi as createKnowledgeUlid, mo as getObjectOrNull, mr as parseKnowledgeNodeCursor, na as InMemoryBlobStore, ni as KnowledgeImporterBindingConflictError, no as spanQueryRowSchema, nr as assertKnowledgeCeilingRaised, oa as executeRetentionPrune, oi as KNOWLEDGE_STORAGE_SCHEMA_VERSION, oo as planThreadQuery, or as canonicalizeKnowledgeScope, pa as ensureDate, pi as assertKnowledgeSchemaCompatible, po as buildUpdateSpanRecord, pr as knowledgeVisibleScopeKeys, qa as encodeSpanQueryCursor, ql as matchesRunFence, ra as BlobStore, ri as KnowledgeImporterRunStateError, ro as encodeTraceQueryCursor, rr as assertKnowledgeDescriptionWithinBound, sa as resolveRetentionTargets, si as KnowledgeConflictError, so as planTraceQuery, sr as createKnowledgeNodeCursor, ta as ChannelsStorage, ti as InMemoryKnowledgeStorage, to as spanQueryResponseSchema, tr as MAX_KNOWLEDGE_SCOPE_TAGS, ua as createStorageErrorId, ui as KnowledgeStorage, uo as buildLogRecord, ur as knowledgeScopeKey, va as jsonValueEquals, vi as KnowledgePageDepthError, vo as ObservabilityInMemory, vr as createGitHubSourceControlProviderFromEnv, wa as transformScoreRow, wi as MAX_KNOWLEDGE_PAGE_DEPTH, wr as cloneRunData, xa as serializeDate, xi as MAX_KNOWLEDGE_MOVE_PAGES, xo as FactoryStorageDomain, xr as InMemoryStore, ya as parseDuration, yi as KnowledgePageHasChildrenError, yo as ObservabilityStorage, yr as FilesystemStore, za as threadQueryRowSchema, zi as KnowledgeInvalidCursorError, zr as NotificationsStorage } from "../run-registry-Bx06ZIN_.js";
1
+ import { $a as planSpanQuery, $l as resolveRunFence, Aa as TracePageError, Ai as MAX_KNOWLEDGE_PAGE_LINKS, Ar as createEmptyWorkflowSnapshot, Ba as threadQueryIdentitySchema, Bi as knowledgePositionBetween, Br as SchedulesStorage, Ca as parseDuration, Ci as KnowledgePageHasChildrenError, Co as ObservabilityStorage, Cr as FilesystemStore, Da as transformRow, Di as MAX_KNOWLEDGE_PAGE_BODY_LINKS, Dr as WorkflowsInMemory, Ea as storageMessageMatchesMetadataFilter, Ei as MAX_KNOWLEDGE_NOTE_TOKENS, Eo as UniqueViolationError, Er as MockStore, Fa as tracePageResponseSchema, Fi as assertKnowledgePageDescriptionWithinBound, Fr as InMemoryToolProviderConnectionsStorage, Ga as SPAN_QUERY_MAX_CURSOR_BYTES, Gi as HarnessStorage, Gl as isWorkflowStepConflictError, Ha as threadQueryResponseSchema, Hi as parseKnowledgePageRef, Hr as InMemoryNotificationsStorage, Ia as THREAD_QUERY_DEFAULT_LIMIT, Ii as canonicalKnowledgeName, Ir as ToolProviderConnectionsStorage, Ja as SPAN_QUERY_ORDER_FIELDS, Ji as DatasetsInMemory, Jl as RunFenceConflictError, Ka as SPAN_QUERY_MAX_LIMIT, Ki as ExperimentsInMemory, Kl as RUN_FENCE_CONFLICT_ERROR_ID, La as THREAD_QUERY_MAX_LIMIT, Li as knowledgeLinkRefKey, Lr as ScoresInMemory, Ma as tracePageIdSchema, Mi as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, Mr as mergeWorkflowStepResult, Na as tracePageNodeSchema, Ni as MAX_KNOWLEDGE_PIN_LIST_DEPTH, Nr as InMemoryWorkflowDefinitionsStorage, Oa as transformScoreRow, Oi as MAX_KNOWLEDGE_PAGE_DEPTH, Or as cloneRunData, Pa as tracePageRequestSchema, Pi as assertKnowledgeNoteTextWithinBound, Pr as WorkflowDefinitionsStorage, Qa as parseSpanQueryRequest, Ql as matchesRunFence, Ra as encodeThreadQueryCursor, Ri as knowledgePagePath, Rr as ScoresStorage, Sa as jsonValueEquals, Si as KnowledgePageDepthError, So as ObservabilityInMemory, Sr as createGitHubSourceControlProviderFromEnv, Ta as serializeDate, Ti as MAX_KNOWLEDGE_MOVE_PAGES, To as FactoryStorageDomain, Tr as InMemoryStore, Ua as threadQueryRowSchema, Ui as KnowledgeInvalidCursorError, Ul as WorkflowStepConflictError, Ur as NotificationsStorage, Va as threadQueryRequestSchema, Vi as knowledgeScopeReadable, Vr as normalizeScheduleTarget, Wa as SPAN_QUERY_MAX_COST_METRICS, Wi as InMemoryHarness, Wl as assertWorkflowStepGuard, Wr as dispatchDueNotifications, Xa as createSpanQueryPreview, Xi as DatasetItemIdentityConflictError, Xl as currentRunGeneration, Ya as buildSpanQueryResponse, Yi as DatasetsStorage, Yl as coverNestedRun, Za as encodeSpanQueryCursor, Zl as isRunFenceConflictError, _a as ensureDate, _i as assertKnowledgeSchemaCompatible, _o as buildUpdateSpanRecord, _r as knowledgeVisibleScopeKeys, aa as ChannelsStorage, ai as InMemoryKnowledgeStorage, ao as spanQueryResponseSchema, ar as MAX_KNOWLEDGE_SCOPE_TAGS, ba as getSqlType, bi as parseKnowledgeWikilinks, bo as serializeSpanAttributes, br as StoreOperations, ca as BackgroundTasksInMemory, ci as KnowledgeImportersStorage, co as encodeTraceQueryDeltaCursor, cr as assertKnowledgeRecordTextWithinBound, da as resolveRetentionTargets, di as KnowledgeConflictError, do as planTraceQuery, dr as createKnowledgeNodeCursor, eo as resolveSpanQueryCost, eu as runFencingNotSupportedError, fa as retentionCutoffMs, fi as KnowledgeNotFoundError, fo as buildCreateSpanRecord, fr as expandKnowledgeScope, ga as createVectorErrorId, gi as KnowledgeUnsupportedCapabilityError, go as buildScoreRecord, gr as knowledgeSemanticIdempotencyKey, ha as createStoreErrorId, hi as KnowledgeTransactionDeadlineError, ho as buildMetricRecord, hr as knowledgeSemanticDocumentId, ia as InMemoryChannelsStorage, ii as MemoryStorage, io as spanQueryRequestSchema, ir as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, ja as readTracePage, ji as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, jr as mergeStepResult, ka as validateStorageMetadataFilter, ki as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, kr as WorkflowsStorage, la as BackgroundTasksStorage, li as KNOWLEDGE_STORAGE_CONTRACT_VERSION, lo as getTraceQueryDeltaWatermark, lr as assertKnowledgeScopeWithinCeiling, ma as createStorageErrorId, mi as KnowledgeStorage, mo as buildLogRecord, mr as knowledgeScopeKey, no as spanQueryIdentityKey, nu as setRunFenceContext, oa as InMemoryBlobStore, oi as KnowledgeImporterBindingConflictError, oo as spanQueryRowSchema, or as assertKnowledgeCeilingRaised, pa as runRetentionBatches, pi as KnowledgeSchemaResetRequiredError, po as buildFeedbackRecord, pr as isKnowledgeScopeVisible, qa as SPAN_QUERY_MAX_PREVIEW_CHARACTERS, qi as ExperimentsStorage, ql as RUN_FENCING_NOT_SUPPORTED_ERROR_ID, ri as InMemoryMemory, ro as spanQueryIdentitySchema, rr as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, sa as BlobStore, si as KnowledgeImporterRunStateError, so as encodeTraceQueryCursor, sr as assertKnowledgeDescriptionWithinBound, to as spanQueryCostSchema, tu as runOutsideRunFenceScope, ua as executeRetentionPrune, ui as KNOWLEDGE_STORAGE_SCHEMA_VERSION, uo as planThreadQuery, ur as canonicalizeKnowledgeScope, va as filterByDateRange, vi as createKnowledgeUlid, vo as getObjectOrNull, vr as parseKnowledgeNodeCursor, wa as safelyParseJSON, wi as KnowledgePageKeyConflictError, wo as FactoryStorage, wr as FilesystemDB, xa as hasErrorCode, xi as KnowledgeMoveTooLargeError, xo as toEntityType, xr as GitHubSourceControlProvider, ya as getDefaultValue, yi as inspectKnowledgeSchema, yo as getStringOrNull, yr as StoreOperationsInMemory, za as planThreadRowsQuery, zi as knowledgePinDepth, zr as InMemorySchedulesStorage } from "../run-registry-DdeEBsVW.js";
2
2
  import { a as PREVIEW_MAX_LENGTH } from "../observability-D7RNOAPx.js";
3
- import { At as STATE_CHECKPOINT_PATCHES, Bt as summarizeStepResult, Ft as materializeState, Ht as applyStatePatch, It as materializeWorkflowRun, Lt as pickStateKeys, Mt as applyStateColumnsWrite, Nt as isStateCheckpointDue, Pt as latestStepResults, Rt as stateBaseOf, Ut as diffState, Vt as unusedStateEntries, jt as STEP_RESULT_SUMMARY_FIELDS, kt as getSnapshotMemoryInfo, zt as stateColumnsWrite } from "../stream-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-C5PagEDs.js";
4
4
  import { $ as getFeedbackAggregateArgsSchema, $t as metricsFilterSchema, A as deleteScoresResponseSchema, An as tagsField, At as getServiceNamesResponseSchema, B as experimentIdField, Bt as listScoresArgsSchema, C as dateRangeSchema, Cn as scoresOrderBySchema, Ct as getScoreBreakdownArgsSchema, D as deleteFeedbackArgsSchema, Dn as sourceField, Dt as getScoreTimeSeriesArgsSchema, E as defaultPaginationArgs, En as sortDirectionSchema, Et as getScorePercentilesResponseSchema, F as entityIdField, Fn as userIdField, Ft as listLogsArgsSchema, G as feedbackRecordSchema, Gt as logsFilterSchema, H as feedbackInputSchema, Ht as logLevelSchema, I as entityNameField, It as listLogsResponseSchema, J as getEntityNamesResponseSchema, Jt as metadataField, K as feedbackReviewStatusSchema, Kt as logsOrderByFieldSchema, L as entityTypeField, Lt as listMetricsArgsSchema, M as deltaInfoSchema, Mn as traceIdField, Mt as getTagsResponseSchema, N as deltaLimitSchema, Nn as updateFeedbackReviewStatusArgsSchema, Nt as listFeedbackArgsSchema, O as deleteFeedbackResponseSchema, On as spanContextFields, Ot as getScoreTimeSeriesResponseSchema, P as distinctColumnSchema, Pn as updatedAtField, Pt as listFeedbackResponseSchema, Q as getEnvironmentsResponseSchema, Qt as metricsAggregationSchema, R as environmentField, Rt as listMetricsResponseSchema, S as createdAtField, Sn as scoresOrderByFieldSchema, St as getScoreAggregateResponseSchema, T as defaultDeltaLimit, Tn as sessionIdField, Tt as getScorePercentilesArgsSchema, U as feedbackOrderByFieldSchema, Ut as logRecordInputSchema, V as feedbackFilterSchema, Vt as listScoresResponseSchema, W as feedbackOrderBySchema, Wt as logRecordSchema, X as getEntityTypesResponseSchema, Xt as metricRecordSchema, Y as getEntityTypesArgsSchema, Yt as metricInputSchema, Z as getEnvironmentsArgsSchema, Zt as metricTypeSchema, _ as createMetricRecordSchema, _n as runIdField, _t as getMetricPercentilesArgsSchema, a as batchCreateFeedbackArgsSchema, an as paginationInfoSchema, at as getFeedbackTimeSeriesArgsSchema, b as createScoreRecordSchema, bn as scoreRecordSchema, bt as getMetricTimeSeriesResponseSchema, c as batchCreateScoresArgsSchema, cn as parentEntityTypeField, ct as getMetricAggregateResponseSchema, d as contextFields, dn as requestIdField, dt as getMetricLabelKeysArgsSchema, en as metricsOrderByFieldSchema, et as getFeedbackAggregateResponseSchema, f as createFeedbackArgsSchema, ft as getMetricLabelKeysResponseSchema, g as createLogRecordSchema, gn as rootEntityTypeField, gt as getMetricNamesResponseSchema, h as createFeedbackResponseSchema, hn as rootEntityNameField, ht as getMetricNamesArgsSchema, i as aggregationTypeSchema, in as paginationArgsSchema, it as getFeedbackPercentilesResponseSchema, j as deltaCursorSchema, jn as threadIdField, jt as getTagsArgsSchema, k as deleteScoresArgsSchema, kn as spanIdField, kt as getServiceNamesArgsSchema, l as commonFilterFields, ln as refineObservabilityListMode, lt as getMetricBreakdownArgsSchema, m as createFeedbackRecordSchema, mn as rootEntityIdField, mt as getMetricLabelValuesResponseSchema, n as METRIC_DISTINCT_COLUMNS, nn as normalizeObservabilityListArgs, nt as getFeedbackBreakdownResponseSchema, o as batchCreateLogsArgsSchema, on as parentEntityIdField, ot as getFeedbackTimeSeriesResponseSchema, p as createFeedbackBodySchema, pn as resourceIdField, pt as getMetricLabelValuesArgsSchema, q as getEntityNamesArgsSchema, qt as logsOrderBySchema, r as aggregationIntervalSchema, rn as organizationIdField, rt as getFeedbackPercentilesArgsSchema, s as batchCreateMetricsArgsSchema, sn as parentEntityNameField, st as getMetricAggregateArgsSchema, t as EntityType, tn as metricsOrderBySchema, tt as getFeedbackBreakdownArgsSchema, u as comparePeriodSchema, un as replaceFeedbackBodySchema, ut as getMetricBreakdownResponseSchema, v as createScoreArgsSchema, vn as scopeField, vt as getMetricPercentilesResponseSchema, w as dbTimestamps, wn as serviceNameField, wt as getScoreBreakdownResponseSchema, x as createScoreResponseSchema, xn as scoresFilterSchema, xt as getScoreAggregateArgsSchema, y as createScoreBodySchema, yn as scoreInputSchema, yt as getMetricTimeSeriesArgsSchema, z as executionSourceField, zt as listModeSchema } from "../storage-Cc50aQAp.js";
5
5
  import { $ as TABLE_CHANNEL_INSTALLATIONS, $n as listTracesLightResponseSchema, $t as TABLE_WORKSPACES, A as MCP_CLIENTS_SCHEMA, An as computeTraceStatus, At as TABLE_OBSERVATIONAL_MEMORY, B as PROMPT_BLOCK_VERSIONS_SCHEMA, Bn as getSpansArgsSchema, Bt as TABLE_SKILLS, C as KNOWLEDGE_SCOPE_GRANTS_SCHEMA, Cn as branchesFilterSchema, Ct as TABLE_MCP_CLIENTS, D as KNOWLEDGE_V2_MENTIONS_SCHEMA, Dn as buildPreview, Dt as TABLE_MEMORY_RUN_FENCES, E as KNOWLEDGE_V2_ACTIVITY_SCHEMA, En as buildInputPreview, Et as TABLE_MCP_SERVER_VERSIONS, F as NOTIFICATIONS_SCHEMA, Fn as getBranchResponseSchema, Ft as TABLE_SCHEDULE_TRIGGERS, G as SKILLS_SCHEMA, Gn as getTraceLightResponseSchema, Gt as TABLE_THREAD_STATE, H as SCORERS_SCHEMA, Hn as getStringAttribute, Ht as TABLE_SKILL_VERSIONS, I as OBSERVATIONAL_MEMORY_SCHEMA, In as getRootSpanArgsSchema, It as TABLE_SCHEMAS, J as SPAN_SCHEMA, Jn as lightSpanRecordSchema, Jt as TABLE_WORKFLOW_DEFINITIONS, K as SKILL_BLOBS_SCHEMA, Kn as getTraceResponseSchema, Kt as TABLE_TOOL_PROVIDER_CONNECTIONS, L as OBSERVATIONAL_MEMORY_TABLE_SCHEMA, Ln as getRootSpanResponseSchema, Lt as TABLE_SCORERS, M as MCP_SERVERS_SCHEMA, Mn as createSpanRecordSchema, Mt as TABLE_PROMPT_BLOCK_VERSIONS, N as MCP_SERVER_VERSIONS_SCHEMA, Nn as extractBranchSpans, Nt as TABLE_RESOURCES, O as KNOWLEDGE_V2_NODES_SCHEMA, On as buildPreviewFromJson, Ot as TABLE_MESSAGES, P as MEMORY_RUN_FENCES_SCHEMA, Pn as getBranchArgsSchema, Pt as TABLE_SCHEDULES, Q as TABLE_CHANNEL_CONFIG, Qn as listTracesArgsSchema, Qt as TABLE_WORKFLOW_SNAPSHOT, R as OLD_SPAN_SCHEMA, Rn as getSpanArgsSchema, Rt as TABLE_SCORER_DEFINITIONS, S as KNOWLEDGE_SCOPE_ADDRESSES_SCHEMA, Sn as batchUpdateSpansArgsSchema, St as TABLE_KNOWLEDGE_SEMANTIC_OUTBOX, T as KNOWLEDGE_TABLE_NAMES, Tn as branchesOrderBySchema, Tt as TABLE_MCP_SERVERS, U as SCORER_DEFINITIONS_SCHEMA, Un as getStructureResponseSchema, Ut as TABLE_SPANS, V as RUN_FENCING_TABLE_SCHEMAS, Vn as getSpansResponseSchema, Vt as TABLE_SKILL_BLOBS, W as SCORER_DEFINITION_VERSIONS_SCHEMA, Wn as getTraceArgsSchema, Wt as TABLE_THREADS, X as TABLE_AGENT_VERSIONS, Xn as listBranchesResponseSchema, Xt as TABLE_WORKFLOW_RUN_ENTRIES, Y as TABLE_AGENTS, Yn as listBranchesArgsSchema, Yt as TABLE_WORKFLOW_RUNS, Z as TABLE_BACKGROUND_TASKS, Zn as listScoresBySpanResponseSchema, Zt as TABLE_WORKFLOW_RUN_OWNERS, _ as KNOWLEDGE_NODE_ADDRESSES_SCHEMA, _n as INPUT_PREVIEW_MAX_LENGTH, _r as isAppendOnlySince, _t as TABLE_KNOWLEDGE_PROPOSALS, a as DATASET_VERSIONS_SCHEMA, an as WORKFLOW_RUN_ENTRIES_SCHEMA, ar as spanRecordSchema, at as TABLE_EXPERIMENT_RESULTS, b as KNOWLEDGE_RECORDS_SCHEMA, bn as batchDeleteTracesArgsSchema, br as maxObservationCursor, bt as TABLE_KNOWLEDGE_SCOPE_ADDRESSES, c as FAVORITES_SCHEMA, cn as WORKSPACES_SCHEMA, cr as toTraceSpans, ct as TABLE_KNOWLEDGE_ACCESS_STATE, d as KNOWLEDGE_ACTIVITY_SCHEMA, dn as STORAGE_VISIBILITY_VALUES, dr as tracesOrderByFieldSchema, dt as TABLE_KNOWLEDGE_IMPORT_RUNS, en as TABLE_WORKSPACE_VERSIONS, er as listTracesResponseSchema, et as TABLE_CONFIGS, f as KNOWLEDGE_CURSORS_SCHEMA, fn as buildStorageSchema, fr as tracesOrderBySchema, ft as TABLE_KNOWLEDGE_IMPORT_STATE, g as KNOWLEDGE_NODES_SCHEMA, gn as BRANCH_SPAN_TYPE_SET, gr as compareObservationalMemoryHeadOrder, gt as TABLE_KNOWLEDGE_NODE_SCOPES, h as KNOWLEDGE_MENTIONS_SCHEMA, hn as BRANCH_SPAN_TYPES, hr as assertActiveObservationsApplied, ht as TABLE_KNOWLEDGE_NODE_ADDRESSES, i as DATASET_ITEMS_SCHEMA, in as WORKFLOW_RUNS_SCHEMA, ir as spanIdsSchema, it as TABLE_EXPERIMENTS, j as MCP_CLIENT_VERSIONS_SCHEMA, jn as createSpanArgsSchema, jt as TABLE_PROMPT_BLOCKS, k as KNOWLEDGE_V2_RECORDS_SCHEMA, kn as buildStoredPreview, kt as TABLE_NOTIFICATIONS, l as HARNESS_SESSIONS_SCHEMA, ln as WORKSPACE_VERSIONS_SCHEMA, lr as traceSpanSchema, lt as TABLE_KNOWLEDGE_ACTIVITY, m as KNOWLEDGE_IMPORT_STATE_SCHEMA, mn as BATCH_DELETE_TRACES_MAX_IDS, mr as updateSpanRecordSchema, mt as TABLE_KNOWLEDGE_NODES, n as AGENT_VERSIONS_SCHEMA, nn as TOOL_PROVIDER_CONNECTIONS_SCHEMA, nr as scoreTracesResponseSchema, nt as TABLE_DATASET_ITEMS, o as EXPERIMENTS_SCHEMA, on as WORKFLOW_RUN_JOURNAL_TABLE_CONFIGS, or as toLightSpanRecord, ot as TABLE_FAVORITES, p as KNOWLEDGE_IMPORT_RUNS_SCHEMA, pn as matchesExpectedWorkflowStatus, pr as updateSpanArgsSchema, pt as TABLE_KNOWLEDGE_MENTIONS, q as SKILL_VERSIONS_SCHEMA, qn as isPreviewTruncated, qt as TABLE_TRACES, r as DATASETS_SCHEMA, rn as WORKFLOW_DEFINITIONS_SCHEMA, rr as spanIds, rt as TABLE_DATASET_VERSIONS, s as EXPERIMENT_RESULTS_SCHEMA, sn as WORKFLOW_RUN_OWNERS_SCHEMA, sr as toTraceSpan, st as TABLE_HARNESS_SESSIONS, t as AGENTS_SCHEMA, tn as THREAD_STATE_SCHEMA, tr as scoreTracesRequestSchema, tt as TABLE_DATASETS, u as KNOWLEDGE_ACCESS_STATE_SCHEMA, un as STORAGE_FAVORITE_ENTITY_TYPES, ur as tracesFilterSchema, ut as TABLE_KNOWLEDGE_CURSORS, v as KNOWLEDGE_NODE_SCOPES_SCHEMA, vn as TraceStatus, vr as isBufferedChunkCoveredByCursor, vt as TABLE_KNOWLEDGE_RECORDS, w as KNOWLEDGE_SEMANTIC_OUTBOX_SCHEMA, wn as branchesOrderByFieldSchema, wt as TABLE_MCP_CLIENT_VERSIONS, x as KNOWLEDGE_RECORD_SCOPES_SCHEMA, xn as batchDeleteTracesResponseSchema, xr as planReflectionGenerationText, xt as TABLE_KNOWLEDGE_SCOPE_GRANTS, y as KNOWLEDGE_PROPOSALS_SCHEMA, yn as batchCreateSpansArgsSchema, yr as isBufferedReflectionUnchangedSince, yt as TABLE_KNOWLEDGE_RECORD_SCOPES, z as PROMPT_BLOCKS_SCHEMA, zn as getSpanResponseSchema, zt as TABLE_SCORER_DEFINITION_VERSIONS } from "../constants-BmdTvEYN.js";
6
6
  import { _ as ThreadStateStorage, a as GitHistory, c as DOMAIN_KEYS, d as MastraStorage, f as calculatePagination, g as InMemoryThreadStateStorage, h as resolveListOrderBy, i as getSourceControlEntityFilePath, l as EDITOR_DOMAINS, m as normalizePerPage, n as SOURCE_CONTROL_AGENTS_DIR, o as VersionedStorageDomain, p as compareByField, r as getSourceAgentFilePath, s as StorageDomain, t as FilesystemVersionedHelpers, u as MastraCompositeStore } from "../filesystem-versioned-BL1ojJLo.js";
@@ -38,6 +38,11 @@ export interface RunOwnershipRecord {
38
38
  leaseExpiresAt: Date | null;
39
39
  /** Whether the owner holds an unexpired lease, judged on the store's clock. */
40
40
  live: boolean;
41
+ /**
42
+ * When the record last changed (claim, renewal or release), on the store's clock. Absent on
43
+ * stores that don't report it.
44
+ */
45
+ updatedAt?: Date;
41
46
  }
42
47
  export interface ClaimRunOwnershipInput {
43
48
  runId: string;
@@ -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-DH7Qgz8l.cjs");
3
+ const require_llm = require("../llm-BAiOsNAP.cjs");
4
4
  const require_file = require("../file-BEndQUN1.cjs");
5
5
  exports.ChunkFrom = require_llm.ChunkFrom;
6
6
  exports.DefaultGeneratedFile = require_file.DefaultGeneratedFile;
@@ -1,4 +1,4 @@
1
- import { En as convertFullStreamChunkToUIMessageStream, a as convertFullStreamChunkToMastra, c as WorkflowRunOutput, d as MastraModelOutput, i as withStreamCaching, n as createCachingTransformStream, o as convertMastraChunkToAISDKv5, r as createReplayStream, s as MastraAgentNetworkStream, t as smoothStream } from "../stream-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-C5PagEDs.js";
2
+ import { u as ChunkFrom } from "../llm-B1zaFLYZ.js";
3
3
  import { n as DefaultGeneratedFileWithType, t as DefaultGeneratedFile } from "../file-DGZrR5f7.js";
4
4
  export { ChunkFrom, DefaultGeneratedFile, DefaultGeneratedFileWithType, MastraAgentNetworkStream, MastraModelOutput, WorkflowRunOutput, convertFullStreamChunkToMastra, convertFullStreamChunkToUIMessageStream, convertMastraChunkToAISDKv5, createCachingTransformStream, createReplayStream, smoothStream, withStreamCaching };
@@ -1,5 +1,5 @@
1
1
  import { n as __exportAll } from "./rolldown-runtime-tIEjjQTE.js";
2
- import { d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, p as readModelStreamTransport } from "./llm-DMNEZIV9.js";
2
+ import { d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, p as readModelStreamTransport } from "./llm-B1zaFLYZ.js";
3
3
  import { B as getResponseProviderItemIdFromPart, G as RESPONSE_ITEM_ID_PROVIDERS, K as RESPONSE_RESULT_ITEM_ID_KEY, f as coreContentToString, n as MessageList, p as messagesAreEqual, t as convertMessages } from "./message-list-KRbg-TnI.js";
4
4
  import { S as resolveObservabilityContext, x as createObservabilityContext } from "./observability-D7RNOAPx.js";
5
5
  import { t as MastraBase } from "./base-CKLWBhDo.js";
@@ -4760,13 +4760,13 @@ var ProcessorRunner = class ProcessorRunner {
4760
4760
  }
4761
4761
  endStreamProcessorSpans(processorStates, options) {
4762
4762
  for (const state of processorStates.values()) {
4763
- state.span?.end({
4763
+ if (!options?.stepScopedOnly) state.span?.end({
4764
4764
  output: state.getFinalOutput(),
4765
4765
  attributes: state.getFinalAttributes()
4766
4766
  });
4767
4767
  for (const [key, value] of Object.entries(state.customState)) if (key.startsWith("__outputStreamSpan_")) {
4768
4768
  const span = value;
4769
- if (options?.keepStepScopedSpans && span?.parent?.type === "model_step") continue;
4769
+ if (span?.parent?.type === "model_step" ? options?.keepStepScopedSpans : options?.stepScopedOnly) continue;
4770
4770
  const durationKey = OUTPUT_STREAM_HOOK_DURATION_KEY_PREFIX + key.slice(19);
4771
4771
  const hookDurationMs = state.customState[durationKey];
4772
4772
  span?.end(typeof hookDurationMs === "number" ? { attributes: { hookDurationMs } } : void 0);
@@ -1,5 +1,5 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
2
- const require_llm = require("./llm-BOQR5g0t.cjs");
2
+ const require_llm = require("./llm-BAiOsNAP.cjs");
3
3
  const require_message_list = require("./message-list-Cj0Sq_JP.cjs");
4
4
  const require_observability = require("./observability-B0R_D1PZ.cjs");
5
5
  const require_base = require("./base-BIzR1D3_.cjs");
@@ -4761,13 +4761,13 @@ var ProcessorRunner = class ProcessorRunner {
4761
4761
  }
4762
4762
  endStreamProcessorSpans(processorStates, options) {
4763
4763
  for (const state of processorStates.values()) {
4764
- state.span?.end({
4764
+ if (!options?.stepScopedOnly) state.span?.end({
4765
4765
  output: state.getFinalOutput(),
4766
4766
  attributes: state.getFinalAttributes()
4767
4767
  });
4768
4768
  for (const [key, value] of Object.entries(state.customState)) if (key.startsWith("__outputStreamSpan_")) {
4769
4769
  const span = value;
4770
- if (options?.keepStepScopedSpans && span?.parent?.type === "model_step") continue;
4770
+ if (span?.parent?.type === "model_step" ? options?.keepStepScopedSpans : options?.stepScopedOnly) continue;
4771
4771
  const durationKey = OUTPUT_STREAM_HOOK_DURATION_KEY_PREFIX + key.slice(19);
4772
4772
  const hookDurationMs = state.customState[durationKey];
4773
4773
  span?.end(typeof hookDurationMs === "number" ? { attributes: { hookDurationMs } } : void 0);
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_rolldown_runtime = require("../rolldown-runtime-BrhgMLW6.cjs");
3
3
  const require_dist = require("../dist-CXeCeeW7.cjs");
4
- const require_model = require("../model-CrXDhcbw.cjs");
4
+ const require_model = require("../model-WahorgzJ.cjs");
5
5
  const require_model$1 = require("../model-jBymoqGa.cjs");
6
6
  let stream = require("stream");
7
7
  let module$1 = require("module");
@@ -1,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-C47BJRtR.js";
3
3
  import { t as AISDKV5LanguageModel } from "../model-DS-b2R-R.js";
4
4
  import { createRequire } from "module";
5
5
  import { Readable } from "stream";
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_tool_loop_agent = require("../tool-loop-agent-DDeKGwtr.cjs");
2
+ const require_tool_loop_agent = require("../tool-loop-agent-CJTs4T8b.cjs");
3
3
  exports.getSettings = require_tool_loop_agent.getSettings;
4
4
  exports.isToolLoopAgentLike = require_tool_loop_agent.isToolLoopAgentLike;
5
5
  exports.toolLoopAgentToMastraAgent = require_tool_loop_agent.toolLoopAgentToMastraAgent;
@@ -1 +1 @@
1
- export { n as getSettings, r as isToolLoopAgentLike, t as toolLoopAgentToMastraAgent } from "../tool-loop-agent-PSKeNhuT.js";
1
+ export { n as getSettings, r as isToolLoopAgentLike, t as toolLoopAgentToMastraAgent } from "../tool-loop-agent-DVYJXlQJ.js";
@@ -1,7 +1,7 @@
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");
2
+ const require_run_registry = require("./run-registry-TOOfO3hT.cjs");
3
+ const require_stream = require("./stream-DH7Qgz8l.cjs");
4
+ const require_llm = require("./llm-BAiOsNAP.cjs");
5
5
  const require_message_list = require("./message-list-Cj0Sq_JP.cjs");
6
6
  // src/tool-loop-agent/utils.ts
7
7
  function isToolLoopAgentLike(obj) {
@@ -1,7 +1,7 @@
1
1
  import { m as generateId } from "./dist-TPVqg8oV.js";
2
- import { N as Agent } from "./run-registry-Bx06ZIN_.js";
3
- import { ln as isSupportedLanguageModel } from "./stream-DVy0Z-m0.js";
4
- import { i as resolveModelConfig } from "./llm-DMNEZIV9.js";
2
+ import { N as Agent } from "./run-registry-DdeEBsVW.js";
3
+ import { ln as isSupportedLanguageModel } from "./stream-C5PagEDs.js";
4
+ import { i as resolveModelConfig } from "./llm-B1zaFLYZ.js";
5
5
  import { N as ToolLoopAgent } from "./message-list-KRbg-TnI.js";
6
6
  // src/tool-loop-agent/utils.ts
7
7
  function isToolLoopAgentLike(obj) {
@@ -1,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-IW7M4iD2.js";
5
5
  import { t as MastraBase } from "./base-CKLWBhDo.js";
6
6
  import { O as executionFailureTermination, b as wrapMastra, x as createObservabilityContext } from "./observability-D7RNOAPx.js";
7
7
  import { a as getOrCreateSpan, t as executeWithContext } from "./utils-DU_pU5SK.js";
@@ -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-Ci5h0dhj.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-xJi_N6Tx.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-D8upuTwy.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,4 +1,4 @@
1
- const require_stream = require("./stream-BIXX67WE.cjs");
1
+ const require_stream = require("./stream-DH7Qgz8l.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,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-C5PagEDs.js";
3
3
  import { z } from "zod";
4
4
  // src/workflows/dynamic/graph.ts
5
5
  /**
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_base = require("../base-BIzR1D3_.cjs");
3
3
  const require_error = require("../error-D90lJ6M7.cjs");
4
- const require_run_registry = require("../run-registry-Bk6QxNE4.cjs");
4
+ const require_run_registry = require("../run-registry-TOOfO3hT.cjs");
5
5
  const require_message_list = require("../message-list-Cj0Sq_JP.cjs");
6
6
  const require_dist = require("../dist-P2rjrlmj.cjs");
7
7
  const require_dist$1 = require("../dist-CXeCeeW7.cjs");
@@ -1,6 +1,6 @@
1
1
  import { t as MastraBase } from "../base-CKLWBhDo.js";
2
2
  import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "../error-oh2DLsP2.js";
3
- import { fa as createVectorErrorId, un as embed$3 } from "../run-registry-Bx06ZIN_.js";
3
+ import { fn as embed$3, ga as createVectorErrorId } from "../run-registry-DdeEBsVW.js";
4
4
  import { P as embed$2 } from "../message-list-KRbg-TnI.js";
5
5
  import { r as embed$1 } from "../dist-TPVqg8oV.js";
6
6
  import { n as embed } from "../dist-D3cKCUe-.js";
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_worker = require("../worker-CFUKBBCF.cjs");
2
+ const require_worker = require("../worker-24ORi-wV.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-DbcFkKJO.js";
@@ -1,6 +1,6 @@
1
- const require_run_registry = require("./run-registry-Bk6QxNE4.cjs");
1
+ const require_run_registry = require("./run-registry-TOOfO3hT.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-Ci5h0dhj.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
- const require_run_registry = require("./run-registry-Bk6QxNE4.cjs");
1
+ const require_run_registry = require("./run-registry-TOOfO3hT.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-24ORi-wV.cjs");
4
4
  const require_schedules = require("./schedules-BZS8McF7.cjs");
5
5
  // src/schedules/worker.ts
6
6
  /** PubSub topic on which the scheduler publishes `agent-schedule.fire` events. */
@@ -1,6 +1,6 @@
1
- import { 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 { Hs as StepExecutor, Us as computeScheduleDefinitionHash, Vs as WorkflowEventProcessor, _l as assertDrainTimeout, lc as getNestedWorkflow, uc as getStepEntry, vl as waitMs, vt as resolveAgentById } from "./run-registry-DdeEBsVW.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-IW7M4iD2.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
- import { vt as resolveAgentById } from "./run-registry-Bx06ZIN_.js";
1
+ import { vt as resolveAgentById } from "./run-registry-DdeEBsVW.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-DbcFkKJO.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,8 +1,8 @@
1
- const require_stream = require("./stream-BIXX67WE.cjs");
1
+ const require_stream = require("./stream-DH7Qgz8l.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-TOOfO3hT.cjs");
5
+ const require_background_tasks = require("./background-tasks-Ci5h0dhj.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-C5PagEDs.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 { Ps as createWorkflow, mc as createStep } from "./run-registry-DdeEBsVW.js";
5
+ import { c as BACKGROUND_TASK_WORKFLOW_ID } from "./background-tasks-IW7M4iD2.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-14Uptu8y.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-DI2c2xjy.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-TOOfO3hT.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 { cc as EventedExecutionEngine, Fs as EventedRun, Is as EventedWorkflow, Hs as StepExecutor, Vs as WorkflowEventProcessor, Ls as cloneStep, Rs as cloneWorkflow, zs as createStep, Bs as createWorkflow } from "../../run-registry-DdeEBsVW.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-TOOfO3hT.cjs");
3
+ const require_stream = require("../stream-DH7Qgz8l.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-6eZ8Wssn.cjs");
8
+ const require_rehydrate = require("../rehydrate-Da4hNuaK.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 getSingleStepEntryId, Bc as RESUME_SNAPSHOT_POLL_INTERVAL_MS, Gc as cleanStepResult, Hc as abortableSleep, Ic as createMappingStep, Jc as createTimeTravelExecutionParams, Kc as createDeprecationProxy, Lc as createStepFromAgent, Mc as ExecutionEngine, Ms as cloneWorkflow, Ns as createEventedWorkflow, Ps as createWorkflow, Qc as getResumeLabelsByStepId, Rc as createStepFromClassifier, Uc as applyStateDelta, Us as computeScheduleDefinitionHash, Vc as RESUME_SNAPSHOT_WAIT_STATUSES, Wc as assertTimeTravelGraphMatchesSnapshot, Xc as defineStateAccessors, Yc as defineLazyWriter, Zc as getRestartStartIndex, _c as predicateToCondition, al as omitPriorSuspensionFields, cl as setLongTimeout, dc as Run, dl as validateStepResumeData, el as getStepIds, fc as Workflow, fl as validateStepStateData, gc as mapVariable, gl as getEntryWorkflow, hc as isProcessor, hl as getEntryId, il as omitPriorCompletionFields, ll as validateStepInput, mc as createStep, ml as waitForSuspendedSnapshot, nl as isEntryFinished, ol as resolveForeachConcurrency, pc as cloneStep, pl as validateStepSuspendData, qc as createRestartExecutionParams, rl as isSingleStepEntry, sl as runCountDeprecationMessage, tl as hydrateSerializedStepErrors, ul as validateStepRequestContext, vc as evaluatePredicate, wc as DefaultExecutionEngine, yl as workflowTermination, zc as createStepFromTool } from "../run-registry-DdeEBsVW.js";
2
+ import { Dt as getStepResult, Ot as getStepResultAsync } from "../stream-C5PagEDs.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-DTkW3Vlp.js";
7
+ import { n as entryOptionFields, r as toStorableGraph, t as rehydrateWorkflow } from "../rehydrate-CJBLrZxs.js";
8
8
  // src/workflows/state-reader.ts
9
9
  const getStep = (state, stepId) => state.steps?.[stepId];
10
10
  const getFirstStepResult = (step) => {