@mastra/core 1.87.0-alpha.18 → 1.87.0-alpha.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_types/@internal_ai-v6@0.0.99/dist/index.d.ts +2075 -123
- package/dist/_types/@internal_core@0.1.4/dist/knowledge-compat/index.d.ts +30 -3
- package/dist/agent/agent.d.ts +2 -4
- package/dist/agent/agent.types.d.ts +1 -0
- package/dist/agent/durable/index.cjs +86 -86
- package/dist/agent/durable/index.js +2 -2
- package/dist/agent/durable/run-registry.d.ts +54 -25
- package/dist/agent/index.cjs +16 -16
- package/dist/agent/index.d.ts +1 -0
- package/dist/agent/index.js +3 -3
- package/dist/agent/scopes.d.ts +8 -0
- package/dist/agent/types.d.ts +1 -0
- 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-D_OKCLUP.cjs → agent-controller-DzOEhUjR.cjs} +39 -35
- package/dist/{agent-controller-UZNIM4h-.js → agent-controller-lBdNfcFi.js} +15 -11
- 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/background-tasks/index.cjs +1 -1
- package/dist/background-tasks/index.js +1 -1
- package/dist/{background-tasks-CioDMzgY.js → background-tasks-DAu4WaCb.js} +1 -1
- package/dist/{background-tasks-CLWnX7SN.cjs → background-tasks-DOmQdBVn.cjs} +1 -1
- package/dist/browser/index.cjs +4 -4
- package/dist/browser/index.js +4 -4
- package/dist/{builder-BC4l-RN5.cjs → builder-BFcVEbX0.cjs} +3 -3
- package/dist/{builder-CQLqpQO_.js → builder-DHFtMW8D.js} +2 -2
- package/dist/capabilities/302ai.json +198 -198
- package/dist/capabilities/abacus.json +2 -96
- package/dist/capabilities/abliteratedllm.json +36 -36
- package/dist/capabilities/abliteration-ai.json +11 -11
- package/dist/capabilities/above.json +19 -19
- package/dist/capabilities/adaption.json +11 -11
- package/dist/capabilities/adzuki.json +32 -32
- package/dist/capabilities/agentrouter.json +12 -12
- package/dist/capabilities/agnes.json +4 -4
- package/dist/capabilities/ai-router.json +5 -5
- package/dist/capabilities/aiand.json +25 -25
- package/dist/capabilities/aigrow.json +13 -13
- package/dist/capabilities/aimlapi.json +144 -144
- package/dist/capabilities/aipg.json +2 -2
- package/dist/capabilities/aixy.json +24 -24
- package/dist/capabilities/aki-io.json +12 -12
- package/dist/capabilities/alibaba-cn.json +81 -126
- package/dist/capabilities/alibaba-coding-plan-cn.json +4 -4
- package/dist/capabilities/alibaba-coding-plan.json +4 -4
- package/dist/capabilities/alibaba-token-plan-cn.json +57 -53
- package/dist/capabilities/alibaba-token-plan.json +57 -53
- package/dist/capabilities/alibaba.json +76 -71
- package/dist/capabilities/ambient.json +14 -32
- package/dist/capabilities/amd-tokenlab.json +41 -0
- package/dist/capabilities/amd.json +8 -8
- package/dist/capabilities/anthropic.json +32 -56
- package/dist/capabilities/anyapi.json +47 -47
- package/dist/capabilities/apiko.json +5 -5
- package/dist/capabilities/arcee.json +5 -5
- package/dist/capabilities/augure.json +4 -4
- package/dist/capabilities/auriko.json +15 -15
- package/dist/capabilities/bailing.json +3 -3
- package/dist/capabilities/baseten.json +35 -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 +39 -39
- package/dist/capabilities/bumo.json +40 -40
- package/dist/capabilities/byteplus.json +28 -28
- package/dist/capabilities/cheapest-token.json +31 -31
- package/dist/capabilities/chutes.json +48 -17
- package/dist/capabilities/cline-pass.json +32 -45
- package/dist/capabilities/cloudcode.json +8 -8
- package/dist/capabilities/cloudferro-sherlock.json +4 -4
- package/dist/capabilities/cloudflare-workers-ai.json +17 -17
- package/dist/capabilities/commandcode.json +141 -156
- package/dist/capabilities/concentrate.json +289 -289
- package/dist/capabilities/cortecs.json +103 -103
- package/dist/capabilities/crossmodel.json +194 -194
- package/dist/capabilities/crusoe.json +18 -18
- package/dist/capabilities/daoxe.json +9 -9
- package/dist/capabilities/databricks.json +128 -128
- package/dist/capabilities/deepinfra.json +98 -94
- package/dist/capabilities/deepseek.json +4 -4
- package/dist/capabilities/digitalocean.json +114 -114
- package/dist/capabilities/dinference.json +1 -2
- package/dist/capabilities/dothoosh.json +26 -26
- package/dist/capabilities/doubleword.json +23 -23
- package/dist/capabilities/edenai.json +285 -285
- package/dist/capabilities/empiriolabs.json +176 -167
- package/dist/capabilities/engy.json +16 -16
- package/dist/capabilities/entrim.json +8 -8
- package/dist/capabilities/evroc.json +15 -15
- package/dist/capabilities/ezkielyna.json +10 -10
- package/dist/capabilities/fastrouter.json +93 -97
- package/dist/capabilities/fireworks-ai.json +85 -85
- package/dist/capabilities/fortytwo.json +4 -4
- package/dist/capabilities/freemodel.json +7 -51
- package/dist/capabilities/friendli.json +8 -8
- package/dist/capabilities/frogbot.json +95 -103
- package/dist/capabilities/gisoo.json +15 -15
- package/dist/capabilities/gmicloud.json +21 -21
- package/dist/capabilities/google.json +55 -55
- package/dist/capabilities/graphn.json +10 -10
- package/dist/capabilities/greenpt.json +35 -35
- package/dist/capabilities/groq.json +7 -20
- package/dist/capabilities/helicone.json +84 -86
- package/dist/capabilities/hetzner.json +4 -4
- package/dist/capabilities/hopper.json +2 -2
- package/dist/capabilities/hostinger-router.json +5 -5
- package/dist/capabilities/hpc-ai.json +8 -24
- package/dist/capabilities/huawei-maas.json +13 -13
- package/dist/capabilities/hubris.json +30 -30
- package/dist/capabilities/huggingface.json +86 -101
- package/dist/capabilities/hyper.json +24 -24
- package/dist/capabilities/impossibl.json +152 -199
- package/dist/capabilities/inceptron.json +8 -8
- package/dist/capabilities/inco.json +4 -21
- package/dist/capabilities/infer.json +16 -16
- package/dist/capabilities/inferall.json +2 -18
- package/dist/capabilities/inference-coop.json +6 -6
- package/dist/capabilities/inference.json +2 -11
- package/dist/capabilities/inferenceapis.json +24 -24
- package/dist/capabilities/infersia.json +13 -13
- package/dist/capabilities/inferx.json +3 -3
- package/dist/capabilities/infomaniak.json +3 -3
- package/dist/capabilities/io-net.json +6 -16
- package/dist/capabilities/isoquant.json +4 -4
- package/dist/capabilities/iteracompute.json +42 -80
- 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 +54 -54
- package/dist/capabilities/keln.json +23 -23
- package/dist/capabilities/kenari.json +122 -130
- package/dist/capabilities/kilo.json +649 -647
- package/dist/capabilities/kimi-code-plan-cn.json +7 -7
- package/dist/capabilities/kimi-code-plan-global.json +7 -7
- package/dist/capabilities/kitani.json +4 -4
- package/dist/capabilities/klavo.json +24 -24
- package/dist/capabilities/korouter.json +32 -32
- package/dist/capabilities/kunavo.json +7 -7
- package/dist/capabilities/liquid.json +8 -8
- package/dist/capabilities/lithosai.json +3 -3
- package/dist/capabilities/llmgateway-providers.json +885 -893
- package/dist/capabilities/llmgateway.json +340 -340
- package/dist/capabilities/llmtr.json +16 -54
- package/dist/capabilities/lowrouter.json +61 -61
- package/dist/capabilities/lyceum.json +14 -14
- package/dist/capabilities/meganova.json +0 -1
- package/dist/capabilities/melious.json +14 -14
- package/dist/capabilities/merge-gateway.json +292 -292
- package/dist/capabilities/meta.json +11 -11
- package/dist/capabilities/minimax-cn-coding-plan.json +2 -2
- package/dist/capabilities/minimax-cn.json +5 -5
- package/dist/capabilities/minimax-coding-plan.json +2 -2
- package/dist/capabilities/minimax.json +5 -5
- package/dist/capabilities/mistral.json +15 -31
- package/dist/capabilities/mixlayer.json +5 -5
- package/dist/capabilities/moark.json +0 -2
- package/dist/capabilities/modal.json +8 -8
- package/dist/capabilities/model-oracle-ai.json +19 -27
- package/dist/capabilities/modelis.json +14 -14
- package/dist/capabilities/modelscope.json +2 -2
- package/dist/capabilities/modular.json +11 -11
- package/dist/capabilities/moneo.json +7 -38
- package/dist/capabilities/moonshotai-cn.json +7 -7
- package/dist/capabilities/moonshotai.json +7 -7
- package/dist/capabilities/morph.json +13 -13
- package/dist/capabilities/munito-eu.json +8 -8
- package/dist/capabilities/munito.json +10 -10
- package/dist/capabilities/nan.json +31 -31
- package/dist/capabilities/nano-gpt.json +581 -603
- package/dist/capabilities/nearai.json +119 -119
- package/dist/capabilities/nebius.json +30 -31
- package/dist/capabilities/neon.json +132 -132
- package/dist/capabilities/neuralwatt.json +41 -41
- package/dist/capabilities/nokeep.json +5 -5
- package/dist/capabilities/novita-ai.json +113 -227
- package/dist/capabilities/nvidia.json +14 -82
- package/dist/capabilities/oathbreaker.json +2 -2
- package/dist/capabilities/obscurify.json +28 -28
- package/dist/capabilities/oci.json +4 -4
- package/dist/capabilities/ofox.json +270 -270
- package/dist/capabilities/ollama-cloud.json +53 -53
- package/dist/capabilities/openai.json +57 -57
- package/dist/capabilities/opencode-go.json +88 -90
- package/dist/capabilities/openreason.json +5 -5
- package/dist/capabilities/openrouter.json +574 -563
- package/dist/capabilities/opper.json +29 -34
- package/dist/capabilities/orcarouter.json +307 -367
- package/dist/capabilities/outerlabs.json +30 -30
- package/dist/capabilities/ovhcloud.json +19 -19
- package/dist/capabilities/pareto.json +2 -7
- package/dist/capabilities/perplexity-agent.json +47 -102
- package/dist/capabilities/perplexity.json +2 -2
- package/dist/capabilities/phala.json +35 -35
- package/dist/capabilities/pioneer.json +5 -122
- package/dist/capabilities/poe.json +130 -130
- package/dist/capabilities/poolside.json +2 -2
- package/dist/capabilities/powerspring.json +14 -14
- package/dist/capabilities/primalabs.json +12 -12
- package/dist/capabilities/prime.json +123 -115
- package/dist/capabilities/privatemode-ai.json +8 -36
- package/dist/capabilities/proxystacks.json +5 -5
- package/dist/capabilities/qihang-ai.json +3 -15
- package/dist/capabilities/qiniu-ai.json +13 -87
- package/dist/capabilities/refuseless.json +7 -14
- package/dist/capabilities/regolo-ai.json +9 -13
- package/dist/capabilities/requesty.json +202 -202
- package/dist/capabilities/routing-run.json +3 -40
- package/dist/capabilities/ruapi.json +21 -21
- package/dist/capabilities/runcrate.json +10 -10
- package/dist/capabilities/runinfra.json +16 -16
- package/dist/capabilities/sakana.json +3 -3
- package/dist/capabilities/sambanova.json +9 -9
- package/dist/capabilities/sandbase.json +20 -20
- package/dist/capabilities/sarvam.json +22 -13
- package/dist/capabilities/scaleway.json +18 -18
- package/dist/capabilities/scnet-token-plan.json +7 -7
- package/dist/capabilities/scx-ai.json +16 -32
- package/dist/capabilities/sensenova.json +12 -12
- package/dist/capabilities/siliconflow-cn.json +45 -97
- package/dist/capabilities/siliconflow.json +53 -53
- package/dist/capabilities/snowflake-cortex.json +26 -26
- package/dist/capabilities/sokkan.json +8 -20
- package/dist/capabilities/sparrowcodes.json +21 -21
- package/dist/capabilities/stackit.json +1 -2
- package/dist/capabilities/standardcompute.json +84 -120
- package/dist/capabilities/steadyrouter.json +41 -41
- package/dist/capabilities/stepfun-ai-step-plan.json +8 -8
- package/dist/capabilities/stepfun-ai.json +8 -8
- package/dist/capabilities/stepfun-step-plan.json +8 -8
- package/dist/capabilities/stepfun.json +8 -8
- package/dist/capabilities/stepping-stone.json +15 -15
- package/dist/capabilities/subconscious.json +2 -2
- package/dist/capabilities/superbot-gg.json +4 -4
- package/dist/capabilities/synthetic.json +8 -17
- package/dist/capabilities/synthorai.json +21 -21
- package/dist/capabilities/teamorouter.json +23 -23
- package/dist/capabilities/teapot-router.json +10 -10
- package/dist/capabilities/tencent-token-plan-intl.json +25 -25
- package/dist/capabilities/tencent-token-plan.json +38 -38
- package/dist/capabilities/tencent-tokenhub.json +46 -46
- package/dist/capabilities/tensorx.json +48 -48
- package/dist/capabilities/tenstorrent.json +4 -4
- package/dist/capabilities/the-grid-ai.json +29 -29
- package/dist/capabilities/thinkingmachines.json +71 -71
- package/dist/capabilities/tinfoil.json +8 -8
- package/dist/capabilities/toapis.json +3 -3
- package/dist/capabilities/togetherai.json +42 -42
- package/dist/capabilities/tokengo.json +21 -21
- package/dist/capabilities/tokenify.json +2 -2
- package/dist/capabilities/trustedrouter.json +5 -5
- package/dist/capabilities/trustedtokens.json +15 -15
- package/dist/capabilities/umans-ai-coding-plan.json +16 -16
- package/dist/capabilities/umans-ai.json +13 -13
- package/dist/capabilities/uncensuredai.json +4 -4
- package/dist/capabilities/unorouter.json +1 -22
- package/dist/capabilities/unrestricted.json +4 -20
- package/dist/capabilities/uplinkswitch.json +21 -21
- package/dist/capabilities/upstage.json +3 -15
- package/dist/capabilities/vancine.json +20 -20
- package/dist/capabilities/vercel.json +551 -551
- package/dist/capabilities/vivgrid.json +51 -131
- package/dist/capabilities/volcengine-coding-plan.json +29 -29
- package/dist/capabilities/volcengine.json +27 -27
- package/dist/capabilities/vultr.json +14 -67
- package/dist/capabilities/wafer.ai.json +17 -17
- package/dist/capabilities/wallaby.json +2 -2
- package/dist/capabilities/wally.json +12 -12
- package/dist/capabilities/wandb.json +21 -21
- package/dist/capabilities/watt.json +22 -22
- package/dist/capabilities/xai.json +5 -5
- package/dist/capabilities/xiaomi-token-plan-ams.json +2 -2
- package/dist/capabilities/xiaomi-token-plan-cn.json +2 -2
- package/dist/capabilities/xiaomi-token-plan-sgp.json +2 -2
- package/dist/capabilities/xiaomi.json +2 -2
- package/dist/capabilities/xpersona.json +13 -13
- package/dist/capabilities/xxapi.json +30 -30
- package/dist/capabilities/zai-coding-plan.json +17 -17
- package/dist/capabilities/zai.json +31 -31
- package/dist/capabilities/zenifra.json +26 -26
- package/dist/capabilities/zenmux.json +190 -233
- package/dist/capabilities/zerogpu.json +8 -8
- package/dist/capabilities/zhipuai-coding-plan.json +3 -14
- package/dist/capabilities/zhipuai.json +30 -30
- package/dist/capabilities/zro.json +6 -6
- package/dist/channels/index.cjs +24 -24
- package/dist/channels/index.js +2 -2
- package/dist/{channels-Bemsws_d.js → channels-BBwgs50q.js} +2 -2
- package/dist/{channels-B7-KI9Ob.cjs → channels-CbhgGgQD.cjs} +6 -6
- package/dist/coding-agent/index.cjs +7 -7
- package/dist/coding-agent/index.js +4 -4
- package/dist/{constants-CFO8w780.cjs → constants-B2FVV_2e.cjs} +1 -1
- package/dist/{constants-CUv0mU2y.js → constants-Dro9fuhk.js} +1 -1
- package/dist/datasets/index.cjs +9 -9
- package/dist/datasets/index.js +2 -2
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1147 -1142
- package/dist/docs/references/docs-agents-overview.md +9 -0
- package/dist/docs/references/docs-deployment-workers.md +1 -1
- package/dist/docs/references/docs-harness-background-tasks.md +8 -5
- package/dist/docs/references/docs-harness-durable-agents.md +1 -0
- package/dist/docs/references/docs-knowledge-search.md +1 -1
- package/dist/docs/references/docs-server-pubsub.md +1 -1
- package/dist/docs/references/docs-skills.md +4 -1
- package/dist/docs/references/docs-workflows-overview.md +2 -0
- package/dist/docs/references/reference-agents-createSkill.md +20 -1
- package/dist/docs/references/reference-knowledge-knowledge-tools.md +1 -2
- package/dist/docs/references/reference-observability-metrics-metrics-context.md +63 -3
- package/dist/docs/references/reference-pubsub-base.md +1 -1
- package/dist/docs/references/reference-pubsub-redis-streams.md +3 -5
- package/dist/docs/references/reference-pubsub-valkey-streams.md +2 -2
- package/dist/docs/references/reference-templates-overview.md +31 -1
- package/dist/docs/references/reference-workflows-run-methods-restart.md +2 -0
- package/dist/evals/index.cjs +13 -13
- package/dist/evals/index.js +2 -2
- package/dist/evals/scoreTraces/index.cjs +4 -4
- package/dist/evals/scoreTraces/index.js +2 -2
- package/dist/events/index.cjs +1 -1
- package/dist/events/index.js +1 -1
- package/dist/events/pubsub.d.ts +1 -3
- package/dist/{run-registry-Cu9CK7AR.js → execution-fence-B8yV_n51.js} +62508 -62052
- package/dist/{run-registry-CXeR1Qso.cjs → execution-fence-fqV6FGdV.cjs} +63621 -63153
- 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/index.cjs +163 -153
- package/dist/knowledge/index.js +18 -8
- package/dist/llm/index.cjs +3 -3
- package/dist/llm/index.js +3 -3
- package/dist/llm/model/gateways/opencode-session-header.d.ts +28 -0
- package/dist/llm/model/provider-types.generated.d.ts +7412 -7795
- package/dist/llm/model/resolve-model.d.ts +1 -0
- package/dist/llm/model/shared.types.d.ts +1 -0
- package/dist/{llm-ZA8oIVog.cjs → llm-B7ul27Ay.cjs} +32 -14
- package/dist/{llm-DCoDWje0.js → llm-Cy3WZXgA.js} +32 -14
- package/dist/loop/index.cjs +15 -15
- package/dist/loop/index.js +2 -2
- package/dist/loop/server.cjs +1 -1
- package/dist/loop/server.js +1 -1
- package/dist/{manager-oP6iB_H-.cjs → manager-CY-RzZJL.cjs} +21 -19
- package/dist/{manager-DSbR85XK.js → manager-Dsub5fyz.js} +9 -7
- package/dist/mastra/index.cjs +1 -1
- package/dist/mastra/index.d.ts +33 -4
- package/dist/mastra/index.js +1 -1
- package/dist/{mastra-FEJ-anIN.cjs → mastra-DXQUuwFl.cjs} +116 -67
- package/dist/{mastra-RgFRZ_Az.js → mastra-yjoYfTS5.js} +76 -27
- package/dist/memory/index.cjs +24 -24
- package/dist/memory/index.js +2 -2
- package/dist/memory/mock.d.ts +2 -3
- package/dist/{model-opyZwnK3.cjs → model-BARBpXDN.cjs} +2 -2
- package/dist/{model-DSBVKOW8.js → model-DauH8JTo.js} +2 -2
- package/dist/{netlify-BqMGvc2s.js → netlify-BNBtKR4Q.js} +86 -4
- package/dist/{netlify-DzturPW3.cjs → netlify-DGsETiFB.cjs} +97 -3
- 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-DgsH4aTb.cjs → output-helpers-By5FbLpp.cjs} +71 -73
- package/dist/{output-helpers-CVzhy1Y0.js → output-helpers-k2-48ssH.js} +72 -74
- 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.js +2 -2
- package/dist/{provider-registry-BcG2ooFa.js → provider-registry-CfHy4Zhw.js} +21401 -22401
- package/dist/{provider-registry-BZw14X9M.cjs → provider-registry-Y6tbfFhH.cjs} +21401 -22401
- package/dist/provider-registry.json +21940 -22961
- package/dist/{registry-generator-BrzPSCHS.cjs → registry-generator-BEJ0APNc.cjs} +1 -1
- package/dist/{registry-generator-CA4YBIHo.js → registry-generator-DJiQAI8V.js} +1 -1
- package/dist/{rehydrate-CfS6KkCr.cjs → rehydrate-4Sl7D3kO.cjs} +14 -14
- package/dist/{rehydrate-Chuw5IrY.js → rehydrate-Da4_E_N8.js} +2 -2
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +2 -2
- 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 +3 -3
- package/dist/signals/index.js +3 -3
- package/dist/{signals-CbmgVwL-.cjs → signals-BwDXGqxc.cjs} +2 -2
- package/dist/{signals-Clupx3jz.js → signals-TznxWfM3.js} +2 -2
- 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-DYZMfjv3.js → source-B3He4_mz.js} +1 -1
- package/dist/{source-BC8Et5qZ.cjs → source-C_nWbqI0.cjs} +1 -1
- 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 +1 -1
- package/dist/storage/domains/knowledge/pages.d.ts +8 -1
- package/dist/storage/domains/memory/base.d.ts +19 -9
- package/dist/storage/domains/memory/inmemory.d.ts +4 -1
- package/dist/storage/domains/memory/queue-thread.d.ts +7 -1
- package/dist/storage/domains/workflows/base.d.ts +18 -5
- package/dist/storage/domains/workflows/inmemory.d.ts +3 -5
- package/dist/storage/domains/workflows/journal.d.ts +16 -1
- package/dist/storage/index.cjs +187 -186
- package/dist/storage/index.js +6 -6
- package/dist/storage/workflow-snapshot.d.ts +4 -0
- package/dist/storage/workflow-step-guard.d.ts +5 -0
- package/dist/stream/base/output.d.ts +1 -0
- package/dist/stream/index.cjs +2 -2
- package/dist/stream/index.js +2 -2
- package/dist/{stream-DTpp9Tk-.js → stream-BFhCDJvz.js} +18 -8
- package/dist/{stream-CiXZtgym.cjs → stream-CZy8XA_q.cjs} +23 -7
- 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.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-DtEg90Zj.cjs → tool-loop-agent-DifR6VLI.cjs} +4 -4
- package/dist/{tool-loop-agent-CqzgY98a.js → tool-loop-agent-SOpIJRws.js} +3 -3
- package/dist/{toolchecks-DrsZdc3S.js → toolchecks-CRAfUe9H.js} +1 -1
- package/dist/{toolchecks-MFU48cit.cjs → toolchecks-DbBsQGHW.cjs} +1 -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/tool.d.ts +2 -4
- package/dist/tools/types.d.ts +1 -0
- package/dist/{tools-BEYxowf0.cjs → tools-C2q0ougI.cjs} +1 -1
- package/dist/{tools-tPy2FwMI.js → tools-ybbz1YKg.js} +1 -1
- package/dist/{utils-B_y5EDSz.cjs → utils-BjFntMW_.cjs} +6 -5
- package/dist/{utils-tRzJ8Xfy.js → utils-DN_kWhH6.js} +6 -5
- package/dist/utils.cjs +3 -3
- package/dist/utils.js +3 -3
- package/dist/{validate-DpK_G9aa.cjs → validate-CBQ0dMBb.cjs} +1 -1
- package/dist/{validate-hFVBw9Sw.js → validate-KIBMWuyc.js} +1 -1
- package/dist/vector/index.cjs +8 -8
- package/dist/vector/index.js +1 -1
- package/dist/worker/index.cjs +1 -1
- package/dist/worker/index.js +1 -1
- package/dist/{worker-BFAw0uVe.js → worker-Bqg7bsxX.js} +8 -3
- package/dist/{worker-BhaB8pNL.cjs → worker-CJ_JYSy0.cjs} +3 -3
- package/dist/{worker-KkDudGwX.cjs → worker-Ct6E5_2p.cjs} +16 -11
- package/dist/{worker-m_uyOwiv.js → worker-DVM_pvH7.js} +2 -2
- package/dist/{workflow-Uroh6hlJ.js → workflow-BmShpn3p.js} +4 -4
- package/dist/{workflow-BwKfyvhR.cjs → workflow-DEAvg0pI.cjs} +8 -8
- package/dist/workflows/builder/index.cjs +1 -1
- package/dist/workflows/builder/index.js +1 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/evented/workflow-event-processor/index.d.ts +0 -2
- package/dist/workflows/evented/workflow.d.ts +2 -1
- package/dist/workflows/index.cjs +54 -54
- package/dist/workflows/index.js +4 -4
- package/dist/workflows/run-storage.d.ts +16 -1
- package/dist/workflows/types.d.ts +10 -0
- package/dist/workflows/workflow.d.ts +3 -1
- package/dist/workspace/index.cjs +1 -1
- package/dist/workspace/index.js +1 -1
- package/dist/{workspace-CzzrnE6Q.cjs → workspace-BQD4tcQi.cjs} +3 -3
- package/dist/{workspace-Ct2kAiDv.js → workspace-sqcfdZRR.js} +2 -2
- package/package.json +9 -8
- 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 +7412 -7795
- package/dist/{observability-B0R_D1PZ.cjs → observability-VaoaeadK.cjs} +647 -647
|
@@ -2,26 +2,6 @@ const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
|
|
|
2
2
|
const require_error_count = require("./error-count-DeDpeWU2.cjs");
|
|
3
3
|
let events = require("events");
|
|
4
4
|
events = require_rolldown_runtime.__toESM(events, 1);
|
|
5
|
-
// src/events/acking-callback.ts
|
|
6
|
-
/**
|
|
7
|
-
* Adapt an event-only handler into an `EventCallback` that acknowledges every
|
|
8
|
-
* delivery.
|
|
9
|
-
*
|
|
10
|
-
* Handlers that only need the event cannot honour the `EventCallback` contract
|
|
11
|
-
* themselves: on a durable backend (Redis consumer groups, GCP Pub/Sub) every
|
|
12
|
-
* delivery — including the ones a handler inspects and filters out — has to be
|
|
13
|
-
* acked, or it stays in the subscription's pending set and is redelivered.
|
|
14
|
-
* Wrapping is the only way an event-only handler can satisfy that.
|
|
15
|
-
*
|
|
16
|
-
* A throwing handler leaves the delivery unacked and rejects the callback, which
|
|
17
|
-
* a backend that honours redelivery treats as a nack.
|
|
18
|
-
*/
|
|
19
|
-
function withAck(handler) {
|
|
20
|
-
return async (event, ack) => {
|
|
21
|
-
await handler(event);
|
|
22
|
-
await ack?.();
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
5
|
// src/events/pubsub.ts
|
|
26
6
|
/**
|
|
27
7
|
* The event bus behind workflow execution, streams, signals, background tasks
|
|
@@ -133,9 +113,7 @@ var PubSub = class {
|
|
|
133
113
|
*
|
|
134
114
|
* Workflow recovery leaves the evented runs on such a pubsub to the broker:
|
|
135
115
|
* the message of the step a dead worker held is redelivered, so no recovery
|
|
136
|
-
* pass restarts the run.
|
|
137
|
-
* 30 s, the evented step fence a dead worker leaves behind; a redelivery that
|
|
138
|
-
* arrives before the fence expires is dropped as a duplicate.
|
|
116
|
+
* pass restarts the run.
|
|
139
117
|
*
|
|
140
118
|
* Evented workflows and agents that run on several processes need `true`
|
|
141
119
|
* here. Without it, no other worker picks up the step a stopped worker held.
|
|
@@ -264,6 +242,26 @@ const NoopLeaseProvider = {
|
|
|
264
242
|
return Promise.resolve(true);
|
|
265
243
|
}
|
|
266
244
|
};
|
|
245
|
+
// src/events/acking-callback.ts
|
|
246
|
+
/**
|
|
247
|
+
* Adapt an event-only handler into an `EventCallback` that acknowledges every
|
|
248
|
+
* delivery.
|
|
249
|
+
*
|
|
250
|
+
* Handlers that only need the event cannot honour the `EventCallback` contract
|
|
251
|
+
* themselves: on a durable backend (Redis consumer groups, GCP Pub/Sub) every
|
|
252
|
+
* delivery — including the ones a handler inspects and filters out — has to be
|
|
253
|
+
* acked, or it stays in the subscription's pending set and is redelivered.
|
|
254
|
+
* Wrapping is the only way an event-only handler can satisfy that.
|
|
255
|
+
*
|
|
256
|
+
* A throwing handler leaves the delivery unacked and rejects the callback, which
|
|
257
|
+
* a backend that honours redelivery treats as a nack.
|
|
258
|
+
*/
|
|
259
|
+
function withAck(handler) {
|
|
260
|
+
return async (event, ack) => {
|
|
261
|
+
await handler(event);
|
|
262
|
+
await ack?.();
|
|
263
|
+
};
|
|
264
|
+
}
|
|
267
265
|
// src/events/event-emitter/batch-policy.ts
|
|
268
266
|
const defaultDeps = {
|
|
269
267
|
now: () => Date.now(),
|
|
@@ -827,50 +825,14 @@ var EventEmitterPubSub = class extends PubSub {
|
|
|
827
825
|
return Promise.resolve(true);
|
|
828
826
|
}
|
|
829
827
|
};
|
|
830
|
-
// src/events/
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
*/
|
|
837
|
-
function serializeError(err, depth = 0) {
|
|
838
|
-
const json = {
|
|
839
|
-
name: err.name || "Error",
|
|
840
|
-
message: err.message
|
|
841
|
-
};
|
|
842
|
-
if (err.stack !== void 0) json.stack = err.stack;
|
|
843
|
-
if (err.cause !== void 0) {
|
|
844
|
-
if (err.cause instanceof Error && depth < MAX_CAUSE_DEPTH) json.cause = serializeError(err.cause, depth + 1);
|
|
845
|
-
else json.cause = err.cause;
|
|
846
|
-
}
|
|
847
|
-
for (const key in err) {
|
|
848
|
-
if (!Object.prototype.hasOwnProperty.call(err, key)) continue;
|
|
849
|
-
if (key === "message" || key === "name" || key === "stack" || key === "cause" || key === "__mastraSpanErrorOrigin") continue;
|
|
850
|
-
json[key] = err[key];
|
|
851
|
-
}
|
|
852
|
-
const origin = require_error_count.getSpanErrorOrigin(err);
|
|
853
|
-
if (origin) json.__mastraSpanErrorOrigin = origin;
|
|
854
|
-
return json;
|
|
855
|
-
}
|
|
856
|
-
/**
|
|
857
|
-
* Rehydrates a SerializedError into a vanilla Error instance. We never
|
|
858
|
-
* instantiate user-controlled prototypes — name is preserved as a string field.
|
|
859
|
-
*/
|
|
860
|
-
function rehydrateError(s) {
|
|
861
|
-
const cause = s.cause !== void 0 ? s.cause && typeof s.cause === "object" && "message" in s.cause && "name" in s.cause ? rehydrateError(s.cause) : s.cause : void 0;
|
|
862
|
-
const err = cause !== void 0 ? new Error(s.message, { cause }) : new Error(s.message);
|
|
863
|
-
if (s.name) err.name = s.name;
|
|
864
|
-
if (s.stack !== void 0) err.stack = s.stack;
|
|
865
|
-
for (const key in s) {
|
|
866
|
-
if (!Object.prototype.hasOwnProperty.call(s, key)) continue;
|
|
867
|
-
if (key === "message" || key === "name" || key === "stack" || key === "cause" || key === "__mastraSpanErrorOrigin") continue;
|
|
868
|
-
err[key] = s[key];
|
|
828
|
+
// src/events/publisher-queue-limit-error.ts
|
|
829
|
+
var PublisherQueueLimitError = class extends Error {
|
|
830
|
+
waitForCapacity;
|
|
831
|
+
constructor(message = "UnixSocketPubSub publisher queue limit exceeded", waitForCapacity) {
|
|
832
|
+
super(message);
|
|
833
|
+
this.waitForCapacity = waitForCapacity;
|
|
869
834
|
}
|
|
870
|
-
|
|
871
|
-
if (origin) require_error_count.setSpanErrorOrigin(err, origin);
|
|
872
|
-
return err;
|
|
873
|
-
}
|
|
835
|
+
};
|
|
874
836
|
// src/stream/strip-model-snapshots.ts
|
|
875
837
|
/**
|
|
876
838
|
* Removes the model request/history snapshots that agent `step-start`,
|
|
@@ -1589,14 +1551,50 @@ var CachingPubSub = class extends PubSub {
|
|
|
1589
1551
|
function withCaching(pubsub, cache, options) {
|
|
1590
1552
|
return new CachingPubSub(pubsub, cache, options);
|
|
1591
1553
|
}
|
|
1592
|
-
// src/events/
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1554
|
+
// src/events/codec/error.ts
|
|
1555
|
+
const MAX_CAUSE_DEPTH = 5;
|
|
1556
|
+
/**
|
|
1557
|
+
* Serializes an Error instance to a plain SerializedError object without
|
|
1558
|
+
* mutating the original. Unlike `getErrorFromUnknown(...).toJSON()`, this does
|
|
1559
|
+
* not attach a non-enumerable `toJSON` to the live Error.
|
|
1560
|
+
*/
|
|
1561
|
+
function serializeError(err, depth = 0) {
|
|
1562
|
+
const json = {
|
|
1563
|
+
name: err.name || "Error",
|
|
1564
|
+
message: err.message
|
|
1565
|
+
};
|
|
1566
|
+
if (err.stack !== void 0) json.stack = err.stack;
|
|
1567
|
+
if (err.cause !== void 0) {
|
|
1568
|
+
if (err.cause instanceof Error && depth < MAX_CAUSE_DEPTH) json.cause = serializeError(err.cause, depth + 1);
|
|
1569
|
+
else json.cause = err.cause;
|
|
1598
1570
|
}
|
|
1599
|
-
|
|
1571
|
+
for (const key in err) {
|
|
1572
|
+
if (!Object.prototype.hasOwnProperty.call(err, key)) continue;
|
|
1573
|
+
if (key === "message" || key === "name" || key === "stack" || key === "cause" || key === "__mastraSpanErrorOrigin") continue;
|
|
1574
|
+
json[key] = err[key];
|
|
1575
|
+
}
|
|
1576
|
+
const origin = require_error_count.getSpanErrorOrigin(err);
|
|
1577
|
+
if (origin) json.__mastraSpanErrorOrigin = origin;
|
|
1578
|
+
return json;
|
|
1579
|
+
}
|
|
1580
|
+
/**
|
|
1581
|
+
* Rehydrates a SerializedError into a vanilla Error instance. We never
|
|
1582
|
+
* instantiate user-controlled prototypes — name is preserved as a string field.
|
|
1583
|
+
*/
|
|
1584
|
+
function rehydrateError(s) {
|
|
1585
|
+
const cause = s.cause !== void 0 ? s.cause && typeof s.cause === "object" && "message" in s.cause && "name" in s.cause ? rehydrateError(s.cause) : s.cause : void 0;
|
|
1586
|
+
const err = cause !== void 0 ? new Error(s.message, { cause }) : new Error(s.message);
|
|
1587
|
+
if (s.name) err.name = s.name;
|
|
1588
|
+
if (s.stack !== void 0) err.stack = s.stack;
|
|
1589
|
+
for (const key in s) {
|
|
1590
|
+
if (!Object.prototype.hasOwnProperty.call(s, key)) continue;
|
|
1591
|
+
if (key === "message" || key === "name" || key === "stack" || key === "cause" || key === "__mastraSpanErrorOrigin") continue;
|
|
1592
|
+
err[key] = s[key];
|
|
1593
|
+
}
|
|
1594
|
+
const origin = require_error_count.getSpanErrorOrigin(s);
|
|
1595
|
+
if (origin) require_error_count.setSpanErrorOrigin(err, origin);
|
|
1596
|
+
return err;
|
|
1597
|
+
}
|
|
1600
1598
|
// src/stream/aisdk/v5/output-helpers.ts
|
|
1601
1599
|
var DefaultStepResult = class {
|
|
1602
1600
|
content;
|
|
@@ -1,25 +1,5 @@
|
|
|
1
1
|
import { i as setSpanErrorOrigin, n as getSpanErrorOrigin } from "./error-count-BH-rJW7q.js";
|
|
2
2
|
import EventEmitter$1 from "events";
|
|
3
|
-
// src/events/acking-callback.ts
|
|
4
|
-
/**
|
|
5
|
-
* Adapt an event-only handler into an `EventCallback` that acknowledges every
|
|
6
|
-
* delivery.
|
|
7
|
-
*
|
|
8
|
-
* Handlers that only need the event cannot honour the `EventCallback` contract
|
|
9
|
-
* themselves: on a durable backend (Redis consumer groups, GCP Pub/Sub) every
|
|
10
|
-
* delivery — including the ones a handler inspects and filters out — has to be
|
|
11
|
-
* acked, or it stays in the subscription's pending set and is redelivered.
|
|
12
|
-
* Wrapping is the only way an event-only handler can satisfy that.
|
|
13
|
-
*
|
|
14
|
-
* A throwing handler leaves the delivery unacked and rejects the callback, which
|
|
15
|
-
* a backend that honours redelivery treats as a nack.
|
|
16
|
-
*/
|
|
17
|
-
function withAck(handler) {
|
|
18
|
-
return async (event, ack) => {
|
|
19
|
-
await handler(event);
|
|
20
|
-
await ack?.();
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
3
|
// src/events/pubsub.ts
|
|
24
4
|
/**
|
|
25
5
|
* The event bus behind workflow execution, streams, signals, background tasks
|
|
@@ -131,9 +111,7 @@ var PubSub = class {
|
|
|
131
111
|
*
|
|
132
112
|
* Workflow recovery leaves the evented runs on such a pubsub to the broker:
|
|
133
113
|
* the message of the step a dead worker held is redelivered, so no recovery
|
|
134
|
-
* pass restarts the run.
|
|
135
|
-
* 30 s, the evented step fence a dead worker leaves behind; a redelivery that
|
|
136
|
-
* arrives before the fence expires is dropped as a duplicate.
|
|
114
|
+
* pass restarts the run.
|
|
137
115
|
*
|
|
138
116
|
* Evented workflows and agents that run on several processes need `true`
|
|
139
117
|
* here. Without it, no other worker picks up the step a stopped worker held.
|
|
@@ -262,6 +240,26 @@ const NoopLeaseProvider = {
|
|
|
262
240
|
return Promise.resolve(true);
|
|
263
241
|
}
|
|
264
242
|
};
|
|
243
|
+
// src/events/acking-callback.ts
|
|
244
|
+
/**
|
|
245
|
+
* Adapt an event-only handler into an `EventCallback` that acknowledges every
|
|
246
|
+
* delivery.
|
|
247
|
+
*
|
|
248
|
+
* Handlers that only need the event cannot honour the `EventCallback` contract
|
|
249
|
+
* themselves: on a durable backend (Redis consumer groups, GCP Pub/Sub) every
|
|
250
|
+
* delivery — including the ones a handler inspects and filters out — has to be
|
|
251
|
+
* acked, or it stays in the subscription's pending set and is redelivered.
|
|
252
|
+
* Wrapping is the only way an event-only handler can satisfy that.
|
|
253
|
+
*
|
|
254
|
+
* A throwing handler leaves the delivery unacked and rejects the callback, which
|
|
255
|
+
* a backend that honours redelivery treats as a nack.
|
|
256
|
+
*/
|
|
257
|
+
function withAck(handler) {
|
|
258
|
+
return async (event, ack) => {
|
|
259
|
+
await handler(event);
|
|
260
|
+
await ack?.();
|
|
261
|
+
};
|
|
262
|
+
}
|
|
265
263
|
// src/events/event-emitter/batch-policy.ts
|
|
266
264
|
const defaultDeps = {
|
|
267
265
|
now: () => Date.now(),
|
|
@@ -825,50 +823,14 @@ var EventEmitterPubSub = class extends PubSub {
|
|
|
825
823
|
return Promise.resolve(true);
|
|
826
824
|
}
|
|
827
825
|
};
|
|
828
|
-
// src/events/
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
*/
|
|
835
|
-
function serializeError(err, depth = 0) {
|
|
836
|
-
const json = {
|
|
837
|
-
name: err.name || "Error",
|
|
838
|
-
message: err.message
|
|
839
|
-
};
|
|
840
|
-
if (err.stack !== void 0) json.stack = err.stack;
|
|
841
|
-
if (err.cause !== void 0) {
|
|
842
|
-
if (err.cause instanceof Error && depth < MAX_CAUSE_DEPTH) json.cause = serializeError(err.cause, depth + 1);
|
|
843
|
-
else json.cause = err.cause;
|
|
844
|
-
}
|
|
845
|
-
for (const key in err) {
|
|
846
|
-
if (!Object.prototype.hasOwnProperty.call(err, key)) continue;
|
|
847
|
-
if (key === "message" || key === "name" || key === "stack" || key === "cause" || key === "__mastraSpanErrorOrigin") continue;
|
|
848
|
-
json[key] = err[key];
|
|
849
|
-
}
|
|
850
|
-
const origin = getSpanErrorOrigin(err);
|
|
851
|
-
if (origin) json.__mastraSpanErrorOrigin = origin;
|
|
852
|
-
return json;
|
|
853
|
-
}
|
|
854
|
-
/**
|
|
855
|
-
* Rehydrates a SerializedError into a vanilla Error instance. We never
|
|
856
|
-
* instantiate user-controlled prototypes — name is preserved as a string field.
|
|
857
|
-
*/
|
|
858
|
-
function rehydrateError(s) {
|
|
859
|
-
const cause = s.cause !== void 0 ? s.cause && typeof s.cause === "object" && "message" in s.cause && "name" in s.cause ? rehydrateError(s.cause) : s.cause : void 0;
|
|
860
|
-
const err = cause !== void 0 ? new Error(s.message, { cause }) : new Error(s.message);
|
|
861
|
-
if (s.name) err.name = s.name;
|
|
862
|
-
if (s.stack !== void 0) err.stack = s.stack;
|
|
863
|
-
for (const key in s) {
|
|
864
|
-
if (!Object.prototype.hasOwnProperty.call(s, key)) continue;
|
|
865
|
-
if (key === "message" || key === "name" || key === "stack" || key === "cause" || key === "__mastraSpanErrorOrigin") continue;
|
|
866
|
-
err[key] = s[key];
|
|
826
|
+
// src/events/publisher-queue-limit-error.ts
|
|
827
|
+
var PublisherQueueLimitError = class extends Error {
|
|
828
|
+
waitForCapacity;
|
|
829
|
+
constructor(message = "UnixSocketPubSub publisher queue limit exceeded", waitForCapacity) {
|
|
830
|
+
super(message);
|
|
831
|
+
this.waitForCapacity = waitForCapacity;
|
|
867
832
|
}
|
|
868
|
-
|
|
869
|
-
if (origin) setSpanErrorOrigin(err, origin);
|
|
870
|
-
return err;
|
|
871
|
-
}
|
|
833
|
+
};
|
|
872
834
|
// src/stream/strip-model-snapshots.ts
|
|
873
835
|
/**
|
|
874
836
|
* Removes the model request/history snapshots that agent `step-start`,
|
|
@@ -1587,14 +1549,50 @@ var CachingPubSub = class extends PubSub {
|
|
|
1587
1549
|
function withCaching(pubsub, cache, options) {
|
|
1588
1550
|
return new CachingPubSub(pubsub, cache, options);
|
|
1589
1551
|
}
|
|
1590
|
-
// src/events/
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1552
|
+
// src/events/codec/error.ts
|
|
1553
|
+
const MAX_CAUSE_DEPTH = 5;
|
|
1554
|
+
/**
|
|
1555
|
+
* Serializes an Error instance to a plain SerializedError object without
|
|
1556
|
+
* mutating the original. Unlike `getErrorFromUnknown(...).toJSON()`, this does
|
|
1557
|
+
* not attach a non-enumerable `toJSON` to the live Error.
|
|
1558
|
+
*/
|
|
1559
|
+
function serializeError(err, depth = 0) {
|
|
1560
|
+
const json = {
|
|
1561
|
+
name: err.name || "Error",
|
|
1562
|
+
message: err.message
|
|
1563
|
+
};
|
|
1564
|
+
if (err.stack !== void 0) json.stack = err.stack;
|
|
1565
|
+
if (err.cause !== void 0) {
|
|
1566
|
+
if (err.cause instanceof Error && depth < MAX_CAUSE_DEPTH) json.cause = serializeError(err.cause, depth + 1);
|
|
1567
|
+
else json.cause = err.cause;
|
|
1596
1568
|
}
|
|
1597
|
-
|
|
1569
|
+
for (const key in err) {
|
|
1570
|
+
if (!Object.prototype.hasOwnProperty.call(err, key)) continue;
|
|
1571
|
+
if (key === "message" || key === "name" || key === "stack" || key === "cause" || key === "__mastraSpanErrorOrigin") continue;
|
|
1572
|
+
json[key] = err[key];
|
|
1573
|
+
}
|
|
1574
|
+
const origin = getSpanErrorOrigin(err);
|
|
1575
|
+
if (origin) json.__mastraSpanErrorOrigin = origin;
|
|
1576
|
+
return json;
|
|
1577
|
+
}
|
|
1578
|
+
/**
|
|
1579
|
+
* Rehydrates a SerializedError into a vanilla Error instance. We never
|
|
1580
|
+
* instantiate user-controlled prototypes — name is preserved as a string field.
|
|
1581
|
+
*/
|
|
1582
|
+
function rehydrateError(s) {
|
|
1583
|
+
const cause = s.cause !== void 0 ? s.cause && typeof s.cause === "object" && "message" in s.cause && "name" in s.cause ? rehydrateError(s.cause) : s.cause : void 0;
|
|
1584
|
+
const err = cause !== void 0 ? new Error(s.message, { cause }) : new Error(s.message);
|
|
1585
|
+
if (s.name) err.name = s.name;
|
|
1586
|
+
if (s.stack !== void 0) err.stack = s.stack;
|
|
1587
|
+
for (const key in s) {
|
|
1588
|
+
if (!Object.prototype.hasOwnProperty.call(s, key)) continue;
|
|
1589
|
+
if (key === "message" || key === "name" || key === "stack" || key === "cause" || key === "__mastraSpanErrorOrigin") continue;
|
|
1590
|
+
err[key] = s[key];
|
|
1591
|
+
}
|
|
1592
|
+
const origin = getSpanErrorOrigin(s);
|
|
1593
|
+
if (origin) setSpanErrorOrigin(err, origin);
|
|
1594
|
+
return err;
|
|
1595
|
+
}
|
|
1598
1596
|
// src/stream/aisdk/v5/output-helpers.ts
|
|
1599
1597
|
var DefaultStepResult = class {
|
|
1600
1598
|
content;
|
|
@@ -1651,4 +1649,4 @@ var DefaultStepResult = class {
|
|
|
1651
1649
|
return this.toolResults.filter((toolResult) => toolResult.dynamic === true);
|
|
1652
1650
|
}
|
|
1653
1651
|
};
|
|
1654
|
-
export {
|
|
1652
|
+
export { isLeaseProvider as S, PublisherQueueLimitError as _, withCaching as a, NoopLeaseProvider as b, RUN_LOCAL_TOPIC_PREFIXES as c, isRunLocalTopic as d, streamTopicIdleTtlMs as f, stripModelSnapshots as g, slimProgressChunk as h, CachingPubSub as i, RUN_LOG_TTL_MS as l, slimNestedAgentChunks as m, rehydrateError as n, DEFAULT_RUN_LOG_TTL_MS as o, toCachedLogFrame as p, serializeError as r, DEFAULT_THREAD_STREAM_LOG_TTL_MS as s, DefaultStepResult as t, cachedLogTtlMs as u, EventEmitterPubSub as v, PubSub as x, withAck as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
2
|
+
const require_execution_fence = require("../execution-fence-fqV6FGdV.cjs");
|
|
3
3
|
let zod_v4 = require("zod/v4");
|
|
4
4
|
// src/processor-provider/types.ts
|
|
5
5
|
/**
|
|
@@ -69,7 +69,7 @@ const unicodeNormalizerProvider = {
|
|
|
69
69
|
}),
|
|
70
70
|
availablePhases: ["processInput"],
|
|
71
71
|
createProcessor(config) {
|
|
72
|
-
return new
|
|
72
|
+
return new require_execution_fence.UnicodeNormalizer(config);
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
75
|
const tokenLimiterProvider = {
|
|
@@ -89,7 +89,7 @@ const tokenLimiterProvider = {
|
|
|
89
89
|
"processOutputResult"
|
|
90
90
|
],
|
|
91
91
|
createProcessor(config) {
|
|
92
|
-
return new
|
|
92
|
+
return new require_execution_fence.TokenLimiterProcessor(config);
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
const toolCallFilterProvider = {
|
|
@@ -105,7 +105,7 @@ const toolCallFilterProvider = {
|
|
|
105
105
|
}),
|
|
106
106
|
availablePhases: ["processInput"],
|
|
107
107
|
createProcessor(config) {
|
|
108
|
-
return new
|
|
108
|
+
return new require_execution_fence.ToolCallFilter(config);
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
111
|
const batchPartsProvider = {
|
|
@@ -121,7 +121,7 @@ const batchPartsProvider = {
|
|
|
121
121
|
}),
|
|
122
122
|
availablePhases: ["processOutputStream"],
|
|
123
123
|
createProcessor(config) {
|
|
124
|
-
return new
|
|
124
|
+
return new require_execution_fence.BatchPartsProcessor(config);
|
|
125
125
|
}
|
|
126
126
|
};
|
|
127
127
|
const moderationProvider = {
|
|
@@ -151,7 +151,7 @@ const moderationProvider = {
|
|
|
151
151
|
"processOutputStream"
|
|
152
152
|
],
|
|
153
153
|
createProcessor(config) {
|
|
154
|
-
return new
|
|
154
|
+
return new require_execution_fence.ModerationProcessor(config);
|
|
155
155
|
}
|
|
156
156
|
};
|
|
157
157
|
const promptInjectionDetectorProvider = {
|
|
@@ -177,7 +177,7 @@ const promptInjectionDetectorProvider = {
|
|
|
177
177
|
}),
|
|
178
178
|
availablePhases: ["processInput"],
|
|
179
179
|
createProcessor(config) {
|
|
180
|
-
return new
|
|
180
|
+
return new require_execution_fence.PromptInjectionDetector(config);
|
|
181
181
|
}
|
|
182
182
|
};
|
|
183
183
|
const piiDetectorProvider = {
|
|
@@ -210,7 +210,7 @@ const piiDetectorProvider = {
|
|
|
210
210
|
}),
|
|
211
211
|
availablePhases: ["processInput"],
|
|
212
212
|
createProcessor(config) {
|
|
213
|
-
return new
|
|
213
|
+
return new require_execution_fence.PIIDetector(config);
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
216
|
const languageDetectorProvider = {
|
|
@@ -237,7 +237,7 @@ const languageDetectorProvider = {
|
|
|
237
237
|
}),
|
|
238
238
|
availablePhases: ["processInput"],
|
|
239
239
|
createProcessor(config) {
|
|
240
|
-
return new
|
|
240
|
+
return new require_execution_fence.LanguageDetector(config);
|
|
241
241
|
}
|
|
242
242
|
};
|
|
243
243
|
const systemPromptScrubberProvider = {
|
|
@@ -267,7 +267,7 @@ const systemPromptScrubberProvider = {
|
|
|
267
267
|
}),
|
|
268
268
|
availablePhases: ["processOutputStream", "processOutputResult"],
|
|
269
269
|
createProcessor(config) {
|
|
270
|
-
return new
|
|
270
|
+
return new require_execution_fence.SystemPromptScrubber(config);
|
|
271
271
|
}
|
|
272
272
|
};
|
|
273
273
|
const BUILT_IN_PROCESSOR_PROVIDERS = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $o as TokenLimiterProcessor, Jo as ToolCallFilter, Qo as SystemPromptScrubber, ds as PIIDetector, fs as PromptInjectionDetector, ms as UnicodeNormalizer, os as BatchPartsProcessor, ps as ModerationProcessor, us as LanguageDetector } from "../execution-fence-B8yV_n51.js";
|
|
2
2
|
import { z } from "zod/v4";
|
|
3
3
|
// src/processor-provider/types.ts
|
|
4
4
|
/**
|
|
@@ -1,75 +1,75 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
exports.AgentsMDInjector =
|
|
5
|
-
exports.BaseProcessor =
|
|
6
|
-
exports.BatchPartsProcessor =
|
|
7
|
-
exports.ClassifierProcessor =
|
|
8
|
-
exports.CostGuardProcessor =
|
|
9
|
-
exports.CyberRefusalHandler =
|
|
10
|
-
exports.DEFAULT_RESPONSE_CACHE_TTL_SECONDS =
|
|
11
|
-
exports.FILE_UPLOAD_ERROR_CODES =
|
|
12
|
-
exports.FilePartSchema =
|
|
13
|
-
exports.FileUploadProcessor =
|
|
14
|
-
exports.ImagePartSchema =
|
|
15
|
-
exports.LanguageDetector =
|
|
16
|
-
exports.MemoryInputFilter =
|
|
17
|
-
exports.MessageContentSchema =
|
|
18
|
-
exports.MessageHistory =
|
|
19
|
-
exports.MessagePartSchema =
|
|
20
|
-
exports.ModelSelectionProcessor =
|
|
21
|
-
exports.ModerationProcessor =
|
|
22
|
-
exports.PIIDetector =
|
|
23
|
-
exports.PrefillErrorHandler =
|
|
24
|
-
exports.ProcessorInputPhaseSchema =
|
|
25
|
-
exports.ProcessorInputStepPhaseSchema =
|
|
26
|
-
exports.ProcessorMessageContentSchema =
|
|
27
|
-
exports.ProcessorMessageSchema =
|
|
28
|
-
exports.ProcessorOutputResultPhaseSchema =
|
|
29
|
-
exports.ProcessorOutputStepPhaseSchema =
|
|
30
|
-
exports.ProcessorOutputStreamPhaseSchema =
|
|
2
|
+
const require_stream = require("../stream-CZy8XA_q.cjs");
|
|
3
|
+
const require_execution_fence = require("../execution-fence-fqV6FGdV.cjs");
|
|
4
|
+
exports.AgentsMDInjector = require_execution_fence.AgentsMDInjector;
|
|
5
|
+
exports.BaseProcessor = require_execution_fence.BaseProcessor;
|
|
6
|
+
exports.BatchPartsProcessor = require_execution_fence.BatchPartsProcessor;
|
|
7
|
+
exports.ClassifierProcessor = require_execution_fence.ClassifierProcessor;
|
|
8
|
+
exports.CostGuardProcessor = require_execution_fence.CostGuardProcessor;
|
|
9
|
+
exports.CyberRefusalHandler = require_execution_fence.CyberRefusalHandler;
|
|
10
|
+
exports.DEFAULT_RESPONSE_CACHE_TTL_SECONDS = require_execution_fence.DEFAULT_RESPONSE_CACHE_TTL_SECONDS;
|
|
11
|
+
exports.FILE_UPLOAD_ERROR_CODES = require_execution_fence.FILE_UPLOAD_ERROR_CODES;
|
|
12
|
+
exports.FilePartSchema = require_execution_fence.FilePartSchema;
|
|
13
|
+
exports.FileUploadProcessor = require_execution_fence.FileUploadProcessor;
|
|
14
|
+
exports.ImagePartSchema = require_execution_fence.ImagePartSchema;
|
|
15
|
+
exports.LanguageDetector = require_execution_fence.LanguageDetector;
|
|
16
|
+
exports.MemoryInputFilter = require_execution_fence.MemoryInputFilter;
|
|
17
|
+
exports.MessageContentSchema = require_execution_fence.MessageContentSchema;
|
|
18
|
+
exports.MessageHistory = require_execution_fence.MessageHistory;
|
|
19
|
+
exports.MessagePartSchema = require_execution_fence.MessagePartSchema;
|
|
20
|
+
exports.ModelSelectionProcessor = require_execution_fence.ModelSelectionProcessor;
|
|
21
|
+
exports.ModerationProcessor = require_execution_fence.ModerationProcessor;
|
|
22
|
+
exports.PIIDetector = require_execution_fence.PIIDetector;
|
|
23
|
+
exports.PrefillErrorHandler = require_execution_fence.PrefillErrorHandler;
|
|
24
|
+
exports.ProcessorInputPhaseSchema = require_execution_fence.ProcessorInputPhaseSchema;
|
|
25
|
+
exports.ProcessorInputStepPhaseSchema = require_execution_fence.ProcessorInputStepPhaseSchema;
|
|
26
|
+
exports.ProcessorMessageContentSchema = require_execution_fence.ProcessorMessageContentSchema;
|
|
27
|
+
exports.ProcessorMessageSchema = require_execution_fence.ProcessorMessageSchema;
|
|
28
|
+
exports.ProcessorOutputResultPhaseSchema = require_execution_fence.ProcessorOutputResultPhaseSchema;
|
|
29
|
+
exports.ProcessorOutputStepPhaseSchema = require_execution_fence.ProcessorOutputStepPhaseSchema;
|
|
30
|
+
exports.ProcessorOutputStreamPhaseSchema = require_execution_fence.ProcessorOutputStreamPhaseSchema;
|
|
31
31
|
exports.ProcessorRunner = require_stream.ProcessorRunner;
|
|
32
32
|
exports.ProcessorState = require_stream.ProcessorState;
|
|
33
|
-
exports.ProcessorStepInputSchema =
|
|
34
|
-
exports.ProcessorStepOutputSchema =
|
|
35
|
-
exports.ProcessorStepSchema =
|
|
36
|
-
exports.PromptInjectionDetector =
|
|
33
|
+
exports.ProcessorStepInputSchema = require_execution_fence.ProcessorStepInputSchema;
|
|
34
|
+
exports.ProcessorStepOutputSchema = require_execution_fence.ProcessorStepOutputSchema;
|
|
35
|
+
exports.ProcessorStepSchema = require_execution_fence.ProcessorStepSchema;
|
|
36
|
+
exports.PromptInjectionDetector = require_execution_fence.PromptInjectionDetector;
|
|
37
37
|
exports.ProviderHistoryCompat = require_stream.ProviderHistoryCompat;
|
|
38
38
|
exports.REPROCESS_PART_KEY = require_stream.REPROCESS_PART_KEY;
|
|
39
|
-
exports.RESPONSE_CACHE_CONTEXT_KEY =
|
|
40
|
-
exports.ReasoningPartSchema =
|
|
41
|
-
exports.RegexFilterProcessor =
|
|
42
|
-
exports.ResponseCache =
|
|
43
|
-
exports.STABILITY_ERROR_PROCESSOR_IDS =
|
|
44
|
-
exports.SemanticRecall =
|
|
45
|
-
exports.SkillSearchProcessor =
|
|
46
|
-
exports.SkillsProcessor =
|
|
47
|
-
exports.SourcePartSchema =
|
|
48
|
-
exports.StepStartPartSchema =
|
|
49
|
-
exports.StreamErrorRetryProcessor =
|
|
50
|
-
exports.StructuredOutputProcessor =
|
|
51
|
-
exports.SystemPromptScrubber =
|
|
52
|
-
exports.TextPartSchema =
|
|
53
|
-
exports.TokenCostControl =
|
|
54
|
-
exports.TokenLimiter =
|
|
55
|
-
exports.TokenLimiterProcessor =
|
|
56
|
-
exports.ToolCallFilter =
|
|
57
|
-
exports.ToolInvocationPartSchema =
|
|
58
|
-
exports.ToolSearchProcessor =
|
|
59
|
-
exports.UnicodeNormalizer =
|
|
60
|
-
exports.UnsupportedFileHandler =
|
|
61
|
-
exports.WorkingMemory =
|
|
62
|
-
exports.WorkspaceInstructionsProcessor =
|
|
39
|
+
exports.RESPONSE_CACHE_CONTEXT_KEY = require_execution_fence.RESPONSE_CACHE_CONTEXT_KEY;
|
|
40
|
+
exports.ReasoningPartSchema = require_execution_fence.ReasoningPartSchema;
|
|
41
|
+
exports.RegexFilterProcessor = require_execution_fence.RegexFilterProcessor;
|
|
42
|
+
exports.ResponseCache = require_execution_fence.ResponseCache;
|
|
43
|
+
exports.STABILITY_ERROR_PROCESSOR_IDS = require_execution_fence.STABILITY_ERROR_PROCESSOR_IDS;
|
|
44
|
+
exports.SemanticRecall = require_execution_fence.SemanticRecall;
|
|
45
|
+
exports.SkillSearchProcessor = require_execution_fence.SkillSearchProcessor;
|
|
46
|
+
exports.SkillsProcessor = require_execution_fence.SkillsProcessor;
|
|
47
|
+
exports.SourcePartSchema = require_execution_fence.SourcePartSchema;
|
|
48
|
+
exports.StepStartPartSchema = require_execution_fence.StepStartPartSchema;
|
|
49
|
+
exports.StreamErrorRetryProcessor = require_execution_fence.StreamErrorRetryProcessor;
|
|
50
|
+
exports.StructuredOutputProcessor = require_execution_fence.StructuredOutputProcessor;
|
|
51
|
+
exports.SystemPromptScrubber = require_execution_fence.SystemPromptScrubber;
|
|
52
|
+
exports.TextPartSchema = require_execution_fence.TextPartSchema;
|
|
53
|
+
exports.TokenCostControl = require_execution_fence.TokenCostControl;
|
|
54
|
+
exports.TokenLimiter = require_execution_fence.TokenLimiterProcessor;
|
|
55
|
+
exports.TokenLimiterProcessor = require_execution_fence.TokenLimiterProcessor;
|
|
56
|
+
exports.ToolCallFilter = require_execution_fence.ToolCallFilter;
|
|
57
|
+
exports.ToolInvocationPartSchema = require_execution_fence.ToolInvocationPartSchema;
|
|
58
|
+
exports.ToolSearchProcessor = require_execution_fence.ToolSearchProcessor;
|
|
59
|
+
exports.UnicodeNormalizer = require_execution_fence.UnicodeNormalizer;
|
|
60
|
+
exports.UnsupportedFileHandler = require_execution_fence.UnsupportedFileHandler;
|
|
61
|
+
exports.WorkingMemory = require_execution_fence.WorkingMemory;
|
|
62
|
+
exports.WorkspaceInstructionsProcessor = require_execution_fence.WorkspaceInstructionsProcessor;
|
|
63
63
|
exports.anthropicToolIdFormat = require_stream.anthropicToolIdFormat;
|
|
64
|
-
exports.buildResponseCacheKey =
|
|
64
|
+
exports.buildResponseCacheKey = require_execution_fence.buildResponseCacheKey;
|
|
65
65
|
exports.cerebrasStripReasoningContent = require_stream.cerebrasStripReasoningContent;
|
|
66
|
-
exports.createBackgroundWorkSignalProcessor =
|
|
66
|
+
exports.createBackgroundWorkSignalProcessor = require_execution_fence.createBackgroundWorkSignalProcessor;
|
|
67
67
|
exports.createProcessorSendSignal = require_stream.createProcessorSendSignal;
|
|
68
|
-
exports.defaultStabilityErrorProcessors =
|
|
69
|
-
exports.formatSkillsCatalog =
|
|
70
|
-
exports.globalEmbeddingCache =
|
|
71
|
-
exports.isBadRequestError =
|
|
72
|
-
exports.isMalformedFunctionCallError =
|
|
68
|
+
exports.defaultStabilityErrorProcessors = require_execution_fence.defaultStabilityErrorProcessors;
|
|
69
|
+
exports.formatSkillsCatalog = require_execution_fence.formatSkillsCatalog;
|
|
70
|
+
exports.globalEmbeddingCache = require_execution_fence.globalEmbeddingCache;
|
|
71
|
+
exports.isBadRequestError = require_execution_fence.isBadRequestError;
|
|
72
|
+
exports.isMalformedFunctionCallError = require_execution_fence.isMalformedFunctionCallError;
|
|
73
73
|
exports.isProcessorWorkflow = require_stream.isProcessorWorkflow;
|
|
74
|
-
exports.isRetryableOpenAIResponsesStreamError =
|
|
74
|
+
exports.isRetryableOpenAIResponsesStreamError = require_execution_fence.isRetryableOpenAIResponsesStreamError;
|
|
75
75
|
exports.openaiOrphanItemId = require_stream.openaiOrphanItemId;
|
package/dist/processors/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { H as anthropicToolIdFormat, K as REPROCESS_PART_KEY, M as ProcessorRunner, N as ProcessorState, U as cerebrasStripReasoningContent, V as ProviderHistoryCompat, W as openaiOrphanItemId, it as createProcessorSendSignal, ln as isProcessorWorkflow } from "../stream-BFhCDJvz.js";
|
|
2
|
+
import { $l as ProcessorOutputStreamPhaseSchema, $o as TokenLimiterProcessor, Bo as ResponseCache, Cs as isRetryableOpenAIResponsesStreamError, Gl as MessageContentSchema, Gn as WorkingMemory, Go as formatSkillsCatalog, Hn as MemoryInputFilter, Ho as WorkspaceInstructionsProcessor, Io as createBackgroundWorkSignalProcessor, Jl as ProcessorInputStepPhaseSchema, Jo as ToolCallFilter, Kl as MessagePartSchema, Kn as MessageHistory, Ko as ToolSearchProcessor, Lo as CyberRefusalHandler, Ql as ProcessorOutputStepPhaseSchema, Qo as SystemPromptScrubber, Ro as DEFAULT_RESPONSE_CACHE_TTL_SECONDS, Ss as isBadRequestError, Ul as FilePartSchema, Un as SemanticRecall, Uo as SkillSearchProcessor, Vn as BaseProcessor, Vo as buildResponseCacheKey, Wl as ImagePartSchema, Wn as globalEmbeddingCache, Wo as SkillsProcessor, Xl as ProcessorMessageSchema, Xo as CostGuardProcessor, Yl as ProcessorMessageContentSchema, Yo as RegexFilterProcessor, Zl as ProcessorOutputResultPhaseSchema, Zo as TokenCostControl, _s as isMalformedFunctionCallError, au as StepStartPartSchema, bs as FILE_UPLOAD_ERROR_CODES, cs as ClassifierProcessor, ds as PIIDetector, eu as ProcessorStepInputSchema, fs as PromptInjectionDetector, gs as defaultStabilityErrorProcessors, hs as STABILITY_ERROR_PROCESSOR_IDS, iu as SourcePartSchema, ls as StructuredOutputProcessor, ms as UnicodeNormalizer, nu as ProcessorStepSchema, os as BatchPartsProcessor, ou as TextPartSchema, ps as ModerationProcessor, ql as ProcessorInputPhaseSchema, qo as AgentsMDInjector, ru as ReasoningPartSchema, ss as ModelSelectionProcessor, su as ToolInvocationPartSchema, tu as ProcessorStepOutputSchema, us as LanguageDetector, vs as UnsupportedFileHandler, ws as PrefillErrorHandler, xs as StreamErrorRetryProcessor, ys as FileUploadProcessor, zo as RESPONSE_CACHE_CONTEXT_KEY } from "../execution-fence-B8yV_n51.js";
|
|
3
3
|
export { AgentsMDInjector, BaseProcessor, BatchPartsProcessor, ClassifierProcessor, CostGuardProcessor, CyberRefusalHandler, DEFAULT_RESPONSE_CACHE_TTL_SECONDS, FILE_UPLOAD_ERROR_CODES, FilePartSchema, FileUploadProcessor, ImagePartSchema, LanguageDetector, MemoryInputFilter, MessageContentSchema, MessageHistory, MessagePartSchema, ModelSelectionProcessor, ModerationProcessor, PIIDetector, PrefillErrorHandler, ProcessorInputPhaseSchema, ProcessorInputStepPhaseSchema, ProcessorMessageContentSchema, ProcessorMessageSchema, ProcessorOutputResultPhaseSchema, ProcessorOutputStepPhaseSchema, ProcessorOutputStreamPhaseSchema, ProcessorRunner, ProcessorState, ProcessorStepInputSchema, ProcessorStepOutputSchema, ProcessorStepSchema, PromptInjectionDetector, ProviderHistoryCompat, REPROCESS_PART_KEY, RESPONSE_CACHE_CONTEXT_KEY, ReasoningPartSchema, RegexFilterProcessor, ResponseCache, STABILITY_ERROR_PROCESSOR_IDS, SemanticRecall, SkillSearchProcessor, SkillsProcessor, SourcePartSchema, StepStartPartSchema, StreamErrorRetryProcessor, StructuredOutputProcessor, SystemPromptScrubber, TextPartSchema, TokenCostControl, TokenLimiterProcessor as TokenLimiter, TokenLimiterProcessor, ToolCallFilter, ToolInvocationPartSchema, ToolSearchProcessor, UnicodeNormalizer, UnsupportedFileHandler, WorkingMemory, WorkspaceInstructionsProcessor, anthropicToolIdFormat, buildResponseCacheKey, cerebrasStripReasoningContent, createBackgroundWorkSignalProcessor, createProcessorSendSignal, defaultStabilityErrorProcessors, formatSkillsCatalog, globalEmbeddingCache, isBadRequestError, isMalformedFunctionCallError, isProcessorWorkflow, isRetryableOpenAIResponsesStreamError, openaiOrphanItemId };
|