@mastra/core 1.0.0-beta.16 → 1.0.0-beta.17

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.
Files changed (111) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/agent/index.cjs +8 -8
  3. package/dist/agent/index.js +1 -1
  4. package/dist/{chunk-3ZRMVPQA.cjs → chunk-3AISNGWY.cjs} +7 -7
  5. package/dist/{chunk-3ZRMVPQA.cjs.map → chunk-3AISNGWY.cjs.map} +1 -1
  6. package/dist/{chunk-4KVIXN7K.cjs → chunk-4M75INXO.cjs} +11 -11
  7. package/dist/{chunk-4KVIXN7K.cjs.map → chunk-4M75INXO.cjs.map} +1 -1
  8. package/dist/{chunk-A6JNGJIU.cjs → chunk-4QYTF4ZB.cjs} +30 -30
  9. package/dist/{chunk-A6JNGJIU.cjs.map → chunk-4QYTF4ZB.cjs.map} +1 -1
  10. package/dist/{chunk-QD776HMB.js → chunk-5YYAQUEF.js} +3 -3
  11. package/dist/{chunk-QD776HMB.js.map → chunk-5YYAQUEF.js.map} +1 -1
  12. package/dist/{chunk-CSCTVLD5.js → chunk-6RFJWX4V.js} +3 -3
  13. package/dist/{chunk-CSCTVLD5.js.map → chunk-6RFJWX4V.js.map} +1 -1
  14. package/dist/{chunk-5DL6Y7PJ.cjs → chunk-6ZKYNY3H.cjs} +35 -35
  15. package/dist/{chunk-5DL6Y7PJ.cjs.map → chunk-6ZKYNY3H.cjs.map} +1 -1
  16. package/dist/{chunk-UTMBASR5.js → chunk-7CDELQD6.js} +4 -4
  17. package/dist/{chunk-UTMBASR5.js.map → chunk-7CDELQD6.js.map} +1 -1
  18. package/dist/{chunk-KKYAYRIO.js → chunk-ABMWK6JU.js} +4 -4
  19. package/dist/{chunk-KKYAYRIO.js.map → chunk-ABMWK6JU.js.map} +1 -1
  20. package/dist/{chunk-37YWZMBX.js → chunk-AIJLACR2.js} +9 -5
  21. package/dist/chunk-AIJLACR2.js.map +1 -0
  22. package/dist/{chunk-OXV6QFSV.cjs → chunk-G6YCU7HJ.cjs} +8 -8
  23. package/dist/{chunk-OXV6QFSV.cjs.map → chunk-G6YCU7HJ.cjs.map} +1 -1
  24. package/dist/{chunk-K4XAKG7L.js → chunk-GPC7WOLN.js} +4 -4
  25. package/dist/{chunk-K4XAKG7L.js.map → chunk-GPC7WOLN.js.map} +1 -1
  26. package/dist/{chunk-NNFF3URD.js → chunk-HGWVTZWK.js} +7 -7
  27. package/dist/{chunk-NNFF3URD.js.map → chunk-HGWVTZWK.js.map} +1 -1
  28. package/dist/{chunk-4N6WB4EZ.js → chunk-I55X7FYN.js} +4 -4
  29. package/dist/{chunk-4N6WB4EZ.js.map → chunk-I55X7FYN.js.map} +1 -1
  30. package/dist/{chunk-FB5QMTJJ.js → chunk-JBEKXEX6.js} +4 -4
  31. package/dist/{chunk-FB5QMTJJ.js.map → chunk-JBEKXEX6.js.map} +1 -1
  32. package/dist/{chunk-4UH5LAF5.cjs → chunk-N6HPK6I3.cjs} +15 -15
  33. package/dist/{chunk-4UH5LAF5.cjs.map → chunk-N6HPK6I3.cjs.map} +1 -1
  34. package/dist/{chunk-6YUHA5UH.cjs → chunk-O4YSWWLB.cjs} +5 -5
  35. package/dist/{chunk-6YUHA5UH.cjs.map → chunk-O4YSWWLB.cjs.map} +1 -1
  36. package/dist/{chunk-33VDGXRH.cjs → chunk-OHQ4PC6P.cjs} +15 -15
  37. package/dist/{chunk-33VDGXRH.cjs.map → chunk-OHQ4PC6P.cjs.map} +1 -1
  38. package/dist/{chunk-GNUITL2N.js → chunk-RC7RN5MY.js} +3 -3
  39. package/dist/{chunk-GNUITL2N.js.map → chunk-RC7RN5MY.js.map} +1 -1
  40. package/dist/{chunk-NCAMNQC3.cjs → chunk-RGX4NX5L.cjs} +5 -5
  41. package/dist/chunk-RGX4NX5L.cjs.map +1 -0
  42. package/dist/{chunk-AQ22JIR7.cjs → chunk-SDR22R4D.cjs} +16 -16
  43. package/dist/{chunk-AQ22JIR7.cjs.map → chunk-SDR22R4D.cjs.map} +1 -1
  44. package/dist/{chunk-7KL2YFFK.cjs → chunk-SGRMJZMJ.cjs} +15 -15
  45. package/dist/{chunk-7KL2YFFK.cjs.map → chunk-SGRMJZMJ.cjs.map} +1 -1
  46. package/dist/{chunk-J4SXS7KN.js → chunk-SJ3MF5G2.js} +4 -4
  47. package/dist/{chunk-J4SXS7KN.js.map → chunk-SJ3MF5G2.js.map} +1 -1
  48. package/dist/{chunk-DT5RMENY.js → chunk-SRQTDHF5.js} +4 -4
  49. package/dist/chunk-SRQTDHF5.js.map +1 -0
  50. package/dist/{chunk-H2NHG7QL.cjs → chunk-VW7YQWDW.cjs} +9 -5
  51. package/dist/chunk-VW7YQWDW.cjs.map +1 -0
  52. package/dist/{chunk-NK4UN2LF.cjs → chunk-XR7RX2PS.cjs} +5 -5
  53. package/dist/{chunk-NK4UN2LF.cjs.map → chunk-XR7RX2PS.cjs.map} +1 -1
  54. package/dist/{chunk-F7PAZAGE.js → chunk-YORDI4E7.js} +8 -8
  55. package/dist/{chunk-F7PAZAGE.js.map → chunk-YORDI4E7.js.map} +1 -1
  56. package/dist/evals/index.cjs +19 -19
  57. package/dist/evals/index.js +2 -2
  58. package/dist/evals/scoreTraces/index.cjs +5 -5
  59. package/dist/evals/scoreTraces/index.js +2 -2
  60. package/dist/index.cjs +2 -2
  61. package/dist/index.js +1 -1
  62. package/dist/integration/index.cjs +2 -2
  63. package/dist/integration/index.js +1 -1
  64. package/dist/llm/index.cjs +9 -9
  65. package/dist/llm/index.js +2 -2
  66. package/dist/llm/model/provider-types.generated.d.ts +1 -1
  67. package/dist/loop/index.cjs +2 -2
  68. package/dist/loop/index.js +1 -1
  69. package/dist/mastra/index.cjs +2 -2
  70. package/dist/mastra/index.js +1 -1
  71. package/dist/memory/index.cjs +11 -11
  72. package/dist/memory/index.js +1 -1
  73. package/dist/processors/index.cjs +37 -37
  74. package/dist/processors/index.js +1 -1
  75. package/dist/provider-registry-AUJKATCF.cjs +40 -0
  76. package/dist/{provider-registry-YJ2P5YY5.cjs.map → provider-registry-AUJKATCF.cjs.map} +1 -1
  77. package/dist/provider-registry-LUBC7RIO.js +3 -0
  78. package/dist/{provider-registry-LXSWMVEC.js.map → provider-registry-LUBC7RIO.js.map} +1 -1
  79. package/dist/provider-registry.json +2 -2
  80. package/dist/relevance/index.cjs +3 -3
  81. package/dist/relevance/index.js +1 -1
  82. package/dist/storage/constants.cjs +14 -14
  83. package/dist/storage/constants.js +1 -1
  84. package/dist/storage/index.cjs +92 -92
  85. package/dist/storage/index.js +2 -2
  86. package/dist/stream/index.cjs +9 -9
  87. package/dist/stream/index.js +1 -1
  88. package/dist/test-utils/llm-mock.cjs +4 -4
  89. package/dist/test-utils/llm-mock.js +1 -1
  90. package/dist/tool-loop-agent/index.cjs +4 -4
  91. package/dist/tool-loop-agent/index.js +1 -1
  92. package/dist/tools/index.cjs +4 -4
  93. package/dist/tools/index.js +1 -1
  94. package/dist/tools/is-vercel-tool.cjs +2 -2
  95. package/dist/tools/is-vercel-tool.js +1 -1
  96. package/dist/utils/zod-utils.d.ts +7 -1
  97. package/dist/utils/zod-utils.d.ts.map +1 -1
  98. package/dist/utils.cjs +27 -27
  99. package/dist/utils.js +2 -2
  100. package/dist/workflows/evented/index.cjs +10 -10
  101. package/dist/workflows/evented/index.js +1 -1
  102. package/dist/workflows/index.cjs +23 -23
  103. package/dist/workflows/index.js +1 -1
  104. package/package.json +4 -4
  105. package/src/llm/model/provider-types.generated.d.ts +1 -1
  106. package/dist/chunk-37YWZMBX.js.map +0 -1
  107. package/dist/chunk-DT5RMENY.js.map +0 -1
  108. package/dist/chunk-H2NHG7QL.cjs.map +0 -1
  109. package/dist/chunk-NCAMNQC3.cjs.map +0 -1
  110. package/dist/provider-registry-LXSWMVEC.js +0 -3
  111. package/dist/provider-registry-YJ2P5YY5.cjs +0 -40
