@mastra/core 1.86.0-alpha.6 → 1.86.0-alpha.7
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/memory/index.d.ts +25 -0
- package/dist/agent/agent.d.ts +27 -11
- package/dist/agent/agent.types.d.ts +4 -0
- package/dist/agent/durable/create-durable-agent.d.ts +1 -1
- package/dist/agent/durable/durable-agent.d.ts +30 -500
- package/dist/agent/durable/durable-stream-until-idle.d.ts +2 -1
- package/dist/agent/durable/evented-agent.d.ts +2 -5
- package/dist/agent/durable/execution-engine.d.ts +20 -3
- package/dist/agent/durable/index.cjs +55 -6338
- package/dist/agent/durable/index.d.ts +3 -2
- package/dist/agent/durable/index.js +44 -6327
- package/dist/agent/durable/stream-adapter.d.ts +5 -5
- package/dist/agent/durable/types.d.ts +454 -3
- package/dist/agent/durable/workflows/durable-loop-builder.d.ts +7 -9
- package/dist/agent/helpers.d.ts +1 -1
- package/dist/agent/index.cjs +4 -4
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/index.js +4 -4
- package/dist/agent/streams/execution-capability.d.ts +3 -2
- package/dist/agent/streams/execution-policy.d.ts +1 -1
- package/dist/agent/streams/types.d.ts +3 -3
- package/dist/agent/types.d.ts +5 -5
- package/dist/agent-builder/ee/index.cjs +1 -1
- package/dist/agent-builder/ee/index.js +1 -1
- package/dist/agent-controller/index.cjs +2 -2
- package/dist/agent-controller/index.js +2 -2
- package/dist/{agent-controller-c4KbZ8DY.js → agent-controller-Cf3_IuY8.js} +9 -9
- package/dist/{agent-controller-6ORqG6hK.cjs → agent-controller-K5vHtqfO.cjs} +9 -9
- package/dist/{agent-skills-resolver-BIeWsb01.cjs → agent-skills-resolver-BMoCDoaK.cjs} +1 -1
- package/dist/{agent-skills-resolver-k04IRam7.js → agent-skills-resolver-CUEIMDbx.js} +1 -1
- package/dist/background-tasks/index.cjs +1 -1
- package/dist/background-tasks/index.js +1 -1
- package/dist/{background-tasks-CEglmAt7.js → background-tasks-BgpX1P_s.js} +1 -1
- package/dist/{background-tasks-Da0c3R-J.cjs → background-tasks-DqnQMfuf.cjs} +1 -1
- package/dist/browser/index.cjs +2 -2
- package/dist/browser/index.js +2 -2
- package/dist/{builder-DS826dWf.cjs → builder-D8Osghdo.cjs} +3 -3
- package/dist/{builder-0V9N8S15.js → builder-x295GDL6.js} +3 -3
- package/dist/capabilities/302ai.json +191 -191
- package/dist/capabilities/abliteratedllm.json +36 -36
- package/dist/capabilities/abliteration-ai.json +7 -7
- package/dist/capabilities/above.json +20 -20
- package/dist/capabilities/adaption.json +10 -10
- package/dist/capabilities/adzuki.json +31 -31
- package/dist/capabilities/agentrouter.json +10 -10
- package/dist/capabilities/ai-router.json +9 -9
- package/dist/capabilities/aiand.json +19 -19
- package/dist/capabilities/aigrow.json +14 -14
- package/dist/capabilities/aimlapi.json +142 -142
- package/dist/capabilities/aipg.json +2 -2
- package/dist/capabilities/aixy.json +20 -20
- package/dist/capabilities/aki-io.json +15 -15
- package/dist/capabilities/alibaba-cn.json +90 -90
- package/dist/capabilities/alibaba-coding-plan-cn.json +5 -5
- package/dist/capabilities/alibaba-coding-plan.json +5 -5
- package/dist/capabilities/alibaba-token-plan-cn.json +55 -55
- package/dist/capabilities/alibaba-token-plan.json +57 -57
- package/dist/capabilities/alibaba.json +64 -64
- package/dist/capabilities/ambient.json +12 -12
- package/dist/capabilities/amd.json +8 -8
- package/dist/capabilities/anthropic.json +60 -36
- package/dist/capabilities/anyapi.json +14 -14
- package/dist/capabilities/apiko.json +2 -2
- package/dist/capabilities/arcee.json +11 -11
- package/dist/capabilities/augure.json +5 -5
- package/dist/capabilities/auriko.json +19 -19
- package/dist/capabilities/bailing.json +5 -5
- package/dist/capabilities/baseten.json +18 -18
- package/dist/capabilities/bee.json +3 -3
- package/dist/capabilities/berget.json +8 -8
- package/dist/capabilities/bothub.json +13 -13
- package/dist/capabilities/boundless.json +35 -35
- package/dist/capabilities/bumo.json +44 -44
- package/dist/capabilities/byteplus.json +31 -31
- package/dist/capabilities/cerebras.json +4 -4
- package/dist/capabilities/cheapaimodel.json +10 -10
- package/dist/capabilities/cheapest-token.json +31 -31
- package/dist/capabilities/chutes.json +8 -8
- package/dist/capabilities/cline-pass.json +41 -41
- package/dist/capabilities/cloudcode.json +7 -7
- package/dist/capabilities/cloudflare-workers-ai.json +31 -31
- package/dist/capabilities/commandcode.json +147 -147
- package/dist/capabilities/concentrate.json +259 -259
- package/dist/capabilities/cortecs.json +109 -109
- package/dist/capabilities/crossmodel.json +169 -169
- package/dist/capabilities/crusoe.json +10 -10
- package/dist/capabilities/daoxe.json +9 -9
- package/dist/capabilities/databricks.json +59 -59
- package/dist/capabilities/deepinfra.json +85 -85
- package/dist/capabilities/deepseek.json +3 -3
- package/dist/capabilities/digitalocean.json +113 -113
- package/dist/capabilities/dothoosh.json +29 -29
- package/dist/capabilities/doubleword.json +23 -23
- package/dist/capabilities/edenai.json +454 -453
- package/dist/capabilities/empiriolabs.json +170 -170
- package/dist/capabilities/engy.json +22 -22
- package/dist/capabilities/entrim.json +6 -6
- package/dist/capabilities/evroc.json +16 -16
- package/dist/capabilities/ezkielyna.json +9 -9
- package/dist/capabilities/fastrouter.json +80 -80
- package/dist/capabilities/fireworks-ai.json +65 -65
- package/dist/capabilities/freemodel.json +21 -21
- package/dist/capabilities/friendli.json +6 -6
- package/dist/capabilities/frogbot.json +89 -89
- package/dist/capabilities/gisoo.json +19 -19
- package/dist/capabilities/gmicloud.json +16 -16
- package/dist/capabilities/google.json +57 -57
- package/dist/capabilities/graphn.json +12 -12
- package/dist/capabilities/greenpt.json +34 -34
- package/dist/capabilities/groq.json +2 -2
- package/dist/capabilities/helicone.json +83 -83
- package/dist/capabilities/hostinger-router.json +11 -11
- package/dist/capabilities/hpc-ai.json +14 -14
- package/dist/capabilities/huawei-maas.json +14 -14
- package/dist/capabilities/hubris.json +25 -25
- package/dist/capabilities/huggingface.json +48 -48
- package/dist/capabilities/hyper.json +26 -26
- package/dist/capabilities/impossibl.json +132 -132
- package/dist/capabilities/inception.json +2 -2
- package/dist/capabilities/inco.json +5 -5
- package/dist/capabilities/infer.json +12 -12
- package/dist/capabilities/inferall.json +10 -10
- package/dist/capabilities/inference-coop.json +11 -11
- package/dist/capabilities/inferenceapis.json +6 -6
- package/dist/capabilities/inferris.json +4 -4
- package/dist/capabilities/infersia.json +14 -14
- package/dist/capabilities/inferx.json +3 -3
- package/dist/capabilities/infomaniak.json +4 -4
- package/dist/capabilities/io-net.json +2 -2
- package/dist/capabilities/isoquant.json +4 -4
- package/dist/capabilities/iteracompute.json +60 -60
- package/dist/capabilities/jad-ai.json +3 -3
- package/dist/capabilities/jalapeno.json +10 -10
- package/dist/capabilities/jiekou.json +65 -65
- package/dist/capabilities/jzstoken.json +52 -52
- package/dist/capabilities/keln.json +23 -23
- package/dist/capabilities/kenari.json +122 -116
- package/dist/capabilities/kilo.json +627 -627
- 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 +2 -2
- package/dist/capabilities/klavo.json +24 -24
- package/dist/capabilities/korouter.json +29 -29
- package/dist/capabilities/kunavo.json +7 -7
- package/dist/capabilities/liquid.json +10 -10
- package/dist/capabilities/lithosai.json +2 -2
- package/dist/capabilities/llmgateway-providers.json +890 -890
- package/dist/capabilities/llmgateway.json +333 -333
- package/dist/capabilities/llmtr.json +30 -30
- package/dist/capabilities/longcat.json +3 -3
- package/dist/capabilities/lowrouter.json +51 -51
- package/dist/capabilities/lyceum.json +14 -14
- package/dist/capabilities/melious.json +15 -15
- package/dist/capabilities/merge-gateway.json +236 -236
- package/dist/capabilities/meta.json +11 -11
- package/dist/capabilities/mistral.json +21 -21
- package/dist/capabilities/mixlayer.json +3 -3
- package/dist/capabilities/modal.json +10 -10
- package/dist/capabilities/model-oracle-ai.json +24 -24
- package/dist/capabilities/modelis.json +20 -20
- package/dist/capabilities/modelscope.json +2 -2
- package/dist/capabilities/modular.json +5 -5
- package/dist/capabilities/moneo.json +16 -16
- package/dist/capabilities/moonshotai-cn.json +7 -7
- package/dist/capabilities/moonshotai.json +7 -7
- package/dist/capabilities/morph.json +16 -16
- package/dist/capabilities/munito-eu.json +4 -4
- package/dist/capabilities/munito.json +6 -6
- package/dist/capabilities/nan.json +29 -29
- package/dist/capabilities/nano-gpt.json +586 -556
- package/dist/capabilities/nearai.json +89 -89
- package/dist/capabilities/nebius.json +29 -29
- package/dist/capabilities/neon.json +126 -126
- package/dist/capabilities/neuralwatt.json +43 -43
- package/dist/capabilities/nokeep.json +2 -2
- package/dist/capabilities/novita-ai.json +140 -140
- package/dist/capabilities/nvidia.json +35 -35
- package/dist/capabilities/oathbreaker.json +2 -2
- package/dist/capabilities/obscurify.json +31 -31
- package/dist/capabilities/oci.json +7 -7
- package/dist/capabilities/ofox.json +354 -354
- package/dist/capabilities/ollama-cloud.json +54 -54
- package/dist/capabilities/openai.json +53 -60
- package/dist/capabilities/opencode-go.json +89 -89
- package/dist/capabilities/openreason.json +5 -5
- package/dist/capabilities/openrouter.json +553 -553
- package/dist/capabilities/opper.json +28 -28
- package/dist/capabilities/orcarouter.json +248 -248
- package/dist/capabilities/outerlabs.json +32 -32
- package/dist/capabilities/ovhcloud.json +4 -4
- package/dist/capabilities/pareto.json +5 -5
- package/dist/capabilities/perplexity-agent.json +55 -55
- package/dist/capabilities/phala.json +33 -33
- package/dist/capabilities/pioneer.json +28 -28
- package/dist/capabilities/poe.json +121 -121
- package/dist/capabilities/poolside.json +3 -3
- package/dist/capabilities/powerspring.json +12 -12
- package/dist/capabilities/primalabs.json +9 -9
- package/dist/capabilities/prime.json +111 -111
- package/dist/capabilities/privatemode-ai.json +13 -13
- package/dist/capabilities/proxystacks.json +7 -7
- package/dist/capabilities/qiniu-ai.json +15 -15
- package/dist/capabilities/refuseless.json +10 -10
- package/dist/capabilities/regolo-ai.json +6 -6
- package/dist/capabilities/requesty.json +171 -188
- package/dist/capabilities/ruapi.json +19 -19
- package/dist/capabilities/runcrate.json +8 -8
- package/dist/capabilities/runinfra.json +13 -13
- package/dist/capabilities/sakana.json +6 -6
- package/dist/capabilities/sambanova.json +6 -6
- package/dist/capabilities/sandbase.json +25 -25
- package/dist/capabilities/sarvam.json +13 -13
- package/dist/capabilities/scaleway.json +20 -20
- package/dist/capabilities/scnet-token-plan.json +8 -8
- package/dist/capabilities/scx-ai.json +30 -30
- package/dist/capabilities/sensenova.json +13 -13
- package/dist/capabilities/siliconflow-cn.json +68 -68
- package/dist/capabilities/siliconflow.json +60 -60
- package/dist/capabilities/snowflake-cortex.json +20 -20
- package/dist/capabilities/sokkan.json +7 -7
- package/dist/capabilities/sparrowcodes.json +23 -23
- package/dist/capabilities/standardcompute.json +103 -103
- package/dist/capabilities/steadyrouter.json +36 -36
- package/dist/capabilities/stepfun-ai-step-plan.json +4 -4
- package/dist/capabilities/stepfun-ai.json +4 -4
- package/dist/capabilities/stepfun-step-plan.json +4 -4
- package/dist/capabilities/stepfun.json +4 -4
- package/dist/capabilities/stepping-stone.json +20 -20
- package/dist/capabilities/subconscious.json +2 -2
- package/dist/capabilities/superbot-gg.json +4 -4
- package/dist/capabilities/synthetic.json +11 -11
- package/dist/capabilities/synthorai.json +23 -23
- package/dist/capabilities/teamorouter.json +21 -21
- package/dist/capabilities/teapot-router.json +12 -12
- package/dist/capabilities/tencent-coding-plan.json +2 -2
- package/dist/capabilities/tencent-token-plan.json +24 -24
- package/dist/capabilities/tencent-tokenhub.json +6 -6
- package/dist/capabilities/tensorx.json +50 -50
- package/dist/capabilities/tenstorrent.json +5 -5
- package/dist/capabilities/the-grid-ai.json +28 -28
- package/dist/capabilities/thinkingmachines.json +60 -60
- package/dist/capabilities/tinfoil.json +14 -14
- package/dist/capabilities/toapis.json +3 -3
- package/dist/capabilities/togetherai.json +51 -51
- package/dist/capabilities/tokengo.json +16 -16
- package/dist/capabilities/tokenify.json +9 -9
- package/dist/capabilities/trustedrouter.json +7 -7
- package/dist/capabilities/trustedtokens.json +15 -15
- package/dist/capabilities/umans-ai-coding-plan.json +14 -14
- package/dist/capabilities/umans-ai.json +12 -12
- package/dist/capabilities/uncensuredai.json +5 -5
- package/dist/capabilities/unrestricted.json +8 -8
- package/dist/capabilities/uplinkswitch.json +19 -19
- package/dist/capabilities/upstage.json +4 -4
- package/dist/capabilities/vancine.json +21 -21
- package/dist/capabilities/vercel.json +551 -551
- package/dist/capabilities/vivgrid.json +85 -85
- package/dist/capabilities/volcengine-coding-plan.json +30 -30
- package/dist/capabilities/volcengine.json +36 -36
- package/dist/capabilities/vultr.json +31 -31
- package/dist/capabilities/wafer.ai.json +16 -16
- package/dist/capabilities/wallaby.json +5 -5
- package/dist/capabilities/wally.json +12 -12
- package/dist/capabilities/wandb.json +15 -15
- package/dist/capabilities/watt.json +23 -23
- package/dist/capabilities/xai.json +6 -6
- package/dist/capabilities/xiaomi-token-plan-ams.json +2 -2
- package/dist/capabilities/xiaomi-token-plan-cn.json +3 -3
- package/dist/capabilities/xiaomi-token-plan-sgp.json +2 -2
- package/dist/capabilities/xiaomi.json +6 -6
- package/dist/capabilities/xpersona.json +13 -13
- package/dist/capabilities/xxapi.json +27 -27
- package/dist/capabilities/zai-coding-plan.json +10 -10
- package/dist/capabilities/zai.json +26 -26
- package/dist/capabilities/zenifra.json +28 -28
- package/dist/capabilities/zenmux.json +197 -197
- package/dist/capabilities/zerogpu.json +14 -14
- package/dist/capabilities/zhipuai-coding-plan.json +7 -7
- package/dist/capabilities/zhipuai.json +24 -24
- package/dist/capabilities/zro.json +7 -7
- package/dist/channels/agent-channels.d.ts +11 -0
- package/dist/channels/chat-tools.d.ts +156 -0
- package/dist/channels/index.cjs +7 -2
- package/dist/channels/index.d.ts +2 -0
- package/dist/channels/index.js +3 -3
- package/dist/{channels-C5DxhFRc.js → channels-Dx4jiXeK.js} +1 -1
- package/dist/{channels-B57qQolh.cjs → channels-q6qnuRNV.cjs} +1 -1
- package/dist/coding-agent/index.cjs +4 -4
- package/dist/coding-agent/index.js +4 -4
- package/dist/{constants-DaBkXs5H.cjs → constants-B9ZDvXZ4.cjs} +41 -0
- package/dist/{constants-BDHIyN28.js → constants-BmdTvEYN.js} +30 -1
- package/dist/datasets/index.cjs +2 -2
- package/dist/datasets/index.js +2 -2
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1289 -1284
- package/dist/docs/references/reference-agents-agent.md +1 -1
- package/dist/docs/references/reference-agents-channels.md +34 -1
- package/dist/docs/references/reference-agents-durable-agent.md +26 -2
- 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/events/index.cjs +1 -1
- package/dist/events/index.js +1 -1
- package/dist/{filesystem-CUj0vclS.cjs → filesystem-B0AZrbj8.cjs} +1 -1
- package/dist/{filesystem-BBqrAmKK.js → filesystem-B3s0WRud.js} +1 -1
- package/dist/{filesystem-B_HACoLS.js → filesystem-B5X-5G0x.js} +1 -1
- package/dist/{filesystem-pZNvxjuW.cjs → filesystem-BDSpwBke.cjs} +1 -1
- package/dist/{filesystem-5Z777gYZ.js → filesystem-BsdkC311.js} +1 -1
- package/dist/{filesystem-BNHPgtjJ.cjs → filesystem-C-cyJfi1.cjs} +1 -1
- package/dist/{filesystem-U5o28b5w.cjs → filesystem-CEbD_77-.cjs} +1 -1
- package/dist/{filesystem-yHKEz2Pr.cjs → filesystem-CUAgLugE.cjs} +1 -1
- package/dist/{filesystem-Cb8iTPM-.js → filesystem-Cv79mHRk.js} +1 -1
- package/dist/{filesystem-DhiaddZe.cjs → filesystem-DsCQiBl2.cjs} +1 -1
- package/dist/{filesystem-DSYDB3ek.js → filesystem-DzM9pcQ8.js} +1 -1
- package/dist/{filesystem-gpIfFMed.js → filesystem-DzfqVTO_.js} +1 -1
- package/dist/{filesystem-versioned-CxbiSJF-.js → filesystem-versioned-Bijb_p9l.js} +44 -44
- package/dist/harness/index.cjs +2 -2
- package/dist/harness/index.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/knowledge/index.cjs +1 -1
- package/dist/knowledge/index.js +1 -1
- package/dist/llm/index.cjs +3 -3
- package/dist/llm/index.js +3 -3
- package/dist/llm/model/provider-types.generated.d.ts +7744 -7747
- package/dist/{llm-ByskI6z3.cjs → llm-CsQuqKPc.cjs} +2 -2
- package/dist/{llm-B0VtQDgT.js → llm-DnXK3Pmw.js} +2 -2
- package/dist/loop/base-loop-builder.d.ts +60 -0
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +2 -2
- package/dist/loop/loop-builder.d.ts +10 -32
- package/dist/loop/workflows/agentic-execution/index.d.ts +1 -1
- package/dist/loop/workflows/agentic-loop/index.d.ts +1 -1
- package/dist/{manager-C2RGNH68.js → manager-BsghM-UL.js} +3 -3
- package/dist/{manager-BJKx4lQf.cjs → manager-DwFnIrI6.cjs} +3 -3
- package/dist/mastra/index.cjs +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/{mastra-zUTq9ilk.js → mastra-B8i1UDZs.js} +51 -25
- package/dist/{mastra-FXCeC5rF.cjs → mastra-Cn5NC6Es.cjs} +51 -25
- package/dist/memory/index.cjs +2 -2
- package/dist/memory/index.js +2 -2
- package/dist/{model-BmTFNo62.cjs → model-CNPfry_X.cjs} +1 -1
- package/dist/{model-BTNRPDgQ.js → model-CsOcWMUt.js} +1 -1
- package/dist/{netlify-B_XdjYPY.cjs → netlify-C-83Fxus.cjs} +1 -1
- package/dist/{netlify-BCSVhO5q.js → netlify-C-OpNSGp.js} +1 -1
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/{output-helpers-RlvE2WPA.js → output-helpers-D4II19No.js} +45 -45
- package/dist/processor-provider/index.cjs +1 -1
- package/dist/processor-provider/index.js +1 -1
- package/dist/processors/index.cjs +2 -2
- package/dist/processors/index.js +2 -2
- package/dist/processors/processors/pii-detector.d.ts +1 -0
- package/dist/{provider-registry-D8O1G18A.cjs → provider-registry-9O-H9osy.cjs} +22407 -22407
- package/dist/{provider-registry-Ble43Wb4.js → provider-registry-RZ8EgSe8.js} +22407 -22407
- package/dist/provider-registry.json +22277 -22277
- package/dist/{registry-generator-BQ1noftK.cjs → registry-generator-DxCX-FiO.cjs} +1 -1
- package/dist/{registry-generator-D1Zslex6.js → registry-generator-e8sltJls.js} +1 -1
- package/dist/{rehydrate-BiA_HUJH.cjs → rehydrate-B-wrAN7C.cjs} +2 -2
- package/dist/{rehydrate-CgxEur9m.js → rehydrate-D3fPgJwp.js} +2 -2
- package/dist/relevance/index.cjs +2 -2
- package/dist/relevance/index.js +2 -2
- package/dist/{run-registry-aomba2_Z.cjs → run-registry-5_LQBGn_.cjs} +83635 -77661
- package/dist/{run-registry-BUFmc_78.js → run-registry-DC03XLeZ.js} +83435 -76843
- package/dist/{scheduler-BuivoTeD.js → scheduler-B-VZUvv_.js} +1 -1
- package/dist/{scheduler-COSuIH7R.cjs → scheduler-D00X03jQ.cjs} +1 -1
- package/dist/schedules/index.cjs +1 -1
- package/dist/schedules/index.js +1 -1
- package/dist/{schedules-Dmu9qOgc.js → schedules-DZfSx-7P.js} +94 -94
- package/dist/{signal-provider-CicwpNwY.cjs → signal-provider-BFAvh_AJ.cjs} +1 -1
- package/dist/{signal-provider-BOtSN-_0.js → signal-provider-BslnAjWG.js} +1 -1
- package/dist/signals/index.cjs +3 -3
- package/dist/signals/index.js +3 -3
- package/dist/{signals-6EBDPHQX.cjs → signals-B1JSj-Ew.cjs} +2 -2
- package/dist/{signals-BH__LS8Y.js → signals-De9VnwL2.js} +2 -2
- package/dist/skills/index.cjs +2 -2
- package/dist/skills/index.js +2 -2
- package/dist/{source-8qxr6KJv.cjs → source-DDwx-87N.cjs} +1 -1
- package/dist/{source-DRqDgbCv.js → source-Did_2XQc.js} +1 -1
- package/dist/{state-processor-BRk8t1OR.js → state-processor-B9kxpM53.js} +140 -140
- package/dist/{state-processor-Bfs9LkY8.cjs → state-processor-kRNZ38Nf.cjs} +139 -139
- 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/mcp-clients/index.cjs +1 -1
- package/dist/storage/domains/mcp-clients/index.js +1 -1
- package/dist/storage/domains/mcp-servers/index.cjs +1 -1
- package/dist/storage/domains/mcp-servers/index.js +1 -1
- package/dist/storage/domains/memory/base.d.ts +3 -1
- package/dist/storage/domains/memory/observational-memory-lifecycle.d.ts +1 -1
- package/dist/storage/domains/prompt-blocks/index.cjs +1 -1
- package/dist/storage/domains/prompt-blocks/index.js +1 -1
- package/dist/storage/domains/scorer-definitions/index.cjs +1 -1
- package/dist/storage/domains/scorer-definitions/index.js +1 -1
- package/dist/storage/domains/skills/index.cjs +1 -1
- package/dist/storage/domains/skills/index.js +1 -1
- package/dist/storage/domains/workspaces/index.cjs +1 -1
- package/dist/storage/domains/workspaces/index.js +1 -1
- package/dist/storage/index.cjs +12 -11
- package/dist/storage/index.js +12 -12
- package/dist/storage/types.d.ts +13 -0
- package/dist/stream/index.cjs +2 -2
- package/dist/stream/index.js +2 -2
- package/dist/{stream-DUrp3Fcy.cjs → stream-4aNIw_TQ.cjs} +1 -1
- package/dist/{stream-S_NC5v9e.js → stream-CJUm6EAH.js} +1 -1
- package/dist/test-utils/llm-mock.cjs +1 -1
- package/dist/test-utils/llm-mock.js +1 -1
- package/dist/tool-loop-agent/index.cjs +1 -1
- package/dist/tool-loop-agent/index.js +1 -1
- package/dist/{tool-loop-agent-DU0BiemT.cjs → tool-loop-agent-Dn0QCB9n.cjs} +3 -3
- package/dist/{tool-loop-agent-BhCzpGfr.js → tool-loop-agent-FEEwHfmg.js} +3 -3
- package/dist/tools/index.cjs +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/{utils-DYIai19q.js → utils-Bd_y1_a-.js} +1 -1
- package/dist/{utils-CeEt4K7t.cjs → utils-DY01hxVd.cjs} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/{validate-BRikrNhF.js → validate-CX0yQo_q.js} +1 -1
- package/dist/{validate-BckgxuJ0.cjs → validate-CuB_1Zd3.cjs} +1 -1
- package/dist/vector/index.cjs +1 -1
- package/dist/vector/index.js +1 -1
- package/dist/worker/index.cjs +1 -1
- package/dist/worker/index.js +1 -1
- package/dist/{worker-Du5ybt5o.js → worker-B80xkcKG.js} +3 -3
- package/dist/{worker-D9WwmcJa.cjs → worker-CbaSmip-.cjs} +3 -3
- package/dist/{worker-DcBfwJqD.js → worker-DSEfMPmq.js} +3 -3
- package/dist/{worker-BfhUD77l.cjs → worker-GsGIxPMa.cjs} +3 -3
- package/dist/{workflow-jNWVBYDJ.js → workflow-CZHY_C85.js} +4 -4
- package/dist/{workflow-BWV5m9Mx.cjs → workflow-CnBPXTpv.cjs} +4 -4
- 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/evented/workflow.d.ts +1 -1
- package/dist/workflows/index.cjs +6 -6
- package/dist/workflows/index.js +6 -6
- package/dist/workspace/index.cjs +2 -2
- package/dist/workspace/index.js +2 -2
- package/dist/{workspace-BQ2wZj5D.cjs → workspace-D2drutNg.cjs} +607 -607
- package/dist/{workspace-D7JRhn1Z.js → workspace-D7TIleIt.js} +609 -609
- package/dist/{workspace-skills-CGiXfKzA.js → workspace-skills-38OY32_b.js} +531 -531
- package/package.json +8 -8
- package/src/llm/model/provider-types.generated.d.ts +7744 -7747
- package/dist/agent/durable/evented-execution-engine.d.ts +0 -20
- package/dist/{filesystem-versioned-D-OCaYSl.cjs → filesystem-versioned-DZGyPbNC.cjs} +43 -43
- package/dist/{output-helpers-CncZ3y-g.cjs → output-helpers-JL-HeCbT.cjs} +44 -44
- package/dist/{schedules-qIHUKsj4.cjs → schedules-BZS8McF7.cjs} +93 -93
- package/dist/{workspace-skills-CUSjYHdi.cjs → workspace-skills-BcquhPDn.cjs} +530 -530
|
@@ -96,4 +96,29 @@ export declare function assertActiveObservationsApplied(result: UpdateActiveObse
|
|
|
96
96
|
* (equal, or only appended to since).
|
|
97
97
|
*/
|
|
98
98
|
export declare function isAppendOnlySince(storedObservations: string, snapshotObservations: string): boolean;
|
|
99
|
+
/** The buffered-reflection fields a `swapBufferedReflectionToActive` caller read, and the stored ones. */
|
|
100
|
+
export interface BufferedReflectionState {
|
|
101
|
+
bufferedReflection?: string | null;
|
|
102
|
+
reflectedObservationLineCount?: number | null;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Whether the stored buffered reflection and reflected line count are still the ones in
|
|
106
|
+
* `snapshot`, so a buffered-reflection swap activates exactly the buffer the caller read.
|
|
107
|
+
*
|
|
108
|
+
* Another writer can extend the buffer (`updateBufferedReflection` appends and moves the line
|
|
109
|
+
* count) after the caller's read. The activated text alone cannot tell the two apart: an
|
|
110
|
+
* extension that repeats the unreflected tail and moves the cut past it produces the same text.
|
|
111
|
+
* A snapshot without a buffered reflection (callers that never read one) is not checked.
|
|
112
|
+
*/
|
|
113
|
+
export declare function isBufferedReflectionUnchangedSince(stored: BufferedReflectionState, snapshot: BufferedReflectionState): boolean;
|
|
114
|
+
/**
|
|
115
|
+
* The generation a buffered-reflection swap just created, marked with
|
|
116
|
+
* `bufferedReflectionVerified: true` when the swap checked the caller's buffered reflection with
|
|
117
|
+
* `isBufferedReflectionUnchangedSince` in the same atomic step. A snapshot without a buffered
|
|
118
|
+
* reflection was not checked, so its successor is returned unmarked. Always returns a new object,
|
|
119
|
+
* so a store's own record is never handed out or mutated.
|
|
120
|
+
*/
|
|
121
|
+
export declare function withBufferedReflectionVerified<T extends object>(successor: T, snapshot: BufferedReflectionState): T & {
|
|
122
|
+
bufferedReflectionVerified?: true;
|
|
123
|
+
};
|
|
99
124
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/agent/agent.d.ts
CHANGED
|
@@ -37,12 +37,11 @@ import type { AnyWorkflow } from '../workflows/workflow.js';
|
|
|
37
37
|
import type { AnyWorkspace } from '../workspace/index.js';
|
|
38
38
|
import type { Skill, SkillMetadata } from '../workspace/skills/types.js';
|
|
39
39
|
import type { AgentExecutionOptions, AgentExecutionOptionsBase, PublicAgentExecutionOptions, MultiPrimitiveExecutionOptions, NetworkOptions, DelegationConfig } from './agent.types.js';
|
|
40
|
-
import
|
|
41
|
-
import type { DurableExecutionEngine } from './durable/execution-engine.js';
|
|
40
|
+
import { DefaultAgentExecutionEngine } from './durable/execution-engine.js';
|
|
42
41
|
import type { ExecutionFence } from './durable/execution-fence.js';
|
|
43
42
|
import type { PreparationResult } from './durable/preparation.js';
|
|
44
43
|
import { ExtendedRunRegistry } from './durable/run-registry.js';
|
|
45
|
-
import type { AgentSuspendedEventData, AgentStreamEvent, DurableAgentStepFinishResult, DurableAgenticWorkflowInput } from './durable/types.js';
|
|
44
|
+
import type { DurableAgentListActiveRunsOptions, DurableAgentListActiveRunsResult, DurableAgentRecoverActiveRunsOptions, DurableAgentRecoverActiveRunsResult, DurableAgentRecoverOptions, DurableAgentStreamOptions, DurableAgentStreamResult, AgentSuspendedEventData, AgentStreamEvent, DurableAgentStepFinishResult, DurableAgenticWorkflowInput } from './durable/types.js';
|
|
46
45
|
import type { MessageInput, MessageListInput, UIMessageWithMetadata, MastraDBMessage } from './message-list/index.js';
|
|
47
46
|
import { MessageList } from './message-list/index.js';
|
|
48
47
|
import type { PendingSignalListener, AgentSignalInput, CreatedAgentSignal } from './signals.js';
|
|
@@ -209,9 +208,13 @@ TRequestContext extends Record<string, any> | unknown = any, TEditor extends Age
|
|
|
209
208
|
*/
|
|
210
209
|
protected get guardrailLogger(): import("../_types/@internal_core@0.1.4/dist/logger/index.js").IMastraLogger;
|
|
211
210
|
/** @internal One execution owner per Agent, initialized without starting a workflow. */
|
|
212
|
-
protected get executionEngine():
|
|
213
|
-
/** @internal
|
|
214
|
-
|
|
211
|
+
protected get executionEngine(): DefaultAgentExecutionEngine;
|
|
212
|
+
/** @internal Register native durable workflows before execution workers subscribe. */
|
|
213
|
+
__initializeDurableExecution(): void;
|
|
214
|
+
/** @internal Legacy wrappers expose the low-level durable stream result. */
|
|
215
|
+
protected get returnsDurableStreamResult(): boolean;
|
|
216
|
+
/** @internal Inspect engine selection without allocating a backend or freezing policy. */
|
|
217
|
+
__hasDurableExecution(): boolean;
|
|
215
218
|
private _agentNetworkAppend;
|
|
216
219
|
/**
|
|
217
220
|
* Creates a new Agent instance with the specified configuration.
|
|
@@ -430,9 +433,9 @@ TRequestContext extends Record<string, any> | unknown = any, TEditor extends Age
|
|
|
430
433
|
*/
|
|
431
434
|
get browser(): MastraBrowser | undefined;
|
|
432
435
|
/**
|
|
433
|
-
* Effective resumable-stream configuration and
|
|
436
|
+
* Effective resumable-stream configuration and execution-engine selection.
|
|
434
437
|
*
|
|
435
|
-
*
|
|
438
|
+
* See {@link AgentDurableOption}.
|
|
436
439
|
*/
|
|
437
440
|
get durable(): AgentDurableOption | undefined;
|
|
438
441
|
/** @internal Configured policy, not a claim of active durable execution. */
|
|
@@ -458,14 +461,25 @@ TRequestContext extends Record<string, any> | unknown = any, TEditor extends Age
|
|
|
458
461
|
*/
|
|
459
462
|
hasResumableStreams(): boolean;
|
|
460
463
|
/**
|
|
461
|
-
* Owner of a run
|
|
462
|
-
*
|
|
464
|
+
* Owner of a run this process tracks, or undefined. Native engine runs are tracked by
|
|
465
|
+
* the run registry until auto-cleanup clears their replay history.
|
|
463
466
|
* @internal
|
|
464
467
|
*/
|
|
465
468
|
__getRunOwner(runId: string): {
|
|
466
469
|
resourceId?: string;
|
|
467
470
|
threadId?: string;
|
|
468
471
|
} | undefined;
|
|
472
|
+
/**
|
|
473
|
+
* Owner of an engine run whose replay history is still retained: the local owner,
|
|
474
|
+
* else the shared record, including legacy records without stream status.
|
|
475
|
+
* Undefined once the run's topic is cleared or when no engine is selected. Only used
|
|
476
|
+
* for replay access. Rejects when the shared cache cannot be read.
|
|
477
|
+
* @internal
|
|
478
|
+
*/
|
|
479
|
+
__getReplayOwner(runId: string): Promise<{
|
|
480
|
+
resourceId?: string;
|
|
481
|
+
threadId?: string;
|
|
482
|
+
} | undefined>;
|
|
469
483
|
/**
|
|
470
484
|
* The shared ownership record of a published run (see
|
|
471
485
|
* `streams/run-records.ts`), from any process sharing this agent's record
|
|
@@ -1318,6 +1332,8 @@ TRequestContext extends Record<string, any> | unknown = any, TEditor extends Age
|
|
|
1318
1332
|
model?: MastraLanguageModel | MastraLegacyLanguageModel;
|
|
1319
1333
|
/** @internal In-flight run messages, so recovery can restore processor-loaded tools. */
|
|
1320
1334
|
runMessages?: MastraDBMessage[];
|
|
1335
|
+
/** @internal Defaults already evaluated for this invocation. */
|
|
1336
|
+
resolvedDefaultOptions?: AgentExecutionOptionsBase<any>;
|
|
1321
1337
|
}): Promise<Record<string, CoreTool>>;
|
|
1322
1338
|
/**
|
|
1323
1339
|
* Assembles all tools from various sources into a unified CoreTool dictionary.
|
|
@@ -2018,7 +2034,7 @@ TRequestContext extends Record<string, any> | unknown = any, TEditor extends Age
|
|
|
2018
2034
|
* @internal
|
|
2019
2035
|
*/
|
|
2020
2036
|
protected get workflowEngine(): 'default' | 'evented';
|
|
2021
|
-
protected getWorkflow(): ReturnType<
|
|
2037
|
+
protected getWorkflow(): ReturnType<DefaultAgentExecutionEngine['getWorkflow']>;
|
|
2022
2038
|
protected readonly executionRunRegistry: ExtendedRunRegistry;
|
|
2023
2039
|
/**
|
|
2024
2040
|
* Share the owner of a run this process registered, so other replicas can
|
|
@@ -11,14 +11,18 @@ import type { VersionOverrides } from '../mastra/types.js';
|
|
|
11
11
|
import type { ObservabilityContext, TracingOptions } from '../observability/index.js';
|
|
12
12
|
import type { ErrorProcessorOrWorkflow, InputProcessorOrWorkflow, OutputProcessorOrWorkflow } from '../processors/index.js';
|
|
13
13
|
import type { RequestContext } from '../request-context/index.js';
|
|
14
|
+
import type { MastraModelOutput } from '../stream/base/output.js';
|
|
14
15
|
import type { MastraStreamTransformOptions } from '../stream/types.js';
|
|
15
16
|
import type { MCPToolExecutionContext, RequireToolApproval, ToolHooks, ToolPayloadTransformPolicy } from '../tools/index.js';
|
|
16
17
|
import type { DynamicArgument } from '../types/index.js';
|
|
17
18
|
import type { OutputWriter, WorkflowRunState } from '../workflows/types.js';
|
|
19
|
+
import type { DurableAgentStreamResult } from './durable/types.js';
|
|
18
20
|
import type { MessageListInput } from './message-list/index.js';
|
|
19
21
|
import type { AgentSignalType } from './signals.js';
|
|
20
22
|
import type { SubAgentGenerateResult } from './subagent.js';
|
|
21
23
|
import type { AgentMemoryOption, ToolsetsInput, ToolsInput, StructuredOutputOptions, PublicStructuredOutputOptions, AgentMethodType, MastraDBMessage } from './types.js';
|
|
24
|
+
/** Native streams retain model output APIs and expose lifecycle controls when durable execution is selected. */
|
|
25
|
+
export type AgentStreamOutput<OUTPUT = undefined> = MastraModelOutput<OUTPUT> & Partial<Pick<DurableAgentStreamResult<OUTPUT>, 'abort' | 'cleanup' | 'threadId' | 'resourceId'>>;
|
|
22
26
|
export type { CompletionConfig, CompletionRunResult } from '../loop/network/validation.js';
|
|
23
27
|
export type IsTaskCompleteConfig = CompletionConfig;
|
|
24
28
|
export type IsTaskCompleteRunResult = CompletionRunResult;
|
|
@@ -142,6 +142,6 @@ export declare function isDurableAgent(obj: any): obj is DurableAgent;
|
|
|
142
142
|
* @deprecated Use isDurableAgent instead
|
|
143
143
|
*/
|
|
144
144
|
export declare const isLocalDurableAgent: typeof isDurableAgent;
|
|
145
|
-
export type { DurableAgentConfig, DurableAgentStreamOptions, DurableAgentStreamResult } from './
|
|
145
|
+
export type { DurableAgentConfig, DurableAgentStreamOptions, DurableAgentStreamResult } from './types.js';
|
|
146
146
|
export type LocalDurableAgent<TAgentId extends string = string, TTools extends Record<string, any> = Record<string, any>, TOutput = undefined> = DurableAgent<TAgentId, TTools, TOutput>;
|
|
147
147
|
//# sourceMappingURL=create-durable-agent.d.ts.map
|