@mastra/core 1.87.0-alpha.17 → 1.87.0-alpha.19
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-v6@0.0.99/dist/index.d.ts +2075 -123
- package/dist/_types/@internal_core@0.1.4/dist/knowledge-compat/index.d.ts +30 -3
- package/dist/agent/agent.d.ts +2 -4
- package/dist/agent/agent.types.d.ts +1 -0
- package/dist/agent/durable/index.cjs +86 -86
- package/dist/agent/durable/index.js +2 -2
- package/dist/agent/durable/run-registry.d.ts +54 -25
- package/dist/agent/index.cjs +16 -16
- package/dist/agent/index.d.ts +1 -0
- package/dist/agent/index.js +3 -3
- package/dist/agent/scopes.d.ts +8 -0
- package/dist/agent/types.d.ts +1 -0
- package/dist/agent-builder/ee/index.cjs +1 -1
- package/dist/agent-builder/ee/index.js +1 -1
- package/dist/agent-controller/agent-controller.d.ts +8 -1
- package/dist/agent-controller/index.cjs +3 -3
- package/dist/agent-controller/index.js +3 -3
- package/dist/agent-controller/session.d.ts +16 -0
- package/dist/{agent-controller-cqcUP-xy.cjs → agent-controller-DzOEhUjR.cjs} +55 -35
- package/dist/{agent-controller-ChZ3qcXE.js → agent-controller-lBdNfcFi.js} +31 -11
- package/dist/{agent-skills-resolver-BMoCDoaK.cjs → agent-skills-resolver-2d8k7ioj.cjs} +134 -109
- package/dist/{agent-skills-resolver-CUEIMDbx.js → agent-skills-resolver-D2HktP6Y.js} +134 -109
- package/dist/background-tasks/index.cjs +1 -1
- package/dist/background-tasks/index.js +1 -1
- package/dist/{background-tasks-CH_gzJwc.js → background-tasks-DAu4WaCb.js} +1 -1
- package/dist/{background-tasks-BIk1TRPw.cjs → background-tasks-DOmQdBVn.cjs} +1 -1
- package/dist/browser/index.cjs +4 -4
- package/dist/browser/index.js +4 -4
- package/dist/{builder-ZAUhFqtD.cjs → builder-BFcVEbX0.cjs} +3 -3
- package/dist/{builder-v01k8_0x.js → builder-DHFtMW8D.js} +2 -2
- package/dist/capabilities/302ai.json +198 -198
- package/dist/capabilities/abacus.json +2 -96
- package/dist/capabilities/abliteratedllm.json +36 -36
- package/dist/capabilities/abliteration-ai.json +11 -11
- package/dist/capabilities/above.json +19 -19
- package/dist/capabilities/adaption.json +11 -11
- package/dist/capabilities/adzuki.json +32 -32
- package/dist/capabilities/agentrouter.json +12 -12
- package/dist/capabilities/agnes.json +4 -4
- package/dist/capabilities/ai-router.json +5 -5
- package/dist/capabilities/aiand.json +25 -25
- package/dist/capabilities/aigrow.json +13 -13
- package/dist/capabilities/aimlapi.json +144 -144
- package/dist/capabilities/aipg.json +2 -2
- package/dist/capabilities/aixy.json +24 -24
- package/dist/capabilities/aki-io.json +12 -12
- package/dist/capabilities/alibaba-cn.json +81 -126
- 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 +57 -53
- package/dist/capabilities/alibaba-token-plan.json +57 -53
- package/dist/capabilities/alibaba.json +76 -71
- package/dist/capabilities/ambient.json +14 -32
- package/dist/capabilities/amd-tokenlab.json +41 -0
- package/dist/capabilities/amd.json +8 -8
- package/dist/capabilities/anthropic.json +32 -56
- package/dist/capabilities/anyapi.json +47 -47
- package/dist/capabilities/apiko.json +5 -5
- package/dist/capabilities/arcee.json +5 -5
- package/dist/capabilities/augure.json +4 -4
- package/dist/capabilities/auriko.json +15 -15
- package/dist/capabilities/bailing.json +3 -3
- package/dist/capabilities/baseten.json +35 -35
- package/dist/capabilities/bee.json +5 -5
- package/dist/capabilities/berget.json +2 -35
- package/dist/capabilities/bothub.json +14 -14
- package/dist/capabilities/boundless.json +39 -39
- package/dist/capabilities/bumo.json +40 -40
- package/dist/capabilities/byteplus.json +28 -28
- package/dist/capabilities/cheapest-token.json +31 -31
- package/dist/capabilities/chutes.json +48 -17
- package/dist/capabilities/cline-pass.json +32 -45
- package/dist/capabilities/cloudcode.json +8 -8
- package/dist/capabilities/cloudferro-sherlock.json +4 -4
- package/dist/capabilities/cloudflare-workers-ai.json +17 -17
- package/dist/capabilities/commandcode.json +141 -156
- package/dist/capabilities/concentrate.json +289 -289
- package/dist/capabilities/cortecs.json +103 -103
- package/dist/capabilities/crossmodel.json +194 -194
- package/dist/capabilities/crusoe.json +18 -18
- package/dist/capabilities/daoxe.json +9 -9
- package/dist/capabilities/databricks.json +128 -128
- package/dist/capabilities/deepinfra.json +98 -94
- package/dist/capabilities/deepseek.json +4 -4
- package/dist/capabilities/digitalocean.json +114 -114
- package/dist/capabilities/dinference.json +1 -2
- package/dist/capabilities/dothoosh.json +26 -26
- package/dist/capabilities/doubleword.json +23 -23
- package/dist/capabilities/edenai.json +285 -285
- package/dist/capabilities/empiriolabs.json +176 -167
- package/dist/capabilities/engy.json +16 -16
- package/dist/capabilities/entrim.json +8 -8
- package/dist/capabilities/evroc.json +15 -15
- package/dist/capabilities/ezkielyna.json +10 -10
- package/dist/capabilities/fastrouter.json +93 -97
- package/dist/capabilities/fireworks-ai.json +85 -85
- package/dist/capabilities/fortytwo.json +4 -4
- package/dist/capabilities/freemodel.json +7 -51
- package/dist/capabilities/friendli.json +8 -8
- package/dist/capabilities/frogbot.json +95 -103
- package/dist/capabilities/gisoo.json +15 -15
- package/dist/capabilities/gmicloud.json +21 -21
- package/dist/capabilities/google.json +55 -55
- package/dist/capabilities/graphn.json +10 -10
- package/dist/capabilities/greenpt.json +35 -35
- package/dist/capabilities/groq.json +7 -20
- package/dist/capabilities/helicone.json +84 -86
- package/dist/capabilities/hetzner.json +4 -4
- package/dist/capabilities/hopper.json +2 -2
- package/dist/capabilities/hostinger-router.json +5 -5
- package/dist/capabilities/hpc-ai.json +8 -24
- package/dist/capabilities/huawei-maas.json +13 -13
- package/dist/capabilities/hubris.json +30 -30
- package/dist/capabilities/huggingface.json +86 -101
- package/dist/capabilities/hyper.json +24 -24
- package/dist/capabilities/impossibl.json +152 -199
- package/dist/capabilities/inceptron.json +8 -8
- package/dist/capabilities/inco.json +4 -21
- package/dist/capabilities/infer.json +16 -16
- package/dist/capabilities/inferall.json +2 -18
- package/dist/capabilities/inference-coop.json +6 -6
- package/dist/capabilities/inference.json +2 -11
- package/dist/capabilities/inferenceapis.json +24 -24
- package/dist/capabilities/infersia.json +13 -13
- package/dist/capabilities/inferx.json +3 -3
- package/dist/capabilities/infomaniak.json +3 -3
- package/dist/capabilities/io-net.json +6 -16
- package/dist/capabilities/isoquant.json +4 -4
- package/dist/capabilities/iteracompute.json +42 -80
- package/dist/capabilities/jalapeno.json +11 -11
- package/dist/capabilities/jiekou.json +19 -167
- package/dist/capabilities/joingonka.json +4 -4
- package/dist/capabilities/jzstoken.json +54 -54
- package/dist/capabilities/keln.json +23 -23
- package/dist/capabilities/kenari.json +122 -130
- package/dist/capabilities/kilo.json +649 -647
- package/dist/capabilities/kimi-code-plan-cn.json +7 -7
- package/dist/capabilities/kimi-code-plan-global.json +7 -7
- package/dist/capabilities/kitani.json +4 -4
- package/dist/capabilities/klavo.json +24 -24
- package/dist/capabilities/korouter.json +32 -32
- package/dist/capabilities/kunavo.json +7 -7
- package/dist/capabilities/liquid.json +8 -8
- package/dist/capabilities/lithosai.json +3 -3
- package/dist/capabilities/llmgateway-providers.json +885 -893
- package/dist/capabilities/llmgateway.json +340 -340
- package/dist/capabilities/llmtr.json +16 -54
- package/dist/capabilities/lowrouter.json +61 -61
- package/dist/capabilities/lyceum.json +14 -14
- package/dist/capabilities/meganova.json +0 -1
- package/dist/capabilities/melious.json +14 -14
- package/dist/capabilities/merge-gateway.json +292 -292
- package/dist/capabilities/meta.json +11 -11
- package/dist/capabilities/minimax-cn-coding-plan.json +2 -2
- package/dist/capabilities/minimax-cn.json +5 -5
- package/dist/capabilities/minimax-coding-plan.json +2 -2
- package/dist/capabilities/minimax.json +5 -5
- package/dist/capabilities/mistral.json +15 -31
- package/dist/capabilities/mixlayer.json +5 -5
- package/dist/capabilities/moark.json +0 -2
- package/dist/capabilities/modal.json +8 -8
- package/dist/capabilities/model-oracle-ai.json +19 -27
- package/dist/capabilities/modelis.json +14 -14
- package/dist/capabilities/modelscope.json +2 -2
- package/dist/capabilities/modular.json +11 -11
- package/dist/capabilities/moneo.json +7 -38
- package/dist/capabilities/moonshotai-cn.json +7 -7
- package/dist/capabilities/moonshotai.json +7 -7
- package/dist/capabilities/morph.json +13 -13
- package/dist/capabilities/munito-eu.json +8 -8
- package/dist/capabilities/munito.json +10 -10
- package/dist/capabilities/nan.json +31 -31
- package/dist/capabilities/nano-gpt.json +581 -603
- package/dist/capabilities/nearai.json +119 -119
- package/dist/capabilities/nebius.json +30 -31
- package/dist/capabilities/neon.json +132 -132
- package/dist/capabilities/neuralwatt.json +41 -41
- package/dist/capabilities/nokeep.json +5 -5
- package/dist/capabilities/novita-ai.json +113 -227
- package/dist/capabilities/nvidia.json +14 -82
- package/dist/capabilities/oathbreaker.json +2 -2
- package/dist/capabilities/obscurify.json +28 -28
- package/dist/capabilities/oci.json +4 -4
- package/dist/capabilities/ofox.json +270 -270
- package/dist/capabilities/ollama-cloud.json +53 -53
- package/dist/capabilities/openai.json +57 -57
- package/dist/capabilities/opencode-go.json +88 -90
- package/dist/capabilities/openreason.json +5 -5
- package/dist/capabilities/openrouter.json +574 -563
- package/dist/capabilities/opper.json +29 -34
- package/dist/capabilities/orcarouter.json +307 -367
- package/dist/capabilities/outerlabs.json +30 -30
- package/dist/capabilities/ovhcloud.json +19 -19
- package/dist/capabilities/pareto.json +2 -7
- package/dist/capabilities/perplexity-agent.json +47 -102
- package/dist/capabilities/perplexity.json +2 -2
- package/dist/capabilities/phala.json +35 -35
- package/dist/capabilities/pioneer.json +5 -122
- package/dist/capabilities/poe.json +130 -130
- package/dist/capabilities/poolside.json +2 -2
- package/dist/capabilities/powerspring.json +14 -14
- package/dist/capabilities/primalabs.json +12 -12
- package/dist/capabilities/prime.json +123 -115
- package/dist/capabilities/privatemode-ai.json +8 -36
- package/dist/capabilities/proxystacks.json +5 -5
- package/dist/capabilities/qihang-ai.json +3 -15
- package/dist/capabilities/qiniu-ai.json +13 -87
- package/dist/capabilities/refuseless.json +7 -14
- package/dist/capabilities/regolo-ai.json +9 -13
- package/dist/capabilities/requesty.json +202 -202
- package/dist/capabilities/routing-run.json +3 -40
- package/dist/capabilities/ruapi.json +21 -21
- package/dist/capabilities/runcrate.json +10 -10
- package/dist/capabilities/runinfra.json +16 -16
- package/dist/capabilities/sakana.json +3 -3
- package/dist/capabilities/sambanova.json +9 -9
- package/dist/capabilities/sandbase.json +20 -20
- package/dist/capabilities/sarvam.json +22 -13
- package/dist/capabilities/scaleway.json +18 -18
- package/dist/capabilities/scnet-token-plan.json +7 -7
- package/dist/capabilities/scx-ai.json +16 -32
- package/dist/capabilities/sensenova.json +12 -12
- package/dist/capabilities/siliconflow-cn.json +45 -97
- package/dist/capabilities/siliconflow.json +53 -53
- package/dist/capabilities/snowflake-cortex.json +26 -26
- package/dist/capabilities/sokkan.json +8 -20
- package/dist/capabilities/sparrowcodes.json +21 -21
- package/dist/capabilities/stackit.json +1 -2
- package/dist/capabilities/standardcompute.json +84 -120
- package/dist/capabilities/steadyrouter.json +41 -41
- package/dist/capabilities/stepfun-ai-step-plan.json +8 -8
- package/dist/capabilities/stepfun-ai.json +8 -8
- package/dist/capabilities/stepfun-step-plan.json +8 -8
- package/dist/capabilities/stepfun.json +8 -8
- package/dist/capabilities/stepping-stone.json +15 -15
- package/dist/capabilities/subconscious.json +2 -2
- package/dist/capabilities/superbot-gg.json +4 -4
- package/dist/capabilities/synthetic.json +8 -17
- package/dist/capabilities/synthorai.json +21 -21
- package/dist/capabilities/teamorouter.json +23 -23
- package/dist/capabilities/teapot-router.json +10 -10
- package/dist/capabilities/tencent-token-plan-intl.json +25 -25
- package/dist/capabilities/tencent-token-plan.json +38 -38
- package/dist/capabilities/tencent-tokenhub.json +46 -46
- package/dist/capabilities/tensorx.json +48 -48
- package/dist/capabilities/tenstorrent.json +4 -4
- package/dist/capabilities/the-grid-ai.json +29 -29
- package/dist/capabilities/thinkingmachines.json +71 -71
- package/dist/capabilities/tinfoil.json +8 -8
- package/dist/capabilities/toapis.json +3 -3
- package/dist/capabilities/togetherai.json +42 -42
- package/dist/capabilities/tokengo.json +21 -21
- package/dist/capabilities/tokenify.json +2 -2
- package/dist/capabilities/trustedrouter.json +5 -5
- package/dist/capabilities/trustedtokens.json +15 -15
- package/dist/capabilities/umans-ai-coding-plan.json +16 -16
- package/dist/capabilities/umans-ai.json +13 -13
- package/dist/capabilities/uncensuredai.json +4 -4
- package/dist/capabilities/unorouter.json +1 -22
- package/dist/capabilities/unrestricted.json +4 -20
- package/dist/capabilities/uplinkswitch.json +21 -21
- package/dist/capabilities/upstage.json +3 -15
- package/dist/capabilities/vancine.json +20 -20
- package/dist/capabilities/vercel.json +551 -551
- package/dist/capabilities/vivgrid.json +51 -131
- package/dist/capabilities/volcengine-coding-plan.json +29 -29
- package/dist/capabilities/volcengine.json +27 -27
- package/dist/capabilities/vultr.json +14 -67
- package/dist/capabilities/wafer.ai.json +17 -17
- package/dist/capabilities/wallaby.json +2 -2
- package/dist/capabilities/wally.json +12 -12
- package/dist/capabilities/wandb.json +21 -21
- package/dist/capabilities/watt.json +22 -22
- package/dist/capabilities/xai.json +5 -5
- 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 +13 -13
- package/dist/capabilities/xxapi.json +30 -30
- package/dist/capabilities/zai-coding-plan.json +17 -17
- package/dist/capabilities/zai.json +31 -31
- package/dist/capabilities/zenifra.json +26 -26
- package/dist/capabilities/zenmux.json +190 -233
- package/dist/capabilities/zerogpu.json +8 -8
- package/dist/capabilities/zhipuai-coding-plan.json +3 -14
- package/dist/capabilities/zhipuai.json +30 -30
- package/dist/capabilities/zro.json +6 -6
- package/dist/channels/index.cjs +24 -24
- package/dist/channels/index.js +2 -2
- package/dist/{channels-B7lf5BnT.js → channels-BBwgs50q.js} +2 -2
- package/dist/{channels-CAA8MkDQ.cjs → channels-CbhgGgQD.cjs} +6 -6
- package/dist/coding-agent/index.cjs +7 -7
- package/dist/coding-agent/index.js +4 -4
- package/dist/{constants-CFO8w780.cjs → constants-B2FVV_2e.cjs} +1 -1
- package/dist/{constants-CUv0mU2y.js → constants-Dro9fuhk.js} +1 -1
- package/dist/datasets/index.cjs +9 -9
- package/dist/datasets/index.js +2 -2
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1147 -1142
- package/dist/docs/references/docs-agents-overview.md +9 -0
- package/dist/docs/references/docs-deployment-workers.md +1 -1
- package/dist/docs/references/docs-harness-background-tasks.md +8 -5
- package/dist/docs/references/docs-harness-durable-agents.md +1 -0
- package/dist/docs/references/docs-knowledge-search.md +1 -1
- package/dist/docs/references/docs-server-pubsub.md +1 -1
- package/dist/docs/references/docs-skills.md +4 -1
- package/dist/docs/references/docs-workflows-overview.md +2 -0
- package/dist/docs/references/reference-agent-controller-session.md +19 -0
- package/dist/docs/references/reference-agents-createSkill.md +20 -1
- package/dist/docs/references/reference-knowledge-knowledge-tools.md +1 -2
- package/dist/docs/references/reference-observability-metrics-metrics-context.md +63 -3
- package/dist/docs/references/reference-pubsub-base.md +1 -1
- package/dist/docs/references/reference-pubsub-redis-streams.md +3 -5
- package/dist/docs/references/reference-pubsub-valkey-streams.md +2 -2
- package/dist/docs/references/reference-templates-overview.md +31 -1
- package/dist/docs/references/reference-workflows-run-methods-restart.md +2 -0
- package/dist/evals/index.cjs +13 -13
- package/dist/evals/index.js +2 -2
- package/dist/evals/scoreTraces/index.cjs +4 -4
- package/dist/evals/scoreTraces/index.js +2 -2
- package/dist/events/index.cjs +1 -1
- package/dist/events/index.js +1 -1
- package/dist/events/pubsub.d.ts +1 -3
- package/dist/{run-registry-bm6b6mwQ.js → execution-fence-B8yV_n51.js} +62508 -62052
- package/dist/{run-registry-BaVTwGKh.cjs → execution-fence-fqV6FGdV.cjs} +63621 -63153
- package/dist/harness/index.cjs +3 -3
- package/dist/harness/index.js +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/integration/index.cjs +1 -1
- package/dist/integration/index.js +1 -1
- package/dist/knowledge/index.cjs +163 -153
- package/dist/knowledge/index.js +18 -8
- package/dist/llm/index.cjs +3 -3
- package/dist/llm/index.js +3 -3
- package/dist/llm/model/gateways/opencode-session-header.d.ts +28 -0
- package/dist/llm/model/provider-types.generated.d.ts +7412 -7795
- package/dist/llm/model/resolve-model.d.ts +1 -0
- package/dist/llm/model/shared.types.d.ts +1 -0
- package/dist/{llm-CGl_FZsb.cjs → llm-B7ul27Ay.cjs} +32 -14
- package/dist/{llm-B5OxUmL4.js → llm-Cy3WZXgA.js} +32 -14
- package/dist/loop/index.cjs +15 -15
- package/dist/loop/index.js +2 -2
- package/dist/loop/server.cjs +1 -1
- package/dist/loop/server.js +1 -1
- package/dist/{manager-BuPZ97U6.cjs → manager-CY-RzZJL.cjs} +21 -19
- package/dist/{manager-R_QVoiy9.js → manager-Dsub5fyz.js} +9 -7
- package/dist/mastra/index.cjs +1 -1
- package/dist/mastra/index.d.ts +33 -4
- package/dist/mastra/index.js +1 -1
- package/dist/{mastra-CHYi4Woq.cjs → mastra-DXQUuwFl.cjs} +116 -67
- package/dist/{mastra-Cl5EC-jR.js → mastra-yjoYfTS5.js} +76 -27
- package/dist/memory/index.cjs +24 -24
- package/dist/memory/index.js +2 -2
- package/dist/memory/mock.d.ts +2 -3
- package/dist/{model-WmKuSHa8.cjs → model-BARBpXDN.cjs} +2 -2
- package/dist/{model-BNIR9RSw.js → model-DauH8JTo.js} +2 -2
- package/dist/{netlify-D4orVt-5.js → netlify-BNBtKR4Q.js} +86 -4
- package/dist/{netlify-C_6KLad8.cjs → netlify-DGsETiFB.cjs} +97 -3
- package/dist/notifications/index.cjs +18 -18
- package/dist/notifications/index.js +2 -2
- package/dist/observability/index.cjs +1 -1
- package/dist/observability/index.js +1 -1
- package/dist/{observability-D7RNOAPx.js → observability-DPDWibyH.js} +648 -648
- package/dist/{output-helpers-DgsH4aTb.cjs → output-helpers-By5FbLpp.cjs} +71 -73
- package/dist/{output-helpers-CVzhy1Y0.js → output-helpers-k2-48ssH.js} +72 -74
- package/dist/processor-provider/index.cjs +10 -10
- package/dist/processor-provider/index.js +1 -1
- package/dist/processors/index.cjs +65 -65
- package/dist/processors/index.js +2 -2
- package/dist/{provider-registry-CkHZ7heH.js → provider-registry-CfHy4Zhw.js} +21401 -22401
- package/dist/{provider-registry-DH7XbpHT.cjs → provider-registry-Y6tbfFhH.cjs} +21401 -22401
- package/dist/provider-registry.json +21940 -22961
- package/dist/{registry-generator-Dn8HU1Jz.cjs → registry-generator-BEJ0APNc.cjs} +1 -1
- package/dist/{registry-generator-CAXpGkmM.js → registry-generator-DJiQAI8V.js} +1 -1
- package/dist/{rehydrate-DZyZNbaq.cjs → rehydrate-4Sl7D3kO.cjs} +14 -14
- package/dist/{rehydrate-Cy7-QPU-.js → rehydrate-Da4_E_N8.js} +2 -2
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +2 -2
- package/dist/{signal-provider-BslnAjWG.js → signal-provider-B_mfW-J4.js} +1 -1
- package/dist/{signal-provider-BFAvh_AJ.cjs → signal-provider-D9gbevHN.cjs} +1 -1
- package/dist/signals/index.cjs +3 -3
- package/dist/signals/index.js +3 -3
- package/dist/{signals-CbmgVwL-.cjs → signals-BwDXGqxc.cjs} +2 -2
- package/dist/{signals-Clupx3jz.js → signals-TznxWfM3.js} +2 -2
- package/dist/skills/create-skill.d.ts +3 -0
- package/dist/skills/index.cjs +1 -1
- package/dist/skills/index.js +1 -1
- package/dist/skills/inline-skill-source.d.ts +5 -1
- package/dist/skills/types.d.ts +16 -1
- package/dist/{source-DYZMfjv3.js → source-B3He4_mz.js} +1 -1
- package/dist/{source-BC8Et5qZ.cjs → source-C_nWbqI0.cjs} +1 -1
- package/dist/{state-processor-B9kxpM53.js → state-processor-B_KsS82m.js} +1 -1
- package/dist/{state-processor-kRNZ38Nf.cjs → state-processor-DaSmhVUX.cjs} +1 -1
- package/dist/storage/constants.cjs +1 -1
- package/dist/storage/constants.js +1 -1
- package/dist/storage/domains/agents/index.cjs +1 -1
- package/dist/storage/domains/agents/index.js +1 -1
- package/dist/storage/domains/inmemory-db.d.ts +1 -1
- package/dist/storage/domains/knowledge/pages.d.ts +8 -1
- package/dist/storage/domains/memory/base.d.ts +19 -9
- package/dist/storage/domains/memory/inmemory.d.ts +4 -1
- package/dist/storage/domains/memory/queue-thread.d.ts +7 -1
- package/dist/storage/domains/workflows/base.d.ts +18 -5
- package/dist/storage/domains/workflows/inmemory.d.ts +3 -5
- package/dist/storage/domains/workflows/journal.d.ts +16 -1
- package/dist/storage/index.cjs +187 -186
- package/dist/storage/index.js +6 -6
- package/dist/storage/workflow-snapshot.d.ts +4 -0
- package/dist/storage/workflow-step-guard.d.ts +5 -0
- package/dist/stream/base/output.d.ts +1 -0
- package/dist/stream/index.cjs +2 -2
- package/dist/stream/index.js +2 -2
- package/dist/{stream-B9dswdIM.js → stream-BFhCDJvz.js} +18 -8
- package/dist/{stream-CbG7k93m.cjs → stream-CZy8XA_q.cjs} +23 -7
- package/dist/telemetry/index.cjs +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/test-utils/llm-mock.cjs +1 -1
- package/dist/test-utils/llm-mock.js +1 -1
- package/dist/{tool-Z3bykc1m.js → tool-DIFduuTw.js} +2 -5
- package/dist/{tool-CYlT2UA-.cjs → tool-Dn9WSDVn.cjs} +2 -5
- package/dist/tool-loop-agent/index.cjs +1 -1
- package/dist/tool-loop-agent/index.js +1 -1
- package/dist/{tool-loop-agent-BnlPROel.cjs → tool-loop-agent-DifR6VLI.cjs} +4 -4
- package/dist/{tool-loop-agent-BmlzhMxc.js → tool-loop-agent-SOpIJRws.js} +3 -3
- package/dist/{toolchecks-DrsZdc3S.js → toolchecks-CRAfUe9H.js} +1 -1
- package/dist/{toolchecks-MFU48cit.cjs → toolchecks-DbBsQGHW.cjs} +1 -1
- package/dist/tools/index.cjs +5 -5
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/index.js +5 -5
- package/dist/tools/is-vercel-tool.cjs +1 -1
- package/dist/tools/is-vercel-tool.js +1 -1
- package/dist/tools/tool.d.ts +2 -4
- package/dist/tools/types.d.ts +1 -0
- package/dist/{tools-BEYxowf0.cjs → tools-C2q0ougI.cjs} +1 -1
- package/dist/{tools-tPy2FwMI.js → tools-ybbz1YKg.js} +1 -1
- package/dist/{utils-N_OPw-9g.cjs → utils-BjFntMW_.cjs} +6 -5
- package/dist/{utils-BU8lpEZ4.js → utils-DN_kWhH6.js} +6 -5
- package/dist/utils.cjs +3 -3
- package/dist/utils.js +3 -3
- package/dist/{validate-BvxwUPNa.cjs → validate-CBQ0dMBb.cjs} +1 -1
- package/dist/{validate-BANPY3pi.js → validate-KIBMWuyc.js} +1 -1
- package/dist/vector/index.cjs +8 -8
- package/dist/vector/index.js +1 -1
- package/dist/worker/index.cjs +1 -1
- package/dist/worker/index.js +1 -1
- package/dist/{worker-BpVWGM6Q.js → worker-Bqg7bsxX.js} +8 -3
- package/dist/{worker-E2MdhICW.cjs → worker-CJ_JYSy0.cjs} +3 -3
- package/dist/{worker-B3s2DjXP.cjs → worker-Ct6E5_2p.cjs} +16 -11
- package/dist/{worker-CZ_07SOb.js → worker-DVM_pvH7.js} +2 -2
- package/dist/{workflow-BrcVks0j.js → workflow-BmShpn3p.js} +4 -4
- package/dist/{workflow-BuPW86ke.cjs → workflow-DEAvg0pI.cjs} +8 -8
- package/dist/workflows/builder/index.cjs +1 -1
- package/dist/workflows/builder/index.js +1 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/evented/workflow-event-processor/index.d.ts +0 -2
- package/dist/workflows/evented/workflow.d.ts +2 -1
- package/dist/workflows/index.cjs +54 -54
- package/dist/workflows/index.js +4 -4
- package/dist/workflows/run-storage.d.ts +16 -1
- package/dist/workflows/types.d.ts +10 -0
- package/dist/workflows/workflow.d.ts +3 -1
- package/dist/workspace/index.cjs +1 -1
- package/dist/workspace/index.js +1 -1
- package/dist/{workspace-CzzrnE6Q.cjs → workspace-BQD4tcQi.cjs} +3 -3
- package/dist/{workspace-Ct2kAiDv.js → workspace-sqcfdZRR.js} +2 -2
- package/package.json +7 -6
- package/skills/mastra/SKILL.md +171 -0
- package/skills/mastra/references/common-errors.md +557 -0
- package/skills/mastra/references/core-concepts.md +21 -0
- package/skills/mastra/references/create-mastra.md +233 -0
- package/skills/mastra/references/embedded-docs.md +103 -0
- package/skills/mastra/references/feedback.md +69 -0
- package/skills/mastra/references/gateway.md +66 -0
- package/skills/mastra/references/mastra-api.md +222 -0
- package/skills/mastra/references/migration-guide.md +185 -0
- package/skills/mastra/references/model-selection.md +29 -0
- package/skills/mastra/references/platform.md +164 -0
- package/skills/mastra/references/remote-docs.md +193 -0
- package/skills/mastra/references/trace-query.md +150 -0
- package/skills/mastra/scripts/provider-registry.mjs +271 -0
- package/src/llm/model/provider-types.generated.d.ts +7412 -7795
- package/dist/{observability-B0R_D1PZ.cjs → observability-VaoaeadK.cjs} +647 -647
package/dist/tools/tool.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** Docs for this @mastra/core version are bundled at node_modules/@mastra/core/dist/docs/SKILL.md. Read it before guessing APIs from these types. */
|
|
1
2
|
import type { ToolBackgroundConfig } from '../background-tasks/index.js';
|
|
2
3
|
import type { Mastra } from '../mastra/index.js';
|
|
3
4
|
import type { PublicSchema, StandardSchemaWithJSON, InferPublicSchema } from '../schema/index.js';
|
|
@@ -332,10 +333,7 @@ type CreateToolOpts<TId extends string, TInputSchema extends SchemaLike, TOutput
|
|
|
332
333
|
* });
|
|
333
334
|
* ```
|
|
334
335
|
*
|
|
335
|
-
* @see
|
|
336
|
-
* `@mastra/core/package.json` with your project's resolver or package-manager
|
|
337
|
-
* tooling, then read `dist/docs/SKILL.md` from that package root and follow its
|
|
338
|
-
* reference links. Use package-manager tools for virtual or archived packages.
|
|
336
|
+
* @see Docs for this @mastra/core version are bundled at node_modules/@mastra/core/dist/docs/SKILL.md. Read it before guessing APIs from these types.
|
|
339
337
|
*
|
|
340
338
|
* @see [Tool documentation](https://mastra.ai/reference/tools/create-tool)
|
|
341
339
|
* if packaged docs are unavailable.
|
package/dist/tools/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** Docs for this @mastra/core version are bundled at node_modules/@mastra/core/dist/docs/SKILL.md. Read it before guessing APIs from these types. */
|
|
1
2
|
import type { WritableStream } from 'node:stream/web';
|
|
2
3
|
import type { Tool, ToolV5, FlexibleSchema, ToolCallOptions, ToolExecutionOptions, Schema } from '../_types/@internal_external-types@0.0.102/dist/index.js';
|
|
3
4
|
import type { MastraPrimitives, MastraUnion } from '../action/index.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
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
|
-
const require_tool = require("./tool-
|
|
4
|
+
const require_tool = require("./tool-Dn9WSDVn.cjs");
|
|
5
5
|
const require_errors = require("./errors-D5kMB1FQ.cjs");
|
|
6
6
|
let zod_v4 = require("zod/v4");
|
|
7
7
|
let os = require("os");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "./error-oh2DLsP2.js";
|
|
2
2
|
import { u as RequestContext } from "./request-context-COnZHt2-.js";
|
|
3
|
+
import { r as createTool, s as isValidationError } from "./tool-DIFduuTw.js";
|
|
3
4
|
import { isStandardSchemaWithJSON, standardSchemaToJSONSchema } from "./schema/index.js";
|
|
4
|
-
import { r as createTool, s as isValidationError } from "./tool-Z3bykc1m.js";
|
|
5
5
|
import { f as SandboxFeatureNotSupportedError } from "./errors-CzFYpCHw.js";
|
|
6
6
|
import { z } from "zod/v4";
|
|
7
7
|
import { tmpdir } from "os";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
2
|
-
const require_tool = require("./tool-
|
|
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-DOmQdBVn.cjs");
|
|
5
5
|
const require_base = require("./base-BIzR1D3_.cjs");
|
|
6
|
-
const require_observability = require("./observability-
|
|
6
|
+
const require_observability = require("./observability-VaoaeadK.cjs");
|
|
7
7
|
const require_utils = require("./utils-D-eNsgDM.cjs");
|
|
8
8
|
const require_storage = require("./storage-CfG0I2aF.cjs");
|
|
9
9
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
10
|
-
const require_toolchecks = require("./toolchecks-
|
|
10
|
+
const require_toolchecks = require("./toolchecks-DbBsQGHW.cjs");
|
|
11
11
|
const require_zod_utils = require("./zod-utils-Cl5jw5N_.cjs");
|
|
12
12
|
const require_stream = require("./stream-BGbj9jAU.cjs");
|
|
13
13
|
let zod_v4 = require("zod/v4");
|
|
14
14
|
let crypto = require("crypto");
|
|
15
|
-
let _mastra_schema_compat = require("@mastra/schema-compat");
|
|
16
15
|
let _mastra_schema_compat_json_to_zod = require("@mastra/schema-compat/json-to-zod");
|
|
16
|
+
let _mastra_schema_compat = require("@mastra/schema-compat");
|
|
17
17
|
let _mastra_schema_compat_schema = require("@mastra/schema-compat/schema");
|
|
18
18
|
// src/agent/run-lease-fence.ts
|
|
19
19
|
/**
|
|
@@ -1306,6 +1306,7 @@ var CoreToolBuilder = class extends require_base.MastraBase {
|
|
|
1306
1306
|
return validation;
|
|
1307
1307
|
},
|
|
1308
1308
|
hasSuspendSchema: !!this.getSuspendSchema(),
|
|
1309
|
+
resumeSchema: this.getResumeSchema() ?? void 0,
|
|
1309
1310
|
execute: this.originalTool.execute ? this.createExecute(this.originalTool, {
|
|
1310
1311
|
...this.options,
|
|
1311
1312
|
description: this.originalTool.description
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { i as MastraError, n as ErrorDomain, o as getErrorFromUnknown, t as ErrorCategory } from "./error-oh2DLsP2.js";
|
|
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-
|
|
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-DAu4WaCb.js";
|
|
5
5
|
import { t as MastraBase } from "./base-CKLWBhDo.js";
|
|
6
|
-
import {
|
|
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";
|
|
8
8
|
import { t as EntityType } from "./storage-Cc50aQAp.js";
|
|
9
9
|
import { u as RequestContext } from "./request-context-COnZHt2-.js";
|
|
10
10
|
import { isStandardSchemaWithJSON, standardSchemaToJSONSchema, toStandardSchema } from "./schema/index.js";
|
|
11
|
-
import { c as isProviderDefinedTool, n as getNeedsApprovalFn, p as markBuiltBeforeApproval, u as isVercelTool } from "./toolchecks-
|
|
11
|
+
import { c as isProviderDefinedTool, n as getNeedsApprovalFn, p as markBuiltBeforeApproval, u as isVercelTool } from "./toolchecks-CRAfUe9H.js";
|
|
12
12
|
import { a as isZodObject, o as safeExtendZodObject } from "./zod-utils-BDDS_mxU.js";
|
|
13
13
|
import { t as ToolStream } from "./stream-D9JOykz7.js";
|
|
14
14
|
import { z } from "zod/v4";
|
|
15
15
|
import { createHash } from "crypto";
|
|
16
|
-
import { AnthropicSchemaCompatLayer, DeepSeekSchemaCompatLayer, GoogleSchemaCompatLayer, MetaSchemaCompatLayer, OpenAIReasoningSchemaCompatLayer, OpenAISchemaCompatLayer, applyCompatLayer, convertZodSchemaToAISDKSchema, isZodType, jsonSchema } from "@mastra/schema-compat";
|
|
17
16
|
import { jsonSchemaToZod } from "@mastra/schema-compat/json-to-zod";
|
|
17
|
+
import { AnthropicSchemaCompatLayer, DeepSeekSchemaCompatLayer, GoogleSchemaCompatLayer, MetaSchemaCompatLayer, OpenAIReasoningSchemaCompatLayer, OpenAISchemaCompatLayer, applyCompatLayer, convertZodSchemaToAISDKSchema, isZodType, jsonSchema } from "@mastra/schema-compat";
|
|
18
18
|
// src/agent/run-lease-fence.ts
|
|
19
19
|
/**
|
|
20
20
|
* Checks registered by the thread runtime for runs that hold a cross-process thread
|
|
@@ -1306,6 +1306,7 @@ var CoreToolBuilder = class extends MastraBase {
|
|
|
1306
1306
|
return validation;
|
|
1307
1307
|
},
|
|
1308
1308
|
hasSuspendSchema: !!this.getSuspendSchema(),
|
|
1309
|
+
resumeSchema: this.getResumeSchema() ?? void 0,
|
|
1309
1310
|
execute: this.originalTool.execute ? this.createExecute(this.originalTool, {
|
|
1310
1311
|
...this.options,
|
|
1311
1312
|
description: this.originalTool.description
|
package/dist/utils.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_utils_safe_stringify = require("./utils/safe-stringify.cjs");
|
|
3
|
-
const require_deep_equal = require("./deep-equal-TMDmByBC.cjs");
|
|
4
2
|
const require_zod_utils = require("./zod-utils-Cl5jw5N_.cjs");
|
|
3
|
+
const require_utils = require("./utils-BjFntMW_.cjs");
|
|
5
4
|
const require_fetchWithRetry = require("./fetchWithRetry-f5k4p7_1.cjs");
|
|
5
|
+
const require_utils_safe_stringify = require("./utils/safe-stringify.cjs");
|
|
6
|
+
const require_deep_equal = require("./deep-equal-TMDmByBC.cjs");
|
|
6
7
|
const require_dynamic_argument = require("./dynamic-argument-CUc1BBOS.cjs");
|
|
7
|
-
const require_utils = require("./utils-N_OPw-9g.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
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { boundedStringify, ensureSerializable, isBoundedSerializable, safeStringify } from "./utils/safe-stringify.js";
|
|
2
|
-
import { t as deepEqual } from "./deep-equal-d1xU02ag.js";
|
|
3
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-DN_kWhH6.js";
|
|
4
3
|
import { t as fetchWithRetry } from "./fetchWithRetry-DFSvpYDT.js";
|
|
4
|
+
import { boundedStringify, ensureSerializable, isBoundedSerializable, safeStringify } from "./utils/safe-stringify.js";
|
|
5
|
+
import { t as deepEqual } from "./deep-equal-d1xU02ag.js";
|
|
5
6
|
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-BU8lpEZ4.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 { Ct as collectTemplateStepIds, Dt as validateTemplate } from "./stream-
|
|
2
|
+
import { Ct as collectTemplateStepIds, Dt as validateTemplate } from "./stream-BFhCDJvz.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
|
|
4
|
+
const require_execution_fence = require("../execution-fence-fqV6FGdV.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");
|
|
@@ -115,13 +115,13 @@ var MastraVector = class extends require_base.MastraBase {
|
|
|
115
115
|
*/
|
|
116
116
|
function validateUpsertInput(storeName, vectors, metadata, ids) {
|
|
117
117
|
if (!vectors || vectors.length === 0) throw new require_error.MastraError({
|
|
118
|
-
id:
|
|
118
|
+
id: require_execution_fence.createVectorErrorId(storeName, "UPSERT", "EMPTY_VECTORS"),
|
|
119
119
|
domain: require_error.ErrorDomain.MASTRA_VECTOR,
|
|
120
120
|
category: require_error.ErrorCategory.USER,
|
|
121
121
|
details: { message: "Vectors array cannot be empty" }
|
|
122
122
|
});
|
|
123
123
|
if (metadata && metadata.length > 0 && metadata.length !== vectors.length) throw new require_error.MastraError({
|
|
124
|
-
id:
|
|
124
|
+
id: require_execution_fence.createVectorErrorId(storeName, "UPSERT", "METADATA_LENGTH_MISMATCH"),
|
|
125
125
|
domain: require_error.ErrorDomain.MASTRA_VECTOR,
|
|
126
126
|
category: require_error.ErrorCategory.USER,
|
|
127
127
|
details: {
|
|
@@ -131,7 +131,7 @@ function validateUpsertInput(storeName, vectors, metadata, ids) {
|
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
133
|
if (ids && ids.length !== vectors.length) throw new require_error.MastraError({
|
|
134
|
-
id:
|
|
134
|
+
id: require_execution_fence.createVectorErrorId(storeName, "UPSERT", "IDS_LENGTH_MISMATCH"),
|
|
135
135
|
domain: require_error.ErrorDomain.MASTRA_VECTOR,
|
|
136
136
|
category: require_error.ErrorCategory.USER,
|
|
137
137
|
details: {
|
|
@@ -150,7 +150,7 @@ function validateUpsertInput(storeName, vectors, metadata, ids) {
|
|
|
150
150
|
*/
|
|
151
151
|
function validateTopK(storeName, topK) {
|
|
152
152
|
if (!Number.isInteger(topK) || topK <= 0) throw new require_error.MastraError({
|
|
153
|
-
id:
|
|
153
|
+
id: require_execution_fence.createVectorErrorId(storeName, "QUERY", "INVALID_TOP_K"),
|
|
154
154
|
domain: require_error.ErrorDomain.MASTRA_VECTOR,
|
|
155
155
|
category: require_error.ErrorCategory.USER,
|
|
156
156
|
details: {
|
|
@@ -170,7 +170,7 @@ function validateVectorValues(storeName, vectors) {
|
|
|
170
170
|
for (let i = 0; i < vectors.length; i++) {
|
|
171
171
|
const vector = vectors[i];
|
|
172
172
|
if (!vector) throw new require_error.MastraError({
|
|
173
|
-
id:
|
|
173
|
+
id: require_execution_fence.createVectorErrorId(storeName, "UPSERT", "INVALID_VECTOR"),
|
|
174
174
|
domain: require_error.ErrorDomain.MASTRA_VECTOR,
|
|
175
175
|
category: require_error.ErrorCategory.USER,
|
|
176
176
|
details: {
|
|
@@ -181,7 +181,7 @@ function validateVectorValues(storeName, vectors) {
|
|
|
181
181
|
for (let j = 0; j < vector.length; j++) {
|
|
182
182
|
const value = vector[j];
|
|
183
183
|
if (value === null || value === void 0 || !Number.isFinite(value)) throw new require_error.MastraError({
|
|
184
|
-
id:
|
|
184
|
+
id: require_execution_fence.createVectorErrorId(storeName, "UPSERT", "INVALID_VECTOR_VALUE"),
|
|
185
185
|
domain: require_error.ErrorDomain.MASTRA_VECTOR,
|
|
186
186
|
category: require_error.ErrorCategory.USER,
|
|
187
187
|
details: {
|
|
@@ -214,7 +214,7 @@ exports.MastraVector = MastraVector;
|
|
|
214
214
|
exports.embedV1 = require_dist$1.embed;
|
|
215
215
|
exports.embedV2 = require_dist.embed;
|
|
216
216
|
exports.embedV3 = require_message_list.embed;
|
|
217
|
-
exports.embedV4 =
|
|
217
|
+
exports.embedV4 = require_execution_fence.embed;
|
|
218
218
|
exports.isSupportedEmbeddingModel = isSupportedEmbeddingModel;
|
|
219
219
|
exports.supportedEmbeddingModelSpecifications = supportedEmbeddingModelSpecifications;
|
|
220
220
|
exports.validateTopK = validateTopK;
|
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 { Zt as embed$3, ua as createVectorErrorId } from "../execution-fence-B8yV_n51.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-Ct6E5_2p.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-Bqg7bsxX.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $s as
|
|
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-B8yV_n51.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-DAu4WaCb.js";
|
|
4
4
|
import { u as RequestContext } from "./request-context-COnZHt2-.js";
|
|
5
5
|
// src/worker/worker.ts
|
|
6
6
|
/**
|
|
@@ -212,6 +212,7 @@ var OrchestrationWorker = class extends MastraWorker {
|
|
|
212
212
|
#processor;
|
|
213
213
|
#strategy;
|
|
214
214
|
#running = false;
|
|
215
|
+
#releaseConsumer;
|
|
215
216
|
constructor(config = {}) {
|
|
216
217
|
super();
|
|
217
218
|
const interval = config.leaseRenewIntervalMs;
|
|
@@ -241,9 +242,13 @@ var OrchestrationWorker = class extends MastraWorker {
|
|
|
241
242
|
});
|
|
242
243
|
await this.#transport.start({ route: (event, ack, nack, extend) => this.#processEvent(event, ack, nack, extend) });
|
|
243
244
|
this.#running = true;
|
|
245
|
+
const processor = this.#processor;
|
|
246
|
+
if (processor) this.#releaseConsumer = this.deps.mastra?.__registerWorkflowEventConsumer((event) => processor.handle(event));
|
|
244
247
|
}
|
|
245
248
|
async stop(options) {
|
|
246
249
|
if (!this.#running) return;
|
|
250
|
+
this.#releaseConsumer?.();
|
|
251
|
+
this.#releaseConsumer = void 0;
|
|
247
252
|
try {
|
|
248
253
|
if (this.#transport) {
|
|
249
254
|
await this.#transport.stop(options);
|
|
@@ -265,7 +270,7 @@ var OrchestrationWorker = class extends MastraWorker {
|
|
|
265
270
|
}, this.#config.leaseRenewIntervalMs ?? DEFAULT_LEASE_RENEW_INTERVAL_MS) : void 0;
|
|
266
271
|
let result;
|
|
267
272
|
try {
|
|
268
|
-
result = await this.#processor.handle(event);
|
|
273
|
+
result = await (this.deps?.mastra?.__delegateWorkflowEvent(event) ?? this.#processor.handle(event));
|
|
269
274
|
} finally {
|
|
270
275
|
if (heartbeat) clearInterval(heartbeat);
|
|
271
276
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_execution_fence = require("./execution-fence-fqV6FGdV.cjs");
|
|
2
2
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
3
|
-
const require_worker = require("./worker-
|
|
3
|
+
const require_worker = require("./worker-Ct6E5_2p.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. */
|
|
@@ -165,7 +165,7 @@ async function executeAgentSchedule(mastra, scheduleId, target, ctx = {}) {
|
|
|
165
165
|
firedAt: ctx.firedAt ?? /* @__PURE__ */ new Date()
|
|
166
166
|
};
|
|
167
167
|
const log = ctx.logger ?? mastra.getLogger?.();
|
|
168
|
-
const resolved = await
|
|
168
|
+
const resolved = await require_execution_fence.resolveAgentById(mastra, agentId);
|
|
169
169
|
if (resolved.status === "error") {
|
|
170
170
|
log?.error?.("Failed to resolve stored agent for schedule", {
|
|
171
171
|
scheduleId,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_execution_fence = require("./execution-fence-fqV6FGdV.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-DOmQdBVn.cjs");
|
|
4
4
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
5
5
|
// src/worker/worker.ts
|
|
6
6
|
/**
|
|
@@ -148,7 +148,7 @@ var PullTransport = class {
|
|
|
148
148
|
this.#group = group;
|
|
149
149
|
this.#topic = topic ?? TOPIC_WORKFLOWS;
|
|
150
150
|
this.#logger = logger;
|
|
151
|
-
this.#drainTimeout =
|
|
151
|
+
this.#drainTimeout = require_execution_fence.assertDrainTimeout(drainTimeout ?? require_execution_fence.waitMs(DEFAULT_DRAIN_TIMEOUT_MS, 50), "PullTransport");
|
|
152
152
|
}
|
|
153
153
|
async start(router) {
|
|
154
154
|
if (this.#callbacks.length > 0) {
|
|
@@ -173,7 +173,7 @@ var PullTransport = class {
|
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
175
|
async stop(options) {
|
|
176
|
-
const drainTimeout =
|
|
176
|
+
const drainTimeout = require_execution_fence.assertDrainTimeout(options?.drainTimeout ?? this.#drainTimeout, "PullTransport.stop()");
|
|
177
177
|
for (const { topic, cb } of this.#callbacks) await this.#pubsub.unsubscribe(topic, cb);
|
|
178
178
|
this.#callbacks = [];
|
|
179
179
|
await this.#drainInFlight(drainTimeout);
|
|
@@ -212,6 +212,7 @@ var OrchestrationWorker = class extends MastraWorker {
|
|
|
212
212
|
#processor;
|
|
213
213
|
#strategy;
|
|
214
214
|
#running = false;
|
|
215
|
+
#releaseConsumer;
|
|
215
216
|
constructor(config = {}) {
|
|
216
217
|
super();
|
|
217
218
|
const interval = config.leaseRenewIntervalMs;
|
|
@@ -225,7 +226,7 @@ var OrchestrationWorker = class extends MastraWorker {
|
|
|
225
226
|
if (!modes.includes("pull")) throw new Error(`OrchestrationWorker requires a pull-capable PubSub, but the configured pubsub only supports: ${modes.join(", ")}. Either remove OrchestrationWorker from the workers list or use a pull-capable PubSub (e.g. Redis Streams).`);
|
|
226
227
|
const remoteUrl = process.env.MASTRA_STEP_EXECUTION_URL;
|
|
227
228
|
if (remoteUrl) this.#strategy = new HttpRemoteStrategy({ serverUrl: remoteUrl });
|
|
228
|
-
this.#processor = new
|
|
229
|
+
this.#processor = new require_execution_fence.WorkflowEventProcessor({
|
|
229
230
|
mastra: deps.mastra,
|
|
230
231
|
stepExecutionStrategy: this.#strategy
|
|
231
232
|
});
|
|
@@ -241,9 +242,13 @@ var OrchestrationWorker = class extends MastraWorker {
|
|
|
241
242
|
});
|
|
242
243
|
await this.#transport.start({ route: (event, ack, nack, extend) => this.#processEvent(event, ack, nack, extend) });
|
|
243
244
|
this.#running = true;
|
|
245
|
+
const processor = this.#processor;
|
|
246
|
+
if (processor) this.#releaseConsumer = this.deps.mastra?.__registerWorkflowEventConsumer((event) => processor.handle(event));
|
|
244
247
|
}
|
|
245
248
|
async stop(options) {
|
|
246
249
|
if (!this.#running) return;
|
|
250
|
+
this.#releaseConsumer?.();
|
|
251
|
+
this.#releaseConsumer = void 0;
|
|
247
252
|
try {
|
|
248
253
|
if (this.#transport) {
|
|
249
254
|
await this.#transport.stop(options);
|
|
@@ -265,7 +270,7 @@ var OrchestrationWorker = class extends MastraWorker {
|
|
|
265
270
|
}, this.#config.leaseRenewIntervalMs ?? DEFAULT_LEASE_RENEW_INTERVAL_MS) : void 0;
|
|
266
271
|
let result;
|
|
267
272
|
try {
|
|
268
|
-
result = await this.#processor.handle(event);
|
|
273
|
+
result = await (this.deps?.mastra?.__delegateWorkflowEvent(event) ?? this.#processor.handle(event));
|
|
269
274
|
} finally {
|
|
270
275
|
if (heartbeat) clearInterval(heartbeat);
|
|
271
276
|
}
|
|
@@ -334,14 +339,14 @@ var SchedulerWorker = class extends MastraWorker {
|
|
|
334
339
|
} catch {
|
|
335
340
|
return false;
|
|
336
341
|
}
|
|
337
|
-
if (target.type === "agent") return (await
|
|
342
|
+
if (target.type === "agent") return (await require_execution_fence.resolveAgentById(mastra, target.agentId)).status !== "missing";
|
|
338
343
|
return false;
|
|
339
344
|
} : void 0;
|
|
340
345
|
const isTargetCurrent = mastra ? (target) => {
|
|
341
346
|
if (target.type !== "workflow" || !target.definitionHash) return true;
|
|
342
347
|
try {
|
|
343
348
|
const workflow = mastra.getWorkflowById(target.workflowId);
|
|
344
|
-
const localHash =
|
|
349
|
+
const localHash = require_execution_fence.computeScheduleDefinitionHash(workflow.serializedStepGraph);
|
|
345
350
|
if (!localHash) return true;
|
|
346
351
|
return localHash === target.definitionHash;
|
|
347
352
|
} catch {
|
|
@@ -491,7 +496,7 @@ var InProcessStrategy = class {
|
|
|
491
496
|
async executeStep(params) {
|
|
492
497
|
if (!this.#mastra) throw new Error("InProcessStrategy requires Mastra instance. Call __registerMastra() first.");
|
|
493
498
|
const workflow = this.#resolveWorkflow(params);
|
|
494
|
-
const entry = workflow ?
|
|
499
|
+
const entry = workflow ? require_execution_fence.getStepEntry(workflow, params.executionPath) : null;
|
|
495
500
|
if (!entry) throw new Error(`InProcessStrategy: could not resolve step "${params.stepId}" at executionPath [${params.executionPath.join(",")}] in workflow "${params.workflowId}"`);
|
|
496
501
|
const rc = new require_request_context.RequestContext(Object.entries(params.requestContext ?? {}));
|
|
497
502
|
let abortController;
|
|
@@ -502,7 +507,7 @@ var InProcessStrategy = class {
|
|
|
502
507
|
abortController.abort(params.abortSignal.reason);
|
|
503
508
|
}, { once: true });
|
|
504
509
|
}
|
|
505
|
-
return new
|
|
510
|
+
return new require_execution_fence.StepExecutor({ mastra: this.#mastra }).execute({
|
|
506
511
|
workflowId: params.workflowId,
|
|
507
512
|
entry,
|
|
508
513
|
runId: params.runId,
|
|
@@ -543,7 +548,7 @@ var InProcessStrategy = class {
|
|
|
543
548
|
*/
|
|
544
549
|
function resolveNestedWorkflow(mastra, workflowId, parentWorkflow) {
|
|
545
550
|
if (parentWorkflow.parentWorkflow && !resolveNestedWorkflow(mastra, parentWorkflow.workflowId, parentWorkflow.parentWorkflow)) return null;
|
|
546
|
-
const workflow =
|
|
551
|
+
const workflow = require_execution_fence.getNestedWorkflow(mastra, parentWorkflow);
|
|
547
552
|
return workflow?.id === workflowId ? workflow : null;
|
|
548
553
|
}
|
|
549
554
|
Object.defineProperty(exports, "BackgroundTaskWorker", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $s as resolveAgentById } from "./execution-fence-B8yV_n51.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-Bqg7bsxX.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,8 +1,8 @@
|
|
|
1
|
-
import { dn as resolveSuspendedToolRunId } from "./stream-
|
|
1
|
+
import { dn as resolveSuspendedToolRunId } from "./stream-BFhCDJvz.js";
|
|
2
2
|
import "./utils-DU_pU5SK.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { d as nextAttemptStart, f as suspendEnvelope, m as unwrapSuspendData, p as toolSuspendPayload, u as BACKGROUND_TASK_WORKFLOW_ID } from "./background-tasks-
|
|
3
|
+
import { h as slimProgressChunk } from "./output-helpers-k2-48ssH.js";
|
|
4
|
+
import { Os as createWorkflow, Pc as createStep } from "./execution-fence-B8yV_n51.js";
|
|
5
|
+
import { d as nextAttemptStart, f as suspendEnvelope, m as unwrapSuspendData, p as toolSuspendPayload, u as BACKGROUND_TASK_WORKFLOW_ID } from "./background-tasks-DAu4WaCb.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-CZy8XA_q.cjs");
|
|
2
2
|
require("./utils-D-eNsgDM.cjs");
|
|
3
|
-
const require_output_helpers = require("./output-helpers-
|
|
4
|
-
const
|
|
5
|
-
const require_background_tasks = require("./background-tasks-
|
|
3
|
+
const require_output_helpers = require("./output-helpers-By5FbLpp.cjs");
|
|
4
|
+
const require_execution_fence = require("./execution-fence-fqV6FGdV.cjs");
|
|
5
|
+
const require_background_tasks = require("./background-tasks-DOmQdBVn.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() });
|
|
@@ -55,7 +55,7 @@ const WORKFLOW_STATUS_TO_PERSIST = [
|
|
|
55
55
|
* consumer of the `@internal` private fields.
|
|
56
56
|
*/
|
|
57
57
|
function buildBackgroundTaskWorkflow(manager) {
|
|
58
|
-
const runAttemptStep =
|
|
58
|
+
const runAttemptStep = require_execution_fence.createStep$1({
|
|
59
59
|
id: "run-attempt",
|
|
60
60
|
inputSchema: bodyIOSchema,
|
|
61
61
|
outputSchema: attemptOutputSchema,
|
|
@@ -206,7 +206,7 @@ function buildBackgroundTaskWorkflow(manager) {
|
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
});
|
|
209
|
-
const classifyOutcomeStep =
|
|
209
|
+
const classifyOutcomeStep = require_execution_fence.createStep$1({
|
|
210
210
|
id: "classify-outcome",
|
|
211
211
|
inputSchema: attemptOutputSchema,
|
|
212
212
|
outputSchema: bodyOutputSchema,
|
|
@@ -317,7 +317,7 @@ function buildBackgroundTaskWorkflow(manager) {
|
|
|
317
317
|
throw thrown;
|
|
318
318
|
}
|
|
319
319
|
});
|
|
320
|
-
const attemptBodyWorkflow =
|
|
320
|
+
const attemptBodyWorkflow = require_execution_fence.createWorkflow({
|
|
321
321
|
id: `${require_background_tasks.BACKGROUND_TASK_WORKFLOW_ID}__attempt`,
|
|
322
322
|
inputSchema: bodyIOSchema,
|
|
323
323
|
outputSchema: bodyOutputSchema,
|
|
@@ -328,7 +328,7 @@ function buildBackgroundTaskWorkflow(manager) {
|
|
|
328
328
|
tracingPolicy: { internal: 1 }
|
|
329
329
|
}
|
|
330
330
|
}).then(runAttemptStep).then(classifyOutcomeStep).commit();
|
|
331
|
-
return
|
|
331
|
+
return require_execution_fence.createWorkflow({
|
|
332
332
|
id: require_background_tasks.BACKGROUND_TASK_WORKFLOW_ID,
|
|
333
333
|
inputSchema,
|
|
334
334
|
outputSchema: bodyOutputSchema,
|
|
@@ -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-BFcVEbX0.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-DHFtMW8D.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
3
|
-
exports.EventedExecutionEngine =
|
|
4
|
-
exports.EventedRun =
|
|
5
|
-
exports.EventedWorkflow =
|
|
6
|
-
exports.StepExecutor =
|
|
7
|
-
exports.WorkflowEventProcessor =
|
|
8
|
-
exports.cloneStep =
|
|
9
|
-
exports.cloneWorkflow =
|
|
10
|
-
exports.createStep =
|
|
11
|
-
exports.createWorkflow =
|
|
2
|
+
const require_execution_fence = require("../../execution-fence-fqV6FGdV.cjs");
|
|
3
|
+
exports.EventedExecutionEngine = require_execution_fence.EventedExecutionEngine;
|
|
4
|
+
exports.EventedRun = require_execution_fence.EventedRun;
|
|
5
|
+
exports.EventedWorkflow = require_execution_fence.EventedWorkflow;
|
|
6
|
+
exports.StepExecutor = require_execution_fence.StepExecutor;
|
|
7
|
+
exports.WorkflowEventProcessor = require_execution_fence.WorkflowEventProcessor;
|
|
8
|
+
exports.cloneStep = require_execution_fence.cloneStep;
|
|
9
|
+
exports.cloneWorkflow = require_execution_fence.cloneWorkflow$1;
|
|
10
|
+
exports.createStep = require_execution_fence.createStep;
|
|
11
|
+
exports.createWorkflow = require_execution_fence.createWorkflow$1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Oc as EventedExecutionEngine, ks as EventedRun, As as EventedWorkflow, Is as StepExecutor, Fs as WorkflowEventProcessor, js as cloneStep, Ms as cloneWorkflow, Ns as createStep, Ps as createWorkflow } from "../../execution-fence-B8yV_n51.js";
|
|
@@ -100,8 +100,6 @@ export declare class WorkflowEventProcessor extends EventProcessor {
|
|
|
100
100
|
private runFormats;
|
|
101
101
|
private deliveryAttempts;
|
|
102
102
|
private static readonly MAX_DELIVERY_ATTEMPTS;
|
|
103
|
-
/** TTL of the lease fencing a running `workflow.step.run`; renewed every ttl/3. */
|
|
104
|
-
static STEP_FENCE_TTL_MS: number;
|
|
105
103
|
private static readonly TERMINAL_SENTINEL;
|
|
106
104
|
private pendingFailures;
|
|
107
105
|
private static readonly MAX_FAIL_PUBLISH_ATTEMPTS;
|
|
@@ -16,7 +16,7 @@ import type { ToolExecutionContext } from '../../tools/types.js';
|
|
|
16
16
|
import type { DynamicArgument } from '../../types/index.js';
|
|
17
17
|
import type { ExecutionEngine, ExecutionGraph } from '../../workflows/execution-engine.js';
|
|
18
18
|
import type { Step } from '../../workflows/step.js';
|
|
19
|
-
import type { SerializedStepFlowEntry, WorkflowConfig, WorkflowResult, StepWithComponent, WorkflowStreamEvent, WorkflowEngineType, StepParams, DefaultEngineType, StepMetadata, CreateWorkflowParams, InferSchemaOutput, NestedWorkflowParent } from '../../workflows/types.js';
|
|
19
|
+
import type { SerializedStepFlowEntry, WorkflowConfig, WorkflowResult, StepWithComponent, WorkflowStreamEvent, WorkflowEngineType, WorkflowRunState, StepParams, DefaultEngineType, StepMetadata, CreateWorkflowParams, InferSchemaOutput, NestedWorkflowParent } from '../../workflows/types.js';
|
|
20
20
|
import type { ClassifierStepOutput } from '../entry-executors/index.js';
|
|
21
21
|
import type { ClassifierStepOptions } from '../step-factories.js';
|
|
22
22
|
import { Workflow, Run } from '../workflow.js';
|
|
@@ -245,6 +245,7 @@ export declare class EventedRun<TEngineType = EventedEngineType, TSteps extends
|
|
|
245
245
|
}): Promise<WorkflowResult<TState, TInput, TOutput, TSteps, TStorageVersion>>;
|
|
246
246
|
watch(cb: (event: WorkflowStreamEvent) => void | Promise<void>): () => void;
|
|
247
247
|
watchAsync(cb: (event: WorkflowStreamEvent) => void | Promise<void>): Promise<() => void>;
|
|
248
|
+
protected _resolveTimetravelSnapshotState(snapshot: WorkflowRunState): Record<string, unknown> | undefined;
|
|
248
249
|
cancel(): Promise<void>;
|
|
249
250
|
}
|
|
250
251
|
//# sourceMappingURL=workflow.d.ts.map
|