@mastra/core 1.18.1-alpha.0 → 1.19.0-alpha.2
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 +32 -0
- package/dist/agent/agent-legacy.d.ts +3 -1
- package/dist/agent/agent-legacy.d.ts.map +1 -1
- package/dist/agent/agent.d.ts +3 -1
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/index.cjs +8 -8
- package/dist/agent/index.js +1 -1
- package/dist/agent/workflows/prepare-stream/map-results-step.d.ts.map +1 -1
- package/dist/{chunk-AV4YSAZL.cjs → chunk-2OYWVA6F.cjs} +17 -2
- package/dist/chunk-2OYWVA6F.cjs.map +1 -0
- package/dist/{chunk-45LU555A.cjs → chunk-2RTFET56.cjs} +7 -7
- package/dist/{chunk-45LU555A.cjs.map → chunk-2RTFET56.cjs.map} +1 -1
- package/dist/{chunk-LKZQG2ZZ.cjs → chunk-4TUILCMR.cjs} +7 -6
- package/dist/chunk-4TUILCMR.cjs.map +1 -0
- package/dist/{chunk-NMDKJUHA.cjs → chunk-5OBBDZBA.cjs} +185 -185
- package/dist/{chunk-NMDKJUHA.cjs.map → chunk-5OBBDZBA.cjs.map} +1 -1
- package/dist/{chunk-OF7ELKXY.js → chunk-6TEEIOHA.js} +4 -4
- package/dist/{chunk-OF7ELKXY.js.map → chunk-6TEEIOHA.js.map} +1 -1
- package/dist/{chunk-KG5NOH3Z.js → chunk-6XYHMM2X.js} +8 -8
- package/dist/{chunk-KG5NOH3Z.js.map → chunk-6XYHMM2X.js.map} +1 -1
- package/dist/{chunk-IVXAQT6H.js → chunk-BS5UESNT.js} +93 -42
- package/dist/chunk-BS5UESNT.js.map +1 -0
- package/dist/{chunk-NRIT3KHS.js → chunk-CSIKD56W.js} +3 -3
- package/dist/{chunk-NRIT3KHS.js.map → chunk-CSIKD56W.js.map} +1 -1
- package/dist/{chunk-KEYCLRBI.js → chunk-D5EXC3XM.js} +4 -4
- package/dist/{chunk-KEYCLRBI.js.map → chunk-D5EXC3XM.js.map} +1 -1
- package/dist/{chunk-XQRTJIC7.cjs → chunk-E2SMTTP6.cjs} +45 -16
- package/dist/chunk-E2SMTTP6.cjs.map +1 -0
- package/dist/{chunk-RVBOSWN5.cjs → chunk-E3JUOJME.cjs} +5 -5
- package/dist/{chunk-RVBOSWN5.cjs.map → chunk-E3JUOJME.cjs.map} +1 -1
- package/dist/{chunk-FA4PTEBK.js → chunk-EWPUWV33.js} +18 -3
- package/dist/chunk-EWPUWV33.js.map +1 -0
- package/dist/{chunk-BWRB3RPC.js → chunk-F4PVOQKD.js} +3 -3
- package/dist/{chunk-BWRB3RPC.js.map → chunk-F4PVOQKD.js.map} +1 -1
- package/dist/{chunk-TJNYXDI7.cjs → chunk-GFQPMPSV.cjs} +7 -113
- package/dist/chunk-GFQPMPSV.cjs.map +1 -0
- package/dist/{chunk-V2NQOABM.cjs → chunk-GNA52EF4.cjs} +9 -9
- package/dist/{chunk-V2NQOABM.cjs.map → chunk-GNA52EF4.cjs.map} +1 -1
- package/dist/{chunk-GALW5K2E.js → chunk-IOHKSHT4.js} +3 -3
- package/dist/{chunk-GALW5K2E.js.map → chunk-IOHKSHT4.js.map} +1 -1
- package/dist/{chunk-Z7DO2WCR.cjs → chunk-IQV2SVCE.cjs} +52 -52
- package/dist/{chunk-Z7DO2WCR.cjs.map → chunk-IQV2SVCE.cjs.map} +1 -1
- package/dist/{chunk-GXXNF6NF.cjs → chunk-L2FL7HMV.cjs} +35 -30
- package/dist/chunk-L2FL7HMV.cjs.map +1 -0
- package/dist/{chunk-HZI7AYCD.js → chunk-M62LMDHE.js} +8 -7
- package/dist/chunk-M62LMDHE.js.map +1 -0
- package/dist/{chunk-TPE5VTVF.cjs → chunk-MN7WNZE6.cjs} +6 -6
- package/dist/{chunk-TPE5VTVF.cjs.map → chunk-MN7WNZE6.cjs.map} +1 -1
- package/dist/{chunk-7W6PDCOH.cjs → chunk-NWOPWLJ3.cjs} +83 -82
- package/dist/chunk-NWOPWLJ3.cjs.map +1 -0
- package/dist/{chunk-CJ4RMDJJ.cjs → chunk-O542TXPV.cjs} +145 -94
- package/dist/chunk-O542TXPV.cjs.map +1 -0
- package/dist/{chunk-4FMKWOPC.js → chunk-OZHBY6NY.js} +32 -5
- package/dist/chunk-OZHBY6NY.js.map +1 -0
- package/dist/{chunk-MJF7NZEF.js → chunk-PPCEPCG7.js} +3 -3
- package/dist/{chunk-MJF7NZEF.js.map → chunk-PPCEPCG7.js.map} +1 -1
- package/dist/{chunk-CU764D5P.cjs → chunk-QB4YHCVA.cjs} +15 -15
- package/dist/{chunk-CU764D5P.cjs.map → chunk-QB4YHCVA.cjs.map} +1 -1
- package/dist/{chunk-K7AE4BHR.js → chunk-QIOD3LOP.js} +4 -3
- package/dist/chunk-QIOD3LOP.js.map +1 -0
- package/dist/{chunk-DTT543MP.cjs → chunk-RD76XK7E.cjs} +3 -3
- package/dist/{chunk-DTT543MP.cjs.map → chunk-RD76XK7E.cjs.map} +1 -1
- package/dist/{chunk-HRT662B6.js → chunk-SVIEJH5H.js} +13 -8
- package/dist/chunk-SVIEJH5H.js.map +1 -0
- package/dist/{chunk-KFL6ZGWG.js → chunk-VYZRHQUD.js} +5 -5
- package/dist/{chunk-KFL6ZGWG.js.map → chunk-VYZRHQUD.js.map} +1 -1
- package/dist/{chunk-H5ZOJOQ2.cjs → chunk-WKAEIA42.cjs} +9 -9
- package/dist/{chunk-H5ZOJOQ2.cjs.map → chunk-WKAEIA42.cjs.map} +1 -1
- package/dist/{chunk-L3V6LSQF.js → chunk-X5BBF6AG.js} +3 -3
- package/dist/{chunk-L3V6LSQF.js.map → chunk-X5BBF6AG.js.map} +1 -1
- package/dist/{chunk-WGJL6F3F.js → chunk-Z6I5PBGG.js} +6 -112
- package/dist/chunk-Z6I5PBGG.js.map +1 -0
- package/dist/datasets/index.cjs +17 -17
- package/dist/datasets/index.js +2 -2
- package/dist/docs/SKILL.md +8 -18
- package/dist/docs/assets/SOURCE_MAP.json +266 -266
- package/dist/docs/references/docs-agents-overview.md +4 -4
- package/dist/docs/references/docs-agents-processors.md +1 -1
- package/dist/docs/references/{docs-observability-datasets-overview.md → docs-evals-datasets-overview.md} +12 -12
- package/dist/docs/references/{docs-observability-datasets-running-experiments.md → docs-evals-datasets-running-experiments.md} +9 -9
- package/dist/docs/references/docs-evals-overview.md +8 -9
- package/dist/docs/references/docs-memory-observational-memory.md +20 -11
- package/dist/docs/references/docs-memory-overview.md +4 -4
- package/dist/docs/references/docs-memory-semantic-recall.md +28 -19
- package/dist/docs/references/docs-memory-storage.md +4 -4
- package/dist/docs/references/docs-rag-chunking-and-embedding.md +2 -2
- package/dist/docs/references/docs-server-auth-composite-auth.md +1 -7
- package/dist/docs/references/docs-server-auth-custom-auth-provider.md +2 -4
- package/dist/docs/references/docs-server-auth-jwt.md +1 -1
- package/dist/docs/references/docs-server-auth-simple-auth.md +1 -7
- package/dist/docs/references/docs-server-custom-adapters.md +3 -1
- package/dist/docs/references/docs-server-custom-api-routes.md +1 -1
- package/dist/docs/references/docs-server-mastra-client.md +1 -3
- package/dist/docs/references/docs-server-mastra-server.md +8 -0
- package/dist/docs/references/docs-server-request-context.md +17 -17
- package/dist/docs/references/docs-streaming-events.md +1 -90
- package/dist/docs/references/docs-studio-auth.md +142 -0
- package/dist/docs/references/docs-studio-deployment.md +260 -0
- package/dist/docs/references/docs-studio-observability.md +98 -0
- package/dist/docs/references/docs-studio-overview.md +127 -0
- package/dist/docs/references/docs-workflows-agents-and-tools.md +7 -10
- package/dist/docs/references/docs-workflows-control-flow.md +1 -1
- package/dist/docs/references/docs-workflows-overview.md +12 -7
- package/dist/docs/references/docs-workflows-suspend-and-resume.md +1 -1
- package/dist/docs/references/guides-concepts-multi-agent-systems.md +4 -4
- package/dist/docs/references/reference-agents-agent.md +1 -1
- package/dist/docs/references/reference-configuration.md +4 -4
- package/dist/docs/references/reference-memory-observational-memory.md +1 -1
- package/dist/docs/references/reference-storage-cloudflare-d1.md +1 -1
- package/dist/docs/references/reference-storage-lance.md +1 -1
- package/dist/docs/references/reference-storage-upstash.md +1 -1
- package/dist/docs/references/reference.md +16 -14
- package/dist/evals/index.cjs +5 -5
- package/dist/evals/index.js +2 -2
- package/dist/evals/scoreTraces/index.cjs +3 -3
- package/dist/evals/scoreTraces/index.js +1 -1
- package/dist/harness/harness.d.ts.map +1 -1
- package/dist/harness/index.cjs +19 -18
- package/dist/harness/index.cjs.map +1 -1
- package/dist/harness/index.js +9 -8
- package/dist/harness/index.js.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 +16 -16
- package/dist/llm/index.js +5 -5
- package/dist/llm/model/aisdk/v5/model.d.ts +5 -0
- package/dist/llm/model/aisdk/v5/model.d.ts.map +1 -1
- package/dist/llm/model/aisdk/v6/model.d.ts +5 -0
- package/dist/llm/model/aisdk/v6/model.d.ts.map +1 -1
- package/dist/llm/model/provider-types.generated.d.ts +1 -50
- package/dist/loop/index.cjs +14 -14
- package/dist/loop/index.js +1 -1
- package/dist/loop/network/validation.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/tool-call-step.d.ts.map +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.js +1 -1
- package/dist/memory/index.cjs +14 -14
- package/dist/memory/index.js +1 -1
- package/dist/models-dev-VAVD7BDV.cjs +12 -0
- package/dist/{models-dev-674ULLFE.cjs.map → models-dev-VAVD7BDV.cjs.map} +1 -1
- package/dist/models-dev-VFIUOVG4.js +3 -0
- package/dist/{models-dev-AVV7SNWL.js.map → models-dev-VFIUOVG4.js.map} +1 -1
- package/dist/netlify-KL3UR26O.cjs +12 -0
- package/dist/{netlify-QP3MZ4FK.cjs.map → netlify-KL3UR26O.cjs.map} +1 -1
- package/dist/netlify-Q3SJTV4U.js +3 -0
- package/dist/{netlify-KWEJPG27.js.map → netlify-Q3SJTV4U.js.map} +1 -1
- package/dist/processor-provider/index.cjs +10 -10
- package/dist/processor-provider/index.js +1 -1
- package/dist/processors/index.cjs +44 -44
- package/dist/processors/index.js +1 -1
- package/dist/provider-registry-COX4XKGI.js +3 -0
- package/dist/{provider-registry-L3LFTZUA.js.map → provider-registry-COX4XKGI.js.map} +1 -1
- package/dist/provider-registry-IAU4XHVY.cjs +40 -0
- package/dist/{provider-registry-KZN4FOFE.cjs.map → provider-registry-IAU4XHVY.cjs.map} +1 -1
- package/dist/provider-registry.json +2 -108
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/storage/index.cjs +74 -74
- package/dist/storage/index.js +1 -1
- package/dist/stream/aisdk/v5/compat/prepare-tools.d.ts.map +1 -1
- package/dist/stream/index.cjs +8 -8
- package/dist/stream/index.js +1 -1
- package/dist/test-utils/llm-mock.cjs +4 -4
- package/dist/test-utils/llm-mock.js +1 -1
- package/dist/tool-loop-agent/index.cjs +4 -4
- package/dist/tool-loop-agent/index.js +1 -1
- package/dist/tools/index.cjs +8 -8
- 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.map +1 -1
- package/dist/tools/validation.d.ts.map +1 -1
- package/dist/utils.cjs +31 -23
- package/dist/utils.d.ts +10 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +1 -1
- package/dist/vector/index.cjs +7 -7
- package/dist/vector/index.js +1 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +24 -24
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/workflow.d.ts.map +1 -1
- package/dist/workspace/index.cjs +68 -68
- package/dist/workspace/index.js +1 -1
- package/dist/workspace/workspace.d.ts +1 -0
- package/dist/workspace/workspace.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/llm/model/provider-types.generated.d.ts +1 -50
- package/dist/chunk-4FMKWOPC.js.map +0 -1
- package/dist/chunk-7W6PDCOH.cjs.map +0 -1
- package/dist/chunk-AV4YSAZL.cjs.map +0 -1
- package/dist/chunk-CJ4RMDJJ.cjs.map +0 -1
- package/dist/chunk-FA4PTEBK.js.map +0 -1
- package/dist/chunk-GXXNF6NF.cjs.map +0 -1
- package/dist/chunk-HRT662B6.js.map +0 -1
- package/dist/chunk-HZI7AYCD.js.map +0 -1
- package/dist/chunk-IVXAQT6H.js.map +0 -1
- package/dist/chunk-K7AE4BHR.js.map +0 -1
- package/dist/chunk-LKZQG2ZZ.cjs.map +0 -1
- package/dist/chunk-TJNYXDI7.cjs.map +0 -1
- package/dist/chunk-WGJL6F3F.js.map +0 -1
- package/dist/chunk-XQRTJIC7.cjs.map +0 -1
- package/dist/docs/references/docs-observability-logging.md +0 -99
- package/dist/docs/references/docs-observability-overview.md +0 -70
- package/dist/docs/references/docs-observability-tracing-bridges-otel.md +0 -209
- package/dist/docs/references/docs-observability-tracing-exporters-arize.md +0 -272
- package/dist/docs/references/docs-observability-tracing-exporters-braintrust.md +0 -126
- package/dist/docs/references/docs-observability-tracing-exporters-cloud.md +0 -127
- package/dist/docs/references/docs-observability-tracing-exporters-datadog.md +0 -317
- package/dist/docs/references/docs-observability-tracing-exporters-default.md +0 -209
- package/dist/docs/references/docs-observability-tracing-exporters-laminar.md +0 -100
- package/dist/docs/references/docs-observability-tracing-exporters-langfuse.md +0 -213
- package/dist/docs/references/docs-observability-tracing-exporters-langsmith.md +0 -198
- package/dist/docs/references/docs-observability-tracing-exporters-otel.md +0 -476
- package/dist/docs/references/docs-observability-tracing-exporters-posthog.md +0 -148
- package/dist/docs/references/docs-observability-tracing-overview.md +0 -1112
- package/dist/models-dev-674ULLFE.cjs +0 -12
- package/dist/models-dev-AVV7SNWL.js +0 -3
- package/dist/netlify-KWEJPG27.js +0 -3
- package/dist/netlify-QP3MZ4FK.cjs +0 -12
- package/dist/provider-registry-KZN4FOFE.cjs +0 -40
- package/dist/provider-registry-L3LFTZUA.js +0 -3
|
@@ -1,180 +1,180 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkO542TXPV_cjs = require('../chunk-O542TXPV.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "AgentsMDInjector", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkO542TXPV_cjs.AgentsMDInjector; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "BaseProcessor", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkO542TXPV_cjs.BaseProcessor; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "BatchPartsProcessor", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkO542TXPV_cjs.BatchPartsProcessor; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "FilePartSchema", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkO542TXPV_cjs.FilePartSchema; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "ImagePartSchema", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkO542TXPV_cjs.ImagePartSchema; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "LanguageDetector", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkO542TXPV_cjs.LanguageDetector; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "MessageContentSchema", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkO542TXPV_cjs.MessageContentSchema; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "MessageHistory", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkO542TXPV_cjs.MessageHistory; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "MessagePartSchema", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkO542TXPV_cjs.MessagePartSchema; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "ModerationProcessor", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkO542TXPV_cjs.ModerationProcessor; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "PIIDetector", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkO542TXPV_cjs.PIIDetector; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "ProcessorInputPhaseSchema", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkO542TXPV_cjs.ProcessorInputPhaseSchema; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "ProcessorInputStepPhaseSchema", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkO542TXPV_cjs.ProcessorInputStepPhaseSchema; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "ProcessorMessageContentSchema", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkO542TXPV_cjs.ProcessorMessageContentSchema; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "ProcessorMessageSchema", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkO542TXPV_cjs.ProcessorMessageSchema; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "ProcessorOutputResultPhaseSchema", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkO542TXPV_cjs.ProcessorOutputResultPhaseSchema; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "ProcessorOutputStepPhaseSchema", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkO542TXPV_cjs.ProcessorOutputStepPhaseSchema; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "ProcessorOutputStreamPhaseSchema", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkO542TXPV_cjs.ProcessorOutputStreamPhaseSchema; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "ProcessorRunner", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkO542TXPV_cjs.ProcessorRunner; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "ProcessorState", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkO542TXPV_cjs.ProcessorState; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "ProcessorStepInputSchema", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkO542TXPV_cjs.ProcessorStepInputSchema; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "ProcessorStepOutputSchema", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkO542TXPV_cjs.ProcessorStepOutputSchema; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "ProcessorStepSchema", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkO542TXPV_cjs.ProcessorStepSchema; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "PromptInjectionDetector", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkO542TXPV_cjs.PromptInjectionDetector; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "ReasoningPartSchema", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkO542TXPV_cjs.ReasoningPartSchema; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "SemanticRecall", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkO542TXPV_cjs.SemanticRecall; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "SkillSearchProcessor", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkO542TXPV_cjs.SkillSearchProcessor; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "SkillsProcessor", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkO542TXPV_cjs.SkillsProcessor; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "SourcePartSchema", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkO542TXPV_cjs.SourcePartSchema; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "StepStartPartSchema", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkO542TXPV_cjs.StepStartPartSchema; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "StructuredOutputProcessor", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkO542TXPV_cjs.StructuredOutputProcessor; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "SystemPromptScrubber", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkO542TXPV_cjs.SystemPromptScrubber; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "TextPartSchema", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkO542TXPV_cjs.TextPartSchema; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "TokenLimiter", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkO542TXPV_cjs.TokenLimiterProcessor; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "TokenLimiterProcessor", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkO542TXPV_cjs.TokenLimiterProcessor; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "ToolCallFilter", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkO542TXPV_cjs.ToolCallFilter; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "ToolInvocationPartSchema", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkO542TXPV_cjs.ToolInvocationPartSchema; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "ToolSearchProcessor", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkO542TXPV_cjs.ToolSearchProcessor; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "UnicodeNormalizer", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkO542TXPV_cjs.UnicodeNormalizer; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "WorkingMemory", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkO542TXPV_cjs.WorkingMemory; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "WorkspaceInstructionsProcessor", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkO542TXPV_cjs.WorkspaceInstructionsProcessor; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "globalEmbeddingCache", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkO542TXPV_cjs.globalEmbeddingCache; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "isProcessorWorkflow", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkO542TXPV_cjs.isProcessorWorkflow; }
|
|
178
178
|
});
|
|
179
179
|
//# sourceMappingURL=index.cjs.map
|
|
180
180
|
//# sourceMappingURL=index.cjs.map
|
package/dist/processors/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AgentsMDInjector, BaseProcessor, BatchPartsProcessor, FilePartSchema, ImagePartSchema, LanguageDetector, MessageContentSchema, MessageHistory, MessagePartSchema, ModerationProcessor, PIIDetector, ProcessorInputPhaseSchema, ProcessorInputStepPhaseSchema, ProcessorMessageContentSchema, ProcessorMessageSchema, ProcessorOutputResultPhaseSchema, ProcessorOutputStepPhaseSchema, ProcessorOutputStreamPhaseSchema, ProcessorRunner, ProcessorState, ProcessorStepInputSchema, ProcessorStepOutputSchema, ProcessorStepSchema, PromptInjectionDetector, ReasoningPartSchema, SemanticRecall, SkillSearchProcessor, SkillsProcessor, SourcePartSchema, StepStartPartSchema, StructuredOutputProcessor, SystemPromptScrubber, TextPartSchema, TokenLimiterProcessor as TokenLimiter, TokenLimiterProcessor, ToolCallFilter, ToolInvocationPartSchema, ToolSearchProcessor, UnicodeNormalizer, WorkingMemory, WorkspaceInstructionsProcessor, globalEmbeddingCache, isProcessorWorkflow } from '../chunk-
|
|
1
|
+
export { AgentsMDInjector, BaseProcessor, BatchPartsProcessor, FilePartSchema, ImagePartSchema, LanguageDetector, MessageContentSchema, MessageHistory, MessagePartSchema, ModerationProcessor, PIIDetector, ProcessorInputPhaseSchema, ProcessorInputStepPhaseSchema, ProcessorMessageContentSchema, ProcessorMessageSchema, ProcessorOutputResultPhaseSchema, ProcessorOutputStepPhaseSchema, ProcessorOutputStreamPhaseSchema, ProcessorRunner, ProcessorState, ProcessorStepInputSchema, ProcessorStepOutputSchema, ProcessorStepSchema, PromptInjectionDetector, ReasoningPartSchema, SemanticRecall, SkillSearchProcessor, SkillsProcessor, SourcePartSchema, StepStartPartSchema, StructuredOutputProcessor, SystemPromptScrubber, TextPartSchema, TokenLimiterProcessor as TokenLimiter, TokenLimiterProcessor, ToolCallFilter, ToolInvocationPartSchema, ToolSearchProcessor, UnicodeNormalizer, WorkingMemory, WorkspaceInstructionsProcessor, globalEmbeddingCache, isProcessorWorkflow } from '../chunk-BS5UESNT.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { GatewayRegistry, PROVIDER_MODELS, PROVIDER_REGISTRY, getProviderConfig, getRegisteredProviders, isProviderRegistered, isValidModelId, parseModelString } from './chunk-Z6I5PBGG.js';
|
|
2
|
+
//# sourceMappingURL=provider-registry-COX4XKGI.js.map
|
|
3
|
+
//# sourceMappingURL=provider-registry-COX4XKGI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"provider-registry-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"provider-registry-COX4XKGI.js"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkGFQPMPSV_cjs = require('./chunk-GFQPMPSV.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "GatewayRegistry", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkGFQPMPSV_cjs.GatewayRegistry; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "PROVIDER_MODELS", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkGFQPMPSV_cjs.PROVIDER_MODELS; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "PROVIDER_REGISTRY", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkGFQPMPSV_cjs.PROVIDER_REGISTRY; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "getProviderConfig", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkGFQPMPSV_cjs.getProviderConfig; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "getRegisteredProviders", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkGFQPMPSV_cjs.getRegisteredProviders; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "isProviderRegistered", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkGFQPMPSV_cjs.isProviderRegistered; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "isValidModelId", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunkGFQPMPSV_cjs.isValidModelId; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "parseModelString", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunkGFQPMPSV_cjs.parseModelString; }
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=provider-registry-IAU4XHVY.cjs.map
|
|
40
|
+
//# sourceMappingURL=provider-registry-IAU4XHVY.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"provider-registry-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"provider-registry-IAU4XHVY.cjs"}
|
|
@@ -2873,6 +2873,7 @@
|
|
|
2873
2873
|
"hf:Qwen/Qwen3-235B-A22B-Instruct-2507",
|
|
2874
2874
|
"hf:Qwen/Qwen3-235B-A22B-Thinking-2507",
|
|
2875
2875
|
"hf:Qwen/Qwen3-Coder-480B-A35B-Instruct",
|
|
2876
|
+
"hf:Qwen/Qwen3.5-397B-A17B",
|
|
2876
2877
|
"hf:deepseek-ai/DeepSeek-R1",
|
|
2877
2878
|
"hf:deepseek-ai/DeepSeek-R1-0528",
|
|
2878
2879
|
"hf:deepseek-ai/DeepSeek-V3",
|
|
@@ -3134,64 +3135,6 @@
|
|
|
3134
3135
|
"gateway": "models.dev",
|
|
3135
3136
|
"npm": "@ai-sdk/groq"
|
|
3136
3137
|
},
|
|
3137
|
-
"aihubmix": {
|
|
3138
|
-
"url": "https://aihubmix.com/v1",
|
|
3139
|
-
"apiKeyEnvVar": "AIHUBMIX_API_KEY",
|
|
3140
|
-
"apiKeyHeader": "Authorization",
|
|
3141
|
-
"name": "AIHubMix",
|
|
3142
|
-
"models": [
|
|
3143
|
-
"Kimi-K2-0905",
|
|
3144
|
-
"claude-haiku-4-5",
|
|
3145
|
-
"claude-opus-4-1",
|
|
3146
|
-
"claude-opus-4-5",
|
|
3147
|
-
"claude-opus-4-6",
|
|
3148
|
-
"claude-opus-4-6-think",
|
|
3149
|
-
"claude-sonnet-4-5",
|
|
3150
|
-
"claude-sonnet-4-6",
|
|
3151
|
-
"claude-sonnet-4-6-think",
|
|
3152
|
-
"coding-glm-4.7",
|
|
3153
|
-
"coding-glm-4.7-free",
|
|
3154
|
-
"coding-glm-5-free",
|
|
3155
|
-
"coding-minimax-m2.1-free",
|
|
3156
|
-
"deepseek-v3.2",
|
|
3157
|
-
"deepseek-v3.2-fast",
|
|
3158
|
-
"deepseek-v3.2-think",
|
|
3159
|
-
"gemini-2.5-flash",
|
|
3160
|
-
"gemini-2.5-pro",
|
|
3161
|
-
"gemini-3-pro-preview",
|
|
3162
|
-
"gemini-3-pro-preview-search",
|
|
3163
|
-
"glm-4.6v",
|
|
3164
|
-
"glm-4.7",
|
|
3165
|
-
"glm-5",
|
|
3166
|
-
"gpt-4.1",
|
|
3167
|
-
"gpt-4.1-mini",
|
|
3168
|
-
"gpt-4.1-nano",
|
|
3169
|
-
"gpt-4o",
|
|
3170
|
-
"gpt-5",
|
|
3171
|
-
"gpt-5-codex",
|
|
3172
|
-
"gpt-5-mini",
|
|
3173
|
-
"gpt-5-nano",
|
|
3174
|
-
"gpt-5-pro",
|
|
3175
|
-
"gpt-5.1",
|
|
3176
|
-
"gpt-5.1-codex",
|
|
3177
|
-
"gpt-5.1-codex-max",
|
|
3178
|
-
"gpt-5.1-codex-mini",
|
|
3179
|
-
"gpt-5.2",
|
|
3180
|
-
"gpt-5.2-codex",
|
|
3181
|
-
"kimi-k2.5",
|
|
3182
|
-
"minimax-m2.1",
|
|
3183
|
-
"minimax-m2.5",
|
|
3184
|
-
"o4-mini",
|
|
3185
|
-
"qwen3-235b-a22b-instruct-2507",
|
|
3186
|
-
"qwen3-235b-a22b-thinking-2507",
|
|
3187
|
-
"qwen3-coder-480b-a35b-instruct",
|
|
3188
|
-
"qwen3-coder-next",
|
|
3189
|
-
"qwen3-max-2026-01-23",
|
|
3190
|
-
"qwen3.5-plus"
|
|
3191
|
-
],
|
|
3192
|
-
"docUrl": "https://docs.aihubmix.com",
|
|
3193
|
-
"gateway": "models.dev"
|
|
3194
|
-
},
|
|
3195
3138
|
"minimax-cn-coding-plan": {
|
|
3196
3139
|
"url": "https://api.minimaxi.com/anthropic/v1",
|
|
3197
3140
|
"apiKeyEnvVar": "MINIMAX_API_KEY",
|
|
@@ -6834,6 +6777,7 @@
|
|
|
6834
6777
|
"hf:Qwen/Qwen3-235B-A22B-Instruct-2507",
|
|
6835
6778
|
"hf:Qwen/Qwen3-235B-A22B-Thinking-2507",
|
|
6836
6779
|
"hf:Qwen/Qwen3-Coder-480B-A35B-Instruct",
|
|
6780
|
+
"hf:Qwen/Qwen3.5-397B-A17B",
|
|
6837
6781
|
"hf:deepseek-ai/DeepSeek-R1",
|
|
6838
6782
|
"hf:deepseek-ai/DeepSeek-R1-0528",
|
|
6839
6783
|
"hf:deepseek-ai/DeepSeek-V3",
|
|
@@ -7076,56 +7020,6 @@
|
|
|
7076
7020
|
"whisper-large-v3",
|
|
7077
7021
|
"whisper-large-v3-turbo"
|
|
7078
7022
|
],
|
|
7079
|
-
"aihubmix": [
|
|
7080
|
-
"Kimi-K2-0905",
|
|
7081
|
-
"claude-haiku-4-5",
|
|
7082
|
-
"claude-opus-4-1",
|
|
7083
|
-
"claude-opus-4-5",
|
|
7084
|
-
"claude-opus-4-6",
|
|
7085
|
-
"claude-opus-4-6-think",
|
|
7086
|
-
"claude-sonnet-4-5",
|
|
7087
|
-
"claude-sonnet-4-6",
|
|
7088
|
-
"claude-sonnet-4-6-think",
|
|
7089
|
-
"coding-glm-4.7",
|
|
7090
|
-
"coding-glm-4.7-free",
|
|
7091
|
-
"coding-glm-5-free",
|
|
7092
|
-
"coding-minimax-m2.1-free",
|
|
7093
|
-
"deepseek-v3.2",
|
|
7094
|
-
"deepseek-v3.2-fast",
|
|
7095
|
-
"deepseek-v3.2-think",
|
|
7096
|
-
"gemini-2.5-flash",
|
|
7097
|
-
"gemini-2.5-pro",
|
|
7098
|
-
"gemini-3-pro-preview",
|
|
7099
|
-
"gemini-3-pro-preview-search",
|
|
7100
|
-
"glm-4.6v",
|
|
7101
|
-
"glm-4.7",
|
|
7102
|
-
"glm-5",
|
|
7103
|
-
"gpt-4.1",
|
|
7104
|
-
"gpt-4.1-mini",
|
|
7105
|
-
"gpt-4.1-nano",
|
|
7106
|
-
"gpt-4o",
|
|
7107
|
-
"gpt-5",
|
|
7108
|
-
"gpt-5-codex",
|
|
7109
|
-
"gpt-5-mini",
|
|
7110
|
-
"gpt-5-nano",
|
|
7111
|
-
"gpt-5-pro",
|
|
7112
|
-
"gpt-5.1",
|
|
7113
|
-
"gpt-5.1-codex",
|
|
7114
|
-
"gpt-5.1-codex-max",
|
|
7115
|
-
"gpt-5.1-codex-mini",
|
|
7116
|
-
"gpt-5.2",
|
|
7117
|
-
"gpt-5.2-codex",
|
|
7118
|
-
"kimi-k2.5",
|
|
7119
|
-
"minimax-m2.1",
|
|
7120
|
-
"minimax-m2.5",
|
|
7121
|
-
"o4-mini",
|
|
7122
|
-
"qwen3-235b-a22b-instruct-2507",
|
|
7123
|
-
"qwen3-235b-a22b-thinking-2507",
|
|
7124
|
-
"qwen3-coder-480b-a35b-instruct",
|
|
7125
|
-
"qwen3-coder-next",
|
|
7126
|
-
"qwen3-max-2026-01-23",
|
|
7127
|
-
"qwen3.5-plus"
|
|
7128
|
-
],
|
|
7129
7023
|
"minimax-cn-coding-plan": [
|
|
7130
7024
|
"MiniMax-M2",
|
|
7131
7025
|
"MiniMax-M2.1",
|
package/dist/relevance/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkO542TXPV_cjs = require('../chunk-O542TXPV.cjs');
|
|
4
4
|
|
|
5
5
|
// src/relevance/relevance-score-provider.ts
|
|
6
6
|
function createSimilarityPrompt(query, text) {
|
|
@@ -17,7 +17,7 @@ Relevance score (0-1):`;
|
|
|
17
17
|
var MastraAgentRelevanceScorer = class {
|
|
18
18
|
agent;
|
|
19
19
|
constructor(name, model) {
|
|
20
|
-
this.agent = new
|
|
20
|
+
this.agent = new chunkO542TXPV_cjs.Agent({
|
|
21
21
|
id: `relevance-scorer-${name}`,
|
|
22
22
|
name: `Relevance Scorer ${name}`,
|
|
23
23
|
instructions: `You are a specialized agent for evaluating the relevance of text to queries.
|
|
@@ -37,7 +37,7 @@ Always return just the number, no explanation.`,
|
|
|
37
37
|
const prompt = createSimilarityPrompt(query, text);
|
|
38
38
|
const model = await this.agent.getModel();
|
|
39
39
|
let response;
|
|
40
|
-
if (
|
|
40
|
+
if (chunkO542TXPV_cjs.isSupportedLanguageModel(model)) {
|
|
41
41
|
const responseText = await this.agent.generate(prompt);
|
|
42
42
|
response = responseText.text;
|
|
43
43
|
} else {
|
package/dist/relevance/index.js
CHANGED