@mastra/core 1.86.0-alpha.7 → 1.86.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/agent.d.ts +60 -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 -14
- package/dist/agent/durable/index.js +7 -14
- package/dist/agent/index.cjs +2 -2
- package/dist/agent/index.js +2 -2
- 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-Cf3_IuY8.js → agent-controller-B7POPub5.js} +7 -7
- package/dist/{agent-controller-K5vHtqfO.cjs → agent-controller-DEPayioq.cjs} +7 -7
- package/dist/background-tasks/index.cjs +1 -1
- package/dist/background-tasks/index.js +1 -1
- package/dist/{background-tasks-DqnQMfuf.cjs → background-tasks-7iftnRK_.cjs} +1 -1
- package/dist/{background-tasks-BgpX1P_s.js → background-tasks-Cv1ecD6S.js} +1 -1
- package/dist/browser/index.cjs +2 -2
- package/dist/browser/index.js +2 -2
- package/dist/{builder-D8Osghdo.cjs → builder-DuJBbQDH.cjs} +2 -2
- package/dist/{builder-x295GDL6.js → builder-Gg-xnX_E.js} +2 -2
- package/dist/capabilities/302ai.json +194 -194
- package/dist/capabilities/abliteratedllm.json +32 -32
- package/dist/capabilities/abliteration-ai.json +11 -11
- package/dist/capabilities/above.json +12 -12
- package/dist/capabilities/adaption.json +13 -13
- package/dist/capabilities/adzuki.json +32 -32
- package/dist/capabilities/agentrouter.json +6 -6
- package/dist/capabilities/agnes.json +2 -2
- package/dist/capabilities/ai-router.json +5 -5
- package/dist/capabilities/aiand.json +23 -23
- package/dist/capabilities/aigrow.json +11 -11
- package/dist/capabilities/aimlapi.json +144 -144
- package/dist/capabilities/aixy.json +21 -21
- package/dist/capabilities/aki-io.json +15 -15
- package/dist/capabilities/alibaba-cn.json +79 -79
- package/dist/capabilities/alibaba-coding-plan-cn.json +2 -2
- package/dist/capabilities/alibaba-coding-plan.json +2 -2
- package/dist/capabilities/alibaba-token-plan-cn.json +52 -52
- package/dist/capabilities/alibaba-token-plan.json +53 -53
- package/dist/capabilities/alibaba.json +70 -70
- package/dist/capabilities/ambient.json +15 -15
- package/dist/capabilities/amd.json +9 -9
- package/dist/capabilities/anthropic.json +48 -48
- package/dist/capabilities/anyapi.json +12 -12
- package/dist/capabilities/apiko.json +4 -4
- package/dist/capabilities/arcee.json +10 -10
- package/dist/capabilities/augure.json +6 -6
- package/dist/capabilities/auriko.json +18 -18
- package/dist/capabilities/bailing.json +5 -5
- package/dist/capabilities/baseten.json +26 -26
- package/dist/capabilities/bee.json +4 -4
- package/dist/capabilities/berget.json +6 -6
- package/dist/capabilities/bothub.json +14 -14
- package/dist/capabilities/boundless.json +41 -41
- package/dist/capabilities/bumo.json +39 -39
- package/dist/capabilities/byteplus.json +34 -34
- package/dist/capabilities/cheapaimodel.json +7 -7
- package/dist/capabilities/cheapest-token.json +33 -33
- package/dist/capabilities/chutes.json +10 -10
- package/dist/capabilities/cline-pass.json +35 -35
- package/dist/capabilities/cloudcode.json +8 -8
- package/dist/capabilities/cloudferro-sherlock.json +4 -4
- package/dist/capabilities/cloudflare-workers-ai.json +31 -31
- package/dist/capabilities/commandcode.json +148 -148
- package/dist/capabilities/concentrate.json +277 -253
- package/dist/capabilities/cortecs.json +113 -113
- package/dist/capabilities/crossmodel.json +172 -172
- package/dist/capabilities/crusoe.json +9 -9
- package/dist/capabilities/daoxe.json +8 -8
- package/dist/capabilities/databricks.json +54 -54
- package/dist/capabilities/deepinfra.json +95 -86
- package/dist/capabilities/deepseek.json +3 -3
- package/dist/capabilities/digitalocean.json +117 -117
- package/dist/capabilities/dothoosh.json +35 -35
- package/dist/capabilities/doubleword.json +29 -29
- package/dist/capabilities/edenai.json +456 -456
- package/dist/capabilities/empiriolabs.json +174 -174
- package/dist/capabilities/engy.json +20 -20
- package/dist/capabilities/entrim.json +6 -6
- package/dist/capabilities/evroc.json +10 -10
- package/dist/capabilities/ezkielyna.json +10 -10
- package/dist/capabilities/fastrouter.json +77 -77
- package/dist/capabilities/fireworks-ai.json +60 -60
- package/dist/capabilities/freemodel.json +17 -17
- package/dist/capabilities/frogbot.json +93 -93
- package/dist/capabilities/gisoo.json +19 -19
- package/dist/capabilities/gmicloud.json +19 -19
- package/dist/capabilities/google.json +59 -59
- package/dist/capabilities/graphn.json +9 -9
- package/dist/capabilities/greenpt.json +34 -34
- package/dist/capabilities/groq.json +8 -8
- package/dist/capabilities/helicone.json +83 -83
- package/dist/capabilities/hopper.json +2 -2
- package/dist/capabilities/hostinger-router.json +9 -9
- package/dist/capabilities/hpc-ai.json +11 -11
- package/dist/capabilities/huawei-maas.json +13 -13
- package/dist/capabilities/hubris.json +33 -33
- package/dist/capabilities/huggingface.json +60 -51
- package/dist/capabilities/humain.json +2 -2
- package/dist/capabilities/hyper.json +27 -27
- package/dist/capabilities/impossibl.json +118 -118
- package/dist/capabilities/inception.json +3 -3
- package/dist/capabilities/inceptron.json +8 -8
- package/dist/capabilities/inco.json +4 -4
- package/dist/capabilities/infer.json +15 -15
- package/dist/capabilities/inferall.json +10 -10
- package/dist/capabilities/inference-coop.json +12 -12
- package/dist/capabilities/inferenceapis.json +20 -20
- package/dist/capabilities/inferris.json +4 -4
- package/dist/capabilities/infersia.json +8 -8
- package/dist/capabilities/inferx.json +3 -3
- package/dist/capabilities/infomaniak.json +4 -4
- package/dist/capabilities/io-net.json +4 -4
- package/dist/capabilities/iteracompute.json +63 -63
- package/dist/capabilities/jad-ai.json +3 -3
- package/dist/capabilities/jalapeno.json +11 -11
- package/dist/capabilities/jiekou.json +63 -63
- package/dist/capabilities/joingonka.json +4 -4
- package/dist/capabilities/jzstoken.json +52 -52
- package/dist/capabilities/keln.json +26 -26
- package/dist/capabilities/kenari.json +127 -127
- package/dist/capabilities/kilo.json +604 -628
- package/dist/capabilities/kimi-code-plan-cn.json +4 -4
- package/dist/capabilities/kimi-code-plan-global.json +4 -4
- package/dist/capabilities/kitani.json +6 -6
- package/dist/capabilities/klavo.json +26 -26
- package/dist/capabilities/korouter.json +34 -34
- package/dist/capabilities/kunavo.json +4 -4
- package/dist/capabilities/liquid.json +10 -10
- package/dist/capabilities/lithosai.json +2 -2
- package/dist/capabilities/llmgateway-providers.json +934 -907
- package/dist/capabilities/llmgateway.json +339 -339
- package/dist/capabilities/llmtr.json +27 -27
- package/dist/capabilities/longcat.json +2 -2
- package/dist/capabilities/lowrouter.json +53 -53
- package/dist/capabilities/lyceum.json +8 -8
- package/dist/capabilities/melious.json +13 -13
- package/dist/capabilities/merge-gateway.json +284 -284
- package/dist/capabilities/meta.json +11 -11
- package/dist/capabilities/minimax-cn-coding-plan.json +6 -6
- package/dist/capabilities/minimax-coding-plan.json +6 -6
- package/dist/capabilities/mistral.json +22 -22
- package/dist/capabilities/mixlayer.json +3 -3
- package/dist/capabilities/modal.json +13 -13
- package/dist/capabilities/model-oracle-ai.json +23 -23
- package/dist/capabilities/modelis.json +21 -21
- package/dist/capabilities/modelscope.json +2 -2
- package/dist/capabilities/modular.json +10 -10
- package/dist/capabilities/moneo.json +14 -14
- package/dist/capabilities/moonshotai-cn.json +7 -7
- package/dist/capabilities/moonshotai.json +7 -7
- package/dist/capabilities/morph.json +15 -15
- package/dist/capabilities/munito-eu.json +8 -8
- package/dist/capabilities/munito.json +10 -10
- package/dist/capabilities/nan.json +25 -25
- package/dist/capabilities/nano-gpt.json +570 -570
- package/dist/capabilities/nearai.json +87 -87
- package/dist/capabilities/nebius.json +41 -32
- package/dist/capabilities/neon.json +132 -132
- package/dist/capabilities/neuralwatt.json +38 -38
- package/dist/capabilities/novita-ai.json +153 -153
- package/dist/capabilities/nvidia.json +28 -28
- package/dist/capabilities/obscurify.json +33 -33
- package/dist/capabilities/oci.json +6 -6
- package/dist/capabilities/ofox.json +322 -322
- package/dist/capabilities/ollama-cloud.json +52 -52
- package/dist/capabilities/openai.json +47 -47
- package/dist/capabilities/opencode-go.json +79 -78
- package/dist/capabilities/openreason.json +5 -5
- package/dist/capabilities/openrouter.json +520 -530
- package/dist/capabilities/opper.json +30 -24
- package/dist/capabilities/orcarouter.json +227 -227
- package/dist/capabilities/outerlabs.json +28 -28
- package/dist/capabilities/ovhcloud.json +8 -8
- package/dist/capabilities/pareto.json +5 -5
- package/dist/capabilities/perplexity-agent.json +64 -64
- package/dist/capabilities/perplexity.json +2 -2
- package/dist/capabilities/phala.json +36 -36
- package/dist/capabilities/pioneer.json +30 -30
- package/dist/capabilities/poe.json +109 -109
- package/dist/capabilities/powerspring.json +10 -10
- package/dist/capabilities/primalabs.json +10 -10
- package/dist/capabilities/prime.json +116 -99
- package/dist/capabilities/privatemode-ai.json +10 -10
- package/dist/capabilities/proxystacks.json +7 -7
- package/dist/capabilities/qiniu-ai.json +12 -12
- package/dist/capabilities/refuseless.json +8 -8
- package/dist/capabilities/regolo-ai.json +8 -8
- package/dist/capabilities/requesty.json +172 -172
- package/dist/capabilities/ruapi.json +21 -21
- package/dist/capabilities/runcrate.json +15 -15
- package/dist/capabilities/runinfra.json +20 -20
- package/dist/capabilities/sakana.json +7 -7
- package/dist/capabilities/sambanova.json +4 -4
- package/dist/capabilities/sandbase.json +30 -30
- package/dist/capabilities/sarvam.json +5 -5
- package/dist/capabilities/scaleway.json +17 -17
- package/dist/capabilities/scnet-token-plan.json +8 -8
- package/dist/capabilities/scx-ai.json +26 -26
- package/dist/capabilities/sensenova.json +7 -7
- package/dist/capabilities/siliconflow-cn.json +45 -45
- package/dist/capabilities/siliconflow.json +59 -59
- package/dist/capabilities/snowflake-cortex.json +25 -25
- package/dist/capabilities/sokkan.json +9 -9
- package/dist/capabilities/sparrowcodes.json +23 -23
- package/dist/capabilities/standardcompute.json +103 -103
- package/dist/capabilities/steadyrouter.json +39 -39
- package/dist/capabilities/stepfun-ai-step-plan.json +6 -6
- package/dist/capabilities/stepfun-ai.json +6 -6
- package/dist/capabilities/stepfun-step-plan.json +6 -6
- package/dist/capabilities/stepfun.json +6 -6
- package/dist/capabilities/stepping-stone.json +13 -13
- package/dist/capabilities/subconscious.json +2 -2
- package/dist/capabilities/synthetic.json +11 -11
- package/dist/capabilities/synthorai.json +27 -27
- package/dist/capabilities/teamorouter.json +30 -30
- package/dist/capabilities/teapot-router.json +13 -13
- package/dist/capabilities/tencent-token-plan.json +24 -24
- package/dist/capabilities/tencent-tokenhub.json +9 -9
- package/dist/capabilities/tensorx.json +45 -45
- package/dist/capabilities/tenstorrent.json +6 -6
- package/dist/capabilities/the-grid-ai.json +24 -24
- package/dist/capabilities/thinkingmachines.json +59 -59
- package/dist/capabilities/tinfoil.json +14 -14
- package/dist/capabilities/toapis.json +2 -2
- package/dist/capabilities/togetherai.json +53 -53
- package/dist/capabilities/tokengo.json +25 -25
- package/dist/capabilities/tokenify.json +10 -10
- package/dist/capabilities/trustedrouter.json +7 -7
- package/dist/capabilities/trustedtokens.json +16 -16
- package/dist/capabilities/umans-ai-coding-plan.json +15 -15
- package/dist/capabilities/umans-ai.json +8 -8
- package/dist/capabilities/uncensuredai.json +4 -4
- package/dist/capabilities/unrestricted.json +4 -4
- package/dist/capabilities/uplinkswitch.json +20 -20
- package/dist/capabilities/upstage.json +6 -6
- package/dist/capabilities/vancine.json +22 -22
- package/dist/capabilities/vercel.json +569 -577
- package/dist/capabilities/vivgrid.json +80 -80
- package/dist/capabilities/volcengine-coding-plan.json +26 -26
- package/dist/capabilities/volcengine.json +30 -30
- package/dist/capabilities/vultr.json +25 -25
- package/dist/capabilities/wafer.ai.json +18 -18
- package/dist/capabilities/wallaby.json +5 -5
- package/dist/capabilities/wally.json +8 -8
- package/dist/capabilities/wandb.json +20 -20
- package/dist/capabilities/watt.json +20 -20
- package/dist/capabilities/xai.json +6 -6
- package/dist/capabilities/xiaomi.json +5 -5
- package/dist/capabilities/xpersona.json +12 -12
- package/dist/capabilities/xxapi.json +33 -33
- package/dist/capabilities/zai-coding-plan.json +9 -9
- package/dist/capabilities/zai.json +27 -27
- package/dist/capabilities/zenifra.json +23 -23
- package/dist/capabilities/zenmux.json +192 -192
- package/dist/capabilities/zerogpu.json +10 -10
- package/dist/capabilities/zhipuai-coding-plan.json +7 -7
- package/dist/capabilities/zhipuai.json +26 -26
- 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-BRVCOutx.js} +1 -1
- package/dist/{channels-q6qnuRNV.cjs → channels-MjTA9bFp.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 +2 -2
- package/dist/docs/assets/SOURCE_MAP.json +790 -790
- 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-durable-agents.md +9 -5
- package/dist/docs/references/docs-knowledge-agents-and-tools.md +1 -0
- package/dist/docs/references/docs-knowledge-load-your-content.md +1 -1
- package/dist/docs/references/docs-mastra-platform-observability-overview.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-workflows-overview.md +1 -1
- package/dist/docs/references/docs-workflows-scheduled-workflows.md +1 -1
- 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 +2 -0
- package/dist/docs/references/reference-agents-channels.md +116 -27
- package/dist/docs/references/reference-agents-durable-agent.md +2 -0
- 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 +2 -2
- package/dist/docs/references/reference-knowledge-knowledge-tools.md +43 -20
- 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 +1 -1
- 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/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/harness/index.cjs +1 -1
- package/dist/harness/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/knowledge/index.cjs +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 +8092 -8089
- package/dist/llm/model/shared.types.d.ts +31 -0
- package/dist/{llm-DnXK3Pmw.js → llm-Djd8Qzi0.js} +2 -2
- package/dist/{llm-CsQuqKPc.cjs → llm-DmUucguC.cjs} +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-CO_Xz2zR.js} +460 -94
- package/dist/{manager-DwFnIrI6.cjs → manager-D27PkIPo.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-B8i1UDZs.js → mastra-Ch00nEAJ.js} +31 -16
- package/dist/{mastra-Cn5NC6Es.cjs → mastra-qsVWpOTi.cjs} +31 -16
- package/dist/memory/index.cjs +2 -2
- package/dist/memory/index.js +2 -2
- package/dist/{model-CsOcWMUt.js → model-CW-mfGYA.js} +1 -1
- package/dist/{model-CNPfry_X.cjs → model-Do6DTJoj.cjs} +1 -1
- package/dist/{netlify-C-83Fxus.cjs → netlify-DU32SDT6.cjs} +1 -1
- package/dist/{netlify-C-OpNSGp.js → netlify-DZSAbdve.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/index.cjs +2 -2
- package/dist/processors/index.js +2 -2
- package/dist/{provider-registry-RZ8EgSe8.js → provider-registry-deA0x-Gd.js} +22467 -22456
- package/dist/{provider-registry-9O-H9osy.cjs → provider-registry-zGezZVsL.cjs} +22467 -22456
- package/dist/provider-registry.json +22423 -22408
- package/dist/{registry-generator-DxCX-FiO.cjs → registry-generator-BkQ1AxZn.cjs} +1 -1
- package/dist/{registry-generator-e8sltJls.js → registry-generator-VvBfOKAD.js} +1 -1
- package/dist/{rehydrate-D3fPgJwp.js → rehydrate-BjLV643n.js} +2 -2
- package/dist/{rehydrate-B-wrAN7C.cjs → rehydrate-DDYFpQsV.cjs} +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-5Suldxz3.cjs} +519 -71
- package/dist/{run-registry-DC03XLeZ.js → run-registry-CGRPldLH.js} +519 -71
- package/dist/storage/domains/knowledge/base.d.ts +5 -0
- package/dist/storage/domains/knowledge/inmemory.d.ts +1 -0
- package/dist/storage/domains/knowledge/pages.d.ts +24 -7
- package/dist/storage/index.cjs +2 -2
- package/dist/storage/index.js +2 -2
- package/dist/stream/base/output.d.ts +42 -15
- package/dist/stream/index.cjs +2 -2
- package/dist/stream/index.js +2 -2
- package/dist/stream/types.d.ts +19 -0
- package/dist/{stream-CJUm6EAH.js → stream-Dpwx0whf.js} +1 -1
- package/dist/{stream-4aNIw_TQ.cjs → stream-Dvy_0o14.cjs} +1 -1
- package/dist/test-utils/llm-mock.cjs +1 -1
- package/dist/test-utils/llm-mock.js +1 -1
- package/dist/tool-loop-agent/index.cjs +1 -1
- package/dist/tool-loop-agent/index.js +1 -1
- package/dist/{tool-loop-agent-FEEwHfmg.js → tool-loop-agent-PbWrEj1k.js} +3 -3
- package/dist/{tool-loop-agent-Dn0QCB9n.cjs → tool-loop-agent-UxOv3FoK.cjs} +3 -3
- package/dist/tools/types.d.ts +27 -1
- package/dist/{utils-DY01hxVd.cjs → utils-BbMTlyBO.cjs} +1 -1
- package/dist/{utils-Bd_y1_a-.js → utils-BnNi1BYM.js} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/{validate-CX0yQo_q.js → validate-HSBcm96b.js} +1 -1
- package/dist/{validate-CuB_1Zd3.cjs → validate-Skps-cM3.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-GsGIxPMa.cjs → worker-BE-0DyKL.cjs} +2 -2
- package/dist/{worker-DSEfMPmq.js → worker-BKrKHZzU.js} +2 -2
- package/dist/{worker-CbaSmip-.cjs → worker-BNS5A3qP.cjs} +2 -2
- package/dist/{worker-B80xkcKG.js → worker-DehaD4qD.js} +2 -2
- package/dist/{workflow-CnBPXTpv.cjs → workflow-BjUTwaK9.cjs} +4 -4
- package/dist/{workflow-CZHY_C85.js → workflow-Bvw6yDjc.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/index.cjs +1 -1
- package/dist/workspace/index.js +1 -1
- package/dist/{workspace-D7TIleIt.js → workspace-C05xDH60.js} +160 -7
- package/dist/{workspace-D2drutNg.cjs → workspace-D1OzzlLw.cjs} +160 -7
- package/package.json +6 -6
- package/src/llm/model/provider-types.generated.d.ts +8092 -8089
|
@@ -32,32 +32,32 @@
|
|
|
32
32
|
"values": ["low", "high", "max"]
|
|
33
33
|
}
|
|
34
34
|
],
|
|
35
|
-
"gpt-5.
|
|
35
|
+
"gpt-5.6-luna": [
|
|
36
36
|
{
|
|
37
37
|
"type": "effort",
|
|
38
|
-
"values": ["none", "low", "medium", "high", "xhigh"]
|
|
38
|
+
"values": ["none", "low", "medium", "high", "xhigh", "max"]
|
|
39
39
|
}
|
|
40
40
|
],
|
|
41
|
-
"
|
|
41
|
+
"qwen3.6-35b-a3b": [
|
|
42
42
|
{
|
|
43
|
-
"type": "
|
|
44
|
-
"values": ["low", "high", "max"]
|
|
43
|
+
"type": "toggle"
|
|
45
44
|
}
|
|
46
45
|
],
|
|
47
|
-
"gpt-5.
|
|
46
|
+
"gpt-5.4-nano": [
|
|
48
47
|
{
|
|
49
48
|
"type": "effort",
|
|
50
|
-
"values": ["none", "low", "medium", "high", "xhigh"
|
|
49
|
+
"values": ["none", "low", "medium", "high", "xhigh"]
|
|
51
50
|
}
|
|
52
51
|
],
|
|
53
|
-
"qwen3
|
|
52
|
+
"qwen3-30b-a3b-fp8": [
|
|
54
53
|
{
|
|
55
54
|
"type": "toggle"
|
|
56
55
|
}
|
|
57
56
|
],
|
|
58
|
-
"
|
|
57
|
+
"glm-5.3-flash": [
|
|
59
58
|
{
|
|
60
|
-
"type": "
|
|
59
|
+
"type": "effort",
|
|
60
|
+
"values": ["low", "high", "max"]
|
|
61
61
|
}
|
|
62
62
|
]
|
|
63
63
|
}
|
|
@@ -3,13 +3,12 @@
|
|
|
3
3
|
"temperature": ["glm-4.6v", "glm-5.3", "glm-5.3-flash", "glm-5.3-highspeed", "glm-5.4"],
|
|
4
4
|
"structuredOutput": ["glm-5.3", "glm-5.3-flash", "glm-5.3-highspeed", "glm-5.4"],
|
|
5
5
|
"reasoning": {
|
|
6
|
-
"glm-
|
|
6
|
+
"glm-4.6v": [
|
|
7
7
|
{
|
|
8
|
-
"type": "
|
|
9
|
-
"values": ["low", "high", "max"]
|
|
8
|
+
"type": "toggle"
|
|
10
9
|
}
|
|
11
10
|
],
|
|
12
|
-
"glm-5.
|
|
11
|
+
"glm-5.3": [
|
|
13
12
|
{
|
|
14
13
|
"type": "effort",
|
|
15
14
|
"values": ["low", "high", "max"]
|
|
@@ -21,15 +20,16 @@
|
|
|
21
20
|
"values": ["low", "high", "max"]
|
|
22
21
|
}
|
|
23
22
|
],
|
|
24
|
-
"glm-5.
|
|
23
|
+
"glm-5.4": [
|
|
25
24
|
{
|
|
26
25
|
"type": "effort",
|
|
27
26
|
"values": ["low", "high", "max"]
|
|
28
27
|
}
|
|
29
28
|
],
|
|
30
|
-
"glm-
|
|
29
|
+
"glm-5.3-flash": [
|
|
31
30
|
{
|
|
32
|
-
"type": "
|
|
31
|
+
"type": "effort",
|
|
32
|
+
"values": ["low", "high", "max"]
|
|
33
33
|
}
|
|
34
34
|
]
|
|
35
35
|
}
|
|
@@ -21,39 +21,34 @@
|
|
|
21
21
|
],
|
|
22
22
|
"structuredOutput": ["glm-5.1", "glm-5.2", "glm-5.3", "glm-5.3-flash", "glm-5.3-flashx"],
|
|
23
23
|
"reasoning": {
|
|
24
|
-
"glm-
|
|
24
|
+
"glm-5v-turbo": [
|
|
25
25
|
{
|
|
26
|
-
"type": "
|
|
27
|
-
"values": ["low", "high", "max"]
|
|
26
|
+
"type": "toggle"
|
|
28
27
|
}
|
|
29
28
|
],
|
|
30
|
-
"glm-4.
|
|
29
|
+
"glm-4.7-flashx": [
|
|
31
30
|
{
|
|
32
31
|
"type": "toggle"
|
|
33
32
|
}
|
|
34
33
|
],
|
|
35
|
-
"glm-4.
|
|
34
|
+
"glm-4.7-flash": [
|
|
36
35
|
{
|
|
37
36
|
"type": "toggle"
|
|
38
37
|
}
|
|
39
38
|
],
|
|
40
|
-
"glm-
|
|
39
|
+
"glm-5.1": [
|
|
41
40
|
{
|
|
42
41
|
"type": "toggle"
|
|
43
42
|
}
|
|
44
43
|
],
|
|
45
|
-
"glm-4.
|
|
44
|
+
"glm-4.6v": [
|
|
46
45
|
{
|
|
47
46
|
"type": "toggle"
|
|
48
47
|
}
|
|
49
48
|
],
|
|
50
|
-
"glm-5
|
|
49
|
+
"glm-4.5-air": [
|
|
51
50
|
{
|
|
52
51
|
"type": "toggle"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"type": "effort",
|
|
56
|
-
"values": ["high", "max"]
|
|
57
52
|
}
|
|
58
53
|
],
|
|
59
54
|
"glm-5.3-flashx": [
|
|
@@ -62,53 +57,58 @@
|
|
|
62
57
|
"values": ["low", "high", "max"]
|
|
63
58
|
}
|
|
64
59
|
],
|
|
65
|
-
"glm-
|
|
60
|
+
"glm-5.2": [
|
|
66
61
|
{
|
|
67
62
|
"type": "toggle"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"type": "effort",
|
|
66
|
+
"values": ["high", "max"]
|
|
68
67
|
}
|
|
69
68
|
],
|
|
70
|
-
"glm-4.
|
|
69
|
+
"glm-4.6": [
|
|
71
70
|
{
|
|
72
71
|
"type": "toggle"
|
|
73
72
|
}
|
|
74
73
|
],
|
|
75
|
-
"glm-
|
|
74
|
+
"glm-5.3": [
|
|
76
75
|
{
|
|
77
|
-
"type": "
|
|
76
|
+
"type": "effort",
|
|
77
|
+
"values": ["low", "high", "max"]
|
|
78
78
|
}
|
|
79
79
|
],
|
|
80
|
-
"glm-5
|
|
80
|
+
"glm-4.5": [
|
|
81
81
|
{
|
|
82
82
|
"type": "toggle"
|
|
83
83
|
}
|
|
84
84
|
],
|
|
85
|
-
"glm-
|
|
85
|
+
"glm-4.7": [
|
|
86
86
|
{
|
|
87
|
-
"type": "
|
|
88
|
-
"values": ["low", "high", "max"]
|
|
87
|
+
"type": "toggle"
|
|
89
88
|
}
|
|
90
89
|
],
|
|
91
|
-
"glm-
|
|
90
|
+
"glm-5": [
|
|
92
91
|
{
|
|
93
92
|
"type": "toggle"
|
|
94
93
|
}
|
|
95
94
|
],
|
|
96
|
-
"glm-
|
|
95
|
+
"glm-4.6v-flash": [
|
|
97
96
|
{
|
|
98
97
|
"type": "toggle"
|
|
99
98
|
}
|
|
100
99
|
],
|
|
101
|
-
"glm-5": [
|
|
100
|
+
"glm-5.3-flash": [
|
|
102
101
|
{
|
|
103
|
-
"type": "
|
|
102
|
+
"type": "effort",
|
|
103
|
+
"values": ["low", "high", "max"]
|
|
104
104
|
}
|
|
105
105
|
],
|
|
106
|
-
"glm-4.5": [
|
|
106
|
+
"glm-4.5-flash": [
|
|
107
107
|
{
|
|
108
108
|
"type": "toggle"
|
|
109
109
|
}
|
|
110
110
|
],
|
|
111
|
-
"glm-4.
|
|
111
|
+
"glm-4.5v": [
|
|
112
112
|
{
|
|
113
113
|
"type": "toggle"
|
|
114
114
|
}
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
"temperature": ["deepseek-v4.1-flash", "dolly1-security", "dolly2-security", "glm-5.3", "glm-5.3-flash"],
|
|
4
4
|
"structuredOutput": ["deepseek-v4.1-flash", "dolly1-security", "dolly2-security", "glm-5.3", "glm-5.3-flash"],
|
|
5
5
|
"reasoning": {
|
|
6
|
-
"
|
|
6
|
+
"deepseek-v4.1-flash": [
|
|
7
7
|
{
|
|
8
8
|
"type": "effort",
|
|
9
|
-
"values": ["low", "high", "max"]
|
|
9
|
+
"values": ["none", "low", "high", "max"]
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
|
-
"
|
|
12
|
+
"dolly1-security": [
|
|
13
13
|
{
|
|
14
14
|
"type": "effort",
|
|
15
|
-
"values": ["
|
|
15
|
+
"values": ["low", "high", "max"]
|
|
16
16
|
}
|
|
17
17
|
],
|
|
18
|
-
"glm-5.3
|
|
18
|
+
"glm-5.3": [
|
|
19
19
|
{
|
|
20
20
|
"type": "effort",
|
|
21
21
|
"values": ["low", "high", "max"]
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"values": ["low", "high", "max"]
|
|
28
28
|
}
|
|
29
29
|
],
|
|
30
|
-
"
|
|
30
|
+
"glm-5.3-flash": [
|
|
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-5Suldxz3.cjs");
|
|
3
|
+
const require_channels = require("../channels-MjTA9bFp.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 ChatChannelProcessor, Bn as toChatLogger, Dn as resolveWaitUntil, En as AgentChannels, Fn as DEFAULT_CHANNEL_TOOLS_SETTINGS, In as channelToolScopeResolver, Ln as createChannelToolScope, Mn as renderBuiltInToolEvent, Nn as formatToolApproval, On as defaultTypingStatus, Pn as ChannelSessionRejectedError, Rn as createChannelTools, jn as CHAT_CHANNEL_RENDER_CONTEXT_KEY, kn as MastraStateAdapter, zn as resolveChannelToolsSettings } from "../run-registry-
|
|
2
|
-
import { t as AgentControllerChannels } from "../channels-
|
|
1
|
+
import { An as ChatChannelProcessor, Bn as toChatLogger, Dn as resolveWaitUntil, En as AgentChannels, Fn as DEFAULT_CHANNEL_TOOLS_SETTINGS, In as channelToolScopeResolver, Ln as createChannelToolScope, Mn as renderBuiltInToolEvent, Nn as formatToolApproval, On as defaultTypingStatus, Pn as ChannelSessionRejectedError, Rn as createChannelTools, jn as CHAT_CHANNEL_RENDER_CONTEXT_KEY, kn as MastraStateAdapter, zn as resolveChannelToolsSettings } from "../run-registry-CGRPldLH.js";
|
|
2
|
+
import { t as AgentControllerChannels } from "../channels-BRVCOutx.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 { En as AgentChannels, Pn as ChannelSessionRejectedError } from "./run-registry-
|
|
1
|
+
import { En as AgentChannels, Pn as ChannelSessionRejectedError } from "./run-registry-CGRPldLH.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-5Suldxz3.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-D1OzzlLw.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 { P as Agent, jo as CyberRefusalHandler, us as defaultStabilityErrorProcessors } from "../run-registry-
|
|
1
|
+
import { P as Agent, jo as CyberRefusalHandler, us as defaultStabilityErrorProcessors } from "../run-registry-CGRPldLH.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-C05xDH60.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-5Suldxz3.cjs");
|
|
3
|
+
const require_manager = require("../manager-D27PkIPo.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 { Bi as assertSupportedPatterns, Gi as SchemaValidationError, Hi as getSchemaValidator, Ui as UnsupportedSchemaPatternError, Vi as createValidator, Wi as SchemaUpdateValidationError, zi as SchemaValidator } from "../run-registry-
|
|
2
|
-
import { _ as
|
|
1
|
+
import { Bi as assertSupportedPatterns, Gi as SchemaValidationError, Hi as getSchemaValidator, Ui as UnsupportedSchemaPatternError, Vi as createValidator, Wi as SchemaUpdateValidationError, zi as SchemaValidator } from "../run-registry-CGRPldLH.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-CO_Xz2zR.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.8"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
|
@@ -305,7 +305,7 @@ Read the individual reference documents for detailed explanations and code examp
|
|
|
305
305
|
- [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
306
|
- [Reference: Knowledge class](references/reference-knowledge-knowledge-class.md) - Constructor options and methods of the Knowledge class.
|
|
307
307
|
- [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
|
|
308
|
+
- [Reference: Knowledge tools](references/reference-knowledge-knowledge-tools.md) - Arguments, operations, required roles and errors of the seven Knowledge tools.
|
|
309
309
|
- [Reference: Limits](references/reference-knowledge-limits.md) - Size limits for notes, pages, searches and pinned context in Knowledge.
|
|
310
310
|
- [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
311
|
- [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.
|