@mastra/core 1.88.0-alpha.0 → 1.88.0-alpha.1
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_core@0.1.4/dist/knowledge-compat/index.d.ts +17 -1
- package/dist/agent/durable/index.cjs +1 -1
- package/dist/agent/durable/index.js +1 -1
- package/dist/agent/index.cjs +2 -2
- package/dist/agent/index.js +2 -2
- package/dist/agent-builder/ee/index.cjs +1 -1
- package/dist/agent-builder/ee/index.js +1 -1
- package/dist/agent-controller/index.cjs +1 -1
- package/dist/agent-controller/index.js +1 -1
- package/dist/agent-controller/model-catalog-cache.d.ts +9 -5
- package/dist/agent-controller/session.d.ts +17 -0
- package/dist/{agent-controller-NQKYmY0W.cjs → agent-controller-C-WK9bMA.cjs} +57 -53
- package/dist/{agent-controller-CQDCmsFD.js → agent-controller-Wxbc6702.js} +57 -53
- package/dist/background-tasks/index.cjs +1 -1
- package/dist/background-tasks/index.js +1 -1
- package/dist/{background-tasks-B7UygDdO.js → background-tasks-DSMkHpbu.js} +1 -1
- package/dist/{background-tasks-CeARf1DK.cjs → background-tasks-DcKNctMR.cjs} +1 -1
- package/dist/browser/index.cjs +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/{builder-Dmf04g9P.cjs → builder-CybmqbZt.cjs} +2 -2
- package/dist/{builder-CpAEmMdR.js → builder-PXwZnGYe.js} +2 -2
- package/dist/capabilities/302ai.json +194 -194
- package/dist/capabilities/abliteratedllm.json +30 -30
- package/dist/capabilities/abliteration-ai.json +6 -6
- package/dist/capabilities/above.json +18 -18
- package/dist/capabilities/adaption.json +11 -11
- package/dist/capabilities/adzuki.json +22 -22
- package/dist/capabilities/agentrouter.json +5 -5
- package/dist/capabilities/agnes.json +3 -3
- package/dist/capabilities/ai-router.json +7 -7
- package/dist/capabilities/aiand.json +23 -24
- package/dist/capabilities/aigrow.json +13 -13
- package/dist/capabilities/aimlapi.json +151 -151
- package/dist/capabilities/aipg.json +2 -2
- package/dist/capabilities/aixy.json +23 -23
- package/dist/capabilities/aki-io.json +13 -13
- package/dist/capabilities/alibaba-cn.json +99 -99
- package/dist/capabilities/alibaba-coding-plan-cn.json +3 -3
- package/dist/capabilities/alibaba-coding-plan.json +3 -3
- package/dist/capabilities/alibaba-token-plan-cn.json +48 -48
- package/dist/capabilities/alibaba-token-plan.json +48 -48
- package/dist/capabilities/alibaba.json +79 -79
- package/dist/capabilities/ambient.json +13 -13
- package/dist/capabilities/amd-tokenlab.json +2 -2
- package/dist/capabilities/amd.json +8 -8
- package/dist/capabilities/anthropic.json +32 -32
- package/dist/capabilities/anyapi.json +47 -47
- package/dist/capabilities/apiko.json +4 -4
- package/dist/capabilities/arcee.json +6 -6
- package/dist/capabilities/augure.json +5 -5
- package/dist/capabilities/auriko.json +19 -19
- package/dist/capabilities/bailing.json +4 -4
- package/dist/capabilities/baseten.json +31 -31
- package/dist/capabilities/bee.json +3 -3
- package/dist/capabilities/bothub.json +15 -15
- package/dist/capabilities/boundless.json +35 -35
- package/dist/capabilities/bumo.json +41 -41
- package/dist/capabilities/byteplus.json +28 -28
- package/dist/capabilities/cheapaimodel.json +9 -9
- package/dist/capabilities/cheapest-token.json +29 -29
- package/dist/capabilities/chutes.json +36 -36
- package/dist/capabilities/cline-pass.json +28 -28
- package/dist/capabilities/cloudcode.json +5 -5
- package/dist/capabilities/cloudferro-sherlock.json +4 -4
- package/dist/capabilities/cloudflare-workers-ai.json +12 -12
- package/dist/capabilities/commandcode.json +150 -150
- package/dist/capabilities/concentrate.json +282 -282
- package/dist/capabilities/cortecs.json +105 -105
- package/dist/capabilities/crossmodel.json +187 -187
- package/dist/capabilities/crusoe.json +19 -19
- package/dist/capabilities/daoxe.json +8 -8
- package/dist/capabilities/databricks.json +133 -133
- package/dist/capabilities/deepinfra.json +92 -92
- package/dist/capabilities/deepseek.json +3 -3
- package/dist/capabilities/digitalocean.json +115 -115
- package/dist/capabilities/dothoosh.json +27 -27
- package/dist/capabilities/doubleword.json +24 -24
- package/dist/capabilities/edenai.json +293 -284
- package/dist/capabilities/empiriolabs.json +161 -161
- package/dist/capabilities/engy.json +23 -23
- package/dist/capabilities/entrim.json +4 -4
- package/dist/capabilities/evroc.json +19 -19
- package/dist/capabilities/ezkielyna.json +6 -6
- package/dist/capabilities/fastrouter.json +94 -94
- package/dist/capabilities/fireworks-ai.json +102 -91
- package/dist/capabilities/freemodel.json +12 -12
- package/dist/capabilities/friendli.json +11 -11
- package/dist/capabilities/frogbot.json +89 -89
- package/dist/capabilities/gisoo.json +19 -19
- package/dist/capabilities/gmicloud.json +18 -18
- package/dist/capabilities/google.json +52 -52
- package/dist/capabilities/graphn.json +9 -9
- package/dist/capabilities/greenpt.json +34 -34
- package/dist/capabilities/groq.json +2 -2
- package/dist/capabilities/helicone.json +74 -74
- package/dist/capabilities/hetzner.json +4 -4
- package/dist/capabilities/hostinger-router.json +10 -10
- package/dist/capabilities/hpc-ai.json +9 -9
- package/dist/capabilities/huawei-maas.json +12 -12
- package/dist/capabilities/hubris.json +29 -29
- package/dist/capabilities/huggingface.json +93 -85
- package/dist/capabilities/humain.json +2 -2
- package/dist/capabilities/hyper.json +26 -26
- package/dist/capabilities/impossibl.json +160 -160
- package/dist/capabilities/inception.json +2 -2
- package/dist/capabilities/inceptron.json +8 -8
- package/dist/capabilities/inco.json +3 -3
- package/dist/capabilities/infer.json +15 -15
- package/dist/capabilities/inferall.json +6 -6
- package/dist/capabilities/inference-coop.json +4 -4
- package/dist/capabilities/inferenceapis.json +22 -22
- package/dist/capabilities/inferris.json +3 -3
- package/dist/capabilities/infersia.json +12 -12
- package/dist/capabilities/inferx.json +2 -2
- package/dist/capabilities/infomaniak.json +2 -2
- package/dist/capabilities/io-net.json +4 -4
- package/dist/capabilities/isoquant.json +4 -4
- package/dist/capabilities/iteracompute.json +36 -36
- package/dist/capabilities/jalapeno.json +10 -10
- package/dist/capabilities/jiekou.json +31 -31
- package/dist/capabilities/joingonka.json +4 -4
- package/dist/capabilities/jzstoken.json +44 -44
- package/dist/capabilities/keln.json +21 -21
- package/dist/capabilities/kenari.json +124 -124
- package/dist/capabilities/kilo.json +673 -633
- package/dist/capabilities/kimchi.json +19 -19
- package/dist/capabilities/kimi-code-plan-cn.json +5 -5
- package/dist/capabilities/kimi-code-plan-global.json +5 -5
- package/dist/capabilities/kitani.json +6 -6
- package/dist/capabilities/klavo.json +25 -25
- package/dist/capabilities/korouter.json +32 -32
- package/dist/capabilities/kunavo.json +6 -6
- package/dist/capabilities/liquid.json +8 -8
- package/dist/capabilities/llmgateway-providers.json +934 -932
- package/dist/capabilities/llmgateway.json +331 -329
- package/dist/capabilities/llmtr.json +18 -18
- package/dist/capabilities/longcat.json +2 -2
- package/dist/capabilities/lowrouter.json +65 -65
- package/dist/capabilities/lyceum.json +14 -14
- package/dist/capabilities/melious.json +8 -8
- package/dist/capabilities/merge-gateway.json +301 -301
- package/dist/capabilities/meta.json +12 -12
- package/dist/capabilities/mistral.json +26 -18
- package/dist/capabilities/mixlayer.json +3 -3
- package/dist/capabilities/modal.json +5 -5
- package/dist/capabilities/model-oracle-ai.json +24 -24
- package/dist/capabilities/modelis.json +17 -17
- package/dist/capabilities/modelscope.json +2 -2
- package/dist/capabilities/modular.json +16 -16
- package/dist/capabilities/moneo.json +5 -5
- package/dist/capabilities/morph.json +17 -17
- package/dist/capabilities/munito-eu.json +8 -8
- package/dist/capabilities/munito.json +8 -8
- package/dist/capabilities/nan.json +32 -32
- package/dist/capabilities/nano-gpt.json +578 -572
- package/dist/capabilities/nearai.json +123 -123
- package/dist/capabilities/nebius.json +32 -32
- package/dist/capabilities/neon.json +123 -123
- package/dist/capabilities/neuralwatt.json +36 -36
- package/dist/capabilities/nokeep.json +5 -5
- package/dist/capabilities/novita-ai.json +122 -122
- package/dist/capabilities/nvidia.json +24 -24
- package/dist/capabilities/oathbreaker.json +3 -3
- package/dist/capabilities/obscurify.json +33 -33
- package/dist/capabilities/oci.json +4 -4
- package/dist/capabilities/ofox.json +275 -275
- package/dist/capabilities/ollama-cloud.json +55 -55
- package/dist/capabilities/openai.json +57 -57
- package/dist/capabilities/opencode-go.json +91 -82
- package/dist/capabilities/openreason.json +6 -6
- package/dist/capabilities/openrouter.json +543 -543
- package/dist/capabilities/opper.json +30 -30
- package/dist/capabilities/orcarouter.json +273 -273
- package/dist/capabilities/outerlabs.json +33 -33
- package/dist/capabilities/ovhcloud.json +18 -18
- package/dist/capabilities/pareto.json +4 -4
- package/dist/capabilities/perplexity-agent.json +78 -78
- package/dist/capabilities/perplexity.json +2 -2
- package/dist/capabilities/phala.json +38 -38
- package/dist/capabilities/poe.json +138 -138
- package/dist/capabilities/poolside.json +3 -3
- package/dist/capabilities/powerspring.json +11 -11
- package/dist/capabilities/primalabs.json +15 -15
- package/dist/capabilities/prime.json +117 -117
- package/dist/capabilities/privatemode-ai.json +6 -6
- package/dist/capabilities/proxystacks.json +3 -3
- package/dist/capabilities/qiniu-ai.json +13 -13
- package/dist/capabilities/refuseless.json +4 -4
- package/dist/capabilities/regolo-ai.json +8 -8
- package/dist/capabilities/requesty.json +200 -200
- package/dist/capabilities/ruapi.json +19 -19
- package/dist/capabilities/runcrate.json +12 -12
- package/dist/capabilities/runinfra.json +17 -17
- package/dist/capabilities/sakana.json +7 -7
- package/dist/capabilities/sambanova.json +9 -9
- package/dist/capabilities/sandbase.json +30 -30
- package/dist/capabilities/sarvam.json +8 -8
- package/dist/capabilities/scaleway.json +16 -16
- package/dist/capabilities/scnet-token-plan.json +14 -14
- package/dist/capabilities/scx-ai.json +20 -20
- package/dist/capabilities/sensenova.json +10 -10
- package/dist/capabilities/siliconflow-cn.json +50 -50
- package/dist/capabilities/siliconflow.json +66 -66
- package/dist/capabilities/snowflake-cortex.json +19 -19
- package/dist/capabilities/sokkan.json +5 -5
- package/dist/capabilities/sparrowcodes.json +20 -20
- package/dist/capabilities/standardcompute.json +80 -80
- package/dist/capabilities/steadyrouter.json +34 -34
- package/dist/capabilities/stepfun-ai-step-plan.json +7 -7
- package/dist/capabilities/stepfun-ai.json +7 -7
- package/dist/capabilities/stepfun-step-plan.json +7 -7
- package/dist/capabilities/stepfun.json +7 -7
- package/dist/capabilities/stepping-stone.json +19 -19
- package/dist/capabilities/synthetic.json +8 -8
- package/dist/capabilities/synthorai.json +25 -25
- package/dist/capabilities/teamorouter.json +16 -16
- package/dist/capabilities/teapot-router.json +13 -13
- package/dist/capabilities/tencent-token-plan-intl.json +24 -24
- package/dist/capabilities/tencent-token-plan.json +39 -39
- package/dist/capabilities/tencent-tokenhub.json +47 -47
- package/dist/capabilities/tensorx.json +50 -50
- package/dist/capabilities/tenstorrent.json +2 -2
- package/dist/capabilities/the-grid-ai.json +26 -26
- package/dist/capabilities/thinkingmachines.json +64 -64
- package/dist/capabilities/tinfoil.json +10 -10
- package/dist/capabilities/toapis.json +2 -2
- package/dist/capabilities/togetherai.json +35 -35
- package/dist/capabilities/tokengo.json +26 -26
- package/dist/capabilities/tokenharbor.json +205 -205
- package/dist/capabilities/tokenify.json +9 -9
- package/dist/capabilities/trustedrouter.json +6 -6
- package/dist/capabilities/trustedtokens.json +19 -19
- package/dist/capabilities/umans-ai-coding-plan.json +17 -17
- package/dist/capabilities/umans-ai.json +13 -13
- package/dist/capabilities/unrestricted.json +4 -4
- package/dist/capabilities/uplinkswitch.json +21 -21
- package/dist/capabilities/vancine.json +17 -17
- package/dist/capabilities/vercel.json +584 -580
- package/dist/capabilities/verda.json +4 -4
- package/dist/capabilities/vivgrid.json +67 -67
- package/dist/capabilities/volcengine-coding-plan.json +21 -21
- package/dist/capabilities/volcengine.json +27 -27
- package/dist/capabilities/vultr.json +12 -12
- package/dist/capabilities/wafer.ai.json +20 -20
- package/dist/capabilities/wally.json +11 -11
- package/dist/capabilities/wandb.json +16 -16
- package/dist/capabilities/watt.json +25 -25
- 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 +3 -3
- package/dist/capabilities/xpersona.json +11 -11
- package/dist/capabilities/xxapi.json +23 -23
- package/dist/capabilities/zai-coding-plan.json +18 -18
- package/dist/capabilities/zai.json +31 -31
- package/dist/capabilities/zenifra.json +30 -30
- package/dist/capabilities/zenmux.json +191 -191
- package/dist/capabilities/zerogpu.json +10 -10
- package/dist/capabilities/zhipuai.json +30 -30
- package/dist/capabilities/zro.json +7 -7
- package/dist/channels/index.cjs +2 -2
- package/dist/channels/index.js +2 -2
- package/dist/{channels-BQ--aLCA.js → channels-Cxy4jW11.js} +1 -1
- package/dist/{channels-CTCBsS5M.cjs → channels-DNOI029U.cjs} +1 -1
- package/dist/coding-agent/index.cjs +1 -1
- package/dist/coding-agent/index.js +1 -1
- package/dist/{constants-Dro9fuhk.js → constants-C2Q-ZI5d.js} +6 -0
- package/dist/{constants-B2FVV_2e.cjs → constants-DPHwzvan.cjs} +6 -0
- 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 +1073 -1068
- package/dist/docs/references/docs-channels.md +42 -1
- package/dist/docs/references/docs-develop.md +2 -0
- package/dist/docs/references/docs-evals-experiments.md +2 -0
- package/dist/docs/references/docs-guides-build-an-eval-loop.md +5 -1
- package/dist/docs/references/docs-guides-overview.md +2 -1
- package/dist/docs/references/docs-knowledge-importers.md +11 -1
- package/dist/docs/references/docs-knowledge-scopes-and-access.md +26 -0
- package/dist/docs/references/docs-memory-message-history.md +24 -16
- package/dist/docs/references/docs-memory-overview.md +21 -17
- package/dist/docs/references/docs-sandbox-overview.md +12 -10
- package/dist/docs/references/docs-workflows-control-flow.md +20 -0
- package/dist/docs/references/integrations-observability-arthur.md +1 -1
- package/dist/docs/references/reference-agent-controller-agent-controller-class.md +1 -1
- package/dist/docs/references/reference-agent-controller-session.md +9 -0
- package/dist/docs/references/reference-knowledge-knowledge-class.md +1 -1
- package/dist/docs/references/reference-knowledge-knowledge-tools.md +1 -1
- package/dist/docs/references/reference-observability-tracing-bridges-datadog.md +12 -11
- package/dist/docs/references/reference-processors-processor-interface.md +1 -1
- package/dist/docs/references/reference-storage-overview.md +1 -1
- package/dist/docs/references/reference-voice-overview.md +0 -27
- package/dist/docs/references/reference-workflows-step.md +1 -1
- package/dist/docs/references/reference-workspace-workspace-class.md +3 -1
- package/dist/evals/index.cjs +2 -2
- package/dist/evals/index.js +2 -2
- package/dist/evals/scoreTraces/index.cjs +2 -2
- package/dist/evals/scoreTraces/index.js +2 -2
- package/dist/{execution-fence-C8Q0wWkG.cjs → execution-fence-C1nozqra.cjs} +284 -97
- package/dist/{execution-fence-DGFyUV5h.js → execution-fence-pJB0qqFJ.js} +273 -98
- 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/importers/local-host.d.ts +2 -1
- package/dist/knowledge/importers/sink.d.ts +6 -0
- package/dist/knowledge/importers/types.d.ts +5 -0
- package/dist/knowledge/index.cjs +105 -20
- package/dist/knowledge/index.js +105 -21
- package/dist/knowledge/links.d.ts +19 -6
- package/dist/llm/index.cjs +3 -3
- package/dist/llm/index.js +3 -3
- package/dist/llm/model/gateways/mastra.d.ts +19 -0
- package/dist/llm/model/gateways/refreshing-cache.d.ts +52 -0
- package/dist/llm/model/provider-types.generated.d.ts +8054 -8040
- package/dist/{llm-RIAYOAtD.cjs → llm-VhPqyULU.cjs} +2 -2
- package/dist/{llm-YNjDFSui.js → llm-_z1lIfCN.js} +2 -2
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +2 -2
- package/dist/loop/workflows/agentic-execution/background-task-check-step.d.ts +4 -0
- package/dist/loop/workflows/agentic-execution/goal-step.d.ts +4 -0
- package/dist/loop/workflows/agentic-execution/is-task-complete-step.d.ts +4 -0
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts +4 -0
- package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts +2 -0
- package/dist/loop/workflows/schema.d.ts +13 -0
- package/dist/{manager-Y-jYcS7T.cjs → manager-BT70SgFz.cjs} +3 -3
- package/dist/{manager-DZhtdV6Q.js → manager-C3Kx39p_.js} +3 -3
- package/dist/mastra/index.cjs +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/{mastra-B2-HBq1-.cjs → mastra-CQGD2RoN.cjs} +16 -16
- package/dist/{mastra-BJ54VxOO.js → mastra-fJ0iKYGP.js} +16 -16
- package/dist/memory/index.cjs +2 -2
- package/dist/memory/index.js +2 -2
- package/dist/{model-lzZPXaEV.cjs → model-D9NDbf-e.cjs} +1 -1
- package/dist/{model-cS3d5rmF.js → model-DmBDBf-q.js} +1 -1
- package/dist/{netlify-1lti1j4Z.cjs → netlify-DNaNhels.cjs} +1 -1
- package/dist/{netlify-ClBjc0Xg.js → netlify-_yV5Nwud.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-C_XQJvu2.js → provider-registry-C4tv__fr.js} +19498 -19296
- package/dist/{provider-registry-C6jd3Uxi.cjs → provider-registry-_BUQuSKb.cjs} +19253 -19033
- package/dist/provider-registry.json +19144 -19115
- package/dist/{registry-generator-DBrTbThj.js → registry-generator-CenhQnEi.js} +1 -1
- package/dist/{registry-generator-BYdAlox6.cjs → registry-generator-D7lsLJC-.cjs} +1 -1
- package/dist/{rehydrate-4xHubfOY.js → rehydrate-CuWN_5No.js} +2 -2
- package/dist/{rehydrate-BtwY0ima.cjs → rehydrate-SpC_gJCY.cjs} +2 -2
- package/dist/relevance/index.cjs +2 -2
- package/dist/relevance/index.js +2 -2
- package/dist/storage/constants.cjs +1 -1
- package/dist/storage/constants.js +1 -1
- package/dist/storage/domains/knowledge/base.d.ts +11 -0
- package/dist/storage/domains/knowledge/inmemory.d.ts +1 -0
- package/dist/storage/domains/knowledge/pages-inmemory.d.ts +4 -0
- package/dist/storage/domains/knowledge/pages.d.ts +1 -1
- package/dist/storage/domains/observability/tracing.d.ts +12 -0
- package/dist/storage/index.cjs +4 -3
- package/dist/storage/index.js +4 -4
- package/dist/stream/index.cjs +2 -2
- package/dist/stream/index.js +2 -2
- package/dist/{stream-H_wVxqdK.js → stream-BfSwqzPi.js} +1 -1
- package/dist/{stream-DqKDB3nL.cjs → stream-CW3d1Xg6.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-DvZcOxWe.js → tool-loop-agent-B4_o4-Me.js} +3 -3
- package/dist/{tool-loop-agent-D4gSdYuN.cjs → tool-loop-agent-JN_oKyfY.cjs} +3 -3
- package/dist/{utils-Dd4m7z13.cjs → utils-Bq606mC8.cjs} +1 -1
- package/dist/{utils-h5k_ChdS.js → utils-CnpMuTyD.js} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/{validate-u6_TUYSo.cjs → validate-CFv6HWXx.cjs} +1 -1
- package/dist/{validate-DQB9spZ1.js → validate-Db2C7Sj_.js} +1 -1
- package/dist/vector/index.cjs +1 -1
- package/dist/vector/index.js +1 -1
- package/dist/worker/index.cjs +1 -1
- package/dist/worker/index.js +1 -1
- package/dist/{worker-D-cq8McN.cjs → worker-CNIBQPQy.cjs} +2 -2
- package/dist/{worker-0F7Nukyf.cjs → worker-IZeSOZjg.cjs} +2 -2
- package/dist/{worker-DmUkyJY_.js → worker-UXFAgWOK.js} +2 -2
- package/dist/{worker-DWOK2M_5.js → worker-X0fAJfcx.js} +2 -2
- package/dist/{workflow-DXE15e-w.cjs → workflow-CMLLlVDc.cjs} +3 -3
- package/dist/{workflow-DamOke3z.js → workflow-DfXq2p2f.js} +3 -3
- package/dist/workflows/builder/index.cjs +1 -1
- package/dist/workflows/builder/index.js +1 -1
- package/dist/workflows/evented/index.cjs +1 -1
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +4 -4
- package/dist/workflows/index.js +4 -4
- package/dist/workspace/tools/media.d.ts +2 -2
- package/package.json +3 -3
- package/src/llm/model/provider-types.generated.d.ts +8054 -8040
|
@@ -338,10 +338,26 @@ export interface KnowledgePagesCore {
|
|
|
338
338
|
export declare function createKnowledgePagesCoreLoader(features: ReadonlySet<string>, loadStorageModule: () => Promise<unknown>): () => Promise<KnowledgePagesCore>;
|
|
339
339
|
/** Most words one keyword search uses; every word adds a substring check per page in each store. */
|
|
340
340
|
export declare const KNOWLEDGE_SEARCH_MAX_WORDS = 16;
|
|
341
|
+
/**
|
|
342
|
+
* Longest search word, in characters (code points). Every store scans page text for each word, so a
|
|
343
|
+
* longer word only makes that scan slower; no real word or identifier needs more.
|
|
344
|
+
*/
|
|
345
|
+
export declare const KNOWLEDGE_SEARCH_MAX_WORD_LENGTH = 128;
|
|
346
|
+
/**
|
|
347
|
+
* A keyword search the store refuses, such as one with a word over
|
|
348
|
+
* {@link KNOWLEDGE_SEARCH_MAX_WORD_LENGTH} characters. Recognise it by `name`; adapters bundle their
|
|
349
|
+
* own copy.
|
|
350
|
+
* @experimental
|
|
351
|
+
*/
|
|
352
|
+
export declare class KnowledgeInvalidSearchError extends Error {
|
|
353
|
+
constructor(message: string);
|
|
354
|
+
}
|
|
341
355
|
/**
|
|
342
356
|
* Keyword-search words: the query split on whitespace, lowercased, deduplicated, keeping the first
|
|
343
357
|
* {@link KNOWLEDGE_SEARCH_MAX_WORDS}. A hit needs at least one of them (as a case-insensitive
|
|
344
|
-
* substring); an empty list means the search returns nothing.
|
|
358
|
+
* substring); an empty list means the search returns nothing. Throws
|
|
359
|
+
* {@link KnowledgeInvalidSearchError} for any word over {@link KNOWLEDGE_SEARCH_MAX_WORD_LENGTH}
|
|
360
|
+
* characters rather than dropping or cutting it, which would match the wrong pages.
|
|
345
361
|
*/
|
|
346
362
|
export declare function knowledgeSearchWords(query: string): string[];
|
|
347
363
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_execution_fence = require("../../execution-fence-
|
|
2
|
+
const require_execution_fence = require("../../execution-fence-C1nozqra.cjs");
|
|
3
3
|
const require_observability = require("../../observability-VaoaeadK.cjs");
|
|
4
4
|
// src/agent/durable/durable-agent.ts
|
|
5
5
|
var DurableAgent = class extends require_execution_fence.Agent {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as modelConfigSchema, A as detachFullStreamOnEnd, B as serializeToolsMetadata, Bs as
|
|
1
|
+
import { $ as modelConfigSchema, $s as resolveTool, A as detachFullStreamOnEnd, B as serializeToolsMetadata, Bs as createDurableAgentStream, Cc as AGENT_CONTROL_TOPIC, D as prepareForDurableExecution, E as normalizeResumeGenerateArgs, Ec as AgentStreamEventTypes, F as createDurableToolCallStep, G as resolveDurableToolCallConcurrency, Gs as emitStepFinishEvent, Hs as emitChunkEvent, I as createWorkflowInput, J as createBaseIterationStateUpdate, Js as diffResponseMessages, K as buildStepRecord, Ks as emitStepStartEvent, L as serializeDurableOptions, M as createDurableGoalStep, N as createDurableIsTaskCompleteStep, O as applyReservedMemoryContextKeys, P as createDurableLLMMappingStep, Pt as validateModelTimeoutSettings, Q as durableAgenticOutputSchema, Qs as resolveRuntimeDependencies, R as serializeDurableState, Sc as DurableStepIds, T as Agent, Tc as AgentControlEventTypes, Us as emitErrorEvent, V as createDurableLLMExecutionStep, Vs as emitAbortEvent, W as createDurableBackgroundTaskCheckStep, Ws as emitFinishEvent, X as baseDurableAgenticInputSchema, Xs as resolveInternalState, Y as accumulatedUsageSchema, Ys as rebuildRunToolsFromMastra, Z as baseIterationStateSchema, Zs as resolveModel, _c as liveSegmentSpan, _t as untilIdleHandlesBackgroundTask, at as runResumeDurableStreamUntilIdle, bc as DURABLE_STOP_WHEN_ERROR_ID, ct as readRunDeadline, dc as globalRunRegistry, dt as requestAcknowledgedAbort, ec as toolRequiresApproval, et as modelListEntrySchema, ft as subscribeToAbortRequests, gc as endFailedSegmentSpans, gt as getScopeStreamSlot, hc as carrySegmentSpans, ht as getRunStreamSlot, i as agentThreadStreamRuntime, ic as RunRegistry, it as runDurableStreamUntilIdle, j as createDurableAgenticWorkflow, k as persistDurableRunInput, lt as AgentStreamBus, mc as takeRunScorerInstances, nc as DURABLE_CONTEXT_SEGMENT_KEY, nt as runDurableFinishSideEffects, oc as deleteRunRegistryEntry, ot as RUN_DEADLINE_KEY, pc as setRunRegistryEntry, pt as createRunAbortController, q as calculateAccumulatedUsage, qs as emitSuspendedEvent, rc as ExtendedRunRegistry, rt as loadRunStoredMessages, sc as endRunSpansWithError, st as ensureRemoteAbortListener, t as __resetExecutionFencesForTests, tt as executeDurableAgentScorers, uc as getRunRegistryEntry, ut as publishAbortRequest, vc as segmentEndedBySuspension, vt as pruneAgentLoopSnapshot, wc as AGENT_STREAM_TOPIC, xc as DurableAgentDefaults, yc as segmentSpanData, z as serializeModelConfig } from "../../execution-fence-pJB0qqFJ.js";
|
|
2
2
|
import { a as agentLoopTermination, o as executionFailureTermination } from "../../observability-DPDWibyH.js";
|
|
3
3
|
// src/agent/durable/durable-agent.ts
|
|
4
4
|
var DurableAgent = class extends Agent {
|
package/dist/agent/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_stream = require("../stream-
|
|
3
|
-
const require_execution_fence = require("../execution-fence-
|
|
2
|
+
const require_stream = require("../stream-CW3d1Xg6.cjs");
|
|
3
|
+
const require_execution_fence = require("../execution-fence-C1nozqra.cjs");
|
|
4
4
|
const require_message_list = require("../message-list-C0F2sDNC.cjs");
|
|
5
5
|
const require_signals = require("../signals-CWxAMEmE.cjs");
|
|
6
6
|
const require_to_prompt = require("../to-prompt-CG-LyaBY.cjs");
|
package/dist/agent/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { dn as resolveSuspendedToolRunId, fn as resolveThreadIdFromArgs, hn as tryStreamWithJsonFallback, l as TripWire, mn as tryGenerateWithJsonFallback, pn as supportedLanguageModelSpecifications, un as isSupportedLanguageModel } from "../stream-
|
|
2
|
-
import { C as mergeAgentPersona,
|
|
1
|
+
import { dn as resolveSuspendedToolRunId, fn as resolveThreadIdFromArgs, hn as tryStreamWithJsonFallback, l as TripWire, mn as tryGenerateWithJsonFallback, pn as supportedLanguageModelSpecifications, un as isSupportedLanguageModel } from "../stream-BfSwqzPi.js";
|
|
2
|
+
import { C as mergeAgentPersona, Ds as getGoalActivityDurationMs, S as MAX_FS_SUBAGENT_DEPTH, T as Agent, Ul as hasResumableStreams, Wl as isDurableAgentLike, b as agentInstructions, bt as resolveDeclineReason, uu as isAgentCompatible, w as AGENT_RESUME_CLAIM_STALE_MS, x as assembleAgentFromFsEntry, y as agentConfig, yt as DEFAULT_TOOL_DECLINE_REASON } from "../execution-fence-pJB0qqFJ.js";
|
|
3
3
|
import { Q as TypeDetector, n as MessageList, t as convertMessages } from "../message-list-RgFlLrxG.js";
|
|
4
4
|
import { a as isCreatedAgentSignal, c as isUserAuthoredMessage, d as signalSpanAttributes, f as signalToDataPartFormat, h as signalToXmlMarkup, i as getMessageAuthor, l as mastraDBMessageToSignal, m as signalToMessage, n as createSignal, o as isMastraSignalMessage, p as signalToMastraDBMessage, r as dataPartToSignal, s as isTransientSignalMessage, t as createMessageSignal, u as resolveDeliveryAttributes } from "../signals-CqR_iWkg.js";
|
|
5
5
|
import { n as aiV5ModelMessageToV2PromptMessage } from "../to-prompt-CMlVGYxC.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_provider_registry = require("../../provider-registry-
|
|
2
|
+
const require_provider_registry = require("../../provider-registry-_BUQuSKb.cjs");
|
|
3
3
|
// src/agent-builder/ee/types.ts
|
|
4
4
|
/**
|
|
5
5
|
* Default-on values for {@link AgentFeatures}. `browser` is defaulted
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as getRegisteredProviders, o as isProviderRegistered, u as parseModelString } from "../../provider-registry-
|
|
1
|
+
import { a as getRegisteredProviders, o as isProviderRegistered, u as parseModelString } from "../../provider-registry-C4tv__fr.js";
|
|
2
2
|
// src/agent-builder/ee/types.ts
|
|
3
3
|
/**
|
|
4
4
|
* Default-on values for {@link AgentFeatures}. `browser` is defaulted
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_state_processor = require("../state-processor-DaSmhVUX.cjs");
|
|
3
3
|
const require_tools = require("../tools-DZoVfKPl.cjs");
|
|
4
|
-
const require_agent_controller = require("../agent-controller-
|
|
4
|
+
const require_agent_controller = require("../agent-controller-C-WK9bMA.cjs");
|
|
5
5
|
exports.AgentController = require_agent_controller.AgentController;
|
|
6
6
|
exports.MODEL_PERSISTENCE_VERSION = require_agent_controller.MODEL_PERSISTENCE_VERSION;
|
|
7
7
|
exports.MODEL_PERSISTENCE_VERSION_KEY = require_agent_controller.MODEL_PERSISTENCE_VERSION_KEY;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { f as taskCheckTool, h as taskWriteTool, m as taskUpdateTool, o as assignTaskIds, p as taskCompleteTool } from "../state-processor-B_KsS82m.js";
|
|
2
2
|
import { o as askUserTool, t as submitPlanTool } from "../tools-FwJyNoyg.js";
|
|
3
|
-
import { a as Session, c as defaultDisplayState, d as SessionStartupCancelledError, f as isSessionNotStartedError, i as MODEL_PERSISTENCE_VERSION_KEY, l as defaultOMProgressState, n as parseSubagentMeta, o as getSuspensionAddressKey, p as isSessionStartupCancelledError, r as MODEL_PERSISTENCE_VERSION, s as migratePersistedModelSelection, t as AgentController, u as SessionNotStartedError } from "../agent-controller-
|
|
3
|
+
import { a as Session, c as defaultDisplayState, d as SessionStartupCancelledError, f as isSessionNotStartedError, i as MODEL_PERSISTENCE_VERSION_KEY, l as defaultOMProgressState, n as parseSubagentMeta, o as getSuspensionAddressKey, p as isSessionStartupCancelledError, r as MODEL_PERSISTENCE_VERSION, s as migratePersistedModelSelection, t as AgentController, u as SessionNotStartedError } from "../agent-controller-Wxbc6702.js";
|
|
4
4
|
export { AgentController, MODEL_PERSISTENCE_VERSION, MODEL_PERSISTENCE_VERSION_KEY, Session, SessionNotStartedError, SessionStartupCancelledError, askUserTool, assignTaskIds, defaultDisplayState, defaultOMProgressState, getSuspensionAddressKey, isSessionNotStartedError, isSessionStartupCancelledError, migratePersistedModelSelection, parseSubagentMeta, submitPlanTool, taskCheckTool, taskCompleteTool, taskUpdateTool, taskWriteTool };
|
|
@@ -2,11 +2,15 @@ import type { GatewayManager, GatewayModel, MastraModelGatewayInterface } from '
|
|
|
2
2
|
/**
|
|
3
3
|
* Model catalog cache with two refresh speeds.
|
|
4
4
|
*
|
|
5
|
-
* Remote gateways download public catalogs (models.dev's is ~6 MB).
|
|
6
|
-
*
|
|
7
|
-
* call refreshes it in the background and keeps serving the last good
|
|
8
|
-
* including when the refresh fails. A call waits for a remote gateway
|
|
9
|
-
* while it has nothing to serve: before its first successful download.
|
|
5
|
+
* Remote gateways download public catalogs (models.dev's is ~6 MB). Each is
|
|
6
|
+
* kept in a {@link RefreshingCache}: once older than {@link CATALOG_REFRESH_MS},
|
|
7
|
+
* the next call refreshes it in the background and keeps serving the last good
|
|
8
|
+
* result, including when the refresh fails. A call waits for a remote gateway
|
|
9
|
+
* only while it has nothing to serve: before its first successful download.
|
|
10
|
+
*
|
|
11
|
+
* The Mastra Gateway caches its own list on the same schedule, so it is read
|
|
12
|
+
* on every build instead of being cached twice; its download settling counts
|
|
13
|
+
* as a change, like a remote gateway's.
|
|
10
14
|
*
|
|
11
15
|
* Everything else (configured gateways and per-provider auth) is rebuilt at
|
|
12
16
|
* most every {@link MODEL_CATALOG_TTL_MS}, or on the next call after
|
|
@@ -197,6 +197,14 @@ export interface ThreadDataStore {
|
|
|
197
197
|
threadId: string;
|
|
198
198
|
key: string;
|
|
199
199
|
}): Promise<void>;
|
|
200
|
+
/**
|
|
201
|
+
* Write several values into a thread's metadata in one write, queued behind the thread's other
|
|
202
|
+
* metadata writes. An `undefined` value deletes its key. Rejects when storage rejects.
|
|
203
|
+
*/
|
|
204
|
+
setMetadataValues(input: {
|
|
205
|
+
threadId: string;
|
|
206
|
+
values: Record<string, unknown>;
|
|
207
|
+
}): Promise<void>;
|
|
200
208
|
/** Whether the host has thread storage configured. When false, lifecycle persistence is a no-op. */
|
|
201
209
|
hasStorage(): boolean;
|
|
202
210
|
/** Persist a new or updated thread row. No-op when storage is unavailable. */
|
|
@@ -436,6 +444,15 @@ export declare class SessionThread {
|
|
|
436
444
|
key: string;
|
|
437
445
|
value: unknown;
|
|
438
446
|
}): Promise<void>;
|
|
447
|
+
/**
|
|
448
|
+
* Persist several settings to a specific thread in one write: they all land or none do.
|
|
449
|
+
* An `undefined` value deletes its setting. Unlike {@link setSettingOn}, rejects when storage
|
|
450
|
+
* rejects, for a caller that must not report success on a lost write.
|
|
451
|
+
*/
|
|
452
|
+
setSettingsOn({ threadId, settings }: {
|
|
453
|
+
threadId: string;
|
|
454
|
+
settings: Record<string, unknown>;
|
|
455
|
+
}): Promise<void>;
|
|
439
456
|
/** Delete a setting (metadata value) for the active thread. */
|
|
440
457
|
deleteSetting({ key }: {
|
|
441
458
|
key: string;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
const require_execution_fence = require("./execution-fence-
|
|
1
|
+
const require_execution_fence = require("./execution-fence-C1nozqra.cjs");
|
|
2
2
|
const require_message_list = require("./message-list-C0F2sDNC.cjs");
|
|
3
3
|
const require_signals = require("./signals-CWxAMEmE.cjs");
|
|
4
4
|
const require_ee_iTj2bRDt = require("./ee-iTj2bRDt-D3-QLGDF.cjs");
|
|
5
|
-
const require_channels = require("./channels-
|
|
6
|
-
const require_llm = require("./llm-
|
|
7
|
-
const require_mastra = require("./mastra-
|
|
8
|
-
const require_stream = require("./stream-
|
|
5
|
+
const require_channels = require("./channels-DNOI029U.cjs");
|
|
6
|
+
const require_llm = require("./llm-VhPqyULU.cjs");
|
|
7
|
+
const require_mastra = require("./mastra-CQGD2RoN.cjs");
|
|
8
|
+
const require_stream = require("./stream-CW3d1Xg6.cjs");
|
|
9
9
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
10
10
|
const require_dynamic_argument = require("./dynamic-argument-CUc1BBOS.cjs");
|
|
11
|
+
const require_provider_registry = require("./provider-registry-_BUQuSKb.cjs");
|
|
11
12
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
12
13
|
const require_utils_safe_stringify = require("./utils/safe-stringify.cjs");
|
|
13
14
|
const require_workspace = require("./workspace-BQD4tcQi.cjs");
|
|
@@ -51,18 +52,18 @@ function isSessionNotStartedError(error) {
|
|
|
51
52
|
* short.
|
|
52
53
|
*/
|
|
53
54
|
const MODEL_CATALOG_TTL_MS = 1e4;
|
|
54
|
-
/** How long a downloaded remote catalog (models.dev, Netlify, ...) is served before a call refreshes it in the background. */
|
|
55
|
-
const REMOTE_CATALOG_REFRESH_MS = 3e5;
|
|
56
|
-
/** After a remote catalog fails, how long its last known providers are served before the next try. */
|
|
57
|
-
const REMOTE_CATALOG_RETRY_MS = 6e4;
|
|
58
55
|
/**
|
|
59
56
|
* Model catalog cache with two refresh speeds.
|
|
60
57
|
*
|
|
61
|
-
* Remote gateways download public catalogs (models.dev's is ~6 MB).
|
|
62
|
-
*
|
|
63
|
-
* call refreshes it in the background and keeps serving the last good
|
|
64
|
-
* including when the refresh fails. A call waits for a remote gateway
|
|
65
|
-
* while it has nothing to serve: before its first successful download.
|
|
58
|
+
* Remote gateways download public catalogs (models.dev's is ~6 MB). Each is
|
|
59
|
+
* kept in a {@link RefreshingCache}: once older than {@link CATALOG_REFRESH_MS},
|
|
60
|
+
* the next call refreshes it in the background and keeps serving the last good
|
|
61
|
+
* result, including when the refresh fails. A call waits for a remote gateway
|
|
62
|
+
* only while it has nothing to serve: before its first successful download.
|
|
63
|
+
*
|
|
64
|
+
* The Mastra Gateway caches its own list on the same schedule, so it is read
|
|
65
|
+
* on every build instead of being cached twice; its download settling counts
|
|
66
|
+
* as a change, like a remote gateway's.
|
|
66
67
|
*
|
|
67
68
|
* Everything else (configured gateways and per-provider auth) is rebuilt at
|
|
68
69
|
* most every {@link MODEL_CATALOG_TTL_MS}, or on the next call after
|
|
@@ -74,23 +75,24 @@ const REMOTE_CATALOG_RETRY_MS = 6e4;
|
|
|
74
75
|
var ModelCatalogCache = class {
|
|
75
76
|
#manager;
|
|
76
77
|
#isRemote;
|
|
77
|
-
#remote =
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
#remote = new require_provider_registry.RefreshingCache({
|
|
79
|
+
refreshAfterMs: require_provider_registry.CATALOG_REFRESH_MS,
|
|
80
|
+
retryAfterMs: require_provider_registry.CATALOG_RETRY_MS,
|
|
81
|
+
retryEmptyAfterMs: MODEL_CATALOG_TTL_MS
|
|
82
|
+
});
|
|
81
83
|
#built;
|
|
82
84
|
#build;
|
|
83
85
|
/** Bumped by {@link invalidate} so builds started before it are not kept. */
|
|
84
86
|
#generation = 0;
|
|
85
87
|
constructor(manager, isRemote) {
|
|
86
88
|
this.#manager = manager;
|
|
87
|
-
this.#isRemote = isRemote;
|
|
89
|
+
this.#isRemote = (gateway) => !(gateway instanceof require_provider_registry.MastraGateway) && isRemote(gateway);
|
|
88
90
|
}
|
|
89
91
|
async list() {
|
|
90
92
|
if (this.#mustWaitForRemote()) return this.#rebuild();
|
|
91
|
-
|
|
93
|
+
this.#refreshRemote().catch(() => {});
|
|
92
94
|
const built = this.#built;
|
|
93
|
-
if (built && built.remoteVersion === this.#
|
|
95
|
+
if (built && built.remoteVersion === this.#remote.version && built.gatewayVersion === this.#gatewayVersion() && Date.now() - built.builtAt < MODEL_CATALOG_TTL_MS) return built.models;
|
|
94
96
|
return this.#rebuild();
|
|
95
97
|
}
|
|
96
98
|
/**
|
|
@@ -102,7 +104,8 @@ var ModelCatalogCache = class {
|
|
|
102
104
|
this.#generation += 1;
|
|
103
105
|
this.#built = void 0;
|
|
104
106
|
this.#build = void 0;
|
|
105
|
-
|
|
107
|
+
this.#remote.invalidate();
|
|
108
|
+
for (const gateway of this.#manager.gateways) if (gateway instanceof require_provider_registry.MastraGateway) gateway.invalidateModelCatalog();
|
|
106
109
|
}
|
|
107
110
|
#rebuild() {
|
|
108
111
|
if (this.#build) return this.#build;
|
|
@@ -115,17 +118,19 @@ var ModelCatalogCache = class {
|
|
|
115
118
|
async #buildCatalog(generation) {
|
|
116
119
|
const gateways = this.#manager.gateways;
|
|
117
120
|
const local = gateways.filter((gateway) => !this.#isRemote(gateway));
|
|
121
|
+
const gatewayVersion = this.#gatewayVersion();
|
|
118
122
|
const [localProviders] = await Promise.all([this.#fetchLocal(local), this.#mustWaitForRemote() ? this.#refreshRemote() : void 0]);
|
|
119
|
-
const remoteVersion = this.#
|
|
123
|
+
const remoteVersion = this.#remote.version;
|
|
120
124
|
const registry = this.#manager.mergeProviders(gateways.map((gateway) => ({
|
|
121
125
|
gateway,
|
|
122
|
-
providers: (this.#isRemote(gateway) ? this.#remote.
|
|
126
|
+
providers: (this.#isRemote(gateway) ? this.#remote.peek(gateway) : localProviders.get(gateway)) ?? {}
|
|
123
127
|
})));
|
|
124
128
|
const models = await this.#manager.listModelsForProviders(registry);
|
|
125
129
|
if (generation === this.#generation) this.#built = {
|
|
126
130
|
models,
|
|
127
131
|
builtAt: Date.now(),
|
|
128
|
-
remoteVersion
|
|
132
|
+
remoteVersion,
|
|
133
|
+
gatewayVersion
|
|
129
134
|
};
|
|
130
135
|
return models;
|
|
131
136
|
}
|
|
@@ -134,12 +139,15 @@ var ModelCatalogCache = class {
|
|
|
134
139
|
for (const gateway of gateways) providers.set(gateway, await this.#manager.fetchGatewayProviders(gateway));
|
|
135
140
|
return providers;
|
|
136
141
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
return this.#manager.gateways.
|
|
142
|
+
/** Changes only when one of this manager's Mastra Gateways stores a new list, not when another key does. */
|
|
143
|
+
#gatewayVersion() {
|
|
144
|
+
return this.#manager.gateways.map((gateway) => gateway instanceof require_provider_registry.MastraGateway ? gateway.modelCatalogVersion() : 0).join(",");
|
|
145
|
+
}
|
|
146
|
+
#remoteGateways() {
|
|
147
|
+
return this.#manager.gateways.filter((gateway) => this.#isRemote(gateway));
|
|
140
148
|
}
|
|
141
149
|
#mustWaitForRemote() {
|
|
142
|
-
return this.#
|
|
150
|
+
return this.#remoteGateways().some((gateway) => this.#remote.isDue(gateway) && !this.#remote.peek(gateway));
|
|
143
151
|
}
|
|
144
152
|
/**
|
|
145
153
|
* Starts a download for each due remote gateway that is not already
|
|
@@ -148,34 +156,17 @@ var ModelCatalogCache = class {
|
|
|
148
156
|
*/
|
|
149
157
|
#refreshRemote() {
|
|
150
158
|
const waits = [];
|
|
151
|
-
for (const gateway of this.#
|
|
152
|
-
|
|
153
|
-
if (!refresh) {
|
|
154
|
-
refresh = this.#fetchRemote(gateway).finally(() => this.#remoteRefreshes.delete(gateway));
|
|
155
|
-
this.#remoteRefreshes.set(gateway, refresh);
|
|
156
|
-
}
|
|
157
|
-
if (!this.#remote.get(gateway)?.providers) waits.push(refresh);
|
|
159
|
+
for (const gateway of this.#remoteGateways()) {
|
|
160
|
+
const refresh = this.#remote.refresh(gateway, () => this.#download(gateway));
|
|
161
|
+
if (!this.#remote.peek(gateway)) waits.push(refresh.catch(() => {}));
|
|
158
162
|
}
|
|
159
163
|
return Promise.all(waits).then(() => {});
|
|
160
164
|
}
|
|
161
|
-
/** Downloads one remote gateway
|
|
162
|
-
async #
|
|
165
|
+
/** Downloads one remote gateway; a failure (already logged) keeps its last known providers. */
|
|
166
|
+
async #download(gateway) {
|
|
163
167
|
const providers = await this.#manager.fetchGatewayProviders(gateway);
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
if (providers) this.#remote.set(gateway, {
|
|
167
|
-
providers,
|
|
168
|
-
nextFetchAt: fetchedAt + REMOTE_CATALOG_REFRESH_MS
|
|
169
|
-
});
|
|
170
|
-
else if (previous) this.#remote.set(gateway, {
|
|
171
|
-
providers: previous,
|
|
172
|
-
nextFetchAt: fetchedAt + REMOTE_CATALOG_RETRY_MS
|
|
173
|
-
});
|
|
174
|
-
else this.#remote.set(gateway, {
|
|
175
|
-
providers: void 0,
|
|
176
|
-
nextFetchAt: fetchedAt + MODEL_CATALOG_TTL_MS
|
|
177
|
-
});
|
|
178
|
-
this.#remoteVersion += 1;
|
|
168
|
+
if (!providers) throw new Error(`Gateway ${gateway.id} catalog unavailable`);
|
|
169
|
+
return providers;
|
|
179
170
|
}
|
|
180
171
|
};
|
|
181
172
|
// src/agent-controller/message-author.ts
|
|
@@ -2212,6 +2203,18 @@ var SessionThread = class {
|
|
|
2212
2203
|
value
|
|
2213
2204
|
});
|
|
2214
2205
|
}
|
|
2206
|
+
/**
|
|
2207
|
+
* Persist several settings to a specific thread in one write: they all land or none do.
|
|
2208
|
+
* An `undefined` value deletes its setting. Unlike {@link setSettingOn}, rejects when storage
|
|
2209
|
+
* rejects, for a caller that must not report success on a lost write.
|
|
2210
|
+
*/
|
|
2211
|
+
async setSettingsOn({ threadId, settings }) {
|
|
2212
|
+
if (!this.#store) return;
|
|
2213
|
+
await this.#store.setMetadataValues({
|
|
2214
|
+
threadId,
|
|
2215
|
+
values: settings
|
|
2216
|
+
});
|
|
2217
|
+
}
|
|
2215
2218
|
/** Delete a setting (metadata value) for the active thread. */
|
|
2216
2219
|
async deleteSetting({ key }) {
|
|
2217
2220
|
if (!this.#store || this.#threadId === null) return;
|
|
@@ -8303,6 +8306,7 @@ var AgentController = class {
|
|
|
8303
8306
|
threadId,
|
|
8304
8307
|
key
|
|
8305
8308
|
}),
|
|
8309
|
+
setMetadataValues: ({ threadId, values }) => this.writeThreadMetadataValues(threadId, values),
|
|
8306
8310
|
hasStorage: () => !!this.#resolveStorage(),
|
|
8307
8311
|
saveThread: ({ thread }) => this.persistThreadRow(thread),
|
|
8308
8312
|
deleteThread: ({ threadId, requestContext }) => this.deleteThreadRow({
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { An as CHAT_CHANNEL_RENDER_CONTEXT_KEY, H as MessagePartSpans, Sc as DurableStepIds, T as Agent, Ta as validateStorageMetadataFilter, U as isSpanChunk, Zr as InMemoryMemory, a as AGENTIC_EXECUTION_WORKFLOW_ID, du as CONTROLLER_RUN_BINDING_KEY, fu as restoredWorkerControllerContexts, i as agentThreadStreamRuntime, o as AGENTIC_LOOP_WORKFLOW_ID, r as AgentThreadLeaseLostError, s as describeNonSuccessFinishReason, xt as getServerSideFallbackInfo } from "./execution-fence-pJB0qqFJ.js";
|
|
2
2
|
import { n as MessageList } from "./message-list-RgFlLrxG.js";
|
|
3
3
|
import { c as isUserAuthoredMessage, n as createSignal, u as resolveDeliveryAttributes } from "./signals-CqR_iWkg.js";
|
|
4
4
|
import { i as MastraFGAPermissions } from "./ee-iTj2bRDt-By_B9ngH.js";
|
|
5
|
-
import { a as AgentControllerChannels } from "./channels-
|
|
6
|
-
import { a as ModelRouterLanguageModel, l as defaultGateways, s as GatewayManager } from "./llm-
|
|
7
|
-
import { t as Mastra } from "./mastra-
|
|
8
|
-
import { qt as TITLE_PINNED_THREAD_METADATA_KEY, zn as createRunScopeKey } from "./stream-
|
|
5
|
+
import { a as AgentControllerChannels } from "./channels-Cxy4jW11.js";
|
|
6
|
+
import { a as ModelRouterLanguageModel, l as defaultGateways, s as GatewayManager } from "./llm-_z1lIfCN.js";
|
|
7
|
+
import { t as Mastra } from "./mastra-fJ0iKYGP.js";
|
|
8
|
+
import { qt as TITLE_PINNED_THREAD_METADATA_KEY, zn as createRunScopeKey } from "./stream-BfSwqzPi.js";
|
|
9
9
|
import { c as MASTRA_THREAD_ID_KEY, i as MASTRA_MESSAGE_AUTHOR_KEY, o as MASTRA_RESOURCE_ID_KEY, u as RequestContext } from "./request-context-COnZHt2-.js";
|
|
10
10
|
import { n as resolveDynamicArgument } from "./dynamic-argument-BzPK3qPN.js";
|
|
11
|
+
import { f as MastraGateway, g as RefreshingCache, h as CATALOG_RETRY_MS, m as CATALOG_REFRESH_MS } from "./provider-registry-C4tv__fr.js";
|
|
11
12
|
import { i as MastraError, o as getErrorFromUnknown } from "./error-oh2DLsP2.js";
|
|
12
13
|
import { toStandardSchema } from "./schema/index.js";
|
|
13
14
|
import { safeStringify } from "./utils/safe-stringify.js";
|
|
@@ -51,18 +52,18 @@ function isSessionNotStartedError(error) {
|
|
|
51
52
|
* short.
|
|
52
53
|
*/
|
|
53
54
|
const MODEL_CATALOG_TTL_MS = 1e4;
|
|
54
|
-
/** How long a downloaded remote catalog (models.dev, Netlify, ...) is served before a call refreshes it in the background. */
|
|
55
|
-
const REMOTE_CATALOG_REFRESH_MS = 3e5;
|
|
56
|
-
/** After a remote catalog fails, how long its last known providers are served before the next try. */
|
|
57
|
-
const REMOTE_CATALOG_RETRY_MS = 6e4;
|
|
58
55
|
/**
|
|
59
56
|
* Model catalog cache with two refresh speeds.
|
|
60
57
|
*
|
|
61
|
-
* Remote gateways download public catalogs (models.dev's is ~6 MB).
|
|
62
|
-
*
|
|
63
|
-
* call refreshes it in the background and keeps serving the last good
|
|
64
|
-
* including when the refresh fails. A call waits for a remote gateway
|
|
65
|
-
* while it has nothing to serve: before its first successful download.
|
|
58
|
+
* Remote gateways download public catalogs (models.dev's is ~6 MB). Each is
|
|
59
|
+
* kept in a {@link RefreshingCache}: once older than {@link CATALOG_REFRESH_MS},
|
|
60
|
+
* the next call refreshes it in the background and keeps serving the last good
|
|
61
|
+
* result, including when the refresh fails. A call waits for a remote gateway
|
|
62
|
+
* only while it has nothing to serve: before its first successful download.
|
|
63
|
+
*
|
|
64
|
+
* The Mastra Gateway caches its own list on the same schedule, so it is read
|
|
65
|
+
* on every build instead of being cached twice; its download settling counts
|
|
66
|
+
* as a change, like a remote gateway's.
|
|
66
67
|
*
|
|
67
68
|
* Everything else (configured gateways and per-provider auth) is rebuilt at
|
|
68
69
|
* most every {@link MODEL_CATALOG_TTL_MS}, or on the next call after
|
|
@@ -74,23 +75,24 @@ const REMOTE_CATALOG_RETRY_MS = 6e4;
|
|
|
74
75
|
var ModelCatalogCache = class {
|
|
75
76
|
#manager;
|
|
76
77
|
#isRemote;
|
|
77
|
-
#remote =
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
#remote = new RefreshingCache({
|
|
79
|
+
refreshAfterMs: CATALOG_REFRESH_MS,
|
|
80
|
+
retryAfterMs: CATALOG_RETRY_MS,
|
|
81
|
+
retryEmptyAfterMs: MODEL_CATALOG_TTL_MS
|
|
82
|
+
});
|
|
81
83
|
#built;
|
|
82
84
|
#build;
|
|
83
85
|
/** Bumped by {@link invalidate} so builds started before it are not kept. */
|
|
84
86
|
#generation = 0;
|
|
85
87
|
constructor(manager, isRemote) {
|
|
86
88
|
this.#manager = manager;
|
|
87
|
-
this.#isRemote = isRemote;
|
|
89
|
+
this.#isRemote = (gateway) => !(gateway instanceof MastraGateway) && isRemote(gateway);
|
|
88
90
|
}
|
|
89
91
|
async list() {
|
|
90
92
|
if (this.#mustWaitForRemote()) return this.#rebuild();
|
|
91
|
-
|
|
93
|
+
this.#refreshRemote().catch(() => {});
|
|
92
94
|
const built = this.#built;
|
|
93
|
-
if (built && built.remoteVersion === this.#
|
|
95
|
+
if (built && built.remoteVersion === this.#remote.version && built.gatewayVersion === this.#gatewayVersion() && Date.now() - built.builtAt < MODEL_CATALOG_TTL_MS) return built.models;
|
|
94
96
|
return this.#rebuild();
|
|
95
97
|
}
|
|
96
98
|
/**
|
|
@@ -102,7 +104,8 @@ var ModelCatalogCache = class {
|
|
|
102
104
|
this.#generation += 1;
|
|
103
105
|
this.#built = void 0;
|
|
104
106
|
this.#build = void 0;
|
|
105
|
-
|
|
107
|
+
this.#remote.invalidate();
|
|
108
|
+
for (const gateway of this.#manager.gateways) if (gateway instanceof MastraGateway) gateway.invalidateModelCatalog();
|
|
106
109
|
}
|
|
107
110
|
#rebuild() {
|
|
108
111
|
if (this.#build) return this.#build;
|
|
@@ -115,17 +118,19 @@ var ModelCatalogCache = class {
|
|
|
115
118
|
async #buildCatalog(generation) {
|
|
116
119
|
const gateways = this.#manager.gateways;
|
|
117
120
|
const local = gateways.filter((gateway) => !this.#isRemote(gateway));
|
|
121
|
+
const gatewayVersion = this.#gatewayVersion();
|
|
118
122
|
const [localProviders] = await Promise.all([this.#fetchLocal(local), this.#mustWaitForRemote() ? this.#refreshRemote() : void 0]);
|
|
119
|
-
const remoteVersion = this.#
|
|
123
|
+
const remoteVersion = this.#remote.version;
|
|
120
124
|
const registry = this.#manager.mergeProviders(gateways.map((gateway) => ({
|
|
121
125
|
gateway,
|
|
122
|
-
providers: (this.#isRemote(gateway) ? this.#remote.
|
|
126
|
+
providers: (this.#isRemote(gateway) ? this.#remote.peek(gateway) : localProviders.get(gateway)) ?? {}
|
|
123
127
|
})));
|
|
124
128
|
const models = await this.#manager.listModelsForProviders(registry);
|
|
125
129
|
if (generation === this.#generation) this.#built = {
|
|
126
130
|
models,
|
|
127
131
|
builtAt: Date.now(),
|
|
128
|
-
remoteVersion
|
|
132
|
+
remoteVersion,
|
|
133
|
+
gatewayVersion
|
|
129
134
|
};
|
|
130
135
|
return models;
|
|
131
136
|
}
|
|
@@ -134,12 +139,15 @@ var ModelCatalogCache = class {
|
|
|
134
139
|
for (const gateway of gateways) providers.set(gateway, await this.#manager.fetchGatewayProviders(gateway));
|
|
135
140
|
return providers;
|
|
136
141
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
return this.#manager.gateways.
|
|
142
|
+
/** Changes only when one of this manager's Mastra Gateways stores a new list, not when another key does. */
|
|
143
|
+
#gatewayVersion() {
|
|
144
|
+
return this.#manager.gateways.map((gateway) => gateway instanceof MastraGateway ? gateway.modelCatalogVersion() : 0).join(",");
|
|
145
|
+
}
|
|
146
|
+
#remoteGateways() {
|
|
147
|
+
return this.#manager.gateways.filter((gateway) => this.#isRemote(gateway));
|
|
140
148
|
}
|
|
141
149
|
#mustWaitForRemote() {
|
|
142
|
-
return this.#
|
|
150
|
+
return this.#remoteGateways().some((gateway) => this.#remote.isDue(gateway) && !this.#remote.peek(gateway));
|
|
143
151
|
}
|
|
144
152
|
/**
|
|
145
153
|
* Starts a download for each due remote gateway that is not already
|
|
@@ -148,34 +156,17 @@ var ModelCatalogCache = class {
|
|
|
148
156
|
*/
|
|
149
157
|
#refreshRemote() {
|
|
150
158
|
const waits = [];
|
|
151
|
-
for (const gateway of this.#
|
|
152
|
-
|
|
153
|
-
if (!refresh) {
|
|
154
|
-
refresh = this.#fetchRemote(gateway).finally(() => this.#remoteRefreshes.delete(gateway));
|
|
155
|
-
this.#remoteRefreshes.set(gateway, refresh);
|
|
156
|
-
}
|
|
157
|
-
if (!this.#remote.get(gateway)?.providers) waits.push(refresh);
|
|
159
|
+
for (const gateway of this.#remoteGateways()) {
|
|
160
|
+
const refresh = this.#remote.refresh(gateway, () => this.#download(gateway));
|
|
161
|
+
if (!this.#remote.peek(gateway)) waits.push(refresh.catch(() => {}));
|
|
158
162
|
}
|
|
159
163
|
return Promise.all(waits).then(() => {});
|
|
160
164
|
}
|
|
161
|
-
/** Downloads one remote gateway
|
|
162
|
-
async #
|
|
165
|
+
/** Downloads one remote gateway; a failure (already logged) keeps its last known providers. */
|
|
166
|
+
async #download(gateway) {
|
|
163
167
|
const providers = await this.#manager.fetchGatewayProviders(gateway);
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
if (providers) this.#remote.set(gateway, {
|
|
167
|
-
providers,
|
|
168
|
-
nextFetchAt: fetchedAt + REMOTE_CATALOG_REFRESH_MS
|
|
169
|
-
});
|
|
170
|
-
else if (previous) this.#remote.set(gateway, {
|
|
171
|
-
providers: previous,
|
|
172
|
-
nextFetchAt: fetchedAt + REMOTE_CATALOG_RETRY_MS
|
|
173
|
-
});
|
|
174
|
-
else this.#remote.set(gateway, {
|
|
175
|
-
providers: void 0,
|
|
176
|
-
nextFetchAt: fetchedAt + MODEL_CATALOG_TTL_MS
|
|
177
|
-
});
|
|
178
|
-
this.#remoteVersion += 1;
|
|
168
|
+
if (!providers) throw new Error(`Gateway ${gateway.id} catalog unavailable`);
|
|
169
|
+
return providers;
|
|
179
170
|
}
|
|
180
171
|
};
|
|
181
172
|
// src/agent-controller/message-author.ts
|
|
@@ -2212,6 +2203,18 @@ var SessionThread = class {
|
|
|
2212
2203
|
value
|
|
2213
2204
|
});
|
|
2214
2205
|
}
|
|
2206
|
+
/**
|
|
2207
|
+
* Persist several settings to a specific thread in one write: they all land or none do.
|
|
2208
|
+
* An `undefined` value deletes its setting. Unlike {@link setSettingOn}, rejects when storage
|
|
2209
|
+
* rejects, for a caller that must not report success on a lost write.
|
|
2210
|
+
*/
|
|
2211
|
+
async setSettingsOn({ threadId, settings }) {
|
|
2212
|
+
if (!this.#store) return;
|
|
2213
|
+
await this.#store.setMetadataValues({
|
|
2214
|
+
threadId,
|
|
2215
|
+
values: settings
|
|
2216
|
+
});
|
|
2217
|
+
}
|
|
2215
2218
|
/** Delete a setting (metadata value) for the active thread. */
|
|
2216
2219
|
async deleteSetting({ key }) {
|
|
2217
2220
|
if (!this.#store || this.#threadId === null) return;
|
|
@@ -8303,6 +8306,7 @@ var AgentController = class {
|
|
|
8303
8306
|
threadId,
|
|
8304
8307
|
key
|
|
8305
8308
|
}),
|
|
8309
|
+
setMetadataValues: ({ threadId, values }) => this.writeThreadMetadataValues(threadId, values),
|
|
8306
8310
|
hasStorage: () => !!this.#resolveStorage(),
|
|
8307
8311
|
saveThread: ({ thread }) => this.persistThreadRow(thread),
|
|
8308
8312
|
deleteThread: ({ threadId, requestContext }) => this.deleteThreadRow({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_background_tasks = require("../background-tasks-
|
|
2
|
+
const require_background_tasks = require("../background-tasks-DcKNctMR.cjs");
|
|
3
3
|
exports.BACKGROUND_TASK_WORKFLOW_ID = require_background_tasks.BACKGROUND_TASK_WORKFLOW_ID;
|
|
4
4
|
exports.BackgroundTaskManager = require_background_tasks.BackgroundTaskManager;
|
|
5
5
|
exports.backgroundOverrideJsonSchema = require_background_tasks.backgroundOverrideJsonSchema;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { u as BACKGROUND_TASK_WORKFLOW_ID, l as BackgroundTaskManager, n as backgroundOverrideJsonSchema, r as backgroundOverrideZodSchema, c as createBackgroundTask, t as generateBackgroundTaskSystemPrompt, i as isModelBackgroundOverrideAllowed, a as isToolBackgroundEligible, o as resolveBackgroundConfig } from "../background-tasks-
|
|
1
|
+
export { u as BACKGROUND_TASK_WORKFLOW_ID, l as BackgroundTaskManager, n as backgroundOverrideJsonSchema, r as backgroundOverrideZodSchema, c as createBackgroundTask, t as generateBackgroundTaskSystemPrompt, i as isModelBackgroundOverrideAllowed, a as isToolBackgroundEligible, o as resolveBackgroundConfig } from "../background-tasks-DSMkHpbu.js";
|
|
@@ -249,7 +249,7 @@ var BackgroundTaskManager = class {
|
|
|
249
249
|
if (handled) await ack?.();
|
|
250
250
|
};
|
|
251
251
|
if (this.#mastra) {
|
|
252
|
-
const { buildBackgroundTaskWorkflow } = await import("./workflow-
|
|
252
|
+
const { buildBackgroundTaskWorkflow } = await import("./workflow-DfXq2p2f.js");
|
|
253
253
|
const workflow = buildBackgroundTaskWorkflow(this);
|
|
254
254
|
if (!this.#mastra.__hasInternalWorkflow("__background-task")) this.#mastra.__registerInternalWorkflow(workflow);
|
|
255
255
|
}
|
|
@@ -249,7 +249,7 @@ var BackgroundTaskManager = class {
|
|
|
249
249
|
if (handled) await ack?.();
|
|
250
250
|
};
|
|
251
251
|
if (this.#mastra) {
|
|
252
|
-
const { buildBackgroundTaskWorkflow } = await Promise.resolve().then(() => require("./workflow-
|
|
252
|
+
const { buildBackgroundTaskWorkflow } = await Promise.resolve().then(() => require("./workflow-CMLLlVDc.cjs"));
|
|
253
253
|
const workflow = buildBackgroundTaskWorkflow(this);
|
|
254
254
|
if (!this.#mastra.__hasInternalWorkflow("__background-task")) this.#mastra.__registerInternalWorkflow(workflow);
|
|
255
255
|
}
|
package/dist/browser/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_logger = require("../logger-CvzZYuJd.cjs");
|
|
4
|
-
const require_stream = require("../stream-
|
|
4
|
+
const require_stream = require("../stream-CW3d1Xg6.cjs");
|
|
5
5
|
const require_tool = require("../tool-Dn9WSDVn.cjs");
|
|
6
6
|
const require_workspace = require("../workspace-BQD4tcQi.cjs");
|
|
7
7
|
let os = require("os");
|
package/dist/browser/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as MastraBase } from "../base-CKLWBhDo.js";
|
|
2
2
|
import { a as RegisteredLogger } from "../logger-BwbmRqfc.js";
|
|
3
|
-
import { Zt as parseMemoryRequestContext, ln as isProcessorWorkflow } from "../stream-
|
|
3
|
+
import { Zt as parseMemoryRequestContext, ln as isProcessorWorkflow } from "../stream-BfSwqzPi.js";
|
|
4
4
|
import { r as createTool } from "../tool-DIFduuTw.js";
|
|
5
5
|
import { D as BrowserCliHandler, O as browserCliHandler } from "../workspace-sqcfdZRR.js";
|
|
6
6
|
import { hostname } from "os";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_validate = require("./validate-
|
|
1
|
+
const require_validate = require("./validate-CFv6HWXx.cjs");
|
|
2
2
|
const require_schedules = require("./schedules-BZS8McF7.cjs");
|
|
3
|
-
const require_execution_fence = require("./execution-fence-
|
|
3
|
+
const require_execution_fence = require("./execution-fence-C1nozqra.cjs");
|
|
4
4
|
let zod = require("zod");
|
|
5
5
|
// src/workflows/builder/authoring-playbook.ts
|
|
6
6
|
const WORKFLOW_BUILDER_AUTHORING_CONSTRAINTS = `# Persisted workflow authoring contract
|