@mastra/core 1.87.0 → 1.88.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/_types/@internal_ai-v6@0.0.100/dist/index.d.ts +97 -2049
- package/dist/agent/agent.d.ts +10 -2
- package/dist/agent/durable/create-evented-agent.d.ts +2 -1
- package/dist/agent/durable/execution-engine.d.ts +4 -2
- package/dist/agent/durable/index.cjs +3 -2
- package/dist/agent/durable/index.js +3 -2
- package/dist/agent/durable/segment-spans.d.ts +7 -0
- package/dist/agent/durable/stored-signal-drain.d.ts +1 -1
- package/dist/agent/durable/types.d.ts +6 -0
- package/dist/agent/index.cjs +2 -2
- package/dist/agent/index.js +2 -2
- package/dist/agent/request-context-snapshot.d.ts +5 -0
- package/dist/agent/thread-stream-runtime.d.ts +26 -4
- 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-vUU_atR-.js → agent-controller-CQDCmsFD.js} +15 -9
- package/dist/{agent-controller-DckvJ7bq.cjs → agent-controller-NQKYmY0W.cjs} +15 -9
- package/dist/background-tasks/index.cjs +1 -1
- package/dist/background-tasks/index.js +1 -1
- package/dist/{background-tasks-HAzB0JtC.js → background-tasks-B7UygDdO.js} +1 -1
- package/dist/{background-tasks-By_1e9Gf.cjs → background-tasks-CeARf1DK.cjs} +1 -1
- package/dist/browser/index.cjs +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/{builder-CmtDqFLe.js → builder-CpAEmMdR.js} +2 -2
- package/dist/{builder-Dx8GMhFn.cjs → builder-Dmf04g9P.cjs} +2 -2
- package/dist/capabilities/302ai.json +196 -196
- package/dist/capabilities/abliteratedllm.json +33 -33
- package/dist/capabilities/abliteration-ai.json +9 -9
- package/dist/capabilities/above.json +13 -13
- package/dist/capabilities/adaption.json +7 -7
- package/dist/capabilities/adzuki.json +20 -20
- package/dist/capabilities/agentrouter.json +10 -10
- package/dist/capabilities/agnes.json +2 -2
- package/dist/capabilities/ai-router.json +6 -6
- package/dist/capabilities/aiand.json +27 -18
- package/dist/capabilities/aigrow.json +14 -14
- package/dist/capabilities/aimlapi.json +146 -146
- package/dist/capabilities/aipg.json +2 -2
- package/dist/capabilities/aixy.json +17 -17
- package/dist/capabilities/aki-io.json +14 -14
- package/dist/capabilities/alibaba-cn.json +94 -94
- 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 +50 -50
- package/dist/capabilities/alibaba-token-plan.json +53 -53
- package/dist/capabilities/alibaba.json +71 -71
- package/dist/capabilities/ambient.json +8 -8
- package/dist/capabilities/amd-tokenlab.json +4 -4
- package/dist/capabilities/amd.json +11 -11
- package/dist/capabilities/anthropic.json +36 -36
- package/dist/capabilities/anyapi.json +18 -18
- package/dist/capabilities/apiko.json +2 -2
- package/dist/capabilities/arcee.json +9 -9
- package/dist/capabilities/augure.json +5 -5
- package/dist/capabilities/auriko.json +23 -23
- package/dist/capabilities/bailing.json +5 -5
- package/dist/capabilities/baseten.json +47 -38
- package/dist/capabilities/bee.json +5 -5
- package/dist/capabilities/bothub.json +14 -14
- package/dist/capabilities/boundless.json +37 -37
- package/dist/capabilities/bumo.json +40 -40
- package/dist/capabilities/byteplus.json +22 -22
- package/dist/capabilities/cerebras.json +4 -4
- package/dist/capabilities/cheapaimodel.json +10 -10
- package/dist/capabilities/cheapest-token.json +25 -25
- package/dist/capabilities/chutes.json +34 -32
- package/dist/capabilities/cline-pass.json +29 -29
- package/dist/capabilities/cloudcode.json +7 -7
- package/dist/capabilities/cloudflare-workers-ai.json +15 -15
- package/dist/capabilities/commandcode.json +146 -146
- package/dist/capabilities/concentrate.json +286 -277
- package/dist/capabilities/cortecs.json +109 -109
- package/dist/capabilities/crossmodel.json +194 -194
- package/dist/capabilities/crusoe.json +13 -13
- package/dist/capabilities/daoxe.json +7 -7
- package/dist/capabilities/databricks.json +128 -120
- package/dist/capabilities/deepinfra.json +102 -102
- package/dist/capabilities/deepseek.json +4 -4
- package/dist/capabilities/digitalocean.json +113 -114
- package/dist/capabilities/dothoosh.json +29 -29
- package/dist/capabilities/doubleword.json +26 -26
- package/dist/capabilities/edenai.json +287 -278
- package/dist/capabilities/empiriolabs.json +169 -169
- package/dist/capabilities/engy.json +24 -18
- package/dist/capabilities/entrim.json +6 -6
- package/dist/capabilities/evroc.json +13 -13
- package/dist/capabilities/ezkielyna.json +9 -9
- package/dist/capabilities/fastrouter.json +79 -79
- package/dist/capabilities/fireworks-ai.json +92 -92
- package/dist/capabilities/freemodel.json +10 -10
- package/dist/capabilities/friendli.json +26 -5
- package/dist/capabilities/frogbot.json +97 -97
- package/dist/capabilities/gisoo.json +19 -19
- package/dist/capabilities/gmicloud.json +7 -7
- package/dist/capabilities/google.json +53 -53
- package/dist/capabilities/graphn.json +14 -14
- package/dist/capabilities/greenpt.json +34 -34
- package/dist/capabilities/groq.json +4 -4
- package/dist/capabilities/helicone.json +88 -88
- package/dist/capabilities/hetzner.json +4 -4
- package/dist/capabilities/hostinger-router.json +10 -10
- package/dist/capabilities/hpc-ai.json +2 -2
- package/dist/capabilities/huawei-maas.json +15 -15
- package/dist/capabilities/hubris.json +28 -28
- package/dist/capabilities/huggingface.json +87 -85
- package/dist/capabilities/hyper.json +24 -24
- package/dist/capabilities/impossibl.json +114 -114
- package/dist/capabilities/inception.json +3 -3
- package/dist/capabilities/inceptron.json +8 -8
- package/dist/capabilities/inco.json +2 -2
- package/dist/capabilities/infer.json +17 -17
- package/dist/capabilities/inferall.json +5 -5
- package/dist/capabilities/inference-coop.json +2 -2
- package/dist/capabilities/inferenceapis.json +27 -27
- package/dist/capabilities/inferris.json +3 -3
- package/dist/capabilities/infersia.json +11 -11
- package/dist/capabilities/infomaniak.json +2 -2
- package/dist/capabilities/io-net.json +2 -2
- package/dist/capabilities/iteracompute.json +38 -38
- package/dist/capabilities/jalapeno.json +10 -10
- package/dist/capabilities/jiekou.json +34 -34
- package/dist/capabilities/joingonka.json +4 -4
- package/dist/capabilities/jzstoken.json +49 -49
- package/dist/capabilities/keln.json +24 -24
- package/dist/capabilities/kenari.json +122 -137
- package/dist/capabilities/kilo.json +615 -614
- package/dist/capabilities/kimchi.json +14 -14
- package/dist/capabilities/kimi-code-plan-cn.json +9 -9
- package/dist/capabilities/kimi-code-plan-global.json +9 -9
- package/dist/capabilities/kitani.json +6 -6
- package/dist/capabilities/klavo.json +20 -20
- package/dist/capabilities/korouter.json +35 -35
- package/dist/capabilities/kunavo.json +10 -10
- package/dist/capabilities/liquid.json +9 -9
- package/dist/capabilities/lithosai.json +2 -2
- package/dist/capabilities/llmgateway-providers.json +959 -923
- package/dist/capabilities/llmgateway.json +349 -340
- package/dist/capabilities/llmtr.json +29 -29
- package/dist/capabilities/logits.json +2 -2
- package/dist/capabilities/lowrouter.json +53 -53
- package/dist/capabilities/lyceum.json +12 -12
- package/dist/capabilities/melious.json +9 -9
- package/dist/capabilities/merge-gateway.json +271 -263
- package/dist/capabilities/meta.json +11 -11
- package/dist/capabilities/minimax-cn-coding-plan.json +5 -5
- package/dist/capabilities/minimax-cn.json +5 -5
- package/dist/capabilities/minimax-coding-plan.json +5 -5
- package/dist/capabilities/minimax.json +5 -5
- package/dist/capabilities/mistral.json +16 -16
- package/dist/capabilities/mixlayer.json +4 -4
- package/dist/capabilities/modal.json +11 -11
- package/dist/capabilities/model-oracle-ai.json +19 -19
- package/dist/capabilities/modelis.json +16 -16
- package/dist/capabilities/modular.json +5 -5
- package/dist/capabilities/moneo.json +10 -10
- package/dist/capabilities/moonshotai-cn.json +6 -6
- package/dist/capabilities/moonshotai.json +6 -6
- package/dist/capabilities/morph.json +18 -18
- package/dist/capabilities/munito-eu.json +8 -8
- package/dist/capabilities/munito.json +10 -10
- package/dist/capabilities/nan.json +33 -33
- package/dist/capabilities/nano-gpt.json +557 -567
- package/dist/capabilities/nearai.json +77 -77
- package/dist/capabilities/nebius.json +42 -34
- package/dist/capabilities/neon.json +127 -127
- package/dist/capabilities/neuralwatt.json +37 -37
- package/dist/capabilities/nokeep.json +4 -4
- package/dist/capabilities/novita-ai.json +115 -115
- package/dist/capabilities/nvidia.json +17 -17
- package/dist/capabilities/oathbreaker.json +5 -5
- package/dist/capabilities/obscurify.json +29 -29
- package/dist/capabilities/oci.json +6 -6
- package/dist/capabilities/ofox.json +265 -265
- package/dist/capabilities/ollama-cloud.json +52 -52
- package/dist/capabilities/openai.json +58 -61
- package/dist/capabilities/opencode-go.json +90 -90
- package/dist/capabilities/openreason.json +6 -6
- package/dist/capabilities/openrouter.json +550 -548
- package/dist/capabilities/opper.json +26 -26
- package/dist/capabilities/orcarouter.json +310 -294
- package/dist/capabilities/outerlabs.json +29 -29
- package/dist/capabilities/ovhcloud.json +22 -22
- package/dist/capabilities/pareto.json +4 -4
- package/dist/capabilities/perplexity-agent.json +69 -69
- package/dist/capabilities/perplexity.json +2 -2
- package/dist/capabilities/phala.json +30 -30
- package/dist/capabilities/poe.json +111 -111
- package/dist/capabilities/poolside.json +2 -2
- package/dist/capabilities/powerspring.json +9 -9
- package/dist/capabilities/primalabs.json +11 -11
- package/dist/capabilities/prime.json +127 -119
- package/dist/capabilities/privatemode-ai.json +6 -6
- package/dist/capabilities/proxystacks.json +3 -3
- package/dist/capabilities/qiniu-ai.json +13 -13
- package/dist/capabilities/refuseless.json +5 -5
- package/dist/capabilities/regolo-ai.json +10 -10
- package/dist/capabilities/requesty.json +200 -200
- package/dist/capabilities/ruapi.json +20 -20
- package/dist/capabilities/runcrate.json +13 -13
- package/dist/capabilities/runinfra.json +19 -19
- package/dist/capabilities/sakana.json +5 -5
- package/dist/capabilities/sambanova.json +9 -9
- package/dist/capabilities/sandbase.json +22 -22
- package/dist/capabilities/sarvam.json +14 -14
- package/dist/capabilities/scaleway.json +17 -17
- package/dist/capabilities/scnet-token-plan.json +8 -8
- package/dist/capabilities/scx-ai.json +22 -22
- package/dist/capabilities/sensenova.json +11 -11
- package/dist/capabilities/siliconflow-cn.json +59 -59
- package/dist/capabilities/siliconflow.json +57 -57
- package/dist/capabilities/snowflake-cortex.json +19 -19
- package/dist/capabilities/sokkan.json +10 -10
- package/dist/capabilities/sparrowcodes.json +20 -20
- package/dist/capabilities/standardcompute.json +85 -85
- package/dist/capabilities/steadyrouter.json +40 -40
- 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 +18 -18
- package/dist/capabilities/superbot-gg.json +4 -4
- package/dist/capabilities/synthetic.json +12 -12
- package/dist/capabilities/synthorai.json +21 -21
- package/dist/capabilities/teamorouter.json +17 -17
- package/dist/capabilities/teapot-router.json +13 -13
- package/dist/capabilities/tencent-token-plan-intl.json +22 -22
- package/dist/capabilities/tencent-token-plan.json +42 -42
- package/dist/capabilities/tencent-tokenhub.json +44 -44
- package/dist/capabilities/tensorx.json +43 -43
- package/dist/capabilities/tenstorrent.json +2 -2
- package/dist/capabilities/the-grid-ai.json +30 -30
- package/dist/capabilities/thinkingmachines.json +78 -78
- package/dist/capabilities/tinfoil.json +13 -13
- package/dist/capabilities/toapis.json +2 -2
- package/dist/capabilities/togetherai.json +54 -54
- package/dist/capabilities/tokengo.json +23 -23
- package/dist/capabilities/tokenharbor.json +217 -217
- package/dist/capabilities/tokenify.json +9 -9
- package/dist/capabilities/trustedrouter.json +6 -6
- package/dist/capabilities/trustedtokens.json +12 -12
- package/dist/capabilities/umans-ai-coding-plan.json +17 -17
- package/dist/capabilities/umans-ai.json +11 -11
- package/dist/capabilities/uncensuredai.json +5 -5
- package/dist/capabilities/unrestricted.json +4 -4
- package/dist/capabilities/uplinkswitch.json +20 -20
- package/dist/capabilities/upstage.json +2 -2
- package/dist/capabilities/vancine.json +20 -20
- package/dist/capabilities/vercel.json +580 -571
- package/dist/capabilities/vivgrid.json +61 -61
- package/dist/capabilities/volcengine-coding-plan.json +26 -26
- package/dist/capabilities/volcengine.json +24 -24
- package/dist/capabilities/vultr.json +15 -15
- package/dist/capabilities/wafer.ai.json +19 -19
- 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 +19 -19
- package/dist/capabilities/xai.json +2 -2
- package/dist/capabilities/xpersona.json +13 -13
- package/dist/capabilities/xxapi.json +27 -27
- package/dist/capabilities/zai-coding-plan.json +11 -11
- package/dist/capabilities/zai.json +32 -32
- package/dist/capabilities/zenifra.json +27 -27
- package/dist/capabilities/zenmux.json +178 -178
- package/dist/capabilities/zerogpu.json +12 -12
- package/dist/capabilities/zhipuai-coding-plan.json +3 -3
- package/dist/capabilities/zhipuai.json +28 -28
- package/dist/capabilities/zro.json +7 -7
- package/dist/channels/index.cjs +2 -2
- package/dist/channels/index.js +2 -2
- package/dist/{channels-DChC1kXm.js → channels-BQ--aLCA.js} +1 -1
- package/dist/{channels-BamLzaJG.cjs → channels-CTCBsS5M.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 +804 -804
- package/dist/docs/references/docs-agents-human-in-the-loop.md +1 -1
- package/dist/docs/references/docs-agents-resumable-streams.md +3 -3
- package/dist/docs/references/docs-channels.md +8 -2
- package/dist/docs/references/docs-deployment-workers.md +10 -4
- package/dist/docs/references/docs-harness-durable-agents.md +17 -15
- package/dist/docs/references/docs-server-mcp.md +68 -0
- package/dist/docs/references/docs-server-pubsub.md +25 -16
- package/dist/docs/references/docs-signals-running-across-processes.md +9 -3
- package/dist/docs/references/docs-signals-sending-signals.md +1 -1
- package/dist/docs/references/docs-workflows-overview.md +3 -3
- package/dist/docs/references/reference-agents-agent.md +3 -1
- package/dist/docs/references/reference-agents-durable-agent.md +3 -3
- package/dist/docs/references/reference-configuration.md +60 -0
- package/dist/docs/references/reference-pubsub-base.md +1 -1
- package/dist/docs/references/reference-pubsub-caching-pubsub.md +1 -1
- package/dist/docs/references/reference-pubsub-google-cloud-pubsub.md +13 -7
- package/dist/docs/references/reference-pubsub-lease-provider.md +4 -0
- package/dist/docs/references/reference-pubsub-redis-streams.md +18 -9
- package/dist/docs/references/reference-pubsub-valkey-streams.md +25 -7
- 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 +3 -11
- package/dist/events/index.cjs +1 -1
- package/dist/events/index.js +1 -1
- package/dist/events/pubsub.d.ts +2 -1
- package/dist/{execution-fence-BBKnrhWR.cjs → execution-fence-C8Q0wWkG.cjs} +841 -219
- package/dist/{execution-fence--VdnD7p4.js → execution-fence-DGFyUV5h.js} +841 -219
- 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/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 +7689 -7673
- package/dist/llm/reasoning/account-switch.d.ts +50 -0
- package/dist/llm/reasoning/index.cjs +65 -0
- package/dist/llm/reasoning/index.d.ts +1 -0
- package/dist/llm/reasoning/index.js +61 -1
- package/dist/{llm-DknPJDW6.cjs → llm-RIAYOAtD.cjs} +2 -2
- package/dist/{llm-ccA_1Q-H.js → llm-YNjDFSui.js} +2 -2
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +2 -2
- package/dist/loop/suspended-run-auto-resume.d.ts +15 -0
- package/dist/loop/workflows/agentic-execution/tool-call-step.d.ts +1 -1
- package/dist/{manager-DWX6-Cx4.js → manager-DZhtdV6Q.js} +2 -2
- package/dist/{manager-D9F0i7O2.cjs → manager-Y-jYcS7T.cjs} +2 -2
- package/dist/mastra/index.cjs +1 -1
- package/dist/mastra/index.d.ts +35 -11
- package/dist/mastra/index.js +1 -1
- package/dist/{mastra-BzWL4xI8.cjs → mastra-B2-HBq1-.cjs} +108 -20
- package/dist/{mastra-oUDN81l8.js → mastra-BJ54VxOO.js} +108 -20
- package/dist/memory/index.cjs +2 -2
- package/dist/memory/index.js +2 -2
- package/dist/{model-BwxfS6T_.js → model-cS3d5rmF.js} +1 -1
- package/dist/{model-BnD7SPlA.cjs → model-lzZPXaEV.cjs} +1 -1
- package/dist/{netlify-CS0VDbb9.cjs → netlify-1lti1j4Z.cjs} +1 -1
- package/dist/{netlify-DcY9gHCJ.js → netlify-ClBjc0Xg.js} +1 -1
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/{output-helpers-k2-48ssH.js → output-helpers-D-qplq22.js} +13 -15
- package/dist/{output-helpers-By5FbLpp.cjs → output-helpers-D4O_oFne.cjs} +12 -14
- 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/{provider-registry-OggbU6OE.cjs → provider-registry-C6jd3Uxi.cjs} +21565 -21544
- package/dist/{provider-registry-BvbEoScB.js → provider-registry-C_XQJvu2.js} +21565 -21544
- package/dist/provider-registry.json +22006 -21980
- package/dist/{registry-generator-CDaf48a6.cjs → registry-generator-BYdAlox6.cjs} +1 -1
- package/dist/{registry-generator-BFOQQHyt.js → registry-generator-DBrTbThj.js} +1 -1
- package/dist/{rehydrate-CFoKaNlm.js → rehydrate-4xHubfOY.js} +2 -2
- package/dist/{rehydrate-QeS0NjGw.cjs → rehydrate-BtwY0ima.cjs} +2 -2
- package/dist/relevance/index.cjs +2 -2
- package/dist/relevance/index.js +2 -2
- package/dist/{scheduler-0ShtMM1I.js → scheduler-D1qdie5k.js} +4 -2
- package/dist/{scheduler-CMjK0LoQ.cjs → scheduler-DE5lcHJA.cjs} +4 -2
- package/dist/server/index.d.ts +1 -1
- package/dist/server/types.d.ts +57 -0
- package/dist/storage/domains/memory/base.d.ts +6 -1
- package/dist/storage/index.cjs +2 -2
- package/dist/storage/index.js +2 -2
- package/dist/stream/index.cjs +2 -2
- package/dist/stream/index.js +2 -2
- package/dist/{stream-CNqAlDJF.cjs → stream-DqKDB3nL.cjs} +1 -1
- package/dist/{stream-D2rv1Ut1.js → stream-H_wVxqdK.js} +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-Dusqj7-j.cjs → tool-loop-agent-D4gSdYuN.cjs} +3 -3
- package/dist/{tool-loop-agent-CFsOjueT.js → tool-loop-agent-DvZcOxWe.js} +3 -3
- package/dist/{utils-CIuOHPoS.cjs → utils-Dd4m7z13.cjs} +1 -1
- package/dist/{utils-DLnCt6E9.js → utils-h5k_ChdS.js} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/{validate-ShLcQTA5.js → validate-DQB9spZ1.js} +1 -1
- package/dist/{validate-1zReLtWc.cjs → validate-u6_TUYSo.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.d.ts +1 -1
- package/dist/worker/index.js +1 -1
- package/dist/worker/workers/orchestration-worker.d.ts +13 -0
- package/dist/{worker-CQ8rTJwQ.cjs → worker-0F7Nukyf.cjs} +2 -2
- package/dist/{worker-BPNrwCFs.cjs → worker-D-cq8McN.cjs} +117 -32
- package/dist/{worker-ngt-F1Iv.js → worker-DWOK2M_5.js} +117 -32
- package/dist/{worker-CKcQcPl8.js → worker-DmUkyJY_.js} +2 -2
- package/dist/{workflow-B_e5wMmz.cjs → workflow-DXE15e-w.cjs} +4 -4
- package/dist/{workflow-XDIVRsu4.js → workflow-DamOke3z.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 +20 -0
- package/dist/workflows/index.cjs +5 -5
- package/dist/workflows/index.js +5 -5
- package/dist/workflows/scheduler/types.d.ts +3 -0
- package/dist/workspace/tools/media.d.ts +2 -2
- package/package.json +7 -7
- package/src/llm/model/provider-types.generated.d.ts +7689 -7673
|
@@ -12,7 +12,8 @@ import EventEmitter$1 from "events";
|
|
|
12
12
|
*
|
|
13
13
|
* Evented workflows and evented agents can run on any implementation inside one
|
|
14
14
|
* process. Running them on several processes needs a pubsub that redelivers
|
|
15
|
-
* unacknowledged events and a workflows store with step guards.
|
|
15
|
+
* unacknowledged events and a workflows store with step guards. Evented agents
|
|
16
|
+
* also need a server cache that every process shares.
|
|
16
17
|
*
|
|
17
18
|
* @see https://mastra.ai/docs/server/pubsub#evented-workflows-and-agents
|
|
18
19
|
*/
|
|
@@ -823,14 +824,6 @@ var EventEmitterPubSub = class extends PubSub {
|
|
|
823
824
|
return Promise.resolve(true);
|
|
824
825
|
}
|
|
825
826
|
};
|
|
826
|
-
// src/events/publisher-queue-limit-error.ts
|
|
827
|
-
var PublisherQueueLimitError = class extends Error {
|
|
828
|
-
waitForCapacity;
|
|
829
|
-
constructor(message = "UnixSocketPubSub publisher queue limit exceeded", waitForCapacity) {
|
|
830
|
-
super(message);
|
|
831
|
-
this.waitForCapacity = waitForCapacity;
|
|
832
|
-
}
|
|
833
|
-
};
|
|
834
827
|
// src/stream/strip-model-snapshots.ts
|
|
835
828
|
/**
|
|
836
829
|
* Removes the model request/history snapshots that agent `step-start`,
|
|
@@ -1098,7 +1091,6 @@ var CachingPubSub = class extends PubSub {
|
|
|
1098
1091
|
logger;
|
|
1099
1092
|
shouldCache;
|
|
1100
1093
|
extendExistingLogsOnly;
|
|
1101
|
-
onUnlogged;
|
|
1102
1094
|
logTtls;
|
|
1103
1095
|
/** Maps original callbacks to their wrapped versions for proper unsubscribe */
|
|
1104
1096
|
callbackMap = /* @__PURE__ */ new Map();
|
|
@@ -1118,7 +1110,6 @@ var CachingPubSub = class extends PubSub {
|
|
|
1118
1110
|
this.logger = options.logger;
|
|
1119
1111
|
this.shouldCache = options.shouldCache;
|
|
1120
1112
|
this.extendExistingLogsOnly = options.extendExistingLogsOnly ?? false;
|
|
1121
|
-
this.onUnlogged = options.onUnlogged;
|
|
1122
1113
|
this.logTtls = {
|
|
1123
1114
|
runLogTtlMs: options.runLogTtlMs,
|
|
1124
1115
|
threadStreamLogTtlMs: options.threadStreamLogTtlMs
|
|
@@ -1148,8 +1139,8 @@ var CachingPubSub = class extends PubSub {
|
|
|
1148
1139
|
/**
|
|
1149
1140
|
* Topics `shouldCache` leaves out only reach the inner transport. With
|
|
1150
1141
|
* `extendExistingLogsOnly`, a process that doesn't hold a run's log
|
|
1151
|
-
* publishes it live only; that setup
|
|
1152
|
-
*
|
|
1142
|
+
* publishes it live only; Mastra warns about that setup at startup, and its
|
|
1143
|
+
* replays miss those frames whatever they carry, so it still counts
|
|
1153
1144
|
* as kept.
|
|
1154
1145
|
*/
|
|
1155
1146
|
__replaysTopic(topic) {
|
|
@@ -1233,7 +1224,6 @@ var CachingPubSub = class extends PubSub {
|
|
|
1233
1224
|
return;
|
|
1234
1225
|
}
|
|
1235
1226
|
if (this.extendExistingLogsOnly && !await this.hasLog(topic)) {
|
|
1236
|
-
this.onUnlogged?.(topic);
|
|
1237
1227
|
await this.inner.publish(topic, fullEvent, options);
|
|
1238
1228
|
return;
|
|
1239
1229
|
}
|
|
@@ -1549,6 +1539,14 @@ var CachingPubSub = class extends PubSub {
|
|
|
1549
1539
|
function withCaching(pubsub, cache, options) {
|
|
1550
1540
|
return new CachingPubSub(pubsub, cache, options);
|
|
1551
1541
|
}
|
|
1542
|
+
// src/events/publisher-queue-limit-error.ts
|
|
1543
|
+
var PublisherQueueLimitError = class extends Error {
|
|
1544
|
+
waitForCapacity;
|
|
1545
|
+
constructor(message = "UnixSocketPubSub publisher queue limit exceeded", waitForCapacity) {
|
|
1546
|
+
super(message);
|
|
1547
|
+
this.waitForCapacity = waitForCapacity;
|
|
1548
|
+
}
|
|
1549
|
+
};
|
|
1552
1550
|
// src/events/codec/error.ts
|
|
1553
1551
|
const MAX_CAUSE_DEPTH = 5;
|
|
1554
1552
|
/**
|
|
@@ -1649,4 +1647,4 @@ var DefaultStepResult = class {
|
|
|
1649
1647
|
return this.toolResults.filter((toolResult) => toolResult.dynamic === true);
|
|
1650
1648
|
}
|
|
1651
1649
|
};
|
|
1652
|
-
export { isLeaseProvider as S,
|
|
1650
|
+
export { isLeaseProvider as S, stripModelSnapshots as _, CachingPubSub as a, NoopLeaseProvider as b, DEFAULT_THREAD_STREAM_LOG_TTL_MS as c, cachedLogTtlMs as d, isRunLocalTopic as f, slimProgressChunk as g, slimNestedAgentChunks as h, PublisherQueueLimitError as i, RUN_LOCAL_TOPIC_PREFIXES as l, toCachedLogFrame as m, rehydrateError as n, withCaching as o, streamTopicIdleTtlMs as p, serializeError as r, DEFAULT_RUN_LOG_TTL_MS as s, DefaultStepResult as t, RUN_LOG_TTL_MS as u, EventEmitterPubSub as v, PubSub as x, withAck as y };
|
|
@@ -14,7 +14,8 @@ events = require_rolldown_runtime.__toESM(events, 1);
|
|
|
14
14
|
*
|
|
15
15
|
* Evented workflows and evented agents can run on any implementation inside one
|
|
16
16
|
* process. Running them on several processes needs a pubsub that redelivers
|
|
17
|
-
* unacknowledged events and a workflows store with step guards.
|
|
17
|
+
* unacknowledged events and a workflows store with step guards. Evented agents
|
|
18
|
+
* also need a server cache that every process shares.
|
|
18
19
|
*
|
|
19
20
|
* @see https://mastra.ai/docs/server/pubsub#evented-workflows-and-agents
|
|
20
21
|
*/
|
|
@@ -825,14 +826,6 @@ var EventEmitterPubSub = class extends PubSub {
|
|
|
825
826
|
return Promise.resolve(true);
|
|
826
827
|
}
|
|
827
828
|
};
|
|
828
|
-
// src/events/publisher-queue-limit-error.ts
|
|
829
|
-
var PublisherQueueLimitError = class extends Error {
|
|
830
|
-
waitForCapacity;
|
|
831
|
-
constructor(message = "UnixSocketPubSub publisher queue limit exceeded", waitForCapacity) {
|
|
832
|
-
super(message);
|
|
833
|
-
this.waitForCapacity = waitForCapacity;
|
|
834
|
-
}
|
|
835
|
-
};
|
|
836
829
|
// src/stream/strip-model-snapshots.ts
|
|
837
830
|
/**
|
|
838
831
|
* Removes the model request/history snapshots that agent `step-start`,
|
|
@@ -1100,7 +1093,6 @@ var CachingPubSub = class extends PubSub {
|
|
|
1100
1093
|
logger;
|
|
1101
1094
|
shouldCache;
|
|
1102
1095
|
extendExistingLogsOnly;
|
|
1103
|
-
onUnlogged;
|
|
1104
1096
|
logTtls;
|
|
1105
1097
|
/** Maps original callbacks to their wrapped versions for proper unsubscribe */
|
|
1106
1098
|
callbackMap = /* @__PURE__ */ new Map();
|
|
@@ -1120,7 +1112,6 @@ var CachingPubSub = class extends PubSub {
|
|
|
1120
1112
|
this.logger = options.logger;
|
|
1121
1113
|
this.shouldCache = options.shouldCache;
|
|
1122
1114
|
this.extendExistingLogsOnly = options.extendExistingLogsOnly ?? false;
|
|
1123
|
-
this.onUnlogged = options.onUnlogged;
|
|
1124
1115
|
this.logTtls = {
|
|
1125
1116
|
runLogTtlMs: options.runLogTtlMs,
|
|
1126
1117
|
threadStreamLogTtlMs: options.threadStreamLogTtlMs
|
|
@@ -1150,8 +1141,8 @@ var CachingPubSub = class extends PubSub {
|
|
|
1150
1141
|
/**
|
|
1151
1142
|
* Topics `shouldCache` leaves out only reach the inner transport. With
|
|
1152
1143
|
* `extendExistingLogsOnly`, a process that doesn't hold a run's log
|
|
1153
|
-
* publishes it live only; that setup
|
|
1154
|
-
*
|
|
1144
|
+
* publishes it live only; Mastra warns about that setup at startup, and its
|
|
1145
|
+
* replays miss those frames whatever they carry, so it still counts
|
|
1155
1146
|
* as kept.
|
|
1156
1147
|
*/
|
|
1157
1148
|
__replaysTopic(topic) {
|
|
@@ -1235,7 +1226,6 @@ var CachingPubSub = class extends PubSub {
|
|
|
1235
1226
|
return;
|
|
1236
1227
|
}
|
|
1237
1228
|
if (this.extendExistingLogsOnly && !await this.hasLog(topic)) {
|
|
1238
|
-
this.onUnlogged?.(topic);
|
|
1239
1229
|
await this.inner.publish(topic, fullEvent, options);
|
|
1240
1230
|
return;
|
|
1241
1231
|
}
|
|
@@ -1551,6 +1541,14 @@ var CachingPubSub = class extends PubSub {
|
|
|
1551
1541
|
function withCaching(pubsub, cache, options) {
|
|
1552
1542
|
return new CachingPubSub(pubsub, cache, options);
|
|
1553
1543
|
}
|
|
1544
|
+
// src/events/publisher-queue-limit-error.ts
|
|
1545
|
+
var PublisherQueueLimitError = class extends Error {
|
|
1546
|
+
waitForCapacity;
|
|
1547
|
+
constructor(message = "UnixSocketPubSub publisher queue limit exceeded", waitForCapacity) {
|
|
1548
|
+
super(message);
|
|
1549
|
+
this.waitForCapacity = waitForCapacity;
|
|
1550
|
+
}
|
|
1551
|
+
};
|
|
1554
1552
|
// src/events/codec/error.ts
|
|
1555
1553
|
const MAX_CAUSE_DEPTH = 5;
|
|
1556
1554
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_execution_fence = require("../execution-fence-
|
|
2
|
+
const require_execution_fence = require("../execution-fence-C8Q0wWkG.cjs");
|
|
3
3
|
let zod_v4 = require("zod/v4");
|
|
4
4
|
// src/processor-provider/types.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $o as TokenLimiterProcessor, Jo as ToolCallFilter, Qo as SystemPromptScrubber, ds as PIIDetector, fs as PromptInjectionDetector, ms as UnicodeNormalizer, os as BatchPartsProcessor, ps as ModerationProcessor, us as LanguageDetector } from "../execution-fence
|
|
1
|
+
import { $o as TokenLimiterProcessor, Jo as ToolCallFilter, Qo as SystemPromptScrubber, ds as PIIDetector, fs as PromptInjectionDetector, ms as UnicodeNormalizer, os as BatchPartsProcessor, ps as ModerationProcessor, us as LanguageDetector } from "../execution-fence-DGFyUV5h.js";
|
|
2
2
|
import { z } from "zod/v4";
|
|
3
3
|
// src/processor-provider/types.ts
|
|
4
4
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_stream = require("../stream-
|
|
3
|
-
const require_execution_fence = require("../execution-fence-
|
|
2
|
+
const require_stream = require("../stream-DqKDB3nL.cjs");
|
|
3
|
+
const require_execution_fence = require("../execution-fence-C8Q0wWkG.cjs");
|
|
4
4
|
exports.AgentsMDInjector = require_execution_fence.AgentsMDInjector;
|
|
5
5
|
exports.BaseProcessor = require_execution_fence.BaseProcessor;
|
|
6
6
|
exports.BatchPartsProcessor = require_execution_fence.BatchPartsProcessor;
|
package/dist/processors/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { H as anthropicToolIdFormat, K as REPROCESS_PART_KEY, M as ProcessorRunner, N as ProcessorState, U as cerebrasStripReasoningContent, V as ProviderHistoryCompat, W as openaiOrphanItemId, it as createProcessorSendSignal, ln as isProcessorWorkflow } from "../stream-
|
|
2
|
-
import { $l as ProcessorOutputStreamPhaseSchema, $o as TokenLimiterProcessor, Bo as ResponseCache, Cs as isRetryableOpenAIResponsesStreamError, Gl as MessageContentSchema, Gn as WorkingMemory, Go as formatSkillsCatalog, Hn as MemoryInputFilter, Ho as WorkspaceInstructionsProcessor, Io as createBackgroundWorkSignalProcessor, Jl as ProcessorInputStepPhaseSchema, Jo as ToolCallFilter, Kl as MessagePartSchema, Kn as MessageHistory, Ko as ToolSearchProcessor, Lo as CyberRefusalHandler, Ql as ProcessorOutputStepPhaseSchema, Qo as SystemPromptScrubber, Ro as DEFAULT_RESPONSE_CACHE_TTL_SECONDS, Ss as isBadRequestError, Ul as FilePartSchema, Un as SemanticRecall, Uo as SkillSearchProcessor, Vn as BaseProcessor, Vo as buildResponseCacheKey, Wl as ImagePartSchema, Wn as globalEmbeddingCache, Wo as SkillsProcessor, Xl as ProcessorMessageSchema, Xo as CostGuardProcessor, Yl as ProcessorMessageContentSchema, Yo as RegexFilterProcessor, Zl as ProcessorOutputResultPhaseSchema, Zo as TokenCostControl, _s as isMalformedFunctionCallError, au as StepStartPartSchema, bs as FILE_UPLOAD_ERROR_CODES, cs as ClassifierProcessor, ds as PIIDetector, eu as ProcessorStepInputSchema, fs as PromptInjectionDetector, gs as defaultStabilityErrorProcessors, hs as STABILITY_ERROR_PROCESSOR_IDS, iu as SourcePartSchema, ls as StructuredOutputProcessor, ms as UnicodeNormalizer, nu as ProcessorStepSchema, os as BatchPartsProcessor, ou as TextPartSchema, ps as ModerationProcessor, ql as ProcessorInputPhaseSchema, qo as AgentsMDInjector, ru as ReasoningPartSchema, ss as ModelSelectionProcessor, su as ToolInvocationPartSchema, tu as ProcessorStepOutputSchema, us as LanguageDetector, vs as UnsupportedFileHandler, ws as PrefillErrorHandler, xs as StreamErrorRetryProcessor, ys as FileUploadProcessor, zo as RESPONSE_CACHE_CONTEXT_KEY } from "../execution-fence
|
|
1
|
+
import { H as anthropicToolIdFormat, K as REPROCESS_PART_KEY, M as ProcessorRunner, N as ProcessorState, U as cerebrasStripReasoningContent, V as ProviderHistoryCompat, W as openaiOrphanItemId, it as createProcessorSendSignal, ln as isProcessorWorkflow } from "../stream-H_wVxqdK.js";
|
|
2
|
+
import { $l as ProcessorOutputStreamPhaseSchema, $o as TokenLimiterProcessor, Bo as ResponseCache, Cs as isRetryableOpenAIResponsesStreamError, Gl as MessageContentSchema, Gn as WorkingMemory, Go as formatSkillsCatalog, Hn as MemoryInputFilter, Ho as WorkspaceInstructionsProcessor, Io as createBackgroundWorkSignalProcessor, Jl as ProcessorInputStepPhaseSchema, Jo as ToolCallFilter, Kl as MessagePartSchema, Kn as MessageHistory, Ko as ToolSearchProcessor, Lo as CyberRefusalHandler, Ql as ProcessorOutputStepPhaseSchema, Qo as SystemPromptScrubber, Ro as DEFAULT_RESPONSE_CACHE_TTL_SECONDS, Ss as isBadRequestError, Ul as FilePartSchema, Un as SemanticRecall, Uo as SkillSearchProcessor, Vn as BaseProcessor, Vo as buildResponseCacheKey, Wl as ImagePartSchema, Wn as globalEmbeddingCache, Wo as SkillsProcessor, Xl as ProcessorMessageSchema, Xo as CostGuardProcessor, Yl as ProcessorMessageContentSchema, Yo as RegexFilterProcessor, Zl as ProcessorOutputResultPhaseSchema, Zo as TokenCostControl, _s as isMalformedFunctionCallError, au as StepStartPartSchema, bs as FILE_UPLOAD_ERROR_CODES, cs as ClassifierProcessor, ds as PIIDetector, eu as ProcessorStepInputSchema, fs as PromptInjectionDetector, gs as defaultStabilityErrorProcessors, hs as STABILITY_ERROR_PROCESSOR_IDS, iu as SourcePartSchema, ls as StructuredOutputProcessor, ms as UnicodeNormalizer, nu as ProcessorStepSchema, os as BatchPartsProcessor, ou as TextPartSchema, ps as ModerationProcessor, ql as ProcessorInputPhaseSchema, qo as AgentsMDInjector, ru as ReasoningPartSchema, ss as ModelSelectionProcessor, su as ToolInvocationPartSchema, tu as ProcessorStepOutputSchema, us as LanguageDetector, vs as UnsupportedFileHandler, ws as PrefillErrorHandler, xs as StreamErrorRetryProcessor, ys as FileUploadProcessor, zo as RESPONSE_CACHE_CONTEXT_KEY } from "../execution-fence-DGFyUV5h.js";
|
|
3
3
|
export { AgentsMDInjector, BaseProcessor, BatchPartsProcessor, ClassifierProcessor, CostGuardProcessor, CyberRefusalHandler, DEFAULT_RESPONSE_CACHE_TTL_SECONDS, FILE_UPLOAD_ERROR_CODES, FilePartSchema, FileUploadProcessor, ImagePartSchema, LanguageDetector, MemoryInputFilter, MessageContentSchema, MessageHistory, MessagePartSchema, ModelSelectionProcessor, ModerationProcessor, PIIDetector, PrefillErrorHandler, ProcessorInputPhaseSchema, ProcessorInputStepPhaseSchema, ProcessorMessageContentSchema, ProcessorMessageSchema, ProcessorOutputResultPhaseSchema, ProcessorOutputStepPhaseSchema, ProcessorOutputStreamPhaseSchema, ProcessorRunner, ProcessorState, ProcessorStepInputSchema, ProcessorStepOutputSchema, ProcessorStepSchema, PromptInjectionDetector, ProviderHistoryCompat, REPROCESS_PART_KEY, RESPONSE_CACHE_CONTEXT_KEY, ReasoningPartSchema, RegexFilterProcessor, ResponseCache, STABILITY_ERROR_PROCESSOR_IDS, SemanticRecall, SkillSearchProcessor, SkillsProcessor, SourcePartSchema, StepStartPartSchema, StreamErrorRetryProcessor, StructuredOutputProcessor, SystemPromptScrubber, TextPartSchema, TokenCostControl, TokenLimiterProcessor as TokenLimiter, TokenLimiterProcessor, ToolCallFilter, ToolInvocationPartSchema, ToolSearchProcessor, UnicodeNormalizer, UnsupportedFileHandler, WorkingMemory, WorkspaceInstructionsProcessor, anthropicToolIdFormat, buildResponseCacheKey, cerebrasStripReasoningContent, createBackgroundWorkSignalProcessor, createProcessorSendSignal, defaultStabilityErrorProcessors, formatSkillsCatalog, globalEmbeddingCache, isBadRequestError, isMalformedFunctionCallError, isProcessorWorkflow, isRetryableOpenAIResponsesStreamError, openaiOrphanItemId };
|