@mastra/core 1.25.0-alpha.1 → 1.25.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 +9 -0
- package/dist/agent/index.cjs +8 -8
- package/dist/agent/index.js +1 -1
- package/dist/browser/index.cjs +2 -2
- package/dist/browser/index.js +1 -1
- package/dist/channels/index.cjs +4 -4
- package/dist/channels/index.js +1 -1
- package/dist/{chunk-2KXTBV63.cjs → chunk-2CSXTC4W.cjs} +50 -50
- package/dist/{chunk-2KXTBV63.cjs.map → chunk-2CSXTC4W.cjs.map} +1 -1
- package/dist/{chunk-BMFKFNJ5.cjs → chunk-4SQWVJWB.cjs} +6 -6
- package/dist/{chunk-BMFKFNJ5.cjs.map → chunk-4SQWVJWB.cjs.map} +1 -1
- package/dist/{chunk-5VDQUHRE.cjs → chunk-5K3IY3XF.cjs} +185 -185
- package/dist/{chunk-5VDQUHRE.cjs.map → chunk-5K3IY3XF.cjs.map} +1 -1
- package/dist/{chunk-XS3FHQ34.cjs → chunk-76F6NBJL.cjs} +42 -12
- package/dist/chunk-76F6NBJL.cjs.map +1 -0
- package/dist/{chunk-XU5BBDQZ.cjs → chunk-B4ENLDYO.cjs} +17 -17
- package/dist/{chunk-XU5BBDQZ.cjs.map → chunk-B4ENLDYO.cjs.map} +1 -1
- package/dist/{chunk-IKLOB7RZ.js → chunk-BJ2XQP3C.js} +3 -3
- package/dist/{chunk-IKLOB7RZ.js.map → chunk-BJ2XQP3C.js.map} +1 -1
- package/dist/{chunk-CTMULM7C.cjs → chunk-C7HSAYNV.cjs} +84 -84
- package/dist/{chunk-CTMULM7C.cjs.map → chunk-C7HSAYNV.cjs.map} +1 -1
- package/dist/{chunk-7DIETM5S.js → chunk-E7YN2YMC.js} +4 -4
- package/dist/{chunk-7DIETM5S.js.map → chunk-E7YN2YMC.js.map} +1 -1
- package/dist/{chunk-P52ZOO73.js → chunk-EASGWCPC.js} +9 -9
- package/dist/{chunk-P52ZOO73.js.map → chunk-EASGWCPC.js.map} +1 -1
- package/dist/{chunk-B5WUFMYZ.cjs → chunk-FWMUBTU4.cjs} +9 -9
- package/dist/{chunk-B5WUFMYZ.cjs.map → chunk-FWMUBTU4.cjs.map} +1 -1
- package/dist/{chunk-ZR576TEH.js → chunk-IQHCMOKI.js} +3 -3
- package/dist/{chunk-ZR576TEH.js.map → chunk-IQHCMOKI.js.map} +1 -1
- package/dist/{chunk-3B36QOW6.cjs → chunk-J3FO6OIB.cjs} +44 -44
- package/dist/{chunk-3B36QOW6.cjs.map → chunk-J3FO6OIB.cjs.map} +1 -1
- package/dist/{chunk-EE7IQ4HH.js → chunk-JIMR47KA.js} +7 -7
- package/dist/{chunk-EE7IQ4HH.js.map → chunk-JIMR47KA.js.map} +1 -1
- package/dist/{chunk-LLA7HBBB.js → chunk-K26M4ISU.js} +4 -4
- package/dist/{chunk-LLA7HBBB.js.map → chunk-K26M4ISU.js.map} +1 -1
- package/dist/{chunk-6FXOHI4A.cjs → chunk-LF4SXNRS.cjs} +9 -9
- package/dist/{chunk-6FXOHI4A.cjs.map → chunk-LF4SXNRS.cjs.map} +1 -1
- package/dist/{chunk-KIBLHJSP.js → chunk-MDNJVHTD.js} +3 -3
- package/dist/{chunk-KIBLHJSP.js.map → chunk-MDNJVHTD.js.map} +1 -1
- package/dist/{chunk-V5BD6VNQ.js → chunk-O57MJIVP.js} +106 -76
- package/dist/chunk-O57MJIVP.js.map +1 -0
- package/dist/{chunk-234T424F.js → chunk-PQSYNNZQ.js} +42 -12
- package/dist/chunk-PQSYNNZQ.js.map +1 -0
- package/dist/{chunk-P72NEDL3.cjs → chunk-PTBJYFV2.cjs} +6 -6
- package/dist/{chunk-P72NEDL3.cjs.map → chunk-PTBJYFV2.cjs.map} +1 -1
- package/dist/{chunk-E3LEATLR.js → chunk-RKIXM4J7.js} +3 -3
- package/dist/{chunk-E3LEATLR.js.map → chunk-RKIXM4J7.js.map} +1 -1
- package/dist/{chunk-DBVD54SZ.js → chunk-T2KZMZB4.js} +6 -6
- package/dist/{chunk-DBVD54SZ.js.map → chunk-T2KZMZB4.js.map} +1 -1
- package/dist/{chunk-5VPZDGJB.cjs → chunk-TCYFYO63.cjs} +118 -88
- package/dist/chunk-TCYFYO63.cjs.map +1 -0
- package/dist/{chunk-PLIDLBX6.cjs → chunk-TF4L3AI6.cjs} +7 -7
- package/dist/{chunk-PLIDLBX6.cjs.map → chunk-TF4L3AI6.cjs.map} +1 -1
- package/dist/{chunk-IMQQUIY5.cjs → chunk-W36S5E2D.cjs} +5 -5
- package/dist/{chunk-IMQQUIY5.cjs.map → chunk-W36S5E2D.cjs.map} +1 -1
- package/dist/{chunk-657TKMVS.js → chunk-XZ6Y2MUP.js} +4 -4
- package/dist/{chunk-657TKMVS.js.map → chunk-XZ6Y2MUP.js.map} +1 -1
- package/dist/{chunk-MMWXEOQL.js → chunk-YEYOK76V.js} +3 -3
- package/dist/{chunk-MMWXEOQL.js.map → chunk-YEYOK76V.js.map} +1 -1
- package/dist/{chunk-CHQR7PW2.js → chunk-YJQQFINI.js} +3 -3
- package/dist/{chunk-CHQR7PW2.js.map → chunk-YJQQFINI.js.map} +1 -1
- package/dist/{chunk-PRPEQPDT.cjs → chunk-YMYNVSNF.cjs} +3 -3
- package/dist/{chunk-PRPEQPDT.cjs.map → chunk-YMYNVSNF.cjs.map} +1 -1
- package/dist/datasets/index.cjs +17 -17
- package/dist/datasets/index.js +2 -2
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +207 -207
- package/dist/docs/references/docs-agents-adding-voice.md +4 -4
- package/dist/docs/references/docs-evals-custom-scorers.md +2 -2
- package/dist/docs/references/docs-memory-memory-processors.md +3 -3
- package/dist/docs/references/docs-memory-observational-memory.md +1 -1
- package/dist/docs/references/docs-memory-working-memory.md +1 -1
- package/dist/docs/references/docs-server-custom-adapters.md +5 -5
- package/dist/docs/references/docs-server-custom-api-routes.md +3 -3
- package/dist/docs/references/docs-server-middleware.md +0 -24
- package/dist/docs/references/docs-studio-observability.md +1 -1
- package/dist/docs/references/docs-voice-speech-to-text.md +7 -7
- package/dist/docs/references/docs-voice-text-to-speech.md +10 -10
- package/dist/docs/references/docs-workspace-filesystem.md +4 -4
- package/dist/docs/references/docs-workspace-skills.md +3 -3
- package/dist/docs/references/guides-agent-frameworks-ai-sdk.md +4 -4
- package/dist/docs/references/reference-agents-channels.md +3 -3
- package/dist/docs/references/reference-core-addGateway.md +5 -5
- package/dist/docs/references/reference-core-getGateway.md +5 -5
- package/dist/docs/references/reference-core-getGatewayById.md +5 -5
- package/dist/docs/references/reference-core-getMCPServer.md +2 -2
- package/dist/docs/references/reference-core-getMCPServerById.md +2 -2
- package/dist/docs/references/reference-core-getScorer.md +3 -3
- package/dist/docs/references/reference-core-getScorerById.md +3 -3
- package/dist/docs/references/reference-core-listGateways.md +5 -5
- package/dist/docs/references/reference-core-listMCPServers.md +2 -2
- package/dist/docs/references/reference-core-listScorers.md +3 -3
- package/dist/docs/references/reference-core-mastra-model-gateway.md +5 -5
- package/dist/docs/references/reference-evals-context-precision.md +3 -3
- package/dist/docs/references/reference-evals-mastra-scorer.md +4 -4
- package/dist/docs/references/reference-evals-run-evals.md +6 -6
- package/dist/docs/references/reference-evals-scorer-utils.md +3 -3
- package/dist/docs/references/reference-evals-trajectory-accuracy.md +3 -3
- package/dist/docs/references/reference-observability-tracing-bridges-otel.md +3 -3
- package/dist/docs/references/reference-observability-tracing-configuration.md +12 -12
- package/dist/docs/references/reference-observability-tracing-exporters-console-exporter.md +8 -8
- package/dist/docs/references/reference-observability-tracing-instances.md +7 -7
- package/dist/docs/references/reference-observability-tracing-interfaces.md +6 -6
- package/dist/docs/references/reference-observability-tracing-spans.md +6 -6
- package/dist/docs/references/reference-processors-processor-interface.md +3 -3
- package/dist/docs/references/reference-server-mastra-server.md +3 -3
- package/dist/docs/references/reference-server-register-api-route.md +4 -4
- package/dist/docs/references/reference-storage-overview.md +1 -1
- package/dist/docs/references/reference-streaming-ChunkType.md +3 -3
- package/dist/docs/references/reference-streaming-agents-MastraModelOutput.md +2 -2
- package/dist/docs/references/reference-voice-voice.connect.md +4 -4
- package/dist/docs/references/reference-voice-voice.listen.md +3 -3
- package/dist/docs/references/reference-workflows-run-methods-startAsync.md +1 -1
- package/dist/docs/references/reference-workspace-workspace-class.md +1 -1
- 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/index.cjs +9 -9
- package/dist/harness/index.js +6 -6
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/llm/index.cjs +20 -20
- package/dist/llm/index.js +5 -5
- package/dist/llm/model/provider-types.generated.d.ts +45 -30
- package/dist/loop/index.cjs +14 -14
- package/dist/loop/index.js +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.js +1 -1
- package/dist/mastra-73GV2I6G.cjs +12 -0
- package/dist/{mastra-2NH67NW3.cjs.map → mastra-73GV2I6G.cjs.map} +1 -1
- package/dist/mastra-YZGXHKSJ.js +3 -0
- package/dist/{mastra-BOWNGAEP.js.map → mastra-YZGXHKSJ.js.map} +1 -1
- package/dist/memory/index.cjs +19 -19
- package/dist/memory/index.js +1 -1
- package/dist/models-dev-MPU4ZIII.js +3 -0
- package/dist/{models-dev-C66PZDFD.js.map → models-dev-MPU4ZIII.js.map} +1 -1
- package/dist/models-dev-YSGLFMMA.cjs +12 -0
- package/dist/{models-dev-23NHHG3J.cjs.map → models-dev-YSGLFMMA.cjs.map} +1 -1
- package/dist/netlify-6GG6OMR6.js +3 -0
- package/dist/{netlify-HTGPYTNP.js.map → netlify-6GG6OMR6.js.map} +1 -1
- package/dist/netlify-SLPWLB5B.cjs +12 -0
- package/dist/{netlify-VU5XD3IX.cjs.map → netlify-SLPWLB5B.cjs.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-JHLXPZPL.js +3 -0
- package/dist/{provider-registry-XPG5T4TE.js.map → provider-registry-JHLXPZPL.js.map} +1 -1
- package/dist/provider-registry-VS2NLANW.cjs +44 -0
- package/dist/{provider-registry-3HKQJTKQ.cjs.map → provider-registry-VS2NLANW.cjs.map} +1 -1
- package/dist/provider-registry.json +98 -68
- 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/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/tool-builder/builder.d.ts.map +1 -1
- package/dist/utils.cjs +25 -25
- 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/package.json +5 -5
- package/src/llm/model/provider-types.generated.d.ts +45 -30
- package/dist/chunk-234T424F.js.map +0 -1
- package/dist/chunk-5VPZDGJB.cjs.map +0 -1
- package/dist/chunk-V5BD6VNQ.js.map +0 -1
- package/dist/chunk-XS3FHQ34.cjs.map +0 -1
- package/dist/mastra-2NH67NW3.cjs +0 -12
- package/dist/mastra-BOWNGAEP.js +0 -3
- package/dist/models-dev-23NHHG3J.cjs +0 -12
- package/dist/models-dev-C66PZDFD.js +0 -3
- package/dist/netlify-HTGPYTNP.js +0 -3
- package/dist/netlify-VU5XD3IX.cjs +0 -12
- package/dist/provider-registry-3HKQJTKQ.cjs +0 -44
- package/dist/provider-registry-XPG5T4TE.js +0 -3
package/dist/utils.cjs
CHANGED
|
@@ -1,105 +1,105 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk76F6NBJL_cjs = require('./chunk-76F6NBJL.cjs');
|
|
4
4
|
var chunkRLPRSIR2_cjs = require('./chunk-RLPRSIR2.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "checkEvalStorageFields", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunk76F6NBJL_cjs.checkEvalStorageFields; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "createMastraProxy", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunk76F6NBJL_cjs.createMastraProxy; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "deepEqual", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk76F6NBJL_cjs.deepEqual; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "deepMerge", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk76F6NBJL_cjs.deepMerge; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "delay", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunk76F6NBJL_cjs.delay; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "ensureSerializable", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunk76F6NBJL_cjs.ensureSerializable; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "ensureToolProperties", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunk76F6NBJL_cjs.ensureToolProperties; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "fetchWithRetry", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunk76F6NBJL_cjs.fetchWithRetry; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "generateEmptyFromSchema", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunk76F6NBJL_cjs.generateEmptyFromSchema; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "getNestedValue", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunk76F6NBJL_cjs.getNestedValue; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "isCoreMessage", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunk76F6NBJL_cjs.isCoreMessage; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "isUiMessage", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunk76F6NBJL_cjs.isUiMessage; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "isZodType", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunk76F6NBJL_cjs.isZodType; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "makeCoreTool", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunk76F6NBJL_cjs.makeCoreTool; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "makeCoreToolV5", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunk76F6NBJL_cjs.makeCoreToolV5; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "maskStreamTags", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunk76F6NBJL_cjs.maskStreamTags; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "omitKeys", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunk76F6NBJL_cjs.omitKeys; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "parseFieldKey", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunk76F6NBJL_cjs.parseFieldKey; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "parseSqlIdentifier", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunk76F6NBJL_cjs.parseSqlIdentifier; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "removeUndefinedValues", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunk76F6NBJL_cjs.removeUndefinedValues; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "resolveSerializedZodOutput", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunk76F6NBJL_cjs.resolveSerializedZodOutput; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "safeStringify", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunk76F6NBJL_cjs.safeStringify; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "selectFields", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunk76F6NBJL_cjs.selectFields; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "setNestedValue", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunk76F6NBJL_cjs.setNestedValue; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "getZodDef", {
|
|
105
105
|
enumerable: true,
|
package/dist/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { checkEvalStorageFields, createMastraProxy, deepEqual, deepMerge, delay, ensureSerializable, ensureToolProperties, fetchWithRetry, generateEmptyFromSchema, getNestedValue, isCoreMessage, isUiMessage, isZodType, makeCoreTool, makeCoreToolV5, maskStreamTags, omitKeys, parseFieldKey, parseSqlIdentifier, removeUndefinedValues, resolveSerializedZodOutput, safeStringify, selectFields, setNestedValue } from './chunk-
|
|
1
|
+
export { checkEvalStorageFields, createMastraProxy, deepEqual, deepMerge, delay, ensureSerializable, ensureToolProperties, fetchWithRetry, generateEmptyFromSchema, getNestedValue, isCoreMessage, isUiMessage, isZodType, makeCoreTool, makeCoreToolV5, maskStreamTags, omitKeys, parseFieldKey, parseSqlIdentifier, removeUndefinedValues, resolveSerializedZodOutput, safeStringify, selectFields, setNestedValue } from './chunk-PQSYNNZQ.js';
|
|
2
2
|
export { getZodDef, getZodTypeName, isZodArray, isZodObject } from './chunk-RT2LCNDN.js';
|
|
3
3
|
//# sourceMappingURL=utils.js.map
|
|
4
4
|
//# sourceMappingURL=utils.js.map
|
package/dist/vector/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk6XCINXZ7_cjs = require('../chunk-6XCINXZ7.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkFWMUBTU4_cjs = require('../chunk-FWMUBTU4.cjs');
|
|
5
5
|
var chunkY3APFUXZ_cjs = require('../chunk-Y3APFUXZ.cjs');
|
|
6
6
|
var chunkMMHYKJDT_cjs = require('../chunk-MMHYKJDT.cjs');
|
|
7
7
|
var chunk3TVHVNZL_cjs = require('../chunk-3TVHVNZL.cjs');
|
|
@@ -89,7 +89,7 @@ var MastraVector = class extends chunkFCQNDFEW_cjs.MastraBase {
|
|
|
89
89
|
function validateUpsertInput(storeName, vectors, metadata, ids) {
|
|
90
90
|
if (!vectors || vectors.length === 0) {
|
|
91
91
|
throw new chunk4U7ZLI36_cjs.MastraError({
|
|
92
|
-
id:
|
|
92
|
+
id: chunkFWMUBTU4_cjs.createVectorErrorId(storeName, "UPSERT", "EMPTY_VECTORS"),
|
|
93
93
|
domain: "MASTRA_VECTOR" /* MASTRA_VECTOR */,
|
|
94
94
|
category: "USER" /* USER */,
|
|
95
95
|
details: {
|
|
@@ -99,7 +99,7 @@ function validateUpsertInput(storeName, vectors, metadata, ids) {
|
|
|
99
99
|
}
|
|
100
100
|
if (metadata && metadata.length > 0 && metadata.length !== vectors.length) {
|
|
101
101
|
throw new chunk4U7ZLI36_cjs.MastraError({
|
|
102
|
-
id:
|
|
102
|
+
id: chunkFWMUBTU4_cjs.createVectorErrorId(storeName, "UPSERT", "METADATA_LENGTH_MISMATCH"),
|
|
103
103
|
domain: "MASTRA_VECTOR" /* MASTRA_VECTOR */,
|
|
104
104
|
category: "USER" /* USER */,
|
|
105
105
|
details: {
|
|
@@ -111,7 +111,7 @@ function validateUpsertInput(storeName, vectors, metadata, ids) {
|
|
|
111
111
|
}
|
|
112
112
|
if (ids && ids.length !== vectors.length) {
|
|
113
113
|
throw new chunk4U7ZLI36_cjs.MastraError({
|
|
114
|
-
id:
|
|
114
|
+
id: chunkFWMUBTU4_cjs.createVectorErrorId(storeName, "UPSERT", "IDS_LENGTH_MISMATCH"),
|
|
115
115
|
domain: "MASTRA_VECTOR" /* MASTRA_VECTOR */,
|
|
116
116
|
category: "USER" /* USER */,
|
|
117
117
|
details: {
|
|
@@ -125,7 +125,7 @@ function validateUpsertInput(storeName, vectors, metadata, ids) {
|
|
|
125
125
|
function validateTopK(storeName, topK) {
|
|
126
126
|
if (!Number.isInteger(topK) || topK <= 0) {
|
|
127
127
|
throw new chunk4U7ZLI36_cjs.MastraError({
|
|
128
|
-
id:
|
|
128
|
+
id: chunkFWMUBTU4_cjs.createVectorErrorId(storeName, "QUERY", "INVALID_TOP_K"),
|
|
129
129
|
domain: "MASTRA_VECTOR" /* MASTRA_VECTOR */,
|
|
130
130
|
category: "USER" /* USER */,
|
|
131
131
|
details: {
|
|
@@ -140,7 +140,7 @@ function validateVectorValues(storeName, vectors) {
|
|
|
140
140
|
const vector = vectors[i];
|
|
141
141
|
if (!vector) {
|
|
142
142
|
throw new chunk4U7ZLI36_cjs.MastraError({
|
|
143
|
-
id:
|
|
143
|
+
id: chunkFWMUBTU4_cjs.createVectorErrorId(storeName, "UPSERT", "INVALID_VECTOR"),
|
|
144
144
|
domain: "MASTRA_VECTOR" /* MASTRA_VECTOR */,
|
|
145
145
|
category: "USER" /* USER */,
|
|
146
146
|
details: {
|
|
@@ -153,7 +153,7 @@ function validateVectorValues(storeName, vectors) {
|
|
|
153
153
|
const value = vector[j];
|
|
154
154
|
if (value === null || value === void 0 || !Number.isFinite(value)) {
|
|
155
155
|
throw new chunk4U7ZLI36_cjs.MastraError({
|
|
156
|
-
id:
|
|
156
|
+
id: chunkFWMUBTU4_cjs.createVectorErrorId(storeName, "UPSERT", "INVALID_VECTOR_VALUE"),
|
|
157
157
|
domain: "MASTRA_VECTOR" /* MASTRA_VECTOR */,
|
|
158
158
|
category: "USER" /* USER */,
|
|
159
159
|
details: {
|
package/dist/vector/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { BaseFilterTranslator } from '../chunk-BWYU7D33.js';
|
|
2
|
-
import { createVectorErrorId } from '../chunk-
|
|
2
|
+
import { createVectorErrorId } from '../chunk-YJQQFINI.js';
|
|
3
3
|
export { embed as embedV2 } from '../chunk-2PHG443D.js';
|
|
4
4
|
export { embed as embedV3 } from '../chunk-Q6PTFJUZ.js';
|
|
5
5
|
export { embed as embedV1 } from '../chunk-SFTERBTR.js';
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2CSXTC4W_cjs = require('../../chunk-2CSXTC4W.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "EventedExecutionEngine", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk2CSXTC4W_cjs.EventedExecutionEngine; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "EventedRun", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk2CSXTC4W_cjs.EventedRun; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "EventedWorkflow", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk2CSXTC4W_cjs.EventedWorkflow; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "StepExecutor", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk2CSXTC4W_cjs.StepExecutor; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "WorkflowEventProcessor", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk2CSXTC4W_cjs.WorkflowEventProcessor; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "cloneStep", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk2CSXTC4W_cjs.cloneStep; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "cloneWorkflow", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk2CSXTC4W_cjs.cloneWorkflow; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "createStep", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk2CSXTC4W_cjs.createStep; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "createWorkflow", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk2CSXTC4W_cjs.createWorkflow; }
|
|
42
42
|
});
|
|
43
43
|
//# sourceMappingURL=index.cjs.map
|
|
44
44
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { EventedExecutionEngine, EventedRun, EventedWorkflow, StepExecutor, WorkflowEventProcessor, cloneStep, cloneWorkflow, createStep, createWorkflow } from '../../chunk-
|
|
1
|
+
export { EventedExecutionEngine, EventedRun, EventedWorkflow, StepExecutor, WorkflowEventProcessor, cloneStep, cloneWorkflow, createStep, createWorkflow } from '../../chunk-XZ6Y2MUP.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/workflows/index.cjs
CHANGED
|
@@ -1,100 +1,100 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkJ3FO6OIB_cjs = require('../chunk-J3FO6OIB.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "DefaultExecutionEngine", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkJ3FO6OIB_cjs.DefaultExecutionEngine; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "ExecutionEngine", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkJ3FO6OIB_cjs.ExecutionEngine; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "Run", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkJ3FO6OIB_cjs.Run; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "Workflow", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkJ3FO6OIB_cjs.Workflow; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "cleanStepResult", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkJ3FO6OIB_cjs.cleanStepResult; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "cloneStep", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkJ3FO6OIB_cjs.cloneStep; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "cloneWorkflow", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkJ3FO6OIB_cjs.cloneWorkflow; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "createDeprecationProxy", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkJ3FO6OIB_cjs.createDeprecationProxy; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "createStep", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkJ3FO6OIB_cjs.createStep; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "createTimeTravelExecutionParams", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkJ3FO6OIB_cjs.createTimeTravelExecutionParams; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "createWorkflow", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkJ3FO6OIB_cjs.createWorkflow; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "getResumeLabelsByStepId", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkJ3FO6OIB_cjs.getResumeLabelsByStepId; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "getStepIds", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkJ3FO6OIB_cjs.getStepIds; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "getStepResult", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkJ3FO6OIB_cjs.getStepResult; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "hydrateSerializedStepErrors", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkJ3FO6OIB_cjs.hydrateSerializedStepErrors; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "isProcessor", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkJ3FO6OIB_cjs.isProcessor; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "mapVariable", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkJ3FO6OIB_cjs.mapVariable; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "runCountDeprecationMessage", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkJ3FO6OIB_cjs.runCountDeprecationMessage; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "validateStepInput", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkJ3FO6OIB_cjs.validateStepInput; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "validateStepRequestContext", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkJ3FO6OIB_cjs.validateStepRequestContext; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "validateStepResumeData", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkJ3FO6OIB_cjs.validateStepResumeData; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "validateStepStateData", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkJ3FO6OIB_cjs.validateStepStateData; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "validateStepSuspendData", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkJ3FO6OIB_cjs.validateStepSuspendData; }
|
|
98
98
|
});
|
|
99
99
|
//# sourceMappingURL=index.cjs.map
|
|
100
100
|
//# sourceMappingURL=index.cjs.map
|
package/dist/workflows/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { DefaultExecutionEngine, ExecutionEngine, Run, Workflow, cleanStepResult, cloneStep, cloneWorkflow, createDeprecationProxy, createStep, createTimeTravelExecutionParams, createWorkflow, getResumeLabelsByStepId, getStepIds, getStepResult, hydrateSerializedStepErrors, isProcessor, mapVariable, runCountDeprecationMessage, validateStepInput, validateStepRequestContext, validateStepResumeData, validateStepStateData, validateStepSuspendData } from '../chunk-
|
|
1
|
+
export { DefaultExecutionEngine, ExecutionEngine, Run, Workflow, cleanStepResult, cloneStep, cloneWorkflow, createDeprecationProxy, createStep, createTimeTravelExecutionParams, createWorkflow, getResumeLabelsByStepId, getStepIds, getStepResult, hydrateSerializedStepErrors, isProcessor, mapVariable, runCountDeprecationMessage, validateStepInput, validateStepRequestContext, validateStepResumeData, validateStepStateData, validateStepSuspendData } from '../chunk-T2KZMZB4.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/core",
|
|
3
|
-
"version": "1.25.0-alpha.
|
|
3
|
+
"version": "1.25.0-alpha.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
"radash": "^12.1.1",
|
|
245
245
|
"ws": "^8.19.0",
|
|
246
246
|
"xxhash-wasm": "^1.1.0",
|
|
247
|
-
"@mastra/schema-compat": "1.2.
|
|
247
|
+
"@mastra/schema-compat": "1.2.8-alpha.0"
|
|
248
248
|
},
|
|
249
249
|
"peerDependencies": {
|
|
250
250
|
"zod": "^3.25.0 || ^4.0.0"
|
|
@@ -289,15 +289,15 @@
|
|
|
289
289
|
"vscode-jsonrpc": "^8.2.1",
|
|
290
290
|
"vscode-languageserver-protocol": "^3.17.5",
|
|
291
291
|
"zod": "^4.3.6",
|
|
292
|
-
"@internal/ai-sdk-v5": "0.0.29",
|
|
293
292
|
"@internal/ai-sdk-v4": "0.0.29",
|
|
293
|
+
"@internal/ai-sdk-v5": "0.0.29",
|
|
294
294
|
"@internal/ai-v6": "0.0.29",
|
|
295
295
|
"@internal/core": "0.0.0",
|
|
296
296
|
"@internal/lint": "0.0.82",
|
|
297
297
|
"@internal/external-types": "0.0.32",
|
|
298
298
|
"@internal/llm-recorder": "0.0.18",
|
|
299
|
-
"@internal/
|
|
300
|
-
"@internal/
|
|
299
|
+
"@internal/test-utils": "0.0.18",
|
|
300
|
+
"@internal/types-builder": "0.0.57"
|
|
301
301
|
},
|
|
302
302
|
"engines": {
|
|
303
303
|
"node": ">=22.13.0"
|