@@ -1,41 +1,41 @@
1
1
  'use strict';
2
2
 
3
- var chunk5DL6Y7PJ_cjs = require('../chunk-5DL6Y7PJ.cjs');
3
+ var chunk6ZKYNY3H_cjs = require('../chunk-6ZKYNY3H.cjs');
4
4
  var chunkEMLEZXTQ_cjs = require('../chunk-EMLEZXTQ.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "AISDKV5OutputStream", {
9
9
  enumerable: true,
10
- get: function () { return chunk5DL6Y7PJ_cjs.AISDKV5OutputStream; }
10
+ get: function () { return chunk6ZKYNY3H_cjs.AISDKV5OutputStream; }
11
11
  });
12
12
  Object.defineProperty(exports, "ChunkFrom", {
13
13
  enumerable: true,
14
- get: function () { return chunk5DL6Y7PJ_cjs.ChunkFrom; }
14
+ get: function () { return chunk6ZKYNY3H_cjs.ChunkFrom; }
15
15
  });
16
16
  Object.defineProperty(exports, "MastraAgentNetworkStream", {
17
17
  enumerable: true,
18
- get: function () { return chunk5DL6Y7PJ_cjs.MastraAgentNetworkStream; }
18
+ get: function () { return chunk6ZKYNY3H_cjs.MastraAgentNetworkStream; }
19
19
  });
