@mastra/core 0.13.2 → 0.14.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -44
- package/dist/agent/agent.types.d.ts +12 -2
- package/dist/agent/agent.types.d.ts.map +1 -1
- package/dist/agent/index.cjs +14 -14
- package/dist/agent/index.d.ts +17 -17
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/agent/index.js +2 -2
- package/dist/agent/input-processor/index.cjs +28 -0
- package/dist/agent/input-processor/index.js +3 -0
- package/dist/agent/input-processor/processors/index.d.ts +4 -4
- package/dist/agent/input-processor/processors/index.d.ts.map +1 -1
- package/dist/agent/input-processor/processors/language-detector.d.ts +6 -139
- package/dist/agent/input-processor/processors/language-detector.d.ts.map +1 -1
- package/dist/agent/input-processor/processors/moderation.d.ts +5 -94
- package/dist/agent/input-processor/processors/moderation.d.ts.map +1 -1
- package/dist/agent/input-processor/processors/pii-detector.d.ts +6 -164
- package/dist/agent/input-processor/processors/pii-detector.d.ts.map +1 -1
- package/dist/agent/input-processor/processors/prompt-injection-detector.d.ts +6 -96
- package/dist/agent/input-processor/processors/prompt-injection-detector.d.ts.map +1 -1
- package/dist/agent/input-processor/processors/unicode-normalizer.d.ts +9 -25
- package/dist/agent/input-processor/processors/unicode-normalizer.d.ts.map +1 -1
- package/dist/agent/message-list/index.d.ts +138 -39
- package/dist/agent/message-list/index.d.ts.map +1 -1
- package/dist/agent/message-list/types.d.ts +3 -0
- package/dist/agent/message-list/types.d.ts.map +1 -0
- package/dist/agent/message-list/utils/ai-v4-v5/core-model-message.d.ts +3 -0
- package/dist/agent/message-list/utils/ai-v4-v5/core-model-message.d.ts.map +1 -0
- package/dist/agent/message-list/utils/ai-v4-v5/ui-message.d.ts +3 -0
- package/dist/agent/message-list/utils/ai-v4-v5/ui-message.d.ts.map +1 -0
- package/dist/agent/message-list/utils/ai-v5/tool.d.ts +16 -0
- package/dist/agent/message-list/utils/ai-v5/tool.d.ts.map +1 -0
- package/dist/agent/types.d.ts +34 -4
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/ai-tracing/base.d.ts +22 -7
- package/dist/ai-tracing/base.d.ts.map +1 -1
- package/dist/ai-tracing/default.d.ts +3 -3
- package/dist/ai-tracing/default.d.ts.map +1 -1
- package/dist/ai-tracing/index.cjs +253 -72
- package/dist/ai-tracing/index.cjs.map +1 -1
- package/dist/ai-tracing/index.d.ts +1 -0
- package/dist/ai-tracing/index.d.ts.map +1 -1
- package/dist/ai-tracing/index.js +243 -71
- package/dist/ai-tracing/index.js.map +1 -1
- package/dist/ai-tracing/no-op.d.ts +39 -7
- package/dist/ai-tracing/no-op.d.ts.map +1 -1
- package/dist/ai-tracing/registry.d.ts +29 -4
- package/dist/ai-tracing/registry.d.ts.map +1 -1
- package/dist/ai-tracing/types.d.ts +112 -53
- package/dist/ai-tracing/types.d.ts.map +1 -1
- package/dist/ai-tracing/utils.d.ts +24 -0
- package/dist/ai-tracing/utils.d.ts.map +1 -0
- package/dist/base.cjs +2 -2
- package/dist/base.js +1 -1
- package/dist/bundler/index.cjs +2 -2
- package/dist/bundler/index.js +1 -1
- package/dist/{chunk-N3VGOJZV.cjs → chunk-4BMFOQDC.cjs} +27 -47
- package/dist/chunk-4BMFOQDC.cjs.map +1 -0
- package/dist/{chunk-MTRRRTB4.js → chunk-4XDSHUFK.js} +7 -6
- package/dist/chunk-4XDSHUFK.js.map +1 -0
- package/dist/{chunk-SSJVFUBZ.js → chunk-67L5DRLO.js} +3 -3
- package/dist/{chunk-SSJVFUBZ.js.map → chunk-67L5DRLO.js.map} +1 -1
- package/dist/{chunk-FUERFM46.js → chunk-6GF5M4GX.js} +3 -3
- package/dist/{chunk-FUERFM46.js.map → chunk-6GF5M4GX.js.map} +1 -1
- package/dist/{chunk-7E2SNI5D.cjs → chunk-7AXX55C5.cjs} +5 -5
- package/dist/chunk-7AXX55C5.cjs.map +1 -0
- package/dist/{chunk-6W6LYR7M.js → chunk-7XGDFDZ2.js} +3 -3
- package/dist/{chunk-6W6LYR7M.js.map → chunk-7XGDFDZ2.js.map} +1 -1
- package/dist/{chunk-R4HT5XUH.cjs → chunk-ASJVWHIK.cjs} +993 -124
- package/dist/chunk-ASJVWHIK.cjs.map +1 -0
- package/dist/{chunk-ZDZ57MIU.js → chunk-AWILTHBM.js} +3 -3
- package/dist/{chunk-ZDZ57MIU.js.map → chunk-AWILTHBM.js.map} +1 -1
- package/dist/{chunk-DDYSOZ25.js → chunk-AYXRNQH3.js} +3 -3
- package/dist/{chunk-DDYSOZ25.js.map → chunk-AYXRNQH3.js.map} +1 -1
- package/dist/{chunk-U2CK6AN5.cjs → chunk-BCCEYWAV.cjs} +4 -4
- package/dist/{chunk-U2CK6AN5.cjs.map → chunk-BCCEYWAV.cjs.map} +1 -1
- package/dist/{chunk-MH64VYGF.cjs → chunk-CSTWQQ3C.cjs} +14 -13
- package/dist/chunk-CSTWQQ3C.cjs.map +1 -0
- package/dist/{chunk-FTPL7ILZ.js → chunk-CWZDKGJ6.js} +3 -3
- package/dist/{chunk-FTPL7ILZ.js.map → chunk-CWZDKGJ6.js.map} +1 -1
- package/dist/{chunk-MVSUZXER.cjs → chunk-D7P76YH6.cjs} +4 -4
- package/dist/{chunk-MVSUZXER.cjs.map → chunk-D7P76YH6.cjs.map} +1 -1
- package/dist/{chunk-IL5SHDY4.js → chunk-DAMIFZPW.js} +949 -103
- package/dist/chunk-DAMIFZPW.js.map +1 -0
- package/dist/{chunk-KLXRYVVQ.cjs → chunk-DVI6XHUC.cjs} +4 -4
- package/dist/{chunk-KLXRYVVQ.cjs.map → chunk-DVI6XHUC.cjs.map} +1 -1
- package/dist/chunk-ELKY3FEM.cjs +14 -0
- package/dist/{chunk-IP5NGA2S.cjs.map → chunk-ELKY3FEM.cjs.map} +1 -1
- package/dist/{chunk-TOODGJKM.js → chunk-GZVSHXPP.js} +3 -3
- package/dist/chunk-GZVSHXPP.js.map +1 -0
- package/dist/{chunk-WA3SWCXD.cjs → chunk-I4XP6RAN.cjs} +9 -9
- package/dist/{chunk-WA3SWCXD.cjs.map → chunk-I4XP6RAN.cjs.map} +1 -1
- package/dist/{chunk-PLVSXEQP.cjs → chunk-IAP4IWKM.cjs} +4 -4
- package/dist/{chunk-PLVSXEQP.cjs.map → chunk-IAP4IWKM.cjs.map} +1 -1
- package/dist/{chunk-YT4RGZYO.cjs → chunk-KXCUCBEI.cjs} +8 -8
- package/dist/{chunk-YT4RGZYO.cjs.map → chunk-KXCUCBEI.cjs.map} +1 -1
- package/dist/{chunk-Z74LG5VH.cjs → chunk-LFAAEOQC.cjs} +21 -4
- package/dist/chunk-LFAAEOQC.cjs.map +1 -0
- package/dist/{chunk-DK7AVDMI.cjs → chunk-LVVAUDVQ.cjs} +4 -4
- package/dist/{chunk-DK7AVDMI.cjs.map → chunk-LVVAUDVQ.cjs.map} +1 -1
- package/dist/{chunk-HBMZEZTO.js → chunk-ON4S33NP.js} +3 -3
- package/dist/{chunk-HBMZEZTO.js.map → chunk-ON4S33NP.js.map} +1 -1
- package/dist/{chunk-L6YBPFYF.js → chunk-OPT2L5AM.js} +1089 -81
- package/dist/chunk-OPT2L5AM.js.map +1 -0
- package/dist/{chunk-N2KMAW6T.js → chunk-P7WF6NQU.js} +20 -4
- package/dist/chunk-P7WF6NQU.js.map +1 -0
- package/dist/{chunk-KEMW2BER.js → chunk-PY4MHJTE.js} +3 -3
- package/dist/{chunk-KEMW2BER.js.map → chunk-PY4MHJTE.js.map} +1 -1
- package/dist/{chunk-TZVJV7EV.js → chunk-QSJZLHWA.js} +5 -5
- package/dist/{chunk-TZVJV7EV.js.map → chunk-QSJZLHWA.js.map} +1 -1
- package/dist/{chunk-DCOKWJ5G.cjs → chunk-RJCNC57P.cjs} +1110 -79
- package/dist/chunk-RJCNC57P.cjs.map +1 -0
- package/dist/{chunk-LMW44O4V.cjs → chunk-RPV7GQAX.cjs} +4 -4
- package/dist/{chunk-LMW44O4V.cjs.map → chunk-RPV7GQAX.cjs.map} +1 -1
- package/dist/{chunk-TZOR5M7H.js → chunk-RYCRCJCY.js} +25 -45
- package/dist/chunk-RYCRCJCY.js.map +1 -0
- package/dist/{chunk-IDDUQR6P.cjs → chunk-V5WKCX3G.cjs} +3 -3
- package/dist/chunk-V5WKCX3G.cjs.map +1 -0
- package/dist/{chunk-6AR2Z5ZG.js → chunk-X3GXU6TZ.js} +3 -3
- package/dist/chunk-X3GXU6TZ.js.map +1 -0
- package/dist/deployer/index.cjs +2 -2
- package/dist/deployer/index.js +1 -1
- package/dist/index.cjs +74 -70
- package/dist/index.js +14 -14
- package/dist/llm/index.d.ts +2 -1
- package/dist/llm/index.d.ts.map +1 -1
- package/dist/llm/model/base.types.d.ts +2 -6
- package/dist/llm/model/base.types.d.ts.map +1 -1
- package/dist/llm/model/index.d.ts +0 -1
- package/dist/llm/model/index.d.ts.map +1 -1
- package/dist/llm/model/model.d.ts +3 -2
- package/dist/llm/model/model.d.ts.map +1 -1
- package/dist/llm/model/model.loop.d.ts +25 -0
- package/dist/llm/model/model.loop.d.ts.map +1 -0
- package/dist/llm/model/model.loop.types.d.ts +39 -0
- package/dist/llm/model/model.loop.types.d.ts.map +1 -0
- package/dist/llm/model/shared.types.d.ts +8 -0
- package/dist/llm/model/shared.types.d.ts.map +1 -0
- package/dist/logger/constants.d.ts +1 -1
- package/dist/logger/index.cjs +6 -6
- package/dist/logger/index.js +1 -1
- package/dist/loop/index.cjs +2848 -0
- package/dist/loop/index.cjs.map +1 -0
- package/dist/loop/index.d.ts +2 -0
- package/dist/loop/index.d.ts.map +1 -0
- package/dist/loop/index.js +2842 -0
- package/dist/loop/index.js.map +1 -0
- package/dist/loop/loop.d.ts +5 -0
- package/dist/loop/loop.d.ts.map +1 -0
- package/dist/loop/telemetry/index.d.ts +36 -0
- package/dist/loop/telemetry/index.d.ts.map +1 -0
- package/dist/loop/telemetry/noop.d.ts +3 -0
- package/dist/loop/telemetry/noop.d.ts.map +1 -0
- package/dist/loop/test-utils/fullStream.d.ts +6 -0
- package/dist/loop/test-utils/fullStream.d.ts.map +1 -0
- package/dist/loop/test-utils/generateText.d.ts +6 -0
- package/dist/loop/test-utils/generateText.d.ts.map +1 -0
- package/dist/loop/test-utils/mockTracer.d.ts +47 -0
- package/dist/loop/test-utils/mockTracer.d.ts.map +1 -0
- package/dist/loop/test-utils/options.d.ts +6 -0
- package/dist/loop/test-utils/options.d.ts.map +1 -0
- package/dist/loop/test-utils/resultObject.d.ts +6 -0
- package/dist/loop/test-utils/resultObject.d.ts.map +1 -0
- package/dist/loop/test-utils/streamObject.d.ts +6 -0
- package/dist/loop/test-utils/streamObject.d.ts.map +1 -0
- package/dist/loop/test-utils/telemetry.d.ts +6 -0
- package/dist/loop/test-utils/telemetry.d.ts.map +1 -0
- package/dist/loop/test-utils/textStream.d.ts +6 -0
- package/dist/loop/test-utils/textStream.d.ts.map +1 -0
- package/dist/loop/test-utils/toUIMessageStream.d.ts +6 -0
- package/dist/loop/test-utils/toUIMessageStream.d.ts.map +1 -0
- package/dist/loop/test-utils/tools.d.ts +6 -0
- package/dist/loop/test-utils/tools.d.ts.map +1 -0
- package/dist/loop/test-utils/utils.d.ts +40 -0
- package/dist/loop/test-utils/utils.d.ts.map +1 -0
- package/dist/loop/types.d.ts +68 -0
- package/dist/loop/types.d.ts.map +1 -0
- package/dist/loop/workflow/llm-execution.d.ts +80 -0
- package/dist/loop/workflow/llm-execution.d.ts.map +1 -0
- package/dist/loop/workflow/outer-llm-step.d.ts +43 -0
- package/dist/loop/workflow/outer-llm-step.d.ts.map +1 -0
- package/dist/loop/workflow/run-state.d.ts +24 -0
- package/dist/loop/workflow/run-state.d.ts.map +1 -0
- package/dist/loop/workflow/schema.d.ts +80 -0
- package/dist/loop/workflow/schema.d.ts.map +1 -0
- package/dist/loop/workflow/stream.d.ts +6 -0
- package/dist/loop/workflow/stream.d.ts.map +1 -0
- package/dist/loop/workflow/tool-call-step.d.ts +41 -0
- package/dist/loop/workflow/tool-call-step.d.ts.map +1 -0
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.ts +4 -5
- package/dist/mastra/index.d.ts.map +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/mcp/index.cjs +4 -4
- package/dist/mcp/index.js +2 -2
- package/dist/memory/index.cjs +4 -4
- package/dist/memory/index.js +1 -1
- package/dist/network/index.cjs +6 -6
- package/dist/network/index.cjs.map +1 -1
- package/dist/network/index.js +3 -3
- package/dist/network/index.js.map +1 -1
- package/dist/network/network.d.ts +8 -7
- package/dist/network/network.d.ts.map +1 -1
- package/dist/network/vNext/index.cjs +21 -21
- package/dist/network/vNext/index.cjs.map +1 -1
- package/dist/network/vNext/index.d.ts +7 -7
- package/dist/network/vNext/index.d.ts.map +1 -1
- package/dist/network/vNext/index.js +7 -7
- package/dist/network/vNext/index.js.map +1 -1
- package/dist/processors/index.cjs +512 -0
- package/dist/processors/index.cjs.map +1 -0
- package/dist/processors/index.d.ts +38 -0
- package/dist/processors/index.d.ts.map +1 -0
- package/dist/processors/index.js +481 -0
- package/dist/processors/index.js.map +1 -0
- package/dist/processors/processors/batch-parts.d.ts +42 -0
- package/dist/processors/processors/batch-parts.d.ts.map +1 -0
- package/dist/processors/processors/index.d.ts +10 -0
- package/dist/processors/processors/index.d.ts.map +1 -0
- package/dist/processors/processors/language-detector.d.ts +151 -0
- package/dist/processors/processors/language-detector.d.ts.map +1 -0
- package/dist/processors/processors/moderation.d.ts +130 -0
- package/dist/processors/processors/moderation.d.ts.map +1 -0
- package/dist/processors/processors/pii-detector.d.ts +197 -0
- package/dist/processors/processors/pii-detector.d.ts.map +1 -0
- package/dist/processors/processors/prompt-injection-detector.d.ts +108 -0
- package/dist/processors/processors/prompt-injection-detector.d.ts.map +1 -0
- package/dist/processors/processors/structured-output.d.ts +42 -0
- package/dist/processors/processors/structured-output.d.ts.map +1 -0
- package/dist/processors/processors/system-prompt-scrubber.d.ts +92 -0
- package/dist/processors/processors/system-prompt-scrubber.d.ts.map +1 -0
- package/dist/processors/processors/token-limiter.d.ts +66 -0
- package/dist/processors/processors/token-limiter.d.ts.map +1 -0
- package/dist/processors/processors/unicode-normalizer.d.ts +34 -0
- package/dist/processors/processors/unicode-normalizer.d.ts.map +1 -0
- package/dist/processors/runner.d.ts +41 -0
- package/dist/processors/runner.d.ts.map +1 -0
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.js +1 -1
- package/dist/scores/index.cjs +5 -5
- package/dist/scores/index.js +2 -2
- package/dist/server/index.cjs +2 -2
- package/dist/server/index.js +1 -1
- package/dist/storage/domains/operations/base.d.ts.map +1 -1
- package/dist/storage/index.cjs +15 -17
- package/dist/storage/index.cjs.map +1 -1
- package/dist/storage/index.js +4 -6
- package/dist/storage/index.js.map +1 -1
- package/dist/stream/aisdk/v4/transform.d.ts +26 -0
- package/dist/stream/aisdk/v4/transform.d.ts.map +1 -1
- package/dist/stream/aisdk/v5/compat.d.ts +159 -0
- package/dist/stream/aisdk/v5/compat.d.ts.map +1 -0
- package/dist/stream/aisdk/v5/execute.d.ts +29 -0
- package/dist/stream/aisdk/v5/execute.d.ts.map +1 -0
- package/dist/stream/aisdk/v5/file.d.ts +38 -0
- package/dist/stream/aisdk/v5/file.d.ts.map +1 -0
- package/dist/stream/aisdk/v5/input.d.ts +15 -0
- package/dist/stream/aisdk/v5/input.d.ts.map +1 -0
- package/dist/stream/aisdk/v5/object/schema.d.ts +4 -0
- package/dist/stream/aisdk/v5/object/schema.d.ts.map +1 -0
- package/dist/stream/aisdk/v5/object/stream-object.d.ts +34 -0
- package/dist/stream/aisdk/v5/object/stream-object.d.ts.map +1 -0
- package/dist/stream/aisdk/v5/output-helpers.d.ts +76 -0
- package/dist/stream/aisdk/v5/output-helpers.d.ts.map +1 -0
- package/dist/stream/aisdk/v5/output.d.ts +119 -0
- package/dist/stream/aisdk/v5/output.d.ts.map +1 -0
- package/dist/stream/aisdk/v5/test-utils.d.ts +19 -0
- package/dist/stream/aisdk/v5/test-utils.d.ts.map +1 -0
- package/dist/stream/aisdk/v5/transform.d.ts +31 -0
- package/dist/stream/aisdk/v5/transform.d.ts.map +1 -0
- package/dist/stream/base/input.d.ts +1 -1
- package/dist/stream/base/output.d.ts +89 -0
- package/dist/stream/base/output.d.ts.map +1 -0
- package/dist/stream/types.d.ts +30 -0
- package/dist/stream/types.d.ts.map +1 -1
- package/dist/test-utils/llm-mock.cjs +2 -2
- package/dist/test-utils/llm-mock.cjs.map +1 -1
- package/dist/test-utils/llm-mock.d.ts +2 -2
- package/dist/test-utils/llm-mock.d.ts.map +1 -1
- package/dist/test-utils/llm-mock.js +2 -2
- package/dist/test-utils/llm-mock.js.map +1 -1
- package/dist/tools/tool-builder/builder.d.ts +3 -2
- package/dist/tools/tool-builder/builder.d.ts.map +1 -1
- package/dist/tools/types.d.ts +9 -0
- package/dist/tools/types.d.ts.map +1 -1
- package/dist/tts/index.cjs +2 -2
- package/dist/tts/index.js +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/utils.cjs +19 -15
- package/dist/utils.d.ts +3 -2
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +1 -1
- package/dist/vector/index.cjs +2 -2
- package/dist/vector/index.js +1 -1
- package/dist/voice/index.cjs +4 -4
- package/dist/voice/index.js +1 -1
- package/dist/workflows/default.d.ts.map +1 -1
- package/dist/workflows/index.cjs +10 -10
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/legacy/index.cjs +22 -22
- package/dist/workflows/legacy/index.js +1 -1
- package/loop.d.ts +1 -0
- package/package.json +16 -1
- package/processors.d.ts +1 -0
- package/dist/agent/input-processor/processors/index.cjs +0 -28
- package/dist/agent/input-processor/processors/index.js +0 -3
- package/dist/agent/input-processor/runner.d.ts +0 -4
- package/dist/agent/input-processor/runner.d.ts.map +0 -1
- package/dist/chunk-6AR2Z5ZG.js.map +0 -1
- package/dist/chunk-7E2SNI5D.cjs.map +0 -1
- package/dist/chunk-DCOKWJ5G.cjs.map +0 -1
- package/dist/chunk-IDDUQR6P.cjs.map +0 -1
- package/dist/chunk-IL5SHDY4.js.map +0 -1
- package/dist/chunk-IP5NGA2S.cjs +0 -14
- package/dist/chunk-L6YBPFYF.js.map +0 -1
- package/dist/chunk-MH64VYGF.cjs.map +0 -1
- package/dist/chunk-MTRRRTB4.js.map +0 -1
- package/dist/chunk-N2KMAW6T.js.map +0 -1
- package/dist/chunk-N3VGOJZV.cjs.map +0 -1
- package/dist/chunk-R4HT5XUH.cjs.map +0 -1
- package/dist/chunk-TOODGJKM.js.map +0 -1
- package/dist/chunk-TZOR5M7H.js.map +0 -1
- package/dist/chunk-Z74LG5VH.cjs.map +0 -1
- package/dist/llm/model/base.d.ts +0 -26
- package/dist/llm/model/base.d.ts.map +0 -1
- /package/dist/agent/input-processor/{processors/index.cjs.map → index.cjs.map} +0 -0
- /package/dist/agent/input-processor/{processors/index.js.map → index.js.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
3
|
+
var chunkBCCEYWAV_cjs = require('./chunk-BCCEYWAV.cjs');
|
|
4
|
+
var chunkDVI6XHUC_cjs = require('./chunk-DVI6XHUC.cjs');
|
|
5
|
+
var chunkD7P76YH6_cjs = require('./chunk-D7P76YH6.cjs');
|
|
6
|
+
var chunk7AXX55C5_cjs = require('./chunk-7AXX55C5.cjs');
|
|
7
|
+
var chunkI4XP6RAN_cjs = require('./chunk-I4XP6RAN.cjs');
|
|
8
|
+
var chunkIAP4IWKM_cjs = require('./chunk-IAP4IWKM.cjs');
|
|
9
9
|
var chunkD6CKHF4F_cjs = require('./chunk-D6CKHF4F.cjs');
|
|
10
10
|
var chunkFGTFJX3H_cjs = require('./chunk-FGTFJX3H.cjs');
|
|
11
|
-
var
|
|
12
|
-
var
|
|
11
|
+
var chunkCSTWQQ3C_cjs = require('./chunk-CSTWQQ3C.cjs');
|
|
12
|
+
var chunkASJVWHIK_cjs = require('./chunk-ASJVWHIK.cjs');
|
|
13
13
|
var chunkGOE646WS_cjs = require('./chunk-GOE646WS.cjs');
|
|
14
14
|
var chunkTSNDVBUU_cjs = require('./chunk-TSNDVBUU.cjs');
|
|
15
|
-
var
|
|
15
|
+
var chunkLFAAEOQC_cjs = require('./chunk-LFAAEOQC.cjs');
|
|
16
16
|
var chunkWSGW2223_cjs = require('./chunk-WSGW2223.cjs');
|
|
17
|
-
var
|
|
18
|
-
var
|
|
17
|
+
var chunkELKY3FEM_cjs = require('./chunk-ELKY3FEM.cjs');
|
|
18
|
+
var chunkKXCUCBEI_cjs = require('./chunk-KXCUCBEI.cjs');
|
|
19
19
|
|
|
20
20
|
// src/agent/index.warning.ts
|
|
21
|
-
var Agent2 = class extends
|
|
21
|
+
var Agent2 = class extends chunkASJVWHIK_cjs.Agent {
|
|
22
22
|
constructor(config) {
|
|
23
23
|
super(config);
|
|
24
24
|
this.logger.warn('Please import "Agent from "@mastra/core/agent" instead of "@mastra/core"');
|
|
@@ -26,7 +26,7 @@ var Agent2 = class extends chunkR4HT5XUH_cjs.Agent {
|
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
// src/base.warning.ts
|
|
29
|
-
var MastraBase2 = class extends
|
|
29
|
+
var MastraBase2 = class extends chunkKXCUCBEI_cjs.MastraBase {
|
|
30
30
|
constructor(args) {
|
|
31
31
|
super(args);
|
|
32
32
|
this.logger.warn('Please import "MastraBase" from "@mastra/core/base" instead of "@mastra/core"');
|
|
@@ -34,7 +34,7 @@ var MastraBase2 = class extends chunkYT4RGZYO_cjs.MastraBase {
|
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
// src/deployer/index.warning.ts
|
|
37
|
-
var MastraDeployer2 = class extends
|
|
37
|
+
var MastraDeployer2 = class extends chunkELKY3FEM_cjs.MastraDeployer {
|
|
38
38
|
constructor(args) {
|
|
39
39
|
super(args);
|
|
40
40
|
this.logger.warn('Please import "MastraDeployer" from "@mastra/core/deployer" instead of "@mastra/core"');
|
|
@@ -42,7 +42,7 @@ var MastraDeployer2 = class extends chunkIP5NGA2S_cjs.MastraDeployer {
|
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
// src/storage/base.warning.ts
|
|
45
|
-
var MastraStorage2 = class extends
|
|
45
|
+
var MastraStorage2 = class extends chunkDVI6XHUC_cjs.MastraStorage {
|
|
46
46
|
constructor({ name }) {
|
|
47
47
|
super({
|
|
48
48
|
name
|
|
@@ -68,7 +68,7 @@ var OpenAPIToolset2 = class extends chunkFGTFJX3H_cjs.OpenAPIToolset {
|
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
// src/memory/index.warning.ts
|
|
71
|
-
var MastraMemory2 = class extends
|
|
71
|
+
var MastraMemory2 = class extends chunkI4XP6RAN_cjs.MastraMemory {
|
|
72
72
|
constructor(_arg) {
|
|
73
73
|
super({ name: `Deprecated memory` });
|
|
74
74
|
this.logger.warn('Please import "MastraMemory" from "@mastra/core/memory" instead of "@mastra/core"');
|
|
@@ -84,7 +84,7 @@ var Tool2 = class extends chunkWSGW2223_cjs.Tool {
|
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
// src/tts/index.warning.ts
|
|
87
|
-
var MastraTTS2 = class extends
|
|
87
|
+
var MastraTTS2 = class extends chunkD7P76YH6_cjs.MastraTTS {
|
|
88
88
|
constructor(args) {
|
|
89
89
|
super(args);
|
|
90
90
|
this.logger.warn('Please import "MastraTTS" from "@mastra/core/tts" instead of "@mastra/core"');
|
|
@@ -92,7 +92,7 @@ var MastraTTS2 = class extends chunkMVSUZXER_cjs.MastraTTS {
|
|
|
92
92
|
};
|
|
93
93
|
|
|
94
94
|
// src/vector/index.warning.ts
|
|
95
|
-
var MastraVector2 = class extends
|
|
95
|
+
var MastraVector2 = class extends chunkBCCEYWAV_cjs.MastraVector {
|
|
96
96
|
constructor() {
|
|
97
97
|
super();
|
|
98
98
|
this.logger.warn('Please import "MastraVector" from "@mastra/core/vector" instead of "@mastra/core"');
|
|
@@ -100,88 +100,88 @@ var MastraVector2 = class extends chunkU2CK6AN5_cjs.MastraVector {
|
|
|
100
100
|
};
|
|
101
101
|
|
|
102
102
|
// src/workflows/workflow.warning.ts
|
|
103
|
-
var Workflow2 = class extends
|
|
103
|
+
var Workflow2 = class extends chunkCSTWQQ3C_cjs.Workflow {
|
|
104
104
|
constructor(args) {
|
|
105
105
|
super(args);
|
|
106
106
|
this.logger.warn('Please import "Workflow" from "@mastra/core/workflows" instead of "@mastra/core"');
|
|
107
107
|
}
|
|
108
108
|
};
|
|
109
109
|
|
|
110
|
+
Object.defineProperty(exports, "ensureDate", {
|
|
111
|
+
enumerable: true,
|
|
112
|
+
get: function () { return chunkDVI6XHUC_cjs.ensureDate; }
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, "resolveMessageLimit", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function () { return chunkDVI6XHUC_cjs.resolveMessageLimit; }
|
|
117
|
+
});
|
|
118
|
+
Object.defineProperty(exports, "serializeDate", {
|
|
119
|
+
enumerable: true,
|
|
120
|
+
get: function () { return chunkDVI6XHUC_cjs.serializeDate; }
|
|
121
|
+
});
|
|
122
|
+
Object.defineProperty(exports, "Mastra", {
|
|
123
|
+
enumerable: true,
|
|
124
|
+
get: function () { return chunk7AXX55C5_cjs.Mastra; }
|
|
125
|
+
});
|
|
110
126
|
Object.defineProperty(exports, "MemoryProcessor", {
|
|
111
127
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkI4XP6RAN_cjs.MemoryProcessor; }
|
|
113
129
|
});
|
|
114
130
|
Object.defineProperty(exports, "memoryDefaultOptions", {
|
|
115
131
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkI4XP6RAN_cjs.memoryDefaultOptions; }
|
|
117
133
|
});
|
|
118
134
|
Object.defineProperty(exports, "CohereRelevanceScorer", {
|
|
119
135
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkIAP4IWKM_cjs.CohereRelevanceScorer; }
|
|
121
137
|
});
|
|
122
138
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
123
139
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkIAP4IWKM_cjs.MastraAgentRelevanceScorer; }
|
|
125
141
|
});
|
|
126
142
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
127
143
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkIAP4IWKM_cjs.createSimilarityPrompt; }
|
|
145
|
+
});
|
|
146
|
+
Object.defineProperty(exports, "Metric", {
|
|
147
|
+
enumerable: true,
|
|
148
|
+
get: function () { return chunkD6CKHF4F_cjs.Metric; }
|
|
149
|
+
});
|
|
150
|
+
Object.defineProperty(exports, "evaluate", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function () { return chunkD6CKHF4F_cjs.evaluate; }
|
|
129
153
|
});
|
|
130
154
|
Object.defineProperty(exports, "DefaultExecutionEngine", {
|
|
131
155
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunkCSTWQQ3C_cjs.DefaultExecutionEngine; }
|
|
133
157
|
});
|
|
134
158
|
Object.defineProperty(exports, "ExecutionEngine", {
|
|
135
159
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunkCSTWQQ3C_cjs.ExecutionEngine; }
|
|
137
161
|
});
|
|
138
162
|
Object.defineProperty(exports, "Run", {
|
|
139
163
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunkCSTWQQ3C_cjs.Run; }
|
|
141
165
|
});
|
|
142
166
|
Object.defineProperty(exports, "cloneStep", {
|
|
143
167
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunkCSTWQQ3C_cjs.cloneStep; }
|
|
145
169
|
});
|
|
146
170
|
Object.defineProperty(exports, "cloneWorkflow", {
|
|
147
171
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunkCSTWQQ3C_cjs.cloneWorkflow; }
|
|
149
173
|
});
|
|
150
174
|
Object.defineProperty(exports, "createStep", {
|
|
151
175
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunkCSTWQQ3C_cjs.createStep; }
|
|
153
177
|
});
|
|
154
178
|
Object.defineProperty(exports, "createWorkflow", {
|
|
155
179
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
180
|
+
get: function () { return chunkCSTWQQ3C_cjs.createWorkflow; }
|
|
157
181
|
});
|
|
158
182
|
Object.defineProperty(exports, "mapVariable", {
|
|
159
183
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
161
|
-
});
|
|
162
|
-
Object.defineProperty(exports, "ensureDate", {
|
|
163
|
-
enumerable: true,
|
|
164
|
-
get: function () { return chunkKLXRYVVQ_cjs.ensureDate; }
|
|
165
|
-
});
|
|
166
|
-
Object.defineProperty(exports, "resolveMessageLimit", {
|
|
167
|
-
enumerable: true,
|
|
168
|
-
get: function () { return chunkKLXRYVVQ_cjs.resolveMessageLimit; }
|
|
169
|
-
});
|
|
170
|
-
Object.defineProperty(exports, "serializeDate", {
|
|
171
|
-
enumerable: true,
|
|
172
|
-
get: function () { return chunkKLXRYVVQ_cjs.serializeDate; }
|
|
173
|
-
});
|
|
174
|
-
Object.defineProperty(exports, "Metric", {
|
|
175
|
-
enumerable: true,
|
|
176
|
-
get: function () { return chunkD6CKHF4F_cjs.Metric; }
|
|
177
|
-
});
|
|
178
|
-
Object.defineProperty(exports, "evaluate", {
|
|
179
|
-
enumerable: true,
|
|
180
|
-
get: function () { return chunkD6CKHF4F_cjs.evaluate; }
|
|
181
|
-
});
|
|
182
|
-
Object.defineProperty(exports, "Mastra", {
|
|
183
|
-
enumerable: true,
|
|
184
|
-
get: function () { return chunk7E2SNI5D_cjs.Mastra; }
|
|
184
|
+
get: function () { return chunkCSTWQQ3C_cjs.mapVariable; }
|
|
185
185
|
});
|
|
186
186
|
Object.defineProperty(exports, "InstrumentClass", {
|
|
187
187
|
enumerable: true,
|
|
@@ -221,59 +221,63 @@ Object.defineProperty(exports, "registerHook", {
|
|
|
221
221
|
});
|
|
222
222
|
Object.defineProperty(exports, "checkEvalStorageFields", {
|
|
223
223
|
enumerable: true,
|
|
224
|
-
get: function () { return
|
|
224
|
+
get: function () { return chunkLFAAEOQC_cjs.checkEvalStorageFields; }
|
|
225
225
|
});
|
|
226
226
|
Object.defineProperty(exports, "createMastraProxy", {
|
|
227
227
|
enumerable: true,
|
|
228
|
-
get: function () { return
|
|
228
|
+
get: function () { return chunkLFAAEOQC_cjs.createMastraProxy; }
|
|
229
229
|
});
|
|
230
230
|
Object.defineProperty(exports, "deepMerge", {
|
|
231
231
|
enumerable: true,
|
|
232
|
-
get: function () { return
|
|
232
|
+
get: function () { return chunkLFAAEOQC_cjs.deepMerge; }
|
|
233
233
|
});
|
|
234
234
|
Object.defineProperty(exports, "delay", {
|
|
235
235
|
enumerable: true,
|
|
236
|
-
get: function () { return
|
|
236
|
+
get: function () { return chunkLFAAEOQC_cjs.delay; }
|
|
237
237
|
});
|
|
238
238
|
Object.defineProperty(exports, "ensureToolProperties", {
|
|
239
239
|
enumerable: true,
|
|
240
|
-
get: function () { return
|
|
240
|
+
get: function () { return chunkLFAAEOQC_cjs.ensureToolProperties; }
|
|
241
241
|
});
|
|
242
242
|
Object.defineProperty(exports, "generateEmptyFromSchema", {
|
|
243
243
|
enumerable: true,
|
|
244
|
-
get: function () { return
|
|
244
|
+
get: function () { return chunkLFAAEOQC_cjs.generateEmptyFromSchema; }
|
|
245
245
|
});
|
|
246
246
|
Object.defineProperty(exports, "isCoreMessage", {
|
|
247
247
|
enumerable: true,
|
|
248
|
-
get: function () { return
|
|
248
|
+
get: function () { return chunkLFAAEOQC_cjs.isCoreMessage; }
|
|
249
249
|
});
|
|
250
250
|
Object.defineProperty(exports, "isUiMessage", {
|
|
251
251
|
enumerable: true,
|
|
252
|
-
get: function () { return
|
|
252
|
+
get: function () { return chunkLFAAEOQC_cjs.isUiMessage; }
|
|
253
253
|
});
|
|
254
254
|
Object.defineProperty(exports, "isZodType", {
|
|
255
255
|
enumerable: true,
|
|
256
|
-
get: function () { return
|
|
256
|
+
get: function () { return chunkLFAAEOQC_cjs.isZodType; }
|
|
257
257
|
});
|
|
258
258
|
Object.defineProperty(exports, "makeCoreTool", {
|
|
259
259
|
enumerable: true,
|
|
260
|
-
get: function () { return
|
|
260
|
+
get: function () { return chunkLFAAEOQC_cjs.makeCoreTool; }
|
|
261
|
+
});
|
|
262
|
+
Object.defineProperty(exports, "makeCoreToolV5", {
|
|
263
|
+
enumerable: true,
|
|
264
|
+
get: function () { return chunkLFAAEOQC_cjs.makeCoreToolV5; }
|
|
261
265
|
});
|
|
262
266
|
Object.defineProperty(exports, "maskStreamTags", {
|
|
263
267
|
enumerable: true,
|
|
264
|
-
get: function () { return
|
|
268
|
+
get: function () { return chunkLFAAEOQC_cjs.maskStreamTags; }
|
|
265
269
|
});
|
|
266
270
|
Object.defineProperty(exports, "parseFieldKey", {
|
|
267
271
|
enumerable: true,
|
|
268
|
-
get: function () { return
|
|
272
|
+
get: function () { return chunkLFAAEOQC_cjs.parseFieldKey; }
|
|
269
273
|
});
|
|
270
274
|
Object.defineProperty(exports, "parseSqlIdentifier", {
|
|
271
275
|
enumerable: true,
|
|
272
|
-
get: function () { return
|
|
276
|
+
get: function () { return chunkLFAAEOQC_cjs.parseSqlIdentifier; }
|
|
273
277
|
});
|
|
274
278
|
Object.defineProperty(exports, "resolveSerializedZodOutput", {
|
|
275
279
|
enumerable: true,
|
|
276
|
-
get: function () { return
|
|
280
|
+
get: function () { return chunkLFAAEOQC_cjs.resolveSerializedZodOutput; }
|
|
277
281
|
});
|
|
278
282
|
Object.defineProperty(exports, "createTool", {
|
|
279
283
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export {
|
|
6
|
-
import {
|
|
7
|
-
export {
|
|
8
|
-
|
|
9
|
-
export { ensureDate, resolveMessageLimit, serializeDate } from './chunk-HBMZEZTO.js';
|
|
1
|
+
import { MastraVector } from './chunk-CWZDKGJ6.js';
|
|
2
|
+
import { MastraStorage } from './chunk-ON4S33NP.js';
|
|
3
|
+
export { ensureDate, resolveMessageLimit, serializeDate } from './chunk-ON4S33NP.js';
|
|
4
|
+
import { MastraTTS } from './chunk-7XGDFDZ2.js';
|
|
5
|
+
export { Mastra } from './chunk-GZVSHXPP.js';
|
|
6
|
+
import { MastraMemory } from './chunk-QSJZLHWA.js';
|
|
7
|
+
export { MemoryProcessor, memoryDefaultOptions } from './chunk-QSJZLHWA.js';
|
|
8
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-AYXRNQH3.js';
|
|
10
9
|
export { Metric, evaluate } from './chunk-25X4DEYM.js';
|
|
11
10
|
import { Integration, OpenAPIToolset } from './chunk-MSDYW4WV.js';
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
import { Workflow } from './chunk-4XDSHUFK.js';
|
|
12
|
+
export { DefaultExecutionEngine, ExecutionEngine, Run, cloneStep, cloneWorkflow, createStep, createWorkflow, mapVariable } from './chunk-4XDSHUFK.js';
|
|
13
|
+
import { Agent } from './chunk-DAMIFZPW.js';
|
|
14
14
|
export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, getBaggageValues, hasActiveTelemetry, withSpan } from './chunk-RQBS6DFE.js';
|
|
15
15
|
export { AvailableHooks, executeHook, registerHook } from './chunk-TTELJD4F.js';
|
|
16
|
-
export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, generateEmptyFromSchema, isCoreMessage, isUiMessage, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './chunk-
|
|
16
|
+
export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, generateEmptyFromSchema, isCoreMessage, isUiMessage, isZodType, makeCoreTool, makeCoreToolV5, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './chunk-P7WF6NQU.js';
|
|
17
17
|
import { Tool } from './chunk-VGTJE46C.js';
|
|
18
18
|
export { createTool } from './chunk-VGTJE46C.js';
|
|
19
|
-
import { MastraDeployer } from './chunk-
|
|
20
|
-
import { MastraBase } from './chunk-
|
|
19
|
+
import { MastraDeployer } from './chunk-AWILTHBM.js';
|
|
20
|
+
import { MastraBase } from './chunk-6GF5M4GX.js';
|
|
21
21
|
|
|
22
22
|
// src/agent/index.warning.ts
|
|
23
23
|
var Agent2 = class extends Agent {
|
package/dist/llm/index.d.ts
CHANGED
|
@@ -32,7 +32,8 @@ export type StructuredOutput = {
|
|
|
32
32
|
items: StructuredOutputArrayItem;
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
|
-
export type { GenerateReturn, StreamReturn, GenerateObjectResult, GenerateTextResult, StreamObjectResult, StreamTextResult,
|
|
35
|
+
export type { GenerateReturn, StreamReturn, GenerateObjectResult, GenerateTextResult, StreamObjectResult, StreamTextResult, } from './model/base.types.js';
|
|
36
|
+
export type { TripwireProperties } from './model/shared.types.js';
|
|
36
37
|
export type OutputType = StructuredOutput | ZodSchema | JSONSchema7 | undefined;
|
|
37
38
|
type GenerateTextOptions = Parameters<typeof generateText>[0];
|
|
38
39
|
type StreamTextOptions = Parameters<typeof streamText>[0];
|
package/dist/llm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/llm/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,IAAI,sBAAsB,EAC9C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,EAAE,4BAA4B,CAAC,GAAG,CAAC,CAAC;CAC9C,GAAG,qBAAqB,CAAC,CAAC,CAAC,GAC1B,6BAA6B,CAAC"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import type { CoreMessage, GenerateTextResult as OriginalGenerateTextResult, GenerateObjectResult as OriginalGenerateObjectResult, StreamTextResult as OriginalStreamTextResult, StreamObjectResult as OriginalStreamObjectResult, TelemetrySettings, UIMessage, Tool, generateText, ToolSet, generateObject, streamText, streamObject, DeepPartial, StreamObjectOnFinishCallback as OriginalStreamObjectOnFinishCallback, StreamTextOnFinishCallback as OriginalStreamTextOnFinishCallback, StreamTextOnStepFinishCallback as OriginalStreamTextOnStepFinishCallback, GenerateTextOnStepFinishCallback as OriginalGenerateTextOnStepFinishCallback } from 'ai';
|
|
2
2
|
import type { JSONSchema7 } from 'json-schema';
|
|
3
|
-
import type { ZodSchema
|
|
3
|
+
import type { ZodSchema } from 'zod';
|
|
4
4
|
import type { RuntimeContext } from '../../runtime-context/index.js';
|
|
5
|
-
|
|
5
|
+
import type { inferOutput, TripwireProperties } from './shared.types.js';
|
|
6
6
|
export type { ToolSet } from 'ai';
|
|
7
|
-
export type TripwireProperties = {
|
|
8
|
-
tripwire?: boolean;
|
|
9
|
-
tripwireReason?: string;
|
|
10
|
-
};
|
|
11
7
|
type MastraCustomLLMOptions = {
|
|
12
8
|
tools?: Record<string, Tool>;
|
|
13
9
|
telemetry?: TelemetrySettings;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.types.d.ts","sourceRoot":"","sources":["../../../src/llm/model/base.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,kBAAkB,IAAI,0BAA0B,EAChD,oBAAoB,IAAI,4BAA4B,EACpD,gBAAgB,IAAI,wBAAwB,EAC5C,kBAAkB,IAAI,0BAA0B,EAChD,iBAAiB,EACjB,SAAS,EACT,IAAI,EACJ,YAAY,EACZ,OAAO,EACP,cAAc,EAC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,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB,GAAG,mBAAmB,CAAC,MAAM,CAAC,CAAC;AAEhC,MAAM,MAAM,kBAAkB,CAAC,MAAM,SAAS,SAAS,GAAG,WAAW,IAAI,0BAA0B,CACjG,WAAW,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,EAChC,WAAW,CAAC,MAAM,CAAC,EACnB,GAAG,CACJ,GACC,kBAAkB,CAAC;AAErB,MAAM,MAAM,YAAY,CACtB,KAAK,SAAS,OAAO,EACrB,MAAM,SAAS,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,EAC9D,gBAAgB,SAAS,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,IACtE,gBAAgB,CAAC,KAAK,EAAE,gBAAgB,CAAC,GAAG,kBAAkB,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/llm/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/llm/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -2,10 +2,10 @@ import type { CoreMessage, LanguageModel } from 'ai';
|
|
|
2
2
|
import type { JSONSchema7 } from 'json-schema';
|
|
3
3
|
import type { ZodSchema } from 'zod';
|
|
4
4
|
import type { MastraPrimitives } from '../../action/index.js';
|
|
5
|
+
import { MastraBase } from '../../base.js';
|
|
5
6
|
import type { Mastra } from '../../mastra/index.js';
|
|
6
|
-
import { MastraLLMBase } from './base.js';
|
|
7
7
|
import type { GenerateObjectWithMessagesArgs, GenerateTextResult, GenerateObjectResult, GenerateTextWithMessagesArgs, ToolSet, GenerateReturn, StreamTextWithMessagesArgs, StreamTextResult, StreamObjectWithMessagesArgs, StreamObjectResult, StreamReturn } from './base.types.js';
|
|
8
|
-
export declare class
|
|
8
|
+
export declare class MastraLLMV1 extends MastraBase {
|
|
9
9
|
#private;
|
|
10
10
|
constructor({ model, mastra }: {
|
|
11
11
|
model: LanguageModel;
|
|
@@ -21,6 +21,7 @@ export declare class MastraLLM extends MastraLLMBase {
|
|
|
21
21
|
__textObject<Z extends ZodSchema | JSONSchema7>({ messages, structuredOutput, runId, telemetry, threadId, resourceId, runtimeContext, ...rest }: GenerateObjectWithMessagesArgs<Z>): Promise<GenerateObjectResult<Z>>;
|
|
22
22
|
__stream<Tools extends ToolSet, Z extends ZodSchema | JSONSchema7 | undefined = undefined>({ messages, onStepFinish, onFinish, maxSteps, tools, runId, temperature, toolChoice, experimental_output, telemetry, threadId, resourceId, runtimeContext, ...rest }: StreamTextWithMessagesArgs<Tools, Z>): StreamTextResult<Tools, Z>;
|
|
23
23
|
__streamObject<T extends ZodSchema | JSONSchema7>({ messages, runId, runtimeContext, threadId, resourceId, onFinish, structuredOutput, telemetry, ...rest }: StreamObjectWithMessagesArgs<T>): StreamObjectResult<T>;
|
|
24
|
+
convertToMessages(messages: string | string[] | CoreMessage[]): CoreMessage[];
|
|
24
25
|
generate<Output extends ZodSchema | JSONSchema7 | undefined = undefined, StructuredOutput extends ZodSchema | JSONSchema7 | undefined = undefined, Tools extends ToolSet = ToolSet>(messages: string | string[] | CoreMessage[], { output, ...rest }: Omit<Output extends undefined ? GenerateTextWithMessagesArgs<Tools, StructuredOutput> : Omit<GenerateObjectWithMessagesArgs<NonNullable<Output>>, 'structuredOutput' | 'output'>, 'messages'> & {
|
|
25
26
|
output?: Output;
|
|
26
27
|
}): Promise<GenerateReturn<Tools, Output, StructuredOutput>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/llm/model/model.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAoE,MAAM,IAAI,CAAC;AAEvH,OAAO,KAAK,EAAE,WA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5';
|
|
2
|
+
import type { ModelMessage, ToolSet } from 'ai-v5';
|
|
3
|
+
import type { JSONSchema7 } from 'json-schema';
|
|
4
|
+
import type { ZodSchema } from 'zod';
|
|
5
|
+
import type { MastraPrimitives } from '../../action/index.js';
|
|
6
|
+
import { MastraBase } from '../../base.js';
|
|
7
|
+
import type { Mastra } from '../../mastra/index.js';
|
|
8
|
+
import type { MastraModelOutput } from '../../stream/base/output.js';
|
|
9
|
+
import type { StreamTextWithMessagesArgs } from './model.loop.types.js';
|
|
10
|
+
export declare class MastraLLMVNext extends MastraBase {
|
|
11
|
+
#private;
|
|
12
|
+
constructor({ model, mastra }: {
|
|
13
|
+
model: LanguageModelV2;
|
|
14
|
+
mastra?: Mastra;
|
|
15
|
+
});
|
|
16
|
+
__registerPrimitives(p: MastraPrimitives): void;
|
|
17
|
+
__registerMastra(p: Mastra): void;
|
|
18
|
+
getProvider(): string;
|
|
19
|
+
getModelId(): string;
|
|
20
|
+
getModel(): LanguageModelV2;
|
|
21
|
+
private _applySchemaCompat;
|
|
22
|
+
convertToMessages(messages: string | string[] | ModelMessage[]): ModelMessage[];
|
|
23
|
+
stream<Tools extends ToolSet, Z extends ZodSchema | JSONSchema7 | undefined = undefined>({ messages, onStepFinish, onFinish, stopWhen, tools, runId, temperature, toolChoice, experimental_output, telemetry, threadId, resourceId, objectOptions, }: StreamTextWithMessagesArgs<Tools, Z>): MastraModelOutput;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=model.loop.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.loop.d.ts","sourceRoot":"","sources":["../../../src/llm/model/model.loop.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAY3D,OAAO,KAAK,EAAU,YAAY,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAGrC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAIxC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAErE,qBAAa,cAAe,SAAQ,UAAU;;gBAIhC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;QAAE,KAAK,EAAE,eAAe,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;IAa1E,oBAAoB,CAAC,CAAC,EAAE,gBAAgB;IAUxC,gBAAgB,CAAC,CAAC,EAAE,MAAM;IAI1B,WAAW;IAIX,UAAU;IAIV,QAAQ;IAIR,OAAO,CAAC,kBAAkB;IA4B1B,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,YAAY,EAAE,GAAG,YAAY,EAAE;IAqB/E,MAAM,CAAC,KAAK,SAAS,OAAO,EAAE,CAAC,SAAS,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,EAAE,EACvF,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,QAAyB,EACzB,KAAU,EACV,KAAK,EACL,WAAW,EACX,UAAmB,EACnB,mBAAmB,EACnB,SAAS,EACT,QAAQ,EACR,UAAU,EACV,aAAa,GAEd,EAAE,0BAA0B,CAAC,KAAK,EAAE,CAAC,CAAC,GAAG,iBAAiB;CAiK5D"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { ModelMessage, TelemetrySettings, UIMessage, ToolSet, DeepPartial, streamText, StreamTextResult as OriginalStreamTextResult, StreamTextOnFinishCallback as OriginalStreamTextOnFinishCallback, StreamTextOnStepFinishCallback as OriginalStreamTextOnStepFinishCallback } from 'ai-v5';
|
|
2
|
+
import type { JSONSchema7 } from 'json-schema';
|
|
3
|
+
import type { ZodSchema } from 'zod';
|
|
4
|
+
import type { ObjectOptions } from '../../loop/types.js';
|
|
5
|
+
import type { RuntimeContext } from '../../runtime-context/index.js';
|
|
6
|
+
import type { ToolAction, VercelTool, VercelToolV5 } from '../../tools/index.js';
|
|
7
|
+
import type { inferOutput, TripwireProperties } from './shared.types.js';
|
|
8
|
+
type ToolsInput = Record<string, ToolAction<any, any, any> | VercelTool | VercelToolV5>;
|
|
9
|
+
type MastraCustomLLMOptions = {
|
|
10
|
+
tools?: ToolsInput;
|
|
11
|
+
telemetry?: TelemetrySettings;
|
|
12
|
+
threadId?: string;
|
|
13
|
+
resourceId?: string;
|
|
14
|
+
runtimeContext: RuntimeContext;
|
|
15
|
+
runId?: string;
|
|
16
|
+
};
|
|
17
|
+
type MastraCustomLLMOptionsKeys = keyof MastraCustomLLMOptions;
|
|
18
|
+
export type OriginalStreamTextOptions<TOOLS extends ToolSet, Output extends ZodSchema | JSONSchema7 | undefined = undefined> = Parameters<typeof streamText<TOOLS, inferOutput<Output>, DeepPartial<inferOutput<Output>>>>[0];
|
|
19
|
+
export type OriginalStreamTextOnFinishEventArg<Tools extends ToolSet> = Parameters<OriginalStreamTextOnFinishCallback<Tools>>[0];
|
|
20
|
+
export type StreamTextOnFinishCallback<Tools extends ToolSet> = (event: OriginalStreamTextOnFinishEventArg<Tools> & {
|
|
21
|
+
runId: string;
|
|
22
|
+
}) => Promise<void> | void;
|
|
23
|
+
export type StreamTextOnStepFinishCallback<Tools extends ToolSet> = (event: Parameters<OriginalStreamTextOnStepFinishCallback<Tools>>[0] & {
|
|
24
|
+
runId: string;
|
|
25
|
+
}) => Promise<void> | void;
|
|
26
|
+
type StreamTextOptions<Tools extends ToolSet, Output extends ZodSchema | JSONSchema7 | undefined = undefined> = Omit<OriginalStreamTextOptions<Tools, Output>, MastraCustomLLMOptionsKeys | 'model' | 'onStepFinish' | 'onFinish'> & MastraCustomLLMOptions & {
|
|
27
|
+
onStepFinish?: StreamTextOnStepFinishCallback<inferOutput<Output>>;
|
|
28
|
+
onFinish?: StreamTextOnFinishCallback<inferOutput<Output>>;
|
|
29
|
+
experimental_output?: Output;
|
|
30
|
+
};
|
|
31
|
+
export type StreamTextWithMessagesArgs<Tools extends ToolSet, Output extends ZodSchema | JSONSchema7 | undefined = undefined> = {
|
|
32
|
+
messages: UIMessage[] | ModelMessage[];
|
|
33
|
+
objectOptions?: ObjectOptions;
|
|
34
|
+
} & StreamTextOptions<Tools, Output>;
|
|
35
|
+
export type StreamTextResult<Tools extends ToolSet, Output extends ZodSchema | JSONSchema7 | undefined = undefined> = Omit<OriginalStreamTextResult<Tools, DeepPartial<inferOutput<Output>>>, 'experimental_output'> & {
|
|
36
|
+
object?: inferOutput<Output>;
|
|
37
|
+
} & TripwireProperties;
|
|
38
|
+
export {};
|
|
39
|
+
//# sourceMappingURL=model.loop.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.loop.types.d.ts","sourceRoot":"","sources":["../../../src/llm/model/model.loop.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,OAAO,EACP,WAAW,EACX,UAAU,EACV,gBAAgB,IAAI,wBAAwB,EAC5C,0BAA0B,IAAI,kCAAkC,EAChE,8BAA8B,IAAI,sCAAsC,EACzE,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,aAAa,CA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
export type inferOutput<Output extends ZodSchema | JSONSchema7 | undefined = undefined> = Output extends ZodSchema ? z.infer<Output> : Output extends JSONSchema7 ? unknown : undefined;
|
|
4
|
+
export type TripwireProperties = {
|
|
5
|
+
tripwire?: boolean;
|
|
6
|
+
tripwireReason?: string;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=shared.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.types.d.ts","sourceRoot":"","sources":["../../../src/llm/model/shared.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAExC,MAAM,MAAM,WAAW,CAAC,MAAM,SAAS,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,IAAI,MAAM,SAAS,SAAS,GAC9G,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,GACf,MAAM,SAAS,WAAW,GACxB,OAAO,GACP,SAAS,CAAC;AAGhB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC"}
|
package/dist/logger/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk6TEQIYXV_cjs = require('../chunk-6TEQIYXV.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkV5WKCX3G_cjs = require('../chunk-V5WKCX3G.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -23,23 +23,23 @@ Object.defineProperty(exports, "noopLogger", {
|
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "ConsoleLogger", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkV5WKCX3G_cjs.ConsoleLogger; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "LogLevel", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkV5WKCX3G_cjs.LogLevel; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "MastraLogger", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkV5WKCX3G_cjs.MastraLogger; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "RegisteredLogger", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkV5WKCX3G_cjs.RegisteredLogger; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "createLogger", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkV5WKCX3G_cjs.createLogger; }
|
|
43
43
|
});
|
|
44
44
|
//# sourceMappingURL=index.cjs.map
|
|
45
45
|
//# sourceMappingURL=index.cjs.map
|
package/dist/logger/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { LoggerTransport, MultiLogger, createCustomTransport, noopLogger } from '../chunk-PFXXH2RP.js';
|
|
2
|
-
export { ConsoleLogger, LogLevel, MastraLogger, RegisteredLogger, createLogger } from '../chunk-
|
|
2
|
+
export { ConsoleLogger, LogLevel, MastraLogger, RegisteredLogger, createLogger } from '../chunk-X3GXU6TZ.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|