@mastra/core 1.86.0-alpha.7 → 1.86.0-alpha.9
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 +363 -0
- package/dist/a2a/index.cjs +1 -1
- package/dist/a2a/index.js +1 -1
- package/dist/agent/agent.d.ts +72 -1
- package/dist/agent/agent.types.d.ts +30 -2
- package/dist/agent/durable/create-evented-agent.d.ts +6 -0
- package/dist/agent/durable/durable-agent.d.ts +1 -15
- package/dist/agent/durable/index.cjs +7 -26
- package/dist/agent/durable/index.js +7 -26
- package/dist/agent/durable/preparation.d.ts +2 -0
- package/dist/agent/durable/utils/resolve-runtime.d.ts +9 -0
- package/dist/agent/durable/workflows/durable-loop-builder.d.ts +4 -0
- package/dist/agent/durable/workflows/finalize-run.d.ts +3 -1
- package/dist/agent/durable/workflows/steps/llm-execution.d.ts +1 -0
- package/dist/agent/index.cjs +3 -3
- package/dist/agent/index.js +3 -3
- package/dist/agent/message-list/index.cjs +1 -1
- package/dist/agent/message-list/index.js +1 -1
- package/dist/agent/message-list/message-list.d.ts +11 -0
- package/dist/agent/message-list/utils/provider-compat.d.ts +1 -0
- package/dist/agent/request-context-snapshot.d.ts +1 -1
- package/dist/agent/streams/types.d.ts +10 -0
- package/dist/agent/thread-stream-runtime.d.ts +5 -0
- package/dist/agent/types.d.ts +25 -0
- 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-K5vHtqfO.cjs → agent-controller-CrQ9OF80.cjs} +8 -8
- package/dist/{agent-controller-Cf3_IuY8.js → agent-controller-SSlKzE6A.js} +8 -8
- package/dist/background-tasks/index.cjs +1 -1
- package/dist/background-tasks/index.js +1 -1
- package/dist/{background-tasks-DqnQMfuf.cjs → background-tasks-BDrYBis-.cjs} +5 -3
- package/dist/{background-tasks-BgpX1P_s.js → background-tasks-BnJfNLFo.js} +5 -3
- package/dist/browser/index.cjs +2 -2
- package/dist/browser/index.js +2 -2
- package/dist/{builder-x295GDL6.js → builder-Cl-0BWkh.js} +2 -2
- package/dist/{builder-D8Osghdo.cjs → builder-Cw8u3pPl.cjs} +2 -2
- package/dist/capabilities/302ai.json +192 -192
- package/dist/capabilities/abliteratedllm.json +34 -34
- package/dist/capabilities/abliteration-ai.json +11 -11
- package/dist/capabilities/above.json +17 -17
- package/dist/capabilities/adaption.json +12 -12
- package/dist/capabilities/adzuki.json +30 -30
- package/dist/capabilities/agentrouter.json +10 -10
- package/dist/capabilities/agnes.json +4 -4
- package/dist/capabilities/ai-router.json +9 -9
- package/dist/capabilities/aiand.json +19 -11
- package/dist/capabilities/aigrow.json +11 -11
- package/dist/capabilities/aimlapi.json +146 -149
- package/dist/capabilities/aipg.json +2 -2
- package/dist/capabilities/aixy.json +14 -14
- package/dist/capabilities/aki-io.json +11 -11
- package/dist/capabilities/alibaba-cn.json +128 -109
- package/dist/capabilities/alibaba-coding-plan-cn.json +7 -19
- package/dist/capabilities/alibaba-coding-plan.json +7 -19
- package/dist/capabilities/alibaba-token-plan-cn.json +49 -67
- package/dist/capabilities/alibaba-token-plan.json +51 -69
- package/dist/capabilities/alibaba.json +71 -118
- package/dist/capabilities/ambient.json +14 -14
- package/dist/capabilities/amd.json +11 -11
- package/dist/capabilities/anthropic.json +48 -48
- package/dist/capabilities/anyapi.json +18 -18
- package/dist/capabilities/apiko.json +2 -2
- package/dist/capabilities/arcee.json +10 -10
- package/dist/capabilities/augure.json +6 -6
- package/dist/capabilities/auriko.json +20 -20
- package/dist/capabilities/bailing.json +5 -5
- package/dist/capabilities/baseten.json +46 -16
- package/dist/capabilities/bee.json +5 -5
- package/dist/capabilities/berget.json +4 -4
- package/dist/capabilities/bothub.json +16 -16
- package/dist/capabilities/boundless.json +36 -36
- package/dist/capabilities/bumo.json +40 -40
- package/dist/capabilities/byteplus.json +32 -32
- package/dist/capabilities/cerebras.json +4 -4
- package/dist/capabilities/cheapaimodel.json +5 -5
- package/dist/capabilities/cheapest-token.json +24 -24
- package/dist/capabilities/chutes.json +9 -9
- package/dist/capabilities/cline-pass.json +37 -37
- package/dist/capabilities/cloudcode.json +4 -4
- package/dist/capabilities/cloudflare-workers-ai.json +24 -24
- package/dist/capabilities/commandcode.json +152 -152
- package/dist/capabilities/concentrate.json +290 -266
- package/dist/capabilities/cortecs.json +105 -105
- package/dist/capabilities/crossmodel.json +160 -160
- package/dist/capabilities/crusoe.json +10 -10
- package/dist/capabilities/daoxe.json +7 -7
- package/dist/capabilities/databricks.json +318 -62
- package/dist/capabilities/deepinfra.json +73 -129
- package/dist/capabilities/deepseek.json +2 -2
- package/dist/capabilities/digitalocean.json +114 -114
- package/dist/capabilities/dothoosh.json +28 -28
- package/dist/capabilities/doubleword.json +24 -24
- package/dist/capabilities/edenai.json +458 -458
- package/dist/capabilities/empiriolabs.json +166 -166
- package/dist/capabilities/engy.json +20 -20
- package/dist/capabilities/evroc.json +8 -8
- package/dist/capabilities/ezkielyna.json +8 -8
- package/dist/capabilities/fastrouter.json +85 -85
- package/dist/capabilities/fireworks-ai.json +107 -44
- package/dist/capabilities/freemodel.json +23 -23
- package/dist/capabilities/friendli.json +9 -9
- package/dist/capabilities/frogbot.json +94 -94
- package/dist/capabilities/gisoo.json +16 -16
- package/dist/capabilities/gmicloud.json +17 -17
- package/dist/capabilities/google.json +57 -57
- package/dist/capabilities/graphn.json +10 -10
- package/dist/capabilities/greenpt.json +36 -36
- package/dist/capabilities/groq.json +2 -2
- package/dist/capabilities/helicone.json +68 -68
- package/dist/capabilities/hopper.json +2 -2
- package/dist/capabilities/hostinger-router.json +12 -12
- package/dist/capabilities/hpc-ai.json +13 -13
- package/dist/capabilities/huawei-maas.json +17 -17
- package/dist/capabilities/hubris.json +30 -30
- package/dist/capabilities/huggingface.json +193 -37
- package/dist/capabilities/hyper.json +23 -23
- package/dist/capabilities/impossibl.json +140 -140
- package/dist/capabilities/inception.json +2 -2
- package/dist/capabilities/inceptron.json +4 -4
- package/dist/capabilities/inco.json +3 -3
- package/dist/capabilities/infer.json +15 -15
- package/dist/capabilities/inferall.json +10 -10
- package/dist/capabilities/inference-coop.json +9 -9
- package/dist/capabilities/inferenceapis.json +9 -9
- package/dist/capabilities/inferris.json +3 -3
- package/dist/capabilities/infersia.json +2 -2
- 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 +12 -12
- package/dist/capabilities/jiekou.json +63 -63
- package/dist/capabilities/jzstoken.json +50 -50
- package/dist/capabilities/keln.json +14 -21
- package/dist/capabilities/kenari.json +123 -120
- package/dist/capabilities/kilo.json +622 -647
- 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 +18 -18
- package/dist/capabilities/korouter.json +29 -29
- package/dist/capabilities/kunavo.json +10 -10
- package/dist/capabilities/liquid.json +11 -11
- package/dist/capabilities/lithosai.json +2 -2
- package/dist/capabilities/llmgateway-providers.json +932 -905
- package/dist/capabilities/llmgateway.json +336 -336
- package/dist/capabilities/llmtr.json +22 -22
- package/dist/capabilities/logits.json +2 -2
- package/dist/capabilities/longcat.json +2 -7
- package/dist/capabilities/lowrouter.json +54 -54
- package/dist/capabilities/lyceum.json +12 -12
- package/dist/capabilities/melious.json +13 -13
- package/dist/capabilities/merge-gateway.json +260 -260
- package/dist/capabilities/meta.json +7 -7
- package/dist/capabilities/mistral.json +20 -20
- package/dist/capabilities/mixlayer.json +4 -4
- package/dist/capabilities/modal.json +10 -10
- package/dist/capabilities/model-oracle-ai.json +25 -25
- package/dist/capabilities/modelis.json +20 -20
- package/dist/capabilities/modular.json +6 -6
- 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 +11 -11
- package/dist/capabilities/munito-eu.json +6 -6
- package/dist/capabilities/munito.json +6 -6
- package/dist/capabilities/nan.json +27 -27
- package/dist/capabilities/nano-gpt.json +578 -578
- package/dist/capabilities/nearai.json +84 -84
- package/dist/capabilities/nebius.json +37 -28
- package/dist/capabilities/neon.json +126 -126
- package/dist/capabilities/neuralwatt.json +41 -41
- package/dist/capabilities/nokeep.json +4 -4
- package/dist/capabilities/novita-ai.json +154 -154
- package/dist/capabilities/nvidia.json +35 -35
- package/dist/capabilities/oathbreaker.json +2 -2
- package/dist/capabilities/obscurify.json +32 -32
- package/dist/capabilities/oci.json +7 -7
- package/dist/capabilities/ofox.json +357 -357
- package/dist/capabilities/ollama-cloud.json +56 -56
- package/dist/capabilities/openai.json +51 -51
- package/dist/capabilities/opencode-go.json +85 -84
- package/dist/capabilities/openrouter.json +542 -567
- package/dist/capabilities/opper.json +30 -24
- package/dist/capabilities/orcarouter.json +236 -236
- package/dist/capabilities/outerlabs.json +32 -32
- package/dist/capabilities/ovhcloud.json +7 -7
- package/dist/capabilities/pareto.json +6 -6
- package/dist/capabilities/pendra.json +4 -4
- package/dist/capabilities/perplexity-agent.json +61 -61
- package/dist/capabilities/phala.json +34 -34
- package/dist/capabilities/pioneer.json +30 -30
- package/dist/capabilities/poe.json +136 -136
- package/dist/capabilities/powerspring.json +13 -13
- package/dist/capabilities/primalabs.json +10 -10
- package/dist/capabilities/prime.json +124 -107
- package/dist/capabilities/privatemode-ai.json +14 -14
- package/dist/capabilities/proxystacks.json +6 -6
- package/dist/capabilities/qiniu-ai.json +16 -16
- package/dist/capabilities/refuseless.json +6 -6
- package/dist/capabilities/regolo-ai.json +6 -6
- package/dist/capabilities/requesty.json +172 -172
- package/dist/capabilities/ruapi.json +17 -17
- package/dist/capabilities/runcrate.json +5 -5
- package/dist/capabilities/runinfra.json +13 -13
- package/dist/capabilities/sakana.json +6 -6
- package/dist/capabilities/sambanova.json +9 -9
- package/dist/capabilities/sandbase.json +27 -27
- package/dist/capabilities/sarvam.json +12 -12
- package/dist/capabilities/scaleway.json +14 -14
- package/dist/capabilities/scnet-token-plan.json +9 -9
- package/dist/capabilities/scx-ai.json +26 -26
- package/dist/capabilities/sensenova.json +12 -12
- package/dist/capabilities/siliconflow-cn.json +49 -49
- package/dist/capabilities/siliconflow.json +46 -46
- package/dist/capabilities/snowflake-cortex.json +20 -20
- package/dist/capabilities/sokkan.json +7 -7
- package/dist/capabilities/sparrowcodes.json +25 -25
- package/dist/capabilities/standardcompute.json +102 -102
- package/dist/capabilities/steadyrouter.json +40 -40
- package/dist/capabilities/stepfun-ai-step-plan.json +6 -6
- package/dist/capabilities/stepfun-ai.json +15 -8
- package/dist/capabilities/stepfun-step-plan.json +15 -8
- package/dist/capabilities/stepfun.json +15 -8
- package/dist/capabilities/stepping-stone.json +16 -16
- package/dist/capabilities/synthetic.json +13 -13
- package/dist/capabilities/synthorai.json +19 -19
- package/dist/capabilities/teamorouter.json +24 -24
- package/dist/capabilities/teapot-router.json +13 -13
- package/dist/capabilities/tencent-coding-plan.json +1 -23
- package/dist/capabilities/tencent-token-plan.json +60 -23
- package/dist/capabilities/tencent-tokenhub.json +182 -7
- package/dist/capabilities/tensorx.json +50 -50
- package/dist/capabilities/tenstorrent.json +6 -6
- package/dist/capabilities/the-grid-ai.json +28 -28
- package/dist/capabilities/thinkingmachines.json +72 -55
- package/dist/capabilities/tinfoil.json +13 -13
- package/dist/capabilities/toapis.json +2 -2
- package/dist/capabilities/togetherai.json +54 -83
- package/dist/capabilities/tokengo.json +25 -25
- package/dist/capabilities/tokenify.json +9 -9
- package/dist/capabilities/trustedrouter.json +4 -4
- package/dist/capabilities/trustedtokens.json +17 -17
- package/dist/capabilities/umans-ai-coding-plan.json +13 -13
- package/dist/capabilities/umans-ai.json +10 -10
- package/dist/capabilities/unrestricted.json +6 -6
- package/dist/capabilities/uplinkswitch.json +21 -21
- package/dist/capabilities/upstage.json +4 -4
- package/dist/capabilities/vancine.json +23 -23
- package/dist/capabilities/vercel.json +540 -527
- package/dist/capabilities/vivgrid.json +80 -80
- package/dist/capabilities/volcengine-coding-plan.json +24 -54
- package/dist/capabilities/volcengine.json +55 -60
- package/dist/capabilities/vultr.json +24 -24
- package/dist/capabilities/wafer.ai.json +19 -19
- package/dist/capabilities/wallaby.json +5 -5
- package/dist/capabilities/wally.json +11 -11
- package/dist/capabilities/wandb.json +21 -21
- package/dist/capabilities/watt.json +24 -24
- package/dist/capabilities/xai.json +7 -7
- package/dist/capabilities/xiaomi-token-plan-ams.json +2 -12
- package/dist/capabilities/xiaomi-token-plan-cn.json +2 -12
- package/dist/capabilities/xiaomi-token-plan-sgp.json +2 -12
- package/dist/capabilities/xiaomi.json +3 -25
- package/dist/capabilities/xpersona.json +13 -13
- package/dist/capabilities/xxapi.json +31 -31
- package/dist/capabilities/zai-coding-plan.json +18 -18
- package/dist/capabilities/zai.json +49 -26
- package/dist/capabilities/zenifra.json +26 -26
- package/dist/capabilities/zenmux.json +205 -205
- package/dist/capabilities/zerogpu.json +11 -11
- package/dist/capabilities/zhipuai-coding-plan.json +6 -6
- package/dist/capabilities/zhipuai.json +39 -24
- package/dist/capabilities/zro.json +6 -6
- package/dist/channels/index.cjs +2 -2
- package/dist/channels/index.js +2 -2
- package/dist/{channels-Dx4jiXeK.js → channels-Cz1y3W6u.js} +1 -1
- package/dist/{channels-q6qnuRNV.cjs → channels-DQg4v_gm.cjs} +1 -1
- package/dist/coding-agent/index.cjs +2 -2
- package/dist/coding-agent/index.js +2 -2
- package/dist/datasets/dataset.d.ts +13 -6
- package/dist/datasets/experiment/durable.d.ts +16 -0
- package/dist/datasets/experiment/index.d.ts +2 -1
- package/dist/datasets/experiment/item.d.ts +26 -4
- package/dist/datasets/experiment/retries.d.ts +18 -0
- package/dist/datasets/experiment/types.d.ts +18 -0
- package/dist/datasets/experiment/workflow-id.d.ts +7 -0
- package/dist/datasets/experiment/workflow.d.ts +74 -0
- package/dist/datasets/index.cjs +3 -2
- package/dist/datasets/index.d.ts +2 -1
- package/dist/datasets/index.js +3 -3
- package/dist/docs/SKILL.md +4 -3
- package/dist/docs/assets/SOURCE_MAP.json +928 -903
- package/dist/docs/references/docs-deployment-workers.md +1 -1
- package/dist/docs/references/docs-evals-experiments.md +29 -1
- package/dist/docs/references/docs-harness-background-tasks.md +4 -1
- package/dist/docs/references/docs-harness-durable-agents.md +9 -5
- package/dist/docs/references/docs-knowledge-agents-and-tools.md +1 -0
- package/dist/docs/references/docs-knowledge-importers.md +195 -0
- package/dist/docs/references/docs-knowledge-load-your-content.md +2 -2
- package/dist/docs/references/docs-knowledge-overview.md +1 -1
- package/dist/docs/references/docs-mastra-platform-observability-overview.md +1 -1
- package/dist/docs/references/docs-sandbox-filesystem.md +1 -1
- package/dist/docs/references/docs-server-pubsub.md +51 -8
- package/dist/docs/references/docs-signals-running-across-processes.md +2 -0
- package/dist/docs/references/docs-signals-thread-streams.md +1 -1
- package/dist/docs/references/docs-studio-auth.md +54 -7
- package/dist/docs/references/docs-workflows-overview.md +1 -1
- package/dist/docs/references/docs-workflows-scheduled-workflows.md +1 -1
- package/dist/docs/references/integrations-auth-clerk.md +48 -4
- package/dist/docs/references/integrations-channels-slack.md +4 -2
- package/dist/docs/references/integrations.md +6 -0
- package/dist/docs/references/reference-agents-agent.md +3 -1
- package/dist/docs/references/reference-agents-channels.md +116 -27
- package/dist/docs/references/reference-agents-durable-agent.md +12 -4
- package/dist/docs/references/reference-auth-clerk.md +21 -1
- package/dist/docs/references/reference-datasets-runExperimentItem.md +13 -1
- package/dist/docs/references/reference-datasets-startExperimentAsync.md +3 -1
- package/dist/docs/references/reference-editor-mastra-editor.md +3 -1
- package/dist/docs/references/reference-knowledge-knowledge-class.md +13 -6
- package/dist/docs/references/reference-knowledge-knowledge-tools.md +43 -20
- package/dist/docs/references/reference-memory-observational-memory.md +2 -2
- package/dist/docs/references/reference-processors-moderation-processor.md +2 -2
- package/dist/docs/references/reference-pubsub-base.md +5 -1
- package/dist/docs/references/reference-pubsub-event-emitter.md +2 -0
- package/dist/docs/references/reference-pubsub-redis-streams.md +1 -1
- package/dist/docs/references/reference-pubsub-unix-socket-pubsub.md +2 -0
- package/dist/docs/references/reference-streaming-ChunkType.md +3 -3
- package/dist/docs/references/reference-workers-overview.md +1 -1
- package/dist/docs/references/reference-workflows-run-methods-start.md +23 -0
- package/dist/docs/references/reference-workflows-run-methods-timeTravel.md +4 -0
- package/dist/docs/references/reference-workflows-run.md +1 -1
- package/dist/docs/references/reference-workspace-local-sandbox.md +2 -0
- package/dist/error/index.cjs +1 -1
- package/dist/error/index.js +1 -1
- package/dist/{error-C9d_24w-.js → error-BLwEXqOK.js} +2 -2
- package/dist/{error-BRQf2ku0.cjs → error-BdEvO8za.cjs} +2 -2
- package/dist/evals/index.cjs +1 -1
- package/dist/evals/index.js +1 -1
- package/dist/evals/scoreTraces/index.cjs +1 -1
- package/dist/evals/scoreTraces/index.js +1 -1
- package/dist/events/caching-pubsub.d.ts +1 -0
- package/dist/events/event-emitter/index.d.ts +12 -5
- package/dist/events/index.cjs +15 -1
- package/dist/events/index.js +15 -1
- package/dist/events/pubsub.d.ts +29 -0
- package/dist/events/reach.d.ts +11 -0
- package/dist/events/unix-socket-pubsub.d.ts +14 -0
- package/dist/features/index.cjs +1 -0
- package/dist/features/index.js +1 -0
- package/dist/{filesystem-B5X-5G0x.js → filesystem-B8ad6kAW.js} +1 -1
- package/dist/{filesystem-BDSpwBke.cjs → filesystem-BB5YWXH-.cjs} +1 -1
- package/dist/{filesystem-DzM9pcQ8.js → filesystem-BDHUxbHn.js} +1 -1
- package/dist/{filesystem-B0AZrbj8.cjs → filesystem-BP5yz5LG.cjs} +1 -1
- package/dist/{filesystem-BsdkC311.js → filesystem-B_afSgYk.js} +1 -1
- package/dist/{filesystem-C-cyJfi1.cjs → filesystem-BaOJOc-V.cjs} +1 -1
- package/dist/{filesystem-B3s0WRud.js → filesystem-BhYgU8qg.js} +1 -1
- package/dist/{filesystem-DzfqVTO_.js → filesystem-CLBVmR5j.js} +1 -1
- package/dist/{filesystem-CEbD_77-.cjs → filesystem-Cgxc2a_-.cjs} +1 -1
- package/dist/{filesystem-Cv79mHRk.js → filesystem-ClBOBoDc.js} +1 -1
- package/dist/{filesystem-DsCQiBl2.cjs → filesystem-DVVecqZt.cjs} +1 -1
- package/dist/{filesystem-CUAgLugE.cjs → filesystem-Fpsu7e24.cjs} +1 -1
- package/dist/{filesystem-versioned-Bijb_p9l.js → filesystem-versioned-BL1ojJLo.js} +1 -1
- package/dist/{filesystem-versioned-DZGyPbNC.cjs → filesystem-versioned-BavRtYWJ.cjs} +1 -1
- package/dist/harness/index.cjs +1 -1
- package/dist/harness/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/knowledge/config.d.ts +10 -0
- package/dist/knowledge/host-writes.d.ts +10 -0
- package/dist/knowledge/importers/conformance.d.ts +25 -0
- package/dist/knowledge/importers/define.d.ts +204 -0
- package/dist/knowledge/importers/host.d.ts +143 -0
- package/dist/knowledge/importers/index.d.ts +12 -0
- package/dist/knowledge/importers/local-host.d.ts +106 -0
- package/dist/knowledge/importers/manifest.d.ts +25 -0
- package/dist/knowledge/importers/runner.d.ts +61 -0
- package/dist/knowledge/importers/sink.d.ts +105 -0
- package/dist/knowledge/importers/types.d.ts +144 -0
- package/dist/knowledge/index.cjs +2715 -8
- package/dist/knowledge/index.d.ts +54 -4
- package/dist/knowledge/index.js +2692 -9
- package/dist/knowledge/instructions.d.ts +1 -1
- package/dist/knowledge/links.d.ts +8 -0
- package/dist/knowledge/pinned-state-processor.d.ts +5 -0
- package/dist/knowledge/pinned.d.ts +4 -1
- package/dist/knowledge/scope-runtime.d.ts +10 -0
- package/dist/llm/index.cjs +3 -3
- package/dist/llm/index.js +3 -3
- package/dist/llm/model/provider-types.generated.d.ts +7812 -7831
- package/dist/llm/model/shared.types.d.ts +31 -0
- package/dist/{llm-CsQuqKPc.cjs → llm-8Av3mSjD.cjs} +2 -2
- package/dist/{llm-DnXK3Pmw.js → llm-B5A5cwJr.js} +2 -2
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +2 -2
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts +2 -2
- package/dist/{manager-BsghM-UL.js → manager-DfWQCJUK.js} +460 -94
- package/dist/{manager-DwFnIrI6.cjs → manager-sv35JY-z.cjs} +476 -92
- package/dist/mastra/index.cjs +1 -1
- package/dist/mastra/index.d.ts +13 -0
- package/dist/mastra/index.js +1 -1
- package/dist/mastra/resolve-agent.d.ts +3 -1
- package/dist/{mastra-B8i1UDZs.js → mastra-CigBrT7X.js} +32 -23
- package/dist/{mastra-Cn5NC6Es.cjs → mastra-D4hvfuxX.cjs} +34 -25
- package/dist/memory/index.cjs +3 -3
- package/dist/memory/index.js +3 -3
- package/dist/{message-list-DPXPXvin.cjs → message-list-Cj0Sq_JP.cjs} +63 -8
- package/dist/{message-list-DEuRl82K.js → message-list-KRbg-TnI.js} +63 -8
- package/dist/{model-CNPfry_X.cjs → model-BK93CMtl.cjs} +1 -1
- package/dist/{model-CsOcWMUt.js → model-CYtXw861.js} +1 -1
- package/dist/{netlify-C-83Fxus.cjs → netlify-BAnn3ouY.cjs} +1 -1
- package/dist/{netlify-C-OpNSGp.js → netlify-CuI1ZrwR.js} +1 -1
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/{output-helpers-JL-HeCbT.cjs → output-helpers-1Zu4Vt9C.cjs} +68 -25
- package/dist/{output-helpers-D4II19No.js → output-helpers-CedRCE17.js} +69 -26
- package/dist/processor-provider/index.cjs +1 -1
- package/dist/processor-provider/index.js +1 -1
- package/dist/processors/abort-signal-scope.d.ts +6 -0
- package/dist/processors/index.cjs +2 -2
- package/dist/processors/index.js +2 -2
- package/dist/{provider-registry-9O-H9osy.cjs → provider-registry-BwuI_IpT.cjs} +21690 -21811
- package/dist/{provider-registry-RZ8EgSe8.js → provider-registry-CmQLzLF_.js} +21690 -21811
- package/dist/provider-registry.json +22113 -22215
- package/dist/{registry-generator-e8sltJls.js → registry-generator-C17V4WfG.js} +1 -1
- package/dist/{registry-generator-DxCX-FiO.cjs → registry-generator-C_0ae7Ce.cjs} +1 -1
- package/dist/{rehydrate-B-wrAN7C.cjs → rehydrate-CDQ4dOYj.cjs} +2 -2
- package/dist/{rehydrate-D3fPgJwp.js → rehydrate-PnaVawGX.js} +2 -2
- package/dist/relevance/index.cjs +2 -2
- package/dist/relevance/index.js +2 -2
- package/dist/{run-registry-5_LQBGn_.cjs → run-registry-BmckDVBk.cjs} +1698 -497
- package/dist/{run-registry-DC03XLeZ.js → run-registry-BwEcwYlU.js} +1614 -467
- package/dist/{source-DDwx-87N.cjs → source-BVOi8Xhp.cjs} +1 -1
- package/dist/{source-Did_2XQc.js → source-fNa6u1kH.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/knowledge/base.d.ts +72 -0
- package/dist/storage/domains/knowledge/importers-inmemory.d.ts +146 -0
- package/dist/storage/domains/knowledge/importers.d.ts +287 -0
- package/dist/storage/domains/knowledge/index.d.ts +1 -0
- package/dist/storage/domains/knowledge/inmemory.d.ts +12 -0
- package/dist/storage/domains/knowledge/pages-inmemory.d.ts +12 -1
- package/dist/storage/domains/knowledge/pages.d.ts +25 -7
- 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/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 +15 -10
- package/dist/storage/index.js +11 -11
- package/dist/stream/base/output.d.ts +59 -15
- package/dist/stream/index.cjs +2 -2
- package/dist/stream/index.js +2 -2
- package/dist/stream/types.d.ts +24 -2
- package/dist/{stream-4aNIw_TQ.cjs → stream-0kdqBOOn.cjs} +64 -9
- package/dist/{stream-CJUm6EAH.js → stream-D1y9GzoD.js} +29 -10
- 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-FEEwHfmg.js → tool-loop-agent-BdjWGVIb.js} +4 -4
- package/dist/{tool-loop-agent-Dn0QCB9n.cjs → tool-loop-agent-kWaZAT6Q.cjs} +4 -4
- package/dist/tools/types.d.ts +27 -1
- package/dist/{utils-DY01hxVd.cjs → utils-BKUCaZ12.cjs} +1 -1
- package/dist/{utils-Bd_y1_a-.js → utils-GHY3hmLx.js} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/{validate-CX0yQo_q.js → validate-CB-q-R2F.js} +1 -1
- package/dist/{validate-CuB_1Zd3.cjs → validate-De92squ7.cjs} +1 -1
- package/dist/vector/index.cjs +2 -2
- package/dist/vector/index.js +2 -2
- package/dist/worker/index.cjs +1 -1
- package/dist/worker/index.js +1 -1
- package/dist/{worker-CbaSmip-.cjs → worker-BbWPQuPR.cjs} +2 -2
- package/dist/{worker-B80xkcKG.js → worker-C3u_xzY2.js} +2 -2
- package/dist/{worker-GsGIxPMa.cjs → worker-CAKvQj9_.cjs} +2 -2
- package/dist/{worker-DSEfMPmq.js → worker-Kwm8EKcj.js} +2 -2
- package/dist/{workflow-CnBPXTpv.cjs → workflow-CSjXeNcR.cjs} +4 -4
- package/dist/{workflow-CZHY_C85.js → workflow-CVmI1Sw-.js} +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/setup-warning.d.ts +18 -0
- package/dist/workflows/evented/workflow-event-processor/run-status.d.ts +37 -0
- package/dist/workflows/evented/workflow.d.ts +10 -0
- package/dist/workflows/index.cjs +4 -4
- package/dist/workflows/index.js +4 -4
- package/dist/workflows/workflow.d.ts +6 -1
- package/dist/workspace/filesystem/filesystem.d.ts +5 -0
- package/dist/workspace/index.cjs +1 -1
- package/dist/workspace/index.js +1 -1
- package/dist/workspace/sandbox/local-sandbox.d.ts +16 -7
- package/dist/workspace/sandbox/native-sandbox/types.d.ts +11 -1
- package/dist/{workspace-D7TIleIt.js → workspace-DY2Nxiyi.js} +235 -34
- package/dist/{workspace-D2drutNg.cjs → workspace-X2RHJZU9.cjs} +235 -34
- package/package.json +7 -7
- package/src/llm/model/provider-types.generated.d.ts +7812 -7831
|
@@ -23,6 +23,12 @@
|
|
|
23
23
|
"qwen3.6-35b-a3b"
|
|
24
24
|
],
|
|
25
25
|
"reasoning": {
|
|
26
|
+
"glm-5.3-flash": [
|
|
27
|
+
{
|
|
28
|
+
"type": "effort",
|
|
29
|
+
"values": ["low", "high", "max"]
|
|
30
|
+
}
|
|
31
|
+
],
|
|
26
32
|
"deepseek-v4.1-flash": [
|
|
27
33
|
{
|
|
28
34
|
"type": "toggle"
|
|
@@ -38,16 +44,9 @@
|
|
|
38
44
|
"values": ["none", "low", "medium", "high", "xhigh"]
|
|
39
45
|
}
|
|
40
46
|
],
|
|
41
|
-
"
|
|
42
|
-
{
|
|
43
|
-
"type": "effort",
|
|
44
|
-
"values": ["low", "high", "max"]
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
"gpt-5.6-luna": [
|
|
47
|
+
"qwen3-30b-a3b-fp8": [
|
|
48
48
|
{
|
|
49
|
-
"type": "
|
|
50
|
-
"values": ["none", "low", "medium", "high", "xhigh", "max"]
|
|
49
|
+
"type": "toggle"
|
|
51
50
|
}
|
|
52
51
|
],
|
|
53
52
|
"qwen3.6-35b-a3b": [
|
|
@@ -55,9 +54,10 @@
|
|
|
55
54
|
"type": "toggle"
|
|
56
55
|
}
|
|
57
56
|
],
|
|
58
|
-
"
|
|
57
|
+
"gpt-5.6-luna": [
|
|
59
58
|
{
|
|
60
|
-
"type": "
|
|
59
|
+
"type": "effort",
|
|
60
|
+
"values": ["none", "low", "medium", "high", "xhigh", "max"]
|
|
61
61
|
}
|
|
62
62
|
]
|
|
63
63
|
}
|
|
@@ -15,12 +15,6 @@
|
|
|
15
15
|
"values": ["low", "high", "max"]
|
|
16
16
|
}
|
|
17
17
|
],
|
|
18
|
-
"glm-5.3-highspeed": [
|
|
19
|
-
{
|
|
20
|
-
"type": "effort",
|
|
21
|
-
"values": ["low", "high", "max"]
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
18
|
"glm-5.3-flash": [
|
|
25
19
|
{
|
|
26
20
|
"type": "effort",
|
|
@@ -31,6 +25,12 @@
|
|
|
31
25
|
{
|
|
32
26
|
"type": "toggle"
|
|
33
27
|
}
|
|
28
|
+
],
|
|
29
|
+
"glm-5.3-highspeed": [
|
|
30
|
+
{
|
|
31
|
+
"type": "effort",
|
|
32
|
+
"values": ["low", "high", "max"]
|
|
33
|
+
}
|
|
34
34
|
]
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"attachment": [
|
|
2
|
+
"attachment": [
|
|
3
|
+
"glm-4.5v",
|
|
4
|
+
"glm-4.6v",
|
|
5
|
+
"glm-4.6v-flash",
|
|
6
|
+
"glm-5.3-flash",
|
|
7
|
+
"glm-5.3-flashx",
|
|
8
|
+
"glm-5.3-flashx-legal",
|
|
9
|
+
"glm-5v-turbo"
|
|
10
|
+
],
|
|
3
11
|
"temperature": [
|
|
4
12
|
"glm-4.5",
|
|
5
13
|
"glm-4.5-air",
|
|
@@ -17,27 +25,22 @@
|
|
|
17
25
|
"glm-5.3",
|
|
18
26
|
"glm-5.3-flash",
|
|
19
27
|
"glm-5.3-flashx",
|
|
28
|
+
"glm-5.3-flashx-legal",
|
|
20
29
|
"glm-5v-turbo"
|
|
21
30
|
],
|
|
22
|
-
"structuredOutput": ["glm-5.1", "glm-5.2", "glm-5.3", "glm-5.3-flash", "glm-5.3-flashx"],
|
|
31
|
+
"structuredOutput": ["glm-5.1", "glm-5.2", "glm-5.3", "glm-5.3-flash", "glm-5.3-flashx", "glm-5.3-flashx-legal"],
|
|
23
32
|
"reasoning": {
|
|
24
|
-
"glm-
|
|
25
|
-
{
|
|
26
|
-
"type": "effort",
|
|
27
|
-
"values": ["low", "high", "max"]
|
|
28
|
-
}
|
|
29
|
-
],
|
|
30
|
-
"glm-4.5-flash": [
|
|
33
|
+
"glm-4.6v-flash": [
|
|
31
34
|
{
|
|
32
35
|
"type": "toggle"
|
|
33
36
|
}
|
|
34
37
|
],
|
|
35
|
-
"glm-
|
|
38
|
+
"glm-5": [
|
|
36
39
|
{
|
|
37
40
|
"type": "toggle"
|
|
38
41
|
}
|
|
39
42
|
],
|
|
40
|
-
"glm-4.
|
|
43
|
+
"glm-4.5-flash": [
|
|
41
44
|
{
|
|
42
45
|
"type": "toggle"
|
|
43
46
|
}
|
|
@@ -47,42 +50,53 @@
|
|
|
47
50
|
"type": "toggle"
|
|
48
51
|
}
|
|
49
52
|
],
|
|
50
|
-
"glm-5
|
|
53
|
+
"glm-4.5": [
|
|
51
54
|
{
|
|
52
55
|
"type": "toggle"
|
|
53
|
-
}
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"glm-5.3": [
|
|
54
59
|
{
|
|
55
60
|
"type": "effort",
|
|
56
|
-
"values": ["high", "max"]
|
|
61
|
+
"values": ["low", "high", "max"]
|
|
57
62
|
}
|
|
58
63
|
],
|
|
59
|
-
"glm-5.
|
|
64
|
+
"glm-5.1": [
|
|
65
|
+
{
|
|
66
|
+
"type": "toggle"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"glm-5.3-flash": [
|
|
60
70
|
{
|
|
61
71
|
"type": "effort",
|
|
62
72
|
"values": ["low", "high", "max"]
|
|
63
73
|
}
|
|
64
74
|
],
|
|
65
|
-
"glm-
|
|
75
|
+
"glm-5.2": [
|
|
66
76
|
{
|
|
67
77
|
"type": "toggle"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"type": "effort",
|
|
81
|
+
"values": ["high", "max"]
|
|
68
82
|
}
|
|
69
83
|
],
|
|
70
|
-
"glm-4.
|
|
84
|
+
"glm-4.6": [
|
|
71
85
|
{
|
|
72
86
|
"type": "toggle"
|
|
73
87
|
}
|
|
74
88
|
],
|
|
75
|
-
"glm-4.
|
|
89
|
+
"glm-4.5-air": [
|
|
76
90
|
{
|
|
77
91
|
"type": "toggle"
|
|
78
92
|
}
|
|
79
93
|
],
|
|
80
|
-
"glm-
|
|
94
|
+
"glm-4.6v": [
|
|
81
95
|
{
|
|
82
96
|
"type": "toggle"
|
|
83
97
|
}
|
|
84
98
|
],
|
|
85
|
-
"glm-5.3-
|
|
99
|
+
"glm-5.3-flashx-legal": [
|
|
86
100
|
{
|
|
87
101
|
"type": "effort",
|
|
88
102
|
"values": ["low", "high", "max"]
|
|
@@ -98,17 +112,18 @@
|
|
|
98
112
|
"type": "toggle"
|
|
99
113
|
}
|
|
100
114
|
],
|
|
101
|
-
"glm-5": [
|
|
115
|
+
"glm-5.3-flashx": [
|
|
102
116
|
{
|
|
103
|
-
"type": "
|
|
117
|
+
"type": "effort",
|
|
118
|
+
"values": ["low", "high", "max"]
|
|
104
119
|
}
|
|
105
120
|
],
|
|
106
|
-
"glm-4.
|
|
121
|
+
"glm-4.5v": [
|
|
107
122
|
{
|
|
108
123
|
"type": "toggle"
|
|
109
124
|
}
|
|
110
125
|
],
|
|
111
|
-
"glm-4.
|
|
126
|
+
"glm-4.7": [
|
|
112
127
|
{
|
|
113
128
|
"type": "toggle"
|
|
114
129
|
}
|
|
@@ -9,25 +9,25 @@
|
|
|
9
9
|
"values": ["low", "high", "max"]
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
|
-
"
|
|
12
|
+
"glm-5.3-flash": [
|
|
13
13
|
{
|
|
14
14
|
"type": "effort",
|
|
15
|
-
"values": ["
|
|
15
|
+
"values": ["low", "high", "max"]
|
|
16
16
|
}
|
|
17
17
|
],
|
|
18
|
-
"
|
|
18
|
+
"deepseek-v4.1-flash": [
|
|
19
19
|
{
|
|
20
20
|
"type": "effort",
|
|
21
|
-
"values": ["low", "high", "max"]
|
|
21
|
+
"values": ["none", "low", "high", "max"]
|
|
22
22
|
}
|
|
23
23
|
],
|
|
24
|
-
"
|
|
24
|
+
"dolly1-security": [
|
|
25
25
|
{
|
|
26
26
|
"type": "effort",
|
|
27
27
|
"values": ["low", "high", "max"]
|
|
28
28
|
}
|
|
29
29
|
],
|
|
30
|
-
"
|
|
30
|
+
"dolly2-security": [
|
|
31
31
|
{
|
|
32
32
|
"type": "effort",
|
|
33
33
|
"values": ["low", "high", "max"]
|
package/dist/channels/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_run_registry = require("../run-registry-
|
|
3
|
-
const require_channels = require("../channels-
|
|
2
|
+
const require_run_registry = require("../run-registry-BmckDVBk.cjs");
|
|
3
|
+
const require_channels = require("../channels-DQg4v_gm.cjs");
|
|
4
4
|
exports.AgentChannels = require_run_registry.AgentChannels;
|
|
5
5
|
exports.AgentControllerChannels = require_channels.AgentControllerChannels;
|
|
6
6
|
exports.CHAT_CHANNEL_RENDER_CONTEXT_KEY = require_run_registry.CHAT_CHANNEL_RENDER_CONTEXT_KEY;
|
package/dist/channels/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { An as
|
|
2
|
-
import { t as AgentControllerChannels } from "../channels-
|
|
1
|
+
import { An as resolveWaitUntil, Bn as createChannelToolScope, Fn as renderBuiltInToolEvent, Hn as resolveChannelToolsSettings, In as formatToolApproval, Ln as ChannelSessionRejectedError, Mn as MastraStateAdapter, Nn as ChatChannelProcessor, Pn as CHAT_CHANNEL_RENDER_CONTEXT_KEY, Rn as DEFAULT_CHANNEL_TOOLS_SETTINGS, Un as toChatLogger, Vn as createChannelTools, jn as defaultTypingStatus, kn as AgentChannels, zn as channelToolScopeResolver } from "../run-registry-BwEcwYlU.js";
|
|
2
|
+
import { t as AgentControllerChannels } from "../channels-Cz1y3W6u.js";
|
|
3
3
|
export { AgentChannels, AgentControllerChannels, CHAT_CHANNEL_RENDER_CONTEXT_KEY, ChannelSessionRejectedError, ChatChannelProcessor, DEFAULT_CHANNEL_TOOLS_SETTINGS, MastraStateAdapter, channelToolScopeResolver, createChannelToolScope, createChannelTools, defaultTypingStatus, formatToolApproval, renderBuiltInToolEvent, resolveChannelToolsSettings, resolveWaitUntil, toChatLogger };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ln as ChannelSessionRejectedError, kn as AgentChannels } from "./run-registry-BwEcwYlU.js";
|
|
2
2
|
import { i as MastraFGAPermissions } from "./ee-iTj2bRDt-By_B9ngH.js";
|
|
3
3
|
// src/channels/agent-controller-channels.ts
|
|
4
4
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_run_registry = require("../run-registry-
|
|
2
|
+
const require_run_registry = require("../run-registry-BmckDVBk.cjs");
|
|
3
3
|
require("../state-processor-kRNZ38Nf.cjs");
|
|
4
4
|
const require_signals = require("../signals-B1JSj-Ew.cjs");
|
|
5
|
-
const require_workspace = require("../workspace-
|
|
5
|
+
const require_workspace = require("../workspace-X2RHJZU9.cjs");
|
|
6
6
|
// src/coding-agent/prompt.ts
|
|
7
7
|
function buildBasePrompt(ctx) {
|
|
8
8
|
const commonBinaries = formatCommonBinaries(ctx.commonBinaries);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { N as Agent, vs as defaultStabilityErrorProcessors, zo as CyberRefusalHandler } from "../run-registry-BwEcwYlU.js";
|
|
2
2
|
import "../state-processor-B9kxpM53.js";
|
|
3
3
|
import { t as TaskSignalProvider } from "../signals-De9VnwL2.js";
|
|
4
|
-
import { N as LocalSandbox, at as LocalFilesystem, o as Workspace } from "../workspace-
|
|
4
|
+
import { N as LocalSandbox, at as LocalFilesystem, o as Workspace } from "../workspace-DY2Nxiyi.js";
|
|
5
5
|
// src/coding-agent/prompt.ts
|
|
6
6
|
function buildBasePrompt(ctx) {
|
|
7
7
|
const commonBinaries = formatCommonBinaries(ctx.commonBinaries);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { Mastra } from '../mastra/index.js';
|
|
2
2
|
import type { DatasetRecord, DatasetItem, DatasetItemPayload, DatasetItemRow, DatasetTenancyFilters, DatasetVersion, Experiment, ExperimentProvenance, ExperimentResult, ExperimentResultStatus, ExperimentStatus, ExperimentTenancyFilters, ListDatasetItemsInput, ListDatasetItemsOutput, ListExperimentResultsOutput, ListExperimentsInput, ListExperimentsOutput, ListExperimentResultsInput, TargetType, UpdateDatasetInput, UpdateDatasetItemInput, UpdateExperimentResultInput } from '../storage/types.js';
|
|
3
3
|
import { executeExperimentItem } from './experiment/index.js';
|
|
4
|
-
import type {
|
|
4
|
+
import type { ExperimentItemRunOptions } from './experiment/item.js';
|
|
5
|
+
import type { StartExperimentAsyncConfig, StartExperimentConfig, ExperimentSummary } from './experiment/types.js';
|
|
5
6
|
/**
|
|
6
7
|
* Public API for interacting with a single dataset.
|
|
7
8
|
*
|
|
@@ -127,8 +128,11 @@ export declare class Dataset {
|
|
|
127
128
|
/**
|
|
128
129
|
* Start an experiment asynchronously (fire-and-forget).
|
|
129
130
|
* Returns immediately with the experiment ID and pending status.
|
|
131
|
+
*
|
|
132
|
+
* With `durable: true` the experiment runs as an evented workflow whose run
|
|
133
|
+
* id is the experiment id; see {@link StartExperimentAsyncConfig.durable}.
|
|
130
134
|
*/
|
|
131
|
-
startExperimentAsync<I = unknown, O = unknown, E = unknown>(
|
|
135
|
+
startExperimentAsync<I = unknown, O = unknown, E = unknown>(asyncConfig: StartExperimentAsyncConfig<I, O, E>): Promise<{
|
|
132
136
|
experimentId: string;
|
|
133
137
|
status: 'pending';
|
|
134
138
|
totalItems: number;
|
|
@@ -258,14 +262,17 @@ export declare class Dataset {
|
|
|
258
262
|
* keyed by `(experimentId, itemId, attempt)`.
|
|
259
263
|
*
|
|
260
264
|
* Built for caller-driven loops (mode 2): a durable orchestrator (e.g. a
|
|
261
|
-
* Temporal workflow) fans out one call per item
|
|
262
|
-
*
|
|
263
|
-
*
|
|
265
|
+
* Temporal workflow) fans out one call per item — a retried call converges
|
|
266
|
+
* on the same row. Requires an experiment created with a target via
|
|
267
|
+
* {@link Dataset.createExperiment}. The run options (`agentModel`,
|
|
268
|
+
* `unmockedToolPolicy`, `itemTimeout`, `maxRetries`, `versions`) behave as
|
|
269
|
+
* they do in {@link Dataset.startExperiment}; the experiment record doesn't
|
|
270
|
+
* store them, so pass them on every call.
|
|
264
271
|
*
|
|
265
272
|
* Scorer precedence: experiment `scorers` → item `scorerIds` → dataset
|
|
266
273
|
* `scorerIds` → none.
|
|
267
274
|
*/
|
|
268
|
-
runExperimentItem(args: {
|
|
275
|
+
runExperimentItem(args: ExperimentItemRunOptions & {
|
|
269
276
|
experimentId: string;
|
|
270
277
|
itemId: string;
|
|
271
278
|
/** Zero-based repetition index for repeated trials. Defaults to `0`. */
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { StartExperimentConfig } from './types.js';
|
|
2
|
+
import type { ExperimentWorkflowInput } from './workflow.js';
|
|
3
|
+
/** Error id thrown when `durable: true` is combined with an option a durable run can't carry. */
|
|
4
|
+
export declare const EXPERIMENT_NOT_DURABLE = "EXPERIMENT_NOT_DURABLE";
|
|
5
|
+
export type DurableRunOptions = Omit<ExperimentWorkflowInput, 'datasetId' | 'experimentId' | 'organizationId' | 'projectId'>;
|
|
6
|
+
/**
|
|
7
|
+
* Check a `durable: true` config and return the run options the experiment
|
|
8
|
+
* workflow carries, plus the scorer ids to pin on the experiment. A durable run may continue in another process, so every
|
|
9
|
+
* option has to be JSON: functions, signals, model objects and scorer objects
|
|
10
|
+
* are rejected before anything is created.
|
|
11
|
+
*/
|
|
12
|
+
export declare function durableRunOptions<I, O, E>(config: StartExperimentConfig<I, O, E>): {
|
|
13
|
+
runOptions: DurableRunOptions;
|
|
14
|
+
scorerIds: string[] | undefined;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=durable.d.ts.map
|
|
@@ -2,7 +2,8 @@ import type { Mastra } from '../../mastra/index.js';
|
|
|
2
2
|
import type { ExperimentConfig, ExperimentSummary } from './types.js';
|
|
3
3
|
/** Error code recorded on an item whose `beforeEach` hook threw. */
|
|
4
4
|
export declare const EXPERIMENT_ITEM_BEFORE_EACH_FAILED = "EXPERIMENT_ITEM_BEFORE_EACH_FAILED";
|
|
5
|
-
export type { AgentExperimentOutput, DataItem, ExperimentConfig, ExperimentResultOutput, ScorerExperimentOutput, ExperimentHookArgs, ExperimentHookItem, ExperimentItemHookArgs, ExperimentItemResultHookArgs, ExperimentRunResultHookArgs, ExperimentSummary, ItemWithScores, ItemResult, ScorerResult, StartExperimentConfig, } from './types.js';
|
|
5
|
+
export type { AgentExperimentOutput, DataItem, ExperimentConfig, ExperimentResultOutput, ScorerExperimentOutput, ExperimentHookArgs, ExperimentHookItem, ExperimentItemHookArgs, ExperimentItemResultHookArgs, ExperimentRunResultHookArgs, ExperimentSummary, ItemWithScores, ItemResult, ScorerResult, StartExperimentAsyncConfig, StartExperimentConfig, } from './types.js';
|
|
6
|
+
export { EXPERIMENT_NOT_DURABLE } from './durable.js';
|
|
6
7
|
export type { ExperimentEvent, ExperimentEventObserver, ExperimentItemCompletedEvent, ExperimentJsonValue, ExperimentRunFinishedEvent, ExperimentRunStartedEvent, } from './events.js';
|
|
7
8
|
export { executeTarget, type Target, type ExecutionResult } from './executor.js';
|
|
8
9
|
export { EXPERIMENT_ITEM_SCORER_NOT_FOUND, resolveScorers, runScorersForItem } from './scorer.js';
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { TrajectoryExpectation } from '../../evals/types.js';
|
|
2
|
+
import type { MastraModelConfig } from '../../llm/model/shared.types.js';
|
|
2
3
|
import type { Mastra } from '../../mastra/index.js';
|
|
4
|
+
import type { VersionOverrides } from '../../mastra/types.js';
|
|
3
5
|
import type { Experiment, ExperimentResult } from '../../storage/types.js';
|
|
6
|
+
import type { ItemToolMock, UnmockedToolPolicy } from './tool-mocks.js';
|
|
4
7
|
import type { ScorerResult } from './types.js';
|
|
5
8
|
/** Item shape consumed by {@link executeExperimentItem}. */
|
|
6
9
|
export interface ExperimentItemInput {
|
|
@@ -14,8 +17,27 @@ export interface ExperimentItemInput {
|
|
|
14
17
|
metadata?: Record<string, unknown>;
|
|
15
18
|
/** Item-level scorer IDs. An empty array explicitly disables scoring. */
|
|
16
19
|
scorerIds?: string[];
|
|
20
|
+
/** Item-level static tool mocks (agent targets only). */
|
|
21
|
+
toolMocks?: ItemToolMock[];
|
|
22
|
+
/** Item-level override for undeclared agent tool calls. */
|
|
23
|
+
unmockedToolPolicy?: UnmockedToolPolicy;
|
|
17
24
|
}
|
|
18
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Per-item run options. They match the `runExperiment` options of the same name, so an item behaves the same whichever loop runs it.
|
|
27
|
+
*/
|
|
28
|
+
export interface ExperimentItemRunOptions {
|
|
29
|
+
/** Model override for agent targets, passed per call to `agent.generate()`. */
|
|
30
|
+
agentModel?: MastraModelConfig;
|
|
31
|
+
/** Default handling for agent tool calls not declared in the item's `toolMocks` (default: `allow`). */
|
|
32
|
+
unmockedToolPolicy?: UnmockedToolPolicy;
|
|
33
|
+
/** Item execution timeout in milliseconds, covering all retries. */
|
|
34
|
+
itemTimeout?: number;
|
|
35
|
+
/** Retries on failure (default: 0). Abort/timeout and tool-mock errors are never retried. */
|
|
36
|
+
maxRetries?: number;
|
|
37
|
+
/** Version overrides for sub-agent delegation. */
|
|
38
|
+
versions?: VersionOverrides;
|
|
39
|
+
}
|
|
40
|
+
export interface ExecuteExperimentItemArgs extends ExperimentItemRunOptions {
|
|
19
41
|
mastra: Mastra;
|
|
20
42
|
/** The experiment record. Must carry a non-null target. */
|
|
21
43
|
experiment: Experiment;
|
|
@@ -46,9 +68,9 @@ export interface ExecuteExperimentItemOutput {
|
|
|
46
68
|
* ({@link EXPERIMENT_ITEM_SCORER_NOT_FOUND}): the target is not executed and
|
|
47
69
|
* the error is recorded on the row.
|
|
48
70
|
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
71
|
+
* Applies the same per-item run options as the in-process runner (model
|
|
72
|
+
* override, tool mocks, timeout, retries) but excludes its loop-level concerns:
|
|
73
|
+
* hooks, event dispatch, and step scorers.
|
|
52
74
|
*/
|
|
53
75
|
export declare function executeExperimentItem(args: ExecuteExperimentItemArgs): Promise<ExecuteExperimentItemOutput>;
|
|
54
76
|
//# sourceMappingURL=item.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ExecutionResult } from './executor.js';
|
|
2
|
+
/**
|
|
3
|
+
* Run one item, retrying a failed execution up to `maxRetries` times with
|
|
4
|
+
* exponential backoff (1s doubling, capped at 30s, plus up to 20% jitter).
|
|
5
|
+
* Abort/timeout errors and tool-mock failures are never retried. Throws an
|
|
6
|
+
* `AbortError` when `cancelSignal` is aborted between attempts. When
|
|
7
|
+
* `timeoutSignal` (the item timeout) fires during the backoff, the wait ends
|
|
8
|
+
* and the item fails with the timeout error instead of retrying.
|
|
9
|
+
*/
|
|
10
|
+
export declare function executeWithRetries(execute: () => Promise<ExecutionResult>, options: {
|
|
11
|
+
maxRetries: number;
|
|
12
|
+
cancelSignal?: AbortSignal;
|
|
13
|
+
timeoutSignal?: AbortSignal;
|
|
14
|
+
}): Promise<{
|
|
15
|
+
execResult: ExecutionResult;
|
|
16
|
+
retryCount: number;
|
|
17
|
+
}>;
|
|
18
|
+
//# sourceMappingURL=retries.d.ts.map
|
|
@@ -269,6 +269,24 @@ export interface ExperimentConfig<I = unknown, O = unknown, E = unknown> {
|
|
|
269
269
|
* The dataset is always the data source — no datasetId/data needed.
|
|
270
270
|
*/
|
|
271
271
|
export type StartExperimentConfig<I = unknown, O = unknown, E = unknown> = Omit<ExperimentConfig<I, O, E>, 'datasetId' | 'data' | 'experimentId' | 'filters'>;
|
|
272
|
+
/**
|
|
273
|
+
* Configuration for {@link Dataset.startExperimentAsync}.
|
|
274
|
+
*/
|
|
275
|
+
export type StartExperimentAsyncConfig<I = unknown, O = unknown, E = unknown> = StartExperimentConfig<I, O, E> & {
|
|
276
|
+
/**
|
|
277
|
+
* Run the experiment as an evented workflow, one step per item, instead of a
|
|
278
|
+
* promise in the starting process. Each item is redelivered if its process
|
|
279
|
+
* dies, so the experiment still finishes. Needs a pubsub that redelivers
|
|
280
|
+
* (e.g. Redis Streams) and workers or a push handler to be durable; on the
|
|
281
|
+
* default in-memory pubsub it runs in process.
|
|
282
|
+
*
|
|
283
|
+
* Every option must be JSON: a registered target, scorer ids, and a
|
|
284
|
+
* `provider/model` string for `agentModel`. Inline `task`, hooks, `onEvent`,
|
|
285
|
+
* `signal`, scorer objects and `persistence: 'none'` throw
|
|
286
|
+
* `EXPERIMENT_NOT_DURABLE`.
|
|
287
|
+
*/
|
|
288
|
+
durable?: boolean;
|
|
289
|
+
};
|
|
272
290
|
/**
|
|
273
291
|
* Persisted output of an agent target. Fields whose shape depends on the agent
|
|
274
292
|
* (structured output, tool payloads, provider usage) are kept loose.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Id of the internal evented workflow that runs durable experiments. Lives in
|
|
3
|
+
* its own file so `mastra/index.ts` can check for it without statically
|
|
4
|
+
* importing `./workflow` (and through it the evented engine).
|
|
5
|
+
*/
|
|
6
|
+
export declare const EXPERIMENT_WORKFLOW_ID = "__mastra-experiment";
|
|
7
|
+
//# sourceMappingURL=workflow-id.d.ts.map
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export { EXPERIMENT_WORKFLOW_ID } from './workflow-id.js';
|
|
3
|
+
/**
|
|
4
|
+
* Input of a durable experiment run. Everything here is JSON so the run can be
|
|
5
|
+
* picked up by any process sharing the storage and pubsub.
|
|
6
|
+
*/
|
|
7
|
+
export declare const experimentWorkflowInputSchema: z.ZodObject<{
|
|
8
|
+
datasetId: z.ZodString;
|
|
9
|
+
experimentId: z.ZodString;
|
|
10
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
12
|
+
maxConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
itemTimeout: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
agentModel: z.ZodOptional<z.ZodString>;
|
|
16
|
+
unmockedToolPolicy: z.ZodOptional<z.ZodEnum<{
|
|
17
|
+
allow: "allow";
|
|
18
|
+
deny: "deny";
|
|
19
|
+
}>>;
|
|
20
|
+
requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
21
|
+
versions: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
agents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
23
|
+
versionId: z.ZodString;
|
|
24
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
+
status: z.ZodEnum<{
|
|
26
|
+
draft: "draft";
|
|
27
|
+
published: "published";
|
|
28
|
+
}>;
|
|
29
|
+
}, z.core.$strip>]>>>;
|
|
30
|
+
defaultStatus: z.ZodOptional<z.ZodEnum<{
|
|
31
|
+
draft: "draft";
|
|
32
|
+
published: "published";
|
|
33
|
+
}>>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export type ExperimentWorkflowInput = z.infer<typeof experimentWorkflowInputSchema>;
|
|
37
|
+
/**
|
|
38
|
+
* Runs a stored experiment on the evented engine: `prepare` lists the items,
|
|
39
|
+
* each item runs as its own step via `runExperimentItem` (one result row per
|
|
40
|
+
* item, so a redelivered step converges), and `finalize` counts the rows.
|
|
41
|
+
*/
|
|
42
|
+
export declare function buildExperimentWorkflow(): import("../../workflows/workflow.js").Workflow<import("../../workflows/evented").EventedEngineType, import("../../workflows/step.js").Step<string, any, any, any, any, any, import("../../workflows/evented").EventedEngineType, unknown>[], "__mastra-experiment", unknown, {
|
|
43
|
+
datasetId: string;
|
|
44
|
+
experimentId: string;
|
|
45
|
+
organizationId?: string | undefined;
|
|
46
|
+
projectId?: string | undefined;
|
|
47
|
+
maxConcurrency?: number | undefined;
|
|
48
|
+
itemTimeout?: number | undefined;
|
|
49
|
+
maxRetries?: number | undefined;
|
|
50
|
+
agentModel?: string | undefined;
|
|
51
|
+
unmockedToolPolicy?: "allow" | "deny" | undefined;
|
|
52
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
53
|
+
versions?: {
|
|
54
|
+
agents?: Record<string, {
|
|
55
|
+
versionId: string;
|
|
56
|
+
} | {
|
|
57
|
+
status: "draft" | "published";
|
|
58
|
+
}> | undefined;
|
|
59
|
+
defaultStatus?: "draft" | "published" | undefined;
|
|
60
|
+
} | undefined;
|
|
61
|
+
}, {
|
|
62
|
+
experimentId: string;
|
|
63
|
+
status: string;
|
|
64
|
+
succeededCount: number;
|
|
65
|
+
failedCount: number;
|
|
66
|
+
skippedCount: number;
|
|
67
|
+
}, {
|
|
68
|
+
experimentId: string;
|
|
69
|
+
status: string;
|
|
70
|
+
succeededCount: number;
|
|
71
|
+
failedCount: number;
|
|
72
|
+
skippedCount: number;
|
|
73
|
+
}, unknown, 1>;
|
|
74
|
+
//# sourceMappingURL=workflow.d.ts.map
|
package/dist/datasets/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_run_registry = require("../run-registry-
|
|
3
|
-
const require_manager = require("../manager-
|
|
2
|
+
const require_run_registry = require("../run-registry-BmckDVBk.cjs");
|
|
3
|
+
const require_manager = require("../manager-sv35JY-z.cjs");
|
|
4
4
|
let zod_v4 = require("zod/v4");
|
|
5
5
|
let crypto = require("crypto");
|
|
6
6
|
// src/datasets/snapshot.ts
|
|
@@ -225,6 +225,7 @@ exports.Dataset = require_manager.Dataset;
|
|
|
225
225
|
exports.DatasetsManager = require_manager.DatasetsManager;
|
|
226
226
|
exports.EXPERIMENT_ITEM_BEFORE_EACH_FAILED = require_manager.EXPERIMENT_ITEM_BEFORE_EACH_FAILED;
|
|
227
227
|
exports.EXPERIMENT_ITEM_SCORER_NOT_FOUND = require_manager.EXPERIMENT_ITEM_SCORER_NOT_FOUND;
|
|
228
|
+
exports.EXPERIMENT_NOT_DURABLE = require_manager.EXPERIMENT_NOT_DURABLE;
|
|
228
229
|
exports.SchemaUpdateValidationError = require_run_registry.SchemaUpdateValidationError;
|
|
229
230
|
exports.SchemaValidationError = require_run_registry.SchemaValidationError;
|
|
230
231
|
exports.SchemaValidator = require_run_registry.SchemaValidator;
|
package/dist/datasets/index.d.ts
CHANGED
|
@@ -4,5 +4,6 @@ export { createDatasetSnapshot, parseDatasetSnapshot, datasetSnapshotContentSche
|
|
|
4
4
|
export type { DatasetSnapshot, DatasetSnapshotContent, DatasetSnapshotOptions } from './snapshot.js';
|
|
5
5
|
export { Dataset } from './dataset.js';
|
|
6
6
|
export { DatasetsManager } from './manager.js';
|
|
7
|
-
export type { StartExperimentConfig } from './experiment/types.js';
|
|
7
|
+
export type { StartExperimentAsyncConfig, StartExperimentConfig } from './experiment/types.js';
|
|
8
|
+
export { EXPERIMENT_NOT_DURABLE } from './experiment/durable.js';
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/datasets/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as
|
|
1
|
+
import { $i as SchemaValidationError, Ji as assertSupportedPatterns, Qi as SchemaUpdateValidationError, Xi as getSchemaValidator, Yi as createValidator, Zi as UnsupportedSchemaPatternError, qi as SchemaValidator } from "../run-registry-BwEcwYlU.js";
|
|
2
|
+
import { _ as ToolMockMatcher, a as executeExperimentItem, b as resolveTarget, c as computeScorerStats, d as resolveScorers, f as runScorersForItem, g as TOOL_MOCK_NOT_DECLARED, h as TOOL_MOCK_MISMATCH, i as runExperiment, l as isRegression, m as TOOL_MOCK_EXHAUSTED, n as Dataset, o as compareExperiments, p as executeTarget, r as EXPERIMENT_ITEM_BEFORE_EACH_FAILED, s as computeMean, t as DatasetsManager, u as EXPERIMENT_ITEM_SCORER_NOT_FOUND, v as EXPERIMENT_NOT_DURABLE } from "../manager-DfWQCJUK.js";
|
|
3
3
|
import { z } from "zod/v4";
|
|
4
4
|
import { createHash } from "crypto";
|
|
5
5
|
// src/datasets/snapshot.ts
|
|
@@ -218,4 +218,4 @@ const snapshotTextSchema = z.string().transform((text, ctx) => {
|
|
|
218
218
|
function parseDatasetSnapshot(text, options = {}) {
|
|
219
219
|
return snapshotSizeSchema(options).pipe(snapshotTextSchema).parse(text);
|
|
220
220
|
}
|
|
221
|
-
export { DATASET_SNAPSHOT_DEFAULT_MAX_BYTES, DATASET_SNAPSHOT_MAX_DEPTH, Dataset, DatasetsManager, EXPERIMENT_ITEM_BEFORE_EACH_FAILED, EXPERIMENT_ITEM_SCORER_NOT_FOUND, SchemaUpdateValidationError, SchemaValidationError, SchemaValidator, TOOL_MOCK_EXHAUSTED, TOOL_MOCK_MISMATCH, TOOL_MOCK_NOT_DECLARED, ToolMockMatcher, UnsupportedSchemaPatternError, assertSupportedPatterns, compareExperiments, computeMean, computeScorerStats, createDatasetSnapshot, createValidator, datasetSnapshotContentSchema, datasetSnapshotSchema, executeExperimentItem, executeTarget, getSchemaValidator, isRegression, parseDatasetSnapshot, resolveScorers, resolveTarget, runExperiment, runScorersForItem };
|
|
221
|
+
export { DATASET_SNAPSHOT_DEFAULT_MAX_BYTES, DATASET_SNAPSHOT_MAX_DEPTH, Dataset, DatasetsManager, EXPERIMENT_ITEM_BEFORE_EACH_FAILED, EXPERIMENT_ITEM_SCORER_NOT_FOUND, EXPERIMENT_NOT_DURABLE, SchemaUpdateValidationError, SchemaValidationError, SchemaValidator, TOOL_MOCK_EXHAUSTED, TOOL_MOCK_MISMATCH, TOOL_MOCK_NOT_DECLARED, ToolMockMatcher, UnsupportedSchemaPatternError, assertSupportedPatterns, compareExperiments, computeMean, computeScorerStats, createDatasetSnapshot, createValidator, datasetSnapshotContentSchema, datasetSnapshotSchema, executeExperimentItem, executeTarget, getSchemaValidator, isRegression, parseDatasetSnapshot, resolveScorers, resolveTarget, runExperiment, runScorersForItem };
|
package/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-core
|
|
|
3
3
|
description: Documentation for @mastra/core. Use when working with @mastra/core APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/core"
|
|
6
|
-
version: "1.86.0-alpha.
|
|
6
|
+
version: "1.86.0-alpha.9"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
|
@@ -63,6 +63,7 @@ Read the individual reference documents for detailed explanations and code examp
|
|
|
63
63
|
- [Harness](references/docs-harness-overview.md) - Use the Mastra harness to start, continue, update, and preserve agent work beyond one request with durable execution, goals, schedules, and signals.
|
|
64
64
|
- [Schedules](references/docs-harness-schedules.md) - Schedule Mastra agents with cron expressions, recurring prompts, optional thread delivery, lifecycle hooks, and APIs for managing scheduled runs.
|
|
65
65
|
- [Agents and tools](references/docs-knowledge-agents-and-tools.md) - Turn on the Knowledge tools for an agent, and what agents can do with them.
|
|
66
|
+
- [Importers](references/docs-knowledge-importers.md) - Write a Knowledge importer that keeps pages in sync with another system, and run it from your app.
|
|
66
67
|
- [Load your content](references/docs-knowledge-load-your-content.md) - Load your own content, such as product docs or policies, into Knowledge so agents can search and read it.
|
|
67
68
|
- [Knowledge](references/docs-knowledge-overview.md) - Give agents shared pages and notes they search, read and write, with access decided by your configuration rather than by the model.
|
|
68
69
|
- [What you can build with Knowledge](references/docs-knowledge-patterns.md) - What you can build with Knowledge: a docs agent, one agent for many customers, pinned policies, coding conventions, organizing pages, runbooks, department scopes, personal notes and agent hand-offs.
|
|
@@ -127,7 +128,7 @@ Read the individual reference documents for detailed explanations and code examp
|
|
|
127
128
|
- [CopilotKit](references/integrations-agentic-ui-copilotkit.md) - Connect CopilotKit to Mastra through AG-UI for generative UI, shared application state, frontend tools, human approval, and messaging channels.
|
|
128
129
|
- [OpenUI](references/integrations-agentic-ui-openui.md) - Stream Mastra agent output into OpenUI through AG-UI, render generative interfaces with built-in components, and customize the component library.
|
|
129
130
|
- [Auth0](references/integrations-auth-auth0.md) - Authenticate Mastra servers with Auth0 JWTs, configure credentials and authorization, and connect client applications with authenticated requests.
|
|
130
|
-
- [Clerk](references/integrations-auth-clerk.md) - Give Mastra agents Clerk tools through Mastra Connect, and authenticate Mastra
|
|
131
|
+
- [Clerk](references/integrations-auth-clerk.md) - Give Mastra agents Clerk tools through Mastra Connect, and authenticate Mastra APIs and Studio with the @mastra/auth-clerk provider, OAuth single sign-on, and MastraClient.
|
|
131
132
|
- [Firebase](references/integrations-auth-firebase.md) - Authenticate Mastra applications with Firebase ID tokens, configure service credentials and authorization, and send secured client requests.
|
|
132
133
|
- [Neon](references/integrations-auth-neon.md) - Authenticate Mastra server requests and Studio users with Neon Auth, map Neon Auth organization roles to Mastra permissions, and connect MastraClient with a Neon Auth JWT.
|
|
133
134
|
- [Supabase](references/integrations-auth-supabase.md) - Give Mastra agents Supabase tools through Mastra Connect, and authenticate Mastra server requests with Supabase Auth and MastraClient.
|
|
@@ -305,7 +306,7 @@ Read the individual reference documents for detailed explanations and code examp
|
|
|
305
306
|
- [Workspace](references/reference-file-based-agents-workspace.md) - A workspace assembles capabilities such as filesystem access and command execution. The configured backends determine which tools are available.
|
|
306
307
|
- [Reference: Knowledge class](references/reference-knowledge-knowledge-class.md) - Constructor options and methods of the Knowledge class.
|
|
307
308
|
- [Reference: knowledgeMemoryScopes()](references/reference-knowledge-knowledge-memory-scopes.md) - Declarations for Memory thread and resource scopes and a tenant scope, for the Knowledge scopes option.
|
|
308
|
-
- [Reference: Knowledge tools](references/reference-knowledge-knowledge-tools.md) - Arguments, operations, required roles and errors of the
|
|
309
|
+
- [Reference: Knowledge tools](references/reference-knowledge-knowledge-tools.md) - Arguments, operations, required roles and errors of the seven Knowledge tools.
|
|
309
310
|
- [Reference: Limits](references/reference-knowledge-limits.md) - Size limits for notes, pages, searches and pinned context in Knowledge.
|
|
310
311
|
- [Reference: Scope declarations](references/reference-knowledge-scope-declarations.md) - The Knowledge scopes option: patterns and params, access rules, belongsTo, child scopes, template pages, labels, renaming, and the errors each raises.
|
|
311
312
|
- [Reference: Tool instructions](references/reference-knowledge-tool-instructions.md) - The usage instructions Knowledge adds to agents with its tools, and how to change or turn them off.
|