@mastra/core 1.87.0-alpha.7 → 1.87.0-alpha.9
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-QGBVBDRi.cjs → agent-controller-ZCQy7cOG.cjs} +7 -7
- package/dist/{agent-controller-GM-2_7C2.js → agent-controller-fazk0U_b.js} +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-B63welNM.cjs} +1 -1
- package/dist/{background-tasks-lHCVpHbm.js → background-tasks-DlLB_pJR.js} +1 -1
- package/dist/browser/index.cjs +2 -2
- package/dist/browser/index.js +2 -2
- package/dist/{builder-C9UYOrxv.js → builder-D82iR2oQ.js} +2 -2
- package/dist/{builder-mGGr3IhH.cjs → builder-DCaL4xmU.cjs} +2 -2
- package/dist/capabilities/302ai.json +196 -196
- package/dist/capabilities/abliteratedllm.json +43 -34
- package/dist/capabilities/abliteration-ai.json +9 -9
- package/dist/capabilities/above.json +18 -18
- package/dist/capabilities/adaption.json +12 -12
- package/dist/capabilities/adzuki.json +28 -28
- package/dist/capabilities/agentrouter.json +10 -10
- package/dist/capabilities/agnes.json +2 -2
- package/dist/capabilities/ai-router.json +6 -6
- package/dist/capabilities/aiand.json +20 -20
- package/dist/capabilities/aigrow.json +10 -10
- package/dist/capabilities/aimlapi.json +143 -143
- package/dist/capabilities/aipg.json +2 -2
- package/dist/capabilities/aixy.json +23 -23
- package/dist/capabilities/aki-io.json +14 -14
- package/dist/capabilities/alibaba-cn.json +100 -94
- 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 +47 -47
- package/dist/capabilities/alibaba-token-plan.json +47 -47
- package/dist/capabilities/alibaba.json +63 -63
- package/dist/capabilities/ambient.json +14 -14
- package/dist/capabilities/amd.json +10 -10
- package/dist/capabilities/anthropic.json +42 -42
- package/dist/capabilities/anyapi.json +47 -47
- package/dist/capabilities/arcee.json +10 -10
- package/dist/capabilities/augure.json +5 -5
- package/dist/capabilities/auriko.json +21 -21
- package/dist/capabilities/bailing.json +4 -4
- package/dist/capabilities/baseten.json +34 -34
- package/dist/capabilities/bee.json +3 -3
- package/dist/capabilities/berget.json +18 -5
- package/dist/capabilities/bothub.json +15 -15
- package/dist/capabilities/boundless.json +35 -35
- package/dist/capabilities/bumo.json +43 -43
- package/dist/capabilities/byteplus.json +29 -29
- package/dist/capabilities/cheapaimodel.json +6 -6
- package/dist/capabilities/cheapest-token.json +28 -28
- package/dist/capabilities/chutes.json +9 -9
- package/dist/capabilities/clarifai.json +2 -2
- package/dist/capabilities/claudinio.json +10 -1
- package/dist/capabilities/cline-pass.json +40 -40
- package/dist/capabilities/cloudcode.json +10 -17
- package/dist/capabilities/cloudferro-sherlock.json +4 -4
- package/dist/capabilities/cloudflare-workers-ai.json +20 -20
- package/dist/capabilities/commandcode.json +148 -148
- package/dist/capabilities/concentrate.json +268 -268
- package/dist/capabilities/cortecs.json +104 -104
- package/dist/capabilities/crossmodel.json +172 -172
- package/dist/capabilities/crusoe.json +35 -6
- package/dist/capabilities/daoxe.json +8 -8
- package/dist/capabilities/databricks.json +126 -126
- package/dist/capabilities/deepinfra.json +105 -105
- package/dist/capabilities/deepseek.json +4 -4
- package/dist/capabilities/digitalocean.json +115 -115
- package/dist/capabilities/dothoosh.json +32 -32
- package/dist/capabilities/doubleword.json +26 -26
- package/dist/capabilities/edenai.json +281 -277
- package/dist/capabilities/empiriolabs.json +164 -164
- package/dist/capabilities/engy.json +10 -10
- package/dist/capabilities/entrim.json +5 -5
- package/dist/capabilities/evroc.json +13 -13
- package/dist/capabilities/ezkielyna.json +8 -8
- package/dist/capabilities/fastrouter.json +88 -88
- package/dist/capabilities/fireworks-ai.json +92 -92
- package/dist/capabilities/fortytwo.json +9 -3
- package/dist/capabilities/freemodel.json +18 -18
- package/dist/capabilities/friendli.json +8 -8
- package/dist/capabilities/frogbot.json +100 -100
- package/dist/capabilities/gisoo.json +20 -20
- package/dist/capabilities/gmicloud.json +16 -16
- package/dist/capabilities/google.json +48 -48
- package/dist/capabilities/graphn.json +13 -13
- package/dist/capabilities/greenpt.json +37 -37
- package/dist/capabilities/groq.json +2 -2
- package/dist/capabilities/helicone.json +78 -78
- package/dist/capabilities/hetzner.json +35 -3
- package/dist/capabilities/hostinger-router.json +14 -14
- package/dist/capabilities/hpc-ai.json +11 -11
- package/dist/capabilities/huawei-maas.json +14 -14
- package/dist/capabilities/hubris.json +31 -31
- package/dist/capabilities/huggingface.json +84 -174
- package/dist/capabilities/humain.json +2 -2
- package/dist/capabilities/hyper.json +19 -19
- package/dist/capabilities/impossibl.json +171 -171
- package/dist/capabilities/inception.json +3 -3
- package/dist/capabilities/inceptron.json +4 -4
- package/dist/capabilities/inco.json +4 -4
- package/dist/capabilities/infer.json +19 -19
- package/dist/capabilities/inferall.json +11 -11
- package/dist/capabilities/inference-coop.json +15 -15
- package/dist/capabilities/inferenceapis.json +24 -24
- package/dist/capabilities/inferris.json +4 -4
- package/dist/capabilities/infersia.json +13 -13
- package/dist/capabilities/inferx.json +2 -2
- package/dist/capabilities/infomaniak.json +2 -2
- package/dist/capabilities/io-net.json +4 -4
- package/dist/capabilities/isoquant.json +4 -4
- package/dist/capabilities/iteracompute.json +56 -56
- package/dist/capabilities/jad-ai.json +3 -3
- package/dist/capabilities/jalapeno.json +10 -10
- package/dist/capabilities/jiekou.json +64 -64
- package/dist/capabilities/jzstoken.json +50 -51
- package/dist/capabilities/keln.json +22 -22
- package/dist/capabilities/kenari.json +123 -123
- package/dist/capabilities/kilo.json +601 -601
- package/dist/capabilities/kimi-code-plan-cn.json +6 -6
- package/dist/capabilities/kimi-code-plan-global.json +6 -6
- package/dist/capabilities/kitani.json +6 -6
- package/dist/capabilities/klavo.json +22 -22
- package/dist/capabilities/korouter.json +34 -34
- package/dist/capabilities/kunavo.json +7 -7
- package/dist/capabilities/liquid.json +12 -12
- package/dist/capabilities/llmgateway-providers.json +934 -934
- package/dist/capabilities/llmgateway.json +334 -334
- package/dist/capabilities/llmtr.json +34 -34
- package/dist/capabilities/lowrouter.json +58 -58
- package/dist/capabilities/lyceum.json +18 -10
- package/dist/capabilities/melious.json +17 -17
- package/dist/capabilities/merge-gateway.json +255 -254
- package/dist/capabilities/meta.json +10 -10
- package/dist/capabilities/minimax-cn-coding-plan.json +5 -5
- package/dist/capabilities/minimax-cn.json +5 -5
- package/dist/capabilities/minimax-coding-plan.json +5 -5
- package/dist/capabilities/minimax.json +5 -5
- package/dist/capabilities/mistral.json +22 -22
- package/dist/capabilities/mixlayer.json +2 -2
- package/dist/capabilities/modal.json +12 -12
- package/dist/capabilities/model-oracle-ai.json +26 -26
- package/dist/capabilities/modelis.json +17 -17
- package/dist/capabilities/modelscope.json +2 -2
- package/dist/capabilities/modular.json +30 -8
- package/dist/capabilities/moneo.json +11 -11
- package/dist/capabilities/moonshotai-cn.json +6 -6
- package/dist/capabilities/moonshotai.json +6 -6
- package/dist/capabilities/morph.json +18 -18
- package/dist/capabilities/munito-eu.json +6 -6
- package/dist/capabilities/munito.json +8 -8
- package/dist/capabilities/nan.json +23 -23
- package/dist/capabilities/nano-gpt.json +565 -571
- package/dist/capabilities/nearai.json +93 -93
- package/dist/capabilities/nebius.json +32 -32
- package/dist/capabilities/neon.json +129 -129
- package/dist/capabilities/neuralwatt.json +42 -42
- package/dist/capabilities/nokeep.json +5 -5
- package/dist/capabilities/novita-ai.json +135 -135
- package/dist/capabilities/nvidia.json +49 -32
- package/dist/capabilities/oathbreaker.json +26 -3
- package/dist/capabilities/obscurify.json +27 -27
- package/dist/capabilities/oci.json +6 -6
- package/dist/capabilities/ofox.json +302 -302
- package/dist/capabilities/ollama-cloud.json +59 -59
- package/dist/capabilities/openai.json +58 -58
- package/dist/capabilities/opencode-go.json +78 -78
- package/dist/capabilities/openreason.json +5 -5
- package/dist/capabilities/openrouter.json +526 -526
- package/dist/capabilities/opper.json +27 -27
- package/dist/capabilities/orcarouter.json +243 -243
- package/dist/capabilities/outerlabs.json +32 -32
- package/dist/capabilities/ovhcloud.json +21 -21
- package/dist/capabilities/pareto.json +6 -6
- package/dist/capabilities/perplexity-agent.json +57 -57
- package/dist/capabilities/perplexity.json +2 -2
- package/dist/capabilities/phala.json +34 -34
- package/dist/capabilities/pioneer.json +34 -34
- package/dist/capabilities/poe.json +129 -129
- package/dist/capabilities/poolside.json +3 -3
- package/dist/capabilities/powerspring.json +12 -12
- package/dist/capabilities/primalabs.json +10 -10
- package/dist/capabilities/prime.json +113 -113
- package/dist/capabilities/privatemode-ai.json +14 -14
- package/dist/capabilities/proxystacks.json +7 -7
- package/dist/capabilities/qiniu-ai.json +14 -14
- package/dist/capabilities/refuseless.json +6 -6
- package/dist/capabilities/regolo-ai.json +10 -10
- package/dist/capabilities/requesty.json +371 -167
- package/dist/capabilities/ruapi.json +33 -17
- package/dist/capabilities/runcrate.json +10 -10
- package/dist/capabilities/runinfra.json +14 -14
- package/dist/capabilities/sakana.json +7 -7
- package/dist/capabilities/sambanova.json +9 -9
- package/dist/capabilities/sandbase.json +18 -18
- package/dist/capabilities/sarvam.json +11 -11
- package/dist/capabilities/scaleway.json +19 -19
- package/dist/capabilities/scnet-token-plan.json +11 -11
- package/dist/capabilities/scx-ai.json +27 -27
- package/dist/capabilities/sensenova.json +13 -13
- package/dist/capabilities/siliconflow-cn.json +55 -55
- package/dist/capabilities/siliconflow.json +63 -63
- package/dist/capabilities/snowflake-cortex.json +25 -25
- package/dist/capabilities/sokkan.json +2 -2
- package/dist/capabilities/sparrowcodes.json +22 -22
- package/dist/capabilities/standardcompute.json +97 -97
- package/dist/capabilities/steadyrouter.json +36 -36
- package/dist/capabilities/stepfun-ai-step-plan.json +4 -4
- package/dist/capabilities/stepfun-ai.json +4 -4
- package/dist/capabilities/stepfun-step-plan.json +4 -4
- package/dist/capabilities/stepfun.json +4 -4
- package/dist/capabilities/stepping-stone.json +19 -19
- package/dist/capabilities/superbot-gg.json +4 -4
- package/dist/capabilities/synthetic.json +9 -9
- package/dist/capabilities/synthorai.json +26 -26
- package/dist/capabilities/teamorouter.json +16 -16
- 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 +42 -42
- package/dist/capabilities/tencent-tokenhub.json +49 -49
- package/dist/capabilities/tensorx.json +48 -48
- package/dist/capabilities/tenstorrent.json +8 -8
- package/dist/capabilities/the-grid-ai.json +34 -34
- package/dist/capabilities/thinkingmachines.json +78 -78
- package/dist/capabilities/tinfoil.json +13 -13
- package/dist/capabilities/togetherai.json +44 -44
- package/dist/capabilities/tokengo.json +25 -25
- package/dist/capabilities/tokenify.json +9 -9
- package/dist/capabilities/tokenwatt.json +10 -2
- 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 +10 -10
- package/dist/capabilities/unrestricted.json +6 -6
- package/dist/capabilities/uplinkswitch.json +20 -20
- package/dist/capabilities/upstage.json +6 -6
- package/dist/capabilities/vancine.json +25 -25
- package/dist/capabilities/vercel.json +552 -551
- package/dist/capabilities/vivgrid.json +74 -65
- package/dist/capabilities/volcengine-coding-plan.json +27 -27
- package/dist/capabilities/volcengine.json +29 -28
- package/dist/capabilities/vultr.json +25 -25
- package/dist/capabilities/wafer.ai.json +17 -17
- package/dist/capabilities/wallaby.json +4 -4
- package/dist/capabilities/wally.json +14 -14
- package/dist/capabilities/wandb.json +19 -19
- package/dist/capabilities/watt.json +25 -25
- package/dist/capabilities/xai.json +6 -6
- package/dist/capabilities/xiaomi-token-plan-ams.json +2 -2
- package/dist/capabilities/xiaomi-token-plan-cn.json +2 -2
- package/dist/capabilities/xiaomi-token-plan-sgp.json +2 -2
- package/dist/capabilities/xiaomi.json +2 -2
- package/dist/capabilities/xpersona.json +12 -12
- package/dist/capabilities/xxapi.json +27 -27
- package/dist/capabilities/zai-coding-plan.json +12 -12
- package/dist/capabilities/zai.json +32 -32
- package/dist/capabilities/zenifra.json +27 -27
- package/dist/capabilities/zenmux.json +190 -190
- package/dist/capabilities/zerogpu.json +14 -14
- package/dist/capabilities/zhipuai-coding-plan.json +8 -8
- package/dist/capabilities/zhipuai.json +31 -31
- package/dist/capabilities/zro.json +6 -6
- package/dist/channels/index.cjs +2 -2
- package/dist/channels/index.js +2 -2
- package/dist/{channels-dBz-1Oy7.cjs → channels-BXZbY7TL.cjs} +1 -1
- package/dist/{channels-CyJ0PpSg.js → channels-Bs8wDPDl.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 +722 -707
- package/dist/docs/references/docs-agents-code-mode.md +20 -0
- package/dist/docs/references/docs-browser.md +3 -1
- package/dist/docs/references/docs-knowledge-agents-and-tools.md +2 -0
- package/dist/docs/references/integrations.md +1 -0
- package/dist/docs/references/reference-processors-tool-search-processor.md +3 -3
- 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 +8041 -8014
- package/dist/{llm-Du8yTHDN.js → llm-9xmy8HlF.js} +2 -2
- package/dist/{llm-BiSuGioB.cjs → llm-ypGNjEom.cjs} +2 -2
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +2 -2
- package/dist/{manager-CiKAT1GP.js → manager-B-QrBhhd.js} +2 -2
- package/dist/{manager-Bd8By72w.cjs → manager-CYXV5_vY.cjs} +2 -2
- package/dist/mastra/index.cjs +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/{mastra-GjJdwKF7.js → mastra-DPSwJ5ae.js} +16 -16
- package/dist/{mastra-BD1Hqrb2.cjs → mastra-zszeli0N.cjs} +16 -16
- package/dist/memory/index.cjs +2 -2
- package/dist/memory/index.js +2 -2
- package/dist/{model-Bvfq1yB9.js → model-UYJb8Zel.js} +1 -1
- package/dist/{model-CI05YYPx.cjs → model-WLujr8OR.cjs} +1 -1
- package/dist/{netlify-DQ-v2Run.js → netlify-DTWAZGpA.js} +1 -1
- package/dist/{netlify-DkSS4nuo.cjs → netlify-wZafLKoe.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/processors/processors/tool-search.d.ts +2 -2
- package/dist/{provider-registry-K3a83H9-.cjs → provider-registry-BvpUdOiq.cjs} +21504 -21437
- package/dist/{provider-registry-D7D3C2RI.js → provider-registry-COT79RLh.js} +21504 -21437
- package/dist/provider-registry.json +22003 -21942
- package/dist/{registry-generator-BgHaZqDZ.js → registry-generator-BKjTPD6B.js} +1 -1
- package/dist/{registry-generator-RfPwMlUl.cjs → registry-generator-Dn1Tuacv.cjs} +1 -1
- package/dist/{rehydrate-C4-5kM6Z.js → rehydrate-BK1v65H7.js} +2 -2
- package/dist/{rehydrate-DwfzaTOg.cjs → rehydrate-C0xrJUBu.cjs} +2 -2
- package/dist/relevance/index.cjs +2 -2
- package/dist/relevance/index.js +2 -2
- package/dist/{run-registry-Bj_lW9M3.js → run-registry-DKiudqVU.js} +351 -36
- package/dist/{run-registry-BJa47sa2.cjs → run-registry-DX_EyboB.cjs} +374 -35
- 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-B4LzC6Sz.js} +1 -1
- package/dist/{stream-CWE0h7Yc.cjs → stream-BmtBm_-L.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-BIbw3quM.cjs} +3 -3
- package/dist/{tool-loop-agent-B12lpXBl.js → tool-loop-agent-CR2AgmkF.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-dueX8ECq.js → utils-BnG4bq6k.js} +1 -1
- package/dist/{utils-CPOlvXFL.cjs → utils-D2Bj0C2E.cjs} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/{validate-DdirQd9u.cjs → validate-BxgKlbt7.cjs} +1 -1
- package/dist/{validate-x3wcpuT8.js → validate-DHEGALaE.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-1lHN6hT1.js} +2 -2
- package/dist/{worker-CPZ3HqQn.cjs → worker-BRKHC9hv.cjs} +2 -2
- package/dist/{worker-NYiueScR.js → worker-C-xoXGOt.js} +2 -2
- package/dist/{worker-GrFJJ7Y0.cjs → worker-DYBrWSDX.cjs} +2 -2
- package/dist/{workflow-BgAes9PI.js → workflow-79JneaJP.js} +3 -3
- package/dist/{workflow-BNUED985.cjs → workflow-DGRDgyhs.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 +7 -7
- package/src/llm/model/provider-types.generated.d.ts +8041 -8014
|
@@ -12,6 +12,74 @@ import { lookup } from "dns";
|
|
|
12
12
|
import http from "http";
|
|
13
13
|
import https from "https";
|
|
14
14
|
import net from "net";
|
|
15
|
+
// src/tools/code-mode/log-collector.ts
|
|
16
|
+
/**
|
|
17
|
+
* Code Mode — shared console-log collector
|
|
18
|
+
*
|
|
19
|
+
* A bounded, transport-neutral collector for captured console output. Every
|
|
20
|
+
* built-in transport (stdio, QuickJS, isolated-vm) captures lines through this
|
|
21
|
+
* helper so truncation behaves identically everywhere, and each transport's
|
|
22
|
+
* in-memory buffer stays bounded while guest code is still running.
|
|
23
|
+
*
|
|
24
|
+
* Semantics:
|
|
25
|
+
* - Lines are appended in order.
|
|
26
|
+
* - `maxLogLines` and `maxLogBytes` are optional; omitted means unlimited.
|
|
27
|
+
* - On overflow the logs are **truncated**, never failed: the collector keeps
|
|
28
|
+
* the longest allowed prefix and appends one deterministic marker line.
|
|
29
|
+
* - The marker itself counts toward both caps, so the returned logs always fit.
|
|
30
|
+
* - `maxLogLines: 0` or `maxLogBytes: 0` captures nothing.
|
|
31
|
+
* - Every retained line costs at least one byte, so a byte cap also bounds the
|
|
32
|
+
* number of retained lines: empty lines are not free, and a chatty program
|
|
33
|
+
* cannot grow the buffer without limit by logging empty strings.
|
|
34
|
+
*
|
|
35
|
+
* Only Web-standard APIs are used, so it works in Node and in hosted runtimes.
|
|
36
|
+
*/
|
|
37
|
+
/** Marker appended once when log capture hit a cap. Counts toward both caps. */
|
|
38
|
+
const TRUNCATION_MARKER = "[code mode logs truncated]";
|
|
39
|
+
const encoder = new TextEncoder();
|
|
40
|
+
/** UTF-8 byte length of a string. */
|
|
41
|
+
function utf8Length(value) {
|
|
42
|
+
return encoder.encode(value).length;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Create a bounded log collector. Pass the two optional caps straight through
|
|
46
|
+
* from the transport's run options.
|
|
47
|
+
*/
|
|
48
|
+
function createCodeModeLogCollector(options = {}) {
|
|
49
|
+
const maxLines = options.maxLogLines ?? Number.POSITIVE_INFINITY;
|
|
50
|
+
const maxBytes = options.maxLogBytes ?? Number.POSITIVE_INFINITY;
|
|
51
|
+
const markerBytes = utf8Length(TRUNCATION_MARKER);
|
|
52
|
+
const kept = [];
|
|
53
|
+
let keptBytes = 0;
|
|
54
|
+
let truncated = false;
|
|
55
|
+
return {
|
|
56
|
+
push(message) {
|
|
57
|
+
if (truncated) return;
|
|
58
|
+
const bytes = Math.max(1, utf8Length(message));
|
|
59
|
+
if (kept.length + 1 > maxLines || keptBytes + bytes > maxBytes) {
|
|
60
|
+
truncated = true;
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
kept.push({
|
|
64
|
+
text: message,
|
|
65
|
+
bytes
|
|
66
|
+
});
|
|
67
|
+
keptBytes += bytes;
|
|
68
|
+
},
|
|
69
|
+
logs() {
|
|
70
|
+
if (!truncated) return kept.map((entry) => entry.text);
|
|
71
|
+
const out = kept.slice();
|
|
72
|
+
let bytes = keptBytes;
|
|
73
|
+
while (out.length + 1 > maxLines || bytes + markerBytes > maxBytes) {
|
|
74
|
+
if (out.length === 0) return [];
|
|
75
|
+
const dropped = out.pop();
|
|
76
|
+
if (dropped === void 0) return [];
|
|
77
|
+
bytes -= dropped.bytes;
|
|
78
|
+
}
|
|
79
|
+
return [...out.map((entry) => entry.text), TRUNCATION_MARKER];
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
}
|
|
15
83
|
// src/tools/code-mode/stub-generator.ts
|
|
16
84
|
/** A valid TypeScript identifier? (used to decide quoting of object keys). */
|
|
17
85
|
const SAFE_IDENT = /^[A-Za-z_$][A-Za-z0-9_$]*$/;
|
|
@@ -276,7 +344,7 @@ __main()
|
|
|
276
344
|
*/
|
|
277
345
|
var StdioCodeModeTransport = class {
|
|
278
346
|
async run(opts) {
|
|
279
|
-
const { sandbox, program, toolIds, dispatch, timeout, abortSignal, onExternalCall, onExternalResult } = opts;
|
|
347
|
+
const { sandbox, program, toolIds, dispatch, timeout, abortSignal, onExternalCall, onExternalResult, maxLogBytes, maxLogLines } = opts;
|
|
280
348
|
if (!sandbox) throw new Error("StdioCodeModeTransport requires a sandbox");
|
|
281
349
|
if (!sandbox.processes) throw new SandboxFeatureNotSupportedError("processes");
|
|
282
350
|
const externals = toolIds.map((toolId) => ({
|
|
@@ -294,7 +362,10 @@ var StdioCodeModeTransport = class {
|
|
|
294
362
|
});
|
|
295
363
|
const runnerPath = join(dir, `runner-${suffix}.mjs`);
|
|
296
364
|
await writeFile(runnerPath, runnerSource, "utf8");
|
|
297
|
-
const logs =
|
|
365
|
+
const logs = createCodeModeLogCollector({
|
|
366
|
+
maxLogBytes,
|
|
367
|
+
maxLogLines
|
|
368
|
+
});
|
|
298
369
|
let done;
|
|
299
370
|
let stdoutBuffer = "";
|
|
300
371
|
let resolveDone;
|
|
@@ -331,11 +402,11 @@ var StdioCodeModeTransport = class {
|
|
|
331
402
|
done = frame.ok ? {
|
|
332
403
|
success: true,
|
|
333
404
|
result: frame.result,
|
|
334
|
-
logs
|
|
405
|
+
logs: logs.logs()
|
|
335
406
|
} : {
|
|
336
407
|
success: false,
|
|
337
408
|
error: frame.error,
|
|
338
|
-
logs
|
|
409
|
+
logs: logs.logs()
|
|
339
410
|
};
|
|
340
411
|
resolveDone();
|
|
341
412
|
return;
|
|
@@ -399,7 +470,7 @@ var StdioCodeModeTransport = class {
|
|
|
399
470
|
await handle.kill().catch(() => {});
|
|
400
471
|
return {
|
|
401
472
|
success: false,
|
|
402
|
-
logs,
|
|
473
|
+
logs: logs.logs(),
|
|
403
474
|
error: {
|
|
404
475
|
message: `Code Mode execution timed out after ${timeout}ms`,
|
|
405
476
|
name: "TimeoutError"
|
|
@@ -409,7 +480,7 @@ var StdioCodeModeTransport = class {
|
|
|
409
480
|
if (!done) await exitPromise.catch(() => {});
|
|
410
481
|
return done ?? {
|
|
411
482
|
success: false,
|
|
412
|
-
logs,
|
|
483
|
+
logs: logs.logs(),
|
|
413
484
|
error: {
|
|
414
485
|
message: "Program exited without returning a result",
|
|
415
486
|
name: "NoResultError"
|
|
@@ -423,6 +494,28 @@ var StdioCodeModeTransport = class {
|
|
|
423
494
|
}
|
|
424
495
|
}
|
|
425
496
|
};
|
|
497
|
+
// src/tools/code-mode/types.ts
|
|
498
|
+
/**
|
|
499
|
+
* Error raised when a configured Code Mode execution limit is exceeded.
|
|
500
|
+
*
|
|
501
|
+
* `option` and `value` name the exact {@link CodeModeConfig} option that
|
|
502
|
+
* tripped and its configured value, so callers can distinguish a call-count
|
|
503
|
+
* or result-size failure without parsing the message. Call and result limits
|
|
504
|
+
* are sticky: once one trips, the run fails even if guest code caught the
|
|
505
|
+
* individual rejection.
|
|
506
|
+
*/
|
|
507
|
+
var CodeModeLimitError = class extends Error {
|
|
508
|
+
/** The config option that tripped: `maxCalls` or `maxResultBytes`. */
|
|
509
|
+
option;
|
|
510
|
+
/** The configured value of that option. */
|
|
511
|
+
value;
|
|
512
|
+
constructor(option, value, detail) {
|
|
513
|
+
super(`Code Mode execution limit exceeded: ${option} (configured ${value})${detail ? ` \u2014 ${detail}` : ""}`);
|
|
514
|
+
this.name = "CodeModeLimitError";
|
|
515
|
+
this.option = option;
|
|
516
|
+
this.value = value;
|
|
517
|
+
}
|
|
518
|
+
};
|
|
426
519
|
// src/tools/code-mode/code-mode.ts
|
|
427
520
|
/**
|
|
428
521
|
* Code Mode — tool factory
|
|
@@ -434,6 +527,103 @@ var StdioCodeModeTransport = class {
|
|
|
434
527
|
*/
|
|
435
528
|
const DEFAULT_TIMEOUT = 3e4;
|
|
436
529
|
const DEFAULT_TOOL_NAME = "execute_typescript";
|
|
530
|
+
/**
|
|
531
|
+
* Validate an optional numeric limit, throwing an actionable error before any
|
|
532
|
+
* guest code runs. Counts and concurrency require at least 1; byte/line caps
|
|
533
|
+
* accept 0 to mean "capture nothing".
|
|
534
|
+
*/
|
|
535
|
+
function assertLimit(value, name, minimum) {
|
|
536
|
+
if (value === void 0) return;
|
|
537
|
+
if (!Number.isInteger(value) || value < minimum) throw new RangeError(`Code Mode option "${name}" must be ${minimum === 0 ? "a non-negative integer" : "a positive integer"}; received ${String(value)}`);
|
|
538
|
+
}
|
|
539
|
+
const utf8Encoder = new TextEncoder();
|
|
540
|
+
/**
|
|
541
|
+
* UTF-8 byte size of a nested tool result's JSON representation. Returns 0 for
|
|
542
|
+
* values JSON cannot serialize (undefined, functions, circular references),
|
|
543
|
+
* preserving the transport's existing non-serializable-result behavior.
|
|
544
|
+
*/
|
|
545
|
+
function codeModeResultBytes(result) {
|
|
546
|
+
let json;
|
|
547
|
+
try {
|
|
548
|
+
json = JSON.stringify(result);
|
|
549
|
+
} catch {
|
|
550
|
+
return 0;
|
|
551
|
+
}
|
|
552
|
+
return json === void 0 ? 0 : utf8Encoder.encode(json).length;
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* Consumed queue entries are dropped once this many have accumulated, and only
|
|
556
|
+
* when they are at least half of the queue. Small queues never pay for it, and
|
|
557
|
+
* no single release does more than one bounded slice.
|
|
558
|
+
*/
|
|
559
|
+
const COMPACT_AFTER = 1024;
|
|
560
|
+
/**
|
|
561
|
+
* Abort-aware FIFO semaphore. At most `limit` tasks run at once; excess callers
|
|
562
|
+
* wait in arrival order. Every slot is released in `finally`, and waiters reject
|
|
563
|
+
* on abort without running their task.
|
|
564
|
+
*
|
|
565
|
+
* Both ends are O(1) amortized and do no work proportional to the queue size:
|
|
566
|
+
* the run's signal carries a single listener (per-waiter listeners make
|
|
567
|
+
* `addEventListener`/`removeEventListener` quadratic once thousands of calls are
|
|
568
|
+
* queued), and the queue is drained by advancing a head index over consumed
|
|
569
|
+
* entries. Guest code controls how many calls it queues, so a large backlog
|
|
570
|
+
* must stay cheap.
|
|
571
|
+
*/
|
|
572
|
+
function createCallSemaphore(limit, signal) {
|
|
573
|
+
const abortReason = () => signal.reason ?? /* @__PURE__ */ new Error("Code Mode execution aborted");
|
|
574
|
+
let active = 0;
|
|
575
|
+
let waiters = [];
|
|
576
|
+
let head = 0;
|
|
577
|
+
signal.addEventListener("abort", () => {
|
|
578
|
+
const pending = waiters.slice(head);
|
|
579
|
+
waiters = [];
|
|
580
|
+
head = 0;
|
|
581
|
+
for (const waiter of pending) waiter?.reject(abortReason());
|
|
582
|
+
}, { once: true });
|
|
583
|
+
const compact = () => {
|
|
584
|
+
if (head >= COMPACT_AFTER && head * 2 >= waiters.length) {
|
|
585
|
+
waiters = waiters.slice(head);
|
|
586
|
+
head = 0;
|
|
587
|
+
}
|
|
588
|
+
};
|
|
589
|
+
const release = () => {
|
|
590
|
+
active -= 1;
|
|
591
|
+
while (head < waiters.length) {
|
|
592
|
+
const next = waiters[head];
|
|
593
|
+
waiters[head] = void 0;
|
|
594
|
+
head += 1;
|
|
595
|
+
if (next) {
|
|
596
|
+
active += 1;
|
|
597
|
+
next.resolve();
|
|
598
|
+
compact();
|
|
599
|
+
return;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
waiters = [];
|
|
603
|
+
head = 0;
|
|
604
|
+
};
|
|
605
|
+
const acquire = () => {
|
|
606
|
+
if (signal.aborted) return Promise.reject(abortReason());
|
|
607
|
+
if (active < limit) {
|
|
608
|
+
active += 1;
|
|
609
|
+
return Promise.resolve();
|
|
610
|
+
}
|
|
611
|
+
return new Promise((resolve, reject) => {
|
|
612
|
+
waiters.push({
|
|
613
|
+
resolve,
|
|
614
|
+
reject
|
|
615
|
+
});
|
|
616
|
+
});
|
|
617
|
+
};
|
|
618
|
+
return { async run(task) {
|
|
619
|
+
await acquire();
|
|
620
|
+
try {
|
|
621
|
+
return await task();
|
|
622
|
+
} finally {
|
|
623
|
+
release();
|
|
624
|
+
}
|
|
625
|
+
} };
|
|
626
|
+
}
|
|
437
627
|
const codeModeInputSchema = z.object({ code: z.string().describe("A TypeScript program that orchestrates the available external_* tools and returns a final value. Use Promise.all to batch calls; do arithmetic in JS. End with `return <value>`.") });
|
|
438
628
|
const codeModeOutputSchema = z.object({
|
|
439
629
|
success: z.boolean(),
|
|
@@ -463,6 +653,26 @@ function createCodeModeTool(config, transport = new StdioCodeModeTransport()) {
|
|
|
463
653
|
const id = config.id ?? DEFAULT_TOOL_NAME;
|
|
464
654
|
const toolsById = indexToolsById(config);
|
|
465
655
|
const toolIds = [...toolsById.keys()];
|
|
656
|
+
const { maxCalls, maxConcurrentCalls, maxResultBytes, maxLogBytes, maxLogLines } = config;
|
|
657
|
+
assertLimit(maxCalls, "maxCalls", 1);
|
|
658
|
+
assertLimit(maxConcurrentCalls, "maxConcurrentCalls", 1);
|
|
659
|
+
assertLimit(maxResultBytes, "maxResultBytes", 0);
|
|
660
|
+
assertLimit(maxLogBytes, "maxLogBytes", 0);
|
|
661
|
+
assertLimit(maxLogLines, "maxLogLines", 0);
|
|
662
|
+
/**
|
|
663
|
+
* Replay returned logs through the shared collector so a custom transport
|
|
664
|
+
* that ignored the caps still yields bounded output. With no cap configured
|
|
665
|
+
* the same array is returned by identity, leaving transport output untouched.
|
|
666
|
+
*/
|
|
667
|
+
const boundLogs = (lines) => {
|
|
668
|
+
if (!lines || maxLogBytes === void 0 && maxLogLines === void 0) return lines;
|
|
669
|
+
const collector = createCodeModeLogCollector({
|
|
670
|
+
maxLogBytes,
|
|
671
|
+
maxLogLines
|
|
672
|
+
});
|
|
673
|
+
for (const line of lines) collector.push(line);
|
|
674
|
+
return collector.logs();
|
|
675
|
+
};
|
|
466
676
|
return createTool({
|
|
467
677
|
id,
|
|
468
678
|
description: "Execute a TypeScript program that orchestrates the available tools in a sandbox. Prefer this over calling tools one at a time when a task needs multiple tool calls, batching, aggregation, or arithmetic.",
|
|
@@ -475,34 +685,98 @@ function createCodeModeTool(config, transport = new StdioCodeModeTransport()) {
|
|
|
475
685
|
sandbox = await ctx?.workspace?.resolveSandbox({ requestContext });
|
|
476
686
|
if (!sandbox) throw new Error("Code Mode requires a sandbox to run model-authored code, but none was configured. Pass one to createCodeMode({ tools, sandbox }), or run the agent in a workspace that provides a sandbox. To execute on the host (host privileges \u2014 only for trusted/local use), pass `sandbox: new LocalSandbox()`.");
|
|
477
687
|
}
|
|
688
|
+
const outerSignal = ctx?.abortSignal;
|
|
689
|
+
const runController = new AbortController();
|
|
690
|
+
const forwardAbort = () => runController.abort(outerSignal?.reason);
|
|
691
|
+
if (outerSignal) {
|
|
692
|
+
if (outerSignal.aborted) forwardAbort();
|
|
693
|
+
else outerSignal.addEventListener("abort", forwardAbort, { once: true });
|
|
694
|
+
}
|
|
695
|
+
let limitError;
|
|
696
|
+
let callCount = 0;
|
|
697
|
+
const semaphore = maxConcurrentCalls !== void 0 ? createCallSemaphore(maxConcurrentCalls, runController.signal) : void 0;
|
|
698
|
+
const abortReason = () => runController.signal.reason ?? /* @__PURE__ */ new Error("Code Mode run aborted");
|
|
478
699
|
const dispatch = async (toolId, args) => {
|
|
700
|
+
if (runController.signal.aborted) throw abortReason();
|
|
701
|
+
if (maxCalls !== void 0 && ++callCount > maxCalls) {
|
|
702
|
+
const error = new CodeModeLimitError("maxCalls", maxCalls, "more external tool calls were attempted");
|
|
703
|
+
limitError ??= error;
|
|
704
|
+
runController.abort(error);
|
|
705
|
+
throw limitError;
|
|
706
|
+
}
|
|
479
707
|
const tool = toolsById.get(toolId);
|
|
480
708
|
if (!tool?.execute) throw new Error(`Tool "${toolId}" is not available in Code Mode`);
|
|
481
|
-
const
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
709
|
+
const execute = tool.execute.bind(tool);
|
|
710
|
+
const invoke = async () => {
|
|
711
|
+
if (runController.signal.aborted) throw abortReason();
|
|
712
|
+
const result = await execute(args, {
|
|
713
|
+
mastra: ctx?.mastra,
|
|
714
|
+
requestContext: ctx?.requestContext,
|
|
715
|
+
abortSignal: runController.signal,
|
|
716
|
+
workspace: ctx?.workspace
|
|
717
|
+
});
|
|
718
|
+
if (isValidationError(result)) throw new Error(result.message ?? `Invalid input for tool "${toolId}"`);
|
|
719
|
+
if (maxResultBytes !== void 0) {
|
|
720
|
+
const size = codeModeResultBytes(result);
|
|
721
|
+
if (size > maxResultBytes) {
|
|
722
|
+
const error = new CodeModeLimitError("maxResultBytes", maxResultBytes, `a nested tool result was ${size} bytes for tool "${toolId}"`);
|
|
723
|
+
if (runController.signal.aborted) throw error;
|
|
724
|
+
limitError ??= error;
|
|
725
|
+
runController.abort(error);
|
|
726
|
+
throw limitError;
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
return result;
|
|
730
|
+
};
|
|
731
|
+
return semaphore ? semaphore.run(invoke) : invoke();
|
|
732
|
+
};
|
|
733
|
+
const outcome = await (async () => {
|
|
734
|
+
try {
|
|
735
|
+
return {
|
|
736
|
+
ok: true,
|
|
737
|
+
value: await ctx.observe.span(`code-mode:${id}`, () => transport.run({
|
|
738
|
+
sandbox,
|
|
739
|
+
program: code,
|
|
740
|
+
toolIds,
|
|
741
|
+
dispatch,
|
|
742
|
+
timeout,
|
|
743
|
+
abortSignal: runController.signal,
|
|
744
|
+
onExternalCall: (tool, args) => ctx.observe.log("info", "code-mode external call", {
|
|
745
|
+
tool,
|
|
746
|
+
args
|
|
747
|
+
}),
|
|
748
|
+
onExternalResult: (tool, durationMs, error) => ctx.observe.log(error ? "error" : "info", "code-mode external result", {
|
|
749
|
+
tool,
|
|
750
|
+
durationMs
|
|
751
|
+
}),
|
|
752
|
+
maxLogBytes,
|
|
753
|
+
maxLogLines
|
|
754
|
+
}))
|
|
755
|
+
};
|
|
756
|
+
} catch (error) {
|
|
757
|
+
return {
|
|
758
|
+
ok: false,
|
|
759
|
+
error
|
|
760
|
+
};
|
|
761
|
+
} finally {
|
|
762
|
+
outerSignal?.removeEventListener("abort", forwardAbort);
|
|
763
|
+
if (!runController.signal.aborted) runController.abort();
|
|
764
|
+
}
|
|
765
|
+
})();
|
|
766
|
+
if (limitError) return {
|
|
767
|
+
success: false,
|
|
768
|
+
logs: outcome.ok ? boundLogs(outcome.value.logs) : void 0,
|
|
769
|
+
error: {
|
|
770
|
+
message: limitError.message,
|
|
771
|
+
name: limitError.name
|
|
772
|
+
}
|
|
773
|
+
};
|
|
774
|
+
if (!outcome.ok) throw outcome.error;
|
|
775
|
+
const bounded = boundLogs(outcome.value.logs);
|
|
776
|
+
return bounded === outcome.value.logs ? outcome.value : {
|
|
777
|
+
...outcome.value,
|
|
778
|
+
logs: bounded
|
|
489
779
|
};
|
|
490
|
-
return ctx.observe.span(`code-mode:${id}`, () => transport.run({
|
|
491
|
-
sandbox,
|
|
492
|
-
program: code,
|
|
493
|
-
toolIds,
|
|
494
|
-
dispatch,
|
|
495
|
-
timeout,
|
|
496
|
-
abortSignal: ctx?.abortSignal,
|
|
497
|
-
onExternalCall: (tool, args) => ctx.observe.log("info", "code-mode external call", {
|
|
498
|
-
tool,
|
|
499
|
-
args
|
|
500
|
-
}),
|
|
501
|
-
onExternalResult: (tool, durationMs, error) => ctx.observe.log(error ? "error" : "info", "code-mode external result", {
|
|
502
|
-
tool,
|
|
503
|
-
durationMs
|
|
504
|
-
})
|
|
505
|
-
}));
|
|
506
780
|
}
|
|
507
781
|
});
|
|
508
782
|
}
|
|
@@ -1046,4 +1320,4 @@ const submitPlanTool = createTool({
|
|
|
1046
1320
|
}
|
|
1047
1321
|
}
|
|
1048
1322
|
});
|
|
1049
|
-
export {
|
|
1323
|
+
export { generateStubs as _, webSearchTool as a, createCodeModeLogCollector as b, formatQuestionAnswer as c, CodeModeLimitError as d, StdioCodeModeTransport as f, createCodeModeInstructions as g, buildRunner as h, normalizeWebSearchProvider as i, createCodeMode as l, buildProgramModule as m, createWebSearchProviderTool as n, webFetchTool as o, FRAME_PREFIX as p, isWebSearchTool as r, askUserTool as s, submitPlanTool as t, createCodeModeTool as u, jsonSchemaToTsString as v, sanitizeToolId as y };
|
|
@@ -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-DlLB_pJR.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-B63welNM.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-D2Bj0C2E.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-BnG4bq6k.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 { Et as validateTemplate, St as collectTemplateStepIds } from "./stream-
|
|
2
|
+
import { Et as validateTemplate, St as collectTemplateStepIds } from "./stream-B4LzC6Sz.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
// src/workflows/dynamic/graph.ts
|
|
5
5
|
/**
|
package/dist/vector/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
4
|
+
const require_run_registry = require("../run-registry-DX_EyboB.cjs");
|
|
5
5
|
const require_message_list = require("../message-list-vR3uLAHL.cjs");
|
|
6
6
|
const require_dist = require("../dist-P2rjrlmj.cjs");
|
|
7
7
|
const require_dist$1 = require("../dist-CXeCeeW7.cjs");
|
package/dist/vector/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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 {
|
|
3
|
+
import { hn as embed$3, wa as createVectorErrorId } from "../run-registry-DKiudqVU.js";
|
|
4
4
|
import { P as embed$2 } from "../message-list-BGm1DCiG.js";
|
|
5
5
|
import { r as embed$1 } from "../dist-TPVqg8oV.js";
|
|
6
6
|
import { n as embed } from "../dist-D3cKCUe-.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-DYBrWSDX.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-C-xoXGOt.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bt as resolveAgentById } from "./run-registry-DKiudqVU.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-C-xoXGOt.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-DX_EyboB.cjs");
|
|
2
2
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
3
|
-
const require_worker = require("./worker-
|
|
3
|
+
const require_worker = require("./worker-DYBrWSDX.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,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Al as assertDrainTimeout, Cc as getStepEntry, Sc as getNestedWorkflow, Xs as StepExecutor, Ys as WorkflowEventProcessor, Zs as computeScheduleDefinitionHash, bt as resolveAgentById, jl as waitMs } from "./run-registry-DKiudqVU.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-DlLB_pJR.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-DX_EyboB.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-B63welNM.cjs");
|
|
4
4
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
5
5
|
// src/worker/worker.ts
|
|
6
6
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { un as resolveSuspendedToolRunId } from "./stream-
|
|
1
|
+
import { un as resolveSuspendedToolRunId } from "./stream-B4LzC6Sz.js";
|
|
2
2
|
import "./utils-DU_pU5SK.js";
|
|
3
3
|
import { m as slimProgressChunk } from "./output-helpers-CVzhy1Y0.js";
|
|
4
|
-
import {
|
|
5
|
-
import { u as BACKGROUND_TASK_WORKFLOW_ID } from "./background-tasks-
|
|
4
|
+
import { Dc as createStep, Hs as createWorkflow } from "./run-registry-DKiudqVU.js";
|
|
5
|
+
import { u as BACKGROUND_TASK_WORKFLOW_ID } from "./background-tasks-DlLB_pJR.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-BmtBm_-L.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-DX_EyboB.cjs");
|
|
5
|
+
const require_background_tasks = require("./background-tasks-B63welNM.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-DCaL4xmU.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-D82iR2oQ.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-DX_EyboB.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 {
|
|
1
|
+
export { xc as EventedExecutionEngine, Us as EventedRun, Ws as EventedWorkflow, Xs as StepExecutor, Ys as WorkflowEventProcessor, Gs as cloneStep, Ks as cloneWorkflow, qs as createStep, Js as createWorkflow } from "../../run-registry-DKiudqVU.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-DX_EyboB.cjs");
|
|
3
|
+
const require_stream = require("../stream-BmtBm_-L.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-BxgKlbt7.cjs");
|
|
8
|
+
const require_rehydrate = require("../rehydrate-C0xrJUBu.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
|
|
2
|
-
import { Dt as getStepResult, Ot as getStepResultAsync } from "../stream-
|
|
1
|
+
import { $c as RESUME_SNAPSHOT_POLL_INTERVAL_MS, Ac as predicateToCondition, Bs as cloneWorkflow, Cl as validateStepRequestContext, Dc as createStep, Dl as waitForSuspendedSnapshot, Ec as cloneStep, El as validateStepSuspendData, Gc as ExecutionEngine, Hs as createWorkflow, Lc as DefaultExecutionEngine, Ml as workflowTermination, Oc as isProcessor, Ol as getEntryId, Qc as createStepFromTool, Sl as validateStepInput, Tc as Workflow, Tl as validateStepStateData, Vs as createEventedWorkflow, Xc as createStepFromAgent, Yc as createMappingStep, Zc as createStepFromClassifier, Zs as computeScheduleDefinitionHash, _l as omitPriorCompletionFields, al as createDeprecationProxy, bl as runCountDeprecationMessage, cl as defineLazyWriter, dl as getResumeLabelsByStepId, el as RESUME_SNAPSHOT_WAIT_STATUSES, fl as getSingleStepEntryId, gl as isSingleStepEntry, hl as isEntryFinished, il as cleanStepResult, jc as evaluatePredicate, kc as mapVariable, kl as getEntryWorkflow, ll as defineStateAccessors, ml as hydrateSerializedStepErrors, nl as applyStateDelta, ol as createRestartExecutionParams, pl as getStepIds, rl as assertTimeTravelGraphMatchesSnapshot, sl as createTimeTravelExecutionParams, tl as abortableSleep, ul as getRestartStartIndex, vl as omitPriorSuspensionFields, wc as Run, wl as validateStepResumeData, xl as setLongTimeout, yl as resolveForeachConcurrency } from "../run-registry-DKiudqVU.js";
|
|
2
|
+
import { Dt as getStepResult, Ot as getStepResultAsync } from "../stream-B4LzC6Sz.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-DHEGALaE.js";
|
|
7
|
+
import { n as entryOptionFields, r as toStorableGraph, t as rehydrateWorkflow } from "../rehydrate-BK1v65H7.js";
|
|
8
8
|
// src/workflows/state-reader.ts
|
|
9
9
|
const getStep = (state, stepId) => state.steps?.[stepId];
|
|
10
10
|
const getFirstStepResult = (step) => {
|