@mastra/core 1.87.0-alpha.7 → 1.87.0-alpha.8
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/agent/agent.d.ts +3 -1
- package/dist/agent/durable/index.cjs +1 -1
- package/dist/agent/durable/index.js +1 -1
- package/dist/agent/index.cjs +3 -2
- package/dist/agent/index.d.ts +2 -0
- package/dist/agent/index.js +3 -3
- package/dist/agent/merge-persona.d.ts +15 -0
- package/dist/agent-builder/ee/index.cjs +1 -1
- package/dist/agent-builder/ee/index.js +1 -1
- package/dist/agent-controller/index.cjs +2 -2
- package/dist/agent-controller/index.js +2 -2
- package/dist/{agent-controller-GM-2_7C2.js → agent-controller-C4zDemm6.js} +7 -7
- package/dist/{agent-controller-QGBVBDRi.cjs → agent-controller-CrEpnHiS.cjs} +7 -7
- package/dist/background-tasks/index.cjs +1 -1
- package/dist/background-tasks/index.js +1 -1
- package/dist/{background-tasks-C-3AqSKL.cjs → background-tasks-Co3gtkk9.cjs} +1 -1
- package/dist/{background-tasks-lHCVpHbm.js → background-tasks-DKY9-67c.js} +1 -1
- package/dist/browser/index.cjs +2 -2
- package/dist/browser/index.js +2 -2
- package/dist/{builder-mGGr3IhH.cjs → builder-DSyz2DUR.cjs} +2 -2
- package/dist/{builder-C9UYOrxv.js → builder-ntKskSX0.js} +2 -2
- package/dist/capabilities/302ai.json +200 -200
- package/dist/capabilities/abliteratedllm.json +35 -35
- package/dist/capabilities/abliteration-ai.json +6 -6
- package/dist/capabilities/above.json +19 -19
- package/dist/capabilities/adaption.json +16 -16
- package/dist/capabilities/adzuki.json +28 -28
- package/dist/capabilities/agentrouter.json +6 -6
- package/dist/capabilities/agnes.json +2 -2
- package/dist/capabilities/ai-router.json +7 -7
- package/dist/capabilities/aiand.json +21 -21
- package/dist/capabilities/aigrow.json +14 -14
- package/dist/capabilities/aimlapi.json +155 -155
- package/dist/capabilities/aixy.json +21 -21
- package/dist/capabilities/aki-io.json +14 -14
- package/dist/capabilities/alibaba-cn.json +103 -97
- 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 +49 -49
- package/dist/capabilities/alibaba-token-plan.json +49 -49
- package/dist/capabilities/alibaba.json +74 -74
- package/dist/capabilities/ambient.json +13 -13
- package/dist/capabilities/amd.json +12 -12
- package/dist/capabilities/anthropic.json +46 -46
- package/dist/capabilities/anyapi.json +18 -18
- package/dist/capabilities/apiko.json +4 -4
- package/dist/capabilities/arcee.json +10 -10
- package/dist/capabilities/augure.json +8 -8
- package/dist/capabilities/auriko.json +22 -22
- package/dist/capabilities/bailing.json +4 -4
- package/dist/capabilities/baseten.json +33 -33
- package/dist/capabilities/bee.json +5 -5
- package/dist/capabilities/berget.json +5 -5
- package/dist/capabilities/bothub.json +15 -15
- package/dist/capabilities/boundless.json +40 -40
- package/dist/capabilities/bumo.json +46 -46
- package/dist/capabilities/byteplus.json +28 -28
- package/dist/capabilities/cheapaimodel.json +7 -7
- package/dist/capabilities/cheapest-token.json +24 -24
- package/dist/capabilities/chutes.json +10 -10
- package/dist/capabilities/cline-pass.json +30 -30
- package/dist/capabilities/cloudcode.json +6 -6
- package/dist/capabilities/cloudferro-sherlock.json +4 -4
- package/dist/capabilities/cloudflare-workers-ai.json +13 -13
- package/dist/capabilities/commandcode.json +132 -132
- package/dist/capabilities/concentrate.json +279 -279
- package/dist/capabilities/cortecs.json +107 -107
- package/dist/capabilities/crossmodel.json +183 -183
- package/dist/capabilities/crusoe.json +10 -10
- package/dist/capabilities/daoxe.json +9 -9
- package/dist/capabilities/databricks.json +128 -128
- package/dist/capabilities/deepinfra.json +93 -93
- package/dist/capabilities/deepseek.json +2 -2
- package/dist/capabilities/digitalocean.json +114 -114
- package/dist/capabilities/dothoosh.json +30 -30
- package/dist/capabilities/doubleword.json +25 -25
- package/dist/capabilities/edenai.json +284 -284
- package/dist/capabilities/empiriolabs.json +170 -170
- package/dist/capabilities/engy.json +19 -19
- package/dist/capabilities/entrim.json +2 -2
- package/dist/capabilities/evroc.json +17 -17
- package/dist/capabilities/ezkielyna.json +8 -8
- package/dist/capabilities/fastrouter.json +76 -76
- package/dist/capabilities/fireworks-ai.json +86 -86
- package/dist/capabilities/freemodel.json +24 -24
- package/dist/capabilities/friendli.json +7 -7
- package/dist/capabilities/frogbot.json +101 -101
- package/dist/capabilities/gisoo.json +16 -16
- package/dist/capabilities/gmicloud.json +16 -16
- package/dist/capabilities/google.json +57 -57
- package/dist/capabilities/graphn.json +10 -10
- package/dist/capabilities/greenpt.json +33 -33
- package/dist/capabilities/groq.json +9 -9
- package/dist/capabilities/helicone.json +76 -76
- package/dist/capabilities/hostinger-router.json +14 -14
- package/dist/capabilities/hpc-ai.json +11 -11
- package/dist/capabilities/huawei-maas.json +11 -11
- package/dist/capabilities/hubris.json +35 -35
- package/dist/capabilities/huggingface.json +67 -171
- package/dist/capabilities/hyper.json +21 -21
- package/dist/capabilities/impossibl.json +133 -133
- package/dist/capabilities/inception.json +3 -3
- package/dist/capabilities/inceptron.json +6 -6
- package/dist/capabilities/inco.json +4 -4
- package/dist/capabilities/infer.json +12 -12
- package/dist/capabilities/inferall.json +9 -9
- package/dist/capabilities/inference-coop.json +9 -9
- package/dist/capabilities/inferenceapis.json +16 -16
- package/dist/capabilities/inferris.json +2 -2
- package/dist/capabilities/infersia.json +14 -14
- package/dist/capabilities/inferx.json +2 -2
- package/dist/capabilities/infomaniak.json +4 -4
- package/dist/capabilities/io-net.json +5 -5
- package/dist/capabilities/iteracompute.json +48 -48
- package/dist/capabilities/jad-ai.json +2 -2
- package/dist/capabilities/jalapeno.json +12 -12
- package/dist/capabilities/jiekou.json +59 -59
- package/dist/capabilities/jzstoken.json +51 -51
- package/dist/capabilities/keln.json +25 -25
- package/dist/capabilities/kenari.json +121 -121
- package/dist/capabilities/kilo.json +620 -620
- package/dist/capabilities/kimi-code-plan-cn.json +9 -9
- package/dist/capabilities/kimi-code-plan-global.json +9 -9
- package/dist/capabilities/kitani.json +6 -6
- package/dist/capabilities/klavo.json +9 -9
- package/dist/capabilities/korouter.json +24 -24
- package/dist/capabilities/kunavo.json +10 -10
- package/dist/capabilities/liquid.json +11 -11
- package/dist/capabilities/lithosai.json +3 -3
- package/dist/capabilities/llmgateway-providers.json +924 -924
- package/dist/capabilities/llmgateway.json +335 -335
- package/dist/capabilities/llmtr.json +33 -33
- package/dist/capabilities/logits.json +2 -2
- package/dist/capabilities/lowrouter.json +51 -51
- package/dist/capabilities/lyceum.json +9 -9
- package/dist/capabilities/melious.json +16 -16
- package/dist/capabilities/merge-gateway.json +241 -241
- package/dist/capabilities/meta.json +12 -12
- 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 -22
- package/dist/capabilities/mixlayer.json +5 -5
- package/dist/capabilities/modal.json +10 -10
- package/dist/capabilities/model-oracle-ai.json +24 -24
- package/dist/capabilities/modelis.json +21 -21
- package/dist/capabilities/modelscope.json +2 -2
- package/dist/capabilities/modular.json +5 -5
- package/dist/capabilities/moneo.json +14 -14
- package/dist/capabilities/moonshotai-cn.json +6 -6
- package/dist/capabilities/moonshotai.json +6 -6
- package/dist/capabilities/morph.json +15 -15
- package/dist/capabilities/munito-eu.json +4 -4
- package/dist/capabilities/munito.json +6 -6
- package/dist/capabilities/nan.json +23 -23
- package/dist/capabilities/nano-gpt.json +578 -585
- package/dist/capabilities/nearai.json +104 -104
- package/dist/capabilities/nebius.json +30 -30
- package/dist/capabilities/neon.json +133 -133
- package/dist/capabilities/neuralwatt.json +40 -40
- package/dist/capabilities/nokeep.json +5 -5
- package/dist/capabilities/novita-ai.json +122 -122
- package/dist/capabilities/nvidia.json +21 -21
- package/dist/capabilities/oathbreaker.json +2 -2
- package/dist/capabilities/obscurify.json +26 -26
- package/dist/capabilities/oci.json +8 -8
- package/dist/capabilities/ofox.json +396 -396
- package/dist/capabilities/ollama-cloud.json +54 -54
- package/dist/capabilities/openai.json +59 -59
- package/dist/capabilities/opencode-go.json +83 -83
- package/dist/capabilities/openreason.json +5 -5
- package/dist/capabilities/openrouter.json +531 -531
- package/dist/capabilities/opper.json +28 -28
- package/dist/capabilities/orcarouter.json +253 -253
- package/dist/capabilities/outerlabs.json +33 -33
- package/dist/capabilities/ovhcloud.json +21 -21
- package/dist/capabilities/pareto.json +5 -5
- package/dist/capabilities/pendra.json +4 -4
- package/dist/capabilities/perplexity-agent.json +62 -62
- package/dist/capabilities/phala.json +23 -23
- package/dist/capabilities/pioneer.json +33 -33
- package/dist/capabilities/poe.json +131 -131
- package/dist/capabilities/poolside.json +3 -3
- package/dist/capabilities/powerspring.json +6 -6
- package/dist/capabilities/primalabs.json +10 -10
- package/dist/capabilities/prime.json +114 -114
- package/dist/capabilities/privatemode-ai.json +12 -12
- package/dist/capabilities/proxystacks.json +2 -2
- package/dist/capabilities/qiniu-ai.json +15 -15
- package/dist/capabilities/refuseless.json +6 -6
- package/dist/capabilities/requesty.json +372 -168
- package/dist/capabilities/ruapi.json +19 -19
- package/dist/capabilities/runcrate.json +12 -12
- package/dist/capabilities/runinfra.json +10 -10
- package/dist/capabilities/sakana.json +7 -7
- package/dist/capabilities/sambanova.json +6 -6
- package/dist/capabilities/sandbase.json +27 -27
- package/dist/capabilities/sarvam.json +9 -9
- package/dist/capabilities/scaleway.json +16 -16
- package/dist/capabilities/scnet-token-plan.json +7 -7
- package/dist/capabilities/scx-ai.json +34 -34
- package/dist/capabilities/sensenova.json +12 -12
- package/dist/capabilities/siliconflow-cn.json +49 -49
- package/dist/capabilities/siliconflow.json +63 -63
- package/dist/capabilities/snowflake-cortex.json +21 -21
- package/dist/capabilities/sokkan.json +10 -10
- package/dist/capabilities/sparrowcodes.json +18 -18
- package/dist/capabilities/standardcompute.json +99 -99
- package/dist/capabilities/steadyrouter.json +39 -39
- package/dist/capabilities/stepfun-ai-step-plan.json +6 -6
- package/dist/capabilities/stepfun-ai.json +6 -6
- package/dist/capabilities/stepfun-step-plan.json +6 -6
- package/dist/capabilities/stepfun.json +6 -6
- package/dist/capabilities/stepping-stone.json +20 -20
- package/dist/capabilities/superbot-gg.json +4 -4
- package/dist/capabilities/synthetic.json +9 -9
- package/dist/capabilities/synthorai.json +23 -23
- package/dist/capabilities/teamorouter.json +18 -18
- package/dist/capabilities/teapot-router.json +14 -14
- package/dist/capabilities/tencent-token-plan-intl.json +21 -21
- package/dist/capabilities/tencent-token-plan.json +39 -39
- package/dist/capabilities/tencent-tokenhub.json +47 -47
- package/dist/capabilities/tensorx.json +32 -32
- package/dist/capabilities/tenstorrent.json +6 -6
- package/dist/capabilities/the-grid-ai.json +33 -33
- package/dist/capabilities/thinkingmachines.json +34 -34
- package/dist/capabilities/tinfoil.json +11 -11
- package/dist/capabilities/togetherai.json +37 -37
- package/dist/capabilities/tokengo.json +20 -20
- package/dist/capabilities/tokenify.json +8 -8
- package/dist/capabilities/trustedrouter.json +7 -7
- package/dist/capabilities/trustedtokens.json +17 -17
- package/dist/capabilities/umans-ai-coding-plan.json +18 -18
- package/dist/capabilities/umans-ai.json +15 -15
- package/dist/capabilities/uncensuredai.json +2 -2
- package/dist/capabilities/unrestricted.json +8 -8
- package/dist/capabilities/uplinkswitch.json +20 -20
- package/dist/capabilities/upstage.json +4 -4
- package/dist/capabilities/vancine.json +16 -16
- package/dist/capabilities/vercel.json +554 -554
- package/dist/capabilities/vivgrid.json +77 -77
- package/dist/capabilities/volcengine-coding-plan.json +28 -28
- package/dist/capabilities/volcengine.json +31 -30
- package/dist/capabilities/vultr.json +32 -32
- package/dist/capabilities/wafer.ai.json +18 -18
- package/dist/capabilities/wallaby.json +4 -4
- package/dist/capabilities/wally.json +12 -12
- package/dist/capabilities/wandb.json +17 -17
- package/dist/capabilities/watt.json +24 -24
- package/dist/capabilities/xai.json +6 -6
- package/dist/capabilities/xiaomi.json +2 -2
- package/dist/capabilities/xpersona.json +13 -13
- package/dist/capabilities/xxapi.json +29 -29
- package/dist/capabilities/zai-coding-plan.json +16 -16
- package/dist/capabilities/zai.json +30 -30
- package/dist/capabilities/zenifra.json +27 -27
- package/dist/capabilities/zenmux.json +200 -200
- package/dist/capabilities/zerogpu.json +10 -10
- package/dist/capabilities/zhipuai-coding-plan.json +7 -7
- package/dist/capabilities/zhipuai.json +29 -29
- package/dist/capabilities/zro.json +7 -7
- package/dist/channels/index.cjs +2 -2
- package/dist/channels/index.js +2 -2
- package/dist/{channels-dBz-1Oy7.cjs → channels-CO1XGZll.cjs} +1 -1
- package/dist/{channels-CyJ0PpSg.js → channels-EtP7uAxI.js} +1 -1
- package/dist/coding-agent/index.cjs +2 -2
- package/dist/coding-agent/index.js +2 -2
- 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 +523 -508
- package/dist/docs/references/docs-agents-code-mode.md +20 -0
- package/dist/docs/references/docs-knowledge-agents-and-tools.md +2 -0
- package/dist/docs/references/reference-tools-create-code-mode.md +22 -0
- package/dist/evals/index.cjs +1 -1
- package/dist/evals/index.js +1 -1
- package/dist/evals/scoreTraces/index.cjs +1 -1
- package/dist/evals/scoreTraces/index.js +1 -1
- package/dist/harness/index.cjs +2 -2
- package/dist/harness/index.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/knowledge/agent-scopes.d.ts +17 -0
- package/dist/knowledge/declarations.d.ts +2 -0
- package/dist/knowledge/held-scopes-state-processor.d.ts +50 -0
- package/dist/knowledge/importers/types.d.ts +2 -0
- package/dist/knowledge/index.cjs +65 -15
- package/dist/knowledge/index.d.ts +6 -0
- package/dist/knowledge/index.js +64 -16
- package/dist/knowledge/page-tools.d.ts +14 -0
- package/dist/knowledge/run.d.ts +1 -0
- package/dist/llm/index.cjs +3 -3
- package/dist/llm/index.js +3 -3
- package/dist/llm/model/provider-types.generated.d.ts +7423 -7430
- package/dist/{llm-BiSuGioB.cjs → llm-BFX_NqOg.cjs} +2 -2
- package/dist/{llm-Du8yTHDN.js → llm-CCrVS2x2.js} +2 -2
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +2 -2
- package/dist/{manager-CiKAT1GP.js → manager-UMKLXQfC.js} +2 -2
- package/dist/{manager-Bd8By72w.cjs → manager-thZrFty9.cjs} +2 -2
- package/dist/mastra/index.cjs +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/{mastra-GjJdwKF7.js → mastra-BIFCuq8a.js} +16 -16
- package/dist/{mastra-BD1Hqrb2.cjs → mastra-Dum21R9e.cjs} +16 -16
- package/dist/memory/index.cjs +2 -2
- package/dist/memory/index.js +2 -2
- package/dist/{model-CI05YYPx.cjs → model-BSJM-uPh.cjs} +1 -1
- package/dist/{model-Bvfq1yB9.js → model-ylucqLzJ.js} +1 -1
- package/dist/{netlify-DkSS4nuo.cjs → netlify-DlmO_1PJ.cjs} +1 -1
- package/dist/{netlify-DQ-v2Run.js → netlify-Dwaz8kVT.js} +1 -1
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/processor-provider/index.cjs +1 -1
- package/dist/processor-provider/index.js +1 -1
- package/dist/processors/index.cjs +2 -2
- package/dist/processors/index.js +2 -2
- package/dist/{provider-registry-K3a83H9-.cjs → provider-registry-BPAmstg2.cjs} +21966 -21971
- package/dist/{provider-registry-D7D3C2RI.js → provider-registry-BmJ_yV84.js} +21966 -21971
- package/dist/provider-registry.json +22623 -22624
- package/dist/{registry-generator-RfPwMlUl.cjs → registry-generator-BDMF_ksT.cjs} +1 -1
- package/dist/{registry-generator-BgHaZqDZ.js → registry-generator-BJvpKeLl.js} +1 -1
- package/dist/{rehydrate-DwfzaTOg.cjs → rehydrate-BLx0h6x3.cjs} +2 -2
- package/dist/{rehydrate-C4-5kM6Z.js → rehydrate-BxSMnG8L.js} +2 -2
- package/dist/relevance/index.cjs +2 -2
- package/dist/relevance/index.js +2 -2
- package/dist/{run-registry-BJa47sa2.cjs → run-registry-BjGLELnz.cjs} +343 -17
- package/dist/{run-registry-Bj_lW9M3.js → run-registry-Bs0kCDZZ.js} +320 -18
- package/dist/storage/index.cjs +2 -2
- package/dist/storage/index.js +2 -2
- package/dist/stream/index.cjs +2 -2
- package/dist/stream/index.js +2 -2
- package/dist/{stream-DaIpS6ky.js → stream-DdF6q5TA.js} +1 -1
- package/dist/{stream-CWE0h7Yc.cjs → stream-DiZTdV_p.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-BGBhn5xS.cjs → tool-loop-agent-ACOMyW_5.cjs} +3 -3
- package/dist/{tool-loop-agent-B12lpXBl.js → tool-loop-agent-DLsAaJ2M.js} +3 -3
- package/dist/tools/code-mode/index.d.ts +2 -0
- package/dist/tools/code-mode/log-collector.d.ts +49 -0
- package/dist/tools/code-mode/types.d.ts +71 -0
- package/dist/tools/index.cjs +3 -1
- package/dist/tools/index.js +2 -2
- package/dist/{tools-n9lqzDNe.cjs → tools-BEYxowf0.cjs} +316 -30
- package/dist/{tools-DDfA_ES4.js → tools-tPy2FwMI.js} +305 -31
- package/dist/{utils-CPOlvXFL.cjs → utils-C68cIPq9.cjs} +1 -1
- package/dist/{utils-dueX8ECq.js → utils-DUTHqSao.js} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/{validate-DdirQd9u.cjs → validate-DB0f9rHc.cjs} +1 -1
- package/dist/{validate-x3wcpuT8.js → validate-Di90-o2o.js} +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-CfMtR2cV.js → worker-BJXBb4t7.js} +2 -2
- package/dist/{worker-GrFJJ7Y0.cjs → worker-BuvCA4E5.cjs} +2 -2
- package/dist/{worker-NYiueScR.js → worker-DCjlSDNL.js} +2 -2
- package/dist/{worker-CPZ3HqQn.cjs → worker-_e7Td4xZ.cjs} +2 -2
- package/dist/{workflow-BgAes9PI.js → workflow-BLs4Y-pr.js} +3 -3
- package/dist/{workflow-BNUED985.cjs → workflow-DqDzCAZR.cjs} +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/index.cjs +1 -1
- package/dist/workspace/index.js +1 -1
- package/dist/workspace/sandbox/teardown-context.d.ts +74 -0
- package/dist/{workspace-Pv3J8K0c.cjs → workspace-C8Zo5_qK.cjs} +106 -5
- package/dist/{workspace-BK9ltbSa.js → workspace-DOAil8mG.js} +106 -5
- package/package.json +4 -4
- package/src/llm/model/provider-types.generated.d.ts +7423 -7430
package/dist/stream/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { En as convertFullStreamChunkToUIMessageStream, a as convertFullStreamChunkToMastra, c as WorkflowRunOutput, d as MastraModelOutput, i as withStreamCaching, n as createCachingTransformStream, o as convertMastraChunkToAISDKv5, r as createReplayStream, s as MastraAgentNetworkStream, t as smoothStream } from "../stream-
|
|
2
|
-
import { u as ChunkFrom } from "../llm-
|
|
1
|
+
import { En as convertFullStreamChunkToUIMessageStream, a as convertFullStreamChunkToMastra, c as WorkflowRunOutput, d as MastraModelOutput, i as withStreamCaching, n as createCachingTransformStream, o as convertMastraChunkToAISDKv5, r as createReplayStream, s as MastraAgentNetworkStream, t as smoothStream } from "../stream-DdF6q5TA.js";
|
|
2
|
+
import { u as ChunkFrom } from "../llm-CCrVS2x2.js";
|
|
3
3
|
import { n as DefaultGeneratedFileWithType, t as DefaultGeneratedFile } from "../file-DGZrR5f7.js";
|
|
4
4
|
export { ChunkFrom, DefaultGeneratedFile, DefaultGeneratedFileWithType, MastraAgentNetworkStream, MastraModelOutput, WorkflowRunOutput, convertFullStreamChunkToMastra, convertFullStreamChunkToUIMessageStream, convertMastraChunkToAISDKv5, createCachingTransformStream, createReplayStream, smoothStream, withStreamCaching };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-tIEjjQTE.js";
|
|
2
|
-
import { d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, p as readModelStreamTransport } from "./llm-
|
|
2
|
+
import { d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, p as readModelStreamTransport } from "./llm-CCrVS2x2.js";
|
|
3
3
|
import { B as getResponseProviderItemIdFromPart, G as RESPONSE_ITEM_ID_PROVIDERS, K as RESPONSE_RESULT_ITEM_ID_KEY, f as coreContentToString, n as MessageList, p as messagesAreEqual, t as convertMessages } from "./message-list-BGm1DCiG.js";
|
|
4
4
|
import { S as resolveObservabilityContext, x as createObservabilityContext } from "./observability-D7RNOAPx.js";
|
|
5
5
|
import { t as MastraBase } from "./base-CKLWBhDo.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
|
|
2
|
-
const require_llm = require("./llm-
|
|
2
|
+
const require_llm = require("./llm-BFX_NqOg.cjs");
|
|
3
3
|
const require_message_list = require("./message-list-vR3uLAHL.cjs");
|
|
4
4
|
const require_observability = require("./observability-B0R_D1PZ.cjs");
|
|
5
5
|
const require_base = require("./base-BIzR1D3_.cjs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_rolldown_runtime = require("../rolldown-runtime-BrhgMLW6.cjs");
|
|
3
3
|
const require_dist = require("../dist-CXeCeeW7.cjs");
|
|
4
|
-
const require_model = require("../model-
|
|
4
|
+
const require_model = require("../model-BSJM-uPh.cjs");
|
|
5
5
|
const require_model$1 = require("../model-jBymoqGa.cjs");
|
|
6
6
|
let stream = require("stream");
|
|
7
7
|
let module$1 = require("module");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as simulateReadableStream } from "../dist-D3cKCUe-.js";
|
|
2
|
-
import { t as MastraLLMV1 } from "../model-
|
|
2
|
+
import { t as MastraLLMV1 } from "../model-ylucqLzJ.js";
|
|
3
3
|
import { t as AISDKV5LanguageModel } from "../model-DS-b2R-R.js";
|
|
4
4
|
import { createRequire } from "module";
|
|
5
5
|
import { Readable } from "stream";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_tool_loop_agent = require("../tool-loop-agent-
|
|
2
|
+
const require_tool_loop_agent = require("../tool-loop-agent-ACOMyW_5.cjs");
|
|
3
3
|
exports.getSettings = require_tool_loop_agent.getSettings;
|
|
4
4
|
exports.isToolLoopAgentLike = require_tool_loop_agent.isToolLoopAgentLike;
|
|
5
5
|
exports.toolLoopAgentToMastraAgent = require_tool_loop_agent.toolLoopAgentToMastraAgent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as getSettings, r as isToolLoopAgentLike, t as toolLoopAgentToMastraAgent } from "../tool-loop-agent-
|
|
1
|
+
export { n as getSettings, r as isToolLoopAgentLike, t as toolLoopAgentToMastraAgent } from "../tool-loop-agent-DLsAaJ2M.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_dist = require("./dist-P2rjrlmj.cjs");
|
|
2
|
-
const require_run_registry = require("./run-registry-
|
|
3
|
-
const require_stream = require("./stream-
|
|
4
|
-
const require_llm = require("./llm-
|
|
2
|
+
const require_run_registry = require("./run-registry-BjGLELnz.cjs");
|
|
3
|
+
const require_stream = require("./stream-DiZTdV_p.cjs");
|
|
4
|
+
const require_llm = require("./llm-BFX_NqOg.cjs");
|
|
5
5
|
const require_message_list = require("./message-list-vR3uLAHL.cjs");
|
|
6
6
|
// src/tool-loop-agent/utils.ts
|
|
7
7
|
function isToolLoopAgentLike(obj) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { m as generateId } from "./dist-TPVqg8oV.js";
|
|
2
|
-
import {
|
|
3
|
-
import { ln as isSupportedLanguageModel } from "./stream-
|
|
4
|
-
import { i as resolveModelConfig } from "./llm-
|
|
2
|
+
import { F as Agent } from "./run-registry-Bs0kCDZZ.js";
|
|
3
|
+
import { ln as isSupportedLanguageModel } from "./stream-DdF6q5TA.js";
|
|
4
|
+
import { i as resolveModelConfig } from "./llm-CCrVS2x2.js";
|
|
5
5
|
import { N as ToolLoopAgent } from "./message-list-BGm1DCiG.js";
|
|
6
6
|
// src/tool-loop-agent/utils.ts
|
|
7
7
|
function isToolLoopAgentLike(obj) {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { createCodeMode, createCodeModeTool, type CodeModeResult } from './code-mode.js';
|
|
2
|
+
export { CodeModeLimitError } from './types.js';
|
|
3
|
+
export { createCodeModeLogCollector, type CodeModeLogCollector, type CodeModeLogCollectorOptions, } from './log-collector.js';
|
|
2
4
|
export { createCodeModeInstructions, generateStubs, jsonSchemaToTsString, sanitizeToolId, type CodeModeStub, } from './stub-generator.js';
|
|
3
5
|
export { StdioCodeModeTransport } from './transport.js';
|
|
4
6
|
export { buildRunner, buildProgramModule, FRAME_PREFIX } from './runner.js';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Code Mode — shared console-log collector
|
|
3
|
+
*
|
|
4
|
+
* A bounded, transport-neutral collector for captured console output. Every
|
|
5
|
+
* built-in transport (stdio, QuickJS, isolated-vm) captures lines through this
|
|
6
|
+
* helper so truncation behaves identically everywhere, and each transport's
|
|
7
|
+
* in-memory buffer stays bounded while guest code is still running.
|
|
8
|
+
*
|
|
9
|
+
* Semantics:
|
|
10
|
+
* - Lines are appended in order.
|
|
11
|
+
* - `maxLogLines` and `maxLogBytes` are optional; omitted means unlimited.
|
|
12
|
+
* - On overflow the logs are **truncated**, never failed: the collector keeps
|
|
13
|
+
* the longest allowed prefix and appends one deterministic marker line.
|
|
14
|
+
* - The marker itself counts toward both caps, so the returned logs always fit.
|
|
15
|
+
* - `maxLogLines: 0` or `maxLogBytes: 0` captures nothing.
|
|
16
|
+
* - Every retained line costs at least one byte, so a byte cap also bounds the
|
|
17
|
+
* number of retained lines: empty lines are not free, and a chatty program
|
|
18
|
+
* cannot grow the buffer without limit by logging empty strings.
|
|
19
|
+
*
|
|
20
|
+
* Only Web-standard APIs are used, so it works in Node and in hosted runtimes.
|
|
21
|
+
*/
|
|
22
|
+
export interface CodeModeLogCollectorOptions {
|
|
23
|
+
/**
|
|
24
|
+
* Maximum UTF-8 bytes across all captured lines. Each line costs at least one
|
|
25
|
+
* byte, so this also caps the number of retained lines. `0` captures nothing;
|
|
26
|
+
* omitted means unlimited.
|
|
27
|
+
*/
|
|
28
|
+
maxLogBytes?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Maximum number of captured lines. `0` captures nothing; omitted means
|
|
31
|
+
* unlimited.
|
|
32
|
+
*/
|
|
33
|
+
maxLogLines?: number;
|
|
34
|
+
}
|
|
35
|
+
export interface CodeModeLogCollector {
|
|
36
|
+
/** Append one formatted console line, truncating if a cap would be exceeded. */
|
|
37
|
+
push(message: string): void;
|
|
38
|
+
/**
|
|
39
|
+
* The captured lines, with the truncation marker appended when overflow
|
|
40
|
+
* occurred. Idempotent: calling it more than once returns the same result.
|
|
41
|
+
*/
|
|
42
|
+
logs(): string[];
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Create a bounded log collector. Pass the two optional caps straight through
|
|
46
|
+
* from the transport's run options.
|
|
47
|
+
*/
|
|
48
|
+
export declare function createCodeModeLogCollector(options?: CodeModeLogCollectorOptions): CodeModeLogCollector;
|
|
49
|
+
//# sourceMappingURL=log-collector.d.ts.map
|
|
@@ -29,6 +29,64 @@ export interface CodeModeConfig {
|
|
|
29
29
|
timeout?: number;
|
|
30
30
|
/** The generated tool's id. Default: `execute_typescript`. */
|
|
31
31
|
id?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Maximum number of `external_*` calls a single program may attempt.
|
|
34
|
+
*
|
|
35
|
+
* Exceeding it fails the whole run with a {@link CodeModeLimitError} naming
|
|
36
|
+
* `maxCalls`, even when the guest code catches the individual rejection.
|
|
37
|
+
* Must be a positive integer. Optional; omitted means unlimited.
|
|
38
|
+
*/
|
|
39
|
+
maxCalls?: number;
|
|
40
|
+
/**
|
|
41
|
+
* Maximum number of `external_*` calls allowed to execute concurrently.
|
|
42
|
+
*
|
|
43
|
+
* Additional calls queue (FIFO) instead of failing. Must be a positive
|
|
44
|
+
* integer. Optional; omitted means unlimited.
|
|
45
|
+
*/
|
|
46
|
+
maxConcurrentCalls?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Maximum UTF-8 byte size of each nested tool result.
|
|
49
|
+
*
|
|
50
|
+
* A result exceeding it fails the whole run with a
|
|
51
|
+
* {@link CodeModeLimitError} naming `maxResultBytes`, even when the guest
|
|
52
|
+
* code catches the individual rejection. Applies to each nested tool result,
|
|
53
|
+
* not the program's final return value. Must be a non-negative integer.
|
|
54
|
+
* Optional; omitted means unlimited.
|
|
55
|
+
*/
|
|
56
|
+
maxResultBytes?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Maximum UTF-8 bytes of captured console logs.
|
|
59
|
+
*
|
|
60
|
+
* Each retained line costs at least one byte, so a finite cap always bounds
|
|
61
|
+
* the number of lines too. Overflow truncates the logs — the program still
|
|
62
|
+
* succeeds. Must be a non-negative integer (0 captures no logs). Optional;
|
|
63
|
+
* omitted means unlimited.
|
|
64
|
+
*/
|
|
65
|
+
maxLogBytes?: number;
|
|
66
|
+
/**
|
|
67
|
+
* Maximum number of captured console log lines.
|
|
68
|
+
*
|
|
69
|
+
* Overflow truncates the logs — the program still succeeds. Must be a
|
|
70
|
+
* non-negative integer (0 captures no logs). Optional; omitted means
|
|
71
|
+
* unlimited.
|
|
72
|
+
*/
|
|
73
|
+
maxLogLines?: number;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Error raised when a configured Code Mode execution limit is exceeded.
|
|
77
|
+
*
|
|
78
|
+
* `option` and `value` name the exact {@link CodeModeConfig} option that
|
|
79
|
+
* tripped and its configured value, so callers can distinguish a call-count
|
|
80
|
+
* or result-size failure without parsing the message. Call and result limits
|
|
81
|
+
* are sticky: once one trips, the run fails even if guest code caught the
|
|
82
|
+
* individual rejection.
|
|
83
|
+
*/
|
|
84
|
+
export declare class CodeModeLimitError extends Error {
|
|
85
|
+
/** The config option that tripped: `maxCalls` or `maxResultBytes`. */
|
|
86
|
+
readonly option: 'maxCalls' | 'maxResultBytes';
|
|
87
|
+
/** The configured value of that option. */
|
|
88
|
+
readonly value: number;
|
|
89
|
+
constructor(option: 'maxCalls' | 'maxResultBytes', value: number, detail?: string);
|
|
32
90
|
}
|
|
33
91
|
/**
|
|
34
92
|
* Result returned by the `execute_typescript` tool.
|
|
@@ -126,6 +184,19 @@ export interface CodeModeTransport {
|
|
|
126
184
|
/** Optional per-call hooks for tracing. */
|
|
127
185
|
onExternalCall?: (tool: string, args: unknown) => void;
|
|
128
186
|
onExternalResult?: (tool: string, durationMs: number, error?: unknown) => void;
|
|
187
|
+
/**
|
|
188
|
+
* Maximum UTF-8 bytes of captured console logs. A transport that buffers
|
|
189
|
+
* logs during execution should honor this to keep its memory bounded;
|
|
190
|
+
* each retained line should cost at least one byte so a finite cap also
|
|
191
|
+
* bounds the line count. Omitted means unlimited. Core additionally
|
|
192
|
+
* replays the returned logs through the same cap as a compatibility guard.
|
|
193
|
+
*/
|
|
194
|
+
maxLogBytes?: number;
|
|
195
|
+
/**
|
|
196
|
+
* Maximum number of captured console log lines. A transport that buffers
|
|
197
|
+
* logs during execution should honor this; omitted means unlimited.
|
|
198
|
+
*/
|
|
199
|
+
maxLogLines?: number;
|
|
129
200
|
}): Promise<CodeModeToolResult>;
|
|
130
201
|
}
|
|
131
202
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/tools/index.cjs
CHANGED
|
@@ -4,7 +4,8 @@ const require_tool = require("../tool-CYlT2UA-.cjs");
|
|
|
4
4
|
const require_toolchecks = require("../toolchecks-MFU48cit.cjs");
|
|
5
5
|
const require_stream = require("../stream-BGbj9jAU.cjs");
|
|
6
6
|
const require_state_processor = require("../state-processor-kRNZ38Nf.cjs");
|
|
7
|
-
const require_tools = require("../tools-
|
|
7
|
+
const require_tools = require("../tools-BEYxowf0.cjs");
|
|
8
|
+
exports.CodeModeLimitError = require_tools.CodeModeLimitError;
|
|
8
9
|
exports.DEFAULT_GOAL_JUDGE_PROMPT = require_state_processor.DEFAULT_GOAL_JUDGE_PROMPT;
|
|
9
10
|
exports.DEFAULT_GOAL_MAX_RUNS = require_state_processor.DEFAULT_GOAL_MAX_RUNS;
|
|
10
11
|
exports.FRAME_PREFIX = require_tools.FRAME_PREFIX;
|
|
@@ -26,6 +27,7 @@ exports.buildRunner = require_tools.buildRunner;
|
|
|
26
27
|
exports.clearObjective = require_state_processor.clearObjective;
|
|
27
28
|
exports.createCodeMode = require_tools.createCodeMode;
|
|
28
29
|
exports.createCodeModeInstructions = require_tools.createCodeModeInstructions;
|
|
30
|
+
exports.createCodeModeLogCollector = require_tools.createCodeModeLogCollector;
|
|
29
31
|
exports.createCodeModeTool = require_tools.createCodeModeTool;
|
|
30
32
|
exports.createTool = require_tool.createTool;
|
|
31
33
|
exports.demoteExtraInProgress = require_state_processor.demoteExtraInProgress;
|
package/dist/tools/index.js
CHANGED
|
@@ -3,5 +3,5 @@ import { d as validateToolOutput, m as noopObserve, n as Tool, o as getValidatio
|
|
|
3
3
|
import { c as isProviderDefinedTool, l as isProviderTool, u as isVercelTool } from "../toolchecks-DrsZdc3S.js";
|
|
4
4
|
import { t as ToolStream } from "../stream-D9JOykz7.js";
|
|
5
5
|
import { A as writeObjective, C as GOAL_STATE_TYPE, D as readObjective, E as getObjectiveFromRequestContext, O as resolveEffectiveGoalSettings, S as GOAL_STATE_ID, a as TASK_STATE_TYPE, c as formatTaskListResult, d as summarizeTaskCheck, f as taskCheckTool, h as taskWriteTool, i as TASKS_STATE_ID, k as resolveGoalStore, l as getTasksFromRequestContext, m as taskUpdateTool, n as TaskStateProcessor, o as assignTaskIds, p as taskCompleteTool, r as TASKS_REQUEST_CONTEXT_KEY, s as demoteExtraInProgress, t as GoalStateProcessor, u as hasMultipleInProgress, v as DEFAULT_GOAL_JUDGE_PROMPT, w as clearObjective, y as DEFAULT_GOAL_MAX_RUNS } from "../state-processor-B9kxpM53.js";
|
|
6
|
-
import { _ as
|
|
7
|
-
export { DEFAULT_GOAL_JUDGE_PROMPT, DEFAULT_GOAL_MAX_RUNS, FRAME_PREFIX, GOAL_STATE_ID, GOAL_STATE_TYPE, GoalStateProcessor, MASTRA_TOOL_MARKER, StdioCodeModeTransport, TASKS_REQUEST_CONTEXT_KEY, TASKS_STATE_ID, TASK_STATE_TYPE, TaskStateProcessor, Tool, ToolStream, askUserTool, assignTaskIds, buildProgramModule, buildRunner, clearObjective, createCodeMode, createCodeModeInstructions, createCodeModeTool, createTool, demoteExtraInProgress, formatQuestionAnswer, formatTaskListResult, generateStubs, getObjectiveFromRequestContext, getTasksFromRequestContext, getTransformedToolPayload, getValidationIssuePaths, hasMultipleInProgress, hasTransformedToolPayload, isProviderDefinedTool, isProviderTool, isValidationError, isVercelTool, jsonSchemaToTsString, noopObserve, readObjective, resolveEffectiveGoalSettings, resolveGoalStore, sanitizeToolId, submitPlanTool, summarizeTaskCheck, taskCheckTool, taskCompleteTool, taskUpdateTool, taskWriteTool, validateToolInput, validateToolOutput, webFetchTool, webSearchTool, writeObjective };
|
|
6
|
+
import { _ as generateStubs, a as webSearchTool, b as createCodeModeLogCollector, c as formatQuestionAnswer, d as CodeModeLimitError, f as StdioCodeModeTransport, g as createCodeModeInstructions, h as buildRunner, l as createCodeMode, m as buildProgramModule, o as webFetchTool, p as FRAME_PREFIX, s as askUserTool, t as submitPlanTool, u as createCodeModeTool, v as jsonSchemaToTsString, y as sanitizeToolId } from "../tools-tPy2FwMI.js";
|
|
7
|
+
export { CodeModeLimitError, DEFAULT_GOAL_JUDGE_PROMPT, DEFAULT_GOAL_MAX_RUNS, FRAME_PREFIX, GOAL_STATE_ID, GOAL_STATE_TYPE, GoalStateProcessor, MASTRA_TOOL_MARKER, StdioCodeModeTransport, TASKS_REQUEST_CONTEXT_KEY, TASKS_STATE_ID, TASK_STATE_TYPE, TaskStateProcessor, Tool, ToolStream, askUserTool, assignTaskIds, buildProgramModule, buildRunner, clearObjective, createCodeMode, createCodeModeInstructions, createCodeModeLogCollector, createCodeModeTool, createTool, demoteExtraInProgress, formatQuestionAnswer, formatTaskListResult, generateStubs, getObjectiveFromRequestContext, getTasksFromRequestContext, getTransformedToolPayload, getValidationIssuePaths, hasMultipleInProgress, hasTransformedToolPayload, isProviderDefinedTool, isProviderTool, isValidationError, isVercelTool, jsonSchemaToTsString, noopObserve, readObjective, resolveEffectiveGoalSettings, resolveGoalStore, sanitizeToolId, submitPlanTool, summarizeTaskCheck, taskCheckTool, taskCompleteTool, taskUpdateTool, taskWriteTool, validateToolInput, validateToolOutput, webFetchTool, webSearchTool, writeObjective };
|