@mastra/core 1.87.0-alpha.20 → 1.87.0-alpha.22
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-sdk-v4@0.0.99/dist/index.d.ts +1 -1
- package/dist/_types/@internal_ai-sdk-v5@0.0.99/dist/index.d.ts +1 -1
- package/dist/_types/@internal_ai-v6@0.0.99/dist/index.d.ts +1 -1
- package/dist/_types/@internal_ai-v7@0.0.99/dist/index.d.ts +1 -1
- package/dist/_types/@internal_voice@0.0.48/dist/_types/@internal_ai-sdk-v5@0.0.99/dist/index.d.ts +1 -1
- 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 +2 -2
- package/dist/agent-controller/index.js +2 -2
- package/dist/{agent-controller-D2d_qiJr.js → agent-controller-WGML_NKp.js} +6 -6
- package/dist/{agent-controller-WTjY0HJM.cjs → agent-controller-mS3CgzwJ.cjs} +6 -6
- package/dist/background-tasks/index.cjs +1 -1
- package/dist/background-tasks/index.js +1 -1
- package/dist/{background-tasks-CgspqU_S.js → background-tasks-CbBbS-g3.js} +1 -1
- package/dist/{background-tasks-DJ6x1bn-.cjs → background-tasks-DEBc9BBP.cjs} +1 -1
- package/dist/browser/index.cjs +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/{builder-MymUxyDK.js → builder-BOIUFJTC.js} +2 -2
- package/dist/{builder-B2P49nT9.cjs → builder-DBori4UC.cjs} +2 -2
- package/dist/capabilities/302ai.json +196 -196
- 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 +12 -12
- package/dist/capabilities/adzuki.json +35 -35
- package/dist/capabilities/agentrouter.json +6 -6
- package/dist/capabilities/agnes.json +2 -2
- package/dist/capabilities/ai-router.json +9 -9
- package/dist/capabilities/aiand.json +13 -13
- package/dist/capabilities/aigrow.json +14 -14
- package/dist/capabilities/aimlapi.json +141 -141
- package/dist/capabilities/aipg.json +2 -2
- package/dist/capabilities/aixy.json +13 -13
- package/dist/capabilities/aki-io.json +12 -12
- package/dist/capabilities/alibaba-cn.json +101 -101
- 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 +51 -51
- package/dist/capabilities/alibaba-token-plan.json +48 -48
- package/dist/capabilities/alibaba.json +68 -68
- package/dist/capabilities/ambient.json +17 -17
- package/dist/capabilities/amd-tokenlab.json +5 -5
- package/dist/capabilities/amd.json +9 -9
- package/dist/capabilities/anthropic.json +45 -45
- package/dist/capabilities/anyapi.json +20 -20
- package/dist/capabilities/apiko.json +4 -4
- package/dist/capabilities/arcee.json +11 -11
- package/dist/capabilities/augure.json +6 -6
- package/dist/capabilities/auriko.json +17 -17
- package/dist/capabilities/bailing.json +5 -5
- package/dist/capabilities/baseten.json +27 -27
- package/dist/capabilities/bothub.json +12 -12
- package/dist/capabilities/boundless.json +37 -37
- package/dist/capabilities/bumo.json +39 -39
- package/dist/capabilities/byteplus.json +26 -26
- package/dist/capabilities/cheapaimodel.json +6 -6
- package/dist/capabilities/cheapest-token.json +29 -29
- package/dist/capabilities/chutes.json +29 -29
- package/dist/capabilities/cline-pass.json +34 -34
- package/dist/capabilities/cloudcode.json +6 -6
- package/dist/capabilities/cloudflare-workers-ai.json +15 -15
- package/dist/capabilities/commandcode.json +133 -133
- package/dist/capabilities/concentrate.json +276 -276
- package/dist/capabilities/cortecs.json +103 -103
- package/dist/capabilities/crossmodel.json +168 -168
- package/dist/capabilities/crusoe.json +14 -14
- package/dist/capabilities/daoxe.json +9 -9
- package/dist/capabilities/databricks.json +131 -131
- package/dist/capabilities/deepinfra.json +87 -87
- package/dist/capabilities/deepseek.json +4 -4
- package/dist/capabilities/digitalocean.json +115 -115
- package/dist/capabilities/dothoosh.json +30 -30
- package/dist/capabilities/doubleword.json +26 -26
- package/dist/capabilities/edenai.json +290 -281
- package/dist/capabilities/empiriolabs.json +174 -179
- package/dist/capabilities/engy.json +19 -19
- package/dist/capabilities/entrim.json +2 -2
- package/dist/capabilities/evroc.json +13 -13
- package/dist/capabilities/ezkielyna.json +13 -13
- package/dist/capabilities/fastrouter.json +81 -81
- package/dist/capabilities/fireworks-ai.json +103 -103
- package/dist/capabilities/fortytwo.json +4 -4
- package/dist/capabilities/freemodel.json +6 -6
- package/dist/capabilities/friendli.json +8 -8
- package/dist/capabilities/frogbot.json +97 -97
- package/dist/capabilities/gisoo.json +19 -19
- package/dist/capabilities/gmicloud.json +17 -17
- package/dist/capabilities/google.json +49 -49
- package/dist/capabilities/graphn.json +8 -8
- package/dist/capabilities/greenpt.json +35 -35
- package/dist/capabilities/groq.json +2 -2
- package/dist/capabilities/helicone.json +73 -73
- package/dist/capabilities/hetzner.json +2 -2
- package/dist/capabilities/hopper.json +2 -2
- package/dist/capabilities/hostinger-router.json +10 -10
- package/dist/capabilities/hpc-ai.json +4 -4
- package/dist/capabilities/huawei-maas.json +15 -15
- package/dist/capabilities/hubris.json +34 -34
- package/dist/capabilities/huggingface.json +79 -72
- package/dist/capabilities/humain.json +2 -2
- package/dist/capabilities/hyper.json +23 -23
- package/dist/capabilities/impossibl.json +129 -129
- package/dist/capabilities/inception.json +3 -3
- package/dist/capabilities/inceptron.json +2 -2
- package/dist/capabilities/inco.json +2 -2
- package/dist/capabilities/infer.json +14 -14
- package/dist/capabilities/inferall.json +5 -5
- package/dist/capabilities/inference-coop.json +12 -12
- package/dist/capabilities/inferenceapis.json +18 -18
- package/dist/capabilities/inferris.json +4 -4
- package/dist/capabilities/infersia.json +12 -12
- package/dist/capabilities/inferx.json +3 -3
- package/dist/capabilities/infomaniak.json +2 -2
- package/dist/capabilities/isoquant.json +4 -4
- package/dist/capabilities/iteracompute.json +38 -38
- package/dist/capabilities/jalapeno.json +11 -11
- package/dist/capabilities/jiekou.json +33 -33
- package/dist/capabilities/jzstoken.json +51 -51
- package/dist/capabilities/keln.json +16 -16
- package/dist/capabilities/kenari.json +131 -131
- package/dist/capabilities/kilo.json +615 -624
- package/dist/capabilities/kimchi.json +90 -0
- package/dist/capabilities/kimi-code-plan-cn.json +7 -7
- package/dist/capabilities/kimi-code-plan-global.json +7 -7
- package/dist/capabilities/klavo.json +21 -21
- package/dist/capabilities/korouter.json +32 -32
- package/dist/capabilities/kunavo.json +10 -10
- package/dist/capabilities/liquid.json +7 -7
- package/dist/capabilities/llmgateway-providers.json +924 -917
- package/dist/capabilities/llmgateway.json +347 -341
- package/dist/capabilities/llmtr.json +22 -22
- package/dist/capabilities/logits.json +2 -2
- package/dist/capabilities/longcat.json +2 -2
- package/dist/capabilities/lowrouter.json +49 -49
- package/dist/capabilities/lyceum.json +14 -14
- package/dist/capabilities/melious.json +12 -12
- package/dist/capabilities/merge-gateway.json +274 -266
- package/dist/capabilities/meta.json +6 -6
- 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 +15 -15
- package/dist/capabilities/mixlayer.json +5 -5
- package/dist/capabilities/modal.json +8 -8
- package/dist/capabilities/model-oracle-ai.json +25 -25
- package/dist/capabilities/modelis.json +18 -18
- package/dist/capabilities/modular.json +10 -10
- package/dist/capabilities/moneo.json +5 -5
- package/dist/capabilities/moonshotai-cn.json +6 -6
- package/dist/capabilities/moonshotai.json +6 -6
- package/dist/capabilities/morph.json +22 -14
- package/dist/capabilities/munito-eu.json +8 -8
- package/dist/capabilities/munito.json +8 -8
- package/dist/capabilities/nan.json +27 -27
- package/dist/capabilities/nano-gpt.json +568 -568
- package/dist/capabilities/nearai.json +85 -85
- package/dist/capabilities/nebius.json +28 -28
- package/dist/capabilities/neon.json +132 -132
- package/dist/capabilities/neuralwatt.json +40 -40
- package/dist/capabilities/nokeep.json +2 -2
- package/dist/capabilities/novita-ai.json +135 -135
- package/dist/capabilities/nvidia.json +13 -13
- package/dist/capabilities/oathbreaker.json +5 -5
- package/dist/capabilities/obscurify.json +19 -19
- package/dist/capabilities/oci.json +7 -7
- package/dist/capabilities/ofox.json +209 -209
- package/dist/capabilities/ollama-cloud.json +55 -55
- package/dist/capabilities/openai.json +60 -60
- package/dist/capabilities/opencode-go.json +91 -91
- package/dist/capabilities/openreason.json +4 -4
- package/dist/capabilities/openrouter.json +502 -511
- package/dist/capabilities/opper.json +25 -25
- package/dist/capabilities/orcarouter.json +266 -266
- package/dist/capabilities/outerlabs.json +27 -27
- package/dist/capabilities/ovhcloud.json +20 -20
- package/dist/capabilities/perplexity-agent.json +132 -42
- package/dist/capabilities/perplexity.json +2 -2
- package/dist/capabilities/phala.json +35 -35
- package/dist/capabilities/poe.json +108 -108
- package/dist/capabilities/poolside.json +2 -2
- package/dist/capabilities/powerspring.json +11 -11
- package/dist/capabilities/primalabs.json +14 -14
- package/dist/capabilities/prime.json +121 -121
- package/dist/capabilities/privatemode-ai.json +7 -7
- package/dist/capabilities/proxystacks.json +6 -6
- package/dist/capabilities/qiniu-ai.json +12 -12
- package/dist/capabilities/refuseless.json +6 -6
- package/dist/capabilities/regolo-ai.json +9 -9
- package/dist/capabilities/requesty.json +202 -202
- package/dist/capabilities/ruapi.json +23 -23
- package/dist/capabilities/runcrate.json +4 -4
- package/dist/capabilities/runinfra.json +13 -13
- package/dist/capabilities/sakana.json +5 -5
- package/dist/capabilities/sambanova.json +9 -9
- package/dist/capabilities/sandbase.json +4 -4
- package/dist/capabilities/sarvam.json +9 -9
- package/dist/capabilities/scaleway.json +15 -15
- package/dist/capabilities/scnet-token-plan.json +12 -12
- package/dist/capabilities/scx-ai.json +26 -26
- package/dist/capabilities/sensenova.json +14 -14
- package/dist/capabilities/siliconflow-cn.json +45 -45
- package/dist/capabilities/siliconflow.json +50 -50
- package/dist/capabilities/snowflake-cortex.json +24 -24
- package/dist/capabilities/sokkan.json +2 -2
- package/dist/capabilities/sparrowcodes.json +20 -20
- package/dist/capabilities/standardcompute.json +80 -80
- package/dist/capabilities/steadyrouter.json +43 -43
- package/dist/capabilities/stepfun-ai-step-plan.json +9 -9
- package/dist/capabilities/stepfun-ai.json +9 -9
- package/dist/capabilities/stepfun-step-plan.json +9 -9
- package/dist/capabilities/stepfun.json +9 -9
- package/dist/capabilities/stepping-stone.json +18 -18
- package/dist/capabilities/superbot-gg.json +4 -4
- package/dist/capabilities/synthetic.json +10 -10
- package/dist/capabilities/synthorai.json +20 -20
- package/dist/capabilities/teamorouter.json +25 -25
- package/dist/capabilities/teapot-router.json +14 -14
- package/dist/capabilities/tencent-token-plan-intl.json +22 -22
- package/dist/capabilities/tencent-token-plan.json +40 -40
- package/dist/capabilities/tencent-tokenhub.json +47 -47
- package/dist/capabilities/tensorx.json +48 -48
- package/dist/capabilities/tenstorrent.json +6 -6
- package/dist/capabilities/the-grid-ai.json +24 -24
- package/dist/capabilities/thinkingmachines.json +72 -72
- package/dist/capabilities/tinfoil.json +8 -8
- package/dist/capabilities/toapis.json +2 -2
- package/dist/capabilities/togetherai.json +48 -48
- package/dist/capabilities/tokengo.json +15 -15
- package/dist/capabilities/tokenharbor.json +738 -0
- package/dist/capabilities/tokenify.json +8 -8
- package/dist/capabilities/trustedrouter.json +6 -6
- package/dist/capabilities/trustedtokens.json +17 -17
- package/dist/capabilities/umans-ai-coding-plan.json +13 -13
- package/dist/capabilities/umans-ai.json +10 -10
- package/dist/capabilities/uncensuredai.json +5 -5
- package/dist/capabilities/unrestricted.json +6 -6
- package/dist/capabilities/uplinkswitch.json +22 -22
- package/dist/capabilities/upstage.json +2 -2
- package/dist/capabilities/vancine.json +24 -24
- package/dist/capabilities/vercel.json +576 -577
- package/dist/capabilities/verda.json +4 -4
- package/dist/capabilities/vivgrid.json +56 -56
- package/dist/capabilities/volcengine-coding-plan.json +26 -26
- package/dist/capabilities/volcengine.json +26 -26
- package/dist/capabilities/vultr.json +19 -19
- package/dist/capabilities/wafer.ai.json +19 -19
- package/dist/capabilities/wallaby.json +4 -4
- package/dist/capabilities/wally.json +13 -13
- package/dist/capabilities/wandb.json +19 -19
- package/dist/capabilities/watt.json +24 -24
- package/dist/capabilities/xai.json +6 -6
- 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 +12 -12
- package/dist/capabilities/xxapi.json +31 -31
- package/dist/capabilities/zai-coding-plan.json +17 -17
- package/dist/capabilities/zai.json +36 -27
- package/dist/capabilities/zenifra.json +26 -26
- package/dist/capabilities/zenmux.json +165 -165
- package/dist/capabilities/zerogpu.json +9 -9
- package/dist/capabilities/zhipuai-coding-plan.json +2 -2
- package/dist/capabilities/zhipuai.json +43 -27
- package/dist/capabilities/zro.json +6 -6
- package/dist/channels/index.cjs +2 -2
- package/dist/channels/index.js +2 -2
- package/dist/{channels-nnBeh58G.js → channels-BwOQwN3M.js} +1 -1
- package/dist/{channels-CKRPQRmF.cjs → channels-DrLMv8qW.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 +511 -511
- package/dist/docs/references/docs-agents-tools.md +2 -2
- package/dist/docs/references/docs-memory-message-history.md +2 -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/{execution-fence-CKFtgb2u.cjs → execution-fence-C-wa17Wr.cjs} +11 -11
- package/dist/{execution-fence-DTrAehtv.js → execution-fence-DvN3Fwm3.js} +11 -11
- 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/mastra-gateway-provider-tools.d.ts +7 -0
- package/dist/llm/model/provider-types.generated.d.ts +7042 -6917
- package/dist/{llm-P6sWWNc6.cjs → llm-dX0y0atH.cjs} +4 -2
- package/dist/{llm-B6EYEbYf.js → llm-hWZGKDUy.js} +4 -2
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +2 -2
- package/dist/{manager-BvnXZAFj.js → manager-9pUbVmmS.js} +2 -2
- package/dist/{manager-tQrH4_MZ.cjs → manager-CUoAGxcN.cjs} +2 -2
- package/dist/mastra/index.cjs +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/{mastra-CtL0diD6.cjs → mastra-B6Fw2ZIW.cjs} +16 -16
- package/dist/{mastra-BhPympcg.js → mastra-CliUSn4-.js} +16 -16
- package/dist/mastra-gateway-provider-tools-C-AjGZis.js +58 -0
- package/dist/mastra-gateway-provider-tools-WpH3Tmu4.cjs +81 -0
- package/dist/memory/index.cjs +2 -2
- package/dist/memory/index.js +2 -2
- package/dist/{model-D2XwLRQi.js → model-CAp-mgCd.js} +1 -1
- package/dist/{model-Cy0Z_3FQ.cjs → model-DEnu3A8A.cjs} +1 -1
- package/dist/{netlify-DgHrsLpJ.cjs → netlify-BMhDN9E8.cjs} +1 -1
- package/dist/{netlify-d2fyniAS.js → netlify-xMA06xL8.js} +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/{provider-registry-Brcz84P1.cjs → provider-registry-CcMAUHdH.cjs} +21341 -21112
- package/dist/{provider-registry-B9UP28b4.js → provider-registry-DsK3rXeU.js} +21340 -21111
- package/dist/provider-registry.json +20759 -20491
- package/dist/{registry-generator-BDZrKvMb.js → registry-generator-CXDt3yuY.js} +1 -1
- package/dist/{registry-generator-DSvbAYar.cjs → registry-generator-DRFJTQ2Q.cjs} +1 -1
- package/dist/{rehydrate-Cme19iOk.js → rehydrate-C_fSTYcV.js} +2 -2
- package/dist/{rehydrate-vAlkgCKL.cjs → rehydrate-DNf3nk5t.cjs} +2 -2
- package/dist/relevance/index.cjs +2 -2
- package/dist/relevance/index.js +2 -2
- 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-B9y9VYqr.cjs → stream-BKEfY3-X.cjs} +1 -1
- package/dist/{stream-DSVk0bct.js → stream-CyaGm-DI.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-e2Bi-mrf.js → tool-loop-agent-BYrNEcU_.js} +3 -3
- package/dist/{tool-loop-agent-C3wj9NhP.cjs → tool-loop-agent-Du3Vm65W.cjs} +3 -3
- package/dist/tools/builtin/web-search.d.ts +8 -0
- package/dist/tools/index.cjs +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/{tools-C2q0ougI.cjs → tools-DZoVfKPl.cjs} +42 -17
- package/dist/{tools-ybbz1YKg.js → tools-FwJyNoyg.js} +41 -10
- package/dist/{utils-B87rm4F-.cjs → utils-Ag63fN_T.cjs} +1 -1
- package/dist/{utils-DCDsj1CG.js → utils-Dl5BqcZO.js} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/{validate-_e8OoEh5.js → validate-CYqPJX3z.js} +1 -1
- package/dist/{validate-XPZLQRoc.cjs → validate-bRsKfPrD.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-DzMDk--h.cjs → worker-DPjo5pv_.cjs} +2 -2
- package/dist/{worker-CGWclXz3.cjs → worker-Dvt_y5ra.cjs} +2 -2
- package/dist/{worker-DvI9J9Qw.js → worker-RbY0GNay.js} +2 -2
- package/dist/{worker-BAstsOqw.js → worker-oSqtPcV6.js} +2 -2
- package/dist/{workflow-BFF2mNDa.cjs → workflow-B6Xdy2Ck.cjs} +3 -3
- package/dist/{workflow-DcpI9eNC.js → workflow-X6iwBizX.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 +3 -3
- package/src/llm/model/provider-types.generated.d.ts +7042 -6917
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
|
|
2
|
-
const require_netlify = require("./netlify-
|
|
2
|
+
const require_netlify = require("./netlify-BMhDN9E8.cjs");
|
|
3
3
|
const require_model = require("./model-jBymoqGa.cjs");
|
|
4
4
|
const require_to_prompt = require("./to-prompt-CG-LyaBY.cjs");
|
|
5
|
+
const require_mastra_gateway_provider_tools = require("./mastra-gateway-provider-tools-WpH3Tmu4.cjs");
|
|
5
6
|
const require_content = require("./content-CC0W1d5p.cjs");
|
|
6
|
-
const require_provider_registry = require("./provider-registry-
|
|
7
|
+
const require_provider_registry = require("./provider-registry-CcMAUHdH.cjs");
|
|
7
8
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
8
9
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
9
10
|
const require_dynamic_argument = require("./dynamic-argument-CUc1BBOS.cjs");
|
|
@@ -116,6 +117,7 @@ var AISDKV6LanguageModel = class {
|
|
|
116
117
|
this.provider = this.#model.provider;
|
|
117
118
|
this.modelId = this.#model.modelId;
|
|
118
119
|
this.supportedUrls = this.#model.supportedUrls;
|
|
120
|
+
if (require_mastra_gateway_provider_tools.isMastraGatewayChatModel(config)) require_mastra_gateway_provider_tools.markMastraGatewayChatModel(this);
|
|
119
121
|
const supportsStructuredOutputs = config.supportsStructuredOutputs;
|
|
120
122
|
if (typeof supportsStructuredOutputs === "boolean") this.supportsStructuredOutputs = supportsStructuredOutputs;
|
|
121
123
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { C as createOpenAICompatible, S as createOpenAI, _ as hasAuthCredentials, a as interpolateUrlTemplate, b as MASTRA_GATEWAY_STREAM_TRANSPORT, c as parseModelRouterId, f as MASTRA_USER_AGENT, g as getGatewayId, h as findGatewayForModel, l as createOpenAI$1, o as applyOpencodeCallTimeSessionHeader, r as ModelsDevGateway, s as applyOpencodeSessionHeader, t as NetlifyGateway, u as createGoogleGenerativeAI, v as shouldEnableGateway, w as EventSourceParserStream, x as MastraModelGateway } from "./netlify-
|
|
1
|
+
import { C as createOpenAICompatible, S as createOpenAI, _ as hasAuthCredentials, a as interpolateUrlTemplate, b as MASTRA_GATEWAY_STREAM_TRANSPORT, c as parseModelRouterId, f as MASTRA_USER_AGENT, g as getGatewayId, h as findGatewayForModel, l as createOpenAI$1, o as applyOpencodeCallTimeSessionHeader, r as ModelsDevGateway, s as applyOpencodeSessionHeader, t as NetlifyGateway, u as createGoogleGenerativeAI, v as shouldEnableGateway, w as EventSourceParserStream, x as MastraModelGateway } from "./netlify-xMA06xL8.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
|
+
import { n as isMastraGatewayChatModel, r as markMastraGatewayChatModel } from "./mastra-gateway-provider-tools-C-AjGZis.js";
|
|
4
5
|
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-
|
|
6
|
+
import { f as MastraGateway, l as modelSupportsTemperature, n as PROVIDER_REGISTRY, p as gatewayServesObservationalMemory, t as GatewayRegistry } from "./provider-registry-DsK3rXeU.js";
|
|
6
7
|
import { i as MastraError } from "./error-oh2DLsP2.js";
|
|
7
8
|
import { u as RequestContext } from "./request-context-COnZHt2-.js";
|
|
8
9
|
import { n as resolveDynamicArgument } from "./dynamic-argument-BzPK3qPN.js";
|
|
@@ -114,6 +115,7 @@ var AISDKV6LanguageModel = class {
|
|
|
114
115
|
this.provider = this.#model.provider;
|
|
115
116
|
this.modelId = this.#model.modelId;
|
|
116
117
|
this.supportedUrls = this.#model.supportedUrls;
|
|
118
|
+
if (isMastraGatewayChatModel(config)) markMastraGatewayChatModel(this);
|
|
117
119
|
const supportsStructuredOutputs = config.supportsStructuredOutputs;
|
|
118
120
|
if (typeof supportsStructuredOutputs === "boolean") this.supportsStructuredOutputs = supportsStructuredOutputs;
|
|
119
121
|
}
|
package/dist/loop/index.cjs
CHANGED
|
@@ -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-BKEfY3-X.cjs");
|
|
3
|
+
const require_execution_fence = require("../execution-fence-C-wa17Wr.cjs");
|
|
4
4
|
exports.MastraTimeoutError = require_stream.MastraTimeoutError;
|
|
5
5
|
exports.createScorer = require_execution_fence.createScorer;
|
|
6
6
|
exports.createTimeoutAbortSignal = require_stream.createTimeoutAbortSignal;
|
package/dist/loop/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { An as isMastraTimeoutError, En as createTimeoutAbortSignal, Tn as MastraTimeoutError } from "../stream-
|
|
2
|
-
import { At as runDefaultCompletionCheck, Ct as formatCompletionFeedback, Dt as generateStructuredFinalResult, Et as generateFinalResult, Mt as runValidation, Nt as loop, Ot as runChecks, St as formatCheckFeedback, Tt as formatValidationFeedback, h as createScorer, jt as runStreamCompletionScorers, kt as runCompletionScorers, wt as formatStreamCompletionFeedback } from "../execution-fence-
|
|
1
|
+
import { An as isMastraTimeoutError, En as createTimeoutAbortSignal, Tn as MastraTimeoutError } from "../stream-CyaGm-DI.js";
|
|
2
|
+
import { At as runDefaultCompletionCheck, Ct as formatCompletionFeedback, Dt as generateStructuredFinalResult, Et as generateFinalResult, Mt as runValidation, Nt as loop, Ot as runChecks, St as formatCheckFeedback, Tt as formatValidationFeedback, h as createScorer, jt as runStreamCompletionScorers, kt as runCompletionScorers, wt as formatStreamCompletionFeedback } from "../execution-fence-DvN3Fwm3.js";
|
|
3
3
|
export { MastraTimeoutError, createScorer, createTimeoutAbortSignal, formatCheckFeedback, formatCompletionFeedback, formatStreamCompletionFeedback, formatValidationFeedback, generateFinalResult, generateStructuredFinalResult, isMastraTimeoutError, loop, runChecks, runCompletionScorers, runDefaultCompletionCheck, runStreamCompletionScorers, runValidation };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-tIEjjQTE.js";
|
|
2
2
|
import { i as MastraError } from "./error-oh2DLsP2.js";
|
|
3
|
-
import { ft as loadStepResults, un as isSupportedLanguageModel } from "./stream-
|
|
4
|
-
import { Ki as assertSupportedPatterns, Ns as createStep, Ps as createWorkflow, d as validateAndSaveScore, l as flushBeforeTraceRead, m as ScorerRunError } from "./execution-fence-
|
|
3
|
+
import { ft as loadStepResults, un as isSupportedLanguageModel } from "./stream-CyaGm-DI.js";
|
|
4
|
+
import { Ki as assertSupportedPatterns, Ns as createStep, Ps as createWorkflow, d as validateAndSaveScore, l as flushBeforeTraceRead, m as ScorerRunError } from "./execution-fence-DvN3Fwm3.js";
|
|
5
5
|
import { o as MASTRA_RESOURCE_ID_KEY, p as withoutLiveRequestKeys, u as RequestContext } from "./request-context-COnZHt2-.js";
|
|
6
6
|
import { _ as resolveObservabilityContext } from "./observability-DPDWibyH.js";
|
|
7
7
|
import { t as EntityType } from "./storage-Cc50aQAp.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
|
|
2
2
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
3
|
-
const require_stream = require("./stream-
|
|
4
|
-
const require_execution_fence = require("./execution-fence-
|
|
3
|
+
const require_stream = require("./stream-BKEfY3-X.cjs");
|
|
4
|
+
const require_execution_fence = require("./execution-fence-C-wa17Wr.cjs");
|
|
5
5
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
6
6
|
const require_observability = require("./observability-VaoaeadK.cjs");
|
|
7
7
|
const require_storage = require("./storage-CfG0I2aF.cjs");
|
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-CliUSn4-.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const require_execution_fence = require("./execution-fence-
|
|
2
|
-
const require_background_tasks = require("./background-tasks-
|
|
1
|
+
const require_execution_fence = require("./execution-fence-C-wa17Wr.cjs");
|
|
2
|
+
const require_background_tasks = require("./background-tasks-DEBc9BBP.cjs");
|
|
3
3
|
const require_inmemory = require("./inmemory-Dc86VWGB.cjs");
|
|
4
|
-
const require_manager = require("./manager-
|
|
4
|
+
const require_manager = require("./manager-CUoAGxcN.cjs");
|
|
5
5
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
6
6
|
const require_output_helpers = require("./output-helpers-By5FbLpp.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-BMhDN9E8.cjs");
|
|
10
|
+
const require_llm = require("./llm-dX0y0atH.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");
|
|
@@ -17,14 +17,14 @@ const require_utils = require("./utils-D-eNsgDM.cjs");
|
|
|
17
17
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
18
18
|
const require_source = require("./source-C_nWbqI0.cjs");
|
|
19
19
|
const require_feature_telemetry = require("./feature-telemetry-Cw0L1tHo.cjs");
|
|
20
|
-
const require_tool_loop_agent = require("./tool-loop-agent-
|
|
20
|
+
const require_tool_loop_agent = require("./tool-loop-agent-Du3Vm65W.cjs");
|
|
21
21
|
const require_payload_transform = require("./payload-transform-CWgnsO9w.cjs");
|
|
22
|
-
const require_utils$1 = require("./utils-
|
|
23
|
-
const require_worker = require("./worker-
|
|
24
|
-
const require_builder = require("./builder-
|
|
25
|
-
const require_validate = require("./validate-
|
|
26
|
-
const require_rehydrate = require("./rehydrate-
|
|
27
|
-
const require_stream = require("./stream-
|
|
22
|
+
const require_utils$1 = require("./utils-Ag63fN_T.cjs");
|
|
23
|
+
const require_worker = require("./worker-Dvt_y5ra.cjs");
|
|
24
|
+
const require_builder = require("./builder-DBori4UC.cjs");
|
|
25
|
+
const require_validate = require("./validate-bRsKfPrD.cjs");
|
|
26
|
+
const require_rehydrate = require("./rehydrate-DNf3nk5t.cjs");
|
|
27
|
+
const require_stream = require("./stream-BKEfY3-X.cjs");
|
|
28
28
|
let zod_v4 = require("zod/v4");
|
|
29
29
|
// src/notifications/workflow.ts
|
|
30
30
|
const NOTIFICATION_DISPATCH_WORKFLOW_ID = "__mastra_notification_dispatcher";
|
|
@@ -2874,7 +2874,7 @@ var Mastra = class Mastra {
|
|
|
2874
2874
|
*/
|
|
2875
2875
|
async __ensureExperimentWorkflow() {
|
|
2876
2876
|
if (this.__hasInternalWorkflow("__mastra-experiment")) return;
|
|
2877
|
-
const { buildExperimentWorkflow } = await Promise.resolve().then(() => require("./manager-
|
|
2877
|
+
const { buildExperimentWorkflow } = await Promise.resolve().then(() => require("./manager-CUoAGxcN.cjs")).then((n) => n.workflow_exports);
|
|
2878
2878
|
if (this.__hasInternalWorkflow("__mastra-experiment")) return;
|
|
2879
2879
|
this.__registerInternalWorkflow(buildExperimentWorkflow(), void 0, { distributed: true });
|
|
2880
2880
|
}
|
|
@@ -5075,7 +5075,7 @@ var Mastra = class Mastra {
|
|
|
5075
5075
|
if (!this.#workerFilter || this.#workerFilter.has("agent-schedule")) {
|
|
5076
5076
|
let agentScheduleWorker = this.#findAgentScheduleWorker();
|
|
5077
5077
|
if (!agentScheduleWorker) {
|
|
5078
|
-
const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-
|
|
5078
|
+
const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-DPjo5pv_.cjs"));
|
|
5079
5079
|
agentScheduleWorker = new AgentScheduleWorker();
|
|
5080
5080
|
agentScheduleWorker.__registerMastra(this);
|
|
5081
5081
|
this.#workers.push(agentScheduleWorker);
|
|
@@ -5760,7 +5760,7 @@ var Mastra = class Mastra {
|
|
|
5760
5760
|
this.#workers.push(sw);
|
|
5761
5761
|
}
|
|
5762
5762
|
if (!this.#findAgentScheduleWorker()) {
|
|
5763
|
-
const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-
|
|
5763
|
+
const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-DPjo5pv_.cjs"));
|
|
5764
5764
|
const asw = new AgentScheduleWorker();
|
|
5765
5765
|
asw.__registerMastra(this);
|
|
5766
5766
|
this.#workers.push(asw);
|
|
@@ -6210,7 +6210,7 @@ var Mastra = class Mastra {
|
|
|
6210
6210
|
#syncGatewayRegistry() {
|
|
6211
6211
|
try {
|
|
6212
6212
|
if (process.env.MASTRA_DEV !== "true" && process.env.MASTRA_DEV !== "1") return;
|
|
6213
|
-
Promise.resolve().then(() => require("./provider-registry-
|
|
6213
|
+
Promise.resolve().then(() => require("./provider-registry-CcMAUHdH.cjs")).then((n) => n.provider_registry_exports).then(async ({ GatewayRegistry }) => {
|
|
6214
6214
|
const registry = GatewayRegistry.getInstance();
|
|
6215
6215
|
const customGateways = Object.values(this.#gateways || {});
|
|
6216
6216
|
registry.registerCustomGateways(customGateways);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { $c as createConcurrencyLimiter, Bc as createNestedRunParentStatusLookup, Bl as hasDurableExecution, Fo as getStorageSource, Fs as WorkflowEventProcessor, Hc as nestedRunRecoveryAction, Hl as isDurableAgentLike, Jc as WORKFLOW_RUN_LEASE_TTL_MS, Ll as assertDrainTimeout, Lr as dispatchDueNotifications, Ls as computeScheduleDefinitionHash, Ns as createStep, Po as augmentWithInit, Ps as createWorkflow, Rl as waitMs, Uc as nestedRunStatusOf, Vc as nestedRunParentOf, Xc as repeatAfterSettled, Yc as renewWorkflowLease, Zc as runFenceConflictOf, br as WorkflowsInMemory, bu as runOutsideRunFenceScope, el as normalizeConcurrency, i as agentThreadStreamRuntime, mt as __registerMastraCtor, n as getExecutionClaimScope, na as BackgroundTasksInMemory, oc as getActiveDurableAgentWorkflowExecutions, rc as abandonDurableAgentExecutions, sc as getExecutingInstances, tl as runWithConcurrency, u as createOnScorerHook, uc as isDurableAgentExecutionDetached, vr as InMemoryStore, yn as AgentChannels, zc as cancelNestedRun } from "./execution-fence-
|
|
2
|
-
import { l as BackgroundTaskManager } from "./background-tasks-
|
|
1
|
+
import { $c as createConcurrencyLimiter, Bc as createNestedRunParentStatusLookup, Bl as hasDurableExecution, Fo as getStorageSource, Fs as WorkflowEventProcessor, Hc as nestedRunRecoveryAction, Hl as isDurableAgentLike, Jc as WORKFLOW_RUN_LEASE_TTL_MS, Ll as assertDrainTimeout, Lr as dispatchDueNotifications, Ls as computeScheduleDefinitionHash, Ns as createStep, Po as augmentWithInit, Ps as createWorkflow, Rl as waitMs, Uc as nestedRunStatusOf, Vc as nestedRunParentOf, Xc as repeatAfterSettled, Yc as renewWorkflowLease, Zc as runFenceConflictOf, br as WorkflowsInMemory, bu as runOutsideRunFenceScope, el as normalizeConcurrency, i as agentThreadStreamRuntime, mt as __registerMastraCtor, n as getExecutionClaimScope, na as BackgroundTasksInMemory, oc as getActiveDurableAgentWorkflowExecutions, rc as abandonDurableAgentExecutions, sc as getExecutingInstances, tl as runWithConcurrency, u as createOnScorerHook, uc as isDurableAgentExecutionDetached, vr as InMemoryStore, yn as AgentChannels, zc as cancelNestedRun } from "./execution-fence-DvN3Fwm3.js";
|
|
2
|
+
import { l as BackgroundTaskManager } from "./background-tasks-CbBbS-g3.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-9pUbVmmS.js";
|
|
5
5
|
import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "./error-oh2DLsP2.js";
|
|
6
6
|
import { d as isRunLocalTopic, v as EventEmitterPubSub } from "./output-helpers-k2-48ssH.js";
|
|
7
7
|
import { a as registerHook, r as deregisterHook } from "./hooks-Bth8Cjpj.js";
|
|
8
8
|
import { LicenseClient } from "./license/index.js";
|
|
9
|
-
import { g as getGatewayId } from "./netlify-
|
|
10
|
-
import { l as defaultGateways } from "./llm-
|
|
9
|
+
import { g as getGatewayId } from "./netlify-xMA06xL8.js";
|
|
10
|
+
import { l as defaultGateways } from "./llm-hWZGKDUy.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";
|
|
@@ -17,14 +17,14 @@ import { f as resolveCurrentSpan } from "./utils-DU_pU5SK.js";
|
|
|
17
17
|
import { u as RequestContext } from "./request-context-COnZHt2-.js";
|
|
18
18
|
import { r as InMemoryDB } from "./source-B3He4_mz.js";
|
|
19
19
|
import { r as trackFeatureUsage } from "./feature-telemetry-DdR8J_5o.js";
|
|
20
|
-
import { r as isToolLoopAgentLike, t as toolLoopAgentToMastraAgent } from "./tool-loop-agent-
|
|
20
|
+
import { r as isToolLoopAgentLike, t as toolLoopAgentToMastraAgent } from "./tool-loop-agent-BYrNEcU_.js";
|
|
21
21
|
import { r as normalizeToolPayloadTransformPolicy } from "./payload-transform-Dj3HUeD4.js";
|
|
22
|
-
import { v as readPositiveIntEnv } from "./utils-
|
|
23
|
-
import { a as OrchestrationWorker, i as ORCHESTRATION_GROUP, n as BackgroundTaskWorker, r as SchedulerWorker } from "./worker-
|
|
24
|
-
import { n as normalizeWorkflowBuilderDefinition } from "./builder-
|
|
25
|
-
import { d as toJsonSchemaOrUndefined, p as collectNestedWorkflowIds, t as assertValidDynamicWorkflow } from "./validate-
|
|
26
|
-
import { t as rehydrateWorkflow } from "./rehydrate-
|
|
27
|
-
import { Rn as createRunScope } from "./stream-
|
|
22
|
+
import { v as readPositiveIntEnv } from "./utils-Dl5BqcZO.js";
|
|
23
|
+
import { a as OrchestrationWorker, i as ORCHESTRATION_GROUP, n as BackgroundTaskWorker, r as SchedulerWorker } from "./worker-oSqtPcV6.js";
|
|
24
|
+
import { n as normalizeWorkflowBuilderDefinition } from "./builder-BOIUFJTC.js";
|
|
25
|
+
import { d as toJsonSchemaOrUndefined, p as collectNestedWorkflowIds, t as assertValidDynamicWorkflow } from "./validate-CYqPJX3z.js";
|
|
26
|
+
import { t as rehydrateWorkflow } from "./rehydrate-C_fSTYcV.js";
|
|
27
|
+
import { Rn as createRunScope } from "./stream-CyaGm-DI.js";
|
|
28
28
|
import { z } from "zod/v4";
|
|
29
29
|
// src/notifications/workflow.ts
|
|
30
30
|
const NOTIFICATION_DISPATCH_WORKFLOW_ID = "__mastra_notification_dispatcher";
|
|
@@ -2874,7 +2874,7 @@ var Mastra = class Mastra {
|
|
|
2874
2874
|
*/
|
|
2875
2875
|
async __ensureExperimentWorkflow() {
|
|
2876
2876
|
if (this.__hasInternalWorkflow("__mastra-experiment")) return;
|
|
2877
|
-
const { buildExperimentWorkflow } = await import("./manager-
|
|
2877
|
+
const { buildExperimentWorkflow } = await import("./manager-9pUbVmmS.js").then((n) => n.b);
|
|
2878
2878
|
if (this.__hasInternalWorkflow("__mastra-experiment")) return;
|
|
2879
2879
|
this.__registerInternalWorkflow(buildExperimentWorkflow(), void 0, { distributed: true });
|
|
2880
2880
|
}
|
|
@@ -5075,7 +5075,7 @@ var Mastra = class Mastra {
|
|
|
5075
5075
|
if (!this.#workerFilter || this.#workerFilter.has("agent-schedule")) {
|
|
5076
5076
|
let agentScheduleWorker = this.#findAgentScheduleWorker();
|
|
5077
5077
|
if (!agentScheduleWorker) {
|
|
5078
|
-
const { AgentScheduleWorker } = await import("./worker-
|
|
5078
|
+
const { AgentScheduleWorker } = await import("./worker-RbY0GNay.js");
|
|
5079
5079
|
agentScheduleWorker = new AgentScheduleWorker();
|
|
5080
5080
|
agentScheduleWorker.__registerMastra(this);
|
|
5081
5081
|
this.#workers.push(agentScheduleWorker);
|
|
@@ -5760,7 +5760,7 @@ var Mastra = class Mastra {
|
|
|
5760
5760
|
this.#workers.push(sw);
|
|
5761
5761
|
}
|
|
5762
5762
|
if (!this.#findAgentScheduleWorker()) {
|
|
5763
|
-
const { AgentScheduleWorker } = await import("./worker-
|
|
5763
|
+
const { AgentScheduleWorker } = await import("./worker-RbY0GNay.js");
|
|
5764
5764
|
const asw = new AgentScheduleWorker();
|
|
5765
5765
|
asw.__registerMastra(this);
|
|
5766
5766
|
this.#workers.push(asw);
|
|
@@ -6210,7 +6210,7 @@ var Mastra = class Mastra {
|
|
|
6210
6210
|
#syncGatewayRegistry() {
|
|
6211
6211
|
try {
|
|
6212
6212
|
if (process.env.MASTRA_DEV !== "true" && process.env.MASTRA_DEV !== "1") return;
|
|
6213
|
-
import("./provider-registry-
|
|
6213
|
+
import("./provider-registry-DsK3rXeU.js").then((n) => n.d).then(async ({ GatewayRegistry }) => {
|
|
6214
6214
|
const registry = GatewayRegistry.getInstance();
|
|
6215
6215
|
const customGateways = Object.values(this.#gateways || {});
|
|
6216
6216
|
registry.registerCustomGateways(customGateways);
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "./error-oh2DLsP2.js";
|
|
2
|
+
// src/llm/model/mastra-gateway-provider-tools.ts
|
|
3
|
+
const OPENROUTER_WEB_SEARCH_TOOL_ID = "openrouter.web_search";
|
|
4
|
+
const MASTRA_GATEWAY_CHAT_MODEL = Symbol.for("mastra.gateway.chatModel");
|
|
5
|
+
/**
|
|
6
|
+
* Marks a model whose requests go to the Mastra gateway's chat endpoint. Such a model reports
|
|
7
|
+
* `openrouter` as its provider, so the mark is how callers know its tools are gateway tools.
|
|
8
|
+
*/
|
|
9
|
+
function markMastraGatewayChatModel(model) {
|
|
10
|
+
Object.defineProperty(model, MASTRA_GATEWAY_CHAT_MODEL, { value: true });
|
|
11
|
+
return model;
|
|
12
|
+
}
|
|
13
|
+
function isMastraGatewayChatModel(model) {
|
|
14
|
+
return typeof model === "object" && model !== null && model[MASTRA_GATEWAY_CHAT_MODEL] === true;
|
|
15
|
+
}
|
|
16
|
+
const NATIVE_WEB_SEARCH_TOOL_IDS = {
|
|
17
|
+
"openai.web_search": true,
|
|
18
|
+
"anthropic.web_search_20250305": true,
|
|
19
|
+
"google.google_search": true,
|
|
20
|
+
"xai.web_search": true
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* The Mastra gateway's chat endpoint only runs `openrouter:*` server tools. Another provider's
|
|
24
|
+
* native tool is rejected with a 400 (OpenAI, xAI models) or dropped without an error (Anthropic,
|
|
25
|
+
* Google models), so the model silently loses the tool.
|
|
26
|
+
*
|
|
27
|
+
* A native web search tool with no arguments is swapped for the gateway's web search, which works
|
|
28
|
+
* for every tool-calling model. Any other native tool fails here with an actionable message.
|
|
29
|
+
*/
|
|
30
|
+
function prepareToolsForMastraGateway(options, routerId) {
|
|
31
|
+
const isProviderTool = (tool) => tool.type === "provider-defined" || tool.type === "provider";
|
|
32
|
+
if (!options.tools?.some(isProviderTool)) return options;
|
|
33
|
+
const tools = options.tools.map((tool) => {
|
|
34
|
+
if (!isProviderTool(tool)) return tool;
|
|
35
|
+
const { id, args } = tool;
|
|
36
|
+
if (id.startsWith("openrouter.")) return tool;
|
|
37
|
+
const isWebSearch = id in NATIVE_WEB_SEARCH_TOOL_IDS;
|
|
38
|
+
if (isWebSearch && Object.keys(args ?? {}).length === 0) return {
|
|
39
|
+
...tool,
|
|
40
|
+
id: OPENROUTER_WEB_SEARCH_TOOL_ID
|
|
41
|
+
};
|
|
42
|
+
throw new MastraError({
|
|
43
|
+
id: "MASTRA_GATEWAY_UNSUPPORTED_PROVIDER_TOOL",
|
|
44
|
+
domain: ErrorDomain.LLM,
|
|
45
|
+
category: ErrorCategory.USER,
|
|
46
|
+
details: {
|
|
47
|
+
toolId: id,
|
|
48
|
+
model: routerId
|
|
49
|
+
},
|
|
50
|
+
text: `The provider tool "${id}" cannot be used with "${routerId}". The Mastra gateway only runs its own server tools. ` + (isWebSearch ? `Its web search does not accept "${id}" options: use webSearchTool from @mastra/core/tools, or call the provider directly to keep them.` : `Call the provider directly to use this tool.`)
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
return {
|
|
54
|
+
...options,
|
|
55
|
+
tools
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export { prepareToolsForMastraGateway as i, isMastraGatewayChatModel as n, markMastraGatewayChatModel as r, OPENROUTER_WEB_SEARCH_TOOL_ID as t };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
const require_error = require("./error-D90lJ6M7.cjs");
|
|
2
|
+
// src/llm/model/mastra-gateway-provider-tools.ts
|
|
3
|
+
const OPENROUTER_WEB_SEARCH_TOOL_ID = "openrouter.web_search";
|
|
4
|
+
const MASTRA_GATEWAY_CHAT_MODEL = Symbol.for("mastra.gateway.chatModel");
|
|
5
|
+
/**
|
|
6
|
+
* Marks a model whose requests go to the Mastra gateway's chat endpoint. Such a model reports
|
|
7
|
+
* `openrouter` as its provider, so the mark is how callers know its tools are gateway tools.
|
|
8
|
+
*/
|
|
9
|
+
function markMastraGatewayChatModel(model) {
|
|
10
|
+
Object.defineProperty(model, MASTRA_GATEWAY_CHAT_MODEL, { value: true });
|
|
11
|
+
return model;
|
|
12
|
+
}
|
|
13
|
+
function isMastraGatewayChatModel(model) {
|
|
14
|
+
return typeof model === "object" && model !== null && model[MASTRA_GATEWAY_CHAT_MODEL] === true;
|
|
15
|
+
}
|
|
16
|
+
const NATIVE_WEB_SEARCH_TOOL_IDS = {
|
|
17
|
+
"openai.web_search": true,
|
|
18
|
+
"anthropic.web_search_20250305": true,
|
|
19
|
+
"google.google_search": true,
|
|
20
|
+
"xai.web_search": true
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* The Mastra gateway's chat endpoint only runs `openrouter:*` server tools. Another provider's
|
|
24
|
+
* native tool is rejected with a 400 (OpenAI, xAI models) or dropped without an error (Anthropic,
|
|
25
|
+
* Google models), so the model silently loses the tool.
|
|
26
|
+
*
|
|
27
|
+
* A native web search tool with no arguments is swapped for the gateway's web search, which works
|
|
28
|
+
* for every tool-calling model. Any other native tool fails here with an actionable message.
|
|
29
|
+
*/
|
|
30
|
+
function prepareToolsForMastraGateway(options, routerId) {
|
|
31
|
+
const isProviderTool = (tool) => tool.type === "provider-defined" || tool.type === "provider";
|
|
32
|
+
if (!options.tools?.some(isProviderTool)) return options;
|
|
33
|
+
const tools = options.tools.map((tool) => {
|
|
34
|
+
if (!isProviderTool(tool)) return tool;
|
|
35
|
+
const { id, args } = tool;
|
|
36
|
+
if (id.startsWith("openrouter.")) return tool;
|
|
37
|
+
const isWebSearch = id in NATIVE_WEB_SEARCH_TOOL_IDS;
|
|
38
|
+
if (isWebSearch && Object.keys(args ?? {}).length === 0) return {
|
|
39
|
+
...tool,
|
|
40
|
+
id: OPENROUTER_WEB_SEARCH_TOOL_ID
|
|
41
|
+
};
|
|
42
|
+
throw new require_error.MastraError({
|
|
43
|
+
id: "MASTRA_GATEWAY_UNSUPPORTED_PROVIDER_TOOL",
|
|
44
|
+
domain: require_error.ErrorDomain.LLM,
|
|
45
|
+
category: require_error.ErrorCategory.USER,
|
|
46
|
+
details: {
|
|
47
|
+
toolId: id,
|
|
48
|
+
model: routerId
|
|
49
|
+
},
|
|
50
|
+
text: `The provider tool "${id}" cannot be used with "${routerId}". The Mastra gateway only runs its own server tools. ` + (isWebSearch ? `Its web search does not accept "${id}" options: use webSearchTool from @mastra/core/tools, or call the provider directly to keep them.` : `Call the provider directly to use this tool.`)
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
return {
|
|
54
|
+
...options,
|
|
55
|
+
tools
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
Object.defineProperty(exports, "OPENROUTER_WEB_SEARCH_TOOL_ID", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function() {
|
|
61
|
+
return OPENROUTER_WEB_SEARCH_TOOL_ID;
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
Object.defineProperty(exports, "isMastraGatewayChatModel", {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function() {
|
|
67
|
+
return isMastraGatewayChatModel;
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(exports, "markMastraGatewayChatModel", {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function() {
|
|
73
|
+
return markMastraGatewayChatModel;
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
Object.defineProperty(exports, "prepareToolsForMastraGateway", {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function() {
|
|
79
|
+
return prepareToolsForMastraGateway;
|
|
80
|
+
}
|
|
81
|
+
});
|
package/dist/memory/index.cjs
CHANGED
|
@@ -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-BKEfY3-X.cjs");
|
|
3
|
+
const require_execution_fence = require("../execution-fence-C-wa17Wr.cjs");
|
|
4
4
|
const require_message_list = require("../message-list-C0F2sDNC.cjs");
|
|
5
5
|
exports.AUTHORED_USER_TURN = require_message_list.AUTHORED_USER_TURN;
|
|
6
6
|
exports.DEFAULT_MESSAGE_EMBEDDING_MAX_CHUNK_CHARS = require_execution_fence.DEFAULT_MESSAGE_EMBEDDING_MAX_CHUNK_CHARS;
|
package/dist/memory/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Jt as getThreadOMMetadata, Qt as setThreadOMMetadata, Xt as isThreadTitlePinned, Yt as isObservationalMemoryEnabled, Zt as parseMemoryRequestContext, qt as TITLE_PINNED_THREAD_METADATA_KEY } from "../stream-
|
|
2
|
-
import { Ao as MemoryProcessor, Co as buildMessageEmbeddingRows, Do as resolveMaxChunkChars, Eo as messageVectorId, Jn as getMemoryRunState, Mo as filterSystemReminderMessages, No as isSystemReminderMessage, Oo as upsertMessageVectors, So as MESSAGE_EMBEDDING_CHARS_PER_TOKEN, To as extractMessageEmbeddingText, Yn as MockMemory, as as normalizeMessageHistoryConfig, es as groupLinkedToolMessages, is as isAfterMemoryTokenBoundary, jo as memoryDefaultOptions, ko as MastraMemory, ns as advanceMemoryTokenBoundary, qn as MemoryRunState, rs as getMemoryTokenBoundary, ts as loadMessageHistory, wo as chunkMessageText, xo as DEFAULT_MESSAGE_EMBEDDING_MAX_CHUNK_CHARS } from "../execution-fence-
|
|
1
|
+
import { Jt as getThreadOMMetadata, Qt as setThreadOMMetadata, Xt as isThreadTitlePinned, Yt as isObservationalMemoryEnabled, Zt as parseMemoryRequestContext, qt as TITLE_PINNED_THREAD_METADATA_KEY } from "../stream-CyaGm-DI.js";
|
|
2
|
+
import { Ao as MemoryProcessor, Co as buildMessageEmbeddingRows, Do as resolveMaxChunkChars, Eo as messageVectorId, Jn as getMemoryRunState, Mo as filterSystemReminderMessages, No as isSystemReminderMessage, Oo as upsertMessageVectors, So as MESSAGE_EMBEDDING_CHARS_PER_TOKEN, To as extractMessageEmbeddingText, Yn as MockMemory, as as normalizeMessageHistoryConfig, es as groupLinkedToolMessages, is as isAfterMemoryTokenBoundary, jo as memoryDefaultOptions, ko as MastraMemory, ns as advanceMemoryTokenBoundary, qn as MemoryRunState, rs as getMemoryTokenBoundary, ts as loadMessageHistory, wo as chunkMessageText, xo as DEFAULT_MESSAGE_EMBEDDING_MAX_CHUNK_CHARS } from "../execution-fence-DvN3Fwm3.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-RgFlLrxG.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 { _ as resolveObservabilityContext } from "./observability-DPDWibyH.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-Dl5BqcZO.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-VaoaeadK.cjs");
|
|
6
|
-
const require_utils$1 = require("./utils-
|
|
6
|
+
const require_utils$1 = require("./utils-Ag63fN_T.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");
|
|
@@ -29127,7 +29127,7 @@ function createOpenRouter(options = {}) {
|
|
|
29127
29127
|
}
|
|
29128
29128
|
createOpenRouter({ compatibility: "strict" });
|
|
29129
29129
|
// src/llm/model/gateways/constants.ts
|
|
29130
|
-
const MASTRA_USER_AGENT = `mastra/1.87.0-alpha.
|
|
29130
|
+
const MASTRA_USER_AGENT = `mastra/1.87.0-alpha.22`;
|
|
29131
29131
|
const PROVIDERS_WITH_INSTALLED_PACKAGES = [
|
|
29132
29132
|
"anthropic",
|
|
29133
29133
|
"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.22`;
|
|
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_execution_fence = require("../execution-fence-
|
|
2
|
+
const require_execution_fence = require("../execution-fence-C-wa17Wr.cjs");
|
|
3
3
|
const require_tool = require("../tool-Dn9WSDVn.cjs");
|
|
4
4
|
let zod_v4 = require("zod/v4");
|
|
5
5
|
// src/notifications/tool.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
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 "../execution-fence-
|
|
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 "../execution-fence-DvN3Fwm3.js";
|
|
2
2
|
import { r as createTool } from "../tool-DIFduuTw.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_execution_fence = require("../execution-fence-
|
|
2
|
+
const require_execution_fence = require("../execution-fence-C-wa17Wr.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-DvN3Fwm3.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-BKEfY3-X.cjs");
|
|
3
|
+
const require_execution_fence = require("../execution-fence-C-wa17Wr.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-CyaGm-DI.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-DvN3Fwm3.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 };
|