@tempad-dev/mcp 1.0.2 → 1.0.4
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/{acquire-DjiJC_q-.mjs → acquire-BtKFZ9Lz.mjs} +1 -1
- package/dist/{acquire-DyQqGm3p.mjs → acquire-DHwsqq0j.mjs} +6 -7
- package/dist/{acquire-DyQqGm3p.mjs.map → acquire-DHwsqq0j.mjs.map} +1 -1
- package/dist/{bootstrap-B1nBrSnv.mjs → bootstrap-B9-RyWlM.mjs} +14 -15
- package/dist/{bootstrap-B1nBrSnv.mjs.map → bootstrap-B9-RyWlM.mjs.map} +1 -1
- package/dist/cli.mjs +12 -13
- package/dist/cli.mjs.map +1 -1
- package/dist/{client-binding-CuHY1-__.mjs → client-binding-CvSSv9JC.mjs} +4 -5
- package/dist/{client-binding-CuHY1-__.mjs.map → client-binding-CvSSv9JC.mjs.map} +1 -1
- package/dist/{cold-start-BlWEnIln.mjs → cold-start-DOy9JsIQ.mjs} +11 -12
- package/dist/{cold-start-BlWEnIln.mjs.map → cold-start-DOy9JsIQ.mjs.map} +1 -1
- package/dist/{cold-start-DiifsZxs.mjs → cold-start-U3cW0q9T.mjs} +1 -1
- package/dist/{config-CM4LsvW5.mjs → config-Busa_Dqv.mjs} +42 -31
- package/dist/config-Busa_Dqv.mjs.map +1 -0
- package/dist/{design-task-store-C9DJ_EQq.mjs → design-task-store-BHR54v8-.mjs} +8 -10
- package/dist/{design-task-store-C9DJ_EQq.mjs.map → design-task-store-BHR54v8-.mjs.map} +1 -1
- package/dist/{durable-json-dsqpwT93.mjs → durable-json-_WKesGDj.mjs} +2 -3
- package/dist/{durable-json-dsqpwT93.mjs.map → durable-json-_WKesGDj.mjs.map} +1 -1
- package/dist/{edge-BbKhWPde.mjs → edge-BUf7gs4J.mjs} +14 -15
- package/dist/{edge-BbKhWPde.mjs.map → edge-BUf7gs4J.mjs.map} +1 -1
- package/dist/{edge-DJO-fH9h.mjs → edge-CHzaTUFt.mjs} +1 -1
- package/dist/{hook-receipts-DcO9rRhi.mjs → hook-receipts-QJU3AMoY.mjs} +4 -5
- package/dist/{hook-receipts-DcO9rRhi.mjs.map → hook-receipts-QJU3AMoY.mjs.map} +1 -1
- package/dist/{host-context-CRMK5AI5.mjs → host-context-9TVtjsSm.mjs} +3 -4
- package/dist/{host-context-CRMK5AI5.mjs.map → host-context-9TVtjsSm.mjs.map} +1 -1
- package/dist/{hub-control-591ZGr_p.mjs → hub-control-UlA4Fncg.mjs} +7 -9
- package/dist/{hub-control-591ZGr_p.mjs.map → hub-control-UlA4Fncg.mjs.map} +1 -1
- package/dist/{hub-runtime-BE3z0lBO.mjs → hub-runtime-DjdqIgGl.mjs} +1 -1
- package/dist/{hub-runtime-D-TjF2hn.mjs → hub-runtime-DsEO9zvX.mjs} +130 -150
- package/dist/hub-runtime-DsEO9zvX.mjs.map +1 -0
- package/dist/hub.mjs +3 -4
- package/dist/{identity-BgzOQE2L.mjs → identity-CCaDEwgc.mjs} +4 -5
- package/dist/{identity-BgzOQE2L.mjs.map → identity-CCaDEwgc.mjs.map} +1 -1
- package/dist/{indexes-CCA-CTcL.mjs → indexes-zYqwqnU6.mjs} +10 -12
- package/dist/{indexes-CCA-CTcL.mjs.map → indexes-zYqwqnU6.mjs.map} +1 -1
- package/dist/log-transport.mjs +234 -143
- package/dist/log-transport.mjs.map +1 -1
- package/dist/managed-runtime.mjs +15 -17
- package/dist/managed-runtime.mjs.map +1 -1
- package/dist/{on-exit-leak-free-BvimJ0rP.mjs → on-exit-leak-free-By20-eFK.mjs} +6 -8
- package/dist/{on-exit-leak-free-BvimJ0rP.mjs.map → on-exit-leak-free-By20-eFK.mjs.map} +1 -1
- package/dist/{pino-CLoB7tK6.mjs → pino-BiEyUxFF.mjs} +56 -82
- package/dist/pino-BiEyUxFF.mjs.map +1 -0
- package/dist/{pino-abstract-transport-B0ISte63.mjs → pino-abstract-transport-BBwCGDga.mjs} +4 -6
- package/dist/{pino-abstract-transport-B0ISte63.mjs.map → pino-abstract-transport-BBwCGDga.mjs.map} +1 -1
- package/dist/pino-file.mjs +3 -4
- package/dist/pino-worker.mjs +6 -8
- package/dist/pino-worker.mjs.map +1 -1
- package/dist/{probe-Cu0ZjowK.mjs → probe-BeWkMbzQ.mjs} +40 -55
- package/dist/probe-BeWkMbzQ.mjs.map +1 -0
- package/dist/{process-environment-DJDtCcdv.mjs → process-environment-DRRIdoL8.mjs} +2 -3
- package/dist/{process-environment-DJDtCcdv.mjs.map → process-environment-DRRIdoL8.mjs.map} +1 -1
- package/dist/{processes-DdrHLC81.mjs → processes-BCCE8As7.mjs} +17 -23
- package/dist/{processes-DdrHLC81.mjs.map → processes-BCCE8As7.mjs.map} +1 -1
- package/dist/{processes-Bn1imiMe.mjs → processes-CBoalzSk.mjs} +1 -1
- package/dist/{proper-lockfile-CisPoFAZ.mjs → proper-lockfile-BgKrOq5D.mjs} +19 -32
- package/dist/{proper-lockfile-CisPoFAZ.mjs.map → proper-lockfile-BgKrOq5D.mjs.map} +1 -1
- package/dist/{protocol-DNswG6F2.mjs → protocol-7m-E_iFu.mjs} +57 -108
- package/dist/protocol-7m-E_iFu.mjs.map +1 -0
- package/dist/{protocol-0jvK718o.mjs → protocol-COK3rM6m.mjs} +1 -1
- package/dist/{rolldown-runtime-CLlik3RS.mjs → rolldown-runtime-BH1-_iVd.mjs} +2 -3
- package/dist/{runtime-identity-BiWIlGgw.mjs → runtime-identity-D9V-g5M-.mjs} +2 -3
- package/dist/{runtime-identity-BiWIlGgw.mjs.map → runtime-identity-D9V-g5M-.mjs.map} +1 -1
- package/dist/runtime-installer.mjs +4 -5
- package/dist/runtime-manifest.json +107 -107
- package/dist/{runtime-platform-EULgJm_w.mjs → runtime-platform-C-Yk9F3L.mjs} +2 -3
- package/dist/{runtime-platform-EULgJm_w.mjs.map → runtime-platform-C-Yk9F3L.mjs.map} +1 -1
- package/dist/{runtime-recovery-Dq3hD3IT.mjs → runtime-recovery-DAYSaVV2.mjs} +1 -1
- package/dist/{runtime-recovery-DpqftTl9.mjs → runtime-recovery-DaRaQ8qY.mjs} +5 -6
- package/dist/{runtime-recovery-DpqftTl9.mjs.map → runtime-recovery-DaRaQ8qY.mjs.map} +1 -1
- package/dist/runtime-verification.mjs +6 -6
- package/dist/{schemas-BgOH6OcJ.mjs → schemas-ZDdPV7RQ.mjs} +23 -39
- package/dist/schemas-ZDdPV7RQ.mjs.map +1 -0
- package/dist/{server-C-tcoOT7.mjs → server-CsCpY0Ft.mjs} +645 -287
- package/dist/server-CsCpY0Ft.mjs.map +1 -0
- package/dist/{shared-Drv0SCJK.mjs → shared--othnF1c.mjs} +16 -21
- package/dist/{shared-Drv0SCJK.mjs.map → shared--othnF1c.mjs.map} +1 -1
- package/dist/{shared-BTGsUmhz.mjs → shared-S0dtOYq8.mjs} +1 -1
- package/dist/{src-BGNQgTr6.mjs → src-BSnzZMvK.mjs} +3 -4
- package/dist/{src-BGNQgTr6.mjs.map → src-BSnzZMvK.mjs.map} +1 -1
- package/dist/{stable-edge-DQmYi4Mf.mjs → stable-edge-VAAxSYSS.mjs} +10 -14
- package/dist/stable-edge-VAAxSYSS.mjs.map +1 -0
- package/dist/{startup-log-CBSK6ePM.mjs → startup-log-CYlFgdy5.mjs} +3 -4
- package/dist/{startup-log-CBSK6ePM.mjs.map → startup-log-CYlFgdy5.mjs.map} +1 -1
- package/dist/{startup-log-CaP3xOI_.mjs → startup-log-DqK2uwBd.mjs} +1 -1
- package/dist/{state-CnkSwi5E.mjs → state-6qFcvi-I.mjs} +5 -6
- package/dist/{state-CnkSwi5E.mjs.map → state-6qFcvi-I.mjs.map} +1 -1
- package/dist/{state-3mPLv7lh.mjs → state-BrWBtYNG.mjs} +1 -1
- package/dist/{stdio-CZb1NNIa.mjs → stdio-20SBFdww.mjs} +3 -4
- package/dist/{stdio-CZb1NNIa.mjs.map → stdio-20SBFdww.mjs.map} +1 -1
- package/dist/{supervisor-CaK9kd1q.mjs → supervisor-CesT-H5_.mjs} +43 -36
- package/dist/supervisor-CesT-H5_.mjs.map +1 -0
- package/dist/{task-storage-recovery-B5Ghq26e.mjs → task-storage-recovery-I9lpYYX6.mjs} +6 -7
- package/dist/{task-storage-recovery-B5Ghq26e.mjs.map → task-storage-recovery-I9lpYYX6.mjs.map} +1 -1
- package/dist/thread-stream-worker.mjs +5 -6
- package/dist/thread-stream-worker.mjs.map +1 -1
- package/dist/{types-BEqvvpHh.mjs → types-C8GH0osr.mjs} +1 -1
- package/dist/{types-gJ5HkL66.mjs → types-kNTSQOnR.mjs} +4 -6
- package/dist/{types-gJ5HkL66.mjs.map → types-kNTSQOnR.mjs.map} +1 -1
- package/package.json +1 -1
- package/dist/config-CM4LsvW5.mjs.map +0 -1
- package/dist/hub-runtime-D-TjF2hn.mjs.map +0 -1
- package/dist/pino-CLoB7tK6.mjs.map +0 -1
- package/dist/probe-Cu0ZjowK.mjs.map +0 -1
- package/dist/protocol-DNswG6F2.mjs.map +0 -1
- package/dist/schemas-BgOH6OcJ.mjs.map +0 -1
- package/dist/server-C-tcoOT7.mjs.map +0 -1
- package/dist/stable-edge-DQmYi4Mf.mjs.map +0 -1
- package/dist/supervisor-CaK9kd1q.mjs.map +0 -1
|
@@ -4,13 +4,13 @@ globalThis.__bundlerPathsOverrides = {
|
|
|
4
4
|
'pino-worker': runtimeFilePath(new URL('./pino-worker.mjs', import.meta.url)),
|
|
5
5
|
'pino/file': runtimeFilePath(new URL('./pino-file.mjs', import.meta.url))
|
|
6
6
|
};
|
|
7
|
-
import { A as safeParse$1, D as $ZodType, E as $ZodObject, I as installLazyProp, M as $constructor, O as parse, P as clone, R as normalizeParams, S as uuid, d as literal, i as _enum, j as safeParseAsync$1, k as parseAsync, m as object$1, o as array, p as number, v as string, w as toJSONSchema, z as own } from "./schemas-
|
|
8
|
-
import { B as GetTaskRequestSchema, C as CreateTaskResultSchema, F as ErrorCode, Gn as isTaskAugmentedRequestParams, Hn as isJSONRPCNotification, Ot as PingRequestSchema, Un as isJSONRPCRequest, V as GetTaskResultSchema, Vn as isJSONRPCErrorResponse, Wn as isJSONRPCResultResponse, Z as JSONRPCMessageSchema, f as CancelledNotificationSchema, ft as ListTasksRequestSchema, jt as ProgressNotificationSchema, l as CancelTaskRequestSchema, pt as ListTasksResultSchema, u as CancelTaskResultSchema, xn as TaskStatusNotificationSchema, yt as McpError, z as GetTaskPayloadRequestSchema, zt as RELATED_TASK_META_KEY } from "./types-
|
|
9
|
-
import { n as HostContextSchema } from "./host-context-
|
|
10
|
-
import { n as getRuntimeTimingConfig } from "./config-
|
|
11
|
-
import { i as serializeMessage, t as ReadBuffer } from "./stdio-
|
|
7
|
+
import { A as safeParse$1, D as $ZodType, E as $ZodObject, I as installLazyProp, M as $constructor, O as parse, P as clone, R as normalizeParams, S as uuid, d as literal, i as _enum, j as safeParseAsync$1, k as parseAsync, m as object$1, o as array, p as number, v as string, w as toJSONSchema, z as own } from "./schemas-ZDdPV7RQ.mjs";
|
|
8
|
+
import { B as GetTaskRequestSchema, C as CreateTaskResultSchema, F as ErrorCode, Gn as isTaskAugmentedRequestParams, Hn as isJSONRPCNotification, Ot as PingRequestSchema, Un as isJSONRPCRequest, V as GetTaskResultSchema, Vn as isJSONRPCErrorResponse, Wn as isJSONRPCResultResponse, Z as JSONRPCMessageSchema, f as CancelledNotificationSchema, ft as ListTasksRequestSchema, jt as ProgressNotificationSchema, l as CancelTaskRequestSchema, pt as ListTasksResultSchema, u as CancelTaskResultSchema, xn as TaskStatusNotificationSchema, yt as McpError, z as GetTaskPayloadRequestSchema, zt as RELATED_TASK_META_KEY } from "./types-kNTSQOnR.mjs";
|
|
9
|
+
import { n as HostContextSchema } from "./host-context-9TVtjsSm.mjs";
|
|
10
|
+
import { n as getRuntimeTimingConfig } from "./config-Busa_Dqv.mjs";
|
|
11
|
+
import { i as serializeMessage, t as ReadBuffer } from "./stdio-20SBFdww.mjs";
|
|
12
12
|
import process from "node:process";
|
|
13
|
-
|
|
13
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v3/helpers/util.js
|
|
14
14
|
var util;
|
|
15
15
|
(function(util) {
|
|
16
16
|
util.assertEqual = (_) => {};
|
|
@@ -105,8 +105,7 @@ const getParsedType = (data) => {
|
|
|
105
105
|
default: return ZodParsedType.unknown;
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
|
-
|
|
109
|
-
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v3/ZodError.js
|
|
108
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v3/ZodError.js
|
|
110
109
|
const ZodIssueCode = util.arrayToEnum([
|
|
111
110
|
"invalid_type",
|
|
112
111
|
"invalid_literal",
|
|
@@ -215,8 +214,7 @@ var ZodError = class ZodError extends Error {
|
|
|
215
214
|
ZodError.create = (issues) => {
|
|
216
215
|
return new ZodError(issues);
|
|
217
216
|
};
|
|
218
|
-
|
|
219
|
-
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v3/locales/en.js
|
|
217
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v3/locales/en.js
|
|
220
218
|
const errorMap = (issue, _ctx) => {
|
|
221
219
|
let message;
|
|
222
220
|
switch (issue.code) {
|
|
@@ -293,14 +291,12 @@ const errorMap = (issue, _ctx) => {
|
|
|
293
291
|
}
|
|
294
292
|
return { message };
|
|
295
293
|
};
|
|
296
|
-
|
|
297
|
-
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v3/errors.js
|
|
294
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v3/errors.js
|
|
298
295
|
let overrideErrorMap = errorMap;
|
|
299
296
|
function getErrorMap() {
|
|
300
297
|
return overrideErrorMap;
|
|
301
298
|
}
|
|
302
|
-
|
|
303
|
-
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v3/helpers/parseUtil.js
|
|
299
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v3/helpers/parseUtil.js
|
|
304
300
|
const makeIssue = (params) => {
|
|
305
301
|
const { data, path, errorMaps, issueData } = params;
|
|
306
302
|
const fullPath = [...path, ...issueData.path || []];
|
|
@@ -403,15 +399,13 @@ const isAborted = (x) => x.status === "aborted";
|
|
|
403
399
|
const isDirty = (x) => x.status === "dirty";
|
|
404
400
|
const isValid = (x) => x.status === "valid";
|
|
405
401
|
const isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
406
|
-
|
|
407
|
-
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v3/helpers/errorUtil.js
|
|
402
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v3/helpers/errorUtil.js
|
|
408
403
|
var errorUtil;
|
|
409
404
|
(function(errorUtil) {
|
|
410
405
|
errorUtil.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
411
406
|
errorUtil.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
412
407
|
})(errorUtil || (errorUtil = {}));
|
|
413
|
-
|
|
414
|
-
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v3/types.js
|
|
408
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v3/types.js
|
|
415
409
|
var ParseInputLazyPath = class {
|
|
416
410
|
constructor(parent, value, path, key) {
|
|
417
411
|
this._cachedPath = [];
|
|
@@ -3571,8 +3565,7 @@ ZodOptional.create;
|
|
|
3571
3565
|
ZodNullable.create;
|
|
3572
3566
|
ZodEffects.createWithPreprocess;
|
|
3573
3567
|
ZodPipeline.create;
|
|
3574
|
-
|
|
3575
|
-
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/mini/schemas.js
|
|
3568
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/mini/schemas.js
|
|
3576
3569
|
const ZodMiniType = /*@__PURE__*/ $constructor("ZodMiniType", (inst, def) => {
|
|
3577
3570
|
if (!inst._zod) throw new Error("Uninitialized schema in ZodMiniType.");
|
|
3578
3571
|
$ZodType.init(inst, def);
|
|
@@ -3636,8 +3629,7 @@ function object(shape, params) {
|
|
|
3636
3629
|
};
|
|
3637
3630
|
return new ZodMiniObject(def);
|
|
3638
3631
|
}
|
|
3639
|
-
|
|
3640
|
-
//#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_supports-color@7.2.0_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
|
|
3632
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.2_supports-color@7.2.0_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
|
|
3641
3633
|
function isZ4Schema(s) {
|
|
3642
3634
|
return !!s._zod;
|
|
3643
3635
|
}
|
|
@@ -3759,8 +3751,7 @@ function getLiteralValue(schema) {
|
|
|
3759
3751
|
const directValue = schema.value;
|
|
3760
3752
|
if (directValue !== void 0) return directValue;
|
|
3761
3753
|
}
|
|
3762
|
-
|
|
3763
|
-
//#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_supports-color@7.2.0_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
|
|
3754
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.2_supports-color@7.2.0_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
|
|
3764
3755
|
/**
|
|
3765
3756
|
* Experimental task interfaces for MCP SDK.
|
|
3766
3757
|
* WARNING: These APIs are experimental and may change without notice.
|
|
@@ -3776,8 +3767,7 @@ function getLiteralValue(schema) {
|
|
|
3776
3767
|
function isTerminal(status) {
|
|
3777
3768
|
return status === "completed" || status === "failed" || status === "cancelled";
|
|
3778
3769
|
}
|
|
3779
|
-
|
|
3780
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/Options.js
|
|
3770
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/Options.js
|
|
3781
3771
|
const ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use");
|
|
3782
3772
|
const defaultOptions = {
|
|
3783
3773
|
name: void 0,
|
|
@@ -3810,8 +3800,7 @@ const getDefaultOptions = (options) => typeof options === "string" ? {
|
|
|
3810
3800
|
...defaultOptions,
|
|
3811
3801
|
...options
|
|
3812
3802
|
};
|
|
3813
|
-
|
|
3814
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/Refs.js
|
|
3803
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/Refs.js
|
|
3815
3804
|
const getRefs = (options) => {
|
|
3816
3805
|
const _options = getDefaultOptions(options);
|
|
3817
3806
|
const currentPath = _options.name !== void 0 ? [
|
|
@@ -3835,8 +3824,7 @@ const getRefs = (options) => {
|
|
|
3835
3824
|
}]))
|
|
3836
3825
|
};
|
|
3837
3826
|
};
|
|
3838
|
-
|
|
3839
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/errorMessages.js
|
|
3827
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/errorMessages.js
|
|
3840
3828
|
function addErrorMessage(res, key, errorMessage, refs) {
|
|
3841
3829
|
if (!refs?.errorMessages) return;
|
|
3842
3830
|
if (errorMessage) res.errorMessage = {
|
|
@@ -3848,15 +3836,13 @@ function setResponseValueAndErrors(res, key, value, errorMessage, refs) {
|
|
|
3848
3836
|
res[key] = value;
|
|
3849
3837
|
addErrorMessage(res, key, errorMessage, refs);
|
|
3850
3838
|
}
|
|
3851
|
-
|
|
3852
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js
|
|
3839
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js
|
|
3853
3840
|
const getRelativePath = (pathA, pathB) => {
|
|
3854
3841
|
let i = 0;
|
|
3855
3842
|
for (; i < pathA.length && i < pathB.length; i++) if (pathA[i] !== pathB[i]) break;
|
|
3856
3843
|
return [(pathA.length - i).toString(), ...pathB.slice(i)].join("/");
|
|
3857
3844
|
};
|
|
3858
|
-
|
|
3859
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/any.js
|
|
3845
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/any.js
|
|
3860
3846
|
function parseAnyDef(refs) {
|
|
3861
3847
|
if (refs.target !== "openAi") return {};
|
|
3862
3848
|
const anyDefinitionPath = [
|
|
@@ -3867,8 +3853,7 @@ function parseAnyDef(refs) {
|
|
|
3867
3853
|
refs.flags.hasReferencedOpenAiAnyType = true;
|
|
3868
3854
|
return { $ref: refs.$refStrategy === "relative" ? getRelativePath(anyDefinitionPath, refs.currentPath) : anyDefinitionPath.join("/") };
|
|
3869
3855
|
}
|
|
3870
|
-
|
|
3871
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/array.js
|
|
3856
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/array.js
|
|
3872
3857
|
function parseArrayDef(def, refs) {
|
|
3873
3858
|
const res = { type: "array" };
|
|
3874
3859
|
if (def.type?._def && def.type?._def?.typeName !== ZodFirstPartyTypeKind.ZodAny) res.items = parseDef(def.type._def, {
|
|
@@ -3883,8 +3868,7 @@ function parseArrayDef(def, refs) {
|
|
|
3883
3868
|
}
|
|
3884
3869
|
return res;
|
|
3885
3870
|
}
|
|
3886
|
-
|
|
3887
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js
|
|
3871
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js
|
|
3888
3872
|
function parseBigintDef(def, refs) {
|
|
3889
3873
|
const res = {
|
|
3890
3874
|
type: "integer",
|
|
@@ -3914,23 +3898,19 @@ function parseBigintDef(def, refs) {
|
|
|
3914
3898
|
}
|
|
3915
3899
|
return res;
|
|
3916
3900
|
}
|
|
3917
|
-
|
|
3918
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js
|
|
3901
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js
|
|
3919
3902
|
function parseBooleanDef() {
|
|
3920
3903
|
return { type: "boolean" };
|
|
3921
3904
|
}
|
|
3922
|
-
|
|
3923
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js
|
|
3905
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js
|
|
3924
3906
|
function parseBrandedDef(_def, refs) {
|
|
3925
3907
|
return parseDef(_def.type._def, refs);
|
|
3926
3908
|
}
|
|
3927
|
-
|
|
3928
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js
|
|
3909
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js
|
|
3929
3910
|
const parseCatchDef = (def, refs) => {
|
|
3930
3911
|
return parseDef(def.innerType._def, refs);
|
|
3931
3912
|
};
|
|
3932
|
-
|
|
3933
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/date.js
|
|
3913
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/date.js
|
|
3934
3914
|
function parseDateDef(def, refs, overrideDateStrategy) {
|
|
3935
3915
|
const strategy = overrideDateStrategy ?? refs.dateStrategy;
|
|
3936
3916
|
if (Array.isArray(strategy)) return { anyOf: strategy.map((item, i) => parseDateDef(def, refs, item)) };
|
|
@@ -3961,29 +3941,25 @@ const integerDateParser = (def, refs) => {
|
|
|
3961
3941
|
}
|
|
3962
3942
|
return res;
|
|
3963
3943
|
};
|
|
3964
|
-
|
|
3965
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/default.js
|
|
3944
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/default.js
|
|
3966
3945
|
function parseDefaultDef(_def, refs) {
|
|
3967
3946
|
return {
|
|
3968
3947
|
...parseDef(_def.innerType._def, refs),
|
|
3969
3948
|
default: _def.defaultValue()
|
|
3970
3949
|
};
|
|
3971
3950
|
}
|
|
3972
|
-
|
|
3973
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js
|
|
3951
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js
|
|
3974
3952
|
function parseEffectsDef(_def, refs) {
|
|
3975
3953
|
return refs.effectStrategy === "input" ? parseDef(_def.schema._def, refs) : parseAnyDef(refs);
|
|
3976
3954
|
}
|
|
3977
|
-
|
|
3978
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js
|
|
3955
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js
|
|
3979
3956
|
function parseEnumDef(def) {
|
|
3980
3957
|
return {
|
|
3981
3958
|
type: "string",
|
|
3982
3959
|
enum: Array.from(def.values)
|
|
3983
3960
|
};
|
|
3984
3961
|
}
|
|
3985
|
-
|
|
3986
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js
|
|
3962
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js
|
|
3987
3963
|
const isJsonSchema7AllOfType = (type) => {
|
|
3988
3964
|
if ("type" in type && type.type === "string") return false;
|
|
3989
3965
|
return "allOf" in type;
|
|
@@ -4024,8 +4000,7 @@ function parseIntersectionDef(def, refs) {
|
|
|
4024
4000
|
...unevaluatedProperties
|
|
4025
4001
|
} : void 0;
|
|
4026
4002
|
}
|
|
4027
|
-
|
|
4028
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js
|
|
4003
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js
|
|
4029
4004
|
function parseLiteralDef(def, refs) {
|
|
4030
4005
|
const parsedType = typeof def.value;
|
|
4031
4006
|
if (parsedType !== "bigint" && parsedType !== "number" && parsedType !== "boolean" && parsedType !== "string") return { type: Array.isArray(def.value) ? "array" : "object" };
|
|
@@ -4038,8 +4013,7 @@ function parseLiteralDef(def, refs) {
|
|
|
4038
4013
|
const: def.value
|
|
4039
4014
|
};
|
|
4040
4015
|
}
|
|
4041
|
-
|
|
4042
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
|
|
4016
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
|
|
4043
4017
|
let emojiRegex = void 0;
|
|
4044
4018
|
/**
|
|
4045
4019
|
* Generated from the regular expressions found here as of 2024-05-22:
|
|
@@ -4301,8 +4275,7 @@ function stringifyRegExpWithFlags(regex, refs) {
|
|
|
4301
4275
|
}
|
|
4302
4276
|
return pattern;
|
|
4303
4277
|
}
|
|
4304
|
-
|
|
4305
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/record.js
|
|
4278
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/record.js
|
|
4306
4279
|
function parseRecordDef(def, refs) {
|
|
4307
4280
|
if (refs.target === "openAi") console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.");
|
|
4308
4281
|
if (refs.target === "openApi3" && def.keyType?._def.typeName === ZodFirstPartyTypeKind.ZodEnum) return {
|
|
@@ -4348,8 +4321,7 @@ function parseRecordDef(def, refs) {
|
|
|
4348
4321
|
}
|
|
4349
4322
|
return schema;
|
|
4350
4323
|
}
|
|
4351
|
-
|
|
4352
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/map.js
|
|
4324
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/map.js
|
|
4353
4325
|
function parseMapDef(def, refs) {
|
|
4354
4326
|
if (refs.mapStrategy === "record") return parseRecordDef(def, refs);
|
|
4355
4327
|
return {
|
|
@@ -4379,8 +4351,7 @@ function parseMapDef(def, refs) {
|
|
|
4379
4351
|
}
|
|
4380
4352
|
};
|
|
4381
4353
|
}
|
|
4382
|
-
|
|
4383
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js
|
|
4354
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js
|
|
4384
4355
|
function parseNativeEnumDef(def) {
|
|
4385
4356
|
const object = def.values;
|
|
4386
4357
|
const actualValues = Object.keys(def.values).filter((key) => {
|
|
@@ -4392,24 +4363,21 @@ function parseNativeEnumDef(def) {
|
|
|
4392
4363
|
enum: actualValues
|
|
4393
4364
|
};
|
|
4394
4365
|
}
|
|
4395
|
-
|
|
4396
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/never.js
|
|
4366
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/never.js
|
|
4397
4367
|
function parseNeverDef(refs) {
|
|
4398
4368
|
return refs.target === "openAi" ? void 0 : { not: parseAnyDef({
|
|
4399
4369
|
...refs,
|
|
4400
4370
|
currentPath: [...refs.currentPath, "not"]
|
|
4401
4371
|
}) };
|
|
4402
4372
|
}
|
|
4403
|
-
|
|
4404
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/null.js
|
|
4373
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/null.js
|
|
4405
4374
|
function parseNullDef(refs) {
|
|
4406
4375
|
return refs.target === "openApi3" ? {
|
|
4407
4376
|
enum: ["null"],
|
|
4408
4377
|
nullable: true
|
|
4409
4378
|
} : { type: "null" };
|
|
4410
4379
|
}
|
|
4411
|
-
|
|
4412
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/union.js
|
|
4380
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/union.js
|
|
4413
4381
|
const primitiveMappings = {
|
|
4414
4382
|
ZodString: "string",
|
|
4415
4383
|
ZodNumber: "number",
|
|
@@ -4464,8 +4432,7 @@ const asAnyOf = (def, refs) => {
|
|
|
4464
4432
|
})).filter((x) => !!x && (!refs.strictUnions || typeof x === "object" && Object.keys(x).length > 0));
|
|
4465
4433
|
return anyOf.length ? { anyOf } : void 0;
|
|
4466
4434
|
};
|
|
4467
|
-
|
|
4468
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js
|
|
4435
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js
|
|
4469
4436
|
function parseNullableDef(def, refs) {
|
|
4470
4437
|
if ([
|
|
4471
4438
|
"ZodString",
|
|
@@ -4504,8 +4471,7 @@ function parseNullableDef(def, refs) {
|
|
|
4504
4471
|
});
|
|
4505
4472
|
return base && { anyOf: [base, { type: "null" }] };
|
|
4506
4473
|
}
|
|
4507
|
-
|
|
4508
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/number.js
|
|
4474
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/number.js
|
|
4509
4475
|
function parseNumberDef(def, refs) {
|
|
4510
4476
|
const res = { type: "number" };
|
|
4511
4477
|
if (!def.checks) return res;
|
|
@@ -4536,8 +4502,7 @@ function parseNumberDef(def, refs) {
|
|
|
4536
4502
|
}
|
|
4537
4503
|
return res;
|
|
4538
4504
|
}
|
|
4539
|
-
|
|
4540
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/object.js
|
|
4505
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/object.js
|
|
4541
4506
|
function parseObjectDef(def, refs) {
|
|
4542
4507
|
const forceOptionalIntoNullable = refs.target === "openAi";
|
|
4543
4508
|
const result = {
|
|
@@ -4595,8 +4560,7 @@ function safeIsOptional(schema) {
|
|
|
4595
4560
|
return true;
|
|
4596
4561
|
}
|
|
4597
4562
|
}
|
|
4598
|
-
|
|
4599
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js
|
|
4563
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js
|
|
4600
4564
|
const parseOptionalDef = (def, refs) => {
|
|
4601
4565
|
if (refs.currentPath.toString() === refs.propertyPath?.toString()) return parseDef(def.innerType._def, refs);
|
|
4602
4566
|
const innerSchema = parseDef(def.innerType._def, {
|
|
@@ -4609,8 +4573,7 @@ const parseOptionalDef = (def, refs) => {
|
|
|
4609
4573
|
});
|
|
4610
4574
|
return innerSchema ? { anyOf: [{ not: parseAnyDef(refs) }, innerSchema] } : parseAnyDef(refs);
|
|
4611
4575
|
};
|
|
4612
|
-
|
|
4613
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js
|
|
4576
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js
|
|
4614
4577
|
const parsePipelineDef = (def, refs) => {
|
|
4615
4578
|
if (refs.pipeStrategy === "input") return parseDef(def.in._def, refs);
|
|
4616
4579
|
else if (refs.pipeStrategy === "output") return parseDef(def.out._def, refs);
|
|
@@ -4631,13 +4594,11 @@ const parsePipelineDef = (def, refs) => {
|
|
|
4631
4594
|
]
|
|
4632
4595
|
})].filter((x) => x !== void 0) };
|
|
4633
4596
|
};
|
|
4634
|
-
|
|
4635
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js
|
|
4597
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js
|
|
4636
4598
|
function parsePromiseDef(def, refs) {
|
|
4637
4599
|
return parseDef(def.type._def, refs);
|
|
4638
4600
|
}
|
|
4639
|
-
|
|
4640
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/set.js
|
|
4601
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/set.js
|
|
4641
4602
|
function parseSetDef(def, refs) {
|
|
4642
4603
|
const schema = {
|
|
4643
4604
|
type: "array",
|
|
@@ -4651,8 +4612,7 @@ function parseSetDef(def, refs) {
|
|
|
4651
4612
|
if (def.maxSize) setResponseValueAndErrors(schema, "maxItems", def.maxSize.value, def.maxSize.message, refs);
|
|
4652
4613
|
return schema;
|
|
4653
4614
|
}
|
|
4654
|
-
|
|
4655
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js
|
|
4615
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js
|
|
4656
4616
|
function parseTupleDef(def, refs) {
|
|
4657
4617
|
if (def.rest) return {
|
|
4658
4618
|
type: "array",
|
|
@@ -4684,23 +4644,19 @@ function parseTupleDef(def, refs) {
|
|
|
4684
4644
|
})).reduce((acc, x) => x === void 0 ? acc : [...acc, x], [])
|
|
4685
4645
|
};
|
|
4686
4646
|
}
|
|
4687
|
-
|
|
4688
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js
|
|
4647
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js
|
|
4689
4648
|
function parseUndefinedDef(refs) {
|
|
4690
4649
|
return { not: parseAnyDef(refs) };
|
|
4691
4650
|
}
|
|
4692
|
-
|
|
4693
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js
|
|
4651
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js
|
|
4694
4652
|
function parseUnknownDef(refs) {
|
|
4695
4653
|
return parseAnyDef(refs);
|
|
4696
4654
|
}
|
|
4697
|
-
|
|
4698
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
|
|
4655
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
|
|
4699
4656
|
const parseReadonlyDef = (def, refs) => {
|
|
4700
4657
|
return parseDef(def.innerType._def, refs);
|
|
4701
4658
|
};
|
|
4702
|
-
|
|
4703
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/selectParser.js
|
|
4659
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/selectParser.js
|
|
4704
4660
|
const selectParser = (def, typeName, refs) => {
|
|
4705
4661
|
switch (typeName) {
|
|
4706
4662
|
case ZodFirstPartyTypeKind.ZodString: return parseStringDef(def, refs);
|
|
@@ -4742,8 +4698,7 @@ const selectParser = (def, typeName, refs) => {
|
|
|
4742
4698
|
default: return ((_) => void 0)(typeName);
|
|
4743
4699
|
}
|
|
4744
4700
|
};
|
|
4745
|
-
|
|
4746
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parseDef.js
|
|
4701
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parseDef.js
|
|
4747
4702
|
function parseDef(def, refs, forceResolution = false) {
|
|
4748
4703
|
const seenItem = refs.seen.get(def);
|
|
4749
4704
|
if (refs.override) {
|
|
@@ -4791,8 +4746,7 @@ const addMeta = (def, refs, jsonSchema) => {
|
|
|
4791
4746
|
}
|
|
4792
4747
|
return jsonSchema;
|
|
4793
4748
|
};
|
|
4794
|
-
|
|
4795
|
-
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js
|
|
4749
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js
|
|
4796
4750
|
const zodToJsonSchema = (schema, options) => {
|
|
4797
4751
|
const refs = getRefs(options);
|
|
4798
4752
|
let definitions = typeof options === "object" && options.definitions ? Object.entries(options.definitions).reduce((acc, [name, schema]) => ({
|
|
@@ -4854,8 +4808,7 @@ const zodToJsonSchema = (schema, options) => {
|
|
|
4854
4808
|
if (refs.target === "openAi" && ("anyOf" in combined || "oneOf" in combined || "allOf" in combined || "type" in combined && Array.isArray(combined.type))) console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property.");
|
|
4855
4809
|
return combined;
|
|
4856
4810
|
};
|
|
4857
|
-
|
|
4858
|
-
//#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_supports-color@7.2.0_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
|
|
4811
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.2_supports-color@7.2.0_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
|
|
4859
4812
|
function mapMiniTarget(t) {
|
|
4860
4813
|
if (!t) return "draft-7";
|
|
4861
4814
|
if (t === "jsonSchema7" || t === "draft-7") return "draft-7";
|
|
@@ -5751,8 +5704,7 @@ function mergeCapabilities(base, additional) {
|
|
|
5751
5704
|
}
|
|
5752
5705
|
return result;
|
|
5753
5706
|
}
|
|
5754
|
-
|
|
5755
|
-
//#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_supports-color@7.2.0_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
5707
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.2_supports-color@7.2.0_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
5756
5708
|
/**
|
|
5757
5709
|
* Server transport for stdio: this communicates with an MCP client by reading from the current process' stdin and writing to stdout.
|
|
5758
5710
|
*
|
|
@@ -5810,8 +5762,7 @@ var StdioServerTransport = class {
|
|
|
5810
5762
|
});
|
|
5811
5763
|
}
|
|
5812
5764
|
};
|
|
5813
|
-
|
|
5814
|
-
//#region src/consumer-transport.ts
|
|
5765
|
+
// src/consumer-transport.ts
|
|
5815
5766
|
const ZERO_ID = "tempad:request:zero";
|
|
5816
5767
|
const STRING_ID = "tempad:request:string:";
|
|
5817
5768
|
function encode(id) {
|
|
@@ -5861,8 +5812,7 @@ var ConsumerTransport = class extends StdioServerTransport {
|
|
|
5861
5812
|
return super.send(decodeConsumerMessage(message));
|
|
5862
5813
|
}
|
|
5863
5814
|
};
|
|
5864
|
-
|
|
5865
|
-
//#region src/runtime-prototype/protocol.ts
|
|
5815
|
+
// src/runtime-prototype/protocol.ts
|
|
5866
5816
|
const CONTROL_VERSIONS = [2];
|
|
5867
5817
|
const runtimeTiming = getRuntimeTimingConfig();
|
|
5868
5818
|
const LEASE_MS = runtimeTiming.controlLeaseMs;
|
|
@@ -6033,7 +5983,6 @@ var RuntimeDataTransport = class {
|
|
|
6033
5983
|
return this.wire.close();
|
|
6034
5984
|
}
|
|
6035
5985
|
};
|
|
6036
|
-
//#endregion
|
|
6037
5986
|
export { getSchemaDescription as C, safeParse as D, objectFromShape as E, safeParseAsync as O, getParseErrorMessage as S, normalizeObjectSchema as T, Protocol as _, IdSchema as a, getLiteralValue as b, RENEW_MS as c, RuntimeDataTransport as d, SocketTransport as f, ConsumerTransport as g, unavailable as h, GrantSchema as i, REQUEST_TIMEOUT_MS as l, negotiate as m, ControlPeer as n, LEASE_MS as o, isRuntimeUnavailable as p, FrameSchema as r, RECOVER_MS as s, CONTROL_VERSIONS as t, RegistrationSchema as u, mergeCapabilities as v, isSchemaOptional as w, getObjectShape as x, toJsonSchemaCompat as y };
|
|
6038
5987
|
|
|
6039
|
-
//# sourceMappingURL=protocol-
|
|
5988
|
+
//# sourceMappingURL=protocol-7m-E_iFu.mjs.map
|