20
20
  Object.defineProperty(exports, "MastraModelOutput", {
21
21
  enumerable: true,
22
- get: function () { return chunk5DL6Y7PJ_cjs.MastraModelOutput; }
22
+ get: function () { return chunk6ZKYNY3H_cjs.MastraModelOutput; }
23
23
  });
24
24
  Object.defineProperty(exports, "WorkflowRunOutput", {
25
25
  enumerable: true,
26
- get: function () { return chunk5DL6Y7PJ_cjs.WorkflowRunOutput; }
26
+ get: function () { return chunk6ZKYNY3H_cjs.WorkflowRunOutput; }
27
27
  });
28
28
  Object.defineProperty(exports, "convertFullStreamChunkToMastra", {
29
29
  enumerable: true,
30
- get: function () { return chunk5DL6Y7PJ_cjs.convertFullStreamChunkToMastra; }
30
+ get: function () { return chunk6ZKYNY3H_cjs.convertFullStreamChunkToMastra; }
31
31
  });
32
32
  Object.defineProperty(exports, "convertFullStreamChunkToUIMessageStream", {
33
33
  enumerable: true,
34
- get: function () { return chunk5DL6Y7PJ_cjs.convertFullStreamChunkToUIMessageStream; }
34
+ get: function () { return chunk6ZKYNY3H_cjs.convertFullStreamChunkToUIMessageStream; }
35
35
  });
36
36
  Object.defineProperty(exports, "convertMastraChunkToAISDKv5", {
37
37
  enumerable: true,
38
- get: function () { return chunk5DL6Y7PJ_cjs.convertMastraChunkToAISDKv5; }
38
+ get: function () { return chunk6ZKYNY3H_cjs.convertMastraChunkToAISDKv5; }
39
39
  });
