@mastra/server 0.11.1 → 0.12.0-alpha.0
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/_tsup-dts-rollup.d.cts +1 -1
- package/dist/_tsup-dts-rollup.d.ts +1 -1
- package/dist/{chunk-MEGCYGBU.js → chunk-36BLNJHS.js} +37 -37
- package/dist/{chunk-G7AFLCTK.cjs → chunk-6KP2OBYA.cjs} +17 -17
- package/dist/{chunk-LI436ITD.cjs → chunk-HISYIDYH.cjs} +37 -37
- package/dist/{chunk-FRVBFMO2.cjs → chunk-HRSAZUIK.cjs} +5 -5
- package/dist/{chunk-ENPKI53P.cjs → chunk-I5JKUCGE.cjs} +5 -5
- package/dist/{chunk-2SPBWAKY.js → chunk-T7HAZC2E.js} +1 -1
- package/dist/{chunk-JMLYCXMK.cjs → chunk-UCV4247U.cjs} +7 -7
- package/dist/{chunk-VRJ2TE5J.js → chunk-VTTN2FW3.js} +1 -1
- package/dist/{chunk-LRCAAFUA.js → chunk-WBRFIHSF.js} +1 -1
- package/dist/{chunk-5PQQ42EZ.js → chunk-ZYAFP2AV.js} +1 -1
- package/dist/server/handlers/agents.cjs +8 -8
- package/dist/server/handlers/agents.js +1 -1
- package/dist/server/handlers/legacyWorkflows.cjs +11 -11
- package/dist/server/handlers/legacyWorkflows.js +1 -1
- package/dist/server/handlers/tools.cjs +5 -5
- package/dist/server/handlers/tools.js +1 -1
- package/dist/server/handlers/vNextNetwork.cjs +5 -5
- package/dist/server/handlers/vNextNetwork.js +1 -1
- package/dist/server/handlers/workflows.cjs +16 -16
- package/dist/server/handlers/workflows.js +1 -1
- package/dist/server/handlers.cjs +8 -8
- package/dist/server/handlers.js +4 -4
- package/package.json +4 -4
|
@@ -2,7 +2,7 @@ import type { Agent } from '@mastra/core/agent';
|
|
|
2
2
|
import type { AgentCard } from '@mastra/core/a2a';
|
|
3
3
|
import type { AgentNetwork } from '@mastra/core/network';
|
|
4
4
|
import type { Artifact } from '@mastra/core/a2a';
|
|
5
|
-
import
|
|
5
|
+
import { BaseLogMessage } from '@mastra/core/logger';
|
|
6
6
|
import { CoreMessage } from 'ai';
|
|
7
7
|
import type { CoreMessage as CoreMessage_2 } from '@mastra/core/llm';
|
|
8
8
|
import { DefaultEngineType } from '@mastra/core';
|
|
@@ -2,7 +2,7 @@ import type { Agent } from '@mastra/core/agent';
|
|
|
2
2
|
import type { AgentCard } from '@mastra/core/a2a';
|
|
3
3
|
import type { AgentNetwork } from '@mastra/core/network';
|
|
4
4
|
import type { Artifact } from '@mastra/core/a2a';
|
|
5
|
-
import
|
|
5
|
+
import { BaseLogMessage } from '@mastra/core/logger';
|
|
6
6
|
import { CoreMessage } from 'ai';
|
|
7
7
|
import type { CoreMessage as CoreMessage_2 } from '@mastra/core/llm';
|
|
8
8
|
import { DefaultEngineType } from '@mastra/core';
|
|
@@ -764,7 +764,7 @@ SuperJSON.registerCustom = SuperJSON.defaultInstance.registerCustom.bind(SuperJS
|
|
|
764
764
|
SuperJSON.allowErrorProps = SuperJSON.defaultInstance.allowErrorProps.bind(SuperJSON.defaultInstance);
|
|
765
765
|
var stringify = SuperJSON.stringify;
|
|
766
766
|
|
|
767
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
767
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/Options.js
|
|
768
768
|
var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use");
|
|
769
769
|
var defaultOptions = {
|
|
770
770
|
name: void 0,
|
|
@@ -798,7 +798,7 @@ var getDefaultOptions = (options) => typeof options === "string" ? {
|
|
|
798
798
|
...options
|
|
799
799
|
};
|
|
800
800
|
|
|
801
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
801
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/Refs.js
|
|
802
802
|
var getRefs = (options) => {
|
|
803
803
|
const _options = getDefaultOptions(options);
|
|
804
804
|
const currentPath = _options.name !== void 0 ? [..._options.basePath, _options.definitionPath, _options.name] : _options.basePath;
|
|
@@ -819,7 +819,7 @@ var getRefs = (options) => {
|
|
|
819
819
|
};
|
|
820
820
|
};
|
|
821
821
|
|
|
822
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
822
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/errorMessages.js
|
|
823
823
|
function addErrorMessage(res, key, errorMessage, refs) {
|
|
824
824
|
if (!refs?.errorMessages)
|
|
825
825
|
return;
|
|
@@ -835,7 +835,7 @@ function setResponseValueAndErrors(res, key, value, errorMessage, refs) {
|
|
|
835
835
|
addErrorMessage(res, key, errorMessage, refs);
|
|
836
836
|
}
|
|
837
837
|
|
|
838
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
838
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js
|
|
839
839
|
var getRelativePath = (pathA, pathB) => {
|
|
840
840
|
let i = 0;
|
|
841
841
|
for (; i < pathA.length && i < pathB.length; i++) {
|
|
@@ -845,7 +845,7 @@ var getRelativePath = (pathA, pathB) => {
|
|
|
845
845
|
return [(pathA.length - i).toString(), ...pathB.slice(i)].join("/");
|
|
846
846
|
};
|
|
847
847
|
|
|
848
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
848
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/any.js
|
|
849
849
|
function parseAnyDef(refs) {
|
|
850
850
|
if (refs.target !== "openAi") {
|
|
851
851
|
return {};
|
|
@@ -883,7 +883,7 @@ function parseArrayDef(def, refs) {
|
|
|
883
883
|
return res;
|
|
884
884
|
}
|
|
885
885
|
|
|
886
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
886
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js
|
|
887
887
|
function parseBigintDef(def, refs) {
|
|
888
888
|
const res = {
|
|
889
889
|
type: "integer",
|
|
@@ -929,24 +929,24 @@ function parseBigintDef(def, refs) {
|
|
|
929
929
|
return res;
|
|
930
930
|
}
|
|
931
931
|
|
|
932
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
932
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js
|
|
933
933
|
function parseBooleanDef() {
|
|
934
934
|
return {
|
|
935
935
|
type: "boolean"
|
|
936
936
|
};
|
|
937
937
|
}
|
|
938
938
|
|
|
939
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
939
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js
|
|
940
940
|
function parseBrandedDef(_def, refs) {
|
|
941
941
|
return parseDef(_def.type._def, refs);
|
|
942
942
|
}
|
|
943
943
|
|
|
944
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
944
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js
|
|
945
945
|
var parseCatchDef = (def, refs) => {
|
|
946
946
|
return parseDef(def.innerType._def, refs);
|
|
947
947
|
};
|
|
948
948
|
|
|
949
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
949
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/date.js
|
|
950
950
|
function parseDateDef(def, refs, overrideDateStrategy) {
|
|
951
951
|
const strategy = overrideDateStrategy ?? refs.dateStrategy;
|
|
952
952
|
if (Array.isArray(strategy)) {
|
|
@@ -1005,7 +1005,7 @@ var integerDateParser = (def, refs) => {
|
|
|
1005
1005
|
return res;
|
|
1006
1006
|
};
|
|
1007
1007
|
|
|
1008
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1008
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/default.js
|
|
1009
1009
|
function parseDefaultDef(_def, refs) {
|
|
1010
1010
|
return {
|
|
1011
1011
|
...parseDef(_def.innerType._def, refs),
|
|
@@ -1013,12 +1013,12 @@ function parseDefaultDef(_def, refs) {
|
|
|
1013
1013
|
};
|
|
1014
1014
|
}
|
|
1015
1015
|
|
|
1016
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1016
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js
|
|
1017
1017
|
function parseEffectsDef(_def, refs) {
|
|
1018
1018
|
return refs.effectStrategy === "input" ? parseDef(_def.schema._def, refs) : parseAnyDef(refs);
|
|
1019
1019
|
}
|
|
1020
1020
|
|
|
1021
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1021
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js
|
|
1022
1022
|
function parseEnumDef(def) {
|
|
1023
1023
|
return {
|
|
1024
1024
|
type: "string",
|
|
@@ -1026,7 +1026,7 @@ function parseEnumDef(def) {
|
|
|
1026
1026
|
};
|
|
1027
1027
|
}
|
|
1028
1028
|
|
|
1029
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1029
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js
|
|
1030
1030
|
var isJsonSchema7AllOfType = (type) => {
|
|
1031
1031
|
if ("type" in type && type.type === "string")
|
|
1032
1032
|
return false;
|
|
@@ -1068,7 +1068,7 @@ function parseIntersectionDef(def, refs) {
|
|
|
1068
1068
|
} : void 0;
|
|
1069
1069
|
}
|
|
1070
1070
|
|
|
1071
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1071
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js
|
|
1072
1072
|
function parseLiteralDef(def, refs) {
|
|
1073
1073
|
const parsedType = typeof def.value;
|
|
1074
1074
|
if (parsedType !== "bigint" && parsedType !== "number" && parsedType !== "boolean" && parsedType !== "string") {
|
|
@@ -1088,7 +1088,7 @@ function parseLiteralDef(def, refs) {
|
|
|
1088
1088
|
};
|
|
1089
1089
|
}
|
|
1090
1090
|
|
|
1091
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1091
|
+
// ../../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
|
|
1092
1092
|
var emojiRegex = void 0;
|
|
1093
1093
|
var zodPatterns = {
|
|
1094
1094
|
/**
|
|
@@ -1400,7 +1400,7 @@ function stringifyRegExpWithFlags(regex, refs) {
|
|
|
1400
1400
|
return pattern;
|
|
1401
1401
|
}
|
|
1402
1402
|
|
|
1403
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1403
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/record.js
|
|
1404
1404
|
function parseRecordDef(def, refs) {
|
|
1405
1405
|
if (refs.target === "openAi") {
|
|
1406
1406
|
console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.");
|
|
@@ -1452,7 +1452,7 @@ function parseRecordDef(def, refs) {
|
|
|
1452
1452
|
return schema;
|
|
1453
1453
|
}
|
|
1454
1454
|
|
|
1455
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1455
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/map.js
|
|
1456
1456
|
function parseMapDef(def, refs) {
|
|
1457
1457
|
if (refs.mapStrategy === "record") {
|
|
1458
1458
|
return parseRecordDef(def, refs);
|
|
@@ -1477,7 +1477,7 @@ function parseMapDef(def, refs) {
|
|
|
1477
1477
|
};
|
|
1478
1478
|
}
|
|
1479
1479
|
|
|
1480
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1480
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js
|
|
1481
1481
|
function parseNativeEnumDef(def) {
|
|
1482
1482
|
const object = def.values;
|
|
1483
1483
|
const actualKeys = Object.keys(def.values).filter((key) => {
|
|
@@ -1491,7 +1491,7 @@ function parseNativeEnumDef(def) {
|
|
|
1491
1491
|
};
|
|
1492
1492
|
}
|
|
1493
1493
|
|
|
1494
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1494
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/never.js
|
|
1495
1495
|
function parseNeverDef(refs) {
|
|
1496
1496
|
return refs.target === "openAi" ? void 0 : {
|
|
1497
1497
|
not: parseAnyDef({
|
|
@@ -1501,7 +1501,7 @@ function parseNeverDef(refs) {
|
|
|
1501
1501
|
};
|
|
1502
1502
|
}
|
|
1503
1503
|
|
|
1504
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1504
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/null.js
|
|
1505
1505
|
function parseNullDef(refs) {
|
|
1506
1506
|
return refs.target === "openApi3" ? {
|
|
1507
1507
|
enum: ["null"],
|
|
@@ -1511,7 +1511,7 @@ function parseNullDef(refs) {
|
|
|
1511
1511
|
};
|
|
1512
1512
|
}
|
|
1513
1513
|
|
|
1514
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1514
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/union.js
|
|
1515
1515
|
var primitiveMappings = {
|
|
1516
1516
|
ZodString: "string",
|
|
1517
1517
|
ZodNumber: "number",
|
|
@@ -1579,7 +1579,7 @@ var asAnyOf = (def, refs) => {
|
|
|
1579
1579
|
return anyOf.length ? { anyOf } : void 0;
|
|
1580
1580
|
};
|
|
1581
1581
|
|
|
1582
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1582
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js
|
|
1583
1583
|
function parseNullableDef(def, refs) {
|
|
1584
1584
|
if (["ZodString", "ZodNumber", "ZodBigInt", "ZodBoolean", "ZodNull"].includes(def.innerType._def.typeName) && (!def.innerType._def.checks || !def.innerType._def.checks.length)) {
|
|
1585
1585
|
if (refs.target === "openApi3") {
|
|
@@ -1611,7 +1611,7 @@ function parseNullableDef(def, refs) {
|
|
|
1611
1611
|
return base && { anyOf: [base, { type: "null" }] };
|
|
1612
1612
|
}
|
|
1613
1613
|
|
|
1614
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1614
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/number.js
|
|
1615
1615
|
function parseNumberDef(def, refs) {
|
|
1616
1616
|
const res = {
|
|
1617
1617
|
type: "number"
|
|
@@ -1660,7 +1660,7 @@ function parseNumberDef(def, refs) {
|
|
|
1660
1660
|
return res;
|
|
1661
1661
|
}
|
|
1662
1662
|
|
|
1663
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1663
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/object.js
|
|
1664
1664
|
function parseObjectDef(def, refs) {
|
|
1665
1665
|
const forceOptionalIntoNullable = refs.target === "openAi";
|
|
1666
1666
|
const result = {
|
|
@@ -1730,7 +1730,7 @@ function safeIsOptional(schema) {
|
|
|
1730
1730
|
}
|
|
1731
1731
|
}
|
|
1732
1732
|
|
|
1733
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1733
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js
|
|
1734
1734
|
var parseOptionalDef = (def, refs) => {
|
|
1735
1735
|
if (refs.currentPath.toString() === refs.propertyPath?.toString()) {
|
|
1736
1736
|
return parseDef(def.innerType._def, refs);
|
|
@@ -1749,7 +1749,7 @@ var parseOptionalDef = (def, refs) => {
|
|
|
1749
1749
|
} : parseAnyDef(refs);
|
|
1750
1750
|
};
|
|
1751
1751
|
|
|
1752
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1752
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js
|
|
1753
1753
|
var parsePipelineDef = (def, refs) => {
|
|
1754
1754
|
if (refs.pipeStrategy === "input") {
|
|
1755
1755
|
return parseDef(def.in._def, refs);
|
|
@@ -1769,12 +1769,12 @@ var parsePipelineDef = (def, refs) => {
|
|
|
1769
1769
|
};
|
|
1770
1770
|
};
|
|
1771
1771
|
|
|
1772
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1772
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js
|
|
1773
1773
|
function parsePromiseDef(def, refs) {
|
|
1774
1774
|
return parseDef(def.type._def, refs);
|
|
1775
1775
|
}
|
|
1776
1776
|
|
|
1777
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1777
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/set.js
|
|
1778
1778
|
function parseSetDef(def, refs) {
|
|
1779
1779
|
const items = parseDef(def.valueType._def, {
|
|
1780
1780
|
...refs,
|
|
@@ -1794,7 +1794,7 @@ function parseSetDef(def, refs) {
|
|
|
1794
1794
|
return schema;
|
|
1795
1795
|
}
|
|
1796
1796
|
|
|
1797
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1797
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js
|
|
1798
1798
|
function parseTupleDef(def, refs) {
|
|
1799
1799
|
if (def.rest) {
|
|
1800
1800
|
return {
|
|
@@ -1822,24 +1822,24 @@ function parseTupleDef(def, refs) {
|
|
|
1822
1822
|
}
|
|
1823
1823
|
}
|
|
1824
1824
|
|
|
1825
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1825
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js
|
|
1826
1826
|
function parseUndefinedDef(refs) {
|
|
1827
1827
|
return {
|
|
1828
1828
|
not: parseAnyDef(refs)
|
|
1829
1829
|
};
|
|
1830
1830
|
}
|
|
1831
1831
|
|
|
1832
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1832
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js
|
|
1833
1833
|
function parseUnknownDef(refs) {
|
|
1834
1834
|
return parseAnyDef(refs);
|
|
1835
1835
|
}
|
|
1836
1836
|
|
|
1837
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1837
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
|
|
1838
1838
|
var parseReadonlyDef = (def, refs) => {
|
|
1839
1839
|
return parseDef(def.innerType._def, refs);
|
|
1840
1840
|
};
|
|
1841
1841
|
|
|
1842
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1842
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/selectParser.js
|
|
1843
1843
|
var selectParser = (def, typeName, refs) => {
|
|
1844
1844
|
switch (typeName) {
|
|
1845
1845
|
case ZodFirstPartyTypeKind.ZodString:
|
|
@@ -1915,7 +1915,7 @@ var selectParser = (def, typeName, refs) => {
|
|
|
1915
1915
|
}
|
|
1916
1916
|
};
|
|
1917
1917
|
|
|
1918
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1918
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parseDef.js
|
|
1919
1919
|
function parseDef(def, refs, forceResolution = false) {
|
|
1920
1920
|
const seenItem = refs.seen.get(def);
|
|
1921
1921
|
if (refs.override) {
|
|
@@ -1971,7 +1971,7 @@ var addMeta = (def, refs, jsonSchema) => {
|
|
|
1971
1971
|
return jsonSchema;
|
|
1972
1972
|
};
|
|
1973
1973
|
|
|
1974
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1974
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js
|
|
1975
1975
|
var zodToJsonSchema = (schema, options) => {
|
|
1976
1976
|
const refs = getRefs(options);
|
|
1977
1977
|
let definitions = typeof options === "object" && options.definitions ? Object.entries(options.definitions).reduce((acc, [name2, schema2]) => ({
|
|
@@ -2033,7 +2033,7 @@ var zodToJsonSchema = (schema, options) => {
|
|
|
2033
2033
|
return combined;
|
|
2034
2034
|
};
|
|
2035
2035
|
|
|
2036
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
2036
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/index.js
|
|
2037
2037
|
var esm_default = zodToJsonSchema;
|
|
2038
2038
|
|
|
2039
2039
|
export { esm_default, stringify };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHISYIDYH_cjs = require('./chunk-HISYIDYH.cjs');
|
|
4
4
|
var chunkPZQDCRPV_cjs = require('./chunk-PZQDCRPV.cjs');
|
|
5
5
|
var chunk2KZFMI6P_cjs = require('./chunk-2KZFMI6P.cjs');
|
|
6
6
|
var chunk75ZPJI57_cjs = require('./chunk-75ZPJI57.cjs');
|
|
@@ -31,10 +31,10 @@ function getSteps(steps, path) {
|
|
|
31
31
|
acc[fullKey] = {
|
|
32
32
|
id: step.id,
|
|
33
33
|
description: step.description,
|
|
34
|
-
inputSchema: step.inputSchema ?
|
|
35
|
-
outputSchema: step.outputSchema ?
|
|
36
|
-
resumeSchema: step.resumeSchema ?
|
|
37
|
-
suspendSchema: step.suspendSchema ?
|
|
34
|
+
inputSchema: step.inputSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(step.inputSchema)) : void 0,
|
|
35
|
+
outputSchema: step.outputSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(step.outputSchema)) : void 0,
|
|
36
|
+
resumeSchema: step.resumeSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(step.resumeSchema)) : void 0,
|
|
37
|
+
suspendSchema: step.suspendSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(step.suspendSchema)) : void 0,
|
|
38
38
|
isWorkflow: step.component === "WORKFLOW"
|
|
39
39
|
};
|
|
40
40
|
if (step.component === "WORKFLOW" && step.steps) {
|
|
@@ -55,17 +55,17 @@ async function getWorkflowsHandler({ mastra }) {
|
|
|
55
55
|
acc2[key2] = {
|
|
56
56
|
id: step.id,
|
|
57
57
|
description: step.description,
|
|
58
|
-
inputSchema: step.inputSchema ?
|
|
59
|
-
outputSchema: step.outputSchema ?
|
|
60
|
-
resumeSchema: step.resumeSchema ?
|
|
61
|
-
suspendSchema: step.suspendSchema ?
|
|
58
|
+
inputSchema: step.inputSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(step.inputSchema)) : void 0,
|
|
59
|
+
outputSchema: step.outputSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(step.outputSchema)) : void 0,
|
|
60
|
+
resumeSchema: step.resumeSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(step.resumeSchema)) : void 0,
|
|
61
|
+
suspendSchema: step.suspendSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(step.suspendSchema)) : void 0
|
|
62
62
|
};
|
|
63
63
|
return acc2;
|
|
64
64
|
}, {}),
|
|
65
65
|
allSteps: getSteps(workflow.steps) || {},
|
|
66
66
|
stepGraph: workflow.serializedStepGraph,
|
|
67
|
-
inputSchema: workflow.inputSchema ?
|
|
68
|
-
outputSchema: workflow.outputSchema ?
|
|
67
|
+
inputSchema: workflow.inputSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(workflow.inputSchema)) : void 0,
|
|
68
|
+
outputSchema: workflow.outputSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(workflow.outputSchema)) : void 0
|
|
69
69
|
};
|
|
70
70
|
return acc;
|
|
71
71
|
}, {});
|
|
@@ -122,10 +122,10 @@ async function getWorkflowByIdHandler({ mastra, workflowId }) {
|
|
|
122
122
|
acc[key] = {
|
|
123
123
|
id: step.id,
|
|
124
124
|
description: step.description,
|
|
125
|
-
inputSchema: step.inputSchema ?
|
|
126
|
-
outputSchema: step.outputSchema ?
|
|
127
|
-
resumeSchema: step.resumeSchema ?
|
|
128
|
-
suspendSchema: step.suspendSchema ?
|
|
125
|
+
inputSchema: step.inputSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(step.inputSchema)) : void 0,
|
|
126
|
+
outputSchema: step.outputSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(step.outputSchema)) : void 0,
|
|
127
|
+
resumeSchema: step.resumeSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(step.resumeSchema)) : void 0,
|
|
128
|
+
suspendSchema: step.suspendSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(step.suspendSchema)) : void 0
|
|
129
129
|
};
|
|
130
130
|
return acc;
|
|
131
131
|
}, {}),
|
|
@@ -133,8 +133,8 @@ async function getWorkflowByIdHandler({ mastra, workflowId }) {
|
|
|
133
133
|
name: workflow.name,
|
|
134
134
|
description: workflow.description,
|
|
135
135
|
stepGraph: workflow.serializedStepGraph,
|
|
136
|
-
inputSchema: workflow.inputSchema ?
|
|
137
|
-
outputSchema: workflow.outputSchema ?
|
|
136
|
+
inputSchema: workflow.inputSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(workflow.inputSchema)) : void 0,
|
|
137
|
+
outputSchema: workflow.outputSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(workflow.outputSchema)) : void 0
|
|
138
138
|
};
|
|
139
139
|
} catch (error) {
|
|
140
140
|
return chunkPZQDCRPV_cjs.handleError(error, "Error getting workflow");
|
|
@@ -766,7 +766,7 @@ SuperJSON.registerCustom = SuperJSON.defaultInstance.registerCustom.bind(SuperJS
|
|
|
766
766
|
SuperJSON.allowErrorProps = SuperJSON.defaultInstance.allowErrorProps.bind(SuperJSON.defaultInstance);
|
|
767
767
|
var stringify = SuperJSON.stringify;
|
|
768
768
|
|
|
769
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
769
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/Options.js
|
|
770
770
|
var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use");
|
|
771
771
|
var defaultOptions = {
|
|
772
772
|
name: void 0,
|
|
@@ -800,7 +800,7 @@ var getDefaultOptions = (options) => typeof options === "string" ? {
|
|
|
800
800
|
...options
|
|
801
801
|
};
|
|
802
802
|
|
|
803
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
803
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/Refs.js
|
|
804
804
|
var getRefs = (options) => {
|
|
805
805
|
const _options = getDefaultOptions(options);
|
|
806
806
|
const currentPath = _options.name !== void 0 ? [..._options.basePath, _options.definitionPath, _options.name] : _options.basePath;
|
|
@@ -821,7 +821,7 @@ var getRefs = (options) => {
|
|
|
821
821
|
};
|
|
822
822
|
};
|
|
823
823
|
|
|
824
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
824
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/errorMessages.js
|
|
825
825
|
function addErrorMessage(res, key, errorMessage, refs) {
|
|
826
826
|
if (!refs?.errorMessages)
|
|
827
827
|
return;
|
|
@@ -837,7 +837,7 @@ function setResponseValueAndErrors(res, key, value, errorMessage, refs) {
|
|
|
837
837
|
addErrorMessage(res, key, errorMessage, refs);
|
|
838
838
|
}
|
|
839
839
|
|
|
840
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
840
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js
|
|
841
841
|
var getRelativePath = (pathA, pathB) => {
|
|
842
842
|
let i = 0;
|
|
843
843
|
for (; i < pathA.length && i < pathB.length; i++) {
|
|
@@ -847,7 +847,7 @@ var getRelativePath = (pathA, pathB) => {
|
|
|
847
847
|
return [(pathA.length - i).toString(), ...pathB.slice(i)].join("/");
|
|
848
848
|
};
|
|
849
849
|
|
|
850
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
850
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/any.js
|
|
851
851
|
function parseAnyDef(refs) {
|
|
852
852
|
if (refs.target !== "openAi") {
|
|
853
853
|
return {};
|
|
@@ -885,7 +885,7 @@ function parseArrayDef(def, refs) {
|
|
|
885
885
|
return res;
|
|
886
886
|
}
|
|
887
887
|
|
|
888
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
888
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js
|
|
889
889
|
function parseBigintDef(def, refs) {
|
|
890
890
|
const res = {
|
|
891
891
|
type: "integer",
|
|
@@ -931,24 +931,24 @@ function parseBigintDef(def, refs) {
|
|
|
931
931
|
return res;
|
|
932
932
|
}
|
|
933
933
|
|
|
934
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
934
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js
|
|
935
935
|
function parseBooleanDef() {
|
|
936
936
|
return {
|
|
937
937
|
type: "boolean"
|
|
938
938
|
};
|
|
939
939
|
}
|
|
940
940
|
|
|
941
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
941
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js
|
|
942
942
|
function parseBrandedDef(_def, refs) {
|
|
943
943
|
return parseDef(_def.type._def, refs);
|
|
944
944
|
}
|
|
945
945
|
|
|
946
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
946
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js
|
|
947
947
|
var parseCatchDef = (def, refs) => {
|
|
948
948
|
return parseDef(def.innerType._def, refs);
|
|
949
949
|
};
|
|
950
950
|
|
|
951
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
951
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/date.js
|
|
952
952
|
function parseDateDef(def, refs, overrideDateStrategy) {
|
|
953
953
|
const strategy = overrideDateStrategy ?? refs.dateStrategy;
|
|
954
954
|
if (Array.isArray(strategy)) {
|
|
@@ -1007,7 +1007,7 @@ var integerDateParser = (def, refs) => {
|
|
|
1007
1007
|
return res;
|
|
1008
1008
|
};
|
|
1009
1009
|
|
|
1010
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1010
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/default.js
|
|
1011
1011
|
function parseDefaultDef(_def, refs) {
|
|
1012
1012
|
return {
|
|
1013
1013
|
...parseDef(_def.innerType._def, refs),
|
|
@@ -1015,12 +1015,12 @@ function parseDefaultDef(_def, refs) {
|
|
|
1015
1015
|
};
|
|
1016
1016
|
}
|
|
1017
1017
|
|
|
1018
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1018
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js
|
|
1019
1019
|
function parseEffectsDef(_def, refs) {
|
|
1020
1020
|
return refs.effectStrategy === "input" ? parseDef(_def.schema._def, refs) : parseAnyDef(refs);
|
|
1021
1021
|
}
|
|
1022
1022
|
|
|
1023
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1023
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js
|
|
1024
1024
|
function parseEnumDef(def) {
|
|
1025
1025
|
return {
|
|
1026
1026
|
type: "string",
|
|
@@ -1028,7 +1028,7 @@ function parseEnumDef(def) {
|
|
|
1028
1028
|
};
|
|
1029
1029
|
}
|
|
1030
1030
|
|
|
1031
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1031
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js
|
|
1032
1032
|
var isJsonSchema7AllOfType = (type) => {
|
|
1033
1033
|
if ("type" in type && type.type === "string")
|
|
1034
1034
|
return false;
|
|
@@ -1070,7 +1070,7 @@ function parseIntersectionDef(def, refs) {
|
|
|
1070
1070
|
} : void 0;
|
|
1071
1071
|
}
|
|
1072
1072
|
|
|
1073
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1073
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js
|
|
1074
1074
|
function parseLiteralDef(def, refs) {
|
|
1075
1075
|
const parsedType = typeof def.value;
|
|
1076
1076
|
if (parsedType !== "bigint" && parsedType !== "number" && parsedType !== "boolean" && parsedType !== "string") {
|
|
@@ -1090,7 +1090,7 @@ function parseLiteralDef(def, refs) {
|
|
|
1090
1090
|
};
|
|
1091
1091
|
}
|
|
1092
1092
|
|
|
1093
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1093
|
+
// ../../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
|
|
1094
1094
|
var emojiRegex = void 0;
|
|
1095
1095
|
var zodPatterns = {
|
|
1096
1096
|
/**
|
|
@@ -1402,7 +1402,7 @@ function stringifyRegExpWithFlags(regex, refs) {
|
|
|
1402
1402
|
return pattern;
|
|
1403
1403
|
}
|
|
1404
1404
|
|
|
1405
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1405
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/record.js
|
|
1406
1406
|
function parseRecordDef(def, refs) {
|
|
1407
1407
|
if (refs.target === "openAi") {
|
|
1408
1408
|
console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.");
|
|
@@ -1454,7 +1454,7 @@ function parseRecordDef(def, refs) {
|
|
|
1454
1454
|
return schema;
|
|
1455
1455
|
}
|
|
1456
1456
|
|
|
1457
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1457
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/map.js
|
|
1458
1458
|
function parseMapDef(def, refs) {
|
|
1459
1459
|
if (refs.mapStrategy === "record") {
|
|
1460
1460
|
return parseRecordDef(def, refs);
|
|
@@ -1479,7 +1479,7 @@ function parseMapDef(def, refs) {
|
|
|
1479
1479
|
};
|
|
1480
1480
|
}
|
|
1481
1481
|
|
|
1482
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1482
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js
|
|
1483
1483
|
function parseNativeEnumDef(def) {
|
|
1484
1484
|
const object = def.values;
|
|
1485
1485
|
const actualKeys = Object.keys(def.values).filter((key) => {
|
|
@@ -1493,7 +1493,7 @@ function parseNativeEnumDef(def) {
|
|
|
1493
1493
|
};
|
|
1494
1494
|
}
|
|
1495
1495
|
|
|
1496
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1496
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/never.js
|
|
1497
1497
|
function parseNeverDef(refs) {
|
|
1498
1498
|
return refs.target === "openAi" ? void 0 : {
|
|
1499
1499
|
not: parseAnyDef({
|
|
@@ -1503,7 +1503,7 @@ function parseNeverDef(refs) {
|
|
|
1503
1503
|
};
|
|
1504
1504
|
}
|
|
1505
1505
|
|
|
1506
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1506
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/null.js
|
|
1507
1507
|
function parseNullDef(refs) {
|
|
1508
1508
|
return refs.target === "openApi3" ? {
|
|
1509
1509
|
enum: ["null"],
|
|
@@ -1513,7 +1513,7 @@ function parseNullDef(refs) {
|
|
|
1513
1513
|
};
|
|
1514
1514
|
}
|
|
1515
1515
|
|
|
1516
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1516
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/union.js
|
|
1517
1517
|
var primitiveMappings = {
|
|
1518
1518
|
ZodString: "string",
|
|
1519
1519
|
ZodNumber: "number",
|
|
@@ -1581,7 +1581,7 @@ var asAnyOf = (def, refs) => {
|
|
|
1581
1581
|
return anyOf.length ? { anyOf } : void 0;
|
|
1582
1582
|
};
|
|
1583
1583
|
|
|
1584
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1584
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js
|
|
1585
1585
|
function parseNullableDef(def, refs) {
|
|
1586
1586
|
if (["ZodString", "ZodNumber", "ZodBigInt", "ZodBoolean", "ZodNull"].includes(def.innerType._def.typeName) && (!def.innerType._def.checks || !def.innerType._def.checks.length)) {
|
|
1587
1587
|
if (refs.target === "openApi3") {
|
|
@@ -1613,7 +1613,7 @@ function parseNullableDef(def, refs) {
|
|
|
1613
1613
|
return base && { anyOf: [base, { type: "null" }] };
|
|
1614
1614
|
}
|
|
1615
1615
|
|
|
1616
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1616
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/number.js
|
|
1617
1617
|
function parseNumberDef(def, refs) {
|
|
1618
1618
|
const res = {
|
|
1619
1619
|
type: "number"
|
|
@@ -1662,7 +1662,7 @@ function parseNumberDef(def, refs) {
|
|
|
1662
1662
|
return res;
|
|
1663
1663
|
}
|
|
1664
1664
|
|
|
1665
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1665
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/object.js
|
|
1666
1666
|
function parseObjectDef(def, refs) {
|
|
1667
1667
|
const forceOptionalIntoNullable = refs.target === "openAi";
|
|
1668
1668
|
const result = {
|
|
@@ -1732,7 +1732,7 @@ function safeIsOptional(schema) {
|
|
|
1732
1732
|
}
|
|
1733
1733
|
}
|
|
1734
1734
|
|
|
1735
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1735
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js
|
|
1736
1736
|
var parseOptionalDef = (def, refs) => {
|
|
1737
1737
|
if (refs.currentPath.toString() === refs.propertyPath?.toString()) {
|
|
1738
1738
|
return parseDef(def.innerType._def, refs);
|
|
@@ -1751,7 +1751,7 @@ var parseOptionalDef = (def, refs) => {
|
|
|
1751
1751
|
} : parseAnyDef(refs);
|
|
1752
1752
|
};
|
|
1753
1753
|
|
|
1754
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1754
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js
|
|
1755
1755
|
var parsePipelineDef = (def, refs) => {
|
|
1756
1756
|
if (refs.pipeStrategy === "input") {
|
|
1757
1757
|
return parseDef(def.in._def, refs);
|
|
@@ -1771,12 +1771,12 @@ var parsePipelineDef = (def, refs) => {
|
|
|
1771
1771
|
};
|
|
1772
1772
|
};
|
|
1773
1773
|
|
|
1774
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1774
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js
|
|
1775
1775
|
function parsePromiseDef(def, refs) {
|
|
1776
1776
|
return parseDef(def.type._def, refs);
|
|
1777
1777
|
}
|
|
1778
1778
|
|
|
1779
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1779
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/set.js
|
|
1780
1780
|
function parseSetDef(def, refs) {
|
|
1781
1781
|
const items = parseDef(def.valueType._def, {
|
|
1782
1782
|
...refs,
|
|
@@ -1796,7 +1796,7 @@ function parseSetDef(def, refs) {
|
|
|
1796
1796
|
return schema;
|
|
1797
1797
|
}
|
|
1798
1798
|
|
|
1799
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1799
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js
|
|
1800
1800
|
function parseTupleDef(def, refs) {
|
|
1801
1801
|
if (def.rest) {
|
|
1802
1802
|
return {
|
|
@@ -1824,24 +1824,24 @@ function parseTupleDef(def, refs) {
|
|
|
1824
1824
|
}
|
|
1825
1825
|
}
|
|
1826
1826
|
|
|
1827
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1827
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js
|
|
1828
1828
|
function parseUndefinedDef(refs) {
|
|
1829
1829
|
return {
|
|
1830
1830
|
not: parseAnyDef(refs)
|
|
1831
1831
|
};
|
|
1832
1832
|
}
|
|
1833
1833
|
|
|
1834
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1834
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js
|
|
1835
1835
|
function parseUnknownDef(refs) {
|
|
1836
1836
|
return parseAnyDef(refs);
|
|
1837
1837
|
}
|
|
1838
1838
|
|
|
1839
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1839
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
|
|
1840
1840
|
var parseReadonlyDef = (def, refs) => {
|
|
1841
1841
|
return parseDef(def.innerType._def, refs);
|
|
1842
1842
|
};
|
|
1843
1843
|
|
|
1844
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1844
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/selectParser.js
|
|
1845
1845
|
var selectParser = (def, typeName, refs) => {
|
|
1846
1846
|
switch (typeName) {
|
|
1847
1847
|
case zod.ZodFirstPartyTypeKind.ZodString:
|
|
@@ -1917,7 +1917,7 @@ var selectParser = (def, typeName, refs) => {
|
|
|
1917
1917
|
}
|
|
1918
1918
|
};
|
|
1919
1919
|
|
|
1920
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1920
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parseDef.js
|
|
1921
1921
|
function parseDef(def, refs, forceResolution = false) {
|
|
1922
1922
|
const seenItem = refs.seen.get(def);
|
|
1923
1923
|
if (refs.override) {
|
|
@@ -1973,7 +1973,7 @@ var addMeta = (def, refs, jsonSchema) => {
|
|
|
1973
1973
|
return jsonSchema;
|
|
1974
1974
|
};
|
|
1975
1975
|
|
|
1976
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
1976
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js
|
|
1977
1977
|
var zodToJsonSchema = (schema, options) => {
|
|
1978
1978
|
const refs = getRefs(options);
|
|
1979
1979
|
let definitions = typeof options === "object" && options.definitions ? Object.entries(options.definitions).reduce((acc, [name2, schema2]) => ({
|
|
@@ -2035,7 +2035,7 @@ var zodToJsonSchema = (schema, options) => {
|
|
|
2035
2035
|
return combined;
|
|
2036
2036
|
};
|
|
2037
2037
|
|
|
2038
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.
|
|
2038
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/index.js
|
|
2039
2039
|
var esm_default = zodToJsonSchema;
|
|
2040
2040
|
|
|
2041
2041
|
exports.esm_default = esm_default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHISYIDYH_cjs = require('./chunk-HISYIDYH.cjs');
|
|
4
4
|
var chunkCCGRCYWJ_cjs = require('./chunk-CCGRCYWJ.cjs');
|
|
5
5
|
var chunkPZQDCRPV_cjs = require('./chunk-PZQDCRPV.cjs');
|
|
6
6
|
var chunk2KZFMI6P_cjs = require('./chunk-2KZFMI6P.cjs');
|
|
@@ -25,8 +25,8 @@ async function getToolsHandler({ tools }) {
|
|
|
25
25
|
const tool = _tool;
|
|
26
26
|
acc[id] = {
|
|
27
27
|
...tool,
|
|
28
|
-
inputSchema: tool.inputSchema ?
|
|
29
|
-
outputSchema: tool.outputSchema ?
|
|
28
|
+
inputSchema: tool.inputSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(tool.inputSchema)) : void 0,
|
|
29
|
+
outputSchema: tool.outputSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(tool.outputSchema)) : void 0
|
|
30
30
|
};
|
|
31
31
|
return acc;
|
|
32
32
|
},
|
|
@@ -45,8 +45,8 @@ async function getToolByIdHandler({ tools, toolId }) {
|
|
|
45
45
|
}
|
|
46
46
|
const serializedTool = {
|
|
47
47
|
...tool,
|
|
48
|
-
inputSchema: tool.inputSchema ?
|
|
49
|
-
outputSchema: tool.outputSchema ?
|
|
48
|
+
inputSchema: tool.inputSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(tool.inputSchema)) : void 0,
|
|
49
|
+
outputSchema: tool.outputSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(tool.outputSchema)) : void 0
|
|
50
50
|
};
|
|
51
51
|
return serializedTool;
|
|
52
52
|
} catch (error) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHISYIDYH_cjs = require('./chunk-HISYIDYH.cjs');
|
|
4
4
|
var chunkCCGRCYWJ_cjs = require('./chunk-CCGRCYWJ.cjs');
|
|
5
5
|
var chunkPZQDCRPV_cjs = require('./chunk-PZQDCRPV.cjs');
|
|
6
6
|
var chunk2KZFMI6P_cjs = require('./chunk-2KZFMI6P.cjs');
|
|
@@ -32,8 +32,8 @@ async function getAgentsHandler({ mastra, runtimeContext }) {
|
|
|
32
32
|
const _tool = tool;
|
|
33
33
|
acc[key] = {
|
|
34
34
|
..._tool,
|
|
35
|
-
inputSchema: _tool.inputSchema ?
|
|
36
|
-
outputSchema: _tool.outputSchema ?
|
|
35
|
+
inputSchema: _tool.inputSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(_tool.inputSchema)) : void 0,
|
|
36
|
+
outputSchema: _tool.outputSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(_tool.outputSchema)) : void 0
|
|
37
37
|
};
|
|
38
38
|
return acc;
|
|
39
39
|
}, {});
|
|
@@ -92,8 +92,8 @@ async function getAgentByIdHandler({
|
|
|
92
92
|
const _tool = tool;
|
|
93
93
|
acc[key] = {
|
|
94
94
|
..._tool,
|
|
95
|
-
inputSchema: _tool.inputSchema ?
|
|
96
|
-
outputSchema: _tool.outputSchema ?
|
|
95
|
+
inputSchema: _tool.inputSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(_tool.inputSchema)) : void 0,
|
|
96
|
+
outputSchema: _tool.outputSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(_tool.outputSchema)) : void 0
|
|
97
97
|
};
|
|
98
98
|
return acc;
|
|
99
99
|
}, {});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { stringify, esm_default } from './chunk-
|
|
1
|
+
import { stringify, esm_default } from './chunk-36BLNJHS.js';
|
|
2
2
|
import { handleError } from './chunk-LF7P5PLR.js';
|
|
3
3
|
import { HTTPException } from './chunk-LCM566I4.js';
|
|
4
4
|
import { __export } from './chunk-MLKGABMK.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHISYIDYH_cjs = require('./chunk-HISYIDYH.cjs');
|
|
4
4
|
var chunkPZQDCRPV_cjs = require('./chunk-PZQDCRPV.cjs');
|
|
5
5
|
var chunk2KZFMI6P_cjs = require('./chunk-2KZFMI6P.cjs');
|
|
6
6
|
var chunk75ZPJI57_cjs = require('./chunk-75ZPJI57.cjs');
|
|
@@ -31,15 +31,15 @@ async function getLegacyWorkflowsHandler({ mastra }) {
|
|
|
31
31
|
serializedStepGraph: workflow.serializedStepGraph,
|
|
32
32
|
serializedStepSubscriberGraph: workflow.serializedStepSubscriberGraph,
|
|
33
33
|
name: workflow.name,
|
|
34
|
-
triggerSchema: workflow.triggerSchema ?
|
|
34
|
+
triggerSchema: workflow.triggerSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(workflow.triggerSchema)) : void 0,
|
|
35
35
|
steps: Object.entries(workflow.steps).reduce((acc2, [key2, step]) => {
|
|
36
36
|
const _step = step;
|
|
37
37
|
acc2[key2] = {
|
|
38
38
|
id: _step.id,
|
|
39
39
|
description: _step.description,
|
|
40
40
|
workflowId: _step.workflowId,
|
|
41
|
-
inputSchema: _step.inputSchema ?
|
|
42
|
-
outputSchema: _step.outputSchema ?
|
|
41
|
+
inputSchema: _step.inputSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(_step.inputSchema)) : void 0,
|
|
42
|
+
outputSchema: _step.outputSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(_step.outputSchema)) : void 0
|
|
43
43
|
};
|
|
44
44
|
return acc2;
|
|
45
45
|
}, {})
|
|
@@ -66,15 +66,15 @@ async function getLegacyWorkflowByIdHandler({ mastra, workflowId }) {
|
|
|
66
66
|
serializedStepGraph: workflow.serializedStepGraph,
|
|
67
67
|
serializedStepSubscriberGraph: workflow.serializedStepSubscriberGraph,
|
|
68
68
|
name: workflow.name,
|
|
69
|
-
triggerSchema: workflow.triggerSchema ?
|
|
69
|
+
triggerSchema: workflow.triggerSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(workflow.triggerSchema)) : void 0,
|
|
70
70
|
steps: Object.entries(workflow.steps).reduce((acc, [key, step]) => {
|
|
71
71
|
const _step = step;
|
|
72
72
|
acc[key] = {
|
|
73
73
|
id: _step.id,
|
|
74
74
|
description: _step.description,
|
|
75
75
|
workflowId: _step.workflowId,
|
|
76
|
-
inputSchema: _step.inputSchema ?
|
|
77
|
-
outputSchema: _step.outputSchema ?
|
|
76
|
+
inputSchema: _step.inputSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(_step.inputSchema)) : void 0,
|
|
77
|
+
outputSchema: _step.outputSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(_step.outputSchema)) : void 0
|
|
78
78
|
};
|
|
79
79
|
return acc;
|
|
80
80
|
}, {})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { stringify, esm_default } from './chunk-
|
|
1
|
+
import { stringify, esm_default } from './chunk-36BLNJHS.js';
|
|
2
2
|
import { validateBody } from './chunk-RSEO4XPX.js';
|
|
3
3
|
import { handleError } from './chunk-LF7P5PLR.js';
|
|
4
4
|
import { HTTPException } from './chunk-LCM566I4.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { stringify, esm_default } from './chunk-
|
|
1
|
+
import { stringify, esm_default } from './chunk-36BLNJHS.js';
|
|
2
2
|
import { validateBody } from './chunk-RSEO4XPX.js';
|
|
3
3
|
import { handleError } from './chunk-LF7P5PLR.js';
|
|
4
4
|
import { HTTPException } from './chunk-LCM566I4.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { stringify, esm_default } from './chunk-
|
|
1
|
+
import { stringify, esm_default } from './chunk-36BLNJHS.js';
|
|
2
2
|
import { handleError } from './chunk-LF7P5PLR.js';
|
|
3
3
|
import { HTTPException } from './chunk-LCM566I4.js';
|
|
4
4
|
import { __export } from './chunk-MLKGABMK.js';
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkI5JKUCGE_cjs = require('../../chunk-I5JKUCGE.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "generateHandler", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkI5JKUCGE_cjs.generateHandler; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "getAgentByIdHandler", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkI5JKUCGE_cjs.getAgentByIdHandler; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "getAgentsHandler", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkI5JKUCGE_cjs.getAgentsHandler; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "getEvalsByAgentIdHandler", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkI5JKUCGE_cjs.getEvalsByAgentIdHandler; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "getLiveEvalsByAgentIdHandler", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkI5JKUCGE_cjs.getLiveEvalsByAgentIdHandler; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "streamGenerateHandler", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkI5JKUCGE_cjs.streamGenerateHandler; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "streamVNextGenerateHandler", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkI5JKUCGE_cjs.streamVNextGenerateHandler; }
|
|
34
34
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { generateHandler, getAgentByIdHandler, getAgentsHandler, getEvalsByAgentIdHandler, getLiveEvalsByAgentIdHandler, streamGenerateHandler, streamVNextGenerateHandler } from '../../chunk-
|
|
1
|
+
export { generateHandler, getAgentByIdHandler, getAgentsHandler, getEvalsByAgentIdHandler, getLiveEvalsByAgentIdHandler, streamGenerateHandler, streamVNextGenerateHandler } from '../../chunk-VTTN2FW3.js';
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUCV4247U_cjs = require('../../chunk-UCV4247U.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "createLegacyWorkflowRunHandler", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkUCV4247U_cjs.createLegacyWorkflowRunHandler; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "getLegacyWorkflowByIdHandler", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkUCV4247U_cjs.getLegacyWorkflowByIdHandler; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "getLegacyWorkflowRunHandler", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkUCV4247U_cjs.getLegacyWorkflowRunHandler; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "getLegacyWorkflowRunsHandler", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkUCV4247U_cjs.getLegacyWorkflowRunsHandler; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "getLegacyWorkflowsHandler", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkUCV4247U_cjs.getLegacyWorkflowsHandler; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "resumeAsyncLegacyWorkflowHandler", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkUCV4247U_cjs.resumeAsyncLegacyWorkflowHandler; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "resumeLegacyWorkflowHandler", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkUCV4247U_cjs.resumeLegacyWorkflowHandler; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "startAsyncLegacyWorkflowHandler", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkUCV4247U_cjs.startAsyncLegacyWorkflowHandler; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "startLegacyWorkflowRunHandler", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkUCV4247U_cjs.startLegacyWorkflowRunHandler; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "watchLegacyWorkflowHandler", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkUCV4247U_cjs.watchLegacyWorkflowHandler; }
|
|
46
46
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { createLegacyWorkflowRunHandler, getLegacyWorkflowByIdHandler, getLegacyWorkflowRunHandler, getLegacyWorkflowRunsHandler, getLegacyWorkflowsHandler, resumeAsyncLegacyWorkflowHandler, resumeLegacyWorkflowHandler, startAsyncLegacyWorkflowHandler, startLegacyWorkflowRunHandler, watchLegacyWorkflowHandler } from '../../chunk-
|
|
1
|
+
export { createLegacyWorkflowRunHandler, getLegacyWorkflowByIdHandler, getLegacyWorkflowRunHandler, getLegacyWorkflowRunsHandler, getLegacyWorkflowsHandler, resumeAsyncLegacyWorkflowHandler, resumeLegacyWorkflowHandler, startAsyncLegacyWorkflowHandler, startLegacyWorkflowRunHandler, watchLegacyWorkflowHandler } from '../../chunk-ZYAFP2AV.js';
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHRSAZUIK_cjs = require('../../chunk-HRSAZUIK.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "executeAgentToolHandler", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkHRSAZUIK_cjs.executeAgentToolHandler; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "executeToolHandler", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkHRSAZUIK_cjs.executeToolHandler; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "getToolByIdHandler", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkHRSAZUIK_cjs.getToolByIdHandler; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "getToolsHandler", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkHRSAZUIK_cjs.getToolsHandler; }
|
|
22
22
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { executeAgentToolHandler, executeToolHandler, getToolByIdHandler, getToolsHandler } from '../../chunk-
|
|
1
|
+
export { executeAgentToolHandler, executeToolHandler, getToolByIdHandler, getToolsHandler } from '../../chunk-WBRFIHSF.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHISYIDYH_cjs = require('../../chunk-HISYIDYH.cjs');
|
|
4
4
|
var chunkCCGRCYWJ_cjs = require('../../chunk-CCGRCYWJ.cjs');
|
|
5
5
|
var chunkPZQDCRPV_cjs = require('../../chunk-PZQDCRPV.cjs');
|
|
6
6
|
var chunk2KZFMI6P_cjs = require('../../chunk-2KZFMI6P.cjs');
|
|
@@ -47,8 +47,8 @@ async function getVNextNetworksHandler({
|
|
|
47
47
|
return {
|
|
48
48
|
name: workflow.name,
|
|
49
49
|
description: workflow.description,
|
|
50
|
-
inputSchema: workflow.inputSchema ?
|
|
51
|
-
outputSchema: workflow.outputSchema ?
|
|
50
|
+
inputSchema: workflow.inputSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(workflow.inputSchema)) : void 0,
|
|
51
|
+
outputSchema: workflow.outputSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(workflow.outputSchema)) : void 0
|
|
52
52
|
};
|
|
53
53
|
})
|
|
54
54
|
),
|
|
@@ -99,8 +99,8 @@ async function getVNextNetworkByIdHandler({
|
|
|
99
99
|
return {
|
|
100
100
|
name: workflow.name,
|
|
101
101
|
description: workflow.description,
|
|
102
|
-
inputSchema: workflow.inputSchema ?
|
|
103
|
-
outputSchema: workflow.outputSchema ?
|
|
102
|
+
inputSchema: workflow.inputSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(workflow.inputSchema)) : void 0,
|
|
103
|
+
outputSchema: workflow.outputSchema ? chunkHISYIDYH_cjs.stringify(chunkHISYIDYH_cjs.esm_default(workflow.outputSchema)) : void 0
|
|
104
104
|
};
|
|
105
105
|
})
|
|
106
106
|
),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { stringify, esm_default } from '../../chunk-
|
|
1
|
+
import { stringify, esm_default } from '../../chunk-36BLNJHS.js';
|
|
2
2
|
import { validateBody } from '../../chunk-RSEO4XPX.js';
|
|
3
3
|
import { handleError } from '../../chunk-LF7P5PLR.js';
|
|
4
4
|
import { HTTPException } from '../../chunk-LCM566I4.js';
|
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6KP2OBYA_cjs = require('../../chunk-6KP2OBYA.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "cancelWorkflowRunHandler", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk6KP2OBYA_cjs.cancelWorkflowRunHandler; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "createWorkflowRunHandler", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk6KP2OBYA_cjs.createWorkflowRunHandler; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "getWorkflowByIdHandler", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk6KP2OBYA_cjs.getWorkflowByIdHandler; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "getWorkflowRunByIdHandler", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk6KP2OBYA_cjs.getWorkflowRunByIdHandler; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "getWorkflowRunExecutionResultHandler", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk6KP2OBYA_cjs.getWorkflowRunExecutionResultHandler; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "getWorkflowRunsHandler", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk6KP2OBYA_cjs.getWorkflowRunsHandler; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "getWorkflowsHandler", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk6KP2OBYA_cjs.getWorkflowsHandler; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "resumeAsyncWorkflowHandler", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk6KP2OBYA_cjs.resumeAsyncWorkflowHandler; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "resumeWorkflowHandler", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk6KP2OBYA_cjs.resumeWorkflowHandler; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "sendWorkflowRunEventHandler", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunk6KP2OBYA_cjs.sendWorkflowRunEventHandler; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "startAsyncWorkflowHandler", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunk6KP2OBYA_cjs.startAsyncWorkflowHandler; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "startWorkflowRunHandler", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunk6KP2OBYA_cjs.startWorkflowRunHandler; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "streamVNextWorkflowHandler", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunk6KP2OBYA_cjs.streamVNextWorkflowHandler; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "streamWorkflowHandler", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunk6KP2OBYA_cjs.streamWorkflowHandler; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "watchWorkflowHandler", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunk6KP2OBYA_cjs.watchWorkflowHandler; }
|
|
66
66
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { cancelWorkflowRunHandler, createWorkflowRunHandler, getWorkflowByIdHandler, getWorkflowRunByIdHandler, getWorkflowRunExecutionResultHandler, getWorkflowRunsHandler, getWorkflowsHandler, resumeAsyncWorkflowHandler, resumeWorkflowHandler, sendWorkflowRunEventHandler, startAsyncWorkflowHandler, startWorkflowRunHandler, streamVNextWorkflowHandler, streamWorkflowHandler, watchWorkflowHandler } from '../../chunk-
|
|
1
|
+
export { cancelWorkflowRunHandler, createWorkflowRunHandler, getWorkflowByIdHandler, getWorkflowRunByIdHandler, getWorkflowRunExecutionResultHandler, getWorkflowRunsHandler, getWorkflowsHandler, resumeAsyncWorkflowHandler, resumeWorkflowHandler, sendWorkflowRunEventHandler, startAsyncWorkflowHandler, startWorkflowRunHandler, streamVNextWorkflowHandler, streamWorkflowHandler, watchWorkflowHandler } from '../../chunk-T7HAZC2E.js';
|
package/dist/server/handlers.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6KP2OBYA_cjs = require('../chunk-6KP2OBYA.cjs');
|
|
4
4
|
var chunk2SLFAFTR_cjs = require('../chunk-2SLFAFTR.cjs');
|
|
5
5
|
var chunk424T5F2J_cjs = require('../chunk-424T5F2J.cjs');
|
|
6
6
|
var chunkG7KH752Y_cjs = require('../chunk-G7KH752Y.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunkHRSAZUIK_cjs = require('../chunk-HRSAZUIK.cjs');
|
|
8
8
|
var chunk7TP2LX5L_cjs = require('../chunk-7TP2LX5L.cjs');
|
|
9
9
|
var chunkRHSWAXKB_cjs = require('../chunk-RHSWAXKB.cjs');
|
|
10
10
|
var chunkSDPGVWQJ_cjs = require('../chunk-SDPGVWQJ.cjs');
|
|
11
|
-
var
|
|
12
|
-
var
|
|
11
|
+
var chunkI5JKUCGE_cjs = require('../chunk-I5JKUCGE.cjs');
|
|
12
|
+
var chunkUCV4247U_cjs = require('../chunk-UCV4247U.cjs');
|
|
13
13
|
var chunkQGX47B5D_cjs = require('../chunk-QGX47B5D.cjs');
|
|
14
14
|
var chunkTTPJHP42_cjs = require('../chunk-TTPJHP42.cjs');
|
|
15
15
|
|
|
@@ -17,7 +17,7 @@ var chunkTTPJHP42_cjs = require('../chunk-TTPJHP42.cjs');
|
|
|
17
17
|
|
|
18
18
|
Object.defineProperty(exports, "workflows", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunk6KP2OBYA_cjs.workflows_exports; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "network", {
|
|
23
23
|
enumerable: true,
|
|
@@ -33,7 +33,7 @@ Object.defineProperty(exports, "telemetry", {
|
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "tools", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkHRSAZUIK_cjs.tools_exports; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "vector", {
|
|
39
39
|
enumerable: true,
|
|
@@ -49,11 +49,11 @@ Object.defineProperty(exports, "a2a", {
|
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "agents", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkI5JKUCGE_cjs.agents_exports; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "legacyWorkflows", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkUCV4247U_cjs.legacyWorkflows_exports; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "logs", {
|
|
59
59
|
enumerable: true,
|
package/dist/server/handlers.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { workflows_exports as workflows } from '../chunk-
|
|
1
|
+
export { workflows_exports as workflows } from '../chunk-T7HAZC2E.js';
|
|
2
2
|
export { network_exports as network } from '../chunk-CRCR3ZUK.js';
|
|
3
3
|
export { scores_exports as scores } from '../chunk-6T5JUKOQ.js';
|
|
4
4
|
export { telemetry_exports as telemetry } from '../chunk-RG473F6Y.js';
|
|
5
|
-
export { tools_exports as tools } from '../chunk-
|
|
5
|
+
export { tools_exports as tools } from '../chunk-WBRFIHSF.js';
|
|
6
6
|
export { vector_exports as vector } from '../chunk-WNVFNNWN.js';
|
|
7
7
|
export { voice_exports as voice } from '../chunk-KHZKYUNR.js';
|
|
8
8
|
export { a2a_exports as a2a } from '../chunk-GHC4YV6R.js';
|
|
9
|
-
export { agents_exports as agents } from '../chunk-
|
|
10
|
-
export { legacyWorkflows_exports as legacyWorkflows } from '../chunk-
|
|
9
|
+
export { agents_exports as agents } from '../chunk-VTTN2FW3.js';
|
|
10
|
+
export { legacyWorkflows_exports as legacyWorkflows } from '../chunk-ZYAFP2AV.js';
|
|
11
11
|
export { logs_exports as logs } from '../chunk-4D66QEKC.js';
|
|
12
12
|
export { memory_exports as memory } from '../chunk-R3I7AJVL.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0-alpha.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"vitest": "^3.2.4",
|
|
60
60
|
"zod": "^3.25.67",
|
|
61
61
|
"zod-to-json-schema": "^3.24.5",
|
|
62
|
-
"@internal/
|
|
63
|
-
"@internal/
|
|
64
|
-
"@mastra/core": "0.
|
|
62
|
+
"@internal/lint": "0.0.23",
|
|
63
|
+
"@internal/storage-test-utils": "0.0.19",
|
|
64
|
+
"@mastra/core": "0.12.0-alpha.0"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "tsup src/index.ts src/server/handlers.ts src/server/handlers/*.ts !src/server/handlers/*.test.ts --format esm,cjs --clean --experimental-dts --treeshake=smallest --splitting",
|