@mastra/core 1.86.0-alpha.6 → 1.86.0-alpha.8
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/_types/@internal_core@0.1.4/dist/memory/index.d.ts +25 -0
- package/dist/agent/agent.d.ts +87 -12
- package/dist/agent/agent.types.d.ts +34 -2
- package/dist/agent/durable/create-durable-agent.d.ts +1 -1
- package/dist/agent/durable/create-evented-agent.d.ts +6 -0
- package/dist/agent/durable/durable-agent.d.ts +30 -514
- package/dist/agent/durable/durable-stream-until-idle.d.ts +2 -1
- package/dist/agent/durable/evented-agent.d.ts +2 -5
- package/dist/agent/durable/execution-engine.d.ts +20 -3
- package/dist/agent/durable/index.cjs +61 -6351
- package/dist/agent/durable/index.d.ts +3 -2
- package/dist/agent/durable/index.js +50 -6340
- package/dist/agent/durable/stream-adapter.d.ts +5 -5
- package/dist/agent/durable/types.d.ts +454 -3
- package/dist/agent/durable/workflows/durable-loop-builder.d.ts +7 -9
- package/dist/agent/helpers.d.ts +1 -1
- package/dist/agent/index.cjs +4 -4
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/index.js +4 -4
- package/dist/agent/streams/execution-capability.d.ts +3 -2
- package/dist/agent/streams/execution-policy.d.ts +1 -1
- package/dist/agent/streams/types.d.ts +3 -3
- package/dist/agent/types.d.ts +30 -5
- package/dist/agent-builder/ee/index.cjs +1 -1
- package/dist/agent-builder/ee/index.js +1 -1
- package/dist/agent-controller/index.cjs +2 -2
- package/dist/agent-controller/index.js +2 -2
- package/dist/{agent-controller-c4KbZ8DY.js → agent-controller-B7POPub5.js} +9 -9
- package/dist/{agent-controller-6ORqG6hK.cjs → agent-controller-DEPayioq.cjs} +9 -9
- package/dist/{agent-skills-resolver-BIeWsb01.cjs → agent-skills-resolver-BMoCDoaK.cjs} +1 -1
- package/dist/{agent-skills-resolver-k04IRam7.js → agent-skills-resolver-CUEIMDbx.js} +1 -1
- package/dist/background-tasks/index.cjs +1 -1
- package/dist/background-tasks/index.js +1 -1
- package/dist/{background-tasks-Da0c3R-J.cjs → background-tasks-7iftnRK_.cjs} +1 -1
- package/dist/{background-tasks-CEglmAt7.js → background-tasks-Cv1ecD6S.js} +1 -1
- package/dist/browser/index.cjs +2 -2
- package/dist/browser/index.js +2 -2
- package/dist/{builder-DS826dWf.cjs → builder-DuJBbQDH.cjs} +3 -3
- package/dist/{builder-0V9N8S15.js → builder-Gg-xnX_E.js} +3 -3
- package/dist/capabilities/302ai.json +198 -198
- package/dist/capabilities/abliteratedllm.json +38 -38
- package/dist/capabilities/abliteration-ai.json +6 -6
- package/dist/capabilities/above.json +23 -23
- package/dist/capabilities/adaption.json +14 -14
- package/dist/capabilities/adzuki.json +22 -22
- package/dist/capabilities/agentrouter.json +7 -7
- package/dist/capabilities/agnes.json +2 -2
- package/dist/capabilities/ai-router.json +5 -5
- package/dist/capabilities/aiand.json +23 -23
- package/dist/capabilities/aigrow.json +15 -15
- package/dist/capabilities/aimlapi.json +143 -143
- package/dist/capabilities/aipg.json +2 -2
- package/dist/capabilities/aixy.json +16 -16
- package/dist/capabilities/aki-io.json +12 -12
- package/dist/capabilities/alibaba-cn.json +84 -84
- 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 +51 -51
- package/dist/capabilities/alibaba-token-plan.json +52 -52
- package/dist/capabilities/alibaba.json +69 -69
- package/dist/capabilities/ambient.json +12 -12
- package/dist/capabilities/amd.json +10 -10
- package/dist/capabilities/anthropic.json +64 -40
- package/dist/capabilities/anyapi.json +12 -12
- package/dist/capabilities/apiko.json +5 -5
- package/dist/capabilities/arcee.json +7 -7
- package/dist/capabilities/augure.json +8 -8
- package/dist/capabilities/auriko.json +21 -21
- package/dist/capabilities/bailing.json +2 -2
- package/dist/capabilities/baseten.json +26 -26
- package/dist/capabilities/bee.json +4 -4
- package/dist/capabilities/berget.json +4 -4
- package/dist/capabilities/bothub.json +17 -17
- package/dist/capabilities/boundless.json +41 -41
- package/dist/capabilities/bumo.json +43 -43
- package/dist/capabilities/byteplus.json +31 -31
- package/dist/capabilities/cerebras.json +4 -4
- package/dist/capabilities/cheapaimodel.json +6 -6
- package/dist/capabilities/cheapest-token.json +32 -32
- package/dist/capabilities/chutes.json +10 -10
- package/dist/capabilities/cline-pass.json +43 -43
- package/dist/capabilities/cloudcode.json +8 -8
- package/dist/capabilities/cloudferro-sherlock.json +4 -4
- package/dist/capabilities/cloudflare-workers-ai.json +31 -31
- package/dist/capabilities/commandcode.json +151 -151
- package/dist/capabilities/concentrate.json +287 -263
- package/dist/capabilities/cortecs.json +106 -106
- package/dist/capabilities/crossmodel.json +189 -189
- package/dist/capabilities/crusoe.json +3 -3
- package/dist/capabilities/daoxe.json +9 -9
- package/dist/capabilities/databricks.json +62 -62
- package/dist/capabilities/deepinfra.json +97 -88
- package/dist/capabilities/deepseek.json +3 -3
- package/dist/capabilities/digitalocean.json +114 -114
- package/dist/capabilities/dothoosh.json +36 -36
- package/dist/capabilities/doubleword.json +29 -29
- package/dist/capabilities/edenai.json +443 -442
- package/dist/capabilities/empiriolabs.json +172 -172
- package/dist/capabilities/engy.json +20 -20
- package/dist/capabilities/entrim.json +8 -8
- package/dist/capabilities/evroc.json +15 -15
- package/dist/capabilities/ezkielyna.json +7 -7
- package/dist/capabilities/fastrouter.json +82 -82
- package/dist/capabilities/fireworks-ai.json +50 -50
- package/dist/capabilities/freemodel.json +24 -24
- package/dist/capabilities/friendli.json +6 -6
- package/dist/capabilities/frogbot.json +98 -98
- package/dist/capabilities/gisoo.json +20 -20
- package/dist/capabilities/gmicloud.json +14 -14
- package/dist/capabilities/google.json +60 -60
- package/dist/capabilities/graphn.json +12 -12
- package/dist/capabilities/greenpt.json +33 -33
- package/dist/capabilities/groq.json +9 -9
- package/dist/capabilities/helicone.json +81 -81
- package/dist/capabilities/hopper.json +2 -2
- package/dist/capabilities/hostinger-router.json +12 -12
- package/dist/capabilities/hpc-ai.json +10 -10
- package/dist/capabilities/huawei-maas.json +15 -15
- package/dist/capabilities/hubris.json +27 -27
- package/dist/capabilities/huggingface.json +59 -50
- package/dist/capabilities/humain.json +2 -2
- package/dist/capabilities/hyper.json +25 -25
- package/dist/capabilities/impossibl.json +140 -140
- package/dist/capabilities/inception.json +2 -2
- package/dist/capabilities/inceptron.json +8 -8
- package/dist/capabilities/inco.json +4 -4
- package/dist/capabilities/infer.json +14 -14
- package/dist/capabilities/inferall.json +7 -7
- package/dist/capabilities/inference-coop.json +15 -15
- package/dist/capabilities/inferenceapis.json +18 -18
- package/dist/capabilities/inferris.json +4 -4
- package/dist/capabilities/infersia.json +13 -13
- package/dist/capabilities/infomaniak.json +2 -2
- package/dist/capabilities/io-net.json +5 -5
- package/dist/capabilities/isoquant.json +4 -4
- package/dist/capabilities/iteracompute.json +54 -54
- package/dist/capabilities/jalapeno.json +12 -12
- package/dist/capabilities/jiekou.json +63 -63
- package/dist/capabilities/joingonka.json +4 -4
- package/dist/capabilities/jzstoken.json +56 -56
- package/dist/capabilities/keln.json +27 -27
- package/dist/capabilities/kenari.json +117 -111
- package/dist/capabilities/kilo.json +625 -649
- 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 +21 -21
- package/dist/capabilities/korouter.json +33 -33
- package/dist/capabilities/kunavo.json +9 -9
- package/dist/capabilities/liquid.json +8 -8
- package/dist/capabilities/lithosai.json +3 -3
- package/dist/capabilities/llmgateway-providers.json +932 -905
- package/dist/capabilities/llmgateway.json +343 -343
- package/dist/capabilities/llmtr.json +25 -25
- package/dist/capabilities/longcat.json +2 -2
- package/dist/capabilities/lowrouter.json +48 -48
- package/dist/capabilities/lyceum.json +13 -13
- package/dist/capabilities/melious.json +13 -13
- package/dist/capabilities/merge-gateway.json +294 -294
- package/dist/capabilities/meta.json +10 -10
- package/dist/capabilities/minimax-cn-coding-plan.json +6 -6
- package/dist/capabilities/minimax-coding-plan.json +6 -6
- package/dist/capabilities/mistral.json +20 -20
- package/dist/capabilities/mixlayer.json +3 -3
- package/dist/capabilities/modal.json +14 -14
- package/dist/capabilities/model-oracle-ai.json +19 -19
- package/dist/capabilities/modelis.json +19 -19
- package/dist/capabilities/modular.json +5 -5
- package/dist/capabilities/moneo.json +17 -17
- package/dist/capabilities/moonshotai-cn.json +5 -5
- package/dist/capabilities/moonshotai.json +5 -5
- package/dist/capabilities/morph.json +14 -14
- package/dist/capabilities/munito-eu.json +8 -8
- package/dist/capabilities/munito.json +10 -10
- package/dist/capabilities/nan.json +28 -28
- package/dist/capabilities/nano-gpt.json +597 -567
- package/dist/capabilities/nearai.json +89 -89
- package/dist/capabilities/nebius.json +40 -31
- package/dist/capabilities/neon.json +135 -135
- package/dist/capabilities/neuralwatt.json +39 -39
- package/dist/capabilities/nokeep.json +2 -2
- package/dist/capabilities/novita-ai.json +158 -158
- package/dist/capabilities/nvidia.json +35 -35
- package/dist/capabilities/oathbreaker.json +2 -2
- package/dist/capabilities/obscurify.json +26 -26
- package/dist/capabilities/oci.json +6 -6
- package/dist/capabilities/ofox.json +352 -352
- package/dist/capabilities/ollama-cloud.json +52 -52
- package/dist/capabilities/openai.json +49 -56
- package/dist/capabilities/opencode-go.json +82 -81
- package/dist/capabilities/openreason.json +5 -5
- package/dist/capabilities/openrouter.json +557 -567
- package/dist/capabilities/opper.json +28 -22
- package/dist/capabilities/orcarouter.json +230 -230
- package/dist/capabilities/outerlabs.json +33 -33
- package/dist/capabilities/ovhcloud.json +6 -6
- package/dist/capabilities/pareto.json +6 -6
- package/dist/capabilities/perplexity-agent.json +58 -58
- package/dist/capabilities/perplexity.json +2 -2
- package/dist/capabilities/phala.json +22 -22
- package/dist/capabilities/pioneer.json +30 -30
- package/dist/capabilities/poe.json +122 -122
- package/dist/capabilities/poolside.json +3 -3
- package/dist/capabilities/powerspring.json +10 -10
- package/dist/capabilities/primalabs.json +8 -8
- package/dist/capabilities/prime.json +114 -97
- package/dist/capabilities/privatemode-ai.json +11 -11
- package/dist/capabilities/proxystacks.json +7 -7
- package/dist/capabilities/qiniu-ai.json +13 -13
- package/dist/capabilities/refuseless.json +7 -7
- package/dist/capabilities/regolo-ai.json +6 -6
- package/dist/capabilities/requesty.json +172 -189
- package/dist/capabilities/ruapi.json +18 -18
- package/dist/capabilities/runcrate.json +17 -17
- package/dist/capabilities/runinfra.json +16 -16
- package/dist/capabilities/sakana.json +6 -6
- package/dist/capabilities/sambanova.json +4 -4
- package/dist/capabilities/sandbase.json +24 -24
- package/dist/capabilities/sarvam.json +12 -12
- package/dist/capabilities/scaleway.json +19 -19
- package/dist/capabilities/scnet-token-plan.json +10 -10
- package/dist/capabilities/scx-ai.json +23 -23
- package/dist/capabilities/sensenova.json +14 -14
- package/dist/capabilities/siliconflow-cn.json +64 -64
- package/dist/capabilities/siliconflow.json +63 -63
- package/dist/capabilities/snowflake-cortex.json +23 -23
- package/dist/capabilities/sokkan.json +12 -12
- package/dist/capabilities/sparrowcodes.json +23 -23
- package/dist/capabilities/standardcompute.json +83 -83
- package/dist/capabilities/steadyrouter.json +39 -39
- package/dist/capabilities/stepfun-ai-step-plan.json +5 -5
- 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 +16 -16
- package/dist/capabilities/superbot-gg.json +4 -4
- package/dist/capabilities/synthetic.json +14 -14
- package/dist/capabilities/synthorai.json +29 -29
- package/dist/capabilities/teamorouter.json +26 -26
- package/dist/capabilities/teapot-router.json +13 -13
- package/dist/capabilities/tencent-coding-plan.json +2 -2
- package/dist/capabilities/tencent-token-plan.json +30 -30
- package/dist/capabilities/tencent-tokenhub.json +8 -8
- package/dist/capabilities/tensorx.json +45 -45
- package/dist/capabilities/tenstorrent.json +8 -8
- package/dist/capabilities/the-grid-ai.json +35 -35
- package/dist/capabilities/thinkingmachines.json +59 -59
- package/dist/capabilities/tinfoil.json +5 -5
- package/dist/capabilities/toapis.json +2 -2
- package/dist/capabilities/togetherai.json +59 -59
- package/dist/capabilities/tokengo.json +24 -24
- package/dist/capabilities/tokenify.json +9 -9
- package/dist/capabilities/trustedrouter.json +5 -5
- package/dist/capabilities/trustedtokens.json +18 -18
- package/dist/capabilities/umans-ai-coding-plan.json +18 -18
- package/dist/capabilities/umans-ai.json +15 -15
- package/dist/capabilities/uncensuredai.json +4 -4
- package/dist/capabilities/unrestricted.json +4 -4
- package/dist/capabilities/uplinkswitch.json +21 -21
- package/dist/capabilities/upstage.json +7 -7
- package/dist/capabilities/vancine.json +20 -20
- package/dist/capabilities/vercel.json +568 -576
- package/dist/capabilities/vivgrid.json +78 -78
- package/dist/capabilities/volcengine-coding-plan.json +30 -30
- package/dist/capabilities/volcengine.json +35 -35
- package/dist/capabilities/vultr.json +27 -27
- package/dist/capabilities/wafer.ai.json +16 -16
- package/dist/capabilities/wallaby.json +5 -5
- package/dist/capabilities/wally.json +11 -11
- package/dist/capabilities/wandb.json +21 -21
- package/dist/capabilities/watt.json +26 -26
- 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 +3 -3
- package/dist/capabilities/xiaomi-token-plan-sgp.json +2 -2
- package/dist/capabilities/xiaomi.json +6 -6
- package/dist/capabilities/xpersona.json +12 -12
- package/dist/capabilities/xxapi.json +31 -31
- package/dist/capabilities/zai-coding-plan.json +13 -13
- package/dist/capabilities/zai.json +27 -27
- package/dist/capabilities/zenifra.json +27 -27
- package/dist/capabilities/zenmux.json +195 -195
- package/dist/capabilities/zerogpu.json +12 -12
- package/dist/capabilities/zhipuai-coding-plan.json +8 -8
- package/dist/capabilities/zhipuai.json +27 -27
- package/dist/capabilities/zro.json +6 -6
- package/dist/channels/agent-channels.d.ts +11 -0
- package/dist/channels/chat-tools.d.ts +156 -0
- package/dist/channels/index.cjs +7 -2
- package/dist/channels/index.d.ts +2 -0
- package/dist/channels/index.js +3 -3
- package/dist/{channels-C5DxhFRc.js → channels-BRVCOutx.js} +1 -1
- package/dist/{channels-B57qQolh.cjs → channels-MjTA9bFp.cjs} +1 -1
- package/dist/coding-agent/index.cjs +4 -4
- package/dist/coding-agent/index.js +4 -4
- package/dist/{constants-DaBkXs5H.cjs → constants-B9ZDvXZ4.cjs} +41 -0
- package/dist/{constants-BDHIyN28.js → constants-BmdTvEYN.js} +30 -1
- package/dist/datasets/dataset.d.ts +13 -6
- package/dist/datasets/experiment/durable.d.ts +16 -0
- package/dist/datasets/experiment/index.d.ts +2 -1
- package/dist/datasets/experiment/item.d.ts +26 -4
- package/dist/datasets/experiment/retries.d.ts +18 -0
- package/dist/datasets/experiment/types.d.ts +18 -0
- package/dist/datasets/experiment/workflow-id.d.ts +7 -0
- package/dist/datasets/experiment/workflow.d.ts +74 -0
- package/dist/datasets/index.cjs +3 -2
- package/dist/datasets/index.d.ts +2 -1
- package/dist/datasets/index.js +3 -3
- package/dist/docs/SKILL.md +2 -2
- package/dist/docs/assets/SOURCE_MAP.json +1309 -1304
- package/dist/docs/references/docs-deployment-workers.md +1 -1
- package/dist/docs/references/docs-evals-experiments.md +29 -1
- package/dist/docs/references/docs-harness-durable-agents.md +9 -5
- package/dist/docs/references/docs-knowledge-agents-and-tools.md +1 -0
- package/dist/docs/references/docs-knowledge-load-your-content.md +1 -1
- package/dist/docs/references/docs-mastra-platform-observability-overview.md +1 -1
- package/dist/docs/references/docs-server-pubsub.md +51 -8
- package/dist/docs/references/docs-signals-running-across-processes.md +2 -0
- package/dist/docs/references/docs-workflows-overview.md +1 -1
- package/dist/docs/references/docs-workflows-scheduled-workflows.md +1 -1
- package/dist/docs/references/integrations-channels-slack.md +4 -2
- package/dist/docs/references/integrations.md +6 -0
- package/dist/docs/references/reference-agents-agent.md +3 -1
- package/dist/docs/references/reference-agents-channels.md +146 -24
- package/dist/docs/references/reference-agents-durable-agent.md +28 -2
- package/dist/docs/references/reference-datasets-runExperimentItem.md +13 -1
- package/dist/docs/references/reference-datasets-startExperimentAsync.md +3 -1
- package/dist/docs/references/reference-editor-mastra-editor.md +3 -1
- package/dist/docs/references/reference-knowledge-knowledge-class.md +2 -2
- package/dist/docs/references/reference-knowledge-knowledge-tools.md +43 -20
- package/dist/docs/references/reference-processors-moderation-processor.md +2 -2
- package/dist/docs/references/reference-pubsub-base.md +5 -1
- package/dist/docs/references/reference-pubsub-event-emitter.md +2 -0
- package/dist/docs/references/reference-pubsub-redis-streams.md +1 -1
- package/dist/docs/references/reference-pubsub-unix-socket-pubsub.md +2 -0
- package/dist/docs/references/reference-streaming-ChunkType.md +1 -1
- package/dist/docs/references/reference-workers-overview.md +1 -1
- package/dist/docs/references/reference-workflows-run-methods-start.md +23 -0
- package/dist/docs/references/reference-workflows-run-methods-timeTravel.md +4 -0
- package/dist/docs/references/reference-workflows-run.md +1 -1
- package/dist/evals/index.cjs +2 -2
- package/dist/evals/index.js +2 -2
- package/dist/evals/scoreTraces/index.cjs +2 -2
- package/dist/evals/scoreTraces/index.js +2 -2
- package/dist/events/caching-pubsub.d.ts +1 -0
- package/dist/events/event-emitter/index.d.ts +12 -5
- package/dist/events/index.cjs +15 -1
- package/dist/events/index.js +15 -1
- package/dist/events/pubsub.d.ts +29 -0
- package/dist/events/reach.d.ts +11 -0
- package/dist/events/unix-socket-pubsub.d.ts +14 -0
- package/dist/{filesystem-CUj0vclS.cjs → filesystem-B0AZrbj8.cjs} +1 -1
- package/dist/{filesystem-BBqrAmKK.js → filesystem-B3s0WRud.js} +1 -1
- package/dist/{filesystem-B_HACoLS.js → filesystem-B5X-5G0x.js} +1 -1
- package/dist/{filesystem-pZNvxjuW.cjs → filesystem-BDSpwBke.cjs} +1 -1
- package/dist/{filesystem-5Z777gYZ.js → filesystem-BsdkC311.js} +1 -1
- package/dist/{filesystem-BNHPgtjJ.cjs → filesystem-C-cyJfi1.cjs} +1 -1
- package/dist/{filesystem-U5o28b5w.cjs → filesystem-CEbD_77-.cjs} +1 -1
- package/dist/{filesystem-yHKEz2Pr.cjs → filesystem-CUAgLugE.cjs} +1 -1
- package/dist/{filesystem-Cb8iTPM-.js → filesystem-Cv79mHRk.js} +1 -1
- package/dist/{filesystem-DhiaddZe.cjs → filesystem-DsCQiBl2.cjs} +1 -1
- package/dist/{filesystem-DSYDB3ek.js → filesystem-DzM9pcQ8.js} +1 -1
- package/dist/{filesystem-gpIfFMed.js → filesystem-DzfqVTO_.js} +1 -1
- package/dist/{filesystem-versioned-CxbiSJF-.js → filesystem-versioned-Bijb_p9l.js} +44 -44
- package/dist/harness/index.cjs +2 -2
- package/dist/harness/index.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/knowledge/index.cjs +1 -1
- package/dist/knowledge/index.js +1 -1
- package/dist/llm/index.cjs +3 -3
- package/dist/llm/index.js +3 -3
- package/dist/llm/model/provider-types.generated.d.ts +7720 -7720
- package/dist/llm/model/shared.types.d.ts +31 -0
- package/dist/{llm-B0VtQDgT.js → llm-Djd8Qzi0.js} +2 -2
- package/dist/{llm-ByskI6z3.cjs → llm-DmUucguC.cjs} +2 -2
- package/dist/loop/base-loop-builder.d.ts +60 -0
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +2 -2
- package/dist/loop/loop-builder.d.ts +10 -32
- package/dist/loop/workflows/agentic-execution/index.d.ts +1 -1
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts +2 -2
- package/dist/loop/workflows/agentic-loop/index.d.ts +1 -1
- package/dist/{manager-C2RGNH68.js → manager-CO_Xz2zR.js} +461 -95
- package/dist/{manager-BJKx4lQf.cjs → manager-D27PkIPo.cjs} +477 -93
- package/dist/mastra/index.cjs +1 -1
- package/dist/mastra/index.d.ts +13 -0
- package/dist/mastra/index.js +1 -1
- package/dist/{mastra-zUTq9ilk.js → mastra-Ch00nEAJ.js} +66 -25
- package/dist/{mastra-FXCeC5rF.cjs → mastra-qsVWpOTi.cjs} +66 -25
- package/dist/memory/index.cjs +2 -2
- package/dist/memory/index.js +2 -2
- package/dist/{model-BTNRPDgQ.js → model-CW-mfGYA.js} +1 -1
- package/dist/{model-BmTFNo62.cjs → model-Do6DTJoj.cjs} +1 -1
- package/dist/{netlify-B_XdjYPY.cjs → netlify-DU32SDT6.cjs} +1 -1
- package/dist/{netlify-BCSVhO5q.js → netlify-DZSAbdve.js} +1 -1
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/{output-helpers-CncZ3y-g.cjs → output-helpers-1Zu4Vt9C.cjs} +112 -69
- package/dist/{output-helpers-RlvE2WPA.js → output-helpers-CedRCE17.js} +113 -70
- 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/processors/pii-detector.d.ts +1 -0
- package/dist/{provider-registry-Ble43Wb4.js → provider-registry-deA0x-Gd.js} +21349 -21338
- package/dist/{provider-registry-D8O1G18A.cjs → provider-registry-zGezZVsL.cjs} +21349 -21338
- package/dist/provider-registry.json +21695 -21680
- package/dist/{registry-generator-BQ1noftK.cjs → registry-generator-BkQ1AxZn.cjs} +1 -1
- package/dist/{registry-generator-D1Zslex6.js → registry-generator-VvBfOKAD.js} +1 -1
- package/dist/{rehydrate-CgxEur9m.js → rehydrate-BjLV643n.js} +2 -2
- package/dist/{rehydrate-BiA_HUJH.cjs → rehydrate-DDYFpQsV.cjs} +2 -2
- package/dist/relevance/index.cjs +2 -2
- package/dist/relevance/index.js +2 -2
- package/dist/{run-registry-aomba2_Z.cjs → run-registry-5Suldxz3.cjs} +83965 -77543
- package/dist/{run-registry-BUFmc_78.js → run-registry-CGRPldLH.js} +84057 -77017
- package/dist/{scheduler-BuivoTeD.js → scheduler-B-VZUvv_.js} +1 -1
- package/dist/{scheduler-COSuIH7R.cjs → scheduler-D00X03jQ.cjs} +1 -1
- package/dist/schedules/index.cjs +1 -1
- package/dist/schedules/index.js +1 -1
- package/dist/{schedules-Dmu9qOgc.js → schedules-DZfSx-7P.js} +94 -94
- package/dist/{signal-provider-CicwpNwY.cjs → signal-provider-BFAvh_AJ.cjs} +1 -1
- package/dist/{signal-provider-BOtSN-_0.js → signal-provider-BslnAjWG.js} +1 -1
- package/dist/signals/index.cjs +3 -3
- package/dist/signals/index.js +3 -3
- package/dist/{signals-6EBDPHQX.cjs → signals-B1JSj-Ew.cjs} +2 -2
- package/dist/{signals-BH__LS8Y.js → signals-De9VnwL2.js} +2 -2
- package/dist/skills/index.cjs +2 -2
- package/dist/skills/index.js +2 -2
- package/dist/{source-8qxr6KJv.cjs → source-DDwx-87N.cjs} +1 -1
- package/dist/{source-DRqDgbCv.js → source-Did_2XQc.js} +1 -1
- package/dist/{state-processor-BRk8t1OR.js → state-processor-B9kxpM53.js} +140 -140
- package/dist/{state-processor-Bfs9LkY8.cjs → state-processor-kRNZ38Nf.cjs} +139 -139
- package/dist/storage/constants.cjs +1 -1
- package/dist/storage/constants.js +1 -1
- package/dist/storage/domains/agents/index.cjs +1 -1
- package/dist/storage/domains/agents/index.js +1 -1
- 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.d.ts +24 -7
- package/dist/storage/domains/mcp-clients/index.cjs +1 -1
- package/dist/storage/domains/mcp-clients/index.js +1 -1
- package/dist/storage/domains/mcp-servers/index.cjs +1 -1
- package/dist/storage/domains/mcp-servers/index.js +1 -1
- package/dist/storage/domains/memory/base.d.ts +3 -1
- package/dist/storage/domains/memory/observational-memory-lifecycle.d.ts +1 -1
- package/dist/storage/domains/prompt-blocks/index.cjs +1 -1
- package/dist/storage/domains/prompt-blocks/index.js +1 -1
- package/dist/storage/domains/scorer-definitions/index.cjs +1 -1
- package/dist/storage/domains/scorer-definitions/index.js +1 -1
- package/dist/storage/domains/skills/index.cjs +1 -1
- package/dist/storage/domains/skills/index.js +1 -1
- package/dist/storage/domains/workspaces/index.cjs +1 -1
- package/dist/storage/domains/workspaces/index.js +1 -1
- package/dist/storage/index.cjs +12 -11
- package/dist/storage/index.js +12 -12
- package/dist/storage/types.d.ts +13 -0
- package/dist/stream/base/output.d.ts +42 -15
- package/dist/stream/index.cjs +2 -2
- package/dist/stream/index.js +2 -2
- package/dist/stream/types.d.ts +19 -0
- package/dist/{stream-S_NC5v9e.js → stream-Dpwx0whf.js} +1 -1
- package/dist/{stream-DUrp3Fcy.cjs → stream-Dvy_0o14.cjs} +1 -1
- 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-BhCzpGfr.js → tool-loop-agent-PbWrEj1k.js} +3 -3
- package/dist/{tool-loop-agent-DU0BiemT.cjs → tool-loop-agent-UxOv3FoK.cjs} +3 -3
- package/dist/tools/index.cjs +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/types.d.ts +27 -1
- package/dist/{utils-CeEt4K7t.cjs → utils-BbMTlyBO.cjs} +1 -1
- package/dist/{utils-DYIai19q.js → utils-BnNi1BYM.js} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/{validate-BRikrNhF.js → validate-HSBcm96b.js} +1 -1
- package/dist/{validate-BckgxuJ0.cjs → validate-Skps-cM3.cjs} +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-BfhUD77l.cjs → worker-BE-0DyKL.cjs} +3 -3
- package/dist/{worker-DcBfwJqD.js → worker-BKrKHZzU.js} +3 -3
- package/dist/{worker-D9WwmcJa.cjs → worker-BNS5A3qP.cjs} +3 -3
- package/dist/{worker-Du5ybt5o.js → worker-DehaD4qD.js} +3 -3
- package/dist/{workflow-BWV5m9Mx.cjs → workflow-BjUTwaK9.cjs} +4 -4
- package/dist/{workflow-jNWVBYDJ.js → workflow-Bvw6yDjc.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/evented/setup-warning.d.ts +18 -0
- package/dist/workflows/evented/workflow-event-processor/run-status.d.ts +37 -0
- package/dist/workflows/evented/workflow.d.ts +11 -1
- package/dist/workflows/index.cjs +6 -6
- package/dist/workflows/index.js +6 -6
- package/dist/workflows/workflow.d.ts +6 -1
- package/dist/workspace/index.cjs +2 -2
- package/dist/workspace/index.js +2 -2
- package/dist/{workspace-D7JRhn1Z.js → workspace-C05xDH60.js} +564 -411
- package/dist/{workspace-BQ2wZj5D.cjs → workspace-D1OzzlLw.cjs} +564 -411
- package/dist/{workspace-skills-CGiXfKzA.js → workspace-skills-38OY32_b.js} +531 -531
- package/package.json +6 -6
- package/src/llm/model/provider-types.generated.d.ts +7720 -7720
- package/dist/agent/durable/evented-execution-engine.d.ts +0 -20
- package/dist/{filesystem-versioned-D-OCaYSl.cjs → filesystem-versioned-DZGyPbNC.cjs} +43 -43
- package/dist/{schedules-qIHUKsj4.cjs → schedules-BZS8McF7.cjs} +93 -93
- package/dist/{workspace-skills-CUSjYHdi.cjs → workspace-skills-BcquhPDn.cjs} +530 -530
package/dist/mastra/index.cjs
CHANGED
package/dist/mastra/index.d.ts
CHANGED
|
@@ -222,6 +222,11 @@ export interface Config<TAgents extends Record<string, Agent<any>> = Record<stri
|
|
|
222
222
|
bundler?: BundlerConfig;
|
|
223
223
|
/**
|
|
224
224
|
* Pub/sub system for event-driven communication between components.
|
|
225
|
+
*
|
|
226
|
+
* The default delivers inside this process. Evented workflows and evented
|
|
227
|
+
* agents that run on several processes need a pubsub that redelivers
|
|
228
|
+
* unacknowledged events and a workflows store with step guards.
|
|
229
|
+
* @see https://mastra.ai/docs/server/pubsub#evented-workflows-and-agents
|
|
225
230
|
* @default EventEmitterPubSub
|
|
226
231
|
*/
|
|
227
232
|
pubsub?: PubSub;
|
|
@@ -1431,6 +1436,14 @@ export declare class Mastra<TAgents extends Record<string, Agent<any>> = Record<
|
|
|
1431
1436
|
* @internal
|
|
1432
1437
|
*/
|
|
1433
1438
|
__hasLocalWorkflowExecution(): boolean;
|
|
1439
|
+
/**
|
|
1440
|
+
* Register the durable experiment workflow (`__mastra-experiment`) once.
|
|
1441
|
+
* Registered `distributed` because every process registers it identically,
|
|
1442
|
+
* so whichever process receives a run's events can execute them.
|
|
1443
|
+
*
|
|
1444
|
+
* @internal
|
|
1445
|
+
*/
|
|
1446
|
+
__ensureExperimentWorkflow(): Promise<void>;
|
|
1434
1447
|
__hasInternalWorkflow(id: string, runId?: string): boolean;
|
|
1435
1448
|
__getInternalWorkflow(id: string, runId?: string): AnyWorkflow;
|
|
1436
1449
|
/**
|
package/dist/mastra/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Mastra } from "../mastra-
|
|
1
|
+
export { t as Mastra } from "../mastra-Ch00nEAJ.js";
|
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as BackgroundTaskManager } from "./background-tasks-
|
|
1
|
+
import { Cc as createConcurrencyLimiter, Ds as createStep, En as AgentChannels, Lr as dispatchDueNotifications, Oo as augmentWithInit, Os as createWorkflow, Tc as runWithConcurrency, Vl as runOutsideRunFenceScope, Xi as BackgroundTasksInMemory, _c as repeatAfterSettled, br as WorkflowsInMemory, cl as waitMs, dc as createNestedRunParentStatusLookup, dl as isDurableAgentLike, fc as nestedRunParentOf, gc as renewWorkflowLease, hc as WORKFLOW_RUN_LEASE_TTL_MS, js as computeScheduleDefinitionHash, jt as __registerMastraCtor, ko as getStorageSource, ks as WorkflowEventProcessor, l as isDurableAgentExecutionDetached, mc as nestedRunStatusOf, o as getActiveDurableAgentWorkflowExecutions, p as agentThreadStreamRuntime, pc as nestedRunRecoveryAction, r as abandonDurableAgentExecutions, sl as assertDrainTimeout, uc as cancelNestedRun, vr as InMemoryStore, wc as normalizeConcurrency, y as createOnScorerHook } from "./run-registry-CGRPldLH.js";
|
|
2
|
+
import { s as BackgroundTaskManager } from "./background-tasks-Cv1ecD6S.js";
|
|
3
3
|
import { t as InMemoryServerCache } from "./inmemory-BDD0w8gx.js";
|
|
4
|
-
import { t as DatasetsManager } from "./manager-
|
|
4
|
+
import { t as DatasetsManager } from "./manager-CO_Xz2zR.js";
|
|
5
5
|
import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "./error-oh2DLsP2.js";
|
|
6
|
-
import {
|
|
6
|
+
import { h as EventEmitterPubSub, u as isRunLocalTopic } from "./output-helpers-CedRCE17.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-DZSAbdve.js";
|
|
10
|
+
import { l as defaultGateways } from "./llm-Djd8Qzi0.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
|
-
import { c as fsAgentScheduleRowId,
|
|
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";
|
|
14
14
|
import { C as NoOpObservability, T as noOpMetricsContext, w as noOpLoggerContext } from "./observability-D7RNOAPx.js";
|
|
15
15
|
import { initContextStorage } from "./observability/context-storage.js";
|
|
16
16
|
import { f as resolveCurrentSpan } from "./utils-DU_pU5SK.js";
|
|
17
|
-
import { r as InMemoryDB } from "./source-
|
|
17
|
+
import { r as InMemoryDB } from "./source-Did_2XQc.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-PbWrEj1k.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 { Tn as createRunScope } from "./stream-
|
|
21
|
+
import { v as readPositiveIntEnv } from "./utils-BnNi1BYM.js";
|
|
22
|
+
import { i as OrchestrationWorker, n as BackgroundTaskWorker, r as SchedulerWorker } from "./worker-DehaD4qD.js";
|
|
23
|
+
import { n as normalizeWorkflowBuilderDefinition } from "./builder-Gg-xnX_E.js";
|
|
24
|
+
import { d as toJsonSchemaOrUndefined, p as collectNestedWorkflowIds, t as assertValidDynamicWorkflow } from "./validate-HSBcm96b.js";
|
|
25
|
+
import { t as rehydrateWorkflow } from "./rehydrate-BjLV643n.js";
|
|
26
|
+
import { Tn as createRunScope } from "./stream-Dpwx0whf.js";
|
|
27
27
|
import { z } from "zod/v4";
|
|
28
28
|
// src/agent/streams/execution-capability.ts
|
|
29
|
-
/**
|
|
29
|
+
/** Native engine selection or the released structural adapter contract (including Inngest). */
|
|
30
30
|
function hasDurableExecution(obj) {
|
|
31
|
-
|
|
31
|
+
if (isDurableAgentLike(obj)) return true;
|
|
32
|
+
return typeof obj === "object" && obj !== null && "__hasDurableExecution" in obj && typeof obj.__hasDurableExecution === "function" && obj.__hasDurableExecution() === true;
|
|
32
33
|
}
|
|
33
34
|
// src/notifications/workflow.ts
|
|
34
35
|
const NOTIFICATION_DISPATCH_WORKFLOW_ID = "__mastra_notification_dispatcher";
|
|
@@ -2020,7 +2021,7 @@ var Mastra = class Mastra {
|
|
|
2020
2021
|
const agents = this.#agents;
|
|
2021
2022
|
if (agents[agentKey]) {
|
|
2022
2023
|
if (agents[agentKey] === mastraAgent || toolLoopInput && this.#toolLoopRegistrations.get(toolLoopInput)?.get(agentKey) === agents[agentKey] || agents[agentKey].source === "stored" && options?.source === "stored") {
|
|
2023
|
-
if (agents[agentKey] === mastraAgent) mastraAgent.__registerExecutionEnginePolicy(this.#durable);
|
|
2024
|
+
if (agents[agentKey] === mastraAgent) mastraAgent.__registerExecutionEnginePolicy?.(this.#durable);
|
|
2024
2025
|
return;
|
|
2025
2026
|
}
|
|
2026
2027
|
throw new MastraError({
|
|
@@ -2044,7 +2045,7 @@ var Mastra = class Mastra {
|
|
|
2044
2045
|
tts: this.#tts,
|
|
2045
2046
|
vectors: this.#vectors
|
|
2046
2047
|
});
|
|
2047
|
-
mastraAgent.__registerExecutionEnginePolicy(this.#durable);
|
|
2048
|
+
mastraAgent.__registerExecutionEnginePolicy?.(this.#durable);
|
|
2048
2049
|
agents[agentKey] = mastraAgent;
|
|
2049
2050
|
if (toolLoopInput) {
|
|
2050
2051
|
let registrations = this.#toolLoopRegistrations.get(toolLoopInput);
|
|
@@ -2862,6 +2863,19 @@ var Mastra = class Mastra {
|
|
|
2862
2863
|
if (this.#pushSubscription) return true;
|
|
2863
2864
|
return !!this.#workers.find((w) => w.name === "orchestration")?.isRunning;
|
|
2864
2865
|
}
|
|
2866
|
+
/**
|
|
2867
|
+
* Register the durable experiment workflow (`__mastra-experiment`) once.
|
|
2868
|
+
* Registered `distributed` because every process registers it identically,
|
|
2869
|
+
* so whichever process receives a run's events can execute them.
|
|
2870
|
+
*
|
|
2871
|
+
* @internal
|
|
2872
|
+
*/
|
|
2873
|
+
async __ensureExperimentWorkflow() {
|
|
2874
|
+
if (this.__hasInternalWorkflow("__mastra-experiment")) return;
|
|
2875
|
+
const { buildExperimentWorkflow } = await import("./manager-CO_Xz2zR.js").then((n) => n.y);
|
|
2876
|
+
if (this.__hasInternalWorkflow("__mastra-experiment")) return;
|
|
2877
|
+
this.__registerInternalWorkflow(buildExperimentWorkflow(), void 0, { distributed: true });
|
|
2878
|
+
}
|
|
2865
2879
|
__hasInternalWorkflow(id, runId) {
|
|
2866
2880
|
if (runId) {
|
|
2867
2881
|
if (this.#internalMastraWorkflows[`${id}:${runId}`]) {
|
|
@@ -5052,7 +5066,7 @@ var Mastra = class Mastra {
|
|
|
5052
5066
|
if (!this.#workerFilter || this.#workerFilter.has("agent-schedule")) {
|
|
5053
5067
|
let agentScheduleWorker = this.#findAgentScheduleWorker();
|
|
5054
5068
|
if (!agentScheduleWorker) {
|
|
5055
|
-
const { AgentScheduleWorker } = await import("./worker-
|
|
5069
|
+
const { AgentScheduleWorker } = await import("./worker-BKrKHZzU.js");
|
|
5056
5070
|
agentScheduleWorker = new AgentScheduleWorker();
|
|
5057
5071
|
agentScheduleWorker.__registerMastra(this);
|
|
5058
5072
|
this.#workers.push(agentScheduleWorker);
|
|
@@ -5625,6 +5639,10 @@ var Mastra = class Mastra {
|
|
|
5625
5639
|
async removeTopicListener(topic, listener) {
|
|
5626
5640
|
await this.#pubsub.unsubscribe(topic, this.#ackingTopicListener(listener));
|
|
5627
5641
|
}
|
|
5642
|
+
/** Build native durable agents' engines and register their workflows, so event ownership checks can find them. */
|
|
5643
|
+
#initializeDurableAgents() {
|
|
5644
|
+
for (const agent of Object.values(this.#agents ?? {})) if (hasDurableExecution(agent) && !isDurableAgentLike(agent)) agent.__initializeDurableExecution();
|
|
5645
|
+
}
|
|
5628
5646
|
/**
|
|
5629
5647
|
* Process a single workflow event. Shared entry point used by:
|
|
5630
5648
|
* - pull-mode workers (OrchestrationWorker)
|
|
@@ -5636,6 +5654,16 @@ var Mastra = class Mastra {
|
|
|
5636
5654
|
* should nack/return 5xx so the broker retries.
|
|
5637
5655
|
*/
|
|
5638
5656
|
async handleWorkflowEvent(event) {
|
|
5657
|
+
try {
|
|
5658
|
+
this.#initializeDurableAgents();
|
|
5659
|
+
} catch (error) {
|
|
5660
|
+
this.#logger.error("Failed to initialize durable agents for workflow event", { error });
|
|
5661
|
+
return {
|
|
5662
|
+
ok: false,
|
|
5663
|
+
retry: true
|
|
5664
|
+
};
|
|
5665
|
+
}
|
|
5666
|
+
if (event.data?.workflowId === "__mastra-experiment") await this.__ensureExperimentWorkflow();
|
|
5639
5667
|
if (!this.#workflowEventProcessor) this.#workflowEventProcessor = new WorkflowEventProcessor({ mastra: this });
|
|
5640
5668
|
return this.#workflowEventProcessor.handle(event);
|
|
5641
5669
|
}
|
|
@@ -5657,6 +5685,8 @@ var Mastra = class Mastra {
|
|
|
5657
5685
|
*/
|
|
5658
5686
|
async startWorkers(name) {
|
|
5659
5687
|
if (this.#storage) await this.#storage.init();
|
|
5688
|
+
this.#initializeDurableAgents();
|
|
5689
|
+
await this.__ensureExperimentWorkflow();
|
|
5660
5690
|
const schedulerSelected = !this.#schedulerDisabled() && (!this.#workerFilter || this.#workerFilter.has("scheduler"));
|
|
5661
5691
|
const schedulerForcedByFilter = schedulerSelected && (this.#workerFilter?.has("scheduler") ?? false);
|
|
5662
5692
|
if (!name && schedulerSelected && this.#storage && !this.#findSchedulerWorker()?.isRunning) try {
|
|
@@ -5675,7 +5705,7 @@ var Mastra = class Mastra {
|
|
|
5675
5705
|
this.#workers.push(sw);
|
|
5676
5706
|
}
|
|
5677
5707
|
if (!this.#findAgentScheduleWorker()) {
|
|
5678
|
-
const { AgentScheduleWorker } = await import("./worker-
|
|
5708
|
+
const { AgentScheduleWorker } = await import("./worker-BKrKHZzU.js");
|
|
5679
5709
|
const asw = new AgentScheduleWorker();
|
|
5680
5710
|
asw.__registerMastra(this);
|
|
5681
5711
|
this.#workers.push(asw);
|
|
@@ -5732,12 +5762,23 @@ var Mastra = class Mastra {
|
|
|
5732
5762
|
async #wirePushWorkflowSubscription() {
|
|
5733
5763
|
const modes = this.#pubsub.supportedModes ?? ["pull"];
|
|
5734
5764
|
if (modes.includes("push") && !modes.includes("pull") && !this.#pushSubscription) {
|
|
5765
|
+
const track = (delivery) => {
|
|
5766
|
+
this.#inFlightPushEvents.add(delivery);
|
|
5767
|
+
delivery.finally(() => this.#inFlightPushEvents.delete(delivery));
|
|
5768
|
+
};
|
|
5735
5769
|
const cb = (event, ack, nack) => {
|
|
5736
5770
|
const data = event.data;
|
|
5737
5771
|
const wfId = data?.workflowId;
|
|
5738
5772
|
const rId = data?.runId;
|
|
5773
|
+
try {
|
|
5774
|
+
this.#initializeDurableAgents();
|
|
5775
|
+
} catch (error) {
|
|
5776
|
+
this.#logger.error("Failed to initialize durable agents for push delivery", { error });
|
|
5777
|
+
if (nack) track(nack().catch((err) => this.#logger.error("Error nacking workflow event", err)));
|
|
5778
|
+
return;
|
|
5779
|
+
}
|
|
5739
5780
|
if (wfId && rId && !this.#ownsWorkflow(wfId, rId, data?.parentWorkflow)) {
|
|
5740
|
-
if (ack) ack().catch((err) => this.#logger?.error?.("Error acking skipped workflow event", err));
|
|
5781
|
+
if (ack) track(ack().catch((err) => this.#logger?.error?.("Error acking skipped workflow event", err)));
|
|
5741
5782
|
return;
|
|
5742
5783
|
}
|
|
5743
5784
|
const inFlight = this.handleWorkflowEvent(event).then((result) => {
|
|
@@ -5755,8 +5796,7 @@ var Mastra = class Mastra {
|
|
|
5755
5796
|
}
|
|
5756
5797
|
if (ack) return ack().catch((err) => this.#logger?.error?.("Error acking terminal workflow event in push subscription", err));
|
|
5757
5798
|
}).catch((err) => this.#logger?.error?.("Unhandled error in workflow event push subscription", err));
|
|
5758
|
-
|
|
5759
|
-
inFlight.finally(() => this.#inFlightPushEvents.delete(inFlight));
|
|
5799
|
+
track(inFlight);
|
|
5760
5800
|
};
|
|
5761
5801
|
await this.#pubsub.subscribe("workflows", cb);
|
|
5762
5802
|
this.#pushSubscription = {
|
|
@@ -5802,6 +5842,7 @@ var Mastra = class Mastra {
|
|
|
5802
5842
|
await this.#executionWorkersStartPromise;
|
|
5803
5843
|
}
|
|
5804
5844
|
async #startExecutionWorkers() {
|
|
5845
|
+
this.#initializeDurableAgents();
|
|
5805
5846
|
if (this.#storage) await this.#storage.init();
|
|
5806
5847
|
const deps = {
|
|
5807
5848
|
pubsub: this.#pubsub,
|
|
@@ -6109,7 +6150,7 @@ var Mastra = class Mastra {
|
|
|
6109
6150
|
#syncGatewayRegistry() {
|
|
6110
6151
|
try {
|
|
6111
6152
|
if (process.env.MASTRA_DEV !== "true" && process.env.MASTRA_DEV !== "1") return;
|
|
6112
|
-
import("./provider-registry-
|
|
6153
|
+
import("./provider-registry-deA0x-Gd.js").then((n) => n.d).then(async ({ GatewayRegistry }) => {
|
|
6113
6154
|
const registry = GatewayRegistry.getInstance();
|
|
6114
6155
|
const customGateways = Object.values(this.#gateways || {});
|
|
6115
6156
|
registry.registerCustomGateways(customGateways);
|
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
const require_run_registry = require("./run-registry-
|
|
2
|
-
const require_background_tasks = require("./background-tasks-
|
|
1
|
+
const require_run_registry = require("./run-registry-5Suldxz3.cjs");
|
|
2
|
+
const require_background_tasks = require("./background-tasks-7iftnRK_.cjs");
|
|
3
3
|
const require_inmemory = require("./inmemory-fgR8sq-U.cjs");
|
|
4
|
-
const require_manager = require("./manager-
|
|
4
|
+
const require_manager = require("./manager-D27PkIPo.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-1Zu4Vt9C.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-DU32SDT6.cjs");
|
|
10
|
+
const require_llm = require("./llm-DmUucguC.cjs");
|
|
11
11
|
const require_logger = require("./logger-CvzZYuJd.cjs");
|
|
12
12
|
const require_logger_index = require("./logger/index.cjs");
|
|
13
|
-
const require_schedules = require("./schedules-
|
|
13
|
+
const require_schedules = require("./schedules-BZS8McF7.cjs");
|
|
14
14
|
const require_observability = require("./observability-B0R_D1PZ.cjs");
|
|
15
15
|
const require_observability_context_storage = require("./observability/context-storage.cjs");
|
|
16
16
|
const require_utils = require("./utils-D-eNsgDM.cjs");
|
|
17
|
-
const require_source = require("./source-
|
|
17
|
+
const require_source = require("./source-DDwx-87N.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-UxOv3FoK.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-BbMTlyBO.cjs");
|
|
22
|
+
const require_worker = require("./worker-BE-0DyKL.cjs");
|
|
23
|
+
const require_builder = require("./builder-DuJBbQDH.cjs");
|
|
24
|
+
const require_validate = require("./validate-Skps-cM3.cjs");
|
|
25
|
+
const require_rehydrate = require("./rehydrate-DDYFpQsV.cjs");
|
|
26
|
+
const require_stream = require("./stream-Dvy_0o14.cjs");
|
|
27
27
|
let zod_v4 = require("zod/v4");
|
|
28
28
|
// src/agent/streams/execution-capability.ts
|
|
29
|
-
/**
|
|
29
|
+
/** Native engine selection or the released structural adapter contract (including Inngest). */
|
|
30
30
|
function hasDurableExecution(obj) {
|
|
31
|
-
|
|
31
|
+
if (require_run_registry.isDurableAgentLike(obj)) return true;
|
|
32
|
+
return typeof obj === "object" && obj !== null && "__hasDurableExecution" in obj && typeof obj.__hasDurableExecution === "function" && obj.__hasDurableExecution() === true;
|
|
32
33
|
}
|
|
33
34
|
// src/notifications/workflow.ts
|
|
34
35
|
const NOTIFICATION_DISPATCH_WORKFLOW_ID = "__mastra_notification_dispatcher";
|
|
@@ -2020,7 +2021,7 @@ var Mastra = class Mastra {
|
|
|
2020
2021
|
const agents = this.#agents;
|
|
2021
2022
|
if (agents[agentKey]) {
|
|
2022
2023
|
if (agents[agentKey] === mastraAgent || toolLoopInput && this.#toolLoopRegistrations.get(toolLoopInput)?.get(agentKey) === agents[agentKey] || agents[agentKey].source === "stored" && options?.source === "stored") {
|
|
2023
|
-
if (agents[agentKey] === mastraAgent) mastraAgent.__registerExecutionEnginePolicy(this.#durable);
|
|
2024
|
+
if (agents[agentKey] === mastraAgent) mastraAgent.__registerExecutionEnginePolicy?.(this.#durable);
|
|
2024
2025
|
return;
|
|
2025
2026
|
}
|
|
2026
2027
|
throw new require_error.MastraError({
|
|
@@ -2044,7 +2045,7 @@ var Mastra = class Mastra {
|
|
|
2044
2045
|
tts: this.#tts,
|
|
2045
2046
|
vectors: this.#vectors
|
|
2046
2047
|
});
|
|
2047
|
-
mastraAgent.__registerExecutionEnginePolicy(this.#durable);
|
|
2048
|
+
mastraAgent.__registerExecutionEnginePolicy?.(this.#durable);
|
|
2048
2049
|
agents[agentKey] = mastraAgent;
|
|
2049
2050
|
if (toolLoopInput) {
|
|
2050
2051
|
let registrations = this.#toolLoopRegistrations.get(toolLoopInput);
|
|
@@ -2862,6 +2863,19 @@ var Mastra = class Mastra {
|
|
|
2862
2863
|
if (this.#pushSubscription) return true;
|
|
2863
2864
|
return !!this.#workers.find((w) => w.name === "orchestration")?.isRunning;
|
|
2864
2865
|
}
|
|
2866
|
+
/**
|
|
2867
|
+
* Register the durable experiment workflow (`__mastra-experiment`) once.
|
|
2868
|
+
* Registered `distributed` because every process registers it identically,
|
|
2869
|
+
* so whichever process receives a run's events can execute them.
|
|
2870
|
+
*
|
|
2871
|
+
* @internal
|
|
2872
|
+
*/
|
|
2873
|
+
async __ensureExperimentWorkflow() {
|
|
2874
|
+
if (this.__hasInternalWorkflow("__mastra-experiment")) return;
|
|
2875
|
+
const { buildExperimentWorkflow } = await Promise.resolve().then(() => require("./manager-D27PkIPo.cjs")).then((n) => n.workflow_exports);
|
|
2876
|
+
if (this.__hasInternalWorkflow("__mastra-experiment")) return;
|
|
2877
|
+
this.__registerInternalWorkflow(buildExperimentWorkflow(), void 0, { distributed: true });
|
|
2878
|
+
}
|
|
2865
2879
|
__hasInternalWorkflow(id, runId) {
|
|
2866
2880
|
if (runId) {
|
|
2867
2881
|
if (this.#internalMastraWorkflows[`${id}:${runId}`]) {
|
|
@@ -5052,7 +5066,7 @@ var Mastra = class Mastra {
|
|
|
5052
5066
|
if (!this.#workerFilter || this.#workerFilter.has("agent-schedule")) {
|
|
5053
5067
|
let agentScheduleWorker = this.#findAgentScheduleWorker();
|
|
5054
5068
|
if (!agentScheduleWorker) {
|
|
5055
|
-
const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-
|
|
5069
|
+
const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-BNS5A3qP.cjs"));
|
|
5056
5070
|
agentScheduleWorker = new AgentScheduleWorker();
|
|
5057
5071
|
agentScheduleWorker.__registerMastra(this);
|
|
5058
5072
|
this.#workers.push(agentScheduleWorker);
|
|
@@ -5625,6 +5639,10 @@ var Mastra = class Mastra {
|
|
|
5625
5639
|
async removeTopicListener(topic, listener) {
|
|
5626
5640
|
await this.#pubsub.unsubscribe(topic, this.#ackingTopicListener(listener));
|
|
5627
5641
|
}
|
|
5642
|
+
/** Build native durable agents' engines and register their workflows, so event ownership checks can find them. */
|
|
5643
|
+
#initializeDurableAgents() {
|
|
5644
|
+
for (const agent of Object.values(this.#agents ?? {})) if (hasDurableExecution(agent) && !require_run_registry.isDurableAgentLike(agent)) agent.__initializeDurableExecution();
|
|
5645
|
+
}
|
|
5628
5646
|
/**
|
|
5629
5647
|
* Process a single workflow event. Shared entry point used by:
|
|
5630
5648
|
* - pull-mode workers (OrchestrationWorker)
|
|
@@ -5636,6 +5654,16 @@ var Mastra = class Mastra {
|
|
|
5636
5654
|
* should nack/return 5xx so the broker retries.
|
|
5637
5655
|
*/
|
|
5638
5656
|
async handleWorkflowEvent(event) {
|
|
5657
|
+
try {
|
|
5658
|
+
this.#initializeDurableAgents();
|
|
5659
|
+
} catch (error) {
|
|
5660
|
+
this.#logger.error("Failed to initialize durable agents for workflow event", { error });
|
|
5661
|
+
return {
|
|
5662
|
+
ok: false,
|
|
5663
|
+
retry: true
|
|
5664
|
+
};
|
|
5665
|
+
}
|
|
5666
|
+
if (event.data?.workflowId === "__mastra-experiment") await this.__ensureExperimentWorkflow();
|
|
5639
5667
|
if (!this.#workflowEventProcessor) this.#workflowEventProcessor = new require_run_registry.WorkflowEventProcessor({ mastra: this });
|
|
5640
5668
|
return this.#workflowEventProcessor.handle(event);
|
|
5641
5669
|
}
|
|
@@ -5657,6 +5685,8 @@ var Mastra = class Mastra {
|
|
|
5657
5685
|
*/
|
|
5658
5686
|
async startWorkers(name) {
|
|
5659
5687
|
if (this.#storage) await this.#storage.init();
|
|
5688
|
+
this.#initializeDurableAgents();
|
|
5689
|
+
await this.__ensureExperimentWorkflow();
|
|
5660
5690
|
const schedulerSelected = !this.#schedulerDisabled() && (!this.#workerFilter || this.#workerFilter.has("scheduler"));
|
|
5661
5691
|
const schedulerForcedByFilter = schedulerSelected && (this.#workerFilter?.has("scheduler") ?? false);
|
|
5662
5692
|
if (!name && schedulerSelected && this.#storage && !this.#findSchedulerWorker()?.isRunning) try {
|
|
@@ -5675,7 +5705,7 @@ var Mastra = class Mastra {
|
|
|
5675
5705
|
this.#workers.push(sw);
|
|
5676
5706
|
}
|
|
5677
5707
|
if (!this.#findAgentScheduleWorker()) {
|
|
5678
|
-
const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-
|
|
5708
|
+
const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-BNS5A3qP.cjs"));
|
|
5679
5709
|
const asw = new AgentScheduleWorker();
|
|
5680
5710
|
asw.__registerMastra(this);
|
|
5681
5711
|
this.#workers.push(asw);
|
|
@@ -5732,12 +5762,23 @@ var Mastra = class Mastra {
|
|
|
5732
5762
|
async #wirePushWorkflowSubscription() {
|
|
5733
5763
|
const modes = this.#pubsub.supportedModes ?? ["pull"];
|
|
5734
5764
|
if (modes.includes("push") && !modes.includes("pull") && !this.#pushSubscription) {
|
|
5765
|
+
const track = (delivery) => {
|
|
5766
|
+
this.#inFlightPushEvents.add(delivery);
|
|
5767
|
+
delivery.finally(() => this.#inFlightPushEvents.delete(delivery));
|
|
5768
|
+
};
|
|
5735
5769
|
const cb = (event, ack, nack) => {
|
|
5736
5770
|
const data = event.data;
|
|
5737
5771
|
const wfId = data?.workflowId;
|
|
5738
5772
|
const rId = data?.runId;
|
|
5773
|
+
try {
|
|
5774
|
+
this.#initializeDurableAgents();
|
|
5775
|
+
} catch (error) {
|
|
5776
|
+
this.#logger.error("Failed to initialize durable agents for push delivery", { error });
|
|
5777
|
+
if (nack) track(nack().catch((err) => this.#logger.error("Error nacking workflow event", err)));
|
|
5778
|
+
return;
|
|
5779
|
+
}
|
|
5739
5780
|
if (wfId && rId && !this.#ownsWorkflow(wfId, rId, data?.parentWorkflow)) {
|
|
5740
|
-
if (ack) ack().catch((err) => this.#logger?.error?.("Error acking skipped workflow event", err));
|
|
5781
|
+
if (ack) track(ack().catch((err) => this.#logger?.error?.("Error acking skipped workflow event", err)));
|
|
5741
5782
|
return;
|
|
5742
5783
|
}
|
|
5743
5784
|
const inFlight = this.handleWorkflowEvent(event).then((result) => {
|
|
@@ -5755,8 +5796,7 @@ var Mastra = class Mastra {
|
|
|
5755
5796
|
}
|
|
5756
5797
|
if (ack) return ack().catch((err) => this.#logger?.error?.("Error acking terminal workflow event in push subscription", err));
|
|
5757
5798
|
}).catch((err) => this.#logger?.error?.("Unhandled error in workflow event push subscription", err));
|
|
5758
|
-
|
|
5759
|
-
inFlight.finally(() => this.#inFlightPushEvents.delete(inFlight));
|
|
5799
|
+
track(inFlight);
|
|
5760
5800
|
};
|
|
5761
5801
|
await this.#pubsub.subscribe("workflows", cb);
|
|
5762
5802
|
this.#pushSubscription = {
|
|
@@ -5802,6 +5842,7 @@ var Mastra = class Mastra {
|
|
|
5802
5842
|
await this.#executionWorkersStartPromise;
|
|
5803
5843
|
}
|
|
5804
5844
|
async #startExecutionWorkers() {
|
|
5845
|
+
this.#initializeDurableAgents();
|
|
5805
5846
|
if (this.#storage) await this.#storage.init();
|
|
5806
5847
|
const deps = {
|
|
5807
5848
|
pubsub: this.#pubsub,
|
|
@@ -6109,7 +6150,7 @@ var Mastra = class Mastra {
|
|
|
6109
6150
|
#syncGatewayRegistry() {
|
|
6110
6151
|
try {
|
|
6111
6152
|
if (process.env.MASTRA_DEV !== "true" && process.env.MASTRA_DEV !== "1") return;
|
|
6112
|
-
Promise.resolve().then(() => require("./provider-registry-
|
|
6153
|
+
Promise.resolve().then(() => require("./provider-registry-zGezZVsL.cjs")).then((n) => n.provider_registry_exports).then(async ({ GatewayRegistry }) => {
|
|
6113
6154
|
const registry = GatewayRegistry.getInstance();
|
|
6114
6155
|
const customGateways = Object.values(this.#gateways || {});
|
|
6115
6156
|
registry.registerCustomGateways(customGateways);
|
package/dist/memory/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
3
|
-
const
|
|
2
|
+
const require_run_registry = require("../run-registry-5Suldxz3.cjs");
|
|
3
|
+
const require_stream = require("../stream-Dvy_0o14.cjs");
|
|
4
4
|
const require_message_list = require("../message-list-DPXPXvin.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 {
|
|
2
|
-
import {
|
|
1
|
+
import { $o as normalizeMessageHistoryConfig, Co as MastraMemory, Do as isSystemReminderMessage, Eo as filterSystemReminderMessages, Jn as getMemoryRunState, Jo as groupLinkedToolMessages, Qo as isAfterMemoryTokenBoundary, So as upsertMessageVectors, To as memoryDefaultOptions, Xo as advanceMemoryTokenBoundary, Yn as MockMemory, Yo as loadMessageHistory, Zo as getMemoryTokenBoundary, _o as buildMessageEmbeddingRows, bo as messageVectorId, go as MESSAGE_EMBEDDING_CHARS_PER_TOKEN, ho as DEFAULT_MESSAGE_EMBEDDING_MAX_CHUNK_CHARS, qn as MemoryRunState, vo as chunkMessageText, wo as MemoryProcessor, xo as resolveMaxChunkChars, yo as extractMessageEmbeddingText } from "../run-registry-CGRPldLH.js";
|
|
2
|
+
import { Bt as TITLE_PINNED_THREAD_METADATA_KEY, Gt as setThreadOMMetadata, Ht as isObservationalMemoryEnabled, Ut as isThreadTitlePinned, Vt as getThreadOMMetadata, Wt as parseMemoryRequestContext } from "../stream-Dpwx0whf.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-DEuRl82K.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-BnNi1BYM.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-BbMTlyBO.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");
|
|
@@ -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.86.0-alpha.
|
|
20712
|
+
const MASTRA_USER_AGENT = `mastra/1.86.0-alpha.8`;
|
|
20713
20713
|
const PROVIDERS_WITH_INSTALLED_PACKAGES = [
|
|
20714
20714
|
"anthropic",
|
|
20715
20715
|
"cerebras",
|
|
@@ -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.86.0-alpha.
|
|
20711
|
+
const MASTRA_USER_AGENT = `mastra/1.86.0-alpha.8`;
|
|
20712
20712
|
const PROVIDERS_WITH_INSTALLED_PACKAGES = [
|
|
20713
20713
|
"anthropic",
|
|
20714
20714
|
"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-5Suldxz3.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 { Br as notificationSignalAttributes, Fr as InMemoryNotificationsStorage, Gr as readNotificationRoutingRequirement, Hr as notificationSummaryContents, Ir as NotificationsStorage, Jr as resolveDeliveryFailureUpdate, Kr as MAX_NOTIFICATION_DELIVERY_ATTEMPTS, Lr as dispatchDueNotifications, Rr as createNotificationSignal, Ur as notificationSummarySignalMetadata, Vr as notificationSignalMetadata, Wr as summarizeNotifications, Yr as resolveNotificationDeliveryDecision, qr as defaultNotificationDeliveryDecision, zr as createNotificationSummarySignal } from "../run-registry-CGRPldLH.js";
|
|
2
2
|
import { r as createTool } from "../tool-Z3bykc1m.js";
|
|
3
3
|
import { z } from "zod/v4";
|
|
4
4
|
// src/notifications/tool.ts
|