@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.
- package/dist/agent/durable/constants.d.ts +2 -0
- package/dist/agent/durable/evented-execution.d.ts +7 -0
- package/dist/agent/durable/execution-engine.d.ts +1 -0
- package/dist/agent/durable/execution-fence.d.ts +2 -0
- package/dist/agent/durable/index.cjs +3 -1
- package/dist/agent/durable/index.d.ts +1 -1
- package/dist/agent/durable/index.js +2 -2
- package/dist/agent/durable/run-registry.d.ts +2 -0
- package/dist/agent/durable/segment-spans.d.ts +54 -1
- package/dist/agent/durable/types.d.ts +10 -0
- package/dist/agent/durable/workflows/durable-loop-builder.d.ts +57 -2
- package/dist/agent/durable/workflows/finalize-run.d.ts +2 -0
- package/dist/agent/durable/workflows/shared/index.d.ts +1 -1
- package/dist/agent/durable/workflows/shared/reported-cost.d.ts +7 -0
- package/dist/agent/durable/workflows/shared/schemas.d.ts +16 -1
- package/dist/agent/durable/workflows/shared/tool-call-concurrency.d.ts +6 -0
- package/dist/agent/durable/workflows/steps/llm-execution.d.ts +5 -0
- package/dist/agent/durable/workflows/steps/llm-mapping.d.ts +6 -0
- package/dist/agent/durable/workflows/steps/tool-call.d.ts +20 -0
- package/dist/agent/index.cjs +2 -2
- package/dist/agent/index.js +2 -2
- package/dist/agent/request-context-snapshot.d.ts +3 -2
- package/dist/agent/streams/run-records.d.ts +9 -1
- package/dist/agent-builder/ee/index.cjs +1 -1
- package/dist/agent-builder/ee/index.js +1 -1
- package/dist/agent-controller/index.cjs +1 -1
- package/dist/agent-controller/index.js +1 -1
- package/dist/agent-controller/session-run-engine.d.ts +5 -2
- package/dist/agent-controller/session.d.ts +2 -0
- package/dist/agent-controller/types.d.ts +23 -0
- package/dist/{agent-controller-D5EKeS1H.js → agent-controller-B8LoFdtu.js} +43 -13
- package/dist/{agent-controller-D_5Dc8d3.cjs → agent-controller-DSnFynpa.cjs} +43 -13
- package/dist/background-tasks/index.cjs +1 -1
- package/dist/background-tasks/index.js +1 -1
- package/dist/background-tasks/manager.d.ts +4 -1
- package/dist/{background-tasks-BVxb0VGV.cjs → background-tasks-Ci5h0dhj.cjs} +139 -51
- package/dist/{background-tasks-idnlMbqD.js → background-tasks-IW7M4iD2.js} +139 -51
- package/dist/browser/index.cjs +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/{builder-CBWoYNck.cjs → builder-14Uptu8y.cjs} +2 -2
- package/dist/{builder-Cuq-j2w3.js → builder-DI2c2xjy.js} +2 -2
- package/dist/cache/base.d.ts +40 -10
- package/dist/cache/index.cjs +1 -1
- package/dist/cache/index.js +1 -1
- package/dist/capabilities/302ai.json +200 -200
- package/dist/capabilities/abliteratedllm.json +34 -34
- package/dist/capabilities/abliteration-ai.json +8 -8
- package/dist/capabilities/above.json +24 -24
- package/dist/capabilities/adaption.json +15 -15
- package/dist/capabilities/adzuki.json +29 -29
- package/dist/capabilities/agentrouter.json +12 -12
- package/dist/capabilities/agnes.json +2 -2
- package/dist/capabilities/ai-router.json +5 -5
- package/dist/capabilities/aiand.json +25 -25
- package/dist/capabilities/aigrow.json +13 -13
- package/dist/capabilities/aimlapi.json +149 -152
- package/dist/capabilities/aixy.json +20 -20
- package/dist/capabilities/aki-io.json +10 -10
- package/dist/capabilities/alibaba-cn.json +85 -85
- package/dist/capabilities/alibaba-coding-plan-cn.json +5 -5
- package/dist/capabilities/alibaba-coding-plan.json +5 -5
- package/dist/capabilities/alibaba-token-plan-cn.json +44 -44
- package/dist/capabilities/alibaba-token-plan.json +47 -47
- package/dist/capabilities/alibaba.json +62 -62
- package/dist/capabilities/ambient.json +14 -14
- package/dist/capabilities/amd.json +8 -8
- package/dist/capabilities/anthropic.json +39 -39
- package/dist/capabilities/anyapi.json +13 -13
- package/dist/capabilities/apiko.json +5 -5
- package/dist/capabilities/arcee.json +11 -11
- package/dist/capabilities/augure.json +4 -4
- package/dist/capabilities/auriko.json +21 -21
- package/dist/capabilities/bailing.json +4 -4
- package/dist/capabilities/baseten.json +33 -33
- package/dist/capabilities/bee.json +5 -5
- package/dist/capabilities/berget.json +4 -4
- package/dist/capabilities/bothub.json +16 -16
- package/dist/capabilities/boundless.json +37 -37
- package/dist/capabilities/bumo.json +48 -48
- package/dist/capabilities/byteplus.json +25 -25
- package/dist/capabilities/cheapaimodel.json +5 -5
- package/dist/capabilities/cheapest-token.json +28 -28
- package/dist/capabilities/chutes.json +11 -14
- package/dist/capabilities/cline-pass.json +41 -41
- package/dist/capabilities/cloudcode.json +9 -9
- package/dist/capabilities/cloudferro-sherlock.json +4 -4
- package/dist/capabilities/cloudflare-workers-ai.json +18 -79
- package/dist/capabilities/commandcode.json +155 -155
- package/dist/capabilities/concentrate.json +279 -270
- package/dist/capabilities/cortecs.json +100 -100
- package/dist/capabilities/crossmodel.json +178 -178
- package/dist/capabilities/crusoe.json +9 -9
- package/dist/capabilities/daoxe.json +9 -9
- package/dist/capabilities/databricks.json +137 -137
- package/dist/capabilities/deepinfra.json +124 -61
- package/dist/capabilities/deepseek.json +3 -3
- package/dist/capabilities/digitalocean.json +113 -113
- package/dist/capabilities/dothoosh.json +32 -32
- package/dist/capabilities/doubleword.json +26 -26
- package/dist/capabilities/edenai.json +448 -473
- package/dist/capabilities/empiriolabs.json +163 -165
- package/dist/capabilities/engy.json +19 -19
- package/dist/capabilities/entrim.json +6 -6
- package/dist/capabilities/evroc.json +16 -16
- package/dist/capabilities/ezkielyna.json +12 -12
- package/dist/capabilities/fastrouter.json +73 -73
- package/dist/capabilities/fireworks-ai.json +83 -62
- package/dist/capabilities/freemodel.json +15 -15
- package/dist/capabilities/friendli.json +2 -2
- package/dist/capabilities/frogbot.json +99 -99
- package/dist/capabilities/gisoo.json +17 -17
- package/dist/capabilities/gmicloud.json +14 -14
- package/dist/capabilities/google.json +57 -57
- package/dist/capabilities/graphn.json +9 -9
- package/dist/capabilities/greenpt.json +36 -36
- package/dist/capabilities/groq.json +8 -8
- package/dist/capabilities/helicone.json +82 -82
- package/dist/capabilities/hopper.json +2 -2
- package/dist/capabilities/hostinger-router.json +10 -10
- package/dist/capabilities/hpc-ai.json +14 -14
- package/dist/capabilities/huawei-maas.json +16 -16
- package/dist/capabilities/hubris.json +29 -29
- package/dist/capabilities/huggingface.json +94 -84
- package/dist/capabilities/humain.json +2 -2
- package/dist/capabilities/hyper.json +23 -23
- package/dist/capabilities/impossibl.json +136 -136
- package/dist/capabilities/inception.json +2 -2
- package/dist/capabilities/inceptron.json +8 -8
- package/dist/capabilities/inco.json +2 -2
- package/dist/capabilities/infer.json +14 -14
- package/dist/capabilities/inferall.json +7 -7
- package/dist/capabilities/inference-coop.json +3 -3
- package/dist/capabilities/inferenceapis.json +20 -20
- package/dist/capabilities/inferris.json +3 -3
- package/dist/capabilities/infersia.json +8 -8
- package/dist/capabilities/inferx.json +3 -3
- package/dist/capabilities/infomaniak.json +2 -2
- package/dist/capabilities/io-net.json +4 -4
- package/dist/capabilities/isoquant.json +4 -4
- package/dist/capabilities/iteracompute.json +61 -61
- package/dist/capabilities/jalapeno.json +12 -12
- package/dist/capabilities/jiekou.json +60 -60
- package/dist/capabilities/joingonka.json +4 -4
- package/dist/capabilities/jzstoken.json +55 -55
- package/dist/capabilities/keln.json +25 -25
- package/dist/capabilities/kenari.json +122 -122
- package/dist/capabilities/kilo.json +633 -617
- package/dist/capabilities/kimi-code-plan-cn.json +6 -6
- package/dist/capabilities/kimi-code-plan-global.json +6 -6
- package/dist/capabilities/kitani.json +6 -6
- package/dist/capabilities/klavo.json +20 -20
- package/dist/capabilities/korouter.json +32 -32
- package/dist/capabilities/kunavo.json +9 -9
- package/dist/capabilities/liquid.json +12 -12
- package/dist/capabilities/lithosai.json +3 -3
- package/dist/capabilities/llmgateway-providers.json +912 -903
- package/dist/capabilities/llmgateway.json +346 -338
- package/dist/capabilities/llmtr.json +30 -30
- package/dist/capabilities/logits.json +2 -2
- package/dist/capabilities/lowrouter.json +53 -53
- package/dist/capabilities/lyceum.json +10 -10
- package/dist/capabilities/melious.json +12 -12
- package/dist/capabilities/merge-gateway.json +276 -276
- package/dist/capabilities/meta.json +10 -10
- package/dist/capabilities/mistral.json +21 -21
- package/dist/capabilities/mixlayer.json +2 -2
- package/dist/capabilities/modal.json +6 -6
- package/dist/capabilities/model-oracle-ai.json +25 -25
- package/dist/capabilities/modelis.json +15 -15
- package/dist/capabilities/modelscope.json +2 -2
- package/dist/capabilities/modular.json +6 -6
- package/dist/capabilities/moneo.json +14 -14
- package/dist/capabilities/moonshotai-cn.json +7 -7
- package/dist/capabilities/moonshotai.json +7 -7
- package/dist/capabilities/morph.json +16 -16
- package/dist/capabilities/munito-eu.json +6 -6
- package/dist/capabilities/munito.json +10 -10
- package/dist/capabilities/nan.json +24 -24
- package/dist/capabilities/nano-gpt.json +612 -579
- package/dist/capabilities/nearai.json +97 -97
- package/dist/capabilities/nebius.json +32 -32
- package/dist/capabilities/neon.json +131 -131
- package/dist/capabilities/neuralwatt.json +43 -43
- package/dist/capabilities/nokeep.json +4 -4
- package/dist/capabilities/novita-ai.json +148 -148
- package/dist/capabilities/nvidia.json +17 -49
- package/dist/capabilities/obscurify.json +26 -26
- package/dist/capabilities/oci.json +16 -7
- package/dist/capabilities/ofox.json +344 -344
- package/dist/capabilities/ollama-cloud.json +56 -56
- package/dist/capabilities/openai.json +81 -49
- package/dist/capabilities/opencode-go.json +90 -90
- package/dist/capabilities/openreason.json +5 -5
- package/dist/capabilities/openrouter.json +563 -547
- package/dist/capabilities/opper.json +29 -29
- package/dist/capabilities/orcarouter.json +252 -252
- package/dist/capabilities/outerlabs.json +33 -33
- package/dist/capabilities/ovhcloud.json +59 -5
- package/dist/capabilities/pareto.json +5 -5
- package/dist/capabilities/perplexity-agent.json +66 -66
- package/dist/capabilities/phala.json +30 -30
- package/dist/capabilities/pioneer.json +24 -24
- package/dist/capabilities/poe.json +117 -117
- package/dist/capabilities/poolside.json +2 -2
- package/dist/capabilities/powerspring.json +14 -14
- package/dist/capabilities/primalabs.json +11 -11
- package/dist/capabilities/prime.json +129 -113
- package/dist/capabilities/privatemode-ai.json +14 -14
- package/dist/capabilities/proxystacks.json +6 -6
- package/dist/capabilities/qiniu-ai.json +14 -14
- package/dist/capabilities/refuseless.json +5 -5
- package/dist/capabilities/regolo-ai.json +9 -9
- package/dist/capabilities/requesty.json +172 -172
- package/dist/capabilities/ruapi.json +18 -18
- package/dist/capabilities/runcrate.json +15 -15
- package/dist/capabilities/runinfra.json +16 -16
- package/dist/capabilities/sakana.json +6 -6
- package/dist/capabilities/sambanova.json +9 -9
- package/dist/capabilities/sandbase.json +21 -21
- package/dist/capabilities/sarvam.json +8 -8
- package/dist/capabilities/scaleway.json +18 -18
- package/dist/capabilities/scnet-token-plan.json +9 -9
- package/dist/capabilities/scx-ai.json +30 -30
- package/dist/capabilities/sensenova.json +8 -8
- package/dist/capabilities/siliconflow-cn.json +62 -62
- package/dist/capabilities/siliconflow.json +58 -58
- package/dist/capabilities/snowflake-cortex.json +22 -22
- package/dist/capabilities/sokkan.json +10 -10
- package/dist/capabilities/sparrowcodes.json +22 -22
- package/dist/capabilities/standardcompute.json +101 -101
- package/dist/capabilities/steadyrouter.json +43 -43
- package/dist/capabilities/stepfun-ai-step-plan.json +6 -6
- package/dist/capabilities/stepfun-ai.json +5 -5
- package/dist/capabilities/stepfun-step-plan.json +5 -5
- package/dist/capabilities/stepfun.json +5 -5
- package/dist/capabilities/stepping-stone.json +22 -22
- package/dist/capabilities/subconscious.json +2 -2
- package/dist/capabilities/superbot-gg.json +4 -4
- package/dist/capabilities/synthetic.json +14 -14
- package/dist/capabilities/synthorai.json +22 -22
- package/dist/capabilities/teamorouter.json +23 -23
- package/dist/capabilities/teapot-router.json +16 -16
- package/dist/capabilities/tencent-token-plan.json +57 -33
- package/dist/capabilities/tencent-tokenhub.json +48 -48
- package/dist/capabilities/tensorx.json +46 -46
- package/dist/capabilities/tenstorrent.json +2 -2
- package/dist/capabilities/the-grid-ai.json +31 -31
- package/dist/capabilities/thinkingmachines.json +44 -44
- package/dist/capabilities/tinfoil.json +11 -11
- package/dist/capabilities/toapis.json +3 -3
- package/dist/capabilities/togetherai.json +53 -51
- package/dist/capabilities/tokengo.json +24 -24
- package/dist/capabilities/tokenify.json +10 -10
- package/dist/capabilities/trustedrouter.json +6 -6
- package/dist/capabilities/trustedtokens.json +16 -16
- package/dist/capabilities/umans-ai-coding-plan.json +15 -15
- package/dist/capabilities/umans-ai.json +9 -9
- package/dist/capabilities/unrestricted.json +8 -8
- package/dist/capabilities/uplinkswitch.json +21 -21
- package/dist/capabilities/upstage.json +6 -6
- package/dist/capabilities/vancine.json +21 -21
- package/dist/capabilities/vercel.json +578 -578
- package/dist/capabilities/vivgrid.json +81 -81
- package/dist/capabilities/volcengine-coding-plan.json +26 -26
- package/dist/capabilities/volcengine.json +27 -27
- package/dist/capabilities/vultr.json +25 -25
- package/dist/capabilities/wafer.ai.json +18 -18
- package/dist/capabilities/wallaby.json +5 -5
- package/dist/capabilities/wally.json +12 -12
- package/dist/capabilities/wandb.json +19 -19
- package/dist/capabilities/watt.json +22 -22
- package/dist/capabilities/xai.json +7 -7
- package/dist/capabilities/xiaomi-token-plan-ams.json +2 -2
- package/dist/capabilities/xiaomi-token-plan-cn.json +2 -2
- package/dist/capabilities/xiaomi-token-plan-sgp.json +2 -2
- package/dist/capabilities/xiaomi.json +2 -2
- package/dist/capabilities/xpersona.json +11 -11
- package/dist/capabilities/xxapi.json +32 -32
- package/dist/capabilities/zai-coding-plan.json +16 -16
- package/dist/capabilities/zai.json +34 -32
- package/dist/capabilities/zenifra.json +26 -26
- package/dist/capabilities/zenmux.json +187 -187
- package/dist/capabilities/zerogpu.json +13 -13
- package/dist/capabilities/zhipuai-coding-plan.json +7 -7
- package/dist/capabilities/zhipuai.json +29 -29
- package/dist/capabilities/zro.json +6 -6
- package/dist/channels/agent-channels.d.ts +2 -1
- package/dist/channels/formatting.d.ts +8 -0
- package/dist/channels/index.cjs +4 -2
- package/dist/channels/index.d.ts +1 -1
- package/dist/channels/index.js +3 -3
- package/dist/channels/types.d.ts +5 -3
- package/dist/{channels-DSOCNoab.js → channels-Wh32drgu.js} +1 -1
- package/dist/{channels-D7bBM9xD.cjs → channels-tVV_de9Q.cjs} +1 -1
- package/dist/coding-agent/index.cjs +1 -1
- package/dist/coding-agent/index.js +1 -1
- package/dist/datasets/index.cjs +2 -2
- package/dist/datasets/index.js +2 -2
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +789 -789
- package/dist/docs/references/docs-agents-resumable-streams.md +15 -6
- package/dist/docs/references/docs-deployment-workers.md +3 -1
- package/dist/docs/references/docs-harness-background-tasks.md +4 -4
- package/dist/docs/references/docs-harness-durable-agents.md +39 -48
- package/dist/docs/references/docs-knowledge-importers.md +1 -1
- package/dist/docs/references/docs-mastra-platform-observability-overview.md +1 -1
- package/dist/docs/references/docs-sandbox-overview.md +1 -0
- package/dist/docs/references/docs-server-pubsub.md +1 -1
- package/dist/docs/references/docs-workflows-overview.md +67 -3
- package/dist/docs/references/integrations-agentic-ui-assistant-ui.md +2 -0
- package/dist/docs/references/integrations-frameworks-angular.md +39 -0
- package/dist/docs/references/integrations-frameworks-astro.md +5 -2
- package/dist/docs/references/integrations-frameworks-electron.md +40 -0
- package/dist/docs/references/integrations-frameworks-next-js.md +5 -2
- package/dist/docs/references/integrations-frameworks-nuxt.md +5 -2
- package/dist/docs/references/integrations-frameworks-sveltekit.md +5 -2
- package/dist/docs/references/integrations-frameworks-vite-react.md +40 -0
- package/dist/docs/references/integrations.md +3 -0
- package/dist/docs/references/reference-agent-controller-agent-controller-class.md +6 -0
- package/dist/docs/references/reference-agents-channels.md +1 -1
- package/dist/docs/references/reference-agents-durable-agent.md +3 -3
- package/dist/docs/references/reference-agents-generate.md +2 -0
- package/dist/docs/references/reference-configuration.md +1 -1
- package/dist/docs/references/reference-core-mastra-class.md +2 -0
- package/dist/docs/references/reference-knowledge-knowledge-class.md +1 -1
- package/dist/docs/references/reference-knowledge-knowledge-tools.md +11 -5
- package/dist/docs/references/reference-pubsub-caching-pubsub.md +2 -2
- package/dist/docs/references/reference-pubsub-redis-streams.md +2 -2
- package/dist/docs/references/reference-pubsub-valkey-streams.md +2 -2
- package/dist/docs/references/reference-workers-overview.md +2 -0
- package/dist/docs/references/reference-workflows-workflow-methods-create-run.md +2 -0
- package/dist/docs/references/reference-workflows-workflow.md +2 -0
- package/dist/docs/references/reference.md +1 -0
- package/dist/error/index.cjs +2 -1
- package/dist/error/index.d.ts +1 -1
- package/dist/error/index.js +2 -2
- package/dist/error/provider-error.d.ts +2 -1
- package/dist/{error-BLwEXqOK.js → error-BC9Au-22.js} +13 -1
- package/dist/{error-BdEvO8za.cjs → error-L1V4uUbd.cjs} +18 -0
- package/dist/evals/index.cjs +1 -1
- package/dist/evals/index.js +1 -1
- package/dist/evals/scoreTraces/index.cjs +1 -1
- package/dist/evals/scoreTraces/index.js +1 -1
- package/dist/events/caching-pubsub.d.ts +28 -0
- package/dist/events/index.cjs +4 -1
- package/dist/events/index.js +2 -2
- package/dist/events/topics.d.ts +55 -9
- package/dist/harness/index.cjs +1 -1
- package/dist/harness/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{inmemory-BDD0w8gx.js → inmemory-BK3zLwvM.js} +42 -12
- package/dist/{inmemory-fgR8sq-U.cjs → inmemory-Dc86VWGB.cjs} +42 -12
- package/dist/knowledge/changes.d.ts +17 -5
- package/dist/knowledge/importers/runner.d.ts +6 -0
- package/dist/knowledge/index.cjs +78 -16
- package/dist/knowledge/index.d.ts +2 -2
- package/dist/knowledge/index.js +78 -16
- package/dist/knowledge/search-snippet.d.ts +30 -0
- package/dist/llm/index.cjs +3 -3
- package/dist/llm/index.js +3 -3
- package/dist/llm/model/provider-types.generated.d.ts +7986 -7970
- package/dist/{llm-DMNEZIV9.js → llm-B1zaFLYZ.js} +3 -3
- package/dist/{llm-BOQR5g0t.cjs → llm-BAiOsNAP.cjs} +3 -3
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +2 -2
- package/dist/{manager-CyCR9IpR.cjs → manager-BVX9nVrM.cjs} +2 -2
- package/dist/{manager-BzNynLwT.js → manager-ChK9GdGz.js} +2 -2
- package/dist/mastra/index.cjs +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/{mastra-CqBmnzjM.js → mastra-CUGfgEpZ.js} +28 -18
- package/dist/{mastra-D2B01_gg.cjs → mastra-HSmofHEJ.cjs} +28 -18
- package/dist/memory/index.cjs +2 -2
- package/dist/memory/index.js +2 -2
- package/dist/{model-3AeJKHLU.js → model-C47BJRtR.js} +1 -1
- package/dist/{model-CrXDhcbw.cjs → model-WahorgzJ.cjs} +1 -1
- package/dist/{netlify-DUPSTzi6.js → netlify-CfDXkuLf.js} +2 -2
- package/dist/{netlify-DTXLQiG1.cjs → netlify-D99AnEhW.cjs} +2 -2
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/observability/index.cjs +1 -0
- package/dist/observability/index.d.ts +1 -1
- package/dist/observability/index.js +2 -2
- package/dist/{output-helpers-CedRCE17.js → output-helpers-CVzhy1Y0.js} +126 -56
- package/dist/{output-helpers-1Zu4Vt9C.cjs → output-helpers-DgsH4aTb.cjs} +143 -55
- package/dist/processor-provider/index.cjs +1 -1
- package/dist/processor-provider/index.js +1 -1
- package/dist/processors/index.cjs +2 -2
- package/dist/processors/index.js +2 -2
- package/dist/processors/runner.d.ts +2 -0
- package/dist/{provider-registry-B_rC-5aL.cjs → provider-registry-CO1NVbO5.cjs} +22281 -22258
- package/dist/{provider-registry-BeB8RQO8.js → provider-registry-CR385GJ4.js} +22281 -22258
- package/dist/provider-registry.json +22871 -22855
- package/dist/{registry-generator-Cv6GnxLG.js → registry-generator-B3erRqYS.js} +1 -1
- package/dist/{registry-generator-DbBoIOby.cjs → registry-generator-Cvp34qcB.cjs} +1 -1
- package/dist/{rehydrate-3f-i1Ga2.js → rehydrate-CJBLrZxs.js} +2 -2
- package/dist/{rehydrate-BWaa2eGN.cjs → rehydrate-Da4hNuaK.cjs} +2 -2
- package/dist/relevance/index.cjs +2 -2
- package/dist/relevance/index.js +2 -2
- package/dist/{run-registry-Bx06ZIN_.js → run-registry-DdeEBsVW.js} +1639 -568
- package/dist/{run-registry-Bk6QxNE4.cjs → run-registry-TOOfO3hT.cjs} +1668 -567
- package/dist/storage/domains/inmemory-db.d.ts +1 -0
- package/dist/storage/domains/knowledge/base.d.ts +5 -0
- package/dist/storage/domains/knowledge/inmemory.d.ts +1 -0
- package/dist/storage/domains/knowledge/pages-inmemory.d.ts +10 -2
- package/dist/storage/domains/knowledge/pages.d.ts +30 -0
- package/dist/storage/index.cjs +2 -2
- package/dist/storage/index.js +2 -2
- package/dist/storage/run-fencing.d.ts +5 -0
- package/dist/stream/index.cjs +2 -2
- package/dist/stream/index.js +2 -2
- package/dist/{stream-DVy0Z-m0.js → stream-C5PagEDs.js} +3 -3
- package/dist/{stream-BIXX67WE.cjs → stream-DH7Qgz8l.cjs} +3 -3
- package/dist/test-utils/llm-mock.cjs +1 -1
- package/dist/test-utils/llm-mock.js +1 -1
- package/dist/tool-loop-agent/index.cjs +1 -1
- package/dist/tool-loop-agent/index.js +1 -1
- package/dist/{tool-loop-agent-DDeKGwtr.cjs → tool-loop-agent-CJTs4T8b.cjs} +3 -3
- package/dist/{tool-loop-agent-PSKeNhuT.js → tool-loop-agent-DVYJXlQJ.js} +3 -3
- package/dist/{utils-BJiQF8Pi.js → utils-D8upuTwy.js} +1 -1
- package/dist/{utils-CAnUlnUm.cjs → utils-xJi_N6Tx.cjs} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/{validate-BMNxfs4Z.cjs → validate-6eZ8Wssn.cjs} +1 -1
- package/dist/{validate-BAVwAgtT.js → validate-DTkW3Vlp.js} +1 -1
- package/dist/vector/index.cjs +1 -1
- package/dist/vector/index.js +1 -1
- package/dist/worker/index.cjs +1 -1
- package/dist/worker/index.js +1 -1
- package/dist/{worker-CFUKBBCF.cjs → worker-24ORi-wV.cjs} +2 -2
- package/dist/{worker-Brwa-HqM.cjs → worker-BO3u_WjZ.cjs} +2 -2
- package/dist/{worker-BlvJM_Hu.js → worker-DbcFkKJO.js} +2 -2
- package/dist/{worker-CVoD3tts.js → worker-Dqubrnf8.js} +2 -2
- package/dist/{workflow-zvQGBMCM.cjs → workflow-D5Fc5ieC.cjs} +4 -4
- package/dist/{workflow-BSLS7_vB.js → workflow-wXOf72fO.js} +4 -4
- package/dist/workflows/builder/index.cjs +1 -1
- package/dist/workflows/builder/index.js +1 -1
- package/dist/workflows/evented/index.cjs +1 -1
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +4 -4
- package/dist/workflows/index.js +4 -4
- package/dist/workflows/run-ownership.d.ts +74 -8
- package/dist/workflows/types.d.ts +16 -0
- package/dist/workflows/workflow.d.ts +4 -0
- package/package.json +6 -6
- package/src/llm/model/provider-types.generated.d.ts +7986 -7970
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { _ as MASTRA_GATEWAY_STREAM_TRANSPORT, a as interpolateUrlTemplate, b as createOpenAICompatible, f as findGatewayForModel, h as shouldEnableGateway, l as MASTRA_USER_AGENT, m as hasAuthCredentials, o as parseModelRouterId, p as getGatewayId, r as ModelsDevGateway, s as createGoogleGenerativeAI, t as NetlifyGateway, v as MastraModelGateway, x as EventSourceParserStream, y as createOpenAI } from "./netlify-
|
|
1
|
+
import { _ as MASTRA_GATEWAY_STREAM_TRANSPORT, a as interpolateUrlTemplate, b as createOpenAICompatible, f as findGatewayForModel, h as shouldEnableGateway, l as MASTRA_USER_AGENT, m as hasAuthCredentials, o as parseModelRouterId, p as getGatewayId, r as ModelsDevGateway, s as createGoogleGenerativeAI, t as NetlifyGateway, v as MastraModelGateway, x as EventSourceParserStream, y as createOpenAI } from "./netlify-CfDXkuLf.js";
|
|
2
2
|
import { n as prepareAzureStrictToolSchemas, r as createStreamFromGenerateResult, t as AISDKV5LanguageModel } from "./model-DS-b2R-R.js";
|
|
3
3
|
import { i as aiV5PromptToAIV7Prompt, r as aiV5PromptToAIV6Prompt } from "./to-prompt-BsDtVXrf.js";
|
|
4
4
|
import { t as convertToDataContent } from "./content-CFBIylxS.js";
|
|
5
|
-
import { f as MastraGateway, l as modelSupportsTemperature, n as PROVIDER_REGISTRY, p as gatewayServesObservationalMemory, t as GatewayRegistry } from "./provider-registry-
|
|
5
|
+
import { f as MastraGateway, l as modelSupportsTemperature, n as PROVIDER_REGISTRY, p as gatewayServesObservationalMemory, t as GatewayRegistry } from "./provider-registry-CR385GJ4.js";
|
|
6
6
|
import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "./error-oh2DLsP2.js";
|
|
7
7
|
import { u as RequestContext } from "./request-context-COnZHt2-.js";
|
|
8
8
|
import { n as resolveDynamicArgument } from "./dynamic-argument-BzPK3qPN.js";
|
|
9
|
-
import { t as InMemoryServerCache } from "./inmemory-
|
|
9
|
+
import { t as InMemoryServerCache } from "./inmemory-BK3zLwvM.js";
|
|
10
10
|
import * as z4 from "zod/v4";
|
|
11
11
|
import { z } from "zod/v4";
|
|
12
12
|
import { ZodFirstPartyTypeKind } from "zod/v3";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
|
|
2
|
-
const require_netlify = require("./netlify-
|
|
2
|
+
const require_netlify = require("./netlify-D99AnEhW.cjs");
|
|
3
3
|
const require_model = require("./model-jBymoqGa.cjs");
|
|
4
4
|
const require_to_prompt = require("./to-prompt-B9eZo2U5.cjs");
|
|
5
5
|
const require_content = require("./content-CC0W1d5p.cjs");
|
|
6
|
-
const require_provider_registry = require("./provider-registry-
|
|
6
|
+
const require_provider_registry = require("./provider-registry-CO1NVbO5.cjs");
|
|
7
7
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
8
8
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
9
9
|
const require_dynamic_argument = require("./dynamic-argument-CUc1BBOS.cjs");
|
|
10
|
-
const require_inmemory = require("./inmemory-
|
|
10
|
+
const require_inmemory = require("./inmemory-Dc86VWGB.cjs");
|
|
11
11
|
let zod_v4 = require("zod/v4");
|
|
12
12
|
zod_v4 = require_rolldown_runtime.__toESM(zod_v4, 1);
|
|
13
13
|
let zod_v3 = require("zod/v3");
|
package/dist/loop/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_run_registry = require("../run-registry-
|
|
3
|
-
const require_stream = require("../stream-
|
|
2
|
+
const require_run_registry = require("../run-registry-TOOfO3hT.cjs");
|
|
3
|
+
const require_stream = require("../stream-DH7Qgz8l.cjs");
|
|
4
4
|
exports.MastraTimeoutError = require_stream.MastraTimeoutError;
|
|
5
5
|
exports.createScorer = require_run_registry.createScorer;
|
|
6
6
|
exports.createTimeoutAbortSignal = require_stream.createTimeoutAbortSignal;
|
package/dist/loop/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Cn as isMastraTimeoutError, vn as MastraTimeoutError, yn as createTimeoutAbortSignal } from "../stream-
|
|
1
|
+
import { Gt as generateFinalResult, Ht as formatCompletionFeedback, Jt as runCompletionScorers, Kt as generateStructuredFinalResult, Qt as loop, Ut as formatStreamCompletionFeedback, Vt as formatCheckFeedback, Wt as formatValidationFeedback, Xt as runStreamCompletionScorers, Yt as runDefaultCompletionCheck, Zt as runValidation, qt as runChecks, w as createScorer } from "../run-registry-DdeEBsVW.js";
|
|
2
|
+
import { Cn as isMastraTimeoutError, vn as MastraTimeoutError, yn as createTimeoutAbortSignal } from "../stream-C5PagEDs.js";
|
|
3
3
|
export { MastraTimeoutError, createScorer, createTimeoutAbortSignal, formatCheckFeedback, formatCompletionFeedback, formatStreamCompletionFeedback, formatValidationFeedback, generateFinalResult, generateStructuredFinalResult, isMastraTimeoutError, loop, runChecks, runCompletionScorers, runDefaultCompletionCheck, runStreamCompletionScorers, runValidation };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
|
|
2
|
-
const require_run_registry = require("./run-registry-
|
|
2
|
+
const require_run_registry = require("./run-registry-TOOfO3hT.cjs");
|
|
3
3
|
const require_observability = require("./observability-B0R_D1PZ.cjs");
|
|
4
4
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
5
|
-
const require_stream = require("./stream-
|
|
5
|
+
const require_stream = require("./stream-DH7Qgz8l.cjs");
|
|
6
6
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
7
7
|
const require_storage = require("./storage-CfG0I2aF.cjs");
|
|
8
8
|
const require_utils = require("./utils-D-eNsgDM.cjs");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-tIEjjQTE.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Bs as createWorkflow, C as ScorerRunError, Qi as assertSupportedPatterns, b as validateAndSaveScore, v as flushBeforeTraceRead, zs as createStep } from "./run-registry-DdeEBsVW.js";
|
|
3
3
|
import { S as resolveObservabilityContext } from "./observability-D7RNOAPx.js";
|
|
4
4
|
import { i as MastraError } from "./error-oh2DLsP2.js";
|
|
5
|
-
import { dt as loadStepResults, ln as isSupportedLanguageModel } from "./stream-
|
|
5
|
+
import { dt as loadStepResults, ln as isSupportedLanguageModel } from "./stream-C5PagEDs.js";
|
|
6
6
|
import { o as MASTRA_RESOURCE_ID_KEY, p as withoutLiveRequestKeys, u as RequestContext } from "./request-context-COnZHt2-.js";
|
|
7
7
|
import { t as EntityType } from "./storage-Cc50aQAp.js";
|
|
8
8
|
import { a as getOrCreateSpan } from "./utils-DU_pU5SK.js";
|
package/dist/mastra/index.cjs
CHANGED
package/dist/mastra/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Mastra } from "../mastra-
|
|
1
|
+
export { t as Mastra } from "../mastra-CUGfgEpZ.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as BackgroundTaskManager } from "./background-tasks-
|
|
3
|
-
import { t as InMemoryServerCache } from "./inmemory-
|
|
4
|
-
import { t as DatasetsManager } from "./manager-
|
|
1
|
+
import { Ac as repeatAfterSettled, Bo as augmentWithInit, Bs as createWorkflow, Cc as nestedRunStatusOf, Dr as WorkflowsInMemory, Fc as runWithConcurrency, Nc as createConcurrencyLimiter, Nt as __registerMastraCtor, Oc as WORKFLOW_RUN_LEASE_TTL_MS, Pc as normalizeConcurrency, Sc as nestedRunRecoveryAction, Sl as isDurableAgentLike, Tr as InMemoryStore, Us as computeScheduleDefinitionHash, Vo as getStorageSource, Vs as WorkflowEventProcessor, Wr as dispatchDueNotifications, _l as assertDrainTimeout, bc as createNestedRunParentStatusLookup, bl as hasDurableExecution, ca as BackgroundTasksInMemory, jc as runFenceConflictOf, jn as AgentChannels, kc as renewWorkflowLease, l as isDurableAgentExecutionDetached, o as getActiveDurableAgentWorkflowExecutions, p as agentThreadStreamRuntime, r as abandonDurableAgentExecutions, tu as runOutsideRunFenceScope, vl as waitMs, xc as nestedRunParentOf, y as createOnScorerHook, yc as cancelNestedRun, zs as createStep } from "./run-registry-DdeEBsVW.js";
|
|
2
|
+
import { s as BackgroundTaskManager } from "./background-tasks-IW7M4iD2.js";
|
|
3
|
+
import { t as InMemoryServerCache } from "./inmemory-BK3zLwvM.js";
|
|
4
|
+
import { t as DatasetsManager } from "./manager-ChK9GdGz.js";
|
|
5
5
|
import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "./error-oh2DLsP2.js";
|
|
6
|
-
import {
|
|
6
|
+
import { u as isRunLocalTopic, v as EventEmitterPubSub } from "./output-helpers-CVzhy1Y0.js";
|
|
7
7
|
import { a as registerHook, r as deregisterHook } from "./hooks-Bth8Cjpj.js";
|
|
8
8
|
import { LicenseClient } from "./license/index.js";
|
|
9
|
-
import { p as getGatewayId } from "./netlify-
|
|
10
|
-
import { l as defaultGateways } from "./llm-
|
|
9
|
+
import { p as getGatewayId } from "./netlify-CfDXkuLf.js";
|
|
10
|
+
import { l as defaultGateways } from "./llm-B1zaFLYZ.js";
|
|
11
11
|
import { l as isAdaptableLogger, n as LogLevel, t as ConsoleLogger, u as noopLogger } from "./logger-BwbmRqfc.js";
|
|
12
12
|
import { DualLogger, createExportSuppressedLogger, isObservabilityExportSuppressed, resolveTraceFields } from "./logger/index.js";
|
|
13
13
|
import { c as fsAgentScheduleRowId, g as toEpochMs, h as computeNextFireAt, l as parseFsAgentScheduleRowId, m as computeNextFire, t as Schedules } from "./schedules-DZfSx-7P.js";
|
|
@@ -16,14 +16,14 @@ import { initContextStorage } from "./observability/context-storage.js";
|
|
|
16
16
|
import { f as resolveCurrentSpan } from "./utils-DU_pU5SK.js";
|
|
17
17
|
import { r as InMemoryDB } from "./source-fNa6u1kH.js";
|
|
18
18
|
import { r as trackFeatureUsage } from "./feature-telemetry-DdR8J_5o.js";
|
|
19
|
-
import { r as isToolLoopAgentLike, t as toolLoopAgentToMastraAgent } from "./tool-loop-agent-
|
|
19
|
+
import { r as isToolLoopAgentLike, t as toolLoopAgentToMastraAgent } from "./tool-loop-agent-DVYJXlQJ.js";
|
|
20
20
|
import { r as normalizeToolPayloadTransformPolicy } from "./payload-transform-Dj3HUeD4.js";
|
|
21
|
-
import { v as readPositiveIntEnv } from "./utils-
|
|
22
|
-
import { i as OrchestrationWorker, n as BackgroundTaskWorker, r as SchedulerWorker } from "./worker-
|
|
23
|
-
import { n as normalizeWorkflowBuilderDefinition } from "./builder-
|
|
24
|
-
import { d as toJsonSchemaOrUndefined, p as collectNestedWorkflowIds, t as assertValidDynamicWorkflow } from "./validate-
|
|
25
|
-
import { t as rehydrateWorkflow } from "./rehydrate-
|
|
26
|
-
import { jn as createRunScope } from "./stream-
|
|
21
|
+
import { v as readPositiveIntEnv } from "./utils-D8upuTwy.js";
|
|
22
|
+
import { i as OrchestrationWorker, n as BackgroundTaskWorker, r as SchedulerWorker } from "./worker-DbcFkKJO.js";
|
|
23
|
+
import { n as normalizeWorkflowBuilderDefinition } from "./builder-DI2c2xjy.js";
|
|
24
|
+
import { d as toJsonSchemaOrUndefined, p as collectNestedWorkflowIds, t as assertValidDynamicWorkflow } from "./validate-DTkW3Vlp.js";
|
|
25
|
+
import { t as rehydrateWorkflow } from "./rehydrate-CJBLrZxs.js";
|
|
26
|
+
import { jn as createRunScope } from "./stream-C5PagEDs.js";
|
|
27
27
|
import { z } from "zod/v4";
|
|
28
28
|
// src/notifications/workflow.ts
|
|
29
29
|
const NOTIFICATION_DISPATCH_WORKFLOW_ID = "__mastra_notification_dispatcher";
|
|
@@ -721,6 +721,7 @@ var Mastra = class Mastra {
|
|
|
721
721
|
* `startWorkers()` path will pick it up.
|
|
722
722
|
*/
|
|
723
723
|
#workersStarted = false;
|
|
724
|
+
#durableAgentsInitialized = false;
|
|
724
725
|
/**
|
|
725
726
|
* Set when something has signalled that the scheduler is needed at runtime
|
|
726
727
|
* (e.g. an agent schedule was registered via `__ensureScheduleRuntimeReady()`).
|
|
@@ -2040,6 +2041,7 @@ var Mastra = class Mastra {
|
|
|
2040
2041
|
vectors: this.#vectors
|
|
2041
2042
|
});
|
|
2042
2043
|
mastraAgent.__registerExecutionEnginePolicy?.(this.#durable);
|
|
2044
|
+
if (this.#durableAgentsInitialized && mastraAgent.__getExecutionEnginePolicy() === "evented") mastraAgent.__initializeDurableExecution();
|
|
2043
2045
|
agents[agentKey] = mastraAgent;
|
|
2044
2046
|
if (toolLoopInput) {
|
|
2045
2047
|
let registrations = this.#toolLoopRegistrations.get(toolLoopInput);
|
|
@@ -2866,7 +2868,7 @@ var Mastra = class Mastra {
|
|
|
2866
2868
|
*/
|
|
2867
2869
|
async __ensureExperimentWorkflow() {
|
|
2868
2870
|
if (this.__hasInternalWorkflow("__mastra-experiment")) return;
|
|
2869
|
-
const { buildExperimentWorkflow } = await import("./manager-
|
|
2871
|
+
const { buildExperimentWorkflow } = await import("./manager-ChK9GdGz.js").then((n) => n.y);
|
|
2870
2872
|
if (this.__hasInternalWorkflow("__mastra-experiment")) return;
|
|
2871
2873
|
this.__registerInternalWorkflow(buildExperimentWorkflow(), void 0, { distributed: true });
|
|
2872
2874
|
}
|
|
@@ -3354,6 +3356,13 @@ var Mastra = class Mastra {
|
|
|
3354
3356
|
try {
|
|
3355
3357
|
await run.restart();
|
|
3356
3358
|
} catch (error) {
|
|
3359
|
+
if (runFenceConflictOf(error)?.runId === runId) {
|
|
3360
|
+
this.#logger.debug("Stopped restarting workflow run another process took over", {
|
|
3361
|
+
workflow: workflow.id,
|
|
3362
|
+
runId
|
|
3363
|
+
});
|
|
3364
|
+
return;
|
|
3365
|
+
}
|
|
3357
3366
|
if (!(error instanceof MastraError && error.id === "WORKFLOW_RESTART_RUN_OWNED")) throw error;
|
|
3358
3367
|
this.#logger.debug("Skipped restarting workflow run owned by a live process", {
|
|
3359
3368
|
workflow: workflow.id,
|
|
@@ -5060,7 +5069,7 @@ var Mastra = class Mastra {
|
|
|
5060
5069
|
if (!this.#workerFilter || this.#workerFilter.has("agent-schedule")) {
|
|
5061
5070
|
let agentScheduleWorker = this.#findAgentScheduleWorker();
|
|
5062
5071
|
if (!agentScheduleWorker) {
|
|
5063
|
-
const { AgentScheduleWorker } = await import("./worker-
|
|
5072
|
+
const { AgentScheduleWorker } = await import("./worker-Dqubrnf8.js");
|
|
5064
5073
|
agentScheduleWorker = new AgentScheduleWorker();
|
|
5065
5074
|
agentScheduleWorker.__registerMastra(this);
|
|
5066
5075
|
this.#workers.push(agentScheduleWorker);
|
|
@@ -5636,6 +5645,7 @@ var Mastra = class Mastra {
|
|
|
5636
5645
|
/** Build native durable agents' engines and register their workflows, so event ownership checks can find them. */
|
|
5637
5646
|
#initializeDurableAgents() {
|
|
5638
5647
|
for (const agent of Object.values(this.#agents ?? {})) if (hasDurableExecution(agent) && !isDurableAgentLike(agent)) agent.__initializeDurableExecution();
|
|
5648
|
+
this.#durableAgentsInitialized = true;
|
|
5639
5649
|
}
|
|
5640
5650
|
/**
|
|
5641
5651
|
* Process a single workflow event. Shared entry point used by:
|
|
@@ -5699,7 +5709,7 @@ var Mastra = class Mastra {
|
|
|
5699
5709
|
this.#workers.push(sw);
|
|
5700
5710
|
}
|
|
5701
5711
|
if (!this.#findAgentScheduleWorker()) {
|
|
5702
|
-
const { AgentScheduleWorker } = await import("./worker-
|
|
5712
|
+
const { AgentScheduleWorker } = await import("./worker-Dqubrnf8.js");
|
|
5703
5713
|
const asw = new AgentScheduleWorker();
|
|
5704
5714
|
asw.__registerMastra(this);
|
|
5705
5715
|
this.#workers.push(asw);
|
|
@@ -6144,7 +6154,7 @@ var Mastra = class Mastra {
|
|
|
6144
6154
|
#syncGatewayRegistry() {
|
|
6145
6155
|
try {
|
|
6146
6156
|
if (process.env.MASTRA_DEV !== "true" && process.env.MASTRA_DEV !== "1") return;
|
|
6147
|
-
import("./provider-registry-
|
|
6157
|
+
import("./provider-registry-CR385GJ4.js").then((n) => n.d).then(async ({ GatewayRegistry }) => {
|
|
6148
6158
|
const registry = GatewayRegistry.getInstance();
|
|
6149
6159
|
const customGateways = Object.values(this.#gateways || {});
|
|
6150
6160
|
registry.registerCustomGateways(customGateways);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const require_run_registry = require("./run-registry-
|
|
2
|
-
const require_background_tasks = require("./background-tasks-
|
|
3
|
-
const require_inmemory = require("./inmemory-
|
|
4
|
-
const require_manager = require("./manager-
|
|
1
|
+
const require_run_registry = require("./run-registry-TOOfO3hT.cjs");
|
|
2
|
+
const require_background_tasks = require("./background-tasks-Ci5h0dhj.cjs");
|
|
3
|
+
const require_inmemory = require("./inmemory-Dc86VWGB.cjs");
|
|
4
|
+
const require_manager = require("./manager-BVX9nVrM.cjs");
|
|
5
5
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
6
|
-
const require_output_helpers = require("./output-helpers-
|
|
6
|
+
const require_output_helpers = require("./output-helpers-DgsH4aTb.cjs");
|
|
7
7
|
const require_hooks = require("./hooks-D7VDBETj.cjs");
|
|
8
8
|
const require_license_index = require("./license/index.cjs");
|
|
9
|
-
const require_netlify = require("./netlify-
|
|
10
|
-
const require_llm = require("./llm-
|
|
9
|
+
const require_netlify = require("./netlify-D99AnEhW.cjs");
|
|
10
|
+
const require_llm = require("./llm-BAiOsNAP.cjs");
|
|
11
11
|
const require_logger = require("./logger-CvzZYuJd.cjs");
|
|
12
12
|
const require_logger_index = require("./logger/index.cjs");
|
|
13
13
|
const require_schedules = require("./schedules-BZS8McF7.cjs");
|
|
@@ -16,14 +16,14 @@ const require_observability_context_storage = require("./observability/context-s
|
|
|
16
16
|
const require_utils = require("./utils-D-eNsgDM.cjs");
|
|
17
17
|
const require_source = require("./source-BVOi8Xhp.cjs");
|
|
18
18
|
const require_feature_telemetry = require("./feature-telemetry-Cw0L1tHo.cjs");
|
|
19
|
-
const require_tool_loop_agent = require("./tool-loop-agent-
|
|
19
|
+
const require_tool_loop_agent = require("./tool-loop-agent-CJTs4T8b.cjs");
|
|
20
20
|
const require_payload_transform = require("./payload-transform-CWgnsO9w.cjs");
|
|
21
|
-
const require_utils$1 = require("./utils-
|
|
22
|
-
const require_worker = require("./worker-
|
|
23
|
-
const require_builder = require("./builder-
|
|
24
|
-
const require_validate = require("./validate-
|
|
25
|
-
const require_rehydrate = require("./rehydrate-
|
|
26
|
-
const require_stream = require("./stream-
|
|
21
|
+
const require_utils$1 = require("./utils-xJi_N6Tx.cjs");
|
|
22
|
+
const require_worker = require("./worker-24ORi-wV.cjs");
|
|
23
|
+
const require_builder = require("./builder-14Uptu8y.cjs");
|
|
24
|
+
const require_validate = require("./validate-6eZ8Wssn.cjs");
|
|
25
|
+
const require_rehydrate = require("./rehydrate-Da4hNuaK.cjs");
|
|
26
|
+
const require_stream = require("./stream-DH7Qgz8l.cjs");
|
|
27
27
|
let zod_v4 = require("zod/v4");
|
|
28
28
|
// src/notifications/workflow.ts
|
|
29
29
|
const NOTIFICATION_DISPATCH_WORKFLOW_ID = "__mastra_notification_dispatcher";
|
|
@@ -721,6 +721,7 @@ var Mastra = class Mastra {
|
|
|
721
721
|
* `startWorkers()` path will pick it up.
|
|
722
722
|
*/
|
|
723
723
|
#workersStarted = false;
|
|
724
|
+
#durableAgentsInitialized = false;
|
|
724
725
|
/**
|
|
725
726
|
* Set when something has signalled that the scheduler is needed at runtime
|
|
726
727
|
* (e.g. an agent schedule was registered via `__ensureScheduleRuntimeReady()`).
|
|
@@ -2040,6 +2041,7 @@ var Mastra = class Mastra {
|
|
|
2040
2041
|
vectors: this.#vectors
|
|
2041
2042
|
});
|
|
2042
2043
|
mastraAgent.__registerExecutionEnginePolicy?.(this.#durable);
|
|
2044
|
+
if (this.#durableAgentsInitialized && mastraAgent.__getExecutionEnginePolicy() === "evented") mastraAgent.__initializeDurableExecution();
|
|
2043
2045
|
agents[agentKey] = mastraAgent;
|
|
2044
2046
|
if (toolLoopInput) {
|
|
2045
2047
|
let registrations = this.#toolLoopRegistrations.get(toolLoopInput);
|
|
@@ -2866,7 +2868,7 @@ var Mastra = class Mastra {
|
|
|
2866
2868
|
*/
|
|
2867
2869
|
async __ensureExperimentWorkflow() {
|
|
2868
2870
|
if (this.__hasInternalWorkflow("__mastra-experiment")) return;
|
|
2869
|
-
const { buildExperimentWorkflow } = await Promise.resolve().then(() => require("./manager-
|
|
2871
|
+
const { buildExperimentWorkflow } = await Promise.resolve().then(() => require("./manager-BVX9nVrM.cjs")).then((n) => n.workflow_exports);
|
|
2870
2872
|
if (this.__hasInternalWorkflow("__mastra-experiment")) return;
|
|
2871
2873
|
this.__registerInternalWorkflow(buildExperimentWorkflow(), void 0, { distributed: true });
|
|
2872
2874
|
}
|
|
@@ -3354,6 +3356,13 @@ var Mastra = class Mastra {
|
|
|
3354
3356
|
try {
|
|
3355
3357
|
await run.restart();
|
|
3356
3358
|
} catch (error) {
|
|
3359
|
+
if (require_run_registry.runFenceConflictOf(error)?.runId === runId) {
|
|
3360
|
+
this.#logger.debug("Stopped restarting workflow run another process took over", {
|
|
3361
|
+
workflow: workflow.id,
|
|
3362
|
+
runId
|
|
3363
|
+
});
|
|
3364
|
+
return;
|
|
3365
|
+
}
|
|
3357
3366
|
if (!(error instanceof require_error.MastraError && error.id === "WORKFLOW_RESTART_RUN_OWNED")) throw error;
|
|
3358
3367
|
this.#logger.debug("Skipped restarting workflow run owned by a live process", {
|
|
3359
3368
|
workflow: workflow.id,
|
|
@@ -5060,7 +5069,7 @@ var Mastra = class Mastra {
|
|
|
5060
5069
|
if (!this.#workerFilter || this.#workerFilter.has("agent-schedule")) {
|
|
5061
5070
|
let agentScheduleWorker = this.#findAgentScheduleWorker();
|
|
5062
5071
|
if (!agentScheduleWorker) {
|
|
5063
|
-
const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-
|
|
5072
|
+
const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-BO3u_WjZ.cjs"));
|
|
5064
5073
|
agentScheduleWorker = new AgentScheduleWorker();
|
|
5065
5074
|
agentScheduleWorker.__registerMastra(this);
|
|
5066
5075
|
this.#workers.push(agentScheduleWorker);
|
|
@@ -5636,6 +5645,7 @@ var Mastra = class Mastra {
|
|
|
5636
5645
|
/** Build native durable agents' engines and register their workflows, so event ownership checks can find them. */
|
|
5637
5646
|
#initializeDurableAgents() {
|
|
5638
5647
|
for (const agent of Object.values(this.#agents ?? {})) if (require_run_registry.hasDurableExecution(agent) && !require_run_registry.isDurableAgentLike(agent)) agent.__initializeDurableExecution();
|
|
5648
|
+
this.#durableAgentsInitialized = true;
|
|
5639
5649
|
}
|
|
5640
5650
|
/**
|
|
5641
5651
|
* Process a single workflow event. Shared entry point used by:
|
|
@@ -5699,7 +5709,7 @@ var Mastra = class Mastra {
|
|
|
5699
5709
|
this.#workers.push(sw);
|
|
5700
5710
|
}
|
|
5701
5711
|
if (!this.#findAgentScheduleWorker()) {
|
|
5702
|
-
const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-
|
|
5712
|
+
const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-BO3u_WjZ.cjs"));
|
|
5703
5713
|
const asw = new AgentScheduleWorker();
|
|
5704
5714
|
asw.__registerMastra(this);
|
|
5705
5715
|
this.#workers.push(asw);
|
|
@@ -6144,7 +6154,7 @@ var Mastra = class Mastra {
|
|
|
6144
6154
|
#syncGatewayRegistry() {
|
|
6145
6155
|
try {
|
|
6146
6156
|
if (process.env.MASTRA_DEV !== "true" && process.env.MASTRA_DEV !== "1") return;
|
|
6147
|
-
Promise.resolve().then(() => require("./provider-registry-
|
|
6157
|
+
Promise.resolve().then(() => require("./provider-registry-CO1NVbO5.cjs")).then((n) => n.provider_registry_exports).then(async ({ GatewayRegistry }) => {
|
|
6148
6158
|
const registry = GatewayRegistry.getInstance();
|
|
6149
6159
|
const customGateways = Object.values(this.#gateways || {});
|
|
6150
6160
|
registry.registerCustomGateways(customGateways);
|
package/dist/memory/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_run_registry = require("../run-registry-
|
|
3
|
-
const require_stream = require("../stream-
|
|
2
|
+
const require_run_registry = require("../run-registry-TOOfO3hT.cjs");
|
|
3
|
+
const require_stream = require("../stream-DH7Qgz8l.cjs");
|
|
4
4
|
const require_message_list = require("../message-list-Cj0Sq_JP.cjs");
|
|
5
5
|
exports.AUTHORED_USER_TURN = require_message_list.AUTHORED_USER_TURN;
|
|
6
6
|
exports.DEFAULT_MESSAGE_EMBEDDING_MAX_CHUNK_CHARS = require_run_registry.DEFAULT_MESSAGE_EMBEDDING_MAX_CHUNK_CHARS;
|
package/dist/memory/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ao as
|
|
2
|
-
import { Jt as isObservationalMemoryEnabled, Kt as TITLE_PINNED_THREAD_METADATA_KEY, Xt as parseMemoryRequestContext, Yt as isThreadTitlePinned, Zt as setThreadOMMetadata, qt as getThreadOMMetadata } from "../stream-
|
|
1
|
+
import { Ao as chunkMessageText, Do as DEFAULT_MESSAGE_EMBEDDING_MAX_CHUNK_CHARS, Fo as MastraMemory, Io as MemoryProcessor, Lo as memoryDefaultOptions, Mo as messageVectorId, No as resolveMaxChunkChars, Oo as MESSAGE_EMBEDDING_CHARS_PER_TOKEN, Po as upsertMessageVectors, Ro as filterSystemReminderMessages, cs as advanceMemoryTokenBoundary, ds as normalizeMessageHistoryConfig, er as MemoryRunState, jo as extractMessageEmbeddingText, ko as buildMessageEmbeddingRows, ls as getMemoryTokenBoundary, nr as MockMemory, os as groupLinkedToolMessages, ss as loadMessageHistory, tr as getMemoryRunState, us as isAfterMemoryTokenBoundary, zo as isSystemReminderMessage } from "../run-registry-DdeEBsVW.js";
|
|
2
|
+
import { Jt as isObservationalMemoryEnabled, Kt as TITLE_PINNED_THREAD_METADATA_KEY, Xt as parseMemoryRequestContext, Yt as isThreadTitlePinned, Zt as setThreadOMMetadata, qt as getThreadOMMetadata } from "../stream-C5PagEDs.js";
|
|
3
3
|
import { $ as AUTHORED_USER_TURN, C as extractWorkingMemoryTags, D as removeWorkingMemoryToolInvocationParts, E as removeWorkingMemoryTags, O as removeWorkingMemoryToolInvocations, S as extractWorkingMemoryContent, T as removeSystemReminderTags, _ as SYSTEM_REMINDER_START_TAG, at as stripClientAuthoredTurnMarks, b as WORKING_MEMORY_START_TAG, et as asUserTurn, g as SYSTEM_REMINDER_END_TAG, h as SET_WORKING_MEMORY_TOOL_NAME, it as sealUserTurnMessage, nt as messageDeclaresAuthoredTurn, rt as sealTurnMarkup, tt as escapeTurnMarkup, v as UPDATE_WORKING_MEMORY_TOOL_NAME, w as isWorkingMemoryToolName, x as WORKING_MEMORY_TOOL_NAMES, y as WORKING_MEMORY_END_TAG } from "../message-list-KRbg-TnI.js";
|
|
4
4
|
export { AUTHORED_USER_TURN, DEFAULT_MESSAGE_EMBEDDING_MAX_CHUNK_CHARS, MESSAGE_EMBEDDING_CHARS_PER_TOKEN, MastraMemory, MemoryProcessor, MemoryRunState, MockMemory, SET_WORKING_MEMORY_TOOL_NAME, SYSTEM_REMINDER_END_TAG, SYSTEM_REMINDER_START_TAG, TITLE_PINNED_THREAD_METADATA_KEY, UPDATE_WORKING_MEMORY_TOOL_NAME, WORKING_MEMORY_END_TAG, WORKING_MEMORY_START_TAG, WORKING_MEMORY_TOOL_NAMES, advanceMemoryTokenBoundary, asUserTurn, buildMessageEmbeddingRows, chunkMessageText, escapeTurnMarkup, extractMessageEmbeddingText, extractWorkingMemoryContent, extractWorkingMemoryTags, filterSystemReminderMessages, getMemoryRunState, getMemoryTokenBoundary, getThreadOMMetadata, groupLinkedToolMessages, isAfterMemoryTokenBoundary, isObservationalMemoryEnabled, isSystemReminderMessage, isThreadTitlePinned, isWorkingMemoryToolName, loadMessageHistory, memoryDefaultOptions, messageDeclaresAuthoredTurn, messageVectorId, normalizeMessageHistoryConfig, parseMemoryRequestContext, removeSystemReminderTags, removeWorkingMemoryTags, removeWorkingMemoryToolInvocationParts, removeWorkingMemoryToolInvocations, resolveMaxChunkChars, sealTurnMarkup, sealUserTurnMessage, setThreadOMMetadata, stripClientAuthoredTurnMarks, upsertMessageVectors };
|
|
@@ -4,7 +4,7 @@ import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "./error-
|
|
|
4
4
|
import { n as executeWithContextSync, t as executeWithContext } from "./utils-DU_pU5SK.js";
|
|
5
5
|
import { S as resolveObservabilityContext } from "./observability-D7RNOAPx.js";
|
|
6
6
|
import { isStandardSchemaWithJSON, standardSchemaToJSONSchema, toStandardSchema } from "./schema/index.js";
|
|
7
|
-
import { i as delay, u as isZodType$1 } from "./utils-
|
|
7
|
+
import { i as delay, u as isZodType$1 } from "./utils-D8upuTwy.js";
|
|
8
8
|
import { i as isZodArray, t as getZodDef } from "./zod-utils-BDDS_mxU.js";
|
|
9
9
|
import { AnthropicSchemaCompatLayer, DeepSeekSchemaCompatLayer, GoogleSchemaCompatLayer, MetaSchemaCompatLayer, OpenAIReasoningSchemaCompatLayer, OpenAISchemaCompatLayer, applyCompatLayer, jsonSchema } from "@mastra/schema-compat";
|
|
10
10
|
// src/stream/aisdk/v4/usage.ts
|
|
@@ -3,7 +3,7 @@ const require_base = require("./base-BIzR1D3_.cjs");
|
|
|
3
3
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
4
4
|
const require_utils = require("./utils-D-eNsgDM.cjs");
|
|
5
5
|
const require_observability = require("./observability-B0R_D1PZ.cjs");
|
|
6
|
-
const require_utils$1 = require("./utils-
|
|
6
|
+
const require_utils$1 = require("./utils-xJi_N6Tx.cjs");
|
|
7
7
|
const require_zod_utils = require("./zod-utils-Cl5jw5N_.cjs");
|
|
8
8
|
let _mastra_schema_compat = require("@mastra/schema-compat");
|
|
9
9
|
let _mastra_schema_compat_schema = require("@mastra/schema-compat/schema");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-tIEjjQTE.js";
|
|
2
2
|
import { i as MastraError } from "./error-oh2DLsP2.js";
|
|
3
3
|
import { r as createGatewayProvider } from "./dist-ByO0vuJJ-CCXLBnvJ.js";
|
|
4
|
-
import { t as InMemoryServerCache } from "./inmemory-
|
|
4
|
+
import { t as InMemoryServerCache } from "./inmemory-BK3zLwvM.js";
|
|
5
5
|
import * as z4 from "zod/v4";
|
|
6
6
|
import { safeParseAsync, z } from "zod/v4";
|
|
7
7
|
import { ZodFirstPartyTypeKind } from "zod/v3";
|
|
@@ -20708,7 +20708,7 @@ function createOpenRouter(options = {}) {
|
|
|
20708
20708
|
}
|
|
20709
20709
|
createOpenRouter({ compatibility: "strict" });
|
|
20710
20710
|
// src/llm/model/gateways/constants.ts
|
|
20711
|
-
const MASTRA_USER_AGENT = `mastra/1.
|
|
20711
|
+
const MASTRA_USER_AGENT = `mastra/1.87.0-alpha.0`;
|
|
20712
20712
|
const PROVIDERS_WITH_INSTALLED_PACKAGES = [
|
|
20713
20713
|
"anthropic",
|
|
20714
20714
|
"cerebras",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
|
|
2
2
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
3
3
|
const require_dist_ByO0vuJJ = require("./dist-ByO0vuJJ-BjMue5_p.cjs");
|
|
4
|
-
const require_inmemory = require("./inmemory-
|
|
4
|
+
const require_inmemory = require("./inmemory-Dc86VWGB.cjs");
|
|
5
5
|
let zod_v4 = require("zod/v4");
|
|
6
6
|
zod_v4 = require_rolldown_runtime.__toESM(zod_v4, 1);
|
|
7
7
|
let zod_v3 = require("zod/v3");
|
|
@@ -20709,7 +20709,7 @@ function createOpenRouter(options = {}) {
|
|
|
20709
20709
|
}
|
|
20710
20710
|
createOpenRouter({ compatibility: "strict" });
|
|
20711
20711
|
// src/llm/model/gateways/constants.ts
|
|
20712
|
-
const MASTRA_USER_AGENT = `mastra/1.
|
|
20712
|
+
const MASTRA_USER_AGENT = `mastra/1.87.0-alpha.0`;
|
|
20713
20713
|
const PROVIDERS_WITH_INSTALLED_PACKAGES = [
|
|
20714
20714
|
"anthropic",
|
|
20715
20715
|
"cerebras",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_run_registry = require("../run-registry-
|
|
2
|
+
const require_run_registry = require("../run-registry-TOOfO3hT.cjs");
|
|
3
3
|
const require_tool = require("../tool-CYlT2UA-.cjs");
|
|
4
4
|
let zod_v4 = require("zod/v4");
|
|
5
5
|
// src/notifications/tool.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $r as MAX_NOTIFICATION_DELIVERY_ATTEMPTS, Gr as createNotificationSignal, Hr as InMemoryNotificationsStorage, Jr as notificationSignalMetadata, Kr as createNotificationSummarySignal, Qr as readNotificationRoutingRequirement, Ur as NotificationsStorage, Wr as dispatchDueNotifications, Xr as notificationSummarySignalMetadata, Yr as notificationSummaryContents, Zr as summarizeNotifications, ei as defaultNotificationDeliveryDecision, ni as resolveNotificationDeliveryDecision, qr as notificationSignalAttributes, ti as resolveDeliveryFailureUpdate } from "../run-registry-DdeEBsVW.js";
|
|
2
2
|
import { r as createTool } from "../tool-Z3bykc1m.js";
|
|
3
3
|
import { z } from "zod/v4";
|
|
4
4
|
// src/notifications/tool.ts
|
|
@@ -53,5 +53,6 @@ exports.setExecuteWithContext = require_utils.setExecuteWithContext;
|
|
|
53
53
|
exports.setExecuteWithContextSync = require_utils.setExecuteWithContextSync;
|
|
54
54
|
exports.setSpanErrorOrigin = require_error_count.setSpanErrorOrigin;
|
|
55
55
|
exports.startRagIngestion = require_observability.startRagIngestion;
|
|
56
|
+
exports.subtractReportedUsage = require_observability.subtractReportedUsage;
|
|
56
57
|
exports.withRagIngestion = require_observability.withRagIngestion;
|
|
57
58
|
exports.wrapMastra = require_observability.wrapMastra;
|
|
@@ -21,7 +21,7 @@ export { agentLoopTermination } from '../loop/shared/execution-outcome.js';
|
|
|
21
21
|
/** @internal Bounded stop-reason context for runtime instrumentation. */
|
|
22
22
|
export { compactStopReasonContext } from './outcome-schema.js';
|
|
23
23
|
/** @internal Preserve observed model usage when an incomplete provider call ends a durable run. */
|
|
24
|
-
export { calculateObservedUsage, isUsageIncomplete } from './usage.js';
|
|
24
|
+
export { calculateObservedUsage, isUsageIncomplete, subtractReportedUsage } from './usage.js';
|
|
25
25
|
/** @internal Origin accounting shared with independently upgraded observability packages. */
|
|
26
26
|
export { claimSpanError, getSpanErrorOrigin, setSpanErrorOrigin } from './error-count.js';
|
|
27
27
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as compactStopReasonContext, C as NoOpObservability, D as agentLoopTermination, E as noOpTracingContext, M as SPAN_STOP_REASONS, O as executionFailureTermination, S as resolveObservabilityContext, T as noOpMetricsContext, _ as parseTraceparent, b as wrapMastra, c as startRagIngestion, d as describeSpanInput, f as describeSpanOutput, g as formatTraceparent, h as describeProcessorPipeline, j as SPAN_OUTCOMES, l as withRagIngestion, m as describeProcessorPhase, o as buildSpanPreviews, p as isSpanRecordOfType, r as isUsageIncomplete, t as calculateObservedUsage, u as describeSpanError, v as SamplingStrategyType, w as noOpLoggerContext, x as createObservabilityContext } from "../observability-D7RNOAPx.js";
|
|
1
|
+
import { A as compactStopReasonContext, C as NoOpObservability, D as agentLoopTermination, E as noOpTracingContext, M as SPAN_STOP_REASONS, O as executionFailureTermination, S as resolveObservabilityContext, T as noOpMetricsContext, _ as parseTraceparent, b as wrapMastra, c as startRagIngestion, d as describeSpanInput, f as describeSpanOutput, g as formatTraceparent, h as describeProcessorPipeline, i as subtractReportedUsage, j as SPAN_OUTCOMES, l as withRagIngestion, m as describeProcessorPhase, o as buildSpanPreviews, p as isSpanRecordOfType, r as isUsageIncomplete, t as calculateObservedUsage, u as describeSpanError, v as SamplingStrategyType, w as noOpLoggerContext, x as createObservabilityContext } from "../observability-D7RNOAPx.js";
|
|
2
2
|
import { t as EntityType } from "../storage-Cc50aQAp.js";
|
|
3
3
|
import { _ as InternalSpans, a as getOrCreateSpan, c as getStepAvailableToolNames, d as nestUnderRun, f as resolveCurrentSpan, g as setExecuteWithContextSync, h as setExecuteWithContext, i as getEntityTypeForSpan, l as getTimeToFirstChunkMs, m as setCurrentSpanResolver, n as executeWithContextSync, o as getResumeTracingContext, p as resolveExportedSpanId, r as generateSignalId, s as getRootExportSpan, t as executeWithContext, u as getWorkflowResumeTracingContext, v as SpanType, y as TracingEventType } from "../utils-DU_pU5SK.js";
|
|
4
4
|
import { n as TokenMetrics, t as DEFAULT_BLOCKED_LABELS } from "../metrics-CYB9MY31.js";
|
|
5
5
|
import { i as setSpanErrorOrigin, n as getSpanErrorOrigin, t as claimSpanError } from "../error-count-BH-rJW7q.js";
|
|
6
|
-
export { DEFAULT_BLOCKED_LABELS, EntityType, InternalSpans, NoOpObservability, SPAN_OUTCOMES, SPAN_STOP_REASONS, SamplingStrategyType, SpanType, TokenMetrics, TracingEventType, agentLoopTermination, buildSpanPreviews, calculateObservedUsage, claimSpanError, compactStopReasonContext, createObservabilityContext, describeProcessorPhase, describeProcessorPipeline, describeSpanError, describeSpanInput, describeSpanOutput, executeWithContext, executeWithContextSync, executionFailureTermination, formatTraceparent, generateSignalId, getEntityTypeForSpan, getOrCreateSpan, getResumeTracingContext, getRootExportSpan, getSpanErrorOrigin, getStepAvailableToolNames, getTimeToFirstChunkMs, getWorkflowResumeTracingContext, isSpanRecordOfType, isUsageIncomplete, nestUnderRun, noOpLoggerContext, noOpMetricsContext, noOpTracingContext, parseTraceparent, resolveCurrentSpan, resolveExportedSpanId, resolveObservabilityContext, setCurrentSpanResolver, setExecuteWithContext, setExecuteWithContextSync, setSpanErrorOrigin, startRagIngestion, withRagIngestion, wrapMastra };
|
|
6
|
+
export { DEFAULT_BLOCKED_LABELS, EntityType, InternalSpans, NoOpObservability, SPAN_OUTCOMES, SPAN_STOP_REASONS, SamplingStrategyType, SpanType, TokenMetrics, TracingEventType, agentLoopTermination, buildSpanPreviews, calculateObservedUsage, claimSpanError, compactStopReasonContext, createObservabilityContext, describeProcessorPhase, describeProcessorPipeline, describeSpanError, describeSpanInput, describeSpanOutput, executeWithContext, executeWithContextSync, executionFailureTermination, formatTraceparent, generateSignalId, getEntityTypeForSpan, getOrCreateSpan, getResumeTracingContext, getRootExportSpan, getSpanErrorOrigin, getStepAvailableToolNames, getTimeToFirstChunkMs, getWorkflowResumeTracingContext, isSpanRecordOfType, isUsageIncomplete, nestUnderRun, noOpLoggerContext, noOpMetricsContext, noOpTracingContext, parseTraceparent, resolveCurrentSpan, resolveExportedSpanId, resolveObservabilityContext, setCurrentSpanResolver, setExecuteWithContext, setExecuteWithContextSync, setSpanErrorOrigin, startRagIngestion, subtractReportedUsage, withRagIngestion, wrapMastra };
|