40
40
  Object.defineProperty(exports, "DefaultGeneratedFile", {
41
41
  enumerable: true,
@@ -1,4 +1,4 @@
1
- export { AISDKV5OutputStream, ChunkFrom, MastraAgentNetworkStream, MastraModelOutput, WorkflowRunOutput, convertFullStreamChunkToMastra, convertFullStreamChunkToUIMessageStream, convertMastraChunkToAISDKv5 } from '../chunk-F7PAZAGE.js';
1
+ export { AISDKV5OutputStream, ChunkFrom, MastraAgentNetworkStream, MastraModelOutput, WorkflowRunOutput, convertFullStreamChunkToMastra, convertFullStreamChunkToUIMessageStream, convertMastraChunkToAISDKv5 } from '../chunk-YORDI4E7.js';
2
2
  export { DefaultGeneratedFile, DefaultGeneratedFileWithType } from '../chunk-QXL3F3T2.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk7KL2YFFK_cjs = require('../chunk-7KL2YFFK.cjs');
3
+ var chunkSGRMJZMJ_cjs = require('../chunk-SGRMJZMJ.cjs');
4
4
  var chunkNIOEY3N3_cjs = require('../chunk-NIOEY3N3.cjs');
5
5
  var async_hooks = require('async_hooks');
6
6
 
@@ -14364,11 +14364,11 @@ var MastraLanguageModelV2Mock = class {
14364
14364
  this.supportedUrls = this.#model.supportedUrls;
14365
14365
  }
14366
14366
  doGenerate(options) {
14367
- const aiSDKModel = new chunk7KL2YFFK_cjs.AISDKV5LanguageModel(this.#model);
14367
+ const aiSDKModel = new chunkSGRMJZMJ_cjs.AISDKV5LanguageModel(this.#model);
14368
14368
  return aiSDKModel.doGenerate(options);
14369
14369
  }
14370
14370
  doStream(options) {
14371
- const aiSDKModel = new chunk7KL2YFFK_cjs.AISDKV5LanguageModel(this.#model);
14371
+ const aiSDKModel = new chunkSGRMJZMJ_cjs.AISDKV5LanguageModel(this.#model);
14372
14372
  return aiSDKModel.doStream(options);
14373
14373
  }
14374
14374
  get doGenerateCalls() {
@@ -14471,7 +14471,7 @@ function createMockModel({
14471
14471
  });
14472
14472
  return mockModel;
14473
14473
  }
14474
- var MockProvider = class extends chunk7KL2YFFK_cjs.MastraLLMV1 {
14474
+ var MockProvider = class extends chunkSGRMJZMJ_cjs.MastraLLMV1 {
14475
14475
  constructor({
14476
14476
  spyGenerate,
14477
14477
  spyStream,
@@ -1,4 +1,4 @@
1
- import { AISDKV5LanguageModel, MastraLLMV1 } from '../chunk-KKYAYRIO.js';
1
+ import { AISDKV5LanguageModel, MastraLLMV1 } from '../chunk-ABMWK6JU.js';
2
2
  import { simulateReadableStream, __require } from '../chunk-5PTZG26U.js';
3
3
  export { simulateReadableStream } from '../chunk-5PTZG26U.js';
4
4
  import { AsyncLocalStorage } from 'async_hooks';
@@ -1,20 +1,20 @@
1
1
  'use strict';
2
2
 
3
- var chunk3ZRMVPQA_cjs = require('../chunk-3ZRMVPQA.cjs');
3
+ var chunk3AISNGWY_cjs = require('../chunk-3AISNGWY.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "getSettings", {
8
8
  enumerable: true,
9
- get: function () { return chunk3ZRMVPQA_cjs.getSettings; }
9
+ get: function () { return chunk3AISNGWY_cjs.getSettings; }
10
10
  });
11
11
  Object.defineProperty(exports, "isToolLoopAgentLike", {
12
12
  enumerable: true,
13
- get: function () { return chunk3ZRMVPQA_cjs.isToolLoopAgentLike; }
13
+ get: function () { return chunk3AISNGWY_cjs.isToolLoopAgentLike; }
14
14
  });
15
15
  Object.defineProperty(exports, "toolLoopAgentToMastraAgent", {
16
16
  enumerable: true,
17
- get: function () { return chunk3ZRMVPQA_cjs.toolLoopAgentToMastraAgent; }
17
+ get: function () { return chunk3AISNGWY_cjs.toolLoopAgentToMastraAgent; }
18
18
  });
19
19
  //# sourceMappingURL=index.cjs.map
20
20
  //# sourceMappingURL=index.cjs.map
@@ -1,3 +1,3 @@
1
- export { getSettings, isToolLoopAgentLike, toolLoopAgentToMastraAgent } from '../chunk-J4SXS7KN.js';
1
+ export { getSettings, isToolLoopAgentLike, toolLoopAgentToMastraAgent } from '../chunk-SJ3MF5G2.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkKJBMTK5B_cjs = require('../chunk-KJBMTK5B.cjs');
4
- var chunk6YUHA5UH_cjs = require('../chunk-6YUHA5UH.cjs');
4
+ var chunkO4YSWWLB_cjs = require('../chunk-O4YSWWLB.cjs');
5
5
 
6
6
 
7
7
 
@@ -11,15 +11,15 @@ Object.defineProperty(exports, "ToolStream", {
11
11
  });
12
12
  Object.defineProperty(exports, "Tool", {
13
13
  enumerable: true,
14
- get: function () { return chunk6YUHA5UH_cjs.Tool; }
14
+ get: function () { return chunkO4YSWWLB_cjs.Tool; }
15
15
  });
16
16
  Object.defineProperty(exports, "createTool", {
17
17
  enumerable: true,
18
- get: function () { return chunk6YUHA5UH_cjs.createTool; }
18
+ get: function () { return chunkO4YSWWLB_cjs.createTool; }
19
19
  });
20
20
  Object.defineProperty(exports, "isVercelTool", {
21
21
  enumerable: true,
22
- get: function () { return chunk6YUHA5UH_cjs.isVercelTool; }
22
+ get: function () { return chunkO4YSWWLB_cjs.isVercelTool; }
23
23
  });
24
24
  //# sourceMappingURL=index.cjs.map
25
25
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
1
  export { ToolStream } from '../chunk-DD2VNRQM.js';
2
- export { Tool, createTool, isVercelTool } from '../chunk-QD776HMB.js';
2
+ export { Tool, createTool, isVercelTool } from '../chunk-5YYAQUEF.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunk6YUHA5UH_cjs = require('../chunk-6YUHA5UH.cjs');
3
+ var chunkO4YSWWLB_cjs = require('../chunk-O4YSWWLB.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "isVercelTool", {
8
8
  enumerable: true,
9
- get: function () { return chunk6YUHA5UH_cjs.isVercelTool; }
9
+ get: function () { return chunkO4YSWWLB_cjs.isVercelTool; }
10
10
  });
11
11
  //# sourceMappingURL=is-vercel-tool.cjs.map
12
12
  //# sourceMappingURL=is-vercel-tool.cjs.map
@@ -1,3 +1,3 @@
1
- export { isVercelTool } from '../chunk-QD776HMB.js';
1
+ export { isVercelTool } from '../chunk-5YYAQUEF.js';
2
2
  //# sourceMappingURL=is-vercel-tool.js.map
3
3
  //# sourceMappingURL=is-vercel-tool.js.map
@@ -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;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,GAAG,MAAM,GAAG,SAAS,CAQvE;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"}
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 chunkAQ22JIR7_cjs = require('./chunk-AQ22JIR7.cjs');
4
- var chunkH2NHG7QL_cjs = require('./chunk-H2NHG7QL.cjs');
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 chunkAQ22JIR7_cjs.checkEvalStorageFields; }
10
+ get: function () { return chunkSDR22R4D_cjs.checkEvalStorageFields; }
11
11
  });
12
12
  Object.defineProperty(exports, "createMastraProxy", {
13
13
  enumerable: true,
14
- get: function () { return chunkAQ22JIR7_cjs.createMastraProxy; }
14
+ get: function () { return chunkSDR22R4D_cjs.createMastraProxy; }
15
15
  });
16
16
  Object.defineProperty(exports, "deepMerge", {
17
17
  enumerable: true,
18
- get: function () { return chunkAQ22JIR7_cjs.deepMerge; }
18
+ get: function () { return chunkSDR22R4D_cjs.deepMerge; }
19
19
  });
20
20
  Object.defineProperty(exports, "delay", {
21
21
  enumerable: true,
22
- get: function () { return chunkAQ22JIR7_cjs.delay; }
22
+ get: function () { return chunkSDR22R4D_cjs.delay; }
23
23
  });
24
24
  Object.defineProperty(exports, "ensureToolProperties", {
25
25
  enumerable: true,
26
- get: function () { return chunkAQ22JIR7_cjs.ensureToolProperties; }
26
+ get: function () { return chunkSDR22R4D_cjs.ensureToolProperties; }
27
27
  });
28
28
  Object.defineProperty(exports, "fetchWithRetry", {
29
29
  enumerable: true,
30
- get: function () { return chunkAQ22JIR7_cjs.fetchWithRetry; }
30
+ get: function () { return chunkSDR22R4D_cjs.fetchWithRetry; }
31
31
  });
32
32
  Object.defineProperty(exports, "generateEmptyFromSchema", {
33
33
  enumerable: true,
34
- get: function () { return chunkAQ22JIR7_cjs.generateEmptyFromSchema; }
34
+ get: function () { return chunkSDR22R4D_cjs.generateEmptyFromSchema; }
35
35
  });
36
36
  Object.defineProperty(exports, "getNestedValue", {
37
37
  enumerable: true,
38
- get: function () { return chunkAQ22JIR7_cjs.getNestedValue; }
38
+ get: function () { return chunkSDR22R4D_cjs.getNestedValue; }
39
39
  });
40
40
  Object.defineProperty(exports, "isCoreMessage", {
41
41
  enumerable: true,
42
- get: function () { return chunkAQ22JIR7_cjs.isCoreMessage; }
42
+ get: function () { return chunkSDR22R4D_cjs.isCoreMessage; }
43
43
  });
44
44
  Object.defineProperty(exports, "isUiMessage", {
45
45
  enumerable: true,
46
- get: function () { return chunkAQ22JIR7_cjs.isUiMessage; }
46
+ get: function () { return chunkSDR22R4D_cjs.isUiMessage; }
47
47
  });
48
48
  Object.defineProperty(exports, "isZodType", {
49
49
  enumerable: true,
50
- get: function () { return chunkAQ22JIR7_cjs.isZodType; }
50
+ get: function () { return chunkSDR22R4D_cjs.isZodType; }
51
51
  });
52
52
  Object.defineProperty(exports, "makeCoreTool", {
53
53
  enumerable: true,
54
- get: function () { return chunkAQ22JIR7_cjs.makeCoreTool; }
54
+ get: function () { return chunkSDR22R4D_cjs.makeCoreTool; }
55
55
  });
56
56
  Object.defineProperty(exports, "makeCoreToolV5", {
57
57
  enumerable: true,
58
- get: function () { return chunkAQ22JIR7_cjs.makeCoreToolV5; }
58
+ get: function () { return chunkSDR22R4D_cjs.makeCoreToolV5; }
59
59
  });
60
60
  Object.defineProperty(exports, "maskStreamTags", {
61
61
  enumerable: true,
62
- get: function () { return chunkAQ22JIR7_cjs.maskStreamTags; }
62
+ get: function () { return chunkSDR22R4D_cjs.maskStreamTags; }
63
63
  });
64
64
  Object.defineProperty(exports, "omitKeys", {
65
65
  enumerable: true,
66
- get: function () { return chunkAQ22JIR7_cjs.omitKeys; }
66
+ get: function () { return chunkSDR22R4D_cjs.omitKeys; }
67
67
  });
68
68
  Object.defineProperty(exports, "parseFieldKey", {
69
69
  enumerable: true,
70
- get: function () { return chunkAQ22JIR7_cjs.parseFieldKey; }
70
+ get: function () { return chunkSDR22R4D_cjs.parseFieldKey; }
71
71
  });
72
72
  Object.defineProperty(exports, "parseSqlIdentifier", {
73
73
  enumerable: true,
74
- get: function () { return chunkAQ22JIR7_cjs.parseSqlIdentifier; }
74
+ get: function () { return chunkSDR22R4D_cjs.parseSqlIdentifier; }
75
75
  });
76
76
  Object.defineProperty(exports, "removeUndefinedValues", {
77
77
  enumerable: true,
78
- get: function () { return chunkAQ22JIR7_cjs.removeUndefinedValues; }
78
+ get: function () { return chunkSDR22R4D_cjs.removeUndefinedValues; }
79
79
  });
80
80
  Object.defineProperty(exports, "resolveSerializedZodOutput", {
81
81
  enumerable: true,
82
- get: function () { return chunkAQ22JIR7_cjs.resolveSerializedZodOutput; }
82
+ get: function () { return chunkSDR22R4D_cjs.resolveSerializedZodOutput; }
83
83
  });
84
84
  Object.defineProperty(exports, "selectFields", {
85
85
  enumerable: true,
86
- get: function () { return chunkAQ22JIR7_cjs.selectFields; }
86
+ get: function () { return chunkSDR22R4D_cjs.selectFields; }
87
87
  });
88
88
  Object.defineProperty(exports, "setNestedValue", {
89
89
  enumerable: true,
90
- get: function () { return chunkAQ22JIR7_cjs.setNestedValue; }
90
+ get: function () { return chunkSDR22R4D_cjs.setNestedValue; }
91
91
  });
92
92
  Object.defineProperty(exports, "getZodDef", {
93
93
  enumerable: true,
94
- get: function () { return chunkH2NHG7QL_cjs.getZodDef; }
94
+ get: function () { return chunkVW7YQWDW_cjs.getZodDef; }
95
95
  });
96
96
  Object.defineProperty(exports, "getZodTypeName", {
97
97
  enumerable: true,
98
- get: function () { return chunkH2NHG7QL_cjs.getZodTypeName; }
98
+ get: function () { return chunkVW7YQWDW_cjs.getZodTypeName; }
99
99
  });
100
100
  Object.defineProperty(exports, "isZodArray", {
101
101
  enumerable: true,
102
- get: function () { return chunkH2NHG7QL_cjs.isZodArray; }
102
+ get: function () { return chunkVW7YQWDW_cjs.isZodArray; }
103
103
  });
104
104
  Object.defineProperty(exports, "isZodObject", {
105
105
  enumerable: true,
106
- get: function () { return chunkH2NHG7QL_cjs.isZodObject; }
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-FB5QMTJJ.js';
2
- export { getZodDef, getZodTypeName, isZodArray, isZodObject } from './chunk-37YWZMBX.js';
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 chunkA6JNGJIU_cjs = require('../../chunk-A6JNGJIU.cjs');
3
+ var chunk4QYTF4ZB_cjs = require('../../chunk-4QYTF4ZB.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "EventedExecutionEngine", {
8
8
  enumerable: true,
9
- get: function () { return chunkA6JNGJIU_cjs.EventedExecutionEngine; }
9
+ get: function () { return chunk4QYTF4ZB_cjs.EventedExecutionEngine; }
10
10
  });
11
11
  Object.defineProperty(exports, "EventedRun", {
12
12
  enumerable: true,
13
- get: function () { return chunkA6JNGJIU_cjs.EventedRun; }
13
+ get: function () { return chunk4QYTF4ZB_cjs.EventedRun; }
14
14
  });
15
15
  Object.defineProperty(exports, "EventedWorkflow", {
16
16
  enumerable: true,
17
- get: function () { return chunkA6JNGJIU_cjs.EventedWorkflow; }
17
+ get: function () { return chunk4QYTF4ZB_cjs.EventedWorkflow; }
18
18
  });
19
19
  Object.defineProperty(exports, "StepExecutor", {
20
20
  enumerable: true,
21
- get: function () { return chunkA6JNGJIU_cjs.StepExecutor; }
21
+ get: function () { return chunk4QYTF4ZB_cjs.StepExecutor; }
22
22
  });
23
23
  Object.defineProperty(exports, "WorkflowEventProcessor", {
24
24
  enumerable: true,
25
- get: function () { return chunkA6JNGJIU_cjs.WorkflowEventProcessor; }
25
+ get: function () { return chunk4QYTF4ZB_cjs.WorkflowEventProcessor; }
26
26
  });
27
27
  Object.defineProperty(exports, "cloneStep", {
28
28
  enumerable: true,
29
- get: function () { return chunkA6JNGJIU_cjs.cloneStep; }
29
+ get: function () { return chunk4QYTF4ZB_cjs.cloneStep; }
30
30
  });
31
31
  Object.defineProperty(exports, "cloneWorkflow", {
32
32
  enumerable: true,
33
- get: function () { return chunkA6JNGJIU_cjs.cloneWorkflow; }
33
+ get: function () { return chunk4QYTF4ZB_cjs.cloneWorkflow; }
34
34
  });
35
35
  Object.defineProperty(exports, "createStep", {
36
36
  enumerable: true,
37
- get: function () { return chunkA6JNGJIU_cjs.createStep; }
37
+ get: function () { return chunk4QYTF4ZB_cjs.createStep; }
38
38
  });
39
39
  Object.defineProperty(exports, "createWorkflow", {
40
40
  enumerable: true,
41
- get: function () { return chunkA6JNGJIU_cjs.createWorkflow; }
41
+ get: function () { return chunk4QYTF4ZB_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-UTMBASR5.js';
1
+ export { EventedExecutionEngine, EventedRun, EventedWorkflow, StepExecutor, WorkflowEventProcessor, cloneStep, cloneWorkflow, createStep, createWorkflow } from '../../chunk-7CDELQD6.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
@@ -1,96 +1,96 @@
1
1
  'use strict';
2
2
 
3
- var chunk5DL6Y7PJ_cjs = require('../chunk-5DL6Y7PJ.cjs');
3
+ var chunk6ZKYNY3H_cjs = require('../chunk-6ZKYNY3H.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "DefaultExecutionEngine", {
8
8
  enumerable: true,
9
- get: function () { return chunk5DL6Y7PJ_cjs.DefaultExecutionEngine; }
9
+ get: function () { return chunk6ZKYNY3H_cjs.DefaultExecutionEngine; }
10
10
  });
11
11
  Object.defineProperty(exports, "ExecutionEngine", {
12
12
  enumerable: true,
13
- get: function () { return chunk5DL6Y7PJ_cjs.ExecutionEngine; }
13
+ get: function () { return chunk6ZKYNY3H_cjs.ExecutionEngine; }
14
14
  });
15
15
  Object.defineProperty(exports, "Run", {
16
16
  enumerable: true,
17
- get: function () { return chunk5DL6Y7PJ_cjs.Run; }
17
+ get: function () { return chunk6ZKYNY3H_cjs.Run; }
18
18
  });
19
19
  Object.defineProperty(exports, "Workflow", {
20
20
  enumerable: true,
21
- get: function () { return chunk5DL6Y7PJ_cjs.Workflow; }
21
+ get: function () { return chunk6ZKYNY3H_cjs.Workflow; }
22
22
  });
23
23
  Object.defineProperty(exports, "cloneStep", {
24
24
  enumerable: true,
25
- get: function () { return chunk5DL6Y7PJ_cjs.cloneStep; }
25
+ get: function () { return chunk6ZKYNY3H_cjs.cloneStep; }
26
26
  });
27
27
  Object.defineProperty(exports, "cloneWorkflow", {
28
28
  enumerable: true,
29
- get: function () { return chunk5DL6Y7PJ_cjs.cloneWorkflow; }
29
+ get: function () { return chunk6ZKYNY3H_cjs.cloneWorkflow; }
30
30
  });
31
31
  Object.defineProperty(exports, "createDeprecationProxy", {
32
32
  enumerable: true,
33
- get: function () { return chunk5DL6Y7PJ_cjs.createDeprecationProxy; }
33
+ get: function () { return chunk6ZKYNY3H_cjs.createDeprecationProxy; }
34
34
  });
35
35
  Object.defineProperty(exports, "createStep", {
36
36
  enumerable: true,
37
- get: function () { return chunk5DL6Y7PJ_cjs.createStep; }
37
+ get: function () { return chunk6ZKYNY3H_cjs.createStep; }
38
38
  });
39
39
  Object.defineProperty(exports, "createTimeTravelExecutionParams", {
40
40
  enumerable: true,
41
- get: function () { return chunk5DL6Y7PJ_cjs.createTimeTravelExecutionParams; }
41
+ get: function () { return chunk6ZKYNY3H_cjs.createTimeTravelExecutionParams; }
42
42
  });
43
43
  Object.defineProperty(exports, "createWorkflow", {
44
44
  enumerable: true,
45
- get: function () { return chunk5DL6Y7PJ_cjs.createWorkflow; }
45
+ get: function () { return chunk6ZKYNY3H_cjs.createWorkflow; }
46
46
  });
47
47
  Object.defineProperty(exports, "getResumeLabelsByStepId", {
48
48
  enumerable: true,
49
- get: function () { return chunk5DL6Y7PJ_cjs.getResumeLabelsByStepId; }
49
+ get: function () { return chunk6ZKYNY3H_cjs.getResumeLabelsByStepId; }
50
50
  });
51
51
  Object.defineProperty(exports, "getStepIds", {
52
52
  enumerable: true,
53
- get: function () { return chunk5DL6Y7PJ_cjs.getStepIds; }
53
+ get: function () { return chunk6ZKYNY3H_cjs.getStepIds; }
54
54
  });
55
55
  Object.defineProperty(exports, "getStepResult", {
56
56
  enumerable: true,
57
- get: function () { return chunk5DL6Y7PJ_cjs.getStepResult; }
57
+ get: function () { return chunk6ZKYNY3H_cjs.getStepResult; }
58
58
  });
59
59
  Object.defineProperty(exports, "getZodErrors", {
60
60
  enumerable: true,
61
- get: function () { return chunk5DL6Y7PJ_cjs.getZodErrors; }
61
+ get: function () { return chunk6ZKYNY3H_cjs.getZodErrors; }
62
62
  });
63
63
  Object.defineProperty(exports, "hydrateSerializedStepErrors", {
64
64
  enumerable: true,
65
- get: function () { return chunk5DL6Y7PJ_cjs.hydrateSerializedStepErrors; }
65
+ get: function () { return chunk6ZKYNY3H_cjs.hydrateSerializedStepErrors; }
66
66
  });
67
67
  Object.defineProperty(exports, "isProcessor", {
68
68
  enumerable: true,
69
- get: function () { return chunk5DL6Y7PJ_cjs.isProcessor; }
69
+ get: function () { return chunk6ZKYNY3H_cjs.isProcessor; }
70
70
  });
71
71
  Object.defineProperty(exports, "mapVariable", {
72
72
  enumerable: true,
73
- get: function () { return chunk5DL6Y7PJ_cjs.mapVariable; }
73
+ get: function () { return chunk6ZKYNY3H_cjs.mapVariable; }
74
74
  });
75
75
  Object.defineProperty(exports, "runCountDeprecationMessage", {
76
76
  enumerable: true,
77
- get: function () { return chunk5DL6Y7PJ_cjs.runCountDeprecationMessage; }
77
+ get: function () { return chunk6ZKYNY3H_cjs.runCountDeprecationMessage; }
78
78
  });
79
79
  Object.defineProperty(exports, "validateStepInput", {
80
80
  enumerable: true,
81
- get: function () { return chunk5DL6Y7PJ_cjs.validateStepInput; }
81
+ get: function () { return chunk6ZKYNY3H_cjs.validateStepInput; }
82
82
  });
83
83
  Object.defineProperty(exports, "validateStepResumeData", {
84
84
  enumerable: true,
85
- get: function () { return chunk5DL6Y7PJ_cjs.validateStepResumeData; }
85
+ get: function () { return chunk6ZKYNY3H_cjs.validateStepResumeData; }
86
86
  });
87
87
  Object.defineProperty(exports, "validateStepStateData", {
88
88
  enumerable: true,
89
- get: function () { return chunk5DL6Y7PJ_cjs.validateStepStateData; }
89
+ get: function () { return chunk6ZKYNY3H_cjs.validateStepStateData; }
90
90
  });
91
91
  Object.defineProperty(exports, "validateStepSuspendData", {
92
92
  enumerable: true,
93
- get: function () { return chunk5DL6Y7PJ_cjs.validateStepSuspendData; }
93
+ get: function () { return chunk6ZKYNY3H_cjs.validateStepSuspendData; }
94
94
  });
95
95
  //# sourceMappingURL=index.cjs.map
96
96
  //# sourceMappingURL=index.cjs.map
@@ -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-F7PAZAGE.js';
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-YORDI4E7.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.16",
3
+ "version": "1.0.0-beta.17",
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.3"
208
+ "@mastra/schema-compat": "1.0.0-beta.4"
209
209
  },
210
210
  "peerDependencies": {
211
211
  "zod": "^3.25.0 || ^4.0.0"
@@ -246,8 +246,8 @@
246
246
  "@internal/ai-sdk-v5": "0.0.0",
247
247
  "@internal/ai-v6": "0.0.0",
248
248
  "@internal/external-types": "0.0.3",
249
- "@internal/lint": "0.0.53",
250
- "@internal/types-builder": "0.0.28"
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',
@@ -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"]}