@mastra/core 1.88.0-alpha.0 → 1.88.0-alpha.2
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_core@0.1.4/dist/knowledge-compat/index.d.ts +17 -1
- package/dist/agent/durable/index.cjs +1 -1
- package/dist/agent/durable/index.js +1 -1
- package/dist/agent/index.cjs +2 -2
- package/dist/agent/index.js +2 -2
- package/dist/agent-builder/ee/index.cjs +1 -1
- package/dist/agent-builder/ee/index.js +1 -1
- package/dist/agent-controller/index.cjs +1 -1
- package/dist/agent-controller/index.js +1 -1
- package/dist/agent-controller/model-catalog-cache.d.ts +9 -5
- package/dist/agent-controller/session.d.ts +17 -0
- package/dist/{agent-controller-NQKYmY0W.cjs → agent-controller-Bt7DwpZy.cjs} +57 -53
- package/dist/{agent-controller-CQDCmsFD.js → agent-controller-CFNkjF3l.js} +57 -53
- package/dist/background-tasks/index.cjs +1 -1
- package/dist/background-tasks/index.js +1 -1
- package/dist/{background-tasks-B7UygDdO.js → background-tasks-DJHuKMQC.js} +1 -1
- package/dist/{background-tasks-CeARf1DK.cjs → background-tasks-DbPzYpIZ.cjs} +1 -1
- package/dist/browser/index.cjs +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/{builder-Dmf04g9P.cjs → builder-961mB1xC.cjs} +2 -2
- package/dist/{builder-CpAEmMdR.js → builder-BD6HtwKv.js} +2 -2
- package/dist/capabilities/302ai.json +200 -200
- package/dist/capabilities/abliteratedllm.json +37 -37
- package/dist/capabilities/abliteration-ai.json +9 -9
- package/dist/capabilities/above.json +22 -22
- package/dist/capabilities/adaption.json +13 -13
- package/dist/capabilities/adzuki.json +22 -22
- package/dist/capabilities/agentrouter.json +10 -10
- package/dist/capabilities/agnes.json +3 -3
- package/dist/capabilities/ai-router.json +7 -7
- package/dist/capabilities/aiand.json +22 -23
- package/dist/capabilities/aigrow.json +14 -14
- package/dist/capabilities/aimlapi.json +149 -158
- package/dist/capabilities/aixy.json +28 -28
- package/dist/capabilities/aki-io.json +12 -12
- package/dist/capabilities/alibaba-cn.json +99 -99
- 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 +55 -55
- package/dist/capabilities/alibaba-token-plan.json +56 -56
- package/dist/capabilities/alibaba.json +77 -77
- package/dist/capabilities/ambient.json +7 -7
- package/dist/capabilities/amd-tokenlab.json +5 -5
- package/dist/capabilities/amd.json +6 -6
- package/dist/capabilities/anthropic.json +31 -31
- package/dist/capabilities/anyapi.json +47 -47
- package/dist/capabilities/apiko.json +5 -5
- package/dist/capabilities/arcee.json +4 -4
- package/dist/capabilities/augure.json +5 -5
- package/dist/capabilities/auriko.json +21 -21
- package/dist/capabilities/bailing.json +5 -5
- package/dist/capabilities/baseten.json +34 -34
- package/dist/capabilities/bee.json +2 -2
- package/dist/capabilities/bothub.json +15 -15
- package/dist/capabilities/boundless.json +39 -39
- package/dist/capabilities/bumo.json +38 -38
- package/dist/capabilities/byteplus.json +26 -26
- package/dist/capabilities/cheapaimodel.json +7 -7
- package/dist/capabilities/cheapest-token.json +32 -32
- package/dist/capabilities/chutes.json +33 -33
- package/dist/capabilities/cline-pass.json +37 -37
- package/dist/capabilities/cloudcode.json +8 -8
- package/dist/capabilities/cloudflare-ai-gateway.json +716 -0
- package/dist/capabilities/cloudflare-workers-ai.json +12 -12
- package/dist/capabilities/cohere.json +67 -0
- package/dist/capabilities/commandcode.json +146 -146
- package/dist/capabilities/concentrate.json +281 -281
- package/dist/capabilities/cortecs.json +103 -103
- package/dist/capabilities/crossmodel.json +190 -190
- package/dist/capabilities/crusoe.json +11 -11
- package/dist/capabilities/daoxe.json +9 -9
- package/dist/capabilities/databricks.json +133 -133
- package/dist/capabilities/deepinfra.json +96 -96
- package/dist/capabilities/deepseek.json +3 -3
- package/dist/capabilities/digitalocean.json +115 -115
- package/dist/capabilities/dothoosh.json +34 -34
- package/dist/capabilities/doubleword.json +30 -30
- package/dist/capabilities/edenai.json +288 -279
- package/dist/capabilities/empiriolabs.json +187 -178
- package/dist/capabilities/engy.json +22 -22
- package/dist/capabilities/entrim.json +6 -6
- package/dist/capabilities/evroc.json +15 -15
- package/dist/capabilities/ezkielyna.json +10 -10
- package/dist/capabilities/fastrouter.json +90 -90
- package/dist/capabilities/fireworks-ai.json +93 -82
- package/dist/capabilities/freemodel.json +8 -8
- package/dist/capabilities/friendli.json +8 -8
- package/dist/capabilities/frogbot.json +87 -87
- package/dist/capabilities/gisoo.json +18 -18
- package/dist/capabilities/gmicloud.json +16 -16
- package/dist/capabilities/google.json +59 -59
- package/dist/capabilities/graphn.json +10 -10
- package/dist/capabilities/greenpt.json +32 -32
- package/dist/capabilities/helicone.json +80 -80
- package/dist/capabilities/hetzner.json +5 -5
- package/dist/capabilities/hostinger-router.json +11 -11
- package/dist/capabilities/hpc-ai.json +8 -8
- package/dist/capabilities/huawei-maas.json +15 -15
- package/dist/capabilities/hubris.json +26 -26
- package/dist/capabilities/huggingface.json +93 -85
- package/dist/capabilities/hyper.json +23 -23
- package/dist/capabilities/impossibl.json +153 -153
- package/dist/capabilities/inceptron.json +8 -8
- package/dist/capabilities/inco.json +3 -3
- package/dist/capabilities/infer.json +16 -16
- package/dist/capabilities/inferall.json +6 -6
- package/dist/capabilities/inference-coop.json +15 -15
- package/dist/capabilities/inferenceapis.json +25 -25
- package/dist/capabilities/inferris.json +3 -3
- package/dist/capabilities/infersia.json +9 -9
- package/dist/capabilities/inferx.json +2 -2
- package/dist/capabilities/infomaniak.json +2 -2
- package/dist/capabilities/iteracompute.json +44 -44
- package/dist/capabilities/jalapeno.json +11 -11
- package/dist/capabilities/jiekou.json +31 -31
- package/dist/capabilities/joingonka.json +4 -4
- package/dist/capabilities/jzstoken.json +49 -49
- package/dist/capabilities/keln.json +23 -23
- package/dist/capabilities/kenari.json +125 -125
- package/dist/capabilities/kilo.json +667 -626
- package/dist/capabilities/kimchi.json +16 -16
- package/dist/capabilities/kimi-code-plan-cn.json +6 -6
- package/dist/capabilities/kimi-code-plan-global.json +6 -6
- package/dist/capabilities/kitani.json +6 -6
- package/dist/capabilities/klavo.json +26 -26
- package/dist/capabilities/korouter.json +34 -34
- package/dist/capabilities/kunavo.json +6 -6
- package/dist/capabilities/liquid.json +11 -11
- package/dist/capabilities/lithosai.json +2 -2
- package/dist/capabilities/llmgateway-providers.json +933 -931
- package/dist/capabilities/llmgateway.json +350 -348
- package/dist/capabilities/llmtr.json +20 -20
- package/dist/capabilities/lowrouter.json +62 -62
- package/dist/capabilities/lyceum.json +13 -13
- package/dist/capabilities/melious.json +12 -12
- package/dist/capabilities/merge-gateway.json +296 -296
- package/dist/capabilities/meta.json +10 -10
- package/dist/capabilities/minimax-cn-coding-plan.json +5 -5
- package/dist/capabilities/minimax-cn.json +5 -5
- package/dist/capabilities/minimax-coding-plan.json +5 -5
- package/dist/capabilities/minimax.json +5 -5
- package/dist/capabilities/mistral.json +22 -14
- package/dist/capabilities/mixlayer.json +5 -5
- package/dist/capabilities/modal.json +10 -10
- package/dist/capabilities/model-oracle-ai.json +21 -21
- package/dist/capabilities/modelis.json +20 -20
- package/dist/capabilities/modelscope.json +2 -2
- package/dist/capabilities/modular.json +12 -12
- package/dist/capabilities/moneo.json +6 -6
- package/dist/capabilities/moonshotai-cn.json +7 -7
- package/dist/capabilities/moonshotai.json +7 -7
- package/dist/capabilities/morph.json +12 -12
- package/dist/capabilities/munito-eu.json +6 -6
- package/dist/capabilities/munito.json +8 -8
- package/dist/capabilities/nan.json +25 -25
- package/dist/capabilities/nano-gpt.json +585 -571
- package/dist/capabilities/nearai.json +112 -112
- package/dist/capabilities/nebius.json +36 -36
- package/dist/capabilities/neon.json +123 -123
- package/dist/capabilities/neuralwatt.json +41 -41
- package/dist/capabilities/nokeep.json +5 -5
- package/dist/capabilities/novita-ai.json +127 -127
- package/dist/capabilities/nvidia.json +16 -16
- package/dist/capabilities/oathbreaker.json +4 -4
- package/dist/capabilities/obscurify.json +31 -31
- package/dist/capabilities/oci.json +5 -5
- package/dist/capabilities/ofox.json +252 -252
- package/dist/capabilities/ollama-cloud.json +55 -55
- package/dist/capabilities/openai.json +54 -54
- package/dist/capabilities/opencode-go.json +109 -93
- package/dist/capabilities/openreason.json +4 -4
- package/dist/capabilities/openrouter.json +529 -529
- package/dist/capabilities/opper.json +27 -27
- package/dist/capabilities/orcarouter.json +263 -263
- package/dist/capabilities/outerlabs.json +30 -30
- package/dist/capabilities/ovhcloud.json +18 -18
- package/dist/capabilities/pareto.json +4 -4
- package/dist/capabilities/pendra.json +4 -4
- package/dist/capabilities/perplexity-agent.json +64 -64
- package/dist/capabilities/perplexity.json +2 -2
- package/dist/capabilities/phala.json +37 -37
- package/dist/capabilities/pioneer.json +2 -2
- package/dist/capabilities/poe.json +140 -140
- package/dist/capabilities/powerspring.json +11 -11
- package/dist/capabilities/primalabs.json +6 -6
- package/dist/capabilities/prime.json +119 -119
- package/dist/capabilities/privatemode-ai.json +7 -7
- package/dist/capabilities/proxystacks.json +3 -3
- package/dist/capabilities/qiniu-ai.json +11 -11
- package/dist/capabilities/refuseless.json +9 -9
- package/dist/capabilities/regolo-ai.json +9 -9
- package/dist/capabilities/requesty.json +201 -201
- package/dist/capabilities/ruapi.json +25 -25
- package/dist/capabilities/runcrate.json +15 -15
- package/dist/capabilities/runinfra.json +17 -17
- package/dist/capabilities/sakana.json +7 -7
- package/dist/capabilities/sambanova.json +5 -5
- package/dist/capabilities/sandbase.json +32 -32
- package/dist/capabilities/sarvam.json +9 -9
- package/dist/capabilities/scaleway.json +14 -14
- package/dist/capabilities/scnet-token-plan.json +4 -4
- package/dist/capabilities/scx-ai.json +21 -21
- package/dist/capabilities/sensenova.json +13 -13
- package/dist/capabilities/siliconflow-cn.json +56 -56
- package/dist/capabilities/siliconflow.json +63 -63
- package/dist/capabilities/snowflake-cortex.json +27 -27
- package/dist/capabilities/sokkan.json +2 -2
- package/dist/capabilities/sparrowcodes.json +18 -18
- package/dist/capabilities/standardcompute.json +83 -83
- package/dist/capabilities/steadyrouter.json +46 -46
- 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 +21 -21
- package/dist/capabilities/subconscious.json +2 -2
- package/dist/capabilities/synthetic.json +12 -12
- package/dist/capabilities/synthorai.json +22 -22
- package/dist/capabilities/teamorouter.json +24 -24
- package/dist/capabilities/teapot-router.json +8 -8
- package/dist/capabilities/tencent-token-plan-intl.json +24 -24
- package/dist/capabilities/tencent-token-plan.json +35 -35
- package/dist/capabilities/tencent-tokenhub.json +50 -50
- package/dist/capabilities/tensorx.json +47 -47
- package/dist/capabilities/the-grid-ai.json +26 -26
- package/dist/capabilities/thinkingmachines.json +77 -77
- package/dist/capabilities/tinfoil.json +13 -13
- package/dist/capabilities/toapis.json +3 -3
- package/dist/capabilities/togetherai.json +58 -58
- package/dist/capabilities/tokengo.json +27 -27
- package/dist/capabilities/tokenharbor.json +216 -216
- package/dist/capabilities/tokenify.json +9 -9
- package/dist/capabilities/trustedrouter.json +7 -7
- package/dist/capabilities/trustedtokens.json +13 -13
- 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/unrestricted.json +4 -4
- package/dist/capabilities/uplinkswitch.json +22 -22
- package/dist/capabilities/vancine.json +20 -20
- package/dist/capabilities/vercel.json +594 -590
- package/dist/capabilities/verda.json +4 -4
- package/dist/capabilities/vivgrid.json +68 -68
- package/dist/capabilities/volcengine-coding-plan.json +29 -29
- package/dist/capabilities/volcengine.json +22 -22
- package/dist/capabilities/vultr.json +19 -19
- package/dist/capabilities/wafer.ai.json +19 -19
- package/dist/capabilities/wallaby.json +4 -4
- package/dist/capabilities/wally.json +11 -11
- package/dist/capabilities/wandb.json +21 -21
- package/dist/capabilities/watt.json +25 -25
- package/dist/capabilities/xai.json +6 -6
- package/dist/capabilities/xiaomi-token-plan-ams.json +2 -2
- package/dist/capabilities/xiaomi-token-plan-cn.json +2 -2
- package/dist/capabilities/xiaomi-token-plan-sgp.json +2 -2
- package/dist/capabilities/xiaomi.json +2 -2
- package/dist/capabilities/xpersona.json +13 -13
- package/dist/capabilities/xxapi.json +28 -28
- package/dist/capabilities/zai-coding-plan.json +11 -11
- package/dist/capabilities/zai.json +31 -31
- package/dist/capabilities/zenifra.json +30 -30
- package/dist/capabilities/zenmux.json +175 -175
- package/dist/capabilities/zerogpu.json +9 -9
- package/dist/capabilities/zhipuai-coding-plan.json +3 -3
- package/dist/capabilities/zhipuai.json +33 -33
- package/dist/capabilities/zro.json +4 -4
- package/dist/channels/index.cjs +2 -2
- package/dist/channels/index.js +2 -2
- package/dist/{channels-BQ--aLCA.js → channels-Dn6LqqK1.js} +1 -1
- package/dist/{channels-CTCBsS5M.cjs → channels-dYHpz7m2.cjs} +1 -1
- package/dist/coding-agent/index.cjs +1 -1
- package/dist/coding-agent/index.js +1 -1
- package/dist/{constants-Dro9fuhk.js → constants-C2Q-ZI5d.js} +6 -0
- package/dist/{constants-B2FVV_2e.cjs → constants-DPHwzvan.cjs} +6 -0
- package/dist/datasets/index.cjs +2 -2
- package/dist/datasets/index.js +2 -2
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1079 -1074
- package/dist/docs/references/docs-channels.md +42 -1
- package/dist/docs/references/docs-develop.md +2 -0
- package/dist/docs/references/docs-evals-experiments.md +2 -0
- package/dist/docs/references/docs-guides-build-an-eval-loop.md +5 -1
- package/dist/docs/references/docs-guides-overview.md +2 -1
- package/dist/docs/references/docs-knowledge-importers.md +11 -1
- package/dist/docs/references/docs-knowledge-scopes-and-access.md +26 -0
- package/dist/docs/references/docs-mastra-platform-observability-overview.md +60 -0
- package/dist/docs/references/docs-memory-message-history.md +24 -16
- package/dist/docs/references/docs-memory-overview.md +21 -17
- package/dist/docs/references/docs-sandbox-overview.md +12 -10
- package/dist/docs/references/docs-workflows-control-flow.md +20 -0
- package/dist/docs/references/integrations-observability-arthur.md +1 -1
- package/dist/docs/references/reference-agent-controller-agent-controller-class.md +1 -1
- package/dist/docs/references/reference-agent-controller-session.md +9 -0
- package/dist/docs/references/reference-knowledge-knowledge-class.md +1 -1
- package/dist/docs/references/reference-knowledge-knowledge-tools.md +1 -1
- package/dist/docs/references/reference-observability-tracing-bridges-datadog.md +12 -11
- package/dist/docs/references/reference-processors-processor-interface.md +1 -1
- package/dist/docs/references/reference-storage-overview.md +1 -1
- package/dist/docs/references/reference-voice-overview.md +0 -27
- package/dist/docs/references/reference-workflows-step.md +1 -1
- package/dist/docs/references/reference-workspace-workspace-class.md +3 -1
- package/dist/evals/index.cjs +2 -2
- package/dist/evals/index.js +2 -2
- package/dist/evals/scoreTraces/index.cjs +2 -2
- package/dist/evals/scoreTraces/index.js +2 -2
- package/dist/{execution-fence-C8Q0wWkG.cjs → execution-fence-CHI1L6Gw.cjs} +284 -97
- package/dist/{execution-fence-DGFyUV5h.js → execution-fence-P1uj8uB8.js} +273 -98
- package/dist/harness/index.cjs +1 -1
- package/dist/harness/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/knowledge/importers/local-host.d.ts +2 -1
- package/dist/knowledge/importers/sink.d.ts +6 -0
- package/dist/knowledge/importers/types.d.ts +5 -0
- package/dist/knowledge/index.cjs +105 -20
- package/dist/knowledge/index.js +105 -21
- package/dist/knowledge/links.d.ts +19 -6
- package/dist/llm/index.cjs +3 -3
- package/dist/llm/index.js +3 -3
- package/dist/llm/model/gateways/mastra.d.ts +19 -0
- package/dist/llm/model/gateways/refreshing-cache.d.ts +52 -0
- package/dist/llm/model/gateways/url-template.d.ts +3 -1
- package/dist/llm/model/provider-types.generated.d.ts +7693 -7570
- package/dist/{llm-YNjDFSui.js → llm-D4BaXbwZ.js} +4 -3
- package/dist/{llm-RIAYOAtD.cjs → llm-DqcaZBHM.cjs} +4 -3
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +2 -2
- package/dist/loop/workflows/agentic-execution/background-task-check-step.d.ts +4 -0
- package/dist/loop/workflows/agentic-execution/goal-step.d.ts +4 -0
- package/dist/loop/workflows/agentic-execution/is-task-complete-step.d.ts +4 -0
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts +4 -0
- package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts +2 -0
- package/dist/loop/workflows/schema.d.ts +13 -0
- package/dist/{manager-DZhtdV6Q.js → manager-BAs1D8t9.js} +3 -3
- package/dist/{manager-Y-jYcS7T.cjs → manager-Do9PPiEw.cjs} +3 -3
- package/dist/mastra/index.cjs +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/{mastra-BJ54VxOO.js → mastra-CaLISVUE.js} +16 -16
- package/dist/{mastra-B2-HBq1-.cjs → mastra-DWCqC_6c.cjs} +16 -16
- package/dist/memory/index.cjs +2 -2
- package/dist/memory/index.js +2 -2
- package/dist/{model-lzZPXaEV.cjs → model-DAcaPIyq.cjs} +1 -1
- package/dist/{model-cS3d5rmF.js → model-DafU-uar.js} +1 -1
- package/dist/{netlify-1lti1j4Z.cjs → netlify-1Nz6N3ej.cjs} +29 -13
- package/dist/{netlify-ClBjc0Xg.js → netlify-CUG0Ko81.js} +29 -13
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/processor-provider/index.cjs +1 -1
- package/dist/processor-provider/index.js +1 -1
- package/dist/processors/index.cjs +2 -2
- package/dist/processors/index.js +2 -2
- package/dist/{provider-registry-C_XQJvu2.js → provider-registry-BjBiRMhs.js} +22121 -21683
- package/dist/{provider-registry-C6jd3Uxi.cjs → provider-registry-D_cE6sCW.cjs} +22132 -21676
- package/dist/provider-registry.json +21981 -21714
- package/dist/{registry-generator-DBrTbThj.js → registry-generator-VDBSUg0k.js} +1 -1
- package/dist/{registry-generator-BYdAlox6.cjs → registry-generator-ji57sjZC.cjs} +1 -1
- package/dist/{rehydrate-BtwY0ima.cjs → rehydrate-BOhDMI4r.cjs} +2 -2
- package/dist/{rehydrate-4xHubfOY.js → rehydrate-Do67YKWz.js} +2 -2
- package/dist/relevance/index.cjs +2 -2
- package/dist/relevance/index.js +2 -2
- package/dist/storage/constants.cjs +1 -1
- package/dist/storage/constants.js +1 -1
- package/dist/storage/domains/knowledge/base.d.ts +11 -0
- package/dist/storage/domains/knowledge/inmemory.d.ts +1 -0
- package/dist/storage/domains/knowledge/pages-inmemory.d.ts +4 -0
- package/dist/storage/domains/knowledge/pages.d.ts +1 -1
- package/dist/storage/domains/observability/tracing.d.ts +12 -0
- package/dist/storage/index.cjs +4 -3
- package/dist/storage/index.js +4 -4
- package/dist/stream/index.cjs +2 -2
- package/dist/stream/index.js +2 -2
- package/dist/{stream-H_wVxqdK.js → stream-DlzW_BXE.js} +1 -1
- package/dist/{stream-DqKDB3nL.cjs → stream-HM3ei83E.cjs} +1 -1
- package/dist/test-utils/llm-mock.cjs +1 -1
- package/dist/test-utils/llm-mock.js +1 -1
- package/dist/tool-loop-agent/index.cjs +1 -1
- package/dist/tool-loop-agent/index.js +1 -1
- package/dist/{tool-loop-agent-DvZcOxWe.js → tool-loop-agent-BBlEpcl4.js} +3 -3
- package/dist/{tool-loop-agent-D4gSdYuN.cjs → tool-loop-agent-CLyS2mqD.cjs} +3 -3
- package/dist/{utils-Dd4m7z13.cjs → utils-CYmtHkJO.cjs} +1 -1
- package/dist/{utils-h5k_ChdS.js → utils-DlBS4OO7.js} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/{validate-DQB9spZ1.js → validate-C7Ltq3EW.js} +1 -1
- package/dist/{validate-u6_TUYSo.cjs → validate-CPda0kNf.cjs} +1 -1
- package/dist/vector/index.cjs +1 -1
- package/dist/vector/index.js +1 -1
- package/dist/worker/index.cjs +1 -1
- package/dist/worker/index.js +1 -1
- package/dist/{worker-0F7Nukyf.cjs → worker-BTLxhv5x.cjs} +2 -2
- package/dist/{worker-DmUkyJY_.js → worker-C75s75rt.js} +2 -2
- package/dist/{worker-DWOK2M_5.js → worker-CcLWNaev.js} +2 -2
- package/dist/{worker-D-cq8McN.cjs → worker-DkqCjpGQ.cjs} +2 -2
- package/dist/{workflow-DXE15e-w.cjs → workflow-BFlBk2d6.cjs} +3 -3
- package/dist/{workflow-DamOke3z.js → workflow-Dq4584lm.js} +3 -3
- package/dist/workflows/builder/index.cjs +1 -1
- package/dist/workflows/builder/index.js +1 -1
- package/dist/workflows/evented/index.cjs +1 -1
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +4 -4
- package/dist/workflows/index.js +4 -4
- package/dist/workspace/tools/media.d.ts +2 -2
- package/package.json +6 -6
- package/src/llm/model/provider-types.generated.d.ts +7693 -7570
|
@@ -4,7 +4,7 @@ import { t as MastraBase } from "./base-CKLWBhDo.js";
|
|
|
4
4
|
import { a as MastraNonRetryableError, i as MastraError, n as ErrorDomain, o as getErrorFromUnknown, t as ErrorCategory } from "./error-oh2DLsP2.js";
|
|
5
5
|
import { a as classifyProviderError, l as describeProviderError, t as recordTerminalErrorMessage, u as readProviderErrorDetails } from "./error-BC9Au-22.js";
|
|
6
6
|
import { S as isLeaseProvider, _ as stripModelSnapshots, a as CachingPubSub, b as NoopLeaseProvider, f as isRunLocalTopic, h as slimNestedAgentChunks, i as PublisherQueueLimitError, r as serializeError$1, t as DefaultStepResult, v as EventEmitterPubSub, y as withAck } from "./output-helpers-D-qplq22.js";
|
|
7
|
-
import { $ as summarizeToolChoiceForSpan, $t as commitToolResult, A as isSignalChunkExcluded, An as isMastraTimeoutError, At as getSnapshotMemoryInfo, B as removeTrailingAssistantGuardContinuations, Bt as stateColumnsWrite, C as stampChunkProducedAt, Cn as DEADLINE_SAVE_CLAIM_HOLD_MS, D as isStructuredOutputError, Dn as getAbortReason, Dt as validateTemplate, E as escapeUnescapedControlCharsInJsonStrings, En as createTimeoutAbortSignal, Et as traverseMappingPath, F as endOutputStreamSpanOutsideStep, Fn as safeClose, Ft as latestStepResults, G as FLUSH_HELD_PARTS_KEY, Gt as diffStateAsJson, Ht as unusedStateEntries, I as findOwnModelStepSpan, In as safeEnqueue, It as materializeState, J as withoutHeldContent, K as REPROCESS_PART_KEY, Kt as patchState, Ln as safeError, Lt as materializeWorkflowRun, M as ProcessorRunner, Mn as settledOrElapsed, N as ProcessorState, Nt as applyStateColumnsWrite, O as asJsonSchema, On as guardStreamUntilMatch, Ot as getStepResult, P as endOutputStreamSpanAtStepEnd, Pn as MastraModelInput, Pt as isStateCheckpointDue, Q as summarizeProcessorToolsForSpan, R as isTrailingAssistantGuardContinuation, Rn as createRunScope, Rt as pickStateKeys, S as getChunkProducedAt, Sn as takenQueueThreadId, St as stepRefId, T as createOutputHandler, Tn as MastraTimeoutError, Tt as templateReadsState, Ut as applyStatePatch, V as ProviderHistoryCompat, Vt as summarizeStepResult, X as summarizeProcessorModelForSpan, Y as summarizeActiveToolsForSpan, Yt as isObservationalMemoryEnabled$1, Z as summarizeProcessorResultForSpan, Zt as parseMemoryRequestContext, _ as persistProcessorDataChunk, _t as stubStepResult, a as convertFullStreamChunkToMastra, an as snapshotToolResult, at as PROCESSOR_ABORT_SIGNAL, b as resolveOutputMessageSkippingCompletionChecks, bn as pendingQueueThreadId, bt as predicateReadsState, c as WorkflowRunOutput, cn as validationErrorModelOutput, ct as getHydratedStepResult, d as MastraModelOutput, dn as resolveSuspendedToolRunId, dt as lazyStepResults, en as computeModelOutputProviderMetadata, et as resolveProcessorSpanAttributes, f as clearStepPartIndexes, fn as resolveThreadIdFromArgs, ft as loadStepResults, g as isFeedbackContinuation, gn as applyStateSignal, gt as storageV2StepResultAccessors, h as findStepPartBoundaries, hn as tryStreamWithJsonFallback, ht as residentStepResultsLoader, in as resolveModelOutputAfterToolResultProcessors, it as createProcessorSendSignal, j as OUTPUT_STREAM_HOOK_DURATION_KEY_PREFIX, jn as raceAgainstAbort, k as getResponseFormat, kn as guardStreamWithAbort, kt as getStepResultAsync, l as TripWire, ln as isProcessorWorkflow, lt as hydrateStepResults, m as findIterationOffsetInParts, mn as tryGenerateWithJsonFallback, mt as residentStepResults, nn as latestProcessedModelOutput, nt as toProcessorSpanPhase, on as withAgentWorkflowToolMarker, ot as RunJournal, p as createDestructurableOutput, pn as supportedLanguageModelSpecifications, pt as loadedStepResults, q as takeHeldParts, rn as readModelOutput, rt as PROCESSOR_LATE_SIGNAL_SINK, s as MastraAgentNetworkStream, sn as normalizeModelOutput, st as buildStepResultAccessors, tn as hasToolResultProcessor, tt as resolveProcessorSpanName, u as getModelOutputForTripwire, un as isSupportedLanguageModel, ut as isStepResultStub, v as reconcileBufferedStepTexts, vn as assertNotQueueThreadId, vt as collectMappingStepRefs, w as markChunkOutputProcessed, wn as DEADLINE_SAVE_WAIT_MS, wt as resolveTemplate, x as resolveProcessorWriterMessageId, xn as queuedQueueThreadId, xt as resolveStepOutputs, y as resolveMessageText, yn as isQueueThreadId, yt as collectPredicateStepRefs, z as needsTrailingAssistantGuard, zn as createRunScopeKey, zt as stateBaseOf } from "./stream-
|
|
7
|
+
import { $ as summarizeToolChoiceForSpan, $t as commitToolResult, A as isSignalChunkExcluded, An as isMastraTimeoutError, At as getSnapshotMemoryInfo, B as removeTrailingAssistantGuardContinuations, Bt as stateColumnsWrite, C as stampChunkProducedAt, Cn as DEADLINE_SAVE_CLAIM_HOLD_MS, D as isStructuredOutputError, Dn as getAbortReason, Dt as validateTemplate, E as escapeUnescapedControlCharsInJsonStrings, En as createTimeoutAbortSignal, Et as traverseMappingPath, F as endOutputStreamSpanOutsideStep, Fn as safeClose, Ft as latestStepResults, G as FLUSH_HELD_PARTS_KEY, Gt as diffStateAsJson, Ht as unusedStateEntries, I as findOwnModelStepSpan, In as safeEnqueue, It as materializeState, J as withoutHeldContent, K as REPROCESS_PART_KEY, Kt as patchState, Ln as safeError, Lt as materializeWorkflowRun, M as ProcessorRunner, Mn as settledOrElapsed, N as ProcessorState, Nt as applyStateColumnsWrite, O as asJsonSchema, On as guardStreamUntilMatch, Ot as getStepResult, P as endOutputStreamSpanAtStepEnd, Pn as MastraModelInput, Pt as isStateCheckpointDue, Q as summarizeProcessorToolsForSpan, R as isTrailingAssistantGuardContinuation, Rn as createRunScope, Rt as pickStateKeys, S as getChunkProducedAt, Sn as takenQueueThreadId, St as stepRefId, T as createOutputHandler, Tn as MastraTimeoutError, Tt as templateReadsState, Ut as applyStatePatch, V as ProviderHistoryCompat, Vt as summarizeStepResult, X as summarizeProcessorModelForSpan, Y as summarizeActiveToolsForSpan, Yt as isObservationalMemoryEnabled$1, Z as summarizeProcessorResultForSpan, Zt as parseMemoryRequestContext, _ as persistProcessorDataChunk, _t as stubStepResult, a as convertFullStreamChunkToMastra, an as snapshotToolResult, at as PROCESSOR_ABORT_SIGNAL, b as resolveOutputMessageSkippingCompletionChecks, bn as pendingQueueThreadId, bt as predicateReadsState, c as WorkflowRunOutput, cn as validationErrorModelOutput, ct as getHydratedStepResult, d as MastraModelOutput, dn as resolveSuspendedToolRunId, dt as lazyStepResults, en as computeModelOutputProviderMetadata, et as resolveProcessorSpanAttributes, f as clearStepPartIndexes, fn as resolveThreadIdFromArgs, ft as loadStepResults, g as isFeedbackContinuation, gn as applyStateSignal, gt as storageV2StepResultAccessors, h as findStepPartBoundaries, hn as tryStreamWithJsonFallback, ht as residentStepResultsLoader, in as resolveModelOutputAfterToolResultProcessors, it as createProcessorSendSignal, j as OUTPUT_STREAM_HOOK_DURATION_KEY_PREFIX, jn as raceAgainstAbort, k as getResponseFormat, kn as guardStreamWithAbort, kt as getStepResultAsync, l as TripWire, ln as isProcessorWorkflow, lt as hydrateStepResults, m as findIterationOffsetInParts, mn as tryGenerateWithJsonFallback, mt as residentStepResults, nn as latestProcessedModelOutput, nt as toProcessorSpanPhase, on as withAgentWorkflowToolMarker, ot as RunJournal, p as createDestructurableOutput, pn as supportedLanguageModelSpecifications, pt as loadedStepResults, q as takeHeldParts, rn as readModelOutput, rt as PROCESSOR_LATE_SIGNAL_SINK, s as MastraAgentNetworkStream, sn as normalizeModelOutput, st as buildStepResultAccessors, tn as hasToolResultProcessor, tt as resolveProcessorSpanName, u as getModelOutputForTripwire, un as isSupportedLanguageModel, ut as isStepResultStub, v as reconcileBufferedStepTexts, vn as assertNotQueueThreadId, vt as collectMappingStepRefs, w as markChunkOutputProcessed, wn as DEADLINE_SAVE_WAIT_MS, wt as resolveTemplate, x as resolveProcessorWriterMessageId, xn as queuedQueueThreadId, xt as resolveStepOutputs, y as resolveMessageText, yn as isQueueThreadId, yt as collectPredicateStepRefs, z as needsTrailingAssistantGuard, zn as createRunScopeKey, zt as stateBaseOf } from "./stream-DlzW_BXE.js";
|
|
8
8
|
import { HAND_BACK_STATE_SYMBOL, PARENT_STATE_SYMBOL, PUBSUB_SYMBOL, STREAM_FORMAT_SYMBOL, WORKFLOW_CANCELLED_SYMBOL } from "./workflows/constants.js";
|
|
9
9
|
import { c as MASTRA_THREAD_ID_KEY, d as isReservedRequestContextKey, f as mergeVersionOverrides$1, l as MASTRA_VERSIONS_KEY, n as MASTRA_AUTH_TOKEN_KEY, o as MASTRA_RESOURCE_ID_KEY, p as withoutLiveRequestKeys, r as MASTRA_INHERITED_MEMORY_KEY, s as MASTRA_SCOPES_KEY, t as MASTRA_CONTINUATION_TOOL_CALL_IDS_KEY, u as RequestContext } from "./request-context-COnZHt2-.js";
|
|
10
10
|
import { _ as resolveObservabilityContext, a as agentLoopTermination, c as compactStopReasonContext, g as createObservabilityContext, h as wrapMastra, i as subtractReportedUsage, m as unwrapMastraTracingProxy, n as extractUsageMetrics, o as executionFailureTermination, r as isUsageIncomplete, s as tripwireTermination, t as calculateObservedUsage } from "./observability-DPDWibyH.js";
|
|
@@ -13,9 +13,9 @@ import { a as getOrCreateSpan, f as resolveCurrentSpan, l as getTimeToFirstChunk
|
|
|
13
13
|
import { _ as getRequestContextInputValues, a as getModelFacingValidationError, d as validateToolOutput, g as getRequestContextInputSource, l as resolveToolOutputValidationSchema, r as createTool, u as validateToolInput } from "./tool-DIFduuTw.js";
|
|
14
14
|
import { isStandardSchemaWithJSON, standardSchemaToJSONSchema, toStandardSchema } from "./schema/index.js";
|
|
15
15
|
import { i as setSpanErrorOrigin, n as getSpanErrorOrigin } from "./error-count-BH-rJW7q.js";
|
|
16
|
-
import { A as eagerToolCallDidNotExecute, D as EagerToolExecutionCoordinator, E as EAGER_TOOL_EXECUTION_MARKER, F as hasRunningRunStep, I as isRunStepActive, L as setRunLeaseFence, M as isEagerlyExecutableToolCall, N as TOOL_ABORT_NOTICE, O as EagerToolExecutionNotRun, P as clearRunLeaseFence, R as startRunStep, S as selectFields, T as EAGER_TOOL_BAILOUT, a as ensureToolProperties, b as removeUndefinedValues, d as makeCoreTool, i as delay$1, j as eagerToolCallSuspensionIntent, k as eagerToolCallAlreadyAnnouncedInput, n as createMastraProxy, o as generateEmptyFromSchema, p as makeProcessorCoreTool, r as deepMerge$1, v as readPositiveIntEnv, w as EAGER_TOOL_ABORT_SIGNAL, y as rebindProcessorTools, z as whenRunStepsSettle } from "./utils-
|
|
16
|
+
import { A as eagerToolCallDidNotExecute, D as EagerToolExecutionCoordinator, E as EAGER_TOOL_EXECUTION_MARKER, F as hasRunningRunStep, I as isRunStepActive, L as setRunLeaseFence, M as isEagerlyExecutableToolCall, N as TOOL_ABORT_NOTICE, O as EagerToolExecutionNotRun, P as clearRunLeaseFence, R as startRunStep, S as selectFields, T as EAGER_TOOL_BAILOUT, a as ensureToolProperties, b as removeUndefinedValues, d as makeCoreTool, i as delay$1, j as eagerToolCallSuspensionIntent, k as eagerToolCallAlreadyAnnouncedInput, n as createMastraProxy, o as generateEmptyFromSchema, p as makeProcessorCoreTool, r as deepMerge$1, v as readPositiveIntEnv, w as EAGER_TOOL_ABORT_SIGNAL, y as rebindProcessorTools, z as whenRunStepsSettle } from "./utils-DlBS4OO7.js";
|
|
17
17
|
import { h as getWorkflowFGAResourceId, i as MastraFGAPermissions, y as requireFGA } from "./ee-iTj2bRDt-By_B9ngH.js";
|
|
18
|
-
import { c as createBackgroundTask, o as resolveBackgroundConfig, s as sanitizeToolArguments, t as generateBackgroundTaskSystemPrompt } from "./background-tasks-
|
|
18
|
+
import { c as createBackgroundTask, o as resolveBackgroundConfig, s as sanitizeToolArguments, t as generateBackgroundTaskSystemPrompt } from "./background-tasks-DJHuKMQC.js";
|
|
19
19
|
import { a as isApprovalExempt, c as isProviderDefinedTool, d as markAgentWorkflowTool, f as markApprovalExempt, l as isProviderTool, n as getNeedsApprovalFn, o as isBuiltBeforeApproval, r as getProviderToolName, s as isMastraTool, t as getBeforeApprovalFn } from "./toolchecks-CRAfUe9H.js";
|
|
20
20
|
import { t as ToolStream } from "./stream-D9JOykz7.js";
|
|
21
21
|
import { a as waitDelay, i as getRetryAfterMs, n as DEFAULT_MAX_RETRY_AFTER_MS, r as clampDelayMs } from "./fetchWithRetry-DFSvpYDT.js";
|
|
@@ -23,23 +23,23 @@ import { boundedStringify, ensureSerializable, safeStringify } from "./utils/saf
|
|
|
23
23
|
import { t as deepEqual$3 } from "./deep-equal-d1xU02ag.js";
|
|
24
24
|
import { n as resolveDynamicArgument, t as getRequestUser } from "./dynamic-argument-BzPK3qPN.js";
|
|
25
25
|
import { A as stableStringify$1, E as removeWorkingMemoryTags, P as embed$3, Z as preserveResponseItemIdsOnMerge, a as isTerminalToolInvocationState, c as withUnavailableAttachmentUrls, d as aiV5UIMessagesToAIV5ModelMessages, f as coreContentToString, i as isClientToolInvocationUpdate, l as isDownloadAssetsError, m as filterMessagesForPersistence, n as MessageList, ot as normalizeToolOutput, p as messagesAreEqual, r as advancesToolInvocationState, s as unavailableAttachmentPlaceholder, t as convertMessages, u as MessageMerger } from "./message-list-RgFlLrxG.js";
|
|
26
|
-
import { a as ModelRouterLanguageModel, d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, n as ModelRouterEmbeddingModel, o as resolveApiProviderId, p as readModelStreamTransport } from "./llm-
|
|
26
|
+
import { a as ModelRouterLanguageModel, d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, n as ModelRouterEmbeddingModel, o as resolveApiProviderId, p as readModelStreamTransport } from "./llm-D4BaXbwZ.js";
|
|
27
27
|
import { a as withToolPayloadTransformMetadata, i as transformToolPayloadForTargets, n as hasTransformedToolPayload, o as withToolPayloadTransformProviderMetadata, r as normalizeToolPayloadTransformPolicy, t as getTransformedToolPayload } from "./payload-transform-Dj3HUeD4.js";
|
|
28
28
|
import { d as signalSpanAttributes, h as signalToXmlMarkup, l as mastraDBMessageToSignal, n as createSignal, o as isMastraSignalMessage, s as isTransientSignalMessage, u as resolveDeliveryAttributes } from "./signals-CqR_iWkg.js";
|
|
29
29
|
import { h as resolveFilePartMediaTypeAndData, m as parseDataUri, o as categorizeFileData } from "./to-prompt-CMlVGYxC.js";
|
|
30
30
|
import { c as parsePartialJson, h as tool$1, m as generateId$1, p as asSchema$1, r as embed$4, u as APICallError$1 } from "./dist-TPVqg8oV.js";
|
|
31
31
|
import { n as embed$5 } from "./dist-D3cKCUe-.js";
|
|
32
32
|
import { i as hasFreeFormObject } from "./model-DS-b2R-R.js";
|
|
33
|
-
import { c as modelSupportsStructuredOutput, l as modelSupportsTemperature } from "./provider-registry-
|
|
33
|
+
import { c as modelSupportsStructuredOutput, l as modelSupportsTemperature } from "./provider-registry-BjBiRMhs.js";
|
|
34
34
|
import { t as InMemoryServerCache } from "./inmemory-BK3zLwvM.js";
|
|
35
|
-
import { t as MastraLLMV1 } from "./model-
|
|
35
|
+
import { t as MastraLLMV1 } from "./model-DafU-uar.js";
|
|
36
36
|
import { MISSING, collectInvalidPredicatePaths, createPredicateEvaluator, derivePredicateLabel, normalizePredicatePath, walk } from "./predicate/index.js";
|
|
37
37
|
import { Classifier } from "./classifier/index.js";
|
|
38
38
|
import { initContextStorage, withSpanErrorAttempt } from "./observability/context-storage.js";
|
|
39
39
|
import { i as executeHook } from "./hooks-Bth8Cjpj.js";
|
|
40
40
|
import { o as assertValidScheduleDefinition, v as validateScheduleTiming } from "./schedules-DZfSx-7P.js";
|
|
41
41
|
import { A as writeObjective, D as readObjective, O as resolveEffectiveGoalSettings, T as formatGoalBudgetPausedReason, _ as clearCachedGoalObjective, b as GOAL_SCORER_ID, g as cacheGoalObjective, k as resolveGoalStore, w as clearObjective, x as GOAL_SCORE_WAITING } from "./state-processor-B_KsS82m.js";
|
|
42
|
-
import { An as computeTraceStatus, Cr as extractTrajectory, Dr as saveScorePayloadSchema, It as TABLE_SCHEMAS, Lt as TABLE_SCORERS, Nn as extractBranchSpans, Pn as getBranchArgsSchema, Qn as listTracesArgsSchema, Sr as withBufferedReflectionVerified, Tr as extractWorkflowTrajectory, Yn as listBranchesArgsSchema, _r as isAppendOnlySince, ar as spanRecordSchema, br as maxObservationCursor, cr as toTraceSpans, gn as BRANCH_SPAN_TYPE_SET, gr as compareObservationalMemoryHeadOrder, hr as assertActiveObservationsApplied, or as toLightSpanRecord, pn as matchesExpectedWorkflowStatus, qn as isPreviewTruncated, sr as toTraceSpan, vn as TraceStatus, vr as isBufferedChunkCoveredByCursor, wr as extractTrajectoryFromTrace, xr as planReflectionGenerationText, yr as isBufferedReflectionUnchangedSince } from "./constants-
|
|
42
|
+
import { An as computeTraceStatus, Cr as extractTrajectory, Dr as saveScorePayloadSchema, It as TABLE_SCHEMAS, Lt as TABLE_SCORERS, Nn as extractBranchSpans, Pn as getBranchArgsSchema, Qn as listTracesArgsSchema, Sr as withBufferedReflectionVerified, Tr as extractWorkflowTrajectory, Yn as listBranchesArgsSchema, _r as isAppendOnlySince, ar as spanRecordSchema, br as maxObservationCursor, cr as toTraceSpans, gn as BRANCH_SPAN_TYPE_SET, gr as compareObservationalMemoryHeadOrder, hr as assertActiveObservationsApplied, or as toLightSpanRecord, pn as matchesExpectedWorkflowStatus, qn as isPreviewTruncated, sr as toTraceSpan, vn as TraceStatus, vr as isBufferedChunkCoveredByCursor, wr as extractTrajectoryFromTrace, xr as planReflectionGenerationText, yr as isBufferedReflectionUnchangedSince } from "./constants-C2Q-ZI5d.js";
|
|
43
43
|
import { t as GoalSignalProvider } from "./signal-provider-B_mfW-J4.js";
|
|
44
44
|
import { t as slugify } from "./slugify-BUNmb-Ga.js";
|
|
45
45
|
import { F as LocalSandbox, at as evaluateReadRecord, c as Workspace, dt as WORKSPACE_TOOLS, g as resolveToolConfig, gt as shellQuote, h as createWorkspaceTools, ht as sliceByTokens, l as createSkillTools, lt as CompositeFilesystem, mt as estimateTokenCount, ot as normalizeReadTrackerPath, pt as sliceByTokensSafe, st as LocalFilesystem } from "./workspace-sqcfdZRR.js";
|
|
@@ -24807,6 +24807,8 @@ const llmIterationOutputSchema = z.object({
|
|
|
24807
24807
|
stepResult: llmIterationStepResultSchema,
|
|
24808
24808
|
processorRetryCount: z.number().optional(),
|
|
24809
24809
|
fallbackModelIndex: z.number().optional(),
|
|
24810
|
+
fallbackModelId: z.string().optional(),
|
|
24811
|
+
fallbackModelTriesEarlierEntries: z.boolean().optional(),
|
|
24810
24812
|
skipUnavailableAttachments: z.boolean().optional(),
|
|
24811
24813
|
processorRetryFeedback: z.string().optional(),
|
|
24812
24814
|
isTaskCompleteCheckFailed: z.boolean().optional(),
|
|
@@ -35143,6 +35145,9 @@ var ObservabilityInMemory = class extends ObservabilityStorage {
|
|
|
35143
35145
|
entityType: span.entityType,
|
|
35144
35146
|
entityId: span.entityId,
|
|
35145
35147
|
entityName: span.entityName,
|
|
35148
|
+
outcome: span.outcome,
|
|
35149
|
+
stopReason: span.stopReason,
|
|
35150
|
+
stopReasonContext: span.stopReasonContext,
|
|
35146
35151
|
createdAt: span.createdAt,
|
|
35147
35152
|
updatedAt: span.updatedAt
|
|
35148
35153
|
}))
|
|
@@ -40304,12 +40309,35 @@ var KnowledgeInvalidCursorError = class extends Error {
|
|
|
40304
40309
|
}
|
|
40305
40310
|
};
|
|
40306
40311
|
/**
|
|
40312
|
+
* A keyword search the store refuses, such as one with a word over
|
|
40313
|
+
* {@link KNOWLEDGE_SEARCH_MAX_WORD_LENGTH} characters. Recognise it by `name`; adapters bundle their
|
|
40314
|
+
* own copy.
|
|
40315
|
+
* @experimental
|
|
40316
|
+
*/
|
|
40317
|
+
var KnowledgeInvalidSearchError = class extends Error {
|
|
40318
|
+
constructor(message) {
|
|
40319
|
+
super(message);
|
|
40320
|
+
this.name = "KnowledgeInvalidSearchError";
|
|
40321
|
+
}
|
|
40322
|
+
};
|
|
40323
|
+
/**
|
|
40307
40324
|
* Keyword-search words: the query split on whitespace, lowercased, deduplicated, keeping the first
|
|
40308
40325
|
* {@link KNOWLEDGE_SEARCH_MAX_WORDS}. A hit needs at least one of them (as a case-insensitive
|
|
40309
|
-
* substring); an empty list means the search returns nothing.
|
|
40326
|
+
* substring); an empty list means the search returns nothing. Throws
|
|
40327
|
+
* {@link KnowledgeInvalidSearchError} for any word over {@link KNOWLEDGE_SEARCH_MAX_WORD_LENGTH}
|
|
40328
|
+
* characters rather than dropping or cutting it, which would match the wrong pages.
|
|
40310
40329
|
*/
|
|
40311
40330
|
function knowledgeSearchWords(query) {
|
|
40312
|
-
|
|
40331
|
+
const words = [];
|
|
40332
|
+
for (const raw of query.split(/\s+/)) {
|
|
40333
|
+
if (!raw) continue;
|
|
40334
|
+
const length = raw.length > 128 ? [...raw].length : raw.length;
|
|
40335
|
+
if (length > 128) throw new KnowledgeInvalidSearchError(`Knowledge search words can be at most 128 characters; one word has ${length}`);
|
|
40336
|
+
if (words.length === 16) continue;
|
|
40337
|
+
const word = raw.toLowerCase();
|
|
40338
|
+
if (!words.includes(word)) words.push(word);
|
|
40339
|
+
}
|
|
40340
|
+
return words;
|
|
40313
40341
|
}
|
|
40314
40342
|
/**
|
|
40315
40343
|
* Points one matched search word earns on a page, by the best field it appears in: name, then
|
|
@@ -41742,6 +41770,13 @@ var InMemoryKnowledgePageStore = class {
|
|
|
41742
41770
|
for (const [pageId, links] of this.#bodyLinks) if (links.some((link) => link.toPageId === null ? refs.has(link.ref) : targets.has(link.toPageId))) sources.push(pageId);
|
|
41743
41771
|
return sources;
|
|
41744
41772
|
}
|
|
41773
|
+
async listPageBodyLinkSourcesByRef(input) {
|
|
41774
|
+
const refs = new Set(input.refs);
|
|
41775
|
+
const targets = new Set(input.toPageIds);
|
|
41776
|
+
const sources = [];
|
|
41777
|
+
for (const [pageId, links] of this.#bodyLinks) if (links.some((link) => link.toPageId !== null && targets.has(link.toPageId) && refs.has(link.ref))) sources.push(pageId);
|
|
41778
|
+
return sources;
|
|
41779
|
+
}
|
|
41745
41780
|
/** Every resolved link both of whose ends are live and readable, and not a self-link. */
|
|
41746
41781
|
#visibleLinks(read, kinds) {
|
|
41747
41782
|
const wanted = new Set(kinds ?? ["body", "note"]);
|
|
@@ -42343,6 +42378,9 @@ var InMemoryKnowledgeStorage = class extends KnowledgeStorage {
|
|
|
42343
42378
|
findPagesByNames(input) {
|
|
42344
42379
|
return this.#pageStore.findPagesByNames(input);
|
|
42345
42380
|
}
|
|
42381
|
+
listPageBodyLinkSourcesByRef(input) {
|
|
42382
|
+
return this.#pageStore.listPageBodyLinkSourcesByRef(input);
|
|
42383
|
+
}
|
|
42346
42384
|
findPagesByName(input) {
|
|
42347
42385
|
return this.#pageStore.findPagesByName(input);
|
|
42348
42386
|
}
|
|
@@ -55576,6 +55614,11 @@ async function knowledgeSubtree(storage, root) {
|
|
|
55576
55614
|
*/
|
|
55577
55615
|
const MAX_KNOWLEDGE_LINK_REFRESH_NAMESAKES = 99;
|
|
55578
55616
|
/**
|
|
55617
|
+
* Most linking pages one batched {@link repairKnowledgeLinks} re-resolves by default, in chunks of
|
|
55618
|
+
* {@link MAX_KNOWLEDGE_LINK_REFRESH_SOURCES}; it hands back the rest for the caller to repair later.
|
|
55619
|
+
*/
|
|
55620
|
+
const MAX_KNOWLEDGE_LINK_REPAIR_SOURCES = 1e3;
|
|
55621
|
+
/**
|
|
55579
55622
|
* A link refresh that landed but stopped at {@link MAX_KNOWLEDGE_LINK_REFRESH_SOURCES} linking pages
|
|
55580
55623
|
* or {@link MAX_KNOWLEDGE_LINK_REFRESH_NAMESAKES} namesakes: the rest keep their links until they're
|
|
55581
55624
|
* next written or `knowledge.reindexLinks()` runs.
|
|
@@ -55587,6 +55630,75 @@ var KnowledgeLinkRefreshIncompleteError = class extends Error {
|
|
|
55587
55630
|
}
|
|
55588
55631
|
};
|
|
55589
55632
|
/**
|
|
55633
|
+
* The pages whose body links may resolve differently now that `affected` answer to what they do:
|
|
55634
|
+
* an unresolved link by a ref one of them answers to, a link resolved to one of them, and a link
|
|
55635
|
+
* resolved to a namesake by one of `names`. A namesake's other linkers name it by id or path, which
|
|
55636
|
+
* a name can't change, so they are left out (an importer re-creating a site's pages would otherwise
|
|
55637
|
+
* re-resolve every page linking to the old copies, on every flush). A store with
|
|
55638
|
+
* `listPageBodyLinkSourcesByRef` tells them apart from its link index; otherwise their bodies are
|
|
55639
|
+
* read once to tell, and a linker with no live page stays in: it keeps no links. `read` holds the
|
|
55640
|
+
* namesake linkers' pages read that way.
|
|
55641
|
+
*/
|
|
55642
|
+
async function linkSources(storage, input, maxReads) {
|
|
55643
|
+
const own = new Set(input.affected.map((page) => page.id));
|
|
55644
|
+
const ids = new Set(await storage.listPageBodyLinkSources({
|
|
55645
|
+
refs: [...input.refs],
|
|
55646
|
+
toPageIds: [...own]
|
|
55647
|
+
}));
|
|
55648
|
+
const read = /* @__PURE__ */ new Map();
|
|
55649
|
+
const others = [...input.namesakes].filter((id) => !own.has(id));
|
|
55650
|
+
if (!others.length) return {
|
|
55651
|
+
ids: [...ids],
|
|
55652
|
+
read
|
|
55653
|
+
};
|
|
55654
|
+
const nameKeys = new Set([...input.names].map((name) => knowledgeLinkRefKey(name)));
|
|
55655
|
+
if (storage.listPageBodyLinkSourcesByRef) {
|
|
55656
|
+
if (!nameKeys.size) return {
|
|
55657
|
+
ids: [...ids],
|
|
55658
|
+
read
|
|
55659
|
+
};
|
|
55660
|
+
for (const id of await storage.listPageBodyLinkSourcesByRef({
|
|
55661
|
+
refs: [...nameKeys],
|
|
55662
|
+
toPageIds: others
|
|
55663
|
+
})) ids.add(id);
|
|
55664
|
+
return {
|
|
55665
|
+
ids: [...ids],
|
|
55666
|
+
read
|
|
55667
|
+
};
|
|
55668
|
+
}
|
|
55669
|
+
const candidates = (await storage.listPageBodyLinkSources({ toPageIds: others })).filter((id) => !ids.has(id));
|
|
55670
|
+
if (!candidates.length) return {
|
|
55671
|
+
ids: [...ids],
|
|
55672
|
+
read
|
|
55673
|
+
};
|
|
55674
|
+
if (candidates.length > maxReads - ids.size) {
|
|
55675
|
+
for (const id of candidates) ids.add(id);
|
|
55676
|
+
return {
|
|
55677
|
+
ids: [...ids],
|
|
55678
|
+
read
|
|
55679
|
+
};
|
|
55680
|
+
}
|
|
55681
|
+
for (let i = 0; i < candidates.length; i += 100) for (const page of await storage.getPages({
|
|
55682
|
+
ids: candidates.slice(i, i + 100),
|
|
55683
|
+
read: "all"
|
|
55684
|
+
})) read.set(page.id, page);
|
|
55685
|
+
for (const id of candidates) {
|
|
55686
|
+
const page = read.get(id);
|
|
55687
|
+
if (!page || page.deletedAt) {
|
|
55688
|
+
ids.add(id);
|
|
55689
|
+
continue;
|
|
55690
|
+
}
|
|
55691
|
+
for (const ref of knowledgeBodyLinkRefs(page.body).keys()) if (nameKeys.has(knowledgeLinkRefKey(ref))) {
|
|
55692
|
+
ids.add(id);
|
|
55693
|
+
break;
|
|
55694
|
+
}
|
|
55695
|
+
}
|
|
55696
|
+
return {
|
|
55697
|
+
ids: [...ids],
|
|
55698
|
+
read
|
|
55699
|
+
};
|
|
55700
|
+
}
|
|
55701
|
+
/**
|
|
55590
55702
|
* Re-resolves the pages whose body links one of `pages` or names a ref one of them answers to now,
|
|
55591
55703
|
* after they were created, renamed, moved, merged or deleted, in page id order up to
|
|
55592
55704
|
* {@link MAX_KNOWLEDGE_LINK_REFRESH_SOURCES}. With `withDescendants`, the pages' subtrees count too
|
|
@@ -55596,36 +55708,44 @@ var KnowledgeLinkRefreshIncompleteError = class extends Error {
|
|
|
55596
55708
|
async function refreshKnowledgeLinksTo(storage, pages, options = {}) {
|
|
55597
55709
|
const affected = options.withDescendants ? (await Promise.all(pages.map((page) => knowledgeSubtree(storage, page)))).flat() : pages;
|
|
55598
55710
|
const refs = /* @__PURE__ */ new Set();
|
|
55599
|
-
const targets = new Set(affected.map((page) => page.id));
|
|
55600
55711
|
const names = /* @__PURE__ */ new Set();
|
|
55601
55712
|
for (const page of affected) {
|
|
55602
55713
|
for (const key of await pageRefKeys(storage, page)) refs.add(key);
|
|
55603
55714
|
if (!page.deletedAt) names.add(page.name);
|
|
55604
55715
|
}
|
|
55605
55716
|
const crowded = [];
|
|
55717
|
+
const namesakes = /* @__PURE__ */ new Set();
|
|
55606
55718
|
for (const name of names) {
|
|
55607
|
-
const
|
|
55719
|
+
const found = await storage.findPagesByName({
|
|
55608
55720
|
name,
|
|
55609
55721
|
read: "all",
|
|
55610
55722
|
limit: 100
|
|
55611
55723
|
});
|
|
55612
|
-
if (
|
|
55613
|
-
for (const namesake of
|
|
55724
|
+
if (found.length > MAX_KNOWLEDGE_LINK_REFRESH_NAMESAKES) crowded.push(`"${name}"`);
|
|
55725
|
+
for (const namesake of found.slice(0, MAX_KNOWLEDGE_LINK_REFRESH_NAMESAKES)) namesakes.add(namesake.id);
|
|
55614
55726
|
}
|
|
55615
|
-
const
|
|
55616
|
-
refs
|
|
55617
|
-
|
|
55618
|
-
|
|
55727
|
+
const found = await linkSources(storage, {
|
|
55728
|
+
refs,
|
|
55729
|
+
affected,
|
|
55730
|
+
names,
|
|
55731
|
+
namesakes
|
|
55732
|
+
}, 100);
|
|
55733
|
+
const sources = found.ids.sort();
|
|
55619
55734
|
const crowdedError = () => new KnowledgeLinkRefreshIncompleteError(`More than ${MAX_KNOWLEDGE_LINK_REFRESH_NAMESAKES} pages are named ${crowded.join(", ")}; links to the rest were left as they were`);
|
|
55620
55735
|
if (!sources.length) {
|
|
55621
55736
|
if (crowded.length) throw crowdedError();
|
|
55622
55737
|
return;
|
|
55623
55738
|
}
|
|
55624
55739
|
const batch = sources.slice(0, 100);
|
|
55625
|
-
const
|
|
55626
|
-
|
|
55740
|
+
const toRead = batch.filter((id) => !found.read.has(id));
|
|
55741
|
+
const live = new Map(toRead.length ? (await storage.getPages({
|
|
55742
|
+
ids: toRead,
|
|
55627
55743
|
read: "all"
|
|
55628
|
-
})).map((page) => [page.id, page]));
|
|
55744
|
+
})).map((page) => [page.id, page]) : []);
|
|
55745
|
+
for (const id of batch) {
|
|
55746
|
+
const page = found.read.get(id);
|
|
55747
|
+
if (page) live.set(id, page);
|
|
55748
|
+
}
|
|
55629
55749
|
const resolver = new BodyLinkResolver(storage);
|
|
55630
55750
|
let done = 0;
|
|
55631
55751
|
for (const id of batch) {
|
|
@@ -55692,8 +55812,8 @@ async function reindexKnowledgeLinks(storage) {
|
|
|
55692
55812
|
}
|
|
55693
55813
|
/**
|
|
55694
55814
|
* A batched link repair that would stop at a cap the op-by-op refreshes enforce one write at a time
|
|
55695
|
-
* (
|
|
55696
|
-
*
|
|
55815
|
+
* (namesakes, subtree size): the caller saves op by op instead, so the caps apply exactly as they do
|
|
55816
|
+
* there.
|
|
55697
55817
|
*/
|
|
55698
55818
|
var KnowledgeLinkRepairUnsupportedError = class extends Error {
|
|
55699
55819
|
reason;
|
|
@@ -55709,13 +55829,19 @@ function canRepairKnowledgeLinksInBatch(storage) {
|
|
|
55709
55829
|
}
|
|
55710
55830
|
/**
|
|
55711
55831
|
* Every {@link syncKnowledgePageBodyLinks} and {@link refreshKnowledgeLinksTo} of a flush, run once
|
|
55712
|
-
* over the store as the flush left it,
|
|
55713
|
-
*
|
|
55714
|
-
*
|
|
55715
|
-
|
|
55716
|
-
|
|
55832
|
+
* over the store as the flush left it, a few statements per chunk of up to
|
|
55833
|
+
* {@link MAX_KNOWLEDGE_LINK_REFRESH_SOURCES} pages: each page's links come out as they do when the
|
|
55834
|
+
* calls run one after another after the writes. Linking pages past `limit` (default
|
|
55835
|
+
* {@link MAX_KNOWLEDGE_LINK_REPAIR_SOURCES}), in page id order, keep their links and come back in
|
|
55836
|
+
* `deferred`; the synced pages are always written. Throws {@link KnowledgeLinkRepairUnsupportedError},
|
|
55837
|
+
* having written nothing, when a namesake or subtree cap could bite.
|
|
55838
|
+
*/
|
|
55839
|
+
async function repairKnowledgeLinks(storage, repair, options = {}) {
|
|
55717
55840
|
const synced = new Map(repair.synced.map((page) => [page.id, page]));
|
|
55718
|
-
if (!synced.size && !repair.refreshed.length) return
|
|
55841
|
+
if (!synced.size && !repair.refreshed.length) return {
|
|
55842
|
+
rewritten: 0,
|
|
55843
|
+
deferred: []
|
|
55844
|
+
};
|
|
55719
55845
|
const roots = repair.refreshed.filter((item) => item.withDescendants).map((item) => item.page.id);
|
|
55720
55846
|
const subtrees = roots.length ? await storage.getPageSubtrees({
|
|
55721
55847
|
rootIds: [...new Set(roots)],
|
|
@@ -55735,40 +55861,51 @@ async function repairKnowledgeLinks(storage, repair) {
|
|
|
55735
55861
|
read: "all"
|
|
55736
55862
|
}) : {};
|
|
55737
55863
|
const refs = /* @__PURE__ */ new Set();
|
|
55738
|
-
const targets = new Set(affected.map((page) => page.id));
|
|
55739
55864
|
const names = /* @__PURE__ */ new Set();
|
|
55740
55865
|
for (const page of affected) {
|
|
55741
55866
|
const parents = !page.isScope && page.key && page.parentId ? chains[page.parentId] ?? [] : [];
|
|
55742
55867
|
for (const key of refKeysOf(page, parents)) refs.add(key);
|
|
55743
55868
|
if (!page.deletedAt) names.add(page.name);
|
|
55744
55869
|
}
|
|
55870
|
+
const namesakes = /* @__PURE__ */ new Set();
|
|
55745
55871
|
if (names.size) {
|
|
55746
|
-
const
|
|
55872
|
+
const byName = await storage.findPagesByNames({
|
|
55747
55873
|
names: [...names],
|
|
55748
55874
|
read: "all",
|
|
55749
55875
|
limit: 100
|
|
55750
55876
|
});
|
|
55751
|
-
for (const found of Object.values(
|
|
55877
|
+
for (const found of Object.values(byName)) {
|
|
55752
55878
|
if (found.length > MAX_KNOWLEDGE_LINK_REFRESH_NAMESAKES) throw new KnowledgeLinkRepairUnsupportedError("a name past the namesake limit");
|
|
55753
|
-
for (const namesake of found)
|
|
55879
|
+
for (const namesake of found) namesakes.add(namesake.id);
|
|
55754
55880
|
}
|
|
55755
55881
|
}
|
|
55756
|
-
const
|
|
55757
|
-
|
|
55758
|
-
|
|
55759
|
-
|
|
55760
|
-
|
|
55761
|
-
|
|
55762
|
-
|
|
55763
|
-
ids:
|
|
55882
|
+
const limit = options.limit ?? 1e3;
|
|
55883
|
+
const found = affected.length ? await linkSources(storage, {
|
|
55884
|
+
refs,
|
|
55885
|
+
affected,
|
|
55886
|
+
names,
|
|
55887
|
+
namesakes
|
|
55888
|
+
}, Math.max(0, limit)) : {
|
|
55889
|
+
ids: [],
|
|
55890
|
+
read: /* @__PURE__ */ new Map()
|
|
55891
|
+
};
|
|
55892
|
+
const unread = found.ids.filter((id) => !synced.has(id)).sort();
|
|
55893
|
+
const now = unread.slice(0, Math.max(0, limit));
|
|
55894
|
+
const deferred = unread.slice(now.length);
|
|
55895
|
+
const toRead = now.filter((id) => !found.read.has(id));
|
|
55896
|
+
const live = /* @__PURE__ */ new Map();
|
|
55897
|
+
for (let i = 0; i < toRead.length; i += 100) for (const page of await storage.getPages({
|
|
55898
|
+
ids: toRead.slice(i, i + 100),
|
|
55764
55899
|
read: "all"
|
|
55765
|
-
})
|
|
55900
|
+
})) live.set(page.id, page);
|
|
55901
|
+
for (const id of now) {
|
|
55902
|
+
const page = found.read.get(id);
|
|
55903
|
+
if (page && !page.deletedAt) live.set(id, page);
|
|
55904
|
+
}
|
|
55766
55905
|
const rewrite = /* @__PURE__ */ new Map();
|
|
55767
|
-
for (const id of unread) rewrite.set(id, live.get(id) ?? null);
|
|
55768
55906
|
for (const [id, page] of synced) rewrite.set(id, page);
|
|
55769
|
-
const
|
|
55770
|
-
const
|
|
55771
|
-
const refreshing = new Set(sources);
|
|
55907
|
+
for (const id of now) rewrite.set(id, live.get(id) ?? null);
|
|
55908
|
+
const chunks = [[]];
|
|
55772
55909
|
let looked = 0;
|
|
55773
55910
|
for (const [id, page] of rewrite) {
|
|
55774
55911
|
const byKey = /* @__PURE__ */ new Map();
|
|
@@ -55783,27 +55920,42 @@ async function repairKnowledgeLinks(storage, repair) {
|
|
|
55783
55920
|
});
|
|
55784
55921
|
}
|
|
55785
55922
|
const entries = [...byKey];
|
|
55786
|
-
|
|
55787
|
-
if (
|
|
55788
|
-
|
|
55789
|
-
|
|
55790
|
-
}
|
|
55791
|
-
|
|
55923
|
+
let chunk = chunks.at(-1);
|
|
55924
|
+
if (chunk.length && (chunk.length >= 100 || looked + entries.length > 1e3)) {
|
|
55925
|
+
chunks.push(chunk = []);
|
|
55926
|
+
looked = 0;
|
|
55927
|
+
}
|
|
55928
|
+
chunk.push([id, entries]);
|
|
55929
|
+
looked += entries.length;
|
|
55792
55930
|
}
|
|
55793
|
-
|
|
55794
|
-
|
|
55795
|
-
|
|
55796
|
-
const
|
|
55797
|
-
|
|
55798
|
-
|
|
55799
|
-
|
|
55800
|
-
|
|
55801
|
-
|
|
55802
|
-
|
|
55803
|
-
|
|
55804
|
-
|
|
55805
|
-
|
|
55806
|
-
|
|
55931
|
+
for (const chunk of chunks) {
|
|
55932
|
+
if (!chunk.length) continue;
|
|
55933
|
+
const lookups = [];
|
|
55934
|
+
for (const [id, entries] of chunk) {
|
|
55935
|
+
const page = rewrite.get(id);
|
|
55936
|
+
if (page) for (const [, { ref }] of entries) lookups.push({
|
|
55937
|
+
ref,
|
|
55938
|
+
home: page.scopeId
|
|
55939
|
+
});
|
|
55940
|
+
}
|
|
55941
|
+
const resolved = await resolveKnowledgeBodyLinks(storage, lookups);
|
|
55942
|
+
await storage.applyPageWrites({ writes: chunk.map(([pageId, entries]) => {
|
|
55943
|
+
const home = rewrite.get(pageId)?.scopeId;
|
|
55944
|
+
return {
|
|
55945
|
+
op: "replace-links",
|
|
55946
|
+
pageId,
|
|
55947
|
+
links: entries.map(([key, { ref, count }]) => ({
|
|
55948
|
+
ref: key,
|
|
55949
|
+
toPageId: home === void 0 ? null : resolved.get(`${home}\u0000${ref}`) ?? null,
|
|
55950
|
+
count
|
|
55951
|
+
}))
|
|
55952
|
+
};
|
|
55953
|
+
}) });
|
|
55954
|
+
}
|
|
55955
|
+
return {
|
|
55956
|
+
rewritten: now.length,
|
|
55957
|
+
deferred
|
|
55958
|
+
};
|
|
55807
55959
|
}
|
|
55808
55960
|
/** What {@link BodyLinkResolver} answers for each `(home, ref)`, keyed `home\0ref`, in a fixed number of reads. */
|
|
55809
55961
|
async function resolveKnowledgeBodyLinks(storage, lookups) {
|
|
@@ -85858,7 +86010,7 @@ async function prepareForDurableExecution(options) {
|
|
|
85858
86010
|
});
|
|
85859
86011
|
let tripwireData;
|
|
85860
86012
|
if (inputProcessors.length > 0) try {
|
|
85861
|
-
const { ProcessorRunner } = await import("./stream-
|
|
86013
|
+
const { ProcessorRunner } = await import("./stream-DlzW_BXE.js").then((n) => n.L);
|
|
85862
86014
|
await new ProcessorRunner({
|
|
85863
86015
|
inputProcessors,
|
|
85864
86016
|
outputProcessors,
|
|
@@ -102895,33 +103047,56 @@ async function processOutputStream({ collectedChunks = [], tools, messageId, mes
|
|
|
102895
103047
|
toolResultTripwire
|
|
102896
103048
|
};
|
|
102897
103049
|
}
|
|
102898
|
-
|
|
103050
|
+
/**
|
|
103051
|
+
* What the next step needs to stay on the model serving this generation. A resumed run
|
|
103052
|
+
* resolves its models again, and the list can come back in another order: the id finds the
|
|
103053
|
+
* model again when the caller named it, the first one included.
|
|
103054
|
+
*/
|
|
103055
|
+
function carriedFallbackModel(models, index, triesEarlierEntries) {
|
|
103056
|
+
if (models.length < 2) return {};
|
|
103057
|
+
return {
|
|
103058
|
+
...index > 0 ? { fallbackModelIndex: index } : {},
|
|
103059
|
+
fallbackModelId: models[index]?.id,
|
|
103060
|
+
...triesEarlierEntries ? { fallbackModelTriesEarlierEntries: true } : {}
|
|
103061
|
+
};
|
|
103062
|
+
}
|
|
103063
|
+
function carriedFallbackModelIndex(models, carried) {
|
|
103064
|
+
const saved = carried.fallbackModelIndex ?? 0;
|
|
103065
|
+
if (models[saved]?.id === carried.fallbackModelId) return saved;
|
|
103066
|
+
const byId = models.findIndex((candidate) => candidate.id === carried.fallbackModelId);
|
|
103067
|
+
return byId >= 0 ? byId : carried.fallbackModelIndex || 0;
|
|
103068
|
+
}
|
|
103069
|
+
/**
|
|
103070
|
+
* True when a resumed run found its model by id at another position than the one it saved: the
|
|
103071
|
+
* list came back in another order, so the entries now ahead of that model were not tried yet.
|
|
103072
|
+
*/
|
|
103073
|
+
function resumedInAnotherOrder(models, carried) {
|
|
103074
|
+
const saved = carried.fallbackModelIndex ?? 0;
|
|
103075
|
+
if (carried.fallbackModelId === void 0 || models[saved]?.id === carried.fallbackModelId) return false;
|
|
103076
|
+
return models.some((candidate) => candidate.id === carried.fallbackModelId);
|
|
103077
|
+
}
|
|
103078
|
+
function executeStreamWithFallbackModels(models, logger, startIndex = 0, throwIfInterrupted, tryEntriesBeforeStart = false) {
|
|
102899
103079
|
return async (callback) => {
|
|
102900
|
-
|
|
103080
|
+
const order = [...models.slice(startIndex), ...tryEntriesBeforeStart ? models.slice(0, startIndex) : []];
|
|
102901
103081
|
let finalResult;
|
|
102902
|
-
let done = false;
|
|
102903
103082
|
let lastError;
|
|
102904
|
-
for (const modelConfig of
|
|
102905
|
-
|
|
102906
|
-
|
|
102907
|
-
|
|
102908
|
-
|
|
102909
|
-
|
|
102910
|
-
|
|
102911
|
-
|
|
102912
|
-
|
|
102913
|
-
|
|
102914
|
-
|
|
102915
|
-
|
|
102916
|
-
|
|
102917
|
-
|
|
102918
|
-
|
|
102919
|
-
|
|
102920
|
-
|
|
102921
|
-
totalModels: models.length
|
|
102922
|
-
});
|
|
102923
|
-
else logger?.error(`Error executing model ${modelConfig.model.modelId}`, err);
|
|
102924
|
-
}
|
|
103083
|
+
for (const [attempt, modelConfig] of order.entries()) try {
|
|
103084
|
+
finalResult = await callback(modelConfig, attempt === order.length - 1);
|
|
103085
|
+
break;
|
|
103086
|
+
} catch (err) {
|
|
103087
|
+
throwIfInterrupted?.();
|
|
103088
|
+
if (err instanceof TripWire) throw err;
|
|
103089
|
+
if (isMastraTimeoutError(err) && err.timeoutType === "total") throw err;
|
|
103090
|
+
lastError = err;
|
|
103091
|
+
const nextModel = order[attempt + 1];
|
|
103092
|
+
if (nextModel) logger?.warn(`Model ${modelConfig.model.modelId} failed; falling back to ${nextModel.model.modelId}`, {
|
|
103093
|
+
error: err,
|
|
103094
|
+
modelId: modelConfig.model.modelId,
|
|
103095
|
+
nextModelId: nextModel.model.modelId,
|
|
103096
|
+
attempt: attempt + 1,
|
|
103097
|
+
totalModels: order.length
|
|
103098
|
+
});
|
|
103099
|
+
else logger?.error(`Error executing model ${modelConfig.model.modelId}`, err);
|
|
102925
103100
|
}
|
|
102926
103101
|
if (typeof finalResult === "undefined") {
|
|
102927
103102
|
const fatalError = lastError ?? /* @__PURE__ */ new Error("Exhausted all fallback models without receiving a result.");
|
|
@@ -103188,7 +103363,8 @@ function createLLMExecutionStep({ models, _internal, messageId: messageIdPassed,
|
|
|
103188
103363
|
let warnings;
|
|
103189
103364
|
let request;
|
|
103190
103365
|
let rawResponse;
|
|
103191
|
-
let activeFallbackModelIndex = inputData
|
|
103366
|
+
let activeFallbackModelIndex = carriedFallbackModelIndex(models, inputData);
|
|
103367
|
+
const triesEarlierEntries = inputData.fallbackModelTriesEarlierEntries === true || resumedInAnotherOrder(models, inputData);
|
|
103192
103368
|
let executedStepModel;
|
|
103193
103369
|
let terminalInputStepFailure;
|
|
103194
103370
|
let materializeFailedAttempt;
|
|
@@ -103200,8 +103376,8 @@ function createLLMExecutionStep({ models, _internal, messageId: messageIdPassed,
|
|
|
103200
103376
|
logger
|
|
103201
103377
|
});
|
|
103202
103378
|
let settleRequest = () => {};
|
|
103203
|
-
const execution = await executeStreamWithFallbackModels(models, logger, activeFallbackModelIndex, throwIfInterrupted)(async (modelConfig, isLastModel) => {
|
|
103204
|
-
activeFallbackModelIndex = models.
|
|
103379
|
+
const execution = await executeStreamWithFallbackModels(models, logger, activeFallbackModelIndex, throwIfInterrupted, triesEarlierEntries)(async (modelConfig, isLastModel) => {
|
|
103380
|
+
activeFallbackModelIndex = models.indexOf(modelConfig);
|
|
103205
103381
|
materializeFailedAttempt = void 0;
|
|
103206
103382
|
settleRequest();
|
|
103207
103383
|
settleRequest = startRunStep(options?.stepOwner ?? options?.abortSignal);
|
|
@@ -104075,7 +104251,7 @@ function createLLMExecutionStep({ models, _internal, messageId: messageIdPassed,
|
|
|
104075
104251
|
nonUser: []
|
|
104076
104252
|
},
|
|
104077
104253
|
processorRetryCount: inputData.processorRetryCount,
|
|
104078
|
-
...
|
|
104254
|
+
...carriedFallbackModel(models, activeFallbackModelIndex, triesEarlierEntries),
|
|
104079
104255
|
...inputData.skipUnavailableAttachments ? { skipUnavailableAttachments: true } : {}
|
|
104080
104256
|
};
|
|
104081
104257
|
if (!aborted) return result;
|
|
@@ -104288,7 +104464,7 @@ function createLLMExecutionStep({ models, _internal, messageId: messageIdPassed,
|
|
|
104288
104464
|
},
|
|
104289
104465
|
messages,
|
|
104290
104466
|
processorRetryCount: nextProcessorRetryCount,
|
|
104291
|
-
...
|
|
104467
|
+
...carriedFallbackModel(models, activeFallbackModelIndex, triesEarlierEntries),
|
|
104292
104468
|
...skipUnavailableAttachments ? { skipUnavailableAttachments } : {}
|
|
104293
104469
|
};
|
|
104294
104470
|
}
|
|
@@ -104470,7 +104646,6 @@ function createLLMExecutionStep({ models, _internal, messageId: messageIdPassed,
|
|
|
104470
104646
|
nonUser: messageList.get.response.aiV5.model()
|
|
104471
104647
|
};
|
|
104472
104648
|
const stepReason = shouldRetry ? "retry" : tripwireTriggered ? "tripwire" : hasErrored ? "error" : finishReason;
|
|
104473
|
-
const nextFallbackModelIndex = shouldContinue ? activeFallbackModelIndex : 0;
|
|
104474
104649
|
cleanupProviderToolSpans(!shouldContinue || shouldRetry);
|
|
104475
104650
|
const nextProcessorRetryCount = shouldRetry ? currentProcessorRetryCount + 1 : 0;
|
|
104476
104651
|
return {
|
|
@@ -104504,7 +104679,7 @@ function createLLMExecutionStep({ models, _internal, messageId: messageIdPassed,
|
|
|
104504
104679
|
messages,
|
|
104505
104680
|
processorRetryCount: nextProcessorRetryCount,
|
|
104506
104681
|
processorRetryFeedback: retryFeedbackText,
|
|
104507
|
-
...
|
|
104682
|
+
...shouldContinue ? carriedFallbackModel(models, activeFallbackModelIndex, triesEarlierEntries) : {}
|
|
104508
104683
|
};
|
|
104509
104684
|
}
|
|
104510
104685
|
});
|
|
@@ -115400,4 +115575,4 @@ function withExecutionFence(step) {
|
|
|
115400
115575
|
}
|
|
115401
115576
|
};
|
|
115402
115577
|
}
|
|
115403
|
-
export { modelConfigSchema as $, spanQueryResponseSchema as $a, createConcurrencyLimiter as $c, ChannelsStorage as $i, ProcessorOutputStreamPhaseSchema as $l, assertKnowledgeCeilingRaised as $n, TokenLimiterProcessor as $o, KnowledgeImporterBindingConflictError as $r, resolveAgentById as $s, KnowledgeLinkRepairUnsupportedError as $t, detachFullStreamOnEnd as A, THREAD_QUERY_DEFAULT_LIMIT as Aa, getStepEntry as Ac, knowledgeLinkRefKey as Ai, validateStepRequestContext as Al, renderBuiltInToolEvent as An, MemoryProcessor as Ao, ScoresInMemory as Ar, EventedWorkflow as As, runDefaultCompletionCheck as At, serializeToolsMetadata as B, SPAN_QUERY_MAX_LIMIT as Ba, createNestedRunParentStatusLookup as Bc, ExperimentsInMemory as Bi, hasDurableExecution as Bl, toChatLogger as Bn, ResponseCache as Bo, notificationSignalAttributes as Br, emitChunkEvent as Bs, KnowledgeRunScopesError as Bt, mergeAgentPersona as C, validateStorageMetadataFilter as Ca, AgentControlEventTypes as Cc, MAX_KNOWLEDGE_PAGE_LINKS as Ci, isSingleStepEntry as Cl, MastraStateAdapter as Cn, buildMessageEmbeddingRows as Co, createEmptyWorkflowSnapshot as Cr, isRetryableOpenAIResponsesStreamError as Cs, formatCompletionFeedback as Ct, prepareForDurableExecution as D, tracePageNodeSchema as Da, isWorkflowStepConflictError as Dc, assertKnowledgeNoteTextWithinBound as Di, runCountDeprecationMessage as Dl, markNewChannelThread as Dn, resolveMaxChunkChars as Do, WorkflowDefinitionsStorage as Dr, createEventedWorkflow as Ds, generateStructuredFinalResult as Dt, normalizeResumeGenerateArgs as E, tracePageIdSchema as Ea, assertWorkflowStepGuard as Ec, MAX_KNOWLEDGE_PIN_LIST_DEPTH as Ei, resolveForeachConcurrency as El, NEW_CHANNEL_THREAD_KEY as En, messageVectorId as Eo, InMemoryWorkflowDefinitionsStorage as Er, cloneWorkflow as Es, generateFinalResult as Et, createDurableToolCallStep as F, threadQueryRequestSchema as Fa, isProcessor$1 as Fc, parseKnowledgePageRef as Fi, getEntryId as Fl, DEFAULT_CHANNEL_TOOLS_SETTINGS as Fn, getStorageSource as Fo, InMemoryNotificationsStorage as Fr, WorkflowEventProcessor as Fs, PINNED_READ_MEMO_KEY as Ft, resolveDurableToolCallConcurrency as G, encodeSpanQueryCursor as Ga, SCORING_PREDICATE_ROOTS as Gc, SchemaValidator as Gi, MessageContentSchema as Gl, WorkingMemory as Gn, formatSkillsCatalog as Go, readNotificationRoutingRequirement as Gr, emitSuspendedEvent as Gs, moveKnowledgePage as Gt, MessagePartSpans as H, SPAN_QUERY_ORDER_FIELDS as Ha, nestedRunRecoveryAction as Hc, DatasetsInMemory as Hi, isDurableAgentLike as Hl, MemoryInputFilter as Hn, WorkspaceInstructionsProcessor as Ho, notificationSummaryContents as Hr, emitFinishEvent as Hs, knowledgeAgentScopes as Ht, createWorkflowInput as I, threadQueryResponseSchema as Ia, mapVariable as Ic, KnowledgeInvalidCursorError as Ii, getEntryWorkflow as Il, channelToolScopeResolver as In, createBackgroundWorkSignalProcessor as Io, NotificationsStorage as Ir, StepExecutor as Is, knowledgeDeliveredPins as It, createBaseIterationStateUpdate as J, resolveSpanQueryCost as Ja, WORKFLOW_RUN_LEASE_TTL_MS as Jc, getSchemaValidator as Ji, ProcessorInputStepPhaseSchema as Jl, getMemoryRunState as Jn, ToolCallFilter as Jo, resolveDeliveryFailureUpdate as Jr, resolveInternalState as Js, updateKnowledgeNote as Jt, buildStepRecord as K, parseSpanQueryRequest as Ka, evaluateScoringPredicate as Kc, assertSupportedPatterns as Ki, MessagePartSchema as Kl, MessageHistory as Kn, ToolSearchProcessor as Ko, MAX_NOTIFICATION_DELIVERY_ATTEMPTS as Kr, diffResponseMessages as Ks, removeKnowledgeNote as Kt, serializeDurableOptions as L, threadQueryRowSchema as La, predicateToCondition as Lc, knowledgePageKeyProblem as Li, assertDrainTimeout as Ll, createChannelToolScope as Ln, CyberRefusalHandler as Lo, dispatchDueNotifications as Lr, computeScheduleDefinitionHash as Ls, buildKnowledgePageTools as Lt, createDurableGoalStep as M, encodeThreadQueryCursor as Ma, Workflow as Mc, knowledgePinDepth as Mi, validateStepStateData as Ml, CONTINUE_RUN_MESSAGE as Mn, filterSystemReminderMessages as Mo, InMemorySchedulesStorage as Mr, cloneWorkflow$1 as Ms, runValidation as Mt, createDurableIsTaskCompleteStep as N, planThreadRowsQuery as Na, cloneStep$1 as Nc, knowledgePositionBetween as Ni, validateStepSuspendData as Nl, formatToolApproval as Nn, isSystemReminderMessage as No, SchedulesStorage as Nr, createStep as Ns, loop as Nt, applyReservedMemoryContextKeys as O, tracePageRequestSchema as Oa, EventedExecutionEngine as Oc, assertKnowledgePageDescriptionWithinBound as Oi, setLongTimeout as Ol, ChatChannelProcessor as On, upsertMessageVectors as Oo, InMemoryToolProviderConnectionsStorage as Or, createWorkflow as Os, runChecks as Ot, createDurableLLMMappingStep as P, threadQueryIdentitySchema as Pa, createStep$1 as Pc, knowledgeScopeReadable as Pi, waitForSuspendedSnapshot as Pl, ChannelSessionRejectedError as Pn, augmentWithInit as Po, normalizeScheduleTarget as Pr, createWorkflow$1 as Ps, validateModelTimeoutSettings as Pt, durableAgenticOutputSchema as Q, spanQueryRequestSchema as Qa, ExecutionEngine as Qc, InMemoryChannelsStorage as Qi, ProcessorOutputStepPhaseSchema as Ql, MAX_KNOWLEDGE_SCOPE_TAGS as Qn, SystemPromptScrubber as Qo, InMemoryKnowledgeStorage as Qr, toolRequiresApproval as Qs, KnowledgeLinkRefreshIncompleteError as Qt, serializeDurableState as R, SPAN_QUERY_MAX_COST_METRICS as Ra, evaluatePredicate as Rc, InMemoryHarness as Ri, waitMs as Rl, createChannelTools as Rn, DEFAULT_RESPONSE_CACHE_TTL_SECONDS as Ro, createNotificationSignal as Rr, createDurableAgentStream as Rs, heldScopes as Rt, MAX_FS_SUBAGENT_DEPTH as S, transformScoreRow as Sa, AGENT_STREAM_TOPIC as Sc, MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS as Si, isEntryFinished as Sl, resolveChannelRenderContext as Sn, MESSAGE_EMBEDDING_CHARS_PER_TOKEN as So, WorkflowsStorage as Sr, isBadRequestError as Ss, formatCheckFeedback as St, Agent as T, readTracePage as Ta, WorkflowStepConflictError as Tc, MAX_KNOWLEDGE_PAGE_LIST_LIMIT as Ti, omitPriorSuspensionFields as Tl, ChannelThreadLinkProcessor as Tn, extractMessageEmbeddingText as To, mergeWorkflowStepResult as Tr, getGoalActivityDurationMs as Ts, formatValidationFeedback as Tt, isSpanChunk as U, buildSpanQueryResponse as Ua, nestedRunStatusOf as Uc, DatasetsStorage as Ui, FilePartSchema as Ul, SemanticRecall as Un, SkillSearchProcessor as Uo, notificationSummarySignalMetadata as Ur, emitStepFinishEvent as Us, knowledgePersonaScopes as Ut, createDurableLLMExecutionStep as V, SPAN_QUERY_MAX_PREVIEW_CHARACTERS as Va, nestedRunParentOf as Vc, ExperimentsStorage as Vi, hasResumableStreams as Vl, BaseProcessor as Vn, buildResponseCacheKey as Vo, notificationSignalMetadata as Vr, emitErrorEvent as Vs, knowledgeRunPrincipals as Vt, createDurableBackgroundTaskCheckStep as W, createSpanQueryPreview as Wa, DefaultExecutionEngine as Wc, DatasetItemIdentityConflictError as Wi, ImagePartSchema as Wl, globalEmbeddingCache as Wn, SkillsProcessor as Wo, summarizeNotifications as Wr, emitStepStartEvent as Ws, addKnowledgeNote as Wt, baseDurableAgenticInputSchema as X, spanQueryIdentityKey as Xa, repeatAfterSettled as Xc, SchemaUpdateValidationError as Xi, ProcessorMessageSchema as Xl, MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH as Xn, CostGuardProcessor as Xo, InMemoryMemory as Xr, resolveRuntimeDependencies as Xs, KnowledgeSemanticIndex as Xt, accumulatedUsageSchema as Y, spanQueryCostSchema as Ya, renewWorkflowLease as Yc, UnsupportedSchemaPatternError as Yi, ProcessorMessageContentSchema as Yl, MockMemory as Yn, RegexFilterProcessor as Yo, resolveNotificationDeliveryDecision as Yr, resolveModel as Ys, upsertKnowledgePage as Yt, baseIterationStateSchema as Z, spanQueryIdentitySchema as Za, runFenceConflictOf as Zc, SchemaValidationError as Zi, ProcessorOutputResultPhaseSchema as Zl, MAX_KNOWLEDGE_RECORD_TEXT_LENGTH as Zn, TokenCostControl as Zo, MemoryStorage as Zr, resolveTool$1 as Zs, embed$2 as Zt, isNotScorable as _, parseDuration as _a, segmentSpanData as _c, KnowledgePageKeyConflictError as _i, getRestartStartIndex as _l, encodeKnowledgeScopeId as _n, ObservabilityStorage as _o, FilesystemDB as _r, isMalformedFunctionCallError as _s, untilIdleHandlesBackgroundTask as _t, matchesRunFence as _u, AGENTIC_EXECUTION_WORKFLOW_ID as a, resolveRetentionTargets as aa, endRunSpansWithError as ac, KnowledgeNotFoundError$1 as ai, createStepFromTool as al, syncKnowledgePageBodyLinks as an, planTraceQuery as ao, expandKnowledgeScope as ar, normalizeMessageHistoryConfig as as, runResumeDurableStreamUntilIdle as at, StepStartPartSchema as au, agentInstructions as b, storageMessageMatchesMetadataFilter as ba, DurableStepIds as bc, MAX_KNOWLEDGE_PAGE_BODY_LINKS as bi, getStepIds as bl, resolveWaitUntil as bn, UniqueViolationError as bo, WorkflowsInMemory as br, FILE_UPLOAD_ERROR_CODES as bs, resolveDeclineReason as bt, runOutsideRunFenceScope as bu, runEvals as c, createStorageErrorId as ca, getRunRegistryEntry as cc, KnowledgeTransactionDeadlineError as ci, abortableSleep as cl, knowledgeReadScopeFor as cn, buildLogRecord as co, knowledgeSemanticDocumentId as cr, ClassifierProcessor as cs, readRunDeadline as ct, isAgentCompatible as cu, validateAndSaveScore as d, ensureDate as da, setRunRegistryEntry as dc, createKnowledgeUlid as di, cleanStepResult as dl, compileKnowledgeScopes as dn, buildUpdateSpanRecord as do, parseKnowledgeNodeCursor as dr, PIIDetector as ds, requestAcknowledgedAbort as dt, RUN_FENCE_CONFLICT_ERROR_ID as du, InMemoryBlobStore as ea, DURABLE_CONTEXT_SEGMENT_KEY as ec, KnowledgeImporterRunStateError as ei, normalizeConcurrency as el, canRepairKnowledgeLinksInBatch as en, spanQueryRowSchema as eo, assertKnowledgeDescriptionWithinBound as er, groupLinkedToolMessages as es, modelListEntrySchema as et, ProcessorStepInputSchema as eu, createClassifierScorer as f, filterByDateRange as fa, takeRunScorerInstances as fc, inspectKnowledgeSchema as fi, createDeprecationProxy as fl, knowledgeMemoryScopes as fn, getObjectOrNull as fo, StoreOperationsInMemory as fr, PromptInjectionDetector as fs, subscribeToAbortRequests as ft, RUN_FENCING_NOT_SUPPORTED_ERROR_ID as fu, filterRun as g, jsonValueEquals as ga, segmentEndedBySuspension as gc, KnowledgePageHasChildrenError as gi, defineStateAccessors as gl, decodeKnowledgeScopeId as gn, ObservabilityInMemory as go, FilesystemStore as gr, defaultStabilityErrorProcessors as gs, getScopeStreamSlot as gt, isRunFenceConflictError as gu, createScorer as h, hasErrorCode as ha, liveSegmentSpan as hc, KnowledgePageDepthError as hi, defineLazyWriter as hl, strongerKnowledgeRole as hn, toEntityType as ho, createGitHubSourceControlProviderFromEnv as hr, STABILITY_ERROR_PROCESSOR_IDS as hs, getRunStreamSlot as ht, currentRunGeneration as hu, agentThreadStreamRuntime as i, executeRetentionPrune as ia, deleteRunRegistryEntry as ic, KnowledgeConflictError as ii, createStepFromClassifier as il, repairKnowledgeLinks as in, planThreadQuery as io, createKnowledgeNodeCursor as ir, isAfterMemoryTokenBoundary as is, runDurableStreamUntilIdle as it, SourcePartSchema as iu, createDurableAgenticWorkflow as j, THREAD_QUERY_MAX_LIMIT as ja, Run as jc, knowledgePagePath as ji, validateStepResumeData as jl, CONTINUE_RUN_ACTION_ID as jn, memoryDefaultOptions as jo, ScoresStorage as jr, cloneStep as js, runStreamCompletionScorers as jt, persistDurableRunInput as k, tracePageResponseSchema as ka, getNestedWorkflow as kc, canonicalKnowledgeName as ki, validateStepInput as kl, CHAT_CHANNEL_RENDER_CONTEXT_KEY as kn, MastraMemory as ko, ToolProviderConnectionsStorage as kr, EventedRun as ks, runCompletionScorers as kt, flushBeforeTraceRead as l, createStoreErrorId as la, globalRunRegistry as lc, KnowledgeUnsupportedCapabilityError as li, applyStateDelta as ll, knowledgeRoleOn as ln, buildMetricRecord as lo, knowledgeSemanticIdempotencyKey as lr, StructuredOutputProcessor as ls, AgentStreamBus as lt, CONTROLLER_RUN_BINDING_KEY as lu, ScorerRunError as m, getSqlType as ma, endFailedSegmentSpans as mc, KnowledgeMoveTooLargeError as mi, createTimeTravelExecutionParams as ml, knowledgeScopeAddress as mn, serializeSpanAttributes as mo, GitHubSourceControlProvider as mr, UnicodeNormalizer as ms, __registerMastraCtor as mt, coverNestedRun as mu, getExecutionClaimScope as n, BackgroundTasksInMemory as na, RunRegistry as nc, KNOWLEDGE_STORAGE_CONTRACT_VERSION as ni, createMappingStep as nl, refreshKnowledgeLinksTo as nn, encodeTraceQueryDeltaCursor as no, assertKnowledgeScopeWithinCeiling as nr, advanceMemoryTokenBoundary as ns, runDurableFinishSideEffects as nt, ProcessorStepSchema as nu, AGENTIC_LOOP_WORKFLOW_ID as o, retentionCutoffMs as oa, getActiveDurableAgentWorkflowExecutions as oc, KnowledgeSchemaResetRequiredError as oi, RESUME_SNAPSHOT_POLL_INTERVAL_MS as ol, updateKnowledgeLinks as on, buildCreateSpanRecord as oo, isKnowledgeScopeVisible as or, BatchPartsProcessor as os, RUN_DEADLINE_KEY as ot, TextPartSchema as ou, MastraScorer as p, getDefaultValue as pa, carrySegmentSpans as pc, parseKnowledgeWikilinks as pi, createRestartExecutionParams as pl, knowledgeRunScopes as pn, getStringOrNull as po, StoreOperations as pr, ModerationProcessor as ps, createRunAbortController as pt, RunFenceConflictError as pu, calculateAccumulatedUsage as q, planSpanQuery as qa, validateScoringPredicate as qc, createValidator as qi, ProcessorInputPhaseSchema as ql, MemoryRunState as qn, AgentsMDInjector as qo, defaultNotificationDeliveryDecision as qr, rebuildRunToolsFromMastra as qs, removeKnowledgePage as qt, AgentThreadLeaseLostError as r, BackgroundTasksStorage as ra, abandonDurableAgentExecutions as rc, KNOWLEDGE_STORAGE_SCHEMA_VERSION as ri, createStepFromAgent$1 as rl, reindexKnowledgeLinks as rn, getTraceQueryDeltaWatermark as ro, canonicalizeKnowledgeScope as rr, getMemoryTokenBoundary as rs, loadRunStoredMessages as rt, ReasoningPartSchema as ru, describeNonSuccessFinishReason as s, runRetentionBatches as sa, getExecutingInstances as sc, KnowledgeStorage as si, RESUME_SNAPSHOT_WAIT_STATUSES as sl, knowledgeAccessGrants as sn, buildFeedbackRecord as so, knowledgeScopeKey as sr, ModelSelectionProcessor as ss, ensureRemoteAbortListener as st, ToolInvocationPartSchema as su, __resetExecutionFencesForTests as t, BlobStore as ta, ExtendedRunRegistry as tc, KnowledgeImportersStorage as ti, runWithConcurrency as tl, knowledgeSubtree as tn, encodeTraceQueryCursor as to, assertKnowledgeRecordTextWithinBound as tr, loadMessageHistory as ts, executeDurableAgentScorers as tt, ProcessorStepOutputSchema as tu, createOnScorerHook as u, createVectorErrorId as ua, isDurableAgentExecutionDetached as uc, assertKnowledgeSchemaCompatible as ui, assertTimeTravelGraphMatchesSnapshot as ul, KnowledgeDeclarationError as un, buildScoreRecord as uo, knowledgeVisibleScopeKeys as ur, LanguageDetector as us, publishAbortRequest as ut, restoredWorkerControllerContexts as uu, notScorable as v, safelyParseJSON as va, DURABLE_STOP_WHEN_ERROR_ID as vc, MAX_KNOWLEDGE_MOVE_PAGES as vi, getResumeLabelsByStepId as vl, buildKnowledgeInstructions as vn, FactoryStorage as vo, InMemoryStore as vr, UnsupportedFileHandler as vs, pruneAgentLoopSnapshot as vt, resolveRunFence as vu, AGENT_RESUME_CLAIM_STALE_MS as w, TracePageError as wa, AgentStreamEventTypes as wc, MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH as wi, omitPriorCompletionFields as wl, REPLY_TOOL_NAME as wn, chunkMessageText as wo, mergeStepResult as wr, PrefillErrorHandler as ws, formatStreamCompletionFeedback as wt, assembleAgentFromFsEntry as x, transformRow as xa, AGENT_CONTROL_TOPIC as xc, MAX_KNOWLEDGE_PAGE_DEPTH as xi, hydrateSerializedStepErrors as xl, defaultTypingStatus as xn, DEFAULT_MESSAGE_EMBEDDING_MAX_CHUNK_CHARS as xo, cloneRunData as xr, StreamErrorRetryProcessor as xs, getServerSideFallbackInfo as xt, setRunFenceContext as xu, agentConfig as y, serializeDate as ya, DurableAgentDefaults as yc, MAX_KNOWLEDGE_NOTE_TOKENS as yi, getSingleStepEntryId as yl, AgentChannels as yn, FactoryStorageDomain as yo, MockStore as yr, FileUploadProcessor as ys, DEFAULT_TOOL_DECLINE_REASON as yt, runFencingNotSupportedError as yu, serializeModelConfig as z, SPAN_QUERY_MAX_CURSOR_BYTES as za, cancelNestedRun as zc, HarnessStorage as zi, workflowTermination as zl, resolveChannelToolsSettings as zn, RESPONSE_CACHE_CONTEXT_KEY as zo, createNotificationSummarySignal as zr, emitAbortEvent as zs, KnowledgeRun as zt };
|
|
115578
|
+
export { modelConfigSchema as $, spanQueryIdentitySchema as $a, runFenceConflictOf as $c, SchemaValidationError as $i, ProcessorOutputResultPhaseSchema as $l, MAX_KNOWLEDGE_SCOPE_TAGS as $n, TokenCostControl as $o, InMemoryKnowledgeStorage as $r, resolveTool$1 as $s, KnowledgeLinkRepairUnsupportedError as $t, detachFullStreamOnEnd as A, tracePageRequestSchema as Aa, EventedExecutionEngine as Ac, canonicalKnowledgeName as Ai, setLongTimeout as Al, CHAT_CHANNEL_RENDER_CONTEXT_KEY as An, upsertMessageVectors as Ao, ToolProviderConnectionsStorage as Ar, createWorkflow as As, runDefaultCompletionCheck as At, serializeToolsMetadata as B, SPAN_QUERY_MAX_COST_METRICS as Ba, evaluatePredicate as Bc, InMemoryHarness as Bi, waitMs as Bl, resolveChannelToolsSettings as Bn, DEFAULT_RESPONSE_CACHE_TTL_SECONDS as Bo, createNotificationSummarySignal as Br, createDurableAgentStream as Bs, KnowledgeRunScopesError as Bt, mergeAgentPersona as C, transformRow as Ca, AGENT_CONTROL_TOPIC as Cc, MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS as Ci, hydrateSerializedStepErrors as Cl, resolveChannelRenderContext as Cn, DEFAULT_MESSAGE_EMBEDDING_MAX_CHUNK_CHARS as Co, WorkflowsStorage as Cr, StreamErrorRetryProcessor as Cs, formatCompletionFeedback as Ct, setRunFenceContext as Cu, prepareForDurableExecution as D, readTracePage as Da, WorkflowStepConflictError as Dc, MAX_KNOWLEDGE_PIN_LIST_DEPTH as Di, omitPriorSuspensionFields as Dl, NEW_CHANNEL_THREAD_KEY as Dn, extractMessageEmbeddingText as Do, InMemoryWorkflowDefinitionsStorage as Dr, getGoalActivityDurationMs as Ds, generateStructuredFinalResult as Dt, normalizeResumeGenerateArgs as E, TracePageError as Ea, AgentStreamEventTypes as Ec, MAX_KNOWLEDGE_PAGE_LIST_LIMIT as Ei, omitPriorCompletionFields as El, ChannelThreadLinkProcessor as En, chunkMessageText as Eo, mergeWorkflowStepResult as Er, PrefillErrorHandler as Es, generateFinalResult as Et, createDurableToolCallStep as F, planThreadRowsQuery as Fa, cloneStep$1 as Fc, knowledgeScopeReadable as Fi, validateStepSuspendData as Fl, ChannelSessionRejectedError as Fn, isSystemReminderMessage as Fo, normalizeScheduleTarget as Fr, createStep as Fs, PINNED_READ_MEMO_KEY as Ft, resolveDurableToolCallConcurrency as G, buildSpanQueryResponse as Ga, nestedRunStatusOf as Gc, DatasetsStorage as Gi, FilePartSchema as Gl, globalEmbeddingCache as Gn, SkillSearchProcessor as Go, summarizeNotifications as Gr, emitStepFinishEvent as Gs, moveKnowledgePage as Gt, MessagePartSpans as H, SPAN_QUERY_MAX_LIMIT as Ha, createNestedRunParentStatusLookup as Hc, ExperimentsInMemory as Hi, hasDurableExecution as Hl, BaseProcessor as Hn, ResponseCache as Ho, notificationSignalMetadata as Hr, emitChunkEvent as Hs, knowledgeAgentScopes as Ht, createWorkflowInput as I, threadQueryIdentitySchema as Ia, createStep$1 as Ic, parseKnowledgePageRef as Ii, waitForSuspendedSnapshot as Il, DEFAULT_CHANNEL_TOOLS_SETTINGS as In, augmentWithInit as Io, InMemoryNotificationsStorage as Ir, createWorkflow$1 as Is, knowledgeDeliveredPins as It, createBaseIterationStateUpdate as J, parseSpanQueryRequest as Ja, evaluateScoringPredicate as Jc, assertSupportedPatterns as Ji, MessagePartSchema as Jl, MemoryRunState as Jn, ToolSearchProcessor as Jo, defaultNotificationDeliveryDecision as Jr, diffResponseMessages as Js, updateKnowledgeNote as Jt, buildStepRecord as K, createSpanQueryPreview as Ka, DefaultExecutionEngine as Kc, DatasetItemIdentityConflictError as Ki, ImagePartSchema as Kl, WorkingMemory as Kn, SkillsProcessor as Ko, readNotificationRoutingRequirement as Kr, emitStepStartEvent as Ks, removeKnowledgeNote as Kt, serializeDurableOptions as L, threadQueryRequestSchema as La, isProcessor$1 as Lc, KnowledgeInvalidCursorError as Li, getEntryId as Ll, channelToolScopeResolver as Ln, getStorageSource as Lo, NotificationsStorage as Lr, WorkflowEventProcessor as Ls, buildKnowledgePageTools as Lt, createDurableGoalStep as M, THREAD_QUERY_DEFAULT_LIMIT as Ma, getStepEntry as Mc, knowledgePagePath as Mi, validateStepRequestContext as Ml, CONTINUE_RUN_ACTION_ID as Mn, MemoryProcessor as Mo, ScoresStorage as Mr, EventedWorkflow as Ms, runValidation as Mt, createDurableIsTaskCompleteStep as N, THREAD_QUERY_MAX_LIMIT as Na, Run as Nc, knowledgePinDepth as Ni, validateStepResumeData as Nl, CONTINUE_RUN_MESSAGE as Nn, memoryDefaultOptions as No, InMemorySchedulesStorage as Nr, cloneStep as Ns, loop as Nt, applyReservedMemoryContextKeys as O, tracePageIdSchema as Oa, assertWorkflowStepGuard as Oc, assertKnowledgeNoteTextWithinBound as Oi, resolveForeachConcurrency as Ol, markNewChannelThread as On, messageVectorId as Oo, WorkflowDefinitionsStorage as Or, cloneWorkflow as Os, runChecks as Ot, createDurableLLMMappingStep as P, encodeThreadQueryCursor as Pa, Workflow as Pc, knowledgePositionBetween as Pi, validateStepStateData as Pl, formatToolApproval as Pn, filterSystemReminderMessages as Po, SchedulesStorage as Pr, cloneWorkflow$1 as Ps, validateModelTimeoutSettings as Pt, durableAgenticOutputSchema as Q, spanQueryIdentityKey as Qa, repeatAfterSettled as Qc, SchemaUpdateValidationError as Qi, ProcessorMessageSchema as Ql, MAX_KNOWLEDGE_RECORD_TEXT_LENGTH as Qn, CostGuardProcessor as Qo, MemoryStorage as Qr, resolveRuntimeDependencies as Qs, KnowledgeLinkRefreshIncompleteError as Qt, serializeDurableState as R, threadQueryResponseSchema as Ra, mapVariable as Rc, KnowledgeInvalidSearchError as Ri, getEntryWorkflow as Rl, createChannelToolScope as Rn, createBackgroundWorkSignalProcessor as Ro, dispatchDueNotifications as Rr, StepExecutor as Rs, heldScopes as Rt, MAX_FS_SUBAGENT_DEPTH as S, storageMessageMatchesMetadataFilter as Sa, DurableStepIds as Sc, MAX_KNOWLEDGE_PAGE_DEPTH as Si, getStepIds as Sl, defaultTypingStatus as Sn, UniqueViolationError as So, cloneRunData as Sr, FILE_UPLOAD_ERROR_CODES as Ss, formatCheckFeedback as St, runOutsideRunFenceScope as Su, Agent as T, validateStorageMetadataFilter as Ta, AgentControlEventTypes as Tc, MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH as Ti, isSingleStepEntry as Tl, REPLY_TOOL_NAME as Tn, buildMessageEmbeddingRows as To, mergeStepResult as Tr, isRetryableOpenAIResponsesStreamError as Ts, formatValidationFeedback as Tt, isSpanChunk as U, SPAN_QUERY_MAX_PREVIEW_CHARACTERS as Ua, nestedRunParentOf as Uc, ExperimentsStorage as Ui, hasResumableStreams as Ul, MemoryInputFilter as Un, buildResponseCacheKey as Uo, notificationSummaryContents as Ur, emitErrorEvent as Us, knowledgePersonaScopes as Ut, createDurableLLMExecutionStep as V, SPAN_QUERY_MAX_CURSOR_BYTES as Va, cancelNestedRun as Vc, HarnessStorage as Vi, workflowTermination as Vl, toChatLogger as Vn, RESPONSE_CACHE_CONTEXT_KEY as Vo, notificationSignalAttributes as Vr, emitAbortEvent as Vs, knowledgeRunPrincipals as Vt, createDurableBackgroundTaskCheckStep as W, SPAN_QUERY_ORDER_FIELDS as Wa, nestedRunRecoveryAction as Wc, DatasetsInMemory as Wi, isDurableAgentLike as Wl, SemanticRecall as Wn, WorkspaceInstructionsProcessor as Wo, notificationSummarySignalMetadata as Wr, emitFinishEvent as Ws, addKnowledgeNote as Wt, baseDurableAgenticInputSchema as X, resolveSpanQueryCost as Xa, WORKFLOW_RUN_LEASE_TTL_MS as Xc, getSchemaValidator as Xi, ProcessorInputStepPhaseSchema as Xl, MockMemory as Xn, ToolCallFilter as Xo, resolveNotificationDeliveryDecision as Xr, resolveInternalState as Xs, KnowledgeSemanticIndex as Xt, accumulatedUsageSchema as Y, planSpanQuery as Ya, validateScoringPredicate as Yc, createValidator as Yi, ProcessorInputPhaseSchema as Yl, getMemoryRunState as Yn, AgentsMDInjector as Yo, resolveDeliveryFailureUpdate as Yr, rebuildRunToolsFromMastra as Ys, upsertKnowledgePage as Yt, baseIterationStateSchema as Z, spanQueryCostSchema as Za, renewWorkflowLease as Zc, UnsupportedSchemaPatternError as Zi, ProcessorMessageContentSchema as Zl, MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH as Zn, RegexFilterProcessor as Zo, InMemoryMemory as Zr, resolveModel as Zs, embed$2 as Zt, isNotScorable as _, hasErrorCode as _a, liveSegmentSpan as _c, KnowledgePageHasChildrenError as _i, defineLazyWriter as _l, decodeKnowledgeScopeId as _n, toEntityType as _o, FilesystemStore as _r, STABILITY_ERROR_PROCESSOR_IDS as _s, untilIdleHandlesBackgroundTask as _t, currentRunGeneration as _u, AGENTIC_EXECUTION_WORKFLOW_ID as a, BackgroundTasksStorage as aa, abandonDurableAgentExecutions as ac, KnowledgeConflictError as ai, createStepFromAgent$1 as al, repairKnowledgeLinks as an, getTraceQueryDeltaWatermark as ao, createKnowledgeNodeCursor as ar, getMemoryTokenBoundary as as, runResumeDurableStreamUntilIdle as at, ReasoningPartSchema as au, agentInstructions as b, safelyParseJSON as ba, DURABLE_STOP_WHEN_ERROR_ID as bc, MAX_KNOWLEDGE_NOTE_TOKENS as bi, getResumeLabelsByStepId as bl, AgentChannels as bn, FactoryStorage as bo, MockStore as br, UnsupportedFileHandler as bs, resolveDeclineReason as bt, resolveRunFence as bu, runEvals as c, retentionCutoffMs as ca, getActiveDurableAgentWorkflowExecutions as cc, KnowledgeStorage as ci, RESUME_SNAPSHOT_POLL_INTERVAL_MS as cl, knowledgeAccessGrants as cn, buildCreateSpanRecord as co, knowledgeScopeKey as cr, BatchPartsProcessor as cs, readRunDeadline as ct, TextPartSchema as cu, validateAndSaveScore as d, createStoreErrorId as da, globalRunRegistry as dc, assertKnowledgeSchemaCompatible as di, applyStateDelta as dl, KnowledgeDeclarationError as dn, buildMetricRecord as do, knowledgeVisibleScopeKeys as dr, StructuredOutputProcessor as ds, requestAcknowledgedAbort as dt, CONTROLLER_RUN_BINDING_KEY as du, InMemoryChannelsStorage as ea, toolRequiresApproval as ec, KnowledgeImporterBindingConflictError as ei, ExecutionEngine as el, MAX_KNOWLEDGE_LINK_REPAIR_SOURCES as en, spanQueryRequestSchema as eo, assertKnowledgeCeilingRaised as er, SystemPromptScrubber as es, modelListEntrySchema as et, ProcessorOutputStepPhaseSchema as eu, createClassifierScorer as f, createVectorErrorId as fa, isDurableAgentExecutionDetached as fc, createKnowledgeUlid as fi, assertTimeTravelGraphMatchesSnapshot as fl, compileKnowledgeScopes as fn, buildScoreRecord as fo, parseKnowledgeNodeCursor as fr, LanguageDetector as fs, subscribeToAbortRequests as ft, restoredWorkerControllerContexts as fu, filterRun as g, getSqlType as ga, endFailedSegmentSpans as gc, KnowledgePageDepthError as gi, createTimeTravelExecutionParams as gl, strongerKnowledgeRole as gn, serializeSpanAttributes as go, createGitHubSourceControlProviderFromEnv as gr, UnicodeNormalizer as gs, getScopeStreamSlot as gt, coverNestedRun as gu, createScorer as h, getDefaultValue as ha, carrySegmentSpans as hc, KnowledgeMoveTooLargeError as hi, createRestartExecutionParams as hl, knowledgeScopeAddress as hn, getStringOrNull as ho, GitHubSourceControlProvider as hr, ModerationProcessor as hs, getRunStreamSlot as ht, RunFenceConflictError as hu, agentThreadStreamRuntime as i, BackgroundTasksInMemory as ia, RunRegistry as ic, KNOWLEDGE_STORAGE_SCHEMA_VERSION as ii, createMappingStep as il, reindexKnowledgeLinks as in, encodeTraceQueryDeltaCursor as io, canonicalizeKnowledgeScope as ir, advanceMemoryTokenBoundary as is, runDurableStreamUntilIdle as it, ProcessorStepSchema as iu, createDurableAgenticWorkflow as j, tracePageResponseSchema as ja, getNestedWorkflow as jc, knowledgeLinkRefKey as ji, validateStepInput as jl, renderBuiltInToolEvent as jn, MastraMemory as jo, ScoresInMemory as jr, EventedRun as js, runStreamCompletionScorers as jt, persistDurableRunInput as k, tracePageNodeSchema as ka, isWorkflowStepConflictError as kc, assertKnowledgePageDescriptionWithinBound as ki, runCountDeprecationMessage as kl, ChatChannelProcessor as kn, resolveMaxChunkChars as ko, InMemoryToolProviderConnectionsStorage as kr, createEventedWorkflow as ks, runCompletionScorers as kt, flushBeforeTraceRead as l, runRetentionBatches as la, getExecutingInstances as lc, KnowledgeTransactionDeadlineError as li, RESUME_SNAPSHOT_WAIT_STATUSES as ll, knowledgeReadScopeFor as ln, buildFeedbackRecord as lo, knowledgeSemanticDocumentId as lr, ModelSelectionProcessor as ls, AgentStreamBus as lt, ToolInvocationPartSchema as lu, ScorerRunError as m, filterByDateRange as ma, takeRunScorerInstances as mc, parseKnowledgeWikilinks as mi, createDeprecationProxy as ml, knowledgeRunScopes as mn, getObjectOrNull as mo, StoreOperations as mr, PromptInjectionDetector as ms, __registerMastraCtor as mt, RUN_FENCING_NOT_SUPPORTED_ERROR_ID as mu, getExecutionClaimScope as n, InMemoryBlobStore as na, DURABLE_CONTEXT_SEGMENT_KEY as nc, KnowledgeImportersStorage as ni, normalizeConcurrency as nl, knowledgeSubtree as nn, spanQueryRowSchema as no, assertKnowledgeRecordTextWithinBound as nr, groupLinkedToolMessages as ns, runDurableFinishSideEffects as nt, ProcessorStepInputSchema as nu, AGENTIC_LOOP_WORKFLOW_ID as o, executeRetentionPrune as oa, deleteRunRegistryEntry as oc, KnowledgeNotFoundError$1 as oi, createStepFromClassifier as ol, syncKnowledgePageBodyLinks as on, planThreadQuery as oo, expandKnowledgeScope as or, isAfterMemoryTokenBoundary as os, RUN_DEADLINE_KEY as ot, SourcePartSchema as ou, MastraScorer as p, ensureDate as pa, setRunRegistryEntry as pc, inspectKnowledgeSchema as pi, cleanStepResult as pl, knowledgeMemoryScopes as pn, buildUpdateSpanRecord as po, StoreOperationsInMemory as pr, PIIDetector as ps, createRunAbortController as pt, RUN_FENCE_CONFLICT_ERROR_ID as pu, calculateAccumulatedUsage as q, encodeSpanQueryCursor as qa, SCORING_PREDICATE_ROOTS as qc, SchemaValidator as qi, MessageContentSchema as ql, MessageHistory as qn, formatSkillsCatalog as qo, MAX_NOTIFICATION_DELIVERY_ATTEMPTS as qr, emitSuspendedEvent as qs, removeKnowledgePage as qt, AgentThreadLeaseLostError as r, BlobStore as ra, ExtendedRunRegistry as rc, KNOWLEDGE_STORAGE_CONTRACT_VERSION as ri, runWithConcurrency as rl, refreshKnowledgeLinksTo as rn, encodeTraceQueryCursor as ro, assertKnowledgeScopeWithinCeiling as rr, loadMessageHistory as rs, loadRunStoredMessages as rt, ProcessorStepOutputSchema as ru, describeNonSuccessFinishReason as s, resolveRetentionTargets as sa, endRunSpansWithError as sc, KnowledgeSchemaResetRequiredError as si, createStepFromTool as sl, updateKnowledgeLinks as sn, planTraceQuery as so, isKnowledgeScopeVisible as sr, normalizeMessageHistoryConfig as ss, ensureRemoteAbortListener as st, StepStartPartSchema as su, __resetExecutionFencesForTests as t, ChannelsStorage as ta, resolveAgentById as tc, KnowledgeImporterRunStateError as ti, createConcurrencyLimiter as tl, canRepairKnowledgeLinksInBatch as tn, spanQueryResponseSchema as to, assertKnowledgeDescriptionWithinBound as tr, TokenLimiterProcessor as ts, executeDurableAgentScorers as tt, ProcessorOutputStreamPhaseSchema as tu, createOnScorerHook as u, createStorageErrorId as ua, getRunRegistryEntry as uc, KnowledgeUnsupportedCapabilityError as ui, abortableSleep as ul, knowledgeRoleOn as un, buildLogRecord as uo, knowledgeSemanticIdempotencyKey as ur, ClassifierProcessor as us, publishAbortRequest as ut, isAgentCompatible as uu, notScorable as v, jsonValueEquals as va, segmentEndedBySuspension as vc, KnowledgePageKeyConflictError as vi, defineStateAccessors as vl, encodeKnowledgeScopeId as vn, ObservabilityInMemory as vo, FilesystemDB as vr, defaultStabilityErrorProcessors as vs, pruneAgentLoopSnapshot as vt, isRunFenceConflictError as vu, AGENT_RESUME_CLAIM_STALE_MS as w, transformScoreRow as wa, AGENT_STREAM_TOPIC as wc, MAX_KNOWLEDGE_PAGE_LINKS as wi, isEntryFinished as wl, MastraStateAdapter as wn, MESSAGE_EMBEDDING_CHARS_PER_TOKEN as wo, createEmptyWorkflowSnapshot as wr, isBadRequestError as ws, formatStreamCompletionFeedback as wt, assembleAgentFromFsEntry as x, serializeDate as xa, DurableAgentDefaults as xc, MAX_KNOWLEDGE_PAGE_BODY_LINKS as xi, getSingleStepEntryId as xl, resolveWaitUntil as xn, FactoryStorageDomain as xo, WorkflowsInMemory as xr, FileUploadProcessor as xs, getServerSideFallbackInfo as xt, runFencingNotSupportedError as xu, agentConfig as y, parseDuration as ya, segmentSpanData as yc, MAX_KNOWLEDGE_MOVE_PAGES as yi, getRestartStartIndex as yl, buildKnowledgeInstructions as yn, ObservabilityStorage as yo, InMemoryStore as yr, isMalformedFunctionCallError as ys, DEFAULT_TOOL_DECLINE_REASON as yt, matchesRunFence as yu, serializeModelConfig as z, threadQueryRowSchema as za, predicateToCondition as zc, knowledgePageKeyProblem as zi, assertDrainTimeout as zl, createChannelTools as zn, CyberRefusalHandler as zo, createNotificationSignal as zr, computeScheduleDefinitionHash as zs, KnowledgeRun as zt };
|