@mastra/core 1.0.0-beta.16 → 1.0.0-beta.18
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 +23 -0
- package/dist/agent/index.cjs +8 -8
- package/dist/agent/index.js +1 -1
- package/dist/{chunk-UT6MASE5.cjs → chunk-2OOMJRXZ.cjs} +3 -3
- package/dist/{chunk-UT6MASE5.cjs.map → chunk-2OOMJRXZ.cjs.map} +1 -1
- package/dist/{chunk-F7PAZAGE.js → chunk-2XX35XRX.js} +8 -9
- package/dist/chunk-2XX35XRX.js.map +1 -0
- package/dist/{chunk-QD776HMB.js → chunk-5YYAQUEF.js} +3 -3
- package/dist/{chunk-QD776HMB.js.map → chunk-5YYAQUEF.js.map} +1 -1
- package/dist/{chunk-UTMBASR5.js → chunk-6R4744NH.js} +4 -4
- package/dist/{chunk-UTMBASR5.js.map → chunk-6R4744NH.js.map} +1 -1
- package/dist/{chunk-CSCTVLD5.js → chunk-6RFJWX4V.js} +3 -3
- package/dist/{chunk-CSCTVLD5.js.map → chunk-6RFJWX4V.js.map} +1 -1
- package/dist/{chunk-KKYAYRIO.js → chunk-ABMWK6JU.js} +4 -4
- package/dist/{chunk-KKYAYRIO.js.map → chunk-ABMWK6JU.js.map} +1 -1
- package/dist/{chunk-37YWZMBX.js → chunk-AIJLACR2.js} +9 -5
- package/dist/chunk-AIJLACR2.js.map +1 -0
- package/dist/{chunk-WDXYPI3P.js → chunk-AR5CF3IN.js} +3 -3
- package/dist/{chunk-WDXYPI3P.js.map → chunk-AR5CF3IN.js.map} +1 -1
- package/dist/{chunk-4UH5LAF5.cjs → chunk-BWZ6UOBF.cjs} +15 -15
- package/dist/{chunk-4UH5LAF5.cjs.map → chunk-BWZ6UOBF.cjs.map} +1 -1
- package/dist/{chunk-DT5RMENY.js → chunk-CHVWQDMP.js} +39 -5
- package/dist/chunk-CHVWQDMP.js.map +1 -0
- package/dist/{chunk-OXV6QFSV.cjs → chunk-G6YCU7HJ.cjs} +8 -8
- package/dist/{chunk-OXV6QFSV.cjs.map → chunk-G6YCU7HJ.cjs.map} +1 -1
- package/dist/{chunk-5DL6Y7PJ.cjs → chunk-GFALVOBW.cjs} +35 -36
- package/dist/chunk-GFALVOBW.cjs.map +1 -0
- package/dist/{chunk-NNFF3URD.js → chunk-IHPCE24V.js} +8 -8
- package/dist/{chunk-NNFF3URD.js.map → chunk-IHPCE24V.js.map} +1 -1
- package/dist/{chunk-33VDGXRH.cjs → chunk-IY5QWADY.cjs} +16 -16
- package/dist/{chunk-33VDGXRH.cjs.map → chunk-IY5QWADY.cjs.map} +1 -1
- package/dist/{chunk-FB5QMTJJ.js → chunk-JBEKXEX6.js} +4 -4
- package/dist/{chunk-FB5QMTJJ.js.map → chunk-JBEKXEX6.js.map} +1 -1
- package/dist/{chunk-4KVIXN7K.cjs → chunk-NGRUGDFP.cjs} +14 -14
- package/dist/{chunk-4KVIXN7K.cjs.map → chunk-NGRUGDFP.cjs.map} +1 -1
- package/dist/{chunk-6YUHA5UH.cjs → chunk-O4YSWWLB.cjs} +5 -5
- package/dist/{chunk-6YUHA5UH.cjs.map → chunk-O4YSWWLB.cjs.map} +1 -1
- package/dist/{chunk-A6JNGJIU.cjs → chunk-P3XQ3TNY.cjs} +30 -30
- package/dist/{chunk-A6JNGJIU.cjs.map → chunk-P3XQ3TNY.cjs.map} +1 -1
- package/dist/{chunk-4N6WB4EZ.js → chunk-POSO2X6D.js} +6 -6
- package/dist/{chunk-4N6WB4EZ.js.map → chunk-POSO2X6D.js.map} +1 -1
- package/dist/{chunk-GNUITL2N.js → chunk-RC7RN5MY.js} +3 -3
- package/dist/{chunk-GNUITL2N.js.map → chunk-RC7RN5MY.js.map} +1 -1
- package/dist/{chunk-AQ22JIR7.cjs → chunk-SDR22R4D.cjs} +16 -16
- package/dist/{chunk-AQ22JIR7.cjs.map → chunk-SDR22R4D.cjs.map} +1 -1
- package/dist/{chunk-7KL2YFFK.cjs → chunk-SGRMJZMJ.cjs} +15 -15
- package/dist/{chunk-7KL2YFFK.cjs.map → chunk-SGRMJZMJ.cjs.map} +1 -1
- package/dist/{chunk-K4XAKG7L.js → chunk-TI6D7CAN.js} +4 -4
- package/dist/{chunk-K4XAKG7L.js.map → chunk-TI6D7CAN.js.map} +1 -1
- package/dist/{chunk-H2NHG7QL.cjs → chunk-VW7YQWDW.cjs} +9 -5
- package/dist/chunk-VW7YQWDW.cjs.map +1 -0
- package/dist/{chunk-NCAMNQC3.cjs → chunk-XIYLL4DN.cjs} +40 -6
- package/dist/chunk-XIYLL4DN.cjs.map +1 -0
- package/dist/{chunk-NK4UN2LF.cjs → chunk-XR7RX2PS.cjs} +5 -5
- package/dist/{chunk-NK4UN2LF.cjs.map → chunk-XR7RX2PS.cjs.map} +1 -1
- package/dist/{chunk-J4SXS7KN.js → chunk-Y52PV3W4.js} +4 -4
- package/dist/{chunk-J4SXS7KN.js.map → chunk-Y52PV3W4.js.map} +1 -1
- package/dist/{chunk-3ZRMVPQA.cjs → chunk-ZSQ7L6AW.cjs} +7 -7
- package/dist/{chunk-3ZRMVPQA.cjs.map → chunk-ZSQ7L6AW.cjs.map} +1 -1
- package/dist/evals/index.cjs +19 -19
- package/dist/evals/index.js +2 -2
- package/dist/evals/scoreTraces/index.cjs +5 -5
- package/dist/evals/scoreTraces/index.js +2 -2
- 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 +11 -11
- package/dist/llm/index.js +3 -3
- package/dist/llm/model/provider-types.generated.d.ts +14 -1
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.js +1 -1
- package/dist/memory/index.cjs +11 -11
- package/dist/memory/index.js +1 -1
- package/dist/netlify-CUYK2MZ2.cjs +12 -0
- package/dist/{netlify-5Y33S7WL.cjs.map → netlify-CUYK2MZ2.cjs.map} +1 -1
- package/dist/netlify-J4QPOROO.js +3 -0
- package/dist/{netlify-3MHHJG2E.js.map → netlify-J4QPOROO.js.map} +1 -1
- package/dist/processors/index.cjs +37 -37
- package/dist/processors/index.js +1 -1
- package/dist/provider-registry-IGILEKIM.js +3 -0
- package/dist/{provider-registry-LXSWMVEC.js.map → provider-registry-IGILEKIM.js.map} +1 -1
- package/dist/provider-registry-XNQEGR56.cjs +40 -0
- package/dist/{provider-registry-YJ2P5YY5.cjs.map → provider-registry-XNQEGR56.cjs.map} +1 -1
- package/dist/provider-registry.json +36 -2
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/storage/constants.cjs +14 -14
- package/dist/storage/constants.js +1 -1
- package/dist/storage/index.cjs +92 -92
- package/dist/storage/index.js +2 -2
- package/dist/stream/index.cjs +9 -9
- 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 +4 -4
- package/dist/tools/index.js +1 -1
- package/dist/tools/is-vercel-tool.cjs +2 -2
- package/dist/tools/is-vercel-tool.js +1 -1
- package/dist/utils/zod-utils.d.ts +7 -1
- package/dist/utils/zod-utils.d.ts.map +1 -1
- package/dist/utils.cjs +27 -27
- package/dist/utils.js +2 -2
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +23 -23
- package/dist/workflows/index.js +1 -1
- package/package.json +5 -5
- package/src/llm/model/provider-types.generated.d.ts +14 -1
- package/dist/chunk-37YWZMBX.js.map +0 -1
- package/dist/chunk-5DL6Y7PJ.cjs.map +0 -1
- package/dist/chunk-DT5RMENY.js.map +0 -1
- package/dist/chunk-F7PAZAGE.js.map +0 -1
- package/dist/chunk-H2NHG7QL.cjs.map +0 -1
- package/dist/chunk-NCAMNQC3.cjs.map +0 -1
- package/dist/netlify-3MHHJG2E.js +0 -3
- package/dist/netlify-5Y33S7WL.cjs +0 -12
- package/dist/provider-registry-LXSWMVEC.js +0 -3
- package/dist/provider-registry-YJ2P5YY5.cjs +0 -40
|
@@ -9,8 +9,14 @@ export declare function isZodType(value: unknown): value is z.ZodType;
|
|
|
9
9
|
* Get the Zod typeName from a schema, compatible with both Zod 3 and Zod 4.
|
|
10
10
|
* Uses string-based typeName instead of instanceof to avoid dual-package hazard
|
|
11
11
|
* where multiple Zod instances can cause instanceof checks to fail.
|
|
12
|
+
*
|
|
13
|
+
* Zod 3 uses `_def.typeName` with values like "ZodString", "ZodOptional", etc.
|
|
14
|
+
* Zod 4 uses `_def.type` with lowercase values like "string", "optional", etc.
|
|
15
|
+
*
|
|
16
|
+
* This function normalizes to Zod 3 format (e.g., "ZodString") for compatibility.
|
|
17
|
+
*
|
|
12
18
|
* @param schema - The Zod schema to get the type name from
|
|
13
|
-
* @returns The Zod type name string or undefined
|
|
19
|
+
* @returns The Zod type name string (e.g., "ZodString", "ZodOptional") or undefined
|
|
14
20
|
*/
|
|
15
21
|
export declare function getZodTypeName(schema: z.ZodTypeAny): string | undefined;
|
|
16
22
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zod-utils.d.ts","sourceRoot":"","sources":["../../src/utils/zod-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,CAAC,CAAC,OAAO,CAW5D;AAED
|
|
1
|
+
{"version":3,"file":"zod-utils.d.ts","sourceRoot":"","sources":["../../src/utils/zod-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,CAAC,CAAC,OAAO,CAW5D;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,GAAG,MAAM,GAAG,SAAS,CAgBvE;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAG5E;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAGrE;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,GAAG,GAAG,CAGnD"}
|
package/dist/utils.cjs
CHANGED
|
@@ -1,109 +1,109 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkSDR22R4D_cjs = require('./chunk-SDR22R4D.cjs');
|
|
4
|
+
var chunkVW7YQWDW_cjs = require('./chunk-VW7YQWDW.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 chunkSDR22R4D_cjs.checkEvalStorageFields; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "createMastraProxy", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkSDR22R4D_cjs.createMastraProxy; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "deepMerge", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkSDR22R4D_cjs.deepMerge; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "delay", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkSDR22R4D_cjs.delay; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "ensureToolProperties", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkSDR22R4D_cjs.ensureToolProperties; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "fetchWithRetry", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkSDR22R4D_cjs.fetchWithRetry; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "generateEmptyFromSchema", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkSDR22R4D_cjs.generateEmptyFromSchema; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "getNestedValue", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkSDR22R4D_cjs.getNestedValue; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "isCoreMessage", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkSDR22R4D_cjs.isCoreMessage; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "isUiMessage", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkSDR22R4D_cjs.isUiMessage; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "isZodType", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkSDR22R4D_cjs.isZodType; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "makeCoreTool", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkSDR22R4D_cjs.makeCoreTool; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "makeCoreToolV5", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkSDR22R4D_cjs.makeCoreToolV5; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "maskStreamTags", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkSDR22R4D_cjs.maskStreamTags; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "omitKeys", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkSDR22R4D_cjs.omitKeys; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "parseFieldKey", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkSDR22R4D_cjs.parseFieldKey; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "parseSqlIdentifier", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkSDR22R4D_cjs.parseSqlIdentifier; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "removeUndefinedValues", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkSDR22R4D_cjs.removeUndefinedValues; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "resolveSerializedZodOutput", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkSDR22R4D_cjs.resolveSerializedZodOutput; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "selectFields", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkSDR22R4D_cjs.selectFields; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "setNestedValue", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkSDR22R4D_cjs.setNestedValue; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "getZodDef", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkVW7YQWDW_cjs.getZodDef; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "getZodTypeName", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkVW7YQWDW_cjs.getZodTypeName; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "isZodArray", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkVW7YQWDW_cjs.isZodArray; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "isZodObject", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkVW7YQWDW_cjs.isZodObject; }
|
|
107
107
|
});
|
|
108
108
|
//# sourceMappingURL=utils.cjs.map
|
|
109
109
|
//# sourceMappingURL=utils.cjs.map
|
package/dist/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, fetchWithRetry, generateEmptyFromSchema, getNestedValue, isCoreMessage, isUiMessage, isZodType, makeCoreTool, makeCoreToolV5, maskStreamTags, omitKeys, parseFieldKey, parseSqlIdentifier, removeUndefinedValues, resolveSerializedZodOutput, selectFields, setNestedValue } from './chunk-
|
|
2
|
-
export { getZodDef, getZodTypeName, isZodArray, isZodObject } from './chunk-
|
|
1
|
+
export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, fetchWithRetry, generateEmptyFromSchema, getNestedValue, isCoreMessage, isUiMessage, isZodType, makeCoreTool, makeCoreToolV5, maskStreamTags, omitKeys, parseFieldKey, parseSqlIdentifier, removeUndefinedValues, resolveSerializedZodOutput, selectFields, setNestedValue } from './chunk-JBEKXEX6.js';
|
|
2
|
+
export { getZodDef, getZodTypeName, isZodArray, isZodObject } from './chunk-AIJLACR2.js';
|
|
3
3
|
//# sourceMappingURL=utils.js.map
|
|
4
4
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkP3XQ3TNY_cjs = require('../../chunk-P3XQ3TNY.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 chunkP3XQ3TNY_cjs.EventedExecutionEngine; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "EventedRun", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkP3XQ3TNY_cjs.EventedRun; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "EventedWorkflow", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkP3XQ3TNY_cjs.EventedWorkflow; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "StepExecutor", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkP3XQ3TNY_cjs.StepExecutor; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "WorkflowEventProcessor", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkP3XQ3TNY_cjs.WorkflowEventProcessor; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "cloneStep", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkP3XQ3TNY_cjs.cloneStep; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "cloneWorkflow", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkP3XQ3TNY_cjs.cloneWorkflow; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "createStep", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkP3XQ3TNY_cjs.createStep; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "createWorkflow", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkP3XQ3TNY_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-6R4744NH.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/workflows/index.cjs
CHANGED
|
@@ -1,96 +1,96 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkGFALVOBW_cjs = require('../chunk-GFALVOBW.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 chunkGFALVOBW_cjs.DefaultExecutionEngine; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "ExecutionEngine", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkGFALVOBW_cjs.ExecutionEngine; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "Run", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkGFALVOBW_cjs.Run; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "Workflow", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkGFALVOBW_cjs.Workflow; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "cloneStep", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkGFALVOBW_cjs.cloneStep; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "cloneWorkflow", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkGFALVOBW_cjs.cloneWorkflow; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "createDeprecationProxy", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkGFALVOBW_cjs.createDeprecationProxy; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "createStep", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkGFALVOBW_cjs.createStep; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "createTimeTravelExecutionParams", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkGFALVOBW_cjs.createTimeTravelExecutionParams; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "createWorkflow", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkGFALVOBW_cjs.createWorkflow; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "getResumeLabelsByStepId", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkGFALVOBW_cjs.getResumeLabelsByStepId; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "getStepIds", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkGFALVOBW_cjs.getStepIds; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "getStepResult", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkGFALVOBW_cjs.getStepResult; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "getZodErrors", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkGFALVOBW_cjs.getZodErrors; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "hydrateSerializedStepErrors", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkGFALVOBW_cjs.hydrateSerializedStepErrors; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "isProcessor", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkGFALVOBW_cjs.isProcessor; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "mapVariable", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkGFALVOBW_cjs.mapVariable; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "runCountDeprecationMessage", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkGFALVOBW_cjs.runCountDeprecationMessage; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "validateStepInput", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkGFALVOBW_cjs.validateStepInput; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "validateStepResumeData", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkGFALVOBW_cjs.validateStepResumeData; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "validateStepStateData", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkGFALVOBW_cjs.validateStepStateData; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "validateStepSuspendData", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkGFALVOBW_cjs.validateStepSuspendData; }
|
|
94
94
|
});
|
|
95
95
|
//# sourceMappingURL=index.cjs.map
|
|
96
96
|
//# sourceMappingURL=index.cjs.map
|
package/dist/workflows/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { DefaultExecutionEngine, ExecutionEngine, Run, Workflow, cloneStep, cloneWorkflow, createDeprecationProxy, createStep, createTimeTravelExecutionParams, createWorkflow, getResumeLabelsByStepId, getStepIds, getStepResult, getZodErrors, hydrateSerializedStepErrors, isProcessor, mapVariable, runCountDeprecationMessage, validateStepInput, validateStepResumeData, validateStepStateData, validateStepSuspendData } from '../chunk-
|
|
1
|
+
export { DefaultExecutionEngine, ExecutionEngine, Run, Workflow, cloneStep, cloneWorkflow, createDeprecationProxy, createStep, createTimeTravelExecutionParams, createWorkflow, getResumeLabelsByStepId, getStepIds, getStepResult, getZodErrors, hydrateSerializedStepErrors, isProcessor, mapVariable, runCountDeprecationMessage, validateStepInput, validateStepResumeData, validateStepStateData, validateStepSuspendData } from '../chunk-2XX35XRX.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.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.18",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
"p-retry": "^7.1.0",
|
|
206
206
|
"radash": "^12.1.1",
|
|
207
207
|
"xxhash-wasm": "^1.1.0",
|
|
208
|
-
"@mastra/schema-compat": "1.0.0-beta.
|
|
208
|
+
"@mastra/schema-compat": "1.0.0-beta.4"
|
|
209
209
|
},
|
|
210
210
|
"peerDependencies": {
|
|
211
211
|
"zod": "^3.25.0 || ^4.0.0"
|
|
@@ -242,12 +242,12 @@
|
|
|
242
242
|
"vitest": "4.0.12",
|
|
243
243
|
"zod": "^3.25.76",
|
|
244
244
|
"zod-v4": "npm:zod@4.1.12",
|
|
245
|
-
"@internal/ai-sdk-v4": "0.0.0",
|
|
246
245
|
"@internal/ai-sdk-v5": "0.0.0",
|
|
247
246
|
"@internal/ai-v6": "0.0.0",
|
|
247
|
+
"@internal/ai-sdk-v4": "0.0.0",
|
|
248
248
|
"@internal/external-types": "0.0.3",
|
|
249
|
-
"@internal/
|
|
250
|
-
"@internal/
|
|
249
|
+
"@internal/types-builder": "0.0.28",
|
|
250
|
+
"@internal/lint": "0.0.53"
|
|
251
251
|
},
|
|
252
252
|
"engines": {
|
|
253
253
|
"node": ">=22.13.0"
|
|
@@ -841,8 +841,8 @@ export type ProviderModelsMap = {
|
|
|
841
841
|
'zai-org/GLM-4.6',
|
|
842
842
|
];
|
|
843
843
|
readonly opencode: readonly [
|
|
844
|
-
'alpha-doubao-seed-code',
|
|
845
844
|
'alpha-gd4',
|
|
845
|
+
'alpha-glm-4.7',
|
|
846
846
|
'big-pickle',
|
|
847
847
|
'claude-3-5-haiku',
|
|
848
848
|
'claude-haiku-4-5',
|
|
@@ -1340,6 +1340,19 @@ export type ProviderModelsMap = {
|
|
|
1340
1340
|
];
|
|
1341
1341
|
readonly morph: readonly ['auto', 'morph-v3-fast', 'morph-v3-large'];
|
|
1342
1342
|
readonly lmstudio: readonly ['openai/gpt-oss-20b', 'qwen/qwen3-30b-a3b-2507', 'qwen/qwen3-coder-30b'];
|
|
1343
|
+
readonly friendli: readonly [
|
|
1344
|
+
'LGAI-EXAONE-EXAONE-4.0.1-32B',
|
|
1345
|
+
'Qwen-Qwen3-235B-A22B-Instruct-2507',
|
|
1346
|
+
'Qwen-Qwen3-235B-A22B-Thinking-2507',
|
|
1347
|
+
'Qwen-Qwen3-30B-A3B',
|
|
1348
|
+
'Qwen-Qwen3-32B',
|
|
1349
|
+
'deepseek-ai-DeepSeek-R1-0528',
|
|
1350
|
+
'meta-llama-3.1-8b-instruct',
|
|
1351
|
+
'meta-llama-3.3-70b-instruct',
|
|
1352
|
+
'meta-llama-Llama-4-Maverick-17B-128E-Instruct',
|
|
1353
|
+
'meta-llama-Llama-4-Scout-17B-16E-Instruct',
|
|
1354
|
+
'zai-org-GLM-4.6',
|
|
1355
|
+
];
|
|
1343
1356
|
readonly anthropic: readonly [
|
|
1344
1357
|
'claude-3-5-haiku-20241022',
|
|
1345
1358
|
'claude-3-5-haiku-latest',
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/utils/zod-utils.ts"],"names":[],"mappings":";AAOO,SAAS,UAAU,KAAA,EAAoC;AAE5D,EAAA,OACE,OAAO,KAAA,KAAU,QAAA,IACjB,KAAA,KAAU,IAAA,IACV,UAAU,KAAA,IACV,OAAA,IAAW,KAAA,IACX,OAAQ,MAAc,KAAA,KAAU,UAAA,IAChC,eAAe,KAAA,IACf,OAAQ,MAAc,SAAA,KAAc,UAAA;AAExC;AASO,SAAS,eAAe,MAAA,EAA0C;AACvE,EAAA,MAAM,SAAA,GAAY,MAAA;AAElB,EAAA,IAAI,SAAA,CAAU,IAAA,EAAM,GAAA,EAAK,QAAA,EAAU;AACjC,IAAA,OAAO,SAAA,CAAU,KAAK,GAAA,CAAI,QAAA;AAAA,EAC5B;AAEA,EAAA,OAAO,UAAU,IAAA,EAAM,QAAA;AACzB;AAOO,SAAS,WAAW,KAAA,EAAmD;AAC5E,EAAA,IAAI,CAAC,SAAA,CAAU,KAAK,CAAA,EAAG,OAAO,KAAA;AAC9B,EAAA,OAAO,cAAA,CAAe,KAAqB,CAAA,KAAM,UAAA;AACnD;AAOO,SAAS,YAAY,KAAA,EAA2C;AACrE,EAAA,IAAI,CAAC,SAAA,CAAU,KAAK,CAAA,EAAG,OAAO,KAAA;AAC9B,EAAA,OAAO,cAAA,CAAe,KAAqB,CAAA,KAAM,WAAA;AACnD;AAOO,SAAS,UAAU,MAAA,EAA2B;AACnD,EAAA,MAAM,SAAA,GAAY,MAAA;AAClB,EAAA,OAAO,SAAA,CAAU,IAAA,EAAM,GAAA,IAAO,SAAA,CAAU,IAAA;AAC1C","file":"chunk-37YWZMBX.js","sourcesContent":["import type { z } from 'zod';\n\n/**\n * Checks if a value is a Zod type\n * @param value - The value to check\n * @returns True if the value is a Zod type, false otherwise\n */\nexport function isZodType(value: unknown): value is z.ZodType {\n // Check if it's a Zod schema by looking for common Zod properties and methods\n return (\n typeof value === 'object' &&\n value !== null &&\n '_def' in value &&\n 'parse' in value &&\n typeof (value as any).parse === 'function' &&\n 'safeParse' in value &&\n typeof (value as any).safeParse === 'function'\n );\n}\n\n/**\n * Get the Zod typeName from a schema, compatible with both Zod 3 and Zod 4.\n * Uses string-based typeName instead of instanceof to avoid dual-package hazard\n * where multiple Zod instances can cause instanceof checks to fail.\n * @param schema - The Zod schema to get the type name from\n * @returns The Zod type name string or undefined\n */\nexport function getZodTypeName(schema: z.ZodTypeAny): string | undefined {\n const schemaAny = schema as any;\n // Zod 4 structure\n if (schemaAny._zod?.def?.typeName) {\n return schemaAny._zod.def.typeName;\n }\n // Zod 3 structure\n return schemaAny._def?.typeName;\n}\n\n/**\n * Check if a value is a ZodArray type\n * @param value - The value to check (can be any type)\n * @returns True if the value is a ZodArray\n */\nexport function isZodArray(value: unknown): value is z.ZodArray<z.ZodTypeAny> {\n if (!isZodType(value)) return false;\n return getZodTypeName(value as z.ZodTypeAny) === 'ZodArray';\n}\n\n/**\n * Check if a value is a ZodObject type\n * @param value - The value to check (can be any type)\n * @returns True if the value is a ZodObject\n */\nexport function isZodObject(value: unknown): value is z.ZodObject<any> {\n if (!isZodType(value)) return false;\n return getZodTypeName(value as z.ZodTypeAny) === 'ZodObject';\n}\n\n/**\n * Get the def object from a Zod schema, compatible with both Zod 3 and Zod 4.\n * @param schema - The Zod schema\n * @returns The def object\n */\nexport function getZodDef(schema: z.ZodTypeAny): any {\n const schemaAny = schema as any;\n return schemaAny._zod?.def ?? schemaAny._def;\n}\n"]}
|