@mastra/core 1.0.0-beta.11 → 1.0.0-beta.13
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/CHANGELOG.md +173 -0
- package/dist/_types/@internal_ai-sdk-v4/dist/index.d.ts +7549 -0
- package/dist/_types/@internal_ai-sdk-v4/dist/test.d.ts +65 -0
- package/dist/_types/@internal_ai-sdk-v5/dist/index.d.ts +8396 -0
- package/dist/_types/@internal_ai-sdk-v5/dist/test.d.ts +1708 -0
- package/dist/_types/@internal_external-types/dist/index.d.ts +858 -0
- package/dist/agent/agent-legacy.d.ts +1 -1
- package/dist/agent/agent.d.ts +1 -1
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/agent.types.d.ts +5 -1
- package/dist/agent/agent.types.d.ts.map +1 -1
- package/dist/agent/index.cjs +9 -9
- package/dist/agent/index.js +2 -2
- package/dist/agent/message-list/index.cjs +3 -3
- package/dist/agent/message-list/index.d.ts +4 -3
- package/dist/agent/message-list/index.d.ts.map +1 -1
- package/dist/agent/message-list/index.js +1 -1
- package/dist/agent/message-list/prompt/attachments-to-parts.d.ts +1 -1
- package/dist/agent/message-list/prompt/invalid-content-error.d.ts +1 -1
- package/dist/agent/message-list/types.d.ts +3 -3
- package/dist/agent/message-list/types.d.ts.map +1 -1
- package/dist/agent/message-list/utils/ai-v4-v5/core-model-message.d.ts +1 -1
- package/dist/agent/message-list/utils/ai-v4-v5/ui-message.d.ts +1 -1
- package/dist/agent/message-list/utils/ai-v5/gemini-compatibility.d.ts +2 -2
- package/dist/agent/message-list/utils/ai-v5/gemini-compatibility.d.ts.map +1 -1
- package/dist/agent/message-list/utils/convert-messages.d.ts +2 -2
- package/dist/agent/message-list/utils/convert-messages.d.ts.map +1 -1
- package/dist/agent/types.d.ts +3 -3
- package/dist/agent/utils.d.ts +3 -3
- package/dist/agent/utils.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/index.d.ts +2 -1
- package/dist/agent/workflows/prepare-stream/index.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/prepare-tools-step.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/stream-step.d.ts +3 -1
- package/dist/agent/workflows/prepare-stream/stream-step.d.ts.map +1 -1
- package/dist/bundler/types.d.ts +14 -1
- package/dist/bundler/types.d.ts.map +1 -1
- package/dist/{chunk-U3XOLEPX.js → chunk-2IU4RGU5.js} +6 -32
- package/dist/chunk-2IU4RGU5.js.map +1 -0
- package/dist/chunk-2SQB3WBT.js +4574 -0
- package/dist/chunk-2SQB3WBT.js.map +1 -0
- package/dist/{chunk-THZTRBFS.js → chunk-373OC54J.js} +8 -8
- package/dist/chunk-373OC54J.js.map +1 -0
- package/dist/{chunk-F2GAJSBI.js → chunk-4BC5FUAO.js} +8 -6
- package/dist/{chunk-F2GAJSBI.js.map → chunk-4BC5FUAO.js.map} +1 -1
- package/dist/chunk-55VPMN3N.js +250 -0
- package/dist/chunk-55VPMN3N.js.map +1 -0
- package/dist/{chunk-QM5SRDJX.js → chunk-5PTZG26U.js} +66 -84
- package/dist/chunk-5PTZG26U.js.map +1 -0
- package/dist/chunk-5VZGJTPR.js +4837 -0
- package/dist/chunk-5VZGJTPR.js.map +1 -0
- package/dist/{chunk-C36YRTZ6.js → chunk-62Q7K656.js} +6 -7
- package/dist/chunk-62Q7K656.js.map +1 -0
- package/dist/chunk-6PMMP3FR.js +7 -0
- package/dist/chunk-6PMMP3FR.js.map +1 -0
- package/dist/{chunk-DZUJEN5N.cjs → chunk-6SZKM6EC.cjs} +10 -3
- package/dist/{chunk-DZUJEN5N.cjs.map → chunk-6SZKM6EC.cjs.map} +1 -1
- package/dist/{chunk-5WRI5ZAA.js → chunk-7D4SUZUM.js} +10 -4
- package/dist/{chunk-5WRI5ZAA.js.map → chunk-7D4SUZUM.js.map} +1 -1
- package/dist/{chunk-YWMMBIOM.cjs → chunk-7HEAVZRS.cjs} +15 -15
- package/dist/{chunk-YWMMBIOM.cjs.map → chunk-7HEAVZRS.cjs.map} +1 -1
- package/dist/{chunk-BUKY6CTR.cjs → chunk-AGHLXC4I.cjs} +106 -36
- package/dist/chunk-AGHLXC4I.cjs.map +1 -0
- package/dist/{chunk-PK2A5WBG.js → chunk-ARAQIW6E.js} +222 -604
- package/dist/chunk-ARAQIW6E.js.map +1 -0
- package/dist/{chunk-US2U7ECW.js → chunk-BQDZIQ3G.js} +156 -90
- package/dist/chunk-BQDZIQ3G.js.map +1 -0
- package/dist/chunk-D22XABFZ.js +79 -0
- package/dist/chunk-D22XABFZ.js.map +1 -0
- package/dist/{chunk-2ULLRN4Y.js → chunk-E5BQRAJK.js} +943 -626
- package/dist/chunk-E5BQRAJK.js.map +1 -0
- package/dist/chunk-FST2G2FQ.cjs +84 -0
- package/dist/chunk-FST2G2FQ.cjs.map +1 -0
- package/dist/chunk-FVQTJUBD.cjs +2120 -0
- package/dist/chunk-FVQTJUBD.cjs.map +1 -0
- package/dist/chunk-G6E6V2Z4.js +2070 -0
- package/dist/chunk-G6E6V2Z4.js.map +1 -0
- package/dist/{chunk-7P6BNIJH.js → chunk-GIWC35YQ.js} +105 -35
- package/dist/chunk-GIWC35YQ.js.map +1 -0
- package/dist/{chunk-4JKEUSCC.cjs → chunk-H4VUIOWU.cjs} +22 -20
- package/dist/chunk-H4VUIOWU.cjs.map +1 -0
- package/dist/{chunk-TWH4PTDG.cjs → chunk-HWMMIRIF.cjs} +32 -27
- package/dist/chunk-HWMMIRIF.cjs.map +1 -0
- package/dist/chunk-IXZ2T2QX.cjs +448 -0
- package/dist/chunk-IXZ2T2QX.cjs.map +1 -0
- package/dist/chunk-L3NKIMF5.cjs +10 -0
- package/dist/chunk-L3NKIMF5.cjs.map +1 -0
- package/dist/chunk-L4JCRWDY.cjs +252 -0
- package/dist/chunk-L4JCRWDY.cjs.map +1 -0
- package/dist/{chunk-BJXKH4LG.cjs → chunk-LGB4VNZI.cjs} +43 -78
- package/dist/chunk-LGB4VNZI.cjs.map +1 -0
- package/dist/{chunk-PG5H6QIO.cjs → chunk-MLKE7HRS.cjs} +41 -21
- package/dist/chunk-MLKE7HRS.cjs.map +1 -0
- package/dist/{chunk-OEIVMCWX.js → chunk-MRRFTNF4.js} +2537 -84
- package/dist/chunk-MRRFTNF4.js.map +1 -0
- package/dist/chunk-MXBVP7HX.cjs +4842 -0
- package/dist/chunk-MXBVP7HX.cjs.map +1 -0
- package/dist/chunk-NESKUIRE.cjs +4586 -0
- package/dist/chunk-NESKUIRE.cjs.map +1 -0
- package/dist/{chunk-SVLMF4UZ.cjs → chunk-NIOEY3N3.cjs} +66 -85
- package/dist/chunk-NIOEY3N3.cjs.map +1 -0
- package/dist/{chunk-CZEJQSWB.cjs → chunk-OWIEOL55.cjs} +295 -677
- package/dist/chunk-OWIEOL55.cjs.map +1 -0
- package/dist/{chunk-WTSZBHIZ.cjs → chunk-PJAK4U6R.cjs} +24 -24
- package/dist/{chunk-WTSZBHIZ.cjs.map → chunk-PJAK4U6R.cjs.map} +1 -1
- package/dist/{chunk-52RSUALV.cjs → chunk-R5AJGM55.cjs} +1314 -995
- package/dist/chunk-R5AJGM55.cjs.map +1 -0
- package/dist/{chunk-IVV5TOMD.js → chunk-RCJLMMTO.js} +32 -12
- package/dist/chunk-RCJLMMTO.js.map +1 -0
- package/dist/{chunk-S73Z3PBJ.cjs → chunk-SZYSDJTN.cjs} +27 -28
- package/dist/chunk-SZYSDJTN.cjs.map +1 -0
- package/dist/{chunk-YC6PJEPH.cjs → chunk-U4CSOY6T.cjs} +188 -122
- package/dist/chunk-U4CSOY6T.cjs.map +1 -0
- package/dist/chunk-UBSPZTQX.js +434 -0
- package/dist/chunk-UBSPZTQX.js.map +1 -0
- package/dist/{chunk-SCUWP4II.cjs → chunk-VEPP75C4.cjs} +47 -74
- package/dist/chunk-VEPP75C4.cjs.map +1 -0
- package/dist/{chunk-JIGDJK2O.js → chunk-VETAQUW3.js} +4 -39
- package/dist/chunk-VETAQUW3.js.map +1 -0
- package/dist/{chunk-Z57R5WS4.js → chunk-WPTTKULS.js} +4 -4
- package/dist/{chunk-Z57R5WS4.js.map → chunk-WPTTKULS.js.map} +1 -1
- package/dist/{chunk-O2BJW7YA.js → chunk-WYGUWVTF.js} +5 -5
- package/dist/{chunk-O2BJW7YA.js.map → chunk-WYGUWVTF.js.map} +1 -1
- package/dist/{chunk-SXNQRJQD.js → chunk-WYWRMIQC.js} +127 -22
- package/dist/chunk-WYWRMIQC.js.map +1 -0
- package/dist/{chunk-5Q6WAYEY.cjs → chunk-X6IBA7FP.cjs} +137 -50
- package/dist/chunk-X6IBA7FP.cjs.map +1 -0
- package/dist/{chunk-MRFUISXC.cjs → chunk-Y7MZ5LJT.cjs} +2632 -179
- package/dist/chunk-Y7MZ5LJT.cjs.map +1 -0
- package/dist/{chunk-JJ5O45LH.js → chunk-YPLZDWG7.js} +32 -27
- package/dist/chunk-YPLZDWG7.js.map +1 -0
- package/dist/{chunk-MGCGWPQJ.cjs → chunk-Z55SJVEC.cjs} +8 -8
- package/dist/chunk-Z55SJVEC.cjs.map +1 -0
- package/dist/error/index.cjs +6 -6
- package/dist/error/index.d.ts +26 -20
- package/dist/error/index.d.ts.map +1 -1
- package/dist/error/index.js +1 -1
- package/dist/error/utils.d.ts +19 -5
- package/dist/error/utils.d.ts.map +1 -1
- package/dist/evals/index.cjs +4 -4
- package/dist/evals/index.js +1 -1
- package/dist/evals/run/index.d.ts +1 -1
- package/dist/evals/scoreTraces/index.cjs +8 -8
- package/dist/evals/scoreTraces/index.js +2 -2
- package/dist/evals/types.d.ts +1 -1
- package/dist/events/event-emitter.d.ts +6 -1
- package/dist/events/event-emitter.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/integration/index.cjs +2 -2
- package/dist/integration/index.js +1 -1
- package/dist/llm/index.cjs +15 -15
- package/dist/llm/index.d.ts +2 -2
- package/dist/llm/index.d.ts.map +1 -1
- package/dist/llm/index.js +5 -5
- package/dist/llm/model/aisdk/v5/model.d.ts +1 -1
- package/dist/llm/model/base.types.d.ts +2 -2
- package/dist/llm/model/model.d.ts +1 -1
- package/dist/llm/model/model.d.ts.map +1 -1
- package/dist/llm/model/model.loop.d.ts +2 -2
- package/dist/llm/model/model.loop.d.ts.map +1 -1
- package/dist/llm/model/model.loop.types.d.ts +1 -1
- package/dist/llm/model/model.loop.types.d.ts.map +1 -1
- package/dist/llm/model/provider-types.generated.d.ts +51 -11
- package/dist/llm/model/shared.types.d.ts +1 -1
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +1 -1
- package/dist/loop/loop.d.ts +2 -2
- package/dist/loop/loop.d.ts.map +1 -1
- package/dist/loop/test-utils/MastraLanguageModelV2Mock.d.ts +1 -1
- package/dist/loop/test-utils/MastraLanguageModelV2Mock.d.ts.map +1 -1
- package/dist/loop/test-utils/options.d.ts.map +1 -1
- package/dist/loop/test-utils/streamObject.d.ts +1 -1
- package/dist/loop/test-utils/streamObject.d.ts.map +1 -1
- package/dist/loop/test-utils/tools.d.ts.map +1 -1
- package/dist/loop/types.d.ts +3 -1
- package/dist/loop/types.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/index.d.ts +13 -13
- package/dist/loop/workflows/agentic-execution/index.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts +10 -10
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts +5 -5
- package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/tool-call-step.d.ts +22 -21
- package/dist/loop/workflows/agentic-execution/tool-call-step.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-loop/index.d.ts +13 -13
- package/dist/loop/workflows/agentic-loop/index.d.ts.map +1 -1
- package/dist/loop/workflows/schema.d.ts +6 -6
- package/dist/loop/workflows/schema.d.ts.map +1 -1
- package/dist/loop/workflows/stream.d.ts +2 -2
- package/dist/loop/workflows/stream.d.ts.map +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.js +1 -1
- package/dist/mcp/index.cjs +4 -4
- package/dist/mcp/index.js +1 -1
- package/dist/memory/index.cjs +6 -6
- package/dist/memory/index.js +1 -1
- package/dist/memory/memory.d.ts +1 -1
- package/dist/memory/types.d.ts +3 -3
- package/dist/memory/types.d.ts.map +1 -1
- package/dist/models-dev-D3EKFGAO.cjs +12 -0
- package/dist/{models-dev-EO3SUIY2.cjs.map → models-dev-D3EKFGAO.cjs.map} +1 -1
- package/dist/models-dev-EO22XOXQ.js +3 -0
- package/dist/{models-dev-23RN2WHG.js.map → models-dev-EO22XOXQ.js.map} +1 -1
- package/dist/netlify-AE4LNCAI.js +3 -0
- package/dist/{netlify-GXJ5D5DD.js.map → netlify-AE4LNCAI.js.map} +1 -1
- package/dist/netlify-WE42TZIT.cjs +12 -0
- package/dist/{netlify-KJLY3GFS.cjs.map → netlify-WE42TZIT.cjs.map} +1 -1
- package/dist/processors/index.cjs +37 -37
- package/dist/processors/index.d.ts +2 -2
- package/dist/processors/index.d.ts.map +1 -1
- package/dist/processors/index.js +1 -1
- package/dist/processors/step-schema.d.ts +1267 -1267
- package/dist/processors/step-schema.d.ts.map +1 -1
- package/dist/provider-registry-6LF3NGC5.js +3 -0
- package/dist/{provider-registry-F67Y6OF2.js.map → provider-registry-6LF3NGC5.js.map} +1 -1
- package/dist/provider-registry-73FKMXJV.cjs +40 -0
- package/dist/{provider-registry-3TG2KUD2.cjs.map → provider-registry-73FKMXJV.cjs.map} +1 -1
- package/dist/provider-registry.json +100 -30
- package/dist/{registry-generator-UMTNPBJX.js → registry-generator-AVQXI3GX.js} +2 -2
- package/dist/{registry-generator-UMTNPBJX.js.map → registry-generator-AVQXI3GX.js.map} +1 -1
- package/dist/{registry-generator-34SC4TAU.cjs → registry-generator-KOFNIIWJ.cjs} +2 -2
- package/dist/{registry-generator-34SC4TAU.cjs.map → registry-generator-KOFNIIWJ.cjs.map} +1 -1
- package/dist/relevance/index.cjs +2 -2
- package/dist/relevance/index.js +1 -1
- package/dist/server/index.cjs +5 -5
- package/dist/server/index.js +1 -1
- package/dist/storage/base.d.ts +2 -10
- package/dist/storage/base.d.ts.map +1 -1
- package/dist/storage/domains/workflows/base.d.ts +2 -8
- package/dist/storage/domains/workflows/base.d.ts.map +1 -1
- package/dist/storage/domains/workflows/inmemory.d.ts +2 -8
- package/dist/storage/domains/workflows/inmemory.d.ts.map +1 -1
- package/dist/storage/index.cjs +38 -38
- package/dist/storage/index.js +1 -1
- package/dist/storage/mock.d.ts +2 -8
- package/dist/storage/mock.d.ts.map +1 -1
- package/dist/storage/types.d.ts +9 -1
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/stream/RunOutput.d.ts +1 -1
- package/dist/stream/aisdk/v4/input.d.ts +1 -1
- package/dist/stream/aisdk/v5/compat/content.d.ts +1 -1
- package/dist/stream/aisdk/v5/compat/content.d.ts.map +1 -1
- package/dist/stream/aisdk/v5/compat/prepare-tools.d.ts +1 -1
- package/dist/stream/aisdk/v5/compat/prepare-tools.d.ts.map +1 -1
- package/dist/stream/aisdk/v5/compat/ui-message.d.ts +1 -1
- package/dist/stream/aisdk/v5/compat/ui-message.d.ts.map +1 -1
- package/dist/stream/aisdk/v5/compat/validation.d.ts +1 -1
- package/dist/stream/aisdk/v5/compat/validation.d.ts.map +1 -1
- package/dist/stream/aisdk/v5/execute.d.ts +2 -2
- package/dist/stream/aisdk/v5/execute.d.ts.map +1 -1
- package/dist/stream/aisdk/v5/input.d.ts +1 -1
- package/dist/stream/aisdk/v5/input.d.ts.map +1 -1
- package/dist/stream/aisdk/v5/output-helpers.d.ts +12 -27
- package/dist/stream/aisdk/v5/output-helpers.d.ts.map +1 -1
- package/dist/stream/aisdk/v5/output.d.ts +41 -91
- package/dist/stream/aisdk/v5/output.d.ts.map +1 -1
- package/dist/stream/aisdk/v5/transform.d.ts +1 -1
- package/dist/stream/aisdk/v5/transform.d.ts.map +1 -1
- package/dist/stream/base/input.d.ts +1 -1
- package/dist/stream/base/output.d.ts +9 -31
- package/dist/stream/base/output.d.ts.map +1 -1
- package/dist/stream/base/schema.d.ts +2 -2
- package/dist/stream/base/schema.d.ts.map +1 -1
- package/dist/stream/index.cjs +12 -12
- package/dist/stream/index.js +2 -2
- package/dist/stream/types.d.ts +3 -2
- package/dist/stream/types.d.ts.map +1 -1
- package/dist/test-utils/llm-mock.cjs +14587 -14
- package/dist/test-utils/llm-mock.cjs.map +1 -1
- package/dist/test-utils/llm-mock.d.ts +3 -3
- package/dist/test-utils/llm-mock.d.ts.map +1 -1
- package/dist/test-utils/llm-mock.js +14577 -4
- package/dist/test-utils/llm-mock.js.map +1 -1
- package/dist/token-6GSAFR2W-SGVIXFCP.cjs +63 -0
- package/dist/token-6GSAFR2W-SGVIXFCP.cjs.map +1 -0
- package/dist/token-6GSAFR2W-SPYPLMBM.js +61 -0
- package/dist/token-6GSAFR2W-SPYPLMBM.js.map +1 -0
- package/dist/token-util-NEHG7TUY-7GMW5FXI.cjs +10 -0
- package/dist/token-util-NEHG7TUY-7GMW5FXI.cjs.map +1 -0
- package/dist/token-util-NEHG7TUY-JRJTGTAB.js +8 -0
- package/dist/token-util-NEHG7TUY-JRJTGTAB.js.map +1 -0
- package/dist/tools/index.cjs +4 -4
- package/dist/tools/index.js +1 -1
- package/dist/tools/is-vercel-tool.cjs +2 -2
- package/dist/tools/is-vercel-tool.js +1 -1
- package/dist/tools/tool-builder/builder.d.ts +2 -1
- package/dist/tools/tool-builder/builder.d.ts.map +1 -1
- package/dist/tools/tool.d.ts.map +1 -1
- package/dist/tools/types.d.ts +5 -5
- package/dist/tools/types.d.ts.map +1 -1
- package/dist/utils.cjs +22 -22
- package/dist/utils.d.ts +3 -3
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +1 -1
- package/dist/vector/embed.d.ts +2 -2
- package/dist/vector/embed.d.ts.map +1 -1
- package/dist/vector/index.cjs +11 -11
- package/dist/vector/index.js +3 -3
- package/dist/vector/vector.d.ts +1 -1
- package/dist/voice/aisdk/speech.d.ts +1 -1
- package/dist/voice/aisdk/speech.d.ts.map +1 -1
- package/dist/voice/aisdk/transcription.d.ts +1 -1
- package/dist/voice/aisdk/transcription.d.ts.map +1 -1
- package/dist/voice/composite-voice.d.ts +1 -1
- package/dist/voice/composite-voice.d.ts.map +1 -1
- package/dist/voice/index.cjs +6 -6
- package/dist/voice/index.js +1 -1
- package/dist/workflows/constants.cjs +4 -4
- package/dist/workflows/constants.d.ts +1 -1
- package/dist/workflows/constants.d.ts.map +1 -1
- package/dist/workflows/constants.js +1 -1
- package/dist/workflows/default.d.ts +9 -16
- package/dist/workflows/default.d.ts.map +1 -1
- package/dist/workflows/evented/execution-engine.d.ts +3 -2
- package/dist/workflows/evented/execution-engine.d.ts.map +1 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/evented/step-executor.d.ts +1 -1
- package/dist/workflows/evented/step-executor.d.ts.map +1 -1
- package/dist/workflows/evented/workflow-event-processor/index.d.ts +1 -1
- package/dist/workflows/evented/workflow-event-processor/index.d.ts.map +1 -1
- package/dist/workflows/evented/workflow.d.ts +15 -0
- package/dist/workflows/evented/workflow.d.ts.map +1 -1
- package/dist/workflows/execution-engine.d.ts +25 -2
- package/dist/workflows/execution-engine.d.ts.map +1 -1
- package/dist/workflows/handlers/control-flow.d.ts +6 -5
- package/dist/workflows/handlers/control-flow.d.ts.map +1 -1
- package/dist/workflows/handlers/entry.d.ts +5 -3
- package/dist/workflows/handlers/entry.d.ts.map +1 -1
- package/dist/workflows/handlers/sleep.d.ts +4 -3
- package/dist/workflows/handlers/sleep.d.ts.map +1 -1
- package/dist/workflows/handlers/step.d.ts +5 -3
- package/dist/workflows/handlers/step.d.ts.map +1 -1
- package/dist/workflows/index.cjs +26 -22
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/step.d.ts +5 -4
- package/dist/workflows/step.d.ts.map +1 -1
- package/dist/workflows/types.d.ts +66 -14
- package/dist/workflows/types.d.ts.map +1 -1
- package/dist/workflows/utils.d.ts +11 -0
- package/dist/workflows/utils.d.ts.map +1 -1
- package/dist/workflows/workflow.d.ts +26 -8
- package/dist/workflows/workflow.d.ts.map +1 -1
- package/package.json +12 -11
- package/src/llm/model/provider-types.generated.d.ts +51 -11
- package/dist/agent/__tests__/mock-model.d.ts +0 -8
- package/dist/agent/__tests__/mock-model.d.ts.map +0 -1
- package/dist/agent/agent-types.test-d.d.ts +0 -2
- package/dist/agent/agent-types.test-d.d.ts.map +0 -1
- package/dist/ai-sdk.types.d.ts +0 -4705
- package/dist/chunk-2ULLRN4Y.js.map +0 -1
- package/dist/chunk-3E3ILV6T.cjs +0 -518
- package/dist/chunk-3E3ILV6T.cjs.map +0 -1
- package/dist/chunk-4JKEUSCC.cjs.map +0 -1
- package/dist/chunk-52RSUALV.cjs.map +0 -1
- package/dist/chunk-5PAEYE3Q.js +0 -513
- package/dist/chunk-5PAEYE3Q.js.map +0 -1
- package/dist/chunk-5Q6WAYEY.cjs.map +0 -1
- package/dist/chunk-7P6BNIJH.js.map +0 -1
- package/dist/chunk-ABJOUEVA.cjs +0 -10
- package/dist/chunk-ABJOUEVA.cjs.map +0 -1
- package/dist/chunk-BJXKH4LG.cjs.map +0 -1
- package/dist/chunk-BUKY6CTR.cjs.map +0 -1
- package/dist/chunk-C36YRTZ6.js.map +0 -1
- package/dist/chunk-CZEJQSWB.cjs.map +0 -1
- package/dist/chunk-IVV5TOMD.js.map +0 -1
- package/dist/chunk-JIGDJK2O.js.map +0 -1
- package/dist/chunk-JJ5O45LH.js.map +0 -1
- package/dist/chunk-MGCGWPQJ.cjs.map +0 -1
- package/dist/chunk-MRFUISXC.cjs.map +0 -1
- package/dist/chunk-NLNKQD2T.js +0 -7
- package/dist/chunk-NLNKQD2T.js.map +0 -1
- package/dist/chunk-OEIVMCWX.js.map +0 -1
- package/dist/chunk-PG5H6QIO.cjs.map +0 -1
- package/dist/chunk-PK2A5WBG.js.map +0 -1
- package/dist/chunk-QM5SRDJX.js.map +0 -1
- package/dist/chunk-S73Z3PBJ.cjs.map +0 -1
- package/dist/chunk-SCUWP4II.cjs.map +0 -1
- package/dist/chunk-SVLMF4UZ.cjs.map +0 -1
- package/dist/chunk-SXNQRJQD.js.map +0 -1
- package/dist/chunk-THZTRBFS.js.map +0 -1
- package/dist/chunk-TWH4PTDG.cjs.map +0 -1
- package/dist/chunk-U3XOLEPX.js.map +0 -1
- package/dist/chunk-US2U7ECW.js.map +0 -1
- package/dist/chunk-YC6PJEPH.cjs.map +0 -1
- package/dist/models-dev-23RN2WHG.js +0 -3
- package/dist/models-dev-EO3SUIY2.cjs +0 -12
- package/dist/netlify-GXJ5D5DD.js +0 -3
- package/dist/netlify-KJLY3GFS.cjs +0 -12
- package/dist/provider-registry-3TG2KUD2.cjs +0 -40
- package/dist/provider-registry-F67Y6OF2.js +0 -3
- package/dist/tools/tool-stream-types.test-d.d.ts +0 -2
- package/dist/tools/tool-stream-types.test-d.d.ts.map +0 -1
|
@@ -1,38 +1,20 @@
|
|
|
1
|
+
import { __require } from './chunk-7D4SUZUM.js';
|
|
1
2
|
import { z, ZodFirstPartyTypeKind } from 'zod';
|
|
2
3
|
|
|
3
|
-
// ../
|
|
4
|
-
function notImplemented() {
|
|
5
|
-
throw new Error("Not implemented");
|
|
6
|
-
}
|
|
7
|
-
var MockLanguageModelV1 = class {
|
|
8
|
-
constructor({
|
|
9
|
-
provider = "mock-provider",
|
|
10
|
-
modelId = "mock-model-id",
|
|
11
|
-
supportsUrl = void 0,
|
|
12
|
-
doGenerate = notImplemented,
|
|
13
|
-
doStream = notImplemented,
|
|
14
|
-
defaultObjectGenerationMode = void 0,
|
|
15
|
-
supportsStructuredOutputs = void 0
|
|
16
|
-
} = {}) {
|
|
17
|
-
this.specificationVersion = "v1";
|
|
18
|
-
this.provider = provider;
|
|
19
|
-
this.modelId = modelId;
|
|
20
|
-
this.doGenerate = doGenerate;
|
|
21
|
-
this.doStream = doStream;
|
|
22
|
-
this.supportsUrl = supportsUrl;
|
|
23
|
-
this.defaultObjectGenerationMode = defaultObjectGenerationMode;
|
|
24
|
-
this.supportsStructuredOutputs = supportsStructuredOutputs;
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
// ../_ai-sdk-v4/dist/chunk-EDUQOWHB.js
|
|
4
|
+
// ../_vendored/ai_v4/dist/chunk-IHGBB4AL.js
|
|
29
5
|
var __create = Object.create;
|
|
30
6
|
var __defProp = Object.defineProperty;
|
|
31
7
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
32
8
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
33
9
|
var __getProtoOf = Object.getPrototypeOf;
|
|
34
10
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
35
|
-
var
|
|
11
|
+
var __require2 = /* @__PURE__ */ ((x) => typeof __require !== "undefined" ? __require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
12
|
+
get: (a, b) => (typeof __require !== "undefined" ? __require : a)[b]
|
|
13
|
+
}) : x)(function(x) {
|
|
14
|
+
if (typeof __require !== "undefined") return __require.apply(this, arguments);
|
|
15
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
16
|
+
});
|
|
17
|
+
var __commonJS = (cb, mod) => function __require22() {
|
|
36
18
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
37
19
|
};
|
|
38
20
|
var __copyProps = (to, from, except, desc) => {
|
|
@@ -52,7 +34,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
52
34
|
mod
|
|
53
35
|
));
|
|
54
36
|
var require_secure_json_parse = __commonJS({
|
|
55
|
-
"
|
|
37
|
+
"../../../node_modules/.pnpm/secure-json-parse@2.7.0/node_modules/secure-json-parse/index.js"(exports, module) {
|
|
56
38
|
var hasBuffer = typeof Buffer !== "undefined";
|
|
57
39
|
var suspectProtoRx = /"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/;
|
|
58
40
|
var suspectConstructorRx = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;
|
|
@@ -182,8 +164,8 @@ var _AISDKError = class _AISDKError2 extends Error {
|
|
|
182
164
|
static isInstance(error) {
|
|
183
165
|
return _AISDKError2.hasMarker(error, marker);
|
|
184
166
|
}
|
|
185
|
-
static hasMarker(error,
|
|
186
|
-
const markerSymbol = Symbol.for(
|
|
167
|
+
static hasMarker(error, marker152) {
|
|
168
|
+
const markerSymbol = Symbol.for(marker152);
|
|
187
169
|
return error != null && typeof error === "object" && markerSymbol in error && typeof error[markerSymbol] === "boolean" && error[markerSymbol] === true;
|
|
188
170
|
}
|
|
189
171
|
};
|
|
@@ -2343,7 +2325,7 @@ function isDeepEqualData(obj1, obj2) {
|
|
|
2343
2325
|
}
|
|
2344
2326
|
function zodSchema(zodSchema2, options) {
|
|
2345
2327
|
var _a17;
|
|
2346
|
-
const useReferences = (_a17 = void 0) != null ? _a17 : false;
|
|
2328
|
+
const useReferences = (_a17 = void 0 ) != null ? _a17 : false;
|
|
2347
2329
|
return jsonSchema(
|
|
2348
2330
|
esm_default(zodSchema2, {
|
|
2349
2331
|
$refStrategy: useReferences ? "root" : "none",
|
|
@@ -3151,10 +3133,10 @@ var UnsupportedModelVersionError = class extends AISDKError {
|
|
|
3151
3133
|
});
|
|
3152
3134
|
}
|
|
3153
3135
|
};
|
|
3154
|
-
var
|
|
3155
|
-
var
|
|
3156
|
-
var
|
|
3157
|
-
var
|
|
3136
|
+
var name8 = "AI_InvalidArgumentError";
|
|
3137
|
+
var marker9 = `vercel.ai.error.${name8}`;
|
|
3138
|
+
var symbol9 = Symbol.for(marker9);
|
|
3139
|
+
var _a9;
|
|
3158
3140
|
var InvalidArgumentError2 = class extends AISDKError {
|
|
3159
3141
|
constructor({
|
|
3160
3142
|
parameter,
|
|
@@ -3162,18 +3144,18 @@ var InvalidArgumentError2 = class extends AISDKError {
|
|
|
3162
3144
|
message
|
|
3163
3145
|
}) {
|
|
3164
3146
|
super({
|
|
3165
|
-
name:
|
|
3147
|
+
name: name8,
|
|
3166
3148
|
message: `Invalid argument for parameter ${parameter}: ${message}`
|
|
3167
3149
|
});
|
|
3168
|
-
this[
|
|
3150
|
+
this[_a9] = true;
|
|
3169
3151
|
this.parameter = parameter;
|
|
3170
3152
|
this.value = value;
|
|
3171
3153
|
}
|
|
3172
3154
|
static isInstance(error) {
|
|
3173
|
-
return AISDKError.hasMarker(error,
|
|
3155
|
+
return AISDKError.hasMarker(error, marker9);
|
|
3174
3156
|
}
|
|
3175
3157
|
};
|
|
3176
|
-
|
|
3158
|
+
_a9 = symbol9;
|
|
3177
3159
|
var name22 = "AI_RetryError";
|
|
3178
3160
|
var marker22 = `vercel.ai.error.${name22}`;
|
|
3179
3161
|
var symbol22 = Symbol.for(marker22);
|
|
@@ -3706,8 +3688,8 @@ var NoObjectGeneratedError = class extends AISDKError {
|
|
|
3706
3688
|
}
|
|
3707
3689
|
};
|
|
3708
3690
|
_a42 = symbol42;
|
|
3709
|
-
var
|
|
3710
|
-
var marker52 = `vercel.ai.error.${
|
|
3691
|
+
var name52 = "AI_DownloadError";
|
|
3692
|
+
var marker52 = `vercel.ai.error.${name52}`;
|
|
3711
3693
|
var symbol52 = Symbol.for(marker52);
|
|
3712
3694
|
var _a52;
|
|
3713
3695
|
var DownloadError = class extends AISDKError {
|
|
@@ -3718,7 +3700,7 @@ var DownloadError = class extends AISDKError {
|
|
|
3718
3700
|
cause,
|
|
3719
3701
|
message = cause == null ? `Failed to download ${url}: ${statusCode} ${statusText}` : `Failed to download ${url}: ${cause}`
|
|
3720
3702
|
}) {
|
|
3721
|
-
super({ name:
|
|
3703
|
+
super({ name: name52, message, cause });
|
|
3722
3704
|
this[_a52] = true;
|
|
3723
3705
|
this.url = url;
|
|
3724
3706
|
this.statusCode = statusCode;
|
|
@@ -3753,9 +3735,9 @@ async function download({ url }) {
|
|
|
3753
3735
|
}
|
|
3754
3736
|
}
|
|
3755
3737
|
var name62 = "AI_InvalidDataContentError";
|
|
3756
|
-
var
|
|
3757
|
-
var
|
|
3758
|
-
var
|
|
3738
|
+
var marker62 = `vercel.ai.error.${name62}`;
|
|
3739
|
+
var symbol62 = Symbol.for(marker62);
|
|
3740
|
+
var _a62;
|
|
3759
3741
|
var InvalidDataContentError = class extends AISDKError {
|
|
3760
3742
|
constructor({
|
|
3761
3743
|
content,
|
|
@@ -3763,14 +3745,14 @@ var InvalidDataContentError = class extends AISDKError {
|
|
|
3763
3745
|
message = `Invalid data content. Expected a base64 string, Uint8Array, ArrayBuffer, or Buffer, but got ${typeof content}.`
|
|
3764
3746
|
}) {
|
|
3765
3747
|
super({ name: name62, message, cause });
|
|
3766
|
-
this[
|
|
3748
|
+
this[_a62] = true;
|
|
3767
3749
|
this.content = content;
|
|
3768
3750
|
}
|
|
3769
3751
|
static isInstance(error) {
|
|
3770
|
-
return AISDKError.hasMarker(error,
|
|
3752
|
+
return AISDKError.hasMarker(error, marker62);
|
|
3771
3753
|
}
|
|
3772
3754
|
};
|
|
3773
|
-
|
|
3755
|
+
_a62 = symbol62;
|
|
3774
3756
|
var dataContentSchema = z.union([
|
|
3775
3757
|
z.string(),
|
|
3776
3758
|
z.instanceof(Uint8Array),
|
|
@@ -3820,8 +3802,8 @@ function convertUint8ArrayToText(uint8Array) {
|
|
|
3820
3802
|
throw new Error("Error decoding Uint8Array to text");
|
|
3821
3803
|
}
|
|
3822
3804
|
}
|
|
3823
|
-
var
|
|
3824
|
-
var marker72 = `vercel.ai.error.${
|
|
3805
|
+
var name72 = "AI_InvalidMessageRoleError";
|
|
3806
|
+
var marker72 = `vercel.ai.error.${name72}`;
|
|
3825
3807
|
var symbol72 = Symbol.for(marker72);
|
|
3826
3808
|
var _a72;
|
|
3827
3809
|
var InvalidMessageRoleError = class extends AISDKError {
|
|
@@ -3829,7 +3811,7 @@ var InvalidMessageRoleError = class extends AISDKError {
|
|
|
3829
3811
|
role,
|
|
3830
3812
|
message = `Invalid message role: '${role}'. Must be one of: "system", "user", "assistant", "tool".`
|
|
3831
3813
|
}) {
|
|
3832
|
-
super({ name:
|
|
3814
|
+
super({ name: name72, message });
|
|
3833
3815
|
this[_a72] = true;
|
|
3834
3816
|
this.role = role;
|
|
3835
3817
|
}
|
|
@@ -4252,24 +4234,24 @@ function attachmentsToParts(attachments) {
|
|
|
4252
4234
|
}
|
|
4253
4235
|
return parts;
|
|
4254
4236
|
}
|
|
4255
|
-
var
|
|
4256
|
-
var
|
|
4257
|
-
var
|
|
4258
|
-
var
|
|
4237
|
+
var name82 = "AI_MessageConversionError";
|
|
4238
|
+
var marker82 = `vercel.ai.error.${name82}`;
|
|
4239
|
+
var symbol82 = Symbol.for(marker82);
|
|
4240
|
+
var _a82;
|
|
4259
4241
|
var MessageConversionError = class extends AISDKError {
|
|
4260
4242
|
constructor({
|
|
4261
4243
|
originalMessage,
|
|
4262
4244
|
message
|
|
4263
4245
|
}) {
|
|
4264
|
-
super({ name:
|
|
4265
|
-
this[
|
|
4246
|
+
super({ name: name82, message });
|
|
4247
|
+
this[_a82] = true;
|
|
4266
4248
|
this.originalMessage = originalMessage;
|
|
4267
4249
|
}
|
|
4268
4250
|
static isInstance(error) {
|
|
4269
|
-
return AISDKError.hasMarker(error,
|
|
4251
|
+
return AISDKError.hasMarker(error, marker82);
|
|
4270
4252
|
}
|
|
4271
4253
|
};
|
|
4272
|
-
|
|
4254
|
+
_a82 = symbol82;
|
|
4273
4255
|
function convertToCoreMessages(messages, options) {
|
|
4274
4256
|
var _a17, _b;
|
|
4275
4257
|
const tools = (_a17 = options == null ? void 0 : options.tools) != null ? _a17 : {};
|
|
@@ -6292,25 +6274,25 @@ var DefaultStreamObjectResult = class {
|
|
|
6292
6274
|
});
|
|
6293
6275
|
}
|
|
6294
6276
|
};
|
|
6295
|
-
var
|
|
6296
|
-
var
|
|
6297
|
-
var
|
|
6298
|
-
var
|
|
6277
|
+
var name92 = "AI_NoOutputSpecifiedError";
|
|
6278
|
+
var marker92 = `vercel.ai.error.${name92}`;
|
|
6279
|
+
var symbol92 = Symbol.for(marker92);
|
|
6280
|
+
var _a92;
|
|
6299
6281
|
var NoOutputSpecifiedError = class extends AISDKError {
|
|
6300
6282
|
// used in isInstance
|
|
6301
6283
|
constructor({ message = "No output specified." } = {}) {
|
|
6302
|
-
super({ name:
|
|
6303
|
-
this[
|
|
6284
|
+
super({ name: name92, message });
|
|
6285
|
+
this[_a92] = true;
|
|
6304
6286
|
}
|
|
6305
6287
|
static isInstance(error) {
|
|
6306
|
-
return AISDKError.hasMarker(error,
|
|
6288
|
+
return AISDKError.hasMarker(error, marker92);
|
|
6307
6289
|
}
|
|
6308
6290
|
};
|
|
6309
|
-
|
|
6310
|
-
var
|
|
6311
|
-
var
|
|
6312
|
-
var
|
|
6313
|
-
var
|
|
6291
|
+
_a92 = symbol92;
|
|
6292
|
+
var name102 = "AI_ToolExecutionError";
|
|
6293
|
+
var marker102 = `vercel.ai.error.${name102}`;
|
|
6294
|
+
var symbol102 = Symbol.for(marker102);
|
|
6295
|
+
var _a102;
|
|
6314
6296
|
var ToolExecutionError = class extends AISDKError {
|
|
6315
6297
|
constructor({
|
|
6316
6298
|
toolArgs,
|
|
@@ -6319,17 +6301,17 @@ var ToolExecutionError = class extends AISDKError {
|
|
|
6319
6301
|
cause,
|
|
6320
6302
|
message = `Error executing tool ${toolName}: ${getErrorMessage(cause)}`
|
|
6321
6303
|
}) {
|
|
6322
|
-
super({ name:
|
|
6323
|
-
this[
|
|
6304
|
+
super({ name: name102, message, cause });
|
|
6305
|
+
this[_a102] = true;
|
|
6324
6306
|
this.toolArgs = toolArgs;
|
|
6325
6307
|
this.toolName = toolName;
|
|
6326
6308
|
this.toolCallId = toolCallId;
|
|
6327
6309
|
}
|
|
6328
6310
|
static isInstance(error) {
|
|
6329
|
-
return AISDKError.hasMarker(error,
|
|
6311
|
+
return AISDKError.hasMarker(error, marker102);
|
|
6330
6312
|
}
|
|
6331
6313
|
};
|
|
6332
|
-
|
|
6314
|
+
_a102 = symbol102;
|
|
6333
6315
|
function isNonEmptyObject(object2) {
|
|
6334
6316
|
return object2 != null && Object.keys(object2).length > 0;
|
|
6335
6317
|
}
|
|
@@ -6385,9 +6367,9 @@ function removeTextAfterLastWhitespace(text2) {
|
|
|
6385
6367
|
return match ? match.prefix + match.whitespace : text2;
|
|
6386
6368
|
}
|
|
6387
6369
|
var name11 = "AI_InvalidToolArgumentsError";
|
|
6388
|
-
var
|
|
6389
|
-
var
|
|
6390
|
-
var
|
|
6370
|
+
var marker112 = `vercel.ai.error.${name11}`;
|
|
6371
|
+
var symbol112 = Symbol.for(marker112);
|
|
6372
|
+
var _a112;
|
|
6391
6373
|
var InvalidToolArgumentsError = class extends AISDKError {
|
|
6392
6374
|
constructor({
|
|
6393
6375
|
toolArgs,
|
|
@@ -6398,15 +6380,15 @@ var InvalidToolArgumentsError = class extends AISDKError {
|
|
|
6398
6380
|
)}`
|
|
6399
6381
|
}) {
|
|
6400
6382
|
super({ name: name11, message, cause });
|
|
6401
|
-
this[
|
|
6383
|
+
this[_a112] = true;
|
|
6402
6384
|
this.toolArgs = toolArgs;
|
|
6403
6385
|
this.toolName = toolName;
|
|
6404
6386
|
}
|
|
6405
6387
|
static isInstance(error) {
|
|
6406
|
-
return AISDKError.hasMarker(error,
|
|
6388
|
+
return AISDKError.hasMarker(error, marker112);
|
|
6407
6389
|
}
|
|
6408
6390
|
};
|
|
6409
|
-
|
|
6391
|
+
_a112 = symbol112;
|
|
6410
6392
|
var name122 = "AI_NoSuchToolError";
|
|
6411
6393
|
var marker12 = `vercel.ai.error.${name122}`;
|
|
6412
6394
|
var symbol12 = Symbol.for(marker12);
|
|
@@ -9017,6 +8999,6 @@ function trimStartOfStream() {
|
|
|
9017
8999
|
};
|
|
9018
9000
|
}
|
|
9019
9001
|
|
|
9020
|
-
export {
|
|
9021
|
-
//# sourceMappingURL=chunk-
|
|
9022
|
-
//# sourceMappingURL=chunk-
|
|
9002
|
+
export { __require2 as __require, convertToCoreMessages, embed, generateObject, generateText, output_exports, simulateReadableStream, streamObject, streamText };
|
|
9003
|
+
//# sourceMappingURL=chunk-5PTZG26U.js.map
|
|
9004
|
+
//# sourceMappingURL=chunk-5PTZG26U.js.map
|