@mastra/core 1.87.0-alpha.20 → 1.87.0-alpha.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_types/@internal_ai-sdk-v4@0.0.99/dist/index.d.ts +1 -1
- package/dist/_types/@internal_ai-sdk-v5@0.0.99/dist/index.d.ts +1 -1
- package/dist/_types/@internal_ai-v6@0.0.99/dist/index.d.ts +1 -1
- package/dist/_types/@internal_ai-v7@0.0.99/dist/index.d.ts +1 -1
- package/dist/_types/@internal_voice@0.0.48/dist/_types/@internal_ai-sdk-v5@0.0.99/dist/index.d.ts +1 -1
- package/dist/agent/durable/index.cjs +1 -1
- package/dist/agent/durable/index.js +1 -1
- package/dist/agent/index.cjs +2 -2
- package/dist/agent/index.js +2 -2
- package/dist/agent-builder/ee/index.cjs +1 -1
- package/dist/agent-builder/ee/index.js +1 -1
- package/dist/agent-controller/index.cjs +2 -2
- package/dist/agent-controller/index.js +2 -2
- package/dist/{agent-controller-D2d_qiJr.js → agent-controller-WGML_NKp.js} +6 -6
- package/dist/{agent-controller-WTjY0HJM.cjs → agent-controller-mS3CgzwJ.cjs} +6 -6
- package/dist/background-tasks/index.cjs +1 -1
- package/dist/background-tasks/index.js +1 -1
- package/dist/{background-tasks-CgspqU_S.js → background-tasks-CbBbS-g3.js} +1 -1
- package/dist/{background-tasks-DJ6x1bn-.cjs → background-tasks-DEBc9BBP.cjs} +1 -1
- package/dist/browser/index.cjs +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/{builder-MymUxyDK.js → builder-BOIUFJTC.js} +2 -2
- package/dist/{builder-B2P49nT9.cjs → builder-DBori4UC.cjs} +2 -2
- package/dist/capabilities/302ai.json +196 -196
- package/dist/capabilities/abliteratedllm.json +31 -31
- package/dist/capabilities/abliteration-ai.json +6 -6
- package/dist/capabilities/above.json +18 -18
- package/dist/capabilities/adaption.json +12 -12
- package/dist/capabilities/adzuki.json +35 -35
- package/dist/capabilities/agentrouter.json +6 -6
- package/dist/capabilities/agnes.json +2 -2
- package/dist/capabilities/ai-router.json +9 -9
- package/dist/capabilities/aiand.json +13 -13
- package/dist/capabilities/aigrow.json +14 -14
- package/dist/capabilities/aimlapi.json +141 -141
- package/dist/capabilities/aipg.json +2 -2
- package/dist/capabilities/aixy.json +13 -13
- package/dist/capabilities/aki-io.json +12 -12
- package/dist/capabilities/alibaba-cn.json +101 -101
- 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 +51 -51
- package/dist/capabilities/alibaba-token-plan.json +48 -48
- package/dist/capabilities/alibaba.json +68 -68
- package/dist/capabilities/ambient.json +17 -17
- package/dist/capabilities/amd-tokenlab.json +5 -5
- package/dist/capabilities/amd.json +9 -9
- package/dist/capabilities/anthropic.json +45 -45
- package/dist/capabilities/anyapi.json +20 -20
- package/dist/capabilities/apiko.json +4 -4
- package/dist/capabilities/arcee.json +11 -11
- package/dist/capabilities/augure.json +6 -6
- package/dist/capabilities/auriko.json +17 -17
- package/dist/capabilities/bailing.json +5 -5
- package/dist/capabilities/baseten.json +27 -27
- package/dist/capabilities/bothub.json +12 -12
- package/dist/capabilities/boundless.json +37 -37
- package/dist/capabilities/bumo.json +39 -39
- package/dist/capabilities/byteplus.json +26 -26
- package/dist/capabilities/cheapaimodel.json +6 -6
- package/dist/capabilities/cheapest-token.json +29 -29
- package/dist/capabilities/chutes.json +29 -29
- package/dist/capabilities/cline-pass.json +34 -34
- package/dist/capabilities/cloudcode.json +6 -6
- package/dist/capabilities/cloudflare-workers-ai.json +15 -15
- package/dist/capabilities/commandcode.json +133 -133
- package/dist/capabilities/concentrate.json +276 -276
- package/dist/capabilities/cortecs.json +103 -103
- package/dist/capabilities/crossmodel.json +168 -168
- package/dist/capabilities/crusoe.json +14 -14
- package/dist/capabilities/daoxe.json +9 -9
- package/dist/capabilities/databricks.json +131 -131
- package/dist/capabilities/deepinfra.json +87 -87
- package/dist/capabilities/deepseek.json +4 -4
- package/dist/capabilities/digitalocean.json +115 -115
- package/dist/capabilities/dothoosh.json +30 -30
- package/dist/capabilities/doubleword.json +26 -26
- package/dist/capabilities/edenai.json +290 -281
- package/dist/capabilities/empiriolabs.json +174 -179
- package/dist/capabilities/engy.json +19 -19
- package/dist/capabilities/entrim.json +2 -2
- package/dist/capabilities/evroc.json +13 -13
- package/dist/capabilities/ezkielyna.json +13 -13
- package/dist/capabilities/fastrouter.json +81 -81
- package/dist/capabilities/fireworks-ai.json +103 -103
- package/dist/capabilities/fortytwo.json +4 -4
- package/dist/capabilities/freemodel.json +6 -6
- package/dist/capabilities/friendli.json +8 -8
- package/dist/capabilities/frogbot.json +97 -97
- package/dist/capabilities/gisoo.json +19 -19
- package/dist/capabilities/gmicloud.json +17 -17
- package/dist/capabilities/google.json +49 -49
- package/dist/capabilities/graphn.json +8 -8
- package/dist/capabilities/greenpt.json +35 -35
- package/dist/capabilities/groq.json +2 -2
- package/dist/capabilities/helicone.json +73 -73
- package/dist/capabilities/hetzner.json +2 -2
- package/dist/capabilities/hopper.json +2 -2
- package/dist/capabilities/hostinger-router.json +10 -10
- package/dist/capabilities/hpc-ai.json +4 -4
- package/dist/capabilities/huawei-maas.json +15 -15
- package/dist/capabilities/hubris.json +34 -34
- package/dist/capabilities/huggingface.json +79 -72
- package/dist/capabilities/humain.json +2 -2
- package/dist/capabilities/hyper.json +23 -23
- package/dist/capabilities/impossibl.json +129 -129
- package/dist/capabilities/inception.json +3 -3
- package/dist/capabilities/inceptron.json +2 -2
- package/dist/capabilities/inco.json +2 -2
- package/dist/capabilities/infer.json +14 -14
- package/dist/capabilities/inferall.json +5 -5
- package/dist/capabilities/inference-coop.json +12 -12
- package/dist/capabilities/inferenceapis.json +18 -18
- package/dist/capabilities/inferris.json +4 -4
- package/dist/capabilities/infersia.json +12 -12
- package/dist/capabilities/inferx.json +3 -3
- package/dist/capabilities/infomaniak.json +2 -2
- package/dist/capabilities/isoquant.json +4 -4
- package/dist/capabilities/iteracompute.json +38 -38
- package/dist/capabilities/jalapeno.json +11 -11
- package/dist/capabilities/jiekou.json +33 -33
- package/dist/capabilities/jzstoken.json +51 -51
- package/dist/capabilities/keln.json +16 -16
- package/dist/capabilities/kenari.json +131 -131
- package/dist/capabilities/kilo.json +615 -624
- package/dist/capabilities/kimchi.json +90 -0
- package/dist/capabilities/kimi-code-plan-cn.json +7 -7
- package/dist/capabilities/kimi-code-plan-global.json +7 -7
- package/dist/capabilities/klavo.json +21 -21
- package/dist/capabilities/korouter.json +32 -32
- package/dist/capabilities/kunavo.json +10 -10
- package/dist/capabilities/liquid.json +7 -7
- package/dist/capabilities/llmgateway-providers.json +924 -917
- package/dist/capabilities/llmgateway.json +347 -341
- package/dist/capabilities/llmtr.json +22 -22
- package/dist/capabilities/logits.json +2 -2
- package/dist/capabilities/longcat.json +2 -2
- package/dist/capabilities/lowrouter.json +49 -49
- package/dist/capabilities/lyceum.json +14 -14
- package/dist/capabilities/melious.json +12 -12
- package/dist/capabilities/merge-gateway.json +274 -266
- package/dist/capabilities/meta.json +6 -6
- 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 +15 -15
- package/dist/capabilities/mixlayer.json +5 -5
- package/dist/capabilities/modal.json +8 -8
- package/dist/capabilities/model-oracle-ai.json +25 -25
- package/dist/capabilities/modelis.json +18 -18
- package/dist/capabilities/modular.json +10 -10
- package/dist/capabilities/moneo.json +5 -5
- package/dist/capabilities/moonshotai-cn.json +6 -6
- package/dist/capabilities/moonshotai.json +6 -6
- package/dist/capabilities/morph.json +22 -14
- package/dist/capabilities/munito-eu.json +8 -8
- package/dist/capabilities/munito.json +8 -8
- package/dist/capabilities/nan.json +27 -27
- package/dist/capabilities/nano-gpt.json +568 -568
- package/dist/capabilities/nearai.json +85 -85
- package/dist/capabilities/nebius.json +28 -28
- package/dist/capabilities/neon.json +132 -132
- package/dist/capabilities/neuralwatt.json +40 -40
- package/dist/capabilities/nokeep.json +2 -2
- package/dist/capabilities/novita-ai.json +135 -135
- package/dist/capabilities/nvidia.json +13 -13
- package/dist/capabilities/oathbreaker.json +5 -5
- package/dist/capabilities/obscurify.json +19 -19
- package/dist/capabilities/oci.json +7 -7
- package/dist/capabilities/ofox.json +209 -209
- package/dist/capabilities/ollama-cloud.json +55 -55
- package/dist/capabilities/openai.json +60 -60
- package/dist/capabilities/opencode-go.json +91 -91
- package/dist/capabilities/openreason.json +4 -4
- package/dist/capabilities/openrouter.json +502 -511
- package/dist/capabilities/opper.json +25 -25
- package/dist/capabilities/orcarouter.json +266 -266
- package/dist/capabilities/outerlabs.json +27 -27
- package/dist/capabilities/ovhcloud.json +20 -20
- package/dist/capabilities/perplexity-agent.json +132 -42
- package/dist/capabilities/perplexity.json +2 -2
- package/dist/capabilities/phala.json +35 -35
- package/dist/capabilities/poe.json +108 -108
- package/dist/capabilities/poolside.json +2 -2
- package/dist/capabilities/powerspring.json +11 -11
- package/dist/capabilities/primalabs.json +14 -14
- package/dist/capabilities/prime.json +121 -121
- package/dist/capabilities/privatemode-ai.json +7 -7
- package/dist/capabilities/proxystacks.json +6 -6
- package/dist/capabilities/qiniu-ai.json +12 -12
- package/dist/capabilities/refuseless.json +6 -6
- package/dist/capabilities/regolo-ai.json +9 -9
- package/dist/capabilities/requesty.json +202 -202
- package/dist/capabilities/ruapi.json +23 -23
- package/dist/capabilities/runcrate.json +4 -4
- package/dist/capabilities/runinfra.json +13 -13
- package/dist/capabilities/sakana.json +5 -5
- package/dist/capabilities/sambanova.json +9 -9
- package/dist/capabilities/sandbase.json +4 -4
- package/dist/capabilities/sarvam.json +9 -9
- package/dist/capabilities/scaleway.json +15 -15
- package/dist/capabilities/scnet-token-plan.json +12 -12
- package/dist/capabilities/scx-ai.json +26 -26
- package/dist/capabilities/sensenova.json +14 -14
- package/dist/capabilities/siliconflow-cn.json +45 -45
- package/dist/capabilities/siliconflow.json +50 -50
- package/dist/capabilities/snowflake-cortex.json +24 -24
- package/dist/capabilities/sokkan.json +2 -2
- package/dist/capabilities/sparrowcodes.json +20 -20
- package/dist/capabilities/standardcompute.json +80 -80
- package/dist/capabilities/steadyrouter.json +43 -43
- package/dist/capabilities/stepfun-ai-step-plan.json +9 -9
- package/dist/capabilities/stepfun-ai.json +9 -9
- package/dist/capabilities/stepfun-step-plan.json +9 -9
- package/dist/capabilities/stepfun.json +9 -9
- package/dist/capabilities/stepping-stone.json +18 -18
- package/dist/capabilities/superbot-gg.json +4 -4
- package/dist/capabilities/synthetic.json +10 -10
- package/dist/capabilities/synthorai.json +20 -20
- package/dist/capabilities/teamorouter.json +25 -25
- package/dist/capabilities/teapot-router.json +14 -14
- package/dist/capabilities/tencent-token-plan-intl.json +22 -22
- package/dist/capabilities/tencent-token-plan.json +40 -40
- package/dist/capabilities/tencent-tokenhub.json +47 -47
- package/dist/capabilities/tensorx.json +48 -48
- package/dist/capabilities/tenstorrent.json +6 -6
- package/dist/capabilities/the-grid-ai.json +24 -24
- package/dist/capabilities/thinkingmachines.json +72 -72
- package/dist/capabilities/tinfoil.json +8 -8
- package/dist/capabilities/toapis.json +2 -2
- package/dist/capabilities/togetherai.json +48 -48
- package/dist/capabilities/tokengo.json +15 -15
- package/dist/capabilities/tokenharbor.json +738 -0
- package/dist/capabilities/tokenify.json +8 -8
- package/dist/capabilities/trustedrouter.json +6 -6
- package/dist/capabilities/trustedtokens.json +17 -17
- package/dist/capabilities/umans-ai-coding-plan.json +13 -13
- package/dist/capabilities/umans-ai.json +10 -10
- package/dist/capabilities/uncensuredai.json +5 -5
- package/dist/capabilities/unrestricted.json +6 -6
- package/dist/capabilities/uplinkswitch.json +22 -22
- package/dist/capabilities/upstage.json +2 -2
- package/dist/capabilities/vancine.json +24 -24
- package/dist/capabilities/vercel.json +576 -577
- package/dist/capabilities/verda.json +4 -4
- package/dist/capabilities/vivgrid.json +56 -56
- package/dist/capabilities/volcengine-coding-plan.json +26 -26
- package/dist/capabilities/volcengine.json +26 -26
- package/dist/capabilities/vultr.json +19 -19
- package/dist/capabilities/wafer.ai.json +19 -19
- package/dist/capabilities/wallaby.json +4 -4
- package/dist/capabilities/wally.json +13 -13
- package/dist/capabilities/wandb.json +19 -19
- package/dist/capabilities/watt.json +24 -24
- 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 +31 -31
- package/dist/capabilities/zai-coding-plan.json +17 -17
- package/dist/capabilities/zai.json +36 -27
- package/dist/capabilities/zenifra.json +26 -26
- package/dist/capabilities/zenmux.json +165 -165
- package/dist/capabilities/zerogpu.json +9 -9
- package/dist/capabilities/zhipuai-coding-plan.json +2 -2
- package/dist/capabilities/zhipuai.json +43 -27
- package/dist/capabilities/zro.json +6 -6
- package/dist/channels/index.cjs +2 -2
- package/dist/channels/index.js +2 -2
- package/dist/{channels-nnBeh58G.js → channels-BwOQwN3M.js} +1 -1
- package/dist/{channels-CKRPQRmF.cjs → channels-DrLMv8qW.cjs} +1 -1
- package/dist/coding-agent/index.cjs +1 -1
- package/dist/coding-agent/index.js +1 -1
- 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 +511 -511
- package/dist/docs/references/docs-agents-tools.md +2 -2
- package/dist/docs/references/docs-memory-message-history.md +2 -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/{execution-fence-CKFtgb2u.cjs → execution-fence-C-wa17Wr.cjs} +11 -11
- package/dist/{execution-fence-DTrAehtv.js → execution-fence-DvN3Fwm3.js} +11 -11
- 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/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/mastra-gateway-provider-tools.d.ts +7 -0
- package/dist/llm/model/provider-types.generated.d.ts +7042 -6917
- package/dist/{llm-P6sWWNc6.cjs → llm-dX0y0atH.cjs} +4 -2
- package/dist/{llm-B6EYEbYf.js → llm-hWZGKDUy.js} +4 -2
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +2 -2
- package/dist/{manager-BvnXZAFj.js → manager-9pUbVmmS.js} +2 -2
- package/dist/{manager-tQrH4_MZ.cjs → manager-CUoAGxcN.cjs} +2 -2
- package/dist/mastra/index.cjs +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/{mastra-CtL0diD6.cjs → mastra-B6Fw2ZIW.cjs} +16 -16
- package/dist/{mastra-BhPympcg.js → mastra-CliUSn4-.js} +16 -16
- package/dist/mastra-gateway-provider-tools-C-AjGZis.js +58 -0
- package/dist/mastra-gateway-provider-tools-WpH3Tmu4.cjs +81 -0
- package/dist/memory/index.cjs +2 -2
- package/dist/memory/index.js +2 -2
- package/dist/{model-D2XwLRQi.js → model-CAp-mgCd.js} +1 -1
- package/dist/{model-Cy0Z_3FQ.cjs → model-DEnu3A8A.cjs} +1 -1
- package/dist/{netlify-DgHrsLpJ.cjs → netlify-BMhDN9E8.cjs} +1 -1
- package/dist/{netlify-d2fyniAS.js → netlify-xMA06xL8.js} +1 -1
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/processor-provider/index.cjs +1 -1
- package/dist/processor-provider/index.js +1 -1
- package/dist/processors/index.cjs +2 -2
- package/dist/processors/index.js +2 -2
- package/dist/{provider-registry-Brcz84P1.cjs → provider-registry-CcMAUHdH.cjs} +21341 -21112
- package/dist/{provider-registry-B9UP28b4.js → provider-registry-DsK3rXeU.js} +21340 -21111
- package/dist/provider-registry.json +20759 -20491
- package/dist/{registry-generator-BDZrKvMb.js → registry-generator-CXDt3yuY.js} +1 -1
- package/dist/{registry-generator-DSvbAYar.cjs → registry-generator-DRFJTQ2Q.cjs} +1 -1
- package/dist/{rehydrate-Cme19iOk.js → rehydrate-C_fSTYcV.js} +2 -2
- package/dist/{rehydrate-vAlkgCKL.cjs → rehydrate-DNf3nk5t.cjs} +2 -2
- package/dist/relevance/index.cjs +2 -2
- package/dist/relevance/index.js +2 -2
- 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-B9y9VYqr.cjs → stream-BKEfY3-X.cjs} +1 -1
- package/dist/{stream-DSVk0bct.js → stream-CyaGm-DI.js} +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-e2Bi-mrf.js → tool-loop-agent-BYrNEcU_.js} +3 -3
- package/dist/{tool-loop-agent-C3wj9NhP.cjs → tool-loop-agent-Du3Vm65W.cjs} +3 -3
- package/dist/tools/builtin/web-search.d.ts +8 -0
- package/dist/tools/index.cjs +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/{tools-C2q0ougI.cjs → tools-DZoVfKPl.cjs} +42 -17
- package/dist/{tools-ybbz1YKg.js → tools-FwJyNoyg.js} +41 -10
- package/dist/{utils-B87rm4F-.cjs → utils-Ag63fN_T.cjs} +1 -1
- package/dist/{utils-DCDsj1CG.js → utils-Dl5BqcZO.js} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/{validate-_e8OoEh5.js → validate-CYqPJX3z.js} +1 -1
- package/dist/{validate-XPZLQRoc.cjs → validate-bRsKfPrD.cjs} +1 -1
- package/dist/vector/index.cjs +1 -1
- package/dist/vector/index.js +1 -1
- package/dist/worker/index.cjs +1 -1
- package/dist/worker/index.js +1 -1
- package/dist/{worker-DzMDk--h.cjs → worker-DPjo5pv_.cjs} +2 -2
- package/dist/{worker-CGWclXz3.cjs → worker-Dvt_y5ra.cjs} +2 -2
- package/dist/{worker-DvI9J9Qw.js → worker-RbY0GNay.js} +2 -2
- package/dist/{worker-BAstsOqw.js → worker-oSqtPcV6.js} +2 -2
- package/dist/{workflow-BFF2mNDa.cjs → workflow-B6Xdy2Ck.cjs} +3 -3
- package/dist/{workflow-DcpI9eNC.js → workflow-X6iwBizX.js} +3 -3
- package/dist/workflows/builder/index.cjs +1 -1
- package/dist/workflows/builder/index.js +1 -1
- package/dist/workflows/evented/index.cjs +1 -1
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +4 -4
- package/dist/workflows/index.js +4 -4
- package/package.json +3 -3
- package/src/llm/model/provider-types.generated.d.ts +7042 -6917
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getGatewayId, v as shouldEnableGateway, y as getCapabilityFileName } from "./netlify-
|
|
1
|
+
import { g as getGatewayId, v as shouldEnableGateway, y as getCapabilityFileName } from "./netlify-xMA06xL8.js";
|
|
2
2
|
import path from "path";
|
|
3
3
|
import fs from "fs/promises";
|
|
4
4
|
// src/llm/model/registry-generator.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
|
|
2
|
-
const require_netlify = require("./netlify-
|
|
2
|
+
const require_netlify = require("./netlify-BMhDN9E8.cjs");
|
|
3
3
|
let path = require("path");
|
|
4
4
|
path = require_rolldown_runtime.__toESM(path, 1);
|
|
5
5
|
let fs_promises = require("fs/promises");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Ds as createEventedWorkflow, Es as cloneWorkflow, Ic as mapVariable, Lc as predicateToCondition, Os as createWorkflow, al as createStepFromTool, rl as createStepFromAgent, yl as getSingleStepEntryId } from "./execution-fence-
|
|
1
|
+
import { Ds as createEventedWorkflow, Es as cloneWorkflow, Ic as mapVariable, Lc as predicateToCondition, Os as createWorkflow, al as createStepFromTool, rl as createStepFromAgent, yl as getSingleStepEntryId } from "./execution-fence-DvN3Fwm3.js";
|
|
2
2
|
import { derivePredicateLabel } from "./predicate/index.js";
|
|
3
|
-
import { a as jsonSchemaToZod, l as parseMapConfig } from "./validate-
|
|
3
|
+
import { a as jsonSchemaToZod, l as parseMapConfig } from "./validate-CYqPJX3z.js";
|
|
4
4
|
import { standardSchemaToJSONSchema, toStandardSchema } from "./schema/index.js";
|
|
5
5
|
// src/workflows/dynamic/serialize.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_execution_fence = require("./execution-fence-
|
|
1
|
+
const require_execution_fence = require("./execution-fence-C-wa17Wr.cjs");
|
|
2
2
|
const require_predicate_index = require("./predicate/index.cjs");
|
|
3
|
-
const require_validate = require("./validate-
|
|
3
|
+
const require_validate = require("./validate-bRsKfPrD.cjs");
|
|
4
4
|
let _mastra_schema_compat_schema = require("@mastra/schema-compat/schema");
|
|
5
5
|
// src/workflows/dynamic/serialize.ts
|
|
6
6
|
/**
|
package/dist/relevance/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_execution_fence = require("../execution-fence-
|
|
3
|
-
const require_stream = require("../stream-
|
|
2
|
+
const require_execution_fence = require("../execution-fence-C-wa17Wr.cjs");
|
|
3
|
+
const require_stream = require("../stream-BKEfY3-X.cjs");
|
|
4
4
|
// src/relevance/relevance-score-provider.ts
|
|
5
5
|
function createSimilarityPrompt(query, text) {
|
|
6
6
|
return `Rate the semantic similarity between the following the query and the text on a scale from 0 to 1 (decimals allowed), where 1 means exactly the same meaning and 0 means completely different:
|
package/dist/relevance/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Agent } from "../execution-fence-
|
|
2
|
-
import { un as isSupportedLanguageModel } from "../stream-
|
|
1
|
+
import { T as Agent } from "../execution-fence-DvN3Fwm3.js";
|
|
2
|
+
import { un as isSupportedLanguageModel } from "../stream-CyaGm-DI.js";
|
|
3
3
|
// src/relevance/relevance-score-provider.ts
|
|
4
4
|
function createSimilarityPrompt(query, text) {
|
|
5
5
|
return `Rate the semantic similarity between the following the query and the text on a scale from 0 to 1 (decimals allowed), where 1 means exactly the same meaning and 0 means completely different:
|
package/dist/storage/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_stream = require("../stream-
|
|
3
|
-
const require_execution_fence = require("../execution-fence-
|
|
2
|
+
const require_stream = require("../stream-BKEfY3-X.cjs");
|
|
3
|
+
const require_execution_fence = require("../execution-fence-C-wa17Wr.cjs");
|
|
4
4
|
const require_observability = require("../observability-VaoaeadK.cjs");
|
|
5
5
|
const require_storage = require("../storage-CfG0I2aF.cjs");
|
|
6
6
|
const require_constants = require("../constants-B2FVV_2e.cjs");
|
package/dist/storage/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { At as getSnapshotMemoryInfo, Bt as stateColumnsWrite, Ft as latestStepResults, Ht as unusedStateEntries, It as materializeState, Lt as materializeWorkflowRun, Mt as STEP_RESULT_SUMMARY_FIELDS, Nt as applyStateColumnsWrite, Pt as isStateCheckpointDue, Rt as pickStateKeys, Sn as takenQueueThreadId, Ut as applyStatePatch, Vt as summarizeStepResult, Wt as diffState, _n as QUEUE_THREAD_PREFIX, bn as pendingQueueThreadId, jt as STATE_CHECKPOINT_PATCHES, vn as assertNotQueueThreadId, xn as queuedQueueThreadId, yn as isQueueThreadId, zt as stateBaseOf } from "../stream-
|
|
2
|
-
import { $a as spanQueryResponseSchema, $i as ChannelsStorage, $n as assertKnowledgeCeilingRaised, $r as KnowledgeImporterBindingConflictError, Aa as THREAD_QUERY_DEFAULT_LIMIT, Ai as knowledgeLinkRefKey, Ar as ScoresInMemory, Ba as SPAN_QUERY_MAX_LIMIT, Bi as ExperimentsInMemory, Ca as validateStorageMetadataFilter, Ci as MAX_KNOWLEDGE_PAGE_LINKS, Cr as createEmptyWorkflowSnapshot, Da as tracePageNodeSchema, Dc as isWorkflowStepConflictError, Di as assertKnowledgeNoteTextWithinBound, Dr as WorkflowDefinitionsStorage, Ea as tracePageIdSchema, Ec as assertWorkflowStepGuard, Ei as MAX_KNOWLEDGE_PIN_LIST_DEPTH, Er as InMemoryWorkflowDefinitionsStorage, Fa as threadQueryRequestSchema, Fi as parseKnowledgePageRef, Fr as InMemoryNotificationsStorage, Ga as encodeSpanQueryCursor, Ha as SPAN_QUERY_ORDER_FIELDS, Hi as DatasetsInMemory, Ia as threadQueryResponseSchema, Ii as KnowledgeInvalidCursorError, Ir as NotificationsStorage, Ja as resolveSpanQueryCost, Ka as parseSpanQueryRequest, La as threadQueryRowSchema, Lr as dispatchDueNotifications, Ma as encodeThreadQueryCursor, Mi as knowledgePinDepth, Mr as InMemorySchedulesStorage, Na as planThreadRowsQuery, Ni as knowledgePositionBetween, Nr as SchedulesStorage, Oa as tracePageRequestSchema, Oi as assertKnowledgePageDescriptionWithinBound, Or as InMemoryToolProviderConnectionsStorage, Pa as threadQueryIdentitySchema, Pi as knowledgeScopeReadable, Pr as normalizeScheduleTarget, Qa as spanQueryRequestSchema, Qi as InMemoryChannelsStorage, Qn as MAX_KNOWLEDGE_SCOPE_TAGS, Qr as InMemoryKnowledgeStorage, Ra as SPAN_QUERY_MAX_COST_METRICS, Ri as InMemoryHarness, Sa as transformScoreRow, Si as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, Sr as WorkflowsStorage, Ta as readTracePage, Tc as WorkflowStepConflictError, Ti as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, Tr as mergeWorkflowStepResult, Ua as buildSpanQueryResponse, Ui as DatasetsStorage, Va as SPAN_QUERY_MAX_PREVIEW_CHARACTERS, Vi as ExperimentsStorage, Wa as createSpanQueryPreview, Wi as DatasetItemIdentityConflictError, Xa as spanQueryIdentityKey, Xn as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, Xr as InMemoryMemory, Ya as spanQueryCostSchema, Za as spanQueryIdentitySchema, Zn as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, Zr as MemoryStorage, _a as parseDuration, _i as KnowledgePageKeyConflictError, _o as ObservabilityStorage, _r as FilesystemDB, _u as matchesRunFence, aa as resolveRetentionTargets, ai as KnowledgeNotFoundError, ao as planTraceQuery, ar as expandKnowledgeScope, ba as storageMessageMatchesMetadataFilter, bi as MAX_KNOWLEDGE_PAGE_BODY_LINKS, bo as UniqueViolationError, br as WorkflowsInMemory, bu as runOutsideRunFenceScope, ca as createStorageErrorId, ci as KnowledgeTransactionDeadlineError, co as buildLogRecord, cr as knowledgeSemanticDocumentId, da as ensureDate, di as createKnowledgeUlid, do as buildUpdateSpanRecord, dr as parseKnowledgeNodeCursor, du as RUN_FENCE_CONFLICT_ERROR_ID, ea as InMemoryBlobStore, ei as KnowledgeImporterRunStateError, eo as spanQueryRowSchema, er as assertKnowledgeDescriptionWithinBound, fa as filterByDateRange, fi as inspectKnowledgeSchema, fo as getObjectOrNull, fr as StoreOperationsInMemory, fu as RUN_FENCING_NOT_SUPPORTED_ERROR_ID, ga as jsonValueEquals, gi as KnowledgePageHasChildrenError, go as ObservabilityInMemory, gr as FilesystemStore, gu as isRunFenceConflictError, ha as hasErrorCode, hi as KnowledgePageDepthError, ho as toEntityType, hr as createGitHubSourceControlProviderFromEnv, hu as currentRunGeneration, ia as executeRetentionPrune, ii as KnowledgeConflictError, io as planThreadQuery, ir as createKnowledgeNodeCursor, ja as THREAD_QUERY_MAX_LIMIT, ji as knowledgePagePath, jr as ScoresStorage, ka as tracePageResponseSchema, ki as canonicalKnowledgeName, kr as ToolProviderConnectionsStorage, la as createStoreErrorId, li as KnowledgeUnsupportedCapabilityError, lo as buildMetricRecord, lr as knowledgeSemanticIdempotencyKey, ma as getSqlType, mi as KnowledgeMoveTooLargeError, mo as serializeSpanAttributes, mr as GitHubSourceControlProvider, mu as coverNestedRun, na as BackgroundTasksInMemory, ni as KNOWLEDGE_STORAGE_CONTRACT_VERSION, no as encodeTraceQueryDeltaCursor, nr as assertKnowledgeScopeWithinCeiling, oa as retentionCutoffMs, oi as KnowledgeSchemaResetRequiredError, oo as buildCreateSpanRecord, or as isKnowledgeScopeVisible, pa as getDefaultValue, pi as parseKnowledgeWikilinks, po as getStringOrNull, pr as StoreOperations, pu as RunFenceConflictError, qa as planSpanQuery, ra as BackgroundTasksStorage, ri as KNOWLEDGE_STORAGE_SCHEMA_VERSION, ro as getTraceQueryDeltaWatermark, rr as canonicalizeKnowledgeScope, sa as runRetentionBatches, si as KnowledgeStorage, so as buildFeedbackRecord, sr as knowledgeScopeKey, ta as BlobStore, ti as KnowledgeImportersStorage, to as encodeTraceQueryCursor, tr as assertKnowledgeRecordTextWithinBound, ua as createVectorErrorId, ui as assertKnowledgeSchemaCompatible, uo as buildScoreRecord, ur as knowledgeVisibleScopeKeys, va as safelyParseJSON, vi as MAX_KNOWLEDGE_MOVE_PAGES, vo as FactoryStorage, vr as InMemoryStore, vu as resolveRunFence, wa as TracePageError, wi as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, wr as mergeStepResult, xa as transformRow, xi as MAX_KNOWLEDGE_PAGE_DEPTH, xr as cloneRunData, xu as setRunFenceContext, ya as serializeDate, yi as MAX_KNOWLEDGE_NOTE_TOKENS, yo as FactoryStorageDomain, yr as MockStore, yu as runFencingNotSupportedError, za as SPAN_QUERY_MAX_CURSOR_BYTES, zi as HarnessStorage } from "../execution-fence-
|
|
1
|
+
import { At as getSnapshotMemoryInfo, Bt as stateColumnsWrite, Ft as latestStepResults, Ht as unusedStateEntries, It as materializeState, Lt as materializeWorkflowRun, Mt as STEP_RESULT_SUMMARY_FIELDS, Nt as applyStateColumnsWrite, Pt as isStateCheckpointDue, Rt as pickStateKeys, Sn as takenQueueThreadId, Ut as applyStatePatch, Vt as summarizeStepResult, Wt as diffState, _n as QUEUE_THREAD_PREFIX, bn as pendingQueueThreadId, jt as STATE_CHECKPOINT_PATCHES, vn as assertNotQueueThreadId, xn as queuedQueueThreadId, yn as isQueueThreadId, zt as stateBaseOf } from "../stream-CyaGm-DI.js";
|
|
2
|
+
import { $a as spanQueryResponseSchema, $i as ChannelsStorage, $n as assertKnowledgeCeilingRaised, $r as KnowledgeImporterBindingConflictError, Aa as THREAD_QUERY_DEFAULT_LIMIT, Ai as knowledgeLinkRefKey, Ar as ScoresInMemory, Ba as SPAN_QUERY_MAX_LIMIT, Bi as ExperimentsInMemory, Ca as validateStorageMetadataFilter, Ci as MAX_KNOWLEDGE_PAGE_LINKS, Cr as createEmptyWorkflowSnapshot, Da as tracePageNodeSchema, Dc as isWorkflowStepConflictError, Di as assertKnowledgeNoteTextWithinBound, Dr as WorkflowDefinitionsStorage, Ea as tracePageIdSchema, Ec as assertWorkflowStepGuard, Ei as MAX_KNOWLEDGE_PIN_LIST_DEPTH, Er as InMemoryWorkflowDefinitionsStorage, Fa as threadQueryRequestSchema, Fi as parseKnowledgePageRef, Fr as InMemoryNotificationsStorage, Ga as encodeSpanQueryCursor, Ha as SPAN_QUERY_ORDER_FIELDS, Hi as DatasetsInMemory, Ia as threadQueryResponseSchema, Ii as KnowledgeInvalidCursorError, Ir as NotificationsStorage, Ja as resolveSpanQueryCost, Ka as parseSpanQueryRequest, La as threadQueryRowSchema, Lr as dispatchDueNotifications, Ma as encodeThreadQueryCursor, Mi as knowledgePinDepth, Mr as InMemorySchedulesStorage, Na as planThreadRowsQuery, Ni as knowledgePositionBetween, Nr as SchedulesStorage, Oa as tracePageRequestSchema, Oi as assertKnowledgePageDescriptionWithinBound, Or as InMemoryToolProviderConnectionsStorage, Pa as threadQueryIdentitySchema, Pi as knowledgeScopeReadable, Pr as normalizeScheduleTarget, Qa as spanQueryRequestSchema, Qi as InMemoryChannelsStorage, Qn as MAX_KNOWLEDGE_SCOPE_TAGS, Qr as InMemoryKnowledgeStorage, Ra as SPAN_QUERY_MAX_COST_METRICS, Ri as InMemoryHarness, Sa as transformScoreRow, Si as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, Sr as WorkflowsStorage, Ta as readTracePage, Tc as WorkflowStepConflictError, Ti as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, Tr as mergeWorkflowStepResult, Ua as buildSpanQueryResponse, Ui as DatasetsStorage, Va as SPAN_QUERY_MAX_PREVIEW_CHARACTERS, Vi as ExperimentsStorage, Wa as createSpanQueryPreview, Wi as DatasetItemIdentityConflictError, Xa as spanQueryIdentityKey, Xn as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, Xr as InMemoryMemory, Ya as spanQueryCostSchema, Za as spanQueryIdentitySchema, Zn as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, Zr as MemoryStorage, _a as parseDuration, _i as KnowledgePageKeyConflictError, _o as ObservabilityStorage, _r as FilesystemDB, _u as matchesRunFence, aa as resolveRetentionTargets, ai as KnowledgeNotFoundError, ao as planTraceQuery, ar as expandKnowledgeScope, ba as storageMessageMatchesMetadataFilter, bi as MAX_KNOWLEDGE_PAGE_BODY_LINKS, bo as UniqueViolationError, br as WorkflowsInMemory, bu as runOutsideRunFenceScope, ca as createStorageErrorId, ci as KnowledgeTransactionDeadlineError, co as buildLogRecord, cr as knowledgeSemanticDocumentId, da as ensureDate, di as createKnowledgeUlid, do as buildUpdateSpanRecord, dr as parseKnowledgeNodeCursor, du as RUN_FENCE_CONFLICT_ERROR_ID, ea as InMemoryBlobStore, ei as KnowledgeImporterRunStateError, eo as spanQueryRowSchema, er as assertKnowledgeDescriptionWithinBound, fa as filterByDateRange, fi as inspectKnowledgeSchema, fo as getObjectOrNull, fr as StoreOperationsInMemory, fu as RUN_FENCING_NOT_SUPPORTED_ERROR_ID, ga as jsonValueEquals, gi as KnowledgePageHasChildrenError, go as ObservabilityInMemory, gr as FilesystemStore, gu as isRunFenceConflictError, ha as hasErrorCode, hi as KnowledgePageDepthError, ho as toEntityType, hr as createGitHubSourceControlProviderFromEnv, hu as currentRunGeneration, ia as executeRetentionPrune, ii as KnowledgeConflictError, io as planThreadQuery, ir as createKnowledgeNodeCursor, ja as THREAD_QUERY_MAX_LIMIT, ji as knowledgePagePath, jr as ScoresStorage, ka as tracePageResponseSchema, ki as canonicalKnowledgeName, kr as ToolProviderConnectionsStorage, la as createStoreErrorId, li as KnowledgeUnsupportedCapabilityError, lo as buildMetricRecord, lr as knowledgeSemanticIdempotencyKey, ma as getSqlType, mi as KnowledgeMoveTooLargeError, mo as serializeSpanAttributes, mr as GitHubSourceControlProvider, mu as coverNestedRun, na as BackgroundTasksInMemory, ni as KNOWLEDGE_STORAGE_CONTRACT_VERSION, no as encodeTraceQueryDeltaCursor, nr as assertKnowledgeScopeWithinCeiling, oa as retentionCutoffMs, oi as KnowledgeSchemaResetRequiredError, oo as buildCreateSpanRecord, or as isKnowledgeScopeVisible, pa as getDefaultValue, pi as parseKnowledgeWikilinks, po as getStringOrNull, pr as StoreOperations, pu as RunFenceConflictError, qa as planSpanQuery, ra as BackgroundTasksStorage, ri as KNOWLEDGE_STORAGE_SCHEMA_VERSION, ro as getTraceQueryDeltaWatermark, rr as canonicalizeKnowledgeScope, sa as runRetentionBatches, si as KnowledgeStorage, so as buildFeedbackRecord, sr as knowledgeScopeKey, ta as BlobStore, ti as KnowledgeImportersStorage, to as encodeTraceQueryCursor, tr as assertKnowledgeRecordTextWithinBound, ua as createVectorErrorId, ui as assertKnowledgeSchemaCompatible, uo as buildScoreRecord, ur as knowledgeVisibleScopeKeys, va as safelyParseJSON, vi as MAX_KNOWLEDGE_MOVE_PAGES, vo as FactoryStorage, vr as InMemoryStore, vu as resolveRunFence, wa as TracePageError, wi as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, wr as mergeStepResult, xa as transformRow, xi as MAX_KNOWLEDGE_PAGE_DEPTH, xr as cloneRunData, xu as setRunFenceContext, ya as serializeDate, yi as MAX_KNOWLEDGE_NOTE_TOKENS, yo as FactoryStorageDomain, yr as MockStore, yu as runFencingNotSupportedError, za as SPAN_QUERY_MAX_CURSOR_BYTES, zi as HarnessStorage } from "../execution-fence-DvN3Fwm3.js";
|
|
3
3
|
import { l as PREVIEW_MAX_LENGTH } from "../observability-DPDWibyH.js";
|
|
4
4
|
import { $ as getFeedbackAggregateArgsSchema, $t as metricsFilterSchema, A as deleteScoresResponseSchema, An as tagsField, At as getServiceNamesResponseSchema, B as experimentIdField, Bt as listScoresArgsSchema, C as dateRangeSchema, Cn as scoresOrderBySchema, Ct as getScoreBreakdownArgsSchema, D as deleteFeedbackArgsSchema, Dn as sourceField, Dt as getScoreTimeSeriesArgsSchema, E as defaultPaginationArgs, En as sortDirectionSchema, Et as getScorePercentilesResponseSchema, F as entityIdField, Fn as userIdField, Ft as listLogsArgsSchema, G as feedbackRecordSchema, Gt as logsFilterSchema, H as feedbackInputSchema, Ht as logLevelSchema, I as entityNameField, It as listLogsResponseSchema, J as getEntityNamesResponseSchema, Jt as metadataField, K as feedbackReviewStatusSchema, Kt as logsOrderByFieldSchema, L as entityTypeField, Lt as listMetricsArgsSchema, M as deltaInfoSchema, Mn as traceIdField, Mt as getTagsResponseSchema, N as deltaLimitSchema, Nn as updateFeedbackReviewStatusArgsSchema, Nt as listFeedbackArgsSchema, O as deleteFeedbackResponseSchema, On as spanContextFields, Ot as getScoreTimeSeriesResponseSchema, P as distinctColumnSchema, Pn as updatedAtField, Pt as listFeedbackResponseSchema, Q as getEnvironmentsResponseSchema, Qt as metricsAggregationSchema, R as environmentField, Rt as listMetricsResponseSchema, S as createdAtField, Sn as scoresOrderByFieldSchema, St as getScoreAggregateResponseSchema, T as defaultDeltaLimit, Tn as sessionIdField, Tt as getScorePercentilesArgsSchema, U as feedbackOrderByFieldSchema, Ut as logRecordInputSchema, V as feedbackFilterSchema, Vt as listScoresResponseSchema, W as feedbackOrderBySchema, Wt as logRecordSchema, X as getEntityTypesResponseSchema, Xt as metricRecordSchema, Y as getEntityTypesArgsSchema, Yt as metricInputSchema, Z as getEnvironmentsArgsSchema, Zt as metricTypeSchema, _ as createMetricRecordSchema, _n as runIdField, _t as getMetricPercentilesArgsSchema, a as batchCreateFeedbackArgsSchema, an as paginationInfoSchema, at as getFeedbackTimeSeriesArgsSchema, b as createScoreRecordSchema, bn as scoreRecordSchema, bt as getMetricTimeSeriesResponseSchema, c as batchCreateScoresArgsSchema, cn as parentEntityTypeField, ct as getMetricAggregateResponseSchema, d as contextFields, dn as requestIdField, dt as getMetricLabelKeysArgsSchema, en as metricsOrderByFieldSchema, et as getFeedbackAggregateResponseSchema, f as createFeedbackArgsSchema, ft as getMetricLabelKeysResponseSchema, g as createLogRecordSchema, gn as rootEntityTypeField, gt as getMetricNamesResponseSchema, h as createFeedbackResponseSchema, hn as rootEntityNameField, ht as getMetricNamesArgsSchema, i as aggregationTypeSchema, in as paginationArgsSchema, it as getFeedbackPercentilesResponseSchema, j as deltaCursorSchema, jn as threadIdField, jt as getTagsArgsSchema, k as deleteScoresArgsSchema, kn as spanIdField, kt as getServiceNamesArgsSchema, l as commonFilterFields, ln as refineObservabilityListMode, lt as getMetricBreakdownArgsSchema, m as createFeedbackRecordSchema, mn as rootEntityIdField, mt as getMetricLabelValuesResponseSchema, n as METRIC_DISTINCT_COLUMNS, nn as normalizeObservabilityListArgs, nt as getFeedbackBreakdownResponseSchema, o as batchCreateLogsArgsSchema, on as parentEntityIdField, ot as getFeedbackTimeSeriesResponseSchema, p as createFeedbackBodySchema, pn as resourceIdField, pt as getMetricLabelValuesArgsSchema, q as getEntityNamesArgsSchema, qt as logsOrderBySchema, r as aggregationIntervalSchema, rn as organizationIdField, rt as getFeedbackPercentilesArgsSchema, s as batchCreateMetricsArgsSchema, sn as parentEntityNameField, st as getMetricAggregateArgsSchema, t as EntityType, tn as metricsOrderBySchema, tt as getFeedbackBreakdownArgsSchema, u as comparePeriodSchema, un as replaceFeedbackBodySchema, ut as getMetricBreakdownResponseSchema, v as createScoreArgsSchema, vn as scopeField, vt as getMetricPercentilesResponseSchema, w as dbTimestamps, wn as serviceNameField, wt as getScoreBreakdownResponseSchema, x as createScoreResponseSchema, xn as scoresFilterSchema, xt as getScoreAggregateArgsSchema, y as createScoreBodySchema, yn as scoreInputSchema, yt as getMetricTimeSeriesArgsSchema, z as executionSourceField, zt as listModeSchema } from "../storage-Cc50aQAp.js";
|
|
5
5
|
import { $ as TABLE_CHANNEL_INSTALLATIONS, $n as listTracesLightResponseSchema, $t as TABLE_WORKSPACES, A as MCP_CLIENTS_SCHEMA, An as computeTraceStatus, At as TABLE_OBSERVATIONAL_MEMORY, B as PROMPT_BLOCK_VERSIONS_SCHEMA, Bn as getSpansArgsSchema, Bt as TABLE_SKILLS, C as KNOWLEDGE_SCOPE_GRANTS_SCHEMA, Cn as branchesFilterSchema, Ct as TABLE_MCP_CLIENTS, D as KNOWLEDGE_V2_MENTIONS_SCHEMA, Dn as buildPreview, Dt as TABLE_MEMORY_RUN_FENCES, E as KNOWLEDGE_V2_ACTIVITY_SCHEMA, En as buildInputPreview, Et as TABLE_MCP_SERVER_VERSIONS, F as NOTIFICATIONS_SCHEMA, Fn as getBranchResponseSchema, Ft as TABLE_SCHEDULE_TRIGGERS, G as SKILLS_SCHEMA, Gn as getTraceLightResponseSchema, Gt as TABLE_THREAD_STATE, H as SCORERS_SCHEMA, Hn as getStringAttribute, Ht as TABLE_SKILL_VERSIONS, I as OBSERVATIONAL_MEMORY_SCHEMA, In as getRootSpanArgsSchema, It as TABLE_SCHEMAS, J as SPAN_SCHEMA, Jn as lightSpanRecordSchema, Jt as TABLE_WORKFLOW_DEFINITIONS, K as SKILL_BLOBS_SCHEMA, Kn as getTraceResponseSchema, Kt as TABLE_TOOL_PROVIDER_CONNECTIONS, L as OBSERVATIONAL_MEMORY_TABLE_SCHEMA, Ln as getRootSpanResponseSchema, Lt as TABLE_SCORERS, M as MCP_SERVERS_SCHEMA, Mn as createSpanRecordSchema, Mt as TABLE_PROMPT_BLOCK_VERSIONS, N as MCP_SERVER_VERSIONS_SCHEMA, Nn as extractBranchSpans, Nt as TABLE_RESOURCES, O as KNOWLEDGE_V2_NODES_SCHEMA, On as buildPreviewFromJson, Ot as TABLE_MESSAGES, P as MEMORY_RUN_FENCES_SCHEMA, Pn as getBranchArgsSchema, Pt as TABLE_SCHEDULES, Q as TABLE_CHANNEL_CONFIG, Qn as listTracesArgsSchema, Qt as TABLE_WORKFLOW_SNAPSHOT, R as OLD_SPAN_SCHEMA, Rn as getSpanArgsSchema, Rt as TABLE_SCORER_DEFINITIONS, S as KNOWLEDGE_SCOPE_ADDRESSES_SCHEMA, Sn as batchUpdateSpansArgsSchema, St as TABLE_KNOWLEDGE_SEMANTIC_OUTBOX, T as KNOWLEDGE_TABLE_NAMES, Tn as branchesOrderBySchema, Tt as TABLE_MCP_SERVERS, U as SCORER_DEFINITIONS_SCHEMA, Un as getStructureResponseSchema, Ut as TABLE_SPANS, V as RUN_FENCING_TABLE_SCHEMAS, Vn as getSpansResponseSchema, Vt as TABLE_SKILL_BLOBS, W as SCORER_DEFINITION_VERSIONS_SCHEMA, Wn as getTraceArgsSchema, Wt as TABLE_THREADS, X as TABLE_AGENT_VERSIONS, Xn as listBranchesResponseSchema, Xt as TABLE_WORKFLOW_RUN_ENTRIES, Y as TABLE_AGENTS, Yn as listBranchesArgsSchema, Yt as TABLE_WORKFLOW_RUNS, Z as TABLE_BACKGROUND_TASKS, Zn as listScoresBySpanResponseSchema, Zt as TABLE_WORKFLOW_RUN_OWNERS, _ as KNOWLEDGE_NODE_ADDRESSES_SCHEMA, _n as INPUT_PREVIEW_MAX_LENGTH, _r as isAppendOnlySince, _t as TABLE_KNOWLEDGE_PROPOSALS, a as DATASET_VERSIONS_SCHEMA, an as WORKFLOW_RUN_ENTRIES_SCHEMA, ar as spanRecordSchema, at as TABLE_EXPERIMENT_RESULTS, b as KNOWLEDGE_RECORDS_SCHEMA, bn as batchDeleteTracesArgsSchema, br as maxObservationCursor, bt as TABLE_KNOWLEDGE_SCOPE_ADDRESSES, c as FAVORITES_SCHEMA, cn as WORKSPACES_SCHEMA, cr as toTraceSpans, ct as TABLE_KNOWLEDGE_ACCESS_STATE, d as KNOWLEDGE_ACTIVITY_SCHEMA, dn as STORAGE_VISIBILITY_VALUES, dr as tracesOrderByFieldSchema, dt as TABLE_KNOWLEDGE_IMPORT_RUNS, en as TABLE_WORKSPACE_VERSIONS, er as listTracesResponseSchema, et as TABLE_CONFIGS, f as KNOWLEDGE_CURSORS_SCHEMA, fn as buildStorageSchema, fr as tracesOrderBySchema, ft as TABLE_KNOWLEDGE_IMPORT_STATE, g as KNOWLEDGE_NODES_SCHEMA, gn as BRANCH_SPAN_TYPE_SET, gr as compareObservationalMemoryHeadOrder, gt as TABLE_KNOWLEDGE_NODE_SCOPES, h as KNOWLEDGE_MENTIONS_SCHEMA, hn as BRANCH_SPAN_TYPES, hr as assertActiveObservationsApplied, ht as TABLE_KNOWLEDGE_NODE_ADDRESSES, i as DATASET_ITEMS_SCHEMA, in as WORKFLOW_RUNS_SCHEMA, ir as spanIdsSchema, it as TABLE_EXPERIMENTS, j as MCP_CLIENT_VERSIONS_SCHEMA, jn as createSpanArgsSchema, jt as TABLE_PROMPT_BLOCKS, k as KNOWLEDGE_V2_RECORDS_SCHEMA, kn as buildStoredPreview, kt as TABLE_NOTIFICATIONS, l as HARNESS_SESSIONS_SCHEMA, ln as WORKSPACE_VERSIONS_SCHEMA, lr as traceSpanSchema, lt as TABLE_KNOWLEDGE_ACTIVITY, m as KNOWLEDGE_IMPORT_STATE_SCHEMA, mn as BATCH_DELETE_TRACES_MAX_IDS, mr as updateSpanRecordSchema, mt as TABLE_KNOWLEDGE_NODES, n as AGENT_VERSIONS_SCHEMA, nn as TOOL_PROVIDER_CONNECTIONS_SCHEMA, nr as scoreTracesResponseSchema, nt as TABLE_DATASET_ITEMS, o as EXPERIMENTS_SCHEMA, on as WORKFLOW_RUN_JOURNAL_TABLE_CONFIGS, or as toLightSpanRecord, ot as TABLE_FAVORITES, p as KNOWLEDGE_IMPORT_RUNS_SCHEMA, pn as matchesExpectedWorkflowStatus, pr as updateSpanArgsSchema, pt as TABLE_KNOWLEDGE_MENTIONS, q as SKILL_VERSIONS_SCHEMA, qn as isPreviewTruncated, qt as TABLE_TRACES, r as DATASETS_SCHEMA, rn as WORKFLOW_DEFINITIONS_SCHEMA, rr as spanIds, rt as TABLE_DATASET_VERSIONS, s as EXPERIMENT_RESULTS_SCHEMA, sn as WORKFLOW_RUN_OWNERS_SCHEMA, sr as toTraceSpan, st as TABLE_HARNESS_SESSIONS, t as AGENTS_SCHEMA, tn as THREAD_STATE_SCHEMA, tr as scoreTracesRequestSchema, tt as TABLE_DATASETS, u as KNOWLEDGE_ACCESS_STATE_SCHEMA, un as STORAGE_FAVORITE_ENTITY_TYPES, ur as tracesFilterSchema, ut as TABLE_KNOWLEDGE_CURSORS, v as KNOWLEDGE_NODE_SCOPES_SCHEMA, vn as TraceStatus, vr as isBufferedChunkCoveredByCursor, vt as TABLE_KNOWLEDGE_RECORDS, w as KNOWLEDGE_SEMANTIC_OUTBOX_SCHEMA, wn as branchesOrderByFieldSchema, wt as TABLE_MCP_CLIENT_VERSIONS, x as KNOWLEDGE_RECORD_SCOPES_SCHEMA, xn as batchDeleteTracesResponseSchema, xr as planReflectionGenerationText, xt as TABLE_KNOWLEDGE_SCOPE_GRANTS, y as KNOWLEDGE_PROPOSALS_SCHEMA, yn as batchCreateSpansArgsSchema, yr as isBufferedReflectionUnchangedSince, yt as TABLE_KNOWLEDGE_RECORD_SCOPES, z as PROMPT_BLOCKS_SCHEMA, zn as getSpanResponseSchema, zt as TABLE_SCORER_DEFINITION_VERSIONS } from "../constants-Dro9fuhk.js";
|
package/dist/stream/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_stream = require("../stream-
|
|
3
|
-
const require_llm = require("../llm-
|
|
2
|
+
const require_stream = require("../stream-BKEfY3-X.cjs");
|
|
3
|
+
const require_llm = require("../llm-dX0y0atH.cjs");
|
|
4
4
|
const require_file = require("../file-BEndQUN1.cjs");
|
|
5
5
|
exports.ChunkFrom = require_llm.ChunkFrom;
|
|
6
6
|
exports.DefaultGeneratedFile = require_file.DefaultGeneratedFile;
|
package/dist/stream/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Nn as convertFullStreamChunkToUIMessageStream, a as convertFullStreamChunkToMastra, c as WorkflowRunOutput, d as MastraModelOutput, i as withStreamCaching, n as createCachingTransformStream, o as convertMastraChunkToAISDKv5, r as createReplayStream, s as MastraAgentNetworkStream, t as smoothStream } from "../stream-
|
|
2
|
-
import { u as ChunkFrom } from "../llm-
|
|
1
|
+
import { Nn as convertFullStreamChunkToUIMessageStream, a as convertFullStreamChunkToMastra, c as WorkflowRunOutput, d as MastraModelOutput, i as withStreamCaching, n as createCachingTransformStream, o as convertMastraChunkToAISDKv5, r as createReplayStream, s as MastraAgentNetworkStream, t as smoothStream } from "../stream-CyaGm-DI.js";
|
|
2
|
+
import { u as ChunkFrom } from "../llm-hWZGKDUy.js";
|
|
3
3
|
import { n as DefaultGeneratedFileWithType, t as DefaultGeneratedFile } from "../file-DGZrR5f7.js";
|
|
4
4
|
export { ChunkFrom, DefaultGeneratedFile, DefaultGeneratedFileWithType, MastraAgentNetworkStream, MastraModelOutput, WorkflowRunOutput, convertFullStreamChunkToMastra, convertFullStreamChunkToUIMessageStream, convertMastraChunkToAISDKv5, createCachingTransformStream, createReplayStream, smoothStream, withStreamCaching };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
|
|
2
|
-
const require_llm = require("./llm-
|
|
2
|
+
const require_llm = require("./llm-dX0y0atH.cjs");
|
|
3
3
|
const require_message_list = require("./message-list-C0F2sDNC.cjs");
|
|
4
4
|
const require_observability = require("./observability-VaoaeadK.cjs");
|
|
5
5
|
const require_base = require("./base-BIzR1D3_.cjs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-tIEjjQTE.js";
|
|
2
|
-
import { d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, p as readModelStreamTransport } from "./llm-
|
|
2
|
+
import { d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, p as readModelStreamTransport } from "./llm-hWZGKDUy.js";
|
|
3
3
|
import { B as getResponseProviderItemIdFromPart, G as RESPONSE_ITEM_ID_PROVIDERS, K as RESPONSE_RESULT_ITEM_ID_KEY, f as coreContentToString, n as MessageList, p as messagesAreEqual, t as convertMessages } from "./message-list-RgFlLrxG.js";
|
|
4
4
|
import { _ as resolveObservabilityContext, g as createObservabilityContext } from "./observability-DPDWibyH.js";
|
|
5
5
|
import { t as MastraBase } from "./base-CKLWBhDo.js";
|
|
@@ -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-DEnu3A8A.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-CAp-mgCd.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-Du3Vm65W.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-BYrNEcU_.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { m as generateId } from "./dist-TPVqg8oV.js";
|
|
2
|
-
import { T as Agent } from "./execution-fence-
|
|
3
|
-
import { un as isSupportedLanguageModel } from "./stream-
|
|
4
|
-
import { i as resolveModelConfig } from "./llm-
|
|
2
|
+
import { T as Agent } from "./execution-fence-DvN3Fwm3.js";
|
|
3
|
+
import { un as isSupportedLanguageModel } from "./stream-CyaGm-DI.js";
|
|
4
|
+
import { i as resolveModelConfig } from "./llm-hWZGKDUy.js";
|
|
5
5
|
import { N as ToolLoopAgent } from "./message-list-RgFlLrxG.js";
|
|
6
6
|
// src/tool-loop-agent/utils.ts
|
|
7
7
|
function isToolLoopAgentLike(obj) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_dist = require("./dist-P2rjrlmj.cjs");
|
|
2
|
-
const require_execution_fence = require("./execution-fence-
|
|
3
|
-
const require_stream = require("./stream-
|
|
4
|
-
const require_llm = require("./llm-
|
|
2
|
+
const require_execution_fence = require("./execution-fence-C-wa17Wr.cjs");
|
|
3
|
+
const require_stream = require("./stream-BKEfY3-X.cjs");
|
|
4
|
+
const require_llm = require("./llm-dX0y0atH.cjs");
|
|
5
5
|
const require_message_list = require("./message-list-C0F2sDNC.cjs");
|
|
6
6
|
// src/tool-loop-agent/utils.ts
|
|
7
7
|
function isToolLoopAgentLike(obj) {
|
|
@@ -8,6 +8,14 @@ export type WebSearchToolPlaceholder = {
|
|
|
8
8
|
export declare const webSearchTool: WebSearchToolPlaceholder;
|
|
9
9
|
export declare function isWebSearchTool(tool: unknown): tool is WebSearchToolPlaceholder;
|
|
10
10
|
export declare function normalizeWebSearchProvider(providerOrModel: unknown): WebSearchProvider;
|
|
11
|
+
/**
|
|
12
|
+
* The provider tool that webSearchTool stands for on the given model.
|
|
13
|
+
*
|
|
14
|
+
* A model with a native web search gets that tool. The Mastra gateway runs its own web search for
|
|
15
|
+
* every tool-calling model, so a gateway model from any other provider gets the gateway's tool
|
|
16
|
+
* instead of failing.
|
|
17
|
+
*/
|
|
18
|
+
export declare function resolveWebSearchProviderTool(model: unknown): ProviderDefinedTool;
|
|
11
19
|
export declare function createWebSearchProviderTool(provider: WebSearchProvider): ProviderDefinedTool;
|
|
12
20
|
export {};
|
|
13
21
|
//# sourceMappingURL=web-search.d.ts.map
|
package/dist/tools/index.cjs
CHANGED
|
@@ -4,7 +4,7 @@ const require_toolchecks = require("../toolchecks-DbBsQGHW.cjs");
|
|
|
4
4
|
const require_stream = require("../stream-BGbj9jAU.cjs");
|
|
5
5
|
const require_payload_transform = require("../payload-transform-CWgnsO9w.cjs");
|
|
6
6
|
const require_state_processor = require("../state-processor-DaSmhVUX.cjs");
|
|
7
|
-
const require_tools = require("../tools-
|
|
7
|
+
const require_tools = require("../tools-DZoVfKPl.cjs");
|
|
8
8
|
exports.CodeModeLimitError = require_tools.CodeModeLimitError;
|
|
9
9
|
exports.DEFAULT_GOAL_JUDGE_PROMPT = require_state_processor.DEFAULT_GOAL_JUDGE_PROMPT;
|
|
10
10
|
exports.DEFAULT_GOAL_MAX_RUNS = require_state_processor.DEFAULT_GOAL_MAX_RUNS;
|
package/dist/tools/index.js
CHANGED
|
@@ -3,5 +3,5 @@ import { c as isProviderDefinedTool, l as isProviderTool, u as isVercelTool } fr
|
|
|
3
3
|
import { t as ToolStream } from "../stream-D9JOykz7.js";
|
|
4
4
|
import { n as hasTransformedToolPayload, t as getTransformedToolPayload } from "../payload-transform-Dj3HUeD4.js";
|
|
5
5
|
import { A as writeObjective, C as GOAL_STATE_TYPE, D as readObjective, E as getObjectiveFromRequestContext, O as resolveEffectiveGoalSettings, S as GOAL_STATE_ID, a as TASK_STATE_TYPE, c as formatTaskListResult, d as summarizeTaskCheck, f as taskCheckTool, h as taskWriteTool, i as TASKS_STATE_ID, k as resolveGoalStore, l as getTasksFromRequestContext, m as taskUpdateTool, n as TaskStateProcessor, o as assignTaskIds, p as taskCompleteTool, r as TASKS_REQUEST_CONTEXT_KEY, s as demoteExtraInProgress, t as GoalStateProcessor, u as hasMultipleInProgress, v as DEFAULT_GOAL_JUDGE_PROMPT, w as clearObjective, y as DEFAULT_GOAL_MAX_RUNS } from "../state-processor-B_KsS82m.js";
|
|
6
|
-
import { _ as
|
|
6
|
+
import { _ as jsonSchemaToTsString, a as webFetchTool, c as createCodeMode, d as StdioCodeModeTransport, f as FRAME_PREFIX, g as generateStubs, h as createCodeModeInstructions, i as webSearchTool, l as createCodeModeTool, m as buildRunner, o as askUserTool, p as buildProgramModule, s as formatQuestionAnswer, t as submitPlanTool, u as CodeModeLimitError, v as sanitizeToolId, y as createCodeModeLogCollector } from "../tools-FwJyNoyg.js";
|
|
7
7
|
export { CodeModeLimitError, DEFAULT_GOAL_JUDGE_PROMPT, DEFAULT_GOAL_MAX_RUNS, FRAME_PREFIX, GOAL_STATE_ID, GOAL_STATE_TYPE, GoalStateProcessor, MASTRA_TOOL_MARKER, StdioCodeModeTransport, TASKS_REQUEST_CONTEXT_KEY, TASKS_STATE_ID, TASK_STATE_TYPE, TaskStateProcessor, Tool, ToolStream, askUserTool, assignTaskIds, buildProgramModule, buildRunner, clearObjective, createCodeMode, createCodeModeInstructions, createCodeModeLogCollector, createCodeModeTool, createTool, demoteExtraInProgress, formatQuestionAnswer, formatTaskListResult, generateStubs, getObjectiveFromRequestContext, getTasksFromRequestContext, getTransformedToolPayload, getValidationIssuePaths, hasMultipleInProgress, hasTransformedToolPayload, isProviderDefinedTool, isProviderTool, isValidationError, isVercelTool, jsonSchemaToTsString, noopObserve, readObjective, resolveEffectiveGoalSettings, resolveGoalStore, sanitizeToolId, submitPlanTool, summarizeTaskCheck, taskCheckTool, taskCompleteTool, taskUpdateTool, taskWriteTool, validateToolInput, validateToolOutput, webFetchTool, webSearchTool, writeObjective };
|
|
@@ -2,6 +2,7 @@ const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
|
|
|
2
2
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
3
3
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
4
4
|
const require_tool = require("./tool-Dn9WSDVn.cjs");
|
|
5
|
+
const require_mastra_gateway_provider_tools = require("./mastra-gateway-provider-tools-WpH3Tmu4.cjs");
|
|
5
6
|
const require_errors = require("./errors-D5kMB1FQ.cjs");
|
|
6
7
|
let zod_v4 = require("zod/v4");
|
|
7
8
|
let os = require("os");
|
|
@@ -1159,15 +1160,8 @@ function isWebSearchTool(tool) {
|
|
|
1159
1160
|
}
|
|
1160
1161
|
function normalizeWebSearchProvider(providerOrModel) {
|
|
1161
1162
|
const provider = getProviderString(providerOrModel);
|
|
1162
|
-
const
|
|
1163
|
-
|
|
1164
|
-
"anthropic",
|
|
1165
|
-
"google",
|
|
1166
|
-
"xai"
|
|
1167
|
-
]);
|
|
1168
|
-
if (supportedProviders.has(provider)) return provider;
|
|
1169
|
-
const routerProvider = getRouterProvider(provider);
|
|
1170
|
-
if (supportedProviders.has(routerProvider)) return routerProvider;
|
|
1163
|
+
const supportedProvider = findSupportedProvider(provider);
|
|
1164
|
+
if (supportedProvider) return supportedProvider;
|
|
1171
1165
|
throw new require_error.MastraError({
|
|
1172
1166
|
id: "WEB_SEARCH_UNSUPPORTED_PROVIDER",
|
|
1173
1167
|
domain: require_error.ErrorDomain.AGENT,
|
|
@@ -1176,6 +1170,22 @@ function normalizeWebSearchProvider(providerOrModel) {
|
|
|
1176
1170
|
text: `The built-in webSearchTool supports OpenAI, Anthropic, Google, and xAI models. Could not infer a supported provider from "${provider}".`
|
|
1177
1171
|
});
|
|
1178
1172
|
}
|
|
1173
|
+
/**
|
|
1174
|
+
* The provider tool that webSearchTool stands for on the given model.
|
|
1175
|
+
*
|
|
1176
|
+
* A model with a native web search gets that tool. The Mastra gateway runs its own web search for
|
|
1177
|
+
* every tool-calling model, so a gateway model from any other provider gets the gateway's tool
|
|
1178
|
+
* instead of failing.
|
|
1179
|
+
*/
|
|
1180
|
+
function resolveWebSearchProviderTool(model) {
|
|
1181
|
+
if (isMastraGatewayModel(model) && !findSupportedProvider(getProviderString(model))) return {
|
|
1182
|
+
type: "provider-defined",
|
|
1183
|
+
id: require_mastra_gateway_provider_tools.OPENROUTER_WEB_SEARCH_TOOL_ID,
|
|
1184
|
+
name: "web_search",
|
|
1185
|
+
args: {}
|
|
1186
|
+
};
|
|
1187
|
+
return createWebSearchProviderTool(normalizeWebSearchProvider(model));
|
|
1188
|
+
}
|
|
1179
1189
|
function createWebSearchProviderTool(provider) {
|
|
1180
1190
|
const tool = getWebSearchProviderTool(provider);
|
|
1181
1191
|
return {
|
|
@@ -1185,6 +1195,27 @@ function createWebSearchProviderTool(provider) {
|
|
|
1185
1195
|
args: {}
|
|
1186
1196
|
};
|
|
1187
1197
|
}
|
|
1198
|
+
function findSupportedProvider(provider) {
|
|
1199
|
+
const supportedProviders = /* @__PURE__ */ new Set([
|
|
1200
|
+
"openai",
|
|
1201
|
+
"anthropic",
|
|
1202
|
+
"google",
|
|
1203
|
+
"xai"
|
|
1204
|
+
]);
|
|
1205
|
+
if (supportedProviders.has(provider)) return provider;
|
|
1206
|
+
const routerProvider = getRouterProvider(provider);
|
|
1207
|
+
if (supportedProviders.has(routerProvider)) return routerProvider;
|
|
1208
|
+
}
|
|
1209
|
+
/**
|
|
1210
|
+
* A router model reports the Mastra gateway as its gateway. Behind a host gateway that forwards
|
|
1211
|
+
* `mastra/...` ids, the gateway is the model's provider instead. A model built by the Mastra
|
|
1212
|
+
* gateway itself and passed in directly reports `openrouter` and carries the gateway's mark.
|
|
1213
|
+
*/
|
|
1214
|
+
function isMastraGatewayModel(model) {
|
|
1215
|
+
if (typeof model !== "object" || model === null) return false;
|
|
1216
|
+
const { gatewayId, provider } = model;
|
|
1217
|
+
return gatewayId === "mastra" || provider === "mastra" || require_mastra_gateway_provider_tools.isMastraGatewayChatModel(model);
|
|
1218
|
+
}
|
|
1188
1219
|
function getProviderString(providerOrModel) {
|
|
1189
1220
|
if (typeof providerOrModel === "string") return providerOrModel;
|
|
1190
1221
|
if (typeof providerOrModel === "object" && providerOrModel !== null) {
|
|
@@ -1384,12 +1415,6 @@ Object.defineProperty(exports, "createCodeModeTool", {
|
|
|
1384
1415
|
return createCodeModeTool;
|
|
1385
1416
|
}
|
|
1386
1417
|
});
|
|
1387
|
-
Object.defineProperty(exports, "createWebSearchProviderTool", {
|
|
1388
|
-
enumerable: true,
|
|
1389
|
-
get: function() {
|
|
1390
|
-
return createWebSearchProviderTool;
|
|
1391
|
-
}
|
|
1392
|
-
});
|
|
1393
1418
|
Object.defineProperty(exports, "formatQuestionAnswer", {
|
|
1394
1419
|
enumerable: true,
|
|
1395
1420
|
get: function() {
|
|
@@ -1414,10 +1439,10 @@ Object.defineProperty(exports, "jsonSchemaToTsString", {
|
|
|
1414
1439
|
return jsonSchemaToTsString;
|
|
1415
1440
|
}
|
|
1416
1441
|
});
|
|
1417
|
-
Object.defineProperty(exports, "
|
|
1442
|
+
Object.defineProperty(exports, "resolveWebSearchProviderTool", {
|
|
1418
1443
|
enumerable: true,
|
|
1419
1444
|
get: function() {
|
|
1420
|
-
return
|
|
1445
|
+
return resolveWebSearchProviderTool;
|
|
1421
1446
|
}
|
|
1422
1447
|
});
|
|
1423
1448
|
Object.defineProperty(exports, "sanitizeToolId", {
|
|
@@ -2,6 +2,7 @@ import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "./error-
|
|
|
2
2
|
import { u as RequestContext } from "./request-context-COnZHt2-.js";
|
|
3
3
|
import { r as createTool, s as isValidationError } from "./tool-DIFduuTw.js";
|
|
4
4
|
import { isStandardSchemaWithJSON, standardSchemaToJSONSchema } from "./schema/index.js";
|
|
5
|
+
import { n as isMastraGatewayChatModel, t as OPENROUTER_WEB_SEARCH_TOOL_ID } from "./mastra-gateway-provider-tools-C-AjGZis.js";
|
|
5
6
|
import { f as SandboxFeatureNotSupportedError } from "./errors-CzFYpCHw.js";
|
|
6
7
|
import { z } from "zod/v4";
|
|
7
8
|
import { tmpdir } from "os";
|
|
@@ -1155,15 +1156,8 @@ function isWebSearchTool(tool) {
|
|
|
1155
1156
|
}
|
|
1156
1157
|
function normalizeWebSearchProvider(providerOrModel) {
|
|
1157
1158
|
const provider = getProviderString(providerOrModel);
|
|
1158
|
-
const
|
|
1159
|
-
|
|
1160
|
-
"anthropic",
|
|
1161
|
-
"google",
|
|
1162
|
-
"xai"
|
|
1163
|
-
]);
|
|
1164
|
-
if (supportedProviders.has(provider)) return provider;
|
|
1165
|
-
const routerProvider = getRouterProvider(provider);
|
|
1166
|
-
if (supportedProviders.has(routerProvider)) return routerProvider;
|
|
1159
|
+
const supportedProvider = findSupportedProvider(provider);
|
|
1160
|
+
if (supportedProvider) return supportedProvider;
|
|
1167
1161
|
throw new MastraError({
|
|
1168
1162
|
id: "WEB_SEARCH_UNSUPPORTED_PROVIDER",
|
|
1169
1163
|
domain: ErrorDomain.AGENT,
|
|
@@ -1172,6 +1166,22 @@ function normalizeWebSearchProvider(providerOrModel) {
|
|
|
1172
1166
|
text: `The built-in webSearchTool supports OpenAI, Anthropic, Google, and xAI models. Could not infer a supported provider from "${provider}".`
|
|
1173
1167
|
});
|
|
1174
1168
|
}
|
|
1169
|
+
/**
|
|
1170
|
+
* The provider tool that webSearchTool stands for on the given model.
|
|
1171
|
+
*
|
|
1172
|
+
* A model with a native web search gets that tool. The Mastra gateway runs its own web search for
|
|
1173
|
+
* every tool-calling model, so a gateway model from any other provider gets the gateway's tool
|
|
1174
|
+
* instead of failing.
|
|
1175
|
+
*/
|
|
1176
|
+
function resolveWebSearchProviderTool(model) {
|
|
1177
|
+
if (isMastraGatewayModel(model) && !findSupportedProvider(getProviderString(model))) return {
|
|
1178
|
+
type: "provider-defined",
|
|
1179
|
+
id: OPENROUTER_WEB_SEARCH_TOOL_ID,
|
|
1180
|
+
name: "web_search",
|
|
1181
|
+
args: {}
|
|
1182
|
+
};
|
|
1183
|
+
return createWebSearchProviderTool(normalizeWebSearchProvider(model));
|
|
1184
|
+
}
|
|
1175
1185
|
function createWebSearchProviderTool(provider) {
|
|
1176
1186
|
const tool = getWebSearchProviderTool(provider);
|
|
1177
1187
|
return {
|
|
@@ -1181,6 +1191,27 @@ function createWebSearchProviderTool(provider) {
|
|
|
1181
1191
|
args: {}
|
|
1182
1192
|
};
|
|
1183
1193
|
}
|
|
1194
|
+
function findSupportedProvider(provider) {
|
|
1195
|
+
const supportedProviders = /* @__PURE__ */ new Set([
|
|
1196
|
+
"openai",
|
|
1197
|
+
"anthropic",
|
|
1198
|
+
"google",
|
|
1199
|
+
"xai"
|
|
1200
|
+
]);
|
|
1201
|
+
if (supportedProviders.has(provider)) return provider;
|
|
1202
|
+
const routerProvider = getRouterProvider(provider);
|
|
1203
|
+
if (supportedProviders.has(routerProvider)) return routerProvider;
|
|
1204
|
+
}
|
|
1205
|
+
/**
|
|
1206
|
+
* A router model reports the Mastra gateway as its gateway. Behind a host gateway that forwards
|
|
1207
|
+
* `mastra/...` ids, the gateway is the model's provider instead. A model built by the Mastra
|
|
1208
|
+
* gateway itself and passed in directly reports `openrouter` and carries the gateway's mark.
|
|
1209
|
+
*/
|
|
1210
|
+
function isMastraGatewayModel(model) {
|
|
1211
|
+
if (typeof model !== "object" || model === null) return false;
|
|
1212
|
+
const { gatewayId, provider } = model;
|
|
1213
|
+
return gatewayId === "mastra" || provider === "mastra" || isMastraGatewayChatModel(model);
|
|
1214
|
+
}
|
|
1184
1215
|
function getProviderString(providerOrModel) {
|
|
1185
1216
|
if (typeof providerOrModel === "string") return providerOrModel;
|
|
1186
1217
|
if (typeof providerOrModel === "object" && providerOrModel !== null) {
|
|
@@ -1320,4 +1351,4 @@ const submitPlanTool = createTool({
|
|
|
1320
1351
|
}
|
|
1321
1352
|
}
|
|
1322
1353
|
});
|
|
1323
|
-
export {
|
|
1354
|
+
export { jsonSchemaToTsString as _, webFetchTool as a, createCodeMode as c, StdioCodeModeTransport as d, FRAME_PREFIX as f, generateStubs as g, createCodeModeInstructions as h, webSearchTool as i, createCodeModeTool as l, buildRunner as m, isWebSearchTool as n, askUserTool as o, buildProgramModule as p, resolveWebSearchProviderTool as r, formatQuestionAnswer as s, submitPlanTool as t, CodeModeLimitError as u, sanitizeToolId as v, createCodeModeLogCollector as y };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
2
2
|
const require_tool = require("./tool-Dn9WSDVn.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-DEBc9BBP.cjs");
|
|
5
5
|
const require_base = require("./base-BIzR1D3_.cjs");
|
|
6
6
|
const require_observability = require("./observability-VaoaeadK.cjs");
|
|
7
7
|
const require_utils = require("./utils-D-eNsgDM.cjs");
|
|
@@ -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-DIFduuTw.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-CbBbS-g3.js";
|
|
5
5
|
import { t as MastraBase } from "./base-CKLWBhDo.js";
|
|
6
6
|
import { g as createObservabilityContext, h as wrapMastra, o as executionFailureTermination } from "./observability-DPDWibyH.js";
|
|
7
7
|
import { a as getOrCreateSpan, t as executeWithContext } from "./utils-DU_pU5SK.js";
|
package/dist/utils.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_zod_utils = require("./zod-utils-Cl5jw5N_.cjs");
|
|
3
|
-
const require_utils = require("./utils-
|
|
3
|
+
const require_utils = require("./utils-Ag63fN_T.cjs");
|
|
4
4
|
const require_fetchWithRetry = require("./fetchWithRetry-f5k4p7_1.cjs");
|
|
5
5
|
const require_utils_safe_stringify = require("./utils/safe-stringify.cjs");
|
|
6
6
|
const require_deep_equal = require("./deep-equal-TMDmByBC.cjs");
|
package/dist/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as isZodObject, i as isZodArray, r as getZodTypeName, t as getZodDef } from "./zod-utils-BDDS_mxU.js";
|
|
2
|
-
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-
|
|
2
|
+
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-Dl5BqcZO.js";
|
|
3
3
|
import { t as fetchWithRetry } from "./fetchWithRetry-DFSvpYDT.js";
|
|
4
4
|
import { boundedStringify, ensureSerializable, isBoundedSerializable, safeStringify } from "./utils/safe-stringify.js";
|
|
5
5
|
import { t as deepEqual } from "./deep-equal-d1xU02ag.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { standardSchemaToJSONSchema, toStandardSchema } from "./schema/index.js";
|
|
2
|
-
import { Ct as collectTemplateStepIds, Dt as validateTemplate } from "./stream-
|
|
2
|
+
import { Ct as collectTemplateStepIds, Dt as validateTemplate } from "./stream-CyaGm-DI.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_execution_fence = require("../execution-fence-
|
|
4
|
+
const require_execution_fence = require("../execution-fence-C-wa17Wr.cjs");
|
|
5
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");
|
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 { Zt as embed$3, ua as createVectorErrorId } from "../execution-fence-
|
|
3
|
+
import { Zt as embed$3, ua as createVectorErrorId } from "../execution-fence-DvN3Fwm3.js";
|
|
4
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";
|
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-Dvt_y5ra.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-oSqtPcV6.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_execution_fence = require("./execution-fence-
|
|
1
|
+
const require_execution_fence = require("./execution-fence-C-wa17Wr.cjs");
|
|
2
2
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
3
|
-
const require_worker = require("./worker-
|
|
3
|
+
const require_worker = require("./worker-Dvt_y5ra.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
|
-
const require_execution_fence = require("./execution-fence-
|
|
1
|
+
const require_execution_fence = require("./execution-fence-C-wa17Wr.cjs");
|
|
2
2
|
const require_scheduler = require("./scheduler-CMjK0LoQ.cjs");
|
|
3
|
-
const require_background_tasks = require("./background-tasks-
|
|
3
|
+
const require_background_tasks = require("./background-tasks-DEBc9BBP.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 resolveAgentById } from "./execution-fence-
|
|
1
|
+
import { $s as resolveAgentById } from "./execution-fence-DvN3Fwm3.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-oSqtPcV6.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
|
-
import { $s as resolveAgentById, Ac as getStepEntry, Fs as WorkflowEventProcessor, Is as StepExecutor, Ll as assertDrainTimeout, Ls as computeScheduleDefinitionHash, Rl as waitMs, kc as getNestedWorkflow } from "./execution-fence-
|
|
1
|
+
import { $s as resolveAgentById, Ac as getStepEntry, Fs as WorkflowEventProcessor, Is as StepExecutor, Ll as assertDrainTimeout, Ls as computeScheduleDefinitionHash, Rl as waitMs, kc as getNestedWorkflow } from "./execution-fence-DvN3Fwm3.js";
|
|
2
2
|
import { t as Scheduler } from "./scheduler-0ShtMM1I.js";
|
|
3
|
-
import { l as BackgroundTaskManager } from "./background-tasks-
|
|
3
|
+
import { l as BackgroundTaskManager } from "./background-tasks-CbBbS-g3.js";
|
|
4
4
|
import { u as RequestContext } from "./request-context-COnZHt2-.js";
|
|
5
5
|
// src/worker/worker.ts
|
|
6
6
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_stream = require("./stream-
|
|
1
|
+
const require_stream = require("./stream-BKEfY3-X.cjs");
|
|
2
2
|
require("./utils-D-eNsgDM.cjs");
|
|
3
3
|
const require_output_helpers = require("./output-helpers-By5FbLpp.cjs");
|
|
4
|
-
const require_execution_fence = require("./execution-fence-
|
|
5
|
-
const require_background_tasks = require("./background-tasks-
|
|
4
|
+
const require_execution_fence = require("./execution-fence-C-wa17Wr.cjs");
|
|
5
|
+
const require_background_tasks = require("./background-tasks-DEBc9BBP.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,8 +1,8 @@
|
|
|
1
|
-
import { dn as resolveSuspendedToolRunId } from "./stream-
|
|
1
|
+
import { dn as resolveSuspendedToolRunId } from "./stream-CyaGm-DI.js";
|
|
2
2
|
import "./utils-DU_pU5SK.js";
|
|
3
3
|
import { h as slimProgressChunk } from "./output-helpers-k2-48ssH.js";
|
|
4
|
-
import { Os as createWorkflow, Pc as createStep } from "./execution-fence-
|
|
5
|
-
import { d as nextAttemptStart, f as suspendEnvelope, m as unwrapSuspendData, p as toolSuspendPayload, u as BACKGROUND_TASK_WORKFLOW_ID } from "./background-tasks-
|
|
4
|
+
import { Os as createWorkflow, Pc as createStep } from "./execution-fence-DvN3Fwm3.js";
|
|
5
|
+
import { d as nextAttemptStart, f as suspendEnvelope, m as unwrapSuspendData, p as toolSuspendPayload, u as BACKGROUND_TASK_WORKFLOW_ID } from "./background-tasks-CbBbS-g3.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
// src/background-tasks/workflow.ts
|
|
8
8
|
const inputSchema = z.object({ taskId: 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-DBori4UC.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;
|