@mastra/server 0.14.2-alpha.0 → 0.14.2-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-22OZ4DMU.js → chunk-D32MNBNS.js} +11 -5
- package/dist/chunk-D32MNBNS.js.map +1 -0
- package/dist/chunk-GU4EWMZB.cjs +769 -0
- package/dist/chunk-GU4EWMZB.cjs.map +1 -0
- package/dist/{chunk-N54KEEEJ.js → chunk-ID37OH5Z.js} +14 -15
- package/dist/chunk-ID37OH5Z.js.map +1 -0
- package/dist/{chunk-WPGDPPF2.cjs → chunk-JPY7GWFC.cjs} +13 -7
- package/dist/chunk-JPY7GWFC.cjs.map +1 -0
- package/dist/{chunk-X7NUY6QT.cjs → chunk-KNGXRN26.cjs} +10 -9
- package/dist/chunk-KNGXRN26.cjs.map +1 -0
- package/dist/chunk-L265APUD.cjs +69 -0
- package/dist/chunk-L265APUD.cjs.map +1 -0
- package/dist/chunk-LF2ZLOFP.js +767 -0
- package/dist/chunk-LF2ZLOFP.js.map +1 -0
- package/dist/{chunk-DT2MVRFD.js → chunk-LUPY3MQY.js} +3 -3
- package/dist/chunk-LUPY3MQY.js.map +1 -0
- package/dist/{chunk-IPYICGKH.cjs → chunk-PXBRCFVT.cjs} +8 -7
- package/dist/chunk-PXBRCFVT.cjs.map +1 -0
- package/dist/chunk-R7NOGUZG.js +65 -0
- package/dist/chunk-R7NOGUZG.js.map +1 -0
- package/dist/{chunk-SFBU4MIU.js → chunk-TTHEEIZ3.js} +10 -9
- package/dist/chunk-TTHEEIZ3.js.map +1 -0
- package/dist/{chunk-UUO7UO6C.cjs → chunk-UVKXRPMV.cjs} +4 -4
- package/dist/chunk-UVKXRPMV.cjs.map +1 -0
- package/dist/{chunk-BFH4W5ZG.cjs → chunk-V5EWBGBF.cjs} +14 -15
- package/dist/chunk-V5EWBGBF.cjs.map +1 -0
- package/dist/{chunk-ICCXVZ6L.js → chunk-VBORXHGM.js} +8 -7
- package/dist/chunk-VBORXHGM.js.map +1 -0
- package/dist/server/handlers/agents.cjs +12 -12
- package/dist/server/handlers/agents.d.ts.map +1 -1
- package/dist/server/handlers/agents.js +1 -1
- package/dist/server/handlers/legacyWorkflows.cjs +11 -11
- package/dist/server/handlers/legacyWorkflows.d.ts.map +1 -1
- package/dist/server/handlers/legacyWorkflows.js +1 -1
- package/dist/server/handlers/memory.cjs +16 -16
- package/dist/server/handlers/memory.d.ts +1 -2
- package/dist/server/handlers/memory.d.ts.map +1 -1
- package/dist/server/handlers/memory.js +1 -1
- package/dist/server/handlers/observability.cjs +16 -0
- package/dist/server/handlers/observability.cjs.map +1 -0
- package/dist/server/handlers/observability.d.ts +23 -0
- package/dist/server/handlers/observability.d.ts.map +1 -0
- package/dist/server/handlers/observability.js +3 -0
- package/dist/server/handlers/observability.js.map +1 -0
- package/dist/server/handlers/tools.cjs +5 -5
- package/dist/server/handlers/tools.js +1 -1
- package/dist/server/handlers/vNextNetwork.cjs +6 -6
- package/dist/server/handlers/vNextNetwork.cjs.map +1 -1
- package/dist/server/handlers/vNextNetwork.d.ts +5 -5
- package/dist/server/handlers/vNextNetwork.d.ts.map +1 -1
- package/dist/server/handlers/vNextNetwork.js +6 -6
- package/dist/server/handlers/vNextNetwork.js.map +1 -1
- package/dist/server/handlers/workflows.cjs +16 -16
- package/dist/server/handlers/workflows.js +1 -1
- package/dist/server/handlers.cjs +20 -15
- package/dist/server/handlers.d.ts +1 -0
- package/dist/server/handlers.d.ts.map +1 -1
- package/dist/server/handlers.js +7 -6
- package/dist/server/utils.d.ts.map +1 -1
- package/package.json +6 -7
- package/dist/chunk-22OZ4DMU.js.map +0 -1
- package/dist/chunk-BFH4W5ZG.cjs.map +0 -1
- package/dist/chunk-DT2MVRFD.js.map +0 -1
- package/dist/chunk-ICCXVZ6L.js.map +0 -1
- package/dist/chunk-IPYICGKH.cjs.map +0 -1
- package/dist/chunk-LCODOYFR.cjs +0 -2044
- package/dist/chunk-LCODOYFR.cjs.map +0 -1
- package/dist/chunk-N54KEEEJ.js.map +0 -1
- package/dist/chunk-RGY4HZFK.js +0 -2041
- package/dist/chunk-RGY4HZFK.js.map +0 -1
- package/dist/chunk-SFBU4MIU.js.map +0 -1
- package/dist/chunk-UUO7UO6C.cjs.map +0 -1
- package/dist/chunk-WPGDPPF2.cjs.map +0 -1
- package/dist/chunk-X7NUY6QT.cjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { stringify
|
|
1
|
+
import { stringify } from './chunk-LF2ZLOFP.js';
|
|
2
2
|
import { validateBody } from './chunk-OW4FX5TS.js';
|
|
3
3
|
import { handleError } from './chunk-CY4TP3FK.js';
|
|
4
4
|
import { HTTPException } from './chunk-MMROOK5J.js';
|
|
@@ -6,6 +6,7 @@ import { __commonJS, __export, __toESM } from './chunk-G3PMV62Z.js';
|
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
import z62, { z as z$1 } from 'zod/v4';
|
|
8
8
|
import { RuntimeContext } from '@mastra/core/runtime-context';
|
|
9
|
+
import { zodToJsonSchema } from '@mastra/core/utils/zod-to-json';
|
|
9
10
|
|
|
10
11
|
// ../../node_modules/.pnpm/secure-json-parse@2.7.0/node_modules/secure-json-parse/index.js
|
|
11
12
|
var require_secure_json_parse = __commonJS({
|
|
@@ -2543,6 +2544,11 @@ var EventSourceParserStream = class extends TransformStream {
|
|
|
2543
2544
|
});
|
|
2544
2545
|
}
|
|
2545
2546
|
};
|
|
2547
|
+
|
|
2548
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
|
|
2549
|
+
new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");
|
|
2550
|
+
|
|
2551
|
+
// ../../node_modules/.pnpm/@ai-sdk+provider-utils@3.0.3_zod@3.25.76/node_modules/@ai-sdk/provider-utils/dist/index.mjs
|
|
2546
2552
|
function combineHeaders2(...headers) {
|
|
2547
2553
|
return headers.reduce(
|
|
2548
2554
|
(combinedHeaders, currentHeaders) => ({
|
|
@@ -17193,7 +17199,7 @@ async function getSerializedAgentTools(tools) {
|
|
|
17193
17199
|
if (_tool.inputSchema?.jsonSchema) {
|
|
17194
17200
|
inputSchemaForReturn = stringify(_tool.inputSchema.jsonSchema);
|
|
17195
17201
|
} else {
|
|
17196
|
-
inputSchemaForReturn = stringify(
|
|
17202
|
+
inputSchemaForReturn = stringify(zodToJsonSchema(_tool.inputSchema));
|
|
17197
17203
|
}
|
|
17198
17204
|
}
|
|
17199
17205
|
let outputSchemaForReturn = void 0;
|
|
@@ -17201,7 +17207,7 @@ async function getSerializedAgentTools(tools) {
|
|
|
17201
17207
|
if (_tool.outputSchema?.jsonSchema) {
|
|
17202
17208
|
outputSchemaForReturn = stringify(_tool.outputSchema.jsonSchema);
|
|
17203
17209
|
} else {
|
|
17204
|
-
outputSchemaForReturn = stringify(
|
|
17210
|
+
outputSchemaForReturn = stringify(zodToJsonSchema(_tool.outputSchema));
|
|
17205
17211
|
}
|
|
17206
17212
|
}
|
|
17207
17213
|
acc[key] = {
|
|
@@ -17587,5 +17593,5 @@ async function updateAgentModelHandler({
|
|
|
17587
17593
|
}
|
|
17588
17594
|
|
|
17589
17595
|
export { agents_exports, generateHandler, generateVNextHandler, getAgentByIdHandler, getAgentsHandler, getEvalsByAgentIdHandler, getLiveEvalsByAgentIdHandler, getSerializedAgentTools, streamGenerateHandler, streamVNextGenerateHandler, streamVNextUIMessageHandler, updateAgentModelHandler };
|
|
17590
|
-
//# sourceMappingURL=chunk-
|
|
17591
|
-
//# sourceMappingURL=chunk-
|
|
17596
|
+
//# sourceMappingURL=chunk-D32MNBNS.js.map
|
|
17597
|
+
//# sourceMappingURL=chunk-D32MNBNS.js.map
|