@mastra/core 1.87.0-alpha.5 → 1.87.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/durable/index.cjs +1 -1
- package/dist/agent/durable/index.js +1 -1
- package/dist/agent/index.cjs +2 -2
- package/dist/agent/index.js +2 -2
- 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-CDwoELRq.js → agent-controller-GM-2_7C2.js} +5 -5
- package/dist/{agent-controller-DEB1G03O.cjs → agent-controller-QGBVBDRi.cjs} +5 -5
- package/dist/background-tasks/index.cjs +2 -1
- package/dist/background-tasks/index.d.ts +1 -1
- package/dist/background-tasks/index.js +1 -1
- package/dist/background-tasks/resolve-config.d.ts +30 -1
- package/dist/background-tasks/system-prompt.d.ts +8 -2
- package/dist/background-tasks/types.d.ts +47 -1
- package/dist/{background-tasks-B40g_Guf.cjs → background-tasks-C-3AqSKL.cjs} +167 -32
- package/dist/{background-tasks-CBp2178j.js → background-tasks-lHCVpHbm.js} +156 -33
- package/dist/browser/index.cjs +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/{builder-DTEXPju5.js → builder-C9UYOrxv.js} +2 -2
- package/dist/{builder-tuHJooMG.cjs → builder-mGGr3IhH.cjs} +2 -2
- package/dist/capabilities/302ai.json +210 -210
- package/dist/capabilities/abliteratedllm.json +31 -31
- package/dist/capabilities/abliteration-ai.json +6 -6
- package/dist/capabilities/above.json +18 -18
- package/dist/capabilities/adaption.json +13 -13
- package/dist/capabilities/adzuki.json +30 -30
- package/dist/capabilities/agentrouter.json +11 -11
- package/dist/capabilities/agnes.json +3 -3
- package/dist/capabilities/ai-router.json +5 -5
- package/dist/capabilities/aiand.json +22 -22
- package/dist/capabilities/aigrow.json +11 -11
- package/dist/capabilities/aimlapi.json +147 -147
- package/dist/capabilities/aipg.json +2 -2
- package/dist/capabilities/aixy.json +28 -28
- package/dist/capabilities/aki-io.json +13 -13
- package/dist/capabilities/alibaba-cn.json +98 -98
- package/dist/capabilities/alibaba-coding-plan-cn.json +4 -4
- package/dist/capabilities/alibaba-coding-plan.json +4 -4
- package/dist/capabilities/alibaba-token-plan-cn.json +47 -47
- package/dist/capabilities/alibaba-token-plan.json +50 -50
- package/dist/capabilities/alibaba.json +67 -67
- package/dist/capabilities/ambient.json +16 -16
- package/dist/capabilities/amd.json +11 -11
- package/dist/capabilities/anthropic.json +48 -48
- package/dist/capabilities/anyapi.json +48 -48
- package/dist/capabilities/apiko.json +4 -4
- package/dist/capabilities/arcee.json +10 -10
- package/dist/capabilities/augure.json +8 -8
- package/dist/capabilities/auriko.json +23 -23
- package/dist/capabilities/bailing.json +4 -4
- package/dist/capabilities/baseten.json +35 -35
- package/dist/capabilities/bee.json +2 -2
- package/dist/capabilities/berget.json +6 -6
- package/dist/capabilities/bothub.json +12 -12
- package/dist/capabilities/boundless.json +38 -38
- package/dist/capabilities/bumo.json +43 -43
- package/dist/capabilities/byteplus.json +24 -24
- package/dist/capabilities/cheapaimodel.json +8 -8
- package/dist/capabilities/cheapest-token.json +31 -31
- package/dist/capabilities/chutes.json +9 -9
- package/dist/capabilities/cline-pass.json +36 -36
- package/dist/capabilities/cloudcode.json +7 -7
- package/dist/capabilities/cloudferro-sherlock.json +4 -4
- package/dist/capabilities/cloudflare-workers-ai.json +17 -17
- package/dist/capabilities/commandcode.json +154 -154
- package/dist/capabilities/concentrate.json +283 -283
- package/dist/capabilities/cortecs.json +108 -108
- package/dist/capabilities/crossmodel.json +191 -191
- package/dist/capabilities/crusoe.json +10 -10
- package/dist/capabilities/daoxe.json +9 -9
- package/dist/capabilities/databricks.json +121 -121
- package/dist/capabilities/deepinfra.json +100 -100
- package/dist/capabilities/deepseek.json +3 -3
- package/dist/capabilities/digitalocean.json +109 -109
- package/dist/capabilities/dothoosh.json +29 -29
- package/dist/capabilities/doubleword.json +23 -23
- package/dist/capabilities/edenai.json +279 -286
- package/dist/capabilities/empiriolabs.json +174 -174
- package/dist/capabilities/engy.json +24 -24
- package/dist/capabilities/entrim.json +5 -5
- package/dist/capabilities/evroc.json +21 -21
- package/dist/capabilities/ezkielyna.json +9 -9
- package/dist/capabilities/fastrouter.json +88 -88
- package/dist/capabilities/fireworks-ai.json +98 -98
- package/dist/capabilities/freemodel.json +18 -18
- package/dist/capabilities/friendli.json +12 -12
- package/dist/capabilities/frogbot.json +99 -99
- package/dist/capabilities/gisoo.json +19 -19
- package/dist/capabilities/gmicloud.json +22 -22
- package/dist/capabilities/google.json +54 -54
- package/dist/capabilities/graphn.json +11 -11
- package/dist/capabilities/greenpt.json +34 -34
- package/dist/capabilities/groq.json +8 -8
- package/dist/capabilities/helicone.json +79 -79
- package/dist/capabilities/hostinger-router.json +14 -14
- package/dist/capabilities/hpc-ai.json +12 -12
- package/dist/capabilities/huawei-maas.json +9 -9
- package/dist/capabilities/hubris.json +29 -29
- package/dist/capabilities/huggingface.json +103 -103
- package/dist/capabilities/humain.json +2 -2
- package/dist/capabilities/hyper.json +22 -22
- package/dist/capabilities/impossibl.json +155 -155
- package/dist/capabilities/inception.json +2 -2
- package/dist/capabilities/inco.json +4 -4
- package/dist/capabilities/infer.json +13 -13
- package/dist/capabilities/inferall.json +14 -14
- package/dist/capabilities/inference-coop.json +11 -11
- package/dist/capabilities/inferenceapis.json +19 -19
- package/dist/capabilities/inferris.json +2 -2
- package/dist/capabilities/infersia.json +14 -14
- package/dist/capabilities/inferx.json +3 -3
- package/dist/capabilities/infomaniak.json +4 -4
- package/dist/capabilities/io-net.json +4 -4
- package/dist/capabilities/isoquant.json +4 -4
- package/dist/capabilities/iteracompute.json +54 -54
- package/dist/capabilities/jad-ai.json +3 -3
- package/dist/capabilities/jalapeno.json +10 -10
- package/dist/capabilities/jiekou.json +63 -63
- package/dist/capabilities/jzstoken.json +52 -52
- package/dist/capabilities/keln.json +20 -20
- package/dist/capabilities/kenari.json +124 -124
- package/dist/capabilities/kilo.json +637 -635
- 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 +4 -4
- package/dist/capabilities/klavo.json +15 -15
- package/dist/capabilities/korouter.json +28 -28
- package/dist/capabilities/kunavo.json +10 -10
- package/dist/capabilities/liquid.json +12 -12
- package/dist/capabilities/lithosai.json +3 -3
- package/dist/capabilities/llmgateway-providers.json +946 -933
- package/dist/capabilities/llmgateway.json +339 -338
- package/dist/capabilities/llmtr.json +32 -32
- package/dist/capabilities/logits.json +2 -2
- package/dist/capabilities/lowrouter.json +64 -64
- package/dist/capabilities/lyceum.json +8 -8
- package/dist/capabilities/melious.json +14 -14
- package/dist/capabilities/merge-gateway.json +263 -263
- package/dist/capabilities/meta.json +10 -10
- 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 +17 -17
- package/dist/capabilities/mixlayer.json +5 -5
- package/dist/capabilities/modal.json +13 -13
- package/dist/capabilities/model-oracle-ai.json +26 -26
- package/dist/capabilities/modelis.json +20 -20
- package/dist/capabilities/modular.json +5 -5
- package/dist/capabilities/moneo.json +15 -15
- package/dist/capabilities/moonshotai-cn.json +3 -3
- package/dist/capabilities/moonshotai.json +3 -3
- package/dist/capabilities/morph.json +11 -11
- package/dist/capabilities/munito-eu.json +6 -6
- package/dist/capabilities/munito.json +8 -8
- package/dist/capabilities/nan.json +31 -31
- package/dist/capabilities/nano-gpt.json +596 -596
- package/dist/capabilities/nearai.json +96 -96
- package/dist/capabilities/nebius.json +30 -30
- package/dist/capabilities/neon.json +131 -131
- package/dist/capabilities/neuralwatt.json +36 -36
- package/dist/capabilities/nokeep.json +5 -5
- package/dist/capabilities/novita-ai.json +137 -137
- package/dist/capabilities/nvidia.json +38 -38
- package/dist/capabilities/obscurify.json +30 -30
- package/dist/capabilities/oci.json +4 -4
- package/dist/capabilities/ofox.json +424 -424
- package/dist/capabilities/ollama-cloud.json +62 -62
- package/dist/capabilities/openai.json +57 -57
- package/dist/capabilities/opencode-go.json +85 -85
- package/dist/capabilities/openreason.json +5 -5
- package/dist/capabilities/openrouter.json +560 -561
- package/dist/capabilities/opper.json +28 -28
- package/dist/capabilities/orcarouter.json +267 -267
- package/dist/capabilities/outerlabs.json +28 -28
- package/dist/capabilities/ovhcloud.json +23 -23
- package/dist/capabilities/pareto.json +5 -5
- package/dist/capabilities/pendra.json +4 -4
- package/dist/capabilities/perplexity-agent.json +65 -65
- package/dist/capabilities/perplexity.json +2 -2
- package/dist/capabilities/phala.json +20 -20
- package/dist/capabilities/pioneer.json +29 -29
- package/dist/capabilities/poe.json +138 -138
- package/dist/capabilities/powerspring.json +14 -14
- package/dist/capabilities/primalabs.json +12 -12
- package/dist/capabilities/prime.json +127 -118
- package/dist/capabilities/privatemode-ai.json +8 -8
- package/dist/capabilities/proxystacks.json +5 -5
- package/dist/capabilities/qiniu-ai.json +13 -13
- package/dist/capabilities/refuseless.json +8 -8
- package/dist/capabilities/regolo-ai.json +9 -9
- package/dist/capabilities/requesty.json +200 -166
- package/dist/capabilities/ruapi.json +19 -19
- package/dist/capabilities/runcrate.json +11 -11
- package/dist/capabilities/runinfra.json +17 -17
- package/dist/capabilities/sakana.json +5 -5
- package/dist/capabilities/sambanova.json +9 -9
- package/dist/capabilities/sandbase.json +26 -26
- package/dist/capabilities/sarvam.json +8 -8
- package/dist/capabilities/scaleway.json +16 -16
- package/dist/capabilities/scnet-token-plan.json +14 -14
- package/dist/capabilities/scx-ai.json +24 -24
- package/dist/capabilities/sensenova.json +10 -10
- package/dist/capabilities/siliconflow-cn.json +58 -58
- package/dist/capabilities/siliconflow.json +60 -60
- package/dist/capabilities/snowflake-cortex.json +24 -24
- package/dist/capabilities/sokkan.json +10 -10
- package/dist/capabilities/sparrowcodes.json +22 -22
- package/dist/capabilities/standardcompute.json +106 -106
- package/dist/capabilities/steadyrouter.json +42 -42
- package/dist/capabilities/stepfun-ai-step-plan.json +7 -7
- package/dist/capabilities/stepfun-ai.json +7 -7
- package/dist/capabilities/stepfun-step-plan.json +7 -7
- package/dist/capabilities/stepfun.json +7 -7
- package/dist/capabilities/stepping-stone.json +25 -25
- package/dist/capabilities/superbot-gg.json +4 -4
- package/dist/capabilities/synthetic.json +11 -11
- package/dist/capabilities/synthorai.json +24 -24
- package/dist/capabilities/teamorouter.json +24 -24
- package/dist/capabilities/teapot-router.json +9 -9
- package/dist/capabilities/tencent-token-plan-intl.json +21 -21
- package/dist/capabilities/tencent-token-plan.json +38 -38
- package/dist/capabilities/tencent-tokenhub.json +41 -41
- package/dist/capabilities/tensorx.json +38 -38
- package/dist/capabilities/tenstorrent.json +8 -8
- package/dist/capabilities/the-grid-ai.json +34 -34
- package/dist/capabilities/thinkingmachines.json +52 -52
- package/dist/capabilities/tinfoil.json +10 -10
- package/dist/capabilities/toapis.json +2 -2
- package/dist/capabilities/togetherai.json +47 -47
- package/dist/capabilities/tokengo.json +19 -19
- package/dist/capabilities/tokenify.json +2 -2
- package/dist/capabilities/trustedrouter.json +4 -4
- package/dist/capabilities/trustedtokens.json +16 -16
- package/dist/capabilities/umans-ai-coding-plan.json +13 -13
- package/dist/capabilities/umans-ai.json +9 -9
- package/dist/capabilities/uncensuredai.json +4 -4
- package/dist/capabilities/unrestricted.json +6 -6
- package/dist/capabilities/uplinkswitch.json +21 -21
- package/dist/capabilities/upstage.json +4 -4
- package/dist/capabilities/vancine.json +16 -16
- package/dist/capabilities/vercel.json +567 -565
- package/dist/capabilities/vivgrid.json +82 -82
- package/dist/capabilities/volcengine-coding-plan.json +23 -23
- package/dist/capabilities/volcengine.json +28 -28
- package/dist/capabilities/vultr.json +31 -31
- package/dist/capabilities/wafer.ai.json +19 -19
- package/dist/capabilities/wallaby.json +5 -5
- package/dist/capabilities/wally.json +12 -12
- package/dist/capabilities/wandb.json +20 -20
- package/dist/capabilities/watt.json +25 -25
- package/dist/capabilities/xai.json +4 -4
- package/dist/capabilities/xiaomi-token-plan-ams.json +2 -2
- package/dist/capabilities/xiaomi-token-plan-cn.json +2 -2
- package/dist/capabilities/xiaomi-token-plan-sgp.json +2 -2
- package/dist/capabilities/xiaomi.json +2 -2
- package/dist/capabilities/xpersona.json +13 -13
- package/dist/capabilities/xxapi.json +27 -27
- package/dist/capabilities/zai-coding-plan.json +15 -15
- package/dist/capabilities/zai.json +31 -31
- package/dist/capabilities/zenifra.json +27 -27
- package/dist/capabilities/zenmux.json +207 -207
- package/dist/capabilities/zerogpu.json +11 -11
- package/dist/capabilities/zhipuai-coding-plan.json +7 -7
- package/dist/capabilities/zhipuai.json +30 -30
- package/dist/capabilities/zro.json +6 -6
- package/dist/channels/index.cjs +2 -2
- package/dist/channels/index.js +2 -2
- package/dist/{channels-CC2Z4adP.js → channels-CyJ0PpSg.js} +1 -1
- package/dist/{channels-Drxs9g13.cjs → channels-dBz-1Oy7.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 +487 -487
- package/dist/docs/references/docs-agents-code-mode.md +16 -0
- package/dist/docs/references/docs-harness-background-tasks.md +38 -0
- package/dist/evals/index.cjs +1 -1
- package/dist/evals/index.js +1 -1
- package/dist/evals/scoreTraces/index.cjs +1 -1
- package/dist/evals/scoreTraces/index.js +1 -1
- package/dist/events/index.cjs +1 -1
- package/dist/events/index.js +1 -1
- 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 +14 -4
- package/dist/knowledge/index.d.ts +6 -2
- package/dist/knowledge/index.js +14 -4
- package/dist/knowledge/pinned-state-processor.d.ts +2 -2
- package/dist/knowledge/run.d.ts +4 -0
- package/dist/llm/index.cjs +3 -3
- package/dist/llm/index.js +3 -3
- package/dist/llm/model/provider-types.generated.d.ts +7998 -7998
- package/dist/{llm-CbpBEabY.cjs → llm-BiSuGioB.cjs} +2 -2
- package/dist/{llm-D3y8qOKL.js → llm-Du8yTHDN.js} +2 -2
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +2 -2
- package/dist/{manager-BOn6RJwA.cjs → manager-Bd8By72w.cjs} +2 -2
- package/dist/{manager-elIuArZa.js → manager-CiKAT1GP.js} +2 -2
- package/dist/mastra/index.cjs +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/{mastra-CDQJWY6v.cjs → mastra-BD1Hqrb2.cjs} +17 -17
- package/dist/{mastra-DQjco6Bt.js → mastra-GjJdwKF7.js} +17 -17
- package/dist/memory/index.cjs +2 -2
- package/dist/memory/index.js +2 -2
- package/dist/{model-BjyU1L4I.js → model-Bvfq1yB9.js} +1 -1
- package/dist/{model-C4aI7k-i.cjs → model-CI05YYPx.cjs} +1 -1
- package/dist/{netlify-BpB7PtZV.js → netlify-DQ-v2Run.js} +1 -1
- package/dist/{netlify-BjuUEMrL.cjs → netlify-DkSS4nuo.cjs} +1 -1
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/processor-provider/index.cjs +1 -1
- package/dist/processor-provider/index.js +1 -1
- package/dist/processors/index.cjs +2 -2
- package/dist/processors/index.js +2 -2
- package/dist/processors/runner.d.ts +12 -0
- package/dist/{provider-registry-BjdxtGZZ.js → provider-registry-D7D3C2RI.js} +21967 -21966
- package/dist/{provider-registry-bkFdaY45.cjs → provider-registry-K3a83H9-.cjs} +21967 -21966
- package/dist/provider-registry.json +23004 -23003
- package/dist/{registry-generator-CPF318Kc.js → registry-generator-BgHaZqDZ.js} +1 -1
- package/dist/{registry-generator-BORKO0_T.cjs → registry-generator-RfPwMlUl.cjs} +1 -1
- package/dist/{rehydrate-Cw2Id-Uz.js → rehydrate-C4-5kM6Z.js} +2 -2
- package/dist/{rehydrate-Cps4MTph.cjs → rehydrate-DwfzaTOg.cjs} +2 -2
- package/dist/relevance/index.cjs +2 -2
- package/dist/relevance/index.js +2 -2
- package/dist/{run-registry-BTFPEkXT.cjs → run-registry-BJa47sa2.cjs} +35 -14
- package/dist/{run-registry-D5z2YVqJ.js → run-registry-Bj_lW9M3.js} +30 -15
- 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-D1OnBHDi.cjs → stream-CWE0h7Yc.cjs} +35 -12
- package/dist/{stream-DB5efioT.js → stream-DaIpS6ky.js} +35 -12
- 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-DkhFVx0h.js → tool-loop-agent-B12lpXBl.js} +3 -3
- package/dist/{tool-loop-agent-Ote8gJMn.cjs → tool-loop-agent-BGBhn5xS.cjs} +3 -3
- package/dist/{utils-Dl_UFejV.cjs → utils-CPOlvXFL.cjs} +7 -6
- package/dist/{utils-BTKpGHA6.js → utils-dueX8ECq.js} +7 -6
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/{validate-DdDuQRoZ.cjs → validate-DdirQd9u.cjs} +1 -1
- package/dist/{validate-D6fUqYGz.js → validate-x3wcpuT8.js} +1 -1
- package/dist/vector/index.cjs +1 -1
- package/dist/vector/index.js +1 -1
- package/dist/worker/index.cjs +1 -1
- package/dist/worker/index.js +1 -1
- package/dist/worker/workers/orchestration-worker.d.ts +1 -0
- package/dist/{worker-B27B9RlK.cjs → worker-CPZ3HqQn.cjs} +2 -2
- package/dist/{worker-DC269pGx.js → worker-CfMtR2cV.js} +2 -2
- package/dist/{worker-mq-oiLa5.cjs → worker-GrFJJ7Y0.cjs} +10 -4
- package/dist/{worker-Bo_hTQJC.js → worker-NYiueScR.js} +5 -5
- package/dist/{workflow-D61dV4AC.cjs → workflow-BNUED985.cjs} +3 -3
- package/dist/{workflow-D97r3h2-.js → workflow-BgAes9PI.js} +3 -3
- package/dist/workflows/builder/index.cjs +1 -1
- package/dist/workflows/builder/index.js +1 -1
- package/dist/workflows/evented/index.cjs +1 -1
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +4 -4
- package/dist/workflows/index.js +4 -4
- package/package.json +7 -7
- package/src/llm/model/provider-types.generated.d.ts +7998 -7998
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
|
|
2
|
-
const require_netlify = require("./netlify-
|
|
2
|
+
const require_netlify = require("./netlify-DkSS4nuo.cjs");
|
|
3
3
|
const require_model = require("./model-jBymoqGa.cjs");
|
|
4
4
|
const require_to_prompt = require("./to-prompt-CG-LyaBY.cjs");
|
|
5
5
|
const require_content = require("./content-CC0W1d5p.cjs");
|
|
6
|
-
const require_provider_registry = require("./provider-registry-
|
|
6
|
+
const require_provider_registry = require("./provider-registry-K3a83H9-.cjs");
|
|
7
7
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
8
8
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
9
9
|
const require_dynamic_argument = require("./dynamic-argument-CUc1BBOS.cjs");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as EventSourceParserStream, a as interpolateUrlTemplate, b as createOpenAI, c as createGoogleGenerativeAI, g as shouldEnableGateway, h as hasAuthCredentials, m as getGatewayId, o as parseModelRouterId, p as findGatewayForModel, r as ModelsDevGateway, s as createOpenAI$1, t as NetlifyGateway, u as MASTRA_USER_AGENT, v as MASTRA_GATEWAY_STREAM_TRANSPORT, x as createOpenAICompatible, y as MastraModelGateway } from "./netlify-
|
|
1
|
+
import { S as EventSourceParserStream, a as interpolateUrlTemplate, b as createOpenAI, c as createGoogleGenerativeAI, g as shouldEnableGateway, h as hasAuthCredentials, m as getGatewayId, o as parseModelRouterId, p as findGatewayForModel, r as ModelsDevGateway, s as createOpenAI$1, t as NetlifyGateway, u as MASTRA_USER_AGENT, v as MASTRA_GATEWAY_STREAM_TRANSPORT, x as createOpenAICompatible, y as MastraModelGateway } from "./netlify-DQ-v2Run.js";
|
|
2
2
|
import { n as prepareAzureStrictToolSchemas, r as createStreamFromGenerateResult, t as AISDKV5LanguageModel } from "./model-DS-b2R-R.js";
|
|
3
3
|
import { i as aiV5PromptToAIV7Prompt, r as aiV5PromptToAIV6Prompt } from "./to-prompt-CMlVGYxC.js";
|
|
4
4
|
import { t as convertToDataContent } from "./content-CFBIylxS.js";
|
|
5
|
-
import { f as MastraGateway, l as modelSupportsTemperature, n as PROVIDER_REGISTRY, p as gatewayServesObservationalMemory, t as GatewayRegistry } from "./provider-registry-
|
|
5
|
+
import { f as MastraGateway, l as modelSupportsTemperature, n as PROVIDER_REGISTRY, p as gatewayServesObservationalMemory, t as GatewayRegistry } from "./provider-registry-D7D3C2RI.js";
|
|
6
6
|
import { i as MastraError } from "./error-oh2DLsP2.js";
|
|
7
7
|
import { u as RequestContext } from "./request-context-COnZHt2-.js";
|
|
8
8
|
import { n as resolveDynamicArgument } from "./dynamic-argument-BzPK3qPN.js";
|
package/dist/loop/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_run_registry = require("../run-registry-
|
|
3
|
-
const require_stream = require("../stream-
|
|
2
|
+
const require_run_registry = require("../run-registry-BJa47sa2.cjs");
|
|
3
|
+
const require_stream = require("../stream-CWE0h7Yc.cjs");
|
|
4
4
|
exports.MastraTimeoutError = require_stream.MastraTimeoutError;
|
|
5
5
|
exports.createScorer = require_run_registry.createScorer;
|
|
6
6
|
exports.createTimeoutAbortSignal = require_stream.createTimeoutAbortSignal;
|
package/dist/loop/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Bt as formatCompletionFeedback, Gt as runChecks, Ht as formatValidationFeedback, Jt as runStreamCompletionScorers, Kt as runCompletionScorers, T as createScorer, Ut as generateFinalResult, Vt as formatStreamCompletionFeedback, Wt as generateStructuredFinalResult, Xt as loop, Yt as runValidation, qt as runDefaultCompletionCheck, zt as formatCheckFeedback } from "../run-registry-
|
|
2
|
-
import { Cn as isMastraTimeoutError, vn as MastraTimeoutError, yn as createTimeoutAbortSignal } from "../stream-
|
|
1
|
+
import { Bt as formatCompletionFeedback, Gt as runChecks, Ht as formatValidationFeedback, Jt as runStreamCompletionScorers, Kt as runCompletionScorers, T as createScorer, Ut as generateFinalResult, Vt as formatStreamCompletionFeedback, Wt as generateStructuredFinalResult, Xt as loop, Yt as runValidation, qt as runDefaultCompletionCheck, zt as formatCheckFeedback } from "../run-registry-Bj_lW9M3.js";
|
|
2
|
+
import { Cn as isMastraTimeoutError, vn as MastraTimeoutError, yn as createTimeoutAbortSignal } from "../stream-DaIpS6ky.js";
|
|
3
3
|
export { MastraTimeoutError, createScorer, createTimeoutAbortSignal, formatCheckFeedback, formatCompletionFeedback, formatStreamCompletionFeedback, formatValidationFeedback, generateFinalResult, generateStructuredFinalResult, isMastraTimeoutError, loop, runChecks, runCompletionScorers, runDefaultCompletionCheck, runStreamCompletionScorers, runValidation };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
|
|
2
|
-
const require_run_registry = require("./run-registry-
|
|
2
|
+
const require_run_registry = require("./run-registry-BJa47sa2.cjs");
|
|
3
3
|
const require_observability = require("./observability-B0R_D1PZ.cjs");
|
|
4
4
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
5
|
-
const require_stream = require("./stream-
|
|
5
|
+
const require_stream = require("./stream-CWE0h7Yc.cjs");
|
|
6
6
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
7
7
|
const require_storage = require("./storage-CfG0I2aF.cjs");
|
|
8
8
|
const require_utils = require("./utils-D-eNsgDM.cjs");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-tIEjjQTE.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Us as createStep, Ws as createWorkflow, na as assertSupportedPatterns, w as ScorerRunError, x as validateAndSaveScore, y as flushBeforeTraceRead } from "./run-registry-Bj_lW9M3.js";
|
|
3
3
|
import { S as resolveObservabilityContext } from "./observability-D7RNOAPx.js";
|
|
4
4
|
import { i as MastraError } from "./error-oh2DLsP2.js";
|
|
5
|
-
import { dt as loadStepResults, ln as isSupportedLanguageModel } from "./stream-
|
|
5
|
+
import { dt as loadStepResults, ln as isSupportedLanguageModel } from "./stream-DaIpS6ky.js";
|
|
6
6
|
import { o as MASTRA_RESOURCE_ID_KEY, p as withoutLiveRequestKeys, u as RequestContext } from "./request-context-COnZHt2-.js";
|
|
7
7
|
import { t as EntityType } from "./storage-Cc50aQAp.js";
|
|
8
8
|
import { a as getOrCreateSpan } from "./utils-DU_pU5SK.js";
|
package/dist/mastra/index.cjs
CHANGED
package/dist/mastra/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Mastra } from "../mastra-
|
|
1
|
+
export { t as Mastra } from "../mastra-GjJdwKF7.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const require_run_registry = require("./run-registry-
|
|
2
|
-
const require_background_tasks = require("./background-tasks-
|
|
1
|
+
const require_run_registry = require("./run-registry-BJa47sa2.cjs");
|
|
2
|
+
const require_background_tasks = require("./background-tasks-C-3AqSKL.cjs");
|
|
3
3
|
const require_inmemory = require("./inmemory-Dc86VWGB.cjs");
|
|
4
|
-
const require_manager = require("./manager-
|
|
4
|
+
const require_manager = require("./manager-Bd8By72w.cjs");
|
|
5
5
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
6
6
|
const require_output_helpers = require("./output-helpers-DgsH4aTb.cjs");
|
|
7
7
|
const require_hooks = require("./hooks-D7VDBETj.cjs");
|
|
8
8
|
const require_license_index = require("./license/index.cjs");
|
|
9
|
-
const require_netlify = require("./netlify-
|
|
10
|
-
const require_llm = require("./llm-
|
|
9
|
+
const require_netlify = require("./netlify-DkSS4nuo.cjs");
|
|
10
|
+
const require_llm = require("./llm-BiSuGioB.cjs");
|
|
11
11
|
const require_logger = require("./logger-CvzZYuJd.cjs");
|
|
12
12
|
const require_logger_index = require("./logger/index.cjs");
|
|
13
13
|
const require_schedules = require("./schedules-BZS8McF7.cjs");
|
|
@@ -16,14 +16,14 @@ const require_observability_context_storage = require("./observability/context-s
|
|
|
16
16
|
const require_utils = require("./utils-D-eNsgDM.cjs");
|
|
17
17
|
const require_source = require("./source-BVOi8Xhp.cjs");
|
|
18
18
|
const require_feature_telemetry = require("./feature-telemetry-Cw0L1tHo.cjs");
|
|
19
|
-
const require_tool_loop_agent = require("./tool-loop-agent-
|
|
19
|
+
const require_tool_loop_agent = require("./tool-loop-agent-BGBhn5xS.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-CPOlvXFL.cjs");
|
|
22
|
+
const require_worker = require("./worker-GrFJJ7Y0.cjs");
|
|
23
|
+
const require_builder = require("./builder-mGGr3IhH.cjs");
|
|
24
|
+
const require_validate = require("./validate-DdirQd9u.cjs");
|
|
25
|
+
const require_rehydrate = require("./rehydrate-DwfzaTOg.cjs");
|
|
26
|
+
const require_stream = require("./stream-CWE0h7Yc.cjs");
|
|
27
27
|
let zod_v4 = require("zod/v4");
|
|
28
28
|
// src/notifications/workflow.ts
|
|
29
29
|
const NOTIFICATION_DISPATCH_WORKFLOW_ID = "__mastra_notification_dispatcher";
|
|
@@ -2868,7 +2868,7 @@ var Mastra = class Mastra {
|
|
|
2868
2868
|
*/
|
|
2869
2869
|
async __ensureExperimentWorkflow() {
|
|
2870
2870
|
if (this.__hasInternalWorkflow("__mastra-experiment")) return;
|
|
2871
|
-
const { buildExperimentWorkflow } = await Promise.resolve().then(() => require("./manager-
|
|
2871
|
+
const { buildExperimentWorkflow } = await Promise.resolve().then(() => require("./manager-Bd8By72w.cjs")).then((n) => n.workflow_exports);
|
|
2872
2872
|
if (this.__hasInternalWorkflow("__mastra-experiment")) return;
|
|
2873
2873
|
this.__registerInternalWorkflow(buildExperimentWorkflow(), void 0, { distributed: true });
|
|
2874
2874
|
}
|
|
@@ -5069,7 +5069,7 @@ var Mastra = class Mastra {
|
|
|
5069
5069
|
if (!this.#workerFilter || this.#workerFilter.has("agent-schedule")) {
|
|
5070
5070
|
let agentScheduleWorker = this.#findAgentScheduleWorker();
|
|
5071
5071
|
if (!agentScheduleWorker) {
|
|
5072
|
-
const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-
|
|
5072
|
+
const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-CPZ3HqQn.cjs"));
|
|
5073
5073
|
agentScheduleWorker = new AgentScheduleWorker();
|
|
5074
5074
|
agentScheduleWorker.__registerMastra(this);
|
|
5075
5075
|
this.#workers.push(agentScheduleWorker);
|
|
@@ -5709,7 +5709,7 @@ var Mastra = class Mastra {
|
|
|
5709
5709
|
this.#workers.push(sw);
|
|
5710
5710
|
}
|
|
5711
5711
|
if (!this.#findAgentScheduleWorker()) {
|
|
5712
|
-
const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-
|
|
5712
|
+
const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-CPZ3HqQn.cjs"));
|
|
5713
5713
|
const asw = new AgentScheduleWorker();
|
|
5714
5714
|
asw.__registerMastra(this);
|
|
5715
5715
|
this.#workers.push(asw);
|
|
@@ -5802,7 +5802,7 @@ var Mastra = class Mastra {
|
|
|
5802
5802
|
}).catch((err) => this.#logger?.error?.("Unhandled error in workflow event push subscription", err));
|
|
5803
5803
|
track(inFlight);
|
|
5804
5804
|
};
|
|
5805
|
-
await this.#pubsub.subscribe("workflows", cb);
|
|
5805
|
+
await this.#pubsub.subscribe("workflows", cb, { group: require_worker.ORCHESTRATION_GROUP });
|
|
5806
5806
|
this.#pushSubscription = {
|
|
5807
5807
|
topic: "workflows",
|
|
5808
5808
|
cb
|
|
@@ -6154,7 +6154,7 @@ var Mastra = class Mastra {
|
|
|
6154
6154
|
#syncGatewayRegistry() {
|
|
6155
6155
|
try {
|
|
6156
6156
|
if (process.env.MASTRA_DEV !== "true" && process.env.MASTRA_DEV !== "1") return;
|
|
6157
|
-
Promise.resolve().then(() => require("./provider-registry-
|
|
6157
|
+
Promise.resolve().then(() => require("./provider-registry-K3a83H9-.cjs")).then((n) => n.provider_registry_exports).then(async ({ GatewayRegistry }) => {
|
|
6158
6158
|
const registry = GatewayRegistry.getInstance();
|
|
6159
6159
|
const customGateways = Object.values(this.#gateways || {});
|
|
6160
6160
|
registry.registerCustomGateways(customGateways);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Ac as
|
|
2
|
-
import {
|
|
1
|
+
import { Ac as nestedRunParentOf, An as AgentChannels, Bc as runFenceConflictOf, Dl as waitMs, El as assertDrainTimeout, Go as getStorageSource, Gs as WorkflowEventProcessor, Hc as createConcurrencyLimiter, Jr as dispatchDueNotifications, Lc as WORKFLOW_RUN_LEASE_TTL_MS, Mc as nestedRunStatusOf, Oc as cancelNestedRun, Rc as renewWorkflowLease, Uc as normalizeConcurrency, Us as createStep, Wc as runWithConcurrency, Wo as augmentWithInit, Ws as createWorkflow, b as createOnScorerHook, fa as BackgroundTasksInMemory, i as abandonDurableAgentExecutions, jc as nestedRunRecoveryAction, jl as isDurableAgentLike, jr as WorkflowsInMemory, jt as __registerMastraCtor, kc as createNestedRunParentStatusLookup, kl as hasDurableExecution, kr as InMemoryStore, m as agentThreadStreamRuntime, qs as computeScheduleDefinitionHash, s as getActiveDurableAgentWorkflowExecutions, u as isDurableAgentExecutionDetached, uu as runOutsideRunFenceScope, zc as repeatAfterSettled } from "./run-registry-Bj_lW9M3.js";
|
|
2
|
+
import { l as BackgroundTaskManager } from "./background-tasks-lHCVpHbm.js";
|
|
3
3
|
import { t as InMemoryServerCache } from "./inmemory-BK3zLwvM.js";
|
|
4
|
-
import { t as DatasetsManager } from "./manager-
|
|
4
|
+
import { t as DatasetsManager } from "./manager-CiKAT1GP.js";
|
|
5
5
|
import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "./error-oh2DLsP2.js";
|
|
6
6
|
import { u as isRunLocalTopic, v as EventEmitterPubSub } from "./output-helpers-CVzhy1Y0.js";
|
|
7
7
|
import { a as registerHook, r as deregisterHook } from "./hooks-Bth8Cjpj.js";
|
|
8
8
|
import { LicenseClient } from "./license/index.js";
|
|
9
|
-
import { m as getGatewayId } from "./netlify-
|
|
10
|
-
import { l as defaultGateways } from "./llm-
|
|
9
|
+
import { m as getGatewayId } from "./netlify-DQ-v2Run.js";
|
|
10
|
+
import { l as defaultGateways } from "./llm-Du8yTHDN.js";
|
|
11
11
|
import { l as isAdaptableLogger, n as LogLevel, t as ConsoleLogger, u as noopLogger } from "./logger-BwbmRqfc.js";
|
|
12
12
|
import { DualLogger, createExportSuppressedLogger, isObservabilityExportSuppressed, resolveTraceFields } from "./logger/index.js";
|
|
13
13
|
import { c as fsAgentScheduleRowId, g as toEpochMs, h as computeNextFireAt, l as parseFsAgentScheduleRowId, m as computeNextFire, t as Schedules } from "./schedules-DZfSx-7P.js";
|
|
@@ -16,14 +16,14 @@ import { initContextStorage } from "./observability/context-storage.js";
|
|
|
16
16
|
import { f as resolveCurrentSpan } from "./utils-DU_pU5SK.js";
|
|
17
17
|
import { r as InMemoryDB } from "./source-fNa6u1kH.js";
|
|
18
18
|
import { r as trackFeatureUsage } from "./feature-telemetry-DdR8J_5o.js";
|
|
19
|
-
import { r as isToolLoopAgentLike, t as toolLoopAgentToMastraAgent } from "./tool-loop-agent-
|
|
19
|
+
import { r as isToolLoopAgentLike, t as toolLoopAgentToMastraAgent } from "./tool-loop-agent-B12lpXBl.js";
|
|
20
20
|
import { r as normalizeToolPayloadTransformPolicy } from "./payload-transform-Dj3HUeD4.js";
|
|
21
|
-
import { v as readPositiveIntEnv } from "./utils-
|
|
22
|
-
import {
|
|
23
|
-
import { n as normalizeWorkflowBuilderDefinition } from "./builder-
|
|
24
|
-
import { d as toJsonSchemaOrUndefined, p as collectNestedWorkflowIds, t as assertValidDynamicWorkflow } from "./validate-
|
|
25
|
-
import { t as rehydrateWorkflow } from "./rehydrate-
|
|
26
|
-
import { jn as createRunScope } from "./stream-
|
|
21
|
+
import { v as readPositiveIntEnv } from "./utils-dueX8ECq.js";
|
|
22
|
+
import { a as OrchestrationWorker, i as ORCHESTRATION_GROUP, n as BackgroundTaskWorker, r as SchedulerWorker } from "./worker-NYiueScR.js";
|
|
23
|
+
import { n as normalizeWorkflowBuilderDefinition } from "./builder-C9UYOrxv.js";
|
|
24
|
+
import { d as toJsonSchemaOrUndefined, p as collectNestedWorkflowIds, t as assertValidDynamicWorkflow } from "./validate-x3wcpuT8.js";
|
|
25
|
+
import { t as rehydrateWorkflow } from "./rehydrate-C4-5kM6Z.js";
|
|
26
|
+
import { jn as createRunScope } from "./stream-DaIpS6ky.js";
|
|
27
27
|
import { z } from "zod/v4";
|
|
28
28
|
// src/notifications/workflow.ts
|
|
29
29
|
const NOTIFICATION_DISPATCH_WORKFLOW_ID = "__mastra_notification_dispatcher";
|
|
@@ -2868,7 +2868,7 @@ var Mastra = class Mastra {
|
|
|
2868
2868
|
*/
|
|
2869
2869
|
async __ensureExperimentWorkflow() {
|
|
2870
2870
|
if (this.__hasInternalWorkflow("__mastra-experiment")) return;
|
|
2871
|
-
const { buildExperimentWorkflow } = await import("./manager-
|
|
2871
|
+
const { buildExperimentWorkflow } = await import("./manager-CiKAT1GP.js").then((n) => n.b);
|
|
2872
2872
|
if (this.__hasInternalWorkflow("__mastra-experiment")) return;
|
|
2873
2873
|
this.__registerInternalWorkflow(buildExperimentWorkflow(), void 0, { distributed: true });
|
|
2874
2874
|
}
|
|
@@ -5069,7 +5069,7 @@ var Mastra = class Mastra {
|
|
|
5069
5069
|
if (!this.#workerFilter || this.#workerFilter.has("agent-schedule")) {
|
|
5070
5070
|
let agentScheduleWorker = this.#findAgentScheduleWorker();
|
|
5071
5071
|
if (!agentScheduleWorker) {
|
|
5072
|
-
const { AgentScheduleWorker } = await import("./worker-
|
|
5072
|
+
const { AgentScheduleWorker } = await import("./worker-CfMtR2cV.js");
|
|
5073
5073
|
agentScheduleWorker = new AgentScheduleWorker();
|
|
5074
5074
|
agentScheduleWorker.__registerMastra(this);
|
|
5075
5075
|
this.#workers.push(agentScheduleWorker);
|
|
@@ -5709,7 +5709,7 @@ var Mastra = class Mastra {
|
|
|
5709
5709
|
this.#workers.push(sw);
|
|
5710
5710
|
}
|
|
5711
5711
|
if (!this.#findAgentScheduleWorker()) {
|
|
5712
|
-
const { AgentScheduleWorker } = await import("./worker-
|
|
5712
|
+
const { AgentScheduleWorker } = await import("./worker-CfMtR2cV.js");
|
|
5713
5713
|
const asw = new AgentScheduleWorker();
|
|
5714
5714
|
asw.__registerMastra(this);
|
|
5715
5715
|
this.#workers.push(asw);
|
|
@@ -5802,7 +5802,7 @@ var Mastra = class Mastra {
|
|
|
5802
5802
|
}).catch((err) => this.#logger?.error?.("Unhandled error in workflow event push subscription", err));
|
|
5803
5803
|
track(inFlight);
|
|
5804
5804
|
};
|
|
5805
|
-
await this.#pubsub.subscribe("workflows", cb);
|
|
5805
|
+
await this.#pubsub.subscribe("workflows", cb, { group: ORCHESTRATION_GROUP });
|
|
5806
5806
|
this.#pushSubscription = {
|
|
5807
5807
|
topic: "workflows",
|
|
5808
5808
|
cb
|
|
@@ -6154,7 +6154,7 @@ var Mastra = class Mastra {
|
|
|
6154
6154
|
#syncGatewayRegistry() {
|
|
6155
6155
|
try {
|
|
6156
6156
|
if (process.env.MASTRA_DEV !== "true" && process.env.MASTRA_DEV !== "1") return;
|
|
6157
|
-
import("./provider-registry-
|
|
6157
|
+
import("./provider-registry-D7D3C2RI.js").then((n) => n.d).then(async ({ GatewayRegistry }) => {
|
|
6158
6158
|
const registry = GatewayRegistry.getInstance();
|
|
6159
6159
|
const customGateways = Object.values(this.#gateways || {});
|
|
6160
6160
|
registry.registerCustomGateways(customGateways);
|
package/dist/memory/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_run_registry = require("../run-registry-
|
|
3
|
-
const require_stream = require("../stream-
|
|
2
|
+
const require_run_registry = require("../run-registry-BJa47sa2.cjs");
|
|
3
|
+
const require_stream = require("../stream-CWE0h7Yc.cjs");
|
|
4
4
|
const require_message_list = require("../message-list-vR3uLAHL.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 { Jt as isObservationalMemoryEnabled, Kt as TITLE_PINNED_THREAD_METADATA_KEY, Xt as parseMemoryRequestContext, Yt as isThreadTitlePinned, Zt as setThreadOMMetadata, qt as getThreadOMMetadata } from "../stream-
|
|
1
|
+
import { Bo as MemoryProcessor, Fo as extractMessageEmbeddingText, Ho as filterSystemReminderMessages, Io as messageVectorId, Lo as resolveMaxChunkChars, Mo as MESSAGE_EMBEDDING_CHARS_PER_TOKEN, No as buildMessageEmbeddingRows, Po as chunkMessageText, Ro as upsertMessageVectors, Uo as isSystemReminderMessage, Vo as memoryDefaultOptions, ar as getMemoryRunState, ds as loadMessageHistory, fs as advanceMemoryTokenBoundary, hs as normalizeMessageHistoryConfig, ir as MemoryRunState, jo as DEFAULT_MESSAGE_EMBEDDING_MAX_CHUNK_CHARS, ms as isAfterMemoryTokenBoundary, or as MockMemory, ps as getMemoryTokenBoundary, us as groupLinkedToolMessages, zo as MastraMemory } from "../run-registry-Bj_lW9M3.js";
|
|
2
|
+
import { Jt as isObservationalMemoryEnabled, Kt as TITLE_PINNED_THREAD_METADATA_KEY, Xt as parseMemoryRequestContext, Yt as isThreadTitlePinned, Zt as setThreadOMMetadata, qt as getThreadOMMetadata } from "../stream-DaIpS6ky.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-BGm1DCiG.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-dueX8ECq.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-CPOlvXFL.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");
|
|
@@ -29125,7 +29125,7 @@ function createOpenRouter(options = {}) {
|
|
|
29125
29125
|
}
|
|
29126
29126
|
createOpenRouter({ compatibility: "strict" });
|
|
29127
29127
|
// src/llm/model/gateways/constants.ts
|
|
29128
|
-
const MASTRA_USER_AGENT = `mastra/1.87.0-alpha.
|
|
29128
|
+
const MASTRA_USER_AGENT = `mastra/1.87.0-alpha.7`;
|
|
29129
29129
|
const PROVIDERS_WITH_INSTALLED_PACKAGES = [
|
|
29130
29130
|
"anthropic",
|
|
29131
29131
|
"cerebras",
|
|
@@ -29126,7 +29126,7 @@ function createOpenRouter(options = {}) {
|
|
|
29126
29126
|
}
|
|
29127
29127
|
createOpenRouter({ compatibility: "strict" });
|
|
29128
29128
|
// src/llm/model/gateways/constants.ts
|
|
29129
|
-
const MASTRA_USER_AGENT = `mastra/1.87.0-alpha.
|
|
29129
|
+
const MASTRA_USER_AGENT = `mastra/1.87.0-alpha.7`;
|
|
29130
29130
|
const PROVIDERS_WITH_INSTALLED_PACKAGES = [
|
|
29131
29131
|
"anthropic",
|
|
29132
29132
|
"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-BJa47sa2.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 { $r as
|
|
1
|
+
import { $r as notificationSummaryContents, Jr as dispatchDueNotifications, Kr as InMemoryNotificationsStorage, Qr as notificationSignalMetadata, Xr as createNotificationSummarySignal, Yr as createNotificationSignal, Zr as notificationSignalAttributes, ai as resolveDeliveryFailureUpdate, ei as notificationSummarySignalMetadata, ii as defaultNotificationDeliveryDecision, ni as readNotificationRoutingRequirement, oi as resolveNotificationDeliveryDecision, qr as NotificationsStorage, ri as MAX_NOTIFICATION_DELIVERY_ATTEMPTS, ti as summarizeNotifications } from "../run-registry-Bj_lW9M3.js";
|
|
2
2
|
import { r as createTool } from "../tool-Z3bykc1m.js";
|
|
3
3
|
import { z } from "zod/v4";
|
|
4
4
|
// src/notifications/tool.ts
|
|
@@ -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-BJa47sa2.cjs");
|
|
3
3
|
let zod_v4 = require("zod/v4");
|
|
4
4
|
// src/processor-provider/types.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Cs as
|
|
1
|
+
import { Cs as ModerationProcessor, Ss as PromptInjectionDetector, bs as LanguageDetector, cs as SystemPromptScrubber, gs as BatchPartsProcessor, is as ToolCallFilter, ls as TokenLimiterProcessor, ws as UnicodeNormalizer, xs as PIIDetector } from "../run-registry-Bj_lW9M3.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_run_registry = require("../run-registry-
|
|
3
|
-
const require_stream = require("../stream-
|
|
2
|
+
const require_run_registry = require("../run-registry-BJa47sa2.cjs");
|
|
3
|
+
const require_stream = require("../stream-CWE0h7Yc.cjs");
|
|
4
4
|
exports.AgentsMDInjector = require_run_registry.AgentsMDInjector;
|
|
5
5
|
exports.BaseProcessor = require_run_registry.BaseProcessor;
|
|
6
6
|
exports.BatchPartsProcessor = require_run_registry.BatchPartsProcessor;
|
package/dist/processors/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $n as
|
|
2
|
-
import { B as ProviderHistoryCompat, G as REPROCESS_PART_KEY, H as cerebrasStripReasoningContent, M as ProcessorState, U as openaiOrphanItemId, V as anthropicToolIdFormat, cn as isProcessorWorkflow, j as ProcessorRunner, rt as createProcessorSendSignal } from "../stream-
|
|
1
|
+
import { $n as MemoryInputFilter, $o as SkillSearchProcessor, As as FILE_UPLOAD_ERROR_CODES, Bl as ProcessorOutputResultPhaseSchema, Cs as ModerationProcessor, Ds as isMalformedFunctionCallError, Es as defaultStabilityErrorProcessors, Fl as MessagePartSchema, Gl as ProcessorStepSchema, Hl as ProcessorOutputStreamPhaseSchema, Il as ProcessorInputPhaseSchema, Jl as StepStartPartSchema, Jo as DEFAULT_RESPONSE_CACHE_TTL_SECONDS, Kl as ReasoningPartSchema, Ko as createBackgroundWorkSignalProcessor, Ll as ProcessorInputStepPhaseSchema, Ml as FilePartSchema, Ms as isBadRequestError, Nl as ImagePartSchema, Ns as isRetryableOpenAIResponsesStreamError, Os as UnsupportedFileHandler, Pl as MessageContentSchema, Ps as PrefillErrorHandler, Qn as BaseProcessor, Qo as WorkspaceInstructionsProcessor, Rl as ProcessorMessageContentSchema, Ss as PromptInjectionDetector, Ts as STABILITY_ERROR_PROCESSOR_IDS, Ul as ProcessorStepInputSchema, Vl as ProcessorOutputStepPhaseSchema, Wl as ProcessorStepOutputSchema, Xl as ToolInvocationPartSchema, Xo as ResponseCache, Yl as TextPartSchema, Yo as RESPONSE_CACHE_CONTEXT_KEY, Zo as buildResponseCacheKey, _s as ModelSelectionProcessor, as as RegexFilterProcessor, bs as LanguageDetector, cs as SystemPromptScrubber, er as SemanticRecall, es as SkillsProcessor, gs as BatchPartsProcessor, is as ToolCallFilter, js as StreamErrorRetryProcessor, ks as FileUploadProcessor, ls as TokenLimiterProcessor, nr as WorkingMemory, ns as ToolSearchProcessor, os as CostGuardProcessor, ql as SourcePartSchema, qo as CyberRefusalHandler, rr as MessageHistory, rs as AgentsMDInjector, ss as TokenCostControl, tr as globalEmbeddingCache, ts as formatSkillsCatalog, vs as ClassifierProcessor, ws as UnicodeNormalizer, xs as PIIDetector, ys as StructuredOutputProcessor, zl as ProcessorMessageSchema } from "../run-registry-Bj_lW9M3.js";
|
|
2
|
+
import { B as ProviderHistoryCompat, G as REPROCESS_PART_KEY, H as cerebrasStripReasoningContent, M as ProcessorState, U as openaiOrphanItemId, V as anthropicToolIdFormat, cn as isProcessorWorkflow, j as ProcessorRunner, rt as createProcessorSendSignal } from "../stream-DaIpS6ky.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 };
|
|
@@ -23,6 +23,8 @@ import type { CachedLLMStepChunk, CachedLLMStepResponse, ErrorProcessorOrWorkflo
|
|
|
23
23
|
*/
|
|
24
24
|
export declare class ProcessorState<OUTPUT = undefined> {
|
|
25
25
|
private inputAccumulatedText;
|
|
26
|
+
/** Stream parts that arrived before the current span opened. */
|
|
27
|
+
private inputChunkOffset;
|
|
26
28
|
private outputAccumulatedText;
|
|
27
29
|
private outputChunkCount;
|
|
28
30
|
customState: Record<string, unknown>;
|
|
@@ -35,6 +37,8 @@ export declare class ProcessorState<OUTPUT = undefined> {
|
|
|
35
37
|
* share of that window.
|
|
36
38
|
*/
|
|
37
39
|
hookDurationMs: number;
|
|
40
|
+
/** Set when the run's `finish` chunk ended the span, so no later chunk opens another. */
|
|
41
|
+
finished: boolean;
|
|
38
42
|
constructor(options?: {
|
|
39
43
|
processorName?: string;
|
|
40
44
|
processorIndex?: number;
|
|
@@ -49,6 +53,14 @@ export declare class ProcessorState<OUTPUT = undefined> {
|
|
|
49
53
|
*/
|
|
50
54
|
processor?: Pick<Processor, 'id' | 'spanType' | 'spanName' | 'spanAttributes'>;
|
|
51
55
|
} & Partial<ObservabilityContext>);
|
|
56
|
+
/**
|
|
57
|
+
* Opens the output stream span. A state can be created before there is a
|
|
58
|
+
* span to parent it (a data chunk sent before the first model step), so the
|
|
59
|
+
* runner calls this again once the stream has one. The state lives for the
|
|
60
|
+
* whole run, but each model step's stream ends the span when it closes, so
|
|
61
|
+
* the runner also opens a new one when a later step's chunks arrive.
|
|
62
|
+
*/
|
|
63
|
+
startSpan(options?: ConstructorParameters<typeof ProcessorState>[0]): void;
|
|
52
64
|
/** Track incoming chunk (before processor transformation) */
|
|
53
65
|
addInputPart(part: ChunkType<OUTPUT>): void;
|
|
54
66
|
/** Track outgoing chunk (after processor transformation) */
|