@mastra/core 1.87.0-alpha.5 → 1.87.0-alpha.6
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/durable/index.cjs +1 -1
- package/dist/agent/durable/index.js +1 -1
- package/dist/agent/index.cjs +2 -2
- package/dist/agent/index.js +2 -2
- package/dist/agent-builder/ee/index.cjs +1 -1
- package/dist/agent-builder/ee/index.js +1 -1
- package/dist/agent-controller/index.cjs +1 -1
- package/dist/agent-controller/index.js +1 -1
- package/dist/{agent-controller-DEB1G03O.cjs → agent-controller-BL-0CKSF.cjs} +5 -5
- package/dist/{agent-controller-CDwoELRq.js → agent-controller-BkG0M35j.js} +5 -5
- package/dist/background-tasks/index.cjs +2 -1
- package/dist/background-tasks/index.d.ts +1 -1
- package/dist/background-tasks/index.js +1 -1
- package/dist/background-tasks/resolve-config.d.ts +30 -1
- package/dist/background-tasks/system-prompt.d.ts +8 -2
- package/dist/background-tasks/types.d.ts +47 -1
- package/dist/{background-tasks-CBp2178j.js → background-tasks-CQ1M8SHw.js} +156 -33
- package/dist/{background-tasks-B40g_Guf.cjs → background-tasks-DL-ATSvp.cjs} +167 -32
- package/dist/browser/index.cjs +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/{builder-tuHJooMG.cjs → builder-CVEDotdf.cjs} +2 -2
- package/dist/{builder-DTEXPju5.js → builder-DnbKjNuO.js} +2 -2
- package/dist/capabilities/302ai.json +206 -206
- package/dist/capabilities/abliteratedllm.json +29 -29
- package/dist/capabilities/abliteration-ai.json +10 -10
- package/dist/capabilities/above.json +20 -20
- package/dist/capabilities/adaption.json +13 -13
- package/dist/capabilities/adzuki.json +29 -29
- package/dist/capabilities/agentrouter.json +12 -12
- package/dist/capabilities/agnes.json +2 -2
- package/dist/capabilities/ai-router.json +5 -5
- package/dist/capabilities/aiand.json +22 -22
- package/dist/capabilities/aigrow.json +12 -12
- package/dist/capabilities/aimlapi.json +145 -145
- package/dist/capabilities/aipg.json +2 -2
- package/dist/capabilities/aixy.json +28 -28
- package/dist/capabilities/aki-io.json +14 -14
- package/dist/capabilities/alibaba-cn.json +103 -103
- package/dist/capabilities/alibaba-coding-plan-cn.json +6 -6
- package/dist/capabilities/alibaba-coding-plan.json +6 -6
- package/dist/capabilities/alibaba-token-plan-cn.json +53 -53
- package/dist/capabilities/alibaba-token-plan.json +53 -53
- package/dist/capabilities/alibaba.json +73 -73
- package/dist/capabilities/ambient.json +18 -18
- package/dist/capabilities/amd.json +7 -7
- package/dist/capabilities/anthropic.json +53 -53
- package/dist/capabilities/anyapi.json +46 -46
- package/dist/capabilities/arcee.json +7 -7
- package/dist/capabilities/augure.json +4 -4
- package/dist/capabilities/auriko.json +15 -15
- package/dist/capabilities/bailing.json +5 -5
- package/dist/capabilities/baseten.json +36 -36
- package/dist/capabilities/bee.json +4 -4
- package/dist/capabilities/berget.json +4 -4
- package/dist/capabilities/bothub.json +16 -16
- package/dist/capabilities/boundless.json +39 -39
- package/dist/capabilities/bumo.json +38 -38
- package/dist/capabilities/byteplus.json +30 -30
- package/dist/capabilities/cheapaimodel.json +9 -9
- package/dist/capabilities/cheapest-token.json +31 -31
- package/dist/capabilities/chutes.json +8 -8
- package/dist/capabilities/cline-pass.json +40 -40
- package/dist/capabilities/cloudcode.json +9 -9
- package/dist/capabilities/cloudflare-workers-ai.json +16 -16
- package/dist/capabilities/commandcode.json +140 -140
- package/dist/capabilities/concentrate.json +274 -274
- package/dist/capabilities/cortecs.json +104 -104
- package/dist/capabilities/crossmodel.json +200 -200
- package/dist/capabilities/crusoe.json +9 -9
- package/dist/capabilities/daoxe.json +8 -8
- package/dist/capabilities/databricks.json +128 -128
- package/dist/capabilities/deepinfra.json +99 -99
- package/dist/capabilities/deepseek.json +3 -3
- package/dist/capabilities/digitalocean.json +108 -108
- package/dist/capabilities/dothoosh.json +31 -31
- package/dist/capabilities/doubleword.json +19 -19
- package/dist/capabilities/edenai.json +279 -286
- package/dist/capabilities/empiriolabs.json +167 -167
- package/dist/capabilities/engy.json +14 -14
- package/dist/capabilities/entrim.json +8 -8
- package/dist/capabilities/evroc.json +19 -19
- package/dist/capabilities/ezkielyna.json +11 -11
- package/dist/capabilities/fastrouter.json +88 -88
- package/dist/capabilities/fireworks-ai.json +97 -97
- package/dist/capabilities/freemodel.json +18 -18
- package/dist/capabilities/friendli.json +7 -7
- package/dist/capabilities/frogbot.json +89 -89
- package/dist/capabilities/gisoo.json +18 -18
- package/dist/capabilities/gmicloud.json +24 -24
- package/dist/capabilities/google.json +51 -51
- package/dist/capabilities/graphn.json +11 -11
- package/dist/capabilities/greenpt.json +33 -33
- package/dist/capabilities/groq.json +9 -9
- package/dist/capabilities/helicone.json +82 -82
- package/dist/capabilities/hostinger-router.json +14 -14
- package/dist/capabilities/hpc-ai.json +12 -12
- package/dist/capabilities/huawei-maas.json +14 -14
- package/dist/capabilities/hubris.json +32 -32
- package/dist/capabilities/huggingface.json +106 -106
- package/dist/capabilities/humain.json +2 -2
- package/dist/capabilities/hyper.json +19 -19
- package/dist/capabilities/impossibl.json +145 -145
- package/dist/capabilities/inception.json +3 -3
- package/dist/capabilities/inceptron.json +8 -8
- package/dist/capabilities/inco.json +2 -2
- package/dist/capabilities/infer.json +13 -13
- package/dist/capabilities/inferall.json +6 -6
- package/dist/capabilities/inference-coop.json +9 -9
- package/dist/capabilities/inferenceapis.json +25 -25
- package/dist/capabilities/inferris.json +4 -4
- package/dist/capabilities/infersia.json +14 -14
- package/dist/capabilities/io-net.json +2 -2
- package/dist/capabilities/iteracompute.json +52 -52
- package/dist/capabilities/jad-ai.json +3 -3
- package/dist/capabilities/jalapeno.json +10 -10
- package/dist/capabilities/jiekou.json +59 -59
- package/dist/capabilities/joingonka.json +4 -4
- package/dist/capabilities/jzstoken.json +54 -54
- package/dist/capabilities/keln.json +25 -25
- package/dist/capabilities/kenari.json +124 -124
- package/dist/capabilities/kilo.json +653 -644
- package/dist/capabilities/kimi-code-plan-cn.json +9 -9
- package/dist/capabilities/kimi-code-plan-global.json +9 -9
- package/dist/capabilities/kitani.json +6 -6
- package/dist/capabilities/klavo.json +22 -22
- package/dist/capabilities/korouter.json +29 -29
- package/dist/capabilities/kunavo.json +10 -10
- package/dist/capabilities/liquid.json +5 -5
- package/dist/capabilities/lithosai.json +2 -2
- package/dist/capabilities/llmgateway-providers.json +926 -929
- package/dist/capabilities/llmgateway.json +341 -342
- package/dist/capabilities/llmtr.json +37 -37
- package/dist/capabilities/lowrouter.json +66 -66
- package/dist/capabilities/lyceum.json +8 -8
- package/dist/capabilities/melious.json +11 -11
- package/dist/capabilities/merge-gateway.json +293 -293
- package/dist/capabilities/meta.json +7 -7
- package/dist/capabilities/minimax-cn-coding-plan.json +2 -2
- package/dist/capabilities/minimax-coding-plan.json +2 -2
- package/dist/capabilities/mistral.json +19 -19
- package/dist/capabilities/mixlayer.json +4 -4
- package/dist/capabilities/modal.json +9 -9
- package/dist/capabilities/model-oracle-ai.json +27 -27
- package/dist/capabilities/modelis.json +14 -14
- package/dist/capabilities/modelscope.json +2 -2
- package/dist/capabilities/modular.json +6 -6
- package/dist/capabilities/moneo.json +14 -14
- package/dist/capabilities/moonshotai-cn.json +7 -7
- package/dist/capabilities/moonshotai.json +7 -7
- package/dist/capabilities/morph.json +12 -12
- package/dist/capabilities/munito-eu.json +8 -8
- package/dist/capabilities/munito.json +8 -8
- package/dist/capabilities/nan.json +26 -26
- package/dist/capabilities/nano-gpt.json +589 -589
- package/dist/capabilities/nearai.json +96 -96
- package/dist/capabilities/nebius.json +30 -30
- package/dist/capabilities/neon.json +138 -138
- package/dist/capabilities/neuralwatt.json +39 -39
- package/dist/capabilities/nokeep.json +4 -4
- package/dist/capabilities/novita-ai.json +157 -157
- package/dist/capabilities/nvidia.json +18 -18
- package/dist/capabilities/oathbreaker.json +2 -2
- package/dist/capabilities/obscurify.json +32 -32
- package/dist/capabilities/oci.json +9 -9
- package/dist/capabilities/ofox.json +414 -414
- package/dist/capabilities/ollama-cloud.json +52 -52
- package/dist/capabilities/openai.json +58 -58
- package/dist/capabilities/opencode-go.json +94 -94
- package/dist/capabilities/openreason.json +6 -6
- package/dist/capabilities/openrouter.json +561 -561
- package/dist/capabilities/opper.json +28 -28
- package/dist/capabilities/orcarouter.json +255 -255
- package/dist/capabilities/outerlabs.json +28 -28
- package/dist/capabilities/ovhcloud.json +17 -17
- package/dist/capabilities/pareto.json +5 -5
- package/dist/capabilities/pendra.json +4 -4
- package/dist/capabilities/perplexity-agent.json +64 -64
- package/dist/capabilities/perplexity.json +2 -2
- package/dist/capabilities/phala.json +32 -32
- package/dist/capabilities/pioneer.json +29 -29
- package/dist/capabilities/poe.json +133 -133
- package/dist/capabilities/poolside.json +3 -3
- package/dist/capabilities/powerspring.json +12 -12
- package/dist/capabilities/primalabs.json +12 -12
- package/dist/capabilities/prime.json +119 -119
- package/dist/capabilities/privatemode-ai.json +11 -11
- package/dist/capabilities/proxystacks.json +6 -6
- package/dist/capabilities/qiniu-ai.json +13 -13
- package/dist/capabilities/refuseless.json +6 -6
- package/dist/capabilities/regolo-ai.json +9 -9
- package/dist/capabilities/requesty.json +200 -166
- package/dist/capabilities/ruapi.json +22 -22
- package/dist/capabilities/runcrate.json +13 -13
- package/dist/capabilities/runinfra.json +18 -18
- package/dist/capabilities/sakana.json +7 -7
- package/dist/capabilities/sambanova.json +6 -6
- package/dist/capabilities/sandbase.json +25 -25
- package/dist/capabilities/sarvam.json +9 -9
- package/dist/capabilities/scaleway.json +13 -13
- package/dist/capabilities/scnet-token-plan.json +9 -9
- package/dist/capabilities/scx-ai.json +23 -23
- package/dist/capabilities/sensenova.json +6 -6
- package/dist/capabilities/siliconflow-cn.json +61 -61
- package/dist/capabilities/siliconflow.json +56 -56
- package/dist/capabilities/snowflake-cortex.json +23 -23
- package/dist/capabilities/sokkan.json +9 -9
- package/dist/capabilities/sparrowcodes.json +21 -21
- package/dist/capabilities/standardcompute.json +97 -97
- package/dist/capabilities/steadyrouter.json +37 -37
- package/dist/capabilities/stepfun-ai-step-plan.json +6 -6
- package/dist/capabilities/stepfun-ai.json +6 -6
- package/dist/capabilities/stepfun-step-plan.json +6 -6
- package/dist/capabilities/stepfun.json +6 -6
- package/dist/capabilities/stepping-stone.json +22 -22
- package/dist/capabilities/synthetic.json +12 -12
- package/dist/capabilities/synthorai.json +21 -21
- package/dist/capabilities/teamorouter.json +19 -19
- package/dist/capabilities/teapot-router.json +16 -16
- package/dist/capabilities/tencent-token-plan-intl.json +19 -19
- package/dist/capabilities/tencent-token-plan.json +36 -36
- package/dist/capabilities/tencent-tokenhub.json +47 -47
- package/dist/capabilities/tensorx.json +46 -46
- package/dist/capabilities/tenstorrent.json +6 -6
- package/dist/capabilities/the-grid-ai.json +37 -37
- package/dist/capabilities/thinkingmachines.json +35 -35
- package/dist/capabilities/tinfoil.json +11 -11
- package/dist/capabilities/toapis.json +2 -2
- package/dist/capabilities/togetherai.json +50 -50
- package/dist/capabilities/tokengo.json +24 -24
- package/dist/capabilities/tokenify.json +9 -9
- package/dist/capabilities/trustedrouter.json +7 -7
- package/dist/capabilities/trustedtokens.json +19 -19
- package/dist/capabilities/umans-ai-coding-plan.json +18 -18
- package/dist/capabilities/umans-ai.json +15 -15
- package/dist/capabilities/uncensuredai.json +5 -5
- package/dist/capabilities/unrestricted.json +8 -8
- package/dist/capabilities/uplinkswitch.json +22 -22
- package/dist/capabilities/upstage.json +5 -5
- package/dist/capabilities/vancine.json +20 -20
- package/dist/capabilities/vercel.json +588 -586
- package/dist/capabilities/vivgrid.json +78 -78
- package/dist/capabilities/volcengine-coding-plan.json +22 -22
- package/dist/capabilities/volcengine.json +27 -27
- package/dist/capabilities/vultr.json +27 -27
- package/dist/capabilities/wafer.ai.json +16 -16
- package/dist/capabilities/wallaby.json +2 -2
- package/dist/capabilities/wally.json +10 -10
- package/dist/capabilities/wandb.json +21 -21
- package/dist/capabilities/watt.json +26 -26
- package/dist/capabilities/xai.json +6 -6
- package/dist/capabilities/xiaomi.json +2 -2
- package/dist/capabilities/xpersona.json +12 -12
- package/dist/capabilities/xxapi.json +32 -32
- package/dist/capabilities/zai-coding-plan.json +15 -15
- package/dist/capabilities/zai.json +29 -29
- package/dist/capabilities/zenifra.json +30 -30
- package/dist/capabilities/zenmux.json +202 -202
- package/dist/capabilities/zerogpu.json +12 -12
- package/dist/capabilities/zhipuai-coding-plan.json +7 -7
- package/dist/capabilities/zhipuai.json +28 -28
- package/dist/capabilities/zro.json +7 -7
- package/dist/channels/index.cjs +2 -2
- package/dist/channels/index.js +2 -2
- package/dist/{channels-Drxs9g13.cjs → channels-DCd_dDOB.cjs} +1 -1
- package/dist/{channels-CC2Z4adP.js → channels-DwAd1RtQ.js} +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 +476 -476
- package/dist/docs/references/docs-agents-code-mode.md +16 -0
- package/dist/docs/references/docs-harness-background-tasks.md +38 -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/events/index.cjs +1 -1
- package/dist/events/index.js +1 -1
- package/dist/harness/index.cjs +1 -1
- package/dist/harness/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/knowledge/index.cjs +14 -4
- package/dist/knowledge/index.d.ts +6 -2
- package/dist/knowledge/index.js +14 -4
- package/dist/knowledge/pinned-state-processor.d.ts +2 -2
- package/dist/knowledge/run.d.ts +4 -0
- package/dist/llm/index.cjs +3 -3
- package/dist/llm/index.js +3 -3
- package/dist/llm/model/provider-types.generated.d.ts +7902 -7904
- package/dist/{llm-D3y8qOKL.js → llm-BdHdjrHp.js} +2 -2
- package/dist/{llm-CbpBEabY.cjs → llm-DQTGexjo.cjs} +2 -2
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +2 -2
- package/dist/{manager-elIuArZa.js → manager-BxE49QHe.js} +2 -2
- package/dist/{manager-BOn6RJwA.cjs → manager-CjT4ivOl.cjs} +2 -2
- package/dist/mastra/index.cjs +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/{mastra-CDQJWY6v.cjs → mastra-CraMHXhw.cjs} +17 -17
- package/dist/{mastra-DQjco6Bt.js → mastra-DKjpNZ-1.js} +17 -17
- package/dist/memory/index.cjs +2 -2
- package/dist/memory/index.js +2 -2
- package/dist/{model-C4aI7k-i.cjs → model-BEFQWHnG.cjs} +1 -1
- package/dist/{model-BjyU1L4I.js → model-X2gWHlAy.js} +1 -1
- package/dist/{netlify-BjuUEMrL.cjs → netlify-BFgeBsaW.cjs} +1 -1
- package/dist/{netlify-BpB7PtZV.js → netlify-kxJSdqCW.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-bkFdaY45.cjs → provider-registry-BXDosXMN.cjs} +22028 -22031
- package/dist/{provider-registry-BjdxtGZZ.js → provider-registry-DgezoItQ.js} +22028 -22031
- package/dist/provider-registry.json +22701 -22704
- package/dist/{registry-generator-CPF318Kc.js → registry-generator-B50FrVGs.js} +1 -1
- package/dist/{registry-generator-BORKO0_T.cjs → registry-generator-BMXgTdbx.cjs} +1 -1
- package/dist/{rehydrate-Cps4MTph.cjs → rehydrate-CBcjKKGA.cjs} +2 -2
- package/dist/{rehydrate-Cw2Id-Uz.js → rehydrate-Dp8f_1MN.js} +2 -2
- package/dist/relevance/index.cjs +2 -2
- package/dist/relevance/index.js +2 -2
- package/dist/{run-registry-BTFPEkXT.cjs → run-registry-BRO8xz9z.cjs} +35 -14
- package/dist/{run-registry-D5z2YVqJ.js → run-registry-H2qdwHni.js} +30 -15
- 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-DB5efioT.js → stream-DcYRY4r3.js} +1 -1
- package/dist/{stream-D1OnBHDi.cjs → stream-nABk9CJK.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-Ote8gJMn.cjs → tool-loop-agent-D1Rufbcz.cjs} +3 -3
- package/dist/{tool-loop-agent-DkhFVx0h.js → tool-loop-agent-DO-GkLD_.js} +3 -3
- package/dist/{utils-Dl_UFejV.cjs → utils-DY0lTRKE.cjs} +7 -6
- package/dist/{utils-BTKpGHA6.js → utils-DlsFs_sO.js} +7 -6
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/{validate-D6fUqYGz.js → validate-D4nqo7Ri.js} +1 -1
- package/dist/{validate-DdDuQRoZ.cjs → validate-DP9DxgFq.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/workers/orchestration-worker.d.ts +1 -0
- package/dist/{worker-DC269pGx.js → worker-8MNVG9Ja.js} +2 -2
- package/dist/{worker-Bo_hTQJC.js → worker-Ckryk6RZ.js} +5 -5
- package/dist/{worker-B27B9RlK.cjs → worker-CqEMDlAQ.cjs} +2 -2
- package/dist/{worker-mq-oiLa5.cjs → worker-LryffZas.cjs} +10 -4
- package/dist/{workflow-D97r3h2-.js → workflow-B0mhMnuQ.js} +3 -3
- package/dist/{workflow-D61dV4AC.cjs → workflow-BN6YiI09.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/package.json +5 -5
- package/src/llm/model/provider-types.generated.d.ts +7902 -7904
|
@@ -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 {
|
|
4
|
+
import { a as isToolBackgroundEligible, i as isModelBackgroundOverrideAllowed, n as backgroundOverrideJsonSchema, r as backgroundOverrideZodSchema } from "./background-tasks-CQ1M8SHw.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";
|
|
@@ -664,20 +664,21 @@ var CoreToolBuilder = class extends MastraBase {
|
|
|
664
664
|
this.originalTool = input.originalTool;
|
|
665
665
|
this.options = input.options;
|
|
666
666
|
this.logType = input.logType;
|
|
667
|
-
const
|
|
667
|
+
const backgroundConfigInput = {
|
|
668
668
|
toolName: this.options.name,
|
|
669
669
|
toolConfig: this.options.backgroundConfig,
|
|
670
670
|
agentConfig: this.options.agentBackgroundConfig
|
|
671
|
-
}
|
|
671
|
+
};
|
|
672
|
+
const injectBackgroundOverride = !!input.backgroundTaskEnabled && isToolBackgroundEligible(backgroundConfigInput) && isModelBackgroundOverrideAllowed(backgroundConfigInput);
|
|
672
673
|
this.isResumableTool = Boolean(input.autoResumeSuspendedTools || this.originalTool.id?.startsWith("agent-") || this.originalTool.id?.startsWith("workflow-"));
|
|
673
674
|
if (!isVercelTool(this.originalTool) && !isProviderDefinedTool(this.originalTool)) {
|
|
674
|
-
if (
|
|
675
|
+
if (injectBackgroundOverride || this.isResumableTool) {
|
|
675
676
|
let schema = this.originalTool.inputSchema;
|
|
676
677
|
if (typeof schema === "function" && !isStandardSchemaWithJSON(schema)) schema = schema();
|
|
677
678
|
if (!schema) schema = z.object({});
|
|
678
679
|
if (isZodObject(schema) && isZodV4Schema(schema)) {
|
|
679
680
|
let nextSchema = schema;
|
|
680
|
-
if (
|
|
681
|
+
if (injectBackgroundOverride) nextSchema = safeExtendZodObject(nextSchema, { _background: backgroundOverrideZodSchema });
|
|
681
682
|
if (this.isResumableTool) nextSchema = safeExtendZodObject(nextSchema, resumeFieldsZodShape);
|
|
682
683
|
this.injectedInputSchema = toStandardSchema(nextSchema);
|
|
683
684
|
} else {
|
|
@@ -686,7 +687,7 @@ var CoreToolBuilder = class extends MastraBase {
|
|
|
686
687
|
if (jsonSchema && typeof jsonSchema === "object" && jsonSchema.type === "object") {
|
|
687
688
|
const properties = { ...jsonSchema.properties ?? {} };
|
|
688
689
|
const injectedKeys = [];
|
|
689
|
-
if (
|
|
690
|
+
if (injectBackgroundOverride) {
|
|
690
691
|
properties._background = backgroundOverrideJsonSchema;
|
|
691
692
|
injectedKeys.push("_background");
|
|
692
693
|
}
|
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-DY0lTRKE.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-DlsFs_sO.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-DcYRY4r3.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-BRO8xz9z.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 { ba as createVectorErrorId, dn as embed$3 } from "../run-registry-H2qdwHni.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-LryffZas.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,
|
|
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-Ckryk6RZ.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { yt as resolveAgentById } from "./run-registry-
|
|
1
|
+
import { yt as resolveAgentById } from "./run-registry-H2qdwHni.js";
|
|
2
2
|
import { u as RequestContext } from "./request-context-COnZHt2-.js";
|
|
3
|
-
import {
|
|
3
|
+
import { l as MastraWorker, o as PullTransport } from "./worker-Ckryk6RZ.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 {
|
|
1
|
+
import { Dl as waitMs, El as assertDrainTimeout, Gs as WorkflowEventProcessor, Ks as StepExecutor, qs as computeScheduleDefinitionHash, vc as getNestedWorkflow, yc as getStepEntry, yt as resolveAgentById } from "./run-registry-H2qdwHni.js";
|
|
2
2
|
import { t as Scheduler } from "./scheduler-B-VZUvv_.js";
|
|
3
|
-
import {
|
|
3
|
+
import { l as BackgroundTaskManager } from "./background-tasks-CQ1M8SHw.js";
|
|
4
4
|
import { u as RequestContext } from "./request-context-COnZHt2-.js";
|
|
5
5
|
// src/worker/worker.ts
|
|
6
6
|
/**
|
|
@@ -193,7 +193,7 @@ var PullTransport = class {
|
|
|
193
193
|
}
|
|
194
194
|
};
|
|
195
195
|
// src/worker/workers/orchestration-worker.ts
|
|
196
|
-
const
|
|
196
|
+
const ORCHESTRATION_GROUP = "mastra-orchestration";
|
|
197
197
|
const DEFAULT_LEASE_RENEW_INTERVAL_MS = 1e4;
|
|
198
198
|
/**
|
|
199
199
|
* Processes workflow events (step.run, step.end, start, cancel, etc.)
|
|
@@ -233,7 +233,7 @@ var OrchestrationWorker = class extends MastraWorker {
|
|
|
233
233
|
async start() {
|
|
234
234
|
if (this.#running) return;
|
|
235
235
|
if (!this.deps) throw new Error("OrchestrationWorker: call init() before start()");
|
|
236
|
-
const group = this.#config.group ??
|
|
236
|
+
const group = this.#config.group ?? "mastra-orchestration";
|
|
237
237
|
this.#transport = new PullTransport({
|
|
238
238
|
pubsub: this.deps.pubsub,
|
|
239
239
|
group,
|
|
@@ -546,4 +546,4 @@ function resolveNestedWorkflow(mastra, workflowId, parentWorkflow) {
|
|
|
546
546
|
const workflow = getNestedWorkflow(mastra, parentWorkflow);
|
|
547
547
|
return workflow?.id === workflowId ? workflow : null;
|
|
548
548
|
}
|
|
549
|
-
export {
|
|
549
|
+
export { OrchestrationWorker as a, StepExecutionError as c, ORCHESTRATION_GROUP as i, MastraWorker as l, BackgroundTaskWorker as n, PullTransport as o, SchedulerWorker as r, HttpRemoteStrategy as s, InProcessStrategy as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_run_registry = require("./run-registry-
|
|
1
|
+
const require_run_registry = require("./run-registry-BRO8xz9z.cjs");
|
|
2
2
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
3
|
-
const require_worker = require("./worker-
|
|
3
|
+
const require_worker = require("./worker-LryffZas.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_run_registry = require("./run-registry-
|
|
1
|
+
const require_run_registry = require("./run-registry-BRO8xz9z.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-DL-ATSvp.cjs");
|
|
4
4
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
5
5
|
// src/worker/worker.ts
|
|
6
6
|
/**
|
|
@@ -193,7 +193,7 @@ var PullTransport = class {
|
|
|
193
193
|
}
|
|
194
194
|
};
|
|
195
195
|
// src/worker/workers/orchestration-worker.ts
|
|
196
|
-
const
|
|
196
|
+
const ORCHESTRATION_GROUP = "mastra-orchestration";
|
|
197
197
|
const DEFAULT_LEASE_RENEW_INTERVAL_MS = 1e4;
|
|
198
198
|
/**
|
|
199
199
|
* Processes workflow events (step.run, step.end, start, cancel, etc.)
|
|
@@ -233,7 +233,7 @@ var OrchestrationWorker = class extends MastraWorker {
|
|
|
233
233
|
async start() {
|
|
234
234
|
if (this.#running) return;
|
|
235
235
|
if (!this.deps) throw new Error("OrchestrationWorker: call init() before start()");
|
|
236
|
-
const group = this.#config.group ??
|
|
236
|
+
const group = this.#config.group ?? "mastra-orchestration";
|
|
237
237
|
this.#transport = new PullTransport({
|
|
238
238
|
pubsub: this.deps.pubsub,
|
|
239
239
|
group,
|
|
@@ -570,6 +570,12 @@ Object.defineProperty(exports, "MastraWorker", {
|
|
|
570
570
|
return MastraWorker;
|
|
571
571
|
}
|
|
572
572
|
});
|
|
573
|
+
Object.defineProperty(exports, "ORCHESTRATION_GROUP", {
|
|
574
|
+
enumerable: true,
|
|
575
|
+
get: function() {
|
|
576
|
+
return ORCHESTRATION_GROUP;
|
|
577
|
+
}
|
|
578
|
+
});
|
|
573
579
|
Object.defineProperty(exports, "OrchestrationWorker", {
|
|
574
580
|
enumerable: true,
|
|
575
581
|
get: function() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { un as resolveSuspendedToolRunId } from "./stream-
|
|
1
|
+
import { un as resolveSuspendedToolRunId } from "./stream-DcYRY4r3.js";
|
|
2
2
|
import "./utils-DU_pU5SK.js";
|
|
3
3
|
import { m as slimProgressChunk } from "./output-helpers-CVzhy1Y0.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { Cc as createStep, Rs as createWorkflow } from "./run-registry-H2qdwHni.js";
|
|
5
|
+
import { u as BACKGROUND_TASK_WORKFLOW_ID } from "./background-tasks-CQ1M8SHw.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-nABk9CJK.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-BRO8xz9z.cjs");
|
|
5
|
+
const require_background_tasks = require("./background-tasks-DL-ATSvp.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-CVEDotdf.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-DnbKjNuO.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-BRO8xz9z.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 { _c as EventedExecutionEngine, zs as EventedRun, Bs as EventedWorkflow, Ks as StepExecutor, Gs as WorkflowEventProcessor, Vs as cloneStep, Hs as cloneWorkflow, Us as createStep, Ws as createWorkflow } from "../../run-registry-H2qdwHni.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-BRO8xz9z.cjs");
|
|
3
|
+
const require_stream = require("../stream-nABk9CJK.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-DP9DxgFq.cjs");
|
|
8
|
+
const require_rehydrate = require("../rehydrate-CBcjKKGA.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 assertTimeTravelGraphMatchesSnapshot, Cc as createStep, Cl as waitForSuspendedSnapshot, Dc as evaluatePredicate, Ec as predicateToCondition, Gc as createMappingStep, Is as cloneWorkflow, Jc as createStepFromTool, Kc as createStepFromAgent, Ls as createEventedWorkflow, Nc as DefaultExecutionEngine, Ol as workflowTermination, Qc as applyStateDelta, Rs as createWorkflow, Sc as cloneStep, Sl as validateStepSuspendData, Tc as mapVariable, Tl as getEntryWorkflow, Vc as ExecutionEngine, Xc as RESUME_SNAPSHOT_WAIT_STATUSES, Yc as RESUME_SNAPSHOT_POLL_INTERVAL_MS, Zc as abortableSleep, _l as setLongTimeout, al as defineStateAccessors, bc as Run, bl as validateStepResumeData, cl as getSingleStepEntryId, dl as isEntryFinished, el as cleanStepResult, fl as isSingleStepEntry, gl as runCountDeprecationMessage, hl as resolveForeachConcurrency, il as defineLazyWriter, ll as getStepIds, ml as omitPriorSuspensionFields, nl as createRestartExecutionParams, ol as getRestartStartIndex, pl as omitPriorCompletionFields, qc as createStepFromClassifier, qs as computeScheduleDefinitionHash, rl as createTimeTravelExecutionParams, sl as getResumeLabelsByStepId, tl as createDeprecationProxy, ul as hydrateSerializedStepErrors, vl as validateStepInput, wc as isProcessor, wl as getEntryId, xc as Workflow, xl as validateStepStateData, yl as validateStepRequestContext } from "../run-registry-H2qdwHni.js";
|
|
2
|
+
import { Dt as getStepResult, Ot as getStepResultAsync } from "../stream-DcYRY4r3.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-D4nqo7Ri.js";
|
|
7
|
+
import { n as entryOptionFields, r as toStorableGraph, t as rehydrateWorkflow } from "../rehydrate-Dp8f_1MN.js";
|
|
8
8
|
// src/workflows/state-reader.ts
|
|
9
9
|
const getStep = (state, stepId) => state.steps?.[stepId];
|
|
10
10
|
const getFirstStepResult = (step) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/core",
|
|
3
|
-
"version": "1.87.0-alpha.
|
|
3
|
+
"version": "1.87.0-alpha.6",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -968,16 +968,16 @@
|
|
|
968
968
|
"zod-v3": "npm:zod@3.25.76",
|
|
969
969
|
"@internal/ai-sdk-v4": "0.0.99",
|
|
970
970
|
"@internal/ai-sdk-v5": "0.0.99",
|
|
971
|
+
"@internal/ai-v7": "0.0.99",
|
|
972
|
+
"@internal/ai-v6": "0.0.99",
|
|
971
973
|
"@internal/auth": "0.0.40",
|
|
972
974
|
"@internal/core": "0.1.4",
|
|
973
|
-
"@internal/
|
|
975
|
+
"@internal/deployer": "0.0.5",
|
|
974
976
|
"@internal/lint": "0.0.152",
|
|
975
977
|
"@internal/external-types": "0.0.102",
|
|
976
978
|
"@internal/llm-recorder": "0.0.88",
|
|
977
|
-
"@internal/deployer": "0.0.5",
|
|
978
|
-
"@internal/types-builder": "0.0.127",
|
|
979
979
|
"@internal/test-utils": "0.0.88",
|
|
980
|
-
"@internal/
|
|
980
|
+
"@internal/types-builder": "0.0.127",
|
|
981
981
|
"@internal/voice": "0.0.48"
|
|
982
982
|
},
|
|
983
983
|
"engines": {
|