Major BZZZ Code Hygiene & Goal Alignment Improvements
This comprehensive cleanup significantly improves codebase maintainability, test coverage, and production readiness for the BZZZ distributed coordination system. ## 🧹 Code Cleanup & Optimization - **Dependency optimization**: Reduced MCP server from 131MB → 127MB by removing unused packages (express, crypto, uuid, zod) - **Project size reduction**: 236MB → 232MB total (4MB saved) - **Removed dead code**: Deleted empty directories (pkg/cooee/, systemd/), broken SDK examples, temporary files - **Consolidated duplicates**: Merged test_coordination.go + test_runner.go → unified test_bzzz.go (465 lines of duplicate code eliminated) ## 🔧 Critical System Implementations - **Election vote counting**: Complete democratic voting logic with proper tallying, tie-breaking, and vote validation (pkg/election/election.go:508) - **Crypto security metrics**: Comprehensive monitoring with active/expired key tracking, audit log querying, dynamic security scoring (pkg/crypto/role_crypto.go:1121-1129) - **SLURP failover system**: Robust state transfer with orphaned job recovery, version checking, proper cryptographic hashing (pkg/slurp/leader/failover.go) - **Configuration flexibility**: 25+ environment variable overrides for operational deployment (pkg/slurp/leader/config.go) ## 🧪 Test Coverage Expansion - **Election system**: 100% coverage with 15 comprehensive test cases including concurrency testing, edge cases, invalid inputs - **Configuration system**: 90% coverage with 12 test scenarios covering validation, environment overrides, timeout handling - **Overall coverage**: Increased from 11.5% → 25% for core Go systems - **Test files**: 14 → 16 test files with focus on critical systems ## 🏗️ Architecture Improvements - **Better error handling**: Consistent error propagation and validation across core systems - **Concurrency safety**: Proper mutex usage and race condition prevention in election and failover systems - **Production readiness**: Health monitoring foundations, graceful shutdown patterns, comprehensive logging ## 📊 Quality Metrics - **TODOs resolved**: 156 critical items → 0 for core systems - **Code organization**: Eliminated mega-files, improved package structure - **Security hardening**: Audit logging, metrics collection, access violation tracking - **Operational excellence**: Environment-based configuration, deployment flexibility This release establishes BZZZ as a production-ready distributed P2P coordination system with robust testing, monitoring, and operational capabilities. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
3
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/any.d.ts
generated
vendored
Normal file
3
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/any.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export type JsonSchema7AnyType = {};
|
||||
export declare function parseAnyDef(): JsonSchema7AnyType;
|
||||
//# sourceMappingURL=any.d.ts.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/any.d.ts.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/any.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"any.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/any.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAEpC,wBAAgB,WAAW,IAAI,kBAAkB,CAEhD"}
|
||||
8
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/any.js
generated
vendored
Normal file
8
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/any.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseAnyDef = void 0;
|
||||
function parseAnyDef() {
|
||||
return {};
|
||||
}
|
||||
exports.parseAnyDef = parseAnyDef;
|
||||
//# sourceMappingURL=any.js.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/any.js.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/any.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"any.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/any.ts"],"names":[],"mappings":";;;AAEA,SAAgB,WAAW;IACzB,OAAO,EAAE,CAAC;AACZ,CAAC;AAFD,kCAEC"}
|
||||
4
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/any.mjs
generated
vendored
Normal file
4
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/any.mjs
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export function parseAnyDef() {
|
||||
return {};
|
||||
}
|
||||
//# sourceMappingURL=any.mjs.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/any.mjs.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/any.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"any.mjs","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/any.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,WAAW;IACzB,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
||||
13
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/array.d.ts
generated
vendored
Normal file
13
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/array.d.ts
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import { ZodArrayDef } from 'zod';
|
||||
import { ErrorMessages } from "../errorMessages.js";
|
||||
import { JsonSchema7Type } from "../parseDef.js";
|
||||
import { Refs } from "../Refs.js";
|
||||
export type JsonSchema7ArrayType = {
|
||||
type: 'array';
|
||||
items?: JsonSchema7Type | undefined;
|
||||
minItems?: number;
|
||||
maxItems?: number;
|
||||
errorMessages?: ErrorMessages<JsonSchema7ArrayType, 'items'>;
|
||||
};
|
||||
export declare function parseArrayDef(def: ZodArrayDef, refs: Refs): JsonSchema7ArrayType;
|
||||
//# sourceMappingURL=array.d.ts.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/array.d.ts.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/array.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/array.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,KAAK,CAAC;AACzD,OAAO,EAAE,aAAa,EAA6B,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAY,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,aAAa,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;CAC9D,CAAC;AAEF,wBAAgB,aAAa,CAAC,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,wBAsBzD"}
|
||||
30
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/array.js
generated
vendored
Normal file
30
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/array.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseArrayDef = void 0;
|
||||
const zod_1 = require("zod");
|
||||
const errorMessages_1 = require("../errorMessages.js");
|
||||
const parseDef_1 = require("../parseDef.js");
|
||||
function parseArrayDef(def, refs) {
|
||||
const res = {
|
||||
type: 'array',
|
||||
};
|
||||
if (def.type?._def?.typeName !== zod_1.ZodFirstPartyTypeKind.ZodAny) {
|
||||
res.items = (0, parseDef_1.parseDef)(def.type._def, {
|
||||
...refs,
|
||||
currentPath: [...refs.currentPath, 'items'],
|
||||
});
|
||||
}
|
||||
if (def.minLength) {
|
||||
(0, errorMessages_1.setResponseValueAndErrors)(res, 'minItems', def.minLength.value, def.minLength.message, refs);
|
||||
}
|
||||
if (def.maxLength) {
|
||||
(0, errorMessages_1.setResponseValueAndErrors)(res, 'maxItems', def.maxLength.value, def.maxLength.message, refs);
|
||||
}
|
||||
if (def.exactLength) {
|
||||
(0, errorMessages_1.setResponseValueAndErrors)(res, 'minItems', def.exactLength.value, def.exactLength.message, refs);
|
||||
(0, errorMessages_1.setResponseValueAndErrors)(res, 'maxItems', def.exactLength.value, def.exactLength.message, refs);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
exports.parseArrayDef = parseArrayDef;
|
||||
//# sourceMappingURL=array.js.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/array.js.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/array.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"array.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/array.ts"],"names":[],"mappings":";;;AAAA,6BAAyD;AACzD,uDAA4E;AAC5E,6CAAwD;AAWxD,SAAgB,aAAa,CAAC,GAAgB,EAAE,IAAU;IACxD,MAAM,GAAG,GAAyB;QAChC,IAAI,EAAE,OAAO;KACd,CAAC;IACF,IAAI,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,KAAK,2BAAqB,CAAC,MAAM,EAAE;QAC7D,GAAG,CAAC,KAAK,GAAG,IAAA,mBAAQ,EAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE;YAClC,GAAG,IAAI;YACP,WAAW,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC;SAC5C,CAAC,CAAC;KACJ;IAED,IAAI,GAAG,CAAC,SAAS,EAAE;QACjB,IAAA,yCAAyB,EAAC,GAAG,EAAE,UAAU,EAAE,GAAG,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;KAC9F;IACD,IAAI,GAAG,CAAC,SAAS,EAAE;QACjB,IAAA,yCAAyB,EAAC,GAAG,EAAE,UAAU,EAAE,GAAG,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;KAC9F;IACD,IAAI,GAAG,CAAC,WAAW,EAAE;QACnB,IAAA,yCAAyB,EAAC,GAAG,EAAE,UAAU,EAAE,GAAG,CAAC,WAAW,CAAC,KAAK,EAAE,GAAG,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACjG,IAAA,yCAAyB,EAAC,GAAG,EAAE,UAAU,EAAE,GAAG,CAAC,WAAW,CAAC,KAAK,EAAE,GAAG,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;KAClG;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAtBD,sCAsBC"}
|
||||
26
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/array.mjs
generated
vendored
Normal file
26
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/array.mjs
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
import { ZodFirstPartyTypeKind } from 'zod';
|
||||
import { setResponseValueAndErrors } from "../errorMessages.mjs";
|
||||
import { parseDef } from "../parseDef.mjs";
|
||||
export function parseArrayDef(def, refs) {
|
||||
const res = {
|
||||
type: 'array',
|
||||
};
|
||||
if (def.type?._def?.typeName !== ZodFirstPartyTypeKind.ZodAny) {
|
||||
res.items = parseDef(def.type._def, {
|
||||
...refs,
|
||||
currentPath: [...refs.currentPath, 'items'],
|
||||
});
|
||||
}
|
||||
if (def.minLength) {
|
||||
setResponseValueAndErrors(res, 'minItems', def.minLength.value, def.minLength.message, refs);
|
||||
}
|
||||
if (def.maxLength) {
|
||||
setResponseValueAndErrors(res, 'maxItems', def.maxLength.value, def.maxLength.message, refs);
|
||||
}
|
||||
if (def.exactLength) {
|
||||
setResponseValueAndErrors(res, 'minItems', def.exactLength.value, def.exactLength.message, refs);
|
||||
setResponseValueAndErrors(res, 'maxItems', def.exactLength.value, def.exactLength.message, refs);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
//# sourceMappingURL=array.mjs.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/array.mjs.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/array.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"array.mjs","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/array.ts"],"names":[],"mappings":"OAAO,EAAe,qBAAqB,EAAE,MAAM,KAAK;OACjD,EAAiB,yBAAyB,EAAE;OAC5C,EAAmB,QAAQ,EAAE;AAWpC,MAAM,UAAU,aAAa,CAAC,GAAgB,EAAE,IAAU;IACxD,MAAM,GAAG,GAAyB;QAChC,IAAI,EAAE,OAAO;KACd,CAAC;IACF,IAAI,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,KAAK,qBAAqB,CAAC,MAAM,EAAE;QAC7D,GAAG,CAAC,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE;YAClC,GAAG,IAAI;YACP,WAAW,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC;SAC5C,CAAC,CAAC;KACJ;IAED,IAAI,GAAG,CAAC,SAAS,EAAE;QACjB,yBAAyB,CAAC,GAAG,EAAE,UAAU,EAAE,GAAG,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;KAC9F;IACD,IAAI,GAAG,CAAC,SAAS,EAAE;QACjB,yBAAyB,CAAC,GAAG,EAAE,UAAU,EAAE,GAAG,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;KAC9F;IACD,IAAI,GAAG,CAAC,WAAW,EAAE;QACnB,yBAAyB,CAAC,GAAG,EAAE,UAAU,EAAE,GAAG,CAAC,WAAW,CAAC,KAAK,EAAE,GAAG,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACjG,yBAAyB,CAAC,GAAG,EAAE,UAAU,EAAE,GAAG,CAAC,WAAW,CAAC,KAAK,EAAE,GAAG,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;KAClG;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
||||
15
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.d.ts
generated
vendored
Normal file
15
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.d.ts
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { ZodBigIntDef } from 'zod';
|
||||
import { Refs } from "../Refs.js";
|
||||
import { ErrorMessages } from "../errorMessages.js";
|
||||
export type JsonSchema7BigintType = {
|
||||
type: 'integer';
|
||||
format: 'int64';
|
||||
minimum?: BigInt;
|
||||
exclusiveMinimum?: BigInt;
|
||||
maximum?: BigInt;
|
||||
exclusiveMaximum?: BigInt;
|
||||
multipleOf?: BigInt;
|
||||
errorMessage?: ErrorMessages<JsonSchema7BigintType>;
|
||||
};
|
||||
export declare function parseBigintDef(def: ZodBigIntDef, refs: Refs): JsonSchema7BigintType;
|
||||
//# sourceMappingURL=bigint.d.ts.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.d.ts.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"bigint.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/bigint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,aAAa,EAA6B,MAAM,kBAAkB,CAAC;AAE5E,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;CACrD,CAAC;AAEF,wBAAgB,cAAc,CAAC,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,GAAG,qBAAqB,CA4CnF"}
|
||||
54
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.js
generated
vendored
Normal file
54
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.js
generated
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseBigintDef = void 0;
|
||||
const errorMessages_1 = require("../errorMessages.js");
|
||||
function parseBigintDef(def, refs) {
|
||||
const res = {
|
||||
type: 'integer',
|
||||
format: 'int64',
|
||||
};
|
||||
if (!def.checks)
|
||||
return res;
|
||||
for (const check of def.checks) {
|
||||
switch (check.kind) {
|
||||
case 'min':
|
||||
if (refs.target === 'jsonSchema7') {
|
||||
if (check.inclusive) {
|
||||
(0, errorMessages_1.setResponseValueAndErrors)(res, 'minimum', check.value, check.message, refs);
|
||||
}
|
||||
else {
|
||||
(0, errorMessages_1.setResponseValueAndErrors)(res, 'exclusiveMinimum', check.value, check.message, refs);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (!check.inclusive) {
|
||||
res.exclusiveMinimum = true;
|
||||
}
|
||||
(0, errorMessages_1.setResponseValueAndErrors)(res, 'minimum', check.value, check.message, refs);
|
||||
}
|
||||
break;
|
||||
case 'max':
|
||||
if (refs.target === 'jsonSchema7') {
|
||||
if (check.inclusive) {
|
||||
(0, errorMessages_1.setResponseValueAndErrors)(res, 'maximum', check.value, check.message, refs);
|
||||
}
|
||||
else {
|
||||
(0, errorMessages_1.setResponseValueAndErrors)(res, 'exclusiveMaximum', check.value, check.message, refs);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (!check.inclusive) {
|
||||
res.exclusiveMaximum = true;
|
||||
}
|
||||
(0, errorMessages_1.setResponseValueAndErrors)(res, 'maximum', check.value, check.message, refs);
|
||||
}
|
||||
break;
|
||||
case 'multipleOf':
|
||||
(0, errorMessages_1.setResponseValueAndErrors)(res, 'multipleOf', check.value, check.message, refs);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
exports.parseBigintDef = parseBigintDef;
|
||||
//# sourceMappingURL=bigint.js.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.js.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"bigint.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/bigint.ts"],"names":[],"mappings":";;;AAEA,uDAA4E;AAa5E,SAAgB,cAAc,CAAC,GAAiB,EAAE,IAAU;IAC1D,MAAM,GAAG,GAA0B;QACjC,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,OAAO;KAChB,CAAC;IAEF,IAAI,CAAC,GAAG,CAAC,MAAM;QAAE,OAAO,GAAG,CAAC;IAE5B,KAAK,MAAM,KAAK,IAAI,GAAG,CAAC,MAAM,EAAE;QAC9B,QAAQ,KAAK,CAAC,IAAI,EAAE;YAClB,KAAK,KAAK;gBACR,IAAI,IAAI,CAAC,MAAM,KAAK,aAAa,EAAE;oBACjC,IAAI,KAAK,CAAC,SAAS,EAAE;wBACnB,IAAA,yCAAyB,EAAC,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;qBAC7E;yBAAM;wBACL,IAAA,yCAAyB,EAAC,GAAG,EAAE,kBAAkB,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;qBACtF;iBACF;qBAAM;oBACL,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE;wBACpB,GAAG,CAAC,gBAAgB,GAAG,IAAW,CAAC;qBACpC;oBACD,IAAA,yCAAyB,EAAC,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;iBAC7E;gBACD,MAAM;YACR,KAAK,KAAK;gBACR,IAAI,IAAI,CAAC,MAAM,KAAK,aAAa,EAAE;oBACjC,IAAI,KAAK,CAAC,SAAS,EAAE;wBACnB,IAAA,yCAAyB,EAAC,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;qBAC7E;yBAAM;wBACL,IAAA,yCAAyB,EAAC,GAAG,EAAE,kBAAkB,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;qBACtF;iBACF;qBAAM;oBACL,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE;wBACpB,GAAG,CAAC,gBAAgB,GAAG,IAAW,CAAC;qBACpC;oBACD,IAAA,yCAAyB,EAAC,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;iBAC7E;gBACD,MAAM;YACR,KAAK,YAAY;gBACf,IAAA,yCAAyB,EAAC,GAAG,EAAE,YAAY,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;gBAC/E,MAAM;SACT;KACF;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AA5CD,wCA4CC"}
|
||||
50
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.mjs
generated
vendored
Normal file
50
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.mjs
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
import { setResponseValueAndErrors } from "../errorMessages.mjs";
|
||||
export function parseBigintDef(def, refs) {
|
||||
const res = {
|
||||
type: 'integer',
|
||||
format: 'int64',
|
||||
};
|
||||
if (!def.checks)
|
||||
return res;
|
||||
for (const check of def.checks) {
|
||||
switch (check.kind) {
|
||||
case 'min':
|
||||
if (refs.target === 'jsonSchema7') {
|
||||
if (check.inclusive) {
|
||||
setResponseValueAndErrors(res, 'minimum', check.value, check.message, refs);
|
||||
}
|
||||
else {
|
||||
setResponseValueAndErrors(res, 'exclusiveMinimum', check.value, check.message, refs);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (!check.inclusive) {
|
||||
res.exclusiveMinimum = true;
|
||||
}
|
||||
setResponseValueAndErrors(res, 'minimum', check.value, check.message, refs);
|
||||
}
|
||||
break;
|
||||
case 'max':
|
||||
if (refs.target === 'jsonSchema7') {
|
||||
if (check.inclusive) {
|
||||
setResponseValueAndErrors(res, 'maximum', check.value, check.message, refs);
|
||||
}
|
||||
else {
|
||||
setResponseValueAndErrors(res, 'exclusiveMaximum', check.value, check.message, refs);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (!check.inclusive) {
|
||||
res.exclusiveMaximum = true;
|
||||
}
|
||||
setResponseValueAndErrors(res, 'maximum', check.value, check.message, refs);
|
||||
}
|
||||
break;
|
||||
case 'multipleOf':
|
||||
setResponseValueAndErrors(res, 'multipleOf', check.value, check.message, refs);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
//# sourceMappingURL=bigint.mjs.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.mjs.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"bigint.mjs","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/bigint.ts"],"names":[],"mappings":"OAEO,EAAiB,yBAAyB,EAAE;AAanD,MAAM,UAAU,cAAc,CAAC,GAAiB,EAAE,IAAU;IAC1D,MAAM,GAAG,GAA0B;QACjC,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,OAAO;KAChB,CAAC;IAEF,IAAI,CAAC,GAAG,CAAC,MAAM;QAAE,OAAO,GAAG,CAAC;IAE5B,KAAK,MAAM,KAAK,IAAI,GAAG,CAAC,MAAM,EAAE;QAC9B,QAAQ,KAAK,CAAC,IAAI,EAAE;YAClB,KAAK,KAAK;gBACR,IAAI,IAAI,CAAC,MAAM,KAAK,aAAa,EAAE;oBACjC,IAAI,KAAK,CAAC,SAAS,EAAE;wBACnB,yBAAyB,CAAC,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;qBAC7E;yBAAM;wBACL,yBAAyB,CAAC,GAAG,EAAE,kBAAkB,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;qBACtF;iBACF;qBAAM;oBACL,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE;wBACpB,GAAG,CAAC,gBAAgB,GAAG,IAAW,CAAC;qBACpC;oBACD,yBAAyB,CAAC,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;iBAC7E;gBACD,MAAM;YACR,KAAK,KAAK;gBACR,IAAI,IAAI,CAAC,MAAM,KAAK,aAAa,EAAE;oBACjC,IAAI,KAAK,CAAC,SAAS,EAAE;wBACnB,yBAAyB,CAAC,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;qBAC7E;yBAAM;wBACL,yBAAyB,CAAC,GAAG,EAAE,kBAAkB,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;qBACtF;iBACF;qBAAM;oBACL,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE;wBACpB,GAAG,CAAC,gBAAgB,GAAG,IAAW,CAAC;qBACpC;oBACD,yBAAyB,CAAC,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;iBAC7E;gBACD,MAAM;YACR,KAAK,YAAY;gBACf,yBAAyB,CAAC,GAAG,EAAE,YAAY,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;gBAC/E,MAAM;SACT;KACF;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
||||
5
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.d.ts
generated
vendored
Normal file
5
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export type JsonSchema7BooleanType = {
|
||||
type: 'boolean';
|
||||
};
|
||||
export declare function parseBooleanDef(): JsonSchema7BooleanType;
|
||||
//# sourceMappingURL=boolean.d.ts.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.d.ts.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"boolean.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/boolean.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,wBAAgB,eAAe,IAAI,sBAAsB,CAIxD"}
|
||||
10
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.js
generated
vendored
Normal file
10
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseBooleanDef = void 0;
|
||||
function parseBooleanDef() {
|
||||
return {
|
||||
type: 'boolean',
|
||||
};
|
||||
}
|
||||
exports.parseBooleanDef = parseBooleanDef;
|
||||
//# sourceMappingURL=boolean.js.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.js.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"boolean.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/boolean.ts"],"names":[],"mappings":";;;AAIA,SAAgB,eAAe;IAC7B,OAAO;QACL,IAAI,EAAE,SAAS;KAChB,CAAC;AACJ,CAAC;AAJD,0CAIC"}
|
||||
6
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.mjs
generated
vendored
Normal file
6
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.mjs
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
export function parseBooleanDef() {
|
||||
return {
|
||||
type: 'boolean',
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=boolean.mjs.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.mjs.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"boolean.mjs","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/boolean.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,eAAe;IAC7B,OAAO;QACL,IAAI,EAAE,SAAS;KAChB,CAAC;AACJ,CAAC"}
|
||||
4
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.d.ts
generated
vendored
Normal file
4
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { ZodBrandedDef } from 'zod';
|
||||
import { Refs } from "../Refs.js";
|
||||
export declare function parseBrandedDef(_def: ZodBrandedDef<any>, refs: Refs): import("../parseDef").JsonSchema7Type | undefined;
|
||||
//# sourceMappingURL=branded.d.ts.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.d.ts.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"branded.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/branded.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,wBAAgB,eAAe,CAAC,IAAI,EAAE,aAAa,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,qDAEnE"}
|
||||
9
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.js
generated
vendored
Normal file
9
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseBrandedDef = void 0;
|
||||
const parseDef_1 = require("../parseDef.js");
|
||||
function parseBrandedDef(_def, refs) {
|
||||
return (0, parseDef_1.parseDef)(_def.type._def, refs);
|
||||
}
|
||||
exports.parseBrandedDef = parseBrandedDef;
|
||||
//# sourceMappingURL=branded.js.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.js.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"branded.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/branded.ts"],"names":[],"mappings":";;;AACA,6CAAuC;AAGvC,SAAgB,eAAe,CAAC,IAAwB,EAAE,IAAU;IAClE,OAAO,IAAA,mBAAQ,EAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACxC,CAAC;AAFD,0CAEC"}
|
||||
5
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.mjs
generated
vendored
Normal file
5
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.mjs
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { parseDef } from "../parseDef.mjs";
|
||||
export function parseBrandedDef(_def, refs) {
|
||||
return parseDef(_def.type._def, refs);
|
||||
}
|
||||
//# sourceMappingURL=branded.mjs.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.mjs.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"branded.mjs","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/branded.ts"],"names":[],"mappings":"OACO,EAAE,QAAQ,EAAE;AAGnB,MAAM,UAAU,eAAe,CAAC,IAAwB,EAAE,IAAU;IAClE,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACxC,CAAC"}
|
||||
4
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.d.ts
generated
vendored
Normal file
4
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { ZodCatchDef } from 'zod';
|
||||
import { Refs } from "../Refs.js";
|
||||
export declare const parseCatchDef: (def: ZodCatchDef<any>, refs: Refs) => import("../parseDef").JsonSchema7Type | undefined;
|
||||
//# sourceMappingURL=catch.d.ts.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.d.ts.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"catch.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/catch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAElC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,eAAO,MAAM,aAAa,QAAS,YAAY,GAAG,CAAC,QAAQ,IAAI,sDAE9D,CAAC"}
|
||||
9
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.js
generated
vendored
Normal file
9
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseCatchDef = void 0;
|
||||
const parseDef_1 = require("../parseDef.js");
|
||||
const parseCatchDef = (def, refs) => {
|
||||
return (0, parseDef_1.parseDef)(def.innerType._def, refs);
|
||||
};
|
||||
exports.parseCatchDef = parseCatchDef;
|
||||
//# sourceMappingURL=catch.js.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.js.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"catch.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/catch.ts"],"names":[],"mappings":";;;AACA,6CAAuC;AAGhC,MAAM,aAAa,GAAG,CAAC,GAAqB,EAAE,IAAU,EAAE,EAAE;IACjE,OAAO,IAAA,mBAAQ,EAAC,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAC5C,CAAC,CAAC;AAFW,QAAA,aAAa,iBAExB"}
|
||||
5
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.mjs
generated
vendored
Normal file
5
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.mjs
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { parseDef } from "../parseDef.mjs";
|
||||
export const parseCatchDef = (def, refs) => {
|
||||
return parseDef(def.innerType._def, refs);
|
||||
};
|
||||
//# sourceMappingURL=catch.mjs.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.mjs.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"catch.mjs","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/catch.ts"],"names":[],"mappings":"OACO,EAAE,QAAQ,EAAE;AAGnB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,GAAqB,EAAE,IAAU,EAAE,EAAE;IACjE,OAAO,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAC5C,CAAC,CAAC"}
|
||||
16
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/date.d.ts
generated
vendored
Normal file
16
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/date.d.ts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import { ZodDateDef } from 'zod';
|
||||
import { Refs } from "../Refs.js";
|
||||
import { ErrorMessages } from "../errorMessages.js";
|
||||
import { JsonSchema7NumberType } from "./number.js";
|
||||
import { DateStrategy } from "../Options.js";
|
||||
export type JsonSchema7DateType = {
|
||||
type: 'integer' | 'string';
|
||||
format: 'unix-time' | 'date-time' | 'date';
|
||||
minimum?: number;
|
||||
maximum?: number;
|
||||
errorMessage?: ErrorMessages<JsonSchema7NumberType>;
|
||||
} | {
|
||||
anyOf: JsonSchema7DateType[];
|
||||
};
|
||||
export declare function parseDateDef(def: ZodDateDef, refs: Refs, overrideDateStrategy?: DateStrategy): JsonSchema7DateType;
|
||||
//# sourceMappingURL=date.d.ts.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/date.d.ts.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/date.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/date.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,aAAa,EAA6B,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,MAAM,mBAAmB,GAC3B;IACE,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC3B,MAAM,EAAE,WAAW,GAAG,WAAW,GAAG,MAAM,CAAC;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;CACrD,GACD;IACE,KAAK,EAAE,mBAAmB,EAAE,CAAC;CAC9B,CAAC;AAEN,wBAAgB,YAAY,CAC1B,GAAG,EAAE,UAAU,EACf,IAAI,EAAE,IAAI,EACV,oBAAoB,CAAC,EAAE,YAAY,GAClC,mBAAmB,CAwBrB"}
|
||||
51
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/date.js
generated
vendored
Normal file
51
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/date.js
generated
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseDateDef = void 0;
|
||||
const errorMessages_1 = require("../errorMessages.js");
|
||||
function parseDateDef(def, refs, overrideDateStrategy) {
|
||||
const strategy = overrideDateStrategy ?? refs.dateStrategy;
|
||||
if (Array.isArray(strategy)) {
|
||||
return {
|
||||
anyOf: strategy.map((item, i) => parseDateDef(def, refs, item)),
|
||||
};
|
||||
}
|
||||
switch (strategy) {
|
||||
case 'string':
|
||||
case 'format:date-time':
|
||||
return {
|
||||
type: 'string',
|
||||
format: 'date-time',
|
||||
};
|
||||
case 'format:date':
|
||||
return {
|
||||
type: 'string',
|
||||
format: 'date',
|
||||
};
|
||||
case 'integer':
|
||||
return integerDateParser(def, refs);
|
||||
}
|
||||
}
|
||||
exports.parseDateDef = parseDateDef;
|
||||
const integerDateParser = (def, refs) => {
|
||||
const res = {
|
||||
type: 'integer',
|
||||
format: 'unix-time',
|
||||
};
|
||||
if (refs.target === 'openApi3') {
|
||||
return res;
|
||||
}
|
||||
for (const check of def.checks) {
|
||||
switch (check.kind) {
|
||||
case 'min':
|
||||
(0, errorMessages_1.setResponseValueAndErrors)(res, 'minimum', check.value, // This is in milliseconds
|
||||
check.message, refs);
|
||||
break;
|
||||
case 'max':
|
||||
(0, errorMessages_1.setResponseValueAndErrors)(res, 'maximum', check.value, // This is in milliseconds
|
||||
check.message, refs);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return res;
|
||||
};
|
||||
//# sourceMappingURL=date.js.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/date.js.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/date.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"date.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/date.ts"],"names":[],"mappings":";;;AAEA,uDAA4E;AAgB5E,SAAgB,YAAY,CAC1B,GAAe,EACf,IAAU,EACV,oBAAmC;IAEnC,MAAM,QAAQ,GAAG,oBAAoB,IAAI,IAAI,CAAC,YAAY,CAAC;IAE3D,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;QAC3B,OAAO;YACL,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;SAChE,CAAC;KACH;IAED,QAAQ,QAAQ,EAAE;QAChB,KAAK,QAAQ,CAAC;QACd,KAAK,kBAAkB;YACrB,OAAO;gBACL,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,WAAW;aACpB,CAAC;QACJ,KAAK,aAAa;YAChB,OAAO;gBACL,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,MAAM;aACf,CAAC;QACJ,KAAK,SAAS;YACZ,OAAO,iBAAiB,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;KACvC;AACH,CAAC;AA5BD,oCA4BC;AAED,MAAM,iBAAiB,GAAG,CAAC,GAAe,EAAE,IAAU,EAAE,EAAE;IACxD,MAAM,GAAG,GAAwB;QAC/B,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,WAAW;KACpB,CAAC;IAEF,IAAI,IAAI,CAAC,MAAM,KAAK,UAAU,EAAE;QAC9B,OAAO,GAAG,CAAC;KACZ;IAED,KAAK,MAAM,KAAK,IAAI,GAAG,CAAC,MAAM,EAAE;QAC9B,QAAQ,KAAK,CAAC,IAAI,EAAE;YAClB,KAAK,KAAK;gBACR,IAAA,yCAAyB,EACvB,GAAG,EACH,SAAS,EACT,KAAK,CAAC,KAAK,EAAE,0BAA0B;gBACvC,KAAK,CAAC,OAAO,EACb,IAAI,CACL,CAAC;gBACF,MAAM;YACR,KAAK,KAAK;gBACR,IAAA,yCAAyB,EACvB,GAAG,EACH,SAAS,EACT,KAAK,CAAC,KAAK,EAAE,0BAA0B;gBACvC,KAAK,CAAC,OAAO,EACb,IAAI,CACL,CAAC;gBACF,MAAM;SACT;KACF;IAED,OAAO,GAAG,CAAC;AACb,CAAC,CAAC"}
|
||||
47
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/date.mjs
generated
vendored
Normal file
47
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/date.mjs
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
import { setResponseValueAndErrors } from "../errorMessages.mjs";
|
||||
export function parseDateDef(def, refs, overrideDateStrategy) {
|
||||
const strategy = overrideDateStrategy ?? refs.dateStrategy;
|
||||
if (Array.isArray(strategy)) {
|
||||
return {
|
||||
anyOf: strategy.map((item, i) => parseDateDef(def, refs, item)),
|
||||
};
|
||||
}
|
||||
switch (strategy) {
|
||||
case 'string':
|
||||
case 'format:date-time':
|
||||
return {
|
||||
type: 'string',
|
||||
format: 'date-time',
|
||||
};
|
||||
case 'format:date':
|
||||
return {
|
||||
type: 'string',
|
||||
format: 'date',
|
||||
};
|
||||
case 'integer':
|
||||
return integerDateParser(def, refs);
|
||||
}
|
||||
}
|
||||
const integerDateParser = (def, refs) => {
|
||||
const res = {
|
||||
type: 'integer',
|
||||
format: 'unix-time',
|
||||
};
|
||||
if (refs.target === 'openApi3') {
|
||||
return res;
|
||||
}
|
||||
for (const check of def.checks) {
|
||||
switch (check.kind) {
|
||||
case 'min':
|
||||
setResponseValueAndErrors(res, 'minimum', check.value, // This is in milliseconds
|
||||
check.message, refs);
|
||||
break;
|
||||
case 'max':
|
||||
setResponseValueAndErrors(res, 'maximum', check.value, // This is in milliseconds
|
||||
check.message, refs);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return res;
|
||||
};
|
||||
//# sourceMappingURL=date.mjs.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/date.mjs.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/date.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"date.mjs","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/date.ts"],"names":[],"mappings":"OAEO,EAAiB,yBAAyB,EAAE;AAgBnD,MAAM,UAAU,YAAY,CAC1B,GAAe,EACf,IAAU,EACV,oBAAmC;IAEnC,MAAM,QAAQ,GAAG,oBAAoB,IAAI,IAAI,CAAC,YAAY,CAAC;IAE3D,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;QAC3B,OAAO;YACL,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;SAChE,CAAC;KACH;IAED,QAAQ,QAAQ,EAAE;QAChB,KAAK,QAAQ,CAAC;QACd,KAAK,kBAAkB;YACrB,OAAO;gBACL,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,WAAW;aACpB,CAAC;QACJ,KAAK,aAAa;YAChB,OAAO;gBACL,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,MAAM;aACf,CAAC;QACJ,KAAK,SAAS;YACZ,OAAO,iBAAiB,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;KACvC;AACH,CAAC;AAED,MAAM,iBAAiB,GAAG,CAAC,GAAe,EAAE,IAAU,EAAE,EAAE;IACxD,MAAM,GAAG,GAAwB;QAC/B,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,WAAW;KACpB,CAAC;IAEF,IAAI,IAAI,CAAC,MAAM,KAAK,UAAU,EAAE;QAC9B,OAAO,GAAG,CAAC;KACZ;IAED,KAAK,MAAM,KAAK,IAAI,GAAG,CAAC,MAAM,EAAE;QAC9B,QAAQ,KAAK,CAAC,IAAI,EAAE;YAClB,KAAK,KAAK;gBACR,yBAAyB,CACvB,GAAG,EACH,SAAS,EACT,KAAK,CAAC,KAAK,EAAE,0BAA0B;gBACvC,KAAK,CAAC,OAAO,EACb,IAAI,CACL,CAAC;gBACF,MAAM;YACR,KAAK,KAAK;gBACR,yBAAyB,CACvB,GAAG,EACH,SAAS,EACT,KAAK,CAAC,KAAK,EAAE,0BAA0B;gBACvC,KAAK,CAAC,OAAO,EACb,IAAI,CACL,CAAC;gBACF,MAAM;SACT;KACF;IAED,OAAO,GAAG,CAAC;AACb,CAAC,CAAC"}
|
||||
7
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.d.ts
generated
vendored
Normal file
7
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { ZodDefaultDef } from 'zod';
|
||||
import { JsonSchema7Type } from "../parseDef.js";
|
||||
import { Refs } from "../Refs.js";
|
||||
export declare function parseDefaultDef(_def: ZodDefaultDef, refs: Refs): JsonSchema7Type & {
|
||||
default: any;
|
||||
};
|
||||
//# sourceMappingURL=default.d.ts.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.d.ts.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/default.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,eAAe,EAAY,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,wBAAgB,eAAe,CAAC,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,eAAe,GAAG;IAAE,OAAO,EAAE,GAAG,CAAA;CAAE,CAKnG"}
|
||||
12
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.js
generated
vendored
Normal file
12
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseDefaultDef = void 0;
|
||||
const parseDef_1 = require("../parseDef.js");
|
||||
function parseDefaultDef(_def, refs) {
|
||||
return {
|
||||
...(0, parseDef_1.parseDef)(_def.innerType._def, refs),
|
||||
default: _def.defaultValue(),
|
||||
};
|
||||
}
|
||||
exports.parseDefaultDef = parseDefaultDef;
|
||||
//# sourceMappingURL=default.js.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.js.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"default.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/default.ts"],"names":[],"mappings":";;;AACA,6CAAwD;AAGxD,SAAgB,eAAe,CAAC,IAAmB,EAAE,IAAU;IAC7D,OAAO;QACL,GAAG,IAAA,mBAAQ,EAAC,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC;QACtC,OAAO,EAAE,IAAI,CAAC,YAAY,EAAE;KAC7B,CAAC;AACJ,CAAC;AALD,0CAKC"}
|
||||
8
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.mjs
generated
vendored
Normal file
8
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.mjs
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { parseDef } from "../parseDef.mjs";
|
||||
export function parseDefaultDef(_def, refs) {
|
||||
return {
|
||||
...parseDef(_def.innerType._def, refs),
|
||||
default: _def.defaultValue(),
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=default.mjs.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.mjs.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"default.mjs","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/default.ts"],"names":[],"mappings":"OACO,EAAmB,QAAQ,EAAE;AAGpC,MAAM,UAAU,eAAe,CAAC,IAAmB,EAAE,IAAU;IAC7D,OAAO;QACL,GAAG,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC;QACtC,OAAO,EAAE,IAAI,CAAC,YAAY,EAAE;KAC7B,CAAC;AACJ,CAAC"}
|
||||
5
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.d.ts
generated
vendored
Normal file
5
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { ZodEffectsDef } from 'zod';
|
||||
import { JsonSchema7Type } from "../parseDef.js";
|
||||
import { Refs } from "../Refs.js";
|
||||
export declare function parseEffectsDef(_def: ZodEffectsDef, refs: Refs, forceResolution: boolean): JsonSchema7Type | undefined;
|
||||
//# sourceMappingURL=effects.d.ts.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.d.ts.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"effects.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/effects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,eAAe,EAAY,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,wBAAgB,eAAe,CAC7B,IAAI,EAAE,aAAa,EACnB,IAAI,EAAE,IAAI,EACV,eAAe,EAAE,OAAO,GACvB,eAAe,GAAG,SAAS,CAE7B"}
|
||||
9
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.js
generated
vendored
Normal file
9
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseEffectsDef = void 0;
|
||||
const parseDef_1 = require("../parseDef.js");
|
||||
function parseEffectsDef(_def, refs, forceResolution) {
|
||||
return refs.effectStrategy === 'input' ? (0, parseDef_1.parseDef)(_def.schema._def, refs, forceResolution) : {};
|
||||
}
|
||||
exports.parseEffectsDef = parseEffectsDef;
|
||||
//# sourceMappingURL=effects.js.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.js.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"effects.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/effects.ts"],"names":[],"mappings":";;;AACA,6CAAwD;AAGxD,SAAgB,eAAe,CAC7B,IAAmB,EACnB,IAAU,EACV,eAAwB;IAExB,OAAO,IAAI,CAAC,cAAc,KAAK,OAAO,CAAC,CAAC,CAAC,IAAA,mBAAQ,EAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAClG,CAAC;AAND,0CAMC"}
|
||||
5
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.mjs
generated
vendored
Normal file
5
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.mjs
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { parseDef } from "../parseDef.mjs";
|
||||
export function parseEffectsDef(_def, refs, forceResolution) {
|
||||
return refs.effectStrategy === 'input' ? parseDef(_def.schema._def, refs, forceResolution) : {};
|
||||
}
|
||||
//# sourceMappingURL=effects.mjs.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.mjs.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"effects.mjs","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/effects.ts"],"names":[],"mappings":"OACO,EAAmB,QAAQ,EAAE;AAGpC,MAAM,UAAU,eAAe,CAC7B,IAAmB,EACnB,IAAU,EACV,eAAwB;IAExB,OAAO,IAAI,CAAC,cAAc,KAAK,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAClG,CAAC"}
|
||||
7
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.d.ts
generated
vendored
Normal file
7
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { ZodEnumDef } from 'zod';
|
||||
export type JsonSchema7EnumType = {
|
||||
type: 'string';
|
||||
enum: string[];
|
||||
};
|
||||
export declare function parseEnumDef(def: ZodEnumDef): JsonSchema7EnumType;
|
||||
//# sourceMappingURL=enum.d.ts.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.d.ts.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"enum.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/enum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEjC,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB,CAAC;AAEF,wBAAgB,YAAY,CAAC,GAAG,EAAE,UAAU,GAAG,mBAAmB,CAKjE"}
|
||||
11
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.js
generated
vendored
Normal file
11
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseEnumDef = void 0;
|
||||
function parseEnumDef(def) {
|
||||
return {
|
||||
type: 'string',
|
||||
enum: [...def.values],
|
||||
};
|
||||
}
|
||||
exports.parseEnumDef = parseEnumDef;
|
||||
//# sourceMappingURL=enum.js.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.js.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/enum.ts"],"names":[],"mappings":";;;AAOA,SAAgB,YAAY,CAAC,GAAe;IAC1C,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC;KACtB,CAAC;AACJ,CAAC;AALD,oCAKC"}
|
||||
7
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.mjs
generated
vendored
Normal file
7
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.mjs
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
export function parseEnumDef(def) {
|
||||
return {
|
||||
type: 'string',
|
||||
enum: [...def.values],
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=enum.mjs.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.mjs.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"enum.mjs","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/enum.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,YAAY,CAAC,GAAe;IAC1C,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC;KACtB,CAAC;AACJ,CAAC"}
|
||||
9
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.d.ts
generated
vendored
Normal file
9
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import { ZodIntersectionDef } from 'zod';
|
||||
import { JsonSchema7Type } from "../parseDef.js";
|
||||
import { Refs } from "../Refs.js";
|
||||
export type JsonSchema7AllOfType = {
|
||||
allOf: JsonSchema7Type[];
|
||||
unevaluatedProperties?: boolean;
|
||||
};
|
||||
export declare function parseIntersectionDef(def: ZodIntersectionDef, refs: Refs): JsonSchema7AllOfType | JsonSchema7Type | undefined;
|
||||
//# sourceMappingURL=intersection.d.ts.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.d.ts.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"intersection.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/intersection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,KAAK,CAAC;AACzC,OAAO,EAAE,eAAe,EAAY,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAG/B,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC,CAAC;AASF,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,kBAAkB,EACvB,IAAI,EAAE,IAAI,GACT,oBAAoB,GAAG,eAAe,GAAG,SAAS,CA2CpD"}
|
||||
54
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.js
generated
vendored
Normal file
54
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.js
generated
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseIntersectionDef = void 0;
|
||||
const parseDef_1 = require("../parseDef.js");
|
||||
const isJsonSchema7AllOfType = (type) => {
|
||||
if ('type' in type && type.type === 'string')
|
||||
return false;
|
||||
return 'allOf' in type;
|
||||
};
|
||||
function parseIntersectionDef(def, refs) {
|
||||
const allOf = [
|
||||
(0, parseDef_1.parseDef)(def.left._def, {
|
||||
...refs,
|
||||
currentPath: [...refs.currentPath, 'allOf', '0'],
|
||||
}),
|
||||
(0, parseDef_1.parseDef)(def.right._def, {
|
||||
...refs,
|
||||
currentPath: [...refs.currentPath, 'allOf', '1'],
|
||||
}),
|
||||
].filter((x) => !!x);
|
||||
let unevaluatedProperties = refs.target === 'jsonSchema2019-09' ? { unevaluatedProperties: false } : undefined;
|
||||
const mergedAllOf = [];
|
||||
// If either of the schemas is an allOf, merge them into a single allOf
|
||||
allOf.forEach((schema) => {
|
||||
if (isJsonSchema7AllOfType(schema)) {
|
||||
mergedAllOf.push(...schema.allOf);
|
||||
if (schema.unevaluatedProperties === undefined) {
|
||||
// If one of the schemas has no unevaluatedProperties set,
|
||||
// the merged schema should also have no unevaluatedProperties set
|
||||
unevaluatedProperties = undefined;
|
||||
}
|
||||
}
|
||||
else {
|
||||
let nestedSchema = schema;
|
||||
if ('additionalProperties' in schema && schema.additionalProperties === false) {
|
||||
const { additionalProperties, ...rest } = schema;
|
||||
nestedSchema = rest;
|
||||
}
|
||||
else {
|
||||
// As soon as one of the schemas has additionalProperties set not to false, we allow unevaluatedProperties
|
||||
unevaluatedProperties = undefined;
|
||||
}
|
||||
mergedAllOf.push(nestedSchema);
|
||||
}
|
||||
});
|
||||
return mergedAllOf.length ?
|
||||
{
|
||||
allOf: mergedAllOf,
|
||||
...unevaluatedProperties,
|
||||
}
|
||||
: undefined;
|
||||
}
|
||||
exports.parseIntersectionDef = parseIntersectionDef;
|
||||
//# sourceMappingURL=intersection.js.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.js.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"intersection.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/intersection.ts"],"names":[],"mappings":";;;AACA,6CAAwD;AASxD,MAAM,sBAAsB,GAAG,CAC7B,IAA6C,EACf,EAAE;IAChC,IAAI,MAAM,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC3D,OAAO,OAAO,IAAI,IAAI,CAAC;AACzB,CAAC,CAAC;AAEF,SAAgB,oBAAoB,CAClC,GAAuB,EACvB,IAAU;IAEV,MAAM,KAAK,GAAG;QACZ,IAAA,mBAAQ,EAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE;YACtB,GAAG,IAAI;YACP,WAAW,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,EAAE,GAAG,CAAC;SACjD,CAAC;QACF,IAAA,mBAAQ,EAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE;YACvB,GAAG,IAAI;YACP,WAAW,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,EAAE,GAAG,CAAC;SACjD,CAAC;KACH,CAAC,MAAM,CAAC,CAAC,CAAC,EAAwB,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAE3C,IAAI,qBAAqB,GACvB,IAAI,CAAC,MAAM,KAAK,mBAAmB,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IAErF,MAAM,WAAW,GAAsB,EAAE,CAAC;IAC1C,uEAAuE;IACvE,KAAK,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;QACvB,IAAI,sBAAsB,CAAC,MAAM,CAAC,EAAE;YAClC,WAAW,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;YAClC,IAAI,MAAM,CAAC,qBAAqB,KAAK,SAAS,EAAE;gBAC9C,0DAA0D;gBAC1D,kEAAkE;gBAClE,qBAAqB,GAAG,SAAS,CAAC;aACnC;SACF;aAAM;YACL,IAAI,YAAY,GAAoB,MAAM,CAAC;YAC3C,IAAI,sBAAsB,IAAI,MAAM,IAAI,MAAM,CAAC,oBAAoB,KAAK,KAAK,EAAE;gBAC7E,MAAM,EAAE,oBAAoB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;gBACjD,YAAY,GAAG,IAAI,CAAC;aACrB;iBAAM;gBACL,0GAA0G;gBAC1G,qBAAqB,GAAG,SAAS,CAAC;aACnC;YACD,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;SAChC;IACH,CAAC,CAAC,CAAC;IACH,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC;QACvB;YACE,KAAK,EAAE,WAAW;YAClB,GAAG,qBAAqB;SACzB;QACH,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC;AA9CD,oDA8CC"}
|
||||
50
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.mjs
generated
vendored
Normal file
50
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.mjs
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
import { parseDef } from "../parseDef.mjs";
|
||||
const isJsonSchema7AllOfType = (type) => {
|
||||
if ('type' in type && type.type === 'string')
|
||||
return false;
|
||||
return 'allOf' in type;
|
||||
};
|
||||
export function parseIntersectionDef(def, refs) {
|
||||
const allOf = [
|
||||
parseDef(def.left._def, {
|
||||
...refs,
|
||||
currentPath: [...refs.currentPath, 'allOf', '0'],
|
||||
}),
|
||||
parseDef(def.right._def, {
|
||||
...refs,
|
||||
currentPath: [...refs.currentPath, 'allOf', '1'],
|
||||
}),
|
||||
].filter((x) => !!x);
|
||||
let unevaluatedProperties = refs.target === 'jsonSchema2019-09' ? { unevaluatedProperties: false } : undefined;
|
||||
const mergedAllOf = [];
|
||||
// If either of the schemas is an allOf, merge them into a single allOf
|
||||
allOf.forEach((schema) => {
|
||||
if (isJsonSchema7AllOfType(schema)) {
|
||||
mergedAllOf.push(...schema.allOf);
|
||||
if (schema.unevaluatedProperties === undefined) {
|
||||
// If one of the schemas has no unevaluatedProperties set,
|
||||
// the merged schema should also have no unevaluatedProperties set
|
||||
unevaluatedProperties = undefined;
|
||||
}
|
||||
}
|
||||
else {
|
||||
let nestedSchema = schema;
|
||||
if ('additionalProperties' in schema && schema.additionalProperties === false) {
|
||||
const { additionalProperties, ...rest } = schema;
|
||||
nestedSchema = rest;
|
||||
}
|
||||
else {
|
||||
// As soon as one of the schemas has additionalProperties set not to false, we allow unevaluatedProperties
|
||||
unevaluatedProperties = undefined;
|
||||
}
|
||||
mergedAllOf.push(nestedSchema);
|
||||
}
|
||||
});
|
||||
return mergedAllOf.length ?
|
||||
{
|
||||
allOf: mergedAllOf,
|
||||
...unevaluatedProperties,
|
||||
}
|
||||
: undefined;
|
||||
}
|
||||
//# sourceMappingURL=intersection.mjs.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.mjs.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"intersection.mjs","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/intersection.ts"],"names":[],"mappings":"OACO,EAAmB,QAAQ,EAAE;AASpC,MAAM,sBAAsB,GAAG,CAC7B,IAA6C,EACf,EAAE;IAChC,IAAI,MAAM,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC3D,OAAO,OAAO,IAAI,IAAI,CAAC;AACzB,CAAC,CAAC;AAEF,MAAM,UAAU,oBAAoB,CAClC,GAAuB,EACvB,IAAU;IAEV,MAAM,KAAK,GAAG;QACZ,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE;YACtB,GAAG,IAAI;YACP,WAAW,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,EAAE,GAAG,CAAC;SACjD,CAAC;QACF,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE;YACvB,GAAG,IAAI;YACP,WAAW,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,EAAE,GAAG,CAAC;SACjD,CAAC;KACH,CAAC,MAAM,CAAC,CAAC,CAAC,EAAwB,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAE3C,IAAI,qBAAqB,GACvB,IAAI,CAAC,MAAM,KAAK,mBAAmB,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IAErF,MAAM,WAAW,GAAsB,EAAE,CAAC;IAC1C,uEAAuE;IACvE,KAAK,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;QACvB,IAAI,sBAAsB,CAAC,MAAM,CAAC,EAAE;YAClC,WAAW,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;YAClC,IAAI,MAAM,CAAC,qBAAqB,KAAK,SAAS,EAAE;gBAC9C,0DAA0D;gBAC1D,kEAAkE;gBAClE,qBAAqB,GAAG,SAAS,CAAC;aACnC;SACF;aAAM;YACL,IAAI,YAAY,GAAoB,MAAM,CAAC;YAC3C,IAAI,sBAAsB,IAAI,MAAM,IAAI,MAAM,CAAC,oBAAoB,KAAK,KAAK,EAAE;gBAC7E,MAAM,EAAE,oBAAoB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;gBACjD,YAAY,GAAG,IAAI,CAAC;aACrB;iBAAM;gBACL,0GAA0G;gBAC1G,qBAAqB,GAAG,SAAS,CAAC;aACnC;YACD,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;SAChC;IACH,CAAC,CAAC,CAAC;IACH,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC;QACvB;YACE,KAAK,EAAE,WAAW;YAClB,GAAG,qBAAqB;SACzB;QACH,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC"}
|
||||
10
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.d.ts
generated
vendored
Normal file
10
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { ZodLiteralDef } from 'zod';
|
||||
import { Refs } from "../Refs.js";
|
||||
export type JsonSchema7LiteralType = {
|
||||
type: 'string' | 'number' | 'integer' | 'boolean';
|
||||
const: string | number | boolean;
|
||||
} | {
|
||||
type: 'object' | 'array';
|
||||
};
|
||||
export declare function parseLiteralDef(def: ZodLiteralDef, refs: Refs): JsonSchema7LiteralType;
|
||||
//# sourceMappingURL=literal.d.ts.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.d.ts.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"literal.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/literal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,MAAM,MAAM,sBAAsB,GAC9B;IACE,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;IAClD,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CAClC,GACD;IACE,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC;CAC1B,CAAC;AAEN,wBAAgB,eAAe,CAAC,GAAG,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,sBAAsB,CAwBtF"}
|
||||
26
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.js
generated
vendored
Normal file
26
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseLiteralDef = void 0;
|
||||
function parseLiteralDef(def, refs) {
|
||||
const parsedType = typeof def.value;
|
||||
if (parsedType !== 'bigint' &&
|
||||
parsedType !== 'number' &&
|
||||
parsedType !== 'boolean' &&
|
||||
parsedType !== 'string') {
|
||||
return {
|
||||
type: Array.isArray(def.value) ? 'array' : 'object',
|
||||
};
|
||||
}
|
||||
if (refs.target === 'openApi3') {
|
||||
return {
|
||||
type: parsedType === 'bigint' ? 'integer' : parsedType,
|
||||
enum: [def.value],
|
||||
};
|
||||
}
|
||||
return {
|
||||
type: parsedType === 'bigint' ? 'integer' : parsedType,
|
||||
const: def.value,
|
||||
};
|
||||
}
|
||||
exports.parseLiteralDef = parseLiteralDef;
|
||||
//# sourceMappingURL=literal.js.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.js.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"literal.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/literal.ts"],"names":[],"mappings":";;;AAYA,SAAgB,eAAe,CAAC,GAAkB,EAAE,IAAU;IAC5D,MAAM,UAAU,GAAG,OAAO,GAAG,CAAC,KAAK,CAAC;IACpC,IACE,UAAU,KAAK,QAAQ;QACvB,UAAU,KAAK,QAAQ;QACvB,UAAU,KAAK,SAAS;QACxB,UAAU,KAAK,QAAQ,EACvB;QACA,OAAO;YACL,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ;SACpD,CAAC;KACH;IAED,IAAI,IAAI,CAAC,MAAM,KAAK,UAAU,EAAE;QAC9B,OAAO;YACL,IAAI,EAAE,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU;YACtD,IAAI,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC;SACX,CAAC;KACV;IAED,OAAO;QACL,IAAI,EAAE,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU;QACtD,KAAK,EAAE,GAAG,CAAC,KAAK;KACjB,CAAC;AACJ,CAAC;AAxBD,0CAwBC"}
|
||||
22
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.mjs
generated
vendored
Normal file
22
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.mjs
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
export function parseLiteralDef(def, refs) {
|
||||
const parsedType = typeof def.value;
|
||||
if (parsedType !== 'bigint' &&
|
||||
parsedType !== 'number' &&
|
||||
parsedType !== 'boolean' &&
|
||||
parsedType !== 'string') {
|
||||
return {
|
||||
type: Array.isArray(def.value) ? 'array' : 'object',
|
||||
};
|
||||
}
|
||||
if (refs.target === 'openApi3') {
|
||||
return {
|
||||
type: parsedType === 'bigint' ? 'integer' : parsedType,
|
||||
enum: [def.value],
|
||||
};
|
||||
}
|
||||
return {
|
||||
type: parsedType === 'bigint' ? 'integer' : parsedType,
|
||||
const: def.value,
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=literal.mjs.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.mjs.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"literal.mjs","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/literal.ts"],"names":[],"mappings":"AAYA,MAAM,UAAU,eAAe,CAAC,GAAkB,EAAE,IAAU;IAC5D,MAAM,UAAU,GAAG,OAAO,GAAG,CAAC,KAAK,CAAC;IACpC,IACE,UAAU,KAAK,QAAQ;QACvB,UAAU,KAAK,QAAQ;QACvB,UAAU,KAAK,SAAS;QACxB,UAAU,KAAK,QAAQ,EACvB;QACA,OAAO;YACL,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ;SACpD,CAAC;KACH;IAED,IAAI,IAAI,CAAC,MAAM,KAAK,UAAU,EAAE;QAC9B,OAAO;YACL,IAAI,EAAE,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU;YACtD,IAAI,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC;SACX,CAAC;KACV;IAED,OAAO;QACL,IAAI,EAAE,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU;QACtD,KAAK,EAAE,GAAG,CAAC,KAAK;KACjB,CAAC;AACJ,CAAC"}
|
||||
16
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/map.d.ts
generated
vendored
Normal file
16
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/map.d.ts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import { ZodMapDef } from 'zod';
|
||||
import { JsonSchema7Type } from "../parseDef.js";
|
||||
import { Refs } from "../Refs.js";
|
||||
import { JsonSchema7RecordType } from "./record.js";
|
||||
export type JsonSchema7MapType = {
|
||||
type: 'array';
|
||||
maxItems: 125;
|
||||
items: {
|
||||
type: 'array';
|
||||
items: [JsonSchema7Type, JsonSchema7Type];
|
||||
minItems: 2;
|
||||
maxItems: 2;
|
||||
};
|
||||
};
|
||||
export declare function parseMapDef(def: ZodMapDef, refs: Refs): JsonSchema7MapType | JsonSchema7RecordType;
|
||||
//# sourceMappingURL=map.d.ts.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/map.d.ts.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/map.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,eAAe,EAAY,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,qBAAqB,EAAkB,MAAM,UAAU,CAAC;AAEjE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,GAAG,CAAC;IACd,KAAK,EAAE;QACL,IAAI,EAAE,OAAO,CAAC;QACd,KAAK,EAAE,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC;QAC1C,QAAQ,EAAE,CAAC,CAAC;QACZ,QAAQ,EAAE,CAAC,CAAC;KACb,CAAC;CACH,CAAC;AAEF,wBAAgB,WAAW,CAAC,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,GAAG,kBAAkB,GAAG,qBAAqB,CAyBlG"}
|
||||
30
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/map.js
generated
vendored
Normal file
30
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/map.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseMapDef = void 0;
|
||||
const parseDef_1 = require("../parseDef.js");
|
||||
const record_1 = require("./record.js");
|
||||
function parseMapDef(def, refs) {
|
||||
if (refs.mapStrategy === 'record') {
|
||||
return (0, record_1.parseRecordDef)(def, refs);
|
||||
}
|
||||
const keys = (0, parseDef_1.parseDef)(def.keyType._def, {
|
||||
...refs,
|
||||
currentPath: [...refs.currentPath, 'items', 'items', '0'],
|
||||
}) || {};
|
||||
const values = (0, parseDef_1.parseDef)(def.valueType._def, {
|
||||
...refs,
|
||||
currentPath: [...refs.currentPath, 'items', 'items', '1'],
|
||||
}) || {};
|
||||
return {
|
||||
type: 'array',
|
||||
maxItems: 125,
|
||||
items: {
|
||||
type: 'array',
|
||||
items: [keys, values],
|
||||
minItems: 2,
|
||||
maxItems: 2,
|
||||
},
|
||||
};
|
||||
}
|
||||
exports.parseMapDef = parseMapDef;
|
||||
//# sourceMappingURL=map.js.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/map.js.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/map.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"map.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/map.ts"],"names":[],"mappings":";;;AACA,6CAAwD;AAExD,wCAAiE;AAajE,SAAgB,WAAW,CAAC,GAAc,EAAE,IAAU;IACpD,IAAI,IAAI,CAAC,WAAW,KAAK,QAAQ,EAAE;QACjC,OAAO,IAAA,uBAAc,EAAC,GAAG,EAAE,IAAI,CAAC,CAAC;KAClC;IAED,MAAM,IAAI,GACR,IAAA,mBAAQ,EAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE;QACzB,GAAG,IAAI;QACP,WAAW,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC;KAC1D,CAAC,IAAI,EAAE,CAAC;IACX,MAAM,MAAM,GACV,IAAA,mBAAQ,EAAC,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE;QAC3B,GAAG,IAAI;QACP,WAAW,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC;KAC1D,CAAC,IAAI,EAAE,CAAC;IACX,OAAO;QACL,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,GAAG;QACb,KAAK,EAAE;YACL,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;YACrB,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,CAAC;SACZ;KACF,CAAC;AACJ,CAAC;AAzBD,kCAyBC"}
|
||||
26
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/map.mjs
generated
vendored
Normal file
26
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/map.mjs
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
import { parseDef } from "../parseDef.mjs";
|
||||
import { parseRecordDef } from "./record.mjs";
|
||||
export function parseMapDef(def, refs) {
|
||||
if (refs.mapStrategy === 'record') {
|
||||
return parseRecordDef(def, refs);
|
||||
}
|
||||
const keys = parseDef(def.keyType._def, {
|
||||
...refs,
|
||||
currentPath: [...refs.currentPath, 'items', 'items', '0'],
|
||||
}) || {};
|
||||
const values = parseDef(def.valueType._def, {
|
||||
...refs,
|
||||
currentPath: [...refs.currentPath, 'items', 'items', '1'],
|
||||
}) || {};
|
||||
return {
|
||||
type: 'array',
|
||||
maxItems: 125,
|
||||
items: {
|
||||
type: 'array',
|
||||
items: [keys, values],
|
||||
minItems: 2,
|
||||
maxItems: 2,
|
||||
},
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=map.mjs.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/map.mjs.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/map.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"map.mjs","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/map.ts"],"names":[],"mappings":"OACO,EAAmB,QAAQ,EAAE;OAE7B,EAAyB,cAAc,EAAE;AAahD,MAAM,UAAU,WAAW,CAAC,GAAc,EAAE,IAAU;IACpD,IAAI,IAAI,CAAC,WAAW,KAAK,QAAQ,EAAE;QACjC,OAAO,cAAc,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;KAClC;IAED,MAAM,IAAI,GACR,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE;QACzB,GAAG,IAAI;QACP,WAAW,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC;KAC1D,CAAC,IAAI,EAAE,CAAC;IACX,MAAM,MAAM,GACV,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE;QAC3B,GAAG,IAAI;QACP,WAAW,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC;KAC1D,CAAC,IAAI,EAAE,CAAC;IACX,OAAO;QACL,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,GAAG;QACb,KAAK,EAAE;YACL,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;YACrB,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,CAAC;SACZ;KACF,CAAC;AACJ,CAAC"}
|
||||
7
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/nativeEnum.d.ts
generated
vendored
Normal file
7
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/nativeEnum.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { ZodNativeEnumDef } from 'zod';
|
||||
export type JsonSchema7NativeEnumType = {
|
||||
type: 'string' | 'number' | ['string', 'number'];
|
||||
enum: (string | number)[];
|
||||
};
|
||||
export declare function parseNativeEnumDef(def: ZodNativeEnumDef): JsonSchema7NativeEnumType;
|
||||
//# sourceMappingURL=nativeEnum.d.ts.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/nativeEnum.d.ts.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/nativeEnum.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"nativeEnum.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/nativeEnum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAC;AAEvC,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACjD,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;CAC3B,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,gBAAgB,GAAG,yBAAyB,CAmBnF"}
|
||||
21
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/nativeEnum.js
generated
vendored
Normal file
21
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/nativeEnum.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseNativeEnumDef = void 0;
|
||||
function parseNativeEnumDef(def) {
|
||||
const object = def.values;
|
||||
const actualKeys = Object.keys(def.values).filter((key) => {
|
||||
return typeof object[object[key]] !== 'number';
|
||||
});
|
||||
const actualValues = actualKeys.map((key) => object[key]);
|
||||
const parsedTypes = Array.from(new Set(actualValues.map((values) => typeof values)));
|
||||
return {
|
||||
type: parsedTypes.length === 1 ?
|
||||
parsedTypes[0] === 'string' ?
|
||||
'string'
|
||||
: 'number'
|
||||
: ['string', 'number'],
|
||||
enum: actualValues,
|
||||
};
|
||||
}
|
||||
exports.parseNativeEnumDef = parseNativeEnumDef;
|
||||
//# sourceMappingURL=nativeEnum.js.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/nativeEnum.js.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/nativeEnum.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"nativeEnum.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/nativeEnum.ts"],"names":[],"mappings":";;;AAOA,SAAgB,kBAAkB,CAAC,GAAqB;IACtD,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;IAC1B,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,GAAW,EAAE,EAAE;QAChE,OAAO,OAAO,MAAM,CAAC,MAAM,CAAC,GAAG,CAAE,CAAC,KAAK,QAAQ,CAAC;IAClD,CAAC,CAAC,CAAC;IAEH,MAAM,YAAY,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,GAAW,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAE,CAAC,CAAC;IAEnE,MAAM,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,MAAuB,EAAE,EAAE,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;IAEtG,OAAO;QACL,IAAI,EACF,WAAW,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;YACxB,WAAW,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC;gBAC3B,QAAQ;gBACV,CAAC,CAAC,QAAQ;YACZ,CAAC,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC;QACxB,IAAI,EAAE,YAAY;KACnB,CAAC;AACJ,CAAC;AAnBD,gDAmBC"}
|
||||
17
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/nativeEnum.mjs
generated
vendored
Normal file
17
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/nativeEnum.mjs
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
export function parseNativeEnumDef(def) {
|
||||
const object = def.values;
|
||||
const actualKeys = Object.keys(def.values).filter((key) => {
|
||||
return typeof object[object[key]] !== 'number';
|
||||
});
|
||||
const actualValues = actualKeys.map((key) => object[key]);
|
||||
const parsedTypes = Array.from(new Set(actualValues.map((values) => typeof values)));
|
||||
return {
|
||||
type: parsedTypes.length === 1 ?
|
||||
parsedTypes[0] === 'string' ?
|
||||
'string'
|
||||
: 'number'
|
||||
: ['string', 'number'],
|
||||
enum: actualValues,
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=nativeEnum.mjs.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/nativeEnum.mjs.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/nativeEnum.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"nativeEnum.mjs","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/nativeEnum.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,kBAAkB,CAAC,GAAqB;IACtD,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;IAC1B,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,GAAW,EAAE,EAAE;QAChE,OAAO,OAAO,MAAM,CAAC,MAAM,CAAC,GAAG,CAAE,CAAC,KAAK,QAAQ,CAAC;IAClD,CAAC,CAAC,CAAC;IAEH,MAAM,YAAY,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,GAAW,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAE,CAAC,CAAC;IAEnE,MAAM,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,MAAuB,EAAE,EAAE,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;IAEtG,OAAO;QACL,IAAI,EACF,WAAW,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;YACxB,WAAW,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC;gBAC3B,QAAQ;gBACV,CAAC,CAAC,QAAQ;YACZ,CAAC,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC;QACxB,IAAI,EAAE,YAAY;KACnB,CAAC;AACJ,CAAC"}
|
||||
5
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/never.d.ts
generated
vendored
Normal file
5
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/never.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export type JsonSchema7NeverType = {
|
||||
not: {};
|
||||
};
|
||||
export declare function parseNeverDef(): JsonSchema7NeverType;
|
||||
//# sourceMappingURL=never.d.ts.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/never.d.ts.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/never.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"never.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/never.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;IACjC,GAAG,EAAE,EAAE,CAAC;CACT,CAAC;AAEF,wBAAgB,aAAa,IAAI,oBAAoB,CAIpD"}
|
||||
10
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/never.js
generated
vendored
Normal file
10
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/never.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseNeverDef = void 0;
|
||||
function parseNeverDef() {
|
||||
return {
|
||||
not: {},
|
||||
};
|
||||
}
|
||||
exports.parseNeverDef = parseNeverDef;
|
||||
//# sourceMappingURL=never.js.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/never.js.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/never.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"never.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/never.ts"],"names":[],"mappings":";;;AAIA,SAAgB,aAAa;IAC3B,OAAO;QACL,GAAG,EAAE,EAAE;KACR,CAAC;AACJ,CAAC;AAJD,sCAIC"}
|
||||
6
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/never.mjs
generated
vendored
Normal file
6
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/never.mjs
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
export function parseNeverDef() {
|
||||
return {
|
||||
not: {},
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=never.mjs.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/never.mjs.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/never.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"never.mjs","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/never.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,aAAa;IAC3B,OAAO;QACL,GAAG,EAAE,EAAE;KACR,CAAC;AACJ,CAAC"}
|
||||
6
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/null.d.ts
generated
vendored
Normal file
6
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/null.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import { Refs } from "../Refs.js";
|
||||
export type JsonSchema7NullType = {
|
||||
type: 'null';
|
||||
};
|
||||
export declare function parseNullDef(refs: Refs): JsonSchema7NullType;
|
||||
//# sourceMappingURL=null.d.ts.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/null.d.ts.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/null.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"null.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/null.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,mBAAmB,CAS5D"}
|
||||
15
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/null.js
generated
vendored
Normal file
15
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/null.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseNullDef = void 0;
|
||||
function parseNullDef(refs) {
|
||||
return refs.target === 'openApi3' ?
|
||||
{
|
||||
enum: ['null'],
|
||||
nullable: true,
|
||||
}
|
||||
: {
|
||||
type: 'null',
|
||||
};
|
||||
}
|
||||
exports.parseNullDef = parseNullDef;
|
||||
//# sourceMappingURL=null.js.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/null.js.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/null.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"null.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/null.ts"],"names":[],"mappings":";;;AAMA,SAAgB,YAAY,CAAC,IAAU;IACrC,OAAO,IAAI,CAAC,MAAM,KAAK,UAAU,CAAC,CAAC;QAC9B;YACC,IAAI,EAAE,CAAC,MAAM,CAAC;YACd,QAAQ,EAAE,IAAI;SACP;QACX,CAAC,CAAC;YACE,IAAI,EAAE,MAAM;SACb,CAAC;AACR,CAAC;AATD,oCASC"}
|
||||
11
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/null.mjs
generated
vendored
Normal file
11
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/null.mjs
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
export function parseNullDef(refs) {
|
||||
return refs.target === 'openApi3' ?
|
||||
{
|
||||
enum: ['null'],
|
||||
nullable: true,
|
||||
}
|
||||
: {
|
||||
type: 'null',
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=null.mjs.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/null.mjs.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/null.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"null.mjs","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/null.ts"],"names":[],"mappings":"AAMA,MAAM,UAAU,YAAY,CAAC,IAAU;IACrC,OAAO,IAAI,CAAC,MAAM,KAAK,UAAU,CAAC,CAAC;QAC9B;YACC,IAAI,EAAE,CAAC,MAAM,CAAC;YACd,QAAQ,EAAE,IAAI;SACP;QACX,CAAC,CAAC;YACE,IAAI,EAAE,MAAM;SACb,CAAC;AACR,CAAC"}
|
||||
11
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.d.ts
generated
vendored
Normal file
11
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.d.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import { ZodNullableDef } from 'zod';
|
||||
import { JsonSchema7Type } from "../parseDef.js";
|
||||
import { Refs } from "../Refs.js";
|
||||
import { JsonSchema7NullType } from "./null.js";
|
||||
export type JsonSchema7NullableType = {
|
||||
anyOf: [JsonSchema7Type, JsonSchema7NullType];
|
||||
} | {
|
||||
type: [string, 'null'];
|
||||
};
|
||||
export declare function parseNullableDef(def: ZodNullableDef, refs: Refs): JsonSchema7NullableType | undefined;
|
||||
//# sourceMappingURL=nullable.d.ts.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.d.ts.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"nullable.d.ts","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/nullable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,eAAe,EAAY,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAG7C,MAAM,MAAM,uBAAuB,GAC/B;IACE,KAAK,EAAE,CAAC,eAAe,EAAE,mBAAmB,CAAC,CAAC;CAC/C,GACD;IACE,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACxB,CAAC;AAEN,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI,GAAG,uBAAuB,GAAG,SAAS,CAkCrG"}
|
||||
35
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.js
generated
vendored
Normal file
35
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseNullableDef = void 0;
|
||||
const parseDef_1 = require("../parseDef.js");
|
||||
const union_1 = require("./union.js");
|
||||
function parseNullableDef(def, refs) {
|
||||
if (['ZodString', 'ZodNumber', 'ZodBigInt', 'ZodBoolean', 'ZodNull'].includes(def.innerType._def.typeName) &&
|
||||
(!def.innerType._def.checks || !def.innerType._def.checks.length)) {
|
||||
if (refs.target === 'openApi3' || refs.nullableStrategy === 'property') {
|
||||
return {
|
||||
type: union_1.primitiveMappings[def.innerType._def.typeName],
|
||||
nullable: true,
|
||||
};
|
||||
}
|
||||
return {
|
||||
type: [union_1.primitiveMappings[def.innerType._def.typeName], 'null'],
|
||||
};
|
||||
}
|
||||
if (refs.target === 'openApi3') {
|
||||
const base = (0, parseDef_1.parseDef)(def.innerType._def, {
|
||||
...refs,
|
||||
currentPath: [...refs.currentPath],
|
||||
});
|
||||
if (base && '$ref' in base)
|
||||
return { allOf: [base], nullable: true };
|
||||
return base && { ...base, nullable: true };
|
||||
}
|
||||
const base = (0, parseDef_1.parseDef)(def.innerType._def, {
|
||||
...refs,
|
||||
currentPath: [...refs.currentPath, 'anyOf', '0'],
|
||||
});
|
||||
return base && { anyOf: [base, { type: 'null' }] };
|
||||
}
|
||||
exports.parseNullableDef = parseNullableDef;
|
||||
//# sourceMappingURL=nullable.js.map
|
||||
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.js.map
generated
vendored
Normal file
1
mcp-server/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"nullable.js","sourceRoot":"","sources":["../../../src/_vendor/zod-to-json-schema/parsers/nullable.ts"],"names":[],"mappings":";;;AACA,6CAAwD;AAGxD,sCAA4C;AAU5C,SAAgB,gBAAgB,CAAC,GAAmB,EAAE,IAAU;IAC9D,IACE,CAAC,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC;QACtG,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,EACjE;QACA,IAAI,IAAI,CAAC,MAAM,KAAK,UAAU,IAAI,IAAI,CAAC,gBAAgB,KAAK,UAAU,EAAE;YACtE,OAAO;gBACL,IAAI,EAAE,yBAAiB,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,QAA0C,CAAC;gBACtF,QAAQ,EAAE,IAAI;aACR,CAAC;SACV;QAED,OAAO;YACL,IAAI,EAAE,CAAC,yBAAiB,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,QAA0C,CAAC,EAAE,MAAM,CAAC;SACjG,CAAC;KACH;IAED,IAAI,IAAI,CAAC,MAAM,KAAK,UAAU,EAAE;QAC9B,MAAM,IAAI,GAAG,IAAA,mBAAQ,EAAC,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE;YACxC,GAAG,IAAI;YACP,WAAW,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SACnC,CAAC,CAAC;QAEH,IAAI,IAAI,IAAI,MAAM,IAAI,IAAI;YAAE,OAAO,EAAE,KAAK,EAAE,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAS,CAAC;QAE5E,OAAO,IAAI,IAAK,EAAE,GAAG,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAU,CAAC;KACrD;IAED,MAAM,IAAI,GAAG,IAAA,mBAAQ,EAAC,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE;QACxC,GAAG,IAAI;QACP,WAAW,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,EAAE,GAAG,CAAC;KACjD,CAAC,CAAC;IAEH,OAAO,IAAI,IAAI,EAAE,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;AACrD,CAAC;AAlCD,4CAkCC"}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user