@mastra/core 1.87.0-alpha.9 → 1.88.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_types/{@internal_ai-sdk-v4@0.0.99 → @internal_ai-sdk-v4@0.0.100}/dist/index.d.ts +1 -1
- package/dist/_types/{@internal_ai-sdk-v5@0.0.99 → @internal_ai-sdk-v5@0.0.100}/dist/index.d.ts +1 -1
- package/dist/_types/{@internal_ai-v6@0.0.99 → @internal_ai-v6@0.0.100}/dist/index.d.ts +1 -1
- package/dist/_types/{@internal_ai-v7@0.0.99 → @internal_ai-v7@0.0.100}/dist/index.d.ts +1 -1
- package/dist/_types/@internal_core@0.1.4/dist/knowledge-compat/index.d.ts +79 -3
- package/dist/_types/{@internal_voice@0.0.48/dist/_types/@internal_ai-sdk-v5@0.0.99 → @internal_voice@0.0.49/dist/_types/@internal_ai-sdk-v5@0.0.100}/dist/index.d.ts +1 -1
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/voice/aisdk/speech.d.ts +1 -1
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/voice/aisdk/transcription.d.ts +1 -1
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/voice/composite-voice.d.ts +1 -1
- package/dist/a2a/index.cjs +1 -1
- package/dist/a2a/index.js +1 -1
- package/dist/agent/active-run-signal-queues.d.ts +49 -0
- package/dist/agent/agent-legacy.d.ts +1 -1
- package/dist/agent/agent.d.ts +30 -8
- package/dist/agent/agent.types.d.ts +2 -1
- package/dist/agent/durable/abort-transport.d.ts +1 -1
- package/dist/agent/durable/create-evented-agent.d.ts +2 -1
- package/dist/agent/durable/durable-agent.d.ts +4 -3
- package/dist/agent/durable/execution-engine.d.ts +14 -0
- package/dist/agent/durable/index.cjs +88 -87
- package/dist/agent/durable/index.js +4 -3
- package/dist/agent/durable/preparation.d.ts +17 -0
- package/dist/agent/durable/run-registry.d.ts +56 -25
- package/dist/agent/durable/segment-spans.d.ts +7 -0
- package/dist/agent/durable/stored-signal-drain.d.ts +100 -0
- package/dist/agent/durable/stream-adapter.d.ts +1 -1
- package/dist/agent/durable/types.d.ts +51 -2
- package/dist/agent/durable/utils/resolve-runtime.d.ts +16 -0
- package/dist/agent/durable/utils/serialize-state.d.ts +1 -0
- package/dist/agent/durable/workflows/create-durable-agentic-workflow.d.ts +1 -0
- package/dist/agent/durable/workflows/durable-loop-builder.d.ts +5 -0
- package/dist/agent/durable/workflows/finalize-run.d.ts +7 -1
- package/dist/agent/durable/workflows/shared/message-list-state.d.ts +6 -2
- package/dist/agent/durable/workflows/shared/schemas.d.ts +2 -0
- package/dist/agent/durable/workflows/steps/llm-execution.d.ts +1 -0
- package/dist/agent/index.cjs +17 -17
- package/dist/agent/index.d.ts +1 -0
- package/dist/agent/index.js +4 -4
- 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/index.cjs +1 -1
- package/dist/agent/message-list/index.js +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 +6 -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 +5 -0
- package/dist/agent/scopes.d.ts +8 -0
- package/dist/agent/signals.d.ts +8 -4
- package/dist/agent/stored-run-signals.d.ts +93 -0
- package/dist/agent/stored-signals.d.ts +40 -0
- package/dist/agent/streams/abort-transport.d.ts +10 -1
- package/dist/agent/streams/constants.d.ts +9 -0
- package/dist/agent/streams/publisher.d.ts +3 -1
- package/dist/agent/thread-stream-runtime.d.ts +70 -6
- package/dist/agent/tool-name.d.ts +21 -0
- package/dist/agent/types.d.ts +4 -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/agent-controller.d.ts +8 -1
- package/dist/agent-controller/index.cjs +3 -3
- package/dist/agent-controller/index.js +3 -3
- package/dist/agent-controller/session.d.ts +38 -1
- package/dist/agent-controller/types.d.ts +6 -0
- package/dist/{agent-controller-fazk0U_b.js → agent-controller-CQDCmsFD.js} +126 -220
- package/dist/{agent-controller-ZCQy7cOG.cjs → agent-controller-NQKYmY0W.cjs} +150 -244
- package/dist/{agent-skills-resolver-BMoCDoaK.cjs → agent-skills-resolver-2d8k7ioj.cjs} +134 -109
- package/dist/{agent-skills-resolver-CUEIMDbx.js → agent-skills-resolver-D2HktP6Y.js} +134 -109
- 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 +3 -1
- package/dist/background-tasks/workflow-id.d.ts +42 -0
- package/dist/{background-tasks-DlLB_pJR.js → background-tasks-B7UygDdO.js} +239 -28
- package/dist/{background-tasks-B63welNM.cjs → background-tasks-CeARf1DK.cjs} +262 -27
- package/dist/browser/index.cjs +17 -8
- package/dist/browser/index.js +17 -8
- package/dist/browser/processor.d.ts +1 -0
- package/dist/{builder-D82iR2oQ.js → builder-CpAEmMdR.js} +2 -2
- package/dist/{builder-DCaL4xmU.cjs → builder-Dmf04g9P.cjs} +3 -3
- package/dist/bundler/index.d.ts +2 -2
- package/dist/capabilities/302ai.json +197 -197
- package/dist/capabilities/abacus.json +2 -96
- package/dist/capabilities/abliteratedllm.json +37 -37
- package/dist/capabilities/abliteration-ai.json +12 -12
- package/dist/capabilities/above.json +17 -17
- package/dist/capabilities/adaption.json +12 -12
- package/dist/capabilities/adzuki.json +20 -20
- package/dist/capabilities/agentrouter.json +8 -8
- package/dist/capabilities/agnes.json +4 -4
- package/dist/capabilities/ai-router.json +7 -7
- package/dist/capabilities/aiand.json +23 -31
- package/dist/capabilities/aigrow.json +14 -14
- package/dist/capabilities/aimlapi.json +143 -145
- package/dist/capabilities/aipg.json +2 -2
- package/dist/capabilities/aixy.json +11 -11
- package/dist/capabilities/aki-io.json +12 -12
- package/dist/capabilities/alibaba-cn.json +119 -128
- package/dist/capabilities/alibaba-coding-plan-cn.json +5 -10
- package/dist/capabilities/alibaba-coding-plan.json +5 -10
- package/dist/capabilities/alibaba-token-plan-cn.json +53 -49
- package/dist/capabilities/alibaba-token-plan.json +53 -49
- package/dist/capabilities/alibaba.json +101 -70
- package/dist/capabilities/ambient.json +10 -28
- package/dist/capabilities/amd-tokenlab.json +41 -0
- package/dist/capabilities/amd.json +11 -11
- package/dist/capabilities/anthropic.json +38 -62
- package/dist/capabilities/anyapi.json +18 -18
- package/dist/capabilities/arcee.json +7 -7
- 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 +44 -35
- package/dist/capabilities/bee.json +5 -5
- package/dist/capabilities/berget.json +2 -35
- package/dist/capabilities/bothub.json +14 -14
- package/dist/capabilities/boundless.json +32 -32
- package/dist/capabilities/bumo.json +42 -42
- package/dist/capabilities/byteplus.json +30 -30
- package/dist/capabilities/cheapaimodel.json +8 -8
- package/dist/capabilities/cheapest-token.json +30 -30
- package/dist/capabilities/chutes.json +88 -7
- package/dist/capabilities/cline-pass.json +29 -42
- package/dist/capabilities/cloudcode.json +6 -6
- package/dist/capabilities/cloudflare-workers-ai.json +13 -13
- package/dist/capabilities/commandcode.json +141 -156
- package/dist/capabilities/concentrate.json +288 -271
- package/dist/capabilities/cortecs.json +105 -105
- package/dist/capabilities/crossmodel.json +177 -177
- package/dist/capabilities/crusoe.json +12 -12
- package/dist/capabilities/daoxe.json +9 -9
- package/dist/capabilities/databricks.json +136 -128
- package/dist/capabilities/deepinfra.json +105 -95
- package/dist/capabilities/deepseek.json +3 -3
- package/dist/capabilities/digitalocean.json +113 -114
- package/dist/capabilities/dinference.json +1 -2
- package/dist/capabilities/dothoosh.json +28 -28
- package/dist/capabilities/doubleword.json +26 -26
- package/dist/capabilities/edenai.json +298 -280
- package/dist/capabilities/empiriolabs.json +180 -171
- package/dist/capabilities/engy.json +23 -17
- package/dist/capabilities/entrim.json +6 -6
- package/dist/capabilities/evroc.json +12 -12
- package/dist/capabilities/ezkielyna.json +7 -7
- package/dist/capabilities/fastrouter.json +81 -85
- package/dist/capabilities/fireworks-ai.json +100 -100
- package/dist/capabilities/fortytwo.json +4 -4
- package/dist/capabilities/freemodel.json +7 -51
- package/dist/capabilities/friendli.json +26 -5
- package/dist/capabilities/frogbot.json +92 -100
- package/dist/capabilities/gisoo.json +19 -19
- package/dist/capabilities/gmicloud.json +11 -11
- package/dist/capabilities/google.json +43 -43
- package/dist/capabilities/graphn.json +14 -14
- package/dist/capabilities/greenpt.json +37 -37
- package/dist/capabilities/groq.json +7 -20
- package/dist/capabilities/helicone.json +80 -82
- package/dist/capabilities/hetzner.json +4 -4
- package/dist/capabilities/hostinger-router.json +9 -16
- package/dist/capabilities/hpc-ai.json +9 -25
- package/dist/capabilities/huawei-maas.json +12 -12
- package/dist/capabilities/hubris.json +29 -29
- package/dist/capabilities/huggingface.json +94 -85
- package/dist/capabilities/humain.json +2 -2
- package/dist/capabilities/hyper.json +22 -22
- package/dist/capabilities/impossibl.json +121 -168
- package/dist/capabilities/inception.json +3 -3
- package/dist/capabilities/inceptron.json +8 -8
- package/dist/capabilities/inco.json +5 -22
- package/dist/capabilities/infer.json +11 -11
- package/dist/capabilities/inferall.json +3 -19
- package/dist/capabilities/inference-coop.json +15 -15
- package/dist/capabilities/inference.json +2 -11
- package/dist/capabilities/inferenceapis.json +21 -21
- package/dist/capabilities/inferris.json +4 -4
- package/dist/capabilities/infersia.json +7 -7
- package/dist/capabilities/inferx.json +2 -2
- package/dist/capabilities/infomaniak.json +3 -3
- package/dist/capabilities/io-net.json +3 -13
- package/dist/capabilities/iteracompute.json +38 -76
- package/dist/capabilities/jalapeno.json +11 -11
- package/dist/capabilities/jiekou.json +19 -167
- package/dist/capabilities/joingonka.json +4 -4
- package/dist/capabilities/jzstoken.json +47 -47
- package/dist/capabilities/keln.json +22 -22
- package/dist/capabilities/kenari.json +129 -120
- package/dist/capabilities/kilo.json +629 -653
- package/dist/capabilities/kimchi.json +90 -0
- package/dist/capabilities/kimi-code-plan-cn.json +9 -9
- package/dist/capabilities/kimi-code-plan-global.json +9 -9
- package/dist/capabilities/kitani.json +6 -6
- package/dist/capabilities/klavo.json +24 -24
- package/dist/capabilities/korouter.json +34 -34
- package/dist/capabilities/kunavo.json +4 -4
- package/dist/capabilities/liquid.json +11 -11
- package/dist/capabilities/lithosai.json +2 -2
- package/dist/capabilities/llmgateway-providers.json +934 -943
- package/dist/capabilities/llmgateway.json +347 -324
- package/dist/capabilities/llmtr.json +22 -60
- package/dist/capabilities/longcat.json +2 -2
- package/dist/capabilities/lowrouter.json +51 -51
- package/dist/capabilities/lyceum.json +16 -16
- package/dist/capabilities/meganova.json +0 -1
- package/dist/capabilities/melious.json +12 -12
- package/dist/capabilities/merge-gateway.json +303 -281
- package/dist/capabilities/meta.json +11 -11
- package/dist/capabilities/minimax-cn-coding-plan.json +6 -6
- package/dist/capabilities/minimax-coding-plan.json +6 -6
- package/dist/capabilities/mistral.json +11 -27
- package/dist/capabilities/mixlayer.json +5 -5
- package/dist/capabilities/moark.json +0 -2
- package/dist/capabilities/modal.json +12 -12
- package/dist/capabilities/model-oracle-ai.json +18 -26
- package/dist/capabilities/modelis.json +17 -17
- package/dist/capabilities/modular.json +12 -12
- package/dist/capabilities/moneo.json +3 -34
- package/dist/capabilities/moonshotai-cn.json +7 -7
- package/dist/capabilities/moonshotai.json +7 -7
- package/dist/capabilities/morph.json +22 -14
- package/dist/capabilities/munito-eu.json +6 -6
- package/dist/capabilities/munito.json +10 -10
- package/dist/capabilities/nan.json +30 -30
- package/dist/capabilities/nano-gpt.json +580 -596
- package/dist/capabilities/nearai.json +81 -81
- package/dist/capabilities/nebius.json +41 -34
- package/dist/capabilities/neon.json +135 -135
- package/dist/capabilities/neuralwatt.json +40 -40
- package/dist/capabilities/nokeep.json +2 -2
- package/dist/capabilities/novita-ai.json +106 -220
- package/dist/capabilities/nvidia.json +22 -80
- package/dist/capabilities/oathbreaker.json +5 -5
- package/dist/capabilities/obscurify.json +24 -24
- package/dist/capabilities/oci.json +9 -9
- package/dist/capabilities/ofox.json +205 -569
- package/dist/capabilities/ollama-cloud.json +57 -57
- package/dist/capabilities/openai.json +57 -60
- package/dist/capabilities/opencode-go.json +103 -95
- package/dist/capabilities/openreason.json +5 -5
- package/dist/capabilities/openrouter.json +551 -577
- package/dist/capabilities/opper.json +26 -31
- package/dist/capabilities/orcarouter.json +414 -199
- package/dist/capabilities/outerlabs.json +33 -33
- package/dist/capabilities/ovhcloud.json +16 -17
- package/dist/capabilities/pareto.json +2 -7
- package/dist/capabilities/perplexity-agent.json +101 -66
- package/dist/capabilities/perplexity.json +2 -2
- package/dist/capabilities/phala.json +34 -34
- package/dist/capabilities/pioneer.json +5 -122
- package/dist/capabilities/poe.json +140 -140
- package/dist/capabilities/poolside.json +3 -3
- package/dist/capabilities/powerspring.json +9 -9
- package/dist/capabilities/primalabs.json +7 -7
- package/dist/capabilities/prime.json +131 -115
- package/dist/capabilities/privatemode-ai.json +9 -37
- package/dist/capabilities/proxystacks.json +7 -7
- package/dist/capabilities/qihang-ai.json +3 -15
- package/dist/capabilities/qiniu-ai.json +14 -88
- package/dist/capabilities/refuseless.json +4 -11
- package/dist/capabilities/regolo-ai.json +6 -10
- package/dist/capabilities/requesty.json +249 -208
- package/dist/capabilities/routing-run.json +3 -40
- package/dist/capabilities/ruapi.json +17 -17
- package/dist/capabilities/runcrate.json +13 -13
- package/dist/capabilities/runinfra.json +15 -15
- package/dist/capabilities/sakana.json +6 -6
- package/dist/capabilities/sambanova.json +5 -5
- package/dist/capabilities/sandbase.json +23 -23
- package/dist/capabilities/sarvam.json +17 -8
- package/dist/capabilities/scaleway.json +14 -14
- package/dist/capabilities/scnet-token-plan.json +10 -10
- package/dist/capabilities/scx-ai.json +12 -28
- package/dist/capabilities/sensenova.json +9 -9
- package/dist/capabilities/siliconflow-cn.json +63 -97
- package/dist/capabilities/siliconflow.json +63 -63
- package/dist/capabilities/snowflake-cortex.json +28 -28
- package/dist/capabilities/sokkan.json +8 -20
- package/dist/capabilities/sparrowcodes.json +19 -19
- package/dist/capabilities/stackit.json +1 -2
- package/dist/capabilities/standardcompute.json +77 -113
- package/dist/capabilities/steadyrouter.json +45 -45
- package/dist/capabilities/stepfun-ai-step-plan.json +14 -8
- package/dist/capabilities/stepfun-ai.json +21 -7
- package/dist/capabilities/stepfun-step-plan.json +14 -7
- package/dist/capabilities/stepfun.json +21 -7
- package/dist/capabilities/stepping-stone.json +12 -12
- package/dist/capabilities/synthetic.json +9 -18
- package/dist/capabilities/synthorai.json +22 -22
- package/dist/capabilities/teamorouter.json +21 -21
- package/dist/capabilities/teapot-router.json +10 -10
- package/dist/capabilities/tencent-token-plan-intl.json +20 -20
- package/dist/capabilities/tencent-token-plan.json +45 -45
- package/dist/capabilities/tencent-tokenhub.json +47 -47
- package/dist/capabilities/tensorx.json +50 -50
- package/dist/capabilities/tenstorrent.json +6 -6
- package/dist/capabilities/the-grid-ai.json +28 -28
- package/dist/capabilities/thinkingmachines.json +61 -61
- package/dist/capabilities/tinfoil.json +12 -12
- package/dist/capabilities/toapis.json +3 -3
- package/dist/capabilities/togetherai.json +50 -58
- package/dist/capabilities/tokengo.json +21 -21
- package/dist/capabilities/tokenharbor.json +738 -0
- package/dist/capabilities/tokenify.json +2 -2
- package/dist/capabilities/trustedrouter.json +6 -6
- package/dist/capabilities/trustedtokens.json +12 -12
- package/dist/capabilities/umans-ai-coding-plan.json +14 -14
- package/dist/capabilities/umans-ai.json +11 -11
- package/dist/capabilities/uncensuredai.json +4 -4
- package/dist/capabilities/unorouter.json +1 -22
- package/dist/capabilities/unrestricted.json +6 -22
- package/dist/capabilities/uplinkswitch.json +20 -20
- package/dist/capabilities/upstage.json +3 -15
- package/dist/capabilities/vancine.json +21 -21
- package/dist/capabilities/vercel.json +628 -593
- package/dist/capabilities/verda.json +8 -1
- package/dist/capabilities/vivgrid.json +55 -135
- package/dist/capabilities/volcengine-coding-plan.json +25 -25
- package/dist/capabilities/volcengine.json +24 -24
- package/dist/capabilities/vultr.json +12 -65
- package/dist/capabilities/wafer.ai.json +17 -17
- package/dist/capabilities/wallaby.json +2 -2
- package/dist/capabilities/wally.json +9 -9
- package/dist/capabilities/wandb.json +21 -21
- package/dist/capabilities/watt.json +23 -23
- package/dist/capabilities/xai.json +6 -6
- package/dist/capabilities/xpersona.json +11 -11
- package/dist/capabilities/xxapi.json +25 -25
- package/dist/capabilities/zai-coding-plan.json +15 -15
- package/dist/capabilities/zai.json +37 -28
- package/dist/capabilities/zenifra.json +26 -26
- package/dist/capabilities/zenmux.json +151 -194
- package/dist/capabilities/zerogpu.json +12 -12
- package/dist/capabilities/zhipuai-coding-plan.json +5 -16
- package/dist/capabilities/zhipuai.json +44 -28
- package/dist/capabilities/zro.json +7 -7
- package/dist/channels/index.cjs +24 -24
- package/dist/channels/index.js +2 -2
- package/dist/channels/reply-tool.d.ts +5 -1
- package/dist/{channels-Bs8wDPDl.js → channels-BQ--aLCA.js} +2 -2
- package/dist/{channels-BXZbY7TL.cjs → channels-CTCBsS5M.cjs} +6 -6
- package/dist/coding-agent/index.cjs +7 -7
- package/dist/coding-agent/index.js +4 -4
- package/dist/{constants-Bou0hEgY.cjs → constants-B2FVV_2e.cjs} +9 -1
- package/dist/{constants-CFWgIaqA.js → constants-Dro9fuhk.js} +9 -1
- package/dist/datasets/index.cjs +9 -9
- package/dist/datasets/index.js +2 -2
- package/dist/deployer/index.d.ts +2 -2
- package/dist/docs/SKILL.md +2 -1
- package/dist/docs/assets/SOURCE_MAP.json +1253 -1213
- package/dist/docs/references/docs-agents-code-mode.md +2 -2
- package/dist/docs/references/docs-agents-human-in-the-loop.md +3 -3
- package/dist/docs/references/docs-agents-networks.md +1 -1
- package/dist/docs/references/docs-agents-overview.md +15 -6
- package/dist/docs/references/docs-agents-processors.md +9 -9
- package/dist/docs/references/docs-agents-resumable-streams.md +5 -5
- package/dist/docs/references/docs-agents-structured-output.md +6 -6
- package/dist/docs/references/docs-agents-tools.md +11 -11
- package/dist/docs/references/docs-browser.md +1 -1
- package/dist/docs/references/docs-channels.md +13 -7
- package/dist/docs/references/docs-classifier.md +1 -1
- package/dist/docs/references/docs-connections-a2a.md +1 -1
- package/dist/docs/references/docs-connections-acp.md +2 -2
- package/dist/docs/references/docs-connections-overview.md +1 -1
- package/dist/docs/references/docs-connections-sdk-agents.md +6 -6
- package/dist/docs/references/docs-deployment-workers.md +11 -5
- package/dist/docs/references/docs-develop.md +1 -1
- package/dist/docs/references/docs-evals-custom-scorers.md +1 -1
- package/dist/docs/references/docs-evals-multi-turn.md +2 -2
- package/dist/docs/references/docs-guides-build-an-eval-loop.md +2 -2
- package/dist/docs/references/docs-guides-context-engineering.md +3 -3
- package/dist/docs/references/docs-guides-streaming.md +1 -1
- package/dist/docs/references/docs-harness-agent-controller.md +6 -3
- package/dist/docs/references/docs-harness-background-tasks.md +10 -7
- package/dist/docs/references/docs-harness-durable-agents.md +22 -19
- package/dist/docs/references/docs-harness-goals.md +2 -2
- package/dist/docs/references/docs-harness-schedules.md +35 -1
- package/dist/docs/references/docs-knowledge-agents-and-tools.md +2 -2
- package/dist/docs/references/docs-knowledge-importers.md +22 -1
- package/dist/docs/references/docs-knowledge-overview.md +1 -1
- package/dist/docs/references/docs-knowledge-scopes-and-access.md +1 -1
- package/dist/docs/references/docs-knowledge-search.md +1 -1
- package/dist/docs/references/docs-memory-memory-processors.md +8 -8
- package/dist/docs/references/docs-memory-message-history.md +5 -3
- package/dist/docs/references/docs-memory-observational-memory.md +1 -1
- package/dist/docs/references/docs-memory-semantic-recall.md +2 -2
- package/dist/docs/references/docs-memory-working-memory.md +3 -2
- package/dist/docs/references/docs-sandbox-overview.md +2 -2
- package/dist/docs/references/docs-sandbox-skills.md +1 -1
- package/dist/docs/references/docs-server-mastra-client.md +1 -1
- package/dist/docs/references/docs-server-mcp.md +91 -0
- package/dist/docs/references/docs-server-pubsub.md +45 -16
- package/dist/docs/references/docs-server-request-context.md +4 -4
- package/dist/docs/references/docs-signals-notifications.md +2 -2
- package/dist/docs/references/docs-signals-overview.md +1 -1
- package/dist/docs/references/docs-signals-running-across-processes.md +12 -3
- package/dist/docs/references/docs-signals-sending-signals.md +20 -7
- package/dist/docs/references/docs-signals-signal-providers.md +18 -2
- package/dist/docs/references/docs-signals-state-signals.md +1 -0
- package/dist/docs/references/docs-signals-thread-streams.md +12 -0
- package/dist/docs/references/docs-skills.md +8 -5
- package/dist/docs/references/docs-storage.md +12 -12
- package/dist/docs/references/docs-studio-editor.md +2 -2
- package/dist/docs/references/docs-subagents.md +26 -3
- package/dist/docs/references/docs-workflows-overview.md +5 -3
- package/dist/docs/references/integrations-agentic-ui-copilotkit.md +1 -1
- package/dist/docs/references/integrations-agentic-ui-openui.md +1 -1
- package/dist/docs/references/integrations-channels-discord.md +1 -1
- package/dist/docs/references/integrations-channels-github.md +1 -1
- package/dist/docs/references/integrations-channels-imessage.md +2 -2
- package/dist/docs/references/integrations-channels-ring.md +2 -2
- package/dist/docs/references/integrations-channels-slack.md +1 -1
- package/dist/docs/references/integrations-channels-teams.md +1 -1
- package/dist/docs/references/integrations-channels-telegram.md +1 -1
- package/dist/docs/references/integrations-channels-whatsapp.md +1 -1
- package/dist/docs/references/integrations-tools-firecrawl.md +1 -1
- package/dist/docs/references/reference-acp-acp-agent.md +1 -1
- package/dist/docs/references/reference-acp-create-acp-tool.md +1 -1
- package/dist/docs/references/reference-agent-controller-agent-controller-class.md +3 -1
- package/dist/docs/references/reference-agent-controller-session.md +54 -7
- package/dist/docs/references/reference-agents-agent.md +43 -15
- package/dist/docs/references/reference-agents-channels.md +11 -11
- package/dist/docs/references/reference-agents-createSkill.md +20 -1
- package/dist/docs/references/reference-agents-durable-agent.md +5 -5
- package/dist/docs/references/reference-agents-getLLM.md +2 -2
- package/dist/docs/references/reference-agents-getMetadata.md +2 -2
- package/dist/docs/references/reference-agents-network.md +2 -2
- package/dist/docs/references/reference-browser-mastra-browser.md +1 -1
- package/dist/docs/references/reference-channels-thread-link.md +1 -1
- package/dist/docs/references/reference-classifier-classifier.md +2 -0
- package/dist/docs/references/reference-coding-agent-build-base-prompt.md +1 -1
- package/dist/docs/references/reference-coding-agent-create-coding-agent.md +7 -7
- package/dist/docs/references/reference-configuration.md +75 -14
- package/dist/docs/references/reference-core-getAgentById.md +1 -1
- package/dist/docs/references/reference-core-mastra-model-gateway.md +1 -1
- package/dist/docs/references/reference-datasets-startExperiment.md +1 -1
- package/dist/docs/references/reference-editor-mastra-editor.md +2 -2
- package/dist/docs/references/reference-file-based-agents-config.md +3 -3
- package/dist/docs/references/reference-file-based-agents-schedules.md +1 -1
- package/dist/docs/references/reference-file-based-agents-subagents.md +3 -3
- package/dist/docs/references/reference-file-based-agents-workspace.md +1 -1
- package/dist/docs/references/reference-knowledge-knowledge-class.md +12 -0
- package/dist/docs/references/reference-knowledge-knowledge-tools.md +1 -2
- package/dist/docs/references/reference-knowledge-limits.md +16 -16
- package/dist/docs/references/reference-manual-install.md +1 -1
- package/dist/docs/references/reference-memory-memory-class.md +3 -3
- package/dist/docs/references/reference-memory-observational-memory.md +7 -3
- package/dist/docs/references/reference-observability-metrics-metrics-context.md +63 -3
- package/dist/docs/references/reference-observability-tracing-bridges-datadog.md +12 -11
- package/dist/docs/references/reference-observability-tracing-configuration.md +2 -2
- package/dist/docs/references/reference-observability-tracing-exporters-datadog.md +14 -12
- package/dist/docs/references/reference-processors-batch-parts-processor.md +1 -1
- package/dist/docs/references/reference-processors-classifier-processor.md +2 -2
- package/dist/docs/references/reference-processors-cyber-refusal-handler.md +1 -1
- package/dist/docs/references/reference-processors-language-detector.md +1 -1
- package/dist/docs/references/reference-processors-message-history-processor.md +1 -1
- package/dist/docs/references/reference-processors-model-selection-processor.md +3 -3
- package/dist/docs/references/reference-processors-moderation-processor.md +4 -4
- package/dist/docs/references/reference-processors-pii-detector.md +2 -2
- package/dist/docs/references/reference-processors-prefill-error-handler.md +2 -2
- package/dist/docs/references/reference-processors-processor-interface.md +19 -8
- package/dist/docs/references/reference-processors-prompt-injection-detector.md +1 -1
- package/dist/docs/references/reference-processors-provider-history-compat.md +1 -1
- package/dist/docs/references/reference-processors-response-cache.md +1 -1
- package/dist/docs/references/reference-processors-semantic-recall-processor.md +1 -1
- package/dist/docs/references/reference-processors-skill-search-processor.md +1 -1
- package/dist/docs/references/reference-processors-skills-processor.md +1 -1
- package/dist/docs/references/reference-processors-stream-error-retry-processor.md +3 -3
- package/dist/docs/references/reference-processors-system-prompt-scrubber.md +1 -1
- package/dist/docs/references/reference-processors-token-limiter-processor.md +3 -3
- package/dist/docs/references/reference-processors-tool-call-filter.md +2 -2
- package/dist/docs/references/reference-processors-tool-search-processor.md +3 -3
- package/dist/docs/references/reference-processors-unicode-normalizer.md +1 -1
- package/dist/docs/references/reference-processors-working-memory-processor.md +1 -1
- package/dist/docs/references/reference-pubsub-base.md +2 -2
- package/dist/docs/references/reference-pubsub-caching-pubsub.md +1 -1
- package/dist/docs/references/reference-pubsub-google-cloud-pubsub.md +13 -7
- package/dist/docs/references/reference-pubsub-lease-provider.md +4 -0
- package/dist/docs/references/reference-pubsub-redis-streams.md +21 -14
- package/dist/docs/references/reference-pubsub-valkey-streams.md +27 -9
- package/dist/docs/references/reference-rag-chunking-and-embedding.md +1 -1
- package/dist/docs/references/reference-rag-graph-rag-guide.md +2 -2
- package/dist/docs/references/reference-rag-retrieval.md +13 -13
- package/dist/docs/references/reference-signals-create-notification-inbox-tool.md +1 -1
- package/dist/docs/references/reference-signals-time-signal-provider.md +137 -0
- package/dist/docs/references/reference-storage-composite.md +4 -0
- package/dist/docs/references/reference-storage-overview.md +29 -29
- package/dist/docs/references/reference-templates-overview.md +31 -1
- package/dist/docs/references/reference-tools-create-code-mode.md +1 -1
- package/dist/docs/references/reference-tools-vector-query-tool.md +3 -3
- package/dist/docs/references/reference-voice-overview.md +28 -28
- package/dist/docs/references/reference-voice-speech-to-speech.md +10 -10
- package/dist/docs/references/reference-voice-speech-to-text.md +1 -1
- package/dist/docs/references/reference-voice-text-to-speech.md +1 -1
- package/dist/docs/references/reference-voice-voice.addInstructions.md +1 -1
- package/dist/docs/references/reference-voice-voice.listen.md +1 -1
- package/dist/docs/references/reference-workers-overview.md +3 -1
- package/dist/docs/references/reference-workflows-run-methods-restart.md +2 -0
- package/dist/docs/references/reference-workflows-step.md +1 -1
- package/dist/docs/references/reference-workflows-workflow-methods-map.md +1 -1
- package/dist/docs/references/reference-workflows-workflow.md +1 -1
- package/dist/docs/references/reference-workspace-factory-sandbox.md +2 -0
- package/dist/docs/references/reference-workspace-local-filesystem.md +1 -1
- package/dist/docs/references/reference-workspace-local-sandbox.md +1 -1
- package/dist/docs/references/reference.md +2 -0
- package/dist/evals/index.cjs +13 -13
- package/dist/evals/index.js +2 -2
- package/dist/evals/run/index.d.ts +1 -1
- package/dist/evals/scoreTraces/index.cjs +4 -4
- package/dist/evals/scoreTraces/index.js +2 -2
- package/dist/evals/types.d.ts +1 -1
- package/dist/events/caching-pubsub.d.ts +3 -11
- package/dist/events/index.cjs +1 -1
- package/dist/events/index.js +1 -1
- package/dist/events/pubsub.d.ts +3 -4
- package/dist/{run-registry-DX_EyboB.cjs → execution-fence-C8Q0wWkG.cjs} +12890 -8734
- package/dist/{run-registry-DKiudqVU.js → execution-fence-DGFyUV5h.js} +12380 -8260
- package/dist/harness/index.cjs +3 -3
- package/dist/harness/index.js +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/integration/index.cjs +1 -1
- package/dist/integration/index.js +1 -1
- package/dist/knowledge/importers/overlay.d.ts +170 -0
- package/dist/knowledge/importers/sink.d.ts +17 -1
- package/dist/knowledge/importers/types.d.ts +14 -0
- package/dist/knowledge/index.cjs +2047 -276
- package/dist/knowledge/index.d.ts +6 -0
- package/dist/knowledge/index.js +1929 -158
- package/dist/knowledge/links.d.ts +27 -0
- package/dist/knowledge/page-tools.d.ts +2 -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/gateways/opencode-session-header.d.ts +28 -0
- package/dist/llm/model/mastra-gateway-provider-tools.d.ts +7 -0
- 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 +7162 -7416
- package/dist/llm/model/resolve-model.d.ts +1 -0
- package/dist/llm/model/shared.types.d.ts +2 -1
- package/dist/llm/reasoning/account-switch.d.ts +50 -0
- package/dist/llm/reasoning/anthropic-thinking.d.ts +5 -0
- package/dist/llm/reasoning/gemini-thinking.d.ts +24 -0
- package/dist/llm/reasoning/index.cjs +454 -0
- package/dist/llm/reasoning/index.d.ts +9 -0
- package/dist/llm/reasoning/index.js +422 -0
- package/dist/llm/reasoning/model-fallback.d.ts +75 -0
- package/dist/llm/reasoning/model-ids.d.ts +5 -0
- package/dist/llm/reasoning/thinking-provider-options.d.ts +10 -0
- package/dist/llm/reasoning/thinking-request.d.ts +14 -0
- package/dist/llm/reasoning/thinking.d.ts +37 -0
- package/dist/{llm-ypGNjEom.cjs → llm-RIAYOAtD.cjs} +34 -14
- package/dist/{llm-9xmy8HlF.js → llm-YNjDFSui.js} +34 -14
- package/dist/loop/index.cjs +15 -15
- package/dist/loop/index.js +2 -2
- package/dist/loop/loop-builder.d.ts +1 -1
- package/dist/loop/loop-runtime.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/server.cjs +1 -1
- package/dist/loop/server.js +1 -1
- package/dist/loop/shared/signal-outcome.d.ts +1 -1
- package/dist/loop/shared/steps/signal-drain-core.d.ts +9 -3
- package/dist/loop/shared/transcript-step.d.ts +1 -1
- package/dist/loop/suspended-run-auto-resume.d.ts +15 -0
- 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 +2 -2
- 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-B-QrBhhd.js → manager-DZhtdV6Q.js} +9 -7
- package/dist/{manager-CYXV5_vY.cjs → manager-Y-jYcS7T.cjs} +21 -19
- package/dist/mastra/index.cjs +1 -1
- package/dist/mastra/index.d.ts +67 -12
- package/dist/mastra/index.js +1 -1
- package/dist/{mastra-zszeli0N.cjs → mastra-B2-HBq1-.cjs} +211 -67
- package/dist/{mastra-DPSwJ5ae.js → mastra-BJ54VxOO.js} +171 -27
- 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 +25 -25
- package/dist/memory/index.js +3 -3
- package/dist/memory/memory.d.ts +1 -1
- package/dist/memory/mock.d.ts +2 -3
- package/dist/memory/om-events/index.cjs +189 -0
- package/dist/memory/om-events/index.d.ts +17 -0
- package/dist/memory/om-events/index.js +188 -0
- package/dist/memory/types.d.ts +2 -2
- package/dist/{message-list-vR3uLAHL.cjs → message-list-C0F2sDNC.cjs} +3 -2
- package/dist/{message-list-BGm1DCiG.js → message-list-RgFlLrxG.js} +3 -2
- package/dist/{model-UYJb8Zel.js → model-cS3d5rmF.js} +2 -2
- package/dist/{model-WLujr8OR.cjs → model-lzZPXaEV.cjs} +2 -2
- package/dist/{netlify-wZafLKoe.cjs → netlify-1lti1j4Z.cjs} +97 -3
- package/dist/{netlify-DTWAZGpA.js → netlify-ClBjc0Xg.js} +86 -4
- package/dist/notifications/index.cjs +18 -18
- package/dist/notifications/index.js +2 -2
- package/dist/observability/index.cjs +1 -1
- package/dist/observability/index.js +1 -1
- package/dist/{observability-D7RNOAPx.js → observability-DPDWibyH.js} +648 -648
- package/dist/{output-helpers-CVzhy1Y0.js → output-helpers-D-qplq22.js} +70 -74
- package/dist/{output-helpers-DgsH4aTb.cjs → output-helpers-D4O_oFne.cjs} +69 -73
- package/dist/processor-provider/index.cjs +10 -10
- package/dist/processor-provider/index.js +1 -1
- package/dist/processors/index.cjs +65 -65
- package/dist/processors/index.d.ts +2 -2
- package/dist/processors/index.js +2 -2
- package/dist/processors/runner.d.ts +1 -1
- package/dist/processors/step-schema.d.ts +1 -1
- package/dist/{provider-registry-BvpUdOiq.cjs → provider-registry-C6jd3Uxi.cjs} +20494 -21358
- package/dist/{provider-registry-COT79RLh.js → provider-registry-C_XQJvu2.js} +20493 -21357
- package/dist/provider-registry.json +22407 -23248
- package/dist/{registry-generator-Dn1Tuacv.cjs → registry-generator-BYdAlox6.cjs} +1 -1
- package/dist/{registry-generator-BKjTPD6B.js → registry-generator-DBrTbThj.js} +1 -1
- package/dist/{rehydrate-BK1v65H7.js → rehydrate-4xHubfOY.js} +2 -2
- package/dist/{rehydrate-C0xrJUBu.cjs → rehydrate-BtwY0ima.cjs} +14 -14
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +2 -2
- package/dist/{scheduler-B-VZUvv_.js → scheduler-D1qdie5k.js} +75 -23
- package/dist/{scheduler-D00X03jQ.cjs → scheduler-DE5lcHJA.cjs} +86 -22
- package/dist/server/auth.d.ts +3 -3
- package/dist/server/composite-auth.d.ts +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/simple-auth.d.ts +1 -1
- package/dist/server/types.d.ts +64 -1
- package/dist/{signal-provider-BslnAjWG.js → signal-provider-B_mfW-J4.js} +1 -1
- package/dist/{signal-provider-BFAvh_AJ.cjs → signal-provider-D9gbevHN.cjs} +1 -1
- package/dist/signals/index.cjs +4 -3
- package/dist/signals/index.d.ts +1 -0
- package/dist/signals/index.js +4 -4
- package/dist/signals/time-signal-provider.d.ts +70 -0
- package/dist/signals-BwDXGqxc.cjs +358 -0
- package/dist/signals-TznxWfM3.js +347 -0
- package/dist/skills/create-skill.d.ts +3 -0
- package/dist/skills/index.cjs +1 -1
- package/dist/skills/index.js +1 -1
- package/dist/skills/inline-skill-source.d.ts +5 -1
- package/dist/skills/types.d.ts +16 -1
- package/dist/{source-fNa6u1kH.js → source-B3He4_mz.js} +7 -0
- package/dist/{source-BVOi8Xhp.cjs → source-C_nWbqI0.cjs} +7 -0
- package/dist/{state-processor-B9kxpM53.js → state-processor-B_KsS82m.js} +1 -1
- package/dist/{state-processor-kRNZ38Nf.cjs → state-processor-DaSmhVUX.cjs} +1 -1
- package/dist/storage/constants.cjs +1 -1
- package/dist/storage/constants.js +1 -1
- package/dist/storage/domains/agents/index.cjs +1 -1
- package/dist/storage/domains/agents/index.js +1 -1
- package/dist/storage/domains/inmemory-db.d.ts +6 -0
- package/dist/storage/domains/knowledge/base.d.ts +140 -5
- package/dist/storage/domains/knowledge/importers-inmemory.d.ts +9 -0
- package/dist/storage/domains/knowledge/importers.d.ts +31 -0
- package/dist/storage/domains/knowledge/inmemory.d.ts +11 -0
- package/dist/storage/domains/knowledge/pages-inmemory.d.ts +50 -12
- package/dist/storage/domains/knowledge/pages.d.ts +90 -1
- package/dist/storage/domains/memory/base.d.ts +122 -0
- package/dist/storage/domains/memory/index.d.ts +1 -0
- package/dist/storage/domains/memory/inmemory.d.ts +39 -0
- package/dist/storage/domains/memory/queue-thread.d.ts +42 -0
- package/dist/storage/domains/schedules/base.d.ts +31 -2
- package/dist/storage/domains/schedules/inmemory.d.ts +9 -2
- package/dist/storage/domains/workflows/base.d.ts +32 -5
- package/dist/storage/domains/workflows/inmemory.d.ts +7 -6
- package/dist/storage/domains/workflows/journal.d.ts +16 -1
- package/dist/storage/index.cjs +192 -186
- package/dist/storage/index.js +6 -6
- package/dist/storage/types.d.ts +6 -0
- package/dist/storage/workflow-snapshot.d.ts +4 -0
- package/dist/storage/workflow-step-guard.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 +12 -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-BmtBm_-L.cjs → stream-DqKDB3nL.cjs} +144 -10
- package/dist/{stream-B4LzC6Sz.js → stream-H_wVxqdK.js} +103 -11
- package/dist/telemetry/index.cjs +1 -1
- package/dist/telemetry/index.js +1 -1
- 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-Z3bykc1m.js → tool-DIFduuTw.js} +2 -5
- package/dist/{tool-CYlT2UA-.cjs → tool-Dn9WSDVn.cjs} +2 -5
- 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-BIbw3quM.cjs → tool-loop-agent-D4gSdYuN.cjs} +5 -5
- package/dist/{tool-loop-agent-CR2AgmkF.js → tool-loop-agent-DvZcOxWe.js} +4 -4
- package/dist/{toolchecks-DrsZdc3S.js → toolchecks-CRAfUe9H.js} +1 -1
- package/dist/{toolchecks-MFU48cit.cjs → toolchecks-DbBsQGHW.cjs} +1 -1
- package/dist/tools/builtin/web-search.d.ts +9 -1
- package/dist/tools/index.cjs +5 -5
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/index.js +5 -5
- package/dist/tools/is-vercel-tool.cjs +1 -1
- package/dist/tools/is-vercel-tool.js +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/tool.d.ts +2 -4
- package/dist/tools/types.d.ts +2 -1
- package/dist/{tools-BEYxowf0.cjs → tools-DZoVfKPl.cjs} +43 -18
- package/dist/{tools-tPy2FwMI.js → tools-FwJyNoyg.js} +42 -11
- package/dist/types/user.d.ts +1 -1
- package/dist/{utils-D2Bj0C2E.cjs → utils-Dd4m7z13.cjs} +6 -5
- package/dist/{utils-BnG4bq6k.js → utils-h5k_ChdS.js} +6 -5
- package/dist/utils.cjs +3 -3
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +3 -3
- package/dist/{validate-DHEGALaE.js → validate-DQB9spZ1.js} +1 -1
- package/dist/{validate-BxgKlbt7.cjs → validate-u6_TUYSo.cjs} +1 -1
- package/dist/vector/embed.d.ts +4 -4
- package/dist/vector/index.cjs +9 -9
- package/dist/vector/index.js +2 -2
- 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.d.ts +1 -1
- package/dist/worker/index.js +1 -1
- package/dist/worker/workers/orchestration-worker.d.ts +13 -0
- package/dist/{worker-BRKHC9hv.cjs → worker-0F7Nukyf.cjs} +3 -3
- package/dist/{worker-DYBrWSDX.cjs → worker-D-cq8McN.cjs} +129 -39
- package/dist/{worker-C-xoXGOt.js → worker-DWOK2M_5.js} +122 -32
- package/dist/{worker-1lHN6hT1.js → worker-DmUkyJY_.js} +2 -2
- package/dist/{workflow-DGRDgyhs.cjs → workflow-DXE15e-w.cjs} +30 -38
- package/dist/{workflow-79JneaJP.js → workflow-DamOke3z.js} +26 -34
- package/dist/workflows/builder/index.cjs +1 -1
- package/dist/workflows/builder/index.js +1 -1
- package/dist/workflows/evented/execution-engine.d.ts +3 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/evented/setup-warning.d.ts +31 -0
- package/dist/workflows/evented/workflow-event-processor/index.d.ts +10 -4
- package/dist/workflows/evented/workflow-event-processor/loop.d.ts +1 -1
- package/dist/workflows/evented/workflow-event-processor/parallel.d.ts +2 -2
- package/dist/workflows/evented/workflow-event-processor/sleep.d.ts +2 -2
- package/dist/workflows/evented/workflow.d.ts +8 -3
- package/dist/workflows/handlers/entry.d.ts +8 -0
- package/dist/workflows/index.cjs +57 -55
- package/dist/workflows/index.js +6 -6
- package/dist/workflows/run-storage.d.ts +27 -3
- package/dist/workflows/scheduler/claim.d.ts +51 -0
- package/dist/workflows/scheduler/index.d.ts +2 -0
- package/dist/workflows/scheduler/types.d.ts +3 -0
- package/dist/workflows/types.d.ts +17 -1
- package/dist/workflows/workflow.d.ts +88 -11
- package/dist/workspace/filesystem/local-filesystem.d.ts +13 -0
- package/dist/workspace/index.cjs +1 -1
- package/dist/workspace/index.js +1 -1
- package/dist/workspace/sandbox/local-sandbox.d.ts +11 -0
- package/dist/workspace/sandbox/sandbox.d.ts +2 -0
- package/dist/workspace/tools/media.d.ts +2 -2
- package/dist/{workspace-C8Zo5_qK.cjs → workspace-BQD4tcQi.cjs} +227 -26
- package/dist/{workspace-DOAil8mG.js → workspace-sqcfdZRR.js} +226 -25
- package/llm/reasoning.d.ts +1 -0
- package/memory/om-events.d.ts +1 -0
- package/package.json +36 -15
- package/skills/mastra/SKILL.md +171 -0
- package/skills/mastra/references/common-errors.md +557 -0
- package/skills/mastra/references/core-concepts.md +21 -0
- package/skills/mastra/references/create-mastra.md +233 -0
- package/skills/mastra/references/embedded-docs.md +103 -0
- package/skills/mastra/references/feedback.md +69 -0
- package/skills/mastra/references/gateway.md +66 -0
- package/skills/mastra/references/mastra-api.md +222 -0
- package/skills/mastra/references/migration-guide.md +185 -0
- package/skills/mastra/references/model-selection.md +29 -0
- package/skills/mastra/references/platform.md +164 -0
- package/skills/mastra/references/remote-docs.md +193 -0
- package/skills/mastra/references/trace-query.md +150 -0
- package/skills/mastra/scripts/provider-registry.mjs +271 -0
- package/src/llm/model/provider-types.generated.d.ts +7162 -7416
- package/dist/capabilities/ai21.json +0 -4
- package/dist/capabilities/clarifai.json +0 -42
- package/dist/capabilities/jad-ai.json +0 -20
- package/dist/capabilities/llmtech.json +0 -16
- package/dist/signals-B1JSj-Ew.cjs +0 -58
- package/dist/signals-De9VnwL2.js +0 -53
- package/dist/_types/{@internal_ai-sdk-v4@0.0.99 → @internal_ai-sdk-v4@0.0.100}/dist/test.d.ts +0 -0
- package/dist/_types/{@internal_ai-sdk-v4@0.0.99 → @internal_ai-sdk-v4@0.0.100}/package.json +0 -0
- package/dist/_types/{@internal_ai-sdk-v5@0.0.99 → @internal_ai-sdk-v5@0.0.100}/dist/test.d.ts +0 -0
- package/dist/_types/{@internal_ai-sdk-v5@0.0.99 → @internal_ai-sdk-v5@0.0.100}/package.json +0 -0
- package/dist/_types/{@internal_ai-v6@0.0.99 → @internal_ai-v6@0.0.100}/package.json +0 -0
- package/dist/_types/{@internal_ai-v7@0.0.99 → @internal_ai-v7@0.0.100}/package.json +0 -0
- package/dist/_types/{@internal_auth@0.0.40 → @internal_auth@0.0.41}/dist/_types/@internal_core@0.1.4/dist/base/index.d.ts +0 -0
- package/dist/_types/{@internal_auth@0.0.40 → @internal_auth@0.0.41}/dist/_types/@internal_core@0.1.4/dist/index-Diz1p9N7.d.ts +0 -0
- package/dist/_types/{@internal_auth@0.0.40 → @internal_auth@0.0.41}/dist/ee/capabilities.d.ts +0 -0
- package/dist/_types/{@internal_auth@0.0.40 → @internal_auth@0.0.41}/dist/ee/defaults/index.d.ts +0 -0
- package/dist/_types/{@internal_auth@0.0.40 → @internal_auth@0.0.41}/dist/ee/defaults/rbac/index.d.ts +0 -0
- package/dist/_types/{@internal_auth@0.0.40 → @internal_auth@0.0.41}/dist/ee/defaults/rbac/static.d.ts +0 -0
- package/dist/_types/{@internal_auth@0.0.40 → @internal_auth@0.0.41}/dist/ee/defaults/roles.d.ts +0 -0
- package/dist/_types/{@internal_auth@0.0.40 → @internal_auth@0.0.41}/dist/ee/fga-check.d.ts +0 -0
- package/dist/_types/{@internal_auth@0.0.40 → @internal_auth@0.0.41}/dist/ee/index.d.ts +0 -0
- package/dist/_types/{@internal_auth@0.0.40 → @internal_auth@0.0.41}/dist/ee/interfaces/acl.d.ts +0 -0
- package/dist/_types/{@internal_auth@0.0.40 → @internal_auth@0.0.41}/dist/ee/interfaces/fga.d.ts +0 -0
- package/dist/_types/{@internal_auth@0.0.40 → @internal_auth@0.0.41}/dist/ee/interfaces/index.d.ts +0 -0
- package/dist/_types/{@internal_auth@0.0.40 → @internal_auth@0.0.41}/dist/ee/interfaces/permissions.generated.d.ts +0 -0
- package/dist/_types/{@internal_auth@0.0.40 → @internal_auth@0.0.41}/dist/ee/interfaces/rbac.d.ts +0 -0
- package/dist/_types/{@internal_auth@0.0.40 → @internal_auth@0.0.41}/dist/ee/interfaces/user.d.ts +0 -0
- package/dist/_types/{@internal_auth@0.0.40 → @internal_auth@0.0.41}/dist/ee/license.d.ts +0 -0
- package/dist/_types/{@internal_auth@0.0.40 → @internal_auth@0.0.41}/dist/index.d.ts +0 -0
- package/dist/_types/{@internal_auth@0.0.40 → @internal_auth@0.0.41}/dist/provider/index.d.ts +0 -0
- package/dist/_types/{@internal_auth@0.0.40 → @internal_auth@0.0.41}/dist/session/cookie.d.ts +0 -0
- package/dist/_types/{@internal_auth@0.0.40 → @internal_auth@0.0.41}/dist/session/index.d.ts +0 -0
- package/dist/_types/{@internal_auth@0.0.40 → @internal_auth@0.0.41}/dist/session/memory.d.ts +0 -0
- package/dist/_types/{@internal_auth@0.0.40 → @internal_auth@0.0.41}/dist/types/index.d.ts +0 -0
- package/dist/_types/{@internal_auth@0.0.40 → @internal_auth@0.0.41}/package.json +0 -0
- package/dist/_types/{@internal_deployer@0.0.5 → @internal_deployer@0.0.6}/dist/_types/@internal_core@0.1.4/dist/index-Diz1p9N7.d.ts +0 -0
- package/dist/_types/{@internal_deployer@0.0.5 → @internal_deployer@0.0.6}/dist/_types/@internal_core@0.1.4/dist/logger/index.d.ts +0 -0
- package/dist/_types/{@internal_deployer@0.0.5 → @internal_deployer@0.0.6}/dist/bundler.d.ts +0 -0
- package/dist/_types/{@internal_deployer@0.0.5 → @internal_deployer@0.0.6}/dist/deployer.d.ts +0 -0
- package/dist/_types/{@internal_deployer@0.0.5 → @internal_deployer@0.0.6}/dist/index.d.ts +0 -0
- package/dist/_types/{@internal_deployer@0.0.5 → @internal_deployer@0.0.6}/package.json +0 -0
- package/dist/_types/{@internal_external-types@0.0.102 → @internal_external-types@0.0.103}/dist/index.d.ts +0 -0
- package/dist/_types/{@internal_external-types@0.0.102 → @internal_external-types@0.0.103}/package.json +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/@internal_core@0.1.4/dist/base/index.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/@internal_core@0.1.4/dist/index-Diz1p9N7.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/@internal_core@0.1.4/dist/request-context/index.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/@internal_core@0.1.4/dist/types/index.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v3/ZodError.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v3/errors.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v3/external.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v3/helpers/enumUtil.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v3/helpers/errorUtil.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v3/helpers/parseUtil.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v3/helpers/partialUtil.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v3/helpers/typeAliases.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v3/helpers/util.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v3/index.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v3/locales/en.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v3/standard-schema.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v3/types.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/classic/checks.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/classic/coerce.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/classic/compat.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/classic/deep-partial.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/classic/errors.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/classic/external.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/classic/from-json-schema.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/classic/in-out.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/classic/index.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/classic/iso.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/classic/parse.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/classic/schemas.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/core/api.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/core/checks.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/core/compile.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/core/core.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/core/doc.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/core/errors.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/core/index.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/core/json-schema-generator.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/core/json-schema-processors.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/core/json-schema.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/core/memoizer.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/core/parse.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/core/regexes.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/core/registries.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/core/schemas.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/core/standard-schema.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/core/to-json-schema.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/core/util.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/core/versions.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/index.d.cts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/ar.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/az.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/be.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/bg.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/bn.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/ca.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/ckb.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/cs.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/da.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/de.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/el.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/en.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/eo.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/es.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/fa.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/fi.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/fr-CA.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/fr.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/gu.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/he.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/hi.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/hr.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/hu.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/hy.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/id.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/index.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/is.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/it.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/ja.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/ka.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/kh.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/km.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/kn.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/ko.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/lt.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/mk.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/ms.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/ne.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/nl.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/nn.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/no.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/ota.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/pl.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/ps.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/pt-BR.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/pt.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/ro.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/ru.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/sk.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/sl.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/sv.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/ta.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/tg.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/th.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/tk.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/tr.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/ua.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/uk.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/ur.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/uz.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/vi.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/yo.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/zh-CN.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/_types/zod@4.6.7/v4/locales/zh-TW.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/index.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/voice/aisdk/index.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/voice/default-voice.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/voice/index.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/dist/voice/voice.d.ts +0 -0
- package/dist/_types/{@internal_voice@0.0.48 → @internal_voice@0.0.49}/package.json +0 -0
- package/dist/{observability-B0R_D1PZ.cjs → observability-VaoaeadK.cjs} +647 -647
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
3
|
-
const require_observability = require("../../observability-
|
|
2
|
+
const require_execution_fence = require("../../execution-fence-C8Q0wWkG.cjs");
|
|
3
|
+
const require_observability = require("../../observability-VaoaeadK.cjs");
|
|
4
4
|
// src/agent/durable/durable-agent.ts
|
|
5
|
-
var DurableAgent = class extends
|
|
5
|
+
var DurableAgent = class extends require_execution_fence.Agent {
|
|
6
6
|
/** Engine this wrapper class runs on, selected through the Agent's `durable` policy. @internal */
|
|
7
7
|
static executionEngine = "default";
|
|
8
8
|
get returnsDurableStreamResult() {
|
|
@@ -606,7 +606,8 @@ function isEventedAgentClass(obj) {
|
|
|
606
606
|
*
|
|
607
607
|
* In one process it runs on any pubsub, including the default one. Running its
|
|
608
608
|
* steps on several processes needs a pubsub that redelivers unacknowledged
|
|
609
|
-
* events
|
|
609
|
+
* events, a workflows store with step guards, and a server cache (`cache` on
|
|
610
|
+
* `Mastra`) that every process shares.
|
|
610
611
|
*
|
|
611
612
|
* @see https://mastra.ai/docs/server/pubsub#evented-workflows-and-agents
|
|
612
613
|
*
|
|
@@ -715,97 +716,97 @@ async function executeDurableToolCalls(ctx) {
|
|
|
715
716
|
}
|
|
716
717
|
return toolResults;
|
|
717
718
|
}
|
|
718
|
-
exports.AGENT_CONTROL_TOPIC =
|
|
719
|
-
exports.AGENT_STREAM_TOPIC =
|
|
720
|
-
exports.AgentControlEventTypes =
|
|
721
|
-
exports.AgentStreamBus =
|
|
722
|
-
exports.AgentStreamEventTypes =
|
|
723
|
-
exports.DURABLE_CONTEXT_SEGMENT_KEY =
|
|
724
|
-
exports.DURABLE_STOP_WHEN_ERROR_ID =
|
|
719
|
+
exports.AGENT_CONTROL_TOPIC = require_execution_fence.AGENT_CONTROL_TOPIC;
|
|
720
|
+
exports.AGENT_STREAM_TOPIC = require_execution_fence.AGENT_STREAM_TOPIC;
|
|
721
|
+
exports.AgentControlEventTypes = require_execution_fence.AgentControlEventTypes;
|
|
722
|
+
exports.AgentStreamBus = require_execution_fence.AgentStreamBus;
|
|
723
|
+
exports.AgentStreamEventTypes = require_execution_fence.AgentStreamEventTypes;
|
|
724
|
+
exports.DURABLE_CONTEXT_SEGMENT_KEY = require_execution_fence.DURABLE_CONTEXT_SEGMENT_KEY;
|
|
725
|
+
exports.DURABLE_STOP_WHEN_ERROR_ID = require_execution_fence.DURABLE_STOP_WHEN_ERROR_ID;
|
|
725
726
|
exports.DurableAgent = DurableAgent;
|
|
726
|
-
exports.DurableAgentDefaults =
|
|
727
|
-
exports.DurableStepIds =
|
|
727
|
+
exports.DurableAgentDefaults = require_execution_fence.DurableAgentDefaults;
|
|
728
|
+
exports.DurableStepIds = require_execution_fence.DurableStepIds;
|
|
728
729
|
exports.EventedAgent = EventedAgent;
|
|
729
|
-
exports.ExtendedRunRegistry =
|
|
730
|
-
exports.RUN_DEADLINE_KEY =
|
|
731
|
-
exports.RunRegistry =
|
|
732
|
-
exports.__resetExecutionFencesForTests =
|
|
733
|
-
exports.accumulatedUsageSchema =
|
|
730
|
+
exports.ExtendedRunRegistry = require_execution_fence.ExtendedRunRegistry;
|
|
731
|
+
exports.RUN_DEADLINE_KEY = require_execution_fence.RUN_DEADLINE_KEY;
|
|
732
|
+
exports.RunRegistry = require_execution_fence.RunRegistry;
|
|
733
|
+
exports.__resetExecutionFencesForTests = require_execution_fence.__resetExecutionFencesForTests;
|
|
734
|
+
exports.accumulatedUsageSchema = require_execution_fence.accumulatedUsageSchema;
|
|
734
735
|
exports.agentLoopTermination = require_observability.agentLoopTermination;
|
|
735
|
-
exports.agentThreadStreamRuntime =
|
|
736
|
-
exports.applyReservedMemoryContextKeys =
|
|
737
|
-
exports.baseDurableAgenticInputSchema =
|
|
738
|
-
exports.baseIterationStateSchema =
|
|
739
|
-
exports.buildStepRecord =
|
|
740
|
-
exports.calculateAccumulatedUsage =
|
|
741
|
-
exports.carrySegmentSpans =
|
|
742
|
-
exports.createBaseIterationStateUpdate =
|
|
736
|
+
exports.agentThreadStreamRuntime = require_execution_fence.agentThreadStreamRuntime;
|
|
737
|
+
exports.applyReservedMemoryContextKeys = require_execution_fence.applyReservedMemoryContextKeys;
|
|
738
|
+
exports.baseDurableAgenticInputSchema = require_execution_fence.baseDurableAgenticInputSchema;
|
|
739
|
+
exports.baseIterationStateSchema = require_execution_fence.baseIterationStateSchema;
|
|
740
|
+
exports.buildStepRecord = require_execution_fence.buildStepRecord;
|
|
741
|
+
exports.calculateAccumulatedUsage = require_execution_fence.calculateAccumulatedUsage;
|
|
742
|
+
exports.carrySegmentSpans = require_execution_fence.carrySegmentSpans;
|
|
743
|
+
exports.createBaseIterationStateUpdate = require_execution_fence.createBaseIterationStateUpdate;
|
|
743
744
|
exports.createDurableAgent = createDurableAgent;
|
|
744
|
-
exports.createDurableAgentStream =
|
|
745
|
-
exports.createDurableAgenticWorkflow =
|
|
746
|
-
exports.createDurableBackgroundTaskCheckStep =
|
|
747
|
-
exports.createDurableGoalStep =
|
|
748
|
-
exports.createDurableIsTaskCompleteStep =
|
|
749
|
-
exports.createDurableLLMExecutionStep =
|
|
750
|
-
exports.createDurableLLMMappingStep =
|
|
751
|
-
exports.createDurableToolCallStep =
|
|
745
|
+
exports.createDurableAgentStream = require_execution_fence.createDurableAgentStream;
|
|
746
|
+
exports.createDurableAgenticWorkflow = require_execution_fence.createDurableAgenticWorkflow;
|
|
747
|
+
exports.createDurableBackgroundTaskCheckStep = require_execution_fence.createDurableBackgroundTaskCheckStep;
|
|
748
|
+
exports.createDurableGoalStep = require_execution_fence.createDurableGoalStep;
|
|
749
|
+
exports.createDurableIsTaskCompleteStep = require_execution_fence.createDurableIsTaskCompleteStep;
|
|
750
|
+
exports.createDurableLLMExecutionStep = require_execution_fence.createDurableLLMExecutionStep;
|
|
751
|
+
exports.createDurableLLMMappingStep = require_execution_fence.createDurableLLMMappingStep;
|
|
752
|
+
exports.createDurableToolCallStep = require_execution_fence.createDurableToolCallStep;
|
|
752
753
|
exports.createEventedAgent = createEventedAgent;
|
|
753
|
-
exports.createRunAbortController =
|
|
754
|
-
exports.createWorkflowInput =
|
|
755
|
-
exports.deleteRunRegistryEntry =
|
|
756
|
-
exports.detachFullStreamOnEnd =
|
|
757
|
-
exports.diffResponseMessages =
|
|
758
|
-
exports.durableAgenticOutputSchema =
|
|
759
|
-
exports.emitAbortEvent =
|
|
760
|
-
exports.emitChunkEvent =
|
|
761
|
-
exports.emitErrorEvent =
|
|
762
|
-
exports.emitFinishEvent =
|
|
763
|
-
exports.emitStepFinishEvent =
|
|
764
|
-
exports.emitStepStartEvent =
|
|
765
|
-
exports.emitSuspendedEvent =
|
|
766
|
-
exports.endFailedSegmentSpans =
|
|
767
|
-
exports.endRunSpansWithError =
|
|
768
|
-
exports.ensureRemoteAbortListener =
|
|
769
|
-
exports.executeDurableAgentScorers =
|
|
754
|
+
exports.createRunAbortController = require_execution_fence.createRunAbortController;
|
|
755
|
+
exports.createWorkflowInput = require_execution_fence.createWorkflowInput;
|
|
756
|
+
exports.deleteRunRegistryEntry = require_execution_fence.deleteRunRegistryEntry;
|
|
757
|
+
exports.detachFullStreamOnEnd = require_execution_fence.detachFullStreamOnEnd;
|
|
758
|
+
exports.diffResponseMessages = require_execution_fence.diffResponseMessages;
|
|
759
|
+
exports.durableAgenticOutputSchema = require_execution_fence.durableAgenticOutputSchema;
|
|
760
|
+
exports.emitAbortEvent = require_execution_fence.emitAbortEvent;
|
|
761
|
+
exports.emitChunkEvent = require_execution_fence.emitChunkEvent;
|
|
762
|
+
exports.emitErrorEvent = require_execution_fence.emitErrorEvent;
|
|
763
|
+
exports.emitFinishEvent = require_execution_fence.emitFinishEvent;
|
|
764
|
+
exports.emitStepFinishEvent = require_execution_fence.emitStepFinishEvent;
|
|
765
|
+
exports.emitStepStartEvent = require_execution_fence.emitStepStartEvent;
|
|
766
|
+
exports.emitSuspendedEvent = require_execution_fence.emitSuspendedEvent;
|
|
767
|
+
exports.endFailedSegmentSpans = require_execution_fence.endFailedSegmentSpans;
|
|
768
|
+
exports.endRunSpansWithError = require_execution_fence.endRunSpansWithError;
|
|
769
|
+
exports.ensureRemoteAbortListener = require_execution_fence.ensureRemoteAbortListener;
|
|
770
|
+
exports.executeDurableAgentScorers = require_execution_fence.executeDurableAgentScorers;
|
|
770
771
|
exports.executeDurableToolCalls = executeDurableToolCalls;
|
|
771
772
|
exports.executionFailureTermination = require_observability.executionFailureTermination;
|
|
772
|
-
exports.getRunRegistryEntry =
|
|
773
|
-
exports.getRunStreamSlot =
|
|
774
|
-
exports.getScopeStreamSlot =
|
|
775
|
-
exports.globalRunRegistry =
|
|
773
|
+
exports.getRunRegistryEntry = require_execution_fence.getRunRegistryEntry;
|
|
774
|
+
exports.getRunStreamSlot = require_execution_fence.getRunStreamSlot;
|
|
775
|
+
exports.getScopeStreamSlot = require_execution_fence.getScopeStreamSlot;
|
|
776
|
+
exports.globalRunRegistry = require_execution_fence.globalRunRegistry;
|
|
776
777
|
exports.isDurableAgent = isDurableAgent;
|
|
777
778
|
exports.isEventedAgent = isEventedAgent;
|
|
778
779
|
exports.isEventedAgentClass = isEventedAgentClass;
|
|
779
780
|
exports.isLocalDurableAgent = isLocalDurableAgent;
|
|
780
|
-
exports.liveSegmentSpan =
|
|
781
|
-
exports.loadRunStoredMessages =
|
|
782
|
-
exports.modelConfigSchema =
|
|
783
|
-
exports.modelListEntrySchema =
|
|
784
|
-
exports.normalizeResumeGenerateArgs =
|
|
785
|
-
exports.persistDurableRunInput =
|
|
786
|
-
exports.prepareForDurableExecution =
|
|
787
|
-
exports.pruneAgentLoopSnapshot =
|
|
788
|
-
exports.publishAbortRequest =
|
|
789
|
-
exports.readRunDeadline =
|
|
790
|
-
exports.rebuildRunToolsFromMastra =
|
|
791
|
-
exports.requestAcknowledgedAbort =
|
|
792
|
-
exports.resolveDurableToolCallConcurrency =
|
|
793
|
-
exports.resolveInternalState =
|
|
794
|
-
exports.resolveModel =
|
|
795
|
-
exports.resolveRuntimeDependencies =
|
|
796
|
-
exports.resolveTool =
|
|
797
|
-
exports.runDurableFinishSideEffects =
|
|
798
|
-
exports.runDurableStreamUntilIdle =
|
|
799
|
-
exports.runResumeDurableStreamUntilIdle =
|
|
800
|
-
exports.segmentEndedBySuspension =
|
|
801
|
-
exports.segmentSpanData =
|
|
802
|
-
exports.serializeDurableOptions =
|
|
803
|
-
exports.serializeDurableState =
|
|
804
|
-
exports.serializeModelConfig =
|
|
805
|
-
exports.serializeToolsMetadata =
|
|
806
|
-
exports.setRunRegistryEntry =
|
|
807
|
-
exports.subscribeToAbortRequests =
|
|
808
|
-
exports.takeRunScorerInstances =
|
|
809
|
-
exports.toolRequiresApproval =
|
|
810
|
-
exports.untilIdleHandlesBackgroundTask =
|
|
811
|
-
exports.validateModelTimeoutSettings =
|
|
781
|
+
exports.liveSegmentSpan = require_execution_fence.liveSegmentSpan;
|
|
782
|
+
exports.loadRunStoredMessages = require_execution_fence.loadRunStoredMessages;
|
|
783
|
+
exports.modelConfigSchema = require_execution_fence.modelConfigSchema;
|
|
784
|
+
exports.modelListEntrySchema = require_execution_fence.modelListEntrySchema;
|
|
785
|
+
exports.normalizeResumeGenerateArgs = require_execution_fence.normalizeResumeGenerateArgs;
|
|
786
|
+
exports.persistDurableRunInput = require_execution_fence.persistDurableRunInput;
|
|
787
|
+
exports.prepareForDurableExecution = require_execution_fence.prepareForDurableExecution;
|
|
788
|
+
exports.pruneAgentLoopSnapshot = require_execution_fence.pruneAgentLoopSnapshot;
|
|
789
|
+
exports.publishAbortRequest = require_execution_fence.publishAbortRequest;
|
|
790
|
+
exports.readRunDeadline = require_execution_fence.readRunDeadline;
|
|
791
|
+
exports.rebuildRunToolsFromMastra = require_execution_fence.rebuildRunToolsFromMastra;
|
|
792
|
+
exports.requestAcknowledgedAbort = require_execution_fence.requestAcknowledgedAbort;
|
|
793
|
+
exports.resolveDurableToolCallConcurrency = require_execution_fence.resolveDurableToolCallConcurrency;
|
|
794
|
+
exports.resolveInternalState = require_execution_fence.resolveInternalState;
|
|
795
|
+
exports.resolveModel = require_execution_fence.resolveModel;
|
|
796
|
+
exports.resolveRuntimeDependencies = require_execution_fence.resolveRuntimeDependencies;
|
|
797
|
+
exports.resolveTool = require_execution_fence.resolveTool;
|
|
798
|
+
exports.runDurableFinishSideEffects = require_execution_fence.runDurableFinishSideEffects;
|
|
799
|
+
exports.runDurableStreamUntilIdle = require_execution_fence.runDurableStreamUntilIdle;
|
|
800
|
+
exports.runResumeDurableStreamUntilIdle = require_execution_fence.runResumeDurableStreamUntilIdle;
|
|
801
|
+
exports.segmentEndedBySuspension = require_execution_fence.segmentEndedBySuspension;
|
|
802
|
+
exports.segmentSpanData = require_execution_fence.segmentSpanData;
|
|
803
|
+
exports.serializeDurableOptions = require_execution_fence.serializeDurableOptions;
|
|
804
|
+
exports.serializeDurableState = require_execution_fence.serializeDurableState;
|
|
805
|
+
exports.serializeModelConfig = require_execution_fence.serializeModelConfig;
|
|
806
|
+
exports.serializeToolsMetadata = require_execution_fence.serializeToolsMetadata;
|
|
807
|
+
exports.setRunRegistryEntry = require_execution_fence.setRunRegistryEntry;
|
|
808
|
+
exports.subscribeToAbortRequests = require_execution_fence.subscribeToAbortRequests;
|
|
809
|
+
exports.takeRunScorerInstances = require_execution_fence.takeRunScorerInstances;
|
|
810
|
+
exports.toolRequiresApproval = require_execution_fence.toolRequiresApproval;
|
|
811
|
+
exports.untilIdleHandlesBackgroundTask = require_execution_fence.untilIdleHandlesBackgroundTask;
|
|
812
|
+
exports.validateModelTimeoutSettings = require_execution_fence.validateModelTimeoutSettings;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
import {
|
|
1
|
+
import { $ as modelConfigSchema, A as detachFullStreamOnEnd, B as serializeToolsMetadata, Bs as emitChunkEvent, Cc as AgentControlEventTypes, D as prepareForDurableExecution, E as normalizeResumeGenerateArgs, F as createDurableToolCallStep, G as resolveDurableToolCallConcurrency, Gs as emitSuspendedEvent, Hs as emitFinishEvent, I as createWorkflowInput, J as createBaseIterationStateUpdate, Js as resolveInternalState, K as buildStepRecord, Ks as diffResponseMessages, L as serializeDurableOptions, M as createDurableGoalStep, N as createDurableIsTaskCompleteStep, O as applyReservedMemoryContextKeys, P as createDurableLLMMappingStep, Pt as validateModelTimeoutSettings, Q as durableAgenticOutputSchema, Qs as toolRequiresApproval, R as serializeDurableState, Rs as createDurableAgentStream, Sc as AGENT_STREAM_TOPIC, T as Agent, Us as emitStepFinishEvent, V as createDurableLLMExecutionStep, Vs as emitErrorEvent, W as createDurableBackgroundTaskCheckStep, Ws as emitStepStartEvent, X as baseDurableAgenticInputSchema, Xs as resolveRuntimeDependencies, Y as accumulatedUsageSchema, Ys as resolveModel, Z as baseIterationStateSchema, Zs as resolveTool, _c as segmentSpanData, _t as untilIdleHandlesBackgroundTask, ac as endRunSpansWithError, at as runResumeDurableStreamUntilIdle, bc as DurableStepIds, cc as getRunRegistryEntry, ct as readRunDeadline, dc as setRunRegistryEntry, dt as requestAcknowledgedAbort, ec as DURABLE_CONTEXT_SEGMENT_KEY, et as modelListEntrySchema, fc as takeRunScorerInstances, ft as subscribeToAbortRequests, gc as segmentEndedBySuspension, gt as getScopeStreamSlot, hc as liveSegmentSpan, ht as getRunStreamSlot, i as agentThreadStreamRuntime, ic as deleteRunRegistryEntry, it as runDurableStreamUntilIdle, j as createDurableAgenticWorkflow, k as persistDurableRunInput, lc as globalRunRegistry, lt as AgentStreamBus, mc as endFailedSegmentSpans, nc as RunRegistry, nt as runDurableFinishSideEffects, ot as RUN_DEADLINE_KEY, pc as carrySegmentSpans, pt as createRunAbortController, q as calculateAccumulatedUsage, qs as rebuildRunToolsFromMastra, rt as loadRunStoredMessages, st as ensureRemoteAbortListener, t as __resetExecutionFencesForTests, tc as ExtendedRunRegistry, tt as executeDurableAgentScorers, ut as publishAbortRequest, vc as DURABLE_STOP_WHEN_ERROR_ID, vt as pruneAgentLoopSnapshot, wc as AgentStreamEventTypes, xc as AGENT_CONTROL_TOPIC, yc as DurableAgentDefaults, z as serializeModelConfig, zs as emitAbortEvent } from "../../execution-fence-DGFyUV5h.js";
|
|
2
|
+
import { a as agentLoopTermination, o as executionFailureTermination } from "../../observability-DPDWibyH.js";
|
|
3
3
|
// src/agent/durable/durable-agent.ts
|
|
4
4
|
var DurableAgent = class extends Agent {
|
|
5
5
|
/** Engine this wrapper class runs on, selected through the Agent's `durable` policy. @internal */
|
|
@@ -605,7 +605,8 @@ function isEventedAgentClass(obj) {
|
|
|
605
605
|
*
|
|
606
606
|
* In one process it runs on any pubsub, including the default one. Running its
|
|
607
607
|
* steps on several processes needs a pubsub that redelivers unacknowledged
|
|
608
|
-
* events
|
|
608
|
+
* events, a workflows store with step guards, and a server cache (`cache` on
|
|
609
|
+
* `Mastra`) that every process shares.
|
|
609
610
|
*
|
|
610
611
|
* @see https://mastra.ai/docs/server/pubsub#evented-workflows-and-agents
|
|
611
612
|
*
|
|
@@ -11,6 +11,8 @@ import type { DurableAgenticWorkflowInput, RunRegistryEntry } from './types.js';
|
|
|
11
11
|
export declare const SCOPES_ALREADY_APPLIED: unique symbol;
|
|
12
12
|
/** Carries the persisted spans a resume rebuilt from storage reattaches to into `prepare()`. */
|
|
13
13
|
export declare const RESUMED_SPAN_DATA: unique symbol;
|
|
14
|
+
/** Carries where a resume rebuilt from storage keeps its run's signals, as the run decided when it started. */
|
|
15
|
+
export declare const RESUMED_SIGNALS_STORED: unique symbol;
|
|
14
16
|
/**
|
|
15
17
|
* Result from the preparation phase
|
|
16
18
|
*/
|
|
@@ -91,6 +93,21 @@ export interface PreparationOptions<OUTPUT = undefined> {
|
|
|
91
93
|
* Falls back to `agent.name` if not provided.
|
|
92
94
|
*/
|
|
93
95
|
durableAgentName?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Whether the run may keep signals sent to it in its memory storage: its
|
|
98
|
+
* agent runs on the evented engine and the run holds its thread. It does
|
|
99
|
+
* when the run also has memory, a thread and a resource, and that storage
|
|
100
|
+
* keeps pending signals; the run's input carries the outcome.
|
|
101
|
+
* @internal
|
|
102
|
+
*/
|
|
103
|
+
signalsStored?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* For a run rebuilt from storage, the outcome it started with, carried
|
|
106
|
+
* through `RESUMED_SIGNALS_STORED`. The run keeps it and leaves its thread's
|
|
107
|
+
* signal run as it is.
|
|
108
|
+
* @internal
|
|
109
|
+
*/
|
|
110
|
+
resumedSignalsStored?: boolean;
|
|
94
111
|
}
|
|
95
112
|
/**
|
|
96
113
|
* Prepare for durable agent execution.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { TTLCache } from '@isaacs/ttlcache';
|
|
2
1
|
import type { MastraScorer } from '../../evals/base.js';
|
|
3
2
|
import type { MastraLanguageModel } from '../../llm/model/shared.types.js';
|
|
4
3
|
import type { Mastra } from '../../mastra/index.js';
|
|
@@ -8,21 +7,15 @@ import type { MessageList } from '../message-list/index.js';
|
|
|
8
7
|
import type { SaveQueueManager } from '../save-queue/index.js';
|
|
9
8
|
import type { RunRegistryEntry } from './types.js';
|
|
10
9
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* Entries are keyed by runId (which are unique UUIDs).
|
|
16
|
-
*
|
|
17
|
-
* Uses TTLCache to prevent unbounded memory growth: entries auto-expire
|
|
18
|
-
* (refreshed on access) and the registry is hard-capped at 1000 concurrent
|
|
19
|
-
* entries.
|
|
10
|
+
* How long a run's entries stay registered without being read. Every read
|
|
11
|
+
* refreshes the TTL, and the registry is hard-capped at 1000 concurrent runs,
|
|
12
|
+
* which bounds memory growth.
|
|
20
13
|
*
|
|
21
14
|
* The TTL is a crash/leak safety net, NOT an activity timeout. A run that is
|
|
22
15
|
* actively executing — waiting on a tool, a sub-agent, or a model call — can
|
|
23
16
|
* go arbitrarily long without anything reading its entry, and disposal is
|
|
24
17
|
* destructive (it force-closes the run's stream and drops the live model and
|
|
25
|
-
* tools). Such runs hold their
|
|
18
|
+
* tools). Such runs hold their entries alive explicitly via `markRunActive`.
|
|
26
19
|
*/
|
|
27
20
|
export declare const RUN_REGISTRY_TTL_MS: number;
|
|
28
21
|
/**
|
|
@@ -31,36 +24,72 @@ export declare const RUN_REGISTRY_TTL_MS: number;
|
|
|
31
24
|
* harmless.
|
|
32
25
|
*/
|
|
33
26
|
export declare const RUN_REGISTRY_HEARTBEAT_MS: number;
|
|
34
|
-
export declare const globalRunRegistry: TTLCache<string, RunRegistryEntry>;
|
|
35
27
|
/**
|
|
36
|
-
*
|
|
28
|
+
* Process-wide registry for accessing run entries from workflow steps.
|
|
29
|
+
* This is necessary because workflow steps don't have direct access to
|
|
30
|
+
* the DurableAgent instance's registry.
|
|
31
|
+
*
|
|
32
|
+
* Entries are keyed by runId and Mastra instance. Several instances in one
|
|
33
|
+
* process can hold an entry for the same run: the instance that started it
|
|
34
|
+
* keeps its live entry, and a sibling executing some of its steps keeps the
|
|
35
|
+
* state it rebuilt from storage, as a worker in another process would. An
|
|
36
|
+
* instance never sees another instance's entry, so a runId reused by another
|
|
37
|
+
* instance cannot read or overwrite the earlier run's state either.
|
|
37
38
|
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* ownerless entry (a placeholder or rehydrated entry) is claimed by the first
|
|
43
|
-
* scoped reader, so a later instance reusing the runId cannot adopt it.
|
|
39
|
+
* Workflow steps read through `getRunRegistryEntry(runId, mastra)`. Reads
|
|
40
|
+
* without an instance keep the single-instance behavior integrations and tests
|
|
41
|
+
* rely on: they see the entry written without an instance, or the run's only
|
|
42
|
+
* entry.
|
|
44
43
|
*/
|
|
44
|
+
export declare const globalRunRegistry: {
|
|
45
|
+
ttl: number;
|
|
46
|
+
/**
|
|
47
|
+
* The entry `mastra` holds for the run. An entry written without an instance
|
|
48
|
+
* is claimed by the first instance that reads it, so a later instance reusing
|
|
49
|
+
* the runId cannot adopt it.
|
|
50
|
+
*/
|
|
51
|
+
get(runId: string, mastra?: Mastra): RunRegistryEntry | undefined;
|
|
52
|
+
has(runId: string, mastra?: Mastra): boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Store the entry `mastra` (by default `entry.mastra`) holds for the run and
|
|
55
|
+
* restart the run's TTL. It replaces an entry written without an instance,
|
|
56
|
+
* which that instance has now claimed, but no other instance's entry.
|
|
57
|
+
*/
|
|
58
|
+
set(runId: string, entry: RunRegistryEntry, mastra?: Mastra | undefined): void;
|
|
59
|
+
/** Remove the entry `get(runId, mastra)` returns and run its cleanup. */
|
|
60
|
+
delete(runId: string, mastra?: Mastra): boolean;
|
|
61
|
+
/** Remove every entry, running each one's cleanup. */
|
|
62
|
+
clear(): void;
|
|
63
|
+
/** The runIds with at least one entry. */
|
|
64
|
+
keys(): IterableIterator<string>;
|
|
65
|
+
/** Every instance's entries. */
|
|
66
|
+
values(): IterableIterator<RunRegistryEntry>;
|
|
67
|
+
};
|
|
68
|
+
/** Read the entry `mastra` holds for a run, as seen from a workflow step running under it. */
|
|
45
69
|
export declare function getRunRegistryEntry(runId: string, mastra: Mastra | undefined): RunRegistryEntry | undefined;
|
|
46
70
|
/**
|
|
47
71
|
* Request-context key that identifies a run segment on engines whose steps carry no Core execution
|
|
48
72
|
* claim (Inngest). The engine stores the same value on the registry entry it seeds for the segment.
|
|
49
73
|
*/
|
|
50
74
|
export declare const DURABLE_CONTEXT_SEGMENT_KEY = "__mastra_durableContextSegment";
|
|
75
|
+
/** The run segment a step belongs to: its Core execution claim, or the engine's segment id. */
|
|
76
|
+
export declare function getStepSegment(runId: string, stepContext: RequestContext | undefined): string | undefined;
|
|
51
77
|
/**
|
|
52
78
|
* The registry's live request context, when it belongs to the execution running this step. Once
|
|
53
79
|
* another process claims the run (for example an approval from another host), the context cached
|
|
54
80
|
* here still belongs to the previous caller and must not be reused for the new execution.
|
|
55
81
|
*/
|
|
56
82
|
export declare function getLiveRunRequestContext(entry: RunRegistryEntry | undefined, runId: string | undefined, stepContext: RequestContext | undefined, executionId?: string): RequestContext<unknown> | undefined;
|
|
83
|
+
/** Publish the entry `mastra` holds for `runId`. Other instances' entries for the run are untouched. */
|
|
84
|
+
export declare function setRunRegistryEntry(runId: string, entry: RunRegistryEntry, mastra: Mastra | undefined): void;
|
|
85
|
+
/** Remove the entry `mastra` holds for `runId`, leaving other instances' entries alone. */
|
|
86
|
+
export declare function deleteRunRegistryEntry(runId: string, mastra: Mastra | undefined): void;
|
|
57
87
|
/**
|
|
58
|
-
*
|
|
59
|
-
*
|
|
88
|
+
* The Mastra instances in this process whose entry for the run holds the fence
|
|
89
|
+
* of `executionId`. Usually one; every match is returned so callers can pick
|
|
90
|
+
* the instance on their own pubsub.
|
|
60
91
|
*/
|
|
61
|
-
export declare function
|
|
62
|
-
/** Remove `runId`'s entry only if it belongs to `mastra` (or has no owner). */
|
|
63
|
-
export declare function deleteRunRegistryEntry(runId: string, mastra: Mastra | undefined): void;
|
|
92
|
+
export declare function getExecutingInstances(runId: string, executionId: string): Mastra[];
|
|
64
93
|
export declare function setRunScorerInstances(runId: string, scorers: Record<string, MastraScorer>, mastra: Mastra | undefined): void;
|
|
65
94
|
/** Remove and return the run's scorer instances, unless another Mastra owns them. */
|
|
66
95
|
export declare function takeRunScorerInstances(runId: string, mastra: Mastra | undefined): Record<string, MastraScorer> | undefined;
|
|
@@ -112,11 +141,13 @@ export declare function abandonDurableAgentExecutions(mastra: Mastra): Promise<v
|
|
|
112
141
|
* End a run's root spans (MODEL_GENERATION then AGENT_RUN) with an error so the trace
|
|
113
142
|
* still exports — stores persist only span-end events. After a resume the fresh resume
|
|
114
143
|
* spans are the active root, so prefer them. Ending an already-ended span is a no-op,
|
|
115
|
-
* so the duplicate error paths (workflow failure + emitError) are safe.
|
|
144
|
+
* so the duplicate error paths (workflow failure + emitError) are safe. `mastra` selects
|
|
145
|
+
* the spans of the instance's entry. Never throws.
|
|
116
146
|
*/
|
|
117
147
|
export declare function endRunSpansWithError(runId: string, error: Error, options?: {
|
|
118
148
|
endSpan?: boolean;
|
|
119
149
|
endStep?: boolean;
|
|
150
|
+
mastra?: Mastra;
|
|
120
151
|
}): void;
|
|
121
152
|
/**
|
|
122
153
|
* Registry for per-run non-serializable state.
|
|
@@ -24,6 +24,13 @@ type CarrierTarget = Pick<RequestContext, 'getRaw' | 'setRaw'> | Record<string,
|
|
|
24
24
|
* caller's context cannot overwrite the parent's segment.
|
|
25
25
|
*/
|
|
26
26
|
export declare function carrySegmentSpans(target: CarrierTarget, runId: string, segment: SegmentSpanData | null): void;
|
|
27
|
+
/**
|
|
28
|
+
* Record the `autoResumeSuspendedTools` a resumed execution of `runId` runs with on the request context it hands the
|
|
29
|
+
* engine, which carries it to every step of the segment wherever it runs. (#30190)
|
|
30
|
+
*/
|
|
31
|
+
export declare function carrySegmentAutoResume(requestContext: RequestContext, runId: string, value: boolean): void;
|
|
32
|
+
/** The `autoResumeSuspendedTools` a resume carried for the current execution of `runId`, if any. */
|
|
33
|
+
export declare function segmentAutoResume(requestContext: Pick<RequestContext, 'getRaw'> | undefined, runId: string): boolean | undefined;
|
|
27
34
|
/**
|
|
28
35
|
* The pair the current execution reports under: the one a resume or recovery carried for `runId`,
|
|
29
36
|
* else the run's first pair from `state` (the workflow input or the loop state). A carried `null`
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type { IMastraLogger } from '../../logger/index.js';
|
|
2
|
+
import type { Mastra } from '../../mastra/index.js';
|
|
3
|
+
import type { RequestContext } from '../../request-context/index.js';
|
|
4
|
+
import type { MessageList } from '../message-list/index.js';
|
|
5
|
+
import type { CreatedAgentSignal } from '../signals.js';
|
|
6
|
+
import type { ThreadSignalsStore } from '../stored-signals.js';
|
|
7
|
+
import type { DurableAgenticWorkflowInput } from './types.js';
|
|
8
|
+
/**
|
|
9
|
+
* Workflow-state key of the ids of every signal a storage-backed run took into
|
|
10
|
+
* its transcript, saved in the same state write as that transcript. A claim
|
|
11
|
+
* skips them, and the run's close deletes the ones that never reached memory.
|
|
12
|
+
*/
|
|
13
|
+
export declare const CONSUMED_SIGNAL_IDS_KEY = "consumedSignalIds";
|
|
14
|
+
/** The consumed set in workflow state. A run started before the set existed has consumed nothing. */
|
|
15
|
+
export declare function readConsumedSignalIds(state: unknown): string[];
|
|
16
|
+
/** Ids of the signals the run was started with. They reach the transcript as input, not through a drain. */
|
|
17
|
+
export declare function inputSignalIds(messageList: MessageList): string[];
|
|
18
|
+
type DurableRunInput = Partial<Pick<DurableAgenticWorkflowInput, 'agentId' | 'agentVersionId' | 'requestContextEntries' | 'signalsStored'>> & {
|
|
19
|
+
state?: {
|
|
20
|
+
threadId?: string;
|
|
21
|
+
resourceId?: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Where a durable run's pending signals are read and settled in this process,
|
|
26
|
+
* or `undefined` when the run keeps them in the thread runtime's queues. The
|
|
27
|
+
* run carries the decision in its input, made once when it was prepared. The
|
|
28
|
+
* store comes from the memory this process holds for the run or from the agent
|
|
29
|
+
* and the request context entries the run carries, and is kept on the run's
|
|
30
|
+
* registry entry once resolved. A resolution that fails or finds no store is
|
|
31
|
+
* tried again at the next site. A run whose memory resolves here to no store,
|
|
32
|
+
* or to a store without its thread, reads nothing here, and that is logged
|
|
33
|
+
* once.
|
|
34
|
+
*/
|
|
35
|
+
export declare function durableRunSignalsStore({ mastra, runId, input, requestContext, }: {
|
|
36
|
+
mastra: Mastra | undefined;
|
|
37
|
+
runId: string;
|
|
38
|
+
input: DurableRunInput | undefined;
|
|
39
|
+
requestContext?: RequestContext;
|
|
40
|
+
}): Promise<ThreadSignalsStore | undefined> | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Close a storage-backed run that ended: the store deletes the taken rows it
|
|
43
|
+
* consumed and, while the run is still the thread's signal run, gives the
|
|
44
|
+
* other taken rows back to pending. Safe to repeat. Returns nothing to wait
|
|
45
|
+
* for when the run's signals are not stored, so other runs end without
|
|
46
|
+
* waiting on it.
|
|
47
|
+
*
|
|
48
|
+
* A failed close doesn't fail the run's ending: the thread keeps the run as
|
|
49
|
+
* its signal run until the thread's next run is prepared.
|
|
50
|
+
*/
|
|
51
|
+
export declare function closeStoredSignalRun({ mastra, runId, input, requestContext, state, deadline, }: {
|
|
52
|
+
mastra: Mastra | undefined;
|
|
53
|
+
runId: string;
|
|
54
|
+
input: DurableRunInput | undefined;
|
|
55
|
+
requestContext?: RequestContext;
|
|
56
|
+
/** The run's latest saved workflow state, or a read of it. */
|
|
57
|
+
state: unknown | (() => unknown);
|
|
58
|
+
/** Set by the close of the run's total deadline. */
|
|
59
|
+
deadline?: boolean;
|
|
60
|
+
}): Promise<boolean> | undefined;
|
|
61
|
+
export type StoredSignalDrain = {
|
|
62
|
+
signals: CreatedAgentSignal[];
|
|
63
|
+
/** Workflow state to save together with the transcript that holds `signals`. */
|
|
64
|
+
state: {
|
|
65
|
+
[CONSUMED_SIGNAL_IDS_KEY]: string[];
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* One drain of a storage-backed run: claim the thread's pending rows and get
|
|
70
|
+
* back every taken row of the thread that the run's saved state doesn't list
|
|
71
|
+
* as consumed. A step that fails before saving its result gets the same rows
|
|
72
|
+
* again from its retry, except a row saved into the thread inside that step,
|
|
73
|
+
* and a step that saved its result never gets them again.
|
|
74
|
+
*/
|
|
75
|
+
export declare function claimStoredSignals({ queue: { store, threadId }, runId, consumed, logger, }: {
|
|
76
|
+
queue: ThreadSignalsStore;
|
|
77
|
+
runId: string;
|
|
78
|
+
consumed: readonly string[];
|
|
79
|
+
logger?: IMastraLogger;
|
|
80
|
+
}): Promise<StoredSignalDrain>;
|
|
81
|
+
/**
|
|
82
|
+
* The drain of a storage-backed run at one site: `undefined` when the run's
|
|
83
|
+
* signals are not stored, `drain()` resolves `undefined` when the store could
|
|
84
|
+
* not be resolved or a read failed, so the saved consumed set stays as it is.
|
|
85
|
+
* A failed claim takes nothing, as the loop's other drain points do: the rows
|
|
86
|
+
* come back at the next drain. A claim that was written while its answer
|
|
87
|
+
* failed leaves the rows claimed by this run, so a cancel no longer finds
|
|
88
|
+
* them, and the run's next drain returns them because their ids are not in
|
|
89
|
+
* its consumed set. It does not check for an abort; callers check
|
|
90
|
+
* before calling it.
|
|
91
|
+
*/
|
|
92
|
+
export declare function storedSignalDrain({ mastra, runId, input, requestContext, getState, }: {
|
|
93
|
+
mastra: Mastra | undefined;
|
|
94
|
+
runId: string;
|
|
95
|
+
input: DurableRunInput | undefined;
|
|
96
|
+
requestContext?: RequestContext;
|
|
97
|
+
getState: (keys: readonly string[]) => Promise<unknown>;
|
|
98
|
+
}): (() => Promise<StoredSignalDrain | undefined>) | undefined;
|
|
99
|
+
export {};
|
|
100
|
+
//# sourceMappingURL=stored-signal-drain.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LanguageModelRequestMetadata } from '../../_types/@internal_ai-sdk-v5@0.0.
|
|
1
|
+
import type { LanguageModelRequestMetadata } from '../../_types/@internal_ai-sdk-v5@0.0.100/dist/index.js';
|
|
2
2
|
import type { PubSub } from '../../events/pubsub.js';
|
|
3
3
|
import type { IMastraLogger } from '../../logger/index.js';
|
|
4
4
|
import type { TracingContext } from '../../observability/index.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { LanguageModelV2FinishReason, LanguageModelV2CallWarning, SharedV2ProviderMetadata } from '../../_types/@ai-sdk_provider@2.0.5/dist/index.js';
|
|
2
|
-
import type { LanguageModelRequestMetadata, LogProbs as LanguageModelV1LogProbs } from '../../_types/@internal_ai-sdk-v4@0.0.
|
|
3
|
-
import type { LanguageModelUsage, ModelMessage } from '../../_types/@internal_ai-sdk-v5@0.0.
|
|
2
|
+
import type { LanguageModelRequestMetadata, LogProbs as LanguageModelV1LogProbs } from '../../_types/@internal_ai-sdk-v4@0.0.100/dist/index.js';
|
|
3
|
+
import type { LanguageModelUsage, ModelMessage } from '../../_types/@internal_ai-sdk-v5@0.0.100/dist/index.js';
|
|
4
4
|
import type { JSONSchema7 } from 'json-schema';
|
|
5
5
|
import type { z } from 'zod';
|
|
6
6
|
import type { MastraFGAPermissionInput } from '../../auth/ee/index.js';
|
|
@@ -33,6 +33,7 @@ import type { AIV5ResponseMessage, MessageList } from '../message-list/index.js'
|
|
|
33
33
|
import type { SerializedMessageListState } from '../message-list/state/index.js';
|
|
34
34
|
import type { SaveQueueManager } from '../save-queue/index.js';
|
|
35
35
|
import type { PendingSignalListener, AgentSignalInput, CreatedAgentSignal } from '../signals.js';
|
|
36
|
+
import type { ThreadSignalsStore } from '../stored-signals.js';
|
|
36
37
|
import type { AgentStreamsConfig } from '../streams/types.js';
|
|
37
38
|
import type { TripwireData } from '../trip-wire.js';
|
|
38
39
|
import type { AgentMethodType, GoalConfig, StructuredOutputOptions, ToolsInput } from '../types.js';
|
|
@@ -322,6 +323,14 @@ export interface DurableAgenticWorkflowInput {
|
|
|
322
323
|
agentId: string;
|
|
323
324
|
/** Agent name for logging/tracing */
|
|
324
325
|
agentName?: string;
|
|
326
|
+
/**
|
|
327
|
+
* Whether signals sent to this run are kept in the messages table of its
|
|
328
|
+
* memory storage rather than in the starting process's memory. Decided once
|
|
329
|
+
* when the run is prepared, so every process that executes its steps reads
|
|
330
|
+
* the same place senders write to. Absent on runs that keep them in memory.
|
|
331
|
+
* @internal
|
|
332
|
+
*/
|
|
333
|
+
signalsStored?: boolean;
|
|
325
334
|
/**
|
|
326
335
|
* Exact stored version id the run resolved to at start time. A run that
|
|
327
336
|
* suspends while executing a stored version must resume on *that* version —
|
|
@@ -773,6 +782,12 @@ export interface RunRegistryEntry {
|
|
|
773
782
|
* registered on the Mastra instance instead of trusting the entry.
|
|
774
783
|
*/
|
|
775
784
|
isPlaceholder?: boolean;
|
|
785
|
+
/**
|
|
786
|
+
* The `autoResumeSuspendedTools` the run's current segment executes with, set when a resume runs it. Absent until
|
|
787
|
+
* then: the run executes with the value in its workflow input. Each suspension persists it, so a resume in another
|
|
788
|
+
* process that leaves the option out keeps the latest one. (#30190)
|
|
789
|
+
*/
|
|
790
|
+
autoResumeSuspendedTools?: boolean;
|
|
776
791
|
/**
|
|
777
792
|
* Resolved tools with execute functions.
|
|
778
793
|
*
|
|
@@ -798,6 +813,12 @@ export interface RunRegistryEntry {
|
|
|
798
813
|
* replaced tools are kept (#25960).
|
|
799
814
|
*/
|
|
800
815
|
requestTools?: Record<string, CoreTool>;
|
|
816
|
+
/**
|
|
817
|
+
* The run segment (one start or one resume) `baseTools` were built for. A step from another
|
|
818
|
+
* segment rebuilds them for its own caller before the model sees them. Unset until a step
|
|
819
|
+
* adopts the segment it runs in.
|
|
820
|
+
*/
|
|
821
|
+
toolsSegment?: string;
|
|
801
822
|
/**
|
|
802
823
|
* The method that started the run (`stream` or `generate`). A warm resume
|
|
803
824
|
* rebuilds `requestTools` for this method, so a streamed run's sub-agents keep
|
|
@@ -981,6 +1002,28 @@ export interface RunRegistryEntry {
|
|
|
981
1002
|
subscribePendingSignals?: (listener: PendingSignalListener) => () => void;
|
|
982
1003
|
/** Releases the latest LLM step's pending-signal listener, whichever way that step exited. */
|
|
983
1004
|
stopStepSignalListener?: () => void;
|
|
1005
|
+
/**
|
|
1006
|
+
* Interrupts the latest LLM step's model request the way its pending-signal
|
|
1007
|
+
* listener does. Set for runs that keep their signals in storage: a signal a
|
|
1008
|
+
* processor stores for such a run reaches no queue listener. Cleared when
|
|
1009
|
+
* that step ends.
|
|
1010
|
+
* @internal
|
|
1011
|
+
*/
|
|
1012
|
+
interruptStepForSignals?: PendingSignalListener;
|
|
1013
|
+
/**
|
|
1014
|
+
* Hears `signal-available` hints for the latest LLM step of a run that keeps
|
|
1015
|
+
* its signals in storage, from whichever process stored them. Cleared when
|
|
1016
|
+
* that step ends.
|
|
1017
|
+
* @internal
|
|
1018
|
+
*/
|
|
1019
|
+
onSignalAvailable?: (signalId: string) => void;
|
|
1020
|
+
/**
|
|
1021
|
+
* Where this process reads and settles the signals of a run that keeps them
|
|
1022
|
+
* in memory storage, once resolved: set by preparation, or by the first
|
|
1023
|
+
* resolution that succeeded. See `durableRunSignalsStore`.
|
|
1024
|
+
* @internal
|
|
1025
|
+
*/
|
|
1026
|
+
pendingSignalsStore?: ThreadSignalsStore;
|
|
984
1027
|
/**
|
|
985
1028
|
* Thread title generation closure — mirrors the non-durable `#executeOnFinish`
|
|
986
1029
|
* title-generation branch, which was never ported to the durable finish step
|
|
@@ -1050,6 +1093,12 @@ export interface RunRegistryEntry {
|
|
|
1050
1093
|
timeoutTotalMs?: number;
|
|
1051
1094
|
/** A late subscriber re-publishes the winning deadline error at most once per segment. */
|
|
1052
1095
|
deadlineErrorRedelivered?: boolean;
|
|
1096
|
+
/**
|
|
1097
|
+
* Set once this process's total deadline is going to close the run's stored signals with the transcript it saves.
|
|
1098
|
+
* The run's other endings then leave the close to it.
|
|
1099
|
+
* @internal
|
|
1100
|
+
*/
|
|
1101
|
+
deadlineClosesStoredSignals?: boolean;
|
|
1053
1102
|
/**
|
|
1054
1103
|
* This process's subscription to cross-process abort requests for the run.
|
|
1055
1104
|
* Set by `ensureRemoteAbortListener`, which every durable step calls on
|