@mastra/core 1.87.0-alpha.11 → 1.87.0-alpha.12
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/a2a/index.cjs +1 -1
- package/dist/a2a/index.js +1 -1
- package/dist/agent/durable/index.cjs +1 -1
- package/dist/agent/durable/index.js +1 -1
- package/dist/agent/durable/run-registry.d.ts +2 -0
- package/dist/agent/durable/types.d.ts +6 -0
- package/dist/agent/durable/utils/resolve-runtime.d.ts +5 -0
- package/dist/agent/index.cjs +3 -3
- package/dist/agent/index.js +3 -3
- package/dist/agent/message-list/index.cjs +1 -1
- package/dist/agent/message-list/index.js +1 -1
- package/dist/agent/message-list/state/MessageStateManager.d.ts +5 -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 +1 -1
- package/dist/agent-controller/index.js +1 -1
- package/dist/{agent-controller-DKI-d-np.cjs → agent-controller-BcN7r3yI.cjs} +24 -197
- package/dist/{agent-controller-BrRzZy4-.js → agent-controller-DfeTRuBc.js} +24 -197
- package/dist/background-tasks/index.cjs +1 -1
- package/dist/background-tasks/index.js +1 -1
- package/dist/{background-tasks-CDP3Pgeu.js → background-tasks-BcU--rXL.js} +1 -1
- package/dist/{background-tasks-CDgdfRmB.cjs → background-tasks-DRUHnQOk.cjs} +1 -1
- package/dist/browser/index.cjs +15 -6
- package/dist/browser/index.js +15 -6
- package/dist/browser/processor.d.ts +1 -0
- package/dist/{builder-Bs4CtyqT.cjs → builder-Bufqrcz3.cjs} +2 -2
- package/dist/{builder-DuT0Iqb5.js → builder-TuIc5l7X.js} +2 -2
- package/dist/capabilities/302ai.json +204 -204
- package/dist/capabilities/abliteratedllm.json +33 -33
- package/dist/capabilities/abliteration-ai.json +9 -9
- package/dist/capabilities/above.json +18 -18
- package/dist/capabilities/adaption.json +11 -11
- package/dist/capabilities/adzuki.json +20 -20
- package/dist/capabilities/agentrouter.json +12 -12
- package/dist/capabilities/agnes.json +4 -4
- package/dist/capabilities/ai-router.json +5 -5
- package/dist/capabilities/aiand.json +19 -19
- package/dist/capabilities/aigrow.json +12 -12
- package/dist/capabilities/aimlapi.json +141 -141
- package/dist/capabilities/aipg.json +2 -2
- package/dist/capabilities/aixy.json +21 -21
- package/dist/capabilities/aki-io.json +16 -16
- package/dist/capabilities/alibaba-cn.json +97 -97
- package/dist/capabilities/alibaba-coding-plan-cn.json +6 -6
- package/dist/capabilities/alibaba-coding-plan.json +6 -6
- package/dist/capabilities/alibaba-token-plan-cn.json +51 -51
- package/dist/capabilities/alibaba-token-plan.json +51 -51
- package/dist/capabilities/alibaba.json +67 -67
- package/dist/capabilities/ambient.json +14 -14
- package/dist/capabilities/amd.json +10 -10
- package/dist/capabilities/anthropic.json +49 -49
- package/dist/capabilities/anyapi.json +18 -18
- package/dist/capabilities/apiko.json +4 -4
- package/dist/capabilities/arcee.json +7 -7
- package/dist/capabilities/augure.json +2 -2
- package/dist/capabilities/auriko.json +21 -21
- package/dist/capabilities/bailing.json +3 -3
- package/dist/capabilities/baseten.json +31 -31
- package/dist/capabilities/bee.json +4 -4
- package/dist/capabilities/berget.json +8 -8
- package/dist/capabilities/bothub.json +15 -15
- package/dist/capabilities/boundless.json +40 -40
- package/dist/capabilities/bumo.json +45 -45
- package/dist/capabilities/byteplus.json +26 -26
- package/dist/capabilities/cerebras.json +4 -4
- package/dist/capabilities/cheapaimodel.json +10 -10
- package/dist/capabilities/cheapest-token.json +30 -30
- package/dist/capabilities/chutes.json +8 -8
- package/dist/capabilities/clarifai.json +2 -2
- package/dist/capabilities/cline-pass.json +35 -35
- package/dist/capabilities/cloudcode.json +10 -10
- package/dist/capabilities/cloudflare-workers-ai.json +13 -13
- package/dist/capabilities/commandcode.json +150 -150
- package/dist/capabilities/concentrate.json +289 -289
- package/dist/capabilities/cortecs.json +106 -106
- package/dist/capabilities/crossmodel.json +196 -196
- package/dist/capabilities/crusoe.json +12 -12
- package/dist/capabilities/daoxe.json +9 -9
- package/dist/capabilities/databricks.json +134 -134
- package/dist/capabilities/deepinfra.json +100 -100
- package/dist/capabilities/deepseek.json +4 -4
- package/dist/capabilities/digitalocean.json +114 -114
- package/dist/capabilities/dothoosh.json +31 -31
- package/dist/capabilities/doubleword.json +30 -30
- package/dist/capabilities/edenai.json +282 -282
- package/dist/capabilities/empiriolabs.json +168 -168
- package/dist/capabilities/engy.json +22 -22
- package/dist/capabilities/entrim.json +4 -4
- package/dist/capabilities/evroc.json +16 -16
- package/dist/capabilities/ezkielyna.json +13 -13
- package/dist/capabilities/fastrouter.json +69 -69
- package/dist/capabilities/fireworks-ai.json +91 -91
- package/dist/capabilities/fortytwo.json +4 -4
- package/dist/capabilities/freemodel.json +24 -24
- package/dist/capabilities/friendli.json +6 -6
- package/dist/capabilities/frogbot.json +100 -100
- package/dist/capabilities/gisoo.json +18 -18
- package/dist/capabilities/gmicloud.json +8 -8
- package/dist/capabilities/google.json +48 -48
- package/dist/capabilities/graphn.json +10 -10
- package/dist/capabilities/greenpt.json +35 -35
- package/dist/capabilities/groq.json +9 -9
- package/dist/capabilities/helicone.json +87 -87
- package/dist/capabilities/hopper.json +2 -2
- package/dist/capabilities/hostinger-router.json +4 -4
- package/dist/capabilities/hpc-ai.json +5 -5
- package/dist/capabilities/huawei-maas.json +15 -15
- package/dist/capabilities/hubris.json +26 -26
- package/dist/capabilities/huggingface.json +87 -87
- package/dist/capabilities/hyper.json +22 -22
- package/dist/capabilities/impossibl.json +137 -137
- package/dist/capabilities/inception.json +3 -3
- package/dist/capabilities/inco.json +4 -4
- package/dist/capabilities/infer.json +16 -16
- package/dist/capabilities/inferall.json +8 -8
- package/dist/capabilities/inference-coop.json +15 -15
- package/dist/capabilities/inferenceapis.json +15 -15
- package/dist/capabilities/inferris.json +2 -2
- package/dist/capabilities/infersia.json +9 -9
- package/dist/capabilities/inferx.json +3 -3
- package/dist/capabilities/infomaniak.json +4 -4
- package/dist/capabilities/isoquant.json +4 -4
- package/dist/capabilities/iteracompute.json +61 -61
- package/dist/capabilities/jad-ai.json +2 -2
- package/dist/capabilities/jalapeno.json +11 -11
- package/dist/capabilities/jiekou.json +67 -67
- package/dist/capabilities/jzstoken.json +40 -40
- package/dist/capabilities/keln.json +19 -19
- package/dist/capabilities/kenari.json +127 -119
- package/dist/capabilities/kilo.json +615 -615
- 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 +2 -2
- package/dist/capabilities/klavo.json +22 -22
- package/dist/capabilities/korouter.json +28 -28
- package/dist/capabilities/kunavo.json +8 -8
- package/dist/capabilities/liquid.json +12 -12
- package/dist/capabilities/lithosai.json +2 -2
- package/dist/capabilities/llmgateway-providers.json +935 -935
- package/dist/capabilities/llmgateway.json +343 -343
- package/dist/capabilities/llmtr.json +30 -30
- package/dist/capabilities/lowrouter.json +48 -48
- package/dist/capabilities/lyceum.json +12 -12
- package/dist/capabilities/melious.json +13 -13
- package/dist/capabilities/merge-gateway.json +300 -300
- package/dist/capabilities/meta.json +7 -7
- package/dist/capabilities/mistral.json +13 -13
- package/dist/capabilities/mixlayer.json +5 -5
- package/dist/capabilities/modal.json +8 -8
- package/dist/capabilities/model-oracle-ai.json +19 -19
- package/dist/capabilities/modelis.json +20 -20
- package/dist/capabilities/modelscope.json +2 -2
- package/dist/capabilities/modular.json +13 -13
- package/dist/capabilities/moneo.json +16 -16
- package/dist/capabilities/moonshotai-cn.json +5 -5
- package/dist/capabilities/moonshotai.json +5 -5
- package/dist/capabilities/morph.json +16 -16
- package/dist/capabilities/munito-eu.json +4 -4
- package/dist/capabilities/munito.json +6 -6
- package/dist/capabilities/nan.json +28 -28
- package/dist/capabilities/nano-gpt.json +579 -578
- package/dist/capabilities/nearai.json +88 -88
- package/dist/capabilities/nebius.json +30 -30
- package/dist/capabilities/neon.json +128 -128
- package/dist/capabilities/neuralwatt.json +43 -43
- package/dist/capabilities/nokeep.json +4 -4
- package/dist/capabilities/novita-ai.json +148 -148
- package/dist/capabilities/nvidia.json +40 -40
- package/dist/capabilities/oathbreaker.json +4 -4
- package/dist/capabilities/obscurify.json +22 -22
- package/dist/capabilities/oci.json +6 -6
- package/dist/capabilities/ofox.json +337 -337
- package/dist/capabilities/ollama-cloud.json +58 -58
- package/dist/capabilities/openai.json +57 -57
- package/dist/capabilities/opencode-go.json +88 -88
- package/dist/capabilities/openreason.json +5 -5
- package/dist/capabilities/openrouter.json +519 -519
- package/dist/capabilities/opper.json +30 -30
- package/dist/capabilities/orcarouter.json +236 -236
- package/dist/capabilities/outerlabs.json +30 -30
- package/dist/capabilities/ovhcloud.json +21 -21
- package/dist/capabilities/perplexity-agent.json +59 -59
- package/dist/capabilities/phala.json +30 -30
- package/dist/capabilities/pioneer.json +29 -29
- package/dist/capabilities/poe.json +115 -115
- package/dist/capabilities/poolside.json +3 -3
- package/dist/capabilities/powerspring.json +12 -12
- package/dist/capabilities/primalabs.json +9 -9
- package/dist/capabilities/prime.json +106 -106
- package/dist/capabilities/privatemode-ai.json +14 -14
- package/dist/capabilities/proxystacks.json +6 -6
- package/dist/capabilities/qiniu-ai.json +15 -15
- package/dist/capabilities/refuseless.json +6 -6
- package/dist/capabilities/regolo-ai.json +6 -6
- package/dist/capabilities/requesty.json +203 -203
- package/dist/capabilities/ruapi.json +22 -22
- package/dist/capabilities/runcrate.json +7 -7
- package/dist/capabilities/runinfra.json +15 -15
- package/dist/capabilities/sakana.json +5 -5
- package/dist/capabilities/sambanova.json +6 -6
- package/dist/capabilities/sandbase.json +11 -11
- package/dist/capabilities/sarvam.json +6 -6
- package/dist/capabilities/scaleway.json +16 -16
- package/dist/capabilities/scnet-token-plan.json +13 -13
- package/dist/capabilities/scx-ai.json +29 -29
- package/dist/capabilities/sensenova.json +12 -12
- package/dist/capabilities/siliconflow-cn.json +62 -62
- package/dist/capabilities/siliconflow.json +48 -48
- package/dist/capabilities/snowflake-cortex.json +24 -24
- package/dist/capabilities/sokkan.json +9 -9
- package/dist/capabilities/sparrowcodes.json +21 -21
- package/dist/capabilities/standardcompute.json +97 -97
- package/dist/capabilities/steadyrouter.json +36 -36
- package/dist/capabilities/stepfun-ai-step-plan.json +5 -5
- package/dist/capabilities/stepfun-ai.json +5 -5
- package/dist/capabilities/stepfun-step-plan.json +5 -5
- package/dist/capabilities/stepfun.json +5 -5
- package/dist/capabilities/stepping-stone.json +22 -22
- package/dist/capabilities/subconscious.json +2 -2
- package/dist/capabilities/synthetic.json +6 -6
- package/dist/capabilities/synthorai.json +25 -25
- package/dist/capabilities/teamorouter.json +19 -19
- package/dist/capabilities/teapot-router.json +15 -15
- package/dist/capabilities/tencent-token-plan-intl.json +20 -20
- package/dist/capabilities/tencent-token-plan.json +36 -36
- package/dist/capabilities/tencent-tokenhub.json +40 -40
- package/dist/capabilities/tensorx.json +51 -51
- package/dist/capabilities/the-grid-ai.json +39 -39
- package/dist/capabilities/thinkingmachines.json +78 -78
- package/dist/capabilities/tinfoil.json +13 -13
- package/dist/capabilities/toapis.json +2 -2
- package/dist/capabilities/togetherai.json +44 -44
- package/dist/capabilities/tokengo.json +18 -18
- package/dist/capabilities/tokenify.json +8 -8
- package/dist/capabilities/trustedrouter.json +7 -7
- package/dist/capabilities/trustedtokens.json +19 -19
- package/dist/capabilities/umans-ai-coding-plan.json +14 -14
- package/dist/capabilities/umans-ai.json +12 -12
- package/dist/capabilities/unrestricted.json +6 -6
- package/dist/capabilities/uplinkswitch.json +18 -18
- package/dist/capabilities/upstage.json +6 -6
- package/dist/capabilities/vancine.json +21 -21
- package/dist/capabilities/vercel.json +536 -536
- package/dist/capabilities/vivgrid.json +79 -79
- package/dist/capabilities/volcengine-coding-plan.json +29 -29
- package/dist/capabilities/volcengine.json +27 -27
- package/dist/capabilities/vultr.json +28 -28
- package/dist/capabilities/wafer.ai.json +15 -15
- 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 +3 -3
- package/dist/capabilities/xpersona.json +12 -12
- package/dist/capabilities/xxapi.json +31 -31
- package/dist/capabilities/zai-coding-plan.json +18 -18
- package/dist/capabilities/zai.json +32 -32
- package/dist/capabilities/zenifra.json +29 -29
- package/dist/capabilities/zenmux.json +186 -186
- package/dist/capabilities/zerogpu.json +6 -6
- package/dist/capabilities/zhipuai-coding-plan.json +8 -8
- package/dist/capabilities/zhipuai.json +31 -31
- package/dist/capabilities/zro.json +7 -7
- package/dist/channels/index.cjs +2 -2
- package/dist/channels/index.js +2 -2
- package/dist/{channels-CkRMEIQ6.js → channels-Cdsqdajh.js} +1 -1
- package/dist/{channels-Bkd_v8M1.cjs → channels-MsOnUvU6.cjs} +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 +515 -515
- package/dist/docs/references/reference-memory-observational-memory.md +4 -0
- package/dist/docs/references/reference.md +1 -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 +1 -1
- package/dist/harness/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/knowledge/index.cjs +1 -1
- package/dist/knowledge/index.js +1 -1
- package/dist/llm/index.cjs +3 -3
- package/dist/llm/index.js +3 -3
- package/dist/llm/model/provider-types.generated.d.ts +7225 -7224
- package/dist/llm/reasoning/anthropic-thinking.d.ts +5 -0
- package/dist/llm/reasoning/gemini-thinking.d.ts +24 -0
- package/dist/llm/reasoning/index.cjs +389 -0
- package/dist/llm/reasoning/index.d.ts +8 -0
- package/dist/llm/reasoning/index.js +362 -0
- package/dist/llm/reasoning/model-fallback.d.ts +75 -0
- package/dist/llm/reasoning/model-ids.d.ts +5 -0
- package/dist/llm/reasoning/thinking-provider-options.d.ts +10 -0
- package/dist/llm/reasoning/thinking-request.d.ts +14 -0
- package/dist/llm/reasoning/thinking.d.ts +37 -0
- package/dist/{llm-DAw2eouV.cjs → llm-CS6YY_IV.cjs} +2 -2
- package/dist/{llm-DFT5EKp4.js → llm-zjtMQn7M.js} +2 -2
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +2 -2
- package/dist/{manager-hxzEe4U5.cjs → manager-BU_lY6kl.cjs} +2 -2
- package/dist/{manager-DiDnvKLM.js → manager-Do0MENhH.js} +2 -2
- package/dist/mastra/index.cjs +1 -1
- package/dist/mastra/index.d.ts +2 -0
- package/dist/mastra/index.js +1 -1
- package/dist/{mastra-BPaPxG5t.js → mastra-C-1zIyS5.js} +22 -16
- package/dist/{mastra-1diaq68N.cjs → mastra-DYVjsXTO.cjs} +22 -16
- package/dist/memory/index.cjs +3 -3
- package/dist/memory/index.js +3 -3
- package/dist/memory/om-events/index.cjs +189 -0
- package/dist/memory/om-events/index.d.ts +17 -0
- package/dist/memory/om-events/index.js +188 -0
- package/dist/{message-list-vR3uLAHL.cjs → message-list-C0F2sDNC.cjs} +3 -2
- package/dist/{message-list-BGm1DCiG.js → message-list-RgFlLrxG.js} +3 -2
- package/dist/{model-DSMHJM3c.cjs → model-DGFc1hw3.cjs} +1 -1
- package/dist/{model-CUBZjm0T.js → model-DIzIjDej.js} +1 -1
- package/dist/{netlify-D1BKjns0.js → netlify-B9mLgxJs.js} +1 -1
- package/dist/{netlify-C21T9ozJ.cjs → netlify-CyL6FNsw.cjs} +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-BAlFFX5o.js → provider-registry-DdQoO_jd.js} +22673 -22670
- package/dist/{provider-registry-ChojUVJa.cjs → provider-registry-g9m_fyV8.cjs} +22673 -22670
- package/dist/provider-registry.json +22961 -22958
- package/dist/{registry-generator-CAUL9Hek.cjs → registry-generator-At8J4ZOR.cjs} +1 -1
- package/dist/{registry-generator-BbWSH6W4.js → registry-generator-CX6Ev697.js} +1 -1
- package/dist/{rehydrate-0xSq47n9.cjs → rehydrate-BzD6UX8f.cjs} +2 -2
- package/dist/{rehydrate-CzUnNFU6.js → rehydrate-DEDxsr6E.js} +2 -2
- package/dist/relevance/index.cjs +2 -2
- package/dist/relevance/index.js +2 -2
- package/dist/{run-registry-DJT02z_9.js → run-registry-D22IF5SK.js} +61 -21
- package/dist/{run-registry-CrTsH9iL.cjs → run-registry-PiQTSx2Y.cjs} +61 -21
- package/dist/storage/index.cjs +2 -2
- package/dist/storage/index.js +2 -2
- package/dist/stream/base/output.d.ts +7 -0
- package/dist/stream/index.cjs +2 -2
- package/dist/stream/index.js +2 -2
- package/dist/{stream-CMKRczs4.cjs → stream-BbPZavop.cjs} +36 -4
- package/dist/{stream-CG9OooRx.js → stream-CoQTdzLm.js} +31 -5
- 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-14o3Z1qo.cjs → tool-loop-agent-8lyD6O4o.cjs} +4 -4
- package/dist/{tool-loop-agent-Bi6z_q7o.js → tool-loop-agent-DhQkNDaR.js} +4 -4
- package/dist/{utils-Fag7YDBU.js → utils-B-3lET9S.js} +1 -1
- package/dist/{utils-DkvbP8EA.cjs → utils-DtmyBuBT.cjs} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/{validate-DLER0nlQ.js → validate-CO4rWYyH.js} +1 -1
- package/dist/{validate-Bhrlve2E.cjs → validate-vucjWXcz.cjs} +1 -1
- package/dist/vector/index.cjs +2 -2
- package/dist/vector/index.js +2 -2
- package/dist/worker/index.cjs +1 -1
- package/dist/worker/index.js +1 -1
- package/dist/{worker-leYV1Y91.js → worker-B6CpapAF.js} +2 -2
- package/dist/{worker-BwJyrFQN.cjs → worker-BgifMkOw.cjs} +2 -2
- package/dist/{worker-D-em3hyS.js → worker-CCpSrXBY.js} +2 -2
- package/dist/{worker-0gczpztM.cjs → worker-eUT7GgQ9.cjs} +2 -2
- package/dist/{workflow-FikHVwog.js → workflow-B4Tn58DD.js} +3 -3
- package/dist/{workflow-DWdcEcxw.cjs → workflow-BJSrGEEL.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/local-sandbox.d.ts +11 -0
- package/dist/workspace/sandbox/sandbox.d.ts +2 -0
- package/dist/{workspace-C8Zo5_qK.cjs → workspace-C5lXteRU.cjs} +174 -12
- package/dist/{workspace-DOAil8mG.js → workspace-CnmmMou8.js} +174 -12
- package/llm/reasoning.d.ts +1 -0
- package/memory/om-events.d.ts +1 -0
- package/package.json +28 -8
- package/src/llm/model/provider-types.generated.d.ts +7225 -7224
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
|
|
2
|
-
const require_llm = require("./llm-
|
|
3
|
-
const require_message_list = require("./message-list-
|
|
2
|
+
const require_llm = require("./llm-CS6YY_IV.cjs");
|
|
3
|
+
const require_message_list = require("./message-list-C0F2sDNC.cjs");
|
|
4
4
|
const require_observability = require("./observability-B0R_D1PZ.cjs");
|
|
5
5
|
const require_base = require("./base-BIzR1D3_.cjs");
|
|
6
6
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
@@ -6998,6 +6998,16 @@ function partMatches(a, b) {
|
|
|
6998
6998
|
if (a.type === "step-start") return Number(a.createdAt) === Number(b.createdAt);
|
|
6999
6999
|
return true;
|
|
7000
7000
|
}
|
|
7001
|
+
/**
|
|
7002
|
+
* @internal
|
|
7003
|
+
* True when the run looped on its own response through a feedback continuation
|
|
7004
|
+
* (`onIterationComplete` feedback). Only then does the response message hold earlier
|
|
7005
|
+
* iterations that output processors must not see again.
|
|
7006
|
+
*/
|
|
7007
|
+
function isFeedbackContinuation(messageList, steps) {
|
|
7008
|
+
if (!steps || steps.length < 2) return false;
|
|
7009
|
+
return messageList.get.response.db().some((message) => message.content.metadata?.iterationFeedback === true);
|
|
7010
|
+
}
|
|
7001
7011
|
/** @internal */
|
|
7002
7012
|
function findIterationOffsetInParts(parts, stepText) {
|
|
7003
7013
|
if (!stepText) return void 0;
|
|
@@ -7050,6 +7060,9 @@ function findStepPartBoundaries(message, steps) {
|
|
|
7050
7060
|
for (const [stepIndex] of steps.entries()) for (const part of parts.slice(offsets[stepIndex], offsets[stepIndex + 1])) if (part.type === "text") part[stepPartIndex] = stepIndex;
|
|
7051
7061
|
return { offsets };
|
|
7052
7062
|
}
|
|
7063
|
+
function joinTextParts(message) {
|
|
7064
|
+
return (message?.content.parts ?? []).map((part) => part.type === "text" ? part.text : "").join("");
|
|
7065
|
+
}
|
|
7053
7066
|
/** @internal */
|
|
7054
7067
|
function clearStepPartIndexes(messages) {
|
|
7055
7068
|
for (const message of messages) for (const part of message.content.parts) delete part[stepPartIndex];
|
|
@@ -7089,7 +7102,11 @@ function reconcileBufferedStepTexts(steps, processedText, processedMessage, step
|
|
|
7089
7102
|
offset += steps[index].text.length;
|
|
7090
7103
|
index++;
|
|
7091
7104
|
}
|
|
7092
|
-
if (index === steps.length)
|
|
7105
|
+
if (index === steps.length) {
|
|
7106
|
+
const appended = processedText.slice(offset);
|
|
7107
|
+
if (appended && steps.length) steps[steps.length - 1].text += appended;
|
|
7108
|
+
return;
|
|
7109
|
+
}
|
|
7093
7110
|
steps[index].text = processedText.slice(offset);
|
|
7094
7111
|
for (const step of steps.slice(index + 1)) step.text = "";
|
|
7095
7112
|
}
|
|
@@ -7882,11 +7899,15 @@ var MastraModelOutput = class extends require_base.MastraBase {
|
|
|
7882
7899
|
}, "response", { merge: false });
|
|
7883
7900
|
const outputTextBeforeProcessing = resolveOutputTextSkippingCompletionChecks(self.messageList);
|
|
7884
7901
|
const stepMessage = resolveOutputMessageSkippingCompletionChecks(self.messageList);
|
|
7885
|
-
const iterationPartOffset = stepMessage ? findIterationPartOffset(self.messageList, stepMessage, lastStepText) : void 0;
|
|
7902
|
+
const iterationPartOffset = stepMessage && isFeedbackContinuation(self.messageList, self.#bufferedSteps) ? findIterationPartOffset(self.messageList, stepMessage, lastStepText) : void 0;
|
|
7886
7903
|
const separatedIteration = stepMessage && iterationPartOffset !== void 0 ? self.messageList.splitResponseMessageAtPartOffset(stepMessage.id, iterationPartOffset) : void 0;
|
|
7887
7904
|
const earlierStepMessage = separatedIteration ? self.messageList.get.response.db().find((message) => message.id === separatedIteration.earlierMessageId) : void 0;
|
|
7888
7905
|
const earlierStepPartBoundaries = separatedIteration ? findStepPartBoundaries(earlierStepMessage, self.#bufferedSteps.slice(0, -1)) : void 0;
|
|
7889
7906
|
const earlierTextBeforeProcessing = earlierStepMessage ? resolveMessageText(earlierStepMessage) : void 0;
|
|
7907
|
+
const wholeTextCandidate = !separatedIteration && stepMessage && self.#bufferedSteps.length > 1 ? joinTextParts(stepMessage) : void 0;
|
|
7908
|
+
const holdsEveryStep = wholeTextCandidate !== void 0 && wholeTextCandidate === self.#bufferedSteps.map((step) => step.text).join("");
|
|
7909
|
+
const wholeStepPartBoundaries = holdsEveryStep ? findStepPartBoundaries(stepMessage, self.#bufferedSteps) : void 0;
|
|
7910
|
+
const wholeTextBeforeProcessing = holdsEveryStep ? wholeTextCandidate : void 0;
|
|
7890
7911
|
const processorStepMessageId = separatedIteration?.currentMessageId ?? stepMessage?.id;
|
|
7891
7912
|
const processorStepMessage = processorStepMessageId ? self.messageList.get.response.db().find((message) => message.id === processorStepMessageId) : void 0;
|
|
7892
7913
|
const processorStepMessageParts = processorStepMessage?.content?.parts;
|
|
@@ -7918,6 +7939,11 @@ var MastraModelOutput = class extends require_base.MastraBase {
|
|
|
7918
7939
|
const stepMessageWasReplaced = separatedIteration && processedStepMessage && processedStepMessage.id !== processorStepMessage?.id;
|
|
7919
7940
|
if (stepMessageWasReplaced && resolveMessageText(processedStepMessage) === processedEarlierText) stepText = "";
|
|
7920
7941
|
outputText = separatedIteration ? stepMessageWasReplaced ? processedOutputText : `${processedEarlierText}${stepText ?? ""}` : processedOutputText;
|
|
7942
|
+
const processedWholeText = wholeTextBeforeProcessing !== void 0 ? processedStepMessage ? joinTextParts(processedStepMessage) : "" : void 0;
|
|
7943
|
+
if (processedWholeText !== void 0 && self.#status !== "canceled" && processedWholeText !== wholeTextBeforeProcessing) {
|
|
7944
|
+
reconcileBufferedStepTexts(self.#bufferedSteps, processedWholeText, processedStepMessage, wholeStepPartBoundaries, wholeTextBeforeProcessing);
|
|
7945
|
+
stepText = lastStep?.text;
|
|
7946
|
+
}
|
|
7921
7947
|
if (processedEarlierText !== void 0) reconcileBufferedStepTexts(self.#bufferedSteps.slice(0, -1), processedEarlierText, processedEarlierMessage, earlierStepPartBoundaries, earlierTextBeforeProcessing);
|
|
7922
7948
|
} finally {
|
|
7923
7949
|
clearStepPartIndexes(self.messageList.get.response.db());
|
|
@@ -10691,6 +10717,12 @@ Object.defineProperty(exports, "hydrateStepResults", {
|
|
|
10691
10717
|
return hydrateStepResults;
|
|
10692
10718
|
}
|
|
10693
10719
|
});
|
|
10720
|
+
Object.defineProperty(exports, "isFeedbackContinuation", {
|
|
10721
|
+
enumerable: true,
|
|
10722
|
+
get: function() {
|
|
10723
|
+
return isFeedbackContinuation;
|
|
10724
|
+
}
|
|
10725
|
+
});
|
|
10694
10726
|
Object.defineProperty(exports, "isMastraTimeoutError", {
|
|
10695
10727
|
enumerable: true,
|
|
10696
10728
|
get: function() {
|
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
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-
|
|
2
|
+
import { d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, p as readModelStreamTransport } from "./llm-zjtMQn7M.js";
|
|
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-RgFlLrxG.js";
|
|
4
4
|
import { S as resolveObservabilityContext, x as createObservabilityContext } from "./observability-D7RNOAPx.js";
|
|
5
5
|
import { t as MastraBase } from "./base-CKLWBhDo.js";
|
|
6
6
|
import { i as MastraError, n as ErrorDomain, o as getErrorFromUnknown, t as ErrorCategory } from "./error-oh2DLsP2.js";
|
|
@@ -6997,6 +6997,16 @@ function partMatches(a, b) {
|
|
|
6997
6997
|
if (a.type === "step-start") return Number(a.createdAt) === Number(b.createdAt);
|
|
6998
6998
|
return true;
|
|
6999
6999
|
}
|
|
7000
|
+
/**
|
|
7001
|
+
* @internal
|
|
7002
|
+
* True when the run looped on its own response through a feedback continuation
|
|
7003
|
+
* (`onIterationComplete` feedback). Only then does the response message hold earlier
|
|
7004
|
+
* iterations that output processors must not see again.
|
|
7005
|
+
*/
|
|
7006
|
+
function isFeedbackContinuation(messageList, steps) {
|
|
7007
|
+
if (!steps || steps.length < 2) return false;
|
|
7008
|
+
return messageList.get.response.db().some((message) => message.content.metadata?.iterationFeedback === true);
|
|
7009
|
+
}
|
|
7000
7010
|
/** @internal */
|
|
7001
7011
|
function findIterationOffsetInParts(parts, stepText) {
|
|
7002
7012
|
if (!stepText) return void 0;
|
|
@@ -7049,6 +7059,9 @@ function findStepPartBoundaries(message, steps) {
|
|
|
7049
7059
|
for (const [stepIndex] of steps.entries()) for (const part of parts.slice(offsets[stepIndex], offsets[stepIndex + 1])) if (part.type === "text") part[stepPartIndex] = stepIndex;
|
|
7050
7060
|
return { offsets };
|
|
7051
7061
|
}
|
|
7062
|
+
function joinTextParts(message) {
|
|
7063
|
+
return (message?.content.parts ?? []).map((part) => part.type === "text" ? part.text : "").join("");
|
|
7064
|
+
}
|
|
7052
7065
|
/** @internal */
|
|
7053
7066
|
function clearStepPartIndexes(messages) {
|
|
7054
7067
|
for (const message of messages) for (const part of message.content.parts) delete part[stepPartIndex];
|
|
@@ -7088,7 +7101,11 @@ function reconcileBufferedStepTexts(steps, processedText, processedMessage, step
|
|
|
7088
7101
|
offset += steps[index].text.length;
|
|
7089
7102
|
index++;
|
|
7090
7103
|
}
|
|
7091
|
-
if (index === steps.length)
|
|
7104
|
+
if (index === steps.length) {
|
|
7105
|
+
const appended = processedText.slice(offset);
|
|
7106
|
+
if (appended && steps.length) steps[steps.length - 1].text += appended;
|
|
7107
|
+
return;
|
|
7108
|
+
}
|
|
7092
7109
|
steps[index].text = processedText.slice(offset);
|
|
7093
7110
|
for (const step of steps.slice(index + 1)) step.text = "";
|
|
7094
7111
|
}
|
|
@@ -7881,11 +7898,15 @@ var MastraModelOutput = class extends MastraBase {
|
|
|
7881
7898
|
}, "response", { merge: false });
|
|
7882
7899
|
const outputTextBeforeProcessing = resolveOutputTextSkippingCompletionChecks(self.messageList);
|
|
7883
7900
|
const stepMessage = resolveOutputMessageSkippingCompletionChecks(self.messageList);
|
|
7884
|
-
const iterationPartOffset = stepMessage ? findIterationPartOffset(self.messageList, stepMessage, lastStepText) : void 0;
|
|
7901
|
+
const iterationPartOffset = stepMessage && isFeedbackContinuation(self.messageList, self.#bufferedSteps) ? findIterationPartOffset(self.messageList, stepMessage, lastStepText) : void 0;
|
|
7885
7902
|
const separatedIteration = stepMessage && iterationPartOffset !== void 0 ? self.messageList.splitResponseMessageAtPartOffset(stepMessage.id, iterationPartOffset) : void 0;
|
|
7886
7903
|
const earlierStepMessage = separatedIteration ? self.messageList.get.response.db().find((message) => message.id === separatedIteration.earlierMessageId) : void 0;
|
|
7887
7904
|
const earlierStepPartBoundaries = separatedIteration ? findStepPartBoundaries(earlierStepMessage, self.#bufferedSteps.slice(0, -1)) : void 0;
|
|
7888
7905
|
const earlierTextBeforeProcessing = earlierStepMessage ? resolveMessageText(earlierStepMessage) : void 0;
|
|
7906
|
+
const wholeTextCandidate = !separatedIteration && stepMessage && self.#bufferedSteps.length > 1 ? joinTextParts(stepMessage) : void 0;
|
|
7907
|
+
const holdsEveryStep = wholeTextCandidate !== void 0 && wholeTextCandidate === self.#bufferedSteps.map((step) => step.text).join("");
|
|
7908
|
+
const wholeStepPartBoundaries = holdsEveryStep ? findStepPartBoundaries(stepMessage, self.#bufferedSteps) : void 0;
|
|
7909
|
+
const wholeTextBeforeProcessing = holdsEveryStep ? wholeTextCandidate : void 0;
|
|
7889
7910
|
const processorStepMessageId = separatedIteration?.currentMessageId ?? stepMessage?.id;
|
|
7890
7911
|
const processorStepMessage = processorStepMessageId ? self.messageList.get.response.db().find((message) => message.id === processorStepMessageId) : void 0;
|
|
7891
7912
|
const processorStepMessageParts = processorStepMessage?.content?.parts;
|
|
@@ -7917,6 +7938,11 @@ var MastraModelOutput = class extends MastraBase {
|
|
|
7917
7938
|
const stepMessageWasReplaced = separatedIteration && processedStepMessage && processedStepMessage.id !== processorStepMessage?.id;
|
|
7918
7939
|
if (stepMessageWasReplaced && resolveMessageText(processedStepMessage) === processedEarlierText) stepText = "";
|
|
7919
7940
|
outputText = separatedIteration ? stepMessageWasReplaced ? processedOutputText : `${processedEarlierText}${stepText ?? ""}` : processedOutputText;
|
|
7941
|
+
const processedWholeText = wholeTextBeforeProcessing !== void 0 ? processedStepMessage ? joinTextParts(processedStepMessage) : "" : void 0;
|
|
7942
|
+
if (processedWholeText !== void 0 && self.#status !== "canceled" && processedWholeText !== wholeTextBeforeProcessing) {
|
|
7943
|
+
reconcileBufferedStepTexts(self.#bufferedSteps, processedWholeText, processedStepMessage, wholeStepPartBoundaries, wholeTextBeforeProcessing);
|
|
7944
|
+
stepText = lastStep?.text;
|
|
7945
|
+
}
|
|
7920
7946
|
if (processedEarlierText !== void 0) reconcileBufferedStepTexts(self.#bufferedSteps.slice(0, -1), processedEarlierText, processedEarlierMessage, earlierStepPartBoundaries, earlierTextBeforeProcessing);
|
|
7921
7947
|
} finally {
|
|
7922
7948
|
clearStepPartIndexes(self.messageList.get.response.db());
|
|
@@ -10300,4 +10326,4 @@ function smoothStream({ delayInMs = 10, chunking = "word" } = {}) {
|
|
|
10300
10326
|
}
|
|
10301
10327
|
});
|
|
10302
10328
|
}
|
|
10303
|
-
export {
|
|
10329
|
+
export { summarizeToolChoiceForSpan as $, commitToolResult as $t, isSignalChunkExcluded as A, safeEnqueue as An, getSnapshotMemoryInfo as At, removeTrailingAssistantGuardContinuations as B, stateColumnsWrite as Bt, stampChunkProducedAt as C, guardStreamWithAbort as Cn, collectTemplateStepIds as Ct, isStructuredOutputError as D, convertFullStreamChunkToUIMessageStream as Dn, validateTemplate as Dt, escapeUnescapedControlCharsInJsonStrings as E, settledOrElapsed as En, traverseMappingPath as Et, endOutputStreamSpanOutsideStep as F, latestStepResults as Ft, FLUSH_HELD_PARTS_KEY as G, diffStateAsJson as Gt, anthropicToolIdFormat as H, unusedStateEntries as Ht, findOwnModelStepSpan as I, materializeState as It, withoutHeldContent as J, getThreadOMMetadata as Jt, REPROCESS_PART_KEY as K, patchState as Kt, runner_exports as L, materializeWorkflowRun as Lt, ProcessorRunner as M, createRunScope as Mn, STEP_RESULT_SUMMARY_FIELDS as Mt, ProcessorState as N, createRunScopeKey as Nn, applyStateColumnsWrite as Nt, asJsonSchema as O, MastraModelInput as On, getStepResult as Ot, endOutputStreamSpanAtStepEnd as P, isStateCheckpointDue as Pt, summarizeProcessorToolsForSpan as Q, setThreadOMMetadata as Qt, isTrailingAssistantGuardContinuation as R, pickStateKeys as Rt, getChunkProducedAt as S, guardStreamUntilMatch as Sn, stepRefId as St, createOutputHandler as T, raceAgainstAbort as Tn, templateReadsState as Tt, cerebrasStripReasoningContent as U, applyStatePatch as Ut, ProviderHistoryCompat as V, summarizeStepResult as Vt, openaiOrphanItemId as W, diffState as Wt, summarizeProcessorModelForSpan as X, isThreadTitlePinned as Xt, summarizeActiveToolsForSpan as Y, isObservationalMemoryEnabled as Yt, summarizeProcessorResultForSpan as Z, parseMemoryRequestContext as Zt, persistProcessorDataChunk as _, DEADLINE_SAVE_CLAIM_HOLD_MS as _n, stubStepResult as _t, convertFullStreamChunkToMastra as a, snapshotToolResult as an, PROCESSOR_ABORT_SIGNAL as at, resolveOutputMessageSkippingCompletionChecks as b, createTimeoutAbortSignal as bn, predicateReadsState as bt, WorkflowRunOutput as c, validationErrorModelOutput as cn, getHydratedStepResult as ct, MastraModelOutput as d, resolveSuspendedToolRunId as dn, lazyStepResults as dt, computeModelOutputProviderMetadata as en, resolveProcessorSpanAttributes as et, clearStepPartIndexes as f, resolveThreadIdFromArgs as fn, loadStepResults as ft, isFeedbackContinuation as g, applyStateSignal as gn, storageV2StepResultAccessors as gt, findStepPartBoundaries as h, tryStreamWithJsonFallback as hn, residentStepResultsLoader as ht, withStreamCaching as i, resolveModelOutputAfterToolResultProcessors as in, createProcessorSendSignal as it, OUTPUT_STREAM_HOOK_DURATION_KEY_PREFIX as j, safeError as jn, STATE_CHECKPOINT_PATCHES as jt, getResponseFormat as k, safeClose as kn, getStepResultAsync as kt, TripWire as l, isProcessorWorkflow as ln, hydrateStepResults as lt, findIterationOffsetInParts as m, tryGenerateWithJsonFallback as mn, residentStepResults as mt, createCachingTransformStream as n, latestProcessedModelOutput as nn, toProcessorSpanPhase as nt, convertMastraChunkToAISDKv5 as o, withAgentWorkflowToolMarker as on, RunJournal as ot, createDestructurableOutput as p, supportedLanguageModelSpecifications as pn, loadedStepResults as pt, takeHeldParts as q, TITLE_PINNED_THREAD_METADATA_KEY as qt, createReplayStream as r, readModelOutput as rn, PROCESSOR_LATE_SIGNAL_SINK as rt, MastraAgentNetworkStream as s, normalizeModelOutput as sn, buildStepResultAccessors as st, smoothStream as t, hasToolResultProcessor as tn, resolveProcessorSpanName as tt, getModelOutputForTripwire as u, isSupportedLanguageModel as un, isStepResultStub as ut, reconcileBufferedStepTexts as v, DEADLINE_SAVE_WAIT_MS as vn, collectMappingStepRefs as vt, markChunkOutputProcessed as w, isMastraTimeoutError as wn, resolveTemplate as wt, resolveProcessorWriterMessageId as x, getAbortReason as xn, resolveStepOutputs as xt, resolveMessageText as y, MastraTimeoutError as yn, collectPredicateStepRefs as yt, needsTrailingAssistantGuard as z, stateBaseOf as zt };
|
|
@@ -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-DGFc1hw3.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-DIzIjDej.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-8lyD6O4o.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-DhQkNDaR.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
5
|
-
const require_message_list = require("./message-list-
|
|
2
|
+
const require_run_registry = require("./run-registry-PiQTSx2Y.cjs");
|
|
3
|
+
const require_stream = require("./stream-BbPZavop.cjs");
|
|
4
|
+
const require_llm = require("./llm-CS6YY_IV.cjs");
|
|
5
|
+
const require_message_list = require("./message-list-C0F2sDNC.cjs");
|
|
6
6
|
// src/tool-loop-agent/utils.ts
|
|
7
7
|
function isToolLoopAgentLike(obj) {
|
|
8
8
|
if (!obj) return false;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { m as generateId } from "./dist-TPVqg8oV.js";
|
|
2
|
-
import { F as Agent } from "./run-registry-
|
|
3
|
-
import {
|
|
4
|
-
import { i as resolveModelConfig } from "./llm-
|
|
5
|
-
import { N as ToolLoopAgent } from "./message-list-
|
|
2
|
+
import { F as Agent } from "./run-registry-D22IF5SK.js";
|
|
3
|
+
import { un as isSupportedLanguageModel } from "./stream-CoQTdzLm.js";
|
|
4
|
+
import { i as resolveModelConfig } from "./llm-zjtMQn7M.js";
|
|
5
|
+
import { N as ToolLoopAgent } from "./message-list-RgFlLrxG.js";
|
|
6
6
|
// src/tool-loop-agent/utils.ts
|
|
7
7
|
function isToolLoopAgentLike(obj) {
|
|
8
8
|
if (!obj) return false;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as MastraError, n as ErrorDomain, o as getErrorFromUnknown, t as ErrorCategory } from "./error-oh2DLsP2.js";
|
|
2
2
|
import { c as registerToolOutputValidationSchema, d as validateToolOutput, f as validateToolSuspendData, h as markBuilderValidatedInput, i as createStandardSchemaIssuesError, n as Tool, o as getValidationIssuePaths, p as createToolObserve, s as isValidationError, u as validateToolInput } from "./tool-Z3bykc1m.js";
|
|
3
3
|
import { i as MastraFGAPermissions } from "./ee-iTj2bRDt-By_B9ngH.js";
|
|
4
|
-
import { a as isToolBackgroundEligible, i as isModelBackgroundOverrideAllowed, n as backgroundOverrideJsonSchema, r as backgroundOverrideZodSchema } from "./background-tasks-
|
|
4
|
+
import { a as isToolBackgroundEligible, i as isModelBackgroundOverrideAllowed, n as backgroundOverrideJsonSchema, r as backgroundOverrideZodSchema } from "./background-tasks-BcU--rXL.js";
|
|
5
5
|
import { t as MastraBase } from "./base-CKLWBhDo.js";
|
|
6
6
|
import { O as executionFailureTermination, b as wrapMastra, x as createObservabilityContext } from "./observability-D7RNOAPx.js";
|
|
7
7
|
import { a as getOrCreateSpan, t as executeWithContext } from "./utils-DU_pU5SK.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
2
2
|
const require_tool = require("./tool-CYlT2UA-.cjs");
|
|
3
3
|
const require_ee_iTj2bRDt = require("./ee-iTj2bRDt-D3-QLGDF.cjs");
|
|
4
|
-
const require_background_tasks = require("./background-tasks-
|
|
4
|
+
const require_background_tasks = require("./background-tasks-DRUHnQOk.cjs");
|
|
5
5
|
const require_base = require("./base-BIzR1D3_.cjs");
|
|
6
6
|
const require_observability = require("./observability-B0R_D1PZ.cjs");
|
|
7
7
|
const require_utils = require("./utils-D-eNsgDM.cjs");
|
package/dist/utils.cjs
CHANGED
|
@@ -4,7 +4,7 @@ const require_deep_equal = require("./deep-equal-TMDmByBC.cjs");
|
|
|
4
4
|
const require_zod_utils = require("./zod-utils-Cl5jw5N_.cjs");
|
|
5
5
|
const require_fetchWithRetry = require("./fetchWithRetry-f5k4p7_1.cjs");
|
|
6
6
|
const require_dynamic_argument = require("./dynamic-argument-CUc1BBOS.cjs");
|
|
7
|
-
const require_utils = require("./utils-
|
|
7
|
+
const require_utils = require("./utils-DtmyBuBT.cjs");
|
|
8
8
|
exports.boundedStringify = require_utils_safe_stringify.boundedStringify;
|
|
9
9
|
exports.checkEvalStorageFields = require_utils.checkEvalStorageFields;
|
|
10
10
|
exports.createMastraProxy = require_utils.createMastraProxy;
|
package/dist/utils.js
CHANGED
|
@@ -3,5 +3,5 @@ import { t as deepEqual } from "./deep-equal-d1xU02ag.js";
|
|
|
3
3
|
import { a as isZodObject, i as isZodArray, r as getZodTypeName, t as getZodDef } from "./zod-utils-BDDS_mxU.js";
|
|
4
4
|
import { t as fetchWithRetry } from "./fetchWithRetry-DFSvpYDT.js";
|
|
5
5
|
import { n as resolveDynamicArgument, t as getRequestUser } from "./dynamic-argument-BzPK3qPN.js";
|
|
6
|
-
import { C as setNestedValue, S as selectFields, _ as parseSqlIdentifier, a as ensureToolProperties, b as removeUndefinedValues, c as isCoreMessage, d as makeCoreTool, f as makeCoreToolV5, g as parseFieldKey, h as omitKeys, i as delay, l as isUiMessage, m as maskStreamTags, n as createMastraProxy, o as generateEmptyFromSchema, p as makeProcessorCoreTool, r as deepMerge, s as getNestedValue, t as checkEvalStorageFields, u as isZodType, v as readPositiveIntEnv, x as resolveSerializedZodOutput, y as rebindProcessorTools } from "./utils-
|
|
6
|
+
import { C as setNestedValue, S as selectFields, _ as parseSqlIdentifier, a as ensureToolProperties, b as removeUndefinedValues, c as isCoreMessage, d as makeCoreTool, f as makeCoreToolV5, g as parseFieldKey, h as omitKeys, i as delay, l as isUiMessage, m as maskStreamTags, n as createMastraProxy, o as generateEmptyFromSchema, p as makeProcessorCoreTool, r as deepMerge, s as getNestedValue, t as checkEvalStorageFields, u as isZodType, v as readPositiveIntEnv, x as resolveSerializedZodOutput, y as rebindProcessorTools } from "./utils-B-3lET9S.js";
|
|
7
7
|
export { boundedStringify, checkEvalStorageFields, createMastraProxy, deepEqual, deepMerge, delay, ensureSerializable, ensureToolProperties, fetchWithRetry, generateEmptyFromSchema, getNestedValue, getRequestUser, getZodDef, getZodTypeName, isBoundedSerializable, isCoreMessage, isUiMessage, isZodArray, isZodObject, isZodType, makeCoreTool, makeCoreToolV5, makeProcessorCoreTool, maskStreamTags, omitKeys, parseFieldKey, parseSqlIdentifier, readPositiveIntEnv, rebindProcessorTools, removeUndefinedValues, resolveDynamicArgument, resolveSerializedZodOutput, safeStringify, selectFields, setNestedValue };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { standardSchemaToJSONSchema, toStandardSchema } from "./schema/index.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Ct as collectTemplateStepIds, Dt as validateTemplate } from "./stream-CoQTdzLm.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
// src/workflows/dynamic/graph.ts
|
|
5
5
|
/**
|
package/dist/vector/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_base = require("../base-BIzR1D3_.cjs");
|
|
3
3
|
const require_error = require("../error-D90lJ6M7.cjs");
|
|
4
|
-
const require_run_registry = require("../run-registry-
|
|
5
|
-
const require_message_list = require("../message-list-
|
|
4
|
+
const require_run_registry = require("../run-registry-PiQTSx2Y.cjs");
|
|
5
|
+
const require_message_list = require("../message-list-C0F2sDNC.cjs");
|
|
6
6
|
const require_dist = require("../dist-P2rjrlmj.cjs");
|
|
7
7
|
const require_dist$1 = require("../dist-CXeCeeW7.cjs");
|
|
8
8
|
const require_vector_filter_index = require("./filter/index.cjs");
|
package/dist/vector/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as MastraBase } from "../base-CKLWBhDo.js";
|
|
2
2
|
import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "../error-oh2DLsP2.js";
|
|
3
|
-
import { Oa as createVectorErrorId, hn as embed$3 } from "../run-registry-
|
|
4
|
-
import { P as embed$2 } from "../message-list-
|
|
3
|
+
import { Oa as createVectorErrorId, hn as embed$3 } from "../run-registry-D22IF5SK.js";
|
|
4
|
+
import { P as embed$2 } from "../message-list-RgFlLrxG.js";
|
|
5
5
|
import { r as embed$1 } from "../dist-TPVqg8oV.js";
|
|
6
6
|
import { n as embed } from "../dist-D3cKCUe-.js";
|
|
7
7
|
import { BaseFilterTranslator } from "./filter/index.js";
|
package/dist/worker/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_worker = require("../worker-
|
|
2
|
+
const require_worker = require("../worker-BgifMkOw.cjs");
|
|
3
3
|
exports.BackgroundTaskWorker = require_worker.BackgroundTaskWorker;
|
|
4
4
|
exports.HttpRemoteStrategy = require_worker.HttpRemoteStrategy;
|
|
5
5
|
exports.InProcessStrategy = require_worker.InProcessStrategy;
|
package/dist/worker/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as BackgroundTaskWorker, s as HttpRemoteStrategy, t as InProcessStrategy, l as MastraWorker, a as OrchestrationWorker, o as PullTransport, r as SchedulerWorker, c as StepExecutionError } from "../worker-
|
|
1
|
+
export { n as BackgroundTaskWorker, s as HttpRemoteStrategy, t as InProcessStrategy, l as MastraWorker, a as OrchestrationWorker, o as PullTransport, r as SchedulerWorker, c as StepExecutionError } from "../worker-CCpSrXBY.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { bt as resolveAgentById } from "./run-registry-
|
|
1
|
+
import { bt as resolveAgentById } from "./run-registry-D22IF5SK.js";
|
|
2
2
|
import { u as RequestContext } from "./request-context-COnZHt2-.js";
|
|
3
|
-
import { l as MastraWorker, o as PullTransport } from "./worker-
|
|
3
|
+
import { l as MastraWorker, o as PullTransport } from "./worker-CCpSrXBY.js";
|
|
4
4
|
import { l as parseFsAgentScheduleRowId } from "./schedules-DZfSx-7P.js";
|
|
5
5
|
// src/schedules/worker.ts
|
|
6
6
|
/** PubSub topic on which the scheduler publishes `agent-schedule.fire` events. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_run_registry = require("./run-registry-
|
|
1
|
+
const require_run_registry = require("./run-registry-PiQTSx2Y.cjs");
|
|
2
2
|
const require_scheduler = require("./scheduler-D00X03jQ.cjs");
|
|
3
|
-
const require_background_tasks = require("./background-tasks-
|
|
3
|
+
const require_background_tasks = require("./background-tasks-DRUHnQOk.cjs");
|
|
4
4
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
5
5
|
// src/worker/worker.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $s as WorkflowEventProcessor, Dc as getStepEntry, Ec as getNestedWorkflow, Fl as waitMs, Pl as assertDrainTimeout, bt as resolveAgentById, ec as StepExecutor, tc as computeScheduleDefinitionHash } from "./run-registry-
|
|
1
|
+
import { $s as WorkflowEventProcessor, Dc as getStepEntry, Ec as getNestedWorkflow, Fl as waitMs, Pl as assertDrainTimeout, bt as resolveAgentById, ec as StepExecutor, tc as computeScheduleDefinitionHash } from "./run-registry-D22IF5SK.js";
|
|
2
2
|
import { t as Scheduler } from "./scheduler-B-VZUvv_.js";
|
|
3
|
-
import { l as BackgroundTaskManager } from "./background-tasks-
|
|
3
|
+
import { l as BackgroundTaskManager } from "./background-tasks-BcU--rXL.js";
|
|
4
4
|
import { u as RequestContext } from "./request-context-COnZHt2-.js";
|
|
5
5
|
// src/worker/worker.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_run_registry = require("./run-registry-
|
|
1
|
+
const require_run_registry = require("./run-registry-PiQTSx2Y.cjs");
|
|
2
2
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
3
|
-
const require_worker = require("./worker-
|
|
3
|
+
const require_worker = require("./worker-BgifMkOw.cjs");
|
|
4
4
|
const require_schedules = require("./schedules-BZS8McF7.cjs");
|
|
5
5
|
// src/schedules/worker.ts
|
|
6
6
|
/** PubSub topic on which the scheduler publishes `agent-schedule.fire` events. */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dn as resolveSuspendedToolRunId } from "./stream-CoQTdzLm.js";
|
|
2
2
|
import "./utils-DU_pU5SK.js";
|
|
3
3
|
import { m as slimProgressChunk } from "./output-helpers-CVzhy1Y0.js";
|
|
4
|
-
import { Ks as createWorkflow, jc as createStep } from "./run-registry-
|
|
5
|
-
import { u as BACKGROUND_TASK_WORKFLOW_ID } from "./background-tasks-
|
|
4
|
+
import { Ks as createWorkflow, jc as createStep } from "./run-registry-D22IF5SK.js";
|
|
5
|
+
import { u as BACKGROUND_TASK_WORKFLOW_ID } from "./background-tasks-BcU--rXL.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
// src/background-tasks/workflow.ts
|
|
8
8
|
const inputSchema = z.object({ taskId: z.string() });
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_stream = require("./stream-
|
|
1
|
+
const require_stream = require("./stream-BbPZavop.cjs");
|
|
2
2
|
require("./utils-D-eNsgDM.cjs");
|
|
3
3
|
const require_output_helpers = require("./output-helpers-DgsH4aTb.cjs");
|
|
4
|
-
const require_run_registry = require("./run-registry-
|
|
5
|
-
const require_background_tasks = require("./background-tasks-
|
|
4
|
+
const require_run_registry = require("./run-registry-PiQTSx2Y.cjs");
|
|
5
|
+
const require_background_tasks = require("./background-tasks-DRUHnQOk.cjs");
|
|
6
6
|
let zod = require("zod");
|
|
7
7
|
// src/background-tasks/workflow.ts
|
|
8
8
|
const inputSchema = zod.z.object({ taskId: zod.z.string() });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_builder = require("../../builder-
|
|
2
|
+
const require_builder = require("../../builder-Bufqrcz3.cjs");
|
|
3
3
|
exports.WORKFLOW_BUILDER_AUTHORING_CONSTRAINTS = require_builder.WORKFLOW_BUILDER_AUTHORING_CONSTRAINTS;
|
|
4
4
|
exports.WORKFLOW_BUILDER_AUTHORING_PLAYBOOK = require_builder.WORKFLOW_BUILDER_AUTHORING_PLAYBOOK;
|
|
5
5
|
exports.WORKFLOW_BUILDER_MAPPING_CONFIG_DESCRIPTION = require_builder.WORKFLOW_BUILDER_MAPPING_CONFIG_DESCRIPTION;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { U as WORKFLOW_BUILDER_AUTHORING_CONSTRAINTS, W as WORKFLOW_BUILDER_AUTHORING_PLAYBOOK, i as WORKFLOW_BUILDER_MAPPING_CONFIG_DESCRIPTION, t as WORKFLOW_BUILDER_SUPPORTED_STEP_TYPES, B as compareWorkflowBuilderSchemas, r as createWorkflowBuilderAgent, a as deleteStoredWorkflowResponseSchema, V as inspectWorkflowBuilderSchemas, o as listStoredWorkflowsResponseSchema, n as normalizeWorkflowBuilderDefinition, H as preflightWorkflowDefinition, s as storedWorkflowDefinitionSchema, c as upsertStoredWorkflowResponseSchema, l as workflowBuilderAgentEntryInputSchema, u as workflowBuilderAgentEntrySchema, d as workflowBuilderClassifierEntryInputSchema, f as workflowBuilderClassifierEntrySchema, p as workflowBuilderConditionalEntryInputSchema, m as workflowBuilderConditionalEntrySchema, h as workflowBuilderDefinitionInputSchema, g as workflowBuilderDefinitionSchema, _ as workflowBuilderForeachEntryInputSchema, v as workflowBuilderForeachEntrySchema, y as workflowBuilderGraphEntryInputSchema, b as workflowBuilderGraphEntrySchema, x as workflowBuilderLoopEntryInputSchema, S as workflowBuilderLoopEntrySchema, C as workflowBuilderMappingConfigSchema, w as workflowBuilderMappingDescriptorSchema, T as workflowBuilderMappingEntryInputSchema, E as workflowBuilderMappingEntrySchema, D as workflowBuilderNestedWorkflowEntryInputSchema, O as workflowBuilderNestedWorkflowEntrySchema, k as workflowBuilderParallelEntryInputSchema, A as workflowBuilderParallelEntrySchema, j as workflowBuilderPredicateSchema, M as workflowBuilderScheduleConfigSchema, N as workflowBuilderScheduleSchema, P as workflowBuilderSleepEntryInputSchema, F as workflowBuilderSleepEntrySchema, I as workflowBuilderSleepUntilEntryInputSchema, L as workflowBuilderSleepUntilEntrySchema, R as workflowBuilderToolEntryInputSchema, z as workflowBuilderToolEntrySchema } from "../../builder-
|
|
1
|
+
export { U as WORKFLOW_BUILDER_AUTHORING_CONSTRAINTS, W as WORKFLOW_BUILDER_AUTHORING_PLAYBOOK, i as WORKFLOW_BUILDER_MAPPING_CONFIG_DESCRIPTION, t as WORKFLOW_BUILDER_SUPPORTED_STEP_TYPES, B as compareWorkflowBuilderSchemas, r as createWorkflowBuilderAgent, a as deleteStoredWorkflowResponseSchema, V as inspectWorkflowBuilderSchemas, o as listStoredWorkflowsResponseSchema, n as normalizeWorkflowBuilderDefinition, H as preflightWorkflowDefinition, s as storedWorkflowDefinitionSchema, c as upsertStoredWorkflowResponseSchema, l as workflowBuilderAgentEntryInputSchema, u as workflowBuilderAgentEntrySchema, d as workflowBuilderClassifierEntryInputSchema, f as workflowBuilderClassifierEntrySchema, p as workflowBuilderConditionalEntryInputSchema, m as workflowBuilderConditionalEntrySchema, h as workflowBuilderDefinitionInputSchema, g as workflowBuilderDefinitionSchema, _ as workflowBuilderForeachEntryInputSchema, v as workflowBuilderForeachEntrySchema, y as workflowBuilderGraphEntryInputSchema, b as workflowBuilderGraphEntrySchema, x as workflowBuilderLoopEntryInputSchema, S as workflowBuilderLoopEntrySchema, C as workflowBuilderMappingConfigSchema, w as workflowBuilderMappingDescriptorSchema, T as workflowBuilderMappingEntryInputSchema, E as workflowBuilderMappingEntrySchema, D as workflowBuilderNestedWorkflowEntryInputSchema, O as workflowBuilderNestedWorkflowEntrySchema, k as workflowBuilderParallelEntryInputSchema, A as workflowBuilderParallelEntrySchema, j as workflowBuilderPredicateSchema, M as workflowBuilderScheduleConfigSchema, N as workflowBuilderScheduleSchema, P as workflowBuilderSleepEntryInputSchema, F as workflowBuilderSleepEntrySchema, I as workflowBuilderSleepUntilEntryInputSchema, L as workflowBuilderSleepUntilEntrySchema, R as workflowBuilderToolEntryInputSchema, z as workflowBuilderToolEntrySchema } from "../../builder-TuIc5l7X.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_run_registry = require("../../run-registry-
|
|
2
|
+
const require_run_registry = require("../../run-registry-PiQTSx2Y.cjs");
|
|
3
3
|
exports.EventedExecutionEngine = require_run_registry.EventedExecutionEngine;
|
|
4
4
|
exports.EventedRun = require_run_registry.EventedRun;
|
|
5
5
|
exports.EventedWorkflow = require_run_registry.EventedWorkflow;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Tc as EventedExecutionEngine, qs as EventedRun, Js as EventedWorkflow, ec as StepExecutor, $s as WorkflowEventProcessor, Ys as cloneStep, Xs as cloneWorkflow, Zs as createStep, Qs as createWorkflow } from "../../run-registry-
|
|
1
|
+
export { Tc as EventedExecutionEngine, qs as EventedRun, Js as EventedWorkflow, ec as StepExecutor, $s as WorkflowEventProcessor, Ys as cloneStep, Xs as cloneWorkflow, Zs as createStep, Qs as createWorkflow } from "../../run-registry-D22IF5SK.js";
|
package/dist/workflows/index.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_run_registry = require("../run-registry-
|
|
3
|
-
const require_stream = require("../stream-
|
|
2
|
+
const require_run_registry = require("../run-registry-PiQTSx2Y.cjs");
|
|
3
|
+
const require_stream = require("../stream-BbPZavop.cjs");
|
|
4
4
|
const require_predicate_index = require("../predicate/index.cjs");
|
|
5
5
|
const require_schedules = require("../schedules-BZS8McF7.cjs");
|
|
6
6
|
const require_scheduler = require("../scheduler-D00X03jQ.cjs");
|
|
7
|
-
const require_validate = require("../validate-
|
|
8
|
-
const require_rehydrate = require("../rehydrate-
|
|
7
|
+
const require_validate = require("../validate-vucjWXcz.cjs");
|
|
8
|
+
const require_rehydrate = require("../rehydrate-BzD6UX8f.cjs");
|
|
9
9
|
// src/workflows/state-reader.ts
|
|
10
10
|
const getStep = (state, stepId) => state.steps?.[stepId];
|
|
11
11
|
const getFirstStepResult = (step) => {
|
package/dist/workflows/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $c as createMappingStep, Ac as cloneStep, Al as validateStepSuspendData, Cl as resolveForeachConcurrency, Dl as validateStepRequestContext, El as validateStepInput, Fc as evaluatePredicate, Gs as createEventedWorkflow, Il as workflowTermination, Ks as createWorkflow, Mc as isProcessor, Ml as getEntryId, Nc as mapVariable, Nl as getEntryWorkflow, Oc as Run, Ol as validateStepResumeData, Pc as predicateToCondition, Sl as omitPriorSuspensionFields, Tl as setLongTimeout, Vc as DefaultExecutionEngine, Ws as cloneWorkflow, Yc as ExecutionEngine, _l as getStepIds, al as abortableSleep, bl as isSingleStepEntry, cl as cleanStepResult, dl as createTimeTravelExecutionParams, el as createStepFromAgent, fl as defineLazyWriter, gl as getSingleStepEntryId, hl as getResumeLabelsByStepId, il as RESUME_SNAPSHOT_WAIT_STATUSES, jc as createStep, jl as waitForSuspendedSnapshot, kc as Workflow, kl as validateStepStateData, ll as createDeprecationProxy, ml as getRestartStartIndex, nl as createStepFromTool, ol as applyStateDelta, pl as defineStateAccessors, rl as RESUME_SNAPSHOT_POLL_INTERVAL_MS, sl as assertTimeTravelGraphMatchesSnapshot, tc as computeScheduleDefinitionHash, tl as createStepFromClassifier, ul as createRestartExecutionParams, vl as hydrateSerializedStepErrors, wl as runCountDeprecationMessage, xl as omitPriorCompletionFields, yl as isEntryFinished } from "../run-registry-
|
|
2
|
-
import {
|
|
1
|
+
import { $c as createMappingStep, Ac as cloneStep, Al as validateStepSuspendData, Cl as resolveForeachConcurrency, Dl as validateStepRequestContext, El as validateStepInput, Fc as evaluatePredicate, Gs as createEventedWorkflow, Il as workflowTermination, Ks as createWorkflow, Mc as isProcessor, Ml as getEntryId, Nc as mapVariable, Nl as getEntryWorkflow, Oc as Run, Ol as validateStepResumeData, Pc as predicateToCondition, Sl as omitPriorSuspensionFields, Tl as setLongTimeout, Vc as DefaultExecutionEngine, Ws as cloneWorkflow, Yc as ExecutionEngine, _l as getStepIds, al as abortableSleep, bl as isSingleStepEntry, cl as cleanStepResult, dl as createTimeTravelExecutionParams, el as createStepFromAgent, fl as defineLazyWriter, gl as getSingleStepEntryId, hl as getResumeLabelsByStepId, il as RESUME_SNAPSHOT_WAIT_STATUSES, jc as createStep, jl as waitForSuspendedSnapshot, kc as Workflow, kl as validateStepStateData, ll as createDeprecationProxy, ml as getRestartStartIndex, nl as createStepFromTool, ol as applyStateDelta, pl as defineStateAccessors, rl as RESUME_SNAPSHOT_POLL_INTERVAL_MS, sl as assertTimeTravelGraphMatchesSnapshot, tc as computeScheduleDefinitionHash, tl as createStepFromClassifier, ul as createRestartExecutionParams, vl as hydrateSerializedStepErrors, wl as runCountDeprecationMessage, xl as omitPriorCompletionFields, yl as isEntryFinished } from "../run-registry-D22IF5SK.js";
|
|
2
|
+
import { Ot as getStepResult, kt as getStepResultAsync } from "../stream-CoQTdzLm.js";
|
|
3
3
|
import { derivePredicateLabel, predicateSchema } from "../predicate/index.js";
|
|
4
4
|
import { _ as validateCron, h as computeNextFireAt } from "../schedules-DZfSx-7P.js";
|
|
5
5
|
import { n as WorkflowScheduler, t as Scheduler } from "../scheduler-B-VZUvv_.js";
|
|
6
|
-
import { a as jsonSchemaToZod, c as analyzeMapConfig, d as toJsonSchemaOrUndefined, f as validateWorkflowRefs, h as forEachSingleStepEntryWithPath, i as validateWorkflowSchemas, l as parseMapConfig, m as forEachSingleStepEntry, n as validateDynamicWorkflow, o as validateStorableJsonSchema, p as collectNestedWorkflowIds, r as validateWorkflowStructure, s as inferGraphSchemas, t as assertValidDynamicWorkflow, u as schemaCompatibility } from "../validate-
|
|
7
|
-
import { n as entryOptionFields, r as toStorableGraph, t as rehydrateWorkflow } from "../rehydrate-
|
|
6
|
+
import { a as jsonSchemaToZod, c as analyzeMapConfig, d as toJsonSchemaOrUndefined, f as validateWorkflowRefs, h as forEachSingleStepEntryWithPath, i as validateWorkflowSchemas, l as parseMapConfig, m as forEachSingleStepEntry, n as validateDynamicWorkflow, o as validateStorableJsonSchema, p as collectNestedWorkflowIds, r as validateWorkflowStructure, s as inferGraphSchemas, t as assertValidDynamicWorkflow, u as schemaCompatibility } from "../validate-CO4rWYyH.js";
|
|
7
|
+
import { n as entryOptionFields, r as toStorableGraph, t as rehydrateWorkflow } from "../rehydrate-DEDxsr6E.js";
|
|
8
8
|
// src/workflows/state-reader.ts
|
|
9
9
|
const getStep = (state, stepId) => state.steps?.[stepId];
|
|
10
10
|
const getFirstStepResult = (step) => {
|
package/dist/workspace/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_workspace = require("../workspace-
|
|
2
|
+
const require_workspace = require("../workspace-C5lXteRU.cjs");
|
|
3
3
|
const require_errors = require("../errors-D5kMB1FQ.cjs");
|
|
4
4
|
const require_workspace_skills = require("../workspace-skills-BcquhPDn.cjs");
|
|
5
5
|
exports.CompositeFilesystem = require_workspace.CompositeFilesystem;
|
package/dist/workspace/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as SandboxAbortError, A as deleteFileTool, B as MastraSandbox, C as fileStatTool, E as truncateOutput, F as LocalSandbox, G as supportsComputer, H as UnsupportedStdinCloseError, I as detectIsolation, J as MountManager, K as supportsNetworking, L as getRecommendedIsolation, M as requireFilesystem, N as requireSandbox, P as requireWorkspace, Q as MountNotSupportedError, R as isIsolationAvailable, S as indexContentTool, T as DEFAULT_TAIL_LINES, U as MAX_SANDBOX_FILE_MODE, V as ProcessHandle, W as assertModesUnsupported, X as IsolationUnavailableError, Y as FilesystemNotMountableError, Z as MountError, _ as writeFileTool, a as describeFactorySandbox, b as mkdirTool, c as Workspace, ct as MastraFilesystem, d as collectSkillForPublish, dt as WORKSPACE_TOOLS, et as SandboxError, f as publishSkillFromSource, ft as WORKSPACE_TOOLS_PREFIX, g as resolveToolConfig, h as createWorkspaceTools, i as FactorySandbox, it as SandboxUnsupportedFeatureError, j as applyPatchTool, k as editFileTool, l as createSkillTools, lt as CompositeFilesystem, m as VersionedSkillSource, n as createRecreateSandboxTool, nt as SandboxNotReadyError, o as isFactorySandbox, p as CompositeVersionedSkillSource, q as validateSandboxFileMode, r as FACTORY_SANDBOX_BRAND, rt as SandboxTimeoutError, s as normalizeFactorySandboxSettings, st as LocalFilesystem, t as RECREATE_SANDBOX_TOOL_ID, tt as SandboxExecutionError, u as formatSkillActivation, ut as callLifecycle, v as searchTool, w as executeCommandTool, x as listFilesTool, y as readFileTool, z as SandboxProcessManager } from "../workspace-
|
|
1
|
+
import { $ as SandboxAbortError, A as deleteFileTool, B as MastraSandbox, C as fileStatTool, E as truncateOutput, F as LocalSandbox, G as supportsComputer, H as UnsupportedStdinCloseError, I as detectIsolation, J as MountManager, K as supportsNetworking, L as getRecommendedIsolation, M as requireFilesystem, N as requireSandbox, P as requireWorkspace, Q as MountNotSupportedError, R as isIsolationAvailable, S as indexContentTool, T as DEFAULT_TAIL_LINES, U as MAX_SANDBOX_FILE_MODE, V as ProcessHandle, W as assertModesUnsupported, X as IsolationUnavailableError, Y as FilesystemNotMountableError, Z as MountError, _ as writeFileTool, a as describeFactorySandbox, b as mkdirTool, c as Workspace, ct as MastraFilesystem, d as collectSkillForPublish, dt as WORKSPACE_TOOLS, et as SandboxError, f as publishSkillFromSource, ft as WORKSPACE_TOOLS_PREFIX, g as resolveToolConfig, h as createWorkspaceTools, i as FactorySandbox, it as SandboxUnsupportedFeatureError, j as applyPatchTool, k as editFileTool, l as createSkillTools, lt as CompositeFilesystem, m as VersionedSkillSource, n as createRecreateSandboxTool, nt as SandboxNotReadyError, o as isFactorySandbox, p as CompositeVersionedSkillSource, q as validateSandboxFileMode, r as FACTORY_SANDBOX_BRAND, rt as SandboxTimeoutError, s as normalizeFactorySandboxSettings, st as LocalFilesystem, t as RECREATE_SANDBOX_TOOL_ID, tt as SandboxExecutionError, u as formatSkillActivation, ut as callLifecycle, v as searchTool, w as executeCommandTool, x as listFilesTool, y as readFileTool, z as SandboxProcessManager } from "../workspace-CnmmMou8.js";
|
|
2
2
|
import { _ as WorkspaceError, a as FileReadRequiredError, b as WorkspaceReadOnlyError, c as FilesystemNotReadyError, d as PermissionError, f as SandboxFeatureNotSupportedError, g as UnsupportedGrepPatternError, h as StaleFileError, i as FileNotFoundError, l as IsDirectoryError, m as SearchNotAvailableError, n as DirectoryNotFoundError, o as FilesystemError, p as SandboxNotAvailableError, r as FileExistsError, s as FilesystemNotAvailableError, t as DirectoryNotEmptyError, u as NotDirectoryError, v as WorkspaceNotAvailableError, y as WorkspaceNotReadyError } from "../errors-CzFYpCHw.js";
|
|
3
3
|
import { b as getMimeType, f as createGlobMatcher, h as matchGlob, l as LocalSkillSource, m as isGlobPattern, p as extractGlobBase } from "../workspace-skills-38OY32_b.js";
|
|
4
4
|
export { CompositeFilesystem, CompositeVersionedSkillSource, DEFAULT_TAIL_LINES, DirectoryNotEmptyError, DirectoryNotFoundError, FACTORY_SANDBOX_BRAND, FactorySandbox, FileExistsError, FileNotFoundError, FileReadRequiredError, FilesystemError, FilesystemNotAvailableError, FilesystemNotMountableError, FilesystemNotReadyError, IsDirectoryError, IsolationUnavailableError, LocalFilesystem, LocalSandbox, LocalSkillSource, MAX_SANDBOX_FILE_MODE, MastraFilesystem, MastraSandbox, MountError, MountManager, MountNotSupportedError, NotDirectoryError, PermissionError, ProcessHandle, RECREATE_SANDBOX_TOOL_ID, SandboxAbortError, SandboxError, SandboxExecutionError, SandboxFeatureNotSupportedError, SandboxNotAvailableError, SandboxNotReadyError, SandboxProcessManager, SandboxTimeoutError, SandboxUnsupportedFeatureError, SearchNotAvailableError, StaleFileError, UnsupportedGrepPatternError, UnsupportedStdinCloseError, VersionedSkillSource, WORKSPACE_TOOLS, WORKSPACE_TOOLS_PREFIX, Workspace, WorkspaceError, WorkspaceNotAvailableError, WorkspaceNotReadyError, WorkspaceReadOnlyError, applyPatchTool, assertModesUnsupported, callLifecycle, collectSkillForPublish, createGlobMatcher, createRecreateSandboxTool, createSkillTools, createWorkspaceTools, deleteFileTool, describeFactorySandbox, detectIsolation, editFileTool, executeCommandTool, extractGlobBase, fileStatTool, formatSkillActivation, getMimeType, getRecommendedIsolation, indexContentTool, isFactorySandbox, isGlobPattern, isIsolationAvailable, listFilesTool, matchGlob, mkdirTool, normalizeFactorySandboxSettings, publishSkillFromSource, readFileTool, requireFilesystem, requireSandbox, requireWorkspace, resolveToolConfig, searchTool, supportsComputer, supportsNetworking, truncateOutput, validateSandboxFileMode, writeFileTool };
|
|
@@ -38,6 +38,15 @@ export interface LocalSandboxOptions extends Omit<MastraSandboxOptions, 'process
|
|
|
38
38
|
id?: string;
|
|
39
39
|
/** Working directory for command execution */
|
|
40
40
|
workingDirectory?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Explicit shell for non-isolated Unix execution. Use an absolute executable path.
|
|
43
|
+
* Set nativePipefail only if known for this exact executable when invoked with -c;
|
|
44
|
+
* the capability must remain valid if the executable or its startup configuration changes.
|
|
45
|
+
*/
|
|
46
|
+
shell?: {
|
|
47
|
+
path: string;
|
|
48
|
+
nativePipefail?: boolean;
|
|
49
|
+
};
|
|
41
50
|
/**
|
|
42
51
|
* Environment variables to set for command execution.
|
|
43
52
|
* PATH is included by default unless overridden (needed for finding executables).
|
|
@@ -180,6 +189,8 @@ export declare class LocalSandbox extends MastraSandbox<string> {
|
|
|
180
189
|
* unlike the base getter this never returns `undefined`.
|
|
181
190
|
*/
|
|
182
191
|
get workingDirectory(): string;
|
|
192
|
+
readonly commandShell?: string;
|
|
193
|
+
readonly nativePipefail?: boolean;
|
|
183
194
|
constructor(options?: LocalSandboxOptions);
|
|
184
195
|
/**
|
|
185
196
|
* Construct a sibling `LocalSandbox` that inherits this sandbox's
|
|
@@ -264,6 +264,8 @@ export interface WorkspaceSandbox extends SandboxLifecycle<SandboxInfo> {
|
|
|
264
264
|
readonly name: string;
|
|
265
265
|
/** Provider type identifier */
|
|
266
266
|
readonly provider: string;
|
|
267
|
+
/** Native pipefail support guaranteed by the shell used for string commands; unset if unknown. */
|
|
268
|
+
readonly nativePipefail?: boolean;
|
|
267
269
|
/**
|
|
268
270
|
* The provider's physical, reattachable sandbox id, resolved after the VM is
|
|
269
271
|
* started (connected or created). Distinct from `id`, which is the logical
|