@mastra/core 1.86.0-alpha.9 → 1.87.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/voice/aisdk/speech.d.ts +1 -1
- package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/voice/aisdk/transcription.d.ts +1 -1
- package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/voice/composite-voice.d.ts +1 -1
- package/dist/agent/agent-legacy.d.ts +1 -1
- package/dist/agent/agent.d.ts +3 -3
- package/dist/agent/agent.types.d.ts +1 -1
- package/dist/agent/durable/constants.d.ts +2 -0
- package/dist/agent/durable/durable-agent.d.ts +3 -3
- package/dist/agent/durable/evented-execution.d.ts +7 -0
- package/dist/agent/durable/execution-engine.d.ts +1 -0
- package/dist/agent/durable/execution-fence.d.ts +2 -0
- package/dist/agent/durable/index.cjs +3 -1
- package/dist/agent/durable/index.d.ts +1 -1
- package/dist/agent/durable/index.js +2 -2
- package/dist/agent/durable/run-registry.d.ts +2 -0
- package/dist/agent/durable/segment-spans.d.ts +54 -1
- package/dist/agent/durable/stream-adapter.d.ts +1 -1
- package/dist/agent/durable/types.d.ts +12 -2
- package/dist/agent/durable/workflows/durable-loop-builder.d.ts +57 -2
- package/dist/agent/durable/workflows/finalize-run.d.ts +2 -0
- package/dist/agent/durable/workflows/shared/index.d.ts +1 -1
- package/dist/agent/durable/workflows/shared/reported-cost.d.ts +7 -0
- package/dist/agent/durable/workflows/shared/schemas.d.ts +16 -1
- package/dist/agent/durable/workflows/shared/tool-call-concurrency.d.ts +6 -0
- package/dist/agent/durable/workflows/steps/llm-execution.d.ts +5 -0
- package/dist/agent/durable/workflows/steps/llm-mapping.d.ts +6 -0
- package/dist/agent/durable/workflows/steps/tool-call.d.ts +20 -0
- package/dist/agent/index.cjs +2 -2
- package/dist/agent/index.js +2 -2
- package/dist/agent/message-list/adapters/AIV4Adapter.d.ts +1 -1
- package/dist/agent/message-list/adapters/types.d.ts +1 -1
- package/dist/agent/message-list/cache/CacheKeyGenerator.d.ts +1 -1
- package/dist/agent/message-list/conversion/output-converter.d.ts +1 -1
- package/dist/agent/message-list/conversion/to-prompt.d.ts +1 -1
- package/dist/agent/message-list/conversion/utils.d.ts +1 -1
- package/dist/agent/message-list/detection/TypeDetector.d.ts +1 -1
- package/dist/agent/message-list/message-list.d.ts +2 -2
- package/dist/agent/message-list/prompt/attachments-to-parts.d.ts +1 -1
- package/dist/agent/message-list/prompt/convert-file.d.ts +1 -1
- package/dist/agent/message-list/prompt/data-content.d.ts +1 -1
- package/dist/agent/message-list/state/MessageStateManager.d.ts +1 -1
- package/dist/agent/message-list/state/types.d.ts +2 -2
- package/dist/agent/message-list/types.d.ts +9 -9
- package/dist/agent/message-list/utils/convert-messages.d.ts +3 -3
- package/dist/agent/message-list/utils/provider-compat.d.ts +1 -1
- package/dist/agent/request-context-snapshot.d.ts +3 -2
- package/dist/agent/signals.d.ts +1 -1
- package/dist/agent/streams/run-records.d.ts +9 -1
- package/dist/agent/types.d.ts +3 -3
- package/dist/agent/workflows/prepare-stream/run-scope-keys.d.ts +1 -1
- package/dist/agent-builder/ee/index.cjs +1 -1
- package/dist/agent-builder/ee/index.js +1 -1
- package/dist/agent-controller/index.cjs +1 -1
- package/dist/agent-controller/index.js +1 -1
- package/dist/agent-controller/session-run-engine.d.ts +5 -2
- package/dist/agent-controller/session.d.ts +2 -0
- package/dist/agent-controller/types.d.ts +23 -0
- package/dist/{agent-controller-SSlKzE6A.js → agent-controller-B8LoFdtu.js} +43 -13
- package/dist/{agent-controller-CrQ9OF80.cjs → agent-controller-DSnFynpa.cjs} +43 -13
- package/dist/auth/defaults/index.d.ts +2 -2
- package/dist/auth/defaults/session/cookie.d.ts +2 -2
- package/dist/auth/defaults/session/index.d.ts +2 -2
- package/dist/auth/defaults/session/memory.d.ts +2 -2
- package/dist/auth/ee/capabilities.d.ts +1 -1
- package/dist/auth/ee/defaults/index.d.ts +1 -1
- package/dist/auth/ee/defaults/rbac/index.d.ts +1 -1
- package/dist/auth/ee/defaults/rbac/static.d.ts +1 -1
- package/dist/auth/ee/defaults/roles.d.ts +1 -1
- package/dist/auth/ee/fga-check.d.ts +1 -1
- package/dist/auth/ee/index.d.ts +1 -1
- package/dist/auth/ee/interfaces/acl.d.ts +1 -1
- package/dist/auth/ee/interfaces/fga.d.ts +1 -1
- package/dist/auth/ee/interfaces/index.d.ts +1 -1
- package/dist/auth/ee/interfaces/permissions.generated.d.ts +1 -1
- package/dist/auth/ee/interfaces/rbac.d.ts +1 -1
- package/dist/auth/ee/interfaces/user.d.ts +1 -1
- package/dist/auth/ee/license.d.ts +1 -1
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/interfaces/credentials.d.ts +1 -1
- package/dist/auth/interfaces/index.d.ts +2 -2
- package/dist/auth/interfaces/session.d.ts +1 -1
- package/dist/auth/interfaces/sso.d.ts +1 -1
- package/dist/auth/interfaces/user.d.ts +1 -1
- package/dist/background-tasks/index.cjs +1 -1
- package/dist/background-tasks/index.js +1 -1
- package/dist/background-tasks/manager.d.ts +4 -1
- package/dist/{background-tasks-BDrYBis-.cjs → background-tasks-Ci5h0dhj.cjs} +139 -51
- package/dist/{background-tasks-BnJfNLFo.js → background-tasks-IW7M4iD2.js} +139 -51
- package/dist/browser/index.cjs +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/{builder-Cw8u3pPl.cjs → builder-14Uptu8y.cjs} +2 -2
- package/dist/{builder-Cl-0BWkh.js → builder-DI2c2xjy.js} +2 -2
- package/dist/bundler/index.d.ts +2 -2
- package/dist/cache/base.d.ts +40 -10
- package/dist/cache/index.cjs +1 -1
- package/dist/cache/index.js +1 -1
- package/dist/capabilities/302ai.json +196 -196
- package/dist/capabilities/abliteratedllm.json +36 -36
- package/dist/capabilities/abliteration-ai.json +11 -11
- package/dist/capabilities/above.json +22 -22
- package/dist/capabilities/adaption.json +13 -13
- package/dist/capabilities/adzuki.json +28 -28
- package/dist/capabilities/agentrouter.json +9 -9
- package/dist/capabilities/agnes.json +4 -4
- package/dist/capabilities/ai-router.json +5 -5
- package/dist/capabilities/aiand.json +16 -16
- package/dist/capabilities/aigrow.json +14 -14
- package/dist/capabilities/aimlapi.json +146 -150
- package/dist/capabilities/aipg.json +2 -2
- package/dist/capabilities/aixy.json +9 -9
- package/dist/capabilities/aki-io.json +10 -10
- package/dist/capabilities/alibaba-cn.json +97 -97
- package/dist/capabilities/alibaba-coding-plan-cn.json +5 -5
- package/dist/capabilities/alibaba-coding-plan.json +5 -5
- package/dist/capabilities/alibaba-token-plan-cn.json +51 -51
- package/dist/capabilities/alibaba-token-plan.json +52 -52
- package/dist/capabilities/alibaba.json +69 -69
- package/dist/capabilities/ambient.json +15 -15
- package/dist/capabilities/amd.json +8 -8
- package/dist/capabilities/anthropic.json +49 -49
- package/dist/capabilities/anyapi.json +19 -19
- package/dist/capabilities/arcee.json +9 -9
- package/dist/capabilities/augure.json +4 -4
- package/dist/capabilities/auriko.json +21 -21
- package/dist/capabilities/bailing.json +4 -4
- package/dist/capabilities/baseten.json +28 -28
- package/dist/capabilities/bee.json +5 -5
- package/dist/capabilities/berget.json +4 -4
- package/dist/capabilities/bothub.json +14 -14
- package/dist/capabilities/boundless.json +39 -39
- package/dist/capabilities/bumo.json +42 -42
- package/dist/capabilities/byteplus.json +24 -24
- package/dist/capabilities/cheapaimodel.json +10 -10
- package/dist/capabilities/cheapest-token.json +29 -29
- package/dist/capabilities/chutes.json +10 -13
- package/dist/capabilities/cline-pass.json +37 -37
- package/dist/capabilities/cloudcode.json +10 -10
- package/dist/capabilities/cloudflare-workers-ai.json +12 -73
- package/dist/capabilities/commandcode.json +131 -131
- package/dist/capabilities/concentrate.json +272 -263
- package/dist/capabilities/cortecs.json +113 -113
- package/dist/capabilities/crossmodel.json +169 -169
- package/dist/capabilities/crusoe.json +10 -10
- package/dist/capabilities/daoxe.json +9 -9
- package/dist/capabilities/databricks.json +128 -128
- package/dist/capabilities/deepinfra.json +130 -67
- package/dist/capabilities/deepseek.json +4 -4
- package/dist/capabilities/digitalocean.json +112 -112
- package/dist/capabilities/dothoosh.json +29 -29
- package/dist/capabilities/doubleword.json +29 -29
- package/dist/capabilities/edenai.json +446 -453
- package/dist/capabilities/empiriolabs.json +164 -166
- package/dist/capabilities/engy.json +22 -22
- package/dist/capabilities/entrim.json +4 -4
- package/dist/capabilities/evroc.json +14 -14
- package/dist/capabilities/ezkielyna.json +10 -10
- package/dist/capabilities/fastrouter.json +79 -79
- package/dist/capabilities/fireworks-ai.json +92 -71
- package/dist/capabilities/freemodel.json +21 -21
- package/dist/capabilities/friendli.json +10 -10
- package/dist/capabilities/frogbot.json +87 -87
- package/dist/capabilities/gisoo.json +19 -19
- package/dist/capabilities/gmicloud.json +21 -21
- package/dist/capabilities/google.json +52 -52
- package/dist/capabilities/graphn.json +11 -11
- package/dist/capabilities/greenpt.json +35 -35
- package/dist/capabilities/groq.json +3 -3
- package/dist/capabilities/helicone.json +78 -78
- package/dist/capabilities/hostinger-router.json +13 -13
- package/dist/capabilities/hpc-ai.json +10 -10
- package/dist/capabilities/huawei-maas.json +17 -17
- package/dist/capabilities/hubris.json +25 -25
- package/dist/capabilities/huggingface.json +94 -84
- package/dist/capabilities/hyper.json +29 -29
- package/dist/capabilities/impossibl.json +148 -148
- package/dist/capabilities/inception.json +3 -3
- package/dist/capabilities/inceptron.json +6 -6
- package/dist/capabilities/inco.json +4 -4
- package/dist/capabilities/infer.json +10 -10
- package/dist/capabilities/inferall.json +5 -5
- package/dist/capabilities/inference-coop.json +15 -15
- package/dist/capabilities/inferenceapis.json +17 -17
- package/dist/capabilities/inferris.json +4 -4
- package/dist/capabilities/infersia.json +12 -12
- package/dist/capabilities/infomaniak.json +2 -2
- package/dist/capabilities/io-net.json +2 -2
- package/dist/capabilities/isoquant.json +4 -4
- package/dist/capabilities/iteracompute.json +58 -58
- package/dist/capabilities/jad-ai.json +2 -2
- package/dist/capabilities/jalapeno.json +11 -11
- package/dist/capabilities/jiekou.json +62 -62
- package/dist/capabilities/jzstoken.json +47 -47
- package/dist/capabilities/keln.json +21 -21
- package/dist/capabilities/kenari.json +123 -123
- package/dist/capabilities/kilo.json +631 -621
- package/dist/capabilities/kimi-code-plan-cn.json +6 -6
- package/dist/capabilities/kimi-code-plan-global.json +6 -6
- package/dist/capabilities/kitani.json +4 -4
- package/dist/capabilities/klavo.json +21 -21
- package/dist/capabilities/korouter.json +33 -33
- package/dist/capabilities/kunavo.json +5 -5
- package/dist/capabilities/liquid.json +12 -12
- package/dist/capabilities/lithosai.json +2 -2
- package/dist/capabilities/llmgateway-providers.json +903 -894
- package/dist/capabilities/llmgateway.json +344 -336
- package/dist/capabilities/llmtr.json +23 -23
- package/dist/capabilities/logits.json +2 -2
- package/dist/capabilities/longcat.json +2 -2
- package/dist/capabilities/lowrouter.json +46 -46
- package/dist/capabilities/lyceum.json +14 -14
- package/dist/capabilities/melious.json +15 -15
- package/dist/capabilities/merge-gateway.json +292 -292
- package/dist/capabilities/meta.json +11 -11
- package/dist/capabilities/minimax-cn-coding-plan.json +2 -2
- package/dist/capabilities/minimax-cn.json +5 -5
- package/dist/capabilities/minimax-coding-plan.json +2 -2
- package/dist/capabilities/minimax.json +5 -5
- package/dist/capabilities/mistral.json +21 -21
- package/dist/capabilities/mixlayer.json +4 -4
- package/dist/capabilities/modal.json +14 -14
- package/dist/capabilities/model-oracle-ai.json +23 -23
- package/dist/capabilities/modelis.json +22 -22
- package/dist/capabilities/modelscope.json +2 -2
- package/dist/capabilities/modular.json +7 -7
- package/dist/capabilities/moneo.json +11 -11
- package/dist/capabilities/moonshotai-cn.json +6 -6
- package/dist/capabilities/moonshotai.json +6 -6
- package/dist/capabilities/morph.json +13 -13
- package/dist/capabilities/munito.json +2 -2
- package/dist/capabilities/nan.json +28 -28
- package/dist/capabilities/nano-gpt.json +599 -564
- package/dist/capabilities/nearai.json +96 -96
- package/dist/capabilities/nebius.json +32 -32
- package/dist/capabilities/neon.json +120 -120
- package/dist/capabilities/neuralwatt.json +37 -37
- package/dist/capabilities/nokeep.json +4 -4
- package/dist/capabilities/novita-ai.json +154 -154
- package/dist/capabilities/nvidia.json +28 -60
- package/dist/capabilities/oathbreaker.json +2 -2
- package/dist/capabilities/obscurify.json +20 -20
- package/dist/capabilities/oci.json +17 -8
- package/dist/capabilities/ofox.json +317 -317
- package/dist/capabilities/ollama-cloud.json +56 -56
- package/dist/capabilities/openai.json +78 -46
- package/dist/capabilities/opencode-go.json +86 -86
- package/dist/capabilities/openreason.json +5 -5
- package/dist/capabilities/openrouter.json +535 -519
- package/dist/capabilities/opper.json +27 -27
- package/dist/capabilities/orcarouter.json +217 -217
- package/dist/capabilities/outerlabs.json +31 -31
- package/dist/capabilities/ovhcloud.json +58 -4
- package/dist/capabilities/pareto.json +5 -5
- package/dist/capabilities/pendra.json +4 -4
- package/dist/capabilities/perplexity-agent.json +62 -62
- package/dist/capabilities/phala.json +36 -36
- package/dist/capabilities/pioneer.json +27 -27
- package/dist/capabilities/poe.json +110 -110
- package/dist/capabilities/poolside.json +3 -3
- package/dist/capabilities/powerspring.json +11 -11
- package/dist/capabilities/primalabs.json +10 -10
- package/dist/capabilities/prime.json +127 -111
- package/dist/capabilities/privatemode-ai.json +11 -11
- package/dist/capabilities/proxystacks.json +7 -7
- package/dist/capabilities/qiniu-ai.json +15 -15
- package/dist/capabilities/refuseless.json +9 -9
- package/dist/capabilities/regolo-ai.json +6 -6
- package/dist/capabilities/requesty.json +170 -170
- package/dist/capabilities/ruapi.json +20 -20
- package/dist/capabilities/runcrate.json +10 -10
- package/dist/capabilities/runinfra.json +16 -16
- package/dist/capabilities/sakana.json +6 -6
- package/dist/capabilities/sambanova.json +6 -6
- package/dist/capabilities/sandbase.json +11 -11
- package/dist/capabilities/sarvam.json +10 -10
- package/dist/capabilities/scaleway.json +14 -14
- package/dist/capabilities/scnet-token-plan.json +14 -14
- package/dist/capabilities/scx-ai.json +26 -26
- package/dist/capabilities/sensenova.json +12 -12
- package/dist/capabilities/siliconflow-cn.json +50 -50
- package/dist/capabilities/siliconflow.json +55 -55
- package/dist/capabilities/snowflake-cortex.json +19 -19
- package/dist/capabilities/sokkan.json +7 -7
- package/dist/capabilities/sparrowcodes.json +17 -17
- package/dist/capabilities/standardcompute.json +98 -98
- package/dist/capabilities/steadyrouter.json +38 -38
- package/dist/capabilities/stepfun-ai-step-plan.json +6 -6
- package/dist/capabilities/stepfun-ai.json +5 -5
- package/dist/capabilities/stepfun-step-plan.json +5 -5
- package/dist/capabilities/stepfun.json +5 -5
- package/dist/capabilities/stepping-stone.json +17 -17
- package/dist/capabilities/subconscious.json +2 -2
- package/dist/capabilities/superbot-gg.json +4 -4
- package/dist/capabilities/synthetic.json +12 -12
- package/dist/capabilities/synthorai.json +22 -22
- package/dist/capabilities/teamorouter.json +24 -24
- package/dist/capabilities/teapot-router.json +12 -12
- package/dist/capabilities/tencent-token-plan.json +59 -35
- package/dist/capabilities/tencent-tokenhub.json +46 -46
- package/dist/capabilities/tensorx.json +47 -47
- package/dist/capabilities/tenstorrent.json +8 -8
- package/dist/capabilities/the-grid-ai.json +29 -29
- package/dist/capabilities/thinkingmachines.json +61 -61
- package/dist/capabilities/tinfoil.json +12 -12
- package/dist/capabilities/togetherai.json +62 -52
- package/dist/capabilities/tokengo.json +14 -14
- package/dist/capabilities/tokenify.json +9 -9
- package/dist/capabilities/trustedrouter.json +7 -7
- package/dist/capabilities/trustedtokens.json +15 -15
- package/dist/capabilities/umans-ai-coding-plan.json +16 -16
- package/dist/capabilities/umans-ai.json +13 -13
- package/dist/capabilities/uncensuredai.json +4 -4
- package/dist/capabilities/unrestricted.json +8 -8
- package/dist/capabilities/uplinkswitch.json +21 -21
- package/dist/capabilities/upstage.json +4 -4
- package/dist/capabilities/vancine.json +24 -24
- package/dist/capabilities/vercel.json +582 -582
- package/dist/capabilities/vivgrid.json +86 -86
- package/dist/capabilities/volcengine-coding-plan.json +23 -23
- package/dist/capabilities/volcengine.json +24 -24
- package/dist/capabilities/vultr.json +26 -26
- package/dist/capabilities/wafer.ai.json +16 -16
- package/dist/capabilities/wallaby.json +4 -4
- package/dist/capabilities/wally.json +11 -11
- package/dist/capabilities/wandb.json +21 -21
- package/dist/capabilities/watt.json +24 -24
- package/dist/capabilities/xai.json +6 -6
- package/dist/capabilities/xiaomi.json +2 -2
- package/dist/capabilities/xpersona.json +13 -13
- package/dist/capabilities/xxapi.json +28 -28
- package/dist/capabilities/zai-coding-plan.json +19 -19
- package/dist/capabilities/zai.json +26 -24
- package/dist/capabilities/zenifra.json +27 -27
- package/dist/capabilities/zenmux.json +172 -172
- package/dist/capabilities/zerogpu.json +8 -8
- package/dist/capabilities/zhipuai-coding-plan.json +7 -7
- package/dist/capabilities/zhipuai.json +23 -23
- package/dist/capabilities/zro.json +7 -7
- package/dist/channels/agent-channels.d.ts +2 -1
- package/dist/channels/formatting.d.ts +8 -0
- package/dist/channels/index.cjs +4 -2
- package/dist/channels/index.d.ts +1 -1
- package/dist/channels/index.js +3 -3
- package/dist/channels/types.d.ts +5 -3
- package/dist/{channels-Cz1y3W6u.js → channels-Wh32drgu.js} +1 -1
- package/dist/{channels-DQg4v_gm.cjs → channels-tVV_de9Q.cjs} +1 -1
- package/dist/coding-agent/index.cjs +1 -1
- package/dist/coding-agent/index.js +1 -1
- package/dist/datasets/index.cjs +2 -2
- package/dist/datasets/index.js +2 -2
- package/dist/deployer/index.d.ts +2 -2
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +798 -798
- package/dist/docs/references/docs-agents-resumable-streams.md +15 -6
- package/dist/docs/references/docs-deployment-workers.md +3 -1
- package/dist/docs/references/docs-harness-background-tasks.md +4 -4
- package/dist/docs/references/docs-harness-durable-agents.md +39 -48
- package/dist/docs/references/docs-knowledge-importers.md +1 -1
- package/dist/docs/references/docs-mastra-platform-observability-overview.md +1 -1
- package/dist/docs/references/docs-sandbox-overview.md +1 -0
- package/dist/docs/references/docs-server-pubsub.md +1 -1
- package/dist/docs/references/docs-workflows-overview.md +67 -3
- package/dist/docs/references/integrations-agentic-ui-assistant-ui.md +2 -0
- package/dist/docs/references/integrations-frameworks-angular.md +39 -0
- package/dist/docs/references/integrations-frameworks-astro.md +5 -2
- package/dist/docs/references/integrations-frameworks-electron.md +40 -0
- package/dist/docs/references/integrations-frameworks-next-js.md +5 -2
- package/dist/docs/references/integrations-frameworks-nuxt.md +5 -2
- package/dist/docs/references/integrations-frameworks-sveltekit.md +5 -2
- package/dist/docs/references/integrations-frameworks-vite-react.md +40 -0
- package/dist/docs/references/integrations.md +3 -0
- package/dist/docs/references/reference-agent-controller-agent-controller-class.md +6 -0
- package/dist/docs/references/reference-agents-channels.md +1 -1
- package/dist/docs/references/reference-agents-durable-agent.md +3 -3
- package/dist/docs/references/reference-agents-generate.md +2 -0
- package/dist/docs/references/reference-configuration.md +1 -1
- package/dist/docs/references/reference-core-mastra-class.md +2 -0
- package/dist/docs/references/reference-knowledge-knowledge-class.md +1 -1
- package/dist/docs/references/reference-knowledge-knowledge-tools.md +11 -5
- package/dist/docs/references/reference-pubsub-caching-pubsub.md +2 -2
- package/dist/docs/references/reference-pubsub-redis-streams.md +2 -2
- package/dist/docs/references/reference-pubsub-valkey-streams.md +2 -2
- package/dist/docs/references/reference-workers-overview.md +2 -0
- package/dist/docs/references/reference-workflows-workflow-methods-create-run.md +2 -0
- package/dist/docs/references/reference-workflows-workflow.md +2 -0
- package/dist/docs/references/reference.md +1 -0
- package/dist/error/index.cjs +2 -1
- package/dist/error/index.d.ts +1 -1
- package/dist/error/index.js +2 -2
- package/dist/error/provider-error.d.ts +2 -1
- package/dist/{error-BLwEXqOK.js → error-BC9Au-22.js} +13 -1
- package/dist/{error-BdEvO8za.cjs → error-L1V4uUbd.cjs} +18 -0
- package/dist/evals/index.cjs +1 -1
- package/dist/evals/index.js +1 -1
- package/dist/evals/run/index.d.ts +1 -1
- package/dist/evals/scoreTraces/index.cjs +1 -1
- package/dist/evals/scoreTraces/index.js +1 -1
- package/dist/evals/types.d.ts +1 -1
- package/dist/events/caching-pubsub.d.ts +28 -0
- package/dist/events/index.cjs +4 -1
- package/dist/events/index.js +2 -2
- package/dist/events/topics.d.ts +55 -9
- package/dist/harness/index.cjs +1 -1
- package/dist/harness/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{inmemory-BDD0w8gx.js → inmemory-BK3zLwvM.js} +42 -12
- package/dist/{inmemory-fgR8sq-U.cjs → inmemory-Dc86VWGB.cjs} +42 -12
- package/dist/knowledge/changes.d.ts +17 -5
- package/dist/knowledge/importers/runner.d.ts +6 -0
- package/dist/knowledge/index.cjs +78 -16
- package/dist/knowledge/index.d.ts +2 -2
- package/dist/knowledge/index.js +78 -16
- package/dist/knowledge/search-snippet.d.ts +30 -0
- package/dist/llm/index.cjs +3 -3
- package/dist/llm/index.d.ts +2 -2
- package/dist/llm/index.js +3 -3
- package/dist/llm/model/aisdk/v4/model.d.ts +9 -9
- package/dist/llm/model/base.types.d.ts +2 -2
- package/dist/llm/model/embedding-router.d.ts +1 -1
- package/dist/llm/model/model-settings.d.ts +1 -1
- package/dist/llm/model/model.d.ts +1 -1
- package/dist/llm/model/model.loop.d.ts +1 -1
- package/dist/llm/model/model.loop.types.d.ts +1 -1
- package/dist/llm/model/provider-types.generated.d.ts +8011 -7996
- package/dist/llm/model/shared.types.d.ts +1 -1
- package/dist/{llm-B5A5cwJr.js → llm-B1zaFLYZ.js} +3 -3
- package/dist/{llm-8Av3mSjD.cjs → llm-BAiOsNAP.cjs} +3 -3
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +2 -2
- package/dist/loop/loop-builder.d.ts +1 -1
- package/dist/loop/loop.d.ts +1 -1
- package/dist/loop/run-scope-keys.d.ts +1 -1
- package/dist/loop/shared/transcript-step.d.ts +1 -1
- package/dist/loop/types.d.ts +2 -2
- package/dist/loop/workflows/agentic-execution/background-task-check-step.d.ts +1 -1
- package/dist/loop/workflows/agentic-execution/build-messages-from-chunks.d.ts +1 -1
- package/dist/loop/workflows/agentic-execution/goal-step.d.ts +1 -1
- package/dist/loop/workflows/agentic-execution/index.d.ts +1 -1
- package/dist/loop/workflows/agentic-execution/is-task-complete-step.d.ts +1 -1
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts +1 -1
- package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts +1 -1
- package/dist/loop/workflows/agentic-execution/tool-call-concurrency.d.ts +1 -1
- package/dist/loop/workflows/agentic-execution/tool-call-step.d.ts +1 -1
- package/dist/loop/workflows/agentic-loop/index.d.ts +1 -1
- package/dist/loop/workflows/schema.d.ts +2 -2
- package/dist/loop/workflows/stream.d.ts +1 -1
- package/dist/{manager-sv35JY-z.cjs → manager-BVX9nVrM.cjs} +2 -2
- package/dist/{manager-DfWQCJUK.js → manager-ChK9GdGz.js} +2 -2
- package/dist/mastra/index.cjs +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/{mastra-CigBrT7X.js → mastra-CUGfgEpZ.js} +28 -18
- package/dist/{mastra-D4hvfuxX.cjs → mastra-HSmofHEJ.cjs} +28 -18
- package/dist/memory/index.cjs +2 -2
- package/dist/memory/index.js +2 -2
- package/dist/memory/memory.d.ts +1 -1
- package/dist/memory/types.d.ts +2 -2
- package/dist/{model-CYtXw861.js → model-C47BJRtR.js} +1 -1
- package/dist/{model-BK93CMtl.cjs → model-WahorgzJ.cjs} +1 -1
- package/dist/{netlify-CuI1ZrwR.js → netlify-CfDXkuLf.js} +2 -2
- package/dist/{netlify-BAnn3ouY.cjs → netlify-D99AnEhW.cjs} +2 -2
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/observability/index.cjs +1 -0
- package/dist/observability/index.d.ts +1 -1
- package/dist/observability/index.js +2 -2
- package/dist/{output-helpers-CedRCE17.js → output-helpers-CVzhy1Y0.js} +126 -56
- package/dist/{output-helpers-1Zu4Vt9C.cjs → output-helpers-DgsH4aTb.cjs} +143 -55
- package/dist/processor-provider/index.cjs +1 -1
- package/dist/processor-provider/index.js +1 -1
- package/dist/processors/index.cjs +2 -2
- package/dist/processors/index.d.ts +2 -2
- package/dist/processors/index.js +2 -2
- package/dist/processors/runner.d.ts +3 -1
- package/dist/processors/step-schema.d.ts +1 -1
- package/dist/{provider-registry-BwuI_IpT.cjs → provider-registry-CO1NVbO5.cjs} +22070 -22050
- package/dist/{provider-registry-CmQLzLF_.js → provider-registry-CR385GJ4.js} +22070 -22050
- package/dist/provider-registry.json +22239 -22226
- package/dist/{registry-generator-C17V4WfG.js → registry-generator-B3erRqYS.js} +1 -1
- package/dist/{registry-generator-C_0ae7Ce.cjs → registry-generator-Cvp34qcB.cjs} +1 -1
- package/dist/{rehydrate-PnaVawGX.js → rehydrate-CJBLrZxs.js} +2 -2
- package/dist/{rehydrate-CDQ4dOYj.cjs → rehydrate-Da4hNuaK.cjs} +2 -2
- package/dist/relevance/index.cjs +2 -2
- package/dist/relevance/index.js +2 -2
- package/dist/{run-registry-BwEcwYlU.js → run-registry-DdeEBsVW.js} +1639 -568
- package/dist/{run-registry-BmckDVBk.cjs → run-registry-TOOfO3hT.cjs} +1668 -567
- package/dist/server/auth.d.ts +3 -3
- package/dist/server/composite-auth.d.ts +1 -1
- package/dist/server/simple-auth.d.ts +1 -1
- package/dist/server/types.d.ts +1 -1
- package/dist/storage/domains/inmemory-db.d.ts +1 -0
- package/dist/storage/domains/knowledge/base.d.ts +5 -0
- package/dist/storage/domains/knowledge/inmemory.d.ts +1 -0
- package/dist/storage/domains/knowledge/pages-inmemory.d.ts +10 -2
- package/dist/storage/domains/knowledge/pages.d.ts +30 -0
- package/dist/storage/index.cjs +2 -2
- package/dist/storage/index.js +2 -2
- package/dist/storage/run-fencing.d.ts +5 -0
- package/dist/stream/RunOutput.d.ts +1 -1
- package/dist/stream/aisdk/v4/input.d.ts +1 -1
- package/dist/stream/aisdk/v5/compat/content.d.ts +1 -1
- package/dist/stream/aisdk/v5/compat/prepare-tools.d.ts +1 -1
- package/dist/stream/aisdk/v5/compat/ui-message.d.ts +1 -1
- package/dist/stream/aisdk/v5/compat/validation.d.ts +1 -1
- package/dist/stream/aisdk/v5/execute.d.ts +1 -1
- package/dist/stream/aisdk/v5/input.d.ts +1 -1
- package/dist/stream/aisdk/v5/output-helpers.d.ts +7 -7
- package/dist/stream/aisdk/v5/transform.d.ts +1 -1
- package/dist/stream/base/output.d.ts +4 -4
- package/dist/stream/base/schema.d.ts +1 -1
- package/dist/stream/index.cjs +2 -2
- package/dist/stream/index.js +2 -2
- package/dist/stream/types.d.ts +2 -2
- package/dist/{stream-D1y9GzoD.js → stream-C5PagEDs.js} +3 -3
- package/dist/{stream-0kdqBOOn.cjs → stream-DH7Qgz8l.cjs} +3 -3
- package/dist/test-utils/llm-mock.cjs +1 -1
- package/dist/test-utils/llm-mock.d.ts +3 -3
- 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/utils.d.ts +1 -1
- package/dist/{tool-loop-agent-kWaZAT6Q.cjs → tool-loop-agent-CJTs4T8b.cjs} +3 -3
- package/dist/{tool-loop-agent-BdjWGVIb.js → tool-loop-agent-DVYJXlQJ.js} +3 -3
- package/dist/tools/builtin/web-search.d.ts +1 -1
- package/dist/tools/provider-tool-utils.d.ts +1 -1
- package/dist/tools/tool-builder/builder.d.ts +1 -1
- package/dist/tools/tool-title.d.ts +1 -1
- package/dist/tools/types.d.ts +1 -1
- package/dist/types/user.d.ts +1 -1
- package/dist/{utils-GHY3hmLx.js → utils-D8upuTwy.js} +1 -1
- package/dist/{utils-BKUCaZ12.cjs → utils-xJi_N6Tx.cjs} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/dist/{validate-De92squ7.cjs → validate-6eZ8Wssn.cjs} +1 -1
- package/dist/{validate-CB-q-R2F.js → validate-DTkW3Vlp.js} +1 -1
- package/dist/vector/embed.d.ts +4 -4
- package/dist/vector/index.cjs +1 -1
- package/dist/vector/index.js +1 -1
- package/dist/vector/vector.d.ts +4 -4
- package/dist/voice/aisdk/index.d.ts +1 -1
- package/dist/voice/aisdk/speech.d.ts +1 -1
- package/dist/voice/aisdk/transcription.d.ts +1 -1
- package/dist/voice/composite-voice.d.ts +1 -1
- package/dist/voice/default-voice.d.ts +1 -1
- package/dist/voice/index.d.ts +2 -2
- package/dist/voice/voice.d.ts +1 -1
- package/dist/worker/index.cjs +1 -1
- package/dist/worker/index.js +1 -1
- package/dist/{worker-CAKvQj9_.cjs → worker-24ORi-wV.cjs} +2 -2
- package/dist/{worker-BbWPQuPR.cjs → worker-BO3u_WjZ.cjs} +2 -2
- package/dist/{worker-C3u_xzY2.js → worker-DbcFkKJO.js} +2 -2
- package/dist/{worker-Kwm8EKcj.js → worker-Dqubrnf8.js} +2 -2
- package/dist/{workflow-CSjXeNcR.cjs → workflow-D5Fc5ieC.cjs} +4 -4
- package/dist/{workflow-CVmI1Sw-.js → workflow-wXOf72fO.js} +4 -4
- package/dist/workflows/builder/index.cjs +1 -1
- package/dist/workflows/builder/index.js +1 -1
- package/dist/workflows/evented/index.cjs +1 -1
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +4 -4
- package/dist/workflows/index.js +4 -4
- package/dist/workflows/run-ownership.d.ts +74 -8
- package/dist/workflows/types.d.ts +17 -1
- package/dist/workflows/workflow.d.ts +4 -0
- package/package.json +14 -14
- package/src/llm/model/provider-types.generated.d.ts +8011 -7996
- /package/dist/_types/{@internal_ai-sdk-v4@0.0.98 → @internal_ai-sdk-v4@0.0.99}/dist/index.d.ts +0 -0
- /package/dist/_types/{@internal_ai-sdk-v4@0.0.98 → @internal_ai-sdk-v4@0.0.99}/dist/test.d.ts +0 -0
- /package/dist/_types/{@internal_ai-sdk-v4@0.0.98 → @internal_ai-sdk-v4@0.0.99}/package.json +0 -0
- /package/dist/_types/{@internal_ai-sdk-v5@0.0.98 → @internal_ai-sdk-v5@0.0.99}/dist/index.d.ts +0 -0
- /package/dist/_types/{@internal_ai-sdk-v5@0.0.98 → @internal_ai-sdk-v5@0.0.99}/dist/test.d.ts +0 -0
- /package/dist/_types/{@internal_ai-sdk-v5@0.0.98 → @internal_ai-sdk-v5@0.0.99}/package.json +0 -0
- /package/dist/_types/{@internal_ai-v6@0.0.98 → @internal_ai-v6@0.0.99}/dist/index.d.ts +0 -0
- /package/dist/_types/{@internal_ai-v6@0.0.98 → @internal_ai-v6@0.0.99}/package.json +0 -0
- /package/dist/_types/{@internal_ai-v7@0.0.98 → @internal_ai-v7@0.0.99}/dist/index.d.ts +0 -0
- /package/dist/_types/{@internal_ai-v7@0.0.98 → @internal_ai-v7@0.0.99}/package.json +0 -0
- /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/_types/@internal_core@0.1.4/dist/base/index.d.ts +0 -0
- /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/_types/@internal_core@0.1.4/dist/index-Diz1p9N7.d.ts +0 -0
- /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/capabilities.d.ts +0 -0
- /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/defaults/index.d.ts +0 -0
- /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/defaults/rbac/index.d.ts +0 -0
- /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/defaults/rbac/static.d.ts +0 -0
- /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/defaults/roles.d.ts +0 -0
- /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/fga-check.d.ts +0 -0
- /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/index.d.ts +0 -0
- /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/interfaces/acl.d.ts +0 -0
- /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/interfaces/fga.d.ts +0 -0
- /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/interfaces/index.d.ts +0 -0
- /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/interfaces/permissions.generated.d.ts +0 -0
- /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/interfaces/rbac.d.ts +0 -0
- /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/interfaces/user.d.ts +0 -0
- /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/license.d.ts +0 -0
- /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/index.d.ts +0 -0
- /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/provider/index.d.ts +0 -0
- /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/session/cookie.d.ts +0 -0
- /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/session/index.d.ts +0 -0
- /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/session/memory.d.ts +0 -0
- /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/types/index.d.ts +0 -0
- /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/package.json +0 -0
- /package/dist/_types/{@internal_deployer@0.0.4 → @internal_deployer@0.0.5}/dist/_types/@internal_core@0.1.4/dist/index-Diz1p9N7.d.ts +0 -0
- /package/dist/_types/{@internal_deployer@0.0.4 → @internal_deployer@0.0.5}/dist/_types/@internal_core@0.1.4/dist/logger/index.d.ts +0 -0
- /package/dist/_types/{@internal_deployer@0.0.4 → @internal_deployer@0.0.5}/dist/bundler.d.ts +0 -0
- /package/dist/_types/{@internal_deployer@0.0.4 → @internal_deployer@0.0.5}/dist/deployer.d.ts +0 -0
- /package/dist/_types/{@internal_deployer@0.0.4 → @internal_deployer@0.0.5}/dist/index.d.ts +0 -0
- /package/dist/_types/{@internal_deployer@0.0.4 → @internal_deployer@0.0.5}/package.json +0 -0
- /package/dist/_types/{@internal_external-types@0.0.101 → @internal_external-types@0.0.102}/dist/index.d.ts +0 -0
- /package/dist/_types/{@internal_external-types@0.0.101 → @internal_external-types@0.0.102}/package.json +0 -0
- /package/dist/_types/{@internal_voice@0.0.47/dist/_types/@internal_ai-sdk-v5@0.0.98 → @internal_voice@0.0.48/dist/_types/@internal_ai-sdk-v5@0.0.99}/dist/index.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/@internal_core@0.1.4/dist/base/index.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/@internal_core@0.1.4/dist/index-Diz1p9N7.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/@internal_core@0.1.4/dist/request-context/index.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/@internal_core@0.1.4/dist/types/index.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/ZodError.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/errors.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/external.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/helpers/enumUtil.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/helpers/errorUtil.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/helpers/parseUtil.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/helpers/partialUtil.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/helpers/typeAliases.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/helpers/util.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/index.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/locales/en.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/standard-schema.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/types.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/checks.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/coerce.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/compat.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/deep-partial.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/errors.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/external.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/from-json-schema.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/in-out.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/index.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/iso.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/parse.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/schemas.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/api.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/checks.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/compile.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/core.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/doc.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/errors.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/index.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/json-schema-generator.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/json-schema-processors.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/json-schema.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/memoizer.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/parse.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/regexes.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/registries.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/schemas.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/standard-schema.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/to-json-schema.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/util.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/versions.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/index.d.cts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ar.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/az.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/be.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/bg.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/bn.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ca.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ckb.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/cs.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/da.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/de.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/el.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/en.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/eo.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/es.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/fa.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/fi.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/fr-CA.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/fr.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/gu.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/he.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/hi.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/hr.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/hu.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/hy.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/id.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/index.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/is.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/it.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ja.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ka.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/kh.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/km.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/kn.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ko.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/lt.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/mk.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ms.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ne.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/nl.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/nn.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/no.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ota.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/pl.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ps.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/pt-BR.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/pt.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ro.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ru.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/sk.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/sl.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/sv.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ta.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/tg.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/th.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/tk.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/tr.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ua.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/uk.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ur.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/uz.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/vi.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/yo.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/zh-CN.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/zh-TW.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/index.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/voice/aisdk/index.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/voice/default-voice.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/voice/index.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/voice/voice.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/package.json +0 -0
|
@@ -36,6 +36,16 @@ export declare function createDurableToolCallStep(): import("../../../../workflo
|
|
|
36
36
|
completionStartTime?: Date | undefined;
|
|
37
37
|
timeToFirstTokenMs?: number | undefined;
|
|
38
38
|
stepUsage?: any;
|
|
39
|
+
sideBySide?: boolean | undefined;
|
|
40
|
+
response?: {
|
|
41
|
+
id?: string | undefined;
|
|
42
|
+
modelId?: string | undefined;
|
|
43
|
+
servedBy?: {
|
|
44
|
+
provider: string;
|
|
45
|
+
modelId: string;
|
|
46
|
+
} | undefined;
|
|
47
|
+
reportedCost?: import("../../../../stream").ProviderMetadata | undefined;
|
|
48
|
+
} | undefined;
|
|
39
49
|
}, {
|
|
40
50
|
toolCallId: string;
|
|
41
51
|
toolName: string;
|
|
@@ -50,6 +60,16 @@ export declare function createDurableToolCallStep(): import("../../../../workflo
|
|
|
50
60
|
completionStartTime?: Date | undefined;
|
|
51
61
|
timeToFirstTokenMs?: number | undefined;
|
|
52
62
|
stepUsage?: any;
|
|
63
|
+
sideBySide?: boolean | undefined;
|
|
64
|
+
response?: {
|
|
65
|
+
id?: string | undefined;
|
|
66
|
+
modelId?: string | undefined;
|
|
67
|
+
servedBy?: {
|
|
68
|
+
provider: string;
|
|
69
|
+
modelId: string;
|
|
70
|
+
} | undefined;
|
|
71
|
+
reportedCost?: import("../../../../stream").ProviderMetadata | undefined;
|
|
72
|
+
} | undefined;
|
|
53
73
|
result?: any;
|
|
54
74
|
modelOutputComputed?: boolean | undefined;
|
|
55
75
|
mappingError?: {
|
package/dist/agent/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_run_registry = require("../run-registry-
|
|
3
|
-
const require_stream = require("../stream-
|
|
2
|
+
const require_run_registry = require("../run-registry-TOOfO3hT.cjs");
|
|
3
|
+
const require_stream = require("../stream-DH7Qgz8l.cjs");
|
|
4
4
|
const require_message_list = require("../message-list-Cj0Sq_JP.cjs");
|
|
5
5
|
const require_signals = require("../signals-CWxAMEmE.cjs");
|
|
6
6
|
const require_to_prompt = require("../to-prompt-B9eZo2U5.cjs");
|
package/dist/agent/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as assembleAgentFromFsEntry,
|
|
2
|
-
import { dn as resolveThreadIdFromArgs, fn as supportedLanguageModelSpecifications, l as TripWire, ln as isSupportedLanguageModel, mn as tryStreamWithJsonFallback, pn as tryGenerateWithJsonFallback, un as resolveSuspendedToolRunId } from "../stream-
|
|
1
|
+
import { A as assembleAgentFromFsEntry, Hl as isAgentCompatible, M as AGENT_RESUME_CLAIM_STALE_MS, N as Agent, O as agentConfig, Rt as DEFAULT_TOOL_DECLINE_REASON, Sl as isDurableAgentLike, j as MAX_FS_SUBAGENT_DEPTH, js as getGoalActivityDurationMs, k as agentInstructions, xl as hasResumableStreams, zt as resolveDeclineReason } from "../run-registry-DdeEBsVW.js";
|
|
2
|
+
import { dn as resolveThreadIdFromArgs, fn as supportedLanguageModelSpecifications, l as TripWire, ln as isSupportedLanguageModel, mn as tryStreamWithJsonFallback, pn as tryGenerateWithJsonFallback, un as resolveSuspendedToolRunId } from "../stream-C5PagEDs.js";
|
|
3
3
|
import { Q as TypeDetector, n as MessageList, t as convertMessages } from "../message-list-KRbg-TnI.js";
|
|
4
4
|
import { a as isCreatedAgentSignal, c as isUserAuthoredMessage, d as signalSpanAttributes, f as signalToDataPartFormat, h as signalToXmlMarkup, i as getMessageAuthor, l as mastraDBMessageToSignal, m as signalToMessage, n as createSignal, o as isMastraSignalMessage, p as signalToMastraDBMessage, r as dataPartToSignal, s as isTransientSignalMessage, t as createMessageSignal, u as resolveDeliveryAttributes } from "../signals-CqR_iWkg.js";
|
|
5
5
|
import { n as aiV5ModelMessageToV2PromptMessage } from "../to-prompt-BsDtVXrf.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { UIMessage as UIMessageV4, CoreMessage as CoreMessageV4 } from '../../../_types/@internal_ai-sdk-v4@0.0.
|
|
1
|
+
import type { UIMessage as UIMessageV4, CoreMessage as CoreMessageV4 } from '../../../_types/@internal_ai-sdk-v4@0.0.99/dist/index.js';
|
|
2
2
|
import type { MastraDBMessage, MessageSource, UIMessageWithMetadata } from '../state/types.js';
|
|
3
3
|
export type { UIMessageWithMetadata };
|
|
4
4
|
export interface AIV4AdapterContext {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { UIMessage as UIMessageV4, CoreMessage as CoreMessageV4, IdGenerator } from '../../../_types/@internal_ai-sdk-v4@0.0.
|
|
1
|
+
import type { UIMessage as UIMessageV4, CoreMessage as CoreMessageV4, IdGenerator } from '../../../_types/@internal_ai-sdk-v4@0.0.99/dist/index.js';
|
|
2
2
|
import type { MastraDBMessage } from '../state/types.js';
|
|
3
3
|
import type { AIV5Type } from '../types.js';
|
|
4
4
|
export type { MastraDBMessage, MastraMessageV1, MessageSource, MemoryInfo, MastraMessageContentV2, UIMessageWithMetadata, } from '../state/types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { UIMessage as UIMessageV4 } from '../../../_types/@internal_ai-sdk-v4@0.0.
|
|
1
|
+
import type { UIMessage as UIMessageV4 } from '../../../_types/@internal_ai-sdk-v4@0.0.99/dist/index.js';
|
|
2
2
|
import type { AIV5Type, CoreMessageV4 } from '../types.js';
|
|
3
3
|
import type { MastraMessagePart } from './types.js';
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CoreMessage as CoreMessageV4, UIMessage as UIMessageV4 } from '../../../_types/@internal_ai-sdk-v4@0.0.
|
|
1
|
+
import type { CoreMessage as CoreMessageV4, UIMessage as UIMessageV4 } from '../../../_types/@internal_ai-sdk-v4@0.0.99/dist/index.js';
|
|
2
2
|
import type { AdapterContext } from '../adapters/index.js';
|
|
3
3
|
import type { MastraDBMessage, MessageSource } from '../state/types.js';
|
|
4
4
|
import type { AIV5Type, AIV6Type } from '../types.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LanguageModelV2Prompt } from '../../../_types/@ai-sdk_provider@2.0.5/dist/index.js';
|
|
2
|
-
import type { LanguageModelV1Prompt, CoreMessage as CoreMessageV4 } from '../../../_types/@internal_ai-sdk-v4@0.0.
|
|
2
|
+
import type { LanguageModelV1Prompt, CoreMessage as CoreMessageV4 } from '../../../_types/@internal_ai-sdk-v4@0.0.99/dist/index.js';
|
|
3
3
|
import type { AIV5Type } from '../types.js';
|
|
4
4
|
type AIV5LanguageModelV2Message = LanguageModelV2Prompt[0];
|
|
5
5
|
type LanguageModelV1Message = LanguageModelV1Prompt[0];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CoreMessage as CoreMessageV4 } from '../../../_types/@internal_ai-sdk-v4@0.0.
|
|
1
|
+
import type { CoreMessage as CoreMessageV4 } from '../../../_types/@internal_ai-sdk-v4@0.0.99/dist/index.js';
|
|
2
2
|
import type { MastraDBMessage } from '../state/types.js';
|
|
3
3
|
import type { MessageInput } from '../types.js';
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Message as AIV4Message, UIMessage as UIMessageV4 } from '../../../_types/@internal_ai-sdk-v4@0.0.
|
|
1
|
+
import type { Message as AIV4Message, UIMessage as UIMessageV4 } from '../../../_types/@internal_ai-sdk-v4@0.0.99/dist/index.js';
|
|
2
2
|
import type { MastraDBMessage, MastraMessageV1 } from '../state/types.js';
|
|
3
3
|
import type { AIV5Type, AIV6Type, AIV7Type, AIV7ForwardCompatibleUIMessage, CoreMessageV4 } from '../types.js';
|
|
4
4
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { LanguageModelV2Prompt } from '../../_types/@ai-sdk_provider@2.0.5/dist/index.js';
|
|
2
|
-
import type { LanguageModelV1Prompt, CoreMessage as CoreMessageV4 } from '../../_types/@internal_ai-sdk-v4@0.0.
|
|
3
|
-
import type * as AIV4Type from '../../_types/@internal_ai-sdk-v4@0.0.
|
|
2
|
+
import type { LanguageModelV1Prompt, CoreMessage as CoreMessageV4 } from '../../_types/@internal_ai-sdk-v4@0.0.99/dist/index.js';
|
|
3
|
+
import type * as AIV4Type from '../../_types/@internal_ai-sdk-v4@0.0.99/dist/index.js';
|
|
4
4
|
import type { IMastraLogger } from '../../logger/index.js';
|
|
5
5
|
import type { AnySpan } from '../../observability/types/index.js';
|
|
6
6
|
import type { IdGeneratorContext } from '../../types/index.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FilePart, ImagePart, TextPart, UIMessage } from '../../../_types/@internal_ai-sdk-v4@0.0.
|
|
1
|
+
import type { FilePart, ImagePart, TextPart, UIMessage } from '../../../_types/@internal_ai-sdk-v4@0.0.99/dist/index.js';
|
|
2
2
|
type ContentPart = TextPart | ImagePart | FilePart;
|
|
3
3
|
export type Attachment = NonNullable<UIMessage['experimental_attachments']>[number];
|
|
4
4
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LanguageModelV2FilePart, LanguageModelV2TextPart } from '../../../_types/@ai-sdk_provider@2.0.5/dist/index.js';
|
|
2
|
-
import type { ImagePart, FilePart } from '../../../_types/@internal_ai-sdk-v5@0.0.
|
|
2
|
+
import type { ImagePart, FilePart } from '../../../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js';
|
|
3
3
|
export declare function convertImageFilePart(part: ImagePart | FilePart, downloadedAssets?: Record<string, {
|
|
4
4
|
mediaType: string | undefined;
|
|
5
5
|
data: Uint8Array;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CoreSystemMessage } from '../../../_types/@internal_ai-sdk-v4@0.0.
|
|
1
|
+
import type { CoreSystemMessage } from '../../../_types/@internal_ai-sdk-v4@0.0.99/dist/index.js';
|
|
2
2
|
import type { SerializedMessage } from './serialization.js';
|
|
3
3
|
import type { MastraDBMessage, MessageSource, MemoryInfo } from './types.js';
|
|
4
4
|
export type { MessageSource };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { UIMessage as UIMessageV4, CoreMessage as CoreMessageV4 } from '../../../_types/@internal_ai-sdk-v4@0.0.
|
|
2
|
-
import type * as AIV5 from '../../../_types/@internal_ai-sdk-v5@0.0.
|
|
1
|
+
import type { UIMessage as UIMessageV4, CoreMessage as CoreMessageV4 } from '../../../_types/@internal_ai-sdk-v4@0.0.99/dist/index.js';
|
|
2
|
+
import type * as AIV5 from '../../../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js';
|
|
3
3
|
import type { ProviderErrorFacts } from '../../../error/provider-error.js';
|
|
4
4
|
import type { AIV5Type } from '../types.js';
|
|
5
5
|
export type MessageSource = 'memory' | 'response' | 'input' | 'system' | 'context' | 'user';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type { CoreMessage, Message } from '../../_types/@internal_ai-sdk-v4@0.0.
|
|
2
|
-
import type * as AIV5 from '../../_types/@internal_ai-sdk-v5@0.0.
|
|
3
|
-
import type * as AIV6 from '../../_types/@internal_ai-v6@0.0.
|
|
4
|
-
import type * as AIV7 from '../../_types/@internal_ai-v7@0.0.
|
|
1
|
+
import type { CoreMessage, Message } from '../../_types/@internal_ai-sdk-v4@0.0.99/dist/index.js';
|
|
2
|
+
import type * as AIV5 from '../../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js';
|
|
3
|
+
import type * as AIV6 from '../../_types/@internal_ai-v6@0.0.99/dist/index.js';
|
|
4
|
+
import type * as AIV7 from '../../_types/@internal_ai-v7@0.0.99/dist/index.js';
|
|
5
5
|
import type { CreatedAgentSignal } from '../signals.js';
|
|
6
6
|
import type { MastraDBMessage, MastraMessageV1, UIMessageWithMetadata } from './state/types.js';
|
|
7
|
-
export type { CoreMessage as CoreMessageV4, UIMessage as UIMessageV4 } from '../../_types/@internal_ai-sdk-v4@0.0.
|
|
8
|
-
export type * as AIV4Type from '../../_types/@internal_ai-sdk-v4@0.0.
|
|
9
|
-
export type * as AIV5Type from '../../_types/@internal_ai-sdk-v5@0.0.
|
|
10
|
-
export type * as AIV6Type from '../../_types/@internal_ai-v6@0.0.
|
|
11
|
-
export type * as AIV7Type from '../../_types/@internal_ai-v7@0.0.
|
|
7
|
+
export type { CoreMessage as CoreMessageV4, UIMessage as UIMessageV4 } from '../../_types/@internal_ai-sdk-v4@0.0.99/dist/index.js';
|
|
8
|
+
export type * as AIV4Type from '../../_types/@internal_ai-sdk-v4@0.0.99/dist/index.js';
|
|
9
|
+
export type * as AIV5Type from '../../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js';
|
|
10
|
+
export type * as AIV6Type from '../../_types/@internal_ai-v6@0.0.99/dist/index.js';
|
|
11
|
+
export type * as AIV7Type from '../../_types/@internal_ai-v7@0.0.99/dist/index.js';
|
|
12
12
|
export type { MastraDBMessage, MastraMessageV1, MastraMessageContentV2, MastraMessagePart, MastraErrorPart, UIMessageV4Part, MessageSource, MemoryInfo, UIMessageWithMetadata, } from './state/types.js';
|
|
13
13
|
export type AIV5ResponseMessage = AIV5.AssistantModelMessage | AIV5.ToolModelMessage;
|
|
14
14
|
export type AIV6ResponseMessage = AIV6.AssistantModelMessage | AIV6.ToolModelMessage;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type * as AIV4 from '../../../_types/@internal_ai-sdk-v4@0.0.
|
|
2
|
-
import type * as AIV5 from '../../../_types/@internal_ai-sdk-v5@0.0.
|
|
3
|
-
import type * as AIV6 from '../../../_types/@internal_ai-v6@0.0.
|
|
1
|
+
import type * as AIV4 from '../../../_types/@internal_ai-sdk-v4@0.0.99/dist/index.js';
|
|
2
|
+
import type * as AIV5 from '../../../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js';
|
|
3
|
+
import type * as AIV6 from '../../../_types/@internal_ai-v6@0.0.99/dist/index.js';
|
|
4
4
|
import type { MastraDBMessage, UIMessageWithMetadata, MessageListInput } from '../index.js';
|
|
5
5
|
/**
|
|
6
6
|
* Available output formats for message conversion.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ModelMessage, ToolResultPart } from '../../../_types/@internal_ai-sdk-v5@0.0.
|
|
1
|
+
import type { ModelMessage, ToolResultPart } from '../../../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js';
|
|
2
2
|
import type { IMastraLogger } from '../../../logger/index.js';
|
|
3
3
|
import type { MastraDBMessage } from '../state/types.js';
|
|
4
4
|
import type { ResponseItemIdProvider } from './response-item-metadata.js';
|
|
@@ -27,9 +27,10 @@ export declare function snapshotRequestContextEntries(requestContext: RequestCon
|
|
|
27
27
|
* already rebuilt in the step's scope — falling back to it is what keeps
|
|
28
28
|
* request-scoped resolution (tenant/user, workspace, dynamic model/memory)
|
|
29
29
|
* working for tools rebuilt on a cross-process worker, including a delegated
|
|
30
|
-
* subagent's.
|
|
30
|
+
* subagent's. Pass `liveRunContext` only for the same run's original context,
|
|
31
|
+
* not an engine-rebuilt context or another caller's context.
|
|
31
32
|
*/
|
|
32
|
-
export declare function restoreRequestContext(entries?: Record<string, unknown>, runLevel?: RequestContext): RequestContext;
|
|
33
|
+
export declare function restoreRequestContext(entries?: Record<string, unknown>, runLevel?: RequestContext, liveRunContext?: RequestContext): RequestContext;
|
|
33
34
|
/** The token and user entries that `withoutLiveRequestKeys` drops, read from the live context. */
|
|
34
35
|
export declare function liveRequestEntries(runLevel?: RequestContext): [string, unknown][];
|
|
35
36
|
//# sourceMappingURL=request-context-snapshot.d.ts.map
|
package/dist/agent/signals.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FilePart, TextPart, UserModelMessage } from '../_types/@internal_ai-sdk-v5@0.0.
|
|
1
|
+
import type { FilePart, TextPart, UserModelMessage } from '../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js';
|
|
2
2
|
import type { MastraDBMessage, MastraProviderMetadata } from './message-list/state/types.js';
|
|
3
3
|
export type AgentSignalCategory = 'user' | 'state' | 'reactive' | 'notification';
|
|
4
4
|
export type AgentLegacySignalType = 'user-message' | 'system-reminder';
|
|
@@ -43,7 +43,15 @@ export interface AgentRunRecordTarget {
|
|
|
43
43
|
resourceId?: string;
|
|
44
44
|
threadId?: string;
|
|
45
45
|
}
|
|
46
|
-
/**
|
|
46
|
+
/**
|
|
47
|
+
* Lifetime of a running or suspended run's record. Deliberately much longer
|
|
48
|
+
* than the stream log's retention: the record is a single small key, and it is
|
|
49
|
+
* what lets any replica authorize `observe()`/abort/resume on a run parked
|
|
50
|
+
* overnight on a tool approval — long after its replay log expired (the log
|
|
51
|
+
* is recreated with later indices and observers resync; see
|
|
52
|
+
* `MastraServerCache.listPushIndexed`). A finished run's record is deleted by
|
|
53
|
+
* run cleanup; this lifetime bounds it when cleanup never runs.
|
|
54
|
+
*/
|
|
47
55
|
export declare const AGENT_RUN_RECORD_TTL_MS: number;
|
|
48
56
|
export declare const agentRunRecordKey: (agentId: string, runId: string) => string;
|
|
49
57
|
export declare function writeAgentRunRecord(cache: MastraServerCache, record: AgentRunRecord, key?: string): Promise<void>;
|
package/dist/agent/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { GenerateTextOnStepFinishCallback } from '../_types/@internal_ai-sdk-v4@0.0.
|
|
2
|
-
import type { ProviderDefinedTool } from '../_types/@internal_external-types@0.0.
|
|
1
|
+
import type { GenerateTextOnStepFinishCallback } from '../_types/@internal_ai-sdk-v4@0.0.99/dist/index.js';
|
|
2
|
+
import type { ProviderDefinedTool } from '../_types/@internal_external-types@0.0.102/dist/index.js';
|
|
3
3
|
import type { JSONSchema7 } from 'json-schema';
|
|
4
4
|
import type { ZodSchema as ZodSchemaV3 } from 'zod/v3';
|
|
5
5
|
import type { ZodType as ZodTypev4 } from 'zod/v4';
|
|
@@ -50,7 +50,7 @@ import type { AgentStreamsConfig } from './streams/types.js';
|
|
|
50
50
|
import type { SubAgent } from './subagent.js';
|
|
51
51
|
export type { MastraDBMessage, MastraMessageContentV2, MastraMessagePart, UIMessageWithMetadata, MessageList, } from './message-list/index.js';
|
|
52
52
|
export type { ReasoningLevel } from '../loop/types.js';
|
|
53
|
-
export type { Message as AiMessageType } from '../_types/@internal_ai-sdk-v4@0.0.
|
|
53
|
+
export type { Message as AiMessageType } from '../_types/@internal_ai-sdk-v4@0.0.99/dist/index.js';
|
|
54
54
|
export type { NotificationDeliveryPolicyConfig, NotificationDeliveryPolicyDecider, NotificationDeliveryPolicyDecision, NotificationDeliveryPolicyInput, } from '../notifications/delivery-policy.js';
|
|
55
55
|
export type { NotificationDeliveryAction, NotificationDeliveryDecision, NotificationDeliveryThreadState, NotificationPriority, NotificationRecord, NotificationSignalAttributes, NotificationStatus, NotificationSummary, SendNotificationSignalInput, } from '../notifications/types.js';
|
|
56
56
|
export type { LLMStepResult } from '../stream/types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ToolSet } from '../../../_types/@internal_ai-sdk-v5@0.0.
|
|
1
|
+
import type { ToolSet } from '../../../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js';
|
|
2
2
|
import type { ModelLoopStreamArgs } from '../../../llm/model/model.loop.types.js';
|
|
3
3
|
import type { MemoryRunState } from '../../../memory/run-state.js';
|
|
4
4
|
import type { ProcessorState } from '../../../processors/runner.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_provider_registry = require("../../provider-registry-
|
|
2
|
+
const require_provider_registry = require("../../provider-registry-CO1NVbO5.cjs");
|
|
3
3
|
// src/agent-builder/ee/types.ts
|
|
4
4
|
/**
|
|
5
5
|
* Default-on values for {@link AgentFeatures}. `browser` is defaulted
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as getRegisteredProviders, o as isProviderRegistered, u as parseModelString } from "../../provider-registry-
|
|
1
|
+
import { a as getRegisteredProviders, o as isProviderRegistered, u as parseModelString } from "../../provider-registry-CR385GJ4.js";
|
|
2
2
|
// src/agent-builder/ee/types.ts
|
|
3
3
|
/**
|
|
4
4
|
* Default-on values for {@link AgentFeatures}. `browser` is defaulted
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_state_processor = require("../state-processor-kRNZ38Nf.cjs");
|
|
3
3
|
const require_tools = require("../tools-CGF5Ik6j.cjs");
|
|
4
|
-
const require_agent_controller = require("../agent-controller-
|
|
4
|
+
const require_agent_controller = require("../agent-controller-DSnFynpa.cjs");
|
|
5
5
|
exports.AgentController = require_agent_controller.AgentController;
|
|
6
6
|
exports.MODEL_PERSISTENCE_VERSION = require_agent_controller.MODEL_PERSISTENCE_VERSION;
|
|
7
7
|
exports.MODEL_PERSISTENCE_VERSION_KEY = require_agent_controller.MODEL_PERSISTENCE_VERSION_KEY;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { f as taskCheckTool, h as taskWriteTool, m as taskUpdateTool, o as assignTaskIds, p as taskCompleteTool } from "../state-processor-B9kxpM53.js";
|
|
2
2
|
import { s as askUserTool, t as submitPlanTool } from "../tools-CDfyMpzN.js";
|
|
3
|
-
import { a as Session, c as defaultDisplayState, d as SessionStartupCancelledError, f as isSessionNotStartedError, i as MODEL_PERSISTENCE_VERSION_KEY, l as defaultOMProgressState, n as parseSubagentMeta, o as getSuspensionAddressKey, p as isSessionStartupCancelledError, r as MODEL_PERSISTENCE_VERSION, s as migratePersistedModelSelection, t as AgentController, u as SessionNotStartedError } from "../agent-controller-
|
|
3
|
+
import { a as Session, c as defaultDisplayState, d as SessionStartupCancelledError, f as isSessionNotStartedError, i as MODEL_PERSISTENCE_VERSION_KEY, l as defaultOMProgressState, n as parseSubagentMeta, o as getSuspensionAddressKey, p as isSessionStartupCancelledError, r as MODEL_PERSISTENCE_VERSION, s as migratePersistedModelSelection, t as AgentController, u as SessionNotStartedError } from "../agent-controller-B8LoFdtu.js";
|
|
4
4
|
export { AgentController, MODEL_PERSISTENCE_VERSION, MODEL_PERSISTENCE_VERSION_KEY, Session, SessionNotStartedError, SessionStartupCancelledError, askUserTool, assignTaskIds, defaultDisplayState, defaultOMProgressState, getSuspensionAddressKey, isSessionNotStartedError, isSessionStartupCancelledError, migratePersistedModelSelection, parseSubagentMeta, submitPlanTool, taskCheckTool, taskCompleteTool, taskUpdateTool, taskWriteTool };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Agent } from '../agent/index.js';
|
|
2
2
|
import type { SpanChunk } from '../agent/message-list/message-part-spans.js';
|
|
3
3
|
import { MessagePartSpans } from '../agent/message-list/message-part-spans.js';
|
|
4
|
-
import type { MastraDBMessage } from '../agent/message-list/state/types.js';
|
|
4
|
+
import type { MastraDBMessage, MastraMessagePart } from '../agent/message-list/state/types.js';
|
|
5
5
|
import type { AgentThreadSubscription } from '../agent/types.js';
|
|
6
6
|
import type { RequestContext } from '../request-context/index.js';
|
|
7
7
|
import type { Session, SessionMachinery } from './session.js';
|
|
@@ -20,7 +20,7 @@ type StreamDataChunk<TType extends `data-${string}`> = StreamChunkBase<TType> &
|
|
|
20
20
|
data?: unknown;
|
|
21
21
|
};
|
|
22
22
|
type StreamIgnoredChunk = StreamPayloadChunk<'start'> | StreamPayloadChunk<'thread-history'> | StreamPayloadChunk<'abort'> | StreamPayloadChunk<'response-metadata'> | StreamPayloadChunk<'reasoning-signature'> | StreamPayloadChunk<'source'> | StreamPayloadChunk<'file'> | StreamPayloadChunk<'reasoning-file'> | StreamPayloadChunk<'custom'> | StreamPayloadChunk<'raw'> | StreamPayloadChunk<'step-start'> | StreamPayloadChunk<'tool-output'> | StreamPayloadChunk<'tool-call-resumed'> | StreamPayloadChunk<'step-output'> | StreamPayloadChunk<'watch'> | StreamPayloadChunk<'background-task-started'> | StreamPayloadChunk<'background-task-completed'> | StreamPayloadChunk<'background-task-failed'> | StreamPayloadChunk<'background-task-progress'> | StreamPayloadChunk<'background-task-running'> | StreamPayloadChunk<'background-task-cancelled'> | StreamPayloadChunk<'background-task-output'> | StreamPayloadChunk<'background-task-suspended'> | StreamPayloadChunk<'background-task-resumed'> | StreamObjectChunk<'object'> | StreamObjectChunk<'object-result'>;
|
|
23
|
-
type StreamChunk = StreamIgnoredChunk | SpanChunk | StreamPayloadChunk<'tool-call-input-streaming-start'> | StreamPayloadChunk<'tool-call-delta'> | StreamPayloadChunk<'tool-call-input-streaming-end'> | StreamPayloadChunk<'tool-call'> | StreamPayloadChunk<'tool-result'> | StreamPayloadChunk<'tool-error'> | StreamPayloadChunk<'tool-output-denied'> | StreamPayloadChunk<'tool-call-approval'> | StreamPayloadChunk<'tool-call-suspended'> | StreamPayloadChunk<'error'> | StreamPayloadChunk<'tripwire'> | StreamPayloadChunk<'step-finish'> | StreamPayloadChunk<'finish'> | StreamPayloadChunk<'goal'> | StreamPayloadChunk<'is-task-complete'> | StreamDataChunk<'data-om-status'> | StreamDataChunk<'data-om-observation-start'> | StreamDataChunk<'data-om-observation-end'> | StreamDataChunk<'data-om-observation-failed'> | StreamDataChunk<'data-om-buffering-start'> | StreamDataChunk<'data-om-buffering-end'> | StreamDataChunk<'data-om-buffering-failed'> | StreamDataChunk<'data-signal'> | StreamDataChunk<'data-user-message'> | StreamDataChunk<'data-system-reminder'> | StreamDataChunk<'data-om-activation'> | StreamDataChunk<'data-om-thread-update'> | StreamDataChunk<'data-mastracode-tool-progress'> | StreamDataChunk<'data-sandbox-stdout'> | StreamDataChunk<'data-sandbox-stderr'> | StreamDataChunk<'data-sandbox-exit'>;
|
|
23
|
+
type StreamChunk = StreamIgnoredChunk | SpanChunk | StreamPayloadChunk<'tool-call-input-streaming-start'> | StreamPayloadChunk<'tool-call-delta'> | StreamPayloadChunk<'tool-call-input-streaming-end'> | StreamPayloadChunk<'tool-call'> | StreamPayloadChunk<'tool-result'> | StreamPayloadChunk<'tool-error'> | StreamPayloadChunk<'tool-output-denied'> | StreamPayloadChunk<'tool-call-approval'> | StreamPayloadChunk<'tool-call-suspended'> | StreamPayloadChunk<'error'> | StreamPayloadChunk<'tripwire'> | StreamPayloadChunk<'step-finish'> | StreamPayloadChunk<'finish'> | StreamPayloadChunk<'goal'> | StreamPayloadChunk<'is-task-complete'> | StreamDataChunk<'data-om-status'> | StreamDataChunk<'data-om-observation-start'> | StreamDataChunk<'data-om-observation-end'> | StreamDataChunk<'data-om-observation-failed'> | StreamDataChunk<'data-om-buffering-start'> | StreamDataChunk<'data-om-buffering-end'> | StreamDataChunk<'data-om-buffering-failed'> | StreamDataChunk<'data-signal'> | StreamDataChunk<'data-user-message'> | StreamDataChunk<'data-system-reminder'> | StreamDataChunk<'data-om-activation'> | StreamDataChunk<'data-om-thread-update'> | StreamDataChunk<'data-mastracode-tool-progress'> | StreamDataChunk<'data-mastracode-model-fallback'> | StreamDataChunk<'data-sandbox-stdout'> | StreamDataChunk<'data-sandbox-stderr'> | StreamDataChunk<'data-sandbox-exit'>;
|
|
24
24
|
type StreamState = {
|
|
25
25
|
resourceId: string;
|
|
26
26
|
threadId?: string;
|
|
@@ -36,6 +36,8 @@ type StreamState = {
|
|
|
36
36
|
/** Response ids offered by `step-start` — an id binds to at most one display message. */
|
|
37
37
|
offeredResponseIds: Set<string>;
|
|
38
38
|
completedToolPrelude: boolean;
|
|
39
|
+
/** Model-fallback parts saved under the next response's id, held until its `step-start` binds that id. */
|
|
40
|
+
pendingModelFallbackParts: MastraMessagePart[];
|
|
39
41
|
/**
|
|
40
42
|
* Set when a stream ends on a non-success finish reason (e.g. `content-filter`,
|
|
41
43
|
* `error`, `length`). Carries the user-facing message so the run finalizes
|
|
@@ -78,6 +80,7 @@ export declare class SessionRunEngine {
|
|
|
78
80
|
private emitInitialPart;
|
|
79
81
|
private finishCurrentMessage;
|
|
80
82
|
private finishCurrentMessageAndRotate;
|
|
83
|
+
private emitPendingModelFallbacks;
|
|
81
84
|
createStreamState(threadId?: string | undefined, resourceId?: string): StreamState;
|
|
82
85
|
/**
|
|
83
86
|
* Fold a `tool-result`/`tool-error` chunk into the invocation part and
|
|
@@ -1930,6 +1930,8 @@ export declare class Session<TState = unknown> {
|
|
|
1930
1930
|
role?: 'user' | 'assistant' | 'system';
|
|
1931
1931
|
metadata?: Record<string, unknown>;
|
|
1932
1932
|
}): Promise<MastraDBMessage | null>;
|
|
1933
|
+
/** @internal Keep the owning agent with the parked call after its execution scope is released. */
|
|
1934
|
+
__registerStreamSuspension(suspension: PendingSuspension, agent?: Agent): void;
|
|
1933
1935
|
/** @internal Capture the trusted owner snapshot while processing a run's stream. */
|
|
1934
1936
|
__captureRunThreadOwnerId(runId: string, requestContext: RequestContext): void;
|
|
1935
1937
|
/**
|
|
@@ -290,6 +290,29 @@ export interface AgentControllerConfig<TState = {}> {
|
|
|
290
290
|
* via each gateway's `resolveAuth()` / env-var configuration.
|
|
291
291
|
*/
|
|
292
292
|
gateways?: MastraModelGatewayInterface[];
|
|
293
|
+
/**
|
|
294
|
+
* Whether the model catalog and auth checks also consult the router's
|
|
295
|
+
* default gateways, which read provider credentials from the process
|
|
296
|
+
* environment. Set to `false` when only `gateways` may be used.
|
|
297
|
+
* @default true
|
|
298
|
+
*/
|
|
299
|
+
includeDefaultGateways?: boolean;
|
|
300
|
+
/**
|
|
301
|
+
* Whether runs add automatic provider-side fallback models for the selected
|
|
302
|
+
* model, such as retrying a blocked `claude-fable-5` turn on
|
|
303
|
+
* `claude-opus-4-8`. Set to `false` when only the agent's own model may run.
|
|
304
|
+
* @default true
|
|
305
|
+
*/
|
|
306
|
+
modelFallbacks?: boolean;
|
|
307
|
+
/**
|
|
308
|
+
* Whether backing agents are registered on the controller's Mastra, which
|
|
309
|
+
* lists them in `listAgents()` and lets the generic `/agents` server routes
|
|
310
|
+
* run them outside the controller. Set to `false` so they only run through
|
|
311
|
+
* this controller. Unregistered agents don't take the Mastra instance's
|
|
312
|
+
* `durable` defaults, and deferred notification delivery can't resolve them.
|
|
313
|
+
* @default true
|
|
314
|
+
*/
|
|
315
|
+
registerAgents?: boolean;
|
|
293
316
|
/**
|
|
294
317
|
* Observational Memory configuration defaults.
|
|
295
318
|
* The AgentController auto-manages OM state (model IDs, thresholds) internally
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Bt as getServerSideFallbackInfo, In as CHAT_CHANNEL_RENDER_CONTEXT_KEY, N as Agent, X as MessagePartSpans, Z as isSpanChunk, f as AgentThreadLeaseLostError, g as describeNonSuccessFinishReason, h as AGENTIC_LOOP_WORKFLOW_ID, ka as validateStorageMetadataFilter, kt as DurableStepIds, m as AGENTIC_EXECUTION_WORKFLOW_ID, p as agentThreadStreamRuntime, ri as InMemoryMemory } from "./run-registry-DdeEBsVW.js";
|
|
2
2
|
import { n as MessageList } from "./message-list-KRbg-TnI.js";
|
|
3
3
|
import { c as isUserAuthoredMessage, n as createSignal, u as resolveDeliveryAttributes } from "./signals-CqR_iWkg.js";
|
|
4
4
|
import { i as MastraFGAPermissions } from "./ee-iTj2bRDt-By_B9ngH.js";
|
|
5
|
-
import { t as AgentControllerChannels } from "./channels-
|
|
6
|
-
import { a as ModelRouterLanguageModel, l as defaultGateways, s as GatewayManager } from "./llm-
|
|
7
|
-
import { t as Mastra } from "./mastra-
|
|
8
|
-
import { Kt as TITLE_PINNED_THREAD_METADATA_KEY, Mn as createRunScopeKey } from "./stream-
|
|
5
|
+
import { t as AgentControllerChannels } from "./channels-Wh32drgu.js";
|
|
6
|
+
import { a as ModelRouterLanguageModel, l as defaultGateways, s as GatewayManager } from "./llm-B1zaFLYZ.js";
|
|
7
|
+
import { t as Mastra } from "./mastra-CUGfgEpZ.js";
|
|
8
|
+
import { Kt as TITLE_PINNED_THREAD_METADATA_KEY, Mn as createRunScopeKey } from "./stream-C5PagEDs.js";
|
|
9
9
|
import { c as MASTRA_THREAD_ID_KEY, i as MASTRA_MESSAGE_AUTHOR_KEY, o as MASTRA_RESOURCE_ID_KEY, u as RequestContext } from "./request-context-COnZHt2-.js";
|
|
10
10
|
import { n as resolveDynamicArgument } from "./dynamic-argument-BzPK3qPN.js";
|
|
11
11
|
import { i as MastraError, o as getErrorFromUnknown } from "./error-oh2DLsP2.js";
|
|
12
12
|
import { toStandardSchema } from "./schema/index.js";
|
|
13
13
|
import { safeStringify } from "./utils/safe-stringify.js";
|
|
14
14
|
import { o as Workspace, p as createWorkspaceTools } from "./workspace-DY2Nxiyi.js";
|
|
15
|
-
import {
|
|
15
|
+
import { x as isLeaseProvider } from "./output-helpers-CVzhy1Y0.js";
|
|
16
16
|
import { n as hasTransformedToolPayload, t as getTransformedToolPayload } from "./payload-transform-Dj3HUeD4.js";
|
|
17
17
|
import { s as askUserTool, t as submitPlanTool } from "./tools-CDfyMpzN.js";
|
|
18
18
|
import { r as createTool, s as isValidationError } from "./tool-Z3bykc1m.js";
|
|
@@ -585,6 +585,12 @@ var SessionRunEngine = class {
|
|
|
585
585
|
state.toolPartById.clear();
|
|
586
586
|
state.completedToolPrelude = false;
|
|
587
587
|
}
|
|
588
|
+
emitPendingModelFallbacks(state) {
|
|
589
|
+
for (const part of state.pendingModelFallbackParts.splice(0)) {
|
|
590
|
+
const index = state.currentMessage.content.parts.push(part) - 1;
|
|
591
|
+
this.emitMessagePart(state, index);
|
|
592
|
+
}
|
|
593
|
+
}
|
|
588
594
|
createStreamState(threadId = this.#session.thread.getId() ?? void 0, resourceId = this.#session.identity.getResourceId()) {
|
|
589
595
|
return {
|
|
590
596
|
resourceId,
|
|
@@ -598,7 +604,8 @@ var SessionRunEngine = class {
|
|
|
598
604
|
messageIdObserved: false,
|
|
599
605
|
toolPartById: /* @__PURE__ */ new Map(),
|
|
600
606
|
offeredResponseIds: /* @__PURE__ */ new Set(),
|
|
601
|
-
completedToolPrelude: false
|
|
607
|
+
completedToolPrelude: false,
|
|
608
|
+
pendingModelFallbackParts: []
|
|
602
609
|
};
|
|
603
610
|
}
|
|
604
611
|
/**
|
|
@@ -795,7 +802,10 @@ var SessionRunEngine = class {
|
|
|
795
802
|
const messageId = getString(payload.messageId);
|
|
796
803
|
if (!messageId) break;
|
|
797
804
|
if (state.offeredResponseIds.has(messageId)) {
|
|
798
|
-
if (messageId === state.currentMessage.id)
|
|
805
|
+
if (messageId === state.currentMessage.id) {
|
|
806
|
+
this.stampResponseModel(state.currentMessage, payload);
|
|
807
|
+
this.emitPendingModelFallbacks(state);
|
|
808
|
+
}
|
|
799
809
|
break;
|
|
800
810
|
}
|
|
801
811
|
if (state.offeredResponseIds.size > 0 || state.completedToolPrelude && state.currentMessage.content.parts.every((part) => part.type === "tool-invocation" && part.toolInvocation.state === "result")) this.finishCurrentMessageAndRotate(state);
|
|
@@ -803,6 +813,7 @@ var SessionRunEngine = class {
|
|
|
803
813
|
state.offeredResponseIds.add(messageId);
|
|
804
814
|
if (!this.isCurrentMessageObserved(state)) state.currentMessage.id = messageId;
|
|
805
815
|
this.stampResponseModel(state.currentMessage, payload);
|
|
816
|
+
if (state.currentMessage.id === messageId) this.emitPendingModelFallbacks(state);
|
|
806
817
|
break;
|
|
807
818
|
}
|
|
808
819
|
case "tool-call-input-streaming-start": {
|
|
@@ -1124,13 +1135,13 @@ var SessionRunEngine = class {
|
|
|
1124
1135
|
threadId: suspThreadId,
|
|
1125
1136
|
resourceId: suspResourceId
|
|
1126
1137
|
});
|
|
1127
|
-
this.#session.
|
|
1138
|
+
this.#session.__registerStreamSuspension({
|
|
1128
1139
|
toolCallId: suspToolCallId,
|
|
1129
1140
|
runId: suspRunId,
|
|
1130
1141
|
toolName: suspToolName,
|
|
1131
1142
|
threadId: suspThreadId,
|
|
1132
1143
|
resourceId: suspResourceId
|
|
1133
|
-
});
|
|
1144
|
+
}, runScope?.get(SUSPENDED_RUN_AGENT_KEY));
|
|
1134
1145
|
}
|
|
1135
1146
|
}
|
|
1136
1147
|
state.isSuspended = true;
|
|
@@ -1501,6 +1512,12 @@ var SessionRunEngine = class {
|
|
|
1501
1512
|
}
|
|
1502
1513
|
break;
|
|
1503
1514
|
}
|
|
1515
|
+
case "data-mastracode-model-fallback":
|
|
1516
|
+
state.pendingModelFallbackParts.push({
|
|
1517
|
+
type: chunk.type,
|
|
1518
|
+
data: chunk.data
|
|
1519
|
+
});
|
|
1520
|
+
break;
|
|
1504
1521
|
case "data-sandbox-stdout": {
|
|
1505
1522
|
const d = getDataRecord(chunk);
|
|
1506
1523
|
const output = getString(d?.output);
|
|
@@ -6234,6 +6251,13 @@ var Session = class {
|
|
|
6234
6251
|
#claimedToolResponses = /* @__PURE__ */ new Set();
|
|
6235
6252
|
#suspensionAgents = /* @__PURE__ */ new WeakMap();
|
|
6236
6253
|
#threadOwnerIdsByRunId = /* @__PURE__ */ new Map();
|
|
6254
|
+
/** @internal Keep the owning agent with the parked call after its execution scope is released. */
|
|
6255
|
+
__registerStreamSuspension(suspension, agent) {
|
|
6256
|
+
const previous = this.suspensions.get(suspension);
|
|
6257
|
+
const owner = (previous && this.#suspensionAgents.get(previous)) ?? agent;
|
|
6258
|
+
this.suspensions.register(suspension);
|
|
6259
|
+
if (owner) this.#suspensionAgents.set(this.suspensions.get(suspension), owner);
|
|
6260
|
+
}
|
|
6237
6261
|
/** @internal Capture the trusted owner snapshot while processing a run's stream. */
|
|
6238
6262
|
__captureRunThreadOwnerId(runId, requestContext) {
|
|
6239
6263
|
const threadOwnerId = requestContext.getRaw(THREAD_OWNER_ID_CONTEXT_KEY);
|
|
@@ -7656,7 +7680,7 @@ var AgentController = class {
|
|
|
7656
7680
|
this.#channels = new AgentControllerChannels(config.channels);
|
|
7657
7681
|
this.#channels.__setController(this);
|
|
7658
7682
|
}
|
|
7659
|
-
this.#gatewayManager = new GatewayManager([...config.gateways ?? [], ...defaultGateways]);
|
|
7683
|
+
this.#gatewayManager = new GatewayManager([...config.gateways ?? [], ...config.includeDefaultGateways === false ? [] : defaultGateways]);
|
|
7660
7684
|
const remoteGateways = new Set(defaultGateways);
|
|
7661
7685
|
this.#modelCatalog = new ModelCatalogCache(this.#gatewayManager, (gateway) => remoteGateways.has(gateway));
|
|
7662
7686
|
const defaultMode = config.defaultModeId ? config.modes.find((mode) => mode.id === config.defaultModeId) : config.modes.find((mode) => mode.default || mode.metadata?.default === true) ?? config.modes[0];
|
|
@@ -8713,7 +8737,13 @@ var AgentController = class {
|
|
|
8713
8737
|
const mastra = this.getMastra();
|
|
8714
8738
|
if (mastra && agent.getMastraInstance() !== mastra) {
|
|
8715
8739
|
if (this.#applicationPubSub && !agent.hasOwnPubSub()) agent.__setPubSub(mastra === this.#internalMastra ? this.#applicationPubSub : mastra.pubsub);
|
|
8716
|
-
if (
|
|
8740
|
+
if (this.config.registerAgents === false) {
|
|
8741
|
+
agent.__registerPrimitives({
|
|
8742
|
+
logger: mastra.getLogger(),
|
|
8743
|
+
storage: mastra.getStorage()
|
|
8744
|
+
});
|
|
8745
|
+
agent.__registerMastra(mastra);
|
|
8746
|
+
} else if (!mastra.listAgents()[agent.id]) mastra.addAgent(agent);
|
|
8717
8747
|
}
|
|
8718
8748
|
if (this.workspace && typeof agent.hasOwnWorkspace === "function" && !agent.hasOwnWorkspace()) agent.__setWorkspace(this.workspace);
|
|
8719
8749
|
if (this.browser && typeof agent.hasOwnBrowser === "function" && !agent.hasOwnBrowser() && typeof this.browser !== "function") agent.setBrowser(this.browser);
|
|
@@ -9120,7 +9150,7 @@ var AgentController = class {
|
|
|
9120
9150
|
toolCallConcurrency: { strategy: "called" },
|
|
9121
9151
|
onStepFinish: this.createUsageRecorder(context?.threadId ?? session.thread.getId())
|
|
9122
9152
|
};
|
|
9123
|
-
const fableFallback = buildFableFallbackProviderOptions(context?.session.modelId ?? session.model.get());
|
|
9153
|
+
const fableFallback = this.config.modelFallbacks === false ? void 0 : buildFableFallbackProviderOptions(context?.session.modelId ?? session.model.get());
|
|
9124
9154
|
if (fableFallback) shared.providerOptions = { anthropic: { ...fableFallback.anthropic } };
|
|
9125
9155
|
return shared;
|
|
9126
9156
|
}
|